Index: do.bat
===================================================================
--- /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/do.bat	(nonexistent)
+++ /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/do.bat	(working copy)
@@ -0,0 +1,93 @@
+@set FPGA_PATH=fpgajic\fpga
+@set ROM_PATH=.
+@set MV_PATCH=mv\src\yichip
+@set YC_PATCH_FILE=yc_patch_yc1021.h
+@set enc=1
+@set enckey=0000000000000000
+@rem set device_option=rfbqb
+@set device_option=mouse
+@rem set device_option=shutter
+@rem set device_option=hci
+@rem set device_option=antilost
+@rem set device_option=dongle
+@rem device_option=module
+@rem set device_option=car
+@rem set device_option=remote_car
+@rem set device_option=mesh
+@echo off
+
+setlocal enabledelayedexpansion
+for %%f in (program\mesh_protocol_stack\*.prog) do @set progs=!progs! %%f
+for %%f in (program\ble_protocol_stack\*.prog) do @set progs=!progs! %%f
+for %%f in (program\g24_protocol_stack\*.prog) do @set progs=!progs! %%f
+for %%f in (program\*.prog) do @if not %%f==program\bt.prog if not %%f==program\patch.prog if not %%f==program\sim.prog set progs=!progs! %%f
+type program\bt.prog %progs% > output\bt_program23.meta
+
+::for %%f in (format\peipherals_config\*.format) do set fmts=!fmts! %%f
+for %%f in (format\mesh_protocol_stack\*.format) do set fmts=!fmts! %%f
+for %%f in (format\ble_protocol_stack\*.format) do set fmts=!fmts! %%f
+for %%f in (format\g24_protocol_stack\*.format) do set fmts=!fmts! %%f
+for %%f in (format\*.format) do @if not %%f==format\bt.format if not %%f==format\command.format set fmts=!fmts! %%f
+type format\bt.format %fmts% format\command.format > output\bt_format.meta
+::perl util/memalloc.pl output/bt_format.meta
+
+if "%device_option%" equ "hci" (
+  copy sched\hci_boot.dat output\sched.rom
+) else if "%device_option%" equ "mouse" (
+  copy sched\mouse.dat + sched\1308.dat output\sched.rom
+) else if "%device_option%" equ "module" (
+  copy sched\DM_module.dat + sched\1308.dat output\sched.rom
+) else if "%device_option%" equ "shutter" (
+  copy sched\shutter.dat + sched\1308.dat output\sched.rom
+) else if "%device_option%" equ "antilost" (
+  copy sched\antilost.dat + sched\1308.dat output\sched.rom
+) else if "%device_option%" equ "dongle" (
+  copy sched\dongle.dat + sched\1308.dat output\sched.rom
+) else if "%device_option%" equ "car" (
+  copy sched\car.dat + sched\1308.dat output\sched.rom
+) else if "%device_option%" equ "remote_car" (
+  copy sched\remote_car.dat + sched\1308.dat output\sched.rom
+) else if "%device_option%" equ "esl" (
+  copy sched\esl.dat + sched\1308.dat output\sched.rom  
+ ) else if "%device_option%" equ "mesh" (
+  copy sched\mesh.dat output\sched.rom
+) else (
+
+cd ..
+echo **********************************
+echo Error: illegal device_option !
+echo **********************************
+goto end
+) 
+
+perl util/mergepatch.pl 
+
+echo Start to generate EEPROM code
+
+cd output
+osiuasm bt_program23 -O-W
+
+::geneep -n -k key.dat
+geneep -n
+
+echo eeprom.dat is filling with 0xff......
+cd ..\output
+copy eeprom.dat ..\util\eeprom.dat
+
+cd ..\util
+eeprom2fulleeprom.exe eeprom.dat 64>compare2.dat
+crc16.exe compare2.dat 2 >..\output\eeprom.dat
+del eeprom.dat
+del compare2.dat
+
+echo eeprom.dat_with0xff Generated......
+
+if "%device_option%" equ "module" (
+	perl eeprom2hciimage_1021s.pl
+
+)
+:: perl ..\util\eeprom2hciimage.pl
+:: perl ..\util\bin2array.pl > bt_patch.h
+
+:end
+
Index: ep.bat
===================================================================
--- /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/ep.bat	(nonexistent)
+++ /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/ep.bat	(working copy)
@@ -0,0 +1,11 @@
+call do.bat eep
+e ku
+ping -n 2 127.1 >nul
+e pu
+e 8070 3e6c6d   
+e er 0 10 
+e ew 0 1122
+e er 0 10 
+e ep
+e er 0 10
+e ku
Index: format/Hid.format
===================================================================
--- /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/format/Hid.format	(nonexistent)
+++ /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/format/Hid.format	(working copy)
@@ -0,0 +1,21 @@
+
+(
+/*HID TYPE*/
+0x01 HID_TYPE_CONTROL
+0x04 HID_TYPE_GET_REPORT
+0x05 HID_TYPE_SET_REPORT
+0x07 HID_TYPE_SET_PROTOCOL
+0x09 HID_TYPE_SET_IDLE
+0x0a HID_TYPE_DATA
+/*HID REPORT ID*/
+0x01 HID_REPORT_ID_KB
+
+0x00 HID_CONTROL_P_NOOPERATION
+0x01 HID_CONTROL_P_HARDRESET
+0x02 HID_CONTROL_P_SOFTRESET
+0x03 HID_CONTROL_P_SUSPEND
+0x04 HID_CONTROL_P_EXITSUSPEND
+0x05 HID_CONTROL_P_VIRTUALCABLEUNPLUG
+)
+
+
Index: format/app.format
===================================================================
--- /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/format/app.format	(nonexistent)
+++ /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/format/app.format	(working copy)
@@ -0,0 +1,369 @@
+
+memalloc(
+
+/* load code */
+1 mem_ucode_status
+1 mem_spid_tbuf				/* spid buf: 03 addr[23:16] addr[15:8] addr[7:0] */
+0 mem_iicd_tbuf				/* iicd buf: iic_adr addr[15:8] addr[7:0] iic_adr */
+1 mem_addr_hi
+1 mem_addr_mi
+1 mem_addr_lo
+1 mem_iicd_addr
+4 mem_spid_rbuf
+2 mem_ucode_buf
+2 mem_ucode_len
+2 mem_sched_addr
+2 mem_ucode_ptr
+16 mem_ucode_keybuf
+
+1 mem_spid2_tbuf
+1 mem_addr_hi2
+1 mem_addr_mi2
+1 mem_addr_lo2
+4 mem_spid2_rbuf
+1 mem_reconnect_flag
+1 mem_switch_fail_master_count
+1 mem_app_evt_timer_count
+)
+
+xmemalloc(
+1 mem_app_handshake_flag
+2 mem_sniff_param_interval
+2 mem_sniff_param_attempt
+2 mem_sniff_param_timeout
+
+/*App Callback Functons*/
+2 mem_cb_check_wakelock
+2 mem_cb_before_hibernate
+2 mem_cb_before_lpm
+2 mem_cb_le_process
+2 mem_cb_bt_process
+2 mem_cb_idle_process
+2 mem_cb_bb_event_process
+2 mem_cb_discovry_timeout
+2 mem_cb_att_write
+2 mem_cb_ble_transmit
+2 mem_cb_event_timer
+2 mem_cb_bt_set_mult
+2 mem_cb_spi_flash_write_complate
+2 mem_cb_spi2_flash_write_complate
+2 mem_cb_bt_slave_match
+
+
+2 mem_eeprom_base
+
+1 mem_unsniff2sniff_timer_count
+//lpm mode
+1 mem_wake_up_delay_timer
+
+1 mem_app_connection_options
+
+//
+2 mem_app_disconn_reason
+2 mem_app_disconn_reason_flag
+1 mem_lpm_delay_after_sniff
+3 mem_gain_table
+
+1 mem_xrecord_mode
+
+1 mem_eeprom_block_size
+1 mem_spi_init_clk
+1 mem_spi_init_delay_time
+1 mem_spi_ncs_gpio
+
+2 mem_nv_data_ptr
+1 mem_nv_data_number
+
+2 mem_queue_ptr
+
+1 mem_ui_led_struct_num
+2 mem_ui_led_struct_ptr
+
+//adc
+2 mem_3v_adc_io_data
+2 mem_3v_adc_hvin_data
+2 mem_2v_adc_vinlpm_data
+2 mem_1v_adc_io_data
+2 mem_5v_adc_hvin_data
+2 mem_3v_adc_vinlpm_data
+1 mem_app_adc_read_count
+1 mem_start_adc_clkn
+2 mem_reference_voltage
+1 mem_adc_config_flag
+1 mem_adc_channel
+2 mem_adc_current_value
+1 mem_adc_power_flag	//bit0:low power falg ; bit1:no power flag
+
+3 mem_spi_write_addr
+2 mem_spi_write_ptr
+2 mem_spi_write_len
+1 mem_spi_write_flash_sm
+3 mem_spi2_write_addr
+2 mem_spi2_write_ptr
+2 mem_spi2_write_len
+1 mem_spi2_write_flash_sm
+
+1 mem_spi_cs_gpio
+1 mem_spi_si_gpio
+1 mem_spi_so_gpio
+1 mem_spi_sclk_gpio
+1 mem_spi_wp_gpio
+1 mem_spi_hold_gpio
+1 mem_spi2_cs_gpio
+1 mem_spi2_si_gpio
+1 mem_spi2_so_gpio
+1 mem_spi2_sclk_gpio
+1 mem_spi2_wp_gpio
+1 mem_spi2_hold_gpio
+
+1 mem_eeprom_wp_gpio
+1 mem_eeprom_scl_gpio
+1 mem_eeprom_sda_gpio
+2 mem_kscan_ptr
+0 mem_key_num_ptr
+2 mem_keyscan_ptr
+2 mem_power_param_ptr
+
+1 mem_enable_spi2_flag
+1 mem_seqi
+1 mem_set_cdb_on
+1 mem_syn_cal_ctrl
+
+1 mem_ac_detect_gpio
+0 mem_ac_detect_control
+1 mem_ac_detect_div
+1 mem_ac_detect_window
+)
+//adc read
+(
+0 ADC_CONFIG_VINLPM
+1 ADC_CONFIG_HVIN
+2 ADC_CONFIG_GPIO
+)
+
+
+(
+0 QUEUE_OFFSET_EACH_SIZE
+1 QUEUE_OFFSET_LENGTH
+2 QUEUE_OFFSET_CURR_NUM
+3 QUEUE_OFFSET_READ_PTR
+4 QUEUE_OFFSET_WRITE_PTR
+5 QUEUE_OFFSET_ELE_INIT_ADDR
+)
+(
+//Flash Register
+0x05 FLASH_READ_SATUS
+
+// Flash Status Register
+0x00 FLASH_STATUS_WIP
+0X01 FLASH_STATUS_WEL
+0X02 FLASH_STATUS_BP0
+0X03 FLASH_STATUS_BP1
+
+//Flash Write Sm
+0X00 FLASH_SM_NO_BUYS
+0X01 FLASH_SM_START
+0X02 FLASH_SM_ERASE_SECTOR
+0X03 FLASH_SM_WAIT_ERASE_SECTOR
+0X04 FLASH_SM_WRITE_DATA
+0X05 FLASH_SM_WAIT_WRITE_DATA
+
+
+//Flash Command
+0x02 FLASH_COMMAND_WRITE_DATA
+0x03 FLASH_COMMAND_READ_DATA
+0x06 FLASH_COMMAND_WRITE_ENABLE
+0x20 FLASH_COMMAND_SECTOR_ERASE
+0xAB FLASH_COMMAND_RELEASE_FROM_POWERDOWN
+0xb9 FLASH_COMMAND_POWERDOWN
+
+)
+
+
+//efuse 
+(
+0x00 EFUSE_OFFSET_UCODE	//1B
+0X01 EFUSE_OFFSET_DEVICE
+0x02 EFUSE_OFFSET_PERIPHERALS_LOCK
+0X03 EFUSE_OFFSET_OFFSET
+
+0x30 EFUSE_OFFSET_ADC
+0x3c EFUSE_OFFSET_KEY_ADDR	//4B
+
+//EFUSE_OFFSET_PERIPHERALS_LOCK
+0 EFUSE_SPI_LOCK_BIT
+1 EFUSE_SPI2_LOCK_BIT
+2 EFUSE_UART_LOCK_BIT
+3 EFUSE_UARTB_LOCK_BIT
+4 EFUSE_IIC_LOCK_BIT
+6 EFUSE_LE_LOCK_BIT
+7 EFUSE_BR_LOCK_BIT
+)
+
+/* data stored in eeprom */
+(
+0	eeprom_nv_ram
+
+)
+
+/*mem_app_handshake_flag*/
+(
+0 APP_HANDSHAKE_NULL
+1 APP_HANDSHAKE_DONE
+
+)
+/*mem_device_option*/
+(
+1 dvc_op_hci
+2 dvc_op_esl
+4 dvc_op_dongle
+5 dvc_op_test
+8 dvc_op_mouse
+9 dvc_op_shutter
+0x0a dvc_op_module
+0x0b dvc_op_ali_mesh
+0x0c dvc_op_hci_boot
+0x0d dvc_op_remote_car
+0x0e dvc_op_car
+0x0f dvc_op_antilost
+   
+)
+
+(
+3 UCODE_FLAG_ENC
+2 UCODE_FLAG_SKIP_EEP
+1 UCODE_FLAG_SKIP_FLASH
+0 UCODE_FLAG_HCI
+)
+
+
+(
+7 gpio_active_bit
+)
+(
+2 HID_HANDSHAKE_TIMEOUT
+
+)
+
+(
+1 APP_FLAG_RECONNECT
+)
+(
+5 LPM_WAKE_UP_DELAY_TIMER
+)
+
+
+//mem_app_disconn_reason
+//mem_app_disconn_reason_flag
+//bit map
+(
+2 APP_DISC_RSN_SIZE
+)
+(
+0 APP_DISC_BY_BUTTON
+1 APP_DISC_AFTER_PAIRING
+2 APP_DISC_AFTER_RECONN
+3 APP_DISC_AFTER_SNIFF
+4 APP_DISC_AFTER_SETUP_DONE
+5 APP_DISC_AFTER_HANDSHAKE
+6 APP_DISC_BT
+7 APP_DISC_BLE
+8 APP_DISC_L2CAP_REFUSED
+9 APP_DISC_SWITCH_FAIL
+)
+//eeprom init flag
+(
+0xaa55 EEPROM_INIT_FLAG
+)
+
+(
+1 KEY_CONF_STRUCT_LEN
+0 KEY_PIN_OFFSET
+)
+
+(
+12000000 PWM_12MHZ
+24000000 PWM_24MHZ
+33000 PWM_33KHZ
+)
+(
+0 POWER_OFF
+1 POWER_STARTING
+2 POWER_STANDBY
+)
+//power parameter offset(8 byte)
+(
+0 power_state_offset
+1 power_timer_offset
+2 power_off_timeout_offset
+3 power_starting_timeout_offset
+4 power_off_cb_offset
+6 power_starting_cb_offset
+8 power_standby_cb_offset
+10 ui_butten_up_cb_offset
+)
+
+//auth rom address
+(
+0x9000 mem_b_box
+0x9100 mem_e_box
+0x9200 mem_l_box
+0x9300 memk
+0x9400 mem_theta
+0x9420 mem_local_sig
+0x9fff mem_sim_slave
+//mouse
+0x9468 MOUSE_BT_SDP_ADDR
+0x9732 MOUSE_BLE_ATT_LIST_ADDR
+//dongle
+0x99A4 USB_KBDATA_VENDOR_DEFINE_ADDR
+0x99BF USB_KBDATA_ADDR
+0x99FF USB_MSDATA_ADDR
+0x9AA3 USB_DEVICEDATA_ADDR
+0x9AB6 USB_CONFDATA_ADDR
+//shutter
+0x9AF2 BLE_SHUTTER_GATT_LIST
+0x9C70 CLASSIC_SHUTTER_SDP_LIST
+0x9E57 BLE_SHUTTER_KEY_VALUE_LIST
+0x9E7F CLASSIC_SHUTTER_KEY_VALUE_LIST
+//car
+0x9EA7 BLE_CAR_ATT_LIST
+)
+
+(//NEC 61212
+9000 NEC61212_BOOT_CODE_START_TIME
+4500 NEC61212_BOOT_CODE_END_TIME
+
+9000 NEC61212_REPEAT_START_TIME
+2250 NEC61212_REPEAT_END_TIME
+
+560 NEC61212_DATA_BIT_1_START_TIME
+1690 NEC61212_DATA_BIT_1_END_TIME
+
+560 NEC61212_DATA_BIT_0_START_TIME
+560 NEC61212_DATA_BIT_0_END_TIME
+
+560 NEC61212_STOP_TIME
+
+42580 NEC61212_DATA2REPEAT_TIME
+98190 NEC61212_REPEAT2REPEAT_TIME
+
+0xffff NEC61212_TIMEOUT_TIME
+)
+
+(
+0x18 XTAL_24M
+0x08 XTAL_16M
+)
+
+(
+0 ADC_GPIO_4
+1 ADC_GPIO_5
+2 ADC_GPIO_6
+3 ADC_GPIO_7
+4 ADC_GPIO_9
+5 ADC_GPIO_10
+6 ADC_GPIO_11
+7 ADC_GPIO_12
+)
+
Index: format/app_antiLost.format
===================================================================
--- /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/format/app_antiLost.format	(nonexistent)
+++ /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/format/app_antiLost.format	(working copy)
@@ -0,0 +1,204 @@
+xmemalloc antilost(
+// memblock for cover the variables portion at shutter.format
+2 mem_antl_lpm_interval
+2 mem_antl_adv_interval
+2 mem_antl_slow_adv_lpm_interval
+2 mem_antl_slow_adv_adv_interval
+0 mem_antl_led_style
+1 mem_antl_led_type
+1 mem_antl_led_blink_count
+1 mem_antl_led_gpio
+2 mem_antl_led_on_time
+2 mem_antl_led_off_time
+2 mem_antl_led_cb_on
+2 mem_antl_led_cb_off
+
+0 mem_antl_buzzer_style
+1 mem_antl_buzzer_type
+1 mem_antl_buzzer_blink_count
+1 mem_antl_buzzer_gpio
+2 mem_antl_buzzer_on_time
+2 mem_antl_buzzer_off_time
+2 mem_antl_buzzer_cb_on
+2 mem_antl_buzzer_cb_off
+
+0 mem_antl_fast_adv_led_style
+1 mem_antl_fast_adv_led_type
+1 mem_antl_fast_adv_led_blink_count
+1 mem_antl_fast_adv_led_gpio
+2 mem_antl_fast_adv_led_on_time
+2 mem_antl_fast_adv_led_off_time
+
+0 mem_antl_slow_adv_led_style
+1 mem_antl_slow_adv_led_type
+1 mem_antl_slow_adv_led_blink_count
+1 mem_antl_slow_adv_led_gpio
+2 mem_antl_slow_adv_led_on_time
+2 mem_antl_slow_adv_led_off_time
+
+0 mem_antl_power_starting_led_style
+1 mem_antl_power_starting_led_type
+1 mem_antl_power_starting_led_blink_count
+1 mem_antl_power_starting_led_gpio
+2 mem_antl_power_starting_led_on_time
+2 mem_antl_power_starting_led_off_time
+
+7 mem_antl_power_starting_buzzer_style
+
+0 mem_antl_power_off_led_style
+1 mem_antl_power_off_led_type
+1 mem_antl_power_off_led_link_count
+1 mem_antl_power_off_led_gpio
+2 mem_antl_power_off_led_on_time
+2 mem_antl_power_off_led_off_time
+
+0 mem_antl_power_off_buzzer_style
+1 mem_antl_power_off_buzzer_type
+1 mem_antl_power_off_buzzer_link_count
+1 mem_antl_power_off_buzzer_gpio
+2 mem_antl_power_off_buzzer_on_time
+2 mem_antl_power_off_buzzer_off_time
+
+7 mem_antl_alert_led_stlye
+
+0 mem_antl_alert_buzzer_stlye
+1 mem_antl_alert_buzzer_type
+1 mem_antl_alert_buzzer_blink_count
+1 mem_antl_alert_buzzer_gpio
+2 mem_antl_alert_buzzer_on_time
+2 mem_antl_alert_buzzer_off_time
+
+0 mem_antl_key_led_style
+1 mem_antl_key_led_type
+1 mem_antl_key_led_blink_count
+1 mem_antl_key_led_gpio
+2 mem_antl_key_led_on_time
+2 mem_antl_key_led_off_time
+
+7 mem_antl_key_buzzer_style
+
+1 mem_antl_queue_width
+1 mem_antl_queue_depth
+1 mem_antl_queue_curr_num
+1 mem_antl_queue_read_ptr
+1 mem_antl_queue_write_ptr
+80 mem_antl_queue_buff
+
+1 mem_antl_key_scan_enable
+1 mem_antl_led_num
+4 mem_antl_led_gpio_map
+
+0 mem_antl_power_param
+1 mem_antl_power_state
+1 mem_antl_power_timer
+1 mem_antl_power_off_timeout
+1 mem_antl_power_starting_timeout
+2 mem_antl_power_off_cb
+2 mem_antl_power_starting_cb
+2 mem_antl_power_standby_cb
+2 mem_event_button_up_cb
+
+1 mem_antl_key_num
+2 mem_cb_antl_key
+4 mem_antl_key_conf0
+
+15 mem_antl_key0_press
+15 mem_antl_key0_release
+
+///////
+1 mem_antl_conn_updata_procedure_state
+2 mem_client_characteristic_configuration_descriptor
+///////
+
+
+//100ms timer
+2 mem_adc_timer
+1 mem_antl_conn_update_timer
+1 mem_antl_send_updata_le_param_timer
+////
+
+2 mem_antl_le_sleep_timer
+2 mem_antl_fast_adv_timer
+2 mem_antl_fast_adv_timeout
+2 mem_antl_le_sleep_timeout
+1 mem_double_click_timer
+1 mem_butten_click_cnt
+
+//1 mem_dvc_seq
+/////////anti lost alarm state/////
+1 mem_antl_led_state
+1 mem_antl_buzzer_state
+1 mem_antl_key_state
+1 mem_antl_lost_mode
+1 mem_alarm_config
+1 mem_alarm_config_notfy_cnt
+
+6 mem_buzzer_pwm_conf
+
+
+/////////anti lost battery adc read////////
+2 mem_adc_timeout
+1 mem_voltage_remain_percent
+
+0 mem_battery_calculate_set
+2 mem_battery_full_voltage
+2 mem_battery_empty_voltage
+2 mem_battery_low_voltage
+2 mem_battery_current_voltage
+
+
+2 mem_rx_window_sniff_inc
+2 mem_interval_increment
+
+2 mem_antl_le_interval_min
+2 mem_antl_le_interval_max
+2 mem_antl_le_latency
+2 mem_antl_le_timeout
+2 mem_antl_le_unnormal_interval_min
+2 mem_antl_le_unnormal_interval_max
+2 mem_antl_le_unnormal_latency
+2 mem_antl_le_unnormal_timeout
+
+400 mem_AntiLost_le_att_list
+1 mem_lestate_update_param_flag
+1 mem_antilost_conn_battery_send_timer
+)
+
+//app new specific
+(
+0 CONN_PARAM_UPDATA_PROCEDURE_NO_INIT
+1 CONN_PARAM_UPDATA_PROCEDURE_STARTING
+2 CONN_PARAM_UPDATA_PROCEDURE_COMPLETE
+3 CONN_PARAM_UPDATA_PROCEDURE_FAILD
+)
+(
+0 NEW_SPEC_HEADER_OFFSET
+2 NEW_SPEC_OPCODE_OFFSET
+3 NEW_SPEC_DLEGTH_OFFSET  //data length offset
+5 NEW_SPEC_DADDR_OFFSET   //data address offset
+)
+(
+1 OPCODE1_BUTTEN_CLICK_ONCE
+2 OPCODE2_BUTTEN_DOUBLE_CLICK
+3 OPCODE3_ANTL_START_ALRAM
+4 OPCODE4_CURRENT_ALARM_STATE
+5 OPCODE5_BATTER_INFORMATION
+7 OPCODE7_ANTL_CONFIG_ALRAM
+)
+(
+0x0a NEW_SPEC_NOTIFY_HANDLE
+0x0b NEW_SPEC_NOTIFICATION_ENABLE_HANDLE
+0x0d NEW_SPEC_WRITE_HANDLE
+)
+//app new specific end
+
+//mem_anti_lost_mode
+(
+0x01 ANTI_LE_ALARM_ON
+0x00 ANTI_LE_ALARM_OFF
+)
+(
+0 NOTIFICATION_ENABLE_BIT
+1 INDICATION_ENABLE_BIT
+)
+
Index: format/app_car.format
===================================================================
--- /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/format/app_car.format	(nonexistent)
+++ /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/format/app_car.format	(working copy)
@@ -0,0 +1,326 @@
+
+
+xmemalloc g24_rx_car(
+1 mem_car_hard_soft_switch
+1 mem_car_queue_each_size
+1 mem_car__queue_length
+
+1 mem_car_queue_curr_num
+1 mem_car_queue_read_ptr
+1 mem_car_queue_write_ptr
+120 mem_car_queue_ele
+
+20 mem_car_pop_queue_buff
+
+1 mem_car_led_num
+10 mem_car_led_map
+
+1 mem_car_style1_led_type
+1 mem_car_style1_blink_count
+1 mem_car_style1_struct_led_gpio
+2 mem_car_style1_on_time
+2 mem_car_style1_off_time
+2 mem_car_style1_cb_ledon
+2 mem_car_style1_cb_ledoff
+
+1 mem_car_style2_led_type
+1 mem_car_style2_blink_count
+1 mem_car_style2_struct_led_gpio
+2 mem_car_style2_on_time
+2 mem_car_style2_off_time
+2 mem_car_style2_cb_ledon
+2 mem_car_style2_cb_ledoff
+
+//////motor
+0 mem_le_receive_data
+2 mem_le_receive_packet_head
+1 mem_le_receive_cmd
+2 mem_le_receive_length
+10 mem_le_receive_payload
+1 mem_le_receive_checksum
+1 mem_motor1_status
+1 mem_motor1_speed
+1 mem_motor2_status
+1 mem_motor2_speed
+1 mem_motor3_status
+1 mem_motor3_speed
+
+0 mem_motor1_pwm_set
+1 mem_motor1_pwm_pin1_set
+1 mem_motor1_pwm_pin2_set
+1 mem_motor1_pwm_pin_set
+1 mem_motor1_pwm_channel_set
+3 mem_motor1_pwm_freq_set
+1 mem_motor1_pwm_dute_set
+0 mem_motor2_pwm_set
+1 mem_motor2_pwm_pin1_set
+1 mem_motor2_pwm_pin2_set
+1 mem_motor2_pwm_pin_set
+1 mem_motor2_pwm_channel_set
+3 mem_motor2_pwm_freq_set
+1 mem_motor2_pwm_dute_set
+0 mem_motor3_pwm_set
+1 mem_motor3_pwm_pin1_set
+1 mem_motor3_pwm_pin2_set
+1 mem_motor3_pwm_pin_set
+1 mem_motor3_pwm_channel_set
+3 mem_motor3_pwm_freq_set
+1 mem_motor3_pwm_dute_set
+
+1 mem_motor_select_p_n
+1 mem_car_motor_status
+1 mem_car_motor_speed
+0 mem_motor_pwm_set
+1 mem_motor_pwm_pin1_set
+1 mem_motor_pwm_pin2_set
+1 mem_motor_pwm_pin_set
+1 mem_motor_pwm_channel_set
+3 mem_motor_pwm_freq_set
+1 mem_motor_pwm_dute_set
+
+1 mem_ir_rx_gpio
+2 mem_ir_data
+2 mem_ir_rx_buf
+4 mem_ir_receive_clkn
+
+3 mem_ir_notify_data
+5 mem_ir_notify_data_head
+2 mem_ir_notify_data_payload
+1 mem_ir_notify_data_check_sum
+1 mem_car_ir_breakdown_check_timer
+1 mem_car_ir_breakdown_flag
+
+0 mem_car_led_control
+1 mem_car_led1_status
+1 mem_car_led2_status
+1 mem_car_led3_status
+1 mem_car_led4_status
+1 mem_car_led5_status
+1 mem_car_led6_status
+1 mem_car_led7_status
+1 mem_car_led8_status
+1 mem_car_led_control_timer
+1 mem_car_led_blink_status
+1 mem_car_led_no
+
+3 mem_car_info_request
+5 mem_car_info_request_head
+8 mem_car_info_request_payload
+1 mem_car_info_request_checksum
+
+0 mem_car_config_param
+1 mem_car_config_setting_flag
+1 mem_car_config_device_select
+1 mem_car_config_motor_layout
+1 mem_car_config_ir_enable
+1 mem_car_config_ir_rx_gpio
+1 mem_car_config_pairing_led_conn_status
+1 mem_car_config_pairing_led_gpio
+1 mem_car_config_led_num
+0 mem_car_config_blood_led_gpio
+1 mem_car_config_blood_led1_gpio
+1 mem_car_config_blood_led2_gpio
+1 mem_car_config_blood_led3_gpio
+1 mem_car_config_blood_led4_gpio
+1 mem_car_config_blood_led5_gpio
+1 mem_car_config_blood_led6_gpio
+1 mem_car_config_blood_led7_gpio
+1 mem_car_config_blood_led8_gpio
+1 mem_car_config_bat_notify_enable
+1 mem_car_config_low_voltage_led_gpio
+1 mem_car_config_low_voltage_percent
+1 mem_car_config_soft_switch_enable
+1 mem_car_config_soft_switch_gpio
+
+1 mem_car_notify_vdd_count
+1 mem_car_notify_vdd_timer
+1 mem_car_notify_vdd_value_last
+1 mem_car_notify_vdd_percent
+1 mem_car_working_flag
+1 mem_low_bat_flag
+
+3 mem_notify_bat_packet
+5 mem_notify_bat_head
+1 mem_notify_bat_payload
+1 mem_notify_bat_check_sum
+
+1 mem_vdd_notify_flag
+2 mem_car_current_vdd_value_temp
+2 mem_car_last_vdd_value
+
+0 mem_vdd_calculate_set
+2 mem_vdd_full_vol
+2 mem_vdd_empty_vol
+2 mem_vdd_low_vol
+2 mem_vdd_now_vol
+
+
+1 mem_car_24g_status
+2 mem_car_24g_no_data_timeout_count
+2 mem_car_24g_no_data_timeout_timer
+
+1 mem_car_24g_ir_receive_attack_count
+1 mem_car_24g_go_die_flag
+1 mem_car_attack_shake_timer
+1 mem_car_attack_shake_flag
+
+0 mem_car_soft_power
+1 mem_car_power_state
+1 mem_car_power_timer
+1 mem_car_power_off_timeout
+1 mem_car_power_starting_timeout
+2 mem_car_power_off_cb
+2 mem_car_power_starting_cb
+2 mem_car_power_standby_cb
+2 mem_car_ui_button_up_cb
+
+
+500 mem_car_le_att_list
+
+1 mem_car_moto1_blank_timer
+1 mem_car_moto2_blank_timer
+1 mem_car_moto3_blank_timer
+
+1 mem_car_motor_gpio_num
+0 mem_car_motor_gpio_map
+1 mem_car_motor_left_gpio
+1 mem_car_motor_right_gpio
+1 mem_car_motor_front_gpio
+1 mem_car_motor_back_gpio
+1 mem_car_gpio
+1 mem_car_app_send_speed
+
+2 mem_rssi_sum
+2 mem_check_rssi_high_count
+8 mem_rssi_data
+
+1 mem_car_24g_received_pac
+1 mem_car_24g_bind_enable_delay_count
+
+0 mem_car_keyscan
+1 mem_car_key_num
+2 mem_cb_car_keyscan
+
+2 mem_car_enter_lpm_timer_count
+2 mem_car_enter_lpm_timer
+1 mem_car_enter_lpm_flag
+
+1 mem_car_24g_ch_polling
+
+8 mem_car_rssi_noise_buffer
+8 mem_car_rssi_noise_car_buffer
+8 mem_car_rssi_noise_remote_buffer
+
+
+)
+
+(
+//20ms
+0x0020	FAST_ADV_INTERVAL_VALUE_CAR
+)
+
+(
+0x14 ATT_CAR_CONTROL_HANDLE
+0x14 ATT_SPEED_SET_HANDLE
+)
+
+
+(
+0 TURN_FRONT
+1 TURN_LEFT
+2 TURN_RIGHT
+0 MOTOR_STOP
+1 GO_FRONT
+2 GO_BACK
+0x6b5a LE_RECEIVE_PACKET_HEAD
+)
+
+(
+0 FLAG_IR_DISABLE
+1 FLAG_IR_ENABLE
+)
+
+(
+0 DEVICE_CAR
+1 DEVICE_TANK
+2 DEVICE_BATTLE_CAR
+3 DEVICE_BATTLE_TANK
+4 DEVICE_REMOTE
+)
+
+(
+0 F_B_MOTOR
+1 L_R_MOTOR
+2 F_B_BATTERY
+3 L_R_BATTERY
+)
+
+(
+0 CAR_WORK	   		//connect mode normal
+1 CAR_BIND			//code pair mode
+2 CAR_TEST			//test mode
+3 CAR_CODE			//PC_application
+4 CAR_PCBA			//PCBA_TEST
+5 CAR_DEBUG
+6 CAR_MODE_MAX
+7 CAR_SEARCH
+)
+
+(
+1 SPEED_LEVEL_1
+2 SPEED_LEVEL_2
+3 SPEED_LEVEL_3
+4 SPEED_LEVEL_4
+5 SPEED_LEVEL_5
+6 SPEED_LEVEL_6
+7 SPEED_LEVEL_7
+8 SPEED_LEVEL_8
+9 SPEED_LEVEL_9
+10 SPEED_LEVEL_10
+)
+
+(
+0 PWM0_DUTY_SETTING
+1 PWM1_DUTY_SETTING
+2 PWM2_DUTY_SETTING
+)
+
+(
+1 CAR_CMD_BATTERY
+2 CAR_CMD_OLD_CAR_CONTROL
+3 CAR_CMD_OLD_SPEED_CONTROL
+4 CAR_CMD_L_R_MOTOR_CONTROL
+5 CAR_CMD_F_B_MOTOR_CONTROL
+6 CAR_CMD_IR_CONTROL
+7 CAR_CMD_LED_CONTROL
+8 CAR_CMD_DEVICE_INFO
+)
+
+(
+0 CAR_REMOTE_CHECK_BUTTON
+1 CAR_REMOTE_CHECK_ROCKER
+)
+
+(
+0x11 CAR_NOTIFY_HANDLE
+)
+
+(
+0 LED_OFF
+1 LED_ON
+2 LED_BLINK
+0xFF LED_INVALID
+)
+
+(
+0xFF INVALID_PIN_NUM
+)
+
+
+(
+0 POWER_ON
+1 WORK_PAIRED
+2 WORK_SEARCH
+)
+
+
Index: format/app_dongle.format
===================================================================
--- /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/format/app_dongle.format	(nonexistent)
+++ /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/format/app_dongle.format	(working copy)
@@ -0,0 +1,134 @@
+
+memalloc usb_dongle(
+256 mem_dg_rssi_noise_buffer
+256 mem_dg_rssi_noise_dg_buffer
+256 mem_dg_rssi_noise_ms_buffer
+256 mem_dg_rssi_noise_kb_buffer
+
+)
+
+
+xmemalloc g24_rx_dongle(
+1 mem_dg_kb_bind_flag
+8 mem_dg_kb_data_sta_data
+8 mem_dg_kb_data_last_data
+3 mem_dg_kb_multikey_sta_data
+3 mem_dg_kb_multikey_last_data
+3 mem_dg_kb_system_sta_data
+3 mem_dg_kb_system_last_data
+1 mem_dg_kb_blank_data_enable
+1 mem_dg_kb_mul_blank_data_enable
+1 mem_dg_ms_blank_data_enable
+
+1 mem_dg_config
+1 mem_dg_usb_tx_interval
+9 mem_dg_usb_vid_pid
+30 mem_dg_usb_device_name
+)
+
+
+(
+//mem_dg_config
+0x01 DG_CONFIG_LEN
+//byte 1
+0x00 DG_ENABLE_16M_XTAL
+0x01 DG_ENABLE_2K_EEPROM
+0x02 DG_ENABLE_KB_ICON
+)
+
+//eeprom address offset
+(
+0x5a DONGLE_KB_BIND_SUCCESS
+0x00 DONGLE_KB_BIND_EEPROM_OFFECT
+0x2f DONGLE_KB_BIND_EFUSE_OFFECT
+)
+
+(
+5 WORK_MODE_DELAY
+7 BIND_MODE_DELAY
+)
+
+(
+0 DONGLE_WORK	   		//connect mode normal
+1 DONGLE_BIND			//code pair mode
+2 DONGLE_TEST			//test mode
+3 DONGLE_CODE			//PC_application
+4 DONGLE_PCBA			//PCBA_TEST
+5 DONGLE_DEBUG
+6 DONGLE_MODE_MAX
+7 DONGLE_SEARCH
+0 CLEAR_INIT
+)
+
+
+(
+0xa0 COMMAND_MODE     //BYTE 0
+0x81 COM_MODE_BIND	//BYTE 1
+0x82 COM_MODE_TEST	//BYTE 1
+)
+(
+0xa1 COMMAND_BIND		//BYTE 0
+0x01 COM_BIND_GET		//1
+0x84 COM_BIND_EXIT		//1
+0xa7 COM_READ_MODE		//1
+)
+(
+0xa2 COMMAND_TEST	//BYTE 0
+0x81 COM_TEST_SC		//	进入单载波
+0x82 COM_TEST_CD		// fcc测试
+0x83 COM_TEST_DAT		// 数据测试
+0x84 COM_TEST_LOW_CH  //低频点
+0x85 COM_TEST_MID_CH	//中频点
+0x86 COM_TEST_HIG_CH	//高频点
+0x87 COM_TEST_SW_HIG	//自动切换频点为高 1mhz
+0x88 COIM_TEST_SW_LOW	//自动切换频点为低 1mhz
+0x89 COM_TEST_SW_STOP	//停止自动切换频点
+0x8a COM_TEST_POW_5		//设置输出功率5dbm
+0x8b COM_TEST_POW_0		//0dbm
+0x8c COM_TEST_POW_N5		//-5dbm
+0x8d COM_TEST_POW_N10		//-10dbm
+0x8e COM_TEST_EXIT			//退出测试模式
+)
+(
+0xa6 COMMAND_CURRENT_PROJECT
+0xa7 COMMAND_CURRENT_MODE
+0xa9 COMMAND_CURRENT_FW_VERSION
+0xb0 COMMAND_USER_DEFINED		//user defined cmd
+)
+
+(
+0x15 PRODUCT_ID
+0 FW_VERSION0
+0 FW_VERSION1
+1 FW_VERSION2
+7 FW_VERSION3
+)
+
+(
+8 TIMER_NODATA
+640 TIMER_NODATA_DELAY	//200ms
+
+11 TIMER_MS_BLANK
+384 TIMER_MS_BLANK_DELAY
+
+12 TIMER_KB_MUL_BLANK
+384 TIMER_KB_MUL_BLANK_DELAY
+
+14 TIMER_KB_BLANK
+384 TIMER_KB_BLANK_DELAY
+)
+
+(
+0 KB_NORMAL_REPORT_ID
+1 MS_REPORT_ID
+2 KB_SYSTEM_CONCTRL_REPORT_ID
+3 KB_MULTIKEY_REPORT_ID
+)
+
+
+(
+0x01 BIND_ACKPAYLOAD
+0x03 KB_LED_ACKPAYLOAD
+)
+
+
Index: format/app_esl.format
===================================================================
--- /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/format/app_esl.format	(nonexistent)
+++ /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/format/app_esl.format	(working copy)
@@ -0,0 +1,178 @@
+
+memalloc esl(
+256 mem_uncom_the_first_two_buff
+//uncompress pic buffers
+2200 mem_uncom_dest
+0 mem_uncom_clear_everytime_start
+2 mem_uncom_dest_index
+1 mem_uncom_src_index
+1 mem_uncom_block_len
+1 mem_uncom_block_head
+2 mem_uncom_block_body_ptr
+0 mem_uncom_clear_everytime_end
+
+0 mem_uncom_clear_once_start
+1 mem_uncom_the_first_two_index
+1 mem_uncom_repetitive
+1 mem_uncom_left_len
+2 mem_uncom_current_len
+2 mem_uncom_total_len
+2 mem_uncom_src_end
+0 mem_uncom_clear_once_end
+)
+
+xmemalloc esl(
+//eink_log
+96 mem_eink_log_ring_buffer
+1 mem_eink_log_front
+1 mem_eink_log_end
+12 mem_eink_log_ring_buffer_flag
+1 mem_eink_log_pend
+1 mem_eink_log_draw_byte
+
+1 mem_eink_log_last_star
+0 mem_eink_log_last_info
+1 mem_eink_log_last_letter
+1 mem_eink_log_last_cmd
+1 mem_eink_log_last_ch
+1 mem_eink_log_last_rssi
+1 mem_eink_log_last_is_byte
+
+0 mem_eink_log_info
+1 mem_eink_log_letter
+1 mem_eink_log_cmd
+1 mem_eink_log_ch
+1 mem_eink_log_rssi
+1 mem_eink_log_is_byte
+
+20 mem_eink_log_hex2dec
+1 mem_eink_log_hex2dec_len
+1 mem_eink_log_hex2dec_ptr
+1 mem_eink_log_push_zero
+
+//uncompress
+1 mem_uncom_fliter_datalen
+1 mem_uncom_fliter_data_flag
+1 mem_uncom_image_att_flag
+62 mem_uncom_image_att_buf
+
+//eink_init
+1 mem_scl
+1 mem_sda
+1 mem_cs
+1 mem_dc
+1 mem_res
+1 mem_busy
+1 mem_pb1
+3 mem_eink_xy
+8 mem_eink_orig
+8 mem_eink_setxy
+6 mem_eink_display
+2 mem_eink_size
+60 mem_eink_init
+20 mem_eink_init_offset
+6 mem_eink_reg_red
+6 mem_eink_reg_blank
+368 mem_eink_font
+48 mem_code93
+1 mem_barcode_start
+20 mem_barcode
+1 mem_barcode_len
+
+2 mem_eink_head
+2 mem_image_ptr
+2 mem_rx_cnt
+1 mem_update_state
+2 mem_parse_cnt
+1 mem_esl_24g_current_ch
+1 mem_esl_24g_behavior
+4 mem_esl_24g_id
+32 mem_esl_24g_rxpayload
+1 mem_esl_24g_rssi_save
+2 mem_battery_vol
+
+1 mem_rssi_save
+1 mem_rssi_temp
+)
+
+(
+//chars: ascii
+0x20 CHAR_SPACE
+0x21 CHAR_EXCLAMATION
+0x22 CHAR_DITTO
+0x23 CHAR_POUND
+0x24 CHAR_DOLLAR
+0x25 CHAR_PERCENT
+0x26 CHAR_AMPERSAND
+0x27 CHAR_APOSTROPHE
+0x28 CHAR_OPENING_PARENTHESIS
+0x29 CHAR_CLOSING_PARENTHESIS
+0x2a CHAR_ASTERISK
+0x2b CHAR_PLUS
+0x2c CHAR_COMMA
+0x2d CHAR_MINUS
+0x2e CHAR_DOT
+0x2f CHAR_SLASH
+
+0x8b CHAR_AT
+
+//letter: ascii - 0x20
+0x61 LETTER_A
+0x62 LETTER_B
+0x63 LETTER_C
+0x64 LETTER_D
+0x65 LETTER_E
+0x66 LETTER_F
+0x67 LETTER_G
+0x68 LETTER_H
+0x69 LETTER_I
+0x6a LETTER_J
+0x6b LETTER_K
+0x6c LETTER_L
+0x6d LETTER_M
+0x6e LETTER_N
+0x6f LETTER_O
+0x70 LETTER_P
+0x71 LETTER_Q
+0x72 LETTER_R
+0x73 LETTER_S
+0x74 LETTER_T
+0x75 LETTER_U
+0x76 LETTER_V
+0x77 LETTER_W
+0x78 LETTER_X
+0x79 LETTER_Y
+0x7a LETTER_Z
+)
+
+/* endpoint eink log */
+(
+0x60 EINK_LOG_MAX
+0x108 EINK_LOG_XY_START
+
+//fail reason
+0x00 EINK_LOG_RX_LOST
+0x01 EINK_LOG_OLD_PAC
+0x02 EINK_LOG_RX_NULL
+)
+
+(
+32 UNCOM_SRC_LENGTH
+31 UNCOM_SRC_INDEX
+62 UNCOM_IMAGE_ATT_LENTH
+)
+
+(
+2 mark_24g_old_packet
+7 mark_eink_red
+13 mark_barcode_end
+)
+
+(
+7 STATE_DATA_FINISH
+)
+
+(
+37 barcode_dot
+)
+
Index: format/app_module.format
===================================================================
--- /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/format/app_module.format	(nonexistent)
+++ /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/format/app_module.format	(working copy)
@@ -0,0 +1,282 @@
+
+memalloc module(
+	//ble
+	2 mem_module_le_rx_data_len
+	2 mem_module_le_rx_data_address
+	2 mem_module_le_rx_data_handle
+
+	0 mem_wechat_tx_buffer
+	1 mem_wechat_tx_bMagicNumber
+	1 mem_wechat_tx_bVer
+	2 mem_wechat_tx_nLength
+	2 mem_wechat_tx_nCmdId
+	2 mem_wechat_tx_nSeq1
+	255 mem_wechat_tx_payload
+
+	0 mem_wechat_rx_buffer
+	1 mem_wechat_rx_bMagicNumber
+	1 mem_wechat_rx_bVer
+	2 mem_wechat_rx_nLength
+	2 mem_wechat_rx_nCmdId
+	2 mem_wechat_rx_nSeq
+	255 mem_wechat_rx_payload
+
+	255 mem_module_wechat_local_data_buffer
+
+)
+
+xmemalloc module(	
+	2 mem_soft_version_num
+	1 mem_module_wake_up_gpio
+	1 mem_module_state_gpio
+	1 mem_module_connect_state_gpio
+
+	2 mem_current_packet_length
+	1 mem_module_state
+	
+	1 mem_module_mcu_wake_pin
+	4 mem_module_mcu_wake_delay_us
+
+	1 mem_module_spp_lpm_mult
+	1 mem_module_le_lpm_mult	
+	1 mem_module_bluetooth_stauts_by_command
+
+	//uart
+	2 mem_module_uart_rx_buffer
+	2 mem_module_uart_rx_buffer_end
+	2 mem_module_uart_tx_buffer
+	2 mem_module_uart_tx_buffer_end
+	2 mem_module_uarta_baud_rate
+
+	//ADC
+	1 mem_module_read_vdd_flag
+	1 mem_module_read_vdd_count
+	1 mem_module_vdd_quotient
+	1 mem_module_vdd_remainder
+
+	//ble
+	1 mem_module_ble_data_uart_max_length
+
+	//flag
+	2 mem_module_flag
+
+	1 mem_module_hci_notify_len
+	2 mem_module_hci_notify_handle
+	2 mem_module_hci_nofiy_addr
+	1 mem_module_hci_notify_type
+
+	4 mem_last_transmite_clock
+
+	1 mem_module_wechat_indication_handle
+	1 mem_module_wechat_write_handle
+	2 mem_module_wechat_tx_buffer_ptr
+	2 mem_module_wechat_rx_buffer_ptr
+	2 mem_module_wechat_rx_push_data_cb
+	2 mem_module_wechat_tx_nSeq
+	2 mem_module_wechat_tx_len
+	2 mem_module_wechat_tx_address
+	2 mem_module_wechat_rx_len
+	2 mem_module_wechat_rx_address
+	1 mem_module_wechat_receive_push_data
+
+	
+	300 mem_module_uuid_list
+	0 mem_module_uuid_list_end
+	600 mem_module_le_att_list
+	0 mem_module_le_att_list_end
+	0 mem_module_nv_data
+	34 mem_module_nv_data0
+	34 mem_module_nv_data1
+	34 mem_module_nv_data2
+	34 mem_module_nv_data3
+	34 mem_module_nv_data4
+	0 mem_module_nv_data_end
+)
+
+
+(//mem_module_flag
+//bit0~bit7 config module function
+0 MODULE_FLAG_UART_FLOW_CONTROL
+1 MODULE_FLAG_BLE_SEND_MTU23
+2 MODULE_FLAG_BLE_DATA_ENCRYPT
+
+//bit8~bit15 module states change
+8 MODULE_FLAG_BLE_DATA_FINISH
+9 MOUDLE_TASK_UNSNIFF
+10 MOUDLE_TASK_SNIFF
+
+)
+
+(
+34 NV_DATA_LEN
+-1 DECREASED_ONE
+)
+
+
+
+(
+	10 FLAG_MODULE_READ_VDD_COUNT
+)
+
+(
+	0x200 UART_AIR_CONTROL_THRESHOLD
+)
+
+(
+0x01 HCI_DISCARD_PACKET
+0x00 HCI_NOT_DISCARD_PACKET
+)
+
+
+
+(//Command
+0x00 HCI_CMD_SET_BT_ADDR_REQ
+0x01 HCI_CMD_SET_LE_ADDR_REQ
+0x02 HCI_CMD_SET_VISIBILITY_REQ
+0x03 HCI_CMD_SET_BT_NAME_REQ
+0x04 HCI_CMD_SET_LE_NAME_REQ
+0x05 HCI_CMD_SPP_DATA_REQ
+0x09 HCI_CMD_LE_DATA_REQ
+0x0b HCI_CMD_STATUS_IRQ
+0x0c HCI_CMD_SET_PAIRING_REQ
+0x0d HCI_CMD_SET_PINCODE_REQ
+0x0e HCI_CMD_SET_UARTCONTROL_REQ
+0x0f HCI_CMD_SET_UART_BAUD_REQ
+0x10 HCI_CMD_VERSION_REQ
+0x11 HCI_CMD_BT_DISCONNECT
+0x12 HCI_CMD_BLE_DISCONNECT
+0x13 HCI_CMD_DELETE_DEVICE
+0x14 HCI_CMD_CREATE_CONNECT
+0x15 HCI_CMD_SET_COD
+0x26 HCI_CMD_SET_NVRAM_REQ
+0x27 HCI_CMD_SLEEP
+0x28 HCI_CMD_CONFIRM_GKEY
+0x29 HCI_CMD_SET_CREDIT_GIVEN
+0x2a HCI_CMD_AUTO_ADV_SCAN
+0x2b HCI_CMD_POWER_REQ
+0x2c HCI_CMD_POWER_SET
+0x30 HCI_CMD_PASSKEY_ENTRY
+0x31 HCI_CMD_SET_GPIO
+0x32 HCI_CMD_READ_GPIO
+0x33 HCI_CMD_LE_SET_PAIRING
+0x34 HCI_CMD_LE_SET_ADV_DATA
+0x35 HCI_CMD_LE_SET_SCAN_DATA
+0x36 HCI_CMD_LE_SEND_CONN_UPDATE_REQ
+0x37 HCI_CMD_LE_SET_ADV_PARM
+0x38 HCI_CMD_LE_START_PAIRING
+0x40 HCI_CMD_SET_WAKE_GPIO
+0x42 HCI_CMD_SET_TX_POWER
+0x43 HCI_CMD_BOOT_VERSION_REQ
+0x48 HCI_CMD_LE_CONFIRM_GKEY
+0x49 HCI_CMD_REJECT_JUSTWORK
+0x51 HCI_CMD_RESET_CHIP_REQ
+
+0x61 HCI_CMD_LE_SET_FIXED_PASSKEY
+
+0x76 HCI_CMD_DELETE_CUSTOMIZE_SERVICE
+0x77 HCI_CMD_ADD_SERVICE_UUID
+0x78 HCI_CMD_ADD_CHARACTERISTIC_UUID
+0x7a HCI_CMD_PASSKEY_ENTRY_INPUT
+
+0x90 HCI_CMD_BLE_SET_PHY
+0x91 HCI_CMD_BLE_READ_CURRENT_PHY
+0x92 HCI_CMD_BLE_SET_DLE
+0x93 HCI_CMD_READ_CHIP_DATA
+0x94 HCI_CMD_WRITE_CHIP_DATA
+0x95 HCI_CMD_WECHAT_SEND_DATA
+0xff HCI_CMD_CLOSE_LPM
+)
+
+(//event
+0x00 HCI_EVENT_SPP_CONN_REP
+0x01 HCI_EVENT_HID_CONN_REP
+0x02 HCI_EVENT_LE_CONN_REP
+0x03 HCI_EVENT_SPP_DIS_REP
+0x04 HCI_EVENT_HID_DIS_REP
+0x05 HCI_EVENT_LE_DIS_REP
+0x06 HCI_EVENT_CMD_RES
+0x07 HCI_EVENT_SPP_DATA_REP
+0x08 HCI_EVENT_LE_DATA_REP
+0x09 HCI_EVENT_STANDBY_REP
+
+0x0a HCI_EVENT_STATUS_RES
+
+0x0D HCI_EVENT_NVRAM_REP
+0x0e HCI_EVENT_GKEY
+0x0F HCI_EVENT_INVALID_PACKET
+0x10 HCI_EVENT_GET_PASSKEY
+0x11 HCI_EVENT_LE_TK
+0x12 HCI_EVENT_REMOTE_MTU
+0x14 HCI_EVENT_LE_PAIRING_STATE
+0X15 HCI_EVENT_LE_ENCRYPTION_STATE
+0x17 HCI_EVENT_LE_CONNECTION_UPDATE
+0x1d HCI_EVENT_LE_GKEY
+0x29 HCI_EVENT_UUID_HANDLE
+0x2b HCI_EVENT_LE_INPUT_GKEY
+
+0x40 HCI_BLE_UPDATE_PHY_EVENT
+0x41 HCI_BLE_WECHAT_RECEIVE_PUSH_DATA
+)
+
+
+(//command HCI_CMD_SET_GPIO
+//byte 0
+0x00 HCI_CMD_CONFIG_GPIO_INPUT
+0x01 HCI_CMD_CONFIG_GPIO_OUTPUT
+//byte 1 input state
+0x00 GPIO_INPUT_PULLUP
+0x01 GPIO_INPUT_PULLDOWN
+0x02 GPIO_INPUT_HIGH_IMPEDANCE
+)
+
+
+
+(
+0x7e0 OTP_ADDR_RF_PARAM_FIX
+//struct of RF_PARAM_FIX
+// uint8       //length = param_pair_count * 2 
+// uint16     //param-pair-1
+// uint16     //param-pair-2
+// uint16     //param-pair-3
+// uint16     //param-pair-4
+// uint16     //param-pair-5
+// uint16     //param-pair-6
+// uint16     //param-pair-7
+)
+
+(
+0	BR_PAIRING_MODE_PINCODE
+1	BR_PAIRING_MODE_JUSTWORK
+2	BR_PAIRING_MODE_PASSKEY
+3	BR_PAIRING_MODE_NUMERIC
+
+0x81 BR_PAIRING_MODE_SECURE_CONNECT_JUSTWORK
+0x82 BR_PAIRING_MODE_SECURE_CONNECT_PASSKEY
+0x83 BR_PAIRING_MODE_SECURE_CONNECT_NUMERIC
+)
+
+
+(
+0x0001	FLAG_BT_PAIRING_SUCCESS
+0x0101	FLAG_BT_PAIRING_FAIL
+0x0080	FLAG_BLE_PAIRING_SUCCESS
+0x0180	FLAG_BLE_PAIRING_FAIL
+)
+
+
+(
+1	FLAG_EVENT_START_ENC
+0	FLAG_EVENT_PAUSE_ENC
+)
+
+(
+0 MOUDLE_STATE_BT_BIT
+1 MOUDLE_STATE_BLE_BIT
+)
+
+(
+5 BIT_OF_NOTIFY_AUTHENTICATED
+6 BIT_OF_READ_AUTHENTICATED
+7 BIT_OF_WRITE_AUTHENTICATED
+)
+
Index: format/app_mouse.format
===================================================================
--- /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/format/app_mouse.format	(nonexistent)
+++ /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/format/app_mouse.format	(working copy)
@@ -0,0 +1,633 @@
+
+memalloc mouse(
+2 mem_init_cnt
+2 mem_data_pre
+2 mem_data_current
+3 mem_data_sum
+2 mem_data_value
+
+
+)
+//dpi eeprom addr
+
+
+xmemalloc g24_tx_mouse(
+// Mouse Work Area
+1 mem_mouse_key
+2 mem_mouse_x
+2 mem_mouse_y
+1 mem_mouse_z
+1 mem_mouse_tz
+1 mem_mouse_xy_h
+1 mem_mouse_key_last
+
+//mouse wheel
+1 mem_wheel_tb_old_pinlevel
+1 mem_wheel_tb_new_pinlevel
+1 mem_wheel_tog 
+1 mem_mouse_tz_data
+1 mem_mwheel_b_old_pinlevel
+1 mem_mwheel_b_new_pinlevel
+1 mem_mwheel_tog 
+1 mem_mouse_z_data
+1 mem_mouse_wheel_trigger
+1 mem_mouse_wheel_trigger_timer
+
+// adc
+//adc struct
+0 mem_mouse_vdd_calculate_set
+2 mem_mouse_vdd_full_vol
+2 mem_mouse_vdd_empty_vol
+2 mem_mouse_vdd_low_vol
+2 mem_mouse_vdd_now_vol
+
+2 mem_mouse_vdd_button_press_vol
+2 mem_mouse_vdd_switch_gnd_24g_vol
+2 mem_mouse_vdd_switch_gnd_full_vol
+2 mem_mouse_vdd_switch_gnd_shutdown_voltage
+2 mem_mouse_vdd_switch_gnd_low_voltage
+1 mem_adc_config_flag_init
+1 mem_adc_mux_status
+1 mem_adc_read_timer
+1 mem_adc_read_time_init
+1 mem_adc_low_volatage_led_timer_count
+1 mem_adc_low_volatage_led_blink_enable
+2 mem_adc_reference_voltage
+1 mem_mouse_adc_last_low_voltage_flag
+1 mem_mouse_adc_button_press_flag
+
+
+//eeprom config param
+1 mem_config_sensor_type
+1 mem_config_sensor_dpi
+1 mem_lbutton_gpio
+1 mem_rbutton_gpio
+1 mem_mbutton_gpio
+1 mem_bk_button_gpio
+1 mem_fw_button_gpio
+1 mem_dpi_button_gpio
+1 mem_matrix_public_gpio
+1 mem_config_select_device_button_gpio
+1 mem_customer_key_gpio
+1 mem_whee_a_data_gpio
+1 mem_whee_b_data_gpio
+1 mem_whee_ta_data_gpio
+1 mem_whee_tb_data_gpio
+1 mem_sensor_motion_gpio
+1 mem_device_switch_gpio
+1 mem_config_low_voltage_alarm_gpio
+1 mem_config_device_24g_led_gpio
+1 mem_config_device_bt1_led_gpio
+1 mem_config_device_bt2_led_gpio	
+1 mem_dpi_led_gpio 
+1 mem_select_sensor_angle_gpio
+1 mem_sensor_angle_default
+1 mem_sensor_angle_switch
+0 mem_config_end
+1 mem_config_sensor_angle
+
+
+// usb
+1 mem_wire_usb_interval
+1 mem_usb_addr
+1 mem_mouse_usb_vdd_status
+1 mem_mouse_usb_keyboard_flag
+
+
+//led struct
+1 mem_mouse_led_type
+1 mem_mouse_blink_count
+1 mem_mouse_struct_led_gpio
+2 mem_mouse_on_time
+2 mem_mouse_off_time
+2 mem_mouse_cb_ledon
+2 mem_mouse_cb_ledoff
+
+//three devices param
+//eeprom/flash
+0 mem_mouse_information_start
+1 mem_device_flag
+1 mem_device1_type
+6 mem_device1_addr
+16 mem_device1_link_key
+6 mem_device1_locall_addr
+
+1 mem_device2_type
+6 mem_device2_addr
+16 mem_device2_link_key
+6 mem_device2_locall_addr
+
+1 mem_device3_type
+0 mem_mouse_compare_addr_ff
+6 mem_device3_addr
+16 mem_device3_link_key
+6 mem_device3_locall_addr
+2 mem_store_flag
+1 mem_mouse_dpi
+4 mem_mouse_24g_addr
+2 mem_random_addr_increase_count
+31 mem_mouse_retention
+0 mem_mouse_information_end
+
+3 mem_flash_base
+4 mem_write_flash_head_temp
+1 mem_store_information_delay_timer
+1 mem_store_information_delay_timer_init
+
+//sensor param
+1 mem_sensor_id1
+1 mem_sensor_id2
+
+1 mem_sensor_shutter_hi
+1 mem_sensor_shutter_lo
+1 mem_sensor_smart_flag
+1 mem_sensor_squal_reg
+1 mem_sensor_iqc
+1 mem_mouse_move_flag
+
+1 mem_mouse_asm_flag
+2 mem_mouse_x_pre
+2 mem_mouse_y_pre
+1 mem_mouse_data_xtemp
+1 mem_mouse_data_ytemp
+
+0 mem_mouse_dpi_seting
+1 mem_320x_dpi_0
+1 mem_320x_dpi_1
+1 mem_320x_dpi_2
+1 mem_320x_dpi_3
+1 mem_3212_dpi_0
+1 mem_3212_dpi_1
+1 mem_3212_dpi_2
+1 mem_3212_dpi_3
+1 mem_3610_dpi_0
+1 mem_3610_dpi_1
+1 mem_3610_dpi_2
+1 mem_3610_dpi_3
+1 mem_mouse_cpi_count
+1 mem_mouse_dpi_button_state
+1 mem_mouse_dpi_long_press_flag
+
+10 mem_sensor_3212_init
+10 mem_sensor_3204_init
+10 mem_sensor_3205_init
+26 mem_sensor_32xx_init
+34 mem_sensor_32xx_init_1
+26 mem_sensor_8650_init
+14 mem_sensor_ka8_init
+16 mem_sensor_8009_init
+10 mem_sensor_poweron_init
+
+1 mem_sensor_reset_gpio	
+1 mem_mouse_clear_sensor_data_flag
+1 mem_bluetooth_125hz_cnt
+
+//no motion pin
+1 mem_mouse_long_mult_flag
+1 mem_mouse_current_mult_timer
+
+1 mem_reconn_times
+1 mem_reconn_times_init
+2 mem_mouse_no_data_timer
+1 mem_device_flag_temp
+8 mem_mouse_rssi_signal_buf				
+4 mem_btclk_sensor
+1 mem_mouse_bluetooth_fast_conn_flag
+2 mem_mouse_discovery_timer
+2 mem_mouse_bluetooth_reconnect_timeout
+1 mem_mouse_need_soft_reset
+
+// le
+1 mem_mouse_le_bb_connected_flag
+1 mem_mouse_le_reconnect_flag
+1 mem_mouse_send_secutiry_request_timer
+
+3 mem_mouse_le_lap_temp
+3 mem_le_adv_ind
+3 mem_le_adv_direct_ind
+20 mem_le_adv_swift_pair
+1 mem_le_data_len
+2 mem_le_keyboard_handle
+2 mem_le_multimedia_handle
+2 mem_le_systemctrl_handle
+2 mem_le_battery_level_handle
+1 mem_le_battery_level_percentage
+2 mem_le_battery_level_updata_timer_init
+2 mem_le_battery_level_updata_timer
+1 mem_mouse_le_conn_param_reject
+32 mem_le_tx_buffer0_omemalloc
+32 mem_le_tx_buffer1_omemalloc
+32 mem_le_tx_buffer2_omemalloc
+32 mem_le_tx_buffer3_omemalloc
+1 mem_le_connect_status_flag
+1 mem_le_start_encrypt_timer
+2 mem_mouse_direct_timer
+
+//bt
+7 mem_device_addr_temp
+1 mem_mouse_enter_sniff_count
+1 mem_mouse_bt_boot_mode
+5 mem_mouse_bt_boot_data
+1 mem_bt_send_max_slot_req_accept_after_switch
+1 mem_mouse_bt_send_first_package_timer
+1 mem_mouse_bt_send_first_package_flag
+1 mem_lmi_opcode_temp 
+1 mem_lpm_mult_init
+
+// mouse key
+1 mem_customer_key
+1 mem_customer_data_trigger
+1 mem_customer_data_trigger_last
+
+1 mem_mouse_lkey_press_status
+1 mem_mouse_rkey_press_status
+1 mem_mouse_mkey_press_status
+1 mem_mouse_bkkey_press_status
+1 mem_mouse_fwkey_press_status
+1 mem_mouse_dpikey_press_status
+1 mem_mouse_pbkey_press_status
+1 mem_mouse_customerkey_press_status
+1 mem_mouse_key_temp
+1 mem_mouse_key_status
+
+1 mem_mouse_matrix_key_cow_count
+1 mem_mouse_matrix_key_row_count
+1 mem_mouse_ghost_flag
+1 mem_bt_discovery_count
+1 mem_select_device_count
+1 mem_mouse_commbination_key
+1 mem_select_device_button_statue
+1 mem_commbination_key_statue
+1 mem_combination_ui_button_count
+
+// 2.4G
+1 mem_mouse_search_dongle_interval
+1 mem_mouse_search_dongle_ch
+1 mem_mouse_search_dongle_count
+1 mem_mouse_search_dongle_action
+1 mem_24g_enter_lpm_timer
+1 mem_mouse_24g_enter_lpm_enable
+
+//led
+1 mem_mouse_device_poweron_timer_count
+1 mem_mouse_dpi_led_delay_count
+1 mem_mouse_led_off_4_led
+1 mem_24g_device_led_status
+
+// mouse configured param
+8 mem_mouse_flag 
+1 mem_mouse_bluetooth_type
+1 mem_device_number
+2 mem_mouse_direct_timeout
+2 mem_mouse_page_to
+1 mem_mouse_fast_direct_timeout
+2 mem_mouse_fast_page_to
+2 mem_mouse_24g_power_on_fast_conn_timer
+2 mem_mouse_no_data_timeout
+
+1 mem_mouse_device_poweron_timer_count_init
+1 mem_mouse_dpi_led_delay_count_init
+2 mem_mouse_dpi_led_blink_time
+2 mem_mouse_disconvey_led_blink_time
+2 mem_mouse_low_v_led_blink_time
+2 mem_adc_low_volatage_led_blink_timer
+
+1 mem_mouse_commbination_key_bt
+1 mem_mouse_commbination_key_24g
+
+9 mem_customer_key_press
+9 mem_customer_key_release
+3 mem_mouse_set_high_impedance_bit_set
+
+1 mem_24g_fast_hop_count
+4 mem_24g_long_sleep_set1
+1 mem_sensor_shutdown_flag
+
+1 mem_24g_ch_map_update
+4 mem_24g_ch_update_map1
+4 mem_24g_ch_update_map2
+4 mem_24g_ch_update_map3
+4 mem_24g_ch_update_map4
+
+2 mem_mouse_24g_search_dongle_time_init
+
+1 mem_mouse_sensor_config
+1 mem_adc_channel_gpio
+
+2 mem_mouse_discovery_timeout
+2 mem_mouse_24g_pair_timeout_init
+
+
+1 mem_rssi_dis_min_24g_init
+1 mem_rssi_dis_max_24g_init
+1 mem_rssi_hex_received_max_value_init
+
+1 mem_rssi_dis_min_24g
+1 mem_rssi_dis_max_24g
+1 mem_rssi_hex_received_max_value
+1 mem_rssi_dis_min_ble
+1 mem_rssi_dis_max_ble
+
+
+1 mem_mouse_global_setup
+1 mem_mouse_enable_flag
+
+1 mem_mouse_sensor_sclk_gpio
+1 mem_mouse_sensor_sdio_gpio
+
+38 mem_sensor_8650_init_new
+
+)
+
+
+(
+//SPI GPIO 
+0x0a MOUSE_SPI1_CLK_GPIO
+0x0b MOUSE_SPI1_SDIO_GPIO
+0X1E MOUSE_SPI2_CLK_GPIO
+0X1F MOUSE_SPI2_SDIO_GPIO
+//combination
+0x01 MOUSE_L_BUTTON
+0X02 MOUSE_R_BUTTON
+0x03 MOUSE_LR_BUTTON
+0X04 MOUSE_M_BUTTON
+0X05 MOUSE_LM_BUTTON
+0X06 MOUSE_RM_BUTTON
+0X07 MOUSE_LMR_BUTTON
+0x09 MOUSE_L_BK_BUTTON
+0x14 MOUSE_M_FW_BUTTON
+0X18 MOUSE_BK_FW_BUTTON
+//mouse default gpio
+0x1B MOUSE_DEFAULT_XA_GPIO
+0x1C MOUSE_DEFAULT_XB_GPIO
+
+//ui led blink
+0X00C8  LED_RECONNECT_BLINK //200
+0X0190  LED_DPI_BLINK //400
+0X03E8  LED_DPI_BLINK_FIXED    //1000
+0X03E8  LED_DISCOVERY_BLINK    //1000
+0XFF    LED_LONG_BLINK
+0x05	LED_SENSOR_BLINK_CNT
+//mode device number
+0x00 MODE_24G_DEVICE
+0x01 MODE_BT_DEVICE1
+0x02 MODE_BT_DEVICE2
+0x03 MODE_BT_DEVICE3
+//mouse  flag
+0X00 WRITE_REQ_ENABLE_FLAG
+0X01 LL_START_ENC_FLAG
+0X02 LL_PAIRING_SUCCESS_FLAG
+
+
+//mouse_function_flag
+0x08 MOUSE_FLAG_LEN
+//byte 1
+0x00 MOUSE_SELECT_DEVICE_FLAG
+0x01 MOUSE_24G_PAIRING_FLAG
+0x02 MOUSE_STORE_EEPROM_FLAG
+0x03 MOUSE_BT_CANNEL_RECONN_FLAG
+0x04 MOUSE_LOW_VOLTAGE_FLAG
+0x05 MOUSE_BT_DISCOVERY_BUTTON_DOWN_FLAG
+0x06 MOUSE_BT_DISCOVERY_BUTTON_LONG_DOWN_FLAG
+
+//byte 2
+0x08 MOUSE_ENABLE_BLE_RANDOM_ADDRE
+0x09 MOUSE_ENABLE_2K_EEPROM
+0x0a MOUSE_ENABLE_INIT_DELAY
+0x0b MOUSE_ENABLE_WAKEUP_FROM_POWER
+0x0c MOUSE_ENABLE_16M
+0x0d MOUSE_ENABLE_USB
+
+//byte 3
+0x10 MOUSE_ENABLE_SPI2
+0x11 MOUSE_ENABLE_24G
+0x12 MOUSE_ENABLE_FLASH
+0x13 MOUSE_ENABLE_EEPROM
+0x14 MOUSE_ENABLE_ADC
+0x15 MOUSE_ENABLE_KEYBOARD
+0x16 MOUSE_ENABLE_24G_SEARCH_DONGLE
+
+//byte 4
+0x18 MOUSE_ENABLE_24G_250Hz
+0x19 MOUSE_ENABLE_24G_500Hz
+0x1a MOUSE_ENABLE_24G_1000
+0x1b MOUSE_ENABLE_BT_125Hz
+0x1c MOUSE_ENABLE_DPI_LEVEL_4
+0x1d MOUSE_ENABLE_USB_250
+0x1e MOUSE_ENABLE_USB_500
+0x1f MOUSE_ENABLE_USB_1000
+
+//byte 5
+0x20 MOUSE_ENABLE_POWER_ON_LED
+0x21 MOUSE_ENABLE_LOW_VOLTAGE_LED
+0x22 MOUSE_ENABLE_LOW_VOLTAGE_USE_MODE_LED
+0x23 MOUSE_ENABLE_LOW_VOLTAGE_LED_BLINK_N_SECOND
+0x24 MOUSE_ENABLE_4_LED
+0x25 MOUSE_ENABLE_DPI_FOR_4_LED
+0x26 MOUSE_ENABLE_BT2_FOR_4_LED
+0x27 MOUSE_ENABLE_LOW_V_FOR_4_LED
+
+
+//byte 6
+0x28 MOUSE_ENABLE_SELECT_DEVICE_BY_DPI_BUTTON
+0x29 MOUSE_ENABLE_SELECT_DEVICE_BY_PB_BUTTON
+0x2a MOUSE_ENABLE_SELECT_DEVICE_BY_SWITCH_GPIO
+0x2b MOUSE_ENABLE_SELECT_DEVICE_BY_SWITCH_ADC
+0x2c MOUSE_ENABLE_DPI_KEY_CONNECT_GND
+0x2d MOUSE_ENABLE_PB_BUTTON_CONNECT_GND
+0x2e MOUSE_ENABLE_DPI_KEY_CONNECT_ADC
+0x2f MOUSE_ENABLE_24G_FIRST_AUTO_PAIRING
+//byte 7 
+0x30 MOUSE_ENABLE_AUTO_24G_PARING
+0x31 MOUSE_ENABLE_24G_POWER_ON_PAIRING
+0x32 MOUSE_ENABLE_COMMBINATION_KEY_BY_24G_PAIRING
+0x33 MOUSE_ENABLE_BT_RECONNECT_TIMEOUT_ENTER_DISCOVERY
+0x34 MOUSE_ENABLE_PB_BUTTON_SHORT_PRESS_ENTER_DISCOVERY
+0x35 MOUSE_ENABLE_COMMBINATION_KEY_BY_BT_DISCOVERY
+0x36 MOUSE_ENABLE_DPI_KEY_LONG_PRESS_DISCONVERY
+0x37 MOUSE_ENABLE_PB_BUTTON_LONG_PRESS_DISCONVERY
+
+//byte 8
+0x38 MOUSE_ENABLE_SMOOTHER
+0x39 MOUSE_ENABLE_XY_OFFSET
+
+//mouse dpi level
+0x00 MOUSE_DPI_LEVEL1
+0x01 MOUSE_DPI_LEVEL2
+0x02 MOUSE_DPI_LEVEL3
+0x03 MOUSE_DPI_LEVEL4
+
+
+//mouse sensor angle
+0x00 MOUSE_6CLK_ANGLE
+0X01 MOUSE_9CLK_ANGLE
+0X02 MOUSE_12CLK_ANGLE
+0X03 MOUSE_3CLK_ANGLE
+
+
+
+0xFF GPIO_DISABLE
+
+//DPI button state 
+0x00 DPI_BUTTON_STATE_UP
+0x01 DPI_BUTTON_STATE_DOWN
+
+
+//PB button state 
+0x00 PB_BUTTON_STATE_UP
+0x01 PB_BUTTON_STATE_DOWN
+
+//Commbination_key state 
+0x00 COMMBINATION_KEY_STATE_UP
+0x01 COMMBINATION_KEY_STATE_DOWN
+
+
+//eeprom address offect
+0X00 MOUSE_INFO_EEPROM_OFFECT
+0x58 MOUSE_STORE_FLAG
+0X5A MOUSE_DPI_EEPROM_OFFECT	//1byte
+0X5B MOUSE_G24_ADDR_EEPROM_OFFECT	//4bytes
+0X5F MOUSE_RANDOM_ADDR_COUNT_EEPROM_OFFSET	//2bytes
+0X61 MOUSE_EEPROM_MODULE_INIT_FLAG
+
+// Sensor id number
+0x30 P32XX_ID1
+0x31 P3065_ID1
+0x3E P3610_ID1
+0x02 P3212_ID2
+0xD1 P3205_TJ3T_ID2
+0XD2 P3204_TJ3L_ID2
+0x54 PKA8_ID2
+0x70 P3065_XY_ID2
+0x00 P3065_ID2
+0x5a P_MX8650
+0xD8 P8009_ID2
+0x50 P6520A_ID2
+
+
+//Sensor type
+0X00 P3205
+0X01 P3065
+0X02 KA8
+0X03 P3204
+0X04 P3212
+0X05 P3610
+0X06 P3065_XY
+0x07 MX8650
+0x08 P8009
+0x09 P6520
+
+
+//p3610 smart enable flag
+0X00 P3610_SMART_ENABLE
+0X01 P3610_SMART_DISABLE
+
+
+//SENSOR REG
+0x00 PAN_REG_PID_L
+0x01 PAN_REG_PID_H
+0x02 PAN_REG_MOTION_STAUS
+0x03 PAN_REG_DELTA_X
+0x04 PAN_REG_DELTA_Y
+0x05 PAN_REG_OPRATION_MODE
+0x06 PAN_REG_CONFIG
+0x07 PAN_REG_IMAGE_QUALITY
+0x08 PAN_REG_OPRATION_STATE
+0x09 PAN_REG_WRITE_PROTECT
+0x0A PAN_REG_SLEEP_1
+0x0B PAN_REG_ENTER_TIME
+0x0C PAN_REG_SLEEP_2
+0x0D PAN_REG_IMAGE_THRESHOLD
+0x0E PAN_REG_IMAGE_RECGNITION
+
+
+0x06 MOUSE_DPI_ADDRESS
+0x05 MOUSE_P3610_DPI_ADDRESS
+0x0D MOUSE_P3212_DPI_XADDRESS
+0x0E MOUSE_P3212_DPI_YADDRESS
+
+)
+
+(
+0x01 ADV_FLAG_LIMITED_DISCOVERABLE
+0x04 ADV_FLAG_BREDR_NOT_SUPPORTED
+)
+
+(
+2 BIT_POWER_ON
+)
+//device option low 2
+(
+0 MODE_3_MOUSE
+1 MODE_4_MOUSE
+)
+
+
+(
+10 LE_LPM_DISABLE_TO
+1 LE_LPM_DISABLE
+0 LE_LPM_ENABLE
+
+12 LE_INTERVAL_15MS
+9 LE_INTERVAL_11_25MS//11.25ms
+7 LE_INTERVAL_8_75MS//8.75ms
+6 LE_INTERVAL_7_5MS//7.5ms
+12 CLASSIC_INTERVAL_7_5MS
+14 CLASSIC_INTERVAL_8_75MS
+18 CLASSIC_INTERVAL_11_25MS
+)
+
+(
+0x00 MOUSE_L_KEY
+0x01 MOUSE_R_KEY
+0x02 MOUSE_M_KEY
+0x03 MOUSE_BK_KEY
+0x04 MOUSE_FW_KEY
+0x05 MOUSE_DPI_KEY
+0x06 MOUSE_PB_KEY
+0x07 MOUSE_CUSTOMER_KEY
+)
+
+
+(
+0 G24_DISCONN_STATE
+1 G24_CONN_STATE
+
+8 G24_CH_NUMBER
+16 G24_CH_POLL_COUNT
+0x0708 G24_DISCONN_NODATA_TIMER
+)
+
+(
+0 MOUSE_ADC_CHECK_BATTERY_ONLY
+1 MOUSE_ADC_CHECK_MULTIPLE
+2 MOUSE_ADC_CHECK_GPIO_MULTIPLE
+3 MOUSE_ADC_CHECK_VINLPM_MULTIPLE
+)
+
+
+(
+0x5a MOUSE_USB_INTERFACE_INSERT
+0xa5 MOUSE_USB_INTERFACE_REMOVE
+)
+
+(
+0x10 MOUSE_BLE_L2CAP_TXBUFF_SIZE
+)
+
+(
+0 MOUSE_ADC_ENABLE
+1 MOUSE_SEARCH_DONGLE_ENABLE
+2 MOUSE_24G_250HZ_ENABLE
+3 MOUSE_CLK_16M_ENABLE
+4 MOUSE_DPI_4_LEVEL_ENABLE
+5 MOUSE_KEYBOARD_ENABLE
+
+7 MOUSE_DEVICE_NUMBER_FLAG
+
+)
+
+(
+5 TX_POWER_6DB
+)
+
Index: format/app_remote_car.format
===================================================================
--- /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/format/app_remote_car.format	(nonexistent)
+++ /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/format/app_remote_car.format	(working copy)
@@ -0,0 +1,159 @@
+
+xmemalloc g24_tx_remote(
+1 mem_remote_car_hard_soft_switch
+
+1 mem_remote_car_queue_each_size
+1 mem_remote_car_queue_length
+
+1 mem_remote_car_queue_curr_num
+1 mem_remote_car_queue_read_ptr
+1 mem_remote_car_queue_write_ptr
+90 mem_remote_car_queue_ele
+
+1 mem_remote_style_led_type
+1 mem_remote_style_blink_count
+1 mem_remote_style_struct_led_gpio
+2 mem_remote_style_on_time
+2 mem_remote_style_off_time
+2 mem_remote_style_cb_ledon
+2 mem_remote_style_cb_ledoff
+
+
+1 mem_remote_car_led_num
+8 mem_remote_car_led_map
+
+0 mem_remote_car_keyscan
+1 mem_remote_car_key_num
+2 mem_cb_remote_car_keyscan
+
+0 mem_remote_car_key_conf0
+1 mem_remote_car_key_conf0_pin
+0 mem_remote_car_key_conf1
+1 mem_remote_car_key_conf1_pin
+0 mem_remote_car_key_conf2
+1 mem_remote_car_key_conf2_pin
+0 mem_remote_car_key_conf3
+1 mem_remote_car_key_conf3_pin
+0 mem_remote_car_key_conf4
+1 mem_remote_car_key_conf4_pin
+0 mem_remote_car_key_conf5
+1 mem_remote_car_key_conf5_pin
+0 mem_remote_car_key_conf6
+1 mem_remote_car_key_conf6_pin
+
+
+//rocker
+1 mem_rocker_negative_flag
+1 mem_rocker_work_status
+2 mem_current_vdd_value_default_mid_x
+2 mem_current_vdd_value_default_mid_y
+2 mem_current_vdd_value_default_mid_temp
+2 mem_current_vdd_default_range
+2 mem_rocker_last_status
+0 mem_rocker_status
+1 mem_rocker_x_status
+1 mem_rocker_y_status
+
+0 mem_remote_car_config_param
+1 mem_remote_car_config_setting_flag
+1 mem_remote_car_config_key_map
+1 mem_remote_car_config_layout
+1 mem_remote_car_config_connect_led_gpio
+1 mem_remote_car_config_check_way
+1 mem_remote_car_config_soft_switch_enable
+1 mem_remote_car_config_soft_switch_gpio
+1 mem_remote_car_config_timeout_shutdown_enable
+
+0 mem_remote_car_24g_motor_packet
+1 mem_remote_car_24g_motor_packet_lenght
+2 mem_remote_car_24g_motor_send_packet_head
+1 mem_remote_car_24g_motor_send_cmd
+2 mem_remote_car_24g_motor_send_length
+0 mem_remote_car_24g_motor_send_payload
+2 mem_remote_car_24g_motor1_payload
+2 mem_remote_car_24g_motor2_payload
+2 mem_remote_car_24g_motor3_payload
+1 mem_remote_car_24g_motor_send_checksum
+
+0 mem_remote_car_24g_fire_packet
+1 mem_remote_car_24g_fire_packet_lenght
+2 mem_remote_car_24g_fire_send_packet_head
+1 mem_remote_car_24g_fire_send_cmd
+2 mem_remote_car_24g_fire_send_length
+2 mem_remote_car_24g_fire_send_payload
+1 mem_remote_car_24g_fire_send_checksum
+
+15 mem_remote_car_24g_tx_temp
+
+2 mem_remote_car_no_data_timeout
+2 mem_remote_car_no_data_timer
+
+0 mem_remote_car_soft_power
+1 mem_remote_car_power_state
+1 mem_remote_car_power_timer
+1 mem_remote_car_power_off_timeout
+1 mem_remote_car_power_starting_timeout
+2 mem_remote_car_power_off_cb
+2 mem_remote_car_power_starting_cb
+2 mem_remote_car_power_standby_cb
+
+1 mem_remote_key_status
+1 mem_remote_car_24g_status
+
+1 mem_remote_car_24g_auto_work_step
+1 mem_remote_car_24g_pair_success_flag
+1 mem_remote_car_empty_packet
+
+1 mem_remote_car_motor1_key0_press_state
+1 mem_remote_car_motor1_key1_press_state
+1 mem_remote_car_motor2_key2_press_state
+1 mem_remote_car_motor2_key3_press_state
+1 mem_remote_car_motor1_rel_state
+1 mem_remote_car_motor2_rel_state
+
+1 mem_remote_car_no_data_check
+)
+
+
+(
+// eeprom config
+0xb0 REMOTE_PARAM_EEPROM_CONFIG_ADDR
+//eeprom address offect
+0X00 REMOTE_INFO_EEPROM_OFFECT
+
+)
+
+
+(
+0x00 CONTROL_F_B_MOTOR
+0x02 CONTROL_L_R_MOTOR
+)
+
+(
+0x00 KEY_MAP_TEN
+0x01 KEY_MAP_LR
+)
+
+(
+0x00 CONTROL_F_B_TEN
+0x02 CONTROL_L_R_TEN
+0x03 CONTROL_L_R_LR
+)
+
+(
+0 KEY_CHECK
+1 ROCKER_CHECK
+)
+
+(
+1 MOTOR_POSITIVE
+2 MOTOR_NEGATIVE
+)
+
+(
+0 ROCKER_MIDDLE_KEY
+1 ROCKER_POSITIVE_KEY
+2 ROCKER_NEGATIVE_KEY
+)
+
+
Index: format/app_shutter.format
===================================================================
--- /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/format/app_shutter.format	(nonexistent)
+++ /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/format/app_shutter.format	(working copy)
@@ -0,0 +1,243 @@
+
+
+xmemalloc shutter(
+
+////////////////////////////////////
+//shutter common config
+1 mem_shutter_bluetooth_type
+////////////////////////////////////
+
+2 mem_shutter_config_eeprom_offset_addr
+
+////////
+2 mem_shutter_config_eeprom_start_flag
+1 mem_shutter_config_user_size
+///////
+1 mem_shutter_config_label
+2 mem_shutter_config_otp_addr
+///////////////////////////////////
+
+////////////////////////////////////
+//classic shutter config
+1 mem_classic_shutter_cable_unplug_conut
+1 mem_classic_shutter_hid_disconn_count
+2 mem_classic_shutter_random_mac_offset_addr
+////////////////////////////////////
+
+////////////////////////////////////
+//ble shutter config
+1 mem_ble_shutter_enable_notify
+2 mem_ble_shutter_reconn_dav_interval
+2 mem_ble_shutter_discovery_adv_interval
+2 mem_ble_shutter_reconn_timeout
+2 mem_ble_shutter_reconn_timer
+2 mem_ble_shutter_reconn_blink_on_time
+2 mem_ble_shutter_reconn_blink_off_time
+2 mem_ble_shutter_discovery_blink_on_time
+2 mem_ble_shutter_discovery_blink_off_time
+
+2 mem_ble_shutter_interval_min
+2 mem_ble_shutter_interval_max
+2 mem_ble_shutter_latency
+2 mem_ble_shutter_timeout
+
+2 mem_ble_shutter_interval_min_new
+2 mem_ble_shutter_interval_max_new
+2 mem_ble_shutter_latency_new
+2 mem_ble_shutter_timeout_new
+
+//////////////////shutter sleep timeout//////////////////
+2 mem_classic_shutter_discovery_timeout
+2 mem_classic_shutter_connect_timeout
+2 mem_ble_shutter_discovery_timeout
+2 mem_ble_shutter_connect_timeout
+2 mem_shutter_sleep_timeout
+2 mem_shutter_sleep_timer
+
+/////////////////////////////////////////////////////////////////
+1 mem_shutter_hard_soft_switch_case
+1 mem_shutter_soft_switch_button_gpio
+1 mem_shutter_soft_switch_power_state
+1 mem_shutter_soft_switch_poweron_time
+1 mem_shutter_soft_switch_poweroff_time
+2 mem_shutter_soft_switch_poweron_callback_function
+2 mem_shutter_soft_switch_poweroff_callback_function
+
+
+0 mem_shutter_keyscan
+1 mem_shutter_key_num
+2 mem_cb_shutter_keycan
+1 mem_shutter_key_conf0
+1 mem_shutter_key_conf1
+1 mem_shutter_key_conf2
+1 mem_shutter_key_conf3
+1 mem_shutter_key_conf4
+1 mem_shutter_key_conf5
+1 mem_shutter_key_conf6
+1 mem_shutter_key_conf7
+
+
+5 mem_key0_press
+5 mem_key1_press
+5 mem_key2_press
+5 mem_key3_press
+5 mem_key4_press
+5 mem_key5_press
+5 mem_key6_press
+5 mem_key7_press
+
+5 mem_key0_release	
+5 mem_key1_release
+5 mem_key2_release
+5 mem_key3_release
+5 mem_key4_release
+5 mem_key5_release
+5 mem_key6_release
+5 mem_key7_release
+
+5 mem_ble_data_buffer1
+5 mem_ble_data_buffer2
+5 mem_ble_data_buffer3
+5 mem_ble_data_buffer4
+5 mem_ble_data_buffer5
+5 mem_ble_data_buffer6
+5 mem_ble_data_buffer7
+5 mem_ble_data_buffer8
+50 mem_ble_data_buffer9_58
+
+5 mem_classic_data_buffer
+
+5 mem_classic_data_buffer1
+5 mem_classic_data_buffer2
+5 mem_classic_data_buffer3
+5 mem_classic_data_buffer4
+5 mem_classic_data_buffer5
+5 mem_classic_data_buffer6
+5 mem_classic_data_buffer7
+5 mem_classic_data_buffer8
+50 mem_classic_data_buffer9_58
+
+1 mem_queue_each_size
+1 mem_queue_length
+1 mem_queue_curr_num
+1 mem_queue_read_ptr
+1 mem_queue_write_ptr
+32 mem_queue_ele
+
+
+170 mem_shutter_nv_data
+
+0 mem_shutter_led_struct_app_led
+1 mem_shutter_led_struct_app_led_type
+1 mem_shutter_led_struct_app_led_blink_count
+1 mem_shutter_led_struct_app_led_gpio
+2 mem_shutter_led_struct_app_led_on_time
+2 mem_shutter_led_struct_app_led_off_time
+2 mem_shutter_led_struct_app_led_on_callback
+2 mem_shutter_led_struct_app_led_off_callback
+
+0 mem_shutter_power_off_led_style
+1 mem_shutter_power_off_led_style_type
+1 mem_shutter_power_off_led_style_blink_count
+1 mem_shutter_power_off_led_style_gpio
+2 mem_shutter_power_off_led_style_on_time
+2 mem_shutter_power_off_led_style_off_time
+2 mem_shutter_power_off_led_style_on_callback
+2 mem_shutter_power_off_led_style_off_callback
+
+1 mem_shutter_soft_swtich_botton_down
+11 mem_shutter_soft_swtich_led_struct_temp
+1 mem_shutter_power_off_timeout
+1 mem_shutter_power_off_timer
+
+2 mem_key_value_retention
+2 mem_shutter_key_conf0_temp
+1 mem_shutter_led_struct_app_led_gpio_temp
+1 mem_shutter_hard_soft_switch_case_temp
+)
+
+
+
+
+(
+0 BLE_SHUTTER
+1 CLASSIC_SHUTTER
+)
+
+(
+0x0000 NVRAM_EEPROM_OFFSET
+)
+
+(
+0x1b3a SHUTTER_EEPROM_CONFIG_CRC
+)
+
+(
+5 MAX_QUEUE_NUM
+5 SHUTTER_BLE_DATA_BUFFER
+5 SHUTTER_CLASSIC_DATA_BUFFER
+)
+
+
+(
+0x13	GATT_CONSUMER_NOTIFY_HANDLE
+0x14	GATT_CONSUMER_WRITE_HANDLE
+0x17	GATT_KEYBOARD_NOTIFY_HANDLE
+0x18	GATT_KEYBOARD_WRITE_HANDLE
+)
+
+(
+//20ms
+0x0020	FAST_ADV_INTERVAL_VALUE
+//100ms
+0x00a0	SLOW_ADV_INTERVAL_VALUE
+)
+
+
+(
+0 ATT_BIT_NOTIFICATION
+1 ATT_BIT_INDICATION
+)
+///////////////////////////////////////////////////////////////////////////////////////
+
+(
+0 HARD_SWITCH
+1 SOFT_SWITCH
+)
+
+
+(
+1  FLAG_SHUTTER_HID_DISCONN_TIMEOUT
+5 FLAG_SHUTTER_CABLE_UNPLUG_TIMEOUT
+)
+
+(//Data Rom Buffer Addr
+382		BLE_GATT_LIST_SIZE
+487		BT_SDP_LIST_SIZE
+40		BLE_KEY_VALUE_LIST_SIZE
+40		BT_KEY_VALUE_LIST_SIZE
+)
+
+
+(//soft switch power state
+0		SS_STATE_POWER_UP
+1		SS_STATE_POWER_ON
+2		SS_STATE_POWER_OFF
+)
+
+(
+0		SS_POWER_STATE_OFFSET
+1		SS_POWER_ON_TIME
+2		SS_POWER_OFF_TIME
+3		SS_POWER_ON_CB
+5		SS_POWER_OFF_CB
+
+)
+
+(
+
+0x4FFE SIM_IIC_SCL_GPIO_NUM
+0x4FFF SIM_IIC_SDA_GPIO_NUM
+
+)
+
Index: format/ble_protocol_stack/le.format
===================================================================
--- /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/format/ble_protocol_stack/le.format	(nonexistent)
+++ /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/format/ble_protocol_stack/le.format	(working copy)
@@ -0,0 +1,437 @@
+
+memalloc(
+260 mem_le_rxbuf
+
+/* security temp */
+4 mem_le_mic
+4 mem_le_peer_mic
+//8 mem_le_skdm
+//8 mem_le_skds
+16 mem_le_mrand
+
+
+/* ========= le context =========== */
+1 mem_le_state
+1 mem_le_mode
+2 mem_le_tsniff
+4 mem_le_anchor
+6 mem_le_clk_offset
+2 mem_le_receive_window
+6 mem_le_plap
+1 mem_le_conn_handle
+1 mem_le_arq
+1 mem_le_ch
+1 mem_le_hop
+2 mem_le_event_count
+4 mem_le_supervision_timer
+2 mem_le_instant
+1 mem_le_channels
+1 mem_le_op
+
+	/* these 3 should NOT be seperated */
+4 mem_le_access
+3 mem_le_crcinit
+1 mem_le_window_size
+
+	/* these 3 should NOT be seperated */
+2 mem_le_slave_latency
+2 mem_le_superto
+5 mem_le_channel_map
+
+
+1 mem_le_rx_phy
+1 mem_le_tx_phy
+
+9 mem_le_update_new_param
+
+16 mem_le_sk
+
+1 mem_le_peer_sca
+1 mem_le_err_code
+1 mem_le_ll_pairing_fail_reason
+
+5 mem_le_context_reserve
+/* ========= le context ending =========== */
+
+/* test */
+1 mem_le_testtype
+1 mem_cmd_le_create_conn
+
+)
+
+amemalloc mem_le_update_new_param(
+//update connection parameter
+	0 mem_le_new_param
+	1 mem_le_new_transmitwindowsize
+	2 mem_le_new_transmitwindowoffset
+	2 mem_le_new_conninterval
+	2 mem_le_new_connslavelatency
+	2 mem_le_new_connsupervisiontimeout
+)
+
+amemalloc mem_le_update_new_param(
+//update map parameter
+	5 mem_le_new_map
+)
+
+amemalloc mem_le_update_new_param(
+//update phy parameter
+	1 mem_le_new_m2s_phy
+	1 mem_le_new_s2m_phy
+)
+
+amemalloc mem_le_rxbuf(
+//data channel PDU
+	1 mem_le_rxbuf_data_header
+	1 mem_le_rxbuf_data_length
+	255 mem_le_rxbuf_data_payload
+)
+
+amemalloc mem_le_rxbuf(
+//data channel LL control PDU
+	1 mem_le_rxbuf_data_ll_header
+	1 mem_le_rxbuf_data_ll_length
+	1 mem_le_rxbuf_data_ll_opcode
+	26 mem_le_rxbuf_data_ll_control_data
+)
+
+xmemalloc(
+2 mem_le_dsniff
+
+2 mem_le_conn_interval
+
+1 mem_le_txheader
+1 mem_le_txlen
+256 mem_le_txpayload
+
+//modified name
+1 mem_le_name_len
+30 mem_le_name
+
+
+/* smp related */
+
+16 mem_le_ltk
+1 mem_ltk_exists
+16 mem_le_rconfirm
+16 mem_le_srand
+1 mem_le_iat
+1 mem_le_rat
+1 mem_le_preq
+1 mem_le_preq_iocap
+1 mem_le_preq_oob
+1 mem_le_preq_auth
+1 mem_le_preq_max_keysize
+1 mem_le_preq_init_key_distribution
+1 mem_le_preq_resp_key_distribution
+1 mem_le_pres
+1 mem_le_pres_iocap
+1 mem_le_pres_oob
+1 mem_le_pres_auth
+1 mem_le_pres_max_keysize
+1 mem_le_pres_init_key_distribution
+1 mem_le_pres_resp_key_distribution
+
+/* att related */
+
+2 mem_le_notify_handle
+1 mem_le_search_uuid_length
+16 mem_le_search_uuid
+
+
+
+//START of LE conn parameter structure
+0 mem_le_conn_param
+1 mem_le_conn_peer_addr_type
+6 mem_le_conn_peer_addr
+1 mem_le_conn_own_addr_type
+2 mem_le_interval_min
+2 mem_le_interval_max
+2 mem_le_latency
+2 mem_le_timeout
+//START of LE conn parameter structure
+
+
+3 mem_le_lap
+1 mem_le_uap
+2 mem_le_nap
+
+
+2 mem_le_local_mtu
+2 mem_le_remote_mtu
+
+8 mem_le_skdm
+8 mem_le_skds
+
+2 mem_le_init_superto
+2 mem_ui_le_uuid_table
+
+1 mem_le_secure_connect_flag
+1 mem_le_secure_connect_state
+1 mem_le_sc_confirm_gkey_flag
+
+
+1 mem_le_pairing_state
+1 mem_le_enc_state
+1 mem_le_pairing_mode
+4 mem_le_tk
+2 mem_le_ediv
+8 mem_le_rand
+16 mem_le_irk
+
+//LE attribute list
+4 mem_le_transmit_window
+
+//ble General configuration 
+1 mem_le_configuration
+16 mem_le_fixed_ltk
+2 mem_le_pairing_handle
+
+
+1 mem_le_packet_llid
+
+//for continue
+2 mem_le_l2cap_size
+2 mem_le_packet_len_recved
+2 mem_le_payload_ptr
+
+
+//ble gatt signaling
+1 mem_le_signaling_identifier
+2 mem_le_l2cap_signaling_conn_param_update_rsp_result
+
+1 mem_le_md_count
+
+2 mem_ble_l2cap_tx_buff0_ptr
+2 mem_ble_l2cap_tx_buff_size_ptr
+)
+
+(//mem_le_T_IFS
+150 PARAM_T_IFS_150US
+20000 PARAM_20MS_INIT
+-11 PARAM_SYNC_TIME_DIFFERENCE
+40 PARAM_CODED_C1_TERM1_TIME_40US
+1666 PARAM_WINDOWN_SIZE
+//T_IFS = 150-modem(CRC time)
+)
+
+
+(
+0 DEFAULT_STATES
+1 IPHONE_LOST_LTK
+2 MODULE_LOST_LTK
+3 LTK_NOT_LOST
+)
+
+	//BLE ErrorCodes
+	(    
+	0x01 ERROR_UNKNOWN_HCI_COMMAND
+	0x02 ERROR_NO_CONNECTION
+	0x03 ERROR_HARDWARE_FAILURE
+	0x04 ERROR_PAGE_TIMEOUT
+	0x05 ERROR_AUTHENTICATION_FAILURE
+	0x06 ERROR_KEY_MISSING
+	0x07 ERROR_MEMORY_FULL
+	0x08 ERROR_CONNECTION_TIMEOUT
+	0x09 ERROR_MAX_CONNECTIONS
+	0x0A ERROR_MAX_SCO_CONNECTIONS
+	0x0B ERROR_MAX_ACL_CONNECTIONS
+	0x0C ERROR_COMMAND_DISALLOWED
+	0x0D ERROR_HOST_REJECT_LIMITED_RESOURCES
+	0x0E ERROR_HOST_REJECT_SECURITY_REASONS
+	0x0F ERROR_HOST_REJECT_REMOTE_IS_ONLY_PERSONAL
+	0x10 ERROR_HOST_TIMEOUT
+	0x11 ERROR_UNSUPPORTED_FEATURE_OR_PARAMETER_VALUE
+	0x12 ERROR_INVALID_HCI_COMMAND_PARAMETERS
+	0x13 ERROR_REMOTE_USER_TERMINATED_CONNECTION
+	0x14 ERROR_REMOTE_LOW_RESOURCES
+	0x15 ERROR_REMOTE_POWERING_OFF
+	0x16 ERROR_CONNECTION_TERMINATED_BY_LOCAL_HOST
+	0x17 ERROR_REPEATED_ATTEMPTS
+	0x18 ERROR_PAIRING_NOT_ALLOWED
+	0x19 ERROR_UNKNOWN_LMP_PDU
+	0x1A ERROR_UNSUPPORTED_REMOTE_FEATURE
+	0x1B ERROR_SCO_OFFSET_REJECTED
+	0x1C ERROR_SCO_INTERVAL_REJECTED
+	0x1D ERROR_SCO_AIR_MODE_REJECTED
+	0x1E ERROR_INVALID_LMP_PARAMETER
+	0x1F ERROR_UNSPECIFIED_ERROR
+	0x20 ERROR_UNSUPPORTED_LMP_PARAMETER_VALUE
+	0x21 ERROR_ROLE_CHANGE_NOT_ALLOWD
+	0x22 ERROR_LMP_RESPONSE_TIMEOUT
+	0x23 ERROR_ERROR_TRANSACTION_COLLISION
+	0x24 ERROR_LMP_PDU_NOT_ALLOWED
+	0x25 ERROR_ENCRYPTION_MODE_NOT_ACCEPTABLE
+	0x26 ERROR_UNIT_KEY_USED
+	0x27 ERROR_QOS_NOT_SUPPORTED
+	0x28 ERROR_INSTANT_PASSED
+	0x29 ERROR_PAIRING_W_UNIT_KEY_NOT_SUPPORTED
+	0x2a ERROR_DIFFERENT_TRANSACTION_COLLISION
+	0x2c ERROR_QOS_UNACCEPTABLE_PARAMETER
+	0x2d ERROR_QOS_REJECTED
+	0x2e ERROR_CHANNEL_CLASSIFICATION_NOT_SUPPORTED
+	0x2f ERROR_INSUFFICIENT_SECURITY
+	0x30 ERROR_PARAMETER_OUT_OF_MANDATORY_PANGE
+	0x32 ERROR_ROLE_SWITCH_PENDING
+	0x34 ERROR_RESERVED_SLOT_VIOLATION
+	0x35 ERROR_ROLE_SWITCH_FAILED
+	0x36 ERROR_EXTENDED_INQUIRY_RESPONSE_TOO_LARGE
+	0x37 ERROR_SIMPLE_PAIRING_NOT_SUPPORTED_BY_HOST
+	0x38 ERROR_HOST_BUSY_PAIRING
+	0x3d ERROR_MIC_FAILURE
+	)
+
+
+	//modified_name
+	(
+	0X20 SPACE	
+	)
+	/* LE L2CAP CID */
+	(
+	0x0004 LE_L2CAP_CID_ATT
+	0x0005 LE_L2CAP_CID_SIGNAL
+	0x0006 LE_L2CAP_CID_SMP
+	)
+
+	//LE address type
+	(
+	0 LE_ADDR_TYPE_PUBLIC
+	1 LE_ADDR_TYPE_RANDOM
+	)
+	//LE address type bitmap
+	(
+	7 LE_RECEIVER_ADDR_BIT
+	6 LE_SENDER_ADDR_BIT
+	)
+	//LE SCAN TYPE
+	(
+	0x00 LE_SCAN_TYPE_PASSIVE //no SCAN_REQ shall be sent
+	0x01 LE_SCAN_TYPE_ACTIVE
+	)
+
+	//LE SCAN ENABLE
+	(
+	0x00 LE_SCAN_DISABLE
+	0x01 LE_SCAN_ENABLE
+	0x0101 LE_ACTIVE_SCAN_ENABLE
+	)
+
+	//LE FIND INFORMATION RESPONSE
+	//THE FORMAT OF THE INFORMATION DATA
+	(
+	0x01 UUID_SIZE_16BIT
+	0x02 UUID_SIZE_128BIT
+	)
+
+//	le_state_map 0-2 is reserved for state_inconn,state_insniff and state_sco
+(
+3 lestate_got_first_packet
+4 lestate_encryption
+5 lestate_update_param
+6 lestate_update_map
+7 lestate_update_phy
+)
+
+// 	le mode
+(
+0 lemode_idle
+1 lemode_slave
+3 lemode_master
+0x20 lemode_2m
+0x40 lemode_lr_s2
+0xc0 lemode_lr_s8
+)
+
+(
+0 llid0
+1 llid1
+2 nesn
+3 sn
+4 md
+5 wak
+6 txdat
+)
+
+(
+0x01 LLID_CONTINUE
+0x02 LLID_START
+0x03 LLID_LE_LL
+0x01 LLID_EMPTY
+)
+
+(
+4 LE_TX_BUFF_COUNT
+3 LE_TX_BUFF_UPDATE_LOOPCNT //LE_TX_BUFF_COUNT-1
+
+12 LE_MD_MAX_COUNT
+)
+
+
+(
+0 LE_INITATOR_LTK_BIT
+1 LE_INITATOR_IRK_BIT
+2 LE_INITATOR_CSRK_BIT
+)
+
+
+
+
+
+(
+0  LE_FIND_BY_TYPE_VAL_RES_NOT_FOUND
+1  LE_FIND_BY_TYPE_VAL_RES_FOUND_STARTING_HANDLE
+2  LE_FIND_BY_TYPE_VAL_RES_FOUND_ENDING_HANDLE
+
+)
+
+(
+0 MASTER_PUBLIC_ADDR
+1 MASTER_RANDOM_ADDR
+)
+
+(
+0x06 LE_ERR_PIN_OR_KEY_MISSING
+)
+
+(
+39 LE_CCM_DIRECTIONBIT
+)
+(
+36 BR_CCM_0_LENGTH_CONTINUATION
+37 BR_CCM_DIRECTIONBIT
+)
+
+(
+96000 TIMER_SMP_PAIRING_TIMEOUT //30S
+)
+
+
+
+//mem_le_enc_state
+(
+0 FLAG_LE_ENC_NULL
+1 FLAG_LE_RCV_ENC_START
+2 FLAG_LE_ENC_PAUSE
+3 FLAG_LE_RCV_START_ENC_RSP
+4 FLAG_LE_SEND_START_ENC_RSP
+5 FLAG_LE_SEND_START_ENC_REQ
+0xff FLAG_LE_ENC_END
+)
+
+(//mem_le_configuration
+//bit0:use fixed key , ble passkey pairing
+0 BIT_BLE_PASSKEY_FIXED_KEY
+//bit1:ble pairing use fixed long term key
+1 BIT_BLE_PAIRING_FIXED_LTK
+//bit2:ble transmit packet will set more data flag
+2 BIT_BLE_TRANSMIT_PACKET_BY_MD
+//bit3:master read handle, with requires an authenticated link
+3 BIT_BLE_READ_AUTH
+//bit4:master write handle, with requires an authenticated link
+4 BIT_BLE_WRITE_AUTH
+//bit5:cannot enter long sleep
+5 BIT_BLE_SHORT_MULT
+//bit6:DEAL baseband packet
+6 BIT_BLE_DEAL_BB_PACKET
+)
+
Index: format/ble_protocol_stack/le_advertising.format
===================================================================
--- /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/format/ble_protocol_stack/le_advertising.format	(nonexistent)
+++ /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/format/ble_protocol_stack/le_advertising.format	(working copy)
@@ -0,0 +1,104 @@
+
+xmemalloc(
+// parameters
+1 mem_le_scan_enable
+2 mem_le_scan_interval
+2 mem_le_scan_window
+
+
+1 mem_le_adv_data_len
+31 mem_le_adv_data
+1 mem_le_scan_data_len
+31 mem_le_scan_data
+
+//START of LE adv parameter structure
+1 mem_le_adv_enable
+0 mem_le_adv_param
+2 mem_le_adv_interval
+1 mem_le_adv_type
+1 mem_le_adv_own_addr_type
+6 mem_le_adv_direct_addr
+1 mem_le_adv_channel_map
+//END of LE adv parameter structure
+
+//START of LE scan parameter structure
+0 mem_le_scan_params
+1 mem_le_scan_type
+1 mem_le_scan_own_addr_type
+//END of LE scan parameter structure
+)
+
+amemalloc mem_le_rxbuf(
+//advertising channel PDU
+	1 mem_le_rxbuf_adv_header
+	1 mem_le_rxbuf_adv_length
+	255 mem_le_rxbuf_adv_payload
+)
+
+amemalloc mem_le_rxbuf(
+//advertising channel PDU
+//Scan Req
+	1 mem_le_rxbuf_adv_scan_req_header
+	1 mem_le_rxbuf_adv_scan_req_length
+	6 mem_le_rxbuf_adv_scan_req_scan_address
+	6 mem_le_rxbuf_adv_scan_req_adv_address
+)
+
+amemalloc mem_le_rxbuf(
+//advertising channel PDU
+//Connect IND
+	1 mem_le_rxbuf_adv_connect_ind_header
+	1 mem_le_rxbuf_adv_connect_ind_length
+	6 mem_le_rxbuf_adv_connect_ind_init_address
+	6 mem_le_rxbuf_adv_connect_ind_adv_address
+	4 mem_le_rxbuf_adv_connect_ind_access_address
+	3 mem_le_rxbuf_adv_connect_ind_crc_init
+	1 mem_le_rxbuf_adv_connect_ind_win_size
+	2 mem_le_rxbuf_adv_connect_ind_win_offset
+	2 mem_le_rxbuf_adv_connect_ind_interval
+	2 mem_le_rxbuf_adv_connect_ind_latency
+	2 mem_le_rxbuf_adv_connect_ind_timeout
+	5 mem_le_rxbuf_adv_connect_ind_channel_map
+	1 mem_le_rxbuf_adv_connect_ind_hop_and_sca
+)
+
+(
+0x01	GAP_ADTYPE_FLAGS
+0x02	GAP_ADTYPE_16BIT_MORE
+0x03	GAP_ADTYPE_16BIT_COMPLETE
+0x04	GAP_ADTYPE_32BIT_MORE
+0x05	GAP_ADTYPE_32BIT_COMPLETE
+0x06	GAP_ADTYPE_128BIT_MORE
+0x07	GAP_ADTYPE_128BIT_COMPLETE
+0x08	GAP_ADTYPE_LOCAL_NAME_SHORT
+0x09	GAP_ADTYPE_LOCAL_NAME_COMPLETE
+0x0a	GAP_ADTYPE_POWER_LEVEL
+0x16	GAP_ADTYPE_SERVICE_DATA
+0x2a	GAP_ADTYPE_MESH_MESSAGE
+0x2b 	GAP_ADTYPE_MESH_BEACON
+0xff	GAP_ADTYPE_MANUFACTURER_SPECIFIC
+)
+
+/* advertising channel PDU type */
+(
+0 ADV_IND
+1 ADV_DIRECT_IND
+2 ADV_NONCONN_IND
+3 SCAN_REQ
+3 AUX_SCAN_REQ
+4 SCAN_RSP
+5 CONNECT_REQ
+5 AUX_CONNECT_REQ
+6 ADV_SCAN_IND
+)
+
+(
+0 BIT_ADV_CHANNEL_MAP_37
+1 BIT_ADV_CHANNEL_MAP_38
+2 BIT_ADV_CHANNEL_MAP_39
+)
+
+(
+0xa0 param_le_sca
+)
+
Index: format/ble_protocol_stack/le_l2cap_att.format
===================================================================
--- /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/format/ble_protocol_stack/le_l2cap_att.format	(nonexistent)
+++ /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/format/ble_protocol_stack/le_l2cap_att.format	(working copy)
@@ -0,0 +1,194 @@
+
+xmemalloc(
+	1 mem_le_l2cap_att_states
+
+	/* should be together */
+	1 mem_le_att_opcode
+	2 mem_le_att_handle
+	1 mem_le_search_res
+
+)
+
+amemalloc mem_temp_block2(
+	2 mem_le_search_handle_start
+	2 mem_le_search_handle_end
+	0 mem_le_att_offset
+	1 mem_le_search_att_type_length
+	16 mem_le_search_att_type
+
+	1 mem_le_curr_att_len
+
+	2 mem_le_cur_attlist_start_ptr
+	2 mem_le_cur_handle_start
+	2 mem_le_cur_handle_end
+	1 mem_le_cur_uuid_length
+	16 mem_le_cur_uuid
+)
+
+
+amemalloc mem_le_rxbuf(
+//data channel ATT start PDU
+	1 mem_le_rxbuf_data_att_header
+	1 mem_le_rxbuf_data_att_length
+	2 mem_le_rxbuf_data_att_l2cap_length
+	2 mem_le_rxbuf_data_att_cid
+	1 mem_le_rxbuf_data_att_opcode
+	250 mem_le_rxbuf_data_att_payload
+)
+
+
+amemalloc mem_le_rxbuf(
+//data channel ATT continue PDU
+	1 mem_le_rxbuf_data_continue_header
+	1 mem_le_rxbuf_data_continue_length
+	255 mem_le_rxbuf_data_continue_payload
+)
+
+amemalloc mem_le_rxbuf(
+//data channel ATT write request PDU
+	1 mem_le_rxbuf_data_att_write_header
+	1 mem_le_rxbuf_data_att_write_length
+	2 mem_le_rxbuf_data_att_write_l2cap_length
+	2 mem_le_rxbuf_data_att_write_cid
+	1 mem_le_rxbuf_data_att_write_opcode
+	2 mem_le_rxbuf_data_att_write_handle
+	248 mem_le_rxbuf_data_att_write_payload
+)
+
+amemalloc mem_le_rxbuf(
+//data channel ATT prepare write request PDU
+	1 mem_le_rxbuf_data_prepare_att_write_header
+	1 mem_le_rxbuf_data_prepare_att_write_length
+	2 mem_le_rxbuf_data_prepare_att_write_l2cap_length
+	2 mem_le_rxbuf_data_prepare_att_write_cid
+	1 mem_le_rxbuf_data_prepare_att_write_opcode
+	2 mem_le_rxbuf_data_prepare_att_write_handle
+	2 mem_le_rxbuf_data_prepare_att_write_offset
+	246 mem_le_rxbuf_data_prepare_att_write_payload
+)
+
+(//bit of mem_le_l2cap_att_states
+0 BLE_L2CAP_SEND_INDICATION_PACKET
+0 BLE_L2CAP_RECV_CONFIRMATION_PACKET
+1 BLE_L2CAP_DEAL_WITH_CONTINUE_PACKET
+)
+
+(//bit map of att handle
+14 BIT_OF_ATT_HANDLE_READ_AUTHENTICATED
+15 BIT_OF_ATT_HANDLE_WRITE_AUTHENTICATED
+)
+
+
+
+(
+0 BIT_CHARACTERISTIC_BROADCAST
+1 BIT_CHARACTERISTIC_READ
+2 BIT_CHARACTERISTIC_WRITE_WITHOUT_RESPONSE
+3 BIT_CHARACTERISTIC_WRITE
+4 BIT_CHARACTERISTIC_NOTIFY
+5 BIT_CHARACTERISTIC_INDICATE
+6 BIT_CHARACTERISTIC_SIGNED_WRITE
+7 BIT_CHARACTERISTIC_EXTENDED_PROPERTIES
+)
+
+/* ATT OPCODE */
+(
+0x01 ATTOP_ERROR_RESPONSE
+0x02 ATTOP_EXCHANGE_MTU_REQUEST
+0x03 ATTOP_EXCHANGE_MTU_RESPONSE
+0x04 ATTOP_FIND_INFORMATION_REQUEST
+0x05 ATTOP_FIND_INFORMATION_RESPONSE
+0x06 ATTOP_FIND_BY_TYPE_VALUE_REQUEST
+0x07 ATTOP_FIND_BY_TYPE_VALUE_RESPONSE
+0x08 ATTOP_READ_BY_TYPE_REQUEST
+0x09 ATTOP_READ_BY_TYPE_RESPONSE
+0x0A ATTOP_READ_REQUEST
+0x0B ATTOP_READ_RESPONSE
+0x0C ATTOP_READ_BLOB_REQUEST
+0x0D ATTOP_READ_BLOB_RESPONSE
+0x0E ATTOP_READ_MULTIPLE_REQUEST
+0x0F ATTOP_READ_MULTIPLE_RESPONSE
+0x10 ATTOP_READ_BY_GROUP_TYPE_REQUEST
+0x11 ATTOP_READ_BY_GROUP_TYPE_RESPONSE
+0x12 ATTOP_WRITE_REQUEST
+0x13 ATTOP_WRITE_RESPONSE
+0x16 ATTOP_PREPARE_WRITE_REQUEST
+0x17 ATTOP_PREPARE_WRITE_RESPONSE
+0x18 ATTOP_EXECUTE_WRITE_REQUEST
+0x19 ATTOP_EXECUTE_WRITE_RESPONSE
+0x1B ATTOP_HANDLE_VALUE_NOTIFICATION
+0x1D ATTOP_HANDLE_VALUE_INDICATION
+0x1E ATTOP_HANDLE_VALUE_CONFIRMATION
+0x52 ATTOP_WRITE_COMMAND
+0xD2 ATTOP_SIGNED_WRITE_COMMAND
+0x1f ATTOP_CONTINUE
+0x9e EMPTY_LE_DATA_PRE
+0x9f EMPTY_LE_DATA
+)
+
+/* ATT error code */
+(
+0x01 ATT_ERR_INVALID_HANDLE
+0x02 ATT_ERR_READ_NOT_PERMITTED
+0x03 ATT_ERR_WRITE_NOT_PERMITTED
+0x04 ATT_ERR_INVALID_PDU
+0x05 ATT_ERR_INSUFFICIENT_AUTHENTICATION
+0x06 ATT_ERR_REQUEST_NOT_SUPPORTED
+0x07 ATT_ERR_INVALID_OFFSET
+0x08 ATT_ERR_INSUFFICIENT_AUTHORIZATION
+0x09 ATT_ERR_PREPARE_QUEUE_FULL
+0x0A ATT_ERR_ATTRIBUTE_NOT_FOUND
+0x0B ATT_ERR_ATTRIBUTE_NOT_LONG
+0x0C ATT_ERR_INSUFFICIENT_ENCRYPTION_KEY_SIZE
+0x0D ATT_ERR_INVALID_ATTRIBUTE_VALUE_LENGTH
+0x0E ATT_ERR_UNLIKELY_ERROR
+0x0F ATT_ERR_INSUFFICIENT_ENCRYPTION
+0x10 ATT_ERR_UNSUPPORTED_GROUP_TYPE
+0x11 ATT_ERR_INSUFFICIENT_RESOURCES
+)
+
+/* GATT Specifications*/
+(
+0X2900 CHARACTERTIC_EXTENDED_PROPERTIES
+0X2901 CHARACTERTIC_USER_DESCRIPTION
+0X2902 CLIENT_CHARACTERTIC_CONFIGURATION
+0X2903 SERVER_CHARACTERTIC_CONFIGURATION
+0X2904 CHARACTERTIC_PRESENTATION_FORMAT
+0X2905 CHARACTERTIC_AGGREGATE
+0X2906 VALID_RANGE
+0X2907 EXTERNAL_REPORT_REFERENCE
+0X2908 REPORT_REFERENCE
+0X290B ENVIR_SENSING_CONFIGURATION
+0X290C ENVIR_SENSING_MEASUREMENT
+0X290D ENVIR_SENSING_TRIGGER_SETTING
+)
+
+
+/*	SERVICE UUID	*/
+(
+0x1800 UUID_SERVICE_GENERIC_ACC
+0x1801 UUID_SERVICE_GENERIC_ATT
+0x180a UUID_SERVICE_DEVICE_INFO
+0x180f UUID_SERVICE_BATTERY
+0x1812 UUID_SERVICE_HIDS
+0x2800 UUID_GATT_PRIMARY_SERVICE
+0x2801 UUID_GATT_SECONDARY_SERVICE
+0X2802 UUID_GATT_INCLUDE
+0X2803 UUID_GATT_CHARACTERISTIC
+0X2A00 UUID_CHRCTR_DEVICE_NAME
+0X2A19 UUID_CHRCTR_BATTERY_LEVEL
+0X2A22 UUID_CHRCTR_KEYBOARD_INPUT
+0X2A23 UUID_CHRCTR_SYSTEM_ID 
+0X2A25 UUID_CHRCTR_SERIAL_NUMBER
+0X2A26 UUID_CHRCTR_FIRMWARE
+0X2A32 UUID_CHRCTR_KEYBOARD_OUTPUT
+0X2A33 UUID_CHRCTR_MOUSE_INPUT
+0X2A4A UUID_CHRCTR_HID_INFO
+0X2A4B UUID_CHRCTR_REPORT_MAP
+0X2A4C UUID_CHRCTR_HID_CTRL_POINT
+0X2A4D UUID_CHRCTR_REPORT
+0X2A4E UUID_CHRCTR_PROTOCOL_MODE
+)
+
+
+
Index: format/ble_protocol_stack/le_l2cap_att_wechat.format
===================================================================
--- /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/format/ble_protocol_stack/le_l2cap_att_wechat.format	(nonexistent)
+++ /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/format/ble_protocol_stack/le_l2cap_att_wechat.format	(working copy)
@@ -0,0 +1,82 @@
+
+amemalloc mem_temp_block2(
+	0 mem_wechat_initreq_base_request
+	2 mem_wechat_authreq_base_request
+	4 mem_wechat_authreq_protocol_version
+	2 mem_wechat_authreq_auth_protocol
+	2 mem_wechat_authreq_eam_mac_no_encrypt
+	2 mem_wechat_authreq_mac_address
+	6 mem_wechat_authreq_device_address
+
+	1 mem_wechat_indication_handle
+	1 mem_wechat_write_handle
+	2 mem_wechat_tx_buffer_ptr
+	2 mem_wechat_rx_buffer_ptr
+	2 mem_wechat_rx_push_data_cb
+	2 mem_wechat_tx_nSeq
+	2 mem_wechat_tx_len
+	2 mem_wechat_tx_address
+	2 mem_wechat_rx_len
+	2 mem_wechat_rx_address
+	1 mem_wechat_receive_push_data
+
+)
+
+xmemalloc(
+
+/*
+wechat Air sync protocol parse
+uint8_t indication handle
+uint8_t write handle
+
+*/
+2 mem_le_wechat_air_sync_ptr
+
+)
+
+(
+17 WECHAT_AIR_SYNC_STRUCT_SIZE
+)
+
+(
+0x0000 ECI_NONE
+0x1127 ECI_REQ_AUTH
+0x1227 ECI_REQ_SEND_DATA
+0x1327 ECI_REQ_INIT
+0x214E ECI_RESPONSE_AUTH
+0x224E ECI_RESPONSE_SEND_DATA
+0x234E ECI_RESPONSE_INIT
+0x3175 ECI_PUSH_RECEIVE_DATA
+0x3275 ECI_PUSH_SWITCH_VIEW
+0x3375 ECI_PUSH_SWITCH_BACKGROUD
+0x2F75 ECI_ERR_DECODE
+)
+
+(
+2 ECI_REQ_INIT_MESSAGE_LENGTH
+18 ECI_REQ_AUTH_MESSAGE_LENGTH
+)
+
+(
+0xFE WECHAT_HEAD_MAGIC_NUMBER
+0x01 WECAHT_HEAD_VERSION
+0x01FE WECHAT_RX_HEAD
+)
+
+(
+//push data
+0x0a 	TAG_RecvDataPush_BasePush
+0x12	TAG_RecvDataPush_Data
+0x18	TAG_RecvDataPush_Type
+)
+
+
+(
+0 WECHAT_PROTOCOL_MESSAGE_B_MAGIC_NUMBER
+1 WECHAT_PROTOCOL_MESSAGE_B_VER
+2 WECHAT_PROTOCOL_MESSAGE_N_LENGTH
+4 WECHAT_PROTOCOL_MESSAGE_N_CMD_ID
+6 WECHAT_PROTOCOL_MESSAGE_N_SEQ
+8 WECHAT_PROTOCOL_MESSAGE_PAYLOAD
+)
+
Index: format/ble_protocol_stack/le_l2cap_signalling.format
===================================================================
--- /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/format/ble_protocol_stack/le_l2cap_signalling.format	(nonexistent)
+++ /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/format/ble_protocol_stack/le_l2cap_signalling.format	(working copy)
@@ -0,0 +1,14 @@
+
+/* L2CAP Signaling OPCODE */
+(
+0x12 L2CAP_CONNECTION_PARAMETER_UPDATE_REQUEST
+0x13 L2CAP_CONNECTION_PARAMETER_UPDATE_RESPONSE
+)
+
+(
+0x0000 BLE_SIGNALING_CONNECT_PARAMETER_UPDATE_ACCEPTED
+0x0001 BLE_SIGNALING_CONNECT_PARAMETER_UPDATE_REJECTED
+)
+
+
+
Index: format/ble_protocol_stack/le_l2cap_smp.format
===================================================================
--- /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/format/ble_protocol_stack/le_l2cap_smp.format	(nonexistent)
+++ /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/format/ble_protocol_stack/le_l2cap_smp.format	(working copy)
@@ -0,0 +1,113 @@
+
+
+(
+0x00 LE_PAIRING_MODE_NONE
+0x01 LE_PAIRING_MODE_LAGACY_JUSTWORK
+0x02 LE_PAIRING_MODE_LAGACY_PASSKEY
+0x04 LE_PAIRING_MODE_LAGACY_PASSKEY_RES_INPUT
+0x81 LE_PAIRING_MODE_SECURE_CONNECT_JUSTWORK
+0x82 LE_PAIRING_MODE_SECURE_CONNECT_NUMERIC
+0x83 LE_PAIRING_MODE_SECURE_CONNECT_PASSKEY
+0x84 LE_PAIRING_MODE_SECURE_CONNECT_PASSKEY_RES_INPUT
+
+7 LE_PAIRING_MODE_SECURE_CONNECT_BIT
+)
+
+
+(
+0 FLAG_IOCAP_DISPLAYONLY
+1 FLAG_IOCAP_DISPLAYYESNO
+2 FLAG_IOCAP_KEYBOARDONLY
+3 FLAG_IOCAP_NOINPUTNOOUTPUT
+4 FLAG_IOCAP_KEYBOARDDISPLAY
+
+0x00 FLAG_OOB_DATA_FLAG_NO
+)
+
+(
+0x00 FLAG_LE_NO_BONDING_NO_MITM
+0x01 FLAG_LE_BONDING_NO_MITM
+0x04 FLAG_LE_NO_BONDING_MITM
+0x05 FLAG_LE_BONDING_MITM
+0x09 FLAG_LE_BONDING_NO_MITM_SECURE
+0x0D FLAG_LE_BONDING_MITM_SECURE
+
+2 LE_AUTH_MITM_BIT
+3 LE_AUTH_SECURE_CONNECTION_PAIRING_BIT
+)
+
+//mem_le_pairing_state
+(
+0 FLAG_LE_PAIRING_NULL
+1 FLAG_LE_PAIRING_START
+2 FLAG_LE_PAIRING_SEND_RECURITY_REQ
+3 FLAG_LE_PAIRING_RCV_PAIRING_REQ
+4 FLAG_LE_PAIRING_WAIT_STK_GENERATION
+5 FLAG_LE_PAIRING_RECEIVE_PAIRING_CONFIRM
+6 FLAG_LE_PAIRING_SEND_PAIRING_CONFIRM
+7 FLAG_LE_PAIRING_RECEIVE_PAIRING_RANDOM
+8 FLAG_LE_PAIRING_SEND_PAIRING_RANDOM
+9 FLAG_LE_PAIRING_AFTER_AUTH
+10 FLAG_LE_PAIRING_SEND_START_ENC_RSP
+11 FLAG_LE_PARING_SEND_ENC_INFORMATION
+12 FLAG_LE_PARING_SEND_MASTER_IDENTIFICATION 
+13 FLAG_LE_PARING_SEND_INDENTITY_INFORMATION
+0xff FLAG_LE_PAIRING_END
+)
+
+/* Security Manager Protocol Code */
+(
+0x01 SMP_PAIRING_REQUEST
+0x02 SMP_PAIRING_RESPONSE
+0x03 SMP_PAIRING_CONFIRM
+0x04 SMP_PAIRING_RANDOM
+0x05 SMP_PAIRING_FAILED
+0x06 SMP_ENCRYPTION_INFORMATION
+0x07 SMP_MASTER_IDENTIFICATION
+0x08 SMP_IDENTITY_INFORMATION
+0x09 SMP_IDENTITY_ADDRESS_INFORMATION
+0x0A SMP_SIGNING_INFORMATION
+0x0B SMP_SECURITY_REQUEST
+0x0c SMP_PAIRING_PUBLIC_KEY
+0x0d SMP_PAIRING_DHKEY_CHECK
+)
+
+(// pairing failed reason
+0x00 PAIRING_FAILED_RESERVED
+0X01 PAIRING_FAILED_PASSKEY_ENTRY_FAILED
+0X02 PAIRING_FAILED_OOB_NOT_AVAILABLE
+0X03 PAIRING_FAILED_AUTHENTICATION_REQUIRE
+0X04 PAIRING_FAILED_CONFIRM_VALUE_FAILED
+0X05 PAIRING_FAILED_PAIRING_NOT_SUPPORTED
+0X06 PAIRING_FAILED_ENCRYPTION_KEY_SIZE
+0X07 PAIRING_FAILED_COMMAND_NOT_SUPPORTED
+0X08 PAIRING_FAILED_UNSPECIFIED_REASON
+0X09 PAIRING_FAILED_REPEATED_ATTEMPTS
+0X0A PAIRING_FAILED_INVALID_PARAMETERS
+0X0B PAIRING_FAILED_DHKEY_CHECK_FAILED
+0X0C PAIRING_FAILED_NUMERIC_COMPARISON_FAILED
+0X0D PAIRING_FAILED_BR_EDR_PAIRING_IN_PROGRESS
+0X0E PAIRING_FAILED_KEY_DERIVATION_GENERATION_NOT_ALLOWED
+)
+
+/*LE secure connect state */
+(
+0x00 LE_SC_STAT_NULL
+0x01 LE_SC_STAT_RECEIVE_PUBLIC_KEY
+0x02 LE_SC_STAT_WAIT_SEND_PUBLIC_KEY
+0x03 LE_SC_STAT_SEND_PUBLIC_KEY
+0x04 LE_SC_STAT_RECEIVE_RANDOM
+0x05 LE_SC_STAT_SEND_RANDOM
+0x06 LE_SC_STAT_RECEIVE_DHKEY
+0x07 LE_SC_STAT_WAIT_CONFIRM_GKEY
+0x08 LE_SC_STAT_PASSKEY_WAIT_CONFIRM
+)
+
+
+(
+0 FLAG_LE_SC_CONFRIM_NULL
+1 FLAG_LE_SC_CONFRIM_GKEY_OK
+)
+
+
+
Index: format/ble_protocol_stack/le_ll.format
===================================================================
--- /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/format/ble_protocol_stack/le_ll.format	(nonexistent)
+++ /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/format/ble_protocol_stack/le_ll.format	(working copy)
@@ -0,0 +1,120 @@
+xmemalloc(
+8 mem_le_local_feature
+1 mem_le_tx_phys
+1 mem_le_rx_phys
+
+2 mem_remote_rx_max_octets
+2 mem_remote_rx_max_time
+2 mem_remote_tx_max_octets
+2 mem_remote_tx_max_time
+2 mem_local_rx_max_octets
+2 mem_local_rx_max_time
+2 mem_local_tx_max_octets
+2 mem_local_tx_max_time
+
+)
+
+/* LE control packet type */
+(
+0x00 LL_CONNECTION_UPDATE_IND
+0x01 LL_CHANNEL_MAP_IND
+0x02 LL_TERMINATE_IND
+0x03 LL_ENC_REQ
+0x04 LL_ENC_RSP
+0x05 LL_START_ENC_REQ
+0x06 LL_START_ENC_RSP
+0x07 LL_UNKNOWN_RSP
+0x08 LL_FEATURE_REQ
+0x09 LL_FEATURE_RSP
+0x0A LL_PAUSE_ENC_REQ
+0x0B LL_PAUSE_ENC_RSP
+0x0C LL_VERSION_IND
+0x0D LL_REJECT_IND
+0x0E LL_SLAVE_FEATURE_REQ
+0x0F LL_CONNECTION_PARAM_REQ
+0x10 LL_CONNECTION_PARAM_RSP
+0x11 LL_REJECT_IND_EXT
+0x12 LL_PING_REQ
+0x13 LL_PING_RSP
+0x14 LL_LENGTH_REQ
+0x15 LL_LENGTH_RSP
+0x16 LL_PHY_REQ
+0x17 LL_PHY_RSP
+0x18 LL_PHY_UPDATE_IND
+0x19 LL_MIN_USED_CHANNELS_IND
+0x1A LL_CTE_REQ
+0x1B LL_CTE_RSP
+0x1C LL_PERIODIC_SYNC_IND
+0x1D LL_CLOCK_ACCURACY_REQ
+0x1E LL_CLOCK_ACCURACY_RSP
+0x1F LL_CIS_REQ
+0x20 LL_CIS_RSP
+0x21 LL_CIS_IND
+0x22 LL_CIS_TERMINATE_IND
+0x23 LL_POWER_CONTROL_REQ
+0x24 LL_POWER_CONTROL_RSP
+0x25 LL_POWER_CHANGE_IND
+)
+
+
+
+(//bit map of mem_le_ll_feature
+//LL_FEATURE_REQ
+0 BIT_LL_FEATURE_LE_ENCRYPTION
+1 BIT_LL_FEATURE_CONNECTION_PARAMETERS_REQUEST_PROCEDURE
+2 BIT_LL_FEATURE_EXTENDED_REJECT_INDICATION
+3 BIT_LL_FEATURE_SLAVE_INITIATED_FEATURES_EXCHANGE
+4 BIT_LL_FEATURE_LE_PING
+5 BIT_LL_FEATURE_LE_DATA_PACKET_LENGTH_EXTENSION
+6 BIT_LL_FEATURE_LL_PRIVACY
+7 BIT_LL_FEATURE_EXTENDED_SCANNER_FILTER_POLICIES
+8 BIT_LL_FEATURE_LE_2M_PHY
+9 BIT_LL_FEATURE_STABLE_MODULATION_INDEX_TRANSMITTER
+10 BIT_LL_FEATURE_STABLE_MODULATION_INDEX_RECEIVER
+11 BIT_LL_FEATURE_LE_CODED_PHY
+12 BIT_LL_FEATURE_LE_EXTENDED_ADVERTISING
+13 BIT_LL_FEATURE_LE_PERIODIC_ADVERTISING
+14 BIT_LL_FEATURE_CHANNEL_SELECTION_ALGORITHM
+15 BIT_LL_FEATURE_LE_POWER_CLASS_1
+16 BIT_LL_FEATURE_MINIMUM_NUMBER_OF_USED_CHANNELS_PROCEDURE
+)
+(//function map of mem_le_ll_feature
+//LL_FEATURE_REQ
+0x1 FUN_LL_FEATURE_LE_ENCRYPTION
+0x2 FUN_LL_FEATURE_CONNECTION_PARAMETERS_REQUEST_PROCEDURE
+0x4 FUN_LL_FEATURE_EXTENDED_REJECT_INDICATION
+0x8 FUN_LL_FEATURE_SLAVE_INITIATED_FEATURES_EXCHANGE
+0x10 FUN_LL_FEATURE_LE_PING
+0x20 FUN_LL_FEATURE_LE_DATA_PACKET_LENGTH_EXTENSION
+0x40 FUN_LL_FEATURE_LL_PRIVACY
+0x80 FUN_LL_FEATURE_EXTENDED_SCANNER_FILTER_POLICIES
+0x100 FUN_LL_FEATURE_LE_2M_PHY
+0x200 FUN_LL_FEATURE_STABLE_MODULATION_INDEX_TRANSMITTER
+0x400 FUN_LL_FEATURE_STABLE_MODULATION_INDEX_RECEIVER
+0x800 FUN_LL_FEATURE_LE_CODED_PHY
+0x1000 FUN_LL_FEATURE_LE_EXTENDED_ADVERTISING
+0x2000 FUN_LL_FEATURE_LE_PERIODIC_ADVERTISING
+0x4000 FUN_LL_FEATURE_CHANNEL_SELECTION_ALGORITHM
+0x8000 FUN_LL_FEATURE_LE_POWER_CLASS_1
+0x10000 FUN_LL_FEATURE_MINIMUM_NUMBER_OF_USED_CHANNELS_PROCEDURE
+)
+
+(//bit of mem_le_tx_phys and mem_le_rx_phys
+0x00 BIT_LE_1M_PHY
+0x01 BIT_LE_2M_PHY
+0x02 BIT_LE_CODED_PHY
+
+0x02 BIT_LE_CODED_PHY_S2
+0x07 BIT_LE_CODED_PHY_S8
+)
+
+(//map of mem_le_tx_phys and mem_le_rx_phys
+0x01 FUN_TX_LL_1M_PHY
+0x02 FUN_TX_LL_2M_PHY
+0x04 FUN_TX_LL_CODED_PHY
+
+0x01 FUN_RX_LL_1M_PHY
+0x02 FUN_RX_LL_2M_PHY
+0x04 FUN_RX_LL_CODED_PHY
+)
+
Index: format/bt.format
===================================================================
--- /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/format/bt.format	(nonexistent)
+++ /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/format/bt.format	(working copy)
@@ -0,0 +1,1075 @@
+
+	width = 32
+	const length = 12000
+
+	/* ========= memory ============== */
+memalloc(
+/* 00-0f most frequently used area  */
+1 mem_le_adv_transmit
+1 mem_le_adv_waitcnt
+1 mem_le_adv_rcv
+1 mem_le_req_rcv
+1 mem_le_scanrsp_rcv
+1 mem_le_conn_rcv
+
+1 mem_inquiryscan_waitcnt
+1 mem_inquiryscan_rcvcnt
+1 mem_pagescan_waitcnt
+1 mem_pagescan_rcvcnt
+1 mem_pagescan_rcvfhscnt
+1 mem_slave_rcvcnt
+1 mem_page_transmit
+1 mem_page_rcv
+1 mem_page_rcv_fhs
+1 mem_master_rcvcnt
+
+/* 10-1f debug area */
+1 mem_fhs_wait_counter
+1 mem_newconnto_counter
+1 mem_inquiry_transmit
+1 mem_inquiry_rcv
+1 mem_fw_ver
+1 mem_current_context
+1 mem_le_ch_mapped
+1 mem_last_freq
+1 mem_rssi
+1 mem_rssi_hex
+1 mem_rx_type
+2 mem_rx_hec_err
+2 mem_rx_crc_err
+2 mem_context_ptr
+0 mem_modem_rssi
+8 mem_display
+8 mem_bcd
+
+		/* context swappable area */
+1 mem_state
+1 mem_mode
+2 mem_tsniff
+4 mem_sniff_anchor
+6 mem_clk_offset
+2 mem_rx_window
+3 mem_plap
+1 mem_puap
+2 mem_pnap
+1 mem_conn_handle
+1 mem_arq
+1 mem_lmp_to_send
+1 mem_lmi_opcode
+1 mem_lmo_reason
+1 mem_op
+1 mem_state_map
+4 mem_supervision_timer
+2 mem_supervision_to
+1 mem_name_offset
+1 mem_key_size
+1 mem_conn_sm
+12 mem_aco
+16 mem_kc
+1 mem_conn_timer
+1 mem_sniff_attempt
+1 mem_sniff_timeout
+2 mem_dsniff
+1 mem_amaddr
+1 mem_lmo_opcode1
+1 mem_lmi_opcode1
+1 mem_lmo_reason1
+1 mem_lmo_tid1
+1 mem_lmo_opcode2
+1 mem_lmi_opcode2
+1 mem_lmo_reason2
+1 mem_lmo_tid2
+8 mem_bt_context_reserve
+	/*context ending*/
+
+1 mem_current_sniff_attempt
+1 mem_current_sniff_timeout
+1 mem_nfreq_index_inq
+1 mem_nfreq_index_page
+1 mem_ninqy_index
+1 mem_fhs_misc
+
+
+
+/* lpo related */
+4 mem_subsniff_instant
+1 mem_subsniff_rate
+2 mem_subsniff_tcmax
+1 mem_subsniff_tsniff
+1 mem_lpm_adjust
+6 mem_sync_clke
+1 mem_lpm_current_mult
+4 mem_gpio_wakeup_low
+4 mem_gpio_wakeup_high
+
+
+//page
+1 mem_npage_index
+1 mem_page_mode
+4 mem_page_clk
+
+
+
+/*temp mem*/
+1 mem_temp_am_addr
+1 mem_temp_arq
+
+//
+2 mem_len
+4 mem_clkn_bt
+4 mem_clke_bt
+4 mem_dpll_clkn
+1 mem_connection_options
+
+1 mem_nameres_cnt
+2 mem_txptr
+2 mem_slot_offset
+
+//extm
+1 extm_fhs_misc
+1 extm_newconn_am_addr
+3 extm_class
+3 extm_lap
+1 extm_uap
+3 extm_nap
+
+21 mem_rxbuf
+
+//debug
+1 mem_debug_config
+1 mem_lch_code
+1 mem_fhs_am_addr
+1 mem_select_list_item
+0 mem_temp_reconn_record
+1 mem_record_bt_mode
+6 mem_temp_lap
+2 mem_list_item_ptr
+
+100 mem_eir
+
+
+2 mem_param_tx_setup
+2 mem_param_rf_setup
+2 mem_param_conn_access
+2 mem_param_clke_cal
+2 mem_param_pll_setup
+2 mem_param_rx_setup
+2 mem_param_dpll_start_delay
+2 mem_param_rt_rthalfslot
+2 mem_param_clke_cal_le_1m
+2 mem_param_clke_cal_le_2m
+2 mem_param_clke_cal_le_coded
+
+)
+
+memalloc iqcal (
+2 mem_vdk
+4 mem_vok
+6 mem_omega
+4 mem_b1
+4 mem_b2
+16 mem_u1
+16 mem_u2
+16 mem_q
+)
+
+memalloc test (
+/* test related */
+2 mem_tst_pktcnt_sync
+2 mem_tst_pktcnt_hec
+2 mem_tst_pktcnt_crc
+2 mem_tst_pktcnt_dmh
+3 mem_tmp_buffer_head
+80 mem_tmp_buffer
+
+
+1 mem_tester_emulate
+0 mem_temp_payload
+1 test_mode_scenario
+1 test_mode_hopping_mode
+1 test_mode_tx_freq
+1 test_mode_rx_freq
+1 test_mode_power_mode
+1 test_mode_poll_period
+1 test_mode_packet_type
+2 test_mode_data_length
+1 mem_test_mode_old_debug_config
+1 mem_tester_cnt
+
+)
+
+
+xmemalloc(
+/* patch enable 0x4000-0x403f  */
+
+1 mem_patch00
+1 mem_patch01
+1 mem_patch02
+1 mem_patch03
+1 mem_patch04
+1 mem_patch05
+1 mem_patch06
+1 mem_patch07
+1 mem_patch08
+1 mem_patch09
+1 mem_patch0a
+1 mem_patch0b
+1 mem_patch0c
+1 mem_patch0d
+1 mem_patch0e
+1 mem_patch0f
+1 mem_patch10
+1 mem_patch11
+1 mem_patch12
+1 mem_patch13
+1 mem_patch14
+1 mem_patch15
+1 mem_patch16
+1 mem_patch17
+1 mem_patch18
+1 mem_patch19
+1 mem_patch1a
+1 mem_patch1b
+1 mem_patch1c
+1 mem_patch1d
+1 mem_patch1e
+1 mem_patch1f
+1 mem_patch20
+1 mem_patch21
+1 mem_patch22
+1 mem_patch23
+1 mem_patch24
+1 mem_patch25
+1 mem_patch26
+1 mem_patch27
+1 mem_patch28
+1 mem_patch29
+1 mem_patch2a
+1 mem_patch2b
+1 mem_patch2c
+1 mem_patch2d
+1 mem_patch2e
+1 mem_patch2f
+1 mem_patch30
+1 mem_patch31
+1 mem_patch32
+1 mem_patch33
+1 mem_patch34
+1 mem_patch35
+1 mem_patch36
+1 mem_patch37
+1 mem_patch38
+1 mem_patch39
+1 mem_patch3a
+1 mem_patch3b
+1 mem_patch3c
+1 mem_patch3d
+1 mem_patch3e
+1 mem_patch3f
+
+	/* 3 device contexts  */
+88 mem_context
+1 mem_current_amaddr
+1 mem_lpm_mode
+1 mem_device_option
+1 mem_scan_mode
+4 mem_last_clkn
+
+	/* parameters */
+8 mem_features
+3 mem_lap
+1 mem_uap
+2 mem_nap
+1 mem_npage
+3 mem_glap
+3 mem_class
+2 mem_iscan_window
+2 mem_iscan_interval
+2 mem_pscan_window
+2 mem_pscan_interval
+2 mem_page_interval
+2 mem_page_window
+2 mem_page_to
+2 mem_inq_window
+1 mem_fcomp_mul
+1 mem_fcomp_div
+2 mem_rx_window_init
+2 mem_rx_window_sniff
+2 mem_rf_init_ptr
+
+	/* connection related */
+1 mem_last_type
+1 mem_last_type_esco
+1 mem_last_type_saved
+2 mem_retransmission_cnt
+4 mem_next_btclk
+
+1 mem_rf_rccal
+1 mem_handle_num
+1 mem_max_slot
+1 mem_eir_enable
+
+/* AFH related */
+4 mem_afh_instant
+2 mem_afh_error_total
+1 mem_afh_cfg
+1 mem_afh_new_mod
+5 mem_afh_map_lo
+5 mem_afh_map_hi
+1 mem_afh_used
+2 mem_afh_index
+11 mem_afh_map_new
+80 mem_afh_map
+4 mem_afh_timer
+10 mem_afh_classify_channel_map
+
+
+	/* lpm related */
+2 mem_chip_functions
+2 mem_lpm_wake_lock
+2 mem_lpm_interval
+1 mem_lpm_overhead
+1 mem_lpm_hibernate_switch
+1 mem_esco_addr
+1 mem_sniff_unint_lost
+1 mem_ptt
+4 mem_sleep_counter   //should be 0x41fc in REVC
+4 mem_sleep_counter_all
+6 mem_sleep_clkn
+3 mem_sniff_rcv
+3 mem_sniff_lost
+3 mem_clks_per_lpo
+
+1 mem_lpm_mult
+1 mem_lpm_mult_timeout
+1 mem_lpm_mult_cnt
+
+/* 8139-813b lpm_ctrl[31:12] */
+3 mem_lpm_config				
+
+1 mem_lpm_xtalcnt
+1 mem_lpm_buckcnt
+1 mem_lpm_ldocnt
+1 mem_lpm_isogate
+1 mem_lpm_isogate_final
+4 mem_lpm_ctrl3
+20 mem_saved_gpio	// should be 0x421e in REVC
+3 mem_saved_gsel
+8 mem_saved_mark
+1 mem_saved_spidctrl
+2 mem_patch_ptr
+2 mem_patch_len
+
+32 mem_timers
+
+/*LINK KEY*/
+1 mem_link_key_exists
+16 mem_link_key
+
+
+/* HCI */
+1 mem_hci_cmd
+1 mem_hci_conn_handle
+3 mem_hci_plap
+1 mem_hci_puap
+2 mem_hci_pnap
+
+
+1 mem_loadcode_times
+1 mem_llid
+
+1 mem_tx_lch
+2 mem_tx_len
+
+1 mem_tx_power
+
+ifdef DEBUG_RF_INIT
+1 mem_rf_init_data
+endif
+1 mem_system_clk
+0 mem_xtal_freq
+1 mem_gain_fix
+)
+
+(//mem_system_clk
+12 SYSTEM_CLK_12M
+24 SYSTEM_CLK_24M
+)
+
+(//bluetooth tx power
+0 TX_POWER_0DB
+1 TX_POWER_3DB
+2 TX_POWER_5DB
+3 TX_POWER_F3DB
+4 TX_POWER_F5DB
+
+10 TX_POWER_10DB
+0xf6 TX_POWER_F10DB
+0xec TX_POWER_F20DB
+)
+
+
+	/* context */
+(
+0x01 coffset_mode
+0x02 coffset_tsniff
+0x04 coffset_sniff_anchor
+0x08 coffset_clk_offset
+0x0e coffset_rx_window
+0x10 coffset_plap
+0x16 coffset_conn_handle
+0x17 coffset_arq
+	/* 3.0 only */
+0x18 coffset_lmp_to_send
+0x1b coffset_op
+0x1c coffset_state_map
+	/* le only */
+0x18 coffset_le_ch
+0x19 coffset_le_hop
+0x1a coffset_le_event_cnt
+0x1c coffset_le_supervision_timer
+0x20 coffset_le_instant
+0x22 coffset_le_channels
+0x23 coffset_le_op
+0x24 coffset_le_access
+0x28 coffset_le_crcinit
+0x2b coffset_le_window_size
+0x2c coffset_le_slave_latency
+0x2e coffset_le_slave_superto
+0x30 coffset_le_channel_map
+0x35 coffset_le_rx_phy
+0x36 coffset_le_tx_phy
+0x37 coffset_le_new_map
+0x37 coffset_le_new_m2s_phy
+0x38 coffset_le_new_s2m_phy
+0x37 coffest_le_new_transmitwindowsize
+0x38 coffest_le_new_transmitwindowoffset
+0x3a coffest_le_new_conninterval
+0x3c coffest_le_new_connslavelatency
+0x3e coffest_le_new_connsupervisiontimeout
+0x40 coffset_le_sk
+0x50 coffset_le_peer_sca
+0x53 coffset_le_transmit_window
+	
+88 context_size
+1 context_num
+)
+
+(
+0 lpm_flag_wake
+1 lpm_flag_loadcode
+)
+
+/* ========= parameters ============== */
+(
+0x0050 param_newconn_arq
+0x0007 param_esco_addr
+0x0010 param_conn_handle
+0x01f0 param_conn_handle_comp
+0x0020 param_newconnto
+0x0008 param_pagerespto
+0x0a00 param_snooze_setup_orig
+0x5353 param_snooze_ahead_orig
+0x00ff param_ninquiry
+0x2000 param_page_to
+0x0005 param_max_slot
+0x0010 param_sco_poll
+
+/* 24Mhz clock setting */
+ifdef CLK24M
+0x1c86 param_tx_setup
+0x0c00 param_rf_setup
+0x0c00 param_conn_access 
+0x1a00 param_rx_setup
+0x0776 param_clke_cal
+0x0a00 param_pll_setup
+4000 param_dpll_start_delay
+7500 param_halfclk
+60084 param_halfclk_neg
+-60084 param_halfclk_neg1
+else
+/* 12Mhz clock setting */
+0x0e43 param_tx_setup
+0x0600 param_rf_setup
+0x0600 param_conn_access 
+0x03bb param_clke_cal
+0x0500 param_pll_setup		// 120 is minimum
+0x0d00 param_rx_setup	// 114us before sync
+2000 param_dpll_start_delay
+3750 param_rt_rthalfslot
+
+480 param_clke_cal_le_1m	//preamble(1B) & access address(4B) time (1+4)*8*1 * 12
+288 	param_clke_cal_le_2m	//preamble(2B) & access address(4B) time (1+4)*8*1 * 12
+282 param_clke_cal_le_coded	//preamble(80us) & access address(256us)-312.5us(0.5slot)
+endif
+
+110 param_lpm_fix
+10 param_lpo_extra
+200 param_lpm_adjmax
+
+ifdef SIM
+20 param_hibernate_clks
+3 param_chgpump_delay
+else
+-1 param_hibernate_clks
+3000 param_chgpump_delay
+endif
+
+3 param_featrue_ssp
+0x0101 param_lmpext_ssp_enable
+30   param_sco_pktlen
+1     param_acl_pktcnt		/*buffer acl pkt cnt*/
+7     param_sco_pktcnt
+
+
+0x8fffff param_features0
+0x9d83fe param_features1  // not support afh
+0x8359     param_features2
+0x000033 param_unap
+0x001177 param_lap
+0x9e8b33 param_glap
+0x002540 param_class//0x180208 //0x002580//402500//240404
+0x000a04 param_lmp_version//0x0a04
+0x000a06 param_lmp_version0
+0x12e9 param_lmp_subversion
+0x0012 param_tisw
+0x0012 param_tpsw
+0x1000 param_tisi
+0x0800 param_tpsi
+0x0020 param_page_window
+0x0020 param_inq_window
+0x1c80 param_supervision_to
+39 param_fcomp_div
+2 param_fcomp_mul
+6     param_name_len
+0x535442 param_name
+0x344950 param_name1
+
+
+)
+
+/* ======= packet types  ========= */
+(
+0x0      type_null    
+0x1      type_poll   
+0x2      type_fhs    
+0x3      type_dm1    
+0x4      type_dh1    
+0x5      type_hv1    
+0x6      type_hv2    
+0x7      type_hv3    
+0x8      type_3dh1     
+0x9      type_aux1   
+0xa      type_dm3    
+0xb      type_dh3    
+0xe      type_dm5    
+0xf      type_dh5    
+0x10     type_id
+0x11     type_shutdown
+0x13     type_lmp
+)
+
+/* ========== flag[6] =============== */
+(
+0        always        /* always 1 */
+1        true          /* set/rstn by verify,compare,icompare (true) */
+2        positive      /* set/rstn by all alu operations (opcode = 0x03,0x13,0x0f,0x1f), if alu output >= 0 */
+3        timeout       /* read only, the timeout from timers */
+5        zero          /* set/rstn by all alu operations (opcode = 0x03,0x13,0x0f,0x1f), if alu output == 0 */
+6        crc_failed    /* level, cleared by hop_start */
+7        enable_white  /* outside mux decide whether to load bt_clk or response_X */
+8        enable_parity /* level */
+9        enable_crc    /* level */
+10       enable_hec    /* level */
+11       decode_fec1   /* level */
+12       decode_fec2   /* level */
+13       decode_fec0   /* level */
+14       encrypt       /* level */
+15       crc16       /* for caculate ccitt crc16 */
+16       swfine	/* =0 stop_watch count based on oneslot =1 on 1 clock */
+20       rqst_freq    /* pulse, to start calculating frequency */
+21       recalc        /* pulse, to recalculate the fhs_parity */
+22       init_encrypt  /* pulse, issued to initialize encrption */
+23       mhalfbnd    /* half slot boundary of clke_rt, or when clke_bt[0] toggles */
+24       sync          /* sync found as a result of correlation,set/rstn by correlate opcode */
+25       user10    /* user10 */
+26       kc_p_activate  /* pulse to recalc the kc_p */
+27       encode_fec1   /* level */
+28       encode_fec2   /* level */
+29       encode_fec0   /* level */
+30       packet_end    /* pulse */
+32       is_tx         /* level */
+33       is_rx         /* level */
+34       halfslot     /* pulse, read only, when clkn_bt[0] toggles */
+35       oneslot      /* pulse, read only, when clkn_bt[1] toggles */
+36       mslotbnd     /* pulse, read only, when clke_bt[1] toggles */
+37       expire       /* level, read only, when selected clock source exceed timeup value */
+38       meet         /* level, read only, when selected clock source meet timeup value */
+39       tx_clear     /* level, read only, indicate tx pipe is cleared */
+40       user         /* user0 */
+41       master        /* user1 */
+42       slave2         /* user2 */
+43       wake           /* user3 */
+44       user2        /* user4 */
+45       match         /* user5 */
+46       attempt        /* user6 */
+47       user3          /* user7 */
+48       clknt         /* user8 */
+49	   user7 	/* user9 */
+50       synchronize   /* synchronize lpo and regular version of the clock */
+51       lpo_edge  /* read only, 3 clocks after risling edge of lpo clock */
+52       blank         /* C0 only, means pdata == 0 */
+53       modone          /* set divide operation is done */
+54       le		/* bluetooth 4.0 LE enable */
+55       aes_ready	/* set when aes is ok */
+56       encode_fec3   /* level */
+57       dewhiten_code_calc   /* dewhiten code calculate */
+58       lr_s2en       /* long range s2 enable */
+60	   ble_coded_info	//1:s2 0:s8
+63       never         /* read only, always 0 */
+)
+
+default flag = always
+
+/* ========== reg[6] =============== */
+(
+0        mark   /* for keeping strobes, more permanent */
+1        type   /* save and verify during rx */     /* rw */
+2        temp   /* general purpose register, 64 bits */
+3        contu  /* contr uart */
+3	 contru	/*contr uart*/
+3	 contwu	/*contw uart*/
+4        am_addr      /* verify during rx, read and send during tx */ /* ro */
+5        contw        /* last mem_addr during write */
+6        contr        /* last mem_addr during read */
+7        queue    /* the index of qset*,qisolate* commands, ie, if queue = 3, qset/qisolate operate on bit3 */
+8        debug    /* can be wired out for observation */
+9        access   /* the 72 bit access word */
+10       contus   /* contw uart */
+11       timeup        /* when does certain counter expire */
+12       pwindow       /* bit 71-61 of pdata; because on rx, bits shifts in from 71 down */
+13       fhs_parity    /* re-gernated based on bt_adr( {nap,uap,lap} ) when recalc flag is pulsed */
+14       white_init    /* init value of the whitening */
+15       crc24_init        /* init crc24 lfsr, 24 bits */
+16       contue    /* set interrupts, 40 bits */
+17       rega          /* general purpose register, 32 bits */
+18       regb          /* general purpose register, 32 bits */
+19       regc          /* general purpose register, 17 bits */
+20       regab         /* concat of {rega,regb}, thus 64 bits */
+21       radio_ctrl   /* radio i/f direct i/o ctrl, check following "radio_ctrl" section */
+
+23       freq_index   /* 7 bit read only */
+24       regd    /* 32 bit regext[1,0] */
+25       clkn              /* {clkn_bt, clkn_rt} */
+26       clke              /* {clke_bt, clke_rt} */
+27       stop_watch		
+28       fhs_misc   /* SR, SP, pscan mode */
+29       fhs_class  /* class field in fhs */
+30       fhs0   /* read only, bit 0-71 of fhs word */
+31       fhs1   /* read only, bit 72-142 of fhs word */
+32       bt_adr /* r/w, the bt_addr to access gen and freq hopping, contain only lap and uap */
+33       bt_clk /* r/w, the bt_clk for freq hopping */
+34       clkn_bt  /* read only, native bluetooth clock, free running 3.2KHz  or controlled by RTHALFSLOT register */
+35       clkn_rt  /* read only, native realtime clock, free running 12MHz, count from 0-3749, or controlled by RTHALFSLOT register */
+36       freq_mode
+37       xin   /* x parameter, read only */
+38       N_tx_slot /* the N factor in equations for Xi,Xp,Xprm,Xprs */
+39 	   auxcnt
+40       clke_bt  /* r/w,  external bluetooth clock , free running 3.2KHz or controlled by RTHALFSLOT register */
+41       clke_rt  /* r/w,  external realtime clock, , free running 12MHz, count from 0-3749, or controlled by RTHALFSLOT register */
+42       branch_addr	/* last branch address */
+43       rege         /* 64bit regext[3,2] */
+44       lap
+45       uap
+46       nap         
+47       regext		/* r/w extended 12x32bit registers,  indexed by regext_index */
+48       alarm             /* r/w, lpo wake up time, this is also how lpo and current clock keep sync */
+49       lpo_time          /* read only, this is the value to be copied back to clkn/clke after wakeup */
+50       kc_ls             /* secret key,                71: 0 */
+51       kc_ms             /* secret key,               127:72 */
+52       g1l               /* encryption length                */
+53		mask3ff		/* for mask 0x3ff operation */
+54       aes_ctrl		
+55       regf			/* 64bit regext[5,4] */
+56       regext_index   /* index of regext */
+57	     loopcnt
+58      stack			/* current return address */
+59       stack_ptr		/* stack depth */
+61         pc /* direct goto */
+62       null              /* to nowhere */
+63       pdata /* the shift register */
+)
+default reg = pdata
+
+/* regext_index */
+(
+0 regidx_data
+4 regidx_key
+8 regidx_xor
+12 regidx_result
+)
+/* ========== radio_ctrl========= */
+(
+0 TXGFSK
+1 PSK
+2 PSK3M
+3 RESET
+)
+/* assign BPWR = radio_ctrl[0]; */
+/* assign PARAMP = radio_ctrl[1]; */
+/* assign XTALPU = radio_ctrl[2]; */
+/* assign SYNTHPU = radio_ctrl[3]; */
+/* assign TXPU = radio_ctrl[4]; */
+/* assign RXPU = radio_ctrl[5]; */
+/* assign SLCTRL = radio_ctrl[6]; */
+/* assign XTALSEL_MUX_SEL = radio_ctrl[7] */
+
+
+/* =========== destination[4] ============== */
+(
+0 bucket
+1 rxf
+2 back
+3 mod
+)
+default dest = bucket
+
+/* =========== source[4] ============= */
+(
+1 txf
+3 demod
+)
+default source = 0
+
+
+/* ============== mark ============= */
+(
+0  mark_fhs_eir  
+1  mark_rxbuf_inuse
+2  mark_tx_l2cap
+3  mark_switch_initiated
+4  mark_accept_switch
+5  mark_loopback
+7  mark_esco
+8  mark_esco_rxok
+9  mark_context
+10 mark_am_addr_broadcast
+11 mark_fhs_already_good
+12 mark_page_trainb
+13 mark_lpm_mult_enable
+14 mark_usb_first_resp
+15 mark_old_packet
+16 mark_longpacket
+17 mark_testmode
+18 mark_ar2
+28 mark_inquiry_on
+29 mark_inquiry_state
+30 mark_inquiry_trainb
+31 mark_periodical_diac
+32 mark_all_diac
+33 mark_slave_in_rand_accepted
+34 mark_reconn_recieve_switch
+35 mark_isstr
+36 mark_loadcode
+37 mark_ext_patch
+38 mark_24g
+39 mark_24g_rxmode
+40 mark_eeprom_size
+41 mark_ble_tx_md
+42 mark_ble_rx_md
+43 mark_otp_encrypt
+44 mark_temp
+45 mark_ble_2M
+45 mark_ble_lr_s8
+46 mark_ble_lr
+47 mark_ble_crc_fail
+48 mark_role_switch_receive_fhs
+49 mark_ble_encryption
+50 mark_first_packet
+51 mark_rf_inited
+52 mark_ble_lr_s8_fix
+53 mark_adc_enable
+)
+
+(
+1 reload_type_otp
+2 reload_type_spi
+3 reload_type_iic
+)
+
+
+/* ============== soft timers ============== */
+(
+0 le_adv_interval_timer
+1 inquiry_length_timer
+2 le_scan_interval_timer
+3 page_length_timer
+4 iscan_interval_timer
+5 pscan_interval_timer
+6 switch_wait_timer
+7 enpt_delay_timer
+8 page_interval_timer
+9 key_scan_timer
+10 smp_pairing_timer
+11  ui_led_blink   //led timer 可扩展
+12  ui_led_blink1
+13 ui_led_blink2
+
+15 mesh_adv_timer	//不使用mesh应用可以复用
+)
+
+(
+1 hci_cmd_inquiry
+2 hci_cmd_inquiry_cancel
+3 hci_cmd_remote_name_req
+4 hci_cmd_remote_feature_req
+5 hci_cmd_create_conn
+6 hci_cmd_disconn
+7 hci_cmd_accept_conn
+8 hci_cmd_reject_conn
+9 hci_cmd_pair
+10 hci_cmd_nopair
+11 hci_cmd_linkkey
+12 hci_cmd_nokey
+13 hci_cmd_auth
+14 hci_cmd_stopencrypt
+15 hci_cmd_startencrypt
+16 hci_cmd_setup_sco
+17 hci_cmd_disconn_sco
+18 hci_cmd_in_sniff
+19 hci_cmd_exit_sniff
+20 hci_cmd_remote_version_req
+21 hci_cmd_remote_ext_features_req
+22 hci_cmd_io_cap
+23 hci_cmd_role_discovery
+24 hci_cmd_role_switch
+25 hci_cmd_accept_with_switch
+26 hci_cmd_detach
+27 hci_cmd_le_create_conn
+28 hci_cmd_accept_sco_conn
+29 hci_cmd_le_disconn
+30 hci_cmd_le_att_req
+80 hci_cmd_wait_remote_feature
+81 hci_cmd_wait_remote_ext_feature
+82 hci_cmd_wait_remote_name
+)
+
+
+
+/* ============== debug ============= */
+(
+0 debug_neg_skew
+1 debug_bitbucket
+2 debug_dont_clear_got_tx
+3 debug_scatter_enabled
+4 debug_tx_fixed_freq
+5 debug_rx_fixed_freq
+6 debug_tx_pattern
+)
+
+/* ============== tester_emulator ============= */
+(
+0 tester_fixed_flow
+1 tester_fixed_flow_polarity
+2 tester_change
+3 tester_exit
+4 tester_pattern_test
+5 tester_whitening_change
+6 tester_fixed_freq
+7 tester_no_whitening
+)
+
+/* ============== mode ==========*/
+(
+0 mode_le
+1 mode_master
+2 afh_enable
+3 afh_change
+4 first_seqnx
+)
+
+/* ============== state_map ==========*/
+(
+0 smap_lmptidinit
+1 smap_lmptid
+2 smap_encryption
+3 smap_name_res
+4 smap_name_req
+5 smap_edr
+6 smap_rxlmp
+7 smap_rxl2cap
+)
+(
+0 state_inconn
+1 state_insniff
+2 state_insco 
+3 state_inpage
+4 state_conn_comp
+5 state_init_seq
+6 state_combkey
+7 state_linkkey
+)
+(
+0 op_send_sres
+1 op_auth_req
+2 op_inrand_req
+3 op_disconn
+4 op_stop_enc
+5 op_start_enc
+6 op_txl2cap
+7 op_pkt_comp
+)
+
+
+/* ============== arq [3] ================ */
+(
+0 flow
+1 arqn
+2 seqn
+3 wack
+4 flowx              /* out */  /* not really in memory */
+5 arqnx              /* out */
+6 seqnx              /* out */
+7 bcast1             /* first broadcast received */
+)
+
+/* arq          {flow,arqn,seqn}, read/write */
+/* [0] flow r/w  acl full status of the other, store during rx, checked during tx */
+/* [1] arqn r/w  ack of the other during rx (ack tx fifo),                        */
+/* [2] seqn r/w  seqn of the other, check during rx                               */ 
+/* arqx         {flowx,arqnx,seqnx} */
+/* [0] flowx r/o flow back to the other, 1 alow send, 0 not to send, read only tx */
+/* [1] arqnx r/w ack to the other, set by rx, send back on tx                     */
+/* [2] seqnx r/w toggled by arqn, to be send during tx                            */ 
+
+ 
+/* AFH flags */
+(
+0 AFH_CFG_ON
+1 AFH_CFG_TIMER
+2 send_lmp_set_afh
+3 AFH_CFG_REPORT_MODE
+4 AFH_CFG_MASTER_SENT_REQ
+)
+
+/* LLID CODE */
+(	
+1 LLID_L2CAP_CONT
+2 LLID_L2CAP_START
+3 LLID_LMP
+)
+
+/* ============== master_state ==========*/
+(
+0  master_in_idle
+1  master_in_inquiry
+2  master_in_page
+10 master_in_becoming_slave
+15 master_in_conn
+)
+(
+0 newrev_feature_bettx
+1 newrev_feature_betplltx
+2 newrev_feature_skip_retransmit
+3 newrev_feature_init_radio_after_sleep
+4 newrev_feature_no_lpolog
+)
+/*************mem_pincode_state****************/
+(
+0 pincode_state_ilde
+1 pincode_state_wait_pincode
+2 pincode_state_pincode_ready
+)
+
+
+// lpm_write
+(
+1 lpmreg_sel_ctrl
+2 lpmreg_sel_ctrl2
+4 lpmreg_sel_gpiolow
+8 lpmreg_sel_gpiohigh
+16 lpmreg_sel_counter
+32 lpmreg_sel_ctrl3
+)
+
+// lpm_write2
+(
+0x02 lpmreg_sel_option
+)
+
+(
+8 lpmreg_spi_lock_bit
+9 lpmreg_spi2_lock_bit
+0x0a lpmreg_uart_lock_bit
+0x0b lpmreg_uartb_lock_bit
+0x0c lpmreg_iic_lock_bit
+0x0d lpmreg_rom_lock_bit
+0x0e lpmreg_ice_mode_bit
+
+0x01 lpmreg_spi_lock
+0x02 lpmreg_spi2_lock
+0x04 lpmreg_uart_lock
+0x08 lpmreg_uartb_lock
+0x10 lpmreg_iic_lock
+0x20 lpmreg_rom_lock
+0x40 lpmreg_ice_mode
+)
+
+
+
+//scan_mode
+(
+0 inq_scan_mode
+1 page_scan_mode
+2 page_inq_enable
+)
+//mem_neogotiation_state
+(
+ 0 default_neogotiation_state
+ 1 prarm_neogotiation
+)
+
+//mem_lpm_wake_lock
+(
+0 wake_lock_ble_rx
+1 wake_lock_ble_tx
+
+3 wake_lock_key_press
+4 wake_lock_ble_tx_patch
+5 wake_lock_uart_tx
+6 wake_lock_uart_rx
+7 wake_lock_button
+8 wake_lock_cmd
+9 wake_lock_app
+10 wake_lock_lmp_tx
+11 wake_lock_lmp_rx
+12 wake_lock_l2cap_tx
+13 wake_lock_l2cap_rx
+14 wake_lock_ipc_c512bt
+15 wake_lock_ipc_bt2c51
+
+)
+
+(
+0 bt_disabled
+1 ble_disabled
+2 module_disable
+
+)
+
+(
+0x33  REC_3_MODE
+0x34  REC_4_MODE
+0x35  REC_4_MODE_STATIC_ADDRESS
+0x36  REC_4_MODE_RANDOM_RESOLVABLE_PRIVATE_ADDRESS
+0x37  REC_4_MODE_RANDOM_NON_RESOLVABLE_PRIVATE_ADDRESS
+)
+
+
+//sniff UART_TX UART_RX
+(
+6 UART_WAKEUP_TX
+7 UART_WAKEUP_RX
+)
+
+
Index: format/command.format
===================================================================
--- /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/format/command.format	(nonexistent)
+++ /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/format/command.format	(working copy)
@@ -0,0 +1,1379 @@
+
+/* Parse Command:
+TX: take bits from tx fifo, jam it into shift and a destination (rf,bucket)
+RX: take bits from demod,  jam it into shift and a destination (acl,sco,bucket) */
+
+/* Inject Command:
+TX: 0 into shift, send tail of shift into a destination (rf,bucket)
+RX: 0 into shift, send tail of shift into a destination (acl,sco,bucket) */
+
+format
+  ! 15 romdat
+  % d0
+  % d1
+  % d2
+  % d3
+  [8] d0
+  [8] d1
+  [8] d2
+  [8] d3
+end
+
+format
+  ! 15 enable   /* set flag to 1 */
+  % flag
+  [5] opcode
+  [6] 1
+  [6] flag
+  [6] null
+  [9] 0
+end
+ /* High 5 bytes of channel map */
+format
+  ! 15 pulse   /* set flag to 1 */
+  % flag
+  [5] opcode
+  [6] 1
+  [6] flag
+  [6] null
+  [9] 0
+end
+
+format
+  ! 15 disable   /* set flag to 0 */
+  % flag
+  [5] opcode
+  [6] 2
+  [6] flag
+  [6] null
+  [9] 0
+end
+
+format
+  ! 15 set0  /* set selected bit of reg to 0 */
+  % immediate
+  % reg
+  [5] opcode
+  [6] 9
+  [6] never
+  [6] reg
+  [9] immediate
+end
+
+format
+  ! 15 set1  /* set selected bit of reg to 1 */
+  % immediate
+  % reg
+  [5] opcode
+  [6] 9          /* alu op demux */
+  [6] always
+  [6] reg
+  [9] immediate
+end
+
+format
+  ! 15 setflag  /* set selected bit of the reg to the polarity of the flag */
+  % flag
+  % immediate
+  % reg
+  [5] opcode
+  [6] 9
+  [6] flag
+  [6] reg
+  [9] immediate
+end
+
+format
+  ! 15 nsetflag  /* set the selected bit of the reg to the opposite polarity of the flag */
+  % flag
+  % immediate
+  % reg
+  [5] opcode
+  [6] 0x29
+  [6] flag
+  [6] reg
+  [9] immediate
+end
+
+format
+  ! 15 setflip    /* invert the selected bit of the reg */
+  % immediate
+  % reg
+  [5] opcode
+  [6] 10            /* this is alu op */
+  [6] always
+  [6] reg
+  [9] immediate
+end
+
+format
+  ! 0x1f qset1      /* demux the lowest 4 bit of queue and OR it with regr into regw */
+  % reg             /* in short, set the bit in reg indexed by queue to 1 */
+  [5] opcode
+  [6] 9
+  [6] always
+  [6] reg
+  [9] 0
+end
+  
+format
+  ! 0x1f qset0      /* demux the lowest 4 bit of queue and AND it with regr into regw */
+  % reg             /* in short, set the bit in reg indexed by queue to 0 */
+  [5] opcode
+  [6] 9
+  [6] never
+  [6] reg
+  [9] 0
+end
+
+format 
+  ! 0x1f qsetflag   /* set the bit in reg index by queue to same as flag */
+  % flag
+  % reg
+  [5] opcode
+  [6] 9
+  [6] flag
+  [6] reg
+  [9] 0
+end
+
+format 
+  ! 0x1f nqsetflag   /* set the bit in the reg index by queue to opposite of flag */
+  % flag
+  % reg
+  [5] opcode
+  [6] 0x29
+  [6] flag
+  [6] reg
+  [9] 0
+end
+
+format
+  ! 0x1f qsetflip      /* flip the bit in reg index by queue */
+  % reg
+  [5] opcode
+  [6] 10
+  [6] always
+  [6] reg
+  [9] 0
+end
+
+format
+  ! 1 parse       /* take bits out of source (sco_tx,tx_buffer,rx-elas) into pdata and dest (sco_rx,rx_fifo,tx-elas) */
+  % source
+  % dest
+  % immediate
+  [5] opcode
+  [4] source      /* voice, data, demod */
+  [2] 0
+  [6] 0    
+  [2] 0           /* parse or inject */ 
+  [4] dest        /* acl, sco, mod, bucket */
+  [9] immediate   /* number of bits to parse off */
+end
+
+format
+  ! 1 inject      /* shift data from pdata into destination (tx-elas,rx_fifo,sco_rx) */
+  % destination
+  % immediate
+  [5] opcode
+  [4] 0
+  [2] 0
+  [6] 1
+  [2] 0
+  [4] destination /* acl,sco,mod,bucket */
+  [9] immediate   /* number of bits to be injected */
+end
+
+format
+  ! 1 iinject
+  % destination
+  % regr
+  [5] opcode
+  [6] regr       /* contain the number of bits to inject */
+  [6] 3
+  [2] 0
+  [4] destination /* acl,sco,mod,bucket */
+  [9] 0 
+end
+
+format
+  ! 1 stuff  /* automatic parse, stuff_counter decrement on every bit until hits zero */
+  % source
+  % destination
+  [5] opcode
+  [4] source
+  [2] 0
+  [6] 2
+  [2] 0
+  [4] destination
+  [9] 0
+end
+
+format    /* force immediate value into registers */
+  ! 3 force
+  % immediate
+  % regw
+  [5] opcode
+  [6] 0
+  [6] 0    /* alu operation force */
+  [6] regw  /* destination register */
+  [9] immediate
+end
+
+format    /* force whatever is on shift_reg to regsiters */
+  ! 0x13 iforce
+  % regw
+  [5] opcode
+  [6] 0
+  [6] 0    /* alu operation force */
+  [6] regw  /* destination register */
+  [9] 0
+end
+
+format    /* force immediate value into registers */
+  ! 3 increase
+  % immediate
+  % reg
+  [5] opcode
+  [6] reg
+  [6] 1    /* alu operation add */
+  [6] reg
+  [9] immediate
+end
+
+format
+  ! 3 pincrease
+  % immediate
+  [5] opcode
+  [6] -1  /* pdata */
+  [6] 1   /* alu add */
+  [6] -1  /* back to pdata */
+  [9] immediate
+end
+
+format    /* force immediate value into registers */
+  ! 3 and_into
+  % immediate
+  % reg
+  [5] opcode
+  [6] reg
+  [6] 2    /* alu operation and into */
+  [6] reg
+  [9] immediate
+end
+
+format
+  ! 3 and
+  % regr
+  % immediate
+  % regw
+  [5] opcode
+  [6] regr
+  [6] 2    /* alu operation and into */
+  [6] regw
+  [9] immediate
+end
+  
+format
+  ! 0x13 iand    /* pdata & regr -> regw */
+  % regr
+  % regw
+  [5] opcode
+  [6] regr
+  [6] 2    /* alu operation and into */
+  [6] regw
+  [9] 0
+end
+  
+
+format    /* and whatever is in shiftreg with reg */
+  ! 0x13 iand_into
+  % reg
+  [5] opcode
+  [6] reg
+  [6] 2    /* alu operation and into */
+  [6] reg
+  [9] 0
+end
+
+format
+  ! 3 or_into
+  % immediate
+  % reg
+  [5] opcode
+  [6] reg
+  [6] 3    /* alu operation or into */
+  [6] reg
+  [9] immediate
+end
+
+format
+  ! 3 or
+  % regr
+  % immediate
+  % regw
+  [5] opcode
+  [6] regr
+  [6] 3    /* alu operation or into */
+  [6] regw
+  [9] immediate
+end
+
+format
+  ! 0x13 ior
+  % regr
+  % regw
+  [5] opcode
+  [6] regr
+  [6] 3    /* alu operation or into */
+  [6] regw
+  [9] 0
+end
+
+format
+  ! 0x13 ior_into
+  % reg
+  [5] opcode
+  [6] reg
+  [6] 3    /* alu operation or into */
+  [6] reg
+  [9] 0
+end
+
+format
+  ! 3 skip_to   /* jump to location stored in reg */
+  % reg
+  [5] opcode
+  [6] reg
+  [6] 4   /* alu operation copy */
+  [6] rom_addr
+  [9] 0
+end
+
+format
+  ! 3 copy
+  % regr
+  % regw
+  [5] opcode
+  [6] regr
+  [6] 4   /* alu operation copy */
+  [6] regw
+  [9] 0
+end
+
+format
+  ! 3 deposit   /* copy the register content thru alu to shift register, not prealigned like preload */
+  % reg
+  [5] opcode
+  [6] reg
+  [6] 4   /* alu operation copy */
+  [6] -1  /* pdata */
+  [9] 0
+end
+
+format
+  ! 3 icopy     /* copy the shift register lsb content directly to register, not aligned */
+  % regw
+  [5] opcode
+  [6] -1  /* pdata */
+  [6]  4  /* alu copy */
+  [6] regw
+  [9] 0
+end
+
+format
+  ! 3 add
+  % regr
+  % immediate
+  % regw
+  [5] opcode
+  [6] regr
+  [6] 1
+  [6] regw
+  [9] immediate
+end
+
+format
+  ! 0x13 iadd       /* regr + pdata -> regw */
+  % regr
+  % regw
+  [5] opcode
+  [6] regr
+  [6] 1
+  [6] regw
+  [9] 0
+end
+
+format
+  ! 3 sub          /* immediate - regr -> regw */
+  % regr
+  % immediate
+  % regw
+  [5] opcode
+  [6] regr
+  [6] 12
+  [6] regw
+  [9] immediate
+end
+
+format
+  ! 0x13 isub       /* pdata - regr -> regw */
+  % regr
+  % regw
+  [5] opcode
+  [6] regr
+  [6] 12
+  [6] regw
+  [9] 0
+end
+
+
+format
+  ! 3 flip
+  % immediate
+  % reg
+  [5] opcode
+  [6] reg
+  [6] 5
+  [6] reg
+  [9] immediate
+end
+  
+format
+  ! 0x13 iflip  /* use shift register as immediate to do xor */
+  % regr
+  % regw
+  [5] opcode
+  [6] regr
+  [6] 5
+  [6] regw
+  [9] 0
+end
+  
+format
+  ! 3 xor
+  % regr
+  % immediate
+  % regw
+  [5] opcode
+  [6] regr
+  [6] 5
+  [6] regw
+  [9] immediate
+end
+
+format
+  ! 3 xor_into
+  % immediate
+  % reg
+  [5] opcode
+  [6] reg
+  [6] 5
+  [6] reg
+  [9] immediate
+end
+  
+format
+  ! 0x13 ixor  /* pdata xor regr and store result in regw */
+  % regr
+  % regw
+  [5] opcode
+  [6] regr
+  [6] 5
+  [6] regw
+  [9] 0
+end
+  
+format
+  ! 3 invert
+  % regr
+  % regw
+  [5] opcode
+  [6] regr
+  [6] 8
+  [6] regw
+  [9] 0
+end
+
+format
+  ! 3 pinvert    /* invert pdata into itself */
+  [5] opcode
+  [6] -1
+  [6] 8
+  [6] -1
+  [9] 0
+end
+
+format
+  ! 3 div                 /* regr div immediate div */
+  % reg
+  % immediate
+  [5] opcode
+  [6] reg
+  [6] 13                   /* generate diven pulse to div */
+  [6] null
+  [9] immediate
+end
+
+format
+  ! 0x13 idiv           /* pdata div regr data ready at most after 41 nops */
+  % reg
+  [5] opcode
+  [6] reg
+  [6] 13                   /* generate diven pulse to div */
+  [6] null
+  [9] 0
+end
+
+format
+  ! 0x13 idiv48           /* pdata div regr data 48bit */
+  % reg
+  [5] opcode
+  [6] reg
+  [6] 17                   /* generate diven pulse to div */
+  [6] null
+  [9] 0
+end
+
+format
+  ! 3 remainder            /* harvest div remainder */
+  % regw
+  [5] opcode
+  [6] 0
+  [6] 14
+  [6] regw
+  [9] 0
+end
+
+format
+  ! 3 quotient             /* harvest div quotient */
+  % regw
+  [5] opcode
+  [6] 0
+  [6] 15
+  [6] regw
+  [9] 0
+end
+
+format
+  ! 3 rshift
+  % regr
+  % regw
+  [5] opcode
+  [6] regr
+  [6] 6
+  [6] regw
+  [9] 0
+end
+
+format
+  ! 3 rshift2
+  % regr
+  % regw
+  [5] opcode
+  [6] regr
+  [6] 22
+  [6] regw
+  [9] 0
+end
+
+format
+  ! 3 rshift3
+  % regr
+  % regw
+  [5] opcode
+  [6] regr
+  [6] 18
+  [6] regw
+  [9] 0
+end
+
+format
+  ! 3 rshift4
+  % regr
+  % regw
+  [5] opcode
+  [6] regr
+  [6] 35
+  [6] regw
+  [9] 0
+end
+
+format
+  ! 3 rshift8
+  % regr
+  % regw
+  [5] opcode
+  [6] regr
+  [6] 25
+  [6] regw
+  [9] 0
+end
+
+format
+  ! 3 rshift16
+  % regr
+  % regw
+  [5] opcode
+  [6] regr
+  [6] 34
+  [6] regw
+  [9] 0
+end
+
+format
+  ! 3 rshift32
+  % regr
+  % regw
+  [5] opcode
+  [6] regr
+  [6] 30
+  [6] regw
+  [9] 0
+end
+
+format
+  ! 3 lshift
+  % regr
+  % regw
+  [5] opcode
+  [6] regr
+  [6] 7
+  [6] regw
+  [9] 0
+end
+
+format
+  ! 3 lshift2
+  % regr
+  % regw
+  [5] opcode
+  [6] regr
+  [6] 23
+  [6] regw
+  [9] 0
+end
+
+format
+  ! 3 lshift8
+  % regr
+  % regw
+  [5] opcode
+  [6] regr
+  [6] 26
+  [6] regw
+  [9] 0
+end
+
+  
+format
+  ! 3 lshift3
+  % regr
+  % regw
+  [5] opcode
+  [6] regr
+  [6] 19
+  [6] regw
+  [9] 0
+end
+
+format
+  ! 3 lshift4
+  % regr
+  % regw
+  [5] opcode
+  [6] regr
+  [6] 36
+  [6] regw
+  [9] 0
+end
+  
+
+format
+  ! 3 lshift16
+  % regr
+  % regw
+  [5] opcode
+  [6] regr
+  [6] 32
+  [6] regw
+  [9] 0
+end
+
+format
+  ! 3 random               /* random number into regw */
+  % reg
+  [5] opcode
+  [6] 0
+  [6] 20
+  [6] reg
+  [9] 0
+end
+
+format                     /* bit reverse within a byte */
+  ! 3 reverse
+  % reg
+  % regw
+  [5] opcode
+  [6] reg
+  [6] 27
+  [6] regw
+  [9] 0
+end
+
+format
+  ! 3 priority    /* priority encode reg into regw, lsb is the top priority, ie, priority(8'b00010000) = 4 */
+  % reg
+  % regw
+  [5] opcode
+  [6] reg
+  [6] 21
+  [6] regw
+  [9] 0
+end
+
+format
+  ! 7 setsect   /* set a section of pdata */
+  % section    /* 0 sets 17:0 of pdata with set_data, 1 sets 35:18, 2 sets 53:36, 3 sets 71:54 */
+  % set_data
+  [5] opcode
+  [7] 0
+  [2] section
+  [18] set_data
+end
+
+format
+  ! 10 preload   /* load stuff into pdata according to fhs format, check us.v */
+  % reg
+  [5] opcode
+  [6] reg
+  [6] 0
+  [6] -1
+  [9] 0
+end
+
+format  /* load register with pdata content, according to fhs format, check us.v */
+  ! 10 ialigned   /* all bits are in position */
+  % regw
+  [5] opcode
+  [6] -1
+  [6] 0
+  [6] regw
+  [9] 0
+end
+
+format  /* load register to another according to fhs format */
+  ! 10 aligned
+  % regr
+  % regw
+  [5] opcode
+  [6] regr
+  [6] 0
+  [6] regw
+  [9] 0
+end
+
+format
+  ! 4 branch
+  % addr
+  % flag
+  [5] opcode
+  [6] 1
+  [6] flag
+  [15] addr
+end
+
+format
+  ! 4 call
+  % addr
+  % flag
+  [5] opcode
+  [6] 2
+  [6] flag
+  [15] addr
+end
+
+format
+  ! 4 rtn
+  % flag
+  [5] opcode
+  [6] 3
+  [6] flag
+  [15] 0
+end
+
+format
+  ! 0x0d fetch          /* read from memory, data into pdata, address from immediate then mem_ptr */
+  % num_bytes
+  % addr
+  [5] opcode
+  [6] 63
+  [1] addr
+  [1] 0
+  [4] num_bytes
+  [15] addr
+end
+
+format
+  ! 0x0d fetcht          /* read from memory, data into temp, address from immediate won't increment */
+  % num_bytes
+  % addr
+  [5] opcode
+  [6] 2
+  [1] addr
+  [1] 1
+  [4] num_bytes
+  [15] addr
+end
+
+format
+  ! 0x1d ifetch         /* read from memory, data into pdata, address from regr then mem_ptr */
+  % num_bytes
+  % reg
+  [5] opcode
+  [6] 63
+  [2] 0
+  [4] num_bytes
+  [9] 0
+  [6] reg
+end
+
+format
+  ! 0x1d ifetcht         /* read from memory, data into temp, address from regr won't increment */
+  % num_bytes
+  % reg
+  [5] opcode
+  [6] 2
+  [2] 0
+  [4] num_bytes
+  [9] 0
+  [6] reg
+end
+
+format
+  ! 0x0c store          /* write to memory, data from pdata, address from immediate then mem_ptr */
+  % num_bytes
+  % addr
+  [5] opcode
+  [6] 63
+  [1] addr
+  [1] 0
+  [4] num_bytes
+  [15] addr
+end
+
+format
+  ! 0x0c storet          /* write to memory, data from temp, address from immediate won't increment */
+  % num_bytes
+  % addr
+  [5] opcode
+  [6] 2
+  [1] addr
+  [1] 1
+  [4] num_bytes
+  [15] addr
+end
+
+format
+  ! 0x1c istore        /* write pdata to memory, address from regaddr */
+  % num_bytes
+  % regaddr
+  [5] opcode
+  [6] 63            
+  [2] 0
+  [4] num_bytes
+  [9] 0
+  [6] regaddr
+end
+
+format
+  ! 0x1c istoret        /* write temp to memory, address from regaddr */
+  % num_bytes
+  % regaddr
+  [5] opcode
+  [6] 2            
+  [2] 0
+  [4] num_bytes
+  [9] 0
+  [6] regaddr
+end
+
+format
+  ! 0x0d crc         // read from memory, count from loopcnt, put crc result into pdata 
+  % addr
+  [5] opcode
+  [6] 63
+  [6] 0
+  [15] addr
+end
+
+format
+  ! 0x1d icrc         /* read from memory, address from reg, count from loopcnt, put crc result into pdata */
+  % reg
+  [5] opcode
+  [6] 63
+  [15] 0
+  [6] reg
+end
+
+
+format
+  ! 0x0c storer          /* write reg to memory, address from immediate then mem_ptr */
+  % reg
+  % num_bytes
+  % addr
+  [5] opcode
+  [6] reg               
+  [1] addr
+  [1] 0
+  [4] num_bytes
+  [15] addr
+end
+
+
+format
+  ! 0x1c istorer        /* write regr to memory, address from regaddr */
+  % regr
+  % num_bytes
+  % regaddr
+  [5] opcode
+  [6] regr            
+  [2] 0
+  [4] num_bytes
+  [9] 0
+  [6] regaddr
+end
+
+
+format
+  ! 0x0d fetchr          /* read reg from memory, address from immediate then mem_ptr */
+  % reg
+  % num_bytes
+  % addr
+  [5] opcode
+  [6] reg               
+  [1] addr
+  [1] 0
+  [4] num_bytes
+  [15] addr
+end
+
+format
+  ! 0x1d ifetchr        /* read regr from memory, address from regaddr */
+  % regr
+  % num_bytes
+  % regaddr
+  [5] opcode
+  [6] regr
+  [2] 0
+  [4] num_bytes
+  [9] 0
+  [6] regaddr
+end
+
+
+
+
+format
+  ! 0x0e jam
+  % immediate
+  % addr
+  [5] opcode
+  [3] 0
+  [16] addr
+  [8] immediate
+end
+
+format			/* 0x242... */
+  ! 4 nbranch
+  % addr
+  % flag
+  [5] opcode
+  [1] 1
+  [5] 1
+  [6] flag
+  [15] addr
+end
+
+format
+  ! 4 ncall
+  % addr
+  % flag
+  [5] opcode
+  [1] 1
+  [5] 2
+  [6] flag
+  [15] addr
+end
+
+format
+  ! 4 nrtn
+  % flag
+  [5] opcode
+  [1] 1
+  [5] 3
+  [6] flag
+  [15] 0
+end
+
+format
+  ! 4 nop
+  % addr  /* no-op for addr+2 clocks */
+  [5] opcode
+  [6] 0     
+  [6] 0     /* always */ 
+  [15] addr
+end
+
+format
+  ! 4 clear_stack
+  [5] opcode
+  [6] 4
+  [6] 0    /* always */
+  [15] 0
+end
+
+format
+  ! 6 until
+  % reg
+  % flag
+  [5] opcode
+  [6] reg
+  [6] flag
+  [6] 1
+  [9] 0
+end
+  
+format
+  ! 6 correlate   /* quit if 1. flag is true 2, regr time up 3, found sync,(cond_true) */
+  % reg          /* expire counter to check against */
+  % flag
+  [5] opcode
+  [6] reg
+  [6] flag
+  [6] 2           /* correlate */
+  [9] 0           
+end
+
+format
+  ! 5 compare   /* sets cond flag,  if reg equals immediate */
+  % immediate
+  % reg
+  % mask
+  [5] opcode
+  [6] reg
+  [3] 0
+  [9] mask
+  [9] immediate
+end
+
+format
+  ! 0x15 icompare   /* sets cond flag,  if reg equals pdata */
+  % mask
+  % reg
+  [5] opcode
+  [6] reg
+  [3] 0
+  [9] mask
+  [9] 0
+end
+
+format   /* sets cond. flag, if reg equals LS half of shift reg with MS half of reg being mask */
+  ! 5 iverify
+  % reg
+  [5] opcode
+  [6] reg
+  [3] 2
+  [18] 0
+end
+
+format
+  ! 0x15 qisolate1
+  % reg
+  [5] opcode
+  [6] reg
+  [3] 3
+  [18] -1
+end
+
+format
+  ! 0x15 qisolate0
+  % reg
+  [5] opcode
+  [6] reg
+  [3] 3
+  [18] 0
+end
+
+	/* REVAB bug: cannot access bit above 35 */
+format
+  ! 5 isolate1
+  % addr
+  % reg
+  [5] opcode
+  [6] reg
+  [3] 3
+  [9] -1
+  [9] addr
+end
+
+format
+  ! 5 isolate0
+  % addr
+  % reg
+  [5] opcode
+  [6] reg
+  [3] 3
+  [9] 0
+  [9] addr
+end
+
+format
+  ! 11 setarg
+  % immediate
+  [5] opcode
+  [27] immediate
+end
+
+format
+  ! 0x1b arg
+  % immediate
+  % reg
+  [5] opcode
+  [6] reg
+  [21] immediate
+end
+
+  
+format
+  ! 0 sleep
+  [5] opcode
+  [27] 0
+end
+
+format
+  ! 0 snooze
+  [5] opcode
+  [6] -1
+  [21] 0
+end
+
+format
+  ! 0 revision
+  % rev_num
+  [5] opcode
+  [27] rev_num
+end
+
+format
+  ! 0x18 loop   /* branch when loopcnt is NOT zero, and decrease loopcnt */
+  % addr
+  [5] opcode
+  [4] 4
+  [8] 0
+  [15] addr
+end
+
+format
+  ! 0x18 beq   /* branch when pdata is equal to immediate */
+  % imme
+  % addr
+  [5] opcode
+  [4] 0
+  [8] imme
+  [15] addr
+end
+
+format
+  ! 0x18 bne   /* branch when pdata is NOT equal to immediate */
+  % imme
+  % addr
+  [5] opcode
+  [4] 1
+  [8] imme
+  [15] addr
+end
+
+format
+  ! 0x18 rtneq   /* return when pdata is equal to immediate */
+  % imme
+  [5] opcode
+  [4] 2
+  [8] imme
+  [15] 0
+end
+
+format
+  ! 0x18 rtnne   /* return when pdata is NOT equal to immediate */
+  % imme
+  [5] opcode
+  [4] 3
+  [8] imme
+  [15] 0
+end
+
+format
+  ! 0x18 bbit1   /* branch when pdata's imme bit is 1 */
+  % imme
+  % addr
+  [5] opcode
+  [4] 5
+  [8] imme
+  [15] addr
+end
+
+format
+  ! 0x18 bbit0   /* branch when pdata's imme bit is 0 */
+  % imme
+  % addr
+  [5] opcode
+  [4] 6
+  [8] imme
+  [15] addr
+end
+
+format
+  ! 0x18 rtnbit1   /* return when pdata's imme bit is 0 */
+  % imme
+  [5] opcode
+  [4] 7
+  [8] imme
+  [15] 0
+end
+
+format
+  ! 0x18 rtnbit0   /* return when pdata's imme bit is 0 */
+  % imme
+  [5] opcode
+  [4] 8
+  [8] imme
+  [15] 0
+end
+
+format
+  ! 8	bpatch
+  % imme
+  % addr
+  [5] opcode
+  [4] 9
+  [8] imme
+  [15] addr
+end
+
+format
+  ! 8	bpatchx
+  % imme
+  % addr
+  [5] opcode
+  [4] 14
+  [8] imme
+  [15] addr
+end
+
+format
+  ! 0x18 bmark1   /* branch when mark's imme bit is 1 */
+  % imme
+  % addr
+  [5] opcode
+  [4] 10
+  [8] imme
+  [15] addr
+end
+
+format
+  ! 0x18 bmark0   /* branch when mark's imme bit is 0 */
+  % imme
+  % addr
+  [5] opcode
+  [4] 11
+  [8] imme
+  [15] addr
+end
+
+format
+  ! 0x18 rtnmark1   /* return when mark's imme bit is 0 */
+  % imme
+  [5] opcode
+  [4] 12
+  [8] imme
+  [15] 0
+end
+
+format
+  ! 0x18 rtnmark0   /* return when mark's imme bit is 0 */
+  % imme
+  [5] opcode
+  [4] 13
+  [8] imme
+  [15] 0
+end
+
+format
+  ! 3 mul32                  /* immediate mult regr */ 
+  % regr
+  % immediate                                  
+  % regw
+  [5] opcode
+  [6] regr
+  [6] 31           
+  [6] regw
+  [9] immediate
+end
+
+format
+  ! 0x13 imul32           /* pdata mult regr 32x32=64bit */  
+  % regr
+  % regw
+  [5] opcode
+  [6] regr
+  [6] 31                   
+  [6] regw
+  [9] 0
+end
+
+format
+  ! 0x13 imults           /* pdata mult regr 32x32=64bit, signed */  
+  % regr
+  % regw
+  [5] opcode
+  [6] regr
+  [6] 16
+  [6] regw
+  [9] 0
+end
+
+
+format
+  ! 3 byteswap
+  % regr
+  % regw
+  [5] opcode
+  [6] regr
+  [6] 33
+  [6] regw
+  [9] 0
+end
+
+format
+  ! 3 shasx          /* SHA256 Sx operation, immediate is Sx */
+  % regr
+  % immediate
+  % regw
+  [5] opcode
+  [6] regr
+  [6] 28
+  [6] regw
+  [9] immediate
+end
+
+
+format
+  ! 0x13 regexrot 	/* regext[0] <- regext[7], regext[1] <- regext[0], regext[2] <- regext[1] ... */
+  [5] opcode
+  [6] 0
+  [6] 29
+  [6] null
+  [9] 0
+end
+
Index: format/debug.format
===================================================================
--- /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/format/debug.format	(nonexistent)
+++ /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/format/debug.format	(working copy)
@@ -0,0 +1,6 @@
+xmemalloc(
+
+1 mem_rf_debug_rx_gpio
+1 mem_rf_debug_tx_gpio
+)
+
Index: format/g24_protocol_stack/24g.format
===================================================================
--- /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/format/g24_protocol_stack/24g.format	(nonexistent)
+++ /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/format/g24_protocol_stack/24g.format	(working copy)
@@ -0,0 +1,58 @@
+
+xmemalloc g24(
+34 mem_24g_rxbuf
+32 mem_24g_txbuf
+36 mem_24g_txpayload
+32 mem_24g_rxpayload
+1 mem_24g_rxdata_length
+1 mem_24g_pid
+1 mem_24g_no_ack
+3 mem_24g_sta_crc
+3 mem_24g_last_crc
+1 mem_24g_sta_pid
+1 mem_24g_last_pid
+1 mem_24g_datalen
+1 mem_24g_data_type
+1 mem_24g_txlen
+2 mem_24g_rx_window
+1 mem_24g_ch
+1 mem_24g_current_ch_number
+4 mem_24g_addr
+4 mem_24g_ch_map1
+4 mem_24g_ch_map2
+4 mem_24g_ch_map3
+4 mem_24g_ch_map4
+4 mem_24g_tx_btclk
+1 mem_24g_interval
+1 mem_24g_interval_min
+1 mem_24g_interval_max
+2 mem_24g_syncword
+1 mem_24g_syncword_crc8
+1 mem_24g_get_syncword_crc8
+1 mem_24g_pair_switch
+8 mem_24g_enter_hibernate
+
+1 mem_24g_rx_phy
+1 mem_24g_tx_phy
+)
+
+
+xmemalloc g24_tx(
+1 mem_rssi_hex_received
+
+)
+
+
+
+(//mem_24g_data_type
+1 TYPE_MS
+2 TYPE_KB
+0x07 bits_data
+//0-2 data type
+3 bit_abort
+4 bit_hop
+5 bit_sync
+//6-7 channel offset
+)
+
+
Index: format/g24_protocol_stack/24g_pair.format
===================================================================
--- /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/format/g24_protocol_stack/24g_pair.format	(nonexistent)
+++ /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/format/g24_protocol_stack/24g_pair.format	(working copy)
@@ -0,0 +1,50 @@
+
+
+xmemalloc g24(
+4 mem_24g_pair_addr
+1 mem_24g_pair_ch
+1 mem_24g_pair_tx_power
+
+)
+
+xmemalloc g24_tx(
+1 mem_24g_pair_sm
+1 mem_24g_pair_no_ack
+2 mem_24g_pair_timeout_init
+2 mem_24g_pair_timeout
+
+)
+
+xmemalloc g24_rx(
+1 mem_24g_device1_bind_step
+1 mem_24g_device2_bind_step
+1 mem_24g_bind_device_status
+8 mem_24g_bind_payload
+
+)
+
+(//mem_24g_pair_sm
+0 STATE_24G_PAIRING_NULL
+1 STATE_24G_PAIRING_1
+2 STATE_24G_PAIRING_2
+3 STATE_24G_PAIRING_3
+4 STATE_24G_PAIRING_4
+0X11 STATE_24G_PAIRING_1_WAITING_ACK
+0X12 STATE_24G_PAIRING_2_WAITING_ACK
+0X13 STATE_24G_PAIRING_3_WAITING_ACK
+0X14 STATE_24G_PAIRING_4_WAITING_ACK
+0XFF STATE_24G_PAIRING_SUCCESS
+)
+
+(
+0x01 DATATYPE_DEVICE1	//mouse
+0x02 DATATYPE_DEVICE2	//keyboard
+0xaa DATATYPE_BIND		//bind step 1
+0x55 DATATYPE_CONFIG	//bind step 2
+0x22 DATATYPE_OK		//bind step 3
+0xff DATATYPE_ATTEMP	//reconn
+)
+
+(
+5 BIND_MODE_CONTINUE
+)
Index: format/g24_protocol_stack/24g_reconn.format
===================================================================
--- /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/format/g24_protocol_stack/24g_reconn.format	(nonexistent)
+++ /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/format/g24_protocol_stack/24g_reconn.format	(working copy)
@@ -0,0 +1,29 @@
+xmemalloc g24_tx(
+2 mem_24g_reconn_timeout_init
+2 mem_24g_reconn_timeout
+2 mem_24g_reconn_count
+1 mem_24g_reconn_type
+1 mem_24g_fast_conn_enable
+4 mem_24g_fast_conn_addr
+4 mem_24g_receiver_addr
+1 mem_24g_fast_conn_temp_ch
+1 mem_24g_receiver_temp_ch
+1 mem_24g_device_temp_ch
+
+)
+
+xmemalloc g24_rx(
+4 mem_24g_transmitter_addr
+4 mem_24g_device1_addr
+4 mem_24g_device2_addr
+
+)
+
+(//mem_24g_reconn_type
+0 DEFAULT_24G_DEVICE
+1 FAST_CONN_AND_RECEIVER
+2 FAST_CONN_AND_3_0_ADDR
+3 RECEIVER_AND_3_0_ADDR
+4 PAIR_AND_3_0_ADDR
+)
+
Index: format/g24_protocol_stack/24g_rssi.format
===================================================================
--- /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/format/g24_protocol_stack/24g_rssi.format	(nonexistent)
+++ /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/format/g24_protocol_stack/24g_rssi.format	(working copy)
@@ -0,0 +1,46 @@
+
+xmemalloc g24(
+1 mem_rssi_buff_index
+)
+
+
+xmemalloc g24_tx(
+1 mem_rssi_signal_index
+2 mem_rssi_signal_buf_ptr
+
+)
+
+
+xmemalloc g24_rx(
+1 mem_rssi_noise_avg
+1 mem_rssi_noise_index
+
+1 mem_rssi_noise_self_avg
+1 mem_rssi_noise_device1_avg
+1 mem_rssi_noise_device2_avg
+1 mem_rssi_noise_self_index
+1 mem_rssi_noise_device1_index
+1 mem_rssi_noise_device2_index
+
+2 mem_rssi_noise_buffer_ptr
+2 mem_rssi_noise_self_buffer_ptr
+2 mem_rssi_noise_device1_buffer_ptr
+2 mem_rssi_noise_device2_buffer_ptr
+
+)
+
+
+
+(
+0x50 RSSI_THRESH_NOISE
+)
+
+
+(
+0x77 RSSI_DIS_MIN_24G
+0x82 RSSI_DIS_MAX_24G
+0x75 RSSI_DIS_MIN_BLE
+0x80 RSSI_DIS_MAX_BLE
+)
+
+
Index: format/g24_protocol_stack/24g_transmitter.format
===================================================================
--- /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/format/g24_protocol_stack/24g_transmitter.format	(nonexistent)
+++ /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/format/g24_protocol_stack/24g_transmitter.format	(working copy)
@@ -0,0 +1,61 @@
+
+
+xmemalloc g24_tx(
+2 mem_cb_24g_transmit_data
+2 mem_cb_24g_search_receiver
+2 mem_cb_24g_lpm_before
+
+1 mem_24g_conn_sm
+
+1 mem_24g_ensure
+2 mem_24g_txfail_cnt
+
+1 mem_24g_retry
+1 mem_24g_abort_pac
+1 mem_24g_max_retry
+4 mem_24g_device_addr
+3 mem_24g_short_sleep_set
+8 mem_24g_long_sleep_set
+
+1 mem_24g_pac_index
+1 mem_24g_transmit_by_interrupt
+2 mem_24g_transmit_by_interrupt_exit_count
+2 mem_24g_transmit_by_interrupt_exit_count_init
+2 mem_24g_long_sleep_param_update_timer_init
+2 mem_24g_long_sleep_param_update_timer
+
+)
+
+(
+1 NO_ACK_24G
+0 WITH_ACK_24G
+)
+
+(//mem_24g_conn_sm
+0 STATE_24G_STOP
+0 STATE_24G_START
+1 STATE_24G_PAIR
+2 STATE_24G_RECONN
+)
+
+(//mem_24g_transmit_by_interrupt
+1 G24_TX_TIMER_INT_ENABLE
+0 G24_TX_TIMER_INT_DISABLE
+)
+
+
+(
+1 OFFSET_DATA_TYPE
+2 OFFSET_LR_DATA_TYPE
+)
+
+(
+0x017700 G24_LONG_SLEEP_STEP1	//8ms
+0x36ee80 G24_LONG_SLEEP_STEP2	//300ms
+0x124f80 G24_LONG_SLEEP_STEP3	//100ms
+62100 G24_SHORT_SLEEP_STEP1		//8ms
+12210 G24_4MS_INTERVAL_PARAM
+)
+
+
+
Index: format/g24_protocol_stack/24g_txpower_ctrl.format
===================================================================
--- /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/format/g24_protocol_stack/24g_txpower_ctrl.format	(nonexistent)
+++ /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/format/g24_protocol_stack/24g_txpower_ctrl.format	(working copy)
@@ -0,0 +1,13 @@
+
+xmemalloc g24_tx(
+1 mem_rssi_avg_received
+1 mem_power_ctrl_level
+1 mem_power_ctrl_pac_succ_cnt
+1 mem_power_ctrl_pac_succ_cnt_init
+)
+
+
+(
+50 POWER_CTRL_DECRS_THRESHOLD
+)
+
Index: format/g24_protocol_stack/g24_receiver.format
===================================================================
--- /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/format/g24_protocol_stack/g24_receiver.format	(nonexistent)
+++ /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/format/g24_protocol_stack/g24_receiver.format	(working copy)
@@ -0,0 +1,42 @@
+
+
+xmemalloc g24_rx(
+2 mem_cb_24g_receive_process
+2 mem_cb_24g_ackpayload
+2 mem_cb_24g_data_device1
+2 mem_cb_24g_data_device2
+34 mem_24g_rxdata_temp
+1 mem_24g_abort_packet
+4 mem_24g_hop_btclk
+1 mem_24g_hop_interval
+1 mem_24g_ackpayload_enable
+1 mem_24g_hop_packet
+1 mem_24g_pair_mode
+1 mem_24g_mode_switch
+1 mem_24g_nodata_timer_enable
+
+1 mem_24g_mode_init
+1 mem_24g_work_mode
+1 mem_24g_time_slice
+1 mem_24g_self_last_ch
+1 mem_24g_self_ch_number
+1 mem_24g_self_config_ch_once
+1 mem_24g_device1_last_ch
+1 mem_24g_device1_ch_number
+1 mem_24g_device1_config_ch_once
+1 mem_24g_device2_last_ch
+1 mem_24g_device2_ch_number
+1 mem_24g_device2_config_ch_once
+1 mem_24g_led_status
+1 mem_24g_bind_mode_continue
+
+1 mem_tx_power_temp
+
+)
+
+
+(
+0 bit_ack_24g
+)
+
+
Index: format/hci.format
===================================================================
--- /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/format/hci.format	(nonexistent)
+++ /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/format/hci.format	(working copy)
@@ -0,0 +1,520 @@
+
+
+memalloc hci_boot(
+2 mem_hci_opcode_ocf
+1 mem_hci_opcode_ogf
+
+//event head
+1 mem_hci_event_head_type
+1 mem_hci_event_head_event_code
+1 mem_hci_event_para_total_length
+
+//command complete
+1 mem_hci_command_complete_num_hci_command_packet
+0 mem_hci_command_complete_command_opcode
+2 mem_hci_opcode
+0 mem_hci_command_complete_return_parameter
+1 mem_hci_command_complete_return_parameter_status
+0 mem_hci_command_complete_return_parameter_chip_id
+
+)
+
+xmemalloc hci_boot(
+1 mem_hci_uart_tx_gpio
+1 mem_hci_uart_rx_gpio
+1 mem_hci_uart_rts_gpio
+1 mem_hci_uart_cts_gpio
+1 mem_hci_pwm_12mhz_gpio
+)
+
+(
+0x10 HCI_UART_TX_GPIO_NUM
+0x11 HCI_UART_RX_GPIO_NUM
+0x0a HCI_UART_RTS_GPIO_NUM
+0x0b HCI_UART_CTS_GPIO_NUM
+0x0d HCI_PMW_12MHZ_GPIO_NUM
+)
+
+(
+0x00 COMMAND_SUCCEEDED
+0x01 COMMAND_UNKNOWN
+0x0c COMMAND_DISALLOWED
+)
+
+//HCI H4 Packet TYPE
+(
+0x01 HCI_H4_TYPE_CMD
+0x02 HCI_H4_TYPE_ACL
+0x04 HCI_H4_TYPE_EVENT
+)
+
+(
+0x00 BT_ACL_START_NO_FLUSH
+0x01 BT_ACL_CONT
+0x02 BT_ACL_START
+)
+
+// HCI command opcode group field values
+(
+0x01 HCI_OGF_LINK_CONTROL
+0x02 HCI_OGF_LINK_POLICY
+0x03 HCI_OGF_CONTROLLER_AND_BASEBAND
+0x04 HCI_OGF_INFOMATIONAL_PARAM
+0x05 HCI_OGF_STATUS_PARAM
+0x06 HCI_OGF_TEST
+0x08 HCI_OGF_LE_CONTROLLER
+0x3f HCI_OGF_VENDOR_SPECIFIC_DEBUG
+)
+
+// HCI link control opcode command field values, OGF=1
+(
+0x01 HCI_INQUIRY 
+0x02 HCI_INQUIRY_CANCEL 
+0x03 HCI_PERIODIC_INQUIRY_MODE 
+0x04 HCI_EXIT_PERIODIC_INQUIRY_MODE 
+0x05 HCI_CREATE_CONNECTION 
+0x06 HCI_DISCONNECT 
+0x07 HCI_ADD_SCO_CONNECTION 
+0x08 HCI_CREATE_CONNECTION_CANCEL
+0x09 HCI_ACCEPT_CONNECTION 
+0x0A HCI_REJECT_CONNECTION 
+0x0B HCI_LINK_KEY_REQUEST_REPLY 
+0x0C HCI_LINK_KEY_REQUEST_NEGATIVE_REPLY 
+0x0D HCI_PIN_CODE_REQUEST_REPLY 
+0x0E HCI_PIN_CODE_REQUEST_NEGATIVE_REPLY 
+0x0F HCI_CHANGE_CONNECTION_PACKET_TYPE 
+0x11 HCI_AUTHENTICATION_REQUESTED 
+0x13 HCI_SET_CONNECTION_ENCRYPTION 
+0x15 HCI_CHANGE_CONNECTION_LINK_KEY 
+0x17 HCI_MASTER_LINK_KEY 
+0x19 HCI_REMOTE_NAME_REQUEST 
+0x1A HCI_REMOTE_NAME_REQUEST_CANCEL
+0x1B HCI_READ_REMOTE_SUPPORTED_FEATURES 
+0x1C HCI_READ_REMOTE_EXT_FEATURES 
+0x1D HCI_READ_REMOTE_VERSION_INFORMATION 
+0x1F HCI_READ_CLOCK_OFFSET 
+0x20 HCI_READ_LMP_HANDLE
+0x28 HCI_SETUP_SCO_CONNECTION
+0x29 HCI_ACCEPT_SCO_CONNECTION
+0x2A HCI_REJECT_SCO_CONNECTION
+0x2B HCI_IO_CAP_REQUEST_REPLY
+0x2C HCI_USER_CONFIRMATION_REQUEST_REPLY
+0x2D HCI_USER_CONFIRMATION_REQUEST_NEGATIVE_REPLY
+0x2E HCI_USER_PASSKEY_REQUEST_REPLY
+0x2F HCI_USER_PASSKEY_REQUEST_NEGATIVE_REPLY
+0x30 HCI_REMOTE_OOB_DATA_REQUEST_REPLY
+0x33 HCI_REMOTE_OOB_DATA_REQUEST_NEGATIVE_REPLY
+0x34 HCI_IO_CAPABILITY_REQUEST_NEGATIVE_REPLY
+0x35 HCI_CREATE_PHYSICAL_LINK
+0x36 HCI_ACCEPT_PHYSICAL_LINK
+0x37 HCI_DISCONNECT_PHYSICAL_LINK
+0x38 HCI_CREATE_LOGICAL_LINK
+0x39 HCI_ACCEPT_LOGICAL_LINK
+0x3A HCI_DISCONNECT_LOGICAL_LINK
+0x3B HCI_LOGICAL_LINK_CANCEL
+0x3C HCI_FLOW_SPEC_MODIFY
+0x3D HCI_ENHANCED_SETUP_SYNCHRONOUS_CONNECTION
+0x3E HCI_ENHANCED_ACCEPT_SYNCHRONOUS_CONNECTION_REQUEST
+0x3F HCI_TRUNCATED_PAGE
+0x40 HCI_TRUNCATED_PAGE_CANCEL
+0x41 HCI_SET_CONNECTIONLESS_SLAVE_BROADCAST
+0x42 HCI_SET_CONNECTIONLESS_SLAVE_BROADCAST_RECEIVE
+0x43 HCI_START_SYNCHRONIZATION_TRAIN
+0x44 HCI_RECEIVE_SYNCHRONIZATION_TRAIN
+0x45 HCI_REMOTE_OOB_EXTENDED_DATA_REQUEST_REPLY
+)
+
+
+// HCI link policy commands OCF value, OGF=2
+(
+0x01 HCI_HOLD_MODE 
+0x03 HCI_SNIFF_MODE 
+0x04 HCI_EXIT_SNIFF_MODE 
+0x05 HCI_PARK_MODE 
+0x06 HCI_EXIT_PARK_MODE 
+0x07 HCI_QOS_SETUP 
+0x09 HCI_ROLE_DISCOVERY 
+0x0B HCI_SWITCH_ROLE 
+0x0C HCI_READ_LINK_POLICY_SETTINGS 
+0x0D HCI_WRITE_LINK_POLICY_SETTINGS 
+0x0e HCI_READ_DEFAULT_LINK_POLICY_SETTINGS
+0x0f HCI_WRITE_DEFAULT_LINK_POLICY_SETTINGS
+0x10 HCI_FLOW_SPECIFICATION
+0x11 HCI_SNIFF_SUBRATING
+)
+
+// HCI host controller and baseband commands OCF values, OGF=3
+(
+0x01 HCI_SET_EVENT_MASK 
+0x03 HCI_RESET 
+0x05 HCI_SET_EVENT_FILTER 
+0x08 HCI_FLUSH 
+0x09 HCI_READ_PIN_TYPE 
+0x0A HCI_WRITE_PIN_TYPE 
+0x0B HCI_CREATE_NEW_UNIT_KEY 
+0x0D HCI_READ_STORED_LINK_KEY 
+0x11 HCI_WRITE_STORED_LINK_KEY 
+0x12 HCI_DELETE_STORED_LINK_KEY 
+0x13 HCI_WRITE_LOCAL_NAME 
+0x14 HCI_READ_LOCAL_NAME 
+0x15 HCI_READ_CONN_ACCEPT_TIMEOUT 
+0x16 HCI_WRITE_CONN_ACCEPT_TIMEOUT 
+0x17 HCI_READ_PAGE_TIMEOUT 
+0x18 HCI_WRITE_PAGE_TIMEOUT 
+0x19 HCI_READ_SCAN_ENABLE 
+0x1A HCI_WRITE_SCAN_ENABLE 
+0x1B HCI_READ_PAGE_SCAN_ACTIVITY 
+0x1C HCI_WRITE_PAGE_SCAN_ACTIVITY 
+0x1D HCI_READ_INQUIRY_SCAN_ACTIVITY 
+0x1E HCI_WRITE_INQUIRY_SCAN_ACTIVITY 
+0x1F HCI_READ_AUTHENTICATION_ENABLE 
+0x20 HCI_WRITE_AUTHENTICATION_ENABLE 
+0x21 HCI_READ_ENCRYPTION_MODE 
+0x22 HCI_WRITE_ENCRYPTION_MODE 
+0x23 HCI_READ_CLASS_OF_DEVICE 
+0x24 HCI_WRITE_CLASS_OF_DEVICE 
+0x25 HCI_READ_VOICE_SETTING 
+0x26 HCI_WRITE_VOICE_SETTING 
+0x27 HCI_READ_AUTOMATIC_FLUSH_TIMEOUT 
+0x28 HCI_WRITE_AUTOMATIC_FLUSH_TIMEOUT 
+0x29 HCI_READ_NUM_BROADCAST_RETRANSMISSIONS 
+0x2A HCI_WRITE_NUM_BROADCAST_RETRANSMISSIONS 
+0x2B HCI_READ_HOLD_MODE_ACTIVITY 
+0x2C HCI_WRITE_HOLD_MODE_ACTIVITY 
+0x2D HCI_READ_TRANSMIT_POWER_LEVEL 
+0x2E HCI_READ_SCO_FLOW_CONTROL_ENABLE 
+0x2F HCI_WRITE_SCO_FLOW_CONTROL_ENABLE 
+0x31 HCI_SET_CONTROLLER_TO_HOST_FLOW_CONTROL 
+0x33 HCI_HOST_BUFFER_SIZE 
+0x35 HCI_HOST_NUM_COMPLETED_PACKETS 
+0x36 HCI_READ_LINK_SUPERVISION_TIMEOUT 
+0x37 HCI_WRITE_LINK_SUPERVISION_TIMEOUT 
+0x38 HCI_READ_NUMBER_OF_SUPPORTED_IAC 
+0x39 HCI_READ_CURRENT_IAC_LAP 
+0x3A HCI_WRITE_CURRENT_IAC_LAP 
+0x3B HCI_READ_PAGE_SCAN_PERIOD_MODE 
+0x3C HCI_WRITE_PAGE_SCAN_PERIOD_MODE 
+0x3D HCI_READ_PAGE_SCAN_MODE 
+0x3E HCI_WRITE_PAGE_SCAN_MODE 
+0x3F HCI_SET_AFH_CHANNEL_CLASSIFICATION 
+
+
+0x42 HCI_READ_INQUIRY_SCAN_TYPE 
+0x43 HCI_WRITE_INQUIRY_SCAN_TYPE 
+0x44 HCI_READ_INQUIRY_MODE 
+0x45 HCI_WRITE_INQUIRY_MODE 
+0x46 HCI_READ_PAGE_SCAN_TYPE 
+0x47 HCI_WRITE_PAGE_SCAN_TYPE 
+
+0x48 HCI_READ_AFH_CHANNEL_ACCESSMENT_MODE 
+0x49 HCI_WRITE_AFH_CHANNEL_ACCESSMENT_MODE 
+0x51 HCI_READ_EXTENDED_INQUIRY_RESPONSE
+0x52 HCI_WRITE_EXTENDED_INQUIRY_RESPONSE
+0x53 HCI_REFRESH_ENCRYPTION_KEY
+0x55 HCI_READ_SIMPLE_PAIRING_MODE
+0x56 HCI_WRITE_SIMPLE_PAIRING_MODE
+0x57 HCI_READ_LOCAL_OOB_DATA
+0x58 HCI_READ_INQUIRY_RESPONSE_TRANSMIT_POWER_LEVEL
+0x59 HCI_WRITE_INQUIRY_TRANSMIT_POWER_LEVEL
+0x60 HCI_SEND_KEYPRESS_NOTIFICATION
+0x5A HCI_READ_DEFAULT_ERRONEOUS_DATA_REPORTING
+0x5B HCI_WRITE_DEFAULT_ERRONEOUS_DATA_REPORTING
+0x5F HCI_ENHANCED_FLUSH
+0x61 HCI_READ_LOGICAL_LINK_ACCEPT_TIMEOUT
+0x62 HCI_WRITE_LOGICAL_LINK_ACCEPT_TIMEOUT
+0x63 HCI_SET_EVENT_MASK_PAGE_2
+0x64 HCI_READ_LOCATION_DATA
+0x65 HCI_WRITE_LOCATION_DATA
+0x66 HCI_READ_FLOW_CONTROL_MODE
+0x67 HCI_WRITE_FLOW_CONTROL_MODE
+0x68 HCI_READ_ENHANCE_TRANSMIT_POWER_LEVEL
+0x69 HCI_READ_BEST_EFFORT_FLUSH_TIMEOUT
+0x6A HCI_WRITE_BEST_EFFORT_FLUSH_TIMEOUT
+0x6B HCI_SHORT_RANGE_MODE
+0x6C HCI_READ_LE_HOST_SUPPORT
+0x6D HCI_WRITE_LE_HOST_SUPPORT
+0x6E HCI_SET_MWS_CHANNEL_PARAMETERS
+0x6F HCI_SET_EXTERNAL_FRAME_CONFIGURATION
+0x70 HCI_SET_MWS_SIGNALING
+0x71 HCI_SET_MWS_TRANSPORT_LAYER
+0x72 HCI_SET_MWS_SCAN_FREQUENCY_TABLE
+0x73 HCI_SET_MWS_PATTERN_CONFIGURATION
+0x74 HCI_SET_RESERVED_LT_ADDR
+0x75 HCI_DELETE_RESERVED_LT_ADDR
+0x76 HCI_SET_CONNECTIONLESS_SLAVE_BROADCAST_DATA
+0x77 HCI_READ_SYNCHRONIZATION_TRAIN_PARAMETERS
+0x78 HCI_WRITE_SYNCHRONIZATION_TRAIN_PARAMETERS
+0x79 HCI_READ_SECURE_CONNECTIONS_HOST_SUPPORT
+0x7A HCI_WRITE_SECURE_CONNECTIONS_HOST_SUPPORT
+0x7B HCI_READ_AUTHENTICATED_PAYLOAD_TIMEOUT
+0x7C HCI_WRITE_AUTHENTICATED_PAYLOAD_TIMEOUT
+0x7D HCI_READ_LOCAL_OOB_EXTENDED_DATA
+0x7E HCI_READ_EXTENDED_PAGE_TIMEOUT
+0x7F HCI_WRITE_EXTENDED_PAGE_TIMEOUT
+0x80 HCI_READ_EXTENDED_INQUIRY_LENGTH
+0x81 HCI_WRITE_EXTENDED_INQUIRY_LENGTH
+)
+
+
+// HCI informational parameters OCF values, OGF=4
+(
+0x01 HCI_READ_LOCAL_VERSION_INFORMATION 
+0x02 HCI_READ_LOCAL_SUPPORTED_COMMANDS
+0x03 HCI_READ_LOCAL_SUPPORTED_FEATURES 
+0x04 HCI_READ_LOCAL_EXT_FEATURES 
+0x05 HCI_READ_BUFFER_SIZE 
+0x07 HCI_READ_COUNTRY_CODE 
+0x09 HCI_READ_BD_ADDR 
+0x0A HCI_REJECT_CONNECTION_REQUEST
+0x0B HCI_READ_LOCAL_SUPPORTED_CODECS
+)
+
+// HCI status parameters OCF values, OGF=5
+(
+0x01 HCI_READ_FAILED_CONTACT_COUNTER 
+0x02 HCI_RESET_FAILED_CONTACT_COUNTER 
+0x03 HCI_GET_LINK_QUALITY 
+0x05 HCI_READ_RSSI 
+0x06 HCI_READ_AFH_CHANNEL_MAP
+0x07 HCI_READ_BD_CLOCK
+0x08 HCI_READ_ENCRYPTION_KEY_SIZE
+0x09 HCI_READ_LOCAL_AMP_INFO
+0x0A HCI_READ_LOCAL_AMP_ASSOC
+0x0B HCI_WRITE_REMOTE_AMP_ASSOC
+0x0C HCI_GET_MWS_TRANSPORT_LAYER_CONFIGURATION
+0x0D HCI_SET_TRIGGERED_CLOCK_CAPTURE
+)
+
+// HCI testing command OCF values, OGF=6
+(
+0x01 HCI_READ_LOOPBACK_MODE 
+0x02 HCI_WRITE_LOOPBACK_MODE 
+0x03 HCI_ENABLE_DEVICE_UNDER_TEST_MODE 
+0x04 HCI_WRITE_SIMPLE_PAIRING_DEBUG_MODE
+0x07 HCI_ENABLE_AMP_RECEIVER_REPORTS
+0x08 HCI_AMP_TEST_END
+0x09 HCI_AMP_TEST
+0x0A HCI_WRITE_SECURE_CONNECTIONS_TEST_MODE
+)
+
+// HCI vendor specific command OCF values -OGF=3F
+(
+0x01 HCI_WRITE_BD_ADDR 
+0x02 HCI_READ_INQUIRY_RESPONSE_TIMEOUT 
+0x03 HCI_WRITE_INQUIRY_RESPONSE_TIMEOUT 
+0x04 HCI_READ_PAGE_SCAN_REPETITION_MODE 
+0x05 HCI_WRITE_PAGE_SCAN_REPETITION_MODE 
+0x06 HCI_READ_PAGE_RESPONSE_TIMEOUT 
+0x07 HCI_WRITE_PAGE_RESPONSE_TIMEOUT 
+0x08 HCI_READ_NEW_CONNECTION_TIMEOUT 
+0x09 HCI_WRITE_NEW_CONNECTION_TIMEOUT 
+0x0a HCI_INITIALIZE_BASEBAND 
+0x0b HCI_WRITE_LOCAL_SUPPORTED_FEATURES 
+0x0c HCI_WRITE_PARK_PARAMETERS 
+0x0d HCI_READ_PARK_PARAMETERS 
+0x0e HCI_WRITE_QUALITY_OF_SERVICE 
+0x0f HCI_NOT_USED 
+0x10 HCI_MODIFY_BEACON_PARAMETERS 
+0x11 HCI_UNPARK_USING_PM_ADDR 
+0x12 HCI_WRITE_HOPPING_CHANNELS 
+0x13 HCI_SLEEP_FOREVER_MODE 
+0x14 HCI_WRITE_AUTO_PAGE_SCAN_ENABLE 
+0x15 HCI_READ_AUTO_PAGE_SCAN_ENABLE 
+0x16 HCI_SET_ENCRYPTION_KEY_SIZE 
+0x17 HCI_INVALIDATE_FLASH_AND_REBOOT 
+0x18 HCI_UPDATE_UART_BAUD_RATE 
+0x19 HCI_WRITE_GPIO_1_4_AS_OUTPUT 
+0x1A HCI_WRITE_GPIO_2_LED 
+0x1B HCI_SET_TESTMODE_TYPE 
+0x1C HCI_WRITE_SCO_PCM_INT_PARAM 
+0x1D HCI_READ_SCO_PCM_INT_PARAM 
+0x1E HCI_WRITE_PCM_DATA_FORMAT_PARAM 
+0x1F HCI_READ_PCM_DATA_FORMAT_PARAM 
+0x20 HCI_WRITE_COMFORT_NOISE_PARAM 
+0x21 HCI_READ_COMFORT_NOISE_PARAM 
+0x22 HCI_WRITE_SCO_TS 
+0x23 HCI_READ_SCO_TS 
+0x24 HCI_WRITE_PCM_LOOPBACK_MODE 
+0x25 HCI_READ_PCM_LOOPBACK_MODE 
+0x26 HCI_SET_TRANSMIT_POWER 
+0x27 HCI_SET_SLEEPMODE_PARAM 
+0x28 HCI_READ_SLEEPMODE_PARAM 
+0x29 HCI_SLEEPMODE_CMD 
+0x2A HCI_DELAY_PERIPHERAL_SCO_STARTUP 
+0x2B HCI_WRITE_RECEIVE_ONLY 
+0x2C HCI_WRITE_RATE_CONTROL 
+0x2D HCI_TX_UNMOD_CARRIER 
+0x2E HCI_DOWNLOAD_MINIDRIVER 
+0x2F HCI_CRYSTAL_PPM 
+0x30 HCI_SET_POWER_AMP_BIAS 
+0x31 HCI_SET_HAM_BEHAVIOR 
+0x32 HCI_SET_AFH_BEHAVIOR 
+0x33 HCI_READ_USER_DEFINED_NVRAM 
+0x34 HCI_ENABLE_RADIO 
+0x35 HCI_READ_DIAGNOSTIC_INFO 
+0x36 HCI_GET_HID_DEVICE_LIST 
+0x37 HCI_ADD_HID_DEVICE 
+0x38 HCI_READ_APP_FW_CONFIG_VERSION 
+0x39 HCI_DELETE_HID_DEVICE 
+0x3B HCI_ENABLE_USB_HID_EMULATION 
+// 0x3A available
+// 0x3B available
+0x3C HCI_SEND_LMPDU 
+0x3D HCI_AUTO_PAIR_REQ 
+0x3E HCI_READ_VS_EXTENSION 
+0x3F HCI_WRITE_VS_EXTENSION 
+
+0x77 HCI_OPCODE_FC77
+0x79 HCI_OPCODE_FC79
+0xC4 HCI_DOWNLOAD_PATCH
+0xCC HCI_OPCODE_FCCC
+
+0x00 HCI_VENDOR_CMD_RESET
+0x01 HCI_VENDOR_CMD_CHIPID
+0x02 HCI_VENDOR_CMD_BAUD
+0x03 HCI_VENDOR_CMD_PATCH
+0x04 HCI_VENDOR_CMD_PATCH_DONE
+0x05 HCI_VENDOR_CMD_ECHO
+0x06 HCI_VENDOR_CMD_BDADDR
+
+0x07 HCI_VENDOR_CMD_ENTER_LPM
+0x08 HCI_VENDOR_CMD_COMMU_READY
+
+0x10 HCI_VENDOR_CMD_MEM
+0x11 HCI_VENDOR_CMD_EEP
+
+0X12 HCI_VENDOR_CMD_PATCH_SEC_INIT
+0X13 HCI_VENDOR_CMD_PATCH_SEC
+0x14 HCI_VENDOR_CMD_SET_FLOW_CONTROL
+)
+
+//HCI LE controller command OCF values, OGF=8
+(
+0x01 HCI_LE_SET_EVENT_MASK
+0x02 HCI_LE_READ_BUFFER_SIZE
+0x03 HCI_LE_READ_LOCAL_SUPPORTED_FEATURES
+0x05 HCI_LE_SET_RANDOM_ADDRESS
+0x06 HCI_LE_SET_ADVERTISING_PARAMETERS
+0x07 HCI_LE_READ_ADVERTISING_CHANNEL_TX_POWER
+0x08 HCI_LE_SET_ADVERTISING_DATA
+0x09 HCI_LE_SET_SCAN_RESPONSE_DATA
+0x0A HCI_LE_SET_ADVERTISE_ENABLE
+0x0B HCI_LE_SET_SCAN_PARAMETERS
+0x0C HCI_LE_SET_SCAN_ENABLE
+0x0D HCI_LE_CREATE_CONNECTION
+0x0E HCI_LE_CREATE_CONNECTION_CANCEL
+0x0F HCI_LE_READ_WHITE_LIST_SIZE
+0x10 HCI_LE_CLEAR_WHITE_LIST
+0x11 HCI_LE_ADD_DEVICE_TO_WHITE_LIST
+0x12 HCI_LE_REMOVE_DEVICE_FROM_WHITE_LIST
+0x13 HCI_LE_CONNECTION_UPDATE
+0x14 HCI_LE_SET_HOST_CHANNEL_CLASSIFICATION
+0x15 HCI_LE_READ_CHANNEL_MAP
+0x16 HCI_LE_READ_REMOTE_USED_FEATURES
+0x17 HCI_LE_ENCRYPT
+0x18 HCI_LE_RAND
+0x19 HCI_LE_START_ENCRYPTION
+0x1A HCI_LE_LONG_TERM_KEY_REQUEST_REPLY
+0x1B HCI_LE_LONG_TERM_KEY_REQUEST_NEGATIVE_REPLY
+0x1C HCI_LE_READ_SUPPORTED_STATES
+0x1D HCI_LE_RECEIVER_TEST
+0x1E HCI_LE_TRANSMITTER_TEST
+0x1F HCI_LE_TEST_END
+0x20 HCI_LE_REMOTE_CONNECTION_PARAMETER_REQUEST_REPLY
+0x21 HCI_LE_REMOTE_CONNECTION_PARAMETER_REQUEST_NEGATIVE_REPLY
+)
+// HCI event code
+(
+0x01 HCI_EVENT_INQUIRY_COMPLETE
+0x02 HCI_EVENT_INQUIRY_RESULT
+0x03 HCI_EVENT_CONNECTION_COMPLETE
+0x04 HCI_EVENT_CONNECTION_REQUEST
+0x05 HCI_EVENT_DISCONNECTION_COMPLETE
+0x06 HCI_EVENT_AUTHENTICATION_COMPLETE
+0x07 HCI_EVENT_REMOTE_NAME_REQUEST_COMPLETE
+0x08 HCI_EVENT_ENCRYPTION_CHANGE_COMPLETE
+0x09 HCI_EVENT_CHANGE_CONNECTION_LINK_KEY_COMPLETE
+0x0A HCI_EVENT_MASTER_LINK_KEY_COMPLETE
+0x0B HCI_EVENT_READ_REMOTE_FEATURES_COMPLETE
+0x0C HCI_EVENT_READ_REMOTE_VERSION_INFORMATION_COMPLETE
+0x0D HCI_EVENT_QOS_SETUP_COMPLETE
+0x0E HCI_EVENT_COMMAND_COMPLETE
+0x0F HCI_EVENT_COMMAND_STATUS
+0x10 HCI_EVENT_HARDWARE_ERROR
+0x11 HCI_EVENT_FLUSH_OCCURRED
+0x12 HCI_EVENT_ROLE_CHANGE
+0x13 HCI_EVENT_NUM_COMPLETED_PACKETS
+0x14 HCI_EVENT_MODE_CHANGE
+0x15 HCI_EVENT_RETURN_LINK_KEYS
+0x16 HCI_EVENT_PIN_CODE_REQUEST
+0x17 HCI_EVENT_LINK_KEY_REQUEST
+0x18 HCI_EVENT_LINK_KEY_NOTIFICATION
+0x19 HCI_EVENT_LOOPBACK_COMMAND
+0x1A HCI_EVENT_DATA_BUFFER_OVERFLOW
+0x1B HCI_EVENT_MAX_SLOTS_CHANGE
+0x1C HCI_EVENT_READ_CLOCK_OFFSET_COMPLETE
+0x1D HCI_EVENT_CONNECTION_PACKET_TYPE_CHANGED
+0x1E HCI_EVENT_QOS_VIOLATION
+0x1F HCI_EVENT_PAGE_SCAN_MODE_CHANGE
+0x20 HCI_EVENT_PAGE_SCAN_REPETITION_MODE_CHANGE
+0x21 HCI_EVENT_FLOW_SPECIFICATION_COMPLETE
+0x22 HCI_EVENT_INQUIRY_RESULT_WITHRSSI
+0x23 HCI_EVENT_READ_REMOTE_EXT_FEATURES_COMPLETE
+0x2C HCI_EVENT_SCO_CONNECTION_COMPLETE
+0x2D HCI_EVENT_SCO_CONNECTION_CHANGED
+0x2E HCI_EVENT_SNIFF_SUBRATING
+0x2F HCI_EVENT_EXT_INQUIRY_RESULT
+0x30 HCI_EVENT_ENCRYPT_KEY_REFRESH_COMPLETE
+0x31 HCI_EVENT_IO_CAP_REQ
+0x32 HCI_EVENT_IO_CAP_RESPONSE
+0x33 HCI_EVENT_USER_CONFIRMATION_REQUEST
+0x34 HCI_EVENT_UESR_PASSKEY_REQUEST
+0x35 HCI_EVENT_REMOTE_OOB_DATA_REQUEST
+0x36 HCI_EVENT_SIMPLE_PAIRING_COMPLETE
+0x38 HCI_EVENT_LINK_SUPERVISION_TIMEOUT_CHANGED
+0x39 HCI_EVENT_ENHANCED_FLUSH_COMPLETE
+0x3B HCI_EVENT_USER_PASSKEY_NOTIFICATION
+0x3C HCI_EVENT_KEYPRESS_NOTIFICATION
+0x3D HCI_EVENT_REMOTE_HOST_SUPPORTED_FEATURES_NOTIFICATION 
+0x3E HCI_EVENT_LE_META_EVENT
+0x40 HCI_EVENT_PHYSICAL_LINK_COMPLETE
+0x41 HCI_EVENT_CHANNEL_SELECTED
+0x42 HCI_EVENT_DISCONNECTION_PHYSICAL_LINK_COMPLETE
+0x43 HCI_EVENT_PHYSICAL_LINK_LOSS_EARLY_WARNING
+0x44 HCI_EVENT_PHYSICAL_LINK_RECOVERY
+0x45 HCI_EVENT_LOGICAL_LINK_COMPLETE
+0x46 HCI_EVENT_DISCONNECTION_LOGICAL_LINK_COMPLETE
+0x47 HCI_EVENT_FLOW_SPEC_MODIFY_COMPLETE
+0x48 HCI_EVENT_NUMBER_OF_COMPLETED_DATA_BLOCKS
+0x49 HCI_EVENT_AMP_START_TEST
+0x4A HCI_EVENT_AMP_TEST_END
+0x4B HCI_EVENT_AMP_RECEIVER_REPORT
+0x4C HCI_EVENT_SHORT_RANGE_MODE_CHANGE_COMPLETE
+0x4D HCI_EVENT_AMP_STATUS_CHANGE
+0x4E HCI_EVENT_TRIGGERED_CLOCK_CAPTURE
+0x4F HCI_EVENT_SYNCHRONIZATION_TRAIN_COMPLETE
+0x50 HCI_EVENT_SYNCHRONIZATION_TRAIN_RECEIVED
+0x51 HCI_EVENT_CONNECTIONLESS_SLAVE_BROADCAST_RECEIVE
+0x52 HCI_EVENT_CONNECTIONLESS_SLAVE_BROADCAST_TIMEOUT
+0x53 HCI_EVENT_TRUNCATED_PAGE_COMPLETE
+0x54 HCI_EVENT_SLAVE_PAGE_RESPONSE_TIMEOUT
+0x55 HCI_EVENT_CONNECTIONLESS_SLAVE_BROADCAST_CHANNEL_MAP_CHANGE
+0x56 HCI_EVENT_INQUIRY_RESPONSE_NOTIFICATION
+0x57 HCI_EVENT_AUTHENTICATED_PAYLOAD_TIMEOUT_EXPIRED
+
+0xFE HCI_EVENT_LOGO_TESTING
+0xFF HCI_EVENT_VENDOR_SPECIFIC
+)
+(
+0x01 HCI_VENDOR_EVENT_COMMU_READY
+)
+//HCI LE SUBEVENT CODE
+(
+0x01 HCI_LE_SUBEVENT_CONN_COMPLETE
+0x02 HCI_LE_SUBEVENT_ADV_REPORT
+0x03 HCI_LE_SUBEVENT_CONN_UPDATE_COMPLETE
+0x04 HCI_LE_SUBEVENT_REMOTE_FEATURE_COMPLETE
+0x05 HCI_LE_SUBEVENT_LTK_REQUEST
+0x06 HCI_LE_SUBEVENT_REMOTE_CONN_PARAM_REQ
+)
+
Index: format/kscan_peipherals.format
===================================================================
--- /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/format/kscan_peipherals.format	(nonexistent)
+++ /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/format/kscan_peipherals.format	(working copy)
@@ -0,0 +1,35 @@
+
+
+
+
+
+
+//0 mem_kscan_head_ptr
+//1 mem_col_num
+//1 mem_row_num
+//4 mem_col_conf_pin
+//4 mem_row_conf_pin
+//1 mem_row_count
+//1 mem_count_shift
+//2 mem_kscan_value_temp
+//2 mem_kscan_lastvalue
+//2 mem_kscan_value
+//4 mem_btclk_kscan
+//1 mem_btclk_kscan_interval
+
+
+0x00 KEYSCAN_OFFECT_COL_NUM
+0x01 KEYSCAN_OFFECT_ROW_NUM
+0x02 KEYSCAN_OFFECT_COL_CONF_PIN
+0x06 KEYSCAN_OFFECT_ROW_CONF_PIN
+
+0x0a KEYSCAN_OFFECT_ROW_COUNT
+0x0b KEYSCAN_OFFECT_SHIFT_COUNT
+
+0X0C KEYSCAN_OFFECT_VALUE_TEMP
+0X0E KEYSCAN_OFFECT_LASVALUE
+0X10 KEYSCAN_OFFECT_VALUE
+0x12 KEYSCAN_OFFECT_BTCLK
+0x16 KEYSCAN_OFFECT_BTCLK_INTERVAL
+
+
Index: format/l2cap.format
===================================================================
--- /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/format/l2cap.format	(nonexistent)
+++ /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/format/l2cap.format	(working copy)
@@ -0,0 +1,443 @@
+
+memalloc(
+0 mem_l2cap_mem_start
+// L2CAP RX 
+2 mem_l2cap_rxbuff1_len
+2 mem_l2cap_rxbuff2_len
+2 mem_l2cap_rxbuff_new
+1 mem_l2cap_rxbuff_inuse
+2 mem_l2cap_payload_ptr
+2 mem_l2cap_rx_pkt_length
+2 mem_l2cap_rx_cid
+1 mem_l2cap_rx_done
+
+
+
+// L2CAP TX Signal channel
+2 mem_l2cap_signal_tx_buff_ptr
+2 mem_l2cap_signal_tx_payload_ptr
+2 mem_l2cap_signal_tx_length
+// L2CAP TX SDP channel
+2 mem_sdp_tx_buff_ptr
+2 mem_sdp_tx_payload_ptr
+2 mem_sdp_tx_pkt_length
+// L2CAP TX RFCOMM channel
+2 mem_rfcomm_tx_buff_ptr
+2 mem_rfcomm_tx_payload_ptr
+2 mem_rfcomm_tx_pkt_length
+
+
+
+//L2CAP Util
+
+2 memL2CAP_T1
+
+1 mem_CONTROL_tasks
+1 mem_send_config_req
+
+
+1 mem_config_identifier
+2 mem_config_req_dest_CID
+1 mem_rfcomm_malloc_fail_flag
+
+//L2CAP STATE MACHINE
+1 mem_message_to_uppersm
+1 mem_upper_sm_remote_page
+1 mem_upper_sm_reconn
+1 mem_upper_sm_ss
+
+
+64 mem_tx_malloc_log
+0 mem_l2cap_mem_end
+
+
+2 mem_scid
+2 mem_cmd_length
+2 mem_tt2
+2 mem_tt3
+2 mem_id
+2 mem_psm
+
+
+4 mem_l2cap_sdpres_delay_time
+)
+
+xmemalloc(
+0 mem_l2cap_xmem_start
+//*******************L2CAP TX MULTI-PACKET*********************//
+2 mem_l2cap_tx_multi_offset //0 means single packet
+
+//*******************CHANNEL ID*********************//
+2 mem_sdp_remote_cid
+2 mem_rfcomm_remote_cid
+2 mem_hid_ctrl_remote_cid
+2 mem_hid_int_remote_cid
+//*******************CHANNEL STATE*********************//
+1 mem_sdp_state
+1 mem_rfcomm_state
+1 mem_hid_control_state
+1 mem_hid_interrupt_state
+1 mem_spp_state
+1 mem_ML2CAP_comm_id
+
+//*******************L2CAP malloc********************//
+1 mem_used_map
+0 mem_tx_fifo0
+1 mem_tx_fifo0_map
+2 mem_tx_fifo0_ptr
+0 mem_tx_fifo1
+1 mem_tx_fifo1_map
+2 mem_tx_fifo1_ptr
+0 mem_tx_fifo2
+1 mem_tx_fifo2_map
+2 mem_tx_fifo2_ptr
+0 mem_tx_fifo3
+1 mem_tx_fifo3_map
+2 mem_tx_fifo3_ptr
+0 mem_tx_fifo_end
+256 mem_l2cap_lpm_txbuf
+//*******************MISC*********************//
+1 mem_l2cap_flow_ctrl_flag
+1 mem_l2cap_pending_item
+1 mem_l2cap_rcv_hidtype
+0 mem_l2cap_xmem_end
+
+)
+
+
+//mem_l2cap_lpm_txbuf
+(
+256 l2cap_lpm_txbuf_len
+)
+
+(
+4 L2CAP_TX_FIFO_SIZE
+8 L2CAP_TX_BUFF_CNT
+
+)
+(
+0x0002 L2CAP_SIG_EXT_FEATRUE
+0x0003 L2CAP_SIG_FIX_FEATRUE
+)
+
+
+(
+0 HS_IDLE
+1 AG_INIT_CALL
+2 HS_INIT_CALL
+)
+(
+0 M_ACL_LINK_ABSENT
+1 M_ACL_LINK_EXIST
+)
+
+(
+0 L2CAP_INUSE_BUFF1
+1 L2CAP_INUSE_BUFF2
+)
+/* upper layer interface w/ lower layer */
+(
+1 MAX_NUM_LINKS_ALLOWED
+1 MAX_NUM_SCO_ALLOWED
+1 ACL_LINK_PRESENT
+0 ACL_LINK_ABSENT
+)
+(
+1 L2CAP_RX_DONE 
+0 L2CAP_RX_CLEAR
+)
+/* Scheduler */
+(
+0 L2CAP_DISCONNECT_INTERRUPT
+1 RFCOMM_wants_service
+2 L2CAP_sig_Tx_buff_full
+3 RFCOMM_Tx_buff_full
+4 SDP_Tx_buff_full
+5 got_complete_L2CAP_pkt	
+6 L2CAP_init_Config_Req
+7 L2CAP_DISCONNECT_CONTROL
+)
+
+/* mem_CONTROL_tasks2 */
+(
+0 UI_NEED_SERVICE
+)
+/* L2CAP logic channel identifiers (2 bytes) p.261 */
+(
+0x0001 L2CAP_signal_channel
+0x0050 L2CAP_SDP_channel
+0x0051 L2CAP_RFCOMM_channel
+0x0052 L2CAP_HID_Control_channel   
+0x0053 L2CAP_HID_Interrupt_channel
+0x0077 L2CAP_AVDTP_signal_channel		//------avdtp
+0x0078 L2CAP_AVDTP_media_channel
+0x0079 L2CAP_AVDTP_report_channel
+0x0080 L2CAP_AVDTP_recovery_channel
+0x00dd L2CAP_AVCTP_Control_channel
+)
+/* L2CAP signalling command codes (1 byte) p.284 */
+(
+0x00 reserved
+0x01 signal_cmd_reject
+0x02 signal_connect_req
+0x03 signal_connect_rsp
+0x04 signal_config_req
+0x05 signal_config_rsp
+0x06 signal_disconnect_req
+0x07 signal_disconnect_rsp
+0x08 signal_echo_req
+0x09 signal_echo_rsp
+0x0a signal_info_req
+0x0b signal_info_rsp
+)
+/* L2CAP signal_command_reject reason code (2 bytes), p.285 */
+(
+0x0000 cmd_not_understood
+0x0001 signalling_MTU_exceeded
+0x0002 invalid_CID_in_req
+)
+/* L2CAP PSM values used in signal_connect_req (2 bytes), p.286 */
+(
+0x0001 PSM_SDP
+0x0003 PSM_RFCOMM
+0x0005 PSM_TCS
+0x0011 PSM_HID_control
+0x0013 PSM_HID_interrupt
+0x0017 PSM_AVCTP
+0x0019 PSM_AVDTP
+)
+/* L2CAP connection response result code (2 bytes), p.288 */
+(
+0x0000 L2CAP_connect_successful
+0x0001 L2CAP_connect_pending
+0x0002 L2CAP_connect_refused_PSM_unsupported
+0x0003 L2CAP_connect_refused_security_block
+0x0004 L2CAP_connect_refused_no_resources
+)
+/* L2CAP connection status values (2 bytes), p.288 */
+(
+0x0000 L2CAP_no_info_available
+0x0001 L2CAP_authentication_pending
+0x0002 L2CAP_authorization_pending
+)
+/* L2CAP configuration response result code (2 bytes), p.292 */
+(
+0x0000 L2CAP_config_success
+0x0001 L2CAP_config_failure_bad_parameters
+0x0002 L2CAP_config_failure_no_reason
+0x0003 L2CAP_config_failure_unknown_options
+)
+/* L2CAP constant definitions */
+(
+128 L2CAP_Rx_buff_size
+48  L2CAP_signal_Tx_buff_size
+128 SDP_Tx_buff_size
+128 RFCOMM_Tx_buff_size
+1 AM_ADDRESS
+3 DM1TYPE
+4 DH1TYPE
+11 DH3TYPE
+8 DVTYPE
+0 channel_state_closed
+1 channel_state_config
+2 channel_state_open
+0x0030 L2CAP_config_MTU_SDP
+0xffff L2CAP_config_ftimeout_SDP
+0x03e3 L2CAP_config_MTU_RFCOMM
+0xffff L2CAP_config_ftimeout_RFCOMM
+260 l2cap_max_pkt_len
+)
+
+(
+0 FAILURE
+1 SUCCESS
+2 IN_PROGRESS
+)
+(
+0x00	IDLE
+0x01	WAIT_4_BB_PAGE
+0x02	WAIT_4_LMP_CONN
+0x03	WAIT_4_SCO_CONN
+0x04	WAIT_4_SCO_KILLED
+)
+
+/*mem_master_mss*/
+(
+0 STOP_ENC
+1 SEND_SWITCH_REQ
+)
+(
+0 HF_HS_READY
+1 HF_AG_READY
+)
+/* mem_hf_state */
+(
+0 HF_STATE_WAITING_RFCOMM_CONN
+1 HF_STATE_HF_SEND_FEATURE
+2 HF_STATE_WAITING_AG_FEATURE_OK
+3 HF_STATE_HF_SEND_INDICATORS
+4 HF_STATE_WAITING_AG_INDICATORS_OK
+5 HF_STATE_HF_SEND_CURR_STATUS
+6 HF_STATE_WAITING_AG_STATUS_OK
+7 HF_STATE_HF_SEND_UPDATE_STATUS
+8 HF_STATE_WAITING_AG_UPDATE_STATUS_OK
+9 HF_STATE_CONNECTED
+0x0a HF_STATE_HF_SEND_RECEIVE_INFO
+0x0b HF_STATE_WAITING_AG_INFO
+0x0c HF_STATE_HF_SEND_AT_CLIP
+0x0d HF_STATE_WAITING_AT_CLIP
+0x0e HF_STATE_HF_SEND_AT_CCWA
+0x0f HF_STATE_WAITING_AT_CCWA
+)
+/*mem_hf_call_state*/
+(
+0 HF_CALL_STATE_INACTIVE
+1 HF_CALL_STATE_SETUP
+2 HF_CALL_STATE_ACTIVE 
+)
+/* mem_pairing_state bit definition */
+(
+0 PAIR_INQUIRY_START
+1 PAIR_INQUIRY_TIME_OUT
+2 PAIR_INQUIRY_FAILED
+3 PAIR_INQUIRY_SUCCESS
+4 PAIR_READY_CONN
+5 PAIR_WAIT_CANCEL_RESPONSE
+6 PAIR_CONN_SUCCESS
+7 PAIR_WAIT_DETACH
+)  
+
+/* mem_pairing_mode bit definition */
+(
+0 FORCE_AUTHENTICATION
+)
+/* mem_hid_protecol_type */
+(
+0 PROTECOL_BOOT /*default*/
+1 PROTECOL_REPORT
+)
+
+/* mem_upper_sm_reconn */
+(
+1 UPPERSM_SEND_SDP_CONN_REQ
+2 UPPERSM_SEND_SDP_CFG_REQ
+3 UPPERSM_SEND_SDP_HF_SS
+4 UPPERSM_SEND_SDP_DISC_REQ
+5 UPPERSM_SEND_RFCOMM_CONN_REQ
+6 UPPERSM_SEND_RFCOMM_CFG_REQ
+7 UPPERSM_SEND_SABM_CMD
+8 UPPERSM_SEND_DISC
+9 UPPERSM_SEND_WAIT
+10 UPPERSM_SEND_HID_CONTROL_CONN_REQ
+11 UPPERSM_SEND_HID_CONTROL_CFG_REQ
+12 UPPERSM_SEND_HID_INTERRUPT_CONN_REQ
+13 UPPERSM_SEND_HID_INTERRUPT_CFG_REQ
+14 UPPERSM_SEND_SDP_HS_SS
+15 UPPERSM_SEND_SDP_PBAP_SS
+16 UPPERSM_SEND_SDP_AVTARG_SS
+)
+/* mem_upper_sm_remote_page */
+(
+1 UPPERSM_RP_SEND_SDP_CONN_REQ
+2 UPPERSM_RP_SEND_SDP_CFG_REQ
+3 UPPERSM_RP_SEND_SDP_HF_SS
+4 UPPERSM_RP_SEND_SDP_HS_SS
+5 UPPERSM_RP_SEND_SDP_PBAP_SS
+6 UPPERSM_RP_SEND_SDP_AVTARG_SS
+7 UPPERSM_RP_SEND_SDP_DISC_REQ
+8 UPPERSM_RP_SEND_AVCTP_CONN_REQ
+9 UPPERSM_RP_SEND_AVCTP_CFG_REQ
+)
+
+/* mem_ML2CAP_flag */
+(
+0 MSCHEDULER_HID_CONTROL_CONN_DONE
+1 MSCHEDULER_HID_INTERRUPT_CONN_DONE
+2 MSCHEDULER_HID_CONTROL_CFG_REQ_DONE
+3 MSCHEDULER_HID_CONTROL_CFG_RSP_DONE
+4 MSCHEDULER_HID_INTERRUPT_CFG_REQ_DONE
+5 MSCHEDULER_HID_INTERRUPT_CFG_RSP_DONE
+6 MSCHEDULER_HID_CONTROL_DISC_DONE
+7 MSCHEDULER_HID_INTERRUPT_DISC_DONE
+)
+/*    ui event    --add by lj*/
+(
+0x00 UI_DATA_EVNET_NONE
+0x01 UI_DATA_EVNET_HID
+0x02 UI_DATA_EVNET_AVDTP_S
+0x03 UI_DATA_EVNET_AVDTP_M
+0x04 UI_DATA_EVNET_AVCTP
+0x05 UI_DATA_EVNET_HS
+0x06 UI_DATA_EVNET_HF
+0x07 UI_DATA_EVNET_SPP
+0x08 UI_DATA_EVNET_OBEX
+)
+/*    ui ack --add by lj*/
+(
+0x00 UI_DATA_TX_NONE
+0x01 UI_DATA_TX_HID
+0x02 UI_DATA_TX_AVDTP_S
+0x03 UI_DATA_TX_AVDTP_M
+0x04 UI_DATA_TX_AVCTP
+0x05 UI_DATA_TX_HS
+0x06 UI_DATA_TX_HF
+0x07 UI_DATA_TX_SPP
+0x08 UI_DATA_TX_OBEX
+0x10 ACL_TX_L2CAP_SIGNAL
+0x11 ACL_TX_SDP
+0x12 ACL_TX_RFCOMM
+
+)
+
+(
+0 L2CAP_SDP_interface_conn
+1 L2CAP_SDP_interface_cfg
+)
+
+(                                   
+0 L2CAP_CHANNEL_STATE_CONN_REQ      
+1 L2CAP_CHANNEL_STATE_CONN_RES      
+2 L2CAP_CHANNEL_STATE_SND_CFG_REQ   
+3 L2CAP_CHANNEL_STATE_SND_CFG_RES   
+4 L2CAP_CHANNEL_STATE_RCV_CFG_REQ   
+5 L2CAP_CHANNEL_STATE_RCV_CFG_RES
+6 L2CAP_CHANNEL_RFCOMM_ONLY_SABM
+7 L2CAP_CHANNEL_RFCOMM_ONLY_UA
+6 L2CAP_CHANNEL_AVDTP_SIGNAL_INIT //set avdtp init complete
+6 L2CAP_CHANNEL_HID_HANDSHAKE_DONE
+0x3f L2CAP_CHANNEL_SETUP_COMPLETE
+0x7f L2CAP_CHANNEL_AVDTP_SIGNAL_COMPLETE
+0xff L2CAP_CHANNEL_RFCOMM_DLCI0_OPENED
+)                                     
+
+/*  AVDTP---lj*/
+(
+0 L2CAP_AVDTP_SIGNAL_CONNECT
+1 L2CAP_AVDTP_SIGNAL_CONFIG
+2 L2CAP_AVDTP_MEDIA_CONNECT
+3 L2CAP_AVDTP_MEDIA_CONFIG
+4 L2CAP_AVDTP_REPORT_CONNECT
+5 L2CAP_AVDTP_REPORT_CONFIG
+6 L2CAP_AVDTP_RECOVERY_CONNECT
+7 L2CAP_AVDTP_RECOVERY_CONFIG
+)
+/*  AVCTP---lj*/
+(
+0 L2CAP_AVCTP_SIGNAL_CONNECT
+1 L2CAP_AVCTP_SIGNAL_CONFIG
+)
+
+127 L2CAP_SIGNAL_MALLOC_SIZE
+
+//1 mem_rfcomm_malloc_fail_flag
+(
+0 RFCOMM_MALLOC_SUCCEED
+1 RFCOMM_MALLOC_FAIL
+)
+
+//mem_l2cap_flow_ctrl_flag
+(
+0 L2CAP_FLOW_CTRL_DISABLE
+1 L2CAP_FLOW_CTRL_ENABLE
+)
+
Index: format/lmp.format
===================================================================
--- /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/format/lmp.format	(nonexistent)
+++ /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/format/lmp.format	(working copy)
@@ -0,0 +1,229 @@
+
+memalloc(
+
+1 mem_lmo_header_length
+1 mem_lmo_header_opcode
+17 mem_lmo_payload
+1 mem_lmi_accepted_opcode
+1 mem_disconn_reason_send
+1 mem_tx_fixed_freq
+1 mem_rx_fixed_freq
+1 mem_ext_features_page
+2 mem_lmpext_ssp_enable
+1 mem_remote_sppcap
+
+1 mem_lmp_conn_state
+2 mem_soft_timer
+1 mem_pincode_state
+
+1 mem_sres_tid
+1 mem_accptsco_tid
+
+1 mem_wait_encryption
+
+16 mem_sniff_payload
+4 mem_aurand_send_delay_time
+)
+
+xmemalloc(
+1 mem_lmo_header_opcode_x
+3 mem_lmp_version
+2 mem_lmp_subversion
+1 mem_local_name_length
+3 mem_local_name
+64 mem_local_name2
+1 mem_local_name_end
+1 mem_unsniff2sniff_timer
+1 mem_switch_flag
+1 mem_classic_bt_flag
+1 mem_encapsulated_major_type
+1 mem_encapsulated_minor_type
+1 mem_encapsulated_len
+)
+
+	(
+	//bit flag:mem_classic_bt_flag
+	0 FLAG_SSP_REJECT_JUSTWORK
+	1 SHORT_MULT_FLAG
+	)
+	
+	(
+	//bit map
+	0 pair_state_inrand
+	1 pair_state_inrand_acpt
+	2 pair_state_send_comb
+	3 pair_state_recv_comb
+	4 pair_state_send_aurand
+	5 pair_state_recv_sres
+	6 pair_state_recv_aurand
+	7 pair_state_send_sres	
+	)
+	/* LMP opcodes */
+	(
+	1 LMP_NAME_REQ 
+	2 LMP_NAME_RES 
+	3 LMP_ACCEPTED 
+	4 LMP_NOT_ACCEPTED 
+	5 LMP_CLKOFFSET_REQ 
+	6 LMP_CLKOFFSET_RES 
+	7 LMP_DETACH 
+	8 LMP_IN_RAND 
+	9 LMP_COMB_KEY 
+	10 LMP_UNIT_KEY 
+	11 LMP_AU_RAND 
+	12 LMP_SRES 
+	13 LMP_TEMP_RAND 
+	14 LMP_TEMP_KEY 
+	15 LMP_ENCRYPTION_MODE_REQ 
+	16 LMP_ENCRYPTION_KEY_SIZE_REQ 
+	17 LMP_START_ENCRYPTION_REQ 
+	18 LMP_STOP_ENCRYPTION_REQ 
+	19 LMP_SWITCH_REQ 
+	20 LMP_HOLD
+	21 LMP_HOLD_REQ
+	23 LMP_SNIFF_REQ 
+	24 LMP_UNSNIFF_REQ 
+	26 LMP_PARK_REQ 
+	27 LMP_SET_BROADCAST_SCAN_WINDOW 
+	28 LMP_MODIFY_BEACON 
+	29 LMP_UNPARK_BD_ADDR_REQ 
+	30 LMP_UNPARK_PM_ADDR_REQ 
+	31 LMP_INCR_POWER_REQ 
+	32 LMP_DECR_POWER_REQ 
+	33 LMP_MAX_POWER 
+	34 LMP_MIN_POWER 
+	35 LMP_AUTO_RATE 
+	36 LMP_PREFERRED_RATE 
+	37 LMP_VERSION_REQ 
+	38 LMP_VERSION_RES 
+	39 LMP_FEATURES_REQ 
+	40 LMP_FEATURES_RES 
+	41 LMP_QUALITY_OF_SERVICE 
+	42 LMP_QUALITY_OF_SERVICE_REQ 
+	43 LMP_SCO_LINK_REQ 
+	44 LMP_REMOVE_SCO_LINK_REQ 
+	45 LMP_MAX_SLOT 
+	46 LMP_MAX_SLOT_REQ 
+	47 LMP_TIMING_ACCURACY_REQ 
+	48 LMP_TIMING_ACCURACY_RES 
+	49 LMP_SETUP_COMPLETE 
+	50 LMP_USE_SEMI_PERMANENT_KEY 
+	51 LMP_HOST_CONNECTION_REQ 
+	52 LMP_SLOT_OFFSET 
+	53 LMP_PAGE_MODE_REQ 
+	54 LMP_PAGE_SCAN_MODE_REQ 
+	55 LMP_SUPERVISION_TIMEOUT 
+	56 LMP_TEST_ACTIVATE
+	57 LMP_TEST_CONTROL
+	58 LMP_ENC_KEY_SIZE_MASK_REQ
+	59 LMP_ENC_KEY_SIZE_MASK_RES
+	60 LMP_SET_AFH
+
+	/* simple pairing support */
+	61 LMP_ENCAPSULATED_HEADER
+	62 LMP_ENCAPSULATED_PAYLOAD
+	63 LMP_SIMPLE_PAIRING_CONFIRM
+	64 LMP_SIMPLE_PAIRING_NUMBER
+	65 LMP_DHKEY_CHECK
+	127 LMP_ESCAPE
+	127 LMP_ESCAPE_4   /* add 2bytes LMP header support  */   
+	)
+	/* LMP EXT opcodes, ORed with bit 7 to make difference to nonEXT */
+	(
+	129 LMP_EXT_ACCEPTED
+	130 LMP_NOT_ACCEPTED_EXT
+	131 LMP_EXT_FEATURES_REQ
+	132 LMP_EXT_FEATURES_RES
+	139 LMP_PACKET_TYPE_TABLE_REQ
+	140 LMP_EXT_ESCO_LINK_REQ
+	141 LMP_EXT_REMOVE_ESCO_REQ
+	144 LMP_EXT_CHN_CLASSIFICATION_REQ
+	145 LMP_EXT_CHN_CLASSIFICATION
+	149 LMP_SNIFF_SUBRATING_REQ
+	150 LMP_SNIFF_SUBRATING_RES
+	151 LMP_PAUSE_ENCRYPTION_REQ
+	152 LMP_RESUME_ENCRYPTION_REQ
+	153 LMP_IO_CAP_REQ
+	154 LMP_IO_CAP_RES
+	161 LMP_PING_REQ
+	162 LMP_PING_RES
+	)
+	/* LMP reason codes */
+	(
+	0x05 AUTHENTICATION_FAILURE_ERROR
+	0x06 KEY_MISSING
+	0x0b ACL_CONNECTION_ALREADY_EXISTS
+	0x13 OTHER_END_TERMINATED
+	0x15 ABOUT_TO_POEWR_OFF
+	0x16 LOCAL_HOST
+	0x18 PAIRING_NOT_ALLOWED
+	0x19 UNKNOWN_LMP_PDU
+	0x1A UNSUPPORTED_LMP_FEATURE 
+	0x1F UNSPECIFIED_ERROR
+	0x20 UNSUPPORTED_PARAMETERS
+	0x21 SWITCH_NOT_ALLOWED
+	0x23 TRANSACTION_COLLISION
+	0x24 PDU_NOT_ALLOWED
+	0x25 ENCRYPTION_MODE_NOT_ACCEPTABLE
+	0x2e NOT_SUPPORT_CHN_CLASSIFICATION
+	0x37 NOT_SUPPORT_SSP
+	)
+
+	/* test mode scenarios */
+	(
+	0 PAUSE_TEST_MODE
+	1 ZERO_PATTERN
+	2 ONE_PATTERN
+	3 ALT_PATTERN
+	4 PSEUDORANDOM
+	5 CLOSED_LOOP_BACK_ACL
+	6 CLOSED_LOOP_BACK_SCO
+	7 ACL_WITHOUT_WHITENING
+	8 SCO_WITHOUT_WHITENING
+	9 ALT2_PATTERN
+	255 EXIT_TEST_MODE
+	)
+	/* test mode hoppig modes */
+	(
+	0 FIXED_FREQ
+	1 NORMAL_HOP
+	)
+
+	/* mem_lmp_tid indicates which type of LMP will be sent */
+	(
+	0 TID_NORM_REPLY
+	1 TID_NORM_SEND
+	2 TID_ONE
+	3 TID_ZERO
+	4 TID_PAIRING
+	5 TID_ENCRYPTION
+	6 TID_VARIABLE
+	7 TID_RX
+	)
+
+	/* ============== lmp status ==========*/
+	(
+	0 lmp_incoming
+	1 lmp_outgoing
+	2 lmp_reject_msg
+	3 lmp_clear_msg
+	4 upper_reject_msg
+	5 upper_clear_msg
+	)
+
+(
+0x2ee00 TIMER_ONE_MINUTE //96000*2
+80 TIMER_SWITCH_WAITE
+12 TIMER_ENPT_WAITE
+)
+
+(
+0 SWITCH_FLAG_INIT
+1 SWITCH_FLAG_ACCEPT
+2 SWITCH_FLAG_NOT_ACCEPT
+)
+(
+0 NULL_ENCRYP
+1 DONE_ENCRYP
+)
+
Index: format/memblocks.format
===================================================================
--- /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/format/memblocks.format	(nonexistent)
+++ /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/format/memblocks.format	(working copy)
@@ -0,0 +1,54 @@
+//
+//
+//Large memory blocks defined in this file.
+//Blocks Shall be defined with absolute address.
+//Blocks' length Shall be specified in comment following Blocks' names.
+//Different blocks MAY be overlap.
+//Blocks defined in this file Shall NOT be overlap with variable in memmap.format.
+
+// USB C51 exchange area
+(
+0xff0 mem_mcmd
+0xff1 mem_mouse_data
+)
+
+//l2cap RX buffers
+(
+0x1000 mem_le_l2cap_buf		//0x400
+0x1000 mem_l2cap_rxbuff1		//0x400
+0x1400 mem_l2cap_rxbuff2		//0x400
+//end address:0x17ff
+)
+//l2cap TX buffers
+(
+0x1800 mem_tx_buff0		//128
+0x0080 mem_bt_l2cap_tx_buff_size
+0x1400 mem_ble_tx_buff0
+0x0100 mem_ble_l2cap_tx_buff_size
+)
+
+(
+0x1800 mem_le_tx_buffer0
+0x1900 mem_le_tx_buffer1
+0x1a00 mem_le_tx_buffer2
+0x1b00 mem_le_tx_buffer3
+//end addr:0x1dff
+)
+
+
+//uart buffer
+(
+0x1800 mem_h5rx_buf//0x400
+0x1bff mem_h5rx_buf_end
+0x1c00 mem_h5tx_buf
+0x1fff mem_h5tx_buf_end
+)
+
+
+(
+0x1800 mem_ir_record
+0x1c      mem_ir_record_max
+)
+
+0x4c00 mem_savelist
+
Index: format/mesh_protocol_stack/mesh_access_layer.format
===================================================================
--- /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/format/mesh_protocol_stack/mesh_access_layer.format	(nonexistent)
+++ /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/format/mesh_protocol_stack/mesh_access_layer.format	(working copy)
@@ -0,0 +1,341 @@
+
+memalloc ali_mesh(
+	3 mem_mesh_NETKeyindex_and_APPKeyindex
+	
+	1 mem_mesh_access_layer_payload_len
+	0 mem_mesh_access_layer_payload
+	50 mem_mesh_access_payload
+
+)
+
+
+(//status codes
+0 STATUS_CODE_SUCCESS
+)
+
+
+// ali vendor message
+(
+0xD0 VENDOR_MESSAGE_ATTR_GET
+0xD1 VENDOR_MESSAGE_ATTR_SET
+0xD2 VENDOR_MESSAGE_ATTR_SET_UNACKNOWLEDGED
+0xD3 VENDOR_MESSAGE_ATTR_STATUS
+0xD4 VERDOR_MESSAGE_ATTR_INDICATION
+0xD5 VERDOR_MESSAGE_ATTR_CONFIRMATION
+0xCF VENDOR_MESSAGE_TRANSPARENT_MSG
+)
+
+
+
+(//configuration message and health message opcode
+0x80 MESH_CONFIGURATION_AND_HEALTH_MESSAGE_OPCODE_HEADER
+
+0x00 MESH_MESSAGE_OPCODE_CONFIG_APPKEY_ADD
+0x01 MESH_MESSAGE_OPCODE_CONFIG_APPKEY_UPDATE
+0x02 MESH_MESSAGE_OPCODE_CONFIG_COMPOSITION_DATA_STATUS
+0x03 MESH_MESSAGE_OPCODE_CONFIG_CONFIG_MODEL_PUBLICATION_SET
+0x04 MESH_MESSAGE_OPCODE_HEALTH_CURRENT_STATUS
+0x05 MESH_MESSAGE_OPCODE_HEALTH_FAULT_STATUS
+0x06 MESH_MESSAGE_OPCODE_CONFIG_HEARTBEAT_PUBLICATION_STATUS
+0x00 MESH_MESSAGE_OPCODE_CONFIG_APPKEY_DELETE_NO_HEAD
+0x01 MESH_MESSAGE_OPCODE_CONFIG_APPKEY_GET_NO_HEAD
+0x02 MESH_MESSAGE_OPCODE_CONFIG_APPKEY_LIST_NO_HEAD
+0x03 MESH_MESSAGE_OPCODE_CONFIG_APPKEY_STATUS_NO_HEAD
+0x04 MESH_MESSAGE_OPCODE_HEALTH_ATTENTION_GET_NO_HEAD
+0x05 MESH_MESSAGE_OPCODE_HEALTH_ATTENTION_SET_NO_HEAD
+0x06 MESH_MESSAGE_OPCODE_HEALTH_ATTENTION_SET_UNACKNOWLEDGED_NO_HEAD
+0x07 MESH_MESSAGE_OPCODE_HEALTH_ATTENTION_STATUS_NO_HEAD
+0x08 MESH_MESSAGE_OPCODE_CONFIG_COMPOSITION_DATA_GET_NO_HEAD
+0x09 MESH_MESSAGE_OPCODE_CONFIG_BEACON_GET_NO_HEAD
+0x0A MESH_MESSAGE_OPCODE_CONFIG_BEACON_SET_NO_HEAD
+0x0B MESH_MESSAGE_OPCODE_CONFIG_BEACON_STATUS_NO_HEAD
+0x0C MESH_MESSAGE_OPCODE_CONFIG_DEFAULT_TTL_GET_NO_HEAD
+0x0D MESH_MESSAGE_OPCODE_CONFIG_DEFAULT_TTL_SET_NO_HEAD
+0x0E MESH_MESSAGE_OPCODE_CONFIG_DEFAULT_TTL_STATUS_NO_HEAD
+0x0F MESH_MESSAGE_OPCODE_CONFIG_FRIEND_GET_NO_HEAD
+0x10 MESH_MESSAGE_OPCODE_CONFIG_FRIEND_SET_NO_HEAD
+0x11 MESH_MESSAGE_OPCODE_CONFIG_FRIEND_STATUS_NO_HEAD
+0x12 MESH_MESSAGE_OPCODE_CONFIG_GATT_PROXY_GET_NO_HEAD
+0x13 MESH_MESSAGE_OPCODE_CONFIG_GATT_PROXY_SET_NO_HEAD
+0x14 MESH_MESSAGE_OPCODE_CONFIG_GATT_PROXY_STATUS_NO_HEAD
+0x15 MESH_MESSAGE_OPCODE_CONFIG_KEY_REFRESH_PHASE_GET_NO_HEAD
+0x16 MESH_MESSAGE_OPCODE_CONFIG_KEY_REFRESH_PHASE_SET_NO_HEAD
+0x17 MESH_MESSAGE_OPCODE_CONFIG_KEY_REFRESH_PHASE_STATUS_NO_HEAD
+0x18 MESH_MESSAGE_OPCODE_CONFIG_MODEL_PUBLICATION_GET_NO_HEAD
+0x19 MESH_MESSAGE_OPCODE_CONFIG_MODEL_PUBLICATION_STATUS_NO_HEAD
+0x1A MESH_MESSAGE_OPCODE_CONFIG_MODEL_PUBLICATION_VIRTUAL_ADDRESS_SET_NO_HEAD
+0x1B MESH_MESSAGE_OPCODE_CONFIG_MODEL_SUBSCRIPTION_ADD_NO_HEAD
+0x1C MESH_MESSAGE_OPCODE_CONFIG_MODEL_SUBSCRIPTION_DELETE_NO_HEAD
+0x1D MESH_MESSAGE_OPCODE_CONFIG_MODEL_SUBSCRIPTION_DELETE_ALL_NO_HEAD
+0x1E MESH_MESSAGE_OPCODE_CONFIG_MODEL_SUBSCRIPTION_OVERWRITE_NO_HEAD
+0x1F MESH_MESSAGE_OPCODE_CONFIG_MODEL_SUBSCRIPTION_STATUS_NO_HEAD
+0x20 MESH_MESSAGE_OPCODE_CONFIG_MODEL_SUBSCRIPTION_VIRTUAL_ADDRESS_ADD_NO_HEAD
+0x21 MESH_MESSAGE_OPCODE_CONFIG_MODEL_SUBSCRIPTION_VIRTUAL_ADDRESS_DELETE_NO_HEAD
+0x22 MESH_MESSAGE_OPCODE_CONFIG_MODEL_SUBSCRIPTION_VIRTUAL_ADDRESS_OVERWRITE_NO_HEAD
+0x23 MESH_MESSAGE_OPCODE_CONFIG_NETWORK_TRANSMIT_GET_NO_HEAD
+0x24 MESH_MESSAGE_OPCODE_CONFIG_NETWORK_TRANSMIT_SET_NO_HEAD
+0x25 MESH_MESSAGE_OPCODE_CONFIG_NETWORK_TRANSMIT_STATUS_NO_HEAD
+0x26 MESH_MESSAGE_OPCODE_CONFIG_RELAY_GET_NO_HEAD
+0x27 MESH_MESSAGE_OPCODE_CONFIG_RELAY_SET_NO_HEAD
+0x28 MESH_MESSAGE_OPCODE_CONFIG_RELAY_STATUS_NO_HEAD
+0x29 MESH_MESSAGE_OPCODE_CONFIG_SIG_MODEL_SUBSCRIPTION_GET_NO_HEAD
+0x2A MESH_MESSAGE_OPCODE_CONFIG_SIG_MODEL_SUBSCRIPTION_LIST_NO_HEAD
+0x2B MESH_MESSAGE_OPCODE_CONFIG_VENDOR_MODEL_SUBSCRIPTION_GET_NO_HEAD
+0x2C MESH_MESSAGE_OPCODE_CONFIG_VENDOR_MODEL_SUBSCRIPTION_LIST_NO_HEAD
+0x2D MESH_MESSAGE_OPCODE_CONFIG_LOW_POWER_NODE_POLLTIMEOUT_GET_NO_HEAD
+0x2E MESH_MESSAGE_OPCODE_CONFIG_LOW_POWER_NODE_POLLTIMEOUT_STATUS_NO_HEAD
+0x2F MESH_MESSAGE_OPCODE_HEALTH_FAULT_CLEAR_NO_HEAD
+0x30 MESH_MESSAGE_OPCODE_HEALTH_FAULT_CLEAR_UNACKNOWLEDGED_NO_HEAD
+0x31 MESH_MESSAGE_OPCODE_HEALTH_FAULT_GET_NO_HEAD
+0x32 MESH_MESSAGE_OPCODE_HEALTH_FAULT_TEST_NO_HEAD
+0x33 MESH_MESSAGE_OPCODE_HEALTH_FAULT_TEST_UNACKNOWLEDGED_NO_HEAD
+0x34 MESH_MESSAGE_OPCODE_HEALTH_PERIOD_GET_NO_HEAD
+0x35 MESH_MESSAGE_OPCODE_HEALTH_PERIOD_SET_NO_HEAD
+0x36 MESH_MESSAGE_OPCODE_HEALTH_PERIOD_SET_UNACKNOWLEDGED_NO_HEAD
+0x37 MESH_MESSAGE_OPCODE_HEALTH_PERIOD_STATUS_NO_HEAD
+0x38 MESH_MESSAGE_OPCODE_CONFIG_HEARTBEAT_PUBLICATION_GET_NO_HEAD
+0x39 MESH_MESSAGE_OPCODE_CONFIG_HEARTBEAT_PUBLICATION_SET_NO_HEAD
+0x3A MESH_MESSAGE_OPCODE_CONFIG_HEARTBEAT_SUBSCRIPTION_GET_NO_HEAD
+0x3B MESH_MESSAGE_OPCODE_CONFIG_HEARTBEAT_SUBSCRIPTION_SET_NO_HEAD
+0x3C MESH_MESSAGE_OPCODE_CONFIG_HEARTBEAT_SUBSCRIPTION_STATUS_NO_HEAD
+0x3D MESH_MESSAGE_OPCODE_CONFIG_MODEL_APP_BIND_NO_HEAD
+0x3E MESH_MESSAGE_OPCODE_CONFIG_MODEL_APP_STATUS_NO_HEAD
+0x3F MESH_MESSAGE_OPCODE_CONFIG_MODEL_APP_UNBIND_NO_HEAD
+0x40 MESH_MESSAGE_OPCODE_CONFIG_NETKEY_ADD_NO_HEAD
+0x41 MESH_MESSAGE_OPCODE_CONFIG_NETKEY_DELETE_NO_HEAD
+0x42 MESH_MESSAGE_OPCODE_CONFIG_NETKEY_GET_NO_HEAD
+0x43 MESH_MESSAGE_OPCODE_CONFIG_NETKEY_LIST_NO_HEAD
+0x44 MESH_MESSAGE_OPCODE_CONFIG_NETKEY_STATUS_NO_HEAD
+0x45 MESH_MESSAGE_OPCODE_CONFIG_NETKEY_UPDATE_NO_HEAD
+0x46 MESH_MESSAGE_OPCODE_CONFIG_NODE_IDENTITY_GET_NO_HEAD
+0x47 MESH_MESSAGE_OPCODE_CONFIG_NODE_IDENTITY_SET_NO_HEAD
+0x48 MESH_MESSAGE_OPCODE_CONFIG_NODE_IDENTITY_STATUS_NO_HEAD
+0x49 MESH_MESSAGE_OPCODE_CONFIG_NODE_RESET_NO_HEAD
+0x4A MESH_MESSAGE_OPCODE_CONFIG_NODE_RESET_STATUS_NO_HEAD
+0x4B MESH_MESSAGE_OPCODE_CONFIG_SIG_MODEL_APP_GET_NO_HEAD
+0x4C MESH_MESSAGE_OPCODE_CONFIG_SIG_MODEL_APP_LIST_NO_HEAD
+0x4D MESH_MESSAGE_OPCODE_CONFIG_VENDOR_MODEL_APP_GET_NO_HEAD
+0x4E MESH_MESSAGE_OPCODE_CONFIG_VENDOR_MODEL_APP_LIST_NO_HEAD
+)
+
+(//Modle message opcode
+0x82 MESH_MODULE_MESSAGE_OPCODE_HEADER
+
+0x01 MESH_MODULE_MESSAGE_OPCODE_GENERIC_ONOFF_GET_NO_HEAD
+0x02 MESH_MODULE_MESSAGE_OPCODE_GENERIC_ONOFF_SET_NO_HEAD
+0x03 MESH_MODULE_MESSAGE_OPCODE_GENERIC_ONOFF_SET_UNACKNOWLEDGED_NO_HEAD
+0x04 MESH_MODULE_MESSAGE_OPCODE_GENERIC_ONOFF_STATUS_NO_HEAD
+0x05 MESH_MODULE_MESSAGE_OPCODE_GENERIC_LEVEL_GET_NO_HEAD
+0x06 MESH_MODULE_MESSAGE_OPCODE_GENERIC_LEVEL_SET_NO_HEAD
+0x07 MESH_MODULE_MESSAGE_OPCODE_GENERIC_LEVEL_SET_UNACKNOWLEDGED_NO_HEAD
+0x08 MESH_MODULE_MESSAGE_OPCODE_GENERIC_LEVEL_STATUS_NO_HEAD
+0x09 MESH_MODULE_MESSAGE_OPCODE_GENERIC_DELTA_SET_NO_HEAD
+0x0A MESH_MODULE_MESSAGE_OPCODE_GENERIC_DELTA_SET_UNACKNOWLEDGED_NO_HEAD
+0x0B MESH_MODULE_MESSAGE_OPCODE_GENERIC_MOVE_SET_NO_HEAD
+0x0C MESH_MODULE_MESSAGE_OPCODE_GENERIC_MOVE_SET_UNACKNOWLEDGED_NO_HEAD
+0x0D MESH_MODULE_MESSAGE_OPCODE_GENERIC_DEFAULT_TRANSITION_TIME_GET_NO_HEAD
+0x0E MESH_MODULE_MESSAGE_OPCODE_GENERIC_DEFAULT_TRANSITION_TIME_SET_NO_HEAD
+0x0F MESH_MODULE_MESSAGE_OPCODE_GENERIC_DEFAULT_TRANSITION_TIME_SET_UNACKNOWLEDGED_NO_HEAD
+0x10 MESH_MODULE_MESSAGE_OPCODE_GENERIC_DEFAULT_TRANSITION_TIME_STATUS_NO_HEAD
+0x11 MESH_MODULE_MESSAGE_OPCODE_GENERIC_ONPOWERUP_GET_NO_HEAD
+0x12 MESH_MODULE_MESSAGE_OPCODE_GENERIC_ONPOWERUP_STATUS_NO_HEAD
+0x13 MESH_MODULE_MESSAGE_OPCODE_GENERIC_ONPOWERUP_SET_NO_HEAD
+0x14 MESH_MODULE_MESSAGE_OPCODE_GENERIC_ONPOWERUP_SET_UNACKNOWLEDGED_NO_HEAD
+0x15 MESH_MODULE_MESSAGE_OPCODE_GENERIC_POWER_LEVEL_GET_NO_HEAD
+0x16 MESH_MODULE_MESSAGE_OPCODE_GENERIC_POWER_LEVEL_SET_NO_HEAD
+0x17 MESH_MODULE_MESSAGE_OPCODE_GENERIC_POWER_LEVEL_SET_UNACKNOWLEDGED_NO_HEAD
+0x18 MESH_MODULE_MESSAGE_OPCODE_GENERIC_POWER_LEVEL_STATUS_NO_HEAD
+0x19 MESH_MODULE_MESSAGE_OPCODE_GENERIC_POWER_LAST_GET_NO_HEAD
+0x1A MESH_MODULE_MESSAGE_OPCODE_GENERIC_POWER_LAST_STATUS_NO_HEAD
+0x1B MESH_MODULE_MESSAGE_OPCODE_GENERIC_POWER_DEFAULT_GET_NO_HEAD
+0x1C MESH_MODULE_MESSAGE_OPCODE_GENERIC_POWER_DEFAULT_STATUS_NO_HEAD
+0x1D MESH_MODULE_MESSAGE_OPCODE_GENERIC_POWER_RANGE_GET_NO_HEAD
+0x1E MESH_MODULE_MESSAGE_OPCODE_GENERIC_POWER_RANGE_STATUS_NO_HEAD
+0x1F MESH_MODULE_MESSAGE_OPCODE_GENERIC_POWER_DEFAULT_SET_NO_HEAD
+0x20 MESH_MODULE_MESSAGE_OPCODE_GENERIC_POWER_DEFAULT_SET_UNACKNOWLEDGED_NO_HEAD
+0x21 MESH_MODULE_MESSAGE_OPCODE_GENERIC_POWER_RANGE_SET_NO_HEAD
+0x22 MESH_MODULE_MESSAGE_OPCODE_GENERIC_POWER_RANGE_SET_UNACKNOWLEDGED_NO_HEAD
+0x23 MESH_MODULE_MESSAGE_OPCODE_GENERIC_BATTERY_GET_NO_HEAD
+0x24 MESH_MODULE_MESSAGE_OPCODE_GENERIC_BATTERY_STATUS_NO_HEAD
+0x25 MESH_MODULE_MESSAGE_OPCODE_GENERIC_LOCATION_GLOBAL_GET_NO_HEAD
+0x40 MESH_MODULE_MESSAGE_OPCODE_GENERIC_LOCATION_GLOBAL_STATUS
+0x26 MESH_MODULE_MESSAGE_OPCODE_GENERIC_LOCATION_LOCAL_GET_NO_HEAD
+0x27 MESH_MODULE_MESSAGE_OPCODE_GENERIC_LOCATION_LOCAL_STATUS_NO_HEAD
+0x41 MESH_MODULE_MESSAGE_OPCODE_GENERIC_LOCATION_GLOBAL_SET
+0x42 MESH_MODULE_MESSAGE_OPCODE_GENERIC_LOCATION_GLOBAL_SET_UNACKNOWLEDGED
+0x28 MESH_MODULE_MESSAGE_OPCODE_GENERIC_LOCATION_LOCAL_SET_NO_HEAD
+0x29 MESH_MODULE_MESSAGE_OPCODE_GENERIC_LOCATION_LOCAL_SET_UNACKNOWLEDGED_NO_HEAD
+0x2A MESH_MODULE_MESSAGE_OPCODE_GENERIC_MANUFACTURER_PROPERTIES_GET_NO_HEAD
+0x43 MESH_MODULE_MESSAGE_OPCODE_GENERIC_MANUFACTURER_PROPERTIES_STATUS
+0x2B MESH_MODULE_MESSAGE_OPCODE_GENERIC_MANUFACTURER_PROPERTY_GET_NO_HEAD
+0x44 MESH_MODULE_MESSAGE_OPCODE_GENERIC_MANUFACTURER_PROPERTY_SET
+0x45 MESH_MODULE_MESSAGE_OPCODE_GENERIC_MANUFACTURER_PROPERTY_SET_UNACKNOWLEDGED
+0x46 MESH_MODULE_MESSAGE_OPCODE_GENERIC_MANUFACTURER_PROPERTY_STATUS
+0x2C MESH_MODULE_MESSAGE_OPCODE_GENERIC_ADMIN_PROPERTIES_GET_NO_HEAD
+0x47 MESH_MODULE_MESSAGE_OPCODE_GENERIC_ADMIN_PROPERTIES_STATUS
+0x2D MESH_MODULE_MESSAGE_OPCODE_GENERIC_ADMIN_PROPERTY_GET_NO_HEAD
+0x48 MESH_MODULE_MESSAGE_OPCODE_GENERIC_ADMIN_PROPERTY_SET
+0x49 MESH_MODULE_MESSAGE_OPCODE_GENERIC_ADMIN_PROPERTY_SET_UNACKNOWLEDGED
+0x4A MESH_MODULE_MESSAGE_OPCODE_GENERIC_ADMIN_PROPERTY_STATUS
+0x2E MESH_MODULE_MESSAGE_OPCODE_GENERIC_USER_PROPERTIES_GET_NO_HEAD
+0x4B MESH_MODULE_MESSAGE_OPCODE_GENERIC_USER_PROPERTIES_STATUS
+0x2F MESH_MODULE_MESSAGE_OPCODE_GENERIC_USER_PROPERTY_GET_NO_HEAD
+0x4C MESH_MODULE_MESSAGE_OPCODE_GENERIC_USER_PROPERTY_SET
+0x4D MESH_MODULE_MESSAGE_OPCODE_GENERIC_USER_PROPERTY_SET_UNACKNOWLEDGED
+0x4E MESH_MODULE_MESSAGE_OPCODE_GENERIC_USER_PROPERTY_STATUS
+0x4F MESH_MODULE_MESSAGE_OPCODE_GENERIC_CLIENT_PROPERTIES_GET
+0x50 MESH_MODULE_MESSAGE_OPCODE_GENERIC_CLIENT_PROPERTIES_STATUS
+0x30 MESH_MODULE_MESSAGE_OPCODE_SENSOR_DESCRIPTOR_GET_NO_HEAD
+0x51 MESH_MODULE_MESSAGE_OPCODE_SENSOR_DESCRIPTOR_STATUS
+0x31 MESH_MODULE_MESSAGE_OPCODE_SENSOR_GET_NO_HEAD
+0x52 MESH_MODULE_MESSAGE_OPCODE_SENSOR_STATUS
+0x32 MESH_MODULE_MESSAGE_OPCODE_SENSOR_COLUMN_GET_NO_HEAD
+0x53 MESH_MODULE_MESSAGE_OPCODE_SENSOR_COLUMN_STATUS
+0x33 MESH_MODULE_MESSAGE_OPCODE_SENSOR_SERIES_GET_NO_HEAD
+0x54 MESH_MODULE_MESSAGE_OPCODE_SENSOR_SERIES_STATUS
+0x34 MESH_MODULE_MESSAGE_OPCODE_SENSOR_CADENCE_GET_NO_HEAD
+0x55 MESH_MODULE_MESSAGE_OPCODE_SENSOR_CADENCE_SET
+0x56 MESH_MODULE_MESSAGE_OPCODE_SENSOR_CADENCE_SET_UNACKNOWLEDGED
+0x57 MESH_MODULE_MESSAGE_OPCODE_SENSOR_CADENCE_STATUS
+0x35 MESH_MODULE_MESSAGE_OPCODE_SENSOR_SETTINGS_GET_NO_HEAD
+0x58 MESH_MODULE_MESSAGE_OPCODE_SENSOR_SETTINGS_STATUS
+0x36 MESH_MODULE_MESSAGE_OPCODE_SENSOR_SETTING_GET_NO_HEAD
+0x59 MESH_MODULE_MESSAGE_OPCODE_SENSOR_SETTING_SET
+0x5A MESH_MODULE_MESSAGE_OPCODE_SENSOR_SETTING_SET_UNACKNOWLEDGED
+0x5B MESH_MODULE_MESSAGE_OPCODE_SENSOR_SETTING_STATUS
+0x37 MESH_MODULE_MESSAGE_OPCODE_TIME_GET_NO_HEAD
+0x5C MESH_MODULE_MESSAGE_OPCODE_TIME_SET
+0x5D MESH_MODULE_MESSAGE_OPCODE_TIME_STATUS
+0x38 MESH_MODULE_MESSAGE_OPCODE_TIME_ROLE_GET_NO_HEAD
+0x39 MESH_MODULE_MESSAGE_OPCODE_TIME_ROLE_SET_NO_HEAD
+0x3A MESH_MODULE_MESSAGE_OPCODE_TIME_ROLE_STATUS_NO_HEAD
+0x3B MESH_MODULE_MESSAGE_OPCODE_TIME_ZONE_GET_NO_HEAD
+0x3C MESH_MODULE_MESSAGE_OPCODE_TIME_ZONE_SET_NO_HEAD
+0x3D MESH_MODULE_MESSAGE_OPCODE_TIME_ZONE_STATUS_NO_HEAD
+0x3E MESH_MODULE_MESSAGE_OPCODE_TAI_UTC_DELTA_GET_NO_HEAD
+0x3F MESH_MODULE_MESSAGE_OPCODE_TAI_UTC_DELTA_SET_NO_HEAD
+0x40 MESH_MODULE_MESSAGE_OPCODE_TAI_UTC_DELTA_STATUS_NO_HEAD
+0x41 MESH_MODULE_MESSAGE_OPCODE_SCENE_GET_NO_HEAD
+0x42 MESH_MODULE_MESSAGE_OPCODE_SCENE_RECALL_NO_HEAD
+0x43 MESH_MODULE_MESSAGE_OPCODE_SCENE_RECALL_UNACKNOWLEDGED_NO_HEAD
+0x5E MESH_MODULE_MESSAGE_OPCODE_SCENE_STATUS
+0x44 MESH_MODULE_MESSAGE_OPCODE_SCENE_REGISTER_GET_NO_HEAD
+0x45 MESH_MODULE_MESSAGE_OPCODE_SCENE_REGISTER_STATUS_NO_HEAD
+0x46 MESH_MODULE_MESSAGE_OPCODE_SCENE_STORE_NO_HEAD
+0x47 MESH_MODULE_MESSAGE_OPCODE_SCENE_STORE_UNACKNOWLEDGED_NO_HEAD
+0x9E MESH_MODULE_MESSAGE_OPCODE_SCENE_DELETE_NO_HEAD
+0x9F MESH_MODULE_MESSAGE_OPCODE_SCENE_DELETE_UNACKNOWLEDGED_NO_HEAD
+0x48 MESH_MODULE_MESSAGE_OPCODE_SCHEDULER_ACTION_GET_NO_HEAD
+0x5F MESH_MODULE_MESSAGE_OPCODE_SCHEDULER_ACTION_STATUS
+0x49 MESH_MODULE_MESSAGE_OPCODE_SCHEDULER_GET_NO_HEAD
+0x4A MESH_MODULE_MESSAGE_OPCODE_SCHEDULER_STATUS_NO_HEAD
+0x60 MESH_MODULE_MESSAGE_OPCODE_SCHEDULER_ACTION_SET
+0x61 MESH_MODULE_MESSAGE_OPCODE_SCHEDULER_ACTION_SET_UNACKNOWLEDGED
+0x4B MESH_MODULE_MESSAGE_OPCODE_LIGHT_LIGHTNESS_LIGHT_LIGHTNESS_GET_NO_HEAD
+0x4C MESH_MODULE_MESSAGE_OPCODE_LIGHT_LIGHTNESS_SET_NO_HEAD
+0x4D MESH_MODULE_MESSAGE_OPCODE_LIGHT_LIGHTNESS_SET_UNACKNOWLEDGED_NO_HEAD
+0x4E MESH_MODULE_MESSAGE_OPCODE_LIGHT_LIGHTNESS_STATUS_NO_HEAD
+0x4F MESH_MODULE_MESSAGE_OPCODE_LIGHT_LIGHTNESS_LINEAR_GET_NO_HEAD
+0x50 MESH_MODULE_MESSAGE_OPCODE_LIGHT_LIGHTNESS_LINEAR_SET_NO_HEAD
+0x51 MESH_MODULE_MESSAGE_OPCODE_LIGHT_LIGHTNESS_LINEAR_SET_UNACKNOWLEDGED_NO_HEAD
+0x52 MESH_MODULE_MESSAGE_OPCODE_LIGHT_LIGHTNESS_LINEAR_STATUS_NO_HEAD
+0x53 MESH_MODULE_MESSAGE_OPCODE_LIGHT_LIGHTNESS_LAST_GET_NO_HEAD
+0x54 MESH_MODULE_MESSAGE_OPCODE_LIGHT_LIGHTNESS_LAST_STATUS_NO_HEAD
+0x55 MESH_MODULE_MESSAGE_OPCODE_LIGHT_LIGHTNESS_DEFAULT_GET_NO_HEAD
+0x56 MESH_MODULE_MESSAGE_OPCODE_LIGHT_LIGHTNESS_DEFAULT_STATUS_NO_HEAD
+0x57 MESH_MODULE_MESSAGE_OPCODE_LIGHT_LIGHTNESS_RANGE_GET_NO_HEAD
+0x58 MESH_MODULE_MESSAGE_OPCODE_LIGHT_LIGHTNESS_RANGE_STATUS_NO_HEAD
+0x59 MESH_MODULE_MESSAGE_OPCODE_LIGHT_LIGHTNESS_DEFAULT_SET_NO_HEAD
+0x5A MESH_MODULE_MESSAGE_OPCODE_LIGHT_LIGHTNESS_DEFAULT_SET_UNACKNOWLEDGED_NO_HEAD
+0x5B MESH_MODULE_MESSAGE_OPCODE_LIGHT_LIGHTNESS_RANGE_SET_NO_HEAD
+0x5C MESH_MODULE_MESSAGE_OPCODE_LIGHT_LIGHTNESS_RANGE_SET_UNACKNOWLEDGED_NO_HEAD
+0x5D MESH_MODULE_MESSAGE_OPCODE_LIGHT_CTL_GET_NO_HEAD
+0x5E MESH_MODULE_MESSAGE_OPCODE_LIGHT_CTL_SET_NO_HEAD
+0x5F MESH_MODULE_MESSAGE_OPCODE_LIGHT_CTL_SET_UNACKNOWLEDGED_NO_HEAD
+0x60 MESH_MODULE_MESSAGE_OPCODE_LIGHT_CTL_STATUS_NO_HEAD
+0x61 MESH_MODULE_MESSAGE_OPCODE_LIGHT_CTL_TEMPERATURE_GET_NO_HEAD
+0x62 MESH_MODULE_MESSAGE_OPCODE_LIGHT_CTL_TEMPERATURE_RANGE_GET_NO_HEAD
+0x63 MESH_MODULE_MESSAGE_OPCODE_LIGHT_CTL_TEMPERATURE_RANGE_STATUS_NO_HEAD
+0x64 MESH_MODULE_MESSAGE_OPCODE_LIGHT_CTL_TEMPERATURE_SET_NO_HEAD
+0x65 MESH_MODULE_MESSAGE_OPCODE_LIGHT_CTL_TEMPERATURE_SET_UNACKNOWLEDGED_NO_HEAD
+0x66 MESH_MODULE_MESSAGE_OPCODE_LIGHT_CTL_TEMPERATURE_STATUS_NO_HEAD
+0x67 MESH_MODULE_MESSAGE_OPCODE_LIGHT_CTL_DEFAULT_GET_NO_HEAD
+0x68 MESH_MODULE_MESSAGE_OPCODE_LIGHT_CTL_DEFAULT_STATUS_NO_HEAD
+0x69 MESH_MODULE_MESSAGE_OPCODE_LIGHT_CTL_DEFAULT_SET_NO_HEAD
+0x6A MESH_MODULE_MESSAGE_OPCODE_LIGHT_CTL_DEFAULT_SET_UNACKNOWLEDGED_NO_HEAD
+0x6B MESH_MODULE_MESSAGE_OPCODE_LIGHT_CTL_TEMPERATURE_RANGE_SET_NO_HEAD
+0x6C MESH_MODULE_MESSAGE_OPCODE_LIGHT_CTL_TEMPERATURE_RANGE_SET_UNACKNOWLEDGED_NO_HEAD
+0x6D MESH_MODULE_MESSAGE_OPCODE_LIGHT_HSL_GET_NO_HEAD
+0x6E MESH_MODULE_MESSAGE_OPCODE_LIGHT_HSL_HUE_GET_NO_HEAD
+0x6F MESH_MODULE_MESSAGE_OPCODE_LIGHT_HSL_HUE_SET_NO_HEAD
+0x70 MESH_MODULE_MESSAGE_OPCODE_LIGHT_HSL_HUE_SET_UNACKNOWLEDGED_NO_HEAD
+0x71 MESH_MODULE_MESSAGE_OPCODE_LIGHT_HSL_HUE_STATUS_NO_HEAD
+0x72 MESH_MODULE_MESSAGE_OPCODE_LIGHT_HSL_SATURATION_GET_NO_HEAD
+0x73 MESH_MODULE_MESSAGE_OPCODE_LIGHT_HSL_SATURATION_SET_NO_HEAD
+0x74 MESH_MODULE_MESSAGE_OPCODE_LIGHT_HSL_SATURATION_SET_UNACKNOWLEDGED_NO_HEAD
+0x75 MESH_MODULE_MESSAGE_OPCODE_LIGHT_HSL_SATURATION_STATUS_NO_HEAD
+0x76 MESH_MODULE_MESSAGE_OPCODE_LIGHT_HSL_SET_NO_HEAD
+0x77 MESH_MODULE_MESSAGE_OPCODE_LIGHT_HSL_SET_UNACKNOWLEDGED_NO_HEAD
+0x78 MESH_MODULE_MESSAGE_OPCODE_LIGHT_HSL_STATUS_NO_HEAD
+0x79 MESH_MODULE_MESSAGE_OPCODE_LIGHT_HSL_TARGET_GET_NO_HEAD
+0x7A MESH_MODULE_MESSAGE_OPCODE_LIGHT_HSL_TARGET_STATUS_NO_HEAD
+0x7B MESH_MODULE_MESSAGE_OPCODE_LIGHT_HSL_DEFAULT_GET_NO_HEAD
+0x7C MESH_MODULE_MESSAGE_OPCODE_LIGHT_HSL_DEFAULT_STATUS_NO_HEAD
+0x7D MESH_MODULE_MESSAGE_OPCODE_LIGHT_HSL_RANGE_GET_NO_HEAD
+0x7E MESH_MODULE_MESSAGE_OPCODE_LIGHT_HSL_RANGE_STATUS_NO_HEAD
+0x7F MESH_MODULE_MESSAGE_OPCODE_LIGHT_HSL_DEFAULT_SET_NO_HEAD
+0x80 MESH_MODULE_MESSAGE_OPCODE_LIGHT_HSL_DEFAULT_SET_UNACKNOWLEDGED_NO_HEAD
+0x81 MESH_MODULE_MESSAGE_OPCODE_LIGHT_HSL_RANGE_SET_NO_HEAD
+0x83 MESH_MODULE_MESSAGE_OPCODE_LIGHT_XYL_GET_NO_HEAD
+0x84 MESH_MODULE_MESSAGE_OPCODE_LIGHT_XYL_SET_NO_HEAD
+0x85 MESH_MODULE_MESSAGE_OPCODE_LIGHT_XYL_SET_UNACKNOWLEDGED_NO_HEAD
+0x86 MESH_MODULE_MESSAGE_OPCODE_LIGHT_XYL_STATUS_NO_HEAD
+0x87 MESH_MODULE_MESSAGE_OPCODE_LIGHT_XYL_TARGET_GET_NO_HEAD
+0x88 MESH_MODULE_MESSAGE_OPCODE_LIGHT_XYL_TARGET_STATUS_NO_HEAD
+0x89 MESH_MODULE_MESSAGE_OPCODE_LIGHT_XYL_DEFAULT_GET_NO_HEAD
+0x8A MESH_MODULE_MESSAGE_OPCODE_LIGHT_XYL_DEFAULT_STATUS_NO_HEAD
+0x8B MESH_MODULE_MESSAGE_OPCODE_LIGHT_XYL_RANGE_GET_NO_HEAD
+0x8C MESH_MODULE_MESSAGE_OPCODE_LIGHT_XYL_RANGE_STATUS_NO_HEAD
+0x8D MESH_MODULE_MESSAGE_OPCODE_LIGHT_XYL_DEFAULT_SET_NO_HEAD
+0x8E MESH_MODULE_MESSAGE_OPCODE_LIGHT_XYL_DEFAULT_SET_UNACKNOWLEDGED_NO_HEAD
+0x8F MESH_MODULE_MESSAGE_OPCODE_LIGHT_XYL_RANGE_SET_NO_HEAD
+0x90 MESH_MODULE_MESSAGE_OPCODE_LIGHT_XYL_RANGE_SET_UNACKNOWLEDGED_NO_HEAD
+0x91 MESH_MODULE_MESSAGE_OPCODE_LIGHT_LC_MODE_GET_NO_HEAD
+0x92 MESH_MODULE_MESSAGE_OPCODE_LIGHT_LC_MODE_SET_NO_HEAD
+0x93 MESH_MODULE_MESSAGE_OPCODE_LIGHT_LC_MODE_SET_UNACKNOWLEDGED_NO_HEAD
+0x94 MESH_MODULE_MESSAGE_OPCODE_LIGHT_LC_MODE_STATUS_NO_HEAD
+0x95 MESH_MODULE_MESSAGE_OPCODE_LIGHT_LC_OM_GET_NO_HEAD
+0x96 MESH_MODULE_MESSAGE_OPCODE_LIGHT_LC_OM_SET_NO_HEAD
+0x97 MESH_MODULE_MESSAGE_OPCODE_LIGHT_LC_OM_SET_UNACKNOWLEDGED_NO_HEAD
+0x98 MESH_MODULE_MESSAGE_OPCODE_LIGHT_LC_OM_STATUS_NO_HEAD
+0x99 MESH_MODULE_MESSAGE_OPCODE_LIGHT_LC_LIGHT_ONOFF_GET_NO_HEAD
+0x9A MESH_MODULE_MESSAGE_OPCODE_LIGHT_LC_LIGHT_ONOFF_SET_NO_HEAD
+0x9B MESH_MODULE_MESSAGE_OPCODE_LIGHT_LC_LIGHT_ONOFF_SET_UNACKNOWLEDGED_NO_HEAD
+0x9C MESH_MODULE_MESSAGE_OPCODE_LIGHT_LC_LIGHT_ONOFF_STATUS_NO_HEAD
+0x9D MESH_MODULE_MESSAGE_OPCODE_LIGHT_LC_PROPERTY_GET_NO_HEAD
+0x62 MESH_MODULE_MESSAGE_OPCODE_LIGHT_LC_PROPERTY_SET
+0x63 MESH_MODULE_MESSAGE_OPCODE_LIGHT_LC_PROPERTY_SET_UNACKNOWLEDGED
+0x64 MESH_MODULE_MESSAGE_OPCODE_LIGHT_LC_PROPERTY_STATUS)
+
+// status code
+(
+0x00 MESH_SUCCESS
+0x01 MESH_INVALID_ADDRESS
+0x02 MESH_INVALID_MODEL
+0x03 MESH_INVALID_APPKEYINDEX
+0x04 MESH_INVALID_NETKEYINDEX
+0x05 MESH_INSUFFICIENT_RESOURCES
+0x06 MESH_KEYINDEX_ALREAD_STORED
+0x07 MESH_INVALID_PUBLISH_PARAMETERS
+0x08 MESH_NOT_A_SUBSCRIBE_MODEL
+0x09 MESH_STORAGE_FAILURE
+0x0a MESH_FEATURE_NOT_SUPPORTED
+0x0b MESH_CANNOT_UPDATE
+0x0c MESH_CANNOT_REMOVE
+0x0d MESH_CANNOT_BIND
+0x0e MESH_TEMPORARILY_UNABLE_TO_CHANGE_STATE
+0x0f MESH_CANNOT_SET
+0x10 MESH_UNSPECIFIED_ERROR
+0x11 MESH_INVALID_BINDING
+)
+
Index: format/mesh_protocol_stack/mesh_ali_vendor_message.format
===================================================================
--- /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/format/mesh_protocol_stack/mesh_ali_vendor_message.format	(nonexistent)
+++ /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/format/mesh_protocol_stack/mesh_ali_vendor_message.format	(working copy)
@@ -0,0 +1,102 @@
+
+xmemalloc ali_mesh(
+	1 mem_mesh_vendor_mesh_receive_tid
+	1 mem_mesh_vendor_mesh_send_tid
+
+	4 mem_mesh_vendor_timer_current_time
+	4 mem_system_time
+)
+
+
+amemalloc mem_mesh_receive_model_message_payload(
+	1 mem_mesh_main_light_OnOff
+)
+
+amemalloc mem_mesh_receive_model_message_payload(
+	1 mem_mesh_background_light_OnOff
+)
+
+amemalloc mem_mesh_receive_model_message_payload(
+	2 mem_mesh_color_lightness
+	2 mem_mesh_color_hue
+	2 mem_mesh_color_saturation
+)
+
+amemalloc mem_mesh_receive_model_message_payload(
+	1 mem_mesh_vendor_timer_timing_index
+	4 mem_mesh_vendor_timer_timing_time
+	2 mem_mesh_vendor_timer_timing_attr_type
+	1 mem_mesh_vendor_timer_timing_attr_para
+)
+amemalloc mem_mesh_receive_model_message_payload(
+	1 mem_mesh_vendor_timer_timing_index_cyclic
+	2 mem_mesh_vendor_timer_timing_time_cyclic
+	1 mem_mesh_vendor_timer_timing_weekdays_cyclic
+	2 mem_mesh_vendor_timer_timing_attr_type_cyclic
+	1 mem_mesh_vendor_timer_timing_attr_para_cyclic
+	1 mem_mesh_vendor_timer_timing_cyclic_flag
+)
+
+
+(
+0x00F0 VENDOR_MESSAGE_TMALL_DST
+)
+
+(// vendor model attribute
+0x0123 VENDOR_ATTR_COLOR_SERVER
+0x0100 VENDOR_ATTR_GENERIC_ONOFF_SERVER
+0x0121 VENDOR_ATTR_LIGHTNESS_LEVEL_SERVER
+0x0122 VENDOR_ATTR_COLOR_TEMPERATURE_SERVER
+0x0534 VENDOR_ATTR_MAIN_LIGHT_SERVER
+0x0533 VENDOR_ATTR_BACKGROUND_LIGHT_ONOFF_SERVER
+0xf004 VENDOR_ATTR_SCENE_SERVER
+)
+
+(//Timer opcode
+0x01A8 VENDOR_MESSAGE_OPCODE_COMPANY_ID
+//时间
+0xF01F VENDOR_MESSAGE_ATTR_TYPE_TIME
+//时区
+0xF01E VENDOR_MESSAGE_ATTR_TYPE_TIME_ZONE
+//对时
+0xF01D VENDOR_MESSAGE_ATTR_TYPE_ON_TIME
+//定时
+0xF010 VENDOR_MESSAGE_ATTR_TYPE_TIMING
+//周期定时
+0xF011 VENDOR_MESSAGE_ATTR_TYPE_CYCLE_TIMING
+//删除定时
+0xF012 VENDOR_MESSAGE_ATTR_TYPE_DELETE_TIMING
+
+//颜色
+0x0123 VENDOR_MESSAGE_ATTR_TYPE_COLOR
+//主灯
+0x0534 VENDOR_MESSAGE_ATTR_TYPE_MAIN_LIGHT
+//背光灯
+0x0533 VENDOR_MESSAGE_ATTR_TYPE_BACKGROUND_LIGHT
+)
+
+(//天猫event事件表
+//设备发生的事件，比如上电或者定时完成
+0xF009 VENDOR_ATTR_TYPE_EVENT_TRIGGER
+
+//天猫设备上电
+0x03 VENDOR_MESSAGE_EVENT_DEVICE_POWER_ON
+//天猫定时完成
+0x11 VENDOR_MESSAGE_EVENT_FINISH_TIMING
+)
+
+(
+0x80 VENDOR_MESSAGE_SEND_TID_MIN
+0xC0 VENDOR_MESSAGE_SEND_TID_MAX
+)
+
+(
+0x59 TIMER_CYCLICAL_FALG
+60 SECONDS_OF_MIN
+345600 SECONDS_OF_FOUR_DAYS
+604800 SECONDS_OF_WEEK
+86400 SECONDS_OF_DAY
+0x01e0 EIGHT_HOURS_TIME_ZONE_OFFSET
+
+)
+
Index: format/mesh_protocol_stack/mesh_bearer_layer.format
===================================================================
--- /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/format/mesh_protocol_stack/mesh_bearer_layer.format	(nonexistent)
+++ /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/format/mesh_protocol_stack/mesh_bearer_layer.format	(working copy)
@@ -0,0 +1,9 @@
+
+memalloc ali_mesh(
+	0 mem_mesh_queue_ele_temp
+	1 mem_mesh_queue_ele_timeout
+	1 mem_mesh_queue_ele_packet_id
+	1 mem_mesh_queue_ele_len
+	31 mem_mesh_queue_ele_payload
+)
+
Index: format/mesh_protocol_stack/mesh_ble_core_advertising.format
===================================================================
--- /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/format/mesh_protocol_stack/mesh_ble_core_advertising.format	(nonexistent)
+++ /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/format/mesh_protocol_stack/mesh_ble_core_advertising.format	(working copy)
@@ -0,0 +1,28 @@
+
+memalloc ali_mesh(
+	39 mem_le_txheader_mesh_temp
+	
+)
+
+xmemalloc ali_mesh(
+
+	1 mem_mesh_adv_enable
+	2 mem_mesh_adv_interval
+	
+	1 mem_mesh_adv_data_len
+	31 mem_mesh_adv_data
+
+	1 mem_mesh_adv_scan_channel
+)
+
+
+(
+6 ADV_PACKET_MIN_LENGTH
+37 ADV_PACKET_MAX_LENGTH
+
+1 AD_TYPE_MIN_LENGTH
+30 AD_TYPE_MAX_LENGTH
+)
+
+
+
Index: format/mesh_protocol_stack/mesh_chip_peripherals.format
===================================================================
--- /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/format/mesh_protocol_stack/mesh_chip_peripherals.format	(nonexistent)
+++ /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/format/mesh_protocol_stack/mesh_chip_peripherals.format	(working copy)
@@ -0,0 +1,34 @@
+
+
+amemalloc mem_temp_block0(
+	64 mem_mesh_subscription_eep_temp
+)
+
+(//transport mic cache parameter
+10 TRANSPORT_MIC_CACHE_SPACE_NUM
+4 TRANSPORT_MIC_CACHE_SPACE_SIZE
+//总长度少一个space
+36 TRANSPORT_MIC_CACHE_TOTAL_SIZE
+)
+
+(
+0x00 MESH_EEP_THREE_TUPLE_OFFSET
+0x1a MESH_EEP_NETWORK_KEY_OFFSET
+0x2d MESH_EEP_APPLICATION_KEY_OFFSET
+0x3d MESH_EEP_DEVICE_KEY_OFFSET
+0x4d MESH_EEP_RESET_COUNT_OFFSET
+0x4e MESH_EEP_SEQ_OFFSET
+0x51 MESH_EEP_SUBSCRIPTION_OFFSET
+)
+
+(
+0x1a MESH_EEP_THREE_TUPLE_LENGTH
+0x13 MESH_EEP_NETWORK_KEY_LENGTH
+0x10 MESH_EEP_APPLICATION_KEY_LENGTH
+0x10 MESH_EEP_DEVICE_KEY_LENGTH
+0x01 MESH_EEP_RESET_COUNT_LENGTH
+0x03 MESH_EEP_SEQ_LENGTH
+0x10 MESH_EEP_SUBSCRIPTION_LENGTH
+0x40 MESH_EEP_SUBSCRIPTION_TOTAL_LENGTH
+)
+
Index: format/mesh_protocol_stack/mesh_encrypt_function.format
===================================================================
--- /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/format/mesh_protocol_stack/mesh_encrypt_function.format	(nonexistent)
+++ /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/format/mesh_protocol_stack/mesh_encrypt_function.format	(working copy)
@@ -0,0 +1,105 @@
+memalloc ali_mesh(
+	// sha256
+	0 mem_mesh_sha256_chunk_start
+	64 mem_mesh_sha256_chunk1
+	64 mem_mesh_sha256_chunk2
+	64 mem_mesh_sha256_chunk3
+	64 mem_mesh_sha256_chunk4
+
+	//obfuscation network PDU Header
+	0 mem_mesh_Privacy_Plaintext
+	5 mem_mesh_Privacy_Plaintext_Zero_String
+	4 mem_mesh_Privacy_Plaintext_IV_Index
+	0 mem_mesh_Privacy_Plaintext_Privacy_Random
+	2 mem_mesh_Privacy_Plaintext_Privacy_Random_EncDST
+	5 mem_mesh_Privacy_Plaintext_Privacy_Random_EncTransportPDU_or_NetMIC
+	16 mem_mesh_PECB
+
+	//basic function
+	//aes-ccm
+	2 mem_nonce_ptr
+	1 mem_ccm_data_len
+	2 mem_ccm_data_ptr
+	8 mem_ccm_mic
+	1 mem_ccm_type
+
+
+)
+
+xmemalloc ali_mesh(
+
+	0 mem_mesh_calc_ConfirmationCloud_data
+	8 mem_mesh_ConfirmationCloud_RandomB
+	8 mem_mesh_ConfirmationCloud_RandomA
+	16 mem_mesh_AuthValueProv
+	16 mem_mesh_ConfirmationCloud
+
+
+	//provisioning random  / provisioning_confirmation
+	0 mem_mesh_ConfirmationDevice
+	0 mem_mesh_calc_ConfirmationDevice_data
+	8 mem_mesh_provisioning_random_A
+	8 mem_mesh_provisioning_random_B
+	16 mem_mesh_AuthValueDevice
+
+	16 mem_mesh_Device_Key
+
+
+// CMAC Key
+	16 mem_mesh_Confirmationkey
+
+	//sha256 init data
+	15 mem_mesh_sha256_ConfirmationKey_ascii
+	10 mem_mesh_sha256_SessionKey_ascii
+	9 mem_mesh_sha256_DeviceKey_ascii
+
+	//sha256
+	1 mem_mesh_sha256_load_first_data_flag
+
+	8 mem_mesh_sha256_data_len_byte
+	8 mem_mesh_sha256_data_len_bit
+	2 mem_mesh_sha256_data_end_addr
+	2 mem_mesh_sha256_data_len_addr
+	1 mem_mesh_sha256_chunk_count
+	2 mem_mesh_sha256_chunk_data_ptr
+	2 mem_mesh_sha256_chunk_ptr
+
+
+	//function K2
+	//f2 input
+	1 mem_k2_P_len
+	16 mem_k2_P
+	16 mem_k2_N
+	//f2 init data
+	16 mem_k2_SALT
+	//f2 output
+	16 mem_k2_T
+	0 mem_k2_T0
+	16 mem_k2_T1
+	1 mem_k2_NID
+	16 mem_k2_T3
+	16 mem_k2_T2
+
+
+	//k4 function
+	16 mem_k4_SALT
+	16 mem_k4_T
+	16 mem_k4_id6_01
+	16 mem_k4_k4N
+	1 mem_mesh_transport_AID
+
+
+)
+
+(
+0x2c COMMA
+-4 DECREASED_FOUR
+
+)
+
+(
+0x19 MIC_SIZE_64BIT
+0x09 MIC_SIZE_32BIT
+)
+
+
Index: format/mesh_protocol_stack/mesh_fast_pairing.format
===================================================================
--- /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/format/mesh_protocol_stack/mesh_fast_pairing.format	(nonexistent)
+++ /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/format/mesh_protocol_stack/mesh_fast_pairing.format	(working copy)
@@ -0,0 +1,142 @@
+memalloc ali_mesh(
+
+	16 mem_mesh_Device_UUID
+
+	1 mem_mesh_fast_gatt_ios_config_version
+	1 mem_mesh_fast_gatt_ios_config_max_length
+
+	2 mem_mesh_fast_gatt_ios_msg_payload_mac
+	34 mem_mesh_fast_gatt_ios_msg_payload
+
+	1 mem_mesh_receive_VID
+
+)
+
+
+xmemalloc ali_mesh(
+
+	// provisioning flag 标志是否入网
+	1 mem_mesh_provisioned_flag
+
+	//入网时的状态机
+	1 mem_mesh_Provisioning_State_Flag
+	
+	1 mem_mesh_Device_PID
+	1 mem_mesh_UUID_FeatureFlag
+	2 mem_mesh_PDU_RFU
+	2 mem_mesh_OOB_information
+
+	//Provisioning_Data
+	0 mem_mesh_Encrypt_Provisioning_Data
+	2 mem_mesh_provisioning_data_Mac_addr
+	1 mem_mesh_KeyFresh_and_Update_flag
+	16 mem_mesh_Network_Key
+	1 mem_mesh_last_IV_Index_byte
+	2 mem_mesh_Unicast_Address
+
+	4 mem_mesh_adv_last_time
+	2 mem_mesh_send_packet_timeout
+
+
+	1 mem_mesh_gatt_package_receive_package_num
+	1 mem_mesh_gatt_package_receive_package_total_length
+	
+	1 mem_mesh_gatt_package_receive_msg_id_last
+	1 mem_mesh_gatt_package_receive_msg_id_new
+
+	1 mem_mesh_gatt_package_send_msg_id
+
+)
+
+amemalloc mem_mesh_Device_UUID(
+	2 mem_mesh_receive_service_uuid_company_id
+	1 mem_mesh_receive_service_uuid_vid
+	1 mem_mesh_receive_service_uuid_provisioning_type
+	2 mem_mesh_receive_service_uuid_mac
+	1 mem_mesh_receive_service_uuid_msg_id
+	1 mem_mesh_receive_service_uuid_package_num
+	1 mem_mesh_receive_service_uuid_length
+	7 mem_mesh_receive_service_uuid_payload_data
+)
+
+amemalloc mem_mesh_Device_UUID(
+	2 mem_mesh_receive_service_uuid_ios_data_company_id
+	1 mem_mesh_receive_service_uuid_ios_data_vid
+	1 mem_mesh_receive_service_uuid_ios_data_provisioning_type
+	1 mem_mesh_receive_service_uuid_ios_data_NID
+	1 mem_mesh_receive_service_uuid_ios_data_msg_id
+	1 mem_mesh_receive_service_uuid_ios_data_package_num
+	1 mem_mesh_receive_service_uuid_ios_data_length
+	8 mem_mesh_receive_service_uuid_ios_data_payload_data
+)
+
+
+
+(//mem_mesh_provisioned_flag
+0 PAIRED_STATUS
+1 UNPROVISIONED_BEACON_STATUS
+2 PAIRING_STATUS
+)
+
+
+// mem Beacon Type
+(
+0x00 UNPROVISIONED_DEVICE_BEACON
+0x01 SECURE_NETWORK_BEACON
+0x1827 MESH_PROVISIONING_UUID
+)
+
+// Provisioning Type
+(
+0x00 PROVISIONING_RANDOM
+0x01 PROVISIONING_CONFIRMATION
+0x02 PROVISIONING_DATA
+0x03 PROVISIONING_COMPLETE
+0x04 PROVISIONING_CONFIG
+0x05 PROVISIONING_CONFIG_ACK
+0x06 PROVISIONING_IOS_DATA
+0x07 PROVISIONING_SEND_IOS_DATA
+)
+
+(//mem_mesh_Provisioning_State_Flag
+// FLAG bit1:Provisioning Confirmation
+1 RECEIVE_PROVISIONING_RANDOM
+2 RECEIVE_PROVISIONING_DATA
+)
+
+
+(//provisioning packet info size
+3 PROVISIONING_PACKET_LENGTH_FLAGS
+6 PROVISIONING_PACKET_LENGTH_AD_TYPE_COMPANY_ID_VID_PROVISIONING_TYPE
+5 PROVISIONING_PACKET_AD_TYPE_COMPANY_ID_VID_PROVISIONING_TYPE
+1 PROVISIONING_PACKET_LENGTH
+1 PROVISIONING_PACKET_AD_TYPE
+2 PROVISIONING_PACKET_COMPANY_ID
+1 PROVISIONING_PACKET_VID
+1 PROVISIONING_PACKET_PROVISIONING_TYPE
+//provisioning random
+2 PROVISIONING_PACKET_RANDOM_MAC
+8 PROVISIONING_PACKET_RANDOM_RANDOM_A
+8 PROVISIONING_PACKET_RANDOM_RANDOM_B
+//provisioning confirmation
+2 PROVISIONING_PACKET_CONFIRMATION_MAC
+16 PROVISIONING_PACKET_CONFIRMATION_DEVICE
+//provisioning complete
+6 PROVISIONING_PACKET_COMPLETE_MAC
+
+2 PROVISIONING_CONFIG_ACK_MAC
+1 PROVISIONING_CONFIG_ACK_FIELD
+
+)
+
+(
+0x01 PROVISIONING_CONFIG_ACK_NOTE
+)
+
+(//gatt package struct
+0 GATT_PACKAGE_MSG_ID
+1 GATT_PACKAGE_PACKAGE_NUM
+2 GATT_PACKAGE_LENGTH
+3 GATT_PACKAGE_PAYLOAD
+)
+
Index: format/mesh_protocol_stack/mesh_health_message.format
===================================================================
--- /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/format/mesh_protocol_stack/mesh_health_message.format	(nonexistent)
+++ /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/format/mesh_protocol_stack/mesh_health_message.format	(working copy)
@@ -0,0 +1,12 @@
+
+
+amemalloc mem_mesh_receive_model_message_payload(
+	2 mem_mesh_subscription_element_address
+	2 mem_mesh_subscription_value_address
+	2 mem_mesh_subscription_model_identifier
+)
+
+(
+8 SUBSCRIPTION_MAX_COUNT
+)
+
Index: format/mesh_protocol_stack/mesh_init.format
===================================================================
--- /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/format/mesh_protocol_stack/mesh_init.format	(nonexistent)
+++ /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/format/mesh_protocol_stack/mesh_init.format	(working copy)
@@ -0,0 +1,170 @@
+memalloc ali_mesh(
+	2 mem_mesh_mic_cache_ptr
+
+)
+
+
+xmemalloc ali_mesh(
+	// three tuple 阿里云平台分配的三元组
+	4 mem_mesh_three_tuple_ProductID
+	6 mem_mesh_three_tuple_MAC
+	16 mem_mesh_three_tuple_secret
+
+	// three tuplle little endian PID
+	4 mem_mesh_three_tuple_ProductID_little_endian
+
+	//ble 核心协议栈，scan到数据的回调
+	2 mem_mesh_cb_receive_advertising
+
+	//alarm寄存器不能修改
+	//mesh核心规范接收到任何TMALL指令
+	2 mem_mesh_cb_receive_access_message
+
+	//接收到配置application key指令(可以认为入网成功)
+	0 mem_mesh_cb_finish_pairing
+	2 mem_mesh_cb_receive_config_appkey_add
+
+	2 mem_mesh_cb_generic_onoff_set
+	2 mem_mesh_cb_scene_recall
+	2 mem_mesh_cb_light_lightness_set
+	2 mem_mesh_cb_light_ctl_set
+
+	2 mem_mesh_cb_main_light_onoff_set
+	2 mem_mesh_cb_background_onoff_set
+	2 mem_mesh_cb_color_set
+
+	//relay 的功能回调
+	2 mem_mesh_cb_network_relay
+
+	//模块复位的回调，需要3s之后复位
+	2 mem_mesh_cb_receive_node_reset
+
+	//seq改变时的回调，需要存到对应的存储器中
+	2 mem_mesh_cb_seq_changed
+
+	2 mem_mesh_cb_subscriptuion_list_changed
+
+	//Timer 定时器改变时，需要存到对应的存储器中
+	2 mem_mesh_cb_vendor_timing_changed
+	
+
+	2 mem_mesh_core_feature
+
+	1 mem_mesh_element_number
+	2 mem_mesh_element_device_ptr
+	2 mem_mesh_element_device_length
+
+)
+
+(//typedef struct of mem_mesh_element_device
+0 ELEMENT_DEVICE_GROUP_ADDR
+2 ELEMENT_DEVICE_QUEUE_BUFFER
+2 ELEMENT_DEVICE_QUEUE_EACH_SIZE
+3 ELEMENT_DEVICE_QUEUE_LENGTH
+4 ELEMENT_DEVICE_QUEUE_CURRENT_NUM
+5 ELEMENT_DEVICE_QUEUE_READ_PTR
+6 ELEMENT_DEVICE_QUEUE_WRITE_PTR
+7 ELEMENT_DEVICE_QUEUE_ELE
+142 ELEMENT_DEVICE_QUEUE_ENDING
+143 ELEMENT_DEVICE_VENDOR_TIME_PTR
+145 ELEMENT_DEVICE_SUBSCRIPTION_LABEL
+
+161 SIZEOF_ELEMENT_DEVICE
+
+)
+
+
+xmemalloc ali_mesh_element(
+	0 mem_mesh_element_device
+	2 mem_mesh_element_device_group_addr
+	1 mem_mesh_element_device_queue_each_size
+	1 mem_mesh_element_device_queue_length
+	1 mem_mesh_element_device_queue_current_num
+	1 mem_mesh_element_device_queue_read_ptr
+	1 mem_mesh_element_device_queue_write_ptr
+	136 mem_mesh_element_device_queue_ele
+	2 mem_mesh_element_device_timing_ptr
+	16 mem_mesh_element_device_element_subscription_label
+
+
+	SIZEOF_ELEMENT_DEVICE mem_mesh_element_device1
+	SIZEOF_ELEMENT_DEVICE mem_mesh_element_device2
+)
+
+(
+320 MESH_TIMER_BUFFER_SIZE
+)
+
+
+xmemalloc ali_mesh_element_timer(
+	MESH_TIMER_BUFFER_SIZE mem_mesh_element_timing
+	MESH_TIMER_BUFFER_SIZE mem_mesh_element_timing1
+	MESH_TIMER_BUFFER_SIZE mem_mesh_element_timing2
+)
+
+
+(//bit map of mem_mesh_core_feature
+0 MESH_FEATURE_LOG
+1 MESH_FEATURE_DISABLE_RELAY
+2 MESH_FEATURE_DISABLE_SUBSCRIPTION
+)
+
+(//taobao id
+0x01a8	COMPANY_IDENTIFIERS_ALIBABA
+0x0d	ALI_MESH_VID_NUMBER
+0x0da801 COMPANY_ID_ALIBABA_AND_VID
+0x0ea801 COMPANY_ID_ALIBABA_AND_VID_GATT
+)
+
+
+(
+0x00 MESH_CODE_INIT
+0x01 MESH_RECEIVE_PROVISIONING_PACKET
+0x02 MESH_RECEIVE_PROVISIONING_RANDOM_PACKET
+0x03 MESH_SEND_PROVISIONING_CONFIRMATION_PACKET
+0x04 MESH_RECEIVE_PROVISIONING_DATA_PACKET
+0x05 MESH_SEND_PROVISIONING_COMPLETE_PACKET
+0x06 MESH_RECEIVE_PROVISIONING_FAILED_PACKET
+
+0x10 MESH_ENCRYPT_SHA256_FUNCTION_INPUT
+0x11 MESH_ENCRYPT_SHA256_FUNCTION_RESULT
+0x12 MESH_ENCRYPT_AES_CMAC_FUNCTION_INPUT_M
+0x13 MESH_ENCRYPT_AES_CMAC_FUNCTION_INPUT_K
+0x14 MESH_ENCRYPT_AES_CMAC_FUNCTION_RESULT
+
+0x20 MESH_NETWORK_RECEIVE_PACKET
+0x21 MESH_NETWORK_RELAY_PACKET
+
+0x30 MESH_LOWER_RECEIVE_PACKET
+0x40 MESH_UPPER_RECEIVE_PACKET
+0x41 MESH_UPPER_SEND_PACKET
+
+0x50 MESH_ACCESS_RECEIVE_MESSAGE
+
+
+0xF0 MESH_MESSAGE_GENERIC_ONOFF_SET
+0xF1 MESH_MESSAGE_SET_LIGHT_LIGHTNESS
+0xF2 MESH_MESSAGE_SET_CTL
+)
+
+(//LUA LOG 
+0xAA LUA_LOG_PACKET_HEADER
+0x03 LUA_LOG_PAKCET_TYPE
+0xBB LUA_LOG_PACKET_TRAIL
+)
+
+(//logging level
+0 LOGGING_DEBUG
+1 LOGGING_INFO
+2 LOGGING_WARNING
+3 LOGGING_ERROR
+4 LOGGING_CRITICAL
+)
+
+(
+0x1c00 mem_mesh_uart_log_rx_buff
+0x1c01 mem_mesh_uart_log_rx_buff_end
+0x1c02 mem_mesh_uart_log_tx_buff
+0x1fff mem_mesh_uart_log_tx_buff_end
+)
+
Index: format/mesh_protocol_stack/mesh_lower_transport_layer.format
===================================================================
--- /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/format/mesh_protocol_stack/mesh_lower_transport_layer.format	(nonexistent)
+++ /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/format/mesh_protocol_stack/mesh_lower_transport_layer.format	(working copy)
@@ -0,0 +1,51 @@
+memalloc ali_mesh(
+	1 mem_mesh_lower_transport_layer_payload_len
+
+)
+
+xmemalloc ali_mesh(
+	//current segmented access message head
+	1 mem_mesh_segmented_access_message_SZMIC
+	2 mem_mesh_segmented_access_message_SeqZero
+	1 mem_mesh_segmented_access_message_SegO
+	1 mem_mesh_segmented_access_message_SegN
+
+	4 mem_mesh_segmented_access_message_BlockAck
+	1 mem_mesh_segmented_access_message_receive_finish
+	1 mem_mesh_segmented_access_message_current_length
+
+
+	36 mem_mesh_segmented_access_message_Segment
+)
+
+amemalloc mem_mesh_send_access_lower_transport_layer(
+	//bit7 is SEQ 0=Unsegment Message
+	//bit6 is AKF
+	//bit5-bit0 is AID
+	1 mem_mesh_unsegmented_access_lower_transport_layer_head
+	11 mem_mesh_unsegmented_access_lower_transport_layer_parameters
+	4 mem_mesh_unsegmented_access_lower_transport_layer_mic
+)
+
+amemalloc mem_mesh_send_access_lower_transport_layer(
+	//bit7 is SEQ 1=segment Message
+	//bit6 is AKF
+	//bit5-bit0 is AID
+	1 mem_mesh_segmented_access_lower_transport_layer_head
+	//bit23 is SZMIC size of transMIC
+	//bit22-bit10 is SeqZero Least significant bits of SeqAuth
+	//bit9-bit5 is SegO Segment offset number
+	//bit4-bit0 is SegN Last Segment number
+	3 mem_mesh_segmented_access_lower_transport_layer_SZMIC_SeqZero_SegO_SegN
+	8 mem_mesh_segmented_access_lower_transport_layer_parameters
+	4 mem_mesh_segmented_access_lower_transport_layer_mic
+)
+
+(
+7 TRANSPORT_HEAD_BIT_SEG
+6 TRANSPORT_HEAD_BIT_AKF
+05 TRANSPORT_HEAD_BIT_AID
+7 BIT_CTL
+)
+
+
Index: format/mesh_protocol_stack/mesh_model_layer.format
===================================================================
--- /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/format/mesh_protocol_stack/mesh_model_layer.format	(nonexistent)
+++ /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/format/mesh_protocol_stack/mesh_model_layer.format	(working copy)
@@ -0,0 +1,65 @@
+
+memalloc ali_mesh(
+	11 mem_mesh_receive_model_message_payload
+)
+
+xmemalloc ali_mesh(
+	2 mem_mesh_last_CTL_Temperature
+)
+
+amemalloc mem_mesh_receive_model_message_payload(
+	//generic OnOff Set
+	1 mem_mesh_generic_onoff_set_payload_OnOff
+	1 mem_mesh_generic_onoff_set_payload_TID
+	1 mem_mesh_generic_onoff_set_payload_Transition_Time
+	1 mem_mesh_generic_onoff_set_payload_Delay
+
+)
+
+amemalloc mem_mesh_receive_model_message_payload(
+	//Scene recall 模式设置
+	2 mem_mesh_scene_recall_payload_scene_number
+	1 mem_mesh_scene_recall_payload_TID
+	1 mem_mesh_scene_recall_payload_Transition_Time
+	1 mem_mesh_scene_recall_payload_Delay
+
+)
+
+amemalloc mem_mesh_receive_model_message_payload(
+	//light lightness
+	2 mem_mesh_light_lightness_set_payload_lightness
+	1 mem_mesh_light_lightness_set_payload_TID
+	1 mem_mesh_light_lightness_set_payload_Transition_Time
+	1 mem_mesh_light_lightness_set_payload_Delay
+	1 mem_mesh_light_lightness_calc_lightness
+)
+
+amemalloc mem_mesh_receive_model_message_payload(
+	//light CTL
+	2 mem_mesh_CTL_Lightness
+	2 mem_mesh_CTL_Temperature
+	2 mem_mesh_CTL_Delta_UV
+	1 mem_mesh_CTL_lightness_TID
+	1 mem_mesh_CTL_lightness_Transition_Time
+	1 mem_mesh_CTL_lightness_Delay	
+	1 mem_mesh_CTL_calc_lightness
+	1 mem_mesh_CTL_calc_temperature
+
+)
+
+(//Generic OnOff
+0x00 GENERIC_ONOFF_CMD_OFF
+0x01 GENERIC_ONOFF_CMD_ON
+)
+
+(//LIGHTNESS
+0xFFFF ALI_MESH_LIGHTNESS_MAX
+0x0064 ALI_MESH_LIGHTNESS_LEVEL
+)
+
+(//TEMPERATURE
+0x4E20 ALI_MESH_TEMPERATURE_MAX
+0x0320 ALI_MESH_TEMPERATURE_MIN
+0x0064 ALI_MESH_TEMPERATURE_LEVEL
+)
+
Index: format/mesh_protocol_stack/mesh_more_element_check.format
===================================================================
--- /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/format/mesh_protocol_stack/mesh_more_element_check.format	(nonexistent)
+++ /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/format/mesh_protocol_stack/mesh_more_element_check.format	(working copy)
@@ -0,0 +1,17 @@
+
+memalloc ali_mesh(
+	2 mem_mesh_loopcnt_tmep
+	2 mem_mesh_rega_temp
+	2 mem_mesh_regb_temp
+	2 mem_mesh_regc_temp
+	2 mem_mesh_alarm_temp
+	
+)
+
+
+
+xmemalloc ali_mesh(
+	1 mem_mesh_receive_group_address
+	1 mem_mesh_receive_element_number
+)
+
Index: format/mesh_protocol_stack/mesh_network_layer.format
===================================================================
--- /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/format/mesh_protocol_stack/mesh_network_layer.format	(nonexistent)
+++ /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/format/mesh_protocol_stack/mesh_network_layer.format	(working copy)
@@ -0,0 +1,94 @@
+
+
+memalloc ali_mesh(
+	1 mem_mesh_message_Transport_NetMIC_length
+
+	2 mem_mesh_recevice_message_DST
+
+	1 mem_mesh_message_NID
+	1 mem_mesh_message_TTL
+	3 mem_mesh_message_SEQ
+	2 mem_mesh_message_SRC
+	2 mem_mesh_message_DST
+	0 mem_mesh_message_Transport_NetMIC
+	1 mem_mesh_message_Transport_Head
+	//unsegmented access message
+	0 mem_mesh_message_Transport_unsegmented_access_messagePDU
+	//segmented access message
+	0 mem_mesh_message_Transport_segmented_access_messagePDU
+	3 mem_mesh_message_segment_access_SZMIC_SeqZero_SegO_SegN
+	0 mem_mesh_message_Transport_segmented_access_messagePDU_Segment
+	16 mem_mesh_message_Transport_NetMIC_end
+
+	13 mem_mesh_nonce_struct
+
+	2 mem_mesh_send_message_DST
+	3 mem_mesh_last_message_SEQ
+
+)
+
+xmemalloc ali_mesh(
+	4 mem_mesh_IV_Index
+
+
+
+// mesh SRC/SEQ  cache
+	0 mem_mesh_TMALL_cache_start
+	2 mem_mesh_TMALL_SRC1
+	3 mem_mesh_TMALL_SEQ1
+	45 mem_mesh_TMALL_cache
+	0 mem_mesh_TMALL_cache_end
+
+	0 mem_mesh_transport_message_mic_cache
+	4 mem_mesh_transport_message_mic_cache_buff1
+	36 mem_mesh_transport_message_mic_cache_buff2_10
+
+)
+
+amemalloc mem_k2_T2(
+	16 mem_k2_EncryptionKey
+)
+
+amemalloc mem_k2_T3(
+	16 mem_k2_PrivacyKey
+)
+
+amemalloc mem_mesh_nonce_struct(
+	//DST and TransportPDU encryption
+	0 mem_mesh_Network_Nonce
+	1 mem_mesh_Network_Nonce_nonce_type
+	1 mem_mesh_Network_Nonce_CTL_and_TTL
+	3 mem_mesh_Network_Nonce_SEQ
+	2 mem_mesh_Network_Nonce_SRC
+	2 mem_mesh_Network_Nonce_Pad	//0x0000
+	4 mem_mesh_Network_Nonce_IV_Index
+
+)
+
+(//nonce type
+0x00 NETWORK_NONCE
+0x01 APPLICATION_NONCE
+0x02 DEVICE_NONCE
+0x03 PROXY_NONCE
+)
+
+
+(
+0x00c0 GROUP_ADDRESS_0XC000_little_endian
+0xffcf GROUP_ADDRESS_0XCFFF_little_endian
+0x02c0 GROUP_ADDRESS_0XC002_little_endian
+0x07c0 GROUP_ADDRESS_0XC007_little_endian
+0x01c0 GROUP_ADDRESS_0XC001_little_endian
+)
+
+
+(//SRC SEQ cache parameter
+10 CACHE_SPACE_NUM
+5 CACHE_SPACE_SIZE
+)
+
+(
+12 MESH_NETWORK_PACKET_MIN_LENGTH
+30 MESH_NETWORK_PACKET_MAX_LENGTH
+)
+
Index: format/mesh_protocol_stack/mesh_upper_transport_layer.format
===================================================================
--- /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/format/mesh_protocol_stack/mesh_upper_transport_layer.format	(nonexistent)
+++ /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/format/mesh_protocol_stack/mesh_upper_transport_layer.format	(working copy)
@@ -0,0 +1,72 @@
+
+memalloc ali_mesh(
+	2 mem_mesh_upper_transport_layer_payload_ptr
+	1 mem_mesh_segmented_upper_transport_layer_payload_len
+	2 mem_mesh_segmented_lower_transport_layer_SegZero
+	1 mem_mesh_segmented_lower_transport_layer_SegO
+	1 mem_mesh_segmented_lower_transport_layer_SegN
+	1 mem_mesh_segmented_last_packet_upper_teansport_payload_len
+
+)
+
+xmemalloc ali_mesh(
+	16 mem_mesh_application_key
+	1 mem_mesh_ASZMIC
+
+	0 mem_mesh_access_message_mic_cache
+	4 mem_mesh_access_message_mic_cache_buff1
+	36 mem_mesh_access_message_mic_cache_buff2_10
+
+	3 mem_mesh_send_message_SEQ
+
+	2 mem_mesh_send_message_SRC
+
+	1 mem_mesh_send_message_TTL
+
+	//Upper transport access PDU
+	1 mem_mesh_send_upper_layer_IVI_and_NID
+	1 mem_mesh_send_upper_layer_CTL_and_TTL
+	3 mem_mesh_send_upper_layer_SEQ
+	2 mem_mesh_send_upper_layer_SRC
+	2 mem_mesh_send_upper_layer_DST
+	16 mem_mesh_send_access_lower_transport_layer
+	4 mem_mesh_send_network_layer_NetMIC
+
+)
+
+
+amemalloc mem_mesh_nonce_struct(
+	//application payload encryption
+	0 mem_mesh_Application_Nonce
+	1 mem_mesh_Application_Nonce_Nonce_Type
+	//bit7 is ASZMIC
+	1 mem_mesh_Application_Nonce_ASZMIC_and_Pad	//
+	3 mem_mesh_Application_Nonce_SEQ
+	2 mem_mesh_Application_Nonce_SRC
+	2 mem_mesh_Application_Nonce_DST
+	4 mem_mesh_Application_Nonce_IV_Index
+)
+
+amemalloc mem_mesh_nonce_struct(
+	//application payload encryption
+	0 mem_mesh_Device_Nonce
+	1 mem_mesh_Device_Nonce_Nonce_Type
+	1 mem_mesh_Device_Nonce_ASZMIC_and_Pad	//
+	3 mem_mesh_Device_Nonce_SEQ
+	2 mem_mesh_Device_Nonce_SRC
+	2 mem_mesh_Device_Nonce_DST
+	4 mem_mesh_Device_Nonce_IV_Index
+)
+
+amemalloc mem_mesh_access_layer_payload_len(
+	1 mem_mesh_upper_transport_layer_payload_len
+)
+
+
+(
+15 UNSEGMENTED_ACCESS_MESSAGE_MAX_UPPER_TRANSPORT_ACCESS_PDU_LEN
+12 SEGMENTED_ACCESS_MESSAGE_UNINT_PDU_LEN
+)
+
+
+
Index: format/meter.format
===================================================================
--- /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/format/meter.format	(nonexistent)
+++ /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/format/meter.format	(working copy)
@@ -0,0 +1,24 @@
+omemalloc (
+3 mem_dummy
+1 mem_seq
+1 mem_context_cnt
+1 mem_context_map
+768 mem_context_new
+1 mem_att_cmd_len
+15 mem_att_cmd
+1 mem_att_resp_handle
+1 mem_att_resp_len
+30 mem_att_resp
+600 mem_meter_att_list
+)
+
+(
+7 context_num_new_m1
+8 context_num_new
+96 context_size_new
+)
+
+(
+0x4040 mem_anchor_array
+)
+
Index: format/patch.format
===================================================================
--- /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/format/patch.format	(nonexistent)
+++ /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/format/patch.format	(working copy)
@@ -0,0 +1,516 @@
+
+(
+	  0 patch00_0
+	  1 patch00_1
+	  2 patch00_2
+	  3 patch00_3
+	  4 patch00_4
+	  5 patch00_5
+	  6 patch00_6
+	  7 patch00_7
+	  8 patch01_0
+	  9 patch01_1
+	 10 patch01_2
+	 11 patch01_3
+	 12 patch01_4
+	 13 patch01_5
+	 14 patch01_6
+	 15 patch01_7
+	 16 patch02_0
+	 17 patch02_1
+	 18 patch02_2
+	 19 patch02_3
+	 20 patch02_4
+	 21 patch02_5
+	 22 patch02_6
+	 23 patch02_7
+	 24 patch03_0
+	 25 patch03_1
+	 26 patch03_2
+	 27 patch03_3
+	 28 patch03_4
+	 29 patch03_5
+	 30 patch03_6
+	 31 patch03_7
+	 32 patch04_0
+	 33 patch04_1
+	 34 patch04_2
+	 35 patch04_3
+	 36 patch04_4
+	 37 patch04_5
+	 38 patch04_6
+	 39 patch04_7
+	 40 patch05_0
+	 41 patch05_1
+	 42 patch05_2
+	 43 patch05_3
+	 44 patch05_4
+	 45 patch05_5
+	 46 patch05_6
+	 47 patch05_7
+	 48 patch06_0
+	 49 patch06_1
+	 50 patch06_2
+	 51 patch06_3
+	 52 patch06_4
+	 53 patch06_5
+	 54 patch06_6
+	 55 patch06_7
+	 56 patch07_0
+	 57 patch07_1
+	 58 patch07_2
+	 59 patch07_3
+	 60 patch07_4
+	 61 patch07_5
+	 62 patch07_6
+	 63 patch07_7
+	 64 patch08_0
+	 65 patch08_1
+	 66 patch08_2
+	 67 patch08_3
+	 68 patch08_4
+	 69 patch08_5
+	 70 patch08_6
+	 71 patch08_7
+	 72 patch09_0
+	 73 patch09_1
+	 74 patch09_2
+	 75 patch09_3
+	 76 patch09_4
+	 77 patch09_5
+	 78 patch09_6
+	 79 patch09_7
+	 80 patch0a_0
+	 81 patch0a_1
+	 82 patch0a_2
+	 83 patch0a_3
+	 84 patch0a_4
+	 85 patch0a_5
+	 86 patch0a_6
+	 87 patch0a_7
+	 88 patch0b_0
+	 89 patch0b_1
+	 90 patch0b_2
+	 91 patch0b_3
+	 92 patch0b_4
+	 93 patch0b_5
+	 94 patch0b_6
+	 95 patch0b_7
+	 96 patch0c_0
+	 97 patch0c_1
+	 98 patch0c_2
+	 99 patch0c_3
+	100 patch0c_4
+	101 patch0c_5
+	102 patch0c_6
+	103 patch0c_7
+	104 patch0d_0
+	105 patch0d_1
+	106 patch0d_2
+	107 patch0d_3
+	108 patch0d_4
+	109 patch0d_5
+	110 patch0d_6
+	111 patch0d_7
+	112 patch0e_0
+	113 patch0e_1
+	114 patch0e_2
+	115 patch0e_3
+	116 patch0e_4
+	117 patch0e_5
+	118 patch0e_6
+	119 patch0e_7
+	120 patch0f_0
+	121 patch0f_1
+	122 patch0f_2
+	123 patch0f_3
+	124 patch0f_4
+	125 patch0f_5
+	126 patch0f_6
+	127 patch0f_7
+	128 patch10_0
+	129 patch10_1
+	130 patch10_2
+	131 patch10_3
+	132 patch10_4
+	133 patch10_5
+	134 patch10_6
+	135 patch10_7
+	136 patch11_0
+	137 patch11_1
+	138 patch11_2
+	139 patch11_3
+	140 patch11_4
+	141 patch11_5
+	142 patch11_6
+	143 patch11_7
+	144 patch12_0
+	145 patch12_1
+	146 patch12_2
+	147 patch12_3
+	148 patch12_4
+	149 patch12_5
+	150 patch12_6
+	151 patch12_7
+	152 patch13_0
+	153 patch13_1
+	154 patch13_2
+	155 patch13_3
+	156 patch13_4
+	157 patch13_5
+	158 patch13_6
+	159 patch13_7
+	160 patch14_0
+	161 patch14_1
+	162 patch14_2
+	163 patch14_3
+	164 patch14_4
+	165 patch14_5
+	166 patch14_6
+	167 patch14_7
+	168 patch15_0
+	169 patch15_1
+	170 patch15_2
+	171 patch15_3
+	172 patch15_4
+	173 patch15_5
+	174 patch15_6
+	175 patch15_7
+	176 patch16_0
+	177 patch16_1
+	178 patch16_2
+	179 patch16_3
+	180 patch16_4
+	181 patch16_5
+	182 patch16_6
+	183 patch16_7
+	184 patch17_0
+	185 patch17_1
+	186 patch17_2
+	187 patch17_3
+	188 patch17_4
+	189 patch17_5
+	190 patch17_6
+	191 patch17_7
+	192 patch18_0
+	193 patch18_1
+	194 patch18_2
+	195 patch18_3
+	196 patch18_4
+	197 patch18_5
+	198 patch18_6
+	199 patch18_7
+	200 patch19_0
+	201 patch19_1
+	202 patch19_2
+	203 patch19_3
+	204 patch19_4
+	205 patch19_5
+	206 patch19_6
+	207 patch19_7
+	208 patch1a_0
+	209 patch1a_1
+	210 patch1a_2
+	211 patch1a_3
+	212 patch1a_4
+	213 patch1a_5
+	214 patch1a_6
+	215 patch1a_7
+	216 patch1b_0
+	217 patch1b_1
+	218 patch1b_2
+	219 patch1b_3
+	220 patch1b_4
+	221 patch1b_5
+	222 patch1b_6
+	223 patch1b_7
+	224 patch1c_0
+	225 patch1c_1
+	226 patch1c_2
+	227 patch1c_3
+	228 patch1c_4
+	229 patch1c_5
+	230 patch1c_6
+	231 patch1c_7
+	232 patch1d_0
+	233 patch1d_1
+	234 patch1d_2
+	235 patch1d_3
+	236 patch1d_4
+	237 patch1d_5
+	238 patch1d_6
+	239 patch1d_7
+	240 patch1e_0
+	241 patch1e_1
+	242 patch1e_2
+	243 patch1e_3
+	244 patch1e_4
+	245 patch1e_5
+	246 patch1e_6
+	247 patch1e_7
+	248 patch1f_0
+	249 patch1f_1
+	250 patch1f_2
+	251 patch1f_3
+	252 patch1f_4
+	253 patch1f_5
+	254 patch1f_6
+	255 patch1f_7
+	  0 patch20_0
+	  1 patch20_1
+	  2 patch20_2
+	  3 patch20_3
+	  4 patch20_4
+	  5 patch20_5
+	  6 patch20_6
+	  7 patch20_7
+	  8 patch21_0
+	  9 patch21_1
+	 10 patch21_2
+	 11 patch21_3
+	 12 patch21_4
+	 13 patch21_5
+	 14 patch21_6
+	 15 patch21_7
+	 16 patch22_0
+	 17 patch22_1
+	 18 patch22_2
+	 19 patch22_3
+	 20 patch22_4
+	 21 patch22_5
+	 22 patch22_6
+	 23 patch22_7
+	 24 patch23_0
+	 25 patch23_1
+	 26 patch23_2
+	 27 patch23_3
+	 28 patch23_4
+	 29 patch23_5
+	 30 patch23_6
+	 31 patch23_7
+	 32 patch24_0
+	 33 patch24_1
+	 34 patch24_2
+	 35 patch24_3
+	 36 patch24_4
+	 37 patch24_5
+	 38 patch24_6
+	 39 patch24_7
+	 40 patch25_0
+	 41 patch25_1
+	 42 patch25_2
+	 43 patch25_3
+	 44 patch25_4
+	 45 patch25_5
+	 46 patch25_6
+	 47 patch25_7
+	 48 patch26_0
+	 49 patch26_1
+	 50 patch26_2
+	 51 patch26_3
+	 52 patch26_4
+	 53 patch26_5
+	 54 patch26_6
+	 55 patch26_7
+	 56 patch27_0
+	 57 patch27_1
+	 58 patch27_2
+	 59 patch27_3
+	 60 patch27_4
+	 61 patch27_5
+	 62 patch27_6
+	 63 patch27_7
+	 64 patch28_0
+	 65 patch28_1
+	 66 patch28_2
+	 67 patch28_3
+	 68 patch28_4
+	 69 patch28_5
+	 70 patch28_6
+	 71 patch28_7
+	 72 patch29_0
+	 73 patch29_1
+	 74 patch29_2
+	 75 patch29_3
+	 76 patch29_4
+	 77 patch29_5
+	 78 patch29_6
+	 79 patch29_7
+	 80 patch2a_0
+	 81 patch2a_1
+	 82 patch2a_2
+	 83 patch2a_3
+	 84 patch2a_4
+	 85 patch2a_5
+	 86 patch2a_6
+	 87 patch2a_7
+	 88 patch2b_0
+	 89 patch2b_1
+	 90 patch2b_2
+	 91 patch2b_3
+	 92 patch2b_4
+	 93 patch2b_5
+	 94 patch2b_6
+	 95 patch2b_7
+	 96 patch2c_0
+	 97 patch2c_1
+	 98 patch2c_2
+	 99 patch2c_3
+	100 patch2c_4
+	101 patch2c_5
+	102 patch2c_6
+	103 patch2c_7
+	104 patch2d_0
+	105 patch2d_1
+	106 patch2d_2
+	107 patch2d_3
+	108 patch2d_4
+	109 patch2d_5
+	110 patch2d_6
+	111 patch2d_7
+	112 patch2e_0
+	113 patch2e_1
+	114 patch2e_2
+	115 patch2e_3
+	116 patch2e_4
+	117 patch2e_5
+	118 patch2e_6
+	119 patch2e_7
+	120 patch2f_0
+	121 patch2f_1
+	122 patch2f_2
+	123 patch2f_3
+	124 patch2f_4
+	125 patch2f_5
+	126 patch2f_6
+	127 patch2f_7
+	128 patch30_0
+	129 patch30_1
+	130 patch30_2
+	131 patch30_3
+	132 patch30_4
+	133 patch30_5
+	134 patch30_6
+	135 patch30_7
+	136 patch31_0
+	137 patch31_1
+	138 patch31_2
+	139 patch31_3
+	140 patch31_4
+	141 patch31_5
+	142 patch31_6
+	143 patch31_7
+	144 patch32_0
+	145 patch32_1
+	146 patch32_2
+	147 patch32_3
+	148 patch32_4
+	149 patch32_5
+	150 patch32_6
+	151 patch32_7
+	152 patch33_0
+	153 patch33_1
+	154 patch33_2
+	155 patch33_3
+	156 patch33_4
+	157 patch33_5
+	158 patch33_6
+	159 patch33_7
+	160 patch34_0
+	161 patch34_1
+	162 patch34_2
+	163 patch34_3
+	164 patch34_4
+	165 patch34_5
+	166 patch34_6
+	167 patch34_7
+	168 patch35_0
+	169 patch35_1
+	170 patch35_2
+	171 patch35_3
+	172 patch35_4
+	173 patch35_5
+	174 patch35_6
+	175 patch35_7
+	176 patch36_0
+	177 patch36_1
+	178 patch36_2
+	179 patch36_3
+	180 patch36_4
+	181 patch36_5
+	182 patch36_6
+	183 patch36_7
+	184 patch37_0
+	185 patch37_1
+	186 patch37_2
+	187 patch37_3
+	188 patch37_4
+	189 patch37_5
+	190 patch37_6
+	191 patch37_7
+	192 patch38_0
+	193 patch38_1
+	194 patch38_2
+	195 patch38_3
+	196 patch38_4
+	197 patch38_5
+	198 patch38_6
+	199 patch38_7
+	200 patch39_0
+	201 patch39_1
+	202 patch39_2
+	203 patch39_3
+	204 patch39_4
+	205 patch39_5
+	206 patch39_6
+	207 patch39_7
+	208 patch3a_0
+	209 patch3a_1
+	210 patch3a_2
+	211 patch3a_3
+	212 patch3a_4
+	213 patch3a_5
+	214 patch3a_6
+	215 patch3a_7
+	216 patch3b_0
+	217 patch3b_1
+	218 patch3b_2
+	219 patch3b_3
+	220 patch3b_4
+	221 patch3b_5
+	222 patch3b_6
+	223 patch3b_7
+	224 patch3c_0
+	225 patch3c_1
+	226 patch3c_2
+	227 patch3c_3
+	228 patch3c_4
+	229 patch3c_5
+	230 patch3c_6
+	231 patch3c_7
+	232 patch3d_0
+	233 patch3d_1
+	234 patch3d_2
+	235 patch3d_3
+	236 patch3d_4
+	237 patch3d_5
+	238 patch3d_6
+	239 patch3d_7
+	240 patch3e_0
+	241 patch3e_1
+	242 patch3e_2
+	243 patch3e_3
+	244 patch3e_4
+	245 patch3e_5
+	246 patch3e_6
+	247 patch3e_7
+	248 patch3f_0
+	249 patch3f_1
+	250 patch3f_2
+	251 patch3f_3
+	252 patch3f_4
+	253 patch3f_5
+	254 patch3f_6
+	255 patch3f_7
+
+)
Index: format/peipherals_config/peipherals_50hz.format
===================================================================
--- /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/format/peipherals_config/peipherals_50hz.format	(nonexistent)
+++ /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/format/peipherals_config/peipherals_50hz.format	(working copy)
@@ -0,0 +1,5 @@
+memalloc ac_test(
+
+10 mem_ac_50hz_buf
+
+)
Index: format/peipherals_config/peipherals_iic.format
===================================================================
--- /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/format/peipherals_config/peipherals_iic.format	(nonexistent)
+++ /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/format/peipherals_config/peipherals_iic.format	(working copy)
@@ -0,0 +1,19 @@
+memalloc iic_test(
+
+64 mem_iic_test_txbuf1
+64 mem_iic_test_txbuf2
+64 mem_iic_test_rxbuf
+2 mem_iic_test_loopcnt
+1 mem_iic_test_loopcnt2
+2 mem_iic_test_offset
+
+//camera
+6 mem_camera_pwm_conf
+3 mem_camera_txbuf
+1 mem_camera_rxbuf
+1 mem_camera_id
+)
+
+(
+10 IIC_TEST_CNT
+)
Index: format/peipherals_config/peipherals_nec.format
===================================================================
--- /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/format/peipherals_config/peipherals_nec.format	(nonexistent)
+++ /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/format/peipherals_config/peipherals_nec.format	(working copy)
@@ -0,0 +1,28 @@
+omemalloc(
+	1 mem_nec_receive_flag
+	4 mem_nec_receive_data
+)
+
+(//NEC 61212
+9000 NEC61212_BOOT_CODE_START_TIME
+4500 NEC61212_BOOT_CODE_END_TIME
+
+9000 NEC61212_REPEAT_START_TIME
+2250 NEC61212_REPEAT_END_TIME
+
+560 NEC61212_DATA_BIT_1_START_TIME
+1690 NEC61212_DATA_BIT_1_END_TIME
+
+560 NEC61212_DATA_BIT_0_START_TIME
+560 NEC61212_DATA_BIT_0_END_TIME
+
+560 NEC61212_STOP_TIME
+
+42580 NEC61212_DATA2REPEAT_TIME
+98190 NEC61212_REPEAT2REPEAT_TIME
+
+0xffff NEC61212_TIMEOUT_TIME
+
+
+)
+
Index: format/peipherals_config/peipherals_spi.format
===================================================================
--- /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/format/peipherals_config/peipherals_spi.format	(nonexistent)
+++ /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/format/peipherals_config/peipherals_spi.format	(working copy)
@@ -0,0 +1,28 @@
+omemalloc(
+
+3 mem_flash_test_base
+4 mem_spi_test_write_buff
+64 mem_spi_test_flash_data_buff
+64 mem_spi_test_read_buff
+64 mem_spi_test_data_buff
+3 mem_flash_test_base2
+4 mem_spi2_test_write_buff
+64 mem_spi2_test_flash_data_buff
+64 mem_spi2_test_read_buff
+64 mem_spi2_test_data_buff
+
+18 mem_spi_ctrl_test_param_buff
+18 mem_spi2_ctrl_test_param_buff
+2 mem_spi_test_param_buff_addr
+2 mem_spi2_test_param_buff_addr
+
+1 mem_spi_test_erase_count
+1 mem_spi_test_write_count
+1 mem_spi_test_read_count
+1 mem_spi_test_compare_data_count
+1 mem_spi2_test_erase_count
+1 mem_spi2_test_write_count
+1 mem_spi2_test_read_count
+1 mem_spi2_test_compare_data_count
+
+)
Index: format/peipherals_config/peipherals_uart.format
===================================================================
--- /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/format/peipherals_config/peipherals_uart.format	(nonexistent)
+++ /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/format/peipherals_config/peipherals_uart.format	(working copy)
@@ -0,0 +1,12 @@
+omemalloc(
+
+1 mem_uart_test_opcode
+1 mem_uart_test_len
+255 mem_uart_test_rx_buffer
+2 mem_uart_test_uarta_rx_start_address
+2 mem_uart_test_uarta_rx_end_address
+2 mem_uart_test_uarta_tx_start_address
+2 mem_uart_test_uarta_tx_end_address
+
+)
+
Index: format/regs.format
===================================================================
--- /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/format/regs.format	(nonexistent)
+++ /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/format/regs.format	(working copy)
@@ -0,0 +1,547 @@
+(
+	0x8000 core_chipid
+	0x8003 core_kick
+	0x8004 core_write_wdt
+	0x8005 core_lpm_wr
+	0x8006 core_misc_ctrl
+	0x8007 core_efuse_rdata
+	0x800a core_ccm_ctrl
+	0x800b core_write_wdt2
+	0x8010 core_reset
+	0x8011 core_encrypt
+	0x8012 core_lpm_wr2
+	0x8013 core_mpu_s0_saddr
+	0x8015 core_mpu_s0_eaddr
+	0x8017 core_mpu_s1_saddr
+	0x8019 core_mpu_s1_eaddr
+	0x8022 core_ucode_hi
+	0x8023 core_ucode_ctrl
+	0x8024 core_ucode_low
+	0x8025 core_ucode_data
+
+	0x8040 core_halfslot
+	0x8042 core_clksel
+	0x8043 core_uart_clksel
+	0x8043 core_config
+	0x8044 core_xtal_stable_time
+	0x8045 core_efuse_addr
+	0x8046 core_bist_ctrl
+	0x8047 core_efuse_ctrl
+	0x8048 core_ac_ctrl
+	0x804a core_ac_saddr
+	0x804c core_lpm_reg
+	0x804f core_lpm_isogate
+	0x8050 core_clkoff
+	0x8052 core_uart_baud
+	0x8053 core_sum_en
+	0x8054 core_uart_rsaddr
+	0x8056 core_uart_readdr
+	0x8058 core_uart_rrptr
+	0x805a core_uart_tsaddr
+	0x805c core_uart_teaddr
+	0x805e core_uart_twptr
+	0x8060 core_uart_ctrl
+	0x8061 core_uartb_ctrl
+	0x8062 core_uartb_baud
+	0x8064 core_uartb_rsaddr
+	0x8066 core_uartb_readdr
+	0x8068 core_uartb_rrptr
+	0x806a core_uartb_tsaddr
+	0x806c core_uartb_teaddr
+	0x806e core_uartb_twptr
+	0x8070 core_gpio_conf
+	0x8084 core_pwm_en
+	0x8085 core_aes_en
+	0x8086 core_spid_ctrl
+	0x8087 core_spid_delay
+	0x8088 core_spid_txlen
+	0x808a core_spid_txaddr
+	0x808c core_spid_rxaddr
+	0x808e core_spid_rxlen
+	0x8090 core_iicd_ctrl
+	0x8091 core_iicd_scl_low
+	0x8092 core_iicd_scl_high
+	0x8093 core_iicd_start_setup
+	0x8094 core_iicd_start_hold
+	0x8095 core_iicd_stop_setup
+	0x8096 core_iicd_data_setup
+	0x8097 core_iicd_data_hold
+	0x8098 core_iicd_txlen
+	0x809a core_iicd_txaddr
+	0x809c core_iicd_rxaddr
+	0x809e core_iicd_rxlen
+	0x80a0 core_pwm_pcnt0
+	0x80a2 core_pwm_ncnt0
+	0x80a4 core_pwm_pcnt1
+	0x80a6 core_pwm_ncnt1
+	0x80a8 core_pwm_pcnt2
+	0x80aa core_pwm_ncnt2
+	0x80ac core_pwm_pcnt3
+	0x80ae core_pwm_ncnt3
+	0x80b0 core_pwm_pcnt4
+	0x80b2 core_pwm_ncnt4
+	0x80b4 core_pwm_pcnt5
+	0x80b6 core_pwm_ncnt5
+	0x80b8 core_pwm_pcnt6
+	0x80ba core_pwm_ncnt6
+	0x80bc core_pwm_pcnt7
+	0x80be core_pwm_ncnt7
+	0x80c0 core_spid2_ctrl
+	0x80c1 core_spid2_delay
+	0x80c2 core_spid2_txlen
+	0x80c4 core_spid2_txaddr
+	0x80c6 core_spid2_rxaddr
+	0x80c8 core_spid2_rxlen
+	0x80ca core_nec_start_addr
+	0x80cc core_nec_end_addr
+	0x80ce core_nec_rptr
+	0x80d0 core_nec_control
+	0x80d1 core_ccm_input_playload_addr
+	0x80d3 core_ccm_output_playload_addr
+	0x80d5 core_ccm_aad0
+	0x80d6 core_ccm_aad1
+	0x80d7 core_ccm_aad2
+	0x80d8 core_pwm_init
+	0x80d9 core_ac_buf_len
+	0x80da core_ccm_inptr
+	0x80dc core_sum_ctrl
+	0x80dd core_pwm_srst
+	0x8108 core_misc_status
+	0x8109 core_qdec_cntx
+	0x810a core_watchdog_cnt
+	0x810b core_uart_status
+	0x810c core_uart_rbaud
+	0x810e core_uart_txitems
+	0x8110 core_uart_trptr
+	0x8112 core_uart_rxitems
+	0x8114 core_uart_rdptr
+	0x8116 core_uart_rwptr
+	0x8118 core_debug_baud
+	0x811a core_ccm_outptr
+	0x811c core_gpio_in
+	0x811d core_gpio_in1
+	0x8120 core_ucode_flag
+	0x8121 core_peripheral_lock
+	0x8122 core_nec_wptr
+	0x8124 core_current_efuse_addr
+	0x8126 core_spid2_remain
+	0x8128 core_spid_remain
+	0x812a core_iicd_remain
+	0x812c core_dma_status
+	0x812d core_perf_status
+	0x812e core_adc_in
+	0x8130 core_nec_rxitem
+	0x8134 core_lpm_ctrl2
+	0x8138 core_lpm_ctrl
+	0x813c core_lpm_xtalcnt
+	0x813d core_lpm_buckcnt
+	0x813e core_lpm_ldocnt
+	0x813f core_lpm_latch
+	0x8140 core_gpio_wakeup_low
+	0x8144 core_gpio_wakeup_high
+	0x8149 core_clk_counter
+	0x8150 core_adc_sum
+	0x8152 core_uartb_status
+	0x8152 core_uartb_rbaud
+	0x8154 core_uartb_txitems
+	0x8156 core_uartb_trptr
+	0x8158 core_uartb_rxitems
+	0x815a core_uartb_rdptr
+	0x815c core_uartb_rwptr
+
+	0x8203 core_ice_ctrl
+	0x8204 core_ice_status
+	0x8205 core_ice_break0
+	0x8207 core_ice_break1
+  
+	0x8280 core_docd_ctrl
+	0x8288 core_docd_paddr
+	0x828a core_docd_pdata
+
+	0x8900 modem_en
+	0x8938 mod_value_scale1
+	0x8960 core_rf_rx_agc_ctrl
+	0x8961 core_rf_rx_gain_fix
+	0x89a0 modem_rssi
+	0x89a1 modem_wb_pow
+	0x89a2 modem_nb_pow
+	0x89a3 modem_gain
+	0x89a4 modem_status
+
+	0x89f0 fpga_rf_gain
+	0x89f1 fpga_rf_gain_ctrl
+	0x89f2 fpga_uart_ctrl
+	0x89f3 fpga_uart_wdata
+	0x89f4 fpga_uart_rdata
+	0x89f5 fpga_uart_status
+
+	0x8a00 core_clkpll_ctrl0              
+	0x8a01 core_clkpll_ctrl1              
+	0x8a02 core_clkpll_ctrl2              
+	0x8a03 core_clkpll_cfg0               
+	0x8a04 core_clkpll_cfg1               
+	0x8a05 core_clkpll_cfg2               
+	0x8a06 core_clkpll_cfg3               
+	0x8a07 core_clkpll_cfg4               
+	0x8a08 core_clkpll_cfg5               
+	0x8a09 core_clkpll_cfg6               
+	0x8a0a core_rf_ldo_en0                
+	0x8a0b core_rf_ldo_en1                
+	0x8a0c core_rf_ldo_cfg0               
+	0x8a0d core_rf_ldo_cfg1               
+	0x8a0e core_rf_ldo_cfg2               
+	0x8a0f core_rf_ldo_cfg3               
+	0x8a10 core_rf_ldo_cfg4               
+	0x8a11 core_rf_ldo_cfg5               
+	0x8a12 core_rf_ldo_cfg6               
+	0x8a13 core_rf_ldo_cfg7               
+	0x8a14 core_rf_ldo_cfg8               
+	0x8a15 core_rf_ldo_cfg9               
+	0x8a16 core_syn_en                    
+	0x8a17 core_rx_en0                    
+	0x8a18 core_rx_en1                    
+	0x8a19 core_tx_en0                    
+	0x8a1a core_tx_en1                    
+	0x8a1b core_force_ctrl                
+	0x8a1c core_rx_lna_gc_gc0             
+	0x8a1d core_rx_lna_gc_gc1             
+	0x8a1e core_rx_lna_gc_gc2             
+	0x8a1f core_rx_lna_gc_gc3             
+	0x8a20 core_rx_lna_gc_gc4             
+	0x8a21 core_rx_lna_gc_gc5             
+	0x8a22 core_rx_lna_gc_gc6             
+	0x8a23 core_rx_lna_gc_gc7             
+	0x8a24 core_rx_lna_gc_gc8             
+	0x8a25 core_rx_lna_hg_isel_gc6        
+	0x8a26 core_rx_lna_hg_isel_gc7        
+	0x8a27 core_rx_lna_hg_isel_gc8        
+	0x8a28 core_rx_lna_lg_isel_gc0        
+	0x8a29 core_rx_lna_lg_isel_gc1        
+	0x8a2a core_rx_lna_lg_isel_gc2        
+	0x8a2b core_rx_lna_lg_isel_gc3        
+	0x8a2c core_rx_lna_lg_isel_gc4        
+	0x8a2d core_rx_lna_lg_isel_gc5        
+	0x8a2e core_rx_bq_gc_gc0              
+	0x8a2f core_rx_bq_gc_gc1              
+	0x8a30 core_rx_bq_gc_gc2              
+	0x8a31 core_rx_bq_gc_gc3              
+	0x8a32 core_rx_bq_gc_gc4              
+	0x8a33 core_rx_bq_gc_gc5              
+	0x8a34 core_rx_bq_gc_gc6              
+	0x8a35 core_rx_bq_gc_gc7              
+	0x8a36 core_rx_bq_gc_gc8              
+	0x8a37 core_rx_gain_force             
+	0x8a38 core_rx_lna_isel_force         
+	0x8a39 core_tx_pwr_ctrl0              
+	0x8a3a core_tx_pwr_ctrl1              
+	0x8a3b core_tx_pwr_ctrl2              
+	0x8a3c core_tx_pwr_ctrl3              
+	0x8a3d core_syn_top_ctrl              
+	0x8a3e core_syn_mmd_cp_ctrl           
+	0x8a3f core_syn_divr_int              
+	0x8a40 core_syn_divr_frac2            
+	0x8a41 core_syn_divr_frac1            
+	0x8a42 core_syn_divr_frac0            
+	0x8a43 core_syn_cal_ctrl              
+	0x8a44 core_rx_tiai_dcoc_gc0          
+	0x8a45 core_rx_tiaq_dcoc_gc0          
+	0x8a46 core_rx_tiai_dcoc_gc1          
+	0x8a47 core_rx_tiaq_dcoc_gc1          
+	0x8a48 core_rx_tiai_dcoc_gc2          
+	0x8a49 core_rx_tiaq_dcoc_gc2          
+	0x8a4a core_rx_tiai_dcoc_gc3          
+	0x8a4b core_rx_tiaq_dcoc_gc3          
+	0x8a4c core_rx_tiai_dcoc_gc4          
+	0x8a4d core_rx_tiaq_dcoc_gc4          
+	0x8a4e core_rx_tiai_dcoc_gc5          
+	0x8a4f core_rx_tiaq_dcoc_gc5          
+	0x8a50 core_rx_tiai_dcoc_gc6          
+	0x8a51 core_rx_tiaq_dcoc_gc6          
+	0x8a52 core_rx_tiai_dcoc_gc7          
+	0x8a53 core_rx_tiaq_dcoc_gc7          
+	0x8a54 core_rx_tiai_dcoc_gc8          
+	0x8a55 core_rx_tiaq_dcoc_gc8          
+	0x8a56 core_rx_bq_daci_gc0            
+	0x8a57 core_rx_bq_dacq_gc0            
+	0x8a58 core_rx_bq_daci_gc1            
+	0x8a59 core_rx_bq_dacq_gc1            
+	0x8a5a core_rx_bq_daci_gc2            
+	0x8a5b core_rx_bq_dacq_gc2            
+	0x8a5c core_rx_bq_daci_gc3            
+	0x8a5d core_rx_bq_dacq_gc3            
+	0x8a5e core_rx_bq_daci_gc4            
+	0x8a5f core_rx_bq_dacq_gc4            
+	0x8a60 core_rx_bq_daci_gc5            
+	0x8a61 core_rx_bq_dacq_gc5            
+	0x8a62 core_rx_bq_daci_gc6            
+	0x8a63 core_rx_bq_dacq_gc6            
+	0x8a64 core_rx_bq_daci_gc7            
+	0x8a65 core_rx_bq_dacq_gc7            
+	0x8a66 core_rx_bq_daci_gc8            
+	0x8a67 core_rx_bq_dacq_gc8            
+	0x8a68 core_rx_tiai_dcoc_force        
+	0x8a69 core_rx_tiaq_dcoc_force        
+	0x8a6a core_rx_bq_daci_force          
+	0x8a6b core_rx_bq_dacq_force          
+	0x8a6c core_rx_bq_bw_cal              
+	0x8a6d core_rx_bq_cfg0                
+	0x8a6e core_rx_bq_cfg1                
+	0x8a6f core_rx_bq_cfg2                
+	0x8a70 core_rx_bq_cfg3                
+	0x8a71 core_rx_bq_cfg4                
+	0x8a72 core_rx_lna_cfg0               
+	0x8a73 core_rx_lna_cfg1               
+	0x8a74 core_rx_lna_cfg2               
+	0x8a75 core_rx_lna_cfg3               
+	0x8a76 core_rx_mixer_cfg0             
+	0x8a77 core_rx_mixer_cfg1             
+	0x8a78 core_rx_mixer_cfg2             
+	0x8a79 core_rx_adc_clk_cfg            
+	0x8a7a core_rx_iqadc_cfg              
+	0x8a7b core_rx_rssiadc_cfg            
+	0x8a7c core_syn_state0                
+	0x8a7d core_syn_state1                
+	0x8a7e core_syn_bias_cfg              
+	0x8a7f core_syn_cdb_cfg0              
+	0x8a80 core_syn_cdb_cfg1              
+	0x8a81 core_syn_cdb_cfg2              
+	0x8a82 core_syn_cdb_cfg3              
+	0x8a83 core_syn_pfd_lkd_cfg           
+	0x8a84 core_syn_cp_lpf_cfg            
+	0x8a85 core_syn_loopdiv_dsm_cfg       
+	0x8a86 core_syn_afc_cfg0              
+	0x8a87 core_syn_afc_cfg1              
+	0x8a88 core_syn_afc_cfg2              
+	0x8a89 core_syn_afc_cfg3              
+	0x8a8a core_syn_aac_cfg0              
+	0x8a8b core_syn_aac_cfg1              
+	0x8a8c core_logen_process_cal0        
+	0x8a8d core_logen_process_cal1        
+	0x8a8e core_logen_process_cal2        
+	0x8a8f core_logen_process_cal3        
+	0x8a90 core_logen_process_cal4        
+	0x8a91 core_logen_process_cal5        
+	0x8a92 core_logen_process_cal6        
+	0x8a93 core_logen_process_cal7        
+	0x8a94 core_logen_process_cal8        
+	0x8a95 core_logen_process_ca9         
+	0x8a96 core_logen_process_ca10        
+	0x8a97 core_gpadc_ctrl                
+	0x8a98 core_tx_abb_cfg                
+	0x8a99 core_tx_mixer_cfg0             
+	0x8a9a core_tx_mixer_cfg1             
+	0x8a9b core_tx_mixer_cfg2             
+	0x8a9c core_tx_pa_cfg                 
+	0x8a9d core_syn_tst_ctrl              
+	0x8a9e core_ana_test_control0         
+	0x8a9f core_ana_test_control1         
+
+
+	0x8c00 core_usb_config
+	0x8c01 core_usb_int_mask
+	0x8c02 core_usb_addr
+	0x8c03 core_usb_rx_saddr
+	0x8c05 core_usb_rx_eaddr
+	0x8c07 core_usb_rxptr
+	0x8c09 core_usb_tx_saddr0
+	0x8c0b core_usb_tx_saddr1
+	0x8c0d core_usb_tx_saddr2
+	0x8c0f core_usb_tx_saddr3
+	0x8c11 core_usb_hmode
+	0x8c18 core_usb_trig
+	0x8c19 core_usb_stall
+	0x8c1a core_usb_clear		//7bit reset   
+	0x8c20 core_usb_rx_wptr
+	0x8c22 core_usb_stall_status
+	0x8c23 core_usb_status
+	0x8c24 core_usb_txbusy
+	0x8c25 core_usb_sof_cntl
+	0x8c26 core_usb_sof_cnth
+	
+)
+
+
+(
+4 rx_freq_offset
+2 tx_freq_offset
+)
+
+(
+/* bit difinitions */
+  4 whiteoff_bit
+  6 clksel_rc
+  1 clksel_dpll_24M
+  5 clksel_dpll
+  4 clksel_xtal
+  5 adc_rccal
+  0 bpf_rccal
+  1 demod_clkoff
+)
+
+(
+  2 reload_code
+  3 gpio_latch
+  4 enable_retmem
+  7 cold_wake
+  0xef isogate_mask
+  0xe0 cs_mask
+)
+
+
+// misc ctrl
+(
+  0x01 spid2_start
+  0x02 spid_start
+  0x04 iicd_start
+  0x08 lock_otp
+  0x10 x_sethi
+  0x20 y_sethi
+  0x40 z_sethi
+  0x80 ccnt_start
+)
+// dma status bit
+(
+  0 otpd_crcok
+  1 otpd_done
+  2 spid_crcok
+  3 spid_done
+  4 iicd_crcok
+  5 iicd_done
+  6 iicd_ack
+)
+
+//bit map of core_uart_status
+(
+1 UART_STATUS_TX_BUSY
+2 UART_STATUS_RX_FIFO_EMPTY
+3 UART_STATUS_RX_FIFO_FULL
+4 UARTB_STATUS_TX_BUSY
+5 UARTB_STATUS_RX_FIFO_EMPTY
+6 UARTB_STATUS_RX_FIFO_FULL
+)
+
+(//core_uart_clksel
+0 UART_CLOCK_SELECT_BIT
+0xFE UART_CLOCK_SELECT_CRYSTAL
+0x01 UART_CLOCK_SELECT_DPLL
+
+24000000 uart_clock_freq_24M
+48000000 uart_clock_freq_48M
+)
+
+
+(//bit map of core_uart_ctrl
+0 BIT_UART_CONTROL_ENABLE
+1 BIT_UART_CONTROL_PARITY
+2 BIT_UART_CONTROL_DATA_LENGTH
+3 BIT_UART_CONTROL_STOP_BIT_SIZE
+4 BIT_UART_CONTROL_FLOW_CONTROL
+5 BIT_UART_CONTROL_7816_SMART_CARD_PROTOCOL
+6 BIT_UART_CONTROL_HALF_DUPLEX_SINGLE_LINE_UART
+7 BIT_UART_CONTROL_RATE_BAUD_SETTING
+)
+(//FUN of core_uart_ctrl
+0x01 FUN_UART_CONTROL_ENABLE
+0x06 FUN_UART_CONTROL_PARITY_ODD
+0x04 FUN_UART_CONTROL_PARITY_EVEN
+0x08 FUN_UART_CONTROL_STOP_2BIT
+0x00 FUN_UART_CONTROL_STOP_1BIT
+0x10 FUN_UART_CONTROL_FLOW_CONTROL_ENABLE
+0x20 FUN_UART_CONTROL_7816_SMART_CARD_PROTOCOL
+0x40 FUN_UART_CONTROL_HALF_DUPLEX_SINGLE_LINE_UART
+0x80 FUN_UART_CONTROL_SETTING_RATE_BAUD
+)
+
+(//bit map of core_nec_control
+0x00 BIT_NEC_ENABLE
+0x01 BIT_NEC_CLK_DIVIDE_NUM
+)
+
+(//FUN  of core_nec_control
+0x01 FUN_NEC_ENABLE
+0x30 FUN_NEC_CLK_DIVIDE_24	//24M , 
+)
+
+0x8b uart_ctrl_default //BCSP
+0x81 uart_ctrl_h4 //H4
+0x81 uart_ctrl_normal
+0x91 uart_ctrl_5line
+0x81 uart_ctrl_57600
+2 uart_baud_len
+0x00 uartclk_crystal
+0x01 uartclk_dpll
+0x1a0 uart_baud_115200
+0xbb uart_baud_256000
+0x340 uart_baud_57600
+0x34 uart_baud_921600
+0x9c4 uart_baud_9600
+
+//core_clkoff
+(
+	0 CLOCK_OFF_AUTH_ROM
+	1 CLOCK_OFF_UC_ROM
+	2 CLOCK_OFF_DEBUG_UART
+	3 CLOCK_OFF_SCHED_RAM
+	4 CLOCK_OFF_TRANCE_FIFO
+	5 CLOCK_OFF_CORDIC
+	6 CLOCK_OFF_OTPD
+	7 CLOCK_OFF_I2C
+	8 CLICK_OFF_8051
+	9 CLOCK_OFF_KEYSCAN
+	0x0a CLOCK_OFF_USB
+	0x0b CLOCK_OFF_QDECODER
+	0x0c CLOCK_OFF_SPI
+	0x0d CLOCK_OFF_PWM
+	0x0e CLOCK_OFF_UARTB
+	0x0f CLOCK_OFF_UART
+)
+
+// gpio config types
+(
+  0 gpcfg_input
+  2 gpcfg_qspi_ncs
+  3 gpcfg_qspi_sck
+  4 gpcfg_qspi_io0
+  5 gpcfg_qspi_io1
+  6 gpcfg_qspi_io2
+  7 gpcfg_qspi_io3
+  8 gpcfg_uart_txd
+  9 gpcfg_uart_rxd
+  10 gpcfg_uart_rts
+  11 gpcfg_uart_cts
+  12 gpcfg_uartb_txd
+  13 gpcfg_uartb_rxd
+  14 gpcfg_uartb_rts
+  15 gpcfg_uartb_cts
+  16 gpcfg_pwm_out0
+  17 gpcfg_pwm_out1
+  18 gpcfg_pwm_out2
+  19 gpcfg_pwm_out3
+  20 gpcfg_pwm_out4
+  21 gpcfg_pwm_out5
+  22 gpcfg_pwm_out6
+  23 gpcfg_pwm_out7
+  24 gpcfg_nec_input
+  25 gpcfg_ac_input
+  31 gpcfg_spid_miso
+  32 gpcfg_spid_ncs
+  33 gpcfg_spid_sck
+  34 gpcfg_spid_mosi
+  35 gpcfg_spid_sdio
+  
+  39 gpcfg_spid2_miso
+  40 gpcfg_spid2_ncs
+  41 gpcfg_spid2_sck
+  42 gpcfg_spid2_mosi
+  43 gpcfg_spid2_sdio
+  44 gpcfg_iic_scl
+  45 gpcfg_iic_sda
+  62 gpcfg_output_low
+  63 gpcfg_output_high
+  
+  0x00 gpcfg_high_impedance
+  0x40 gpcfg_pullup
+  0x80 gpcfg_pulldown
+  0xc0 gpcfg_no_ie
+)
+
Index: format/rfcomm.format
===================================================================
--- /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/format/rfcomm.format	(nonexistent)
+++ /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/format/rfcomm.format	(working copy)
@@ -0,0 +1,391 @@
+/*****************************************************************************/
+/* RCS HEADER -- DO NOT ERASE                                                */
+/* $Author: Administrator $                                                           */
+/* $Id: bt_rfcomm_format.upper,v 1.1 2009-09-28 04:06:17 Administrator Exp $ */
+/* Orisil Technology                                                      */
+/*****************************************************************************/
+
+/**********/
+/* memory */
+/**********/
+
+memalloc(
+1 memRemoteRPNBitRate
+1 memRemotePRNDataBits
+1 memRemotePRNStopBit
+1 memRemotePRNParity
+1 memRemotePRNFlowControl
+1 memRemotePRNXon
+1 memRemotePRNXoff
+
+
+3 mem_mod2div_temp
+2 mem_contw_temp
+2 mem_attrib_list
+
+//rfcomm head
+1 mem_current_adss
+1 mem_current_channel
+1 mem_current_frame_type
+1 mem_current_fcs
+2 mem_current_length
+2 mem_rfcomm_uih_payload_ptr
+
+//rfcomm uih
+1 mem_uih_cmd_type
+2 mem_uih_length
+2 mem_param_payload_ptr
+
+
+//rfcomm modem status
+1 mem_ms_param
+
+//rfcomm pn
+1 mem_pn_credit_flow_type_info
+1 mem_pn_priority
+1 mem_pn_acknowledg_timer
+1 mem_pn_max_retrans
+
+1 mem_rfcomm_send_adss
+1 mem_rfcomm_send_frame_type
+1 mem_rfcomm_send_fcs
+1 mem_rfcomm_send_offset
+
+)
+
+xmemalloc(
+1 mem_pn_dlci
+2 mem_pn_max_frame_size
+
+1 memFCStemp1
+1 memFCStemp2
+1 memFCStemp3
+
+1 mem_rfcomm_initiator
+
+1 mem_remote_spp_channel
+
+1 mem_HIUfcs_SPP
+1 mem_HIUfcs_SPP_WCredits
+
+1 mem_rfcomm_send_more_pkt
+
+1 mem_remote_credits
+1 mem_credit_given
+
+//rfcomm modem status
+1 mem_ms_channel
+
+1 mem_rfcomm_credit_flag
+
+2 mem_rfcomm_max_frame_size
+1 mem_rfcomm_credit_init_data
+
+2 mem_cb_receive_spp_data
+
+2 mem_nl_rx_data_src
+2 mem_nl_rx_len_all
+)
+
+
+(
+0 CREDIT_DISABLE
+1 CREDIT_ENABLE
+)
+
+
+/************************************************************************/
+  
+
+ 
+/************/
+/* constant */
+/************/
+
+/* RFCOMM state for Headset (memRFCOMM_State) */ 
+  (
+    0 RFCOMM_IDLE           /* before the responsor HS receive SABM            */
+    1 RFCOMM_W4_DLCI0_OPEN
+    2 RFCOMM_W4_DLCI0_CLOSE
+    3 RFCOMM_START_DLCI0    /* After respond SABM frame (DLCI=0)               */
+    4 RFCOMM_W4_DLCI_OPEN
+    5 RFCOMM_W4_DLCI_CLOSE
+    6 RFCOMM_DLCI_OPENED    
+   
+  )
+  
+/* RFCOMM timer constants   */
+  (
+    1000  RFCOMM_T1         /* Used by SABM and DISC frames,100*20ms = 20s     */     
+    1000  RFCOMM_T2         /* Used by commands send in UIH on DLCI0,          */
+    300   RFCOMM_T3_RINGON  /* 6s for ring fade time                           */
+  
+  )
+
+/* Command Type */
+  (
+    0x3F RSP_RX_SABM        /*responsor expect SABM from initiator             */
+    0x3F INI_TX_SABM
+	
+    0x73 RSP_TX_UA          /*responsor send out UA command                    */
+    0x73 UA_WFBIT_SET	    /* UA control field with F bit set                 */
+	
+    0xEF RSP_RX_UIH         /*responsor expect UIH from initiator              */
+
+    0xEF RSP_TX_UIH         /*responsor send UIH to initiator                  */
+     
+    0x1F RSP_TX_DM          /*responsor send DM to initiator                   */
+    0x1F DM_WFBIT_SET       /* DM control field with F bit set                 */
+    0x0F DM_WFBIT_CLEAR     /* DM control field with F bit clear               */
+
+    0x53 RSP_RX_DISC        /*responsor expect DISC from initiator             */
+    0x53 INI_TX_DISC	    /*initiator send DISC control type command         */
+     
+    0xFF RSP_RX_UIH_WDATA   /*UIH data with credit flow control info           */
+    
+    
+  )
+
+/* Multiplexor commands and responses frames */
+  (
+    0x83 PN_COMMAND           /* Bit 0 EA C/R Type = 000001         */
+    0x81 PN_RESPONSOR         /* Bit 0 EA C/R Type = 000001         */
+    
+    0xE3 MSC_COMMAND          /* Bit 0 EA C/R Type = 000111         */
+    0xE1 MSC_RESPONSOR
+ 
+    0x13 NSC_COMMAND          /* Bit 0 EA C/R Type = 001000         */
+    0x11 NSC_RESPONSOR        /* Bit 0 EA C/R Type = 001000         */
+
+    0x23 TEST_COMMAND         /* Bit 0 EA C/R Type = 000111         */
+    0x21 TEST_RESPONSOR 
+    
+    0x93 RPN_COMMAND          /* Bit 0 EA C/R Type = 001001         */
+    0x91 RPN_RESPONSOR 
+    
+    0x53 RLS_COMMAND          /* Bit 0 EA C/R Type = 001010         */
+    0x51 RLS_RESPONSOR 
+
+    0xA3 FCON_COMMAND         /* Bit 0 EA C/R Type = 000101         */
+    0xA1 FCON_RESPONSOR 
+    
+    0x63 FCOFF_COMMAND        /* Bit 0 EA C/R Type = 000110         */
+    0x61 FCOFF_RESPONSOR 
+    	
+    0x03 RLS_OVERRUN
+    0x05 RLS_PARITY_ERROR
+    0x09 RLS_FRAMING_ERROR
+  )
+
+/* memLocalCredit */
+  (
+    0x01 RFCOMM_CREDIT
+  )
+
+  (
+  	0x007f RFCOMM_MAX_FRAME_SIZE
+  )
+
+/* UIH received Data length */
+  (
+    0  LENGTH_ZERO
+    
+    6  LENGTH_OK
+    7  LENGTH_HOT
+    8  LENGTH_RING
+    9  LENGTH_ERROR
+    9  LENGTH_AGVOL_ONEBYTE
+    10 LENGTH_AGVOL_TWOBYTE
+    10 LENGTH_VOL_ONEBYTE
+    11 LENGTH_VOL_TWOBYTE
+    12 LENGTH_BRSF
+    13 LENGTH_PLUS_CIEV
+    15 LENGTH_INBANDRING
+    14 LENGTH_CIEV_CALL
+    17 LENGTH_CRING
+    20 LENGTH_BRSF_OK
+    24 LENGTH_CIND0
+    28 LENGTH_CIEV_TWO
+    32 LENGTH_CIND_OK
+    59 LENGTH_CIND_OK2
+    100 LENGTH_DISCARD
+  )
+  
+/************/
+/* flags    */
+/************/
+  
+/* memRFCOMM_L2CAP_Interface */
+  (
+    0 RFCOMM_TX_W4BUF_FLAG    /* Wait for Tx buffer empty flag */
+    1 RFCOMM_CLOSE_LINK_FLAG
+  )
+  
+
+    
+/* memRemoteMSC		*/
+  (
+    0 MSC_EA_BIT
+    1 MSC_FC_BIT
+    2 MSC_RTC_BIT
+    3 MSC_RTR_BIT
+    6 MSC_IC_BIT
+    7 MSC_DV_BIT
+  )
+
+/* memRemoteRLS         */
+  (
+    0x0C OVERRUN_ERROR
+    0x0A PARITY_ERROR
+    0x09 FRAMING_RERROR
+  )
+  
+/* memRemoteRPNBitRate  */
+  (
+    0x00 BITS2400
+    0x01 BITS4800
+    0x02 BITS7200
+    0x03 BITS9600
+    0x04 BITS19200
+    0x05 BITS38400
+    0x06 BITS57600
+    0x07 BITS115200
+    0x08 BITS230400
+  )
+  
+/* memRemotePRNDataBits	*/
+  (
+    0x00 DATABITS5
+    0x01 DATABITS6
+    0x02 DATABITS7
+    0x03 DATABITS8
+  )
+  
+/* memRemotePRNStopBit	*/
+  (
+    0    ONESTOP
+    1    ONEHALFSTOP
+  )
+  
+/* memRemotePRNParity   */
+  (
+    0    ODDPARITY
+    1    EVENPARITY
+    2    MARKPARITY
+    3    SPACEPARITY
+    
+    7    PARITY_ENABLE_BIT
+  )
+
+/* RPN bit mask(in)     */
+  (
+     0   BIT_RATE_MASK_BIT
+     1   DATA_BITS_MASK_BIT
+     2   STOP_BITS_MASK_BIT
+     3   PARITY_MASK_BIT
+     4   PARITY_TYPE_MASK_BIT
+     5   XON_CHAR_MASK_BIT
+     6   XOFF_CHAR_MASK_BIT
+  )
+  
+/* RPN bit mask(in) 2    */
+  (
+     0   XON_XOFF_INPUT_MASK_BIT
+     1   XON_XOFF_OUTPUT_MASK_BIT
+     2	 RTR_INPUT_MASK_BIT
+     3   RTR_OUTPUT_MASK_BIT
+     4   RTC_INPUT_MASK_BIT
+     5   RTC_OUTPUT_MASK_BIT
+
+  )
+
+/* memRFCOMM_Request	*/
+  (
+    0 SEND_MSC_CMD_REQ_FLAG
+    1 SEND_AT_CKPD_REQ_FLAG
+    2 SEND_RING_REQ_FLAG
+    3 SEND_SABM_CMD
+  )
+  
+/* memRFCOMM_Misc_Flag  */
+  (
+    0 MSC_CDM_ALREADY_SEND_FLAG
+    1 CREDIT_FLOW_USED_FLAG
+    2 DONT_EMBEDDED_CREDIT_FLAG 
+    3 MSC_EXCHANGE_DONE_FLAG
+    4 FLOW_CONTROL_FCOFF_BIT            /* set when receive FCoff, clear when FCon   */
+  )
+  
+/* memRemoteMSC		*/
+  (
+    1 FLOW_CONTROL_FC_BIT		/* received MSC FC bits                      */
+  
+  )
+/* Address filed        */
+  (
+    0 ADDR_EA_BIT
+    1 ADDR_CR_BIT
+    2 ADDR_D_BIT
+  )
+//should be same as descripted in SDP
+(
+    1 SPP_SLAVE_CHANNEL
+    7 OBEX_SERVER_CHANNEL
+    8 HF_SERVER_CHANNEL 
+    9 HS_SERVER_CHANNEL
+)
+/* memRFCOMM_Flag */
+(
+	0 USING_HF_PROFILE
+	1 USING_HS_PROFILE
+	2 USING_SPP_PROFILE
+)
+/*RFCOMM Frame Type*/
+(
+	0x3f RFCOMM_FRAME_TYPE_SABM
+	0x73 RFCOMM_FRAME_TYPE_UA
+	0xEF RFCOMM_FRAME_TYPE_UIH
+	0xFF RFCOMM_FRAME_TYPE_UIH_CREDITS
+	0x53 RFCOMM_FRAME_TYPE_DISCONN
+)
+/*RFCOMM UIH CMD TYPE*/
+(
+	0x41 UIH_PARAM_NEG_CMD
+	0x40 UIH_PARAM_NEG_RES
+	0x49 UIH_PARAM_CMD_REMOVE_PORT
+	0x71 UIH_MODEM_STATUS_CMD
+	0x70 UIH_MODEM_STATUS_RES
+)
+
+/*bits in rfcomm address*/
+(
+	0 RFCOMM_ADDRESS_EXT_LEN
+	1 RFCOMM_ADDRESS_CR
+	2 RFCOMM_ADDRESS_DERECTION
+
+
+)
+
+	(                                   
+	0 RFCOMM_CHANNEL_STATE_PN_CMD
+	1 RFCOMM_CHANNEL_STATE_PN_RES
+	2 RFCOMM_CHANNEL_STATE_SABM
+	3 RFCOMM_CHANNEL_STATE_UA
+	4 RFCOMM_CHANNEL_STATE_SND_MS_CMD
+	5 RFCOMM_CHANNEL_STATE_RCV_MS_CMD
+	6 RFCOMM_CHANNEL_STATE_SND_MS_RES
+	7 RFCOMM_CHANNEL_STATE_RCV_MS_RES
+	0xff RFCOMM_CHANNEL_SETUP_COMPLETE
+	) 
+
+	/*mem_rfcomm_send_more_pkt*/
+	(
+	1 MORE_PKT_MSC_CMD_HF
+	2 MORE_PKT_MSC_CMD_HS
+	3 MORE_PKT_MSC_CMD_SPP
+	4 MORE_PKT_MSC_CMD_OBEX
+	)
+
+	(
+	127 RFCOMM_MALLOC_SIZE
+	)
\ No newline at end of file
Index: format/sdp.format
===================================================================
--- /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/format/sdp.format	(nonexistent)
+++ /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/format/sdp.format	(working copy)
@@ -0,0 +1,70 @@
+
+memalloc(
+0 mem_sdp_mem_start
+8 mem_sdp_uuid_search_ptr
+2 mem_sdp_continue_byte
+1 mem_sdp_pduid
+2 mem_sdp_transactionid
+2 mem_sdp_transactionid_local
+2 mem_sdp_attribute_maxbyte
+2 mem_sdp_record_maxcnt
+4 mem_sdp_record_handle
+1 mem_sdp_LACAP_found
+1 mem_sdp_RFCOMM_found
+0 mem_sdp_handle_list
+32 mem_sdp_attrib_list
+2 mem_sdp_error_code
+2 mem_sdp_all_length
+1 mem_handle_humber
+2 mem_search_uuid
+0 mem_sdp_mem_end
+)
+xmemalloc(
+2 mem_ui_uuid_table
+22 mem_all_uuid_16bits
+34 mem_all_uuid_128bits
+2 mem_sdp_l2capch_ptr
+)
+(
+0 AGORHS_SERVICE
+1 GENAUDIO_SERVICE
+2 HANDSFREE_SERVICE
+)
+(
+0 ATTRIBUTEID_0000
+1 ATTRIBUTEID_0001
+2 ATTRIBUTEID_0004
+3 ATTRIBUTEID_0009
+4 ATTRIBUTEID_0100
+5 ATTRIBUTEID_0302
+6 ATTRIBUTEID_0006
+7 ATTRIBUTEID_0311
+)
+
+(
+0x01 SDP_ERROR_RES
+0x02 SDP_SEARCH_REQ
+0x03 SDP_SEARCH_RES
+0x04 SDP_ATTRIBUTE_REQ
+0x05 SDP_ATTRIBUTE_RES
+0x06 SDP_SEARCHATTRIB_REQ
+0x07 SDP_SEARCHATTRIB_RES
+)
+0x2600 sdp_max_amount
+250 SDP_MALLOC_SIZE
+0x6e sdp_tid_spp //any number
+
+(
+0x1f11 SDP_UUID_HS_AUDIO_GATEWAY
+)
+
+(
+0X09 SDP_ATTRIBUTE_ID
+0x0a SDP_ATTRIBUTE_RANGE
+)
+
+(//mem_sdp_handle_list
+7 SDP_MAX_HANDLE_NUMBER
+)
+
+ 
Index: format/security.format
===================================================================
--- /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/format/security.format	(nonexistent)
+++ /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/format/security.format	(working copy)
@@ -0,0 +1,108 @@
+
+memalloc (
+
+
+16 mem_random_number
+16 mem_round_key
+16 mem_kinit
+
+16 mem_input_store
+16 mem_x
+15 mem_y
+1 mem_y15
+17 mem_key_store
+1 mem_key_store_end
+2 memp_ar_key
+2 memp_ar_input
+10 mem_ar_hround
+
+
+1 mem_ec_infinite
+2 mem_ec_loopc
+1 mem_aes_cmac_data_length
+
+0 memdat
+/* ecc calculation */
+
+24 mem_ax
+24  mem_ay
+24  mem_az
+24 mem_bx
+0 mem_ax_256 //32 bytes
+24 mem_by
+8 mem_bz
+16 mem_ay_256 // 32 bytes
+16 mem_cx
+8 mem_az_256 // 32 bytes
+23 mem_cy
+1 mem_cy5
+0 mem_bx_256 // 32 bytes
+24 mem_cz
+8  mem_k
+16 mem_by_256 // 31 bytes
+16 mem_align
+
+0 mem_bz_256  //32 bytes
+0 mem_tmp1
+24 memahbak
+8 mem_tmp5
+0 mem_cx_256  //32 bytes
+16 memahsave
+16  mem_tmp2
+0 mem_cy_256  // 32 bytes
+0  memahsave_end 
+1  mem_addr_padding 
+7   mem_addr_value         /* 12 bytes     */ 
+0 mem_tmp3
+5 mem_t1
+3  mem_addr_value_end   
+15 mem_addr_iocap_end
+1 mem_cy5_256 // 1 byte
+0 mem_cz_256 // 32 bytes
+0 mem_tmp0
+8 mem_t0
+16 mem_tmp0a
+8  mem_t2
+16 mem_k_256 //32 bytes
+16 mem_t3
+8  mem_tmp1_256 //32 bytes
+24 mem_t7
+
+
+32 mem_tmp5_256
+32  mem_tmp2_256
+0 mem_tmp3_256
+32 mem_t1_256
+0 mem_tmp0_256
+32 mem_t0_256
+32 mem_t2_256
+32 mem_t3_256
+32 mem_t7_256
+
+24 mem_p		
+24 mem_a
+24 mem_b
+24 mem_gx
+24 mem_gy
+32 memh0
+
+
+32 mem_p_256		
+32 mem_a_256
+32 mem_gx_256
+32 mem_gy_256
+16 mem_le_slat
+
+)
+
+xmemalloc(
+5 mem_ccm_pcnt_tx
+5 mem_ccm_pcnt_rx
+4 mem_ccm_last_mic
+0 mem_ccm_iv
+4 mem_ccm_ivm
+4 mem_ccm_ivs
+2 mem_ccm_len
+2 mem_ccm_rx_ptr
+)
+
Index: format/simple_pairing.format
===================================================================
--- /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/format/simple_pairing.format	(nonexistent)
+++ /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/format/simple_pairing.format	(working copy)
@@ -0,0 +1,212 @@
+/* simple pairing page */
+
+memalloc(
+
+//4 mem_hci_ssp_mode
+0 mem_sp_state_start
+1 mem_sp_state
+1 mem_master_sp_state
+1 mem_sp_flag
+1 mem_master_sp_flag
+1 mem_sp_calc
+1 mem_sp_dh_ready
+1 mem_sp_localsm
+1 mem_pairing_auth
+
+1 mem_sp_local_key_send_count
+1 mem_sp_remote_key_recv_count
+1 mem_sp_remote_key_invalid
+1 mem_sp_dhkey_invalid
+4 mem_gkey
+0 mem_sp_state_end
+
+8 mem_le_pubkey_remote_x_256
+0 mem_sp_pubkey_remote
+24 mem_sp_pubkey_remote_x
+0 mem_sp_pubkey_remote_x_end
+8 mem_le_pubkey_remote_y_256
+24 mem_sp_pubkey_remote_y
+
+8 mem_le_dhkey_256
+24 mem_sp_dhkey
+0 mem_sp_dhkey_end
+
+16 mem_sp_random_local
+0 mem_sp_random_local_end
+16 mem_sp_random_remote
+0 mem_sp_random_remote_end
+0 memresult
+0 mem_sp_calc_result
+4 memh
+4 memg
+4 memf
+4 meme
+0 mem_sp_calc_result_high
+4 memd
+4 memc
+4 memb
+4 mema
+16 mem_sp_check_result
+16 mem_sp_confirm_remote
+16 mem_sp_prarm_stack
+)
+
+xmemalloc(
+1 mem_sc_only_mode
+1 mem_sp_debug_mode
+1 mem_secure_connections_enable
+1 mem_sp_local_key_invalid
+1 mem_sc_calc
+1 mem_sc_local_key_invalid
+
+
+32 mem_sc_private_key_256
+32 mem_sc_pubkey_local_x_256
+32 mem_sc_pubkey_local_y_256
+
+24 mem_sp_private_key
+0 mem_sp_pubkey_local
+24 mem_sp_pubkey_local_x
+0 mem_sp_pubkey_local_x_end
+24 mem_sp_pubkey_local_y
+
+1 mem_ssp_enable
+1 mem_lmp_io_cap_payload_iocap
+1 mem_lmp_io_cap_payload_oob_auth_data
+1 mem_lmp_io_cap_payload_auth_req
+
+0 mem_sp_state_xmem
+3 mem_sp_iocap_remote
+1 mem_flag_mode_ssp_pin
+1 mem_ssp_mode_flag
+1 mem_authentication_passkey_times
+1 mem_passkey_1bit
+1 mem_flag_pairing_state
+0 mem_sp_state_xmem_end
+)
+/* simple pairing status flag */
+(
+  0x00   SP_FLAG_STANDBY
+  0x01   SP_FLAG_COMMIT
+  0x02   LE_SP_FLAG_COMMIT_256
+
+)
+
+/* simple pairing calc flag */
+(
+  0x00   SP_CALC_STANDBY
+  0x01   SP_CALC_PUBKEY
+  0x02   SP_CALC_DHKEY
+  0x03   SP_CALC_PUBKEY_256
+  0x04   SP_CALC_DHKEY_256
+)
+
+/* simple pairing state */
+(
+  0x00   SP_STAT_NULL
+  0x01   SP_STAT_KEY_RECV
+  0x02   SP_STAT_KEY_GENERATE
+  0x03   SP_STAT_KEY_SEND
+  0x04   SP_STAT_COMMIT_CALC
+  0x05   SP_STAT_COMMIT_SEND
+  0x06   SP_STAT_RANDOM_RECV
+  0x07   SP_STAT_RANDOM_SEND
+  0x08   SP_STAT_CONFIRM_RECV
+  0x09   SP_STAT_CONFIRM_CHECK
+  0x0A   SP_STAT_CONFIRM_CALC
+  0x0B   SP_STAT_CONFIRM_SEND
+  0x0C   SP_STAT_LINK_KEY_CALC
+  0x0F   SP_STAT_DONE
+  0x10   SP_STAT_FEATURE_EXT_SEND
+  0x11   SP_STAT_GKEY_CALC
+  /*simple pairing master only*/
+  0x12   SP_MASTER_STAT_START_SKIP
+  0x13   SP_MASTER_STAT_START_DONE
+  0x14   SP_STAT_COMMITMENT_COMPARE
+  0x15   SP_STATE_END
+)
+
+
+/* simple paring invalid flag */
+(
+  0x00   SP_KEY_INVALID
+  0x01   SP_KEY_VALID
+  0x03   SP_KEY_VALID_256
+
+)
+
+/* encapsulated defination for P-256 key */
+(
+  0x01  ENCAPSULATED_MAJOR_TYPE
+  0x02  ENCAPSULATED_MINOR_TYPE_P256
+  0x40  ENCAPSULATED_LEN_P256
+)
+/* encapsulated defination for P-192 key */
+(
+  0x01  ENCAPSULATED_MAJOR_TYPE_P192
+  0x01  ENCAPSULATED_MINOR_TYPE_P192
+  0x30  ENCAPSULATED_LEN_P192
+)
+
+/* bluetooth 2.1 support flag */
+(
+  0x00  SIMPLE_PAIRING_ENABLE
+  0x01  ENCRYPTION_PAUSE_ENABLE
+  0x02  EXTENDED_INQUIRY_RESPOSE_ENABLE
+  0x03  SNIFF_SUBRATING_ENABLE
+)
+
+/*mem_sp_localsm*/
+(
+  0x00 DEFAULT_STATEMACHINE
+  0x01 LOCAL_STATEMACHINE
+)
+
+(
+ 0x00 DEFALT_PAIRING_AUTH
+ 0x01 PAIRING_AUTH
+)
+
+//mem_secure_connections_enable
+(
+0 SECURE_CONNECTIONS_LE_BIT
+1 SECURE_CONNECTIONS_BR_BIT
+)
+
+(
+1 SSP_MODE_SSP_PIN_FLAG
+2 SSP_MODE_PASSKEY_ENTRY_FLAG
+3 SSP_MODE_JUST_WORK_FLAG
+)
+
+(
+7 FLAG_MODE_SSP_PIN_REVICEVE_COMPARISON_BIT
+6 FLAG_MODE_SSP_PIN_RECIEVE_DHKEY_BIT
+0 FLAG_MODE_SSP_PIN_COMPARISON_RESULT_BIT
+)
+(
+1 FLAG_PAIRING_STATE_PAIRING
+0 FLAG_PAIRING_STATE_NOT_PAIRING
+)
+(//LMP_IO_CAP_REQ & LMP_IO_CAP_RES
+//IO capability
+0x00 IO_CAPABILITY_DISPLAY_ONLY
+0x01 IO_CAPABILITY_DISPLAY_YESNO
+0x02 IO_CAPABILITY_KEYBOARD_ONLY
+0x03 IO_CAPABILITY_NO_INPUT_NO_OUTPUT
+
+//oob data Present
+0x00 OOB_DATA_PRESENT_NOT_PRESENT
+0x01 OOB_DATA_PRESENT_P192_DATA
+0x02 OOB_DATA_PRESENT_P256_DATA
+0x03 OOB_DATA_PRESENT_P192_P256_DATA
+// authentication requirements
+0x00 AUTH_REQ_MITM_PROTECTION_NOT_REQUIRED_NO_BONDING
+0x01 AUTH_REQ_MITM_PROTECTION_REQUIRED_NO_BONDING
+0x02 AUTH_REQ_MITM_PROTECTION_NOT_REQUIRED_DEDICATED_BONDING
+0x03 AUTH_REQ_MITM_PROTECTION_REQUIRED_DEDICATED_BONDING
+0x04 AUTH_REQ_MITM_PROTECTION_NOT_REQUIRED_GENERAL_BONDING
+0x05 AUTH_REQ_MITM_PROTECTION_REQUIRED_GENERAL_BONDING
+)
+
+  
Index: format/ui.format
===================================================================
--- /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/format/ui.format	(nonexistent)
+++ /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/format/ui.format	(working copy)
@@ -0,0 +1,451 @@
+/*****************************************************************************/
+/* RCS HEADER -- DO NOT ERASE                                                */
+/* $Author: Administrator $                                                           */
+/* $Id: bt_ui_format.upper,v 1.1 2009-09-28 04:06:17 Administrator Exp $     */
+/************************************************************************/
+
+
+	/* ========= memory ============== */
+memalloc(
+2 mem_UI_data_txbuff_length
+
+1 mem_ipc_skip_continue_proc
+0 mem_ui_timer_temp  //length 4
+4 mem_ipc_rega_temp
+) 
+
+xmemalloc(
+//UI Work area
+1 mem_ipc_lock_bt
+1 mem_ipc_lock_c51
+8 mem_ipc_fifo_bt2c51
+8 mem_ipc_fifo_c512bt
+
+1 mem_ui_button_timer
+1 mem_ui_button_last_state
+4 mem_ui_timer_last_btclk
+2 mem_discovery_timeout_timer_count
+1 mem_hid_handshake_timer_count
+1 memui_reconnect_mode
+2 mem_ui_state_map
+
+//UI Config area
+1 mem_ui_profile_supported
+1 mem_ui_button_timeout
+1 mem_ui_button_gpio
+2 mem_discovery_timeout
+1 mem_pin_length
+16 mem_pin
+
+)
+/************/
+/* constant */
+/************/
+
+//mem_ui_state_map
+(
+0 UI_STATE_BT_CONNECTED
+1 UI_STATE_BT_SETUP_COMPLETE
+2 UI_STATE_BT_HID_CONN
+3 UI_STATE_BT_HID_HANDSHAKE
+4 UI_STATE_BT_SPP_CONN
+5 UI_STATE_BT_SNIFF
+6 UI_STATE_BT_DISCOVERY
+7 UI_STATE_BT_RECONNECT
+8 UI_STATE_BT_SLAVE_ROLE
+9 UI_STATE_BLE_CONNECTED
+10 UI_STATE_BLE_WRITE_RCV
+11 UI_STATE_BLE_ADV
+12 UI_STATE_BTN_DOWN
+)
+
+(
+1 UI_STATE_SPP_NL_AUTO_DISCOVER
+
+)
+
+/* UI state for Headset (memui_HS_State) */ 
+   (
+    0 UI_HEADSET_DISCONNECT
+    1 UI_HEADSET_IDLE                   /* before the responsor HS receive SABM      */
+    2 UI_HEADSET_W4CONNECT
+    3 UI_HEADSET_RINGING
+    4 UI_HEADSET_CONNECTED
+    5 UI_HEADSET_PARING
+  )
+/* memui_BB_State */
+(
+  0 UI_BB_OFF
+  1 UI_BB_IDLE
+  2 UI_BB_DISCOVERY
+  3 UI_BB_CONNECTED_ACTIVE_NO_SCO
+  4 UI_BB_CONNECTED_ACTIVE_WITH_SCO
+  5 UI_BB_CONNECTED_ACTIVE_WAIT_SNIFF
+  6 UI_BB_CONNECTED_SNIFF
+  7 UI_BB_RECONNECT
+  8 UI_BB_CONNECTED_SNIFF_WITH_SCO
+)
+
+/************/
+/* flags    */
+/************/
+  
+/* memui_Misc_Flags */
+  (
+    5 NO_IDLE_TURN_OFF
+    7 ANSWER_RING_FLAG               /* 1 Answer,0 no*/
+  )
+
+/* mem_UI_SCH_Interface */
+  (
+    0  UI_HS_PAIRING 
+    2  UI_REQ_CLOSE_RFCOMM
+    3  UI_LINK_LOST
+    4  UI_REQ_OPEN_SCO
+    6  UI_REQ_CLOSE_SCO
+  )
+  
+/* memui_PassOverKey */
+  (
+    0  ANSWER_RING_BIT
+    0  AG_SEND_RING_BIT
+    1  VOL_UP_BIT
+    2  VOL_DOWN_BIT
+    3  INI_CALL_BIT
+    4  DAIL_LAST_CALL
+    5  END_CALL_BIT
+    6  NOKIA_VOICE_ACTIVE 
+    7  REJECT_CALL_BIT
+  )
+  
+/* memui_reconnect_mode */
+(
+  0 NO_RECONNECTION
+  1 RECONNECT_HID
+  2 RECONNECT_HF
+  3 RECONNECT_HS
+  4 RECONNECT_HID_HF
+  5 RECONNECT_HID_HS
+)
+/* memui_Commands */
+(
+0 BT_CMD_STANDBY
+1 BT_CMD_START_DISCOVERY
+2 BT_CMD_STOP_DISCOVERY
+3 BT_CMD_RECONNECT
+4 BT_CMD_DISCONNECT
+5 BT_CMD_ENTER_SNIFF
+6 BT_CMD_EXIT_SNIFF
+7 BT_CMD_ENTER_SNIFF_SUBRATING
+8 BT_CMD_EXIT_SNIFF_SUBRATING
+9 BT_CMD_SNIFF_TEST
+10 BT_CMD_SET_PIN_CODE
+11 BT_CMD_START_INQUIRY
+12 BT_CMD_STOP_INQUIRY
+13 BT_CMD_START_ADV
+14 BT_CMD_STOP_ADV
+15 BT_CMD_START_DIRECT_ADV
+16 BT_CMD_STOP_DIRECT_ADV
+17 BT_CMD_LE_DISCONNECT
+18 BT_CMD_LE_UPDATE_CONN
+19 BT_CMD_LED_OFF
+20 BT_CMD_LED_ON
+21 BT_CMD_LED_BLINK
+22 BT_CMD_LE_START_CONN
+23 BT_CMD_LE_START_SCAN
+24 BT_CMD_LE_STOP_SCAN
+25 BT_CMD_ENTER_HIBERNATE
+27 BT_CMD_LE_SMP_SECURITY_REQUEST
+29 BT_CMD_ROLE_SWITCH
+30 BT_CMD_BB_RECONN_CANCEL
+31 BT_CMD_STORE_RECONN_INFO_LE
+32 BT_CMD_STORE_RECONN_INFO_BT
+33 BT_CMD_DHKEY_NOT_ACCEPT
+34 BT_CMD_START_24G
+35 BT_CMD_STOP_24G
+36 BT_CMD_PAIR_24G
+37 BT_CMD_STORE_RECONN_INFO
+)
+
+(
+0x00 BT_EVT_NULL
+0x01 BT_EVT_BB_CONNECTED
+0x02 BT_EVT_BB_DISCONNECTED
+0x03 BT_EVT_RECONN_STARTED
+0x04 BT_EVT_RECONN_FAILED
+0x05 BT_EVT_SETUP_COMPLETE
+0x06 BT_EVT_HID_CONNECTED
+0x07 BT_EVT_HID_DISCONNECTED
+0x08 BT_EVT_SPP_CONNECTED
+0x09 BT_EVT_SPP_DISCONNECTED
+0x0A BT_EVT_PINCODE_REQ
+0x0B BT_EVT_ENTER_SNIFF
+0x0C BT_EVT_EXIT_SNIFF
+0x0D BT_EVT_ENTER_SNIFF_SUB
+0x0E BT_EVT_EXIT_SNIFF_SUB
+0x0F BT_EVT_DISCOVERY_STOPED
+0x10 BT_EVT_BUTTON_LONG_PRESSED
+0x12 BT_EVT_HID_HANDSHAKE
+0X13 BT_EVT_RECONN_PAGE_TIMEOUT
+0x14 BT_EVT_LE_CONNECTED
+0X15 BT_EVT_LE_DISCONNECTED
+0x16 BT_EVT_ML2CAP_CONN_REFUSED
+0x17 BT_EVT_BUTTON_ENTER_HIBERNATE
+0x18 BT_EVT_LINKKEY_GENERATE
+0x19 BT_EVT_SWITCH_NOT_ACCEPT
+0x20 BT_EVT_SWITCH_ACCEPT
+0x21 BT_EVT_SNIFF_NOT_ACCEPT
+0x22 BT_EVT_SNIFF_ACCEPT
+0x23 BT_EVT_UNSNIFF_ACCEPT
+0x24 BT_EVT_UNSNIFF_NOT_ACCEPT
+0x25 BT_EVT_BUTTON_ADJUST_DPI
+0x26 BT_EVT_SEND_UNSNIFF_ACCEPT
+0x27 BT_EVT_VIRTUAL_CABLE_UNPLUG
+0x28 BT_EVT_LE_WRITE_REQUEST
+0x29 BT_EVT_LE_ENC_INFO
+0x2a BT_EVT_SWITCH_FAIL_MASTER
+0x2b BT_EVT_SWITCH_SUCCESS_MASTER
+0x2c BT_EVT_BUTTON_DOWN
+0x2d BT_EVT_BUTTON_UP
+0x2e BT_EVT_REMOTE_UNSNIFF
+0x30 BT_EVT_LE_PAIRING_FAIL
+0x31 BT_EVT_LE_PAIRING_SUCCESS
+0x32 BT_EVT_LE_START_ENC
+0X33 BT_EVT_LE_PAUSE_ENC
+0X34 BT_EVT_LE_TK_GENERATE
+0x35 BT_EVT_BT_GKEY_GENERATE
+0x36 BT_EVT_BT_GET_PASSKEY
+0x37 BT_EVT_BT_PAIRING_FAIL
+0x38 BT_EVT_BT_PAIRING_SUCCESS
+0x39 BT_EVT_24G_PAIRING_COMPLETE
+0x3a BT_EVT_24G_ATTEMPT_FAIL
+0x3b BT_EVT_LE_GKEY_GENERATE
+0x3c BT_EVT_24G_ATTEMPT_SUCCESS
+0x3d BT_EVT_STORE_NVRAM
+0x3e BT_EVT_LE_PAIRING_COMPLETE
+0x3F BT_EVT_LE_RECONNECT_COMPLETE
+0x40 BT_EVT_LE_PARSE_CONN_PAPA_UPDATE_RSP
+0x41 BT_EVT_LE_LTK_LOST
+0x42 BT_EVT_LE_UPDATE_PHY
+0x43 BT_EVT_LE_GET_PASSKEY
+0x44 BT_EVT_LE_PARSE_CONN_PARAM_ACCEPTED
+)
+//switch
+(
+0 OFF
+1 ON
+)
+/* memui_mem_lock */
+(
+    0 MEM_UNLOCK
+    1 MEM_LOCK
+)
+/* memui_flag0 */
+(
+    0 UI_USER_DATA_FLAG
+    1 UI_WII_WAITING_SLEEP
+    2 UI_KEYBOARD_SNIFF_SKIP
+)
+/* mem_master_type */
+(
+    0 MTYPE_HID_DEFAULT
+    1 MTYPE_HID_SSP
+    2 MTYPE_SPP
+)
+
+	(	
+	0x01 RECIEVE_SDP_CONN_RES
+	0x02 RECIEVE_SDP_CFG_REQ
+	0x03 RECIEVE_SDP_CFG_RES
+	0x04 RECIEVE_RFCOMM_CONN_RES
+	0x05 RECIEVE_RFCOMM_CFG_REQ
+	0x06 RECIEVE_RFCOMM_CFG_RES
+	0x07 RECIEVE_HID_CTRL_CONN_RES
+	0x08 RECIEVE_HID_CTRL_CFG_REQ
+	0x09 RECIEVE_HID_CTRL_CFG_RES
+	0x0A RECIEVE_HID_INT_CONN_RES
+	0x0B RECIEVE_HID_INT_CFG_REQ
+	0x0C RECIEVE_HID_INT_CFG_RES
+	0x0D RECIEVE_AVCTP_CONN_RES
+	0x0E RECIEVE_AVCTP_CFG_REQ
+	0x0F RECIEVE_AVCTP_CFG_RES
+	0x10 RECIEVE_AVDTP_SIGNAL_CONN_RES
+	0x11 RECIEVE_AVDTP_SIGNAL_CFG_REQ
+	0x12 RECIEVE_AVDTP_SIGNAL_CFG_RES
+	0x13 RECIEVE_AVDTP_MEDIA_CONN_RES
+	0x14 RECIEVE_AVDTP_MEDIA_CFG_REQ
+	0x15 RECIEVE_AVDTP_MEDIA_CFG_RES
+	0x16 RECIEVE_SS_REASULT_HS                  
+	0x17 RECIEVE_SS_REASULT_HF                  
+	0x18 RECIEVE_SS_REASULT_AVTARG		          
+	0x19 RECIEVE_SS_REASULT_OBEX		            
+	0x1A RECIEVE_DLCI0_UA
+	0x1B RECIEVE_HS_PARAM_NEG_RES
+	0x1C RECIEVE_HS_UA
+	0x1D RECIEVE_HS_MODEM_STATUS_RES
+	0x1E RECIEVE_HS_MODEm_STATUS_CMD
+	0x1F RECIEVE_HF_PARAM_NEG_RES   
+	0x20 RECIEVE_HF_UA              
+	0x21 RECIEVE_HF_MODEM_STATUS_RES
+	0x22 RECIEVE_HF_MODEm_STATUS_CMD 
+	0x23 RECIEVE_OBEX_PARAM_NEG_RES     
+	0x24 RECIEVE_OBEX_UA              
+	0x25 RECIEVE_OBEX_MODEM_STATUS_RES
+	0x26 RECIEVE_OBEX_MODEm_STATUS_CMD    
+	0x27 RECIEVE_SPP_PARAM_NEG_RES   
+	0x28 RECIEVE_SPP_UA              
+	0x29 RECIEVE_SPP_MODEM_STATUS_RES
+	0x2A RECIEVE_SPP_MODEm_STATUS_CMD
+	0x2b RECIEVE_SDP_DISCONN_RES
+	)
+
+
+
+	(
+	0 UPPERSM_RP_IDLE
+	1 UPPERSM_RP_SDP_CONN
+	2 UPPERSM_RP_SDP_CONN_WAIT
+	3 UPPERSM_RP_SDP_CFG
+	4 UPPERSM_RP_SDP_CFG_WAIT
+	5 UPPERSM_RP_SS_AVTARG
+	6 UPPERSM_RP_SS_AVTARG_WAIT
+	7 UPPERSM_RP_SS_OBEX
+	8 UPPERSM_RP_SS_OBEX_WAIT
+	9 UPPERSM_RP_SDP_DISCONN
+	10 UPPERSM_RP_SDP_DISCONN_WAIT
+	11 UPPERSM_RP_AVDTP_CONN_WAIT
+	12 UPPERSM_RP_AVCTP_CONN
+	13 UPPERSM_RP_AVCTP_CONN_WAIT
+	14 UPPERSM_RP_AVCTP_CFG
+	15 UPPERSM_RP_AVCTP_CFG_WAIT
+	16 UPPERSM_RP_OBEX_CMD_PN
+	17 UPPERSM_RP_OBEX_CMD_PN_WAIT
+	18 UPPERSM_RP_OBEX_SABM
+	19 UPPERSM_RP_OBEX_SABM_WAIT
+	20 UPPERSM_RP_OBEX_CMD_MS
+	21 UPPERSM_RP_OBEX_CMD_MS_WAIT
+	)
+	(		/*mem_upper_sm_reconn*/
+	0 UPPERSM_RECONN_IDLE		
+	1 UPPERSM_RECONN_SDP_CONN		
+	2 UPPERSM_RECONN_SDP_CONN_WAIT		
+	3 UPPERSM_RECONN_SDP_CFG		
+	4 UPPERSM_RECONN_SDP_CFG_WAIT		
+	5 UPPERSM_RECONN_SS_HS
+	6 UPPERSM_RECONN_SS_HS_WAIT
+	7 UPPERSM_RECONN_SS_HF
+	8 UPPERSM_RECONN_SS_HF_WAIT
+	9 UPPERSM_RECONN_SS_AVTARG		
+	10 UPPERSM_RECONN_SS_AVTARG_WAIT		    
+	11 UPPERSM_RECONN_SS_OBEX		            
+	12 UPPERSM_RECONN_SS_OBEX_WAIT		      
+	13 UPPERSM_RECONN_SDP_DISCONN		        
+	14 UPPERSM_RECONN_SDP_DISCONN_WAIT      
+	15 UPPERSM_RECONN_HID_CTRL_CONN		      
+	16 UPPERSM_RECONN_HID_CTRL_CONN_WAIT		
+	17 UPPERSM_RECONN_HID_CTRL_CFG		      
+	18 UPPERSM_RECONN_HID_CTRL_CFG_WAIT     
+	19 UPPERSM_RECONN_HID_INT_CONN		      
+	20 UPPERSM_RECONN_HID_INT_CONN_WAIT		  
+	21 UPPERSM_RECONN_HID_INT_CFG		        
+	22 UPPERSM_RECONN_HID_INT_CFG_WAIT      
+	23 UPPERSM_RECONN_RFCOMM_CONN		        
+	24 UPPERSM_RECONN_RFCOMM_CONN_WAIT		  
+	25 UPPERSM_RECONN_RFCOMM_CFG		        
+	26 UPPERSM_RECONN_RFCOMM_CFG_WAIT       
+	27 UPPERSM_RECONN_RFCOMM_SABM		        
+	28 UPPERSM_RECONN_RFCOMM_SABM_WAIT		  
+	29 UPPERSM_RECONN_SPP_CMD_PN		        
+	30 UPPERSM_RECONN_SPP_CMD_PN_WAIT		    
+	31 UPPERSM_RECONN_SPP_SABM		          
+	32 UPPERSM_RECONN_SPP_SABM_WAIT		      
+	33 UPPERSM_RECONN_SPP_CMD_MS		        
+	34 UPPERSM_RECONN_SPP_CMD_MS_WAIT       
+	35 UPPERSM_RECONN_HF_CMD_PN		          
+	36 UPPERSM_RECONN_HF_CMD_PN_WAIT		    
+	37 UPPERSM_RECONN_HF_SABM		            
+	38 UPPERSM_RECONN_HF_SABM_WAIT		      
+	39 UPPERSM_RECONN_HF_CMD_MS		          
+	40 UPPERSM_RECONN_HF_CMD_MS_WAIT        
+	41 UPPERSM_RECONN_AVDTPs_CONN		        
+	42 UPPERSM_RECONN_AVDTPs_CONN_WAIT		  
+	43 UPPERSM_RECONN_AVDTPs_CFG		        
+	44 UPPERSM_RECONN_AVDTPs_CFG_WAIT       
+	45 UPPERSM_RECONN_AVDTPm_CONN		        
+	46 UPPERSM_RECONN_AVDTPm_CONN_WAIT		  
+	47 UPPERSM_RECONN_AVDTPm_CFG		        
+	48 UPPERSM_RECONN_AVDTPm_CFG_WAIT       
+	49 UPPERSM_RECONN_AVCTP_CONN		        
+	50 UPPERSM_RECONN_AVCTP_CONN_WAIT		    
+	51 UPPERSM_RECONN_AVCTP_CFG		          
+	52 UPPERSM_RECONN_AVCTP_CFG_WAIT		    
+	53 UPPERSM_RECONN_OBEX_CMD_PN		        
+	54 UPPERSM_RECONN_OBEX_CMD_PN_WAIT		  
+	55 UPPERSM_RECONN_OBEX_SABM		          
+	56 UPPERSM_RECONN_OBEX_SABM_WAIT		    
+	57 UPPERSM_RECONN_OBEX_CMD_MS		        
+	58 UPPERSM_RECONN_OBEX_CMD_MS_WAIT     
+	59 UPPERSM_RECONN_SS_SPP
+	60 UPPERSM_RECONN_SS_SPP_WAIT
+	)
+	(/*mem_UI_profile_supported*/
+	0 support_HID
+	1 support_A2DP
+	2 support_AVRCP
+	3 support_HF
+	4 support_HS
+	5 support_PBAP
+	6 support_SPP
+	)
+	/*mem_upper_sm_ss*/
+	(
+	0 UPPERSM_SS_HS
+	1 UPPERSM_SS_HF
+	2 UPPERSM_SS_AVTARG
+	3 UPPERSM_SS_OBEX
+	)
+
+	(
+	160 UI_HUNDRED_MILLISECOND_TIME
+	0XFF UI_BUTTON_GPIO_DISABLE
+	)
+	(
+	0x01 UI_BB_INCONNECT
+	0x10 UI_BB_DISCONNECT
+	)
+(
+0x00 UI_BUTTON_STATE_DOWN
+0x01 UI_BUTTON_STATE_UP
+)
+
+//mem_ipc_skip_continue_proc
+(
+	0 IPC_CONTINUE_PROCESS
+	1 IPC_SKIP_CONTINUE_PROCESS
+)
+
+
+(//led style struct 
+0 		LED_OFFSET_LED_TYPE
+1 		LED_OFFSET_BLINK_COUNT
+2		LED_OFFSET_LED_GPIO
+3		LED_OFFSET_ON_TIME
+5		LED_OFFSET_OFF_TIME
+7 		LED_OFFSET_CB_LEDON
+9		LED_OFFSET_CB_LEDOFF
+11		LED_OFFSET_LENGTH
+)
+
+(//LED state
+0 UI_LED_STATE_BLINK_STOP
+1 UI_LED_STATE_BLINK_START
+2 UI_LED_STATE_LIGHTING
+3 UI_LED_STATE_DARKING
+4 UI_LED_STATE_BLINK_LIGHTING
+5 UI_LED_STATE_BLINK_DARKING
+
+0xFF LED_INFINITE_FLASH_NUM
+
+)
+
+
Index: format/usb.format
===================================================================
--- /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/format/usb.format	(nonexistent)
+++ /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/format/usb.format	(working copy)
@@ -0,0 +1,254 @@
+memalloc usb(
+1 mem_usb_status
+1 mem_usb_fifo_empty
+2 mem_usb_read_len
+65 mem_usb_txbuf
+10 mem_usb_txbuf1
+10 mem_usb_txbuf2
+64 mem_usb_rxbuf
+1 mem_usb_rxbuf_end
+2 mem_bufptr
+1 mem_remain
+2 mem_hidreportdesc_kb
+2 mem_hidreportdesc_m
+19 mem_devicedesc
+60 mem_confdesc
+5 mem_string0
+30 mem_string1
+30 mem_string2
+30 mem_string3
+2 mem_cb_usb_config
+
+1 mem_usb_tx_interval
+9 mem_usb_vid_pid
+2 mem_usb_zero_packet
+2 mem_usb_ones_packet
+2 mem_usb_two_packet
+1 mem_usb0_state
+1 mem_usb_offline_check_gpio
+
+0 mem_usb_clear_mem_start
+0 mem_usb_setup
+1 mem_usb_setup_bmRequestType
+1 mem_usb_setup_bRequest
+1 mem_usb_setup_bValue
+1 mem_usb_setup_bValueH
+2 mem_usb_setup_wIndex
+1 mem_usb_setup_bLength
+1 mem_usb_setup_bLengthH
+64 mem_usb0_set_report_data
+64 mem_usb0_get_report_data
+2 mem_usb_setup_bValue_temp
+1 mem_usb0_get_set_report
+1 mem_usb0_data_ready_report
+1 mem_usb_tx_win_enable
+1 mem_usb_tx_mac_enable
+1 mem_usb_idle_flag
+1 mem_usb_idle_rate
+1 mem_usb_get_protocol_flag
+1 mem_usb_set_protocol_status
+1 mem_usb_set_protocol_value
+1 mem_usb_state
+1 mem_usb_remote_wakeup
+1 mem_usb_clear_remote_wakeup
+1 mem_sdsystem_wakeup_flag
+1 mem_usb_ep0_stall_status
+1 mem_usb_ep1_stall_status
+1 mem_usb_ep2_stall_status
+1 mem_usb_ep3_stall_status
+2 mem_dsc_info_data_pointer
+1 mem_dsc_info_len
+1 mem_usb_ep1_data
+1 mem_usb_ep2_data
+1 mem_usb_tx_enable
+1 mem_usb_device_enumeration_endflag
+1 mem_usb_wakestate_onetime_flag
+1 mem_usb_mac_wakeup_trig
+1 mem_usb_set_high_addr_flag
+1 mem_usb_clear_halt
+16 mem_usb_mouse_data
+16 mem_usb_kb_data
+16 mem_usb_kb_multikey
+16 mem_usb_kb_system
+2 mem_usb_test_cnt
+10 mem_usb_test_kb
+0 mem_usb_clear_mem_end
+
+)
+
+//class type
+(
+0x00 STANDARD_REQ
+0x01 CLASS_REQ
+0x02 MANUFACTURER_REQ
+)
+//Standard Request Codes
+(
+0x00 GET_STATUS                // Code for Get Status
+0x01 CLEAR_FEATURE             // Code for Clear Feature
+0x03 SET_FEATURE              // Code for Set Feature
+0x05 SET_ADDRESS              // Code for Set Address
+0x06 GET_DESCRIPTOR           // Code for Get Descriptor
+0x07 SET_DESCRIPTOR           // Code for Set Descriptor(not used)
+0x08 GET_CONFIGURATION        // Code for Get Configuration
+0x09 SET_CONFIGURATION        // Code for Set Configuration
+0x0A GET_INTERFACE            // Code for Get Interface
+0x0B SET_INTERFACE            // Code for Set Interface
+0x0C SYNCH_FRAME              // Code for Synch Frame(not used)
+)
+//Standard Descriptor Types
+(
+0x01 DSC_DEVICE               // Device Descriptor
+0x02 DSC_CONFIG               // Configuration Descriptor
+0x03 DSC_STRING               // String Descriptor
+0x04 DSC_INTERFACE            // Interface Descriptor
+0x05 DSC_ENDPOINT             // Endpoint Descriptor
+)
+//HID Descriptor Types
+(
+0x21 DSC_HID			      // HID Class Descriptor
+0x22 DSC_HID_REPORT			  // HID Report Descriptor
+)
+//Define bmRequestType bitmaps
+(
+0x80 IN_DEVICE                // Request made to device,
+                              // direction is IN
+0x00 OUT_DEVICE               // Request made to device,
+                              // direction is OUT
+0x81 IN_INTERFACE             // Request made to interface,
+                              // direction is IN
+0x01 OUT_INTERFACE            // Request made to interface,
+                              // direction is OUT
+0x82 IN_ENDPOINT              // Request made to endpoint,
+                              // direction is IN
+0x02 OUT_ENDPOINT             // Request made to endpoint,
+)
+//HID Request Codes
+(
+0x01 GET_REPORT 		       // Code for Get Report
+0x02 GET_IDLE				   // Code for Get Idle
+0x03 GET_PROTOCOL			   // Code for Get Protocol
+0x09 SET_REPORT				   // Code for Set Report
+0x0A SET_IDLE				   // Code for Set Idle
+0x0B SET_PROTOCOL			   // Code for Set Protocol
+0xF2 HID_REPORT_ID           
+64 EP0_PACKET_SIZE         
+6 EP1_PACKET_SIZE         
+16 HID_REPORT_SIZE         
+0x001B HID_REPORT_DESCRIPTOR_SIZE    
+)
+//math cordic
+(
+0 TYPE_SIN		
+1 TYPE_ATAN	
+2 TYPE_MULT	
+3 TYPE_DIV		
+4 TYPE_ASIN	
+5 TYPE_SQRT	
+6 TYPE_COS		
+7 TYPE_TAN		 
+)
+   
+(
+0 DFIFO0_IN_EMPTY
+1 DFIFO1_IN_EMPTY
+2 DFIFO2_IN_EMPTY
+3 DFIFO3_IN_EMPTY
+4 DFIFO0_OUT_EMPTY
+5 DFIFO1_OUT_EMPTY
+6 DFIFO2_OUT_EMPTY
+7 DFIFO3_OUT_EMPTY
+)
+
+(
+)
+
+(
+0 USB_STATUS_SETUP
+1 USB_STATUS_SUSPEND
+2 USB_STATUS_NAK
+3 USB_STATUS_RESET
+4 USB_STATUS_ACK
+5 USB_STATUS_RXREADY
+6 USB_STATUS_TXEMPTY
+6 USB_STATUS_RXEMPTY
+)
+
+(
+1 USB_GOT_REPORT_REQ
+2 USB_CONNECTED
+3 USB_SLEEP
+4 USB_RESUME
+5 USB_SETIDLE_1
+)
+
+(
+0x10 USB_EP1_KB
+0x20 USB_EP2_MS
+0x21 USB_EP2_MULTIKEY
+0x22 USB_EP2_SYSTEMKEY
+0x01 MAC_BOOT_MODE
+0x02 R_KEY
+0x03 LR_KEY
+)
+
+
+(
+0x01ba PC_GET_REPORT
+0x02ba PC_SET_REPORT
+0x0200 PC_SET_REPORT_bValue
+0x0000 PC_SET_REPORT_wIndex
+0x0001 PC_SET_REPORT_bLength
+0xba PC_REPORT_ID
+
+0x01 PC_GET_DATA
+0x00 PC_GET_NONDATA
+)
+
+(
+//--------------------------------------------------
+// Define device states
+0x00 DEV_ATTACHED	// Device is in Attached State
+0x01 DEV_POWERED	// Device is in Powered State
+0x02 DEV_DEFAULT		// Device is in Default State
+0x03 DEV_ADDRESS	// Device is in Addressed State
+0x04 DEV_CONFIGURED	// Device is in Configured State
+0x05 DEV_SUSPENDED	// Device is in Suspended State
+)
+
+(
+// Define wIndex bitmaps
+0x81 IN_EP1                    // Index values used by Set and Clear
+0x01 OUT_EP1                   // commands for Endpoint_Halt
+0x82 IN_EP2              
+0x02 OUT_EP2             
+0x83 IN_EP3              
+0x03 OUT_EP3             
+)
+
+(
+0 EP0_STALL
+1 EP1_IN_STALL
+2 EP1_OUT_STALL
+3 EP2_IN_STALL
+4 EP2_OUT_STALL
+5 EP3_IN_STALL
+6 EP3_OUT_STALL
+)
+
+(
+// Define wValue bitmaps for Standard Feature Selectors
+0x00 ENDPOINT_HALT             // Endpoint_Halt feature selector
+0x01 DEVICE_REMOTE_WAKEUP      // Remote wakeup feature(not used)
+0x00 BOOT_PROTOCOL
+0x01 REPORT_PROTOCOL
+0x01 USB_MAX_NUM_CFG
+)
+
+(
+0 TIMER_NAK
+640 TIMER_NAK_DELAY
+15 TIMER_WAKEUP
+5000 TIMER_WAKEUP_DELAY
+)
+
Index: format/utility.format
===================================================================
--- /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/format/utility.format	(nonexistent)
+++ /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/format/utility.format	(working copy)
@@ -0,0 +1,191 @@
+
+memalloc(
+
+/*
+    temp parameter
+*/
+2 mem_hold_contr
+2 mem_hold_contw
+1 mem_fifo_temp
+
+8 mem_pdatatemp
+8 mem_temp //8 bytes
+4 mem_timeup // 4 bytes
+4 mem_rega //4 bytes
+4 mem_regb //4 bytes
+3 mem_regc //3 bytes
+2 mem_contr //2 bytes
+2 mem_contw //2 bytes
+2 mem_contus
+2 mem_contue
+2 mem_contu
+2 mem_queue
+2 mem_loopcnt
+
+
+1 mem_wakup_from_power_flag
+4 mem_saved_gpio_in
+
+0 mem_module_rx_error_data_buffer
+0 mem_shutter_random_mac_data_temp
+0 mem_shutter_config_data_temp
+0 mem_le_adv_channel_map_temp
+0 mem_le_data_len_temp	//1byte
+0 mem_tx_fifo_map_temp
+0 mem_rpn_dlci		//1byte
+0 mem_event_cmd_response_content	//2byte
+0 mem_le_prand		//16byte
+0 mem_AES_CMAC_k	 //16 bytes
+0 mem_regext_index 	//1 bytes
+1 mem_temp_block0
+0 mem_le_data_temp	//15bytes
+15 mem_temp_block1
+0 mem_le_aes_128	//16byte
+0 mem_regext   //64 bytes
+0 mem_AES_CMAC_k1  //16 bytes
+16 mem_temp_block2
+0 mem_AES_CMAC_k2  //16 bytes
+16 mem_temp_block3
+0 mem_AES_CMAC_temp  // 16 bytes
+16 mem_temp_block4
+0 mem_AES_CMAC_M_last // 16 bytes
+1 mem_module_uart_cmd
+1 mem_module_uart_opcode
+1 mem_module_uart_len
+1 mem_module_temp_nl_discard_packet
+12 mem_temp_block5
+0 mem_le_mackey //16 bytes
+0 mem_app_receive_temp
+2 mem_key_value_temp
+2 mem_key_value
+1 mem_key_value_temp1
+1 mem_key_value_temp2
+1 mem_key_value_temp3
+1 mem_key_value_temp4
+1 mem_key_value_temp5
+1 mem_key_value_temp6
+6 mem_temp_block6
+
+3 mem_scale_ratio
+3 mem_xcnt
+2 mem_scale_ratio_temp
+)
+
+
+(
+/*mem_util_timer_flag0_7*/
+    0   UTIL_TIMER_0_USED
+    1   UTIL_TIMER_1_USED
+    2   UTIL_TIMER_2_USED
+    3   UTIL_TIMER_3_USED
+    4   UTIL_TIMER_4_USED
+    5   UTIL_TIMER_5_USED
+    6   UTIL_TIMER_6_USED
+    7   UTIL_TIMER_7_USED
+/*mem_util_timer_flag8_15*/
+    0   UTIL_TIMER_8_USED
+    1   UTIL_TIMER_9_USED
+    2   UTIL_TIMER_10_USED
+    3   UTIL_TIMER_11_USED
+    4   UTIL_TIMER_12_USED
+    5   UTIL_TIMER_13_USED
+    6   UTIL_TIMER_14_USED
+    7   UTIL_TIMER_15_USED
+)
+
+/* 24g */
+(
+6 dlen_24g
+14 plen_24g
+90 blen_tx_24g
+106 blen_rx_24g
+42 blen_txack_24g
+58 blen_rxack_24g
+0xaaf08e acc_24g
+0x15c4 crc_data_3byte
+0xbb81 crc_data_6byte
+0x4160 crc_ack
+)
+
+//util fifo param
+(
+
+8 UTIL_FIFO_LEN
+-1 UTIL_FIFO_OFFSET
+)
+
+
+(
+	0xAA DEBUGLOG_HEAD
+	0x00 DEBUGLOG_TYPE
+	0x04 DEBUGLOG_LEN
+	0xBB DEBUGLOG_TAIL
+)
+
+(
+	0x1000 DEBUGLOG_DTYPE_CALLBACK
+	0x1001 DEBUGLOG_DTYPE_EVENT
+	0x1002 DEBUGLOG_DTYPE_CMD
+	0x1003 DEBUGLOG_DTYPE_STATUS
+	0x1004 DEBUGLOG_DTYPE_MISC
+	0x1005 DEBUGLOG_DTYPE_PARSE_LMP
+	0x1006 DEBUGLOG_DTYPE_SEND_LMP
+	0x1007 DEBUGLOG_DTYPE_CONN_SM
+	0x1008 DEBUGLOG_DTYPE_UPPER_SM
+)
+
+//DEBUGLOG_DTYPE_CALLBACK
+(
+	0x0000 CALLBACK_24G_DATA
+	0x0001 CALLBACK_LE_PROCESS
+	0x0002 CALLBACK_BT_PROCESS
+	0x0003 CALLBACK_BEFORE_LPM
+	0x0004 CALLBACK_BB_EVENT_PROCESS
+	0x0005 CALLBACK_IDLE_PROCESS
+	0x0006 CALLBACK_BEFORE_HIBERNATE
+	0x0007 CALLBACK_ATT_WRITE
+	0x0008 CALLBACK_EVENT_TIMER
+	0x0009 CALLBACK_SLAVE_LOOP
+	0x000a CALLBACK_SDP_PROCESS
+)
+
+//DEBUGLOG_DTYPE_EVENT
+//(
+
+//)
+
+//DEBUGLOG_DTYPE_CMD
+//(
+
+//)
+
+//DEBUGLOG_DTYPE_STATUS
+(
+	0x0000 STATUS_CODE_WAKE
+	0x0001 STATUS_LPM_WAKE
+	0x0002 STATUS_INQUIRY_SCAN
+	0x0003 STATUS_SEND_EIR
+	0x0004 STATUS_PAGE_SCAN
+	0x0005 STATUS_PAGE_SCAN_RECV_ID_PACK
+	0x0006 STATUS_PAGE_SCAN_WAIT_FHS
+	0x0007 STATUS_PAGE_SCAN_CONNECTED
+	0x0008 STATUS_START_DISCOVER
+	0x0009 STATUS_STOP_DISCOVER
+)
+//DEBUG_DTYPE_MISC
+(
+	0x0000 MISC_LE_RETRANSMIT
+	0x0001 MISC_LOST_MOUSEDATA
+	0x0002 MISC_TXPOWER_0
+	0x0003 MISC_TXPOWER_1
+	0x0004 MISC_TXPOWER_2
+	0x0005 MISC_BT_RETRANSMIT
+	0x0006 MISC_BT_UPPER_SM_ERR
+	0x0007 MISC_BT_CONN_SM_ERR
+)
+
+//mem_creat_mouse_flag
+(
+	0x55 CREAT_MOUSE_DATA_OK
+	0x00 CREAT_MOUSE_DATA_FAIL
+
Index: format/var.format
===================================================================
--- /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/format/var.format	(nonexistent)
+++ /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/format/var.format	(working copy)
@@ -0,0 +1,442 @@
+/************************************************************************/
+/* RCS HEADER -- DO NOT ERASE                                           */
+/* $Author: Administrator $                                                     */
+/* $Id: bt_var.osi,v 1.1 2009-09-28 04:06:18 Administrator Exp $   */
+/* Orisil Technology                                                 */
+/************************************************************************/
+
+
+/* packet types */
+(
+  0x02 FHS_PACKET 
+  0x03 DM1_PACKET 
+  0x03 DM1_LMP_PACKET 
+  0x04 DH1_PACKET 
+  0x05 HV1_PACKET 
+  0x06 HV2_PACKET 
+  0x07 HV3_PACKET 
+  0x08 DV_PACKET 
+  0x09 AUX1_PACKET 
+  0x0a DM3_PACKET 
+  0x0b DH3_PACKET 
+  0x0e DM5_PACKET 
+  0x0f DH5_PACKET 
+)
+
+
+/* mem_lmp_respond */
+(
+  0 RESPOND_TO_ALL
+  1 PASS_EVERYTHING
+  2 PASS_ONLY_UNKNOWNS
+  3 RESPOND_TO_LMPS
+)
+/* SCO algorithm defines */
+(
+  0 ULAW
+  1 ALAW
+  2 CVSD
+)
+/* encryption modes */
+(
+  0 NO_ENCRYPTION
+  1 PT_PT_ENCRYPTION
+  2 PT_BROADCAST_ENCRYPTION
+)
+
+/* bits used in mem_lmp_state1 variable */
+(
+  0 LMP_STATE_DETACH
+  1 LMP_STATE_HOLD
+  2 LMP_STATE_SNIFF
+  3 LMP_STATE_PARK
+  4 LMP_STATE_WAIT_SCO_CREATE
+  5 LMP_STATE_WAIT_SCO_KILL
+  6 LMP_STATE_SCO3
+  7 LMP_STATE_WAIT_SCO_START
+)
+/* mem_lmp_state2 */
+(
+  0 LMP_WAIT_FOR_SNIFF_ACCEPT
+  1 LMP_WAIT_FOR_PARK_ACCEPT
+  2 LMP_SEND_UNPARK_ACCEPTED
+  3 LMP_SEND_ENCRYPTION_START
+  4 LMP_SEND_ENCRYPTION_STOP
+  5 MESSAGE_QUEUE
+  7 LMP_STATE_WAIT_BEACON
+)
+/* mem_lmp_state3 */
+(
+ 0 INQUIRY_STATE_CHECK
+ 1 HOST_DELAY_MESSAGE
+ 2 VARIABLE_DELAY
+ 3 TEST_MODE_START_LOOPBACK
+ 4 TEST_MODE_START_PATTERN
+ 5 PARSE_TEST_CONTROL_MESSAGE
+ 6 H_AUTH_SEND_COMB_KEY
+)
+/* mem_rx_status */
+(
+  0 FROM_MASTER
+)
+/* mem_ms_flag */
+(
+  0 MS_RECEIVE_SWITCH_REQ
+  1 MS_SEND_SETUP_COMPLATE
+)
+/* mem_conn_sm */
+(
+  0 CONN_SM_STANDBY
+  1 CONN_SM_WAIT_PAGE
+  2 CONN_SM_SEND_FEATURES
+  3 CONN_SM_WAIT_FEATURES_RES
+  4 CONN_SM_SEND_CONN_REQ
+  5 CONN_SM_WAIT_CONN_ACCEPT
+  6 CONN_SM_AUTH_PAIR
+  7 CONN_SM_AUTH_PAIR_WAIT
+  8 CONN_SM_WAIT_MUTAL_AUTH
+  9 CONN_SM_ENCRYPT
+  0xa CONN_SM_ENCRYPT_WAIT
+  0xb CONN_SM_ENCRYPT_WAIT_CLEAR
+  0xc CONN_SM_SEND_SETUP_COMPLETE
+  0xd CONN_SM_WAIT_SETUP_COMPLETE 
+  0xe CONN_SM_SEND_SWITCH
+  0xf CONN_SM_DETACH_DELAY
+  0x10 CONN_SM_WAIT_SWITCH_AFTER_HOST_CONNECTION
+  0x11 CONN_SM_DELAY_RESTART_CONNECTION
+  0x12 CONN_SM_SEND_VERSION
+  0X13 CONN_SM_WAIT_VERSION
+  0x14 CONN_SM_SEND_FEATURES_EXT
+  0x15 CONN_SM_WAIT_FEATURES_EXT
+  0x16 CONN_SM_PAIRING
+  0x17 CONN_SM_AUTH
+  0x18 CONN_SM_PAIRING_WAIT
+  0x19 CONN_SM_AUTH_WAIT
+  0x1a CONN_SM_DONE
+  0x1b CONN_SM_WAIT_DONE
+)
+
+/* btStateConn1 */
+(
+  0 CONN_STANDBY
+  1 CONN_MASTER_SEND_CONN_REQ
+  2 CONN_MASTER_WAIT_FOR_CONN_ACCEPTED
+  3 CONN_MASTER_AUTH
+  4 CONN_MASTER_WAIT_FOR_FEATURES
+  5 CONN_MASTER_WAIT_FOR_SETUP_COMPLETE
+  6 CONN_MASTER_WAIT_FOR_MAX_SLOT
+  7 CONN_SLAVE_CONN_REQUESTED
+  8 CONN_SLAVE_WAIT_FOR_SETUP_COMPLETE
+  9 CONN_SLAVE_AUTH
+  10 CONN_USING_HOST_OPCODE
+  11 CONN_SLAVE_AUTH_WAIT
+  12 CONN_SLAVE_ENCRYPT_WAIT
+)
+
+/* mem_lmp_conn_state */
+(
+  0 RECEIVED_CONN_REQ
+  1 SENT_CONN_REQ
+  2 RECEIVED_SETUP_COMPLETE
+  3 SENT_SETUP_COMPLETE
+  4 HOST_CONNECTION_MADE
+  6 INIT_COMPLETE
+  7 SNIFF_NEGOTIATE
+)
+/* btStateAuth1 */
+(
+  0 WAIT_FOR_KINIT
+  1 WAIT_FOR_LKA
+  2 WAIT_FOR_LKB
+  3 WAIT_FOR_SRES
+  4 EXAMINE_RECEIVED_SRES
+  5 SEND_AU_RAND
+  6 WAIT_FOR_KC
+  7 DELAYED_ENCRYPT_RESPONSE
+)
+/* btStateAuth2 */
+(
+  0 SENT_SRES
+  1 RECEIVED_IN_RAND
+  2 SENT_AU_RAND
+  3 AUTHENTICATION_FAILED
+  4 AUTHENTICATION_PASSED
+  5 STARTED_AUTH
+  6 SENT_COMB_KEY
+  7 SENT_IN_RAND
+)
+/* btStateAuth3 */
+(
+  0 RECEIVED_AU_RAND
+  1 RECEIVED_SRES
+  2 MUTUALLY_AUTHENTICATE
+)
+/* btStateHost */
+(
+  0 H_AUTH_STARTED
+  2 H_ENCRYPTION_MODE_REQ_PT
+  3 H_ENCRYPTION_KEY_SIZE
+  4 H_ENCRYPTION_START
+  5 H_ENCRYPTION_STOP
+  6 H_AUTH_SECOND_TRY
+)
+/* btStateEncrypt2 */
+(
+  0 RECEIVED_ENCRYPT_MODE_REQ_PT
+  1 RECEIVED_ENCRYPT_KEY_SIZE
+  2 RECEIVED_ENCRYPT_START
+  3 RECEIVED_ENCRYPT_STOP
+  4 STARTED_ENCRYPT_START
+)
+/* mem_ms_state */
+(
+  0x00 MS_STANDBY
+  0x11 M_MINIT_1
+  0x12 M_MINIT_2
+  0x20 M_SINIT_0
+  0x30 S_MINIT_0
+  0x31 S_MINIT_1
+  0x32 S_MINIT_2
+  0x41 S_SINIT_1
+  0x42 S_SINIT_2
+  0x43 S_SINIT_3
+)
+/* mem_test_mode */
+(
+  0 TEST_MODE_ALLOWED
+  1 TEST_MODE_ACTIVE
+)
+/* values for mem_tester_emulate */
+(
+  0x00 NO_TEST_MODE
+  0x00 CONTINUOUS_TRANSMIT
+  0x10 TRANSMIT_TEST
+  0x08 LOOPBACK
+)
+
+/* mem_tx_misc */
+(
+  1 SEND_TX_ADDR
+)
+/* BBHWREG_page_stat */
+(
+  5 PAGE_MODE_END
+)
+/* host_return_parameters_status codes */
+(
+  0x00 HOST_RETURN_SUCCESS
+  0x01 HOST_RETURN_SLAVE_CANT_ISSUE
+  0x02 HOST_RETURN_NO_CONNECTION
+  0x04 HOST_RETURN_PAGE_TIMEOUT
+  0x05 HOST_RETURN_INQUIRY_TIMEOUT
+  0x08 HOST_RETURN_CONNECTION_TIMEOUT
+  0x09 HOST_RETURN_MAX_NUM_CONNECTIONS
+  0x0a HOST_RETURN_MAX_NUM_SCO
+  0x0b HOST_RETURN_MAX_NUM_ACL
+  0x0c HOST_RETURN_SECURITY_REASONS
+  0x10 HOST_RETURN_HOST_TIMEOUT
+  0x11 HOST_RETURN_UNSUPPORTED_FEATURE_PARAMETER
+  0x13 HOST_RETURN_OTHER_END_USER
+  0x14 HOST_RETURN_OTHER_END_LOW_RESOURCE
+  0x15 HOST_RETURN_OTHER_END_POWER_OFF
+  0x16 HOST_RETURN_LOCAL_HOST
+  0x18 HOST_RETURN_PAIRING_NOT_ALLOWED
+  0x19 HOST_RETURN_UNKNOWN_PDU
+  0x1a HOST_RETURN_UNSUPPORTED_REMOTE_FEATURE
+  0x1d HOST_RETURN_SCO_AIR_MODE_REJECTED
+  0x20 HOST_RETURN_UNSUPPORTED_LMP_VALUE
+  0x21 HOST_RETURN_AUTHENTICATION_FAILURE
+  0x22 HOST_RETURN_CHANGED_EXISTING_SCO
+  0x23 HOST_RETURN_HOST_REJECTED
+  0x24 HOST_RETURN_UNSPECIFIED_ERROR
+  0x25 HOST_RESET
+  0x26 HOST_RETURN_BAD_HANDLE
+
+  0x00 HOST_RETURN_ACCEPT_COMMAND
+  0x01 HOST_RETURN_REJECT_COMMAND
+)
+/* host_present */
+(
+  0 HOST_IS_PRESENT
+  1 BCI_IS_PRESENT
+  2 DONT_INIT_RADIO
+)
+/* mem_master_state */
+(
+  0 MASTER_STATE_STANDBY
+  1 MASTER_INQUIRY
+)
+/* misc */
+(
+  92 SECOND_SWITCH_REQ
+  93 SLAVE_DELAY_DETACH
+  94 MASTER_DELAY_DETACH
+  95 UNSNIFF_DELAY_DETACH
+  0 WE_STARTED_AS_MASTER
+  1 WE_STARTED_AS_SLAVE
+)
+/* mem_host_commands */
+(
+  0x01 HOST_INQUIRY
+  0x02 HOST_INQUIRY_CANCEL
+  0x03 HOST_CREATE_CONNECTION
+  0x04 HOST_DISCONNECT_CONNECTION
+  0x05 HOST_ADD_SCO_REQUEST
+  0x06 HOST_REMOTE_NAME_REQUEST
+  0x07 HOST_WRITE_SUPPORTED_FEATURES
+  0x08 HOST_SET_TX_LEVEL
+  0x09 HOST_SET_RX_LEVEL
+  0x0a HOST_SNIFF_REQUEST
+  0x0b HOST_UNSNIFF_REQUEST
+  0x0c HOST_WRITE_LINK_SUPERVISION_TIMEOUT
+  0x0e HOST_WRITE_SCAN_ENABLE
+  0x0f HOST_READ_AUDIO_QUALITY
+  0x10 HOST_ENABLE_DEVICE_UNDER_TEST
+  0x14 HOST_BUTTON_CONFIGURE
+  0x15 HOST_SET_LOW_BATTERY_LEVEL
+  0x16 HOST_WRITE_LOCAL_NAME
+  0x17 HOST_WRITE_LOCAL_PIN
+  0x18 HOST_KILL_SCO_REQUEST
+  0x19 HOST_QOS_REQ
+
+  0x1a HOST_FEATURES_REQUEST
+  0x1b HOST_VERSION_REQUEST
+  0x1c HOST_TIMING_REQUEST
+  0x1d HOST_CLK_OFFSET_REQUEST
+  0x1e HOST_AUTHENTICATE
+  0x1f HOST_START_ENCRYPTION
+  0x20 HOST_STOP_ENCRYPTION
+  0x21 HOST_HOLD_REQUEST
+  0x22 HOST_HOLD_FORCE
+  0x23 HOST_PARK_REQUEST
+  0x24 HOST_MOD_BEACON
+  0x25 HOST_SET_BROADCAST_SCAN_WINDOW
+  0x26 HOST_UNPARK_PM_REQUEST
+  0x27 HOST_UNPARK_BD_REQUEST
+  0x28 HOST_SLAVE_REQUEST_UNPARK
+  0x29 HOST_DECREASE_POWER_REQUEST
+  0x2a HOST_INCREASE_POWER_REQUEST
+  0x2b HOST_SEND_PREFERRED_RATE
+  0x2c HOST_MAX_SLOT_REQ
+  0x2d HOST_MAX_SLOT_FORCE
+  0x2e HOST_PAGE_MODE_REQUEST
+  0x2f HOST_PAGE_SCAN_MODE_REQUEST
+  0x30 HOST_MASTER_SLAVE_SWITCH
+  0x31 HOST_SEND_AUTO_RATE
+  0x32 HOST_PAGE_CANCEL
+  0x33 HOST_CHANGE_LINK_KEY
+  0x34 HOST_RADIO_READ
+  0x35 HOST_RADIO_WRITE
+  0x36 HOST_REMOTE_SLAVE_INIT_UNPARK_REQUESTED
+
+  0x40 HOST_REMOTE_CONNECTION_REQUESTED
+  0x41 HOST_REMOTE_DETACH
+  0x42 HOST_REMOTE_SCO_CREATE_REQUESTED
+  0x43 HOST_REMOTE_SCO_KILL_REQUESTED
+  0x44 HOST_REMOTE_PARK_REQUESTED
+  0x45 HOST_REMOTE_UNPARK_REQUESTED
+  0x46 HOST_REMOTE_SNIFF_REQUESTED
+  0x47 HOST_REMOTE_UNSNIFF_REQUESTED
+  0x48 HOST_REMOTE_HOLD_REQUESTED
+  0x49 HOST_REMOTE_AUTHENTICATION
+  0x4a HOST_REMOTE_START_ENCRYPTION_REQUESTED
+  0x4b HOST_REMOTE_STOP_ENCRYPTION_REQUESTED
+  0x4c HOST_MODE_CHANGE_EVENT
+  0x4d HOST_REMOTE_TEST_ACTIVATE
+  0x4e HOST_REMOTE_TEST_CONTROL
+  0x4f HOST_REMOTE_TIMING_REQUEST
+)
+/* BCI interface (not used if not compiled in ) */
+(
+  0x01 BCI_INQUIRY
+  0x02 BCI_INQUIRY_CANCEL
+  0x03 BCI_CREATE_CONNECTION
+  0x04 BCI_DISCONNECT
+  0x05 BCI_ADD_SCO_CONNECTION
+  0x06 BCI_REMOTE_NAME_REQUEST
+  0x07 BCI_WRITE_SUPPORTED_FEATURES
+  0x08 BCI_SET_TX_POWER_LEVEL
+  0x09 BCI_SET_RX_POWER_LEVEL
+  0x0a BCI_SNIFF_MODE
+  0x0b BCI_EXIT_SNIFF_MODE
+  0x0c BCI_WRITE_LINK_SUPERVISION_TIMEOUT
+  0x0d BCI_WRITE_PAGE_TIMEOUT
+  0x0e BCI_WRITE_SCAN_ENABLE
+  0x0f BCI_GET_AUDIO_QUALITY
+  0x10 BCI_ENABLE_DEVICE_UNDER_TEST
+  0x11 BCI_SEND_DATA
+  0x12 BCI_REGISTER_SERVICE_RECORD
+  0x13 BCI_SERVICE_SEARCH_ATTRIB_REQ
+  0x14 BCI_BUTTON_CONFIGURE
+  0x15 BCI_SET_LOW_BATTERY_LEVEL
+  0x16 BCI_WRITE_LOCAL_NAME
+  0x17 BCI_WRITE_LOCAL_PIN
+  0x18 BCI_REMOVE_SCO_CONNECTION
+  0x19 BCI_QUALITY_OF_SERVICE
+  0x40 BCI_REMOTE_CONNECTION_REQUEST
+  0x41 BCI_REMOTE_DETACH
+  0x42 BCI_REMOTE_ADD_SCO_REQUEST
+  0x43 BCI_REMOTE_REMOVE_SCO_REQUEST
+  0x44 BCI_REMOTE_PARK_REQUEST
+  0x45 BCI_REMOTE_UNPARK_REQUEST
+  0x46 BCI_REMOTE_SNIFF_REQUEST
+  0x47 BCI_REMOTE_UNSNIFF_REQUEST
+  0x48 BCI_REMOTE_HOLD_REQUEST
+  0x49 BCI_REMOTE_AUTHENTICATION_PAIRING_REQUEST
+  0x4a BCI_REMOTE_START_ENCRYPTION_REQUEST
+  0x4b BCI_REMOTE_STOP_ENCRYPTION_REQUEST
+  0x4c BCI_MODE_CHANGE_EVENT
+)
+/* mode changes */
+(
+  0 MODE_CHANGE_ACTIVE
+  1 MODE_CHANGE_SNIFFING
+  2 MODE_CHANGE_PARKED
+  3 MODE_CHANGE_HOLDING
+  4 MODE_CHANGE_SCO_ADDED
+  5 MODE_CHANGE_SCO_REMOVED
+  6 MODE_CHANGE_ACL_CONNECTION
+  7 MODE_CHANGE_DISCONNECT
+  8 MODE_CHANGE_SCO_CHANGED
+  9 MODE_CHANGE_ENCRYPTING
+  10 MODE_CHANGE_NOT_ENCRYPTING
+  11 MODE_CHANGE_BUTTON_UP
+  12 MODE_CHANGE_BUTTON_DOWN
+  13 MODE_CHANGE_BATTERY_LOW
+  14 MODE_CHANGE_RESET
+  15 MODE_CHANGE_INQUIRY_CANCELED_RMTCMD
+  16 MODE_ACTIVE_MSSWITCH_PASSED
+  17 MODE_ACTIVE_MSSWITCH_FAILED
+)
+/* mem_battery - low nibble is level information, upper nibble is status info */
+(
+  6 BATTERY_CHECK_LEVEL
+  7 BATTERY_SENT_STATUS
+)
+/* mem_radio_version */
+(
+  0x02 RADIO_2001
+  0x12 RADIO_2002
+  0x32 RADIO_2002_DDM
+  0x42 RADIO_1008A1
+  0x52 RADIO_1018A0
+)
+/* mem_slave_initiated_conn */
+(
+  0 SLAVE_INIT_AUTHENTICATION
+  1 SLAVE_INIT_ENCRYPTION
+  2 SLAVE_INIT_MASTER_SLAVE_SWITCH
+)
+/* connection_options */
+(
+  0 CONNECTION_AUTH
+  1 CONNECTION_ENCRYPT
+  2 CONNECTION_SWITCH
+  3 CONNECTION_ACL
+  4 CONNECTION_FEATURE_EXT
+)
+/* mem_debug_config */
+(
+  7 AA_INSERTION
+)
+
Index: output/bin2array.pl
===================================================================
--- /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/output/bin2array.pl	(nonexistent)
+++ /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/output/bin2array.pl	(working copy)
@@ -0,0 +1,42 @@
+printf "/*******************************************************************************\n";
+printf "*-------------------------------------------------------------------------------\n";
+printf "*\n";
+printf "* Copyright (c), 2014 Yichip Corp.\n";
+printf "*\n";
+printf "*ALL RIGHTS RESERVED\n";
+printf "*                                                                               \n";
+printf "********************************************************************************\n";
+printf "*                                                                               \n";
+printf "* File Name: YC_bt_patch.h                                                      \n";
+printf "*                                                                               \n";
+printf "* Abstract:                                                                     \n";
+printf "*This file use for save the patch code of YC1021.                               \n";
+printf "*******************************************************************************/\n";
+printf "                                                                                \n";
+printf "#ifndef __YC_BT_PATCH_H_                                                        \n";
+printf "#define __YC_BT_PATCH_H_                                                        \n";
+printf "                                                                                \n";
+open(BINFILE,"bt_patch.bin") or die $!;
+binmode (BINFILE);
+printf "const unsigned char yc_patch[] = \n{\n";
+while( read(BINFILE, $binData, 1) )
+{
+
+	if(ord($binData) < 0x10){
+		printf "0x0";
+	}else{
+		printf "0x";
+	}
+	printf "%X, ", ord($binData);
+	$cnt += 1;
+	if($cnt > 15){
+		$cnt = 0;
+		printf "\n";
+	}
+}
+printf "\n};\n";
+close (BINFILE);
+
+
+printf "                                                                                \n";
+printf "#endif\n";
\ No newline at end of file
Index: output/eeprom.dat
===================================================================
--- /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/output/eeprom.dat	(nonexistent)
+++ /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/output/eeprom.dat	(working copy)
@@ -0,0 +1,8192 @@
+00
+02
+aa
+55
+36
+1b
+c2
+84
+00
+1b
+c0
+01
+80
+26
+c0
+2c
+81
+04
+c0
+34
+8e
+f1
+c0
+3b
+80
+f6
+c0
+41
+81
+38
+c0
+43
+01
+ec
+c0
+43
+81
+70
+c0
+44
+01
+86
+c0
+45
+81
+a6
+c0
+46
+01
+ab
+c0
+47
+01
+0c
+c0
+48
+81
+21
+c0
+54
+00
+7a
+c0
+56
+00
+6e
+c0
+56
+80
+82
+c0
+5b
+80
+f1
+c0
+68
+84
+78
+c0
+69
+04
+5f
+c0
+6a
+04
+cd
+c0
+6b
+05
+11
+c0
+6b
+84
+ab
+c0
+6c
+05
+f3
+c0
+6d
+04
+94
+c0
+6e
+82
+73
+c0
+71
+05
+20
+20
+20
+13
+21
+c0
+43
+00
+47
+c0
+59
+81
+9f
+c0
+60
+00
+bf
+c0
+70
+85
+4b
+c0
+71
+05
+a8
+c0
+73
+05
+c2
+c0
+75
+06
+63
+c0
+75
+86
+53
+c0
+76
+00
+3f
+c0
+76
+86
+9e
+20
+20
+13
+21
+20
+40
+70
+99
+20
+40
+75
+c4
+20
+40
+6e
+d4
+20
+40
+00
+33
+20
+40
+08
+38
+20
+40
+00
+46
+20
+40
+00
+35
+20
+40
+00
+37
+20
+40
+00
+39
+20
+40
+00
+3b
+20
+40
+00
+3d
+20
+40
+14
+48
+20
+20
+08
+12
+c6
+1a
+80
+00
+20
+20
+23
+9d
+c6
+1a
+80
+00
+20
+20
+08
+8f
+c6
+1a
+80
+00
+20
+20
+0b
+05
+c6
+1a
+80
+00
+20
+20
+0b
+77
+c6
+1a
+80
+00
+20
+20
+08
+21
+c6
+1a
+80
+00
+20
+20
+2a
+a1
+78
+34
+7c
+00
+20
+40
+13
+d1
+6f
+e1
+c1
+77
+20
+3a
+7e
+64
+6f
+e0
+c0
+99
+20
+3a
+7e
+64
+20
+20
+2f
+41
+20
+20
+2f
+c2
+da
+20
+00
+00
+68
+4a
+47
+83
+1c
+42
+24
+00
+1a
+42
+7e
+00
+98
+46
+7c
+00
+24
+41
+78
+79
+1a
+42
+7e
+00
+18
+40
+84
+a0
+18
+40
+84
+a0
+98
+46
+7c
+00
+24
+21
+00
+5a
+1a
+20
+a2
+01
+1a
+21
+7e
+0f
+24
+3a
+00
+4d
+da
+20
+00
+00
+20
+40
+00
+60
+1c
+42
+7e
+00
+67
+e2
+47
+83
+20
+60
+00
+00
+1a
+22
+7e
+00
+20
+7a
+00
+00
+18
+40
+85
+60
+18
+40
+85
+60
+79
+3f
+84
+1c
+60
+4a
+47
+83
+67
+e0
+83
+0d
+6f
+e0
+83
+0d
+20
+7a
+00
+00
+1f
+e0
+ff
+ff
+67
+e0
+83
+0d
+20
+40
+77
+f2
+20
+40
+30
+9d
+20
+40
+30
+5e
+20
+40
+30
+64
+20
+40
+5c
+8d
+20
+40
+5d
+6b
+6f
+e1
+44
+6f
+20
+40
+7e
+13
+20
+20
+00
+61
+58
+00
+00
+00
+1c
+e2
+7c
+00
+20
+22
+80
+78
+6f
+f0
+81
+3c
+68
+58
+81
+3d
+98
+46
+7c
+00
+20
+21
+00
+76
+18
+42
+7e
+00
+9c
+e6
+7e
+00
+1f
+e0
+fe
+01
+1f
+e0
+fe
+0a
+20
+20
+14
+2c
+6f
+e0
+c7
+63
+24
+5a
+6e
+28
+58
+00
+08
+80
+d8
+a0
+08
+70
+98
+a6
+72
+00
+20
+40
+7d
+34
+20
+75
+80
+00
+20
+20
+13
+58
+20
+40
+13
+d1
+6f
+e1
+c1
+77
+20
+7a
+00
+00
+6f
+e0
+c0
+99
+20
+7a
+00
+00
+6f
+e0
+c7
+63
+20
+3a
+00
+8b
+6f
+e0
+c6
+b8
+20
+7a
+00
+00
+6f
+e0
+c6
+b9
+24
+7a
+00
+00
+c6
+1a
+80
+00
+da
+60
+0a
+b7
+20
+40
+0a
+6e
+20
+20
+14
+55
+20
+40
+20
+c0
+1a
+20
+8c
+2e
+ef
+e1
+00
+06
+67
+e1
+43
+92
+20
+60
+00
+00
+20
+40
+7c
+e4
+67
+21
+09
+87
+1a
+20
+8c
+01
+ef
+e0
+80
+06
+c4
+00
+00
+00
+1a
+20
+8a
+1a
+ef
+e1
+00
+05
+1f
+e0
+fe
+01
+e7
+e1
+00
+05
+20
+40
+00
+a6
+20
+40
+00
+aa
+20
+40
+00
+ae
+20
+40
+1f
+26
+20
+40
+7c
+f2
+6f
+21
+09
+87
+20
+60
+00
+00
+da
+60
+20
+ac
+da
+40
+00
+91
+d8
+e0
+00
+05
+20
+20
+00
+b2
+da
+60
+00
+00
+da
+40
+20
+ce
+d8
+e0
+00
+06
+20
+20
+00
+b2
+da
+60
+00
+00
+da
+40
+20
+d7
+d8
+e0
+00
+07
+20
+20
+00
+b2
+ef
+e0
+80
+11
+af
+ec
+00
+00
+20
+60
+80
+00
+1a
+20
+8c
+1a
+e8
+41
+00
+06
+1a
+20
+8c
+20
+ef
+e1
+00
+06
+98
+46
+7e
+00
+20
+22
+a1
+0f
+24
+21
+21
+14
+1f
+e6
+7c
+01
+20
+22
+a1
+0d
+20
+60
+00
+00
+ef
+e1
+00
+06
+c0
+02
+00
+c4
+c0
+03
+28
+5c
+c0
+02
+a8
+1e
+20
+60
+00
+00
+ef
+e1
+80
+06
+67
+e1
+c4
+34
+c0
+02
+00
+c8
+20
+20
+24
+df
+20
+40
+27
+0d
+20
+40
+7e
+62
+20
+20
+00
+cb
+d9
+60
+00
+03
+20
+40
+22
+58
+20
+40
+22
+61
+20
+3a
+00
+ef
+24
+21
+00
+ec
+18
+c0
+8d
+fe
+20
+40
+7c
+ff
+20
+40
+7c
+f6
+24
+34
+00
+df
+20
+40
+7c
+e4
+20
+40
+7e
+64
+61
+62
+09
+6c
+18
+00
+22
+14
+20
+40
+26
+de
+69
+62
+09
+6c
+20
+40
+7c
+f2
+58
+00
+00
+05
+e7
+e0
+80
+05
+58
+00
+00
+01
+e7
+e0
+80
+05
+20
+40
+7c
+f9
+ef
+e1
+00
+06
+1f
+e1
+7e
+ff
+e7
+e1
+00
+05
+ef
+e0
+80
+06
+1f
+e2
+72
+00
+20
+40
+7d
+6d
+20
+40
+7c
+fc
+19
+60
+97
+ff
+20
+22
+80
+ef
+ef
+e0
+80
+06
+98
+c0
+8c
+00
+20
+20
+00
+cd
+ef
+e0
+80
+06
+98
+c0
+8c
+00
+20
+20
+00
+e9
+20
+34
+26
+d2
+20
+20
+27
+01
+20
+40
+6e
+20
+20
+20
+02
+66
+20
+80
+00
+00
+70
+44
+8a
+ff
+20
+20
+03
+8a
+c5
+08
+00
+fd
+6f
+e0
+80
+e5
+08
+00
+86
+03
+6f
+e0
+80
+af
+98
+00
+26
+00
+08
+00
+86
+05
+20
+20
+01
+02
+6f
+e0
+80
+e5
+08
+00
+86
+03
+6f
+e1
+00
+af
+98
+00
+26
+00
+08
+00
+86
+0d
+d8
+c0
+10
+00
+20
+20
+10
+2a
+79
+3f
+80
+00
+6f
+e0
+80
+e5
+1f
+e1
+7e
+03
+d8
+a0
+00
+cf
+c0
+01
+8d
+df
+c5
+88
+8d
+ce
+d8
+a0
+10
+00
+20
+20
+0e
+09
+70
+8a
+8b
+e6
+70
+8a
+87
+29
+70
+8a
+0d
+02
+70
+8a
+6c
+d3
+70
+8a
+6d
+09
+70
+8a
+03
+05
+70
+8a
+7a
+94
+6f
+e0
+c0
+c6
+c0
+84
+01
+16
+70
+8a
+08
+34
+70
+8a
+01
+ff
+20
+00
+00
+64
+70
+8a
+02
+0e
+70
+8a
+00
+03
+20
+40
+01
+c4
+70
+8a
+9a
+2b
+70
+8a
+9b
+13
+20
+40
+12
+76
+20
+00
+00
+0a
+70
+80
+42
+05
+20
+20
+02
+5b
+70
+00
+19
+20
+6f
+f0
+89
+a0
+67
+e0
+80
+21
+1f
+e6
+7c
+fc
+24
+61
+00
+00
+1f
+e6
+7c
+7f
+20
+61
+00
+00
+6f
+f0
+89
+a3
+1f
+e1
+04
+0f
+18
+43
+84
+00
+1f
+f1
+fe
+00
+98
+40
+84
+00
+18
+4f
+84
+03
+6f
+e0
+80
+21
+1f
+e6
+7e
+ff
+98
+40
+fe
+00
+1f
+e0
+ff
+fb
+67
+e0
+80
+19
+20
+60
+00
+00
+6f
+e0
+80
+19
+20
+40
+12
+3f
+67
+e0
+80
+18
+20
+60
+00
+00
+20
+40
+01
+ec
+70
+8a
+16
+00
+70
+8a
+0a
+10
+6f
+f0
+8a
+09
+79
+3f
+fe
+07
+67
+f0
+8a
+09
+70
+8a
+0b
+00
+24
+2c
+01
+63
+6f
+e0
+80
+21
+1f
+e6
+7c
+f0
+24
+21
+01
+67
+1f
+e6
+7c
+7f
+20
+21
+01
+67
+6a
+30
+89
+61
+6f
+e0
+c1
+ee
+c1
+00
+00
+00
+d8
+c0
+44
+83
+98
+c0
+8c
+00
+ef
+e0
+80
+06
+9a
+26
+7c
+00
+24
+62
+80
+00
+18
+c0
+8d
+fe
+e8
+40
+80
+06
+18
+51
+fe
+00
+1a
+31
+a4
+00
+9a
+46
+24
+00
+18
+41
+7e
+0f
+1a
+21
+22
+0f
+9a
+26
+22
+00
+1a
+23
+fe
+00
+9a
+40
+a4
+00
+1a
+4f
+a4
+03
+68
+48
+80
+21
+18
+41
+7e
+80
+20
+7a
+00
+00
+58
+00
+01
+00
+98
+46
+04
+00
+1a
+42
+7e
+00
+98
+46
+7e
+00
+20
+61
+00
+00
+1f
+e1
+7e
+ff
+c1
+7f
+80
+00
+c1
+7f
+00
+00
+6f
+e0
+c1
+ee
+c0
+00
+81
+6c
+c0
+01
+01
+6e
+20
+20
+01
+6c
+6f
+e0
+c1
+ee
+c0
+00
+01
+6e
+c0
+00
+81
+6a
+70
+41
+ee
+02
+20
+60
+00
+00
+70
+41
+ee
+00
+20
+60
+00
+00
+70
+41
+ee
+01
+20
+60
+00
+00
+6f
+e0
+c0
+c6
+1f
+e6
+7c
+18
+20
+42
+81
+7a
+24
+42
+81
+80
+60
+48
+80
+17
+18
+40
+fe
+00
+c5
+16
+81
+78
+18
+40
+fe
+01
+20
+40
+02
+1d
+20
+20
+10
+80
+70
+8a
+43
+00
+70
+8a
+3d
+04
+70
+8a
+3e
+00
+70
+8a
+84
+03
+70
+8a
+89
+40
+20
+60
+00
+00
+70
+8a
+43
+30
+70
+8a
+3d
+06
+70
+8a
+3e
+00
+70
+8a
+84
+20
+70
+8a
+89
+15
+20
+60
+00
+00
+20
+40
+4c
+94
+6f
+e0
+c1
+ee
+d8
+c0
+44
+83
+98
+c0
+8c
+00
+ef
+e0
+80
+06
+67
+f0
+89
+61
+70
+89
+60
+27
+70
+8a
+10
+aa
+70
+8a
+11
+2a
+70
+8a
+12
+13
+70
+8a
+0a
+7f
+6f
+f0
+8a
+09
+79
+3f
+fe
+07
+67
+f0
+8a
+09
+20
+00
+00
+3c
+70
+8a
+17
+1f
+70
+8a
+18
+f8
+70
+8a
+19
+18
+70
+8a
+10
+00
+70
+8a
+11
+20
+20
+00
+00
+0a
+70
+89
+00
+04
+20
+00
+00
+02
+70
+89
+00
+0c
+20
+60
+00
+00
+68
+48
+80
+17
+18
+40
+a2
+02
+c5
+16
+81
+a3
+18
+40
+a2
+02
+78
+46
+fc
+00
+20
+40
+01
+ec
+20
+20
+02
+21
+70
+8a
+3d
+12
+60
+48
+80
+17
+18
+40
+a2
+02
+20
+40
+02
+21
+20
+00
+03
+c0
+70
+8a
+10
+aa
+70
+8a
+11
+2a
+70
+8a
+12
+10
+70
+8a
+0a
+7f
+6f
+f0
+8a
+09
+79
+3f
+fe
+07
+67
+f0
+8a
+09
+70
+8a
+0b
+07
+20
+00
+00
+3c
+70
+8a
+19
+0d
+70
+8a
+1a
+f9
+70
+8a
+10
+00
+70
+8a
+11
+20
+20
+00
+00
+0a
+70
+89
+00
+01
+20
+00
+00
+02
+70
+89
+00
+03
+6f
+e0
+c1
+eb
+c0
+00
+81
+c9
+c0
+01
+01
+ce
+c0
+02
+81
+d3
+c0
+01
+81
+d8
+c0
+02
+01
+dd
+c0
+76
+01
+e7
+c0
+05
+01
+e2
+70
+8a
+39
+6a
+70
+8a
+3a
+07
+70
+8a
+14
+a3
+70
+8a
+15
+07
+20
+60
+00
+00
+70
+8a
+39
+66
+70
+8a
+3a
+0b
+70
+8a
+14
+aa
+70
+8a
+15
+0a
+20
+60
+00
+00
+70
+8a
+39
+6c
+70
+8a
+3a
+0d
+70
+8a
+14
+aa
+70
+8a
+15
+0a
+20
+60
+00
+00
+70
+8a
+39
+6b
+70
+8a
+3a
+0f
+70
+8a
+14
+aa
+70
+8a
+15
+0a
+20
+60
+00
+00
+70
+8a
+39
+68
+70
+8a
+3a
+05
+70
+8a
+14
+a3
+70
+8a
+15
+07
+20
+60
+00
+00
+70
+8a
+39
+60
+70
+8a
+3a
+05
+70
+8a
+14
+a3
+70
+8a
+15
+07
+20
+60
+00
+00
+70
+8a
+39
+b6
+70
+8a
+3a
+0f
+70
+8a
+14
+aa
+70
+8a
+15
+0a
+20
+60
+00
+00
+70
+8a
+39
+53
+70
+8a
+3a
+01
+70
+8a
+14
+a3
+70
+8a
+15
+07
+20
+60
+00
+00
+70
+89
+00
+05
+20
+00
+00
+02
+70
+89
+00
+00
+6f
+e0
+c0
+c6
+c0
+0c
+01
+f2
+c0
+04
+02
+07
+70
+8a
+10
+aa
+70
+8a
+11
+aa
+70
+8a
+12
+15
+70
+8a
+0a
+78
+6f
+f0
+8a
+09
+79
+20
+7e
+07
+67
+f0
+8a
+09
+70
+8a
+0b
+04
+20
+00
+00
+3c
+70
+8a
+16
+7a
+70
+8a
+17
+00
+70
+8a
+18
+00
+70
+8a
+19
+00
+70
+8a
+1a
+00
+70
+8a
+11
+2a
+70
+8a
+0a
+78
+6f
+f0
+8a
+09
+79
+3f
+fe
+07
+67
+f0
+8a
+09
+70
+8a
+43
+00
+20
+60
+00
+00
+70
+8a
+8b
+e6
+70
+8a
+10
+aa
+70
+8a
+11
+aa
+70
+8a
+12
+15
+70
+8a
+0a
+78
+6f
+f0
+8a
+09
+79
+20
+7e
+07
+67
+f0
+8a
+09
+70
+8a
+0b
+04
+20
+00
+00
+3c
+70
+8a
+16
+3a
+70
+8a
+17
+00
+70
+8a
+18
+00
+70
+8a
+19
+00
+70
+8a
+1a
+00
+70
+8a
+11
+2a
+70
+8a
+0a
+38
+6f
+f0
+8a
+09
+79
+3f
+fe
+07
+67
+f0
+8a
+09
+70
+8a
+43
+00
+20
+60
+00
+00
+d8
+c0
+09
+60
+98
+c0
+fe
+00
+68
+48
+c0
+c6
+20
+20
+02
+2a
+6f
+e0
+c0
+c6
+1f
+e6
+7c
+18
+20
+42
+82
+4d
+24
+42
+82
+54
+58
+00
+09
+60
+9a
+20
+fe
+00
+1f
+e3
+fe
+00
+68
+48
+c0
+c6
+18
+4f
+84
+03
+18
+43
+84
+00
+98
+46
+fc
+00
+20
+40
+7d
+fd
+18
+07
+fe
+00
+67
+f0
+8a
+3f
+18
+07
+7e
+00
+1f
+f0
+7e
+00
+1f
+ed
+7e
+00
+98
+46
+fc
+00
+20
+40
+7d
+fd
+18
+07
+fe
+00
+67
+f0
+8a
+42
+1f
+ec
+fe
+00
+67
+f0
+8a
+41
+1f
+ec
+fe
+00
+67
+f0
+8a
+40
+68
+58
+8a
+43
+18
+41
+04
+f0
+60
+58
+8a
+43
+20
+00
+00
+0c
+6f
+e0
+c0
+c6
+c0
+0c
+02
+41
+c0
+04
+02
+47
+18
+41
+84
+0c
+60
+58
+8a
+43
+20
+00
+00
+0c
+18
+41
+84
+03
+60
+58
+8a
+43
+20
+60
+00
+00
+18
+41
+84
+3c
+60
+58
+8a
+43
+20
+00
+00
+0c
+18
+41
+84
+33
+60
+58
+8a
+43
+20
+60
+00
+00
+70
+8a
+43
+00
+70
+8a
+3d
+12
+70
+8a
+3e
+00
+70
+8a
+84
+03
+70
+8a
+8b
+a6
+70
+8a
+89
+40
+20
+60
+00
+00
+70
+8a
+43
+30
+70
+8a
+3d
+15
+70
+8a
+3e
+00
+70
+8a
+84
+20
+70
+8a
+8b
+a6
+70
+8a
+89
+15
+20
+60
+00
+00
+78
+5b
+7c
+00
+79
+3f
+80
+31
+70
+89
+01
+00
+70
+89
+20
+80
+70
+89
+25
+a3
+70
+89
+30
+03
+70
+89
+33
+68
+70
+89
+34
+09
+70
+89
+37
+28
+70
+8a
+6d
+09
+20
+60
+00
+00
+20
+40
+00
+f4
+20
+40
+12
+1e
+20
+40
+03
+22
+20
+40
+41
+a3
+20
+40
+40
+9c
+20
+75
+80
+00
+20
+40
+3d
+b2
+20
+40
+47
+3f
+20
+40
+02
+7f
+20
+40
+06
+39
+6f
+e0
+c8
+fd
+c3
+83
+80
+00
+20
+20
+3d
+79
+20
+40
+47
+eb
+20
+40
+2b
+c3
+20
+40
+2d
+f3
+20
+40
+06
+97
+20
+40
+48
+c2
+20
+40
+48
+f1
+20
+40
+40
+8a
+20
+40
+45
+0b
+20
+40
+45
+1b
+20
+40
+40
+39
+20
+40
+45
+85
+20
+20
+03
+1a
+58
+00
+02
+cd
+67
+e1
+48
+89
+58
+00
+02
+eb
+67
+e1
+48
+8b
+58
+00
+3e
+63
+67
+e1
+48
+8d
+58
+00
+43
+d9
+67
+e1
+44
+61
+58
+00
+44
+95
+67
+e1
+44
+63
+58
+00
+04
+5d
+67
+e1
+44
+5f
+58
+00
+43
+6d
+67
+e1
+44
+67
+58
+00
+46
+8b
+67
+e1
+44
+65
+58
+00
+3e
+4c
+67
+e1
+44
+5d
+58
+00
+43
+c2
+67
+e1
+44
+6b
+58
+00
+44
+f3
+67
+e1
+44
+6f
+58
+00
+3f
+76
+67
+e1
+44
+73
+58
+00
+3e
+3c
+67
+e1
+44
+5b
+58
+00
+02
+9e
+67
+e1
+44
+6d
+58
+00
+02
+a0
+67
+e1
+44
+77
+20
+60
+00
+00
+20
+40
+01
+34
+20
+20
+49
+9b
+20
+40
+01
+34
+20
+20
+49
+9e
+d8
+e0
+00
+18
+20
+20
+47
+1d
+d8
+e0
+00
+16
+20
+20
+47
+1d
+d8
+e0
+00
+0c
+20
+20
+47
+1d
+d8
+e0
+00
+1c
+20
+20
+47
+1d
+c0
+00
+02
+b1
+c0
+00
+82
+b3
+c0
+01
+02
+ae
+c0
+01
+82
+b5
+58
+0e
+a6
+00
+67
+e2
+4b
+87
+20
+60
+00
+00
+58
+05
+e7
+40
+20
+20
+02
+af
+58
+09
+27
+c0
+20
+20
+02
+af
+58
+12
+4f
+80
+20
+20
+02
+af
+d8
+e0
+00
+15
+20
+40
+47
+1d
+58
+00
+00
+00
+67
+e4
+4b
+71
+67
+e4
+4b
+7a
+6f
+e0
+cb
+ae
+1f
+e1
+7e
+c0
+c0
+20
+02
+c4
+c0
+40
+02
+c6
+c0
+60
+02
+cb
+58
+07
+00
+08
+67
+e4
+4b
+72
+20
+60
+00
+00
+58
+04
+00
+05
+20
+20
+02
+c2
+58
+02
+23
+03
+67
+e4
+4b
+71
+58
+00
+00
+03
+67
+e4
+4b
+7a
+20
+60
+00
+00
+58
+00
+cd
+03
+20
+20
+02
+c7
+c6
+93
+00
+00
+20
+40
+3f
+87
+24
+74
+00
+00
+6f
+e4
+4b
+50
+c3
+0a
+82
+d4
+6f
+e0
+cb
+30
+24
+3a
+48
+7d
+20
+40
+43
+00
+6f
+e0
+c8
+35
+c2
+80
+82
+e3
+68
+48
+c7
+c6
+6f
+e0
+c8
+b3
+98
+41
+fe
+00
+67
+e0
+c8
+b3
+68
+48
+c7
+cb
+6f
+e0
+c8
+b8
+98
+40
+fe
+00
+67
+e0
+c8
+b8
+68
+48
+c7
+cc
+6f
+e0
+c8
+b9
+98
+40
+fe
+00
+67
+e0
+c8
+b9
+70
+48
+35
+01
+da
+20
+00
+07
+da
+40
+48
+b3
+6f
+e4
+4b
+50
+c2
+8c
+2f
+5e
+6f
+e1
+48
+b8
+20
+7a
+00
+00
+20
+20
+2f
+5e
+6f
+e4
+4b
+50
+c4
+0b
+00
+00
+6f
+e0
+ca
+51
+20
+7a
+00
+00
+6f
+e0
+c8
+94
+20
+7a
+00
+00
+6f
+e0
+cb
+46
+1f
+e0
+fe
+01
+1f
+e1
+7e
+03
+67
+e0
+cb
+46
+24
+7a
+00
+00
+70
+4b
+47
+00
+6f
+e0
+cb
+47
+1f
+e0
+fe
+01
+67
+e0
+cb
+47
+1f
+e6
+7c
+08
+24
+21
+03
+01
+20
+40
+2e
+37
+20
+40
+2e
+e1
+24
+2c
+03
+07
+24
+37
+83
+07
+20
+40
+03
+11
+20
+40
+2e
+34
+6f
+e0
+cb
+48
+1f
+e0
+fe
+01
+67
+e0
+cb
+48
+c0
+08
+03
+09
+20
+60
+00
+00
+20
+40
+2b
+8f
+20
+20
+02
+f7
+70
+4b
+48
+00
+6f
+e0
+cb
+49
+c3
+80
+00
+00
+79
+20
+7e
+00
+67
+e0
+cb
+49
+6f
+e1
+4b
+9d
+67
+e1
+4a
+55
+20
+20
+06
+39
+6f
+e0
+c8
+94
+20
+3a
+48
+92
+70
+4b
+48
+00
+6f
+e0
+cb
+49
+c4
+00
+00
+00
+79
+3f
+fe
+00
+67
+e0
+cb
+49
+20
+40
+45
+82
+20
+20
+05
+f5
+6f
+e0
+c8
+fd
+c3
+83
+80
+00
+da
+60
+4a
+55
+da
+40
+03
+1f
+20
+20
+30
+4b
+6f
+e0
+c9
+0b
+c0
+00
+06
+2e
+20
+20
+43
+54
+20
+75
+80
+00
+20
+40
+2e
+a2
+20
+40
+03
+6f
+20
+40
+06
+42
+20
+40
+03
+35
+20
+40
+3d
+3a
+6f
+e4
+4b
+50
+c3
+0c
+03
+2c
+58
+10
+0c
+0c
+67
+e1
+c8
+53
+20
+40
+03
+62
+20
+40
+23
+21
+20
+40
+23
+4a
+20
+40
+23
+3d
+20
+40
+23
+29
+6f
+e4
+4b
+50
+c2
+89
+c6
+76
+c2
+89
+46
+36
+20
+60
+00
+00
+68
+48
+c4
+c4
+20
+40
+60
+b8
+20
+40
+79
+d3
+68
+48
+c8
+e4
+20
+40
+04
+a8
+68
+48
+c8
+e5
+20
+40
+04
+a8
+68
+48
+c8
+e6
+20
+40
+04
+a8
+68
+48
+c8
+e7
+20
+40
+04
+a8
+68
+48
+c8
+e8
+20
+40
+04
+a8
+68
+48
+c8
+e9
+20
+40
+04
+a8
+68
+48
+c8
+ea
+20
+40
+04
+a8
+68
+48
+c8
+eb
+20
+40
+04
+a8
+68
+48
+c8
+ec
+20
+40
+04
+a8
+68
+48
+c8
+ed
+20
+40
+04
+a8
+68
+48
+c8
+ee
+20
+40
+04
+a8
+68
+48
+c8
+ef
+20
+40
+04
+a8
+68
+48
+c8
+f0
+20
+40
+04
+a8
+68
+48
+c8
+f1
+20
+40
+04
+a8
+68
+48
+c8
+f2
+20
+40
+04
+a8
+68
+48
+c8
+f3
+20
+40
+60
+b8
+68
+48
+c8
+f4
+20
+40
+60
+b8
+68
+48
+c8
+f5
+20
+40
+60
+b8
+68
+48
+c8
+f6
+20
+40
+60
+b8
+68
+48
+c8
+f7
+20
+40
+60
+b8
+68
+48
+c8
+f8
+20
+20
+04
+a8
+6f
+e0
+c8
+f9
+67
+e0
+c8
+fb
+6f
+e0
+c8
+f8
+c1
+7f
+80
+00
+68
+48
+c8
+f8
+20
+40
+04
+a8
+68
+48
+c8
+f8
+20
+40
+60
+a8
+20
+40
+83
+6c
+20
+20
+04
+a7
+6f
+e0
+c8
+fa
+67
+e0
+c8
+fb
+20
+60
+00
+00
+d8
+40
+75
+30
+c5
+13
+83
+75
+d8
+40
+12
+c0
+6f
+e0
+c8
+63
+c3
+01
+03
+75
+d8
+40
+2e
+e0
+60
+49
+48
+37
+20
+60
+00
+00
+70
+48
+63
+01
+70
+48
+64
+01
+20
+60
+00
+00
+70
+4b
+86
+05
+58
+00
+2f
+b2
+67
+e1
+c8
+9a
+58
+00
+bb
+80
+67
+e1
+c8
+9d
+58
+10
+0c
+0c
+67
+e1
+c8
+53
+20
+60
+00
+00
+70
+4b
+86
+0b
+58
+00
+f2
+94
+67
+e1
+c8
+9a
+58
+01
+77
+00
+67
+e1
+c8
+9d
+58
+1c
+19
+19
+67
+e1
+c8
+53
+20
+60
+00
+00
+20
+75
+80
+00
+70
+0b
+58
+ff
+70
+40
+99
+01
+70
+47
+8f
+ff
+70
+47
+8e
+1e
+58
+00
+49
+00
+67
+e1
+44
+91
+70
+44
+90
+01
+58
+00
+4a
+58
+67
+e1
+48
+87
+70
+48
+35
+01
+70
+48
+7a
+01
+58
+00
+0f
+0f
+67
+e1
+48
+7b
+67
+e1
+48
+7d
+6f
+e0
+cb
+ad
+1f
+e1
+04
+07
+60
+48
+c4
+a4
+1f
+f1
+fe
+00
+1f
+e1
+04
+03
+60
+48
+c8
+d8
+1f
+eb
+7e
+00
+1f
+e1
+7e
+03
+20
+40
+02
+aa
+6f
+e0
+cb
+9f
+1f
+e1
+04
+03
+60
+48
+c8
+f9
+1f
+eb
+7e
+00
+1f
+e1
+04
+03
+60
+48
+c8
+fa
+1f
+eb
+7e
+00
+1f
+e1
+7e
+03
+67
+e0
+c8
+e3
+67
+e0
+c9
+65
+6f
+e1
+4b
+a1
+67
+e1
+47
+90
+6f
+e1
+4b
+a3
+67
+e1
+48
+6f
+6f
+e1
+cb
+a5
+67
+e1
+cb
+a8
+6f
+e4
+4b
+50
+24
+7a
+00
+00
+58
+4a
+08
+04
+67
+e1
+cb
+50
+58
+80
+00
+00
+e7
+e1
+80
+05
+58
+00
+03
+03
+e7
+e1
+00
+05
+6f
+e0
+cb
+ae
+2f
+ef
+fe
+01
+20
+40
+82
+a4
+58
+0b
+0c
+0a
+67
+e1
+c8
+e4
+70
+48
+eb
+ff
+58
+00
+ff
+ff
+67
+e1
+48
+ef
+67
+e1
+48
+f2
+67
+e1
+48
+f6
+58
+00
+17
+70
+67
+e1
+4b
+63
+70
+4b
+65
+14
+58
+00
+01
+90
+67
+e1
+4b
+6b
+67
+e1
+4b
+67
+58
+00
+03
+e8
+67
+e1
+4b
+69
+70
+48
+6b
+07
+70
+48
+b2
+7d
+70
+41
+eb
+00
+58
+00
+50
+00
+67
+e1
+c9
+8b
+58
+00
+1f
+80
+67
+e1
+44
+79
+70
+44
+87
+80
+d8
+a0
+43
+78
+d8
+c0
+40
+a8
+df
+20
+00
+06
+20
+40
+7e
+74
+70
+41
+7a
+20
+70
+4b
+2f
+20
+70
+49
+0c
+34
+6f
+e3
+43
+78
+67
+e3
+49
+23
+70
+4b
+58
+02
+70
+43
+e5
+1f
+58
+05
+01
+02
+67
+e1
+c3
+e6
+58
+12
+03
+03
+e7
+e1
+80
+05
+58
+19
+03
+18
+e7
+e1
+80
+05
+58
+00
+03
+c2
+e7
+e1
+00
+05
+58
+06
+ff
+06
+67
+e1
+ca
+76
+58
+00
+03
+00
+e7
+e1
+80
+05
+58
+09
+0c
+80
+e7
+e1
+80
+05
+58
+35
+54
+42
+e7
+e1
+80
+05
+58
+20
+32
+2e
+e7
+e1
+80
+05
+58
+75
+6f
+4d
+e7
+e1
+80
+05
+58
+00
+65
+73
+e7
+e1
+00
+05
+70
+44
+05
+1f
+d8
+c0
+4a
+7d
+d8
+a0
+44
+06
+df
+20
+00
+0d
+20
+40
+7d
+6d
+6f
+e0
+c4
+06
+1f
+e0
+ff
+ff
+67
+e0
+c2
+f5
+d8
+c0
+44
+08
+d8
+a0
+42
+f6
+df
+20
+00
+0b
+20
+40
+7d
+6d
+58
+07
+00
+07
+67
+e1
+c3
+70
+58
+00
+20
+00
+e7
+e1
+80
+05
+58
+00
+01
+2c
+e7
+e1
+00
+05
+58
+18
+12
+03
+67
+e1
+ca
+70
+58
+00
+00
+ff
+67
+e1
+ca
+73
+38
+00
+00
+fb
+38
+06
+c2
+12
+38
+08
+80
+0f
+38
+0c
+00
+21
+67
+e4
+44
+4c
+70
+44
+30
+07
+58
+00
+00
+15
+67
+e1
+4a
+8b
+58
+00
+00
+19
+67
+e1
+43
+55
+58
+00
+00
+1d
+67
+e1
+4a
+8d
+58
+00
+00
+21
+67
+e1
+4a
+8f
+58
+00
+00
+30
+67
+e1
+4a
+91
+58
+00
+00
+22
+67
+e1
+43
+cf
+70
+4a
+94
+96
+70
+49
+0b
+00
+20
+40
+03
+82
+58
+60
+48
+00
+67
+e1
+c8
+5b
+58
+00
+01
+2c
+67
+e1
+48
+ab
+58
+00
+00
+50
+67
+e1
+48
+a9
+58
+00
+00
+05
+67
+e1
+4b
+61
+58
+00
+07
+08
+67
+e1
+4b
+9d
+20
+40
+03
+77
+20
+40
+06
+3c
+58
+4e
+00
+1e
+67
+e1
+cb
+8e
+58
+03
+23
+03
+e7
+e1
+80
+05
+58
+25
+06
+42
+e7
+e1
+80
+05
+58
+09
+4c
+06
+e7
+e1
+80
+05
+58
+3c
+09
+27
+e7
+e1
+80
+05
+58
+01
+04
+03
+67
+e1
+c9
+a3
+58
+2a
+20
+02
+e7
+e1
+80
+05
+58
+00
+15
+3f
+e7
+e1
+00
+05
+58
+26
+5a
+09
+67
+e1
+c9
+b2
+58
+04
+19
+34
+e7
+e1
+80
+05
+58
+00
+00
+09
+e7
+e1
+00
+05
+58
+00
+ff
+ff
+e7
+e1
+00
+05
+58
+0d
+5a
+09
+67
+e1
+c9
+c6
+58
+ed
+1d
+10
+e7
+e1
+80
+05
+58
+00
+80
+7d
+e7
+e1
+00
+05
+58
+00
+ff
+ff
+e7
+e1
+00
+05
+58
+5b
+5a
+09
+67
+e1
+ca
+26
+58
+12
+0d
+9a
+e7
+e1
+80
+05
+58
+53
+c5
+0e
+e7
+e1
+80
+05
+58
+00
+09
+48
+e7
+e1
+80
+05
+58
+00
+ff
+ff
+e7
+e1
+00
+05
+58
+0b
+5a
+09
+67
+e1
+ca
+44
+58
+00
+09
+f3
+e7
+e1
+80
+05
+58
+00
+ff
+ff
+e7
+e1
+00
+05
+20
+60
+00
+00
+c6
+13
+00
+00
+20
+20
+3e
+5f
+20
+40
+3f
+9f
+6f
+e0
+cb
+af
+d8
+40
+00
+3f
+20
+40
+60
+e2
+20
+40
+5a
+cb
+68
+48
+c8
+e4
+20
+40
+60
+85
+68
+48
+c8
+e5
+20
+40
+60
+85
+68
+48
+c8
+e6
+20
+40
+60
+85
+68
+48
+c8
+e7
+20
+40
+60
+85
+68
+48
+c8
+e8
+20
+40
+60
+85
+68
+48
+c8
+e9
+20
+40
+60
+85
+68
+48
+c8
+ed
+20
+40
+60
+81
+68
+48
+c8
+ee
+20
+40
+60
+81
+68
+48
+c8
+ef
+20
+40
+60
+81
+68
+48
+c8
+f0
+20
+20
+60
+81
+78
+34
+7c
+00
+6f
+f2
+01
+38
+79
+34
+7e
+1a
+67
+f2
+00
+4c
+20
+40
+15
+03
+20
+40
+6e
+24
+20
+40
+49
+10
+20
+40
+04
+82
+20
+40
+04
+8c
+20
+20
+3e
+56
+68
+48
+c8
+ed
+20
+40
+04
+85
+68
+48
+c8
+ee
+18
+46
+7c
+ff
+20
+62
+80
+00
+18
+41
+0e
+7f
+6f
+f2
+01
+1c
+af
+ef
+ff
+ff
+20
+20
+84
+a8
+20
+20
+04
+a7
+20
+40
+43
+22
+20
+40
+7f
+f6
+20
+40
+3e
+63
+d8
+40
+00
+13
+20
+40
+04
+a8
+6f
+e0
+cb
+b0
+d8
+40
+00
+3f
+20
+20
+60
+e2
+1a
+62
+7e
+00
+c0
+1d
+04
+97
+20
+20
+43
+6f
+6f
+e0
+c8
+79
+c0
+01
+48
+3b
+70
+4b
+4b
+01
+20
+40
+49
+14
+20
+40
+47
+ef
+20
+20
+04
+9d
+58
+00
+80
+06
+20
+40
+5a
+f1
+20
+00
+2e
+e0
+20
+40
+06
+39
+20
+20
+30
+d1
+6f
+e4
+4b
+50
+c3
+17
+84
+99
+c2
+89
+84
+99
+c2
+89
+04
+99
+20
+20
+48
+0f
+20
+20
+3f
+63
+20
+20
+3f
+61
+68
+48
+c8
+ea
+20
+20
+04
+a8
+6f
+e0
+cb
+8b
+24
+5a
+04
+b6
+da
+20
+00
+00
+20
+40
+41
+40
+20
+40
+41
+4c
+20
+40
+41
+46
+20
+40
+04
+b9
+20
+40
+04
+c3
+20
+40
+41
+78
+1a
+22
+7e
+00
+20
+60
+00
+00
+58
+03
+03
+03
+67
+e1
+cb
+33
+20
+60
+00
+00
+6f
+e0
+c8
+e7
+c1
+7f
+80
+00
+70
+4b
+3b
+03
+6f
+e0
+cb
+36
+1f
+e2
+26
+00
+68
+48
+c8
+e7
+20
+40
+05
+3a
+67
+e0
+cb
+36
+68
+48
+c8
+e7
+20
+20
+04
+a8
+6f
+e0
+c8
+e8
+c1
+7f
+80
+00
+70
+4b
+3b
+04
+6f
+e0
+cb
+37
+1f
+e2
+26
+00
+68
+48
+c8
+e8
+20
+40
+05
+3a
+67
+e0
+cb
+37
+68
+48
+c8
+e8
+20
+20
+04
+a8
+78
+54
+7c
+00
+58
+00
+00
+00
+67
+e3
+48
+b4
+20
+40
+04
+d2
+20
+20
+3f
+8c
+6f
+e0
+c4
+af
+c1
+80
+00
+00
+6f
+e0
+c8
+e2
+c0
+00
+04
+dd
+c0
+00
+84
+dd
+c0
+01
+04
+dd
+c0
+01
+84
+dd
+c0
+02
+05
+05
+c0
+03
+04
+dd
+c0
+04
+42
+c8
+20
+20
+04
+dd
+20
+40
+42
+f7
+78
+54
+7c
+00
+6f
+e0
+c8
+f1
+c0
+7f
+84
+e4
+68
+48
+c8
+f1
+20
+40
+60
+a8
+24
+60
+80
+00
+58
+00
+00
+00
+20
+40
+5a
+f3
+c0
+98
+05
+0f
+58
+00
+00
+02
+20
+40
+5a
+f3
+c4
+03
+80
+00
+20
+40
+43
+10
+6f
+e0
+c8
+b4
+20
+40
+43
+08
+67
+e1
+48
+b4
+6f
+e0
+c8
+b6
+20
+40
+43
+08
+67
+e1
+48
+b6
+6f
+e0
+c8
+fb
+c0
+00
+04
+f7
+c0
+00
+84
+f9
+c0
+01
+04
+fb
+c0
+01
+84
+fd
+20
+60
+00
+00
+20
+40
+42
+e0
+20
+20
+04
+fe
+20
+40
+42
+e8
+20
+20
+04
+fe
+20
+40
+42
+e4
+20
+20
+04
+fe
+20
+40
+42
+f0
+68
+48
+cb
+b0
+20
+40
+60
+a8
+20
+60
+80
+00
+58
+00
+00
+0a
+20
+40
+5a
+f3
+20
+00
+03
+e8
+20
+20
+04
+fe
+20
+40
+42
+f7
+6f
+e0
+c8
+f1
+c0
+7f
+85
+0b
+68
+48
+c8
+f1
+20
+40
+60
+a8
+24
+60
+80
+00
+58
+00
+00
+00
+20
+40
+5a
+f3
+c0
+98
+05
+fc
+20
+20
+42
+5b
+c0
+18
+84
+e7
+20
+20
+05
+fc
+20
+40
+40
+9d
+20
+40
+05
+1b
+6f
+e0
+c8
+e2
+c0
+02
+40
+c8
+c0
+01
+05
+17
+20
+20
+40
+a9
+6f
+e0
+c9
+65
+c0
+00
+40
+b2
+c0
+01
+40
+ae
+20
+20
+40
+b0
+6f
+e0
+c8
+f7
+c1
+7f
+80
+00
+6f
+e1
+48
+75
+24
+7a
+00
+00
+20
+20
+48
+e7
+20
+40
+79
+64
+20
+40
+05
+23
+20
+20
+46
+8f
+6f
+e4
+4b
+50
+c2
+97
+40
+4b
+6f
+e0
+c8
+e9
+c1
+7f
+80
+00
+da
+20
+00
+00
+70
+4b
+3b
+05
+68
+48
+c8
+e9
+20
+40
+05
+30
+67
+e0
+cb
+38
+6f
+e0
+c8
+ea
+c0
+7f
+85
+37
+20
+40
+04
+a9
+20
+20
+40
+48
+6f
+e4
+4b
+50
+c2
+96
+40
+56
+6f
+e0
+cb
+38
+1f
+e2
+26
+00
+6f
+e0
+c8
+ea
+c0
+7f
+85
+3a
+20
+20
+40
+50
+68
+48
+c8
+e9
+20
+40
+04
+a8
+20
+20
+40
+48
+1a
+62
+7e
+00
+67
+e0
+cb
+3c
+1f
+e3
+fe
+00
+1f
+e2
+24
+00
+18
+42
+26
+00
+20
+40
+04
+a7
+1a
+62
+04
+00
+20
+40
+60
+a8
+7d
+20
+a4
+00
+20
+40
+05
+45
+20
+20
+41
+99
+68
+48
+cb
+3c
+18
+41
+04
+01
+1a
+41
+7e
+01
+98
+46
+7c
+00
+24
+22
+c3
+68
+20
+60
+00
+00
+20
+40
+2a
+a4
+c5
+97
+05
+50
+78
+3c
+fc
+00
+20
+00
+00
+1e
+20
+40
+2a
+a4
+78
+57
+fc
+00
+78
+26
+fc
+00
+78
+30
+fc
+00
+78
+50
+7c
+00
+78
+28
+7c
+00
+6f
+e1
+48
+37
+98
+00
+36
+00
+37
+c1
+84
+00
+24
+2c
+05
+9c
+20
+40
+4c
+9c
+c5
+17
+05
+5d
+78
+46
+fc
+00
+78
+25
+fc
+00
+78
+23
+fc
+00
+78
+24
+fc
+00
+20
+40
+2a
+fe
+67
+e0
+c8
+59
+68
+48
+c8
+58
+98
+46
+7c
+00
+24
+22
+ab
+03
+78
+58
+fc
+00
+28
+0f
+fe
+2e
+20
+40
+85
+91
+20
+38
+ab
+03
+20
+40
+2a
+fe
+67
+e0
+c7
+a3
+c5
+13
+85
+6f
+6f
+e0
+c7
+a3
+68
+48
+c8
+35
+a8
+40
+0e
+00
+24
+20
+ab
+03
+20
+40
+2a
+fe
+28
+0f
+fe
+2e
+20
+40
+aa
+f9
+e7
+e0
+80
+05
+1f
+e9
+7e
+00
+1f
+e6
+7c
+1f
+24
+21
+2b
+03
+1f
+e2
+72
+00
+20
+22
+85
+7b
+20
+40
+2a
+fe
+e7
+e0
+80
+05
+c2
+00
+05
+78
+c5
+13
+85
+80
+18
+a2
+22
+00
+20
+40
+2a
+fe
+67
+e0
+c8
+6c
+1a
+22
+0a
+00
+09
+80
+00
+18
+1f
+ef
+7e
+00
+1f
+f1
+7e
+00
+e7
+e1
+80
+05
+78
+45
+fc
+00
+28
+0f
+fe
+27
+20
+40
+85
+a6
+20
+23
+2b
+03
+20
+40
+4c
+9b
+78
+37
+fc
+00
+20
+40
+1f
+c0
+c6
+13
+80
+00
+6f
+e0
+c8
+6c
+68
+48
+cb
+aa
+98
+46
+7c
+00
+20
+41
+7e
+5a
+20
+20
+2e
+7d
+20
+40
+2a
+fe
+1f
+e6
+7c
+01
+20
+21
+05
+9a
+1f
+e0
+ff
+fe
+c5
+13
+85
+98
+20
+3a
+05
+9a
+1f
+e0
+ff
+ff
+67
+e0
+89
+64
+20
+60
+00
+00
+78
+38
+fc
+00
+20
+60
+00
+00
+28
+0f
+fe
+27
+20
+40
+85
+9f
+20
+20
+2b
+03
+20
+40
+05
+a6
+20
+7a
+00
+00
+68
+48
+c8
+84
+6a
+21
+48
+8b
+20
+40
+2e
+60
+60
+48
+c8
+84
+20
+60
+00
+00
+20
+40
+12
+38
+20
+20
+01
+34
+6f
+e0
+c8
+64
+20
+40
+1e
+9e
+6f
+e2
+48
+3b
+98
+00
+12
+00
+20
+40
+2a
+a4
+20
+40
+2b
+07
+79
+20
+2a
+00
+78
+2e
+fc
+00
+78
+30
+7c
+00
+78
+50
+fc
+00
+20
+40
+4c
+a2
+78
+5d
+7c
+00
+c5
+17
+05
+b6
+20
+20
+2b
+17
+df
+20
+00
+0a
+58
+00
+00
+3c
+08
+00
+86
+08
+c2
+00
+05
+b7
+78
+4e
+fc
+00
+78
+3c
+7c
+00
+19
+31
+7e
+00
+1f
+f1
+7e
+00
+1f
+f1
+fe
+00
+08
+00
+86
+20
+c5
+1a
+2b
+46
+20
+20
+2b
+42
+6f
+e0
+c8
+c9
+c1
+80
+80
+00
+20
+40
+2c
+33
+20
+40
+05
+c7
+20
+20
+2d
+38
+20
+40
+2c
+c4
+20
+40
+2a
+aa
+24
+37
+ac
+c4
+20
+40
+05
+d2
+24
+34
+2c
+4c
+20
+40
+2c
+f2
+6f
+e0
+c8
+5a
+20
+7a
+00
+00
+6f
+e2
+48
+77
+20
+7a
+00
+00
+20
+20
+2b
+a0
+70
+48
+d5
+05
+20
+40
+7e
+64
+d8
+c0
+47
+a3
+d8
+a0
+48
+9b
+20
+40
+7d
+14
+6f
+e0
+c8
+9d
+c0
+55
+2c
+59
+c0
+2a
+ac
+66
+c0
+11
+05
+dd
+c0
+7f
+ae
+52
+20
+20
+2c
+c4
+6f
+e0
+c8
+5a
+20
+3a
+05
+e3
+6f
+e2
+48
+9f
+68
+4a
+48
+77
+98
+46
+7c
+00
+24
+62
+80
+00
+6f
+e0
+c8
+9e
+c0
+00
+ac
+8d
+c0
+01
+05
+e7
+20
+60
+00
+00
+6f
+e0
+c8
+6d
+c0
+80
+05
+ea
+20
+60
+00
+00
+20
+40
+2c
+64
+6f
+e0
+c8
+6e
+1f
+e1
+fe
+02
+67
+e0
+c8
+6e
+20
+20
+2c
+94
+6f
+e0
+cb
+8b
+24
+5a
+05
+f5
+70
+4b
+8b
+00
+20
+60
+00
+00
+20
+40
+06
+26
+20
+75
+80
+00
+20
+40
+06
+21
+20
+40
+41
+b8
+c0
+18
+06
+01
+c0
+18
+85
+ff
+20
+40
+05
+fc
+20
+00
+1a
+f4
+20
+20
+05
+f6
+6f
+e0
+cb
+af
+20
+40
+5a
+b2
+20
+20
+06
+28
+20
+40
+06
+21
+20
+20
+42
+0b
+6f
+e0
+c9
+95
+c0
+2d
+06
+0b
+c0
+6c
+06
+12
+c0
+68
+c1
+f4
+c0
+69
+41
+fd
+c0
+01
+42
+04
+c0
+2a
+06
+09
+20
+20
+05
+f6
+70
+48
+e2
+02
+20
+60
+00
+00
+70
+48
+e2
+07
+58
+00
+80
+06
+20
+40
+5a
+f1
+20
+40
+7d
+20
+da
+60
+4b
+b1
+20
+40
+42
+13
+20
+20
+40
+9c
+58
+00
+00
+16
+20
+40
+5a
+f3
+1f
+e6
+7c
+bd
+24
+22
+85
+f3
+58
+00
+00
+19
+20
+40
+5a
+f3
+1f
+e6
+7c
+55
+24
+22
+85
+f3
+58
+00
+00
+1b
+20
+40
+5a
+f3
+1f
+e6
+7c
+1d
+24
+22
+85
+f3
+70
+48
+e2
+08
+da
+60
+4a
+34
+20
+20
+42
+13
+20
+40
+06
+26
+58
+00
+80
+06
+20
+40
+5a
+f1
+20
+00
+2e
+e0
+20
+20
+42
+1b
+20
+40
+06
+28
+20
+20
+3f
+73
+6f
+e0
+cb
+af
+d8
+40
+00
+21
+20
+40
+60
+e2
+6f
+e0
+cb
+b0
+d8
+40
+00
+23
+20
+20
+60
+e2
+20
+40
+2e
+34
+20
+40
+2e
+d9
+58
+00
+ff
+ff
+67
+e1
+48
+5b
+67
+e1
+48
+5d
+58
+00
+00
+00
+67
+e3
+c8
+b3
+70
+4b
+8b
+01
+20
+40
+06
+39
+20
+40
+04
+8c
+20
+20
+2f
+32
+20
+40
+05
+f3
+20
+40
+06
+26
+20
+20
+42
+20
+70
+48
+69
+4e
+58
+10
+15
+20
+67
+e1
+c8
+65
+58
+00
+00
+05
+e7
+e0
+80
+05
+20
+60
+00
+00
+38
+00
+13
+00
+38
+05
+90
+8b
+38
+0b
+61
+50
+38
+0c
+3d
+20
+67
+e4
+c8
+3f
+38
+00
+3a
+1a
+38
+04
+c4
+53
+38
+08
+d3
+12
+38
+0c
+00
+01
+e7
+e3
+80
+05
+6f
+e0
+c0
+9a
+c1
+84
+00
+00
+6f
+e0
+cb
+8c
+20
+7a
+00
+00
+d8
+c0
+4b
+8d
+d8
+a0
+48
+3f
+20
+20
+7d
+1a
+68
+48
+c8
+93
+6f
+e0
+cb
+86
+98
+46
+7c
+00
+24
+21
+06
+ca
+18
+40
+84
+01
+60
+48
+c8
+93
+6f
+e0
+cb
+86
+c0
+02
+86
+5f
+6f
+e0
+c8
+93
+c0
+03
+2f
+13
+c0
+06
+2f
+13
+20
+60
+00
+00
+6f
+e0
+c8
+93
+c0
+01
+af
+13
+c0
+03
+2f
+13
+20
+60
+00
+00
+20
+40
+2e
+b9
+24
+34
+06
+72
+20
+40
+06
+85
+20
+40
+2f
+6b
+6f
+e0
+cb
+8b
+24
+3a
+06
+6d
+6f
+e4
+48
+9d
+67
+e4
+48
+5b
+6f
+e1
+48
+ab
+67
+e1
+48
+ad
+20
+40
+2f
+38
+24
+74
+00
+00
+20
+40
+7f
+f6
+6f
+e1
+c8
+9a
+20
+20
+2f
+35
+6f
+e0
+c8
+94
+20
+5a
+06
+77
+20
+40
+2f
+4d
+20
+40
+2f
+1c
+20
+20
+2f
+32
+70
+48
+35
+01
+70
+48
+94
+01
+20
+40
+2e
+ca
+67
+e0
+c7
+c5
+58
+00
+00
+00
+67
+e3
+c7
+c6
+6f
+e2
+48
+96
+67
+e2
+47
+cd
+70
+48
+34
+0c
+6f
+e0
+c8
+35
+79
+20
+7e
+03
+67
+e0
+c8
+35
+20
+40
+2b
+55
+20
+20
+06
+65
+70
+48
+93
+00
+69
+61
+01
+5f
+34
+73
+02
+00
+20
+40
+2e
+e1
+6f
+e0
+c8
+2b
+c0
+00
+ae
+d7
+24
+2c
+06
+90
+24
+37
+86
+90
+20
+40
+2e
+f6
+20
+40
+05
+ef
+20
+20
+2e
+d7
+6f
+e1
+48
+91
+1f
+e0
+fe
+01
+67
+e1
+48
+91
+6f
+e0
+c8
+92
+c2
+82
+06
+2e
+20
+40
+2f
+01
+20
+20
+06
+86
+da
+60
+48
+ad
+da
+40
+06
+9a
+20
+20
+30
+44
+6f
+e2
+4b
+87
+67
+e2
+48
+5b
+70
+4a
+51
+01
+20
+60
+00
+00
+6f
+e1
+47
+8b
+c3
+85
+80
+00
+c3
+83
+80
+00
+c3
+83
+00
+00
+6a
+21
+48
+87
+20
+40
+2e
+68
+60
+48
+c8
+af
+6f
+e0
+cb
+a9
+c5
+13
+2f
+76
+6f
+e0
+cb
+ac
+98
+46
+7c
+00
+24
+21
+06
+c2
+6f
+e0
+c8
+b1
+1f
+e6
+7c
+02
+24
+21
+06
+b0
+6f
+e0
+c8
+b1
+c0
+00
+06
+c3
+20
+60
+00
+00
+6f
+e0
+c8
+b1
+68
+48
+c8
+b2
+98
+46
+7c
+00
+24
+62
+80
+00
+70
+48
+b1
+00
+68
+48
+c8
+af
+6f
+e0
+cb
+a8
+c5
+13
+06
+b9
+6f
+e0
+cb
+ab
+98
+46
+7c
+00
+24
+61
+00
+00
+6f
+e0
+c8
+b0
+c0
+00
+2f
+98
+1f
+e0
+ff
+ff
+67
+e0
+c8
+b0
+c0
+00
+2f
+98
+70
+41
+eb
+00
+20
+60
+00
+00
+70
+48
+b1
+00
+6f
+e0
+c8
+b0
+c0
+01
+06
+c8
+1f
+e0
+fe
+01
+67
+e0
+c8
+b0
+c0
+00
+86
+c0
+70
+41
+eb
+05
+20
+60
+00
+00
+20
+40
+06
+c3
+20
+40
+2f
+a1
+20
+20
+2b
+8f
+fe
+e9
+aa
+55
+40
+00
+00
+40
+08
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+02
+00
+02
+80
+00
+c8
+59
+02
+00
+00
+31
+80
+00
+00
+00
+d7
+25
+04
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+40
+00
+00
+00
+00
+00
+08
+00
+01
+00
+00
+00
+46
+3c
+00
+00
+aa
+55
+01
+00
+9a
+40
+08
+aa
+55
+06
+00
+a8
+40
+22
+11
+85
+36
+22
+11
+aa
+55
+03
+00
+7d
+41
+88
+1f
+ce
+aa
+55
+01
+00
+4e
+4a
+ff
+aa
+55
+01
+00
+59
+4b
+01
+aa
+55
+02
+00
+a1
+4b
+b0
+04
+aa
+55
+02
+00
+5a
+4b
+32
+00
+aa
+55
+02
+00
+a3
+4b
+14
+00
+aa
+55
+02
+00
+73
+48
+05
+00
+aa
+55
+01
+00
+6a
+48
+04
+aa
+55
+03
+00
+a5
+4b
+85
+90
+63
+aa
+55
+01
+00
+ae
+4b
+02
+aa
+55
+01
+00
+ad
+4b
+83
+aa
+55
+04
+00
+e7
+48
+0b
+0c
+0a
+14
+aa
+55
+01
+00
+f1
+48
+ff
+aa
+55
+03
+00
+ec
+48
+ff
+04
+05
+aa
+55
+02
+00
+f4
+48
+ff
+ff
+aa
+55
+01
+00
+f8
+48
+09
+aa
+55
+02
+00
+af
+4b
+07
+06
+aa
+55
+01
+00
+9f
+4b
+09
+aa
+55
+26
+00
+b1
+4b
+09
+5a
+ff
+27
+ab
+40
+b3
+56
+9b
+e6
+a8
+12
+a9
+c0
+be
+e6
+a5
+af
+a0
+21
+a1
+02
+b8
+10
+b9
+0b
+a7
+ff
+b5
+d0
+b6
+00
+ff
+00
+09
+00
+ff
+ff
+aa
+55
+10
+00
+34
+4a
+09
+5a
+06
+02
+09
+69
+0d
+48
+0e
+9f
+0f
+ba
+09
+00
+ff
+ff
+aa
+55
+01
+00
+93
+49
+05
+aa
+55
+01
+00
+8a
+44
+ff
+aa
+55
+01
+00
+8f
+47
+ff
+aa
+55
+08
+00
+9f
+00
+00
+00
+08
+00
+00
+00
+00
+00
+aa
+55
+0c
+00
+7d
+41
+88
+1f
+ce
+50
+3f
+0c
+33
+03
+30
+9d
+10
+24
+aa
+55
+01
+00
+5f
+41
+00
+aa
+55
+01
+00
+c6
+40
+08
+aa
+55
+08
+00
+b5
+40
+24
+00
+00
+02
+24
+00
+00
+02
+aa
+55
+02
+00
+c3
+40
+20
+00
+aa
+55
+04
+00
+bf
+40
+20
+00
+00
+20
+aa
+55
+04
+00
+c7
+40
+80
+04
+00
+0c
+aa
+55
+01
+00
+ed
+41
+0c
+aa
+55
+05
+00
+f7
+45
+09
+0e
+05
+04
+00
+aa
+55
+01
+00
+ce
+44
+7f
+aa
+55
+01
+00
+ec
+41
+ff
+aa
+55
+02
+00
+cb
+40
+ec
+41
+aa
+55
+02
+00
+d4
+44
+7f
+7f
+aa
+55
+03
+00
+83
+44
+88
+66
+44
+4b
+ef
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+4d
+78
Index: output/eeprom2hciimage_1021s.pl
===================================================================
--- /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/output/eeprom2hciimage_1021s.pl	(nonexistent)
+++ /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/output/eeprom2hciimage_1021s.pl	(working copy)
@@ -0,0 +1,522 @@
+    @data = ();
+    $_DEBUG_ = 0;
+    $MAX_CODE_PACKET_LEN = 0xF0;
+    $MAX_MEM_PACKET_LEN = 0xF0;
+    $i = 0;
+    @mem_patch = ();
+    $mem_patch_len = 0;
+    
+    
+		##############################
+		####Get All Data##############
+		##############################
+    open(EEP,"eeprom.dat") or die $!;
+    while (<EEP>) {
+    	$data[$i ++] = hex();
+    	#printf "%x ",$data[$i-1]; #DEBUG;
+    }
+    close(EEP);
+   	if(int($_DEBUG_)){printf "DEBUG:debug code\n";}
+ 
+ 		##############################
+		#####Get Eeprom Type##########
+		##############################
+		$Type_Not_Encrypt_IS_8051 = 0;
+		$Type_Not_Encrypt_No_8051	= 1;
+		$Type_Encrpt_IS_8051			= 2;
+		$Type_Encrpt_No_8051			= 3;
+		$EepromType = 0;
+    $fileOffset = $data[0] + $data[1];
+		if(0xaa == $data[$fileOffset] || 0x55 == $data[$fileOffset + 1]){
+    		$blockSize = $data[$fileOffset + 2] + ($data[$fileOffset + 3] << 8) + 4 + $fileOffset;
+		   	if(int($_DEBUG_)){printf "DEBUG:Bt code lenght is %d \n", $blockSize;}
+				if(0xaa == $data[$blockSize] || 0x55 == $data[$blockSize + 1]) {
+					$blockSize = $blockSize + $data[$blockSize + 2] + ($data[$blockSize + 3] << 8) + 4;
+					if(int($_DEBUG_)){printf "DEBUG:8051 code lenght is %d \n", $blockSize;}
+					if(0xaa == $data[$blockSize] || 0x55 == $data[$blockSize + 1]) {
+						$EepromType = $Type_Not_Encrypt_IS_8051;
+					}
+					else{
+						$EepromType = $Type_Not_Encrypt_No_8051;
+					}
+				}
+				else {
+	    		die "ERROR:Block header \"aa55\" Error while Get Eeprom Type!\n";
+				}
+		}
+		else {
+			$fileOffset += 16;
+			if(0xaa == $data[$fileOffset] || 0x55 == $data[$fileOffset + 1]){
+    		$blockSize = $data[$fileOffset + 2] + ($data[$fileOffset + 3] << 8) + 4 + $fileOffset;
+		   	if(int($_DEBUG_)){printf "DEBUG:Encrpt Bt code lenght is %d \n", $blockSize;}
+				if(0xaa == $data[$blockSize] || 0x55 == $data[$blockSize + 1]) {
+					$blockSize = $blockSize + $data[$blockSize + 2] + ($data[$blockSize + 3] << 8) + 4;
+					if(int($_DEBUG_)){printf "DEBUG:Encrpt 8051 code lenght is %d \n", $blockSize;}
+					if(0xaa == $data[$blockSize] || 0x55 == $data[$blockSize + 1]) {
+						$EepromType = $Type_Encrpt_IS_8051;
+					}
+					else{
+						$EepromType = $Type_Encrpt_No_8051;
+					}
+				}
+				else {
+	    		die "ERROR:Block header \"aa55\" Error while Get Eeprom Type!\n";
+				}
+		}
+		}
+		{#type code debug
+		if(int($_DEBUG_)){printf "DEBUG:0:not encrypt have 8051 code\n";}
+		if(int($_DEBUG_)){printf "DEBUG:1:not encrypt no have 8051 code\n";}
+		if(int($_DEBUG_)){printf "DEBUG:2:encrypt have 8051 code\n";}
+		if(int($_DEBUG_)){printf "DEBUG:3:encrypt no have 8051 code\n";}
+		if(int($_DEBUG_)){printf "DEBUG:eeprom type is $EepromType\n";}
+		}
+#   	die ;
+   	if($EepromType == $Type_Not_Encrypt_IS_8051 || $EepromType == $Type_Not_Encrypt_No_8051)
+   	{
+    open(BINFILE, ">bt_patch.bin");
+    binmode(BINFILE);
+		##############################
+		####Calc Output Size##########
+		##############################
+    $fileSize = @data;
+    $blocksCount = 0;
+    $outputSize = 0;
+    $codeBlockSize = 0;
+    $fileOffset = $data[0] + $data[1];
+    while($fileOffset < ($fileSize - 1)){
+    	if(0xaa == $data[$fileOffset] || 0x55 == $data[$fileOffset + 1]){
+    		$blockSize = $data[$fileOffset + 2] + ($data[$fileOffset + 3] << 8);
+    		$outputSize += $blockSize;
+    		if(0 == $blocksCount){
+    			$codeCmdPacketCnt = int(($blockSize - 2) / $MAX_CODE_PACKET_LEN);
+					if(0 != ($blockSize - 2) % $MAX_CODE_PACKET_LEN){
+			    	$codeCmdPacketCnt ++;
+			    }
+			    $outputSize += (9 * $codeCmdPacketCnt) - 2; #2byte crc was behind code block
+    			$fileOffset += $blockSize + 4;
+    			if(int($_DEBUG_)){printf "DEBUG:blockSize:%d blocksCount: %d,fileOffset:%d,codeCmdPacketCnt:%d,outputSize:%d\n",$blockSize, $blocksCount,$fileOffset,$codeCmdPacketCnt,$outputSize;}
+    		}elsif(1 == $blocksCount && $EepromType == $Type_Not_Encrypt_IS_8051){
+    			$fileOffset += $blockSize + 4;
+    		}else{
+    			
+	  			$memPacketCnt = int($blockSize / $MAX_MEM_PACKET_LEN);
+	  			if(0 != $blockSize % $MAX_MEM_PACKET_LEN){
+	  				$memPacketCnt ++;
+	  			}
+	  			$outputSize += 8 * $memPacketCnt;
+	  			$fileOffset += $blockSize + 6;
+	  			if(int($_DEBUG_)){printf "DEBUG:blockSize:%d blocksCount: %d,fileOffset:%d,memPacketCnt:%d,outputSize:%d\n",$blockSize, $blocksCount,$fileOffset,$memPacketCnt,$outputSize;}
+    		}
+    		$blocksCount ++;
+    	}else{
+    		if($fileOffset == $fileSize - 2){
+    			$fileOffset += 2;
+    		}else{
+	    		printf "ERROR:blockSize:%d blocksCount: %d\n",$blockSize, $blocksCount;
+	    		printf "ERROR:fileOffset:%d Block data: %x %x\n",$fileOffset, $data[$fileOffset], $data[$fileOffset + 1];
+	    		die "ERROR:Block header \"aa55\" Error while Calc output size!\n";
+    		}
+    	}
+    }
+		
+    $outputSize +=  40;
+    printf BINFILE "%c", ($outputSize & 0xff);#offset low
+		printf BINFILE "%c", (($outputSize >> 8) & 0xff);#offset High
+		
+		
+		##############################
+		####Start Generate Bin########
+		##############################
+		$blocksCount = 0;
+    $fileOffset = $data[0] + $data[1];
+    while($fileOffset < ($fileSize - 1)){ #file was endof a 0xff, ignore it.
+    	if(int($_DEBUG_)){printf "DEBUG:Process a new block:%d\n", $blocksCount;}
+    	if(0 == $blocksCount){#bt code block 
+    		##############################
+    		####Process bt code block!####
+    		##############################
+    		if(0xaa != $data[$fileOffset] || 0x55 != $data[$fileOffset + 1]){
+    			printf "ERROR:fileOffset = %d\n Block data: %x %x\n",$fileOffset, $data[$fileOffset], $data[$fileOffset + 1];
+    			die "ERROR:Block header \"aa55\" Error Code 0x01!\n";
+    		}
+    		if(int($_DEBUG_)){printf "DEBUG:fileOffset:%x, data+2:%x, data+3:%x\n",$fileOffset, $data[$fileOffset + 2], $data[$fileOffset + 3];}
+    		$codeSize = $data[$fileOffset + 2] + ($data[$fileOffset + 3] << 8) - 2;
+    		$codeStart = $fileOffset + 4;#aa 55 LL LH
+    		$codeEnd = $codeStart + $codeSize;
+    		$codeoffset = $codeStart;
+    		
+    		if(int($_DEBUG_)){printf "DEBUG:Begain to Process bt code block.\n";}
+    		if(int($_DEBUG_)){printf "DEBUG:codeSize:%x, codeoffset:%x, codeEnd:%x\n",$codeSize, $codeoffset, $codeEnd;}
+    		if(int($_DEBUG_)){printf "DEBUG:codeEnd data:%x\n", $data[$codeEnd];}
+
+    		while($codeoffset < $codeEnd){
+    			
+	    		$packetLen = $MAX_CODE_PACKET_LEN;
+	    		if($codeoffset + $packetLen > $codeSize){
+	    			$packetLen = $codeEnd - $codeoffset;
+	    			if($packetLen > $MAX_CODE_PACKET_LEN){
+	    				$packetLen = $MAX_CODE_PACKET_LEN;
+	    			}
+	    		}
+	    		if(int($_DEBUG_)){printf "DEBUG:new packet codeoffset:%x, length:%x\n", $codeoffset, $packetLen;}
+	    		$packetEnd = $codeoffset + $packetLen;
+	    		printf BINFILE "%c", (($packetLen + 8) & 0xff);#whole packet len;
+					printf BINFILE "%c%c%c", 0x01, 0x03, 0xfc;
+					printf BINFILE "%c", (($packetLen + 4) & 0xff);#packet len;
+					printf BINFILE "%c", (($codeoffset - 6) & 0xff);#offset low
+					printf BINFILE "%c", ((($codeoffset - 6) >> 8) & 0xff);#offset High
+					printf BINFILE "%c", (($packetLen) & 0xff);#code len;
+					$checkSum = ($codeoffset - 6) + (($codeoffset - 6) >> 8) + ($packetLen);
+	    		while($codeoffset < $packetEnd){
+	    			if(int($_DEBUG_)){printf "%02x ", $data[$codeoffset];}#DEBUG
+	    			{printf BINFILE "%c", ($data[$codeoffset] & 0xff);}#code;
+	    			$checkSum += $data[$codeoffset];
+	    			$codeoffset ++;
+	    		}
+	    		printf BINFILE "%c", ($checkSum & 0xff);#check sum;
+	    		if(int($_DEBUG_)){printf "DEBUG: Packet End.\n"}
+    		}
+    		
+    		$fileOffset = $codeEnd + 2; #add crc16
+    		##############################
+    		####End of bt code block  ####
+    		##############################
+    		
+    	}elsif(1 == $blocksCount && $EepromType == $Type_Not_Encrypt_IS_8051){#c51 code block 
+    		##############################
+    		####Process C51 code block####
+    		##############################
+    		if(0xaa != $data[$fileOffset] || 0x55 != $data[$fileOffset + 1]){
+    			printf "ERROR:fileOffset = %d\n Block data: %x %x\n",$fileOffset, $data[$fileOffset], $data[$fileOffset + 1];
+    			die "ERROR:Block header \"aa55\" Error Code 0x02\n";
+    		}
+    		
+    		$fileOffset += 4;
+    		##############################
+    		####End of C51 code block ####
+    		##############################
+    	}else{
+    		##############################
+    		####Process a memory block####
+    		##############################
+    		if(0xaa != $data[$fileOffset] || 0x55 != $data[$fileOffset + 1]){
+    			if($fileOffset == $fileSize - 2){
+    				$fileOffset += 2;
+    			}else{
+    				printf "ERROR:fileSize = %d\n", $fileSize;
+    				printf "ERROR:fileOffset = %d\n Block data: %x %x\n",$fileOffset, $data[$fileOffset], $data[$fileOffset + 1];
+    				die "ERROR:Block header \"aa55\" Error Code 0x03\n";
+    			}
+    		}
+    		$memBlockLen = $data[$fileOffset + 2] + ($data[$fileOffset + 3] << 8);
+    		$memBlockAddr = $data[$fileOffset + 4] + ($data[$fileOffset + 5] << 8);
+  			$memBlockBreakCnt = int($memBlockLen / $MAX_MEM_PACKET_LEN);
+  			if(0 != $memBlockLen % $MAX_MEM_PACKET_LEN){
+  				$memBlockBreakCnt ++;
+  			}
+
+  			if(int($_DEBUG_)){printf "DEBUG:memBlock, memBlockLen:%d, memBlockAddr:0x%x, memBlockBreakCnt:%d\n",$memBlockLen,$memBlockAddr,$memBlockBreakCnt ;}
+  			if(0x4000 == $memBlockAddr){
+    			$mem_patch_len = $memBlockLen;
+    			if(int($_DEBUG_)){printf "DEBUG:Find mem_patch, length = %d\n",$mem_patch_len;}
+    		}
+    		
+  			$j = 0;
+  			$memOffset = 0;                     #mem data offset in binfile
+  			$currentPacketAddr = $memBlockAddr;  #addr write in packet
+  			$memBlockStart = $fileOffset + 6;   #mem data start in binfile
+  			
+  			while($j++ < $memBlockBreakCnt){
+  				#for one single packet.
+  				$currentPacketLen = $MAX_MEM_PACKET_LEN;
+  				if($memOffset + $currentPacketLen > $memBlockLen){
+    				$currentPacketLen = $memBlockLen - $memOffset;#last packet
+    			}
+    			
+    			if(int($_DEBUG_)){printf "DEBUG:memPacket, currentPacketLen:%d, currentPacketAddr:0x%x, memOffset:%d\n",$currentPacketLen,$currentPacketAddr,$memOffset ;}
+    			
+  				#packet header
+  				printf BINFILE "%c", (($currentPacketLen + 7) & 0xff);
+					printf BINFILE "%c%c%c", 0x01, 0x10, 0xfc;
+					printf BINFILE "%c", (($currentPacketLen + 3) & 0xff);
+					printf BINFILE "%c", ($currentPacketLen & 0xff);
+					printf BINFILE "%c", ($currentPacketAddr & 0xff);
+					printf BINFILE "%c", (($currentPacketAddr >> 8) & 0xff);
+					
+					#copy data
+					$i = 0;
+					while($i < $currentPacketLen){
+						printf BINFILE "%c",($data[$memBlockStart + $memOffset + $i] & 0xff);
+						if(0x4000 == $memBlockAddr){
+							$mem_patch[$i] = ($data[$memBlockStart + $memOffset + $i] & 0xff)
+						}
+						$i++;
+					}
+					
+					#endof one packet
+  				$currentPacketAddr += $i;
+  				$memOffset += $i;
+  				
+  			}
+  			#endof a mem block
+  			$fileOffset = ($memBlockStart + $memOffset);
+  			##############################
+  			####End of a memory block#####
+  			##############################
+	    		
+    	}
+    	$blocksCount ++;
+    }
+    if(int($_DEBUG_)){printf "DEBUG:fileOffset:%d, fileSize:%d", $fileOffset, $fileSize;}
+    if(int($_DEBUG_)){printf "DEBUG:End of block process.Memory block count:%d\n", ($blocksCount - 2);}
+    if(0x40 != $mem_patch_len){
+    	printf "ERROR:mem_patch_len:%d",$mem_patch_len;
+    	die "ERROR:Cannot find mem_patch block or length error.";
+    }
+    
+    printf BINFILE "%c%c%c%c%c", 0x25, 0x01, 0x04, 0xfc, 0x21;
+		$i = 0;
+		$checksum = 0;
+		while($i < 0x20){
+			printf BINFILE "%c", ($mem_patch[$i] & 0xff);
+			
+			$checksum += ($mem_patch[$i] & 0xff);
+			$i ++;
+		}
+		printf BINFILE "%c", ($checksum & 0xff);
+		
+		close(BINFILE);
+		
+		
+		}
+		else{
+    open(BINFILE, ">bt_patch.bin");
+    binmode(BINFILE);
+		##############################
+		####Calc Output Size##########
+		##############################
+    $fileSize = @data;
+    $blocksCount = 0;
+    $outputSize = 0;
+    $codeBlockSize = 0;
+    $fileOffset = $data[0] + $data[1] + 16;
+    while($fileOffset < ($fileSize - 1)){
+    	if(0xaa == $data[$fileOffset] || 0x55 == $data[$fileOffset + 1]){
+    		$blockSize = $data[$fileOffset + 2] + ($data[$fileOffset + 3] << 8);#no crc
+    		$outputSize += $blockSize + 2;
+    		if(0 == $blocksCount){
+    			$codeCmdPacketCnt = int(($blockSize) / $MAX_CODE_PACKET_LEN);
+					if(0 != ($blockSize) % $MAX_CODE_PACKET_LEN){
+			    	$codeCmdPacketCnt ++;
+			    }
+			    $outputSize += (9 * $codeCmdPacketCnt); #2byte crc was behind code block
+    			$fileOffset += $blockSize + 4;
+    			if(int($_DEBUG_)){printf "DEBUG:blockSize:%d blocksCount: %d,fileOffset:%d,codeCmdPacketCnt:%d,outputSize:%d\n",$blockSize, $blocksCount,$fileOffset,$codeCmdPacketCnt,$outputSize;}
+    		}elsif(1 == $blocksCount && $EepromType == $Type_Encrpt_IS_8051){
+    			$fileOffset += $blockSize + 4;
+    		}else{
+    			
+	  			$memPacketCnt = int($blockSize / $MAX_MEM_PACKET_LEN);
+	  			if(0 != $blockSize % $MAX_MEM_PACKET_LEN){
+	  				$memPacketCnt ++;
+	  			}
+	  			$outputSize += 8 * $memPacketCnt;
+	  			$fileOffset += $blockSize + 6;
+	  			if(int($_DEBUG_)){printf "DEBUG:blockSize:%d blocksCount: %d,fileOffset:%d,memPacketCnt:%d,outputSize:%d\n",$blockSize, $blocksCount,$fileOffset,$memPacketCnt,$outputSize;}
+    		}
+    		$blocksCount ++;
+    	}else{
+    		if($fileOffset == $fileSize - 2){
+    			$fileOffset += 2;
+    		}else{
+	    		printf "ERROR:blockSize:%d blocksCount: %d\n",$blockSize, $blocksCount;
+	    		printf "ERROR:fileOffset:%d Block data: %x %x\n",$fileOffset, $data[$fileOffset], $data[$fileOffset + 1];
+	    		die "ERROR:Block header \"aa55\" Error while Calc output size!\n";
+    		}
+    	}
+    }
+		
+    $outputSize +=  40 + 0x16 - 5;
+    printf BINFILE "%c", ($outputSize & 0xff);#offset low
+		printf BINFILE "%c", (($outputSize >> 8) & 0xff);#offset High
+		
+    printf BINFILE "%c%c%c%c%c", 0x15, 0x01, 0x12, 0xfc, 0x11;
+		$i = 0;
+		$checksum = 0;
+		$fileOffset = $data[0] + $data[1];
+		while($i < 0x10){
+			printf BINFILE "%c", ($data[$i + $fileOffset] & 0xff);
+			
+			$checksum += ($data[$i + $fileOffset] & 0xff);
+			$i ++;
+		}
+		printf BINFILE "%c", ($checksum & 0xff);
+		
+		
+		##############################
+		####Start Generate Bin########
+		##############################
+		$blocksCount = 0;
+    $fileOffset = $data[0] + $data[1] + 16;
+    while($fileOffset < ($fileSize - 1)){ #file was endof a 0xff, ignore it.
+    	if(int($_DEBUG_)){printf "DEBUG:Process a new block:%d\n", $blocksCount;}
+    	if(0 == $blocksCount){#bt code block 
+    		##############################
+    		####Process bt code block!####
+    		##############################
+    		if(0xaa != $data[$fileOffset] || 0x55 != $data[$fileOffset + 1]){
+    			printf "ERROR:fileOffset = %d\n Block data: %x %x\n",$fileOffset, $data[$fileOffset], $data[$fileOffset + 1];
+    			die "ERROR:Block header \"aa55\" Error Code 0x01!\n";
+    		}
+    		if(int($_DEBUG_)){printf "DEBUG:fileOffset:%x, data+2:%x, data+3:%x\n",$fileOffset, $data[$fileOffset + 2], $data[$fileOffset + 3];}
+    		$codeSize = $data[$fileOffset + 2] + ($data[$fileOffset + 3] << 8);#no crc
+    		$codeStart = $fileOffset + 4;#aa 55 LL LH
+    		$codeEnd = $codeStart + $codeSize;
+    		$codeoffset = $codeStart;
+    		
+    		if(int($_DEBUG_)){printf "DEBUG:Begain to Process bt code block.\n";}
+    		if(int($_DEBUG_)){printf "DEBUG:codeSize:%x, codeoffset:%x, codeEnd:%x\n",$codeSize, $codeoffset, $codeEnd;}
+    		if(int($_DEBUG_)){printf "DEBUG:codeEnd data:%x\n", $data[$codeEnd];}
+
+    		while($codeoffset < $codeEnd){
+    			
+	    		$packetLen = $MAX_CODE_PACKET_LEN;
+	    		if($codeoffset + $packetLen > $codeSize){
+	    			$packetLen = $codeEnd - $codeoffset;
+	    			if($packetLen > $MAX_CODE_PACKET_LEN){
+	    				$packetLen = $MAX_CODE_PACKET_LEN;
+	    			}
+	    		}
+	    		if(int($_DEBUG_)){printf "DEBUG:new packet codeoffset:%x, length:%x\n", $codeoffset, $packetLen;}
+	    		$packetEnd = $codeoffset + $packetLen;
+	    		printf BINFILE "%c", (($packetLen + 8) & 0xff);#whole packet len;
+					printf BINFILE "%c%c%c", 0x01, 0x13, 0xfc;
+					printf BINFILE "%c", (($packetLen + 4) & 0xff);#packet len;
+					printf BINFILE "%c", (($codeoffset - 6 - 16) & 0xff);#offset low
+					printf BINFILE "%c", ((($codeoffset - 6 - 16) >> 8) & 0xff);#offset High
+					printf BINFILE "%c", (($packetLen) & 0xff);#code len;
+					$checkSum = ($codeoffset - 6 - 16) + (($codeoffset - 6 - 16) >> 8) + ($packetLen);
+	    		while($codeoffset < $packetEnd){
+	    			if(int($_DEBUG_)){printf "%02x ", $data[$codeoffset];}#DEBUG
+	    			{printf BINFILE "%c", ($data[$codeoffset] & 0xff);}#code;
+	    			$checkSum += $data[$codeoffset];
+	    			$codeoffset ++;
+	    		}
+	    		printf BINFILE "%c", ($checkSum & 0xff);#check sum;
+	    		if(int($_DEBUG_)){printf "DEBUG: Packet End.\n"}
+    		}
+    		
+    		$fileOffset = $codeEnd; #no crc16
+    		##############################
+    		####End of bt code block  ####
+    		##############################
+    		
+    	}elsif(1 == $blocksCount && $EepromType == $Type_Encrpt_IS_8051){#c51 code block 
+    		##############################
+    		####Process C51 code block####
+    		##############################
+    		if(0xaa != $data[$fileOffset] || 0x55 != $data[$fileOffset + 1]){
+    			printf "ERROR:fileOffset = %d\n Block data: %x %x\n",$fileOffset, $data[$fileOffset], $data[$fileOffset + 1];
+    			die "ERROR:Block header \"aa55\" Error Code 0x02\n";
+    		}
+    		
+    		$fileOffset += 4;
+    		##############################
+    		####End of C51 code block ####
+    		##############################
+    	}else{
+    		##############################
+    		####Process a memory block####
+    		##############################
+    		if(0xaa != $data[$fileOffset] || 0x55 != $data[$fileOffset + 1]){
+    			if($fileOffset == $fileSize - 2){
+    				$fileOffset += 2;
+    			}else{
+    				printf "ERROR:fileSize = %d\n", $fileSize;
+    				printf "ERROR:fileOffset = %d\n Block data: %x %x\n",$fileOffset, $data[$fileOffset], $data[$fileOffset + 1];
+    				die "ERROR:Block header \"aa55\" Error Code 0x03\n";
+    			}
+    		}
+    		$memBlockLen = $data[$fileOffset + 2] + ($data[$fileOffset + 3] << 8);
+    		$memBlockAddr = $data[$fileOffset + 4] + ($data[$fileOffset + 5] << 8);
+  			$memBlockBreakCnt = int($memBlockLen / $MAX_MEM_PACKET_LEN);
+  			if(0 != $memBlockLen % $MAX_MEM_PACKET_LEN){
+  				$memBlockBreakCnt ++;
+  			}
+
+  			if(int($_DEBUG_)){printf "DEBUG:memBlock, memBlockLen:%d, memBlockAddr:0x%x, memBlockBreakCnt:%d\n",$memBlockLen,$memBlockAddr,$memBlockBreakCnt ;}
+  			if(0x4000 == $memBlockAddr){
+    			$mem_patch_len = $memBlockLen;
+    			if(int($_DEBUG_)){printf "DEBUG:Find mem_patch, length = %d\n",$mem_patch_len;}
+    		}
+    		
+  			$j = 0;
+  			$memOffset = 0;                     #mem data offset in binfile
+  			$currentPacketAddr = $memBlockAddr;  #addr write in packet
+  			$memBlockStart = $fileOffset + 6;   #mem data start in binfile
+  			
+  			while($j++ < $memBlockBreakCnt){
+  				#for one single packet.
+  				$currentPacketLen = $MAX_MEM_PACKET_LEN;
+  				if($memOffset + $currentPacketLen > $memBlockLen){
+    				$currentPacketLen = $memBlockLen - $memOffset;#last packet
+    			}
+    			
+    			if(int($_DEBUG_)){printf "DEBUG:memPacket, currentPacketLen:%d, currentPacketAddr:0x%x, memOffset:%d\n",$currentPacketLen,$currentPacketAddr,$memOffset ;}
+    			
+  				#packet header
+  				printf BINFILE "%c", (($currentPacketLen + 7) & 0xff);
+					printf BINFILE "%c%c%c", 0x01, 0x10, 0xfc;
+					printf BINFILE "%c", (($currentPacketLen + 3) & 0xff);
+					printf BINFILE "%c", ($currentPacketLen & 0xff);
+					printf BINFILE "%c", ($currentPacketAddr & 0xff);
+					printf BINFILE "%c", (($currentPacketAddr >> 8) & 0xff);
+					
+					#copy data
+					$i = 0;
+					while($i < $currentPacketLen){
+						printf BINFILE "%c",($data[$memBlockStart + $memOffset + $i] & 0xff);
+						if(0x4000 == $memBlockAddr){
+							$mem_patch[$i] = ($data[$memBlockStart + $memOffset + $i] & 0xff)
+						}
+						$i++;
+					}
+					
+					#endof one packet
+  				$currentPacketAddr += $i;
+  				$memOffset += $i;
+  				
+  			}
+  			#endof a mem block
+  			$fileOffset = ($memBlockStart + $memOffset);
+  			##############################
+  			####End of a memory block#####
+  			##############################
+	    		
+    	}
+    	$blocksCount ++;
+    }
+    if(int($_DEBUG_)){printf "DEBUG:fileOffset:%d, fileSize:%d", $fileOffset, $fileSize;}
+    if(int($_DEBUG_)){printf "DEBUG:End of block process.Memory block count:%d\n", ($blocksCount - 2);}
+    if(0x40 != $mem_patch_len){
+    	printf "ERROR:mem_patch_len:%d",$mem_patch_len;
+    	die "ERROR:Cannot find mem_patch block or length error.";
+    }
+    printf BINFILE "%c%c%c%c%c", 0x25, 0x01, 0x04, 0xfc, 0x21;
+		$i = 0;
+		$checksum = 0;
+		while($i < 0x20){
+			printf BINFILE "%c", ($mem_patch[$i] & 0xff);
+			
+			$checksum += ($mem_patch[$i] & 0xff);
+			$i ++;
+		}
+		printf BINFILE "%c", ($checksum & 0xff);
+		
+		close(BINFILE);
+		
+		}
+		
+		
+		
Index: output/memmap.format
===================================================================
--- /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/output/memmap.format	(nonexistent)
+++ /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/output/memmap.format	(working copy)
@@ -0,0 +1,2504 @@
+0x0000 mem_le_adv_transmit
+0x0001 mem_le_adv_waitcnt
+0x0002 mem_le_adv_rcv
+0x0003 mem_le_req_rcv
+0x0004 mem_le_scanrsp_rcv
+0x0005 mem_le_conn_rcv
+0x0006 mem_inquiryscan_waitcnt
+0x0007 mem_inquiryscan_rcvcnt
+0x0008 mem_pagescan_waitcnt
+0x0009 mem_pagescan_rcvcnt
+0x000a mem_pagescan_rcvfhscnt
+0x000b mem_slave_rcvcnt
+0x000c mem_page_transmit
+0x000d mem_page_rcv
+0x000e mem_page_rcv_fhs
+0x000f mem_master_rcvcnt
+0x0010 mem_fhs_wait_counter
+0x0011 mem_newconnto_counter
+0x0012 mem_inquiry_transmit
+0x0013 mem_inquiry_rcv
+0x0014 mem_fw_ver
+0x0015 mem_current_context
+0x0016 mem_le_ch_mapped
+0x0017 mem_last_freq
+0x0018 mem_rssi
+0x0019 mem_rssi_hex
+0x001a mem_rx_type
+0x001b mem_rx_hec_err
+0x001d mem_rx_crc_err
+0x001f mem_context_ptr
+0x0021 mem_modem_rssi
+0x0021 mem_display
+0x0029 mem_bcd
+0x0031 mem_state
+0x0032 mem_mode
+0x0033 mem_tsniff
+0x0035 mem_sniff_anchor
+0x0039 mem_clk_offset
+0x003f mem_rx_window
+0x0041 mem_plap
+0x0044 mem_puap
+0x0045 mem_pnap
+0x0047 mem_conn_handle
+0x0048 mem_arq
+0x0049 mem_lmp_to_send
+0x004a mem_lmi_opcode
+0x004b mem_lmo_reason
+0x004c mem_op
+0x004d mem_state_map
+0x004e mem_supervision_timer
+0x0052 mem_supervision_to
+0x0054 mem_name_offset
+0x0055 mem_key_size
+0x0056 mem_conn_sm
+0x0057 mem_aco
+0x0063 mem_kc
+0x0073 mem_conn_timer
+0x0074 mem_sniff_attempt
+0x0075 mem_sniff_timeout
+0x0076 mem_dsniff
+0x0078 mem_amaddr
+0x0079 mem_lmo_opcode1
+0x007a mem_lmi_opcode1
+0x007b mem_lmo_reason1
+0x007c mem_lmo_tid1
+0x007d mem_lmo_opcode2
+0x007e mem_lmi_opcode2
+0x007f mem_lmo_reason2
+0x0080 mem_lmo_tid2
+0x0081 mem_bt_context_reserve
+0x0089 mem_current_sniff_attempt
+0x008a mem_current_sniff_timeout
+0x008b mem_nfreq_index_inq
+0x008c mem_nfreq_index_page
+0x008d mem_ninqy_index
+0x008e mem_fhs_misc
+0x008f mem_subsniff_instant
+0x0093 mem_subsniff_rate
+0x0094 mem_subsniff_tcmax
+0x0096 mem_subsniff_tsniff
+0x0097 mem_lpm_adjust
+0x0098 mem_sync_clke
+0x009e mem_lpm_current_mult
+0x009f mem_gpio_wakeup_low
+0x00a3 mem_gpio_wakeup_high
+0x00a7 mem_npage_index
+0x00a8 mem_page_mode
+0x00a9 mem_page_clk
+0x00ad mem_temp_am_addr
+0x00ae mem_temp_arq
+0x00af mem_len
+0x00b1 mem_clkn_bt
+0x00b5 mem_clke_bt
+0x00b9 mem_dpll_clkn
+0x00bd mem_connection_options
+0x00be mem_nameres_cnt
+0x00bf mem_txptr
+0x00c1 mem_slot_offset
+0x00c3 extm_fhs_misc
+0x00c4 extm_newconn_am_addr
+0x00c5 extm_class
+0x00c8 extm_lap
+0x00cb extm_uap
+0x00cc extm_nap
+0x00cf mem_rxbuf
+0x00e4 mem_debug_config
+0x00e5 mem_lch_code
+0x00e6 mem_fhs_am_addr
+0x00e7 mem_select_list_item
+0x00e8 mem_temp_reconn_record
+0x00e8 mem_record_bt_mode
+0x00e9 mem_temp_lap
+0x00ef mem_list_item_ptr
+0x00f1 mem_eir
+0x0155 mem_param_tx_setup
+0x0157 mem_param_rf_setup
+0x0159 mem_param_conn_access
+0x015b mem_param_clke_cal
+0x015d mem_param_pll_setup
+0x015f mem_param_rx_setup
+0x0161 mem_param_dpll_start_delay
+0x0163 mem_param_rt_rthalfslot
+0x0165 mem_param_clke_cal_le_1m
+0x0167 mem_param_clke_cal_le_2m
+0x0169 mem_param_clke_cal_le_coded
+0x016b mem_le_rxbuf
+0x026f mem_le_mic
+0x0273 mem_le_peer_mic
+0x0277 mem_le_mrand
+0x0287 mem_le_state
+0x0288 mem_le_mode
+0x0289 mem_le_tsniff
+0x028b mem_le_anchor
+0x028f mem_le_clk_offset
+0x0295 mem_le_receive_window
+0x0297 mem_le_plap
+0x029d mem_le_conn_handle
+0x029e mem_le_arq
+0x029f mem_le_ch
+0x02a0 mem_le_hop
+0x02a1 mem_le_event_count
+0x02a3 mem_le_supervision_timer
+0x02a7 mem_le_instant
+0x02a9 mem_le_channels
+0x02aa mem_le_op
+0x02ab mem_le_access
+0x02af mem_le_crcinit
+0x02b2 mem_le_window_size
+0x02b3 mem_le_slave_latency
+0x02b5 mem_le_superto
+0x02b7 mem_le_channel_map
+0x02bc mem_le_rx_phy
+0x02bd mem_le_tx_phy
+0x02be mem_le_update_new_param
+0x02c7 mem_le_sk
+0x02d7 mem_le_peer_sca
+0x02d8 mem_le_err_code
+0x02d9 mem_le_ll_pairing_fail_reason
+0x02da mem_le_context_reserve
+0x02df mem_le_testtype
+0x02e0 mem_cmd_le_create_conn
+0x02e1 mem_ucode_status
+0x02e2 mem_spid_tbuf
+0x02e3 mem_iicd_tbuf
+0x02e3 mem_addr_hi
+0x02e4 mem_addr_mi
+0x02e5 mem_addr_lo
+0x02e6 mem_iicd_addr
+0x02e7 mem_spid_rbuf
+0x02eb mem_ucode_buf
+0x02ed mem_ucode_len
+0x02ef mem_sched_addr
+0x02f1 mem_ucode_ptr
+0x02f3 mem_ucode_keybuf
+0x0303 mem_spid2_tbuf
+0x0304 mem_addr_hi2
+0x0305 mem_addr_mi2
+0x0306 mem_addr_lo2
+0x0307 mem_spid2_rbuf
+0x030b mem_reconnect_flag
+0x030c mem_switch_fail_master_count
+0x030d mem_app_evt_timer_count
+0x030e mem_l2cap_mem_start
+0x030e mem_l2cap_rxbuff1_len
+0x0310 mem_l2cap_rxbuff2_len
+0x0312 mem_l2cap_rxbuff_new
+0x0314 mem_l2cap_rxbuff_inuse
+0x0315 mem_l2cap_payload_ptr
+0x0317 mem_l2cap_rx_pkt_length
+0x0319 mem_l2cap_rx_cid
+0x031b mem_l2cap_rx_done
+0x031c mem_l2cap_signal_tx_buff_ptr
+0x031e mem_l2cap_signal_tx_payload_ptr
+0x0320 mem_l2cap_signal_tx_length
+0x0322 mem_sdp_tx_buff_ptr
+0x0324 mem_sdp_tx_payload_ptr
+0x0326 mem_sdp_tx_pkt_length
+0x0328 mem_rfcomm_tx_buff_ptr
+0x032a mem_rfcomm_tx_payload_ptr
+0x032c mem_rfcomm_tx_pkt_length
+0x032e memL2CAP_T1
+0x0330 mem_CONTROL_tasks
+0x0331 mem_send_config_req
+0x0332 mem_config_identifier
+0x0333 mem_config_req_dest_CID
+0x0335 mem_rfcomm_malloc_fail_flag
+0x0336 mem_message_to_uppersm
+0x0337 mem_upper_sm_remote_page
+0x0338 mem_upper_sm_reconn
+0x0339 mem_upper_sm_ss
+0x033a mem_tx_malloc_log
+0x037a mem_l2cap_mem_end
+0x037a mem_scid
+0x037c mem_cmd_length
+0x037e mem_tt2
+0x0380 mem_tt3
+0x0382 mem_id
+0x0384 mem_psm
+0x0386 mem_l2cap_sdpres_delay_time
+0x038a mem_lmo_header_length
+0x038b mem_lmo_header_opcode
+0x038c mem_lmo_payload
+0x039d mem_lmi_accepted_opcode
+0x039e mem_disconn_reason_send
+0x039f mem_tx_fixed_freq
+0x03a0 mem_rx_fixed_freq
+0x03a1 mem_ext_features_page
+0x03a2 mem_lmpext_ssp_enable
+0x03a4 mem_remote_sppcap
+0x03a5 mem_lmp_conn_state
+0x03a6 mem_soft_timer
+0x03a8 mem_pincode_state
+0x03a9 mem_sres_tid
+0x03aa mem_accptsco_tid
+0x03ab mem_wait_encryption
+0x03ac mem_sniff_payload
+0x03bc mem_aurand_send_delay_time
+0x03c0 memRemoteRPNBitRate
+0x03c1 memRemotePRNDataBits
+0x03c2 memRemotePRNStopBit
+0x03c3 memRemotePRNParity
+0x03c4 memRemotePRNFlowControl
+0x03c5 memRemotePRNXon
+0x03c6 memRemotePRNXoff
+0x03c7 mem_mod2div_temp
+0x03ca mem_contw_temp
+0x03cc mem_attrib_list
+0x03ce mem_current_adss
+0x03cf mem_current_channel
+0x03d0 mem_current_frame_type
+0x03d1 mem_current_fcs
+0x03d2 mem_current_length
+0x03d4 mem_rfcomm_uih_payload_ptr
+0x03d6 mem_uih_cmd_type
+0x03d7 mem_uih_length
+0x03d9 mem_param_payload_ptr
+0x03db mem_ms_param
+0x03dc mem_pn_credit_flow_type_info
+0x03dd mem_pn_priority
+0x03de mem_pn_acknowledg_timer
+0x03df mem_pn_max_retrans
+0x03e0 mem_rfcomm_send_adss
+0x03e1 mem_rfcomm_send_frame_type
+0x03e2 mem_rfcomm_send_fcs
+0x03e3 mem_rfcomm_send_offset
+0x03e4 mem_sdp_mem_start
+0x03e4 mem_sdp_uuid_search_ptr
+0x03ec mem_sdp_continue_byte
+0x03ee mem_sdp_pduid
+0x03ef mem_sdp_transactionid
+0x03f1 mem_sdp_transactionid_local
+0x03f3 mem_sdp_attribute_maxbyte
+0x03f5 mem_sdp_record_maxcnt
+0x03f7 mem_sdp_record_handle
+0x03fb mem_sdp_LACAP_found
+0x03fc mem_sdp_RFCOMM_found
+0x03fd mem_sdp_handle_list
+0x03fd mem_sdp_attrib_list
+0x041d mem_sdp_error_code
+0x041f mem_sdp_all_length
+0x0421 mem_handle_humber
+0x0422 mem_search_uuid
+0x0424 mem_sdp_mem_end
+0x0424 mem_random_number
+0x0434 mem_round_key
+0x0444 mem_kinit
+0x0454 mem_input_store
+0x0464 mem_x
+0x0474 mem_y
+0x0483 mem_y15
+0x0484 mem_key_store
+0x0495 mem_key_store_end
+0x0496 memp_ar_key
+0x0498 memp_ar_input
+0x049a mem_ar_hround
+0x04a4 mem_ec_infinite
+0x04a5 mem_ec_loopc
+0x04a7 mem_aes_cmac_data_length
+0x04a8 memdat
+0x04a8 mem_ax
+0x04c0 mem_ay
+0x04d8 mem_az
+0x04f0 mem_bx
+0x0508 mem_ax_256//32 bytes
+0x0508 mem_by
+0x0520 mem_bz
+0x0528 mem_ay_256// 32 bytes
+0x0538 mem_cx
+0x0548 mem_az_256// 32 bytes
+0x0550 mem_cy
+0x0567 mem_cy5
+0x0568 mem_bx_256// 32 bytes
+0x0568 mem_cz
+0x0580 mem_k
+0x0588 mem_by_256// 31 bytes
+0x0598 mem_align
+0x05a8 mem_bz_256//32 bytes
+0x05a8 mem_tmp1
+0x05a8 memahbak
+0x05c0 mem_tmp5
+0x05c8 mem_cx_256//32 bytes
+0x05c8 memahsave
+0x05d8 mem_tmp2
+0x05e8 mem_cy_256// 32 bytes
+0x05e8 memahsave_end
+0x05e8 mem_addr_padding
+0x05e9 mem_addr_value
+0x05f0 mem_tmp3
+0x05f0 mem_t1
+0x05f5 mem_addr_value_end
+0x05f8 mem_addr_iocap_end
+0x0607 mem_cy5_256// 1 byte
+0x0608 mem_cz_256// 32 bytes
+0x0608 mem_tmp0
+0x0608 mem_t0
+0x0610 mem_tmp0a
+0x0620 mem_t2
+0x0628 mem_k_256//32 bytes
+0x0638 mem_t3
+0x0648 mem_tmp1_256//32 bytes
+0x0650 mem_t7
+0x0668 mem_tmp5_256
+0x0688 mem_tmp2_256
+0x06a8 mem_tmp3_256
+0x06a8 mem_t1_256
+0x06c8 mem_tmp0_256
+0x06c8 mem_t0_256
+0x06e8 mem_t2_256
+0x0708 mem_t3_256
+0x0728 mem_t7_256
+0x0748 mem_p
+0x0760 mem_a
+0x0778 mem_b
+0x0790 mem_gx
+0x07a8 mem_gy
+0x07c0 memh0
+0x07e0 mem_p_256
+0x0800 mem_a_256
+0x0820 mem_gx_256
+0x0840 mem_gy_256
+0x0860 mem_le_slat
+0x0870 mem_sp_state_start
+0x0870 mem_sp_state
+0x0871 mem_master_sp_state
+0x0872 mem_sp_flag
+0x0873 mem_master_sp_flag
+0x0874 mem_sp_calc
+0x0875 mem_sp_dh_ready
+0x0876 mem_sp_localsm
+0x0877 mem_pairing_auth
+0x0878 mem_sp_local_key_send_count
+0x0879 mem_sp_remote_key_recv_count
+0x087a mem_sp_remote_key_invalid
+0x087b mem_sp_dhkey_invalid
+0x087c mem_gkey
+0x0880 mem_sp_state_end
+0x0880 mem_le_pubkey_remote_x_256
+0x0888 mem_sp_pubkey_remote
+0x0888 mem_sp_pubkey_remote_x
+0x08a0 mem_sp_pubkey_remote_x_end
+0x08a0 mem_le_pubkey_remote_y_256
+0x08a8 mem_sp_pubkey_remote_y
+0x08c0 mem_le_dhkey_256
+0x08c8 mem_sp_dhkey
+0x08e0 mem_sp_dhkey_end
+0x08e0 mem_sp_random_local
+0x08f0 mem_sp_random_local_end
+0x08f0 mem_sp_random_remote
+0x0900 mem_sp_random_remote_end
+0x0900 memresult
+0x0900 mem_sp_calc_result
+0x0900 memh
+0x0904 memg
+0x0908 memf
+0x090c meme
+0x0910 mem_sp_calc_result_high
+0x0910 memd
+0x0914 memc
+0x0918 memb
+0x091c mema
+0x0920 mem_sp_check_result
+0x0930 mem_sp_confirm_remote
+0x0940 mem_sp_prarm_stack
+0x0950 mem_UI_data_txbuff_length
+0x0952 mem_ipc_skip_continue_proc
+0x0953 mem_ui_timer_temp//length 4
+0x0953 mem_ipc_rega_temp
+0x0957 mem_hold_contr
+0x0959 mem_hold_contw
+0x095b mem_fifo_temp
+0x095c mem_pdatatemp
+0x0964 mem_temp//8 bytes
+0x096c mem_timeup// 4 bytes
+0x0970 mem_rega//4 bytes
+0x0974 mem_regb//4 bytes
+0x0978 mem_regc//3 bytes
+0x097b mem_contr//2 bytes
+0x097d mem_contw//2 bytes
+0x097f mem_contus
+0x0981 mem_contue
+0x0983 mem_contu
+0x0985 mem_queue
+0x0987 mem_loopcnt
+0x0989 mem_wakup_from_power_flag
+0x098a mem_saved_gpio_in
+0x098e mem_module_rx_error_data_buffer
+0x098e mem_shutter_random_mac_data_temp
+0x098e mem_shutter_config_data_temp
+0x098e mem_le_adv_channel_map_temp
+0x098e mem_le_data_len_temp//1byte
+0x098e mem_tx_fifo_map_temp
+0x098e mem_rpn_dlci//1byte
+0x098e mem_event_cmd_response_content//2byte
+0x098e mem_le_prand//16byte
+0x098e mem_AES_CMAC_k//16 bytes
+0x098e mem_regext_index//1 bytes
+0x098e mem_temp_block0
+0x098f mem_le_data_temp//15bytes
+0x098f mem_temp_block1
+0x099e mem_le_aes_128//16byte
+0x099e mem_regext//64 bytes
+0x099e mem_AES_CMAC_k1//16 bytes
+0x099e mem_temp_block2
+0x09ae mem_AES_CMAC_k2//16 bytes
+0x09ae mem_temp_block3
+0x09be mem_AES_CMAC_temp// 16 bytes
+0x09be mem_temp_block4
+0x09ce mem_AES_CMAC_M_last// 16 bytes
+0x09ce mem_module_uart_cmd
+0x09cf mem_module_uart_opcode
+0x09d0 mem_module_uart_len
+0x09d1 mem_module_temp_nl_discard_packet
+0x09d2 mem_temp_block5
+0x09de mem_le_mackey//16 bytes
+0x09de mem_app_receive_temp
+0x09de mem_key_value_temp
+0x09e0 mem_key_value
+0x09e2 mem_key_value_temp1
+0x09e3 mem_key_value_temp2
+0x09e4 mem_key_value_temp3
+0x09e5 mem_key_value_temp4
+0x09e6 mem_key_value_temp5
+0x09e7 mem_key_value_temp6
+0x09e8 mem_temp_block6
+0x09ee mem_scale_ratio
+0x09f1 mem_xcnt
+0x09f4 mem_scale_ratio_temp
+0x09f6 mem_mesh_NETKeyindex_and_APPKeyindex
+0x09f9 mem_mesh_access_layer_payload_len
+0x09fa mem_mesh_access_layer_payload
+0x09fa mem_mesh_access_payload
+0x0a2c mem_mesh_queue_ele_temp
+0x0a2c mem_mesh_queue_ele_timeout
+0x0a2d mem_mesh_queue_ele_packet_id
+0x0a2e mem_mesh_queue_ele_len
+0x0a2f mem_mesh_queue_ele_payload
+0x0a4e mem_le_txheader_mesh_temp
+0x0a75 mem_mesh_sha256_chunk_start
+0x0a75 mem_mesh_sha256_chunk1
+0x0ab5 mem_mesh_sha256_chunk2
+0x0af5 mem_mesh_sha256_chunk3
+0x0b35 mem_mesh_sha256_chunk4
+0x0b75 mem_mesh_Privacy_Plaintext
+0x0b75 mem_mesh_Privacy_Plaintext_Zero_String
+0x0b7a mem_mesh_Privacy_Plaintext_IV_Index
+0x0b7e mem_mesh_Privacy_Plaintext_Privacy_Random
+0x0b7e mem_mesh_Privacy_Plaintext_Privacy_Random_EncDST
+0x0b80 mem_mesh_Privacy_Plaintext_Privacy_Random_EncTransportPDU_or_NetMIC
+0x0b85 mem_mesh_PECB
+0x0b95 mem_nonce_ptr
+0x0b97 mem_ccm_data_len
+0x0b98 mem_ccm_data_ptr
+0x0b9a mem_ccm_mic
+0x0ba2 mem_ccm_type
+0x0ba3 mem_mesh_Device_UUID
+0x0bb3 mem_mesh_fast_gatt_ios_config_version
+0x0bb4 mem_mesh_fast_gatt_ios_config_max_length
+0x0bb5 mem_mesh_fast_gatt_ios_msg_payload_mac
+0x0bb7 mem_mesh_fast_gatt_ios_msg_payload
+0x0bd9 mem_mesh_receive_VID
+0x0bda mem_mesh_mic_cache_ptr
+0x0bdc mem_mesh_lower_transport_layer_payload_len
+0x0bdd mem_mesh_receive_model_message_payload
+0x0be8 mem_mesh_loopcnt_tmep
+0x0bea mem_mesh_rega_temp
+0x0bec mem_mesh_regb_temp
+0x0bee mem_mesh_regc_temp
+0x0bf0 mem_mesh_alarm_temp
+0x0bf2 mem_mesh_message_Transport_NetMIC_length
+0x0bf3 mem_mesh_recevice_message_DST
+0x0bf5 mem_mesh_message_NID
+0x0bf6 mem_mesh_message_TTL
+0x0bf7 mem_mesh_message_SEQ
+0x0bfa mem_mesh_message_SRC
+0x0bfc mem_mesh_message_DST
+0x0bfe mem_mesh_message_Transport_NetMIC
+0x0bfe mem_mesh_message_Transport_Head
+0x0bff mem_mesh_message_Transport_unsegmented_access_messagePDU
+0x0bff mem_mesh_message_Transport_segmented_access_messagePDU
+0x0bff mem_mesh_message_segment_access_SZMIC_SeqZero_SegO_SegN
+0x0c02 mem_mesh_message_Transport_segmented_access_messagePDU_Segment
+0x0c02 mem_mesh_message_Transport_NetMIC_end
+0x0c12 mem_mesh_nonce_struct
+0x0c1f mem_mesh_send_message_DST
+0x0c21 mem_mesh_last_message_SEQ
+0x0c24 mem_mesh_upper_transport_layer_payload_ptr
+0x0c26 mem_mesh_segmented_upper_transport_layer_payload_len
+0x0c27 mem_mesh_segmented_lower_transport_layer_SegZero
+0x0c29 mem_mesh_segmented_lower_transport_layer_SegO
+0x0c2a mem_mesh_segmented_lower_transport_layer_SegN
+0x0c2b mem_mesh_segmented_last_packet_upper_teansport_payload_len
+0x09f6 mem_uncom_the_first_two_buff
+0x0af6 mem_uncom_dest
+0x138e mem_uncom_clear_everytime_start
+0x138e mem_uncom_dest_index
+0x1390 mem_uncom_src_index
+0x1391 mem_uncom_block_len
+0x1392 mem_uncom_block_head
+0x1393 mem_uncom_block_body_ptr
+0x1395 mem_uncom_clear_everytime_end
+0x1395 mem_uncom_clear_once_start
+0x1395 mem_uncom_the_first_two_index
+0x1396 mem_uncom_repetitive
+0x1397 mem_uncom_left_len
+0x1398 mem_uncom_current_len
+0x139a mem_uncom_total_len
+0x139c mem_uncom_src_end
+0x139e mem_uncom_clear_once_end
+0x09f6 mem_hci_opcode_ocf
+0x09f8 mem_hci_opcode_ogf
+0x09f9 mem_hci_event_head_type
+0x09fa mem_hci_event_head_event_code
+0x09fb mem_hci_event_para_total_length
+0x09fc mem_hci_command_complete_num_hci_command_packet
+0x09fd mem_hci_command_complete_command_opcode
+0x09fd mem_hci_opcode
+0x09ff mem_hci_command_complete_return_parameter
+0x09ff mem_hci_command_complete_return_parameter_status
+0x0a00 mem_hci_command_complete_return_parameter_chip_id
+0x09f6 mem_vdk
+0x09f8 mem_vok
+0x09fc mem_omega
+0x0a02 mem_b1
+0x0a06 mem_b2
+0x0a0a mem_u1
+0x0a1a mem_u2
+0x0a2a mem_q
+0x09f6 mem_module_le_rx_data_len
+0x09f8 mem_module_le_rx_data_address
+0x09fa mem_module_le_rx_data_handle
+0x09fc mem_wechat_tx_buffer
+0x09fc mem_wechat_tx_bMagicNumber
+0x09fd mem_wechat_tx_bVer
+0x09fe mem_wechat_tx_nLength
+0x0a00 mem_wechat_tx_nCmdId
+0x0a02 mem_wechat_tx_nSeq1
+0x0a04 mem_wechat_tx_payload
+0x0b03 mem_wechat_rx_buffer
+0x0b03 mem_wechat_rx_bMagicNumber
+0x0b04 mem_wechat_rx_bVer
+0x0b05 mem_wechat_rx_nLength
+0x0b07 mem_wechat_rx_nCmdId
+0x0b09 mem_wechat_rx_nSeq
+0x0b0b mem_wechat_rx_payload
+0x0c0a mem_module_wechat_local_data_buffer
+0x09f6 mem_init_cnt
+0x09f8 mem_data_pre
+0x09fa mem_data_current
+0x09fc mem_data_sum
+0x09ff mem_data_value
+0x09f6 mem_tst_pktcnt_sync
+0x09f8 mem_tst_pktcnt_hec
+0x09fa mem_tst_pktcnt_crc
+0x09fc mem_tst_pktcnt_dmh
+0x09fe mem_tmp_buffer_head
+0x0a01 mem_tmp_buffer
+0x0a51 mem_tester_emulate
+0x0a52 mem_temp_payload
+0x0a52 test_mode_scenario
+0x0a53 test_mode_hopping_mode
+0x0a54 test_mode_tx_freq
+0x0a55 test_mode_rx_freq
+0x0a56 test_mode_power_mode
+0x0a57 test_mode_poll_period
+0x0a58 test_mode_packet_type
+0x0a59 test_mode_data_length
+0x0a5b mem_test_mode_old_debug_config
+0x0a5c mem_tester_cnt
+0x09f6 mem_usb_status
+0x09f7 mem_usb_fifo_empty
+0x09f8 mem_usb_read_len
+0x09fa mem_usb_txbuf
+0x0a3b mem_usb_txbuf1
+0x0a45 mem_usb_txbuf2
+0x0a4f mem_usb_rxbuf
+0x0a8f mem_usb_rxbuf_end
+0x0a90 mem_bufptr
+0x0a92 mem_remain
+0x0a93 mem_hidreportdesc_kb
+0x0a95 mem_hidreportdesc_m
+0x0a97 mem_devicedesc
+0x0aaa mem_confdesc
+0x0ae6 mem_string0
+0x0aeb mem_string1
+0x0b09 mem_string2
+0x0b27 mem_string3
+0x0b45 mem_cb_usb_config
+0x0b47 mem_usb_tx_interval
+0x0b48 mem_usb_vid_pid
+0x0b51 mem_usb_zero_packet
+0x0b53 mem_usb_ones_packet
+0x0b55 mem_usb_two_packet
+0x0b57 mem_usb0_state
+0x0b58 mem_usb_offline_check_gpio
+0x0b59 mem_usb_clear_mem_start
+0x0b59 mem_usb_setup
+0x0b59 mem_usb_setup_bmRequestType
+0x0b5a mem_usb_setup_bRequest
+0x0b5b mem_usb_setup_bValue
+0x0b5c mem_usb_setup_bValueH
+0x0b5d mem_usb_setup_wIndex
+0x0b5f mem_usb_setup_bLength
+0x0b60 mem_usb_setup_bLengthH
+0x0b61 mem_usb0_set_report_data
+0x0ba1 mem_usb0_get_report_data
+0x0be1 mem_usb_setup_bValue_temp
+0x0be3 mem_usb0_get_set_report
+0x0be4 mem_usb0_data_ready_report
+0x0be5 mem_usb_tx_win_enable
+0x0be6 mem_usb_tx_mac_enable
+0x0be7 mem_usb_idle_flag
+0x0be8 mem_usb_idle_rate
+0x0be9 mem_usb_get_protocol_flag
+0x0bea mem_usb_set_protocol_status
+0x0beb mem_usb_set_protocol_value
+0x0bec mem_usb_state
+0x0bed mem_usb_remote_wakeup
+0x0bee mem_usb_clear_remote_wakeup
+0x0bef mem_sdsystem_wakeup_flag
+0x0bf0 mem_usb_ep0_stall_status
+0x0bf1 mem_usb_ep1_stall_status
+0x0bf2 mem_usb_ep2_stall_status
+0x0bf3 mem_usb_ep3_stall_status
+0x0bf4 mem_dsc_info_data_pointer
+0x0bf6 mem_dsc_info_len
+0x0bf7 mem_usb_ep1_data
+0x0bf8 mem_usb_ep2_data
+0x0bf9 mem_usb_tx_enable
+0x0bfa mem_usb_device_enumeration_endflag
+0x0bfb mem_usb_wakestate_onetime_flag
+0x0bfc mem_usb_mac_wakeup_trig
+0x0bfd mem_usb_set_high_addr_flag
+0x0bfe mem_usb_clear_halt
+0x0bff mem_usb_mouse_data
+0x0c0f mem_usb_kb_data
+0x0c1f mem_usb_kb_multikey
+0x0c2f mem_usb_kb_system
+0x0c3f mem_usb_test_cnt
+0x0c41 mem_usb_test_kb
+0x0c4b mem_usb_clear_mem_end
+0x0c4b mem_dg_rssi_noise_buffer
+0x0d4b mem_dg_rssi_noise_dg_buffer
+0x0e4b mem_dg_rssi_noise_ms_buffer
+0x0f4b mem_dg_rssi_noise_kb_buffer
+
+0x0bdd mem_mesh_main_light_OnOff
+0x0bdd mem_mesh_background_light_OnOff
+0x0bdd mem_mesh_color_lightness
+0x0bdf mem_mesh_color_hue
+0x0be1 mem_mesh_color_saturation
+0x0bdd mem_mesh_vendor_timer_timing_index
+0x0bde mem_mesh_vendor_timer_timing_time
+0x0be2 mem_mesh_vendor_timer_timing_attr_type
+0x0be4 mem_mesh_vendor_timer_timing_attr_para
+0x0bdd mem_mesh_vendor_timer_timing_index_cyclic
+0x0bde mem_mesh_vendor_timer_timing_time_cyclic
+0x0be0 mem_mesh_vendor_timer_timing_weekdays_cyclic
+0x0be1 mem_mesh_vendor_timer_timing_attr_type_cyclic
+0x0be3 mem_mesh_vendor_timer_timing_attr_para_cyclic
+0x0be4 mem_mesh_vendor_timer_timing_cyclic_flag
+0x098e mem_mesh_subscription_eep_temp
+0x0ba3 mem_mesh_receive_service_uuid_company_id
+0x0ba5 mem_mesh_receive_service_uuid_vid
+0x0ba6 mem_mesh_receive_service_uuid_provisioning_type
+0x0ba7 mem_mesh_receive_service_uuid_mac
+0x0ba9 mem_mesh_receive_service_uuid_msg_id
+0x0baa mem_mesh_receive_service_uuid_package_num
+0x0bab mem_mesh_receive_service_uuid_length
+0x0bac mem_mesh_receive_service_uuid_payload_data
+0x0ba3 mem_mesh_receive_service_uuid_ios_data_company_id
+0x0ba5 mem_mesh_receive_service_uuid_ios_data_vid
+0x0ba6 mem_mesh_receive_service_uuid_ios_data_provisioning_type
+0x0ba7 mem_mesh_receive_service_uuid_ios_data_NID
+0x0ba8 mem_mesh_receive_service_uuid_ios_data_msg_id
+0x0ba9 mem_mesh_receive_service_uuid_ios_data_package_num
+0x0baa mem_mesh_receive_service_uuid_ios_data_length
+0x0bab mem_mesh_receive_service_uuid_ios_data_payload_data
+0x0bdd mem_mesh_subscription_element_address
+0x0bdf mem_mesh_subscription_value_address
+0x0be1 mem_mesh_subscription_model_identifier
+0x0bdd mem_mesh_generic_onoff_set_payload_OnOff
+0x0bde mem_mesh_generic_onoff_set_payload_TID
+0x0bdf mem_mesh_generic_onoff_set_payload_Transition_Time
+0x0be0 mem_mesh_generic_onoff_set_payload_Delay
+0x0bdd mem_mesh_scene_recall_payload_scene_number
+0x0bdf mem_mesh_scene_recall_payload_TID
+0x0be0 mem_mesh_scene_recall_payload_Transition_Time
+0x0be1 mem_mesh_scene_recall_payload_Delay
+0x0bdd mem_mesh_light_lightness_set_payload_lightness
+0x0bdf mem_mesh_light_lightness_set_payload_TID
+0x0be0 mem_mesh_light_lightness_set_payload_Transition_Time
+0x0be1 mem_mesh_light_lightness_set_payload_Delay
+0x0be2 mem_mesh_light_lightness_calc_lightness
+0x0bdd mem_mesh_CTL_Lightness
+0x0bdf mem_mesh_CTL_Temperature
+0x0be1 mem_mesh_CTL_Delta_UV
+0x0be3 mem_mesh_CTL_lightness_TID
+0x0be4 mem_mesh_CTL_lightness_Transition_Time
+0x0be5 mem_mesh_CTL_lightness_Delay
+0x0be6 mem_mesh_CTL_calc_lightness
+0x0be7 mem_mesh_CTL_calc_temperature
+0x0c12 mem_mesh_Network_Nonce
+0x0c12 mem_mesh_Network_Nonce_nonce_type
+0x0c13 mem_mesh_Network_Nonce_CTL_and_TTL
+0x0c14 mem_mesh_Network_Nonce_SEQ
+0x0c17 mem_mesh_Network_Nonce_SRC
+0x0c19 mem_mesh_Network_Nonce_Pad//0x0000
+0x0c1b mem_mesh_Network_Nonce_IV_Index
+0x0c12 mem_mesh_Application_Nonce
+0x0c12 mem_mesh_Application_Nonce_Nonce_Type
+0x0c13 mem_mesh_Application_Nonce_ASZMIC_and_Pad//
+0x0c14 mem_mesh_Application_Nonce_SEQ
+0x0c17 mem_mesh_Application_Nonce_SRC
+0x0c19 mem_mesh_Application_Nonce_DST
+0x0c1b mem_mesh_Application_Nonce_IV_Index
+0x0c12 mem_mesh_Device_Nonce
+0x0c12 mem_mesh_Device_Nonce_Nonce_Type
+0x0c13 mem_mesh_Device_Nonce_ASZMIC_and_Pad//
+0x0c14 mem_mesh_Device_Nonce_SEQ
+0x0c17 mem_mesh_Device_Nonce_SRC
+0x0c19 mem_mesh_Device_Nonce_DST
+0x0c1b mem_mesh_Device_Nonce_IV_Index
+0x09f9 mem_mesh_upper_transport_layer_payload_len
+0x02be mem_le_new_param
+0x02be mem_le_new_transmitwindowsize
+0x02bf mem_le_new_transmitwindowoffset
+0x02c1 mem_le_new_conninterval
+0x02c3 mem_le_new_connslavelatency
+0x02c5 mem_le_new_connsupervisiontimeout
+0x02be mem_le_new_map
+0x02be mem_le_new_m2s_phy
+0x02bf mem_le_new_s2m_phy
+0x016b mem_le_rxbuf_data_header
+0x016c mem_le_rxbuf_data_length
+0x016d mem_le_rxbuf_data_payload
+0x016b mem_le_rxbuf_data_ll_header
+0x016c mem_le_rxbuf_data_ll_length
+0x016d mem_le_rxbuf_data_ll_opcode
+0x016e mem_le_rxbuf_data_ll_control_data
+0x016b mem_le_rxbuf_adv_header
+0x016c mem_le_rxbuf_adv_length
+0x016d mem_le_rxbuf_adv_payload
+0x016b mem_le_rxbuf_adv_scan_req_header
+0x016c mem_le_rxbuf_adv_scan_req_length
+0x016d mem_le_rxbuf_adv_scan_req_scan_address
+0x0173 mem_le_rxbuf_adv_scan_req_adv_address
+0x016b mem_le_rxbuf_adv_connect_ind_header
+0x016c mem_le_rxbuf_adv_connect_ind_length
+0x016d mem_le_rxbuf_adv_connect_ind_init_address
+0x0173 mem_le_rxbuf_adv_connect_ind_adv_address
+0x0179 mem_le_rxbuf_adv_connect_ind_access_address
+0x017d mem_le_rxbuf_adv_connect_ind_crc_init
+0x0180 mem_le_rxbuf_adv_connect_ind_win_size
+0x0181 mem_le_rxbuf_adv_connect_ind_win_offset
+0x0183 mem_le_rxbuf_adv_connect_ind_interval
+0x0185 mem_le_rxbuf_adv_connect_ind_latency
+0x0187 mem_le_rxbuf_adv_connect_ind_timeout
+0x0189 mem_le_rxbuf_adv_connect_ind_channel_map
+0x018e mem_le_rxbuf_adv_connect_ind_hop_and_sca
+0x099e mem_le_search_handle_start
+0x09a0 mem_le_search_handle_end
+0x09a2 mem_le_att_offset
+0x09a2 mem_le_search_att_type_length
+0x09a3 mem_le_search_att_type
+0x09b3 mem_le_curr_att_len
+0x09b4 mem_le_cur_attlist_start_ptr
+0x09b6 mem_le_cur_handle_start
+0x09b8 mem_le_cur_handle_end
+0x09ba mem_le_cur_uuid_length
+0x09bb mem_le_cur_uuid
+0x016b mem_le_rxbuf_data_att_header
+0x016c mem_le_rxbuf_data_att_length
+0x016d mem_le_rxbuf_data_att_l2cap_length
+0x016f mem_le_rxbuf_data_att_cid
+0x0171 mem_le_rxbuf_data_att_opcode
+0x0172 mem_le_rxbuf_data_att_payload
+0x016b mem_le_rxbuf_data_continue_header
+0x016c mem_le_rxbuf_data_continue_length
+0x016d mem_le_rxbuf_data_continue_payload
+0x016b mem_le_rxbuf_data_att_write_header
+0x016c mem_le_rxbuf_data_att_write_length
+0x016d mem_le_rxbuf_data_att_write_l2cap_length
+0x016f mem_le_rxbuf_data_att_write_cid
+0x0171 mem_le_rxbuf_data_att_write_opcode
+0x0172 mem_le_rxbuf_data_att_write_handle
+0x0174 mem_le_rxbuf_data_att_write_payload
+0x016b mem_le_rxbuf_data_prepare_att_write_header
+0x016c mem_le_rxbuf_data_prepare_att_write_length
+0x016d mem_le_rxbuf_data_prepare_att_write_l2cap_length
+0x016f mem_le_rxbuf_data_prepare_att_write_cid
+0x0171 mem_le_rxbuf_data_prepare_att_write_opcode
+0x0172 mem_le_rxbuf_data_prepare_att_write_handle
+0x0174 mem_le_rxbuf_data_prepare_att_write_offset
+0x0176 mem_le_rxbuf_data_prepare_att_write_payload
+0x099e mem_wechat_initreq_base_request
+0x099e mem_wechat_authreq_base_request
+0x09a0 mem_wechat_authreq_protocol_version
+0x09a4 mem_wechat_authreq_auth_protocol
+0x09a6 mem_wechat_authreq_eam_mac_no_encrypt
+0x09a8 mem_wechat_authreq_mac_address
+0x09aa mem_wechat_authreq_device_address
+0x09b0 mem_wechat_indication_handle
+0x09b1 mem_wechat_write_handle
+0x09b2 mem_wechat_tx_buffer_ptr
+0x09b4 mem_wechat_rx_buffer_ptr
+0x09b6 mem_wechat_rx_push_data_cb
+0x09b8 mem_wechat_tx_nSeq
+0x09ba mem_wechat_tx_len
+0x09bc mem_wechat_tx_address
+0x09be mem_wechat_rx_len
+0x09c0 mem_wechat_rx_address
+0x09c2 mem_wechat_receive_push_data
+0x4000 mem_patch00
+0x4001 mem_patch01
+0x4002 mem_patch02
+0x4003 mem_patch03
+0x4004 mem_patch04
+0x4005 mem_patch05
+0x4006 mem_patch06
+0x4007 mem_patch07
+0x4008 mem_patch08
+0x4009 mem_patch09
+0x400a mem_patch0a
+0x400b mem_patch0b
+0x400c mem_patch0c
+0x400d mem_patch0d
+0x400e mem_patch0e
+0x400f mem_patch0f
+0x4010 mem_patch10
+0x4011 mem_patch11
+0x4012 mem_patch12
+0x4013 mem_patch13
+0x4014 mem_patch14
+0x4015 mem_patch15
+0x4016 mem_patch16
+0x4017 mem_patch17
+0x4018 mem_patch18
+0x4019 mem_patch19
+0x401a mem_patch1a
+0x401b mem_patch1b
+0x401c mem_patch1c
+0x401d mem_patch1d
+0x401e mem_patch1e
+0x401f mem_patch1f
+0x4020 mem_patch20
+0x4021 mem_patch21
+0x4022 mem_patch22
+0x4023 mem_patch23
+0x4024 mem_patch24
+0x4025 mem_patch25
+0x4026 mem_patch26
+0x4027 mem_patch27
+0x4028 mem_patch28
+0x4029 mem_patch29
+0x402a mem_patch2a
+0x402b mem_patch2b
+0x402c mem_patch2c
+0x402d mem_patch2d
+0x402e mem_patch2e
+0x402f mem_patch2f
+0x4030 mem_patch30
+0x4031 mem_patch31
+0x4032 mem_patch32
+0x4033 mem_patch33
+0x4034 mem_patch34
+0x4035 mem_patch35
+0x4036 mem_patch36
+0x4037 mem_patch37
+0x4038 mem_patch38
+0x4039 mem_patch39
+0x403a mem_patch3a
+0x403b mem_patch3b
+0x403c mem_patch3c
+0x403d mem_patch3d
+0x403e mem_patch3e
+0x403f mem_patch3f
+0x4040 mem_context
+0x4098 mem_current_amaddr
+0x4099 mem_lpm_mode
+0x409a mem_device_option
+0x409b mem_scan_mode
+0x409c mem_last_clkn
+0x40a0 mem_features
+0x40a8 mem_lap
+0x40ab mem_uap
+0x40ac mem_nap
+0x40ae mem_npage
+0x40af mem_glap
+0x40b2 mem_class
+0x40b5 mem_iscan_window
+0x40b7 mem_iscan_interval
+0x40b9 mem_pscan_window
+0x40bb mem_pscan_interval
+0x40bd mem_page_interval
+0x40bf mem_page_window
+0x40c1 mem_page_to
+0x40c3 mem_inq_window
+0x40c5 mem_fcomp_mul
+0x40c6 mem_fcomp_div
+0x40c7 mem_rx_window_init
+0x40c9 mem_rx_window_sniff
+0x40cb mem_rf_init_ptr
+0x40cd mem_last_type
+0x40ce mem_last_type_esco
+0x40cf mem_last_type_saved
+0x40d0 mem_retransmission_cnt
+0x40d2 mem_next_btclk
+0x40d6 mem_rf_rccal
+0x40d7 mem_handle_num
+0x40d8 mem_max_slot
+0x40d9 mem_eir_enable
+0x40da mem_afh_instant
+0x40de mem_afh_error_total
+0x40e0 mem_afh_cfg
+0x40e1 mem_afh_new_mod
+0x40e2 mem_afh_map_lo
+0x40e7 mem_afh_map_hi
+0x40ec mem_afh_used
+0x40ed mem_afh_index
+0x40ef mem_afh_map_new
+0x40fa mem_afh_map
+0x414a mem_afh_timer
+0x414e mem_afh_classify_channel_map
+0x4158 mem_chip_functions
+0x415a mem_lpm_wake_lock
+0x415c mem_lpm_interval
+0x415e mem_lpm_overhead
+0x415f mem_lpm_hibernate_switch
+0x4160 mem_esco_addr
+0x4161 mem_sniff_unint_lost
+0x4162 mem_ptt
+0x4163 mem_sleep_counter//should be 0x41fc in REVC
+0x4167 mem_sleep_counter_all
+0x416b mem_sleep_clkn
+0x4171 mem_sniff_rcv
+0x4174 mem_sniff_lost
+0x4177 mem_clks_per_lpo
+0x417a mem_lpm_mult
+0x417b mem_lpm_mult_timeout
+0x417c mem_lpm_mult_cnt
+0x417d mem_lpm_config
+0x4180 mem_lpm_xtalcnt
+0x4181 mem_lpm_buckcnt
+0x4182 mem_lpm_ldocnt
+0x4183 mem_lpm_isogate
+0x4184 mem_lpm_isogate_final
+0x4185 mem_lpm_ctrl3
+0x4189 mem_saved_gpio// should be 0x421e in REVC
+0x419d mem_saved_gsel
+0x41a0 mem_saved_mark
+0x41a8 mem_saved_spidctrl
+0x41a9 mem_patch_ptr
+0x41ab mem_patch_len
+0x41ad mem_timers
+0x41cd mem_link_key_exists
+0x41ce mem_link_key
+0x41de mem_hci_cmd
+0x41df mem_hci_conn_handle
+0x41e0 mem_hci_plap
+0x41e3 mem_hci_puap
+0x41e4 mem_hci_pnap
+0x41e6 mem_loadcode_times
+0x41e7 mem_llid
+0x41e8 mem_tx_lch
+0x41e9 mem_tx_len
+0x41eb mem_tx_power
+0x41ec mem_rf_init_data
+0x41ed mem_system_clk
+0x41ee mem_xtal_freq
+0x41ee mem_gain_fix
+0x41ef mem_le_dsniff
+0x41f1 mem_le_conn_interval
+0x41f3 mem_le_txheader
+0x41f4 mem_le_txlen
+0x41f5 mem_le_txpayload
+0x42f5 mem_le_name_len
+0x42f6 mem_le_name
+0x4314 mem_le_ltk
+0x4324 mem_ltk_exists
+0x4325 mem_le_rconfirm
+0x4335 mem_le_srand
+0x4345 mem_le_iat
+0x4346 mem_le_rat
+0x4347 mem_le_preq
+0x4348 mem_le_preq_iocap
+0x4349 mem_le_preq_oob
+0x434a mem_le_preq_auth
+0x434b mem_le_preq_max_keysize
+0x434c mem_le_preq_init_key_distribution
+0x434d mem_le_preq_resp_key_distribution
+0x434e mem_le_pres
+0x434f mem_le_pres_iocap
+0x4350 mem_le_pres_oob
+0x4351 mem_le_pres_auth
+0x4352 mem_le_pres_max_keysize
+0x4353 mem_le_pres_init_key_distribution
+0x4354 mem_le_pres_resp_key_distribution
+0x4355 mem_le_notify_handle
+0x4357 mem_le_search_uuid_length
+0x4358 mem_le_search_uuid
+0x4368 mem_le_conn_param
+0x4368 mem_le_conn_peer_addr_type
+0x4369 mem_le_conn_peer_addr
+0x436f mem_le_conn_own_addr_type
+0x4370 mem_le_interval_min
+0x4372 mem_le_interval_max
+0x4374 mem_le_latency
+0x4376 mem_le_timeout
+0x4378 mem_le_lap
+0x437b mem_le_uap
+0x437c mem_le_nap
+0x437e mem_le_local_mtu
+0x4380 mem_le_remote_mtu
+0x4382 mem_le_skdm
+0x438a mem_le_skds
+0x4392 mem_le_init_superto
+0x4394 mem_ui_le_uuid_table
+0x4396 mem_le_secure_connect_flag
+0x4397 mem_le_secure_connect_state
+0x4398 mem_le_sc_confirm_gkey_flag
+0x4399 mem_le_pairing_state
+0x439a mem_le_enc_state
+0x439b mem_le_pairing_mode
+0x439c mem_le_tk
+0x43a0 mem_le_ediv
+0x43a2 mem_le_rand
+0x43aa mem_le_irk
+0x43ba mem_le_transmit_window
+0x43be mem_le_configuration
+0x43bf mem_le_fixed_ltk
+0x43cf mem_le_pairing_handle
+0x43d1 mem_le_packet_llid
+0x43d2 mem_le_l2cap_size
+0x43d4 mem_le_packet_len_recved
+0x43d6 mem_le_payload_ptr
+0x43d8 mem_le_signaling_identifier
+0x43d9 mem_le_l2cap_signaling_conn_param_update_rsp_result
+0x43db mem_le_md_count
+0x43dc mem_ble_l2cap_tx_buff0_ptr
+0x43de mem_ble_l2cap_tx_buff_size_ptr
+0x43e0 mem_le_scan_enable
+0x43e1 mem_le_scan_interval
+0x43e3 mem_le_scan_window
+0x43e5 mem_le_adv_data_len
+0x43e6 mem_le_adv_data
+0x4405 mem_le_scan_data_len
+0x4406 mem_le_scan_data
+0x4425 mem_le_adv_enable
+0x4426 mem_le_adv_param
+0x4426 mem_le_adv_interval
+0x4428 mem_le_adv_type
+0x4429 mem_le_adv_own_addr_type
+0x442a mem_le_adv_direct_addr
+0x4430 mem_le_adv_channel_map
+0x4431 mem_le_scan_params
+0x4431 mem_le_scan_type
+0x4432 mem_le_scan_own_addr_type
+0x4433 mem_le_l2cap_att_states
+0x4434 mem_le_att_opcode
+0x4435 mem_le_att_handle
+0x4437 mem_le_search_res
+0x4438 mem_le_wechat_air_sync_ptr
+0x443a mem_le_local_feature
+0x4442 mem_le_tx_phys
+0x4443 mem_le_rx_phys
+0x4444 mem_remote_rx_max_octets
+0x4446 mem_remote_rx_max_time
+0x4448 mem_remote_tx_max_octets
+0x444a mem_remote_tx_max_time
+0x444c mem_local_rx_max_octets
+0x444e mem_local_rx_max_time
+0x4450 mem_local_tx_max_octets
+0x4452 mem_local_tx_max_time
+0x4454 mem_app_handshake_flag
+0x4455 mem_sniff_param_interval
+0x4457 mem_sniff_param_attempt
+0x4459 mem_sniff_param_timeout
+0x445b mem_cb_check_wakelock
+0x445d mem_cb_before_hibernate
+0x445f mem_cb_before_lpm
+0x4461 mem_cb_le_process
+0x4463 mem_cb_bt_process
+0x4465 mem_cb_idle_process
+0x4467 mem_cb_bb_event_process
+0x4469 mem_cb_discovry_timeout
+0x446b mem_cb_att_write
+0x446d mem_cb_ble_transmit
+0x446f mem_cb_event_timer
+0x4471 mem_cb_bt_set_mult
+0x4473 mem_cb_spi_flash_write_complate
+0x4475 mem_cb_spi2_flash_write_complate
+0x4477 mem_cb_bt_slave_match
+0x4479 mem_eeprom_base
+0x447b mem_unsniff2sniff_timer_count
+0x447c mem_wake_up_delay_timer
+0x447d mem_app_connection_options
+0x447e mem_app_disconn_reason
+0x4480 mem_app_disconn_reason_flag
+0x4482 mem_lpm_delay_after_sniff
+0x4483 mem_gain_table
+0x4486 mem_xrecord_mode
+0x4487 mem_eeprom_block_size
+0x4488 mem_spi_init_clk
+0x4489 mem_spi_init_delay_time
+0x448a mem_spi_ncs_gpio
+0x448b mem_nv_data_ptr
+0x448d mem_nv_data_number
+0x448e mem_queue_ptr
+0x4490 mem_ui_led_struct_num
+0x4491 mem_ui_led_struct_ptr
+0x4493 mem_3v_adc_io_data
+0x4495 mem_3v_adc_hvin_data
+0x4497 mem_2v_adc_vinlpm_data
+0x4499 mem_1v_adc_io_data
+0x449b mem_5v_adc_hvin_data
+0x449d mem_3v_adc_vinlpm_data
+0x449f mem_app_adc_read_count
+0x44a0 mem_start_adc_clkn
+0x44a1 mem_reference_voltage
+0x44a3 mem_adc_config_flag
+0x44a4 mem_adc_channel
+0x44a5 mem_adc_current_value
+0x44a7 mem_adc_power_flag//bit0:low power falg ; bit1:no power flag
+0x44a8 mem_spi_write_addr
+0x44ab mem_spi_write_ptr
+0x44ad mem_spi_write_len
+0x44af mem_spi_write_flash_sm
+0x44b0 mem_spi2_write_addr
+0x44b3 mem_spi2_write_ptr
+0x44b5 mem_spi2_write_len
+0x44b7 mem_spi2_write_flash_sm
+0x44b8 mem_spi_cs_gpio
+0x44b9 mem_spi_si_gpio
+0x44ba mem_spi_so_gpio
+0x44bb mem_spi_sclk_gpio
+0x44bc mem_spi_wp_gpio
+0x44bd mem_spi_hold_gpio
+0x44be mem_spi2_cs_gpio
+0x44bf mem_spi2_si_gpio
+0x44c0 mem_spi2_so_gpio
+0x44c1 mem_spi2_sclk_gpio
+0x44c2 mem_spi2_wp_gpio
+0x44c3 mem_spi2_hold_gpio
+0x44c4 mem_eeprom_wp_gpio
+0x44c5 mem_eeprom_scl_gpio
+0x44c6 mem_eeprom_sda_gpio
+0x44c7 mem_kscan_ptr
+0x44c9 mem_key_num_ptr
+0x44c9 mem_keyscan_ptr
+0x44cb mem_power_param_ptr
+0x44cd mem_enable_spi2_flag
+0x44ce mem_seqi
+0x44cf mem_set_cdb_on
+0x44d0 mem_syn_cal_ctrl
+0x44d1 mem_ac_detect_gpio
+0x44d2 mem_ac_detect_control
+0x44d2 mem_ac_detect_div
+0x44d3 mem_ac_detect_window
+0x44d4 mem_rf_debug_rx_gpio
+0x44d5 mem_rf_debug_tx_gpio
+0x44d6 mem_l2cap_xmem_start
+0x44d6 mem_l2cap_tx_multi_offset//0 means single packet
+0x44d8 mem_sdp_remote_cid
+0x44da mem_rfcomm_remote_cid
+0x44dc mem_hid_ctrl_remote_cid
+0x44de mem_hid_int_remote_cid
+0x44e0 mem_sdp_state
+0x44e1 mem_rfcomm_state
+0x44e2 mem_hid_control_state
+0x44e3 mem_hid_interrupt_state
+0x44e4 mem_spp_state
+0x44e5 mem_ML2CAP_comm_id
+0x44e6 mem_used_map
+0x44e7 mem_tx_fifo0
+0x44e7 mem_tx_fifo0_map
+0x44e8 mem_tx_fifo0_ptr
+0x44ea mem_tx_fifo1
+0x44ea mem_tx_fifo1_map
+0x44eb mem_tx_fifo1_ptr
+0x44ed mem_tx_fifo2
+0x44ed mem_tx_fifo2_map
+0x44ee mem_tx_fifo2_ptr
+0x44f0 mem_tx_fifo3
+0x44f0 mem_tx_fifo3_map
+0x44f1 mem_tx_fifo3_ptr
+0x44f3 mem_tx_fifo_end
+0x44f3 mem_l2cap_lpm_txbuf
+0x45f3 mem_l2cap_flow_ctrl_flag
+0x45f4 mem_l2cap_pending_item
+0x45f5 mem_l2cap_rcv_hidtype
+0x45f6 mem_l2cap_xmem_end
+0x45f6 mem_lmo_header_opcode_x
+0x45f7 mem_lmp_version
+0x45fa mem_lmp_subversion
+0x45fc mem_local_name_length
+0x45fd mem_local_name
+0x4600 mem_local_name2
+0x4640 mem_local_name_end
+0x4641 mem_unsniff2sniff_timer
+0x4642 mem_switch_flag
+0x4643 mem_classic_bt_flag
+0x4644 mem_encapsulated_major_type
+0x4645 mem_encapsulated_minor_type
+0x4646 mem_encapsulated_len
+0x4647 mem_pn_dlci
+0x4648 mem_pn_max_frame_size
+0x464a memFCStemp1
+0x464b memFCStemp2
+0x464c memFCStemp3
+0x464d mem_rfcomm_initiator
+0x464e mem_remote_spp_channel
+0x464f mem_HIUfcs_SPP
+0x4650 mem_HIUfcs_SPP_WCredits
+0x4651 mem_rfcomm_send_more_pkt
+0x4652 mem_remote_credits
+0x4653 mem_credit_given
+0x4654 mem_ms_channel
+0x4655 mem_rfcomm_credit_flag
+0x4656 mem_rfcomm_max_frame_size
+0x4658 mem_rfcomm_credit_init_data
+0x4659 mem_cb_receive_spp_data
+0x465b mem_nl_rx_data_src
+0x465d mem_nl_rx_len_all
+0x465f mem_ui_uuid_table
+0x4661 mem_all_uuid_16bits
+0x4677 mem_all_uuid_128bits
+0x4699 mem_sdp_l2capch_ptr
+0x469b mem_ccm_pcnt_tx
+0x46a0 mem_ccm_pcnt_rx
+0x46a5 mem_ccm_last_mic
+0x46a9 mem_ccm_iv
+0x46a9 mem_ccm_ivm
+0x46ad mem_ccm_ivs
+0x46b1 mem_ccm_len
+0x46b3 mem_ccm_rx_ptr
+0x46b5 mem_sc_only_mode
+0x46b6 mem_sp_debug_mode
+0x46b7 mem_secure_connections_enable
+0x46b8 mem_sp_local_key_invalid
+0x46b9 mem_sc_calc
+0x46ba mem_sc_local_key_invalid
+0x46bb mem_sc_private_key_256
+0x46db mem_sc_pubkey_local_x_256
+0x46fb mem_sc_pubkey_local_y_256
+0x471b mem_sp_private_key
+0x4733 mem_sp_pubkey_local
+0x4733 mem_sp_pubkey_local_x
+0x474b mem_sp_pubkey_local_x_end
+0x474b mem_sp_pubkey_local_y
+0x4763 mem_ssp_enable
+0x4764 mem_lmp_io_cap_payload_iocap
+0x4765 mem_lmp_io_cap_payload_oob_auth_data
+0x4766 mem_lmp_io_cap_payload_auth_req
+0x4767 mem_sp_state_xmem
+0x4767 mem_sp_iocap_remote
+0x476a mem_flag_mode_ssp_pin
+0x476b mem_ssp_mode_flag
+0x476c mem_authentication_passkey_times
+0x476d mem_passkey_1bit
+0x476e mem_flag_pairing_state
+0x476f mem_sp_state_xmem_end
+0x476f mem_ipc_lock_bt
+0x4770 mem_ipc_lock_c51
+0x4771 mem_ipc_fifo_bt2c51
+0x4779 mem_ipc_fifo_c512bt
+0x4781 mem_ui_button_timer
+0x4782 mem_ui_button_last_state
+0x4783 mem_ui_timer_last_btclk
+0x4787 mem_discovery_timeout_timer_count
+0x4789 mem_hid_handshake_timer_count
+0x478a memui_reconnect_mode
+0x478b mem_ui_state_map
+0x478d mem_ui_profile_supported
+0x478e mem_ui_button_timeout
+0x478f mem_ui_button_gpio
+0x4790 mem_discovery_timeout
+0x4792 mem_pin_length
+0x4793 mem_pin
+0x47a3 mem_dummy
+0x47a6 mem_seq
+0x47a7 mem_context_cnt
+0x47a8 mem_context_map
+0x47a9 mem_context_new
+0x4aa9 mem_att_cmd_len
+0x4aaa mem_att_cmd
+0x4ab9 mem_att_resp_handle
+0x4aba mem_att_resp_len
+0x4abb mem_att_resp
+0x4ad9 mem_meter_att_list
+0x47a3 mem_mesh_vendor_mesh_receive_tid
+0x47a4 mem_mesh_vendor_mesh_send_tid
+0x47a5 mem_mesh_vendor_timer_current_time
+0x47a9 mem_system_time
+0x47ad mem_mesh_adv_enable
+0x47ae mem_mesh_adv_interval
+0x47b0 mem_mesh_adv_data_len
+0x47b1 mem_mesh_adv_data
+0x47d0 mem_mesh_adv_scan_channel
+0x47d1 mem_mesh_calc_ConfirmationCloud_data
+0x47d1 mem_mesh_ConfirmationCloud_RandomB
+0x47d9 mem_mesh_ConfirmationCloud_RandomA
+0x47e1 mem_mesh_AuthValueProv
+0x47f1 mem_mesh_ConfirmationCloud
+0x4801 mem_mesh_ConfirmationDevice
+0x4801 mem_mesh_calc_ConfirmationDevice_data
+0x4801 mem_mesh_provisioning_random_A
+0x4809 mem_mesh_provisioning_random_B
+0x4811 mem_mesh_AuthValueDevice
+0x4821 mem_mesh_Device_Key
+0x4831 mem_mesh_Confirmationkey
+0x4841 mem_mesh_sha256_ConfirmationKey_ascii
+0x4850 mem_mesh_sha256_SessionKey_ascii
+0x485a mem_mesh_sha256_DeviceKey_ascii
+0x4863 mem_mesh_sha256_load_first_data_flag
+0x4864 mem_mesh_sha256_data_len_byte
+0x486c mem_mesh_sha256_data_len_bit
+0x4874 mem_mesh_sha256_data_end_addr
+0x4876 mem_mesh_sha256_data_len_addr
+0x4878 mem_mesh_sha256_chunk_count
+0x4879 mem_mesh_sha256_chunk_data_ptr
+0x487b mem_mesh_sha256_chunk_ptr
+0x487d mem_k2_P_len
+0x487e mem_k2_P
+0x488e mem_k2_N
+0x489e mem_k2_SALT
+0x48ae mem_k2_T
+0x48be mem_k2_T0
+0x48be mem_k2_T1
+0x48ce mem_k2_NID
+0x48cf mem_k2_T3
+0x48df mem_k2_T2
+0x48ef mem_k4_SALT
+0x48ff mem_k4_T
+0x490f mem_k4_id6_01
+0x491f mem_k4_k4N
+0x492f mem_mesh_transport_AID
+0x4930 mem_mesh_provisioned_flag
+0x4931 mem_mesh_Provisioning_State_Flag
+0x4932 mem_mesh_Device_PID
+0x4933 mem_mesh_UUID_FeatureFlag
+0x4934 mem_mesh_PDU_RFU
+0x4936 mem_mesh_OOB_information
+0x4938 mem_mesh_Encrypt_Provisioning_Data
+0x4938 mem_mesh_provisioning_data_Mac_addr
+0x493a mem_mesh_KeyFresh_and_Update_flag
+0x493b mem_mesh_Network_Key
+0x494b mem_mesh_last_IV_Index_byte
+0x494c mem_mesh_Unicast_Address
+0x494e mem_mesh_adv_last_time
+0x4952 mem_mesh_send_packet_timeout
+0x4954 mem_mesh_gatt_package_receive_package_num
+0x4955 mem_mesh_gatt_package_receive_package_total_length
+0x4956 mem_mesh_gatt_package_receive_msg_id_last
+0x4957 mem_mesh_gatt_package_receive_msg_id_new
+0x4958 mem_mesh_gatt_package_send_msg_id
+0x4959 mem_mesh_three_tuple_ProductID
+0x495d mem_mesh_three_tuple_MAC
+0x4963 mem_mesh_three_tuple_secret
+0x4973 mem_mesh_three_tuple_ProductID_little_endian
+0x4977 mem_mesh_cb_receive_advertising
+0x4979 mem_mesh_cb_receive_access_message
+0x497b mem_mesh_cb_finish_pairing
+0x497b mem_mesh_cb_receive_config_appkey_add
+0x497d mem_mesh_cb_generic_onoff_set
+0x497f mem_mesh_cb_scene_recall
+0x4981 mem_mesh_cb_light_lightness_set
+0x4983 mem_mesh_cb_light_ctl_set
+0x4985 mem_mesh_cb_main_light_onoff_set
+0x4987 mem_mesh_cb_background_onoff_set
+0x4989 mem_mesh_cb_color_set
+0x498b mem_mesh_cb_network_relay
+0x498d mem_mesh_cb_receive_node_reset
+0x498f mem_mesh_cb_seq_changed
+0x4991 mem_mesh_cb_subscriptuion_list_changed
+0x4993 mem_mesh_cb_vendor_timing_changed
+0x4995 mem_mesh_core_feature
+0x4997 mem_mesh_element_number
+0x4998 mem_mesh_element_device_ptr
+0x499a mem_mesh_element_device_length
+0x499c mem_mesh_segmented_access_message_SZMIC
+0x499d mem_mesh_segmented_access_message_SeqZero
+0x499f mem_mesh_segmented_access_message_SegO
+0x49a0 mem_mesh_segmented_access_message_SegN
+0x49a1 mem_mesh_segmented_access_message_BlockAck
+0x49a5 mem_mesh_segmented_access_message_receive_finish
+0x49a6 mem_mesh_segmented_access_message_current_length
+0x49a7 mem_mesh_segmented_access_message_Segment
+0x49cb mem_mesh_last_CTL_Temperature
+0x49cd mem_mesh_receive_group_address
+0x49ce mem_mesh_receive_element_number
+0x49cf mem_mesh_IV_Index
+0x49d3 mem_mesh_TMALL_cache_start
+0x49d3 mem_mesh_TMALL_SRC1
+0x49d5 mem_mesh_TMALL_SEQ1
+0x49d8 mem_mesh_TMALL_cache
+0x4a05 mem_mesh_TMALL_cache_end
+0x4a05 mem_mesh_transport_message_mic_cache
+0x4a05 mem_mesh_transport_message_mic_cache_buff1
+0x4a09 mem_mesh_transport_message_mic_cache_buff2_10
+0x4a2d mem_mesh_application_key
+0x4a3d mem_mesh_ASZMIC
+0x4a3e mem_mesh_access_message_mic_cache
+0x4a3e mem_mesh_access_message_mic_cache_buff1
+0x4a42 mem_mesh_access_message_mic_cache_buff2_10
+0x4a66 mem_mesh_send_message_SEQ
+0x4a69 mem_mesh_send_message_SRC
+0x4a6b mem_mesh_send_message_TTL
+0x4a6c mem_mesh_send_upper_layer_IVI_and_NID
+0x4a6d mem_mesh_send_upper_layer_CTL_and_TTL
+0x4a6e mem_mesh_send_upper_layer_SEQ
+0x4a71 mem_mesh_send_upper_layer_SRC
+0x4a73 mem_mesh_send_upper_layer_DST
+0x4a75 mem_mesh_send_access_lower_transport_layer
+0x4a85 mem_mesh_send_network_layer_NetMIC
+0x4a89 mem_mesh_element_device
+0x4a89 mem_mesh_element_device_group_addr
+0x4a8b mem_mesh_element_device_queue_each_size
+0x4a8c mem_mesh_element_device_queue_length
+0x4a8d mem_mesh_element_device_queue_current_num
+0x4a8e mem_mesh_element_device_queue_read_ptr
+0x4a8f mem_mesh_element_device_queue_write_ptr
+0x4a90 mem_mesh_element_device_queue_ele
+0x4b18 mem_mesh_element_device_timing_ptr
+0x4b1a mem_mesh_element_device_element_subscription_label
+0x4b2a mem_mesh_element_device1
+0x4bcb mem_mesh_element_device2
+0x4c6c mem_mesh_element_timing
+0x4dac mem_mesh_element_timing1
+0x4eec mem_mesh_element_timing2
+0x47a3 mem_antl_lpm_interval
+0x47a5 mem_antl_adv_interval
+0x47a7 mem_antl_slow_adv_lpm_interval
+0x47a9 mem_antl_slow_adv_adv_interval
+0x47ab mem_antl_led_style
+0x47ab mem_antl_led_type
+0x47ac mem_antl_led_blink_count
+0x47ad mem_antl_led_gpio
+0x47ae mem_antl_led_on_time
+0x47b0 mem_antl_led_off_time
+0x47b2 mem_antl_led_cb_on
+0x47b4 mem_antl_led_cb_off
+0x47b6 mem_antl_buzzer_style
+0x47b6 mem_antl_buzzer_type
+0x47b7 mem_antl_buzzer_blink_count
+0x47b8 mem_antl_buzzer_gpio
+0x47b9 mem_antl_buzzer_on_time
+0x47bb mem_antl_buzzer_off_time
+0x47bd mem_antl_buzzer_cb_on
+0x47bf mem_antl_buzzer_cb_off
+0x47c1 mem_antl_fast_adv_led_style
+0x47c1 mem_antl_fast_adv_led_type
+0x47c2 mem_antl_fast_adv_led_blink_count
+0x47c3 mem_antl_fast_adv_led_gpio
+0x47c4 mem_antl_fast_adv_led_on_time
+0x47c6 mem_antl_fast_adv_led_off_time
+0x47c8 mem_antl_slow_adv_led_style
+0x47c8 mem_antl_slow_adv_led_type
+0x47c9 mem_antl_slow_adv_led_blink_count
+0x47ca mem_antl_slow_adv_led_gpio
+0x47cb mem_antl_slow_adv_led_on_time
+0x47cd mem_antl_slow_adv_led_off_time
+0x47cf mem_antl_power_starting_led_style
+0x47cf mem_antl_power_starting_led_type
+0x47d0 mem_antl_power_starting_led_blink_count
+0x47d1 mem_antl_power_starting_led_gpio
+0x47d2 mem_antl_power_starting_led_on_time
+0x47d4 mem_antl_power_starting_led_off_time
+0x47d6 mem_antl_power_starting_buzzer_style
+0x47dd mem_antl_power_off_led_style
+0x47dd mem_antl_power_off_led_type
+0x47de mem_antl_power_off_led_link_count
+0x47df mem_antl_power_off_led_gpio
+0x47e0 mem_antl_power_off_led_on_time
+0x47e2 mem_antl_power_off_led_off_time
+0x47e4 mem_antl_power_off_buzzer_style
+0x47e4 mem_antl_power_off_buzzer_type
+0x47e5 mem_antl_power_off_buzzer_link_count
+0x47e6 mem_antl_power_off_buzzer_gpio
+0x47e7 mem_antl_power_off_buzzer_on_time
+0x47e9 mem_antl_power_off_buzzer_off_time
+0x47eb mem_antl_alert_led_stlye
+0x47f2 mem_antl_alert_buzzer_stlye
+0x47f2 mem_antl_alert_buzzer_type
+0x47f3 mem_antl_alert_buzzer_blink_count
+0x47f4 mem_antl_alert_buzzer_gpio
+0x47f5 mem_antl_alert_buzzer_on_time
+0x47f7 mem_antl_alert_buzzer_off_time
+0x47f9 mem_antl_key_led_style
+0x47f9 mem_antl_key_led_type
+0x47fa mem_antl_key_led_blink_count
+0x47fb mem_antl_key_led_gpio
+0x47fc mem_antl_key_led_on_time
+0x47fe mem_antl_key_led_off_time
+0x4800 mem_antl_key_buzzer_style
+0x4807 mem_antl_queue_width
+0x4808 mem_antl_queue_depth
+0x4809 mem_antl_queue_curr_num
+0x480a mem_antl_queue_read_ptr
+0x480b mem_antl_queue_write_ptr
+0x480c mem_antl_queue_buff
+0x485c mem_antl_key_scan_enable
+0x485d mem_antl_led_num
+0x485e mem_antl_led_gpio_map
+0x4862 mem_antl_power_param
+0x4862 mem_antl_power_state
+0x4863 mem_antl_power_timer
+0x4864 mem_antl_power_off_timeout
+0x4865 mem_antl_power_starting_timeout
+0x4866 mem_antl_power_off_cb
+0x4868 mem_antl_power_starting_cb
+0x486a mem_antl_power_standby_cb
+0x486c mem_event_button_up_cb
+0x486e mem_antl_key_num
+0x486f mem_cb_antl_key
+0x4871 mem_antl_key_conf0
+0x4875 mem_antl_key0_press
+0x4884 mem_antl_key0_release
+0x4893 mem_antl_conn_updata_procedure_state
+0x4894 mem_client_characteristic_configuration_descriptor
+0x4896 mem_adc_timer
+0x4898 mem_antl_conn_update_timer
+0x4899 mem_antl_send_updata_le_param_timer
+0x489a mem_antl_le_sleep_timer
+0x489c mem_antl_fast_adv_timer
+0x489e mem_antl_fast_adv_timeout
+0x48a0 mem_antl_le_sleep_timeout
+0x48a2 mem_double_click_timer
+0x48a3 mem_butten_click_cnt
+0x48a4 mem_antl_led_state
+0x48a5 mem_antl_buzzer_state
+0x48a6 mem_antl_key_state
+0x48a7 mem_antl_lost_mode
+0x48a8 mem_alarm_config
+0x48a9 mem_alarm_config_notfy_cnt
+0x48aa mem_buzzer_pwm_conf
+0x48b0 mem_adc_timeout
+0x48b2 mem_voltage_remain_percent
+0x48b3 mem_battery_calculate_set
+0x48b3 mem_battery_full_voltage
+0x48b5 mem_battery_empty_voltage
+0x48b7 mem_battery_low_voltage
+0x48b9 mem_battery_current_voltage
+0x48bb mem_rx_window_sniff_inc
+0x48bd mem_interval_increment
+0x48bf mem_antl_le_interval_min
+0x48c1 mem_antl_le_interval_max
+0x48c3 mem_antl_le_latency
+0x48c5 mem_antl_le_timeout
+0x48c7 mem_antl_le_unnormal_interval_min
+0x48c9 mem_antl_le_unnormal_interval_max
+0x48cb mem_antl_le_unnormal_latency
+0x48cd mem_antl_le_unnormal_timeout
+0x48cf mem_AntiLost_le_att_list
+0x4a5f mem_lestate_update_param_flag
+0x4a60 mem_antilost_conn_battery_send_timer
+0x47a3 mem_eink_log_ring_buffer
+0x4803 mem_eink_log_front
+0x4804 mem_eink_log_end
+0x4805 mem_eink_log_ring_buffer_flag
+0x4811 mem_eink_log_pend
+0x4812 mem_eink_log_draw_byte
+0x4813 mem_eink_log_last_star
+0x4814 mem_eink_log_last_info
+0x4814 mem_eink_log_last_letter
+0x4815 mem_eink_log_last_cmd
+0x4816 mem_eink_log_last_ch
+0x4817 mem_eink_log_last_rssi
+0x4818 mem_eink_log_last_is_byte
+0x4819 mem_eink_log_info
+0x4819 mem_eink_log_letter
+0x481a mem_eink_log_cmd
+0x481b mem_eink_log_ch
+0x481c mem_eink_log_rssi
+0x481d mem_eink_log_is_byte
+0x481e mem_eink_log_hex2dec
+0x4832 mem_eink_log_hex2dec_len
+0x4833 mem_eink_log_hex2dec_ptr
+0x4834 mem_eink_log_push_zero
+0x4835 mem_uncom_fliter_datalen
+0x4836 mem_uncom_fliter_data_flag
+0x4837 mem_uncom_image_att_flag
+0x4838 mem_uncom_image_att_buf
+0x4876 mem_scl
+0x4877 mem_sda
+0x4878 mem_cs
+0x4879 mem_dc
+0x487a mem_res
+0x487b mem_busy
+0x487c mem_pb1
+0x487d mem_eink_xy
+0x4880 mem_eink_orig
+0x4888 mem_eink_setxy
+0x4890 mem_eink_display
+0x4896 mem_eink_size
+0x4898 mem_eink_init
+0x48d4 mem_eink_init_offset
+0x48e8 mem_eink_reg_red
+0x48ee mem_eink_reg_blank
+0x48f4 mem_eink_font
+0x4a64 mem_code93
+0x4a94 mem_barcode_start
+0x4a95 mem_barcode
+0x4aa9 mem_barcode_len
+0x4aaa mem_eink_head
+0x4aac mem_image_ptr
+0x4aae mem_rx_cnt
+0x4ab0 mem_update_state
+0x4ab1 mem_parse_cnt
+0x4ab3 mem_esl_24g_current_ch
+0x4ab4 mem_esl_24g_behavior
+0x4ab5 mem_esl_24g_id
+0x4ab9 mem_esl_24g_rxpayload
+0x4ad9 mem_esl_24g_rssi_save
+0x4ada mem_battery_vol
+0x4adc mem_rssi_save
+0x4add mem_rssi_temp
+0x47a3 mem_24g_rxbuf
+0x47c5 mem_24g_txbuf
+0x47e5 mem_24g_txpayload
+0x4809 mem_24g_rxpayload
+0x4829 mem_24g_rxdata_length
+0x482a mem_24g_pid
+0x482b mem_24g_no_ack
+0x482c mem_24g_sta_crc
+0x482f mem_24g_last_crc
+0x4832 mem_24g_sta_pid
+0x4833 mem_24g_last_pid
+0x4834 mem_24g_datalen
+0x4835 mem_24g_data_type
+0x4836 mem_24g_txlen
+0x4837 mem_24g_rx_window
+0x4839 mem_24g_ch
+0x483a mem_24g_current_ch_number
+0x483b mem_24g_addr
+0x483f mem_24g_ch_map1
+0x4843 mem_24g_ch_map2
+0x4847 mem_24g_ch_map3
+0x484b mem_24g_ch_map4
+0x484f mem_24g_tx_btclk
+0x4853 mem_24g_interval
+0x4854 mem_24g_interval_min
+0x4855 mem_24g_interval_max
+0x4856 mem_24g_syncword
+0x4858 mem_24g_syncword_crc8
+0x4859 mem_24g_get_syncword_crc8
+0x485a mem_24g_pair_switch
+0x485b mem_24g_enter_hibernate
+0x4863 mem_24g_rx_phy
+0x4864 mem_24g_tx_phy
+0x4865 mem_24g_pair_addr
+0x4869 mem_24g_pair_ch
+0x486a mem_24g_pair_tx_power
+0x486b mem_rssi_buff_index
+0x486c mem_24g_device1_bind_step
+0x486d mem_24g_device2_bind_step
+0x486e mem_24g_bind_device_status
+0x486f mem_24g_bind_payload
+0x4877 mem_24g_transmitter_addr
+0x487b mem_24g_device1_addr
+0x487f mem_24g_device2_addr
+0x4883 mem_rssi_noise_avg
+0x4884 mem_rssi_noise_index
+0x4885 mem_rssi_noise_self_avg
+0x4886 mem_rssi_noise_device1_avg
+0x4887 mem_rssi_noise_device2_avg
+0x4888 mem_rssi_noise_self_index
+0x4889 mem_rssi_noise_device1_index
+0x488a mem_rssi_noise_device2_index
+0x488b mem_rssi_noise_buffer_ptr
+0x488d mem_rssi_noise_self_buffer_ptr
+0x488f mem_rssi_noise_device1_buffer_ptr
+0x4891 mem_rssi_noise_device2_buffer_ptr
+0x4893 mem_cb_24g_receive_process
+0x4895 mem_cb_24g_ackpayload
+0x4897 mem_cb_24g_data_device1
+0x4899 mem_cb_24g_data_device2
+0x489b mem_24g_rxdata_temp
+0x48bd mem_24g_abort_packet
+0x48be mem_24g_hop_btclk
+0x48c2 mem_24g_hop_interval
+0x48c3 mem_24g_ackpayload_enable
+0x48c4 mem_24g_hop_packet
+0x48c5 mem_24g_pair_mode
+0x48c6 mem_24g_mode_switch
+0x48c7 mem_24g_nodata_timer_enable
+0x48c8 mem_24g_mode_init
+0x48c9 mem_24g_work_mode
+0x48ca mem_24g_time_slice
+0x48cb mem_24g_self_last_ch
+0x48cc mem_24g_self_ch_number
+0x48cd mem_24g_self_config_ch_once
+0x48ce mem_24g_device1_last_ch
+0x48cf mem_24g_device1_ch_number
+0x48d0 mem_24g_device1_config_ch_once
+0x48d1 mem_24g_device2_last_ch
+0x48d2 mem_24g_device2_ch_number
+0x48d3 mem_24g_device2_config_ch_once
+0x48d4 mem_24g_led_status
+0x48d5 mem_24g_bind_mode_continue
+0x48d6 mem_tx_power_temp
+0x48d7 mem_car_hard_soft_switch
+0x48d8 mem_car_queue_each_size
+0x48d9 mem_car__queue_length
+0x48da mem_car_queue_curr_num
+0x48db mem_car_queue_read_ptr
+0x48dc mem_car_queue_write_ptr
+0x48dd mem_car_queue_ele
+0x4955 mem_car_pop_queue_buff
+0x4969 mem_car_led_num
+0x496a mem_car_led_map
+0x4974 mem_car_style1_led_type
+0x4975 mem_car_style1_blink_count
+0x4976 mem_car_style1_struct_led_gpio
+0x4977 mem_car_style1_on_time
+0x4979 mem_car_style1_off_time
+0x497b mem_car_style1_cb_ledon
+0x497d mem_car_style1_cb_ledoff
+0x497f mem_car_style2_led_type
+0x4980 mem_car_style2_blink_count
+0x4981 mem_car_style2_struct_led_gpio
+0x4982 mem_car_style2_on_time
+0x4984 mem_car_style2_off_time
+0x4986 mem_car_style2_cb_ledon
+0x4988 mem_car_style2_cb_ledoff
+0x498a mem_le_receive_data
+0x498a mem_le_receive_packet_head
+0x498c mem_le_receive_cmd
+0x498d mem_le_receive_length
+0x498f mem_le_receive_payload
+0x4999 mem_le_receive_checksum
+0x499a mem_motor1_status
+0x499b mem_motor1_speed
+0x499c mem_motor2_status
+0x499d mem_motor2_speed
+0x499e mem_motor3_status
+0x499f mem_motor3_speed
+0x49a0 mem_motor1_pwm_set
+0x49a0 mem_motor1_pwm_pin1_set
+0x49a1 mem_motor1_pwm_pin2_set
+0x49a2 mem_motor1_pwm_pin_set
+0x49a3 mem_motor1_pwm_channel_set
+0x49a4 mem_motor1_pwm_freq_set
+0x49a7 mem_motor1_pwm_dute_set
+0x49a8 mem_motor2_pwm_set
+0x49a8 mem_motor2_pwm_pin1_set
+0x49a9 mem_motor2_pwm_pin2_set
+0x49aa mem_motor2_pwm_pin_set
+0x49ab mem_motor2_pwm_channel_set
+0x49ac mem_motor2_pwm_freq_set
+0x49af mem_motor2_pwm_dute_set
+0x49b0 mem_motor3_pwm_set
+0x49b0 mem_motor3_pwm_pin1_set
+0x49b1 mem_motor3_pwm_pin2_set
+0x49b2 mem_motor3_pwm_pin_set
+0x49b3 mem_motor3_pwm_channel_set
+0x49b4 mem_motor3_pwm_freq_set
+0x49b7 mem_motor3_pwm_dute_set
+0x49b8 mem_motor_select_p_n
+0x49b9 mem_car_motor_status
+0x49ba mem_car_motor_speed
+0x49bb mem_motor_pwm_set
+0x49bb mem_motor_pwm_pin1_set
+0x49bc mem_motor_pwm_pin2_set
+0x49bd mem_motor_pwm_pin_set
+0x49be mem_motor_pwm_channel_set
+0x49bf mem_motor_pwm_freq_set
+0x49c2 mem_motor_pwm_dute_set
+0x49c3 mem_ir_rx_gpio
+0x49c4 mem_ir_data
+0x49c6 mem_ir_rx_buf
+0x49c8 mem_ir_receive_clkn
+0x49cc mem_ir_notify_data
+0x49cf mem_ir_notify_data_head
+0x49d4 mem_ir_notify_data_payload
+0x49d6 mem_ir_notify_data_check_sum
+0x49d7 mem_car_ir_breakdown_check_timer
+0x49d8 mem_car_ir_breakdown_flag
+0x49d9 mem_car_led_control
+0x49d9 mem_car_led1_status
+0x49da mem_car_led2_status
+0x49db mem_car_led3_status
+0x49dc mem_car_led4_status
+0x49dd mem_car_led5_status
+0x49de mem_car_led6_status
+0x49df mem_car_led7_status
+0x49e0 mem_car_led8_status
+0x49e1 mem_car_led_control_timer
+0x49e2 mem_car_led_blink_status
+0x49e3 mem_car_led_no
+0x49e4 mem_car_info_request
+0x49e7 mem_car_info_request_head
+0x49ec mem_car_info_request_payload
+0x49f4 mem_car_info_request_checksum
+0x49f5 mem_car_config_param
+0x49f5 mem_car_config_setting_flag
+0x49f6 mem_car_config_device_select
+0x49f7 mem_car_config_motor_layout
+0x49f8 mem_car_config_ir_enable
+0x49f9 mem_car_config_ir_rx_gpio
+0x49fa mem_car_config_pairing_led_conn_status
+0x49fb mem_car_config_pairing_led_gpio
+0x49fc mem_car_config_led_num
+0x49fd mem_car_config_blood_led_gpio
+0x49fd mem_car_config_blood_led1_gpio
+0x49fe mem_car_config_blood_led2_gpio
+0x49ff mem_car_config_blood_led3_gpio
+0x4a00 mem_car_config_blood_led4_gpio
+0x4a01 mem_car_config_blood_led5_gpio
+0x4a02 mem_car_config_blood_led6_gpio
+0x4a03 mem_car_config_blood_led7_gpio
+0x4a04 mem_car_config_blood_led8_gpio
+0x4a05 mem_car_config_bat_notify_enable
+0x4a06 mem_car_config_low_voltage_led_gpio
+0x4a07 mem_car_config_low_voltage_percent
+0x4a08 mem_car_config_soft_switch_enable
+0x4a09 mem_car_config_soft_switch_gpio
+0x4a0a mem_car_notify_vdd_count
+0x4a0b mem_car_notify_vdd_timer
+0x4a0c mem_car_notify_vdd_value_last
+0x4a0d mem_car_notify_vdd_percent
+0x4a0e mem_car_working_flag
+0x4a0f mem_low_bat_flag
+0x4a10 mem_notify_bat_packet
+0x4a13 mem_notify_bat_head
+0x4a18 mem_notify_bat_payload
+0x4a19 mem_notify_bat_check_sum
+0x4a1a mem_vdd_notify_flag
+0x4a1b mem_car_current_vdd_value_temp
+0x4a1d mem_car_last_vdd_value
+0x4a1f mem_vdd_calculate_set
+0x4a1f mem_vdd_full_vol
+0x4a21 mem_vdd_empty_vol
+0x4a23 mem_vdd_low_vol
+0x4a25 mem_vdd_now_vol
+0x4a27 mem_car_24g_status
+0x4a28 mem_car_24g_no_data_timeout_count
+0x4a2a mem_car_24g_no_data_timeout_timer
+0x4a2c mem_car_24g_ir_receive_attack_count
+0x4a2d mem_car_24g_go_die_flag
+0x4a2e mem_car_attack_shake_timer
+0x4a2f mem_car_attack_shake_flag
+0x4a30 mem_car_soft_power
+0x4a30 mem_car_power_state
+0x4a31 mem_car_power_timer
+0x4a32 mem_car_power_off_timeout
+0x4a33 mem_car_power_starting_timeout
+0x4a34 mem_car_power_off_cb
+0x4a36 mem_car_power_starting_cb
+0x4a38 mem_car_power_standby_cb
+0x4a3a mem_car_ui_button_up_cb
+0x4a3c mem_car_le_att_list
+0x4c30 mem_car_moto1_blank_timer
+0x4c31 mem_car_moto2_blank_timer
+0x4c32 mem_car_moto3_blank_timer
+0x4c33 mem_car_motor_gpio_num
+0x4c34 mem_car_motor_gpio_map
+0x4c34 mem_car_motor_left_gpio
+0x4c35 mem_car_motor_right_gpio
+0x4c36 mem_car_motor_front_gpio
+0x4c37 mem_car_motor_back_gpio
+0x4c38 mem_car_gpio
+0x4c39 mem_car_app_send_speed
+0x4c3a mem_rssi_sum
+0x4c3c mem_check_rssi_high_count
+0x4c3e mem_rssi_data
+0x4c46 mem_car_24g_received_pac
+0x4c47 mem_car_24g_bind_enable_delay_count
+0x4c48 mem_car_keyscan
+0x4c48 mem_car_key_num
+0x4c49 mem_cb_car_keyscan
+0x4c4b mem_car_enter_lpm_timer_count
+0x4c4d mem_car_enter_lpm_timer
+0x4c4f mem_car_enter_lpm_flag
+0x4c50 mem_car_24g_ch_polling
+0x4c51 mem_car_rssi_noise_buffer
+0x4c59 mem_car_rssi_noise_car_buffer
+0x4c61 mem_car_rssi_noise_remote_buffer
+0x48d7 mem_dg_kb_bind_flag
+0x48d8 mem_dg_kb_data_sta_data
+0x48e0 mem_dg_kb_data_last_data
+0x48e8 mem_dg_kb_multikey_sta_data
+0x48eb mem_dg_kb_multikey_last_data
+0x48ee mem_dg_kb_system_sta_data
+0x48f1 mem_dg_kb_system_last_data
+0x48f4 mem_dg_kb_blank_data_enable
+0x48f5 mem_dg_kb_mul_blank_data_enable
+0x48f6 mem_dg_ms_blank_data_enable
+0x48f7 mem_dg_config
+0x48f8 mem_dg_usb_tx_interval
+0x48f9 mem_dg_usb_vid_pid
+0x4902 mem_dg_usb_device_name
+0x486c mem_rssi_hex_received
+0x486d mem_24g_pair_sm
+0x486e mem_24g_pair_no_ack
+0x486f mem_24g_pair_timeout_init
+0x4871 mem_24g_pair_timeout
+0x4873 mem_24g_reconn_timeout_init
+0x4875 mem_24g_reconn_timeout
+0x4877 mem_24g_reconn_count
+0x4879 mem_24g_reconn_type
+0x487a mem_24g_fast_conn_enable
+0x487b mem_24g_fast_conn_addr
+0x487f mem_24g_receiver_addr
+0x4883 mem_24g_fast_conn_temp_ch
+0x4884 mem_24g_receiver_temp_ch
+0x4885 mem_24g_device_temp_ch
+0x4886 mem_rssi_signal_index
+0x4887 mem_rssi_signal_buf_ptr
+0x4889 mem_cb_24g_transmit_data
+0x488b mem_cb_24g_search_receiver
+0x488d mem_cb_24g_lpm_before
+0x488f mem_24g_conn_sm
+0x4890 mem_24g_ensure
+0x4891 mem_24g_txfail_cnt
+0x4893 mem_24g_retry
+0x4894 mem_24g_abort_pac
+0x4895 mem_24g_max_retry
+0x4896 mem_24g_device_addr
+0x489a mem_24g_short_sleep_set
+0x489d mem_24g_long_sleep_set
+0x48a5 mem_24g_pac_index
+0x48a6 mem_24g_transmit_by_interrupt
+0x48a7 mem_24g_transmit_by_interrupt_exit_count
+0x48a9 mem_24g_transmit_by_interrupt_exit_count_init
+0x48ab mem_24g_long_sleep_param_update_timer_init
+0x48ad mem_24g_long_sleep_param_update_timer
+0x48af mem_rssi_avg_received
+0x48b0 mem_power_ctrl_level
+0x48b1 mem_power_ctrl_pac_succ_cnt
+0x48b2 mem_power_ctrl_pac_succ_cnt_init
+0x48b3 mem_mouse_key
+0x48b4 mem_mouse_x
+0x48b6 mem_mouse_y
+0x48b8 mem_mouse_z
+0x48b9 mem_mouse_tz
+0x48ba mem_mouse_xy_h
+0x48bb mem_mouse_key_last
+0x48bc mem_wheel_tb_old_pinlevel
+0x48bd mem_wheel_tb_new_pinlevel
+0x48be mem_wheel_tog
+0x48bf mem_mouse_tz_data
+0x48c0 mem_mwheel_b_old_pinlevel
+0x48c1 mem_mwheel_b_new_pinlevel
+0x48c2 mem_mwheel_tog
+0x48c3 mem_mouse_z_data
+0x48c4 mem_mouse_wheel_trigger
+0x48c5 mem_mouse_wheel_trigger_timer
+0x48c6 mem_mouse_vdd_calculate_set
+0x48c6 mem_mouse_vdd_full_vol
+0x48c8 mem_mouse_vdd_empty_vol
+0x48ca mem_mouse_vdd_low_vol
+0x48cc mem_mouse_vdd_now_vol
+0x48ce mem_mouse_vdd_button_press_vol
+0x48d0 mem_mouse_vdd_switch_gnd_24g_vol
+0x48d2 mem_mouse_vdd_switch_gnd_full_vol
+0x48d4 mem_mouse_vdd_switch_gnd_shutdown_voltage
+0x48d6 mem_mouse_vdd_switch_gnd_low_voltage
+0x48d8 mem_adc_config_flag_init
+0x48d9 mem_adc_mux_status
+0x48da mem_adc_read_timer
+0x48db mem_adc_read_time_init
+0x48dc mem_adc_low_volatage_led_timer_count
+0x48dd mem_adc_low_volatage_led_blink_enable
+0x48de mem_adc_reference_voltage
+0x48e0 mem_mouse_adc_last_low_voltage_flag
+0x48e1 mem_mouse_adc_button_press_flag
+0x48e2 mem_config_sensor_type
+0x48e3 mem_config_sensor_dpi
+0x48e4 mem_lbutton_gpio
+0x48e5 mem_rbutton_gpio
+0x48e6 mem_mbutton_gpio
+0x48e7 mem_bk_button_gpio
+0x48e8 mem_fw_button_gpio
+0x48e9 mem_dpi_button_gpio
+0x48ea mem_matrix_public_gpio
+0x48eb mem_config_select_device_button_gpio
+0x48ec mem_customer_key_gpio
+0x48ed mem_whee_a_data_gpio
+0x48ee mem_whee_b_data_gpio
+0x48ef mem_whee_ta_data_gpio
+0x48f0 mem_whee_tb_data_gpio
+0x48f1 mem_sensor_motion_gpio
+0x48f2 mem_device_switch_gpio
+0x48f3 mem_config_low_voltage_alarm_gpio
+0x48f4 mem_config_device_24g_led_gpio
+0x48f5 mem_config_device_bt1_led_gpio
+0x48f6 mem_config_device_bt2_led_gpio
+0x48f7 mem_dpi_led_gpio
+0x48f8 mem_select_sensor_angle_gpio
+0x48f9 mem_sensor_angle_default
+0x48fa mem_sensor_angle_switch
+0x48fb mem_config_end
+0x48fb mem_config_sensor_angle
+0x48fc mem_wire_usb_interval
+0x48fd mem_usb_addr
+0x48fe mem_mouse_usb_vdd_status
+0x48ff mem_mouse_usb_keyboard_flag
+0x4900 mem_mouse_led_type
+0x4901 mem_mouse_blink_count
+0x4902 mem_mouse_struct_led_gpio
+0x4903 mem_mouse_on_time
+0x4905 mem_mouse_off_time
+0x4907 mem_mouse_cb_ledon
+0x4909 mem_mouse_cb_ledoff
+0x490b mem_mouse_information_start
+0x490b mem_device_flag
+0x490c mem_device1_type
+0x490d mem_device1_addr
+0x4913 mem_device1_link_key
+0x4923 mem_device1_locall_addr
+0x4929 mem_device2_type
+0x492a mem_device2_addr
+0x4930 mem_device2_link_key
+0x4940 mem_device2_locall_addr
+0x4946 mem_device3_type
+0x4947 mem_mouse_compare_addr_ff
+0x4947 mem_device3_addr
+0x494d mem_device3_link_key
+0x495d mem_device3_locall_addr
+0x4963 mem_store_flag
+0x4965 mem_mouse_dpi
+0x4966 mem_mouse_24g_addr
+0x496a mem_random_addr_increase_count
+0x496c mem_mouse_retention
+0x498b mem_mouse_information_end
+0x498b mem_flash_base
+0x498e mem_write_flash_head_temp
+0x4992 mem_store_information_delay_timer
+0x4993 mem_store_information_delay_timer_init
+0x4994 mem_sensor_id1
+0x4995 mem_sensor_id2
+0x4996 mem_sensor_shutter_hi
+0x4997 mem_sensor_shutter_lo
+0x4998 mem_sensor_smart_flag
+0x4999 mem_sensor_squal_reg
+0x499a mem_sensor_iqc
+0x499b mem_mouse_move_flag
+0x499c mem_mouse_asm_flag
+0x499d mem_mouse_x_pre
+0x499f mem_mouse_y_pre
+0x49a1 mem_mouse_data_xtemp
+0x49a2 mem_mouse_data_ytemp
+0x49a3 mem_mouse_dpi_seting
+0x49a3 mem_320x_dpi_0
+0x49a4 mem_320x_dpi_1
+0x49a5 mem_320x_dpi_2
+0x49a6 mem_320x_dpi_3
+0x49a7 mem_3212_dpi_0
+0x49a8 mem_3212_dpi_1
+0x49a9 mem_3212_dpi_2
+0x49aa mem_3212_dpi_3
+0x49ab mem_3610_dpi_0
+0x49ac mem_3610_dpi_1
+0x49ad mem_3610_dpi_2
+0x49ae mem_3610_dpi_3
+0x49af mem_mouse_cpi_count
+0x49b0 mem_mouse_dpi_button_state
+0x49b1 mem_mouse_dpi_long_press_flag
+0x49b2 mem_sensor_3212_init
+0x49bc mem_sensor_3204_init
+0x49c6 mem_sensor_3205_init
+0x49d0 mem_sensor_32xx_init
+0x49ea mem_sensor_32xx_init_1
+0x4a0c mem_sensor_8650_init
+0x4a26 mem_sensor_ka8_init
+0x4a34 mem_sensor_8009_init
+0x4a44 mem_sensor_poweron_init
+0x4a4e mem_sensor_reset_gpio
+0x4a4f mem_mouse_clear_sensor_data_flag
+0x4a50 mem_bluetooth_125hz_cnt
+0x4a51 mem_mouse_long_mult_flag
+0x4a52 mem_mouse_current_mult_timer
+0x4a53 mem_reconn_times
+0x4a54 mem_reconn_times_init
+0x4a55 mem_mouse_no_data_timer
+0x4a57 mem_device_flag_temp
+0x4a58 mem_mouse_rssi_signal_buf
+0x4a60 mem_btclk_sensor
+0x4a64 mem_mouse_bluetooth_fast_conn_flag
+0x4a65 mem_mouse_discovery_timer
+0x4a67 mem_mouse_bluetooth_reconnect_timeout
+0x4a69 mem_mouse_need_soft_reset
+0x4a6a mem_mouse_le_bb_connected_flag
+0x4a6b mem_mouse_le_reconnect_flag
+0x4a6c mem_mouse_send_secutiry_request_timer
+0x4a6d mem_mouse_le_lap_temp
+0x4a70 mem_le_adv_ind
+0x4a73 mem_le_adv_direct_ind
+0x4a76 mem_le_adv_swift_pair
+0x4a8a mem_le_data_len
+0x4a8b mem_le_keyboard_handle
+0x4a8d mem_le_multimedia_handle
+0x4a8f mem_le_systemctrl_handle
+0x4a91 mem_le_battery_level_handle
+0x4a93 mem_le_battery_level_percentage
+0x4a94 mem_le_battery_level_updata_timer_init
+0x4a96 mem_le_battery_level_updata_timer
+0x4a98 mem_mouse_le_conn_param_reject
+0x4a99 mem_le_tx_buffer0_omemalloc
+0x4ab9 mem_le_tx_buffer1_omemalloc
+0x4ad9 mem_le_tx_buffer2_omemalloc
+0x4af9 mem_le_tx_buffer3_omemalloc
+0x4b19 mem_le_connect_status_flag
+0x4b1a mem_le_start_encrypt_timer
+0x4b1b mem_mouse_direct_timer
+0x4b1d mem_device_addr_temp
+0x4b24 mem_mouse_enter_sniff_count
+0x4b25 mem_mouse_bt_boot_mode
+0x4b26 mem_mouse_bt_boot_data
+0x4b2b mem_bt_send_max_slot_req_accept_after_switch
+0x4b2c mem_mouse_bt_send_first_package_timer
+0x4b2d mem_mouse_bt_send_first_package_flag
+0x4b2e mem_lmi_opcode_temp
+0x4b2f mem_lpm_mult_init
+0x4b30 mem_customer_key
+0x4b31 mem_customer_data_trigger
+0x4b32 mem_customer_data_trigger_last
+0x4b33 mem_mouse_lkey_press_status
+0x4b34 mem_mouse_rkey_press_status
+0x4b35 mem_mouse_mkey_press_status
+0x4b36 mem_mouse_bkkey_press_status
+0x4b37 mem_mouse_fwkey_press_status
+0x4b38 mem_mouse_dpikey_press_status
+0x4b39 mem_mouse_pbkey_press_status
+0x4b3a mem_mouse_customerkey_press_status
+0x4b3b mem_mouse_key_temp
+0x4b3c mem_mouse_key_status
+0x4b3d mem_mouse_matrix_key_cow_count
+0x4b3e mem_mouse_matrix_key_row_count
+0x4b3f mem_mouse_ghost_flag
+0x4b40 mem_bt_discovery_count
+0x4b41 mem_select_device_count
+0x4b42 mem_mouse_commbination_key
+0x4b43 mem_select_device_button_statue
+0x4b44 mem_commbination_key_statue
+0x4b45 mem_combination_ui_button_count
+0x4b46 mem_mouse_search_dongle_interval
+0x4b47 mem_mouse_search_dongle_ch
+0x4b48 mem_mouse_search_dongle_count
+0x4b49 mem_mouse_search_dongle_action
+0x4b4a mem_24g_enter_lpm_timer
+0x4b4b mem_mouse_24g_enter_lpm_enable
+0x4b4c mem_mouse_device_poweron_timer_count
+0x4b4d mem_mouse_dpi_led_delay_count
+0x4b4e mem_mouse_led_off_4_led
+0x4b4f mem_24g_device_led_status
+0x4b50 mem_mouse_flag
+0x4b58 mem_mouse_bluetooth_type
+0x4b59 mem_device_number
+0x4b5a mem_mouse_direct_timeout
+0x4b5c mem_mouse_page_to
+0x4b5e mem_mouse_fast_direct_timeout
+0x4b5f mem_mouse_fast_page_to
+0x4b61 mem_mouse_24g_power_on_fast_conn_timer
+0x4b63 mem_mouse_no_data_timeout
+0x4b65 mem_mouse_device_poweron_timer_count_init
+0x4b66 mem_mouse_dpi_led_delay_count_init
+0x4b67 mem_mouse_dpi_led_blink_time
+0x4b69 mem_mouse_disconvey_led_blink_time
+0x4b6b mem_mouse_low_v_led_blink_time
+0x4b6d mem_adc_low_volatage_led_blink_timer
+0x4b6f mem_mouse_commbination_key_bt
+0x4b70 mem_mouse_commbination_key_24g
+0x4b71 mem_customer_key_press
+0x4b7a mem_customer_key_release
+0x4b83 mem_mouse_set_high_impedance_bit_set
+0x4b86 mem_24g_fast_hop_count
+0x4b87 mem_24g_long_sleep_set1
+0x4b8b mem_sensor_shutdown_flag
+0x4b8c mem_24g_ch_map_update
+0x4b8d mem_24g_ch_update_map1
+0x4b91 mem_24g_ch_update_map2
+0x4b95 mem_24g_ch_update_map3
+0x4b99 mem_24g_ch_update_map4
+0x4b9d mem_mouse_24g_search_dongle_time_init
+0x4b9f mem_mouse_sensor_config
+0x4ba0 mem_adc_channel_gpio
+0x4ba1 mem_mouse_discovery_timeout
+0x4ba3 mem_mouse_24g_pair_timeout_init
+0x4ba5 mem_rssi_dis_min_24g_init
+0x4ba6 mem_rssi_dis_max_24g_init
+0x4ba7 mem_rssi_hex_received_max_value_init
+0x4ba8 mem_rssi_dis_min_24g
+0x4ba9 mem_rssi_dis_max_24g
+0x4baa mem_rssi_hex_received_max_value
+0x4bab mem_rssi_dis_min_ble
+0x4bac mem_rssi_dis_max_ble
+0x4bad mem_mouse_global_setup
+0x4bae mem_mouse_enable_flag
+0x4baf mem_mouse_sensor_sclk_gpio
+0x4bb0 mem_mouse_sensor_sdio_gpio
+0x4bb1 mem_sensor_8650_init_new
+0x48b3 mem_remote_car_hard_soft_switch
+0x48b4 mem_remote_car_queue_each_size
+0x48b5 mem_remote_car_queue_length
+0x48b6 mem_remote_car_queue_curr_num
+0x48b7 mem_remote_car_queue_read_ptr
+0x48b8 mem_remote_car_queue_write_ptr
+0x48b9 mem_remote_car_queue_ele
+0x4913 mem_remote_style_led_type
+0x4914 mem_remote_style_blink_count
+0x4915 mem_remote_style_struct_led_gpio
+0x4916 mem_remote_style_on_time
+0x4918 mem_remote_style_off_time
+0x491a mem_remote_style_cb_ledon
+0x491c mem_remote_style_cb_ledoff
+0x491e mem_remote_car_led_num
+0x491f mem_remote_car_led_map
+0x4927 mem_remote_car_keyscan
+0x4927 mem_remote_car_key_num
+0x4928 mem_cb_remote_car_keyscan
+0x492a mem_remote_car_key_conf0
+0x492a mem_remote_car_key_conf0_pin
+0x492b mem_remote_car_key_conf1
+0x492b mem_remote_car_key_conf1_pin
+0x492c mem_remote_car_key_conf2
+0x492c mem_remote_car_key_conf2_pin
+0x492d mem_remote_car_key_conf3
+0x492d mem_remote_car_key_conf3_pin
+0x492e mem_remote_car_key_conf4
+0x492e mem_remote_car_key_conf4_pin
+0x492f mem_remote_car_key_conf5
+0x492f mem_remote_car_key_conf5_pin
+0x4930 mem_remote_car_key_conf6
+0x4930 mem_remote_car_key_conf6_pin
+0x4931 mem_rocker_negative_flag
+0x4932 mem_rocker_work_status
+0x4933 mem_current_vdd_value_default_mid_x
+0x4935 mem_current_vdd_value_default_mid_y
+0x4937 mem_current_vdd_value_default_mid_temp
+0x4939 mem_current_vdd_default_range
+0x493b mem_rocker_last_status
+0x493d mem_rocker_status
+0x493d mem_rocker_x_status
+0x493e mem_rocker_y_status
+0x493f mem_remote_car_config_param
+0x493f mem_remote_car_config_setting_flag
+0x4940 mem_remote_car_config_key_map
+0x4941 mem_remote_car_config_layout
+0x4942 mem_remote_car_config_connect_led_gpio
+0x4943 mem_remote_car_config_check_way
+0x4944 mem_remote_car_config_soft_switch_enable
+0x4945 mem_remote_car_config_soft_switch_gpio
+0x4946 mem_remote_car_config_timeout_shutdown_enable
+0x4947 mem_remote_car_24g_motor_packet
+0x4947 mem_remote_car_24g_motor_packet_lenght
+0x4948 mem_remote_car_24g_motor_send_packet_head
+0x494a mem_remote_car_24g_motor_send_cmd
+0x494b mem_remote_car_24g_motor_send_length
+0x494d mem_remote_car_24g_motor_send_payload
+0x494d mem_remote_car_24g_motor1_payload
+0x494f mem_remote_car_24g_motor2_payload
+0x4951 mem_remote_car_24g_motor3_payload
+0x4953 mem_remote_car_24g_motor_send_checksum
+0x4954 mem_remote_car_24g_fire_packet
+0x4954 mem_remote_car_24g_fire_packet_lenght
+0x4955 mem_remote_car_24g_fire_send_packet_head
+0x4957 mem_remote_car_24g_fire_send_cmd
+0x4958 mem_remote_car_24g_fire_send_length
+0x495a mem_remote_car_24g_fire_send_payload
+0x495c mem_remote_car_24g_fire_send_checksum
+0x495d mem_remote_car_24g_tx_temp
+0x496c mem_remote_car_no_data_timeout
+0x496e mem_remote_car_no_data_timer
+0x4970 mem_remote_car_soft_power
+0x4970 mem_remote_car_power_state
+0x4971 mem_remote_car_power_timer
+0x4972 mem_remote_car_power_off_timeout
+0x4973 mem_remote_car_power_starting_timeout
+0x4974 mem_remote_car_power_off_cb
+0x4976 mem_remote_car_power_starting_cb
+0x4978 mem_remote_car_power_standby_cb
+0x497a mem_remote_key_status
+0x497b mem_remote_car_24g_status
+0x497c mem_remote_car_24g_auto_work_step
+0x497d mem_remote_car_24g_pair_success_flag
+0x497e mem_remote_car_empty_packet
+0x497f mem_remote_car_motor1_key0_press_state
+0x4980 mem_remote_car_motor1_key1_press_state
+0x4981 mem_remote_car_motor2_key2_press_state
+0x4982 mem_remote_car_motor2_key3_press_state
+0x4983 mem_remote_car_motor1_rel_state
+0x4984 mem_remote_car_motor2_rel_state
+0x4985 mem_remote_car_no_data_check
+0x47a3 mem_hci_uart_tx_gpio
+0x47a4 mem_hci_uart_rx_gpio
+0x47a5 mem_hci_uart_rts_gpio
+0x47a6 mem_hci_uart_cts_gpio
+0x47a7 mem_hci_pwm_12mhz_gpio
+0x47a3 mem_soft_version_num
+0x47a5 mem_module_wake_up_gpio
+0x47a6 mem_module_state_gpio
+0x47a7 mem_module_connect_state_gpio
+0x47a8 mem_current_packet_length
+0x47aa mem_module_state
+0x47ab mem_module_mcu_wake_pin
+0x47ac mem_module_mcu_wake_delay_us
+0x47b0 mem_module_spp_lpm_mult
+0x47b1 mem_module_le_lpm_mult
+0x47b2 mem_module_bluetooth_stauts_by_command
+0x47b3 mem_module_uart_rx_buffer
+0x47b5 mem_module_uart_rx_buffer_end
+0x47b7 mem_module_uart_tx_buffer
+0x47b9 mem_module_uart_tx_buffer_end
+0x47bb mem_module_uarta_baud_rate
+0x47bd mem_module_read_vdd_flag
+0x47be mem_module_read_vdd_count
+0x47bf mem_module_vdd_quotient
+0x47c0 mem_module_vdd_remainder
+0x47c1 mem_module_ble_data_uart_max_length
+0x47c2 mem_module_flag
+0x47c4 mem_module_hci_notify_len
+0x47c5 mem_module_hci_notify_handle
+0x47c7 mem_module_hci_nofiy_addr
+0x47c9 mem_module_hci_notify_type
+0x47ca mem_last_transmite_clock
+0x47ce mem_module_wechat_indication_handle
+0x47cf mem_module_wechat_write_handle
+0x47d0 mem_module_wechat_tx_buffer_ptr
+0x47d2 mem_module_wechat_rx_buffer_ptr
+0x47d4 mem_module_wechat_rx_push_data_cb
+0x47d6 mem_module_wechat_tx_nSeq
+0x47d8 mem_module_wechat_tx_len
+0x47da mem_module_wechat_tx_address
+0x47dc mem_module_wechat_rx_len
+0x47de mem_module_wechat_rx_address
+0x47e0 mem_module_wechat_receive_push_data
+0x47e1 mem_module_uuid_list
+0x490d mem_module_uuid_list_end
+0x490d mem_module_le_att_list
+0x4b65 mem_module_le_att_list_end
+0x4b65 mem_module_nv_data
+0x4b65 mem_module_nv_data0
+0x4b87 mem_module_nv_data1
+0x4ba9 mem_module_nv_data2
+0x4bcb mem_module_nv_data3
+0x4bed mem_module_nv_data4
+0x4c0f mem_module_nv_data_end
+0x47a3 mem_shutter_bluetooth_type
+0x47a4 mem_shutter_config_eeprom_offset_addr
+0x47a6 mem_shutter_config_eeprom_start_flag
+0x47a8 mem_shutter_config_user_size
+0x47a9 mem_shutter_config_label
+0x47aa mem_shutter_config_otp_addr
+0x47ac mem_classic_shutter_cable_unplug_conut
+0x47ad mem_classic_shutter_hid_disconn_count
+0x47ae mem_classic_shutter_random_mac_offset_addr
+0x47b0 mem_ble_shutter_enable_notify
+0x47b1 mem_ble_shutter_reconn_dav_interval
+0x47b3 mem_ble_shutter_discovery_adv_interval
+0x47b5 mem_ble_shutter_reconn_timeout
+0x47b7 mem_ble_shutter_reconn_timer
+0x47b9 mem_ble_shutter_reconn_blink_on_time
+0x47bb mem_ble_shutter_reconn_blink_off_time
+0x47bd mem_ble_shutter_discovery_blink_on_time
+0x47bf mem_ble_shutter_discovery_blink_off_time
+0x47c1 mem_ble_shutter_interval_min
+0x47c3 mem_ble_shutter_interval_max
+0x47c5 mem_ble_shutter_latency
+0x47c7 mem_ble_shutter_timeout
+0x47c9 mem_ble_shutter_interval_min_new
+0x47cb mem_ble_shutter_interval_max_new
+0x47cd mem_ble_shutter_latency_new
+0x47cf mem_ble_shutter_timeout_new
+0x47d1 mem_classic_shutter_discovery_timeout
+0x47d3 mem_classic_shutter_connect_timeout
+0x47d5 mem_ble_shutter_discovery_timeout
+0x47d7 mem_ble_shutter_connect_timeout
+0x47d9 mem_shutter_sleep_timeout
+0x47db mem_shutter_sleep_timer
+0x47dd mem_shutter_hard_soft_switch_case
+0x47de mem_shutter_soft_switch_button_gpio
+0x47df mem_shutter_soft_switch_power_state
+0x47e0 mem_shutter_soft_switch_poweron_time
+0x47e1 mem_shutter_soft_switch_poweroff_time
+0x47e2 mem_shutter_soft_switch_poweron_callback_function
+0x47e4 mem_shutter_soft_switch_poweroff_callback_function
+0x47e6 mem_shutter_keyscan
+0x47e6 mem_shutter_key_num
+0x47e7 mem_cb_shutter_keycan
+0x47e9 mem_shutter_key_conf0
+0x47ea mem_shutter_key_conf1
+0x47eb mem_shutter_key_conf2
+0x47ec mem_shutter_key_conf3
+0x47ed mem_shutter_key_conf4
+0x47ee mem_shutter_key_conf5
+0x47ef mem_shutter_key_conf6
+0x47f0 mem_shutter_key_conf7
+0x47f1 mem_key0_press
+0x47f6 mem_key1_press
+0x47fb mem_key2_press
+0x4800 mem_key3_press
+0x4805 mem_key4_press
+0x480a mem_key5_press
+0x480f mem_key6_press
+0x4814 mem_key7_press
+0x4819 mem_key0_release
+0x481e mem_key1_release
+0x4823 mem_key2_release
+0x4828 mem_key3_release
+0x482d mem_key4_release
+0x4832 mem_key5_release
+0x4837 mem_key6_release
+0x483c mem_key7_release
+0x4841 mem_ble_data_buffer1
+0x4846 mem_ble_data_buffer2
+0x484b mem_ble_data_buffer3
+0x4850 mem_ble_data_buffer4
+0x4855 mem_ble_data_buffer5
+0x485a mem_ble_data_buffer6
+0x485f mem_ble_data_buffer7
+0x4864 mem_ble_data_buffer8
+0x4869 mem_ble_data_buffer9_58
+0x489b mem_classic_data_buffer
+0x48a0 mem_classic_data_buffer1
+0x48a5 mem_classic_data_buffer2
+0x48aa mem_classic_data_buffer3
+0x48af mem_classic_data_buffer4
+0x48b4 mem_classic_data_buffer5
+0x48b9 mem_classic_data_buffer6
+0x48be mem_classic_data_buffer7
+0x48c3 mem_classic_data_buffer8
+0x48c8 mem_classic_data_buffer9_58
+0x48fa mem_queue_each_size
+0x48fb mem_queue_length
+0x48fc mem_queue_curr_num
+0x48fd mem_queue_read_ptr
+0x48fe mem_queue_write_ptr
+0x48ff mem_queue_ele
+0x491f mem_shutter_nv_data
+0x49c9 mem_shutter_led_struct_app_led
+0x49c9 mem_shutter_led_struct_app_led_type
+0x49ca mem_shutter_led_struct_app_led_blink_count
+0x49cb mem_shutter_led_struct_app_led_gpio
+0x49cc mem_shutter_led_struct_app_led_on_time
+0x49ce mem_shutter_led_struct_app_led_off_time
+0x49d0 mem_shutter_led_struct_app_led_on_callback
+0x49d2 mem_shutter_led_struct_app_led_off_callback
+0x49d4 mem_shutter_power_off_led_style
+0x49d4 mem_shutter_power_off_led_style_type
+0x49d5 mem_shutter_power_off_led_style_blink_count
+0x49d6 mem_shutter_power_off_led_style_gpio
+0x49d7 mem_shutter_power_off_led_style_on_time
+0x49d9 mem_shutter_power_off_led_style_off_time
+0x49db mem_shutter_power_off_led_style_on_callback
+0x49dd mem_shutter_power_off_led_style_off_callback
+0x49df mem_shutter_soft_swtich_botton_down
+0x49e0 mem_shutter_soft_swtich_led_struct_temp
+0x49eb mem_shutter_power_off_timeout
+0x49ec mem_shutter_power_off_timer
+0x49ed mem_key_value_retention
+0x49ef mem_shutter_key_conf0_temp
+0x49f1 mem_shutter_led_struct_app_led_gpio_temp
+0x49f2 mem_shutter_hard_soft_switch_case_temp
+
+0x4a75 mem_mesh_unsegmented_access_lower_transport_layer_head
+0x4a76 mem_mesh_unsegmented_access_lower_transport_layer_parameters
+0x4a81 mem_mesh_unsegmented_access_lower_transport_layer_mic
+0x4a75 mem_mesh_segmented_access_lower_transport_layer_head
+0x4a76 mem_mesh_segmented_access_lower_transport_layer_SZMIC_SeqZero_SegO_SegN
+0x4a79 mem_mesh_segmented_access_lower_transport_layer_parameters
+0x4a81 mem_mesh_segmented_access_lower_transport_layer_mic
+0x48df mem_k2_EncryptionKey
+0x48cf mem_k2_PrivacyKey
Index: output/program.lis
===================================================================
--- /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/output/program.lis	(nonexistent)
+++ /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/output/program.lis	(working copy)
@@ -0,0 +1,42846 @@
+              include "bt_format "
+              org 0x0000
+0000 c284001b bbit1 8 ,pf_patch_ext 
+0001 c0018026 beq patch00_3 ,p_main_loop 
+0002 c02c8104 beq patch0b_1 ,p_process_dmh_common 
+0003 c0348ef1 beq patch0d_1 ,sniff_init + 3 
+0004 c03b80f6 beq patch0e_7 ,p_transmit_loopback 
+0005 c0418138 beq patch10_3 ,p_shutdown_radio 
+0006 c04301ec beq patch10_6 ,p_set_sync_on 
+0007 c0438170 beq patch10_7 ,p_set_freq_rx 
+0008 c0440186 beq patch11_0 ,p_rf_rx_enable 
+0009 c04581a6 beq patch11_3 ,p_set_freq_tx 
+000a c04601ab beq patch11_4 ,p_txon 
+000b c047010c beq patch11_6 ,p_initialize_radio 
+000c c0488121 beq patch12_1 ,p_save_rssi 
+000d c054007a beq patch15_0 ,p_init_param 
+000e c056006e beq patch15_4 ,p_lpm_recover_clk 
+000f c0568082 beq patch15_5 ,p_lpm_dispatch 
+0010 c05b80f1 beq patch16_7 ,p_app_init 
+0011 c0688478 beq patch1a_1 ,p_mouse_before_hibernate 
+0012 c069045f beq patch1a_2 ,p_mouse_lpm_before_common 
+0013 c06a04cd beq patch1a_4 ,p_mouse_motion 
+0014 c06b0511 beq patch1a_6 ,p_mouse_seting_dpi 
+0015 c06b84ab beq patch1a_7 ,p_mouse_check_key_gpio 
+0016 c06c05f3 beq patch1b_0 ,p_mouse_init_sunt 
+0017 c06d0494 beq patch1b_2 ,p_mouse_priority_bb_event 
+0018 c06e8273 beq patch1b_5 ,p_mouse_bb_event_timer 
+0019 c0710520 beq patch1c_2 ,p_mouse_idle 
+001a 20201321 branch loop 
+
+pf_patch_ext:
+001b c0430047 beq patch30_6 ,p_ui_timer_check 
+001c c059819f beq patch36_3 ,p_match_le_set_txfreq 
+001d c06000bf beq patch38_0 ,p_le_parse_l2cap 
+001e c070854b beq patch3c_1 ,p_g24_receive_rxon 
+001f c07105a8 beq patch3c_2 ,p_g24_transmit 
+0020 c07305c2 beq patch3c_6 ,p_g24_bind_mode_auto 
+0021 c0750663 beq patch3d_2 ,p_g24_transmit_dispatch 
+0022 c0758653 beq patch3d_3 ,p_g24_transmit_hop_process 
+0023 c076003f beq patch3d_4 ,p_g24_lpm_wait 
+0024 c076869e beq patch3d_5 ,p_power_ctrl_start 
+0025 20201321 branch loop 
+
+p_main_loop:
+0026 20407099 call sp_calc_sequence 
+0027 204075c4 call sp_calc_sequence_256 
+0028 20406ed4 call sp_calc_sequence_256_check 
+0029 20400033 call p_le_advertising_dispatch 
+002a 20400838 call idle_dispatch 
+002b 20400046 call p_app_process_idle 
+002c 20400035 call p_inquiry_dispatch 
+002d 20400037 call p_inquiry_scan_dispatch 
+002e 20400039 call p_page_scan_dispatch 
+002f 2040003b call p_connection_dispatch 
+0030 2040003d call p_g24_dispatch 
+0031 20401448 call lpm_dispatch 
+0032 20200812 branch main_loop 
+
+p_le_advertising_dispatch:
+0033 c61a8000 rtnmark1 mark_adc_enable 
+0034 2020239d branch le_advertising_dispatch 
+
+p_inquiry_dispatch:
+0035 c61a8000 rtnmark1 mark_adc_enable 
+0036 2020088f branch inquiry_dispatch 
+
+p_inquiry_scan_dispatch:
+0037 c61a8000 rtnmark1 mark_adc_enable 
+0038 20200b05 branch inquiry_scan_dispatch 
+
+p_page_scan_dispatch:
+0039 c61a8000 rtnmark1 mark_adc_enable 
+003a 20200b77 branch page_scan_dispatch 
+
+p_connection_dispatch:
+003b c61a8000 rtnmark1 mark_adc_enable 
+003c 20200821 branch connection_dispatch 
+
+p_g24_dispatch:
+003d c61a8000 rtnmark1 mark_adc_enable 
+003e 20202aa1 branch g24_dispatch 
+
+p_g24_lpm_wait:
+003f 78347c00 enable user 
+0040 204013d1 call lpo_calibration 
+0041 6fe1c177 fetch 3 ,mem_clks_per_lpo 
+0042 203a7e64 branch disable_user ,blank 
+0043 6fe0c099 fetch 1 ,mem_lpm_mode 
+0044 203a7e64 branch disable_user ,blank 
+0045 20202f41 branch g24_setgpio_lpm_before 
+
+p_app_process_idle:
+0046 20202fc2 branch app_process_idle 
+
+p_ui_timer_check:
+0047 da200000 arg 0 ,rega 
+0048 684a4783 fetcht 4 ,mem_ui_timer_last_btclk 
+0049 1c422400 copy clkn_bt ,regb 
+004a 1a427e00 copy regb ,pdata 
+004b 98467c00 isub temp ,null 
+004c 24417879 ncall ui_timer_timeout ,positive 
+
+p_ui_timer_check_loop:
+004d 1a427e00 copy regb ,pdata 
+004e 184084a0 increase 160 ,temp 
+004f 184084a0 increase 160 ,temp 
+0050 98467c00 isub temp ,null 
+0051 2421005a nbranch p_ui_timer_check_end ,positive 
+0052 1a20a201 increase 1 ,rega 
+0053 1a217e0f and rega ,0x0f ,pdata 
+0054 243a004d nbranch p_ui_timer_check_loop ,blank 
+0055 da200000 arg 0 ,rega 
+0056 20400060 call p_ui_timer_check_send_evt 
+
+p_ui_timer_init:
+0057 1c427e00 copy clkn_bt ,pdata 
+0058 67e24783 store 4 ,mem_ui_timer_last_btclk 
+0059 20600000 rtn 
+
+p_ui_timer_check_end:
+005a 1a227e00 copy rega ,pdata 
+005b 207a0000 rtn blank 
+005c 18408560 increase -160 ,temp 
+005d 18408560 increase -160 ,temp 
+005e 793f841c set0 28 ,temp 
+005f 604a4783 storet 4 ,mem_ui_timer_last_btclk 
+
+p_ui_timer_check_send_evt:
+
+p_app_evt_timer:
+0060 67e0830d store 1 ,mem_app_evt_timer_count 
+
+p_app_evt_100ms_loop:
+0061 6fe0830d fetch 1 ,mem_app_evt_timer_count 
+0062 207a0000 rtn blank 
+0063 1fe0ffff increase -1 ,pdata 
+0064 67e0830d store 1 ,mem_app_evt_timer_count 
+0065 204077f2 call ui_button_polling 
+0066 2040309d call app_lpm_wake_auto_lock_timer 
+0067 2040305e call app_unsniff_delay_timer 
+0068 20403064 call app_discovery_timer 
+0069 20405c8d call flash_write_spi_sm_timer 
+006a 20405d6b call flash_write_spi2_sm_timer 
+006b 6fe1446f fetch 2 ,mem_cb_event_timer 
+006c 20407e13 call callback_func 
+006d 20200061 branch p_app_evt_100ms_loop 
+
+p_lpm_recover_clk:
+006e 58000000 setarg 0 
+006f 1ce27c00 copy auxcnt ,null 
+0070 20228078 branch p_lpm_recover_timeout ,zero 
+0071 6ff0813c fetch 1 ,core_lpm_xtalcnt 
+0072 6858813d fetcht 1 ,core_lpm_buckcnt 
+0073 98467c00 isub temp ,null 
+0074 20210076 branch p_lpm_recover_xtal ,positive 
+0075 18427e00 deposit temp 
+
+p_lpm_recover_xtal:
+0076 9ce67e00 isub auxcnt ,pdata 
+0077 1fe0fe01 increase 1 ,pdata 
+
+p_lpm_recover_timeout:
+0078 1fe0fe0a increase 10 ,pdata 
+0079 2020142c branch lpm_recover_timeout + 1 
+
+p_init_param:
+007a 6fe0c763 fetch 1 ,mem_ssp_enable 
+007b 245a6e28 ncall init_memp ,blank 
+007c 58000880 setarg mem_sp_state_end 
+007d d8a00870 arg mem_sp_state_start ,contw 
+007e 98a67200 isub contw ,loopcnt 
+007f 20407d34 call clear_mem 
+0080 20758000 rtn wake 
+0081 20201358 branch init_param + 47 
+
+p_lpm_dispatch:
+0082 204013d1 call lpo_calibration 
+0083 6fe1c177 fetch 3 ,mem_clks_per_lpo 
+0084 207a0000 rtn blank 
+0085 6fe0c099 fetch 1 ,mem_lpm_mode 
+0086 207a0000 rtn blank 
+0087 6fe0c763 fetch 1 ,mem_ssp_enable 
+0088 203a008b branch p_lpm_dispatch_next ,blank 
+0089 6fe0c6b8 fetch 1 ,mem_sp_local_key_invalid 
+008a 207a0000 rtn blank 
+
+p_lpm_dispatch_next:
+008b 6fe0c6b9 fetch 1 ,mem_sc_calc 
+008c 247a0000 nrtn blank 
+008d c61a8000 rtnmark1 mark_adc_enable 
+008e da600ab7 arg context_check_a_wack ,regc 
+008f 20400a6e call context_search 
+0090 20201455 branch lpm_dispatch_next + 3 
+
+p_le_update_param_cb:
+0091 204020c0 call le_update_param_cb 
+0092 1a208c2e add rega ,coffset_le_slave_superto ,contr 
+0093 efe10006 ifetch 2 ,contr 
+0094 67e14392 store 2 ,mem_le_init_superto 
+0095 20600000 rtn 
+
+p_le_context_nextevent:
+0096 20407ce4 call push_stack_rega_b_c 
+0097 67210987 storer loopcnt ,2 ,mem_loopcnt 
+0098 1a208c01 add rega ,coffset_mode ,contr 
+0099 efe08006 ifetch 1 ,contr 
+009a c4000000 rtnbit0 mode_le 
+009b 1a208a1a add rega ,coffset_le_event_cnt ,contw 
+009c efe10005 ifetch 2 ,contw 
+009d 1fe0fe01 increase 1 ,pdata 
+009e e7e10005 istore 2 ,contw 
+009f 204000a6 call p_le_update_param 
+00a0 204000aa call p_le_update_channel_map 
+00a1 204000ae call p_le_update_phy 
+00a2 20401f26 call le_context_nexthop 
+00a3 20407cf2 call pop_stack_rega_b_c 
+00a4 6f210987 fetchr loopcnt ,2 ,mem_loopcnt 
+00a5 20600000 rtn 
+
+p_le_update_param:
+00a6 da6020ac arg le_update_param_ahead1_cb ,regc 
+00a7 da400091 arg p_le_update_param_cb ,regb 
+00a8 d8e00005 arg lestate_update_param ,queue 
+00a9 202000b2 branch p_le_check_update_flag 
+
+p_le_update_channel_map:
+00aa da600000 arg 0 ,regc 
+00ab da4020ce arg le_update_channel_map_cb ,regb 
+00ac d8e00006 arg lestate_update_map ,queue 
+00ad 202000b2 branch p_le_check_update_flag 
+
+p_le_update_phy:
+00ae da600000 arg 0 ,regc 
+00af da4020d7 arg le_update_phy_cb ,regb 
+00b0 d8e00007 arg lestate_update_phy ,queue 
+00b1 202000b2 branch p_le_check_update_flag 
+
+p_le_check_update_flag:
+00b2 efe08011 ifetch 1 ,rega 
+00b3 afec0000 qisolate0 pdata 
+00b4 20608000 rtn true 
+00b5 1a208c1a add rega ,coffset_le_event_cnt ,contr 
+00b6 e8410006 ifetcht 2 ,contr 
+00b7 1a208c20 add rega ,coffset_le_instant ,contr 
+00b8 efe10006 ifetch 2 ,contr 
+00b9 98467e00 isub temp ,pdata 
+00ba 2022a10f branch le_update ,zero 
+00bb 24212114 nbranch le_check_update_small ,positive 
+00bc 1fe67c01 sub pdata ,1 ,null 
+00bd 2022a10d branch le_update_ahead1 ,zero 
+00be 20600000 rtn 
+
+p_le_parse_l2cap:
+00bf efe10006 ifetch 2 ,contr 
+00c0 c00200c4 beq le_l2cap_cid_att ,p_le_parse_att 
+00c1 c003285c beq le_l2cap_cid_smp ,le_parse_smp 
+00c2 c002a81e beq le_l2cap_cid_signal ,le_parse_signaling 
+00c3 20600000 rtn 
+
+p_le_parse_att:
+00c4 efe18006 ifetch 3 ,contr 
+00c5 67e1c434 store 3 ,mem_le_att_opcode 
+00c6 c00200c8 beq attop_find_information_request ,p_le_parse_att_find_information_request 
+00c7 202024df branch le_parse_att + 2 
+
+p_le_parse_att_find_information_request:
+00c8 2040270d call le_get_search_handle_start_end_common 
+00c9 20407e62 call enable_user 
+00ca 202000cb branch p_le_send_att_find_information_response 
+
+p_le_send_att_find_information_response:
+00cb d9600003 arg 3 ,timeup 
+00cc 20402258 call le_init_attlist_search 
+
+p_le_send_att_find_information_res_loop:
+00cd 20402261 call le_att_handle_inrange 
+00ce 203a00ef branch p_le_send_att_find_information_res_end ,blank 
+00cf 242100ec nbranch p_le_send_att_find_information_res_next ,positive 
+00d0 18c08dfe increase -2 ,contr 
+00d1 20407cff call store_contr 
+00d2 20407cf6 call get_contw 
+00d3 243400df nbranch p_le_send_att_find_information_res_store_info ,user 
+00d4 20407ce4 call push_stack_rega_b_c 
+00d5 20407e64 call disable_user 
+00d6 6162096c storer timeup ,4 ,mem_timeup 
+00d7 18002214 force 20 ,rega 
+00d8 204026de call le_fifo_malloc_tx_l2cap_gatt 
+00d9 6962096c fetchr timeup ,4 ,mem_timeup 
+00da 20407cf2 call pop_stack_rega_b_c 
+00db 58000005 setarg attop_find_information_response 
+00dc e7e08005 istore 1 ,contw 
+00dd 58000001 setarg uuid_size_16bit 
+00de e7e08005 istore 1 ,contw 
+
+p_le_send_att_find_information_res_store_info:
+00df 20407cf9 call get_contr 
+00e0 efe10006 ifetch 2 ,contr 
+00e1 1fe17eff and_into 0xff ,pdata 
+00e2 e7e10005 istore 2 ,contw 
+00e3 efe08006 ifetch 1 ,contr 
+00e4 1fe27200 copy pdata ,loopcnt 
+00e5 20407d6d call memcpy 
+00e6 20407cfc call store_contw 
+00e7 196097ff increase -1 ,timeup 
+00e8 202280ef branch p_le_send_att_find_information_res_end ,zero 
+
+p_le_send_att_find_information_res_cont:
+00e9 efe08006 ifetch 1 ,contr 
+00ea 98c08c00 iadd contr ,contr 
+00eb 202000cd branch p_le_send_att_find_information_res_loop 
+
+p_le_send_att_find_information_res_next:
+00ec efe08006 ifetch 1 ,contr 
+00ed 98c08c00 iadd contr ,contr 
+00ee 202000e9 branch p_le_send_att_find_information_res_cont 
+
+p_le_send_att_find_information_res_end:
+00ef 203426d2 branch le_send_att_error_response_notfound ,user 
+00f0 20202701 branch le_send_auto_len_by_mem 
+
+p_app_init:
+00f1 20406e20 call enable_authrom 
+00f2 20200266 branch p_mouse_init 
+
+p_default_init:
+00f3 20800000 clear_stack 
+
+p_mouse_default_init:
+00f4 70448aff jam 0xff ,mem_spi_ncs_gpio 
+00f5 2020038a branch p_mouse_param_default_set 
+
+p_transmit_loopback:
+00f6 c50800fd bmark1 mark_longpacket ,p_transmit_loopback_long 
+00f7 6fe080e5 fetch 1 ,mem_lch_code 
+00f8 08008603 inject mod ,3 
+00f9 6fe080af fetch 1 ,mem_len 
+00fa 98002600 iforce regc 
+00fb 08008605 inject mod ,5 
+00fc 20200102 branch p_transmit_loopback_cont 
+
+p_transmit_loopback_long:
+00fd 6fe080e5 fetch 1 ,mem_lch_code 
+00fe 08008603 inject mod ,3 
+00ff 6fe100af fetch 2 ,mem_len 
+0100 98002600 iforce regc 
+0101 0800860d inject mod ,13 
+
+p_transmit_loopback_cont:
+0102 d8c01000 arg mem_l2cap_rxbuff1 ,contr 
+0103 2020102a branch transmit_loopback_loop 
+
+p_process_dmh_common:
+0104 793f8000 set0 mark_fhs_eir ,mark 
+0105 6fe080e5 fetch 1 ,mem_lch_code 
+0106 1fe17e03 and_into 0x03 ,pdata 
+0107 d8a000cf arg mem_rxbuf ,contw 
+0108 c0018ddf beq llid_lmp ,process_lmp 
+0109 c5888dce bmark0 mark_testmode ,process_dmh_common2 + 9 
+010a d8a01000 arg mem_l2cap_rxbuff1 ,contw 
+010b 20200e09 branch process_dmh_data 
+
+p_initialize_radio:
+010c 708a8be6 jam 0xe6 ,core_syn_aac_cfg1 
+010d 708a8729 jam 0x29 ,core_syn_afc_cfg1 
+010e 708a0d02 jam 0x02 ,core_rf_ldo_cfg1 
+010f 708a6cd3 jam 0xd3 ,core_rx_bq_bw_cal 
+0110 708a6d09 jam 0x09 ,core_rx_bq_cfg0 
+0111 708a0305 jam 5 ,core_clkpll_cfg0 
+0112 708a7a94 jam 0x94 ,core_rx_iqadc_cfg 
+0113 6fe0c0c6 fetch 1 ,mem_fcomp_div 
+0114 c0840116 bne xtal_16m ,p_initialize_radio_1 
+0115 708a0834 jam 0x34 ,core_clkpll_cfg5 
+
+p_initialize_radio_1:
+0116 708a01ff jam 0xff ,core_clkpll_ctrl1 
+0117 20000064 nop 100 
+0118 708a020e jam 0x0e ,core_clkpll_ctrl2 
+0119 708a0003 jam 0x03 ,core_clkpll_ctrl0 
+011a 204001c4 call set_tx_power_0db 
+011b 708a9a2b jam 0x2b ,core_tx_mixer_cfg1 
+011c 708a9b13 jam 0x13 ,core_tx_mixer_cfg2 
+011d 20401276 call init_lpm_ctrl 
+011e 2000000a nop 10 
+011f 70804205 jam 5 ,core_clksel 
+0120 2020025b branch p_le_disable 
+
+p_save_rssi:
+0121 70001920 jam 0x20 ,mem_rssi_hex 
+0122 6ff089a0 fetch 1 ,modem_rssi 
+0123 67e08021 store 1 ,mem_modem_rssi 
+0124 1fe67cfc sub pdata ,0xfc ,null 
+0125 24610000 nrtn positive 
+0126 1fe67c7f sub pdata ,0x7f ,null 
+0127 20610000 rtn positive 
+0128 6ff089a3 fetch 1 ,modem_gain 
+0129 1fe1040f and pdata ,0x0f ,temp 
+012a 18438400 lshift temp ,temp 
+012b 1ff1fe00 rshift4 pdata ,pdata 
+012c 98408400 iadd temp ,temp 
+012d 184f8403 mul32 temp ,3 ,temp 
+012e 6fe08021 fetch 1 ,mem_modem_rssi 
+012f 1fe67eff sub pdata ,0xff ,pdata 
+0130 9840fe00 iadd temp ,pdata 
+0131 1fe0fffb increase -5 ,pdata 
+0132 67e08019 store 1 ,mem_rssi_hex 
+0133 20600000 rtn 
+
+p_rssi_hex2dec:
+0134 6fe08019 fetch 1 ,mem_rssi_hex 
+0135 2040123f call bcd 
+0136 67e08018 store 1 ,mem_rssi 
+0137 20600000 rtn 
+
+p_shutdown_radio:
+0138 204001ec call p_set_sync_on 
+0139 708a1600 jam 0 ,core_syn_en 
+013a 708a0a10 jam 0x10 ,core_rf_ldo_en0 
+013b 6ff08a09 fetch 1 ,core_clkpll_cfg6 
+013c 793ffe07 set0 7 ,pdata 
+013d 67f08a09 store 1 ,core_clkpll_cfg6 
+013e 708a0b00 jam 0 ,core_rf_ldo_en1 
+
+p_gain_control:
+013f 242c0163 nbranch p_gain_increase ,sync 
+0140 6fe08021 fetch 1 ,mem_modem_rssi 
+0141 1fe67cf0 sub pdata ,0xf0 ,null 
+0142 24210167 nbranch p_gain_descend ,positive 
+0143 1fe67c7f sub pdata ,0x7f ,null 
+0144 20210167 branch p_gain_descend ,positive 
+0145 6a308961 fetchr rega ,1 ,core_rf_rx_gain_fix 
+0146 6fe0c1ee fetch 1 ,mem_gain_fix 
+0147 c1000000 rtneq 0 
+0148 d8c04483 arg mem_gain_table ,contr 
+0149 98c08c00 iadd contr ,contr 
+014a efe08006 ifetch 1 ,contr 
+014b 9a267c00 isub rega ,null 
+014c 24628000 nrtn zero 
+014d 18c08dfe increase -2 ,contr 
+014e e8408006 ifetcht 1 ,contr 
+014f 1851fe00 rshift4 temp ,pdata 
+0150 1a31a400 rshift4 rega ,regb 
+0151 9a462400 isub regb ,regb 
+0152 18417e0f and temp ,0xf ,pdata 
+0153 1a21220f and rega ,0xf ,rega 
+0154 9a262200 isub rega ,rega 
+0155 1a23fe00 lshift rega ,pdata 
+0156 9a40a400 iadd regb ,regb 
+0157 1a4fa403 mul32 regb ,3 ,regb 
+0158 68488021 fetcht 1 ,mem_modem_rssi 
+0159 18417e80 and temp ,0x80 ,pdata 
+015a 207a0000 rtn blank 
+
+p_add_negative:
+015b 58000100 setarg 0x100 
+015c 98460400 isub temp ,temp 
+015d 1a427e00 copy regb ,pdata 
+015e 98467e00 isub temp ,pdata 
+015f 20610000 rtn positive 
+0160 1fe17eff and pdata ,0xff ,pdata 
+0161 c17f8000 rtneq 0xff 
+0162 c17f0000 rtneq 0xfe 
+
+p_gain_increase:
+0163 6fe0c1ee fetch 1 ,mem_gain_fix 
+0164 c000816c beq 1 ,p_set_rx_gain0 
+0165 c001016e beq 2 ,p_set_rx_gain1 
+0166 2020016c branch p_set_rx_gain0 
+
+p_gain_descend:
+0167 6fe0c1ee fetch 1 ,mem_gain_fix 
+0168 c000016e beq 0 ,p_set_rx_gain1 
+0169 c000816a beq 1 ,p_set_rx_gain2 
+
+p_set_rx_gain2:
+016a 7041ee02 jam 2 ,mem_gain_fix 
+016b 20600000 rtn 
+
+p_set_rx_gain0:
+016c 7041ee00 jam 0 ,mem_gain_fix 
+016d 20600000 rtn 
+
+p_set_rx_gain1:
+016e 7041ee01 jam 1 ,mem_gain_fix 
+016f 20600000 rtn 
+
+p_set_freq_rx:
+0170 6fe0c0c6 fetch 1 ,mem_fcomp_div 
+0171 1fe67c18 sub pdata ,xtal_24m ,null 
+0172 2042817a call p_rf_rx_write_freq_24m ,zero 
+0173 24428180 ncall p_rf_rx_write_freq_16m ,zero 
+0174 60488017 storet 1 ,mem_last_freq 
+0175 1840fe00 add temp ,0 ,pdata 
+0176 c5168178 bmark1 mark_ble_2m ,p_set_rxfreq_2m_offset 
+0177 1840fe01 add temp ,1 ,pdata 
+
+p_set_rxfreq_2m_offset:
+0178 2040021d call p_rf_rx_write_freq 
+0179 20201080 branch calc_mod_value_scale 
+
+p_rf_rx_write_freq_24m:
+017a 708a4300 jam 0 ,core_syn_cal_ctrl 
+017b 708a3d04 jam 0x04 ,core_syn_top_ctrl 
+017c 708a3e00 jam 0 ,core_syn_mmd_cp_ctrl 
+017d 708a8403 jam 0x03 ,core_syn_cp_lpf_cfg 
+017e 708a8940 jam 0x40 ,core_syn_afc_cfg3 
+017f 20600000 rtn 
+
+p_rf_rx_write_freq_16m:
+0180 708a4330 jam 0x30 ,core_syn_cal_ctrl 
+0181 708a3d06 jam 0x06 ,core_syn_top_ctrl 
+0182 708a3e00 jam 0 ,core_syn_mmd_cp_ctrl 
+0183 708a8420 jam 0x20 ,core_syn_cp_lpf_cfg 
+0184 708a8915 jam 0x15 ,core_syn_afc_cfg3 
+0185 20600000 rtn 
+
+p_rf_rx_enable:
+0186 20404c94 call rf_debug_rx_gpio_high 
+0187 6fe0c1ee fetch 1 ,mem_gain_fix 
+0188 d8c04483 arg mem_gain_table ,contr 
+0189 98c08c00 iadd contr ,contr 
+018a efe08006 ifetch 1 ,contr 
+018b 67f08961 store 1 ,core_rf_rx_gain_fix 
+018c 70896027 jam 0x27 ,core_rf_rx_agc_ctrl 
+018d 708a10aa jam 0xaa ,core_rf_ldo_cfg4 
+018e 708a112a jam 0x2a ,core_rf_ldo_cfg5 
+018f 708a1213 jam 0x13 ,core_rf_ldo_cfg6 
+0190 708a0a7f jam 0x7f ,core_rf_ldo_en0 
+0191 6ff08a09 fetch 1 ,core_clkpll_cfg6 
+0192 793ffe07 set0 7 ,pdata 
+0193 67f08a09 store 1 ,core_clkpll_cfg6 
+0194 2000003c nop 60 
+0195 708a171f jam 0x1f ,core_rx_en0 
+0196 708a18f8 jam 0xf8 ,core_rx_en1 
+0197 708a1918 jam 0x18 ,core_tx_en0 
+0198 708a1000 jam 0x00 ,core_rf_ldo_cfg4 
+0199 708a1120 jam 0x20 ,core_rf_ldo_cfg5 
+019a 2000000a nop 10 
+019b 70890004 jam 0x04 ,modem_en 
+019c 20000002 nop 2 
+019d 7089000c jam 0x0c ,modem_en 
+019e 20600000 rtn 
+
+p_match_le_set_txfreq:
+019f 68488017 fetcht 1 ,mem_last_freq 
+01a0 1840a202 add temp ,2 ,rega 
+01a1 c51681a3 bmark1 mark_ble_2m ,p_match_le_set_txfreq_offset 
+01a2 1840a202 add temp ,2 ,rega 
+
+p_match_le_set_txfreq_offset:
+01a3 7846fc00 disable decode_fec0 
+01a4 204001ec call p_set_sync_on 
+01a5 20200221 branch p_rf_tx_write_freq 
+
+p_set_freq_tx:
+01a6 708a3d12 jam 0x12 ,core_syn_top_ctrl 
+01a7 60488017 storet 1 ,mem_last_freq 
+01a8 1840a202 add temp ,2 ,rega 
+01a9 20400221 call p_rf_tx_write_freq 
+01aa 200003c0 nop 0x3c0 
+
+p_txon:
+01ab 708a10aa jam 0xaa ,core_rf_ldo_cfg4 
+01ac 708a112a jam 0x2a ,core_rf_ldo_cfg5 
+01ad 708a1210 jam 0x10 ,core_rf_ldo_cfg6 
+01ae 708a0a7f jam 0x7f ,core_rf_ldo_en0 
+01af 6ff08a09 fetch 1 ,core_clkpll_cfg6 
+01b0 793ffe07 set0 7 ,pdata 
+01b1 67f08a09 store 1 ,core_clkpll_cfg6 
+01b2 708a0b07 jam 0x07 ,core_rf_ldo_en1 
+01b3 2000003c nop 60 
+01b4 708a190d jam 0x0d ,core_tx_en0 
+01b5 708a1af9 jam 0xf9 ,core_tx_en1 
+01b6 708a1000 jam 0x00 ,core_rf_ldo_cfg4 
+01b7 708a1120 jam 0x20 ,core_rf_ldo_cfg5 
+01b8 2000000a nop 10 
+01b9 70890001 jam 0x01 ,modem_en 
+01ba 20000002 nop 2 
+01bb 70890003 jam 0x03 ,modem_en 
+01bc 6fe0c1eb fetch 1 ,mem_tx_power 
+01bd c00081c9 beq tx_power_3db ,set_tx_power_3db 
+01be c00101ce beq tx_power_5db ,set_tx_power_5db 
+01bf c00281d3 beq tx_power_6db ,set_tx_power_6db 
+01c0 c00181d8 beq tx_power_f3db ,set_tx_power_f3db 
+01c1 c00201dd beq tx_power_f5db ,set_tx_power_f5db 
+01c2 c07601e7 beq tx_power_f20db ,set_tx_power_f20db 
+01c3 c00501e2 beq tx_power_10db ,set_tx_power_10db 
+
+set_tx_power_0db:
+01c4 708a396a jam 0x6a ,core_tx_pwr_ctrl0 
+01c5 708a3a07 jam 0x07 ,core_tx_pwr_ctrl1 
+01c6 708a14a3 jam 0xa3 ,core_rf_ldo_cfg8 
+01c7 708a1507 jam 0x07 ,core_rf_ldo_cfg9 
+01c8 20600000 rtn 
+
+set_tx_power_3db:
+01c9 708a3966 jam 0x66 ,core_tx_pwr_ctrl0 
+01ca 708a3a0b jam 0x0b ,core_tx_pwr_ctrl1 
+01cb 708a14aa jam 0xaa ,core_rf_ldo_cfg8 
+01cc 708a150a jam 0x0a ,core_rf_ldo_cfg9 
+01cd 20600000 rtn 
+
+set_tx_power_5db:
+01ce 708a396c jam 0x6c ,core_tx_pwr_ctrl0 
+01cf 708a3a0d jam 0x0d ,core_tx_pwr_ctrl1 
+01d0 708a14aa jam 0xaa ,core_rf_ldo_cfg8 
+01d1 708a150a jam 0x0a ,core_rf_ldo_cfg9 
+01d2 20600000 rtn 
+
+set_tx_power_6db:
+01d3 708a396b jam 0x6b ,core_tx_pwr_ctrl0 
+01d4 708a3a0f jam 0x0f ,core_tx_pwr_ctrl1 
+01d5 708a14aa jam 0xaa ,core_rf_ldo_cfg8 
+01d6 708a150a jam 0x0a ,core_rf_ldo_cfg9 
+01d7 20600000 rtn 
+
+set_tx_power_f3db:
+01d8 708a3968 jam 0x68 ,core_tx_pwr_ctrl0 
+01d9 708a3a05 jam 0x05 ,core_tx_pwr_ctrl1 
+01da 708a14a3 jam 0xa3 ,core_rf_ldo_cfg8 
+01db 708a1507 jam 0x07 ,core_rf_ldo_cfg9 
+01dc 20600000 rtn 
+
+set_tx_power_f5db:
+01dd 708a3960 jam 0x60 ,core_tx_pwr_ctrl0 
+01de 708a3a05 jam 0x05 ,core_tx_pwr_ctrl1 
+01df 708a14a3 jam 0xa3 ,core_rf_ldo_cfg8 
+01e0 708a1507 jam 0x07 ,core_rf_ldo_cfg9 
+01e1 20600000 rtn 
+
+set_tx_power_10db:
+01e2 708a39b6 jam 0xB6 ,core_tx_pwr_ctrl0 
+01e3 708a3a0f jam 0x0F ,core_tx_pwr_ctrl1 
+01e4 708a14aa jam 0xaa ,core_rf_ldo_cfg8 
+01e5 708a150a jam 0x0a ,core_rf_ldo_cfg9 
+01e6 20600000 rtn 
+
+set_tx_power_f20db:
+01e7 708a3953 jam 0x53 ,core_tx_pwr_ctrl0 
+01e8 708a3a01 jam 0x01 ,core_tx_pwr_ctrl1 
+01e9 708a14a3 jam 0xa3 ,core_rf_ldo_cfg8 
+01ea 708a1507 jam 0x07 ,core_rf_ldo_cfg9 
+01eb 20600000 rtn 
+
+p_set_sync_on:
+01ec 70890005 jam 0x5 ,modem_en 
+01ed 20000002 nop 2 
+01ee 70890000 jam 0x0 ,modem_en 
+01ef 6fe0c0c6 fetch 1 ,mem_fcomp_div 
+01f0 c00c01f2 beq xtal_24m ,p_set_sync_on_24m 
+01f1 c0040207 beq xtal_16m ,p_set_sync_on_16m 
+
+p_set_sync_on_24m:
+01f2 708a10aa jam 0xaa ,core_rf_ldo_cfg4 
+01f3 708a11aa jam 0xaa ,core_rf_ldo_cfg5 
+01f4 708a1215 jam 0x15 ,core_rf_ldo_cfg6 
+01f5 708a0a78 jam 0x78 ,core_rf_ldo_en0 
+01f6 6ff08a09 fetch 1 ,core_clkpll_cfg6 
+01f7 79207e07 set1 7 ,pdata 
+01f8 67f08a09 store 1 ,core_clkpll_cfg6 
+01f9 708a0b04 jam 0x04 ,core_rf_ldo_en1 
+01fa 2000003c nop 60 
+01fb 708a167a jam 0x7a ,core_syn_en 
+01fc 708a1700 jam 0 ,core_rx_en0 
+01fd 708a1800 jam 0 ,core_rx_en1 
+01fe 708a1900 jam 0 ,core_tx_en0 
+01ff 708a1a00 jam 0 ,core_tx_en1 
+0200 708a112a jam 0x2a ,core_rf_ldo_cfg5 
+0201 708a0a78 jam 0x78 ,core_rf_ldo_en0 
+0202 6ff08a09 fetch 1 ,core_clkpll_cfg6 
+0203 793ffe07 set0 7 ,pdata 
+0204 67f08a09 store 1 ,core_clkpll_cfg6 
+0205 708a4300 jam 0 ,core_syn_cal_ctrl 
+0206 20600000 rtn 
+
+p_set_sync_on_16m:
+0207 708a8be6 jam 0xe6 ,core_syn_aac_cfg1 
+0208 708a10aa jam 0xaa ,core_rf_ldo_cfg4 
+0209 708a11aa jam 0xaa ,core_rf_ldo_cfg5 
+020a 708a1215 jam 0x15 ,core_rf_ldo_cfg6 
+020b 708a0a78 jam 0x78 ,core_rf_ldo_en0 
+020c 6ff08a09 fetch 1 ,core_clkpll_cfg6 
+020d 79207e07 set1 7 ,pdata 
+020e 67f08a09 store 1 ,core_clkpll_cfg6 
+020f 708a0b04 jam 0x04 ,core_rf_ldo_en1 
+0210 2000003c nop 60 
+0211 708a163a jam 0x3a ,core_syn_en 
+0212 708a1700 jam 0 ,core_rx_en0 
+0213 708a1800 jam 0 ,core_rx_en1 
+0214 708a1900 jam 0 ,core_tx_en0 
+0215 708a1a00 jam 0 ,core_tx_en1 
+0216 708a112a jam 0x2a ,core_rf_ldo_cfg5 
+0217 708a0a38 jam 0x38 ,core_rf_ldo_en0 
+0218 6ff08a09 fetch 1 ,core_clkpll_cfg6 
+0219 793ffe07 set0 7 ,pdata 
+021a 67f08a09 store 1 ,core_clkpll_cfg6 
+021b 708a4300 jam 0 ,core_syn_cal_ctrl 
+021c 20600000 rtn 
+
+p_rf_rx_write_freq:
+021d d8c00960 arg 2400 ,contr 
+021e 98c0fe00 iadd contr ,pdata 
+021f 6848c0c6 fetcht 1 ,mem_fcomp_div 
+0220 2020022a branch p_rf_write_freq_calc 
+
+p_rf_tx_write_freq:
+0221 6fe0c0c6 fetch 1 ,mem_fcomp_div 
+0222 1fe67c18 sub pdata ,xtal_24m ,null 
+0223 2042824d call p_rf_tx_write_freq_24m ,zero 
+0224 24428254 ncall p_rf_tx_write_freq_16m ,zero 
+0225 58000960 setarg 2400 
+0226 9a20fe00 iadd rega ,pdata 
+0227 1fe3fe00 lshift pdata ,pdata 
+0228 6848c0c6 fetcht 1 ,mem_fcomp_div 
+0229 184f8403 mul32 temp ,0x03 ,temp 
+
+p_rf_write_freq_calc:
+022a 18438400 lshift temp ,temp 
+022b 9846fc00 idiv temp 
+022c 20407dfd call wait_div_end 
+022d 1807fe00 quotient pdata 
+022e 67f08a3f store 1 ,core_syn_divr_int 
+022f 18077e00 remainder pdata 
+0230 1ff07e00 lshift16 pdata ,pdata 
+0231 1fed7e00 lshift8 pdata ,pdata 
+0232 9846fc00 idiv temp 
+0233 20407dfd call wait_div_end 
+0234 1807fe00 quotient pdata 
+0235 67f08a42 store 1 ,core_syn_divr_int + 3 
+0236 1fecfe00 rshift8 pdata ,pdata 
+0237 67f08a41 store 1 ,core_syn_divr_int + 2 
+0238 1fecfe00 rshift8 pdata ,pdata 
+0239 67f08a40 store 1 ,core_syn_divr_int + 1 
+023a 68588a43 fetcht 1 ,core_syn_cal_ctrl 
+023b 184104f0 and_into 0xf0 ,temp 
+023c 60588a43 storet 1 ,core_syn_cal_ctrl 
+023d 2000000c nop 12 
+023e 6fe0c0c6 fetch 1 ,mem_fcomp_div 
+023f c00c0241 beq xtal_24m ,p_rf_write_freq_calc_24m 
+0240 c0040247 beq xtal_16m ,p_rf_write_freq_calc_16m 
+
+p_rf_write_freq_calc_24m:
+0241 1841840c or_into 0x0c ,temp 
+0242 60588a43 storet 1 ,core_syn_cal_ctrl 
+0243 2000000c nop 12 
+0244 18418403 or_into 0x03 ,temp 
+0245 60588a43 storet 1 ,core_syn_cal_ctrl 
+0246 20600000 rtn 
+
+p_rf_write_freq_calc_16m:
+0247 1841843c or_into 0x3c ,temp 
+0248 60588a43 storet 1 ,core_syn_cal_ctrl 
+0249 2000000c nop 12 
+024a 18418433 or_into 0x33 ,temp 
+024b 60588a43 storet 1 ,core_syn_cal_ctrl 
+024c 20600000 rtn 
+
+p_rf_tx_write_freq_24m:
+024d 708a4300 jam 0 ,core_syn_cal_ctrl 
+024e 708a3d12 jam 0x12 ,core_syn_top_ctrl 
+024f 708a3e00 jam 0 ,core_syn_mmd_cp_ctrl 
+0250 708a8403 jam 0x03 ,core_syn_cp_lpf_cfg 
+0251 708a8ba6 jam 0xa6 ,core_syn_aac_cfg1 
+0252 708a8940 jam 0x40 ,core_syn_afc_cfg3 
+0253 20600000 rtn 
+
+p_rf_tx_write_freq_16m:
+0254 708a4330 jam 0x30 ,core_syn_cal_ctrl 
+0255 708a3d15 jam 0x15 ,core_syn_top_ctrl 
+0256 708a3e00 jam 0 ,core_syn_mmd_cp_ctrl 
+0257 708a8420 jam 0x20 ,core_syn_cp_lpf_cfg 
+0258 708a8ba6 jam 0xa6 ,core_syn_aac_cfg1 
+0259 708a8915 jam 0x15 ,core_syn_afc_cfg3 
+025a 20600000 rtn 
+
+p_le_disable:
+025b 785b7c00 disable le 
+025c 793f8031 set0 mark_ble_encryption ,mark 
+025d 70890100 jam 0x00 ,0x8901 
+025e 70892080 jam 0x80 ,0x8920 
+025f 708925a3 jam 0xa3 ,0x8925 
+0260 70893003 jam 0x03 ,0x8930 
+0261 70893368 jam 0x68 ,0x8933 
+0262 70893409 jam 0x09 ,0x8934 
+0263 70893728 jam 0x28 ,0x8937 
+0264 708a6d09 jam 9 ,core_rx_bq_cfg0 
+0265 20600000 rtn 
+
+p_mouse_init:
+0266 204000f4 call p_mouse_default_init 
+0267 2040121e call initialize_radio 
+0268 20400322 call p_mouse_setting_config 
+0269 204041a3 call mouse_init_sunt 
+026a 2040409c call mouse_dpi_config 
+026b 20758000 rtn wake 
+026c 20403db2 call mouse_usb_check_enable 
+026d 2040473f call mouse_drawing_optima_init 
+026e 2040027f call p_mouse_cb_fuction 
+026f 20400639 call p_mouse_sensor_powerdown 
+0270 6fe0c8fd fetch 1 ,mem_usb_addr 
+0271 c3838000 rtnbit1 7 
+
+p_mouse_init_wireless:
+0272 20203d79 branch mouse_start_work 
+
+p_mouse_bb_event_timer:
+0273 204047eb call mouse_24g_delay_timer 
+0274 20402bc3 call g24_pair_timeout_timer 
+0275 20402df3 call g24_reconn_timeout_timer 
+0276 20400697 call p_mouse_24g_long_sleep_param_update_timer 
+0277 204048c2 call mouse_device_poweron_timer 
+0278 204048f1 call mouse_dpi_led_blink_delay_timer 
+0279 2040408a call mouse_dpi_key_check_long_press 
+027a 2040450b call mouse_bt_discovery_check 
+027b 2040451b call mouse_commbination_key_process 
+027c 20404039 call mouse_wheel_trigger_timer 
+027d 20404585 call mouse_store_information_delay_timer 
+027e 2020031a branch p_mouse_check_no_data_timeout_timer 
+
+p_mouse_cb_fuction:
+027f 580002cd setarg p_mouse_24g_package_data 
+0280 67e14889 store 2 ,mem_cb_24g_transmit_data 
+0281 580002eb setarg p_mouse_24g_search_dongle 
+0282 67e1488b store 2 ,mem_cb_24g_search_receiver 
+0283 58003e63 setarg mouse_lpm_before_common 
+0284 67e1488d store 2 ,mem_cb_24g_lpm_before 
+0285 580043d9 setarg mouse_le 
+0286 67e14461 store 2 ,mem_cb_le_process 
+0287 58004495 setarg mouse_bt 
+0288 67e14463 store 2 ,mem_cb_bt_process 
+0289 5800045d setarg p_mouse_process_lpm_before 
+028a 67e1445f store 2 ,mem_cb_before_lpm 
+028b 5800436d setarg mouse_priority_bb_event 
+028c 67e14467 store 2 ,mem_cb_bb_event_process 
+028d 5800468b setarg mouse_idle 
+028e 67e14465 store 2 ,mem_cb_idle_process 
+028f 58003e4c setarg mouse_before_hibernate 
+0290 67e1445d store 2 ,mem_cb_before_hibernate 
+0291 580043c2 setarg mouse_le_bb_event_connect_complete 
+0292 67e1446b store 2 ,mem_cb_att_write 
+0293 580044f3 setarg mouse_bb_event_timer 
+0294 67e1446f store 2 ,mem_cb_event_timer 
+0295 58003f76 setarg mouse_spi_write_flash_cb 
+0296 67e14473 store 2 ,mem_cb_spi_flash_write_complate 
+0297 58003e3c setarg mouse_lpm_check_wake_lock 
+0298 67e1445b store 2 ,mem_cb_check_wakelock 
+0299 5800029e setarg p_mouse_le_transmit 
+029a 67e1446d store 2 ,mem_cb_ble_transmit 
+029b 580002a0 setarg p_mouse_bt_slave_match 
+029c 67e14477 store 2 ,mem_cb_bt_slave_match 
+029d 20600000 rtn 
+
+p_mouse_le_transmit:
+029e 20400134 call p_rssi_hex2dec 
+029f 2020499b branch mouse_le_transmit 
+
+p_mouse_bt_slave_match:
+02a0 20400134 call p_rssi_hex2dec 
+02a1 2020499e branch mouse_bt_slave_match 
+
+p_mouse_24g_250hz_enable:
+02a2 d8e00018 arg mouse_enable_24g_250hz ,queue 
+02a3 2020471d branch mouse_enable_function_flag 
+
+p_mouse_24g_search_dongle_enable:
+02a4 d8e00016 arg mouse_enable_24g_search_dongle ,queue 
+02a5 2020471d branch mouse_enable_function_flag 
+
+p_mouse_16m_enable:
+02a6 d8e0000c arg mouse_enable_16m ,queue 
+02a7 2020471d branch mouse_enable_function_flag 
+
+p_mouse_dpi_4level_enable:
+02a8 d8e0001c arg mouse_enable_dpi_level_4 ,queue 
+02a9 2020471d branch mouse_enable_function_flag 
+
+p_mouse_24g_long_sleep_set:
+02aa c00002b1 beq 0x00 ,p_mouse_24g_long_sleep_set_30ms 
+02ab c00082b3 beq 0x01 ,p_mouse_24g_long_sleep_set_50ms 
+02ac c00102ae beq 0x02 ,p_mouse_24g_long_sleep_set_80ms 
+02ad c00182b5 beq 0x03 ,p_mouse_24g_long_sleep_set_100ms 
+
+p_mouse_24g_long_sleep_set_80ms:
+02ae 580ea600 setarg 0x0ea600 
+
+p_mouse_24g_long_sleep_set_end:
+02af 67e24b87 store 4 ,mem_24g_long_sleep_set1 
+02b0 20600000 rtn 
+
+p_mouse_24g_long_sleep_set_30ms:
+02b1 5805e740 setarg 0x05e740 
+02b2 202002af branch p_mouse_24g_long_sleep_set_end 
+
+p_mouse_24g_long_sleep_set_50ms:
+02b3 580927c0 setarg 0x0927c0 
+02b4 202002af branch p_mouse_24g_long_sleep_set_end 
+
+p_mouse_24g_long_sleep_set_100ms:
+02b5 58124f80 setarg 0x124f80 
+02b6 202002af branch p_mouse_24g_long_sleep_set_end 
+
+p_mouse_customer_key_enable:
+02b7 d8e00015 arg mouse_enable_keyboard ,queue 
+02b8 2040471d call mouse_enable_function_flag 
+02b9 58000000 setarg 0 
+02ba 67e44b71 store 8 ,mem_customer_key_press 
+02bb 67e44b7a store 8 ,mem_customer_key_release 
+02bc 6fe0cbae fetch 1 ,mem_mouse_enable_flag 
+02bd 1fe17ec0 and pdata ,0xc0 ,pdata 
+02be c02002c4 beq 0x40 ,p_mouse_customer_key_ctrl_alt_a 
+02bf c04002c6 beq 0x80 ,p_mouse_customer_ac_home 
+02c0 c06002cb beq 0xc0 ,p_mouse_customer_key_play 
+02c1 58070008 setarg 0x070008 
+
+p_mouse_customer_standrad_key_set:
+02c2 67e44b72 store 8 ,mem_customer_key_press + 1 
+02c3 20600000 rtn 
+
+p_mouse_customer_key_ctrl_alt_a:
+02c4 58040005 setarg 0x040005 
+02c5 202002c2 branch p_mouse_customer_standrad_key_set 
+
+p_mouse_customer_ac_home:
+02c6 58022303 setarg 0x022303 
+
+p_mouse_customer_media_key_set:
+02c7 67e44b71 store 8 ,mem_customer_key_press 
+02c8 58000003 setarg 0x03 
+02c9 67e44b7a store 8 ,mem_customer_key_release 
+02ca 20600000 rtn 
+
+p_mouse_customer_key_play:
+02cb 5800cd03 setarg 0x00cd03 
+02cc 202002c7 branch p_mouse_customer_media_key_set 
+
+p_mouse_24g_package_data:
+02cd c6930000 rtnmark0 mark_24g 
+02ce 20403f87 call mouse_motion 
+02cf 24740000 nrtn user 
+02d0 6fe44b50 fetch mouse_flag_len ,mem_mouse_flag 
+02d1 c30a82d4 bbit0 mouse_enable_keyboard ,p_mouse_24g_mouse_package_data 
+02d2 6fe0cb30 fetch 1 ,mem_customer_key 
+02d3 243a487d nbranch mouse_24g_keyboard_package_data ,blank 
+
+p_mouse_24g_mouse_package_data:
+02d4 20404300 call mouse_data_xy_release 
+02d5 6fe0c835 fetch 1 ,mem_24g_data_type 
+02d6 c28082e3 bbit1 1 ,p_mouse_24g_mouse_package_data_now 
+02d7 6848c7c6 fetcht 1 ,mem_24g_txbuf + 1 
+02d8 6fe0c8b3 fetch 1 ,mem_mouse_key 
+02d9 9841fe00 ior temp ,pdata 
+02da 67e0c8b3 store 1 ,mem_mouse_key 
+02db 6848c7cb fetcht 1 ,mem_24g_txbuf + 6 
+02dc 6fe0c8b8 fetch 1 ,mem_mouse_z 
+02dd 9840fe00 iadd temp ,pdata 
+02de 67e0c8b8 store 1 ,mem_mouse_z 
+02df 6848c7cc fetcht 1 ,mem_24g_txbuf + 7 
+02e0 6fe0c8b9 fetch 1 ,mem_mouse_tz 
+02e1 9840fe00 iadd temp ,pdata 
+02e2 67e0c8b9 store 1 ,mem_mouse_tz 
+
+p_mouse_24g_mouse_package_data_now:
+02e3 70483501 jam type_ms ,mem_24g_data_type 
+02e4 da200007 arg 7 ,rega 
+02e5 da4048b3 arg mem_mouse_key ,regb 
+02e6 6fe44b50 fetch mouse_flag_len ,mem_mouse_flag 
+02e7 c28c2f5e bbit1 mouse_enable_24g_250hz ,g24_transmit_by_interrupt_enable 
+02e8 6fe148b8 fetch 2 ,mem_mouse_z 
+02e9 207a0000 rtn blank 
+02ea 20202f5e branch g24_transmit_by_interrupt_enable 
+
+p_mouse_24g_search_dongle:
+02eb 6fe44b50 fetch mouse_flag_len ,mem_mouse_flag 
+02ec c40b0000 rtnbit0 mouse_enable_24g_search_dongle 
+02ed 6fe0ca51 fetch 1 ,mem_mouse_long_mult_flag 
+02ee 207a0000 rtn blank 
+02ef 6fe0c894 fetch 1 ,mem_24g_abort_pac 
+02f0 207a0000 rtn blank 
+02f1 6fe0cb46 fetch 1 ,mem_mouse_search_dongle_interval 
+02f2 1fe0fe01 increase 1 ,pdata 
+02f3 1fe17e03 and_into 3 ,pdata 
+02f4 67e0cb46 store 1 ,mem_mouse_search_dongle_interval 
+02f5 247a0000 nrtn blank 
+02f6 704b4700 jam 0 ,mem_mouse_search_dongle_ch 
+
+p_mouse_24g_search_dongle_loop:
+02f7 6fe0cb47 fetch 1 ,mem_mouse_search_dongle_ch 
+02f8 1fe0fe01 increase 1 ,pdata 
+02f9 67e0cb47 store 1 ,mem_mouse_search_dongle_ch 
+02fa 1fe67c08 sub pdata ,g24_ch_number ,null 
+02fb 24210301 nbranch p_mouse_24g_search_dongle_loop_end ,positive 
+02fc 20402e37 call g24_reconn_data_prep 
+02fd 20402ee1 call g24_transmit_receive_ack 
+02fe 242c0307 nbranch p_mouse_24g_search_dongle_loop_retry ,sync 
+02ff 24378307 nbranch p_mouse_24g_search_dongle_loop_retry ,user3 
+0300 20400311 call p_mouse_24g_search_dongle_success 
+
+p_mouse_24g_search_dongle_loop_end:
+0301 20402e34 call g24_txbuf_clear 
+0302 6fe0cb48 fetch 1 ,mem_mouse_search_dongle_count 
+0303 1fe0fe01 increase 1 ,pdata 
+0304 67e0cb48 store 1 ,mem_mouse_search_dongle_count 
+0305 c0080309 beq g24_ch_poll_count ,p_mouse_24g_search_dongle_check 
+0306 20600000 rtn 
+
+p_mouse_24g_search_dongle_loop_retry:
+0307 20402b8f call g24_ch 
+0308 202002f7 branch p_mouse_24g_search_dongle_loop 
+
+p_mouse_24g_search_dongle_check:
+0309 704b4800 jam 0 ,mem_mouse_search_dongle_count 
+030a 6fe0cb49 fetch 1 ,mem_mouse_search_dongle_action 
+030b c3800000 rtnbit1 g24_disconn_state 
+030c 79207e00 set1 g24_disconn_state ,pdata 
+030d 67e0cb49 store 1 ,mem_mouse_search_dongle_action 
+030e 6fe14b9d fetch 2 ,mem_mouse_24g_search_dongle_time_init 
+030f 67e14a55 store 2 ,mem_mouse_no_data_timer 
+0310 20200639 branch p_mouse_sensor_powerdown 
+
+p_mouse_24g_search_dongle_success:
+0311 6fe0c894 fetch 1 ,mem_24g_abort_pac 
+0312 203a4892 branch mouse_24g_search_dongle_init ,blank 
+0313 704b4800 jam 0 ,mem_mouse_search_dongle_count 
+0314 6fe0cb49 fetch 1 ,mem_mouse_search_dongle_action 
+0315 c4000000 rtnbit0 g24_disconn_state 
+0316 793ffe00 set0 g24_disconn_state ,pdata 
+0317 67e0cb49 store 1 ,mem_mouse_search_dongle_action 
+0318 20404582 call mouse_no_data_timer_init 
+0319 202005f5 branch p_mouse_init_sensor_wakeup 
+
+p_mouse_check_no_data_timeout_timer:
+031a 6fe0c8fd fetch 1 ,mem_usb_addr 
+031b c3838000 rtnbit1 7 
+031c da604a55 arg mem_mouse_no_data_timer ,regc 
+031d da40031f arg p_mouse_check_no_data_timeout ,regb 
+031e 2020304b branch timer_single_step_2b 
+
+p_mouse_check_no_data_timeout:
+031f 6fe0c90b fetch 1 ,mem_device_flag 
+0320 c000062e beq mode_24g_device ,p_mouse_24g_hibernate_set 
+0321 20204354 branch mouse_disconnect 
+
+p_mouse_setting_config:
+0322 20758000 rtn wake 
+0323 20402ea2 call g24_transmit_init 
+0324 2040036f call p_g24_rx_window_init 
+0325 20400642 call p_g24_chmap_param_init 
+0326 20400335 call p_mouse_gpio_init 
+0327 20403d3a call mouse_param_init 
+0328 6fe44b50 fetch mouse_flag_len ,mem_mouse_flag 
+0329 c30c032c bbit0 mouse_enable_24g_250hz ,p_mouse_setting_config_next 
+032a 58100c0c setarg 0x100c0c 
+032b 67e1c853 store 3 ,mem_24g_interval 
+
+p_mouse_setting_config_next:
+032c 20400362 call p_mouse_sensor_set_angle 
+032d 20402321 call le_set_config_fixed_ltk 
+032e 2040234a call le_set_justwork 
+032f 2040233d call le_set_fixed_ltk 
+0330 20402329 call le_set_config_read_authentication 
+0331 6fe44b50 fetch mouse_flag_len ,mem_mouse_flag 
+0332 c289c676 bbit1 mouse_enable_eeprom ,mouse_load_eeprom_info_check + 1 
+0333 c2894636 bbit1 mouse_enable_flash ,mouse_load_flash_info_check 
+0334 20600000 rtn 
+
+p_mouse_gpio_init:
+0335 6848c4c4 fetcht 1 ,mem_eeprom_wp_gpio 
+0336 204060b8 call gpio_config_output 
+0337 204079d3 call usb_offline_check_init 
+0338 6848c8e4 fetcht 1 ,mem_lbutton_gpio 
+0339 204004a8 call p_mouse_gpio_config_input_pu 
+033a 6848c8e5 fetcht 1 ,mem_rbutton_gpio 
+033b 204004a8 call p_mouse_gpio_config_input_pu 
+033c 6848c8e6 fetcht 1 ,mem_mbutton_gpio 
+033d 204004a8 call p_mouse_gpio_config_input_pu 
+033e 6848c8e7 fetcht 1 ,mem_bk_button_gpio 
+033f 204004a8 call p_mouse_gpio_config_input_pu 
+0340 6848c8e8 fetcht 1 ,mem_fw_button_gpio 
+0341 204004a8 call p_mouse_gpio_config_input_pu 
+0342 6848c8e9 fetcht 1 ,mem_dpi_button_gpio 
+0343 204004a8 call p_mouse_gpio_config_input_pu 
+0344 6848c8ea fetcht 1 ,mem_matrix_public_gpio 
+0345 204004a8 call p_mouse_gpio_config_input_pu 
+0346 6848c8eb fetcht 1 ,mem_config_select_device_button_gpio 
+0347 204004a8 call p_mouse_gpio_config_input_pu 
+0348 6848c8ec fetcht 1 ,mem_customer_key_gpio 
+0349 204004a8 call p_mouse_gpio_config_input_pu 
+034a 6848c8ed fetcht 1 ,mem_whee_a_data_gpio 
+034b 204004a8 call p_mouse_gpio_config_input_pu 
+034c 6848c8ee fetcht 1 ,mem_whee_b_data_gpio 
+034d 204004a8 call p_mouse_gpio_config_input_pu 
+034e 6848c8ef fetcht 1 ,mem_whee_ta_data_gpio 
+034f 204004a8 call p_mouse_gpio_config_input_pu 
+0350 6848c8f0 fetcht 1 ,mem_whee_tb_data_gpio 
+0351 204004a8 call p_mouse_gpio_config_input_pu 
+0352 6848c8f1 fetcht 1 ,mem_sensor_motion_gpio 
+0353 204004a8 call p_mouse_gpio_config_input_pu 
+0354 6848c8f2 fetcht 1 ,mem_device_switch_gpio 
+0355 204004a8 call p_mouse_gpio_config_input_pu 
+0356 6848c8f3 fetcht 1 ,mem_config_low_voltage_alarm_gpio 
+0357 204060b8 call gpio_config_output 
+0358 6848c8f4 fetcht 1 ,mem_config_device_24g_led_gpio 
+0359 204060b8 call gpio_config_output 
+035a 6848c8f5 fetcht 1 ,mem_config_device_bt1_led_gpio 
+035b 204060b8 call gpio_config_output 
+035c 6848c8f6 fetcht 1 ,mem_config_device_bt2_led_gpio 
+035d 204060b8 call gpio_config_output 
+035e 6848c8f7 fetcht 1 ,mem_dpi_led_gpio 
+035f 204060b8 call gpio_config_output 
+0360 6848c8f8 fetcht 1 ,mem_select_sensor_angle_gpio 
+0361 202004a8 branch p_mouse_gpio_config_input_pu 
+
+p_mouse_sensor_set_angle:
+0362 6fe0c8f9 fetch 1 ,mem_sensor_angle_default 
+0363 67e0c8fb store 1 ,mem_config_sensor_angle 
+0364 6fe0c8f8 fetch 1 ,mem_select_sensor_angle_gpio 
+0365 c17f8000 rtneq gpio_disable 
+0366 6848c8f8 fetcht 1 ,mem_select_sensor_angle_gpio 
+0367 204004a8 call p_mouse_gpio_config_input_pu 
+0368 6848c8f8 fetcht 1 ,mem_select_sensor_angle_gpio 
+0369 204060a8 call gpio_get_bit 
+036a 2040836c call p_mouse_sensor_switch_angle ,true 
+036b 202004a7 branch p_mouse_gpio_config_input_pd 
+
+p_mouse_sensor_switch_angle:
+036c 6fe0c8fa fetch 1 ,mem_sensor_angle_switch 
+036d 67e0c8fb store 1 ,mem_config_sensor_angle 
+036e 20600000 rtn 
+
+p_g24_rx_window_init:
+036f d8407530 arg 0x7530 ,temp 
+0370 c5138375 bmark1 mark_24g_rxmode ,p_g24_rx_window_store 
+0371 d84012c0 arg 0x12c0 ,temp 
+0372 6fe0c863 fetch 1 ,mem_24g_rx_phy 
+0373 c3010375 bbit0 2 ,p_g24_rx_window_store 
+0374 d8402ee0 arg 0x2ee0 ,temp 
+
+p_g24_rx_window_store:
+0375 60494837 storet 2 ,mem_24g_rx_window 
+0376 20600000 rtn 
+
+p_g24_enable_1m:
+0377 70486301 jam 0x01 ,mem_24g_rx_phy 
+0378 70486401 jam 0x01 ,mem_24g_tx_phy 
+0379 20600000 rtn 
+
+p_g24_interval_param_4ms:
+037a 704b8605 jam 5 ,mem_24g_fast_hop_count 
+037b 58002fb2 setarg g24_4ms_interval_param 
+037c 67e1c89a store 3 ,mem_24g_short_sleep_set 
+037d 5800bb80 setarg 0x00bb80 
+037e 67e1c89d store 3 ,mem_24g_long_sleep_set 
+037f 58100c0c setarg 0x100c0c 
+0380 67e1c853 store 3 ,mem_24g_interval 
+0381 20600000 rtn 
+
+p_g24_interval_param_8ms:
+0382 704b860b jam 11 ,mem_24g_fast_hop_count 
+0383 5800f294 setarg g24_short_sleep_step1 
+0384 67e1c89a store 3 ,mem_24g_short_sleep_set 
+0385 58017700 setarg 0x017700 
+0386 67e1c89d store 3 ,mem_24g_long_sleep_set 
+0387 581c1919 setarg 0x1c1919 
+0388 67e1c853 store 3 ,mem_24g_interval 
+0389 20600000 rtn 
+
+p_mouse_param_default_set:
+038a 20758000 rtn wake 
+038b 700b58ff jam 0xff ,mem_usb_offline_check_gpio 
+038c 70409901 jam 1 ,mem_lpm_mode 
+038d 70478fff jam 0xff ,mem_ui_button_gpio 
+038e 70478e1e jam 0x1e ,mem_ui_button_timeout 
+038f 58004900 setarg mem_mouse_led_type 
+0390 67e14491 store 2 ,mem_ui_led_struct_ptr 
+0391 70449001 jam 1 ,mem_ui_led_struct_num 
+0392 58004a58 setarg mem_mouse_rssi_signal_buf 
+0393 67e14887 store 2 ,mem_rssi_signal_buf_ptr 
+0394 70483501 jam 1 ,mem_24g_data_type 
+0395 70487a01 jam 0x01 ,mem_24g_fast_conn_enable 
+0396 58000f0f setarg 0x0f0f 
+0397 67e1487b store 2 ,mem_24g_fast_conn_addr 
+0398 67e1487d store 2 ,mem_24g_fast_conn_addr + 2 
+0399 6fe0cbad fetch 1 ,mem_mouse_global_setup 
+039a 1fe10407 and pdata ,0x07 ,temp 
+039b 6048c4a4 storet 1 ,mem_adc_channel 
+039c 1ff1fe00 rshift4 pdata ,pdata 
+039d 1fe10403 and pdata ,0x03 ,temp 
+039e 6048c8d8 storet 1 ,mem_adc_config_flag_init 
+039f 1feb7e00 rshift2 pdata ,pdata 
+03a0 1fe17e03 and pdata ,0x03 ,pdata 
+03a1 204002aa call p_mouse_24g_long_sleep_set 
+03a2 6fe0cb9f fetch 1 ,mem_mouse_sensor_config 
+03a3 1fe10403 and pdata ,0x03 ,temp 
+03a4 6048c8f9 storet 1 ,mem_sensor_angle_default 
+03a5 1feb7e00 rshift2 pdata ,pdata 
+03a6 1fe10403 and pdata ,0x03 ,temp 
+03a7 6048c8fa storet 1 ,mem_sensor_angle_switch 
+03a8 1feb7e00 rshift2 pdata ,pdata 
+03a9 1fe17e03 and pdata ,0x03 ,pdata 
+03aa 67e0c8e3 store 1 ,mem_config_sensor_dpi 
+03ab 67e0c965 store 1 ,mem_mouse_dpi 
+03ac 6fe14ba1 fetch 2 ,mem_mouse_discovery_timeout 
+03ad 67e14790 store 2 ,mem_discovery_timeout 
+03ae 6fe14ba3 fetch 2 ,mem_mouse_24g_pair_timeout_init 
+03af 67e1486f store 2 ,mem_24g_pair_timeout_init 
+03b0 6fe1cba5 fetch 3 ,mem_rssi_dis_min_24g_init 
+03b1 67e1cba8 store 3 ,mem_rssi_dis_min_24g 
+03b2 6fe44b50 fetch mouse_flag_len ,mem_mouse_flag 
+03b3 247a0000 nrtn blank 
+03b4 584a0804 setarg 0x4a0804 
+03b5 67e1cb50 store 3 ,mem_mouse_flag 
+03b6 58800000 setarg 0x800000 
+03b7 e7e18005 istore 3 ,contw 
+03b8 58000303 setarg 0x0303 
+03b9 e7e10005 istore 2 ,contw 
+03ba 6fe0cbae fetch 1 ,mem_mouse_enable_flag 
+03bb 2feffe01 isolate1 mouse_search_dongle_enable ,pdata 
+03bc 204082a4 call p_mouse_24g_search_dongle_enable ,true 
+03bd 580b0c0a setarg 0x0b0c0a 
+03be 67e1c8e4 store 3 ,mem_lbutton_gpio 
+03bf 7048ebff jam 0xff ,mem_config_select_device_button_gpio 
+03c0 5800ffff setarg 0xffff 
+03c1 67e148ef store 2 ,mem_whee_ta_data_gpio 
+03c2 67e148f2 store 2 ,mem_device_switch_gpio 
+03c3 67e148f6 store 2 ,mem_config_device_bt2_led_gpio 
+03c4 58001770 setarg 0x1770 
+03c5 67e14b63 store 2 ,mem_mouse_no_data_timeout 
+03c6 704b6514 jam 0x14 ,mem_mouse_device_poweron_timer_count_init 
+03c7 58000190 setarg 0x0190 
+03c8 67e14b6b store 2 ,mem_mouse_low_v_led_blink_time 
+03c9 67e14b67 store 2 ,mem_mouse_dpi_led_blink_time 
+03ca 580003e8 setarg 0x03e8 
+03cb 67e14b69 store 2 ,mem_mouse_disconvey_led_blink_time 
+03cc 70486b07 jam 0x07 ,mem_rssi_buff_index 
+03cd 7048b27d jam 125 ,mem_power_ctrl_pac_succ_cnt_init 
+03ce 7041eb00 jam tx_power_0db ,mem_tx_power 
+03cf 58005000 setarg 0x005000 
+03d0 67e1c98b store 3 ,mem_flash_base 
+03d1 58001f80 setarg 0x1f80 
+03d2 67e14479 store 2 ,mem_eeprom_base 
+03d3 70448780 jam 0x80 ,mem_eeprom_block_size 
+03d4 d8a04378 arg mem_le_lap ,contw 
+03d5 d8c040a8 arg mem_lap ,contr 
+03d6 df200006 arg 0x06 ,loopcnt 
+03d7 20407e74 call reverse_byte 
+03d8 70417a20 jam 0x20 ,mem_lpm_mult 
+03d9 704b2f20 jam 0x20 ,mem_lpm_mult_init 
+03da 70490c34 jam 0x34 ,mem_device1_type 
+03db 6fe34378 fetch 6 ,mem_le_lap 
+03dc 67e34923 store 6 ,mem_device1_locall_addr 
+03dd 704b5802 jam 0x02 ,mem_mouse_bluetooth_type 
+03de 7043e51f jam 0x1f ,mem_le_adv_data_len 
+03df 58050102 setarg 0x050102 
+03e0 67e1c3e6 store 3 ,mem_le_adv_data 
+03e1 58120303 setarg 0x120303 
+03e2 e7e18005 istore 3 ,contw 
+03e3 58190318 setarg 0x190318 
+03e4 e7e18005 istore 3 ,contw 
+03e5 580003c2 setarg 0x03c2 
+03e6 e7e10005 istore 2 ,contw 
+03e7 5806ff06 setarg 0x06ff06 
+03e8 67e1ca76 store 3 ,mem_le_adv_swift_pair 
+03e9 58000300 setarg 0x000300 
+03ea e7e18005 istore 3 ,contw 
+03eb 58090c80 setarg 0x090c80 
+03ec e7e18005 istore 3 ,contw 
+03ed 58355442 setarg 0x355442 
+03ee e7e18005 istore 3 ,contw 
+03ef 5820322e setarg 0x20322e 
+03f0 e7e18005 istore 3 ,contw 
+03f1 58756f4d setarg 0x756f4d 
+03f2 e7e18005 istore 3 ,contw 
+03f3 58006573 setarg 0x6573 
+03f4 e7e10005 istore 2 ,contw 
+03f5 7044051f jam 0x1f ,mem_le_scan_data_len 
+03f6 d8c04a7d arg mem_le_adv_swift_pair + 7 ,contr 
+03f7 d8a04406 arg mem_le_scan_data ,contw 
+03f8 df20000d arg 13 ,loopcnt 
+03f9 20407d6d call memcpy 
+03fa 6fe0c406 fetch 1 ,mem_le_scan_data 
+03fb 1fe0ffff increase -1 ,pdata 
+03fc 67e0c2f5 store 1 ,mem_le_name_len 
+03fd d8c04408 arg mem_le_scan_data + 2 ,contr 
+03fe d8a042f6 arg mem_le_name_len + 1 ,contw 
+03ff df20000b arg 11 ,loopcnt 
+0400 20407d6d call memcpy 
+0401 58070007 setarg 0x070007 
+0402 67e1c370 store 3 ,mem_le_interval_min 
+0403 58002000 setarg 0x002000 
+0404 e7e18005 istore 3 ,contw 
+0405 5800012c setarg 0x012c 
+0406 e7e10005 istore 2 ,contw 
+0407 58181203 setarg 0x181203 
+0408 67e1ca70 store 3 ,mem_le_adv_ind 
+0409 580000ff setarg 0x0000ff 
+040a 67e1ca73 store 3 ,mem_le_adv_direct_ind 
+040b 380000fb setsect 0 ,0xfb 
+040c 3806c212 setsect 1 ,0x2c212 
+040d 3808800f setsect 2 ,0x800f 
+040e 380c0021 setsect 3 ,0x21 
+040f 67e4444c store 8 ,mem_local_rx_max_octets 
+0410 70443007 jam 0x07 ,mem_le_adv_channel_map 
+0411 58000015 setarg 0x0015 
+0412 67e14a8b store 2 ,mem_le_keyboard_handle 
+0413 58000019 setarg 0x0019 
+0414 67e14355 store 2 ,mem_le_notify_handle 
+0415 5800001d setarg 0x001d 
+0416 67e14a8d store 2 ,mem_le_multimedia_handle 
+0417 58000021 setarg 0x0021 
+0418 67e14a8f store 2 ,mem_le_systemctrl_handle 
+0419 58000030 setarg 0x0030 
+041a 67e14a91 store 2 ,mem_le_battery_level_handle 
+041b 58000022 setarg 0x0022 
+041c 67e143cf store 2 ,mem_le_pairing_handle 
+041d 704a9496 jam 0x96 ,mem_le_battery_level_updata_timer_init 
+041e 70490b00 jam mode_24g_device ,mem_device_flag 
+041f 20400382 call p_g24_interval_param_8ms 
+0420 58604800 setarg 0x604800 
+0421 67e1c85b store 3 ,mem_24g_enter_hibernate 
+0422 5800012c setarg 0x012c 
+0423 67e148ab store 2 ,mem_24g_long_sleep_param_update_timer_init 
+0424 58000050 setarg 0x0050 
+0425 67e148a9 store 2 ,mem_24g_transmit_by_interrupt_exit_count_init 
+0426 58000005 setarg 0x05 
+0427 67e14b61 store 2 ,mem_mouse_24g_power_on_fast_conn_timer 
+0428 58000708 setarg 0x0708 
+0429 67e14b9d store 2 ,mem_mouse_24g_search_dongle_time_init 
+042a 20400377 call p_g24_enable_1m 
+042b 2040063c call p_g24_pair_param_init 
+042c 584e001e setarg 0x4e001e 
+042d 67e1cb8e store 3 ,mem_24g_ch_update_map1 + 1 
+042e 58032303 setarg 0x032303 
+042f e7e18005 istore 3 ,contw 
+0430 58250642 setarg 0x250642 
+0431 e7e18005 istore 3 ,contw 
+0432 58094c06 setarg 0x094c06 
+0433 e7e18005 istore 3 ,contw 
+0434 583c0927 setarg 0x3c0927 
+0435 e7e18005 istore 3 ,contw 
+0436 58010403 setarg 0x010403 
+0437 67e1c9a3 store 3 ,mem_mouse_dpi_seting 
+0438 582a2002 setarg 0x2a2002 
+0439 e7e18005 istore 3 ,contw 
+043a 5800153f setarg 0x153f 
+043b e7e10005 istore 2 ,contw 
+043c 58265a09 setarg 0x265a09 
+043d 67e1c9b2 store 3 ,mem_sensor_3212_init 
+043e 58041934 setarg 0x041934 
+043f e7e18005 istore 3 ,contw 
+0440 58000009 setarg 0x0009 
+0441 e7e10005 istore 2 ,contw 
+0442 5800ffff setarg 0xffff 
+0443 e7e10005 istore 2 ,contw 
+0444 580d5a09 setarg 0x0d5a09 
+0445 67e1c9c6 store 3 ,mem_sensor_3205_init 
+0446 58ed1d10 setarg 0xed1d10 
+0447 e7e18005 istore 3 ,contw 
+0448 5800807d setarg 0x807d 
+0449 e7e10005 istore 2 ,contw 
+044a 5800ffff setarg 0xffff 
+044b e7e10005 istore 2 ,contw 
+044c 585b5a09 setarg 0x5b5a09 
+044d 67e1ca26 store 3 ,mem_sensor_ka8_init 
+044e 58120d9a setarg 0x120d9a 
+044f e7e18005 istore 3 ,contw 
+0450 5853c50e setarg 0x53c50e 
+0451 e7e18005 istore 3 ,contw 
+0452 58000948 setarg 0x000948 
+0453 e7e18005 istore 3 ,contw 
+0454 5800ffff setarg 0xffff 
+0455 e7e10005 istore 2 ,contw 
+0456 580b5a09 setarg 0x0b5a09 
+0457 67e1ca44 store 3 ,mem_sensor_poweron_init 
+0458 580009f3 setarg 0x0009f3 
+0459 e7e18005 istore 3 ,contw 
+045a 5800ffff setarg 0xffff 
+045b e7e10005 istore 2 ,contw 
+045c 20600000 rtn 
+
+p_mouse_process_lpm_before:
+045d c6130000 rtnmark1 mark_24g 
+045e 20203e5f branch mouse_process_lpm_before 
+
+p_mouse_lpm_before_common:
+045f 20403f9f call mouse_wheel_check 
+0460 6fe0cbaf fetch 1 ,mem_mouse_sensor_sclk_gpio 
+0461 d840003f arg gpcfg_output_high ,temp 
+0462 204060e2 call gpio_config_function_int 
+0463 20405acb call twspi_disable 
+0464 6848c8e4 fetcht 1 ,mem_lbutton_gpio 
+0465 20406085 call gpio_set_wake 
+0466 6848c8e5 fetcht 1 ,mem_rbutton_gpio 
+0467 20406085 call gpio_set_wake 
+0468 6848c8e6 fetcht 1 ,mem_mbutton_gpio 
+0469 20406085 call gpio_set_wake 
+046a 6848c8e7 fetcht 1 ,mem_bk_button_gpio 
+046b 20406085 call gpio_set_wake 
+046c 6848c8e8 fetcht 1 ,mem_fw_button_gpio 
+046d 20406085 call gpio_set_wake 
+046e 6848c8e9 fetcht 1 ,mem_dpi_button_gpio 
+046f 20406085 call gpio_set_wake 
+0470 6848c8ed fetcht 1 ,mem_whee_a_data_gpio 
+0471 20406081 call gpio_set_wake_by_current_state 
+0472 6848c8ee fetcht 1 ,mem_whee_b_data_gpio 
+0473 20406081 call gpio_set_wake_by_current_state 
+0474 6848c8ef fetcht 1 ,mem_whee_ta_data_gpio 
+0475 20406081 call gpio_set_wake_by_current_state 
+0476 6848c8f0 fetcht 1 ,mem_whee_tb_data_gpio 
+0477 20206081 branch gpio_set_wake_by_current_state 
+
+p_mouse_before_hibernate:
+0478 78347c00 enable user 
+0479 6ff20138 fetch 4 ,0x8138 
+047a 79347e1a setflag user ,26 ,pdata 
+047b 67f2004c store 4 ,core_lpm_reg 
+047c 20401503 call lpm_write_ctrl 
+047d 20406e24 call disable_authrom 
+047e 20404910 call mouse_device_led_all_off 
+047f 20400482 call p_mouse_before_hibernate_wheel_gpio_set 
+0480 2040048c call p_mouse_setgpio_hibernate 
+0481 20203e56 branch mouse_before_hibernate + 10 
+
+p_mouse_before_hibernate_wheel_gpio_set:
+0482 6848c8ed fetcht 1 ,mem_whee_a_data_gpio 
+0483 20400485 call p_mouse_gpio_set_pupd_by_input 
+0484 6848c8ee fetcht 1 ,mem_whee_b_data_gpio 
+
+p_mouse_gpio_set_pupd_by_input:
+0485 18467cff sub temp ,ui_button_gpio_disable ,null 
+0486 20628000 rtn zero 
+0487 18410e7f and temp ,0x7f ,queue 
+0488 6ff2011c fetch 4 ,core_gpio_in 
+0489 afefffff qisolate1 pdata 
+048a 202084a8 branch p_mouse_gpio_config_input_pu ,true 
+048b 202004a7 branch p_mouse_gpio_config_input_pd 
+
+p_mouse_setgpio_hibernate:
+048c 20404322 call mouse_set_sdio_high 
+048d 20407ff6 call clear_wake 
+048e 20403e63 call mouse_lpm_before_common 
+048f d8400013 arg 19 ,temp 
+0490 204004a8 call p_mouse_gpio_config_input_pu 
+0491 6fe0cbb0 fetch 1 ,mem_mouse_sensor_sdio_gpio 
+0492 d840003f arg gpcfg_output_high ,temp 
+0493 202060e2 branch gpio_config_function_int 
+
+p_mouse_priority_bb_event:
+0494 1a627e00 copy regc ,pdata 
+0495 c01d0497 beq bt_evt_24g_attempt_fail ,p_mouse_24g_attempt_fail 
+0496 2020436f branch mouse_priority_bb_event + 2 
+
+p_mouse_24g_attempt_fail:
+0497 6fe0c879 fetch 1 ,mem_24g_reconn_type 
+0498 c001483b beq fast_conn_and_3_0_addr ,mouse_24g_fast_conn_attempt_fail 
+
+p_mouse_24g_attempt_fail_enter_hibernate:
+0499 704b4b01 jam 1 ,mem_mouse_24g_enter_lpm_enable 
+049a 20404914 call mouse_device_led_off 
+049b 204047ef call mouse_24g_stop 
+049c 2020049d branch p_mouse_app_enter_hibernate 
+
+p_mouse_app_enter_hibernate:
+049d 58008006 setarg 0x8006 
+049e 20405af1 call twspi_write 
+049f 20002ee0 nop 12000 
+04a0 20400639 call p_mouse_sensor_powerdown 
+04a1 202030d1 branch app_enter_hibernate 
+
+p_mouse_reconn_dongle_attempt_fail:
+04a2 6fe44b50 fetch mouse_flag_len ,mem_mouse_flag 
+04a3 c3178499 bbit0 mouse_enable_24g_first_auto_pairing ,p_mouse_24g_attempt_fail_enter_hibernate 
+04a4 c2898499 bbit1 mouse_enable_eeprom ,p_mouse_24g_attempt_fail_enter_hibernate 
+04a5 c2890499 bbit1 mouse_enable_flash ,p_mouse_24g_attempt_fail_enter_hibernate 
+04a6 2020480f branch mouse_24g_start_auto_pair + 1 
+
+p_mouse_gpio_config_input_pd:
+04a7 20203f63 branch mouse_gpio_config_input_pu 
+
+p_mouse_gpio_config_input_pu:
+04a8 20203f61 branch mouse_gpio_config_input_pd 
+
+p_mouse_matrix_public_gpio_reset:
+04a9 6848c8ea fetcht 1 ,mem_matrix_public_gpio 
+04aa 202004a8 branch p_mouse_gpio_config_input_pu 
+
+p_mouse_check_key_gpio:
+04ab 6fe0cb8b fetch 1 ,mem_sensor_shutdown_flag 
+04ac 245a04b6 ncall p_mouse_check_key_gpio_once ,blank 
+04ad da200000 arg 0 ,rega 
+04ae 20404140 call mouse_check_lkey_gpio 
+04af 2040414c call mouse_check_mkey_gpio 
+04b0 20404146 call mouse_check_rkey_gpio 
+04b1 204004b9 call p_mouse_check_bkkey_gpio 
+04b2 204004c3 call p_mouse_check_fwkey_gpio 
+04b3 20404178 call mouse_check_customerkey_gpio 
+04b4 1a227e00 copy rega ,pdata 
+04b5 20600000 rtn 
+
+p_mouse_check_key_gpio_once:
+04b6 58030303 setarg 0x030303 
+04b7 67e1cb33 store 3 ,mem_mouse_lkey_press_status 
+04b8 20600000 rtn 
+
+p_mouse_check_bkkey_gpio:
+04b9 6fe0c8e7 fetch 1 ,mem_bk_button_gpio 
+04ba c17f8000 rtneq gpio_disable 
+04bb 704b3b03 jam mouse_bk_key ,mem_mouse_key_temp 
+04bc 6fe0cb36 fetch 1 ,mem_mouse_bkkey_press_status 
+04bd 1fe22600 copy pdata ,regc 
+04be 6848c8e7 fetcht 1 ,mem_bk_button_gpio 
+
+p_mouse_3io6key_bk_check:
+04bf 2040053a call p_mouse_3io6key_check 
+04c0 67e0cb36 store 1 ,mem_mouse_bkkey_press_status 
+04c1 6848c8e7 fetcht 1 ,mem_bk_button_gpio 
+04c2 202004a8 branch p_mouse_gpio_config_input_pu 
+
+p_mouse_check_fwkey_gpio:
+04c3 6fe0c8e8 fetch 1 ,mem_fw_button_gpio 
+04c4 c17f8000 rtneq gpio_disable 
+04c5 704b3b04 jam mouse_fw_key ,mem_mouse_key_temp 
+04c6 6fe0cb37 fetch 1 ,mem_mouse_fwkey_press_status 
+04c7 1fe22600 copy pdata ,regc 
+04c8 6848c8e8 fetcht 1 ,mem_fw_button_gpio 
+
+p_mouse_3io6key_fw_check:
+04c9 2040053a call p_mouse_3io6key_check 
+04ca 67e0cb37 store 1 ,mem_mouse_fwkey_press_status 
+04cb 6848c8e8 fetcht 1 ,mem_fw_button_gpio 
+04cc 202004a8 branch p_mouse_gpio_config_input_pu 
+
+p_mouse_motion:
+04cd 78547c00 disable user 
+04ce 58000000 setarg 0 
+04cf 67e348b4 store 6 ,mem_mouse_x 
+04d0 204004d2 call p_mouse_check_sensor_data 
+04d1 20203f8c branch mouse_motion2 
+
+p_mouse_check_sensor_data:
+04d2 6fe0c4af fetch 1 ,mem_spi_write_flash_sm 
+04d3 c1800000 rtnne flash_sm_no_buys 
+04d4 6fe0c8e2 fetch 1 ,mem_config_sensor_type 
+04d5 c00004dd beq p3205 ,p_mouse_p32xx_sensor_motion 
+04d6 c00084dd beq p3065 ,p_mouse_p32xx_sensor_motion 
+04d7 c00104dd beq ka8 ,p_mouse_p32xx_sensor_motion 
+04d8 c00184dd beq p3204 ,p_mouse_p32xx_sensor_motion 
+04d9 c0020505 beq p3212 ,p_mouse_p3212_sensor_motion 
+04da c00304dd beq p3065_xy ,p_mouse_p32xx_sensor_motion 
+04db c00442c8 beq p8009 ,mouse_p8009_sensor_motion 
+04dc 202004dd branch p_mouse_p32xx_sensor_motion 
+
+p_mouse_p32xx_sensor_motion:
+04dd 204042f7 call mouse_clear_sensor_data 
+04de 78547c00 disable user 
+04df 6fe0c8f1 fetch 1 ,mem_sensor_motion_gpio 
+04e0 c07f84e4 beq gpio_disable ,p_mouse_p32xx_sensor_motion_2 
+04e1 6848c8f1 fetcht 1 ,mem_sensor_motion_gpio 
+04e2 204060a8 call gpio_get_bit 
+04e3 24608000 nrtn true 
+
+p_mouse_p32xx_sensor_motion_2:
+04e4 58000000 setarg pan_reg_pid_l 
+04e5 20405af3 call twspi_read 
+04e6 c098050f bne p32xx_id1 ,p_mouse_p3065_judge 
+
+p_mouse_p32xx_sensor_motion_1:
+04e7 58000002 setarg pan_reg_motion_staus 
+04e8 20405af3 call twspi_read 
+04e9 c4038000 rtnbit0 7 
+04ea 20404310 call mouse_read_sensor_common 
+04eb 6fe0c8b4 fetch 1 ,mem_mouse_x 
+04ec 20404308 call mouse_data_extsign 
+04ed 67e148b4 store 2 ,mem_mouse_x 
+04ee 6fe0c8b6 fetch 1 ,mem_mouse_y 
+04ef 20404308 call mouse_data_extsign 
+04f0 67e148b6 store 2 ,mem_mouse_y 
+04f1 6fe0c8fb fetch 1 ,mem_config_sensor_angle 
+04f2 c00004f7 beq mouse_6clk_angle ,p_mouse_motion32xx_6clk_direction_selection 
+04f3 c00084f9 beq mouse_9clk_angle ,p_mouse_motion32xx_9clk_direction_selection 
+04f4 c00104fb beq mouse_12clk_angle ,p_mouse_motion32xx_12clk_direction_selection 
+04f5 c00184fd beq mouse_3clk_angle ,p_mouse_motion32xx_3clk_direction_selection 
+04f6 20600000 rtn 
+
+p_mouse_motion32xx_6clk_direction_selection:
+04f7 204042e0 call mouse_motion_6clk_direction_dispose 
+04f8 202004fe branch p_mouse_sensor_sdio_low 
+
+p_mouse_motion32xx_9clk_direction_selection:
+04f9 204042e8 call mouse_motion_9clk_direction_dispose 
+04fa 202004fe branch p_mouse_sensor_sdio_low 
+
+p_mouse_motion32xx_12clk_direction_selection:
+04fb 204042e4 call mouse_motion_12clk_direction_dispose 
+04fc 202004fe branch p_mouse_sensor_sdio_low 
+
+p_mouse_motion32xx_3clk_direction_selection:
+04fd 204042f0 call mouse_motion_3clk_direction_dispose 
+
+p_mouse_sensor_sdio_low:
+04fe 6848cbb0 fetcht 1 ,mem_mouse_sensor_sdio_gpio 
+04ff 204060a8 call gpio_get_bit 
+0500 20608000 rtn true 
+0501 5800000a setarg 0x0a 
+0502 20405af3 call twspi_read 
+0503 200003e8 nop 1000 
+0504 202004fe branch p_mouse_sensor_sdio_low 
+
+p_mouse_p3212_sensor_motion:
+0505 204042f7 call mouse_clear_sensor_data 
+0506 6fe0c8f1 fetch 1 ,mem_sensor_motion_gpio 
+0507 c07f850b beq gpio_disable ,p_mouse_p3212_sensor_motion_1 
+0508 6848c8f1 fetcht 1 ,mem_sensor_motion_gpio 
+0509 204060a8 call gpio_get_bit 
+050a 24608000 nrtn true 
+
+p_mouse_p3212_sensor_motion_1:
+050b 58000000 setarg pan_reg_pid_l 
+050c 20405af3 call twspi_read 
+050d c09805fc bne p32xx_id1 ,p_mouse_twspi_reset 
+050e 2020425b branch mouse_p3212_sensor_motion_2 
+
+p_mouse_p3065_judge:
+050f c01884e7 beq p3065_id1 ,p_mouse_p32xx_sensor_motion_1 
+0510 202005fc branch p_mouse_twspi_reset 
+
+p_mouse_seting_dpi:
+0511 2040409d call mouse_setting_dpi_4_level 
+0512 2040051b call p_mouse_dpi_led_blink_delay 
+0513 6fe0c8e2 fetch 1 ,mem_config_sensor_type 
+0514 c00240c8 beq p3212 ,mouse_seting_3212_dpi 
+0515 c0010517 beq ka8 ,p_mouse_seting_ka8_dpi 
+0516 202040a9 branch mouse_seting_dpi_sensor_type 
+
+p_mouse_seting_ka8_dpi:
+0517 6fe0c965 fetch 1 ,mem_mouse_dpi 
+0518 c00040b2 beq mouse_dpi_level1 ,mouse_set_cpi2 
+0519 c00140ae beq mouse_dpi_level3 ,mouse_set_cpi1 
+051a 202040b0 branch mouse_set_cpi0 
+
+p_mouse_dpi_led_blink_delay:
+051b 6fe0c8f7 fetch 1 ,mem_dpi_led_gpio 
+051c c17f8000 rtneq gpio_disable 
+051d 6fe14875 fetch 2 ,mem_24g_reconn_timeout 
+051e 247a0000 nrtn blank 
+051f 202048e7 branch mouse_dpi_led_blink_delay + 2 
+
+p_mouse_idle:
+0520 20407964 call ui_check_paring_button 
+0521 20400523 call p_mouse_dpi_check 
+0522 2020468f branch mouse_idle + 4 
+
+p_mouse_dpi_check:
+0523 6fe44b50 fetch mouse_flag_len ,mem_mouse_flag 
+0524 c297404b bbit1 mouse_enable_dpi_key_connect_adc ,mouse_dpi_check_connect_adc 
+0525 6fe0c8e9 fetch 1 ,mem_dpi_button_gpio 
+0526 c17f8000 rtneq gpio_disable 
+0527 da200000 arg 0 ,rega 
+0528 704b3b05 jam mouse_dpi_key ,mem_mouse_key_temp 
+0529 6848c8e9 fetcht 1 ,mem_dpi_button_gpio 
+052a 20400530 call p_mouse_dpi_key_check 
+052b 67e0cb38 store 1 ,mem_mouse_dpikey_press_status 
+052c 6fe0c8ea fetch 1 ,mem_matrix_public_gpio 
+052d c07f8537 beq gpio_disable ,p_mouse_3io6key_dpi_check_end 
+052e 204004a9 call p_mouse_matrix_public_gpio_reset 
+052f 20204048 branch mouse_dpi_check + 10 
+
+p_mouse_dpi_key_check:
+0530 6fe44b50 fetch mouse_flag_len ,mem_mouse_flag 
+0531 c2964056 bbit1 mouse_enable_dpi_key_connect_gnd ,mouse_dpi_key_connect_gnd 
+0532 6fe0cb38 fetch 1 ,mem_mouse_dpikey_press_status 
+0533 1fe22600 copy pdata ,regc 
+0534 6fe0c8ea fetch 1 ,mem_matrix_public_gpio 
+0535 c07f853a beq gpio_disable ,p_mouse_3io6key_check 
+0536 20204050 branch mouse_dpi_key_check + 2 
+
+p_mouse_3io6key_dpi_check_end:
+0537 6848c8e9 fetcht 1 ,mem_dpi_button_gpio 
+0538 204004a8 call p_mouse_gpio_config_input_pu 
+0539 20204048 branch mouse_dpi_check + 10 
+
+p_mouse_3io6key_check:
+053a 1a627e00 copy regc ,pdata 
+053b 67e0cb3c store 1 ,mem_mouse_key_status 
+053c 1fe3fe00 lshift pdata ,pdata 
+053d 1fe22400 copy pdata ,regb 
+053e 18422600 copy temp ,regc 
+053f 204004a7 call p_mouse_gpio_config_input_pd 
+0540 1a620400 copy regc ,temp 
+0541 204060a8 call gpio_get_bit 
+0542 7d20a400 nsetflag true ,0 ,regb 
+0543 20400545 call p_mouse_check_press 
+0544 20204199 branch mouse_check_key_connect_gnd + 4 
+
+p_mouse_check_press:
+0545 6848cb3c fetcht 1 ,mem_mouse_key_status 
+0546 18410401 and_into 0x01 ,temp 
+0547 1a417e01 and regb ,0x01 ,pdata 
+0548 98467c00 isub temp ,null 
+0549 2422c368 nbranch mouse_current_mult_update ,zero 
+054a 20600000 rtn 
+
+p_g24_receive_rxon:
+054b 20402aa4 call g24_prep 
+054c c5970550 bmark0 mark_ble_lr ,p_g24_receive_nolr 
+054d 783cfc00 pulse dewhiten_code_calc 
+054e 2000001e nop 30 
+054f 20402aa4 call g24_prep 
+
+p_g24_receive_nolr:
+0550 7857fc00 disable user3 
+0551 7826fc00 enable decode_fec0 
+0552 7830fc00 enable is_rx 
+0553 78507c00 disable is_tx 
+0554 78287c00 enable swfine 
+0555 6fe14837 fetch 2 ,mem_24g_rx_window 
+0556 98003600 iforce stop_watch 
+0557 37c18400 correlate null ,timeout 
+0558 242c059c nbranch p_g24_sync_timeout ,sync 
+0559 20404c9c call rf_debug_rx_sync_line 
+055a c517055d bmark1 mark_ble_lr ,p_g24_receive_skip_fec1 
+055b 7846fc00 disable decode_fec0 
+055c 7825fc00 enable decode_fec1 
+
+p_g24_receive_skip_fec1:
+055d 7823fc00 enable enable_white 
+055e 7824fc00 enable enable_crc 
+055f 20402afe call g24_receive_byte 
+0560 67e0c859 store 1 ,mem_24g_get_syncword_crc8 
+0561 6848c858 fetcht 1 ,mem_24g_syncword_crc8 
+0562 98467c00 isub temp ,null 
+0563 2422ab03 nbranch g24_end_of_packet ,zero 
+0564 7858fc00 disable user7 
+0565 280ffe2e isolate1 mark_ble_lr ,mark 
+0566 20408591 call p_g24_lr_receive_pdu_len ,true 
+0567 2038ab03 branch g24_end_of_packet ,user7 
+0568 20402afe call g24_receive_byte 
+0569 67e0c7a3 store 1 ,mem_24g_rxbuf 
+056a c513856f bmark1 mark_24g_rxmode ,p_g24_receive_skip 
+056b 6fe0c7a3 fetch 1 ,mem_24g_rxbuf 
+056c 6848c835 fetcht 1 ,mem_24g_data_type 
+056d a8400e00 icompare bits_data ,temp 
+056e 2420ab03 nbranch g24_end_of_packet ,true 
+
+p_g24_receive_skip:
+056f 20402afe call g24_receive_byte 
+0570 280ffe2e isolate1 mark_ble_lr ,mark 
+0571 2040aaf9 call g24_lr_receive_payload_len ,true 
+0572 e7e08005 istore 1 ,contw 
+0573 1fe97e00 rshift3 pdata ,pdata 
+0574 1fe67c1f sub pdata ,0x1f ,null 
+0575 24212b03 nbranch g24_end_of_packet ,positive 
+0576 1fe27200 copy pdata ,loopcnt 
+0577 2022857b branch p_g24rx_nopayload ,zero 
+
+p_g24rx_loop:
+0578 20402afe call g24_receive_byte 
+0579 e7e08005 istore 1 ,contw 
+057a c2000578 loop p_g24rx_loop 
+
+p_g24rx_nopayload:
+057b c5138580 bmark1 mark_24g_rxmode ,p_g24_receive_skip_rssi 
+057c 18a22200 copy contw ,rega 
+057d 20402afe call g24_receive_byte 
+057e 67e0c86c store 1 ,mem_rssi_hex_received 
+057f 1a220a00 copy rega ,contw 
+
+p_g24_receive_skip_rssi:
+0580 09800018 parse demod ,bucket ,24 
+0581 1fef7e00 rshift32 pdata ,pdata 
+0582 1ff17e00 rshift16 pdata ,pdata 
+0583 e7e18005 istore 3 ,contw 
+0584 7845fc00 disable decode_fec1 
+0585 280ffe27 isolate1 mark_24g_rxmode ,mark 
+0586 204085a6 call p_save_rssi_dec ,true 
+0587 20232b03 branch g24_end_of_packet ,crc_failed 
+0588 20404c9b call rf_debug_rx_crc_line 
+0589 7837fc00 enable user3 
+058a 20401fc0 call le_set_txfreq 
+058b c6138000 rtnmark1 mark_24g_rxmode 
+058c 6fe0c86c fetch 1 ,mem_rssi_hex_received 
+058d 6848cbaa fetcht 1 ,mem_rssi_hex_received_max_value 
+058e 98467c00 isub temp ,null 
+058f 20417e5a call copy_temp2pdata ,positive 
+0590 20202e7d branch rssi_signal 
+
+p_g24_lr_receive_pdu_len:
+0591 20402afe call g24_receive_byte 
+0592 1fe67c01 sub pdata ,1 ,null 
+0593 2021059a branch enable_user7 ,positive 
+0594 1fe0fffe increase -2 ,pdata 
+0595 c5138598 bmark1 mark_24g_rxmode ,p_g24_lr_receive_pdu_norssi 
+0596 203a059a branch enable_user7 ,blank 
+0597 1fe0ffff increase -1 ,pdata 
+
+p_g24_lr_receive_pdu_norssi:
+0598 67e08964 store 1 ,mem_temp 
+0599 20600000 rtn 
+
+enable_user7:
+059a 7838fc00 enable user7 
+059b 20600000 rtn 
+
+p_g24_sync_timeout:
+059c 280ffe27 isolate1 mark_24g_rxmode ,mark 
+059d 2040859f call p_rssi_noise ,true 
+059e 20202b03 branch g24_end_of_packet 
+
+p_rssi_noise:
+059f 204005a6 call p_save_rssi_dec 
+05a0 207a0000 rtn blank 
+05a1 6848c884 fetcht 1 ,mem_rssi_noise_index 
+05a2 6a21488b fetchr rega ,2 ,mem_rssi_noise_buffer_ptr 
+05a3 20402e60 call rssi_store 
+05a4 6048c884 storet 1 ,mem_rssi_noise_index 
+05a5 20600000 rtn 
+
+p_save_rssi_dec:
+05a6 20401238 call save_rssi 
+05a7 20200134 branch p_rssi_hex2dec 
+
+p_g24_transmit:
+05a8 6fe0c864 fetch 1 ,mem_24g_tx_phy 
+05a9 20401e9e call le_enable_phy_by_pdata 
+05aa 6fe2483b fetch 4 ,mem_24g_addr 
+05ab 98001200 iforce access 
+05ac 20402aa4 call g24_prep 
+05ad 20402b07 call g24_set_freq_tx 
+05ae 79202a00 set1 txgfsk ,radio_ctrl 
+05af 782efc00 enable encode_fec0 
+05b0 78307c00 enable is_tx 
+05b1 7850fc00 disable is_rx 
+05b2 20404ca2 call rf_debug_tx_on_line 
+05b3 785d7c00 disable lr_s2en 
+05b4 c51705b6 bmark1 mark_ble_lr ,p_g24_transmit_lr 
+05b5 20202b17 branch g24_transmit + 13 
+
+p_g24_transmit_lr:
+05b6 df20000a arg 10 ,loopcnt 
+
+p_g24_transmit_lr_preamble_loop:
+05b7 5800003c setarg 0x3c 
+05b8 08008608 inject mod ,8 
+05b9 c20005b7 loop p_g24_transmit_lr_preamble_loop 
+05ba 784efc00 disable encode_fec0 
+05bb 783c7c00 enable encode_fec3 
+05bc 19317e00 rshift16 access ,pdata 
+05bd 1ff17e00 rshift16 pdata ,pdata 
+05be 1ff1fe00 rshift4 pdata ,pdata 
+05bf 08008620 inject mod ,32 
+05c0 c51a2b46 bmark1 mark_ble_lr_s8_fix ,g24_transmit_lr_s8 
+05c1 20202b42 branch g24_transmit_lr_s2 
+
+p_g24_bind_mode_auto:
+05c2 6fe0c8c9 fetch 1 ,mem_24g_work_mode 
+05c3 c1808000 rtnne dongle_bind 
+05c4 20402c33 call g24_bind_init 
+05c5 204005c7 call p_g24_bind_data_process 
+05c6 20202d38 branch g24_bind_mode_auto + 5 
+
+p_g24_bind_data_process:
+05c7 20402cc4 call g24_rx_interrupt_clear 
+05c8 20402aaa call g24_receive_packet 
+05c9 2437acc4 nbranch g24_rx_interrupt_clear ,user3 
+05ca 204005d2 call p_g24_bind_data_parse 
+05cb 24342c4c nbranch g24_bind_data_error ,user 
+05cc 20402cf2 call g24_transmit_ack 
+05cd 6fe0c85a fetch 1 ,mem_24g_pair_switch 
+05ce 207a0000 rtn blank 
+05cf 6fe24877 fetch 4 ,mem_24g_transmitter_addr 
+05d0 207a0000 rtn blank 
+05d1 20202ba0 branch g24_update_addr_and_synccrc8 
+
+p_g24_bind_data_parse:
+05d2 7048d505 jam bind_mode_continue ,mem_24g_bind_mode_continue 
+05d3 20407e64 call disable_user 
+05d4 d8c047a3 arg mem_24g_rxbuf ,contr 
+05d5 d8a0489b arg mem_24g_rxdata_temp ,contw 
+05d6 20407d14 call memcpy8 
+05d7 6fe0c89d fetch 1 ,mem_24g_rxdata_temp + 2 
+05d8 c0552c59 beq datatype_bind ,g24_bind_first_step 
+05d9 c02aac66 beq datatype_config ,g24_bind_second_step 
+05da c01105dd beq datatype_ok ,p_g24_bind_third_step 
+05db c07fae52 beq datatype_attemp ,g24_data_attemp 
+05dc 20202cc4 branch g24_rx_interrupt_clear 
+
+p_g24_bind_third_step:
+05dd 6fe0c85a fetch 1 ,mem_24g_pair_switch 
+05de 203a05e3 branch p_g24_bind_third_step_skip ,blank 
+05df 6fe2489f fetch 4 ,mem_24g_rxdata_temp + 4 
+05e0 684a4877 fetcht 4 ,mem_24g_transmitter_addr 
+05e1 98467c00 isub temp ,null 
+05e2 24628000 nrtn zero 
+
+p_g24_bind_third_step_skip:
+05e3 6fe0c89e fetch 1 ,mem_24g_rxdata_temp + 3 
+05e4 c000ac8d beq datatype_device1 ,g24_bind_third_step_device1 
+05e5 c00105e7 beq datatype_device2 ,p_g24_bind_third_step_device2 
+05e6 20600000 rtn 
+
+p_g24_bind_third_step_device2:
+05e7 6fe0c86d fetch 1 ,mem_24g_device2_bind_step 
+05e8 c08005ea bne 0 ,p_g24_bind_dvc2_step_success 
+05e9 20600000 rtn 
+
+p_g24_bind_dvc2_step_success:
+05ea 20402c64 call g24_bind_dvc2_payload_cfg 
+05eb 6fe0c86e fetch 1 ,mem_24g_bind_device_status 
+05ec 1fe1fe02 or_into 0x02 ,pdata 
+05ed 67e0c86e store 1 ,mem_24g_bind_device_status 
+05ee 20202c94 branch g24_bind_exit 
+
+p_mouse_wakeup_24g:
+05ef 6fe0cb8b fetch 1 ,mem_sensor_shutdown_flag 
+05f0 245a05f5 ncall p_mouse_init_sensor_wakeup ,blank 
+05f1 704b8b00 jam 0 ,mem_sensor_shutdown_flag 
+05f2 20600000 rtn 
+
+p_mouse_init_sunt:
+05f3 20400626 call p_mouse_sensor_spi_init 
+05f4 20758000 rtn wake 
+
+p_mouse_init_sensor_wakeup:
+05f5 20400621 call p_mouse_sensor_poweron 
+
+p_mouse_init_sensor:
+05f6 204041b8 call mouse_read_sensor_id 
+05f7 c0180601 beq p32xx_id1 ,p_mouse_init_p32xx_id2_judge 
+05f8 c01885ff beq p3065_id1 ,p_mouse_init_p3065 
+05f9 204005fc call p_mouse_twspi_reset 
+05fa 20001af4 nop 6900 
+05fb 202005f6 branch p_mouse_init_sensor 
+
+p_mouse_twspi_reset:
+05fc 6fe0cbaf fetch 1 ,mem_mouse_sensor_sclk_gpio 
+05fd 20405ab2 call twspi_reset 
+05fe 20200628 branch p_mouse_spid_init_pin 
+
+p_mouse_init_p3065:
+05ff 20400621 call p_mouse_sensor_poweron 
+0600 2020420b branch mouse_init_p3065 + 1 
+
+p_mouse_init_p32xx_id2_judge:
+0601 6fe0c995 fetch 1 ,mem_sensor_id2 
+0602 c02d060b beq p_mx8650 ,p_mouse_mx8650_init_param 
+0603 c06c0612 beq p8009_id2 ,p_mouse_8009_init_param 
+0604 c068c1f4 beq p3205_tj3t_id2 ,mouse_3205_3t_init_param 
+0605 c06941fd beq p3204_tj3l_id2 ,mouse_3204_3l_init_param 
+0606 c0014204 beq p3212_id2 ,mouse_3212_init_param 
+0607 c02a0609 beq pka8_id2 ,p_mouse_ka8_init_param 
+0608 202005f6 branch p_mouse_init_sensor 
+
+p_mouse_ka8_init_param:
+0609 7048e202 jam ka8 ,mem_config_sensor_type 
+060a 20600000 rtn 
+
+p_mouse_mx8650_init_param:
+060b 7048e207 jam mx8650 ,mem_config_sensor_type 
+060c 58008006 setarg 0x8006 
+060d 20405af1 call twspi_write 
+060e 20407d20 call delay_10ms 
+060f da604bb1 arg mem_sensor_8650_init_new ,regc 
+0610 20404213 call mouse_sensor_wr_seq 
+0611 2020409c branch mouse_dpi_config 
+
+p_mouse_8009_init_param:
+0612 58000016 setarg 0x16 
+0613 20405af3 call twspi_read 
+0614 1fe67cbd sub pdata ,0xbd ,null 
+0615 242285f3 nbranch p_mouse_init_sunt ,zero 
+0616 58000019 setarg 0x19 
+0617 20405af3 call twspi_read 
+0618 1fe67c55 sub pdata ,0x55 ,null 
+0619 242285f3 nbranch p_mouse_init_sunt ,zero 
+061a 5800001b setarg 0x1b 
+061b 20405af3 call twspi_read 
+061c 1fe67c1d sub pdata ,0x1d ,null 
+061d 242285f3 nbranch p_mouse_init_sunt ,zero 
+061e 7048e208 jam p8009 ,mem_config_sensor_type 
+061f da604a34 arg mem_sensor_8009_init ,regc 
+0620 20204213 branch mouse_sensor_wr_seq 
+
+p_mouse_sensor_poweron:
+0621 20400626 call p_mouse_sensor_spi_init 
+0622 58008006 setarg 0x8006 
+0623 20405af1 call twspi_write 
+0624 20002ee0 nop 12000 
+0625 2020421b branch mouse_sensor_poweron + 1 
+
+p_mouse_sensor_spi_init:
+0626 20400628 call p_mouse_spid_init_pin 
+0627 20203f73 branch mouse_sensor_spi_init + 1 
+
+p_mouse_spid_init_pin:
+0628 6fe0cbaf fetch 1 ,mem_mouse_sensor_sclk_gpio 
+0629 d8400021 arg gpcfg_spid_sck ,temp 
+062a 204060e2 call gpio_config_function_int 
+062b 6fe0cbb0 fetch 1 ,mem_mouse_sensor_sdio_gpio 
+062c d8400023 arg gpcfg_spid_sdio ,temp 
+062d 202060e2 branch gpio_config_function_int 
+
+p_mouse_24g_hibernate_set:
+062e 20402e34 call g24_txbuf_clear 
+062f 20402ed9 call g24_transmit_next_packet 
+0630 5800ffff setarg 0xffff 
+0631 67e1485b store 2 ,mem_24g_enter_hibernate 
+0632 67e1485d store 2 ,mem_24g_enter_hibernate + 2 
+0633 58000000 setarg 0 
+0634 67e3c8b3 store 7 ,mem_mouse_key 
+0635 704b8b01 jam 1 ,mem_sensor_shutdown_flag 
+0636 20400639 call p_mouse_sensor_powerdown 
+0637 2040048c call p_mouse_setgpio_hibernate 
+0638 20202f32 branch g24_long_sleep 
+
+p_mouse_sensor_powerdown:
+0639 204005f3 call p_mouse_init_sunt 
+063a 20400626 call p_mouse_sensor_spi_init 
+063b 20204220 branch mouse_sensor_powerdown_next 
+
+p_g24_pair_param_init:
+063c 7048694e jam 0x4e ,mem_24g_pair_ch 
+063d 58101520 setarg 0x101520 
+063e 67e1c865 store 3 ,mem_24g_pair_addr 
+063f 58000005 setarg 0x05 
+0640 e7e08005 istore 1 ,contw 
+0641 20600000 rtn 
+
+p_g24_chmap_param_init:
+0642 38001300 setsect 0 ,0x1300 
+0643 3805908b setsect 1 ,0x1908b 
+0644 380b6150 setsect 2 ,0x36150 
+0645 380c3d20 setsect 3 ,0x3d20 
+0646 67e4c83f store 9 ,mem_24g_ch_map1 
+0647 38003a1a setsect 0 ,0x3a1a 
+0648 3804c453 setsect 1 ,0xc453 
+0649 3808d312 setsect 2 ,0xd312 
+064a 380c0001 setsect 3 ,0x1 
+064b e7e38005 istore 7 ,contw 
+064c 6fe0c09a fetch 1 ,mem_device_option 
+064d c1840000 rtnne dvc_op_mouse 
+064e 6fe0cb8c fetch 1 ,mem_24g_ch_map_update 
+064f 207a0000 rtn blank 
+0650 d8c04b8d arg mem_24g_ch_update_map1 ,contr 
+0651 d8a0483f arg mem_24g_ch_map1 ,contw 
+0652 20207d1a branch memcpy16 
+
+p_g24_transmit_hop_process:
+0653 6848c893 fetcht 1 ,mem_24g_retry 
+0654 6fe0cb86 fetch 1 ,mem_24g_fast_hop_count 
+0655 98467c00 isub temp ,null 
+0656 242106ca nbranch p_g24_tx_fast_hop ,positive 
+0657 18408401 increase 1 ,temp 
+0658 6048c893 storet 1 ,mem_24g_retry 
+0659 6fe0cb86 fetch 1 ,mem_24g_fast_hop_count 
+065a c002865f beq 5 ,p_g24_transmit_hop_process_250hz 
+065b 6fe0c893 fetch 1 ,mem_24g_retry 
+065c c0032f13 beq 6 ,g24_hop_ch_disable 
+065d c0062f13 beq 12 ,g24_hop_ch_disable 
+065e 20600000 rtn 
+
+p_g24_transmit_hop_process_250hz:
+065f 6fe0c893 fetch 1 ,mem_24g_retry 
+0660 c001af13 beq 3 ,g24_hop_ch_disable 
+0661 c0032f13 beq 6 ,g24_hop_ch_disable 
+0662 20600000 rtn 
+
+p_g24_transmit_dispatch:
+0663 20402eb9 call g24_txdata_prep 
+0664 24340672 nbranch p_g24_nodata_transmit ,user 
+
+p_g24_transmit_start:
+0665 20400685 call p_g24_transmit_process 
+0666 20402f6b call power_ctrl_start 
+0667 6fe0cb8b fetch 1 ,mem_sensor_shutdown_flag 
+0668 243a066d nbranch p_g24_short_sleep ,blank 
+0669 6fe4489d fetch 8 ,mem_24g_long_sleep_set 
+066a 67e4485b store 8 ,mem_24g_enter_hibernate 
+066b 6fe148ab fetch 2 ,mem_24g_long_sleep_param_update_timer_init 
+066c 67e148ad store 2 ,mem_24g_long_sleep_param_update_timer 
+
+p_g24_short_sleep:
+066d 20402f38 call g24_lpm_wait 
+066e 24740000 nrtn user 
+066f 20407ff6 call clear_wake 
+0670 6fe1c89a fetch 3 ,mem_24g_short_sleep_set 
+0671 20202f35 branch g24_long_sleep2 
+
+p_g24_nodata_transmit:
+0672 6fe0c894 fetch 1 ,mem_24g_abort_pac 
+0673 205a0677 call p_g24_send_abort_packet ,blank 
+0674 20402f4d call g24_transmit_by_interrupt_exit 
+0675 20402f1c call g24_search_receiver 
+0676 20202f32 branch g24_long_sleep 
+
+p_g24_send_abort_packet:
+0677 70483501 jam type_ms ,mem_24g_data_type 
+0678 70489401 jam 1 ,mem_24g_abort_pac 
+0679 20402eca call g24_transmit_rf_ctrl_clear 
+067a 67e0c7c5 store 1 ,mem_24g_txbuf 
+067b 58000000 setarg 0 
+067c 67e3c7c6 store 7 ,mem_24g_txbuf + 1 
+067d 6fe24896 fetch 4 ,mem_24g_device_addr 
+067e 67e247cd store 4 ,mem_24g_txbuf + 8 
+067f 7048340c jam 12 ,mem_24g_datalen 
+0680 6fe0c835 fetch 1 ,mem_24g_data_type 
+0681 79207e03 set1 bit_abort ,pdata 
+0682 67e0c835 store 1 ,mem_24g_data_type 
+0683 20402b55 call g24_transmit_prep 
+0684 20200665 branch p_g24_transmit_start 
+
+p_g24_transmit_process:
+0685 70489300 jam 0 ,mem_24g_retry 
+
+p_g24_transmit_loop:
+0686 6961015f fetchr timeup ,2 ,mem_param_rx_setup 
+0687 34730200 until clkn_rt ,meet 
+0688 20402ee1 call g24_transmit_receive_ack 
+0689 6fe0c82b fetch 1 ,mem_24g_no_ack 
+068a c000aed7 beq no_ack_24g ,g24_transmit_no_ack 
+068b 242c0690 nbranch p_g24_retransmit ,sync 
+068c 24378690 nbranch p_g24_retransmit ,user3 
+068d 20402ef6 call g24_ackpayload_parse 
+068e 204005ef call p_mouse_wakeup_24g 
+068f 20202ed7 branch g24_transmit_no_ack 
+
+p_g24_retransmit:
+0690 6fe14891 fetch 2 ,mem_24g_txfail_cnt 
+0691 1fe0fe01 increase 1 ,pdata 
+0692 67e14891 store 2 ,mem_24g_txfail_cnt 
+0693 6fe0c892 fetch 1 ,mem_24g_txfail_cnt + 1 
+0694 c282062e bbit1 4 ,p_mouse_24g_hibernate_set 
+0695 20402f01 call g24_transmit_hop_process 
+0696 20200686 branch p_g24_transmit_loop 
+
+p_mouse_24g_long_sleep_param_update_timer:
+0697 da6048ad arg mem_24g_long_sleep_param_update_timer ,regc 
+0698 da40069a arg p_mouse_24g_long_sleep_normal_param ,regb 
+0699 20203044 branch timer_single_step 
+
+p_mouse_24g_long_sleep_normal_param:
+069a 6fe24b87 fetch 4 ,mem_24g_long_sleep_set1 
+069b 67e2485b store 4 ,mem_24g_enter_hibernate 
+069c 704a5101 jam 1 ,mem_mouse_long_mult_flag 
+069d 20600000 rtn 
+
+p_power_ctrl_start:
+069e 6fe1478b fetch 2 ,mem_ui_state_map 
+069f c3858000 rtnbit1 ui_state_ble_adv 
+06a0 c3838000 rtnbit1 ui_state_bt_reconnect 
+06a1 c3830000 rtnbit1 ui_state_bt_discovery 
+06a2 6a214887 fetchr rega ,2 ,mem_rssi_signal_buf_ptr 
+06a3 20402e68 call rssi_average 
+06a4 6048c8af storet 1 ,mem_rssi_avg_received 
+06a5 6fe0cba9 fetch 1 ,mem_rssi_dis_max_24g 
+06a6 c5132f76 bmark1 mark_24g ,power_ctrl_start_next 
+06a7 6fe0cbac fetch 1 ,mem_rssi_dis_max_ble 
+
+p_power_ctrl_start_next:
+06a8 98467c00 isub temp ,null 
+06a9 242106c2 nbranch p_power_ctrl_txpower_incrs_force ,positive 
+06aa 6fe0c8b1 fetch 1 ,mem_power_ctrl_pac_succ_cnt 
+06ab 1fe67c02 sub pdata ,2 ,null 
+06ac 242106b0 nbranch p_power_ctrl_txpower_decrs_check ,positive 
+06ad 6fe0c8b1 fetch 1 ,mem_power_ctrl_pac_succ_cnt 
+06ae c00006c3 beq 0 ,p_power_ctrl_txpower_incrs 
+06af 20600000 rtn 
+
+p_power_ctrl_txpower_decrs_check:
+06b0 6fe0c8b1 fetch 1 ,mem_power_ctrl_pac_succ_cnt 
+06b1 6848c8b2 fetcht 1 ,mem_power_ctrl_pac_succ_cnt_init 
+06b2 98467c00 isub temp ,null 
+06b3 24628000 nrtn zero 
+06b4 7048b100 jam 0 ,mem_power_ctrl_pac_succ_cnt 
+
+p_power_ctrl_txpower_decrs:
+06b5 6848c8af fetcht 1 ,mem_rssi_avg_received 
+06b6 6fe0cba8 fetch 1 ,mem_rssi_dis_min_24g 
+06b7 c51306b9 bmark1 mark_24g ,p_power_ctrl_txpower_decrs_next 
+06b8 6fe0cbab fetch 1 ,mem_rssi_dis_min_ble 
+
+p_power_ctrl_txpower_decrs_next:
+06b9 98467c00 isub temp ,null 
+06ba 24610000 nrtn positive 
+06bb 6fe0c8b0 fetch 1 ,mem_power_ctrl_level 
+06bc c0002f98 beq 0 ,power_ctrl_decrs_level0 
+06bd 1fe0ffff increase -1 ,pdata 
+06be 67e0c8b0 store 1 ,mem_power_ctrl_level 
+06bf c0002f98 beq 0 ,power_ctrl_decrs_level0 
+
+p_power_ctrl_decrs_level1:
+
+p_power_ctrl_incrs_level1:
+06c0 7041eb00 jam tx_power_0db ,mem_tx_power 
+06c1 20600000 rtn 
+
+p_power_ctrl_txpower_incrs_force:
+06c2 7048b100 jam 0 ,mem_power_ctrl_pac_succ_cnt 
+
+p_power_ctrl_txpower_incrs:
+06c3 6fe0c8b0 fetch 1 ,mem_power_ctrl_level 
+06c4 c00106c8 beq 2 ,p_power_ctrl_incrs_level2 
+06c5 1fe0fe01 increase 1 ,pdata 
+06c6 67e0c8b0 store 1 ,mem_power_ctrl_level 
+06c7 c00086c0 beq 1 ,p_power_ctrl_incrs_level1 
+
+p_power_ctrl_incrs_level2:
+06c8 7041eb05 jam tx_power_6db ,mem_tx_power 
+06c9 20600000 rtn 
+
+p_g24_tx_fast_hop:
+06ca 204006c3 call p_power_ctrl_txpower_incrs 
+06cb 20402fa1 call power_ctrl_pac_succ_decrs 
+06cc 20202b8f branch g24_ch 
+              org 0x800
+
+start:
+0800 20401395 call lpmstate 
+
+soft_reset:
+0801 44804000 bpatch patch00_0 ,mem_patch00 
+0802 20800000 clear_stack 
+0803 20405aed call spi_ncs_gpio_init 
+0804 2040121e call initialize_radio 
+0805 20405de3 call iic_init_360khz 
+0806 20401329 call init_param 
+0807 20404da6 call l2cap_init 
+0808 4480c000 bpatch patch00_1 ,mem_patch00 
+0809 204062e6 call rfcomm_init 
+080a 2040535c call init_lmp 
+080b 204077e1 call ui_init 
+080c 20402fab call app_init 
+080d 44814000 bpatch patch00_2 ,mem_patch00 
+080e 2055afb9 call app_lpm_init ,wake 
+080f 20406ed1 call publickey_init 
+0810 20406ef3 call sp_wait_pubkey_calc_done 
+0811 20559420 call lpm_recover_clk ,wake 
+
+main_loop:
+0812 4481c000 bpatch patch00_3 ,mem_patch00 
+0813 20407099 call sp_calc_sequence 
+0814 204075c4 call sp_calc_sequence_256 
+0815 20406ed4 call sp_calc_sequence_256_check 
+0816 2040239d call le_advertising_dispatch 
+0817 44824000 bpatch patch00_4 ,mem_patch00 
+0818 20400838 call idle_dispatch 
+0819 20402fc2 call app_process_idle 
+081a 2040088f call inquiry_dispatch 
+081b 20400b05 call inquiry_scan_dispatch 
+081c 20400b77 call page_scan_dispatch 
+081d 20400821 call connection_dispatch 
+081e 20402aa1 call g24_dispatch 
+081f 20401448 call lpm_dispatch 
+0820 20200812 branch main_loop 
+
+connection_dispatch:
+0821 20400826 call connection_incontext 
+0822 c6848000 rtnmark0 mark_context 
+0823 793f8009 set0 mark_context ,mark 
+0824 20400a30 call context_save 
+0825 20201ec2 branch le_disable 
+
+connection_incontext:
+0826 4482c000 bpatch patch00_5 ,mem_patch00 
+0827 20400a6b call context_search_insniff 
+0828 2422882f nbranch connection_nosniff ,zero 
+0829 20400a17 call context_load 
+082a 1a208c01 add rega ,coffset_mode ,contr 
+082b efe08006 ifetch 1 ,contr 
+082c c2801e2f bbit1 mode_le ,le_conn_dispatch 
+082d c2808968 bbit1 mode_master ,master_dispatch 
+082e 20200bdc branch slave_dispatch 
+
+connection_nosniff:
+082f 20400a38 call context_get_next 
+0830 1f227c00 copy loopcnt ,null 
+0831 20628000 rtn zero 
+0832 20400a17 call context_load 
+0833 6fe08031 fetch 1 ,mem_state 
+0834 c28188d2 bbit1 state_inpage ,master_page 
+0835 6fe08032 fetch 1 ,mem_mode 
+0836 c2808968 bbit1 mode_master ,master_dispatch 
+0837 20200bdc branch slave_dispatch 
+
+idle_dispatch:
+0838 6fe0c1de fetch 1 ,mem_hci_cmd 
+0839 207a0000 rtn blank 
+083a c0008848 beq hci_cmd_inquiry ,idle_inquiry 
+083b c001084d beq hci_cmd_inquiry_cancel ,idle_inquiry_cancel 
+083c c0018850 beq hci_cmd_remote_name_req ,idle_remote_name_req 
+083d c0028855 beq hci_cmd_create_conn ,idle_create_conn 
+083e c00d8845 beq hci_cmd_le_create_conn ,idle_le_create_conn 
+083f 20400a64 call context_search_conn_handle 
+0840 20628000 rtn zero 
+0841 20400a67 call context_search_plap 
+0842 20628000 rtn zero 
+
+idle_exit:
+0843 7041de00 jam 0 ,mem_hci_cmd 
+0844 20600000 rtn 
+
+idle_le_create_conn:
+0845 7002e01b jam hci_cmd_le_create_conn ,mem_cmd_le_create_conn 
+0846 7041de00 jam 0 ,mem_hci_cmd 
+0847 20600000 rtn 
+
+idle_inquiry:
+0848 7920001c set1 mark_inquiry_on ,mark 
+0849 793f801e set0 mark_inquiry_trainb ,mark 
+084a 70008dff jam param_ninquiry ,mem_ninqy_index 
+084b 70008b1f jam 31 ,mem_nfreq_index_inq 
+084c 20200843 branch idle_exit 
+
+idle_inquiry_cancel:
+084d 793f801c set0 mark_inquiry_on ,mark 
+084e 18003600 force 0 ,stop_watch 
+084f 20200843 branch idle_exit 
+
+idle_remote_name_req:
+0850 20400a67 call context_search_plap 
+0851 20628000 rtn zero 
+0852 18000401 force lmp_name_req ,temp 
+0853 7000be05 jam 5 ,mem_nameres_cnt 
+0854 2020085c branch idle_start_page 
+
+idle_create_conn:
+0855 44834000 bpatch patch00_6 ,mem_patch00 
+
+idle_create_conn_device:
+0856 6fe341e0 fetch 6 ,mem_hci_plap 
+0857 20000001 nop 1 
+0858 70478a01 jam reconnect_hid ,memui_reconnect_mode 
+0859 70005603 jam conn_sm_wait_features_res ,mem_conn_sm 
+085a 2020085b branch idle_create_conn_cont 
+
+idle_create_conn_cont:
+085b 18000425 force lmp_version_req ,temp 
+
+idle_start_page:
+085c 4483c000 bpatch patch00_7 ,mem_patch00 
+085d 6fe080a8 fetch 1 ,mem_page_mode 
+085e 203a0862 branch idle_page_mode_r0 ,blank 
+085f 1fe9fe00 lshift3 pdata ,pdata 
+0860 1ff27e00 lshift4 pdata ,pdata 
+0861 1fe0ffff increase -1 ,pdata 
+
+idle_page_mode_r0:
+0862 67e0c0ae store 1 ,mem_npage 
+0863 67e080a7 store 1 ,mem_npage_index 
+0864 70008c1f jam 31 ,mem_nfreq_index_page 
+0865 793f800c set0 mark_page_trainb ,mark 
+0866 20400a48 call context_new 
+0867 24228883 nbranch idle_page_fail ,zero 
+0868 20401302 call get_free_amaddr 
+0869 67e08078 store 1 ,mem_amaddr 
+086a 6048807d storet 1 ,mem_lmo_opcode2 
+086b 6fe341e0 fetch 6 ,mem_hci_plap 
+086c 67e30041 store 6 ,mem_plap 
+086d 44844001 bpatch patch01_0 ,mem_patch01 
+086e 20407d81 call timer_reinit 
+086f 18007e00 force 0 ,pdata 
+0870 2841fe01 compare lmp_name_req ,temp ,0xff 
+0871 7d20fe05 nsetflag true ,state_init_seq ,pdata 
+0872 79207e03 set1 state_inpage ,pdata 
+0873 67e08031 store 1 ,mem_state 
+0874 70095b03 jam bt_evt_reconn_started ,mem_fifo_temp 
+0875 2040789f call ui_ipc_send_event 
+0876 18007e00 force 0 ,pdata 
+0877 7920fe04 setflag true ,smap_name_req ,pdata 
+0878 67e0804d store 1 ,mem_state_map 
+0879 58000000 setarg 0 
+087a 79207e01 set1 mode_master ,pdata 
+087b 67e08032 store 1 ,mem_mode 
+087c 7834fc00 enable master 
+087d 20400a30 call context_save 
+087e 7854fc00 disable master 
+087f 18000e03 force page_length_timer ,queue 
+0880 6fe140c1 fetch 2 ,mem_page_to 
+0881 20407d74 call timer_init 
+0882 20200843 branch idle_exit 
+
+idle_page_fail:
+0883 4484c001 bpatch patch01_1 ,mem_patch01 
+0884 6fe341e0 fetch 6 ,mem_hci_plap 
+0885 67e30041 store 6 ,mem_plap 
+0886 2841fe01 compare lmp_name_req ,temp ,0xff 
+0887 20208889 branch idle_name_fail ,true 
+0888 20200843 branch idle_exit 
+
+idle_name_fail:
+0889 d8a00a01 arg mem_tmp_buffer ,contw 
+088a df200008 arg 8 ,loopcnt 
+088b 20407d25 call memset0 
+088c 70095b04 jam bt_evt_reconn_failed ,mem_fifo_temp 
+088d 2040789f call ui_ipc_send_event 
+088e 20200843 branch idle_exit 
+
+inquiry_dispatch:
+088f c68e0000 rtnmark0 mark_inquiry_on 
+0890 18000e01 force inquiry_length_timer ,queue 
+0891 20407d82 call timer_check 
+0892 7d3a001c nsetflag blank ,mark_inquiry_on ,mark 
+0893 243a0895 nbranch inquiry_start ,blank 
+0894 20600000 rtn 
+
+inquiry_start:
+0895 44854001 bpatch patch01_2 ,mem_patch01 
+0896 684940c3 fetcht 2 ,mem_inq_window 
+0897 18000e04 force 4 ,queue 
+0898 20400f3f call sniff_check_window 
+0899 20740000 rtn user 
+089a 204010f5 call afh_clear 
+089b 18004800 force 0 ,freq_mode 
+
+inquiry_restart:
+089c 20618000 rtn timeout 
+089d 793f800b set0 mark_fhs_already_good ,mark 
+089e 793f8000 set0 mark_fhs_eir ,mark 
+
+inquiry_rx_restart:
+089f 1c40c201 add clkn_bt ,1 ,bt_clk 
+08a0 280ffe1e isolate1 mark_inquiry_trainb ,mark 
+08a1 7920c802 setflag true ,2 ,freq_mode 
+08a2 2c200400 compare 0x00 ,bt_clk ,0x02 
+08a3 242088be nbranch inquiry_receive ,true 
+
+inquiry_transmit:
+08a4 4485c001 bpatch patch01_3 ,mem_patch01 
+08a5 6fe08012 fetch 1 ,mem_inquiry_transmit 
+08a6 1fe0fe01 increase 1 ,pdata 
+08a7 67e08012 store 1 ,mem_inquiry_transmit 
+08a8 20401129 call fetch_giac 
+08a9 20401123 call tx_radio_freq 
+08aa 20401143 call fetch_diac 
+08ab 204012e3 call start_transmitter 
+08ac 204012e8 call start_tx_native 
+08ad 204012f6 call send_access_word 
+08ae 20400e79 call end_of_packet 
+08af 204008b1 call inquiry_check_train 
+08b0 2020089c branch inquiry_restart 
+
+inquiry_check_train:
+08b1 44864001 bpatch patch01_4 ,mem_patch01 
+08b2 6fe0808b fetch 1 ,mem_nfreq_index_inq 
+08b3 1fe0ffff increase -1 ,pdata 
+08b4 67e0808b store 1 ,mem_nfreq_index_inq 
+08b5 20610000 rtn positive 
+08b6 70008b1f jam 31 ,mem_nfreq_index_inq 
+08b7 6fe0808d fetch 1 ,mem_ninqy_index 
+08b8 1fe0ffff increase -1 ,pdata 
+08b9 67e0808d store 1 ,mem_ninqy_index 
+08ba 20610000 rtn positive 
+08bb 7940001e setflip mark_inquiry_trainb ,mark 
+08bc 70008dff jam param_ninquiry ,mem_ninqy_index 
+08bd 20600000 rtn 
+
+inquiry_receive:
+08be 4486c001 bpatch patch01_5 ,mem_patch01 
+08bf 20401129 call fetch_giac 
+08c0 2040111d call rx_radio_freq 
+08c1 20401143 call fetch_diac 
+08c2 204012ed call start_rx_native 
+08c3 20401278 call start_receiver 
+08c4 2040129e call wait_access_clkn_rt 
+08c5 202c08c8 branch inquiry_sync ,sync 
+08c6 204008b1 call inquiry_check_train 
+08c7 2020089f branch inquiry_rx_restart 
+
+inquiry_sync:
+08c8 44874001 bpatch patch01_6 ,mem_patch01 
+08c9 20401238 call save_rssi 
+08ca 204012fe call scan_mode_whiten 
+08cb 20400d44 call receive_packet_whitened 
+08cc 793f8001 set0 mark_rxbuf_inuse ,mark 
+08cd c6858000 rtnmark0 mark_fhs_already_good 
+
+inquiry_receive_rtn:
+
+inquiry_receive_eir_rtn:
+08ce 6fe08013 fetch 1 ,mem_inquiry_rcv 
+08cf 1fe0fe01 increase 1 ,pdata 
+08d0 67e08013 store 1 ,mem_inquiry_rcv 
+08d1 20600000 rtn 
+
+master_page:
+08d2 4487c001 bpatch patch01_7 ,mem_patch01 
+08d3 7834fc00 enable master 
+08d4 78387c00 enable clknt 
+08d5 6fe140bd fetch 2 ,mem_page_interval 
+08d6 203a08da branch master_page_no_interval ,blank 
+08d7 18000e08 force page_interval_timer ,queue 
+08d8 20407d82 call timer_check 
+08d9 247a0000 nrtn blank 
+
+master_page_no_interval:
+08da 44884002 bpatch patch02_0 ,mem_patch02 
+08db 684940bf fetcht 2 ,mem_page_window 
+08dc 18000e28 force 40 ,queue 
+08dd 20400f3f call sniff_check_window 
+08de 20340913 branch page_exit ,user 
+08df 18000e03 force page_length_timer ,queue 
+08e0 20407d82 call timer_check 
+08e1 243a08ef nbranch page_start ,blank 
+08e2 6fe0804d fetch 1 ,mem_state_map 
+08e3 c28208e5 bbit1 smap_name_req ,master_npage_timeout 
+08e4 202008e8 branch master_page_timeout 
+
+master_npage_timeout:
+08e5 d8a00a01 arg mem_tmp_buffer ,contw 
+08e6 df200008 arg 8 ,loopcnt 
+08e7 20407d25 call memset0 
+
+master_page_timeout:
+08e8 4488c002 bpatch patch02_1 ,mem_patch02 
+08e9 70003100 jam 0 ,mem_state 
+08ea 2040535d call init_lmp_work 
+08eb 70478a00 jam 0 ,memui_reconnect_mode 
+08ec 70095b13 jam bt_evt_reconn_page_timeout ,mem_fifo_temp 
+08ed 2040789f call ui_ipc_send_event 
+08ee 20200913 branch page_exit 
+
+page_start:
+08ef 44894002 bpatch patch02_2 ,mem_patch02 
+08f0 18001600 force 0 ,timeup 
+08f1 34730200 until clkn_rt ,meet 
+08f2 6fe080a9 fetch 1 ,mem_page_clk 
+08f3 1fe0ffff increase -1 ,pdata 
+08f4 9c42fe00 ixor clkn_bt ,pdata 
+08f5 2fe00600 compare 0 ,pdata ,3 
+08f6 242088ef nbranch page_start ,true 
+08f7 18827e00 deposit am_addr 
+08f8 67e080e6 store 1 ,mem_fhs_am_addr 
+08f9 18004c00 force 0 ,n_tx_slot 
+08fa 18004800 force 0 ,freq_mode 
+
+page_restart:
+08fb 4489c002 bpatch patch02_3 ,mem_patch02 
+08fc 20218913 branch page_exit ,timeout 
+08fd 2040112d call fetch_page_bt_adr 
+08fe 69610157 fetchr timeup ,2 ,mem_param_rf_setup 
+08ff 34730200 until clkn_rt ,meet 
+
+page_rx_restart:
+0900 448a4002 bpatch patch02_4 ,mem_patch02 
+0901 6fe200a9 fetch 4 ,mem_page_clk 
+0902 98004200 iforce bt_clk 
+0903 1fe0fe01 increase 1 ,pdata 
+0904 67e200a9 store 4 ,mem_page_clk 
+0905 280ffe0c isolate1 mark_page_trainb ,mark 
+0906 7920c802 setflag true ,2 ,freq_mode 
+0907 2c200400 compare 0x00 ,bt_clk ,0x02 
+0908 24208927 nbranch page_receive ,true 
+0909 6fe0800c fetch 1 ,mem_page_transmit 
+090a 1fe0fe01 increase 1 ,pdata 
+090b 67e0800c store 1 ,mem_page_transmit 
+090c 20401123 call tx_radio_freq 
+090d 204012e3 call start_transmitter 
+090e 204012e8 call start_tx_native 
+090f 204012f6 call send_access_word 
+0910 20400e79 call end_of_packet 
+0911 20400919 call page_check_train 
+0912 202008fb branch page_restart 
+
+page_exit:
+0913 448ac002 bpatch patch02_5 ,mem_patch02 
+0914 7854fc00 disable master 
+0915 6fe140bd fetch 2 ,mem_page_interval 
+0916 207a0000 rtn blank 
+0917 18000e08 force page_interval_timer ,queue 
+0918 20207d74 branch timer_init 
+
+page_check_train:
+0919 448b4002 bpatch patch02_6 ,mem_patch02 
+091a 6fe0808c fetch 1 ,mem_nfreq_index_page 
+091b 1fe0ffff increase -1 ,pdata 
+091c 67e0808c store 1 ,mem_nfreq_index_page 
+091d 20610000 rtn positive 
+091e 70008c1f jam 31 ,mem_nfreq_index_page 
+091f 6fe080a7 fetch 1 ,mem_npage_index 
+0920 1fe0ffff increase -1 ,pdata 
+0921 67e080a7 store 1 ,mem_npage_index 
+0922 20610000 rtn positive 
+0923 7940000c setflip mark_page_trainb ,mark 
+0924 6fe0c0ae fetch 1 ,mem_npage 
+0925 67e080a7 store 1 ,mem_npage_index 
+0926 20600000 rtn 
+
+page_receive:
+0927 448bc002 bpatch patch02_7 ,mem_patch02 
+0928 2040111d call rx_radio_freq 
+0929 204012ed call start_rx_native 
+092a 20401278 call start_receiver 
+092b 2040129e call wait_access_clkn_rt 
+092c 202c092f branch page_sync ,sync 
+092d 20400919 call page_check_train 
+092e 20200900 branch page_rx_restart 
+
+page_sync:
+092f 20400e79 call end_of_packet 
+0930 6fe0800d fetch 1 ,mem_page_rcv 
+0931 1fe0fe01 increase 1 ,pdata 
+0932 67e0800d store 1 ,mem_page_rcv 
+0933 18003600 force 0 ,stop_watch 
+0934 6fe200a9 fetch 4 ,mem_page_clk 
+
+page_send_fhs:
+0935 448c4003 bpatch patch03_0 ,mem_patch03 
+0936 204012e1 call rf_setup_time_master_slot 
+0937 2040112d call fetch_page_bt_adr 
+0938 1cc0cc01 increase 1 ,n_tx_slot 
+
+page_send_fhs_continue:
+0939 1c2143fd and_into 0x1fd ,bt_clk 
+093a 1c8149fc and_into 0x1fc ,freq_mode 
+093b 20401123 call tx_radio_freq 
+093c 204012e3 call start_transmitter 
+093d 204012e8 call start_tx_native 
+093e 204012f6 call send_access_word 
+093f 1c427e00 deposit clkn_bt 
+0940 67e200b1 store 4 ,mem_clkn_bt 
+0941 18000800 force 0 ,am_addr 
+0942 18000202 force type_fhs ,type 
+0943 204012fe call scan_mode_whiten 
+0944 20400f89 call transmit_packet_whitened 
+
+page_wait_fhs_reply:
+0945 448cc003 bpatch patch03_1 ,mem_patch03 
+0946 204012df call rf_setup_time_slave_slot 
+0947 1c21c202 or_into 0x02 ,bt_clk 
+0948 1c8149fc and_into 0x1fc ,freq_mode 
+0949 2040111d call rx_radio_freq 
+094a 204012ed call start_rx_native 
+094b 20401278 call start_receiver 
+094c 2040129e call wait_access_clkn_rt 
+094d 204c0e79 call end_of_packet ,sync 
+094e 202c0954 branch page_wait_fhs_reply_ok ,sync 
+094f 6fe08010 fetch 1 ,mem_fhs_wait_counter 
+0950 203a08fb branch page_restart ,blank 
+0951 1fe0ffff increase -1 ,pdata 
+0952 67e08010 store 1 ,mem_fhs_wait_counter 
+0953 20200935 branch page_send_fhs 
+
+page_wait_fhs_reply_ok:
+0954 448d4003 bpatch patch03_2 ,mem_patch03 
+0955 6fe0800e fetch 1 ,mem_page_rcv_fhs 
+0956 1fe0fe01 increase 1 ,pdata 
+0957 67e0800e store 1 ,mem_page_rcv_fhs 
+0958 20400c43 call prepare_newconn 
+
+master_newconn_loop:
+0959 79200032 set1 mark_first_packet ,mark 
+095a 20400aff call master_newconn_once 
+095b 202c0960 branch newconn_poll_responded ,sync 
+095c 793f8032 set0 mark_first_packet ,mark 
+095d 20400c63 call new_conn_timeout 
+095e 243a0959 nbranch master_newconn_loop ,blank 
+095f 202008fb branch page_restart 
+
+newconn_poll_responded:
+0960 448dc003 bpatch patch03_3 ,mem_patch03 
+0961 793f8032 set0 mark_first_packet ,mark 
+0962 6fe08031 fetch 1 ,mem_state 
+0963 793ffe03 set0 state_inpage ,pdata 
+0964 67e08031 store 1 ,mem_state 
+0965 20400c4e call newconn_init 
+0966 7854fc00 disable master 
+0967 20600000 rtn 
+
+master_dispatch:
+0968 448e4003 bpatch patch03_4 ,mem_patch03 
+0969 7834fc00 enable master 
+096a 78387c00 enable clknt 
+096b 204009e3 call role_switch_master 
+096c 20740000 rtn user 
+096d 2040154b call check_bt_disabled 
+096e 204012e1 call rf_setup_time_master_slot 
+096f 1c40c201 add clkn_bt ,1 ,bt_clk 
+0970 20401133 call fetch_self_bt_adr 
+0971 18004803 force 0x03 ,freq_mode 
+0972 204065a4 call scheduler_tx_l2cap_pkt 
+0973 20400c97 call prepare_tx 
+0974 20401123 call tx_radio_freq 
+0975 204012e3 call start_transmitter 
+0976 204012e8 call start_tx_native 
+0977 204012f6 call send_access_word 
+0978 20400f85 call transmit_packet 
+
+master_loop:
+0979 448ec003 bpatch patch03_5 ,mem_patch03 
+097a 2040536d call parse_lmp 
+097b 20400af1 call master_conn_recv_packet 
+097c 24368982 nbranch master_notmatch ,match 
+097d 2040131b call supervision_flush 
+097e 20400f4b call parse_l2cap 
+097f 6fe0800f fetch 1 ,mem_master_rcvcnt 
+0980 1fe0fe01 increase 1 ,pdata 
+0981 67e0800f store 1 ,mem_master_rcvcnt 
+
+master_notmatch:
+0982 448f4003 bpatch patch03_6 ,mem_patch03 
+0983 2040658c call scheduler_process 
+0984 2040098d call check_master_disconnect 
+0985 24748000 nrtn master 
+0986 20400f1b call check_attempt 
+0987 243a098a nbranch master_attempt ,blank 
+
+master_exit:
+0988 7854fc00 disable master 
+0989 20600000 rtn 
+
+master_attempt:
+098a 20400c97 call prepare_tx 
+098b 20400ae7 call master_conn_send_packet 
+098c 20200979 branch master_loop 
+
+check_master_disconnect:
+098d 20368990 branch check_master_match ,match 
+098e 20401312 call supervision_update 
+098f 2021099e branch master_disconnect ,positive 
+
+check_master_match:
+0990 204009a9 call check_disconnect_timeout 
+0991 2434099e nbranch master_disconnect ,user 
+0992 6fe0804d fetch 1 ,mem_state_map 
+0993 c4020000 rtnbit0 smap_name_req 
+0994 c3818000 rtnbit1 smap_name_res 
+0995 6fe0804c fetch 1 ,mem_op 
+0996 c3818000 rtnbit1 op_disconn 
+0997 204009b0 call conn_timer_expired 
+0998 247a0000 nrtn blank 
+0999 6fe080be fetch 1 ,mem_nameres_cnt 
+099a 1fe0ffff increase -1 ,pdata 
+099b 67e080be store 1 ,mem_nameres_cnt 
+099c 247a0000 nrtn blank 
+099d 202056b2 branch lmp_disconnect 
+
+master_disconnect:
+099e 448fc003 bpatch patch03_7 ,mem_patch03 
+099f 20400c6b call quit_connection 
+09a0 7854fc00 disable master 
+09a1 6fe0804d fetch 1 ,mem_state_map 
+09a2 c28209a4 bbit1 smap_name_req ,master_name_disconnect 
+09a3 20600000 rtn 
+
+master_name_disconnect:
+09a4 6fe0804d fetch 1 ,mem_state_map 
+09a5 c3818000 rtnbit1 smap_name_res 
+
+master_name_error:
+09a6 d8a00a01 arg mem_tmp_buffer ,contw 
+09a7 df200008 arg 8 ,loopcnt 
+09a8 20207d25 branch memset0 
+
+check_disconnect_timeout:
+09a9 44904004 bpatch patch04_0 ,mem_patch04 
+09aa 78347c00 enable user 
+09ab 6fe0804c fetch 1 ,mem_op 
+09ac c4018000 rtnbit0 op_disconn 
+09ad 204009b0 call conn_timer_expired 
+09ae 247a0000 nrtn blank 
+09af 20207e64 branch disable_user 
+
+conn_timer_expired:
+09b0 6fe08073 fetch 1 ,mem_conn_timer 
+09b1 1fe0ffff increase -1 ,pdata 
+09b2 67e08073 store 1 ,mem_conn_timer 
+09b3 20600000 rtn 
+
+linkkey_ready:
+09b4 4490c004 bpatch patch04_1 ,mem_patch04 
+09b5 6fe08031 fetch 1 ,mem_state 
+09b6 c28389bd bbit1 state_linkkey ,linkkey_set 
+09b7 6fe08877 fetch 1 ,mem_pairing_auth 
+09b8 203a09bd branch linkkey_set ,blank 
+09b9 70087700 jam defalt_pairing_auth ,mem_pairing_auth 
+09ba 70095b18 jam bt_evt_linkkey_generate ,mem_fifo_temp 
+09bb 2040789f call ui_ipc_send_event 
+09bc 202009bd branch linkkey_set 
+
+linkkey_set:
+09bd 44914004 bpatch patch04_2 ,mem_patch04 
+09be 20400a61 call context_traverse_linkkey 
+09bf 6fe08031 fetch 1 ,mem_state 
+09c0 79207e07 set1 state_linkkey ,pdata 
+09c1 67e08031 store 1 ,mem_state 
+09c2 7041cd01 jam 1 ,mem_link_key_exists 
+09c3 6fe08056 fetch 1 ,mem_conn_sm 
+09c4 c08b09c5 bne conn_sm_pairing ,linkkey_set_continue 
+
+linkkey_set_continue:
+09c5 20600000 rtn 
+
+generate_linkkey_continue:
+09c6 70087701 jam pairing_auth ,mem_pairing_auth 
+
+clear_linkstate:
+09c7 6fe08031 fetch 1 ,mem_state 
+09c8 793ffe07 set0 state_linkkey ,pdata 
+09c9 67e08031 store 1 ,mem_state 
+09ca 20600000 rtn 
+
+role_switch_check:
+09cb 4491c004 bpatch patch04_3 ,mem_patch04 
+09cc 78547c00 disable user 
+09cd 6fe10033 fetch 2 ,mem_tsniff 
+09ce d840ffff arg 0xffff ,temp 
+09cf 98467c00 isub temp ,null 
+09d0 24628000 nrtn zero 
+09d1 6fe20035 fetch 4 ,mem_sniff_anchor 
+09d2 203809d5 branch role_switch_clkn ,clknt 
+09d3 9d067e00 isub clke_bt ,pdata 
+09d4 202009d6 branch role_switch_clke 
+
+role_switch_clkn:
+09d5 9c467e00 isub clkn_bt ,pdata 
+
+role_switch_clke:
+09d6 1fe67c04 sub pdata ,4 ,null 
+09d7 24610000 nrtn positive 
+09d8 18007e00 force 0 ,pdata 
+09d9 67e10033 store 2 ,mem_tsniff 
+09da 20207e62 branch enable_user 
+
+role_switch_prepare:
+09db 1fe20400 copy pdata ,temp 
+09dc 44924004 bpatch patch04_4 ,mem_patch04 
+09dd 604a0035 storet 4 ,mem_sniff_anchor 
+
+role_switch_prepare0:
+09de 70464201 jam switch_flag_accept ,mem_switch_flag 
+09df 5800ffff setarg 0xffff 
+09e0 67e10033 store 2 ,mem_tsniff 
+09e1 70007401 jam 1 ,mem_sniff_attempt 
+09e2 20600000 rtn 
+
+role_switch_master:
+09e3 4492c004 bpatch patch04_5 ,mem_patch04 
+09e4 204009cb call role_switch_check 
+09e5 24740000 nrtn user 
+09e6 78547c00 disable user 
+09e7 70001120 jam param_newconnto ,mem_newconnto_counter 
+09e8 793f800b set0 mark_fhs_already_good ,mark 
+09e9 793f8030 set0 mark_role_switch_receive_fhs ,mark 
+
+roles_waitfhs_loop:
+09ea 204012e1 call rf_setup_time_master_slot 
+09eb 20400af3 call master_recv_packet 
+09ec c50589f8 bmark1 mark_fhs_already_good ,roles_replyto_fhs 
+09ed 20400c63 call new_conn_timeout 
+09ee 243a09ea nbranch roles_waitfhs_loop ,blank 
+09ef c5180a02 bmark1 mark_role_switch_receive_fhs ,roles_replyto_fhs_rcvd 
+
+role_switch_fail_master:
+09f0 44934004 bpatch patch04_6 ,mem_patch04 
+09f1 78547c00 disable user 
+09f2 1c427e00 deposit clkn_bt 
+09f3 67e240d2 store 4 ,mem_next_btclk 
+09f4 78387c00 enable clknt 
+09f5 7834fc00 enable master 
+09f6 70095b2a jam bt_evt_switch_fail_master ,mem_fifo_temp 
+09f7 2020789f branch ui_ipc_send_event 
+
+roles_replyto_fhs:
+09f8 4493c004 bpatch patch04_7 ,mem_patch04 
+09f9 204012df call rf_setup_time_slave_slot 
+09fa d8200010 arg type_id ,type 
+09fb 20400ae9 call master_send_packet 
+09fc 79200030 set1 mark_role_switch_receive_fhs ,mark 
+09fd 793f800b set0 mark_fhs_already_good ,mark 
+09fe 6fe08078 fetch 1 ,mem_amaddr 
+09ff 98000800 iforce am_addr 
+0a00 70001102 jam 2 ,mem_newconnto_counter 
+0a01 202009ea branch roles_waitfhs_loop 
+
+roles_replyto_fhs_rcvd:
+0a02 6fe200b5 fetch 4 ,mem_clke_bt 
+0a03 1fe0fe08 pincrease 8 
+0a04 67e200b5 store 4 ,mem_clke_bt 
+0a05 78587c00 disable clknt 
+0a06 7854fc00 disable master 
+0a07 20401034 call apply_switch_clke 
+0a08 20400c43 call prepare_newconn 
+
+roles_newconns_loop:
+0a09 44944005 bpatch patch05_0 ,mem_patch05 
+0a0a 20400c8a call slave_newconn_once 
+0a0b 20368a0f branch roles_newconns_responded ,match 
+0a0c 20400c63 call new_conn_timeout 
+0a0d 243a0a09 nbranch roles_newconns_loop ,blank 
+0a0e 202009f0 branch role_switch_fail_master 
+
+roles_newconns_responded:
+0a0f 6fe08032 fetch 1 ,mem_mode 
+0a10 793ffe01 set0 mode_master ,pdata 
+0a11 67e08032 store 1 ,mem_mode 
+0a12 2040131b call supervision_flush 
+0a13 2040105c call calc_clke_offset 
+0a14 78347c00 enable user 
+0a15 70095b2b jam bt_evt_switch_success_master ,mem_fifo_temp 
+0a16 2020789f branch ui_ipc_send_event 
+
+context_load:
+0a17 4494c005 bpatch patch05_1 ,mem_patch05 
+0a18 79200009 set1 mark_context ,mark 
+0a19 1a227e00 deposit rega 
+0a1a 67e1001f store 2 ,mem_context_ptr 
+0a1b 18007258 force context_size ,loopcnt 
+0a1c d8a00287 arg mem_le_state ,contw 
+0a1d 1a208c01 add rega ,coffset_mode ,contr 
+0a1e efe08006 ifetch 1 ,contr 
+0a1f 1a220c00 copy rega ,contr 
+0a20 c2807d6d bbit1 mode_le ,memcpy 
+0a21 d8a00031 arg mem_state ,contw 
+0a22 20407d6d call memcpy 
+0a23 78577c00 disable attempt 
+0a24 6fe08078 fetch 1 ,mem_amaddr 
+0a25 98000800 iforce am_addr 
+0a26 70008901 jam 1 ,mem_current_sniff_attempt 
+0a27 20348a29 branch context_load_master ,master 
+0a28 70008901 jam 1 ,mem_current_sniff_attempt 
+
+context_load_master:
+0a29 6fe08031 fetch 1 ,mem_state 
+0a2a c4008000 rtnbit0 state_insniff 
+0a2b 6fe08074 fetch 1 ,mem_sniff_attempt 
+0a2c 67e08089 store 1 ,mem_current_sniff_attempt 
+0a2d 6fe08075 fetch 1 ,mem_sniff_timeout 
+0a2e 67e0808a store 1 ,mem_current_sniff_timeout 
+0a2f 20600000 rtn 
+
+context_save:
+0a30 44954005 bpatch patch05_2 ,mem_patch05 
+0a31 6fe1001f fetch 2 ,mem_context_ptr 
+0a32 98000a00 iforce contw 
+0a33 18007258 force context_size ,loopcnt 
+0a34 d8c00287 arg mem_le_state ,contr 
+0a35 203b7d6d branch memcpy ,le 
+0a36 d8c00031 arg mem_state ,contr 
+0a37 20207d6d branch memcpy 
+
+context_get_next:
+0a38 df200001 arg context_num ,loopcnt 
+0a39 68488015 fetcht 1 ,mem_current_context 
+
+context_get_next_loop:
+0a3a 18408401 increase 1 ,temp 
+0a3b 2841fe01 compare context_num ,temp ,0xff 
+0a3c 24208a3e nbranch context_get_next_cont ,true 
+0a3d d8400000 arg 0 ,temp 
+
+context_get_next_cont:
+0a3e 60488015 storet 1 ,mem_current_context 
+0a3f 184ffe58 mul32 temp ,context_size ,pdata 
+0a40 da204040 arg mem_context ,rega 
+0a41 9a20a200 iadd rega ,rega 
+0a42 efe08011 ifetch 1 ,rega 
+0a43 c2808a46 bbit1 state_insniff ,context_get_next_sniff 
+0a44 c3800000 rtnbit1 state_inconn 
+0a45 c3818000 rtnbit1 state_inpage 
+
+context_get_next_sniff:
+0a46 c2000a3a loop context_get_next_loop 
+0a47 20600000 rtn 
+
+context_new:
+0a48 4495c005 bpatch patch05_3 ,mem_patch05 
+0a49 da600a77 arg context_search_empty ,regc 
+0a4a 20400a6e call context_search 
+0a4b 24628000 nrtn zero 
+0a4c 1a227e00 deposit rega 
+0a4d 67e1001f store 2 ,mem_context_ptr 
+0a4e 18007c00 force 0 ,null 
+0a4f 20600000 rtn 
+
+context_check_all_wack:
+0a50 20400f48 call check_esco_amaddr 
+0a51 20208a58 branch context_check_esco_wack ,true 
+0a52 6fe1001f fetch 2 ,mem_context_ptr 
+0a53 1fe08a17 add pdata ,coffset_arq ,contw 
+0a54 6fe08048 fetch 1 ,mem_arq 
+0a55 e7e08005 istore 1 ,contw 
+0a56 da600ab7 arg context_check_a_wack ,regc 
+0a57 20200a6e branch context_search 
+
+context_check_esco_wack:
+0a58 6fe08048 fetch 1 ,mem_arq 
+0a59 2feffe03 isolate1 wack ,pdata 
+0a5a 20208a5d branch context_esco_wack ,true 
+0a5b 18007c01 force 1 ,null 
+0a5c 20600000 rtn 
+
+context_esco_wack:
+0a5d 18007c00 force 0 ,null 
+0a5e 20600000 rtn 
+
+context_check_idle:
+0a5f da600ab4 arg context_check_inconn ,regc 
+0a60 20200a6e branch context_search 
+
+context_traverse_linkkey:
+0a61 6849001f fetcht 2 ,mem_context_ptr 
+0a62 da600adc arg context_traverse_clearkey ,regc 
+0a63 20200a6e branch context_search 
+
+context_search_conn_handle:
+0a64 6848c1df fetcht 1 ,mem_hci_conn_handle 
+
+context_search_conn_handle2:
+0a65 da600a82 arg context_search_handle ,regc 
+0a66 20200a6e branch context_search 
+
+context_search_plap:
+0a67 44964005 bpatch patch05_4 ,mem_patch05 
+0a68 684b41e0 fetcht 6 ,mem_hci_plap 
+
+context_search_plap2:
+0a69 da600a7b arg context_search_lap ,regc 
+0a6a 20200a6e branch context_search 
+
+context_search_insniff:
+0a6b da600a88 arg context_search_sniff ,regc 
+0a6c 20200a6e branch context_search 
+
+context_search_sniff_window:
+0a6d da600ad3 arg context_search_window ,regc 
+
+context_search:
+0a6e 4496c005 bpatch patch05_5 ,mem_patch05 
+0a6f da204040 arg mem_context ,rega 
+0a70 df200001 arg context_num ,loopcnt 
+
+context_search_loop:
+0a71 efe08011 ifetch 1 ,rega 
+0a72 1a627a00 copy regc ,pc 
+
+context_search_next:
+0a73 1a20a258 increase context_size ,rega 
+0a74 c2000a71 loop context_search_loop 
+0a75 18007c01 force 1 ,null 
+0a76 20600000 rtn 
+
+context_search_empty:
+0a77 c2800a73 bbit1 state_inconn ,context_search_next 
+0a78 c2818a73 bbit1 state_inpage ,context_search_next 
+0a79 18007c00 force 0 ,null 
+0a7a 20600000 rtn 
+
+context_search_lap:
+0a7b c2818a7d bbit1 state_inpage ,context_search_lap_cont 
+0a7c c3000a73 bbit0 state_inconn ,context_search_next 
+
+context_search_lap_cont:
+0a7d 1a208c10 add rega ,coffset_plap ,contr 
+0a7e efe30006 ifetch 6 ,contr 
+0a7f 98467c00 isub temp ,null 
+0a80 20628000 rtn zero 
+0a81 20200a73 branch context_search_next 
+
+context_search_handle:
+0a82 c3000a73 bbit0 state_inconn ,context_search_next 
+0a83 1a208c16 add rega ,coffset_conn_handle ,contr 
+0a84 efe08006 ifetch 1 ,contr 
+0a85 98467c00 isub temp ,null 
+0a86 20628000 rtn zero 
+0a87 20200a73 branch context_search_next 
+
+context_search_sniff:
+0a88 c3008a73 bbit0 state_insniff ,context_search_next 
+
+context_search_sniff_loop:
+0a89 20400ac0 call context_get_anchor 
+0a8a 20400aa4 call sign_pdata_temp 
+0a8b 98467e00 isub temp ,pdata 
+0a8c 1fe0fe01 increase 1 ,pdata 
+0a8d 20210a9e branch context_search_sniff_miss ,positive 
+0a8e 18c22400 copy contr ,regb 
+0a8f 67e48964 store 9 ,mem_temp 
+0a90 6fe0c6b9 fetch 1 ,mem_sc_calc 
+0a91 243a0a96 nbranch context_search_sniff_sc ,blank 
+0a92 6fe48964 fetch 9 ,mem_temp 
+0a93 1a420c00 copy regb ,contr 
+0a94 1fe0fe05 increase 5 ,pdata 
+0a95 20200a99 branch context_search_meet1 
+
+context_search_sniff_sc:
+0a96 6fe48964 fetch 9 ,mem_temp 
+0a97 1a420c00 copy regb ,contr 
+0a98 1fe0fe14 increase 20 ,pdata 
+
+context_search_meet1:
+0a99 24210a73 nbranch context_search_next ,positive 
+
+context_search_meet:
+0a9a 18424200 copy temp ,bt_clk 
+0a9b 20400acc call context_next_anchor 
+0a9c 18007c00 force 0 ,null 
+0a9d 20600000 rtn 
+
+context_search_sniff_miss:
+0a9e 98002400 iforce regb 
+0a9f 1a208c02 add rega ,coffset_tsniff ,contr 
+0aa0 efe10006 ifetch 2 ,contr 
+0aa1 203a0a9a branch context_search_meet ,blank 
+0aa2 20400acc call context_next_anchor 
+0aa3 20200a89 branch context_search_sniff_loop 
+
+sign_pdata_temp:
+0aa4 1ff11600 rshift16 pdata ,timeup 
+0aa5 196c9600 rshift8 timeup ,timeup 
+0aa6 20228aae branch sign_pdata_temp_p0 ,zero 
+0aa7 29601e0f compare 0xf ,timeup ,0xf 
+0aa8 24608000 nrtn true 
+0aa9 18511600 rshift16 temp ,timeup 
+0aaa 196c9600 rshift8 timeup ,timeup 
+0aab 24628000 nrtn zero 
+0aac 7920041c set1 28 ,temp 
+0aad 20600000 rtn 
+
+sign_pdata_temp_p0:
+0aae 18511600 rshift16 temp ,timeup 
+0aaf 196c9600 rshift8 timeup ,timeup 
+0ab0 29601e0f compare 0xf ,timeup ,0xf 
+0ab1 24608000 nrtn true 
+0ab2 79207e1c set1 28 ,pdata 
+0ab3 20600000 rtn 
+
+context_check_inconn:
+0ab4 c3000a73 bbit0 state_inconn ,context_search_next 
+0ab5 18007c00 force 0 ,null 
+0ab6 20600000 rtn 
+
+context_check_a_wack:
+0ab7 c3000a73 bbit0 state_inconn ,context_search_next 
+0ab8 1a208c01 add rega ,coffset_mode ,contr 
+0ab9 efe08006 ifetch 1 ,contr 
+0aba c2800a73 bbit1 mode_le ,context_search_next 
+0abb 1a208c17 add rega ,coffset_arq ,contr 
+0abc efe08006 ifetch 1 ,contr 
+0abd c3018a73 bbit0 wack ,context_search_next 
+0abe 18007c00 force 0 ,null 
+0abf 20600000 rtn 
+
+context_get_anchor:
+0ac0 1a208c01 add rega ,coffset_mode ,contr 
+0ac1 e8408006 ifetcht 1 ,contr 
+0ac2 1c427e00 deposit clkn_bt 
+0ac3 284ffe01 isolate1 mode_master ,temp 
+0ac4 1a208c04 add rega ,coffset_sniff_anchor ,contr 
+0ac5 e8420006 ifetcht 4 ,contr 
+0ac6 20608000 rtn true 
+0ac7 1a208c08 add rega ,coffset_clk_offset ,contr 
+0ac8 efe30006 ifetch 6 ,contr 
+0ac9 20401072 call calc_clke2 
+0aca 1d027e00 deposit clke_bt 
+0acb 20600000 rtn 
+
+context_next_anchor:
+0acc 1a208c02 add rega ,coffset_tsniff ,contr 
+0acd 1a208a04 add rega ,coffset_sniff_anchor ,contw 
+0ace efe10006 ifetch 2 ,contr 
+0acf 98409600 iadd temp ,timeup 
+0ad0 19627e00 deposit timeup 
+0ad1 e7e20005 istore 4 ,contw 
+0ad2 20201f13 branch le_context_nextevent 
+
+context_search_window:
+0ad3 c3008a73 bbit0 state_insniff ,context_search_next 
+0ad4 20400ac0 call context_get_anchor 
+0ad5 9b60fe00 iadd stop_watch ,pdata 
+0ad6 9b60fe00 iadd stop_watch ,pdata 
+0ad7 98e0fe00 iadd queue ,pdata 
+0ad8 98467c00 isub temp ,null 
+0ad9 24210a73 nbranch context_search_next ,positive 
+0ada 18007c00 force 0 ,null 
+0adb 20600000 rtn 
+
+context_traverse_clearkey:
+0adc c3000a73 bbit0 state_inconn ,context_search_next 
+0add 18427e00 deposit temp 
+0ade 9a267c00 isub rega ,null 
+0adf 203f0a73 branch context_search_next ,null 
+0ae0 1a208c01 add rega ,coffset_mode ,contr 
+0ae1 efe08006 ifetch 1 ,contr 
+0ae2 c2800a73 bbit1 mode_le ,context_search_next 
+0ae3 efe08011 ifetch 1 ,rega 
+0ae4 793ffe07 set0 state_linkkey ,pdata 
+0ae5 e7e08011 istore 1 ,rega 
+0ae6 20200a73 branch context_search_next 
+
+master_conn_send_packet:
+0ae7 44974005 bpatch patch05_6 ,mem_patch05 
+0ae8 204012e1 call rf_setup_time_master_slot 
+
+master_send_packet:
+0ae9 1c40c201 add clkn_bt ,1 ,bt_clk 
+0aea 20401133 call fetch_self_bt_adr 
+0aeb 18004803 force 0x03 ,freq_mode 
+0aec 20401123 call tx_radio_freq 
+0aed 204012e3 call start_transmitter 
+0aee 204012e8 call start_tx_native 
+0aef 204012f6 call send_access_word 
+0af0 20200f85 branch transmit_packet 
+
+master_conn_recv_packet:
+0af1 4497c005 bpatch patch05_7 ,mem_patch05 
+0af2 204012df call rf_setup_time_slave_slot 
+
+master_recv_packet:
+0af3 1c40c201 add clkn_bt ,1 ,bt_clk 
+0af4 20401133 call fetch_self_bt_adr 
+0af5 18004803 force 0x03 ,freq_mode 
+0af6 2040111d call rx_radio_freq 
+0af7 20400c38 call init_rx_packet_flags 
+0af8 2040127d call prep_crypt 
+0af9 204012ed call start_rx_native 
+0afa 20401278 call start_receiver 
+
+master_rx_conn_finish_packet:
+0afb 2040129e call wait_access_clkn_rt 
+0afc 246c0000 nrtn sync 
+0afd 20401238 call save_rssi 
+0afe 20200d41 branch receive_packet 
+
+master_newconn_once:
+0aff 44984006 bpatch patch06_0 ,mem_patch06 
+0b00 6fe080e6 fetch 1 ,mem_fhs_am_addr 
+0b01 98000800 iforce am_addr 
+0b02 18000201 force type_poll ,type 
+0b03 20400ae7 call master_conn_send_packet 
+0b04 20200af1 branch master_conn_recv_packet 
+
+inquiry_scan_dispatch:
+0b05 6fe0c09b fetch 1 ,mem_scan_mode 
+0b06 c4000000 rtnbit0 inq_scan_mode 
+0b07 18000e04 force iscan_interval_timer ,queue 
+0b08 20407d82 call timer_check 
+0b09 247a0000 nrtn blank 
+0b0a 684940b5 fetcht 2 ,mem_iscan_window 
+0b0b 18000e04 force 4 ,queue 
+0b0c 20400f3f call sniff_check_window 
+0b0d 20740000 rtn user 
+0b0e 20400b15 call inquiry_scan_start 
+0b0f 18000e04 force iscan_interval_timer ,queue 
+0b10 6fe140b7 fetch 2 ,mem_iscan_interval 
+0b11 242c7d74 nbranch timer_init ,sync 
+0b12 180a7e00 random pdata 
+0b13 9ea17e00 iand mask3ff ,pdata 
+0b14 20207d74 branch timer_init 
+
+inquiry_scan_start:
+0b15 4498c006 bpatch patch06_1 ,mem_patch06 
+0b16 7000e600 jam 0 ,mem_fhs_am_addr 
+0b17 78587c00 disable clknt 
+0b18 78577c00 disable attempt 
+0b19 204010f5 call afh_clear 
+0b1a 1c4143fc and clkn_bt ,0x1fc ,bt_clk 
+0b1b 18004801 force 0x01 ,freq_mode 
+0b1c 20401129 call fetch_giac 
+0b1d 2040111d call rx_radio_freq 
+0b1e 7940001d setflip mark_inquiry_state ,mark 
+0b1f 6fe08006 fetch 1 ,mem_inquiryscan_waitcnt 
+0b20 1fe0fe01 increase 1 ,pdata 
+0b21 67e08006 store 1 ,mem_inquiryscan_waitcnt 
+0b22 20401143 call fetch_diac 
+0b23 20401278 call start_receiver 
+0b24 204012a5 call wait_access_forever 
+0b25 246c0000 nrtn sync 
+0b26 44994006 bpatch patch06_2 ,mem_patch06 
+0b27 18003600 force 0 ,stop_watch 
+0b28 2040114a call shutdown_radio 
+0b29 6fe08007 fetch 1 ,mem_inquiryscan_rcvcnt 
+0b2a 1fe0fe01 increase 1 ,pdata 
+0b2b 67e08007 store 1 ,mem_inquiryscan_rcvcnt 
+0b2c 20401129 call fetch_giac 
+0b2d 204012df call rf_setup_time_slave_slot 
+0b2e 1c21c202 or_into 0x002 ,bt_clk 
+0b2f 18004801 force 0x01 ,freq_mode 
+0b30 20401123 call tx_radio_freq 
+0b31 20401143 call fetch_diac 
+0b32 204012e3 call start_transmitter 
+0b33 204012f1 call start_tx_external 
+0b34 1c427e00 deposit clkn_bt 
+0b35 67e200b1 store 4 ,mem_clkn_bt 
+0b36 204012f6 call send_access_word 
+0b37 18000202 force type_fhs ,type 
+0b38 18000800 force 0 ,am_addr 
+0b39 204012fe call scan_mode_whiten 
+0b3a 20400f89 call transmit_packet_whitened 
+0b3b 20400b3f call send_eir 
+0b3c 1c2143fd and_into 0x1fd ,bt_clk 
+0b3d 1cc0cc01 increase 1 ,n_tx_slot 
+0b3e 20600000 rtn 
+
+send_eir:
+0b3f 4499c006 bpatch patch06_3 ,mem_patch06 
+0b40 6fe0c0d9 fetch 1 ,mem_eir_enable 
+0b41 207a0000 rtn blank 
+0b42 d8a000f1 arg mem_eir ,contw 
+0b43 6fe0c5fc fetch 1 ,mem_local_name_length 
+0b44 1fe27200 copy pdata ,loopcnt 
+0b45 1fe0fe01 increase 1 ,pdata 
+0b46 e7e08005 istore 1 ,contw 
+0b47 18a20400 copy contw ,temp 
+0b48 1fe0fe01 increase 1 ,pdata 
+0b49 67e141e9 store 2 ,mem_tx_len 
+0b4a 18420a00 copy temp ,contw 
+0b4b 58000009 setarg 0x09 
+0b4c e7e08005 istore 1 ,contw 
+0b4d d8c045fd arg mem_local_name ,contr 
+0b4e 20407d6d call memcpy 
+0b4f da604677 arg mem_all_uuid_128bits ,regc 
+0b50 df200004 arg 4 ,loopcnt 
+0b51 20400b61 call get_all_uuid 
+0b52 da604661 arg mem_all_uuid_16bits ,regc 
+0b53 df200001 arg 1 ,loopcnt 
+0b54 20400b61 call get_all_uuid 
+0b55 1800020a force type_dm3 ,type 
+0b56 7041e802 jam 2 ,mem_tx_lch 
+0b57 580000f1 setarg mem_eir 
+0b58 67e100bf store 2 ,mem_txptr 
+0b59 204012df call rf_setup_time_slave_slot 
+0b5a 20401123 call tx_radio_freq 
+0b5b 204012e3 call start_transmitter 
+0b5c 204012f1 call start_tx_external 
+0b5d 204012f6 call send_access_word 
+0b5e 204012fe call scan_mode_whiten 
+0b5f 20400f89 call transmit_packet_whitened 
+0b60 20600000 rtn 
+
+get_all_uuid:
+0b61 18a20400 copy contw ,temp 
+0b62 1a620c00 copy regc ,contr 
+0b63 efe08006 ifetch 1 ,contr 
+0b64 207a0000 rtn blank 
+
+lshift_loop:
+0b65 1fe3fe00 lshift pdata ,pdata 
+0b66 c2000b65 loop lshift_loop 
+0b67 1fe22200 copy pdata ,rega 
+0b68 1fe0fe02 increase 2 ,pdata 
+0b69 1fe20e00 copy pdata ,queue 
+0b6a 6fe141e9 fetch 2 ,mem_tx_len 
+0b6b 98e0fe00 iadd queue ,pdata 
+0b6c 67e141e9 store 2 ,mem_tx_len 
+0b6d 18420a00 copy temp ,contw 
+0b6e 1a227e00 copy rega ,pdata 
+0b6f 1fe0fe01 increase 1 ,pdata 
+0b70 e7e08005 istore 1 ,contw 
+0b71 1a620c00 copy regc ,contr 
+0b72 efe08006 ifetch 1 ,contr 
+0b73 efe08006 ifetch 1 ,contr 
+0b74 e7e08005 istore 1 ,contw 
+0b75 1a227200 copy rega ,loopcnt 
+0b76 20207d6d branch memcpy 
+
+page_scan_dispatch:
+0b77 6fe0c09b fetch 1 ,mem_scan_mode 
+0b78 c4008000 rtnbit0 page_scan_mode 
+0b79 18000e05 force pscan_interval_timer ,queue 
+0b7a 20407d82 call timer_check 
+0b7b 247a0000 nrtn blank 
+0b7c 684940b9 fetcht 2 ,mem_pscan_window 
+0b7d 18000e28 force 40 ,queue 
+0b7e 20400f3f call sniff_check_window 
+0b7f 20740000 rtn user 
+0b80 18000800 force 0 ,am_addr 
+0b81 70001008 jam param_pagerespto ,mem_fhs_wait_counter 
+0b82 793f800b set0 mark_fhs_already_good ,mark 
+0b83 20400b87 call page_scan_start 
+0b84 18000e05 force pscan_interval_timer ,queue 
+0b85 6fe140bb fetch 2 ,mem_pscan_interval 
+0b86 20207d74 branch timer_init 
+
+page_scan_start:
+0b87 449a4006 bpatch patch06_4 ,mem_patch06 
+0b88 78587c00 disable clknt 
+0b89 204010f5 call afh_clear 
+0b8a 6fe08008 fetch 1 ,mem_pagescan_waitcnt 
+0b8b 1fe0fe01 increase 1 ,pdata 
+0b8c 67e08008 store 1 ,mem_pagescan_waitcnt 
+0b8d 18004c00 force 0 ,n_tx_slot 
+0b8e 20401133 call fetch_self_bt_adr 
+0b8f 1c40c201 add clkn_bt ,1 ,bt_clk 
+0b90 18004802 force 0x02 ,freq_mode 
+0b91 449ac006 bpatch patch06_5 ,mem_patch06 
+0b92 2040111d call rx_radio_freq 
+0b93 20401278 call start_receiver 
+0b94 204012a5 call wait_access_forever 
+0b95 246c0000 nrtn sync 
+0b96 2040114a call shutdown_radio 
+0b97 6fe08009 fetch 1 ,mem_pagescan_rcvcnt 
+0b98 1fe0fe01 increase 1 ,pdata 
+0b99 67e08009 store 1 ,mem_pagescan_rcvcnt 
+0b9a 18003600 force 0 ,stop_watch 
+0b9b 204012df call rf_setup_time_slave_slot 
+0b9c 1c21c202 or_into 0x002 ,bt_clk 
+0b9d 18004801 force 0x01 ,freq_mode 
+0b9e 20401123 call tx_radio_freq 
+0b9f 204012e3 call start_transmitter 
+0ba0 204012f1 call start_tx_external 
+0ba1 204012f6 call send_access_word 
+0ba2 20400e79 call end_of_packet 
+0ba3 18000800 force 0 ,am_addr 
+0ba4 69610157 fetchr timeup ,2 ,mem_param_rf_setup 
+0ba5 35330200 until clke_rt ,meet 
+0ba6 1d01d003 or_into 0x03 ,clke_bt 
+0ba7 1c2143fd and_into 0x1fd ,bt_clk 
+
+page_scan_wait_fhs_restart:
+0ba8 449b4006 bpatch patch06_6 ,mem_patch06 
+0ba9 1cc0cc01 increase 1 ,n_tx_slot 
+0baa 2040111d call rx_radio_freq 
+0bab 20401278 call start_receiver 
+0bac 20401298 call wait_access_mhalfbnd 
+0bad 242c0bb1 nbranch page_scan_wait_fhs_again ,sync 
+0bae 204012fe call scan_mode_whiten 
+0baf 20400d44 call receive_packet_whitened 
+0bb0 c5058bb8 bmark1 mark_fhs_already_good ,page_scan_reply_to_fhs 
+
+page_scan_wait_fhs_again:
+0bb1 449bc006 bpatch patch06_7 ,mem_patch06 
+0bb2 6fe08010 fetch 1 ,mem_fhs_wait_counter 
+0bb3 207a0000 rtn blank 
+0bb4 1fe0ffff increase -1 ,pdata 
+0bb5 67e08010 store 1 ,mem_fhs_wait_counter 
+0bb6 204012e1 call rf_setup_time_master_slot 
+0bb7 20200ba8 branch page_scan_wait_fhs_restart 
+
+page_scan_reply_to_fhs:
+0bb8 449c4007 bpatch patch07_0 ,mem_patch07 
+0bb9 793fd001 set0 1 ,clke_bt 
+0bba 79205000 set1 0 ,clke_bt 
+0bbb 6fe0800a fetch 1 ,mem_pagescan_rcvfhscnt 
+0bbc 1fe0fe01 increase 1 ,pdata 
+0bbd 67e0800a store 1 ,mem_pagescan_rcvfhscnt 
+0bbe 204012df call rf_setup_time_slave_slot 
+0bbf 1c21c202 or_into 0x02 ,bt_clk 
+0bc0 20401123 call tx_radio_freq 
+0bc1 204012e3 call start_transmitter 
+0bc2 204012f1 call start_tx_external 
+0bc3 204012f6 call send_access_word 
+0bc4 20400e79 call end_of_packet 
+
+slave_apply_clke_bt:
+0bc5 2d000603 compare 0x03 ,clke_bt ,0x03 
+0bc6 20208bc9 branch slave_apply_clke_bt_now ,true 
+0bc7 37cb8200 until null ,mhalfbnd 
+0bc8 20200bc5 branch slave_apply_clke_bt 
+
+slave_apply_clke_bt_now:
+0bc9 6fe200b5 fetch 4 ,mem_clke_bt 
+0bca 1fe1fe03 or_into 0x03 ,pdata 
+0bcb 1fe25000 icopy clke_bt 
+
+start_slave_connection:
+0bcc 449cc007 bpatch patch07_1 ,mem_patch07 
+0bcd 6fe300c8 fetch 6 ,extm_lap 
+0bce 67e30041 store 6 ,mem_plap 
+0bcf 20400c43 call prepare_newconn 
+
+slave_newconn_loop:
+0bd0 20400c8a call slave_newconn_once 
+0bd1 20368bd5 branch sconn_successful ,match 
+0bd2 20400c63 call new_conn_timeout 
+0bd3 243a0bd0 nbranch slave_newconn_loop ,blank 
+0bd4 20600000 rtn 
+
+sconn_successful:
+0bd5 449d4007 bpatch patch07_2 ,mem_patch07 
+0bd6 20400c4e call newconn_init 
+0bd7 20400a48 call context_new 
+0bd8 24628000 nrtn zero 
+0bd9 70003200 jam 0 ,mem_mode 
+0bda 2040105c call calc_clke_offset 
+0bdb 20200a30 branch context_save 
+
+slave_dispatch:
+0bdc 449dc007 bpatch patch07_3 ,mem_patch07 
+0bdd 2040106e call calc_clke 
+0bde 20400c02 call role_switch_slave 
+0bdf 20740000 rtn user 
+
+slave_loop:
+0be0 449e4007 bpatch patch07_4 ,mem_patch07 
+0be1 2040154b call check_bt_disabled 
+0be2 2040658c call scheduler_process 
+0be3 20400d39 call slave_conn_recv_packet 
+0be4 24368bf1 nbranch slave_notmatch ,match 
+0be5 6fe14477 fetch 2 ,mem_cb_bt_slave_match 
+0be6 20407e13 call callback_func 
+0be7 2040131b call supervision_flush 
+0be8 204065a4 call scheduler_tx_l2cap_pkt 
+0be9 20400c97 call prepare_tx 
+0bea 20400f7a call slave_conn_send_packet 
+0beb 20400f4b call parse_l2cap 
+0bec 2040536d call parse_lmp 
+0bed 6fe0800b fetch 1 ,mem_slave_rcvcnt 
+0bee 1fe0fe01 increase 1 ,pdata 
+0bef 67e0800b store 1 ,mem_slave_rcvcnt 
+0bf0 2040105c call calc_clke_offset 
+
+slave_notmatch:
+0bf1 449ec007 bpatch patch07_5 ,mem_patch07 
+0bf2 20401490 call lpm_set_mult 
+0bf3 20401312 call supervision_update 
+0bf4 20210bfa branch slave_disconnect ,positive 
+0bf5 204009a9 call check_disconnect_timeout 
+0bf6 24340bfa nbranch slave_disconnect ,user 
+0bf7 20400f1b call check_attempt 
+0bf8 243a0be0 nbranch slave_loop ,blank 
+0bf9 20600000 rtn 
+
+slave_disconnect:
+0bfa 449f4007 bpatch patch07_6 ,mem_patch07 
+0bfb 700a5100 jam 0 ,mem_tester_emulate 
+0bfc 7000e400 jam 0 ,mem_debug_config 
+0bfd 20400c6b call quit_connection 
+0bfe 793f8011 set0 mark_testmode ,mark 
+0bff 20407e2b call test_enable_white 
+0c00 6fe08031 fetch 1 ,mem_state 
+0c01 20600000 rtn 
+
+role_switch_slave:
+0c02 204009cb call role_switch_check 
+0c03 24740000 nrtn user 
+0c04 18820400 copy am_addr ,temp 
+0c05 20401302 call get_free_amaddr 
+0c06 67e080e6 store 1 ,mem_fhs_am_addr 
+0c07 18420800 copy temp ,am_addr 
+0c08 70001120 jam param_newconnto ,mem_newconnto_counter 
+
+roles_sendfhs_loop:
+0c09 449fc007 bpatch patch07_7 ,mem_patch07 
+0c0a 204012e1 call rf_setup_time_master_slot 
+0c0b 18000202 force type_fhs ,type 
+0c0c 20400f72 call slave_send_access 
+0c0d 1c427e00 deposit clkn_bt 
+0c0e 67e200b1 store 4 ,mem_clkn_bt 
+0c0f 20400f85 call transmit_packet 
+0c10 204012df call rf_setup_time_slave_slot 
+0c11 7837fc00 enable user3 
+0c12 20400d1a call slave_receive_access 
+0c13 202c0c1b branch roles_got_fhs_reply ,sync 
+0c14 2040114a call shutdown_radio 
+0c15 20400c63 call new_conn_timeout 
+0c16 243a0c09 nbranch roles_sendfhs_loop ,blank 
+0c17 c6820000 rtnmark0 mark_accept_switch 
+0c18 70007d34 jam lmp_slot_offset ,mem_lmo_opcode2 
+0c19 79200003 set1 mark_switch_initiated ,mark 
+0c1a 20600000 rtn 
+
+roles_got_fhs_reply:
+0c1b 78387c00 enable clknt 
+0c1c 20400c43 call prepare_newconn 
+0c1d 204010f5 call afh_clear 
+
+roles_newconn_loop:
+0c1e 44a04008 bpatch patch08_0 ,mem_patch08 
+0c1f 20400aff call master_newconn_once 
+0c20 202c0c27 branch roles_newconn_responded ,sync 
+0c21 20400c63 call new_conn_timeout 
+0c22 243a0c1e nbranch roles_newconn_loop ,blank 
+0c23 78587c00 disable clknt 
+0c24 1d027e00 deposit clke_bt 
+0c25 67e240d2 store 4 ,mem_next_btclk 
+0c26 20600000 rtn 
+
+roles_newconn_responded:
+0c27 7834fc00 enable master 
+0c28 c5820c2d bmark0 mark_accept_switch ,roles_newconn_nolmp 
+0c29 793f8004 set0 mark_accept_switch ,mark 
+0c2a 70007d03 jam lmp_accepted ,mem_lmo_opcode2 
+0c2b 70007e33 jam lmp_host_connection_req ,mem_lmi_opcode2 
+0c2c 204059d8 call tid_set_reply 
+
+roles_newconn_nolmp:
+0c2d 18827e00 deposit am_addr 
+0c2e 67e08078 store 1 ,mem_amaddr 
+0c2f 18007e00 force 0 ,pdata 
+0c30 67e30039 store 6 ,mem_clk_offset 
+0c31 6fe08032 fetch 1 ,mem_mode 
+0c32 79207e01 set1 mode_master ,pdata 
+0c33 67e08032 store 1 ,mem_mode 
+0c34 2040131b call supervision_flush 
+0c35 7854fc00 disable master 
+0c36 78347c00 enable user 
+0c37 20600000 rtn 
+
+init_rx_packet_flags:
+0c38 44a0c008 bpatch patch08_1 ,mem_patch08 
+0c39 7856fc00 disable match 
+0c3a 793f8005 set0 mark_loopback ,mark 
+0c3b 793f800a set0 mark_am_addr_broadcast ,mark 
+0c3c 793f8010 set0 mark_longpacket ,mark 
+0c3d 793f800f set0 mark_old_packet ,mark 
+0c3e 6fe08048 fetch 1 ,mem_arq 
+0c3f 793ffe05 set0 arqnx ,pdata 
+0c40 79207e04 set1 flowx ,pdata 
+0c41 67e08048 store 1 ,mem_arq 
+0c42 20600000 rtn 
+
+prepare_newconn:
+0c43 44a14008 bpatch patch08_2 ,mem_patch08 
+0c44 70001120 jam param_newconnto ,mem_newconnto_counter 
+0c45 70004850 jam param_newconn_arq ,mem_arq 
+0c46 6fe140c7 fetch 2 ,mem_rx_window_init 
+0c47 67e1003f store 2 ,mem_rx_window 
+0c48 1c427e00 deposit clkn_bt 
+0c49 67e240d2 store 4 ,mem_next_btclk 
+0c4a 20780000 rtn clknt 
+0c4b 1d027e00 deposit clke_bt 
+0c4c 67e240d2 store 4 ,mem_next_btclk 
+0c4d 20600000 rtn 
+
+newconn_init:
+0c4e 44a1c008 bpatch patch08_3 ,mem_patch08 
+0c4f 20405369 call init_lmp_reinit 
+0c50 20400c67 call new_conn_handle 
+0c51 67e08047 store 1 ,mem_conn_handle 
+0c52 58000000 setarg 0 
+0c53 67e1030e store 2 ,mem_l2cap_rxbuff1_len 
+0c54 58001c80 setarg param_supervision_to 
+0c55 67e10052 store 2 ,mem_supervision_to 
+0c56 6fe08031 fetch 1 ,mem_state 
+0c57 79207e00 set1 state_inconn ,pdata 
+0c58 67e08031 store 1 ,mem_state 
+0c59 70004c00 jam 0 ,mem_op 
+0c5a 70004d00 jam 0 ,mem_state_map 
+0c5b 70009e00 jam 0 ,mem_lpm_current_mult 
+0c5c 2020131b branch supervision_flush 
+
+clear_linkkey:
+0c5d 44a24008 bpatch patch08_4 ,mem_patch08 
+0c5e 18007e00 force 0 ,pdata 
+0c5f 67e441ce store 8 ,mem_link_key 
+0c60 e7e40005 istore 8 ,contw 
+0c61 204009c7 call clear_linkstate 
+0c62 20200a61 branch context_traverse_linkkey 
+
+new_conn_timeout:
+0c63 6fe08011 fetch 1 ,mem_newconnto_counter 
+0c64 1fe0ffff increase -1 ,pdata 
+0c65 67e08011 store 1 ,mem_newconnto_counter 
+0c66 20600000 rtn 
+
+new_conn_handle:
+0c67 6fe0c0d7 fetch 1 ,mem_handle_num 
+0c68 1fe0fe01 increase 1 ,pdata 
+0c69 67e0c0d7 store 1 ,mem_handle_num 
+0c6a 20600000 rtn 
+
+quit_connection:
+0c6b 44a2c008 bpatch patch08_5 ,mem_patch08 
+0c6c 6fe0c1de fetch 1 ,mem_hci_cmd 
+0c6d c0018c70 beq hci_cmd_remote_name_req ,quit_connection_name 
+0c6e 6fe08049 fetch 1 ,mem_lmp_to_send 
+0c6f c0808c74 bne lmp_name_req ,quit_connection_cont 
+
+quit_connection_name:
+0c70 20404d67 call cmd_check_plap 
+0c71 24228c74 nbranch quit_connection_cont ,zero 
+0c72 204009a6 call master_name_error 
+0c73 7041de00 jam 0 ,mem_hci_cmd 
+
+quit_connection_cont:
+0c74 44a34008 bpatch patch08_6 ,mem_patch08 
+0c75 20403086 call app_disconn_reason_collect_bt 
+0c76 20400f11 call sniff_exit 
+0c77 70095b02 jam bt_evt_bb_disconnected ,mem_fifo_temp 
+0c78 2040789f call ui_ipc_send_event 
+0c79 2040535d call init_lmp_work 
+0c7a 20404da7 call l2cap_init_work 
+0c7b 20406ef9 call sp_clear_flags 
+0c7c 6fe08031 fetch 1 ,mem_state 
+0c7d 793ffe00 set0 state_inconn ,pdata 
+0c7e 67e08031 store 1 ,mem_state 
+0c7f 70478a00 jam 0 ,memui_reconnect_mode 
+0c80 6fe0804d fetch 1 ,mem_state_map 
+0c81 2fe18000 compare 0x0 ,pdata ,0xc0 
+0c82 20208c84 branch quit_connection_not_clear_mark ,true 
+0c83 793f8001 set0 mark_rxbuf_inuse ,mark 
+
+quit_connection_not_clear_mark:
+0c84 6fe08048 fetch 1 ,mem_arq 
+0c85 c3018c86 bbit0 wack ,quit_connection_not_clear_tx 
+
+quit_connection_not_clear_tx:
+0c86 6fe0804c fetch 1 ,mem_op 
+0c87 c4030000 rtnbit0 op_txl2cap 
+0c88 793f8002 set0 mark_tx_l2cap ,mark 
+0c89 20600000 rtn 
+
+slave_newconn_once:
+0c8a 44a3c008 bpatch patch08_7 ,mem_patch08 
+0c8b 6fe080c4 fetch 1 ,extm_newconn_am_addr 
+0c8c 207a0000 rtn blank 
+0c8d 1fe20800 icopy am_addr 
+0c8e 20400d39 call slave_conn_recv_packet 
+0c8f 24768000 nrtn match 
+0c90 18000200 force type_null ,type 
+0c91 20400f7a call slave_conn_send_packet 
+0c92 18827e00 deposit am_addr 
+0c93 67e08078 store 1 ,mem_amaddr 
+0c94 18007e00 force 0 ,pdata 
+0c95 67e080c4 store 1 ,extm_newconn_am_addr 
+0c96 20600000 rtn 
+
+prepare_tx:
+0c97 44a44009 bpatch patch09_0 ,mem_patch09 
+0c98 6fe08031 fetch 1 ,mem_state 
+0c99 c3010ca4 bbit0 state_insco ,prepare_tx_not_sco 
+0c9a 18000207 force type_hv3 ,type 
+0c9b c5838ca3 bmark0 mark_esco ,prepare_tx_not_esco 
+0c9c 20400f48 call check_esco_amaddr 
+0c9d 24208ca4 nbranch prepare_tx_not_sco ,true 
+0c9e 20370ca4 branch prepare_tx_not_sco ,attempt 
+0c9f 20400ce5 call set_wait_ack 
+0ca0 58000002 setarg 2 
+0ca1 67e140d0 store 2 ,mem_retransmission_cnt 
+0ca2 20600000 rtn 
+
+prepare_tx_not_esco:
+0ca3 24770000 nrtn attempt 
+
+prepare_tx_not_sco:
+0ca4 44a4c009 bpatch patch09_1 ,mem_patch09 
+0ca5 20400a50 call context_check_all_wack 
+0ca6 24228cb5 nbranch prepare_tx_no_retransmit ,zero 
+0ca7 6fe08048 fetch 1 ,mem_arq 
+0ca8 c3018cbe bbit0 wack ,prepare_tx_pollnull 
+
+prepare_tx_retransmit:
+0ca9 c5028cc2 bmark1 mark_loopback ,prepare_tx_loopback 
+0caa 6fe080e4 fetch 1 ,mem_debug_config 
+0cab c2830cc8 bbit1 debug_tx_pattern ,prepare_tx_txpat 
+0cac 6fe140d0 fetch 2 ,mem_retransmission_cnt 
+0cad 1fe0ffff increase -1 ,pdata 
+0cae 67e140d0 store 2 ,mem_retransmission_cnt 
+0caf 203a0cb3 branch prepare_tx_nomore_retransmit ,blank 
+0cb0 6fe0c0cd fetch 1 ,mem_last_type 
+0cb1 98000200 iforce type 
+0cb2 20600000 rtn 
+
+prepare_tx_nomore_retransmit:
+0cb3 44a54009 bpatch patch09_2 ,mem_patch09 
+0cb4 20400eb4 call clear_got_tx 
+
+prepare_tx_no_retransmit:
+0cb5 20400f48 call check_esco_amaddr 
+0cb6 20208cbe branch prepare_tx_pollnull ,true 
+0cb7 204056b6 call send_lmp 
+0cb8 20340ccc branch prepare_tx_sendlmp ,user 
+0cb9 6fe0804c fetch 1 ,mem_op 
+0cba c2830cd8 bbit1 op_txl2cap ,prepare_tx_sendl2cap 
+0cbb c5028cc2 bmark1 mark_loopback ,prepare_tx_loopback 
+0cbc 6fe080e4 fetch 1 ,mem_debug_config 
+0cbd c2830cc8 bbit1 debug_tx_pattern ,prepare_tx_txpat 
+
+prepare_tx_pollnull:
+0cbe 18000201 force type_poll ,type 
+0cbf 20748000 rtn master 
+0cc0 18000200 force type_null ,type 
+0cc1 20600000 rtn 
+
+prepare_tx_loopback:
+0cc2 44a5c009 bpatch patch09_3 ,mem_patch09 
+0cc3 6fe0801a fetch 1 ,mem_rx_type 
+0cc4 98000200 iforce type 
+0cc5 c1808000 rtnne 1 
+0cc6 18000200 force type_null ,type 
+0cc7 20600000 rtn 
+
+prepare_tx_txpat:
+0cc8 6fe08a58 fetch 1 ,test_mode_packet_type 
+0cc9 1fe1020f and pdata ,0xf ,type 
+0cca 79200005 set1 mark_loopback ,mark 
+0ccb 20600000 rtn 
+
+prepare_tx_sendlmp:
+0ccc 18000213 force type_lmp ,type 
+0ccd 20400ce5 call set_wait_ack 
+
+prepare_tx_ccm_edr_lmp:
+0cce 20400dda call check_enc_ccm 
+0ccf 207a0000 rtn blank 
+0cd0 7041e703 jam 3 ,mem_llid 
+0cd1 6fe0838a fetch 1 ,mem_lmo_header_length 
+0cd2 1fe17ff8 and pdata ,0x1f8 ,pdata 
+0cd3 1fe97e00 rshift3 pdata ,pdata 
+0cd4 67e146b1 store 2 ,mem_ccm_len 
+0cd5 1fe22200 copy pdata ,rega 
+0cd6 da60038b arg mem_lmo_header_opcode ,regc 
+0cd7 20206cc6 branch ccm_br_enc_new 
+
+prepare_tx_sendl2cap:
+0cd8 20400cee call tx_l2cap_type 
+0cd9 20400ce5 call set_wait_ack 
+
+prepare_tx_ccm_edr:
+0cda 20400dda call check_enc_ccm 
+0cdb 207a0000 rtn blank 
+0cdc 6fe0c1e8 fetch 1 ,mem_tx_lch 
+0cdd 1fe17e03 and_into 3 ,pdata 
+0cde 67e0c1e7 store 1 ,mem_llid 
+0cdf 6fe141e9 fetch 2 ,mem_tx_len 
+0ce0 1fe22200 copy pdata ,rega 
+0ce1 67e146b1 store 2 ,mem_ccm_len 
+0ce2 6fe100bf fetch 2 ,mem_txptr 
+0ce3 1fe22600 copy pdata ,regc 
+0ce4 20206cc6 branch ccm_br_enc_new 
+
+set_wait_ack:
+0ce5 44a64009 bpatch patch09_4 ,mem_patch09 
+0ce6 68488048 fetcht 1 ,mem_arq 
+0ce7 79200403 set1 wack ,temp 
+0ce8 60488048 storet 1 ,mem_arq 
+0ce9 18227e00 deposit type 
+0cea 67e0c0cd store 1 ,mem_last_type 
+0ceb 5800ffff setarg 0xffff 
+0cec 67e140d0 store 2 ,mem_retransmission_cnt 
+0ced 20600000 rtn 
+
+tx_l2cap_type:
+0cee 44a6c009 bpatch patch09_5 ,mem_patch09 
+0cef 6fe0804d fetch 1 ,mem_state_map 
+0cf0 2feffe05 isolate1 smap_edr ,pdata 
+0cf1 6fe141e9 fetch 2 ,mem_tx_len 
+0cf2 20208d04 branch tx_l2cap_type_edr ,true 
+0cf3 18000203 force type_dm1 ,type 
+0cf4 1fe67c11 sub pdata ,17 ,null 
+0cf5 20610000 rtn positive 
+0cf6 18000204 force type_dh1 ,type 
+0cf7 1fe67c1b sub pdata ,27 ,null 
+0cf8 20610000 rtn positive 
+0cf9 1800020a force type_dm3 ,type 
+0cfa 1fe67c79 sub pdata ,121 ,null 
+0cfb 20610000 rtn positive 
+0cfc 1800020b force type_dh3 ,type 
+0cfd 1fe67cb7 sub pdata ,183 ,null 
+0cfe 20610000 rtn positive 
+0cff 1800020e force type_dm5 ,type 
+0d00 1fe67ce0 sub pdata ,224 ,null 
+0d01 20610000 rtn positive 
+0d02 1800020f force type_dh5 ,type 
+0d03 20600000 rtn 
+
+tx_l2cap_type_edr:
+0d04 18000203 force type_dm1 ,type 
+0d05 1fe67c11 sub pdata ,17 ,null 
+0d06 20610000 rtn positive 
+0d07 18000204 force type_dh1 ,type 
+0d08 1fe67c36 sub pdata ,54 ,null 
+0d09 20610000 rtn positive 
+0d0a 1800020a force type_dm3 ,type 
+0d0b d840016f arg 367 ,temp 
+0d0c 98467c00 isub temp ,null 
+0d0d 24610000 nrtn positive 
+0d0e 1800020e force type_dm5 ,type 
+0d0f d84002a7 arg 679 ,temp 
+0d10 98467c00 isub temp ,null 
+0d11 24610000 nrtn positive 
+0d12 1800020f force type_dh5 ,type 
+0d13 20600000 rtn 
+
+slave_receive_master_slot:
+0d14 6fe08031 fetch 1 ,mem_state 
+0d15 c3008d19 bbit0 state_insniff ,slave_receive_notsniff 
+0d16 6fe10033 fetch 2 ,mem_tsniff 
+0d17 203a0d19 branch slave_receive_notsniff ,blank 
+0d18 24370d1b nbranch slave_receive_sniff ,attempt 
+
+slave_receive_notsniff:
+0d19 204012e1 call rf_setup_time_master_slot 
+
+slave_receive_access:
+0d1a 1d00c201 add clke_bt ,1 ,bt_clk 
+
+slave_receive_sniff:
+0d1b 78287c00 enable swfine 
+0d1c 6fe1003f fetch 2 ,mem_rx_window 
+0d1d 1fe37e00 rshift pdata ,pdata 
+0d1e 6849015d fetcht 2 ,mem_param_pll_setup 
+0d1f 9840fe00 iadd temp ,pdata 
+0d20 204012b6 call ahead_window 
+0d21 2040113b call fetch_extm_bt_adr 
+0d22 18004803 force 0x03 ,freq_mode 
+0d23 2040111d call rx_radio_freq 
+0d24 20400c38 call init_rx_packet_flags 
+0d25 2040127d call prep_crypt 
+0d26 44a74009 bpatch patch09_6 ,mem_patch09 
+0d27 6fe1003f fetch 2 ,mem_rx_window 
+0d28 1fe37e00 rshift pdata ,pdata 
+0d29 204012b6 call ahead_window 
+0d2a 20401278 call start_receiver 
+0d2b 7826fc00 enable decode_fec0 
+0d2c 6fe1003f fetch 2 ,mem_rx_window 
+0d2d 6849015b fetcht 2 ,mem_param_clke_cal 
+0d2e 9840b600 iadd temp ,stop_watch 
+0d2f 37c18400 correlate null ,timeout 
+0d30 1b420400 copy clke ,temp 
+0d31 604b0098 storet 6 ,mem_sync_clke 
+0d32 7846fc00 disable decode_fec0 
+0d33 246c0000 nrtn sync 
+0d34 6fe1015b fetch 2 ,mem_param_clke_cal 
+0d35 1fe25200 copy pdata ,clke_rt 
+0d36 1c225000 copy bt_clk ,clke_bt 
+0d37 203593df branch lpm_adjust_clk ,wake 
+0d38 20600000 rtn 
+
+slave_conn_recv_packet:
+0d39 44a7c009 bpatch patch09_7 ,mem_patch09 
+0d3a 20400d14 call slave_receive_master_slot 
+0d3b 242c114a nbranch shutdown_radio ,sync 
+0d3c 20401238 call save_rssi 
+0d3d c5888d41 bmark0 mark_testmode ,receive_packet 
+0d3e 6fe109f6 fetch 2 ,mem_tst_pktcnt_sync 
+0d3f 1fe0fe01 increase 1 ,pdata 
+0d40 67e109f6 store 2 ,mem_tst_pktcnt_sync 
+
+receive_packet:
+0d41 20404c9c call rf_debug_rx_sync_line 
+0d42 1c230400 rshift bt_clk ,temp 
+0d43 18419c40 or temp ,0x40 ,white_init 
+
+receive_packet_whitened:
+0d44 44a8400a bpatch patch0a_0 ,mem_patch0a 
+0d45 7823fc00 enable enable_white 
+0d46 78257c00 enable enable_hec 
+0d47 7825fc00 enable decode_fec1 
+0d48 09800003 parse demod ,bucket ,3 
+0d49 198cfe00 rshift8 pwindow ,pdata 
+0d4a 67e080ad store 1 ,mem_temp_am_addr 
+0d4b 09800004 parse demod ,bucket ,4 
+0d4c 08008007 inject bucket ,7 
+0d4d 19827e00 copy pwindow ,pdata 
+0d4e 67e0801a store 1 ,mem_rx_type 
+0d4f 09800003 parse demod ,bucket ,3 
+0d50 198cfe00 rshift8 pwindow ,pdata 
+0d51 67e080ae store 1 ,mem_temp_arq 
+0d52 6fe0801a fetch 1 ,mem_rx_type 
+0d53 1fe67c03 sub pdata ,3 ,null 
+0d54 20210d59 branch receive_packet_noedr ,positive 
+0d55 c0038d59 beq 7 ,receive_packet_noedr 
+0d56 6fe0804d fetch 1 ,mem_state_map 
+0d57 2feffe05 isolate1 smap_edr ,pdata 
+0d58 7920aa01 setflag true ,psk ,radio_ctrl 
+
+receive_packet_noedr:
+0d59 44a8c00a bpatch patch0a_1 ,mem_patch0a 
+0d5a 09800008 parse demod ,bucket ,8 
+0d5b 7845fc00 disable decode_fec1 
+0d5c 78457c00 disable enable_hec 
+0d5d 20230e5c branch error_header ,crc_failed 
+0d5e c5888d62 bmark0 mark_testmode ,receive_packet_amchk 
+0d5f 6fe109f8 fetch 2 ,mem_tst_pktcnt_hec 
+0d60 1fe0fe01 increase 1 ,pdata 
+0d61 67e109f8 store 2 ,mem_tst_pktcnt_hec 
+
+receive_packet_amchk:
+0d62 44a9400a bpatch patch0a_2 ,mem_patch0a 
+0d63 6fe080ad fetch 1 ,mem_temp_am_addr 
+0d64 2fe00e00 compare 0 ,pdata ,0x07 
+0d65 7920800a setflag true ,mark_am_addr_broadcast ,mark 
+0d66 20208d70 branch am_addr_ok ,true 
+0d67 a8800e00 icompare 0x07 ,am_addr 
+0d68 20208d6e branch am_addr_match ,true 
+0d69 c5838e79 bmark0 mark_esco ,end_of_packet 
+0d6a 6fe08048 fetch 1 ,mem_arq 
+0d6b 793ffe05 set0 arqnx ,pdata 
+0d6c 79207e04 set1 flowx ,pdata 
+0d6d 67e08048 store 1 ,mem_arq 
+
+am_addr_match:
+0d6e 20404c9f call rf_debug_rx_match_line 
+0d6f 7836fc00 enable match 
+
+am_addr_ok:
+0d70 44a9c00a bpatch patch0a_3 ,mem_patch0a 
+0d71 6fe0801a fetch 1 ,mem_rx_type 
+0d72 1fe20200 icopy type 
+0d73 c5050d7f bmark1 mark_am_addr_broadcast ,arqn_bypass 
+0d74 684880ae fetcht 1 ,mem_temp_arq 
+0d75 6fe08048 fetch 1 ,mem_arq 
+0d76 793ffe00 set0 flow ,pdata 
+0d77 284ffe00 isolate1 flow ,temp 
+0d78 7920fe00 setflag true ,flow ,pdata 
+0d79 284ffe01 isolate1 arqn ,temp 
+0d7a 7920fe01 setflag true ,arqn ,pdata 
+0d7b 67e08048 store 1 ,mem_arq 
+0d7c 284c0001 isolate0 arqn ,temp 
+0d7d 20208d7f branch arqn_bypass ,true 
+0d7e 20400eb4 call clear_got_tx 
+
+arqn_bypass:
+0d7f 44aa400a bpatch patch0a_4 ,mem_patch0a 
+0d80 d8400000 arg 0 ,temp 
+0d81 204012ae call reserve_slot 
+0d82 18217e0f and type ,0xf ,pdata 
+0d83 c0008d9b beq type_poll ,process_poll 
+0d84 c0000e79 beq type_null ,end_of_packet 
+0d85 c0010e85 beq type_fhs ,process_fhs 
+0d86 684880ae fetcht 1 ,mem_temp_arq 
+0d87 6fe08048 fetch 1 ,mem_arq 
+0d88 a8400800 icompare 0x04 ,temp 
+0d89 24208d8d nbranch rx_type_dispatch ,true 
+0d8a c5850d8c bmark0 mark_am_addr_broadcast ,failed_seqn 
+0d8b c3038d8d bbit0 bcast1 ,rx_type_dispatch 
+
+failed_seqn:
+0d8c 7920000f set1 mark_old_packet ,mark 
+
+rx_type_dispatch:
+0d8d 44aac00a bpatch patch0a_5 ,mem_patch0a 
+0d8e 18227e00 deposit type 
+0d8f c0018d9d beq type_dm1 ,process_dm1 
+0d90 c0020da1 beq type_dh1 ,process_dh1 
+0d91 c0040da0 beq type_3dh1 ,process_3dh1 
+0d92 d8400004 arg 4 ,temp 
+0d93 204012ae call reserve_slot 
+0d94 c0050d9c beq type_dm3 ,process_dm3 
+0d95 c0058d9f beq type_dh3 ,process_dh3 
+0d96 d8400008 arg 8 ,temp 
+0d97 204012ae call reserve_slot 
+0d98 c0070d9c beq type_dm5 ,process_dm5 
+0d99 c0078d9f beq type_dh5 ,process_dh5 
+0d9a 20600000 rtn 
+
+process_poll:
+0d9b 20200e79 branch end_of_packet 
+
+process_dm3:
+
+process_dm5:
+0d9c 79200010 set1 mark_longpacket ,mark 
+
+process_dm1:
+0d9d 78267c00 enable decode_fec2 
+0d9e 20200da2 branch process_dmh 
+
+process_dh3:
+
+process_dh5:
+0d9f 79200010 set1 mark_longpacket ,mark 
+
+process_3dh1:
+0da0 79202a02 set1 psk3m ,radio_ctrl 
+
+process_dh1:
+0da1 7826fc00 enable decode_fec0 
+
+process_dmh:
+0da2 44ab400a bpatch patch0a_6 ,mem_patch0a 
+0da3 c5190e79 bmark1 mark_first_packet ,end_of_packet 
+0da4 c5008e79 bmark1 mark_rxbuf_inuse ,end_of_packet 
+0da5 2aac0001 isolate0 psk ,radio_ctrl 
+0da6 20208daf branch process_dmh_noedr ,true 
+0da7 7843fc00 disable enable_white 
+0da8 7826fc00 enable decode_fec0 
+0da9 78467c00 disable decode_fec2 
+0daa 1c409602 add clkn_bt ,2 ,timeup 
+0dab 34530400 correlate clkn_bt ,meet 
+0dac 242c0e68 nbranch error_payload ,sync 
+0dad 79200010 set1 mark_longpacket ,mark 
+0dae 7823fc00 enable enable_white 
+
+process_dmh_noedr:
+0daf 44abc00a bpatch patch0a_7 ,mem_patch0a 
+0db0 78277c00 enable encrypt 
+0db1 7824fc00 enable enable_crc 
+0db2 09800003 parse demod ,bucket ,3 
+0db3 198cfe00 rshift8 pwindow ,pdata 
+0db4 67e080e5 store 1 ,mem_lch_code 
+0db5 09800005 parse demod ,bucket ,5 
+0db6 c5080dba bmark1 mark_longpacket ,process_dmh_long 
+0db7 19897200 rshift3 pwindow ,loopcnt 
+0db8 1f297200 rshift3 loopcnt ,loopcnt 
+0db9 20200dbd branch process_dmh_common 
+
+process_dmh_long:
+0dba 09800005 parse demod ,bucket ,5 
+0dbb 19837200 rshift pwindow ,loopcnt 
+0dbc 09800003 parse demod ,bucket ,3 
+
+process_dmh_common:
+0dbd 44ac400b bpatch patch0b_0 ,mem_patch0b 
+0dbe 1f227e00 deposit loopcnt 
+0dbf 67e100af store 2 ,mem_len 
+0dc0 203a0dd3 branch process_dmh_data_0 ,blank 
+0dc1 20400dda call check_enc_ccm 
+0dc2 203a0dc5 branch process_dmh_common2 ,blank 
+
+process_dmh_common2_ccm:
+0dc3 1f20f204 increase 4 ,loopcnt 
+0dc4 1f227e00 deposit loopcnt 
+
+process_dmh_common2:
+0dc5 9ea67c00 isub mask3ff ,null 
+0dc6 20210e68 branch error_payload ,positive 
+0dc7 44acc00b bpatch patch0b_1 ,mem_patch0b 
+0dc8 793f8000 set0 mark_fhs_eir ,mark 
+0dc9 6fe080e5 fetch 1 ,mem_lch_code 
+0dca 1fe17e03 and_into 0x03 ,pdata 
+0dcb d8a000cf arg mem_rxbuf ,contw 
+0dcc c0018ddf beq llid_lmp ,process_lmp 
+0dcd c5088e09 bmark1 mark_testmode ,process_dmh_data 
+0dce 6fe080e5 fetch 1 ,mem_lch_code 
+0dcf 1fe17e03 and_into 0x03 ,pdata 
+0dd0 c0010de4 beq llid_l2cap_start ,process_dmh_data_l2cap_start_pkt 
+0dd1 c0008df8 beq llid_l2cap_cont ,process_dmh_data_l2cap_continue_pkt 
+0dd2 20200e68 branch error_payload 
+
+process_dmh_data_0:
+0dd3 20400dda call check_enc_ccm 
+0dd4 203a0e0d branch process_dmh_data_end ,blank 
+0dd5 09800020 parse demod ,bucket ,32 
+0dd6 1fef7e00 rshift32 pdata ,pdata 
+0dd7 1fecfe00 rshift8 pdata ,pdata 
+0dd8 67e20273 store 4 ,mem_le_peer_mic 
+0dd9 20200e0d branch process_dmh_data_end 
+
+check_enc_ccm:
+0dda 6fe0804d fetch 1 ,mem_state_map 
+0ddb c3017e6c bbit0 smap_encryption ,enable_blank 
+0ddc 6fe0c645 fetch 1 ,mem_encapsulated_minor_type 
+0ddd c0817e6c bne encapsulated_minor_type_p256 ,enable_blank 
+0dde 20207e6a branch disable_blank 
+
+process_lmp:
+0ddf 6fe100af fetch 2 ,mem_len 
+0de0 1fe67c11 sub pdata ,17 ,null 
+0de1 24210e68 nbranch error_payload ,positive 
+0de2 c5078e49 bmark1 mark_old_packet ,ack_payload 
+0de3 20200e09 branch process_dmh_data 
+
+process_dmh_data_l2cap_start_pkt:
+0de4 44ad400b bpatch patch0b_2 ,mem_patch0b 
+0de5 c5078e49 bmark1 mark_old_packet ,ack_payload 
+0de6 6fe100af fetch 2 ,mem_len 
+0de7 d84002e0 arg 0x2e0 ,temp 
+0de8 98467c00 isub temp ,null 
+0de9 20210e68 branch error_payload ,positive 
+0dea 6fe08314 fetch 1 ,mem_l2cap_rxbuff_inuse 
+0deb c3000dee bbit0 l2cap_inuse_buff1 ,process_dmh_data_into_buff1 
+0dec c3008df3 bbit0 l2cap_inuse_buff2 ,process_dmh_data_into_buff2 
+0ded 20200e79 branch end_of_packet 
+
+process_dmh_data_into_buff1:
+0dee 70031201 jam 1 ,mem_l2cap_rxbuff_new 
+0def 6fe1030e fetch 2 ,mem_l2cap_rxbuff1_len 
+0df0 c0800e79 bne 0 ,end_of_packet 
+0df1 d8a01000 arg mem_l2cap_rxbuff1 ,contw 
+0df2 20200e09 branch process_dmh_data 
+
+process_dmh_data_into_buff2:
+0df3 70031202 jam 2 ,mem_l2cap_rxbuff_new 
+0df4 6fe10310 fetch 2 ,mem_l2cap_rxbuff2_len 
+0df5 c0800e79 bne 0 ,end_of_packet 
+0df6 d8a01400 arg mem_l2cap_rxbuff2 ,contw 
+0df7 20200e09 branch process_dmh_data 
+
+process_dmh_data_l2cap_continue_pkt:
+0df8 44adc00b bpatch patch0b_3 ,mem_patch0b 
+0df9 c5078e49 bmark1 mark_old_packet ,ack_payload 
+0dfa 6fe100af fetch 2 ,mem_len 
+0dfb d84002e0 arg 0x2e0 ,temp 
+0dfc 98467c00 isub temp ,null 
+0dfd 20210e68 branch error_payload ,positive 
+0dfe 6fe08312 fetch 1 ,mem_l2cap_rxbuff_new 
+0dff c0008e02 beq 1 ,process_dmh_data_l2cap_continue_pkt1 
+0e00 c0010e06 beq 2 ,process_dmh_data_l2cap_continue_pkt2 
+0e01 20200e79 branch end_of_packet 
+
+process_dmh_data_l2cap_continue_pkt1:
+0e02 d8a01000 arg mem_l2cap_rxbuff1 ,contw 
+0e03 6fe1030e fetch 2 ,mem_l2cap_rxbuff1_len 
+0e04 98a08a00 iadd contw ,contw 
+0e05 20200e09 branch process_dmh_data 
+
+process_dmh_data_l2cap_continue_pkt2:
+0e06 d8a01400 arg mem_l2cap_rxbuff2 ,contw 
+0e07 6fe10310 fetch 2 ,mem_l2cap_rxbuff2_len 
+0e08 98a08a00 iadd contw ,contw 
+
+process_dmh_data:
+0e09 09800008 parse demod ,bucket ,8 
+0e0a 19897e00 rshift3 pwindow ,pdata 
+0e0b e7e08005 istore 1 ,contw 
+0e0c c2000e09 loop process_dmh_data 
+
+process_dmh_data_end:
+0e0d 44ae400b bpatch patch0b_4 ,mem_patch0b 
+0e0e 09800010 parse demod ,bucket ,16 
+0e0f 20230e62 branch error_payload_crc ,crc_failed 
+0e10 20400dda call check_enc_ccm 
+0e11 20407e66 call enable_user2 
+0e12 245a6cf7 ncall ccm_br_decrypt_new ,blank 
+0e13 24360e69 nbranch error_mic_error ,user2 
+0e14 20404c9b call rf_debug_rx_crc_line 
+0e15 6fe0c5f3 fetch 1 ,mem_l2cap_flow_ctrl_flag 
+0e16 c0008e69 beq l2cap_flow_ctrl_enable ,flow_ctrl 
+0e17 c5088e36 bmark1 mark_testmode ,process_dmh_cont 
+0e18 c5078e76 bmark1 mark_old_packet ,redundant_payload 
+0e19 6fe080e5 fetch 1 ,mem_lch_code 
+0e1a 2fe00603 compare 3 ,pdata ,3 
+0e1b 20208e36 branch process_dmh_cont ,true 
+0e1c 6fe100af fetch 2 ,mem_len 
+0e1d 203a0e36 branch process_dmh_cont ,blank 
+0e1e 44aec00b bpatch patch0b_5 ,mem_patch0b 
+0e1f 6fe08312 fetch 1 ,mem_l2cap_rxbuff_new 
+0e20 c0008e23 beq 1 ,process_l2cap_pass_crc_buff1 
+0e21 c0010e2d beq 2 ,process_l2cap_pass_crc_buff2 
+0e22 2020131f branch assert 
+
+process_l2cap_pass_crc_buff1:
+0e23 6fe1030e fetch 2 ,mem_l2cap_rxbuff1_len 
+0e24 684900af fetcht 2 ,mem_len 
+0e25 9840fe00 iadd temp ,pdata 
+0e26 67e1030e store 2 ,mem_l2cap_rxbuff1_len 
+0e27 207a0000 rtn blank 
+0e28 68491000 fetcht 2 ,mem_l2cap_rxbuff1 
+0e29 18408404 increase 4 ,temp 
+0e2a 98467c00 isub temp ,null 
+0e2b 20428f6a call l2cap_buff1_inuse ,zero 
+0e2c 20200e36 branch process_dmh_cont 
+
+process_l2cap_pass_crc_buff2:
+0e2d 6fe10310 fetch 2 ,mem_l2cap_rxbuff2_len 
+0e2e 684900af fetcht 2 ,mem_len 
+0e2f 9840fe00 iadd temp ,pdata 
+0e30 67e10310 store 2 ,mem_l2cap_rxbuff2_len 
+0e31 207a0000 rtn blank 
+0e32 68491400 fetcht 2 ,mem_l2cap_rxbuff2 
+0e33 18408404 add temp ,4 ,temp 
+0e34 98467c00 isub temp ,null 
+0e35 20428f6e call l2cap_buff2_inuse ,zero 
+
+process_dmh_cont:
+0e36 44af400b bpatch patch0b_6 ,mem_patch0b 
+0e37 6848804d fetcht 1 ,mem_state_map 
+0e38 6fe080e5 fetch 1 ,mem_lch_code 
+0e39 2fe00603 compare 3 ,pdata ,0x03 
+0e3a 79208406 setflag true ,smap_rxlmp ,temp 
+0e3b 7d208407 nsetflag true ,smap_rxl2cap ,temp 
+0e3c 6048804d storet 1 ,mem_state_map 
+0e3d 24208e3f nbranch process_dmh_cont_rxbuf_not_use ,true 
+0e3e 79200001 set1 mark_rxbuf_inuse ,mark 
+
+process_dmh_cont_rxbuf_not_use:
+0e3f c5888e49 bmark0 mark_testmode ,ack_payload 
+0e40 284ffe06 isolate1 smap_rxlmp ,temp 
+0e41 20208e49 branch ack_payload ,true 
+0e42 6fe109fa fetch 2 ,mem_tst_pktcnt_crc 
+0e43 1fe0fe01 increase 1 ,pdata 
+0e44 67e109fa store 2 ,mem_tst_pktcnt_crc 
+0e45 79200005 set1 mark_loopback ,mark 
+0e46 793f8407 set0 smap_rxl2cap ,temp 
+0e47 793f8001 set0 mark_rxbuf_inuse ,mark 
+0e48 6048804d storet 1 ,mem_state_map 
+
+ack_payload:
+0e49 44afc00b bpatch patch0b_7 ,mem_patch0b 
+0e4a 20400dda call check_enc_ccm 
+0e4b 245a6d1e ncall ccm_br_pcnt_rx_add ,blank 
+0e4c 684880ae fetcht 1 ,mem_temp_arq 
+0e4d 6fe08048 fetch 1 ,mem_arq 
+0e4e 79207e05 set1 arqnx ,pdata 
+0e4f 284ffe02 isolate1 seqn ,temp 
+0e50 7920fe02 setflag true ,seqn ,pdata 
+0e51 280ffe0a isolate1 mark_am_addr_broadcast ,mark 
+0e52 7920fe07 setflag true ,bcast1 ,pdata 
+0e53 67e08048 store 1 ,mem_arq 
+0e54 6fe100af fetch 2 ,mem_len 
+0e55 243a0e79 nbranch end_of_packet ,blank 
+0e56 6fe0804d fetch 1 ,mem_state_map 
+0e57 793ffe07 set0 smap_rxl2cap ,pdata 
+0e58 67e0804d store 1 ,mem_state_map 
+0e59 6fe080e5 fetch 1 ,mem_lch_code 
+0e5a 2fe00e01 compare 0x01 ,pdata ,0x07 
+0e5b 20200e79 branch end_of_packet 
+
+error_header:
+0e5c 44b0400c bpatch patch0c_0 ,mem_patch0c 
+0e5d 7856fc00 disable match 
+0e5e 6fe1001b fetch 2 ,mem_rx_hec_err 
+0e5f 1fe0fe01 increase 1 ,pdata 
+0e60 67e1001b store 2 ,mem_rx_hec_err 
+0e61 20200e79 branch end_of_packet 
+
+error_payload_crc:
+0e62 6fe1001d fetch 2 ,mem_rx_crc_err 
+0e63 1fe0fe01 increase 1 ,pdata 
+0e64 67e1001d store 2 ,mem_rx_crc_err 
+0e65 20400e6a call discard_pkt 
+0e66 c5888e68 bmark0 mark_testmode ,error_payload 
+0e67 79200005 set1 mark_loopback ,mark 
+
+error_payload:
+0e68 20200e79 branch end_of_packet 
+
+flow_ctrl:
+
+error_mic_error:
+0e69 20200e62 branch error_payload_crc 
+
+discard_pkt:
+0e6a 44b0c00c bpatch patch0c_1 ,mem_patch0c 
+0e6b 6fe080e5 fetch 1 ,mem_lch_code 
+0e6c 2fe00603 compare 3 ,pdata ,0x03 
+0e6d 24208e72 nbranch discard_pkt_l2cap ,true 
+
+discard_pkt_lmp:
+0e6e 6848804d fetcht 1 ,mem_state_map 
+0e6f 793f8406 set0 smap_rxlmp ,temp 
+0e70 6048804d storet 1 ,mem_state_map 
+0e71 20600000 rtn 
+
+discard_pkt_l2cap:
+0e72 6848804d fetcht 1 ,mem_state_map 
+0e73 793f8407 set0 smap_rxl2cap ,temp 
+0e74 6048804d storet 1 ,mem_state_map 
+0e75 20600000 rtn 
+
+redundant_payload:
+0e76 6fe08048 fetch 1 ,mem_arq 
+0e77 79207e05 set1 arqnx ,pdata 
+0e78 67e08048 store 1 ,mem_arq 
+
+end_of_packet:
+0e79 44b1400c bpatch patch0c_2 ,mem_patch0c 
+0e7a 784efc00 disable encode_fec0 
+0e7b 784e7c00 disable encode_fec2 
+0e7c 7846fc00 disable decode_fec0 
+0e7d 78467c00 disable decode_fec2 
+0e7e 7844fc00 disable enable_crc 
+0e7f 78477c00 disable encrypt 
+0e80 7843fc00 disable enable_white 
+0e81 2030914a branch shutdown_radio ,is_rx 
+0e82 37d38200 until null ,tx_clear 
+0e83 20000064 nop 100 
+0e84 2020114a branch shutdown_radio 
+
+process_fhs:
+0e85 44b1c00c bpatch patch0c_3 ,mem_patch0c 
+0e86 7824fc00 enable enable_crc 
+0e87 78267c00 enable decode_fec2 
+0e88 09800048 parse demod ,bucket ,72 
+0e89 2feffe3a isolate1 58 ,pdata 
+0e8a 79208000 setflag true ,mark_fhs_eir ,mark 
+0e8b 1c020400 copy bt_adr ,temp 
+0e8c 57e04000 ialigned bt_adr 
+0e8d 57e03c00 ialigned fhs0 
+0e8e 782afc00 pulse recalc 
+0e8f 380bffff setsect 2 ,0xfffff 
+0e90 380cffff setsect 3 ,0x0ffff 
+0e91 20000020 nop 32 
+0e92 29a80000 iverify fhs_parity 
+0e93 1d827e00 deposit lap 
+0e94 67e180c8 store 3 ,extm_lap 
+0e95 1da27e00 deposit uap 
+0e96 67e080cb store 1 ,extm_uap 
+0e97 18424000 copy temp ,bt_adr 
+0e98 20208e9a branch fhs_parity_ok ,true 
+0e99 20200e68 branch error_payload 
+
+fhs_parity_ok:
+0e9a 44b2400c bpatch patch0c_4 ,mem_patch0c 
+0e9b 09800048 parse demod ,bucket ,72 
+0e9c 57e03e00 ialigned fhs1 
+0e9d 57e00800 ialigned am_addr 
+0e9e 57e05c00 ialigned nap 
+0e9f 57e02400 ialigned regb 
+0ea0 18007e00 force 0 ,pdata 
+0ea1 09800010 parse demod ,bucket ,16 
+0ea2 20230e68 branch error_payload ,crc_failed 
+0ea3 20404c9b call rf_debug_rx_crc_line 
+0ea4 5ffffffc setarg 0x0ffffffc 
+0ea5 9a417e00 iand regb ,pdata 
+0ea6 67e200b5 store 4 ,mem_clke_bt 
+0ea7 1ba27e00 deposit fhs_class 
+0ea8 67e180c5 store 3 ,extm_class 
+0ea9 1b827e00 deposit fhs_misc 
+0eaa 67e080c3 store 1 ,extm_fhs_misc 
+0eab 18827e00 deposit am_addr 
+0eac 67e080c4 store 1 ,extm_newconn_am_addr 
+0ead 1dc27e00 deposit nap 
+0eae 67e100cc store 2 ,extm_nap 
+0eaf 1c227e00 deposit bt_clk 
+0eb0 08008220 inject rxf ,32 
+0eb1 28201e02 compare type_fhs ,type ,0x0f 
+0eb2 7920800b setflag true ,mark_fhs_already_good ,mark 
+0eb3 20200e79 branch end_of_packet 
+
+clear_got_tx:
+0eb4 44b2c00c bpatch patch0c_5 ,mem_patch0c 
+0eb5 6fe08048 fetch 1 ,mem_arq 
+0eb6 c4018000 rtnbit0 wack 
+0eb7 793ffe03 set0 wack ,pdata 
+0eb8 79407e06 setflip seqnx ,pdata 
+0eb9 67e08048 store 1 ,mem_arq 
+0eba 20400dda call check_enc_ccm 
+0ebb 245a6ce4 ncall ccm_br_pcnt_tx_add ,blank 
+0ebc 6fe0c0cd fetch 1 ,mem_last_type 
+0ebd c0098ecb beq type_lmp ,clear_got_txlmp 
+0ebe c1038000 rtneq type_hv3 
+0ebf 6fe0804c fetch 1 ,mem_op 
+0ec0 c4030000 rtnbit0 op_txl2cap ,pdata 
+0ec1 793ffe06 set0 op_txl2cap ,pdata 
+0ec2 79207e07 set1 op_pkt_comp ,pdata 
+0ec3 67e0804c store 1 ,mem_op 
+0ec4 793f8002 set0 mark_tx_l2cap ,mark 
+0ec5 6fe144d6 fetch 2 ,mem_l2cap_tx_multi_offset 
+0ec6 247a0000 nrtn blank 
+0ec7 6fe0804c fetch 1 ,mem_op 
+0ec8 793ffe07 set0 op_pkt_comp ,pdata 
+0ec9 67e0804c store 1 ,mem_op 
+0eca 202052bb branch l2cap_malloc_free 
+
+clear_got_txlmp:
+0ecb 44b3400c bpatch patch0c_6 ,mem_patch0c 
+0ecc 6fe0c5f6 fetch 1 ,mem_lmo_header_opcode_x 
+0ecd 1fe37e00 rshift pdata ,pdata 
+0ece c0088ede beq lmp_start_encryption_req ,start_encryption 
+0ecf c0090ee8 beq lmp_stop_encryption_req ,stop_encryption 
+0ed0 c00c0f11 beq lmp_unsniff_req ,sniff_exit 
+0ed1 c03f8ed6 beq lmp_escape ,clear_lmp_escape 
+0ed2 c1818000 rtnne lmp_accepted 
+0ed3 6fe0838c fetch 1 ,mem_lmo_payload 
+0ed4 c0088ed9 beq lmp_start_encryption_req ,clear_send_setup_complete 
+0ed5 20600000 rtn 
+
+clear_lmp_escape:
+0ed6 6fe0838c fetch 1 ,mem_lmo_payload 
+0ed7 79207e07 set1 7 ,pdata 
+0ed8 20600000 rtn 
+
+clear_send_setup_complete:
+0ed9 20748000 rtn master 
+0eda 6fe08031 fetch 1 ,mem_state 
+0edb c3820000 rtnbit1 state_conn_comp 
+0edc 70007d31 jam lmp_setup_complete ,mem_lmo_opcode2 
+0edd 20600000 rtn 
+
+start_encryption:
+0ede 44b3c00c bpatch patch0c_7 ,mem_patch0c 
+0edf 6fe0804d fetch 1 ,mem_state_map 
+0ee0 79207e02 set1 smap_encryption ,pdata 
+0ee1 67e0804d store 1 ,mem_state_map 
+0ee2 70801101 jam 1 ,core_encrypt 
+0ee3 18007e00 force 0 ,pdata 
+0ee4 67e2c6a0 store 5 ,mem_ccm_pcnt_rx 
+0ee5 79207e25 set1 br_ccm_directionbit ,pdata 
+0ee6 67e2c69b store 5 ,mem_ccm_pcnt_tx 
+0ee7 20600000 rtn 
+
+stop_encryption:
+0ee8 44b4400d bpatch patch0d_0 ,mem_patch0d 
+0ee9 6fe0804d fetch 1 ,mem_state_map 
+0eea 793ffe02 set0 smap_encryption ,pdata 
+0eeb 67e0804d store 1 ,mem_state_map 
+0eec 70801100 jam 0 ,core_encrypt 
+0eed 20600000 rtn 
+
+sniff_init:
+0eee 44b4c00d bpatch patch0d_1 ,mem_patch0d 
+0eef 1c427e00 copy clkn_bt ,pdata 
+0ef0 67e24482 store 4 ,mem_lpm_delay_after_sniff 
+0ef1 1c40a203 add clkn_bt ,3 ,rega 
+0ef2 20348ef4 branch sniff_init_master ,master 
+0ef3 1d00a203 add clke_bt ,3 ,rega 
+
+sniff_init_master:
+0ef4 68490033 fetcht 2 ,mem_tsniff 
+0ef5 1a227e00 deposit rega 
+0ef6 793ffe1b set0 27 ,pdata 
+0ef7 9846fc00 idiv temp 
+0ef8 6fe10076 fetch 2 ,mem_dsniff 
+0ef9 20407dfd call wait_div_end 
+0efa 18072600 remainder regc 
+0efb 9a667e00 isub regc ,pdata 
+0efc 20210efe branch sniff_init_nowrap ,positive 
+0efd 9840fe00 iadd temp ,pdata 
+
+sniff_init_nowrap:
+0efe 9a20fe00 iadd rega ,pdata 
+0eff 67e20035 store 4 ,mem_sniff_anchor 
+0f00 70464200 jam switch_flag_init ,mem_switch_flag 
+0f01 6fe08031 fetch 1 ,mem_state 
+0f02 79207e01 set1 state_insniff ,pdata 
+0f03 67e08031 store 1 ,mem_state 
+0f04 6fe08074 fetch 1 ,mem_sniff_attempt 
+0f05 67e08089 store 1 ,mem_current_sniff_attempt 
+0f06 58000000 setarg 0 
+0f07 67e1c171 store 3 ,mem_sniff_rcv 
+0f08 67e1c174 store 3 ,mem_sniff_lost 
+0f09 67e0c161 store 1 ,mem_sniff_unint_lost 
+0f0a 70095b0b jam bt_evt_enter_sniff ,mem_fifo_temp 
+0f0b 2040789f call ui_ipc_send_event 
+0f0c 6fe140c9 fetch 2 ,mem_rx_window_sniff 
+0f0d 67e1003f store 2 ,mem_rx_window 
+0f0e 24748000 nrtn master 
+0f0f 18808fff add am_addr ,-1 ,queue 
+0f10 20600000 rtn 
+
+sniff_exit:
+0f11 44b5400d bpatch patch0d_2 ,mem_patch0d 
+0f12 6fe08031 fetch 1 ,mem_state 
+0f13 c4008000 rtnbit0 state_insniff 
+0f14 793ffe01 set0 state_insniff ,pdata 
+0f15 67e08031 store 1 ,mem_state 
+0f16 6fe140c7 fetch 2 ,mem_rx_window_init 
+0f17 67e1003f store 2 ,mem_rx_window 
+0f18 7855fc00 disable wake 
+0f19 70095b0c jam bt_evt_exit_sniff ,mem_fifo_temp 
+0f1a 2020789f branch ui_ipc_send_event 
+
+check_attempt:
+0f1b 44b5c00d bpatch patch0d_3 ,mem_patch0d 
+0f1c 78377c00 enable attempt 
+0f1d 6fe08031 fetch 1 ,mem_state 
+0f1e c2808f28 bbit1 state_insniff ,check_attempt_sniff 
+0f1f c6088000 rtnmark1 mark_testmode 
+0f20 6fe08048 fetch 1 ,mem_arq 
+0f21 c3818000 rtnbit1 wack 
+0f22 6fe08049 fetch 1 ,mem_lmp_to_send 
+0f23 247a0000 nrtn blank 
+0f24 6fe0804c fetch 1 ,mem_op 
+0f25 c3830000 rtnbit1 op_txl2cap 
+
+check_attempt_nomore:
+0f26 18007e00 force 0 ,pdata 
+0f27 20600000 rtn 
+
+check_attempt_sniff:
+0f28 c3010f32 bbit0 state_insco ,check_attempt_not_sco 
+0f29 6fe08089 fetch 1 ,mem_current_sniff_attempt 
+0f2a c0010f2e beq 2 ,check_attempt_sniff_restore_sco 
+0f2b 6fe08048 fetch 1 ,mem_arq 
+0f2c c2818f3b bbit1 wack ,check_attempt_notimeout 
+0f2d c5840f3b bmark0 mark_esco_rxok ,check_attempt_notimeout 
+
+check_attempt_sniff_restore_sco:
+0f2e 24348f3b nbranch check_attempt_notimeout ,master 
+0f2f 6fe08049 fetch 1 ,mem_lmp_to_send 
+0f30 243a0f3b nbranch check_attempt_notimeout ,blank 
+
+check_attempt_sco_master:
+0f31 20200f26 branch check_attempt_nomore 
+
+check_attempt_not_sco:
+0f32 6fe08089 fetch 1 ,mem_current_sniff_attempt 
+0f33 c0808f3b bne 1 ,check_attempt_notimeout 
+0f34 6fe0808a fetch 1 ,mem_current_sniff_timeout 
+0f35 203a0f3b branch check_attempt_notimeout ,blank 
+0f36 1fe0ffff increase -1 ,pdata 
+0f37 67e0808a store 1 ,mem_current_sniff_timeout 
+0f38 6fe08048 fetch 1 ,mem_arq 
+0f39 c3818000 rtnbit1 wack 
+0f3a 24768000 nrtn match 
+
+check_attempt_notimeout:
+0f3b 6fe08089 fetch 1 ,mem_current_sniff_attempt 
+0f3c 1fe0ffff increase -1 ,pdata 
+0f3d 67e08089 store 1 ,mem_current_sniff_attempt 
+0f3e 20600000 rtn 
+
+sniff_check_window:
+0f3f 44b6400d bpatch patch0d_4 ,mem_patch0d 
+0f40 78487c00 disable swfine 
+0f41 18423600 copy temp ,stop_watch 
+0f42 20400a6d call context_search_sniff_window 
+0f43 78547c00 disable user 
+0f44 24628000 nrtn zero 
+0f45 18003600 force 0 ,stop_watch 
+0f46 78347c00 enable user 
+0f47 20600000 rtn 
+
+check_esco_amaddr:
+0f48 6fe0c160 fetch 1 ,mem_esco_addr 
+0f49 a881fe00 icompare 0xff ,am_addr 
+0f4a 20600000 rtn 
+
+parse_l2cap:
+0f4b 44b6c00d bpatch patch0d_5 ,mem_patch0d 
+0f4c 793f8001 set0 mark_rxbuf_inuse ,mark 
+
+parse_l2cap_cont:
+0f4d 70031b00 jam l2cap_rx_clear ,mem_l2cap_rx_done 
+0f4e 6fe08314 fetch 1 ,mem_l2cap_rxbuff_inuse 
+0f4f 207a0000 rtn blank 
+0f50 2feffe00 isolate1 l2cap_inuse_buff1 ,pdata 
+0f51 d8c01000 arg mem_l2cap_rxbuff1 ,contr 
+0f52 2040cdb5 call process_rx_l2cap_pkt ,true 
+0f53 44b7400d bpatch patch0d_6 ,mem_patch0d 
+0f54 6fe0831b fetch 1 ,mem_l2cap_rx_done 
+0f55 c0008f5e beq l2cap_rx_done ,parse_l2cap_release_buff1 
+0f56 70031b00 jam l2cap_rx_clear ,mem_l2cap_rx_done 
+0f57 6fe08314 fetch 1 ,mem_l2cap_rxbuff_inuse 
+0f58 c4008000 rtnbit0 l2cap_inuse_buff2 
+0f59 d8c01400 arg mem_l2cap_rxbuff2 ,contr 
+0f5a 20404db5 call process_rx_l2cap_pkt 
+0f5b 6fe0831b fetch 1 ,mem_l2cap_rx_done 
+0f5c c0008f64 beq l2cap_rx_done ,parse_l2cap_release_buff2 
+0f5d 20600000 rtn 
+
+parse_l2cap_release_buff1:
+0f5e 6fe08314 fetch 1 ,mem_l2cap_rxbuff_inuse 
+0f5f 793ffe00 set0 l2cap_inuse_buff1 ,pdata 
+0f60 67e08314 store 1 ,mem_l2cap_rxbuff_inuse 
+0f61 58000000 setarg 0 
+0f62 67e1030e store 2 ,mem_l2cap_rxbuff1_len 
+0f63 20600000 rtn 
+
+parse_l2cap_release_buff2:
+0f64 6fe08314 fetch 1 ,mem_l2cap_rxbuff_inuse 
+0f65 793ffe01 set0 l2cap_inuse_buff2 ,pdata 
+0f66 67e08314 store 1 ,mem_l2cap_rxbuff_inuse 
+0f67 58000000 setarg 0 
+0f68 67e10310 store 2 ,mem_l2cap_rxbuff2_len 
+0f69 20600000 rtn 
+
+l2cap_buff1_inuse:
+0f6a 6fe08314 fetch 1 ,mem_l2cap_rxbuff_inuse 
+0f6b 79207e00 set1 l2cap_inuse_buff1 ,pdata 
+0f6c 67e08314 store 1 ,mem_l2cap_rxbuff_inuse 
+0f6d 20600000 rtn 
+
+l2cap_buff2_inuse:
+0f6e 6fe08314 fetch 1 ,mem_l2cap_rxbuff_inuse 
+0f6f 79207e01 set1 l2cap_inuse_buff2 ,pdata 
+0f70 67e08314 store 1 ,mem_l2cap_rxbuff_inuse 
+0f71 20600000 rtn 
+
+slave_send_access:
+0f72 44b7c00d bpatch patch0d_7 ,mem_patch0d 
+0f73 1d00c201 add clke_bt ,1 ,bt_clk 
+0f74 2040113b call fetch_extm_bt_adr 
+0f75 18004803 force 0x03 ,freq_mode 
+0f76 20401123 call tx_radio_freq 
+0f77 204012e3 call start_transmitter 
+0f78 204012f1 call start_tx_external 
+0f79 202012f6 branch send_access_word 
+
+slave_conn_send_packet:
+0f7a 44b8400e bpatch patch0e_0 ,mem_patch0e 
+0f7b 204012df call rf_setup_time_slave_slot 
+0f7c 1d027e00 deposit clke_bt 
+0f7d 684a40d2 fetcht 4 ,mem_next_btclk 
+0f7e 98467e00 isub temp ,pdata 
+0f7f c1808000 rtnne 1 
+0f80 28203e00 compare type_null ,type ,0x1f 
+0f81 24208f84 nbranch slave_conn_send_access ,true 
+0f82 6fe0801a fetch 1 ,mem_rx_type 
+0f83 207a0000 rtn blank 
+
+slave_conn_send_access:
+0f84 20400f72 call slave_send_access 
+
+transmit_packet:
+0f85 28203e10 compare type_id ,type ,0x1f 
+0f86 20208e79 branch end_of_packet ,true 
+0f87 1c230400 rshift bt_clk ,temp 
+0f88 18419c40 or temp ,0x40 ,white_init 
+
+transmit_packet_whitened:
+0f89 44b8c00e bpatch patch0e_1 ,mem_patch0e 
+0f8a 7823fc00 enable enable_white 
+0f8b 78257c00 enable enable_hec 
+0f8c 782dfc00 enable encode_fec1 
+0f8d 793f8010 set0 mark_longpacket ,mark 
+0f8e 18827e00 deposit am_addr 
+0f8f 08008603 inject mod ,3 
+0f90 18227e00 deposit type 
+0f91 08008604 inject mod ,4 
+0f92 6fe08048 fetch 1 ,mem_arq 
+0f93 08008004 inject bucket ,4 
+0f94 08008603 inject mod ,3 
+0f95 78247c00 enable enable_parity 
+0f96 08008608 inject mod ,8 
+0f97 784dfc00 disable encode_fec1 
+0f98 78447c00 disable enable_parity 
+0f99 78457c00 disable enable_hec 
+0f9a 793faa02 set0 psk3m ,radio_ctrl 
+0f9b d8400000 arg 0 ,temp 
+0f9c 204012ae call reserve_slot 
+0f9d 44b9400e bpatch patch0e_2 ,mem_patch0e 
+0f9e 18217e1f and type ,0x1f ,pdata 
+0f9f c0098fcd beq type_lmp ,transmit_lmp 
+0fa0 c0000e79 beq type_null ,end_of_packet 
+0fa1 c0008e79 beq type_poll ,end_of_packet 
+0fa2 c0010fae beq type_fhs ,transmit_fhs 
+0fa3 c0018fdc beq type_dm1 ,transmit_dm1 
+0fa4 c0020fe2 beq type_dh1 ,transmit_dh1 
+0fa5 c0040fe1 beq type_3dh1 ,transmit_3dh1 
+0fa6 d8400004 arg 4 ,temp 
+0fa7 204012ae call reserve_slot 
+0fa8 c0050fde beq type_dm3 ,transmit_dm3 
+0fa9 c0058fe4 beq type_dh3 ,transmit_dh3 
+0faa d8400008 arg 8 ,temp 
+0fab 204012ae call reserve_slot 
+0fac c0078fe4 beq type_dh5 ,transmit_dh5 
+0fad 20200fde branch transmit_dm5 
+
+transmit_fhs:
+0fae 44b9c00e bpatch patch0e_3 ,mem_patch0e 
+0faf 6fe080e6 fetch 1 ,mem_fhs_am_addr 
+0fb0 1fe20800 icopy am_addr 
+0fb1 6fe0808e fetch 1 ,mem_fhs_misc 
+0fb2 1fe23800 icopy fhs_misc 
+0fb3 6fe1c0b2 fetch 3 ,mem_class 
+0fb4 1fe23a00 icopy fhs_class 
+0fb5 6fe140ac fetch 2 ,mem_nap 
+0fb6 1fe25c00 icopy nap 
+0fb7 7824fc00 enable enable_crc 
+0fb8 782e7c00 enable encode_fec2 
+0fb9 1c022200 copy bt_adr ,rega 
+0fba 20401133 call fetch_self_bt_adr 
+0fbb 782afc00 pulse recalc 
+0fbc 20000020 nop 32 
+0fbd 1c221600 copy bt_clk ,timeup 
+0fbe 6fe200b1 fetch 4 ,mem_clkn_bt 
+0fbf 1fe24200 icopy bt_clk 
+0fc0 53c07e00 preload fhs0 
+0fc1 79207e3a set1 58 ,pdata 
+0fc2 08008648 inject mod ,72 
+0fc3 53e07e00 preload fhs1 
+0fc4 08008648 inject mod ,72 
+0fc5 19624200 copy timeup ,bt_clk 
+0fc6 1a224000 copy rega ,bt_adr 
+0fc7 78247c00 enable enable_parity 
+0fc8 08008610 inject mod ,16 
+0fc9 78447c00 disable enable_parity 
+0fca 20200e79 branch end_of_packet 
+
+transmit_lmp_ccm:
+0fcb 78477c00 disable encrypt 
+0fcc 20200fd1 branch transmit_lmp_common 
+
+transmit_lmp:
+0fcd 44ba400e bpatch patch0e_4 ,mem_patch0e 
+0fce 20400dda call check_enc_ccm 
+0fcf 243a0fcb nbranch transmit_lmp_ccm ,blank 
+0fd0 78277c00 enable encrypt 
+
+transmit_lmp_common:
+0fd1 7824fc00 enable enable_crc 
+0fd2 782e7c00 enable encode_fec2 
+0fd3 6fe0838a fetch 1 ,mem_lmo_header_length 
+0fd4 1fe105f8 and pdata ,0x1f8 ,temp 
+0fd5 d8c0038a arg mem_lmo_header_length ,contr 
+0fd6 18408408 increase 8 ,temp 
+0fd7 18497200 rshift3 temp ,loopcnt 
+
+transmit_lmp_loop:
+0fd8 efe08006 ifetch 1 ,contr 
+0fd9 08008608 inject mod ,8 
+0fda c2000fd8 loop transmit_lmp_loop 
+0fdb 2020100e branch transmit_end 
+
+transmit_dm1:
+0fdc 782e7c00 enable encode_fec2 
+0fdd 20200fe7 branch transmit_dmh 
+
+transmit_dm3:
+
+transmit_dm5:
+0fde 782e7c00 enable encode_fec2 
+0fdf 79200010 set1 mark_longpacket ,mark 
+0fe0 20200fe7 branch transmit_dmh 
+
+transmit_3dh1:
+0fe1 79202a02 set1 psk3m ,radio_ctrl 
+
+transmit_dh1:
+0fe2 782efc00 enable encode_fec0 
+0fe3 20200fe7 branch transmit_dmh 
+
+transmit_dh3:
+
+transmit_dh5:
+0fe4 79202a02 set1 psk3m ,radio_ctrl 
+0fe5 782efc00 enable encode_fec0 
+0fe6 79200010 set1 mark_longpacket ,mark 
+
+transmit_dmh:
+0fe7 44bac00e bpatch patch0e_5 ,mem_patch0e 
+0fe8 6fe0804d fetch 1 ,mem_state_map 
+0fe9 c3028ffc bbit0 smap_edr ,transmit_noedr 
+0fea 18267c03 sub type ,3 ,null 
+0feb 20210ffc branch transmit_noedr ,positive 
+0fec 78477c00 disable encrypt 
+0fed 784e7c00 disable encode_fec2 
+0fee 782efc00 enable encode_fec0 
+0fef 7843fc00 disable enable_white 
+0ff0 79202a01 set1 psk ,radio_ctrl 
+0ff1 2aaffe02 isolate1 psk3m ,radio_ctrl 
+0ff2 20208ff6 branch transmit_edr3m ,true 
+0ff3 580abeee setarg 0xabeee 
+0ff4 08008614 inject mod ,20 
+0ff5 20200ffa branch transmit_edr_sync_end 
+
+transmit_edr3m:
+0ff6 585faeba setarg 0x5faeba 
+0ff7 08008618 inject mod ,24 
+0ff8 58000012 setarg 0x12 
+0ff9 08008606 inject mod ,6 
+
+transmit_edr_sync_end:
+0ffa 7823fc00 enable enable_white 
+0ffb 79200010 set1 mark_longpacket ,mark 
+
+transmit_noedr:
+0ffc 78277c00 enable encrypt 
+0ffd 7824fc00 enable enable_crc 
+0ffe c502901c bmark1 mark_loopback ,transmit_loopback 
+0fff 6fe0c1e8 fetch 1 ,mem_tx_lch 
+1000 08008603 inject mod ,3 
+1001 6fe141e9 fetch 2 ,mem_tx_len 
+1002 98007200 iforce loopcnt 
+1003 c5081006 bmark1 mark_longpacket ,transmit_long 
+1004 08008605 inject mod ,5 
+1005 20201007 branch transmit_stuff 
+
+transmit_long:
+1006 0800860d inject mod ,13 
+
+transmit_stuff:
+1007 1f227e00 deposit loopcnt 
+1008 203a100e branch transmit_end ,blank 
+1009 6fe100bf fetch 2 ,mem_txptr 
+100a 98000c00 iforce contr 
+
+transmit_stuff_loop:
+100b efe08006 ifetch 1 ,contr 
+100c 08008608 inject mod ,8 
+100d c200100b loop transmit_stuff_loop 
+
+transmit_end:
+100e 44bb400e bpatch patch0e_6 ,mem_patch0e 
+100f 20400dda call check_enc_ccm 
+1010 203a1013 branch transmit_end2 ,blank 
+1011 6fe2026f fetch 4 ,mem_le_mic 
+1012 08008620 inject mod ,32 
+
+transmit_end2:
+1013 78247c00 enable enable_parity 
+1014 08008610 inject mod ,16 
+1015 78447c00 disable enable_parity 
+1016 20400ce5 call set_wait_ack 
+1017 6fe0804d fetch 1 ,mem_state_map 
+1018 c3028e79 bbit0 smap_edr ,end_of_packet 
+1019 18007e00 force 0 ,pdata 
+101a 08008606 inject mod ,6 
+101b 20200e79 branch end_of_packet 
+
+transmit_loopback:
+101c 44bbc00e bpatch patch0e_7 ,mem_patch0e 
+101d c5081024 bmark1 mark_longpacket ,transmit_loopback_long 
+
+transmit_loopback_short:
+101e 6fe080e5 fetch 1 ,mem_lch_code 
+101f 08008603 inject mod ,3 
+1020 6fe080af fetch 1 ,mem_len 
+1021 98002600 iforce regc 
+1022 08008605 inject mod ,5 
+1023 20201029 branch transmit_loopback_cont 
+
+transmit_loopback_long:
+1024 6fe080e5 fetch 1 ,mem_lch_code 
+1025 08008603 inject mod ,3 
+1026 6fe100af fetch 2 ,mem_len 
+1027 98002600 iforce regc 
+1028 0800860d inject mod ,13 
+
+transmit_loopback_cont:
+1029 d8c000cf arg mem_rxbuf ,contr 
+
+transmit_loopback_loop:
+102a 1a627c00 copy regc ,null 
+102b 20229030 branch transmit_loopback_end ,zero 
+102c efe08006 ifetch 1 ,contr 
+102d 08008608 inject mod ,8 
+102e 1a60a7ff increase -1 ,regc 
+102f 2020102a branch transmit_loopback_loop 
+
+transmit_loopback_end:
+1030 6fe109fc fetch 2 ,mem_tst_pktcnt_dmh 
+1031 1fe0fe01 increase 1 ,pdata 
+1032 67e109fc store 2 ,mem_tst_pktcnt_dmh 
+1033 2020100e branch transmit_end 
+
+apply_switch_clke:
+1034 6fe200b5 fetch 4 ,mem_clke_bt 
+1035 1fe0a207 add pdata ,7 ,rega 
+1036 6fe100c1 fetch 2 ,mem_slot_offset 
+1037 243a103a nbranch apply_switch_nozero ,blank 
+1038 1a20a3fd increase -3 ,rega 
+1039 20201042 branch apply_switch_wait_loop 
+
+apply_switch_nozero:
+103a 1feffe0c mul32 pdata ,12 ,pdata 
+103b 68590040 fetcht 2 ,core_halfslot 
+103c 18408401 increase 1 ,temp 
+
+apply_switch_loop:
+103d 98467e00 isub temp ,pdata 
+103e 24211041 nbranch apply_switch_bt ,positive 
+103f 1a20a3ff increase -1 ,rega 
+1040 2020103d branch apply_switch_loop 
+
+apply_switch_bt:
+1041 1fe67e00 sub pdata ,0 ,pdata 
+
+apply_switch_wait_loop:
+1042 37d18200 until null ,oneslot 
+1043 2c400600 compare 0 ,clkn_bt ,3 
+1044 24209042 nbranch apply_switch_wait_loop ,true 
+1045 98005200 iforce clke_rt 
+1046 1a225000 copy rega ,clke_bt 
+1047 98005200 iforce clke_rt 
+1048 20600000 rtn 
+
+calc_slot_offset:
+1049 44bc400f bpatch patch0f_0 ,mem_patch0f 
+104a 37d10200 until null ,halfslot 
+104b 1b427e00 deposit clke 
+104c 98000c00 iforce contr 
+104d 1ff17e00 rshift16 ,pdata ,pdata 
+104e 9c467200 isub clkn_bt ,loopcnt 
+104f 1f217203 and_into 3 ,loopcnt 
+1050 24229053 nbranch calc_bt_portion ,zero 
+1051 18007e00 force 0 ,pdata 
+1052 20201057 branch calc_skip_bt 
+
+calc_bt_portion:
+1053 68490163 fetcht 2 ,mem_param_rt_rthalfslot 
+1054 18007e00 force 0 ,pdata 
+
+calc_slot_offset_loop:
+1055 9840fe00 iadd temp ,pdata 
+1056 c2001055 loop calc_slot_offset_loop 
+
+calc_skip_bt:
+1057 98c0fe00 iadd contr ,pdata 
+1058 1fe6fc0c div pdata ,12 
+1059 20407dfa call get_div_result 
+105a 67e100c1 store 2 ,mem_slot_offset 
+105b 20600000 rtn 
+
+calc_clke_offset:
+105c 44bcc00f bpatch patch0f_1 ,mem_patch0f 
+105d 1b427e00 deposit clke 
+105e 1b220400 copy clkn ,temp 
+105f 98467c00 isub temp ,null 
+1060 7d217e2c nsetflag positive ,44 ,pdata 
+1061 98460400 isub temp ,temp 
+1062 6fe10163 fetch 2 ,mem_param_rt_rthalfslot 
+1063 284c000f isolate0 15 ,temp 
+1064 2020906a branch calc_clke_pos ,true 
+1065 18426000 copy temp ,alarm 
+1066 d8410000 arg 0x10000 ,temp 
+1067 6fe10163 fetch 2 ,mem_param_rt_rthalfslot 
+1068 98467e00 isub temp ,pdata 
+1069 9e008400 iadd alarm ,temp 
+
+calc_clke_pos:
+106a 604b028f storet 6 ,mem_le_clk_offset 
+106b 207b0000 rtn le 
+106c 604b0039 storet 6 ,mem_clk_offset 
+106d 20600000 rtn 
+
+calc_clke:
+106e 78587c00 disable clknt 
+106f 6fe3028f fetch 6 ,mem_le_clk_offset 
+1070 203b1072 branch calc_clke2 ,le 
+1071 6fe30039 fetch 6 ,mem_clk_offset 
+
+calc_clke2:
+1072 9b20e000 iadd clkn ,alarm 
+1073 1e00e00a increase 10 ,alarm 
+1074 6fe10163 fetch 2 ,mem_param_rt_rthalfslot 
+1075 9e067e00 isub alarm ,pdata 
+1076 2fec000f isolate0 15 ,pdata 
+1077 2020907e branch calc_clke_pos_adj ,true 
+1078 58010000 setarg 0x10000 
+1079 6b010163 fetchr regd ,2 ,mem_param_rt_rthalfslot 
+107a 9b067e00 isub regd ,pdata 
+107b 9e00e000 iadd alarm ,alarm 
+
+calc_clke_pos2:
+107c 1e023400 copy alarm ,clke 
+107d 20600000 rtn 
+
+calc_clke_pos_adj:
+107e 18007c00 force 0 ,null 
+107f 2020107c branch calc_clke_pos2 
+
+calc_mod_value_scale:
+1080 203b10a8 branch calc_mod_value_scale_le2 ,le 
+1081 58402c17 setarg 0x402c17 
+1082 67e189ee store 3 ,mem_scale_ratio 
+1083 19317e00 rshift16 access ,pdata 
+1084 1fe90400 rshift3 pdata ,temp 
+1085 df200030 arg 48 ,loopcnt 
+
+calc_mod_value_scale_do:
+1086 58000000 setarg 0 
+1087 67e189f1 store 3 ,mem_xcnt 
+
+calc_mod_vs_loop:
+1088 18437e00 rshift temp ,pdata 
+1089 9842fe00 ixor temp ,pdata 
+108a 1fe17e03 and_into 3 ,pdata 
+108b c300908d bbit0 1 ,calc_mod_vs01 
+108c 1fe0ffff pincrease -1 
+
+calc_mod_vs01:
+108d d8a009f1 arg mem_xcnt ,contw 
+108e 98a08a00 iadd contw ,contw 
+108f efe08005 ifetch 1 ,contw 
+1090 1fe0fe01 pincrease 1 
+1091 e7e08005 istore 1 ,contw 
+1092 18430400 rshift temp ,temp 
+1093 c2001088 loop calc_mod_vs_loop 
+1094 da2009f3 arg mem_xcnt + 2 ,rega 
+1095 da4009ee arg mem_scale_ratio ,regb 
+1096 da600000 arg 0 ,regc 
+1097 df200003 arg 3 ,loopcnt 
+
+calc_mod_vs_loop2:
+1098 efe08011 ifetch 1 ,rega 
+1099 e8408012 ifetcht 1 ,regb 
+109a 984ffe00 imul32 temp ,pdata 
+109b 9a60a600 iadd regc ,regc 
+109c 1a20a3ff increase -1 ,rega 
+109d 1a40a401 increase 1 ,regb 
+109e c2001098 loop calc_mod_vs_loop2 
+109f 6fe089ef fetch 1 ,mem_scale_ratio + 1 
+10a0 1fed7e00 lshift8 pdata ,pdata 
+10a1 1ff27e00 lshift4 pdata ,pdata 
+10a2 9a66fc00 idiv regc 
+10a3 20407dfd call wait_div_end 
+10a4 1807fe00 quotient pdata 
+10a5 67f10938 store 2 ,mod_value_scale1 
+10a6 67e109f4 store 2 ,mem_scale_ratio_temp 
+10a7 20600000 rtn 
+
+calc_mod_value_scale_le2:
+10a8 6fe109f4 fetch 2 ,mem_scale_ratio_temp 
+10a9 67f10938 store 2 ,mod_value_scale1 
+10aa 20600000 rtn 
+
+calc_mod_value_scale_le:
+10ab 58402d19 setarg 0x402d19 
+10ac 67e189ee store 3 ,mem_scale_ratio 
+10ad 192f7e00 rshift32 access ,pdata 
+10ae 1fe90400 rshift3 pdata ,temp 
+10af df200020 arg 32 ,loopcnt 
+10b0 20201086 branch calc_mod_value_scale_do 
+
+calc_radio_freq:
+10b1 44bd400f bpatch patch0f_2 ,mem_patch0f 
+10b2 20401165 call set_sync_on 
+10b3 1c227e00 copy bt_clk ,pdata 
+10b4 1fe17f80 and_into 0x180 ,pdata 
+10b5 2c800e03 compare 3 ,freq_mode ,0x07 
+10b6 242090ba nbranch freq_not_connection ,true 
+10b7 1fe97e00 rshift3 pdata ,pdata 
+10b8 9ae0fe00 iadd freq_index ,pdata 
+10b9 202010bb branch do_hop_mod_now 
+
+freq_not_connection:
+10ba 1ae27e00 copy freq_index ,pdata 
+
+do_hop_mod_now:
+10bb 1fe6fc4f div pdata ,79 
+10bc 782afc00 pulse recalc 
+10bd 20407dfd call wait_div_end 
+10be 18072200 remainder rega 
+10bf 1a2085d8 add rega ,-40 ,temp 
+10c0 202110c3 branch odd_half ,positive 
+10c1 1a238400 lshift rega ,temp 
+10c2 202010c5 branch freq_result 
+
+odd_half:
+10c3 18438400 lshift temp ,temp 
+10c4 18408401 increase 1 ,temp 
+
+freq_result:
+10c5 44bdc00f bpatch patch0f_3 ,mem_patch0f 
+10c6 6fe08032 fetch 1 ,mem_mode 
+10c7 c30190d6 bbit0 afh_change ,afh_process_con 
+
+afh_process_0:
+10c8 6fe240da fetch 4 ,mem_afh_instant 
+10c9 9c267c00 isub bt_clk ,null 
+10ca 202110d6 branch afh_process_con ,positive 
+10cb 204010f5 call afh_clear 
+10cc 6fe0c0e1 fetch 1 ,mem_afh_new_mod 
+10cd 207a0000 rtn blank 
+10ce 6fe08032 fetch 1 ,mem_mode 
+10cf 79207e02 set1 afh_enable ,pdata 
+10d0 67e08032 store 1 ,mem_mode 
+10d1 6fe2c0ef fetch 5 ,mem_afh_map_new 
+10d2 67e2c0e2 store 5 ,mem_afh_map_lo 
+10d3 efe28006 ifetch 5 ,contr 
+10d4 67e2c0e7 store 5 ,mem_afh_map_hi 
+10d5 204010fa call afh_process_freq_map 
+
+afh_process_con:
+10d6 6fe08032 fetch 1 ,mem_mode 
+10d7 c4010000 rtnbit0 afh_enable 
+10d8 2c2ffe01 isolate1 1 ,bt_clk 
+10d9 202090f2 branch afh_same_channel ,true 
+10da 18492200 rshift3 temp ,rega 
+10db 18410e07 and temp ,7 ,queue 
+10dc 580040e2 setarg mem_afh_map_lo 
+10dd 9a20a200 iadd rega ,rega 
+10de efe08011 ifetch 1 ,rega 
+10df afec0000 qisolate0 pdata 
+10e0 202090e3 branch afh_process_1 ,true 
+10e1 18427e00 deposit temp 
+10e2 202010ef branch afh_process_end 
+
+afh_process_1:
+10e3 6fe0c0ec fetch 1 ,mem_afh_used 
+10e4 98002400 iforce regb 
+10e5 1c227e00 deposit bt_clk 
+10e6 1fe17f80 and_into 0x180 ,pdata 
+10e7 1fe97e00 rshift3 pdata ,pdata 
+10e8 9ae0fe00 iadd freq_index ,pdata 
+10e9 9a46fc00 idiv regb 
+10ea 580040fa setarg mem_afh_map 
+10eb 20407dfd call wait_div_end 
+10ec 18072200 remainder rega 
+10ed 9a208c00 iadd rega ,contr 
+10ee efe08006 ifetch 1 ,contr 
+
+afh_process_end:
+10ef 67e0c0ed store 1 ,mem_afh_index 
+10f0 98000400 iforce temp 
+10f1 20600000 rtn 
+
+afh_same_channel:
+10f2 6fe0c0ed fetch 1 ,mem_afh_index 
+10f3 98000400 iforce temp 
+10f4 20600000 rtn 
+
+afh_clear:
+10f5 6fe08032 fetch 1 ,mem_mode 
+10f6 793ffe02 set0 afh_enable ,pdata 
+10f7 793ffe03 set0 afh_change ,pdata 
+10f8 67e08032 store 1 ,mem_mode 
+10f9 20600000 rtn 
+
+afh_process_freq_map:
+10fa 44be400f bpatch patch0f_4 ,mem_patch0f 
+10fb d8a040fa arg mem_afh_map ,contw 
+10fc 1800720a force 10 ,loopcnt 
+10fd 20407d25 call memset0 
+10fe d8a040fa arg mem_afh_map ,contw 
+10ff 18002600 force 0 ,regc 
+1100 18000e02 force 2 ,queue 
+
+process_freq_3:
+1101 6fe2c0e2 fetch 5 ,mem_afh_map_lo 
+1102 98000400 iforce temp 
+1103 28e1fe02 compare 2 ,queue ,0xff 
+1104 20209106 branch process_freq_1 ,true 
+1105 18430400 rshift temp ,temp 
+
+process_freq_1:
+1106 284c0000 isolate0 0 ,temp 
+1107 2020910a branch process_freq_0 ,true 
+1108 1a627e00 deposit regc 
+1109 e7e08005 istore 1 ,contw 
+
+process_freq_0:
+110a 184b0400 rshift2 temp ,temp 
+110b 1a60a602 increase 2 ,regc 
+110c 2a61fc28 compare 40 ,regc ,0xfe 
+110d 24209113 nbranch process_freq_2 ,true 
+110e 6fe2c0e7 fetch 5 ,mem_afh_map_hi 
+110f 98000400 iforce temp 
+1110 28e1fe02 compare 2 ,queue ,0xff 
+1111 20209113 branch process_freq_2 ,true 
+1112 18430400 rshift temp ,temp 
+
+process_freq_2:
+1113 1a667c4e sub regc ,78 ,null 
+1114 20211106 branch process_freq_1 ,positive 
+1115 18002601 force 1 ,regc 
+1116 18e08fff increase -1 ,queue 
+1117 24229101 nbranch process_freq_3 ,zero 
+1118 da2040fa arg mem_afh_map ,rega 
+1119 18a27e00 deposit contw 
+111a 9a267e00 isub rega ,pdata 
+111b 67e0c0ec store 1 ,mem_afh_used 
+111c 20600000 rtn 
+
+rx_radio_freq:
+111d 44bec00f bpatch patch0f_5 ,mem_patch0f 
+111e 204010b1 call calc_radio_freq 
+111f 6fe080e4 fetch 1 ,mem_debug_config 
+1120 c3029122 bbit0 debug_rx_fixed_freq ,rx_radio_freq_now 
+1121 684883a0 fetcht 1 ,mem_rx_fixed_freq 
+
+rx_radio_freq_now:
+1122 2020117e branch set_freq_rx 
+
+tx_radio_freq:
+1123 44bf400f bpatch patch0f_6 ,mem_patch0f 
+1124 204010b1 call calc_radio_freq 
+1125 6fe080e4 fetch 1 ,mem_debug_config 
+1126 c3021128 bbit0 debug_tx_fixed_freq ,tx_radio_freq_now 
+1127 6848839f fetcht 1 ,mem_tx_fixed_freq 
+
+tx_radio_freq_now:
+1128 202011d2 branch set_freq_tx 
+
+fetch_giac:
+1129 18005a00 force 0 ,uap 
+112a 6fe1c0af fetch 3 ,mem_glap 
+112b 98005800 iforce lap 
+112c 20600000 rtn 
+
+fetch_page_bt_adr:
+112d 44bfc00f bpatch patch0f_7 ,mem_patch0f 
+112e 6fe0c1e3 fetch 1 ,mem_hci_puap 
+112f 1fe25a00 icopy uap 
+1130 6fe1c1e0 fetch 3 ,mem_hci_plap 
+1131 1fe25800 icopy lap 
+1132 20600000 rtn 
+
+fetch_self_bt_adr:
+1133 44c04010 bpatch patch10_0 ,mem_patch10 
+1134 6fe140ac fetch 2 ,mem_nap 
+1135 1fe25c00 icopy nap 
+1136 6fe0c0ab fetch 1 ,mem_uap 
+1137 1fe25a00 icopy uap 
+1138 6fe1c0a8 fetch 3 ,mem_lap 
+1139 1fe25800 icopy lap 
+113a 20600000 rtn 
+
+fetch_extm_bt_adr:
+113b 44c0c010 bpatch patch10_1 ,mem_patch10 
+113c 6fe10045 fetch 2 ,mem_pnap 
+113d 1fe25c00 icopy nap 
+113e 6fe08044 fetch 1 ,mem_puap 
+113f 1fe25a00 icopy uap 
+1140 6fe18041 fetch 3 ,mem_plap 
+1141 1fe25800 icopy lap 
+1142 20600000 rtn 
+
+fetch_diac:
+1143 c5101146 bmark1 mark_all_diac ,fetch_diac_do 
+1144 c68e8000 rtnmark0 mark_inquiry_state 
+1145 c68f8000 rtnmark0 mark_periodical_diac 
+
+fetch_diac_do:
+1146 1d815900 and_into -256 ,lap 
+1147 782afc00 pulse recalc 
+1148 20000020 nop 32 
+1149 20600000 rtn 
+
+shutdown_radio:
+114a 44c14010 bpatch patch10_2 ,mem_patch10 
+114b 20404c9a call rf_debug_shutdown_radio_line 
+114c 2030914e branch shutdown_radio0 ,is_rx 
+114d 20401158 call shutdown_radio_tx_power 
+
+shutdown_radio0:
+114e 18002a08 force 0x08 ,radio_ctrl 
+114f 18002a00 force 0 ,radio_ctrl 
+1150 7850fc00 disable is_rx 
+1151 78507c00 disable is_tx 
+1152 782f7c00 pulse packet_end 
+1153 70890005 jam 0x5 ,modem_en 
+1154 20000002 nop 2 
+1155 70890000 jam 0x0 ,modem_en 
+1156 44c1c010 bpatch patch10_3 ,mem_patch10 
+1157 20600000 rtn 
+
+shutdown_radio_tx_power:
+1158 44c24010 bpatch patch10_4 ,mem_patch10 
+1159 20600000 rtn 
+
+set_cdb_on:
+115a 44c2c010 bpatch patch10_5 ,mem_patch10 
+115b 6fe0c4d0 fetch 1 ,mem_syn_cal_ctrl 
+115c 67f08a43 store 1 ,core_syn_cal_ctrl 
+115d 6ff08a0a fetch 1 ,core_rf_ldo_en0 
+115e 79207e06 set1 6 ,pdata 
+115f 67f08a0a store 1 ,core_rf_ldo_en0 
+1160 6ff08a16 fetch 1 ,core_syn_en 
+1161 79207e06 set1 6 ,pdata 
+1162 67f08a16 store 1 ,core_syn_en 
+1163 20000078 nop 120 
+1164 20600000 rtn 
+
+set_sync_on:
+1165 44c34010 bpatch patch10_6 ,mem_patch10 
+1166 70890005 jam 0x5 ,modem_en 
+1167 20000002 nop 2 
+1168 70890000 jam 0x0 ,modem_en 
+1169 6fe0c4cf fetch 1 ,mem_set_cdb_on 
+116a 245a115a ncall set_cdb_on ,blank 
+116b 6ff08a16 fetch 1 ,core_syn_en 
+116c 79207e06 set1 6 ,pdata 
+116d 67f08a16 store 1 ,core_syn_en 
+116e 6ff08a0a fetch 1 ,core_rf_ldo_en0 
+116f 1fe1fe30 or_into 0x30 ,pdata 
+1170 67f08a0a store 1 ,core_rf_ldo_en0 
+1171 20000078 nop 120 
+1172 6ff08a16 fetch 1 ,core_syn_en 
+1173 1fe1fe3f or_into 0x3f ,pdata 
+1174 1fe17efe and_into 0xfe ,pdata 
+1175 67f08a16 store 1 ,core_syn_en 
+1176 20000078 nop 120 
+1177 6ff08a11 fetch 1 ,core_rf_ldo_cfg5 
+1178 1fe17e3f and_into 0x3f ,pdata 
+1179 67f08a11 store 1 ,core_rf_ldo_cfg5 
+117a 6ff08a0a fetch 1 ,core_rf_ldo_en0 
+117b 793ffe07 set0 7 ,pdata 
+117c 67f08a0a store 1 ,core_rf_ldo_en0 
+117d 20600000 rtn 
+
+set_freq_rx:
+117e 44c3c010 bpatch patch10_7 ,mem_patch10 
+117f 6ff08a3d fetch 1 ,core_syn_top_ctrl 
+1180 1fe17ee0 and_into 0xe0 ,pdata 
+1181 1fe1fe06 or_into 0x06 ,pdata 
+1182 67f08a3d store 1 ,core_syn_top_ctrl 
+1183 6ff08a3e fetch 1 ,core_syn_mmd_cp_ctrl 
+1184 1fe17ee0 and_into 0xe0 ,pdata 
+1185 67f08a3e store 1 ,core_syn_mmd_cp_ctrl 
+1186 708a8403 jam 0x03 ,core_syn_cp_lpf_cfg 
+1187 708a874a jam 0x4a ,core_syn_afc_cfg1 
+1188 708a8940 jam 0x40 ,core_syn_afc_cfg3 
+1189 60488017 storet 1 ,mem_last_freq 
+118a 1840a3fe add temp ,-2 ,rega 
+118b c516918d bmark1 mark_ble_2m ,set_rxfreq_2m_offset 
+118c 1840a3ff add temp ,-1 ,rega 
+
+set_rxfreq_2m_offset:
+118d 204011bd call rf_rx_write_freq 
+118e 6ff08a43 fetch 1 ,core_syn_cal_ctrl 
+118f 1fe17ef0 and_into 0xf0 ,pdata 
+1190 67f08a43 store 1 ,core_syn_cal_ctrl 
+1191 2000000c nop 12 
+1192 6ff08a43 fetch 1 ,core_syn_cal_ctrl 
+1193 1fe1fe0c or_into 0x0c ,pdata 
+1194 67f08a43 store 1 ,core_syn_cal_ctrl 
+1195 2000000c nop 12 
+1196 6ff08a43 fetch 1 ,core_syn_cal_ctrl 
+1197 1fe1fe07 or_into 0x07 ,pdata 
+1198 67f08a43 store 1 ,core_syn_cal_ctrl 
+1199 20201080 branch calc_mod_value_scale 
+
+rf_rx_enable:
+119a 44c44011 bpatch patch11_0 ,mem_patch11 
+119b 20404c97 call rf_debug_rx_on_line 
+119c 708a6d05 jam 0x05 ,core_rx_bq_cfg0 
+119d 6ff08a12 fetch 1 ,core_rf_ldo_cfg6 
+119e 1fe1fe07 or_into 0x07 ,pdata 
+119f 1fe17efd and_into 0xfd ,pdata 
+11a0 67f08a12 store 1 ,core_rf_ldo_cfg6 
+11a1 6ff08a0a fetch 1 ,core_rf_ldo_en0 
+11a2 1fe1fe0f or_into 0x0f ,pdata 
+11a3 67f08a0a store 1 ,core_rf_ldo_en0 
+11a4 6ff08a0b fetch 1 ,core_rf_ldo_en1 
+11a5 79207e02 set1 2 ,pdata 
+11a6 67f08a0b store 1 ,core_rf_ldo_en1 
+11a7 20000078 nop 120 
+11a8 6ff08a17 fetch 1 ,core_rx_en0 
+11a9 1fe1fe1f or_into 0x1f ,pdata 
+11aa 67f08a17 store 1 ,core_rx_en0 
+11ab 6ff08a18 fetch 1 ,core_rx_en1 
+11ac 1fe1fef8 or_into 0xf8 ,pdata 
+11ad 67f08a18 store 1 ,core_rx_en1 
+11ae 6ff08a19 fetch 1 ,core_tx_en0 
+11af 1fe17ee3 and_into 0xe3 ,pdata 
+11b0 1fe1fe18 or_into 0x18 ,pdata 
+11b1 67f08a19 store 1 ,core_tx_en0 
+11b2 20000078 nop 120 
+11b3 708a1000 jam 0 ,core_rf_ldo_cfg4 
+11b4 6ff08a11 fetch 1 ,core_rf_ldo_cfg5 
+11b5 79207e04 set1 4 ,pdata 
+11b6 793ffe05 set0 5 ,pdata 
+11b7 67f08a11 store 1 ,core_rf_ldo_cfg5 
+11b8 2000000a nop 10 
+11b9 70890004 jam 0x04 ,modem_en 
+11ba 20000002 nop 2 
+11bb 7089000c jam 0x0c ,modem_en 
+11bc 20600000 rtn 
+
+rf_rx_write_freq:
+11bd 44c4c011 bpatch patch11_1 ,mem_patch11 
+11be 58000960 setarg 2400 
+11bf 9a20fe00 iadd rega ,pdata 
+11c0 6848c1ee fetcht 1 ,mem_xtal_freq 
+11c1 202011c8 branch rf_write_freq_calc 
+
+rf_tx_write_freq:
+11c2 44c54011 bpatch patch11_2 ,mem_patch11 
+11c3 58000960 setarg 2400 
+11c4 9a20fe00 iadd rega ,pdata 
+11c5 1fe3fe00 lshift pdata ,pdata 
+11c6 6848c1ee fetcht 1 ,mem_xtal_freq 
+11c7 184f8403 mul32 temp ,0x03 ,temp 
+
+rf_write_freq_calc:
+11c8 9846fc00 idiv temp 
+11c9 20407dfd call wait_div_end 
+11ca 1807a200 quotient rega 
+11cb 18077e00 remainder pdata 
+11cc 1ff07e00 lshift16 pdata ,pdata 
+11cd 1fed7e00 lshift8 pdata ,pdata 
+11ce 1fed7e00 lshift8 pdata ,pdata 
+11cf 9a21fe00 ior rega ,pdata 
+11d0 67f20a3f store 4 ,core_syn_divr_int 
+11d1 20600000 rtn 
+
+set_freq_tx:
+11d2 44c5c011 bpatch patch11_3 ,mem_patch11 
+11d3 6ff08a3d fetch 1 ,core_syn_top_ctrl 
+11d4 1fe17ee0 and_into 0xe0 ,pdata 
+11d5 1fe1fe19 or_into 0x19 ,pdata 
+11d6 67f08a3d store 1 ,core_syn_top_ctrl 
+11d7 6ff08a3e fetch 1 ,core_syn_mmd_cp_ctrl 
+11d8 1fe17ee0 and_into 0xe0 ,pdata 
+11d9 67f08a3e store 1 ,core_syn_mmd_cp_ctrl 
+11da 708a8403 jam 0x03 ,core_syn_cp_lpf_cfg 
+11db 708a874a jam 0x4a ,core_syn_afc_cfg1 
+11dc 708a8940 jam 0x40 ,core_syn_afc_cfg3 
+11dd 60488017 storet 1 ,mem_last_freq 
+11de 1840a200 add temp ,0 ,rega 
+11df 204011c2 call rf_tx_write_freq 
+11e0 6ff08a43 fetch 1 ,core_syn_cal_ctrl 
+11e1 1fe17ef0 and_into 0xf0 ,pdata 
+11e2 67f08a43 store 1 ,core_syn_cal_ctrl 
+11e3 2000000c nop 12 
+11e4 6ff08a43 fetch 1 ,core_syn_cal_ctrl 
+11e5 1fe1fe0c or_into 0x0c ,pdata 
+11e6 67f08a43 store 1 ,core_syn_cal_ctrl 
+11e7 2000000c nop 12 
+11e8 6ff08a43 fetch 1 ,core_syn_cal_ctrl 
+11e9 1fe1fe07 or_into 0x07 ,pdata 
+11ea 67f08a43 store 1 ,core_syn_cal_ctrl 
+11eb 6fe1015d fetch 2 ,mem_param_pll_setup 
+11ec 20401322 call sleep 
+
+txon:
+11ed 44c64011 bpatch patch11_4 ,mem_patch11 
+11ee 6ff08a39 fetch 1 ,core_tx_pwr_ctrl0 
+11ef 1fe17ec0 and_into 0xc0 ,pdata 
+11f0 1fe1fe28 or_into 0x28 ,pdata 
+11f1 67f08a39 store 1 ,core_tx_pwr_ctrl0 
+11f2 6ff08a3a fetch 1 ,core_tx_pwr_ctrl1 
+11f3 1fe17ef0 and_into 0xf0 ,pdata 
+11f4 1fe1fe08 or_into 0x08 ,pdata 
+11f5 67f08a3a store 1 ,core_tx_pwr_ctrl1 
+11f6 6ff08a14 fetch 1 ,core_rf_ldo_cfg8 
+11f7 1fe17ee0 and_into 0xe0 ,pdata 
+11f8 1fe1fe03 or_into 0x03 ,pdata 
+11f9 67f08a14 store 1 ,core_rf_ldo_cfg8 
+11fa 6ff08a15 fetch 1 ,core_rf_ldo_cfg9 
+11fb 1fe17ef0 and_into 0xf0 ,pdata 
+11fc 1fe1fe07 or_into 0x07 ,pdata 
+11fd 67f08a15 store 1 ,core_rf_ldo_cfg9 
+11fe 6ff08a12 fetch 1 ,core_rf_ldo_cfg6 
+11ff 1fe17ef8 and_into 0xf8 ,pdata 
+1200 67f08a12 store 1 ,core_rf_ldo_cfg6 
+1201 6ff08a0a fetch 1 ,core_rf_ldo_en0 
+1202 1fe17ef0 and_into 0xf0 ,pdata 
+1203 1fe1fe0d or_into 0x0d ,pdata 
+1204 67f08a0a store 1 ,core_rf_ldo_en0 
+1205 6ff08a0b fetch 1 ,core_rf_ldo_en1 
+1206 1fe1fe07 or_into 0x07 ,pdata 
+1207 67f08a0b store 1 ,core_rf_ldo_en1 
+1208 20000078 nop 120 
+1209 6ff08a19 fetch 1 ,core_tx_en0 
+120a 1fe17ee0 and_into 0xe0 ,pdata 
+120b 1fe1fe0d or_into 0x0d ,pdata 
+120c 67f08a19 store 1 ,core_tx_en0 
+120d 708a1ad9 jam 0xd9 ,core_tx_en1 
+120e 20000078 nop 120 
+120f 708a1000 jam 0 ,core_rf_ldo_cfg4 
+1210 6ff08a11 fetch 1 ,core_rf_ldo_cfg5 
+1211 1fe17ec3 and_into 0xc3 ,pdata 
+1212 1fe1fe10 or_into 0x10 ,pdata 
+1213 67f08a11 store 1 ,core_rf_ldo_cfg5 
+1214 20000078 nop 120 
+1215 6ff08a1a fetch 1 ,core_tx_en1 
+1216 79207e05 set1 5 ,pdata 
+1217 67f08a1a store 1 ,core_tx_en1 
+1218 2000000a nop 10 
+1219 70890001 jam 0x01 ,modem_en 
+121a 20000002 nop 2 
+121b 70890003 jam 0x03 ,modem_en 
+
+txon_power_select:
+121c 44c6c011 bpatch patch11_5 ,mem_patch11 
+121d 20600000 rtn 
+
+initialize_radio:
+121e 70804206 jam clksel_rc ,core_clksel 
+
+initialize_radio_wait:
+121f 6fe140cb fetch 2 ,mem_rf_init_ptr 
+1220 c307121f bbit0 14 ,initialize_radio_wait 
+1221 98000c00 iforce contr 
+1222 d8408900 arg 0x8900 ,temp 
+
+initialize_radio_loop:
+1223 efe08006 ifetch 1 ,contr 
+1224 c07f9229 beq 0xff ,initialize_radio_cont 
+1225 98418a00 ior temp ,contw 
+1226 efe08006 ifetch 1 ,contr 
+1227 e7e08005 istore 1 ,contw 
+1228 20201223 branch initialize_radio_loop 
+
+initialize_radio_cont:
+1229 44c74011 bpatch patch11_6 ,mem_patch11 
+122a 204014c7 call lpm_cal_xtal_startup 
+122b 20401246 call switchto_dpllclk 
+122c 7041ed0c jam system_clk_12m ,mem_system_clk 
+122d 6fe10161 fetch 2 ,mem_param_dpll_start_delay 
+122e 9c40fe00 iadd clkn_bt ,pdata 
+122f 67e200b9 store 4 ,mem_dpll_clkn 
+1230 79202a03 set1 reset ,radio_ctrl 
+1231 18002a00 force 0 ,radio_ctrl 
+1232 24559234 ncall do_rccal ,wake 
+1233 20201236 branch set_rccal 
+
+do_rccal:
+1234 44c7c011 bpatch patch11_7 ,mem_patch11 
+1235 20600000 rtn 
+
+set_rccal:
+1236 44c84012 bpatch patch12_0 ,mem_patch12 
+1237 20600000 rtn 
+
+save_rssi:
+1238 44c8c012 bpatch patch12_1 ,mem_patch12 
+1239 6ff089a0 fetch 1 ,modem_rssi 
+123a 1fe67e00 sub pdata ,0 ,pdata 
+123b 67e08019 store 1 ,mem_rssi_hex 
+123c 2040123f call bcd 
+123d 67e08018 store 1 ,mem_rssi 
+123e 20600000 rtn 
+
+bcd:
+123f 1fe17eff and_into 0xff ,pdata 
+1240 1fe6fc0a div pdata ,10 
+1241 20407dfa call get_div_result 
+1242 1ff27e00 lshift4 pdata ,pdata 
+1243 18070400 remainder temp 
+1244 9841fe00 ior temp ,pdata 
+1245 20600000 rtn 
+
+switchto_dpllclk:
+1246 44c94012 bpatch patch12_2 ,mem_patch12 
+1247 70804206 jam clksel_rc ,core_clksel 
+1248 2040124d call dpll_en 
+1249 70804205 jam clksel_dpll ,core_clksel 
+124a 20000001 nop 1 
+124b 70804204 jam clksel_xtal ,core_clksel 
+124c 20600000 rtn 
+
+dpll_en:
+124d 44c9c012 bpatch patch12_3 ,mem_patch12 
+124e 6ff08a09 fetch 1 ,core_clkpll_cfg6 
+124f 6848c1ee fetcht 1 ,mem_xtal_freq 
+1250 18467c18 sub temp ,24 ,null 
+1251 7d217e00 nsetflag positive ,0 ,pdata 
+1252 67f08a09 store 1 ,core_clkpll_cfg6 
+1253 58000060 setarg 96 
+1254 6848c1ee fetcht 1 ,mem_xtal_freq 
+1255 18467c18 sub temp ,24 ,null 
+1256 20211258 branch clkpll_config ,positive 
+1257 58000080 setarg 128 
+
+clkpll_config:
+1258 44ca4012 bpatch patch12_4 ,mem_patch12 
+1259 6848c1ee fetcht 1 ,mem_xtal_freq 
+125a 9846fc00 idiv temp 
+125b 20407dfd call wait_div_end 
+125c 1807a200 quotient rega 
+125d 18077e00 remainder pdata 
+125e 1ff07e00 lshift16 pdata ,pdata 
+125f 1ff27e00 lshift4 pdata ,pdata 
+1260 67f18a05 store 3 ,core_clkpll_cfg2 
+1261 1a227e00 copy rega ,pdata 
+1262 67f08a08 store 1 ,core_clkpll_cfg5 
+1263 6ff08a01 fetch 1 ,core_clkpll_ctrl1 
+1264 1fe1fe07 or_into 0x07 ,pdata 
+1265 67f08a01 store 1 ,core_clkpll_ctrl1 
+1266 20000078 nop 120 
+1267 6ff08a00 fetch 1 ,core_clkpll_ctrl0 
+1268 1fe1fe03 or_into 0x03 ,pdata 
+1269 67f08a00 store 1 ,core_clkpll_ctrl0 
+126a 2000000c nop 12 
+126b 6ff08a01 fetch 1 ,core_clkpll_ctrl1 
+126c 1fe1fe78 or_into 0x78 ,pdata 
+126d 67f08a01 store 1 ,core_clkpll_ctrl1 
+126e 200000f0 nop 240 
+126f 6ff08a03 fetch 1 ,core_clkpll_cfg0 
+1270 793ffe04 set0 4 ,pdata 
+1271 67f08a03 store 1 ,core_clkpll_cfg0 
+1272 20000168 nop 360 
+1273 20600000 rtn 
+
+xtal_fast_wake:
+1274 58000f0f setarg 0xf0f 
+1275 202014fa branch lpm_write_config 
+
+init_lpm_ctrl:
+1276 5800080f setarg 0x80f 
+1277 202014fa branch lpm_write_config 
+
+start_receiver:
+1278 44cac012 bpatch patch12_5 ,mem_patch12 
+1279 78507c00 disable is_tx 
+127a 7830fc00 enable is_rx 
+127b 782b7c00 pulse init_encrypt 
+127c 2020119a branch rf_rx_enable 
+
+prep_crypt:
+127d 44cb4012 bpatch patch12_6 ,mem_patch12 
+127e 20400dda call check_enc_ccm 
+127f 243a128d nbranch prep_crypt_ccm ,blank 
+1280 6fe0804d fetch 1 ,mem_state_map 
+1281 2feffe02 isolate1 smap_encryption ,pdata 
+1282 7920fe00 setflag true ,0 ,pdata 
+1283 67f08011 store 1 ,core_encrypt 
+1284 d8c00063 arg mem_kc ,contr 
+1285 efe48006 ifetch 9 ,contr 
+1286 98006400 iforce kc_ls 
+1287 efe38006 ifetch 7 ,contr 
+1288 98006600 iforce kc_ms 
+1289 6fe08055 fetch 1 ,mem_key_size 
+128a 1fe0e9ff add pdata ,-1 ,g1l 
+128b 782d7c00 pulse kc_p_activate 
+128c 20600000 rtn 
+
+prep_crypt_ccm:
+128d 70801100 jam 0 ,core_encrypt 
+128e 20600000 rtn 
+
+wait_access_end:
+128f 1b427e00 deposit clke 
+1290 67e30098 store 6 ,mem_sync_clke 
+1291 7846fc00 disable decode_fec0 
+1292 242c114a nbranch shutdown_radio ,sync 
+1293 6fe1015b fetch 2 ,mem_param_clke_cal 
+1294 1fe25200 copy pdata ,clke_rt 
+1295 1d00d001 increase 1 ,clke_bt 
+1296 1d0151fc and_into 0x1fc ,clke_bt 
+1297 20600000 rtn 
+
+wait_access_mhalfbnd:
+1298 7826fc00 enable decode_fec0 
+
+wait_access_mhalfbnd_correlate:
+1299 37cb8400 correlate null ,mhalfbnd 
+129a 202c128f branch wait_access_end ,sync 
+129b 2d000402 compare 0x02 ,clke_bt ,0x02 
+129c 24209299 nbranch wait_access_mhalfbnd_correlate ,true 
+129d 2020128f branch wait_access_end 
+
+wait_access_clkn_rt:
+129e 44cbc012 bpatch patch12_7 ,mem_patch12 
+129f 69610159 fetchr timeup ,2 ,mem_param_conn_access 
+12a0 7826fc00 enable decode_fec0 
+12a1 34730400 correlate clkn_rt ,meet 
+12a2 7846fc00 disable decode_fec0 
+12a3 242c114a nbranch shutdown_radio ,sync 
+12a4 20600000 rtn 
+
+wait_access_forever:
+12a5 44cc4013 bpatch patch13_0 ,mem_patch13 
+12a6 7826fc00 enable decode_fec0 
+12a7 37c18400 correlate null ,timeout 
+12a8 7846fc00 disable decode_fec0 
+12a9 242c114a nbranch shutdown_radio ,sync 
+12aa 6fe1015b fetch 2 ,mem_param_clke_cal 
+12ab 1fe25200 copy pdata ,clke_rt 
+12ac 1d0151fc and_into 0x1fc ,clke_bt 
+12ad 20600000 rtn 
+
+reserve_slot:
+12ae 44ccc013 bpatch patch13_1 ,mem_patch13 
+12af 98002200 iforce rega 
+12b0 1c227e00 deposit bt_clk 
+12b1 98409600 iadd temp ,timeup 
+12b2 19627e00 copy timeup ,pdata 
+12b3 67e240d2 store 4 ,mem_next_btclk 
+12b4 1a227e00 deposit rega 
+12b5 20600000 rtn 
+
+ahead_window:
+12b6 1fe20400 copy pdata ,temp 
+12b7 44cd4013 bpatch patch13_2 ,mem_patch13 
+12b8 18427e00 copy temp ,pdata 
+12b9 20407dbf call clk2bt 
+12ba 1c307e00 lshift16 bt_clk ,pdata 
+12bb 79207e2c set1 44 ,pdata 
+12bc 20407da5 call clk_diff 
+12bd 793ffe2c set0 44 ,pdata 
+12be 2040130a call get_clk 
+12bf 20407da5 call clk_diff 
+12c0 20740000 rtn user 
+12c1 20407db2 call clk2rt 
+12c2 98003600 iforce stop_watch 
+12c3 37c18200 until null ,timeout 
+12c4 20600000 rtn 
+
+setup_clk:
+12c5 44cdc013 bpatch patch13_3 ,mem_patch13 
+12c6 203812ca branch setup_clkn ,clknt 
+12c7 35330200 until clke_rt ,meet 
+
+skip_setup_clke:
+12c8 1d020400 copy clke_bt ,temp 
+12c9 202012cd branch setup_clknbt 
+
+setup_clkn:
+12ca 203712cc branch skip_setup_clkn ,attempt 
+12cb 34730200 until clkn_rt ,meet 
+
+skip_setup_clkn:
+12cc 1c420400 copy clkn_bt ,temp 
+
+setup_clknbt:
+12cd 203412d9 branch setup_clk11 ,user 
+12ce 28400601 compare 1 ,temp ,3 
+12cf 242092c5 nbranch setup_clk ,true 
+
+setup_complete:
+12d0 44ce4013 bpatch patch13_4 ,mem_patch13 
+12d1 6fe08031 fetch 1 ,mem_state 
+12d2 c4000000 rtnbit0 state_inconn 
+12d3 6fe240d2 fetch 4 ,mem_next_btclk 
+12d4 98467e00 isub temp ,pdata 
+12d5 24610000 nrtn positive 
+12d6 1fe67cff sub pdata ,0xff ,null 
+12d7 202112c5 branch setup_clk ,positive 
+12d8 20600000 rtn 
+
+setup_clk11:
+12d9 28400603 compare 3 ,temp ,3 
+12da 242092c5 nbranch setup_clk ,true 
+12db 202012d0 branch setup_complete 
+
+rf_setup_time:
+12dc 44cec013 bpatch patch13_5 ,mem_patch13 
+12dd 69610157 fetchr timeup ,2 ,mem_param_rf_setup 
+12de 202012c5 branch setup_clk 
+
+rf_setup_time_slave_slot:
+12df 78547c00 disable user 
+12e0 202012dc branch rf_setup_time 
+
+rf_setup_time_master_slot:
+12e1 78347c00 enable user 
+12e2 202012dc branch rf_setup_time 
+
+start_transmitter:
+12e3 44cf4013 bpatch patch13_6 ,mem_patch13 
+12e4 2040127d call prep_crypt 
+12e5 7850fc00 disable is_rx 
+12e6 78307c00 enable is_tx 
+12e7 20600000 rtn 
+
+start_tx_native:
+12e8 44cfc013 bpatch patch13_7 ,mem_patch13 
+12e9 69610155 fetchr timeup ,2 ,mem_param_tx_setup 
+12ea 34730200 until clkn_rt ,meet 
+12eb 782b7c00 pulse init_encrypt 
+12ec 20600000 rtn 
+
+start_rx_native:
+12ed 44d04014 bpatch patch14_0 ,mem_patch14 
+12ee 6961015f fetchr timeup ,2 ,mem_param_rx_setup 
+12ef 34730200 until clkn_rt ,meet 
+12f0 20600000 rtn 
+
+start_tx_external:
+12f1 44d0c014 bpatch patch14_1 ,mem_patch14 
+12f2 69610155 fetchr timeup ,2 ,mem_param_tx_setup 
+12f3 35330200 until clke_rt ,meet 
+12f4 782b7c00 pulse init_encrypt 
+12f5 20600000 rtn 
+
+send_access_word:
+12f6 44d14014 bpatch patch14_2 ,mem_patch14 
+12f7 20404ca2 call rf_debug_tx_on_line 
+12f8 51207e00 preload access 
+12f9 782efc00 enable encode_fec0 
+12fa 79202a00 set1 txgfsk ,radio_ctrl 
+12fb 08008648 inject mod ,72 
+12fc 784efc00 disable encode_fec0 
+12fd 20600000 rtn 
+
+scan_mode_whiten:
+12fe 1ca20400 copy xin ,temp 
+12ff 18418460 or_into 0x60 ,temp 
+1300 18421c00 copy temp ,white_init 
+1301 20600000 rtn 
+
+get_free_amaddr:
+1302 44d1c014 bpatch patch14_3 ,mem_patch14 
+1303 6fe0c098 fetch 1 ,mem_current_amaddr 
+1304 1fe0fe01 increase 1 ,pdata 
+1305 c0839307 bne param_esco_addr ,get_free_amaddr_cont 
+1306 18007e01 force 1 ,pdata 
+
+get_free_amaddr_cont:
+1307 67e0c098 store 1 ,mem_current_amaddr 
+1308 98000800 iforce am_addr 
+1309 20600000 rtn 
+
+get_clk:
+130a 1b220400 copy clkn ,temp 
+130b 20748000 rtn master 
+130c 1b420400 copy clke ,temp 
+130d 20600000 rtn 
+
+get_clkbt:
+130e 1c427e00 deposit clkn_bt 
+130f 20748000 rtn master 
+1310 1d027e00 deposit clke_bt 
+1311 20600000 rtn 
+
+supervision_update:
+1312 44d24014 bpatch patch14_4 ,mem_patch14 
+1313 684a004e fetcht 4 ,mem_supervision_timer 
+1314 2040130e call get_clkbt 
+1315 98461600 isub temp ,timeup 
+1316 19627e00 deposit timeup 
+1317 68490052 fetcht 2 ,mem_supervision_to 
+1318 18438400 lshift temp ,temp 
+1319 98467e00 isub temp ,pdata 
+131a 20600000 rtn 
+
+supervision_flush:
+131b 44d2c014 bpatch patch14_5 ,mem_patch14 
+131c 2040130e call get_clkbt 
+131d 67e2004e store 4 ,mem_supervision_timer 
+131e 20600000 rtn 
+
+assert:
+131f 44d34014 bpatch patch14_6 ,mem_patch14 
+1320 2020131f branch assert 
+
+loop:
+1321 20201321 branch loop 
+
+sleep:
+1322 207a0000 rtn blank 
+1323 1fe37e00 rshift pdata ,pdata 
+1324 1fe0fffd increase -3 ,pdata 
+
+sleep_loop:
+1325 1fe0ffff increase -1 ,pdata 
+1326 24229325 nbranch sleep_loop ,zero 
+1327 18007e00 force 0 ,pdata 
+1328 20600000 rtn 
+
+init_param:
+1329 df200010 arg 0x10 ,loopcnt 
+132a d8a00000 arg 0 ,contw 
+132b 20407d25 call memset0 
+132c d8a00287 arg mem_le_state ,contw 
+132d df20000a arg 10 ,loopcnt 
+132e 20407d25 call memset0 
+132f 70087400 jam 0 ,mem_sp_calc 
+1330 70095b00 jam 0 ,mem_fifo_temp 
+1331 7002df00 jam 0 ,mem_le_testtype 
+1332 7000e400 jam 0 ,mem_debug_config 
+1333 7003a500 jam 0 ,mem_lmp_conn_state 
+1334 44d3c014 bpatch patch14_7 ,mem_patch14 
+1335 7000bd00 jam 0 ,mem_connection_options 
+1336 700a5100 jam 0 ,mem_tester_emulate 
+1337 700a5c00 jam 0 ,mem_tester_cnt 
+1338 589e8b33 setarg param_glap 
+1339 67e1c0af store 3 ,mem_glap 
+133a 70008e60 jam 0x60 ,mem_fhs_misc 
+133b 7040d805 jam param_max_slot ,mem_max_slot 
+133c 70001402 jam 0x02 ,mem_fw_ver 
+133d 58000e43 setarg param_tx_setup 
+133e 67e10155 store 2 ,mem_param_tx_setup 
+133f 58000600 setarg param_rf_setup 
+1340 67e10157 store 2 ,mem_param_rf_setup 
+1341 58000600 setarg param_conn_access 
+1342 67e10159 store 2 ,mem_param_conn_access 
+1343 58000d00 setarg param_rx_setup 
+1344 67e1015f store 2 ,mem_param_rx_setup 
+1345 580003bb setarg param_clke_cal 
+1346 67e1015b store 2 ,mem_param_clke_cal 
+1347 58000500 setarg param_pll_setup 
+1348 67e1015d store 2 ,mem_param_pll_setup 
+1349 580007d0 setarg param_dpll_start_delay 
+134a 67e10161 store 2 ,mem_param_dpll_start_delay 
+134b 58000ea6 setarg param_rt_rthalfslot 
+134c 67e10163 store 2 ,mem_param_rt_rthalfslot 
+134d 580001e0 setarg param_clke_cal_le_1m 
+134e 67e10165 store 2 ,mem_param_clke_cal_le_1m 
+134f 58000120 setarg param_clke_cal_le_2m 
+1350 67e10167 store 2 ,mem_param_clke_cal_le_2m 
+1351 5800011a setarg param_clke_cal_le_coded 
+1352 67e10169 store 2 ,mem_param_clke_cal_le_coded 
+1353 58001400 setarg mem_ble_tx_buff0 
+1354 67e143dc store 2 ,mem_ble_l2cap_tx_buff0_ptr 
+1355 58000100 setarg mem_ble_l2cap_tx_buff_size 
+1356 67e143de store 2 ,mem_ble_l2cap_tx_buff_size_ptr 
+1357 44d44015 bpatch patch15_0 ,mem_patch15 
+1358 20758000 rtn wake 
+1359 58000000 setarg 0 
+135a 67e141e9 store 2 ,mem_tx_len 
+135b 1c437e00 rshift clkn_bt ,pdata 
+135c 67e2409c store 4 ,mem_last_clkn 
+135d 20600000 rtn 
+
+clk24m_init:
+135e 70804206 jam 6 ,core_clksel 
+135f 70804201 jam 1 ,core_clksel 
+1360 2000000a nop 10 
+1361 58001d4a setarg 7498 
+1362 67f10040 store 2 ,core_halfslot 
+1363 20600000 rtn 
+
+test_init:
+1364 58001369 setarg test_proc 
+1365 67e14463 store 2 ,mem_cb_bt_process 
+1366 58001369 setarg test_proc 
+1367 67e14465 store 2 ,mem_cb_idle_process 
+1368 20600000 rtn 
+
+test_proc:
+1369 6fe08031 fetch 1 ,mem_state 
+136a c300936f bbit0 state_insniff ,check_test_cond 
+136b 7920000d set1 mark_lpm_mult_enable ,mark 
+136c 6fe34171 fetch 6 ,mem_sniff_rcv 
+136d 67e345fd store 6 ,mem_local_name 
+136e 20600000 rtn 
+
+check_test_cond:
+136f 6fe08a51 fetch 1 ,mem_tester_emulate 
+1370 c4010000 rtnbit0 tester_change 
+1371 6fe08a5c fetch 1 ,mem_tester_cnt 
+1372 1fe0fe01 increase 1 ,pdata 
+1373 67e08a5c store 1 ,mem_tester_cnt 
+1374 c1828000 rtnne 5 
+1375 700a5c00 jam 0 ,mem_tester_cnt 
+1376 6fe08a51 fetch 1 ,mem_tester_emulate 
+1377 793ffe02 set0 tester_change ,pdata 
+1378 67e08a51 store 1 ,mem_tester_emulate 
+1379 c2819390 bbit1 tester_exit ,check_test_exit 
+137a 2feffe07 isolate1 tester_no_whitening ,pdata 
+137b 2040fe27 call test_no_white ,true 
+137c 2440fe2b ncall test_enable_white ,true 
+137d 6fe08a58 fetch 1 ,test_mode_packet_type 
+137e 2fe06020 compare 0x20 ,pdata ,0x30 
+137f 6fe0804d fetch 1 ,mem_state_map 
+1380 7920fe05 setflag true ,smap_edr ,pdata 
+1381 67e0804d store 1 ,mem_state_map 
+1382 6fe08a51 fetch 1 ,mem_tester_emulate 
+1383 684880e4 fetcht 1 ,mem_debug_config 
+1384 2feffe04 isolate1 tester_pattern_test ,pdata 
+1385 79208406 setflag true ,debug_tx_pattern ,temp 
+1386 2feffe06 isolate1 tester_fixed_freq ,pdata 
+1387 79208404 setflag true ,debug_tx_fixed_freq ,temp 
+1388 79208405 setflag true ,debug_rx_fixed_freq ,temp 
+1389 604880e4 storet 1 ,mem_debug_config 
+138a 6fe08a54 fetch 1 ,test_mode_tx_freq 
+138b 67e0839f store 1 ,mem_tx_fixed_freq 
+138c 6fe08a55 fetch 1 ,test_mode_rx_freq 
+138d 67e083a0 store 1 ,mem_rx_fixed_freq 
+138e 79200011 set1 mark_testmode ,mark 
+138f 20600000 rtn 
+
+check_test_exit:
+1390 793f8011 set0 mark_testmode ,mark 
+1391 700a5100 jam 0 ,mem_tester_emulate 
+1392 6fe08a5b fetch 1 ,mem_test_mode_old_debug_config 
+1393 67e080e4 store 1 ,mem_debug_config 
+1394 20207e2b branch test_enable_white 
+
+lpmstate:
+1395 5800ee21 setarg 0xee21 
+1396 67f10050 store 2 ,core_clkoff 
+1397 6ff2011c fetch 4 ,core_gpio_in 
+1398 67e2098a store 4 ,mem_saved_gpio_in 
+1399 6ff0813b fetch 1 ,core_lpm_ctrl + 3 
+139a 67e08989 store 1 ,mem_wakup_from_power_flag 
+139b 6ff0813e fetch 1 ,core_lpm_ldocnt 
+139c c301db51 bbit0 gpio_latch ,loadcode 
+139d 7835fc00 enable wake 
+139e c30393a6 bbit0 cold_wake ,lpmwake 
+139f 7855fc00 disable wake 
+13a0 1ce27e00 deposit auxcnt 
+13a1 243a13a6 nbranch lpmwake ,blank 
+13a2 6ff0813b fetch 1 ,core_lpm_ctrl + 3 
+13a3 c28113a6 bbit1 reload_code ,lpmwake 
+13a4 d85fffff arg param_hibernate_clks ,temp 
+13a5 2020141b branch lpm_enter_sleep 
+
+lpmwake:
+13a6 6ff20134 fetch 4 ,core_lpm_ctrl2 
+13a7 67f2004c store 4 ,core_lpm_reg 
+13a8 6ff08135 fetch 1 ,core_lpm_ctrl2 + 1 
+13a9 1fe17ee0 and_into 0xe0 ,pdata 
+13aa 67f0804d store 1 ,core_lpm_reg + 1 
+13ab 2040150b call lpm_write_ctrl3 
+13ac 6ff1813c fetch 3 ,core_lpm_xtalcnt 
+13ad 67f1804c store 3 ,core_lpm_reg 
+13ae efe08006 ifetch 1 ,contr 
+13af 1fe1feef or_into isogate_mask ,pdata 
+13b0 e7e08005 istore 1 ,contw 
+13b1 20401505 call lpm_write_ctrl2 
+13b2 6ff0804f fetch 1 ,core_lpm_isogate 
+13b3 79207e04 set1 enable_retmem ,pdata 
+13b4 67f0804f store 1 ,core_lpm_isogate 
+13b5 20401505 call lpm_write_ctrl2 
+13b6 205593bf call lpm_load_context ,wake 
+13b7 6ff0804e fetch 1 ,core_lpm_reg + 2 
+13b8 793ffe03 set0 gpio_latch ,pdata 
+13b9 67f0804e store 1 ,core_lpm_reg + 2 
+13ba 20401505 call lpm_write_ctrl2 
+13bb 2435db51 nbranch loadcode ,wake 
+13bc c6958000 rtnmark0 mark_otp_encrypt 
+13bd 70800608 jam lock_otp ,core_misc_ctrl 
+13be 20600000 rtn 
+
+lpm_load_context:
+13bf 6fe0c1a8 fetch 1 ,mem_saved_spidctrl 
+13c0 67f08086 store 1 ,core_spid_ctrl 
+13c1 d8c04189 arg mem_saved_gpio ,contr 
+13c2 d8a08070 arg core_gpio_conf ,contw 
+13c3 20407d0f call memcpy20 
+13c4 6fe441a0 fetch 8 ,mem_saved_mark 
+13c5 98000000 iforce mark 
+13c6 6ff40140 fetch 8 ,core_gpio_wakeup_low 
+13c7 67e4009f store 8 ,mem_gpio_wakeup_low 
+13c8 20205bea branch load_ucode 
+
+lpm_save_context:
+13c9 18027e00 deposit mark 
+13ca 67e441a0 store 8 ,mem_saved_mark 
+13cb d8c08070 arg core_gpio_conf ,contr 
+13cc d8a04189 arg mem_saved_gpio ,contw 
+13cd 20407d0f call memcpy20 
+13ce 6ff08086 fetch 1 ,core_spid_ctrl 
+13cf 67e0c1a8 store 1 ,mem_saved_spidctrl 
+13d0 2020150d branch lpm_write_gpio_wakeup 
+
+lpo_calibration:
+13d1 6ff08085 fetch 1 ,core_aes_en 
+13d2 1ff1fe00 rshift4 pdata ,pdata 
+13d3 243a13da nbranch lpo_cal_inited ,blank 
+13d4 6fe1c177 fetch 3 ,mem_clks_per_lpo 
+13d5 247a0000 nrtn blank 
+13d6 6ff08085 fetch 1 ,core_aes_en 
+13d7 1fe1fec0 or_into 0xc0 ,pdata 
+13d8 67f08085 store 1 ,core_aes_en 
+13d9 70800680 jam ccnt_start ,core_misc_ctrl 
+
+lpo_cal_inited:
+13da 6ff0812d fetch 1 ,core_perf_status 
+13db c4008000 rtnbit0 1 
+13dc 6ff18149 fetch 3 ,core_clk_counter 
+13dd 67e1c177 store 3 ,mem_clks_per_lpo 
+13de 20600000 rtn 
+
+lpm_adjust_clk:
+13df 44d4c015 bpatch patch15_1 ,mem_patch15 
+13e0 1b427e00 deposit clke 
+13e1 20407da3 call clk_diff_rt 
+13e2 684a4167 fetcht 4 ,mem_sleep_counter_all 
+13e3 18467cff sub temp ,0xff ,null 
+13e4 20610000 rtn positive 
+13e5 1fed7e00 lshift8 pdata ,pdata 
+13e6 1ff27e00 lshift4 pdata ,pdata 
+13e7 9846fc00 idiv temp 
+13e8 20407dfa call get_div_result 
+13e9 d84000c8 arg param_lpm_adjmax ,temp 
+13ea 20407e08 call ceiling 
+13eb 67e08097 store 1 ,mem_lpm_adjust 
+13ec 243413ee nbranch lpm_adjust_positive ,user 
+13ed 1fe67e00 sub pdata ,0 ,pdata 
+
+lpm_adjust_positive:
+13ee 6849c177 fetcht 3 ,mem_clks_per_lpo 
+13ef 9840fe00 iadd temp ,pdata 
+13f0 67e1c177 store 3 ,mem_clks_per_lpo 
+
+lpm_clear_counter:
+13f1 58000000 setarg 0 
+13f2 67e24167 store 4 ,mem_sleep_counter_all 
+13f3 20600000 rtn 
+
+lpm_doze:
+13f4 6fe0c17f fetch 1 ,mem_lpm_config + 2 
+13f5 79207e02 set1 reload_code ,pdata 
+13f6 67e0c17f store 1 ,mem_lpm_config + 2 
+13f7 202013fc branch lpm_hibernate_normal 
+
+lpm_hibernate:
+13f8 d85fffff arg param_hibernate_clks ,temp 
+13f9 6fe0c17e fetch 1 ,mem_lpm_config + 1 
+13fa 793ffe07 set0 7 ,pdata 
+13fb 67e0c17e store 1 ,mem_lpm_config + 1 
+
+lpm_hibernate_normal:
+13fc 44d54015 bpatch patch15_2 ,mem_patch15 
+13fd 2040150d call lpm_write_gpio_wakeup 
+13fe 6fe0c15f fetch 1 ,mem_lpm_hibernate_switch 
+13ff 67e0c184 store 1 ,mem_lpm_xtalcnt + 4 
+1400 6fe0c182 fetch 1 ,mem_lpm_xtalcnt + 2 
+1401 79207e07 set1 cold_wake ,pdata 
+1402 67e0c182 store 1 ,mem_lpm_xtalcnt + 2 
+
+lpm_sleep:
+1403 44d5c015 bpatch patch15_3 ,mem_patch15 
+1404 20401274 call xtal_fast_wake 
+1405 6fe24167 fetch 4 ,mem_sleep_counter_all 
+1406 9840fe00 iadd temp ,pdata 
+1407 67e24167 store 4 ,mem_sleep_counter_all 
+1408 204013c9 call lpm_save_context 
+1409 6fe24185 fetch 4 ,mem_lpm_ctrl3 
+140a 1fe22400 copy pdata ,regb 
+140b 6fe2c180 fetch 5 ,mem_lpm_xtalcnt 
+140c 67f2004c store 4 ,core_lpm_reg 
+140d 1fef2200 rshift32 pdata ,rega 
+140e 37d98200 until null ,lpo_edge 
+140f 1b227e00 deposit clkn 
+1410 67e3416b store 6 ,mem_sleep_clkn 
+1411 70800502 jam lpmreg_sel_ctrl2 ,core_lpm_wr 
+1412 37d98200 until null ,lpo_edge 
+1413 37d98200 until null ,lpo_edge 
+1414 1a227e00 deposit rega 
+1415 67f0804f store 1 ,core_lpm_isogate 
+1416 70800502 jam lpmreg_sel_ctrl2 ,core_lpm_wr 
+1417 37d98200 until null ,lpo_edge 
+1418 37d98200 until null ,lpo_edge 
+1419 6252004c storer regb ,4 ,core_lpm_reg 
+141a 70800520 jam lpmreg_sel_ctrl3 ,core_lpm_wr 
+
+lpm_enter_sleep:
+141b 37d98200 until null ,lpo_edge 
+141c 37d98200 until null ,lpo_edge 
+141d 605a004c storet 4 ,core_lpm_reg 
+141e 70800510 jam lpmreg_sel_counter ,core_lpm_wr 
+141f 37df8200 until null ,never 
+
+lpm_recover_clk:
+1420 44d64015 bpatch patch15_4 ,mem_patch15 
+1421 58000000 setarg 0 
+1422 1ce27c00 copy auxcnt ,null 
+1423 2022942b branch lpm_recover_timeout ,zero 
+1424 6ff0813c fetch 1 ,core_lpm_xtalcnt 
+1425 6858813d fetcht 1 ,core_lpm_buckcnt 
+1426 98467c00 isub temp ,null 
+1427 20211429 branch lpm_recover_xtal ,positive 
+1428 18427e00 deposit temp 
+
+lpm_recover_xtal:
+1429 9ce67e00 isub auxcnt ,pdata 
+142a 1fe0fe01 increase 1 ,pdata 
+
+lpm_recover_timeout:
+142b 1fe0fe08 increase 8 ,pdata 
+142c 37d98200 until null ,lpo_edge 
+142d 9e20fe00 iadd lpo_time ,pdata 
+142e 684a4163 fetcht 4 ,mem_sleep_counter 
+142f 9840fe00 iadd temp ,pdata 
+1430 6849c177 fetcht 3 ,mem_clks_per_lpo 
+1431 984ffe00 imul32 temp ,pdata 
+1432 1fecfe00 rshift8 pdata ,pdata 
+1433 1ff1fe00 rshift4 pdata ,pdata 
+1434 1fe0fe6e increase param_lpm_fix ,pdata 
+1435 68490163 fetcht 2 ,mem_param_rt_rthalfslot 
+1436 9846fc00 idiv temp 
+1437 20407dfa call get_div_result 
+1438 1ff07e00 lshift16 pdata ,pdata 
+1439 18070400 remainder temp 
+143a 9841fe00 ior temp ,pdata 
+143b 684b416b fetcht 6 ,mem_sleep_clkn 
+143c 20407d98 call clk_add 
+143d 18423200 copy temp ,clkn 
+143e 6fe34048 fetch 6 ,mem_context + coffset_clk_offset 
+143f 20401072 call calc_clke2 
+1440 1b427e00 deposit clke 
+1441 67e3095c store 6 ,mem_pdatatemp 
+1442 1ce27e00 deposit auxcnt 
+1443 e7e08005 istore 1 ,contw 
+1444 6ff0811d fetch 1 ,core_gpio_in1 
+1445 1fe1fef0 or_into 0xf0 ,pdata 
+1446 e7e08005 istore 1 ,contw 
+1447 20600000 rtn 
+
+lpm_dispatch:
+1448 44d6c015 bpatch patch15_5 ,mem_patch15 
+1449 204013d1 call lpo_calibration 
+144a 6fe1c177 fetch 3 ,mem_clks_per_lpo 
+144b 207a0000 rtn blank 
+144c 6fe0c099 fetch 1 ,mem_lpm_mode 
+144d 207a0000 rtn blank 
+144e 6fe0c763 fetch 1 ,mem_ssp_enable 
+144f 203a1452 branch lpm_dispatch_next ,blank 
+1450 6fe0c6b8 fetch 1 ,mem_sp_local_key_invalid 
+1451 207a0000 rtn blank 
+
+lpm_dispatch_next:
+1452 6fe0c6b9 fetch 1 ,mem_sc_calc 
+1453 247a0000 nrtn blank 
+1454 20400a50 call context_check_all_wack 
+1455 20628000 rtn zero 
+1456 2040151e call lpm_check_wake_lock 
+1457 247a0000 nrtn blank 
+1458 6fe0c040 fetch 1 ,mem_context 
+1459 2fe00e03 compare 3 ,pdata ,0x7 
+145a 2420947d nbranch lpm_dispatch_unconn ,true 
+145b 6fe14042 fetch 2 ,mem_context + coffset_tsniff 
+145c 207a0000 rtn blank 
+145d 20758000 rtn wake 
+145e 44d74015 bpatch patch15_6 ,mem_patch15 
+
+lpm_dispatch_next2:
+145f 6848809e fetcht 1 ,mem_lpm_current_mult 
+1460 6fe14042 fetch 2 ,mem_context + coffset_tsniff 
+1461 984ffe00 imul32 temp ,pdata 
+1462 18518400 rshift4 temp ,temp 
+1463 184b0400 rshift2 temp ,temp 
+1464 98467e00 isub temp ,pdata 
+1465 684a4044 fetcht 4 ,mem_context + coffset_sniff_anchor 
+1466 9840fe00 iadd temp ,pdata 
+1467 6848c15e fetcht 1 ,mem_lpm_overhead 
+1468 98467e00 isub temp ,pdata 
+1469 1ff06000 lshift16 pdata ,alarm 
+146a 44d7c015 bpatch patch15_7 ,mem_patch15 
+146b 6fe1404e fetch 2 ,mem_context + coffset_rx_window 
+146c 1fe37e00 rshift pdata ,pdata 
+146d 20407dbf call clk2bt 
+146e 1e027e00 deposit alarm 
+146f 20407da5 call clk_diff 
+1470 1b420400 copy clke ,temp 
+1471 20407da3 call clk_diff_rt 
+1472 20740000 rtn user 
+
+lpm_dispatch_sleep:
+1473 20407db8 call clk2lpo 
+
+lpm_dispatch_lpo:
+1474 44d84016 bpatch patch16_0 ,mem_patch16 
+1475 6fe0c180 fetch 1 ,mem_lpm_xtalcnt 
+1476 98467c00 isub temp ,null 
+1477 202113f1 branch lpm_clear_counter ,positive 
+1478 604a4163 storet 4 ,mem_sleep_counter 
+1479 20402ffd call app_will_enter_lpm 
+147a 20405329 call l2cap_lpm_save_txbuf 
+147b 684a4163 fetcht 4 ,mem_sleep_counter 
+147c 20201403 branch lpm_sleep 
+
+lpm_dispatch_unconn:
+147d 44d8c016 bpatch patch16_1 ,mem_patch16 
+147e 6fe0c040 fetch 1 ,mem_context 
+147f c3800000 rtnbit1 state_inconn 
+1480 c3818000 rtnbit1 state_inpage 
+1481 6fe0c763 fetch 1 ,mem_ssp_enable 
+1482 203a1485 branch lpm_unconn_nossp ,blank 
+1483 6fe0c6b8 fetch 1 ,mem_sp_local_key_invalid 
+1484 207a0000 rtn blank 
+
+lpm_unconn_nossp:
+1485 6fe0c425 fetch 1 ,mem_le_adv_enable 
+1486 243a1489 nbranch lpm_unconn_cont ,blank 
+1487 6fe0c09b fetch 1 ,mem_scan_mode 
+1488 207a0000 rtn blank 
+
+lpm_unconn_cont:
+1489 6fe1415c fetch 2 ,mem_lpm_interval 
+148a 207a0000 rtn blank 
+
+lpm_sleep_btclk:
+148b 6848c15e fetcht 1 ,mem_lpm_overhead 
+148c 98467e00 isub temp ,pdata 
+148d d8401d4c arg 7500 ,temp 
+148e 984ffe00 imul32 temp ,pdata 
+148f 20201473 branch lpm_dispatch_sleep 
+
+lpm_set_mult:
+1490 44d94016 bpatch patch16_2 ,mem_patch16 
+1491 7855fc00 disable wake 
+1492 6fe08031 fetch 1 ,mem_state 
+1493 c4008000 rtnbit0 state_insniff 
+1494 243694b2 nbranch lpm_not_match ,match 
+1495 204014ad call lpm_match 
+1496 6fe140c9 fetch 2 ,mem_rx_window_sniff 
+1497 67e1003f store 2 ,mem_rx_window 
+1498 6fe08048 fetch 1 ,mem_arq 
+1499 c28194c0 bbit1 wack ,lpm_mult_short 
+149a c58694c0 bmark0 mark_lpm_mult_enable ,lpm_mult_short 
+149b 204052d2 call l2cap_malloc_is_fifo_empty 
+149c 243a14c0 nbranch lpm_mult_short ,blank 
+149d 6fe0c643 fetch 1 ,mem_classic_bt_flag 
+149e c28094c0 bbit1 short_mult_flag ,lpm_mult_short 
+
+lpm_mult_wait_timeout:
+149f 6fe14471 fetch 2 ,mem_cb_bt_set_mult 
+14a0 20407e13 call callback_func 
+14a1 243a14c0 nbranch lpm_mult_short ,blank 
+14a2 70009e00 jam 0 ,mem_lpm_current_mult 
+14a3 c58694c0 bmark0 mark_lpm_mult_enable ,lpm_mult_short 
+14a4 6fe0c17c fetch 1 ,mem_lpm_mult_cnt 
+14a5 203a14c4 branch lpm_mult_long ,blank 
+14a6 1fe0ffff increase -1 ,pdata 
+14a7 67e0c17c store 1 ,mem_lpm_mult_cnt 
+14a8 20600000 rtn 
+
+classic_bt_set_mult_short_flag:
+14a9 d8e00001 arg short_mult_flag ,queue 
+14aa 2020579f branch classic_bluetooth_set_flag 
+
+classic_bt_clr_mult_short_flag:
+14ab d8e00001 arg short_mult_flag ,queue 
+14ac 202057a3 branch classic_bluetooth_clr_flag 
+
+lpm_match:
+14ad 70416100 jam 0 ,mem_sniff_unint_lost 
+14ae 6fe1c171 fetch 3 ,mem_sniff_rcv 
+14af 1fe0fe01 increase 1 ,pdata 
+14b0 67e1c171 store 3 ,mem_sniff_rcv 
+14b1 20600000 rtn 
+
+lpm_not_match:
+14b2 44d9c016 bpatch patch16_3 ,mem_patch16 
+14b3 684940c9 fetcht 2 ,mem_rx_window_sniff 
+14b4 18430400 rshift temp ,temp 
+14b5 6fe1003f fetch 2 ,mem_rx_window 
+14b6 9840fe00 iadd temp ,pdata 
+14b7 67e1003f store 2 ,mem_rx_window 
+
+lpm_lost:
+14b8 70009e00 jam 0 ,mem_lpm_current_mult 
+14b9 6fe1c174 fetch 3 ,mem_sniff_lost 
+14ba 1fe0fe01 increase 1 ,pdata 
+14bb 67e1c174 store 3 ,mem_sniff_lost 
+14bc 6fe0c161 fetch 1 ,mem_sniff_unint_lost 
+14bd 1fe0fe01 increase 1 ,pdata 
+14be 67e0c161 store 1 ,mem_sniff_unint_lost 
+14bf 20600000 rtn 
+
+lpm_mult_short:
+14c0 70009e00 jam 0 ,mem_lpm_current_mult 
+14c1 6fe0c17b fetch 1 ,mem_lpm_mult_timeout 
+14c2 67e0c17c store 1 ,mem_lpm_mult_cnt 
+14c3 20600000 rtn 
+
+lpm_mult_long:
+14c4 6848c17a fetcht 1 ,mem_lpm_mult 
+14c5 6048809e storet 1 ,mem_lpm_current_mult 
+14c6 20600000 rtn 
+
+lpm_cal_xtal_startup:
+14c7 44da4016 bpatch patch16_4 ,mem_patch16 
+14c8 6fe0c180 fetch 1 ,mem_lpm_xtalcnt 
+14c9 247a0000 nrtn blank 
+14ca 70804206 jam clksel_rc ,core_clksel 
+14cb 58000f0c setarg 0xf0c 
+14cc 204014fa call lpm_write_config 
+14cd 58030d40 setarg 200000 
+14ce 20401322 call sleep 
+14cf 37d98200 until null ,lpo_edge 
+14d0 1e226000 copy lpo_time ,alarm 
+14d1 20401274 call xtal_fast_wake 
+14d2 70804204 jam clksel_xtal ,core_clksel 
+14d3 2000000a nop 10 
+14d4 37d98200 until null ,lpo_edge 
+14d5 1e227e00 deposit lpo_time 
+14d6 9e067e00 isub alarm ,pdata 
+14d7 1fe0fe30 increase 0x30 ,pdata 
+14d8 d84000ff arg 0xff ,temp 
+14d9 20407e08 call ceiling 
+14da 67e0c180 store 1 ,mem_lpm_xtalcnt 
+14db 20007530 nop 30000 
+14dc 20007530 nop 30000 
+14dd 20007530 nop 30000 
+14de 20600000 rtn 
+
+lpm_cal_xtal_startup_by_snooze:
+14df 6fe0c180 fetch 1 ,mem_lpm_xtalcnt 
+14e0 247a0000 nrtn blank 
+14e1 708044ff jam 0xff ,core_xtal_stable_time 
+14e2 70804206 jam clksel_rc ,core_clksel 
+14e3 20401274 call xtal_fast_wake 
+14e4 580003e8 setarg 1000 
+14e5 9e20e000 iadd lpo_time ,alarm 
+14e6 07e00000 snooze 
+14e7 1e227e00 deposit lpo_time 
+14e8 20002ee0 nop 12000 
+14e9 20002ee0 nop 12000 
+14ea 20002ee0 nop 12000 
+14eb 20002ee0 nop 12000 
+14ec 20002ee0 nop 12000 
+14ed 20002ee0 nop 12000 
+14ee 20002ee0 nop 12000 
+14ef 20002ee0 nop 12000 
+14f0 20002ee0 nop 12000 
+14f1 9e067e00 isub alarm ,pdata 
+14f2 1fe0fe30 add pdata ,0x30 ,pdata 
+14f3 d84000ff arg 0xff ,temp 
+14f4 20407e08 call ceiling 
+14f5 67e0c180 store 1 ,mem_lpm_xtalcnt 
+14f6 20007530 nop 30000 
+14f7 20007530 nop 30000 
+14f8 20007530 nop 30000 
+14f9 20600000 rtn 
+
+lpm_write_config:
+14fa d8a00fff arg 0xfff ,contw 
+14fb 98a10a00 iand contw ,contw 
+14fc 6fe0c17d fetch 1 ,mem_lpm_config 
+14fd 1fe17ef0 and_into 0xf0 ,pdata 
+14fe 1fed7e00 lshift8 pdata ,pdata 
+14ff 98a1fe00 ior contw ,pdata 
+1500 67f1004c store 2 ,core_lpm_reg 
+1501 efe10006 ifetch 2 ,contr 
+1502 e7e10005 istore 2 ,contw 
+
+lpm_write_ctrl:
+1503 58000001 setarg lpmreg_sel_ctrl 
+1504 20201506 branch lpm_write 
+
+lpm_write_ctrl2:
+1505 58000002 setarg lpmreg_sel_ctrl2 
+
+lpm_write:
+1506 37d98200 until null ,lpo_edge 
+1507 67f08005 store 1 ,core_lpm_wr 
+1508 37d98200 until null ,lpo_edge 
+1509 37d98200 until null ,lpo_edge 
+150a 20600000 rtn 
+
+lpm_write_ctrl3:
+150b 58000020 setarg lpmreg_sel_ctrl3 
+150c 20201506 branch lpm_write 
+
+lpm_write_gpio_wakeup:
+150d 44dac016 bpatch patch16_5 ,mem_patch16 
+150e 6fe2009f fetch 4 ,mem_gpio_wakeup_low 
+150f 67f2004c store 4 ,core_lpm_reg 
+1510 58000004 setarg lpmreg_sel_gpiolow 
+1511 20401506 call lpm_write 
+1512 6fe200a3 fetch 4 ,mem_gpio_wakeup_high 
+1513 67f2004c store 4 ,core_lpm_reg 
+1514 58000008 setarg lpmreg_sel_gpiohigh 
+1515 20201506 branch lpm_write 
+
+lpm_get_wake_lock:
+1516 6fe1415a fetch 2 ,mem_lpm_wake_lock 
+1517 f9207e00 qset1 pdata 
+1518 67e1415a store 2 ,mem_lpm_wake_lock 
+1519 20600000 rtn 
+
+lpm_put_wake_lock:
+151a 6fe1415a fetch 2 ,mem_lpm_wake_lock 
+151b f93ffe00 qset0 pdata 
+151c 67e1415a store 2 ,mem_lpm_wake_lock 
+151d 20600000 rtn 
+
+lpm_check_wake_lock:
+151e 44db4016 bpatch patch16_6 ,mem_patch16 
+151f 20402ffb call app_check_wake_lock 
+1520 6fe1415a fetch 2 ,mem_lpm_wake_lock 
+1521 1fe22200 copy pdata ,rega 
+1522 6fe0804d fetch 1 ,mem_state_map 
+1523 2feffe06 isolate1 smap_rxlmp ,pdata 
+1524 7920a20b setflag true ,wake_lock_lmp_rx ,rega 
+1525 6fe08079 fetch 1 ,mem_lmo_opcode1 
+1526 6848807d fetcht 1 ,mem_lmo_opcode2 
+1527 9840fe00 iadd temp ,pdata 
+1528 68488049 fetcht 1 ,mem_lmp_to_send 
+1529 9840fe00 iadd temp ,pdata 
+152a 7d3a220a nsetflag blank ,wake_lock_lmp_tx ,rega 
+152b 6fe1c4f0 fetch 3 ,mem_tx_fifo3 
+152c 7d3a2201 nsetflag blank ,wake_lock_ble_tx ,rega 
+152d 6fe1030e fetch 2 ,mem_l2cap_rxbuff1_len 
+152e 68490310 fetcht 2 ,mem_l2cap_rxbuff2_len 
+152f 9840fe00 iadd temp ,pdata 
+1530 7d3a220d nsetflag blank ,wake_lock_l2cap_rx ,rega 
+1531 6fe44771 fetch util_fifo_len ,mem_ipc_fifo_bt2c51 
+1532 7d3a220f nsetflag blank ,wake_lock_ipc_bt2c51 ,rega 
+1533 6fe44779 fetch util_fifo_len ,mem_ipc_fifo_c512bt 
+1534 7d3a220e nsetflag blank ,wake_lock_ipc_c512bt ,rega 
+1535 6fe0c1de fetch 1 ,mem_hci_cmd 
+1536 7d3a2208 nsetflag blank ,wake_lock_cmd ,rega 
+1537 6fe0c09a fetch 1 ,mem_device_option 
+1538 2fe1fe0a compare dvc_op_module ,pdata ,0xff 
+1539 2040953d call lpm_uart_wake_lock ,true 
+153a 1a227e00 copy rega ,pdata 
+153b 67e1415a store 2 ,mem_lpm_wake_lock 
+153c 20600000 rtn 
+
+lpm_uart_wake_lock:
+153d 6ff10112 fetch 2 ,core_uart_rxitems 
+153e 7d3a2206 nsetflag blank ,wake_lock_uart_rx ,rega 
+153f 6ff1010e fetch 2 ,core_uart_txitems 
+1540 7d3a2205 nsetflag blank ,wake_lock_uart_tx ,rega 
+1541 20600000 rtn 
+
+lpm_shut_down:
+1542 6ff20138 fetch 4 ,core_lpm_ctrl 
+1543 793ffe1b set0 27 ,pdata 
+1544 67f2004c store 4 ,core_lpm_reg 
+1545 20401503 call lpm_write_ctrl 
+1546 2020131f branch assert 
+
+lpm_disable_exen_output:
+1547 6ff2013c fetch 4 ,core_lpm_xtalcnt 
+1548 793ffe14 set0 20 ,pdata 
+1549 67f2004c store 4 ,core_lpm_reg 
+154a 20201505 branch lpm_write_ctrl2 
+
+check_bt_disabled:
+154b 6fe14158 fetch 2 ,mem_chip_functions 
+154c c280131f bbit1 bt_disabled ,assert 
+154d 20600000 rtn 
+
+check_ble_disabled:
+154e 6fe14158 fetch 2 ,mem_chip_functions 
+154f c280931f bbit1 ble_disabled ,assert 
+1550 20600000 rtn 
+
+check_module_disabled:
+1551 6fe14158 fetch 2 ,mem_chip_functions 
+1552 c281131f bbit1 module_disable ,assert 
+1553 20600000 rtn 
+
+ali_mesh_access_layer_check_access_message_opcode:
+1554 4777403d bpatchx patch3d_6 ,mem_patch3d 
+1555 2040159f call logging_tx_info_receive_access_message 
+1556 6fe14979 fetch 2 ,mem_mesh_cb_receive_access_message 
+1557 20407e13 call callback_func 
+1558 efe08030 ifetch 1 ,alarm 
+1559 c000155e beq mesh_message_opcode_config_appkey_add ,ali_mesh_access_layer_message_opcode_config_appkey_add 
+155a c0401b24 beq mesh_configuration_and_health_message_opcode_header ,ali_mesh_access_layer_config_or_health_message_opcode 
+155b c0411c15 beq mesh_module_message_opcode_header ,ali_mesh_model_layer_check_model_message_opcode 
+155c c06895a3 beq vendor_message_attr_set ,ali_mesh_ali_vendor_message_attribute_set 
+155d 20600000 rtn 
+
+ali_mesh_access_layer_message_opcode_config_appkey_add:
+155e efe18006 ifetch 3 ,contr 
+155f 67e189f6 store 3 ,mem_mesh_netkeyindex_and_appkeyindex 
+1560 d8a04a2d arg mem_mesh_application_key ,contw 
+1561 20407d1a call memcpy16 
+1562 70493000 jam paired_status ,mem_mesh_provisioned_flag 
+1563 204018b3 call ali_mesh_encrypt_base_function_k4 
+1564 20401571 call ali_mesh_access_layer_finish_pairing_init_subscription_list 
+1565 6fe1497b fetch 2 ,mem_mesh_cb_receive_config_appkey_add 
+1566 20407e13 call callback_func 
+
+ali_mesh_access_layer_send_config_appkey_status:
+1567 58000080 setarg mesh_configuration_and_health_message_opcode_header 
+1568 67e089fa store 1 ,mem_mesh_access_layer_payload 
+1569 58000003 setarg mesh_message_opcode_config_config_model_publication_set 
+156a e7e08005 istore 1 ,contw 
+156b 58000000 setarg status_code_success 
+156c e7e08005 istore 1 ,contw 
+156d 6fe189f6 fetch 3 ,mem_mesh_netkeyindex_and_appkeyindex 
+156e e7e18005 istore 3 ,contw 
+156f 7009f906 jam 6 ,mem_mesh_access_layer_payload_len 
+1570 20201d97 branch ali_mesh_upper_transport_layer_send_access_message 
+
+ali_mesh_access_layer_finish_pairing_init_subscription_list:
+1571 6fe14995 fetch 2 ,mem_mesh_core_feature 
+1572 c3810000 rtnbit1 mesh_feature_disable_subscription 
+1573 20401ba5 call mesh_get_element_info_config 
+
+ali_mesh_access_layer_finish_pairing_init_subscription_list_loop:
+1574 1a20a691 add rega ,element_device_subscription_label ,regc 
+1575 5fffffff setarg -1 
+1576 e7e40013 istore subscription_max_count ,regc 
+1577 e7e40005 istore subscription_max_count ,contw 
+1578 efe10011 ifetch 2 ,rega 
+1579 e7e10013 istore 2 ,regc 
+157a 1a427e00 copy regb ,pdata 
+157b 9a20a200 iadd rega ,rega 
+157c c2001574 loop ali_mesh_access_layer_finish_pairing_init_subscription_list_loop 
+157d 6fe14991 fetch 2 ,mem_mesh_cb_subscriptuion_list_changed 
+157e 20207e13 branch callback_func 
+
+ali_mesh_access_layer_send_generic_onoff_status:
+157f 58000082 setarg mesh_module_message_opcode_header 
+1580 67e089fa store 1 ,mem_mesh_access_layer_payload 
+1581 58000004 setarg mesh_module_message_opcode_generic_onoff_status_no_head 
+1582 e7e08005 istore 1 ,contw 
+1583 6fe08bdd fetch 1 ,mem_mesh_generic_onoff_set_payload_onoff 
+1584 e7e08005 istore 1 ,contw 
+1585 7009f903 jam 3 ,mem_mesh_access_layer_payload_len 
+1586 20201d97 branch ali_mesh_upper_transport_layer_send_access_message 
+
+ali_mesh_access_layer_send_light_lightness_status:
+1587 58000082 setarg mesh_module_message_opcode_header 
+1588 67e089fa store 1 ,mem_mesh_access_layer_payload 
+1589 5800004e setarg mesh_module_message_opcode_light_lightness_status_no_head 
+158a e7e08005 istore 1 ,contw 
+158b 6fe10bdd fetch 2 ,mem_mesh_light_lightness_set_payload_lightness 
+158c e7e10005 istore 2 ,contw 
+158d 7009f904 jam 4 ,mem_mesh_access_layer_payload_len 
+158e 20201d97 branch ali_mesh_upper_transport_layer_send_access_message 
+
+ali_mesh_access_layer_send_light_ctl_stauts:
+158f 58000082 setarg mesh_module_message_opcode_header 
+1590 67e089fa store 1 ,mem_mesh_access_layer_payload 
+1591 58000060 setarg mesh_module_message_opcode_light_ctl_status_no_head 
+1592 e7e08005 istore 1 ,contw 
+1593 6fe20bdd fetch 4 ,mem_mesh_ctl_lightness 
+1594 e7e20005 istore 4 ,contw 
+1595 7009f906 jam 6 ,mem_mesh_access_layer_payload_len 
+1596 20201d97 branch ali_mesh_upper_transport_layer_send_access_message 
+
+ali_mesh_access_layer_send_scene_status:
+1597 5800005e setarg mesh_module_message_opcode_scene_status 
+1598 67e089fa store 1 ,mem_mesh_access_layer_payload 
+1599 58000000 setarg mesh_success 
+159a e7e08005 istore 1 ,contw 
+159b 6fe10bdd fetch 2 ,mem_mesh_scene_recall_payload_scene_number 
+159c e7e10005 istore 2 ,contw 
+159d 7009f904 jam 4 ,mem_mesh_access_layer_payload_len 
+159e 20201d97 branch ali_mesh_upper_transport_layer_send_access_message 
+
+logging_tx_info_receive_access_message:
+159f 6f208b97 fetchr loopcnt ,1 ,mem_ccm_data_len 
+15a0 1e022200 copy alarm ,rega 
+15a1 da400050 arg mesh_access_receive_message ,regb 
+15a2 20201822 branch logging_tx_info 
+
+ali_mesh_ali_vendor_message_attribute_set:
+15a3 204015bc call ali_mesh_ali_vendor_message_attrbute_check_company_id_and_tid 
+15a4 24740000 nrtn user 
+15a5 efe10006 ifetch 2 ,contr 
+15a6 d8400534 arg vendor_message_attr_type_main_light ,temp 
+15a7 98467c00 isub temp ,null 
+15a8 202295c8 branch ali_mesh_ali_vendor_message_attribute_set_main_light ,zero 
+15a9 d8400533 arg vendor_message_attr_type_background_light ,temp 
+15aa 98467c00 isub temp ,null 
+15ab 202295d1 branch ali_mesh_ali_vendor_message_attribute_set_background_light ,zero 
+15ac d8400123 arg vendor_message_attr_type_color ,temp 
+15ad 98467c00 isub temp ,null 
+15ae 202295da branch ali_mesh_ali_vendor_message_attribute_set_color ,zero 
+15af d840f01f arg vendor_message_attr_type_time ,temp 
+15b0 98467c00 isub temp ,null 
+15b1 202295e3 branch ali_mesh_ali_vendor_message_opcode_timer_set_curr_time ,zero 
+15b2 d840f010 arg vendor_message_attr_type_timing ,temp 
+15b3 98467c00 isub temp ,null 
+15b4 202295eb branch ali_mesh_ali_vendor_message_opcode_timer_set_timing ,zero 
+15b5 d840f011 arg vendor_message_attr_type_cycle_timing ,temp 
+15b6 98467c00 isub temp ,null 
+15b7 202295fb branch ali_mesh_ali_vendor_message_opcode_timer_set_timing_cyclically ,zero 
+15b8 d840f012 arg vendor_message_attr_type_delete_timing ,temp 
+15b9 98467c00 isub temp ,null 
+15ba 2022960b branch ali_mesh_ali_vendor_message_opcode_timer_selete_timing ,zero 
+15bb 20600000 rtn 
+
+ali_mesh_ali_vendor_message_attrbute_check_company_id_and_tid:
+15bc 20407e64 call disable_user 
+15bd efe10006 ifetch 2 ,contr 
+15be d84001a8 arg vendor_message_opcode_company_id ,temp 
+15bf 98467c00 isub temp ,null 
+15c0 24628000 nrtn zero 
+15c1 18c22200 copy contr ,rega 
+15c2 6848c7a3 fetcht 1 ,mem_mesh_vendor_mesh_receive_tid 
+15c3 efe08011 ifetch 1 ,rega 
+15c4 98467c00 isub temp ,null 
+15c5 20628000 rtn zero 
+15c6 67e0c7a3 store 1 ,mem_mesh_vendor_mesh_receive_tid 
+15c7 20207e62 branch enable_user 
+
+ali_mesh_ali_vendor_message_attribute_set_main_light:
+15c8 efe08006 ifetch 1 ,contr 
+15c9 67e08bdd store 1 ,mem_mesh_main_light_onoff 
+15ca 20401627 call ali_mesh_ali_vendor_message_status_add_head 
+15cb 6fe08bdd fetch 1 ,mem_mesh_main_light_onoff 
+15cc e7e08005 istore 1 ,contw 
+15cd 7009f907 jam 7 ,mem_mesh_access_layer_payload_len 
+15ce 20401d97 call ali_mesh_upper_transport_layer_send_access_message 
+15cf 6fe14985 fetch 2 ,mem_mesh_cb_main_light_onoff_set 
+15d0 20207e13 branch callback_func 
+
+ali_mesh_ali_vendor_message_attribute_set_background_light:
+15d1 efe08006 ifetch 1 ,contr 
+15d2 67e08bdd store 1 ,mem_mesh_background_light_onoff 
+15d3 20401627 call ali_mesh_ali_vendor_message_status_add_head 
+15d4 6fe08bdd fetch 1 ,mem_mesh_background_light_onoff 
+15d5 e7e08005 istore 1 ,contw 
+15d6 7009f907 jam 7 ,mem_mesh_access_layer_payload_len 
+15d7 20401d97 call ali_mesh_upper_transport_layer_send_access_message 
+15d8 6fe14987 fetch 2 ,mem_mesh_cb_background_onoff_set 
+15d9 20207e13 branch callback_func 
+
+ali_mesh_ali_vendor_message_attribute_set_color:
+15da efe30006 ifetch 6 ,contr 
+15db 67e30bdd store 6 ,mem_mesh_color_lightness 
+15dc 20401627 call ali_mesh_ali_vendor_message_status_add_head 
+15dd 6fe30bdd fetch 6 ,mem_mesh_color_lightness 
+15de e7e30005 istore 6 ,contw 
+15df 7009f90c jam 12 ,mem_mesh_access_layer_payload_len 
+15e0 20401d97 call ali_mesh_upper_transport_layer_send_access_message 
+15e1 6fe14989 fetch 2 ,mem_mesh_cb_color_set 
+15e2 20207e13 branch callback_func 
+
+ali_mesh_ali_vendor_message_opcode_timer_set_curr_time:
+15e3 efe20006 ifetch 4 ,contr 
+15e4 67e247a5 store 4 ,mem_mesh_vendor_timer_current_time 
+15e5 20401677 call ali_mesh_time_init_system_time 
+15e6 20401627 call ali_mesh_ali_vendor_message_status_add_head 
+15e7 6fe247a5 fetch 4 ,mem_mesh_vendor_timer_current_time 
+15e8 e7e20005 istore 4 ,contw 
+15e9 7009f90a jam 10 ,mem_mesh_access_layer_payload_len 
+15ea 20201d97 branch ali_mesh_upper_transport_layer_send_access_message 
+
+ali_mesh_ali_vendor_message_opcode_timer_set_timing:
+15eb e8440006 ifetcht 8 ,contr 
+15ec 604c0bdd storet 8 ,mem_mesh_vendor_timer_timing_index 
+15ed d840f010 arg vendor_message_attr_type_timing ,temp 
+15ee 20401627 call ali_mesh_ali_vendor_message_status_add_head 
+15ef 6fe40bdd fetch 8 ,mem_mesh_vendor_timer_timing_index 
+15f0 e7e40005 istore 8 ,contw 
+15f1 7009f90e jam 14 ,mem_mesh_access_layer_payload_len 
+15f2 20401d97 call ali_mesh_upper_transport_layer_send_access_message 
+15f3 2040161f call ali_mesh_ali_vendor_message_calc_timing_address 
+15f4 207a0000 rtn blank 
+15f5 6fe08bdd fetch 1 ,mem_mesh_vendor_timer_timing_index 
+15f6 2040161b call ali_mesh_vendor_timer_buffer_offset_cal 
+15f7 684c0bdd fetcht 8 ,mem_mesh_vendor_timer_timing_index 
+15f8 e0440005 istoret 8 ,contw 
+
+ali_mesh_ali_vendor_message_cb_timing_changed:
+15f9 6fe14993 fetch 2 ,mem_mesh_cb_vendor_timing_changed 
+15fa 20207e13 branch callback_func 
+
+ali_mesh_ali_vendor_message_opcode_timer_set_timing_cyclically:
+15fb efe38006 ifetch 7 ,contr 
+15fc 67e38bdd store 7 ,mem_mesh_vendor_timer_timing_index_cyclic 
+15fd d840f011 arg vendor_message_attr_type_cycle_timing ,temp 
+15fe 20401627 call ali_mesh_ali_vendor_message_status_add_head 
+15ff 6fe38bdd fetch 7 ,mem_mesh_vendor_timer_timing_index_cyclic 
+1600 e7e38005 istore 7 ,contw 
+1601 7009f90d jam 13 ,mem_mesh_access_layer_payload_len 
+1602 20401d97 call ali_mesh_upper_transport_layer_send_access_message 
+1603 2040161f call ali_mesh_ali_vendor_message_calc_timing_address 
+1604 207a0000 rtn blank 
+1605 700be459 jam timer_cyclical_falg ,mem_mesh_vendor_timer_timing_cyclic_flag 
+1606 6fe08bdd fetch 1 ,mem_mesh_vendor_timer_timing_index_cyclic 
+1607 2040161b call ali_mesh_vendor_timer_buffer_offset_cal 
+1608 6fe40bdd fetch 8 ,mem_mesh_vendor_timer_timing_index_cyclic 
+1609 e7e40005 istore 8 ,contw 
+160a 202015f9 branch ali_mesh_ali_vendor_message_cb_timing_changed 
+
+ali_mesh_ali_vendor_message_opcode_timer_selete_timing:
+160b e8408006 ifetcht 1 ,contr 
+160c 60488bdd storet 1 ,mem_mesh_vendor_timer_timing_index 
+160d d840f012 arg vendor_message_attr_type_delete_timing ,temp 
+160e 20401627 call ali_mesh_ali_vendor_message_status_add_head 
+160f 6fe08bdd fetch 1 ,mem_mesh_vendor_timer_timing_index 
+1610 e7e08005 istore 1 ,contw 
+1611 7009f907 jam 7 ,mem_mesh_access_layer_payload_len 
+1612 20401d97 call ali_mesh_upper_transport_layer_send_access_message 
+1613 2040161f call ali_mesh_ali_vendor_message_calc_timing_address 
+1614 207a0000 rtn blank 
+1615 6fe08bdd fetch 1 ,mem_mesh_vendor_timer_timing_index 
+1616 207a0000 rtn blank 
+1617 2040161b call ali_mesh_vendor_timer_buffer_offset_cal 
+1618 d8400000 arg 0 ,temp 
+1619 e0408005 istoret 1 ,contw 
+161a 202015f9 branch ali_mesh_ali_vendor_message_cb_timing_changed 
+
+ali_mesh_vendor_timer_buffer_offset_cal:
+161b 1fe0ffff pincrease -1 
+161c 1fe9fe00 lshift3 pdata ,pdata 
+161d 98a08a00 iadd contw ,contw 
+161e 20600000 rtn 
+
+ali_mesh_ali_vendor_message_calc_timing_address:
+161f 20401ba5 call mesh_get_element_info_config 
+1620 1a20a28f add rega ,element_device_vendor_time_ptr ,rega 
+1621 6fe0c9ce fetch 1 ,mem_mesh_receive_element_number 
+1622 9a4ffe00 imul32 regb ,pdata 
+1623 9a20a200 iadd rega ,rega 
+1624 efe10011 ifetch 2 ,rega 
+1625 1fe20a00 copy pdata ,contw 
+1626 20600000 rtn 
+
+ali_mesh_ali_vendor_message_status_add_head:
+1627 580000d3 setarg vendor_message_attr_status 
+1628 67e089fa store 1 ,mem_mesh_access_layer_payload 
+1629 580001a8 setarg vendor_message_opcode_company_id 
+162a e7e10005 istore 2 ,contw 
+162b 6fe0c7a3 fetch 1 ,mem_mesh_vendor_mesh_receive_tid 
+162c e7e08005 istore 1 ,contw 
+162d e0410005 istoret 2 ,contw 
+162e 20600000 rtn 
+
+ali_mesh_ali_vendor_message_opcode_device_power_on:
+162f d8e00000 arg 0 ,queue 
+1630 d8400003 arg vendor_message_event_device_power_on ,temp 
+1631 da20f009 arg vendor_attr_type_event_trigger ,rega 
+1632 2020164e branch ali_mesh_ali_vendor_message_opcode_para_uint8 
+
+ali_mesh_ali_vendor_message_opcode_generic_onoff:
+1633 da200100 arg vendor_attr_generic_onoff_server ,rega 
+1634 2020164e branch ali_mesh_ali_vendor_message_opcode_para_uint8 
+
+ali_mesh_ali_vendor_message_opcode_scene_server_first_element:
+1635 d8e00000 arg 0 ,queue 
+
+ali_mesh_ali_vendor_message_opcode_scene_server:
+1636 da20f004 arg vendor_attr_scene_server ,rega 
+1637 20201653 branch ali_mesh_ali_vendor_message_opcode_para_uint16 
+
+ali_mesh_ali_vendor_message_opcode_main_light_onoff_first_element:
+1638 d8e00000 arg 0 ,queue 
+
+ali_mesh_ali_vendor_message_opcode_main_light_onoff:
+1639 da200534 arg vendor_attr_main_light_server ,rega 
+163a 2020164e branch ali_mesh_ali_vendor_message_opcode_para_uint8 
+
+ali_mesh_ali_vendor_message_opcode_background_light_onoff_first_element:
+163b d8e00000 arg 0 ,queue 
+
+ali_mesh_ali_vendor_message_opcode_background_light_onoff:
+163c da200533 arg vendor_attr_background_light_onoff_server ,rega 
+163d 2020164e branch ali_mesh_ali_vendor_message_opcode_para_uint8 
+
+ali_mesh_ali_vendor_message_opcode_brightness_first_element:
+163e d8e00000 arg 0 ,queue 
+
+ali_mesh_ali_vendor_message_opcode_brightness:
+163f 20401c4a call ali_mesh_model_layer_message_calc_actual_lightness 
+1640 da200121 arg vendor_attr_lightness_level_server ,rega 
+1641 20201653 branch ali_mesh_ali_vendor_message_opcode_para_uint16 
+
+ali_mesh_ali_vendor_message_opcode_color_temperature_first_element:
+1642 d8e00000 arg 0 ,queue 
+
+ali_mesh_ali_vendor_message_opcode_color_temperature:
+1643 20401c58 call ali_mesh_model_layer_message_calc_actual_temperature 
+1644 da200122 arg vendor_attr_color_temperature_server ,rega 
+1645 20201653 branch ali_mesh_ali_vendor_message_opcode_para_uint16 
+
+ali_mesh_ali_vendor_message_opcode_timing_finish:
+1646 18438400 lshift temp ,temp 
+1647 18418411 or temp ,vendor_message_event_finish_timing ,temp 
+1648 da20f009 arg vendor_attr_type_event_trigger ,rega 
+1649 20201653 branch ali_mesh_ali_vendor_message_opcode_para_uint16 
+
+ali_mesh_ali_vendor_message_indication_info_add_head_event_trigger:
+164a 2040165a call ali_mesh_ali_vendor_message_indication_info_add_head 
+164b 5800f009 setarg vendor_attr_type_event_trigger 
+164c e7e10005 istore 2 ,contw 
+164d 20600000 rtn 
+
+ali_mesh_ali_vendor_message_opcode_para_uint8:
+164e 2040165a call ali_mesh_ali_vendor_message_indication_info_add_head 
+164f e2210005 istorer rega ,2 ,contw 
+1650 e0408005 istoret 1 ,contw 
+1651 7009f907 jam 7 ,mem_mesh_access_layer_payload_len 
+1652 20201658 branch ali_mesh_ali_vendor_message_send_message 
+
+ali_mesh_ali_vendor_message_opcode_para_uint16:
+1653 2040165a call ali_mesh_ali_vendor_message_indication_info_add_head 
+1654 e2210005 istorer rega ,2 ,contw 
+1655 e0410005 istoret 2 ,contw 
+1656 7009f908 jam 8 ,mem_mesh_access_layer_payload_len 
+1657 20201658 branch ali_mesh_ali_vendor_message_send_message 
+
+ali_mesh_ali_vendor_message_send_message:
+1658 20401caf call ali_mesh_more_element_calc_queue_address 
+1659 20201d98 branch ali_mesh_upper_transport_layer_send_access_message_without_cleat_tx_buffer 
+
+ali_mesh_ali_vendor_message_indication_info_add_head:
+165a 6fe0c92f fetch 1 ,mem_mesh_transport_aid 
+165b 67e08bfe store 1 ,mem_mesh_message_transport_head 
+165c 580000f0 setarg vendor_message_tmall_dst 
+165d 67e10c1f store 2 ,mem_mesh_send_message_dst 
+165e 6fe0c7a4 fetch 1 ,mem_mesh_vendor_mesh_send_tid 
+165f 1fe0fe01 pincrease 1 
+1660 67e0c7a4 store 1 ,mem_mesh_vendor_mesh_send_tid 
+1661 c0601669 beq vendor_message_send_tid_max ,ali_mesh_ali_vendor_message_indication_info_reset_tid 
+1662 580000d4 setarg verdor_message_attr_indication 
+1663 67e089fa store 1 ,mem_mesh_access_layer_payload 
+1664 580001a8 setarg vendor_message_opcode_company_id 
+1665 e7e10005 istore 2 ,contw 
+1666 6fe0c7a4 fetch 1 ,mem_mesh_vendor_mesh_send_tid 
+1667 e7e08005 istore 1 ,contw 
+1668 20600000 rtn 
+
+ali_mesh_ali_vendor_message_indication_info_reset_tid:
+1669 7047a480 jam vendor_message_send_tid_min ,mem_mesh_vendor_mesh_send_tid 
+166a 20600000 rtn 
+
+ali_mesh_time_function:
+166b 1c420400 copy clkn_bt ,temp 
+166c 6fe247a9 fetch 4 ,mem_system_time 
+166d 98467c00 isub temp ,null 
+166e 2041167d call ali_mesh_timer_timeout ,positive 
+166f 20401684 call ali_mesh_clkn_bt_add_1s 
+1670 98467c00 isub temp ,null 
+1671 20610000 rtn positive 
+1672 20401678 call ali_mesh_time_init_system_time_without_clk 
+1673 6fe247a5 fetch 4 ,mem_mesh_vendor_timer_current_time 
+1674 1fe0fe01 pincrease 1 
+1675 67e247a5 store 4 ,mem_mesh_vendor_timer_current_time 
+1676 20201688 branch ali_mesh_ali_vendor_check_time 
+
+ali_mesh_time_init_system_time:
+1677 1c427e00 copy clkn_bt ,pdata 
+
+ali_mesh_time_init_system_time_without_clk:
+1678 67e247a9 store 4 ,mem_system_time 
+1679 6fe0c7ac fetch 1 ,mem_system_time + 3 
+167a 1fe17e0f and_into 0x0f ,pdata 
+167b 67e0c7ac store 1 ,mem_system_time + 3 
+167c 20600000 rtn 
+
+ali_mesh_timer_timeout:
+167d 20628000 rtn zero 
+167e 1fe22400 copy pdata ,regb 
+167f 58100000 setarg 0x100000 
+1680 1fed7e00 lshift8 pdata ,pdata 
+1681 98408400 iadd temp ,temp 
+1682 1a427e00 copy regb ,pdata 
+1683 20600000 rtn 
+
+ali_mesh_clkn_bt_add_1s:
+1684 df200014 arg 20 ,loopcnt 
+
+ali_mesh_time_loop:
+1685 1fe0fea0 pincrease 160 
+1686 c2001685 loop ali_mesh_time_loop 
+1687 20600000 rtn 
+
+ali_mesh_ali_vendor_check_time:
+1688 20401ba5 call mesh_get_element_info_config 
+1689 1a20a28f add rega ,element_device_vendor_time_ptr ,rega 
+168a 7049ce00 jam 0 ,mem_mesh_receive_element_number 
+
+ali_mesh_ali_vendor_check_time_loop:
+168b 20401ca5 call ali_mesh_more_element_push_stack 
+168c efe10011 ifetch 2 ,rega 
+168d 203a1690 branch ali_mesh_ali_vendor_check_time_next_element ,blank 
+168e 1fe26000 copy pdata ,alarm 
+168f 2040169a call ali_mesh_ali_vendor_check_time_one_element 
+
+ali_mesh_ali_vendor_check_time_next_element:
+1690 20401caa call ali_mesh_more_element_pop_stack 
+1691 6fe0c9ce fetch 1 ,mem_mesh_receive_element_number 
+1692 1fe0fe01 pincrease 1 
+1693 67e0c9ce store 1 ,mem_mesh_receive_element_number 
+1694 6848c997 fetcht 1 ,mem_mesh_element_number 
+1695 98467e00 isub temp ,pdata 
+1696 20628000 rtn zero 
+1697 1a427e00 copy regb ,pdata 
+1698 9a20a200 iadd rega ,rega 
+1699 2020168b branch ali_mesh_ali_vendor_check_time_loop 
+
+ali_mesh_ali_vendor_check_time_one_element:
+169a df200028 arg 40 ,loopcnt 
+
+ali_mesh_ali_vendor_check_time_one_element_loop:
+169b 1f227e00 copy loopcnt ,pdata 
+169c 67e08be8 store 1 ,mem_mesh_loopcnt_tmep 
+169d efe08030 ifetch 1 ,alarm 
+169e 245a16a4 ncall ali_mesh_ali_vendor_had_timing ,blank 
+169f 1e00e008 increase 8 ,alarm 
+16a0 6fe08be8 fetch 1 ,mem_mesh_loopcnt_tmep 
+16a1 1fe27200 copy pdata ,loopcnt 
+16a2 c200169b loop ali_mesh_ali_vendor_check_time_one_element_loop 
+16a3 20600000 rtn 
+
+ali_mesh_ali_vendor_had_timing:
+16a4 e8440030 ifetcht 8 ,alarm 
+16a5 604c0bdd storet 8 ,mem_mesh_vendor_timer_timing_index_cyclic 
+16a6 6fe08be4 fetch 1 ,mem_mesh_vendor_timer_timing_attr_para 
+16a7 c02c96be beq timer_cyclical_falg ,ali_mesh_ali_vendor_had_timing_cyclically 
+16a8 684a47a5 fetcht 4 ,mem_mesh_vendor_timer_current_time 
+16a9 6fe20bde fetch 4 ,mem_mesh_vendor_timer_timing_time 
+16aa 98467c00 isub temp ,null 
+16ab 6fe08be4 fetch 1 ,mem_mesh_vendor_timer_timing_attr_para 
+16ac 202296ae branch ali_mesh_ali_vendor_time_timeout ,zero 
+16ad 20600000 rtn 
+
+ali_mesh_ali_vendor_time_timeout:
+16ae 67e08bdd store 1 ,mem_mesh_generic_onoff_set_payload_onoff 
+16af 6fe1497d fetch 2 ,mem_mesh_cb_generic_onoff_set 
+16b0 20407e13 call callback_func 
+16b1 1e027e00 copy alarm ,pdata 
+16b2 67e10bf0 store 2 ,mem_mesh_alarm_temp 
+16b3 68e0c9ce fetchr queue ,1 ,mem_mesh_receive_element_number 
+16b4 e8408030 ifetcht 1 ,alarm 
+16b5 20401646 call ali_mesh_ali_vendor_message_opcode_timing_finish 
+16b6 68488bdd fetcht 1 ,mem_mesh_generic_onoff_set_payload_onoff 
+16b7 68e0c9ce fetchr queue ,1 ,mem_mesh_receive_element_number 
+16b8 20401633 call ali_mesh_ali_vendor_message_opcode_generic_onoff 
+16b9 6fe10bf0 fetch 2 ,mem_mesh_alarm_temp 
+16ba 1fe26000 copy pdata ,alarm 
+16bb 58000000 setarg 0 
+16bc e7e08030 istore 1 ,alarm 
+16bd 202015f9 branch ali_mesh_ali_vendor_message_cb_timing_changed 
+
+ali_mesh_ali_vendor_had_timing_cyclically:
+16be 6fe247a5 fetch 4 ,mem_mesh_vendor_timer_current_time 
+16bf d840003c arg seconds_of_min ,temp 
+16c0 9846fc00 idiv temp 
+16c1 20407dfd call wait_div_end 
+16c2 18077e00 remainder pdata 
+16c3 247a0000 nrtn blank 
+16c4 6fe247a5 fetch 4 ,mem_mesh_vendor_timer_current_time 
+16c5 d8454600 arg seconds_of_four_days ,temp 
+16c6 98467e00 isub temp ,pdata 
+16c7 d8493a80 arg seconds_of_week ,temp 
+16c8 9846fc00 idiv temp 
+16c9 20407dfd call wait_div_end 
+16ca 18077e00 remainder pdata 
+16cb d8415180 arg seconds_of_day ,temp 
+16cc 9846fc00 idiv temp 
+16cd 20407dfd call wait_div_end 
+16ce 18072200 remainder rega 
+16cf 18078e00 quotient queue 
+16d0 58000000 setarg 0 
+16d1 f9207e00 qset1 pdata 
+16d2 68488be0 fetcht 1 ,mem_mesh_vendor_timer_timing_weekdays_cyclic 
+16d3 98417e00 iand temp ,pdata 
+16d4 207a0000 rtn blank 
+16d5 1a227e00 deposit rega 
+16d6 d840003c arg seconds_of_min ,temp 
+16d7 9846fc00 idiv temp 
+16d8 20407dfd call wait_div_end 
+16d9 18078400 quotient temp 
+16da 580001e0 setarg eight_hours_time_zone_offset 
+16db 98408400 iadd temp ,temp 
+16dc 6fe10bde fetch 2 ,mem_mesh_vendor_timer_timing_time_cyclic 
+16dd 98467c00 isub temp ,null 
+16de 24628000 nrtn zero 
+16df 6fe08be3 fetch 1 ,mem_mesh_vendor_timer_timing_attr_para_cyclic 
+16e0 202016ae branch ali_mesh_ali_vendor_time_timeout 
+
+ali_mesh_bearer_layer_send_packet_by_network_layer:
+16e1 4777c03d bpatchx patch3d_7 ,mem_patch3d 
+16e2 7047ad01 jam 1 ,mem_mesh_adv_enable 
+16e3 58000096 setarg 150 
+16e4 67e08a2c store 1 ,mem_mesh_queue_ele_timeout 
+16e5 6fe08bdc fetch 1 ,mem_mesh_lower_transport_layer_payload_len 
+16e6 1fe0fe0b pincrease 11 
+16e7 1fe0f3fe add pdata ,-2 ,loopcnt 
+16e8 67e08a2e store 1 ,mem_mesh_queue_ele_len 
+16e9 1fe0ffff pincrease -1 
+16ea e7e08005 istore 1 ,contw 
+16eb 5800002a setarg gap_adtype_mesh_message 
+16ec e7e08005 istore 1 ,contw 
+16ed d8c04a6c arg mem_mesh_send_upper_layer_ivi_and_nid ,contr 
+16ee 20407d60 call memcpy_fast 
+16ef 6fe0c958 fetch 1 ,mem_mesh_gatt_package_send_msg_id 
+16f0 1fe0fe01 pincrease 1 
+16f1 67e08a2d store 1 ,mem_mesh_queue_ele_packet_id 
+16f2 67e0c958 store 1 ,mem_mesh_gatt_package_send_msg_id 
+16f3 da200a2c arg mem_mesh_queue_ele_temp ,rega 
+16f4 2020796d branch queue_push 
+
+mesh_send_advertising:
+16f5 6fe0c7ad fetch 1 ,mem_mesh_adv_enable 
+16f6 207a0000 rtn blank 
+16f7 6fe0c930 fetch 1 ,mem_mesh_provisioned_flag 
+16f8 c0001700 beq paired_status ,mesh_send_advertising_network_packet 
+16f9 c00096fe beq unprovisioned_beacon_status ,mesh_send_advertising_unprovisioned_beacon_packet 
+
+mesh_send_advertising_pairing_packet:
+16fa 6fe0c7ad fetch 1 ,mem_mesh_adv_enable 
+16fb 203a1a80 branch ali_mesh_advertising_reset_adv_timer ,blank 
+16fc 20401a74 call ali_mesh_advertising_timer 
+16fd 20201790 branch mesh_le_send_adv 
+
+mesh_send_advertising_unprovisioned_beacon_packet:
+16fe 204019e6 call mesh_send_unprovisioned_beacons_tmall 
+16ff 202019ff branch ali_mesh_advertising_send_unprovisioned_beacons_gatt 
+
+mesh_send_advertising_network_packet:
+1700 6fe0c7ad fetch 1 ,mem_mesh_adv_enable 
+1701 207a0000 rtn blank 
+1702 d8e0000f arg mesh_adv_timer ,queue 
+1703 20407d82 call timer_check 
+1704 247a0000 nrtn blank 
+1705 7047ad00 jam 0 ,mem_mesh_adv_enable 
+1706 20401ba5 call mesh_get_element_info_config 
+1707 1a20a202 add rega ,element_device_queue_buffer ,rega 
+
+mesh_send_advertising_network_packet_loop:
+1708 6221448e storer rega ,2 ,mem_queue_ptr 
+1709 204079a4 call queue_empty 
+170a 245a1711 ncall mesh_send_advertising_network_packet_element ,blank 
+170b 1a427e00 copy regb ,pdata 
+170c 9a20a200 iadd rega ,rega 
+170d c2001708 loop mesh_send_advertising_network_packet_loop 
+170e d8e0000f arg mesh_adv_timer ,queue 
+170f 6fe147ae fetch 2 ,mem_mesh_adv_interval 
+1710 20207d74 branch timer_init 
+
+mesh_send_advertising_network_packet_element:
+1711 7047ad01 jam 1 ,mem_mesh_adv_enable 
+1712 20401ca5 call ali_mesh_more_element_push_stack 
+1713 da200a2c arg mem_mesh_queue_ele_temp ,rega 
+1714 20407995 call queue_get_new_ele 
+1715 6fe08a2c fetch 1 ,mem_mesh_queue_ele_timeout 
+1716 1fe0ffff pincrease -1 
+1717 e7e08012 istore 1 ,regb 
+1718 205a7984 call queue_pop ,blank 
+1719 d8c00a2e arg mem_mesh_queue_ele_len ,contr 
+171a d8a047b0 arg mem_mesh_adv_data_len ,contw 
+171b 20407d18 call memcpy32 
+171c 20401790 call mesh_le_send_adv 
+171d 2040171f call mesh_send_advertising_network_packet_element_ios_data 
+171e 20201caa branch ali_mesh_more_element_pop_stack 
+
+mesh_send_advertising_network_packet_element_ios_data:
+171f 6fe08a2d fetch 1 ,mem_mesh_queue_ele_packet_id 
+1720 67e08ba8 store 1 ,mem_mesh_receive_service_uuid_ios_data_msg_id 
+1721 6fe08a2e fetch 1 ,mem_mesh_queue_ele_len 
+1722 1fe0fffe pincrease -2 
+1723 67e08a2e store 1 ,mem_mesh_queue_ele_len 
+1724 58000a31 setarg mem_mesh_queue_ele_payload + 2 
+1725 67e10a2c store 2 ,mem_mesh_queue_ele_timeout 
+1726 580ea801 setarg company_id_alibaba_and_vid_gatt 
+1727 67e18ba3 store 3 ,mem_mesh_receive_service_uuid_ios_data_company_id 
+1728 58000007 setarg provisioning_send_ios_data 
+1729 67e08ba6 store 1 ,mem_mesh_receive_service_uuid_ios_data_provisioning_type 
+172a 6fe0c8ce fetch 1 ,mem_k2_nid 
+172b 67e08ba7 store 1 ,mem_mesh_receive_service_uuid_ios_data_nid 
+172c 6fe08a2e fetch 1 ,mem_mesh_queue_ele_len 
+172d 1fe6fc12 div pdata ,0x12 
+172e 20407dfd call wait_div_end 
+172f 18077e00 remainder pdata 
+1730 18078400 quotient temp 
+1731 245a1757 ncall mesh_send_advertising_network_packet_element_ios_data_add_1 ,blank 
+1732 18527e00 lshift4 temp ,pdata 
+1733 1fe0fe01 pincrease 1 
+1734 67e08ba9 store 1 ,mem_mesh_receive_service_uuid_ios_data_package_num 
+
+mesh_send_advertising_network_packet_element_ios_data_loop:
+1735 6fe08a2e fetch 1 ,mem_mesh_queue_ele_len 
+1736 207a0000 rtn blank 
+1737 d8400012 arg 0x12 ,temp 
+1738 20407e58 call not_greater_than 
+1739 1fe20400 copy pdata ,temp 
+173a 6fe08a2e fetch 1 ,mem_mesh_queue_ele_len 
+173b 98467e00 isub temp ,pdata 
+173c 67e08a2e store 1 ,mem_mesh_queue_ele_len 
+173d 60488baa storet 1 ,mem_mesh_receive_service_uuid_ios_data_length 
+173e 1840fe0d add temp ,13 ,pdata 
+173f 67e0c7b0 store 1 ,mem_mesh_adv_data_len 
+1740 58000002 setarg 0x02 
+1741 67e0c7b1 store 1 ,mem_mesh_adv_data 
+1742 58000001 setarg gap_adtype_flags 
+1743 e7e08005 istore 1 ,contw 
+1744 58000002 setarg 0x02 
+1745 e7e08005 istore 1 ,contw 
+1746 1840fe09 add temp ,9 ,pdata 
+1747 e7e08005 istore 1 ,contw 
+1748 580000ff setarg 0xff 
+1749 e7e08005 istore 1 ,contw 
+174a 6fe40ba3 fetch 8 ,mem_mesh_receive_service_uuid_ios_data_company_id 
+174b e7e40005 istore 8 ,contw 
+174c 18427200 copy temp ,loopcnt 
+174d 6fe10a2c fetch 2 ,mem_mesh_queue_ele_timeout 
+174e 1fe20c00 copy pdata ,contr 
+174f 20407d6d call memcpy 
+1750 18c27e00 copy contr ,pdata 
+1751 67e10a2c store 2 ,mem_mesh_queue_ele_timeout 
+1752 6fe08ba9 fetch 1 ,mem_mesh_receive_service_uuid_ios_data_package_num 
+1753 1fe0fe01 pincrease 1 
+1754 67e08ba9 store 1 ,mem_mesh_receive_service_uuid_ios_data_package_num 
+1755 20401790 call mesh_le_send_adv 
+1756 20201735 branch mesh_send_advertising_network_packet_element_ios_data_loop 
+
+mesh_send_advertising_network_packet_element_ios_data_add_1:
+1757 18408401 increase 1 ,temp 
+1758 20600000 rtn 
+
+mesh_send_advertising_network_packet_element_ios_data_common:
+1759 20600000 rtn 
+
+mesh_receive_advertising:
+175a 2020177c branch mesh_le_scan_adv 
+
+mesh_check_ble_rx_packet:
+175b 6fe0816b fetch 1 ,mem_le_rxbuf 
+175c 1fe17e0f and pdata ,0x0f ,pdata 
+175d c0001760 beq adv_ind ,ali_mesh_match_advertising_packet 
+175e c0011760 beq adv_nonconn_ind ,ali_mesh_match_advertising_packet 
+175f 20600000 rtn 
+
+ali_mesh_match_advertising_packet:
+1760 e8408006 ifetcht 1 ,contr 
+1761 18467c06 sub temp ,adv_packet_min_length ,null 
+1762 20610000 rtn positive 
+1763 18467c25 sub temp ,adv_packet_max_length ,null 
+1764 24610000 nrtn positive 
+1765 1840a3fa add temp ,-6 ,rega 
+1766 18c0a406 add contr ,6 ,regb 
+
+ali_mesh_find_adv_ind_packet:
+1767 e8408012 ifetcht 1 ,regb 
+1768 18467c01 sub temp ,ad_type_min_length ,null 
+1769 20610000 rtn positive 
+176a 18467c1e sub temp ,ad_type_max_length ,null 
+176b 24610000 nrtn positive 
+176c 18427e00 copy temp ,pdata 
+176d 207a0000 rtn blank 
+176e 4778403e bpatchx patch3e_0 ,mem_patch3e 
+176f efe08006 ifetch 1 ,contr 
+1770 c07f9a13 beq gap_adtype_manufacturer_specific ,ali_mesh_msd_packet 
+1771 c0151cbb beq gap_adtype_mesh_message ,ali_mesh_network_layer_recevice_network_pdu 
+1772 c0039a95 beq gap_adtype_128bit_complete ,ali_mesh_ios_gatt_packet 
+1773 1840fe01 add temp ,1 ,pdata 
+1774 9a267c00 isub rega ,null 
+1775 20610000 rtn positive 
+1776 9a40a400 iadd regb ,regb 
+1777 18467fff sub temp ,-1 ,pdata 
+1778 9a20a200 iadd rega ,rega 
+1779 1a227e00 copy rega ,pdata 
+177a 207a0000 rtn blank 
+177b 20201767 branch ali_mesh_find_adv_ind_packet 
+
+mesh_le_scan_adv:
+177c 20401eb8 call le_enable 
+177d 20402443 call le_init_adv 
+177e 20401786 call mesh_le_wait_adv 
+177f 24768000 nrtn match 
+1780 6fe08002 fetch 1 ,mem_le_adv_rcv 
+1781 1fe0fe01 pincrease 1 
+1782 67e08002 store 1 ,mem_le_adv_rcv 
+1783 6fe14977 fetch 2 ,mem_mesh_cb_receive_advertising 
+1784 20407e13 call callback_func 
+1785 20201ec2 branch le_disable 
+
+mesh_le_wait_adv:
+1786 20401788 call mesh_le_calc_next_scan_channel 
+1787 20201f5a branch le_receive_adv 
+
+mesh_le_calc_next_scan_channel:
+1788 6fe0c7d0 fetch 1 ,mem_mesh_adv_scan_channel 
+1789 1fe0fe01 pincrease 1 
+178a 67e0c7d0 store 1 ,mem_mesh_adv_scan_channel 
+178b 67e08016 store 1 ,mem_le_ch_mapped 
+178c c1940000 rtnne 40 
+178d 7047d025 jam 37 ,mem_mesh_adv_scan_channel 
+178e 70001625 jam 37 ,mem_le_ch_mapped 
+178f 20600000 rtn 
+
+mesh_le_send_adv:
+1790 6fe08000 fetch 1 ,mem_le_adv_transmit 
+1791 1fe0fe01 pincrease 1 
+1792 67e08000 store 1 ,mem_le_adv_transmit 
+1793 20401eb8 call le_enable 
+1794 df200027 arg 39 ,loopcnt 
+1795 d8c041f3 arg mem_le_txheader ,contr 
+1796 d8a00a4e arg mem_le_txheader_mesh_temp ,contw 
+1797 20407d60 call memcpy_fast 
+1798 70001625 jam 37 ,mem_le_ch_mapped 
+
+mesh_le_send_adv_loop:
+1799 20402443 call le_init_adv 
+179a 204017a9 call mesh_le_send_adv_nonconn_ind 
+179b 180a7e00 random pdata 
+179c d84001ff arg 0x1ff ,temp 
+179d 98417e00 iand temp ,pdata 
+179e 1fe0fe64 add pdata ,100 ,pdata 
+179f 20407d1c call delay 
+17a0 6fe08016 fetch 1 ,mem_le_ch_mapped 
+17a1 1fe0fe01 pincrease 1 
+17a2 67e08016 store 1 ,mem_le_ch_mapped 
+17a3 c0941799 bne 40 ,mesh_le_send_adv_loop 
+17a4 df200027 arg 39 ,loopcnt 
+17a5 d8a041f3 arg mem_le_txheader ,contw 
+17a6 d8c00a4e arg mem_le_txheader_mesh_temp ,contr 
+17a7 20407d60 call memcpy_fast 
+17a8 20201ec2 branch le_disable 
+
+mesh_le_send_adv_nonconn_ind:
+17a9 d8400002 arg adv_nonconn_ind ,temp 
+17aa 6048c1f3 storet 1 ,mem_le_txheader 
+17ab 6848c7b0 fetcht 1 ,mem_mesh_adv_data_len 
+17ac 1840fe06 add temp ,6 ,pdata 
+17ad 67e0c1f4 store 1 ,mem_le_txlen 
+17ae 6fe34378 fetch 6 ,mem_le_lap 
+17af 67e341f5 store 6 ,mem_le_txpayload 
+17b0 18427200 copy temp ,loopcnt 
+17b1 d8c047b1 arg mem_mesh_adv_data ,contr 
+17b2 20407d60 call memcpy_fast 
+17b3 20202046 branch le_transmit_norx 
+
+ali_mesh_base_adt_cache:
+17b4 68490b98 fetcht 2 ,mem_ccm_data_ptr 
+17b5 6fe08b97 fetch 1 ,mem_ccm_data_len 
+17b6 18420c00 copy temp ,contr 
+17b7 da2048ef arg mem_k4_salt ,rega 
+17b8 de0048ff arg mem_k4_t ,alarm 
+17b9 20401956 call ali_mesh_encrypt_base_function_aes_cmac 
+17ba 20407e64 call disable_user 
+17bb 1a627e00 copy regc ,pdata 
+17bc 9e008c00 iadd alarm ,contr 
+17bd 684a48ff fetcht 4 ,mem_k4_t 
+17be 6fe10bda fetch 2 ,mem_mesh_mic_cache_ptr 
+17bf 1fe22200 copy pdata ,rega 
+17c0 df20000a arg transport_mic_cache_space_num ,loopcnt 
+
+ali_mesh_base_adt_cache_loop:
+17c1 efe20011 ifetch 4 ,rega 
+17c2 203a17ce branch ali_mesh_base_adt_cache_empty_space ,blank 
+17c3 98467c00 isub temp ,null 
+17c4 20628000 rtn zero 
+17c5 1a20a204 increase transport_mic_cache_space_size ,rega 
+17c6 c20017c1 loop ali_mesh_base_adt_cache_loop 
+17c7 6fe10bda fetch 2 ,mem_mesh_mic_cache_ptr 
+17c8 1fe20a00 copy pdata ,contw 
+17c9 1fe08c04 add pdata ,transport_mic_cache_space_size ,contr 
+17ca df200024 arg transport_mic_cache_total_size ,loopcnt 
+17cb 20407d60 call memcpy_fast 
+17cc e0420005 istoret 4 ,contw 
+17cd 20207e62 branch enable_user 
+
+ali_mesh_base_adt_cache_empty_space:
+17ce e0420011 istoret 4 ,rega 
+17cf 20207e62 branch enable_user 
+
+ali_mesh_chip_peripherals_load_data_from_eep:
+17d0 204017d7 call ali_mesh_chip_peripherals_load_three_tuple_from_eep 
+17d1 204017db call ali_mesh_chip_peripherals_load_network_key_from_eep 
+17d2 204017e2 call ali_mesh_chip_peripherals_load_application_key_from_eep 
+17d3 204017e6 call ali_mesh_chip_peripherals_load_device_key_from_eep 
+17d4 204017ea call ali_mesh_chip_peripherals_load_reset_count_from_eep 
+17d5 204017ee call ali_mesh_chip_peripherals_load_seq_from_eep 
+17d6 202017f2 branch ali_mesh_chip_peripherals_load_subscription_from_eep 
+
+ali_mesh_chip_peripherals_load_three_tuple_from_eep:
+17d7 d840001a arg mesh_eep_three_tuple_length ,temp 
+17d8 da204959 arg mem_mesh_three_tuple_productid ,rega 
+17d9 da400000 arg mesh_eep_three_tuple_offset ,regb 
+17da 20205e29 branch iicd_read_eep_data 
+
+ali_mesh_chip_peripherals_load_network_key_from_eep:
+17db d8400013 arg mesh_eep_network_key_length ,temp 
+17dc da20493b arg mem_mesh_network_key ,rega 
+17dd da40001a arg mesh_eep_network_key_offset ,regb 
+17de 20405e29 call iicd_read_eep_data 
+17df 6fe0c94b fetch 1 ,mem_mesh_last_iv_index_byte 
+17e0 67e0c9d2 store 1 ,mem_mesh_iv_index + 3 
+17e1 20600000 rtn 
+
+ali_mesh_chip_peripherals_load_application_key_from_eep:
+17e2 d8400010 arg mesh_eep_application_key_length ,temp 
+17e3 da204a2d arg mem_mesh_application_key ,rega 
+17e4 da40002d arg mesh_eep_application_key_offset ,regb 
+17e5 20205e29 branch iicd_read_eep_data 
+
+ali_mesh_chip_peripherals_load_device_key_from_eep:
+17e6 d8400010 arg mesh_eep_device_key_length ,temp 
+17e7 da204821 arg mem_mesh_device_key ,rega 
+17e8 da40003d arg mesh_eep_device_key_offset ,regb 
+17e9 20205e29 branch iicd_read_eep_data 
+
+ali_mesh_chip_peripherals_load_reset_count_from_eep:
+17ea 20600000 rtn 
+17eb d8400001 arg mesh_eep_reset_count_length ,temp 
+17ec da40004d arg mesh_eep_reset_count_offset ,regb 
+17ed 20205e29 branch iicd_read_eep_data 
+
+ali_mesh_chip_peripherals_load_seq_from_eep:
+17ee d8400003 arg mesh_eep_seq_length ,temp 
+17ef da204a66 arg mem_mesh_send_message_seq ,rega 
+17f0 da40004e arg mesh_eep_seq_offset ,regb 
+17f1 20205e29 branch iicd_read_eep_data 
+
+ali_mesh_chip_peripherals_load_subscription_from_eep:
+17f2 6fe14995 fetch 2 ,mem_mesh_core_feature 
+17f3 c3810000 rtnbit1 mesh_feature_disable_subscription 
+17f4 d8400040 arg mesh_eep_subscription_total_length ,temp 
+17f5 da20098e arg mem_mesh_subscription_eep_temp ,rega 
+17f6 da400051 arg mesh_eep_subscription_offset ,regb 
+17f7 20405e29 call iicd_read_eep_data 
+17f8 20401ba5 call mesh_get_element_info_config 
+17f9 d8c0098e arg mem_mesh_subscription_eep_temp ,contr 
+17fa 1a20a291 add rega ,element_device_subscription_label ,rega 
+
+ali_mesh_chip_peripherals_load_subscription_from_eep_loop:
+17fb 1a220a00 copy rega ,contw 
+17fc 20407d1a call memcpy16 
+17fd 1a427e00 copy regb ,pdata 
+17fe 9a20a200 iadd rega ,rega 
+17ff c20017fb loop ali_mesh_chip_peripherals_load_subscription_from_eep_loop 
+1800 20600000 rtn 
+
+mesh_receive_config_appkey_add_cb:
+1801 20401804 call ali_mesh_chip_peripherals_save_network_key_from_eep 
+1802 20401808 call ali_mesh_chip_peripherals_save_application_key_from_eep 
+1803 2020180c branch ali_mesh_chip_peripherals_save_device_key_from_eep 
+
+ali_mesh_chip_peripherals_save_network_key_from_eep:
+1804 d8400013 arg mesh_eep_network_key_length ,temp 
+1805 da20493b arg mem_mesh_network_key ,rega 
+1806 da40001a arg mesh_eep_network_key_offset ,regb 
+1807 20205e4f branch iicd_write_eep_data 
+
+ali_mesh_chip_peripherals_save_application_key_from_eep:
+1808 d8400010 arg mesh_eep_application_key_length ,temp 
+1809 da204a2d arg mem_mesh_application_key ,rega 
+180a da40002d arg mesh_eep_application_key_offset ,regb 
+180b 20205e4f branch iicd_write_eep_data 
+
+ali_mesh_chip_peripherals_save_device_key_from_eep:
+180c d8400010 arg mesh_eep_device_key_length ,temp 
+180d da204821 arg mem_mesh_device_key ,rega 
+180e da40003d arg mesh_eep_device_key_offset ,regb 
+180f 20205e4f branch iicd_write_eep_data 
+
+mem_store_new_seq_data:
+
+ali_mesh_chip_peripherals_save_seq_from_eep:
+1810 d8400003 arg mesh_eep_seq_length ,temp 
+1811 da204a66 arg mem_mesh_send_message_seq ,rega 
+1812 da40004e arg mesh_eep_seq_offset ,regb 
+1813 20205e4f branch iicd_write_eep_data 
+
+mem_store_new_subscriptuion_list_data:
+
+ali_mesh_chip_peripherals_save_subscriptuion_list_from_eep:
+1814 20401ba5 call mesh_get_element_info_config 
+1815 d8a0098e arg mem_mesh_subscription_eep_temp ,contw 
+1816 1a20a291 add rega ,element_device_subscription_label ,rega 
+
+ali_mesh_chip_peripherals_save_subscriptuion_list_from_eep_loop:
+1817 1a220c00 copy rega ,contr 
+1818 20407d1a call memcpy16 
+1819 1a427e00 copy regb ,pdata 
+181a 9a20a200 iadd rega ,rega 
+181b c2001817 loop ali_mesh_chip_peripherals_save_subscriptuion_list_from_eep_loop 
+181c d8400040 arg mesh_eep_subscription_total_length ,temp 
+181d da20098e arg mem_mesh_subscription_eep_temp ,rega 
+181e da400051 arg mesh_eep_subscription_offset ,regb 
+181f 20205e4f branch iicd_write_eep_data 
+
+logging_tx_debug:
+1820 d8400000 arg logging_debug ,temp 
+1821 2020182a branch logging_tx_common 
+
+logging_tx_info:
+1822 d8400001 arg logging_info ,temp 
+1823 2020182a branch logging_tx_common 
+
+logging_tx_warning:
+1824 d8400002 arg logging_warning ,temp 
+1825 2020182a branch logging_tx_common 
+
+logging_tx_error:
+1826 d8400003 arg logging_error ,temp 
+1827 2020182a branch logging_tx_common 
+
+logging_tx_critical:
+1828 d8400004 arg logging_critical ,temp 
+1829 2020182a branch logging_tx_common 
+
+logging_tx_common:
+182a 4778c03e bpatchx patch3e_1 ,mem_patch3e 
+182b 20407cdc call push_stack 
+182c 20405f5c call uartb_prepare_tx_register_push 
+182d 580000aa setarg lua_log_packet_header 
+182e e7e08003 istore 1 ,contwu 
+182f 58000003 setarg lua_log_pakcet_type 
+1830 e7e08003 istore 1 ,contwu 
+1831 1f20fe04 add loopcnt ,4 ,pdata 
+1832 e7e08003 istore 1 ,contwu 
+1833 e0410003 istorer temp ,2 ,contwu 
+1834 e2410003 istorer regb ,2 ,contwu 
+1835 1a220c00 copy rega ,contr 
+1836 20405f6a call uart_copy_tx_bytes_fast 
+1837 580000bb setarg lua_log_packet_trail 
+1838 e7e08003 istore 1 ,contwu 
+1839 20405f60 call uartb_send_register_pop 
+183a 20207ce8 branch pop_stack 
+
+mesh_uart_init:
+183b 58001c00 setarg mem_mesh_uart_log_rx_buff 
+183c 67e1095c store 2 ,mem_pdatatemp 
+183d 58001c01 setarg mem_mesh_uart_log_rx_buff_end 
+183e e7e10005 istore 2 ,contw 
+183f 58001c02 setarg mem_mesh_uart_log_tx_buff 
+1840 e7e10005 istore 2 ,contw 
+1841 58001fff setarg mem_mesh_uart_log_tx_buff_end 
+1842 e7e10005 istore 2 ,contw 
+1843 6fe4095c fetch 8 ,mem_pdatatemp 
+1844 20405efd call uartb_init_dma_mem 
+1845 d84e1000 arg 921600 ,temp 
+1846 20405f15 call uartb_calc_baud_rate_config 
+1847 20405f22 call uart_clock_select_main_freq_crystal 
+1848 d8400081 arg fun_uart_control_enable | fun_uart_control_setting_rate_baud ,temp 
+1849 60588061 storet 1 ,core_uartb_ctrl 
+184a 20600000 rtn 
+
+ali_mesh_encrypt_calc_random_data:
+184b 20401851 call ali_mesh_encrypt_calc_random_data_calc_confirmationkey 
+184c 20401859 call ali_mesh_encrypt_calc_random_data_calc_authvalueprov 
+184d 2040185e call ali_mesh_encrypt_calc_random_data_calc_authvaluedevice 
+184e 20401863 call ali_mesh_encrypt_calc_random_data_calc_confirmationcloud 
+184f 2040186b call ali_mesh_encrypt_calc_random_data_calc_confirmationdevice 
+1850 2020186f branch ali_mesh_encrypt_calc_random_data_calc_devicekey 
+
+ali_mesh_encrypt_calc_random_data_calc_confirmationkey:
+1851 2040187c call ali_mesh_encrypt_load_randomab_to_sha256 
+1852 d8c04841 arg mem_mesh_sha256_confirmationkey_ascii ,contr 
+1853 df20000f arg 0xf ,loopcnt 
+1854 204018dc call ali_mesh_encrypt_base_function_sha256_load_data_without_hex2ascii 
+1855 204018f6 call ali_mesh_encrypt_base_function_sha256_calc 
+1856 d8c00900 arg memresult ,contr 
+1857 d8a04831 arg mem_mesh_confirmationkey ,contw 
+1858 20207d1a branch memcpy16 
+
+ali_mesh_encrypt_calc_random_data_calc_authvalueprov:
+1859 2040187f call ali_mesh_encrypt_load_three_tuple_to_sha256 
+185a 204018f6 call ali_mesh_encrypt_base_function_sha256_calc 
+185b d8c00900 arg memresult ,contr 
+185c d8a047e1 arg mem_mesh_authvalueprov ,contw 
+185d 20207d1a branch memcpy16 
+
+ali_mesh_encrypt_calc_random_data_calc_authvaluedevice:
+185e 2040187f call ali_mesh_encrypt_load_three_tuple_to_sha256 
+185f 204018f6 call ali_mesh_encrypt_base_function_sha256_calc 
+1860 d8c00900 arg memresult ,contr 
+1861 d8a04811 arg mem_mesh_authvaluedevice ,contw 
+1862 20207d1a branch memcpy16 
+
+ali_mesh_encrypt_calc_random_data_calc_confirmationcloud:
+1863 6fe44801 fetch 8 ,mem_mesh_provisioning_random_a 
+1864 67e447d9 store 8 ,mem_mesh_confirmationcloud_randoma 
+1865 6fe44809 fetch 8 ,mem_mesh_provisioning_random_b 
+1866 67e447d1 store 8 ,mem_mesh_confirmationcloud_randomb 
+1867 d8c047d1 arg mem_mesh_calc_confirmationcloud_data ,contr 
+1868 da204831 arg mem_mesh_confirmationkey ,rega 
+1869 de0047f1 arg mem_mesh_confirmationcloud ,alarm 
+186a 20201944 branch ali_mesh_encrypt_base_function_aes_cmac_32byte 
+
+ali_mesh_encrypt_calc_random_data_calc_confirmationdevice:
+186b d8c04801 arg mem_mesh_calc_confirmationdevice_data ,contr 
+186c da204831 arg mem_mesh_confirmationkey ,rega 
+186d de004801 arg mem_mesh_confirmationdevice ,alarm 
+186e 20201944 branch ali_mesh_encrypt_base_function_aes_cmac_32byte 
+
+ali_mesh_encrypt_calc_random_data_calc_devicekey:
+186f d8c047f1 arg mem_mesh_confirmationcloud ,contr 
+1870 df200010 arg 0x10 ,loopcnt 
+1871 204018d9 call ali_mesh_encrypt_base_function_sha256_load_data_with_hex2ascii 
+1872 d8c0485a arg mem_mesh_sha256_devicekey_ascii ,contr 
+1873 df200009 arg 9 ,loopcnt 
+1874 204018dc call ali_mesh_encrypt_base_function_sha256_load_data_without_hex2ascii 
+1875 204018f6 call ali_mesh_encrypt_base_function_sha256_calc 
+1876 d8c00900 arg memresult ,contr 
+1877 d8a04821 arg mem_mesh_device_key ,contw 
+1878 20207d1a branch memcpy16 
+
+ali_mesh_encrypt_load_randomba_to_sha256:
+1879 2040187d call ali_mesh_encrypt_load_randomb_to_sha256 
+
+ali_mesh_encrypt_load_randoma_to_sha256:
+187a d8c04801 arg mem_mesh_provisioning_random_a ,contr 
+187b 202018d8 branch ali_mesh_encrypt_base_function_sha256_load_data_64bit 
+
+ali_mesh_encrypt_load_randomab_to_sha256:
+187c 2040187a call ali_mesh_encrypt_load_randoma_to_sha256 
+
+ali_mesh_encrypt_load_randomb_to_sha256:
+187d d8c04809 arg mem_mesh_provisioning_random_b ,contr 
+187e 202018d8 branch ali_mesh_encrypt_base_function_sha256_load_data_64bit 
+
+ali_mesh_encrypt_load_three_tuple_to_sha256:
+187f d8c04959 arg mem_mesh_three_tuple_productid ,contr 
+1880 df200004 arg 4 ,loopcnt 
+1881 204018df call ali_mesh_encrypt_base_function_sha256_load_data_with_hex2ascii_add_comma 
+1882 d8c0495d arg mem_mesh_three_tuple_mac ,contr 
+1883 df200006 arg 6 ,loopcnt 
+1884 204018df call ali_mesh_encrypt_base_function_sha256_load_data_with_hex2ascii_add_comma 
+1885 d8c04963 arg mem_mesh_three_tuple_secret ,contr 
+1886 df200010 arg 0x10 ,loopcnt 
+1887 202018d9 branch ali_mesh_encrypt_base_function_sha256_load_data_with_hex2ascii 
+
+ali_mesh_encrypt_calc_provisioning_data:
+1888 20401894 call ali_mesh_encrypt_calc_provisioning_data_calc_sessionkey 
+
+ali_mesh_encrypt_calc_provisioning_data_xor_prov_data:
+1889 da204938 arg mem_mesh_encrypt_provisioning_data ,rega 
+188a da400900 arg memresult ,regb 
+188b df20000b arg 0xb ,loopcnt 
+
+ali_mesh_encrypt_calc_provisioning_data_xor_prov_data_loop:
+188c efe10011 ifetch 2 ,rega 
+188d e8410012 ifetcht 2 ,regb 
+188e 9842fe00 ixor temp ,pdata 
+188f e7e10011 istore 2 ,rega 
+1890 1a20a202 increase 2 ,rega 
+1891 1a40a402 increase 2 ,regb 
+1892 c200188c loop ali_mesh_encrypt_calc_provisioning_data_xor_prov_data_loop 
+1893 20600000 rtn 
+
+ali_mesh_encrypt_calc_provisioning_data_calc_sessionkey:
+1894 d8c047f1 arg mem_mesh_confirmationcloud ,contr 
+1895 df200010 arg 0x10 ,loopcnt 
+1896 204018d9 call ali_mesh_encrypt_base_function_sha256_load_data_with_hex2ascii 
+1897 d8c04850 arg mem_mesh_sha256_sessionkey_ascii ,contr 
+1898 df20000a arg 0xa ,loopcnt 
+1899 204018dc call ali_mesh_encrypt_base_function_sha256_load_data_without_hex2ascii 
+189a 202018f6 branch ali_mesh_encrypt_base_function_sha256_calc 
+
+ali_mesh_encrypt_calc_network_key_by_k2:
+189b d8c0493b arg mem_mesh_network_key ,contr 
+189c d8a0488e arg mem_k2_n ,contw 
+189d 20407d1a call memcpy16 
+
+ali_mesh_encrypt_base_function_k2:
+189e d8c0488e arg mem_k2_n ,contr 
+189f da20489e arg mem_k2_salt ,rega 
+18a0 de0048ae arg mem_k2_t ,alarm 
+18a1 20401946 call ali_mesh_encrypt_base_function_aes_cmac_16byte 
+18a2 de0048be arg mem_k2_t1 ,alarm 
+18a3 da400001 arg 0x01 ,regb 
+18a4 58000000 setarg 0 
+18a5 20401948 call ali_mesh_encrypt_base_function_k2_aes_cmac_t 
+18a6 6fe0c8cd fetch 1 ,mem_k2_t1 + 15 
+18a7 1fe17e7f and pdata ,0x7f ,pdata 
+18a8 67e0c8ce store 1 ,mem_k2_nid 
+18a9 de0048df arg mem_k2_t2 ,alarm 
+18aa da400002 arg 0x02 ,regb 
+18ab 58000010 setarg 0x10 
+18ac da2048be arg mem_k2_t1 ,rega 
+18ad 20401948 call ali_mesh_encrypt_base_function_k2_aes_cmac_t 
+18ae de0048cf arg mem_k2_t3 ,alarm 
+18af da400003 arg 0x03 ,regb 
+18b0 58000010 setarg 0x10 
+18b1 da2048df arg mem_k2_t2 ,rega 
+18b2 20201948 branch ali_mesh_encrypt_base_function_k2_aes_cmac_t 
+
+ali_mesh_encrypt_base_function_k4:
+18b3 d8c04a2d arg mem_mesh_application_key ,contr 
+18b4 da2048ef arg mem_k4_salt ,rega 
+18b5 de0048ff arg mem_k4_t ,alarm 
+18b6 20401946 call ali_mesh_encrypt_base_function_aes_cmac_16byte 
+18b7 d8c0490f arg mem_k4_id6_01 ,contr 
+18b8 da2048ff arg mem_k4_t ,rega 
+18b9 de00491f arg mem_k4_k4n ,alarm 
+18ba 58000004 setarg 4 
+18bb 20401956 call ali_mesh_encrypt_base_function_aes_cmac 
+18bc 6fe0c92e fetch 1 ,mem_k4_k4n + 15 
+18bd 1fe17e3f and pdata ,0x3f ,pdata 
+18be 79207e06 set1 transport_head_bit_akf ,pdata 
+18bf 67e0c92f store 1 ,mem_mesh_transport_aid 
+18c0 20600000 rtn 
+
+ali_mesh_encrypt_obfuscation_deceypt_send_message:
+18c1 da204a6d arg mem_mesh_send_upper_layer_ctl_and_ttl ,rega 
+18c2 6fe3ca73 fetch 7 ,mem_mesh_send_upper_layer_dst 
+18c3 202018c6 branch ali_mesh_encrypt_obfuscation_deceypt 
+
+ali_mesh_encrypt_obfuscation_deceypt_recevie_message:
+18c4 da200bf6 arg mem_mesh_message_ttl ,rega 
+18c5 6fe38bfc fetch 7 ,mem_mesh_message_dst 
+
+ali_mesh_encrypt_obfuscation_deceypt:
+18c6 67e38b7e store 7 ,mem_mesh_privacy_plaintext_privacy_random 
+18c7 58000000 setarg 0 
+18c8 67e28b75 store 5 ,mem_mesh_privacy_plaintext_zero_string 
+18c9 204018cf call ali_mesh_encrypt_generate_pecb 
+18ca 6fe30b85 fetch 6 ,mem_mesh_pecb 
+18cb e8430011 ifetcht 6 ,rega 
+18cc 9842fe00 ixor temp ,pdata 
+18cd e7e30011 istore 6 ,rega 
+18ce 20600000 rtn 
+
+ali_mesh_encrypt_generate_pecb:
+
+ali_mesh_encrypt_generate_privacy_random:
+18cf 6fe249cf fetch 4 ,mem_mesh_iv_index 
+18d0 67e20b7a store 4 ,mem_mesh_privacy_plaintext_iv_index 
+
+ali_mesh_encrypt_base_function_generate_pecb:
+18d1 d8c048cf arg mem_k2_privacykey ,contr 
+18d2 20406deb call load_key 
+18d3 d8c00b75 arg mem_mesh_privacy_plaintext ,contr 
+18d4 20406ded call load_data128 
+18d5 20406d86 call do_aes_ocb 
+18d6 d8a00b85 arg mem_mesh_pecb ,contw 
+18d7 20206dfe branch store_aes_result 
+
+ali_mesh_encrypt_base_function_sha256_load_data_64bit:
+18d8 df200008 arg 8 ,loopcnt 
+
+ali_mesh_encrypt_base_function_sha256_load_data_with_hex2ascii:
+18d9 204018e6 call ali_mesh_encrypt_base_function_sha256_check_first_load_data 
+18da 20401935 call ali_mesh_encrypt_base_function_hex2ascii 
+18db 202018e3 branch ali_mesh_encrypt_base_function_sha256_store_dataptr 
+
+ali_mesh_encrypt_base_function_sha256_load_data_without_hex2ascii:
+18dc 204018e6 call ali_mesh_encrypt_base_function_sha256_check_first_load_data 
+18dd 20407d6d call memcpy 
+18de 202018e3 branch ali_mesh_encrypt_base_function_sha256_store_dataptr 
+
+ali_mesh_encrypt_base_function_sha256_load_data_with_hex2ascii_add_comma:
+18df 204018e6 call ali_mesh_encrypt_base_function_sha256_check_first_load_data 
+18e0 20401935 call ali_mesh_encrypt_base_function_hex2ascii 
+18e1 5800002c setarg comma 
+18e2 e7e08005 istore 1 ,contw 
+
+ali_mesh_encrypt_base_function_sha256_store_dataptr:
+18e3 18a27e00 copy contw ,pdata 
+18e4 67e14874 store 2 ,mem_mesh_sha256_data_end_addr 
+18e5 20600000 rtn 
+
+ali_mesh_encrypt_base_function_sha256_check_first_load_data:
+18e6 18c20400 copy contr ,temp 
+18e7 1f222200 copy loopcnt ,rega 
+18e8 6fe14874 fetch 2 ,mem_mesh_sha256_data_end_addr 
+18e9 1fe20a00 copy pdata ,contw 
+18ea 6fe0c863 fetch 1 ,mem_mesh_sha256_load_first_data_flag 
+18eb 205a18ef call ali_mesh_encrypt_base_function_sha256_first_load_data ,blank 
+18ec 18420c00 copy temp ,contr 
+18ed 1a227200 copy rega ,loopcnt 
+18ee 20600000 rtn 
+
+ali_mesh_encrypt_base_function_sha256_first_load_data:
+18ef 70486301 jam 1 ,mem_mesh_sha256_load_first_data_flag 
+18f0 204018f3 call ali_mesh_encrypt_base_function_sha256_clear_data_chunk 
+18f1 d8a00a75 arg mem_mesh_sha256_chunk_start ,contw 
+18f2 20600000 rtn 
+
+ali_mesh_encrypt_base_function_sha256_clear_data_chunk:
+18f3 df200020 arg 0x20 ,loopcnt 
+18f4 d8a00a75 arg mem_mesh_sha256_chunk_start ,contw 
+18f5 20207d25 branch memset0 
+
+ali_mesh_encrypt_base_function_sha256_calc:
+18f6 20401913 call ali_mesh_encrypt_base_function_sha256_load_data_end 
+18f7 da400010 arg mesh_encrypt_sha256_function_input ,regb 
+18f8 da200a75 arg mem_mesh_sha256_chunk_start ,rega 
+18f9 6f244864 fetchr loopcnt ,8 ,mem_mesh_sha256_data_len_byte 
+18fa 20401820 call logging_tx_debug 
+18fb 2040192e call ali_mesh_encrypt_base_function_sha256_input_data_init_inverse 
+18fc 58000a75 setarg mem_mesh_sha256_chunk_start 
+18fd 67e1487b store 2 ,mem_mesh_sha256_chunk_ptr 
+18fe 204072c8 call sha_init 
+
+ali_mesh_encrypt_base_function_sha256_calc_loop:
+18ff 6fe1487b fetch 2 ,mem_mesh_sha256_chunk_ptr 
+1900 1fe20c00 copy pdata ,contr 
+1901 d8a004a8 arg memdat ,contw 
+1902 20407d0d call memcpy64 
+1903 204072cf call sha 
+1904 6fe1487b fetch 2 ,mem_mesh_sha256_chunk_ptr 
+1905 1fe0fe40 pincrease 64 
+1906 67e1487b store 2 ,mem_mesh_sha256_chunk_ptr 
+1907 6fe0c878 fetch 1 ,mem_mesh_sha256_chunk_count 
+1908 1fe0ffff pincrease -1 
+1909 67e0c878 store 1 ,mem_mesh_sha256_chunk_count 
+190a 243a18ff nbranch ali_mesh_encrypt_base_function_sha256_calc_loop ,blank 
+190b 2040730b call sha_result 
+190c da200900 arg memresult ,rega 
+190d df200020 arg 0x20 ,loopcnt 
+190e 20407d45 call inverse_data 
+190f da400011 arg mesh_encrypt_sha256_function_result ,regb 
+1910 da200900 arg memresult ,rega 
+1911 df200020 arg 0x20 ,loopcnt 
+1912 20201820 branch logging_tx_debug 
+
+ali_mesh_encrypt_base_function_sha256_load_data_end:
+1913 70486300 jam 0 ,mem_mesh_sha256_load_first_data_flag 
+1914 6fe14874 fetch 2 ,mem_mesh_sha256_data_end_addr 
+1915 1fe20a00 copy pdata ,contw 
+1916 d8400080 arg 0x80 ,temp 
+1917 e0408005 istoret 1 ,contw 
+1918 d8400a75 arg mem_mesh_sha256_chunk_start ,temp 
+1919 98467e00 isub temp ,pdata 
+191a 67e44864 store 8 ,mem_mesh_sha256_data_len_byte 
+191b 1fe98400 lshift3 pdata ,temp 
+191c 604c486c storet 8 ,mem_mesh_sha256_data_len_bit 
+191d 1ff1a600 rshift4 pdata ,regc 
+191e 1a6b2600 rshift2 regc ,regc 
+191f 1fe17e3f and pdata ,0x3f ,pdata 
+1920 1fe67c37 sub pdata ,55 ,null 
+1921 2441192c ncall ali_mesh_encrypt_base_function_sha256_add_chunk ,positive 
+1922 1a60fe01 add regc ,1 ,pdata 
+1923 67e0c878 store 1 ,mem_mesh_sha256_chunk_count 
+1924 1fefa240 mul32 pdata ,64 ,rega 
+1925 1ff22600 lshift4 pdata ,regc 
+1926 1a60a7ff increase -1 ,regc 
+1927 58000a71 setarg mem_mesh_sha256_chunk_start + decreased_four 
+1928 9a20a200 iadd rega ,rega 
+1929 6fe2486c fetch 4 ,mem_mesh_sha256_data_len_bit 
+192a e7e20011 istore 4 ,rega 
+192b 20600000 rtn 
+
+ali_mesh_encrypt_base_function_sha256_add_chunk:
+192c 1a60a601 increase 1 ,regc 
+192d 20600000 rtn 
+
+ali_mesh_encrypt_base_function_sha256_input_data_init_inverse:
+192e da200a75 arg mem_mesh_sha256_chunk_start ,rega 
+
+ali_mesh_encrypt_base_function_sha256_data_inverse_4byte:
+192f df200004 arg 4 ,loopcnt 
+1930 20407d45 call inverse_data 
+1931 1a20a202 increase 2 ,rega 
+1932 1a60a7ff add regc ,-1 ,regc 
+1933 2422992f nbranch ali_mesh_encrypt_base_function_sha256_data_inverse_4byte ,zero 
+1934 20600000 rtn 
+
+ali_mesh_encrypt_base_function_hex2ascii:
+1935 efe08006 ifetch 1 ,contr 
+1936 1ff18400 rshift4 pdata ,temp 
+1937 2040193e call ali_mesh_encrypt_base_function_dialog2uchar 
+1938 e0408005 istoret 1 ,contw 
+1939 1fe1040f and pdata ,0x0f ,temp 
+193a 2040193e call ali_mesh_encrypt_base_function_dialog2uchar 
+193b e0408005 istoret 1 ,contw 
+193c c2001935 loop ali_mesh_encrypt_base_function_hex2ascii 
+193d 20600000 rtn 
+
+ali_mesh_encrypt_base_function_dialog2uchar:
+193e 18467c09 sub temp ,9 ,null 
+193f 20211942 branch ali_mesh_encrypt_base_function_dialog2uchar_num ,positive 
+1940 18408457 add temp ,87 ,temp 
+1941 20600000 rtn 
+
+ali_mesh_encrypt_base_function_dialog2uchar_num:
+1942 18408430 add temp ,48 ,temp 
+1943 20600000 rtn 
+
+ali_mesh_encrypt_base_function_aes_cmac_32byte:
+1944 58000020 setarg 0x20 
+1945 20201956 branch ali_mesh_encrypt_base_function_aes_cmac 
+
+ali_mesh_encrypt_base_function_aes_cmac_16byte:
+1946 58000010 setarg 0x10 
+1947 20201956 branch ali_mesh_encrypt_base_function_aes_cmac 
+
+ali_mesh_encrypt_base_function_k2_aes_cmac_t:
+1948 6848c87d fetcht 1 ,mem_k2_p_len 
+1949 18408401 increase 1 ,temp 
+194a 98408400 iadd temp ,temp 
+194b 604884a7 storet 1 ,mem_aes_cmac_data_length 
+194c 1a220c00 copy rega ,contr 
+194d 1fe27200 copy pdata ,loopcnt 
+194e 20407d60 call memcpy_fast 
+194f 6848c87d fetcht 1 ,mem_k2_p_len 
+1950 18427200 copy temp ,loopcnt 
+1951 20407d6d call memcpy 
+1952 1a427e00 copy regb ,pdata 
+1953 e7e08005 istore 1 ,contw 
+1954 da2048ae arg mem_k2_t ,rega 
+1955 20201959 branch ali_mesh_encrypt_base_function_aes_cmac + 3 
+
+ali_mesh_encrypt_base_function_aes_cmac:
+1956 67e084a7 store 1 ,mem_aes_cmac_data_length 
+1957 1fe27200 copy pdata ,loopcnt 
+1958 20407d60 call memcpy_fast 
+1959 1a220c00 copy rega ,contr 
+195a d8a0098e arg mem_aes_cmac_k ,contw 
+195b 20407d1a call memcpy16 
+195c da400012 arg mesh_encrypt_aes_cmac_function_input_m ,regb 
+195d da2004a8 arg memdat ,rega 
+195e 6f2084a7 fetchr loopcnt ,1 ,mem_aes_cmac_data_length 
+195f 20401820 call logging_tx_debug 
+1960 da400013 arg mesh_encrypt_aes_cmac_function_input_k ,regb 
+1961 da20098e arg mem_aes_cmac_k ,rega 
+1962 df200010 arg 16 ,loopcnt 
+1963 20401820 call logging_tx_debug 
+1964 20406ab1 call function_aes_cmac 
+1965 1e020a00 copy alarm ,contw 
+1966 20406dfe call store_aes_result 
+1967 da400014 arg mesh_encrypt_aes_cmac_function_result ,regb 
+1968 1e022200 copy alarm ,rega 
+1969 df200010 arg 16 ,loopcnt 
+196a 20201820 branch logging_tx_debug 
+
+ali_b0_block_generate:
+196b 68488ba2 fetcht 1 ,mem_ccm_type 
+196c 2020196e branch ali_block_generate 
+
+ali_a_block_generate:
+196d 18000401 force 0x01 ,temp 
+
+ali_block_generate:
+196e 18007000 force regidx_data ,regext_index 
+196f 6fe10b95 fetch 2 ,mem_nonce_ptr 
+1970 1fe20c00 copy pdata ,contr 
+1971 efe18006 ifetch 3 ,contr 
+1972 1fed7e00 lshift8 pdata ,pdata 
+1973 9841de00 ior temp ,regext 
+1974 1f00f001 increase 1 ,regext_index 
+1975 efe20006 ifetch 4 ,contr 
+1976 1fe25e00 copy pdata ,regext 
+1977 1f00f001 increase 1 ,regext_index 
+1978 efe20006 ifetch 4 ,contr 
+1979 1fe25e00 copy pdata ,regext 
+197a 1f00f001 increase 1 ,regext_index 
+197b 1a30de00 byteswap rega ,regext 
+197c 1df05e00 lshift16 regext ,regext 
+197d efe10006 ifetch 2 ,contr 
+197e 9de1de00 ior regext ,regext 
+197f 20600000 rtn 
+
+ali_generate_mic:
+1980 6fe08b97 fetch 1 ,mem_ccm_data_len 
+1981 1fe22200 copy pdata ,rega 
+1982 2040196b call ali_b0_block_generate 
+1983 20406d86 call do_aes_ocb 
+1984 1800700c force regidx_result ,regext_index 
+1985 1de27e00 deposit regext 
+1986 1a227200 copy rega ,loopcnt 
+1987 68490b98 fetcht 2 ,mem_ccm_data_ptr 
+1988 18420c00 copy temp ,contr 
+1989 20406dd5 call padding_data 
+198a 20206cb3 branch generate_mic_loop 
+
+ali_ccm_encrypt_64bit:
+198b 700ba219 jam mic_size_64bit ,mem_ccm_type 
+198c 2020198f branch ali_ccm_encrypt_function 
+
+ali_ccm_encrypt:
+198d 700ba209 jam mic_size_32bit ,mem_ccm_type 
+198e 2020198f branch ali_ccm_encrypt_function 
+
+ali_ccm_encrypt_function:
+198f 67e08b97 store 1 ,mem_ccm_data_len 
+1990 60490b98 storet 2 ,mem_ccm_data_ptr 
+1991 4779403e bpatchx patch3e_2 ,mem_patch3e 
+1992 20401980 call ali_generate_mic 
+1993 18007008 force regidx_xor ,regext_index 
+1994 98005e00 iforce regext 
+1995 1800700d force regidx_result + 1 ,regext_index 
+1996 1de27e00 copy regext ,pdata 
+1997 18007009 force regidx_xor + 1 ,regext_index 
+1998 98005e00 iforce regext 
+1999 18002200 force 0 ,rega 
+199a 18422600 copy temp ,regc 
+199b 2040196d call ali_a_block_generate 
+199c 20406d8c call do_aes_ctr 
+199d 204019ce call ali_fetcht_ccm_mic 
+199e 604c0b9a storet 8 ,mem_ccm_mic 
+199f 6fe08b97 fetch 1 ,mem_ccm_data_len 
+19a0 1fe22400 copy pdata ,regb 
+19a1 204019d6 call ali_aes_crypt_data 
+19a2 68488b97 fetcht 1 ,mem_ccm_data_len 
+19a3 6fe10b98 fetch 2 ,mem_ccm_data_ptr 
+19a4 9840a200 iadd temp ,rega 
+19a5 684c0b9a fetcht 8 ,mem_ccm_mic 
+19a6 e0420011 istoret 4 ,rega 
+19a7 6fe08ba2 fetch 1 ,mem_ccm_type 
+19a8 1fe67e09 sub pdata ,mic_size_32bit ,pdata 
+19a9 207a0000 rtn blank 
+19aa e0440011 istoret 8 ,rega 
+19ab 20600000 rtn 
+
+ali_ccm_decrypt_64bit:
+19ac 700ba219 jam mic_size_64bit ,mem_ccm_type 
+19ad 202019b0 branch ali_ccm_decrypt_function 
+
+ali_ccm_decrypt:
+19ae 700ba209 jam mic_size_32bit ,mem_ccm_type 
+19af 202019b0 branch ali_ccm_decrypt_function 
+
+ali_ccm_decrypt_function:
+19b0 67e08b97 store 1 ,mem_ccm_data_len 
+19b1 60490b98 storet 2 ,mem_ccm_data_ptr 
+19b2 18422600 copy temp ,regc 
+19b3 1fe22400 copy pdata ,regb 
+19b4 9a608c00 iadd regc ,contr 
+19b5 4779c03e bpatchx patch3e_3 ,mem_patch3e 
+19b6 efe40006 ifetch 8 ,contr 
+19b7 18007008 force regidx_xor ,regext_index 
+19b8 98005e00 iforce regext 
+19b9 18007009 force regidx_xor + 1 ,regext_index 
+19ba 1fef7e00 rshift32 pdata ,pdata 
+19bb 98005e00 iforce regext 
+19bc 18002200 force 0 ,rega 
+19bd 2040196d call ali_a_block_generate 
+19be 20406d8c call do_aes_ctr 
+19bf 204019ce call ali_fetcht_ccm_mic 
+19c0 604c0b9a storet 8 ,mem_ccm_mic 
+19c1 204019d6 call ali_aes_crypt_data 
+19c2 20401980 call ali_generate_mic 
+19c3 204019ce call ali_fetcht_ccm_mic 
+19c4 6fe08ba2 fetch 1 ,mem_ccm_type 
+19c5 c00c99cb beq mic_size_64bit ,ali_ccm_decrypt_function_check_mic64 
+19c6 604a0b9e storet 4 ,mem_ccm_mic + 4 
+19c7 6fe20b9a fetch 4 ,mem_ccm_mic 
+19c8 684a0b9e fetcht 4 ,mem_ccm_mic + 4 
+19c9 98467e00 isub temp ,pdata 
+19ca 20600000 rtn 
+
+ali_ccm_decrypt_function_check_mic64:
+19cb 6fe40b9a fetch 8 ,mem_ccm_mic 
+19cc 98467e00 isub temp ,pdata 
+19cd 20600000 rtn 
+
+ali_fetcht_ccm_mic:
+19ce 1800700c force regidx_result ,regext_index 
+19cf 1de27e00 deposit regext 
+19d0 1800700d force regidx_result + 1 ,regext_index 
+19d1 1de20400 copy regext ,temp 
+19d2 18500400 lshift16 temp ,temp 
+19d3 18500400 lshift16 temp ,temp 
+19d4 98418400 ior temp ,temp 
+19d5 20600000 rtn 
+
+ali_aes_crypt_data:
+19d6 1a20a201 increase 1 ,rega 
+19d7 2040196d call ali_a_block_generate 
+19d8 1a620c00 copy regc ,contr 
+19d9 20406de9 call aes_load_xor 
+19da 20406d8c call do_aes_ctr 
+19db 20406e05 call store_enc_data 
+19dc 1a60a610 increase 16 ,regc 
+19dd 1a40a5f0 increase -16 ,regb 
+19de 202119d6 branch ali_aes_crypt_data ,positive 
+19df 20600000 rtn 
+
+mesh_send_unprovisioned_beacons:
+19e0 70495600 jam 0 ,mem_mesh_gatt_package_receive_msg_id_last 
+19e1 70495700 jam 0 ,mem_mesh_gatt_package_receive_msg_id_new 
+19e2 70493001 jam unprovisioned_beacon_status ,mem_mesh_provisioned_flag 
+19e3 70493100 jam 0x00 ,mem_mesh_provisioning_state_flag 
+19e4 7047ad01 jam 1 ,mem_mesh_adv_enable 
+19e5 20600000 rtn 
+
+mesh_send_unprovisioned_beacons_tmall:
+19e6 204019e8 call ali_mesh_config_device_uuid_by_three_tuple 
+19e7 202019f3 branch ali_mesh_advertising_send_unprovisioned_beacons_tmall 
+
+ali_mesh_config_device_uuid_by_three_tuple:
+19e8 580001a8 setarg company_identifiers_alibaba 
+19e9 67e10ba3 store 2 ,mem_mesh_device_uuid 
+19ea 6fe0c932 fetch 1 ,mem_mesh_device_pid 
+19eb e7e08005 istore 1 ,contw 
+19ec 6fe24973 fetch 4 ,mem_mesh_three_tuple_productid_little_endian 
+19ed e7e20005 istore 4 ,contw 
+19ee 6fe34378 fetch 6 ,mem_le_lap 
+19ef e7e30005 istore 6 ,contw 
+19f0 6fe1c933 fetch 3 ,mem_mesh_uuid_featureflag 
+19f1 e7e18005 istore 3 ,contw 
+19f2 20600000 rtn 
+
+ali_mesh_advertising_send_unprovisioned_beacons_tmall:
+19f3 7047b015 jam 0x15 ,mem_mesh_adv_data_len 
+19f4 58000014 setarg 0x14 
+19f5 67e0c7b1 store 1 ,mem_mesh_adv_data 
+19f6 5800002b setarg gap_adtype_mesh_beacon 
+19f7 e7e08005 istore 1 ,contw 
+19f8 58000000 setarg unprovisioned_device_beacon 
+19f9 e7e08005 istore 1 ,contw 
+
+ali_mesh_advertising_send_unprovisioned_beacons_store_device_uuid:
+19fa d8c00ba3 arg mem_mesh_device_uuid ,contr 
+19fb 20407d1a call memcpy16 
+19fc 6fe14936 fetch 2 ,mem_mesh_oob_information 
+19fd e7e10005 istore 2 ,contw 
+19fe 20201790 branch mesh_le_send_adv 
+
+ali_mesh_advertising_send_unprovisioned_beacons_gatt:
+19ff 7047b01d jam 0x1d ,mem_mesh_adv_data_len 
+1a00 58000002 setarg 0x02 
+1a01 67e0c7b1 store 1 ,mem_mesh_adv_data 
+1a02 58000001 setarg gap_adtype_flags 
+1a03 e7e08005 istore 1 ,contw 
+1a04 58000002 setarg 0x02 
+1a05 e7e08005 istore 1 ,contw 
+1a06 58000003 setarg 0x03 
+1a07 e7e08005 istore 1 ,contw 
+1a08 58000003 setarg gap_adtype_16bit_complete 
+1a09 e7e08005 istore 1 ,contw 
+1a0a 58001827 setarg mesh_provisioning_uuid 
+1a0b e7e10005 istore 2 ,contw 
+1a0c 58000015 setarg 0x15 
+1a0d e7e08005 istore 1 ,contw 
+1a0e 58000016 setarg gap_adtype_service_data 
+1a0f e7e08005 istore 1 ,contw 
+1a10 58001827 setarg mesh_provisioning_uuid 
+1a11 e7e10005 istore 2 ,contw 
+1a12 202019fa branch ali_mesh_advertising_send_unprovisioned_beacons_store_device_uuid 
+
+ali_mesh_msd_packet:
+1a13 18427200 copy temp ,loopcnt 
+1a14 18c22200 copy contr ,rega 
+1a15 e8410011 ifetcht 2 ,rega 
+1a16 580001a8 setarg company_identifiers_alibaba 
+1a17 1ff0fe00 byteswap pdata ,pdata 
+1a18 98467c00 isub temp ,null 
+1a19 24628000 nrtn zero 
+1a1a efe08006 ifetch 1 ,contr 
+1a1b 67e08bd9 store 1 ,mem_mesh_receive_vid 
+1a1c 18c22200 copy contr ,rega 
+1a1d 20401a83 call logging_tx_debug_receive_provisioning_packet 
+1a1e 477a403e bpatchx patch3e_4 ,mem_patch3e 
+1a1f efe08006 ifetch 1 ,contr 
+1a20 c0001a24 beq provisioning_random ,ali_mesh_advertising_receive_privisioning_random 
+1a21 c0011a3b beq provisioning_data ,ali_mesh_advertising_receive_privisioning_data 
+1a22 c0031a58 beq provisioning_ios_data ,ali_mesh_advertising_receive_privisioning_ios_data 
+1a23 20600000 rtn 
+
+ali_mesh_advertising_receive_privisioning_random:
+1a24 e8410006 ifetcht 2 ,contr 
+1a25 d8a04801 arg mem_mesh_provisioning_random_a ,contw 
+1a26 20407d1a call memcpy16 
+1a27 6fe14961 fetch 2 ,mem_mesh_three_tuple_mac + 4 
+1a28 98467c00 isub temp ,null 
+1a29 24628000 nrtn zero 
+1a2a 70493002 jam pairing_status ,mem_mesh_provisioned_flag 
+1a2b 20401a85 call loggint_tx_info_receive_random_packet 
+1a2c 6fe0c931 fetch 1 ,mem_mesh_provisioning_state_flag 
+1a2d c3808000 rtnbit1 receive_provisioning_random 
+1a2e 79207e01 set1 receive_provisioning_random ,pdata 
+1a2f 67e0c931 store 1 ,mem_mesh_provisioning_state_flag 
+
+ali_mesh_advertising_calc_encrypt_random_data:
+1a30 2040184b call ali_mesh_encrypt_calc_random_data 
+1a31 20401a33 call ali_mesh_advertising_send_provisioning_confirmation 
+1a32 20201a89 branch loggint_tx_info_send_confirmation_packet 
+
+ali_mesh_advertising_send_provisioning_confirmation:
+1a33 d8400012 arg provisioning_packet_confirmation_mac + provisioning_packet_confirmation_device ,temp 
+1a34 20401a5f call ali_mesh_advertising_send_packet_common 
+1a35 58000001 setarg provisioning_confirmation 
+1a36 e7e08005 istore 1 ,contw 
+1a37 6fe14961 fetch 2 ,mem_mesh_three_tuple_mac + 4 
+1a38 e7e10005 istore 2 ,contw 
+1a39 d8c04801 arg mem_mesh_confirmationdevice ,contr 
+1a3a 20207d1a branch memcpy16 
+
+ali_mesh_advertising_receive_privisioning_data:
+1a3b 18c22200 copy contr ,rega 
+1a3c 6fe0c931 fetch 1 ,mem_mesh_provisioning_state_flag 
+1a3d c4008000 rtnbit0 receive_provisioning_random 
+1a3e c3810000 rtnbit1 receive_provisioning_data 
+1a3f 1a220c00 copy rega ,contr 
+1a40 df200016 arg 0x16 ,loopcnt 
+1a41 d8a04938 arg mem_mesh_encrypt_provisioning_data ,contw 
+1a42 20407d6d call memcpy 
+1a43 20401888 call ali_mesh_encrypt_calc_provisioning_data 
+1a44 68494938 fetcht 2 ,mem_mesh_provisioning_data_mac_addr 
+1a45 6fe14961 fetch 2 ,mem_mesh_three_tuple_mac + 4 
+1a46 98467c00 isub temp ,null 
+1a47 24628000 nrtn zero 
+1a48 20401a8d call loggint_tx_info_receive_data_packet 
+1a49 6fe0c931 fetch 1 ,mem_mesh_provisioning_state_flag 
+1a4a 79207e02 set1 receive_provisioning_data ,pdata 
+1a4b 67e0c931 store 1 ,mem_mesh_provisioning_state_flag 
+1a4c 2040189b call ali_mesh_encrypt_calc_network_key_by_k2 
+1a4d 6fe0c94b fetch 1 ,mem_mesh_last_iv_index_byte 
+1a4e 67e0c9d2 store 1 ,mem_mesh_iv_index + 3 
+1a4f 20401a51 call ali_mesh_advertising_send_provisioning_complete 
+1a50 20201a91 branch loggint_tx_info_send_complete_packet 
+
+ali_mesh_advertising_send_provisioning_complete:
+1a51 d8400006 arg provisioning_packet_complete_mac ,temp 
+1a52 20401a5f call ali_mesh_advertising_send_packet_common 
+1a53 58000003 setarg provisioning_complete 
+1a54 e7e08005 istore 1 ,contw 
+1a55 6fe3495d fetch 6 ,mem_mesh_three_tuple_mac 
+1a56 e7e30005 istore 6 ,contw 
+1a57 20600000 rtn 
+
+ali_mesh_advertising_receive_privisioning_ios_data:
+1a58 efe08006 ifetch 1 ,contr 
+1a59 18c22200 copy contr ,rega 
+1a5a 6848c8ce fetcht 1 ,mem_k2_nid 
+1a5b 98467c00 isub temp ,null 
+1a5c 24628000 nrtn zero 
+1a5d da400012 arg 0x12 ,regb 
+1a5e 20201ad4 branch ali_mesh_resolve_app_package 
+
+ali_mesh_advertising_send_packet_common:
+1a5f 58008fff setarg 0x8fff 
+1a60 67e14952 store 2 ,mem_mesh_send_packet_timeout 
+1a61 7047ad01 jam 1 ,mem_mesh_adv_enable 
+1a62 1840fe09 add temp ,provisioning_packet_length_ad_type_company_id_vid_provisioning_type + provisioning_packet_length_flags ,pdata 
+1a63 67e0c7b0 store 1 ,mem_mesh_adv_data_len 
+1a64 58000002 setarg 0x02 
+1a65 67e0c7b1 store 1 ,mem_mesh_adv_data 
+1a66 58000001 setarg gap_adtype_flags 
+1a67 e7e08005 istore 1 ,contw 
+1a68 58000002 setarg 0x02 
+1a69 e7e08005 istore 1 ,contw 
+1a6a 1840fe05 add temp ,provisioning_packet_ad_type_company_id_vid_provisioning_type ,pdata 
+1a6b e7e08005 istore 1 ,contw 
+1a6c 580000ff setarg gap_adtype_manufacturer_specific 
+1a6d e7e08005 istore 1 ,contw 
+1a6e 580001a8 setarg company_identifiers_alibaba 
+1a6f 1ff0fe00 byteswap pdata ,pdata 
+1a70 e7e10005 istore 2 ,contw 
+1a71 6fe08bd9 fetch 1 ,mem_mesh_receive_vid 
+1a72 e7e08005 istore 1 ,contw 
+1a73 20600000 rtn 
+
+ali_mesh_advertising_timer:
+1a74 6fe0c930 fetch 1 ,mem_mesh_provisioned_flag 
+1a75 c1008000 rtneq unprovisioned_beacon_status 
+1a76 6fe2494e fetch 4 ,mem_mesh_adv_last_time 
+1a77 243a1a79 nbranch ali_mesh_advertising_check_adv_timer ,blank 
+1a78 20201a80 branch ali_mesh_advertising_reset_adv_timer 
+
+ali_mesh_advertising_check_adv_timer:
+1a79 1c427e00 deposit clkn_bt 
+1a7a 684a494e fetcht 4 ,mem_mesh_adv_last_time 
+1a7b 98460400 isub temp ,temp 
+1a7c 6fe14952 fetch 2 ,mem_mesh_send_packet_timeout 
+1a7d 98467c00 isub temp ,null 
+1a7e 20610000 rtn positive 
+
+ali_mesh_advertising_adv_timer_timeout:
+1a7f 70442500 jam 0 ,mem_le_adv_enable 
+
+ali_mesh_advertising_reset_adv_timer:
+1a80 1c427e00 deposit clkn_bt 
+1a81 67e2494e store 4 ,mem_mesh_adv_last_time 
+1a82 20600000 rtn 
+
+logging_tx_debug_receive_provisioning_packet:
+1a83 da400001 arg mesh_receive_provisioning_packet ,regb 
+1a84 20201820 branch logging_tx_debug 
+
+loggint_tx_info_receive_random_packet:
+1a85 df200001 arg 1 ,loopcnt 
+1a86 da400002 arg mesh_receive_provisioning_random_packet ,regb 
+1a87 da204931 arg mem_mesh_provisioning_state_flag ,rega 
+1a88 20201822 branch logging_tx_info 
+
+loggint_tx_info_send_confirmation_packet:
+1a89 6f20c7b0 fetchr loopcnt ,1 ,mem_mesh_adv_data_len 
+1a8a da400003 arg mesh_send_provisioning_confirmation_packet ,regb 
+1a8b da2047b1 arg mem_mesh_adv_data ,rega 
+1a8c 20201822 branch logging_tx_info 
+
+loggint_tx_info_receive_data_packet:
+1a8d df200001 arg 1 ,loopcnt 
+1a8e da400004 arg mesh_receive_provisioning_data_packet ,regb 
+1a8f da204931 arg mem_mesh_provisioning_state_flag ,rega 
+1a90 20201822 branch logging_tx_info 
+
+loggint_tx_info_send_complete_packet:
+1a91 6f20c7b0 fetchr loopcnt ,1 ,mem_mesh_adv_data_len 
+1a92 da400005 arg mesh_send_provisioning_complete_packet ,regb 
+1a93 da2047b1 arg mem_mesh_adv_data ,rega 
+1a94 20201822 branch logging_tx_info 
+
+ali_mesh_ios_gatt_packet:
+1a95 d8a00ba3 arg mem_mesh_receive_service_uuid_company_id ,contw 
+1a96 20407d1a call memcpy16 
+1a97 da200ba3 arg mem_mesh_receive_service_uuid_company_id ,rega 
+1a98 df200010 arg 16 ,loopcnt 
+1a99 20407d45 call inverse_data 
+1a9a 68498ba3 fetcht 3 ,mem_mesh_receive_service_uuid_company_id 
+1a9b 580ea801 setarg company_id_alibaba_and_vid_gatt 
+1a9c 98467c00 isub temp ,null 
+1a9d 24628000 nrtn zero 
+1a9e 477ac03e bpatchx patch3e_5 ,mem_patch3e 
+1a9f 6fe08ba6 fetch 1 ,mem_mesh_receive_service_uuid_ios_data_provisioning_type 
+1aa0 c0031ace beq provisioning_ios_data ,ali_mesh_no_network_equipment_packet_gatt_provisioning_ios_data 
+
+ali_mesh_ios_gatt_packet_pairing_type:
+1aa1 6fe0c930 fetch 1 ,mem_mesh_provisioned_flag 
+1aa2 c1000000 rtneq paired_status 
+1aa3 6fe10ba7 fetch 2 ,mem_mesh_receive_service_uuid_mac 
+1aa4 68494961 fetcht 2 ,mem_mesh_three_tuple_mac + 4 
+1aa5 98467c00 isub temp ,null 
+1aa6 24628000 nrtn zero 
+1aa7 da200ba9 arg mem_mesh_receive_service_uuid_msg_id ,rega 
+1aa8 da400007 arg 0x07 ,regb 
+1aa9 20401ade call ali_mesh_gatt_packet_check_msgid_packagenum_length 
+1aaa 20740000 rtn user 
+1aab 6fe14961 fetch 2 ,mem_mesh_three_tuple_mac + 4 
+1aac 67e10bb5 store 2 ,mem_mesh_fast_gatt_ios_msg_payload_mac 
+1aad 477b403e bpatchx patch3e_6 ,mem_patch3e 
+1aae 6fe08ba6 fetch 1 ,mem_mesh_receive_service_uuid_provisioning_type 
+1aaf c0001ab3 beq provisioning_random ,ali_mesh_ios_gatt_packet_parse_provisioning_random 
+1ab0 c0011ab5 beq provisioning_data ,ali_mesh_ios_gatt_packet_parse_provisioning_data 
+1ab1 c0021ac2 beq provisioning_config ,ali_mesh_ios_gatt_packet_parse_provisioning_config 
+1ab2 20600000 rtn 
+
+ali_mesh_ios_gatt_packet_parse_provisioning_random:
+1ab3 d8c00bb5 arg mem_mesh_fast_gatt_ios_msg_payload_mac ,contr 
+1ab4 20201a24 branch ali_mesh_advertising_receive_privisioning_random 
+
+ali_mesh_ios_gatt_packet_parse_provisioning_data:
+1ab5 6fe0c931 fetch 1 ,mem_mesh_provisioning_state_flag 
+1ab6 c4008000 rtnbit0 receive_provisioning_random 
+1ab7 c3810000 rtnbit1 receive_provisioning_data 
+1ab8 d8c00bb7 arg mem_mesh_fast_gatt_ios_msg_payload ,contr 
+1ab9 df200014 arg 0x14 ,loopcnt 
+1aba d8a0493a arg mem_mesh_keyfresh_and_update_flag ,contw 
+1abb 20407d6d call memcpy 
+1abc 20401894 call ali_mesh_encrypt_calc_provisioning_data_calc_sessionkey 
+1abd da20493a arg mem_mesh_keyfresh_and_update_flag ,rega 
+1abe da400900 arg memresult ,regb 
+1abf df20000a arg 0x0a ,loopcnt 
+1ac0 2040188c call ali_mesh_encrypt_calc_provisioning_data_xor_prov_data_loop 
+1ac1 20201a48 branch ali_mesh_advertising_receive_privisioning_data + 13 
+
+ali_mesh_ios_gatt_packet_parse_provisioning_config:
+1ac2 70493002 jam pairing_status ,mem_mesh_provisioned_flag 
+1ac3 6fe10bb7 fetch 2 ,mem_mesh_fast_gatt_ios_msg_payload 
+1ac4 67e10bb3 store 2 ,mem_mesh_fast_gatt_ios_config_version 
+
+ali_mesh_ios_gatt_packet_send_provisioning_config_ack:
+1ac5 d8400003 arg provisioning_config_ack_mac + provisioning_config_ack_field ,temp 
+1ac6 20401a5f call ali_mesh_advertising_send_packet_common 
+1ac7 58000005 setarg provisioning_config_ack 
+1ac8 e7e08005 istore 1 ,contw 
+1ac9 6fe14961 fetch 2 ,mem_mesh_three_tuple_mac + 4 
+1aca e7e10005 istore 2 ,contw 
+1acb 58000001 setarg provisioning_config_ack_note 
+1acc e7e08005 istore 1 ,contw 
+1acd 20600000 rtn 
+
+ali_mesh_no_network_equipment_packet_gatt_provisioning_ios_data:
+1ace 6fe08ba7 fetch 1 ,mem_mesh_receive_service_uuid_ios_data_nid 
+1acf 6848c8ce fetcht 1 ,mem_k2_nid 
+1ad0 98467c00 isub temp ,null 
+1ad1 24628000 nrtn zero 
+1ad2 da200ba8 arg mem_mesh_receive_service_uuid_ios_data_msg_id ,rega 
+1ad3 da400008 arg 0x08 ,regb 
+
+ali_mesh_resolve_app_package:
+1ad4 20401ade call ali_mesh_gatt_packet_check_msgid_packagenum_length 
+1ad5 20740000 rtn user 
+1ad6 df200024 arg 36 ,loopcnt 
+1ad7 da4000e1 arg 0xe1 ,regb 
+1ad8 da200bb7 arg mem_mesh_fast_gatt_ios_msg_payload ,rega 
+1ad9 20401820 call logging_tx_debug 
+1ada 6848c955 fetcht 1 ,mem_mesh_gatt_package_receive_package_total_length 
+1adb 18408401 increase 1 ,temp 
+1adc d8c00bb7 arg mem_mesh_fast_gatt_ios_msg_payload ,contr 
+1add 20201cbb branch ali_mesh_network_layer_recevice_network_pdu 
+
+ali_mesh_gatt_packet_check_msgid_packagenum_length:
+1ade 477bc03e bpatchx patch3e_7 ,mem_patch3e 
+1adf 20401aff call ali_mesh_gatt_packet_check_msgid 
+1ae0 20740000 rtn user 
+1ae1 1a208c01 add rega ,gatt_package_package_num ,contr 
+1ae2 e8408006 ifetcht 1 ,contr 
+1ae3 1851fe00 rshift4 temp ,pdata 
+1ae4 c0009b17 beq 1 ,ali_mesh_gatt_packet_check_msgid_packagenum_length_new_package 
+1ae5 1fe27200 copy pdata ,loopcnt 
+1ae6 20401afa call ali_mesh_gatt_packet_check_msgid_packagenum_length_expect_package_num 
+1ae7 18410e0f and temp ,0x0f ,queue 
+1ae8 98e67c00 isub queue ,null 
+1ae9 20429b1d call ali_mesh_gatt_packet_calc_total_length ,zero 
+1aea 18e08fff increase -1 ,queue 
+1aeb 6fe0c954 fetch 1 ,mem_mesh_gatt_package_receive_package_num 
+1aec afefffff qisolate1 pdata 
+1aed 2020fe62 branch enable_user ,true 
+1aee f9207e00 qset1 pdata 
+1aef 67e0c954 store 1 ,mem_mesh_gatt_package_receive_package_num 
+1af0 9a667c00 isub regc ,null 
+1af1 2442fe62 ncall enable_user ,zero 
+1af2 20429b0d call ali_mesh_gatt_packet_check_msgid_store_msgid ,zero 
+1af3 1a208c02 add rega ,gatt_package_length ,contr 
+1af4 ef208006 ifetchr loopcnt ,1 ,contr 
+1af5 1a427e00 copy regb ,pdata 
+1af6 98effe00 imul32 queue ,pdata 
+1af7 d8a00bb7 arg mem_mesh_fast_gatt_ios_msg_payload ,contw 
+1af8 98a08a00 iadd contw ,contw 
+1af9 20207d6d branch memcpy 
+
+ali_mesh_gatt_packet_check_msgid_packagenum_length_expect_package_num:
+1afa da600000 arg 0 ,regc 
+
+ali_mesh_gatt_packet_check_msgid_packagenum_length_expect_package_num_loop:
+1afb 1f208fff add loopcnt ,-1 ,queue 
+1afc f9202600 qset1 regc 
+1afd c2001afb loop ali_mesh_gatt_packet_check_msgid_packagenum_length_expect_package_num_loop 
+1afe 20600000 rtn 
+
+ali_mesh_gatt_packet_check_msgid:
+1aff efe08011 ifetch 1 ,rega 
+1b00 203a1b08 branch ali_mesh_gatt_packet_check_msgid_zero ,blank 
+1b01 6848c956 fetcht 1 ,mem_mesh_gatt_package_receive_msg_id_last 
+1b02 98467c00 isub temp ,null 
+1b03 2022fe62 branch enable_user ,zero 
+1b04 6848c957 fetcht 1 ,mem_mesh_gatt_package_receive_msg_id_new 
+1b05 98467c00 isub temp ,null 
+1b06 2022fe62 branch enable_user ,zero 
+1b07 20207e64 branch disable_user 
+
+ali_mesh_gatt_packet_check_msgid_zero:
+1b08 68494956 fetcht 2 ,mem_mesh_gatt_package_receive_msg_id_last 
+1b09 5800ffff setarg 0xffff 
+1b0a 98467c00 isub temp ,null 
+1b0b 2022fe62 branch enable_user ,zero 
+1b0c 20207e64 branch disable_user 
+
+ali_mesh_gatt_packet_check_msgid_store_msgid:
+1b0d 70495400 jam 0 ,mem_mesh_gatt_package_receive_package_num 
+1b0e 6fe0c957 fetch 1 ,mem_mesh_gatt_package_receive_msg_id_new 
+1b0f 67e0c956 store 1 ,mem_mesh_gatt_package_receive_msg_id_last 
+1b10 efe08011 ifetch 1 ,rega 
+1b11 205a1b14 call ali_mesh_gatt_packet_check_msgid_store_msgid_zero ,blank 
+1b12 67e0c957 store 1 ,mem_mesh_gatt_package_receive_msg_id_new 
+1b13 20207e64 branch disable_user 
+
+ali_mesh_gatt_packet_check_msgid_store_msgid_zero:
+1b14 580000ff setarg 0xff 
+1b15 67e0c956 store 1 ,mem_mesh_gatt_package_receive_msg_id_last 
+1b16 20600000 rtn 
+
+ali_mesh_gatt_packet_check_msgid_packagenum_length_new_package:
+1b17 20401b0d call ali_mesh_gatt_packet_check_msgid_store_msgid 
+1b18 1a208c02 add rega ,gatt_package_length ,contr 
+1b19 ef208006 ifetchr loopcnt ,1 ,contr 
+1b1a 6720c955 storer loopcnt ,1 ,mem_mesh_gatt_package_receive_package_total_length 
+1b1b d8a00bb7 arg mem_mesh_fast_gatt_ios_msg_payload ,contw 
+1b1c 20207d6d branch memcpy 
+
+ali_mesh_gatt_packet_calc_total_length:
+1b1d 1fe0ffff pincrease -1 
+1b1e 9a4ffe00 imul32 regb ,pdata 
+1b1f 1a208c02 add rega ,gatt_package_length ,contr 
+1b20 ef208006 ifetchr loopcnt ,1 ,contr 
+1b21 9f20fe00 iadd loopcnt ,pdata 
+1b22 67e0c955 store 1 ,mem_mesh_gatt_package_receive_package_total_length 
+1b23 20600000 rtn 
+
+ali_mesh_access_layer_config_or_health_message_opcode:
+1b24 efe08006 ifetch 1 ,contr 
+1b25 c0249b29 beq mesh_message_opcode_config_node_reset_no_head ,ali_mesh_access_layer_config_or_health_message_opcode_node_reset 
+1b26 c00d9b31 beq mesh_message_opcode_config_model_subscription_add_no_head ,ali_mesh_message_config_modle_subscription_add 
+1b27 c00e1b38 beq mesh_message_opcode_config_model_subscription_delete_no_head ,ali_mesh_message_config_modle_subscription_delete 
+1b28 20600000 rtn 
+
+ali_mesh_access_layer_config_or_health_message_opcode_node_reset:
+1b29 6fe1498d fetch 2 ,mem_mesh_cb_receive_node_reset 
+1b2a 20407e13 call callback_func 
+1b2b 58000080 setarg mesh_configuration_and_health_message_opcode_header 
+1b2c 67e089fa store 1 ,mem_mesh_access_layer_payload 
+1b2d 5800004a setarg mesh_message_opcode_config_node_reset_status_no_head 
+1b2e e7e08005 istore 1 ,contw 
+1b2f 7009f902 jam 2 ,mem_mesh_access_layer_payload_len 
+1b30 20201d97 branch ali_mesh_upper_transport_layer_send_access_message 
+
+ali_mesh_message_config_modle_subscription_add:
+1b31 20401b56 call ali_mesh_message_config_modle_subscription_status 
+1b32 6fe14995 fetch 2 ,mem_mesh_core_feature 
+1b33 c3810000 rtnbit1 mesh_feature_disable_subscription 
+1b34 20401b62 call ali_mesh_message_config_modle_subscription_check_element 
+1b35 20401b6b call ali_mesh_message_config_modle_subscription_add_value_address 
+1b36 6fe14991 fetch 2 ,mem_mesh_cb_subscriptuion_list_changed 
+1b37 20207e13 branch callback_func 
+
+ali_mesh_message_config_modle_subscription_delete:
+1b38 20401b56 call ali_mesh_message_config_modle_subscription_status 
+1b39 6fe14995 fetch 2 ,mem_mesh_core_feature 
+1b3a c3810000 rtnbit1 mesh_feature_disable_subscription 
+1b3b 20401b62 call ali_mesh_message_config_modle_subscription_check_element 
+1b3c 68490bdf fetcht 2 ,mem_mesh_subscription_value_address 
+1b3d 184cfe00 rshift8 temp ,pdata 
+1b3e 1ff1fe00 rshift4 pdata ,pdata 
+1b3f c0061b46 beq 0x0c ,ali_mesh_message_config_modle_subscription_delete_group_addr 
+1b40 20401b4b call ali_mesh_message_config_modle_subscription_check_value_address 
+1b41 24740000 nrtn user 
+1b42 58000000 setarg 0 
+1b43 e7e10011 istore 2 ,rega 
+1b44 6fe14991 fetch 2 ,mem_mesh_cb_subscriptuion_list_changed 
+1b45 20207e13 branch callback_func 
+
+ali_mesh_message_config_modle_subscription_delete_group_addr:
+1b46 5fffffff setarg -1 
+1b47 e7e40011 istore subscription_max_count ,rega 
+1b48 e7e40005 istore subscription_max_count ,contw 
+1b49 6fe14991 fetch 2 ,mem_mesh_cb_subscriptuion_list_changed 
+1b4a 20207e13 branch callback_func 
+
+ali_mesh_message_config_modle_subscription_check_value_address:
+1b4b df200008 arg subscription_max_count ,loopcnt 
+
+ali_mesh_message_config_modle_subscription_check_value_address_loop:
+1b4c efe10011 ifetch 2 ,rega 
+1b4d da40ffff arg 0xffff ,regb 
+1b4e 9a467c00 isub regb ,null 
+1b4f 2022fe62 branch enable_user ,zero 
+1b50 98467c00 isub temp ,null 
+1b51 2022fe62 branch enable_user ,zero 
+
+ali_mesh_message_config_modle_subscription_check_value_address_loop_empty:
+1b52 1a20a202 increase 2 ,rega 
+1b53 c2001b4c loop ali_mesh_message_config_modle_subscription_check_value_address_loop 
+1b54 20407e64 call disable_user 
+1b55 20600000 rtn 
+
+ali_mesh_message_config_modle_subscription_status:
+1b56 efe30006 ifetch 6 ,contr 
+1b57 67e30bdd store 6 ,mem_mesh_subscription_element_address 
+1b58 58000080 setarg mesh_configuration_and_health_message_opcode_header 
+1b59 67e089fa store 1 ,mem_mesh_access_layer_payload 
+1b5a 5800001f setarg mesh_message_opcode_config_model_subscription_status_no_head 
+1b5b e7e08005 istore 1 ,contw 
+1b5c 58000000 setarg mesh_success 
+1b5d e7e08005 istore 1 ,contw 
+1b5e 6fe30bdd fetch 6 ,mem_mesh_subscription_element_address 
+1b5f e7e30005 istore 6 ,contw 
+1b60 7009f909 jam 9 ,mem_mesh_access_layer_payload_len 
+1b61 20201d98 branch ali_mesh_upper_transport_layer_send_access_message_without_cleat_tx_buffer 
+
+ali_mesh_message_config_modle_subscription_check_element:
+1b62 20401ba5 call mesh_get_element_info_config 
+1b63 1a20a291 add rega ,element_device_subscription_label ,rega 
+1b64 6fe10bdd fetch 2 ,mem_mesh_subscription_element_address 
+1b65 6849494c fetcht 2 ,mem_mesh_unicast_address 
+1b66 18508400 byteswap temp ,temp 
+1b67 98467e00 isub temp ,pdata 
+1b68 9a4ffe00 imul32 regb ,pdata 
+1b69 9a20a200 iadd rega ,rega 
+1b6a 20600000 rtn 
+
+ali_mesh_message_config_modle_subscription_add_value_address:
+1b6b 68490bdf fetcht 2 ,mem_mesh_subscription_value_address 
+1b6c df200008 arg subscription_max_count ,loopcnt 
+
+ali_mesh_message_config_modle_subscription_add_value_address_loop:
+1b6d efe10011 ifetch 2 ,rega 
+1b6e 203a1b75 branch ali_mesh_message_config_modle_subscription_add_value_address_in ,blank 
+1b6f da40ffff arg 0xffff ,regb 
+1b70 9a467c00 isub regb ,null 
+1b71 20229b75 branch ali_mesh_message_config_modle_subscription_add_value_address_in ,zero 
+1b72 1a20a202 increase 2 ,rega 
+1b73 c2001b6d loop ali_mesh_message_config_modle_subscription_add_value_address_loop 
+1b74 20600000 rtn 
+
+ali_mesh_message_config_modle_subscription_add_value_address_in:
+1b75 18508400 byteswap temp ,temp 
+1b76 e0410011 istoret 2 ,rega 
+1b77 20600000 rtn 
+
+ali_mesh_init:
+1b78 5800175b setarg mesh_check_ble_rx_packet 
+1b79 67e14977 store 2 ,mem_mesh_cb_receive_advertising 
+1b7a 58001ba9 setarg mesh_idle_process 
+1b7b 67e14465 store 2 ,mem_cb_idle_process 
+1b7c 58001d10 setarg ali_mesh_network_layer_relay_access_message 
+1b7d 67e1498b store 2 ,mem_mesh_cb_network_relay 
+1b7e 58001801 setarg mesh_receive_config_appkey_add_cb 
+1b7f 67e1497b store 2 ,mem_mesh_cb_finish_pairing 
+1b80 58001814 setarg mem_store_new_subscriptuion_list_data 
+1b81 67e14991 store 2 ,mem_mesh_cb_subscriptuion_list_changed 
+1b82 58001810 setarg mem_store_new_seq_data 
+1b83 67e1498f store 2 ,mem_mesh_cb_seq_changed 
+1b84 20758000 rtn wake 
+1b85 7047d024 jam 36 ,mem_mesh_adv_scan_channel 
+1b86 20401669 call ali_mesh_ali_vendor_message_indication_info_reset_tid 
+1b87 20401b9d call mesh_init_element_queue 
+1b88 477c403f bpatchx patch3f_0 ,mem_patch3f 
+1b89 2040183b call mesh_uart_init 
+1b8a 20401bac call mesh_iic_init 
+1b8b da20493b arg mem_mesh_network_key ,rega 
+1b8c da400000 arg mesh_code_init ,regb 
+1b8d df200001 arg 1 ,loopcnt 
+1b8e 20401822 call logging_tx_info 
+1b8f 204017d0 call ali_mesh_chip_peripherals_load_data_from_eep 
+1b90 20401b96 call mesh_inverse_three_tuple_pid_mac 
+1b91 6fe0c93b fetch 1 ,mem_mesh_network_key 
+1b92 c07f99e0 beq 0xff ,mesh_send_unprovisioned_beacons 
+1b93 204018b3 call ali_mesh_encrypt_base_function_k4 
+1b94 2040189b call ali_mesh_encrypt_calc_network_key_by_k2 
+1b95 2020162f branch ali_mesh_ali_vendor_message_opcode_device_power_on 
+
+mesh_inverse_three_tuple_pid_mac:
+1b96 6fe24959 fetch 4 ,mem_mesh_three_tuple_productid 
+1b97 20407d5a call inverse_data_4byte 
+1b98 67e24973 store 4 ,mem_mesh_three_tuple_productid_little_endian 
+1b99 6fe3495d fetch 6 ,mem_mesh_three_tuple_mac 
+1b9a 20407d54 call inverse_data_6byte 
+1b9b 67e34378 store 6 ,mem_le_lap 
+1b9c 20600000 rtn 
+
+mesh_init_element_queue:
+1b9d 20401ba5 call mesh_get_element_info_config 
+1b9e 1a20a202 add rega ,element_device_queue_buffer ,rega 
+
+mesh_init_element_queue_loop:
+1b9f 58000422 setarg 0x0422 
+1ba0 e7e10011 istore 2 ,rega 
+1ba1 1a427e00 copy regb ,pdata 
+1ba2 9a20a200 iadd rega ,rega 
+1ba3 c2001b9f loop mesh_init_element_queue_loop 
+1ba4 20600000 rtn 
+
+mesh_get_element_info_config:
+1ba5 6f20c997 fetchr loopcnt ,1 ,mem_mesh_element_number 
+1ba6 6a214998 fetchr rega ,2 ,mem_mesh_element_device_ptr 
+1ba7 6a41499a fetchr regb ,2 ,mem_mesh_element_device_length 
+1ba8 20600000 rtn 
+
+mesh_idle_process:
+1ba9 2040166b call ali_mesh_time_function 
+1baa 204016f5 call mesh_send_advertising 
+1bab 2020175a branch mesh_receive_advertising 
+
+mesh_iic_init:
+1bac 7080700c jam gpcfg_uartb_txd ,core_gpio_conf 
+1bad 7080714d jam gpcfg_uartb_rxd | gpcfg_pullup ,core_gpio_conf + 1 
+1bae 7080722c jam gpcfg_iic_scl ,core_gpio_conf + 2 
+1baf 7080732d jam gpcfg_iic_sda ,core_gpio_conf + 3 
+1bb0 7080743e jam gpcfg_output_low ,core_gpio_conf + 4 
+1bb1 20205e0c branch clear_eeprom_size_2k 
+
+ali_mesh_lower_transport_layer_receive_lower_transport_pdu:
+1bb2 477cc03f bpatchx patch3f_1 ,mem_patch3f 
+1bb3 6fe08bfe fetch 1 ,mem_mesh_message_transport_head 
+1bb4 c2839bb7 bbit1 transport_head_bit_seg ,ali_mesh_lower_transport_layer_receive_lower_transport_pdu_segmented_message 
+1bb5 704a3d00 jam 0 ,mem_mesh_aszmic 
+1bb6 20201d5b branch ali_mesh_upper_transport_layer_receive_unsegmented_access_message 
+
+ali_mesh_lower_transport_layer_receive_lower_transport_pdu_segmented_message:
+1bb7 20401bbc call ali_mesh_lower_transport_layer_receive_segaccmess_resolve_szmic_seqzero_segon 
+1bb8 20401bd9 call ali_mesh_lower_transport_layer_receive_segmented_access_message_check_blockack 
+1bb9 20740000 rtn user 
+1bba 20401be9 call ali_mesh_lower_transport_layer_receive_segmented_access_message_store_segment 
+1bbb 20201bf5 branch ali_mesh_lower_transport_layer_receive_segmented_access_message_decrypt_segment 
+
+ali_mesh_lower_transport_layer_receive_segaccmess_resolve_szmic_seqzero_segon:
+1bbc df200003 arg 3 ,loopcnt 
+1bbd da200bff arg mem_mesh_message_segment_access_szmic_seqzero_sego_segn ,rega 
+1bbe 20407d45 call inverse_data 
+1bbf 6fe18bff fetch 3 ,mem_mesh_message_segment_access_szmic_seqzero_sego_segn 
+1bc0 1fe1041f and pdata ,0x1f ,temp 
+1bc1 6048c9a0 storet 1 ,mem_mesh_segmented_access_message_segn 
+1bc2 1ff1fe00 rshift4 pdata ,pdata 
+1bc3 1fe37e00 rshift pdata ,pdata 
+1bc4 1fe1041f and pdata ,0x1f ,temp 
+1bc5 6048c99f storet 1 ,mem_mesh_segmented_access_message_sego 
+1bc6 1ff1fe00 rshift4 pdata ,pdata 
+1bc7 1fe37e00 rshift pdata ,pdata 
+1bc8 da201fff arg 0x1fff ,rega 
+1bc9 9a210400 iand rega ,temp 
+1bca 1fe22400 copy pdata ,regb 
+1bcb 6fe1499d fetch 2 ,mem_mesh_segmented_access_message_seqzero 
+1bcc 98467c00 isub temp ,null 
+1bcd 24429bd5 ncall ali_mesh_lower_transport_layer_receive_segmented_access_message_recover_seqzero ,zero 
+1bce 6049499d storet 2 ,mem_mesh_segmented_access_message_seqzero 
+1bcf 1a4cfe00 rshift8 regb ,pdata 
+1bd0 1ff1fe00 rshift4 pdata ,pdata 
+1bd1 1fe37e00 rshift pdata ,pdata 
+1bd2 67e0c99c store 1 ,mem_mesh_segmented_access_message_szmic 
+1bd3 67e0ca3d store 1 ,mem_mesh_aszmic 
+1bd4 20600000 rtn 
+
+ali_mesh_lower_transport_layer_receive_segmented_access_message_recover_seqzero:
+1bd5 58000000 setarg 0 
+1bd6 67e249a1 store 4 ,mem_mesh_segmented_access_message_blockack 
+1bd7 7049a600 jam 0 ,mem_mesh_segmented_access_message_current_length 
+1bd8 20600000 rtn 
+
+ali_mesh_lower_transport_layer_receive_segmented_access_message_check_blockack:
+1bd9 20407e64 call disable_user 
+1bda 6fe0c99f fetch 1 ,mem_mesh_segmented_access_message_sego 
+1bdb 1fe20e00 copy pdata ,queue 
+1bdc 6fe249a1 fetch 4 ,mem_mesh_segmented_access_message_blockack 
+1bdd afefffff qisolate1 pdata 
+1bde 2020fe62 branch enable_user ,true 
+1bdf f9207e00 qset1 pdata 
+1be0 67e249a1 store 4 ,mem_mesh_segmented_access_message_blockack 
+1be1 6848c9a0 fetcht 1 ,mem_mesh_segmented_access_message_segn 
+1be2 1840f201 add temp ,1 ,loopcnt 
+
+ali_mesh_lower_transport_layer_receive_segmented_access_message_check_blockack_loop:
+1be3 1f208fff add loopcnt ,-1 ,queue 
+1be4 afefffff qisolate1 pdata 
+1be5 24608000 nrtn true 
+1be6 c2001be3 loop ali_mesh_lower_transport_layer_receive_segmented_access_message_check_blockack_loop 
+1be7 7049a501 jam 1 ,mem_mesh_segmented_access_message_receive_finish 
+1be8 20600000 rtn 
+
+ali_mesh_lower_transport_layer_receive_segmented_access_message_store_segment:
+1be9 6fe08bf2 fetch 1 ,mem_mesh_message_transport_netmic_length 
+1bea 1fe0fffa pincrease -6 
+1beb 1fe27200 copy pdata ,loopcnt 
+1bec 6848c9a6 fetcht 1 ,mem_mesh_segmented_access_message_current_length 
+1bed 98408400 iadd temp ,temp 
+1bee 6048c9a6 storet 1 ,mem_mesh_segmented_access_message_current_length 
+1bef d8a049a7 arg mem_mesh_segmented_access_message_segment ,contw 
+1bf0 6fe0c99f fetch 1 ,mem_mesh_segmented_access_message_sego 
+1bf1 1feffe0c mul32 pdata ,12 ,pdata 
+1bf2 98a08a00 iadd contw ,contw 
+1bf3 d8c00c02 arg mem_mesh_message_transport_segmented_access_messagepdu_segment ,contr 
+1bf4 20207d6d branch memcpy 
+
+ali_mesh_lower_transport_layer_receive_segmented_access_message_decrypt_segment:
+1bf5 6fe0c9a5 fetch 1 ,mem_mesh_segmented_access_message_receive_finish 
+1bf6 c1000000 rtneq 0 
+1bf7 58000000 setarg 0 
+1bf8 67e2c9a1 store 5 ,mem_mesh_segmented_access_message_blockack 
+1bf9 68490bf8 fetcht 2 ,mem_mesh_message_seq + 1 
+1bfa 18508400 byteswap temp ,temp 
+1bfb 5800e000 setarg 0xe000 
+1bfc 98410400 iand temp ,temp 
+1bfd 6fe1499d fetch 2 ,mem_mesh_segmented_access_message_seqzero 
+1bfe 9841fe00 ior temp ,pdata 
+1bff 1ff0fe00 byteswap pdata ,pdata 
+1c00 67e10bf8 store 2 ,mem_mesh_message_seq + 1 
+1c01 20201d65 branch ali_mesh_upper_transport_layer_receive_segmented_access_message 
+
+ali_mesh_lower_transport_layer_send_unsegmented_access_message:
+1c02 6fe089f9 fetch 1 ,mem_mesh_upper_transport_layer_payload_len 
+1c03 1fe08401 add pdata ,1 ,temp 
+1c04 1fe27200 copy pdata ,loopcnt 
+1c05 60488bdc storet 1 ,mem_mesh_lower_transport_layer_payload_len 
+1c06 6fe08bfe fetch 1 ,mem_mesh_message_transport_head 
+1c07 793ffe07 set0 transport_head_bit_seg ,pdata 
+1c08 67e0ca75 store 1 ,mem_mesh_unsegmented_access_lower_transport_layer_head 
+1c09 d8c009fa arg mem_mesh_access_layer_payload ,contr 
+1c0a 20407d60 call memcpy_fast 
+1c0b 20201d43 branch ali_mesh_network_layer_send_access_message 
+
+ali_mesh_lower_transport_layer_send_segmented_access_message:
+1c0c 1a208404 add rega ,4 ,temp 
+1c0d 1a227200 copy rega ,loopcnt 
+1c0e 60488bdc storet 1 ,mem_mesh_lower_transport_layer_payload_len 
+1c0f d8a04a79 arg mem_mesh_segmented_access_lower_transport_layer_parameters ,contw 
+1c10 20407d60 call memcpy_fast 
+1c11 6fe08bfe fetch 1 ,mem_mesh_message_transport_head 
+1c12 79207e07 set1 transport_head_bit_seg ,pdata 
+1c13 67e0ca75 store 1 ,mem_mesh_segmented_access_lower_transport_layer_head 
+1c14 20201d43 branch ali_mesh_network_layer_send_access_message 
+
+ali_mesh_model_layer_check_model_message_opcode:
+1c15 efe08006 ifetch 1 ,contr 
+
+ali_mesh_model_layer_check_generic_onoff_message_opcde:
+1c16 c0011c1b beq mesh_module_message_opcode_generic_onoff_set_no_head ,ali_mesh_model_layer_message_opcde_generic_onoff_set 
+1c17 c0211c22 beq mesh_module_message_opcode_scene_recall_no_head ,ali_mesh_model_layer_message_opcde_scene_recall 
+1c18 c0261c27 beq mesh_module_message_opcode_light_lightness_set_no_head ,ali_mesh_model_layer_message_opcde_light_lightness_set 
+1c19 c02f1c31 beq mesh_module_message_opcode_light_ctl_set_no_head ,ali_mesh_model_layer_message_opcde_light_ctl_set 
+1c1a 20600000 rtn 
+
+ali_mesh_model_layer_message_opcde_generic_onoff_set:
+1c1b efe20006 ifetch 4 ,contr 
+1c1c 67e20bdd store 4 ,mem_mesh_generic_onoff_set_payload_onoff 
+1c1d da601c1f arg ali_mesh_model_layer_message_opcde_generic_onoff_set_cb ,regc 
+1c1e 20201c94 branch ali_mesh_more_element_check_element_address 
+
+ali_mesh_model_layer_message_opcde_generic_onoff_set_cb:
+1c1f 2040157f call ali_mesh_access_layer_send_generic_onoff_status 
+1c20 6fe1497d fetch 2 ,mem_mesh_cb_generic_onoff_set 
+1c21 20207e13 branch callback_func 
+
+ali_mesh_model_layer_message_opcde_scene_recall:
+1c22 efe28006 ifetch 5 ,contr 
+1c23 67e28bdd store 5 ,mem_mesh_scene_recall_payload_scene_number 
+1c24 20401597 call ali_mesh_access_layer_send_scene_status 
+1c25 6fe1497f fetch 2 ,mem_mesh_cb_scene_recall 
+1c26 20207e13 branch callback_func 
+
+ali_mesh_model_layer_message_opcde_light_lightness_set:
+1c27 efe28006 ifetch 5 ,contr 
+1c28 67e28bdd store 5 ,mem_mesh_light_lightness_set_payload_lightness 
+1c29 6fe10bdd fetch 2 ,mem_mesh_light_lightness_set_payload_lightness 
+1c2a 20401c44 call ali_mesh_model_layer_message_calc_lightness 
+1c2b 67e08be2 store 1 ,mem_mesh_light_lightness_calc_lightness 
+1c2c da601c2e arg ali_mesh_model_layer_message_opcde_light_lightness_set_cb ,regc 
+1c2d 20201c94 branch ali_mesh_more_element_check_element_address 
+
+ali_mesh_model_layer_message_opcde_light_lightness_set_cb:
+1c2e 20401587 call ali_mesh_access_layer_send_light_lightness_status 
+1c2f 6fe14981 fetch 2 ,mem_mesh_cb_light_lightness_set 
+1c30 20207e13 branch callback_func 
+
+ali_mesh_model_layer_message_opcde_light_ctl_set:
+1c31 efe48006 ifetch 9 ,contr 
+1c32 67e48bdd store 9 ,mem_mesh_ctl_lightness 
+1c33 6fe149cb fetch 2 ,mem_mesh_last_ctl_temperature 
+1c34 68490bdf fetcht 2 ,mem_mesh_ctl_temperature 
+1c35 98467c00 isub temp ,null 
+1c36 20628000 rtn zero 
+1c37 6fe10bdd fetch 2 ,mem_mesh_ctl_lightness 
+1c38 20401c44 call ali_mesh_model_layer_message_calc_lightness 
+1c39 67e08be6 store 1 ,mem_mesh_ctl_calc_lightness 
+1c3a 6fe10bdf fetch 2 ,mem_mesh_ctl_temperature 
+1c3b 20401c50 call ali_mesh_model_layer_message_calc_temperature 
+1c3c 67e08be7 store 1 ,mem_mesh_ctl_calc_temperature 
+1c3d 6fe10bdf fetch 2 ,mem_mesh_ctl_temperature 
+1c3e 67e149cb store 2 ,mem_mesh_last_ctl_temperature 
+1c3f da601c41 arg ali_mesh_model_layer_message_opcde_light_ctl_set_cb ,regc 
+1c40 20201c94 branch ali_mesh_more_element_check_element_address 
+
+ali_mesh_model_layer_message_opcde_light_ctl_set_cb:
+1c41 2040158f call ali_mesh_access_layer_send_light_ctl_stauts 
+1c42 6fe14983 fetch 2 ,mem_mesh_cb_light_ctl_set 
+1c43 20207e13 branch callback_func 
+
+ali_mesh_model_layer_message_calc_lightness:
+1c44 1feffe64 mul32 pdata ,ali_mesh_lightness_level ,pdata 
+1c45 d840ffff arg ali_mesh_lightness_max ,temp 
+1c46 9846fc00 idiv temp 
+1c47 20407dfd call wait_div_end 
+1c48 1807fe00 quotient pdata 
+1c49 20600000 rtn 
+
+ali_mesh_model_layer_message_calc_actual_lightness:
+1c4a dfe0ffff arg ali_mesh_lightness_max ,pdata 
+1c4b 984ffe00 imul32 temp ,pdata 
+1c4c 1fe6fc64 div pdata ,ali_mesh_lightness_level 
+1c4d 20407dfd call wait_div_end 
+1c4e 18078400 quotient temp 
+1c4f 20600000 rtn 
+
+ali_mesh_model_layer_message_calc_temperature:
+1c50 d8400320 arg ali_mesh_temperature_min ,temp 
+1c51 98462200 isub temp ,rega 
+1c52 20401c5f call ali_mesh_model_layer_message_calc_temperature_k 
+1c53 1a227e00 copy rega ,pdata 
+1c54 9846fc00 idiv temp 
+1c55 20407dfd call wait_div_end 
+1c56 1807fe00 quotient pdata 
+1c57 20600000 rtn 
+
+ali_mesh_model_layer_message_calc_actual_temperature:
+1c58 18422200 copy temp ,rega 
+1c59 20401c5f call ali_mesh_model_layer_message_calc_temperature_k 
+1c5a 1a227e00 copy rega ,pdata 
+1c5b 984ffe00 imul32 temp ,pdata 
+1c5c d8400320 arg ali_mesh_temperature_min ,temp 
+1c5d 98408400 iadd temp ,temp 
+1c5e 20600000 rtn 
+
+ali_mesh_model_layer_message_calc_temperature_k:
+1c5f 58004e20 setarg ali_mesh_temperature_max 
+1c60 d8400320 arg ali_mesh_temperature_min ,temp 
+1c61 98467e00 isub temp ,pdata 
+1c62 1fe6fc64 div pdata ,ali_mesh_temperature_level 
+1c63 20407dfd call wait_div_end 
+1c64 18078400 quotient temp 
+1c65 20600000 rtn 
+
+ali_mesh_more_element_check_unicast_address:
+1c66 d8e00000 arg 0 ,queue 
+1c67 6f20c997 fetchr loopcnt ,1 ,mem_mesh_element_number 
+1c68 20407e64 call disable_user 
+1c69 6fe1494c fetch 2 ,mem_mesh_unicast_address 
+
+ali_mesh_more_element_check_unicast_address_loop:
+1c6a 98467c00 isub temp ,null 
+1c6b 20229c72 branch ali_mesh_more_element_found_unicast_address_element ,zero 
+1c6c 1ff0fe00 byteswap pdata ,pdata 
+1c6d 1fe0fe01 pincrease 1 
+1c6e 1ff0fe00 byteswap pdata ,pdata 
+1c6f 18e08e01 increase 1 ,queue 
+1c70 c2001c6a loop ali_mesh_more_element_check_unicast_address_loop 
+1c71 20600000 rtn 
+
+ali_mesh_more_element_found_unicast_address_element:
+1c72 67e14a69 store 2 ,mem_mesh_send_message_src 
+1c73 7049cd00 jam 0 ,mem_mesh_receive_group_address 
+1c74 60e0c9ce storer queue ,1 ,mem_mesh_receive_element_number 
+1c75 20401caf call ali_mesh_more_element_calc_queue_address 
+1c76 20207e62 branch enable_user 
+
+ali_mesh_more_element_check_group_address:
+1c77 d8e00000 arg 0 ,queue 
+1c78 da600000 arg 0 ,regc 
+1c79 20401ba5 call mesh_get_element_info_config 
+1c7a 20407e64 call disable_user 
+
+ali_mesh_more_element_check_group_address_loop:
+1c7b 6fe14995 fetch 2 ,mem_mesh_core_feature 
+1c7c c3011c8a bbit0 mesh_feature_disable_subscription ,ali_mesh_more_element_check_subscription_address 
+1c7d efe10011 ifetch 2 ,rega 
+1c7e 98467c00 isub temp ,null 
+1c7f 20429c88 call ali_mesh_more_element_found_group_address_element ,zero 
+
+ali_mesh_more_element_check_address_common:
+1c80 1a427e00 copy regb ,pdata 
+1c81 9a20a200 iadd rega ,rega 
+1c82 18e08e01 increase 1 ,queue 
+1c83 c2001c7b loop ali_mesh_more_element_check_group_address_loop 
+1c84 1a627e00 copy regc ,pdata 
+1c85 207a0000 rtn blank 
+1c86 67e0c9cd store 1 ,mem_mesh_receive_group_address 
+1c87 20207e62 branch enable_user 
+
+ali_mesh_more_element_found_group_address_element:
+1c88 f9202600 qset1 regc 
+1c89 20600000 rtn 
+
+ali_mesh_more_element_check_subscription_address:
+1c8a 1a208c91 add rega ,element_device_subscription_label ,contr 
+1c8b de000008 arg subscription_max_count ,alarm 
+
+ali_mesh_more_element_check_subscription_address_loop:
+1c8c efe10006 ifetch 2 ,contr 
+1c8d 98467c00 isub temp ,null 
+1c8e 20229c92 branch ali_mesh_more_element_found_subscription_address_element ,zero 
+1c8f 1e00e1ff increase -1 ,alarm 
+1c90 20229c80 branch ali_mesh_more_element_check_address_common ,zero 
+1c91 20201c8c branch ali_mesh_more_element_check_subscription_address_loop 
+
+ali_mesh_more_element_found_subscription_address_element:
+1c92 20401c88 call ali_mesh_more_element_found_group_address_element 
+1c93 20201c80 branch ali_mesh_more_element_check_address_common 
+
+ali_mesh_more_element_check_element_address:
+1c94 6fe0c9cd fetch 1 ,mem_mesh_receive_group_address 
+1c95 203a1ca0 branch ali_mesh_more_element_check_element_address_no_group_address ,blank 
+1c96 d8e00000 arg 0 ,queue 
+1c97 1fe22400 copy pdata ,regb 
+1c98 6f20c997 fetchr loopcnt ,1 ,mem_mesh_element_number 
+
+ali_mesh_more_element_check_element_address_loop:
+1c99 60e0c9ce storer queue ,1 ,mem_mesh_receive_element_number 
+1c9a aa4fffff qisolate1 regb 
+1c9b 20409ca0 call ali_mesh_more_element_check_element_address_no_group_address ,true 
+1c9c 68e0c9ce fetchr queue ,1 ,mem_mesh_receive_element_number 
+1c9d 18e08e01 increase 1 ,queue 
+1c9e c2001c99 loop ali_mesh_more_element_check_element_address_loop 
+1c9f 20600000 rtn 
+
+ali_mesh_more_element_check_element_address_no_group_address:
+1ca0 20401ca5 call ali_mesh_more_element_push_stack 
+1ca1 20401caf call ali_mesh_more_element_calc_queue_address 
+1ca2 1a627e00 copy regc ,pdata 
+1ca3 20407e13 call callback_func 
+1ca4 20201caa branch ali_mesh_more_element_pop_stack 
+
+ali_mesh_more_element_push_stack:
+1ca5 67210be8 storer loopcnt ,2 ,mem_mesh_loopcnt_tmep 
+1ca6 62210bea storer rega ,2 ,mem_mesh_rega_temp 
+1ca7 62410bec storer regb ,2 ,mem_mesh_regb_temp 
+1ca8 62610bee storer regc ,2 ,mem_mesh_regc_temp 
+1ca9 20600000 rtn 
+
+ali_mesh_more_element_pop_stack:
+1caa 6f210be8 fetchr loopcnt ,2 ,mem_mesh_loopcnt_tmep 
+1cab 6a210bea fetchr rega ,2 ,mem_mesh_rega_temp 
+1cac 6a410bec fetchr regb ,2 ,mem_mesh_regb_temp 
+1cad 6a610bee fetchr regc ,2 ,mem_mesh_regc_temp 
+1cae 20600000 rtn 
+
+ali_mesh_more_element_calc_queue_address:
+1caf 6fe1494c fetch 2 ,mem_mesh_unicast_address 
+1cb0 1ff0fe00 byteswap pdata ,pdata 
+1cb1 98e0fe00 iadd queue ,pdata 
+1cb2 1ff0fe00 byteswap pdata ,pdata 
+1cb3 67e14a69 store 2 ,mem_mesh_send_message_src 
+1cb4 20401ba5 call mesh_get_element_info_config 
+1cb5 18e27e00 copy queue ,pdata 
+1cb6 9a4ffe00 imul32 regb ,pdata 
+1cb7 9a20a200 iadd rega ,rega 
+1cb8 1a20a202 add rega ,element_device_queue_buffer ,rega 
+1cb9 6221448e storer rega ,2 ,mem_queue_ptr 
+1cba 20600000 rtn 
+
+ali_mesh_network_layer_recevice_network_pdu:
+1cbb 18467c0c sub temp ,mesh_network_packet_min_length ,null 
+1cbc 20610000 rtn positive 
+1cbd 18467c1e sub temp ,mesh_network_packet_max_length ,null 
+1cbe 24610000 nrtn positive 
+1cbf 477d403f bpatchx patch3f_2 ,mem_patch3f 
+1cc0 20401d08 call ali_mesh_network_store_in_mem 
+
+ali_mesh_network_layer_recevice_network_pdu_check_nid:
+1cc1 20401cd6 call ali_mesh_network_layer_check_nid_ivi 
+1cc2 24740000 nrtn user 
+
+ali_mesh_network_layer_recevice_network_pdu_deceypt_obfuscation:
+1cc3 204018c4 call ali_mesh_encrypt_obfuscation_deceypt_recevie_message 
+
+ali_mesh_network_layer_recevice_network_pdu_decrypt_netmic32:
+1cc4 20401cff call ali_mesh_network_load_network_nonce_and_encryptionkey 
+1cc5 6fe08bf2 fetch 1 ,mem_mesh_message_transport_netmic_length 
+1cc6 d8400bfc arg mem_mesh_message_dst ,temp 
+1cc7 204019ae call ali_ccm_decrypt 
+1cc8 24628000 nrtn zero 
+
+ali_mesh_network_layer_recevice_network_pdu_check_dst:
+1cc9 477dc03f bpatchx patch3f_3 ,mem_patch3f 
+1cca 68490bfc fetcht 2 ,mem_mesh_message_dst 
+1ccb 60490bf3 storet 2 ,mem_mesh_recevice_message_dst 
+1ccc 20401c66 call ali_mesh_more_element_check_unicast_address 
+1ccd 20341ce3 branch ali_mesh_network_layer_recevice_network_pdu_check_src_and_seq ,user 
+1cce 20401c77 call ali_mesh_more_element_check_group_address 
+1ccf 20341ce3 branch ali_mesh_network_layer_recevice_network_pdu_check_src_and_seq ,user 
+1cd0 7049cdff jam 0xff ,mem_mesh_receive_group_address 
+1cd1 5800ffcf setarg group_address_0xcfff_little_endian 
+1cd2 98467c00 isub temp ,null 
+1cd3 20229ce3 branch ali_mesh_network_layer_recevice_network_pdu_check_src_and_seq ,zero 
+1cd4 6fe1498b fetch 2 ,mem_mesh_cb_network_relay 
+1cd5 20207e13 branch callback_func 
+
+ali_mesh_network_layer_check_nid_ivi:
+1cd6 20407e64 call disable_user 
+1cd7 68488bf5 fetcht 1 ,mem_mesh_message_nid 
+1cd8 1851fe00 rshift4 temp ,pdata 
+1cd9 1fe97e00 rshift3 pdata ,pdata 
+1cda 6a20c9d2 fetchr rega ,1 ,mem_mesh_iv_index + 3 
+1cdb 1a212201 and rega ,0x01 ,rega 
+1cdc 9a267c00 isub rega ,null 
+1cdd 24628000 nrtn zero 
+1cde 1841047f and temp ,0x7f ,temp 
+1cdf 6fe0c8ce fetch 1 ,mem_k2_nid 
+1ce0 98467c00 isub temp ,null 
+1ce1 24628000 nrtn zero 
+1ce2 20207e62 branch enable_user 
+
+ali_mesh_network_layer_recevice_network_pdu_check_src_and_seq:
+1ce3 da2049d3 arg mem_mesh_tmall_cache_start ,rega 
+1ce4 df20000a arg cache_space_num ,loopcnt 
+
+ali_mesh_network_layer_raverse_src_seq_cache:
+1ce5 68490bfa fetcht 2 ,mem_mesh_message_src 
+1ce6 efe10011 ifetch 2 ,rega 
+1ce7 203a1ced branch ali_mesh_network_layer_find_empty_space ,blank 
+1ce8 98467c00 isub temp ,null 
+1ce9 20229cee branch ali_mesh_network_layer_find_src_space ,zero 
+1cea 1a20a205 increase cache_space_size ,rega 
+1ceb c2001ce5 loop ali_mesh_network_layer_raverse_src_seq_cache 
+1cec da2049d3 arg mem_mesh_tmall_cache_start ,rega 
+
+ali_mesh_network_layer_find_empty_space:
+1ced e0410011 istoret 2 ,rega 
+
+ali_mesh_network_layer_find_src_space:
+1cee 60490c1f storet 2 ,mem_mesh_send_message_dst 
+1cef 1a20a602 add rega ,2 ,regc 
+1cf0 efe18013 ifetch 3 ,regc 
+1cf1 67e18c21 store 3 ,mem_mesh_last_message_seq 
+1cf2 20201cf3 branch ali_mesh_network_layer_recevice_network_pdu_check_seq_legal 
+
+ali_mesh_network_layer_recevice_network_pdu_check_seq_legal:
+1cf3 20401cfc call ali_mesh_inverse_seq 
+1cf4 6fe18c21 fetch 3 ,mem_mesh_last_message_seq 
+1cf5 68498bf7 fetcht 3 ,mem_mesh_message_seq 
+1cf6 98467c00 isub temp ,null 
+1cf7 20610000 rtn positive 
+1cf8 e0418013 istoret 3 ,regc 
+1cf9 20401cfc call ali_mesh_inverse_seq 
+1cfa 20401d56 call logging_tx_debug_network_receive_packet 
+1cfb 20201bb2 branch ali_mesh_lower_transport_layer_receive_lower_transport_pdu 
+
+ali_mesh_inverse_seq:
+1cfc da200bf7 arg mem_mesh_message_seq ,rega 
+1cfd df200003 arg 3 ,loopcnt 
+1cfe 20207d45 branch inverse_data 
+
+ali_mesh_network_load_network_nonce_and_encryptionkey:
+1cff 20401d02 call ali_mesh_network_layer_load_network_nonce 
+
+ali_mesh_upper_transport_layer_load_encryptionkey:
+1d00 d8c048df arg mem_k2_encryptionkey ,contr 
+1d01 20206deb branch load_key 
+
+ali_mesh_network_layer_load_network_nonce:
+1d02 d8a00c12 arg mem_mesh_network_nonce ,contw 
+1d03 58000000 setarg network_nonce 
+1d04 e7e08005 istore 1 ,contw 
+1d05 6fe30bf6 fetch 6 ,mem_mesh_message_ttl 
+1d06 e7e40005 istore 8 ,contw 
+1d07 20201d51 branch mesh_generate_nonce 
+
+ali_mesh_network_store_in_mem:
+1d08 1840fff4 add temp ,-12 ,pdata 
+1d09 67e08bf2 store 1 ,mem_mesh_message_transport_netmic_length 
+1d0a df20001d arg 29 ,loopcnt 
+1d0b d8a00bf5 arg mem_mesh_message_nid ,contw 
+1d0c 20407d34 call clear_mem 
+1d0d 1840f3ff add temp ,-1 ,loopcnt 
+1d0e d8a00bf5 arg mem_mesh_message_nid ,contw 
+1d0f 20207d60 branch memcpy_fast 
+
+ali_mesh_network_layer_relay_access_message:
+1d10 6fe14995 fetch 2 ,mem_mesh_core_feature 
+1d11 c3808000 rtnbit1 mesh_feature_disable_relay 
+1d12 6fe0c7ad fetch 1 ,mem_mesh_adv_enable 
+1d13 247a0000 nrtn blank 
+1d14 20401d38 call ali_mesh_network_layer_check_network_mic_cache 
+1d15 24740000 nrtn user 
+1d16 20401d3b call ali_mesh_network_layer_logging_tx_relay_info 
+1d17 6fe08bf6 fetch 1 ,mem_mesh_message_ttl 
+1d18 207a0000 rtn blank 
+1d19 1fe0ffff pincrease -1 
+1d1a 207a0000 rtn blank 
+1d1b 67e08bf6 store 1 ,mem_mesh_message_ttl 
+1d1c 20401cff call ali_mesh_network_load_network_nonce_and_encryptionkey 
+1d1d 6fe08bf2 fetch 1 ,mem_mesh_message_transport_netmic_length 
+1d1e d8400bfc arg mem_mesh_message_dst ,temp 
+1d1f 2040198d call ali_ccm_encrypt 
+1d20 204018c4 call ali_mesh_encrypt_obfuscation_deceypt_recevie_message 
+1d21 d8e00000 arg 0 ,queue 
+1d22 20401caf call ali_mesh_more_element_calc_queue_address 
+1d23 7047ad01 jam 1 ,mem_mesh_adv_enable 
+1d24 5800000f setarg 15 
+1d25 67e08a2c store 1 ,mem_mesh_queue_ele_timeout 
+1d26 6fe08bf2 fetch 1 ,mem_mesh_message_transport_netmic_length 
+1d27 1fe0840d add pdata ,13 ,temp 
+1d28 60488a2e storet 1 ,mem_mesh_queue_ele_len 
+1d29 d8a00a2f arg mem_mesh_queue_ele_payload ,contw 
+1d2a 6fe08a2e fetch 1 ,mem_mesh_queue_ele_len 
+1d2b 1fe0ffff pincrease -1 
+1d2c e7e08005 istore 1 ,contw 
+1d2d 5800002a setarg gap_adtype_mesh_message 
+1d2e e7e08005 istore 1 ,contw 
+1d2f 6fe38bf5 fetch 7 ,mem_mesh_message_nid 
+1d30 e7e38005 istore 7 ,contw 
+1d31 6fe08bf2 fetch 1 ,mem_mesh_message_transport_netmic_length 
+1d32 1fe0fe04 pincrease 4 
+1d33 1fe27200 copy pdata ,loopcnt 
+1d34 d8c00bfc arg mem_mesh_message_dst ,contr 
+1d35 20407d6d call memcpy 
+1d36 da200a2c arg mem_mesh_queue_ele_temp ,rega 
+1d37 2020796d branch queue_push 
+
+ali_mesh_network_layer_check_network_mic_cache:
+1d38 58004a05 setarg mem_mesh_transport_message_mic_cache 
+1d39 67e10bda store 2 ,mem_mesh_mic_cache_ptr 
+1d3a 202017b4 branch ali_mesh_base_adt_cache 
+
+ali_mesh_network_layer_logging_tx_relay_info:
+1d3b df200002 arg 2 ,loopcnt 
+1d3c da200bfc arg mem_mesh_message_dst ,rega 
+1d3d da400021 arg mesh_network_relay_packet ,regb 
+1d3e 20401822 call logging_tx_info 
+1d3f 6f208b97 fetchr loopcnt ,1 ,mem_ccm_data_len 
+1d40 6a210b98 fetchr rega ,2 ,mem_ccm_data_ptr 
+1d41 da400021 arg mesh_network_relay_packet ,regb 
+1d42 20201820 branch logging_tx_debug 
+
+ali_mesh_network_layer_send_access_message:
+1d43 477e403f bpatchx patch3f_4 ,mem_patch3f 
+1d44 20401d47 call ali_mesh_network_layer_send_access_message_encrypt_netmic 
+1d45 20401d50 call ali_mesh_network_layer_send_access_message_encrypt_obfuscation 
+1d46 202016e1 branch ali_mesh_bearer_layer_send_packet_by_network_layer 
+
+ali_mesh_network_layer_send_access_message_encrypt_netmic:
+1d47 6fe08bdc fetch 1 ,mem_mesh_lower_transport_layer_payload_len 
+1d48 1fe0a202 add pdata ,2 ,rega 
+1d49 1fe0fe04 pincrease 4 
+1d4a 67e08bdc store 1 ,mem_mesh_lower_transport_layer_payload_len 
+1d4b d8404a73 arg mem_mesh_send_upper_layer_dst ,temp 
+1d4c 20201d4d branch ali_mesh_network_layer_encrypt_by_network_nonce 
+
+ali_mesh_network_layer_encrypt_by_network_nonce:
+1d4d 20401cff call ali_mesh_network_load_network_nonce_and_encryptionkey 
+1d4e 1a227e00 copy rega ,pdata 
+1d4f 2020198d branch ali_ccm_encrypt 
+
+ali_mesh_network_layer_send_access_message_encrypt_obfuscation:
+1d50 202018c1 branch ali_mesh_encrypt_obfuscation_deceypt_send_message 
+
+mesh_generate_nonce:
+1d51 6fe249cf fetch 4 ,mem_mesh_iv_index 
+1d52 e7e20005 istore 4 ,contw 
+1d53 18a0fff3 add contw ,-13 ,pdata 
+1d54 67e10b95 store 2 ,mem_nonce_ptr 
+1d55 20600000 rtn 
+
+logging_tx_debug_network_receive_packet:
+1d56 6fe08bf2 fetch 1 ,mem_mesh_message_transport_netmic_length 
+1d57 1fe0f20b add pdata ,11 ,loopcnt 
+1d58 da200bf5 arg mem_mesh_message_nid ,rega 
+1d59 da400020 arg mesh_network_receive_packet ,regb 
+1d5a 20201820 branch logging_tx_debug 
+
+ali_mesh_upper_transport_layer_receive_unsegmented_access_message:
+1d5b c3031d5e bbit0 transport_head_bit_akf ,ali_mesh_uuper_transport_layer_decrypt_unsegment_access_by_device_key 
+
+ali_mesh_uuper_transport_layer_decrypt_unsegment_access_by_application_key:
+1d5c 20401d84 call ali_mesh_upper_transport_layer_load_application_nonce_and_application_key 
+1d5d 20201d60 branch ali_mesh_upper_transport_layer_decrypt_unsegmented_message 
+
+ali_mesh_uuper_transport_layer_decrypt_unsegment_access_by_device_key:
+1d5e 20401d91 call ali_mesh_upper_transport_layer_load_device_nonce_and_device_key 
+1d5f 20201d60 branch ali_mesh_upper_transport_layer_decrypt_unsegmented_message 
+
+ali_mesh_upper_transport_layer_decrypt_unsegmented_message:
+1d60 6fe08bf2 fetch 1 ,mem_mesh_message_transport_netmic_length 
+1d61 1fe0fff9 pincrease -7 
+1d62 de000bff arg mem_mesh_message_transport_unsegmented_access_messagepdu ,alarm 
+1d63 20407e64 call disable_user 
+1d64 20201d72 branch ali_mesh_upper_transport_layer_decrypt_message 
+
+ali_mesh_upper_transport_layer_receive_segmented_access_message:
+1d65 6fe08bfe fetch 1 ,mem_mesh_message_transport_head 
+1d66 c3031d69 bbit0 transport_head_bit_akf ,ali_mesh_uuper_transport_layer_decrypt_segment_access_by_device_key 
+
+ali_mesh_uuper_transport_layer_decrypt_segment_access_by_application_key:
+1d67 20401d84 call ali_mesh_upper_transport_layer_load_application_nonce_and_application_key 
+1d68 20201d6b branch ali_mesh_upper_transport_layer_decrypt_segmented_message 
+
+ali_mesh_uuper_transport_layer_decrypt_segment_access_by_device_key:
+1d69 20401d91 call ali_mesh_upper_transport_layer_load_device_nonce_and_device_key 
+1d6a 20201d6b branch ali_mesh_upper_transport_layer_decrypt_segmented_message 
+
+ali_mesh_upper_transport_layer_decrypt_segmented_message:
+1d6b 6fe0ca3d fetch 1 ,mem_mesh_aszmic 
+1d6c 245a7e62 ncall enable_user ,blank 
+1d6d 205a7e64 call disable_user ,blank 
+1d6e 6fe0c9a6 fetch 1 ,mem_mesh_segmented_access_message_current_length 
+1d6f 1fe0fffc pincrease -4 
+1d70 7049a600 jam 0 ,mem_mesh_segmented_access_message_current_length 
+1d71 de0049a7 arg mem_mesh_segmented_access_message_segment ,alarm 
+
+ali_mesh_upper_transport_layer_decrypt_message:
+1d72 1e020400 copy alarm ,temp 
+1d73 20401d7e call ali_mesh_upper_transport_layer_decrypt_message_decrypt_transmic 
+1d74 24628000 nrtn zero 
+1d75 df200001 arg 1 ,loopcnt 
+1d76 da200b97 arg mem_ccm_data_len ,rega 
+1d77 da400040 arg mesh_upper_receive_packet ,regb 
+1d78 20401822 call logging_tx_info 
+1d79 20401d81 call ali_mesh_upper_transport_layer_check_transport_mic_cache 
+1d7a 24740000 nrtn user 
+1d7b 6fe10b98 fetch 2 ,mem_ccm_data_ptr 
+1d7c 1fe26000 copy pdata ,alarm 
+1d7d 20201554 branch ali_mesh_access_layer_check_access_message_opcode 
+
+ali_mesh_upper_transport_layer_decrypt_message_decrypt_transmic:
+1d7e 243419ae nbranch ali_ccm_decrypt ,user 
+1d7f 1fe0fffc pincrease -4 
+1d80 202019ac branch ali_ccm_decrypt_64bit 
+
+ali_mesh_upper_transport_layer_check_transport_mic_cache:
+1d81 58004a3e setarg mem_mesh_access_message_mic_cache 
+1d82 67e10bda store 2 ,mem_mesh_mic_cache_ptr 
+1d83 202017b4 branch ali_mesh_base_adt_cache 
+
+ali_mesh_upper_transport_layer_load_application_nonce_and_application_key:
+1d84 20401d87 call ali_mesh_upper_transport_layer_load_application_nonce 
+
+ali_mesh_upper_transport_layer_load_application_key:
+1d85 d8c04a2d arg mem_mesh_application_key ,contr 
+1d86 20206deb branch load_key 
+
+ali_mesh_upper_transport_layer_load_application_nonce:
+1d87 d8a00c12 arg mem_mesh_application_nonce ,contw 
+1d88 58000001 setarg application_nonce 
+1d89 e7e08005 istore 1 ,contw 
+1d8a 6fe0ca3d fetch 1 ,mem_mesh_aszmic 
+1d8b d8400000 arg 0 ,temp 
+1d8c 7d3a0407 nsetflag blank ,7 ,temp 
+1d8d e0408005 istoret 1 ,contw 
+1d8e 6fe38bf7 fetch 7 ,mem_mesh_message_seq 
+1d8f e7e38005 istore 7 ,contw 
+1d90 20201d51 branch mesh_generate_nonce 
+
+ali_mesh_upper_transport_layer_load_device_nonce_and_device_key:
+1d91 20401d94 call ali_mesh_upper_transport_layer_load_device_nonce 
+
+ali_mesh_upper_transport_layer_load_device_key:
+1d92 d8c04821 arg mem_mesh_device_key ,contr 
+1d93 20206deb branch load_key 
+
+ali_mesh_upper_transport_layer_load_device_nonce:
+1d94 d8a00c12 arg mem_mesh_device_nonce ,contw 
+1d95 58000002 setarg device_nonce 
+1d96 20201d89 branch ali_mesh_upper_transport_layer_load_application_nonce + 2 
+
+ali_mesh_upper_transport_layer_send_access_message:
+1d97 20401dfe call ali_mesh_upper_transport_layer_clear_tx_buffer 
+
+ali_mesh_upper_transport_layer_send_access_message_without_cleat_tx_buffer:
+1d98 da2009fa arg mem_mesh_access_layer_payload ,rega 
+1d99 6f2089f9 fetchr loopcnt ,1 ,mem_mesh_access_layer_payload_len 
+1d9a da400041 arg mesh_upper_send_packet ,regb 
+1d9b 20401822 call logging_tx_info 
+1d9c 477ec03f bpatchx patch3f_5 ,mem_patch3f 
+1d9d 20401dca call ali_mesh_upper_transport_layer_send_access_message_calc_seq 
+1d9e 20401dcf call ali_mesh_upper_transport_layer_send_access_message_add_nid_src_ttl_seq_dst 
+1d9f 58000000 setarg 0 
+1da0 67e0ca3d store 1 ,mem_mesh_aszmic 
+1da1 20401dc0 call ali_mesh_upper_transport_layer_calc_transport_mic 
+1da2 6fe089f9 fetch 1 ,mem_mesh_upper_transport_layer_payload_len 
+1da3 1fe67c0f sub pdata ,unsegmented_access_message_max_upper_transport_access_pdu_len ,null 
+1da4 24211da6 nbranch ali_mesh_upper_transport_layer_send_segmented_access_message ,positive 
+
+ali_mesh_upper_transport_layer_send_unsegmented_access_message:
+1da5 20201c02 branch ali_mesh_lower_transport_layer_send_unsegmented_access_message 
+
+ali_mesh_upper_transport_layer_send_segmented_access_message:
+1da6 477f403f bpatchx patch3f_6 ,mem_patch3f 
+1da7 20401de3 call ali_mesh_upper_transport_layer_send_segmented_access_message_get_seqzero_segon 
+1da8 580009fa setarg mem_mesh_access_payload 
+1da9 67e10c24 store 2 ,mem_mesh_upper_transport_layer_payload_ptr 
+
+ali_mesh_upper_transport_layer_send_segmented_access_message_loop:
+1daa 684889f9 fetcht 1 ,mem_mesh_access_layer_payload_len 
+1dab 5800000c setarg segmented_access_message_unint_pdu_len 
+1dac 20407e58 call not_greater_than 
+1dad 1fe22200 copy pdata ,rega 
+1dae 18427e00 copy temp ,pdata 
+1daf 9a267e00 isub rega ,pdata 
+1db0 67e089f9 store 1 ,mem_mesh_access_layer_payload_len 
+1db1 6fe10c24 fetch 2 ,mem_mesh_upper_transport_layer_payload_ptr 
+1db2 1fe20c00 copy pdata ,contr 
+1db3 9a208400 iadd rega ,temp 
+1db4 60490c24 storet 2 ,mem_mesh_upper_transport_layer_payload_ptr 
+1db5 20401c0c call ali_mesh_lower_transport_layer_send_segmented_access_message 
+1db6 6fe089f9 fetch 1 ,mem_mesh_access_layer_payload_len 
+1db7 207a0000 rtn blank 
+1db8 477fc03f bpatchx patch3f_7 ,mem_patch3f 
+1db9 6fe08c29 fetch 1 ,mem_mesh_segmented_lower_transport_layer_sego 
+1dba 1fe0fe01 pincrease 1 
+1dbb 67e08c29 store 1 ,mem_mesh_segmented_lower_transport_layer_sego 
+1dbc 20401def call ali_mesh_upper_transport_layer_send_segmented_access_message_calc_header 
+1dbd 20401dca call ali_mesh_upper_transport_layer_send_access_message_calc_seq 
+1dbe 20401dcf call ali_mesh_upper_transport_layer_send_access_message_add_nid_src_ttl_seq_dst 
+1dbf 20201daa branch ali_mesh_upper_transport_layer_send_segmented_access_message_loop 
+
+ali_mesh_upper_transport_layer_calc_transport_mic:
+1dc0 6fe08bfe fetch 1 ,mem_mesh_message_transport_head 
+1dc1 c3031dc4 bbit0 transport_head_bit_akf ,ali_mesh_upper_transport_layer_calc_transport_mic_by_devicekey 
+
+ali_mesh_upper_transport_layer_calc_transport_mic_by_appkey:
+1dc2 20401d84 call ali_mesh_upper_transport_layer_load_application_nonce_and_application_key 
+1dc3 20201dc5 branch ali_mesh_upper_transport_layer_calc_transport_mic_encrypt_aesccm 
+
+ali_mesh_upper_transport_layer_calc_transport_mic_by_devicekey:
+1dc4 20401d91 call ali_mesh_upper_transport_layer_load_device_nonce_and_device_key 
+
+ali_mesh_upper_transport_layer_calc_transport_mic_encrypt_aesccm:
+1dc5 6fe089f9 fetch 1 ,mem_mesh_access_layer_payload_len 
+1dc6 1fe08404 add pdata ,4 ,temp 
+1dc7 604889f9 storet 1 ,mem_mesh_upper_transport_layer_payload_len 
+1dc8 d84009fa arg mem_mesh_access_layer_payload ,temp 
+1dc9 2020198d branch ali_ccm_encrypt 
+
+ali_mesh_upper_transport_layer_send_access_message_calc_seq:
+1dca 6fe1ca66 fetch 3 ,mem_mesh_send_message_seq 
+1dcb 1fe0fe01 pincrease 1 
+1dcc 67e1ca66 store 3 ,mem_mesh_send_message_seq 
+1dcd 6fe1498f fetch 2 ,mem_mesh_cb_seq_changed 
+1dce 20207e13 branch callback_func 
+
+ali_mesh_upper_transport_layer_send_access_message_add_nid_src_ttl_seq_dst:
+1dcf 6fe0c9d2 fetch 1 ,mem_mesh_iv_index + 3 
+1dd0 1ff27e00 lshift4 pdata ,pdata 
+1dd1 1fe9fe00 lshift3 pdata ,pdata 
+1dd2 6848c8ce fetcht 1 ,mem_k2_nid 
+1dd3 9841fe00 ior temp ,pdata 
+1dd4 67e0ca6c store 1 ,mem_mesh_send_upper_layer_ivi_and_nid 
+1dd5 6fe0ca6b fetch 1 ,mem_mesh_send_message_ttl 
+1dd6 67e0ca6d store 1 ,mem_mesh_send_upper_layer_ctl_and_ttl 
+1dd7 6fe1ca66 fetch 3 ,mem_mesh_send_message_seq 
+1dd8 67e1ca6e store 3 ,mem_mesh_send_upper_layer_seq 
+1dd9 6fe14a69 fetch 2 ,mem_mesh_send_message_src 
+1dda 67e14a71 store 2 ,mem_mesh_send_upper_layer_src 
+1ddb 6fe10c1f fetch 2 ,mem_mesh_send_message_dst 
+1ddc 67e14a73 store 2 ,mem_mesh_send_upper_layer_dst 
+1ddd da204a6e arg mem_mesh_send_upper_layer_seq ,rega 
+1dde df200003 arg 3 ,loopcnt 
+1ddf 20407d45 call inverse_data 
+1de0 6fe44a6d fetch 8 ,mem_mesh_send_upper_layer_ctl_and_ttl 
+1de1 67e40bf6 store 8 ,mem_mesh_message_ttl 
+1de2 20600000 rtn 
+
+ali_mesh_upper_transport_layer_send_segmented_access_message_get_seqzero_segon:
+1de3 684889f9 fetcht 1 ,mem_mesh_upper_transport_layer_payload_len 
+1de4 1fe6fc0c div pdata ,segmented_access_message_unint_pdu_len 
+1de5 20407dfd call wait_div_end 
+1de6 18078400 quotient temp 
+1de7 18077e00 remainder pdata 
+1de8 205a1dfc call ali_mesh_upper_transport_layer_send_segmented_access_message_sub_segn_one ,blank 
+1de9 60488c2a storet 1 ,mem_mesh_segmented_lower_transport_layer_segn 
+1dea 700c2900 jam 0 ,mem_mesh_segmented_lower_transport_layer_sego 
+1deb 6fe1ca66 fetch 3 ,mem_mesh_send_message_seq 
+1dec d8401fff arg 0x1fff ,temp 
+1ded 98417e00 iand temp ,pdata 
+1dee 67e10c27 store 2 ,mem_mesh_segmented_lower_transport_layer_segzero 
+
+ali_mesh_upper_transport_layer_send_segmented_access_message_calc_header:
+1def 6fe10c27 fetch 2 ,mem_mesh_segmented_lower_transport_layer_segzero 
+1df0 1ff27e00 lshift4 pdata ,pdata 
+1df1 1fe3fe00 lshift pdata ,pdata 
+1df2 68488c29 fetcht 1 ,mem_mesh_segmented_lower_transport_layer_sego 
+1df3 9841fe00 ior temp ,pdata 
+1df4 1ff27e00 lshift4 pdata ,pdata 
+1df5 1fe3fe00 lshift pdata ,pdata 
+1df6 68488c2a fetcht 1 ,mem_mesh_segmented_lower_transport_layer_segn 
+1df7 9841fe00 ior temp ,pdata 
+1df8 67e1ca76 store 3 ,mem_mesh_segmented_access_lower_transport_layer_szmic_seqzero_sego_segn 
+1df9 df200003 arg 3 ,loopcnt 
+1dfa da204a76 arg mem_mesh_segmented_access_lower_transport_layer_szmic_seqzero_sego_segn ,rega 
+1dfb 20207d45 branch inverse_data 
+
+ali_mesh_upper_transport_layer_send_segmented_access_message_sub_segn_one:
+1dfc 184085ff increase -1 ,temp 
+1dfd 20600000 rtn 
+
+ali_mesh_upper_transport_layer_clear_tx_buffer:
+1dfe 20207968 branch queue_init 
+
+le_init_conn:
+1dff 474dc033 bpatchx patch33_3 ,mem_patch33 
+1e00 7855fc00 disable wake 
+1e01 70029d01 jam 1 ,mem_le_conn_handle 
+1e02 70028703 jam 3 ,mem_le_state 
+1e03 70029e01 jam 1 ,mem_le_arq 
+1e04 5fffffff setarg -1 
+1e05 67e102a1 store 2 ,mem_le_event_count 
+1e06 18007e00 force 0 ,pdata 
+1e07 67e0829f store 1 ,mem_le_ch 
+1e08 67e082aa store 1 ,mem_le_op 
+1e09 67e1c171 store 3 ,mem_sniff_rcv 
+1e0a 67e1c174 store 3 ,mem_sniff_lost 
+1e0b 20402161 call le_clear_enc 
+1e0c 7041f301 jam 1 ,mem_le_txheader 
+1e0d 7041f400 jam 0 ,mem_le_txlen 
+1e0e 7002bc01 jam fun_rx_ll_1m_phy ,mem_le_rx_phy 
+1e0f 7002bd01 jam fun_tx_ll_1m_phy ,mem_le_tx_phy 
+1e10 70443300 jam 0 ,mem_le_l2cap_att_states 
+1e11 2020223b branch le_supervision_flush 
+
+le_init_master:
+1e12 474e4033 bpatchx patch33_4 ,mem_patch33 
+1e13 7834fc00 enable master 
+1e14 70028803 jam lemode_master ,mem_le_mode 
+1e15 70443501 jam 1 ,mem_le_att_handle 
+1e16 70099e01 jam 1 ,mem_le_search_handle_start 
+1e17 5800ffff setarg 0xffff 
+1e18 67e109a0 store 2 ,mem_le_search_handle_end 
+1e19 18007e00 force 0 ,pdata 
+1e1a 67e2c6a0 store 5 ,mem_ccm_pcnt_rx 
+1e1b 79207e27 set1 le_ccm_directionbit ,pdata 
+1e1c 67e2c69b store 5 ,mem_ccm_pcnt_tx 
+1e1d 20201dff branch le_init_conn 
+
+le_init_slave:
+1e1e 474ec033 bpatchx patch33_5 ,mem_patch33 
+1e1f 7854fc00 disable master 
+1e20 58000017 setarg 0x17 
+1e21 67e14380 store 2 ,mem_le_remote_mtu 
+1e22 1fe0fe04 increase 4 ,pdata 
+1e23 67e14444 store 2 ,mem_remote_rx_max_octets 
+1e24 70028801 jam lemode_slave ,mem_le_mode 
+1e25 70442500 jam 0 ,mem_le_adv_enable 
+1e26 70009e00 jam 0 ,mem_lpm_current_mult 
+1e27 20401e8d call le_clear_pairing_state 
+1e28 6fe102b5 fetch 2 ,mem_le_superto 
+1e29 67e14392 store 2 ,mem_le_init_superto 
+1e2a 6fe10289 fetch 2 ,mem_le_tsniff 
+1e2b 1feffe05 mul32 pdata ,5 ,pdata 
+1e2c 1ff1fe00 rshift4 pdata ,pdata 
+1e2d 67e102b5 store 2 ,mem_le_superto 
+1e2e 20201dff branch le_init_conn 
+
+le_conn_dispatch:
+1e2f 474f4033 bpatchx patch33_6 ,mem_patch33 
+1e30 20401eb8 call le_enable 
+1e31 6fe08287 fetch 1 ,mem_le_state 
+1e32 2feffe04 isolate1 lestate_encryption ,pdata 
+1e33 79208031 setflag true ,mark_ble_encryption ,mark 
+1e34 20402fc9 call app_process_ble 
+1e35 6fe08288 fetch 1 ,mem_le_mode 
+1e36 c2809e38 bbit1 mode_master ,le_master_dispatch 
+1e37 20201e4b branch le_slave_dispatch 
+
+le_master_dispatch:
+1e38 474fc033 bpatchx patch33_7 ,mem_patch33 
+1e39 7834fc00 enable master 
+1e3a 20402232 call le_supervision_update 
+1e3b 20211e48 branch le_master_disconn ,positive 
+1e3c 2040154e call check_ble_disabled 
+1e3d 20401f04 call le_setup 
+1e3e 20402176 call le_prepare_tx 
+1e3f 7856fc00 disable match 
+1e40 20402038 call le_transmit_receive_sifs 
+1e41 24768000 nrtn match 
+1e42 6fe08005 fetch 1 ,mem_le_conn_rcv 
+1e43 1fe0fe01 increase 1 ,pdata 
+1e44 67e08005 store 1 ,mem_le_conn_rcv 
+1e45 20402127 call le_acknowledge 
+1e46 7854fc00 disable master 
+1e47 20600000 rtn 
+
+le_master_disconn:
+1e48 20401e81 call le_disconnect 
+1e49 7854fc00 disable master 
+1e4a 20600000 rtn 
+
+le_slave_dispatch:
+1e4b 47504034 bpatchx patch34_0 ,mem_patch34 
+1e4c 7043db00 jam 0 ,mem_le_md_count 
+1e4d 793f802f set0 mark_ble_crc_fail ,mark 
+1e4e 204075c4 call sp_calc_sequence_256 
+1e4f 20402987 call le_secure_connect_sm 
+1e50 78577c00 disable attempt 
+1e51 20402232 call le_supervision_update 
+1e52 20211e81 branch le_slave_disconn ,positive 
+1e53 2040154e call check_ble_disabled 
+1e54 6fe082bc fetch 1 ,mem_le_rx_phy 
+1e55 20401e9e call le_enable_phy_by_pdata 
+1e56 20401f04 call le_setup 
+1e57 20401f5e call le_receive_slave 
+1e58 242c1e72 nbranch le_slave_unsync ,sync 
+1e59 20401e91 call le_got_first_packet 
+1e5a 20369e5d branch le_slave_match ,match 
+1e5b c5179e5d bmark1 mark_ble_crc_fail ,le_slave_crc_fail 
+1e5c 20201e6c branch le_slave_cont 
+
+le_slave_crc_fail:
+
+le_slave_match:
+1e5d 4750c034 bpatchx patch34_1 ,mem_patch34 
+1e5e 6fe0c3db fetch 1 ,mem_le_md_count 
+1e5f 1fe0fe01 pincrease 1 
+1e60 67e0c3db store 1 ,mem_le_md_count 
+1e61 c0061e6c beq le_md_max_count ,le_slave_cont 
+1e62 20402127 call le_acknowledge 
+1e63 20402176 call le_prepare_tx 
+1e64 6fe082bd fetch 1 ,mem_le_tx_phy 
+1e65 20401e9e call le_enable_phy_by_pdata 
+1e66 20402048 call le_transmit 
+1e67 204021d9 call le_parse 
+1e68 6fe1446d fetch 2 ,mem_cb_ble_transmit 
+1e69 20407e13 call callback_func 
+1e6a 20401e76 call le_check_md 
+1e6b 20341e7b branch le_slave_more_data ,user 
+
+le_slave_cont:
+1e6c 47514034 bpatchx patch34_2 ,mem_patch34 
+1e6d 2040294d call le_pairing_sm 
+1e6e 20402944 call le_check_paring_time 
+1e6f 204078b5 call check_51cmd 
+1e70 6fe082aa fetch 1 ,mem_le_op 
+1e71 c2819e81 bbit1 op_disconn ,le_slave_disconn 
+
+le_slave_unsync:
+1e72 4751c034 bpatchx patch34_3 ,mem_patch34 
+1e73 20400e79 call end_of_packet 
+1e74 20402305 call le_lpm_set_mult 
+1e75 2020105c branch calc_clke_offset 
+
+le_check_md:
+1e76 78547c00 disable user 
+1e77 c5157e62 bmark1 mark_ble_rx_md ,enable_user 
+1e78 c514fe62 bmark1 mark_ble_tx_md ,enable_user 
+1e79 c517fe62 bmark1 mark_ble_crc_fail ,enable_user 
+1e7a 20600000 rtn 
+
+le_slave_more_data:
+1e7b 47524034 bpatchx patch34_4 ,mem_patch34 
+1e7c 78377c00 enable attempt 
+1e7d 2040203c call le_transmit_receive_sifs_notx 
+1e7e 20369e5d branch le_slave_match ,match 
+1e7f c5179e5d bmark1 mark_ble_crc_fail ,le_slave_crc_fail 
+1e80 20201e6c branch le_slave_cont 
+
+le_slave_disconn:
+
+le_disconnect:
+1e81 4752c034 bpatchx patch34_5 ,mem_patch34 
+1e82 20401e88 call le_clear_connection_info 
+1e83 2040308b call app_disconn_reason_collect_ble 
+1e84 20401e8d call le_clear_pairing_state 
+1e85 20402995 call le_sc_state_clear 
+1e86 70095b15 jam bt_evt_le_disconnected ,mem_fifo_temp 
+1e87 2020789f branch ui_ipc_send_event 
+
+le_clear_connection_info:
+1e88 d8a044e6 arg mem_used_map ,contw 
+1e89 20407d29 call memset0_16 
+1e8a 70029d00 jam 0 ,mem_le_conn_handle 
+1e8b 70028800 jam lemode_idle ,mem_le_mode 
+1e8c 70028700 jam 0 ,mem_le_state 
+
+le_clear_pairing_state:
+1e8d 47534034 bpatchx patch34_6 ,mem_patch34 
+1e8e 70439a00 jam flag_le_enc_null ,mem_le_enc_state 
+1e8f 70439900 jam flag_le_pairing_null ,mem_le_pairing_state 
+1e90 20206ef9 branch sp_clear_flags 
+
+le_got_first_packet:
+1e91 4753c034 bpatchx patch34_7 ,mem_patch34 
+1e92 6fe08005 fetch 1 ,mem_le_conn_rcv 
+1e93 1fe0fe01 increase 1 ,pdata 
+1e94 67e08005 store 1 ,mem_le_conn_rcv 
+1e95 6fe08287 fetch 1 ,mem_le_state 
+1e96 c3818000 rtnbit1 lestate_got_first_packet 
+1e97 79207e03 set1 lestate_got_first_packet ,pdata 
+1e98 67e08287 store 1 ,mem_le_state 
+1e99 6fe14392 fetch 2 ,mem_le_init_superto 
+1e9a 67e102b5 store 2 ,mem_le_superto 
+1e9b 58000000 setarg 0 
+1e9c 67e243ba store 4 ,mem_le_transmit_window 
+1e9d 20600000 rtn 
+
+le_enable_phy_by_pdata:
+1e9e 1fe20400 copy pdata ,temp 
+1e9f 47544035 bpatchx patch35_0 ,mem_patch35 
+1ea0 18427e00 copy temp ,pdata 
+1ea1 c2801eb8 bbit1 bit_le_1m_phy ,le_enable 
+1ea2 c2809ea7 bbit1 bit_le_2m_phy ,le_enable_2m 
+1ea3 c3011eb8 bbit0 bit_le_coded_phy ,le_enable 
+1ea4 c2839eb5 bbit1 bit_le_coded_phy_s8 ,le_enable_coded_s8 
+1ea5 c2811ead bbit1 bit_le_coded_phy_s2 ,le_enable_coded_s2 
+1ea6 20201eb8 branch le_enable 
+
+le_enable_2m:
+1ea7 20401eb8 call le_enable 
+1ea8 7920002d set1 mark_ble_2m ,mark 
+1ea9 793f802e set0 mark_ble_lr ,mark 
+1eaa 70890103 jam 0x03 ,0x8901 
+1eab 70892084 jam 0x84 ,0x8920 
+1eac 20600000 rtn 
+
+le_enable_coded_s2:
+
+le_enable_coded:
+1ead 20401eb8 call le_enable 
+1eae 7920002e set1 mark_ble_lr ,mark 
+1eaf 793f802d set0 mark_ble_lr_s8 ,mark 
+1eb0 70890105 jam 0x05 ,0x8901 
+1eb1 70892080 jam 0x80 ,0x8920 
+1eb2 70893020 jam 0x20 ,0x8930 
+1eb3 7089340a jam 0x0a ,0x8934 
+1eb4 20600000 rtn 
+
+le_enable_coded_s8:
+1eb5 20401ead call le_enable_coded 
+1eb6 7920002d set1 mark_ble_lr_s8 ,mark 
+1eb7 20600000 rtn 
+
+le_enable:
+1eb8 4754c035 bpatchx patch35_1 ,mem_patch35 
+1eb9 783b7c00 enable le 
+1eba 793f802d set0 mark_ble_2m ,mark 
+1ebb 793f802e set0 mark_ble_lr ,mark 
+1ebc 70890101 jam 0x01 ,0x8901 
+1ebd 70892080 jam 0x80 ,0x8920 
+1ebe 708925a7 jam 0xa7 ,0x8925 
+1ebf 70893003 jam 0x03 ,0x8930 
+1ec0 70893740 jam 0x40 ,0x8937 
+1ec1 20600000 rtn 
+
+le_disable:
+1ec2 47554035 bpatchx patch35_2 ,mem_patch35 
+1ec3 785b7c00 disable le 
+1ec4 793f8031 set0 mark_ble_encryption ,mark 
+1ec5 70890100 jam 0x00 ,0x8901 
+1ec6 70892080 jam 0x80 ,0x8920 
+1ec7 708925a3 jam 0xa3 ,0x8925 
+1ec8 70893006 jam 0x06 ,0x8930 
+1ec9 70893402 jam 0x02 ,0x8934 
+1eca 70893728 jam 0x28 ,0x8937 
+1ecb 20600000 rtn 
+
+le_prep:
+1ecc 7844fc00 disable enable_crc 
+1ecd 7843fc00 disable enable_white 
+1ece 6fe182af fetch 3 ,mem_le_crcinit 
+1ecf 98001e00 iforce crc24_init 
+1ed0 6fe08016 fetch 1 ,mem_le_ch_mapped 
+1ed1 1fed8400 reverse pdata ,temp 
+1ed2 79200401 set1 1 ,temp 
+1ed3 18431c00 rshift temp ,white_init 
+1ed4 20600000 rtn 
+
+le_rx_setfreq:
+1ed5 20401ede call le_setfreq 
+
+le_rf_rx_enable:
+1ed6 2040117e call set_freq_rx 
+1ed7 6fe1015d fetch 2 ,mem_param_pll_setup 
+1ed8 20401322 call sleep 
+1ed9 2020119a branch rf_rx_enable 
+
+le_tx_setfreq:
+1eda 203691ed branch txon ,match 
+1edb c51791ed bmark1 mark_ble_crc_fail ,txon 
+
+le_tx_setfreq0:
+1edc 20401ede call le_setfreq 
+1edd 202011d2 branch set_freq_tx 
+
+le_setfreq:
+1ede 4755c035 bpatchx patch35_3 ,mem_patch35 
+1edf 20401165 call set_sync_on 
+1ee0 6fe082df fetch 1 ,mem_le_testtype 
+1ee1 243a1ef1 nbranch le_ctf_test ,blank 
+1ee2 6fe08016 fetch 1 ,mem_le_ch_mapped 
+1ee3 1fe67c24 sub pdata ,36 ,null 
+1ee4 20211eeb branch le_ctf_normal ,positive 
+1ee5 18000400 force 0 ,temp 
+1ee6 c1128000 rtneq 37 
+1ee7 18000418 force 24 ,temp 
+1ee8 c1130000 rtneq 38 
+1ee9 1800044e force 78 ,temp 
+1eea 20600000 rtn 
+
+le_ctf_normal:
+1eeb 1fe67c0a sub pdata ,10 ,null 
+1eec 20211eee branch le_ctf_low ,positive 
+1eed 1fe0fe01 increase 1 ,pdata 
+
+le_ctf_low:
+1eee 1fe3fe00 lshift pdata ,pdata 
+1eef 1fe08402 add pdata ,2 ,temp 
+1ef0 20600000 rtn 
+
+le_ctf_test:
+1ef1 6fe08016 fetch 1 ,mem_le_ch_mapped 
+1ef2 1fe38400 lshift pdata ,temp 
+1ef3 20600000 rtn 
+
+le_sca_map:
+1ef4 d84001f4 arg 500 ,temp 
+1ef5 207a0000 rtn blank 
+1ef6 d84000fa arg 250 ,temp 
+1ef7 c1008000 rtneq 1 
+1ef8 d8400096 arg 150 ,temp 
+1ef9 c1010000 rtneq 2 
+1efa d8400064 arg 100 ,temp 
+1efb c1018000 rtneq 3 
+1efc d840004b arg 75 ,temp 
+1efd c1020000 rtneq 4 
+1efe d8400032 arg 50 ,temp 
+1eff c1028000 rtneq 5 
+1f00 d8400028 arg 40 ,temp 
+1f01 c1030000 rtneq 6 
+1f02 d8400014 arg 20 ,temp 
+1f03 20600000 rtn 
+
+le_setup:
+1f04 47564035 bpatchx patch35_4 ,mem_patch35 
+1f05 78287c00 enable swfine 
+1f06 6fe202ab fetch 4 ,mem_le_access 
+1f07 98001200 iforce access 
+1f08 204010ab call calc_mod_value_scale_le 
+1f09 20401f3c call le_map_channel 
+1f0a 58000200 setarg 0x200 
+1f0b 20349f0e branch le_setup_master ,master 
+1f0c 6fe10295 fetch 2 ,mem_le_receive_window 
+1f0d 1fe37e00 rshift pdata ,pdata 
+
+le_setup_master:
+1f0e 6849015d fetcht 2 ,mem_param_pll_setup 
+1f0f 9840fe00 iadd temp ,pdata 
+1f10 204012b6 call ahead_window 
+1f11 1b427e00 deposit clke 
+1f12 20600000 rtn 
+
+le_context_nextevent:
+1f13 4756c035 bpatchx patch35_5 ,mem_patch35 
+1f14 62610974 storer regc ,2 ,mem_regb 
+1f15 62410978 storer regb ,2 ,mem_regc 
+1f16 67210987 storer loopcnt ,2 ,mem_loopcnt 
+1f17 1a208c01 add rega ,coffset_mode ,contr 
+1f18 efe08006 ifetch 1 ,contr 
+1f19 c4000000 rtnbit0 mode_le 
+1f1a 1a208a1a add rega ,coffset_le_event_cnt ,contw 
+1f1b efe10005 ifetch 2 ,contw 
+1f1c 1fe0fe01 increase 1 ,pdata 
+1f1d e7e10005 istore 2 ,contw 
+1f1e 204020a8 call le_update_param 
+1f1f 204020ca call le_update_channel_map 
+1f20 204020d3 call le_update_phy 
+1f21 20401f26 call le_context_nexthop 
+1f22 6a610974 fetchr regc ,2 ,mem_regb 
+1f23 6a610978 fetchr regc ,2 ,mem_regc 
+1f24 6f210987 fetchr loopcnt ,2 ,mem_loopcnt 
+1f25 20600000 rtn 
+
+le_context_nexthop:
+1f26 1a208c19 add rega ,coffset_le_hop ,contr 
+1f27 efe08006 ifetch 1 ,contr 
+1f28 1a208a18 add rega ,coffset_le_ch ,contw 
+1f29 e8408005 ifetcht 1 ,contw 
+1f2a 9840fe00 iadd temp ,pdata 
+1f2b 1fe67c24 sub pdata ,36 ,null 
+1f2c 20211f2e branch le_nexthop_nowrap ,positive 
+1f2d 1fe0ffdb increase -37 ,pdata 
+
+le_nexthop_nowrap:
+1f2e e7e08005 istore 1 ,contw 
+1f2f 20600000 rtn 
+
+le_calc_channel_map:
+1f30 1a208c30 add rega ,coffset_le_channel_map ,contr 
+1f31 efe28006 ifetch 5 ,contr 
+1f32 18000400 force 0 ,temp 
+1f33 18007225 force 37 ,loopcnt 
+
+le_count_channels_loop:
+1f34 c3001f36 bbit0 0 ,le_count_channels_notused 
+1f35 18408401 increase 1 ,temp 
+
+le_count_channels_notused:
+1f36 1fe37e00 rshift pdata ,pdata 
+1f37 c2001f34 loop le_count_channels_loop 
+1f38 1840ffff add temp ,-1 ,pdata 
+1f39 1a208a22 add rega ,coffset_le_channels ,contw 
+1f3a e7e08005 istore 1 ,contw 
+1f3b 20600000 rtn 
+
+le_map_channel:
+1f3c 47574035 bpatchx patch35_6 ,mem_patch35 
+1f3d 6fe0829f fetch 1 ,mem_le_ch 
+1f3e 98000e00 iforce queue 
+1f3f 684a82b7 fetcht 5 ,mem_le_channel_map 
+1f40 a84fffff qisolate1 temp 
+1f41 20209f51 branch le_map_channel_end ,true 
+
+le_map_channel_next:
+1f42 6fe082a9 fetch 1 ,mem_le_channels 
+1f43 98e67e00 isub queue ,pdata 
+1f44 20211f47 branch le_map_channel_cont ,positive 
+1f45 1fe60fff sub pdata ,-1 ,queue 
+1f46 20201f42 branch le_map_channel_next 
+
+le_map_channel_cont:
+1f47 18e27200 copy queue ,loopcnt 
+1f48 18000e00 force 0 ,queue 
+
+le_map_channel_loop:
+1f49 a84fffff qisolate1 temp 
+1f4a 20209f4c branch le_map_channel_skip ,true 
+1f4b 1f20f201 increase 1 ,loopcnt 
+
+le_map_channel_skip:
+1f4c 1f227e00 deposit loopcnt 
+1f4d 203a1f51 branch le_map_channel_end ,blank 
+1f4e 18e08e01 increase 1 ,queue 
+1f4f 1f20f3ff increase -1 ,loopcnt 
+1f50 20201f49 branch le_map_channel_loop 
+
+le_map_channel_end:
+1f51 18e27e00 deposit queue 
+1f52 67e08016 store 1 ,mem_le_ch_mapped 
+1f53 20600000 rtn 
+
+le_wait_tx:
+1f54 20349f57 branch le_wait_master ,master 
+1f55 37c18200 until null ,timeout 
+1f56 20600000 rtn 
+
+le_wait_master:
+1f57 d9600ea0 arg 0xea0 ,timeup 
+1f58 34730200 until clkn_rt ,meet 
+1f59 20600000 rtn 
+
+le_receive_adv:
+1f5a 78487c00 disable swfine 
+1f5b 6fe143e3 fetch 2 ,mem_le_scan_window 
+1f5c 1fe21600 copy pdata ,timeup 
+1f5d 20201f64 branch le_receive_packet 
+
+le_receive_slave:
+1f5e 4757c035 bpatchx patch35_7 ,mem_patch35 
+1f5f 20401fc8 call le_dec_init 
+1f60 78287c00 enable swfine 
+1f61 6fe10295 fetch 2 ,mem_le_receive_window 
+1f62 684a43ba fetcht 4 ,mem_le_transmit_window 
+1f63 98409600 iadd temp ,timeup 
+
+le_receive_packet:
+1f64 20401ed5 call le_rx_setfreq 
+
+le_receive_rxon:
+1f65 47584036 bpatchx patch36_0 ,mem_patch36 
+1f66 20401ecc call le_prep 
+1f67 c5971f6c bmark0 mark_ble_lr ,le_receive_nolr 
+1f68 783cfc00 pulse dewhiten_code_calc 
+1f69 2000001e nop 30 
+1f6a 20401ecc call le_prep 
+1f6b 19699600 lshift3 timeup ,timeup 
+
+le_receive_nolr:
+1f6c 7856fc00 disable match 
+1f6d 7826fc00 enable decode_fec0 
+1f6e 7830fc00 enable is_rx 
+1f6f 78507c00 disable is_tx 
+1f70 19623600 copy timeup ,stop_watch 
+1f71 37c18400 correlate null ,timeout 
+1f72 20371f75 branch le_receive_on_attempt ,attempt 
+1f73 1b420400 copy clke ,temp 
+1f74 604b0098 storet 6 ,mem_sync_clke 
+
+le_receive_on_attempt:
+1f75 242c2003 nbranch le_unsync_end ,sync 
+1f76 4758c036 bpatchx patch36_1 ,mem_patch36 
+1f77 78287c00 enable swfine 
+1f78 db604eab arg param_t_ifs_150us + param_20ms_init + param_sync_time_difference ,stop_watch 
+1f79 6fe0c1ed fetch 1 ,mem_system_clk 
+1f7a 9b6fb600 imul32 stop_watch ,stop_watch 
+1f7b 20404c9c call rf_debug_rx_sync_line 
+1f7c 20371f82 branch le_receive_skip ,attempt 
+1f7d 20402007 call calc_clke_all_modem 
+1f7e 6fe08287 fetch 1 ,mem_le_state 
+1f7f c3019f82 bbit0 lestate_got_first_packet ,le_receive_skip 
+1f80 684b0098 fetcht 6 ,mem_sync_clke 
+1f81 205593df call lpm_adjust_clk ,wake 
+
+le_receive_skip:
+1f82 20401238 call save_rssi 
+1f83 7823fc00 enable enable_white 
+1f84 7824fc00 enable enable_crc 
+1f85 09800008 parse demod ,bucket ,8 
+1f86 19897e00 rshift3 pwindow ,pdata 
+1f87 67e0816b store 1 ,mem_le_rxbuf_data_header 
+1f88 09800008 parse demod ,bucket ,8 
+1f89 19897e00 rshift3 pwindow ,pdata 
+1f8a 67e0816c store 1 ,mem_le_rxbuf_data_length 
+1f8b 1fe27200 copy pdata ,loopcnt 
+1f8c 20229fa7 branch le_rx_nopayload ,zero 
+1f8d c5189f93 bmark1 mark_ble_encryption ,le_rx_dec 
+
+le_rx_loop:
+1f8e 09800008 parse demod ,bucket ,8 
+1f8f 19897e00 rshift3 pwindow ,pdata 
+1f90 e7e08005 istore 1 ,contw 
+1f91 c2001f8e loop le_rx_loop 
+1f92 20201fa7 branch le_rx_nopayload 
+
+le_rx_dec:
+1f93 18a22400 copy contw ,regb 
+1f94 20402120 call le_check_retransmit 
+1f95 6a20816c fetchr rega ,1 ,mem_le_rxbuf_data_length 
+1f96 1a20a3fc increase -4 ,rega 
+1f97 24211ffb nbranch le_mic_error ,positive 
+1f98 20401fcd call le_dec_start 
+1f99 1a420a00 copy regb ,contw 
+1f9a d8400000 arg 0 ,temp 
+1f9b 6f20816c fetchr loopcnt ,1 ,mem_le_rxbuf_data_length 
+1f9c 1f20f3fc increase -4 ,loopcnt 
+1f9d 20229fa5 branch le_rx_dec_loop_end ,zero 
+
+le_rx_dec_loop:
+1f9e 09800008 parse demod ,bucket ,8 
+1f9f 19897e00 rshift3 pwindow ,pdata 
+1fa0 e7e08005 istore 1 ,contw 
+1fa1 18408401 increase 1 ,temp 
+1fa2 18417c0f and temp ,0xf ,null 
+1fa3 20429fea call le_dec ,zero 
+1fa4 c2001f9e loop le_rx_dec_loop 
+
+le_rx_dec_loop_end:
+1fa5 20401ff2 call le_dec_end 
+1fa6 1a420a00 copy regb ,contw 
+
+le_rx_nopayload:
+1fa7 47594036 bpatchx patch36_2 ,mem_patch36 
+1fa8 09800018 parse demod ,bucket ,24 
+1fa9 1fef7e00 rshift32 pdata ,pdata 
+1faa 1ff17e00 rshift16 pdata ,pdata 
+1fab e7e18005 istore 3 ,contw 
+1fac 78287c00 enable swfine 
+1fad 20402015 call le_set_until_tx_timer 
+1fae 20231fff branch le_crc_fail ,crc_failed 
+1faf c5989fb9 bmark0 mark_ble_encryption ,le_rx_match 
+1fb0 6fe0816c fetch 1 ,mem_le_rxbuf_data_length 
+1fb1 203a1fb9 branch le_rx_match ,blank 
+1fb2 1fe0fffc increase -4 ,pdata 
+1fb3 67e0816c store 1 ,mem_le_rxbuf_data_length 
+1fb4 20406d80 call wait_ccm_done 
+1fb5 6ff08108 fetch 1 ,core_misc_status 
+1fb6 c3039ffb bbit0 7 ,le_mic_error 
+1fb7 1800700c force regidx_result ,regext_index 
+1fb8 65e20273 storer regext ,4 ,mem_le_peer_mic 
+
+le_rx_match:
+1fb9 20404c9b call rf_debug_rx_crc_line 
+1fba 7836fc00 enable match 
+1fbb 793f802f set0 mark_ble_crc_fail ,mark 
+
+le_crc_fail_tx:
+1fbc 20406d82 call ccm_ctrl_clr 
+1fbd 6fe082bc fetch 1 ,mem_le_rx_phy 
+1fbe 7d3e7e07 nsetflag ble_coded_info ,bit_le_coded_phy_s8 ,pdata 
+1fbf 67e082bc store 1 ,mem_le_rx_phy 
+
+le_set_txfreq:
+1fc0 4759c036 bpatchx patch36_3 ,mem_patch36 
+1fc1 68488017 fetcht 1 ,mem_last_freq 
+1fc2 1840a202 add temp ,2 ,rega 
+1fc3 c5169fc5 bmark1 mark_ble_2m ,le_set_txfreq_offset 
+1fc4 1840a201 add temp ,1 ,rega 
+
+le_set_txfreq_offset:
+1fc5 204011c2 call rf_tx_write_freq 
+1fc6 7846fc00 disable decode_fec0 
+1fc7 20201165 branch set_sync_on 
+
+le_dec_init:
+1fc8 c6988000 rtnmark0 mark_ble_encryption 
+1fc9 20406df4 call load_sk 
+1fca 1800700c force regidx_result ,regext_index 
+1fcb 20406df9 call aes_clear 
+1fcc 20206df8 branch aes_clear_data 
+
+le_dec_start:
+1fcd 7080d500 jam 0 ,core_ccm_aad0 
+1fce 7080d601 jam 1 ,core_ccm_aad1 
+1fcf 6fe0816b fetch 1 ,mem_le_rxbuf_data_header 
+1fd0 1fe17e03 and_into 0x3 ,pdata 
+1fd1 67f080d7 store 1 ,core_ccm_aad2 
+1fd2 5800016d setarg mem_le_rxbuf_data_payload 
+1fd3 67f100d1 store 2 ,core_ccm_input_playload_addr 
+1fd4 67f100d3 store 2 ,core_ccm_output_playload_addr 
+1fd5 6a20816c fetchr rega ,1 ,mem_le_rxbuf_data_length 
+1fd6 1a20a3fc increase -4 ,rega 
+1fd7 684ac6a0 fetcht 5 ,mem_ccm_pcnt_rx 
+1fd8 280ffe0f isolate1 mark_old_packet ,mark 
+1fd9 20409fe0 call le_pcnt_rx_sub1 ,true 
+1fda 20406c8c call ccm_b0 
+1fdb 58000000 setarg 0 
+1fdc 67f100da store 2 ,core_ccm_inptr 
+1fdd 70800a06 jam 6 ,core_ccm_ctrl 
+1fde 70800a07 jam 7 ,core_ccm_ctrl 
+1fdf 20600000 rtn 
+
+le_pcnt_rx_sub1:
+1fe0 18467c00 sub temp ,0 ,null 
+1fe1 20229fe5 branch le_pcnt_rx_sub1_0 ,zero 
+1fe2 184085ff increase -1 ,temp 
+1fe3 79200427 set1 le_ccm_directionbit ,temp 
+1fe4 20600000 rtn 
+
+le_pcnt_rx_sub1_0:
+1fe5 58ffffff setarg 0xffffff 
+1fe6 1ff07e00 lshift16 pdata ,pdata 
+1fe7 d840ffff arg 0xffff ,temp 
+1fe8 98418400 ior temp ,temp 
+1fe9 20600000 rtn 
+
+le_dec:
+1fea 18a22400 copy contw ,regb 
+1feb 6fe0816c fetch 1 ,mem_le_rxbuf_data_length 
+1fec 1fe0fffc increase -4 ,pdata 
+1fed 98467c00 isub temp ,null 
+1fee 20628000 rtn zero 
+1fef 605900da storet 2 ,core_ccm_inptr 
+1ff0 1a420a00 copy regb ,contw 
+1ff1 20600000 rtn 
+
+le_dec_end:
+1ff2 09800020 parse demod ,bucket ,32 
+1ff3 1fef7e00 rshift32 pdata ,pdata 
+1ff4 1fecfe00 rshift8 pdata ,pdata 
+1ff5 e7e20005 istore 4 ,contw 
+1ff6 18a22400 copy contw ,regb 
+1ff7 18007000 force regidx_data ,regext_index 
+1ff8 1fe25e00 copy pdata ,regext 
+1ff9 605900da storet 2 ,core_ccm_inptr 
+1ffa 20600000 rtn 
+
+le_mic_error:
+1ffb 20202005 branch le_end_of_packet 
+
+le_retransmit_end_of_packet:
+1ffc 20402015 call le_set_until_tx_timer 
+1ffd 20400e79 call end_of_packet 
+1ffe 20201fb9 branch le_rx_match 
+
+le_crc_fail:
+1fff 20404c9d call rf_debug_rx_crc_fail_line 
+2000 c517a003 bmark1 mark_ble_crc_fail ,le_crc_fail_consecutive 
+2001 7920002f set1 mark_ble_crc_fail ,mark 
+2002 20201fbc branch le_crc_fail_tx 
+
+le_unsync_end:
+
+le_crc_fail_consecutive:
+2003 793f802f set0 mark_ble_crc_fail ,mark 
+2004 20202005 branch le_end_of_packet 
+
+le_end_of_packet:
+2005 20406d82 call ccm_ctrl_clr 
+2006 20200e79 branch end_of_packet 
+
+calc_clke_all_modem:
+2007 c517200d bmark1 mark_ble_lr ,calc_clke_modem_coded 
+2008 c516a011 bmark1 mark_ble_2m ,calc_clke_modem_2m 
+2009 6fe10165 fetch 2 ,mem_param_clke_cal_le_1m 
+200a 1fe25200 copy pdata ,clke_rt 
+200b 1c225000 copy bt_clk ,clke_bt 
+200c 20600000 rtn 
+
+calc_clke_modem_coded:
+200d 6fe10169 fetch 2 ,mem_param_clke_cal_le_coded 
+200e 1fe25200 copy pdata ,clke_rt 
+200f 1c20d001 add bt_clk ,1 ,clke_bt 
+2010 20600000 rtn 
+
+calc_clke_modem_2m:
+2011 6fe10167 fetch 2 ,mem_param_clke_cal_le_2m 
+2012 1fe25200 copy pdata ,clke_rt 
+2013 1c225000 copy bt_clk ,clke_bt 
+2014 20600000 rtn 
+
+le_set_until_tx_timer:
+2015 6fe0816c fetch 1 ,mem_le_rxbuf_data_length 
+2016 1fe08405 add pdata ,5 ,temp 
+2017 18498400 lshift3 temp ,temp 
+2018 6fe082bc fetch 1 ,mem_le_rx_phy 
+2019 c517201c bmark1 mark_ble_lr ,le_set_until_tx_timer_rx_lr 
+201a c280201e bbit1 bit_le_1m_phy ,le_set_until_tx_timer_rx_1m 
+201b c280a01f bbit1 bit_le_2m_phy ,le_set_until_tx_timer_rx_2m 
+
+le_set_until_tx_timer_rx_lr:
+201c 203e2021 branch le_set_until_tx_timer_rx_coded_s2 ,ble_coded_info 
+201d 20202024 branch le_set_until_tx_timer_rx_coded_s8 
+
+le_set_until_tx_timer_rx_1m:
+201e 20202029 branch le_calc_stop_watch 
+
+le_set_until_tx_timer_rx_2m:
+201f 18430400 rshift temp ,temp 
+2020 20202029 branch le_calc_stop_watch 
+
+le_set_until_tx_timer_rx_coded_s2:
+2021 18408403 add temp ,3 ,temp 
+2022 18438400 lshift temp ,temp 
+2023 20202026 branch le_set_until_tx_timer_rx_coded 
+
+le_set_until_tx_timer_rx_coded_s8:
+2024 18408403 add temp ,3 ,temp 
+2025 18498400 lshift3 temp ,temp 
+
+le_set_until_tx_timer_rx_coded:
+2026 58000028 setarg param_coded_c1_term1_time_40us 
+2027 98408400 iadd temp ,temp 
+2028 20202029 branch le_calc_stop_watch 
+
+le_calc_stop_watch:
+2029 6fe0c1ed fetch 1 ,mem_system_clk 
+202a 984f8400 imul32 temp ,temp 
+202b da204e20 arg param_20ms_init ,rega 
+202c 9a2ffe00 imul32 rega ,pdata 
+202d 98460400 isub temp ,temp 
+202e 1b627e00 copy stop_watch ,pdata 
+202f 98463600 isub temp ,stop_watch 
+2030 20600000 rtn 
+
+le_transmit_receive_sifs_without_change_mode:
+2031 20402048 call le_transmit 
+2032 68488017 fetcht 1 ,mem_last_freq 
+2033 2040117e call set_freq_rx 
+2034 2040119a call rf_rx_enable 
+2035 78287c00 enable swfine 
+2036 d960157c arg 5500 ,timeup 
+2037 20201f65 branch le_receive_rxon 
+
+le_transmit_receive_sifs:
+2038 475a4036 bpatchx patch36_4 ,mem_patch36 
+2039 6fe082bd fetch 1 ,mem_le_tx_phy 
+203a 20401e9e call le_enable_phy_by_pdata 
+203b 20402048 call le_transmit 
+
+le_transmit_receive_sifs_notx:
+203c 6fe082bc fetch 1 ,mem_le_rx_phy 
+203d 20401e9e call le_enable_phy_by_pdata 
+203e 68488017 fetcht 1 ,mem_last_freq 
+203f 2040117e call set_freq_rx 
+2040 2040119a call rf_rx_enable 
+2041 78287c00 enable swfine 
+2042 d960157c arg 5500 ,timeup 
+2043 c5971f65 bmark0 mark_ble_lr ,le_receive_rxon 
+2044 d9602134 arg 8500 ,timeup 
+2045 20201f65 branch le_receive_rxon 
+
+le_transmit_norx:
+2046 20402048 call le_transmit 
+2047 20200e79 branch end_of_packet 
+
+le_transmit:
+2048 475ac036 bpatchx patch36_5 ,mem_patch36 
+2049 20401ecc call le_prep 
+204a 20401eda call le_tx_setfreq 
+204b 20404ca2 call rf_debug_tx_on_line 
+204c 79202a00 set1 txgfsk ,radio_ctrl 
+204d 782efc00 enable encode_fec0 
+204e 78307c00 enable is_tx 
+204f 7850fc00 disable is_rx 
+2050 20401f54 call le_wait_tx 
+2051 785d7c00 disable lr_s2en 
+2052 c517208a bmark1 mark_ble_lr ,le_transmit_lr 
+2053 c516a09c bmark1 mark_ble_2m ,le_transmit_2m 
+2054 19317e00 rshift16 access ,pdata 
+2055 1fecfe00 rshift8 pdata ,pdata 
+2056 1ff1fe00 rshift4 pdata ,pdata 
+2057 08008628 inject mod ,40 
+
+le_transmit_packet:
+2058 7823fc00 enable enable_white 
+2059 7824fc00 enable enable_crc 
+205a 475b4036 bpatchx patch36_6 ,mem_patch36 
+205b 6fe0c1f3 fetch 1 ,mem_le_txheader 
+205c 08008608 inject mod ,8 
+205d efe08006 ifetch 1 ,contr 
+205e 1fe27200 copy pdata ,loopcnt 
+205f 08008608 inject mod ,8 
+2060 1f267c00 sub loopcnt ,0 ,null 
+2061 2022a069 branch le_tr_nopayload ,zero 
+2062 6ff0800a fetch 1 ,core_ccm_ctrl 
+2063 203a2065 branch le_transmit_packet_not_enc ,blank 
+2064 c518a07f bmark1 mark_ble_encryption ,le_transmit_packet_enc 
+
+le_transmit_packet_not_enc:
+2065 d8c041f5 arg mem_le_txpayload ,contr 
+
+le_tr_loop:
+2066 efe08006 ifetch 1 ,contr 
+2067 08008608 inject mod ,8 
+2068 c2002066 loop le_tr_loop 
+
+le_tr_nopayload:
+2069 78247c00 enable enable_parity 
+206a 08008618 inject mod ,24 
+206b 78447c00 disable enable_parity 
+206c c5972070 bmark0 mark_ble_lr ,le_transmit_skip 
+206d 7843fc00 disable enable_white 
+206e 58000000 setarg 0 
+206f 08008603 inject mod ,3 
+
+le_transmit_skip:
+2070 37d38200 until null ,tx_clear 
+2071 20000064 nop 100 
+2072 784efc00 disable encode_fec0 
+2073 785c7c00 disable encode_fec3 
+2074 20401165 call set_sync_on 
+2075 20404ca0 call rf_debug_tx_off_line 
+
+le_check_start_pause_enc:
+2076 6fe0c1f3 fetch 1 ,mem_le_txheader 
+2077 1fe17e03 and pdata ,llid_le_ll ,pdata 
+2078 c1818000 rtnne llid_le_ll 
+2079 6fe0c39a fetch 1 ,mem_le_enc_state 
+207a c0012161 beq flag_le_enc_pause ,le_clear_enc 
+207b c1828000 rtnne flag_le_send_start_enc_req 
+207c 6fe0c1f5 fetch 1 ,mem_le_txpayload 
+207d c002a15c beq ll_start_enc_req ,le_set_enc 
+207e 20600000 rtn 
+
+le_transmit_packet_enc:
+207f 1f20f3fc increase -4 ,loopcnt 
+2080 1f220400 copy loopcnt ,temp 
+2081 20406d6d call ccm_wait_enc 
+2082 d8c041f5 arg mem_le_txpayload ,contr 
+
+le_transmit_packet_enc_loop:
+2083 efe08006 ifetch 1 ,contr 
+2084 08008608 inject mod ,8 
+2085 c2002083 loop le_transmit_packet_enc_loop 
+2086 20406d72 call ccm_check_enc_done 
+2087 1de27e00 copy regext ,pdata 
+2088 08008620 inject mod ,32 
+2089 20202069 branch le_tr_nopayload 
+
+le_transmit_lr:
+208a df20000a arg 10 ,loopcnt 
+
+le_transmit_lr_preamble_loop:
+208b 5800003c setarg 0x3c 
+208c 08008608 inject mod ,8 
+208d c200208b loop le_transmit_lr_preamble_loop 
+208e 784efc00 disable encode_fec0 
+208f 783c7c00 enable encode_fec3 
+2090 19317e00 rshift16 access ,pdata 
+2091 1ff17e00 rshift16 pdata ,pdata 
+2092 1ff1fe00 rshift4 pdata ,pdata 
+2093 08008620 inject mod ,32 
+2094 c516a099 bmark1 mark_ble_lr_s8 ,le_transmit_lr_s8 
+
+le_transmit_lr_s2:
+2095 58000001 setarg 1 
+2096 08008605 inject mod ,5 
+2097 783d7c00 enable lr_s2en 
+2098 20202058 branch le_transmit_packet 
+
+le_transmit_lr_s8:
+2099 58000000 setarg 0 
+209a 08008605 inject mod ,5 
+209b 20202058 branch le_transmit_packet 
+
+le_transmit_2m:
+209c 6fe0c1ed fetch 1 ,mem_system_clk 
+209d 1fe37200 rshift pdata ,loopcnt 
+
+le_transmit_2m_dealy:
+209e 20000002 nop 2 
+209f c200209e loop le_transmit_2m_dealy 
+20a0 19317e00 rshift16 access ,pdata 
+20a1 1fecfe00 rshift8 pdata ,pdata 
+20a2 1ff18400 rshift4 pdata ,temp 
+20a3 18427e00 copy temp ,pdata 
+20a4 08008608 inject mod ,8 
+20a5 18427e00 copy temp ,pdata 
+20a6 08008628 inject mod ,40 
+20a7 20202058 branch le_transmit_packet 
+
+le_update_param:
+20a8 da6020ac arg le_update_param_ahead1_cb ,regc 
+20a9 da4020c0 arg le_update_param_cb ,regb 
+20aa d8e00005 arg lestate_update_param ,queue 
+20ab 20202101 branch le_check_update_flag 
+
+le_update_param_ahead1_cb:
+20ac 1a208c04 add rega ,coffset_sniff_anchor ,contr 
+20ad e8420006 ifetcht 4 ,contr 
+20ae 1a208c37 add rega ,coffest_le_new_transmitwindowsize ,contr 
+20af efe08006 ifetch 1 ,contr 
+20b0 1a208a2b add rega ,coffset_le_window_size ,contw 
+20b1 e7e08005 istore 1 ,contw 
+20b2 efe10006 ifetch 2 ,contr 
+20b3 1febfe00 lshift2 pdata ,pdata 
+20b4 98409600 iadd temp ,timeup 
+20b5 1a208a04 add rega ,coffset_sniff_anchor ,contw 
+20b6 19627e00 deposit timeup 
+20b7 e7e20005 istore 4 ,contw 
+20b8 efe10006 ifetch 2 ,contr 
+20b9 1febfe00 lshift2 pdata ,pdata 
+20ba 1a208a02 add rega ,coffset_tsniff ,contw 
+20bb e7e10005 istore 2 ,contw 
+20bc efe20006 ifetch 4 ,contr 
+20bd 1a208a2c add rega ,coffset_le_slave_latency ,contw 
+20be e7e20005 istore 4 ,contw 
+20bf 2020223e branch le_receive_window_size 
+
+le_update_param_cb:
+20c0 efe08011 ifetch 1 ,rega 
+20c1 793ffe03 set0 lestate_got_first_packet ,pdata 
+20c2 e7e08011 istore 1 ,rega 
+20c3 6fe102b5 fetch 2 ,mem_le_superto 
+20c4 67e14392 store 2 ,mem_le_init_superto 
+20c5 62210970 storer rega ,2 ,mem_rega 
+20c6 70095b44 jam bt_evt_le_parse_conn_param_accepted ,mem_fifo_temp 
+20c7 2040789f call ui_ipc_send_event 
+20c8 6a210970 fetchr rega ,2 ,mem_rega 
+20c9 20600000 rtn 
+
+le_update_channel_map:
+20ca da600000 arg 0 ,regc 
+20cb da4020ce arg le_update_channel_map_cb ,regb 
+20cc d8e00006 arg lestate_update_map ,queue 
+20cd 20202101 branch le_check_update_flag 
+
+le_update_channel_map_cb:
+20ce 1a208c37 add rega ,coffset_le_new_map ,contr 
+20cf efe28006 ifetch 5 ,contr 
+20d0 1a208a30 add rega ,coffset_le_channel_map ,contw 
+20d1 e7e28005 istore 5 ,contw 
+20d2 20201f30 branch le_calc_channel_map 
+
+le_update_phy:
+20d3 da600000 arg 0 ,regc 
+20d4 da4020d7 arg le_update_phy_cb ,regb 
+20d5 d8e00007 arg lestate_update_phy ,queue 
+20d6 20202101 branch le_check_update_flag 
+
+le_update_phy_cb:
+20d7 1a208c37 add rega ,coffset_le_new_m2s_phy ,contr 
+20d8 efe08006 ifetch 1 ,contr 
+20d9 204020e4 call le_update_phy_cb_m2s 
+20da e7e08005 istore 1 ,contw 
+20db 1a208c38 add rega ,coffset_le_new_s2m_phy ,contr 
+20dc efe08006 ifetch 1 ,contr 
+20dd 204020f2 call le_update_phy_cb_s2m 
+20de e7e08005 istore 1 ,contw 
+20df 62210970 storer rega ,2 ,mem_rega 
+20e0 70095b42 jam bt_evt_le_update_phy ,mem_fifo_temp 
+20e1 2040789f call ui_ipc_send_event 
+20e2 6a210970 fetchr rega ,2 ,mem_rega 
+20e3 20600000 rtn 
+
+le_update_phy_cb_m2s:
+20e4 205a20ec call le_update_phy_cb_m2s_no_change ,blank 
+20e5 1a208a35 add rega ,coffset_le_rx_phy ,contw 
+20e6 24748000 nrtn master 
+20e7 6848c442 fetcht 1 ,mem_le_tx_phys 
+20e8 284ffe07 isolate1 bit_le_coded_phy_s8 ,temp 
+20e9 7920fe07 setflag true ,bit_le_coded_phy_s8 ,pdata 
+20ea 1a208a36 add rega ,coffset_le_tx_phy ,contw 
+20eb 20600000 rtn 
+
+le_update_phy_cb_m2s_no_change:
+20ec 1a208c35 add rega ,coffset_le_rx_phy ,contr 
+20ed efe08006 ifetch 1 ,contr 
+20ee 24748000 nrtn master 
+20ef 1a208c36 add rega ,coffset_le_tx_phy ,contr 
+20f0 efe08006 ifetch 1 ,contr 
+20f1 20600000 rtn 
+
+le_update_phy_cb_s2m:
+20f2 205a20fb call le_update_phy_cb_s2m_no_change ,blank 
+20f3 6848c442 fetcht 1 ,mem_le_tx_phys 
+20f4 284ffe07 isolate1 bit_le_coded_phy_s8 ,temp 
+20f5 7920fe07 setflag true ,bit_le_coded_phy_s8 ,pdata 
+20f6 1a208a36 add rega ,coffset_le_tx_phy ,contw 
+20f7 24748000 nrtn master 
+20f8 793ffe07 set0 bit_le_coded_phy_s8 ,pdata 
+20f9 1a208a35 add rega ,coffset_le_rx_phy ,contw 
+20fa 20600000 rtn 
+
+le_update_phy_cb_s2m_no_change:
+20fb 1a208c36 add rega ,coffset_le_tx_phy ,contr 
+20fc efe08006 ifetch 1 ,contr 
+20fd 24748000 nrtn master 
+20fe 1a208c35 add rega ,coffset_le_rx_phy ,contr 
+20ff efe08006 ifetch 1 ,contr 
+2100 20600000 rtn 
+
+le_check_update_flag:
+2101 efe08011 ifetch 1 ,rega 
+2102 afec0000 qisolate0 pdata 
+2103 20608000 rtn true 
+2104 1a208c1a add rega ,coffset_le_event_cnt ,contr 
+2105 e8410006 ifetcht 2 ,contr 
+2106 1a208c20 add rega ,coffset_le_instant ,contr 
+2107 efe10006 ifetch 2 ,contr 
+2108 98467e00 isub temp ,pdata 
+2109 c000a10d beq 1 ,le_update_ahead1 
+210a 2022a10f branch le_update ,zero 
+210b 24212114 nbranch le_check_update_small ,positive 
+210c 20600000 rtn 
+
+le_update_ahead1:
+210d 1a627e00 copy regc ,pdata 
+210e 20207e13 branch callback_func 
+
+le_update:
+210f efe08011 ifetch 1 ,rega 
+2110 f93ffe00 qset0 pdata 
+2111 e7e08011 istore 1 ,rega 
+2112 1a427e00 copy regb ,pdata 
+2113 20207e13 branch callback_func 
+
+le_check_update_small:
+2114 1a208c1a add rega ,coffset_le_event_cnt ,contr 
+2115 efe10006 ifetch 2 ,contr 
+2116 1a208c20 add rega ,coffset_le_instant ,contr 
+2117 efe10006 ifetch 2 ,contr 
+2118 98467e00 isub temp ,pdata 
+2119 d840ffff arg 0xffff ,temp 
+211a 98467c00 isub temp ,null 
+211b 2022a10f branch le_update ,zero 
+211c d840f000 arg 0xf000 ,temp 
+211d 98467c00 isub temp ,null 
+211e 2421210f nbranch le_update ,positive 
+211f 20600000 rtn 
+
+le_check_retransmit:
+2120 6848829e fetcht 1 ,mem_le_arq 
+2121 6fe0816b fetch 1 ,mem_le_rxbuf_data_header 
+2122 1fe37e00 rshift pdata ,pdata 
+2123 9842fe00 ixor temp ,pdata 
+2124 2feffe02 isolate1 nesn ,pdata 
+2125 7920800f setflag true ,mark_old_packet ,mark 
+2126 20600000 rtn 
+
+le_acknowledge:
+2127 475bc036 bpatchx patch36_7 ,mem_patch36 
+2128 2040223b call le_supervision_flush 
+2129 c6178000 rtnmark1 mark_ble_crc_fail 
+212a 2040214e call le_check_wak 
+212b 6fe0816b fetch 1 ,mem_le_rxbuf_data_header 
+212c 2feffe04 isolate1 md ,pdata 
+212d 7920802a setflag true ,mark_ble_rx_md ,mark 
+212e 1fe37e00 rshift pdata ,pdata 
+212f 9842fe00 ixor temp ,pdata 
+2130 2feffe02 isolate1 nesn ,pdata 
+2131 7920800f setflag true ,mark_old_packet ,mark 
+2132 c6078000 rtnmark1 mark_old_packet 
+2133 6fe0816c fetch 1 ,mem_le_rxbuf_data_length 
+2134 203a2140 branch le_ack_unenc ,blank 
+2135 6fe08287 fetch 1 ,mem_le_state 
+2136 c3022140 bbit0 lestate_encryption ,le_ack_unenc 
+2137 684a0273 fetcht 4 ,mem_le_peer_mic 
+2138 6fe246a5 fetch 4 ,mem_ccm_last_mic 
+2139 98467c00 isub temp ,null 
+213a 2022931f branch assert ,zero 
+213b 604a46a5 storet 4 ,mem_ccm_last_mic 
+213c 6fe2c6a0 fetch 5 ,mem_ccm_pcnt_rx 
+213d 1fe0fe01 increase 1 ,pdata 
+213e 79207e27 set1 le_ccm_directionbit ,pdata 
+213f 67e2c6a0 store 5 ,mem_ccm_pcnt_rx 
+
+le_ack_unenc:
+2140 6848829e fetcht 1 ,mem_le_arq 
+2141 79400402 setflip nesn ,temp 
+2142 6048829e storet 1 ,mem_le_arq 
+2143 6fe0c3be fetch 1 ,mem_le_configuration 
+2144 c4030000 rtnbit0 bit_ble_deal_bb_packet 
+2145 475c4037 bpatchx patch37_0 ,mem_patch37 
+2146 6fe0816c fetch 1 ,mem_le_rxbuf_data_length 
+2147 207a0000 rtn blank 
+2148 6fe0816b fetch 1 ,mem_le_rxbuf_data_header 
+2149 2fe00601 compare llid_continue ,pdata ,3 
+214a 2020a734 branch le_parse_writing_attribute_continue ,true 
+214b 2fe00602 compare llid_start ,pdata ,3 
+214c 2020a722 branch le_parse_writing_attribute_start ,true 
+214d 20600000 rtn 
+
+le_check_wak:
+214e 475cc037 bpatchx patch37_1 ,mem_patch37 
+214f 6848829e fetcht 1 ,mem_le_arq 
+2150 284c0005 isolate0 wak ,temp 
+2151 20608000 rtn true 
+2152 6fe0816b fetch 1 ,mem_le_rxbuf_data_header 
+2153 1fe3fe00 lshift pdata ,pdata 
+2154 9842fe00 ixor temp ,pdata 
+2155 c4018000 rtnbit0 sn 
+2156 793f8405 set0 wak ,temp 
+2157 79400403 setflip sn ,temp 
+2158 6048829e storet 1 ,mem_le_arq 
+2159 28400603 compare 3 ,temp ,3 
+215a 24608000 nrtn true 
+215b 20600000 rtn 
+
+le_set_enc:
+215c 6fe08287 fetch 1 ,mem_le_state 
+215d 79207e04 set1 lestate_encryption ,pdata 
+215e 67e08287 store 1 ,mem_le_state 
+215f 79200031 set1 mark_ble_encryption ,mark 
+2160 20600000 rtn 
+
+le_clear_enc:
+2161 475d4037 bpatchx patch37_2 ,mem_patch37 
+2162 70439a00 jam flag_le_enc_null ,mem_le_enc_state 
+2163 dfe00000 arg 0 ,pdata 
+2164 67e246a5 store 4 ,mem_ccm_last_mic 
+2165 67e2c69b store 5 ,mem_ccm_pcnt_tx 
+2166 79207e27 set1 le_ccm_directionbit ,pdata 
+2167 67e2c6a0 store 5 ,mem_ccm_pcnt_rx 
+2168 6fe08287 fetch 1 ,mem_le_state 
+2169 793ffe04 set0 lestate_encryption ,pdata 
+216a 67e08287 store 1 ,mem_le_state 
+216b 793f8031 set0 mark_ble_encryption ,mark 
+216c 20600000 rtn 
+
+le_scan_check_sender_addr_type:
+216d da200001 arg 1 ,rega 
+216e 6fe0816b fetch 1 ,mem_le_rxbuf_adv_connect_ind_header 
+216f c3830000 rtnbit1 le_sender_addr_bit 
+2170 da200000 arg 0 ,rega 
+2171 20600000 rtn 
+
+le_get_master_rx_max:
+2172 18c20a00 copy contr ,contw 
+2173 68494444 fetcht 2 ,mem_remote_rx_max_octets 
+2174 18a20c00 copy contw ,contr 
+2175 20600000 rtn 
+
+le_prepare_tx:
+2176 475dc037 bpatchx patch37_3 ,mem_patch37 
+2177 6fe0829e fetch 1 ,mem_le_arq 
+2178 c3828000 rtnbit1 wak 
+2179 20402197 call le_check_tx_md 
+217a 2040236b call le_fifo_get_first_tx_ptr 
+217b 203a21bb branch le_send_empty ,blank 
+217c efe10006 ifetch 2 ,contr 
+217d e8410006 ifetcht 2 ,contr 
+217e 18422200 copy temp ,rega 
+217f 9a267e00 isub rega ,pdata 
+2180 20402172 call le_get_master_rx_max 
+2181 20407e58 call not_greater_than 
+2182 1fe20400 copy pdata ,temp 
+2183 e8208006 ifetchr type ,1 ,contr 
+2184 1a227e00 copy rega ,pdata 
+2185 98c0fe00 iadd contr ,pdata 
+2186 67e1097b store 2 ,mem_contr 
+2187 204021ab call le_update_tx_type 
+2188 204021bd call le_send_packet 
+2189 2040236b call le_fifo_get_first_tx_ptr 
+218a efe10006 ifetch 2 ,contr 
+218b 1fe22200 copy pdata ,rega 
+218c 18c22600 copy contr ,regc 
+218d e8410006 ifetcht 2 ,contr 
+218e 18422400 copy temp ,regb 
+218f 9a467e00 isub regb ,pdata 
+2190 20402172 call le_get_master_rx_max 
+2191 20407e58 call not_greater_than 
+2192 9a40fe00 iadd regb ,pdata 
+2193 e7e10013 istore 2 ,regc 
+2194 9a267c00 isub rega ,null 
+2195 24628000 nrtn zero 
+2196 20202384 branch le_fifo_release_first_node 
+
+le_check_tx_md:
+2197 2040219e call le_check_continue 
+2198 c6148000 rtnmark1 mark_ble_tx_md 
+2199 6fe0c3be fetch 1 ,mem_le_configuration 
+219a c30121a9 bbit0 bit_ble_transmit_packet_by_md ,le_clear_md 
+219b 2040236e call le_fifo_get_second_tx_ptr 
+219c 203a21a9 branch le_clear_md ,blank 
+219d 202021a7 branch le_set_md 
+
+le_check_continue:
+219e 2040236b call le_fifo_get_first_tx_ptr 
+219f 203a21a9 branch le_clear_md ,blank 
+21a0 efe10006 ifetch 2 ,contr 
+21a1 e8410006 ifetcht 2 ,contr 
+21a2 98462200 isub temp ,rega 
+21a3 20402172 call le_get_master_rx_max 
+21a4 18427e00 copy temp ,pdata 
+21a5 9a267c00 isub rega ,null 
+21a6 202121a9 branch le_clear_md ,positive 
+
+le_set_md:
+21a7 79200029 set1 mark_ble_tx_md ,mark 
+21a8 20600000 rtn 
+
+le_clear_md:
+21a9 793f8029 set0 mark_ble_tx_md ,mark 
+21aa 20600000 rtn 
+
+le_update_tx_type:
+21ab 1a227e00 copy rega ,pdata 
+21ac 207a0000 rtn blank 
+21ad d8200001 arg llid_continue ,type 
+21ae 20600000 rtn 
+
+le_att_check_notification_enable:
+21af 475e4037 bpatchx patch37_4 ,mem_patch37 
+21b0 18408401 increase 1 ,temp 
+21b1 2040226d call le_att_get_handle_ptr 
+21b2 18c08dfe increase -2 ,contr 
+21b3 efe10006 ifetch 2 ,contr 
+21b4 d8402902 arg client_charactertic_configuration ,temp 
+21b5 98467c00 isub temp ,null 
+21b6 24628000 nrtn zero 
+21b7 18c08c01 increase 1 ,contr 
+21b8 18c22200 copy contr ,rega 
+21b9 efe08006 ifetch 1 ,contr 
+21ba 20600000 rtn 
+
+le_send_empty:
+21bb 18000400 force 0 ,temp 
+21bc 18000201 force 1 ,type 
+
+le_send_packet:
+21bd 475ec037 bpatchx patch37_5 ,mem_patch37 
+21be 6048c1f4 storet 1 ,mem_le_txlen 
+21bf 6848829e fetcht 1 ,mem_le_arq 
+21c0 79200405 set1 wak ,temp 
+21c1 18417efc and temp ,0xfc ,pdata 
+21c2 9821fe00 ior type ,pdata 
+21c3 67e0829e store 1 ,mem_le_arq 
+21c4 1fe17e1f and_into 0x1f ,pdata 
+21c5 280ffe29 isolate1 mark_ble_tx_md ,mark 
+21c6 7920fe04 setflag true ,md ,pdata 
+21c7 67e0c1f3 store 1 ,mem_le_txheader 
+21c8 6fe0c1f3 fetch 1 ,mem_le_txheader 
+21c9 28200601 compare 1 ,type ,3 
+21ca 2420a1cd nbranch le_send_no_txlen ,true 
+21cb 6fe0c1f4 fetch 1 ,mem_le_txlen 
+21cc 207a0000 rtn blank 
+
+le_send_no_txlen:
+21cd c518a1d3 bmark1 mark_ble_encryption ,le_send_packet_enc 
+21ce 6f20c1f4 fetchr loopcnt ,1 ,mem_le_txlen 
+21cf 6fe1097b fetch 2 ,mem_contr 
+21d0 1fe20c00 copy pdata ,contr 
+21d1 d8a041f5 arg mem_le_txpayload ,contw 
+21d2 20207d60 branch memcpy_fast 
+
+le_send_packet_enc:
+21d3 20406df4 call load_sk 
+21d4 20206d54 branch le_encrypt_new_start 
+
+get_lpm_wake_ble_rx_lock:
+21d5 d8e00000 arg wake_lock_ble_rx ,queue 
+21d6 20201516 branch lpm_get_wake_lock 
+
+put_lpm_wake_ble_rx_lock:
+21d7 d8e00000 arg wake_lock_ble_rx ,queue 
+21d8 2020151a branch lpm_put_wake_lock 
+
+le_parse:
+21d9 475f4037 bpatchx patch37_6 ,mem_patch37 
+21da c6078000 rtnmark1 mark_old_packet 
+21db c6178000 rtnmark1 mark_ble_crc_fail 
+21dc 6fe0816b fetch 1 ,mem_le_rxbuf_data_header 
+21dd 1fe17e03 and pdata ,0x3 ,pdata 
+21de 67e0c3d1 store 1 ,mem_le_packet_llid 
+21df 207a0000 rtn blank 
+21e0 5800016d setarg mem_le_rxbuf_data_payload 
+21e1 67e143d6 store 2 ,mem_le_payload_ptr 
+21e2 475fc037 bpatchx patch37_7 ,mem_patch37 
+21e3 6fe0c3d1 fetch 1 ,mem_le_packet_llid 
+21e4 c001a9db beq llid_le_ll ,le_parse_ll 
+
+le_parse_l2cap:
+21e5 204021f2 call le_check_l2cap_complete 
+21e6 243421d5 nbranch get_lpm_wake_ble_rx_lock ,user 
+21e7 204021d7 call put_lpm_wake_ble_rx_lock 
+21e8 58000000 setarg 0 
+21e9 67e143d4 store 2 ,mem_le_packet_len_recved 
+21ea 6fe143d6 fetch 2 ,mem_le_payload_ptr 
+21eb 1fe08c02 add pdata ,2 ,contr 
+21ec 47604038 bpatchx patch38_0 ,mem_patch38 
+21ed efe10006 ifetch 2 ,contr 
+21ee c00224dd beq le_l2cap_cid_att ,le_parse_att 
+21ef c003285c beq le_l2cap_cid_smp ,le_parse_smp 
+21f0 c002a81e beq le_l2cap_cid_signal ,le_parse_signaling 
+21f1 20600000 rtn 
+
+le_check_l2cap_complete:
+21f2 6fe0c3d1 fetch 1 ,mem_le_packet_llid 
+21f3 c0012201 beq llid_start ,le_check_l2cap_llid_start 
+21f4 c000a218 beq llid_continue ,le_check_l2cap_llid_continue 
+21f5 20600000 rtn 
+
+le_check_l2cap_cid_legal:
+21f6 20407e62 call enable_user 
+21f7 d8400004 arg le_l2cap_cid_att ,temp 
+21f8 9fe67c00 isub pdata ,null 
+21f9 20628000 rtn zero 
+21fa d8400005 arg le_l2cap_cid_signal ,temp 
+21fb 9fe67c00 isub pdata ,null 
+21fc 20628000 rtn zero 
+21fd d8400006 arg le_l2cap_cid_smp ,temp 
+21fe 9fe67c00 isub pdata ,null 
+21ff 20628000 rtn zero 
+2200 20207e64 branch disable_user 
+
+le_check_l2cap_llid_start:
+2201 6fe143d6 fetch 2 ,mem_le_payload_ptr 
+2202 1fe20c00 copy pdata ,contr 
+2203 efe10006 ifetch 2 ,contr 
+2204 67e143d2 store 2 ,mem_le_l2cap_size 
+2205 efe10006 ifetch 2 ,contr 
+2206 204021f6 call le_check_l2cap_cid_legal 
+2207 24740000 nrtn user 
+2208 6848816c fetcht 1 ,mem_le_rxbuf_data_length 
+2209 604943d4 storet 2 ,mem_le_packet_len_recved 
+220a 6fe143d2 fetch 2 ,mem_le_l2cap_size 
+220b 1fe0fe04 increase 4 ,pdata 
+220c 98467c00 isub temp ,null 
+220d 2022fe62 branch enable_user ,zero 
+220e 6f20816c fetchr loopcnt ,1 ,mem_le_rxbuf_data_length 
+220f d8a01000 arg mem_le_l2cap_buf ,contw 
+2210 6fe143d6 fetch 2 ,mem_le_payload_ptr 
+2211 1fe20c00 copy pdata ,contr 
+2212 20407d60 call memcpy_fast 
+2213 20207e64 branch disable_user 
+
+le_check_l2cap_continue_legal:
+2214 20407e62 call enable_user 
+2215 6fe143d4 fetch 2 ,mem_le_packet_len_recved 
+2216 247a0000 nrtn blank 
+2217 20207e64 branch disable_user 
+
+le_check_l2cap_llid_continue:
+2218 20402214 call le_check_l2cap_continue_legal 
+2219 24740000 nrtn user 
+221a 6fe143d4 fetch 2 ,mem_le_packet_len_recved 
+221b d8a01000 arg mem_le_l2cap_buf ,contw 
+221c 98a0a200 iadd contw ,rega 
+221d 6848816c fetcht 1 ,mem_le_rxbuf_data_length 
+221e 9840fe00 iadd temp ,pdata 
+221f 67e143d4 store 2 ,mem_le_packet_len_recved 
+2220 6f20816c fetchr loopcnt ,1 ,mem_le_rxbuf_data_length 
+2221 1a220a00 copy rega ,contw 
+2222 6fe143d6 fetch 2 ,mem_le_payload_ptr 
+2223 1fe20c00 copy pdata ,contr 
+2224 20407d60 call memcpy_fast 
+2225 58001000 setarg mem_le_l2cap_buf 
+2226 67e143d6 store 2 ,mem_le_payload_ptr 
+2227 6fe143d2 fetch 2 ,mem_le_l2cap_size 
+2228 1fe0fe04 increase 4 ,pdata 
+2229 684943d4 fetcht 2 ,mem_le_packet_len_recved 
+222a 98467c00 isub temp ,null 
+222b 2022fe62 branch enable_user ,zero 
+222c 20207e64 branch disable_user 
+
+le_get_search_att_uuid:
+222d 20407cff call store_contr 
+222e d8a04357 arg mem_le_search_uuid_length ,contw 
+222f 2020271c branch le_get_search_common 
+
+le_writeatt_cb:
+2230 6fe1446b fetch 2 ,mem_cb_att_write 
+2231 20207e13 branch callback_func 
+
+le_supervision_update:
+2232 684a02a3 fetcht 4 ,mem_le_supervision_timer 
+2233 2040130e call get_clkbt 
+2234 98461600 isub temp ,timeup 
+2235 19627e00 deposit timeup 
+2236 684902b5 fetcht 2 ,mem_le_superto 
+2237 18520400 lshift4 temp ,temp 
+2238 18438400 lshift temp ,temp 
+2239 98467e00 isub temp ,pdata 
+223a 20600000 rtn 
+
+le_supervision_flush:
+223b 2040130e call get_clkbt 
+223c 67e202a3 store 4 ,mem_le_supervision_timer 
+223d 20600000 rtn 
+
+le_receive_window_size:
+223e 4760c038 bpatchx patch38_1 ,mem_patch38 
+223f 1a208c50 add rega ,coffset_le_peer_sca ,contr 
+2240 efe08006 ifetch 1 ,contr 
+2241 20401ef4 call le_sca_map 
+2242 1a208c02 add rega ,coffset_tsniff ,contr 
+2243 efe10006 ifetch 2 ,contr 
+2244 984ffe00 imul32 temp ,pdata 
+2245 68490163 fetcht 2 ,mem_param_rt_rthalfslot 
+2246 984ffe00 imul32 temp ,pdata 
+2247 d84f4240 arg 1000000 ,temp 
+2248 9846fc00 idiv temp 
+2249 d8400682 arg param_windown_size ,temp 
+224a 6fe0c1ed fetch 1 ,mem_system_clk 
+224b 984f8400 imul32 temp ,temp 
+224c 1a208c2b add rega ,coffset_le_window_size ,contr 
+224d efe08006 ifetch 1 ,contr 
+224e 984ffe00 imul32 temp ,pdata 
+224f 9840fe00 iadd temp ,pdata 
+2250 67e243ba store 4 ,mem_le_transmit_window 
+2251 6fe140c9 fetch 2 ,mem_rx_window_sniff 
+2252 20407dfd call wait_div_end 
+2253 18078400 quotient temp 
+2254 9840fe00 iadd temp ,pdata 
+2255 1a208a0e add rega ,coffset_rx_window ,contw 
+2256 e7e10005 istore 2 ,contw 
+2257 20600000 rtn 
+
+le_init_attlist_search:
+2258 47614038 bpatchx patch38_2 ,mem_patch38 
+2259 6fe1099e fetch 2 ,mem_le_search_handle_start 
+225a 98002400 iforce regb 
+225b 6fe109a0 fetch 2 ,mem_le_search_handle_end 
+225c 98002600 iforce regc 
+225d 6fe14394 fetch 2 ,mem_ui_le_uuid_table 
+225e 98000c00 iforce contr 
+225f 78347c00 enable user 
+2260 20600000 rtn 
+
+le_att_handle_inrange:
+2261 efe10006 ifetch 2 ,contr 
+2262 1fe17eff and_into 0xff ,pdata 
+2263 207a0000 rtn blank 
+2264 9a467c00 isub regb ,null 
+2265 24610000 nrtn positive 
+2266 9a667c00 isub regc ,null 
+2267 20628000 rtn zero 
+2268 2021226b branch le_att_handle_blank ,positive 
+2269 18007c01 force 1 ,null 
+226a 20600000 rtn 
+
+le_att_handle_blank:
+226b 18007e00 force 0 ,pdata 
+226c 20600000 rtn 
+
+le_att_get_handle_ptr:
+226d 20402270 call le_att_get_handle_ptr2 
+226e 2022a27d branch le_att_get_handle_ptr_found ,zero 
+226f 20600000 rtn 
+
+le_att_get_handle_ptr2:
+2270 4761c038 bpatchx patch38_3 ,mem_patch38 
+2271 6fe14394 fetch 2 ,mem_ui_le_uuid_table 
+2272 98000c00 iforce contr 
+
+le_att_get_handle_loop1:
+2273 efe10006 ifetch 2 ,contr 
+2274 1fe17eff and_into 0xff ,pdata 
+2275 207a0000 rtn blank 
+2276 98467c00 isub temp ,null 
+2277 20628000 rtn zero 
+2278 efe08006 ifetch 1 ,contr 
+2279 98c08c00 iadd contr ,contr 
+227a efe08006 ifetch 1 ,contr 
+227b 98c08c00 iadd contr ,contr 
+227c 20202273 branch le_att_get_handle_loop1 
+
+le_att_get_handle_ptr_found:
+227d efe08006 ifetch 1 ,contr 
+227e 98c08c00 iadd contr ,contr 
+227f 20600000 rtn 
+
+le_att_get_short_uuid_ptr:
+2280 47624038 bpatchx patch38_4 ,mem_patch38 
+2281 6fe14394 fetch 2 ,mem_ui_le_uuid_table 
+2282 98000c00 iforce contr 
+
+le_att_get_short_uuid_loop:
+2283 efe10006 ifetch 2 ,contr 
+2284 1fe17eff and_into 0xff ,pdata 
+2285 207a0000 rtn blank 
+2286 efe08006 ifetch 1 ,contr 
+2287 98c08c00 iadd contr ,contr 
+2288 18c08dfe increase -2 ,contr 
+2289 efe10006 ifetch 2 ,contr 
+228a 98467c00 isub temp ,null 
+228b 20628000 rtn zero 
+228c efe08006 ifetch 1 ,contr 
+228d 98c08c00 iadd contr ,contr 
+228e 20202283 branch le_att_get_short_uuid_loop 
+
+le_att_get_last_handle:
+228f 6fe14394 fetch 2 ,mem_ui_le_uuid_table 
+2290 98000c00 iforce contr 
+
+le_att_get_last_handle_loop:
+2291 efe10006 ifetch 2 ,contr 
+2292 1fe17eff and_into 0xff ,pdata 
+2293 207a0000 rtn blank 
+2294 1fe08401 add pdata ,1 ,temp 
+2295 efe08006 ifetch 1 ,contr 
+2296 98c08c00 iadd contr ,contr 
+2297 efe08006 ifetch 1 ,contr 
+2298 98c08c00 iadd contr ,contr 
+2299 18c20a00 copy contr ,contw 
+229a 20202291 branch le_att_get_last_handle_loop 
+
+le_att_get_handle_info_from_ptr:
+229b 6fe109b4 fetch 2 ,mem_le_cur_attlist_start_ptr 
+229c 2020229f branch le_att_get_handle_info_fast 
+
+le_att_get_handle_info:
+229d 4762c038 bpatchx patch38_5 ,mem_patch38 
+229e 6fe14394 fetch 2 ,mem_ui_le_uuid_table 
+
+le_att_get_handle_info_fast:
+229f 98000c00 iforce contr 
+
+le_att_get_handle_loop:
+22a0 efe10006 ifetch 2 ,contr 
+22a1 1fe17eff and_into 0xff ,pdata 
+22a2 203a22aa branch le_att_unfind_handle ,blank 
+22a3 98467c00 isub temp ,null 
+22a4 2022a2ab branch le_att_finded_handle ,zero 
+22a5 efe08006 ifetch 1 ,contr 
+22a6 98c08c00 iadd contr ,contr 
+22a7 efe08006 ifetch 1 ,contr 
+22a8 98c08c00 iadd contr ,contr 
+22a9 202022a0 branch le_att_get_handle_loop 
+
+le_att_unfind_handle:
+22aa 20207e6a branch disable_blank 
+
+le_att_finded_handle:
+22ab efe08006 ifetch 1 ,contr 
+22ac 67e089ba store 1 ,mem_le_cur_uuid_length 
+22ad 1fe27200 copy pdata ,loopcnt 
+22ae d8a009bb arg mem_le_cur_uuid ,contw 
+22af 20407d60 call memcpy_fast 
+22b0 efe08006 ifetch 1 ,contr 
+22b1 67e089b3 store 1 ,mem_le_curr_att_len 
+22b2 20407cff call store_contr 
+22b3 20207e6c branch enable_blank 
+
+le_modified_name:
+22b4 47634038 bpatchx patch38_6 ,mem_patch38 
+22b5 204022b7 call le_modified_name_att_list 
+22b6 202022c9 branch le_modified_name_adv 
+
+le_modified_name_att_list:
+22b7 d8402a00 arg uuid_chrctr_device_name ,temp 
+22b8 20402280 call le_att_get_short_uuid_ptr 
+22b9 207a0000 rtn blank 
+22ba efe08006 ifetch 1 ,contr 
+22bb 18c20a00 copy contr ,contw 
+22bc 6848c2f5 fetcht 1 ,mem_le_name_len 
+22bd 18427200 copy temp ,loopcnt 
+22be 98467c00 isub temp ,null 
+22bf 242122c6 nbranch le_name_length_longer_than_att ,positive 
+22c0 98460400 isub temp ,temp 
+22c1 d8c042f6 arg mem_le_name ,contr 
+22c2 20407d60 call memcpy_fast 
+22c3 18427200 copy temp ,loopcnt 
+22c4 2442a301 ncall memcpy_empty ,zero 
+22c5 20600000 rtn 
+
+le_name_length_longer_than_att:
+22c6 1fe27200 copy pdata ,loopcnt 
+22c7 d8c042f6 arg mem_le_name ,contr 
+22c8 20207d60 branch memcpy_fast 
+
+le_modified_name_adv:
+22c9 da604405 arg mem_le_adv_data_len + 32 ,regc 
+22ca da2043e6 arg mem_le_adv_data ,rega 
+22cb 204022d6 call le_modified_name_adv_and_scan 
+22cc 58000000 setarg 0 
+22cd 79347e00 setflag user ,0 ,pdata 
+22ce 67e0895c store 1 ,mem_pdatatemp 
+22cf da604425 arg mem_le_scan_data_len + 32 ,regc 
+22d0 da204406 arg mem_le_scan_data ,rega 
+22d1 204022d6 call le_modified_name_adv_and_scan 
+22d2 20740000 rtn user 
+22d3 6fe0895c fetch 1 ,mem_pdatatemp 
+22d4 203a131f branch assert ,blank 
+22d5 20600000 rtn 
+
+le_modified_name_adv_and_scan:
+22d6 4763c038 bpatchx patch38_7 ,mem_patch38 
+22d7 20407e62 call enable_user 
+22d8 20407d3a call clear_temp_block 
+22d9 da400000 arg 0 ,regb 
+22da d8a0098f arg mem_le_data_temp ,contw 
+22db 204022f0 call le_modified_name_adv_loop 
+22dc 6fe0c2f5 fetch 1 ,mem_le_name_len 
+22dd 1fe08401 add pdata ,1 ,temp 
+22de 9a40a200 iadd regb ,rega 
+22df 1a20a202 increase 2 ,rega 
+22e0 1a267c1f sub rega ,0x1f ,null 
+22e1 242122ee nbranch le_modified_name_adv_and_scan_name_overflow ,positive 
+22e2 e0408005 istoret 1 ,contw 
+22e3 d8400009 arg gap_adtype_local_name_complete ,temp 
+22e4 e0408005 istoret 1 ,contw 
+22e5 98007200 iforce loopcnt 
+22e6 20407d60 call memcpy_fast 
+22e7 1a222400 copy rega ,regb 
+
+le_modified_name_adv_and_scan_store_data:
+22e8 1a427e00 deposit regb 
+22e9 67e0898e store 1 ,mem_le_data_len_temp 
+22ea d8c0098e arg mem_le_data_len_temp ,contr 
+22eb 5fffffe0 setarg -32 
+22ec 9a608a00 iadd regc ,contw 
+22ed 20207d18 branch memcpy32 
+
+le_modified_name_adv_and_scan_name_overflow:
+22ee 20407e64 call disable_user 
+22ef 202022e8 branch le_modified_name_adv_and_scan_store_data 
+
+le_modified_name_adv_loop:
+22f0 efe08011 ifetch 1 ,rega 
+22f1 207a0000 rtn blank 
+22f2 1fe0fe01 pincrease 1 
+22f3 e8408006 ifetcht 1 ,contr 
+22f4 18467c09 sub temp ,gap_adtype_local_name_complete ,null 
+22f5 2022a2ff branch le_modified_name_adv_found_name ,zero 
+22f6 9a40a400 iadd regb ,regb 
+22f7 1a220c00 copy rega ,contr 
+22f8 98007200 iforce loopcnt 
+22f9 20407d60 call memcpy_fast 
+22fa 18c22200 copy contr ,rega 
+
+le_modified_name_adv_loop2:
+22fb 1a227e00 deposit rega 
+22fc 9a667c00 isub regc ,null 
+22fd 20610000 rtn positive 
+22fe 202022f0 branch le_modified_name_adv_loop 
+
+le_modified_name_adv_found_name:
+22ff 9a20a200 iadd rega ,rega 
+2300 202022fb branch le_modified_name_adv_loop2 
+
+memcpy_empty:
+2301 58000020 setarg space 
+2302 e7e08005 istore 1 ,contw 
+2303 c2002301 loop memcpy_empty 
+2304 20600000 rtn 
+
+le_lpm_set_mult:
+2305 47644039 bpatchx patch39_0 ,mem_patch39 
+2306 7855fc00 disable wake 
+2307 20372309 branch le_lpm_set_mult_attempt ,attempt 
+2308 2436a317 nbranch le_lpm_lost ,match 
+
+le_lpm_set_mult_attempt:
+2309 204014ad call lpm_match 
+230a 6fe140c9 fetch 2 ,mem_rx_window_sniff 
+230b 67e10295 store 2 ,mem_le_receive_window 
+
+le_lpm_set_mult_attempt_match:
+230c 243694c0 nbranch lpm_mult_short ,match 
+230d c50794c0 bmark1 mark_old_packet ,lpm_mult_short 
+230e 6fe0816c fetch 1 ,mem_le_rxbuf_data_length 
+230f 243a14c0 nbranch lpm_mult_short ,blank 
+2310 6fe0c1f4 fetch 1 ,mem_le_txlen 
+2311 243a14c0 nbranch lpm_mult_short ,blank 
+2312 6fe0c3be fetch 1 ,mem_le_configuration 
+2313 c28294c0 bbit1 bit_ble_short_mult ,lpm_mult_short 
+2314 6fe08287 fetch 1 ,mem_le_state 
+2315 c28294c0 bbit1 lestate_update_param ,lpm_mult_short 
+2316 2020149f branch lpm_mult_wait_timeout 
+
+le_lpm_lost:
+2317 684940c9 fetcht 2 ,mem_rx_window_sniff 
+2318 18430400 rshift temp ,temp 
+2319 6fe10295 fetch 2 ,mem_le_receive_window 
+231a 9840fe00 iadd temp ,pdata 
+231b 67e10295 store 2 ,mem_le_receive_window 
+231c 202014b8 branch lpm_lost 
+
+le_set_config_fixed_tk:
+231d d8e00000 arg bit_ble_passkey_fixed_key ,queue 
+231e 20202335 branch le_set_config 
+
+le_clr_config_fixed_tk:
+231f d8e00000 arg bit_ble_passkey_fixed_key ,queue 
+2320 20202339 branch le_clr_config 
+
+le_set_config_fixed_ltk:
+2321 d8e00001 arg bit_ble_pairing_fixed_ltk ,queue 
+2322 20202335 branch le_set_config 
+
+le_clr_config_fixed_ltk:
+2323 d8e00001 arg bit_ble_pairing_fixed_ltk ,queue 
+2324 20202339 branch le_clr_config 
+
+le_set_config_more_data:
+2325 d8e00002 arg bit_ble_transmit_packet_by_md ,queue 
+2326 20202335 branch le_set_config 
+
+le_clr_config_more_data:
+2327 d8e00002 arg bit_ble_transmit_packet_by_md ,queue 
+2328 20202339 branch le_clr_config 
+
+le_set_config_read_authentication:
+2329 d8e00003 arg bit_ble_read_auth ,queue 
+232a 20202335 branch le_set_config 
+
+le_clr_config_read_authentication:
+232b d8e00003 arg bit_ble_read_auth ,queue 
+232c 20202339 branch le_clr_config 
+
+le_set_config_write_authentication:
+232d d8e00004 arg bit_ble_write_auth ,queue 
+232e 20202335 branch le_set_config 
+
+le_clr_config_write_authentication:
+232f d8e00004 arg bit_ble_write_auth ,queue 
+2330 20202339 branch le_clr_config 
+
+le_set_config_short_mult:
+2331 d8e00005 arg bit_ble_short_mult ,queue 
+2332 20202335 branch le_set_config 
+
+le_clr_config_short_mult:
+2333 d8e00005 arg bit_ble_short_mult ,queue 
+2334 20202339 branch le_clr_config 
+
+le_set_config:
+2335 6fe0c3be fetch 1 ,mem_le_configuration 
+2336 f9207e00 qset1 pdata 
+2337 67e0c3be store 1 ,mem_le_configuration 
+2338 20600000 rtn 
+
+le_clr_config:
+2339 6fe0c3be fetch 1 ,mem_le_configuration 
+233a f93ffe00 qset0 pdata 
+233b 67e0c3be store 1 ,mem_le_configuration 
+233c 20600000 rtn 
+
+le_set_fixed_ltk:
+233d 58112233 setarg 0x112233 
+233e 67e1c3bf store 3 ,mem_le_fixed_ltk 
+233f 58445566 setarg 0x445566 
+2340 e7e18005 istore 3 ,contw 
+2341 58778899 setarg 0x778899 
+2342 e7e18005 istore 3 ,contw 
+2343 58001122 setarg 0x001122 
+2344 e7e18005 istore 3 ,contw 
+2345 58334455 setarg 0x334455 
+2346 e7e18005 istore 3 ,contw 
+2347 58000066 setarg 0x66 
+2348 e7e08005 istore 1 ,contw 
+2349 20600000 rtn 
+
+le_set_justwork:
+234a 59000302 setarg 0x01000302 
+234b 67e2434e store 4 ,mem_le_pres 
+234c 58010010 setarg 0x010010 
+234d 67e1c352 store 3 ,mem_le_pres_max_keysize 
+234e 70439b01 jam 1 ,mem_le_pairing_mode 
+234f 20600000 rtn 
+
+le_fifo_malloc_tx_empty:
+2350 da200000 arg 0 ,rega 
+2351 d8200001 arg llid_empty ,type 
+2352 20202361 branch le_fifo_malloc_tx 
+
+le_fifo_malloc_tx_ll:
+2353 d8200003 arg llid_le_ll ,type 
+2354 20402361 call le_fifo_malloc_tx 
+2355 1a427e00 copy regb ,pdata 
+2356 e7e08005 istore 1 ,contw 
+2357 20600000 rtn 
+
+le_fifo_malloc_tx_l2cap:
+2358 18000202 force llid_start ,type 
+2359 1a20a204 increase 4 ,rega 
+235a 20402361 call le_fifo_malloc_tx 
+235b 1a20a3fc increase -4 ,rega 
+235c 1a227e00 copy rega ,pdata 
+235d e7e10005 istore 2 ,contw 
+235e 1a427e00 copy regb ,pdata 
+235f e7e10005 istore 2 ,contw 
+2360 20600000 rtn 
+
+le_fifo_malloc_tx:
+2361 1a20a205 increase 5 ,rega 
+2362 2040527c call ble_l2cap_malloc 
+2363 1a20a3fb increase -5 ,rega 
+2364 1a227e00 copy rega ,pdata 
+2365 e7e10005 istore 2 ,contw 
+2366 58000000 setarg 0 
+2367 e7e10005 istore 2 ,contw 
+2368 18227e00 copy type ,pdata 
+2369 e7e08005 istore 1 ,contw 
+236a 20600000 rtn 
+
+le_fifo_get_first_tx_ptr:
+236b 204052b6 call l2cap_malloc_fifo_out 
+236c 1fe20c00 copy pdata ,contr 
+236d 20600000 rtn 
+
+le_fifo_get_second_tx_ptr:
+236e 6fe144ee fetch 2 ,mem_tx_fifo2_ptr 
+236f 20600000 rtn 
+
+le_fifo_get_last_tx_ptr:
+2370 20402373 call le_fifo_get_last_tx_ptr0 
+2371 1fe20c00 copy pdata ,contr 
+2372 20600000 rtn 
+
+le_fifo_get_last_tx_ptr0:
+2373 6fe144f1 fetch 2 ,mem_tx_fifo3_ptr 
+2374 20600000 rtn 
+
+le_fifo_get_first_l2cap_ptr:
+2375 2040236b call le_fifo_get_first_tx_ptr 
+2376 18c08c05 increase 5 ,contr 
+2377 20600000 rtn 
+
+le_fifo_get_first_att_ptr:
+2378 2040236b call le_fifo_get_first_tx_ptr 
+2379 18c08c09 increase 9 ,contr 
+237a 20600000 rtn 
+
+le_fifo_get_last_att_ptr:
+237b 20402370 call le_fifo_get_last_tx_ptr 
+237c 18c08c09 increase 9 ,contr 
+237d 20600000 rtn 
+
+le_fifo_get_last_l2cap_ptr:
+237e 20402370 call le_fifo_get_last_tx_ptr 
+237f 18c08c05 increase 5 ,contr 
+2380 20600000 rtn 
+
+le_fifo_check_full:
+2381 202052cc branch l2cap_malloc_is_fifo_full 
+
+le_fifo_check_nearly_full:
+2382 202052cf branch l2cap_malloc_is_fifo_nearly_full 
+
+le_fifo_check_empty:
+2383 202052d2 branch l2cap_malloc_is_fifo_empty 
+
+le_fifo_release_first_node:
+2384 202052bb branch l2cap_malloc_free 
+
+le_set_dle:
+2385 67e4444c store 8 ,mem_local_rx_max_octets 
+2386 20202397 branch le_set_feature_data_packet_length_extension 
+
+le_set_phys:
+2387 184122ff and temp ,0xff ,rega 
+2388 2040238b call le_set_tx_phy 
+2389 184ca200 rshift8 temp ,rega 
+238a 20202391 branch le_set_rx_phy 
+
+le_set_tx_phy:
+238b 6220c442 storer rega ,1 ,mem_le_tx_phys 
+238c 2a2ffe01 isolate1 bit_le_2m_phy ,rega 
+238d 2040a393 call le_set_feature_2m_phy ,true 
+238e 2a2ffe02 isolate1 bit_le_coded_phy ,rega 
+238f 2040a395 call le_set_feature_coded_phy ,true 
+2390 20600000 rtn 
+
+le_set_rx_phy:
+2391 6220c443 storer rega ,1 ,mem_le_rx_phys 
+2392 2020238c branch le_set_tx_phy + 1 
+
+le_set_feature_2m_phy:
+2393 d8e00008 arg bit_ll_feature_le_2m_phy ,queue 
+2394 20202399 branch le_set_feature 
+
+le_set_feature_coded_phy:
+2395 d8e0000b arg bit_ll_feature_le_coded_phy ,queue 
+2396 20202399 branch le_set_feature 
+
+le_set_feature_data_packet_length_extension:
+2397 d8e00005 arg bit_ll_feature_le_data_packet_length_extension ,queue 
+2398 20202399 branch le_set_feature 
+
+le_set_feature:
+2399 6fe4443a fetch 8 ,mem_le_local_feature 
+239a f9207e00 qset1 pdata 
+239b 67e4443a store 8 ,mem_le_local_feature 
+239c 20600000 rtn 
+
+le_advertising_dispatch:
+239d 7002bc01 jam fun_rx_ll_1m_phy ,mem_le_rx_phy 
+239e 7002bd01 jam fun_tx_ll_1m_phy ,mem_le_tx_phy 
+239f 20401eb8 call le_enable 
+23a0 204023a3 call le_scan 
+23a1 20402422 call le_adv 
+23a2 20201ec2 branch le_disable 
+
+le_scan:
+23a3 4764c039 bpatchx patch39_1 ,mem_patch39 
+23a4 6fe0c3e0 fetch 1 ,mem_le_scan_enable 
+23a5 c1808000 rtnne le_scan_enable 
+23a6 d8e00002 arg le_scan_interval_timer ,queue 
+23a7 20407d82 call timer_check 
+23a8 247a0000 nrtn blank 
+23a9 6fe143e1 fetch 2 ,mem_le_scan_interval 
+23aa 684943e3 fetcht 2 ,mem_le_scan_window 
+23ab 98467e00 isub temp ,pdata 
+23ac d8e00002 arg le_scan_interval_timer ,queue 
+23ad 20407d74 call timer_init 
+23ae 7854fc00 disable master 
+23af 20402443 call le_init_adv 
+23b0 204023c2 call le_wait_adv 
+23b1 24768000 nrtn match 
+23b2 47654039 bpatchx patch39_2 ,mem_patch39 
+23b3 6fe3016d fetch 6 ,mem_le_rxbuf + 2 
+23b4 67e30297 store 6 ,mem_le_plap 
+23b5 6fe08002 fetch 1 ,mem_le_adv_rcv 
+23b6 1fe0fe01 increase 1 ,pdata 
+23b7 67e08002 store 1 ,mem_le_adv_rcv 
+23b8 204023c9 call le_create_conn 
+23b9 20748000 rtn master 
+23ba 2040246a call le_send_scan_request 
+23bb 24768000 nrtn match 
+23bc 6fe08004 fetch 1 ,mem_le_scanrsp_rcv 
+23bd 1fe0fe01 increase 1 ,pdata 
+23be 67e08004 store 1 ,mem_le_scanrsp_rcv 
+23bf 6fe48173 fetch 9 ,mem_le_rxbuf + 8 
+23c0 67e48a01 store 9 ,mem_tmp_buffer 
+23c1 20600000 rtn 
+
+le_wait_adv:
+23c2 4765c039 bpatchx patch39_3 ,mem_patch39 
+23c3 204024b6 call le_next_adv_channel 
+23c4 20401f5a call le_receive_adv 
+23c5 6fe08001 fetch 1 ,mem_le_adv_waitcnt 
+23c6 1fe0fe01 increase 1 ,pdata 
+23c7 67e08001 store 1 ,mem_le_adv_waitcnt 
+23c8 20600000 rtn 
+
+le_create_conn:
+23c9 47664039 bpatchx patch39_4 ,mem_patch39 
+23ca 6fe082e0 fetch 1 ,mem_cmd_le_create_conn 
+23cb c18d8000 rtnne hci_cmd_le_create_conn 
+23cc 6fe30297 fetch 6 ,mem_le_plap 
+23cd 684b4369 fetcht 6 ,mem_le_conn_peer_addr 
+23ce 98467c00 isub temp ,null 
+23cf 24628000 nrtn zero 
+23d0 20400a48 call context_new 
+23d1 24628000 nrtn zero 
+23d2 204023da call le_connect_request 
+23d3 20401e12 call le_init_master 
+23d4 4766c039 bpatchx patch39_5 ,mem_patch39 
+23d5 7041de00 jam 0 ,mem_hci_cmd 
+23d6 7002d700 jam 0 ,mem_le_peer_sca 
+23d7 7043e000 jam 0 ,mem_le_scan_enable 
+23d8 7002e000 jam 0 ,mem_cmd_le_create_conn 
+23d9 20200a30 branch context_save 
+
+le_connect_request:
+23da 47674039 bpatchx patch39_6 ,mem_patch39 
+23db 18007fff force -1 ,pdata 
+23dc 38080001 setsect 2 ,1 
+23dd 67e282b7 store 5 ,mem_le_channel_map 
+23de da200287 arg mem_le_state ,rega 
+23df 20401f30 call le_calc_channel_map 
+23e0 18007204 force 4 ,loopcnt 
+23e1 d8a002ab arg mem_le_access ,contw 
+23e2 204059ed call generate_random_loop 
+23e3 6fe14376 fetch 2 ,mem_le_timeout 
+23e4 67e102b5 store 2 ,mem_le_superto 
+
+le_con_req_hop_retry:
+23e5 180a7e00 random pdata 
+23e6 1fe17e0f and_into 0xf ,pdata 
+23e7 1fe67c04 sub pdata ,4 ,null 
+23e8 202123e5 branch le_con_req_hop_retry ,positive 
+23e9 67e082a0 store 1 ,mem_le_hop 
+23ea 67e085a8 store 1 ,mem_tmp1 
+23eb 4767c039 bpatchx patch39_7 ,mem_patch39 
+23ec 684941f1 fetcht 2 ,mem_le_conn_interval 
+23ed 60490289 storet 2 ,mem_le_tsniff 
+23ee 18422600 copy temp ,regc 
+23ef 1c40fe07 add clkn_bt ,7 ,pdata 
+23f0 9a66fc00 idiv regc 
+23f1 20407dfd call wait_div_end 
+23f2 18072200 remainder rega 
+23f3 9a267e00 isub rega ,pdata 
+23f4 9a60fe00 iadd regc ,pdata 
+23f5 684941ef fetcht 2 ,mem_le_dsniff 
+23f6 9840fe00 iadd temp ,pdata 
+23f7 67e2028b store 4 ,mem_le_anchor 
+23f8 9c462200 isub clkn_bt ,rega 
+23f9 1a20a3fa increase -6 ,rega 
+23fa da402205 arg 0x2205 ,regb 
+23fb 6fe0c36f fetch 1 ,mem_le_conn_own_addr_type 
+23fc 7d3a2406 nsetflag blank ,le_sender_addr_bit ,regb 
+23fd 6fe0c368 fetch 1 ,mem_le_conn_peer_addr_type 
+23fe 7d3a2407 nsetflag blank ,le_receiver_addr_bit ,regb 
+23ff 1a427e00 copy regb ,pdata 
+2400 67e141f3 store 2 ,mem_le_txheader 
+2401 6fe34378 fetch 6 ,mem_le_lap 
+2402 e7e30005 istore 6 ,contw 
+2403 6fe30297 fetch 6 ,mem_le_plap 
+2404 e7e30005 istore 6 ,contw 
+2405 6fe202ab fetch 4 ,mem_le_access 
+2406 e7e20005 istore 4 ,contw 
+2407 180a7e00 random pdata 
+2408 e7e10005 istore 2 ,contw 
+2409 180a7e00 random pdata 
+240a e7e08005 istore 1 ,contw 
+240b 18007e02 force 2 ,pdata 
+240c e7e08005 istore 1 ,contw 
+240d 1a2b7e00 rshift2 rega ,pdata 
+240e e7e10005 istore 2 ,contw 
+240f 1a6b7e00 rshift2 regc ,pdata 
+2410 e7e10005 istore 2 ,contw 
+2411 4768403a bpatchx patch3a_0 ,mem_patch3a 
+2412 58000000 setarg 0 
+2413 e7e10005 istore 2 ,contw 
+2414 6fe14376 fetch 2 ,mem_le_timeout 
+2415 e7e10005 istore 2 ,contw 
+2416 6fe282b7 fetch 5 ,mem_le_channel_map 
+2417 e7e28005 istore 5 ,contw 
+2418 6fe082a0 fetch 1 ,mem_le_hop 
+2419 d84000a0 arg param_le_sca ,temp 
+241a 9841fe00 ior temp ,pdata 
+241b e7e08005 istore 1 ,contw 
+241c 20402046 call le_transmit_norx 
+241d 580041f3 setarg mem_le_txheader 
+241e 1fe08c12 add pdata ,18 ,contr 
+241f efe18006 ifetch 3 ,contr 
+2420 67e182af store 3 ,mem_le_crcinit 
+2421 20600000 rtn 
+
+le_adv:
+2422 70001624 jam 36 ,mem_le_ch_mapped 
+2423 70098e00 jam 0 ,mem_le_adv_channel_map_temp 
+
+le_adv_loop:
+2424 6fe0c425 fetch 1 ,mem_le_adv_enable 
+2425 207a0000 rtn blank 
+2426 d8e00000 arg le_adv_interval_timer ,queue 
+2427 20407d82 call timer_check 
+2428 247a0000 nrtn blank 
+2429 4768c03a bpatchx patch3a_1 ,mem_patch3a 
+
+le_adv_loop_tx:
+242a 78287c00 enable swfine 
+242b 20402443 call le_init_adv 
+242c 204024b6 call le_next_adv_channel 
+242d 2040244c call le_send_adv_ind 
+242e 2436a436 nbranch le_adv_not_match ,match 
+242f 6fe08003 fetch 1 ,mem_le_req_rcv 
+2430 1fe0fe01 increase 1 ,pdata 
+2431 67e08003 store 1 ,mem_le_req_rcv 
+2432 6fe0816b fetch 1 ,mem_le_rxbuf_adv_header 
+2433 1fe17e0f and pdata ,0x0f ,pdata 
+2434 c001a47b beq scan_req ,le_send_scan_response 
+2435 c002a48d beq connect_req ,le_parse_connect_req 
+
+le_adv_not_match:
+2436 4769403a bpatchx patch3a_2 ,mem_patch3a 
+2437 6fe0898e fetch 1 ,mem_le_adv_channel_map_temp 
+2438 6848c430 fetcht 1 ,mem_le_adv_channel_map 
+2439 98467c00 isub temp ,null 
+243a 2422a424 nbranch le_adv_loop ,zero 
+243b 180a7e00 random pdata 
+243c d84001ff arg 0x1ff ,temp 
+243d 98417e00 iand temp ,pdata 
+243e 1fe0fefa add pdata ,250 ,pdata 
+243f 20407d1c call delay 
+2440 d8e00000 arg le_adv_interval_timer ,queue 
+2441 6fe14426 fetch 2 ,mem_le_adv_interval 
+2442 20207d74 branch timer_init 
+
+le_init_adv:
+2443 4769c03a bpatchx patch3a_3 ,mem_patch3a 
+2444 7854fc00 disable master 
+
+le_adv_access:
+2445 588e89be setarg 0x8e89be 
+2446 1fed7e00 lshift8 pdata ,pdata 
+2447 1fe1fed6 or_into 0xd6 ,pdata 
+2448 98001200 iforce access 
+2449 58555555 setarg 0x555555 
+244a 67e182af store 3 ,mem_le_crcinit 
+244b 202010ab branch calc_mod_value_scale_le 
+
+le_send_adv_ind:
+244c 476a403a bpatchx patch3a_4 ,mem_patch3a 
+244d 6fe0c428 fetch 1 ,mem_le_adv_type 
+244e 6848c429 fetcht 1 ,mem_le_adv_own_addr_type 
+244f 18520400 lshift4 temp ,temp 
+2450 184b8400 lshift2 temp ,temp 
+2451 98408400 iadd temp ,temp 
+2452 6048c1f3 storet 1 ,mem_le_txheader 
+2453 c000a45d beq adv_direct_ind ,le_send_adv_direct_ind 
+2454 6848c3e5 fetcht 1 ,mem_le_adv_data_len 
+2455 1840fe06 add temp ,6 ,pdata 
+2456 67e0c1f4 store 1 ,mem_le_txlen 
+2457 6fe34378 fetch 6 ,mem_le_lap 
+2458 67e341f5 store 6 ,mem_le_txpayload 
+2459 18427200 copy temp ,loopcnt 
+245a d8c043e6 arg mem_le_adv_data ,contr 
+245b 20407d60 call memcpy_fast 
+245c 20202463 branch le_send_adv_transmit 
+
+le_send_adv_direct_ind:
+245d 5800000c setarg 12 
+245e 67e0c1f4 store 1 ,mem_le_txlen 
+245f 6fe34378 fetch 6 ,mem_le_lap 
+2460 67e341f5 store 6 ,mem_le_txpayload 
+2461 6fe341e0 fetch 6 ,mem_hci_plap 
+2462 e7e30005 istore 6 ,contw 
+
+le_send_adv_transmit:
+2463 476ac03a bpatchx patch3a_5 ,mem_patch3a 
+2464 6fe08000 fetch 1 ,mem_le_adv_transmit 
+2465 1fe0fe01 increase 1 ,pdata 
+2466 67e08000 store 1 ,mem_le_adv_transmit 
+2467 db600708 arg 1800 ,stop_watch 
+2468 7856fc00 disable match 
+2469 20202031 branch le_transmit_receive_sifs_without_change_mode 
+
+le_send_scan_request:
+246a 476b403a bpatchx patch3a_6 ,mem_patch3a 
+246b 6fe0c431 fetch 1 ,mem_le_scan_type 
+246c c1808000 rtnne le_scan_type_active 
+246d 6fe08000 fetch 1 ,mem_le_adv_transmit 
+246e 1fe0fe01 increase 1 ,pdata 
+246f 67e08000 store 1 ,mem_le_adv_transmit 
+2470 d8400c03 arg 0x0c03 ,temp 
+2471 6fe0c432 fetch 1 ,mem_le_scan_own_addr_type 
+2472 7d3a0406 nsetflag blank ,le_sender_addr_bit ,temp 
+2473 1a227e00 copy rega ,pdata 
+2474 7d3a0407 nsetflag blank ,le_receiver_addr_bit ,temp 
+2475 604941f3 storet 2 ,mem_le_txheader 
+2476 6fe34378 fetch 6 ,mem_le_lap 
+2477 e7e30005 istore 6 ,contw 
+2478 6fe30297 fetch 6 ,mem_le_plap 
+2479 e7e30005 istore 6 ,contw 
+247a 20202031 branch le_transmit_receive_sifs_without_change_mode 
+
+le_send_scan_response:
+247b 6fe30173 fetch 6 ,mem_le_rxbuf_adv_scan_req_adv_address 
+247c 684b4378 fetcht 6 ,mem_le_lap 
+247d 98467c00 isub temp ,null 
+247e 24628000 nrtn zero 
+247f d8400004 arg scan_rsp ,temp 
+2480 6fe0c429 fetch 1 ,mem_le_adv_own_addr_type 
+2481 7d3a0406 nsetflag blank ,le_sender_addr_bit ,temp 
+2482 6048c1f3 storet 1 ,mem_le_txheader 
+2483 6848c405 fetcht 1 ,mem_le_scan_data_len 
+2484 1840fe06 add temp ,6 ,pdata 
+2485 67e0c1f4 store 1 ,mem_le_txlen 
+2486 6fe34378 fetch 6 ,mem_le_lap 
+2487 67e341f5 store 6 ,mem_le_txpayload 
+2488 d8c04406 arg mem_le_scan_data ,contr 
+2489 18427200 copy temp ,loopcnt 
+248a 20407d60 call memcpy_fast 
+248b 20402046 call le_transmit_norx 
+248c 20202436 branch le_adv_not_match 
+
+le_parse_connect_req:
+248d 6fe30173 fetch 6 ,mem_le_rxbuf_adv_connect_ind_adv_address 
+248e 684b4378 fetcht 6 ,mem_le_lap 
+248f 98467c00 isub temp ,null 
+2490 24628000 nrtn zero 
+2491 2040216d call le_scan_check_sender_addr_type 
+2492 6220c368 storer rega ,1 ,mem_le_conn_peer_addr_type 
+2493 6fe3016d fetch 6 ,mem_le_rxbuf_adv_connect_ind_init_address 
+2494 67e30297 store 6 ,mem_le_plap 
+2495 6fe40179 fetch 8 ,mem_le_rxbuf_adv_connect_ind_access_address 
+2496 67e402ab store 8 ,mem_le_access 
+2497 68490181 fetcht 2 ,mem_le_rxbuf_adv_connect_ind_win_offset 
+2498 476bc03a bpatchx patch3a_7 ,mem_patch3a 
+2499 184b8400 lshift2 temp ,temp 
+249a 6fe10183 fetch 2 ,mem_le_rxbuf_adv_connect_ind_interval 
+249b 1febfe00 lshift2 pdata ,pdata 
+249c 67e10289 store 2 ,mem_le_tsniff 
+249d 67e2028b store 4 ,mem_le_anchor 
+249e 98467e00 isub temp ,pdata 
+249f 1fe0d1fe add pdata ,-2 ,clke_bt 
+24a0 6fe48185 fetch 9 ,mem_le_rxbuf_adv_connect_ind_latency 
+24a1 67e482b3 store 9 ,mem_le_slave_latency 
+24a2 476c403b bpatchx patch3b_0 ,mem_patch3b 
+24a3 6fe0818e fetch 1 ,mem_le_rxbuf_adv_connect_ind_hop_and_sca 
+24a4 1fe1041f and pdata ,0x1f ,temp 
+24a5 604882a0 storet 1 ,mem_le_hop 
+24a6 1ff18400 rshift4 pdata ,temp 
+24a7 18430400 rshift temp ,temp 
+24a8 604882d7 storet 1 ,mem_le_peer_sca 
+24a9 da200287 arg mem_le_state ,rega 
+24aa 2040223e call le_receive_window_size 
+24ab da200287 arg mem_le_state ,rega 
+24ac 20401f30 call le_calc_channel_map 
+24ad 20401e1e call le_init_slave 
+24ae 20400a48 call context_new 
+24af 24628000 nrtn zero 
+24b0 476cc03b bpatchx patch3b_1 ,mem_patch3b 
+24b1 2040105c call calc_clke_offset 
+24b2 2040283b call le_l2cap_reset_signaling_identifier 
+24b3 70095b14 jam bt_evt_le_connected ,mem_fifo_temp 
+24b4 2040789f call ui_ipc_send_event 
+24b5 20200a30 branch context_save 
+
+le_next_adv_channel:
+24b6 476d403b bpatchx patch3b_2 ,mem_patch3b 
+24b7 6fe08016 fetch 1 ,mem_le_ch_mapped 
+24b8 c012a4bc beq 37 ,le_next_adv_channel_curr_channel_37 
+24b9 c01324c2 beq 38 ,le_next_adv_channel_curr_channel_38 
+24ba c013a4c8 beq 39 ,le_next_adv_channel_curr_channel_39 
+24bb 202024c8 branch le_next_adv_channel_curr_channel_39 
+
+le_next_adv_channel_curr_channel_37:
+24bc 6848c430 fetcht 1 ,mem_le_adv_channel_map 
+24bd 284ffe01 isolate1 bit_adv_channel_map_38 ,temp 
+24be 2020a4d3 branch set_le_next_adv_channel_38 ,true 
+24bf 284ffe02 isolate1 bit_adv_channel_map_39 ,temp 
+24c0 2020a4d8 branch set_le_next_adv_channel_39 ,true 
+24c1 202024ce branch set_le_next_adv_channel_37 
+
+le_next_adv_channel_curr_channel_38:
+24c2 6848c430 fetcht 1 ,mem_le_adv_channel_map 
+24c3 284ffe02 isolate1 bit_adv_channel_map_39 ,temp 
+24c4 2020a4d8 branch set_le_next_adv_channel_39 ,true 
+24c5 284ffe00 isolate1 bit_adv_channel_map_37 ,temp 
+24c6 2020a4ce branch set_le_next_adv_channel_37 ,true 
+24c7 202024d3 branch set_le_next_adv_channel_38 
+
+le_next_adv_channel_curr_channel_39:
+24c8 6848c430 fetcht 1 ,mem_le_adv_channel_map 
+24c9 284ffe00 isolate1 bit_adv_channel_map_37 ,temp 
+24ca 2020a4ce branch set_le_next_adv_channel_37 ,true 
+24cb 284ffe01 isolate1 bit_adv_channel_map_38 ,temp 
+24cc 2020a4d3 branch set_le_next_adv_channel_38 ,true 
+24cd 202024d8 branch set_le_next_adv_channel_39 
+
+set_le_next_adv_channel_37:
+24ce 70001625 jam 37 ,mem_le_ch_mapped 
+24cf 6fe0898e fetch 1 ,mem_le_adv_channel_map_temp 
+24d0 79207e00 set1 bit_adv_channel_map_37 ,pdata 
+24d1 67e0898e store 1 ,mem_le_adv_channel_map_temp 
+24d2 20600000 rtn 
+
+set_le_next_adv_channel_38:
+24d3 70001626 jam 38 ,mem_le_ch_mapped 
+24d4 6fe0898e fetch 1 ,mem_le_adv_channel_map_temp 
+24d5 79207e01 set1 bit_adv_channel_map_38 ,pdata 
+24d6 67e0898e store 1 ,mem_le_adv_channel_map_temp 
+24d7 20600000 rtn 
+
+set_le_next_adv_channel_39:
+24d8 70001627 jam 39 ,mem_le_ch_mapped 
+24d9 6fe0898e fetch 1 ,mem_le_adv_channel_map_temp 
+24da 79207e02 set1 bit_adv_channel_map_39 ,pdata 
+24db 67e0898e store 1 ,mem_le_adv_channel_map_temp 
+24dc 20600000 rtn 
+
+le_parse_att:
+24dd efe18006 ifetch 3 ,contr 
+24de 67e1c434 store 3 ,mem_le_att_opcode 
+24df c00124f4 beq attop_exchange_mtu_request ,le_parse_att_exchange_mtu_request 
+24e0 c001a4fc beq attop_exchange_mtu_response ,le_parse_att_exchange_mtu_response 
+24e1 c00224ff beq attop_find_information_request ,le_parse_att_find_information_request 
+24e2 c0032526 beq attop_find_by_type_value_request ,le_parse_att_find_by_type_value_request 
+24e3 c0042573 beq attop_read_by_type_request ,le_parse_att_read_by_type_request 
+24e4 c00525f1 beq attop_read_request ,le_parse_att_read_request 
+24e5 c0062620 beq attop_read_blob_request ,le_parse_att_read_blob_request 
+24e6 c0082636 beq attop_read_by_group_type_request ,le_parse_att_read_by_group_type_request 
+24e7 c0092679 beq attop_write_request ,le_parse_att_write_request 
+24e8 c00b269d beq attop_prepare_write_request ,le_parse_att_prepare_write_request 
+24e9 c00c26b0 beq attop_execute_write_request ,le_parse_att_execute_write_request 
+24ea c00f26b5 beq attop_handle_value_confirmation ,le_parse_handle_value_confirmation 
+24eb c02926b9 beq attop_write_command ,le_parse_att_write_command 
+24ec 20600000 rtn 
+
+le_send_att_exchange_mtu_requset:
+24ed 18002203 force 3 ,rega 
+24ee 204026de call le_fifo_malloc_tx_l2cap_gatt 
+24ef 58000002 setarg attop_exchange_mtu_request 
+24f0 e7e08005 istore 1 ,contw 
+24f1 6fe1437e fetch 2 ,mem_le_local_mtu 
+24f2 e7e10005 istore 2 ,contw 
+24f3 20600000 rtn 
+
+le_parse_att_exchange_mtu_request:
+24f4 204024fc call le_parse_att_exchange_mtu_response 
+
+le_send_att_exchange_mtu_response:
+24f5 18002203 force 3 ,rega 
+24f6 204026de call le_fifo_malloc_tx_l2cap_gatt 
+24f7 58000003 setarg attop_exchange_mtu_response 
+24f8 e7e08005 istore 1 ,contw 
+24f9 6fe1437e fetch 2 ,mem_le_local_mtu 
+24fa e7e10005 istore 2 ,contw 
+24fb 20600000 rtn 
+
+le_parse_att_exchange_mtu_response:
+24fc 1fecfe00 rshift8 pdata ,pdata 
+24fd 67e14380 store 2 ,mem_le_remote_mtu 
+24fe 20600000 rtn 
+
+le_parse_att_find_information_request:
+24ff 2040270d call le_get_search_handle_start_end_common 
+2500 20407e62 call enable_user 
+2501 20202502 branch le_send_att_find_information_response 
+
+le_send_att_find_information_response:
+2502 d9600003 arg 3 ,timeup 
+2503 20402258 call le_init_attlist_search 
+
+le_send_att_find_information_res_loop:
+2504 20402261 call le_att_handle_inrange 
+2505 203a2524 branch le_send_att_find_information_res_end ,blank 
+2506 24212521 nbranch le_send_att_find_information_res_next ,positive 
+2507 18c08dfe increase -2 ,contr 
+2508 20407cff call store_contr 
+2509 20407cf6 call get_contw 
+250a 24342514 nbranch le_send_att_find_information_res_store_info ,user 
+250b 20407ce4 call push_stack_rega_b_c 
+250c 20407e64 call disable_user 
+250d 18002214 force 20 ,rega 
+250e 204026de call le_fifo_malloc_tx_l2cap_gatt 
+250f 20407cf2 call pop_stack_rega_b_c 
+2510 58000005 setarg attop_find_information_response 
+2511 e7e08005 istore 1 ,contw 
+2512 58000001 setarg uuid_size_16bit 
+2513 e7e08005 istore 1 ,contw 
+
+le_send_att_find_information_res_store_info:
+2514 20407cf9 call get_contr 
+2515 efe10006 ifetch 2 ,contr 
+2516 1fe17eff and_into 0xff ,pdata 
+2517 e7e10005 istore 2 ,contw 
+2518 efe08006 ifetch 1 ,contr 
+2519 1fe27200 copy pdata ,loopcnt 
+251a 20407d6d call memcpy 
+251b 20407cfc call store_contw 
+251c 196097ff increase -1 ,timeup 
+251d 2022a524 branch le_send_att_find_information_res_end ,zero 
+
+le_send_att_find_information_res_cont:
+251e efe08006 ifetch 1 ,contr 
+251f 98c08c00 iadd contr ,contr 
+2520 20202504 branch le_send_att_find_information_res_loop 
+
+le_send_att_find_information_res_next:
+2521 efe08006 ifetch 1 ,contr 
+2522 98c08c00 iadd contr ,contr 
+2523 2020251e branch le_send_att_find_information_res_cont 
+
+le_send_att_find_information_res_end:
+2524 203426d2 branch le_send_att_error_response_notfound ,user 
+2525 20202701 branch le_send_auto_len_by_mem 
+
+le_parse_att_find_by_type_value_request:
+2526 2040270d call le_get_search_handle_start_end_common 
+2527 efe10006 ifetch 2 ,contr 
+2528 67e14358 store 2 ,mem_le_search_uuid 
+2529 20407cff call store_contr 
+252a d8a009a2 arg mem_le_search_att_type_length ,contw 
+252b 6fe143d2 fetch 2 ,mem_le_l2cap_size 
+252c 1fe0fff9 increase -7 ,pdata 
+252d 2040271e call le_get_search_common2 
+252e 20202539 branch le_send_att_find_by_type_value_response 
+
+le_start_end_handle_check_1:
+252f 78547c00 disable user 
+2530 6849099e fetcht 2 ,mem_le_search_handle_start 
+2531 6fe109a0 fetch 2 ,mem_le_search_handle_end 
+2532 98467c00 isub temp ,null 
+2533 24212536 nbranch le_start_end_handle_check_1_fail ,positive 
+2534 18427e00 deposit temp 
+2535 c1800000 rtnne 0 
+
+le_start_end_handle_check_1_fail:
+2536 78347c00 enable user 
+2537 7002d801 jam att_err_invalid_handle ,mem_le_err_code 
+2538 202026d3 branch le_send_att_error_response 
+
+le_send_att_find_by_type_value_response:
+2539 2040252f call le_start_end_handle_check_1 
+253a 20740000 rtn user 
+253b 68494358 fetcht 2 ,mem_le_search_uuid 
+253c 58002800 setarg uuid_gatt_primary_service 
+253d 98467c00 isub temp ,null 
+253e 2022a540 branch le_send_att_find_by_type_value_res_primary ,zero 
+253f 202026d2 branch le_send_att_error_response_notfound 
+
+le_send_att_find_by_type_value_res_primary:
+2540 70443700 jam le_find_by_type_val_res_not_found ,mem_le_search_res 
+2541 6849099e fetcht 2 ,mem_le_search_handle_start 
+2542 60490964 storet 2 ,mem_temp 
+2543 2040229d call le_att_get_handle_info 
+2544 243a26d2 nbranch le_send_att_error_response_notfound ,blank 
+
+le_send_att_find_primary_search_loop:
+2545 68490964 fetcht 2 ,mem_temp 
+2546 2040229d call le_att_get_handle_info 
+2547 243a2559 nbranch le_send_att_error_response_notfound2 ,blank 
+2548 18c22200 copy contr ,rega 
+2549 6fe089b3 fetch 1 ,mem_le_curr_att_len 
+254a 1fe27200 copy pdata ,loopcnt 
+254b 684889a2 fetcht 1 ,mem_le_search_att_type_length 
+254c 98467c00 isub temp ,null 
+254d 2422a555 nbranch le_send_att_find_primary_search_loop1 ,zero 
+254e da4009a3 arg mem_le_search_att_type ,regb 
+254f 20407dff call string_compare 
+2550 2022a55c branch le_send_att_find_primary_search_end_start_handle_found ,zero 
+2551 6fe109bb fetch 2 ,mem_le_cur_uuid 
+2552 68494358 fetcht 2 ,mem_le_search_uuid 
+2553 98467c00 isub temp ,null 
+2554 2022a564 branch le_send_att_find_primary_search_end_ending_handle_found ,zero 
+
+le_send_att_find_primary_search_loop1:
+2555 6fe10964 fetch 2 ,mem_temp 
+2556 1fe0fe01 increase 1 ,pdata 
+2557 67e10964 store 2 ,mem_temp 
+2558 20202545 branch le_send_att_find_primary_search_loop 
+
+le_send_att_error_response_notfound2:
+2559 6fe0c437 fetch 1 ,mem_le_search_res 
+255a c000a564 beq le_find_by_type_val_res_found_starting_handle ,le_send_att_find_primary_search_end_ending_handle_found 
+255b 202026d2 branch le_send_att_error_response_notfound 
+
+le_send_att_find_primary_search_end_start_handle_found:
+255c 6fe109bb fetch 2 ,mem_le_cur_uuid 
+255d 68494358 fetcht 2 ,mem_le_search_uuid 
+255e 98467c00 isub temp ,null 
+255f 2422a555 nbranch le_send_att_find_primary_search_loop1 ,zero 
+2560 70443701 jam le_find_by_type_val_res_found_starting_handle ,mem_le_search_res 
+2561 68490964 fetcht 2 ,mem_temp 
+2562 604909b6 storet 2 ,mem_le_cur_handle_start 
+2563 20202555 branch le_send_att_find_primary_search_loop1 
+
+le_send_att_find_primary_search_end_ending_handle_found:
+2564 6fe0c437 fetch 1 ,mem_le_search_res 
+2565 c0002555 beq le_find_by_type_val_res_not_found ,le_send_att_find_primary_search_loop1 
+2566 70443702 jam le_find_by_type_val_res_found_ending_handle ,mem_le_search_res 
+2567 68490964 fetcht 2 ,mem_temp 
+2568 184085ff increase -1 ,temp 
+2569 604909b8 storet 2 ,mem_le_cur_handle_end 
+
+le_send_att_find_primary_search_end:
+256a da200005 arg 5 ,rega 
+256b 204026de call le_fifo_malloc_tx_l2cap_gatt 
+256c 58000007 setarg attop_find_by_type_value_response 
+256d e7e08005 istore 1 ,contw 
+256e 6fe109b6 fetch 2 ,mem_le_cur_handle_start 
+256f e7e10005 istore 2 ,contw 
+2570 6fe109b8 fetch 2 ,mem_le_cur_handle_end 
+2571 e7e10005 istore 2 ,contw 
+2572 20600000 rtn 
+
+le_parse_att_read_by_type_request:
+2573 2040270d call le_get_search_handle_start_end_common 
+2574 2040271a call le_get_search_att_type 
+2575 20202576 branch le_send_att_read_by_type_response 
+
+le_send_att_read_by_type_response:
+2576 6849099e fetcht 2 ,mem_le_search_handle_start 
+2577 60490964 storet 2 ,mem_temp 
+2578 20402258 call le_init_attlist_search 
+2579 20402270 call le_att_get_handle_ptr2 
+257a 18c08dfe increase -2 ,contr 
+257b 18c27e00 copy contr ,pdata 
+257c 67e109b4 store 2 ,mem_le_cur_attlist_start_ptr 
+257d 684909a3 fetcht 2 ,mem_le_search_att_type 
+257e 58002a00 setarg uuid_chrctr_device_name 
+257f 98467c00 isub temp ,null 
+2580 2022a5dd branch le_send_att_read_by_type_res_device_name ,zero 
+2581 58002803 setarg uuid_gatt_characteristic 
+2582 98467c00 isub temp ,null 
+2583 2422a5c9 nbranch le_send_att_read_by_type_res_not_characteristic ,zero 
+2584 d9600002 arg 2 ,timeup 
+
+le_send_att_read_by_type_response_loop:
+2585 204026e4 call le_att_check_handle_end 
+2586 242125a6 nbranch le_send_att_read_by_type_response_end ,positive 
+2587 68490964 fetcht 2 ,mem_temp 
+2588 2040229b call le_att_get_handle_info_from_ptr 
+2589 243a25a6 nbranch le_send_att_read_by_type_response_end ,blank 
+258a 204026e8 call le_att_same_type 
+258b 2422a5a4 nbranch le_send_att_read_by_type_response_next_handle ,zero 
+258c 243425a8 nbranch le_send_att_read_by_type_res_found_next ,user 
+258d 78547c00 disable user 
+258e da200014 arg 20 ,rega 
+258f 204026de call le_fifo_malloc_tx_l2cap_gatt 
+2590 58000009 setarg attop_read_by_type_response 
+2591 e7e08005 istore 1 ,contw 
+2592 18a26000 copy contw ,alarm 
+2593 18a08a01 increase 1 ,contw 
+2594 204025b6 call le_send_att_read_by_type_write_properties 
+2595 204026e0 call le_att_next_handle 
+2596 2040229b call le_att_get_handle_info_from_ptr 
+2597 204025bd call le_send_att_read_by_type_write_uuid 
+2598 6fe089ba fetch 1 ,mem_le_cur_uuid_length 
+2599 1fe0a205 add pdata ,5 ,rega 
+259a e2208030 istorer rega ,1 ,alarm 
+259b 1a267c07 sub rega ,7 ,null 
+259c 2442fe66 ncall enable_user2 ,zero 
+259d 2042fe68 call disable_user2 ,zero 
+259e 20402712 call le_get_search_max_mtu_data 
+259f 9a26fc00 idiv rega 
+25a0 20407dfd call wait_div_end 
+25a1 18079600 quotient timeup 
+25a2 196097ff increase -1 ,timeup 
+25a3 2022a5a6 branch le_send_att_read_by_type_response_end ,zero 
+
+le_send_att_read_by_type_response_next_handle:
+25a4 204026e0 call le_att_next_handle 
+25a5 20202585 branch le_send_att_read_by_type_response_loop 
+
+le_send_att_read_by_type_response_end:
+25a6 203426d2 branch le_send_att_error_response_notfound ,user 
+25a7 20202701 branch le_send_auto_len_by_mem 
+
+le_send_att_read_by_type_res_found_next:
+25a8 204026f3 call le_store_att_record 
+25a9 204026e0 call le_att_next_handle 
+25aa 2040229b call le_att_get_handle_info_from_ptr 
+25ab 20402667 call le_send_att_read_by_type_res_check_pair_length_type 
+25ac 243a25a6 nbranch le_send_att_read_by_type_response_end ,blank 
+25ad 20407cf6 call get_contw 
+25ae 6fe10964 fetch 2 ,mem_temp 
+25af 1fe0ffff increase -1 ,pdata 
+25b0 e7e10005 istore 2 ,contw 
+25b1 204026fd call le_write_att_record_common 
+25b2 204025bd call le_send_att_read_by_type_write_uuid 
+25b3 196097ff increase -1 ,timeup 
+25b4 2022a5a6 branch le_send_att_read_by_type_response_end ,zero 
+25b5 202025a4 branch le_send_att_read_by_type_response_next_handle 
+
+le_send_att_read_by_type_write_properties:
+25b6 6fe10964 fetch 2 ,mem_temp 
+25b7 e7e10005 istore 2 ,contw 
+25b8 6fe089b3 fetch 1 ,mem_le_curr_att_len 
+25b9 1fe27200 copy pdata ,loopcnt 
+25ba 20407cf9 call get_contr 
+25bb 20407d60 call memcpy_fast 
+25bc 20207cfc branch store_contw 
+
+le_send_att_read_by_type_write_uuid:
+25bd 20407cf6 call get_contw 
+25be 6fe10964 fetch 2 ,mem_temp 
+25bf e7e10005 istore 2 ,contw 
+25c0 20407cfc call store_contw 
+25c1 6fe089ba fetch 1 ,mem_le_cur_uuid_length 
+25c2 1fe27200 copy pdata ,loopcnt 
+25c3 20407cf6 call get_contw 
+25c4 20407cf9 call get_contr 
+25c5 9f260c00 isub loopcnt ,contr 
+25c6 18c08dff increase -1 ,contr 
+25c7 20407d60 call memcpy_fast 
+25c8 20207cfc branch store_contw 
+
+le_send_att_read_by_type_res_not_characteristic:
+25c9 20402280 call le_att_get_short_uuid_ptr 
+25ca 203a26d2 branch le_send_att_error_response_notfound ,blank 
+25cb 18c22600 copy contr ,regc 
+25cc 18c08dfb increase -5 ,contr 
+25cd efe10006 ifetch 2 ,contr 
+25ce 67e10964 store 2 ,mem_temp 
+25cf da200014 arg 20 ,rega 
+25d0 204026de call le_fifo_malloc_tx_l2cap_gatt 
+25d1 58000009 setarg attop_read_by_type_response 
+25d2 e7e08005 istore 1 ,contw 
+25d3 efe08013 ifetch 1 ,regc 
+25d4 1fe27200 copy pdata ,loopcnt 
+25d5 1fe0fe02 increase 2 ,pdata 
+25d6 e7e08005 istore 1 ,contw 
+25d7 6fe10964 fetch 2 ,mem_temp 
+25d8 e7e10005 istore 2 ,contw 
+25d9 1a608c01 add regc ,1 ,contr 
+25da 20407d60 call memcpy_fast 
+25db 20407cfc call store_contw 
+25dc 20202701 branch le_send_auto_len_by_mem 
+
+le_send_att_read_by_type_res_device_name:
+25dd d8402a00 arg uuid_chrctr_device_name ,temp 
+25de 20402280 call le_att_get_short_uuid_ptr 
+25df 207a0000 rtn blank 
+25e0 18c08dfb increase -5 ,contr 
+25e1 efe10006 ifetch 2 ,contr 
+25e2 67e10964 store 2 ,mem_temp 
+25e3 da200014 arg 20 ,rega 
+25e4 204026de call le_fifo_malloc_tx_l2cap_gatt 
+25e5 58000009 setarg attop_read_by_type_response 
+25e6 e7e08005 istore 1 ,contw 
+25e7 6fe0c2f5 fetch 1 ,mem_le_name_len 
+25e8 1fe27200 copy pdata ,loopcnt 
+25e9 1fe0fe02 increase 2 ,pdata 
+25ea e7e08005 istore 1 ,contw 
+25eb 6fe10964 fetch 2 ,mem_temp 
+25ec e7e10005 istore 2 ,contw 
+25ed d8c042f6 arg mem_le_name ,contr 
+25ee 20407d60 call memcpy_fast 
+25ef 20407cfc call store_contw 
+25f0 20202701 branch le_send_auto_len_by_mem 
+
+le_parse_att_read_request:
+25f1 20402697 call le_check_encrypt_state 
+25f2 68494435 fetcht 2 ,mem_le_att_handle 
+25f3 6fe0c3be fetch 1 ,mem_le_configuration 
+25f4 c281a616 bbit1 bit_ble_read_auth ,le_send_att_read_response_check_auth 
+
+le_send_att_read_response:
+25f5 20402270 call le_att_get_handle_ptr2 
+25f6 2422a6d2 nbranch le_send_att_error_response_notfound ,zero 
+25f7 2054261c call le_send_att_read_response_check_handle ,user 
+25f8 20740000 rtn user 
+25f9 2040227d call le_att_get_handle_ptr_found 
+25fa 18c08dfe increase -2 ,contr 
+25fb efe10006 ifetch 2 ,contr 
+25fc d8402a00 arg uuid_chrctr_device_name ,temp 
+25fd 98467c00 isub temp ,null 
+25fe 2022a60c branch le_send_device_name ,zero 
+25ff efe08006 ifetch 1 ,contr 
+2600 1fe67c16 sub pdata ,22 ,null 
+2601 20212603 branch le_send_att_read_response_less ,positive 
+2602 18007e16 force 22 ,pdata 
+
+le_send_att_read_response_less:
+2603 1fe22600 copy pdata ,regc 
+2604 20407cff call store_contr 
+2605 1a60a201 add regc ,1 ,rega 
+2606 204026de call le_fifo_malloc_tx_l2cap_gatt 
+2607 5800000b setarg attop_read_response 
+2608 e7e08005 istore 1 ,contw 
+2609 1a627200 copy regc ,loopcnt 
+260a 20407cf9 call get_contr 
+260b 20207d6d branch memcpy 
+
+le_send_device_name:
+260c 20407cff call store_contr 
+260d 6fe0c2f5 fetch 1 ,mem_le_name_len 
+260e 1fe0a201 add pdata ,1 ,rega 
+260f 204026de call le_fifo_malloc_tx_l2cap_gatt 
+2610 5800000b setarg attop_read_response 
+2611 e7e08005 istore 1 ,contw 
+2612 6fe0c2f5 fetch 1 ,mem_le_name_len 
+2613 1fe27200 copy pdata ,loopcnt 
+2614 d8c042f6 arg mem_le_name ,contr 
+2615 20207d6d branch memcpy 
+
+le_send_att_read_response_check_auth:
+2616 6fe143cf fetch 2 ,mem_le_pairing_handle 
+2617 98467c00 isub temp ,null 
+2618 2422a5f5 nbranch le_send_att_read_response ,zero 
+2619 243425f5 nbranch le_send_att_read_response ,user 
+
+le_send_att_read_response_error_insufficient_auth:
+261a 7002d805 jam att_err_insufficient_authentication ,mem_le_err_code 
+261b 202026d3 branch le_send_att_error_response 
+
+le_send_att_read_response_check_handle:
+261c 18c08dfe increase -2 ,contr 
+261d efe10006 ifetch 2 ,contr 
+261e c287261a bbit1 bit_of_att_handle_read_authenticated ,le_send_att_read_response_error_insufficient_auth 
+261f 20207e64 branch disable_user 
+
+le_parse_att_read_blob_request:
+2620 efe10006 ifetch 2 ,contr 
+2621 67e109a2 store 2 ,mem_le_att_offset 
+
+le_send_att_read_blob_response:
+2622 da200014 arg 20 ,rega 
+2623 204026de call le_fifo_malloc_tx_l2cap_gatt 
+2624 5800000d setarg attop_read_blob_response 
+2625 e7e08005 istore 1 ,contw 
+2626 6fe109a2 fetch 2 ,mem_le_att_offset 
+2627 98002200 iforce rega 
+2628 68494435 fetcht 2 ,mem_le_att_handle 
+2629 2040226d call le_att_get_handle_ptr 
+262a 203a26d2 branch le_send_att_error_response_notfound ,blank 
+262b efe08006 ifetch 1 ,contr 
+262c 9a267200 isub rega ,loopcnt 
+262d 242126d2 nbranch le_send_att_error_response_notfound ,positive 
+262e 1f267c16 sub loopcnt ,22 ,null 
+262f 20212631 branch le_send_att_read_blob_response_less ,positive 
+2630 18007216 force 22 ,loopcnt 
+
+le_send_att_read_blob_response_less:
+2631 1a227e00 deposit rega 
+2632 98c08c00 iadd contr ,contr 
+2633 20407d60 call memcpy_fast 
+2634 20407cfc call store_contw 
+2635 20202701 branch le_send_auto_len_by_mem 
+
+le_parse_att_read_by_group_type_request:
+2636 2040270d call le_get_search_handle_start_end_common 
+2637 2040271a call le_get_search_att_type 
+2638 20202639 branch le_send_att_read_by_group_type_response 
+
+le_send_att_read_by_group_type_response:
+2639 d9600002 arg 2 ,timeup 
+263a 6849099e fetcht 2 ,mem_le_search_handle_start 
+263b 60490964 storet 2 ,mem_temp 
+263c 20402270 call le_att_get_handle_ptr2 
+263d 18c08dfe increase -2 ,contr 
+263e 18c27e00 copy contr ,pdata 
+263f 67e109b4 store 2 ,mem_le_cur_attlist_start_ptr 
+
+le_send_att_read_by_group_type_response_loop:
+2640 204026e4 call le_att_check_handle_end 
+2641 2421266f nbranch le_send_att_read_by_group_type_end0 ,positive 
+2642 68490964 fetcht 2 ,mem_temp 
+2643 2040229b call le_att_get_handle_info_from_ptr 
+2644 243a2672 nbranch le_send_att_read_by_group_type_end1 ,blank 
+2645 204026e8 call le_att_same_type 
+2646 2422a665 nbranch le_send_att_read_by_group_type_next_handle ,zero 
+2647 19627e00 copy timeup ,pdata 
+2648 c0002672 beq 0 ,le_send_att_read_by_group_type_end1 
+2649 2434265b nbranch le_send_att_read_by_group_type_store_write_record ,user 
+264a 78547c00 disable user 
+264b da200014 arg 20 ,rega 
+264c 204026de call le_fifo_malloc_tx_l2cap_gatt 
+264d 58000011 setarg attop_read_by_group_type_response 
+264e e7e08005 istore 1 ,contw 
+264f 6fe089b3 fetch 1 ,mem_le_curr_att_len 
+2650 1fe0a204 add pdata ,4 ,rega 
+2651 e2208005 istorer rega ,1 ,contw 
+2652 20407cfc call store_contw 
+2653 1a267c06 sub rega ,6 ,null 
+2654 2442fe66 ncall enable_user2 ,zero 
+2655 2042fe68 call disable_user2 ,zero 
+2656 20402712 call le_get_search_max_mtu_data 
+2657 9a26fc00 idiv rega 
+2658 20407dfd call wait_div_end 
+2659 18079600 quotient timeup 
+265a 20202661 branch le_send_att_read_by_group_type_store_record 
+
+le_send_att_read_by_group_type_store_write_record:
+265b 20402669 call le_send_att_read_by_group_type_check_pair_length_type 
+265c 243a2672 nbranch le_send_att_read_by_group_type_end1 ,blank 
+265d 6fe10964 fetch 2 ,mem_temp 
+265e 1fe0ffff increase -1 ,pdata 
+265f 67e109b8 store 2 ,mem_le_cur_handle_end 
+2660 204026f8 call le_write_att_record 
+
+le_send_att_read_by_group_type_store_record:
+2661 6fe10964 fetch 2 ,mem_temp 
+2662 67e109b6 store 2 ,mem_le_cur_handle_start 
+2663 204026f3 call le_store_att_record 
+2664 196097ff increase -1 ,timeup 
+
+le_send_att_read_by_group_type_next_handle:
+2665 204026e0 call le_att_next_handle 
+2666 20202640 branch le_send_att_read_by_group_type_response_loop 
+
+le_send_att_read_by_type_res_check_pair_length_type:
+2667 6fe089ba fetch 1 ,mem_le_cur_uuid_length 
+2668 2020266a branch le_send_att_read_by_group_type_check_pair_length_type + 1 
+
+le_send_att_read_by_group_type_check_pair_length_type:
+2669 6fe089b3 fetch 1 ,mem_le_curr_att_len 
+266a 2036266d branch le_send_att_read_by_group_type_check_pair_length_type_16byte ,user2 
+266b 1fe0fffe increase -2 ,pdata 
+266c 20600000 rtn 
+
+le_send_att_read_by_group_type_check_pair_length_type_16byte:
+266d 1fe0fff0 increase -16 ,pdata 
+266e 20600000 rtn 
+
+le_send_att_read_by_group_type_end0:
+266f 6fe10964 fetch 2 ,mem_temp 
+2670 67e109b8 store 2 ,mem_le_cur_handle_end 
+2671 20202676 branch le_send_att_read_by_group_type_end_common 
+
+le_send_att_read_by_group_type_end1:
+2672 6fe10964 fetch 2 ,mem_temp 
+2673 1fe0ffff increase -1 ,pdata 
+2674 67e109b8 store 2 ,mem_le_cur_handle_end 
+2675 20202676 branch le_send_att_read_by_group_type_end_common 
+
+le_send_att_read_by_group_type_end_common:
+2676 203426d2 branch le_send_att_error_response_notfound ,user 
+2677 204026f8 call le_write_att_record 
+2678 20202701 branch le_send_auto_len_by_mem 
+
+le_parse_att_write_request:
+2679 18c22200 copy contr ,rega 
+267a 6fe143d2 fetch 2 ,mem_le_l2cap_size 
+267b 1fe0a5fd add pdata ,-3 ,regb 
+267c 20402230 call le_writeatt_cb 
+
+le_send_att_write_response_check_auth:
+267d 20402697 call le_check_encrypt_state 
+267e 68494435 fetcht 2 ,mem_le_att_handle 
+267f 20402270 call le_att_get_handle_ptr2 
+2680 2422a695 nbranch le_send_att_write_response_error_invalid_handle ,zero 
+2681 20542691 call le_send_att_write_response_check_handle ,user 
+2682 20740000 rtn user 
+2683 6fe0c3be fetch 1 ,mem_le_configuration 
+2684 c302268c bbit0 bit_ble_write_auth ,le_send_att_write_response 
+2685 68494435 fetcht 2 ,mem_le_att_handle 
+2686 6fe143cf fetch 2 ,mem_le_pairing_handle 
+2687 98467c00 isub temp ,null 
+2688 2422a68c nbranch le_send_att_write_response ,zero 
+2689 20402697 call le_check_encrypt_state 
+268a 2434268c nbranch le_send_att_write_response ,user 
+268b 2020261a branch le_send_att_read_response_error_insufficient_auth 
+
+le_send_att_write_response:
+268c 18002201 force 1 ,rega 
+268d 204026de call le_fifo_malloc_tx_l2cap_gatt 
+268e 58000013 setarg attop_write_response 
+268f e7e08005 istore 1 ,contw 
+2690 20600000 rtn 
+
+le_send_att_write_response_check_handle:
+2691 18c08dfe increase -2 ,contr 
+2692 efe10006 ifetch 2 ,contr 
+2693 c287a61a bbit1 bit_of_att_handle_write_authenticated ,le_send_att_read_response_error_insufficient_auth 
+2694 20207e64 branch disable_user 
+
+le_send_att_write_response_error_invalid_handle:
+2695 7002d801 jam att_err_invalid_handle ,mem_le_err_code 
+2696 202026d3 branch le_send_att_error_response 
+
+le_check_encrypt_state:
+2697 20407e64 call disable_user 
+2698 6fe0c39b fetch 1 ,mem_le_pairing_mode 
+2699 c1000000 rtneq le_pairing_mode_none 
+269a 6fe0c040 fetch 1 ,mem_context 
+269b c3820000 rtnbit1 lestate_encryption 
+269c 20207e62 branch enable_user 
+
+le_parse_att_prepare_write_request:
+269d 18c0a202 add contr ,2 ,rega 
+269e 6fe143d2 fetch 2 ,mem_le_l2cap_size 
+269f 1fe0a5fb add pdata ,-5 ,regb 
+26a0 20402230 call le_writeatt_cb 
+26a1 202026a2 branch le_send_att_prepare_write_response 
+
+le_send_att_prepare_write_response:
+26a2 6fe143d2 fetch 2 ,mem_le_l2cap_size 
+26a3 1fe22200 copy pdata ,rega 
+26a4 204026de call le_fifo_malloc_tx_l2cap_gatt 
+26a5 58000017 setarg attop_prepare_write_response 
+26a6 e7e08005 istore 1 ,contw 
+26a7 6fe14435 fetch 2 ,mem_le_att_handle 
+26a8 e7e10005 istore 2 ,contw 
+26a9 6fe143d2 fetch 2 ,mem_le_l2cap_size 
+26aa 1fe0f3fb add pdata ,-5 ,loopcnt 
+26ab 6fe143d6 fetch 2 ,mem_le_payload_ptr 
+26ac 1fe08c07 add pdata ,7 ,contr 
+26ad efe10006 ifetch 2 ,contr 
+26ae e7e10005 istore 2 ,contw 
+26af 20207d60 branch memcpy_fast 
+
+le_parse_att_execute_write_request:
+
+le_send_att_execute_write_response:
+26b0 18002201 force 1 ,rega 
+26b1 204026de call le_fifo_malloc_tx_l2cap_gatt 
+26b2 58000019 setarg attop_execute_write_response 
+26b3 e7e08005 istore 1 ,contw 
+26b4 20600000 rtn 
+
+le_parse_handle_value_confirmation:
+26b5 6fe0c433 fetch 1 ,mem_le_l2cap_att_states 
+26b6 793ffe00 set0 ble_l2cap_recv_confirmation_packet ,pdata 
+26b7 67e0c433 store 1 ,mem_le_l2cap_att_states 
+26b8 20600000 rtn 
+
+le_parse_att_write_command:
+26b9 18c22200 copy contr ,rega 
+26ba 6fe143d2 fetch 2 ,mem_le_l2cap_size 
+26bb 1fe0a5fd add pdata ,-3 ,regb 
+26bc 20202230 branch le_writeatt_cb 
+
+le_att_malloc_tx_notify:
+26bd 18422600 copy temp ,regc 
+26be 1a20a203 increase 3 ,rega 
+26bf 204026de call le_fifo_malloc_tx_l2cap_gatt 
+26c0 1a20a3fd increase -3 ,rega 
+26c1 5800001b setarg attop_handle_value_notification 
+26c2 e7e08005 istore 1 ,contw 
+26c3 1a620400 copy regc ,temp 
+26c4 e0410005 istoret 2 ,contw 
+26c5 20600000 rtn 
+
+le_att_malloc_tx_indication:
+26c6 6fe0c433 fetch 1 ,mem_le_l2cap_att_states 
+26c7 79207e00 set1 ble_l2cap_send_indication_packet ,pdata 
+26c8 67e0c433 store 1 ,mem_le_l2cap_att_states 
+26c9 18422600 copy temp ,regc 
+26ca 1a20a203 increase 3 ,rega 
+26cb 204026de call le_fifo_malloc_tx_l2cap_gatt 
+26cc 1a20a3fd increase -3 ,rega 
+26cd 5800001d setarg attop_handle_value_indication 
+26ce e7e08005 istore 1 ,contw 
+26cf 1a620400 copy regc ,temp 
+26d0 e0410005 istoret 2 ,contw 
+26d1 20600000 rtn 
+
+le_send_att_error_response_notfound:
+26d2 7002d80a jam att_err_attribute_not_found ,mem_le_err_code 
+
+le_send_att_error_response:
+26d3 18002205 force 5 ,rega 
+26d4 204026de call le_fifo_malloc_tx_l2cap_gatt 
+26d5 58000001 setarg attop_error_response 
+26d6 e7e08005 istore 1 ,contw 
+26d7 6fe0c434 fetch 1 ,mem_le_att_opcode 
+26d8 e7e08005 istore 1 ,contw 
+26d9 6fe14435 fetch 2 ,mem_le_att_handle 
+26da e7e10005 istore 2 ,contw 
+26db 6fe082d8 fetch 1 ,mem_le_err_code 
+26dc e7e08005 istore 1 ,contw 
+26dd 20600000 rtn 
+
+le_fifo_malloc_tx_l2cap_gatt:
+26de 18002404 force le_l2cap_cid_att ,regb 
+26df 20202358 branch le_fifo_malloc_tx_l2cap 
+
+le_att_next_handle:
+26e0 68490964 fetcht 2 ,mem_temp 
+26e1 18408401 increase 1 ,temp 
+26e2 60490964 storet 2 ,mem_temp 
+26e3 20600000 rtn 
+
+le_att_check_handle_end:
+26e4 68490964 fetcht 2 ,mem_temp 
+26e5 6fe109a0 fetch 2 ,mem_le_search_handle_end 
+26e6 98467c00 isub temp ,null 
+26e7 20600000 rtn 
+
+le_att_same_type:
+26e8 684889a2 fetcht 1 ,mem_le_search_att_type_length 
+26e9 da2009a3 arg mem_le_search_att_type ,rega 
+
+le_att_check_same_common:
+26ea 6fe089ba fetch 1 ,mem_le_cur_uuid_length 
+26eb 1fe27200 copy pdata ,loopcnt 
+26ec 98467c00 isub temp ,null 
+26ed 24628000 nrtn zero 
+26ee da4009bb arg mem_le_cur_uuid ,regb 
+26ef 20207dff branch string_compare 
+
+le_att_same_uuid:
+26f0 6848c357 fetcht 1 ,mem_le_search_uuid_length 
+26f1 da204358 arg mem_le_search_uuid ,rega 
+26f2 202026ea branch le_att_check_same_common 
+
+le_store_att_record:
+26f3 6fe089b3 fetch 1 ,mem_le_curr_att_len 
+26f4 67e08a01 store 1 ,mem_tmp_buffer 
+26f5 1fe27200 copy pdata ,loopcnt 
+26f6 20407cf9 call get_contr 
+26f7 20207d60 branch memcpy_fast 
+
+le_write_att_record:
+26f8 20407cf6 call get_contw 
+26f9 6fe109b6 fetch 2 ,mem_le_cur_handle_start 
+26fa e7e10005 istore 2 ,contw 
+26fb 6fe109b8 fetch 2 ,mem_le_cur_handle_end 
+26fc e7e10005 istore 2 ,contw 
+
+le_write_att_record_common:
+26fd 6fe08a01 fetch 1 ,mem_tmp_buffer 
+26fe 1fe27200 copy pdata ,loopcnt 
+26ff 20407d60 call memcpy_fast 
+2700 20207cfc branch store_contw 
+
+le_send_auto_len_by_mem:
+2701 20407cf6 call get_contw 
+2702 2040237b call le_fifo_get_last_att_ptr 
+2703 18a27e00 copy contw ,pdata 
+2704 98c62200 isub contr ,rega 
+2705 2040237e call le_fifo_get_last_l2cap_ptr 
+2706 1a227e00 copy rega ,pdata 
+2707 e7e10006 istore 2 ,contr 
+2708 1a20a204 increase 4 ,rega 
+2709 20402370 call le_fifo_get_last_tx_ptr 
+270a 1a227e00 copy rega ,pdata 
+270b e7e08006 istore 1 ,contr 
+270c 20600000 rtn 
+
+le_get_search_handle_start_end_common:
+270d 1fecfe00 rshift8 pdata ,pdata 
+270e 67e1099e store 2 ,mem_le_search_handle_start 
+270f efe10006 ifetch 2 ,contr 
+2710 67e109a0 store 2 ,mem_le_search_handle_end 
+2711 20600000 rtn 
+
+le_get_search_max_mtu_data:
+2712 6fe14380 fetch 2 ,mem_le_remote_mtu 
+2713 1fe0fffe increase -2 ,pdata 
+2714 6849437e fetcht 2 ,mem_le_local_mtu 
+2715 184085fe increase -2 ,temp 
+2716 20407e58 call not_greater_than 
+2717 d84000f0 arg 240 ,temp 
+2718 20407e58 call not_greater_than 
+2719 20600000 rtn 
+
+le_get_search_att_type:
+271a 20407cff call store_contr 
+271b d8a009a2 arg mem_le_search_att_type_length ,contw 
+
+le_get_search_common:
+271c 6fe143d2 fetch 2 ,mem_le_l2cap_size 
+271d 1fe0fffb increase -5 ,pdata 
+
+le_get_search_common2:
+271e e7e08005 istore 1 ,contw 
+271f 1fe27200 copy pdata ,loopcnt 
+2720 20407cf9 call get_contr 
+2721 20207d60 branch memcpy_fast 
+
+le_parse_writing_attribute_start:
+2722 6fe1016f fetch 2 ,mem_le_rxbuf_data_att_cid 
+2723 c1820000 rtnne le_l2cap_cid_att 
+2724 6fe0c433 fetch 1 ,mem_le_l2cap_att_states 
+2725 79207e01 set1 ble_l2cap_deal_with_continue_packet ,pdata 
+2726 67e0c433 store 1 ,mem_le_l2cap_att_states 
+2727 6fe18171 fetch 3 ,mem_le_rxbuf_data_att_opcode 
+2728 67e1c434 store 3 ,mem_le_att_opcode 
+2729 7920000f set1 mark_old_packet ,mark 
+272a c009273d beq attop_write_request ,le_parse_attribute_write_request 
+272b c0292742 beq attop_write_command ,le_parse_attribute_write_command 
+272c c00c26b0 beq attop_execute_write_request ,le_parse_att_execute_write_request 
+272d c00124f4 beq attop_exchange_mtu_request ,le_parse_att_exchange_mtu_request 
+272e c00f26b5 beq attop_handle_value_confirmation ,le_parse_handle_value_confirmation 
+272f 793f800f set0 mark_old_packet ,mark 
+
+le_clear_l2cap_att_states_deal_with_contiune_packet:
+2730 6fe0c433 fetch 1 ,mem_le_l2cap_att_states 
+2731 793ffe01 set0 ble_l2cap_deal_with_continue_packet ,pdata 
+2732 67e0c433 store 1 ,mem_le_l2cap_att_states 
+2733 20600000 rtn 
+
+le_parse_writing_attribute_continue:
+2734 6fe0c433 fetch 1 ,mem_le_l2cap_att_states 
+2735 c4008000 rtnbit0 ble_l2cap_deal_with_continue_packet 
+2736 7920000f set1 mark_old_packet ,mark 
+2737 2040274c call le_parse_l2cap_continue_common 
+2738 20402752 call le_parse_attribute_check_complete_packet 
+2739 20542730 call le_clear_l2cap_att_states_deal_with_contiune_packet ,user 
+273a 6fe0c434 fetch 1 ,mem_le_att_opcode 
+273b c009267d beq attop_write_request ,le_send_att_write_response_check_auth 
+273c 20600000 rtn 
+
+le_parse_attribute_write_request:
+273d 20402742 call le_parse_attribute_write_command 
+273e 2020273f branch le_send_attribute_write_response_check_auth 
+
+le_send_attribute_write_response_check_auth:
+273f 20402752 call le_parse_attribute_check_complete_packet 
+2740 24740000 nrtn user 
+2741 2020267d branch le_send_att_write_response_check_auth 
+
+le_parse_attribute_write_command:
+2742 20402745 call le_parse_attribute_check_complete_packet_init 
+2743 da200174 arg mem_le_rxbuf_data_att_write_payload ,rega 
+2744 20202230 branch le_writeatt_cb 
+
+le_parse_attribute_check_complete_packet_init:
+2745 6fe0816c fetch 1 ,mem_le_rxbuf_data_att_write_length 
+2746 1fe0a5f9 add pdata ,-7 ,regb 
+2747 1fe0fffc increase -4 ,pdata 
+2748 67e143d4 store 2 ,mem_le_packet_len_recved 
+2749 6849016d fetcht 2 ,mem_le_rxbuf_data_att_write_l2cap_length 
+274a 604943d2 storet 2 ,mem_le_l2cap_size 
+274b 20600000 rtn 
+
+le_parse_l2cap_continue_common:
+274c 6a40816c fetchr regb ,1 ,mem_le_rxbuf_data_continue_length 
+274d 6fe143d4 fetch 2 ,mem_le_packet_len_recved 
+274e 9a408400 iadd regb ,temp 
+274f 604943d4 storet 2 ,mem_le_packet_len_recved 
+2750 da20016d arg mem_le_rxbuf_data_continue_payload ,rega 
+2751 20202230 branch le_writeatt_cb 
+
+le_parse_attribute_check_complete_packet:
+2752 20407e64 call disable_user 
+2753 6fe143d4 fetch 2 ,mem_le_packet_len_recved 
+2754 684943d2 fetcht 2 ,mem_le_l2cap_size 
+2755 98467c00 isub temp ,null 
+2756 24628000 nrtn zero 
+2757 20207e62 branch enable_user 
+
+le_l2cap_att_receive_data_check_wechat_air_sync_protocol:
+2758 20407e62 call enable_user 
+2759 6fe14438 fetch 2 ,mem_le_wechat_air_sync_ptr 
+275a 207a0000 rtn blank 
+275b da60275d arg le_l2cap_att_receive_data_deal_wechat_air_sync_protocol ,regc 
+275c 202027f8 branch wechat_air_sync_calc_function 
+
+le_l2cap_att_receive_data_deal_wechat_air_sync_protocol:
+275d 68494435 fetcht 2 ,mem_le_att_handle 
+275e 6fe089b0 fetch 1 ,mem_wechat_indication_handle 
+275f 1fe0fe01 pincrease 1 
+2760 98467c00 isub temp ,null 
+2761 2022a766 branch wechat_air_sync_enable_indicate_chara ,zero 
+2762 6fe089b1 fetch 1 ,mem_wechat_write_handle 
+2763 98467c00 isub temp ,null 
+2764 2022a76c branch wechat_air_sync_receive_wechat_data ,zero 
+2765 20207e64 branch disable_user 
+
+wechat_air_sync_enable_indicate_chara:
+2766 204027ca call wechat_air_sync_reset_nseq 
+
+wechat_air_sync_send_request_auth:
+2767 204027cd call wechat_air_sync_init_authreq_base_request 
+2768 da20099e arg mem_wechat_authreq_base_request ,rega 
+2769 df200012 arg eci_req_auth_message_length ,loopcnt 
+276a d8401127 arg eci_req_auth ,temp 
+276b 202027b3 branch wechat_air_sync_send_message 
+
+wechat_air_sync_receive_wechat_data:
+276c 6fe089c2 fetch 1 ,mem_wechat_receive_push_data 
+276d c000a772 beq 1 ,wechat_air_sync_receive_wechat_data_contiune_packet 
+276e efe10011 ifetch 2 ,rega 
+276f d84001fe arg wechat_rx_head ,temp 
+2770 98467c00 isub temp ,null 
+2771 2022a77d branch wechat_air_sync_receive_wechat_data_head_packet ,zero 
+
+wechat_air_sync_receive_wechat_data_contiune_packet:
+2772 6fe109be fetch 2 ,mem_wechat_rx_len 
+2773 9a40fe00 iadd regb ,pdata 
+2774 67e109be store 2 ,mem_wechat_rx_len 
+2775 6fe109c0 fetch 2 ,mem_wechat_rx_address 
+2776 1fe20a00 copy pdata ,contw 
+2777 1a220c00 copy rega ,contr 
+2778 1a427200 copy regb ,loopcnt 
+2779 20407d60 call memcpy_fast 
+277a 18a27e00 copy contw ,pdata 
+277b 67e109c0 store 2 ,mem_wechat_rx_address 
+277c 2020278e branch wechat_air_sync_receive_wechat_packet_complete 
+
+wechat_air_sync_receive_wechat_data_head_packet:
+277d 6fe109b4 fetch 2 ,mem_wechat_rx_buffer_ptr 
+277e 1fe20a00 copy pdata ,contw 
+277f 1a220c00 copy rega ,contr 
+2780 1a427200 copy regb ,loopcnt 
+2781 20407d60 call memcpy_fast 
+2782 18a27e00 copy contw ,pdata 
+2783 67e109c0 store 2 ,mem_wechat_rx_address 
+2784 624109be storer regb ,2 ,mem_wechat_rx_len 
+2785 6a6109b4 fetchr regc ,2 ,mem_wechat_rx_buffer_ptr 
+2786 1a608c04 add regc ,wechat_protocol_message_n_cmd_id ,contr 
+2787 efe10006 ifetch 2 ,contr 
+2788 d8403175 arg eci_push_receive_data ,temp 
+2789 98467c00 isub temp ,null 
+278a 2042a78c call wechat_air_sync_receive_wechat_push_data ,zero 
+278b 2020278e branch wechat_air_sync_receive_wechat_packet_complete 
+
+wechat_air_sync_receive_wechat_push_data:
+278c 7009c201 jam 1 ,mem_wechat_receive_push_data 
+278d 20600000 rtn 
+
+wechat_air_sync_receive_wechat_packet_complete:
+278e 6fe109be fetch 2 ,mem_wechat_rx_len 
+278f 6a6109b4 fetchr regc ,2 ,mem_wechat_rx_buffer_ptr 
+2790 1a608c02 add regc ,wechat_protocol_message_n_length ,contr 
+2791 e8410006 ifetcht 2 ,contr 
+2792 18508400 byteswap temp ,temp 
+2793 98467c00 isub temp ,null 
+2794 24610000 nrtn positive 
+2795 7009c200 jam 0 ,mem_wechat_receive_push_data 
+2796 6a6109b4 fetchr regc ,2 ,mem_wechat_rx_buffer_ptr 
+2797 1a608c04 add regc ,wechat_protocol_message_n_cmd_id ,contr 
+2798 efe10006 ifetch 2 ,contr 
+2799 d840214e arg eci_response_auth ,temp 
+279a 98467c00 isub temp ,null 
+279b 2022a7a0 branch wechat_air_sync_receive_wechat_data_auth_respone ,zero 
+279c d8403175 arg eci_push_receive_data ,temp 
+279d 98467c00 isub temp ,null 
+279e 2022a7a5 branch wechat_air_sync_receive_wechat_data_push_receive_data ,zero 
+279f 20600000 rtn 
+
+wechat_air_sync_receive_wechat_data_auth_respone:
+
+wechat_air_sync_wechat_send_request_init:
+27a0 204027cd call wechat_air_sync_init_authreq_base_request 
+27a1 da20099e arg mem_wechat_initreq_base_request ,rega 
+27a2 df200002 arg eci_req_init_message_length ,loopcnt 
+27a3 d8401327 arg eci_req_init ,temp 
+27a4 202027b3 branch wechat_air_sync_send_message 
+
+wechat_air_sync_receive_wechat_data_push_receive_data:
+27a5 6fe109b6 fetch 2 ,mem_wechat_rx_push_data_cb 
+27a6 20207e13 branch callback_func 
+
+wechat_air_sync_check_push_data_struct:
+27a7 20407e64 call disable_user 
+27a8 6a6109b4 fetchr regc ,2 ,mem_wechat_rx_buffer_ptr 
+27a9 1a608c08 add regc ,wechat_protocol_message_payload ,contr 
+27aa efe10006 ifetch 2 ,contr 
+27ab c1850000 rtnne tag_recvdatapush_basepush 
+27ac efe08006 ifetch 1 ,contr 
+27ad c1890000 rtnne tag_recvdatapush_data 
+27ae efe08006 ifetch 1 ,contr 
+27af 207a0000 rtn blank 
+27b0 1fe27200 copy pdata ,loopcnt 
+27b1 18c22600 copy contr ,regc 
+27b2 20207e62 branch enable_user 
+
+wechat_air_sync_send_message:
+27b3 20407e66 call enable_user2 
+
+wechat_air_sync_send_message_without_payload:
+27b4 6fe109b2 fetch 2 ,mem_wechat_tx_buffer_ptr 
+27b5 67e109bc store 2 ,mem_wechat_tx_address 
+27b6 1fe20a00 copy pdata ,contw 
+27b7 580000fe setarg wechat_head_magic_number 
+27b8 e7e08005 istore 1 ,contw 
+27b9 58000001 setarg wecaht_head_version 
+27ba e7e08005 istore 1 ,contw 
+27bb 1f20b008 add loopcnt ,8 ,regd 
+27bc 1b10fe00 byteswap regd ,pdata 
+27bd e7e10005 istore 2 ,contw 
+27be e0410005 istoret 2 ,contw 
+27bf 684909b8 fetcht 2 ,mem_wechat_tx_nseq 
+27c0 e0410005 istoret 2 ,contw 
+27c1 18a22600 copy contw ,regc 
+27c2 1a220c00 copy rega ,contr 
+27c3 20567d60 call memcpy_fast ,user2 
+27c4 630109ba storer regd ,2 ,mem_wechat_tx_len 
+27c5 202027c6 branch wechat_air_sync_update_nseq 
+
+wechat_air_sync_update_nseq:
+27c6 1850fe00 byteswap temp ,pdata 
+27c7 1fe0fe01 pincrease 1 
+27c8 1ff0fe00 byteswap pdata ,pdata 
+27c9 243a27cb nbranch wechat_air_sync_store_nseq ,blank 
+
+wechat_air_sync_reset_nseq:
+27ca 58000100 setarg 0x0100 
+
+wechat_air_sync_store_nseq:
+27cb 67e109b8 store 2 ,mem_wechat_tx_nseq 
+27cc 20600000 rtn 
+
+wechat_air_sync_init_authreq_base_request:
+27cd 5800000a setarg 0x000a 
+27ce 67e1099e store 2 ,mem_wechat_authreq_base_request 
+27cf 58048084 setarg 0x048084 
+27d0 1fed7e00 lshift8 pdata ,pdata 
+27d1 1fe1fe18 or pdata ,0x18 ,pdata 
+27d2 67e209a0 store 4 ,mem_wechat_authreq_protocol_version 
+27d3 58000120 setarg 0x0120 
+27d4 67e109a4 store 2 ,mem_wechat_authreq_auth_protocol 
+27d5 58000228 setarg 0x0228 
+27d6 67e109a6 store 2 ,mem_wechat_authreq_eam_mac_no_encrypt 
+27d7 5800063a setarg 0x063a 
+27d8 67e109a8 store 2 ,mem_wechat_authreq_mac_address 
+27d9 6fe34378 fetch 6 ,mem_le_lap 
+27da 20407d54 call inverse_data_6byte 
+27db 67e309aa store 6 ,mem_wechat_authreq_device_address 
+27dc 20600000 rtn 
+
+wechat_air_sync_ble_transmit_wechat_message:
+27dd 6fe0c433 fetch 1 ,mem_le_l2cap_att_states 
+27de c3800000 rtnbit1 ble_l2cap_recv_confirmation_packet 
+27df 20402382 call le_fifo_check_nearly_full 
+27e0 247a0000 nrtn blank 
+27e1 6fe14438 fetch 2 ,mem_le_wechat_air_sync_ptr 
+27e2 207a0000 rtn blank 
+27e3 da6027e5 arg wechat_air_sync_ble_send_wechat_message ,regc 
+27e4 202027f8 branch wechat_air_sync_calc_function 
+
+wechat_air_sync_ble_send_wechat_message:
+27e5 20403a2e call module_get_le_remote_mtu 
+27e6 6fe109ba fetch 2 ,mem_wechat_tx_len 
+27e7 207a0000 rtn blank 
+27e8 1840fffd add temp ,-3 ,pdata 
+27e9 684909ba fetcht 2 ,mem_wechat_tx_len 
+27ea 20407e58 call not_greater_than 
+27eb 1fe22200 copy pdata ,rega 
+27ec 18427e00 copy temp ,pdata 
+27ed 9a267e00 isub rega ,pdata 
+27ee 67e109ba store 2 ,mem_wechat_tx_len 
+27ef 684889b0 fetcht 1 ,mem_wechat_indication_handle 
+27f0 204026c6 call le_att_malloc_tx_indication 
+27f1 6fe109bc fetch 2 ,mem_wechat_tx_address 
+27f2 1fe20c00 copy pdata ,contr 
+27f3 1a227200 copy rega ,loopcnt 
+27f4 20407d60 call memcpy_fast 
+27f5 18c27e00 copy contr ,pdata 
+27f6 67e109bc store 2 ,mem_wechat_tx_address 
+27f7 20600000 rtn 
+
+wechat_air_sync_calc_function:
+27f8 204027fc call wechat_air_sync_load_in_local_buffer 
+27f9 1a627e00 copy regc ,pdata 
+27fa 20407e13 call callback_func 
+27fb 20202802 branch wechat_air_sync_store_in_global_buffer 
+
+wechat_air_sync_load_in_local_buffer:
+27fc 6fe14438 fetch 2 ,mem_le_wechat_air_sync_ptr 
+27fd 207a0000 rtn blank 
+27fe 1fe20c00 copy pdata ,contr 
+27ff df200011 arg wechat_air_sync_struct_size ,loopcnt 
+2800 d8a009b0 arg mem_wechat_indication_handle ,contw 
+2801 20207d60 branch memcpy_fast 
+
+wechat_air_sync_store_in_global_buffer:
+2802 6fe14438 fetch 2 ,mem_le_wechat_air_sync_ptr 
+2803 207a0000 rtn blank 
+2804 1fe20a00 copy pdata ,contw 
+2805 df200011 arg wechat_air_sync_struct_size ,loopcnt 
+2806 d8c009b0 arg mem_wechat_indication_handle ,contr 
+2807 20207d60 branch memcpy_fast 
+
+wechat_air_sync_send_wechat_packet:
+2808 20407e62 call enable_user 
+2809 6fe14438 fetch 2 ,mem_le_wechat_air_sync_ptr 
+280a 207a0000 rtn blank 
+280b da60280d arg wechat_air_sync_send_wechat_packet_cb ,regc 
+280c 202027f8 branch wechat_air_sync_calc_function 
+
+wechat_air_sync_send_wechat_packet_cb:
+280d 6fe109ba fetch 2 ,mem_wechat_tx_len 
+280e 247a0000 nrtn blank 
+280f 20407e64 call disable_user 
+2810 20407e68 call disable_user2 
+2811 1a40f206 add regb ,6 ,loopcnt 
+2812 d8401227 arg eci_req_send_data ,temp 
+2813 204027b4 call wechat_air_sync_send_message_without_payload 
+2814 1a620a00 copy regc ,contw 
+2815 5812000a setarg 0x12000a 
+2816 e7e18005 istore 3 ,contw 
+2817 e2408005 istorer regb ,1 ,contw 
+2818 1a220c00 copy rega ,contr 
+2819 1a427200 copy regb ,loopcnt 
+281a 20407d60 call memcpy_fast 
+281b 58000018 setarg 0x0018 
+281c e7e10005 istore 2 ,contw 
+281d 20600000 rtn 
+
+le_parse_signaling:
+281e efe08006 ifetch 1 ,contr 
+281f e8408006 ifetcht 1 ,contr 
+2820 e8410006 ifetcht 2 ,contr 
+2821 c009a823 beq l2cap_connection_parameter_update_response ,le_l2cap_parse_conn_parameter_update_rsp 
+2822 20600000 rtn 
+
+le_l2cap_parse_conn_parameter_update_rsp:
+2823 efe10006 ifetch 2 ,contr 
+2824 67e143d9 store 2 ,mem_le_l2cap_signaling_conn_param_update_rsp_result 
+2825 70095b40 jam bt_evt_le_parse_conn_papa_update_rsp ,mem_fifo_temp 
+2826 2020789f branch ui_ipc_send_event 
+
+le_l2cap_tx_update_req:
+2827 da20000c arg 0x0c ,rega 
+2828 da600012 arg l2cap_connection_parameter_update_request ,regc 
+2829 2040282f call le_fifo_malloc_tx_l2cap_signaling 
+282a 58000008 setarg 0x08 
+282b e7e10005 istore 2 ,contw 
+282c 6fe44370 fetch 8 ,mem_le_interval_min 
+282d e7e40005 istore 8 ,contw 
+282e 20600000 rtn 
+
+le_fifo_malloc_tx_l2cap_signaling:
+282f 20402837 call le_l2cap_update_signaling_identifier 
+2830 da400005 arg le_l2cap_cid_signal ,regb 
+2831 20402358 call le_fifo_malloc_tx_l2cap 
+2832 1a627e00 copy regc ,pdata 
+2833 e7e08005 istore 1 ,contw 
+2834 6fe0c3d8 fetch 1 ,mem_le_signaling_identifier 
+2835 e7e08005 istore 1 ,contw 
+2836 20600000 rtn 
+
+le_l2cap_update_signaling_identifier:
+2837 6fe0c3d8 fetch 1 ,mem_le_signaling_identifier 
+2838 1fe0fe01 pincrease 1 
+2839 67e0c3d8 store 1 ,mem_le_signaling_identifier 
+283a c1800000 rtnne 0 
+
+le_l2cap_reset_signaling_identifier:
+283b 7043d801 jam 1 ,mem_le_signaling_identifier 
+283c 20600000 rtn 
+
+le_pairing_mode_init:
+283d 6fe0c39b fetch 1 ,mem_le_pairing_mode 
+283e c000284c beq le_pairing_mode_none ,le_set_no_pairing 
+283f c000a84f beq le_pairing_mode_lagacy_justwork ,le_set_pairing_mode_lagacy_just_work 
+2840 c0012851 beq le_pairing_mode_lagacy_passkey ,le_set_pairing_mode_lagacy_passkey 
+2841 c040a845 beq le_pairing_mode_secure_connect_justwork ,le_set_pairing_mode_secure_justwork 
+2842 c0412847 beq le_pairing_mode_secure_connect_numeric ,le_set_pairing_mode_secure_numeric 
+2843 c041a84a beq le_pairing_mode_secure_connect_passkey ,le_set_pairing_mode_secure_passkey 
+2844 20600000 rtn 
+
+le_set_pairing_mode_secure_justwork:
+2845 7043510d jam flag_le_bonding_mitm_secure ,mem_le_pres_auth 
+2846 2020284d branch le_set_noinputnooutput 
+
+le_set_pairing_mode_secure_numeric:
+2847 7043510d jam flag_le_bonding_mitm_secure ,mem_le_pres_auth 
+2848 70434f01 jam flag_iocap_displayyesno ,mem_le_pres_iocap 
+2849 20600000 rtn 
+
+le_set_pairing_mode_secure_passkey:
+284a 7043510d jam flag_le_bonding_mitm_secure ,mem_le_pres_auth 
+284b 20202852 branch le_set_displayonly 
+
+le_set_no_pairing:
+284c 70435100 jam flag_le_no_bonding_no_mitm ,mem_le_pres_auth 
+
+le_set_noinputnooutput:
+284d 70434f03 jam flag_iocap_noinputnooutput ,mem_le_pres_iocap 
+284e 20600000 rtn 
+
+le_set_pairing_mode_lagacy_just_work:
+284f 70435105 jam flag_le_bonding_mitm ,mem_le_pres_auth 
+2850 2020284d branch le_set_noinputnooutput 
+
+le_set_pairing_mode_lagacy_passkey:
+2851 70435105 jam flag_le_bonding_mitm ,mem_le_pres_auth 
+
+le_set_displayonly:
+2852 70434f00 jam flag_iocap_displayonly ,mem_le_pres_iocap 
+2853 20600000 rtn 
+
+le_secure_connection_enable:
+2854 6fe0c6b7 fetch 1 ,mem_secure_connections_enable 
+2855 79207e00 set1 secure_connections_le_bit ,pdata 
+2856 67e0c6b7 store 1 ,mem_secure_connections_enable 
+2857 20600000 rtn 
+
+le_secure_connection_disable:
+2858 6fe0c6b7 fetch 1 ,mem_secure_connections_enable 
+2859 793ffe00 set0 secure_connections_le_bit ,pdata 
+285a 67e0c6b7 store 1 ,mem_secure_connections_enable 
+285b 20600000 rtn 
+
+le_parse_smp:
+285c efe08006 ifetch 1 ,contr 
+285d c000a870 beq smp_pairing_request ,le_parse_smp_pairing_request 
+285e c001a897 beq smp_pairing_confirm ,le_parse_smp_pairing_confirm 
+285f c00228b8 beq smp_pairing_random ,le_parse_smp_pairing_random 
+2860 c002a8c5 beq smp_pairing_failed ,le_parse_smp_pairing_failed 
+2861 c003a92d beq smp_master_identification ,le_parse_smp_master_identification 
+2862 c0042919 beq smp_identity_information ,le_parse_smp_identity_information 
+2863 c004a929 beq smp_identity_address_information ,le_parse_smp_identity_address_information 
+2864 c005292d beq smp_signing_information ,le_parse_smp_signing_information 
+2865 c005a92d beq smp_security_request ,le_parse_smp_security_request 
+2866 c006292e beq smp_pairing_public_key ,le_parse_smp_public_key 
+2867 c006a933 beq smp_pairing_dhkey_check ,le_parse_smp_dhkey_check 
+2868 20600000 rtn 
+
+le_send_smp_security_request:
+2869 18002202 force 2 ,rega 
+286a 204029d9 call le_fifo_malloc_tx_l2cap_smp 
+286b 5800000b setarg smp_security_request 
+286c e7e08005 istore 1 ,contw 
+286d 6fe0c351 fetch 1 ,mem_le_pres_auth 
+286e e7e08005 istore 1 ,contw 
+286f 20600000 rtn 
+
+le_parse_smp_pairing_request:
+2870 67e0c347 store 1 ,mem_le_preq 
+2871 efe30006 ifetch 6 ,contr 
+2872 e7e30005 istore 6 ,contw 
+2873 6fe0c39b fetch 1 ,mem_le_pairing_mode 
+2874 c00028ca beq le_pairing_mode_none ,le_smp_pairing_fail_reason_not_support_pairing 
+2875 20402892 call le_send_smp_pairing_response 
+2876 6fe0c6b5 fetch 1 ,mem_sc_only_mode 
+2877 203a287c branch le_parse_smp_pairing_request2 ,blank 
+2878 6fe0c34a fetch 1 ,mem_le_preq_auth 
+2879 c301b0c9 bbit0 le_auth_secure_connection_pairing_bit ,app_ble_disconnect 
+287a 6fe0c39b fetch 1 ,mem_le_pairing_mode 
+287b c303b0c9 bbit0 le_pairing_mode_secure_connect_bit ,app_ble_disconnect 
+
+le_parse_smp_pairing_request2:
+287c 70439903 jam flag_le_pairing_rcv_pairing_req ,mem_le_pairing_state 
+287d 6fe0c348 fetch 1 ,mem_le_preq_iocap 
+287e c0002884 beq flag_iocap_displayonly ,le_set_tk_0 
+287f c000a884 beq flag_iocap_displayyesno ,le_set_tk_0 
+2880 c001a884 beq flag_iocap_noinputnooutput ,le_set_tk_0 
+2881 6fe0c39b fetch 1 ,mem_le_pairing_mode 
+2882 c0012887 beq le_pairing_mode_lagacy_passkey ,le_parse_smp_pairing_req_passkey 
+2883 c1418000 rtneq le_pairing_mode_secure_connect_passkey 
+
+le_set_tk_0:
+2884 dfe00000 arg 0 ,pdata 
+2885 67e2439c store 4 ,mem_le_tk 
+2886 20600000 rtn 
+
+le_parse_smp_pairing_req_passkey:
+2887 6fe0c3be fetch 1 ,mem_le_configuration 
+2888 c2802890 bbit1 bit_ble_passkey_fixed_key ,le_parse_smp_pairing_req_fixed_passkey 
+
+le_genernate_tk:
+2889 da20439c arg mem_le_tk ,rega 
+288a 1a220a00 copy rega ,contw 
+288b df200003 arg 3 ,loopcnt 
+288c 204059ed call generate_random_loop 
+288d 6fe1439e fetch 2 ,mem_le_tk + 2 
+288e 1fe17e07 and_into 0x7 ,pdata 
+288f 67e1439e store 2 ,mem_le_tk + 2 
+
+le_parse_smp_pairing_req_fixed_passkey:
+2890 70095b34 jam bt_evt_le_tk_generate ,mem_fifo_temp 
+2891 2020789f branch ui_ipc_send_event 
+
+le_send_smp_pairing_response:
+2892 18002207 force 7 ,rega 
+2893 204029d9 call le_fifo_malloc_tx_l2cap_smp 
+2894 6fe3c34e fetch 7 ,mem_le_pres 
+2895 e7e38005 istore 7 ,contw 
+2896 20600000 rtn 
+
+le_parse_smp_pairing_confirm:
+2897 70439905 jam flag_le_pairing_receive_pairing_confirm ,mem_le_pairing_state 
+2898 d8a04325 arg mem_le_rconfirm ,contw 
+2899 20407d1a call memcpy16 
+289a 6fe0c39b fetch 1 ,mem_le_pairing_mode 
+289b c041a89f beq le_pairing_mode_secure_connect_passkey ,le_parse_smp_pairing_confirm_secure_passkey 
+289c c00228a2 beq le_pairing_mode_lagacy_passkey_res_input ,le_parse_smp_pairing_confirm_passkey_res_input 
+289d c04228a4 beq le_pairing_mode_secure_connect_passkey_res_input ,le_parse_smp_pairing_confirm_sc_passkey_res_input 
+289e 202028a7 branch le_send_smp_pairing_confirm 
+
+le_parse_smp_pairing_confirm_secure_passkey:
+289f 70439602 jam le_sp_flag_commit_256 ,mem_le_secure_connect_flag 
+28a0 70439708 jam le_sc_stat_passkey_wait_confirm ,mem_le_secure_connect_state 
+28a1 20600000 rtn 
+
+le_parse_smp_pairing_confirm_passkey_res_input:
+28a2 70095b43 jam bt_evt_le_get_passkey ,mem_fifo_temp 
+28a3 2020789f branch ui_ipc_send_event 
+
+le_parse_smp_pairing_confirm_sc_passkey_res_input:
+28a4 6fe2439c fetch 4 ,mem_le_tk 
+28a5 203a28a2 branch le_parse_smp_pairing_confirm_passkey_res_input ,blank 
+28a6 2020289f branch le_parse_smp_pairing_confirm_secure_passkey 
+
+le_send_smp_pairing_confirm:
+28a7 70439906 jam flag_le_pairing_send_pairing_confirm ,mem_le_pairing_state 
+28a8 6fe0c39b fetch 1 ,mem_le_pairing_mode 
+28a9 c283a8b0 bbit1 le_pairing_mode_secure_connect_bit ,le_send_smp_pairing_confirm_sc 
+28aa 20406c7d call generate_confirm 
+28ab 18002211 force 17 ,rega 
+28ac 204029d9 call le_fifo_malloc_tx_l2cap_smp 
+28ad 58000003 setarg smp_pairing_confirm 
+28ae e7e08005 istore 1 ,contw 
+28af 20206dfe branch store_aes_result 
+
+le_send_smp_pairing_confirm_sc:
+28b0 d8a04335 arg mem_le_srand ,contw 
+28b1 204059ec call generate_random 
+28b2 20406aa6 call function_f4_cb 
+28b3 18002211 force 17 ,rega 
+28b4 204029d9 call le_fifo_malloc_tx_l2cap_smp 
+28b5 58000003 setarg smp_pairing_confirm 
+28b6 e7e08005 istore 1 ,contw 
+28b7 20206ae2 branch load_inverse_result 
+
+le_parse_smp_pairing_random:
+28b8 18c22200 copy contr ,rega 
+28b9 6fe0c39b fetch 1 ,mem_le_pairing_mode 
+28ba c283a8cc bbit1 le_pairing_mode_secure_connect_bit ,le_parse_smp_pairing_random_sc 
+28bb 1a220c00 copy rega ,contr 
+28bc 20406c75 call authenticate_rconfirm 
+28bd 2022a8e1 branch le_parse_smp_pairing_random_success ,zero 
+
+le_send_pairing_confirm_value_failed:
+28be 7002d904 jam pairing_failed_confirm_value_failed ,mem_le_ll_pairing_fail_reason 
+
+le_send_pairing_failed:
+28bf 18002202 force 2 ,rega 
+28c0 204029d9 call le_fifo_malloc_tx_l2cap_smp 
+28c1 58000005 setarg smp_pairing_failed 
+28c2 e7e08005 istore 1 ,contw 
+28c3 6fe082d9 fetch 1 ,mem_le_ll_pairing_fail_reason 
+28c4 e7e08005 istore 1 ,contw 
+
+le_parse_smp_pairing_failed:
+28c5 18000e0a force smp_pairing_timer ,queue 
+28c6 20407d73 call timer_stop 
+28c7 70439900 jam flag_le_pairing_null ,mem_le_pairing_state 
+28c8 70095b30 jam bt_evt_le_pairing_fail ,mem_fifo_temp 
+28c9 2020789f branch ui_ipc_send_event 
+
+le_smp_pairing_fail_reason_not_support_pairing:
+28ca 7002d905 jam pairing_failed_pairing_not_supported ,mem_le_ll_pairing_fail_reason 
+28cb 202028bf branch le_send_pairing_failed 
+
+le_parse_smp_pairing_random_sc:
+28cc d8a00277 arg mem_le_mrand ,contw 
+28cd 1a220c00 copy rega ,contr 
+28ce 20407d1a call memcpy16 
+28cf 6fe0c39b fetch 1 ,mem_le_pairing_mode 
+28d0 c041a8d8 beq le_pairing_mode_secure_connect_passkey ,le_parse_smp_pairing_random_sc_passkey 
+28d1 c04228d8 beq le_pairing_mode_secure_connect_passkey_res_input ,le_parse_smp_pairing_random_sc_passkey 
+28d2 20406a30 call function_g2 
+28d3 204028e6 call le_send_smp_pairing_random 
+28d4 6fe0c39b fetch 1 ,mem_le_pairing_mode 
+28d5 c1c10000 rtnne le_pairing_mode_secure_connect_numeric 
+28d6 70095b3b jam bt_evt_le_gkey_generate ,mem_fifo_temp 
+28d7 2020789f branch ui_ipc_send_event 
+
+le_parse_smp_pairing_random_sc_passkey:
+28d8 20406a9b call function_f4_ca 
+28d9 d8a009be arg mem_aes_cmac_temp ,contw 
+28da 20406ae2 call load_inverse_result 
+28db da2009be arg mem_aes_cmac_temp ,rega 
+28dc da404325 arg mem_le_rconfirm ,regb 
+28dd df200010 arg 16 ,loopcnt 
+28de 20407dff call string_compare 
+28df 2422a8be nbranch le_send_pairing_confirm_value_failed ,zero 
+28e0 202028e6 branch le_send_smp_pairing_random 
+
+le_parse_smp_pairing_random_success:
+28e1 20406c71 call generate_stk 
+28e2 70095b31 jam bt_evt_le_pairing_success ,mem_fifo_temp 
+28e3 2040789f call ui_ipc_send_event 
+28e4 70432401 jam 1 ,mem_ltk_exists 
+28e5 70439909 jam flag_le_pairing_after_auth ,mem_le_pairing_state 
+
+le_send_smp_pairing_random:
+28e6 18002211 force 17 ,rega 
+28e7 204029d9 call le_fifo_malloc_tx_l2cap_smp 
+28e8 58000004 setarg smp_pairing_random 
+28e9 e7e08005 istore 1 ,contw 
+28ea d8c04335 arg mem_le_srand ,contr 
+28eb 20207d1a branch memcpy16 
+
+le_send_smp_encryption_information:
+28ec 18002211 force 17 ,rega 
+28ed 204029d9 call le_fifo_malloc_tx_l2cap_smp 
+28ee 58000006 setarg smp_encryption_information 
+28ef e7e08005 istore 1 ,contw 
+28f0 6fe0c3be fetch 1 ,mem_le_configuration 
+28f1 c280a8f4 bbit1 bit_ble_pairing_fixed_ltk ,le_send_fixed_ltk 
+28f2 d8c04314 arg mem_le_ltk ,contr 
+28f3 20207d1a branch memcpy16 
+
+le_send_fixed_ltk:
+28f4 d8c043bf arg mem_le_fixed_ltk ,contr 
+28f5 20207d1a branch memcpy16 
+
+le_send_smp_master_identification:
+28f6 d8a043a0 arg mem_le_ediv ,contw 
+28f7 1800720a force 10 ,loopcnt 
+28f8 204059ed call generate_random_loop 
+28f9 1800220b force 11 ,rega 
+28fa 204029d9 call le_fifo_malloc_tx_l2cap_smp 
+28fb 58000007 setarg smp_master_identification 
+28fc e7e08005 istore 1 ,contw 
+28fd 6fe143a0 fetch 2 ,mem_le_ediv 
+28fe e7e10005 istore 2 ,contw 
+28ff 6fe443a2 fetch 8 ,mem_le_rand 
+2900 e7e40005 istore 8 ,contw 
+2901 20600000 rtn 
+
+le_send_smp_identity_information:
+2902 18002211 force 17 ,rega 
+2903 204029d9 call le_fifo_malloc_tx_l2cap_smp 
+2904 58000008 setarg smp_identity_information 
+2905 e7e08005 istore 1 ,contw 
+2906 58000000 setarg 0 
+2907 e7e40005 istore 8 ,contw 
+2908 e7e40005 istore 8 ,contw 
+2909 20600000 rtn 
+
+le_send_smp_identity_address_information:
+290a 18002208 force 8 ,rega 
+290b 204029d9 call le_fifo_malloc_tx_l2cap_smp 
+290c 58000009 setarg smp_identity_address_information 
+290d e7e08005 istore 1 ,contw 
+290e 6fe0c36f fetch 1 ,mem_le_conn_own_addr_type 
+290f e7e08005 istore 1 ,contw 
+2910 6fe34378 fetch 6 ,mem_le_lap 
+2911 e7e30005 istore 6 ,contw 
+2912 20600000 rtn 
+
+le_send_pairing_fail_unspecified_reason:
+2913 7002d908 jam pairing_failed_unspecified_reason ,mem_le_ll_pairing_fail_reason 
+2914 202028bf branch le_send_pairing_failed 
+
+le_check_init_key_distribution:
+2915 6fe0c353 fetch 1 ,mem_le_pres_init_key_distribution 
+2916 6848c353 fetcht 1 ,mem_le_pres_init_key_distribution 
+2917 98417e00 iand temp ,pdata 
+2918 20600000 rtn 
+
+le_parse_smp_identity_information:
+2919 d8a043aa arg mem_le_irk ,contw 
+291a 20407d1a call memcpy16 
+291b 20402915 call le_check_init_key_distribution 
+291c 2fec0001 isolate0 le_initator_irk_bit ,pdata 
+291d 2020a913 branch le_send_pairing_fail_unspecified_reason ,true 
+291e 6fe0c09a fetch 1 ,mem_device_option 
+291f c1850000 rtnne dvc_op_module 
+2920 20402923 call le_check_master_addr_type 
+2921 24740000 nrtn user 
+2922 202030d7 branch app_ble_store_reconn_info 
+
+le_check_master_addr_type:
+2923 20407e64 call disable_user 
+2924 6fe0c368 fetch 1 ,mem_le_conn_peer_addr_type 
+2925 c1000000 rtneq master_public_addr 
+2926 6fe0c34c fetch 1 ,mem_le_preq_init_key_distribution 
+2927 c4008000 rtnbit0 le_initator_irk_bit 
+2928 20207e62 branch enable_user 
+
+le_parse_smp_identity_address_information:
+2929 20402915 call le_check_init_key_distribution 
+292a 2fec0001 isolate0 le_initator_irk_bit ,pdata 
+292b 2020a913 branch le_send_pairing_fail_unspecified_reason ,true 
+292c 20600000 rtn 
+
+le_parse_smp_master_identification:
+
+le_parse_smp_signing_information:
+
+le_parse_smp_security_request:
+292d 20600000 rtn 
+
+le_parse_smp_public_key:
+292e d8a00880 arg mem_le_pubkey_remote_x_256 ,contw 
+292f 20407d0d call memcpy64 
+2930 70439602 jam le_sp_flag_commit_256 ,mem_le_secure_connect_flag 
+2931 70439701 jam le_sc_stat_receive_public_key ,mem_le_secure_connect_state 
+2932 20600000 rtn 
+
+le_parse_smp_dhkey_check:
+2933 d8a00930 arg mem_sp_confirm_remote ,contw 
+2934 20407d1a call memcpy16 
+2935 70439706 jam le_sc_stat_receive_dhkey ,mem_le_secure_connect_state 
+2936 70439602 jam le_sp_flag_commit_256 ,mem_le_secure_connect_flag 
+2937 20600000 rtn 
+
+le_send_smp_pairing_public_key:
+2938 18002241 force 65 ,rega 
+2939 204029d9 call le_fifo_malloc_tx_l2cap_smp 
+293a 5800000c setarg smp_pairing_public_key 
+293b e7e08005 istore 1 ,contw 
+293c d8c046db arg mem_sc_pubkey_local_x_256 ,contr 
+293d 20207d0d branch memcpy64 
+
+le_send_smp_pairing_dhkey_check:
+293e 20406a47 call function_f6_eb 
+293f 18002211 force 17 ,rega 
+2940 204029d9 call le_fifo_malloc_tx_l2cap_smp 
+2941 5800000d setarg smp_pairing_dhkey_check 
+2942 e7e08005 istore 1 ,contw 
+2943 20206ae2 branch load_inverse_result 
+
+le_check_paring_time:
+2944 6fe0c399 fetch 1 ,mem_le_pairing_state 
+2945 c17f8000 rtneq flag_le_pairing_end 
+2946 d8400003 arg flag_le_pairing_rcv_pairing_req ,temp 
+2947 98467c00 isub temp ,null 
+2948 24610000 nrtn positive 
+2949 d8e0000a arg smp_pairing_timer ,queue 
+294a 20407d82 call timer_check 
+294b 247a0000 nrtn blank 
+294c 20202913 branch le_send_pairing_fail_unspecified_reason 
+
+le_pairing_sm:
+294d 476dc03b bpatchx patch3b_3 ,mem_patch3b 
+294e 20402382 call le_fifo_check_nearly_full 
+294f 247a0000 nrtn blank 
+2950 6fe0c399 fetch 1 ,mem_le_pairing_state 
+2951 c000295a beq flag_le_pairing_null ,le_pairing_sm_null 
+2952 c000a960 beq flag_le_pairing_start ,le_pairing_sm_start 
+2953 c001295a beq flag_le_pairing_send_recurity_req ,le_pairing_sm_send_sec_req 
+2954 c001a962 beq flag_le_pairing_rcv_pairing_req ,le_pairing_sm_rcv_pairing_req 
+2955 c004a966 beq flag_le_pairing_after_auth ,le_pairing_sm_after_auth 
+2956 c005a976 beq flag_le_paring_send_enc_information ,le_pairng_sm_send_enc_information 
+2957 c0062978 beq flag_le_paring_send_master_identification ,le_pairng_sm_send_master_indentification 
+2958 c006a97f beq flag_le_paring_send_indentity_information ,le_pairng_sm_send_indentity_information 
+2959 20600000 rtn 
+
+le_pairing_sm_null:
+
+le_pairing_sm_send_sec_req:
+295a 6fe0c39a fetch 1 ,mem_le_enc_state 
+295b c1820000 rtnne flag_le_send_start_enc_rsp 
+295c 70439aff jam flag_le_enc_end ,mem_le_enc_state 
+295d 704399ff jam flag_le_pairing_end ,mem_le_pairing_state 
+295e 70095b3f jam bt_evt_le_reconnect_complete ,mem_fifo_temp 
+295f 2020789f branch ui_ipc_send_event 
+
+le_pairing_sm_start:
+2960 70439902 jam flag_le_pairing_send_recurity_req ,mem_le_pairing_state 
+2961 20202869 branch le_send_smp_security_request 
+
+le_pairing_sm_rcv_pairing_req:
+2962 70439904 jam flag_le_pairing_wait_stk_generation ,mem_le_pairing_state 
+2963 58017700 setarg timer_smp_pairing_timeout 
+2964 d8e0000a arg smp_pairing_timer ,queue 
+2965 20207d74 branch timer_init 
+
+le_pairing_sm_after_auth:
+2966 6fe0c39a fetch 1 ,mem_le_enc_state 
+2967 c0022969 beq flag_le_send_start_enc_rsp ,le_pairing_sm_after_auth_start_enc 
+2968 20600000 rtn 
+
+le_pairing_sm_after_auth_start_enc:
+2969 6fe0c39b fetch 1 ,mem_le_pairing_mode 
+296a c283a974 bbit1 le_pairing_mode_secure_connect_bit ,le_pairing_sm_after_auth_start_enc_sc 
+296b 7043990b jam flag_le_paring_send_enc_information ,mem_le_pairing_state 
+296c 204028ec call le_send_smp_encryption_information 
+
+le_pairing_sm_after_auth_start_enc_common:
+296d 70095b29 jam bt_evt_le_enc_info ,mem_fifo_temp 
+296e 2040789f call ui_ipc_send_event 
+296f 6fe0c09a fetch 1 ,mem_device_option 
+2970 c1850000 rtnne dvc_op_module 
+2971 20402923 call le_check_master_addr_type 
+2972 20740000 rtn user 
+2973 202030d7 branch app_ble_store_reconn_info 
+
+le_pairing_sm_after_auth_start_enc_sc:
+2974 7043990c jam flag_le_paring_send_master_identification ,mem_le_pairing_state 
+2975 2020296d branch le_pairing_sm_after_auth_start_enc_common 
+
+le_pairng_sm_send_enc_information:
+2976 7043990c jam flag_le_paring_send_master_identification ,mem_le_pairing_state 
+2977 202028f6 branch le_send_smp_master_identification 
+
+le_pairng_sm_send_master_indentification:
+2978 6fe0c34d fetch 1 ,mem_le_preq_resp_key_distribution 
+2979 6848c354 fetcht 1 ,mem_le_pres_resp_key_distribution 
+297a 98417e00 iand temp ,pdata 
+297b 2fec0001 isolate0 le_initator_irk_bit ,pdata 
+297c 2020a981 branch le_parse_start_enc_rsp_after_auth_end ,true 
+297d 7043990d jam flag_le_paring_send_indentity_information ,mem_le_pairing_state 
+297e 20202902 branch le_send_smp_identity_information 
+
+le_pairng_sm_send_indentity_information:
+297f 2040290a call le_send_smp_identity_address_information 
+2980 20202981 branch le_parse_start_enc_rsp_after_auth_end 
+
+le_parse_start_enc_rsp_after_auth_end:
+2981 18000e0a force smp_pairing_timer ,queue 
+2982 20407d73 call timer_stop 
+2983 70439aff jam flag_le_enc_end ,mem_le_enc_state 
+2984 704399ff jam flag_le_pairing_end ,mem_le_pairing_state 
+2985 70095b3e jam bt_evt_le_pairing_complete ,mem_fifo_temp 
+2986 2020789f branch ui_ipc_send_event 
+
+le_secure_connect_sm:
+2987 476e403b bpatchx patch3b_4 ,mem_patch3b 
+2988 6fe0c39b fetch 1 ,mem_le_pairing_mode 
+2989 c4038000 rtnbit0 le_pairing_mode_secure_connect_bit 
+298a 6fe0c396 fetch 1 ,mem_le_secure_connect_flag 
+298b c1810000 rtnne le_sp_flag_commit_256 
+298c 70439600 jam sp_flag_standby ,mem_le_secure_connect_flag 
+298d 6fe0c397 fetch 1 ,mem_le_secure_connect_state 
+298e c000a9cf beq le_sc_stat_receive_public_key ,le_sc_sm_receive_public_key 
+298f c00129d6 beq le_sc_stat_wait_send_public_key ,le_sc_sm_wait_send_public_key 
+2990 c001a9c7 beq le_sc_stat_send_public_key ,le_sc_sm_send_public_key 
+2991 c00329ac beq le_sc_stat_receive_dhkey ,le_sc_sm_receive_dhkey 
+2992 c003a9a3 beq le_sc_stat_wait_confirm_gkey ,le_sc_sm_wait_confirm_gkey 
+2993 c0042999 beq le_sc_stat_passkey_wait_confirm ,le_sc_sm_passkey_wait_confirm 
+2994 20600000 rtn 
+
+le_sc_state_clear:
+2995 70439600 jam sp_flag_standby ,mem_le_secure_connect_flag 
+2996 70439700 jam le_sc_stat_null ,mem_le_secure_connect_state 
+2997 70439800 jam flag_le_sc_confrim_null ,mem_le_sc_confirm_gkey_flag 
+2998 20600000 rtn 
+
+le_sc_sm_passkey_wait_confirm:
+2999 6fe0c76c fetch 1 ,mem_authentication_passkey_times 
+299a 1fe20e00 copy pdata ,queue 
+299b 1fe0fe01 increase 1 ,pdata 
+299c 67e0c76c store 1 ,mem_authentication_passkey_times 
+299d 6fe2439c fetch 4 ,mem_le_tk 
+299e afefffff qisolate1 pdata 
+299f 58000080 setarg 0x80 
+29a0 7920fe00 setflag true ,0 ,pdata 
+29a1 67e0c76d store 1 ,mem_passkey_1bit 
+29a2 202029cb branch le_sc_sm_ready_send_pairing_confirm 
+
+le_sc_sm_wait_confirm_gkey:
+29a3 6fe0c398 fetch 1 ,mem_le_sc_confirm_gkey_flag 
+29a4 70439800 jam flag_le_sc_confrim_null ,mem_le_sc_confirm_gkey_flag 
+29a5 c000a9a8 beq flag_le_sc_confrim_gkey_ok ,le_sc_confirm_gkey_ok 
+29a6 70439602 jam le_sp_flag_commit_256 ,mem_le_secure_connect_flag 
+29a7 20600000 rtn 
+
+le_sc_confirm_gkey_ok:
+29a8 70095b31 jam bt_evt_le_pairing_success ,mem_fifo_temp 
+29a9 2040789f call ui_ipc_send_event 
+29aa 70439909 jam flag_le_pairing_after_auth ,mem_le_pairing_state 
+29ab 2020293e branch le_send_smp_pairing_dhkey_check 
+
+le_sc_sm_receive_dhkey:
+29ac 6fe0887b fetch 1 ,mem_sp_dhkey_invalid 
+29ad c001a9b0 beq sp_key_valid_256 ,le_dhkey_ready 
+29ae 70439602 jam le_sp_flag_commit_256 ,mem_le_secure_connect_flag 
+29af 20600000 rtn 
+
+le_dhkey_ready:
+29b0 20406a6e call function_f5 
+29b1 6fe0c39b fetch 1 ,mem_le_pairing_mode 
+29b2 c041a9b5 beq le_pairing_mode_secure_connect_passkey ,le_dhkey_ready_common 
+29b3 c04229b5 beq le_pairing_mode_secure_connect_passkey_res_input ,le_dhkey_ready_common 
+29b4 20402884 call le_set_tk_0 
+
+le_dhkey_ready_common:
+29b5 20406a5b call function_f6_ea 
+29b6 da2009be arg mem_aes_cmac_temp ,rega 
+29b7 da400930 arg mem_sp_confirm_remote ,regb 
+29b8 df200010 arg 16 ,loopcnt 
+29b9 20407dff call string_compare 
+29ba 2022a9bd branch le_dhkey_check_ok ,zero 
+
+le_dhkey_check_fail:
+29bb 7002d90b jam pairing_failed_dhkey_check_failed ,mem_le_ll_pairing_fail_reason 
+29bc 202028bf branch le_send_pairing_failed 
+
+le_dhkey_check_ok:
+29bd 20406f19 call sp_calc_check_publickey_256 
+29be 2422a9bb nbranch le_dhkey_check_fail ,zero 
+29bf 70432401 jam 1 ,mem_ltk_exists 
+29c0 6fe0c39b fetch 1 ,mem_le_pairing_mode 
+29c1 c040a9a8 beq le_pairing_mode_secure_connect_justwork ,le_sc_confirm_gkey_ok 
+29c2 c041a9a8 beq le_pairing_mode_secure_connect_passkey ,le_sc_confirm_gkey_ok 
+29c3 c04229a8 beq le_pairing_mode_secure_connect_passkey_res_input ,le_sc_confirm_gkey_ok 
+29c4 70439602 jam le_sp_flag_commit_256 ,mem_le_secure_connect_flag 
+29c5 70439707 jam le_sc_stat_wait_confirm_gkey ,mem_le_secure_connect_state 
+29c6 20600000 rtn 
+
+le_sc_sm_send_public_key:
+29c7 6fe0c39b fetch 1 ,mem_le_pairing_mode 
+29c8 c041a9cc beq le_pairing_mode_secure_connect_passkey ,le_sc_sm_send_public_key_passkey 
+29c9 c04229cc beq le_pairing_mode_secure_connect_passkey_res_input ,le_sc_sm_send_public_key_passkey 
+29ca 70476d00 jam 0 ,mem_passkey_1bit 
+
+le_sc_sm_ready_send_pairing_confirm:
+29cb 202028a7 branch le_send_smp_pairing_confirm 
+
+le_sc_sm_send_public_key_passkey:
+29cc 70476c00 jam 0 ,mem_authentication_passkey_times 
+29cd c1420000 rtneq le_pairing_mode_secure_connect_passkey_res_input 
+29ce 20202887 branch le_parse_smp_pairing_req_passkey 
+
+le_sc_sm_receive_public_key:
+29cf 70439602 jam le_sp_flag_commit_256 ,mem_le_secure_connect_flag 
+29d0 6fe0c6ba fetch 1 ,mem_sc_local_key_invalid 
+29d1 c001a9d3 beq sp_key_valid_256 ,le_public_key_ready 
+29d2 20600000 rtn 
+
+le_public_key_ready:
+29d3 70439702 jam le_sc_stat_wait_send_public_key ,mem_le_secure_connect_state 
+29d4 70087b00 jam sp_key_invalid ,mem_sp_dhkey_invalid 
+29d5 202075ae branch sp_dhkey_calc_256 
+
+le_sc_sm_wait_send_public_key:
+29d6 70439602 jam le_sp_flag_commit_256 ,mem_le_secure_connect_flag 
+29d7 70439703 jam le_sc_stat_send_public_key ,mem_le_secure_connect_state 
+29d8 20202938 branch le_send_smp_pairing_public_key 
+
+le_fifo_malloc_tx_l2cap_smp:
+29d9 18002406 force le_l2cap_cid_smp ,regb 
+29da 20202358 branch le_fifo_malloc_tx_l2cap 
+
+le_parse_ll:
+29db 6fe0816d fetch 1 ,mem_le_rxbuf_data_ll_opcode 
+29dc c00029f2 beq ll_connection_update_ind ,le_parse_connection_update_ind 
+29dd c000a9fa beq ll_channel_map_ind ,le_parse_channel_map_ind 
+29de c0012a02 beq ll_terminate_ind ,le_parse_terminate_ind 
+29df c001aa06 beq ll_enc_req ,le_parse_enc_req 
+29e0 c0022a25 beq ll_enc_rsp ,le_parse_enc_rsp 
+29e1 c002aa2a beq ll_start_enc_req ,le_parse_start_enc_req 
+29e2 c0032a2e beq ll_start_enc_rsp ,le_parse_start_enc_rsp 
+29e3 c003aa33 beq ll_unknown_rsp ,le_parse_unknown_rsp 
+29e4 c0042a34 beq ll_feature_req ,le_parse_feature_req 
+29e5 c004aa35 beq ll_feature_rsp ,le_parse_feature_rsp 
+29e6 c0052a36 beq ll_pause_enc_req ,le_parse_pause_enc_req 
+29e7 c005aa3a beq ll_pause_enc_rsp ,le_parse_pause_enc_rsp 
+29e8 c0062a3b beq ll_version_ind ,le_parse_version_ind 
+29e9 c006aa3d beq ll_reject_ind ,le_parse_reject_ind 
+29ea c0092a3e beq ll_ping_req ,le_parse_ping_req 
+29eb c009aa3f beq ll_ping_rsp ,le_parse_ping_rsp 
+29ec c00a2a40 beq ll_length_req ,le_parse_length_req 
+29ed c00aaa42 beq ll_length_rsp ,le_parse_length_rsp 
+29ee c00b2a4d beq ll_phy_req ,le_parse_phy_req 
+29ef c00c2a4e beq ll_phy_update_ind ,le_parse_phy_update_ind 
+29f0 6a60816d fetchr regc ,1 ,mem_le_rxbuf_data_ll_opcode 
+29f1 20202a71 branch le_send_unknown_rsp 
+
+le_parse_connection_update_ind:
+29f2 efe48006 ifetch 9 ,contr 
+29f3 67e482be store 9 ,mem_le_new_param 
+29f4 efe10006 ifetch 2 ,contr 
+29f5 67e102a7 store 2 ,mem_le_instant 
+29f6 6fe08287 fetch 1 ,mem_le_state 
+29f7 79207e05 set1 lestate_update_param ,pdata 
+29f8 67e08287 store 1 ,mem_le_state 
+29f9 20600000 rtn 
+
+le_parse_channel_map_ind:
+29fa efe28006 ifetch 5 ,contr 
+29fb 67e282be store 5 ,mem_le_new_map 
+29fc efe10006 ifetch 2 ,contr 
+29fd 67e102a7 store 2 ,mem_le_instant 
+
+le_update_map_enable:
+29fe 6fe08287 fetch 1 ,mem_le_state 
+29ff 79207e06 set1 lestate_update_map ,pdata 
+2a00 67e08287 store 1 ,mem_le_state 
+2a01 20600000 rtn 
+
+le_parse_terminate_ind:
+2a02 58000014 setarg 20 
+2a03 67e102b5 store 2 ,mem_le_superto 
+2a04 67e14392 store 2 ,mem_le_init_superto 
+2a05 20600000 rtn 
+
+le_parse_enc_req:
+2a06 efe40006 ifetch 8 ,contr 
+2a07 67e443a2 store 8 ,mem_le_rand 
+2a08 efe10006 ifetch 2 ,contr 
+2a09 67e143a0 store 2 ,mem_le_ediv 
+2a0a efe40006 ifetch 8 ,contr 
+2a0b 67e44382 store 8 ,mem_le_skdm 
+2a0c efe20006 ifetch 4 ,contr 
+2a0d 67e246a9 store 4 ,mem_ccm_ivm 
+2a0e 20402a5e call le_send_enc_rsp 
+2a0f 476ec03b bpatchx patch3b_5 ,mem_patch3b 
+2a10 6fe0c399 fetch 1 ,mem_le_pairing_state 
+2a11 c004aa18 beq flag_le_pairing_after_auth ,le_parse_enc_req_after_auth 
+2a12 6fe0c3be fetch 1 ,mem_le_configuration 
+2a13 c280aa1b bbit1 bit_ble_pairing_fixed_ltk ,le_parse_enc_req_fixed_ltk 
+2a14 6fe0c48d fetch 1 ,mem_nv_data_number 
+2a15 245a6065 ncall load_device_list_mode_4 ,blank 
+2a16 6fe0c324 fetch 1 ,mem_ltk_exists 
+2a17 c0002a20 beq 0 ,le_ltk_lost 
+
+le_parse_enc_req_after_auth:
+2a18 70439a01 jam flag_le_rcv_enc_start ,mem_le_enc_state 
+2a19 20402a6c call le_send_start_enc_req 
+2a1a 20206c83 branch generate_sk 
+
+le_parse_enc_req_fixed_ltk:
+2a1b 70432401 jam 1 ,mem_ltk_exists 
+2a1c d8c043bf arg mem_le_fixed_ltk ,contr 
+2a1d d8a04314 arg mem_le_ltk ,contw 
+2a1e 20407d1a call memcpy16 
+2a1f 20202a18 branch le_parse_enc_req_after_auth 
+
+le_ltk_lost:
+2a20 476f403b bpatchx patch3b_6 ,mem_patch3b 
+2a21 70439a00 jam flag_le_enc_null ,mem_le_enc_state 
+2a22 70439900 jam flag_le_enc_null ,mem_le_pairing_state 
+2a23 70095b41 jam bt_evt_le_ltk_lost ,mem_fifo_temp 
+2a24 2020789f branch ui_ipc_send_event 
+
+le_parse_enc_rsp:
+2a25 efe40006 ifetch 8 ,contr 
+2a26 67e4438a store 8 ,mem_le_skds 
+2a27 efe20006 ifetch 4 ,contr 
+2a28 67e246ad store 4 ,mem_ccm_ivs 
+2a29 20206c83 branch generate_sk 
+
+le_parse_start_enc_req:
+2a2a 6fe08287 fetch 1 ,mem_le_state 
+2a2b 79207e04 set1 lestate_encryption ,pdata 
+2a2c 67e08287 store 1 ,mem_le_state 
+2a2d 20600000 rtn 
+
+le_parse_start_enc_rsp:
+2a2e 20748000 rtn master 
+2a2f 70095b32 jam bt_evt_le_start_enc ,mem_fifo_temp 
+2a30 2040789f call ui_ipc_send_event 
+2a31 70439a04 jam flag_le_send_start_enc_rsp ,mem_le_enc_state 
+2a32 20202a6f branch le_send_start_enc_rsp 
+
+le_parse_unknown_rsp:
+2a33 20600000 rtn 
+
+le_parse_feature_req:
+2a34 20202a76 branch le_send_feature_rsp 
+
+le_parse_feature_rsp:
+2a35 20600000 rtn 
+
+le_parse_pause_enc_req:
+2a36 70439a02 jam flag_le_enc_pause ,mem_le_enc_state 
+2a37 20402a7d call le_send_pause_enc_rsp 
+2a38 70095b33 jam bt_evt_le_pause_enc ,mem_fifo_temp 
+2a39 2020789f branch ui_ipc_send_event 
+
+le_parse_pause_enc_rsp:
+2a3a 20600000 rtn 
+
+le_parse_version_ind:
+2a3b 20748000 rtn master 
+2a3c 20202a7f branch le_send_version_ind 
+
+le_parse_reject_ind:
+2a3d 20600000 rtn 
+
+le_parse_ping_req:
+2a3e 20202a8b branch le_send_ping_rsp 
+
+le_parse_ping_rsp:
+2a3f 20600000 rtn 
+
+le_parse_length_req:
+2a40 20402a42 call le_parse_length_rsp 
+2a41 20202a8f branch le_send_data_length_res 
+
+le_parse_length_rsp:
+2a42 efe40006 ifetch 8 ,contr 
+2a43 67e44444 store 8 ,mem_remote_rx_max_octets 
+2a44 6fe14444 fetch 2 ,mem_remote_rx_max_octets 
+2a45 68494450 fetcht 2 ,mem_local_tx_max_octets 
+2a46 20407e58 call not_greater_than 
+2a47 67e14444 store 2 ,mem_remote_rx_max_octets 
+2a48 6fe14448 fetch 2 ,mem_remote_tx_max_octets 
+2a49 6849444c fetcht 2 ,mem_local_rx_max_octets 
+2a4a 20407e58 call not_greater_than 
+2a4b 67e14448 store 2 ,mem_remote_tx_max_octets 
+2a4c 20600000 rtn 
+
+le_parse_phy_req:
+2a4d 20202a95 branch le_send_phy_rsp 
+
+le_parse_phy_update_ind:
+2a4e efe10006 ifetch 2 ,contr 
+2a4f 67e102be store 2 ,mem_le_new_m2s_phy 
+2a50 efe10006 ifetch 2 ,contr 
+2a51 67e102a7 store 2 ,mem_le_instant 
+2a52 207a0000 rtn blank 
+2a53 6fe08287 fetch 1 ,mem_le_state 
+2a54 79207e07 set1 lestate_update_phy ,pdata 
+2a55 67e08287 store 1 ,mem_le_state 
+2a56 20600000 rtn 
+
+le_send_terminate_ind_user_terminated:
+2a57 da600013 arg error_remote_user_terminated_connection ,regc 
+
+le_send_terminate_ind:
+2a58 da200002 arg 2 ,rega 
+2a59 da400002 arg ll_terminate_ind ,regb 
+2a5a 20402353 call le_fifo_malloc_tx_ll 
+2a5b 1a627e00 copy regc ,pdata 
+2a5c e7e08005 istore 1 ,contw 
+2a5d 20600000 rtn 
+
+le_send_enc_rsp:
+2a5e d8a0438a arg mem_le_skds ,contw 
+2a5f 18007208 force 8 ,loopcnt 
+2a60 204059ed call generate_random_loop 
+2a61 d8a046ad arg mem_ccm_ivs ,contw 
+2a62 18007204 force 4 ,loopcnt 
+2a63 204059ed call generate_random_loop 
+2a64 da20000d arg 13 ,rega 
+2a65 da400004 arg ll_enc_rsp ,regb 
+2a66 20402353 call le_fifo_malloc_tx_ll 
+2a67 6fe4438a fetch 8 ,mem_le_skds 
+2a68 e7e40005 istore 8 ,contw 
+2a69 6fe246ad fetch 4 ,mem_ccm_ivs 
+2a6a e7e20005 istore 4 ,contw 
+2a6b 20600000 rtn 
+
+le_send_start_enc_req:
+2a6c 70439a05 jam flag_le_send_start_enc_req ,mem_le_enc_state 
+2a6d da400005 arg ll_start_enc_req ,regb 
+2a6e 20202a9f branch le_send_ll_one_lenth 
+
+le_send_start_enc_rsp:
+2a6f da400006 arg ll_start_enc_rsp ,regb 
+2a70 20202a9f branch le_send_ll_one_lenth 
+
+le_send_unknown_rsp:
+2a71 da200002 arg 2 ,rega 
+2a72 da400007 arg ll_unknown_rsp ,regb 
+2a73 20402353 call le_fifo_malloc_tx_ll 
+2a74 e2608005 istorer regc ,1 ,contw 
+2a75 20600000 rtn 
+
+le_send_feature_rsp:
+2a76 da200009 arg 9 ,rega 
+2a77 da400009 arg ll_feature_rsp ,regb 
+2a78 20402353 call le_fifo_malloc_tx_ll 
+2a79 6fe4443a fetch 8 ,mem_le_local_feature 
+2a7a 1fe1fe01 or pdata ,fun_ll_feature_le_encryption ,pdata 
+2a7b e7e40005 istore 8 ,contw 
+2a7c 20600000 rtn 
+
+le_send_pause_enc_rsp:
+2a7d da40000b arg ll_pause_enc_rsp ,regb 
+2a7e 20202a9f branch le_send_ll_one_lenth 
+
+le_send_version_ind:
+2a7f da200006 arg 6 ,rega 
+2a80 da40000c arg ll_version_ind ,regb 
+2a81 20402353 call le_fifo_malloc_tx_ll 
+2a82 6fe2c5f7 fetch 5 ,mem_lmp_version 
+2a83 e7e28005 istore 5 ,contw 
+2a84 20600000 rtn 
+
+le_send_reject_ind:
+2a85 da200002 arg 2 ,rega 
+2a86 da40000d arg ll_reject_ind ,regb 
+2a87 20402353 call le_fifo_malloc_tx_ll 
+2a88 58000006 setarg le_err_pin_or_key_missing 
+2a89 e7e08005 istore 1 ,contw 
+2a8a 20600000 rtn 
+
+le_send_ping_rsp:
+2a8b da400013 arg ll_ping_rsp ,regb 
+2a8c 20202a9f branch le_send_ll_one_lenth 
+
+le_send_data_length_req:
+2a8d da400014 arg ll_length_req ,regb 
+2a8e 20202a90 branch le_send_data_length 
+
+le_send_data_length_res:
+2a8f da400015 arg ll_length_rsp ,regb 
+
+le_send_data_length:
+2a90 da200009 arg 9 ,rega 
+2a91 20402353 call le_fifo_malloc_tx_ll 
+2a92 6fe4444c fetch 8 ,mem_local_rx_max_octets 
+2a93 e7e40005 istore 8 ,contw 
+2a94 20600000 rtn 
+
+le_send_phy_rsp:
+2a95 da200003 arg 3 ,rega 
+2a96 da400017 arg ll_phy_rsp ,regb 
+2a97 20402353 call le_fifo_malloc_tx_ll 
+2a98 6fe0c442 fetch 1 ,mem_le_tx_phys 
+2a99 1fe17e07 and pdata ,0x07 ,pdata 
+2a9a e7e08005 istore 1 ,contw 
+2a9b 6fe0c443 fetch 1 ,mem_le_rx_phys 
+2a9c 1fe17e07 and pdata ,0x07 ,pdata 
+2a9d e7e08005 istore 1 ,contw 
+2a9e 20600000 rtn 
+
+le_send_ll_one_lenth:
+2a9f da200001 arg 1 ,rega 
+2aa0 20202353 branch le_fifo_malloc_tx_ll 
+
+g24_dispatch:
+2aa1 476fc03b bpatchx patch3b_7 ,mem_patch3b 
+2aa2 c513acab bmark1 mark_24g_rxmode ,g24_receive_dispatch 
+2aa3 20202ea5 branch g24_transmit_dispatch 
+
+g24_prep:
+2aa4 7844fc00 disable enable_crc 
+2aa5 7843fc00 disable enable_white 
+2aa6 58555555 setarg 0x555555 
+2aa7 98001e00 iforce crc24_init 
+2aa8 6fe0c839 fetch 1 ,mem_24g_ch 
+2aa9 20201ed1 branch le_prep + 5 
+
+g24_receive_packet:
+2aaa 4770403c bpatchx patch3c_0 ,mem_patch3c 
+2aab 6fe0c863 fetch 1 ,mem_24g_rx_phy 
+2aac 20401e9e call le_enable_phy_by_pdata 
+2aad 6fe2483b fetch 4 ,mem_24g_addr 
+2aae 98001200 iforce access 
+2aaf 204010ab call calc_mod_value_scale_le 
+2ab0 20401165 call set_sync_on 
+2ab1 6848c839 fetcht 1 ,mem_24g_ch 
+2ab2 20401ed6 call le_rf_rx_enable 
+
+g24_receive_rxon:
+2ab3 4770c03c bpatchx patch3c_1 ,mem_patch3c 
+2ab4 20402aa4 call g24_prep 
+2ab5 c5972ab9 bmark0 mark_ble_lr ,g24_receive_nolr 
+2ab6 783cfc00 pulse dewhiten_code_calc 
+2ab7 2000001e nop 30 
+2ab8 20402aa4 call g24_prep 
+
+g24_receive_nolr:
+2ab9 7857fc00 disable user3 
+2aba 7826fc00 enable decode_fec0 
+2abb 7830fc00 enable is_rx 
+2abc 78507c00 disable is_tx 
+2abd 78287c00 enable swfine 
+2abe 6fe14837 fetch 2 ,mem_24g_rx_window 
+2abf 98003600 iforce stop_watch 
+2ac0 37c18400 correlate null ,timeout 
+2ac1 242c2b01 nbranch g24_sync_timeout ,sync 
+2ac2 20404c9c call rf_debug_rx_sync_line 
+2ac3 c5172ac6 bmark1 mark_ble_lr ,g24_receive_skip_fec1 
+2ac4 7846fc00 disable decode_fec0 
+2ac5 7825fc00 enable decode_fec1 
+
+g24_receive_skip_fec1:
+2ac6 7823fc00 enable enable_white 
+2ac7 7824fc00 enable enable_crc 
+2ac8 20402afe call g24_receive_byte 
+2ac9 67e0c859 store 1 ,mem_24g_get_syncword_crc8 
+2aca 6848c858 fetcht 1 ,mem_24g_syncword_crc8 
+2acb 98467c00 isub temp ,null 
+2acc 2422ab03 nbranch g24_end_of_packet ,zero 
+2acd 280ffe2e isolate1 mark_ble_lr ,mark 
+2ace 2040aaf3 call g24_lr_receive_pdu_len ,true 
+2acf 20402afe call g24_receive_byte 
+2ad0 67e0c7a3 store 1 ,mem_24g_rxbuf 
+2ad1 c513aad6 bmark1 mark_24g_rxmode ,g24_receive_skip 
+2ad2 6fe0c7a3 fetch 1 ,mem_24g_rxbuf 
+2ad3 6848c835 fetcht 1 ,mem_24g_data_type 
+2ad4 a8400e00 icompare bits_data ,temp 
+2ad5 2420ab03 nbranch g24_end_of_packet ,true 
+
+g24_receive_skip:
+2ad6 20402afe call g24_receive_byte 
+2ad7 280ffe2e isolate1 mark_ble_lr ,mark 
+2ad8 2040aaf9 call g24_lr_receive_payload_len ,true 
+2ad9 e7e08005 istore 1 ,contw 
+2ada 1fe97e00 rshift3 pdata ,pdata 
+2adb 1fe1721f and pdata ,0x1f ,loopcnt 
+2adc 2022aae0 branch g24rx_nopayload ,zero 
+
+g24rx_loop:
+2add 20402afe call g24_receive_byte 
+2ade e7e08005 istore 1 ,contw 
+2adf c2002add loop g24rx_loop 
+
+g24rx_nopayload:
+2ae0 c513aae5 bmark1 mark_24g_rxmode ,g24_receive_skip_rssi 
+2ae1 18a22200 copy contw ,rega 
+2ae2 20402afe call g24_receive_byte 
+2ae3 67e0c86c store 1 ,mem_rssi_hex_received 
+2ae4 1a220a00 copy rega ,contw 
+
+g24_receive_skip_rssi:
+2ae5 09800018 parse demod ,bucket ,24 
+2ae6 1fef7e00 rshift32 pdata ,pdata 
+2ae7 1ff17e00 rshift16 pdata ,pdata 
+2ae8 e7e18005 istore 3 ,contw 
+2ae9 7845fc00 disable decode_fec1 
+2aea 280ffe27 isolate1 mark_24g_rxmode ,mark 
+2aeb 20409238 call save_rssi ,true 
+2aec 20232b03 branch g24_end_of_packet ,crc_failed 
+2aed 20404c9b call rf_debug_rx_crc_line 
+2aee 7837fc00 enable user3 
+2aef 20401fc0 call le_set_txfreq 
+2af0 c6138000 rtnmark1 mark_24g_rxmode 
+2af1 6fe0c86c fetch 1 ,mem_rssi_hex_received 
+2af2 20202e7d branch rssi_signal 
+
+g24_lr_receive_pdu_len:
+2af3 20402afe call g24_receive_byte 
+2af4 1fe0fffe increase -2 ,pdata 
+2af5 c513aaf7 bmark1 mark_24g_rxmode ,g24_lr_receive_pdu_norssi 
+2af6 1fe0ffff increase -1 ,pdata 
+
+g24_lr_receive_pdu_norssi:
+2af7 67e08964 store 1 ,mem_temp 
+2af8 20600000 rtn 
+
+g24_lr_receive_payload_len:
+2af9 1fe17e07 and_into 0x07 ,pdata 
+2afa 68488964 fetcht 1 ,mem_temp 
+2afb 18498400 lshift3 temp ,temp 
+2afc 9841fe00 ior temp ,pdata 
+2afd 20600000 rtn 
+
+g24_receive_byte:
+2afe 09800008 parse demod ,bucket ,8 
+2aff 19897e00 rshift3 pwindow ,pdata 
+2b00 20600000 rtn 
+
+g24_sync_timeout:
+2b01 280ffe27 isolate1 mark_24g_rxmode ,mark 
+2b02 2040ae95 call rssi_noise ,true 
+
+g24_end_of_packet:
+2b03 20401ec2 call le_disable 
+2b04 784dfc00 disable encode_fec1 
+2b05 7845fc00 disable decode_fec1 
+2b06 20200e79 branch end_of_packet 
+
+g24_set_freq_tx:
+2b07 20401165 call set_sync_on 
+2b08 6848c839 fetcht 1 ,mem_24g_ch 
+2b09 202011d2 branch set_freq_tx 
+
+g24_transmit:
+2b0a 4771403c bpatchx patch3c_2 ,mem_patch3c 
+2b0b 6fe0c864 fetch 1 ,mem_24g_tx_phy 
+2b0c 20401e9e call le_enable_phy_by_pdata 
+2b0d 6fe2483b fetch 4 ,mem_24g_addr 
+2b0e 98001200 iforce access 
+2b0f 20402aa4 call g24_prep 
+2b10 20402b07 call g24_set_freq_tx 
+2b11 79202a00 set1 txgfsk ,radio_ctrl 
+2b12 782efc00 enable encode_fec0 
+2b13 78307c00 enable is_tx 
+2b14 7850fc00 disable is_rx 
+2b15 20404ca2 call rf_debug_tx_on_line 
+2b16 785d7c00 disable lr_s2en 
+2b17 c5172b37 bmark1 mark_ble_lr ,g24_transmit_lr 
+2b18 c516ab49 bmark1 mark_ble_2m ,g24_transmit_2m 
+2b19 19317e00 rshift16 access ,pdata 
+2b1a 1fecfe00 rshift8 pdata ,pdata 
+2b1b 1ff1fe00 rshift4 pdata ,pdata 
+2b1c 08008628 inject mod ,40 
+
+g24_transmit_packet:
+2b1d c5172b20 bmark1 mark_ble_lr ,g24_transmit_nolr 
+2b1e 784efc00 disable encode_fec0 
+2b1f 782dfc00 enable encode_fec1 
+
+g24_transmit_nolr:
+2b20 7823fc00 enable enable_white 
+2b21 7824fc00 enable enable_crc 
+2b22 6fe0c836 fetch 1 ,mem_24g_txlen 
+2b23 98007200 iforce loopcnt 
+2b24 d8c047e5 arg mem_24g_txpayload ,contr 
+
+g24tr_loop:
+2b25 efe08006 ifetch 1 ,contr 
+2b26 08008608 inject mod ,8 
+2b27 c2002b25 loop g24tr_loop 
+2b28 78247c00 enable enable_parity 
+2b29 08008618 inject mod ,24 
+2b2a 78447c00 disable enable_parity 
+2b2b c5972b2f bmark0 mark_ble_lr ,g24_transmit_skip 
+2b2c 7843fc00 disable enable_white 
+2b2d 58000000 setarg 0 
+2b2e 08008603 inject mod ,3 
+
+g24_transmit_skip:
+2b2f 37d38200 until null ,tx_clear 
+2b30 20000064 nop 100 
+2b31 785d7c00 disable lr_s2en 
+2b32 784efc00 disable encode_fec0 
+2b33 784dfc00 disable encode_fec1 
+2b34 785c7c00 disable encode_fec3 
+2b35 20401165 call set_sync_on 
+2b36 20204ca0 branch rf_debug_tx_off_line 
+
+g24_transmit_lr:
+2b37 df20000a arg 10 ,loopcnt 
+
+g24_transmit_lr_preamble_loop:
+2b38 5800003c setarg 0x3c 
+2b39 08008608 inject mod ,8 
+2b3a c2002b38 loop g24_transmit_lr_preamble_loop 
+2b3b 784efc00 disable encode_fec0 
+2b3c 783c7c00 enable encode_fec3 
+2b3d 19317e00 rshift16 access ,pdata 
+2b3e 1ff17e00 rshift16 pdata ,pdata 
+2b3f 1ff1fe00 rshift4 pdata ,pdata 
+2b40 08008620 inject mod ,32 
+2b41 c516ab46 bmark1 mark_ble_lr_s8 ,g24_transmit_lr_s8 
+
+g24_transmit_lr_s2:
+2b42 58000001 setarg 1 
+2b43 08008605 inject mod ,5 
+2b44 783d7c00 enable lr_s2en 
+2b45 20202b1d branch g24_transmit_packet 
+
+g24_transmit_lr_s8:
+2b46 58000000 setarg 0 
+2b47 08008605 inject mod ,5 
+2b48 20202b1d branch g24_transmit_packet 
+
+g24_transmit_2m:
+2b49 6fe0c1ed fetch 1 ,mem_system_clk 
+2b4a 1fe37200 rshift pdata ,loopcnt 
+
+g24_transmit_2m_dealy:
+2b4b 20000002 nop 2 
+2b4c c2002b4b loop g24_transmit_2m_dealy 
+2b4d 19317e00 rshift16 access ,pdata 
+2b4e 1fecfe00 rshift8 pdata ,pdata 
+2b4f 1ff18400 rshift4 pdata ,temp 
+2b50 18427e00 copy temp ,pdata 
+2b51 08008608 inject mod ,8 
+2b52 18427e00 copy temp ,pdata 
+2b53 08008628 inject mod ,40 
+2b54 20202b1d branch g24_transmit_packet 
+
+g24_transmit_prep:
+2b55 6fe0c864 fetch 1 ,mem_24g_tx_phy 
+2b56 c2812b74 bbit1 bit_le_coded_phy ,g24_lr_transmit_prep 
+2b57 6fe0c834 fetch 1 ,mem_24g_datalen 
+2b58 1fe0fe03 increase 3 ,pdata 
+2b59 67e0c836 store 1 ,mem_24g_txlen 
+2b5a 6fe0c858 fetch 1 ,mem_24g_syncword_crc8 
+2b5b 67e0c7e5 store 1 ,mem_24g_txpayload 
+2b5c 6fe0c835 fetch 1 ,mem_24g_data_type 
+2b5d e7e08005 istore 1 ,contw 
+2b5e 6fe0c834 fetch 1 ,mem_24g_datalen 
+
+g24_transmit_prep_pdu:
+2b5f 1fe9fe00 lshift3 pdata ,pdata 
+2b60 6848c82a fetcht 1 ,mem_24g_pid 
+2b61 18410403 and temp ,0x03 ,temp 
+2b62 18438400 lshift temp ,temp 
+2b63 9841fe00 ior temp ,pdata 
+2b64 6848c82b fetcht 1 ,mem_24g_no_ack 
+2b65 9840fe00 iadd temp ,pdata 
+2b66 e7e08005 istore 1 ,contw 
+2b67 6fe0c834 fetch 1 ,mem_24g_datalen 
+2b68 98007200 iforce loopcnt 
+2b69 d8c047c5 arg mem_24g_txbuf ,contr 
+2b6a 20407d6d call memcpy 
+2b6b c6938000 rtnmark0 mark_24g_rxmode 
+2b6c 6fe08019 fetch 1 ,mem_rssi_hex 
+2b6d e7e08005 istore 1 ,contw 
+2b6e 6fe0c864 fetch 1 ,mem_24g_tx_phy 
+2b6f c3810000 rtnbit1 bit_le_coded_phy 
+2b70 6fe0c836 fetch 1 ,mem_24g_txlen 
+2b71 1fe0fe01 increase 1 ,pdata 
+2b72 67e0c836 store 1 ,mem_24g_txlen 
+2b73 20600000 rtn 
+
+g24_lr_transmit_prep:
+2b74 6fe0c834 fetch 1 ,mem_24g_datalen 
+2b75 1fe0fe04 increase 4 ,pdata 
+2b76 c593ab78 bmark0 mark_24g_rxmode ,g24_lr_transmit_prep_skip 
+2b77 1fe0fe01 increase 1 ,pdata 
+
+g24_lr_transmit_prep_skip:
+2b78 67e0c836 store 1 ,mem_24g_txlen 
+2b79 6fe0c858 fetch 1 ,mem_24g_syncword_crc8 
+2b7a 67e0c7e5 store 1 ,mem_24g_txpayload 
+2b7b 6fe0c836 fetch 1 ,mem_24g_txlen 
+2b7c 1fe0fffe increase -2 ,pdata 
+2b7d e7e08005 istore 1 ,contw 
+2b7e 6fe0c835 fetch 1 ,mem_24g_data_type 
+2b7f e7e08005 istore 1 ,contw 
+2b80 58000000 setarg 0 
+2b81 20202b5f branch g24_transmit_prep_pdu 
+
+g24_read_len_pid_crc:
+2b82 6fe0c7a4 fetch 1 ,mem_24g_rxbuf + 1 
+2b83 1fe97e00 rshift3 pdata ,pdata 
+2b84 67e0c829 store 1 ,mem_24g_rxdata_length 
+2b85 1fe0fe01 increase 1 ,pdata 
+2b86 d8c047a4 arg mem_24g_rxbuf + 1 ,contr 
+2b87 98c08c00 iadd contr ,contr 
+2b88 efe18006 ifetch 3 ,contr 
+2b89 67e1c82c store 3 ,mem_24g_sta_crc 
+2b8a 6fe0c7a4 fetch 1 ,mem_24g_rxbuf + 1 
+2b8b 1fe37e00 rshift pdata ,pdata 
+2b8c 1fe17e03 and pdata ,0x03 ,pdata 
+2b8d 67e0c832 store 1 ,mem_24g_sta_pid 
+2b8e 20600000 rtn 
+
+g24_ch:
+2b8f 6848c83a fetcht 1 ,mem_24g_current_ch_number 
+2b90 20402b93 call g24_ch_map_size 
+2b91 6048c83a storet 1 ,mem_24g_current_ch_number 
+2b92 20600000 rtn 
+
+g24_ch_map_size:
+2b93 20402b97 call g24_ch_calc 
+2b94 18408401 increase 1 ,temp 
+2b95 18410403 and_into 3 ,temp 
+2b96 20600000 rtn 
+
+g24_ch_calc:
+2b97 6fe0c83b fetch 1 ,mem_24g_addr 
+2b98 1fe17e03 and_into 0x03 ,pdata 
+2b99 1fefa204 mul32 pdata ,4 ,rega 
+2b9a 5800483f setarg mem_24g_ch_map1 
+2b9b 9a20fe00 iadd rega ,pdata 
+2b9c 98408c00 iadd temp ,contr 
+2b9d efe08006 ifetch 1 ,contr 
+2b9e 67e0c839 store 1 ,mem_24g_ch 
+2b9f 20600000 rtn 
+
+g24_update_addr_and_synccrc8:
+2ba0 67e2483b store 4 ,mem_24g_addr 
+
+g24_syncword_crc8:
+2ba1 da200000 arg 0 ,rega 
+2ba2 df200004 arg 4 ,loopcnt 
+2ba3 d8c0483b arg mem_24g_addr ,contr 
+
+g24_syncword_crc8_loop:
+2ba4 efe08006 ifetch 1 ,contr 
+2ba5 9a20a200 iadd rega ,rega 
+2ba6 c2002ba4 loop g24_syncword_crc8_loop 
+2ba7 1a227e00 copy rega ,pdata 
+2ba8 67e14856 store 2 ,mem_24g_syncword 
+2ba9 6fe0c856 fetch 1 ,mem_24g_syncword 
+2baa 6848c857 fetcht 1 ,mem_24g_syncword + 1 
+2bab 9840fe00 iadd temp ,pdata 
+2bac 67e0c858 store 1 ,mem_24g_syncword_crc8 
+2bad 20600000 rtn 
+
+g24_timer_check:
+2bae 20407e64 call disable_user 
+2baf 684a484f fetcht 4 ,mem_24g_tx_btclk 
+2bb0 1c427e00 copy clkn_bt ,pdata 
+2bb1 98467c00 isub temp ,null 
+2bb2 24412bbd ncall g24_timer_timeout ,positive 
+2bb3 1fe22400 copy pdata ,regb 
+2bb4 6fe2484f fetch 4 ,mem_24g_tx_btclk 
+2bb5 6848c853 fetcht 1 ,mem_24g_interval 
+2bb6 98408400 iadd temp ,temp 
+2bb7 1a427e00 copy regb ,pdata 
+2bb8 98467c00 isub temp ,null 
+2bb9 24610000 nrtn positive 
+2bba 793ffe1c set0 28 ,pdata 
+2bbb 67e2484f store 4 ,mem_24g_tx_btclk 
+2bbc 20207e62 branch enable_user 
+
+g24_timer_timeout:
+2bbd 20628000 rtn zero 
+2bbe 79207e1c set1 28 ,pdata 
+2bbf 20600000 rtn 
+
+g24_timer_init:
+2bc0 58000000 setarg 0 
+2bc1 67e2484f store 4 ,mem_24g_tx_btclk 
+2bc2 20600000 rtn 
+
+g24_pair_timeout_timer:
+2bc3 da604871 arg mem_24g_pair_timeout ,regc 
+2bc4 da402eff arg g24_stop_24g_mode ,regb 
+2bc5 2020304b branch timer_single_step_2b 
+
+g24_pair_start:
+2bc6 79200026 set1 mark_24g ,mark 
+2bc7 6fe0c88f fetch 1 ,mem_24g_conn_sm 
+2bc8 793ffe02 set0 state_24g_reconn ,pdata 
+2bc9 79207e01 set1 state_24g_pair ,pdata 
+2bca 67e0c88f store 1 ,mem_24g_conn_sm 
+2bcb 58000000 setarg 0 
+2bcc 67e14875 store 2 ,mem_24g_reconn_timeout 
+2bcd 6fe1486f fetch 2 ,mem_24g_pair_timeout_init 
+2bce 67e14871 store 2 ,mem_24g_pair_timeout 
+2bcf 70486e00 jam 0 ,mem_24g_pair_no_ack 
+2bd0 20402c0a call g24_pair_sm_reinit 
+
+g24_pair_init_param:
+2bd1 70482a00 jam 0 ,mem_24g_pid 
+2bd2 6fe0c869 fetch 1 ,mem_24g_pair_ch 
+2bd3 67e0c839 store 1 ,mem_24g_ch 
+2bd4 6fe0c86a fetch 1 ,mem_24g_pair_tx_power 
+2bd5 67e0c1eb store 1 ,mem_tx_power 
+2bd6 6fe24865 fetch 4 ,mem_24g_pair_addr 
+2bd7 20202ba0 branch g24_update_addr_and_synccrc8 
+
+g24_pair_dispatch:
+2bd8 4771c03c bpatchx patch3c_3 ,mem_patch3c 
+2bd9 6fe0c86d fetch 1 ,mem_24g_pair_sm 
+2bda c07fac2c beq state_24g_pairing_success ,g24_pair_exit 
+2bdb c000abe0 beq state_24g_pairing_1 ,g24_pair_sm_1 
+2bdc c0012be2 beq state_24g_pairing_2 ,g24_pair_sm_2 
+2bdd c001abe8 beq state_24g_pairing_3 ,g24_pair_sm_3 
+2bde c0022bee beq state_24g_pairing_4 ,g24_pair_sm_4 
+2bdf 20600000 rtn 
+
+g24_pair_sm_1:
+2be0 7047c5ff jam datatype_attemp ,mem_24g_txbuf 
+2be1 20202bef branch g24_pair_sm_prep 
+
+g24_pair_sm_2:
+2be2 6fe0c85a fetch 1 ,mem_24g_pair_switch 
+2be3 203a2be6 branch g24_pair_sm_2_skip ,blank 
+2be4 6fe24896 fetch 4 ,mem_24g_device_addr 
+2be5 20402ba0 call g24_update_addr_and_synccrc8 
+
+g24_pair_sm_2_skip:
+2be6 7047c5aa jam datatype_bind ,mem_24g_txbuf 
+2be7 20202bef branch g24_pair_sm_prep 
+
+g24_pair_sm_3:
+2be8 7047c555 jam datatype_config ,mem_24g_txbuf 
+2be9 6fe0c85a fetch 1 ,mem_24g_pair_switch 
+2bea 203a2bef branch g24_pair_sm_prep ,blank 
+2beb 6fe2487f fetch 4 ,mem_24g_receiver_addr 
+2bec 67e247c7 store 4 ,mem_24g_txbuf + 2 
+2bed 20202bf1 branch g24_pair_sm_common 
+
+g24_pair_sm_4:
+2bee 7047c522 jam datatype_ok ,mem_24g_txbuf 
+
+g24_pair_sm_prep:
+2bef 6fe24896 fetch 4 ,mem_24g_device_addr 
+2bf0 67e247c7 store 4 ,mem_24g_txbuf + 2 
+
+g24_pair_sm_common:
+2bf1 6fe0c835 fetch 1 ,mem_24g_data_type 
+2bf2 1fe17e07 and_into bits_data ,pdata 
+2bf3 67e0c7c6 store 1 ,mem_24g_txbuf + 1 
+2bf4 7047cb00 jam 0 ,mem_24g_txbuf + 6 
+2bf5 70483407 jam 7 ,mem_24g_datalen 
+2bf6 20402b55 call g24_transmit_prep 
+2bf7 20402ee1 call g24_transmit_receive_ack 
+2bf8 242c2c04 nbranch g24_pair_fail ,sync 
+2bf9 2437ac04 nbranch g24_pair_fail ,user3 
+2bfa 20402e34 call g24_txbuf_clear 
+2bfb 20402ef6 call g24_ackpayload_parse 
+2bfc 4772403c bpatchx patch3c_4 ,mem_patch3c 
+2bfd 6fe0c86d fetch 1 ,mem_24g_pair_sm 
+2bfe c17f8000 rtneq state_24g_pairing_success 
+2bff c000ac0f beq state_24g_pairing_1 ,g24_pair_sm_1_waiting_ack 
+2c00 c0012c11 beq state_24g_pairing_2 ,g24_pair_sm_2_waiting_ack 
+2c01 c001ac17 beq state_24g_pairing_3 ,g24_pair_sm_3_waiting_ack 
+2c02 c0022c1f beq state_24g_pairing_4 ,g24_pair_sm_4_waiting_ack 
+2c03 20600000 rtn 
+
+g24_pair_fail:
+2c04 20600000 rtn 
+2c05 6fe0c86e fetch 1 ,mem_24g_pair_no_ack 
+2c06 1fe0fe01 increase 1 ,pdata 
+2c07 67e0c86e store 1 ,mem_24g_pair_no_ack 
+2c08 c1b20000 rtnne 100 
+2c09 70486e00 jam 0 ,mem_24g_pair_no_ack 
+
+g24_pair_sm_reinit:
+2c0a 70486d02 jam state_24g_pairing_2 ,mem_24g_pair_sm 
+2c0b 6fe0c85a fetch 1 ,mem_24g_pair_switch 
+2c0c 207a0000 rtn blank 
+2c0d 70486d01 jam state_24g_pairing_1 ,mem_24g_pair_sm 
+2c0e 20600000 rtn 
+
+g24_pair_sm_1_waiting_ack:
+2c0f 70486d02 jam state_24g_pairing_2 ,mem_24g_pair_sm 
+2c10 20202edd branch g24_transmit_abandon 
+
+g24_pair_sm_2_waiting_ack:
+2c11 6fe0c85a fetch 1 ,mem_24g_pair_switch 
+2c12 203a2c15 branch g24_pair_sm_2_waiting_ack_skip ,blank 
+2c13 6fe2480b fetch 4 ,mem_24g_rxpayload + 2 
+2c14 67e2487f store 4 ,mem_24g_receiver_addr 
+
+g24_pair_sm_2_waiting_ack_skip:
+2c15 70486d03 jam state_24g_pairing_3 ,mem_24g_pair_sm 
+2c16 20202edd branch g24_transmit_abandon 
+
+g24_pair_sm_3_waiting_ack:
+2c17 6fe0c85a fetch 1 ,mem_24g_pair_switch 
+2c18 203a2c1d branch g24_pair_sm_3_waiting_ack_skip ,blank 
+2c19 6fe2480b fetch 4 ,mem_24g_rxpayload + 2 
+2c1a 684a4896 fetcht 4 ,mem_24g_device_addr 
+2c1b 98467c00 isub temp ,null 
+2c1c 24628000 nrtn zero 
+
+g24_pair_sm_3_waiting_ack_skip:
+2c1d 70486d04 jam state_24g_pairing_4 ,mem_24g_pair_sm 
+2c1e 20202edd branch g24_transmit_abandon 
+
+g24_pair_sm_4_waiting_ack:
+2c1f 6fe0c85a fetch 1 ,mem_24g_pair_switch 
+2c20 203a2c25 branch g24_pair_sm_4_waiting_ack_skip ,blank 
+2c21 6fe2480b fetch 4 ,mem_24g_rxpayload + 2 
+2c22 684a487f fetcht 4 ,mem_24g_receiver_addr 
+2c23 98467c00 isub temp ,null 
+2c24 24628000 nrtn zero 
+
+g24_pair_sm_4_waiting_ack_skip:
+2c25 70486dff jam state_24g_pairing_success ,mem_24g_pair_sm 
+2c26 70095b39 jam bt_evt_24g_pairing_complete ,mem_fifo_temp 
+2c27 2040789f call ui_ipc_send_event 
+2c28 58000000 setarg 0 
+2c29 67e14871 store 2 ,mem_24g_pair_timeout 
+2c2a 6fe2480b fetch 4 ,mem_24g_rxpayload + 2 
+2c2b 20402ba0 call g24_update_addr_and_synccrc8 
+
+g24_pair_exit:
+2c2c 6fe0c88f fetch 1 ,mem_24g_conn_sm 
+2c2d 793ffe01 set0 state_24g_pair ,pdata 
+2c2e 67e0c88f store 1 ,mem_24g_conn_sm 
+2c2f 20202edd branch g24_transmit_abandon 
+
+g24_bind_mode_enable:
+2c30 7048c901 jam dongle_bind ,mem_24g_work_mode 
+2c31 7048c800 jam clear_init ,mem_24g_mode_init 
+2c32 20600000 rtn 
+
+g24_bind_init:
+2c33 6fe0c8c8 fetch 1 ,mem_24g_mode_init 
+2c34 c3808000 rtnbit1 dongle_bind 
+2c35 79207e01 set1 dongle_bind ,pdata 
+2c36 67e0c8c8 store 1 ,mem_24g_mode_init 
+2c37 58000000 setarg 0 
+2c38 67e1c86c store 3 ,mem_24g_device1_bind_step 
+2c39 67e24877 store 4 ,mem_24g_transmitter_addr 
+2c3a 7048c301 jam 1 ,mem_24g_ackpayload_enable 
+2c3b 20202bd1 branch g24_pair_init_param 
+
+g24_bind_ackpayload_prep:
+2c3c 7048c301 jam 1 ,mem_24g_ackpayload_enable 
+2c3d 70483408 jam 0x08 ,mem_24g_datalen 
+2c3e d8c0486f arg mem_24g_bind_payload ,contr 
+2c3f d8a047c5 arg mem_24g_txbuf ,contw 
+2c40 20207d14 branch memcpy8 
+
+g24_bind_data_process:
+2c41 20402cc4 call g24_rx_interrupt_clear 
+2c42 20402aaa call g24_receive_packet 
+2c43 2437acc4 nbranch g24_rx_interrupt_clear ,user3 
+2c44 20402c4e call g24_bind_data_parse 
+2c45 24342c4c nbranch g24_bind_data_error ,user 
+2c46 20402cf2 call g24_transmit_ack 
+2c47 6fe0c85a fetch 1 ,mem_24g_pair_switch 
+2c48 207a0000 rtn blank 
+2c49 6fe24877 fetch 4 ,mem_24g_transmitter_addr 
+2c4a 207a0000 rtn blank 
+2c4b 20202ba0 branch g24_update_addr_and_synccrc8 
+
+g24_bind_data_error:
+2c4c 20402cc4 call g24_rx_interrupt_clear 
+2c4d 20202b03 branch g24_end_of_packet 
+
+g24_bind_data_parse:
+2c4e 7048d505 jam bind_mode_continue ,mem_24g_bind_mode_continue 
+2c4f 20407e64 call disable_user 
+2c50 d8c047a3 arg mem_24g_rxbuf ,contr 
+2c51 d8a0489b arg mem_24g_rxdata_temp ,contw 
+2c52 20407d14 call memcpy8 
+2c53 6fe0c89d fetch 1 ,mem_24g_rxdata_temp + 2 
+2c54 c0552c59 beq datatype_bind ,g24_bind_first_step 
+2c55 c02aac66 beq datatype_config ,g24_bind_second_step 
+2c56 c0112c83 beq datatype_ok ,g24_bind_third_step 
+2c57 c07fae52 beq datatype_attemp ,g24_data_attemp 
+2c58 20202cc4 branch g24_rx_interrupt_clear 
+
+g24_bind_first_step:
+2c59 6fe0c89e fetch 1 ,mem_24g_rxdata_temp + 3 
+2c5a c000ac5d beq datatype_device1 ,g24_bind_first_step_device1 
+2c5b c0012c63 beq datatype_device2 ,g24_bind_first_step_device2 
+2c5c 20600000 rtn 
+
+g24_bind_first_step_device1:
+2c5d 70486c01 jam 1 ,mem_24g_device1_bind_step 
+
+g24_bind_dvc1_payload_cfg:
+2c5e 70486f01 jam datatype_device1 ,mem_24g_bind_payload 
+
+g24_bind_payload_cfg:
+2c5f 70487080 jam 0x80 ,mem_24g_bind_payload + 1 
+2c60 6fe340a8 fetch 6 ,mem_lap 
+2c61 67e34871 store 6 ,mem_24g_bind_payload + 2 
+2c62 20207e62 branch enable_user 
+
+g24_bind_first_step_device2:
+2c63 70486d01 jam 1 ,mem_24g_device2_bind_step 
+
+g24_bind_dvc2_payload_cfg:
+2c64 70486f02 jam datatype_device2 ,mem_24g_bind_payload 
+2c65 20202c5f branch g24_bind_payload_cfg 
+
+g24_bind_second_step:
+2c66 6fe0c85a fetch 1 ,mem_24g_pair_switch 
+2c67 203a2c6c branch g24_bind_second_step_skip ,blank 
+2c68 6fe2489f fetch 4 ,mem_24g_rxdata_temp + 4 
+2c69 684a40a8 fetcht 4 ,mem_lap 
+2c6a 98467c00 isub temp ,null 
+2c6b 24628000 nrtn zero 
+
+g24_bind_second_step_skip:
+2c6c 6fe0c89e fetch 1 ,mem_24g_rxdata_temp + 3 
+2c6d c000ac70 beq datatype_device1 ,g24_bind_second_step_device1 
+2c6e c0012c7b beq datatype_device2 ,g24_bind_second_step_device2 
+2c6f 20600000 rtn 
+
+g24_bind_second_step_device1:
+2c70 6fe0c86c fetch 1 ,mem_24g_device1_bind_step 
+2c71 c000ac73 beq 1 ,g24_bind_dvc1_step_set2 
+2c72 20600000 rtn 
+
+g24_bind_dvc1_step_set2:
+2c73 70486c02 jam 2 ,mem_24g_device1_bind_step 
+2c74 6fe0c85a fetch 1 ,mem_24g_pair_switch 
+2c75 203a2c5e branch g24_bind_dvc1_payload_cfg ,blank 
+
+g24_bind_dvc1_payload_cfg_transmitter_addr:
+2c76 70486f01 jam datatype_device1 ,mem_24g_bind_payload 
+
+g24_bind_payload_cfg_transmitter_addr:
+2c77 70487080 jam 0x80 ,mem_24g_bind_payload + 1 
+2c78 6fe24877 fetch 4 ,mem_24g_transmitter_addr 
+2c79 67e24871 store 4 ,mem_24g_bind_payload + 2 
+2c7a 20207e62 branch enable_user 
+
+g24_bind_second_step_device2:
+2c7b 6fe0c86d fetch 1 ,mem_24g_device2_bind_step 
+2c7c c000ac7e beq 1 ,g24_bind_dvc2_step_set2 
+2c7d 20600000 rtn 
+
+g24_bind_dvc2_step_set2:
+2c7e 70486d02 jam 2 ,mem_24g_device2_bind_step 
+2c7f 6fe0c85a fetch 1 ,mem_24g_pair_switch 
+2c80 203a2c64 branch g24_bind_dvc2_payload_cfg ,blank 
+2c81 70486f02 jam datatype_device2 ,mem_24g_bind_payload 
+2c82 20202c77 branch g24_bind_payload_cfg_transmitter_addr 
+
+g24_bind_third_step:
+2c83 6fe0c85a fetch 1 ,mem_24g_pair_switch 
+2c84 203a2c89 branch g24_bind_third_step_skip ,blank 
+2c85 6fe2489f fetch 4 ,mem_24g_rxdata_temp + 4 
+2c86 684a4877 fetcht 4 ,mem_24g_transmitter_addr 
+2c87 98467c00 isub temp ,null 
+2c88 24628000 nrtn zero 
+
+g24_bind_third_step_skip:
+2c89 6fe0c89e fetch 1 ,mem_24g_rxdata_temp + 3 
+2c8a c000ac8d beq datatype_device1 ,g24_bind_third_step_device1 
+2c8b c0012c97 beq datatype_device2 ,g24_bind_third_step_device2 
+2c8c 20600000 rtn 
+
+g24_bind_third_step_device1:
+2c8d 6fe0c86c fetch 1 ,mem_24g_device1_bind_step 
+2c8e c0012c90 beq 2 ,g24_bind_dvc1_step_success 
+2c8f 20600000 rtn 
+
+g24_bind_dvc1_step_success:
+2c90 20402c5e call g24_bind_dvc1_payload_cfg 
+2c91 6fe0c86e fetch 1 ,mem_24g_bind_device_status 
+2c92 1fe1fe01 or_into 0x01 ,pdata 
+2c93 67e0c86e store 1 ,mem_24g_bind_device_status 
+
+g24_bind_exit:
+2c94 58000000 setarg 0 
+2c95 67e1486c store 2 ,mem_24g_device1_bind_step 
+2c96 20600000 rtn 
+
+g24_bind_third_step_device2:
+2c97 6fe0c86d fetch 1 ,mem_24g_device2_bind_step 
+2c98 c0802c9a bne 0 ,g24_bind_dvc2_step_success 
+2c99 20600000 rtn 
+
+g24_bind_dvc2_step_success:
+2c9a 20402c64 call g24_bind_dvc2_payload_cfg 
+2c9b 6fe0c86e fetch 1 ,mem_24g_bind_device_status 
+2c9c 1fe1fe02 or_into 0x02 ,pdata 
+2c9d 67e0c86e store 1 ,mem_24g_bind_device_status 
+2c9e 20402c94 call g24_bind_exit 
+
+g24_store_dvc2_bind_flag:
+2c9f 6fe0c09a fetch 1 ,mem_device_option 
+2ca0 c1820000 rtnne dvc_op_dongle 
+2ca1 6fe0c8d7 fetch 1 ,mem_dg_kb_bind_flag 
+2ca2 c12d0000 rtneq dongle_kb_bind_success 
+2ca3 7048d75a jam dongle_kb_bind_success ,mem_dg_kb_bind_flag 
+2ca4 204034f1 call dongle_set_kb_bind_addr_eeprom 
+2ca5 20405e1b call iicd_write_protect_eep_data 
+2ca6 20205dd9 branch soft_reset_chip 
+
+g24_receive_init:
+2ca7 79200027 set1 mark_24g_rxmode ,mark 
+2ca8 6fe0c1eb fetch 1 ,mem_tx_power 
+2ca9 67e0c8d6 store 1 ,mem_tx_power_temp 
+2caa 20202e88 branch rssi_receiver_buff_init 
+
+g24_receive_dispatch:
+2cab 6fe14893 fetch 2 ,mem_cb_24g_receive_process 
+2cac 20207e13 branch callback_func 
+
+g24_ackpayload_prep:
+2cad 70483400 jam 0 ,mem_24g_datalen 
+2cae 6fe0c8c3 fetch 1 ,mem_24g_ackpayload_enable 
+2caf 207a0000 rtn blank 
+2cb0 6fe14895 fetch 2 ,mem_cb_24g_ackpayload 
+2cb1 20207e13 branch callback_func 
+
+g24_receive_packet_start:
+2cb2 20402cef call g24_receive_transmit_ack 
+2cb3 2437acc4 nbranch g24_rx_interrupt_clear ,user3 
+
+g24_receive_packet_parse:
+2cb4 20402ce1 call g24_receive_packet_parse_pid_crc 
+2cb5 24342cc4 nbranch g24_rx_interrupt_clear ,user 
+2cb6 6fe0c829 fetch 1 ,mem_24g_rxdata_length 
+2cb7 203a2cc4 branch g24_rx_interrupt_clear ,blank 
+2cb8 1fe0fe02 increase 2 ,pdata 
+2cb9 98007200 iforce loopcnt 
+2cba d8c047a3 arg mem_24g_rxbuf ,contr 
+2cbb d8a0489b arg mem_24g_rxdata_temp ,contw 
+2cbc 20407d6d call memcpy 
+2cbd 7048c600 jam 0 ,mem_24g_mode_switch 
+2cbe 6fe0c8c5 fetch 1 ,mem_24g_pair_mode 
+2cbf 205a2cfc call g24_enable_nodata_timer ,blank 
+2cc0 6fe0c89d fetch 1 ,mem_24g_rxdata_temp + 2 
+2cc1 c000acc7 beq datatype_device1 ,g24_data_device1 
+2cc2 c0012cd5 beq datatype_device2 ,g24_data_device2 
+2cc3 c07fae52 beq datatype_attemp ,g24_data_attemp 
+
+g24_rx_interrupt_clear:
+2cc4 d8a047a3 arg mem_24g_rxbuf ,contw 
+2cc5 df200042 arg 66 ,loopcnt 
+2cc6 20207d34 branch clear_mem 
+
+g24_data_device1:
+2cc7 20402df0 call g24_ch_timer_reinit 
+2cc8 6fe0c8bd fetch 1 ,mem_24g_abort_packet 
+2cc9 6848c89b fetcht 1 ,mem_24g_rxdata_temp 
+2cca 284ffe03 isolate1 bit_abort ,temp 
+2ccb 7920fe00 setflag true ,0 ,pdata 
+2ccc 67e0c8bd store 1 ,mem_24g_abort_packet 
+2ccd c000acda beq 1 ,g24_data_attemp_device1_abort 
+2cce 6fe0c8c4 fetch 1 ,mem_24g_hop_packet 
+2ccf 6848c89b fetcht 1 ,mem_24g_rxdata_temp 
+2cd0 284ffe04 isolate1 bit_hop ,temp 
+2cd1 7920fe00 setflag true ,0 ,pdata 
+2cd2 67e0c8c4 store 1 ,mem_24g_hop_packet 
+2cd3 6fe14897 fetch 2 ,mem_cb_24g_data_device1 
+2cd4 20207e13 branch callback_func 
+
+g24_data_device2:
+2cd5 6848c89b fetcht 1 ,mem_24g_rxdata_temp 
+2cd6 284ffe03 isolate1 bit_abort ,temp 
+2cd7 2020acdf branch g24_data_attemp_device2_abort ,true 
+2cd8 6fe14899 fetch 2 ,mem_cb_24g_data_device2 
+2cd9 20207e13 branch callback_func 
+
+g24_data_attemp_device1_abort:
+2cda 6fe0c09a fetch 1 ,mem_device_option 
+2cdb 1fe67c0e sub pdata ,dvc_op_car ,null 
+2cdc 2042b32d call car_stop_blink ,zero 
+2cdd 6fe248a5 fetch 4 ,mem_24g_rxdata_temp + 10 
+2cde 20202e59 branch g24_store_device1_addr 
+
+g24_data_attemp_device2_abort:
+2cdf 6fe248a5 fetch 4 ,mem_24g_rxdata_temp + 10 
+2ce0 20202e5e branch g24_store_device2_addr 
+
+g24_receive_packet_parse_pid_crc:
+2ce1 20407e64 call disable_user 
+2ce2 6fe0c832 fetch 1 ,mem_24g_sta_pid 
+2ce3 6848c833 fetcht 1 ,mem_24g_last_pid 
+2ce4 98467c00 isub temp ,null 
+2ce5 2442fe62 ncall enable_user ,zero 
+2ce6 6fe0c832 fetch 1 ,mem_24g_sta_pid 
+2ce7 67e0c833 store 1 ,mem_24g_last_pid 
+2ce8 6fe1c82c fetch 3 ,mem_24g_sta_crc 
+2ce9 6849c82f fetcht 3 ,mem_24g_last_crc 
+2cea 98467c00 isub temp ,null 
+2ceb 2442fe62 ncall enable_user ,zero 
+2cec 6fe1c82c fetch 3 ,mem_24g_sta_crc 
+2ced 67e1c82f store 3 ,mem_24g_last_crc 
+2cee 20600000 rtn 
+
+g24_receive_transmit_ack:
+2cef 20402cc4 call g24_rx_interrupt_clear 
+2cf0 20402aaa call g24_receive_packet 
+2cf1 24778000 nrtn user3 
+
+g24_transmit_ack:
+2cf2 6fe0c7a3 fetch 1 ,mem_24g_rxbuf 
+2cf3 67e0c835 store 1 ,mem_24g_data_type 
+2cf4 20402b82 call g24_read_len_pid_crc 
+2cf5 6fe0c7a4 fetch 1 ,mem_24g_rxbuf + 1 
+2cf6 2feffe00 isolate1 bit_ack_24g ,pdata 
+2cf7 2020acfb branch g24tx_no_ack ,true 
+
+g24tx_with_ack:
+2cf8 20402cad call g24_ackpayload_prep 
+2cf9 20402b55 call g24_transmit_prep 
+2cfa 20402b0a call g24_transmit 
+
+g24tx_no_ack:
+2cfb 20202b03 branch g24_end_of_packet 
+
+g24_enable_nodata_timer:
+2cfc 7048c701 jam 1 ,mem_24g_nodata_timer_enable 
+
+g24_enable_nodata_timer_init:
+2cfd 58000280 setarg timer_nodata_delay 
+2cfe d8e00008 arg timer_nodata ,queue 
+2cff 20207d74 branch timer_init 
+
+g24_mode_switch_init:
+2d00 7048c601 jam 1 ,mem_24g_mode_switch 
+2d01 7048ca00 jam 0 ,mem_24g_time_slice 
+2d02 704853ff jam 0xff ,mem_24g_interval 
+2d03 20202bc0 branch g24_timer_init 
+
+g24_mode_switch:
+2d04 4772c03c bpatchx patch3c_5 ,mem_patch3c 
+2d05 6fe0c8c6 fetch 1 ,mem_24g_mode_switch 
+2d06 207a0000 rtn blank 
+2d07 20402bae call g24_timer_check 
+2d08 24740000 nrtn user 
+2d09 20402d11 call g24_bind_mode_continue 
+2d0a 6fe0c8ca fetch 1 ,mem_24g_time_slice 
+2d0b 1fe0fe01 increase 1 ,pdata 
+2d0c 1fe17e01 and_into 1 ,pdata 
+2d0d 67e0c8ca store 1 ,mem_24g_time_slice 
+2d0e c0002d16 beq 0 ,g24_work_mode_switch 
+2d0f c000ad19 beq 1 ,g24_bind_mode_switch 
+2d10 20600000 rtn 
+
+g24_bind_mode_continue:
+2d11 6fe0c8d5 fetch 1 ,mem_24g_bind_mode_continue 
+2d12 207a0000 rtn blank 
+2d13 1fe0ffff increase -1 ,pdata 
+2d14 67e0c8d5 store 1 ,mem_24g_bind_mode_continue 
+2d15 20600000 rtn 
+
+g24_work_mode_switch:
+2d16 6fe0c8d5 fetch 1 ,mem_24g_bind_mode_continue 
+2d17 247a0000 nrtn blank 
+2d18 20202d2a branch g24_switch_work_mode 
+
+g24_bind_mode_switch:
+2d19 6fe0c8d5 fetch 1 ,mem_24g_bind_mode_continue 
+2d1a 247a0000 nrtn blank 
+2d1b 20202c30 branch g24_bind_mode_enable 
+
+g24_work_init:
+2d1c 6fe0c8c8 fetch 1 ,mem_24g_mode_init 
+2d1d c3800000 rtnbit1 dongle_work 
+2d1e 79207e00 set1 dongle_work ,pdata 
+2d1f 67e0c8c8 store 1 ,mem_24g_mode_init 
+2d20 6fe0c8d6 fetch 1 ,mem_tx_power_temp 
+2d21 67e0c1eb store 1 ,mem_tx_power 
+2d22 7048c300 jam 0 ,mem_24g_ackpayload_enable 
+2d23 700bf900 jam 0 ,mem_usb_tx_enable 
+2d24 7048bd01 jam 1 ,mem_24g_abort_packet 
+2d25 70482a00 jam 0 ,mem_24g_pid 
+2d26 6fe240a8 fetch 4 ,mem_lap 
+2d27 20402ba0 call g24_update_addr_and_synccrc8 
+2d28 20402b8f call g24_ch 
+2d29 20202cc4 branch g24_rx_interrupt_clear 
+
+g24_switch_work_mode:
+2d2a 7048c300 jam 0 ,mem_24g_ackpayload_enable 
+
+g24_work_mode_enable:
+2d2b 7048c900 jam dongle_work ,mem_24g_work_mode 
+2d2c 7048c800 jam clear_init ,mem_24g_mode_init 
+2d2d 20600000 rtn 
+
+g24_work_mode_start:
+2d2e 6fe0c8c9 fetch 1 ,mem_24g_work_mode 
+2d2f c1800000 rtnne dongle_work 
+2d30 20402d1c call g24_work_init 
+2d31 20402ddb call g24_ch_process 
+2d32 20202cb2 branch g24_receive_packet_start 
+
+g24_bind_mode_auto:
+2d33 4773403c bpatchx patch3c_6 ,mem_patch3c 
+2d34 6fe0c8c9 fetch 1 ,mem_24g_work_mode 
+2d35 c1808000 rtnne dongle_bind 
+2d36 20402c33 call g24_bind_init 
+2d37 20402c41 call g24_bind_data_process 
+2d38 6fe0c8c5 fetch 1 ,mem_24g_pair_mode 
+2d39 247a0000 nrtn blank 
+2d3a 6fe0c86e fetch 1 ,mem_24g_bind_device_status 
+2d3b 207a0000 rtn blank 
+2d3c 7048c600 jam 0 ,mem_24g_mode_switch 
+2d3d 20402d2a call g24_switch_work_mode 
+2d3e 20402cfc call g24_enable_nodata_timer 
+2d3f 20202bc0 branch g24_timer_init 
+
+g24_search_mode_init:
+2d40 6fe0c8c8 fetch 1 ,mem_24g_mode_init 
+2d41 c3838000 rtnbit1 dongle_search 
+2d42 79207e07 set1 dongle_search ,pdata 
+2d43 67e0c8c8 store 1 ,mem_24g_mode_init 
+2d44 7048ca00 jam 0 ,mem_24g_time_slice 
+2d45 7048c301 jam 1 ,mem_24g_ackpayload_enable 
+2d46 58000000 setarg 0 
+2d47 67e1c888 store 3 ,mem_rssi_noise_self_index 
+2d48 67e3c8cd store 7 ,mem_24g_self_config_ch_once 
+2d49 20402dcb call g24_receiver_addr_check 
+2d4a 24628000 nrtn zero 
+2d4b 6fe0c83a fetch 1 ,mem_24g_current_ch_number 
+2d4c 67e0c8cc store 1 ,mem_24g_self_ch_number 
+2d4d 6fe0c839 fetch 1 ,mem_24g_ch 
+2d4e 67e0c8cb store 1 ,mem_24g_self_last_ch 
+2d4f 20600000 rtn 
+
+g24_search_mode_auto:
+2d50 4773c03c bpatchx patch3c_7 ,mem_patch3c 
+2d51 6fe0c8c9 fetch 1 ,mem_24g_work_mode 
+2d52 c1838000 rtnne dongle_search 
+2d53 20402d40 call g24_search_mode_init 
+2d54 20402d74 call g24_auto_addr_ch_search 
+2d55 20402cef call g24_receive_transmit_ack 
+2d56 2437acc4 nbranch g24_rx_interrupt_clear ,user3 
+2d57 20402dcb call g24_receiver_addr_check 
+2d58 2042acb4 call g24_receive_packet_parse ,zero 
+2d59 7048c900 jam dongle_work ,mem_24g_work_mode 
+2d5a 6fe0c8c8 fetch 1 ,mem_24g_mode_init 
+2d5b 79207e00 set1 dongle_work ,pdata 
+2d5c 67e0c8c8 store 1 ,mem_24g_mode_init 
+2d5d 6fe0c8c3 fetch 1 ,mem_24g_ackpayload_enable 
+2d5e 1fe67c02 sub pdata ,2 ,null 
+2d5f 2442adc9 ncall g24_ackpayload_disable ,zero 
+2d60 20402cc4 call g24_rx_interrupt_clear 
+2d61 20402cfc call g24_enable_nodata_timer 
+2d62 20402dcb call g24_receiver_addr_check 
+2d63 2022ad6d branch g24_self_ch_num_reinit ,zero 
+2d64 6fe2483b fetch 4 ,mem_24g_addr 
+2d65 684a487f fetcht 4 ,mem_24g_device2_addr 
+2d66 98467c00 isub temp ,null 
+2d67 2022ad70 branch g24_device2_ch_num_reinit ,zero 
+2d68 6fe2483b fetch 4 ,mem_24g_addr 
+2d69 684a487b fetcht 4 ,mem_24g_device1_addr 
+2d6a 98467c00 isub temp ,null 
+2d6b 2022ad72 branch g24_device1_ch_num_reinit ,zero 
+2d6c 20600000 rtn 
+
+g24_self_ch_num_reinit:
+2d6d 6fe0c8cc fetch 1 ,mem_24g_self_ch_number 
+
+g24_current_ch_num_reinit:
+2d6e 67e0c83a store 1 ,mem_24g_current_ch_number 
+2d6f 20600000 rtn 
+
+g24_device2_ch_num_reinit:
+2d70 6fe0c8d2 fetch 1 ,mem_24g_device2_ch_number 
+2d71 20202d6e branch g24_current_ch_num_reinit 
+
+g24_device1_ch_num_reinit:
+2d72 6fe0c8cf fetch 1 ,mem_24g_device1_ch_number 
+2d73 20202d6e branch g24_current_ch_num_reinit 
+
+g24_auto_addr_ch_search:
+2d74 6fe0c8ca fetch 1 ,mem_24g_time_slice 
+2d75 1fe0fe01 increase 1 ,pdata 
+2d76 1fe17e03 and_into 3 ,pdata 
+2d77 67e0c8ca store 1 ,mem_24g_time_slice 
+2d78 c0002d97 beq 0 ,g24_auto_bind_config_device2 
+2d79 c000adb1 beq 1 ,g24_auto_bind_config_self 
+2d7a c0012d7d beq 2 ,g24_auto_bind_config_device1 
+2d7b c001adb1 beq 3 ,g24_auto_bind_config_self 
+2d7c 20600000 rtn 
+
+g24_auto_bind_config_device1:
+2d7d 20402c5e call g24_bind_dvc1_payload_cfg 
+2d7e 6fe2487b fetch 4 ,mem_24g_device1_addr 
+2d7f 203a2d74 branch g24_auto_addr_ch_search ,blank 
+2d80 20402ba0 call g24_update_addr_and_synccrc8 
+2d81 6fe0c8d0 fetch 1 ,mem_24g_device1_config_ch_once 
+2d82 205a2d92 call g24_device1_config_ch_once ,blank 
+2d83 6fe0c8ce fetch 1 ,mem_24g_device1_last_ch 
+2d84 67e0c839 store 1 ,mem_24g_ch 
+2d85 6848c889 fetcht 1 ,mem_rssi_noise_device1_index 
+2d86 6a21488f fetchr rega ,2 ,mem_rssi_noise_device1_buffer_ptr 
+2d87 20402e60 call rssi_store 
+2d88 6048c889 storet 1 ,mem_rssi_noise_device1_index 
+2d89 20402e68 call rssi_average 
+2d8a 6048c886 storet 1 ,mem_rssi_noise_device1_avg 
+2d8b 18467c50 sub temp ,rssi_thresh_noise ,null 
+2d8c 24610000 nrtn positive 
+2d8d 6848c8cf fetcht 1 ,mem_24g_device1_ch_number 
+2d8e 20402b93 call g24_ch_map_size 
+2d8f 6048c8cf storet 1 ,mem_24g_device1_ch_number 
+2d90 67e0c8ce store 1 ,mem_24g_device1_last_ch 
+2d91 20600000 rtn 
+
+g24_device1_config_ch_once:
+2d92 7048d001 jam 1 ,mem_24g_device1_config_ch_once 
+2d93 d8400000 arg 0 ,temp 
+2d94 20402b97 call g24_ch_calc 
+2d95 67e0c8ce store 1 ,mem_24g_device1_last_ch 
+2d96 20600000 rtn 
+
+g24_auto_bind_config_device2:
+2d97 20402c64 call g24_bind_dvc2_payload_cfg 
+2d98 6fe2487f fetch 4 ,mem_24g_device2_addr 
+2d99 203a2d74 branch g24_auto_addr_ch_search ,blank 
+2d9a 20402ba0 call g24_update_addr_and_synccrc8 
+2d9b 6fe0c8d3 fetch 1 ,mem_24g_device2_config_ch_once 
+2d9c 205a2dac call g24_device2_config_ch_once ,blank 
+2d9d 6fe0c8d1 fetch 1 ,mem_24g_device2_last_ch 
+2d9e 67e0c839 store 1 ,mem_24g_ch 
+2d9f 6848c88a fetcht 1 ,mem_rssi_noise_device2_index 
+2da0 6a214891 fetchr rega ,2 ,mem_rssi_noise_device2_buffer_ptr 
+2da1 20402e60 call rssi_store 
+2da2 6048c88a storet 1 ,mem_rssi_noise_device2_index 
+2da3 20402e68 call rssi_average 
+2da4 6048c887 storet 1 ,mem_rssi_noise_device2_avg 
+2da5 18467c50 sub temp ,rssi_thresh_noise ,null 
+2da6 24610000 nrtn positive 
+2da7 6848c8d2 fetcht 1 ,mem_24g_device2_ch_number 
+2da8 20402b93 call g24_ch_map_size 
+2da9 6048c8d2 storet 1 ,mem_24g_device2_ch_number 
+2daa 67e0c8d1 store 1 ,mem_24g_device2_last_ch 
+2dab 20600000 rtn 
+
+g24_device2_config_ch_once:
+2dac 7048d301 jam 1 ,mem_24g_device2_config_ch_once 
+2dad d8400000 arg 0 ,temp 
+2dae 20402b97 call g24_ch_calc 
+2daf 67e0c8d1 store 1 ,mem_24g_device2_last_ch 
+2db0 20600000 rtn 
+
+g24_auto_bind_config_self:
+2db1 20402c5e call g24_bind_dvc1_payload_cfg 
+2db2 6fe240a8 fetch 4 ,mem_lap 
+2db3 20402ba0 call g24_update_addr_and_synccrc8 
+2db4 6fe0c8cd fetch 1 ,mem_24g_self_config_ch_once 
+2db5 205a2dc5 call g24_self_config_ch_once ,blank 
+2db6 6fe0c8cb fetch 1 ,mem_24g_self_last_ch 
+2db7 67e0c839 store 1 ,mem_24g_ch 
+2db8 6848c888 fetcht 1 ,mem_rssi_noise_self_index 
+2db9 6a21488d fetchr rega ,2 ,mem_rssi_noise_self_buffer_ptr 
+2dba 20402e60 call rssi_store 
+2dbb 6048c888 storet 1 ,mem_rssi_noise_self_index 
+2dbc 20402e68 call rssi_average 
+2dbd 6048c885 storet 1 ,mem_rssi_noise_self_avg 
+2dbe 18467c50 sub temp ,rssi_thresh_noise ,null 
+2dbf 24610000 nrtn positive 
+2dc0 6848c8cc fetcht 1 ,mem_24g_self_ch_number 
+2dc1 20402b93 call g24_ch_map_size 
+2dc2 6048c8cc storet 1 ,mem_24g_self_ch_number 
+2dc3 67e0c8cb store 1 ,mem_24g_self_last_ch 
+2dc4 20600000 rtn 
+
+g24_self_config_ch_once:
+2dc5 7048cd01 jam 1 ,mem_24g_self_config_ch_once 
+2dc6 6fe0c8cb fetch 1 ,mem_24g_self_last_ch 
+2dc7 67e0c839 store 1 ,mem_24g_ch 
+2dc8 20600000 rtn 
+
+g24_ackpayload_disable:
+2dc9 7048c300 jam 0 ,mem_24g_ackpayload_enable 
+2dca 20600000 rtn 
+
+g24_receiver_addr_check:
+2dcb 6fe2483b fetch 4 ,mem_24g_addr 
+2dcc 684a40a8 fetcht 4 ,mem_lap 
+2dcd 98467c00 isub temp ,null 
+2dce 20600000 rtn 
+
+g24_nodata_process:
+2dcf 6fe0c8c3 fetch 1 ,mem_24g_ackpayload_enable 
+2dd0 c1010000 rtneq 2 
+2dd1 6fe0c8c7 fetch 1 ,mem_24g_nodata_timer_enable 
+2dd2 207a0000 rtn blank 
+2dd3 d8e00008 arg timer_nodata ,queue 
+2dd4 20407d82 call timer_check 
+2dd5 247a0000 nrtn blank 
+2dd6 7048c700 jam 0 ,mem_24g_nodata_timer_enable 
+2dd7 7048d500 jam 0 ,mem_24g_bind_mode_continue 
+2dd8 7048c907 jam dongle_search ,mem_24g_work_mode 
+2dd9 7048c800 jam clear_init ,mem_24g_mode_init 
+2dda 20202cc4 branch g24_rx_interrupt_clear 
+
+g24_ch_process:
+2ddb 6fe0c8bd fetch 1 ,mem_24g_abort_packet 
+2ddc c000ae9c beq 1 ,rssi_noise_monitor 
+2ddd 6fe0c8c4 fetch 1 ,mem_24g_hop_packet 
+2dde c000adee beq 1 ,g24_ch_receive_hop_pac 
+2ddf 684a48be fetcht 4 ,mem_24g_hop_btclk 
+2de0 1c427e00 copy clkn_bt ,pdata 
+2de1 98467c00 isub temp ,null 
+2de2 24412bbd ncall g24_timer_timeout ,positive 
+2de3 1fe22400 copy pdata ,regb 
+2de4 6fe248be fetch 4 ,mem_24g_hop_btclk 
+2de5 6848c8c2 fetcht 1 ,mem_24g_hop_interval 
+2de6 98408400 iadd temp ,temp 
+2de7 1a427e00 copy regb ,pdata 
+2de8 98467c00 isub temp ,null 
+2de9 24610000 nrtn positive 
+2dea 793ffe1c set0 28 ,pdata 
+2deb 67e248be store 4 ,mem_24g_hop_btclk 
+2dec 7048bd01 jam 1 ,mem_24g_abort_packet 
+2ded 20202b8f branch g24_ch 
+
+g24_ch_receive_hop_pac:
+2dee 7048c400 jam 0 ,mem_24g_hop_packet 
+2def 20202b8f branch g24_ch 
+
+g24_ch_timer_reinit:
+2df0 1c427e00 copy clkn_bt ,pdata 
+2df1 67e248be store 4 ,mem_24g_hop_btclk 
+2df2 20600000 rtn 
+
+g24_reconn_timeout_timer:
+2df3 da604875 arg mem_24g_reconn_timeout ,regc 
+2df4 da402eff arg g24_stop_24g_mode ,regb 
+2df5 2020304b branch timer_single_step_2b 
+
+g24_reconn_start:
+2df6 4774403d bpatchx patch3d_0 ,mem_patch3d 
+2df7 79200026 set1 mark_24g ,mark 
+2df8 6fe0c88f fetch 1 ,mem_24g_conn_sm 
+2df9 793ffe01 set0 state_24g_pair ,pdata 
+2dfa 79207e02 set1 state_24g_reconn ,pdata 
+2dfb 67e0c88f store 1 ,mem_24g_conn_sm 
+2dfc 6fe0c87a fetch 1 ,mem_24g_fast_conn_enable 
+2dfd 203a2e0b branch g24_reconn_receiver_addr ,blank 
+2dfe 6fe0c879 fetch 1 ,mem_24g_reconn_type 
+2dff c000ae03 beq fast_conn_and_receiver ,g24_reconn_fast_conn 
+2e00 c0012e03 beq fast_conn_and_3_0_addr ,g24_reconn_fast_conn 
+2e01 c001ae12 beq receiver_and_3_0_addr ,g24_reconn_device_3_0_addr 
+2e02 c0022e12 beq pair_and_3_0_addr ,g24_reconn_device_3_0_addr 
+
+g24_reconn_fast_conn:
+2e03 6fe0c86a fetch 1 ,mem_24g_pair_tx_power 
+2e04 67e0c1eb store 1 ,mem_tx_power 
+2e05 6848c883 fetcht 1 ,mem_24g_fast_conn_temp_ch 
+2e06 6048c83a storet 1 ,mem_24g_current_ch_number 
+2e07 6fe2487b fetch 4 ,mem_24g_fast_conn_addr 
+2e08 20402e1b call g24_ch_syncword_crc8_init 
+2e09 6048c883 storet 1 ,mem_24g_fast_conn_temp_ch 
+2e0a 20600000 rtn 
+
+g24_reconn_receiver_addr:
+2e0b 7041eb02 jam tx_power_5db ,mem_tx_power 
+2e0c 6848c884 fetcht 1 ,mem_24g_receiver_temp_ch 
+2e0d 6048c83a storet 1 ,mem_24g_current_ch_number 
+2e0e 6fe2487f fetch 4 ,mem_24g_receiver_addr 
+2e0f 20402e1b call g24_ch_syncword_crc8_init 
+2e10 6048c884 storet 1 ,mem_24g_receiver_temp_ch 
+2e11 20600000 rtn 
+
+g24_reconn_device_3_0_addr:
+2e12 7041eb02 jam tx_power_5db ,mem_tx_power 
+2e13 6848c885 fetcht 1 ,mem_24g_device_temp_ch 
+2e14 6048c83a storet 1 ,mem_24g_current_ch_number 
+2e15 6fe24896 fetch 4 ,mem_24g_device_addr 
+2e16 20402e1b call g24_ch_syncword_crc8_init 
+2e17 6048c885 storet 1 ,mem_24g_device_temp_ch 
+2e18 20600000 rtn 
+
+g24_store_receiver_addr:
+2e19 6fe2480b fetch 4 ,mem_24g_rxpayload + 2 
+2e1a 67e2487f store 4 ,mem_24g_receiver_addr 
+
+g24_ch_syncword_crc8_init:
+2e1b 20402ba0 call g24_update_addr_and_synccrc8 
+2e1c 20202b8f branch g24_ch 
+
+g24_reconn_dispatch:
+2e1d 4774c03d bpatchx patch3d_1 ,mem_patch3d 
+2e1e 20402e37 call g24_reconn_data_prep 
+2e1f 20402ee1 call g24_transmit_receive_ack 
+2e20 242c2e3e nbranch g24_reconn_device_fail ,sync 
+2e21 2437ae3e nbranch g24_reconn_device_fail ,user3 
+2e22 20402ef6 call g24_ackpayload_parse 
+
+g24_reconn_receiver_succ:
+2e23 6fe0c88f fetch 1 ,mem_24g_conn_sm 
+2e24 793ffe02 set0 state_24g_reconn ,pdata 
+2e25 67e0c88f store 1 ,mem_24g_conn_sm 
+2e26 58000000 setarg 0 
+2e27 67e14871 store 2 ,mem_24g_pair_timeout 
+2e28 67e14877 store 2 ,mem_24g_reconn_count 
+2e29 67e14875 store 2 ,mem_24g_reconn_timeout 
+2e2a 6fe24865 fetch 4 ,mem_24g_pair_addr 
+2e2b 684a483b fetcht 4 ,mem_24g_addr 
+2e2c 98467c00 isub temp ,null 
+2e2d 2022abc6 branch g24_pair_start ,zero 
+2e2e 6fe24896 fetch 4 ,mem_24g_device_addr 
+2e2f 684a483b fetcht 4 ,mem_24g_addr 
+2e30 98467c00 isub temp ,null 
+2e31 2042ae19 call g24_store_receiver_addr ,zero 
+2e32 70095b3c jam bt_evt_24g_attempt_success ,mem_fifo_temp 
+2e33 2040789f call ui_ipc_send_event 
+
+g24_txbuf_clear:
+2e34 df200004 arg 4 ,loopcnt 
+2e35 d8a047c5 arg mem_24g_txbuf ,contw 
+2e36 20207d25 branch memset0 
+
+g24_reconn_data_prep:
+2e37 7047c5ff jam datatype_attemp ,mem_24g_txbuf 
+2e38 6fe0c835 fetch 1 ,mem_24g_data_type 
+2e39 67e0c7c6 store 1 ,mem_24g_txbuf + 1 
+2e3a 6fe24896 fetch 4 ,mem_24g_device_addr 
+2e3b 67e247c7 store 4 ,mem_24g_txbuf + 2 
+2e3c 70483406 jam 6 ,mem_24g_datalen 
+2e3d 20202b55 branch g24_transmit_prep 
+
+g24_reconn_device_fail:
+2e3e 6fe0c87a fetch 1 ,mem_24g_fast_conn_enable 
+2e3f 203a2b8f branch g24_ch ,blank 
+2e40 6fe14877 fetch 2 ,mem_24g_reconn_count 
+2e41 1fe0fe01 increase 1 ,pdata 
+2e42 67e14877 store 2 ,mem_24g_reconn_count 
+2e43 2feffe03 isolate1 3 ,pdata 
+2e44 6fe0c879 fetch 1 ,mem_24g_reconn_type 
+2e45 c000ae4a beq fast_conn_and_receiver ,g24_reconn_fast_conn_and_receiver 
+2e46 c0012e4c beq fast_conn_and_3_0_addr ,g24_reconn_fast_conn_and_3_0 
+2e47 c001ae4e beq receiver_and_3_0_addr ,g24_reconn_receiver_and_3_0 
+2e48 c0022e50 beq pair_and_3_0_addr ,g24_reconn_pair_and_3_0 
+2e49 20202e0b branch g24_reconn_receiver_addr 
+
+g24_reconn_fast_conn_and_receiver:
+2e4a 2020ae0b branch g24_reconn_receiver_addr ,true 
+2e4b 20202e03 branch g24_reconn_fast_conn 
+
+g24_reconn_fast_conn_and_3_0:
+2e4c 2020ae12 branch g24_reconn_device_3_0_addr ,true 
+2e4d 20202e03 branch g24_reconn_fast_conn 
+
+g24_reconn_receiver_and_3_0:
+2e4e 2020ae12 branch g24_reconn_device_3_0_addr ,true 
+2e4f 20202e0b branch g24_reconn_receiver_addr 
+
+g24_reconn_pair_and_3_0:
+2e50 2020abd1 branch g24_pair_init_param ,true 
+2e51 20202e12 branch g24_reconn_device_3_0_addr 
+
+g24_data_attemp:
+2e52 6fe0c89e fetch 1 ,mem_24g_rxdata_temp + 3 
+2e53 c000ae56 beq datatype_device1 ,g24_data_attemp_device1 
+2e54 c0012e5b beq datatype_device2 ,g24_data_attemp_device2 
+2e55 20600000 rtn 
+
+g24_data_attemp_device1:
+2e56 20407e62 call enable_user 
+2e57 6fe2489f fetch 4 ,mem_24g_rxdata_temp + 4 
+2e58 67e24877 store 4 ,mem_24g_transmitter_addr 
+
+g24_store_device1_addr:
+2e59 67e2487b store 4 ,mem_24g_device1_addr 
+2e5a 20600000 rtn 
+
+g24_data_attemp_device2:
+2e5b 20407e62 call enable_user 
+2e5c 6fe2489f fetch 4 ,mem_24g_rxdata_temp + 4 
+2e5d 67e24877 store 4 ,mem_24g_transmitter_addr 
+
+g24_store_device2_addr:
+2e5e 67e2487f store 4 ,mem_24g_device2_addr 
+2e5f 20600000 rtn 
+
+rssi_store:
+2e60 1a227e00 copy rega ,pdata 
+2e61 98408a00 iadd temp ,contw 
+2e62 6fe08018 fetch 1 ,mem_rssi 
+2e63 e7e08005 istore 1 ,contw 
+2e64 18408401 increase 1 ,temp 
+2e65 6fe0c86b fetch 1 ,mem_rssi_buff_index 
+2e66 98410400 iand temp ,temp 
+2e67 20600000 rtn 
+
+rssi_average:
+2e68 6fe0c86b fetch 1 ,mem_rssi_buff_index 
+2e69 1fe0fe01 increase 1 ,pdata 
+2e6a 67e10987 store 2 ,mem_loopcnt 
+2e6b 1fe27200 copy pdata ,loopcnt 
+2e6c 1a220c00 copy rega ,contr 
+2e6d dfe00000 arg 0 ,pdata 
+
+rssi_average_loop:
+2e6e e8408006 ifetcht 1 ,contr 
+2e6f 9840fe00 iadd temp ,pdata 
+2e70 c2002e6e loop rssi_average_loop 
+2e71 68490987 fetcht 2 ,mem_loopcnt 
+2e72 9846fc00 idiv temp 
+2e73 20407dfd call wait_div_end 
+2e74 18078400 quotient temp 
+2e75 c6138000 rtnmark1 mark_24g_rxmode 
+2e76 18427e00 copy temp ,pdata 
+2e77 c6930000 rtnmark0 mark_24g 
+2e78 2040123f call bcd 
+2e79 1fe20400 copy pdata ,temp 
+2e7a 20600000 rtn 
+
+rssi_transmitter_buff_init:
+2e7b 6fe14887 fetch 2 ,mem_rssi_signal_buf_ptr 
+2e7c 20202e8f branch rssi_buff_clear 
+
+rssi_signal:
+2e7d 1fe22200 copy pdata ,rega 
+2e7e 6848c886 fetcht 1 ,mem_rssi_signal_index 
+2e7f 6fe14887 fetch 2 ,mem_rssi_signal_buf_ptr 
+2e80 98408a00 iadd temp ,contw 
+2e81 1a227e00 copy rega ,pdata 
+2e82 e7e08005 istore 1 ,contw 
+2e83 18408401 increase 1 ,temp 
+2e84 6fe0c86b fetch 1 ,mem_rssi_buff_index 
+2e85 98410400 iand temp ,temp 
+2e86 6048c886 storet 1 ,mem_rssi_signal_index 
+2e87 20600000 rtn 
+
+rssi_receiver_buff_init:
+2e88 6fe1488b fetch 2 ,mem_rssi_noise_buffer_ptr 
+2e89 20402e8f call rssi_buff_clear 
+2e8a 6fe1488d fetch 2 ,mem_rssi_noise_self_buffer_ptr 
+2e8b 20402e8f call rssi_buff_clear 
+2e8c 6fe1488f fetch 2 ,mem_rssi_noise_device1_buffer_ptr 
+2e8d 20402e8f call rssi_buff_clear 
+2e8e 6fe14891 fetch 2 ,mem_rssi_noise_device2_buffer_ptr 
+
+rssi_buff_clear:
+2e8f 207a0000 rtn blank 
+2e90 1fe20a00 copy pdata ,contw 
+2e91 6fe0c86b fetch 1 ,mem_rssi_buff_index 
+2e92 1fe0fe01 increase 1 ,pdata 
+2e93 1fe27200 copy pdata ,loopcnt 
+2e94 20207d34 branch clear_mem 
+
+rssi_noise:
+2e95 20401238 call save_rssi 
+2e96 207a0000 rtn blank 
+2e97 6848c884 fetcht 1 ,mem_rssi_noise_index 
+2e98 6a21488b fetchr rega ,2 ,mem_rssi_noise_buffer_ptr 
+2e99 20402e60 call rssi_store 
+2e9a 6048c884 storet 1 ,mem_rssi_noise_index 
+2e9b 20600000 rtn 
+
+rssi_noise_monitor:
+2e9c 6a21488b fetchr rega ,2 ,mem_rssi_noise_buffer_ptr 
+2e9d 20402e68 call rssi_average 
+2e9e 6048c883 storet 1 ,mem_rssi_noise_avg 
+2e9f 18467c50 sub temp ,rssi_thresh_noise ,null 
+2ea0 24610000 nrtn positive 
+2ea1 20202b8f branch g24_ch 
+
+g24_transmit_init:
+2ea2 6fe240a8 fetch 4 ,mem_lap 
+2ea3 67e24896 store 4 ,mem_24g_device_addr 
+2ea4 20202e7b branch rssi_transmitter_buff_init 
+
+g24_transmit_dispatch:
+2ea5 c6930000 rtnmark0 mark_24g 
+2ea6 6fe0c88f fetch 1 ,mem_24g_conn_sm 
+2ea7 c280abd8 bbit1 state_24g_pair ,g24_pair_dispatch 
+2ea8 c2812e1d bbit1 state_24g_reconn ,g24_reconn_dispatch 
+2ea9 6fe0c8a6 fetch 1 ,mem_24g_transmit_by_interrupt 
+2eaa c000af43 beq g24_tx_timer_int_enable ,g24_transmit_by_interrupt 
+
+g24_transmit_no_interrupt:
+2eab 4775403d bpatchx patch3d_2 ,mem_patch3d 
+2eac 20402eb9 call g24_txdata_prep 
+2ead 24342f1e nbranch g24_nodata_transmit ,user 
+
+g24_transmit_start:
+2eae 20402ece call g24_transmit_process 
+2eaf 20402f6b call power_ctrl_start 
+2eb0 6fe4489d fetch 8 ,mem_24g_long_sleep_set 
+2eb1 67e4485b store 8 ,mem_24g_enter_hibernate 
+2eb2 6fe148ab fetch 2 ,mem_24g_long_sleep_param_update_timer_init 
+2eb3 67e148ad store 2 ,mem_24g_long_sleep_param_update_timer 
+
+g24_short_sleep:
+2eb4 20402f38 call g24_lpm_wait 
+2eb5 24740000 nrtn user 
+2eb6 20407ff6 call clear_wake 
+2eb7 6fe1c89a fetch 3 ,mem_24g_short_sleep_set 
+2eb8 20201473 branch lpm_dispatch_sleep 
+
+g24_txdata_prep:
+2eb9 20402ebc call g24_package_data 
+2eba 24740000 nrtn user 
+2ebb 20202b55 branch g24_transmit_prep 
+
+g24_package_data:
+2ebc 6fe14889 fetch 2 ,mem_cb_24g_transmit_data 
+2ebd 20407e13 call callback_func 
+2ebe 20342ec2 branch g24_accumulate_data ,user 
+2ebf 6fe3c7c6 fetch 7 ,mem_24g_txbuf + 1 
+2ec0 207a0000 rtn blank 
+2ec1 20207e62 branch enable_user 
+
+g24_accumulate_data:
+2ec2 70489400 jam 0 ,mem_24g_abort_pac 
+2ec3 1a20fe01 add rega ,1 ,pdata 
+2ec4 67e0c834 store 1 ,mem_24g_datalen 
+2ec5 20402eca call g24_transmit_rf_ctrl_clear 
+2ec6 67e0c7c5 store 1 ,mem_24g_txbuf 
+2ec7 1a420c00 copy regb ,contr 
+2ec8 1a227200 copy rega ,loopcnt 
+2ec9 20207d6d branch memcpy 
+
+g24_transmit_rf_ctrl_clear:
+2eca 6fe0c835 fetch 1 ,mem_24g_data_type 
+2ecb 1fe17e07 and_into bits_data ,pdata 
+2ecc 67e0c835 store 1 ,mem_24g_data_type 
+2ecd 20600000 rtn 
+
+g24_transmit_process:
+2ece 70489300 jam 0 ,mem_24g_retry 
+
+g24_transmit_loop:
+2ecf 6961015f fetchr timeup ,2 ,mem_param_rx_setup 
+2ed0 34730200 until clkn_rt ,meet 
+2ed1 20402ee1 call g24_transmit_receive_ack 
+2ed2 6fe0c82b fetch 1 ,mem_24g_no_ack 
+2ed3 c000aed7 beq no_ack_24g ,g24_transmit_no_ack 
+2ed4 242c2eef nbranch g24_retransmit ,sync 
+2ed5 2437aeef nbranch g24_retransmit ,user3 
+2ed6 20402ef6 call g24_ackpayload_parse 
+
+g24_transmit_no_ack:
+2ed7 20402e34 call g24_txbuf_clear 
+2ed8 20402f9d call power_ctrl_pac_succ_incrs 
+
+g24_transmit_next_packet:
+2ed9 6fe0c82a fetch 1 ,mem_24g_pid 
+2eda 1fe0fe01 increase 1 ,pdata 
+2edb 67e0c82a store 1 ,mem_24g_pid 
+2edc 20402f11 call g24_hop_enable_packet 
+
+g24_transmit_abandon:
+2edd 58000000 setarg 0 
+2ede 67e0c890 store 1 ,mem_24g_ensure 
+2edf 67e14891 store 2 ,mem_24g_txfail_cnt 
+2ee0 20600000 rtn 
+
+g24_transmit_receive_ack:
+2ee1 7857fc00 disable user3 
+2ee2 20402b0a call g24_transmit 
+2ee3 6fe0c82b fetch 1 ,mem_24g_no_ack 
+2ee4 c000ab03 beq no_ack_24g ,g24_end_of_packet 
+2ee5 18002a00 force 0 ,radio_ctrl 
+2ee6 6fe2483b fetch 4 ,mem_24g_addr 
+2ee7 98001200 iforce access 
+2ee8 204010ab call calc_mod_value_scale_le 
+2ee9 68488017 fetcht 1 ,mem_last_freq 
+2eea 2040117e call set_freq_rx 
+2eeb 2040119a call rf_rx_enable 
+2eec 20402ab3 call g24_receive_rxon 
+2eed 2057ab03 call g24_end_of_packet ,user3 
+2eee 20600000 rtn 
+
+g24_retransmit:
+2eef 6fe14891 fetch 2 ,mem_24g_txfail_cnt 
+2ef0 1fe0fe01 increase 1 ,pdata 
+2ef1 67e14891 store 2 ,mem_24g_txfail_cnt 
+2ef2 6fe0c892 fetch 1 ,mem_24g_txfail_cnt + 1 
+2ef3 c2822eff bbit1 4 ,g24_stop_24g_mode 
+2ef4 20402f01 call g24_transmit_hop_process 
+2ef5 20202ecf branch g24_transmit_loop 
+
+g24_ackpayload_parse:
+2ef6 20402b82 call g24_read_len_pid_crc 
+2ef7 6fe0c829 fetch 1 ,mem_24g_rxdata_length 
+2ef8 207a0000 rtn blank 
+2ef9 98007200 iforce loopcnt 
+2efa d8c047a5 arg mem_24g_rxbuf + 2 ,contr 
+2efb d8a04809 arg mem_24g_rxpayload ,contw 
+2efc 20207d6d branch memcpy 
+
+g24_tx_attempt_fail:
+2efd 58000000 setarg 0 
+2efe 67e14891 store 2 ,mem_24g_txfail_cnt 
+
+g24_stop_24g_mode:
+2eff 70095b3a jam bt_evt_24g_attempt_fail ,mem_fifo_temp 
+2f00 2020789f branch ui_ipc_send_event 
+
+g24_transmit_hop_process:
+2f01 4775c03d bpatchx patch3d_3 ,mem_patch3d 
+2f02 6fe0c893 fetch 1 ,mem_24g_retry 
+2f03 1fe67c0b sub pdata ,11 ,null 
+2f04 24212f19 nbranch g24_tx_fast_hop ,positive 
+2f05 1fe0fe01 increase 1 ,pdata 
+2f06 67e0c893 store 1 ,mem_24g_retry 
+2f07 c0012f0c beq 2 ,g24_hop_ch_enable 
+2f08 c0032f13 beq 6 ,g24_hop_ch_disable 
+2f09 c0042f0c beq 8 ,g24_hop_ch_enable 
+2f0a c0062f13 beq 12 ,g24_hop_ch_disable 
+2f0b 20600000 rtn 
+
+g24_hop_ch_enable:
+
+g24_txpayload_type_update:
+2f0c c5172f0f bmark1 mark_ble_lr ,g24_lr_type_update 
+2f0d 67e0c7e6 store 1 ,mem_24g_txpayload + offset_data_type 
+2f0e 20600000 rtn 
+
+g24_lr_type_update:
+2f0f 67e0c7e7 store 1 ,mem_24g_txpayload + offset_lr_data_type 
+2f10 20600000 rtn 
+
+g24_hop_enable_packet:
+2f11 6fe0c835 fetch 1 ,mem_24g_data_type 
+2f12 c4020000 rtnbit0 bit_hop 
+
+g24_hop_ch_disable:
+2f13 6fe0c835 fetch 1 ,mem_24g_data_type 
+2f14 793ffe04 set0 bit_hop ,pdata 
+2f15 67e0c835 store 1 ,mem_24g_data_type 
+2f16 20402f0c call g24_txpayload_type_update 
+2f17 20402fa1 call power_ctrl_pac_succ_decrs 
+2f18 20202b8f branch g24_ch 
+
+g24_tx_fast_hop:
+2f19 20402f91 call power_ctrl_txpower_incrs 
+2f1a 20402fa1 call power_ctrl_pac_succ_decrs 
+2f1b 20202b8f branch g24_ch 
+
+g24_search_receiver:
+2f1c 6fe1488b fetch 2 ,mem_cb_24g_search_receiver 
+2f1d 20207e13 branch callback_func 
+
+g24_nodata_transmit:
+2f1e 6fe0c894 fetch 1 ,mem_24g_abort_pac 
+2f1f 205a2f24 call g24_send_abort_packet ,blank 
+2f20 6fe0c8a6 fetch 1 ,mem_24g_transmit_by_interrupt 
+2f21 c1008000 rtneq g24_tx_timer_int_enable 
+2f22 20402f1c call g24_search_receiver 
+2f23 20202f32 branch g24_long_sleep 
+
+g24_send_abort_packet:
+2f24 70483501 jam type_ms ,mem_24g_data_type 
+2f25 70489401 jam 1 ,mem_24g_abort_pac 
+2f26 20402eca call g24_transmit_rf_ctrl_clear 
+2f27 67e0c7c5 store 1 ,mem_24g_txbuf 
+2f28 58000000 setarg 0 
+2f29 67e3c7c6 store 7 ,mem_24g_txbuf + 1 
+2f2a 6fe24896 fetch 4 ,mem_24g_device_addr 
+2f2b 67e247cd store 4 ,mem_24g_txbuf + 8 
+2f2c 7048340c jam 12 ,mem_24g_datalen 
+2f2d 6fe0c835 fetch 1 ,mem_24g_data_type 
+2f2e 79207e03 set1 bit_abort ,pdata 
+2f2f 67e0c835 store 1 ,mem_24g_data_type 
+2f30 20402b55 call g24_transmit_prep 
+2f31 20202eae branch g24_transmit_start 
+
+g24_long_sleep:
+2f32 20402f38 call g24_lpm_wait 
+2f33 24740000 nrtn user 
+2f34 6fe4485b fetch 8 ,mem_24g_enter_hibernate 
+
+g24_long_sleep2:
+2f35 20407db8 call clk2lpo 
+2f36 604a4163 storet 4 ,mem_sleep_counter 
+2f37 20201403 branch lpm_sleep 
+
+g24_lpm_wait:
+2f38 4776403d bpatchx patch3d_4 ,mem_patch3d 
+2f39 78347c00 enable user 
+2f3a 204013d1 call lpo_calibration 
+2f3b 6fe1c177 fetch 3 ,mem_clks_per_lpo 
+2f3c 203a7e64 branch disable_user ,blank 
+2f3d 6fe0c099 fetch 1 ,mem_lpm_mode 
+2f3e 203a7e64 branch disable_user ,blank 
+2f3f 6fe0c8a6 fetch 1 ,mem_24g_transmit_by_interrupt 
+2f40 c000fe64 beq g24_tx_timer_int_enable ,disable_user 
+
+g24_setgpio_lpm_before:
+2f41 6fe1488d fetch 2 ,mem_cb_24g_lpm_before 
+2f42 20207e13 branch callback_func 
+
+g24_transmit_by_interrupt:
+2f43 20402bae call g24_timer_check 
+2f44 24740000 nrtn user 
+2f45 20402f58 call g24_interval_calibrate 
+2f46 6fe148a7 fetch 2 ,mem_24g_transmit_by_interrupt_exit_count 
+2f47 1fe0fe01 increase 1 ,pdata 
+2f48 67e148a7 store 2 ,mem_24g_transmit_by_interrupt_exit_count 
+2f49 684948a9 fetcht 2 ,mem_24g_transmit_by_interrupt_exit_count_init 
+2f4a 98467c00 isub temp ,null 
+2f4b 2042af4d call g24_transmit_by_interrupt_exit ,zero 
+2f4c 20202eab branch g24_transmit_no_interrupt 
+
+g24_transmit_by_interrupt_exit:
+2f4d 7048a600 jam g24_tx_timer_int_disable ,mem_24g_transmit_by_interrupt 
+2f4e 58000000 setarg 0 
+2f4f 67e148a7 store 2 ,mem_24g_transmit_by_interrupt_exit_count 
+2f50 58000064 setarg 100 
+2f51 67e148a9 store 2 ,mem_24g_transmit_by_interrupt_exit_count_init 
+
+g24_interval_min:
+2f52 7048a500 jam 0 ,mem_24g_pac_index 
+2f53 6fe0c854 fetch 1 ,mem_24g_interval_min 
+
+g24_interval_store:
+2f54 67e0c853 store 1 ,mem_24g_interval 
+2f55 20600000 rtn 
+
+g24_interval_max:
+2f56 6fe0c855 fetch 1 ,mem_24g_interval_max 
+2f57 20202f54 branch g24_interval_store 
+
+g24_interval_calibrate:
+2f58 6fe0c8a5 fetch 1 ,mem_24g_pac_index 
+2f59 1fe0fe01 increase 1 ,pdata 
+2f5a 67e0c8a5 store 1 ,mem_24g_pac_index 
+2f5b c0022f56 beq 4 ,g24_interval_max 
+2f5c c002af52 beq 5 ,g24_interval_min 
+2f5d 20600000 rtn 
+
+g24_transmit_by_interrupt_enable:
+2f5e 7048a601 jam g24_tx_timer_int_enable ,mem_24g_transmit_by_interrupt 
+2f5f 58000000 setarg 0 
+2f60 67e148a7 store 2 ,mem_24g_transmit_by_interrupt_exit_count 
+2f61 20600000 rtn 
+
+g24_factory_check:
+2f62 df200002 arg 2 ,loopcnt 
+2f63 d8c0483b arg mem_24g_addr ,contr 
+
+pdata_0xff_check:
+2f64 20407e62 call enable_user 
+2f65 5800ffff setarg 0xffff 
+
+pdata_0xff_check_loop:
+2f66 e8410006 ifetcht 2 ,contr 
+2f67 98467c00 isub temp ,null 
+2f68 2442fe64 ncall disable_user ,zero 
+2f69 c2002f66 loop pdata_0xff_check_loop 
+2f6a 20600000 rtn 
+
+power_ctrl_start:
+2f6b 4776c03d bpatchx patch3d_5 ,mem_patch3d 
+2f6c 6fe1478b fetch 2 ,mem_ui_state_map 
+2f6d c3858000 rtnbit1 ui_state_ble_adv 
+2f6e c3838000 rtnbit1 ui_state_bt_reconnect 
+2f6f c3830000 rtnbit1 ui_state_bt_discovery 
+2f70 6a214887 fetchr rega ,2 ,mem_rssi_signal_buf_ptr 
+2f71 20402e68 call rssi_average 
+2f72 6048c8af storet 1 ,mem_rssi_avg_received 
+2f73 58000082 setarg rssi_dis_max_24g 
+2f74 c5132f76 bmark1 mark_24g ,power_ctrl_start_next 
+2f75 58000080 setarg rssi_dis_max_ble 
+
+power_ctrl_start_next:
+2f76 98467c00 isub temp ,null 
+2f77 24212f90 nbranch power_ctrl_txpower_incrs_force ,positive 
+2f78 6fe0c8b1 fetch 1 ,mem_power_ctrl_pac_succ_cnt 
+2f79 1fe67c02 sub pdata ,2 ,null 
+2f7a 24212f7e nbranch power_ctrl_txpower_decrs_check ,positive 
+2f7b 6fe0c8b1 fetch 1 ,mem_power_ctrl_pac_succ_cnt 
+2f7c c0002f91 beq 0 ,power_ctrl_txpower_incrs 
+2f7d 20600000 rtn 
+
+power_ctrl_txpower_decrs_check:
+2f7e 6fe0c8b1 fetch 1 ,mem_power_ctrl_pac_succ_cnt 
+2f7f 6848c8b2 fetcht 1 ,mem_power_ctrl_pac_succ_cnt_init 
+2f80 98467c00 isub temp ,null 
+2f81 24628000 nrtn zero 
+2f82 7048b100 jam 0 ,mem_power_ctrl_pac_succ_cnt 
+
+power_ctrl_txpower_decrs:
+2f83 6848c8af fetcht 1 ,mem_rssi_avg_received 
+2f84 58000077 setarg rssi_dis_min_24g 
+2f85 c5132f87 bmark1 mark_24g ,power_ctrl_txpower_decrs_next 
+2f86 58000075 setarg rssi_dis_min_ble 
+
+power_ctrl_txpower_decrs_next:
+2f87 98467c00 isub temp ,null 
+2f88 24610000 nrtn positive 
+2f89 6fe0c8b0 fetch 1 ,mem_power_ctrl_level 
+2f8a c0002f98 beq 0 ,power_ctrl_decrs_level0 
+2f8b 1fe0ffff increase -1 ,pdata 
+2f8c 67e0c8b0 store 1 ,mem_power_ctrl_level 
+2f8d c0002f98 beq 0 ,power_ctrl_decrs_level0 
+
+power_ctrl_decrs_level1:
+
+power_ctrl_incrs_level1:
+2f8e 7041eb00 jam tx_power_0db ,mem_tx_power 
+2f8f 20600000 rtn 
+
+power_ctrl_txpower_incrs_force:
+2f90 7048b100 jam 0 ,mem_power_ctrl_pac_succ_cnt 
+
+power_ctrl_txpower_incrs:
+2f91 6fe0c8b0 fetch 1 ,mem_power_ctrl_level 
+2f92 c0012f96 beq 2 ,power_ctrl_incrs_level2 
+2f93 1fe0fe01 increase 1 ,pdata 
+2f94 67e0c8b0 store 1 ,mem_power_ctrl_level 
+2f95 c000af8e beq 1 ,power_ctrl_incrs_level1 
+
+power_ctrl_incrs_level2:
+2f96 7041eb02 jam tx_power_5db ,mem_tx_power 
+2f97 20600000 rtn 
+
+power_ctrl_decrs_level0:
+2f98 7041eb04 jam tx_power_f5db ,mem_tx_power 
+2f99 20600000 rtn 
+
+power_ctrl_pac_succ_cnt_init:
+2f9a 7048b001 jam 1 ,mem_power_ctrl_level 
+2f9b 7048b100 jam 0 ,mem_power_ctrl_pac_succ_cnt 
+2f9c 20600000 rtn 
+
+power_ctrl_pac_succ_incrs:
+2f9d 6fe0c8b1 fetch 1 ,mem_power_ctrl_pac_succ_cnt 
+2f9e 1fe0fe01 increase 1 ,pdata 
+2f9f 67e0c8b1 store 1 ,mem_power_ctrl_pac_succ_cnt 
+2fa0 20600000 rtn 
+
+power_ctrl_pac_succ_decrs:
+2fa1 6fe0c8b1 fetch 1 ,mem_power_ctrl_pac_succ_cnt 
+2fa2 1fe67c02 sub pdata ,2 ,null 
+2fa3 24412fa9 ncall power_ctrl_pac_succ_cnt_reinit ,positive 
+2fa4 6fe0c8b1 fetch 1 ,mem_power_ctrl_pac_succ_cnt 
+2fa5 c1000000 rtneq 0 
+2fa6 1fe0ffff increase -1 ,pdata 
+2fa7 67e0c8b1 store 1 ,mem_power_ctrl_pac_succ_cnt 
+2fa8 20600000 rtn 
+
+power_ctrl_pac_succ_cnt_reinit:
+2fa9 7048b103 jam 3 ,mem_power_ctrl_pac_succ_cnt 
+2faa 20600000 rtn 
+
+app_init:
+2fab 44dbc016 bpatch patch16_7 ,mem_patch16 
+2fac 6fe0c09a fetch 1 ,mem_device_option 
+2fad 203a2fab branch app_init ,blank 
+2fae c00234d8 beq dvc_op_dongle ,dongle_init 
+2faf c007b0fe beq dvc_op_antilost ,antilost_init 
+2fb0 c004ca7e beq dvc_op_shutter ,shutter_init 
+2fb1 c0053885 beq dvc_op_module ,module_init 
+2fb2 c007329a beq dvc_op_car ,car_init 
+2fb3 c006c9b4 beq dvc_op_remote_car ,remote_car_init 
+2fb4 c0064ca7 beq dvc_op_hci_boot ,hci_init 
+2fb5 c0059b78 beq dvc_op_ali_mesh ,ali_mesh_init 
+2fb6 c0029364 beq dvc_op_test ,test_init 
+2fb7 c0043cfd beq dvc_op_mouse ,mouse_init 
+2fb8 20600000 rtn 
+
+app_lpm_init:
+2fb9 700a5100 jam 0 ,mem_tester_emulate 
+2fba 7000e400 jam 0 ,mem_debug_config 
+2fbb 7000e500 jam 0 ,mem_lch_code 
+2fbc 58000000 setarg 0 
+2fbd 67e28870 store 5 ,mem_sp_state_start 
+2fbe 6fe0c09a fetch 1 ,mem_device_option 
+2fbf 203a2fb9 branch app_lpm_init ,blank 
+2fc0 c00538b2 beq dvc_op_module ,module_lpm_init 
+
+app_lpm_init0:
+2fc1 20600000 rtn 
+
+app_process_idle:
+2fc2 204077e6 call ui_dispatch 
+2fc3 204078b5 call check_51cmd 
+2fc4 20402fcb call app_process_bb_event 
+2fc5 6fe14465 fetch 2 ,mem_cb_idle_process 
+2fc6 20207e13 branch callback_func 
+
+app_process_bt:
+2fc7 6fe14463 fetch 2 ,mem_cb_bt_process 
+2fc8 20207e13 branch callback_func 
+
+app_process_ble:
+2fc9 6fe14461 fetch 2 ,mem_cb_le_process 
+2fca 20207e13 branch callback_func 
+
+app_process_bb_event:
+2fcb 44dc4017 bpatch patch17_0 ,mem_patch17 
+2fcc da204771 arg mem_ipc_fifo_bt2c51 ,rega 
+2fcd 20407e3f call fifo_out 
+2fce 207a0000 rtn blank 
+2fcf 1fe22600 copy pdata ,regc 
+2fd0 20402fd4 call app_event_normal_process 
+2fd1 20202ff9 branch app_process_bb_event_priority 
+
+app_discard_event:
+2fd2 da600000 arg 0 ,regc 
+2fd3 20600000 rtn 
+
+app_event_normal_process:
+2fd4 c000afe6 beq bt_evt_bb_connected ,app_evt_bt_conn 
+2fd5 c008302d beq bt_evt_button_long_pressed ,app_evt_button_long_pressed 
+2fd6 c002b00a beq bt_evt_setup_complete ,app_evt_setup_complete 
+2fd7 c0093011 beq bt_evt_hid_handshake ,app_evt_hid_handshake 
+2fd8 c0033029 beq bt_evt_hid_connected ,app_bb_event_hid_connected 
+2fd9 c002306b beq bt_evt_reconn_failed ,app_bb_event_reconn_failed 
+2fda c0013070 beq bt_evt_bb_disconnected ,app_bb_event_bb_disconn 
+2fdb c009b06b beq bt_evt_reconn_page_timeout ,app_bb_event_reconn_failed 
+2fdc c00a3020 beq bt_evt_le_connected ,app_le_event_bb_connected 
+2fdd c00ab024 beq bt_evt_le_disconnected ,app_le_event_bb_disconn 
+2fde c001b003 beq bt_evt_reconn_started ,app_event_reconn_start 
+2fdf c005b015 beq bt_evt_enter_sniff ,app_event_enter_sniff 
+2fe0 c006301c beq bt_evt_exit_sniff ,app_event_exit_sniff 
+2fe1 c00b3031 beq bt_evt_ml2cap_conn_refused ,app_event_ml2cap_conn_refused 
+2fe2 c00c2fff beq bt_evt_linkkey_generate ,app_event_linkkey_generate 
+2fe3 c0152fef beq bt_evt_switch_fail_master ,app_event_switch_fail_master 
+2fe4 c015afed beq bt_evt_switch_success_master ,app_event_switch_success 
+2fe5 20600000 rtn 
+
+app_evt_bt_conn:
+2fe6 6fe1478b fetch 2 ,mem_ui_state_map 
+2fe7 79207e00 set1 ui_state_bt_connected ,pdata 
+2fe8 67e1478b store 2 ,mem_ui_state_map 
+2fe9 6fe14480 fetch app_disc_rsn_size ,mem_app_disconn_reason_flag 
+2fea 793ffe00 set0 app_disc_by_button ,pdata 
+2feb 67e14480 store app_disc_rsn_size ,mem_app_disconn_reason_flag 
+2fec 202078f7 branch check_51cmd_stop_discovery 
+
+app_event_switch_success:
+2fed 70030c00 jam 0 ,mem_switch_fail_master_count 
+2fee 20600000 rtn 
+
+app_event_switch_fail_master:
+2fef 6fe0830c fetch 1 ,mem_switch_fail_master_count 
+2ff0 1fe0fe01 increase 1 ,pdata 
+2ff1 67e0830c store 1 ,mem_switch_fail_master_count 
+2ff2 1fe67c01 sub pdata ,1 ,null 
+2ff3 202130a6 branch app_bt_role_switch ,positive 
+2ff4 70030c00 jam 0 ,mem_switch_fail_master_count 
+2ff5 6fe14480 fetch app_disc_rsn_size ,mem_app_disconn_reason_flag 
+2ff6 79207e09 set1 app_disc_switch_fail ,pdata 
+2ff7 67e14480 store app_disc_rsn_size ,mem_app_disconn_reason_flag 
+2ff8 202030b0 branch app_bt_disconnect 
+
+app_process_bb_event_priority:
+2ff9 6fe14467 fetch 2 ,mem_cb_bb_event_process 
+2ffa 20207e13 branch callback_func 
+
+app_check_wake_lock:
+2ffb 6fe1445b fetch 2 ,mem_cb_check_wakelock 
+2ffc 20207e13 branch callback_func 
+
+app_will_enter_lpm:
+2ffd 6fe1445f fetch 2 ,mem_cb_before_lpm 
+2ffe 20207e13 branch callback_func 
+
+app_event_linkkey_generate:
+2fff 6fe14480 fetch app_disc_rsn_size ,mem_app_disconn_reason_flag 
+3000 79207e01 set1 app_disc_after_pairing ,pdata 
+3001 67e14480 store app_disc_rsn_size ,mem_app_disconn_reason_flag 
+3002 202030d9 branch app_bt_store_reconn_info 
+
+app_event_reconn_start:
+3003 6fe1478b fetch 2 ,mem_ui_state_map 
+3004 79207e07 set1 ui_state_bt_reconnect ,pdata 
+3005 67e1478b store 2 ,mem_ui_state_map 
+3006 6fe14480 fetch app_disc_rsn_size ,mem_app_disconn_reason_flag 
+3007 79207e02 set1 app_disc_after_reconn ,pdata 
+3008 67e14480 store app_disc_rsn_size ,mem_app_disconn_reason_flag 
+3009 20600000 rtn 
+
+app_evt_setup_complete:
+300a 6fe1478b fetch 2 ,mem_ui_state_map 
+300b 79207e01 set1 ui_state_bt_setup_complete ,pdata 
+300c 67e1478b store 2 ,mem_ui_state_map 
+300d 6fe14480 fetch app_disc_rsn_size ,mem_app_disconn_reason_flag 
+300e 79207e04 set1 app_disc_after_setup_done ,pdata 
+300f 67e14480 store app_disc_rsn_size ,mem_app_disconn_reason_flag 
+3010 20600000 rtn 
+
+app_evt_hid_handshake:
+3011 6fe1478b fetch 2 ,mem_ui_state_map 
+3012 79207e03 set1 ui_state_bt_hid_handshake ,pdata 
+3013 67e1478b store 2 ,mem_ui_state_map 
+3014 20600000 rtn 
+
+app_event_enter_sniff:
+3015 6fe1478b fetch 2 ,mem_ui_state_map 
+3016 79207e05 set1 ui_state_bt_sniff ,pdata 
+3017 67e1478b store 2 ,mem_ui_state_map 
+3018 6fe14480 fetch app_disc_rsn_size ,mem_app_disconn_reason_flag 
+3019 79207e03 set1 app_disc_after_sniff ,pdata 
+301a 67e14480 store app_disc_rsn_size ,mem_app_disconn_reason_flag 
+301b 20600000 rtn 
+
+app_event_exit_sniff:
+301c 6fe1478b fetch 2 ,mem_ui_state_map 
+301d 793ffe05 set0 ui_state_bt_sniff ,pdata 
+301e 67e1478b store 2 ,mem_ui_state_map 
+301f 20600000 rtn 
+
+app_le_event_bb_connected:
+3020 6fe1478b fetch 2 ,mem_ui_state_map 
+3021 79207e09 set1 ui_state_ble_connected ,pdata 
+3022 67e1478b store 2 ,mem_ui_state_map 
+3023 20600000 rtn 
+
+app_le_event_bb_disconn:
+3024 70443300 jam 0 ,mem_le_l2cap_att_states 
+3025 6fe1478b fetch 2 ,mem_ui_state_map 
+3026 793ffe09 set0 ui_state_ble_connected ,pdata 
+3027 67e1478b store 2 ,mem_ui_state_map 
+3028 202030df branch app_lpm_mult_disable 
+
+app_bb_event_hid_connected:
+3029 6fe1478b fetch 2 ,mem_ui_state_map 
+302a 79207e02 set1 ui_state_bt_hid_conn ,pdata 
+302b 67e1478b store 2 ,mem_ui_state_map 
+302c 20600000 rtn 
+
+app_evt_button_long_pressed:
+302d 6fe14480 fetch app_disc_rsn_size ,mem_app_disconn_reason_flag 
+302e 79207e00 set1 app_disc_by_button ,pdata 
+302f 67e14480 store app_disc_rsn_size ,mem_app_disconn_reason_flag 
+3030 20600000 rtn 
+
+app_event_ml2cap_conn_refused:
+3031 6fe14480 fetch app_disc_rsn_size ,mem_app_disconn_reason_flag 
+3032 79207e08 set1 app_disc_l2cap_refused ,pdata 
+3033 67e14480 store app_disc_rsn_size ,mem_app_disconn_reason_flag 
+3034 202030b0 branch app_bt_disconnect 
+
+app_evt_timer:
+3035 44dcc017 bpatch patch17_1 ,mem_patch17 
+3036 67e0830d store 1 ,mem_app_evt_timer_count 
+
+app_evt_100ms_loop:
+3037 6fe0830d fetch 1 ,mem_app_evt_timer_count 
+3038 207a0000 rtn blank 
+3039 1fe0ffff increase -1 ,pdata 
+303a 67e0830d store 1 ,mem_app_evt_timer_count 
+303b 204077f2 call ui_button_polling 
+303c 2040309d call app_lpm_wake_auto_lock_timer 
+303d 2040305e call app_unsniff_delay_timer 
+303e 20403064 call app_discovery_timer 
+303f 20405c8d call flash_write_spi_sm_timer 
+3040 20405d6b call flash_write_spi2_sm_timer 
+3041 6fe1446f fetch 2 ,mem_cb_event_timer 
+3042 20407e13 call callback_func 
+3043 20203037 branch app_evt_100ms_loop 
+
+timer_single_step:
+3044 efe08013 ifetch 1 ,regc 
+3045 207a0000 rtn blank 
+3046 1fe0ffff pincrease -1 
+3047 e7e08013 istore 1 ,regc 
+3048 247a0000 nrtn blank 
+3049 1a427e00 copy regb ,pdata 
+304a 20207e13 branch callback_func 
+
+timer_single_step_2b:
+304b efe10013 ifetch 2 ,regc 
+304c 207a0000 rtn blank 
+304d 1fe0ffff pincrease -1 
+304e e7e10013 istore 2 ,regc 
+304f 247a0000 nrtn blank 
+3050 1a427e00 copy regb ,pdata 
+3051 20207e13 branch callback_func 
+
+app_power_timer:
+3052 684944cb fetcht 2 ,mem_power_param_ptr 
+3053 1840a601 add temp ,power_timer_offset ,regc 
+3054 da403056 arg app_power_timer_timeout ,regb 
+3055 20203044 branch timer_single_step 
+
+app_power_timer_timeout:
+3056 204030f5 call app_got_power_state_common 
+3057 c000b059 beq power_starting ,app_enter_power_stanby_state 
+
+app_enter_power_off_state:
+3058 202030d1 branch app_enter_hibernate 
+
+app_enter_power_stanby_state:
+3059 58000002 setarg power_standby 
+305a e7e08013 istore 1 ,regc 
+305b 1840a408 add temp ,power_standby_cb_offset ,regb 
+
+app_power_cb_common:
+305c efe10012 ifetch 2 ,regb 
+305d 20207e13 branch callback_func 
+
+app_unsniff_delay_timer:
+305e da60447b arg mem_unsniff2sniff_timer_count ,regc 
+305f da403061 arg app_unsniff_delay_timeout ,regb 
+3060 20203044 branch timer_single_step 
+
+app_unsniff_delay_timeout:
+3061 20400a5f call context_check_idle 
+3062 2022b0d5 branch app_bt_enter_sniff ,zero 
+3063 20600000 rtn 
+
+app_discovery_timer:
+3064 da604787 arg mem_discovery_timeout_timer_count ,regc 
+3065 da403067 arg app_discovery_timeout ,regb 
+3066 2020304b branch timer_single_step_2b 
+
+app_discovery_timeout:
+3067 204030b7 call app_bt_stop_discovery 
+3068 204030cf call app_led_off 
+3069 6fe14469 fetch 2 ,mem_cb_discovry_timeout 
+306a 20207e13 branch callback_func 
+
+app_bb_event_reconn_failed:
+306b 20403083 call app_disconn_reason_flag_clear 
+
+app_clear_reconnect_flag:
+306c 6fe1478b fetch 2 ,mem_ui_state_map 
+306d 793ffe07 set0 ui_state_bt_reconnect ,pdata 
+306e 67e1478b store 2 ,mem_ui_state_map 
+306f 20600000 rtn 
+
+app_bb_event_bb_disconn:
+3070 70447b00 jam 0 ,mem_unsniff2sniff_timer_count 
+3071 6fe1478b fetch 2 ,mem_ui_state_map 
+3072 c283b075 bbit1 ui_state_bt_reconnect ,app_bb_event_bb_reconn_disconn 
+3073 2fec0001 isolate0 ui_state_bt_setup_complete ,pdata 
+3074 2040afd2 call app_discard_event ,true 
+
+app_bb_event_bb_reconn_disconn:
+3075 44dd4017 bpatch patch17_2 ,mem_patch17 
+3076 6fe1478b fetch 2 ,mem_ui_state_map 
+3077 793ffe00 set0 ui_state_bt_connected ,pdata 
+3078 793ffe01 set0 ui_state_bt_setup_complete ,pdata 
+3079 793ffe02 set0 ui_state_bt_hid_conn ,pdata 
+307a 793ffe03 set0 ui_state_bt_hid_handshake ,pdata 
+307b 793ffe07 set0 ui_state_bt_reconnect ,pdata 
+307c 67e1478b store 2 ,mem_ui_state_map 
+307d 202030df branch app_lpm_mult_disable 
+
+app_bb_hibernate:
+307e 20403080 call app_disconn_reason_clear 
+307f 202030d1 branch app_enter_hibernate 
+
+app_disconn_reason_clear:
+3080 58000000 setarg 0 
+3081 67e1447e store app_disc_rsn_size ,mem_app_disconn_reason 
+3082 20600000 rtn 
+
+app_disconn_reason_flag_clear:
+3083 58000000 setarg 0 
+3084 67e14480 store app_disc_rsn_size ,mem_app_disconn_reason_flag 
+3085 20600000 rtn 
+
+app_disconn_reason_collect_bt:
+3086 6fe14480 fetch app_disc_rsn_size ,mem_app_disconn_reason_flag 
+3087 67e1447e store app_disc_rsn_size ,mem_app_disconn_reason 
+3088 58000000 setarg 0 
+3089 67e14480 store app_disc_rsn_size ,mem_app_disconn_reason_flag 
+308a 20600000 rtn 
+
+app_disconn_reason_collect_ble:
+308b 6fe14480 fetch app_disc_rsn_size ,mem_app_disconn_reason_flag 
+308c 79207e07 set1 app_disc_ble ,pdata 
+308d 67e1447e store app_disc_rsn_size ,mem_app_disconn_reason 
+308e 58000000 setarg 0 
+308f 67e14480 store app_disc_rsn_size ,mem_app_disconn_reason_flag 
+3090 20600000 rtn 
+
+app_check_sniff:
+3091 6fe0c78b fetch 1 ,mem_ui_state_map 
+3092 2feffe05 isolate1 ui_state_bt_sniff ,pdata 
+3093 20600000 rtn 
+
+app_start_auto_sniff:
+3094 6fe0c641 fetch 1 ,mem_unsniff2sniff_timer 
+3095 67e0c47b store 1 ,mem_unsniff2sniff_timer_count 
+3096 20600000 rtn 
+
+app_get_lpm_wake_lock:
+3097 d8e00009 arg wake_lock_app ,queue 
+3098 20201516 branch lpm_get_wake_lock 
+
+app_put_lpm_wake_lock:
+3099 d8e00009 arg wake_lock_app ,queue 
+309a 2020151a branch lpm_put_wake_lock 
+
+app_lpm_wake_auto_lock:
+309b 70447c05 jam lpm_wake_up_delay_timer ,mem_wake_up_delay_timer 
+309c 20203097 branch app_get_lpm_wake_lock 
+
+app_lpm_wake_auto_lock_timer:
+309d da60447c arg mem_wake_up_delay_timer ,regc 
+309e da403099 arg app_put_lpm_wake_lock ,regb 
+309f 20203044 branch timer_single_step 
+
+app_l2cap_flow_control_enable:
+30a0 7045f301 jam l2cap_flow_ctrl_enable ,mem_l2cap_flow_ctrl_flag 
+30a1 20600000 rtn 
+
+app_l2cap_flow_control_disable:
+30a2 7045f300 jam l2cap_flow_ctrl_disable ,mem_l2cap_flow_ctrl_flag 
+30a3 20600000 rtn 
+
+app_bt_set_pincode:
+30a4 70095b0a jam bt_cmd_set_pin_code ,mem_fifo_temp 
+30a5 202078a8 branch ui_ipc_send_cmd 
+
+app_bt_role_switch:
+30a6 70095b1d jam bt_cmd_role_switch ,mem_fifo_temp 
+30a7 202078a8 branch ui_ipc_send_cmd 
+
+app_bt_start_reconnect:
+30a8 44ddc017 bpatch patch17_3 ,mem_patch17 
+30a9 6fe0c47d fetch 1 ,mem_app_connection_options 
+30aa 67e080bd store 1 ,mem_connection_options 
+30ab 70030b01 jam app_flag_reconnect ,mem_reconnect_flag 
+30ac 70095b03 jam bt_cmd_reconnect ,mem_fifo_temp 
+30ad 202078a8 branch ui_ipc_send_cmd 
+
+app_bt_reconnect_cancel:
+30ae 70095b1e jam bt_cmd_bb_reconn_cancel ,mem_fifo_temp 
+30af 202078a8 branch ui_ipc_send_cmd 
+
+app_bt_disconnect:
+30b0 70095b04 jam bt_cmd_disconnect ,mem_fifo_temp 
+30b1 202078a8 branch ui_ipc_send_cmd 
+
+app_bt_start_discovery_short:
+30b2 6fe14790 fetch 2 ,mem_discovery_timeout 
+30b3 67e14787 store 2 ,mem_discovery_timeout_timer_count 
+
+app_bt_start_discovery_led_blink:
+30b4 204030cb call app_led_start_blink 
+
+app_bt_start_discovery:
+30b5 70095b01 jam bt_cmd_start_discovery ,mem_fifo_temp 
+30b6 202078a8 branch ui_ipc_send_cmd 
+
+app_bt_stop_discovery:
+30b7 58000000 setarg 0 
+30b8 67e14787 store 2 ,mem_discovery_timeout_timer_count 
+30b9 70095b02 jam bt_cmd_stop_discovery ,mem_fifo_temp 
+30ba 202078a8 branch ui_ipc_send_cmd 
+
+app_ble_start_direct_adv:
+30bb 70095b0f jam bt_cmd_start_direct_adv ,mem_fifo_temp 
+30bc 202078a8 branch ui_ipc_send_cmd 
+
+app_ble_stop_direct_adv:
+30bd 70095b10 jam bt_cmd_stop_direct_adv ,mem_fifo_temp 
+30be 202078a8 branch ui_ipc_send_cmd 
+
+app_ble_stop_adv:
+30bf 70095b0e jam bt_cmd_stop_adv ,mem_fifo_temp 
+30c0 202078a8 branch ui_ipc_send_cmd 
+
+app_ble_start_adv:
+30c1 70095b0d jam bt_cmd_start_adv ,mem_fifo_temp 
+30c2 202078a8 branch ui_ipc_send_cmd 
+
+app_ble_start_scan:
+30c3 70095b17 jam bt_cmd_le_start_scan ,mem_fifo_temp 
+30c4 202078a8 branch ui_ipc_send_cmd 
+
+app_ble_stop_scan:
+30c5 70095b18 jam bt_cmd_le_stop_scan ,mem_fifo_temp 
+30c6 202078a8 branch ui_ipc_send_cmd 
+
+app_ble_start_conn:
+30c7 70095b16 jam bt_cmd_le_start_conn ,mem_fifo_temp 
+30c8 202078a8 branch ui_ipc_send_cmd 
+
+app_ble_disconnect:
+30c9 70095b11 jam bt_cmd_le_disconnect ,mem_fifo_temp 
+30ca 202078a8 branch ui_ipc_send_cmd 
+
+app_led_start_blink:
+30cb 70095b15 jam bt_cmd_led_blink ,mem_fifo_temp 
+30cc 202078a8 branch ui_ipc_send_cmd 
+
+app_led_on:
+30cd 70095b14 jam bt_cmd_led_on ,mem_fifo_temp 
+30ce 202078a8 branch ui_ipc_send_cmd 
+
+app_led_stop_blink:
+
+app_led_off:
+30cf 70095b13 jam bt_cmd_led_off ,mem_fifo_temp 
+30d0 202078a8 branch ui_ipc_send_cmd 
+
+app_enter_hibernate:
+30d1 70095b19 jam bt_cmd_enter_hibernate ,mem_fifo_temp 
+30d2 202078a8 branch ui_ipc_send_cmd 
+
+app_bt_sniff_exit:
+30d3 70095b06 jam bt_cmd_exit_sniff ,mem_fifo_temp 
+30d4 202078a8 branch ui_ipc_send_cmd 
+
+app_bt_enter_sniff:
+30d5 70095b05 jam bt_cmd_enter_sniff ,mem_fifo_temp 
+30d6 202078a8 branch ui_ipc_send_cmd 
+
+app_ble_store_reconn_info:
+30d7 70095b1f jam bt_cmd_store_reconn_info_le ,mem_fifo_temp 
+30d8 202078a8 branch ui_ipc_send_cmd 
+
+app_bt_store_reconn_info:
+30d9 70095b20 jam bt_cmd_store_reconn_info_bt ,mem_fifo_temp 
+30da 202078a8 branch ui_ipc_send_cmd 
+
+app_store_reconn_info:
+30db 70095b25 jam bt_cmd_store_reconn_info ,mem_fifo_temp 
+30dc 202078a8 branch ui_ipc_send_cmd 
+
+app_lpm_mult_enable:
+30dd 7920000d set1 mark_lpm_mult_enable ,mark 
+30de 20600000 rtn 
+
+app_lpm_mult_disable:
+30df 793f800d set0 mark_lpm_mult_enable ,mark 
+30e0 20600000 rtn 
+
+app_button_long_pressed:
+30e1 204030f5 call app_got_power_state_common 
+30e2 c00130eb beq power_standby ,app_power_shutting_down 
+
+app_power_starting:
+30e3 58000001 setarg power_starting 
+30e4 e7e08013 istore 1 ,regc 
+30e5 1840a203 add temp ,power_starting_timeout_offset ,rega 
+30e6 1840a406 add temp ,power_starting_cb_offset ,regb 
+
+app_power_common:
+30e7 e8408011 ifetcht 1 ,rega 
+30e8 1a60a601 increase 1 ,regc 
+30e9 e0408013 istoret 1 ,regc 
+30ea 2020305c branch app_power_cb_common 
+
+app_power_shutting_down:
+30eb 58000000 setarg power_off 
+30ec e7e08013 istore 1 ,regc 
+30ed 6fe1478b fetch 2 ,mem_ui_state_map 
+30ee c304b0f1 bbit0 ui_state_ble_connected ,app_power_off_end 
+30ef 20402a57 call le_send_terminate_ind_user_terminated 
+30f0 204030c9 call app_ble_disconnect 
+
+app_power_off_end:
+30f1 684944cb fetcht 2 ,mem_power_param_ptr 
+30f2 1840a202 add temp ,power_off_timeout_offset ,rega 
+30f3 1840a404 add temp ,power_off_cb_offset ,regb 
+30f4 202030e7 branch app_power_common 
+
+app_got_power_state_common:
+30f5 684944cb fetcht 2 ,mem_power_param_ptr 
+30f6 1840a600 add temp ,power_state_offset ,regc 
+30f7 efe08013 ifetch 1 ,regc 
+30f8 20600000 rtn 
+
+app_event_button_up:
+30f9 204030f5 call app_got_power_state_common 
+30fa c08030fc bne power_off ,app_power_release 
+30fb 202030d1 branch app_enter_hibernate 
+
+app_power_release:
+30fc 1840a40a add temp ,ui_butten_up_cb_offset ,regb 
+30fd 2020305c branch app_power_cb_common 
+
+antilost_init:
+30fe 20758000 rtn wake 
+30ff 5800312d setarg antilost_le_before_hibernate 
+3100 67e1445d store 2 ,mem_cb_before_hibernate 
+3101 580061b7 setarg keyscan_process_lpm_before 
+3102 67e1445f store 2 ,mem_cb_before_lpm 
+3103 580031d0 setarg antilost_idle_process 
+3104 67e14465 store 2 ,mem_cb_idle_process 
+3105 580031cf setarg antilost_le_conn_process 
+3106 67e14461 store 2 ,mem_cb_le_process 
+3107 58003148 setarg antilost_bb_event_process 
+3108 67e14467 store 2 ,mem_cb_bb_event_process 
+3109 58003185 setarg antilost_le_bb_event_timer 
+310a 67e1446f store 2 ,mem_cb_event_timer 
+310b 5800312f setarg antilost_le_notification 
+310c 67e1446d store 2 ,mem_cb_ble_transmit 
+310d 5800313a setarg antilost_lpm_lock_process 
+310e 67e1445b store 2 ,mem_cb_check_wakelock 
+310f 580031dc setarg antilost_le_receive_data_process 
+3110 67e1446b store 2 ,mem_cb_att_write 
+3111 44de4017 bpatch patch17_4 ,mem_patch17 
+3112 20403275 call antilost_buzzer_pwm_init 
+3113 2040312b call antilost_set_ble_version 
+3114 20406193 call keyscan_key_init 
+3115 20403287 call antilost_adc_init 
+3116 2040781d call ui_led_init_global 
+3117 204077e8 call ui_button_init 
+3118 580031e6 setarg antilost_key_up_down 
+3119 67e1486f store 2 ,mem_cb_antl_key 
+311a 580031d7 setarg antilost_power_off_cb 
+311b 67e14866 store 2 ,mem_antl_power_off_cb 
+311c 580031d3 setarg antilost_power_starting_cb 
+311d 67e14868 store 2 ,mem_antl_power_starting_cb 
+311e 58003136 setarg antilost_power_standby_cb 
+311f 67e1486a store 2 ,mem_antl_power_standby_cb 
+3120 5800327c setarg antilost_led_on_cb 
+3121 67e147b2 store 2 ,mem_antl_led_cb_on 
+3122 5800327e setarg antilost_led_off_cb 
+3123 67e147b4 store 2 ,mem_antl_led_cb_off 
+3124 58003283 setarg antilost_buzzer_on 
+3125 67e147bd store 2 ,mem_antl_buzzer_cb_on 
+3126 58003280 setarg antilost_buzzer_off 
+3127 67e147bf store 2 ,mem_antl_buzzer_cb_off 
+3128 6fe1478b fetch 2 ,mem_ui_state_map 
+3129 c3860000 rtnbit1 ui_state_btn_down 
+312a 202030d1 branch app_enter_hibernate 
+
+antilost_set_ble_version:
+312b 7045f707 jam 7 ,mem_lmp_version 
+312c 20600000 rtn 
+
+antilost_le_before_hibernate:
+312d 20403260 call antilost_led_buzzer_stop_blink 
+312e 202030d1 branch app_enter_hibernate 
+
+antilost_le_notification:
+312f 20402382 call le_fifo_check_nearly_full 
+3130 247a0000 nrtn blank 
+3131 da2009d2 arg mem_temp_block5 ,rega 
+3132 20407984 call queue_pop 
+3133 24740000 nrtn user 
+3134 d8c009d2 arg mem_temp_block5 ,contr 
+3135 20204c89 branch le_send_notify_from_list 
+
+antilost_power_standby_cb:
+3136 6fe148a0 fetch 2 ,mem_antl_le_sleep_timeout 
+3137 67e1489a store 2 ,mem_antl_le_sleep_timer 
+3138 70485c01 jam 1 ,mem_antl_key_scan_enable 
+3139 20203269 branch antilost_fast_adv_start 
+
+antilost_lpm_lock_process:
+313a 6fe0c8a6 fetch 1 ,mem_antl_key_state 
+313b c000b143 beq 1 ,antilost_lpm_ctrl_for_led_buzzer 
+313c 6fe1478b fetch 2 ,mem_ui_state_map 
+313d c304b143 bbit0 ui_state_ble_connected ,antilost_lpm_ctrl_for_led_buzzer 
+313e 6fe0c8a7 fetch 1 ,mem_antl_lost_mode 
+313f c000b097 beq 1 ,app_get_lpm_wake_lock 
+3140 6fe0c809 fetch 1 ,mem_antl_queue_curr_num 
+3141 243a3097 nbranch app_get_lpm_wake_lock ,blank 
+3142 20203099 branch app_put_lpm_wake_lock 
+
+antilost_lpm_ctrl_for_led_buzzer:
+3143 6fe0c8a4 fetch 1 ,mem_antl_led_state 
+3144 6848c8a5 fetcht 1 ,mem_antl_buzzer_state 
+3145 9841fe00 ior temp ,pdata 
+3146 c000b097 beq 1 ,app_get_lpm_wake_lock 
+3147 20203099 branch app_put_lpm_wake_lock 
+
+antilost_bb_event_process:
+3148 1a627e00 copy regc ,pdata 
+3149 c016b0f9 beq bt_evt_button_up ,app_event_button_up 
+314a c00830e1 beq bt_evt_button_long_pressed ,app_button_long_pressed 
+314b c00a31ba beq bt_evt_le_connected ,antilost_le_process_conn 
+314c c00ab1c3 beq bt_evt_le_disconnected ,antilost_le_process_discon 
+314d c0203150 beq bt_evt_le_parse_conn_papa_update_rsp ,antilost_le_conn_param_update_rsp_recieved 
+314e c022315a beq bt_evt_le_parse_conn_param_accepted ,antilost_le_conn_param_accepted 
+314f 20600000 rtn 
+
+antilost_le_conn_param_update_rsp_recieved:
+3150 20403156 call antilost_le_conn_param_updata_judge 
+3151 6fe143d9 fetch 2 ,mem_le_l2cap_signaling_conn_param_update_rsp_result 
+3152 c000b160 beq ble_signaling_connect_parameter_update_rejected ,antilost_le_conn_param_rejected 
+
+antilost_le_conn_param_updata_procedure_sucsess:
+3153 70489302 jam conn_param_updata_procedure_complete ,mem_antl_conn_updata_procedure_state 
+3154 7048983c jam 60 ,mem_antl_conn_update_timer 
+3155 20600000 rtn 
+
+antilost_le_conn_param_updata_judge:
+3156 6fe08287 fetch 1 ,mem_le_state 
+3157 c3828000 rtnbit1 lestate_update_param 
+3158 704a5f01 jam 1 ,mem_lestate_update_param_flag 
+3159 20600000 rtn 
+
+antilost_le_conn_param_accepted:
+315a 6fe0ca5f fetch 1 ,mem_lestate_update_param_flag 
+315b 207a0000 rtn blank 
+315c 704a5f00 jam 0 ,mem_lestate_update_param_flag 
+315d 6fe102c3 fetch 2 ,mem_le_new_connslavelatency 
+315e 203a3175 branch antilost_master_nonsupport_latency ,blank 
+315f 20600000 rtn 
+
+antilost_le_conn_param_rejected:
+3160 6fe14374 fetch 2 ,mem_le_latency 
+3161 203a3173 branch antilost_conn_param_updata_procedure_faild ,blank 
+
+antilost_conn_param_retransimiting:
+3162 70489301 jam conn_param_updata_procedure_starting ,mem_antl_conn_updata_procedure_state 
+3163 684948bd fetcht 2 ,mem_interval_increment 
+3164 6fe14370 fetch 2 ,mem_le_interval_min 
+3165 9840fe00 iadd temp ,pdata 
+3166 67e14370 store 2 ,mem_le_interval_min 
+3167 1fe22200 copy pdata ,rega 
+3168 6fe14372 fetch 2 ,mem_le_interval_max 
+3169 9840fe00 iadd temp ,pdata 
+316a 67e14372 store 2 ,mem_le_interval_max 
+316b 9a20fe00 iadd rega ,pdata 
+316c 1fe30400 rshift pdata ,temp 
+316d 6fe148c9 fetch 2 ,mem_antl_le_unnormal_interval_max 
+316e 9846fc00 idiv temp 
+316f 20407dfa call get_div_result 
+3170 67e14374 store 2 ,mem_le_latency 
+3171 70489901 jam 1 ,mem_antl_send_updata_le_param_timer 
+3172 20600000 rtn 
+
+antilost_conn_param_updata_procedure_faild:
+3173 70489303 jam conn_param_updata_procedure_faild ,mem_antl_conn_updata_procedure_state 
+3174 20600000 rtn 
+
+antilost_master_nonsupport_latency:
+3175 70417a00 jam 0 ,mem_lpm_mult 
+3176 70489900 jam 0 ,mem_antl_send_updata_le_param_timer 
+3177 6fe102c1 fetch 2 ,mem_le_new_conninterval 
+3178 684948c7 fetcht 2 ,mem_antl_le_unnormal_interval_min 
+3179 98467c00 isub temp ,null 
+317a 79212200 setflag positive ,0 ,rega 
+317b 6fe148c9 fetch 2 ,mem_antl_le_unnormal_interval_max 
+317c 684902c1 fetcht 2 ,mem_le_new_conninterval 
+317d 98467e00 isub temp ,pdata 
+317e 79212201 setflag positive ,1 ,rega 
+317f 2a200603 compare 0x03 ,rega ,0x03 
+3180 20608000 rtn true 
+3181 6fe448c7 fetch 8 ,mem_antl_le_unnormal_interval_min 
+3182 67e44370 store 8 ,mem_le_interval_min 
+3183 70489901 jam 1 ,mem_antl_send_updata_le_param_timer 
+3184 20600000 rtn 
+
+antilost_le_bb_event_timer:
+3185 20403052 call app_power_timer 
+3186 20403194 call antilost_double_click_timer 
+3187 20403199 call antilost_le_fast_adv_timer 
+3188 204031b0 call antilost_le_sleep_timer 
+3189 204031a5 call antilost_app_updata_le_param_timer 
+318a 2040319f call antilost_conn_update_timer 
+318b 2040318d call antilost_conn_battery_send_timer 
+318c 202031b4 branch antilost_adc_check_timer 
+
+antilost_conn_battery_send_timer:
+318d da604a60 arg mem_antilost_conn_battery_send_timer ,regc 
+318e da403190 arg antilost_conn_battery_send ,regb 
+318f 20203044 branch timer_single_step 
+
+antilost_conn_battery_send:
+3190 20403289 call antilost_battery_process 
+3191 20403289 call antilost_battery_process 
+3192 20403289 call antilost_battery_process 
+3193 20203294 branch antilost_battery_calculate_end 
+
+antilost_double_click_timer:
+3194 da6048a2 arg mem_double_click_timer ,regc 
+3195 da403197 arg antilost_double_click_timeout ,regb 
+3196 20203044 branch timer_single_step 
+
+antilost_double_click_timeout:
+3197 7048a300 jam 0 ,mem_butten_click_cnt 
+3198 20600000 rtn 
+
+antilost_le_fast_adv_timer:
+3199 da60489c arg mem_antl_fast_adv_timer ,regc 
+319a da40319c arg antilost_le_fast_adv_timeout ,regb 
+319b 2020304b branch timer_single_step_2b 
+
+antilost_le_fast_adv_timeout:
+319c da6047c8 arg mem_antl_slow_adv_led_style ,regc 
+319d da4047a7 arg mem_antl_slow_adv_lpm_interval ,regb 
+319e 2020326b branch antilost_adv_start_common 
+
+antilost_conn_update_timer:
+319f da604898 arg mem_antl_conn_update_timer ,regc 
+31a0 da4031a2 arg antilost_conn_update_timer_time_out ,regb 
+31a1 20203044 branch timer_single_step 
+
+antilost_conn_update_timer_time_out:
+31a2 6fe14374 fetch 2 ,mem_le_latency 
+31a3 67e0c17a store 1 ,mem_lpm_mult 
+31a4 20600000 rtn 
+
+antilost_app_updata_le_param_timer:
+31a5 da604899 arg mem_antl_send_updata_le_param_timer ,regc 
+31a6 da4031a8 arg antilost_app_updata_le_param_timeout ,regb 
+31a7 20203044 branch timer_single_step 
+
+antilost_app_updata_le_param_timeout:
+31a8 6fe08287 fetch 1 ,mem_le_state 
+31a9 2fe0c000 compare 0 ,pdata ,0x60 
+31aa 2420b1ae nbranch antilost_wait_for_updata_param_instant_expire ,true 
+31ab 70489301 jam conn_param_updata_procedure_starting ,mem_antl_conn_updata_procedure_state 
+31ac 204030dd call app_lpm_mult_enable 
+31ad 20202827 branch le_l2cap_tx_update_req 
+
+antilost_wait_for_updata_param_instant_expire:
+31ae 70489901 jam 1 ,mem_antl_send_updata_le_param_timer 
+31af 20600000 rtn 
+
+antilost_le_sleep_timer:
+31b0 da60489a arg mem_antl_le_sleep_timer ,regc 
+31b1 da4031b3 arg antilost_le_sleep_timer_timeout ,regb 
+31b2 2020304b branch timer_single_step_2b 
+
+antilost_le_sleep_timer_timeout:
+31b3 202030e1 branch app_button_long_pressed 
+
+antilost_adc_check_timer:
+31b4 da604896 arg mem_adc_timer ,regc 
+31b5 da4031b7 arg antilost_adc_check_timer_timeout ,regb 
+31b6 2020304b branch timer_single_step_2b 
+
+antilost_adc_check_timer_timeout:
+31b7 6fe148b0 fetch 2 ,mem_adc_timeout 
+31b8 67e14896 store 2 ,mem_adc_timer 
+31b9 20203289 branch antilost_battery_process 
+
+antilost_le_process_conn:
+31ba 6fe148b0 fetch 2 ,mem_adc_timeout 
+31bb 67e14896 store 2 ,mem_adc_timer 
+31bc 58000000 setarg 0 
+31bd 67e1489c store 2 ,mem_antl_fast_adv_timer 
+31be 67e1489a store 2 ,mem_antl_le_sleep_timer 
+31bf 20403237 call antilost_alert_off 
+31c0 20403260 call antilost_led_buzzer_stop_blink 
+31c1 70417a00 jam 0 ,mem_lpm_mult 
+31c2 202030bf branch app_ble_stop_adv 
+
+antilost_le_process_discon:
+31c3 58000000 setarg 0 
+31c4 67e24896 store 4 ,mem_adc_timer 
+31c5 67e1c893 store 3 ,mem_antl_conn_updata_procedure_state 
+31c6 67e143d9 store 2 ,mem_le_l2cap_signaling_conn_param_update_rsp_result 
+31c7 7048a901 jam 1 ,mem_alarm_config_notfy_cnt 
+31c8 6fe148a0 fetch 2 ,mem_antl_le_sleep_timeout 
+31c9 67e1489a store 2 ,mem_antl_le_sleep_timer 
+31ca 20407968 call queue_init 
+31cb 6fe0c862 fetch 1 ,mem_antl_power_state 
+31cc c1000000 rtneq power_off 
+31cd 20403269 call antilost_fast_adv_start 
+31ce 20203249 branch antilost_on_off_alarm_after_disconn 
+
+antilost_le_conn_process:
+31cf 202031e3 branch antilost_key_process 
+
+antilost_idle_process:
+31d0 6fe0c862 fetch 1 ,mem_antl_power_state 
+31d1 c1810000 rtnne power_standby 
+31d2 202031e3 branch antilost_key_process 
+
+antilost_power_starting_cb:
+31d3 da6047d6 arg mem_antl_power_starting_buzzer_style ,regc 
+31d4 2040325c call antilost_buzzer_configuration 
+31d5 da6047cf arg mem_antl_power_starting_led_style ,regc 
+
+antilost_power_common:
+31d6 2020325e branch antilost_led_configuration 
+
+antilost_power_off_cb:
+31d7 70442500 jam off ,mem_le_adv_enable 
+31d8 da6047e4 arg mem_antl_power_off_buzzer_style ,regc 
+31d9 2040325c call antilost_buzzer_configuration 
+31da da6047dd arg mem_antl_power_off_led_style ,regc 
+31db 202031d6 branch antilost_power_common 
+
+antilost_le_receive_data_process:
+31dc 6fe0c434 fetch 1 ,mem_le_att_opcode 
+31dd c00931df beq attop_write_request ,antilost_le_parse_att_write_request 
+31de 20600000 rtn 
+
+antilost_le_parse_att_write_request:
+31df 6fe14435 fetch 2 ,mem_le_att_handle 
+31e0 c006b211 beq new_spec_write_handle ,antilost_cmd_parse_for_application 
+31e1 c005b24c beq new_spec_notification_enable_handle ,antilost_notify_alarm_config_first_time 
+31e2 20600000 rtn 
+
+antilost_key_process:
+31e3 6fe0c85c fetch 1 ,mem_antl_key_scan_enable 
+31e4 207a0000 rtn blank 
+31e5 202061c3 branch keyscan_key_process 
+
+antilost_key_up_down:
+31e6 1a227e00 copy rega ,pdata 
+31e7 203a31eb branch antilost_key_is_up ,blank 
+
+antilost_key_is_down:
+31e8 18e27e00 copy queue ,pdata 
+31e9 c00031ee beq 0 ,antilost_key0_down 
+31ea 20600000 rtn 
+
+antilost_key_is_up:
+31eb 18e27e00 copy queue ,pdata 
+31ec c00031f6 beq 0 ,antilost_key0_up 
+31ed 20600000 rtn 
+
+antilost_key0_down:
+31ee 7048a601 jam 1 ,mem_antl_key_state 
+31ef da604800 arg mem_antl_key_buzzer_style ,regc 
+31f0 2040325c call antilost_buzzer_configuration 
+31f1 da6047f9 arg mem_antl_key_led_style ,regc 
+31f2 2040325e call antilost_led_configuration 
+31f3 6fe1478b fetch 2 ,mem_ui_state_map 
+31f4 c304b20d bbit0 ui_state_ble_connected ,antilost_butten_down_while_disconn 
+31f5 202031fc branch antilost_butten_down_after_conn 
+
+antilost_key0_up:
+31f6 7048a600 jam 0 ,mem_antl_key_state 
+31f7 202031f8 branch antilost_double_click_timer_init 
+
+antilost_double_click_timer_init:
+31f8 6fe0c8a3 fetch 1 ,mem_butten_click_cnt 
+31f9 c1808000 rtnne 1 
+31fa 7048a205 jam 5 ,mem_double_click_timer 
+31fb 20600000 rtn 
+
+antilost_butten_down_after_conn:
+31fc 6fe0c8a3 fetch 1 ,mem_butten_click_cnt 
+31fd 1fe0fe01 pincrease 1 
+31fe 67e0c8a3 store 1 ,mem_butten_click_cnt 
+31ff c000b202 beq 1 ,antilost_click_once 
+3200 c0013206 beq 2 ,antilost_click_twice 
+3201 20600000 rtn 
+
+antilost_click_once:
+3202 20403237 call antilost_alert_off 
+3203 70487a01 jam opcode1_butten_click_once ,mem_antl_key0_press + 5 
+3204 da604875 arg mem_antl_key0_press ,regc 
+3205 2020321f branch antilost_prepare_data_and_send 
+
+antilost_click_twice:
+3206 7048a300 jam 0 ,mem_butten_click_cnt 
+3207 70487a02 jam opcode2_butten_double_click ,mem_antl_key0_press + 5 
+3208 da604875 arg mem_antl_key0_press ,regc 
+3209 2040321f call antilost_prepare_data_and_send 
+320a 6fe0c8a7 fetch 1 ,mem_antl_lost_mode 
+320b c000b22c beq 1 ,antilost_alert_on 
+320c 20600000 rtn 
+
+antilost_butten_down_while_disconn:
+320d 6fe148a0 fetch 2 ,mem_antl_le_sleep_timeout 
+320e 67e1489a store 2 ,mem_antl_le_sleep_timer 
+320f 20403237 call antilost_alert_off 
+3210 20203269 branch antilost_fast_adv_start 
+
+antilost_cmd_parse_for_application:
+3211 44dec017 bpatch patch17_5 ,mem_patch17 
+3212 204033ab call le_app_receive_data 
+3213 efe08011 ifetch 1 ,rega 
+3214 c001b217 beq opcode3_antl_start_alram ,antilost_on_of_alram 
+3215 c003b21b beq opcode7_antl_config_alram ,antilost_configuration_for_alram 
+3216 20600000 rtn 
+
+antilost_on_of_alram:
+3217 6fe0c8a7 fetch 1 ,mem_antl_lost_mode 
+3218 c000322c beq anti_le_alarm_off ,antilost_alert_on 
+3219 c000b237 beq anti_le_alarm_on ,antilost_alert_off 
+321a 20600000 rtn 
+
+antilost_configuration_for_alram:
+321b efe08012 ifetch 1 ,regb 
+321c c000b23f beq 1 ,antilost_set_start_alarm_after_disconn 
+321d c0003244 beq 0 ,antilost_set_no_alarm_after_disconn 
+321e 20600000 rtn 
+
+antilost_prepare_data_and_send:
+321f 44df4017 bpatch patch17_6 ,mem_patch17 
+3220 6fe0c894 fetch 1 ,mem_client_characteristic_configuration_descriptor 
+3221 2feffe00 isolate1 notification_enable_bit ,pdata 
+3222 24608000 nrtn true 
+3223 1a608c06 add regc ,6 ,contr 
+3224 efe10006 ifetch 2 ,contr 
+3225 1ff0fe00 byteswap pdata ,pdata 
+3226 1fe0f205 add pdata ,5 ,loopcnt 
+3227 1a608c03 add regc ,3 ,contr 
+3228 2040339f call calc_check_sum_start 
+3229 e7e08006 istore 1 ,contr 
+322a 1a622200 copy regc ,rega 
+322b 2020796d branch queue_push 
+
+antilost_alert_on:
+322c 6fe0c862 fetch 1 ,mem_antl_power_state 
+322d 207a0000 rtn blank 
+322e 7048a701 jam 1 ,mem_antl_lost_mode 
+322f da6047f2 arg mem_antl_alert_buzzer_stlye ,regc 
+3230 2040325c call antilost_buzzer_configuration 
+3231 da6047eb arg mem_antl_alert_led_stlye ,regc 
+3232 2040325e call antilost_led_configuration 
+3233 70488904 jam opcode4_current_alarm_state ,mem_antl_key0_release + 5 
+3234 70488c01 jam 1 ,mem_antl_key0_release + 8 
+3235 da604884 arg mem_antl_key0_release ,regc 
+3236 2020321f branch antilost_prepare_data_and_send 
+
+antilost_alert_off:
+3237 6fe0c8a7 fetch 1 ,mem_antl_lost_mode 
+3238 207a0000 rtn blank 
+3239 7048a700 jam 0 ,mem_antl_lost_mode 
+323a 20403260 call antilost_led_buzzer_stop_blink 
+323b 70488904 jam opcode4_current_alarm_state ,mem_antl_key0_release + 5 
+323c 70488c00 jam 0 ,mem_antl_key0_release + 8 
+323d da604884 arg mem_antl_key0_release ,regc 
+323e 2020321f branch antilost_prepare_data_and_send 
+
+antilost_set_start_alarm_after_disconn:
+323f 7048a801 jam 1 ,mem_alarm_config 
+3240 70488907 jam opcode7_antl_config_alram ,mem_antl_key0_release + 5 
+3241 70488c01 jam 1 ,mem_antl_key0_release + 8 
+3242 da604884 arg mem_antl_key0_release ,regc 
+3243 2020321f branch antilost_prepare_data_and_send 
+
+antilost_set_no_alarm_after_disconn:
+3244 7048a800 jam 0 ,mem_alarm_config 
+3245 70488907 jam opcode7_antl_config_alram ,mem_antl_key0_release + 5 
+3246 70488c00 jam 0 ,mem_antl_key0_release + 8 
+3247 da604884 arg mem_antl_key0_release ,regc 
+3248 2020321f branch antilost_prepare_data_and_send 
+
+antilost_on_off_alarm_after_disconn:
+3249 6fe0c8a8 fetch 1 ,mem_alarm_config 
+324a 207a0000 rtn blank 
+324b 2020322c branch antilost_alert_on 
+
+antilost_notify_alarm_config_first_time:
+324c efe10011 ifetch 2 ,rega 
+324d 67e14894 store 2 ,mem_client_characteristic_configuration_descriptor 
+324e 2feffe00 isolate1 notification_enable_bit ,pdata 
+324f 24608000 nrtn true 
+3250 6fe0c8a9 fetch 1 ,mem_alarm_config_notfy_cnt 
+3251 207a0000 rtn blank 
+3252 7048a900 jam 0 ,mem_alarm_config_notfy_cnt 
+3253 6fe448bf fetch 8 ,mem_antl_le_interval_min 
+3254 67e44370 store 8 ,mem_le_interval_min 
+3255 704a6003 jam 3 ,mem_antilost_conn_battery_send_timer 
+3256 70488907 jam opcode7_antl_config_alram ,mem_antl_key0_release + 5 
+3257 7048991e jam 30 ,mem_antl_send_updata_le_param_timer 
+3258 6fe0c8a8 fetch 1 ,mem_alarm_config 
+3259 67e0c88c store 1 ,mem_antl_key0_release + 8 
+325a da604884 arg mem_antl_key0_release ,regc 
+325b 2020321f branch antilost_prepare_data_and_send 
+
+antilost_buzzer_configuration:
+325c da200001 arg 1 ,rega 
+325d 2020325f branch antilost_configuration_common 
+
+antilost_led_configuration:
+325e da200000 arg 0 ,rega 
+
+antilost_configuration_common:
+325f 20203266 branch antilost_led_buzzer_style_configuration 
+
+antilost_led_buzzer_stop_blink:
+3260 da200000 arg 0 ,rega 
+3261 2040782e call ui_led_blink_stop_global 
+3262 da200001 arg 1 ,rega 
+3263 2040782e call ui_led_blink_stop_global 
+3264 6fe148aa fetch 2 ,mem_buzzer_pwm_conf 
+3265 20206236 branch pwm_disable 
+
+antilost_led_buzzer_style_configuration:
+3266 20407819 call calc_curr_struct_prt 
+3267 df200007 arg 7 ,loopcnt 
+3268 2020783b branch ui_led_set_style_global + 2 
+
+antilost_fast_adv_start:
+3269 da6047c1 arg mem_antl_fast_adv_led_style ,regc 
+326a da4047a3 arg mem_antl_lpm_interval ,regb 
+
+antilost_adv_start_common:
+326b 20403270 call antilost_adv_interval_lpm_interval_set 
+326c 2040325e call antilost_led_configuration 
+326d 6fe1489e fetch 2 ,mem_antl_fast_adv_timeout 
+326e 67e1489c store 2 ,mem_antl_fast_adv_timer 
+326f 202030c1 branch app_ble_start_adv 
+
+antilost_adv_interval_lpm_interval_set:
+3270 efe10012 ifetch 2 ,regb 
+3271 67e1415c store 2 ,mem_lpm_interval 
+3272 efe10006 ifetch 2 ,contr 
+3273 67e14426 store 2 ,mem_le_adv_interval 
+3274 20600000 rtn 
+
+antilost_buzzer_pwm_init:
+3275 da200000 arg 0 ,rega 
+3276 204061f1 call pwm_init 
+3277 6fe348aa fetch 6 ,mem_buzzer_pwm_conf 
+3278 67e3095c store 6 ,mem_pdatatemp 
+3279 20406218 call pwm_out_set 
+327a 6fe148aa fetch 2 ,mem_buzzer_pwm_conf 
+327b 20206236 branch pwm_disable 
+
+antilost_led_on_cb:
+327c 7048a401 jam 1 ,mem_antl_led_state 
+327d 20600000 rtn 
+
+antilost_led_off_cb:
+327e 7048a400 jam 0 ,mem_antl_led_state 
+327f 20600000 rtn 
+
+antilost_buzzer_off:
+3280 7048a500 jam 0 ,mem_antl_buzzer_state 
+3281 6fe148aa fetch 2 ,mem_buzzer_pwm_conf 
+3282 20206236 branch pwm_disable 
+
+antilost_buzzer_on:
+3283 7048a501 jam 1 ,mem_antl_buzzer_state 
+3284 6fe348aa fetch 6 ,mem_buzzer_pwm_conf 
+3285 67e3095c store 6 ,mem_pdatatemp 
+3286 20206218 branch pwm_out_set 
+
+antilost_adc_init:
+3287 7044a300 jam 0 ,mem_adc_config_flag 
+3288 2020612c branch adc_init_data 
+
+antilost_battery_process:
+3289 2040612e call adc_set_mode 
+328a 20406147 call vdd_calculate_by_mode 
+328b 67e148b9 store 2 ,mem_battery_current_voltage 
+328c da2048b3 arg mem_battery_calculate_set ,rega 
+328d 20406173 call adc_bat_percent_lowpower_out 
+328e 67e0c8b2 store 1 ,mem_voltage_remain_percent 
+328f 58000065 setarg 0x65 
+3290 c0003299 beq 0 ,antilost_low_battery 
+3291 1fe67c64 sub pdata ,0x64 ,null 
+3292 24213297 nbranch antilost_full_battery ,positive 
+3293 67e0c88c store 1 ,mem_antl_key0_release + 8 
+
+antilost_battery_calculate_end:
+3294 70488905 jam opcode5_batter_information ,mem_antl_key0_release + 5 
+3295 da604884 arg mem_antl_key0_release ,regc 
+3296 2020321f branch antilost_prepare_data_and_send 
+
+antilost_full_battery:
+3297 70488c64 jam 100 ,mem_antl_key0_release + 8 
+3298 20203294 branch antilost_battery_calculate_end 
+
+antilost_low_battery:
+3299 202030e1 branch app_button_long_pressed 
+
+car_init:
+329a 20758000 rtn wake 
+329b 58003492 setarg car_g24_receive_process 
+329c 67e14893 store 2 ,mem_cb_24g_receive_process 
+329d 58002c3c setarg g24_bind_ackpayload_prep 
+329e 67e14895 store 2 ,mem_cb_24g_ackpayload 
+329f 580034c4 setarg car_g24_cb_data_device1 
+32a0 67e14897 store 2 ,mem_cb_24g_data_device1 
+32a1 58003315 setarg car_le_before_hibernate 
+32a2 67e1445d store 2 ,mem_cb_before_hibernate 
+32a3 58003317 setarg car_le_process_lpm_before 
+32a4 67e1445f store 2 ,mem_cb_before_lpm 
+32a5 580030d1 setarg app_enter_hibernate 
+32a6 67e14469 store 2 ,mem_cb_discovry_timeout 
+32a7 58003319 setarg car_scale_process_idle 
+32a8 67e14465 store 2 ,mem_cb_idle_process 
+32a9 5800333a setarg car_scale_process_bb_event 
+32aa 67e14467 store 2 ,mem_cb_bb_event_process 
+32ab 58003097 setarg app_get_lpm_wake_lock 
+32ac 67e1445b store 2 ,mem_cb_check_wakelock 
+32ad 580033a5 setarg car_le_receive_data 
+32ae 67e1446b store 2 ,mem_cb_att_write 
+32af 58003364 setarg car_le_bb_event_timer 
+32b0 67e1446f store 2 ,mem_cb_event_timer 
+32b1 44dfc017 bpatch patch17_7 ,mem_patch17 
+32b2 204032fb call car_init_environment 
+32b3 20403327 call car_lpm_timer_enable 
+32b4 20407968 call queue_init 
+32b5 70417a02 jam 2 ,mem_lpm_mult 
+32b6 704c4600 jam power_on ,mem_car_24g_received_pac 
+32b7 6fe0ca08 fetch 1 ,mem_car_config_soft_switch_enable 
+32b8 67e0c8d7 store 1 ,mem_car_hard_soft_switch 
+32b9 c00032c4 beq hard_switch ,car_hard_switch_power_on_signal 
+32ba 6fe0ca09 fetch 1 ,mem_car_config_soft_switch_gpio 
+32bb 67e0c78f store 1 ,mem_ui_button_gpio 
+32bc 70442500 jam off ,mem_le_adv_enable 
+
+car_soft_switch_power_on_init:
+32bd 204077e8 call ui_button_init 
+32be 204077f2 call ui_button_polling 
+32bf 704a3001 jam power_starting ,mem_car_power_state 
+32c0 6fe1478b fetch 2 ,mem_ui_state_map 
+32c1 c3860000 rtnbit1 ui_state_btn_down 
+32c2 202030d1 branch app_enter_hibernate 
+
+car_power_off_signal:
+32c3 202032e2 branch car_ui_led_init 
+
+car_hard_switch_power_on_signal:
+32c4 704a3002 jam power_standby ,mem_car_power_state 
+
+car_soft_switch_power_on_signal:
+32c5 70442501 jam on ,mem_le_adv_enable 
+32c6 58000020 setarg fast_adv_interval_value_car 
+32c7 20404c85 call shutter_ble_adv_interval_set 
+
+car_le_modified_name_adv:
+32c8 d8a042fd arg mem_le_name + 7 ,contw 
+32c9 6fe0c378 fetch 1 ,mem_le_lap 
+
+car_name_loop:
+32ca 1fe104f0 and pdata ,0xF0 ,temp 
+32cb 18518400 rshift4 temp ,temp 
+32cc 204032dc call car_hex_to_ascii 
+32cd e0408005 istoret 1 ,contw 
+32ce 1fe1040f and pdata ,0x0F ,temp 
+32cf 204032dc call car_hex_to_ascii 
+32d0 e0408005 istoret 1 ,contw 
+32d1 204022b7 call le_modified_name_att_list 
+32d2 6848c2f5 fetcht 1 ,mem_le_name_len 
+32d3 18427200 copy temp ,loopcnt 
+32d4 d8a043e8 arg mem_le_adv_data + 2 ,contw 
+32d5 d8c042f6 arg mem_le_name ,contr 
+32d6 20407d6d call memcpy 
+
+car_le_modified_name_scan:
+32d7 6848c2f5 fetcht 1 ,mem_le_name_len 
+32d8 18427200 copy temp ,loopcnt 
+32d9 d8a04408 arg mem_le_scan_data + 2 ,contw 
+32da d8c042f6 arg mem_le_name ,contr 
+32db 20207d6d branch memcpy 
+
+car_hex_to_ascii:
+32dc 18467c09 sub temp ,9 ,null 
+32dd 202132e0 branch car_hex_num ,positive 
+32de 18408437 add temp ,55 ,temp 
+32df 20600000 rtn 
+
+car_hex_num:
+32e0 18408430 add temp ,48 ,temp 
+32e1 20600000 rtn 
+
+car_ui_led_init:
+32e2 6fe0c9fd fetch 1 ,mem_car_config_blood_led1_gpio 
+32e3 c0ffb2f4 bne invalid_pin_num ,car_blood_led_gpio_set 
+
+car_ui_led_init_1:
+32e4 6fe0c9fb fetch 1 ,mem_car_config_pairing_led_gpio 
+32e5 c0ffb2f7 bne invalid_pin_num ,car_pairing_led_gpio_set 
+
+car_ui_led_init_2:
+32e6 6fe0ca06 fetch 1 ,mem_car_config_low_voltage_led_gpio 
+32e7 c0ffb2f9 bne invalid_pin_num ,car_low_voltage_led_gpio_set 
+
+car_ui_led_init_3:
+32e8 6fe0c969 fetch 1 ,mem_car_led_num 
+32e9 1fe27200 copy pdata ,loopcnt 
+32ea 5800496a setarg mem_car_led_map 
+32eb 1fe22200 copy pdata ,rega 
+
+car_in_lp1:
+32ec 1a220c00 copy rega ,contr 
+32ed efe08006 ifetch 1 ,contr 
+32ee 18c22200 copy contr ,rega 
+32ef c07fb2f2 beq invalid_pin_num ,car_in_lp1_end 
+32f0 1fe20400 copy pdata ,temp 
+32f1 204060b8 call gpio_config_output 
+
+car_in_lp1_end:
+32f2 c20032ec loop car_in_lp1 
+
+car_ui_led_init_end:
+32f3 20600000 rtn 
+
+car_blood_led_gpio_set:
+32f4 6fe449fd fetch 8 ,mem_car_config_blood_led1_gpio 
+32f5 67e4496c store 8 ,mem_car_led_map + 2 
+32f6 202032e4 branch car_ui_led_init_1 
+
+car_pairing_led_gpio_set:
+32f7 67e0c96a store 1 ,mem_car_led_map 
+32f8 202032e6 branch car_ui_led_init_2 
+
+car_low_voltage_led_gpio_set:
+32f9 67e0c96b store 1 ,mem_car_led_map + 1 
+32fa 202032e8 branch car_ui_led_init_3 
+
+car_init_environment:
+32fb 2040348e call car_g24_init 
+32fc da200000 arg 0 ,rega 
+32fd 204061f1 call pwm_init 
+32fe 204032e2 call car_ui_led_init 
+32ff 2040332f call car_start_blink 
+3300 20403313 call car_init_adc_hvin 
+3301 20203302 branch car_motor_init 
+
+car_motor_init:
+3302 6fe0cc33 fetch 1 ,mem_car_motor_gpio_num 
+3303 1fe27200 copy pdata ,loopcnt 
+3304 58004c34 setarg mem_car_motor_gpio_map 
+3305 1fe22200 copy pdata ,rega 
+
+p_in_lp1:
+3306 1a220c00 copy rega ,contr 
+3307 efe08006 ifetch 1 ,contr 
+3308 18c22200 copy contr ,rega 
+3309 c07fb30d beq invalid_pin_num ,p_in_lp1_end 
+330a 1fe20400 copy pdata ,temp 
+330b 67e0cc38 store 1 ,mem_car_gpio 
+330c 2040330f call car_ui_gpio_init 
+
+p_in_lp1_end:
+330d c2003306 loop p_in_lp1 
+
+p_car_ui_led_init_end:
+330e 20600000 rtn 
+
+car_ui_gpio_init:
+330f 6fe0cc38 fetch 1 ,mem_car_gpio 
+3310 c17f8000 rtneq ui_button_gpio_disable 
+3311 98000400 iforce temp 
+3312 202060b8 branch gpio_config_output 
+
+car_init_adc_hvin:
+3313 704a0c64 jam 100 ,mem_car_notify_vdd_value_last 
+3314 2020612c branch adc_init_data 
+
+car_le_before_hibernate:
+3315 204060ec call gpio_set_before_lpm_common 
+3316 202061b7 branch keyscan_process_lpm_before 
+
+car_le_process_lpm_before:
+3317 202061b7 branch keyscan_process_lpm_before 
+
+car_key_scan_process:
+3318 202061c3 branch keyscan_key_process 
+
+car_scale_process_idle:
+3319 20403331 call car_le_send_packet 
+331a 2040331c call car_g24_status_process 
+331b 20203318 branch car_key_scan_process 
+
+car_g24_status_process:
+331c 6fe1478b fetch 2 ,mem_ui_state_map 
+331d c3848000 rtnbit1 ui_state_ble_connected 
+331e 6fe0cc46 fetch 1 ,mem_car_24g_received_pac 
+331f c000b321 beq work_paired ,car_g24_connected_event 
+3320 20600000 rtn 
+
+car_g24_connected_event:
+3321 6fe0ca27 fetch 1 ,mem_car_24g_status 
+3322 c1008000 rtneq work_paired 
+3323 704a2701 jam work_paired ,mem_car_24g_status 
+3324 2040332b call car_lpm_timer_disable 
+3325 2040332d call car_stop_blink 
+3326 20203344 branch car_g24_connected 
+
+car_lpm_timer_enable:
+3327 6fe14c4b fetch 2 ,mem_car_enter_lpm_timer_count 
+3328 67e14c4d store 2 ,mem_car_enter_lpm_timer 
+3329 704c4f00 jam 0 ,mem_car_enter_lpm_flag 
+332a 20600000 rtn 
+
+car_lpm_timer_disable:
+332b 58000000 setarg 0 
+332c 20203328 branch car_lpm_timer_enable + 1 
+
+car_stop_blink:
+332d da200000 arg 0 ,rega 
+332e 2020782e branch ui_led_blink_stop_global 
+
+car_start_blink:
+332f da200000 arg 0 ,rega 
+3330 20207833 branch ui_led_blink_start_global 
+
+car_le_send_packet:
+3331 6fe1478b fetch 2 ,mem_ui_state_map 
+3332 c4048000 rtnbit0 ui_state_ble_connected 
+3333 20402382 call le_fifo_check_nearly_full 
+3334 247a0000 nrtn blank 
+3335 da204955 arg mem_car_pop_queue_buff ,rega 
+3336 20407984 call queue_pop 
+3337 24740000 nrtn user 
+3338 d8c04955 arg mem_car_pop_queue_buff ,contr 
+3339 20204c89 branch le_send_notify_from_list 
+
+car_scale_process_bb_event:
+333a 1a627e00 copy regc ,pdata 
+333b c016b0f9 beq bt_evt_button_up ,app_event_button_up 
+333c c00830e1 beq bt_evt_button_long_pressed ,app_button_long_pressed 
+333d c00a3340 beq bt_evt_le_connected ,car_scale_event_le_conn 
+333e c00ab34a beq bt_evt_le_disconnected ,car_scale_event_le_discon 
+333f 20600000 rtn 
+
+car_scale_event_le_conn:
+3340 2040332b call car_lpm_timer_disable 
+3341 2040332d call car_stop_blink 
+3342 793f8027 set0 mark_24g_rxmode ,mark 
+3343 20203346 branch car_scale_process_conn 
+
+car_g24_connected:
+3344 6fe14a28 fetch 2 ,mem_car_24g_no_data_timeout_count 
+3345 67e14a2a store 2 ,mem_car_24g_no_data_timeout_timer 
+
+car_scale_process_conn:
+3346 704a0b14 jam 0x14 ,mem_car_notify_vdd_timer 
+3347 70409900 jam 0 ,mem_lpm_mode 
+3348 204030bf call app_ble_stop_adv 
+3349 202030dd branch app_lpm_mult_enable 
+
+car_scale_event_le_discon:
+334a 79200027 set1 mark_24g_rxmode ,mark 
+334b 20403327 call car_lpm_timer_enable 
+334c 20403442 call car_fb_motor_stop 
+334d 20403436 call car_lr_motor_stop 
+
+car_g24_disconnect:
+334e 58000000 setarg 0 
+334f 67e2c9d9 store 5 ,mem_car_led_control 
+3350 58000004 setarg 4 
+3351 20406236 call pwm_disable 
+3352 58000005 setarg 5 
+3353 20406236 call pwm_disable 
+3354 58000014 setarg 20 
+3355 20406236 call pwm_disable 
+3356 58000015 setarg 21 
+3357 20406236 call pwm_disable 
+3358 58000016 setarg 22 
+3359 20406236 call pwm_disable 
+335a 58000007 setarg 7 
+335b 20406236 call pwm_disable 
+335c 20407968 call queue_init 
+335d 70499b0a jam 10 ,mem_motor1_speed 
+335e 70499d0a jam 10 ,mem_motor2_speed 
+335f 70499f0a jam 10 ,mem_motor3_speed 
+3360 70417a02 jam 2 ,mem_lpm_mult 
+3361 58000020 setarg fast_adv_interval_value_car 
+3362 20404c85 call shutter_ble_adv_interval_set 
+3363 202030c1 branch app_ble_start_adv 
+
+car_le_bb_event_timer:
+3364 204033e3 call car_moto1_blank_data_timer 
+3365 204033e6 call car_moto2_blank_data_timer 
+3366 204033e9 call car_moto3_blank_data_timer 
+3367 20403052 call app_power_timer 
+3368 2040337a call car_notify_vdd_timer 
+3369 20403374 call car_24g_no_data_timeout_timer 
+336a 2040336c call car_24g_bind_enable_timer 
+336b 2020336f branch car_enter_lpm_timer 
+
+car_24g_bind_enable_timer:
+336c da604c47 arg mem_car_24g_bind_enable_delay_count ,regc 
+336d da400000 arg 0 ,regb 
+336e 20203044 branch timer_single_step 
+
+car_enter_lpm_timer:
+336f da604c4d arg mem_car_enter_lpm_timer ,regc 
+3370 da403372 arg car_enter_lpm_enable ,regb 
+3371 2020304b branch timer_single_step_2b 
+
+car_enter_lpm_enable:
+3372 704c4f01 jam 1 ,mem_car_enter_lpm_flag 
+3373 20600000 rtn 
+
+car_24g_no_data_timeout_timer:
+3374 da604a2a arg mem_car_24g_no_data_timeout_timer ,regc 
+3375 da403377 arg car_24g_no_data_timer_timeout ,regb 
+3376 2020304b branch timer_single_step_2b 
+
+car_24g_no_data_timer_timeout:
+3377 704a2702 jam work_search ,mem_car_24g_status 
+3378 704c4600 jam power_on ,mem_car_24g_received_pac 
+3379 2020334e branch car_g24_disconnect 
+
+car_notify_vdd_timer:
+337a 6fe0ca05 fetch 1 ,mem_car_config_bat_notify_enable 
+337b 207a0000 rtn blank 
+337c da604a0b arg mem_car_notify_vdd_timer ,regc 
+337d da40337f arg car_notify_vdd ,regb 
+337e 20203044 branch timer_single_step 
+
+car_notify_vdd:
+337f 6fe0ca0a fetch 1 ,mem_car_notify_vdd_count 
+3380 67e0ca0b store 1 ,mem_car_notify_vdd_timer 
+3381 6fe0ca0e fetch 1 ,mem_car_working_flag 
+3382 247a0000 nrtn blank 
+
+car_read_hvin:
+3383 2040612e call adc_set_mode 
+3384 20406147 call vdd_calculate_by_mode 
+3385 67e14a25 store 2 ,mem_vdd_now_vol 
+3386 da204a1f arg mem_vdd_calculate_set ,rega 
+3387 20406173 call adc_bat_percent_lowpower_out 
+3388 6848ca0c fetcht 1 ,mem_car_notify_vdd_value_last 
+3389 98467c00 isub temp ,null 
+338a 2021338d branch car_notify_vdd_next2 ,positive 
+338b 67e0ca0c store 1 ,mem_car_notify_vdd_value_last 
+338c 1fe20400 copy pdata ,temp 
+
+car_notify_vdd_next2:
+338d 6048ca0d storet 1 ,mem_car_notify_vdd_percent 
+338e 6fe0ca07 fetch 1 ,mem_car_config_low_voltage_percent 
+338f 98467c00 isub temp ,null 
+3390 20413398 call car_enter_low_bat ,positive 
+3391 6048ca18 storet 1 ,mem_notify_bat_payload 
+3392 df200006 arg 6 ,loopcnt 
+3393 d8c04a13 arg mem_notify_bat_head ,contr 
+3394 2040339f call calc_check_sum_start 
+3395 67e0ca19 store 1 ,mem_notify_bat_check_sum 
+3396 da204a10 arg mem_notify_bat_packet ,rega 
+3397 2020796d branch queue_push 
+
+car_enter_low_bat:
+3398 6fe0ca0f fetch 1 ,mem_low_bat_flag 
+3399 247a0000 nrtn blank 
+339a 704a0f01 jam 1 ,mem_low_bat_flag 
+339b da200001 arg 1 ,rega 
+339c 20207833 branch ui_led_blink_start_global 
+
+car_low_bat_led_off:
+339d da200001 arg 1 ,rega 
+339e 2020782e branch ui_led_blink_stop_global 
+
+calc_check_sum_start:
+339f da200000 arg 0 ,rega 
+
+calc_check_sum_loop:
+33a0 efe08006 ifetch 1 ,contr 
+33a1 9a20a200 iadd rega ,rega 
+33a2 c20033a0 loop calc_check_sum_loop 
+
+calc_check_sum_and:
+33a3 1a217eff and rega ,0xff ,pdata 
+33a4 20600000 rtn 
+
+car_le_receive_data:
+33a5 6fe0c434 fetch 1 ,mem_le_att_opcode 
+33a6 c00933a8 beq attop_write_request ,car_le_parse_att_write_request 
+33a7 20600000 rtn 
+
+car_le_parse_att_write_request:
+33a8 6fe14435 fetch 2 ,mem_le_att_handle 
+33a9 c00a33bf beq att_car_control_handle ,car_control_le_receive 
+33aa 20600000 rtn 
+
+le_app_receive_data:
+33ab 44e04018 bpatch patch18_0 ,mem_patch18 
+33ac efe28011 ifetch 5 ,rega 
+33ad 67e289de store 5 ,mem_app_receive_temp 
+33ae 6fe109de fetch 2 ,mem_app_receive_temp 
+33af d8406b5a arg le_receive_packet_head ,temp 
+33b0 98467c00 isub temp ,null 
+33b1 24628000 nrtn zero 
+33b2 6fe109e1 fetch 2 ,mem_app_receive_temp + 3 
+33b3 1ff0fe00 byteswap pdata ,pdata 
+33b4 67e109e1 store 2 ,mem_app_receive_temp + 3 
+33b5 1fe27200 copy pdata ,loopcnt 
+33b6 1a20a205 increase 5 ,rega 
+33b7 1a220c00 copy rega ,contr 
+33b8 d8a009e3 arg mem_app_receive_temp + 5 ,contw 
+33b9 20407d6d call memcpy 
+33ba efe08006 ifetch 1 ,contr 
+33bb 67e089ed store 1 ,mem_app_receive_temp + 15 
+33bc da2009e0 arg mem_app_receive_temp + 2 ,rega 
+33bd da4009e3 arg mem_app_receive_temp + 5 ,regb 
+33be 20600000 rtn 
+
+car_control_le_receive:
+33bf 58000000 setarg 0 
+33c0 67e2c98f store 5 ,mem_le_receive_payload 
+33c1 67e2c994 store 5 ,mem_le_receive_payload + 5 
+33c2 204033ab call le_app_receive_data 
+33c3 1a420c00 copy regb ,contr 
+33c4 d8a0498f arg mem_le_receive_payload ,contw 
+33c5 df20000a arg 10 ,loopcnt 
+33c6 20407d6d call memcpy 
+
+car_receive_cmd_select:
+33c7 44e0c018 bpatch patch18_1 ,mem_patch18 
+33c8 efe08011 ifetch 1 ,rega 
+33c9 c00133f2 beq car_cmd_old_car_control ,car_drive_old 
+33ca c001b407 beq car_cmd_old_speed_control ,car_speed_set_old 
+33cb c002340e beq car_cmd_l_r_motor_control ,car_motor_control 
+33cc c002b40e beq car_cmd_f_b_motor_control ,car_motor_control 
+33cd c003347e beq car_cmd_ir_control ,car_ir_data_rx_from_app 
+33ce c003b47f beq car_cmd_led_control ,car_led_control_receive 
+33cf c0043482 beq car_cmd_device_info ,car_info_request 
+33d0 20600000 rtn 
+
+car_24g_receive_data:
+33d1 204033bf call car_control_le_receive 
+33d2 6fe089e0 fetch 1 ,mem_app_receive_temp + 2 
+33d3 c00233d6 beq car_cmd_l_r_motor_control ,car_24g_receive_data_next 
+33d4 c002b3d6 beq car_cmd_f_b_motor_control ,car_24g_receive_data_next 
+33d5 20600000 rtn 
+
+car_24g_receive_data_next:
+33d6 6fe0c98f fetch 1 ,mem_le_receive_payload 
+33d7 245a33dd ncall car_moto1_enable_blank_data_timer ,blank 
+33d8 6fe0c991 fetch 1 ,mem_le_receive_payload + 2 
+33d9 245a33df ncall car_moto2_enable_blank_data_timer ,blank 
+33da 6fe0c993 fetch 1 ,mem_le_receive_payload + 4 
+33db 245a33e1 ncall car_moto3_enable_blank_data_timer ,blank 
+33dc 20600000 rtn 
+
+car_moto1_enable_blank_data_timer:
+33dd 704c3005 jam 5 ,mem_car_moto1_blank_timer 
+33de 20600000 rtn 
+
+car_moto2_enable_blank_data_timer:
+33df 704c3105 jam 5 ,mem_car_moto2_blank_timer 
+33e0 20600000 rtn 
+
+car_moto3_enable_blank_data_timer:
+33e1 704c3205 jam 5 ,mem_car_moto3_blank_timer 
+33e2 20600000 rtn 
+
+car_moto1_blank_data_timer:
+33e3 da604c30 arg mem_car_moto1_blank_timer ,regc 
+33e4 da4033ec arg car_moto1_blank_data ,regb 
+33e5 20203044 branch timer_single_step 
+
+car_moto2_blank_data_timer:
+33e6 da604c31 arg mem_car_moto2_blank_timer ,regc 
+33e7 da4033ee arg car_moto2_blank_data ,regb 
+33e8 20203044 branch timer_single_step 
+
+car_moto3_blank_data_timer:
+33e9 da604c32 arg mem_car_moto3_blank_timer ,regc 
+33ea da4033f0 arg car_moto3_blank_data ,regb 
+33eb 20203044 branch timer_single_step 
+
+car_moto1_blank_data:
+33ec 70498f00 jam 0 ,mem_le_receive_payload 
+33ed 2020340e branch car_motor_control 
+
+car_moto2_blank_data:
+33ee 70499100 jam 0 ,mem_le_receive_payload + 2 
+33ef 2020340e branch car_motor_control 
+
+car_moto3_blank_data:
+33f0 70499300 jam 0 ,mem_le_receive_payload + 4 
+33f1 2020340e branch car_motor_control 
+
+car_drive_old:
+33f2 6fe0c98f fetch 1 ,mem_le_receive_payload 
+33f3 67e0c99a store 1 ,mem_motor1_status 
+33f4 6fe0c990 fetch 1 ,mem_le_receive_payload + 1 
+33f5 67e0c99c store 1 ,mem_motor2_status 
+33f6 20203418 branch car_motor_control_common 
+
+car_left_right_control_old:
+33f7 6fe0c98f fetch 1 ,mem_le_receive_payload 
+33f8 67e0c99c store 1 ,mem_motor2_status 
+33f9 20203426 branch car_motor2_control 
+
+car_front_back_control_old:
+33fa 6fe0c99b fetch 1 ,mem_motor1_speed 
+33fb 204033ff call car_reset_old_speed 
+33fc 6fe0c990 fetch 1 ,mem_le_receive_payload + 1 
+33fd 67e0c99a store 1 ,mem_motor1_status 
+33fe 20203424 branch car_motor1_control 
+
+car_reset_old_speed:
+33ff c0013403 beq speed_level_2 ,car_reset_old_speed2 
+3400 c001b405 beq speed_level_3 ,car_reset_old_speed3 
+3401 67e0c99b store 1 ,mem_motor1_speed 
+3402 20600000 rtn 
+
+car_reset_old_speed2:
+3403 70499b05 jam speed_level_5 ,mem_motor1_speed 
+3404 20600000 rtn 
+
+car_reset_old_speed3:
+3405 70499b0a jam speed_level_10 ,mem_motor1_speed 
+3406 20600000 rtn 
+
+car_speed_set_old:
+3407 6fe0c98f fetch 1 ,mem_le_receive_payload 
+3408 204033ff call car_reset_old_speed 
+3409 6fe0c99b fetch 1 ,mem_motor1_speed 
+340a 20403472 call car_motor_speed_duty_setting 
+340b 20403475 call car_motor_speed_duty_transform 
+340c 70095d00 jam 0x00 ,mem_pdatatemp + 1 
+340d 2020622a branch pwm_duty_cycle_set 
+
+car_motor_control:
+340e 6fe0ca2d fetch 1 ,mem_car_24g_go_die_flag 
+340f 247a0000 nrtn blank 
+3410 6fe3498f fetch 6 ,mem_le_receive_payload 
+3411 67e3499a store 6 ,mem_motor1_status 
+3412 6fe0c99b fetch 1 ,mem_motor1_speed 
+3413 6848c99d fetcht 1 ,mem_motor2_speed 
+3414 98417e00 iand temp ,pdata 
+3415 6848c99f fetcht 1 ,mem_motor3_speed 
+3416 98417e00 iand temp ,pdata 
+3417 205a342a call car_motor_working_flag ,blank 
+
+car_motor_control_common:
+3418 44e14018 bpatch patch18_2 ,mem_patch18 
+3419 6fe1478b fetch 2 ,mem_ui_state_map 
+341a 2feffe09 isolate1 ui_state_ble_connected ,pdata 
+341b 2440b327 ncall car_lpm_timer_enable ,true 
+341c 20403424 call car_motor1_control 
+341d 20403426 call car_motor2_control 
+341e 2020341f branch car_conn_led_state 
+
+car_conn_led_state:
+341f 6fe0c99a fetch 1 ,mem_motor1_status 
+3420 6848c99c fetcht 1 ,mem_motor2_status 
+3421 9840fe00 iadd temp ,pdata 
+3422 243a7939 nbranch check_51cmd_led_on ,blank 
+3423 20207937 branch check_51cmd_led_off 
+
+car_motor1_control:
+3424 d8c0499a arg mem_motor1_status ,contr 
+3425 2020342c branch car_motor1_status_select 
+
+car_motor2_control:
+3426 d8c0499c arg mem_motor2_status ,contr 
+3427 20203431 branch car_motor2_status_select 
+
+car_motor3_control:
+3428 d8c0499e arg mem_motor3_status ,contr 
+3429 2020344e branch car_motor_status_select 
+
+car_motor_working_flag:
+342a 704a0e00 jam 0 ,mem_car_working_flag 
+342b 20600000 rtn 
+
+car_motor1_status_select:
+342c efe08006 ifetch 1 ,contr 
+342d c0003436 beq turn_front ,car_lr_motor_stop 
+342e c000b43a beq turn_left ,car_lr_motor_left 
+342f c001343e beq turn_right ,car_lr_motor_right 
+3430 20600000 rtn 
+
+car_motor2_status_select:
+3431 efe08006 ifetch 1 ,contr 
+3432 c0003442 beq motor_stop ,car_fb_motor_stop 
+3433 c0013446 beq go_back ,car_fb_motor_front 
+3434 c000b44a beq go_front ,car_fb_motor_back 
+3435 20600000 rtn 
+
+car_lr_motor_stop:
+3436 6848cc34 fetcht 1 ,mem_car_motor_left_gpio 
+3437 204060b4 call gpio_out_inactive 
+3438 6848cc35 fetcht 1 ,mem_car_motor_right_gpio 
+3439 202060b4 branch gpio_out_inactive 
+
+car_lr_motor_left:
+343a 6848cc34 fetcht 1 ,mem_car_motor_left_gpio 
+343b 204060b8 call gpio_out_active 
+343c 6848cc35 fetcht 1 ,mem_car_motor_right_gpio 
+343d 202060b4 branch gpio_out_inactive 
+
+car_lr_motor_right:
+343e 6848cc34 fetcht 1 ,mem_car_motor_left_gpio 
+343f 204060b4 call gpio_out_inactive 
+3440 6848cc35 fetcht 1 ,mem_car_motor_right_gpio 
+3441 202060b8 branch gpio_out_active 
+
+car_fb_motor_stop:
+3442 6848cc36 fetcht 1 ,mem_car_motor_front_gpio 
+3443 204060b4 call gpio_out_inactive 
+3444 6848cc37 fetcht 1 ,mem_car_motor_back_gpio 
+3445 202060b4 branch gpio_out_inactive 
+
+car_fb_motor_front:
+3446 6848cc36 fetcht 1 ,mem_car_motor_front_gpio 
+3447 204060b8 call gpio_out_active 
+3448 6848cc37 fetcht 1 ,mem_car_motor_back_gpio 
+3449 202060b4 branch gpio_out_inactive 
+
+car_fb_motor_back:
+344a 6848cc36 fetcht 1 ,mem_car_motor_front_gpio 
+344b 204060b4 call gpio_out_inactive 
+344c 6848cc37 fetcht 1 ,mem_car_motor_back_gpio 
+344d 202060b8 branch gpio_out_active 
+
+car_motor_status_select:
+344e 44e1c018 bpatch patch18_3 ,mem_patch18 
+344f efe08006 ifetch 1 ,contr 
+3450 c000345b beq motor_stop ,car_motor_stop 
+3451 c000b454 beq go_front ,car_motor_positive 
+3452 c0013456 beq go_back ,car_motor_negative 
+3453 20600000 rtn 
+
+car_motor_positive:
+3454 7049b800 jam 0 ,mem_motor_select_p_n 
+3455 20203457 branch car_motor_negative + 1 
+
+car_motor_negative:
+3456 7049b801 jam 1 ,mem_motor_select_p_n 
+3457 efe08006 ifetch 1 ,contr 
+3458 67e0c9ba store 1 ,mem_car_motor_speed 
+3459 efe40012 ifetch 8 ,regb 
+345a 20203460 branch car_motor_work 
+
+car_motor_stop:
+345b efe08012 ifetch 1 ,regb 
+345c 20406236 call pwm_disable 
+345d 1a40a401 increase 1 ,regb 
+345e efe08012 ifetch 1 ,regb 
+345f 20206236 branch pwm_disable 
+
+car_motor_work:
+3460 67e449bb store 8 ,mem_motor_pwm_pin1_set 
+3461 704a0e01 jam 1 ,mem_car_working_flag 
+3462 6fe0c9b8 fetch 1 ,mem_motor_select_p_n 
+3463 c000346e beq 0 ,car_motor_select_positive 
+
+car_motor_select_negative:
+3464 6fe0c9bc fetch 1 ,mem_motor_pwm_pin2_set 
+3465 67e0c9bd store 1 ,mem_motor_pwm_pin_set 
+3466 6fe0c9bb fetch 1 ,mem_motor_pwm_pin1_set 
+
+car_motor_work_next:
+3467 20406236 call pwm_disable 
+3468 6fe0c9ba fetch 1 ,mem_car_motor_speed 
+3469 20403472 call car_motor_speed_duty_setting 
+346a 67e0c9c2 store 1 ,mem_motor_pwm_dute_set 
+346b 6fe349bd fetch 6 ,mem_motor_pwm_pin_set 
+346c 67e3095c store 6 ,mem_pdatatemp 
+346d 20206218 branch pwm_out_set 
+
+car_motor_select_positive:
+346e 6fe0c9bb fetch 1 ,mem_motor_pwm_pin1_set 
+346f 67e0c9bd store 1 ,mem_motor_pwm_pin_set 
+3470 6fe0c9bc fetch 1 ,mem_motor_pwm_pin2_set 
+3471 20203467 branch car_motor_work_next 
+
+car_motor_speed_duty_setting:
+3472 1feffe05 mul32 pdata ,5 ,pdata 
+3473 1fe0fe32 add pdata ,50 ,pdata 
+3474 20600000 rtn 
+
+car_motor_speed_duty_transform:
+3475 d8402ee0 arg 12000 ,temp 
+3476 984ffe00 imul32 temp ,pdata 
+3477 1fe6fc64 div pdata ,100 
+3478 20407dfd call wait_div_end 
+3479 18078400 quotient temp 
+347a 18422200 copy temp ,rega 
+347b 58002ee0 setarg 12000 
+347c 98462400 isub temp ,regb 
+347d 20600000 rtn 
+
+car_ir_data_rx_from_app:
+347e 20600000 rtn 
+
+car_led_control_receive:
+347f 6fe4498f fetch 8 ,mem_le_receive_payload 
+3480 67e449d9 store 8 ,mem_car_led_control 
+3481 20600000 rtn 
+
+car_info_request:
+3482 6fe0c9f6 fetch 1 ,mem_car_config_device_select 
+3483 67e0c9ec store 1 ,mem_car_info_request_payload 
+3484 6fe0c9f7 fetch 1 ,mem_car_config_motor_layout 
+3485 67e0c9ed store 1 ,mem_car_info_request_payload + 1 
+3486 6fe0c9f8 fetch 1 ,mem_car_config_ir_enable 
+3487 67e0c9ee store 1 ,mem_car_info_request_payload + 2 
+3488 df20000d arg 13 ,loopcnt 
+3489 d8c049e7 arg mem_car_info_request_head ,contr 
+348a 2040339f call calc_check_sum_start 
+348b 67e0c9f4 store 1 ,mem_car_info_request_checksum 
+348c da2049e4 arg mem_car_info_request ,rega 
+348d 2020796d branch queue_push 
+
+car_g24_init:
+348e 58000000 setarg 0 
+348f 67e4486f store 8 ,mem_24g_bind_payload 
+3490 20402ca7 call g24_receive_init 
+3491 20202d00 branch g24_mode_switch_init 
+
+car_g24_receive_process:
+3492 20403496 call car_g24_mode_switch 
+3493 2040349e call car_g24_work_mode 
+3494 204034ad call car_g24_bind_mode 
+3495 202034cb branch car_g24_lpm_dipatch 
+
+car_g24_mode_switch:
+3496 20402d04 call g24_mode_switch 
+
+car_g24_bind_mode_enable:
+3497 6fe0c8c9 fetch 1 ,mem_24g_work_mode 
+3498 c1808000 rtnne dongle_bind 
+3499 6fe0cc47 fetch 1 ,mem_car_24g_bind_enable_delay_count 
+349a 243a2d2a nbranch g24_switch_work_mode ,blank 
+349b 6fe0ca27 fetch 1 ,mem_car_24g_status 
+349c c0012d2a beq work_search ,g24_switch_work_mode 
+349d 20600000 rtn 
+
+car_g24_work_mode:
+349e 6fe0c8c9 fetch 1 ,mem_24g_work_mode 
+349f c1800000 rtnne dongle_work 
+34a0 20402d2e call g24_work_mode_start 
+34a1 2037b4ab branch car_g24_ch_polling_clear ,user3 
+
+car_g24_receive_ch_polling:
+34a2 6fe0cc4f fetch 1 ,mem_car_enter_lpm_flag 
+34a3 207a0000 rtn blank 
+34a4 6fe0cc50 fetch 1 ,mem_car_24g_ch_polling 
+34a5 1fe0fe01 increase 1 ,pdata 
+34a6 67e0cc50 store 1 ,mem_car_24g_ch_polling 
+34a7 c00234ab beq 4 ,car_g24_ch_polling_clear 
+34a8 20402b8f call g24_ch 
+34a9 20402cb2 call g24_receive_packet_start 
+34aa 2437b4a2 nbranch car_g24_receive_ch_polling ,user3 
+
+car_g24_ch_polling_clear:
+34ab 704c5000 jam 0 ,mem_car_24g_ch_polling 
+34ac 20600000 rtn 
+
+car_g24_bind_mode:
+34ad 6fe0c8c9 fetch 1 ,mem_24g_work_mode 
+34ae c1808000 rtnne dongle_bind 
+34af 20402c33 call g24_bind_init 
+34b0 204034c1 call car_g24_bind_device_addr 
+34b1 20402c41 call g24_bind_data_process 
+34b2 6fe0c86e fetch 1 ,mem_24g_bind_device_status 
+34b3 243a34ba nbranch car_g24_bind_mode_exit ,blank 
+34b4 20402dcf call g24_nodata_process 
+34b5 6fe0c8c7 fetch 1 ,mem_24g_nodata_timer_enable 
+34b6 207a0000 rtn blank 
+34b7 58000000 setarg 0 
+34b8 67e2487b store 4 ,mem_24g_device1_addr 
+34b9 20600000 rtn 
+
+car_g24_bind_mode_exit:
+34ba 7048c600 jam 0 ,mem_24g_mode_switch 
+34bb da200000 arg 0 ,rega 
+34bc 2040782e call ui_led_off_global 
+34bd 20402d2a call g24_switch_work_mode 
+34be 20402bc0 call g24_timer_init 
+34bf 6fe240a8 fetch 4 ,mem_lap 
+34c0 20202ba0 branch g24_update_addr_and_synccrc8 
+
+car_g24_bind_device_addr:
+34c1 6fe2487b fetch 4 ,mem_24g_device1_addr 
+34c2 207a0000 rtn blank 
+34c3 20202ba0 branch g24_update_addr_and_synccrc8 
+
+car_g24_cb_data_device1:
+34c4 6fe1478b fetch 2 ,mem_ui_state_map 
+34c5 c3848000 rtnbit1 ui_state_ble_connected 
+34c6 6fe14a28 fetch 2 ,mem_car_24g_no_data_timeout_count 
+34c7 67e14a2a store 2 ,mem_car_24g_no_data_timeout_timer 
+34c8 704c4601 jam work_paired ,mem_car_24g_received_pac 
+34c9 da20489e arg mem_24g_rxdata_temp + 3 ,rega 
+34ca 202033d1 branch car_24g_receive_data 
+
+car_g24_lpm_dipatch:
+34cb 6fe0cc4f fetch 1 ,mem_car_enter_lpm_flag 
+34cc 207a0000 rtn blank 
+34cd 204034d3 call car_g24_lpm_wait 
+34ce 24740000 nrtn user 
+34cf 6fe1c85b fetch 3 ,mem_24g_enter_hibernate 
+34d0 20407db8 call clk2lpo 
+34d1 604a4163 storet 4 ,mem_sleep_counter 
+34d2 20201403 branch lpm_sleep 
+
+car_g24_lpm_wait:
+34d3 78347c00 enable user 
+34d4 204013d1 call lpo_calibration 
+34d5 6fe1c177 fetch 3 ,mem_clks_per_lpo 
+34d6 203a7e64 branch disable_user ,blank 
+34d7 20203317 branch car_le_process_lpm_before 
+
+dongle_init:
+34d8 20405e09 call set_eeprom_size_2k 
+34d9 6fe0c8f7 fetch dg_config_len ,mem_dg_config 
+34da 2feffe01 isolate1 dg_enable_2k_eeprom ,pdata 
+34db 2440de0c ncall clear_eeprom_size_2k ,true 
+34dc 20405e27 call iicd_eeprom_write_disable 
+34dd 204034ef call dongle_read_kb_bind_status 
+34de 20402ca7 call g24_receive_init 
+34df 580034ea setarg dongle_dispatch 
+34e0 67e14893 store 2 ,mem_cb_24g_receive_process 
+34e1 58003597 setarg dongle_g24_mouse 
+34e2 67e14897 store 2 ,mem_cb_24g_data_device1 
+34e3 580035a8 setarg dongle_g24_kb 
+34e4 67e14899 store 2 ,mem_cb_24g_data_device2 
+34e5 5800358b setarg dongle_ackpayload_prep 
+34e6 67e14895 store 2 ,mem_cb_24g_ackpayload 
+34e7 580034f5 setarg dongle_usb_config 
+34e8 67e10b45 store 2 ,mem_cb_usb_config 
+34e9 202079bc branch usb_init 
+
+dongle_dispatch:
+34ea 6fe0c8c5 fetch 1 ,mem_24g_pair_mode 
+34eb c000357c beq 0x00 ,dongle_auto_bind 
+34ec c000b513 beq 0x01 ,dongle_pc_bind 
+34ed c007b50f beq 0x0f ,dongle_all_powerful 
+34ee 20600000 rtn 
+
+dongle_read_kb_bind_status:
+34ef 204034f1 call dongle_set_kb_bind_addr_eeprom 
+34f0 20205e29 branch iicd_read_eep_data 
+
+dongle_set_kb_bind_addr_eeprom:
+34f1 da2048d7 arg mem_dg_kb_bind_flag ,rega 
+34f2 da400000 arg dongle_kb_bind_eeprom_offect ,regb 
+34f3 d8400001 arg 1 ,temp 
+34f4 20600000 rtn 
+
+dongle_usb_config:
+34f5 6fe0c8f7 fetch dg_config_len ,mem_dg_config 
+34f6 2feffe02 isolate1 dg_enable_kb_icon ,pdata 
+34f7 2420b4f9 nbranch dongle_usb_config_param ,true 
+34f8 7048d75a jam dongle_kb_bind_success ,mem_dg_kb_bind_flag 
+
+dongle_usb_config_param:
+34f9 20407a04 call usb_tx_interval_config 
+34fa 204034fc call dongle_usb_vid_pid_config 
+34fb 20203505 branch dongle_usb_hid_icon_config 
+
+dongle_usb_vid_pid_config:
+34fc 6fe08b48 fetch 1 ,mem_usb_vid_pid 
+34fd 207a0000 rtn blank 
+34fe 6fe0c8d7 fetch 1 ,mem_dg_kb_bind_flag 
+34ff c02d3503 beq dongle_kb_bind_success ,dongle_usb_vid_pid_for_suit 
+
+dongle_usb_vid_pid_for_mouse_only_auto_pair:
+3500 6fe20b49 fetch 4 ,mem_usb_vid_pid + 1 
+
+dongle_usb_vid_pid_store:
+3501 67e20aa0 store 4 ,mem_devicedesc + 9 
+3502 20600000 rtn 
+
+dongle_usb_vid_pid_for_suit:
+3503 6fe20b4d fetch 4 ,mem_usb_vid_pid + 5 
+3504 20203501 branch dongle_usb_vid_pid_store 
+
+dongle_usb_hid_icon_config:
+3505 6fe0c8d7 fetch 1 ,mem_dg_kb_bind_flag 
+3506 c02d350b beq dongle_kb_bind_success ,dongle_usb_kb_hidreportdesc 
+3507 580099a4 setarg usb_kbdata_vendor_define_addr 
+3508 67e10a93 store 2 ,mem_hidreportdesc_kb 
+3509 700ac41a jam 0x1a ,mem_confdesc + 26 
+350a 20600000 rtn 
+
+dongle_usb_kb_hidreportdesc:
+350b 580099bf setarg usb_kbdata_addr 
+350c 67e10a93 store 2 ,mem_hidreportdesc_kb 
+350d 700ac43f jam 0x3f ,mem_confdesc + 26 
+350e 20600000 rtn 
+
+dongle_all_powerful:
+350f 20402d2a call g24_switch_work_mode 
+
+dongle_all_powerful_loop:
+3510 20403583 call dongle_work_mode_auto 
+3511 20403545 call dongle_usb_dispatch 
+3512 20203510 branch dongle_all_powerful_loop 
+
+dongle_pc_bind:
+3513 20402d2a call g24_switch_work_mode 
+
+dongle_pc_bind_loop:
+3514 20403583 call dongle_work_mode_auto 
+3515 20402d33 call g24_bind_mode_auto 
+3516 20403545 call dongle_usb_dispatch 
+3517 20203514 branch dongle_pc_bind_loop 
+
+dongle_g24_blank_data_process:
+3518 2040351b call dongle_g24_ms_blank_data 
+3519 2040352a call dongle_g24_kb_blank_data 
+351a 20203539 branch dongle_g24_kb_mul_blank_data 
+
+dongle_g24_ms_blank_data:
+351b 6fe0c8f6 fetch 1 ,mem_dg_ms_blank_data_enable 
+351c 207a0000 rtn blank 
+351d d8e0000b arg timer_ms_blank ,queue 
+351e 20407d82 call timer_check 
+351f 247a0000 nrtn blank 
+3520 7048f600 jam 0 ,mem_dg_ms_blank_data_enable 
+3521 58000001 setarg ms_report_id 
+3522 67e08bff store 1 ,mem_usb_mouse_data 
+3523 58000000 setarg 0 
+3524 e7e38005 istore 7 ,contw 
+
+dongle_usb_tx_ms_data:
+3525 700bf820 jam usb_ep2_ms ,mem_usb_ep2_data 
+
+dongle_usb_tx_enable_ep2:
+3526 6fe08bf9 fetch 1 ,mem_usb_tx_enable 
+3527 79207e02 set1 2 ,pdata 
+3528 67e08bf9 store 1 ,mem_usb_tx_enable 
+3529 20600000 rtn 
+
+dongle_g24_kb_blank_data:
+352a 6fe0c8f4 fetch 1 ,mem_dg_kb_blank_data_enable 
+352b 207a0000 rtn blank 
+352c d8e0000e arg timer_kb_blank ,queue 
+352d 20407d82 call timer_check 
+352e 247a0000 nrtn blank 
+352f 7048f400 jam 0 ,mem_dg_kb_blank_data_enable 
+3530 d8a00c0f arg mem_usb_kb_data ,contw 
+3531 df200002 arg 2 ,loopcnt 
+3532 20407d25 call memset0 
+
+dongle_usb_tx_kb_data:
+3533 700c0f00 jam kb_normal_report_id ,mem_usb_kb_data 
+
+dongle_usb_tx_enable_ep1:
+3534 700bf710 jam usb_ep1_kb ,mem_usb_ep1_data 
+3535 6fe08bf9 fetch 1 ,mem_usb_tx_enable 
+3536 79207e01 set1 1 ,pdata 
+3537 67e08bf9 store 1 ,mem_usb_tx_enable 
+3538 20600000 rtn 
+
+dongle_g24_kb_mul_blank_data:
+3539 6fe0c8f5 fetch 1 ,mem_dg_kb_mul_blank_data_enable 
+353a 207a0000 rtn blank 
+353b d8e0000c arg timer_kb_mul_blank ,queue 
+353c 20407d82 call timer_check 
+353d 247a0000 nrtn blank 
+353e 7048f500 jam 0 ,mem_dg_kb_mul_blank_data_enable 
+353f d8a00c1f arg mem_usb_kb_multikey ,contw 
+3540 df200002 arg 2 ,loopcnt 
+3541 20407d25 call memset0 
+3542 700c1f03 jam kb_multikey_report_id ,mem_usb_kb_multikey 
+
+dongle_usb_tx_multikey_data:
+3543 700bf821 jam usb_ep2_multikey ,mem_usb_ep2_data 
+3544 20203526 branch dongle_usb_tx_enable_ep2 
+
+dongle_usb_dispatch:
+3545 44e24018 bpatch patch18_4 ,mem_patch18 
+3546 204079b0 call usb_isr 
+3547 6fe08be3 fetch 1 ,mem_usb0_get_set_report 
+3548 207a0000 rtn blank 
+3549 700be300 jam 0 ,mem_usb0_get_set_report 
+354a 6fe10be1 fetch 2 ,mem_usb_setup_bvalue_temp 
+354b d84002ba arg pc_set_report ,temp 
+354c 98467c00 isub temp ,null 
+354d 24628000 nrtn zero 
+354e 6fe08b61 fetch 1 ,mem_usb0_set_report_data 
+354f c1dd0000 rtnne pc_report_id 
+3550 6fe08b62 fetch 1 ,mem_usb0_set_report_data + 1 
+3551 c0503559 beq command_mode ,dongle_dispose_cmd_mode 
+3552 c050b55f beq command_bind ,dongle_dispose_cmd_bind 
+3553 c053356b beq command_current_project ,dongle_dispose_cmd_current_project 
+3554 c053b56d beq command_current_mode ,dongle_dispose_cmd_current_mode 
+3555 c054b573 beq command_current_fw_version ,dongle_dispose_cmd_current_fw_version 
+3556 c0583578 beq command_user_defined ,dongle_dispose_cmd_user_defined 
+
+dongle_usb0_data_ready_report_set0:
+3557 700be400 jam 0 ,mem_usb0_data_ready_report 
+3558 20600000 rtn 
+
+dongle_dispose_cmd_mode:
+3559 6fe08b63 fetch 1 ,mem_usb0_set_report_data + 2 
+355a c040b55c beq com_mode_bind ,dongle_enter_bind_mode 
+355b 20203557 branch dongle_usb0_data_ready_report_set0 
+
+dongle_enter_bind_mode:
+355c 20402c30 call g24_bind_mode_enable 
+
+dongle_usb0_data_ready_report_set1:
+355d 700be401 jam 1 ,mem_usb0_data_ready_report 
+355e 20600000 rtn 
+
+dongle_dispose_cmd_bind:
+355f 6fe08b63 fetch 1 ,mem_usb0_set_report_data + 2 
+3560 c000b564 beq com_bind_get ,dongle_dispose_cmd_get_bind 
+3561 c0423567 beq com_bind_exit ,dongle_dispose_cmd_exit_bind 
+3562 c053b569 beq com_read_mode ,dongle_dispose_cmd_read_mode 
+3563 20203557 branch dongle_usb0_data_ready_report_set0 
+
+dongle_dispose_cmd_get_bind:
+3564 6fe0c86e fetch 1 ,mem_24g_bind_device_status 
+3565 67e08ba2 store 1 ,mem_usb0_get_report_data + 1 
+3566 2020355d branch dongle_usb0_data_ready_report_set1 
+
+dongle_dispose_cmd_exit_bind:
+3567 20402d2b call g24_work_mode_enable 
+3568 20203564 branch dongle_dispose_cmd_get_bind 
+
+dongle_dispose_cmd_read_mode:
+
+dongle_dispose_in_bind_mode:
+3569 700ba2a1 jam command_bind ,mem_usb0_get_report_data + 1 
+356a 2020355d branch dongle_usb0_data_ready_report_set1 
+
+dongle_dispose_cmd_current_project:
+356b 700ba215 jam product_id ,mem_usb0_get_report_data + 1 
+356c 2020355d branch dongle_usb0_data_ready_report_set1 
+
+dongle_dispose_cmd_current_mode:
+356d 6fe0c8c9 fetch 1 ,mem_24g_work_mode 
+356e c0003571 beq dongle_work ,dongle_dispose_in_work_mode 
+356f c000b569 beq dongle_bind ,dongle_dispose_in_bind_mode 
+3570 20600000 rtn 
+
+dongle_dispose_in_work_mode:
+3571 700ba2a0 jam command_mode ,mem_usb0_get_report_data + 1 
+3572 2020355d branch dongle_usb0_data_ready_report_set1 
+
+dongle_dispose_cmd_current_fw_version:
+3573 700ba200 jam fw_version0 ,mem_usb0_get_report_data + 1 
+3574 700ba300 jam fw_version1 ,mem_usb0_get_report_data + 2 
+3575 700ba401 jam fw_version2 ,mem_usb0_get_report_data + 3 
+3576 700ba507 jam fw_version3 ,mem_usb0_get_report_data + 4 
+3577 2020355d branch dongle_usb0_data_ready_report_set1 
+
+dongle_dispose_cmd_user_defined:
+3578 20402dc9 call g24_ackpayload_disable 
+3579 6fe08b63 fetch 1 ,mem_usb0_set_report_data + 2 
+357a c07fddd9 beq 0xff ,soft_reset_chip 
+357b 20600000 rtn 
+
+dongle_auto_bind:
+357c 20402d00 call g24_mode_switch_init 
+
+dongle_auto_bind_loop:
+357d 20402d04 call g24_mode_switch 
+357e 20403583 call dongle_work_mode_auto 
+357f 20402d33 call g24_bind_mode_auto 
+3580 20402d50 call g24_search_mode_auto 
+3581 20403545 call dongle_usb_dispatch 
+3582 2020357d branch dongle_auto_bind_loop 
+
+dongle_work_mode_auto:
+3583 44e2c018 bpatch patch18_5 ,mem_patch18 
+3584 6fe0c8c9 fetch 1 ,mem_24g_work_mode 
+3585 c1800000 rtnne dongle_work 
+3586 20402d2e call g24_work_mode_start 
+3587 20403518 call dongle_g24_blank_data_process 
+3588 6fe0c8c5 fetch 1 ,mem_24g_pair_mode 
+3589 247a0000 nrtn blank 
+358a 20202dcf branch g24_nodata_process 
+
+dongle_ackpayload_prep:
+358b 6fe0c8c3 fetch 1 ,mem_24g_ackpayload_enable 
+358c c000ac3c beq bind_ackpayload ,g24_bind_ackpayload_prep 
+358d c001b58f beq kb_led_ackpayload ,dongle_g24_kb_led_ackpayload_prep 
+358e 20600000 rtn 
+
+dongle_g24_kb_led_ackpayload_prep:
+358f 6fe0c7a5 fetch 1 ,mem_24g_rxbuf + 2 
+3590 c000ac3c beq datatype_device1 ,g24_bind_ackpayload_prep 
+3591 c07fac3c beq datatype_attemp ,g24_bind_ackpayload_prep 
+3592 700be500 jam 0 ,mem_usb_tx_win_enable 
+3593 70483401 jam 0x01 ,mem_24g_datalen 
+3594 6fe0c8d4 fetch 1 ,mem_24g_led_status 
+3595 67e0c7c5 store 1 ,mem_24g_txbuf 
+3596 20600000 rtn 
+
+dongle_g24_mouse:
+3597 58000001 setarg ms_report_id 
+3598 67e08bff store 1 ,mem_usb_mouse_data 
+3599 6fe3c89e fetch 7 ,mem_24g_rxdata_temp + 3 
+359a e7e38005 istore 7 ,contw 
+359b 6fe0c89e fetch 1 ,mem_24g_rxdata_temp + 3 
+359c 245a35a0 ncall dongle_g24_ms_enable_blank_data_forcibly ,blank 
+359d 6fe0c89e fetch 1 ,mem_24g_rxdata_temp + 3 
+359e 205a35a4 call dongle_g24_ms_disable_blank_data_forcibly ,blank 
+359f 20203525 branch dongle_usb_tx_ms_data 
+
+dongle_g24_ms_enable_blank_data_forcibly:
+35a0 7048f601 jam 1 ,mem_dg_ms_blank_data_enable 
+35a1 58000180 setarg timer_ms_blank_delay 
+35a2 d8e0000b arg timer_ms_blank ,queue 
+35a3 20207d74 branch timer_init 
+
+dongle_g24_ms_disable_blank_data_forcibly:
+35a4 7048f600 jam 0 ,mem_dg_ms_blank_data_enable 
+35a5 58000000 setarg 0 
+35a6 d8e0000b arg timer_ms_blank ,queue 
+35a7 20207d74 branch timer_init 
+
+dongle_g24_kb:
+35a8 6fe0c89e fetch 1 ,mem_24g_rxdata_temp + 3 
+35a9 c00035ad beq 0 ,dongle_g24_kb_type0 
+35aa c00135e0 beq 2 ,dongle_g24_kb_type2 
+35ab c001b5c8 beq 3 ,dongle_g24_kb_type3 
+35ac 20202cc4 branch g24_rx_interrupt_clear 
+
+dongle_g24_kb_type0:
+35ad 6fe0c8a0 fetch 1 ,mem_24g_rxdata_temp + 5 
+35ae 67e0c8c3 store 1 ,mem_24g_ackpayload_enable 
+35af 7048a000 jam 0 ,mem_24g_rxdata_temp + 5 
+35b0 d8a00c0f arg mem_usb_kb_data ,contw 
+35b1 d8c0489f arg mem_24g_rxdata_temp + 4 ,contr 
+35b2 df200008 arg 8 ,loopcnt 
+35b3 20407d6d call memcpy 
+35b4 6fe40c0f fetch 8 ,mem_usb_kb_data 
+35b5 245a35c0 ncall dongle_g24_kb_enable_blank_data_forcibly ,blank 
+35b6 6fe40c0f fetch 8 ,mem_usb_kb_data 
+35b7 205a35c4 call dongle_g24_kb_disable_blank_data_forcibly ,blank 
+35b8 6fe40c0f fetch 8 ,mem_usb_kb_data 
+35b9 67e448d8 store 8 ,mem_dg_kb_data_sta_data 
+35ba 684c48e0 fetcht 8 ,mem_dg_kb_data_last_data 
+35bb 98467c00 isub temp ,null 
+35bc 2442b534 ncall dongle_usb_tx_enable_ep1 ,zero 
+35bd 6fe448d8 fetch 8 ,mem_dg_kb_data_sta_data 
+35be 67e448e0 store 8 ,mem_dg_kb_data_last_data 
+35bf 20202cc4 branch g24_rx_interrupt_clear 
+
+dongle_g24_kb_enable_blank_data_forcibly:
+35c0 7048f401 jam 1 ,mem_dg_kb_blank_data_enable 
+35c1 58000180 setarg timer_kb_blank_delay 
+35c2 d8e0000e arg timer_kb_blank ,queue 
+35c3 20207d74 branch timer_init 
+
+dongle_g24_kb_disable_blank_data_forcibly:
+35c4 7048f400 jam 0 ,mem_dg_kb_blank_data_enable 
+35c5 58000000 setarg 0 
+35c6 d8e0000e arg timer_kb_blank ,queue 
+35c7 20207d74 branch timer_init 
+
+dongle_g24_kb_type3:
+35c8 d8a00c1f arg mem_usb_kb_multikey ,contw 
+35c9 d8c0489e arg mem_24g_rxdata_temp + 3 ,contr 
+35ca df200003 arg 3 ,loopcnt 
+35cb 20407d6d call memcpy 
+35cc 6fe10c20 fetch 2 ,mem_usb_kb_multikey + 1 
+35cd 245a35d8 ncall dongle_g24_kb_mul_enable_blank_data_forcibly ,blank 
+35ce 6fe10c20 fetch 2 ,mem_usb_kb_multikey + 1 
+35cf 205a35dc call dongle_g24_kb_mul_disable_blank_data_forcibly ,blank 
+35d0 6fe18c1f fetch 3 ,mem_usb_kb_multikey 
+35d1 67e1c8e8 store 3 ,mem_dg_kb_multikey_sta_data 
+35d2 6849c8eb fetcht 3 ,mem_dg_kb_multikey_last_data 
+35d3 98467c00 isub temp ,null 
+35d4 2442b543 ncall dongle_usb_tx_multikey_data ,zero 
+35d5 6fe1c8e8 fetch 3 ,mem_dg_kb_multikey_sta_data 
+35d6 67e1c8eb store 3 ,mem_dg_kb_multikey_last_data 
+35d7 20202cc4 branch g24_rx_interrupt_clear 
+
+dongle_g24_kb_mul_enable_blank_data_forcibly:
+35d8 7048f501 jam 1 ,mem_dg_kb_mul_blank_data_enable 
+35d9 58000180 setarg timer_kb_mul_blank_delay 
+35da d8e0000c arg timer_kb_mul_blank ,queue 
+35db 20207d74 branch timer_init 
+
+dongle_g24_kb_mul_disable_blank_data_forcibly:
+35dc 7048f500 jam 0 ,mem_dg_kb_mul_blank_data_enable 
+35dd 58000000 setarg 0 
+35de d8e0000c arg timer_kb_mul_blank ,queue 
+35df 20207d74 branch timer_init 
+
+dongle_g24_kb_type2:
+35e0 d8a00c2f arg mem_usb_kb_system ,contw 
+35e1 d8c0489e arg mem_24g_rxdata_temp + 3 ,contr 
+35e2 df200002 arg 2 ,loopcnt 
+35e3 20407d6d call memcpy 
+35e4 6fe10c2f fetch 2 ,mem_usb_kb_system 
+35e5 245a35f0 ncall dongle_g24_kb_sys_enable_blank_data_forcibly ,blank 
+35e6 6fe10c2f fetch 2 ,mem_usb_kb_system 
+35e7 205a35f4 call dongle_g24_kb_sys_disable_blank_data_forcibly ,blank 
+35e8 6fe10c2f fetch 2 ,mem_usb_kb_system 
+35e9 67e148ee store 2 ,mem_dg_kb_system_sta_data 
+35ea 684948f1 fetcht 2 ,mem_dg_kb_system_last_data 
+35eb 98467c00 isub temp ,null 
+35ec 2442b5f8 ncall dongle_usb_tx_sys_data ,zero 
+35ed 6fe148ee fetch 2 ,mem_dg_kb_system_sta_data 
+35ee 67e148f1 store 2 ,mem_dg_kb_system_last_data 
+35ef 20202cc4 branch g24_rx_interrupt_clear 
+
+dongle_g24_kb_sys_enable_blank_data_forcibly:
+35f0 7048f501 jam 1 ,mem_dg_kb_mul_blank_data_enable 
+35f1 58000180 setarg timer_kb_mul_blank_delay 
+35f2 d8e0000c arg timer_kb_mul_blank ,queue 
+35f3 20207d74 branch timer_init 
+
+dongle_g24_kb_sys_disable_blank_data_forcibly:
+35f4 7048f500 jam 0 ,mem_dg_kb_mul_blank_data_enable 
+35f5 58000000 setarg 0 
+35f6 d8e0000c arg timer_kb_mul_blank ,queue 
+35f7 20207d74 branch timer_init 
+
+dongle_usb_tx_sys_data:
+35f8 700bf822 jam usb_ep2_systemkey ,mem_usb_ep2_data 
+35f9 20203526 branch dongle_usb_tx_enable_ep2 
+
+eink_log_push_2bdec:
+35fa d9000002 arg 2 ,debug 
+35fb 2040367a call eink_log_hex2dec 
+35fc 70483300 jam 0 ,mem_eink_log_hex2dec_ptr 
+
+eink_log_push_2bdec_loop:
+35fd 5800481e setarg mem_eink_log_hex2dec 
+35fe 6848c833 fetcht 1 ,mem_eink_log_hex2dec_ptr 
+35ff 98408c00 iadd temp ,contr 
+3600 efe08006 ifetch 1 ,contr 
+3601 1fe17e0f and_into 0xf ,pdata 
+3602 2040363a call eink_log_num 
+3603 6fe0c833 fetch 1 ,mem_eink_log_hex2dec_ptr 
+3604 1fe0fe01 increase 1 ,pdata 
+3605 67e0c833 store 1 ,mem_eink_log_hex2dec_ptr 
+3606 6fe0c832 fetch 1 ,mem_eink_log_hex2dec_len 
+3607 1fe0ffff increase -1 ,pdata 
+3608 67e0c832 store 1 ,mem_eink_log_hex2dec_len 
+3609 243a35fd nbranch eink_log_push_2bdec_loop ,blank 
+360a 20600000 rtn 
+
+eink_log_push:
+360b 6fe0c814 fetch 1 ,mem_eink_log_last_letter 
+360c 6848c819 fetcht 1 ,mem_eink_log_letter 
+360d 98467c00 isub temp ,null 
+360e 2422b61d nbranch eink_log_push_real ,zero 
+360f 6fe0c815 fetch 1 ,mem_eink_log_last_cmd 
+3610 6848c81a fetcht 1 ,mem_eink_log_cmd 
+3611 98467c00 isub temp ,null 
+3612 2422b61d nbranch eink_log_push_real ,zero 
+3613 6fe0c816 fetch 1 ,mem_eink_log_last_ch 
+3614 6848c81b fetcht 1 ,mem_eink_log_ch 
+3615 98467c00 isub temp ,null 
+3616 2422b61d nbranch eink_log_push_real ,zero 
+3617 6fe0c813 fetch 1 ,mem_eink_log_last_star 
+3618 c1150000 rtneq char_asterisk 
+3619 5800002a setarg char_asterisk 
+361a 2040363c call eink_log_font 
+361b 7048132a jam char_asterisk ,mem_eink_log_last_star 
+361c 20600000 rtn 
+
+eink_log_push_real:
+361d 6fe0c819 fetch 1 ,mem_eink_log_letter 
+361e 2040363c call eink_log_font 
+361f 6fe0c81a fetch 1 ,mem_eink_log_cmd 
+3620 2040363a call eink_log_num 
+3621 204036c0 call eink_log_minus 
+3622 6fe0c81b fetch 1 ,mem_eink_log_ch 
+3623 2040363a call eink_log_num 
+3624 204036c0 call eink_log_minus 
+3625 6fe0c81c fetch 1 ,mem_eink_log_rssi 
+3626 2040363a call eink_log_num 
+3627 6fe2c819 fetch 5 ,mem_eink_log_info 
+3628 67e2c814 store 5 ,mem_eink_log_last_info 
+3629 70481300 jam 0 ,mem_eink_log_last_star 
+362a 20600000 rtn 
+
+eink_log:
+362b 2fe1fe2a compare char_asterisk ,pdata ,0xFF 
+362c 2440b63e ncall eink_log_clear_last ,true 
+362d 1fe22600 copy pdata ,regc 
+362e 6fe0c803 fetch 1 ,mem_eink_log_front 
+362f 1fe22200 copy pdata ,rega 
+3630 6fe0c804 fetch 1 ,mem_eink_log_end 
+3631 1fe22400 copy pdata ,regb 
+3632 1a20a201 increase 1 ,rega 
+3633 1a26fc60 div rega ,eink_log_max 
+3634 20407dfd call wait_div_end 
+3635 18070400 remainder temp 
+3636 18427e00 copy temp ,pdata 
+3637 aa41fe00 icompare 0xFF ,regb 
+3638 2020b643 branch eink_log_full ,true 
+3639 20203656 branch eink_log_not_full 
+
+eink_log_num:
+363a 70481d01 jam 1 ,mem_eink_log_is_byte 
+363b 2020362b branch eink_log 
+
+eink_log_font:
+363c 70481d00 jam 0 ,mem_eink_log_is_byte 
+363d 2020362b branch eink_log 
+
+eink_log_clear_last:
+363e 70481300 jam 0 ,mem_eink_log_last_star 
+363f 70481400 jam 0 ,mem_eink_log_last_letter 
+3640 70481500 jam 0 ,mem_eink_log_last_cmd 
+3641 70481600 jam 0 ,mem_eink_log_last_ch 
+3642 20600000 rtn 
+
+eink_log_full:
+3643 6fe0c803 fetch 1 ,mem_eink_log_front 
+3644 da2047a3 arg mem_eink_log_ring_buffer ,rega 
+3645 9a20a200 iadd rega ,rega 
+3646 1a627e00 copy regc ,pdata 
+3647 e7e08011 istore 1 ,rega 
+3648 20403663 call eink_log_set_byte_flag 
+3649 6fe0c803 fetch 1 ,mem_eink_log_front 
+364a 1fe0fe01 increase 1 ,pdata 
+364b 1fe6fc60 div pdata ,eink_log_max 
+364c 20407dfd call wait_div_end 
+364d 18070400 remainder temp 
+364e 6048c803 storet 1 ,mem_eink_log_front 
+364f 6fe0c804 fetch 1 ,mem_eink_log_end 
+3650 1fe0fe01 increase 1 ,pdata 
+3651 1fe6fc60 div pdata ,eink_log_max 
+3652 20407dfd call wait_div_end 
+3653 18070400 remainder temp 
+3654 6048c804 storet 1 ,mem_eink_log_end 
+3655 20600000 rtn 
+
+eink_log_not_full:
+3656 6fe0c803 fetch 1 ,mem_eink_log_front 
+3657 da2047a3 arg mem_eink_log_ring_buffer ,rega 
+3658 9a20a200 iadd rega ,rega 
+3659 1a627e00 copy regc ,pdata 
+365a e7e08011 istore 1 ,rega 
+365b 20403663 call eink_log_set_byte_flag 
+365c 6fe0c803 fetch 1 ,mem_eink_log_front 
+365d 1fe0fe01 increase 1 ,pdata 
+365e 1fe6fc60 div pdata ,eink_log_max 
+365f 20407dfd call wait_div_end 
+3660 18070400 remainder temp 
+3661 6048c803 storet 1 ,mem_eink_log_front 
+3662 20600000 rtn 
+
+eink_log_set_byte_flag:
+3663 6fe0c803 fetch 1 ,mem_eink_log_front 
+3664 1fe6fc08 div pdata ,8 
+3665 20407dfd call wait_div_end 
+3666 1807fe00 quotient pdata 
+3667 18070400 remainder temp 
+3668 da604805 arg mem_eink_log_ring_buffer_flag ,regc 
+3669 9a60a600 iadd regc ,regc 
+366a efe08013 ifetch 1 ,regc 
+366b 1fe22200 copy pdata ,rega 
+366c 6fe0c81d fetch 1 ,mem_eink_log_is_byte 
+366d 205a3672 call eink_log_set_flag_font ,blank 
+366e 245a3676 ncall eink_log_set_flag_byte ,blank 
+366f 1a227e00 copy rega ,pdata 
+3670 e7e08013 istore 1 ,regc 
+3671 20600000 rtn 
+
+eink_log_set_flag_font:
+3672 18420e00 copy temp ,queue 
+3673 78547c00 disable user 
+3674 f9342200 qsetflag user ,rega 
+3675 20600000 rtn 
+
+eink_log_set_flag_byte:
+3676 18420e00 copy temp ,queue 
+3677 78347c00 enable user 
+3678 f9342200 qsetflag user ,rega 
+3679 20600000 rtn 
+
+eink_log_hex2dec:
+367a da60481e arg mem_eink_log_hex2dec ,regc 
+
+eink_log_calc_loop:
+367b 20403697 call eink_log_hex2dec_rptr 
+367c 204037e0 call bcd2 
+367d 2040369f call eink_log_hex2dec_rcnt 
+367e 78547c00 disable user 
+
+eink_log_bcd_loop:
+367f efe08012 ifetch 1 ,regb 
+3680 1fe17e1f and_into 0x1f ,pdata 
+3681 20343683 branch eink_log_do_store ,user 
+3682 203a3686 branch eink_log_skip_prefix ,blank 
+
+eink_log_do_store:
+3683 1fe17e0f and_into 0xf ,pdata 
+3684 20403694 call eink_store_barcode 
+3685 78347c00 enable user 
+
+eink_log_skip_prefix:
+3686 1a40a401 increase 1 ,regb 
+3687 c200367f loop eink_log_bcd_loop 
+3688 1a627e00 deposit regc 
+3689 d8c0481e arg mem_eink_log_hex2dec ,contr 
+368a 98c67e00 isub contr ,pdata 
+368b 67e0c832 store 1 ,mem_eink_log_hex2dec_len 
+368c 1fe27200 copy pdata ,loopcnt 
+368d d8a0481e arg mem_eink_log_hex2dec ,contw 
+
+eink_display_dec_loop:
+368e d840002e arg 0x2e ,temp 
+368f efe08005 ifetch 1 ,contw 
+3690 1fe08430 add pdata ,0x30 ,temp 
+3691 e0408005 istoret 1 ,contw 
+3692 c200368e loop eink_display_dec_loop 
+3693 20600000 rtn 
+
+eink_store_barcode:
+3694 e7e08013 istore 1 ,regc 
+3695 1a60a601 increase 1 ,regc 
+3696 20600000 rtn 
+
+eink_log_hex2dec_rptr:
+3697 19027e00 copy debug ,pdata 
+3698 c000b69b beq 1 ,rega_read_1byte 
+3699 c001369d beq 2 ,rega_read_2bytes 
+369a 20600000 rtn 
+
+rega_read_1byte:
+369b efe08011 ifetch 1 ,rega 
+369c 20600000 rtn 
+
+rega_read_2bytes:
+369d efe10011 ifetch 2 ,rega 
+369e 20600000 rtn 
+
+eink_log_hex2dec_rcnt:
+369f 19027e00 copy debug ,pdata 
+36a0 c000b6a3 beq 1 ,bcd_read_1byte 
+36a1 c00136a6 beq 2 ,bcd_read_2bytes 
+36a2 20600000 rtn 
+
+bcd_read_1byte:
+36a3 df200003 arg 3 ,loopcnt 
+36a4 da40002e arg mem_bcd + 5 ,regb 
+36a5 20600000 rtn 
+
+bcd_read_2bytes:
+36a6 df200005 arg 5 ,loopcnt 
+36a7 da40002c arg mem_bcd + 3 ,regb 
+36a8 20600000 rtn 
+
+eink_log_break:
+36a9 58000062 setarg letter_b 
+36aa 2040363c call eink_log_font 
+36ab da204ab1 arg mem_parse_cnt ,rega 
+36ac 204035fa call eink_log_push_2bdec 
+36ad 204036c0 call eink_log_minus 
+36ae 6fe0cab3 fetch 1 ,mem_esl_24g_current_ch 
+36af 2040363a call eink_log_num 
+36b0 204036c0 call eink_log_minus 
+36b1 6fe0cab4 fetch 1 ,mem_esl_24g_behavior 
+36b2 2020363a branch eink_log_num 
+
+eink_log_supervision_timeout:
+36b3 204036a9 call eink_log_break 
+
+eink_log_fail:
+36b4 58000066 setarg letter_f 
+36b5 2040363c call eink_log_font 
+36b6 6fe14aae fetch 2 ,mem_rx_cnt 
+36b7 203a36bc branch eink_log_fail_rx_null ,blank 
+36b8 280ffe02 isolate1 mark_24g_old_packet ,mark 
+36b9 2020b6be branch eink_log_fail_old_pac ,true 
+
+eink_log_fail_rx_lost:
+36ba 58000000 setarg eink_log_rx_lost 
+36bb 2020363a branch eink_log_num 
+
+eink_log_fail_rx_null:
+36bc 58000002 setarg eink_log_rx_null 
+36bd 2020363a branch eink_log_num 
+
+eink_log_fail_old_pac:
+36be 58000001 setarg eink_log_old_pac 
+36bf 2020363a branch eink_log_num 
+
+eink_log_minus:
+36c0 5800002d setarg char_minus 
+36c1 2020363c branch eink_log_font 
+
+eink_log_s:
+36c2 58000073 setarg letter_s 
+36c3 2020363c branch eink_log_font 
+
+eink_set_orig:
+36c4 da404880 arg mem_eink_orig ,regb 
+36c5 202036c9 branch eink_wr_seq 
+
+eink_init_seq:
+36c6 da4048d4 arg mem_eink_init_offset ,regb 
+36c7 204036c9 call eink_wr_seq 
+36c8 da404898 arg mem_eink_init ,regb 
+
+eink_wr_seq:
+36c9 efe40012 ifetch 8 ,regb 
+36ca c17f8000 rtneq 0xff 
+36cb 1fe126ff and pdata ,0xff ,regc 
+36cc 204036d0 call eink_spid_cmd 
+36cd 1a60fe02 add regc ,2 ,pdata 
+36ce 9a40a400 iadd regb ,regb 
+36cf 202036c9 branch eink_wr_seq 
+
+eink_spid_cmd:
+36d0 1fe122ff and pdata ,0xff ,rega 
+36d1 1fecfe00 rshift8 pdata ,pdata 
+36d2 67e382e2 store 7 ,mem_spid_tbuf 
+
+eink_spid_data:
+36d3 580002e2 setarg mem_spid_tbuf 
+36d4 204036d8 call eink_spid_buf 
+36d5 204036e9 call start_spid 
+
+eink_spid_end:
+36d6 6848c878 fetcht 1 ,mem_cs 
+36d7 202060b4 branch gpio_out_inactive 
+
+eink_spid_buf:
+36d8 67f1008a store 2 ,core_spid_txaddr 
+36d9 6848c878 fetcht 1 ,mem_cs 
+36da 204060b8 call gpio_out_active 
+36db 6848c879 fetcht 1 ,mem_dc 
+36dc 204060b8 call gpio_out_active 
+36dd 58000001 setarg 1 
+36de 67f10088 store 2 ,core_spid_txlen 
+36df 204036e9 call start_spid 
+36e0 6848c879 fetcht 1 ,mem_dc 
+36e1 204060b4 call gpio_out_inactive 
+36e2 1a227e00 deposit rega 
+36e3 203a36d6 branch eink_spid_end ,blank 
+36e4 67f10088 store 2 ,core_spid_txlen 
+36e5 6ff1008a fetch 2 ,core_spid_txaddr 
+36e6 1fe0fe01 increase 1 ,pdata 
+36e7 67f1008a store 2 ,core_spid_txaddr 
+36e8 20600000 rtn 
+
+start_spid:
+36e9 70800602 jam spid_start ,core_misc_ctrl 
+36ea 20205c80 branch wait_spid_done 
+
+uncompress_init:
+36eb 70483700 jam 0 ,mem_uncom_image_att_flag 
+36ec 70483600 jam 0 ,mem_uncom_fliter_data_flag 
+36ed df200020 arg 0x20 ,loopcnt 
+36ee d8a009f6 arg mem_uncom_the_first_two_buff ,contw 
+36ef 20407d25 call memset0 
+36f0 5800139e setarg mem_uncom_clear_once_end 
+36f1 d8a01395 arg mem_uncom_clear_once_start ,contw 
+36f2 98a67200 isub contw ,loopcnt 
+36f3 20407d34 call clear_mem 
+36f4 58004ab9 setarg mem_esl_24g_rxpayload 
+36f5 d840001f arg uncom_src_index ,temp 
+36f6 9840fe00 iadd temp ,pdata 
+36f7 67e1139c store 2 ,mem_uncom_src_end 
+
+uncompress_mem_clear_everytime:
+36f8 58001395 setarg mem_uncom_clear_everytime_end 
+36f9 d8a0138e arg mem_uncom_clear_everytime_start ,contw 
+36fa 98a67200 isub contw ,loopcnt 
+36fb 20207d34 branch clear_mem 
+
+uncompress_dispatch:
+36fc 6fe0c836 fetch 1 ,mem_uncom_fliter_data_flag 
+36fd c000b703 beq 1 ,uncompress_fliter_redundant_data 
+36fe 20403730 call uncompress_start 
+36ff 6fe11398 fetch 2 ,mem_uncom_current_len 
+3700 207a0000 rtn blank 
+3701 204037ab call uncompress_image 
+3702 20205c80 branch wait_spid_done 
+
+uncompress_fliter_redundant_data:
+3703 70483600 jam 0 ,mem_uncom_fliter_data_flag 
+3704 20403730 call uncompress_start 
+3705 6f209398 fetchr loopcnt ,1 ,mem_uncom_current_len 
+3706 d8a009f6 arg mem_uncom_the_first_two_buff ,contw 
+3707 d8c00af7 arg mem_uncom_dest + 1 ,contr 
+3708 20407d6d call memcpy 
+3709 6fe1139a fetch 2 ,mem_uncom_total_len 
+370a 6848c835 fetcht 1 ,mem_uncom_fliter_datalen 
+370b 98467e00 isub temp ,pdata 
+370c 67e1139a store 2 ,mem_uncom_total_len 
+370d 6fe11398 fetch 2 ,mem_uncom_current_len 
+370e 98467e00 isub temp ,pdata 
+370f 67e11398 store 2 ,mem_uncom_current_len 
+3710 6f209398 fetchr loopcnt ,1 ,mem_uncom_current_len 
+3711 580009f6 setarg mem_uncom_the_first_two_buff 
+3712 98408c00 iadd temp ,contr 
+3713 d8a00af7 arg mem_uncom_dest + 1 ,contw 
+3714 20407d6d call memcpy 
+3715 202037ab branch uncompress_image 
+
+umcompress_image_att:
+3716 20403730 call uncompress_start 
+3717 580009f6 setarg mem_uncom_the_first_two_buff 
+3718 68489395 fetcht 1 ,mem_uncom_the_first_two_index 
+3719 98408a00 iadd temp ,contw 
+371a 6f209398 fetchr loopcnt ,1 ,mem_uncom_current_len 
+371b d8c00af7 arg mem_uncom_dest + 1 ,contr 
+371c 20407d6d call memcpy 
+371d 6fe09395 fetch 1 ,mem_uncom_the_first_two_index 
+371e 203a372d branch umcompress_image_att_index ,blank 
+371f 70483701 jam 1 ,mem_uncom_image_att_flag 
+3720 6fe1139a fetch 2 ,mem_uncom_total_len 
+3721 1fe0ffc2 pincrease -62 
+3722 67e1139a store 2 ,mem_uncom_total_len 
+3723 67e11398 store 2 ,mem_uncom_current_len 
+3724 d8c009f6 arg mem_uncom_the_first_two_buff ,contr 
+3725 d8a04838 arg mem_uncom_image_att_buf ,contw 
+3726 df20003e arg uncom_image_att_lenth ,loopcnt 
+3727 20407d6d call memcpy 
+3728 6f209398 fetchr loopcnt ,1 ,mem_uncom_current_len 
+3729 d8c00a34 arg mem_uncom_the_first_two_buff + uncom_image_att_lenth ,contr 
+372a d8a00af7 arg mem_uncom_dest + 1 ,contw 
+372b 20407d6d call memcpy 
+372c 202037ab branch uncompress_image 
+
+umcompress_image_att_index:
+372d 6fe09398 fetch 1 ,mem_uncom_current_len 
+372e 67e09395 store 1 ,mem_uncom_the_first_two_index 
+372f 20600000 rtn 
+
+uncompress_start:
+3730 58000000 setarg 0 
+3731 67e1938e store 3 ,mem_uncom_dest_index 
+3732 20403767 call uncompress_left_check 
+3733 6fe09390 fetch 1 ,mem_uncom_src_index 
+3734 c0103745 beq uncom_src_length ,uncompress_end 
+
+uncompress_loop:
+3735 20403787 call uncompress_read_head 
+3736 6fe09392 fetch 1 ,mem_uncom_block_head 
+3737 203a3745 branch uncompress_end ,blank 
+3738 c283b74b bbit1 7 ,uncompress_original 
+
+uncompress_repetition:
+3739 70139601 jam 1 ,mem_uncom_repetitive 
+373a 68491393 fetcht 2 ,mem_uncom_block_body_ptr 
+373b 6fe1139c fetch 2 ,mem_uncom_src_end 
+373c 98467c00 isub temp ,null 
+373d 24213748 nbranch repetition_overflow ,positive 
+373e 6a209391 fetchr rega ,1 ,mem_uncom_block_len 
+373f 2040376c call uncompress_repetition_memcpy 
+3740 6fe09390 fetch 1 ,mem_uncom_src_index 
+3741 1fe67c1f sub pdata ,uncom_src_index ,null 
+3742 20213735 branch uncompress_loop ,positive 
+
+uncompress_repetition_end:
+
+uncompress_original_end:
+3743 70139600 jam 0 ,mem_uncom_repetitive 
+3744 70139700 jam 0 ,mem_uncom_left_len 
+
+uncompress_end:
+3745 6fe1138e fetch 2 ,mem_uncom_dest_index 
+3746 67e11398 store 2 ,mem_uncom_current_len 
+3747 20600000 rtn 
+
+repetition_overflow:
+3748 6fe09391 fetch 1 ,mem_uncom_block_len 
+3749 67e09397 store 1 ,mem_uncom_left_len 
+374a 20203745 branch uncompress_end 
+
+uncompress_original:
+374b 70139602 jam 2 ,mem_uncom_repetitive 
+374c 68491393 fetcht 2 ,mem_uncom_block_body_ptr 
+374d 6fe1139c fetch 2 ,mem_uncom_src_end 
+374e 98467c00 isub temp ,null 
+374f 2421375b nbranch original_overflow_head_left ,positive 
+3750 6fe09391 fetch 1 ,mem_uncom_block_len 
+3751 98408400 iadd temp ,temp 
+3752 6fe1139c fetch 2 ,mem_uncom_src_end 
+3753 98460400 isub temp ,temp 
+3754 2421375e nbranch original_overflow_body_left ,positive 
+3755 6a209391 fetchr rega ,1 ,mem_uncom_block_len 
+3756 2040377a call uncompress_original_memcpy 
+3757 6fe09390 fetch 1 ,mem_uncom_src_index 
+3758 1fe67c1f sub pdata ,uncom_src_index ,null 
+3759 20213735 branch uncompress_loop ,positive 
+375a 20203743 branch uncompress_original_end 
+
+original_overflow_head_left:
+375b 6fe09391 fetch 1 ,mem_uncom_block_len 
+375c 67e09397 store 1 ,mem_uncom_left_len 
+375d 20203745 branch uncompress_end 
+
+original_overflow_body_left:
+375e 18460400 sub temp ,0 ,temp 
+375f 184085ff increase -1 ,temp 
+3760 60489397 storet 1 ,mem_uncom_left_len 
+3761 6fe09391 fetch 1 ,mem_uncom_block_len 
+3762 98467e00 isub temp ,pdata 
+3763 67e09391 store 1 ,mem_uncom_block_len 
+3764 6a209391 fetchr rega ,1 ,mem_uncom_block_len 
+3765 2040377a call uncompress_original_memcpy 
+3766 20203745 branch uncompress_end 
+
+uncompress_left_check:
+3767 6fe09397 fetch 1 ,mem_uncom_left_len 
+3768 207a0000 rtn blank 
+3769 6fe09396 fetch 1 ,mem_uncom_repetitive 
+376a c0013776 beq 2 ,uncompress_left_original 
+
+uncompress_left_repetition:
+376b 6a209397 fetchr rega ,1 ,mem_uncom_left_len 
+
+uncompress_repetition_memcpy:
+376c 1a227200 copy rega ,loopcnt 
+376d 20403796 call uncompress_dest_contw 
+
+repetition_memcpy_loop:
+376e 20403792 call uncompress_src_contr 
+376f efe08006 ifetch 1 ,contr 
+3770 e7e08005 istore 1 ,contw 
+3771 c200376e loop repetition_memcpy_loop 
+3772 2040378e call uncompress_src_index_add_one 
+3773 1a220400 copy rega ,temp 
+3774 204037a3 call uncompress_dest_index_add_len 
+3775 2020379f branch uncompress_total_len_add_len 
+
+uncompress_left_original:
+3776 6fe09397 fetch 1 ,mem_uncom_left_len 
+3777 1fe67c20 sub pdata ,uncom_src_length ,null 
+3778 24213782 nbranch uncompress_left_original_continue ,positive 
+3779 6a209397 fetchr rega ,1 ,mem_uncom_left_len 
+
+uncompress_original_memcpy:
+377a 1a227200 copy rega ,loopcnt 
+377b 20403796 call uncompress_dest_contw 
+377c 20403792 call uncompress_src_contr 
+377d 20407d6d call memcpy 
+377e 1a220400 copy rega ,temp 
+377f 2040379b call uncompress_src_index_add_len 
+3780 204037a3 call uncompress_dest_index_add_len 
+3781 2020379f branch uncompress_total_len_add_len 
+
+uncompress_left_original_continue:
+3782 6fe09397 fetch 1 ,mem_uncom_left_len 
+3783 1fe0ffe0 increase -32 ,pdata 
+3784 67e09397 store 1 ,mem_uncom_left_len 
+3785 da200020 arg 32 ,rega 
+3786 2020377a branch uncompress_original_memcpy 
+
+uncompress_read_head:
+3787 20403792 call uncompress_src_contr 
+3788 efe08006 ifetch 1 ,contr 
+3789 67e09392 store 1 ,mem_uncom_block_head 
+378a 1fe17e7f and_into 0x7f ,pdata 
+378b 67e09391 store 1 ,mem_uncom_block_len 
+378c 18c27e00 copy contr ,pdata 
+378d 67e11393 store 2 ,mem_uncom_block_body_ptr 
+
+uncompress_src_index_add_one:
+378e 6fe09390 fetch 1 ,mem_uncom_src_index 
+378f 1fe0fe01 increase 1 ,pdata 
+3790 67e09390 store 1 ,mem_uncom_src_index 
+3791 20600000 rtn 
+
+uncompress_src_contr:
+3792 58004ab9 setarg mem_esl_24g_rxpayload 
+3793 68489390 fetcht 1 ,mem_uncom_src_index 
+3794 98408c00 iadd temp ,contr 
+3795 20600000 rtn 
+
+uncompress_dest_contw:
+3796 58000af6 setarg mem_uncom_dest 
+3797 1fe0fe01 pincrease 1 
+3798 6849138e fetcht 2 ,mem_uncom_dest_index 
+3799 98408a00 iadd temp ,contw 
+379a 20600000 rtn 
+
+uncompress_src_index_add_len:
+379b 6fe09390 fetch 1 ,mem_uncom_src_index 
+379c 9840fe00 iadd temp ,pdata 
+379d 67e09390 store 1 ,mem_uncom_src_index 
+379e 20600000 rtn 
+
+uncompress_total_len_add_len:
+379f 6fe1139a fetch 2 ,mem_uncom_total_len 
+37a0 9840fe00 iadd temp ,pdata 
+37a1 67e1139a store 2 ,mem_uncom_total_len 
+37a2 20600000 rtn 
+
+uncompress_dest_index_add_len:
+37a3 6fe1138e fetch 2 ,mem_uncom_dest_index 
+37a4 9840fe00 iadd temp ,pdata 
+37a5 67e1138e store 2 ,mem_uncom_dest_index 
+37a6 20600000 rtn 
+
+uncompress_eink_type:
+37a7 700af624 jam 0x24 ,mem_uncom_dest 
+37a8 c6838000 rtnmark0 mark_eink_red 
+37a9 700af626 jam 0x26 ,mem_uncom_dest 
+37aa 20600000 rtn 
+
+uncompress_image:
+37ab 58000af6 setarg mem_uncom_dest 
+37ac 67e14aaa store 2 ,mem_eink_head 
+37ad 6fe14aac fetch 2 ,mem_image_ptr 
+37ae 205a36c4 call eink_set_orig ,blank 
+37af 204037a7 call uncompress_eink_type 
+37b0 68491398 fetcht 2 ,mem_uncom_current_len 
+37b1 18422200 copy temp ,rega 
+37b2 6fe14aac fetch 2 ,mem_image_ptr 
+37b3 1fe22400 copy pdata ,regb 
+37b4 9840fe00 iadd temp ,pdata 
+37b5 67e14aac store 2 ,mem_image_ptr 
+37b6 68494896 fetcht 2 ,mem_eink_size 
+37b7 98467e00 isub temp ,pdata 
+37b8 242137d6 nbranch esl_write_full ,positive 
+37b9 c503b7cd bmark1 mark_eink_red ,uncompress_image_red 
+
+uncompress_image_black:
+37ba 67e11398 store 2 ,mem_uncom_current_len 
+37bb 6fe14896 fetch 2 ,mem_eink_size 
+37bc 9a462200 isub regb ,rega 
+37bd 6fe11398 fetch 2 ,mem_uncom_current_len 
+37be 203a37d1 branch uncompress_image_black_end ,blank 
+37bf 204037d3 call esl_write_ram 
+37c0 20405c80 call wait_spid_done 
+37c1 6fe11398 fetch 2 ,mem_uncom_current_len 
+37c2 6848c835 fetcht 1 ,mem_uncom_fliter_datalen 
+37c3 98467e00 isub temp ,pdata 
+37c4 67e11398 store 2 ,mem_uncom_current_len 
+37c5 1fe27200 copy pdata ,loopcnt 
+37c6 58000af7 setarg mem_uncom_dest + 1 
+37c7 6848c835 fetcht 1 ,mem_uncom_fliter_datalen 
+37c8 9840fe00 iadd temp ,pdata 
+37c9 9a208c00 iadd rega ,contr 
+37ca d8a00af7 arg mem_uncom_dest + 1 ,contw 
+37cb 20407d6d call memcpy 
+37cc 202037ab branch uncompress_image 
+
+uncompress_image_red:
+37cd 1a227e00 copy rega ,pdata 
+37ce 6848c835 fetcht 1 ,mem_uncom_fliter_datalen 
+37cf 98462200 isub temp ,rega 
+37d0 202037d3 branch esl_write_ram 
+
+uncompress_image_black_end:
+37d1 70483601 jam 1 ,mem_uncom_fliter_data_flag 
+37d2 202037d3 branch esl_write_ram 
+
+esl_write_ram:
+37d3 c503b7dd bmark1 mark_eink_red ,lost_last_packet 
+
+esl_write_ram_start:
+37d4 204037da call image_ptr_clear 
+37d5 79200007 set1 mark_eink_red ,mark 
+
+esl_write_full:
+37d6 6fe14aaa fetch 2 ,mem_eink_head 
+37d7 204036d8 call eink_spid_buf 
+37d8 70800602 jam spid_start ,core_misc_ctrl 
+37d9 20600000 rtn 
+
+image_ptr_clear:
+37da 58000000 setarg 0 
+37db 67e14aac store 2 ,mem_image_ptr 
+37dc 20600000 rtn 
+
+lost_last_packet:
+37dd 204037d4 call esl_write_ram_start 
+37de 704ab007 jam state_data_finish ,mem_update_state 
+37df 20600000 rtn 
+
+bcd2:
+37e0 67e4095c store 8 ,mem_pdatatemp 
+37e1 18007e20 force 0x20 ,pdata 
+37e2 18007208 force 8 ,loopcnt 
+37e3 d8a00029 arg mem_bcd ,contw 
+
+lpo_clear:
+37e4 e7e08005 istore 1 ,contw 
+37e5 c20037e4 loop lpo_clear 
+37e6 d8a00029 arg mem_bcd ,contw 
+37e7 18a08a07 increase 7 ,contw 
+37e8 6fe4095c fetch 8 ,mem_pdatatemp 
+
+bcd_loop:
+37e9 1fe6fc0a div pdata ,10 
+37ea 20407dfd call wait_div_end 
+37eb 18077e00 remainder pdata 
+37ec 1fe1fe30 or_into 0x30 ,pdata 
+37ed e7e08005 istore 1 ,contw 
+37ee 18a08bfe increase -2 ,contw 
+37ef 1807fe00 quotient pdata 
+37f0 207a0000 rtn blank 
+37f1 202037e9 branch bcd_loop 
+
+eink_chksum:
+37f2 efe08011 ifetch 1 ,rega 
+37f3 984ffe00 imul32 temp ,pdata 
+37f4 9a40a400 iadd regb ,regb 
+37f5 18408401 increase 1 ,temp 
+37f6 1a20a3ff increase -1 ,rega 
+37f7 58004a94 setarg mem_barcode_start 
+37f8 9a267c00 isub rega ,null 
+37f9 2422b7f2 nbranch eink_chksum ,zero 
+37fa 1a46fc2f div regb ,47 
+37fb 20407dfd call wait_div_end 
+37fc 18077e00 remainder pdata 
+37fd 20203694 branch eink_store_barcode 
+
+eink_display_barcode_byte:
+37fe d8c04a64 arg mem_code93 ,contr 
+37ff 98c08c00 iadd contr ,contr 
+3800 e9008006 ifetchr debug ,1 ,contr 
+3801 d8e00007 arg 7 ,queue 
+
+eink_display_barcode_byte_loop:
+3802 2040382f call eink_setxy 
+3803 a90fffff qisolate1 debug 
+3804 20403809 call eink_display_barcode_x 
+3805 18e08fff increase -1 ,queue 
+3806 20213802 branch eink_display_barcode_byte_loop ,positive 
+3807 2040382f call eink_setxy 
+3808 2fcffe00 isolate1 0 ,null 
+
+eink_display_barcode_x:
+3809 58000100 setarg 0x100 
+380a 99609600 iadd timeup ,timeup 
+380b 58000000 setarg 0 
+380c 2020b80e branch eink_display_barcode_blank ,true 
+380d 5fffffff setarg -1 
+
+eink_display_barcode_blank:
+380e 67e202e3 store 4 ,mem_spid_tbuf + 1 
+380f 7002e224 jam 0x24 ,mem_spid_tbuf 
+3810 da200004 arg 4 ,rega 
+3811 202036d3 branch eink_spid_data 
+
+eink_clear_loop:
+3812 da200020 arg 32 ,rega 
+3813 204036d3 call eink_spid_data 
+3814 1a40a5e0 increase -32 ,regb 
+3815 20213812 branch eink_clear_loop ,positive 
+3816 20600000 rtn 
+
+eink_log_battery_vol:
+3817 d9000002 arg 2 ,debug 
+3818 da204ada arg mem_battery_vol ,rega 
+3819 2040367a call eink_log_hex2dec 
+381a 6fe1481f fetch 2 ,mem_eink_log_hex2dec + 1 
+381b 67e14820 store 2 ,mem_eink_log_hex2dec + 2 
+381c 70481f2e jam char_dot ,mem_eink_log_hex2dec + 1 
+381d 70483204 jam 4 ,mem_eink_log_hex2dec_len 
+381e 2020382c branch eink_display_dec + 1 
+
+eink_log_broadcast_rssi:
+381f 6fe0cadc fetch 1 ,mem_rssi_save 
+3820 1fe67e5f sub pdata ,95 ,pdata 
+3821 24417e6c ncall enable_blank ,positive 
+3822 67e0cadd store 1 ,mem_rssi_temp 
+3823 d9000001 arg 1 ,debug 
+3824 da204add arg mem_rssi_temp ,rega 
+3825 2020382b branch eink_display_dec 
+
+eink_log_unicast_rssi:
+3826 6fe0cad9 fetch 1 ,mem_esl_24g_rssi_save 
+3827 20203820 branch eink_log_broadcast_rssi + 1 
+
+eink_log_push_zero:
+3828 d9000001 arg 1 ,debug 
+3829 da204834 arg mem_eink_log_push_zero ,rega 
+382a 2020382b branch eink_display_dec 
+
+eink_display_dec:
+382b 2040367a call eink_log_hex2dec 
+382c 6f20c832 fetchr loopcnt ,1 ,mem_eink_log_hex2dec_len 
+382d de00481e arg mem_eink_log_hex2dec ,alarm 
+382e 20203840 branch eink_display_str 
+
+eink_setxy:
+382f 19617eff and timeup ,0xff ,pdata 
+3830 67e0c88a store 1 ,mem_eink_setxy + 2 
+3831 6fe1487e fetch 2 ,mem_eink_xy + 1 
+3832 196c8400 rshift8 timeup ,temp 
+3833 98467e00 isub temp ,pdata 
+3834 67e1488d store 2 ,mem_eink_setxy + 5 
+3835 da404888 arg mem_eink_setxy ,regb 
+3836 202036c9 branch eink_wr_seq 
+
+eink_display_dot:
+3837 5800002e setarg char_dot 
+3838 2020384d branch eink_display_font 
+
+eink_display_comma:
+3839 5800002c setarg char_comma 
+383a 2040384d call eink_display_font 
+383b 58000300 setarg 0x300 
+383c 99609600 iadd timeup ,timeup 
+383d 20600000 rtn 
+
+eink_display_space:
+383e 58000020 setarg char_space 
+383f 2020384d branch eink_display_font 
+
+eink_display_str:
+3840 efe08030 ifetch 1 ,alarm 
+3841 2040384d call eink_display_font 
+3842 1e00e001 increase 1 ,alarm 
+3843 c2003840 loop eink_display_str 
+3844 20600000 rtn 
+
+eink_display_byte:
+3845 1fe1020f and pdata ,0xf ,type 
+3846 1ff1fe00 rshift4 pdata ,pdata 
+3847 20403849 call eink_display_hex 
+3848 18227e00 deposit type 
+
+eink_display_hex:
+3849 1fe0fe30 pincrease 0x30 
+384a 1fe67c39 sub pdata ,0x39 ,null 
+384b 2021384d branch eink_display_font ,positive 
+384c 1fe0fe27 pincrease 0x27 
+
+eink_display_font:
+384d d9000003 arg 3 ,debug 
+384e c010386b beq 0x20 ,eink_display_font_space 
+384f c0173869 beq 0x2e ,eink_display_font_dot 
+3850 c0163867 beq 0x2c ,eink_display_font_comma 
+3851 d9000008 arg 8 ,debug 
+3852 c0203865 beq 0x40 ,eink_display_font_at 
+3853 c01f3863 beq 0x3e ,eink_display_font_greater 
+3854 c012b85f beq 0x25 ,eink_display_font_percent 
+3855 d9000006 arg 6 ,debug 
+3856 c01d386f beq 0x3a ,eink_display_font_colon 
+3857 c016b871 beq 0x2d ,eink_display_font_minus 
+3858 c0153861 beq 0x2a ,eink_display_font_asterisk 
+3859 c011b86d beq 0x23 ,eink_display_font_pound 
+385a 1fe67c39 sub pdata ,0x39 ,null 
+385b 20213874 branch eink_display_digit ,positive 
+385c 1fe0ff9f increase -97 ,pdata 
+385d d9000008 arg 8 ,debug 
+385e 20203875 branch eink_display_cont 
+
+eink_display_font_percent:
+385f 5800002d setarg 45 
+3860 20203875 branch eink_display_cont 
+
+eink_display_font_asterisk:
+3861 5800002c setarg 44 
+3862 20203875 branch eink_display_cont 
+
+eink_display_font_greater:
+3863 5800002b setarg 43 
+3864 20203875 branch eink_display_cont 
+
+eink_display_font_at:
+3865 5800002a setarg 42 
+3866 20203875 branch eink_display_cont 
+
+eink_display_font_comma:
+3867 58000029 setarg 41 
+3868 20203875 branch eink_display_cont 
+
+eink_display_font_dot:
+3869 58000028 setarg 40 
+386a 20203875 branch eink_display_cont 
+
+eink_display_font_space:
+386b 58000027 setarg 39 
+386c 20203875 branch eink_display_cont 
+
+eink_display_font_pound:
+386d 58000026 setarg 38 
+386e 20203875 branch eink_display_cont 
+
+eink_display_font_colon:
+386f 58000025 setarg 37 
+3870 20203875 branch eink_display_cont 
+
+eink_display_font_minus:
+3871 58000024 setarg 36 
+3872 d9000005 arg 5 ,debug 
+3873 20203875 branch eink_display_cont 
+
+eink_display_digit:
+3874 1fe0ffea increase -22 ,pdata 
+
+eink_display_cont:
+3875 1fe9fe00 lshift3 pdata ,pdata 
+3876 d84048f4 arg mem_eink_font ,temp 
+3877 9840de00 iadd temp ,regext 
+
+eink_display_font_loop:
+3878 2040382f call eink_setxy 
+3879 efe0802f ifetch 1 ,regext 
+387a 1fe47e00 pinvert 
+387b 67e082e3 store 1 ,mem_spid_tbuf + 1 
+387c 7002e224 jam 0x24 ,mem_spid_tbuf 
+387d da200001 arg 1 ,rega 
+387e 204036d3 call eink_spid_data 
+387f 58000100 setarg 0x100 
+3880 99609600 iadd timeup ,timeup 
+3881 1de0de01 increase 1 ,regext 
+3882 190091ff increase -1 ,debug 
+3883 2422b878 nbranch eink_display_font_loop ,zero 
+3884 20600000 rtn 
+
+module_init:
+3885 20758000 rtn wake 
+3886 204022b4 call le_modified_name 
+3887 2040612c call adc_init_data 
+3888 580038d0 setarg module_process_idle 
+3889 67e14465 store 2 ,mem_cb_idle_process 
+388a 580038bd setarg module_bt_conn_process 
+388b 67e14463 store 2 ,mem_cb_bt_process 
+388c 580038d4 setarg module_process_bb_event 
+388d 67e14467 store 2 ,mem_cb_bb_event_process 
+388e 580038b9 setarg module_lpm_lock 
+388f 67e1445b store 2 ,mem_cb_check_wakelock 
+3890 58003a0e setarg module_hci_cmd_transmit_le_notify 
+3891 67e1446d store 2 ,mem_cb_ble_transmit 
+3892 58003c13 setarg module_hci_event_receive_spp_data 
+3893 67e14659 store 2 ,mem_cb_receive_spp_data 
+3894 58003cbe setarg module_le_receive_data 
+3895 67e1446b store 2 ,mem_cb_att_write 
+3896 58003cd5 setarg module_bb_event_timer 
+3897 67e1446f store 2 ,mem_cb_event_timer 
+3898 58003c9d setarg module_wechat_rx_push_data 
+3899 67e147d4 store 2 ,mem_module_wechat_rx_push_data_cb 
+389a 204038cd call module_spp_clear_last_transmite_clock 
+389b 44e34018 bpatch patch18_6 ,mem_patch18 
+389c 204038a0 call module_lpm_uart_init 
+389d 204038b4 call module_gpio_init 
+389e 20401551 call check_module_disabled 
+389f 20203c29 branch module_hci_event_enter_standby_mode 
+
+module_lpm_uart_init:
+38a0 6ff08060 fetch 1 ,core_uart_ctrl 
+38a1 793ffe00 set0 bit_uart_control_enable ,pdata 
+38a2 67f08060 store 1 ,core_uart_ctrl 
+38a3 6fe447b3 fetch 8 ,mem_module_uart_rx_buffer 
+38a4 20405efb call uarta_init_dma_mem 
+38a5 6fe147bb fetch uart_baud_len ,mem_module_uarta_baud_rate 
+38a6 20405f0f call uarta_init_baud_rate 
+38a7 20405f22 call uart_clock_select_main_freq_crystal 
+38a8 70808008 jam gpcfg_uart_txd ,core_gpio_conf + hci_uart_tx_gpio_num 
+38a9 70808149 jam gpcfg_uart_rxd | gpcfg_pullup ,core_gpio_conf + hci_uart_rx_gpio_num 
+38aa 70807a0a jam gpcfg_uart_rts ,core_gpio_conf + hci_uart_rts_gpio_num 
+38ab 70807b0b jam gpcfg_uart_cts ,core_gpio_conf + hci_uart_cts_gpio_num 
+38ac d8400081 arg fun_uart_control_enable | fun_uart_control_setting_rate_baud ,temp 
+38ad 6fe147c2 fetch 2 ,mem_module_flag 
+38ae 2feffe00 isolate1 module_flag_uart_flow_control ,pdata 
+38af 79208404 setflag true ,bit_uart_control_flow_control ,temp 
+38b0 60588060 storet 1 ,core_uart_ctrl 
+38b1 20600000 rtn 
+
+module_lpm_init:
+38b2 204038cd call module_spp_clear_last_transmite_clock 
+38b3 202038a0 branch module_lpm_uart_init 
+
+module_gpio_init:
+38b4 6848c7a7 fetcht 1 ,mem_module_connect_state_gpio 
+38b5 204060b8 call gpio_config_output 
+38b6 20403937 call module_set_conn_pin_low 
+38b7 6848c7a5 fetcht 1 ,mem_module_wake_up_gpio 
+38b8 2020609f branch gpio_config_input 
+
+module_lpm_lock:
+38b9 6848c7a5 fetcht 1 ,mem_module_wake_up_gpio 
+38ba 204060a8 call gpio_get_bit 
+38bb 2420b099 nbranch app_put_lpm_wake_lock ,true 
+38bc 20203097 branch app_get_lpm_wake_lock 
+
+module_bt_conn_process:
+38bd 204038bf call module_spp_enter_sniff 
+38be 20203ce6 branch module_control_air_flow 
+
+module_spp_enter_sniff:
+38bf 6fe0c78b fetch 1 ,mem_ui_state_map 
+38c0 c30238cd bbit0 ui_state_bt_spp_conn ,module_spp_clear_last_transmite_clock 
+38c1 58003eff setarg 0x3eff 
+38c2 684a47ca fetcht 4 ,mem_last_transmite_clock 
+38c3 98408400 iadd temp ,temp 
+38c4 1c427e00 copy clkn_bt ,pdata 
+38c5 98467c00 isub temp ,null 
+38c6 24610000 nrtn positive 
+38c7 6fe1478b fetch 2 ,mem_ui_state_map 
+38c8 c282b8cd bbit1 ui_state_bt_sniff ,module_spp_clear_last_transmite_clock 
+38c9 6fe147c2 fetch 2 ,mem_module_flag 
+38ca c3850000 rtnbit1 moudle_task_sniff 
+38cb 20403ce9 call module_set_sniff_task_flag 
+38cc 204030d5 call app_bt_enter_sniff 
+
+module_spp_clear_last_transmite_clock:
+38cd 1c427e00 copy clkn_bt ,pdata 
+38ce 67e247ca store 4 ,mem_last_transmite_clock 
+38cf 20600000 rtn 
+
+module_process_idle:
+38d0 20403ce6 call module_control_air_flow 
+38d1 204052cc call l2cap_malloc_is_fifo_full 
+38d2 247a0000 nrtn blank 
+38d3 2020393c branch module_process_check_hci_command_complete 
+
+module_process_bb_event:
+38d4 1a627e00 copy regc ,pdata 
+38d5 c000b924 beq bt_evt_bb_connected ,module_process_bb_conn 
+38d6 c00138f3 beq bt_evt_bb_disconnected ,module_process_bb_event_disconned 
+38d7 c0023927 beq bt_evt_reconn_failed ,module_process_reconn_fail 
+38d8 c002b914 beq bt_evt_setup_complete ,module_process_setup_complete 
+38d9 c00438fa beq bt_evt_spp_connected ,module_process_spp_connected 
+38da c004b901 beq bt_evt_spp_disconnected ,module_process_spp_disconnected 
+38db c005391a beq bt_evt_pincode_req ,module_process_evt_pincode_req 
+38dc c005b906 beq bt_evt_enter_sniff ,module_process_enter_sniff 
+38dd c0063912 beq bt_evt_exit_sniff ,module_process_exit_sniff 
+38de c009b927 beq bt_evt_reconn_page_timeout ,module_process_page_time_out 
+38df c00a3920 beq bt_evt_le_connected ,module_process_le_conn 
+38e0 c00ab916 beq bt_evt_le_disconnected ,module_process_bb_even_le_disconn 
+38e1 c010b91b beq bt_evt_sniff_not_accept ,module_process_sniff_not_accept 
+38e2 c011b91c beq bt_evt_unsniff_accept ,module_process_unsniff_accept 
+38e3 c012391f beq bt_evt_unsniff_not_accept ,module_process_unsniff_not_accept 
+38e4 c0183c71 beq bt_evt_le_pairing_fail ,module_hci_event_le_pairing_fail 
+38e5 c018bc73 beq bt_evt_le_pairing_success ,module_hci_event_le_pairing_success 
+38e6 c0193c81 beq bt_evt_le_start_enc ,module_hci_event_start_enc 
+38e7 c019bc7f beq bt_evt_le_pause_enc ,module_hci_event_pause_enc 
+38e8 c01a3c6b beq bt_evt_le_tk_generate ,module_hci_event_le_tk 
+38e9 c01abc54 beq bt_evt_bt_gkey_generate ,module_hci_event_gkey_generate 
+38ea c01b3c69 beq bt_evt_bt_get_passkey ,module_hci_event_passkey_entry_mode 
+38eb c01bbc75 beq bt_evt_bt_pairing_fail ,module_hci_event_bt_pairing_fail 
+38ec c01c3c77 beq bt_evt_bt_pairing_success ,module_hci_event_bt_pairing_success 
+38ed c01dbc54 beq bt_evt_le_gkey_generate ,module_hci_event_gkey_generate 
+38ee c01ebc4b beq bt_evt_store_nvram ,module_hci_event_store_device 
+38ef c020b929 beq bt_evt_le_ltk_lost ,module_process_ble_ltk_lost 
+38f0 c021392b beq bt_evt_le_update_phy ,module_process_ble_update_phy 
+38f1 c021bc69 beq bt_evt_le_get_passkey ,module_hci_event_passkey_entry_mode 
+38f2 20600000 rtn 
+
+module_process_bb_event_disconned:
+38f3 204038cd call module_spp_clear_last_transmite_clock 
+38f4 6fe0c76e fetch 1 ,mem_flag_pairing_state 
+38f5 245a3c75 ncall module_hci_event_bt_pairing_fail ,blank 
+38f6 20403927 call module_disconn_start 
+38f7 6fe1478b fetch 2 ,mem_ui_state_map 
+38f8 c4020000 rtnbit0 ui_state_bt_spp_conn 
+38f9 20203901 branch module_spp_disconnected 
+
+module_process_spp_connected:
+38fa 6fe1478b fetch 2 ,mem_ui_state_map 
+38fb 79207e04 set1 ui_state_bt_spp_conn ,pdata 
+38fc 67e1478b store 2 ,mem_ui_state_map 
+38fd 6fe0c7b0 fetch 1 ,mem_module_spp_lpm_mult 
+38fe 67e0c17a store 1 ,mem_lpm_mult 
+38ff 20403937 call module_set_conn_pin_low 
+3900 20203bfe branch module_hci_event_spp_connect 
+
+module_process_spp_disconnected:
+
+module_spp_disconnected:
+3901 6fe1478b fetch 2 ,mem_ui_state_map 
+3902 c4020000 rtnbit0 ui_state_bt_spp_conn 
+3903 793ffe04 set0 ui_state_bt_spp_conn ,pdata 
+3904 67e1478b store 2 ,mem_ui_state_map 
+3905 20203c02 branch module_hci_event_spp_disconnect 
+
+module_process_enter_sniff:
+
+module_sniff_param_check:
+3906 204038cd call module_spp_clear_last_transmite_clock 
+3907 6fe14042 fetch 2 ,mem_context + coffset_tsniff 
+3908 1fe37e00 rshift pdata ,pdata 
+3909 68494455 fetcht 2 ,mem_sniff_param_interval 
+390a 98467c00 isub temp ,null 
+390b 2422b90d nbranch module_sniff_param_check_unsniff ,zero 
+390c 202030dd branch app_lpm_mult_enable 
+
+module_sniff_param_check_unsniff:
+390d 6fe147c2 fetch 2 ,mem_module_flag 
+390e c3848000 rtnbit1 moudle_task_unsniff 
+390f 6ff10112 fetch 2 ,core_uart_rxitems 
+3910 245a3ced ncall module_set_unsniff_task_flag ,blank 
+3911 202030d3 branch app_bt_sniff_exit 
+
+module_process_exit_sniff:
+3912 20403ceb call module_clear_sniff_task_flag 
+3913 202030df branch app_lpm_mult_disable 
+
+module_process_setup_complete:
+3914 204038cd call module_spp_clear_last_transmite_clock 
+3915 2020392e branch module_conn_start 
+
+module_process_bb_even_le_disconn:
+3916 20402327 call le_clr_config_more_data 
+3917 7047c400 jam 0 ,mem_module_hci_notify_len 
+3918 20403927 call module_disconn_start 
+3919 20203c04 branch module_hci_event_le_disconnect 
+
+module_process_evt_pincode_req:
+391a 202030a4 branch app_bt_set_pincode 
+
+module_process_sniff_not_accept:
+391b 20203ceb branch module_clear_sniff_task_flag 
+
+module_process_unsniff_accept:
+391c 6fe147c2 fetch 2 ,mem_module_flag 
+391d c304b0d5 bbit0 moudle_task_unsniff ,app_bt_enter_sniff 
+391e 20203cef branch module_clear_unsniff_task_flag 
+
+module_process_unsniff_not_accept:
+391f 20203cef branch module_clear_unsniff_task_flag 
+
+module_process_le_conn:
+3920 2040392e call module_conn_start 
+3921 6fe0c7b1 fetch 1 ,mem_module_le_lpm_mult 
+3922 67e0c17a store 1 ,mem_lpm_mult 
+3923 20203c00 branch module_hci_event_le_connect 
+
+module_process_bb_conn:
+3924 70476a00 jam 0 ,mem_flag_mode_ssp_pin 
+3925 20403ceb call module_clear_sniff_task_flag 
+3926 20203cef branch module_clear_unsniff_task_flag 
+
+module_process_page_time_out:
+
+module_process_reconn_fail:
+
+module_disconn_start:
+3927 204039a5 call module_start_adv_discovery_by_command 
+3928 2020392c branch module_set_conn_pin_high 
+
+module_process_ble_ltk_lost:
+3929 20402a85 call le_send_reject_ind 
+392a 20202869 branch le_send_smp_security_request 
+
+module_process_ble_update_phy:
+392b 20203c97 branch module_hci_event_le_update_phy 
+
+module_set_conn_pin_high:
+392c 6848c7a7 fetcht 1 ,mem_module_connect_state_gpio 
+392d 202060b8 branch gpio_out_active 
+
+module_conn_start:
+392e 20403930 call module_stop_adv_discovery 
+392f 20203937 branch module_set_conn_pin_low 
+
+module_stop_adv_discovery:
+3930 6fe0c7aa fetch 1 ,mem_module_state 
+3931 2feffe00 isolate1 moudle_state_bt_bit ,pdata 
+3932 2040b0b7 call app_bt_stop_discovery ,true 
+3933 6fe0c7aa fetch 1 ,mem_module_state 
+3934 2feffe01 isolate1 moudle_state_ble_bit ,pdata 
+3935 2040b0bf call app_ble_stop_adv ,true 
+3936 20600000 rtn 
+
+module_set_conn_pin_low:
+3937 6848c7a7 fetcht 1 ,mem_module_connect_state_gpio 
+3938 202060b4 branch gpio_out_inactive 
+
+module_process_with_credit:
+3939 6fe0c655 fetch 1 ,mem_rfcomm_credit_flag 
+393a c1000000 rtneq credit_disable 
+393b 2020650a branch rfcomm_send_uih_without_payload 
+
+module_process_check_hci_command_complete:
+393c 6ff0810b fetch 1 ,core_uart_status 
+393d c2813939 bbit1 uart_status_rx_fifo_empty ,module_process_with_credit 
+393e 20405f42 call uarta_prepare_rx 
+393f efe08003 ifetch 1 ,contru 
+3940 c080b952 bne 0x01 ,module_hci_in_excp 
+3941 6ff10112 fetch 2 ,core_uart_rxitems 
+3942 1fe67c02 sub pdata ,2 ,null 
+3943 20610000 rtn positive 
+3944 efe08003 ifetch 1 ,contru 
+3945 67e089cf store 1 ,mem_module_uart_opcode 
+3946 e8408003 ifetcht 1 ,contru 
+3947 18622200 copy contru ,rega 
+3948 604889d0 storet 1 ,mem_module_uart_len 
+3949 18408403 add temp ,3 ,temp 
+394a 6ff10112 fetch 2 ,core_uart_rxitems 
+394b 98460400 isub temp ,temp 
+394c 24610000 nrtn positive 
+394d 7009d101 jam hci_discard_packet ,mem_module_temp_nl_discard_packet 
+394e 20403960 call module_hci_cmd_control 
+394f 6fe089d1 fetch 1 ,mem_module_temp_nl_discard_packet 
+3950 c1000000 rtneq hci_not_discard_packet 
+3951 2020395b branch module_hci_dicard_packet 
+
+module_hci_in_excp:
+3952 20407d20 call delay_10ms 
+3953 20403c5a call module_hci_event_invalid_packet 
+3954 20203955 branch module_hci_release_except 
+
+module_hci_release_except:
+3955 44e3c018 bpatch patch18_7 ,mem_patch18 
+3956 20405f42 call uarta_prepare_rx 
+3957 6ff10112 fetch 2 ,core_uart_rxitems 
+3958 207a0000 rtn blank 
+3959 98608600 iadd contru ,contru 
+395a 2020395f branch module_hci_dicard_bytes 
+
+module_hci_dicard_packet:
+395b 20405f42 call uarta_prepare_rx 
+395c 18608602 increase 2 ,contu 
+395d efe08003 ifetch 1 ,contu 
+395e 98608600 iadd contu ,contu 
+
+module_hci_dicard_bytes:
+395f 20205f4e branch uarta_rxdone 
+
+module_hci_cmd_control:
+3960 44e44019 bpatch patch19_0 ,mem_patch19 
+3961 6fe089cf fetch 1 ,mem_module_uart_opcode 
+3962 c0003993 beq hci_cmd_set_bt_addr_req ,module_hci_cmd_set_bt_addr 
+3963 c000b998 beq hci_cmd_set_le_addr_req ,module_hci_cmd_set_le_addr 
+3964 c001399d beq hci_cmd_set_visibility_req ,module_hci_cmd_set_visibility 
+3965 c001b9b2 beq hci_cmd_set_bt_name_req ,module_hci_cmd_set_bt_name 
+3966 c00239bc beq hci_cmd_set_le_name_req ,module_hci_cmd_set_le_name 
+3967 c002b9c0 beq hci_cmd_spp_data_req ,module_hci_cmd_receive_spp_data 
+3968 c004b9e2 beq hci_cmd_le_data_req ,module_hci_cmd_receive_le_data 
+3969 c005ba36 beq hci_cmd_status_irq ,module_hci_cmd_inquire_status 
+396a c0063a37 beq hci_cmd_set_pairing_req ,module_hci_cmd_set_pairing_mode 
+396b c006ba5b beq hci_cmd_set_pincode_req ,module_hci_cmd_set_pincode 
+396c c0073a5e beq hci_cmd_set_uartcontrol_req ,module_hci_cmd_set_uart_control_mode 
+396d c007ba66 beq hci_cmd_set_uart_baud_req ,module_hci_cmd_set_uart_baud 
+396e c0083a6e beq hci_cmd_version_req ,module_hci_cmd_version_request 
+396f c008ba72 beq hci_cmd_bt_disconnect ,module_hci_cmd_bt_disconnect 
+3970 c0093a76 beq hci_cmd_ble_disconnect ,module_hci_cmd_ble_disconnect 
+3971 c00aba7a beq hci_cmd_set_cod ,module_hci_cmd_set_cod 
+3972 c0133a7f beq hci_cmd_set_nvram_req ,module_hci_cmd_set_nvram 
+3973 c0143a84 beq hci_cmd_confirm_gkey ,module_hci_cmd_confirm_gkey 
+3974 c014ba94 beq hci_cmd_set_credit_given ,module_hci_cmd_set_credit_given 
+3975 c0153a9d beq hci_cmd_auto_adv_scan ,module_hci_cmd_auto_adv 
+3976 c015bad0 beq hci_cmd_power_req ,module_hci_cmd_power_request 
+3977 c0163ad6 beq hci_cmd_power_set ,module_hci_cmd_power_set 
+3978 c0183add beq hci_cmd_passkey_entry ,module_hci_cmd_passkey_entry 
+3979 c018bae7 beq hci_cmd_set_gpio ,module_hci_cmd_set_gpio 
+397a c0193af8 beq hci_cmd_read_gpio ,module_hci_cmd_read_gpio 
+397b c019bb03 beq hci_cmd_le_set_pairing ,module_hci_cmd_le_set_pairing_mode 
+397c c01a3b30 beq hci_cmd_le_set_adv_data ,module_hci_cmd_le_set_adv_data 
+397d c01abb33 beq hci_cmd_le_set_scan_data ,module_hci_cmd_le_set_scan_data 
+397e c01b3b3c beq hci_cmd_le_send_conn_update_req ,module_hci_cmd_le_send_conn_update_req 
+397f c01bbb45 beq hci_cmd_le_set_adv_parm ,module_hci_cmd_set_le_adv_parameter 
+3980 c01c3b48 beq hci_cmd_le_start_pairing ,module_hci_cmd_le_start_pairing 
+3981 c0203b50 beq hci_cmd_set_wake_gpio ,module_hci_cmd_set_wake_gpio 
+3982 c0213b5a beq hci_cmd_set_tx_power ,module_hci_cmd_set_tx_power 
+3983 c0243b5f beq hci_cmd_le_confirm_gkey ,module_hci_cmd_le_confirm_gkey 
+3984 c024bb6a beq hci_cmd_reject_justwork ,module_hci_cmd_set_reject_justwork_flag 
+3985 c028bb70 beq hci_cmd_reset_chip_req ,module_hci_cmd_reset_chip 
+3986 c030bb74 beq hci_cmd_le_set_fixed_passkey ,module_hci_cmd_le_set_fixed_passkey 
+3987 c03b3b83 beq hci_cmd_delete_customize_service ,module_hci_cmd_delete_customize_service 
+3988 c03bbb89 beq hci_cmd_add_service_uuid ,module_hci_cmd_add_service_uuid 
+3989 c03c3b8e beq hci_cmd_add_characteristic_uuid ,module_hci_cmd_add_characteristic_uuid 
+398a c03d3bc4 beq hci_cmd_passkey_entry_input ,module_hci_cmd_le_passkey_entry_input 
+398b c0483bd2 beq hci_cmd_ble_set_phy ,module_hci_cmd_ble_set_phy 
+398c c048bbd7 beq hci_cmd_ble_read_current_phy ,module_hci_cmd_ble_read_current_phy 
+398d c0493bdb beq hci_cmd_ble_set_dle ,module_hci_cmd_ble_set_dle 
+398e c049bbe0 beq hci_cmd_read_chip_data ,module_hci_cmd_read_chip_data 
+398f c04a3be4 beq hci_cmd_write_chip_data ,module_hci_cmd_write_chip_data 
+3990 c04abbea beq hci_cmd_wechat_send_data ,module_hci_cmd_wechat_send_data 
+3991 c07fbbf6 beq hci_cmd_close_lpm ,module_hci_cmd_close_lpm 
+3992 20203bf8 branch module_hci_event_receive_invalid_cmd 
+
+module_hci_cmd_set_bt_addr:
+3993 6fe089d0 fetch 1 ,mem_module_uart_len 
+3994 c0833bf8 bne 6 ,module_hci_event_receive_invalid_cmd 
+3995 efe30003 ifetch 6 ,contru 
+3996 67e340a8 store 6 ,mem_lap 
+3997 20203bfb branch module_hci_event_receive_valid_cmd 
+
+module_hci_cmd_set_le_addr:
+3998 6fe089d0 fetch 1 ,mem_module_uart_len 
+3999 c0833bf8 bne 6 ,module_hci_event_receive_invalid_cmd 
+399a efe30003 ifetch 6 ,contru 
+399b 67e34378 store 6 ,mem_le_lap 
+399c 20203bfb branch module_hci_event_receive_valid_cmd 
+
+module_hci_cmd_set_visibility:
+399d 6fe089d0 fetch 1 ,mem_module_uart_len 
+399e c080bbf8 bne 1 ,module_hci_event_receive_invalid_cmd 
+399f e8408003 ifetcht 1 ,contru 
+39a0 6048c7b2 storet 1 ,mem_module_bluetooth_stauts_by_command 
+39a1 20403bfb call module_hci_event_receive_valid_cmd 
+39a2 6fe1478b fetch 2 ,mem_ui_state_map 
+39a3 c3848000 rtnbit1 ui_state_ble_connected 
+39a4 c3800000 rtnbit1 ui_state_bt_connected 
+
+module_start_adv_discovery_by_command:
+39a5 6fe0c7aa fetch 1 ,mem_module_state 
+39a6 2feffe00 isolate1 moudle_state_bt_bit ,pdata 
+39a7 2420b9ab nbranch moudle_start_adv_by_command ,true 
+39a8 6848c7b2 fetcht 1 ,mem_module_bluetooth_stauts_by_command 
+39a9 18417e03 and temp ,0x03 ,pdata 
+39aa 67e0c09b store 1 ,mem_scan_mode 
+
+moudle_start_adv_by_command:
+39ab 6fe0c7aa fetch 1 ,mem_module_state 
+39ac 2feffe01 isolate1 moudle_state_ble_bit ,pdata 
+39ad 24608000 nrtn true 
+39ae 6848c7b2 fetcht 1 ,mem_module_bluetooth_stauts_by_command 
+39af 284ffe02 isolate1 2 ,temp 
+39b0 2020b0c1 branch app_ble_start_adv ,true 
+39b1 202030bf branch app_ble_stop_adv 
+
+module_hci_cmd_set_bt_name:
+39b2 6fe089d0 fetch 1 ,mem_module_uart_len 
+39b3 1fe67c43 sub pdata ,67 ,null 
+39b4 24213bf8 nbranch module_hci_event_receive_invalid_cmd ,positive 
+39b5 67e0c5fc store 1 ,mem_local_name_length 
+39b6 df200008 arg 8 ,loopcnt 
+39b7 20407d25 call memset0 
+39b8 6f2089d0 fetchr loopcnt ,1 ,mem_module_uart_len 
+39b9 d8a045fd arg mem_local_name ,contw 
+39ba 20405f84 call uart_copy_rx_bytes_fast 
+39bb 20203bfb branch module_hci_event_receive_valid_cmd 
+
+module_hci_cmd_set_le_name:
+39bc dfe0001f arg 31 ,pdata 
+39bd d8a042f5 arg mem_le_name_len ,contw 
+39be 20403b36 call module_hci_cmd_receive_store_mem 
+39bf 202022b4 branch le_modified_name 
+
+module_hci_cmd_receive_spp_data:
+39c0 6fe0c78b fetch 1 ,mem_ui_state_map 
+39c1 c3023bf8 bbit0 ui_state_bt_spp_conn ,module_hci_event_receive_invalid_cmd 
+39c2 20403091 call app_check_sniff 
+39c3 2020b9d0 branch module_hci_cmd_spp_exit_sniff ,true 
+39c4 7009d100 jam hci_not_discard_packet ,mem_module_temp_nl_discard_packet 
+39c5 204038cd call module_spp_clear_last_transmite_clock 
+39c6 6fe0c652 fetch 1 ,mem_remote_credits 
+39c7 207a0000 rtn blank 
+39c8 6fe1465d fetch 2 ,mem_nl_rx_len_all 
+39c9 243a39ce nbranch module_hci_cmd_pass_init_ng_rx_len_all ,blank 
+39ca 6fe089d0 fetch 1 ,mem_module_uart_len 
+39cb 67e1465d store 2 ,mem_nl_rx_len_all 
+39cc 67e1465b store 2 ,mem_nl_rx_data_src 
+39cd 6061465b storer contru ,2 ,mem_nl_rx_data_src 
+
+module_hci_cmd_pass_init_ng_rx_len_all:
+39ce 204039d2 call module_hci_cmd_get_current_packet_len_and_remain_len 
+39cf 2020652f branch spp_tx_rfcomm_packet 
+
+module_hci_cmd_spp_exit_sniff:
+39d0 7009d100 jam hci_not_discard_packet ,mem_module_temp_nl_discard_packet 
+39d1 20203ccf branch module_exit_sniff 
+
+module_hci_cmd_get_current_packet_len_and_remain_len:
+39d2 204039d8 call module_hci_cmd_get_current_patcket_len 
+39d3 6fe1465d fetch 2 ,mem_nl_rx_len_all 
+39d4 684947a8 fetcht 2 ,mem_current_packet_length 
+39d5 98467e00 isub temp ,pdata 
+39d6 67e1465d store 2 ,mem_nl_rx_len_all 
+39d7 20600000 rtn 
+
+module_hci_cmd_get_current_patcket_len:
+39d8 6fe1465d fetch 2 ,mem_nl_rx_len_all 
+39d9 68494656 fetcht 2 ,mem_rfcomm_max_frame_size 
+39da 20407e58 call not_greater_than 
+39db 68494648 fetcht 2 ,mem_pn_max_frame_size 
+39dc 20407e58 call not_greater_than 
+39dd 67e147a8 store 2 ,mem_current_packet_length 
+39de 20600000 rtn 
+
+module_hci_command_tx_spp_tx_complete:
+39df 7009d101 jam hci_discard_packet ,mem_module_temp_nl_discard_packet 
+39e0 7009cf05 jam hci_cmd_spp_data_req ,mem_module_uart_opcode 
+39e1 20203bfb branch module_hci_event_receive_valid_cmd 
+
+module_hci_cmd_receive_le_data:
+39e2 6fe1478b fetch 2 ,mem_ui_state_map 
+39e3 c304bbf8 bbit0 ui_state_ble_connected ,module_hci_event_receive_invalid_cmd 
+39e4 20403a33 call module_check_ble_encrypt_state 
+39e5 20343bf8 branch module_hci_event_receive_invalid_cmd ,user 
+39e6 7009d100 jam hci_not_discard_packet ,mem_module_temp_nl_discard_packet 
+39e7 6fe147c2 fetch 2 ,mem_module_flag 
+39e8 c2843a07 bbit1 module_flag_ble_data_finish ,module_hci_cmd_receive_le_data_finish 
+39e9 6fe0c7c4 fetch 1 ,mem_module_hci_notify_len 
+39ea 247a0000 nrtn blank 
+39eb 7009d101 jam hci_discard_packet ,mem_module_temp_nl_discard_packet 
+39ec efe10003 ifetch 2 ,contru 
+39ed 67e147c5 store 2 ,mem_module_hci_notify_handle 
+39ee 606147c7 storer contru ,2 ,mem_module_hci_nofiy_addr 
+39ef 6fe089d0 fetch 1 ,mem_module_uart_len 
+39f0 1fe0fffe pincrease -2 
+39f1 24213bf8 nbranch module_hci_event_receive_invalid_cmd ,positive 
+39f2 2022bbf8 branch module_hci_event_receive_invalid_cmd ,zero 
+39f3 67e0c7c4 store 1 ,mem_module_hci_notify_len 
+39f4 684947c5 fetcht 2 ,mem_module_hci_notify_handle 
+39f5 184085ff increase -1 ,temp 
+39f6 20402270 call le_att_get_handle_ptr2 
+39f7 203a3a0a branch module_hci_cmd_transmit_handle_error ,blank 
+39f8 e8420006 ifetcht 4 ,contr 
+39f9 59280302 setarg 0x01280302 
+39fa 98467c00 isub temp ,null 
+39fb 2422ba0a nbranch module_hci_cmd_transmit_handle_error ,zero 
+39fc efe08006 ifetch 1 ,contr 
+39fd 67e0c7c9 store 1 ,mem_module_hci_notify_type 
+39fe 1fe17e30 and_into 0x30 ,pdata 
+39ff 203a3a0a branch module_hci_cmd_transmit_handle_error ,blank 
+3a00 7009d100 jam hci_not_discard_packet ,mem_module_temp_nl_discard_packet 
+3a01 20402325 call le_set_config_more_data 
+3a02 20403a0e call module_hci_cmd_transmit_le_notify 
+3a03 20403a0e call module_hci_cmd_transmit_le_notify 
+3a04 20403a0e call module_hci_cmd_transmit_le_notify 
+3a05 6fe147c2 fetch 2 ,mem_module_flag 
+3a06 c4040000 rtnbit0 module_flag_ble_data_finish 
+
+module_hci_cmd_receive_le_data_finish:
+3a07 7009d101 jam hci_discard_packet ,mem_module_temp_nl_discard_packet 
+3a08 20403cf3 call module_clear_le_tx_data_flag 
+3a09 20203bfb branch module_hci_event_receive_valid_cmd 
+
+module_hci_cmd_transmit_handle_error:
+3a0a 7047c400 jam 0 ,mem_module_hci_notify_len 
+3a0b 7009d101 jam hci_discard_packet ,mem_module_temp_nl_discard_packet 
+3a0c 20403cf3 call module_clear_le_tx_data_flag 
+3a0d 20203bf8 branch module_hci_event_receive_invalid_cmd 
+
+module_hci_cmd_transmit_le_notify:
+3a0e 6fe0c7c4 fetch 1 ,mem_module_hci_notify_len 
+3a0f 207a0000 rtn blank 
+3a10 20402382 call le_fifo_check_nearly_full 
+3a11 247a0000 nrtn blank 
+3a12 20403a2e call module_get_le_remote_mtu 
+3a13 44e4c019 bpatch patch19_1 ,mem_patch19 
+3a14 6fe0c433 fetch 1 ,mem_le_l2cap_att_states 
+3a15 c3800000 rtnbit1 ble_l2cap_recv_confirmation_packet 
+3a16 1840fffd add temp ,-3 ,pdata 
+3a17 d84000fb arg 251 ,temp 
+3a18 20407e58 call not_greater_than 
+3a19 6848c7c4 fetcht 1 ,mem_module_hci_notify_len 
+3a1a 20407e58 call not_greater_than 
+3a1b 1fe22200 copy pdata ,rega 
+3a1c 18427e00 copy temp ,pdata 
+3a1d 9a267e00 isub rega ,pdata 
+3a1e 67e0c7c4 store 1 ,mem_module_hci_notify_len 
+3a1f 20403a29 call module_hci_cmd_transmit_le_notify_malloc_l2cap 
+3a20 6fe147c7 fetch 2 ,mem_module_hci_nofiy_addr 
+3a21 1fe20600 copy pdata ,contru 
+3a22 1a227200 copy rega ,loopcnt 
+3a23 20405f84 call uart_copy_rx_bytes_fast 
+3a24 18627e00 copy contru ,pdata 
+3a25 67e147c7 store 2 ,mem_module_hci_nofiy_addr 
+3a26 6fe0c7c4 fetch 1 ,mem_module_hci_notify_len 
+3a27 247a0000 nrtn blank 
+3a28 20203cf1 branch module_set_le_tx_data_flag 
+
+module_hci_cmd_transmit_le_notify_malloc_l2cap:
+3a29 684947c5 fetcht 2 ,mem_module_hci_notify_handle 
+3a2a 6fe0c7c9 fetch 1 ,mem_module_hci_notify_type 
+3a2b c282a6c6 bbit1 bit_characteristic_indicate ,le_att_malloc_tx_indication 
+3a2c c28226bd bbit1 bit_characteristic_notify ,le_att_malloc_tx_notify 
+3a2d 20600000 rtn 
+
+module_get_le_remote_mtu:
+3a2e d8400017 arg 0x17 ,temp 
+3a2f 6fe147c2 fetch 2 ,mem_module_flag 
+3a30 c3808000 rtnbit1 module_flag_ble_send_mtu23 
+3a31 68494380 fetcht 2 ,mem_le_remote_mtu 
+3a32 20600000 rtn 
+
+module_check_ble_encrypt_state:
+3a33 6fe147c2 fetch 2 ,mem_module_flag 
+3a34 c2812697 bbit1 module_flag_ble_data_encrypt ,le_check_encrypt_state 
+3a35 20207e64 branch disable_user 
+
+module_hci_cmd_inquire_status:
+3a36 20203c2d branch module_hci_event_status_res 
+
+module_hci_cmd_set_pairing_mode:
+3a37 efe08003 ifetch 1 ,contru 
+3a38 c040ba44 beq br_pairing_mode_secure_connect_justwork ,module_hci_pairing_just_work_sc 
+3a39 c0413a46 beq br_pairing_mode_secure_connect_passkey ,module_hci_pairing_passkey_sc 
+3a3a c041ba48 beq br_pairing_mode_secure_connect_numeric ,module_hci_pairing_numeric_comparison_sc 
+3a3b 1fe22200 copy pdata ,rega 
+3a3c 20406ee8 call sp_br_secure_connection_disable 
+3a3d 20407571 call sc_reset 
+3a3e 1a227e00 copy rega ,pdata 
+3a3f c0003a4a beq br_pairing_mode_pincode ,module_hci_pairing_pincode_mode 
+3a40 c000ba4d beq br_pairing_mode_justwork ,module_hci_pairing_just_work_mode 
+3a41 c0013a57 beq br_pairing_mode_passkey ,module_hci_pairing_passkey 
+3a42 c001ba59 beq br_pairing_mode_numeric ,module_hci_pairing_numeric_comparison 
+3a43 20203bf8 branch module_hci_event_receive_invalid_cmd 
+
+module_hci_pairing_just_work_sc:
+3a44 20406ee4 call sp_br_secure_connection_enable 
+3a45 20203a4d branch module_hci_pairing_just_work_mode 
+
+module_hci_pairing_passkey_sc:
+3a46 20406ee4 call sp_br_secure_connection_enable 
+3a47 20203a57 branch module_hci_pairing_passkey 
+
+module_hci_pairing_numeric_comparison_sc:
+3a48 20406ee4 call sp_br_secure_connection_enable 
+3a49 20203a59 branch module_hci_pairing_numeric_comparison 
+
+module_hci_pairing_pincode_mode:
+3a4a 20406eef call sp_reset 
+3a4b 70476300 jam 0 ,mem_ssp_enable 
+3a4c 20203bfb branch module_hci_event_receive_valid_cmd 
+
+module_hci_pairing_just_work_mode:
+3a4d 58000003 setarg io_capability_no_input_no_output 
+
+module_hci_sspairing_mode:
+3a4e 67e0c76b store 1 ,mem_ssp_mode_flag 
+3a4f 67e0c764 store 1 ,mem_lmp_io_cap_payload_iocap 
+3a50 58000000 setarg oob_data_present_not_present 
+3a51 67e0c765 store 1 ,mem_lmp_io_cap_payload_oob_auth_data 
+3a52 58000004 setarg auth_req_mitm_protection_not_required_general_bonding 
+3a53 67e0c766 store 1 ,mem_lmp_io_cap_payload_auth_req 
+3a54 20405769 call ssp_enable 
+3a55 70476301 jam 1 ,mem_ssp_enable 
+3a56 20203bfb branch module_hci_event_receive_valid_cmd 
+
+module_hci_pairing_passkey:
+3a57 58000002 setarg io_capability_keyboard_only 
+3a58 20203a4e branch module_hci_sspairing_mode 
+
+module_hci_pairing_numeric_comparison:
+3a59 58000001 setarg io_capability_display_yesno 
+3a5a 20203a4e branch module_hci_sspairing_mode 
+
+module_hci_cmd_set_pincode:
+3a5b dfe00010 arg 16 ,pdata 
+3a5c d8a04792 arg mem_pin_length ,contw 
+3a5d 20203b36 branch module_hci_cmd_receive_store_mem 
+
+module_hci_cmd_set_uart_control_mode:
+3a5e efe08003 ifetch 1 ,contru 
+3a5f 6848c7c2 fetcht 1 ,mem_module_flag 
+3a60 7d3a0400 nsetflag blank ,module_flag_uart_flow_control ,temp 
+3a61 6048c7c2 storet 1 ,mem_module_flag 
+3a62 68588060 fetcht 1 ,core_uart_ctrl 
+3a63 7d3a0404 nsetflag blank ,bit_uart_control_flow_control ,temp 
+3a64 60588060 storet 1 ,core_uart_ctrl 
+3a65 20203bfb branch module_hci_event_receive_valid_cmd 
+
+module_hci_cmd_set_uart_baud:
+3a66 6f2089d0 fetchr loopcnt ,1 ,mem_module_uart_len 
+3a67 20407dc6 call string2dec_from_uart 
+3a68 20405f17 call uart_calc_baud_rate_config 
+3a69 67e147bb store uart_baud_len ,mem_module_uarta_baud_rate 
+3a6a 20403bfb call module_hci_event_receive_valid_cmd 
+3a6b 20407e15 call wait_uarttx 
+3a6c 6fe147bb fetch uart_baud_len ,mem_module_uarta_baud_rate 
+3a6d 20205f0f branch uarta_init_baud_rate 
+
+module_hci_cmd_version_request:
+3a6e da200002 arg 2 ,rega 
+3a6f da4047a3 arg mem_soft_version_num ,regb 
+3a70 d8400000 arg 0 ,temp 
+3a71 20203c06 branch module_hci_event_set_cmd 
+
+module_hci_cmd_bt_disconnect:
+3a72 6fe1478b fetch 2 ,mem_ui_state_map 
+3a73 c3003bf8 bbit0 ui_state_bt_connected ,module_hci_event_receive_invalid_cmd 
+
+module_hci_cmd_bt_disconnect_doing:
+3a74 20403bfb call module_hci_event_receive_valid_cmd 
+3a75 202030b0 branch app_bt_disconnect 
+
+module_hci_cmd_ble_disconnect:
+3a76 6fe1478b fetch 2 ,mem_ui_state_map 
+3a77 c304bbf8 bbit0 ui_state_ble_connected ,module_hci_event_receive_invalid_cmd 
+
+module_hci_cmd_ble_disconnect_doing:
+3a78 20403bfb call module_hci_event_receive_valid_cmd 
+3a79 202030c9 branch app_ble_disconnect 
+
+module_hci_cmd_set_cod:
+3a7a 6fe089d0 fetch 1 ,mem_module_uart_len 
+3a7b c081bbf8 bne 3 ,module_hci_event_receive_invalid_cmd 
+3a7c efe18003 ifetch 3 ,contru 
+3a7d 67e1c0b2 store 3 ,mem_class 
+3a7e 20203bfb branch module_hci_event_receive_valid_cmd 
+
+module_hci_cmd_set_nvram:
+3a7f 6f2089d0 fetchr loopcnt ,1 ,mem_module_uart_len 
+3a80 6fe1448b fetch 2 ,mem_nv_data_ptr 
+3a81 1fe20a00 icopy contw 
+3a82 20405f84 call uart_copy_rx_bytes_fast 
+3a83 20203bfb branch module_hci_event_receive_valid_cmd 
+
+module_hci_cmd_confirm_gkey:
+3a84 6fe1478b fetch 2 ,mem_ui_state_map 
+3a85 c284bb5f bbit1 ui_state_ble_connected ,module_hci_cmd_le_confirm_gkey 
+3a86 c3003bf8 bbit0 ui_state_bt_connected ,module_hci_event_receive_invalid_cmd 
+3a87 efe08003 ifetch 1 ,contru 
+3a88 6848c76a fetcht 1 ,mem_flag_mode_ssp_pin 
+3a89 793a0400 setflag blank ,flag_mode_ssp_pin_comparison_result_bit ,temp 
+3a8a 79200407 set1 flag_mode_ssp_pin_reviceve_comparison_bit ,temp 
+3a8b 6048c76a storet 1 ,mem_flag_mode_ssp_pin 
+3a8c 20403bfb call module_hci_event_receive_valid_cmd 
+3a8d 6fe0c76a fetch 1 ,mem_flag_mode_ssp_pin 
+3a8e c2833a90 bbit1 flag_mode_ssp_pin_recieve_dhkey_bit ,module_hci_cmd_spp_number_comparison_result_is1 
+3a8f 20600000 rtn 
+
+module_hci_cmd_spp_number_comparison_result_is1:
+3a90 c2805641 bbit1 flag_mode_ssp_pin_comparison_result_bit ,number_comparison_successed 
+3a91 70476a00 jam 0 ,mem_flag_mode_ssp_pin 
+3a92 70095b21 jam bt_cmd_dhkey_not_accept ,mem_fifo_temp 
+3a93 202078a8 branch ui_ipc_send_cmd 
+
+module_hci_cmd_set_credit_given:
+3a94 6fe0c78b fetch 1 ,mem_ui_state_map 
+3a95 c4020000 rtnbit0 ui_state_bt_spp_conn 
+3a96 6fe0c655 fetch 1 ,mem_rfcomm_credit_flag 
+3a97 c1000000 rtneq credit_disable 
+3a98 efe08003 ifetch 1 ,contru 
+3a99 6848c653 fetcht 1 ,mem_credit_given 
+3a9a 98408400 iadd temp ,temp 
+3a9b 6048c653 storet 1 ,mem_credit_given 
+3a9c 20600000 rtn 
+
+module_hci_cmd_auto_adv:
+3a9d df200040 arg 0x40 ,loopcnt 
+3a9e d8a043e5 arg mem_le_adv_data_len ,contw 
+3a9f 20407d34 call clear_mem 
+3aa0 58000000 setarg 0 
+3aa1 67e08974 store 1 ,mem_regb 
+3aa2 1a220600 copy rega ,contru 
+
+module_hci_cmd_auto_adv_loop:
+3aa3 18627e00 copy contru ,pdata 
+3aa4 67e10978 store 2 ,mem_regc 
+3aa5 20403acb call module_hci_cmd_auto_adv_adv_analys 
+3aa6 6fe08974 fetch 1 ,mem_regb 
+3aa7 68488964 fetcht 1 ,mem_temp 
+3aa8 18408401 increase 1 ,temp 
+3aa9 9840fe00 iadd temp ,pdata 
+3aaa 67e08974 store 1 ,mem_regb 
+3aab 1fe67c1f sub pdata ,31 ,null 
+3aac 24213ab7 nbranch module_hci_cmd_auto_adv_store_scan ,positive 
+
+module_hci_cmd_auto_adv_store_adv:
+3aad 6848c3e5 fetcht 1 ,mem_le_adv_data_len 
+3aae 580043e6 setarg mem_le_adv_data 
+3aaf 9840fe00 iadd temp ,pdata 
+3ab0 67e1097d store 2 ,mem_contw 
+3ab1 68488964 fetcht 1 ,mem_temp 
+3ab2 18408401 increase 1 ,temp 
+3ab3 6fe0c3e5 fetch 1 ,mem_le_adv_data_len 
+3ab4 9840fe00 iadd temp ,pdata 
+3ab5 67e0c3e5 store 1 ,mem_le_adv_data_len 
+3ab6 20203ac0 branch module_hci_cmd_auto_adv_store_common 
+
+module_hci_cmd_auto_adv_store_scan:
+3ab7 6848c405 fetcht 1 ,mem_le_scan_data_len 
+3ab8 58004406 setarg mem_le_scan_data 
+3ab9 9840fe00 iadd temp ,pdata 
+3aba 67e1097d store 2 ,mem_contw 
+3abb 68488964 fetcht 1 ,mem_temp 
+3abc 18408401 increase 1 ,temp 
+3abd 6fe0c405 fetch 1 ,mem_le_scan_data_len 
+3abe 9840fe00 iadd temp ,pdata 
+3abf 67e0c405 store 1 ,mem_le_scan_data_len 
+
+module_hci_cmd_auto_adv_store_common:
+3ac0 6fe1097d fetch 2 ,mem_contw 
+3ac1 1fe20a00 copy pdata ,contw 
+3ac2 6fe10978 fetch 2 ,mem_regc 
+3ac3 1fe20600 copy pdata ,contru 
+3ac4 18427200 copy temp ,loopcnt 
+3ac5 20405f84 call uart_copy_rx_bytes_fast 
+3ac6 6fe089d0 fetch 1 ,mem_module_uart_len 
+3ac7 68488974 fetcht 1 ,mem_regb 
+3ac8 98467c00 isub temp ,null 
+3ac9 2422baa3 nbranch module_hci_cmd_auto_adv_loop ,zero 
+3aca 20203bfb branch module_hci_event_receive_valid_cmd 
+
+module_hci_cmd_auto_adv_adv_analys:
+3acb efe08003 ifetch 1 ,contru 
+3acc 67e08964 store 1 ,mem_temp 
+3acd efe08003 ifetch 1 ,contru 
+3ace 67e08970 store 1 ,mem_rega 
+3acf 20600000 rtn 
+
+module_hci_cmd_power_request:
+3ad0 d8400000 arg 0 ,temp 
+3ad1 da200002 arg 2 ,rega 
+3ad2 6fe147bf fetch 2 ,mem_module_vdd_quotient 
+3ad3 67e1098e store 2 ,mem_event_cmd_response_content 
+3ad4 da40098e arg mem_event_cmd_response_content ,regb 
+3ad5 20203c06 branch module_hci_event_set_cmd 
+
+module_hci_cmd_power_set:
+3ad6 6fe089d0 fetch 1 ,mem_module_uart_len 
+3ad7 c080bbf8 bne 1 ,module_hci_event_receive_invalid_cmd 
+3ad8 efe08003 ifetch 1 ,contru 
+3ad9 67e0c7bd store 1 ,mem_module_read_vdd_flag 
+3ada 58000000 setarg 0x00 
+3adb 67e147bf store 2 ,mem_module_vdd_quotient 
+3adc 20203bfb branch module_hci_event_receive_valid_cmd 
+
+module_hci_cmd_passkey_entry:
+3add 6fe089d0 fetch 1 ,mem_module_uart_len 
+3ade c0823bf8 bne 4 ,module_hci_event_receive_invalid_cmd 
+3adf 6fe1478b fetch 2 ,mem_ui_state_map 
+3ae0 c284bbc4 bbit1 ui_state_ble_connected ,module_hci_cmd_le_passkey_entry_input 
+3ae1 efe20003 ifetch 4 ,contru 
+3ae2 67e24793 store 4 ,mem_pin 
+3ae3 70479204 jam 4 ,mem_pin_length 
+3ae4 70476c00 jam 0 ,mem_authentication_passkey_times 
+3ae5 20403bfb call module_hci_event_receive_valid_cmd 
+3ae6 202055c1 branch authentication_passkey 
+
+module_hci_cmd_set_gpio:
+3ae7 6fe089d0 fetch 1 ,mem_module_uart_len 
+3ae8 c081bbf8 bne 3 ,module_hci_event_receive_invalid_cmd 
+3ae9 efe08003 ifetch 1 ,contru 
+3aea c0003aed beq hci_cmd_config_gpio_input ,module_set_gpio_input 
+3aeb c000baf3 beq hci_cmd_config_gpio_output ,module_set_gpio_output 
+3aec 20203bf8 branch module_hci_event_receive_invalid_cmd 
+
+module_set_gpio_input:
+3aed 20403bfb call module_hci_event_receive_valid_cmd 
+3aee e8408003 ifetcht 1 ,contru 
+3aef efe08003 ifetch 1 ,contru 
+3af0 c00160ce beq gpio_input_high_impedance ,gpio_set_high_impedance 
+3af1 7d3a0407 nsetflag blank ,7 ,temp 
+3af2 2020609f branch gpio_config_input 
+
+module_set_gpio_output:
+3af3 20403bfb call module_hci_event_receive_valid_cmd 
+3af4 e8408003 ifetcht 1 ,contru 
+3af5 efe08003 ifetch 1 ,contru 
+3af6 203a60b8 branch gpio_out_active ,blank 
+3af7 202060b4 branch gpio_out_inactive 
+
+module_hci_cmd_read_gpio:
+3af8 6fe089d0 fetch 1 ,mem_module_uart_len 
+3af9 c080bbf8 bne 1 ,module_hci_event_receive_invalid_cmd 
+3afa e8408003 ifetcht 1 ,contru 
+3afb 204060a8 call gpio_get_bit 
+3afc 58000000 setarg 0x0 
+3afd 7d20fe00 nsetflag true ,0 ,pdata 
+3afe da200001 arg 1 ,rega 
+3aff 67e1098e store 2 ,mem_event_cmd_response_content 
+3b00 da40098e arg mem_event_cmd_response_content ,regb 
+3b01 d8400000 arg 0 ,temp 
+3b02 20203c06 branch module_hci_event_set_cmd 
+
+module_hci_cmd_le_set_pairing_mode:
+3b03 efe08003 ifetch 1 ,contru 
+3b04 1fe20400 copy pdata ,temp 
+3b05 c040bb12 beq le_pairing_mode_secure_connect_justwork ,module_le_set_pairing_mode_secure_justwork 
+3b06 c0413b16 beq le_pairing_mode_secure_connect_numeric ,module_le_set_pairing_mode_secure_numeric 
+3b07 c041bb1b beq le_pairing_mode_secure_connect_passkey ,module_le_set_pairing_mode_secure_passkey 
+3b08 c0423b1f beq le_pairing_mode_secure_connect_passkey_res_input ,module_le_set_pairing_mode_secure_passkey_res_input 
+3b09 67e0c39b store 1 ,mem_le_pairing_mode 
+3b0a 20407571 call sc_reset 
+3b0b 20402858 call le_secure_connection_disable 
+3b0c 6fe0c39b fetch 1 ,mem_le_pairing_mode 
+3b0d c0003b23 beq le_pairing_mode_none ,module_le_set_no_pairing 
+3b0e c000bb26 beq le_pairing_mode_lagacy_justwork ,module_le_set_pairing_mode_lagacy_just_work 
+3b0f c0013b28 beq le_pairing_mode_lagacy_passkey ,module_le_set_pairing_mode_lagacy_passkey 
+3b10 c0023b2a beq le_pairing_mode_lagacy_passkey_res_input ,module_le_set_pairing_mode_lagacy_passkey_res_input 
+3b11 20203bf8 branch module_hci_event_receive_invalid_cmd 
+
+module_le_set_pairing_mode_secure_justwork:
+3b12 6048c39b storet 1 ,mem_le_pairing_mode 
+3b13 20402854 call le_secure_connection_enable 
+3b14 7043510d jam flag_le_bonding_mitm_secure ,mem_le_pres_auth 
+3b15 20203b24 branch module_le_set_noinputnooutput 
+
+module_le_set_pairing_mode_secure_numeric:
+3b16 6048c39b storet 1 ,mem_le_pairing_mode 
+3b17 20402854 call le_secure_connection_enable 
+3b18 7043510d jam flag_le_bonding_mitm_secure ,mem_le_pres_auth 
+3b19 70434f01 jam flag_iocap_displayyesno ,mem_le_pres_iocap 
+3b1a 20203bfb branch module_hci_event_receive_valid_cmd 
+
+module_le_set_pairing_mode_secure_passkey:
+3b1b 6048c39b storet 1 ,mem_le_pairing_mode 
+3b1c 20402854 call le_secure_connection_enable 
+3b1d 7043510d jam flag_le_bonding_mitm_secure ,mem_le_pres_auth 
+3b1e 20203b2e branch module_le_set_displayonly 
+
+module_le_set_pairing_mode_secure_passkey_res_input:
+3b1f 6048c39b storet 1 ,mem_le_pairing_mode 
+3b20 20402854 call le_secure_connection_enable 
+3b21 7043510d jam flag_le_bonding_mitm_secure ,mem_le_pres_auth 
+3b22 20203b2c branch module_le_set_keboadonly 
+
+module_le_set_no_pairing:
+3b23 70435100 jam flag_le_no_bonding_no_mitm ,mem_le_pres_auth 
+
+module_le_set_noinputnooutput:
+3b24 70434f03 jam flag_iocap_noinputnooutput ,mem_le_pres_iocap 
+3b25 20203bfb branch module_hci_event_receive_valid_cmd 
+
+module_le_set_pairing_mode_lagacy_just_work:
+3b26 70435101 jam flag_le_bonding_no_mitm ,mem_le_pres_auth 
+3b27 20203b24 branch module_le_set_noinputnooutput 
+
+module_le_set_pairing_mode_lagacy_passkey:
+3b28 70435105 jam flag_le_bonding_mitm ,mem_le_pres_auth 
+3b29 20203b2e branch module_le_set_displayonly 
+
+module_le_set_pairing_mode_lagacy_passkey_res_input:
+3b2a 70435105 jam flag_le_bonding_mitm ,mem_le_pres_auth 
+3b2b 20203b2c branch module_le_set_keboadonly 
+
+module_le_set_keboadonly:
+3b2c 70434f02 jam flag_iocap_keyboardonly ,mem_le_pres_iocap 
+3b2d 20203bfb branch module_hci_event_receive_valid_cmd 
+
+module_le_set_displayonly:
+3b2e 70434f00 jam flag_iocap_displayonly ,mem_le_pres_iocap 
+3b2f 20203bfb branch module_hci_event_receive_valid_cmd 
+
+module_hci_cmd_le_set_adv_data:
+3b30 dfe0001f arg 31 ,pdata 
+3b31 d8a043e5 arg mem_le_adv_data_len ,contw 
+3b32 20203b36 branch module_hci_cmd_receive_store_mem 
+
+module_hci_cmd_le_set_scan_data:
+3b33 dfe0001f arg 31 ,pdata 
+3b34 d8a04405 arg mem_le_scan_data_len ,contw 
+3b35 20203b36 branch module_hci_cmd_receive_store_mem 
+
+module_hci_cmd_receive_store_mem:
+3b36 6f2089d0 fetchr loopcnt ,1 ,mem_module_uart_len 
+3b37 9f267c00 isub loopcnt ,null 
+3b38 24213bf8 nbranch module_hci_event_receive_invalid_cmd ,positive 
+3b39 e7208005 istorer loopcnt ,1 ,contw 
+3b3a 20405f84 call uart_copy_rx_bytes_fast 
+3b3b 20203bfb branch module_hci_event_receive_valid_cmd 
+
+module_hci_cmd_le_send_conn_update_req:
+3b3c 6fe1478b fetch 2 ,mem_ui_state_map 
+3b3d c304bbf8 bbit0 ui_state_ble_connected ,module_hci_event_receive_invalid_cmd 
+3b3e 6fe089d0 fetch 1 ,mem_module_uart_len 
+3b3f c0843bf8 bne 0x08 ,module_hci_event_receive_invalid_cmd 
+3b40 efe40003 ifetch 8 ,contru 
+3b41 67e44370 store 8 ,mem_le_interval_min 
+3b42 70095b12 jam bt_cmd_le_update_conn ,mem_fifo_temp 
+3b43 204078a8 call ui_ipc_send_cmd 
+3b44 20203bfb branch module_hci_event_receive_valid_cmd 
+
+module_hci_cmd_set_le_adv_parameter:
+3b45 efe10003 ifetch 2 ,contru 
+3b46 67e14426 store 2 ,mem_le_adv_interval 
+3b47 20203bfb branch module_hci_event_receive_valid_cmd 
+
+module_hci_cmd_le_start_pairing:
+3b48 6fe0c39b fetch 1 ,mem_le_pairing_mode 
+3b49 203a3bf8 branch module_hci_event_receive_invalid_cmd ,blank 
+3b4a 6fe0c399 fetch 1 ,mem_le_pairing_state 
+3b4b c0803bf8 bne flag_le_pairing_null ,module_hci_event_receive_invalid_cmd 
+3b4c 6fe0c39a fetch 1 ,mem_le_enc_state 
+3b4d c0803bf8 bne flag_le_enc_null ,module_hci_event_receive_invalid_cmd 
+3b4e 20407955 call check_51cmd_le_smp_sec_req 
+3b4f 20203bfb branch module_hci_event_receive_valid_cmd 
+
+module_hci_cmd_set_wake_gpio:
+3b50 6fe089d0 fetch 1 ,mem_module_uart_len 
+3b51 c082bbf8 bne 5 ,module_hci_event_receive_invalid_cmd 
+3b52 efe08003 ifetch 1 ,contru 
+3b53 67e0c7ab store 1 ,mem_module_mcu_wake_pin 
+3b54 efe20003 ifetch 4 ,contru 
+3b55 67e247ac store 4 ,mem_module_mcu_wake_delay_us 
+3b56 6848c7ab fetcht 1 ,mem_module_mcu_wake_pin 
+3b57 204060b8 call gpio_config_output 
+3b58 20403cbc call module_set_mcu_wake_pin_low 
+3b59 20203bfb branch module_hci_event_receive_valid_cmd 
+
+module_hci_cmd_set_tx_power:
+3b5a 6fe089d0 fetch 1 ,mem_module_uart_len 
+3b5b c080bbf8 bne 0x01 ,module_hci_event_receive_invalid_cmd 
+3b5c efe08003 ifetch 1 ,contru 
+3b5d 67e0c1eb store 1 ,mem_tx_power 
+3b5e 20203bfb branch module_hci_event_receive_valid_cmd 
+
+module_hci_cmd_le_confirm_gkey:
+3b5f efe08003 ifetch 1 ,contru 
+3b60 c000bb68 beq 0x01 ,module_hci_cmd_le_confirm_gkey_fail 
+3b61 6fe0c397 fetch 1 ,mem_le_secure_connect_state 
+3b62 c001bb66 beq le_sc_stat_send_public_key ,module_hci_cmd_le_confirm_gkey_ok 
+3b63 c0033b66 beq le_sc_stat_receive_dhkey ,module_hci_cmd_le_confirm_gkey_ok 
+3b64 c003bb66 beq le_sc_stat_wait_confirm_gkey ,module_hci_cmd_le_confirm_gkey_ok 
+3b65 20203bf8 branch module_hci_event_receive_invalid_cmd 
+
+module_hci_cmd_le_confirm_gkey_ok:
+3b66 70439801 jam flag_le_sc_confrim_gkey_ok ,mem_le_sc_confirm_gkey_flag 
+3b67 20203bfb branch module_hci_event_receive_valid_cmd 
+
+module_hci_cmd_le_confirm_gkey_fail:
+3b68 204028be call le_send_pairing_confirm_value_failed 
+3b69 20203bfb branch module_hci_event_receive_valid_cmd 
+
+module_hci_cmd_set_reject_justwork_flag:
+3b6a 6fe089d0 fetch 1 ,mem_module_uart_len 
+3b6b c080bbf8 bne 0x01 ,module_hci_event_receive_invalid_cmd 
+3b6c 20403bfb call module_hci_event_receive_valid_cmd 
+3b6d efe08003 ifetch 1 ,contru 
+3b6e 203a579d branch classic_bt_clr_reject_justwork_flag ,blank 
+3b6f 2020579b branch classic_bt_set_reject_justwork_flag 
+
+module_hci_cmd_reset_chip:
+3b70 20403bfb call module_hci_event_receive_valid_cmd 
+3b71 20407e15 call wait_uarttx 
+3b72 70801001 jam 0x01 ,core_reset 
+3b73 20201321 branch loop 
+
+module_hci_cmd_le_set_fixed_passkey:
+3b74 6fe089d0 fetch 1 ,mem_module_uart_len 
+3b75 c0003bf8 beq 0 ,module_hci_event_receive_invalid_cmd 
+3b76 efe08003 ifetch 1 ,contru 
+3b77 203a3b81 branch module_hci_cmd_le_set_random_passkey ,blank 
+3b78 6fe089d0 fetch 1 ,mem_module_uart_len 
+3b79 c082bbf8 bne 5 ,module_hci_event_receive_invalid_cmd 
+3b7a efe20003 ifetch 4 ,contru 
+3b7b d84f4240 arg 1000000 ,temp 
+3b7c 98467c00 isub temp ,null 
+3b7d 20213bf8 branch module_hci_event_receive_invalid_cmd ,positive 
+3b7e 67e2439c store 4 ,mem_le_tk 
+3b7f 2040231d call le_set_config_fixed_tk 
+3b80 20203bfb branch module_hci_event_receive_valid_cmd 
+
+module_hci_cmd_le_set_random_passkey:
+3b81 2040231f call le_clr_config_fixed_tk 
+3b82 20203bfb branch module_hci_event_receive_valid_cmd 
+
+module_hci_cmd_delete_customize_service:
+3b83 e8410003 ifetcht 2 ,contru 
+3b84 20402270 call le_att_get_handle_ptr2 
+3b85 18c08bfe add contr ,-2 ,contw 
+3b86 58000000 setarg 0x0000 
+3b87 e7e10005 istore 2 ,contw 
+3b88 20203bfb branch module_hci_event_receive_valid_cmd 
+
+module_hci_cmd_add_service_uuid:
+3b89 20403b92 call module_hci_cmd_add_service_uuid_set_uuid 
+3b8a 20403bc0 call uart_copy_rx_bytes_len_data 
+3b8b 58000000 setarg 0x0000 
+3b8c e7e10005 istore 2 ,contw 
+3b8d 20203c8e branch module_hci_event_uuid_handle 
+
+module_hci_cmd_add_characteristic_uuid:
+3b8e efe08003 ifetch 1 ,contru 
+3b8f 20403b96 call module_hci_cmd_add_characteristic_uuid_set_handle 
+3b90 20403b9d call module_hci_cmd_add_characteristic_uuid_set_uuid 
+3b91 20203c8e branch module_hci_event_uuid_handle 
+
+module_hci_cmd_add_service_uuid_set_uuid:
+3b92 20403bbd call le_att_creat_new_handle 
+3b93 58280002 setarg 0x280002 
+3b94 e7e18005 istore 3 ,contw 
+3b95 20600000 rtn 
+
+module_hci_cmd_add_characteristic_uuid_set_handle:
+3b96 67e0895c store 1 ,mem_pdatatemp 
+3b97 20403bbd call le_att_creat_new_handle 
+3b98 59280302 setarg 0x01280302 
+3b99 e7e20005 istore 4 ,contw 
+3b9a 6fe0895c fetch 1 ,mem_pdatatemp 
+3b9b e7e18005 istore 3 ,contw 
+3b9c 20600000 rtn 
+
+module_hci_cmd_add_characteristic_uuid_set_uuid:
+3b9d 2040228f call le_att_get_last_handle 
+3b9e efe08003 ifetch 1 ,contru 
+3b9f 1fe1721f and pdata ,0x1f ,loopcnt 
+3ba0 1fe22200 copy pdata ,rega 
+3ba1 2a2ffe07 isolate1 bit_of_write_authenticated ,rega 
+3ba2 7920840f setflag true ,bit_of_att_handle_write_authenticated ,temp 
+3ba3 2a2ffe06 isolate1 bit_of_read_authenticated ,rega 
+3ba4 7920840e setflag true ,bit_of_att_handle_read_authenticated ,temp 
+3ba5 e0410005 istoret 2 ,contw 
+3ba6 1f227e00 copy loopcnt ,pdata 
+3ba7 e7e08005 istore 1 ,contw 
+3ba8 20405f98 call uart_copy_rx_bytes 
+3ba9 20403bc0 call uart_copy_rx_bytes_len_data 
+3baa 58000000 setarg 0 
+3bab e7e10005 istore 2 ,contw 
+3bac 184104ff and temp ,0xff ,temp 
+3bad 184085ff increase -1 ,temp 
+3bae 20402270 call le_att_get_handle_ptr2 
+3baf 18c08c04 add contr ,4 ,contr 
+3bb0 efe08006 ifetch 1 ,contr 
+3bb1 c2823bb5 bbit1 bit_characteristic_notify ,module_hci_cmd_add_characteristic_uuid_set_ccc_uuid 
+3bb2 c282bbb5 bbit1 bit_characteristic_indicate ,module_hci_cmd_add_characteristic_uuid_set_ccc_uuid 
+3bb3 18408401 increase 1 ,temp 
+3bb4 20600000 rtn 
+
+module_hci_cmd_add_characteristic_uuid_set_ccc_uuid:
+3bb5 2040228f call le_att_get_last_handle 
+3bb6 2a2ffe05 isolate1 bit_of_notify_authenticated ,rega 
+3bb7 7920840f setflag true ,bit_of_att_handle_write_authenticated ,temp 
+3bb8 e0410005 istoret 2 ,contw 
+3bb9 5a290202 setarg 0x02290202 
+3bba e7e40005 istore 8 ,contw 
+3bbb 184085ff increase -1 ,temp 
+3bbc 20600000 rtn 
+
+le_att_creat_new_handle:
+3bbd 2040228f call le_att_get_last_handle 
+3bbe e0410005 istoret 2 ,contw 
+3bbf 20600000 rtn 
+
+uart_copy_rx_bytes_len_data:
+3bc0 efe08003 ifetch 1 ,contru 
+3bc1 1fe27200 copy pdata ,loopcnt 
+3bc2 e7e08005 istore 1 ,contw 
+3bc3 20205f98 branch uart_copy_rx_bytes 
+
+module_hci_cmd_le_passkey_entry_input:
+3bc4 6fe0c399 fetch 1 ,mem_le_pairing_state 
+3bc5 c082bbf8 bne flag_le_pairing_receive_pairing_confirm ,module_hci_event_receive_invalid_cmd 
+3bc6 6fe0c39b fetch 1 ,mem_le_pairing_mode 
+3bc7 c0023bd0 beq le_pairing_mode_lagacy_passkey_res_input ,module_hci_cmd_passkey_entry_res_input 
+3bc8 c0423bca beq le_pairing_mode_secure_connect_passkey_res_input ,module_hci_cmd_passkey_entry_sc_res_input 
+3bc9 20203bf8 branch module_hci_event_receive_invalid_cmd 
+
+module_hci_cmd_passkey_entry_sc_res_input:
+3bca 70439602 jam le_sp_flag_commit_256 ,mem_le_secure_connect_flag 
+3bcb 70439708 jam le_sc_stat_passkey_wait_confirm ,mem_le_secure_connect_state 
+3bcc 20203bcd branch module_hci_cmd_receive_ble_passkey 
+
+module_hci_cmd_receive_ble_passkey:
+3bcd efe20003 ifetch 4 ,contru 
+3bce 67e2439c store 4 ,mem_le_tk 
+3bcf 20203bfb branch module_hci_event_receive_valid_cmd 
+
+module_hci_cmd_passkey_entry_res_input:
+3bd0 20403bcd call module_hci_cmd_receive_ble_passkey 
+3bd1 202028a7 branch le_send_smp_pairing_confirm 
+
+module_hci_cmd_ble_set_phy:
+3bd2 6fe089d0 fetch 1 ,mem_module_uart_len 
+3bd3 c0813bf8 bne 2 ,module_hci_event_receive_invalid_cmd 
+3bd4 e8410003 ifetcht 2 ,contru 
+3bd5 20402387 call le_set_phys 
+3bd6 20203bfb branch module_hci_event_receive_valid_cmd 
+
+module_hci_cmd_ble_read_current_phy:
+3bd7 d8400000 arg 0 ,temp 
+3bd8 da200002 arg 2 ,rega 
+3bd9 da404075 arg mem_context + coffset_le_rx_phy ,regb 
+3bda 20203c06 branch module_hci_event_set_cmd 
+
+module_hci_cmd_ble_set_dle:
+3bdb 6fe089d0 fetch 1 ,mem_module_uart_len 
+3bdc c0843bf8 bne 8 ,module_hci_event_receive_invalid_cmd 
+3bdd efe40003 ifetch 8 ,contru 
+3bde 20402385 call le_set_dle 
+3bdf 20203bfb branch module_hci_event_receive_valid_cmd 
+
+module_hci_cmd_read_chip_data:
+3be0 ea208003 ifetchr rega ,1 ,contru 
+3be1 ea410003 ifetchr regb ,2 ,contru 
+3be2 d8400000 arg 0 ,temp 
+3be3 20203c06 branch module_hci_event_set_cmd 
+
+module_hci_cmd_write_chip_data:
+3be4 6f2089d0 fetchr loopcnt ,1 ,mem_module_uart_len 
+3be5 1f20f3fe increase -2 ,loopcnt 
+3be6 efe10003 ifetch 2 ,contru 
+3be7 1fe20a00 copy pdata ,contw 
+3be8 20405f84 call uart_copy_rx_bytes_fast 
+3be9 20203bfb branch module_hci_event_receive_valid_cmd 
+
+module_hci_cmd_wechat_send_data:
+3bea 6fe1478b fetch 2 ,mem_ui_state_map 
+3beb c304bbf8 bbit0 ui_state_ble_connected ,module_hci_event_receive_invalid_cmd 
+3bec 6f2089d0 fetchr loopcnt ,1 ,mem_module_uart_len 
+3bed d8a00c0a arg mem_module_wechat_local_data_buffer ,contw 
+3bee 20405f84 call uart_copy_rx_bytes_fast 
+3bef 6a4089d0 fetchr regb ,1 ,mem_module_uart_len 
+3bf0 da200c0a arg mem_module_wechat_local_data_buffer ,rega 
+3bf1 20402808 call wechat_air_sync_send_wechat_packet 
+3bf2 7009d100 jam hci_not_discard_packet ,mem_module_temp_nl_discard_packet 
+3bf3 20740000 rtn user 
+3bf4 7009d101 jam hci_discard_packet ,mem_module_temp_nl_discard_packet 
+3bf5 20203bfb branch module_hci_event_receive_valid_cmd 
+
+module_hci_cmd_close_lpm:
+3bf6 70409900 jam 0 ,mem_lpm_mode 
+3bf7 20203bfb branch module_hci_event_receive_valid_cmd 
+
+module_hci_event_receive_invalid_cmd:
+3bf8 d8400001 arg 1 ,temp 
+3bf9 da200000 arg 0 ,rega 
+3bfa 20203c06 branch module_hci_event_set_cmd 
+
+module_hci_event_receive_valid_cmd:
+3bfb d8400000 arg 0 ,temp 
+3bfc da200000 arg 0 ,rega 
+3bfd 20203c06 branch module_hci_event_set_cmd 
+
+module_hci_event_spp_connect:
+3bfe 7009cf00 jam hci_event_spp_conn_rep ,mem_module_uart_opcode 
+3bff 20203c2a branch module_hci_event_enter_standby_mode_len0 
+
+module_hci_event_le_connect:
+3c00 7009cf02 jam hci_event_le_conn_rep ,mem_module_uart_opcode 
+3c01 20203c2a branch module_hci_event_enter_standby_mode_len0 
+
+module_hci_event_spp_disconnect:
+3c02 7009cf03 jam hci_event_spp_dis_rep ,mem_module_uart_opcode 
+3c03 20203c2a branch module_hci_event_enter_standby_mode_len0 
+
+module_hci_event_le_disconnect:
+3c04 7009cf05 jam hci_event_le_dis_rep ,mem_module_uart_opcode 
+3c05 20203c2a branch module_hci_event_enter_standby_mode_len0 
+
+module_hci_event_set_cmd:
+3c06 6fe089cf fetch 1 ,mem_module_uart_opcode 
+3c07 1fe22600 copy pdata ,regc 
+3c08 7009cf06 jam hci_event_cmd_res ,mem_module_uart_opcode 
+3c09 58000002 setarg 2 
+3c0a 9a20fe00 iadd rega ,pdata 
+3c0b 20403ca5 call module_hci_prepare_tx 
+3c0c 1a627e00 copy regc ,pdata 
+3c0d e7e08003 istore 1 ,contwu 
+3c0e e0408003 istoret 1 ,contwu 
+3c0f 1a227200 copy rega ,loopcnt 
+3c10 1a420c00 copy regb ,contr 
+3c11 20405f7e call uart_copy_tx_bytes 
+3c12 20203caf branch module_hci_transmit_tx 
+
+module_hci_event_receive_spp_data:
+3c13 204038cd call module_spp_clear_last_transmite_clock 
+3c14 7009cf07 jam hci_event_spp_data_rep ,mem_module_uart_opcode 
+3c15 6fe083d2 fetch 1 ,mem_current_length 
+3c16 207a0000 rtn blank 
+3c17 20403ca5 call module_hci_prepare_tx 
+3c18 6fe083d2 fetch 1 ,mem_current_length 
+3c19 1fe27200 copy pdata ,loopcnt 
+3c1a 6fe103d4 fetch 2 ,mem_rfcomm_uih_payload_ptr 
+3c1b 1fe20c00 copy pdata ,contr 
+3c1c 20405f6a call uart_copy_tx_bytes_fast 
+3c1d 20203caf branch module_hci_transmit_tx 
+
+module_hci_event_receive_le_data:
+3c1e 7009cf08 jam hci_event_le_data_rep ,mem_module_uart_opcode 
+3c1f 1f20fe02 add loopcnt ,2 ,pdata 
+3c20 20403ca5 call module_hci_prepare_tx 
+3c21 6fe109fa fetch 2 ,mem_module_le_rx_data_handle 
+3c22 e7e10003 istore 2 ,contwu 
+3c23 6fe109f8 fetch 2 ,mem_module_le_rx_data_address 
+3c24 1fe20c00 icopy contr 
+3c25 20405f6a call uart_copy_tx_bytes_fast 
+3c26 18c27e00 copy contr ,pdata 
+3c27 67e109f8 store 2 ,mem_module_le_rx_data_address 
+3c28 20203caf branch module_hci_transmit_tx 
+
+module_hci_event_enter_standby_mode:
+3c29 7009cf09 jam hci_event_standby_rep ,mem_module_uart_opcode 
+
+module_hci_event_enter_standby_mode_len0:
+3c2a 58000000 setarg 0 
+3c2b 20403ca5 call module_hci_prepare_tx 
+3c2c 20203caf branch module_hci_transmit_tx 
+
+module_hci_event_status_res:
+3c2d 7009cf0a jam hci_event_status_res ,mem_module_uart_opcode 
+3c2e 58000001 setarg 1 
+3c2f 20403ca5 call module_hci_prepare_tx 
+3c30 20403c3e call module_hci_read_bt_status 
+3c31 6fe1478b fetch 2 ,mem_ui_state_map 
+3c32 d8e00002 arg ui_state_bt_hid_conn ,queue 
+3c33 afefffff qisolate1 pdata 
+3c34 79208403 setflag true ,3 ,temp 
+3c35 d8e00009 arg ui_state_ble_connected ,queue 
+3c36 afefffff qisolate1 pdata 
+3c37 79208405 setflag true ,5 ,temp 
+3c38 6fe0c78b fetch 1 ,mem_ui_state_map 
+3c39 d8e00004 arg ui_state_bt_spp_conn ,queue 
+3c3a afefffff qisolate1 pdata 
+3c3b 79208404 setflag true ,4 ,temp 
+3c3c e0408003 istoret 1 ,contwu 
+3c3d 20203caf branch module_hci_transmit_tx 
+
+module_hci_read_bt_status:
+3c3e d8400000 arg 0 ,temp 
+3c3f 6fe0c09b fetch 1 ,mem_scan_mode 
+3c40 d8e00000 arg inq_scan_mode ,queue 
+3c41 afefffff qisolate1 pdata 
+3c42 79208400 setflag true ,0 ,temp 
+3c43 d8e00001 arg page_scan_mode ,queue 
+3c44 afefffff qisolate1 pdata 
+3c45 79208401 setflag true ,1 ,temp 
+3c46 6fe0c425 fetch 1 ,mem_le_adv_enable 
+3c47 d8e00000 arg 0 ,queue 
+3c48 afefffff qisolate1 pdata 
+3c49 79208402 setflag true ,2 ,temp 
+3c4a 20600000 rtn 
+
+module_hci_event_store_device:
+3c4b 7009cf0d jam hci_event_nvram_rep ,mem_module_uart_opcode 
+3c4c 6fe0c48d fetch 1 ,mem_nv_data_number 
+3c4d 1feffe22 mul32 pdata ,34 ,pdata 
+3c4e 1fe27200 icopy loopcnt 
+3c4f 20403ca5 call module_hci_prepare_tx 
+3c50 6fe1448b fetch 2 ,mem_nv_data_ptr 
+3c51 1fe20c00 icopy contr 
+3c52 20405f6a call uart_copy_tx_bytes_fast 
+3c53 20203caf branch module_hci_transmit_tx 
+
+module_hci_event_gkey_generate:
+3c54 7009cf0e jam hci_event_gkey ,mem_module_uart_opcode 
+3c55 58000004 setarg 4 
+3c56 20403ca5 call module_hci_prepare_tx 
+3c57 6fe2087c fetch 4 ,mem_gkey 
+3c58 e7e20003 istore 4 ,contwu 
+3c59 20203caf branch module_hci_transmit_tx 
+
+module_hci_event_invalid_packet:
+3c5a 7009cf0f jam hci_event_invalid_packet ,mem_module_uart_opcode 
+3c5b 6ff10112 fetch 2 ,core_uart_rxitems 
+3c5c d8400040 arg 0x40 ,temp 
+3c5d 20407e58 call not_greater_than 
+3c5e 1fe22200 copy pdata ,rega 
+3c5f 1fe27200 copy pdata ,loopcnt 
+3c60 20405f42 call uarta_prepare_rx 
+3c61 d8a0098e arg mem_module_rx_error_data_buffer ,contw 
+3c62 20405f84 call uart_copy_rx_bytes_fast 
+3c63 1a227e00 copy rega ,pdata 
+3c64 1a227200 copy rega ,loopcnt 
+3c65 20403ca5 call module_hci_prepare_tx 
+3c66 d8c0098e arg mem_module_rx_error_data_buffer ,contr 
+3c67 20405f6a call uart_copy_tx_bytes_fast 
+3c68 20203caf branch module_hci_transmit_tx 
+
+module_hci_event_passkey_entry_mode:
+3c69 7009cf10 jam hci_event_get_passkey ,mem_module_uart_opcode 
+3c6a 20203c2a branch module_hci_event_enter_standby_mode_len0 
+
+module_hci_event_le_tk:
+3c6b 7009cf11 jam hci_event_le_tk ,mem_module_uart_opcode 
+3c6c 58000004 setarg 4 
+3c6d 20403ca5 call module_hci_prepare_tx 
+3c6e 6fe2439c fetch 4 ,mem_le_tk 
+3c6f e7e20003 istore 4 ,contwu 
+3c70 20203caf branch module_hci_transmit_tx 
+
+module_hci_event_le_pairing_fail:
+3c71 da200180 arg flag_ble_pairing_fail ,rega 
+3c72 20203c78 branch module_hci_event_pairing_completed 
+
+module_hci_event_le_pairing_success:
+3c73 da200080 arg flag_ble_pairing_success ,rega 
+3c74 20203c78 branch module_hci_event_pairing_completed 
+
+module_hci_event_bt_pairing_fail:
+3c75 da200101 arg flag_bt_pairing_fail ,rega 
+3c76 20203c78 branch module_hci_event_pairing_completed 
+
+module_hci_event_bt_pairing_success:
+3c77 da200001 arg flag_bt_pairing_success ,rega 
+
+module_hci_event_pairing_completed:
+3c78 70476a00 jam 0 ,mem_flag_mode_ssp_pin 
+3c79 7009cf14 jam hci_event_le_pairing_state ,mem_module_uart_opcode 
+3c7a 58000002 setarg 2 
+3c7b 20403ca5 call module_hci_prepare_tx 
+3c7c 1a227e00 copy rega ,pdata 
+3c7d e7e10003 istore 2 ,contwu 
+3c7e 20203caf branch module_hci_transmit_tx 
+
+module_hci_event_pause_enc:
+3c7f da600000 arg flag_event_pause_enc ,regc 
+3c80 20203c82 branch module_hci_event_enc 
+
+module_hci_event_start_enc:
+3c81 da600001 arg flag_event_start_enc ,regc 
+
+module_hci_event_enc:
+3c82 7009cf15 jam hci_event_le_encryption_state ,mem_module_uart_opcode 
+3c83 58000001 setarg 1 
+3c84 20403ca5 call module_hci_prepare_tx 
+3c85 1a627e00 copy regc ,pdata 
+3c86 e7e08003 istore 1 ,contwu 
+3c87 20203caf branch module_hci_transmit_tx 
+
+module_hci_event_le_gkey:
+3c88 7009cf1d jam hci_event_le_gkey ,mem_module_uart_opcode 
+3c89 58000004 setarg 4 
+3c8a 20403ca5 call module_hci_prepare_tx 
+3c8b 6fe2087c fetch 4 ,mem_gkey 
+3c8c e7e20003 istore 4 ,contwu 
+3c8d 20203caf branch module_hci_transmit_tx 
+
+module_hci_event_uuid_handle:
+3c8e 60490964 storet 2 ,mem_temp 
+3c8f 7009cf29 jam hci_event_uuid_handle ,mem_module_uart_opcode 
+3c90 58000002 setarg 2 
+3c91 20403ca5 call module_hci_prepare_tx 
+3c92 68490964 fetcht 2 ,mem_temp 
+3c93 e0410003 istoret 2 ,contwu 
+3c94 20203caf branch module_hci_transmit_tx 
+
+module_hci_event_le_input_passkey:
+3c95 7009cf2b jam hci_event_le_input_gkey ,mem_module_uart_opcode 
+3c96 20203c2a branch module_hci_event_enter_standby_mode_len0 
+
+module_hci_event_le_update_phy:
+3c97 7009cf40 jam hci_ble_update_phy_event ,mem_module_uart_opcode 
+3c98 58000002 setarg 2 
+3c99 20403ca5 call module_hci_prepare_tx 
+3c9a 6fe14075 fetch 2 ,mem_context + coffset_le_rx_phy 
+3c9b e7e10003 istore 2 ,contwu 
+3c9c 20203caf branch module_hci_transmit_tx 
+
+module_wechat_rx_push_data:
+
+module_hci_event_ble_wechat_receive_push_data:
+3c9d 204027a7 call wechat_air_sync_check_push_data_struct 
+3c9e 24740000 nrtn user 
+3c9f 7009cf41 jam hci_ble_wechat_receive_push_data ,mem_module_uart_opcode 
+3ca0 1f227e00 copy loopcnt ,pdata 
+3ca1 20403ca5 call module_hci_prepare_tx 
+3ca2 1a620c00 copy regc ,contr 
+3ca3 20405f6a call uart_copy_tx_bytes_fast 
+3ca4 20203caf branch module_hci_transmit_tx 
+
+module_hci_prepare_tx:
+3ca5 7009ce02 jam 0x02 ,mem_module_uart_cmd 
+3ca6 67e089d0 store 1 ,mem_module_uart_len 
+3ca7 604c0964 storet 8 ,mem_temp 
+3ca8 44e54019 bpatch patch19_2 ,mem_patch19 
+3ca9 20403cb1 call module_set_mcu_wake_pin_high_delay 
+3caa 684c0964 fetcht 8 ,mem_temp 
+3cab 20405f5a call uarta_prepare_tx_register_push 
+3cac 6fe189ce fetch 3 ,mem_module_uart_cmd 
+3cad e7e18003 istore 3 ,contwu 
+3cae 20600000 rtn 
+
+module_hci_transmit_tx:
+3caf 44e5c019 bpatch patch19_3 ,mem_patch19 
+3cb0 20205f5e branch uarta_send_register_pop 
+
+module_set_mcu_wake_pin_high_delay:
+3cb1 20403cba call module_check_mcu_wake_pin_high 
+3cb2 20608000 rtn true 
+
+module_set_mcu_wake_pin_h_delay:
+3cb3 20403cb8 call module_set_mcu_wake_pin_high 
+3cb4 6fe247ac fetch 4 ,mem_module_mcu_wake_delay_us 
+3cb5 1feb7e00 rshift2 pdata ,pdata 
+3cb6 207a0000 rtn blank 
+3cb7 20207d1c branch delay 
+
+module_set_mcu_wake_pin_high:
+3cb8 6848c7ab fetcht 1 ,mem_module_mcu_wake_pin 
+3cb9 202060b8 branch gpio_out_active 
+
+module_check_mcu_wake_pin_high:
+3cba 6848c7ab fetcht 1 ,mem_module_mcu_wake_pin 
+3cbb 202060c3 branch gpio_check_active 
+
+module_set_mcu_wake_pin_low:
+3cbc 6848c7ab fetcht 1 ,mem_module_mcu_wake_pin 
+3cbd 202060b4 branch gpio_out_inactive 
+
+module_le_receive_data:
+3cbe 622109f8 storer rega ,2 ,mem_module_le_rx_data_address 
+3cbf 624109f6 storer regb ,2 ,mem_module_le_rx_data_len 
+3cc0 6fe14435 fetch 2 ,mem_le_att_handle 
+3cc1 67e109fa store 2 ,mem_module_le_rx_data_handle 
+3cc2 20403a33 call module_check_ble_encrypt_state 
+3cc3 20740000 rtn user 
+
+module_le_receive_data_ok:
+3cc4 684909f6 fetcht 2 ,mem_module_le_rx_data_len 
+3cc5 6fe0c7c1 fetch 1 ,mem_module_ble_data_uart_max_length 
+3cc6 20407e58 call not_greater_than 
+3cc7 1fe27200 copy pdata ,loopcnt 
+3cc8 18427e00 copy temp ,pdata 
+3cc9 9f267e00 isub loopcnt ,pdata 
+3cca 67e109f6 store 2 ,mem_module_le_rx_data_len 
+3ccb 20403c1e call module_hci_event_receive_le_data 
+3ccc 6fe109f6 fetch 2 ,mem_module_le_rx_data_len 
+3ccd 207a0000 rtn blank 
+3cce 20203cc4 branch module_le_receive_data_ok 
+
+module_exit_sniff:
+3ccf 6fe147c2 fetch 2 ,mem_module_flag 
+3cd0 c3848000 rtnbit1 moudle_task_unsniff 
+3cd1 20403ced call module_set_unsniff_task_flag 
+3cd2 202030d3 branch app_bt_sniff_exit 
+
+module_set_lpm_mult_2:
+3cd3 70417a02 jam 2 ,mem_lpm_mult 
+3cd4 20600000 rtn 
+
+module_bb_event_timer:
+3cd5 20203cd6 branch module_read_vdd_timer 
+
+module_read_vdd_timer:
+3cd6 6fe0c7bd fetch 1 ,mem_module_read_vdd_flag 
+3cd7 207a0000 rtn blank 
+3cd8 6fe0c7be fetch 1 ,mem_module_read_vdd_count 
+3cd9 207a0000 rtn blank 
+3cda 1fe0ffff increase -1 ,pdata 
+3cdb 67e0c7be store 1 ,mem_module_read_vdd_count 
+3cdc 247a0000 nrtn blank 
+3cdd 7047be0a jam flag_module_read_vdd_count ,mem_module_read_vdd_count 
+3cde 2040612e call adc_set_mode 
+3cdf 20406147 call vdd_calculate_by_mode 
+3ce0 1fe6fc64 div pdata ,0x64 
+3ce1 20407dfa call get_div_result 
+3ce2 18070400 remainder temp 
+3ce3 67e0c7bf store 1 ,mem_module_vdd_quotient 
+3ce4 6048c7c0 storet 1 ,mem_module_vdd_remainder 
+3ce5 20600000 rtn 
+
+module_control_air_flow:
+3ce6 20407e2f call check_uart_tx_buff 
+3ce7 202130a0 branch app_l2cap_flow_control_enable ,positive 
+3ce8 202030a2 branch app_l2cap_flow_control_disable 
+
+module_set_sniff_task_flag:
+3ce9 d8e0000a arg moudle_task_sniff ,queue 
+3cea 20203cf9 branch module_set_state 
+
+module_clear_sniff_task_flag:
+3ceb d8e0000a arg moudle_task_sniff ,queue 
+3cec 20203cf5 branch module_clr_state 
+
+module_set_unsniff_task_flag:
+3ced d8e00009 arg moudle_task_unsniff ,queue 
+3cee 20203cf9 branch module_set_state 
+
+module_clear_unsniff_task_flag:
+3cef d8e00009 arg moudle_task_unsniff ,queue 
+3cf0 20203cf5 branch module_clr_state 
+
+module_set_le_tx_data_flag:
+3cf1 d8e00008 arg module_flag_ble_data_finish ,queue 
+3cf2 20203cf9 branch module_set_state 
+
+module_clear_le_tx_data_flag:
+3cf3 d8e00008 arg module_flag_ble_data_finish ,queue 
+3cf4 20203cf5 branch module_clr_state 
+
+module_clr_state:
+3cf5 6fe147c2 fetch 2 ,mem_module_flag 
+3cf6 f93ffe00 qset0 pdata 
+3cf7 67e147c2 store 2 ,mem_module_flag 
+3cf8 20600000 rtn 
+
+module_set_state:
+3cf9 6fe147c2 fetch 2 ,mem_module_flag 
+3cfa f9207e00 qset1 pdata 
+3cfb 67e147c2 store 2 ,mem_module_flag 
+3cfc 20600000 rtn 
+
+mouse_init:
+3cfd 20403d2d call mouse_setting_config 
+3cfe 20405aed call spi_ncs_enable 
+3cff 204041a3 call mouse_init_sunt 
+3d00 2040409c call mouse_dpi_config 
+3d01 20405aef call spi_ncs_disable 
+3d02 20758000 rtn wake 
+3d03 20403db2 call mouse_usb_check_enable 
+3d04 2040473f call mouse_drawing_optima_init 
+3d05 20403d0c call mouse_cb_fuction 
+3d06 6fe0c8fd fetch 1 ,mem_usb_addr 
+3d07 c3838000 rtnbit1 7 
+
+mouse_init_wireless:
+3d08 6fe1478b fetch 2 ,mem_ui_state_map 
+3d09 c2864591 bbit1 ui_state_btn_down ,mouse_start_discovery 
+3d0a 204046d7 call mouse_check_select_device_by_switch 
+3d0b 20203d79 branch mouse_start_work 
+
+mouse_cb_fuction:
+3d0c 58004861 setarg mouse_24g_package_data 
+3d0d 67e14889 store 2 ,mem_cb_24g_transmit_data 
+3d0e 58004895 setarg mouse_24g_search_dongle 
+3d0f 67e1488b store 2 ,mem_cb_24g_search_receiver 
+
+mouse_cb_fuction2:
+3d10 58003e63 setarg mouse_lpm_before_common 
+3d11 67e1488d store 2 ,mem_cb_24g_lpm_before 
+3d12 580043d9 setarg mouse_le 
+3d13 67e14461 store 2 ,mem_cb_le_process 
+3d14 58004495 setarg mouse_bt 
+3d15 67e14463 store 2 ,mem_cb_bt_process 
+3d16 58003e5f setarg mouse_process_lpm_before 
+3d17 67e1445f store 2 ,mem_cb_before_lpm 
+3d18 5800436d setarg mouse_priority_bb_event 
+3d19 67e14467 store 2 ,mem_cb_bb_event_process 
+3d1a 5800468b setarg mouse_idle 
+3d1b 67e14465 store 2 ,mem_cb_idle_process 
+3d1c 58003e4c setarg mouse_before_hibernate 
+3d1d 67e1445d store 2 ,mem_cb_before_hibernate 
+3d1e 580043c2 setarg mouse_le_bb_event_connect_complete 
+3d1f 67e1446b store 2 ,mem_cb_att_write 
+3d20 580044f3 setarg mouse_bb_event_timer 
+3d21 67e1446f store 2 ,mem_cb_event_timer 
+3d22 58003f76 setarg mouse_spi_write_flash_cb 
+3d23 67e14473 store 2 ,mem_cb_spi_flash_write_complate 
+3d24 58003e3c setarg mouse_lpm_check_wake_lock 
+3d25 67e1445b store 2 ,mem_cb_check_wakelock 
+3d26 5800499b setarg mouse_le_transmit 
+3d27 67e1446d store 2 ,mem_cb_ble_transmit 
+3d28 5800499e setarg mouse_bt_slave_match 
+3d29 67e14477 store 2 ,mem_cb_bt_slave_match 
+3d2a 580049b1 setarg mouse_set_lpm_mult 
+3d2b 67e14471 store 2 ,mem_cb_bt_set_mult 
+3d2c 20600000 rtn 
+
+mouse_setting_config:
+3d2d 20758000 rtn wake 
+3d2e 20402ea2 call g24_transmit_init 
+3d2f 20403f2d call mouse_gpio_init 
+3d30 20403d3a call mouse_param_init 
+3d31 20403e8d call mouse_adc_init 
+3d32 20402321 call le_set_config_fixed_ltk 
+3d33 2040234a call le_set_justwork 
+3d34 2040233d call le_set_fixed_ltk 
+3d35 20402329 call le_set_config_read_authentication 
+3d36 6fe44b50 fetch mouse_flag_len ,mem_mouse_flag 
+3d37 c289c675 bbit1 mouse_enable_eeprom ,mouse_load_eeprom_info_check 
+3d38 c2894636 bbit1 mouse_enable_flash ,mouse_load_flash_info_check 
+3d39 20600000 rtn 
+
+mouse_param_init:
+3d3a 58009468 setarg mouse_bt_sdp_addr 
+3d3b 67e1465f store 2 ,mem_ui_uuid_table 
+3d3c 58009732 setarg mouse_ble_att_list_addr 
+3d3d 67e14394 store 2 ,mem_ui_le_uuid_table 
+3d3e 58002580 setarg 0x2580 
+3d3f 67e1c0b2 store 3 ,mem_class 
+3d40 70417b03 jam 3 ,mem_lpm_mult_timeout 
+3d41 70415e08 jam 8 ,mem_lpm_overhead 
+3d42 704b4300 jam dpi_button_state_up ,mem_select_device_button_statue 
+3d43 704b4300 jam pb_button_state_up ,mem_select_device_button_statue 
+3d44 704b4400 jam commbination_key_state_up ,mem_commbination_key_statue 
+3d45 58000200 setarg 0x0200 
+3d46 67e1415c store 2 ,mem_lpm_interval 
+3d47 70437e17 jam 0x17 ,mem_le_local_mtu 
+3d48 70438017 jam 0x17 ,mem_le_remote_mtu 
+3d49 58000a77 setarg 0x0a77 
+3d4a 67e14488 store 2 ,mem_spi_init_clk 
+3d4b 38000306 setsect 0 ,0x306 
+3d4c 38044440 setsect 1 ,0x4440 
+3d4d 38090000 setsect 2 ,0x10000 
+3d4e 380c4408 setsect 3 ,0x4408 
+3d4f 67e4c661 store 9 ,mem_all_uuid_16bits 
+3d50 38001224 setsect 0 ,0x1224 
+3d51 38044000 setsect 1 ,0x4000 
+3d52 38080000 setsect 2 ,0x0 
+3d53 e7e28005 istore 5 ,contw 
+3d54 3803ffff setsect 0 ,0x3ffff 
+3d55 3806fe23 setsect 1 ,0x2fe23 
+3d56 380999d9 setsect 2 ,0x199d9 
+3d57 380c020d setsect 3 ,0x20d 
+3d58 67e440a0 store 8 ,mem_features 
+3d59 58004a99 setarg mem_le_tx_buffer0_omemalloc 
+3d5a 67e143dc store 2 ,mem_ble_l2cap_tx_buff0_ptr 
+3d5b 58000010 setarg mouse_ble_l2cap_txbuff_size 
+3d5c 67e143de store 2 ,mem_ble_l2cap_tx_buff_size_ptr 
+3d5d 20404910 call mouse_device_led_all_off 
+3d5e 204048ca call mouse_device_poweron_timer_init 
+3d5f 20403ea6 call mouse_adc_gpio_mux_init 
+3d60 6fe44b50 fetch mouse_flag_len ,mem_mouse_flag 
+3d61 c30dbd66 bbit0 mouse_enable_bt_125hz ,mouse_param_init_intervl_end 
+3d62 7044550c jam classic_interval_7_5ms ,mem_sniff_param_interval 
+3d63 58000006 setarg le_interval_7_5ms 
+3d64 67e14370 store 2 ,mem_le_interval_min 
+3d65 67e14372 store 2 ,mem_le_interval_min + 2 
+
+mouse_param_init_intervl_end:
+3d66 6fe44b50 fetch mouse_flag_len ,mem_mouse_flag 
+3d67 c30c3d6c bbit0 mouse_enable_24g_250hz ,mouse_24g_short_sleep_set_end 
+3d68 58002fb2 setarg g24_4ms_interval_param 
+3d69 67e1c89a store 3 ,mem_24g_short_sleep_set 
+3d6a 580c0c10 setarg 0x0c0c10 
+3d6b 67e1c853 store 3 ,mem_24g_interval 
+
+mouse_24g_short_sleep_set_end:
+3d6c 6fe0c90b fetch 1 ,mem_device_flag 
+3d6d 67e0ca57 store 1 ,mem_device_flag_temp 
+3d6e 6fe1c37b fetch 3 ,mem_le_lap + 3 
+3d6f 67e1ca6d store 3 ,mem_mouse_le_lap_temp 
+3d70 6fe0c8d8 fetch 1 ,mem_adc_config_flag_init 
+3d71 67e0c4a3 store 1 ,mem_adc_config_flag 
+3d72 58000000 setarg 0 
+3d73 67e3c8b3 store 7 ,mem_mouse_key 
+3d74 6fe0c78e fetch 1 ,mem_ui_button_timeout 
+3d75 67e0cb40 store 1 ,mem_bt_discovery_count 
+3d76 67e0cb41 store 1 ,mem_select_device_count 
+3d77 204022b4 call le_modified_name 
+3d78 202042d3 branch mouse_sensor_set_angle 
+
+mouse_start_work:
+3d79 44e64019 bpatch patch19_4 ,mem_patch19 
+3d7a 6fe44b50 fetch mouse_flag_len ,mem_mouse_flag 
+3d7b c297c807 bbit1 mouse_enable_24g_first_auto_pairing ,mouse_24g_first_start_auto_pair_mode 
+3d7c 6fe0c90b fetch 1 ,mem_device_flag 
+3d7d c00047f3 beq mode_24g_device ,mouse_24g_start_mode 
+3d7e 20403d8d call mouse_wakeup_from_power_check 
+3d7f 24344324 nbranch mouse_buletooth_fast_conn_init ,user 
+
+mouse_start_reconnect_device:
+3d80 44e6c019 bpatch patch19_5 ,mem_patch19 
+3d81 da20490c arg mem_device1_type ,rega 
+3d82 6fe0c90b fetch 1 ,mem_device_flag 
+3d83 1fe0ffff increase -1 ,pdata 
+3d84 1feffe1d mul32 pdata ,29 ,pdata 
+3d85 9a20a200 iadd rega ,rega 
+3d86 efe08011 ifetch 1 ,rega 
+3d87 67e0c486 store 1 ,mem_xrecord_mode 
+
+mouse_start_reconnect:
+3d88 44e74019 bpatch patch19_6 ,mem_patch19 
+3d89 6fe0c486 fetch 1 ,mem_xrecord_mode 
+3d8a c019bd97 beq rec_3_mode ,mouse3_0_check_reconn_target 
+3d8b c01a3da3 beq rec_4_mode ,mouse4_0_check_reconn_target 
+3d8c 20204591 branch mouse_start_discovery 
+
+mouse_wakeup_from_power_check:
+3d8d 44e7c019 bpatch patch19_7 ,mem_patch19 
+3d8e 78547c00 disable user 
+3d8f 6fe44b50 fetch mouse_flag_len ,mem_mouse_flag 
+3d90 c305bd94 bbit0 mouse_enable_wakeup_from_power ,mouse_wakeup_from_power 
+3d91 6fe08989 fetch 1 ,mem_wakup_from_power_flag 
+3d92 c3013d94 bbit0 bit_power_on ,mouse_wakeup_from_power 
+3d93 78347c00 enable user 
+
+mouse_wakeup_from_power:
+3d94 6fe0ca54 fetch 1 ,mem_reconn_times_init 
+3d95 67e0ca53 store 1 ,mem_reconn_times 
+3d96 20600000 rtn 
+
+mouse3_0_check_reconn_target:
+3d97 68494b5f fetcht 2 ,mem_mouse_fast_page_to 
+3d98 6fe0ca64 fetch 1 ,mem_mouse_bluetooth_fast_conn_flag 
+3d99 c07fbd9b beq 0xff ,mouse3_0_check_reconn_target_next 
+3d9a 68494b5c fetcht 2 ,mem_mouse_page_to 
+
+mouse3_0_check_reconn_target_next:
+3d9b 604940c1 storet 2 ,mem_page_to 
+3d9c 6fe341e0 fetch 6 ,mem_hci_plap 
+3d9d 203a30b2 branch app_bt_start_discovery_short ,blank 
+3d9e 70447d17 jam 0x17 ,mem_app_connection_options 
+3d9f 6fe0c763 fetch 1 ,mem_ssp_enable 
+3da0 243a30a8 nbranch app_bt_start_reconnect ,blank 
+3da1 70447d04 jam 0x04 ,mem_app_connection_options 
+3da2 202030a8 branch app_bt_start_reconnect 
+
+mouse4_0_check_reconn_target:
+3da3 704a6b01 jam 1 ,mem_mouse_le_reconnect_flag 
+3da4 6848cb5e fetcht 1 ,mem_mouse_fast_direct_timeout 
+3da5 6fe0ca64 fetch 1 ,mem_mouse_bluetooth_fast_conn_flag 
+3da6 c07fbda8 beq 0xff ,mouse4_0_check_reconn_target_next 
+3da7 68494b5a fetcht 2 ,mem_mouse_direct_timeout 
+
+mouse4_0_check_reconn_target_next:
+3da8 60494b1b storet 2 ,mem_mouse_direct_timer 
+3da9 204030df call app_lpm_mult_disable 
+3daa 6fe1ca73 fetch 3 ,mem_le_adv_direct_ind 
+3dab 67e1c3ea store 3 ,mem_le_adv_data + 4 
+3dac 20404422 call mouse_le_check_adv_flag 
+3dad 58000004 setarg adv_flag_bredr_not_supported 
+3dae e7e08006 istore 1 ,contr 
+3daf d8c04406 arg mem_le_scan_data ,contr 
+3db0 20404429 call mouse_le_adv_data_update 
+3db1 2020791c branch check_51cmd_adv 
+
+mouse_usb_check_enable:
+3db2 6fe44b50 fetch mouse_flag_len ,mem_mouse_flag 
+3db3 c4068000 rtnbit0 mouse_enable_usb 
+3db4 58003db8 setarg mouse_usb_config_param 
+3db5 67e10b45 store 2 ,mem_cb_usb_config 
+3db6 7048fea5 jam mouse_usb_interface_remove ,mem_mouse_usb_vdd_status 
+3db7 20203dea branch mouse_usb_interface_check 
+
+mouse_usb_config_param:
+3db8 20403dbb call mouse_usb_config_kb_check 
+3db9 20403dc0 call mouse_usb_config_param_init 
+3dba 20203dd0 branch mouse_usb_config_param_setup 
+
+mouse_usb_config_kb_check:
+3dbb 7048ff00 jam dongle_kb_bind_eeprom_offect ,mem_mouse_usb_keyboard_flag 
+3dbc 6fe44b50 fetch mouse_flag_len ,mem_mouse_flag 
+3dbd c40a8000 rtnbit0 mouse_enable_keyboard 
+3dbe 7048ff5a jam dongle_kb_bind_success ,mem_mouse_usb_keyboard_flag 
+3dbf 20600000 rtn 
+
+mouse_usb_config_param_init:
+3dc0 6fe44b50 fetch mouse_flag_len ,mem_mouse_flag 
+3dc1 c28ebdc7 bbit1 mouse_enable_usb_250 ,mouse_usb_report_rate_set_250hz 
+3dc2 c28f3dca bbit1 mouse_enable_usb_500 ,mouse_usb_report_rate_set_500hz 
+3dc3 c28fbdcd bbit1 mouse_enable_usb_1000 ,mouse_usb_report_rate_set_1000hz 
+3dc4 7048fc19 jam 0x19 ,mem_wire_usb_interval 
+3dc5 700b4708 jam 0x08 ,mem_usb_tx_interval 
+3dc6 20600000 rtn 
+
+mouse_usb_report_rate_set_250hz:
+3dc7 7048fc0c jam 0x0c ,mem_wire_usb_interval 
+3dc8 700b4704 jam 0x04 ,mem_usb_tx_interval 
+3dc9 20600000 rtn 
+
+mouse_usb_report_rate_set_500hz:
+3dca 7048fc06 jam 0x06 ,mem_wire_usb_interval 
+3dcb 700b4702 jam 0x02 ,mem_usb_tx_interval 
+3dcc 20600000 rtn 
+
+mouse_usb_report_rate_set_1000hz:
+3dcd 7048fc03 jam 0x03 ,mem_wire_usb_interval 
+3dce 700b4701 jam 0x01 ,mem_usb_tx_interval 
+3dcf 20600000 rtn 
+
+mouse_usb_config_param_setup:
+3dd0 20407a04 call usb_tx_interval_config 
+3dd1 20403dd3 call mouse_usb_vid_pid_config 
+3dd2 20203dd8 branch mouse_usb_hid_icon_config 
+
+mouse_usb_vid_pid_config:
+3dd3 6fe08b48 fetch 1 ,mem_usb_vid_pid 
+3dd4 207a0000 rtn blank 
+3dd5 6fe0c8ff fetch 1 ,mem_mouse_usb_keyboard_flag 
+3dd6 c02d3503 beq dongle_kb_bind_success ,dongle_usb_vid_pid_for_suit 
+3dd7 20203500 branch dongle_usb_vid_pid_for_mouse_only_auto_pair 
+
+mouse_usb_hid_icon_config:
+3dd8 6fe0c8ff fetch 1 ,mem_mouse_usb_keyboard_flag 
+3dd9 20203506 branch dongle_usb_hid_icon_config + 1 
+
+mouse_usb_check:
+3dda 6ff08c02 fetch 1 ,core_usb_addr 
+3ddb c303bdde bbit0 7 ,mouse_usb_no_exsit 
+3ddc c283bde2 bbit1 7 ,mouse_usb_exsit 
+3ddd 20600000 rtn 
+
+mouse_usb_no_exsit:
+3dde 6fe0c8fd fetch 1 ,mem_usb_addr 
+3ddf c4038000 rtnbit0 7 
+3de0 20407e18 call ice_break 
+3de1 20205dd9 branch soft_reset_chip 
+
+mouse_usb_exsit:
+3de2 6fe0c8fd fetch 1 ,mem_usb_addr 
+3de3 c3838000 rtnbit1 7 
+3de4 204047ef call mouse_24g_stop 
+3de5 2020434f branch mouse_stop_bluetooth_mode 
+
+mouse_usb_isr:
+3de6 6fe44b50 fetch mouse_flag_len ,mem_mouse_flag 
+3de7 c4068000 rtnbit0 mouse_enable_usb 
+3de8 204079b0 call usb_isr 
+3de9 20203dea branch mouse_usb_interface_check 
+
+mouse_usb_interface_check:
+3dea 44e8401a bpatch patch1a_0 ,mem_patch1a 
+3deb 68488b58 fetcht 1 ,mem_usb_offline_check_gpio 
+3dec 204060a8 call gpio_get_bit 
+3ded 2020bdef branch mouse_usb_gpio_low ,true 
+3dee 20203df6 branch mouse_usb_gpio_high 
+
+mouse_usb_gpio_low:
+3def 6fe0c8fe fetch 1 ,mem_mouse_usb_vdd_status 
+3df0 c1528000 rtneq mouse_usb_interface_remove 
+3df1 7048fea5 jam mouse_usb_interface_remove ,mem_mouse_usb_vdd_status 
+3df2 700bfa00 jam 0 ,mem_usb_device_enumeration_endflag 
+3df3 7009f600 jam 0 ,mem_usb_status 
+3df4 700bec00 jam 0 ,mem_usb_state 
+3df5 20203d08 branch mouse_init_wireless 
+
+mouse_usb_gpio_high:
+3df6 6fe0c8fe fetch 1 ,mem_mouse_usb_vdd_status 
+3df7 c12d0000 rtneq mouse_usb_interface_insert 
+3df8 7048fe5a jam mouse_usb_interface_insert ,mem_mouse_usb_vdd_status 
+3df9 204047ef call mouse_24g_stop 
+3dfa 2040434f call mouse_stop_bluetooth_mode 
+3dfb 20404910 call mouse_device_led_all_off 
+3dfc 202079bc branch usb_init 
+
+mouse_usb_mode:
+3dfd 6fe44b50 fetch mouse_flag_len ,mem_mouse_flag 
+3dfe c4068000 rtnbit0 mouse_enable_usb 
+3dff 20403dda call mouse_usb_check 
+3e00 6ff08c02 fetch 1 ,core_usb_addr 
+3e01 67e0c8fd store 1 ,mem_usb_addr 
+3e02 c4038000 rtnbit0 7 
+3e03 20403e34 call mouse_clkn_check 
+3e04 6fe24a60 fetch 4 ,mem_btclk_sensor 
+3e05 6848c8fc fetcht 1 ,mem_wire_usb_interval 
+3e06 98408400 iadd temp ,temp 
+3e07 1c427e00 copy clkn_bt ,pdata 
+3e08 98467c00 isub temp ,null 
+3e09 24610000 nrtn positive 
+3e0a 67e24a60 store 4 ,mem_btclk_sensor 
+3e0b 20403f87 call mouse_motion 
+3e0c 24740000 nrtn user 
+
+mouse_push_data_to_usb:
+3e0d 6ff08c02 fetch 1 ,core_usb_addr 
+3e0e c4038000 rtnbit0 7 
+3e0f 6fe44b50 fetch mouse_flag_len ,mem_mouse_flag 
+3e10 c30abe13 bbit0 mouse_enable_keyboard ,mouse_push_mouse_data_to_usb 
+3e11 6fe0cb30 fetch 1 ,mem_customer_key 
+3e12 c000be19 beq 1 ,mouse_push_keyboard_data_to_usb 
+
+mouse_push_mouse_data_to_usb:
+3e13 20403525 call dongle_usb_tx_ms_data 
+3e14 58000001 setarg ms_report_id 
+3e15 67e08bff store 1 ,mem_usb_mouse_data 
+3e16 6fe3c8b3 fetch 7 ,mem_mouse_key 
+3e17 e7e38005 istore 7 ,contw 
+3e18 20600000 rtn 
+
+mouse_push_keyboard_data_to_usb:
+3e19 6fe0cb31 fetch 1 ,mem_customer_data_trigger 
+3e1a 203a3e24 branch mouse_push_release_keyboard_data_to_usb ,blank 
+3e1b 6fe44b72 fetch 8 ,mem_customer_key_press + 1 
+
+mouse_push_keyboard_package_data_to_usb:
+3e1c 67e4095c store 8 ,mem_pdatatemp 
+3e1d 6fe0cb71 fetch 1 ,mem_customer_key_press 
+3e1e c001be26 beq kb_multikey_report_id ,mouse_push_multimedia_key_data_to_usb 
+3e1f c0013e2d beq kb_system_conctrl_report_id ,mouse_push_systemctrl_key_data_to_usb 
+3e20 20403533 call dongle_usb_tx_kb_data 
+3e21 6fe4095c fetch 8 ,mem_pdatatemp 
+3e22 67e40c0f store 8 ,mem_usb_kb_data 
+3e23 20600000 rtn 
+
+mouse_push_release_keyboard_data_to_usb:
+3e24 6fe44b7b fetch 8 ,mem_customer_key_release + 1 
+3e25 20203e1c branch mouse_push_keyboard_package_data_to_usb 
+
+mouse_push_multimedia_key_data_to_usb:
+3e26 20403526 call dongle_usb_tx_enable_ep2 
+3e27 700bf821 jam usb_ep2_multikey ,mem_usb_ep2_data 
+3e28 58000003 setarg kb_multikey_report_id 
+3e29 67e08c1f store 1 ,mem_usb_kb_multikey 
+3e2a 6fe1095c fetch 2 ,mem_pdatatemp 
+3e2b e7e10005 istore 2 ,contw 
+3e2c 20600000 rtn 
+
+mouse_push_systemctrl_key_data_to_usb:
+3e2d 20403526 call dongle_usb_tx_enable_ep2 
+3e2e 700bf822 jam usb_ep2_systemkey ,mem_usb_ep2_data 
+3e2f 58000002 setarg kb_system_conctrl_report_id 
+3e30 67e08c2f store 1 ,mem_usb_kb_system 
+3e31 6fe0895c fetch 1 ,mem_pdatatemp 
+3e32 e7e08005 istore 1 ,contw 
+3e33 20600000 rtn 
+
+mouse_clkn_check:
+3e34 684a4a60 fetcht 4 ,mem_btclk_sensor 
+3e35 1c427e00 copy clkn_bt ,pdata 
+3e36 98467c00 isub temp ,null 
+3e37 24413e39 ncall mouse_clkn_timeout ,positive 
+3e38 20600000 rtn 
+
+mouse_clkn_timeout:
+3e39 58000000 setarg 0 
+3e3a 67e24a60 store 4 ,mem_btclk_sensor 
+3e3b 20600000 rtn 
+
+mouse_lpm_check_wake_lock:
+3e3c c5133097 bmark1 mark_24g ,app_get_lpm_wake_lock 
+3e3d 6fe0ca4f fetch 1 ,mem_mouse_clear_sensor_data_flag 
+3e3e 203a3097 branch app_get_lpm_wake_lock ,blank 
+3e3f 6fe0ca98 fetch 1 ,mem_mouse_le_conn_param_reject 
+3e40 c000b097 beq le_lpm_disable ,app_get_lpm_wake_lock 
+3e41 6fe144d8 fetch 2 ,mem_sdp_remote_cid 
+3e42 243a3097 nbranch app_get_lpm_wake_lock ,blank 
+3e43 6fe0c8c4 fetch 1 ,mem_mouse_wheel_trigger 
+3e44 243a3097 nbranch app_get_lpm_wake_lock ,blank 
+3e45 20203099 branch app_put_lpm_wake_lock 
+
+mouse_delay_enter_hibernata:
+3e46 6fe14b5a fetch 2 ,mem_mouse_direct_timeout 
+3e47 67e14a67 store 2 ,mem_mouse_bluetooth_reconnect_timeout 
+3e48 20600000 rtn 
+
+mouse_app_enter_hibernate:
+3e49 2040421e call mouse_sensor_powerdown 
+3e4a 20403e5c call mouse_setgpio_hibernate 
+3e4b 202030d1 branch app_enter_hibernate 
+
+mouse_before_hibernate:
+3e4c 44e8c01a bpatch patch1a_1 ,mem_patch1a 
+3e4d 78347c00 enable user 
+3e4e 6ff20138 fetch 4 ,0x8138 
+3e4f 79347e1a setflag user ,26 ,pdata 
+3e50 67f2004c store 4 ,core_lpm_reg 
+3e51 20401503 call lpm_write_ctrl 
+3e52 20406e24 call disable_authrom 
+3e53 20404910 call mouse_device_led_all_off 
+3e54 2040402c call mouse_before_hibernate_wheel_gpio_set 
+3e55 20403e5c call mouse_setgpio_hibernate 
+3e56 2040466d call mouse_flash_power_down 
+3e57 204060ec call gpio_set_before_lpm_common 
+3e58 6848c8f1 fetcht 1 ,mem_sensor_motion_gpio 
+3e59 20206091 branch gpio_clr_wake 
+
+mouse_setgpio_lpm:
+3e5a 20404322 call mouse_set_sdio_high 
+3e5b 20407ff6 call clear_wake 
+
+mouse_setgpio_hibernate:
+3e5c 20403e63 call mouse_lpm_before_common 
+3e5d 204060d1 call gpio_pd_idle 
+3e5e 20203f65 branch mouse_gpio_set_high_impedance 
+
+mouse_process_lpm_before:
+3e5f 20403e63 call mouse_lpm_before_common 
+3e60 6fe0809e fetch 1 ,mem_lpm_current_mult 
+3e61 247a0000 nrtn blank 
+3e62 20206091 branch gpio_clr_wake 
+
+mouse_lpm_before_common:
+3e63 44e9401a bpatch patch1a_2 ,mem_patch1a 
+3e64 20403f9f call mouse_wheel_check 
+3e65 d840000a arg mouse_spi1_clk_gpio ,temp 
+3e66 6fe0c4cd fetch 1 ,mem_enable_spi2_flag 
+3e67 245a3f7f ncall mouse_spi_clk_gpio ,blank 
+3e68 204060b8 call gpio_config_output 
+3e69 20405acb call twspi_disable 
+3e6a 6848c8e4 fetcht 1 ,mem_lbutton_gpio 
+3e6b 20406081 call gpio_set_wake_by_current_state 
+3e6c 6848c8e5 fetcht 1 ,mem_rbutton_gpio 
+3e6d 20406081 call gpio_set_wake_by_current_state 
+3e6e 6848c8e6 fetcht 1 ,mem_mbutton_gpio 
+3e6f 20406081 call gpio_set_wake_by_current_state 
+3e70 6848c8e7 fetcht 1 ,mem_bk_button_gpio 
+3e71 20406081 call gpio_set_wake_by_current_state 
+3e72 6848c8e8 fetcht 1 ,mem_fw_button_gpio 
+3e73 20406081 call gpio_set_wake_by_current_state 
+3e74 6848c8e9 fetcht 1 ,mem_dpi_button_gpio 
+3e75 20406081 call gpio_set_wake_by_current_state 
+3e76 6848c8eb fetcht 1 ,mem_config_select_device_button_gpio 
+3e77 20406081 call gpio_set_wake_by_current_state 
+
+mouse_lpm_before_common_next:
+3e78 6848c8ed fetcht 1 ,mem_whee_a_data_gpio 
+3e79 20406081 call gpio_set_wake_by_current_state 
+3e7a 6848c8ee fetcht 1 ,mem_whee_b_data_gpio 
+3e7b 20406081 call gpio_set_wake_by_current_state 
+3e7c 6848c8ef fetcht 1 ,mem_whee_ta_data_gpio 
+3e7d 20406081 call gpio_set_wake_by_current_state 
+3e7e 6848c8f0 fetcht 1 ,mem_whee_tb_data_gpio 
+3e7f 20406081 call gpio_set_wake_by_current_state 
+3e80 6848c8f1 fetcht 1 ,mem_sensor_motion_gpio 
+3e81 20206085 branch gpio_set_wake 
+
+mouse_set_mult:
+3e82 6fe1478b fetch 2 ,mem_ui_state_map 
+3e83 c284be87 bbit1 ui_state_ble_connected ,mouse_set_ble_mult 
+3e84 6fe1478b fetch 2 ,mem_ui_state_map 
+3e85 c2803e8a bbit1 ui_state_bt_connected ,mouse_set_bt_mult 
+3e86 20600000 rtn 
+
+mouse_set_ble_mult:
+3e87 1a227e00 copy rega ,pdata 
+3e88 243a2331 nbranch le_set_config_short_mult ,blank 
+3e89 20202333 branch le_clr_config_short_mult 
+
+mouse_set_bt_mult:
+3e8a 1a227e00 copy rega ,pdata 
+3e8b 243a14a9 nbranch classic_bt_set_mult_short_flag ,blank 
+3e8c 202014ab branch classic_bt_clr_mult_short_flag 
+
+mouse_adc_init:
+3e8d 6fe0c4a3 fetch 1 ,mem_adc_config_flag 
+3e8e c0003e92 beq adc_config_vinlpm ,mouse_adc_init_data_vinlpm 
+3e8f c000be9a beq adc_config_hvin ,mouse_adc_init_data_hvin 
+3e90 c0013ea2 beq adc_config_gpio ,mouse_adc_init_data_io 
+3e91 20203e92 branch mouse_adc_init_data_vinlpm 
+
+mouse_adc_init_data_vinlpm:
+3e92 68494497 fetcht 2 ,mem_2v_adc_vinlpm_data 
+3e93 6fe1449d fetch 2 ,mem_3v_adc_vinlpm_data 
+3e94 98467e00 isub temp ,pdata 
+3e95 1feffe14 mul32 pdata ,20 ,pdata 
+3e96 1fe6fc64 div pdata ,100 
+3e97 20407dfa call get_div_result 
+3e98 67e148de store 2 ,mem_adc_reference_voltage 
+3e99 20600000 rtn 
+
+mouse_adc_init_data_hvin:
+3e9a 68494495 fetcht 2 ,mem_3v_adc_hvin_data 
+3e9b 6fe1449b fetch 2 ,mem_5v_adc_hvin_data 
+3e9c 98467e00 isub temp ,pdata 
+3e9d 1feffee6 mul32 pdata ,230 ,pdata 
+3e9e 1fe6fd90 div pdata ,400 
+3e9f 20407dfa call get_div_result 
+3ea0 67e148de store 2 ,mem_adc_reference_voltage 
+3ea1 20600000 rtn 
+
+mouse_adc_init_data_io:
+3ea2 6fe14499 fetch 2 ,mem_1v_adc_io_data 
+3ea3 67e148de store 2 ,mem_adc_reference_voltage 
+3ea4 20600000 rtn 
+
+mouse_adc_gpio_set:
+3ea5 20600000 rtn 
+
+mouse_adc_gpio_mux_init:
+3ea6 6fe44b50 fetch mouse_flag_len ,mem_mouse_flag 
+3ea7 c40a0000 rtnbit0 mouse_enable_adc 
+3ea8 7048d901 jam mouse_adc_check_multiple ,mem_adc_mux_status 
+3ea9 c3970000 rtnbit1 mouse_enable_dpi_key_connect_adc 
+3eaa c3958000 rtnbit1 mouse_enable_select_device_by_switch_adc 
+3eab 7048d900 jam mouse_adc_check_battery_only ,mem_adc_mux_status 
+3eac 20600000 rtn 
+
+mouse_adc_read_interval:
+3ead 6fe0c8da fetch 1 ,mem_adc_read_timer 
+3eae 1fe0fe01 increase 1 ,pdata 
+3eaf 67e0c8da store 1 ,mem_adc_read_timer 
+3eb0 6848c8db fetcht 1 ,mem_adc_read_time_init 
+3eb1 98467c00 isub temp ,null 
+3eb2 20600000 rtn 
+
+mouse_adc_read:
+3eb3 6fe44b50 fetch mouse_flag_len ,mem_mouse_flag 
+3eb4 c40a0000 rtnbit0 mouse_enable_adc 
+3eb5 20403ea5 call mouse_adc_gpio_set 
+3eb6 6fe0c8d9 fetch 1 ,mem_adc_mux_status 
+3eb7 203a3ec3 branch mouse_adc_read_battery ,blank 
+3eb8 6fe0c8d8 fetch 1 ,mem_adc_config_flag_init 
+3eb9 c0013ebf beq adc_config_gpio ,mouse_adc_read_gpio_mux_start 
+3eba 7048d903 jam mouse_adc_check_vinlpm_multiple ,mem_adc_mux_status 
+3ebb 20403ead call mouse_adc_read_interval 
+3ebc 20413ee1 call mouse_adc_read_gpio ,positive 
+3ebd 24413ee5 ncall mouse_adc_read_vinlpm ,positive 
+3ebe 20203ec9 branch mouse_adc_read_start 
+
+mouse_adc_read_gpio_mux_start:
+3ebf 7048d902 jam mouse_adc_check_gpio_multiple ,mem_adc_mux_status 
+3ec0 6fe0cb4f fetch 1 ,mem_24g_device_led_status 
+3ec1 247a0000 nrtn blank 
+3ec2 20203ec9 branch mouse_adc_read_start 
+
+mouse_adc_read_battery:
+3ec3 6fe0c8d8 fetch 1 ,mem_adc_config_flag_init 
+3ec4 c0813ec7 bne adc_config_gpio ,mouse_adc_read_battery_start 
+3ec5 6fe0cb4f fetch 1 ,mem_24g_device_led_status 
+3ec6 247a0000 nrtn blank 
+
+mouse_adc_read_battery_start:
+3ec7 20403ead call mouse_adc_read_interval 
+3ec8 24610000 nrtn positive 
+
+mouse_adc_read_start:
+3ec9 7048da00 jam 0 ,mem_adc_read_timer 
+3eca 2040612c call adc_init_data 
+3ecb 2040612e call adc_set_mode 
+3ecc 20406147 call vdd_calculate_by_mode 
+3ecd 67e148cc store 2 ,mem_mouse_vdd_now_vol 
+3ece da2048c6 arg mem_mouse_vdd_calculate_set ,rega 
+3ecf 20403ee9 call mouse_adc_bat_percent_lowpower_out 
+3ed0 6fe0c4a7 fetch 1 ,mem_adc_power_flag 
+3ed1 c2813f29 bbit1 2 ,mouse_adc_button_press 
+3ed2 c280bf2b bbit1 1 ,mouse_power_down 
+3ed3 c3003ed8 bbit0 0 ,mouse_adc_no_low_voltage 
+3ed4 7048e001 jam 1 ,mem_mouse_adc_last_low_voltage_flag 
+3ed5 20203ed6 branch mouse_adc_low_voltage 
+
+mouse_adc_low_voltage:
+3ed6 d8e00004 arg mouse_low_voltage_flag ,queue 
+3ed7 2020471d branch mouse_enable_function_flag 
+
+mouse_adc_no_low_voltage:
+3ed8 d8e00004 arg mouse_low_voltage_flag ,queue 
+3ed9 20404721 call mouse_disable_function_flag 
+3eda 7048dc0c jam 12 ,mem_adc_low_volatage_led_timer_count 
+3edb 6fe0c8e0 fetch 1 ,mem_mouse_adc_last_low_voltage_flag 
+3edc 207a0000 rtn blank 
+3edd 7048e000 jam 0 ,mem_mouse_adc_last_low_voltage_flag 
+3ede 6fe0c8f3 fetch 1 ,mem_config_low_voltage_alarm_gpio 
+3edf 67e0c902 store 1 ,mem_mouse_struct_led_gpio 
+3ee0 2020492d branch mouse_led_off 
+
+mouse_adc_read_gpio:
+3ee1 6fe0cb4f fetch 1 ,mem_24g_device_led_status 
+3ee2 243a3ee5 nbranch mouse_adc_read_vinlpm ,blank 
+3ee3 7044a302 jam adc_config_gpio ,mem_adc_config_flag 
+3ee4 20203e8d branch mouse_adc_init 
+
+mouse_adc_read_vinlpm:
+3ee5 7048da00 jam 0 ,mem_adc_read_timer 
+3ee6 6fe0c8d8 fetch 1 ,mem_adc_config_flag_init 
+3ee7 67e0c4a3 store 1 ,mem_adc_config_flag 
+3ee8 20203e8d branch mouse_adc_init 
+
+mouse_adc_bat_percent_lowpower_out:
+3ee9 44e9c01a bpatch patch1a_3 ,mem_patch1a 
+3eea efe40011 ifetch 8 ,rega 
+3eeb 67e4095c store 8 ,mem_pdatatemp 
+3eec 6fe0c8d9 fetch 1 ,mem_adc_mux_status 
+3eed c0003eff beq mouse_adc_check_battery_only ,mouse_adc_bat_percent_lowpower_out_battery 
+3eee c0013ef0 beq mouse_adc_check_gpio_multiple ,mouse_adc_bat_percent_lowpower_out_gpio_multiple 
+3eef c001bf1e beq mouse_adc_check_vinlpm_multiple ,mouse_adc_bat_percent_lowpower_out_vinlpm_multiple 
+
+mouse_adc_bat_percent_lowpower_out_gpio_multiple:
+3ef0 6fe44b50 fetch mouse_flag_len ,mem_mouse_flag 
+3ef1 c3173ef6 bbit0 mouse_enable_dpi_key_connect_adc ,mouse_adc_bat_percent_lowpower_out_gpio_switch 
+3ef2 6fe10962 fetch 2 ,mem_pdatatemp + 6 
+3ef3 684948ce fetcht 2 ,mem_mouse_vdd_button_press_vol 
+3ef4 98467c00 isub temp ,null 
+3ef5 24213f21 nbranch mouse_adc_set_button_press_flag ,positive 
+
+mouse_adc_bat_percent_lowpower_out_gpio_switch:
+3ef6 6fe44b50 fetch mouse_flag_len ,mem_mouse_flag 
+3ef7 c315beff bbit0 mouse_enable_select_device_by_switch_adc ,mouse_adc_bat_percent_lowpower_out_battery 
+3ef8 7048e100 jam 0 ,mem_mouse_adc_button_press_flag 
+3ef9 6fe10962 fetch 2 ,mem_pdatatemp + 6 
+3efa 684948d0 fetcht 2 ,mem_mouse_vdd_switch_gnd_24g_vol 
+3efb 98467c00 isub temp ,null 
+3efc 244146e4 ncall mouse_check_select_24gdevice ,positive 
+3efd 204146e0 call mouse_select_btdevice ,positive 
+3efe 20203eff branch mouse_adc_bat_percent_lowpower_out_battery 
+
+mouse_adc_bat_percent_lowpower_out_battery:
+3eff 20403f25 call mouse_adc_clear_button_press_flag 
+3f00 6fe10962 fetch 2 ,mem_pdatatemp + 6 
+3f01 6849095e fetcht 2 ,mem_pdatatemp + 2 
+3f02 98467c00 isub temp ,null 
+3f03 2441618b ncall adc_set_no_power_flag ,positive 
+3f04 2041618f call adc_clear_no_power_flag ,positive 
+3f05 68490960 fetcht 2 ,mem_pdatatemp + 4 
+3f06 98467c00 isub temp ,null 
+3f07 24416183 ncall adc_set_low_power_flag ,positive 
+3f08 20416187 call adc_clear_low_power_flag ,positive 
+
+mouse_adc_bat_level_set:
+3f09 6fe10962 fetch 2 ,mem_pdatatemp + 6 
+3f0a 6849095c fetcht 2 ,mem_pdatatemp 
+3f0b 98467c00 isub temp ,null 
+3f0c 20213f1a branch mouse_adc_bat_level_100_percent ,positive 
+3f0d 6849095e fetcht 2 ,mem_pdatatemp + 2 
+3f0e 98467e00 isub temp ,pdata 
+3f0f 24213f1c nbranch mouse_adc_bat_level_0_percent ,positive 
+3f10 203a3f1c branch mouse_adc_bat_level_0_percent ,blank 
+3f11 1fefa264 mul32 pdata ,100 ,rega 
+3f12 6fe1095c fetch 2 ,mem_pdatatemp 
+3f13 6849095e fetcht 2 ,mem_pdatatemp + 2 
+3f14 98460400 isub temp ,temp 
+3f15 1a227e00 copy rega ,pdata 
+3f16 9846fc00 idiv temp 
+3f17 20407dfa call get_div_result 
+3f18 67e0ca93 store 1 ,mem_le_battery_level_percentage 
+3f19 20600000 rtn 
+
+mouse_adc_bat_level_100_percent:
+3f1a 704a9364 jam 100 ,mem_le_battery_level_percentage 
+3f1b 20600000 rtn 
+
+mouse_adc_bat_level_0_percent:
+3f1c 704a9300 jam 0 ,mem_le_battery_level_percentage 
+3f1d 20600000 rtn 
+
+mouse_adc_bat_percent_lowpower_out_vinlpm_multiple:
+3f1e 6fe0c4a3 fetch 1 ,mem_adc_config_flag 
+3f1f c0013ef0 beq adc_config_gpio ,mouse_adc_bat_percent_lowpower_out_gpio_multiple 
+3f20 20203eff branch mouse_adc_bat_percent_lowpower_out_battery 
+
+mouse_adc_set_button_press_flag:
+3f21 6848c4a7 fetcht 1 ,mem_adc_power_flag 
+3f22 79200402 set1 2 ,temp 
+3f23 6048c4a7 storet 1 ,mem_adc_power_flag 
+3f24 20600000 rtn 
+
+mouse_adc_clear_button_press_flag:
+3f25 6848c4a7 fetcht 1 ,mem_adc_power_flag 
+3f26 793f8402 set0 2 ,temp 
+3f27 6048c4a7 storet 1 ,mem_adc_power_flag 
+3f28 20600000 rtn 
+
+mouse_adc_button_press:
+3f29 7048e101 jam 1 ,mem_mouse_adc_button_press_flag 
+3f2a 20600000 rtn 
+
+mouse_power_down:
+3f2b 20404910 call mouse_device_led_all_off 
+3f2c 20203e49 branch mouse_app_enter_hibernate 
+
+mouse_gpio_init:
+3f2d 6848c4c4 fetcht 1 ,mem_eeprom_wp_gpio 
+3f2e 204060b8 call gpio_config_output 
+3f2f 204079d3 call usb_offline_check_init 
+3f30 6848c8e4 fetcht 1 ,mem_lbutton_gpio 
+3f31 20403f63 call mouse_gpio_config_input_pu 
+3f32 6848c8e5 fetcht 1 ,mem_rbutton_gpio 
+3f33 20403f63 call mouse_gpio_config_input_pu 
+3f34 6848c8e6 fetcht 1 ,mem_mbutton_gpio 
+3f35 20403f63 call mouse_gpio_config_input_pu 
+3f36 6848c8e7 fetcht 1 ,mem_bk_button_gpio 
+3f37 20403f63 call mouse_gpio_config_input_pu 
+3f38 6848c8e8 fetcht 1 ,mem_fw_button_gpio 
+3f39 20403f63 call mouse_gpio_config_input_pu 
+3f3a 6848c8e9 fetcht 1 ,mem_dpi_button_gpio 
+3f3b 20403f63 call mouse_gpio_config_input_pu 
+3f3c 6848c8eb fetcht 1 ,mem_config_select_device_button_gpio 
+3f3d 20403f63 call mouse_gpio_config_input_pu 
+3f3e 6848c8ec fetcht 1 ,mem_customer_key_gpio 
+3f3f 20403f63 call mouse_gpio_config_input_pu 
+3f40 6848c8ed fetcht 1 ,mem_whee_a_data_gpio 
+3f41 20403f63 call mouse_gpio_config_input_pu 
+3f42 6848c8ee fetcht 1 ,mem_whee_b_data_gpio 
+3f43 20403f63 call mouse_gpio_config_input_pu 
+3f44 6848c8ef fetcht 1 ,mem_whee_ta_data_gpio 
+3f45 20403f63 call mouse_gpio_config_input_pu 
+3f46 6848c8f0 fetcht 1 ,mem_whee_tb_data_gpio 
+3f47 20403f63 call mouse_gpio_config_input_pu 
+3f48 6848c8f1 fetcht 1 ,mem_sensor_motion_gpio 
+3f49 20403f63 call mouse_gpio_config_input_pu 
+3f4a 6848c8f2 fetcht 1 ,mem_device_switch_gpio 
+3f4b 20403f63 call mouse_gpio_config_input_pu 
+3f4c 6848ca4e fetcht 1 ,mem_sensor_reset_gpio 
+3f4d 204060b8 call gpio_config_output 
+3f4e 6848c8f3 fetcht 1 ,mem_config_low_voltage_alarm_gpio 
+3f4f 204060b8 call gpio_config_output 
+3f50 6848c8f4 fetcht 1 ,mem_config_device_24g_led_gpio 
+3f51 204060b8 call gpio_config_output 
+3f52 6848c8f5 fetcht 1 ,mem_config_device_bt1_led_gpio 
+3f53 204060b8 call gpio_config_output 
+3f54 6848c8f6 fetcht 1 ,mem_config_device_bt2_led_gpio 
+3f55 204060b8 call gpio_config_output 
+3f56 6848c8f7 fetcht 1 ,mem_dpi_led_gpio 
+3f57 204060b8 call gpio_config_output 
+3f58 6848c8f8 fetcht 1 ,mem_select_sensor_angle_gpio 
+3f59 20203f63 branch mouse_gpio_config_input_pu 
+
+mouse_gpio_set_pupd_by_input:
+3f5a 18467cff sub temp ,ui_button_gpio_disable ,null 
+3f5b 20628000 rtn zero 
+3f5c 18410e7f and temp ,0x7f ,queue 
+3f5d 6ff2011c fetch 4 ,core_gpio_in 
+3f5e afefffff qisolate1 pdata 
+3f5f 2020bf63 branch mouse_gpio_config_input_pu ,true 
+3f60 20203f61 branch mouse_gpio_config_input_pd 
+
+mouse_gpio_config_input_pd:
+3f61 793f8407 set0 gpio_active_bit ,temp 
+3f62 2020609f branch gpio_config_input 
+
+mouse_gpio_config_input_pu:
+3f63 79200407 set1 gpio_active_bit ,temp 
+3f64 2020609f branch gpio_config_input 
+
+mouse_gpio_set_high_impedance:
+3f65 6fe1cb83 fetch 3 ,mem_mouse_set_high_impedance_bit_set 
+3f66 67e1895c store 3 ,mem_pdatatemp 
+3f67 df200014 arg 20 ,loopcnt 
+3f68 d8400000 arg 0 ,temp 
+
+mouse_gpio_set_high_impedance_bit_loop:
+3f69 6fe1895c fetch 3 ,mem_pdatatemp 
+3f6a 2feffe00 isolate1 0 ,pdata 
+3f6b 2040e0ce call gpio_set_high_impedance ,true 
+3f6c 6fe1895c fetch 3 ,mem_pdatatemp 
+3f6d 1fe3fe00 lshift pdata ,pdata 
+3f6e 67e1895c store 3 ,mem_pdatatemp 
+3f6f 18408401 increase 1 ,temp 
+3f70 c2003f69 loop mouse_gpio_set_high_impedance_bit_loop 
+3f71 20600000 rtn 
+
+mouse_sensor_spi_init:
+3f72 20403f79 call mouse_spid_init_pin 
+3f73 70448873 jam 0x73 ,mem_spi_init_clk 
+3f74 20403f76 call mouse_spi_init 
+3f75 20205ad3 branch twspi_enable 
+
+mouse_spi_write_flash_cb:
+
+mouse_spi_init:
+3f76 6fe0c4cd fetch 1 ,mem_enable_spi2_flag 
+3f77 c0005c65 beq 0 ,spid_init 
+3f78 20205d3d branch spid2_init 
+
+mouse_spid_init_pin:
+3f79 5800000a setarg mouse_spi1_clk_gpio 
+3f7a d8400021 arg gpcfg_spid_sck ,temp 
+3f7b 204060e2 call gpio_config_function_int 
+3f7c 5800000b setarg mouse_spi1_sdio_gpio 
+3f7d d8400023 arg gpcfg_spid_sdio ,temp 
+3f7e 202060e2 branch gpio_config_function_int 
+
+mouse_spi_clk_gpio:
+3f7f d840001e arg mouse_spi2_clk_gpio ,temp 
+3f80 20600000 rtn 
+
+mouse_spi_sdio_gpio_pollup:
+3f81 6fe0c4cd fetch 1 ,mem_enable_spi2_flag 
+3f82 c000bf85 beq 1 ,mouse_spi2_sdio_gpio_pollup 
+
+mouse_spi1_sdio_gpio_pollup:
+3f83 d840000b arg mouse_spi1_sdio_gpio ,temp 
+3f84 202060a2 branch gpio_config_input_without_wake 
+
+mouse_spi2_sdio_gpio_pollup:
+3f85 d840001f arg mouse_spi2_sdio_gpio ,temp 
+3f86 202060a2 branch gpio_config_input_without_wake 
+
+mouse_motion:
+3f87 44ea401a bpatch patch1a_4 ,mem_patch1a 
+3f88 78547c00 disable user 
+3f89 58000000 setarg 0 
+3f8a 67e348b4 store 6 ,mem_mouse_x 
+3f8b 20404222 call mouse_check_sensor_data 
+
+mouse_motion2:
+3f8c 20403f95 call mouse_zwheel 
+3f8d 20403f9a call mouse_t_zwheel 
+3f8e 204040fa call mouse_key 
+3f8f 6fe0c8b3 fetch 1 ,mem_mouse_key 
+3f90 1fe17e1f and_into 0x1f ,pdata 
+3f91 67e0c8b3 store 1 ,mem_mouse_key 
+3f92 2434473f nbranch mouse_drawing_optima_init ,user 
+3f93 20404731 call mouse_drawing_optima 
+3f94 20204582 branch mouse_no_data_timer_init 
+
+mouse_zwheel:
+3f95 6fe0c8c3 fetch 1 ,mem_mouse_z_data 
+3f96 207a0000 rtn blank 
+3f97 67e0c8b8 store 1 ,mem_mouse_z 
+3f98 7048c300 jam 0 ,mem_mouse_z_data 
+3f99 20207e62 branch enable_user 
+
+mouse_t_zwheel:
+3f9a 6fe0c8bf fetch 1 ,mem_mouse_tz_data 
+3f9b 207a0000 rtn blank 
+3f9c 67e0c8b9 store 1 ,mem_mouse_tz 
+3f9d 7048bf00 jam 0 ,mem_mouse_tz_data 
+3f9e 20207e62 branch enable_user 
+
+mouse_wheel_check:
+3f9f 20403fac call mouse_t_wheel_scan 
+3fa0 20403fe8 call mouse_wheel_scan 
+3fa1 6fe0c8bd fetch 1 ,mem_wheel_tb_new_pinlevel 
+3fa2 6848c8bc fetcht 1 ,mem_wheel_tb_old_pinlevel 
+3fa3 67e0c8bc store 1 ,mem_wheel_tb_old_pinlevel 
+3fa4 98467c00 isub temp ,null 
+3fa5 2422b09b nbranch app_lpm_wake_auto_lock ,zero 
+3fa6 6fe0c8c1 fetch 1 ,mem_mwheel_b_new_pinlevel 
+3fa7 6848c8c0 fetcht 1 ,mem_mwheel_b_old_pinlevel 
+3fa8 67e0c8c0 store 1 ,mem_mwheel_b_old_pinlevel 
+3fa9 98467c00 isub temp ,null 
+3faa 2422b09b nbranch app_lpm_wake_auto_lock ,zero 
+3fab 20600000 rtn 
+
+mouse_t_wheel_scan:
+3fac 6fe0c8ef fetch 1 ,mem_whee_ta_data_gpio 
+3fad c17f8000 rtneq gpio_disable 
+3fae da200000 arg 0 ,rega 
+3faf 6848c8ef fetcht 1 ,mem_whee_ta_data_gpio 
+3fb0 204060a8 call gpio_get_bit 
+3fb1 7920a200 setflag true ,0 ,rega 
+3fb2 6848c8f0 fetcht 1 ,mem_whee_tb_data_gpio 
+3fb3 204060a8 call gpio_get_bit 
+3fb4 7920a201 setflag true ,1 ,rega 
+3fb5 1a227e00 copy rega ,pdata 
+3fb6 67e0c8bd store 1 ,mem_wheel_tb_new_pinlevel 
+3fb7 c000bfbc beq 0x01 ,mouse_t_wheel_scan_judge1 
+3fb8 c0013fc0 beq 0x02 ,mouse_t_wheel_scan_judge2 
+3fb9 6fe0c8be fetch 1 ,mem_wheel_tog 
+3fba c283bfcc bbit1 7 ,mouse_t_wheel_scan_judge3 
+3fbb 20600000 rtn 
+
+mouse_t_wheel_scan_judge1:
+3fbc 6fe0c8bc fetch 1 ,mem_wheel_tb_old_pinlevel 
+3fbd c0003fc4 beq 0 ,mouse_t_wheel_scan_judge11 
+3fbe c001bfc6 beq 3 ,mouse_t_wheel_scan_judge12 
+3fbf 20600000 rtn 
+
+mouse_t_wheel_scan_judge2:
+3fc0 6fe0c8bc fetch 1 ,mem_wheel_tb_old_pinlevel 
+3fc1 c0003fc8 beq 0 ,mouse_t_wheel_scan_judge21 
+3fc2 c001bfca beq 3 ,mouse_t_wheel_scan_judge22 
+3fc3 20600000 rtn 
+
+mouse_t_wheel_scan_judge11:
+3fc4 7048be82 jam 0x82 ,mem_wheel_tog 
+3fc5 20600000 rtn 
+
+mouse_t_wheel_scan_judge12:
+3fc6 7048be81 jam 0x81 ,mem_wheel_tog 
+3fc7 20600000 rtn 
+
+mouse_t_wheel_scan_judge21:
+3fc8 7048be80 jam 0x80 ,mem_wheel_tog 
+3fc9 20600000 rtn 
+
+mouse_t_wheel_scan_judge22:
+3fca 7048be83 jam 0x83 ,mem_wheel_tog 
+3fcb 20600000 rtn 
+
+mouse_t_wheel_scan_judge3:
+3fcc 6fe0c8be fetch 1 ,mem_wheel_tog 
+3fcd 793ffe07 set0 7 ,pdata 
+3fce 67e0c8be store 1 ,mem_wheel_tog 
+3fcf c0003fd4 beq 0 ,mouse_t_wheel_scan_judge30 
+3fd0 c000bfd7 beq 1 ,mouse_t_wheel_scan_judge31 
+3fd1 c0013fda beq 2 ,mouse_t_wheel_scan_judge32 
+3fd2 c001bfdd beq 3 ,mouse_t_wheel_scan_judge33 
+3fd3 20600000 rtn 
+
+mouse_t_wheel_scan_judge30:
+3fd4 6fe0c8bd fetch 1 ,mem_wheel_tb_new_pinlevel 
+3fd5 c001bfe0 beq 3 ,mouse_wheel_t_forward 
+3fd6 20600000 rtn 
+
+mouse_t_wheel_scan_judge31:
+3fd7 6fe0c8bd fetch 1 ,mem_wheel_tb_new_pinlevel 
+3fd8 c0003fe0 beq 0 ,mouse_wheel_t_forward 
+3fd9 20600000 rtn 
+
+mouse_t_wheel_scan_judge32:
+3fda 6fe0c8bd fetch 1 ,mem_wheel_tb_new_pinlevel 
+3fdb c001bfe4 beq 3 ,mouse_wheel_t_back 
+3fdc 20600000 rtn 
+
+mouse_t_wheel_scan_judge33:
+3fdd 6fe0c8bd fetch 1 ,mem_wheel_tb_new_pinlevel 
+3fde c0003fe4 beq 0 ,mouse_wheel_t_back 
+3fdf 20600000 rtn 
+
+mouse_wheel_t_forward:
+3fe0 6fe0c8bf fetch 1 ,mem_mouse_tz_data 
+3fe1 1fe0fe01 increase 1 ,pdata 
+3fe2 67e0c8bf store 1 ,mem_mouse_tz_data 
+3fe3 20600000 rtn 
+
+mouse_wheel_t_back:
+3fe4 6fe0c8bf fetch 1 ,mem_mouse_tz_data 
+3fe5 1fe0ffff increase -1 ,pdata 
+3fe6 67e0c8bf store 1 ,mem_mouse_tz_data 
+3fe7 20600000 rtn 
+
+mouse_wheel_scan:
+3fe8 6fe0c8ed fetch 1 ,mem_whee_a_data_gpio 
+3fe9 c17f8000 rtneq gpio_disable 
+3fea da200000 arg 0 ,rega 
+3feb 6848c8ed fetcht 1 ,mem_whee_a_data_gpio 
+3fec 204060a8 call gpio_get_bit 
+3fed 7920a200 setflag true ,0 ,rega 
+3fee 6848c8ee fetcht 1 ,mem_whee_b_data_gpio 
+3fef 204060a8 call gpio_get_bit 
+3ff0 7920a201 setflag true ,1 ,rega 
+3ff1 1a227e00 copy rega ,pdata 
+3ff2 67e0c8c1 store 1 ,mem_mwheel_b_new_pinlevel 
+3ff3 c000bff8 beq 0x01 ,mouse_wheel_scan_judge1 
+3ff4 c0013ffc beq 0x02 ,mouse_wheel_scan_judge2 
+3ff5 6fe0c8c2 fetch 1 ,mem_mwheel_tog 
+3ff6 c283c008 bbit1 7 ,mouse_wheel_scan_judge3 
+3ff7 20600000 rtn 
+
+mouse_wheel_scan_judge1:
+3ff8 6fe0c8c0 fetch 1 ,mem_mwheel_b_old_pinlevel 
+3ff9 c0004000 beq 0 ,mouse_wheel_scan_judge11 
+3ffa c001c002 beq 3 ,mouse_wheel_scan_judge12 
+3ffb 20600000 rtn 
+
+mouse_wheel_scan_judge2:
+3ffc 6fe0c8c0 fetch 1 ,mem_mwheel_b_old_pinlevel 
+3ffd c0004004 beq 0 ,mouse_wheel_scan_judge21 
+3ffe c001c006 beq 3 ,mouse_wheel_scan_judge22 
+3fff 20600000 rtn 
+
+mouse_wheel_scan_judge11:
+4000 7048c282 jam 0x82 ,mem_mwheel_tog 
+4001 20600000 rtn 
+
+mouse_wheel_scan_judge12:
+4002 7048c281 jam 0x81 ,mem_mwheel_tog 
+4003 20600000 rtn 
+
+mouse_wheel_scan_judge21:
+4004 7048c280 jam 0x80 ,mem_mwheel_tog 
+4005 20600000 rtn 
+
+mouse_wheel_scan_judge22:
+4006 7048c283 jam 0x83 ,mem_mwheel_tog 
+4007 20600000 rtn 
+
+mouse_wheel_scan_judge3:
+4008 6fe0c8c2 fetch 1 ,mem_mwheel_tog 
+4009 793ffe07 set0 7 ,pdata 
+400a 67e0c8c2 store 1 ,mem_mwheel_tog 
+400b c0004010 beq 0 ,mouse_wheel_scan_judge30 
+400c c000c013 beq 1 ,mouse_wheel_scan_judge31 
+400d c0014016 beq 2 ,mouse_wheel_scan_judge32 
+400e c001c019 beq 3 ,mouse_wheel_scan_judge33 
+400f 20600000 rtn 
+
+mouse_wheel_scan_judge30:
+4010 6fe0c8c1 fetch 1 ,mem_mwheel_b_new_pinlevel 
+4011 c001c01c beq 3 ,mouse_wheel_forward 
+4012 20600000 rtn 
+
+mouse_wheel_scan_judge31:
+4013 6fe0c8c1 fetch 1 ,mem_mwheel_b_new_pinlevel 
+4014 c000401c beq 0 ,mouse_wheel_forward 
+4015 20600000 rtn 
+
+mouse_wheel_scan_judge32:
+4016 6fe0c8c1 fetch 1 ,mem_mwheel_b_new_pinlevel 
+4017 c001c020 beq 3 ,mouse_wheel_back 
+4018 20600000 rtn 
+
+mouse_wheel_scan_judge33:
+4019 6fe0c8c1 fetch 1 ,mem_mwheel_b_new_pinlevel 
+401a c0004020 beq 0 ,mouse_wheel_back 
+401b 20600000 rtn 
+
+mouse_wheel_forward:
+401c 6fe0c8c3 fetch 1 ,mem_mouse_z_data 
+401d 1fe0fe01 increase 1 ,pdata 
+401e 67e0c8c3 store 1 ,mem_mouse_z_data 
+401f 20600000 rtn 
+
+mouse_wheel_back:
+4020 6fe0c8c3 fetch 1 ,mem_mouse_z_data 
+4021 1fe0ffff increase -1 ,pdata 
+4022 67e0c8c3 store 1 ,mem_mouse_z_data 
+4023 20600000 rtn 
+
+mouse_wheel_gpio_set_wake:
+4024 6848c8ed fetcht 1 ,mem_whee_a_data_gpio 
+4025 20406081 call gpio_set_wake_by_current_state 
+4026 6848c8ee fetcht 1 ,mem_whee_b_data_gpio 
+4027 20406081 call gpio_set_wake_by_current_state 
+4028 6848c8ef fetcht 1 ,mem_whee_ta_data_gpio 
+4029 20406081 call gpio_set_wake_by_current_state 
+402a 6848c8f0 fetcht 1 ,mem_whee_tb_data_gpio 
+402b 20206081 branch gpio_set_wake_by_current_state 
+
+mouse_before_hibernate_wheel_gpio_set:
+402c 6848c8ed fetcht 1 ,mem_whee_a_data_gpio 
+402d 20403f5a call mouse_gpio_set_pupd_by_input 
+402e 6848c8ee fetcht 1 ,mem_whee_b_data_gpio 
+402f 20403f5a call mouse_gpio_set_pupd_by_input 
+4030 6848c8ef fetcht 1 ,mem_whee_ta_data_gpio 
+4031 20403f5a call mouse_gpio_set_pupd_by_input 
+4032 6848c8f0 fetcht 1 ,mem_whee_tb_data_gpio 
+4033 20203f5a branch mouse_gpio_set_pupd_by_input 
+
+mouse_wheel_trigger:
+4034 6fe148b8 fetch 2 ,mem_mouse_z 
+4035 207a0000 rtn blank 
+4036 7048c401 jam 1 ,mem_mouse_wheel_trigger 
+4037 7048c50a jam 10 ,mem_mouse_wheel_trigger_timer 
+4038 20600000 rtn 
+
+mouse_wheel_trigger_timer:
+4039 da6048c5 arg mem_mouse_wheel_trigger_timer ,regc 
+403a da40403c arg mouse_wheel_trigger_disable ,regb 
+403b 20203044 branch timer_single_step 
+
+mouse_wheel_trigger_disable:
+403c 7048c400 jam 0 ,mem_mouse_wheel_trigger 
+403d 20600000 rtn 
+
+mouse_dpi_check:
+403e 6fe44b50 fetch mouse_flag_len ,mem_mouse_flag 
+403f c297404b bbit1 mouse_enable_dpi_key_connect_adc ,mouse_dpi_check_connect_adc 
+4040 6fe0c8e9 fetch 1 ,mem_dpi_button_gpio 
+4041 c17f8000 rtneq gpio_disable 
+4042 da200000 arg 0 ,rega 
+4043 704b3b05 jam mouse_dpi_key ,mem_mouse_key_temp 
+4044 6848c8e9 fetcht 1 ,mem_dpi_button_gpio 
+4045 2040404e call mouse_dpi_key_check 
+4046 67e0cb38 store 1 ,mem_mouse_dpikey_press_status 
+4047 20404174 call mouse_matrix_public_gpio_reset 
+4048 1a227e00 copy rega ,pdata 
+4049 c282c060 bbit1 mouse_dpi_key ,mouse_dpi_down 
+404a 20204067 branch mouse_dpi_up 
+
+mouse_dpi_check_connect_adc:
+404b 6fe0c8e1 fetch 1 ,mem_mouse_adc_button_press_flag 
+404c 203a4067 branch mouse_dpi_up ,blank 
+404d 20204060 branch mouse_dpi_down 
+
+mouse_dpi_key_check:
+404e 6fe44b50 fetch mouse_flag_len ,mem_mouse_flag 
+404f c2964056 bbit1 mouse_enable_dpi_key_connect_gnd ,mouse_dpi_key_connect_gnd 
+4050 6fe0cb3f fetch 1 ,mem_mouse_ghost_flag 
+4051 243a4053 nbranch mouse_dpi_check_end ,blank 
+4052 20204058 branch mouse_dpi_key_connect_matrix 
+
+mouse_dpi_check_end:
+4053 7049b000 jam dpi_button_state_up ,mem_mouse_dpi_button_state 
+4054 704b3800 jam 0 ,mem_mouse_dpikey_press_status 
+4055 20600000 rtn 
+
+mouse_dpi_key_connect_gnd:
+4056 6fe0cb38 fetch 1 ,mem_mouse_dpikey_press_status 
+4057 20204195 branch mouse_check_key_connect_gnd 
+
+mouse_dpi_key_connect_matrix:
+4058 204060a8 call gpio_get_bit 
+4059 6848c8ea fetcht 1 ,mem_matrix_public_gpio 
+405a 2020c056 branch mouse_dpi_key_connect_gnd ,true 
+405b 6848c8ea fetcht 1 ,mem_matrix_public_gpio 
+405c 204060b8 call gpio_out_active 
+405d 6848c8e9 fetcht 1 ,mem_dpi_button_gpio 
+405e 6fe0cb38 fetch 1 ,mem_mouse_dpikey_press_status 
+405f 20204195 branch mouse_check_key_connect_gnd 
+
+mouse_dpi_down:
+4060 6fe0c9b0 fetch 1 ,mem_mouse_dpi_button_state 
+4061 c1008000 rtneq dpi_button_state_down 
+4062 7049b001 jam dpi_button_state_down ,mem_mouse_dpi_button_state 
+4063 6fe44b50 fetch mouse_flag_len ,mem_mouse_flag 
+4064 c3940000 rtnbit1 mouse_enable_select_device_by_dpi_button 
+4065 c39b0000 rtnbit1 mouse_enable_dpi_key_long_press_disconvery 
+4066 20204077 branch mouse_dpi_process 
+
+mouse_dpi_up:
+4067 6fe0c9b0 fetch 1 ,mem_mouse_dpi_button_state 
+4068 c1000000 rtneq dpi_button_state_up 
+4069 7049b000 jam dpi_button_state_up ,mem_mouse_dpi_button_state 
+406a 6fe44b50 fetch mouse_flag_len ,mem_mouse_flag 
+406b c294406e bbit1 mouse_enable_select_device_by_dpi_button ,mouse_dpi_up_next 
+406c c29b406e bbit1 mouse_enable_dpi_key_long_press_disconvery ,mouse_dpi_up_next 
+406d 20600000 rtn 
+
+mouse_dpi_up_next:
+406e 6fe0c9b1 fetch 1 ,mem_mouse_dpi_long_press_flag 
+406f 243a4072 nbranch mouse_dpi_up_after_long_press ,blank 
+4070 6fe0cb41 fetch 1 ,mem_select_device_count 
+4071 245a4077 ncall mouse_dpi_process ,blank 
+
+mouse_dpi_up_after_long_press:
+4072 7049b100 jam 0 ,mem_mouse_dpi_long_press_flag 
+4073 6fe0c78e fetch 1 ,mem_ui_button_timeout 
+4074 67e0cb41 store 1 ,mem_select_device_count 
+4075 67e0cb40 store 1 ,mem_bt_discovery_count 
+4076 20600000 rtn 
+
+mouse_dpi_process:
+4077 44eac01a bpatch patch1a_5 ,mem_patch1a 
+4078 20404080 call mouse_dpi_ghost_check 
+4079 20740000 rtn user 
+407a 6fe0c965 fetch 1 ,mem_mouse_dpi 
+407b 1fe0fe01 increase 1 ,pdata 
+407c 1fe17e03 and pdata ,0x03 ,pdata 
+407d 67e0c965 store 1 ,mem_mouse_dpi 
+407e 204040a3 call mouse_seting_dpi 
+407f 2020462e branch mouse_store_device_info_delay 
+
+mouse_dpi_ghost_check:
+4080 78547c00 disable user 
+4081 6fe44b50 fetch mouse_flag_len ,mem_mouse_flag 
+4082 c3960000 rtnbit1 mouse_enable_dpi_key_connect_gnd 
+4083 c3970000 rtnbit1 mouse_enable_dpi_key_connect_adc 
+4084 6fe0cb33 fetch 1 ,mem_mouse_lkey_press_status 
+4085 207a0000 rtn blank 
+4086 6fe0cb34 fetch 1 ,mem_mouse_rkey_press_status 
+4087 207a0000 rtn blank 
+4088 78347c00 enable user 
+4089 20600000 rtn 
+
+mouse_dpi_key_check_long_press:
+408a 6fe44b50 fetch mouse_flag_len ,mem_mouse_flag 
+408b c294408e bbit1 mouse_enable_select_device_by_dpi_button ,mouse_select_device_by_dpi_button 
+408c c29b4095 bbit1 mouse_enable_dpi_key_long_press_disconvery ,mouse_discovery_by_dpi_button 
+408d 20600000 rtn 
+
+mouse_select_device_by_dpi_button:
+408e 6fe0c9b0 fetch 1 ,mem_mouse_dpi_button_state 
+408f c1808000 rtnne dpi_button_state_down 
+4090 da604b41 arg mem_select_device_count ,regc 
+4091 da404093 arg mouse_ready_reconnection_by_dpi_button ,regb 
+4092 20203044 branch timer_single_step 
+
+mouse_ready_reconnection_by_dpi_button:
+4093 7049b101 jam 1 ,mem_mouse_dpi_long_press_flag 
+4094 202046ec branch mouse_ready_reconnection_by_button 
+
+mouse_discovery_by_dpi_button:
+4095 6fe0c9b0 fetch 1 ,mem_mouse_dpi_button_state 
+4096 c1808000 rtnne dpi_button_state_down 
+4097 da604b40 arg mem_bt_discovery_count ,regc 
+4098 da40409a arg mouse_long_dpi_button_bt_discovery ,regb 
+4099 20203044 branch timer_single_step 
+
+mouse_long_dpi_button_bt_discovery:
+409a 7049b101 jam 1 ,mem_mouse_dpi_long_press_flag 
+409b 20204513 branch mouse_long_button_bt_discovery 
+
+mouse_dpi_config:
+409c 202040a6 branch mouse_seting_dpi + 3 
+
+mouse_setting_dpi_4_level:
+409d 6fe44b50 fetch mouse_flag_len ,mem_mouse_flag 
+409e c38e0000 rtnbit1 mouse_enable_dpi_level_4 
+409f 6fe0c965 fetch 1 ,mem_mouse_dpi 
+40a0 c1818000 rtnne mouse_dpi_level4 
+40a1 70496500 jam mouse_dpi_level1 ,mem_mouse_dpi 
+40a2 20600000 rtn 
+
+mouse_seting_dpi:
+40a3 44eb401a bpatch patch1a_6 ,mem_patch1a 
+40a4 2040409d call mouse_setting_dpi_4_level 
+40a5 204048e5 call mouse_dpi_led_blink_delay 
+40a6 6fe0c8e2 fetch 1 ,mem_config_sensor_type 
+40a7 c002c0dc beq p3610 ,mouse_seting_3610_dpi 
+40a8 c00240c8 beq p3212 ,mouse_seting_3212_dpi 
+
+mouse_seting_dpi_sensor_type:
+40a9 6fe0c965 fetch 1 ,mem_mouse_dpi 
+40aa c00040b0 beq mouse_dpi_level1 ,mouse_set_cpi0 
+40ab c000c0ae beq mouse_dpi_level2 ,mouse_set_cpi1 
+40ac c00140b2 beq mouse_dpi_level3 ,mouse_set_cpi2 
+40ad c001c0b4 beq mouse_dpi_level4 ,mouse_set_cpi3 
+
+mouse_set_cpi1:
+40ae 6848c9a4 fetcht 1 ,mem_320x_dpi_1 
+40af 202040b6 branch mouse_dpi_store 
+
+mouse_set_cpi0:
+40b0 6848c9a3 fetcht 1 ,mem_320x_dpi_0 
+40b1 202040b6 branch mouse_dpi_store 
+
+mouse_set_cpi2:
+40b2 6848c9a5 fetcht 1 ,mem_320x_dpi_2 
+40b3 202040b6 branch mouse_dpi_store 
+
+mouse_set_cpi3:
+40b4 6848c9a6 fetcht 1 ,mem_320x_dpi_3 
+40b5 202040b6 branch mouse_dpi_store 
+
+mouse_dpi_store:
+40b6 6fe0c8e2 fetch 1 ,mem_config_sensor_type 
+40b7 c00340c4 beq p3065_xy ,mouse_3065xy_set_dpi 
+40b8 c003c0c4 beq mx8650 ,mouse_3065xy_set_dpi 
+40b9 c00140c6 beq ka8 ,mouse_ka8_set_dpi 
+40ba c004c0c6 beq p6520 ,mouse_ka8_set_dpi 
+
+mouse_dpi_write:
+40bb 6048c9af storet 1 ,mem_mouse_cpi_count 
+40bc 58000006 setarg mouse_dpi_address 
+40bd 20405af3 call twspi_read 
+40be 1fe104f8 and pdata ,0xf8 ,temp 
+40bf 6fe0c9af fetch 1 ,mem_mouse_cpi_count 
+40c0 9840fe00 iadd temp ,pdata 
+40c1 1fed7e00 lshift8 pdata ,pdata 
+40c2 1fe0fe06 add pdata ,mouse_dpi_address ,pdata 
+40c3 20205af1 branch twspi_write 
+
+mouse_3065xy_set_dpi:
+40c4 184085ff increase -1 ,temp 
+40c5 202040bb branch mouse_dpi_write 
+
+mouse_ka8_set_dpi:
+40c6 18408402 increase 2 ,temp 
+40c7 202040bb branch mouse_dpi_write 
+
+mouse_seting_3212_dpi:
+40c8 6fe0c965 fetch 1 ,mem_mouse_dpi 
+40c9 c00040cf beq mouse_dpi_level1 ,mouse_set_p3212_cpi0 
+40ca c000c0cd beq mouse_dpi_level2 ,mouse_set_p3212_cpi1 
+40cb c00140d1 beq mouse_dpi_level3 ,mouse_set_p3212_cpi2 
+40cc c001c0d3 beq mouse_dpi_level4 ,mouse_set_p3212_cpi3 
+
+mouse_set_p3212_cpi1:
+40cd 6fe0c9a8 fetch 1 ,mem_3212_dpi_1 
+40ce 202040d4 branch mouse_p3212_dpi 
+
+mouse_set_p3212_cpi0:
+40cf 6fe0c9a7 fetch 1 ,mem_3212_dpi_0 
+40d0 202040d4 branch mouse_p3212_dpi 
+
+mouse_set_p3212_cpi2:
+40d1 6fe0c9a9 fetch 1 ,mem_3212_dpi_2 
+40d2 202040d4 branch mouse_p3212_dpi 
+
+mouse_set_p3212_cpi3:
+40d3 6fe0c9aa fetch 1 ,mem_3212_dpi_3 
+
+mouse_p3212_dpi:
+40d4 67e0c9af store 1 ,mem_mouse_cpi_count 
+40d5 1fed7e00 lshift8 pdata ,pdata 
+40d6 1fe22200 copy pdata ,rega 
+40d7 1fe0fe0d add pdata ,mouse_p3212_dpi_xaddress ,pdata 
+40d8 20405af1 call twspi_write 
+40d9 1a227e00 copy rega ,pdata 
+40da 1fe0fe0e add pdata ,mouse_p3212_dpi_yaddress ,pdata 
+40db 20205af1 branch twspi_write 
+
+mouse_seting_3610_dpi:
+40dc 6fe0c965 fetch 1 ,mem_mouse_dpi 
+40dd c00040e3 beq mouse_dpi_level1 ,mouse_set_p3610_cpi0 
+40de c000c0e1 beq mouse_dpi_level2 ,mouse_set_p3610_cpi1 
+40df c00140e5 beq mouse_dpi_level3 ,mouse_set_p3610_cpi2 
+40e0 c001c0e7 beq mouse_dpi_level4 ,mouse_set_p3610_cpi3 
+
+mouse_set_p3610_cpi1:
+40e1 6fe0c9ac fetch 1 ,mem_3610_dpi_1 
+40e2 202040e8 branch mouse_p3610_dpi 
+
+mouse_set_p3610_cpi0:
+40e3 6fe0c9ab fetch 1 ,mem_3610_dpi_0 
+40e4 202040e8 branch mouse_p3610_dpi 
+
+mouse_set_p3610_cpi2:
+40e5 6fe0c9ad fetch 1 ,mem_3610_dpi_2 
+40e6 202040e8 branch mouse_p3610_dpi 
+
+mouse_set_p3610_cpi3:
+40e7 6fe0c9ae fetch 1 ,mem_3610_dpi_3 
+
+mouse_p3610_dpi:
+40e8 67e0c9af store 1 ,mem_mouse_cpi_count 
+40e9 20403f81 call mouse_spi_sdio_gpio_pollup 
+40ea 6fe0c9af fetch 1 ,mem_mouse_cpi_count 
+
+mouse_reset_p3610_dpi:
+40eb 1fe0fe80 add pdata ,0x80 ,pdata 
+40ec 1fed7e00 lshift8 pdata ,pdata 
+40ed 1fe0fe05 add pdata ,mouse_p3610_dpi_address ,pdata 
+40ee 1fe22200 copy pdata ,rega 
+
+mouse_set_sensor_reg:
+40ef 5800ba41 setarg 0xba41 
+40f0 20405ae5 call sensor_write 
+40f1 20000fa0 nop 4000 
+40f2 5800ff7f setarg 0xff7f 
+40f3 20405ae5 call sensor_write 
+40f4 1a227e00 copy rega ,pdata 
+40f5 20405ae5 call sensor_write 
+40f6 5800007f setarg 0x007f 
+40f7 20405ae5 call sensor_write 
+40f8 5800b541 setarg 0xb541 
+40f9 20205ae5 branch sensor_write 
+
+mouse_key:
+40fa 20404136 call mouse_check_key_gpio 
+40fb 2040410b call mouse_ghost_key_check 
+40fc 20403e82 call mouse_set_mult 
+40fd 20404106 call mouse_24g_key 
+40fe 1a227e00 copy rega ,pdata 
+40ff 6848c8bb fetcht 1 ,mem_mouse_key_last 
+4100 67e0c8bb store 1 ,mem_mouse_key_last 
+4101 67e0c8b3 store 1 ,mem_mouse_key 
+4102 9842fe00 ixor temp ,pdata 
+4103 1fe67c00 sub pdata ,0 ,null 
+4104 20628000 rtn zero 
+4105 20207e62 branch enable_user 
+
+mouse_24g_key:
+4106 c6930000 rtnmark0 mark_24g 
+4107 1a227e00 copy rega ,pdata 
+4108 207a0000 rtn blank 
+4109 67e0c8b3 store 1 ,mem_mouse_key 
+410a 20207e62 branch enable_user 
+
+mouse_ghost_key_check:
+410b 704b3d00 jam 0 ,mem_mouse_matrix_key_cow_count 
+410c 704b3e00 jam 0 ,mem_mouse_matrix_key_row_count 
+410d 704b3f00 jam 0 ,mem_mouse_ghost_flag 
+410e 1fe20400 copy pdata ,temp 
+410f 2040411b call mouse_ghost_key_check_l_bk 
+4110 2040411e call mouse_ghost_key_check_m_fw 
+4111 20404121 call mouse_ghost_key_check_bk_fw 
+4112 20404124 call mouse_ghost_key_check_lmr 
+4113 6fe0cb3e fetch 1 ,mem_mouse_matrix_key_row_count 
+4114 207a0000 rtn blank 
+4115 6fe0cb3d fetch 1 ,mem_mouse_matrix_key_cow_count 
+4116 207a0000 rtn blank 
+4117 704b3f01 jam 1 ,mem_mouse_ghost_flag 
+4118 6fe0c8bb fetch 1 ,mem_mouse_key_last 
+4119 1fe22200 copy pdata ,rega 
+411a 20600000 rtn 
+
+mouse_ghost_key_check_l_bk:
+411b 18417e09 and temp ,mouse_l_bk_button ,pdata 
+411c c004c12c beq mouse_l_bk_button ,mouse_matrix_cow_more_than_one_key 
+411d 20600000 rtn 
+
+mouse_ghost_key_check_m_fw:
+411e 18417e14 and temp ,mouse_m_fw_button ,pdata 
+411f c00a412c beq mouse_m_fw_button ,mouse_matrix_cow_more_than_one_key 
+4120 20600000 rtn 
+
+mouse_ghost_key_check_bk_fw:
+4121 18417e18 and temp ,mouse_bk_fw_button ,pdata 
+4122 c00c412a beq mouse_bk_fw_button ,mouse_matrix_row_more_than_one_key 
+4123 20600000 rtn 
+
+mouse_ghost_key_check_lmr:
+4124 18417e07 and temp ,mouse_lmr_button ,pdata 
+4125 c001c12a beq mouse_lr_button ,mouse_matrix_row_more_than_one_key 
+4126 c002c12a beq mouse_lm_button ,mouse_matrix_row_more_than_one_key 
+4127 c003412a beq mouse_rm_button ,mouse_matrix_row_more_than_one_key 
+4128 c003c12a beq mouse_lmr_button ,mouse_matrix_row_more_than_one_key 
+4129 20600000 rtn 
+
+mouse_matrix_row_more_than_one_key:
+412a 704b3e01 jam 1 ,mem_mouse_matrix_key_row_count 
+412b 20600000 rtn 
+
+mouse_matrix_cow_more_than_one_key:
+412c 704b3d01 jam 1 ,mem_mouse_matrix_key_cow_count 
+412d 20600000 rtn 
+
+mouse_key_check_once:
+412e 704b3303 jam 0x03 ,mem_mouse_lkey_press_status 
+412f 704b3503 jam 0x03 ,mem_mouse_mkey_press_status 
+4130 704b3403 jam 0x03 ,mem_mouse_rkey_press_status 
+4131 20404136 call mouse_check_key_gpio 
+4132 704b3300 jam 0 ,mem_mouse_lkey_press_status 
+4133 704b3500 jam 0 ,mem_mouse_mkey_press_status 
+4134 704b3400 jam 0 ,mem_mouse_rkey_press_status 
+4135 20600000 rtn 
+
+mouse_check_key_gpio:
+4136 44ebc01a bpatch patch1a_7 ,mem_patch1a 
+4137 da200000 arg 0 ,rega 
+4138 20404140 call mouse_check_lkey_gpio 
+4139 20404146 call mouse_check_rkey_gpio 
+413a 2040414c call mouse_check_mkey_gpio 
+413b 20404152 call mouse_check_bkkey_gpio 
+413c 20404163 call mouse_check_fwkey_gpio 
+413d 20404178 call mouse_check_customerkey_gpio 
+413e 1a227e00 copy rega ,pdata 
+413f 20600000 rtn 
+
+mouse_check_lkey_gpio:
+4140 704b3b00 jam mouse_l_key ,mem_mouse_key_temp 
+4141 6848c8e4 fetcht 1 ,mem_lbutton_gpio 
+4142 6fe0cb33 fetch 1 ,mem_mouse_lkey_press_status 
+4143 20404195 call mouse_check_key_connect_gnd 
+4144 67e0cb33 store 1 ,mem_mouse_lkey_press_status 
+4145 20600000 rtn 
+
+mouse_check_rkey_gpio:
+4146 704b3b01 jam mouse_r_key ,mem_mouse_key_temp 
+4147 6848c8e5 fetcht 1 ,mem_rbutton_gpio 
+4148 6fe0cb34 fetch 1 ,mem_mouse_rkey_press_status 
+4149 20404195 call mouse_check_key_connect_gnd 
+414a 67e0cb34 store 1 ,mem_mouse_rkey_press_status 
+414b 20600000 rtn 
+
+mouse_check_mkey_gpio:
+414c 704b3b02 jam mouse_m_key ,mem_mouse_key_temp 
+414d 6848c8e6 fetcht 1 ,mem_mbutton_gpio 
+414e 6fe0cb35 fetch 1 ,mem_mouse_mkey_press_status 
+414f 20404195 call mouse_check_key_connect_gnd 
+4150 67e0cb35 store 1 ,mem_mouse_mkey_press_status 
+4151 20600000 rtn 
+
+mouse_check_bkkey_gpio:
+4152 6fe0c8e7 fetch 1 ,mem_bk_button_gpio 
+4153 c17f8000 rtneq gpio_disable 
+4154 704b3b03 jam mouse_bk_key ,mem_mouse_key_temp 
+4155 6848c8e7 fetcht 1 ,mem_bk_button_gpio 
+4156 204060a8 call gpio_get_bit 
+4157 2020c15f branch mouse_check_bk_button_connect_gnd ,true 
+4158 6848c8ea fetcht 1 ,mem_matrix_public_gpio 
+4159 204060b8 call gpio_out_active 
+415a 6848c8e7 fetcht 1 ,mem_bk_button_gpio 
+415b 6fe0cb36 fetch 1 ,mem_mouse_bkkey_press_status 
+415c 20404195 call mouse_check_key_connect_gnd 
+
+mouse_check_bkkey_gpio_end:
+415d 67e0cb36 store 1 ,mem_mouse_bkkey_press_status 
+415e 20204174 branch mouse_matrix_public_gpio_reset 
+
+mouse_check_bk_button_connect_gnd:
+415f 6848c8ea fetcht 1 ,mem_matrix_public_gpio 
+4160 6fe0cb36 fetch 1 ,mem_mouse_bkkey_press_status 
+4161 20404195 call mouse_check_key_connect_gnd 
+4162 2020415d branch mouse_check_bkkey_gpio_end 
+
+mouse_check_fwkey_gpio:
+4163 6fe0c8e8 fetch 1 ,mem_fw_button_gpio 
+4164 c17f8000 rtneq gpio_disable 
+4165 704b3b04 jam mouse_fw_key ,mem_mouse_key_temp 
+4166 6848c8e8 fetcht 1 ,mem_fw_button_gpio 
+4167 204060a8 call gpio_get_bit 
+4168 2020c170 branch mouse_check_fw_button_connect_gnd ,true 
+4169 6848c8ea fetcht 1 ,mem_matrix_public_gpio 
+416a 204060b8 call gpio_out_active 
+416b 6848c8e8 fetcht 1 ,mem_fw_button_gpio 
+416c 6fe0cb37 fetch 1 ,mem_mouse_fwkey_press_status 
+416d 20404195 call mouse_check_key_connect_gnd 
+
+mouse_check_fwkey_gpio_end:
+416e 67e0cb37 store 1 ,mem_mouse_fwkey_press_status 
+416f 20204174 branch mouse_matrix_public_gpio_reset 
+
+mouse_check_fw_button_connect_gnd:
+4170 6848c8ea fetcht 1 ,mem_matrix_public_gpio 
+4171 6fe0cb37 fetch 1 ,mem_mouse_fwkey_press_status 
+4172 20404195 call mouse_check_key_connect_gnd 
+4173 2020416e branch mouse_check_fwkey_gpio_end 
+
+mouse_matrix_public_gpio_reset:
+4174 6848c8ea fetcht 1 ,mem_matrix_public_gpio 
+4175 204060b4 call gpio_out_inactive 
+4176 6848c8ea fetcht 1 ,mem_matrix_public_gpio 
+4177 20203f63 branch mouse_gpio_config_input_pu 
+
+mouse_check_customerkey_gpio:
+4178 704b3000 jam 0 ,mem_customer_key 
+4179 6fe44b50 fetch mouse_flag_len ,mem_mouse_flag 
+417a c40a8000 rtnbit0 mouse_enable_keyboard 
+417b 6fe0c8ec fetch 1 ,mem_customer_key_gpio 
+417c c17f8000 rtneq gpio_disable 
+417d 704b3b07 jam mouse_customer_key ,mem_mouse_key_temp 
+417e 6848c8ec fetcht 1 ,mem_customer_key_gpio 
+417f 6fe0cb3a fetch 1 ,mem_mouse_customerkey_press_status 
+4180 20404195 call mouse_check_key_connect_gnd 
+4181 67e0cb3a store 1 ,mem_mouse_customerkey_press_status 
+4182 1a227e00 copy rega ,pdata 
+4183 c283c188 bbit1 mouse_customer_key ,mouse_customerkey_press 
+4184 2040418b call mouse_customerkey_release 
+
+mouse_check_customerkey_gpio_exit:
+4185 6fe0cb31 fetch 1 ,mem_customer_data_trigger 
+4186 67e0cb32 store 1 ,mem_customer_data_trigger_last 
+4187 20600000 rtn 
+
+mouse_customerkey_press:
+4188 704b3101 jam 1 ,mem_customer_data_trigger 
+4189 2040418e call mouse_customer_key_need_send 
+418a 20204185 branch mouse_check_customerkey_gpio_exit 
+
+mouse_customerkey_release:
+418b 704b3100 jam 0 ,mem_customer_data_trigger 
+418c 6fe0cb32 fetch 1 ,mem_customer_data_trigger_last 
+418d 207a0000 rtn blank 
+
+mouse_customer_key_need_send:
+418e 704b3001 jam 1 ,mem_customer_key 
+418f 20600000 rtn 
+
+mouse_check_matrix_button_connect_gnd:
+4190 204060a8 call gpio_get_bit 
+4191 6848cb3b fetcht 1 ,mem_mouse_key_temp 
+4192 18420e00 copy temp ,queue 
+4193 2020c1a1 branch mouse_key_press ,true 
+4194 2020419f branch mouse_key_release 
+
+mouse_check_key_connect_gnd:
+4195 1fe3fe00 lshift pdata ,pdata 
+4196 1fe22400 copy pdata ,regb 
+4197 204060a8 call gpio_get_bit 
+4198 7920a400 setflag true ,0 ,regb 
+4199 1a417e07 and regb ,0x07 ,pdata 
+419a 6848cb3b fetcht 1 ,mem_mouse_key_temp 
+419b 18420e00 copy temp ,queue 
+419c c003c1a1 beq 0x07 ,mouse_key_press 
+419d c000419f beq 0x00 ,mouse_key_release 
+419e 20600000 rtn 
+
+mouse_key_release:
+419f f93fa200 qset0 rega 
+41a0 20600000 rtn 
+
+mouse_key_press:
+41a1 f9202200 qset1 rega 
+41a2 20600000 rtn 
+
+mouse_init_sunt:
+41a3 44ec401b bpatch patch1b_0 ,mem_patch1b 
+41a4 20403f72 call mouse_sensor_spi_init 
+41a5 20758000 rtn wake 
+41a6 2040421a call mouse_sensor_poweron 
+
+mouse_init_sensor:
+41a7 204041bf call mouse_init_3610sensor_reset 
+41a8 204041b8 call mouse_read_sensor_id 
+41a9 c01f41c7 beq p3610_id1 ,mouse_init_p3610 
+41aa c01841d6 beq p32xx_id1 ,mouse_init_p32xx_id2_judge 
+41ab c018c20a beq p3065_id1 ,mouse_init_p3065 
+41ac 204041af call mouse_twspi_reset 
+41ad 20001af4 nop 6900 
+41ae 202041a7 branch mouse_init_sensor 
+
+mouse_twspi_reset:
+41af 6fe0c4cd fetch 1 ,mem_enable_spi2_flag 
+41b0 c000c1b2 beq 1 ,mouse_twspi_reset2 
+41b1 202041b5 branch mouse_twspi_reset1 
+
+mouse_twspi_reset2:
+41b2 5800001e setarg mouse_spi2_clk_gpio 
+41b3 20405abf call twspi2_reset 
+41b4 20203f79 branch mouse_spid_init_pin 
+
+mouse_twspi_reset1:
+41b5 5800000a setarg mouse_spi1_clk_gpio 
+41b6 20405ab2 call twspi_reset 
+41b7 20203f79 branch mouse_spid_init_pin 
+
+mouse_read_sensor_id:
+41b8 58000001 setarg pan_reg_pid_h 
+41b9 20405af3 call twspi_read 
+41ba 67e0c995 store 1 ,mem_sensor_id2 
+41bb 58000000 setarg pan_reg_pid_l 
+41bc 20405af3 call twspi_read 
+41bd 67e0c994 store 1 ,mem_sensor_id1 
+41be 20600000 rtn 
+
+mouse_init_3610sensor_reset:
+41bf 6fe0ca4e fetch 1 ,mem_sensor_reset_gpio 
+41c0 c17f8000 rtneq gpio_disable 
+41c1 6848ca4e fetcht 1 ,mem_sensor_reset_gpio 
+41c2 204060b8 call gpio_out_active 
+41c3 20407d20 call delay_10ms 
+41c4 6848ca4e fetcht 1 ,mem_sensor_reset_gpio 
+41c5 204060b4 call gpio_out_inactive 
+41c6 20207d20 branch delay_10ms 
+
+mouse_init_p3610:
+41c7 7048e205 jam p3610 ,mem_config_sensor_type 
+41c8 5800ba41 setarg 0xba41 
+41c9 20405ae5 call sensor_write 
+41ca 58000d11 setarg 0x0d11 
+41cb 20405ae5 call sensor_write 
+41cc 5800041b setarg 0x041b 
+41cd 20405ae5 call sensor_write 
+41ce 5800041c setarg 0x041c 
+41cf 20405ae5 call sensor_write 
+41d0 58000f1d setarg 0x0f1d 
+41d1 20405ae5 call sensor_write 
+41d2 58000032 setarg 0x0032 
+41d3 20405ae5 call sensor_write 
+41d4 5800b541 setarg 0xb541 
+41d5 20205ae5 branch sensor_write 
+
+mouse_init_p32xx_id2_judge:
+41d6 6fe0c995 fetch 1 ,mem_sensor_id2 
+41d7 c02d41de beq p_mx8650 ,mouse_mx8650_init_param 
+41d8 c06c41e5 beq p8009_id2 ,mouse_8009_init_param 
+41d9 c068c1f4 beq p3205_tj3t_id2 ,mouse_3205_3t_init_param 
+41da c06941fd beq p3204_tj3l_id2 ,mouse_3204_3l_init_param 
+41db c0014204 beq p3212_id2 ,mouse_3212_init_param 
+41dc c02a4207 beq pka8_id2 ,mouse_ka8_init_param 
+41dd 202041a7 branch mouse_init_sensor 
+
+mouse_mx8650_init_param:
+41de 7048e207 jam mx8650 ,mem_config_sensor_type 
+41df 58008006 setarg 0x8006 
+41e0 20405af1 call twspi_write 
+41e1 20407d20 call delay_10ms 
+41e2 da604a0c arg mem_sensor_8650_init ,regc 
+41e3 20404213 call mouse_sensor_wr_seq 
+41e4 2020409c branch mouse_dpi_config 
+
+mouse_8009_init_param:
+41e5 58000016 setarg 0x16 
+41e6 20405af3 call twspi_read 
+41e7 1fe67cbd sub pdata ,0xbd ,null 
+41e8 2422c1a3 nbranch mouse_init_sunt ,zero 
+41e9 58000019 setarg 0x19 
+41ea 20405af3 call twspi_read 
+41eb 1fe67c55 sub pdata ,0x55 ,null 
+41ec 2422c1a3 nbranch mouse_init_sunt ,zero 
+41ed 5800001b setarg 0x1b 
+41ee 20405af3 call twspi_read 
+41ef 1fe67c1d sub pdata ,0x1d ,null 
+41f0 2422c1a3 nbranch mouse_init_sunt ,zero 
+41f1 7048e208 jam p8009 ,mem_config_sensor_type 
+41f2 da604a34 arg mem_sensor_8009_init ,regc 
+41f3 20204213 branch mouse_sensor_wr_seq 
+
+mouse_3205_3t_init_param:
+41f4 7048e200 jam p3205 ,mem_config_sensor_type 
+41f5 da6049c6 arg mem_sensor_3205_init ,regc 
+41f6 20404213 call mouse_sensor_wr_seq 
+41f7 da6049d0 arg mem_sensor_32xx_init ,regc 
+41f8 20404213 call mouse_sensor_wr_seq 
+41f9 58000943 setarg 0x0943 
+41fa 20405af1 call twspi_write 
+41fb da6049ea arg mem_sensor_32xx_init_1 ,regc 
+41fc 20204213 branch mouse_sensor_wr_seq 
+
+mouse_3204_3l_init_param:
+41fd 7048e203 jam p3204 ,mem_config_sensor_type 
+41fe da6049bc arg mem_sensor_3204_init ,regc 
+41ff 20404213 call mouse_sensor_wr_seq 
+4200 da6049d0 arg mem_sensor_32xx_init ,regc 
+4201 20404213 call mouse_sensor_wr_seq 
+4202 da6049ea arg mem_sensor_32xx_init_1 ,regc 
+4203 20204213 branch mouse_sensor_wr_seq 
+
+mouse_3212_init_param:
+4204 7048e204 jam p3212 ,mem_config_sensor_type 
+4205 da6049b2 arg mem_sensor_3212_init ,regc 
+4206 20204213 branch mouse_sensor_wr_seq 
+
+mouse_ka8_init_param:
+4207 7048e202 jam ka8 ,mem_config_sensor_type 
+4208 da604a26 arg mem_sensor_ka8_init ,regc 
+4209 20204213 branch mouse_sensor_wr_seq 
+
+mouse_init_p3065:
+420a 2040421a call mouse_sensor_poweron 
+420b 6fe0c995 fetch 1 ,mem_sensor_id2 
+420c c0384211 beq p3065_xy_id2 ,mouse_p3065xy_init_param 
+420d c000420f beq p3065_id2 ,mouse_p3065_init_param 
+420e 202041a7 branch mouse_init_sensor 
+
+mouse_p3065_init_param:
+420f 7048e201 jam p3065 ,mem_config_sensor_type 
+4210 20600000 rtn 
+
+mouse_p3065xy_init_param:
+4211 7048e206 jam p3065_xy ,mem_config_sensor_type 
+4212 20600000 rtn 
+
+mouse_sensor_wr_seq:
+4213 efe10013 ifetch 2 ,regc 
+4214 d840ffff arg 0xffff ,temp 
+4215 98467c00 isub temp ,null 
+4216 20628000 rtn zero 
+4217 20405af1 call twspi_write 
+4218 1a60a602 increase 2 ,regc 
+4219 20204213 branch mouse_sensor_wr_seq 
+
+mouse_sensor_poweron:
+421a 20403f72 call mouse_sensor_spi_init 
+421b da604a44 arg mem_sensor_poweron_init ,regc 
+421c 20404213 call mouse_sensor_wr_seq 
+421d 2020409c branch mouse_dpi_config 
+
+mouse_sensor_powerdown:
+421e 204041a3 call mouse_init_sunt 
+421f 20403f72 call mouse_sensor_spi_init 
+
+mouse_sensor_powerdown_next:
+4220 58000806 setarg 0x0806 
+4221 20205af1 branch twspi_write 
+
+mouse_check_sensor_data:
+4222 6fe0c4af fetch 1 ,mem_spi_write_flash_sm 
+4223 c1800000 rtnne flash_sm_no_buys 
+4224 6fe0c8e2 fetch 1 ,mem_config_sensor_type 
+4225 c000422e beq p3205 ,mouse_p32xx_sensor_motion 
+4226 c000c22e beq p3065 ,mouse_p32xx_sensor_motion 
+4227 c001422e beq ka8 ,mouse_p32xx_sensor_motion 
+4228 c001c22e beq p3204 ,mouse_p32xx_sensor_motion 
+4229 c0024252 beq p3212 ,mouse_p3212_sensor_motion 
+422a c002c270 beq p3610 ,mouse_p3610_sensor_motion 
+422b c003422e beq p3065_xy ,mouse_p32xx_sensor_motion 
+422c c00442c8 beq p8009 ,mouse_p8009_sensor_motion 
+422d 2020422e branch mouse_p32xx_sensor_motion 
+
+mouse_p32xx_sensor_motion:
+422e 204042f7 call mouse_clear_sensor_data 
+422f 78547c00 disable user 
+4230 6fe0c8f1 fetch 1 ,mem_sensor_motion_gpio 
+4231 c07fc235 beq gpio_disable ,mouse_p32xx_sensor_motion_2 
+4232 6848c8f1 fetcht 1 ,mem_sensor_motion_gpio 
+4233 204060a8 call gpio_get_bit 
+4234 24608000 nrtn true 
+
+mouse_p32xx_sensor_motion_2:
+4235 58000000 setarg pan_reg_pid_l 
+4236 20405af3 call twspi_read 
+4237 c0984248 bne p32xx_id1 ,mouse_p3065_judge 
+
+mouse_p32xx_sensor_motion_1:
+4238 58000002 setarg pan_reg_motion_staus 
+4239 20405af3 call twspi_read 
+423a c4038000 rtnbit0 7 
+423b 20404310 call mouse_read_sensor_common 
+423c 6fe0c8b4 fetch 1 ,mem_mouse_x 
+423d 20404308 call mouse_data_extsign 
+423e 67e148b4 store 2 ,mem_mouse_x 
+423f 6fe0c8b6 fetch 1 ,mem_mouse_y 
+4240 20404308 call mouse_data_extsign 
+4241 67e148b6 store 2 ,mem_mouse_y 
+4242 6fe0c8fb fetch 1 ,mem_config_sensor_angle 
+4243 c000424a beq mouse_6clk_angle ,mouse_motion32xx_6clk_direction_selection 
+4244 c000c24c beq mouse_9clk_angle ,mouse_motion32xx_9clk_direction_selection 
+4245 c001424e beq mouse_12clk_angle ,mouse_motion32xx_12clk_direction_selection 
+4246 c001c250 beq mouse_3clk_angle ,mouse_motion32xx_3clk_direction_selection 
+4247 20600000 rtn 
+
+mouse_p3065_judge:
+4248 c018c238 beq p3065_id1 ,mouse_p32xx_sensor_motion_1 
+4249 202041af branch mouse_twspi_reset 
+
+mouse_motion32xx_6clk_direction_selection:
+424a 204042e0 call mouse_motion_6clk_direction_dispose 
+424b 20204317 branch mouse_sensor_sdio_low 
+
+mouse_motion32xx_9clk_direction_selection:
+424c 204042e8 call mouse_motion_9clk_direction_dispose 
+424d 20204317 branch mouse_sensor_sdio_low 
+
+mouse_motion32xx_12clk_direction_selection:
+424e 204042e4 call mouse_motion_12clk_direction_dispose 
+424f 20204317 branch mouse_sensor_sdio_low 
+
+mouse_motion32xx_3clk_direction_selection:
+4250 204042f0 call mouse_motion_3clk_direction_dispose 
+4251 20204317 branch mouse_sensor_sdio_low 
+
+mouse_p3212_sensor_motion:
+4252 204042f7 call mouse_clear_sensor_data 
+4253 6fe0c8f1 fetch 1 ,mem_sensor_motion_gpio 
+4254 c07fc258 beq gpio_disable ,mouse_p3212_sensor_motion_1 
+4255 6848c8f1 fetcht 1 ,mem_sensor_motion_gpio 
+4256 204060a8 call gpio_get_bit 
+4257 24608000 nrtn true 
+
+mouse_p3212_sensor_motion_1:
+4258 58000000 setarg pan_reg_pid_l 
+4259 20405af3 call twspi_read 
+425a c09841af bne p32xx_id1 ,mouse_twspi_reset 
+
+mouse_p3212_sensor_motion_2:
+425b 58000002 setarg pan_reg_motion_staus 
+425c 20405af3 call twspi_read 
+425d c4038000 rtnbit0 7 
+425e 20404310 call mouse_read_sensor_common 
+425f 2040426e call mouse_read_3212sensor_xy_high 
+4260 67e0c8ba store 1 ,mem_mouse_xy_h 
+4261 1ff1fe00 rshift4 pdata ,pdata 
+4262 2040430c call mouse_data_extsign_bit3 
+4263 67e0c8b5 store 1 ,mem_mouse_x + 1 
+4264 6fe0c8ba fetch 1 ,mem_mouse_xy_h 
+4265 1fe17e0f and pdata ,0x0f ,pdata 
+4266 2040430c call mouse_data_extsign_bit3 
+4267 67e0c8b7 store 1 ,mem_mouse_y + 1 
+4268 6fe0c8fb fetch 1 ,mem_config_sensor_angle 
+4269 c00042e0 beq mouse_6clk_angle ,mouse_motion_6clk_direction_dispose 
+426a c000c2e8 beq mouse_9clk_angle ,mouse_motion_9clk_direction_dispose 
+426b c00142e4 beq mouse_12clk_angle ,mouse_motion_12clk_direction_dispose 
+426c c001c2f0 beq mouse_3clk_angle ,mouse_motion_3clk_direction_dispose 
+426d 20600000 rtn 
+
+mouse_read_3212sensor_xy_high:
+426e 58000012 setarg 0x12 
+426f 20205af3 branch twspi_read 
+
+mouse_p3610_sensor_motion:
+4270 78547c00 disable user 
+4271 6fe0c8f1 fetch 1 ,mem_sensor_motion_gpio 
+4272 c07fc276 beq gpio_disable ,mouse_p3610_sensor_motion_1 
+4273 6848c8f1 fetcht 1 ,mem_sensor_motion_gpio 
+4274 204060a8 call gpio_get_bit 
+4275 24608000 nrtn true 
+
+mouse_p3610_sensor_motion_1:
+4276 da400002 arg pan_reg_motion_staus ,regb 
+4277 2040428f call mouse_p3610sensor_read 
+4278 c4038000 rtnbit0 7 
+4279 da400000 arg pan_reg_pid_l ,regb 
+427a 2040428f call mouse_p3610sensor_read 
+427b 67e0c994 store 1 ,mem_sensor_id1 
+427c c09f41bf bne p3610_id1 ,mouse_init_3610sensor_reset 
+427d 6fe0c99b fetch 1 ,mem_mouse_move_flag 
+427e 205a4298 call mouse_read_sensor3610_data ,blank 
+427f 70499b01 jam 1 ,mem_mouse_move_flag 
+4280 20404298 call mouse_read_sensor3610_data 
+4281 6fe0c8ba fetch 1 ,mem_mouse_xy_h 
+4282 1ff1fe00 rshift4 pdata ,pdata 
+4283 2040430c call mouse_data_extsign_bit3 
+4284 67e0c8b5 store 1 ,mem_mouse_x + 1 
+4285 6fe0c8ba fetch 1 ,mem_mouse_xy_h 
+4286 1fe17e0f and pdata ,0x0f ,pdata 
+4287 2040430c call mouse_data_extsign_bit3 
+4288 67e0c8b7 store 1 ,mem_mouse_y + 1 
+4289 6fe0c8fb fetch 1 ,mem_config_sensor_angle 
+428a c00042a4 beq 0 ,mouse_motion3610_6clk_direction_selection 
+428b c000c2a8 beq 1 ,mouse_motion3610_9clk_direction_selection 
+428c c00142a6 beq 2 ,mouse_motion3610_12clk_direction_selection 
+428d c001c2aa beq 3 ,mouse_motion3610_3clk_direction_selection 
+428e 20600000 rtn 
+
+mouse_p3610sensor_read:
+428f 20405aed call spi_ncs_enable 
+4290 20000064 nop 100 
+4291 1a427e00 copy regb ,pdata 
+4292 20405af3 call twspi_read 
+4293 1fe22400 copy pdata ,regb 
+4294 20405aef call spi_ncs_disable 
+4295 20000064 nop 100 
+4296 1a427e00 copy regb ,pdata 
+4297 20600000 rtn 
+
+mouse_read_sensor3610_data:
+4298 20405aed call spi_ncs_enable 
+4299 20404310 call mouse_read_sensor_common 
+429a dfe00005 arg 5 ,pdata 
+429b 20405af3 call twspi_read 
+429c 67e0c8ba store 1 ,mem_mouse_xy_h 
+429d dfe00007 arg 7 ,pdata 
+429e 20405af3 call twspi_read 
+429f 67e0c996 store 1 ,mem_sensor_shutter_hi 
+42a0 dfe00008 arg 8 ,pdata 
+42a1 20405af3 call twspi_read 
+42a2 67e0c997 store 1 ,mem_sensor_shutter_lo 
+42a3 20205aef branch spi_ncs_disable 
+
+mouse_motion3610_6clk_direction_selection:
+42a4 204042e0 call mouse_motion_6clk_direction_dispose 
+42a5 202042ac branch mouse_3610_smart_select 
+
+mouse_motion3610_12clk_direction_selection:
+42a6 204042e4 call mouse_motion_12clk_direction_dispose 
+42a7 202042ac branch mouse_3610_smart_select 
+
+mouse_motion3610_9clk_direction_selection:
+42a8 204042e8 call mouse_motion_9clk_direction_dispose 
+42a9 202042ac branch mouse_3610_smart_select 
+
+mouse_motion3610_3clk_direction_selection:
+42aa 204042f0 call mouse_motion_3clk_direction_dispose 
+42ab 202042ac branch mouse_3610_smart_select 
+
+mouse_3610_smart_select:
+42ac 6fe0c998 fetch 1 ,mem_sensor_smart_flag 
+42ad c00042bc beq p3610_smart_enable ,mouse_3610_smart_disable 
+42ae c000c2b0 beq p3610_smart_disable ,mouse_3610_smart_enable 
+42af 20600000 rtn 
+
+mouse_3610_smart_enable:
+42b0 6fe0c996 fetch 1 ,mem_sensor_shutter_hi 
+42b1 c1800000 rtnne 0 
+42b2 6fe0c997 fetch 1 ,mem_sensor_shutter_lo 
+42b3 1fe67c2d sub pdata ,45 ,null 
+42b4 20610000 rtn positive 
+42b5 70499800 jam p3610_smart_enable ,mem_sensor_smart_flag 
+42b6 5800ba41 setarg 0xba41 
+42b7 20405ae5 call sensor_write 
+42b8 58000032 setarg 0x0032 
+42b9 20405ae5 call sensor_write 
+42ba 5800b541 setarg 0xb541 
+42bb 20205ae5 branch sensor_write 
+
+mouse_3610_smart_disable:
+42bc 6fe0c996 fetch 1 ,mem_sensor_shutter_hi 
+42bd c1800000 rtnne 0 
+42be 6fe0c997 fetch 1 ,mem_sensor_shutter_lo 
+42bf 1fe67c2d sub pdata ,45 ,null 
+42c0 24610000 nrtn positive 
+42c1 70499801 jam p3610_smart_disable ,mem_sensor_smart_flag 
+42c2 5800ba41 setarg 0xba41 
+42c3 20405ae5 call sensor_write 
+42c4 58008032 setarg 0x8032 
+42c5 20405ae5 call sensor_write 
+42c6 5800b541 setarg 0xb541 
+42c7 20205ae5 branch sensor_write 
+
+mouse_p8009_sensor_motion:
+42c8 204042f7 call mouse_clear_sensor_data 
+42c9 78547c00 disable user 
+42ca 58000002 setarg pan_reg_motion_staus 
+42cb 20405af3 call twspi_read 
+42cc c4038000 rtnbit0 7 
+42cd 58000008 setarg pan_reg_opration_state 
+42ce 20405af3 call twspi_read 
+42cf 203a423b branch mouse_p32xx_sensor_motion_1 + 3 ,blank 
+42d0 58000000 setarg 0 
+42d1 67e348b4 store 6 ,mem_mouse_x 
+42d2 20600000 rtn 
+
+mouse_sensor_set_angle:
+42d3 6fe0c8f9 fetch 1 ,mem_sensor_angle_default 
+42d4 67e0c8fb store 1 ,mem_config_sensor_angle 
+42d5 6fe0c8f8 fetch 1 ,mem_select_sensor_angle_gpio 
+42d6 c17f8000 rtneq gpio_disable 
+42d7 6848c8f8 fetcht 1 ,mem_select_sensor_angle_gpio 
+42d8 20403f63 call mouse_gpio_config_input_pu 
+42d9 6848c8f8 fetcht 1 ,mem_select_sensor_angle_gpio 
+42da 204060a8 call gpio_get_bit 
+42db 2040c2dd call mouse_sensor_switch_angle ,true 
+42dc 20203f61 branch mouse_gpio_config_input_pd 
+
+mouse_sensor_switch_angle:
+42dd 6fe0c8fa fetch 1 ,mem_sensor_angle_switch 
+42de 67e0c8fb store 1 ,mem_config_sensor_angle 
+42df 20600000 rtn 
+
+mouse_motion_6clk_direction_dispose:
+42e0 6fe148b4 fetch 2 ,mem_mouse_x 
+42e1 1fe67e00 sub pdata ,0 ,pdata 
+42e2 67e148b4 store 2 ,mem_mouse_x 
+42e3 20207e62 branch enable_user 
+
+mouse_motion_12clk_direction_dispose:
+42e4 6fe148b6 fetch 2 ,mem_mouse_y 
+42e5 1fe67e00 sub pdata ,0 ,pdata 
+42e6 67e148b6 store 2 ,mem_mouse_y 
+42e7 20207e62 branch enable_user 
+
+mouse_motion_9clk_direction_dispose:
+42e8 6fe148b6 fetch 2 ,mem_mouse_y 
+42e9 1fe67e00 sub pdata ,0 ,pdata 
+42ea 67e148b6 store 2 ,mem_mouse_y 
+42eb 6fe148b4 fetch 2 ,mem_mouse_x 
+42ec 1fe67e00 sub pdata ,0 ,pdata 
+42ed 67e148b4 store 2 ,mem_mouse_x 
+42ee 204042f2 call mouse_sensor_data_swap_places 
+42ef 20207e62 branch enable_user 
+
+mouse_motion_3clk_direction_dispose:
+42f0 204042f2 call mouse_sensor_data_swap_places 
+42f1 20207e62 branch enable_user 
+
+mouse_sensor_data_swap_places:
+42f2 6fe148b6 fetch 2 ,mem_mouse_y 
+42f3 684948b4 fetcht 2 ,mem_mouse_x 
+42f4 67e148b4 store 2 ,mem_mouse_x 
+42f5 604948b6 storet 2 ,mem_mouse_y 
+42f6 20600000 rtn 
+
+mouse_clear_sensor_data:
+42f7 6fe0c99b fetch 1 ,mem_mouse_move_flag 
+42f8 205a4310 call mouse_read_sensor_common ,blank 
+42f9 70499b01 jam 1 ,mem_mouse_move_flag 
+42fa 20600000 rtn 
+
+mouse_clear_sensor_data_by_reset:
+42fb 704a4f01 jam 1 ,mem_mouse_clear_sensor_data_flag 
+42fc 20402325 call le_set_config_more_data 
+
+mouse_init_sensor_reset:
+42fd 20405aed call spi_ncs_enable 
+42fe 204041a3 call mouse_init_sunt 
+42ff 20205aef branch spi_ncs_disable 
+
+mouse_data_xy_release:
+4300 6fe0c8f1 fetch 1 ,mem_sensor_motion_gpio 
+4301 c1ff8000 rtnne gpio_disable 
+4302 6fe0ca51 fetch 1 ,mem_mouse_long_mult_flag 
+4303 c1808000 rtnne 1 
+4304 58000000 setarg 0 
+4305 67e0ca51 store 1 ,mem_mouse_long_mult_flag 
+4306 67e248b4 store 4 ,mem_mouse_x 
+4307 202042fd branch mouse_init_sensor_reset 
+
+mouse_data_extsign:
+4308 c4038000 rtnbit0 7 
+4309 d840ff00 arg 0xff00 ,temp 
+430a 9841fe00 ior temp ,pdata 
+430b 20600000 rtn 
+
+mouse_data_extsign_bit3:
+430c c4018000 rtnbit0 3 
+430d d84000f0 arg 0xf0 ,temp 
+430e 9841fe00 ior temp ,pdata 
+430f 20600000 rtn 
+
+mouse_read_sensor_common:
+4310 dfe00003 arg pan_reg_delta_x ,pdata 
+4311 20405af3 call twspi_read 
+4312 67e148b4 store 2 ,mem_mouse_x 
+4313 dfe00004 arg pan_reg_delta_y ,pdata 
+4314 20405af3 call twspi_read 
+4315 67e148b6 store 2 ,mem_mouse_y 
+4316 20600000 rtn 
+
+mouse_sensor_sdio_low:
+4317 d840000b arg mouse_spi1_sdio_gpio ,temp 
+4318 6fe0c4cd fetch 1 ,mem_enable_spi2_flag 
+4319 245a4320 ncall mouse_sensor_sdio_low2 ,blank 
+431a 204060a8 call gpio_get_bit 
+431b 20608000 rtn true 
+431c 5800000a setarg 0x0a 
+431d 20405af3 call twspi_read 
+431e 200003e8 nop 1000 
+431f 20204317 branch mouse_sensor_sdio_low 
+
+mouse_sensor_sdio_low2:
+4320 d840001f arg mouse_spi2_sdio_gpio ,temp 
+4321 20600000 rtn 
+
+mouse_set_sdio_high:
+4322 58008100 setarg 0x8100 
+4323 20205af1 branch twspi_write 
+
+mouse_buletooth_fast_conn_init:
+4324 704a64ff jam 0xff ,mem_mouse_bluetooth_fast_conn_flag 
+4325 6fe0cb58 fetch 1 ,mem_mouse_bluetooth_type 
+4326 c280c328 bbit1 mode_4_mouse ,mouse_ble_fast_conn_init 
+4327 c280432d bbit1 mode_3_mouse ,mouse_bt_fast_conn_init 
+
+mouse_ble_fast_conn_init:
+4328 70448634 jam 0x34 ,mem_xrecord_mode 
+4329 580f0f0f setarg 0x0f0f0f 
+432a 67e1c378 store 3 ,mem_le_lap 
+432b 67e1c37b store 3 ,mem_le_lap + 3 
+432c 20203d88 branch mouse_start_reconnect 
+
+mouse_bt_fast_conn_init:
+432d 70448633 jam 0x33 ,mem_xrecord_mode 
+432e d8c04947 arg mem_mouse_compare_addr_ff ,contr 
+432f 20404608 call mouse_load_bt_device 
+4330 20203d88 branch mouse_start_reconnect 
+
+mouse_buletooth_fast_conn_end:
+4331 44ecc01b bpatch patch1b_1 ,mem_patch1b 
+4332 204045fd call mouse_select_reconn_device 
+4333 2040434d call mouse_bluetooth_fast_conn_disable 
+4334 6fe0c90b fetch 1 ,mem_device_flag 
+4335 c000c338 beq mode_bt_device1 ,mouse_device1_check_auto_discover 
+4336 c001433a beq mode_bt_device2 ,mouse_device2_check_auto_discover 
+4337 20600000 rtn 
+
+mouse_device1_check_auto_discover:
+4338 6fe3490d fetch 6 ,mem_device1_addr 
+4339 2020433b branch mouse_device_check_auto_discover 
+
+mouse_device2_check_auto_discover:
+433a 6fe3492a fetch 6 ,mem_device2_addr 
+
+mouse_device_check_auto_discover:
+433b 684b4947 fetcht 6 ,mem_mouse_compare_addr_ff 
+433c 98467c00 isub temp ,null 
+433d 2022c591 branch mouse_start_discovery ,zero 
+433e 20203d80 branch mouse_start_reconnect_device 
+
+mouse_bt_fast_conn_send_device_name:
+433f 2040434d call mouse_bluetooth_fast_conn_disable 
+4340 6fe0c5fc fetch 1 ,mem_local_name_length 
+4341 1fe0fe03 increase 3 ,pdata 
+4342 1fe22200 copy pdata ,rega 
+4343 20404d9f call hid_malloc_tx_buff 
+4344 6fe144de fetch 2 ,mem_hid_int_remote_cid 
+4345 e7e10005 istore 2 ,contw 
+4346 580004a1 setarg 0x04a1 
+4347 e7e10005 istore 2 ,contw 
+4348 6fe0c5fc fetch 1 ,mem_local_name_length 
+4349 1fe0fe01 increase 1 ,pdata 
+434a 1fe27200 copy pdata ,loopcnt 
+434b d8c045fc arg mem_local_name_length ,contr 
+434c 20207d6d branch memcpy 
+
+mouse_bluetooth_fast_conn_disable:
+434d 704a645a jam 0x5a ,mem_mouse_bluetooth_fast_conn_flag 
+434e 20600000 rtn 
+
+mouse_stop_bluetooth_mode:
+434f 6fe1478b fetch 2 ,mem_ui_state_map 
+4350 c283c35b bbit1 ui_state_bt_reconnect ,mouse_cancel_reconnect 
+4351 c284b0c9 bbit1 ui_state_ble_connected ,app_ble_disconnect 
+4352 c28030b0 bbit1 ui_state_bt_connected ,app_bt_disconnect 
+4353 202045b4 branch mouse_stop_discovery 
+
+mouse_disconnect:
+4354 58000000 setarg 0 
+4355 67e14a55 store 2 ,mem_mouse_no_data_timer 
+4356 6fe1478b fetch 2 ,mem_ui_state_map 
+4357 c284b0c9 bbit1 ui_state_ble_connected ,app_ble_disconnect 
+4358 6fe1478b fetch 2 ,mem_ui_state_map 
+4359 c28030b0 bbit1 ui_state_bt_connected ,app_bt_disconnect 
+435a 20600000 rtn 
+
+mouse_cancel_reconnect:
+435b 20404715 call mouse_bt_cannel_reconn_enable 
+435c 2020795f branch check_51cmd_bb_reconn_cancel 
+
+mouse_check_125hz:
+435d 6fe44b50 fetch mouse_flag_len ,mem_mouse_flag 
+435e c40d8000 rtnbit0 mouse_enable_bt_125hz 
+
+mouse_bluetooth_125hz:
+435f 24344365 nbranch mouse_bluetooth_125hz_clear ,user 
+4360 6fe0ca50 fetch 1 ,mem_bluetooth_125hz_cnt 
+4361 1fe0fe01 increase 1 ,pdata 
+4362 1fe17e0f and_into 0x0f ,pdata 
+4363 67e0ca50 store 1 ,mem_bluetooth_125hz_cnt 
+4364 247a0000 nrtn blank 
+
+mouse_bluetooth_125hz_clear:
+4365 704a5000 jam 0 ,mem_bluetooth_125hz_cnt 
+4366 78547c00 disable user 
+4367 20600000 rtn 
+
+mouse_current_mult_update:
+4368 6fe0c8f1 fetch 1 ,mem_sensor_motion_gpio 
+4369 c1ff8000 rtnne gpio_disable 
+436a 70417a00 jam 0 ,mem_lpm_mult 
+436b 704a521e jam 30 ,mem_mouse_current_mult_timer 
+436c 20600000 rtn 
+
+mouse_priority_bb_event:
+436d 44ed401b bpatch patch1b_2 ,mem_patch1b 
+436e 1a627e00 copy regc ,pdata 
+436f c00a4389 beq bt_evt_le_connected ,mouse_le_bb_event_connected 
+4370 c000c434 beq bt_evt_bb_connected ,mouse_bb_event_connected 
+4371 c00ac399 beq bt_evt_le_disconnected ,mouse_le_bb_disconnected 
+4372 c0014438 beq bt_evt_bb_disconnected ,mouse_bb_disconnected 
+4373 c002c45b beq bt_evt_setup_complete ,mouse_bt_event_setup_complete 
+4374 c008458c beq bt_evt_button_long_pressed ,mouse_bb_event_discovery_btn 
+4375 c009445e beq bt_evt_hid_handshake ,mouse_bt_hid_handshake 
+4376 c003446c beq bt_evt_hid_connected ,mouse_bt_hid_connected 
+4377 c0024470 beq bt_evt_reconn_failed ,mouse_bb_event_reconn_failed 
+4378 c009c470 beq bt_evt_reconn_page_timeout ,mouse_bb_event_reconn_timeout 
+4379 c00cb0a6 beq bt_evt_switch_not_accept ,app_bt_role_switch 
+437a c015c47b beq bt_evt_switch_success_master ,mouse_enter_sniff_check 
+437b c010c481 beq bt_evt_sniff_not_accept ,mouse_sniff_not_accept 
+437c c0054488 beq bt_evt_pincode_req ,mouse_bb_event_pincode 
+437d c0173094 beq bt_evt_remote_unsniff ,app_start_auto_sniff 
+437e c018c3a4 beq bt_evt_le_pairing_success ,mouse_le_pairing_success 
+437f c014c3a6 beq bt_evt_le_enc_info ,mouse_le_enc_info 
+4380 c01943a8 beq bt_evt_le_start_enc ,mouse_le_ll_start_encryt 
+4381 c01f43b3 beq bt_evt_le_pairing_complete ,mouse_le_pairing_complete 
+4382 c02043b4 beq bt_evt_le_parse_conn_papa_update_rsp ,mouse_le_conn_param_update_rsp_recieved 
+4383 c013c48a beq bt_evt_virtual_cable_unplug ,mouse_irtual_cable_unplug 
+4384 c01cc84e beq bt_evt_24g_pairing_complete ,mouse_24g_pairing_complete 
+4385 c01d4830 beq bt_evt_24g_attempt_fail ,mouse_24g_attempt_fail 
+4386 c01e4844 beq bt_evt_24g_attempt_success ,mouse_24g_attempt_success 
+4387 c02243ca beq bt_evt_le_parse_conn_param_accepted ,mouse_le_parse_conn_param_accepted 
+4388 20600000 rtn 
+
+mouse_le_bb_event_connected:
+4389 704a5100 jam 0 ,mem_mouse_long_mult_flag 
+438a 204042fd call mouse_init_sensor_reset 
+438b 704a6a01 jam 1 ,mem_mouse_le_bb_connected_flag 
+438c 2040481f call mouse_24g_first_store_reconn_info 
+438d 6fe0ca6b fetch 1 ,mem_mouse_le_reconnect_flag 
+438e 243a4390 nbranch mouse_le_bb_event_connected_next ,blank 
+438f 704a6c14 jam 0x14 ,mem_mouse_send_secutiry_request_timer 
+
+mouse_le_bb_event_connected_next:
+4390 6fe14480 fetch app_disc_rsn_size ,mem_app_disconn_reason_flag 
+4391 793ffe00 set0 app_disc_by_button ,pdata 
+4392 67e14480 store app_disc_rsn_size ,mem_app_disconn_reason_flag 
+4393 58000000 setarg 0 
+4394 67e14b1b store 2 ,mem_mouse_direct_timer 
+4395 6fe14a94 fetch 2 ,mem_le_battery_level_updata_timer_init 
+4396 67e14a96 store 2 ,mem_le_battery_level_updata_timer 
+4397 20404582 call mouse_no_data_timer_init 
+4398 202045b4 branch mouse_stop_discovery 
+
+mouse_le_bb_disconnected:
+4399 704a6a00 jam 0 ,mem_mouse_le_bb_connected_flag 
+439a 58000006 setarg le_interval_7_5ms 
+439b 6fe44b50 fetch mouse_flag_len ,mem_mouse_flag 
+439c c28dc39e bbit1 mouse_enable_bt_125hz ,mouse_le_bb_disconnected_next 
+439d 58000007 setarg le_interval_8_75ms 
+
+mouse_le_bb_disconnected_next:
+439e 67e14370 store 2 ,mem_le_interval_min 
+439f 67e14372 store 2 ,mem_le_interval_min + 2 
+43a0 704a9800 jam le_lpm_enable ,mem_mouse_le_conn_param_reject 
+43a1 704a4f00 jam 0 ,mem_mouse_clear_sensor_data_flag 
+43a2 20402327 call le_clr_config_more_data 
+43a3 20204438 branch mouse_bb_disconnected 
+
+mouse_le_pairing_success:
+43a4 d8e00002 arg ll_pairing_success_flag ,queue 
+43a5 202043af branch mouse_le_enable_connect_flag 
+
+mouse_le_enc_info:
+
+mouse_updata_le_param:
+43a6 70095b12 jam bt_cmd_le_update_conn ,mem_fifo_temp 
+43a7 202078a8 branch ui_ipc_send_cmd 
+
+mouse_le_ll_start_encryt:
+43a8 6fe0ca6b fetch 1 ,mem_mouse_le_reconnect_flag 
+43a9 c000c3ab beq 1 ,mouse_le_ll_reconn_start_encryt 
+43aa 202043ad branch mouse_le_ll_enable_start_enc_flag 
+
+mouse_le_ll_reconn_start_encryt:
+43ab 204043a6 call mouse_updata_le_param 
+43ac 704b1a14 jam 20 ,mem_le_start_encrypt_timer 
+
+mouse_le_ll_enable_start_enc_flag:
+43ad d8e00001 arg ll_start_enc_flag ,queue 
+43ae 202043af branch mouse_le_enable_connect_flag 
+
+mouse_le_enable_connect_flag:
+43af 6fe0cb19 fetch 1 ,mem_le_connect_status_flag 
+43b0 f9207e00 qset1 pdata 
+43b1 67e0cb19 store 1 ,mem_le_connect_status_flag 
+43b2 20600000 rtn 
+
+mouse_le_pairing_complete:
+43b3 202030d7 branch app_ble_store_reconn_info 
+
+mouse_le_conn_param_update_rsp_recieved:
+43b4 6fe143d9 fetch 2 ,mem_le_l2cap_signaling_conn_param_update_rsp_result 
+43b5 c1000000 rtneq ble_signaling_connect_parameter_update_accepted 
+43b6 6fe08289 fetch 1 ,mem_le_tsniff 
+43b7 1feb7e00 rshift2 pdata ,pdata 
+43b8 1fe67c0c sub pdata ,le_interval_15ms ,null 
+43b9 20610000 rtn positive 
+43ba 58000009 setarg le_interval_11_25ms 
+43bb 67e14370 store 2 ,mem_le_interval_min 
+43bc 67e14372 store 2 ,mem_le_interval_min + 2 
+43bd 204043a6 call mouse_updata_le_param 
+
+mouse_le_conn_param_lpm_disable:
+43be 704a9801 jam le_lpm_disable ,mem_mouse_le_conn_param_reject 
+43bf 20600000 rtn 
+
+mouse_le_conn_param_lpm_enable:
+43c0 704a9800 jam le_lpm_enable ,mem_mouse_le_conn_param_reject 
+43c1 20600000 rtn 
+
+mouse_le_bb_event_connect_complete:
+43c2 6fe0ca6b fetch 1 ,mem_mouse_le_reconnect_flag 
+43c3 247a0000 nrtn blank 
+43c4 6fe0c435 fetch 1 ,mem_le_att_handle 
+43c5 1fe67e22 sub pdata ,34 ,pdata 
+43c6 24628000 nrtn zero 
+43c7 704b1a00 jam 0 ,mem_le_start_encrypt_timer 
+
+mouse_le_write_enable:
+43c8 d8e00000 arg write_req_enable_flag ,queue 
+43c9 202043af branch mouse_le_enable_connect_flag 
+
+mouse_le_parse_conn_param_accepted:
+43ca 6fe082c1 fetch 1 ,mem_le_new_conninterval 
+43cb 1fe67c0c sub pdata ,le_interval_15ms ,null 
+43cc 242143be nbranch mouse_le_conn_param_lpm_disable ,positive 
+43cd 6fe082c3 fetch 1 ,mem_le_new_connslavelatency 
+43ce 6848cb2f fetcht 1 ,mem_lpm_mult_init 
+43cf 98467c00 isub temp ,null 
+43d0 202143d4 branch mouse_le_lpm_mult_reinit ,positive 
+43d1 6fe082c3 fetch 1 ,mem_le_new_connslavelatency 
+43d2 67e0c17a store 1 ,mem_lpm_mult 
+43d3 202043c0 branch mouse_le_conn_param_lpm_enable 
+
+mouse_le_lpm_mult_reinit:
+43d4 6fe0cb2f fetch 1 ,mem_lpm_mult_init 
+43d5 67e0c17a store 1 ,mem_lpm_mult 
+43d6 202043c0 branch mouse_le_conn_param_lpm_enable 
+
+mouse_le_clean_connect_flag:
+43d7 704b1900 jam 0 ,mem_le_connect_status_flag 
+43d8 20600000 rtn 
+
+mouse_le:
+43d9 44edc01b bpatch patch1b_3 ,mem_patch1b 
+43da 20402382 call le_fifo_check_nearly_full 
+43db 247a0000 nrtn blank 
+43dc 6fe0ca64 fetch 1 ,mem_mouse_bluetooth_fast_conn_flag 
+43dd c07fc3e1 beq 0xff ,mouse_le_next 
+43de 6fe0cb19 fetch 1 ,mem_le_connect_status_flag 
+43df 1fe17e03 and pdata ,0x03 ,pdata 
+43e0 c1818000 rtnne 0x03 
+
+mouse_le_next:
+43e1 6fe0ca4f fetch 1 ,mem_mouse_clear_sensor_data_flag 
+43e2 205a42fb call mouse_clear_sensor_data_by_reset ,blank 
+43e3 6fe44b50 fetch mouse_flag_len ,mem_mouse_flag 
+43e4 c280c40b bbit1 mouse_24g_pairing_flag ,mouse_le_send_empty_packet 
+43e5 c280440b bbit1 mouse_select_device_flag ,mouse_le_send_empty_packet 
+43e6 c282c40b bbit1 mouse_bt_discovery_button_down_flag ,mouse_le_send_empty_packet 
+43e7 c283440b bbit1 mouse_bt_discovery_button_long_down_flag ,mouse_le_send_empty_packet 
+43e8 20403f87 call mouse_motion 
+43e9 2040435d call mouse_check_125hz 
+43ea 24740000 nrtn user 
+43eb 20404368 call mouse_current_mult_update 
+43ec 20404300 call mouse_data_xy_release 
+43ed 20404034 call mouse_wheel_trigger 
+43ee 6fe44b50 fetch mouse_flag_len ,mem_mouse_flag 
+43ef c30ac3f2 bbit0 mouse_enable_keyboard ,mouse_le_send_mouse_data 
+43f0 6fe0cb30 fetch 1 ,mem_customer_key 
+43f1 c000c3f3 beq 1 ,mouse_le_send_keyboard_package_data 
+
+mouse_le_send_mouse_data:
+43f2 2020440d branch mouse_fill_mouse_data_le 
+
+mouse_le_send_keyboard_package_data:
+43f3 6fe0cb31 fetch 1 ,mem_customer_data_trigger 
+43f4 203a43fd branch mouse_le_release_keyboard_data ,blank 
+43f5 6fe44b72 fetch 8 ,mem_customer_key_press + 1 
+
+mouse_fill_keyboard_package_data_le:
+43f6 67e4095c store 8 ,mem_pdatatemp 
+43f7 6fe0cb71 fetch 1 ,mem_customer_key_press 
+43f8 c001c3ff beq kb_multikey_report_id ,mouse_fill_multimedia_key_data_le 
+43f9 c0014402 beq kb_system_conctrl_report_id ,mouse_fill_systemctrl_key_data_le 
+43fa 704a8a08 jam 8 ,mem_le_data_len 
+43fb 68494a8b fetcht 2 ,mem_le_keyboard_handle 
+43fc 20204412 branch mouse_fill_data_le 
+
+mouse_le_release_keyboard_data:
+43fd 6fe44b7b fetch 8 ,mem_customer_key_release + 1 
+43fe 202043f6 branch mouse_fill_keyboard_package_data_le 
+
+mouse_fill_multimedia_key_data_le:
+43ff 704a8a03 jam 3 ,mem_le_data_len 
+4400 68494a8d fetcht 2 ,mem_le_multimedia_handle 
+4401 20204412 branch mouse_fill_data_le 
+
+mouse_fill_systemctrl_key_data_le:
+4402 704a8a02 jam 2 ,mem_le_data_len 
+4403 68494a8f fetcht 2 ,mem_le_systemctrl_handle 
+4404 20204412 branch mouse_fill_data_le 
+
+mouse_fill_battery_level_le:
+4405 da200001 arg 1 ,rega 
+4406 68494a91 fetcht 2 ,mem_le_battery_level_handle 
+4407 204026bd call le_att_malloc_tx_notify 
+4408 6fe0ca93 fetch 1 ,mem_le_battery_level_percentage 
+4409 e7e08005 istore 1 ,contw 
+440a 20600000 rtn 
+
+mouse_le_send_empty_packet:
+440b 58000000 setarg 0 
+440c 67e3c8b3 store 7 ,mem_mouse_key 
+
+mouse_fill_mouse_data_le:
+440d 704a8a07 jam 7 ,mem_le_data_len 
+440e 6fe3c8b3 fetch 7 ,mem_mouse_key 
+440f 67e3895c store 7 ,mem_pdatatemp 
+4410 68494355 fetcht 2 ,mem_le_notify_handle 
+4411 20204412 branch mouse_fill_data_le 
+
+mouse_fill_data_le:
+4412 6fe0ca8a fetch 1 ,mem_le_data_len 
+4413 1fe22200 copy pdata ,rega 
+4414 204026bd call le_att_malloc_tx_notify 
+4415 6848ca8a fetcht 1 ,mem_le_data_len 
+4416 18427200 copy temp ,loopcnt 
+4417 d8c0095c arg mem_pdatatemp ,contr 
+4418 20207d6d branch memcpy 
+
+mouse_check_51cmd_adv:
+4419 704a6b00 jam 0 ,mem_mouse_le_reconnect_flag 
+441a 6fe1ca70 fetch 3 ,mem_le_adv_ind 
+441b 67e1c3ea store 3 ,mem_le_adv_data + 4 
+441c 20404422 call mouse_le_check_adv_flag 
+441d 58000005 setarg adv_flag_bredr_not_supported | adv_flag_limited_discoverable 
+441e e7e08006 istore 1 ,contr 
+441f d8c04a76 arg mem_le_adv_swift_pair ,contr 
+4420 20404429 call mouse_le_adv_data_update 
+4421 2020791c branch check_51cmd_adv 
+
+mouse_le_check_adv_flag:
+4422 da2043e6 arg mem_le_adv_data ,rega 
+
+mouse_le_check_adv_flag_loop:
+4423 efe08011 ifetch 1 ,rega 
+4424 207a0000 rtn blank 
+4425 98c0a200 iadd contr ,rega 
+4426 efe08006 ifetch 1 ,contr 
+4427 c1008000 rtneq 0x01 
+4428 20204423 branch mouse_le_check_adv_flag_loop 
+
+mouse_le_adv_data_update:
+4429 d8a043f1 arg mem_le_adv_data + 11 ,contw 
+442a df200013 arg 19 ,loopcnt 
+442b 20407d6d call memcpy 
+442c 202022c9 branch le_modified_name_adv 
+
+mouse_bt_sniff_param_interval_setup:
+442d 5800000c setarg classic_interval_7_5ms 
+442e 67e14455 store 2 ,mem_sniff_param_interval 
+442f 6fe44b50 fetch mouse_flag_len ,mem_mouse_flag 
+4430 c38d8000 rtnbit1 mouse_enable_bt_125hz 
+4431 5800000e setarg classic_interval_8_75ms 
+4432 67e14455 store 2 ,mem_sniff_param_interval 
+4433 20600000 rtn 
+
+mouse_bb_event_connected:
+4434 704a5100 jam 0 ,mem_mouse_long_mult_flag 
+4435 204042fd call mouse_init_sensor_reset 
+4436 2040481f call mouse_24g_first_store_reconn_info 
+4437 202045b4 branch mouse_stop_discovery 
+
+mouse_bb_disconnected:
+4438 704b2400 jam 0 ,mem_mouse_enter_sniff_count 
+4439 704b2d00 jam 0 ,mem_mouse_bt_send_first_package_flag 
+443a 2040442d call mouse_bt_sniff_param_interval_setup 
+443b 20404443 call mouse_bb_discon_clear_stack 
+443c 6fe1447e fetch app_disc_rsn_size ,mem_app_disconn_reason 
+443d c283c44a bbit1 app_disc_ble ,mouse4_0_event_bb_disconn 
+443e c2803080 bbit1 app_disc_by_button ,app_disconn_reason_clear 
+443f c280c44e bbit1 app_disc_after_pairing ,mouse_event_light_state_pairing 
+4440 c2814451 bbit1 app_disc_after_reconn ,mouse_event_light_state_hibernate 
+4441 c281c451 bbit1 app_disc_after_sniff ,mouse_event_light_state_hibernate 
+4442 20204591 branch mouse_start_discovery 
+
+mouse_bb_discon_clear_stack:
+4443 58000000 setarg 0 
+4444 67e448bc store 8 ,mem_wheel_tb_old_pinlevel 
+4445 e7e20005 istore 4 ,contw 
+4446 70499b00 jam 0 ,mem_mouse_move_flag 
+4447 70445400 jam app_handshake_null ,mem_app_handshake_flag 
+4448 70432400 jam 0 ,mem_ltk_exists 
+4449 20600000 rtn 
+
+mouse4_0_event_bb_disconn:
+444a 204043d7 call mouse_le_clean_connect_flag 
+444b 6fe1447e fetch app_disc_rsn_size ,mem_app_disconn_reason 
+444c c2803080 bbit1 app_disc_by_button ,app_disconn_reason_clear 
+444d 2020307e branch app_bb_hibernate 
+
+mouse_event_light_state_pairing:
+444e c282c451 bbit1 app_disc_after_handshake ,mouse_event_light_state_hibernate 
+444f c281c451 bbit1 app_disc_after_sniff ,mouse_event_light_state_hibernate 
+4450 20204591 branch mouse_start_discovery 
+
+mouse_event_light_state_hibernate:
+4451 6fe1478b fetch 2 ,mem_ui_state_map 
+4452 c2864591 bbit1 ui_state_btn_down ,mouse_start_discovery 
+4453 20403080 call app_disconn_reason_clear 
+4454 2040412e call mouse_key_check_once 
+4455 2040451b call mouse_commbination_key_process 
+4456 6fe0cb44 fetch 1 ,mem_commbination_key_statue 
+4457 c000be46 beq commbination_key_state_down ,mouse_delay_enter_hibernata 
+4458 6fe14a67 fetch 2 ,mem_mouse_bluetooth_reconnect_timeout 
+4459 247a0000 nrtn blank 
+445a 2020307e branch app_bb_hibernate 
+
+mouse_bt_event_setup_complete:
+445b 20600000 rtn 
+
+mouse_bt_send_first_package_timer_init:
+445c 704b2c04 jam 4 ,mem_mouse_bt_send_first_package_timer 
+445d 20600000 rtn 
+
+mouse_bt_hid_handshake:
+445e 70445401 jam app_handshake_done ,mem_app_handshake_flag 
+445f 204030dd call app_lpm_mult_enable 
+4460 204030d9 call app_bt_store_reconn_info 
+4461 58000000 setarg 0 
+4462 67e14787 store 2 ,mem_discovery_timeout_timer_count 
+4463 67e0c789 store 1 ,mem_hid_handshake_timer_count 
+4464 2040445c call mouse_bt_send_first_package_timer_init 
+4465 202030d5 branch app_bt_enter_sniff 
+
+mouse_bt_hid_handshake_boot_check:
+4466 704b2500 jam 0 ,mem_mouse_bt_boot_mode 
+4467 6fe0c5f5 fetch 1 ,mem_l2cap_rcv_hidtype 
+4468 2feffe00 isolate1 0 ,pdata 
+4469 20608000 rtn true 
+446a 704b2501 jam 1 ,mem_mouse_bt_boot_mode 
+446b 20600000 rtn 
+
+mouse_bt_hid_connected:
+446c 2020446d branch mouse_hid_connected 
+
+mouse_hid_connected:
+446d 58000002 setarg hid_handshake_timeout 
+446e 67e0c789 store 1 ,mem_hid_handshake_timer_count 
+446f 20600000 rtn 
+
+mouse_bb_event_reconn_timeout:
+
+mouse_bb_event_reconn_failed:
+4470 6fe0ca64 fetch 1 ,mem_mouse_bluetooth_fast_conn_flag 
+4471 c07fc331 beq 0xff ,mouse_buletooth_fast_conn_end 
+4472 6fe1478b fetch 2 ,mem_ui_state_map 
+4473 c3860000 rtnbit1 ui_state_btn_down 
+4474 c3830000 rtnbit1 ui_state_bt_discovery 
+4475 c3858000 rtnbit1 ui_state_ble_adv 
+4476 6fe44b50 fetch mouse_flag_len ,mem_mouse_flag 
+4477 c3828000 rtnbit1 mouse_bt_discovery_button_down_flag 
+4478 c299c591 bbit1 mouse_enable_bt_reconnect_timeout_enter_discovery ,mouse_start_discovery 
+4479 c297c81c bbit1 mouse_enable_24g_first_auto_pairing ,mouse_24g_first_bb_event_reconn_timeout 
+447a 2020307e branch app_bb_hibernate 
+
+mouse_enter_sniff_check:
+447b 6fe0cb24 fetch 1 ,mem_mouse_enter_sniff_count 
+447c c1810000 rtnne 2 
+447d 704b2400 jam 0 ,mem_mouse_enter_sniff_count 
+447e 2040442d call mouse_bt_sniff_param_interval_setup 
+447f 2040445c call mouse_bt_send_first_package_timer_init 
+4480 202030d5 branch app_bt_enter_sniff 
+
+mouse_sniff_not_accept:
+4481 6fe0cb24 fetch 1 ,mem_mouse_enter_sniff_count 
+4482 c1010000 rtneq 2 
+4483 1fe0fe01 increase 1 ,pdata 
+4484 67e0cb24 store 1 ,mem_mouse_enter_sniff_count 
+4485 70445512 jam 0x12 ,mem_sniff_param_interval 
+4486 2040445c call mouse_bt_send_first_package_timer_init 
+4487 202030d5 branch app_bt_enter_sniff 
+
+mouse_bb_event_pincode:
+4488 20405aac call pincode_reinit 
+4489 202030a4 branch app_bt_set_pincode 
+
+mouse_irtual_cable_unplug:
+448a 58000001 setarg 0x01 
+448b 67e30041 store 6 ,mem_plap 
+448c 7000e833 jam rec_3_mode ,mem_record_bt_mode 
+448d 202045cd branch mouse_unplug_clean_bdaddr 
+
+mouse_irtual_cable_unplug1:
+448e 5fffffff setarg -1 
+448f 67e30041 store 6 ,mem_plap 
+4490 7000e833 jam rec_3_mode ,mem_record_bt_mode 
+4491 704a64ff jam 0xff ,mem_mouse_bluetooth_fast_conn_flag 
+4492 204045e2 call mouse_before_store_reconn_info 
+4493 70490cff jam 0xff ,mem_device1_type 
+4494 2020462e branch mouse_store_device_info_delay 
+
+mouse_bt:
+4495 44ee401b bpatch patch1b_4 ,mem_patch1b 
+4496 20770000 rtn attempt 
+4497 6fe0c454 fetch 1 ,mem_app_handshake_flag 
+4498 207a0000 rtn blank 
+4499 204052cf call l2cap_malloc_is_fifo_nearly_full 
+449a 247a0000 nrtn blank 
+449b 6fe0ca64 fetch 1 ,mem_mouse_bluetooth_fast_conn_flag 
+449c c07fc33f beq 0xff ,mouse_bt_fast_conn_send_device_name 
+449d 6fe0ca4f fetch 1 ,mem_mouse_clear_sensor_data_flag 
+449e 205a42fb call mouse_clear_sensor_data_by_reset ,blank 
+449f 6fe44b50 fetch mouse_flag_len ,mem_mouse_flag 
+44a0 c280c4cc bbit1 mouse_24g_pairing_flag ,mouse_send_empty_data 
+44a1 c28044cc bbit1 mouse_select_device_flag ,mouse_send_empty_data 
+44a2 c282c4cc bbit1 mouse_bt_discovery_button_down_flag ,mouse_send_empty_data 
+44a3 c28344cc bbit1 mouse_bt_discovery_button_long_down_flag ,mouse_send_empty_data 
+44a4 20403f87 call mouse_motion 
+44a5 2040435d call mouse_check_125hz 
+44a6 24740000 nrtn user 
+44a7 20404368 call mouse_current_mult_update 
+44a8 20404300 call mouse_data_xy_release 
+44a9 20404034 call mouse_wheel_trigger 
+44aa 6fe0cb25 fetch 1 ,mem_mouse_bt_boot_mode 
+44ab c000c4bb beq 1 ,mouse_send_data_boot_mode 
+44ac 6fe0cb2d fetch 1 ,mem_mouse_bt_send_first_package_flag 
+44ad 207a0000 rtn blank 
+44ae 6fe44b50 fetch mouse_flag_len ,mem_mouse_flag 
+44af c30ac4b2 bbit0 mouse_enable_keyboard ,mouse_send_data 
+44b0 6fe0cb30 fetch 1 ,mem_customer_key 
+44b1 c000c4cf beq 1 ,mouse_bt_send_keyboard_packet 
+
+mouse_send_data:
+44b2 da200009 arg 9 ,rega 
+44b3 20404d9f call hid_malloc_tx_buff 
+44b4 6fe144de fetch 2 ,mem_hid_int_remote_cid 
+44b5 e7e10005 istore 2 ,contw 
+44b6 580002a1 setarg 0x02a1 
+44b7 e7e10005 istore 2 ,contw 
+44b8 6fe3c8b3 fetch 7 ,mem_mouse_key 
+44b9 e7e38005 istore 7 ,contw 
+44ba 20600000 rtn 
+
+mouse_send_data_boot_mode:
+44bb 6fe0c8b3 fetch 1 ,mem_mouse_key 
+44bc 67e0cb26 store 1 ,mem_mouse_bt_boot_data 
+44bd 6fe0c8b4 fetch 1 ,mem_mouse_x 
+44be e7e08005 istore 1 ,contw 
+44bf 6fe0c8b6 fetch 1 ,mem_mouse_y 
+44c0 e7e08005 istore 1 ,contw 
+44c1 6fe148b8 fetch 2 ,mem_mouse_z 
+44c2 e7e10005 istore 2 ,contw 
+44c3 da200007 arg 7 ,rega 
+44c4 20404d9f call hid_malloc_tx_buff 
+44c5 6fe144de fetch 2 ,mem_hid_int_remote_cid 
+44c6 e7e10005 istore 2 ,contw 
+44c7 580002a1 setarg 0x02a1 
+44c8 e7e10005 istore 2 ,contw 
+44c9 6fe2cb26 fetch 5 ,mem_mouse_bt_boot_data 
+44ca e7e28005 istore 5 ,contw 
+44cb 20600000 rtn 
+
+mouse_send_empty_data:
+44cc 58000000 setarg 0 
+44cd 67e3c8b3 store 7 ,mem_mouse_key 
+44ce 202044b2 branch mouse_send_data 
+
+mouse_bt_send_keyboard_packet:
+44cf 6fe0cb31 fetch 1 ,mem_customer_data_trigger 
+44d0 203a44f1 branch mouse_bt_release_keyboard_data ,blank 
+44d1 6fe44b72 fetch 8 ,mem_customer_key_press + 1 
+
+mouse_bt_send_keyboard_data:
+44d2 67e4095c store 8 ,mem_pdatatemp 
+44d3 6fe0cb71 fetch 1 ,mem_customer_key_press 
+44d4 c001c4df beq kb_multikey_report_id ,mouse_bt_send_multimedia_key_data 
+44d5 c00144e8 beq kb_system_conctrl_report_id ,mouse_bt_send_systemctrl_key_data 
+44d6 da20000a arg 10 ,rega 
+44d7 20404d9f call hid_malloc_tx_buff 
+44d8 6fe144de fetch 2 ,mem_hid_int_remote_cid 
+44d9 e7e10005 istore 2 ,contw 
+44da 580001a1 setarg 0x01a1 
+44db e7e10005 istore 2 ,contw 
+44dc 6fe4095c fetch 8 ,mem_pdatatemp 
+44dd e7e40005 istore 8 ,contw 
+44de 20600000 rtn 
+
+mouse_bt_send_multimedia_key_data:
+44df da200004 arg 4 ,rega 
+44e0 20404d9f call hid_malloc_tx_buff 
+44e1 6fe144de fetch 2 ,mem_hid_int_remote_cid 
+44e2 e7e10005 istore 2 ,contw 
+44e3 580003a1 setarg 0x03a1 
+44e4 e7e10005 istore 2 ,contw 
+44e5 6fe1095c fetch 2 ,mem_pdatatemp 
+44e6 e7e10005 istore 2 ,contw 
+44e7 20600000 rtn 
+
+mouse_bt_send_systemctrl_key_data:
+44e8 da200003 arg 3 ,rega 
+44e9 20404d9f call hid_malloc_tx_buff 
+44ea 6fe144de fetch 2 ,mem_hid_int_remote_cid 
+44eb e7e10005 istore 2 ,contw 
+44ec 580004a1 setarg 0x04a1 
+44ed e7e10005 istore 2 ,contw 
+44ee 6fe0895c fetch 1 ,mem_pdatatemp 
+44ef e7e08005 istore 1 ,contw 
+44f0 20600000 rtn 
+
+mouse_bt_release_keyboard_data:
+44f1 6fe44b7b fetch 8 ,mem_customer_key_release + 1 
+44f2 202044d2 branch mouse_bt_send_keyboard_data 
+
+mouse_bb_event_timer:
+44f3 44eec01b bpatch patch1b_5 ,mem_patch1b 
+44f4 20403eb3 call mouse_adc_read 
+44f5 20404956 call mouse_low_voltage_led_timer 
+44f6 204047eb call mouse_24g_delay_timer 
+44f7 20402bc3 call g24_pair_timeout_timer 
+44f8 20402df3 call g24_reconn_timeout_timer 
+44f9 204047e4 call mouse_24g_long_sleep_param_update_timer 
+44fa 204048c2 call mouse_device_poweron_timer 
+44fb 204048f1 call mouse_dpi_led_blink_delay_timer 
+44fc 2040408a call mouse_dpi_key_check_long_press 
+44fd 2040450b call mouse_bt_discovery_check 
+44fe 2040451b call mouse_commbination_key_process 
+44ff 2040453e call mouse_check_discovery_timeout_timer 
+4500 20404543 call mouse_check_direct_timeout_timer 
+4501 20404551 call mouse_le_enable_att_list_timer 
+4502 2040455e call mouse_le_battery_updata_timer 
+4503 20404554 call mouse_le_send_smp_security_request_timer 
+4504 20404569 call mouse_check_hid_handshake_timer 
+4505 2040456c call mouse_bt_check_sniff_req_timeout_timer 
+4506 20404571 call mouse_check_reconnect_delay_long_sleep 
+4507 20404574 call mouse_current_mult_update_timer 
+4508 20404039 call mouse_wheel_trigger_timer 
+4509 20404585 call mouse_store_information_delay_timer 
+450a 2020457b branch mouse_check_no_data_timeout_timer 
+
+mouse_bt_discovery_check:
+450b 6fe44b50 fetch mouse_flag_len ,mem_mouse_flag 
+450c c29bc50e bbit1 mouse_enable_pb_button_long_press_disconvery ,mouse_bt_discovery_by_pb_button 
+450d 20600000 rtn 
+
+mouse_bt_discovery_by_pb_button:
+450e 6fe0cb43 fetch 1 ,mem_select_device_button_statue 
+450f c1808000 rtnne pb_button_state_down 
+4510 da604b40 arg mem_bt_discovery_count ,regc 
+4511 da404513 arg mouse_long_button_bt_discovery ,regb 
+4512 20203044 branch timer_single_step 
+
+mouse_long_button_bt_discovery:
+4513 6fe0c90b fetch 1 ,mem_device_flag 
+4514 c1000000 rtneq mode_24g_device 
+4515 6fe44b50 fetch mouse_flag_len ,mem_mouse_flag 
+4516 c3830000 rtnbit1 mouse_bt_discovery_button_long_down_flag 
+4517 d8e00006 arg mouse_bt_discovery_button_long_down_flag ,queue 
+4518 2040471d call mouse_enable_function_flag 
+4519 2040302d call app_evt_button_long_pressed 
+451a 2020458c branch mouse_bb_event_discovery_btn 
+
+mouse_commbination_key_process:
+451b 6fe0c90b fetch 1 ,mem_device_flag 
+451c c0004521 beq mode_24g_device ,mouse_24g_commbination_key_process 
+451d 6fe44b50 fetch mouse_flag_len ,mem_mouse_flag 
+451e c41a8000 rtnbit0 mouse_enable_commbination_key_by_bt_discovery 
+451f 6848cb6f fetcht 1 ,mem_mouse_commbination_key_bt 
+4520 20204524 branch mouse_commbination_key_start 
+
+mouse_24g_commbination_key_process:
+4521 6fe44b50 fetch mouse_flag_len ,mem_mouse_flag 
+4522 c4190000 rtnbit0 mouse_enable_commbination_key_by_24g_pairing 
+4523 6848cb70 fetcht 1 ,mem_mouse_commbination_key_24g 
+
+mouse_commbination_key_start:
+4524 6048cb42 storet 1 ,mem_mouse_commbination_key 
+4525 20404136 call mouse_check_key_gpio 
+4526 1fe17e07 and pdata ,0x07 ,pdata 
+4527 6848cb42 fetcht 1 ,mem_mouse_commbination_key 
+4528 98467c00 isub temp ,null 
+4529 2022c530 branch mouse_commbination_key_down ,zero 
+
+mouse_commbination_key_up:
+452a 6fe0c78e fetch 1 ,mem_ui_button_timeout 
+452b 67e0cb45 store 1 ,mem_combination_ui_button_count 
+452c 6fe0cb44 fetch 1 ,mem_commbination_key_statue 
+452d c1000000 rtneq commbination_key_state_up 
+452e 704b4400 jam commbination_key_state_up ,mem_commbination_key_statue 
+452f 20600000 rtn 
+
+mouse_commbination_key_down:
+4530 20404535 call mouse_combination_ui_timer 
+4531 6fe0cb44 fetch 1 ,mem_commbination_key_statue 
+4532 c1008000 rtneq commbination_key_state_down 
+4533 704b4401 jam commbination_key_state_down ,mem_commbination_key_statue 
+4534 2020795f branch check_51cmd_bb_reconn_cancel 
+
+mouse_combination_ui_timer:
+4535 da404824 arg mouse_24g_start_pair_mode ,regb 
+4536 da604b45 arg mem_combination_ui_button_count ,regc 
+4537 6fe0c90b fetch 1 ,mem_device_flag 
+4538 c0003044 beq mode_24g_device ,timer_single_step 
+4539 da404513 arg mouse_long_button_bt_discovery ,regb 
+453a 20403044 call timer_single_step 
+453b 6fe0cb45 fetch 1 ,mem_combination_ui_button_count 
+453c c000c719 beq 1 ,mouse_bt_discovery_button_down_enable 
+453d 20600000 rtn 
+
+mouse_check_discovery_timeout_timer:
+453e da604a65 arg mem_mouse_discovery_timer ,regc 
+453f da404541 arg mouse_check_discovery_timeout ,regb 
+4540 2020304b branch timer_single_step_2b 
+
+mouse_check_discovery_timeout:
+4541 204045b4 call mouse_stop_discovery 
+4542 20203e49 branch mouse_app_enter_hibernate 
+
+mouse_check_direct_timeout_timer:
+4543 da604b1b arg mem_mouse_direct_timer ,regc 
+4544 da404549 arg mouse_check_direct_timeout ,regb 
+4545 2040304b call timer_single_step_2b 
+4546 6fe0cb1b fetch 1 ,mem_mouse_direct_timer 
+4547 c000b0bd beq 1 ,app_ble_stop_direct_adv 
+4548 20600000 rtn 
+
+mouse_check_direct_timeout:
+4549 6fe0ca64 fetch 1 ,mem_mouse_bluetooth_fast_conn_flag 
+454a c07fc331 beq 0xff ,mouse_buletooth_fast_conn_end 
+454b 6fe0ca53 fetch 1 ,mem_reconn_times 
+454c 243a4725 nbranch mouse_polling_device ,blank 
+454d 6fe44b50 fetch mouse_flag_len ,mem_mouse_flag 
+454e c299c591 bbit1 mouse_enable_bt_reconnect_timeout_enter_discovery ,mouse_start_discovery 
+454f c297c81c bbit1 mouse_enable_24g_first_auto_pairing ,mouse_24g_first_bb_event_reconn_timeout 
+4550 20203e49 branch mouse_app_enter_hibernate 
+
+mouse_le_enable_att_list_timer:
+4551 da604b1a arg mem_le_start_encrypt_timer ,regc 
+4552 da4043c8 arg mouse_le_write_enable ,regb 
+4553 20203044 branch timer_single_step 
+
+mouse_le_send_smp_security_request_timer:
+4554 6fe0ca6a fetch 1 ,mem_mouse_le_bb_connected_flag 
+4555 207a0000 rtn blank 
+4556 da604a6c arg mem_mouse_send_secutiry_request_timer ,regc 
+4557 da404559 arg mouse_le_pairing_sm_start_check ,regb 
+4558 20203044 branch timer_single_step 
+
+mouse_le_pairing_sm_start_check:
+4559 6fe0ca6b fetch 1 ,mem_mouse_le_reconnect_flag 
+455a 247a0000 nrtn blank 
+455b 6fe0c399 fetch 1 ,mem_le_pairing_state 
+455c c1800000 rtnne flag_le_pairing_null 
+455d 20202960 branch le_pairing_sm_start 
+
+mouse_le_battery_updata_timer:
+455e da604a96 arg mem_le_battery_level_updata_timer ,regc 
+455f da404561 arg mouse_le_battery_level_updata ,regb 
+4560 20203044 branch timer_single_step 
+
+mouse_le_battery_level_updata:
+4561 6fe14a94 fetch 2 ,mem_le_battery_level_updata_timer_init 
+4562 67e14a96 store 2 ,mem_le_battery_level_updata_timer 
+4563 20204405 branch mouse_fill_battery_level_le 
+
+mouse_le_enable_att_list:
+4564 6fe0cb19 fetch 1 ,mem_le_connect_status_flag 
+4565 c3810000 rtnbit1 ll_pairing_success_flag 
+4566 204043a6 call mouse_updata_le_param 
+4567 d8e00000 arg write_req_enable_flag ,queue 
+4568 202043af branch mouse_le_enable_connect_flag 
+
+mouse_check_hid_handshake_timer:
+4569 da604789 arg mem_hid_handshake_timer_count ,regc 
+456a da40445e arg mouse_bt_hid_handshake ,regb 
+456b 20203044 branch timer_single_step 
+
+mouse_bt_check_sniff_req_timeout_timer:
+456c da604b2c arg mem_mouse_bt_send_first_package_timer ,regc 
+456d da40456f arg mouse_bt_send_first_package ,regb 
+456e 20203044 branch timer_single_step 
+
+mouse_bt_send_first_package:
+456f 704b2d01 jam 1 ,mem_mouse_bt_send_first_package_flag 
+4570 20600000 rtn 
+
+mouse_check_reconnect_delay_long_sleep:
+4571 da604a67 arg mem_mouse_bluetooth_reconnect_timeout ,regc 
+4572 da403e49 arg mouse_app_enter_hibernate ,regb 
+4573 20203044 branch timer_single_step 
+
+mouse_current_mult_update_timer:
+4574 da604a52 arg mem_mouse_current_mult_timer ,regc 
+4575 da404577 arg mouse_current_mult_reinit ,regb 
+4576 20203044 branch timer_single_step 
+
+mouse_current_mult_reinit:
+4577 6fe0cb2f fetch 1 ,mem_lpm_mult_init 
+4578 67e0c17a store 1 ,mem_lpm_mult 
+4579 704a5101 jam 1 ,mem_mouse_long_mult_flag 
+457a 20600000 rtn 
+
+mouse_check_no_data_timeout_timer:
+457b 6fe0c8fd fetch 1 ,mem_usb_addr 
+457c c3838000 rtnbit1 7 
+457d da604a55 arg mem_mouse_no_data_timer ,regc 
+457e da404580 arg mouse_check_no_data_timeout ,regb 
+457f 2020304b branch timer_single_step_2b 
+
+mouse_check_no_data_timeout:
+4580 c513794d bmark1 mark_24g ,check_51cmd_hibernate 
+4581 20204354 branch mouse_disconnect 
+
+mouse_no_data_timer_init:
+4582 6fe14b63 fetch 2 ,mem_mouse_no_data_timeout 
+4583 67e14a55 store 2 ,mem_mouse_no_data_timer 
+4584 20600000 rtn 
+
+mouse_store_information_delay_timer:
+4585 da604992 arg mem_store_information_delay_timer ,regc 
+4586 da404588 arg mouse_store_device_info_check ,regb 
+4587 20203044 branch timer_single_step 
+
+mouse_store_device_info_check:
+4588 20404631 call mouse_store_device_info 
+4589 6fe0ca69 fetch 1 ,mem_mouse_need_soft_reset 
+458a 243a46f7 nbranch mouse_soft_reset ,blank 
+458b 20600000 rtn 
+
+mouse_bb_event_discovery_btn:
+458c 280ffe26 isolate1 mark_24g ,mark 
+458d 2040c7ef call mouse_24g_stop ,true 
+458e 20404354 call mouse_disconnect 
+458f 204043d7 call mouse_le_clean_connect_flag 
+4590 20204591 branch mouse_start_discovery 
+
+mouse_start_discovery:
+4591 44ef401b bpatch patch1b_6 ,mem_patch1b 
+4592 2040434d call mouse_bluetooth_fast_conn_disable 
+4593 6fe1478b fetch 2 ,mem_ui_state_map 
+4594 c285c59d bbit1 ui_state_ble_adv ,mouse_start_discovery_norandom 
+4595 6fe44b50 fetch mouse_flag_len ,mem_mouse_flag 
+4596 c304459d bbit0 mouse_enable_ble_random_addre ,mouse_start_discovery_norandom 
+4597 6849496a fetcht 2 ,mem_random_addr_increase_count 
+4598 18408401 increase 1 ,temp 
+4599 6049496a storet 2 ,mem_random_addr_increase_count 
+459a 60494379 storet 2 ,mem_le_lap + 1 
+459b 180a7e00 random pdata 
+459c 67e0c378 store 1 ,mem_le_lap 
+
+mouse_start_discovery_norandom:
+459d 6fe1ca6d fetch 3 ,mem_mouse_le_lap_temp 
+459e 67e1c37b store 3 ,mem_le_lap + 3 
+459f 204030df call app_lpm_mult_disable 
+45a0 6fe14790 fetch 2 ,mem_discovery_timeout 
+45a1 67e14a65 store 2 ,mem_mouse_discovery_timer 
+45a2 7000bd06 jam 6 ,mem_connection_options 
+45a3 58000000 setarg 0 
+45a4 67e14a55 store 2 ,mem_mouse_no_data_timer 
+45a5 67e14b1b store 2 ,mem_mouse_direct_timer 
+45a6 67e14a67 store 2 ,mem_mouse_bluetooth_reconnect_timeout 
+45a7 67e0cb4c store 1 ,mem_mouse_device_poweron_timer_count 
+45a8 67e0ca4f store 1 ,mem_mouse_clear_sensor_data_flag 
+45a9 d8e00002 arg mouse_store_eeprom_flag ,queue 
+45aa 2040471d call mouse_enable_function_flag 
+45ab 2040471b call mouse_bt_discovery_button_down_disable 
+45ac 6fe0cb58 fetch 1 ,mem_mouse_bluetooth_type 
+45ad 2feffe01 isolate1 mode_4_mouse ,pdata 
+45ae 2040c419 call mouse_check_51cmd_adv ,true 
+45af 6fe0cb58 fetch 1 ,mem_mouse_bluetooth_type 
+45b0 2feffe00 isolate1 mode_3_mouse ,pdata 
+45b1 2040f8f2 call check_51cmd_start_discovery ,true 
+45b2 2040498a call mouse_low_voltage_led_blink_disable 
+45b3 202048d0 branch mouse_discover_setting_led_gpio 
+
+mouse_stop_discovery:
+45b4 44efc01b bpatch patch1b_7 ,mem_patch1b 
+45b5 d8e00006 arg mouse_bt_discovery_button_long_down_flag ,queue 
+45b6 20404721 call mouse_disable_function_flag 
+45b7 58000000 setarg 0 
+45b8 67e14a67 store 2 ,mem_mouse_bluetooth_reconnect_timeout 
+45b9 6fe0cb58 fetch 1 ,mem_mouse_bluetooth_type 
+45ba 2feffe01 isolate1 mode_4_mouse ,pdata 
+45bb 2040c5c0 call mouse_stop_le_adv ,true 
+45bc 6fe0cb58 fetch 1 ,mem_mouse_bluetooth_type 
+45bd 2feffe00 isolate1 mode_3_mouse ,pdata 
+45be 2040c5c3 call mouse_stop_bt3_discovery ,true 
+45bf 20204914 branch mouse_device_led_off 
+
+mouse_stop_le_adv:
+45c0 58000000 setarg 0 
+45c1 67e14b1b store 2 ,mem_mouse_direct_timer 
+45c2 20207922 branch check_51cmd_stop_adv 
+
+mouse_stop_bt3_discovery:
+45c3 58000000 setarg 0 
+45c4 67e14a65 store 2 ,mem_mouse_discovery_timer 
+45c5 202078f7 branch check_51cmd_stop_discovery 
+
+mouse_store_remote_bdaddr:
+45c6 44f0401c bpatch patch1c_0 ,mem_patch1c 
+45c7 6fe44b50 fetch mouse_flag_len ,mem_mouse_flag 
+45c8 c4010000 rtnbit0 mouse_store_eeprom_flag 
+45c9 204048ca call mouse_device_poweron_timer_init 
+45ca d8e00002 arg mouse_store_eeprom_flag ,queue 
+45cb 20404721 call mouse_disable_function_flag 
+45cc 204045cf call mouse_check_device_addr 
+
+mouse_unplug_clean_bdaddr:
+45cd 204045e2 call mouse_before_store_reconn_info 
+45ce 2020462e branch mouse_store_device_info_delay 
+
+mouse_check_device_addr:
+45cf 6fe080e8 fetch 1 ,mem_record_bt_mode 
+45d0 c01a45d3 beq rec_4_mode ,mouse_check_le_device_addr 
+45d1 c019c5d6 beq rec_3_mode ,mouse_check_bt_device_addr 
+45d2 20600000 rtn 
+
+mouse_check_le_device_addr:
+45d3 67e0cb1d store 1 ,mem_device_addr_temp 
+45d4 6fe30297 fetch 6 ,mem_le_plap 
+45d5 202045d8 branch mouse_check_bt_device_addr_common 
+
+mouse_check_bt_device_addr:
+45d6 67e0cb1d store 1 ,mem_device_addr_temp 
+45d7 6fe30041 fetch 6 ,mem_plap 
+
+mouse_check_bt_device_addr_common:
+45d8 67e34b1e store 6 ,mem_device_addr_temp + 1 
+45d9 6fe3cb1d fetch 7 ,mem_device_addr_temp 
+45da d8c0490c arg mem_device1_type ,contr 
+45db df200003 arg 3 ,loopcnt 
+
+mouse_check_device_addr_end:
+45dc e8438006 ifetcht 7 ,contr 
+45dd 98467c00 isub temp ,null 
+45de 2022c5f7 branch mouse_clean_addr ,zero 
+45df 18c08c16 increase 22 ,contr 
+45e0 c20045dc loop mouse_check_device_addr_end 
+45e1 20600000 rtn 
+
+mouse_before_store_reconn_info:
+45e2 da20490c arg mem_device1_type ,rega 
+45e3 6fe0c90b fetch 1 ,mem_device_flag 
+45e4 1fe0ffff increase -1 ,pdata 
+45e5 1feffe1d mul32 pdata ,29 ,pdata 
+45e6 9a20a200 iadd rega ,rega 
+45e7 6fe080e8 fetch 1 ,mem_record_bt_mode 
+45e8 e7e08011 istore 1 ,rega 
+45e9 c01a45ec beq rec_4_mode ,mouse_store_le_device 
+45ea c019c5f3 beq rec_3_mode ,mouse_store_bt_device 
+45eb 20600000 rtn 
+
+mouse_store_le_device:
+45ec 6fe30297 fetch 6 ,mem_le_plap 
+45ed e7e30005 istore 6 ,contw 
+45ee d8c04314 arg mem_le_ltk ,contr 
+45ef 20407d1a call memcpy16 
+45f0 6fe34378 fetch 6 ,mem_le_lap 
+45f1 e7e30005 istore 6 ,contw 
+45f2 20600000 rtn 
+
+mouse_store_bt_device:
+45f3 6fe30041 fetch 6 ,mem_plap 
+45f4 e7e30005 istore 6 ,contw 
+45f5 d8c041ce arg mem_link_key ,contr 
+45f6 20207d1a branch memcpy16 
+
+mouse_clean_addr:
+45f7 18c08dfa increase -6 ,contr 
+45f8 18c20a00 copy contr ,contw 
+45f9 684b4b1e fetcht 6 ,mem_device_addr_temp + 1 
+45fa 18408403 increase 3 ,temp 
+45fb e0430005 istoret 6 ,contw 
+45fc 20600000 rtn 
+
+mouse_select_reconn_device:
+45fd da20490c arg mem_device1_type ,rega 
+45fe 6fe0c90b fetch 1 ,mem_device_flag 
+45ff c1000000 rtneq mode_24g_device 
+4600 1fe0ffff increase -1 ,pdata 
+4601 1feffe1d mul32 pdata ,29 ,pdata 
+4602 9a20a200 iadd rega ,rega 
+4603 efe08011 ifetch 1 ,rega 
+4604 67e0c486 store 1 ,mem_xrecord_mode 
+4605 c019c608 beq rec_3_mode ,mouse_load_bt_device 
+4606 c01a460d beq rec_4_mode ,mouse_load_le_device 
+4607 20600000 rtn 
+
+mouse_load_bt_device:
+4608 efe30006 ifetch 6 ,contr 
+
+mouse_load_bt_device_end:
+4609 67e341e0 store 6 ,mem_hci_plap 
+460a d8a041ce arg mem_link_key ,contw 
+460b 20407d1a call memcpy16 
+460c 2020607b branch check_link_key_load 
+
+mouse_load_le_device:
+460d efe30006 ifetch 6 ,contr 
+
+mouse_load_le_device_end:
+460e 67e341e0 store 6 ,mem_hci_plap 
+460f d8a04314 arg mem_le_ltk ,contw 
+4610 20407d1a call memcpy16 
+4611 efe30006 ifetch 6 ,contr 
+4612 67e34378 store 6 ,mem_le_lap 
+4613 20600000 rtn 
+
+mouse_app_initflag_check:
+4614 6fe14963 fetch 2 ,mem_store_flag 
+4615 d840aa55 arg eeprom_init_flag ,temp 
+4616 98467c00 isub temp ,null 
+4617 2022c622 branch mouse_load_device_info ,zero 
+4618 60494963 storet 2 ,mem_store_flag 
+4619 20404627 call mouse_ble_init_address 
+461a 6fe0ca57 fetch 1 ,mem_device_flag_temp 
+461b 67e0c90b store 1 ,mem_device_flag 
+461c 6fe0c8e3 fetch 1 ,mem_config_sensor_dpi 
+461d 67e0c965 store 1 ,mem_mouse_dpi 
+461e 6fe2487b fetch 4 ,mem_24g_fast_conn_addr 
+461f 67e2487f store 4 ,mem_24g_receiver_addr 
+4620 67e2483b store 4 ,mem_24g_addr 
+4621 20600000 rtn 
+
+mouse_load_device_info:
+4622 204045fd call mouse_select_reconn_device 
+4623 6fe24966 fetch 4 ,mem_mouse_24g_addr 
+4624 67e2487f store 4 ,mem_24g_receiver_addr 
+4625 67e2483b store 4 ,mem_24g_addr 
+4626 20600000 rtn 
+
+mouse_ble_init_address:
+4627 6fe34378 fetch 6 ,mem_le_lap 
+4628 67e34923 store 6 ,mem_device1_locall_addr 
+4629 1fe0ff00 add pdata ,0x0100 ,pdata 
+462a 67e34940 store 6 ,mem_device2_locall_addr 
+462b 1fe0ff00 add pdata ,0x0100 ,pdata 
+462c 67e3495d store 6 ,mem_device3_locall_addr 
+462d 20600000 rtn 
+
+mouse_store_device_info_delay:
+462e 6fe0c993 fetch 1 ,mem_store_information_delay_timer_init 
+462f 67e0c992 store 1 ,mem_store_information_delay_timer 
+4630 20600000 rtn 
+
+mouse_store_device_info:
+4631 44f0c01c bpatch patch1c_1 ,mem_patch1c 
+4632 6fe44b50 fetch mouse_flag_len ,mem_mouse_flag 
+4633 c289c67f bbit1 mouse_enable_eeprom ,mouse_store_eeprom_device_info 
+4634 c2894643 bbit1 mouse_enable_flash ,mouse_store_flash_device_info 
+4635 20600000 rtn 
+
+mouse_load_flash_info_check:
+4636 20405cc1 call spid_init_flash 
+4637 2040464a call mouse_spid_flash_release_form_powerdown 
+4638 2040463d call mouse_information_flash_parameters 
+4639 20405ce4 call spid_read_flash 
+463a 20404651 call mouse_spid_flash_powerdown 
+463b 20404614 call mouse_app_initflag_check 
+463c 20203f72 branch mouse_sensor_spi_init 
+
+mouse_information_flash_parameters:
+463d 5800498b setarg mem_mouse_information_end 
+463e d840490b arg mem_mouse_information_start ,temp 
+463f 98460400 isub temp ,temp 
+4640 6fe1c98b fetch 3 ,mem_flash_base 
+4641 da20490b arg mem_mouse_information_start ,rega 
+4642 20600000 rtn 
+
+mouse_store_flash_device_info:
+4643 20405cc1 call spid_init_flash 
+4644 2040464a call mouse_spid_flash_release_form_powerdown 
+4645 2040465f call mouse_flash_erase_sector 
+4646 2040463d call mouse_information_flash_parameters 
+4647 20404662 call mouse_spid_write_flash 
+4648 20404651 call mouse_spid_flash_powerdown 
+4649 20203f72 branch mouse_sensor_spi_init 
+
+mouse_spid_flash_release_form_powerdown:
+464a 700964ab jam flash_command_release_from_powerdown ,mem_temp 
+
+mouse_spid_write_flash_cmd:
+464b 204061f7 call delay_nop100 
+464c 20405cc6 call spid_unlock_flash 
+464d da20498e arg mem_write_flash_head_temp ,rega 
+464e 68488964 fetcht 1 ,mem_temp 
+464f 20404653 call mouse_spid_write_flash_cmd_common 
+4650 202061f7 branch delay_nop100 
+
+mouse_spid_flash_powerdown:
+4651 700964b9 jam flash_command_powerdown ,mem_temp 
+4652 2020464b branch mouse_spid_write_flash_cmd 
+
+mouse_spid_write_flash_cmd_common:
+4653 e0408011 istoret 1 ,rega 
+4654 1ff10400 rshift16 pdata ,temp 
+4655 e0408005 istoret 1 ,contw 
+4656 1fec8400 rshift8 pdata ,temp 
+4657 e0408005 istoret 1 ,contw 
+4658 e7e08005 istore 1 ,contw 
+4659 1a227e00 deposit rega 
+465a 67f1008a store 2 ,core_spid_txaddr 
+465b 58000000 setarg 0 
+465c 67f1008e store 2 ,core_spid_rxlen 
+465d 70800602 jam spid_start ,core_misc_ctrl 
+465e 20205c80 branch wait_spid_done 
+
+mouse_flash_erase_sector:
+465f 6fe1c98b fetch 3 ,mem_flash_base 
+4660 67e1c4a8 store 3 ,mem_spi_write_addr 
+4661 20205c9c branch spid_flash_erase_sector + 2 
+
+mouse_spid_write_flash:
+4662 1fe22600 copy pdata ,regc 
+4663 1a227e00 copy rega ,pdata 
+4664 1fe0fffc increase -4 ,pdata 
+4665 1fe22400 copy pdata ,regb 
+4666 efe20012 ifetch 4 ,regb 
+4667 67e2498e store 4 ,mem_write_flash_head_temp 
+4668 1a627e00 copy regc ,pdata 
+4669 20405cd3 call spid_write_flash 
+466a 6fe2498e fetch 4 ,mem_write_flash_head_temp 
+466b e7e20012 istore 4 ,regb 
+466c 20600000 rtn 
+
+mouse_flash_power_down:
+466d 6fe44b50 fetch mouse_flag_len ,mem_mouse_flag 
+466e c4090000 rtnbit0 mouse_enable_flash 
+466f 20404651 call mouse_spid_flash_powerdown 
+4670 20405ad3 call twspi_enable 
+4671 6848c4b8 fetcht 1 ,mem_spi_cs_gpio 
+4672 204060b4 call gpio_out_inactive 
+4673 6848c4bd fetcht 1 ,mem_spi_hold_gpio 
+4674 20203f61 branch mouse_gpio_config_input_pd 
+
+mouse_load_eeprom_info_check:
+4675 20405df2 call iicd_read_init_pin 
+4676 6fe44b50 fetch mouse_flag_len ,mem_mouse_flag 
+4677 2feffe09 isolate1 mouse_enable_2k_eeprom ,pdata 
+4678 2440de0c ncall clear_eeprom_size_2k ,true 
+4679 2040467b call mouse_eeprom_load_recon_info 
+467a 20204614 branch mouse_app_initflag_check 
+
+mouse_eeprom_load_recon_info:
+467b d8400080 arg 128 ,temp 
+467c da20490b arg mem_device_flag ,rega 
+467d da400000 arg mouse_info_eeprom_offect ,regb 
+467e 20205e29 branch iicd_read_eep_data 
+
+mouse_store_eeprom_device_info:
+467f d8400080 arg 128 ,temp 
+4680 da20490b arg mem_device_flag ,rega 
+4681 da400000 arg mouse_info_eeprom_offect ,regb 
+4682 20205e1b branch iicd_write_protect_eep_data 
+
+mouse_store_eerpom_dpi:
+4683 d8400001 arg 1 ,temp 
+4684 da204965 arg mem_mouse_dpi ,rega 
+4685 da40005a arg mouse_dpi_eeprom_offect ,regb 
+4686 20205e1b branch iicd_write_protect_eep_data 
+
+mouse_load_eeprom_dpi:
+4687 d8400001 arg 1 ,temp 
+4688 da204965 arg mem_mouse_dpi ,rega 
+4689 da40005a arg mouse_dpi_eeprom_offect ,regb 
+468a 20205e29 branch iicd_read_eep_data 
+
+mouse_idle:
+468b 44f1401c bpatch patch1c_2 ,mem_patch1c 
+468c 2040498c call mouse_low_voltage_led_no_enter_lpm 
+468d 20407964 call ui_check_paring_button 
+468e 2040403e call mouse_dpi_check 
+468f 20404695 call mouse_select_device_check 
+4690 204046d7 call mouse_check_select_device_by_switch 
+4691 2040470d call mouse_bt_button_check 
+4692 20403de6 call mouse_usb_isr 
+4693 20403f9f call mouse_wheel_check 
+4694 20203dfd branch mouse_usb_mode 
+
+mouse_select_device_check:
+4695 6fe44b50 fetch mouse_flag_len ,mem_mouse_flag 
+4696 c294c69a bbit1 mouse_enable_select_device_by_pb_button ,mouse_select_device_by_pb_button 
+4697 c29bc69a bbit1 mouse_enable_pb_button_long_press_disconvery ,mouse_select_device_by_pb_button 
+4698 20600000 rtn 
+
+mouse_select_device_by_pb_button_check_once:
+4699 704b3903 jam 0x03 ,mem_mouse_pbkey_press_status 
+
+mouse_select_device_by_pb_button:
+469a 6fe0c8eb fetch 1 ,mem_config_select_device_button_gpio 
+469b c17f8000 rtneq gpio_disable 
+469c da200000 arg 0 ,rega 
+469d 704b3b06 jam mouse_pb_key ,mem_mouse_key_temp 
+469e 6848c8eb fetcht 1 ,mem_config_select_device_button_gpio 
+469f 204046a5 call mouse_pb_button_check 
+46a0 67e0cb39 store 1 ,mem_mouse_pbkey_press_status 
+46a1 20404174 call mouse_matrix_public_gpio_reset 
+46a2 1a227e00 copy rega ,pdata 
+46a3 c28346c2 bbit1 mouse_pb_key ,mouse_select_device_button_down 
+46a4 202046b7 branch mouse_select_device_button_up 
+
+mouse_pb_button_check:
+46a5 6fe44b50 fetch mouse_flag_len ,mem_mouse_flag 
+46a6 c296c6ad bbit1 mouse_enable_pb_button_connect_gnd ,mouse_pb_button_connect_gnd 
+46a7 6fe0cb3f fetch 1 ,mem_mouse_ghost_flag 
+46a8 243a46aa nbranch mouse_select_device_by_pb_button_end ,blank 
+46a9 202046af branch mouse_pb_button_connect_matrix 
+
+mouse_select_device_by_pb_button_end:
+46aa 704b4300 jam pb_button_state_up ,mem_select_device_button_statue 
+46ab 704b3900 jam 0 ,mem_mouse_pbkey_press_status 
+46ac 20600000 rtn 
+
+mouse_pb_button_connect_gnd:
+46ad 6fe0cb39 fetch 1 ,mem_mouse_pbkey_press_status 
+46ae 20204195 branch mouse_check_key_connect_gnd 
+
+mouse_pb_button_connect_matrix:
+46af 204060a8 call gpio_get_bit 
+46b0 6848c8ea fetcht 1 ,mem_matrix_public_gpio 
+46b1 2020c6ad branch mouse_pb_button_connect_gnd ,true 
+46b2 6848c8ea fetcht 1 ,mem_matrix_public_gpio 
+46b3 204060b8 call gpio_out_active 
+46b4 6848c8eb fetcht 1 ,mem_config_select_device_button_gpio 
+46b5 6fe0cb39 fetch 1 ,mem_mouse_pbkey_press_status 
+46b6 20204195 branch mouse_check_key_connect_gnd 
+
+mouse_select_device_button_up:
+46b7 6fe0cb43 fetch 1 ,mem_select_device_button_statue 
+46b8 c1000000 rtneq pb_button_state_up 
+46b9 704b4300 jam pb_button_state_up ,mem_select_device_button_statue 
+46ba 6fe44b50 fetch mouse_flag_len ,mem_mouse_flag 
+46bb c39a0000 rtnbit1 mouse_enable_pb_button_short_press_enter_discovery 
+46bc 6fe0cb40 fetch 1 ,mem_bt_discovery_count 
+46bd 1fe67c14 sub pdata ,20 ,null 
+46be 244146ec ncall mouse_ready_reconnection_by_button ,positive 
+46bf 6fe0c78e fetch 1 ,mem_ui_button_timeout 
+46c0 67e0cb40 store 1 ,mem_bt_discovery_count 
+46c1 20600000 rtn 
+
+mouse_select_device_button_down:
+46c2 204046ce call mouse_select_device_ghost_check 
+46c3 20740000 rtn user 
+46c4 6fe0cb43 fetch 1 ,mem_select_device_button_statue 
+46c5 c1008000 rtneq pb_button_state_down 
+46c6 704b4301 jam pb_button_state_down ,mem_select_device_button_statue 
+46c7 6fe44b50 fetch mouse_flag_len ,mem_mouse_flag 
+46c8 c29a4513 bbit1 mouse_enable_pb_button_short_press_enter_discovery ,mouse_long_button_bt_discovery 
+46c9 6fe14b1b fetch 2 ,mem_mouse_direct_timer 
+46ca 207a0000 rtn blank 
+46cb 6fe14b5a fetch 2 ,mem_mouse_direct_timeout 
+46cc 67e14b1b store 2 ,mem_mouse_direct_timer 
+46cd 20600000 rtn 
+
+mouse_select_device_ghost_check:
+46ce 78547c00 disable user 
+46cf 6fe44b50 fetch mouse_flag_len ,mem_mouse_flag 
+46d0 c3968000 rtnbit1 mouse_enable_pb_button_connect_gnd 
+46d1 6fe0cb33 fetch 1 ,mem_mouse_lkey_press_status 
+46d2 207a0000 rtn blank 
+46d3 6fe0cb34 fetch 1 ,mem_mouse_rkey_press_status 
+46d4 207a0000 rtn blank 
+46d5 78347c00 enable user 
+46d6 20600000 rtn 
+
+mouse_check_select_device_by_switch:
+46d7 6fe44b50 fetch mouse_flag_len ,mem_mouse_flag 
+46d8 c29546db bbit1 mouse_enable_select_device_by_switch_gpio ,mouse_check_select_device_by_switch_gpio 
+46d9 c295beb3 bbit1 mouse_enable_select_device_by_switch_adc ,mouse_adc_read 
+46da 20600000 rtn 
+
+mouse_check_select_device_by_switch_gpio:
+46db 6848c8f2 fetcht 1 ,mem_device_switch_gpio 
+46dc 20403f63 call mouse_gpio_config_input_pu 
+46dd 6848c8f2 fetcht 1 ,mem_device_switch_gpio 
+46de 204060a8 call gpio_get_bit 
+46df 2020c6e4 branch mouse_check_select_24gdevice ,true 
+
+mouse_select_btdevice:
+46e0 6fe0c90b fetch 1 ,mem_device_flag 
+46e1 c1008000 rtneq mode_bt_device1 
+46e2 70490b01 jam mode_bt_device1 ,mem_device_flag 
+46e3 2020434f branch mouse_stop_bluetooth_mode 
+
+mouse_check_select_24gdevice:
+46e4 6fe44b50 fetch mouse_flag_len ,mem_mouse_flag 
+46e5 c315c6e8 bbit0 mouse_enable_select_device_by_switch_adc ,mouse_check_select_24g_device 
+46e6 6fe348d2 fetch 6 ,mem_mouse_vdd_switch_gnd_full_vol 
+46e7 67e348c6 store 6 ,mem_mouse_vdd_calculate_set 
+
+mouse_check_select_24g_device:
+46e8 6fe0c90b fetch 1 ,mem_device_flag 
+46e9 c1000000 rtneq mode_24g_device 
+46ea 70490b00 jam mode_24g_device ,mem_device_flag 
+46eb 202047ef branch mouse_24g_stop 
+
+mouse_ready_reconnection_by_button:
+46ec 44f1c01c bpatch patch1c_3 ,mem_patch1c 
+46ed 6fe0cb59 fetch 1 ,mem_device_number 
+46ee c1008000 rtneq 1 
+46ef 204046f9 call mouse_select_device_number 
+46f0 6048c90b storet 1 ,mem_device_flag 
+
+mouse_store_device_number_before_reset:
+46f1 7041cd00 jam 0 ,mem_link_key_exists 
+46f2 20404711 call mouse_select_device_enable 
+46f3 2040434f call mouse_stop_bluetooth_mode 
+46f4 20404713 call mouse_select_device_disable 
+46f5 704a6901 jam 1 ,mem_mouse_need_soft_reset 
+46f6 2020462e branch mouse_store_device_info_delay 
+
+mouse_soft_reset:
+46f7 20404711 call mouse_select_device_enable 
+46f8 20205dd9 branch soft_reset_chip 
+
+mouse_select_device_number:
+46f9 6848c90b fetcht 1 ,mem_device_flag 
+46fa 18408401 increase 1 ,temp 
+46fb 6fe44b50 fetch mouse_flag_len ,mem_mouse_flag 
+46fc c288c700 bbit1 mouse_enable_24g ,mouse_select_device_number_24g 
+46fd 18467c02 sub temp ,2 ,null 
+46fe 24414707 ncall mouse_select_device_count_clean_bt ,positive 
+46ff 20600000 rtn 
+
+mouse_select_device_number_24g:
+4700 6fe0cb59 fetch 1 ,mem_device_number 
+4701 1fe0ffff increase -1 ,pdata 
+4702 98467c00 isub temp ,null 
+4703 24414705 ncall mouse_select_device_count_clean_24g ,positive 
+4704 20600000 rtn 
+
+mouse_select_device_count_clean_24g:
+4705 d8400000 arg 0 ,temp 
+4706 20600000 rtn 
+
+mouse_select_device_count_clean_bt:
+4707 d8400001 arg 1 ,temp 
+4708 20600000 rtn 
+
+mouse_store_device_number2eeprom:
+4709 d8400001 arg 1 ,temp 
+470a da20490b arg mem_device_flag ,rega 
+470b da400000 arg 0 ,regb 
+470c 20205e1b branch iicd_write_protect_eep_data 
+
+mouse_bt_button_check:
+470d 6fe44b50 fetch mouse_flag_len ,mem_mouse_flag 
+470e c41a0000 rtnbit0 mouse_enable_pb_button_short_press_enter_discovery 
+470f 2040469a call mouse_select_device_by_pb_button 
+4710 20600000 rtn 
+
+mouse_select_device_enable:
+4711 d8e00000 arg mouse_select_device_flag ,queue 
+4712 2020471d branch mouse_enable_function_flag 
+
+mouse_select_device_disable:
+4713 d8e00000 arg mouse_select_device_flag ,queue 
+4714 20204721 branch mouse_disable_function_flag 
+
+mouse_bt_cannel_reconn_enable:
+4715 d8e00003 arg mouse_bt_cannel_reconn_flag ,queue 
+4716 2020471d branch mouse_enable_function_flag 
+
+mouse_bt_cannel_reconn_disable:
+4717 d8e00003 arg mouse_bt_cannel_reconn_flag ,queue 
+4718 20204721 branch mouse_disable_function_flag 
+
+mouse_bt_discovery_button_down_enable:
+4719 d8e00005 arg mouse_bt_discovery_button_down_flag ,queue 
+471a 2020471d branch mouse_enable_function_flag 
+
+mouse_bt_discovery_button_down_disable:
+471b d8e00005 arg mouse_bt_discovery_button_down_flag ,queue 
+471c 20204721 branch mouse_disable_function_flag 
+
+mouse_enable_function_flag:
+471d 6fe44b50 fetch mouse_flag_len ,mem_mouse_flag 
+471e f9207e00 qset1 pdata 
+471f 67e44b50 store mouse_flag_len ,mem_mouse_flag 
+4720 20600000 rtn 
+
+mouse_disable_function_flag:
+4721 6fe44b50 fetch mouse_flag_len ,mem_mouse_flag 
+4722 f93ffe00 qset0 pdata 
+4723 67e44b50 store mouse_flag_len ,mem_mouse_flag 
+4724 20600000 rtn 
+
+mouse_polling_device:
+4725 44f2401c bpatch patch1c_4 ,mem_patch1c 
+4726 6fe0ca53 fetch 1 ,mem_reconn_times 
+4727 1fe0ffff increase -1 ,pdata 
+4728 67e0ca53 store 1 ,mem_reconn_times 
+4729 6848c90b fetcht 1 ,mem_device_flag 
+472a 18467c01 sub temp ,1 ,null 
+472b 2442c6f9 ncall mouse_select_device_number ,zero 
+472c 6048c90b storet 1 ,mem_device_flag 
+472d 7041cd00 jam 0 ,mem_link_key_exists 
+472e 20404709 call mouse_store_device_number2eeprom 
+472f 204045e2 call mouse_before_store_reconn_info 
+4730 20203d80 branch mouse_start_reconnect_device 
+
+mouse_drawing_optima:
+4731 6fe44b50 fetch mouse_flag_len ,mem_mouse_flag 
+4732 c41c0000 rtnbit0 mouse_enable_smoother 
+4733 6fe248b4 fetch 4 ,mem_mouse_x 
+4734 207a0000 rtn blank 
+4735 204047d4 call mouse_data_abs_check 
+4736 58000003 setarg 0x03 
+4737 204047ca call mouse_pdata_greater_than_check 
+4738 205a47c6 call mouse_disable_asm ,blank 
+4739 245a47c8 ncall mouse_enable_asm ,blank 
+473a 58000002 setarg 0x02 
+473b 204047cf call mouse_data_less_than_check 
+473c 205a47c6 call mouse_disable_asm ,blank 
+473d 6fe0c99c fetch 1 ,mem_mouse_asm_flag 
+473e c000c744 beq 1 ,mouse_drawing_optima_modify 
+
+mouse_drawing_optima_init:
+473f 6fe44b50 fetch mouse_flag_len ,mem_mouse_flag 
+4740 c41c0000 rtnbit0 mouse_enable_smoother 
+4741 df200005 arg 5 ,loopcnt 
+4742 d8a0499c arg mem_mouse_asm_flag ,contw 
+4743 20207d34 branch clear_mem 
+
+mouse_drawing_optima_modify:
+4744 20404758 call mouse_drawing_optima_xy_offset_modify 
+4745 6fe1499d fetch 2 ,mem_mouse_x_pre 
+4746 67e109f8 store 2 ,mem_data_pre 
+4747 6fe148b4 fetch 2 ,mem_mouse_x 
+4748 67e109fa store 2 ,mem_data_current 
+4749 20404790 call mouse_drawing_optima_data_x 
+474a 6fe109f8 fetch 2 ,mem_data_pre 
+474b 67e1499d store 2 ,mem_mouse_x_pre 
+474c 6fe109fa fetch 2 ,mem_data_current 
+474d 67e148b4 store 2 ,mem_mouse_x 
+474e 6fe1499f fetch 2 ,mem_mouse_y_pre 
+474f 67e109f8 store 2 ,mem_data_pre 
+4750 6fe148b6 fetch 2 ,mem_mouse_y 
+4751 67e109fa store 2 ,mem_data_current 
+4752 20404798 call mouse_drawing_optima_data_y 
+4753 6fe109f8 fetch 2 ,mem_data_pre 
+4754 67e1499f store 2 ,mem_mouse_y_pre 
+4755 6fe109fa fetch 2 ,mem_data_current 
+4756 67e148b6 store 2 ,mem_mouse_y 
+4757 20600000 rtn 
+
+mouse_drawing_optima_xy_offset_modify:
+4758 6fe44b50 fetch mouse_flag_len ,mem_mouse_flag 
+4759 c41c8000 rtnbit0 mouse_enable_xy_offset 
+475a 6fe1499d fetch 2 ,mem_mouse_x_pre 
+475b 67e109ff store 2 ,mem_data_value 
+475c 2040476b call mouse_pre_xy_data_judge 
+475d 67e1499d store 2 ,mem_mouse_x_pre 
+475e 6fe148b4 fetch 2 ,mem_mouse_x 
+475f 67e109ff store 2 ,mem_data_value 
+4760 20404779 call mouse_current_xy_data_judge 
+4761 67e148b4 store 2 ,mem_mouse_x 
+4762 6fe1499f fetch 2 ,mem_mouse_y_pre 
+4763 67e109ff store 2 ,mem_data_value 
+4764 2040476b call mouse_pre_xy_data_judge 
+4765 67e1499f store 2 ,mem_mouse_y_pre 
+4766 6fe148b6 fetch 2 ,mem_mouse_y 
+4767 67e109ff store 2 ,mem_data_value 
+4768 20404779 call mouse_current_xy_data_judge 
+4769 67e148b6 store 2 ,mem_mouse_y 
+476a 20600000 rtn 
+
+mouse_pre_xy_data_judge:
+476b 6fe08a00 fetch 1 ,mem_data_value + 1 
+476c 203a476e branch mouse_pre_xy_pdata_offset ,blank 
+476d 20204773 branch mouse_pre_xy_ndata_offset 
+
+mouse_pre_xy_pdata_offset:
+476e 6fe089ff fetch 1 ,mem_data_value 
+476f 20404786 call mouse_pre_xy_get_0_4_times 
+4770 67e089ff store 1 ,mem_data_value 
+
+mouse_xy_data_offset_new:
+4771 6fe109ff fetch 2 ,mem_data_value 
+4772 20600000 rtn 
+
+mouse_pre_xy_ndata_offset:
+4773 6fe089ff fetch 1 ,mem_data_value 
+4774 204047c2 call mouse_pdata_invert 
+4775 20404786 call mouse_pre_xy_get_0_4_times 
+4776 205a7e6a call disable_blank ,blank 
+4777 204047be call mouse_pdata_get_new_value 
+4778 20204771 branch mouse_xy_data_offset_new 
+
+mouse_current_xy_data_judge:
+4779 6fe08a00 fetch 1 ,mem_data_value + 1 
+477a 203a477c branch mouse_current_xy_pdata_offset ,blank 
+477b 20204780 branch mouse_current_xy_ndata_offset 
+
+mouse_current_xy_pdata_offset:
+477c 6fe089ff fetch 1 ,mem_data_value 
+477d 2040478b call mouse_current_xy_get_0_6_times 
+477e 67e089ff store 1 ,mem_data_value 
+477f 20204771 branch mouse_xy_data_offset_new 
+
+mouse_current_xy_ndata_offset:
+4780 6fe089ff fetch 1 ,mem_data_value 
+4781 204047c2 call mouse_pdata_invert 
+4782 2040478b call mouse_current_xy_get_0_6_times 
+4783 205a7e6a call disable_blank ,blank 
+4784 204047be call mouse_pdata_get_new_value 
+4785 20204771 branch mouse_xy_data_offset_new 
+
+mouse_pre_xy_get_0_4_times:
+4786 1feffe04 mul32 pdata ,4 ,pdata 
+4787 1fe6fc05 div pdata ,5 
+4788 20407dfd call wait_div_end 
+4789 1807fe00 quotient pdata 
+478a 20600000 rtn 
+
+mouse_current_xy_get_0_6_times:
+478b 1feffe0c mul32 pdata ,12 ,pdata 
+478c 1fe6fc0a div pdata ,10 
+478d 20407dfd call wait_div_end 
+478e 1807fe00 quotient pdata 
+478f 20600000 rtn 
+
+mouse_drawing_optima_data_x:
+4790 6fe109f8 fetch 2 ,mem_data_pre 
+4791 684909fa fetcht 2 ,mem_data_current 
+4792 9840fe00 iadd temp ,pdata 
+4793 6848c9a1 fetcht 1 ,mem_mouse_data_xtemp 
+4794 9840fe00 iadd temp ,pdata 
+4795 1fe10401 and pdata ,0x01 ,temp 
+4796 6048c9a1 storet 1 ,mem_mouse_data_xtemp 
+4797 202047a0 branch mouse_drawing_optima_data 
+
+mouse_drawing_optima_data_y:
+4798 6fe109f8 fetch 2 ,mem_data_pre 
+4799 684909fa fetcht 2 ,mem_data_current 
+479a 9840fe00 iadd temp ,pdata 
+479b 6848c9a2 fetcht 1 ,mem_mouse_data_ytemp 
+479c 9840fe00 iadd temp ,pdata 
+479d 1fe10401 and pdata ,0x01 ,temp 
+479e 6048c9a2 storet 1 ,mem_mouse_data_ytemp 
+479f 202047a0 branch mouse_drawing_optima_data 
+
+mouse_drawing_optima_data:
+47a0 67e189fc store 3 ,mem_data_sum 
+47a1 2feffe10 isolate1 16 ,pdata 
+47a2 2020c7aa branch mouse_data_sum_overflow ,true 
+47a3 6fe089fd fetch 1 ,mem_data_sum + 1 
+47a4 c07fc7b1 beq 0xff ,mouse_data_sum_n 
+47a5 6fe089fc fetch 1 ,mem_data_sum 
+
+mouse_data_store_pre:
+47a6 1fe37e00 rshift pdata ,pdata 
+47a7 67e109f8 store 2 ,mem_data_pre 
+47a8 67e109fa store 2 ,mem_data_current 
+47a9 20600000 rtn 
+
+mouse_data_sum_overflow:
+47aa 6fe089fd fetch 1 ,mem_data_sum + 1 
+47ab c00047ae beq 0 ,mouse_data_sum_overflow_p 
+47ac 6fe189fc fetch 3 ,mem_data_sum 
+47ad 202047a6 branch mouse_data_store_pre 
+
+mouse_data_sum_overflow_p:
+47ae 7009fe00 jam 0 ,mem_data_sum + 2 
+47af 6fe089fc fetch 1 ,mem_data_sum 
+47b0 202047a6 branch mouse_data_store_pre 
+
+mouse_data_sum_n:
+47b1 6fe089fc fetch 1 ,mem_data_sum 
+47b2 204047bc call mouse_pdata_get_half 
+47b3 67e089f8 store 1 ,mem_data_pre 
+47b4 67e089fa store 1 ,mem_data_current 
+47b5 203a47ba branch mouse_data_zero ,blank 
+47b6 580000ff setarg 0xff 
+
+mouse_data_set_direction:
+47b7 67e089f9 store 1 ,mem_data_pre + 1 
+47b8 67e089fb store 1 ,mem_data_current + 1 
+47b9 20600000 rtn 
+
+mouse_data_zero:
+47ba 58000000 setarg 0 
+47bb 202047b7 branch mouse_data_set_direction 
+
+mouse_pdata_get_half:
+47bc 204047c2 call mouse_pdata_invert 
+47bd 1fe37e00 rshift pdata ,pdata 
+
+mouse_pdata_get_new_value:
+47be 204047c3 call mouse_rega_in_out 
+47bf 1fe67e00 sub pdata ,0 ,pdata 
+47c0 67e089ff store 1 ,mem_data_value 
+47c1 20600000 rtn 
+
+mouse_pdata_invert:
+47c2 1fe67e00 sub pdata ,0 ,pdata 
+
+mouse_rega_in_out:
+47c3 67e08970 store 1 ,mem_rega 
+47c4 6fe08970 fetch 1 ,mem_rega 
+47c5 20600000 rtn 
+
+mouse_disable_asm:
+47c6 70499c00 jam 0 ,mem_mouse_asm_flag 
+47c7 20600000 rtn 
+
+mouse_enable_asm:
+47c8 70499c01 jam 1 ,mem_mouse_asm_flag 
+47c9 20600000 rtn 
+
+mouse_pdata_greater_than_check:
+47ca 9a267c00 isub rega ,null 
+47cb 24217e6a nbranch disable_blank ,positive 
+47cc 9a467c00 isub regb ,null 
+47cd 24217e6a nbranch disable_blank ,positive 
+47ce 20207e6c branch enable_blank 
+
+mouse_data_less_than_check:
+47cf 9a267c00 isub rega ,null 
+47d0 24610000 nrtn positive 
+47d1 9a467c00 isub regb ,null 
+47d2 24610000 nrtn positive 
+47d3 20207e6c branch enable_blank 
+
+mouse_data_abs_check:
+47d4 6fe148b4 fetch 2 ,mem_mouse_x 
+47d5 204047db call mouse_data_abs 
+47d6 1fe22200 copy pdata ,rega 
+47d7 6fe148b6 fetch 2 ,mem_mouse_y 
+47d8 204047db call mouse_data_abs 
+47d9 1fe22400 copy pdata ,regb 
+47da 20600000 rtn 
+
+mouse_data_abs:
+47db 67e109fa store 2 ,mem_data_current 
+47dc 6fe089fb fetch 1 ,mem_data_current + 1 
+47dd c07fc7e1 beq 0xff ,mouse_data_reversal 
+47de 6fe089fa fetch 1 ,mem_data_current 
+
+mouse_data_abs_store:
+47df 1fe17eff and_into 0xff ,pdata 
+47e0 20600000 rtn 
+
+mouse_data_reversal:
+47e1 6fe109fa fetch 2 ,mem_data_current 
+47e2 1fe67e00 sub pdata ,0 ,pdata 
+47e3 202047df branch mouse_data_abs_store 
+
+mouse_24g_long_sleep_param_update_timer:
+47e4 da6048ad arg mem_24g_long_sleep_param_update_timer ,regc 
+47e5 da4047e7 arg mouse_24g_long_sleep_normal_param ,regb 
+47e6 20203044 branch timer_single_step 
+
+mouse_24g_long_sleep_normal_param:
+47e7 5836ee80 setarg g24_long_sleep_step2 
+47e8 67e1c85b store 3 ,mem_24g_enter_hibernate 
+47e9 704a5101 jam 1 ,mem_mouse_long_mult_flag 
+47ea 20600000 rtn 
+
+mouse_24g_delay_timer:
+47eb da604b4a arg mem_24g_enter_lpm_timer ,regc 
+47ec da4047ee arg mouse_24g_delay ,regb 
+47ed 20203044 branch timer_single_step 
+
+mouse_24g_delay:
+47ee 20600000 rtn 
+
+mouse_24g_stop:
+47ef 793f8026 set0 mark_24g ,mark 
+47f0 70488f00 jam state_24g_stop ,mem_24g_conn_sm 
+47f1 d8e00001 arg mouse_24g_pairing_flag ,queue 
+47f2 20204721 branch mouse_disable_function_flag 
+
+mouse_24g_start_mode:
+47f3 6fe44b50 fetch mouse_flag_len ,mem_mouse_flag 
+47f4 c308c800 bbit0 mouse_enable_24g ,mouse_24g_mode_setup_error 
+47f5 20403d8d call mouse_wakeup_from_power_check 
+47f6 20344803 branch mouse_24g_reconn_dongle_start ,user 
+47f7 6fe44b50 fetch mouse_flag_len ,mem_mouse_flag 
+47f8 c2984809 bbit1 mouse_enable_auto_24g_paring ,mouse_24g_reconn_general_dongle 
+47f9 c318c809 bbit0 mouse_enable_24g_power_on_pairing ,mouse_24g_reconn_general_dongle 
+47fa 2040412e call mouse_key_check_once 
+47fb 1fe17e07 and pdata ,0x07 ,pdata 
+47fc 6848cb70 fetcht 1 ,mem_mouse_commbination_key_24g 
+47fd 98467c00 isub temp ,null 
+47fe 2022c824 branch mouse_24g_start_pair_mode ,zero 
+47ff 20204809 branch mouse_24g_reconn_general_dongle 
+
+mouse_24g_mode_setup_error:
+4800 6fe0ca53 fetch 1 ,mem_reconn_times 
+4801 243a4725 nbranch mouse_polling_device ,blank 
+4802 20600000 rtn 
+
+mouse_24g_reconn_dongle_start:
+4803 6fe14873 fetch 2 ,mem_24g_reconn_timeout_init 
+4804 67e14875 store 2 ,mem_24g_reconn_timeout 
+4805 70487903 jam receiver_and_3_0_addr ,mem_24g_reconn_type 
+4806 20202df6 branch g24_reconn_start 
+
+mouse_24g_first_start_auto_pair_mode:
+4807 20403d8d call mouse_wakeup_from_power_check 
+4808 20344813 branch mouse_24g_first_start_reconn ,user 
+
+mouse_24g_reconn_general_dongle:
+4809 70490b00 jam mode_24g_device ,mem_device_flag 
+480a 6fe14b61 fetch 2 ,mem_mouse_24g_power_on_fast_conn_timer 
+480b 67e14875 store 2 ,mem_24g_reconn_timeout 
+480c 70487902 jam fast_conn_and_3_0_addr ,mem_24g_reconn_type 
+480d 20202df6 branch g24_reconn_start 
+
+mouse_24g_start_auto_pair:
+480e 204048d0 call mouse_discover_setting_led_gpio 
+480f 6fe1486f fetch 2 ,mem_24g_pair_timeout_init 
+4810 67e14875 store 2 ,mem_24g_reconn_timeout 
+4811 70487904 jam pair_and_3_0_addr ,mem_24g_reconn_type 
+4812 20202df6 branch g24_reconn_start 
+
+mouse_24g_first_start_reconn:
+4813 6fe0c90b fetch 1 ,mem_device_flag 
+4814 c0004803 beq mode_24g_device ,mouse_24g_reconn_dongle_start 
+4815 2040434d call mouse_bluetooth_fast_conn_disable 
+4816 20204817 branch mouse_24g_first_bluetooth_reconnect 
+
+mouse_24g_first_bluetooth_reconnect:
+4817 204047ef call mouse_24g_stop 
+4818 20404910 call mouse_device_led_all_off 
+4819 70490b01 jam mode_bt_device1 ,mem_device_flag 
+481a 204045fd call mouse_select_reconn_device 
+481b 20203d80 branch mouse_start_reconnect_device 
+
+mouse_24g_first_bb_event_reconn_timeout:
+481c 20403d8d call mouse_wakeup_from_power_check 
+481d 2034307e branch app_bb_hibernate ,user 
+481e 20204591 branch mouse_start_discovery 
+
+mouse_24g_first_store_reconn_info:
+481f 20403d8d call mouse_wakeup_from_power_check 
+4820 20740000 rtn user 
+4821 6fe44b50 fetch mouse_flag_len ,mem_mouse_flag 
+4822 c297c62e bbit1 mouse_enable_24g_first_auto_pairing ,mouse_store_device_info_delay 
+4823 20600000 rtn 
+
+mouse_24g_start_pair_mode:
+4824 d8e00001 arg mouse_24g_pairing_flag ,queue 
+4825 2040471d call mouse_enable_function_flag 
+4826 58000000 setarg 0 
+4827 67e14875 store 2 ,mem_24g_reconn_timeout 
+4828 204045b4 call mouse_stop_discovery 
+4829 2040498a call mouse_low_voltage_led_blink_disable 
+482a 204048d0 call mouse_discover_setting_led_gpio 
+482b 70483501 jam type_ms ,mem_24g_data_type 
+482c 6fe44b50 fetch mouse_flag_len ,mem_mouse_flag 
+482d c30aabc6 bbit0 mouse_enable_keyboard ,g24_pair_start 
+482e 70483502 jam type_kb ,mem_24g_data_type 
+482f 20202bc6 branch g24_pair_start 
+
+mouse_24g_attempt_fail:
+4830 6fe0c879 fetch 1 ,mem_24g_reconn_type 
+4831 c001483b beq fast_conn_and_3_0_addr ,mouse_24g_fast_conn_attempt_fail 
+4832 c002483f beq pair_and_3_0_addr ,mouse_24g_auto_pair_attempt_fail 
+
+mouse_24g_attempt_fail_enter_hibernate:
+4833 704b4b01 jam 1 ,mem_mouse_24g_enter_lpm_enable 
+4834 20404914 call mouse_device_led_off 
+4835 204047ef call mouse_24g_stop 
+4836 6fe0ca53 fetch 1 ,mem_reconn_times 
+4837 243a4725 nbranch mouse_polling_device ,blank 
+4838 6fe0c90b fetch 1 ,mem_device_flag 
+4839 c0003e49 beq mode_24g_device ,mouse_app_enter_hibernate 
+483a 20600000 rtn 
+
+mouse_24g_fast_conn_attempt_fail:
+483b 6fe44b50 fetch mouse_flag_len ,mem_mouse_flag 
+483c c297c80e bbit1 mouse_enable_24g_first_auto_pairing ,mouse_24g_start_auto_pair 
+483d c298480e bbit1 mouse_enable_auto_24g_paring ,mouse_24g_start_auto_pair 
+483e 20204803 branch mouse_24g_reconn_dongle_start 
+
+mouse_24g_auto_pair_attempt_fail:
+483f 6fe44b50 fetch mouse_flag_len ,mem_mouse_flag 
+4840 c317c833 bbit0 mouse_enable_24g_first_auto_pairing ,mouse_24g_attempt_fail_enter_hibernate 
+4841 6fe0cb59 fetch 1 ,mem_device_number 
+4842 c000c833 beq 1 ,mouse_24g_attempt_fail_enter_hibernate 
+4843 20204817 branch mouse_24g_first_bluetooth_reconnect 
+
+mouse_24g_attempt_success:
+4844 204042fd call mouse_init_sensor_reset 
+4845 704a5100 jam 0 ,mem_mouse_long_mult_flag 
+4846 70488f00 jam 0 ,mem_24g_conn_sm 
+4847 70487900 jam 0 ,mem_24g_reconn_type 
+4848 704b4b01 jam 1 ,mem_mouse_24g_enter_lpm_enable 
+4849 6fe2487f fetch 4 ,mem_24g_receiver_addr 
+484a 6fe2487b fetch 4 ,mem_24g_fast_conn_addr 
+484b 98467c00 isub temp ,null 
+484c 20628000 rtn zero 
+484d 2020481f branch mouse_24g_first_store_reconn_info 
+
+mouse_24g_pairing_complete:
+484e 704b4b01 jam 1 ,mem_mouse_24g_enter_lpm_enable 
+484f d8e00001 arg mouse_24g_pairing_flag ,queue 
+4850 20404721 call mouse_disable_function_flag 
+4851 204048ca call mouse_device_poweron_timer_init 
+4852 58000000 setarg 0 
+4853 67e14871 store 2 ,mem_24g_pair_timeout 
+4854 67e14875 store 2 ,mem_24g_reconn_timeout 
+4855 67e0c88f store 1 ,mem_24g_conn_sm 
+4856 67e0c99b store 1 ,mem_mouse_move_flag 
+4857 67e0c879 store 1 ,mem_24g_reconn_type 
+4858 204042fd call mouse_init_sensor_reset 
+4859 6fe0c8e2 fetch 1 ,mem_config_sensor_type 
+485a 1fe67c05 sub pdata ,p3610 ,null 
+485b 2042c298 call mouse_read_sensor3610_data ,zero 
+485c 2442c310 ncall mouse_read_sensor_common ,zero 
+485d 6fe2483b fetch 4 ,mem_24g_addr 
+485e 67e2487f store 4 ,mem_24g_receiver_addr 
+485f 67e24966 store 4 ,mem_mouse_24g_addr 
+4860 2020462e branch mouse_store_device_info_delay 
+
+mouse_24g_package_data:
+4861 c6930000 rtnmark0 mark_24g 
+4862 20403f87 call mouse_motion 
+4863 24740000 nrtn user 
+4864 20402f5e call g24_transmit_by_interrupt_enable 
+4865 6fe44b50 fetch mouse_flag_len ,mem_mouse_flag 
+4866 c30ac869 bbit0 mouse_enable_keyboard ,mouse_24g_mouse_package_data 
+4867 6fe0cb30 fetch 1 ,mem_customer_key 
+4868 243a487d nbranch mouse_24g_keyboard_package_data ,blank 
+
+mouse_24g_mouse_package_data:
+4869 20404300 call mouse_data_xy_release 
+486a 6fe0c835 fetch 1 ,mem_24g_data_type 
+486b c280c878 bbit1 1 ,mouse_24g_mouse_package_data_now 
+486c 6848c7c6 fetcht 1 ,mem_24g_txbuf + 1 
+486d 6fe0c8b3 fetch 1 ,mem_mouse_key 
+486e 9841fe00 ior temp ,pdata 
+486f 67e0c8b3 store 1 ,mem_mouse_key 
+4870 6848c7cb fetcht 1 ,mem_24g_txbuf + 6 
+4871 6fe0c8b8 fetch 1 ,mem_mouse_z 
+4872 9840fe00 iadd temp ,pdata 
+4873 67e0c8b8 store 1 ,mem_mouse_z 
+4874 6848c7cc fetcht 1 ,mem_24g_txbuf + 7 
+4875 6fe0c8b9 fetch 1 ,mem_mouse_tz 
+4876 9840fe00 iadd temp ,pdata 
+4877 67e0c8b9 store 1 ,mem_mouse_tz 
+
+mouse_24g_mouse_package_data_now:
+4878 70483501 jam type_ms ,mem_24g_data_type 
+4879 da200007 arg 7 ,rega 
+487a da4048b3 arg mem_mouse_key ,regb 
+487b 6fe148b8 fetch 2 ,mem_mouse_z 
+487c 20600000 rtn 
+
+mouse_24g_keyboard_package_data:
+487d 70483502 jam type_kb ,mem_24g_data_type 
+487e da200009 arg 9 ,rega 
+487f 6fe0cb31 fetch 1 ,mem_customer_data_trigger 
+4880 243a4883 nbranch mouse_customer_key_press ,blank 
+4881 da404b7a arg mem_customer_key_release ,regb 
+4882 20600000 rtn 
+
+mouse_customer_key_press:
+4883 da404b71 arg mem_customer_key_press ,regb 
+4884 20600000 rtn 
+
+mouse_24g_enter_lpm:
+4885 6fe0cb4b fetch 1 ,mem_mouse_24g_enter_lpm_enable 
+4886 207a0000 rtn blank 
+4887 6848c8e9 fetcht 1 ,mem_dpi_button_gpio 
+4888 204060a8 call gpio_get_bit 
+4889 2040c88e call mouse_24g_dpi_delay_init ,true 
+488a 6fe0cb4a fetch 1 ,mem_24g_enter_lpm_timer 
+488b 247a0000 nrtn blank 
+488c 20404136 call mouse_check_key_gpio 
+488d 247a0000 nrtn blank 
+
+mouse_24g_dpi_delay_init:
+488e 6fe0c8e9 fetch 1 ,mem_dpi_button_gpio 
+488f c17f8000 rtneq ui_button_gpio_disable 
+4890 704b4a0a jam 10 ,mem_24g_enter_lpm_timer 
+4891 20600000 rtn 
+
+mouse_24g_search_dongle_init:
+4892 58000000 setarg 0 
+4893 67e1cb49 store 3 ,mem_mouse_search_dongle_action 
+4894 20600000 rtn 
+
+mouse_24g_search_dongle:
+4895 6fe0ca51 fetch 1 ,mem_mouse_long_mult_flag 
+4896 207a0000 rtn blank 
+4897 6fe0c894 fetch 1 ,mem_24g_abort_pac 
+4898 207a0000 rtn blank 
+4899 6fe0cb46 fetch 1 ,mem_mouse_search_dongle_interval 
+489a 1fe0fe01 increase 1 ,pdata 
+489b 1fe17e03 and_into 3 ,pdata 
+489c 67e0cb46 store 1 ,mem_mouse_search_dongle_interval 
+489d 247a0000 nrtn blank 
+489e 704b4700 jam 0 ,mem_mouse_search_dongle_ch 
+
+mouse_24g_search_dongle_loop:
+489f 6fe0cb47 fetch 1 ,mem_mouse_search_dongle_ch 
+48a0 1fe0fe01 increase 1 ,pdata 
+48a1 67e0cb47 store 1 ,mem_mouse_search_dongle_ch 
+48a2 1fe67c08 sub pdata ,g24_ch_number ,null 
+48a3 242148a9 nbranch mouse_24g_search_dongle_loop_end ,positive 
+48a4 20402e37 call g24_reconn_data_prep 
+48a5 20402ee1 call g24_transmit_receive_ack 
+48a6 242c48af nbranch mouse_24g_search_dongle_loop_retry ,sync 
+48a7 2437c8af nbranch mouse_24g_search_dongle_loop_retry ,user3 
+48a8 204048b9 call mouse_24g_search_dongle_success 
+
+mouse_24g_search_dongle_loop_end:
+48a9 20402e34 call g24_txbuf_clear 
+48aa 6fe0cb48 fetch 1 ,mem_mouse_search_dongle_count 
+48ab 1fe0fe01 increase 1 ,pdata 
+48ac 67e0cb48 store 1 ,mem_mouse_search_dongle_count 
+48ad c00848b1 beq g24_ch_poll_count ,mouse_24g_search_dongle_check 
+48ae 20600000 rtn 
+
+mouse_24g_search_dongle_loop_retry:
+48af 20402b8f call g24_ch 
+48b0 2020489f branch mouse_24g_search_dongle_loop 
+
+mouse_24g_search_dongle_check:
+48b1 704b4800 jam 0 ,mem_mouse_search_dongle_count 
+48b2 6fe0cb49 fetch 1 ,mem_mouse_search_dongle_action 
+48b3 c3800000 rtnbit1 g24_disconn_state 
+48b4 79207e00 set1 g24_disconn_state ,pdata 
+48b5 67e0cb49 store 1 ,mem_mouse_search_dongle_action 
+48b6 58000708 setarg g24_disconn_nodata_timer 
+48b7 67e14a55 store 2 ,mem_mouse_no_data_timer 
+48b8 2020421e branch mouse_sensor_powerdown 
+
+mouse_24g_search_dongle_success:
+48b9 6fe0c894 fetch 1 ,mem_24g_abort_pac 
+48ba 203a4892 branch mouse_24g_search_dongle_init ,blank 
+48bb 704b4800 jam 0 ,mem_mouse_search_dongle_count 
+48bc 6fe0cb49 fetch 1 ,mem_mouse_search_dongle_action 
+48bd c4000000 rtnbit0 g24_disconn_state 
+48be 793ffe00 set0 g24_disconn_state ,pdata 
+48bf 67e0cb49 store 1 ,mem_mouse_search_dongle_action 
+48c0 20404582 call mouse_no_data_timer_init 
+48c1 202042fd branch mouse_init_sensor_reset 
+
+mouse_device_poweron_timer:
+48c2 6fe44b50 fetch mouse_flag_len ,mem_mouse_flag 
+48c3 c4100000 rtnbit0 mouse_enable_power_on_led 
+48c4 6fe0cb4c fetch 1 ,mem_mouse_device_poweron_timer_count 
+48c5 207a0000 rtn blank 
+48c6 1fe0ffff increase -1 ,pdata 
+48c7 67e0cb4c store 1 ,mem_mouse_device_poweron_timer_count 
+48c8 203a4914 branch mouse_device_led_off ,blank 
+48c9 20204922 branch mouse_device_led_on 
+
+mouse_device_poweron_timer_init:
+48ca 6fe44b50 fetch mouse_flag_len ,mem_mouse_flag 
+48cb c4100000 rtnbit0 mouse_enable_power_on_led 
+48cc 2040498a call mouse_low_voltage_led_blink_disable 
+48cd 6fe0cb65 fetch 1 ,mem_mouse_device_poweron_timer_count_init 
+48ce 67e0cb4c store 1 ,mem_mouse_device_poweron_timer_count 
+48cf 20600000 rtn 
+
+mouse_discover_setting_led_gpio:
+48d0 704b4c00 jam 0 ,mem_mouse_device_poweron_timer_count 
+48d1 6fe14b69 fetch 2 ,mem_mouse_disconvey_led_blink_time 
+48d2 67e14903 store 2 ,mem_mouse_on_time 
+48d3 67e14905 store 2 ,mem_mouse_off_time 
+
+mouse_setting_led_gpio_comman:
+48d4 6fe0c90b fetch 1 ,mem_device_flag 
+48d5 c00048d9 beq mode_24g_device ,mouse_device_led_24g 
+48d6 c000c8db beq mode_bt_device1 ,mouse_device_led_bt1 
+48d7 c00148dd beq mode_bt_device2 ,mouse_device_led_bt2 
+48d8 20600000 rtn 
+
+mouse_device_led_24g:
+48d9 6fe0c8f4 fetch 1 ,mem_config_device_24g_led_gpio 
+48da 202048de branch mouse_led_blink 
+
+mouse_device_led_bt1:
+48db 6fe0c8f5 fetch 1 ,mem_config_device_bt1_led_gpio 
+48dc 202048de branch mouse_led_blink 
+
+mouse_device_led_bt2:
+48dd 6fe0c8f6 fetch 1 ,mem_config_device_bt2_led_gpio 
+
+mouse_led_blink:
+48de 67e08964 store 1 ,mem_temp 
+48df 20404914 call mouse_device_led_off 
+48e0 6fe08964 fetch 1 ,mem_temp 
+48e1 67e0c902 store 1 ,mem_mouse_struct_led_gpio 
+48e2 da200000 arg 0 ,rega 
+48e3 70490001 jam ui_led_state_blink_start ,mem_mouse_led_type 
+48e4 20207833 branch ui_led_blink_start_global 
+
+mouse_dpi_led_blink_delay:
+48e5 6fe0c8f7 fetch 1 ,mem_dpi_led_gpio 
+48e6 c17f8000 rtneq gpio_disable 
+48e7 6fe14a65 fetch 2 ,mem_mouse_discovery_timer 
+48e8 247a0000 nrtn blank 
+48e9 6fe14871 fetch 2 ,mem_24g_pair_timeout 
+48ea 247a0000 nrtn blank 
+48eb 6fe0cb4c fetch 1 ,mem_mouse_device_poweron_timer_count 
+48ec 247a0000 nrtn blank 
+48ed 6fe0cb66 fetch 1 ,mem_mouse_dpi_led_delay_count_init 
+48ee 203a48f4 branch mouse_dpi_led_blink_init ,blank 
+48ef 67e0cb4d store 1 ,mem_mouse_dpi_led_delay_count 
+48f0 20600000 rtn 
+
+mouse_dpi_led_blink_delay_timer:
+48f1 da604b4d arg mem_mouse_dpi_led_delay_count ,regc 
+48f2 da4048f4 arg mouse_dpi_led_blink_init ,regb 
+48f3 20203044 branch timer_single_step 
+
+mouse_dpi_led_blink_init:
+48f4 6fe0c8f7 fetch 1 ,mem_dpi_led_gpio 
+48f5 67e0c902 store 1 ,mem_mouse_struct_led_gpio 
+48f6 6fe14b67 fetch 2 ,mem_mouse_dpi_led_blink_time 
+48f7 67e14903 store 2 ,mem_mouse_on_time 
+48f8 67e14905 store 2 ,mem_mouse_off_time 
+48f9 da200000 arg 0 ,rega 
+48fa 6848c965 fetcht 1 ,mem_mouse_dpi 
+48fb 18408401 increase 1 ,temp 
+48fc 6fe44b50 fetch mouse_flag_len ,mem_mouse_flag 
+48fd c30e4901 bbit0 mouse_enable_dpi_level_4 ,mouse_dpi_led_blink_init_end 
+48fe 18408401 increase 1 ,temp 
+48ff 18467c04 sub temp ,4 ,null 
+4900 24414904 ncall mouse_dpi_led_blink_count_clean ,positive 
+
+mouse_dpi_led_blink_init_end:
+4901 6048c901 storet 1 ,mem_mouse_blink_count 
+4902 70490001 jam ui_led_state_blink_start ,mem_mouse_led_type 
+4903 20600000 rtn 
+
+mouse_dpi_led_blink_count_clean:
+4904 d8400001 arg 1 ,temp 
+4905 20600000 rtn 
+
+mouse_check_dpi_blink:
+4906 78547c00 disable user 
+4907 6fe0c8f7 fetch 1 ,mem_dpi_led_gpio 
+4908 6848c902 fetcht 1 ,mem_mouse_struct_led_gpio 
+4909 98467c00 isub temp ,null 
+490a 24628000 nrtn zero 
+490b 6fe0c901 fetch 1 ,mem_mouse_blink_count 
+490c 207a0000 rtn blank 
+490d 7048dd00 jam 0 ,mem_adc_low_volatage_led_blink_enable 
+490e 78347c00 enable user 
+490f 20600000 rtn 
+
+mouse_device_led_all_off:
+4910 20404920 call mouse_dpi_led_off 
+4911 20404919 call mouse_device_24g_led_off 
+4912 2040491c call mouse_device_bt1_led_off 
+4913 2020491e branch mouse_device_bt2_led_off 
+
+mouse_device_led_off:
+4914 6fe0c90b fetch 1 ,mem_device_flag 
+4915 c0004919 beq mode_24g_device ,mouse_device_24g_led_off 
+4916 c000c91c beq mode_bt_device1 ,mouse_device_bt1_led_off 
+4917 c001491e beq mode_bt_device2 ,mouse_device_bt2_led_off 
+4918 20600000 rtn 
+
+mouse_device_24g_led_off:
+4919 704b4f00 jam 0 ,mem_24g_device_led_status 
+491a 6fe0c8f4 fetch 1 ,mem_config_device_24g_led_gpio 
+491b 2020492d branch mouse_led_off 
+
+mouse_device_bt1_led_off:
+491c 6fe0c8f5 fetch 1 ,mem_config_device_bt1_led_gpio 
+491d 2020492d branch mouse_led_off 
+
+mouse_device_bt2_led_off:
+491e 6fe0c8f6 fetch 1 ,mem_config_device_bt2_led_gpio 
+491f 2020492d branch mouse_led_off 
+
+mouse_dpi_led_off:
+4920 6fe0c8f7 fetch 1 ,mem_dpi_led_gpio 
+4921 2020492d branch mouse_led_off 
+
+mouse_device_led_on:
+4922 6fe0c90b fetch 1 ,mem_device_flag 
+4923 c0004927 beq mode_24g_device ,mouse_device_24g_led_on 
+4924 c000c929 beq mode_bt_device1 ,mouse_device_bt1_led_on 
+4925 c001492b beq mode_bt_device2 ,mouse_device_bt2_led_on 
+4926 20600000 rtn 
+
+mouse_device_24g_led_on:
+4927 6fe0c8f4 fetch 1 ,mem_config_device_24g_led_gpio 
+4928 20204930 branch mouse_led_on 
+
+mouse_device_bt1_led_on:
+4929 6fe0c8f5 fetch 1 ,mem_config_device_bt1_led_gpio 
+492a 20204930 branch mouse_led_on 
+
+mouse_device_bt2_led_on:
+492b 6fe0c8f6 fetch 1 ,mem_config_device_bt2_led_gpio 
+492c 20204930 branch mouse_led_on 
+
+mouse_led_off:
+492d 67e0c902 store 1 ,mem_mouse_struct_led_gpio 
+492e da200000 arg 0 ,rega 
+492f 2020782e branch ui_led_off_global 
+
+mouse_led_on:
+4930 67e0c902 store 1 ,mem_mouse_struct_led_gpio 
+4931 da200000 arg 0 ,rega 
+4932 20207829 branch ui_led_on_global 
+
+mouse_ui_led_off_static:
+4933 6fe0c8f4 fetch 1 ,mem_config_device_24g_led_gpio 
+4934 98467c00 isub temp ,null 
+4935 2042c952 call mouse_clear_24g_led_statue ,zero 
+4936 6fe44b50 fetch mouse_flag_len ,mem_mouse_flag 
+4937 c312784b bbit0 mouse_enable_4_led ,ui_led_off_static + 4 
+4938 20404943 call mouse_check_bt2_led_off 
+4939 20404947 call mouse_check_dpi_led_off 
+493a 2040494b call mouse_check_low_v_led_off 
+493b 6fe0cb4e fetch 1 ,mem_mouse_led_off_4_led 
+493c 203a784b branch ui_led_off_static + 4 ,blank 
+493d 704b4e00 jam 0 ,mem_mouse_led_off_4_led 
+493e 202060ce branch gpio_set_high_impedance 
+
+mouse_ui_led_on_static:
+493f 6fe0c8f4 fetch 1 ,mem_config_device_24g_led_gpio 
+4940 98467c00 isub temp ,null 
+4941 2042c954 call mouse_set_24g_led_statue ,zero 
+4942 20207850 branch ui_led_on_static + 4 
+
+mouse_check_bt2_led_off:
+4943 6fe44b50 fetch mouse_flag_len ,mem_mouse_flag 
+4944 c4130000 rtnbit0 mouse_enable_bt2_for_4_led 
+4945 6fe0c8f6 fetch 1 ,mem_config_device_bt2_led_gpio 
+4946 2020494e branch mouse_check_1gpio_2led_off 
+
+mouse_check_dpi_led_off:
+4947 6fe44b50 fetch mouse_flag_len ,mem_mouse_flag 
+4948 c4128000 rtnbit0 mouse_enable_dpi_for_4_led 
+4949 6fe0c8f7 fetch 1 ,mem_dpi_led_gpio 
+494a 2020494e branch mouse_check_1gpio_2led_off 
+
+mouse_check_low_v_led_off:
+494b 6fe44b50 fetch mouse_flag_len ,mem_mouse_flag 
+494c c4138000 rtnbit0 mouse_enable_low_v_for_4_led 
+494d 6fe0c8f3 fetch 1 ,mem_config_low_voltage_alarm_gpio 
+
+mouse_check_1gpio_2led_off:
+494e 98467c00 isub temp ,null 
+494f 24628000 nrtn zero 
+4950 704b4e01 jam 1 ,mem_mouse_led_off_4_led 
+4951 20600000 rtn 
+
+mouse_clear_24g_led_statue:
+4952 704b4f00 jam 0 ,mem_24g_device_led_status 
+4953 20600000 rtn 
+
+mouse_set_24g_led_statue:
+4954 704b4f01 jam 1 ,mem_24g_device_led_status 
+4955 20600000 rtn 
+
+mouse_low_voltage_led_timer:
+4956 6fe14a65 fetch 2 ,mem_mouse_discovery_timer 
+4957 247a0000 nrtn blank 
+4958 6fe14871 fetch 2 ,mem_24g_pair_timeout 
+4959 247a0000 nrtn blank 
+495a 6fe0cb4c fetch 1 ,mem_mouse_device_poweron_timer_count 
+495b 247a0000 nrtn blank 
+495c 20404906 call mouse_check_dpi_blink 
+495d 20740000 rtn user 
+495e 6fe44b50 fetch mouse_flag_len ,mem_mouse_flag 
+495f c4108000 rtnbit0 mouse_enable_low_voltage_led 
+4960 c4020000 rtnbit0 mouse_low_voltage_flag 
+4961 c291c978 bbit1 mouse_enable_low_voltage_led_blink_n_second ,mouse_low_voltage_led_blink_new_data 
+4962 6fe0c8dc fetch 1 ,mem_adc_low_volatage_led_timer_count 
+4963 1fe0fe01 increase 1 ,pdata 
+4964 67e0c8dc store 1 ,mem_adc_low_volatage_led_timer_count 
+4965 1fe67c14 sub pdata ,20 ,null 
+4966 2441496c ncall mouse_adc_low_volatage_led_timer_count_clean ,positive 
+4967 c001496e beq 2 ,mouse_low_voltage_led_on 
+4968 c0024973 beq 4 ,mouse_low_voltage_led_off 
+4969 c003496e beq 6 ,mouse_low_voltage_led_on 
+496a c0044973 beq 8 ,mouse_low_voltage_led_off 
+496b 20600000 rtn 
+
+mouse_adc_low_volatage_led_timer_count_clean:
+496c 7048dc01 jam 1 ,mem_adc_low_volatage_led_timer_count 
+496d 20204973 branch mouse_low_voltage_led_off 
+
+mouse_low_voltage_led_on:
+496e 6fe44b50 fetch mouse_flag_len ,mem_mouse_flag 
+496f c2914922 bbit1 mouse_enable_low_voltage_use_mode_led ,mouse_device_led_on 
+4970 6fe0c8f3 fetch 1 ,mem_config_low_voltage_alarm_gpio 
+4971 c17f8000 rtneq gpio_disable 
+4972 20204930 branch mouse_led_on 
+
+mouse_low_voltage_led_off:
+4973 6fe44b50 fetch mouse_flag_len ,mem_mouse_flag 
+4974 c2914914 bbit1 mouse_enable_low_voltage_use_mode_led ,mouse_device_led_off 
+4975 6fe0c8f3 fetch 1 ,mem_config_low_voltage_alarm_gpio 
+4976 c17f8000 rtneq gpio_disable 
+4977 2020492d branch mouse_led_off 
+
+mouse_low_voltage_led_blink_new_data:
+4978 6fe14b63 fetch 2 ,mem_mouse_no_data_timeout 
+4979 68494a55 fetcht 2 ,mem_mouse_no_data_timer 
+497a 98460400 isub temp ,temp 
+497b 6fe14b6d fetch 2 ,mem_adc_low_volatage_led_blink_timer 
+497c 98467c00 isub temp ,null 
+497d 2421498a nbranch mouse_low_voltage_led_blink_disable ,positive 
+497e 6fe0c8dd fetch 1 ,mem_adc_low_volatage_led_blink_enable 
+497f 247a0000 nrtn blank 
+4980 7048dd01 jam 1 ,mem_adc_low_volatage_led_blink_enable 
+4981 20204982 branch mouse_low_voltage_led_blink_init 
+
+mouse_low_voltage_led_blink_init:
+4982 6fe14b6b fetch 2 ,mem_mouse_low_v_led_blink_time 
+4983 67e14903 store 2 ,mem_mouse_on_time 
+4984 67e14905 store 2 ,mem_mouse_off_time 
+4985 6fe44b50 fetch mouse_flag_len ,mem_mouse_flag 
+4986 c29148d4 bbit1 mouse_enable_low_voltage_use_mode_led ,mouse_setting_led_gpio_comman 
+4987 6fe0c8f3 fetch 1 ,mem_config_low_voltage_alarm_gpio 
+4988 c17f8000 rtneq gpio_disable 
+4989 202048de branch mouse_led_blink 
+
+mouse_low_voltage_led_blink_disable:
+498a 7048dd00 jam 0 ,mem_adc_low_volatage_led_blink_enable 
+498b 20204973 branch mouse_low_voltage_led_off 
+
+mouse_low_voltage_led_no_enter_lpm:
+498c 6fe44b50 fetch mouse_flag_len ,mem_mouse_flag 
+498d c4108000 rtnbit0 mouse_enable_low_voltage_led 
+498e c4020000 rtnbit0 mouse_low_voltage_flag 
+498f c291c997 bbit1 mouse_enable_low_voltage_led_blink_n_second ,mouse_low_voltage_led_no_enter_lpm_blink 
+4990 6fe0c8dc fetch 1 ,mem_adc_low_volatage_led_timer_count 
+4991 1fe67c0a sub pdata ,10 ,null 
+4992 20214995 branch mouse_lpm_mode_clear ,positive 
+4993 70409901 jam 1 ,mem_lpm_mode 
+4994 20600000 rtn 
+
+mouse_lpm_mode_clear:
+4995 70409900 jam 0 ,mem_lpm_mode 
+4996 20600000 rtn 
+
+mouse_low_voltage_led_no_enter_lpm_blink:
+4997 6fe0c8dd fetch 1 ,mem_adc_low_volatage_led_blink_enable 
+4998 243a4995 nbranch mouse_lpm_mode_clear ,blank 
+4999 70409901 jam 1 ,mem_lpm_mode 
+499a 20600000 rtn 
+
+mouse_le_transmit:
+499b 6fe08018 fetch 1 ,mem_rssi 
+499c 20402e7d call rssi_signal 
+499d 20202f6b branch power_ctrl_start 
+
+mouse_bt_slave_match:
+499e 6fe08018 fetch 1 ,mem_rssi 
+499f 20402e7d call rssi_signal 
+49a0 6fe08031 fetch 1 ,mem_state 
+49a1 2feffe00 isolate1 state_inconn ,pdata 
+49a2 24608000 nrtn true 
+49a3 6fe08048 fetch 1 ,mem_arq 
+49a4 2feffe03 isolate1 wack ,pdata 
+49a5 2040afa1 call power_ctrl_pac_succ_decrs ,true 
+49a6 2440af9d ncall power_ctrl_pac_succ_incrs ,true 
+49a7 20202f6b branch power_ctrl_start 
+
+mouse_le_set_lpm_mult:
+49a8 6fe0cb19 fetch 1 ,mem_le_connect_status_flag 
+49a9 2fe00603 compare 3 ,pdata ,3 
+49aa 2420fe6a nbranch disable_blank ,true 
+49ab 20207e6c branch enable_blank 
+
+mouse_bt_set_lpm_mult:
+49ac 204052d2 call l2cap_malloc_is_fifo_empty 
+49ad 243a7e6c nbranch enable_blank ,blank 
+49ae 70008901 jam 1 ,mem_current_sniff_attempt 
+49af 70008a00 jam 0 ,mem_current_sniff_timeout 
+49b0 20207e6c branch enable_blank 
+
+mouse_set_lpm_mult:
+49b1 6fe1478b fetch 2 ,mem_ui_state_map 
+49b2 c284c9a8 bbit1 ui_state_ble_connected ,mouse_le_set_lpm_mult 
+49b3 202049ac branch mouse_bt_set_lpm_mult 
+
+remote_car_init:
+49b4 20758000 rtn wake 
+49b5 20406193 call keyscan_key_init 
+49b6 58004a62 setarg remote_car_g24_package_data 
+49b7 67e14889 store 2 ,mem_cb_24g_transmit_data 
+49b8 580049f4 setarg remote_car_process_lpm_before 
+49b9 67e1488d store 2 ,mem_cb_24g_lpm_before 
+49ba 580049f1 setarg remote_car_le_before_hibernate 
+49bb 67e1445d store 2 ,mem_cb_before_hibernate 
+49bc 58004a2e setarg remote_car_scale_process_idle 
+49bd 67e14465 store 2 ,mem_cb_idle_process 
+49be 58004a30 setarg remote_car_scale_process_bb_event 
+49bf 67e14467 store 2 ,mem_cb_bb_event_process 
+49c0 58004a49 setarg remote_car_event_timer 
+49c1 67e1446f store 2 ,mem_cb_event_timer 
+49c2 580049e6 setarg remote_car_power_off_signal 
+49c3 67e14974 store 2 ,mem_remote_car_power_off_cb 
+49c4 580049d6 setarg remote_car_soft_switch_power_on_signal 
+49c5 67e14978 store 2 ,mem_remote_car_power_standby_cb 
+49c6 44f2c01c bpatch patch1c_5 ,mem_patch1c 
+49c7 204049ed call remote_car_init_environment 
+49c8 20407968 call queue_init 
+49c9 6fe0c944 fetch 1 ,mem_remote_car_config_soft_switch_enable 
+49ca 67e0c8b3 store 1 ,mem_remote_car_hard_soft_switch 
+49cb c00049d5 beq hard_switch ,remote_car_hard_switch_power_on_signal 
+49cc 6fe0c945 fetch 1 ,mem_remote_car_config_soft_switch_gpio 
+49cd 67e0c78f store 1 ,mem_ui_button_gpio 
+
+remote_car_soft_switch_power_on_init:
+49ce 204049e6 call remote_car_ui_led_init 
+49cf 204077e8 call ui_button_init 
+49d0 204077f2 call ui_button_polling 
+49d1 70497001 jam power_starting ,mem_remote_car_power_state 
+49d2 6fe1478b fetch 2 ,mem_ui_state_map 
+49d3 c3860000 rtnbit1 ui_state_btn_down 
+49d4 202030d1 branch app_enter_hibernate 
+
+remote_car_hard_switch_power_on_signal:
+49d5 70497002 jam power_standby ,mem_remote_car_power_state 
+
+remote_car_soft_switch_power_on_signal:
+49d6 204049e6 call remote_car_ui_led_init 
+49d7 da200000 arg 0 ,rega 
+49d8 20407833 call ui_led_blink_start_global 
+49d9 204049e2 call remote_car_set_24g_addr_eeprom 
+49da 20405e29 call iicd_read_eep_data 
+49db 20402f62 call g24_factory_check 
+49dc 20342bc6 branch g24_pair_start ,user 
+49dd 6fe2483b fetch 4 ,mem_24g_addr 
+49de 67e2487f store 4 ,mem_24g_receiver_addr 
+49df 6fe14873 fetch 2 ,mem_24g_reconn_timeout_init 
+49e0 67e14875 store 2 ,mem_24g_reconn_timeout 
+49e1 20202df6 branch g24_reconn_start 
+
+remote_car_set_24g_addr_eeprom:
+49e2 d8400004 arg 4 ,temp 
+49e3 da20483b arg mem_24g_addr ,rega 
+49e4 da400000 arg remote_info_eeprom_offect ,regb 
+49e5 20600000 rtn 
+
+remote_car_power_off_signal:
+
+remote_car_ui_led_init:
+49e6 44f3401c bpatch patch1c_6 ,mem_patch1c 
+49e7 6fe0c942 fetch 1 ,mem_remote_car_config_connect_led_gpio 
+49e8 c0ffc9eb bne invalid_pin_num ,remote_car_pairing_led_gpio_set 
+
+remote_car_ui_led_init_1:
+49e9 6848c91f fetcht 1 ,mem_remote_car_led_map 
+49ea 202060b8 branch gpio_config_output 
+
+remote_car_pairing_led_gpio_set:
+49eb 67e0c91f store 1 ,mem_remote_car_led_map 
+49ec 202049e9 branch remote_car_ui_led_init_1 
+
+remote_car_init_environment:
+49ed 20402ea2 call g24_transmit_init 
+49ee 6fe1496c fetch 2 ,mem_remote_car_no_data_timeout 
+49ef 67e1496e store 2 ,mem_remote_car_no_data_timer 
+49f0 20600000 rtn 
+
+remote_car_le_before_hibernate:
+49f1 204060ec call gpio_set_before_lpm_common 
+49f2 204049f4 call remote_car_process_lpm_before 
+49f3 202030d1 branch app_enter_hibernate 
+
+remote_car_process_lpm_before:
+49f4 202061b7 branch keyscan_process_lpm_before 
+
+remote_car_key_scan_process:
+49f5 204061c3 call keyscan_key_process 
+49f6 20404a06 call get_remote_key_state 
+49f7 204049f9 call remote_conn_led_state 
+49f8 20204a14 branch send_data 
+
+remote_conn_led_state:
+49f9 6fe0c97b fetch 1 ,mem_remote_car_24g_status 
+49fa c1808000 rtnne work_paired 
+49fb 6fe2497f fetch 4 ,mem_remote_car_motor1_key0_press_state 
+49fc 203a4a00 branch remote_car_stop_state ,blank 
+49fd 70498500 jam 0 ,mem_remote_car_no_data_check 
+49fe 78347c00 enable user 
+49ff 20207939 branch check_51cmd_led_on 
+
+remote_car_stop_state:
+4a00 6fe0c985 fetch 1 ,mem_remote_car_no_data_check 
+4a01 c17f8000 rtneq 0xff 
+4a02 1fe0fe01 pincrease 1 
+4a03 67e0c985 store 1 ,mem_remote_car_no_data_check 
+4a04 78547c00 disable user 
+4a05 20207937 branch check_51cmd_led_off 
+
+get_remote_key_state:
+4a06 684909e0 fetcht 2 ,mem_key_value 
+4a07 18417e01 and temp ,0x01 ,pdata 
+4a08 18430400 rshift temp ,temp 
+4a09 67e0c97f store 1 ,mem_remote_car_motor1_key0_press_state 
+4a0a 18417e01 and temp ,0x01 ,pdata 
+4a0b 18430400 rshift temp ,temp 
+4a0c 67e0c980 store 1 ,mem_remote_car_motor1_key1_press_state 
+4a0d 18417e01 and temp ,0x01 ,pdata 
+4a0e 18430400 rshift temp ,temp 
+4a0f 67e0c981 store 1 ,mem_remote_car_motor2_key2_press_state 
+4a10 18417e01 and temp ,0x01 ,pdata 
+4a11 18430400 rshift temp ,temp 
+4a12 67e0c982 store 1 ,mem_remote_car_motor2_key3_press_state 
+4a13 20600000 rtn 
+
+send_data:
+4a14 44f3c01c bpatch patch1c_7 ,mem_patch1c 
+4a15 20404a24 call remote_car_fb_check 
+4a16 20404a29 call remote_car_lr_check 
+4a17 20404a1a call remote_car_no_data_timeout_check 
+4a18 24740000 nrtn user 
+4a19 20204a5e branch remote_car_send_key 
+
+remote_car_no_data_timeout_check:
+4a1a 6fe0c97b fetch 1 ,mem_remote_car_24g_status 
+4a1b c1808000 rtnne work_paired 
+4a1c 6fe0c985 fetch 1 ,mem_remote_car_no_data_check 
+4a1d 207a0000 rtn blank 
+4a1e 1fe67c01 sub pdata ,1 ,null 
+4a1f 24610000 nrtn positive 
+4a20 6fe14873 fetch 2 ,mem_24g_reconn_timeout_init 
+4a21 67e14875 store 2 ,mem_24g_reconn_timeout 
+4a22 78347c00 enable user 
+4a23 20600000 rtn 
+
+remote_car_fb_check:
+4a24 6fe0c97f fetch 1 ,mem_remote_car_motor1_key0_press_state 
+4a25 243a4a52 nbranch remote_car_send_motor1_key0_press ,blank 
+4a26 6fe0c980 fetch 1 ,mem_remote_car_motor1_key1_press_state 
+4a27 243a4a54 nbranch remote_car_send_motor1_key1_press ,blank 
+4a28 20204a5a branch remote_car_send_motor1_key0_rel 
+
+remote_car_lr_check:
+4a29 6fe0c981 fetch 1 ,mem_remote_car_motor2_key2_press_state 
+4a2a 243a4a56 nbranch remote_car_send_motor2_key2_press ,blank 
+4a2b 6fe0c982 fetch 1 ,mem_remote_car_motor2_key3_press_state 
+4a2c 243a4a58 nbranch remote_car_send_motor2_key3_press ,blank 
+4a2d 20204a5c branch remote_car_send_motor2_key2_rel 
+
+remote_car_scale_process_idle:
+4a2e 20404a3e call remote_car_24g_status_process 
+4a2f 202049f5 branch remote_car_key_scan_process 
+
+remote_car_scale_process_bb_event:
+4a30 1a627e00 copy regc ,pdata 
+4a31 c016b0f9 beq bt_evt_button_up ,app_event_button_up 
+4a32 c00830e1 beq bt_evt_button_long_pressed ,app_button_long_pressed 
+4a33 c01cca38 beq bt_evt_24g_pairing_complete ,remote_car_24g_pairing_complete 
+4a34 c01e4a3a beq bt_evt_24g_attempt_success ,remote_car_24g_attempt_success 
+4a35 c01d4a37 beq bt_evt_24g_attempt_fail ,remote_car_24g_attempt_fail 
+4a36 20600000 rtn 
+
+remote_car_24g_attempt_fail:
+4a37 20202e34 branch g24_txbuf_clear 
+
+remote_car_24g_pairing_complete:
+4a38 204049e2 call remote_car_set_24g_addr_eeprom 
+4a39 20405e1b call iicd_write_protect_eep_data 
+
+remote_car_24g_attempt_success:
+4a3a 70488f00 jam 0 ,mem_24g_conn_sm 
+4a3b 70497c01 jam work_paired ,mem_remote_car_24g_auto_work_step 
+4a3c 70497d01 jam work_paired ,mem_remote_car_24g_pair_success_flag 
+4a3d 20600000 rtn 
+
+remote_car_24g_status_process:
+4a3e 6fe0c97c fetch 1 ,mem_remote_car_24g_auto_work_step 
+4a3f c1000000 rtneq power_on 
+4a40 6fe0c97b fetch 1 ,mem_remote_car_24g_status 
+4a41 c1008000 rtneq work_paired 
+4a42 70497b01 jam work_paired ,mem_remote_car_24g_status 
+
+remote_car_scale_process_paired:
+4a43 da200000 arg 0 ,rega 
+4a44 2020782e branch ui_led_off_global 
+
+remote_car_scale_process_shutdown:
+4a45 da200000 arg 0 ,rega 
+4a46 2040782e call ui_led_off_global 
+4a47 204049e6 call remote_car_ui_led_init 
+4a48 202030d1 branch app_enter_hibernate 
+
+remote_car_event_timer:
+4a49 20403052 call app_power_timer 
+4a4a 20402bc3 call g24_pair_timeout_timer 
+4a4b 20402df3 call g24_reconn_timeout_timer 
+4a4c 20204a4d branch remote_car_no_data_timer 
+
+remote_car_no_data_timer:
+4a4d 6fe0c946 fetch 1 ,mem_remote_car_config_timeout_shutdown_enable 
+4a4e 207a0000 rtn blank 
+4a4f da60496e arg mem_remote_car_no_data_timer ,regc 
+4a50 da404a45 arg remote_car_scale_process_shutdown ,regb 
+4a51 2020304b branch timer_single_step_2b 
+
+remote_car_send_motor1_key0_press:
+4a52 70494d01 jam motor_positive ,mem_remote_car_24g_motor1_payload 
+4a53 20600000 rtn 
+
+remote_car_send_motor1_key1_press:
+4a54 70494d02 jam motor_negative ,mem_remote_car_24g_motor1_payload 
+4a55 20600000 rtn 
+
+remote_car_send_motor2_key2_press:
+4a56 70494f01 jam motor_positive ,mem_remote_car_24g_motor2_payload 
+4a57 20600000 rtn 
+
+remote_car_send_motor2_key3_press:
+4a58 70494f02 jam motor_negative ,mem_remote_car_24g_motor2_payload 
+4a59 20600000 rtn 
+
+remote_car_send_motor1_key0_rel:
+
+remote_car_send_motor1_key1_rel:
+4a5a 70494d00 jam motor_stop ,mem_remote_car_24g_motor1_payload 
+4a5b 20600000 rtn 
+
+remote_car_send_motor2_key2_rel:
+
+remote_car_send_motor2_key3_rel:
+4a5c 70494f00 jam motor_stop ,mem_remote_car_24g_motor2_payload 
+4a5d 20600000 rtn 
+
+remote_car_send_key:
+4a5e da204947 arg mem_remote_car_24g_motor_packet ,rega 
+4a5f 2020796d branch queue_push 
+
+remote_car_send_attack:
+4a60 da204954 arg mem_remote_car_24g_fire_packet ,rega 
+4a61 2020796d branch queue_push 
+
+remote_car_g24_package_data:
+4a62 6fe0c97d fetch 1 ,mem_remote_car_24g_pair_success_flag 
+4a63 c000ca6c beq work_paired ,remote_car_g24_send_empty 
+4a64 da20495d arg mem_remote_car_24g_tx_temp ,rega 
+4a65 20407984 call queue_pop 
+4a66 24344a71 nbranch remote_car_moto_data ,user 
+
+remote_car_g24_package_data_continue:
+4a67 d8c0495d arg mem_remote_car_24g_tx_temp ,contr 
+4a68 efe08006 ifetch 1 ,contr 
+4a69 1fe22200 copy pdata ,rega 
+4a6a da40495e arg mem_remote_car_24g_tx_temp + 1 ,regb 
+4a6b 20600000 rtn 
+
+remote_car_g24_send_empty:
+4a6c 70497d00 jam 0 ,mem_remote_car_24g_pair_success_flag 
+4a6d 78347c00 enable user 
+4a6e da200001 arg 1 ,rega 
+4a6f da40497e arg mem_remote_car_empty_packet ,regb 
+4a70 20600000 rtn 
+
+remote_car_moto_data:
+4a71 6fe0c960 fetch 1 ,mem_remote_car_24g_tx_temp + 3 
+4a72 c0024a75 beq car_cmd_l_r_motor_control ,remote_car_moto_data_next 
+4a73 c002ca75 beq car_cmd_f_b_motor_control ,remote_car_moto_data_next 
+4a74 20600000 rtn 
+
+remote_car_moto_data_next:
+4a75 6fe0c963 fetch 1 ,mem_remote_car_24g_tx_temp + 6 
+4a76 243a4a7c nbranch remote_car_moto_data_enable_user ,blank 
+4a77 6fe0c965 fetch 1 ,mem_remote_car_24g_tx_temp + 8 
+4a78 243a4a7c nbranch remote_car_moto_data_enable_user ,blank 
+4a79 6fe0c967 fetch 1 ,mem_remote_car_24g_tx_temp + 10 
+4a7a 243a4a7c nbranch remote_car_moto_data_enable_user ,blank 
+4a7b 20600000 rtn 
+
+remote_car_moto_data_enable_user:
+4a7c 78347c00 enable user 
+4a7d 20204a67 branch remote_car_g24_package_data_continue 
+
+shutter_init:
+4a7e 20758000 rtn wake 
+4a7f 58004b52 setarg shutter_le_before_hibernate 
+4a80 67e1445d store 2 ,mem_cb_before_hibernate 
+4a81 58004b51 setarg shutter_process_lpm_before 
+4a82 67e1445f store 2 ,mem_cb_before_lpm 
+4a83 580030d1 setarg app_enter_hibernate 
+4a84 67e14469 store 2 ,mem_cb_discovry_timeout 
+4a85 58004b4f setarg shutter_process_idle 
+4a86 67e14465 store 2 ,mem_cb_idle_process 
+4a87 58004ab0 setarg shutter_process_bb_event 
+4a88 67e14467 store 2 ,mem_cb_bb_event_process 
+4a89 58004aaa setarg shutter_le_scale_lpm_lock 
+4a8a 67e1445b store 2 ,mem_cb_check_wakelock 
+4a8b 58004bfd setarg ble_shutter_receive_data 
+4a8c 67e1446b store 2 ,mem_cb_att_write 
+4a8d 58004b24 setarg shutter_le_bb_event_timer 
+4a8e 67e1446f store 2 ,mem_cb_event_timer 
+4a8f 58004bc3 setarg shutter_key_change 
+4a90 67e147e7 store 2 ,mem_cb_shutter_keycan 
+4a91 58004c5b setarg shutter_soft_swtich_power_on 
+4a92 67e147e2 store 2 ,mem_shutter_soft_switch_poweron_callback_function 
+4a93 58004c5c setarg shutter_soft_swtich_power_off 
+4a94 67e147e4 store 2 ,mem_shutter_soft_switch_poweroff_callback_function 
+4a95 20404aa5 call shutter_set_ble_version 
+4a96 204022b4 call le_modified_name 
+4a97 20404c00 call shutter_init_param 
+4a98 20406193 call keyscan_key_init 
+4a99 20407968 call queue_init 
+4a9a 2040781d call ui_led_init_global 
+4a9b 20404c28 call shutter_load_bluetooth_config_by_eeprom 
+4a9c 20404c43 call shutter_random_mac_addr 
+4a9d 44f4401d bpatch patch1d_0 ,mem_patch1d 
+4a9e 20404c0d call shutter_load_buffer_config_form_datarom 
+4a9f 20404aed call classic_shutter_load_reconn_info 
+4aa0 6fe0c7dd fetch 1 ,mem_shutter_hard_soft_switch_case 
+4aa1 c0004aa7 beq hard_switch ,shutter_hart_swtich_power_on 
+4aa2 6fe0c7de fetch 1 ,mem_shutter_soft_switch_button_gpio 
+4aa3 67e0c78f store 1 ,mem_ui_button_gpio 
+4aa4 20204c63 branch ui_soft_swtich_init 
+
+shutter_set_ble_version:
+4aa5 7045f707 jam 7 ,mem_lmp_version 
+4aa6 20600000 rtn 
+
+shutter_hart_swtich_power_on:
+4aa7 70478fff jam ui_button_gpio_disable ,mem_ui_button_gpio 
+4aa8 7047df01 jam ss_state_power_on ,mem_shutter_soft_switch_power_state 
+4aa9 20204b77 branch shutter_start_reconnect 
+
+shutter_le_scale_lpm_lock:
+4aaa 6fe0c7df fetch 1 ,mem_shutter_soft_switch_power_state 
+4aab c0013097 beq ss_state_power_off ,app_get_lpm_wake_lock 
+4aac 204052dc call l2cap_malloc_get_full_map 
+4aad 6fe0c4e6 fetch 1 ,mem_used_map 
+4aae 243a3097 nbranch app_get_lpm_wake_lock ,blank 
+4aaf 20203099 branch app_put_lpm_wake_lock 
+
+shutter_process_bb_event:
+4ab0 1a627e00 copy regc ,pdata 
+4ab1 c000cac4 beq bt_evt_bb_connected ,classic_shutter_process_baseband_connect 
+4ab2 c0014ac7 beq bt_evt_bb_disconnected ,classic_shutter_process_baseband_disconnect 
+4ab3 c0024acf beq bt_evt_reconn_failed ,classic_shutter_process_reconnect_failed 
+4ab4 c002cad1 beq bt_evt_setup_complete ,classic_shutter_process_setup_complete 
+4ab5 c0034ad3 beq bt_evt_hid_connected ,classic_shutter_process_hid_connect 
+4ab6 c003cad6 beq bt_evt_hid_disconnected ,classic_shutter_process_hid_disconnect 
+4ab7 c0094ada beq bt_evt_hid_handshake ,classic_shutter_process_hid_handshake 
+4ab8 c009cae2 beq bt_evt_reconn_page_timeout ,classic_shutter_process_reconnect_page_timeout 
+4ab9 c013cae3 beq bt_evt_virtual_cable_unplug ,classic_shutter_process_virtual_cable_unplug 
+4aba c0174ae6 beq bt_evt_remote_unsniff ,classic_shutter_process_remote_unsniff 
+4abb c01ecae7 beq bt_evt_store_nvram ,classic_shutter_process_store_reconnect_information 
+4abc c00a4af6 beq bt_evt_le_connected ,ble_shutter_process_baseband_connect 
+4abd c00acafa beq bt_evt_le_disconnected ,ble_shutter_process_baseband_disconnect 
+4abe c01fcafd beq bt_evt_le_reconnect_complete ,ble_shutter_process_reconnect_complete 
+4abf c0204b03 beq bt_evt_le_parse_conn_papa_update_rsp ,ble_shutter_process_parse_connect_parameter_update_response 
+4ac0 c0084b09 beq bt_evt_button_long_pressed ,shutter_process_soft_swtich_button_long_press 
+4ac1 c0164b0a beq bt_evt_button_down ,shutter_process_soft_swtich_button_down 
+4ac2 c016cb15 beq bt_evt_button_up ,shutter_process_soft_swtich_button_up 
+4ac3 20600000 rtn 
+
+classic_shutter_process_baseband_connect:
+4ac4 7047ad00 jam 0 ,mem_classic_shutter_hid_disconn_count 
+4ac5 7047ac00 jam 0 ,mem_classic_shutter_cable_unplug_conut 
+4ac6 20600000 rtn 
+
+classic_shutter_process_baseband_disconnect:
+4ac7 20404ac9 call classic_shutter_disconnect_clear_flag 
+4ac8 20204acf branch classic_shutter_process_reconnect_failed 
+
+classic_shutter_disconnect_clear_flag:
+4ac9 70445400 jam app_handshake_null ,mem_app_handshake_flag 
+4aca 70478900 jam 0 ,mem_hid_handshake_timer_count 
+4acb 70447b00 jam 0 ,mem_unsniff2sniff_timer_count 
+4acc 7047ac00 jam 0 ,mem_classic_shutter_cable_unplug_conut 
+4acd 7047ad00 jam 0 ,mem_classic_shutter_hid_disconn_count 
+4ace 20207968 branch queue_init 
+
+classic_shutter_process_reconnect_failed:
+4acf 20403080 call app_disconn_reason_clear 
+4ad0 20204b60 branch shutter_start_bluetooth_discovery 
+
+classic_shutter_process_setup_complete:
+4ad1 20404b54 call shutter_stop_bluetooth_discovery 
+4ad2 202030cf branch app_led_stop_blink 
+
+classic_shutter_process_hid_connect:
+4ad3 58000002 setarg hid_handshake_timeout 
+4ad4 67e0c789 store 1 ,mem_hid_handshake_timer_count 
+4ad5 20600000 rtn 
+
+classic_shutter_process_hid_disconnect:
+4ad6 7047ac00 jam 0 ,mem_classic_shutter_cable_unplug_conut 
+4ad7 58000001 setarg flag_shutter_hid_disconn_timeout 
+4ad8 67e0c7ad store 1 ,mem_classic_shutter_hid_disconn_count 
+4ad9 20600000 rtn 
+
+classic_shutter_process_hid_handshake:
+4ada 6fe0c454 fetch 1 ,mem_app_handshake_flag 
+4adb c1008000 rtneq app_handshake_done 
+4adc 70445401 jam app_handshake_done ,mem_app_handshake_flag 
+4add 204030dd call app_lpm_mult_enable 
+4ade 204030db call app_store_reconn_info 
+4adf 20404b54 call shutter_stop_bluetooth_discovery 
+4ae0 204030cf call app_led_off 
+4ae1 202030d5 branch app_bt_enter_sniff 
+
+classic_shutter_process_reconnect_page_timeout:
+4ae2 20204acf branch classic_shutter_process_reconnect_failed 
+
+classic_shutter_process_virtual_cable_unplug:
+4ae3 58000005 setarg flag_shutter_cable_unplug_timeout 
+4ae4 67e0c7ac store 1 ,mem_classic_shutter_cable_unplug_conut 
+4ae5 20600000 rtn 
+
+classic_shutter_process_remote_unsniff:
+4ae6 20203094 branch app_start_auto_sniff 
+
+classic_shutter_process_store_reconnect_information:
+4ae7 da400000 arg nvram_eeprom_offset ,regb 
+4ae8 6fe0c48d fetch 1 ,mem_nv_data_number 
+4ae9 1fef8422 mul32 pdata ,34 ,temp 
+4aea 6fe1448b fetch 2 ,mem_nv_data_ptr 
+4aeb 1fe22200 copy pdata ,rega 
+4aec 20205e4f branch iicd_write_eep_data 
+
+classic_shutter_load_reconn_info:
+4aed da400000 arg nvram_eeprom_offset ,regb 
+4aee 6fe0c7a3 fetch 1 ,mem_shutter_bluetooth_type 
+4aef c4008000 rtnbit0 classic_shutter 
+4af0 6fe0c48d fetch 1 ,mem_nv_data_number 
+4af1 207a0000 rtn blank 
+4af2 1fef8422 mul32 pdata ,34 ,temp 
+4af3 6fe1448b fetch 2 ,mem_nv_data_ptr 
+4af4 1fe22200 copy pdata ,rega 
+4af5 20205e29 branch iicd_read_eep_data 
+
+ble_shutter_process_baseband_connect:
+4af6 20404b54 call shutter_stop_bluetooth_discovery 
+4af7 58000000 setarg 0 
+4af8 67e147b7 store 2 ,mem_ble_shutter_reconn_timer 
+4af9 202030cf branch app_led_off 
+
+ble_shutter_process_baseband_disconnect:
+4afa 20407968 call queue_init 
+4afb 7047b000 jam 0 ,mem_ble_shutter_enable_notify 
+4afc 20204b77 branch shutter_start_reconnect 
+
+ble_shutter_process_reconnect_complete:
+4afd 20407968 call queue_init 
+4afe 7047b001 jam 1 ,mem_ble_shutter_enable_notify 
+4aff 6fe447c1 fetch 8 ,mem_ble_shutter_interval_min 
+4b00 67e44370 store 8 ,mem_le_interval_min 
+4b01 204030dd call app_lpm_mult_enable 
+4b02 20202827 branch le_l2cap_tx_update_req 
+
+ble_shutter_process_parse_connect_parameter_update_response:
+4b03 6fe143d9 fetch 2 ,mem_le_l2cap_signaling_conn_param_update_rsp_result 
+4b04 c1000000 rtneq ble_signaling_connect_parameter_update_accepted 
+4b05 6fe447c9 fetch 8 ,mem_ble_shutter_interval_min_new 
+4b06 207a0000 rtn blank 
+4b07 67e44370 store 8 ,mem_le_interval_min 
+4b08 20202827 branch le_l2cap_tx_update_req 
+
+shutter_process_soft_swtich_button_long_press:
+4b09 20204c74 branch ui_soft_switch_botton_long_press 
+
+shutter_process_soft_swtich_button_down:
+4b0a 6fe0c7dd fetch 1 ,mem_shutter_hard_soft_switch_case 
+4b0b c1000000 rtneq hard_switch 
+4b0c 6fe0c7df fetch 1 ,mem_shutter_soft_switch_power_state 
+4b0d c1808000 rtnne ss_state_power_on 
+4b0e 20404b10 call shutter_store_currenct_led_state 
+4b0f 202030cd branch app_led_on 
+
+shutter_store_currenct_led_state:
+4b10 7049df01 jam 1 ,mem_shutter_soft_swtich_botton_down 
+4b11 df20000b arg 11 ,loopcnt 
+4b12 d8a049e0 arg mem_shutter_soft_swtich_led_struct_temp ,contw 
+4b13 d8c049c9 arg mem_shutter_led_struct_app_led ,contr 
+4b14 20207d6d branch memcpy 
+
+shutter_process_soft_swtich_button_up:
+4b15 6fe0c7dd fetch 1 ,mem_shutter_hard_soft_switch_case 
+4b16 c1000000 rtneq hard_switch 
+4b17 6fe0c7df fetch 1 ,mem_shutter_soft_switch_power_state 
+4b18 c000cb1a beq ss_state_power_on ,shutter_load_currenct_led_state 
+4b19 20204c70 branch ui_soft_switch_botton_up 
+
+shutter_load_currenct_led_state:
+4b1a 6fe0c9df fetch 1 ,mem_shutter_soft_swtich_botton_down 
+4b1b c1808000 rtnne 1 
+4b1c 7049df00 jam 0 ,mem_shutter_soft_swtich_botton_down 
+4b1d 6fe1478b fetch 2 ,mem_ui_state_map 
+4b1e c28030cf bbit1 ui_state_bt_connected ,app_led_off 
+4b1f c284b0cf bbit1 ui_state_ble_connected ,app_led_off 
+4b20 df20000b arg 11 ,loopcnt 
+4b21 d8c049e0 arg mem_shutter_soft_swtich_led_struct_temp ,contr 
+4b22 d8a049c9 arg mem_shutter_led_struct_app_led ,contw 
+4b23 20207d6d branch memcpy 
+
+shutter_le_bb_event_timer:
+4b24 20404b2a call shutter_check_sleep_timer 
+4b25 20404b31 call shutter_check_power_off_timer 
+4b26 20404b3c call classic_shutter_check_unplug_timer 
+4b27 20404b44 call classic_shutter_hid_handshake_timer 
+4b28 20404b47 call classic_shutter_hid_disconn_timer 
+4b29 20204b4a branch ble_shutter_reconn_timer 
+
+shutter_check_sleep_timer:
+4b2a da6047db arg mem_shutter_sleep_timer ,regc 
+4b2b da404b2d arg shutter_sleep_timeout ,regb 
+4b2c 2020304b branch timer_single_step_2b 
+
+shutter_sleep_timeout:
+4b2d 7047df02 jam ss_state_power_off ,mem_shutter_soft_switch_power_state 
+4b2e 204030cf call app_led_off 
+4b2f 20404b8e call shutter_disconnect_current_connection 
+4b30 20204c60 branch shutter_wait_power_off 
+
+shutter_check_power_off_timer:
+4b31 da6049ec arg mem_shutter_power_off_timer ,regc 
+4b32 da404b34 arg shutter_check_power_off_timeout ,regb 
+4b33 20203044 branch timer_single_step 
+
+shutter_check_power_off_timeout:
+4b34 6fe1478b fetch 2 ,mem_ui_state_map 
+4b35 c284cc60 bbit1 ui_state_ble_connected ,shutter_wait_power_off 
+4b36 c2804c60 bbit1 ui_state_bt_connected ,shutter_wait_power_off 
+4b37 6fe0c9c9 fetch 1 ,mem_shutter_led_struct_app_led_type 
+4b38 c000cc60 beq ui_led_state_blink_start ,shutter_wait_power_off 
+4b39 c0024c60 beq ui_led_state_blink_lighting ,shutter_wait_power_off 
+4b3a c002cc60 beq ui_led_state_blink_darking ,shutter_wait_power_off 
+4b3b 202030d1 branch app_enter_hibernate 
+
+classic_shutter_check_unplug_timer:
+4b3c da6047ac arg mem_classic_shutter_cable_unplug_conut ,regc 
+4b3d da404b3f arg classic_shutter_unplug_timeout ,regb 
+4b3e 20203044 branch timer_single_step 
+
+classic_shutter_unplug_timeout:
+4b3f 6fe08330 fetch 1 ,mem_control_tasks 
+4b40 79207e00 set1 l2cap_disconnect_interrupt ,pdata 
+4b41 79207e07 set1 l2cap_disconnect_control ,pdata 
+4b42 67e08330 store 1 ,mem_control_tasks 
+4b43 20600000 rtn 
+
+classic_shutter_hid_handshake_timer:
+4b44 da604789 arg mem_hid_handshake_timer_count ,regc 
+4b45 da404ada arg classic_shutter_process_hid_handshake ,regb 
+4b46 20203044 branch timer_single_step 
+
+classic_shutter_hid_disconn_timer:
+4b47 da6047ad arg mem_classic_shutter_hid_disconn_count ,regc 
+4b48 da4030b0 arg app_bt_disconnect ,regb 
+4b49 20203044 branch timer_single_step 
+
+ble_shutter_reconn_timer:
+4b4a 6fe0c7df fetch 1 ,mem_shutter_soft_switch_power_state 
+4b4b c1808000 rtnne ss_state_power_on 
+4b4c da6047b7 arg mem_ble_shutter_reconn_timer ,regc 
+4b4d da404b60 arg shutter_start_bluetooth_discovery ,regb 
+4b4e 2020304b branch timer_single_step_2b 
+
+shutter_process_idle:
+4b4f 20404bd4 call shutter_send_data_to_master 
+4b50 202061c3 branch keyscan_key_process 
+
+shutter_process_lpm_before:
+4b51 202061b7 branch keyscan_process_lpm_before 
+
+shutter_le_before_hibernate:
+4b52 204060ec call gpio_set_before_lpm_common 
+4b53 20204b51 branch shutter_process_lpm_before 
+
+shutter_stop_bluetooth_discovery:
+4b54 6fe0c7a3 fetch 1 ,mem_shutter_bluetooth_type 
+4b55 c280cb5c bbit1 classic_shutter ,classic_shutter_stop_bluetooth_discovery 
+4b56 c2804b58 bbit1 ble_shutter ,ble_shutter_stop_bluetooth_discovery 
+4b57 20600000 rtn 
+
+ble_shutter_stop_bluetooth_discovery:
+4b58 6fe147d7 fetch 2 ,mem_ble_shutter_connect_timeout 
+4b59 67e147d9 store 2 ,mem_shutter_sleep_timeout 
+4b5a 67e147db store 2 ,mem_shutter_sleep_timer 
+4b5b 202030bf branch app_ble_stop_adv 
+
+classic_shutter_stop_bluetooth_discovery:
+4b5c 6fe147d3 fetch 2 ,mem_classic_shutter_connect_timeout 
+4b5d 67e147d9 store 2 ,mem_shutter_sleep_timeout 
+4b5e 67e147db store 2 ,mem_shutter_sleep_timer 
+4b5f 202030b7 branch app_bt_stop_discovery 
+
+shutter_start_bluetooth_discovery:
+4b60 6fe0c7df fetch 1 ,mem_shutter_soft_switch_power_state 
+4b61 c1808000 rtnne ss_state_power_on 
+4b62 6fe0c7a3 fetch 1 ,mem_shutter_bluetooth_type 
+4b63 c280cb66 bbit1 classic_shutter ,classic_shutter_start_discovery 
+4b64 c2804b6a bbit1 ble_shutter ,ble_shutter_start_discovery 
+4b65 20600000 rtn 
+
+classic_shutter_start_discovery:
+4b66 6fe147d1 fetch 2 ,mem_classic_shutter_discovery_timeout ,
+4b67 67e147d9 store 2 ,mem_shutter_sleep_timeout 
+4b68 67e147db store 2 ,mem_shutter_sleep_timer 
+4b69 202030b2 branch app_bt_start_discovery_short 
+
+ble_shutter_start_discovery:
+4b6a 6fe1478b fetch 2 ,mem_ui_state_map 
+4b6b c3848000 rtnbit1 ui_state_ble_connected 
+4b6c 6fe147d5 fetch 2 ,mem_ble_shutter_discovery_timeout 
+4b6d 67e147d9 store 2 ,mem_shutter_sleep_timeout 
+4b6e 67e147db store 2 ,mem_shutter_sleep_timer 
+4b6f 6fe147b3 fetch 2 ,mem_ble_shutter_discovery_adv_interval 
+4b70 20404c85 call shutter_ble_adv_interval_set 
+4b71 204030cb call app_led_start_blink 
+4b72 6fe247bd fetch 4 ,mem_ble_shutter_discovery_blink_on_time 
+4b73 67e249cc store 4 ,mem_shutter_led_struct_app_led_on_time 
+4b74 6fe1478b fetch 2 ,mem_ui_state_map 
+4b75 c3858000 rtnbit1 ui_state_ble_adv 
+4b76 202030c1 branch app_ble_start_adv 
+
+shutter_start_reconnect:
+4b77 6fe0c7df fetch 1 ,mem_shutter_soft_switch_power_state 
+4b78 c1808000 rtnne ss_state_power_on 
+4b79 6fe0c7a3 fetch 1 ,mem_shutter_bluetooth_type 
+4b7a c280cb7d bbit1 classic_shutter ,classic_shutter_start_reconnect 
+4b7b c2804b82 bbit1 ble_shutter ,ble_shutter_start_reconnect 
+4b7c 20600000 rtn 
+
+classic_shutter_start_reconnect:
+4b7d 20404b92 call app_check_reconn_target 
+4b7e 203a4b60 branch shutter_start_bluetooth_discovery ,blank 
+4b7f 204030cd call app_led_on 
+4b80 204030b7 call app_bt_stop_discovery 
+4b81 202030a8 branch app_bt_start_reconnect 
+
+ble_shutter_start_reconnect:
+4b82 6fe147b7 fetch 2 ,mem_ble_shutter_reconn_timer 
+4b83 684947b5 fetcht 2 ,mem_ble_shutter_reconn_timeout 
+4b84 604947b7 storet 2 ,mem_ble_shutter_reconn_timer 
+4b85 247a0000 nrtn blank 
+4b86 6fe147b1 fetch 2 ,mem_ble_shutter_reconn_dav_interval 
+4b87 20404c85 call shutter_ble_adv_interval_set 
+4b88 204030cb call app_led_start_blink 
+4b89 6fe247b9 fetch 4 ,mem_ble_shutter_reconn_blink_on_time 
+4b8a 67e249cc store 4 ,mem_shutter_led_struct_app_led_on_time 
+4b8b 6fe1478b fetch 2 ,mem_ui_state_map 
+4b8c c3858000 rtnbit1 ui_state_ble_adv 
+4b8d 202030c1 branch app_ble_start_adv 
+
+shutter_disconnect_current_connection:
+4b8e 6fe1478b fetch 2 ,mem_ui_state_map 
+4b8f c284b0c9 bbit1 ui_state_ble_connected ,app_ble_disconnect 
+4b90 c28030b0 bbit1 ui_state_bt_connected ,app_bt_disconnect 
+4b91 20204b54 branch shutter_stop_bluetooth_discovery 
+
+app_check_reconn_target:
+4b92 6fe0c48d fetch 1 ,mem_nv_data_number 
+4b93 1fe27200 copy pdata ,loopcnt 
+4b94 6fe1448b fetch 2 ,mem_nv_data_ptr 
+4b95 1fe22200 copy pdata ,rega 
+
+app_check_reconn_target_loop:
+4b96 efe10011 ifetch 2 ,rega 
+4b97 c0004b9b beq 0 ,found_reconn_device 
+4b98 1a20a222 increase nv_data_len ,rega 
+4b99 c2004b96 loop app_check_reconn_target_loop 
+4b9a 20207e6c branch enable_blank 
+
+found_reconn_device:
+4b9b efe30006 ifetch 6 ,contr 
+4b9c 67e341e0 store 6 ,mem_hci_plap 
+4b9d 18c08c0a increase 10 ,contr 
+4b9e d8a041ce arg mem_link_key ,contw 
+4b9f 20407d1a call memcpy16 
+4ba0 2040607b call check_link_key_load 
+4ba1 20207e6a branch disable_blank 
+
+shutter_check_data_enable:
+4ba2 20407e64 call disable_user 
+4ba3 6fe1478b fetch 2 ,mem_ui_state_map 
+4ba4 c2804ba7 bbit1 ui_state_bt_connected ,shutter_check_bt_data_enable 
+4ba5 c284cbaa bbit1 ui_state_ble_connected ,shutter_check_ble_data_enable 
+4ba6 20600000 rtn 
+
+shutter_check_bt_data_enable:
+4ba7 6fe0c4e3 fetch 1 ,mem_hid_interrupt_state 
+4ba8 c19f8000 rtnne 0x3f 
+4ba9 20207e62 branch enable_user 
+
+shutter_check_ble_data_enable:
+4baa 6fe0c7b0 fetch 1 ,mem_ble_shutter_enable_notify 
+4bab 207a0000 rtn blank 
+4bac 20207e62 branch enable_user 
+
+shutter_check_bluetooth_conn:
+4bad 20407e64 call disable_user 
+4bae 6fe1478b fetch 2 ,mem_ui_state_map 
+4baf c3800000 rtnbit1 ui_state_bt_connected 
+4bb0 c3848000 rtnbit1 ui_state_ble_connected 
+4bb1 20207e62 branch enable_user 
+
+shutter_change_bluetooth_status_bt_disconn:
+4bb2 6fe0c7a3 fetch 1 ,mem_shutter_bluetooth_type 
+4bb3 c280cbb6 bbit1 classic_shutter ,classic_shutter_change_bluetooth_status_bt_disconn 
+4bb4 c2804bb9 bbit1 ble_shutter ,ble_shutter_change_bluetooth_status_bt_disconn 
+4bb5 20600000 rtn 
+
+classic_shutter_change_bluetooth_status_bt_disconn:
+4bb6 6fe0c09b fetch 1 ,mem_scan_mode 
+4bb7 c1818000 rtnne 0x03 
+4bb8 20204b77 branch shutter_start_reconnect 
+
+ble_shutter_change_bluetooth_status_bt_disconn:
+4bb9 20204b77 branch shutter_start_reconnect 
+
+shutter_check_send_data:
+4bba 78567c00 disable user2 
+4bbb 6fe147d9 fetch 2 ,mem_shutter_sleep_timeout 
+4bbc 67e147db store 2 ,mem_shutter_sleep_timer 
+4bbd 20404bad call shutter_check_bluetooth_conn 
+4bbe 20344bb2 branch shutter_change_bluetooth_status_bt_disconn ,user 
+4bbf 20404ba2 call shutter_check_data_enable 
+4bc0 24740000 nrtn user 
+4bc1 78367c00 enable user2 
+4bc2 20600000 rtn 
+
+shutter_key_change:
+4bc3 20404bba call shutter_check_send_data 
+4bc4 24760000 nrtn user2 
+4bc5 1a227e00 deposit rega 
+4bc6 203a4bca branch shutter_key_release ,blank 
+
+shutter_key_press:
+4bc7 204030cd call app_led_on 
+4bc8 da6047f1 arg mem_key0_press ,regc 
+4bc9 20204bcc branch push_queue_press_or_release 
+
+shutter_key_release:
+4bca 204030cf call app_led_off 
+4bcb da604819 arg mem_key0_release ,regc 
+
+push_queue_press_or_release:
+4bcc dfe00005 arg max_queue_num ,pdata 
+4bcd 98effe00 imul32 queue ,pdata 
+4bce 9a60a600 iadd regc ,regc 
+
+push_buffer_in_queue:
+4bcf efe08013 ifetch 1 ,regc 
+4bd0 207a0000 rtn blank 
+4bd1 20404bf5 call queue_push_one_byte 
+4bd2 1a60a601 increase 1 ,regc 
+4bd3 20204bcf branch push_buffer_in_queue 
+
+shutter_send_data_to_master:
+4bd4 6fe1478b fetch 2 ,mem_ui_state_map 
+4bd5 c284cbd8 bbit1 ui_state_ble_connected ,pop_queue_to_ble_data 
+4bd6 c2804be1 bbit1 ui_state_bt_connected ,pop_queue_to_classic_data 
+4bd7 20600000 rtn 
+
+pop_queue_to_ble_data:
+4bd8 20402382 call le_fifo_check_nearly_full 
+4bd9 247a0000 nrtn blank 
+4bda 20404bf8 call queue_pop_one_byte 
+4bdb 24740000 nrtn user 
+4bdc 1fe0ffff pincrease -1 
+4bdd 1feffe05 mul32 pdata ,shutter_ble_data_buffer ,pdata 
+4bde d8404841 arg mem_ble_data_buffer1 ,temp 
+4bdf 98408c00 iadd temp ,contr 
+4be0 20204c89 branch le_send_notify_from_list 
+
+pop_queue_to_classic_data:
+4be1 204052cf call l2cap_malloc_is_fifo_nearly_full 
+4be2 247a0000 nrtn blank 
+4be3 20404bf8 call queue_pop_one_byte 
+4be4 24740000 nrtn user 
+4be5 1fe0ffff pincrease -1 
+4be6 1feffe05 mul32 pdata ,shutter_classic_data_buffer ,pdata 
+4be7 d84048a0 arg mem_classic_data_buffer1 ,temp 
+4be8 98408c00 iadd temp ,contr 
+4be9 efe28006 ifetch 5 ,contr 
+4bea 67e2c89b store 5 ,mem_classic_data_buffer 
+
+classic_send_hid_data:
+4beb 6fe0c89b fetch 1 ,mem_classic_data_buffer 
+4bec 1fe22200 copy pdata ,rega 
+4bed 20404d9f call hid_malloc_tx_buff 
+4bee 6fe144de fetch 2 ,mem_hid_int_remote_cid 
+4bef e7e10005 istore 2 ,contw 
+4bf0 580000a1 setarg 0xa1 
+4bf1 e7e08005 istore 1 ,contw 
+4bf2 6fe2489c fetch 4 ,mem_classic_data_buffer + 1 
+4bf3 e7e48005 istore 9 ,contw 
+4bf4 20600000 rtn 
+
+queue_push_one_byte:
+4bf5 67e0895c store 1 ,mem_pdatatemp 
+4bf6 da20095c arg mem_pdatatemp ,rega 
+4bf7 2020796d branch queue_push 
+
+queue_pop_one_byte:
+4bf8 da20095c arg mem_pdatatemp ,rega 
+4bf9 20407984 call queue_pop 
+4bfa 24740000 nrtn user 
+4bfb 6fe0895c fetch 1 ,mem_pdatatemp 
+4bfc 20600000 rtn 
+
+ble_shutter_receive_data:
+4bfd 6fe14435 fetch 2 ,mem_le_att_handle 
+4bfe c00c4afd beq gatt_keyboard_write_handle ,ble_shutter_process_reconnect_complete 
+4bff 20600000 rtn 
+
+shutter_init_param:
+4c00 58000002 setarg 0x02 
+4c01 67e0c9eb store 1 ,mem_shutter_power_off_timeout 
+4c02 58200008 setarg 0x00200008 
+4c03 67e247c1 store 4 ,mem_ble_shutter_interval_min 
+4c04 592c0005 setarg 0x012c0005 
+4c05 e7e20005 istore 4 ,contw 
+4c06 70437e17 jam 0x17 ,mem_le_local_mtu 
+4c07 5800001b setarg 0x1b 
+4c08 67e143cf store 2 ,mem_le_pairing_handle 
+4c09 20402321 call le_set_config_fixed_ltk 
+4c0a 2040233d call le_set_fixed_ltk 
+4c0b 2040234a call le_set_justwork 
+4c0c 20202329 branch le_set_config_read_authentication 
+
+shutter_load_buffer_config_form_datarom:
+4c0d df200028 arg ble_key_value_list_size ,loopcnt 
+4c0e d8a04841 arg mem_ble_data_buffer1 ,contw 
+4c0f d8c09e57 arg ble_shutter_key_value_list ,contr 
+4c10 20407d60 call memcpy_fast 
+4c11 df200028 arg bt_key_value_list_size ,loopcnt 
+4c12 d8a048a0 arg mem_classic_data_buffer1 ,contw 
+4c13 d8c09e7f arg classic_shutter_key_value_list ,contr 
+4c14 20207d60 branch memcpy_fast 
+
+shutter_load_ble_gatt_form_datarom:
+4c15 df20017e arg ble_gatt_list_size ,loopcnt 
+4c16 d8c09af2 arg ble_shutter_gatt_list ,contr 
+4c17 20207d60 branch memcpy_fast 
+
+shutter_load_bt_sdp_form_datarom:
+4c18 df2001e7 arg bt_sdp_list_size ,loopcnt 
+4c19 d8c09c70 arg classic_shutter_sdp_list ,contr 
+4c1a 20207d60 branch memcpy_fast 
+
+shutter_load_bluetooth_config_store_name:
+4c1b 6fe0898e fetch 1 ,mem_shutter_config_data_temp 
+4c1c 1fe27200 copy pdata ,loopcnt 
+4c1d 67e0c2f5 store 1 ,mem_le_name_len 
+4c1e 20407d60 call memcpy_fast 
+4c1f 6fe0898e fetch 1 ,mem_shutter_config_data_temp 
+4c20 1fe27200 copy pdata ,loopcnt 
+4c21 67e0c5fc store 1 ,mem_local_name_length 
+4c22 20407d60 call memcpy_fast 
+4c23 efe08006 ifetch 1 ,contr 
+4c24 67e0c7e6 store 1 ,mem_shutter_key_num 
+4c25 efe08006 ifetch 1 ,contr 
+4c26 67e0c7dd store 1 ,mem_shutter_hard_soft_switch_case 
+4c27 20600000 rtn 
+
+shutter_load_bluetooth_config_by_eeprom:
+4c28 6fe0c7a3 fetch 1 ,mem_shutter_bluetooth_type 
+4c29 c4008000 rtnbit0 classic_shutter 
+4c2a d8400003 arg 3 ,temp 
+4c2b 6fe147a4 fetch 2 ,mem_shutter_config_eeprom_offset_addr 
+4c2c 1fe22400 copy pdata ,regb 
+4c2d da2047a6 arg mem_shutter_config_eeprom_start_flag ,rega 
+4c2e 20405e29 call iicd_read_eep_data 
+4c2f 684947a6 fetcht 2 ,mem_shutter_config_eeprom_start_flag 
+4c30 58001b3a setarg shutter_eeprom_config_crc 
+4c31 98467c00 isub temp ,null 
+4c32 24628000 nrtn zero 
+4c33 6fe0c7a8 fetch 1 ,mem_shutter_config_user_size 
+4c34 207a0000 rtn blank 
+4c35 1fe20400 copy pdata ,temp 
+4c36 6fe147a4 fetch 2 ,mem_shutter_config_eeprom_offset_addr 
+4c37 1fe0a403 add pdata ,3 ,regb 
+4c38 da20098e arg mem_shutter_config_data_temp ,rega 
+4c39 20405e29 call iicd_read_eep_data 
+4c3a 20204c3b branch shutter_store_config 
+
+shutter_store_config:
+4c3b 20404c1b call shutter_load_bluetooth_config_store_name 
+
+shutter_load_bluetooth_config_custom:
+4c3c efe10006 ifetch 2 ,contr 
+4c3d 207a0000 rtn blank 
+4c3e 1fe20a00 copy pdata ,contw 
+4c3f e8408006 ifetcht 1 ,contr 
+4c40 18427200 copy temp ,loopcnt 
+4c41 20407d6d call memcpy 
+4c42 20204c3c branch shutter_load_bluetooth_config_custom 
+
+shutter_random_mac_addr:
+4c43 6fe0c7a3 fetch 1 ,mem_shutter_bluetooth_type 
+4c44 c4008000 rtnbit0 classic_shutter 
+4c45 6fe147ae fetch 2 ,mem_classic_shutter_random_mac_offset_addr 
+4c46 207a0000 rtn blank 
+4c47 1fe22400 copy pdata ,regb 
+4c48 d8400004 arg 4 ,temp 
+4c49 da20098e arg mem_shutter_random_mac_data_temp ,rega 
+4c4a 20405e29 call iicd_read_eep_data 
+4c4b 6fe0898e fetch 1 ,mem_shutter_random_mac_data_temp 
+4c4c c080cc4e bne 1 ,shutter_write_random_mac_addr_to_eeprom 
+4c4d 20204c57 branch shutter_write_random_mac_addr 
+
+shutter_write_random_mac_addr_to_eeprom:
+4c4e 58000001 setarg 1 
+4c4f 67e0898e store 1 ,mem_shutter_random_mac_data_temp 
+4c50 18007203 force 3 ,loopcnt 
+4c51 204059ed call generate_random_loop 
+4c52 6fe147ae fetch 2 ,mem_classic_shutter_random_mac_offset_addr 
+4c53 1fe22400 copy pdata ,regb 
+4c54 d8400004 arg 4 ,temp 
+4c55 da20098e arg mem_shutter_random_mac_data_temp ,rega 
+4c56 20405e4f call iicd_write_eep_data 
+
+shutter_write_random_mac_addr:
+4c57 6fe1898f fetch 3 ,mem_shutter_random_mac_data_temp + 1 
+4c58 67e1c0a8 store 3 ,mem_lap 
+4c59 67e1c378 store 3 ,mem_le_lap 
+4c5a 20600000 rtn 
+
+shutter_soft_swtich_power_on:
+4c5b 20204b77 branch shutter_start_reconnect 
+
+shutter_soft_swtich_power_off:
+4c5c da200000 arg 0 ,rega 
+4c5d da6049d4 arg mem_shutter_power_off_led_style ,regc 
+4c5e 20407839 call ui_led_set_style_global 
+4c5f 20404b8e call shutter_disconnect_current_connection 
+
+shutter_wait_power_off:
+4c60 6fe0c9eb fetch 1 ,mem_shutter_power_off_timeout 
+4c61 67e0c9ec store 1 ,mem_shutter_power_off_timer 
+4c62 20600000 rtn 
+
+ui_soft_swtich_init:
+4c63 58000000 setarg ss_state_power_up 
+4c64 20404c6b call ui_soft_swtich_init_power_on_time 
+4c65 70478201 jam ui_button_state_up ,mem_ui_button_last_state 
+4c66 204077e8 call ui_button_init 
+4c67 204077f2 call ui_button_polling 
+4c68 6fe1478b fetch 2 ,mem_ui_state_map 
+4c69 c3860000 rtnbit1 ui_state_btn_down 
+4c6a 202030d1 branch app_enter_hibernate 
+
+ui_soft_swtich_init_power_on_time:
+4c6b 684944cb fetcht 2 ,mem_power_param_ptr 
+4c6c e7e08002 istore 1 ,temp 
+4c6d efe08005 ifetch 1 ,contw 
+4c6e 67e0c78e store 1 ,mem_ui_button_timeout 
+4c6f 20600000 rtn 
+
+ui_soft_switch_botton_up:
+4c70 6fe144cb fetch 2 ,mem_power_param_ptr 
+4c71 efe0803f ifetch 1 ,pdata 
+4c72 c1800000 rtnne ss_state_power_up 
+4c73 202030d1 branch app_enter_hibernate 
+
+ui_soft_switch_botton_long_press:
+4c74 684944cb fetcht 2 ,mem_power_param_ptr 
+4c75 efe08002 ifetch 1 ,temp 
+4c76 c000cc7f beq ss_state_power_on ,ui_soft_switch_power_off 
+
+ui_soft_switch_power_on:
+4c77 58000001 setarg ss_state_power_on 
+4c78 684944cb fetcht 2 ,mem_power_param_ptr 
+4c79 e7e08002 istore 1 ,temp 
+4c7a 18408c02 add temp ,ss_power_off_time ,contr 
+4c7b efe08006 ifetch 1 ,contr 
+4c7c e7e0800e istore 1 ,mem_ui_button_timeout 
+4c7d efe10006 ifetch 2 ,contr 
+4c7e 20207e13 branch callback_func 
+
+ui_soft_switch_power_off:
+4c7f 58000002 setarg ss_state_power_off 
+4c80 20404c6b call ui_soft_swtich_init_power_on_time 
+4c81 18408c05 add temp ,ss_power_off_cb ,contr 
+4c82 efe10006 ifetch 2 ,contr 
+4c83 203a30d1 branch app_enter_hibernate ,blank 
+4c84 20207e13 branch callback_func 
+
+shutter_ble_adv_interval_set:
+4c85 67e1415c store 2 ,mem_lpm_interval 
+4c86 1fe0fffc increase -4 ,pdata 
+4c87 67e14426 store 2 ,mem_le_adv_interval 
+4c88 20600000 rtn 
+
+le_send_notify_from_list:
+4c89 efe08006 ifetch 1 ,contr 
+4c8a 1fe22200 copy pdata ,rega 
+4c8b e8410006 ifetcht 2 ,contr 
+4c8c 20407cff call store_contr 
+4c8d 204026bd call le_att_malloc_tx_notify 
+4c8e 1a227200 copy rega ,loopcnt 
+4c8f 20407cf9 call get_contr 
+4c90 20207d6d branch memcpy 
+
+rf_debug_rx_gpio_low:
+4c91 6fe0c4d4 fetch 1 ,mem_rf_debug_rx_gpio 
+
+rf_debug_gpio_low:
+4c92 d840003e arg gpcfg_output_low ,temp 
+4c93 202060e1 branch gpio_config_function 
+
+rf_debug_rx_gpio_high:
+4c94 6fe0c4d4 fetch 1 ,mem_rf_debug_rx_gpio 
+
+rf_debug_gpio_high:
+4c95 d840003f arg gpcfg_output_high ,temp 
+4c96 202060e1 branch gpio_config_function 
+
+rf_debug_rx_on_line:
+
+rf_debug_rx_gpio_h_l_h:
+4c97 20404c94 call rf_debug_rx_gpio_high 
+
+rf_debug_rx_gpio_l_h:
+4c98 20404c91 call rf_debug_rx_gpio_low 
+4c99 20204c94 branch rf_debug_rx_gpio_high 
+
+rf_debug_rx_gpio_l_h_l:
+
+rf_debug_shutdown_radio_line:
+4c9a 20404c98 call rf_debug_rx_gpio_l_h 
+
+rf_debug_rx_crc_line:
+4c9b 20204c91 branch rf_debug_rx_gpio_low 
+
+rf_debug_rx_sync_line:
+4c9c 20204c98 branch rf_debug_rx_gpio_l_h 
+
+rf_debug_rx_crc_fail_line:
+4c9d 20404c98 call rf_debug_rx_gpio_l_h 
+4c9e 20204c9a branch rf_debug_rx_gpio_l_h_l 
+
+rf_debug_rx_match_line:
+
+rf_debug_rx_crc_error_line:
+
+rf_debug_rx_sync_timeout_line:
+4c9f 20204c91 branch rf_debug_rx_gpio_low 
+
+rf_debug_tx_off_line:
+
+rf_debug_tx_gpio_low:
+4ca0 6fe0c4d5 fetch 1 ,mem_rf_debug_tx_gpio 
+4ca1 20204c92 branch rf_debug_gpio_low 
+
+rf_debug_tx_on_line:
+
+rf_debug_tx_gpio_high:
+4ca2 6fe0c4d5 fetch 1 ,mem_rf_debug_tx_gpio 
+4ca3 20204c95 branch rf_debug_gpio_high 
+
+rf_debug_tx_gpio_l_h_l:
+4ca4 20404ca0 call rf_debug_tx_gpio_low 
+4ca5 20404ca2 call rf_debug_tx_gpio_high 
+4ca6 20204ca0 branch rf_debug_tx_gpio_low 
+
+hci_init:
+4ca7 20800000 clear_stack 
+4ca8 20404cb0 call hci_init_uart_default_config 
+4ca9 20404cc4 call hci_init_uart_config 
+4caa 20404ce0 call hci_init_pwm_default_config 
+4cab 20404ce4 call hci_init_pwm 
+4cac 7009fc01 jam 1 ,mem_hci_command_complete_num_hci_command_packet 
+4cad 7009f904 jam hci_h4_type_event ,mem_hci_event_head_type 
+
+hci_process_loop:
+4cae 20404cef call hci_process_check_uart_rx 
+4caf 20204cae branch hci_process_loop 
+
+hci_init_uart_default_config:
+4cb0 20404cb4 call hci_init_uart_default_config_tx 
+4cb1 20404cb8 call hci_init_uart_default_config_rx 
+4cb2 20404cbc call hci_init_uart_default_config_rts 
+4cb3 20204cc0 branch hci_init_uart_default_config_cts 
+
+hci_init_uart_default_config_tx:
+4cb4 6fe0c7a3 fetch 1 ,mem_hci_uart_tx_gpio 
+4cb5 247a0000 nrtn blank 
+4cb6 7047a310 jam hci_uart_tx_gpio_num ,mem_hci_uart_tx_gpio 
+4cb7 20600000 rtn 
+
+hci_init_uart_default_config_rx:
+4cb8 6fe0c7a4 fetch 1 ,mem_hci_uart_rx_gpio 
+4cb9 247a0000 nrtn blank 
+4cba 7047a411 jam hci_uart_rx_gpio_num ,mem_hci_uart_rx_gpio 
+4cbb 20600000 rtn 
+
+hci_init_uart_default_config_rts:
+4cbc 6fe0c7a5 fetch 1 ,mem_hci_uart_rts_gpio 
+4cbd 247a0000 nrtn blank 
+4cbe 7047a50a jam hci_uart_rts_gpio_num ,mem_hci_uart_rts_gpio 
+4cbf 20600000 rtn 
+
+hci_init_uart_default_config_cts:
+4cc0 6fe0c7a6 fetch 1 ,mem_hci_uart_cts_gpio 
+4cc1 247a0000 nrtn blank 
+4cc2 7047a60b jam hci_uart_cts_gpio_num ,mem_hci_uart_cts_gpio 
+4cc3 20600000 rtn 
+
+hci_init_uart_config:
+4cc4 58001800 setarg mem_h5rx_buf 
+4cc5 67e1095c store 2 ,mem_pdatatemp 
+4cc6 58001bff setarg mem_h5rx_buf_end 
+4cc7 e7e10005 istore 2 ,contw 
+4cc8 58001c00 setarg mem_h5tx_buf 
+4cc9 e7e10005 istore 2 ,contw 
+4cca 58001fff setarg mem_h5tx_buf_end 
+4ccb e7e10005 istore 2 ,contw 
+4ccc 6fe4095c fetch 8 ,mem_pdatatemp 
+4ccd 20405efb call uarta_init_dma_mem 
+4cce 20405f26 call uart_clock_select_main_freq_dpll 
+4ccf d841c200 arg 115200 ,temp 
+4cd0 20405f13 call uarta_calc_baud_rate_config 
+4cd1 6fe0c7a3 fetch 1 ,mem_hci_uart_tx_gpio 
+4cd2 d8400008 arg gpcfg_uart_txd ,temp 
+4cd3 204060e2 call gpio_config_function_int 
+4cd4 6fe0c7a4 fetch 1 ,mem_hci_uart_rx_gpio 
+4cd5 d8400049 arg gpcfg_uart_rxd | gpcfg_pullup ,temp 
+4cd6 204060e2 call gpio_config_function_int 
+4cd7 6fe0c7a5 fetch 1 ,mem_hci_uart_rts_gpio 
+4cd8 d840000a arg gpcfg_uart_rts ,temp 
+4cd9 204060e2 call gpio_config_function_int 
+4cda 6fe0c7a6 fetch 1 ,mem_hci_uart_cts_gpio 
+4cdb d840000b arg gpcfg_uart_cts ,temp 
+4cdc 204060e2 call gpio_config_function_int 
+4cdd d8400081 arg fun_uart_control_enable | fun_uart_control_setting_rate_baud ,temp 
+4cde 60588060 storet 1 ,core_uart_ctrl 
+4cdf 20207e10 branch clean_mem 
+
+hci_init_pwm_default_config:
+4ce0 6fe0c7a7 fetch 1 ,mem_hci_pwm_12mhz_gpio 
+4ce1 247a0000 nrtn blank 
+4ce2 7047a70d jam hci_pmw_12mhz_gpio_num ,mem_hci_pwm_12mhz_gpio 
+4ce3 20600000 rtn 
+
+hci_init_pwm:
+4ce4 6fe0c7a7 fetch 1 ,mem_hci_pwm_12mhz_gpio 
+4ce5 d8400010 arg gpcfg_pwm_out0 ,temp 
+4ce6 204060e2 call gpio_config_function_int 
+4ce7 da200040 arg 0x40 ,rega 
+4ce8 204061f1 call pwm_init 
+4ce9 da200000 arg 0 ,rega 
+4cea da400000 arg 0 ,regb 
+4ceb 58000000 setarg 0 
+4cec 2040622a call pwm_duty_cycle_set 
+4ced d8e00000 arg 0 ,queue 
+4cee 2020623d branch pwm_set_select 
+
+hci_process_check_uart_rx:
+4cef 6ff10112 fetch 2 ,core_uart_rxitems 
+4cf0 1fe0a3fc add pdata ,-4 ,rega 
+4cf1 24610000 nrtn positive 
+4cf2 20405f42 call uarta_prepare_rx 
+4cf3 efe08003 ifetch 1 ,contru 
+4cf4 c000ccf7 beq hci_h4_type_cmd ,hci_parse_packet_cmd 
+4cf5 20407d20 call delay_10ms 
+4cf6 20205f52 branch uarta_clear_current_rx 
+
+hci_parse_packet_cmd:
+4cf7 efe10003 ifetch 2 ,contru 
+4cf8 67e109fd store 2 ,mem_hci_opcode 
+4cf9 d84003ff arg 0x3ff ,temp 
+4cfa 98410400 iand temp ,temp 
+4cfb 604909f6 storet 2 ,mem_hci_opcode_ocf 
+4cfc 1feb7e00 rshift2 pdata ,pdata 
+4cfd 1fecfe00 rshift8 pdata ,pdata 
+4cfe 67e089f8 store 1 ,mem_hci_opcode_ogf 
+4cff efe08003 ifetch 1 ,contru 
+4d00 1fe0ffff pincrease -1 
+4d01 9a267c00 isub rega ,null 
+4d02 20610000 rtn positive 
+4d03 20404d05 call hci_parse_complete_packet 
+4d04 20204d60 branch hci_drop_current_packet 
+
+hci_parse_complete_packet:
+4d05 6fe089f8 fetch 1 ,mem_hci_opcode_ogf 
+4d06 c01fcd08 beq hci_ogf_vendor_specific_debug ,hci_parse_packet_cmd_ogf_vendorspecific_debug 
+4d07 20204d4c branch hci_send_event_command_complete_error_command_nuknown 
+
+hci_parse_packet_cmd_ogf_vendorspecific_debug:
+4d08 44f4c01d bpatch patch1d_1 ,mem_patch1d 
+4d09 6fe089f6 fetch 1 ,mem_hci_opcode_ocf 
+4d0a c0004d4b beq hci_vendor_cmd_reset ,hci_normal_reply 
+4d0b c000cd13 beq hci_vendor_cmd_chipid ,phci_grp_vendor_chipid 
+4d0c c0014d18 beq hci_vendor_cmd_baud ,phci_grp_vendor_baud 
+4d0d c001cd26 beq hci_vendor_cmd_patch ,phci_grp_vendor_patch 
+4d0e c0024d30 beq hci_vendor_cmd_patch_done ,phci_grp_vendor_done 
+4d0f c002cd4b beq hci_vendor_cmd_echo ,hci_normal_reply 
+4d10 c0084d41 beq hci_vendor_cmd_mem ,phci_grp_vendor_mem 
+4d11 c00a4d47 beq hci_vendor_cmd_set_flow_control ,phci_grp_vendor_flow_control 
+4d12 20204d4b branch hci_normal_reply 
+
+phci_grp_vendor_chipid:
+4d13 7009ff00 jam command_succeeded ,mem_hci_command_complete_return_parameter 
+4d14 6ff10000 fetch 2 ,core_chipid 
+4d15 67e10a00 store 2 ,mem_hci_command_complete_return_parameter_chip_id 
+4d16 df200003 arg 3 ,loopcnt 
+4d17 20204d53 branch hci_send_event_command_complete 
+
+phci_grp_vendor_baud:
+4d18 efe10003 ifetch 2 ,contu 
+4d19 67f10052 store 2 ,core_uart_baud 
+4d1a 20600000 rtn 
+
+phci_grp_vendor_patch_common:
+4d1b efe08003 ifetch 1 ,contu 
+4d1c 1fe20400 copy pdata ,temp 
+4d1d 67f08024 store 1 ,core_ucode_low 
+4d1e efe08003 ifetch 1 ,contu 
+4d1f 98408400 iadd temp ,temp 
+4d20 79207e07 set1 7 ,pdata 
+4d21 67f08023 store 1 ,core_ucode_ctrl 
+4d22 efe08003 ifetch 1 ,contu 
+4d23 98408400 iadd temp ,temp 
+4d24 1fe27200 copy pdata ,loopcnt 
+4d25 20600000 rtn 
+
+phci_grp_vendor_patch:
+4d26 20404d1b call phci_grp_vendor_patch_common 
+
+phci_grp_vendor_patch_loop:
+4d27 efe08003 ifetch 1 ,contu 
+4d28 67f08025 store 1 ,core_ucode_data 
+4d29 98408400 iadd temp ,temp 
+4d2a c2004d27 loop phci_grp_vendor_patch_loop 
+
+phci_grp_vendor_patch_check_sum:
+4d2b 184104ff and temp ,0xff ,temp 
+4d2c efe08003 ifetch 1 ,contu 
+4d2d 98467c00 isub temp ,null 
+4d2e 2422cd3f nbranch phci_grp_vendor_patch_bad ,zero 
+4d2f 20204d4b branch hci_normal_reply 
+
+phci_grp_vendor_done:
+4d30 df200020 arg 0x20 ,loopcnt 
+4d31 d8a04000 arg mem_patch00 ,contw 
+4d32 d8400000 arg 0 ,temp 
+
+phci_grp_vendor_done_loop:
+4d33 efe08003 ifetch 1 ,contu 
+4d34 e7e08005 istore 1 ,contw 
+4d35 98408400 iadd temp ,temp 
+4d36 c2004d33 loop phci_grp_vendor_done_loop 
+4d37 184104ff and temp ,0xff ,temp 
+4d38 efe08003 ifetch 1 ,contu 
+4d39 98467c00 isub temp ,null 
+4d3a 2422cd3f nbranch phci_grp_vendor_patch_bad ,zero 
+4d3b 70802300 jam 0 ,core_ucode_ctrl 
+4d3c 20404d4b call hci_normal_reply 
+4d3d 20407e15 call wait_uarttx 
+4d3e 20200801 branch soft_reset 
+
+phci_grp_vendor_patch_bad:
+4d3f 70802300 jam 0 ,core_ucode_ctrl 
+4d40 20204d4c branch hci_send_event_command_complete_error_command_nuknown 
+
+phci_grp_vendor_mem:
+4d41 efe08003 ifetch 1 ,contu 
+4d42 1fe27200 copy pdata ,loopcnt 
+4d43 efe10003 ifetch 2 ,contu 
+4d44 1fe20a00 copy pdata ,contw 
+4d45 20405f98 call uart_copy_rx_bytes 
+4d46 20204d4b branch hci_normal_reply 
+
+phci_grp_vendor_flow_control:
+4d47 6ff08060 fetch 1 ,core_uart_ctrl 
+4d48 79207e04 set1 bit_uart_control_flow_control ,pdata 
+4d49 67f08060 store 1 ,core_uart_ctrl 
+4d4a 20204d4b branch hci_normal_reply 
+
+hci_normal_reply:
+4d4b 20204d50 branch hci_send_event_command_complete_without_payload 
+
+hci_send_event_command_complete_error_command_nuknown:
+4d4c 7009ff01 jam command_unknown ,mem_hci_command_complete_return_parameter 
+4d4d 20204d51 branch hci_send_event_command_complete_without_payload + 1 
+
+hci_send_event_command_complete_error_command_disallowed:
+4d4e 7009ff0c jam command_disallowed ,mem_hci_command_complete_return_parameter 
+4d4f 20204d51 branch hci_send_event_command_complete_without_payload + 1 
+
+hci_send_event_command_complete_without_payload:
+4d50 7009ff00 jam command_succeeded ,mem_hci_command_complete_return_parameter 
+4d51 df200001 arg 1 ,loopcnt 
+4d52 20204d53 branch hci_send_event_command_complete 
+
+hci_send_event_command_complete:
+4d53 7009fa0e jam hci_event_command_complete ,mem_hci_event_head_event_code 
+4d54 1f20fe03 add loopcnt ,3 ,pdata 
+4d55 67e089fb store 1 ,mem_hci_event_para_total_length 
+4d56 20404d5c call hci_prepare_send_event 
+4d57 6fe189fc fetch 3 ,mem_hci_command_complete_num_hci_command_packet 
+4d58 e7e18003 istore 3 ,contwu 
+4d59 d8c009ff arg mem_hci_command_complete_return_parameter ,contr 
+4d5a 20405f7e call uart_copy_tx_bytes 
+4d5b 20205f5e branch uarta_send_register_pop 
+
+hci_prepare_send_event:
+4d5c 20405f5a call uarta_prepare_tx_register_push 
+4d5d 6fe189f9 fetch 3 ,mem_hci_event_head_type 
+4d5e e7e18003 istore 3 ,contwu 
+4d5f 20600000 rtn 
+
+hci_drop_current_packet:
+4d60 20405f42 call uarta_prepare_rx 
+4d61 18608603 increase 3 ,contru 
+4d62 efe08003 ifetch 1 ,contru 
+4d63 98608600 iadd contru ,contru 
+4d64 20205f4e branch uarta_rxdone 
+
+cmd_exit:
+4d65 7041de00 jam 0 ,mem_hci_cmd 
+4d66 20600000 rtn 
+
+cmd_check_plap:
+4d67 6fe341e0 fetch 6 ,mem_hci_plap 
+4d68 684b0041 fetcht 6 ,mem_plap 
+4d69 98467c00 isub temp ,null 
+4d6a 20600000 rtn 
+
+hid_rx_process:
+4d6b 44f5401d bpatch patch1d_2 ,mem_patch1d 
+4d6c 6fe10315 fetch 2 ,mem_l2cap_payload_ptr 
+4d6d 1fe20c00 copy pdata ,contr 
+4d6e efe08006 ifetch 1 ,contr 
+4d6f 67e0c5f5 store 1 ,mem_l2cap_rcv_hidtype 
+4d70 1fe1040f and pdata ,0x0f ,temp 
+4d71 1ff1fe00 rshift4 pdata ,pdata 
+4d72 c004cd8c beq hid_type_set_idle ,hid_rx_process_handshake 
+4d73 c003cd8c beq hid_type_set_protocol ,hid_rx_process_handshake 
+4d74 c0054d9b beq hid_type_data ,hid_rx_process_data 
+4d75 c002cd84 beq hid_type_set_report ,hid_rx_process_set_report 
+4d76 c000cd78 beq hid_type_control ,hid_rx_process_hid_control 
+4d77 20600000 rtn 
+
+hid_rx_process_hid_control:
+4d78 18427e00 copy temp ,pdata 
+4d79 c002cd7c beq hid_control_p_virtualcableunplug ,hid_rx_process_virtual_cable_unplug 
+4d7a c001cd83 beq hid_control_p_suspend ,hid_rx_process_suspend 
+4d7b 20600000 rtn 
+
+hid_rx_process_virtual_cable_unplug:
+4d7c 70095b27 jam bt_evt_virtual_cable_unplug ,mem_fifo_temp 
+4d7d 2040789f call ui_ipc_send_event 
+4d7e 6fe0c09a fetch 1 ,mem_device_option 
+4d7f c1840000 rtnne dvc_op_mouse 
+4d80 18427e00 copy temp ,pdata 
+4d81 c002c48a beq hid_control_p_virtualcableunplug ,mouse_irtual_cable_unplug 
+4d82 20600000 rtn 
+
+hid_rx_process_suspend:
+4d83 20600000 rtn 
+
+hid_rx_process_set_report:
+4d84 20404d9b call hid_rx_process_data 
+4d85 da200001 arg 0x01 ,rega 
+4d86 20404d9f call hid_malloc_tx_buff 
+4d87 6fe144dc fetch 2 ,mem_hid_ctrl_remote_cid 
+4d88 e7e10005 istore 2 ,contw 
+4d89 58000000 setarg 0x00 
+4d8a e7e08005 istore 1 ,contw 
+4d8b 20600000 rtn 
+
+hid_rx_process_handshake:
+4d8c da200001 arg 1 ,rega 
+4d8d 20404d9f call hid_malloc_tx_buff 
+4d8e 6fe144dc fetch 2 ,mem_hid_ctrl_remote_cid 
+4d8f e7e10005 istore 2 ,contw 
+4d90 58000000 setarg 0 
+4d91 e7e08005 istore 1 ,contw 
+4d92 70095001 jam 1 ,mem_ui_data_txbuff_length 
+4d93 6fe0c4e2 fetch 1 ,mem_hid_control_state 
+4d94 79207e06 set1 l2cap_channel_hid_handshake_done ,pdata 
+4d95 67e0c4e2 store 1 ,mem_hid_control_state 
+4d96 70095b12 jam bt_evt_hid_handshake ,mem_fifo_temp 
+4d97 2040789f call ui_ipc_send_event 
+4d98 6fe0c09a fetch 1 ,mem_device_option 
+4d99 c1840000 rtnne dvc_op_mouse 
+4d9a 20204466 branch mouse_bt_hid_handshake_boot_check 
+
+hid_rx_process_data:
+4d9b efe08006 ifetch 1 ,contr 
+4d9c c000cd9e beq hid_report_id_kb ,hid_rx_process_data_hid_kb 
+4d9d 20600000 rtn 
+
+hid_rx_process_data_hid_kb:
+4d9e 20600000 rtn 
+
+hid_malloc_tx_buff:
+4d9f 20405278 call l2cap_malloc 
+4da0 1a220400 copy rega ,temp 
+4da1 60488950 storet 1 ,mem_ui_data_txbuff_length 
+4da2 1fe20a00 copy pdata ,contw 
+4da3 1a227e00 copy rega ,pdata 
+4da4 e7e10005 istore 2 ,contw 
+4da5 20600000 rtn 
+
+l2cap_init:
+4da6 2035cdab branch l2cap_init_wake ,wake 
+
+l2cap_init_work:
+4da7 580045f6 setarg mem_l2cap_xmem_end 
+4da8 d8a044d6 arg mem_l2cap_xmem_start ,contw 
+4da9 98a67200 isub contw ,loopcnt 
+4daa 20407d34 call clear_mem 
+
+l2cap_init_wake:
+4dab 44f5c01d bpatch patch1d_3 ,mem_patch1d 
+4dac 58000424 setarg mem_sdp_mem_end 
+4dad d8a003e4 arg mem_sdp_mem_start ,contw 
+4dae 98a67200 isub contw ,loopcnt 
+4daf 20407d34 call clear_mem 
+4db0 5800037a setarg mem_l2cap_mem_end 
+4db1 d8a0030e arg mem_l2cap_mem_start ,contw 
+4db2 98a67200 isub contw ,loopcnt 
+4db3 20407d34 call clear_mem 
+4db4 20205346 branch l2cap_lpm_load_txbuf 
+
+process_rx_l2cap_pkt:
+4db5 44f6401d bpatch patch1d_4 ,mem_patch1d 
+4db6 18c20400 copy contr ,temp 
+4db7 18420c00 copy temp ,contr 
+4db8 efe10006 ifetch 2 ,contr 
+4db9 67e10317 store 2 ,mem_l2cap_rx_pkt_length 
+4dba efe10006 ifetch 2 ,contr 
+4dbb 67e10319 store 2 ,mem_l2cap_rx_cid 
+4dbc 18c27e00 deposit contr 
+4dbd 67e10315 store 2 ,mem_l2cap_payload_ptr 
+4dbe 6fe0c78a fetch 1 ,memui_reconnect_mode 
+4dbf c0004dc1 beq no_reconnection ,l2cap_rx_multiplexing 
+4dc0 20205128 branch ml2cap_rx_multiplexing 
+
+l2cap_rx_multiplexing:
+4dc1 6fe10317 fetch 2 ,mem_l2cap_rx_pkt_length 
+4dc2 203a4e35 branch l2cap_rx_reset_state ,blank 
+4dc3 44f6c01d bpatch patch1d_5 ,mem_patch1d 
+4dc4 6fe08319 fetch 1 ,mem_l2cap_rx_cid 
+4dc5 c000cdd7 beq l2cap_signal_channel ,l2cap_call_proc_signal 
+
+l2cap_rx_multiplexing0:
+4dc6 c0284e19 beq l2cap_sdp_channel ,l2cap_call_proc_sdp 
+4dc7 c028ce2e beq l2cap_rfcomm_channel ,l2cap_call_proc_rfcomm 
+4dc8 c0294e2c beq l2cap_hid_control_channel ,l2cap_call_proc_hid 
+4dc9 c029ce2c beq l2cap_hid_interrupt_channel ,l2cap_call_proc_hid 
+4dca 20204e35 branch l2cap_rx_reset_state 
+
+l2cap_check_map:
+4dcb 44f7401d bpatch patch1d_6 ,mem_patch1d 
+4dcc 204052dc call l2cap_malloc_get_full_map 
+4dcd 6fe0c4e6 fetch 1 ,mem_used_map 
+4dce c0007e6c beq 0 ,set_pdata_0 
+4dcf c000fe6c beq 1 ,set_pdata_0 
+4dd0 c0017e6c beq 2 ,set_pdata_0 
+4dd1 c001fe6c beq 3 ,set_pdata_0 
+4dd2 c040fe6c beq 0x81 ,set_pdata_0 
+4dd3 c0607e6c beq 0xc0 ,set_pdata_0 
+4dd4 c0407e6c beq 0x80 ,set_pdata_0 
+4dd5 c0207e6c beq 0x40 ,set_pdata_0 
+4dd6 20600000 rtn 
+
+l2cap_call_proc_signal:
+4dd7 20404dcb call l2cap_check_map 
+4dd8 247a0000 nrtn blank 
+
+l2cap_call_proc_signal0:
+4dd9 204052e6 call l2cap_malloc_signal_channel 
+4dda 20404e3a call l2cap_process_signal_pkt 
+4ddb 68490320 fetcht 2 ,mem_l2cap_signal_tx_length 
+4ddc 203a4e34 branch l2cap_call_proc_no_reply ,blank 
+4ddd 204052ef call l2cap_get_signal_tx_buff 
+4dde 6fe10320 fetch 2 ,mem_l2cap_signal_tx_length 
+4ddf e7e10005 istore 2 ,contw 
+4de0 18007e01 force l2cap_signal_channel ,pdata 
+4de1 e7e10005 istore 2 ,contw 
+4de2 20204e35 branch l2cap_rx_reset_state 
+
+l2cap_call_proc_sigal_pending:
+4de3 6fe0c5f4 fetch 1 ,mem_l2cap_pending_item 
+4de4 207a0000 rtn blank 
+4de5 1fe22200 copy pdata ,rega 
+4de6 44f7c01d bpatch patch1d_7 ,mem_patch1d 
+4de7 6fe20386 fetch 4 ,mem_l2cap_sdpres_delay_time 
+4de8 d8400100 arg 0x100 ,temp 
+4de9 98408400 iadd temp ,temp 
+4dea 1c427e00 copy clkn_bt ,pdata 
+4deb 98467c00 isub temp ,null 
+4dec 24610000 nrtn positive 
+4ded 7045f400 jam 0 ,mem_l2cap_pending_item 
+4dee 1a227e00 copy rega ,pdata 
+4def c0284df1 beq l2cap_sdp_channel ,l2cap_sdp_conn_succ 
+4df0 2020131f branch assert 
+
+l2cap_sdp_conn_succ:
+4df1 d9000000 arg 0 ,debug 
+4df2 204052e6 call l2cap_malloc_signal_channel 
+4df3 20404eb3 call restore_l2cap_req_param 
+4df4 204052f1 call l2cap_get_signal_tx_payload 
+4df5 20407d02 call save_cont_pointers 
+4df6 20404ee6 call send_connection_sdp_res 
+4df7 204052ef call l2cap_get_signal_tx_buff 
+4df8 5800000c setarg 0x000c 
+4df9 e7e10005 istore 2 ,contw 
+4dfa 18007e01 force l2cap_signal_channel ,pdata 
+4dfb e7e10005 istore 2 ,contw 
+4dfc 20204e35 branch l2cap_rx_reset_state 
+
+l2cap_reset_sdp_map:
+4dfd 44f8401e bpatch patch1e_0 ,mem_patch1e 
+4dfe 6fe10326 fetch 2 ,mem_sdp_tx_pkt_length 
+4dff 1fe0fe04 increase 4 ,pdata 
+4e00 20407ec2 call rshift7 
+4e01 1fe08401 add pdata ,1 ,temp 
+4e02 d8c044f0 arg mem_tx_fifo3 ,contr 
+4e03 efe18006 ifetch 3 ,contr 
+4e04 207a0000 rtn blank 
+4e05 67e1898e store 3 ,mem_tx_fifo_map_temp 
+4e06 6fe0898e fetch 1 ,mem_tx_fifo_map_temp 
+4e07 1fe22200 copy pdata ,rega 
+4e08 20404e0c call check_l2cap_map 
+4e09 1a427e00 copy regb ,pdata 
+4e0a 67e0c4f0 store 1 ,mem_tx_fifo3 
+4e0b 20600000 rtn 
+
+check_l2cap_map:
+4e0c d8e00000 arg 0 ,queue 
+4e0d da400000 arg 0 ,regb 
+
+check_l2cap_map_loop:
+4e0e 18e67c07 sub queue ,7 ,null 
+4e0f 24610000 nrtn positive 
+4e10 aa2fffff qisolate1 rega 
+4e11 2020ce13 branch check_l2cap_map_used ,true 
+4e12 20204e17 branch check_l2cap_map_used2 
+
+check_l2cap_map_used:
+4e13 18427e00 copy temp ,pdata 
+4e14 203a4e17 branch check_l2cap_map_used2 ,blank 
+4e15 f9202400 qset1 regb 
+4e16 184085ff increase -1 ,temp 
+
+check_l2cap_map_used2:
+4e17 18e08e01 increase 1 ,queue 
+4e18 20204e0e branch check_l2cap_map_loop 
+
+l2cap_call_proc_sdp:
+4e19 204052d2 call l2cap_malloc_is_fifo_empty 
+4e1a 247a0000 nrtn blank 
+4e1b 20404dcb call l2cap_check_map 
+4e1c 247a0000 nrtn blank 
+4e1d 204052f3 call l2cap_malloc_sdp_channel 
+4e1e 204066f2 call sdp_process 
+4e1f 20404dfd call l2cap_reset_sdp_map 
+4e20 20204e25 branch l2cap_call_proc_sdp_common 
+
+ml2cap_call_proc_sdp:
+4e21 204052d2 call l2cap_malloc_is_fifo_empty 
+4e22 247a0000 nrtn blank 
+4e23 204052f3 call l2cap_malloc_sdp_channel 
+4e24 204066f2 call sdp_process 
+
+l2cap_call_proc_sdp_common:
+4e25 204052fc call l2cap_get_sdp_tx_buff 
+4e26 6fe10326 fetch 2 ,mem_sdp_tx_pkt_length 
+4e27 203a4e34 branch l2cap_call_proc_no_reply ,blank 
+4e28 e7e10005 istore 2 ,contw 
+4e29 6fe144d8 fetch 2 ,mem_sdp_remote_cid 
+4e2a e7e10005 istore 2 ,contw 
+4e2b 20204e35 branch l2cap_rx_reset_state 
+
+l2cap_call_proc_hid:
+4e2c 20404d6b call hid_rx_process 
+4e2d 20204e35 branch l2cap_rx_reset_state 
+
+l2cap_call_proc_rfcomm:
+4e2e 44f8c01e bpatch patch1e_1 ,mem_patch1e 
+4e2f 70033500 jam rfcomm_malloc_succeed ,mem_rfcomm_malloc_fail_flag 
+4e30 2040636c call rfcomm_rx_process 
+4e31 6fe08335 fetch 1 ,mem_rfcomm_malloc_fail_flag 
+4e32 c1008000 rtneq rfcomm_malloc_fail 
+4e33 20204e35 branch l2cap_rx_reset_state 
+
+l2cap_call_proc_no_reply:
+4e34 204052c2 call l2cap_malloc_discard 
+
+l2cap_rx_reset_state:
+4e35 58000000 setarg 0 
+4e36 67e10317 store 2 ,mem_l2cap_rx_pkt_length 
+4e37 67e10319 store 2 ,mem_l2cap_rx_cid 
+4e38 70031b01 jam l2cap_rx_done ,mem_l2cap_rx_done 
+4e39 20600000 rtn 
+
+l2cap_process_signal_pkt:
+4e3a 44f9401e bpatch patch1e_2 ,mem_patch1e 
+4e3b 204052f1 call l2cap_get_signal_tx_payload 
+4e3c 18002400 force 0 ,regb 
+4e3d 6fe10317 fetch 2 ,mem_l2cap_rx_pkt_length 
+4e3e 1fe22600 copy pdata ,regc 
+4e3f 6fe10315 fetch 2 ,mem_l2cap_payload_ptr 
+4e40 98000c00 iforce contr 
+
+l2cap_process_signal_pkt_loop:
+4e41 20404e49 call l2cap_process_one_signal 
+4e42 1a627e00 deposit regc 
+4e43 1a60a7fc increase -4 ,regc 
+4e44 1fe0fffc increase -4 ,pdata 
+4e45 243a4e41 nbranch l2cap_process_signal_pkt_loop ,blank 
+4e46 1a427e00 copy regb ,pdata 
+4e47 67e10320 store 2 ,mem_l2cap_signal_tx_length 
+4e48 20600000 rtn 
+
+l2cap_process_one_signal:
+4e49 44f9c01e bpatch patch1e_3 ,mem_patch1e 
+4e4a efe08006 ifetch 1 ,contr 
+4e4b c000ce82 beq signal_cmd_reject ,l2cap_proc_signal_cmd_reject 
+4e4c c0014e8a beq signal_connect_req ,l2cap_proc_signal_connect_req 
+4e4d c001cf0e beq signal_connect_rsp ,l2cap_proc_signal_connect_rsp 
+4e4e c0024f3e beq signal_config_req ,l2cap_proc_signal_config_req 
+4e4f c002cfdb beq signal_config_rsp ,l2cap_proc_signal_config_rsp 
+4e50 c0035004 beq signal_disconnect_req ,l2cap_proc_signal_disconnect_req 
+4e51 c003d054 beq signal_disconnect_rsp ,l2cap_proc_signal_disconnect_rsp 
+4e52 c0045089 beq signal_echo_req ,l2cap_proc_signal_echo_req 
+4e53 c004d099 beq signal_echo_rsp ,l2cap_proc_signal_echo_rsp 
+4e54 c0054e58 beq signal_info_req ,l2cap_proc_signal_info_req 
+4e55 c005d09a beq signal_info_rsp ,l2cap_proc_signal_info_rsp 
+4e56 2040509b call l2cap_reject_command 
+
+l2cap_process_one_signal_rtn:
+4e57 20600000 rtn 
+
+l2cap_proc_signal_info_req:
+4e58 efe08006 ifetch 1 ,contr 
+4e59 1fe20e00 copy pdata ,queue 
+4e5a efe10006 ifetch 2 ,contr 
+4e5b 1fe22200 copy pdata ,rega 
+4e5c 1a627e00 copy regc ,pdata 
+4e5d 9a262600 isub rega ,regc 
+4e5e 5800000b setarg signal_info_rsp 
+4e5f e7e08005 istore 1 ,contw 
+4e60 18e27e00 copy queue ,pdata 
+4e61 e7e08005 istore 1 ,contw 
+4e62 efe10006 ifetch 2 ,contr 
+
+l2cap_proc_signal_info_req_reply:
+4e63 c0014e66 beq l2cap_sig_ext_featrue ,l2cap_proc_signal_info_req_ext 
+4e64 c001ce6c beq l2cap_sig_fix_featrue ,l2cap_proc_signal_info_req_fix 
+4e65 20600000 rtn 
+
+l2cap_proc_signal_info_req_ext:
+4e66 58020008 setarg 0x020008 
+4e67 e7e30005 istore 6 ,contw 
+4e68 58000280 setarg 0x0280 
+4e69 e7e20005 istore 4 ,contw 
+4e6a 18007e0c force 12 ,pdata 
+4e6b 20204e71 branch l2cap_proc_signal_info_req_common 
+
+l2cap_proc_signal_info_req_fix:
+4e6c 5803000c setarg 0x3000c 
+4e6d e7e30005 istore 6 ,contw 
+4e6e 58000006 setarg 0x0006 
+4e6f e7e40005 istore 8 ,contw 
+4e70 18007e10 force 16 ,pdata 
+
+l2cap_proc_signal_info_req_common:
+4e71 9a40a400 iadd regb ,regb 
+4e72 20204e57 branch l2cap_process_one_signal_rtn 
+
+ml2cap_proc_signal_info_req:
+4e73 efe08006 ifetch 1 ,contr 
+4e74 1fe20e00 copy pdata ,queue 
+4e75 efe10006 ifetch 2 ,contr 
+4e76 1fe22200 copy pdata ,rega 
+4e77 efe10006 ifetch 2 ,contr 
+4e78 67e10964 store 2 ,mem_temp 
+4e79 1a627e00 copy regc ,pdata 
+4e7a 9a262600 isub rega ,regc 
+4e7b 204052f1 call l2cap_get_signal_tx_payload 
+4e7c 5800000b setarg signal_info_rsp 
+4e7d e7e08005 istore 1 ,contw 
+4e7e 18e27e00 copy queue ,pdata 
+4e7f e7e08005 istore 1 ,contw 
+4e80 6fe10964 fetch 2 ,mem_temp 
+4e81 20204e63 branch l2cap_proc_signal_info_req_reply 
+
+l2cap_proc_signal_cmd_reject:
+4e82 efe08006 ifetch 1 ,contr 
+4e83 1fe20e00 copy pdata ,queue 
+4e84 efe10006 ifetch 2 ,contr 
+4e85 1fe22200 copy pdata ,rega 
+4e86 98c08c00 iadd contr ,contr 
+4e87 1a627e00 copy regc ,pdata 
+4e88 9a262600 isub rega ,regc 
+
+l2cap_proc_signal_cmd_reject_rtn:
+4e89 20204e57 branch l2cap_process_one_signal_rtn 
+
+l2cap_proc_signal_connect_req:
+4e8a 20407d02 call save_cont_pointers 
+4e8b 20407d07 call load_cont_pointers 
+4e8c d9000000 arg 0 ,debug 
+4e8d efe08006 ifetch 1 ,contr 
+4e8e 1fe20e00 copy pdata ,queue 
+4e8f efe10006 ifetch 2 ,contr 
+4e90 1fe22200 copy pdata ,rega 
+4e91 efe10006 ifetch 2 ,contr 
+4e92 1fe20400 copy pdata ,temp 
+4e93 efe10006 ifetch 2 ,contr 
+4e94 1fe21600 copy pdata ,timeup 
+4e95 44fa401e bpatch patch1e_4 ,mem_patch1e 
+4e96 18427e00 copy temp ,pdata 
+4e97 c000ce9d beq psm_sdp ,l2cap_proc_signal_connect_req_sdp 
+4e98 c001cebf beq psm_rfcomm ,l2cap_proc_signal_connect_req_rfcomm 
+4e99 c008cecb beq psm_hid_control ,l2cap_proc_signal_connect_req_hid_ctrl 
+4e9a c009ced6 beq psm_hid_interrupt ,l2cap_proc_signal_connect_req_hid_int 
+4e9b 2040509b call l2cap_reject_command 
+4e9c 20204f0d branch l2cap_proc_signal_connect_req_rtn 
+
+l2cap_proc_signal_connect_req_sdp:
+4e9d 20407d02 call save_cont_pointers 
+4e9e d8400050 arg l2cap_sdp_channel ,temp 
+4e9f 6fe144d8 fetch 2 ,mem_sdp_remote_cid 
+4ea0 243a4f07 nbranch already_connected ,blank 
+4ea1 19627e00 copy timeup ,pdata 
+4ea2 67e144d8 store 2 ,mem_sdp_remote_cid 
+4ea3 1c427e00 copy clkn_bt ,pdata 
+4ea4 67e20386 store 4 ,mem_l2cap_sdpres_delay_time 
+4ea5 20404ea7 call store_l2cap_req_param 
+4ea6 20204ee2 branch send_connection_pending 
+
+store_l2cap_req_param:
+4ea7 60490384 storet 2 ,mem_psm 
+4ea8 19627e00 deposit timeup 
+4ea9 67e1037a store 2 ,mem_scid 
+4eaa 1a227e00 deposit rega 
+4eab 67e1037c store 2 ,mem_cmd_length 
+4eac 1a427e00 deposit regb 
+4ead 67e1037e store 2 ,mem_tt2 
+4eae 1a627e00 deposit regc 
+4eaf 67e10380 store 2 ,mem_tt3 
+4eb0 18e27e00 deposit queue 
+4eb1 67e10382 store 2 ,mem_id 
+4eb2 20600000 rtn 
+
+restore_l2cap_req_param:
+4eb3 68490384 fetcht 2 ,mem_psm 
+4eb4 6fe1037a fetch 2 ,mem_scid 
+4eb5 1fe21600 copy pdata ,timeup 
+4eb6 6fe1037c fetch 2 ,mem_cmd_length 
+4eb7 1fe22200 copy pdata ,rega 
+4eb8 6fe1037e fetch 2 ,mem_tt2 
+4eb9 1fe22400 copy pdata ,regb 
+4eba 6fe10380 fetch 2 ,mem_tt3 
+4ebb 1fe22600 copy pdata ,regc 
+4ebc 6fe10382 fetch 2 ,mem_id 
+4ebd 1fe20e00 copy pdata ,queue 
+4ebe 20600000 rtn 
+
+l2cap_proc_signal_connect_req_rfcomm:
+4ebf 20407d02 call save_cont_pointers 
+4ec0 58000051 setarg l2cap_rfcomm_channel 
+4ec1 d8400051 arg l2cap_rfcomm_channel ,temp 
+4ec2 6fe144da fetch 2 ,mem_rfcomm_remote_cid 
+4ec3 243a4f07 nbranch already_connected ,blank 
+4ec4 19627e00 copy timeup ,pdata 
+4ec5 67e144da store 2 ,mem_rfcomm_remote_cid 
+4ec6 6fe0c4e1 fetch 1 ,mem_rfcomm_state 
+4ec7 79207e00 set1 l2cap_channel_state_conn_req ,pdata 
+4ec8 79207e01 set1 l2cap_channel_state_conn_res ,pdata 
+4ec9 67e0c4e1 store 1 ,mem_rfcomm_state 
+4eca 20204eea branch send_connection_res 
+
+l2cap_proc_signal_connect_req_hid_ctrl:
+4ecb 20407d02 call save_cont_pointers 
+4ecc d8400052 arg l2cap_hid_control_channel ,temp 
+4ecd 6fe144dc fetch 2 ,mem_hid_ctrl_remote_cid 
+4ece 243a4f07 nbranch already_connected ,blank 
+4ecf 19627e00 copy timeup ,pdata 
+4ed0 67e144dc store 2 ,mem_hid_ctrl_remote_cid 
+4ed1 6fe0c4e2 fetch 1 ,mem_hid_control_state 
+4ed2 79207e00 set1 l2cap_channel_state_conn_req ,pdata 
+4ed3 79207e01 set1 l2cap_channel_state_conn_res ,pdata 
+4ed4 67e0c4e2 store 1 ,mem_hid_control_state 
+4ed5 20204eea branch send_connection_res 
+
+l2cap_proc_signal_connect_req_hid_int:
+4ed6 20407d02 call save_cont_pointers 
+4ed7 1b427e00 deposit clke 
+4ed8 d8400053 arg l2cap_hid_interrupt_channel ,temp 
+4ed9 6fe144de fetch 2 ,mem_hid_int_remote_cid 
+4eda 243a4f07 nbranch already_connected ,blank 
+4edb 19627e00 copy timeup ,pdata 
+4edc 67e144de store 2 ,mem_hid_int_remote_cid 
+4edd 6fe0c4e3 fetch 1 ,mem_hid_interrupt_state 
+4ede 79207e00 set1 l2cap_channel_state_conn_req ,pdata 
+4edf 79207e01 set1 l2cap_channel_state_conn_res ,pdata 
+4ee0 67e0c4e3 store 1 ,mem_hid_interrupt_state 
+4ee1 20204eea branch send_connection_res 
+
+send_connection_pending:
+4ee2 58000001 setarg l2cap_connect_pending 
+4ee3 67e1032e store 2 ,meml2cap_t1 
+4ee4 7045f450 jam l2cap_sdp_channel ,mem_l2cap_pending_item 
+4ee5 20204eec branch send_connection_res0 
+
+send_connection_sdp_res:
+4ee6 6fe0c4e0 fetch 1 ,mem_sdp_state 
+4ee7 79207e00 set1 l2cap_channel_state_conn_req ,pdata 
+4ee8 79207e01 set1 l2cap_channel_state_conn_res ,pdata 
+4ee9 67e0c4e0 store 1 ,mem_sdp_state 
+
+send_connection_res:
+4eea 58000000 setarg l2cap_connect_successful 
+4eeb 67e1032e store 2 ,meml2cap_t1 
+
+send_connection_res0:
+4eec 44fac01e bpatch patch1e_5 ,mem_patch1e 
+4eed 20407d07 call load_cont_pointers 
+4eee 58000003 setarg signal_connect_rsp 
+4eef e7e08005 istore 1 ,contw 
+4ef0 18e27e00 copy queue ,pdata 
+4ef1 e7e08005 istore 1 ,contw 
+4ef2 58000008 setarg 0x0008 
+4ef3 e7e10005 istore 2 ,contw 
+4ef4 18427e00 copy temp ,pdata 
+4ef5 e7e10005 istore 2 ,contw 
+4ef6 19627e00 copy timeup ,pdata 
+4ef7 e7e10005 istore 2 ,contw 
+4ef8 6fe1032e fetch 2 ,meml2cap_t1 
+4ef9 c000cf02 beq l2cap_connect_pending ,connect_pending 
+4efa 290c0000 isolate0 0 ,debug 
+4efb 2020cefd branch connect_suc ,true 
+4efc 58000004 setarg l2cap_connect_refused_no_resources 
+
+connect_suc:
+4efd e7e10005 istore 2 ,contw 
+4efe 18007e00 force 0x0000 ,pdata 
+4eff e7e10005 istore 2 ,contw 
+4f00 5800000c setarg 12 
+4f01 20204f09 branch connect_req_update_byte_counts 
+
+connect_pending:
+4f02 e7e10005 istore 2 ,contw 
+4f03 18007e02 force 0x0002 ,pdata 
+4f04 e7e10005 istore 2 ,contw 
+4f05 5800000c setarg 12 
+4f06 20204f09 branch connect_req_update_byte_counts 
+
+already_connected:
+4f07 79201000 set1 0 ,debug 
+4f08 20204eea branch send_connection_res 
+
+connect_req_update_byte_counts:
+4f09 9a40a400 iadd regb ,regb 
+4f0a 1a627e00 copy regc ,pdata 
+4f0b 9a262600 isub rega ,regc 
+4f0c 20204f0d branch l2cap_proc_signal_connect_req_rtn 
+
+l2cap_proc_signal_connect_req_rtn:
+4f0d 20204e57 branch l2cap_process_one_signal_rtn 
+
+l2cap_proc_signal_connect_rsp:
+4f0e efe08006 ifetch 1 ,contr 
+4f0f 1fe20e00 copy pdata ,queue 
+4f10 efe10006 ifetch 2 ,contr 
+4f11 1fe22200 copy pdata ,rega 
+4f12 1a627e00 copy regc ,pdata 
+4f13 9a262600 isub rega ,regc 
+4f14 efe10006 ifetch 2 ,contr 
+4f15 1fe21600 copy pdata ,timeup 
+4f16 efe10006 ifetch 2 ,contr 
+4f17 1fe20400 copy pdata ,temp 
+4f18 44fb401e bpatch patch1e_6 ,mem_patch1e 
+4f19 58000050 setarg l2cap_sdp_channel 
+4f1a 98467c00 isub temp ,null 
+4f1b 2022cf26 branch l2cap_proc_signal_connect_rsp_sdp ,zero 
+4f1c 58000051 setarg l2cap_rfcomm_channel 
+4f1d 98467c00 isub temp ,null 
+4f1e 2022cf2c branch l2cap_proc_signal_connect_rsp_rfcomm ,zero 
+4f1f 58000052 setarg l2cap_hid_control_channel 
+4f20 98467c00 isub temp ,null 
+4f21 2022cf38 branch l2cap_proc_signal_connect_rsp_hid_ctrl ,zero 
+4f22 58000053 setarg l2cap_hid_interrupt_channel 
+4f23 98467c00 isub temp ,null 
+4f24 2022cf32 branch l2cap_proc_signal_connect_rsp_hid_int ,zero 
+4f25 20600000 rtn 
+
+l2cap_proc_signal_connect_rsp_sdp:
+4f26 19627e00 copy timeup ,pdata 
+4f27 67e144d8 store 2 ,mem_sdp_remote_cid 
+4f28 6fe0c4e0 fetch 1 ,mem_sdp_state 
+4f29 79207e01 set1 l2cap_channel_state_conn_res ,pdata 
+4f2a 67e0c4e0 store 1 ,mem_sdp_state 
+4f2b 20204e57 branch l2cap_process_one_signal_rtn 
+
+l2cap_proc_signal_connect_rsp_rfcomm:
+4f2c 19627e00 copy timeup ,pdata 
+4f2d 67e144da store 2 ,mem_rfcomm_remote_cid 
+4f2e 6fe0c4e1 fetch 1 ,mem_rfcomm_state 
+4f2f 79207e01 set1 l2cap_channel_state_conn_res ,pdata 
+4f30 67e0c4e1 store 1 ,mem_rfcomm_state 
+4f31 20600000 rtn 
+
+l2cap_proc_signal_connect_rsp_hid_int:
+4f32 19627e00 copy timeup ,pdata 
+4f33 67e144dc store 2 ,mem_hid_ctrl_remote_cid 
+4f34 6fe0c4e3 fetch 1 ,mem_hid_interrupt_state 
+4f35 79207e01 set1 l2cap_channel_state_conn_res ,pdata 
+4f36 67e0c4e3 store 1 ,mem_hid_interrupt_state 
+4f37 20600000 rtn 
+
+l2cap_proc_signal_connect_rsp_hid_ctrl:
+4f38 19627e00 copy timeup ,pdata 
+4f39 67e144de store 2 ,mem_hid_int_remote_cid 
+4f3a 6fe0c4e2 fetch 1 ,mem_hid_control_state 
+4f3b 79207e01 set1 l2cap_channel_state_conn_res ,pdata 
+4f3c 67e0c4e2 store 1 ,mem_hid_control_state 
+4f3d 20600000 rtn 
+
+l2cap_proc_signal_config_req:
+4f3e efe08006 ifetch 1 ,contr 
+4f3f 1fe20e00 copy pdata ,queue 
+4f40 efe10006 ifetch 2 ,contr 
+4f41 1fe22200 copy pdata ,rega 
+4f42 1a627e00 copy regc ,pdata 
+4f43 9a262600 isub rega ,regc 
+4f44 efe10006 ifetch 2 ,contr 
+4f45 1fe20400 copy pdata ,temp 
+4f46 18422200 copy temp ,rega 
+4f47 44fbc01e bpatch patch1e_7 ,mem_patch1e 
+4f48 58000050 setarg l2cap_sdp_channel 
+4f49 98467c00 isub temp ,null 
+4f4a 2022cf55 branch l2cap_proc_signal_config_req_sdp ,zero 
+4f4b 58000051 setarg l2cap_rfcomm_channel 
+4f4c 98467c00 isub temp ,null 
+4f4d 2022cf73 branch l2cap_proc_signal_config_req_rfcomm ,zero 
+4f4e 58000052 setarg l2cap_hid_control_channel 
+4f4f 98467c00 isub temp ,null 
+4f50 2022cf5f branch l2cap_proc_signal_config_req_hid_ctrl ,zero 
+4f51 58000053 setarg l2cap_hid_interrupt_channel 
+4f52 98467c00 isub temp ,null 
+4f53 2022cf69 branch l2cap_proc_signal_config_req_hid_int ,zero 
+4f54 2020509b branch l2cap_reject_command 
+
+l2cap_proc_signal_config_req_sdp:
+4f55 18a21600 copy contw ,timeup 
+4f56 6fe0c4e0 fetch 1 ,mem_sdp_state 
+4f57 79207e04 set1 l2cap_channel_state_rcv_cfg_req ,pdata 
+4f58 79207e03 set1 l2cap_channel_state_snd_cfg_res ,pdata 
+4f59 67e0c4e0 store 1 ,mem_sdp_state 
+4f5a 19620a00 copy timeup ,contw 
+4f5b d9600050 arg l2cap_sdp_channel ,timeup 
+4f5c 6fe144d8 fetch 2 ,mem_sdp_remote_cid 
+4f5d 1fe20400 copy pdata ,temp 
+4f5e 20204f7c branch l2cap_send_config_rsp 
+
+l2cap_proc_signal_config_req_hid_ctrl:
+4f5f 18a21600 copy contw ,timeup 
+4f60 6fe0c4e2 fetch 1 ,mem_hid_control_state 
+4f61 79207e04 set1 l2cap_channel_state_rcv_cfg_req ,pdata 
+4f62 79207e03 set1 l2cap_channel_state_snd_cfg_res ,pdata 
+4f63 67e0c4e2 store 1 ,mem_hid_control_state 
+4f64 19620a00 copy timeup ,contw 
+4f65 d9600052 arg l2cap_hid_control_channel ,timeup 
+4f66 6fe144dc fetch 2 ,mem_hid_ctrl_remote_cid 
+4f67 1fe20400 copy pdata ,temp 
+4f68 20204f7c branch l2cap_send_config_rsp 
+
+l2cap_proc_signal_config_req_hid_int:
+4f69 18a21600 copy contw ,timeup 
+4f6a 6fe0c4e3 fetch 1 ,mem_hid_interrupt_state 
+4f6b 79207e04 set1 l2cap_channel_state_rcv_cfg_req ,pdata 
+4f6c 79207e03 set1 l2cap_channel_state_snd_cfg_res ,pdata 
+4f6d 67e0c4e3 store 1 ,mem_hid_interrupt_state 
+4f6e 19620a00 copy timeup ,contw 
+4f6f d9600053 arg l2cap_hid_interrupt_channel ,timeup 
+4f70 6fe144de fetch 2 ,mem_hid_int_remote_cid 
+4f71 1fe20400 copy pdata ,temp 
+4f72 20204f7c branch l2cap_send_config_rsp 
+
+l2cap_proc_signal_config_req_rfcomm:
+4f73 18a21600 copy contw ,timeup 
+4f74 6fe0c4e1 fetch 1 ,mem_rfcomm_state 
+4f75 79207e04 set1 l2cap_channel_state_rcv_cfg_req ,pdata 
+4f76 79207e03 set1 l2cap_channel_state_snd_cfg_res ,pdata 
+4f77 67e0c4e1 store 1 ,mem_rfcomm_state 
+4f78 19620a00 copy timeup ,contw 
+4f79 d9600051 arg l2cap_rfcomm_channel ,timeup 
+4f7a 6fe144da fetch 2 ,mem_rfcomm_remote_cid 
+4f7b 1fe20400 copy pdata ,temp 
+
+l2cap_send_config_rsp:
+4f7c 44fc401f bpatch patch1f_0 ,mem_patch1f 
+4f7d 58000005 setarg signal_config_rsp 
+4f7e e7e08005 istore 1 ,contw 
+4f7f 18e27e00 copy queue ,pdata 
+4f80 e7e08005 istore 1 ,contw 
+4f81 58000006 setarg 0x0006 
+4f82 e7e10005 istore 2 ,contw 
+4f83 18427e00 copy temp ,pdata 
+4f84 e7e10005 istore 2 ,contw 
+4f85 18007e00 force 0x00 ,pdata 
+4f86 e7e10005 istore 2 ,contw 
+4f87 18007e00 force l2cap_config_success ,pdata 
+4f88 e7e10005 istore 2 ,contw 
+4f89 18007e0a force 10 ,pdata 
+4f8a 9a40a400 iadd regb ,regb 
+4f8b 60490333 storet 2 ,mem_config_req_dest_cid 
+4f8c 18e27e00 copy queue ,pdata 
+4f8d 67e08332 store 1 ,mem_config_identifier 
+4f8e 18007e50 force l2cap_sdp_channel ,pdata 
+4f8f a961fe00 icompare 0xff ,timeup 
+4f90 2020cf92 branch l2cap_send_config_rsp_is_sdp ,true 
+4f91 1fe0fe01 increase 1 ,pdata 
+
+l2cap_send_config_rsp_is_sdp:
+4f92 20600000 rtn 
+
+l2cap_check_channel_state:
+4f93 78547c00 disable user 
+4f94 c3810000 rtnbit1 l2cap_channel_state_snd_cfg_req ,pdata 
+4f95 c4000000 rtnbit0 l2cap_channel_state_conn_req ,pdata 
+4f96 c4008000 rtnbit0 l2cap_channel_state_conn_res ,pdata 
+4f97 79207e02 set1 l2cap_channel_state_snd_cfg_req ,pdata 
+4f98 18c20a00 copy contr ,contw 
+4f99 18a08bff increase -1 ,contw 
+4f9a e7e08005 istore 1 ,contw 
+4f9b 78347c00 enable user 
+4f9c 20600000 rtn 
+
+l2cap_send_config_req:
+
+l2cap_send_config_req_sdp:
+4f9d 6fe0c4e0 fetch 1 ,mem_sdp_state 
+4f9e 20404f93 call l2cap_check_channel_state 
+4f9f 24344fa4 nbranch l2cap_send_config_req_rfcomm ,user 
+4fa0 70033150 jam l2cap_sdp_channel ,mem_send_config_req 
+4fa1 6fe144d8 fetch 2 ,mem_sdp_remote_cid 
+4fa2 67e10333 store 2 ,mem_config_req_dest_cid 
+4fa3 20204fb8 branch l2cap_generate_config_req 
+
+l2cap_send_config_req_rfcomm:
+4fa4 6fe0c4e1 fetch 1 ,mem_rfcomm_state 
+4fa5 20404f93 call l2cap_check_channel_state 
+4fa6 24344fab nbranch l2cap_send_config_req_hid_ctrl ,user 
+4fa7 70033151 jam l2cap_rfcomm_channel ,mem_send_config_req 
+4fa8 6fe144da fetch 2 ,mem_rfcomm_remote_cid 
+4fa9 67e10333 store 2 ,mem_config_req_dest_cid 
+4faa 20204fb8 branch l2cap_generate_config_req 
+
+l2cap_send_config_req_hid_ctrl:
+4fab 6fe0c4e2 fetch 1 ,mem_hid_control_state 
+4fac 20404f93 call l2cap_check_channel_state 
+4fad 24344fb2 nbranch l2cap_send_config_req_hid_int ,user 
+4fae 70033152 jam l2cap_hid_control_channel ,mem_send_config_req 
+4faf 6fe144dc fetch 2 ,mem_hid_ctrl_remote_cid 
+4fb0 67e10333 store 2 ,mem_config_req_dest_cid 
+4fb1 20204fb8 branch l2cap_generate_config_req 
+
+l2cap_send_config_req_hid_int:
+4fb2 6fe0c4e3 fetch 1 ,mem_hid_interrupt_state 
+4fb3 20404f93 call l2cap_check_channel_state 
+4fb4 24740000 nrtn user 
+4fb5 70033153 jam l2cap_hid_interrupt_channel ,mem_send_config_req 
+4fb6 6fe144de fetch 2 ,mem_hid_int_remote_cid 
+4fb7 67e10333 store 2 ,mem_config_req_dest_cid 
+
+l2cap_generate_config_req:
+4fb8 44fcc01f bpatch patch1f_1 ,mem_patch1f 
+4fb9 20405272 call l2cap_get_req_id 
+4fba 204052e6 call l2cap_malloc_signal_channel 
+4fbb 18002400 force 0 ,regb 
+4fbc 204052f1 call l2cap_get_signal_tx_payload 
+4fbd 18007e04 force signal_config_req ,pdata 
+4fbe e7e08005 istore 1 ,contw 
+4fbf 6fe0c4e5 fetch 1 ,mem_ml2cap_comm_id 
+4fc0 e7e08005 istore 1 ,contw 
+4fc1 58000008 setarg 0x0008 
+4fc2 e7e10005 istore 2 ,contw 
+4fc3 6fe10333 fetch 2 ,mem_config_req_dest_cid 
+4fc4 e7e10005 istore 2 ,contw 
+4fc5 58000000 setarg 0x0000 
+4fc6 e7e10005 istore 2 ,contw 
+4fc7 18007e01 force 1 ,pdata 
+4fc8 e7e08005 istore 1 ,contw 
+4fc9 18007e02 force 2 ,pdata 
+4fca e7e08005 istore 1 ,contw 
+4fcb 6fe08331 fetch 1 ,mem_send_config_req 
+4fcc c028cfd0 beq l2cap_rfcomm_channel ,l2cap_generate_config_req_rfcomm 
+4fcd 58000030 setarg l2cap_config_mtu_sdp 
+4fce e7e10005 istore 2 ,contw 
+4fcf 20204fd2 branch l2cap_generate_config_req_done 
+
+l2cap_generate_config_req_rfcomm:
+4fd0 580003e3 setarg l2cap_config_mtu_rfcomm 
+4fd1 e7e10005 istore 2 ,contw 
+
+l2cap_generate_config_req_done:
+4fd2 d840000c arg 0x0c ,temp 
+4fd3 60490320 storet 2 ,mem_l2cap_signal_tx_length 
+4fd4 204052ef call l2cap_get_signal_tx_buff 
+4fd5 6fe10320 fetch 2 ,mem_l2cap_signal_tx_length 
+4fd6 e7e10005 istore 2 ,contw 
+4fd7 18007e01 force l2cap_signal_channel ,pdata 
+4fd8 e7e10005 istore 2 ,contw 
+4fd9 70033100 jam 0 ,mem_send_config_req 
+
+l2cap_proc_signal_config_req_rtn:
+4fda 20204e57 branch l2cap_process_one_signal_rtn 
+
+l2cap_proc_signal_config_rsp:
+4fdb 18c08c01 increase 1 ,contr 
+4fdc efe10006 ifetch 2 ,contr 
+4fdd 1fe22200 copy pdata ,rega 
+4fde 1a627e00 copy regc ,pdata 
+4fdf 9a262600 isub rega ,regc 
+4fe0 efe10006 ifetch 2 ,contr 
+4fe1 1fe22200 copy pdata ,rega 
+4fe2 44fd401f bpatch patch1f_2 ,mem_patch1f 
+4fe3 58000050 setarg l2cap_sdp_channel 
+4fe4 9a267c00 isub rega ,null 
+4fe5 2022cff3 branch l2cap_proc_signal_config_rsp_sdp ,zero 
+4fe6 58000051 setarg l2cap_rfcomm_channel 
+4fe7 9a267c00 isub rega ,null 
+4fe8 2022cff7 branch l2cap_proc_signal_config_rsp_rfcomm ,zero 
+4fe9 58000052 setarg l2cap_hid_control_channel 
+4fea 9a267c00 isub rega ,null 
+4feb 2022cffb branch l2cap_proc_signal_config_rsp_hid_ctrl ,zero 
+4fec 58000053 setarg l2cap_hid_interrupt_channel 
+4fed 9a267c00 isub rega ,null 
+4fee 2022cfff branch l2cap_proc_signal_config_rsp_hid_int ,zero 
+4fef 18c08c02 increase 2 ,contr 
+4ff0 efe10006 ifetch 2 ,contr 
+4ff1 98007c00 iforce null 
+4ff2 20204e57 branch l2cap_process_one_signal_rtn 
+
+l2cap_proc_signal_config_rsp_sdp:
+4ff3 6fe0c4e0 fetch 1 ,mem_sdp_state 
+4ff4 79207e05 set1 l2cap_channel_state_rcv_cfg_res ,pdata 
+4ff5 67e0c4e0 store 1 ,mem_sdp_state 
+4ff6 20204e57 branch l2cap_process_one_signal_rtn 
+
+l2cap_proc_signal_config_rsp_rfcomm:
+4ff7 6fe0c4e1 fetch 1 ,mem_rfcomm_state 
+4ff8 79207e05 set1 l2cap_channel_state_rcv_cfg_res ,pdata 
+4ff9 67e0c4e1 store 1 ,mem_rfcomm_state 
+4ffa 20204e57 branch l2cap_process_one_signal_rtn 
+
+l2cap_proc_signal_config_rsp_hid_ctrl:
+4ffb 6fe0c4e2 fetch 1 ,mem_hid_control_state 
+4ffc 79207e05 set1 l2cap_channel_state_rcv_cfg_res ,pdata 
+4ffd 67e0c4e2 store 1 ,mem_hid_control_state 
+4ffe 20204e57 branch l2cap_process_one_signal_rtn 
+
+l2cap_proc_signal_config_rsp_hid_int:
+4fff 6fe0c4e3 fetch 1 ,mem_hid_interrupt_state 
+5000 79207e05 set1 l2cap_channel_state_rcv_cfg_res ,pdata 
+5001 67e0c4e3 store 1 ,mem_hid_interrupt_state 
+5002 70095b06 jam bt_evt_hid_connected ,mem_fifo_temp 
+5003 2020789f branch ui_ipc_send_event 
+
+l2cap_proc_signal_disconnect_req:
+5004 efe08006 ifetch 1 ,contr 
+5005 1fe20e00 copy pdata ,queue 
+5006 efe10006 ifetch 2 ,contr 
+5007 1fe22200 copy pdata ,rega 
+5008 1a627e00 copy regc ,pdata 
+5009 9a262600 isub rega ,regc 
+500a efe10006 ifetch 2 ,contr 
+500b 1fe22200 copy pdata ,rega 
+500c efe10006 ifetch 2 ,contr 
+500d 1fe21600 copy pdata ,timeup 
+500e 1a220400 copy rega ,temp 
+500f 20407d02 call save_cont_pointers 
+5010 44fdc01f bpatch patch1f_3 ,mem_patch1f 
+5011 58000050 setarg l2cap_sdp_channel 
+5012 98467c00 isub temp ,null 
+5013 2022d02b branch l2cap_proc_signal_disconnect_req_sdp ,zero 
+5014 58000051 setarg l2cap_rfcomm_channel 
+5015 98467c00 isub temp ,null 
+5016 2022d03b branch l2cap_proc_signal_disconnect_req_rfcomm ,zero 
+5017 58000052 setarg l2cap_hid_control_channel 
+5018 98467c00 isub temp ,null 
+5019 2022d01f branch l2cap_proc_signal_disconnect_req_hid_ctrl ,zero 
+501a 58000053 setarg l2cap_hid_interrupt_channel 
+501b 98467c00 isub temp ,null 
+501c 2022d025 branch l2cap_proc_signal_disconnect_req_hid_int ,zero 
+501d 2040509b call l2cap_reject_command 
+501e 20205050 branch l2cap_proc_signal_disconnect_req_err_rtn 
+
+l2cap_proc_signal_disconnect_req_hid_ctrl:
+501f 19620400 copy timeup ,temp 
+5020 6fe144dc fetch 2 ,mem_hid_ctrl_remote_cid 
+5021 98467c00 isub temp ,null 
+5022 2022d031 branch l2cap_disconnect_hid_control_now ,zero 
+5023 2040509b call l2cap_reject_command 
+5024 20205050 branch l2cap_proc_signal_disconnect_req_err_rtn 
+
+l2cap_proc_signal_disconnect_req_hid_int:
+5025 19620400 copy timeup ,temp 
+5026 6fe144de fetch 2 ,mem_hid_int_remote_cid 
+5027 98467c00 isub temp ,null 
+5028 2022d033 branch l2cap_disconnect_hid_interrupt_now ,zero 
+5029 2040509b call l2cap_reject_command 
+502a 20205050 branch l2cap_proc_signal_disconnect_req_err_rtn 
+
+l2cap_proc_signal_disconnect_req_sdp:
+502b 19620400 copy timeup ,temp 
+502c 6fe144d8 fetch 2 ,mem_sdp_remote_cid 
+502d 98467c00 isub temp ,null 
+502e 2022d037 branch l2cap_disconnect_sdp_now ,zero 
+502f 2040509b call l2cap_reject_command 
+5030 20205050 branch l2cap_proc_signal_disconnect_req_err_rtn 
+
+l2cap_disconnect_hid_control_now:
+5031 204050b2 call l2cap_reset_hid_ctrl_state 
+5032 20205043 branch l2cap_send_disconnect_rsp_pkt 
+
+l2cap_disconnect_hid_interrupt_now:
+5033 204050b8 call l2cap_reset_hid_int_state 
+5034 6fe144dc fetch 2 ,mem_hid_ctrl_remote_cid 
+5035 203a5043 branch l2cap_send_disconnect_rsp_pkt ,blank 
+5036 20205043 branch l2cap_send_disconnect_rsp_pkt 
+
+l2cap_disconnect_sdp_now:
+5037 204050ad call l2cap_reset_sdp_channel_state 
+5038 6fe08339 fetch 1 ,mem_upper_sm_ss 
+5039 243a5043 nbranch l2cap_send_disconnect_rsp_pkt ,blank 
+503a 20205043 branch l2cap_send_disconnect_rsp_pkt 
+
+l2cap_proc_signal_disconnect_req_rfcomm:
+503b 19620400 copy timeup ,temp 
+503c 6fe144da fetch 2 ,mem_rfcomm_remote_cid 
+503d 98467c00 isub temp ,null 
+503e 2022d041 branch l2cap_disconnect_rfcomm_now ,zero 
+503f 2040509b call l2cap_reject_command 
+5040 20205050 branch l2cap_proc_signal_disconnect_req_err_rtn 
+
+l2cap_disconnect_rfcomm_now:
+5041 204050a8 call l2cap_reset_rfcomm_channel_state 
+5042 20205043 branch l2cap_send_disconnect_rsp_pkt 
+
+l2cap_send_disconnect_rsp_pkt:
+5043 20407d07 call load_cont_pointers 
+5044 58000007 setarg signal_disconnect_rsp 
+5045 e7e08005 istore 1 ,contw 
+5046 18e27e00 copy queue ,pdata 
+5047 e7e08005 istore 1 ,contw 
+5048 58000004 setarg 0x0004 
+5049 e7e10005 istore 2 ,contw 
+504a 1a227e00 copy rega ,pdata 
+504b e7e10005 istore 2 ,contw 
+504c 19627e00 copy timeup ,pdata 
+504d e7e10005 istore 2 ,contw 
+504e 18007e08 force 8 ,pdata 
+504f 20205052 branch l2cap_proc_signal_disconnect_req_rtn 
+
+l2cap_proc_signal_disconnect_req_err_rtn:
+5050 20407d07 call load_cont_pointers 
+5051 20205052 branch l2cap_proc_signal_disconnect_req_rtn 
+
+l2cap_proc_signal_disconnect_req_rtn:
+5052 9a40a400 iadd regb ,regb 
+5053 20204e57 branch l2cap_process_one_signal_rtn 
+
+l2cap_proc_signal_disconnect_rsp:
+5054 efe08006 ifetch 1 ,contr 
+5055 1fe20e00 copy pdata ,queue 
+5056 efe10006 ifetch 2 ,contr 
+5057 1fe22200 copy pdata ,rega 
+5058 1a627e00 copy regc ,pdata 
+5059 9a262600 isub rega ,regc 
+505a efe10006 ifetch 2 ,contr 
+505b 1fe21600 copy pdata ,timeup 
+505c efe10006 ifetch 2 ,contr 
+505d 1fe20400 copy pdata ,temp 
+505e 20407d02 call save_cont_pointers 
+505f 44fe401f bpatch patch1f_4 ,mem_patch1f 
+5060 58000050 setarg l2cap_sdp_channel 
+5061 98467c00 isub temp ,null 
+5062 2022d06e branch l2cap_proc_signal_disconnect_rsp_sdp ,zero 
+5063 58000051 setarg l2cap_rfcomm_channel 
+5064 98467c00 isub temp ,null 
+5065 2022d074 branch l2cap_proc_signal_disconnect_rsp_rfcomm ,zero 
+5066 58000052 setarg l2cap_hid_control_channel 
+5067 98467c00 isub temp ,null 
+5068 2022d07a branch l2cap_proc_signal_disconnect_rsp_hid_ctrl ,zero 
+5069 58000053 setarg l2cap_hid_interrupt_channel 
+506a 98467c00 isub temp ,null 
+506b 2022d080 branch l2cap_proc_signal_disconnect_rsp_hid_int ,zero 
+506c 2040509b call l2cap_reject_command 
+506d 20205088 branch l2cap_proc_signal_disconnect_rsp_err_rtn 
+
+l2cap_proc_signal_disconnect_rsp_sdp:
+506e 18422200 copy temp ,rega 
+506f 19620400 copy timeup ,temp 
+5070 6fe144d8 fetch 2 ,mem_sdp_remote_cid 
+5071 98467c00 isub temp ,null 
+5072 2042d0ad call l2cap_reset_sdp_channel_state ,zero 
+5073 20205086 branch l2cap_proc_signal_disconnect_rsp_rtn 
+
+l2cap_proc_signal_disconnect_rsp_rfcomm:
+5074 18422200 copy temp ,rega 
+5075 19620400 copy timeup ,temp 
+5076 6fe144da fetch 2 ,mem_rfcomm_remote_cid 
+5077 98467c00 isub temp ,null 
+5078 2042d0a8 call l2cap_reset_rfcomm_channel_state ,zero 
+5079 20205086 branch l2cap_proc_signal_disconnect_rsp_rtn 
+
+l2cap_proc_signal_disconnect_rsp_hid_ctrl:
+507a 18422200 copy temp ,rega 
+507b 19620400 copy timeup ,temp 
+507c 6fe144dc fetch 2 ,mem_hid_ctrl_remote_cid 
+507d 98467c00 isub temp ,null 
+507e 2042d0b2 call l2cap_reset_hid_ctrl_state ,zero 
+507f 20205086 branch l2cap_proc_signal_disconnect_rsp_rtn 
+
+l2cap_proc_signal_disconnect_rsp_hid_int:
+5080 18422200 copy temp ,rega 
+5081 19620400 copy timeup ,temp 
+5082 6fe144de fetch 2 ,mem_hid_int_remote_cid 
+5083 98467c00 isub temp ,null 
+5084 2042d0b8 call l2cap_reset_hid_int_state ,zero 
+5085 20205086 branch l2cap_proc_signal_disconnect_rsp_rtn 
+
+l2cap_proc_signal_disconnect_rsp_rtn:
+5086 20407d07 call load_cont_pointers 
+5087 20204e57 branch l2cap_process_one_signal_rtn 
+
+l2cap_proc_signal_disconnect_rsp_err_rtn:
+5088 20204e57 branch l2cap_process_one_signal_rtn 
+
+l2cap_proc_signal_echo_req:
+5089 efe08006 ifetch 1 ,contr 
+508a 1fe20e00 copy pdata ,queue 
+508b efe10006 ifetch 2 ,contr 
+508c 1fe22200 copy pdata ,rega 
+508d 98c08c00 iadd contr ,contr 
+508e 58000009 setarg 9 
+508f e7e08005 istore 1 ,contw 
+5090 18e27e00 copy queue ,pdata 
+5091 e7e08005 istore 1 ,contw 
+5092 18007e00 force 0x0000 ,pdata 
+5093 e7e10005 istore 2 ,contw 
+5094 18007e04 force 4 ,pdata 
+5095 9a40a400 iadd regb ,regb 
+5096 1a627e00 copy regc ,pdata 
+5097 9a262600 isub rega ,regc 
+5098 20204e57 branch l2cap_process_one_signal_rtn 
+
+l2cap_proc_signal_echo_rsp:
+5099 20204e57 branch l2cap_process_one_signal_rtn 
+
+l2cap_proc_signal_info_rsp:
+509a 20204e57 branch l2cap_process_one_signal_rtn 
+
+l2cap_reject_command:
+509b 18002400 force 0 ,regb 
+509c 204052f1 call l2cap_get_signal_tx_payload 
+509d 58000001 setarg signal_cmd_reject 
+509e e7e08005 istore 1 ,contw 
+509f 18e27e00 copy queue ,pdata 
+50a0 e7e08005 istore 1 ,contw 
+50a1 58000002 setarg 2 
+50a2 e7e10005 istore 2 ,contw 
+50a3 58000000 setarg cmd_not_understood 
+50a4 e7e10005 istore 2 ,contw 
+50a5 1a40a406 increase 6 ,regb 
+50a6 da600004 arg 4 ,regc 
+50a7 20204e57 branch l2cap_process_one_signal_rtn 
+
+l2cap_reset_rfcomm_channel_state:
+50a8 58000000 setarg 0 
+50a9 67e1032c store 2 ,mem_rfcomm_tx_pkt_length 
+50aa 67e144da store 2 ,mem_rfcomm_remote_cid 
+50ab 7044e100 jam 0 ,mem_rfcomm_state 
+50ac 20600000 rtn 
+
+l2cap_reset_sdp_channel_state:
+50ad 58000000 setarg 0 
+50ae 67e10326 store 2 ,mem_sdp_tx_pkt_length 
+50af 67e144d8 store 2 ,mem_sdp_remote_cid 
+50b0 7044e000 jam 0 ,mem_sdp_state 
+50b1 20600000 rtn 
+
+l2cap_reset_hid_ctrl_state:
+50b2 58000000 setarg 0 
+50b3 67e144dc store 2 ,mem_hid_ctrl_remote_cid 
+50b4 7044e200 jam 0 ,mem_hid_control_state 
+50b5 6fe0c4e3 fetch 1 ,mem_hid_interrupt_state 
+50b6 c00050be beq 0 ,l2cap_reset_hid_disconnected 
+50b7 20600000 rtn 
+
+l2cap_reset_hid_int_state:
+50b8 58000000 setarg 0 
+50b9 67e144de store 2 ,mem_hid_int_remote_cid 
+50ba 7044e300 jam 0 ,mem_hid_interrupt_state 
+50bb 6fe0c4e2 fetch 1 ,mem_hid_control_state 
+50bc c00050be beq 0 ,l2cap_reset_hid_disconnected 
+50bd 20600000 rtn 
+
+l2cap_reset_hid_disconnected:
+50be 70095b07 jam bt_evt_hid_disconnected ,mem_fifo_temp 
+50bf 2020789f branch ui_ipc_send_event 
+
+l2cap_disconnect_interrupt_req:
+50c0 6fe08330 fetch 1 ,mem_control_tasks 
+50c1 793ffe00 set0 l2cap_disconnect_interrupt ,pdata 
+50c2 67e08330 store 1 ,mem_control_tasks 
+50c3 6fe144de fetch 2 ,mem_hid_int_remote_cid 
+50c4 207a0000 rtn blank 
+50c5 204052e6 call l2cap_malloc_signal_channel 
+50c6 6fe144de fetch 2 ,mem_hid_int_remote_cid 
+50c7 1fe22200 copy pdata ,rega 
+50c8 18002453 force l2cap_hid_interrupt_channel ,regb 
+50c9 202050d3 branch l2cap_generate_disconnect_req 
+
+l2cap_disconnect_control_req:
+50ca 6fe08330 fetch 1 ,mem_control_tasks 
+50cb 793ffe07 set0 l2cap_disconnect_control ,pdata 
+50cc 67e08330 store 1 ,mem_control_tasks 
+50cd 6fe144dc fetch 2 ,mem_hid_ctrl_remote_cid 
+50ce 207a0000 rtn blank 
+50cf 204052e6 call l2cap_malloc_signal_channel 
+50d0 6fe144dc fetch 2 ,mem_hid_ctrl_remote_cid 
+50d1 1fe22200 copy pdata ,rega 
+50d2 18002452 force l2cap_hid_control_channel ,regb 
+
+l2cap_generate_disconnect_req:
+50d3 20405272 call l2cap_get_req_id 
+50d4 204052f1 call l2cap_get_signal_tx_payload 
+50d5 18007e06 force signal_disconnect_req ,pdata 
+50d6 e7e08005 istore 1 ,contw 
+50d7 6fe0c4e5 fetch 1 ,mem_ml2cap_comm_id 
+50d8 e7e08005 istore 1 ,contw 
+50d9 58000004 setarg 0x0004 
+50da e7e10005 istore 2 ,contw 
+50db 1a227e00 copy rega ,pdata 
+50dc e7e10005 istore 2 ,contw 
+50dd 1a427e00 copy regb ,pdata 
+50de e7e10005 istore 2 ,contw 
+50df 18000408 force 0x08 ,temp 
+50e0 20205117 branch ml2cap_send_signal 
+
+ml2cap_send_signal_connect_req:
+50e1 44fec01f bpatch patch1f_5 ,mem_patch1f 
+50e2 20405272 call l2cap_get_req_id 
+50e3 204052f1 call l2cap_get_signal_tx_payload 
+50e4 58000002 setarg signal_connect_req 
+50e5 e7e08005 istore 1 ,contw 
+50e6 6fe0c4e5 fetch 1 ,mem_ml2cap_comm_id 
+50e7 e7e08005 istore 1 ,contw 
+50e8 58000004 setarg 0x0004 
+50e9 e7e10005 istore 2 ,contw 
+50ea 18427e00 copy temp ,pdata 
+50eb e7e10005 istore 2 ,contw 
+50ec 19627e00 copy timeup ,pdata 
+50ed e7e10005 istore 2 ,contw 
+50ee d8400008 arg 8 ,temp 
+50ef 20205117 branch ml2cap_send_signal 
+
+ml2cap_send_signal_config_req:
+50f0 44ff401f bpatch patch1f_6 ,mem_patch1f 
+50f1 20405272 call l2cap_get_req_id 
+50f2 204052f1 call l2cap_get_signal_tx_payload 
+50f3 58000004 setarg signal_config_req 
+50f4 e7e08005 istore 1 ,contw 
+50f5 6fe0c4e5 fetch 1 ,mem_ml2cap_comm_id 
+50f6 e7e08005 istore 1 ,contw 
+50f7 58000008 setarg 0x0008 
+50f8 e7e10005 istore 2 ,contw 
+50f9 18427e00 copy temp ,pdata 
+50fa e7e10005 istore 2 ,contw 
+50fb 58000000 setarg 0x0000 
+50fc e7e10005 istore 2 ,contw 
+50fd 58000001 setarg 0x01 
+50fe e7e08005 istore 1 ,contw 
+50ff 58000002 setarg 0x02 
+5100 e7e08005 istore 1 ,contw 
+5101 580003e3 setarg l2cap_config_mtu_rfcomm 
+5102 e7e10005 istore 2 ,contw 
+5103 d840000c arg 0xc ,temp 
+5104 20205117 branch ml2cap_send_signal 
+
+ml2cap_send_signal_disconn_req:
+5105 44ffc01f bpatch patch1f_7 ,mem_patch1f 
+5106 20405272 call l2cap_get_req_id 
+5107 204052f1 call l2cap_get_signal_tx_payload 
+5108 58000006 setarg signal_disconnect_req 
+5109 e7e08005 istore 1 ,contw 
+510a 6fe0c4e5 fetch 1 ,mem_ml2cap_comm_id 
+510b 1fe0fe01 increase 1 ,pdata 
+510c 18a22200 copy contw ,rega 
+510d 67e0c4e5 store 1 ,mem_ml2cap_comm_id 
+510e 1a220a00 copy rega ,contw 
+510f e7e08005 istore 1 ,contw 
+5110 58000004 setarg 0x0004 
+5111 e7e10005 istore 2 ,contw 
+5112 18427e00 copy temp ,pdata 
+5113 e7e10005 istore 2 ,contw 
+5114 19627e00 copy timeup ,pdata 
+5115 e7e10005 istore 2 ,contw 
+5116 d8400008 arg 0x8 ,temp 
+
+ml2cap_send_signal:
+5117 60490320 storet 2 ,mem_l2cap_signal_tx_length 
+5118 18427e00 copy temp ,pdata 
+5119 203a52c2 branch l2cap_malloc_discard ,blank 
+511a 204052ef call l2cap_get_signal_tx_buff 
+511b 6fe10320 fetch 2 ,mem_l2cap_signal_tx_length 
+511c e7e10005 istore 2 ,contw 
+511d 18007e01 force l2cap_signal_channel ,pdata 
+511e e7e10005 istore 2 ,contw 
+511f 20600000 rtn 
+
+msdp_send_req_done:
+5120 6fe10326 fetch 2 ,mem_sdp_tx_pkt_length 
+5121 203a131f branch assert ,blank 
+5122 204052fc call l2cap_get_sdp_tx_buff 
+5123 6fe10326 fetch 2 ,mem_sdp_tx_pkt_length 
+5124 e7e10005 istore 2 ,contw 
+5125 6fe144d8 fetch 2 ,mem_sdp_remote_cid 
+5126 e7e10005 istore 2 ,contw 
+5127 20600000 rtn 
+
+ml2cap_rx_multiplexing:
+5128 6fe10317 fetch 2 ,mem_l2cap_rx_pkt_length 
+5129 203a4e35 branch l2cap_rx_reset_state ,blank 
+512a 47004020 bpatchx patch20_0 ,mem_patch20 
+512b 6fe08319 fetch 1 ,mem_l2cap_rx_cid 
+512c c000d132 beq l2cap_signal_channel ,ml2cap_call_proc_signal 
+512d c0284e21 beq l2cap_sdp_channel ,ml2cap_call_proc_sdp 
+512e c028ce2e beq l2cap_rfcomm_channel ,l2cap_call_proc_rfcomm 
+512f c0294e2c beq l2cap_hid_control_channel ,l2cap_call_proc_hid 
+5130 c029ce2c beq l2cap_hid_interrupt_channel ,l2cap_call_proc_hid 
+5131 20204e35 branch l2cap_rx_reset_state 
+
+ml2cap_call_proc_signal:
+5132 204052e6 call l2cap_malloc_signal_channel 
+5133 18002400 force 0 ,regb 
+5134 204052f1 call l2cap_get_signal_tx_payload 
+5135 1fe20a00 copy pdata ,contw 
+5136 6fe10317 fetch 2 ,mem_l2cap_rx_pkt_length 
+5137 1fe22600 copy pdata ,regc 
+5138 6fe10315 fetch 2 ,mem_l2cap_payload_ptr 
+5139 98000c00 iforce contr 
+
+ml2cap_proc_one_comm_loop:
+513a 20405140 call ml2cap_proc_one_comm 
+513b 1a60a7fc increase -4 ,regc 
+513c 2422d13a nbranch ml2cap_proc_one_comm_loop ,zero 
+513d 1a420400 copy regb ,temp 
+513e 20405117 call ml2cap_send_signal 
+513f 20204e35 branch l2cap_rx_reset_state 
+
+ml2cap_proc_one_comm:
+5140 efe08006 ifetch 1 ,contr 
+5141 c001514b beq signal_connect_req ,ml2cap_proc_signal_connect_req 
+5142 c000d14e beq signal_cmd_reject ,ml2cap_proc_signal_cmd_reject 
+5143 c001d158 beq signal_connect_rsp ,ml2cap_proc_signal_connect_rsp 
+5144 c002d194 beq signal_config_rsp ,ml2cap_proc_signal_config_rsp 
+5145 c00251c6 beq signal_config_req ,ml2cap_proc_signal_config_req 
+5146 c003d24b beq signal_disconnect_rsp ,ml2cap_proc_signal_disconn_rsp 
+5147 c0035219 beq signal_disconnect_req ,ml2cap_proc_signal_disconn_req 
+5148 c0045089 beq signal_echo_req ,l2cap_proc_signal_echo_req 
+5149 c0054e73 beq signal_info_req ,ml2cap_proc_signal_info_req 
+514a 20205266 branch ml2cap_proc_send_reject 
+
+ml2cap_proc_signal_connect_req:
+514b 20407d02 call save_cont_pointers 
+514c 20407d07 call load_cont_pointers 
+514d 20204e8a branch l2cap_proc_signal_connect_req 
+
+ml2cap_proc_signal_cmd_reject:
+514e efe08006 ifetch 1 ,contr 
+514f 1fe20e00 copy pdata ,queue 
+5150 efe10006 ifetch 2 ,contr 
+5151 1fe22200 copy pdata ,rega 
+5152 1a627e00 copy regc ,pdata 
+5153 9a262600 isub rega ,regc 
+
+mvptr:
+5154 efe08006 ifetch 1 ,contr 
+5155 1a20a3ff increase -1 ,rega 
+5156 2422d154 nbranch mvptr ,zero 
+5157 20600000 rtn 
+
+ml2cap_proc_signal_connect_rsp:
+5158 efe08006 ifetch 1 ,contr 
+5159 1fe20e00 copy pdata ,queue 
+515a efe10006 ifetch 2 ,contr 
+515b 1fe22200 copy pdata ,rega 
+515c efe10006 ifetch 2 ,contr 
+515d 1fe21600 copy pdata ,timeup 
+515e efe10006 ifetch 2 ,contr 
+515f 1fe20400 copy pdata ,temp 
+5160 efe10006 ifetch 2 ,contr 
+5161 1fe67c00 sub pdata ,0 ,null 
+5162 2022d16a branch ml2cap_proc_signal_connect_rsp_sucessful ,zero 
+5163 c0015166 beq l2cap_connect_refused_psm_unsupported ,ml2cap_proc_signal_connect_refused_result 
+5164 c0025166 beq l2cap_connect_refused_no_resources ,ml2cap_proc_signal_connect_refused_result 
+5165 20205168 branch ml2cap_proc_signal_connect_rsp_mnosucc 
+
+ml2cap_proc_signal_connect_refused_result:
+5166 70095b16 jam bt_evt_ml2cap_conn_refused ,mem_fifo_temp 
+5167 2040789f call ui_ipc_send_event 
+
+ml2cap_proc_signal_connect_rsp_mnosucc:
+5168 efe10006 ifetch 2 ,contr 
+5169 20205191 branch mnosucc 
+
+ml2cap_proc_signal_connect_rsp_sucessful:
+516a 20407d02 call save_cont_pointers 
+516b 4700c020 bpatchx patch20_1 ,mem_patch20 
+516c 58000050 setarg l2cap_sdp_channel 
+516d 98467c00 isub temp ,null 
+516e 2022d179 branch ml2cap_proc_signal_connect_rsp_sdp ,zero 
+516f 58000051 setarg l2cap_rfcomm_channel 
+5170 98467c00 isub temp ,null 
+5171 2022d17f branch ml2cap_proc_signal_connect_rsp_rfcomm ,zero 
+5172 58000053 setarg l2cap_hid_interrupt_channel 
+5173 98467c00 isub temp ,null 
+5174 2022d18b branch ml2cap_proc_signal_connect_rsp_hid_int ,zero 
+5175 58000052 setarg l2cap_hid_control_channel 
+5176 98467c00 isub temp ,null 
+5177 2022d185 branch ml2cap_proc_signal_connect_rsp_hid_ctrl ,zero 
+5178 20205191 branch mnosucc 
+
+ml2cap_proc_signal_connect_rsp_sdp:
+5179 19627e00 copy timeup ,pdata 
+517a 67e144d8 store 2 ,mem_sdp_remote_cid 
+517b 6fe0c4e0 fetch 1 ,mem_sdp_state 
+517c 79207e01 set1 l2cap_channel_state_conn_res ,pdata 
+517d 67e0c4e0 store 1 ,mem_sdp_state 
+517e 20205190 branch mnosucc1 
+
+ml2cap_proc_signal_connect_rsp_rfcomm:
+517f 19627e00 copy timeup ,pdata 
+5180 67e144da store 2 ,mem_rfcomm_remote_cid 
+5181 6fe0c4e1 fetch 1 ,mem_rfcomm_state 
+5182 79207e01 set1 l2cap_channel_state_conn_res ,pdata 
+5183 67e0c4e1 store 1 ,mem_rfcomm_state 
+5184 20205190 branch mnosucc1 
+
+ml2cap_proc_signal_connect_rsp_hid_ctrl:
+5185 19627e00 copy timeup ,pdata 
+5186 67e144dc store 2 ,mem_hid_ctrl_remote_cid 
+5187 6fe0c4e2 fetch 1 ,mem_hid_control_state 
+5188 79207e01 set1 l2cap_channel_state_conn_res ,pdata 
+5189 67e0c4e2 store 1 ,mem_hid_control_state 
+518a 20205190 branch mnosucc1 
+
+ml2cap_proc_signal_connect_rsp_hid_int:
+518b 19627e00 copy timeup ,pdata 
+518c 67e144de store 2 ,mem_hid_int_remote_cid 
+518d 6fe0c4e3 fetch 1 ,mem_hid_interrupt_state 
+518e 79207e01 set1 l2cap_channel_state_conn_res ,pdata 
+518f 67e0c4e3 store 1 ,mem_hid_interrupt_state 
+
+mnosucc1:
+5190 20407d07 call load_cont_pointers 
+
+mnosucc:
+5191 1a627e00 copy regc ,pdata 
+5192 9a262600 isub rega ,regc 
+5193 20600000 rtn 
+
+ml2cap_proc_signal_config_rsp:
+5194 efe08006 ifetch 1 ,contr 
+5195 1fe20e00 copy pdata ,queue 
+5196 efe10006 ifetch 2 ,contr 
+5197 1fe22200 copy pdata ,rega 
+5198 1a627e00 copy regc ,pdata 
+5199 9a262600 isub rega ,regc 
+519a efe10006 ifetch 2 ,contr 
+519b 1fe21600 copy pdata ,timeup 
+519c efe10006 ifetch 2 ,contr 
+519d efe10006 ifetch 2 ,contr 
+519e 243a51c0 nbranch mcrsdone1 ,blank 
+519f 20407d02 call save_cont_pointers 
+51a0 19620400 copy timeup ,temp 
+51a1 47014020 bpatchx patch20_2 ,mem_patch20 
+51a2 58000050 setarg l2cap_sdp_channel 
+51a3 98467c00 isub temp ,null 
+51a4 2022d1ae branch ml2cap_proc_signal_config_rsp_sdp ,zero 
+51a5 58000051 setarg l2cap_rfcomm_channel 
+51a6 98467c00 isub temp ,null 
+51a7 2022d1b2 branch ml2cap_proc_signal_config_rsp_rfcomm ,zero 
+51a8 58000052 setarg l2cap_hid_control_channel 
+51a9 98467c00 isub temp ,null 
+51aa 2022d1b6 branch ml2cap_proc_signal_config_rsp_hid_ctrl ,zero 
+51ab 58000053 setarg l2cap_hid_interrupt_channel 
+51ac 98467c00 isub temp ,null 
+51ad 2022d1ba branch ml2cap_proc_signal_config_rsp_hid_int ,zero 
+
+ml2cap_proc_signal_config_rsp_sdp:
+51ae 6fe0c4e0 fetch 1 ,mem_sdp_state 
+51af 79207e05 set1 l2cap_channel_state_rcv_cfg_res ,pdata 
+51b0 67e0c4e0 store 1 ,mem_sdp_state 
+51b1 20600000 rtn 
+
+ml2cap_proc_signal_config_rsp_rfcomm:
+51b2 6fe0c4e1 fetch 1 ,mem_rfcomm_state 
+51b3 79207e05 set1 l2cap_channel_state_rcv_cfg_res ,pdata 
+51b4 67e0c4e1 store 1 ,mem_rfcomm_state 
+51b5 20600000 rtn 
+
+ml2cap_proc_signal_config_rsp_hid_ctrl:
+51b6 6fe0c4e2 fetch 1 ,mem_hid_control_state 
+51b7 79207e05 set1 l2cap_channel_state_rcv_cfg_res ,pdata 
+51b8 67e0c4e2 store 1 ,mem_hid_control_state 
+51b9 20600000 rtn 
+
+ml2cap_proc_signal_config_rsp_hid_int:
+51ba 6fe0c4e3 fetch 1 ,mem_hid_interrupt_state 
+51bb 79207e05 set1 l2cap_channel_state_rcv_cfg_res ,pdata 
+51bc 67e0c4e3 store 1 ,mem_hid_interrupt_state 
+51bd 70095b06 jam bt_evt_hid_connected ,mem_fifo_temp 
+51be 2020789f branch ui_ipc_send_event 
+
+mcfrsdone:
+51bf 20407d07 call load_cont_pointers 
+
+mcrsdone1:
+51c0 1a20a3fa increase -6 ,rega 
+
+mloop2:
+51c1 2022d1c5 branch mcrsdone ,zero 
+51c2 18c08c01 increase 1 ,contr 
+51c3 1a20a3ff increase -1 ,rega 
+51c4 202051c1 branch mloop2 
+
+mcrsdone:
+51c5 20600000 rtn 
+
+ml2cap_proc_signal_config_req:
+51c6 efe08006 ifetch 1 ,contr 
+51c7 1fe20e00 copy pdata ,queue 
+51c8 efe10006 ifetch 2 ,contr 
+51c9 1fe22200 copy pdata ,rega 
+51ca 1a627e00 copy regc ,pdata 
+51cb 9a262600 isub rega ,regc 
+51cc efe10006 ifetch 2 ,contr 
+51cd 18c08c02 increase 2 ,contr 
+51ce 1fe20400 copy pdata ,temp 
+51cf 58000005 setarg signal_config_rsp 
+51d0 e7e08005 istore 1 ,contw 
+51d1 18e27e00 copy queue ,pdata 
+51d2 e7e08005 istore 1 ,contw 
+51d3 1a20a202 increase 2 ,rega 
+51d4 1a227e00 copy rega ,pdata 
+51d5 e7e10005 istore 2 ,contw 
+51d6 20407d02 call save_cont_pointers 
+51d7 4701c020 bpatchx patch20_3 ,mem_patch20 
+51d8 58000050 setarg l2cap_sdp_channel 
+51d9 98467c00 isub temp ,null 
+51da 2022d1e5 branch ml2cap_proc_signal_config_req_sdp ,zero 
+51db 58000051 setarg l2cap_rfcomm_channel 
+51dc 98467c00 isub temp ,null 
+51dd 2022d1f6 branch ml2cap_proc_signal_config_req_rfcomm ,zero 
+51de 58000052 setarg l2cap_hid_control_channel 
+51df 98467c00 isub temp ,null 
+51e0 2022d1fc branch ml2cap_proc_signal_config_req_hid_ctrl ,zero 
+51e1 58000053 setarg l2cap_hid_interrupt_channel 
+51e2 98467c00 isub temp ,null 
+51e3 2022d202 branch ml2cap_proc_signal_config_req_hid_int ,zero 
+51e4 20205207 branch mcfgrq_done 
+
+ml2cap_proc_signal_config_req_sdp:
+51e5 6fe0c4e0 fetch 1 ,mem_sdp_state 
+51e6 79207e04 set1 l2cap_channel_state_rcv_cfg_req ,pdata 
+51e7 79207e03 set1 l2cap_channel_state_snd_cfg_res ,pdata 
+51e8 67e0c4e0 store 1 ,mem_sdp_state 
+51e9 c28151f3 bbit1 l2cap_channel_state_snd_cfg_req ,ml2cap_proc_signal_config_req_sdp_nsndreq 
+51ea 68488330 fetcht 1 ,mem_control_tasks 
+51eb 79200406 set1 l2cap_init_config_req ,temp 
+51ec 60488330 storet 1 ,mem_control_tasks 
+51ed 18e27e00 copy queue ,pdata 
+51ee 1fe0fe01 increase 1 ,pdata 
+51ef 67e08332 store 1 ,mem_config_identifier 
+51f0 6fe0c4e0 fetch 1 ,mem_sdp_state 
+51f1 79207e02 set1 l2cap_channel_state_snd_cfg_req ,pdata 
+51f2 67e0c4e0 store 1 ,mem_sdp_state 
+
+ml2cap_proc_signal_config_req_sdp_nsndreq:
+51f3 6fe144d8 fetch 2 ,mem_sdp_remote_cid 
+51f4 67e10333 store 2 ,mem_config_req_dest_cid 
+51f5 20205207 branch mcfgrq_done 
+
+ml2cap_proc_signal_config_req_rfcomm:
+51f6 6fe0c4e1 fetch 1 ,mem_rfcomm_state 
+51f7 79207e04 set1 l2cap_channel_state_rcv_cfg_req ,pdata 
+51f8 79207e03 set1 l2cap_channel_state_snd_cfg_res ,pdata 
+51f9 67e0c4e1 store 1 ,mem_rfcomm_state 
+51fa 6fe144da fetch 2 ,mem_rfcomm_remote_cid 
+51fb 20205207 branch mcfgrq_done 
+
+ml2cap_proc_signal_config_req_hid_ctrl:
+51fc 6fe0c4e2 fetch 1 ,mem_hid_control_state 
+51fd 79207e04 set1 l2cap_channel_state_rcv_cfg_req ,pdata 
+51fe 79207e03 set1 l2cap_channel_state_snd_cfg_res ,pdata 
+51ff 67e0c4e2 store 1 ,mem_hid_control_state 
+5200 6fe144dc fetch 2 ,mem_hid_ctrl_remote_cid 
+5201 20205207 branch mcfgrq_done 
+
+ml2cap_proc_signal_config_req_hid_int:
+5202 6fe0c4e3 fetch 1 ,mem_hid_interrupt_state 
+5203 79207e04 set1 l2cap_channel_state_rcv_cfg_req ,pdata 
+5204 79207e03 set1 l2cap_channel_state_snd_cfg_res ,pdata 
+5205 67e0c4e3 store 1 ,mem_hid_interrupt_state 
+5206 6fe144de fetch 2 ,mem_hid_int_remote_cid 
+
+mcfgrq_done:
+5207 1fe21600 copy pdata ,timeup 
+5208 20407d07 call load_cont_pointers 
+5209 19627e00 copy timeup ,pdata 
+520a e7e10005 istore 2 ,contw 
+520b 18007e00 force 0x0000 ,pdata 
+520c e7e10005 istore 2 ,contw 
+520d 18007e00 force 0x0000 ,pdata 
+520e e7e10005 istore 2 ,contw 
+520f 18007e0a force 10 ,pdata 
+5210 9a40a400 iadd regb ,regb 
+5211 1a20a3fa increase -6 ,rega 
+
+mloop1:
+5212 2022d218 branch mcrqdone ,zero 
+5213 efe08006 ifetch 1 ,contr 
+5214 e7e08005 istore 1 ,contw 
+5215 1a40a401 increase 1 ,regb 
+5216 1a20a3ff increase -1 ,rega 
+5217 20205212 branch mloop1 
+
+mcrqdone:
+5218 20600000 rtn 
+
+ml2cap_proc_signal_disconn_req:
+5219 efe08006 ifetch 1 ,contr 
+521a 1fe20e00 copy pdata ,queue 
+521b efe10006 ifetch 2 ,contr 
+521c 1fe22200 copy pdata ,rega 
+521d 1a627e00 copy regc ,pdata 
+521e 9a262600 isub rega ,regc 
+521f efe10006 ifetch 2 ,contr 
+5220 1fe22200 copy pdata ,rega 
+5221 efe10006 ifetch 2 ,contr 
+5222 1fe21600 copy pdata ,timeup 
+5223 20407d02 call save_cont_pointers 
+5224 47024020 bpatchx patch20_4 ,mem_patch20 
+5225 58000050 setarg l2cap_sdp_channel 
+5226 1a220400 copy rega ,temp 
+5227 98467c00 isub temp ,null 
+5228 2022d232 branch ml2cap_proc_signal_disconn_sdp ,zero 
+5229 58000052 setarg l2cap_hid_control_channel 
+522a 1a220400 copy rega ,temp 
+522b 98467c00 isub temp ,null 
+522c 2022d237 branch ml2cap_proc_signal_disconn_hid_ctrl ,zero 
+522d 58000053 setarg l2cap_hid_interrupt_channel 
+522e 1a220400 copy rega ,temp 
+522f 98467c00 isub temp ,null 
+5230 2022d239 branch ml2cap_proc_signal_disconn_hid_int ,zero 
+5231 2020523b branch mclsrfc 
+
+ml2cap_proc_signal_disconn_sdp:
+5232 58000000 setarg 0x0000 
+5233 67e10326 store 2 ,mem_sdp_tx_pkt_length 
+5234 67e144d8 store 2 ,mem_sdp_remote_cid 
+5235 67e0c4e0 store 1 ,mem_sdp_state 
+5236 2020523d branch mclssdp 
+
+ml2cap_proc_signal_disconn_hid_ctrl:
+5237 204050b2 call l2cap_reset_hid_ctrl_state 
+5238 2020523d branch mclssdp 
+
+ml2cap_proc_signal_disconn_hid_int:
+5239 204050b8 call l2cap_reset_hid_int_state 
+523a 2020523d branch mclssdp 
+
+mclsrfc:
+523b 58000000 setarg 0x0000 
+523c 67e1032c store 2 ,mem_rfcomm_tx_pkt_length 
+
+mclssdp:
+523d 20407d07 call load_cont_pointers 
+523e 58000007 setarg signal_disconnect_rsp 
+523f e7e08005 istore 1 ,contw 
+5240 18e27e00 copy queue ,pdata 
+5241 e7e08005 istore 1 ,contw 
+5242 58000004 setarg 0x0004 
+5243 e7e10005 istore 2 ,contw 
+5244 1a227e00 copy rega ,pdata 
+5245 e7e10005 istore 2 ,contw 
+5246 19627e00 copy timeup ,pdata 
+5247 e7e10005 istore 2 ,contw 
+5248 18007e08 force 8 ,pdata 
+5249 9a40a400 iadd regb ,regb 
+524a 20600000 rtn 
+
+ml2cap_proc_signal_disconn_rsp:
+524b efe08006 ifetch 1 ,contr 
+524c 1fe20e00 copy pdata ,queue 
+524d efe10006 ifetch 2 ,contr 
+524e 1fe22200 copy pdata ,rega 
+524f efe10006 ifetch 2 ,contr 
+5250 1fe21600 copy pdata ,timeup 
+5251 efe10006 ifetch 2 ,contr 
+5252 1fe20400 copy pdata ,temp 
+5253 20407d02 call save_cont_pointers 
+5254 4702c020 bpatchx patch20_5 ,mem_patch20 
+5255 6fe0c4e5 fetch 1 ,mem_ml2cap_comm_id 
+5256 a8e1fe00 icompare 0xff ,queue 
+5257 2420d262 nbranch mdisdone ,true 
+5258 58000050 setarg l2cap_sdp_channel 
+5259 98467c00 isub temp ,null 
+525a 2022d25f branch ml2cap_proc_signal_disconn_rsp_sdp ,zero 
+525b 58000051 setarg l2cap_rfcomm_channel 
+525c 98467c00 isub temp ,null 
+525d 2022d262 branch ml2cap_proc_signal_disconn_rsp_rfcomm ,zero 
+525e 20205262 branch mdisdone 
+
+ml2cap_proc_signal_disconn_rsp_sdp:
+525f 7044d800 jam 0 ,mem_sdp_remote_cid 
+5260 7044e000 jam 0 ,mem_sdp_state 
+5261 20205262 branch mdisdone 
+
+ml2cap_proc_signal_disconn_rsp_rfcomm:
+
+mdisdone:
+5262 20407d07 call load_cont_pointers 
+5263 1a627e00 copy regc ,pdata 
+5264 9a262600 isub rega ,regc 
+5265 20600000 rtn 
+
+ml2cap_proc_send_reject:
+5266 58000001 setarg signal_cmd_reject 
+5267 e7e08005 istore 1 ,contw 
+5268 efe08006 ifetch 1 ,contr 
+5269 e7e08005 istore 1 ,contw 
+526a 58000002 setarg 0x0002 
+526b e7e10005 istore 2 ,contw 
+526c 58000000 setarg 0x0000 
+526d e7e10005 istore 2 ,contw 
+526e 58000006 setarg 0x0006 
+526f 9a40a400 iadd regb ,regb 
+5270 18002604 force 4 ,regc 
+5271 20600000 rtn 
+
+l2cap_get_req_id:
+5272 6fe0c4e5 fetch 1 ,mem_ml2cap_comm_id 
+5273 1fe0fe01 increase 1 ,pdata 
+5274 c0805276 bne 0 ,l2cap_get_req_id_ok 
+5275 1fe0fe01 increase 1 ,pdata 
+
+l2cap_get_req_id_ok:
+5276 67e0c4e5 store 1 ,mem_ml2cap_comm_id 
+5277 20600000 rtn 
+
+l2cap_malloc:
+
+bt_l2cap_malloc:
+5278 db001800 arg mem_tx_buff0 ,regd 
+5279 dd600080 arg mem_bt_l2cap_tx_buff_size ,rege 
+527a 20407e62 call enable_user 
+527b 20205280 branch host_l2cap_malloc 
+
+ble_l2cap_malloc:
+527c 6b0143dc fetchr regd ,2 ,mem_ble_l2cap_tx_buff0_ptr 
+527d 6d6143de fetchr rege ,2 ,mem_ble_l2cap_tx_buff_size_ptr 
+527e 20407e64 call disable_user 
+527f 20205280 branch host_l2cap_malloc 
+
+host_l2cap_malloc:
+5280 47034020 bpatchx patch20_6 ,mem_patch20 
+5281 204052cc call l2cap_malloc_is_fifo_full 
+5282 243a131f nbranch assert ,blank 
+5283 204052dc call l2cap_malloc_get_full_map 
+5284 df200008 arg 8 ,loopcnt 
+
+host_l2cap_malloc_loop:
+5285 6848c4e6 fetcht 1 ,mem_used_map 
+5286 1f260e08 sub loopcnt ,8 ,queue 
+5287 a84fffff qisolate1 temp 
+5288 2020d28d branch host_l2cap_malloc_next_buffer ,true 
+5289 20405294 call host_l2cap_malloc_check_buffer_enough 
+528a 2421528d nbranch host_l2cap_malloc_next_buffer ,positive 
+528b 204052aa call host_l2cap_malloc_into_fifo 
+528c 20205291 branch host_l2cap_malloc_succ 
+
+host_l2cap_malloc_next_buffer:
+528d 1d627e00 copy rege ,pdata 
+528e 9b00b000 iadd regd ,regd 
+528f c2005285 loop host_l2cap_malloc_loop 
+5290 2020131f branch assert 
+
+host_l2cap_malloc_succ:
+5291 1b027e00 copy regd ,pdata 
+5292 1b020a00 copy regd ,contw 
+5293 20600000 rtn 
+
+host_l2cap_malloc_check_buffer_enough:
+5294 4703c020 bpatchx patch20_7 ,mem_patch20 
+5295 1f260e08 sub loopcnt ,8 ,queue 
+5296 d8400000 arg 0 ,temp 
+5297 d9600000 arg 0 ,timeup 
+
+host_l2cap_malloc_check_buffer_enough_loop:
+5298 18e27e00 copy queue ,pdata 
+5299 c00452a5 beq 8 ,host_l2cap_malloc_check_buffer_enough_end 
+529a 6fe0c4e6 fetch 1 ,mem_used_map 
+529b afefffff qisolate1 pdata 
+529c 2020d2a5 branch host_l2cap_malloc_check_buffer_enough_end ,true 
+529d f9201600 qset1 timeup 
+529e 1d627e00 copy rege ,pdata 
+529f 98408400 iadd temp ,temp 
+52a0 18e08e01 increase 1 ,queue 
+52a1 1a227e00 copy rega ,pdata 
+52a2 98467c00 isub temp ,null 
+52a3 2022d2a5 branch host_l2cap_malloc_check_buffer_enough_end ,zero 
+52a4 20215298 branch host_l2cap_malloc_check_buffer_enough_loop ,positive 
+
+host_l2cap_malloc_check_buffer_enough_end:
+52a5 18427e00 copy temp ,pdata 
+52a6 9a267c00 isub rega ,null 
+52a7 24628000 nrtn zero 
+52a8 f9201600 qset1 timeup 
+52a9 20600000 rtn 
+
+host_l2cap_malloc_into_fifo:
+52aa 47044021 bpatchx patch21_0 ,mem_patch21 
+52ab 204052cc call l2cap_malloc_is_fifo_full 
+52ac 243a131f nbranch assert ,blank 
+52ad 204052d2 call l2cap_malloc_is_fifo_empty 
+52ae 203a52b3 branch host_l2cap_malloc_into_fifo_no_push ,blank 
+52af 6fe4c4ea fetch 9 ,mem_tx_fifo1 
+52b0 67e4c4e7 store 9 ,mem_tx_fifo0 
+52b1 58000000 setarg 0 
+52b2 e7e18005 istore 3 ,contw 
+
+host_l2cap_malloc_into_fifo_no_push:
+52b3 6160c4f0 storer timeup ,1 ,mem_tx_fifo3_map 
+52b4 630144f1 storer regd ,2 ,mem_tx_fifo3_ptr 
+52b5 20600000 rtn 
+
+l2cap_malloc_fifo_out:
+52b6 4704c021 bpatchx patch21_1 ,mem_patch21 
+52b7 204052d5 call l2cap_malloc_fifo_get_first_ptr 
+52b8 18c08c01 increase 1 ,contr 
+52b9 efe10006 ifetch 2 ,contr 
+52ba 20600000 rtn 
+
+l2cap_malloc_free:
+52bb 47054021 bpatchx patch21_2 ,mem_patch21 
+52bc 204052d5 call l2cap_malloc_fifo_get_first_ptr 
+52bd 18c20a00 copy contr ,contw 
+52be 18c20400 copy contr ,temp 
+52bf 58000000 setarg 0 
+52c0 e7e18005 istore 3 ,contw 
+52c1 20600000 rtn 
+
+l2cap_malloc_discard:
+52c2 4705c021 bpatchx patch21_3 ,mem_patch21 
+52c3 204052d2 call l2cap_malloc_is_fifo_empty 
+52c4 203a131f branch assert ,blank 
+52c5 6fe1c4ed fetch 3 ,mem_tx_fifo2 
+52c6 67e1c4f0 store 3 ,mem_tx_fifo3 
+52c7 6fe1c4ea fetch 3 ,mem_tx_fifo1 
+52c8 67e1c4ed store 3 ,mem_tx_fifo2 
+52c9 6fe1c4e7 fetch 3 ,mem_tx_fifo0 
+52ca 67e1c4ea store 3 ,mem_tx_fifo1 
+52cb 20600000 rtn 
+
+l2cap_malloc_is_fifo_full:
+52cc 47064021 bpatchx patch21_4 ,mem_patch21 
+52cd 6fe1c4e7 fetch 3 ,mem_tx_fifo0 
+52ce 20600000 rtn 
+
+l2cap_malloc_is_fifo_nearly_full:
+52cf 4706c021 bpatchx patch21_5 ,mem_patch21 
+52d0 6fe1c4ea fetch 3 ,mem_tx_fifo1 
+52d1 20600000 rtn 
+
+l2cap_malloc_is_fifo_empty:
+52d2 47074021 bpatchx patch21_6 ,mem_patch21 
+52d3 6fe1c4f0 fetch 3 ,mem_tx_fifo3 
+52d4 20600000 rtn 
+
+l2cap_malloc_fifo_get_first_ptr:
+52d5 204052d2 call l2cap_malloc_is_fifo_empty 
+52d6 203a52da branch l2cap_malloc_fifo_get_first_ptr_empty ,blank 
+52d7 d8c044e7 arg mem_tx_fifo0 ,contr 
+
+l2cap_malloc_free_loop:
+52d8 efe18006 ifetch 3 ,contr 
+52d9 203a52d8 branch l2cap_malloc_free_loop ,blank 
+
+l2cap_malloc_fifo_get_first_ptr_empty:
+52da 18c08dfd increase -3 ,contr 
+52db 20600000 rtn 
+
+l2cap_malloc_get_full_map:
+52dc 4707c021 bpatchx patch21_7 ,mem_patch21 
+52dd df200004 arg 4 ,loopcnt 
+52de d8c044e7 arg mem_tx_fifo0_map ,contr 
+52df d8400000 arg 0 ,temp 
+
+l2cap_malloc_get_full_map_loop:
+52e0 efe18006 ifetch 3 ,contr 
+52e1 1fe17eff and pdata ,0xff ,pdata 
+52e2 98418400 ior temp ,temp 
+52e3 c20052e0 loop l2cap_malloc_get_full_map_loop 
+52e4 6048c4e6 storet 1 ,mem_used_map 
+52e5 20600000 rtn 
+
+l2cap_malloc_signal_channel:
+52e6 47084022 bpatchx patch22_0 ,mem_patch22 
+52e7 da20007f arg l2cap_signal_malloc_size ,rega 
+52e8 20405278 call l2cap_malloc 
+52e9 67e1031c store 2 ,mem_l2cap_signal_tx_buff_ptr 
+52ea 1fe0fe04 increase 4 ,pdata 
+52eb 67e1031e store 2 ,mem_l2cap_signal_tx_payload_ptr 
+52ec 58000000 setarg 0 
+52ed 67e10320 store 2 ,mem_l2cap_signal_tx_length 
+52ee 20600000 rtn 
+
+l2cap_get_signal_tx_buff:
+52ef 6fe1031c fetch 2 ,mem_l2cap_signal_tx_buff_ptr 
+52f0 20205310 branch l2cap_util_pdata_to_contw 
+
+l2cap_get_signal_tx_payload:
+52f1 6fe1031e fetch 2 ,mem_l2cap_signal_tx_payload_ptr 
+52f2 20205310 branch l2cap_util_pdata_to_contw 
+
+l2cap_malloc_sdp_channel:
+52f3 4708c022 bpatchx patch22_1 ,mem_patch22 
+52f4 da2000fa arg sdp_malloc_size ,rega 
+52f5 20405278 call l2cap_malloc 
+52f6 67e10322 store 2 ,mem_sdp_tx_buff_ptr 
+52f7 1fe0fe04 increase 4 ,pdata 
+52f8 67e10324 store 2 ,mem_sdp_tx_payload_ptr 
+52f9 58000000 setarg 0 
+52fa 67e10326 store 2 ,mem_sdp_tx_pkt_length 
+52fb 20600000 rtn 
+
+l2cap_get_sdp_tx_buff:
+52fc 6fe10322 fetch 2 ,mem_sdp_tx_buff_ptr 
+52fd 20205310 branch l2cap_util_pdata_to_contw 
+
+l2cap_get_sdp_tx_payload:
+52fe 6fe10324 fetch 2 ,mem_sdp_tx_payload_ptr 
+52ff 20205310 branch l2cap_util_pdata_to_contw 
+
+l2cap_malloc_rfcomm_channel:
+5300 47094022 bpatchx patch22_2 ,mem_patch22 
+5301 20407cdc call push_stack 
+5302 70033501 jam rfcomm_malloc_fail ,mem_rfcomm_malloc_fail_flag 
+5303 204052cc call l2cap_malloc_is_fifo_full 
+5304 247a0000 nrtn blank 
+5305 da20007f arg rfcomm_malloc_size ,rega 
+5306 20405278 call l2cap_malloc 
+5307 67e10328 store 2 ,mem_rfcomm_tx_buff_ptr 
+5308 1fe0fe04 increase 4 ,pdata 
+5309 67e1032a store 2 ,mem_rfcomm_tx_payload_ptr 
+530a 58000000 setarg 0 
+530b 67e1032c store 2 ,mem_rfcomm_tx_pkt_length 
+530c 70033500 jam rfcomm_malloc_succeed ,mem_rfcomm_malloc_fail_flag 
+530d 20207ce8 branch pop_stack 
+
+l2cap_get_rfcomm_tx_buff:
+530e 6fe10328 fetch 2 ,mem_rfcomm_tx_buff_ptr 
+530f 20205310 branch l2cap_util_pdata_to_contw 
+
+l2cap_util_pdata_to_contw:
+5310 203a131f branch assert ,blank 
+5311 1fe20a00 copy pdata ,contw 
+5312 20600000 rtn 
+
+l2cap_lpm_save_calc_len:
+5313 4709c022 bpatchx patch22_3 ,mem_patch22 
+5314 da400000 arg 0 ,regb 
+5315 da2044e7 arg mem_tx_fifo0_map ,rega 
+5316 1a20a3fe increase -2 ,rega 
+
+l2cap_lpm_save_calc_len_loop:
+5317 1a20a202 increase 2 ,rega 
+5318 580044f3 setarg mem_tx_fifo_end 
+5319 9a267c00 isub rega ,null 
+531a 2022d323 branch l2cap_lpm_save_calc_len_end ,zero 
+531b efe08011 ifetch 1 ,rega 
+531c 1a20a201 increase 1 ,rega 
+531d 203a5317 branch l2cap_lpm_save_calc_len_loop ,blank 
+531e e8410011 ifetcht 2 ,rega 
+531f efe10002 ifetch 2 ,temp 
+5320 9a40a400 iadd regb ,regb 
+5321 1a40a404 increase 4 ,regb 
+5322 20205317 branch l2cap_lpm_save_calc_len_loop 
+
+l2cap_lpm_save_calc_len_end:
+5323 1a427e00 copy regb ,pdata 
+5324 20600000 rtn 
+
+l2cap_lpm_get_wake_lock:
+5325 d8e0000c arg wake_lock_l2cap_tx ,queue 
+5326 20201516 branch lpm_get_wake_lock 
+
+l2cap_lpm_put_wake_lock:
+5327 d8e0000c arg wake_lock_l2cap_tx ,queue 
+5328 2020151a branch lpm_put_wake_lock 
+
+l2cap_lpm_save_txbuf:
+5329 470a4022 bpatchx patch22_4 ,mem_patch22 
+532a 204052dc call l2cap_malloc_get_full_map 
+532b 6fe0c4e6 fetch 1 ,mem_used_map 
+532c 207a0000 rtn blank 
+532d 20405313 call l2cap_lpm_save_calc_len 
+532e d8400100 arg l2cap_lpm_txbuf_len ,temp 
+532f 98467c00 isub temp ,null 
+5330 20215325 branch l2cap_lpm_get_wake_lock ,positive 
+5331 20405327 call l2cap_lpm_put_wake_lock 
+5332 d8a044f3 arg mem_l2cap_lpm_txbuf ,contw 
+5333 da2044e7 arg mem_tx_fifo0 ,rega 
+
+l2cap_lpm_save_txbuf_loop:
+5334 580044f3 setarg mem_tx_fifo_end 
+5335 9a267c00 isub rega ,null 
+5336 20628000 rtn zero 
+5337 efe08011 ifetch 1 ,rega 
+5338 1a20a201 increase 1 ,rega 
+5339 243a533d nbranch l2cap_lpm_save_txbuf_nempty ,blank 
+533a e7e10005 istore 2 ,contw 
+533b 1a20a202 increase 2 ,rega 
+533c 20205334 branch l2cap_lpm_save_txbuf_loop 
+
+l2cap_lpm_save_txbuf_nempty:
+533d efe10011 ifetch 2 ,rega 
+533e 1a20a202 increase 2 ,rega 
+533f 1fe20c00 copy pdata ,contr 
+5340 efe10006 ifetch 2 ,contr 
+5341 e7e10005 istore 2 ,contw 
+5342 1fe27200 copy pdata ,loopcnt 
+5343 1f20f202 increase 2 ,loopcnt 
+5344 20407d6d call memcpy 
+5345 20205334 branch l2cap_lpm_save_txbuf_loop 
+
+l2cap_lpm_load_txbuf:
+5346 470ac022 bpatchx patch22_5 ,mem_patch22 
+5347 204052dc call l2cap_malloc_get_full_map 
+5348 6fe0c4e6 fetch 1 ,mem_used_map 
+5349 207a0000 rtn blank 
+534a da2044e8 arg mem_tx_fifo0_ptr ,rega 
+534b 1a20a3fd increase -3 ,rega 
+534c d8c044f3 arg mem_l2cap_lpm_txbuf ,contr 
+
+l2cap_lpm_load_txbuf_loop:
+534d 1a20a203 increase 3 ,rega 
+534e 580044f4 setarg mem_tx_fifo_end + 1 
+534f 9a267c00 isub rega ,null 
+5350 20628000 rtn zero 
+5351 efe10006 ifetch 2 ,contr 
+5352 203a534d branch l2cap_lpm_load_txbuf_loop ,blank 
+5353 1fe0fe04 increase 4 ,pdata 
+5354 1fe27200 copy pdata ,loopcnt 
+5355 18c22400 copy contr ,regb 
+5356 efe10011 ifetch 2 ,rega 
+5357 1fe20a00 copy pdata ,contw 
+5358 1a420c00 copy regb ,contr 
+5359 18c08dfe increase -2 ,contr 
+535a 20407d6d call memcpy 
+535b 2020534d branch l2cap_lpm_load_txbuf_loop 
+
+init_lmp:
+535c 20758000 rtn wake 
+
+init_lmp_work:
+535d 470b4022 bpatchx patch22_6 ,mem_patch22 
+535e 58000000 setarg 0 
+535f 67e08049 store 1 ,mem_lmp_to_send 
+5360 67e08056 store 1 ,mem_conn_sm 
+5361 67e08079 store 1 ,mem_lmo_opcode1 
+5362 67e0807d store 1 ,mem_lmo_opcode2 
+5363 67e0c160 store 1 ,mem_esco_addr 
+5364 67e080bd store 1 ,mem_connection_options 
+5365 67e08877 store 1 ,mem_pairing_auth 
+5366 70464200 jam switch_flag_init ,mem_switch_flag 
+5367 70030c00 jam 0 ,mem_switch_fail_master_count 
+5368 7003ab00 jam null_encryp ,mem_wait_encryption 
+
+init_lmp_reinit:
+5369 70087700 jam 0 ,mem_pairing_auth 
+536a 70087600 jam 0 ,mem_sp_localsm 
+536b 7003a500 jam 0 ,mem_lmp_conn_state 
+
+parse_rx_done:
+536c 20600000 rtn 
+
+parse_lmp:
+536d 470bc022 bpatchx patch22_7 ,mem_patch22 
+536e 2054d9df call setlocalsm_master ,master 
+536f 2454d9e3 ncall setlocalsm_slave ,master 
+5370 2040599c call lmo_fifo_check 
+5371 247a0000 nrtn blank 
+5372 6fe0804d fetch 1 ,mem_state_map 
+5373 c4030000 rtnbit0 smap_rxlmp 
+5374 793ffe06 set0 smap_rxlmp ,pdata 
+5375 793f8001 set0 mark_rxbuf_inuse ,mark 
+5376 67e0804d store 1 ,mem_state_map 
+5377 6fe080cf fetch 1 ,mem_rxbuf 
+5378 6848804d fetcht 1 ,mem_state_map 
+5379 2feffe00 isolate1 smap_lmptidinit ,pdata 
+537a 79208401 setflag true ,smap_lmptid ,temp 
+537b 6048804d storet 1 ,mem_state_map 
+537c 18410402 and_into 0x2 ,temp 
+537d 60488080 storet 1 ,mem_lmo_tid2 
+537e 6848804d fetcht 1 ,mem_state_map 
+537f 1fe37e00 rshift pdata ,pdata 
+5380 67e0807e store 1 ,mem_lmi_opcode2 
+5381 470c4023 bpatchx patch23_0 ,mem_patch23 
+5382 6fe0807e fetch 1 ,mem_lmi_opcode2 
+5383 c03fd3cf beq lmp_escape ,parse_lmp_escape 
+5384 c001d41d beq lmp_accepted ,parse_lmp_accepted 
+5385 c002542e beq lmp_not_accepted ,parse_lmp_not_accepted 
+5386 c01e53c2 beq lmp_set_afh ,parse_lmp_set_afh 
+5387 c002d3be beq lmp_clkoffset_req ,parse_lmp_clkoffset_req 
+5388 c007d654 beq lmp_encryption_mode_req ,parse_lmp_encryption_mode_req 
+5389 c0085493 beq lmp_encryption_key_size_req ,parse_lmp_crypt_key 
+538a c011d4b2 beq lmp_auto_rate ,parse_lmp_auto_rate 
+538b c01cd66d beq lmp_test_control ,parse_lmp_test_control 
+538c c01c5668 beq lmp_test_activate ,parse_lmp_test_activate 
+538d c018d498 beq lmp_setup_complete ,parse_lmp_setup_complete 
+538e c01bd534 beq lmp_supervision_timeout ,parse_lmp_supervision_timeout 
+538f c013d530 beq lmp_features_req ,parse_lmp_features_req 
+5390 c019d52d beq lmp_host_connection_req ,parse_lmp_conn_req 
+5391 c012d532 beq lmp_version_req ,parse_lmp_version_req 
+5392 c01354ae beq lmp_version_res ,parse_lmp_version_res 
+5393 c003d4a7 beq lmp_detach ,parse_lmp_detach 
+5394 c016d49e beq lmp_max_slot ,parse_lmp_max_slot 
+5395 c017549f beq lmp_max_slot_req ,parse_lmp_max_slot_req 
+5396 c000d529 beq lmp_name_req ,parse_lmp_name_req 
+5397 c0015514 beq lmp_name_res ,parse_lmp_name_res 
+5398 c014565f beq lmp_features_res ,parse_lmp_features_res 
+5399 c004d50a beq lmp_comb_key ,parse_lmp_comb_key 
+539a c005d4d1 beq lmp_au_rand ,parse_lmp_au_rand 
+539b c00454b3 beq lmp_in_rand ,parse_lmp_in_rand 
+539c c00654e3 beq lmp_sres ,parse_lmp_sres 
+539d c00fd4aa beq lmp_incr_power_req ,parse_lmp_incr_power 
+539e c01054ac beq lmp_decr_power_req ,parse_lmp_decr_power 
+539f c010d54e beq lmp_max_power ,parse_lmp_max_power 
+53a0 c011554e beq lmp_min_power ,parse_lmp_min_power 
+53a1 c01ad54f beq lmp_page_mode_req ,parse_lmp_page_mode_req 
+53a2 c01b5550 beq lmp_page_scan_mode_req ,parse_lmp_page_scan_mode_req 
+53a3 c012554e beq lmp_preferred_rate ,parse_lmp_preferred_rate 
+53a4 c01a5551 beq lmp_slot_offset ,parse_lmp_slot_offset 
+53a5 c00bd55a beq lmp_sniff_req ,parse_lmp_sniff_req 
+53a6 c008d574 beq lmp_start_encryption_req ,parse_lmp_start_encryption_req 
+53a7 c0095581 beq lmp_stop_encryption_req ,parse_lmp_stop_encryption_req 
+53a8 c009d583 beq lmp_switch_req ,parse_lmp_switch_req 
+53a9 c006d593 beq lmp_temp_rand ,parse_lmp_temp_rand 
+53aa c0075593 beq lmp_temp_key ,parse_lmp_temp_key 
+53ab c017d52e beq lmp_timing_accuracy_req ,parse_lmp_timing_accuracy_req 
+53ac c0185593 beq lmp_timing_accuracy_res ,parse_lmp_timing_accuracy_res 
+53ad c0055593 beq lmp_unit_key ,parse_lmp_unit_key 
+53ae c00c5594 beq lmp_unsniff_req ,parse_lmp_unsniff_req 
+53af c0195593 beq lmp_use_semi_permanent_key ,parse_lmp_use_semi_permanend_key 
+53b0 c01ed599 beq lmp_encapsulated_header ,parse_lmp_encapsulated_header 
+53b1 c01f55e2 beq lmp_encapsulated_payload ,parse_lmp_encapsulated_payload 
+53b2 c01fd5db beq lmp_simple_pairing_confirm ,parse_simple_pairing_confirm 
+53b3 c0205625 beq lmp_simple_pairing_number ,parse_lmp_simple_pairing_number 
+53b4 c020d636 beq lmp_dhkey_check ,parse_dhkey_check 
+53b5 c0035653 beq lmp_clkoffset_res ,parse_lmp_clkoffset_res 
+53b6 c01d53c0 beq lmp_enc_key_size_mask_req ,parse_enc_key_size_mask_req 
+53b7 c01553bc beq lmp_quality_of_service_req ,parse_quality_of_server_req 
+53b8 c014d3bd beq lmp_quality_of_service ,parse_quality_of_server 
+
+reject_unknown_packet:
+53b9 70007f19 jam unknown_lmp_pdu ,mem_lmo_reason2 
+
+reject_lmp_packet:
+53ba 70007d04 jam lmp_not_accepted ,mem_lmo_opcode2 
+53bb 20600000 rtn 
+
+parse_quality_of_server_req:
+53bc 202054a8 branch accept_lmp_msg 
+
+parse_quality_of_server:
+53bd 20600000 rtn 
+
+parse_lmp_clkoffset_req:
+53be 70007d06 jam lmp_clkoffset_res ,mem_lmo_opcode2 
+53bf 20600000 rtn 
+
+parse_enc_key_size_mask_req:
+53c0 70007d3b jam lmp_enc_key_size_mask_res ,mem_lmo_opcode2 
+53c1 20600000 rtn 
+
+parse_lmp_set_afh:
+53c2 6fe200d0 fetch 4 ,mem_rxbuf + 1 
+53c3 1fe3fe00 lshift pdata ,pdata 
+53c4 67e240da store 4 ,mem_afh_instant 
+53c5 6fe080d4 fetch 1 ,mem_rxbuf + 5 
+53c6 67e0c0e1 store 1 ,mem_afh_new_mod 
+53c7 6fe280d5 fetch 5 ,mem_rxbuf + 6 
+53c8 67e2c0ef store 5 ,mem_afh_map_new 
+53c9 6fe280da fetch 5 ,mem_rxbuf + 11 
+53ca e7e28005 istore 5 ,contw 
+53cb 6fe08032 fetch 1 ,mem_mode 
+53cc 79207e03 set1 afh_change ,pdata 
+53cd 67e08032 store 1 ,mem_mode 
+53ce 20600000 rtn 
+
+parse_lmp_escape:
+53cf 470cc023 bpatchx patch23_1 ,mem_patch23 
+53d0 6fe080d0 fetch 1 ,mem_rxbuf + 1 
+53d1 79207e07 set1 7 ,pdata 
+53d2 67e0807e store 1 ,mem_lmi_opcode2 
+53d3 c040d3f4 beq lmp_ext_accepted ,parse_lmpext_accepted 
+53d4 c04153f9 beq lmp_not_accepted_ext ,parse_lmpext_not_accepted 
+53d5 c04ad535 beq lmp_sniff_subrating_req ,parse_lmp_sniff_subrating_req 
+53d6 c04b554e beq lmp_sniff_subrating_res ,parse_lmp_sniff_subrating_res 
+53d7 c045d543 beq lmp_packet_type_table_req ,parse_lmpext_packet_type_table_req 
+53d8 c041d40f beq lmp_ext_features_req ,parse_lmpext_features_req 
+53d9 c0425413 beq lmp_ext_features_res ,parse_lmpext_features_res 
+53da c04853e6 beq lmp_ext_chn_classification_req ,parse_lmpext_chn_classification_req 
+53db c04bd408 beq lmp_pause_encryption_req ,parse_lmpext_pause_encrypt 
+53dc c04c540d beq lmp_resume_encryption_req ,parse_lmpext_resume_encrypt 
+53dd c04cd3e9 beq lmp_io_cap_req ,parse_lmpext_iocap_req 
+53de c04d53ec beq lmp_io_cap_res ,parse_lmpext_iocap_res 
+53df c050d3e4 beq lmp_ping_req ,parse_lmpext_ping_req 
+53e0 c1420000 rtneq lmp_ext_features_res 
+
+reject_unknown_ext_packet:
+53e1 70007d82 jam lmp_not_accepted_ext ,mem_lmo_opcode2 
+53e2 70007f19 jam unknown_lmp_pdu ,mem_lmo_reason2 
+53e3 20600000 rtn 
+
+parse_lmpext_ping_req:
+53e4 70007da2 jam lmp_ping_res ,mem_lmo_opcode2 
+53e5 20600000 rtn 
+
+parse_lmpext_chn_classification_req:
+53e6 70007d82 jam lmp_not_accepted_ext ,mem_lmo_opcode2 
+53e7 70007f2e jam not_support_chn_classification ,mem_lmo_reason2 
+53e8 20600000 rtn 
+
+parse_lmpext_iocap_req:
+53e9 204053ee call iocap_lmpext_load 
+53ea 70007d9a jam lmp_io_cap_res ,mem_lmo_opcode2 
+53eb 20600000 rtn 
+
+parse_lmpext_iocap_res:
+53ec 204053ee call iocap_lmpext_load 
+53ed 202053f2 branch iocap_lmpext_common 
+
+iocap_lmpext_load:
+53ee d8a04767 arg mem_sp_iocap_remote ,contw 
+53ef 6fe180d1 fetch 3 ,mem_rxbuf + 2 
+53f0 e7e18005 istore 3 ,contw 
+53f1 20600000 rtn 
+
+iocap_lmpext_common:
+53f2 2020f095 branch master_set_mem_master_sp_flag ,true 
+53f3 20600000 rtn 
+
+parse_lmpext_accepted:
+53f4 6fe080d2 fetch 1 ,mem_rxbuf + 3 
+53f5 79207e07 set1 7 ,pdata 
+53f6 67e0839d store 1 ,mem_lmi_accepted_opcode 
+53f7 c045d3fe beq lmp_packet_type_table_req ,parse_lmpext_accepted_ptt 
+53f8 20600000 rtn 
+
+parse_lmpext_not_accepted:
+53f9 6fe080d2 fetch 1 ,mem_rxbuf + 3 
+53fa 79207e07 set1 7 ,pdata 
+53fb 67e0839d store 1 ,mem_lmi_accepted_opcode 
+53fc c045d402 beq lmp_packet_type_table_req ,parse_lmpext_not_accepted_ptt 
+53fd 20600000 rtn 
+
+parse_lmpext_accepted_ptt:
+53fe 6fe0c162 fetch 1 ,mem_ptt 
+53ff 6848804d fetcht 1 ,mem_state_map 
+5400 7d3a0405 nsetflag blank ,smap_edr ,temp 
+5401 6048804d storet 1 ,mem_state_map 
+
+parse_lmpext_not_accepted_ptt:
+5402 6fe08031 fetch 1 ,mem_state 
+5403 c4028000 rtnbit0 state_init_seq 
+5404 793ffe05 set0 state_init_seq ,pdata 
+5405 67e08031 store 1 ,mem_state 
+5406 70007d31 jam lmp_setup_complete ,mem_lmo_opcode2 
+5407 20600000 rtn 
+
+parse_lmpext_pause_encrypt:
+5408 2434d40b nbranch parse_lmpext_pause_encrypt_slave ,master 
+5409 70007d12 jam lmp_stop_encryption_req ,mem_lmo_opcode2 
+540a 202059cb branch tid_reply 
+
+parse_lmpext_pause_encrypt_slave:
+540b 70007d97 jam lmp_pause_encryption_req ,mem_lmo_opcode2 
+540c 20600000 rtn 
+
+parse_lmpext_resume_encrypt:
+540d 204059cb call tid_reply 
+540e 202056aa branch lmp_start_encryption 
+
+parse_lmpext_features_req:
+540f efe08006 ifetch 1 ,contr 
+5410 67e083a1 store 1 ,mem_ext_features_page 
+5411 70007d84 jam lmp_ext_features_res ,mem_lmo_opcode2 
+5412 20600000 rtn 
+
+parse_lmpext_features_res:
+5413 684880d3 fetcht 1 ,mem_rxbuf + 4 
+5414 18410401 and temp ,0x1 ,temp 
+5415 604883a4 storet 1 ,mem_remote_sppcap 
+5416 6fe0c1de fetch 1 ,mem_hci_cmd 
+5417 c0a8d419 bne hci_cmd_wait_remote_ext_feature ,parse_lmpext_features_res_not_hci 
+5418 7041de00 jam 0 ,mem_hci_cmd 
+
+parse_lmpext_features_res_not_hci:
+5419 6fe08056 fetch 1 ,mem_conn_sm 
+541a c18a8000 rtnne conn_sm_wait_features_ext 
+541b 70005604 jam conn_sm_send_conn_req ,mem_conn_sm 
+541c 202059fb branch process_conn_sm 
+
+parse_lmp_accepted:
+541d 470d4023 bpatchx patch23_2 ,mem_patch23 
+541e 6fe080d0 fetch 1 ,mem_rxbuf + 1 
+541f 67e0839d store 1 ,mem_lmi_accepted_opcode 
+5420 c019d444 beq lmp_host_connection_req ,parse_lmp_accepted_hostconn 
+5421 c0045453 beq lmp_in_rand ,parse_lmp_accepted_inrand 
+5422 c007d45a beq lmp_encryption_mode_req ,parse_lmp_accepted_enc_mode 
+5423 c0085460 beq lmp_encryption_key_size_req ,parse_lmp_accepted_enc_keysize 
+5424 c008d461 beq lmp_start_encryption_req ,parse_lmp_accepted_start_enc 
+5425 c0095469 beq lmp_stop_encryption_req ,parse_lmp_accepted_stop_enc 
+5426 c00c5482 beq lmp_unsniff_req ,parse_lmp_accepted_unsniff_req 
+5427 c00bd485 beq lmp_sniff_req ,parse_lmp_accepted_sniff_req 
+5428 c009d43b beq lmp_switch_req ,parse_lmp_accepted_switch 
+5429 c01ed5ae beq lmp_encapsulated_header ,parse_lmp_accepted_encapsulated_header 
+542a c01f560f beq lmp_encapsulated_payload ,parse_lmp_accepted_encapsulated_payload 
+542b c02055b0 beq lmp_simple_pairing_number ,parse_lmp_accepted_simple_pairing_number 
+542c c020d5cd beq lmp_dhkey_check ,parse_lmp_accepted_dhkey_check 
+542d 20600000 rtn 
+
+parse_lmp_not_accepted:
+542e 470dc023 bpatchx patch23_3 ,mem_patch23 
+542f 6fe080d0 fetch 1 ,mem_rxbuf + 1 
+5430 67e0839d store 1 ,mem_lmi_accepted_opcode 
+5431 c000d479 beq lmp_name_req ,parse_lmp_not_accepted_name_req 
+5432 c019d44e beq lmp_host_connection_req ,parse_lmp_not_accepted_hostconn 
+5433 c005d46a beq lmp_au_rand ,parse_lmp_not_accepted_aurand 
+5434 c0045470 beq lmp_in_rand ,parse_lmp_not_accepted_inrand 
+5435 c009d43e beq lmp_switch_req ,parse_lmp_not_accepted_switch 
+5436 c020547a beq lmp_simple_pairing_number ,parse_lmp_not_accepted_simple_pairing_number 
+5437 c020d47d beq lmp_dhkey_check ,parse_lmp_not_accepted_dhkey_check 
+5438 c00c5480 beq lmp_unsniff_req ,parse_lmp_not_accepted_unsniff_req 
+5439 c00bd491 beq lmp_sniff_req ,parse_lmp_not_acdcept_sniff_req 
+543a 20600000 rtn 
+
+parse_lmp_accepted_switch:
+543b 70095b20 jam bt_evt_switch_accept ,mem_fifo_temp 
+543c 2040789f call ui_ipc_send_event 
+543d 202009de branch role_switch_prepare0 
+
+parse_lmp_not_accepted_switch:
+543e 70095b19 jam bt_evt_switch_not_accept ,mem_fifo_temp 
+543f 2040789f call ui_ipc_send_event 
+5440 70464202 jam switch_flag_not_accept ,mem_switch_flag 
+5441 58000050 setarg timer_switch_waite 
+5442 d8e00006 arg switch_wait_timer ,queue 
+5443 20207d74 branch timer_init 
+
+parse_lmp_accepted_hostconn:
+5444 6fe083a5 fetch 1 ,mem_lmp_conn_state 
+5445 79207e00 set1 received_conn_req ,pdata 
+5446 67e083a5 store 1 ,mem_lmp_conn_state 
+5447 70095b01 jam bt_evt_bb_connected ,mem_fifo_temp 
+5448 2040789f call ui_ipc_send_event 
+5449 70007d8b jam lmp_packet_type_table_req ,mem_lmo_opcode2 
+
+parse_lmp_accepted_hostconn_ctn:
+544a 6fe08056 fetch 1 ,mem_conn_sm 
+544b c082d36c bne conn_sm_wait_conn_accept ,parse_rx_done 
+544c 70005606 jam conn_sm_auth_pair ,mem_conn_sm 
+544d 20600000 rtn 
+
+parse_lmp_not_accepted_hostconn:
+544e 70039e0b jam acl_connection_already_exists ,mem_disconn_reason_send 
+544f 70007d07 jam lmp_detach ,mem_lmo_opcode2 
+5450 70005600 jam conn_sm_standby ,mem_conn_sm 
+5451 2020d36c branch parse_rx_done ,true 
+5452 20600000 rtn 
+
+parse_lmp_accepted_inrand:
+5453 6fe0c1cd fetch 1 ,mem_link_key_exists 
+5454 247a0000 nrtn blank 
+5455 20400c5d call clear_linkkey 
+5456 204056a8 call lmp_generate_key 
+5457 20748000 rtn master 
+5458 79200021 set1 mark_slave_in_rand_accepted ,mark 
+5459 20600000 rtn 
+
+parse_lmp_accepted_enc_mode:
+545a 24748000 nrtn master 
+545b 70007d10 jam lmp_encryption_key_size_req ,mem_lmo_opcode2 
+545c 6fe0804d fetch 1 ,mem_state_map 
+545d c4010000 rtnbit0 smap_encryption 
+545e 70007d12 jam lmp_stop_encryption_req ,mem_lmo_opcode2 
+545f 20600000 rtn 
+
+parse_lmp_accepted_enc_keysize:
+5460 202056aa branch lmp_start_encryption 
+
+parse_lmp_accepted_start_enc:
+5461 20405706 call send_create_conn_start_l2cap_timer_sm 
+5462 6fe08031 fetch 1 ,mem_state 
+5463 c3820000 rtnbit1 state_conn_comp 
+5464 70007d31 jam lmp_setup_complete ,mem_lmo_opcode2 
+5465 6fe08056 fetch 1 ,mem_conn_sm 
+5466 c1850000 rtnne conn_sm_encrypt_wait 
+5467 7000560b jam conn_sm_encrypt_wait_clear ,mem_conn_sm 
+5468 20600000 rtn 
+
+parse_lmp_accepted_stop_enc:
+5469 20600000 rtn 
+
+parse_lmp_not_accepted_aurand:
+
+parse_lmp_not_accepted_aurand_send_detach:
+546a 6fe0c09a fetch 1 ,mem_device_option 
+546b 1fe67c08 sub pdata ,dvc_op_mouse ,null 
+546c 2042be46 call mouse_delay_enter_hibernata ,zero 
+546d 70007d07 jam lmp_detach ,mem_lmo_opcode2 
+546e 70039e13 jam other_end_terminated ,mem_disconn_reason_send 
+546f 20600000 rtn 
+
+parse_lmp_not_accepted_inrand:
+5470 6fe080d1 fetch 1 ,mem_rxbuf + 2 
+5471 c0035476 beq key_missing ,parse_lmp_inrand_key_missing 
+5472 c18c0000 rtnne pairing_not_allowed 
+5473 70039e18 jam pairing_not_allowed ,mem_disconn_reason_send 
+5474 70007d07 jam lmp_detach ,mem_lmo_opcode2 
+5475 20600000 rtn 
+
+parse_lmp_inrand_key_missing:
+5476 70039e06 jam key_missing ,mem_disconn_reason_send 
+5477 70007d07 jam lmp_detach ,mem_lmo_opcode2 
+5478 20600000 rtn 
+
+parse_lmp_not_accepted_name_req:
+5479 20600000 rtn 
+
+parse_lmp_not_accepted_simple_pairing_number:
+547a 70087000 jam sp_stat_null ,mem_sp_state 
+547b 70007d07 jam lmp_detach ,mem_lmo_opcode2 
+547c 2020536c branch parse_rx_done 
+
+parse_lmp_not_accepted_dhkey_check:
+547d 70087000 jam sp_stat_null ,mem_sp_state 
+547e 70007d07 jam lmp_detach ,mem_lmo_opcode2 
+547f 2020536c branch parse_rx_done 
+
+parse_lmp_not_accepted_unsniff_req:
+5480 70095b24 jam bt_evt_unsniff_not_accept ,mem_fifo_temp 
+5481 2020789f branch ui_ipc_send_event 
+
+parse_lmp_accepted_unsniff_req:
+5482 70095b23 jam bt_evt_unsniff_accept ,mem_fifo_temp 
+5483 2040789f call ui_ipc_send_event 
+5484 20200f11 branch sniff_exit 
+
+parse_lmp_accepted_sniff_req:
+5485 70095b22 jam bt_evt_sniff_accept ,mem_fifo_temp 
+5486 2040789f call ui_ipc_send_event 
+5487 58000000 setarg 0 
+5488 67e10076 store 2 ,mem_dsniff 
+5489 6fe14455 fetch 2 ,mem_sniff_param_interval 
+548a 1fe3fe00 lshift pdata ,pdata 
+548b 67e10033 store 2 ,mem_tsniff 
+548c 6fe0c457 fetch 1 ,mem_sniff_param_attempt 
+548d 67e08074 store 1 ,mem_sniff_attempt 
+548e 6fe0c459 fetch 1 ,mem_sniff_param_timeout 
+548f 67e08075 store 1 ,mem_sniff_timeout 
+5490 20200eee branch sniff_init 
+
+parse_lmp_not_acdcept_sniff_req:
+5491 70095b21 jam bt_evt_sniff_not_accept ,mem_fifo_temp 
+5492 2020789f branch ui_ipc_send_event 
+
+parse_lmp_crypt_key:
+5493 684880d0 fetcht 1 ,mem_rxbuf + 1 
+5494 18467c06 sub temp ,6 ,null 
+5495 20215649 branch lmp_reject_pdu_not_allowed ,positive 
+5496 60488055 storet 1 ,mem_key_size 
+5497 202054a8 branch accept_lmp_msg 
+
+parse_lmp_setup_complete:
+5498 6fe083a5 fetch 1 ,mem_lmp_conn_state 
+5499 79207e02 set1 received_setup_complete ,pdata 
+549a 67e083a5 store 1 ,mem_lmp_conn_state 
+549b c3818000 rtnbit1 sent_setup_complete 
+549c 70007d31 jam lmp_setup_complete ,mem_lmo_opcode2 
+549d 2020536c branch parse_rx_done 
+
+parse_lmp_max_slot:
+549e 20600000 rtn 
+
+parse_lmp_max_slot_req:
+549f 6fe0c0d8 fetch 1 ,mem_max_slot 
+54a0 684880d0 fetcht 1 ,mem_rxbuf + 1 
+54a1 98467c00 isub temp ,null 
+54a2 202154a8 branch accept_lmp_msg ,positive 
+54a3 70007d04 jam lmp_not_accepted ,mem_lmo_opcode2 
+54a4 70007f1f jam unspecified_error ,mem_lmo_reason2 
+54a5 70007e2e jam lmp_max_slot_req ,mem_lmi_opcode2 
+54a6 20600000 rtn 
+
+parse_lmp_detach:
+54a7 2020581d branch prepare_disconnect 
+
+accept_lmp_msg:
+54a8 70007d03 jam lmp_accepted ,mem_lmo_opcode2 
+54a9 20600000 rtn 
+
+parse_lmp_incr_power:
+54aa 70007d21 jam lmp_max_power ,mem_lmo_opcode2 
+54ab 20600000 rtn 
+
+parse_lmp_decr_power:
+54ac 70007d22 jam lmp_min_power ,mem_lmo_opcode2 
+54ad 20600000 rtn 
+
+parse_lmp_version_res:
+54ae 6fe08056 fetch 1 ,mem_conn_sm 
+54af c1098000 rtneq conn_sm_wait_version 
+54b0 70005602 jam conn_sm_send_features ,mem_conn_sm 
+54b1 20600000 rtn 
+
+parse_lmp_auto_rate:
+54b2 20600000 rtn 
+
+parse_lmp_in_rand:
+54b3 6fe0c6b5 fetch 1 ,mem_sc_only_mode 
+54b4 243a54bc nbranch parse_lmp_in_rand_not_accept ,blank 
+54b5 204056a5 call lmp_copy_rand 
+54b6 7003a801 jam pincode_state_wait_pincode ,mem_pincode_state 
+54b7 70095b0a jam bt_evt_pincode_req ,mem_fifo_temp 
+54b8 2040789f call ui_ipc_send_event 
+54b9 204059d3 call tid_check 
+54ba 2420d6ad nbranch lmp_accept_inrand ,true 
+54bb 2434d4c0 nbranch parse_lmp_inrand_res ,master 
+
+parse_lmp_in_rand_not_accept:
+54bc 70007d04 jam lmp_not_accepted ,mem_lmo_opcode2 
+54bd 70007e08 jam lmp_in_rand ,mem_lmi_opcode2 
+54be 70007f23 jam transaction_collision ,mem_lmo_reason2 
+54bf 20600000 rtn 
+
+parse_lmp_inrand_res:
+54c0 6fe0804c fetch 1 ,mem_op 
+54c1 79207e02 set1 op_inrand_req ,pdata 
+54c2 67e0804c store 1 ,mem_op 
+54c3 20600000 rtn 
+
+pop_tid_follow:
+54c4 6848804d fetcht 1 ,mem_state_map 
+54c5 7d3a0401 nsetflag blank ,smap_lmptid ,temp 
+54c6 6048804d storet 1 ,mem_state_map 
+54c7 20600000 rtn 
+
+push_tid_follow:
+54c8 6fe08080 fetch 1 ,mem_lmo_tid2 
+54c9 1fe37e00 rshift pdata ,pdata 
+54ca 1fe17e01 and_into 1 ,pdata 
+54cb 20600000 rtn 
+
+parse_lmp_au_rand_moudle:
+54cc 6fe0c48d fetch 1 ,mem_nv_data_number 
+54cd 207a0000 rtn blank 
+54ce 6fe08877 fetch 1 ,mem_pairing_auth 
+54cf 205a6056 call load_device_list ,blank 
+54d0 20600000 rtn 
+
+parse_lmp_au_rand:
+54d1 204054cc call parse_lmp_au_rand_moudle 
+54d2 204054c8 call push_tid_follow 
+54d3 67e083a9 store 1 ,mem_sres_tid 
+54d4 6fe0c645 fetch 1 ,mem_encapsulated_minor_type 
+54d5 c00154de beq encapsulated_minor_type_p256 ,parse_lmp_au_rand_256 
+54d6 204056a5 call lmp_copy_rand 
+54d7 70007d0c jam lmp_sres ,mem_lmo_opcode2 
+
+parse_lmp_au_rand_common:
+54d8 6fe0c1cd fetch 1 ,mem_link_key_exists 
+54d9 247a0000 nrtn blank 
+54da 6fe08031 fetch 1 ,mem_state 
+54db c3830000 rtnbit1 state_combkey 
+54dc 70007f06 jam key_missing ,mem_lmo_reason2 
+54dd 202053ba branch reject_lmp_packet 
+
+parse_lmp_au_rand_256:
+54de 70007d0b jam lmp_au_rand ,mem_lmo_opcode2 
+54df d8a008f0 arg mem_sp_random_remote ,contw 
+54e0 d8c000d0 arg mem_rxbuf + 1 ,contr 
+54e1 20407d1a call memcpy16 
+54e2 202054d8 branch parse_lmp_au_rand_common 
+
+parse_lmp_sres:
+54e3 6fe0c645 fetch 1 ,mem_encapsulated_minor_type 
+54e4 c00154f3 beq encapsulated_minor_type_p256 ,parse_lmp_sres_256 
+54e5 da200041 arg mem_plap ,rega 
+54e6 20406b69 call function_e1 
+54e7 684a0454 fetcht 4 ,mem_input_store 
+54e8 6fe200d0 fetch 4 ,mem_rxbuf + 1 
+54e9 98467c00 isub temp ,null 
+54ea 2022d4ee branch authentication_ok ,zero 
+
+authentication_fail:
+54eb 70007d07 jam lmp_detach ,mem_lmo_opcode2 
+54ec 70039e05 jam authentication_failure_error ,mem_disconn_reason_send 
+54ed 20600000 rtn 
+
+authentication_ok:
+54ee 20406c67 call copy_aco 
+54ef 204054fc call authentication_ok_common 
+54f0 6fe0c763 fetch 1 ,mem_ssp_enable 
+54f1 203a55ce branch pairing_success ,blank 
+54f2 20600000 rtn 
+
+parse_lmp_sres_256:
+54f3 6fe200d0 fetch 4 ,mem_rxbuf + 1 
+54f4 684a091c fetcht 4 ,mema 
+54f5 98467c00 isub temp ,null 
+54f6 2022d4f8 branch authentication_ok_256 ,zero 
+54f7 202054eb branch authentication_fail 
+
+authentication_ok_256:
+54f8 204054fc call authentication_ok_common 
+54f9 6fe0c6b7 fetch 1 ,mem_secure_connections_enable 
+54fa c280d5ce bbit1 secure_connections_br_bit ,pairing_success 
+54fb 20600000 rtn 
+
+authentication_ok_common:
+54fc 204009b4 call linkkey_ready 
+54fd 6fe0804c fetch 1 ,mem_op 
+54fe 2feffe01 isolate1 op_auth_req ,pdata 
+54ff 793ffe01 set0 op_auth_req ,pdata 
+5500 67e0804c store 1 ,mem_op 
+5501 6fe08056 fetch 1 ,mem_conn_sm 
+5502 c00cd505 beq conn_sm_auth_wait ,authentication_ok_conn_sm 
+5503 c00c5505 beq conn_sm_pairing_wait ,authentication_ok_conn_sm 
+5504 20600000 rtn 
+
+authentication_ok_conn_sm:
+5505 6fe08877 fetch 1 ,mem_pairing_auth 
+5506 c1800000 rtnne defalt_pairing_auth 
+5507 6fe0804d fetch 1 ,mem_state_map 
+5508 c3810000 rtnbit1 smap_encryption 
+5509 20205a92 branch host_create_conn_encrypt 
+
+parse_lmp_comb_key:
+550a da2000d0 arg mem_rxbuf + 1 ,rega 
+550b da400444 arg mem_kinit ,regb 
+550c d8a00424 arg mem_random_number ,contw 
+550d 20406c33 call xor16 
+550e da200041 arg mem_plap ,rega 
+550f 204059f1 call generate_linkkey 
+5510 70007d0b jam lmp_au_rand ,mem_lmo_opcode2 
+5511 6fe08031 fetch 1 ,mem_state 
+5512 c30356a8 bbit0 state_combkey ,lmp_generate_key 
+5513 20600000 rtn 
+
+parse_lmp_name_res:
+5514 6fe100af fetch 2 ,mem_len 
+5515 1fe0f3fd add pdata ,-3 ,loopcnt 
+5516 684880d0 fetcht 1 ,mem_rxbuf + 1 
+5517 58000a01 setarg mem_tmp_buffer 
+5518 98408a00 iadd temp ,contw 
+5519 d8c000d2 arg mem_rxbuf + 3 ,contr 
+551a 20407d6d call memcpy 
+551b 68488054 fetcht 1 ,mem_name_offset 
+551c 6fe080d1 fetch 1 ,mem_rxbuf + 2 
+551d 98467e00 isub temp ,pdata 
+551e 1fe67c0e sub pdata ,14 ,null 
+551f 20215524 branch parse_lmp_name_res_end ,positive 
+5520 1840fe0e add temp ,14 ,pdata 
+5521 67e08054 store 1 ,mem_name_offset 
+5522 70007d01 jam lmp_name_req ,mem_lmo_opcode2 
+5523 20600000 rtn 
+
+parse_lmp_name_res_end:
+5524 6fe0804d fetch 1 ,mem_state_map 
+5525 79207e03 set1 smap_name_res ,pdata 
+5526 67e0804d store 1 ,mem_state_map 
+5527 c28256b2 bbit1 smap_name_req ,lmp_disconnect 
+5528 20600000 rtn 
+
+parse_lmp_name_req:
+5529 6fe080d0 fetch 1 ,mem_rxbuf + 1 
+552a 67e0807e store 1 ,mem_lmi_opcode2 
+552b 70007d02 jam lmp_name_res ,mem_lmo_opcode2 
+552c 20600000 rtn 
+
+parse_lmp_conn_req:
+552d 202054a8 branch accept_lmp_msg 
+
+parse_lmp_timing_accuracy_req:
+552e 70007d30 jam lmp_timing_accuracy_res ,mem_lmo_opcode2 
+552f 20600000 rtn 
+
+parse_lmp_features_req:
+5530 70007d28 jam lmp_features_res ,mem_lmo_opcode2 
+5531 20600000 rtn 
+
+parse_lmp_version_req:
+5532 70007d26 jam lmp_version_res ,mem_lmo_opcode2 
+5533 20600000 rtn 
+
+parse_lmp_supervision_timeout:
+5534 20600000 rtn 
+
+parse_lmp_sniff_subrating_req:
+5535 6fe10033 fetch 2 ,mem_tsniff 
+5536 98000400 iforce temp 
+5537 6fe080d1 fetch 1 ,mem_rxbuf + 2 
+5538 67e08093 store 1 ,mem_subsniff_rate 
+5539 984f8400 imul32 temp ,temp 
+553a 6fe100d2 fetch 2 ,mem_rxbuf + 3 
+553b 1fe3fe00 lshift pdata ,pdata 
+553c 67e10094 store 2 ,mem_subsniff_tcmax 
+553d 6fe200d4 fetch 4 ,mem_rxbuf + 5 
+553e 1fe3fe00 lshift pdata ,pdata 
+553f 67e2008f store 4 ,mem_subsniff_instant 
+5540 18427e00 deposit temp 
+5541 67e10096 store 2 ,mem_subsniff_tsniff 
+5542 20600000 rtn 
+
+parse_lmpext_packet_type_table_req:
+5543 6848c162 fetcht 1 ,mem_ptt 
+5544 6fe080d1 fetch 1 ,mem_rxbuf + 2 
+5545 9842fc00 ixor temp ,null 
+5546 2422d3e1 nbranch reject_unknown_ext_packet ,zero 
+5547 2feffe00 isolate1 0 ,pdata 
+5548 6fe0804d fetch 1 ,mem_state_map 
+5549 7920fe05 setflag true ,smap_edr ,pdata 
+554a 67e0804d store 1 ,mem_state_map 
+554b 70007d81 jam lmp_ext_accepted ,mem_lmo_opcode2 
+554c 70007e8b jam lmp_packet_type_table_req ,mem_lmi_opcode2 
+554d 20600000 rtn 
+
+parse_lmp_sniff_subrating_res:
+
+parse_lmp_preferred_rate:
+
+parse_lmp_max_power:
+
+parse_lmp_min_power:
+554e 20600000 rtn 
+
+parse_lmp_page_mode_req:
+554f 202054a8 branch accept_lmp_msg 
+
+parse_lmp_page_scan_mode_req:
+5550 202054a8 branch accept_lmp_msg 
+
+parse_lmp_slot_offset:
+5551 6fe100d0 fetch 2 ,mem_rxbuf + 1 
+5552 67e100c1 store 2 ,mem_slot_offset 
+5553 20600000 rtn 
+
+parse_lmp_sniff_req_check_sniff_para:
+5554 6fe100d3 fetch 2 ,mem_rxbuf + 4 
+5555 6848c17a fetcht 1 ,mem_lpm_mult 
+5556 984ffe00 imul32 temp ,pdata 
+5557 d8400640 arg 0x640 ,temp 
+5558 98467c00 isub temp ,null 
+5559 20600000 rtn 
+
+parse_lmp_sniff_req:
+555a 6fe100d5 fetch 2 ,mem_rxbuf + 6 
+555b 203a5649 branch lmp_reject_pdu_not_allowed ,blank 
+555c 20405554 call parse_lmp_sniff_req_check_sniff_para 
+555d 20215649 branch lmp_reject_pdu_not_allowed ,positive 
+555e 6fe0c09a fetch 1 ,mem_device_option 
+555f 1fe67c0a sub pdata ,dvc_op_module ,null 
+5560 2042bcd3 call module_set_lpm_mult_2 ,zero 
+5561 6fe08031 fetch 1 ,mem_state 
+5562 c280d649 bbit1 state_insniff ,lmp_reject_pdu_not_allowed 
+5563 6fe100d1 fetch 2 ,mem_rxbuf + 2 
+5564 1fe3fe00 lshift pdata ,pdata 
+5565 67e10076 store 2 ,mem_dsniff 
+5566 6fe100d3 fetch 2 ,mem_rxbuf + 4 
+5567 1fe3fe00 lshift pdata ,pdata 
+5568 67e10033 store 2 ,mem_tsniff 
+5569 6fe100d5 fetch 2 ,mem_rxbuf + 6 
+556a 67e08074 store 1 ,mem_sniff_attempt 
+556b 98000400 iforce temp 
+556c 6fe100d7 fetch 2 ,mem_rxbuf + 8 
+556d 67e08075 store 1 ,mem_sniff_timeout 
+556e 98467c00 isub temp ,null 
+556f 24215571 nbranch set_big_value_to_attempt ,positive 
+5570 67e08074 store 1 ,mem_sniff_attempt 
+
+set_big_value_to_attempt:
+5571 70007d03 jam lmp_accepted ,mem_lmo_opcode2 
+5572 70007e17 jam lmp_sniff_req ,mem_lmi_opcode2 
+5573 20600000 rtn 
+
+parse_lmp_start_encryption_req:
+5574 6fe0c645 fetch 1 ,mem_encapsulated_minor_type 
+5575 c001557a beq encapsulated_minor_type_p256 ,parse_lmp_start_encryption_req_256 
+5576 204054a8 call accept_lmp_msg 
+5577 204056a5 call lmp_copy_rand 
+5578 20406b6c call function_e3 
+5579 20200ede branch start_encryption 
+
+parse_lmp_start_encryption_req_256:
+557a 204054a8 call accept_lmp_msg 
+557b 20400ede call start_encryption 
+
+calc_kc:
+557c 204074f9 call function_h3 
+557d d8a00063 arg mem_kc ,contw 
+557e d8c00910 arg mem_sp_calc_result_high ,contr 
+557f df200010 arg 0x10 ,loopcnt 
+5580 20207e74 branch reverse_byte 
+
+parse_lmp_stop_encryption_req:
+5581 204054a8 call accept_lmp_msg 
+5582 20200ee8 branch stop_encryption 
+
+parse_lmp_switch_req:
+5583 6fe200d0 fetch 4 ,mem_rxbuf + 1 
+5584 1fe3fe00 lshift pdata ,pdata 
+5585 2034d58d branch parse_lmp_switch_accept ,master 
+5586 6848c1cd fetcht 1 ,mem_link_key_exists 
+5587 243a558a nbranch parse_lmp_switch_req_clear_mark ,blank 
+
+parse_lmp_switch_req_not_accept:
+5588 70007e13 jam lmp_switch_req ,mem_lmi_opcode2 
+5589 20205649 branch lmp_reject_pdu_not_allowed 
+
+parse_lmp_switch_req_clear_mark:
+558a 70007d34 jam lmp_slot_offset ,mem_lmo_opcode2 
+558b 70005600 jam 0 ,mem_conn_sm 
+558c 202009db branch role_switch_prepare 
+
+parse_lmp_switch_accept:
+558d 204009db call role_switch_prepare 
+558e 79200022 set1 mark_reconn_recieve_switch ,mark 
+558f 6fe080bd fetch 1 ,mem_connection_options 
+5590 793ffe02 set0 connection_switch ,pdata 
+5591 67e080bd store 1 ,mem_connection_options 
+5592 202054a8 branch accept_lmp_msg 
+
+parse_lmp_temp_rand:
+
+parse_lmp_temp_key:
+
+parse_lmp_timing_accuracy_res:
+
+parse_lmp_unit_key:
+
+parse_lmp_use_semi_permanend_key:
+5593 20600000 rtn 
+
+parse_lmp_unsniff_req:
+5594 70007d03 jam lmp_accepted ,mem_lmo_opcode2 
+5595 70007e18 jam lmp_unsniff_req ,mem_lmi_opcode2 
+5596 70095b2e jam bt_evt_remote_unsniff ,mem_fifo_temp 
+5597 2040789f call ui_ipc_send_event 
+5598 20200f11 branch sniff_exit 
+
+parse_lmp_encapsulated_header:
+5599 70087900 jam 0 ,mem_sp_remote_key_recv_count 
+559a 6fe080d0 fetch 1 ,mem_rxbuf + 1 
+559b 67e0c644 store 1 ,mem_encapsulated_major_type 
+559c c080d649 bne encapsulated_major_type ,lmp_reject_pdu_not_allowed 
+559d 684880d1 fetcht 1 ,mem_rxbuf + 2 
+559e 6048c645 storet 1 ,mem_encapsulated_minor_type 
+559f 6fe0c6b5 fetch 1 ,mem_sc_only_mode 
+55a0 203a55a3 branch parse_lmp_encapsulated_header2 ,blank 
+55a1 18467c02 sub temp ,encapsulated_minor_type_p256 ,null 
+55a2 2422d4eb nbranch authentication_fail ,zero 
+
+parse_lmp_encapsulated_header2:
+55a3 6fe080d2 fetch 1 ,mem_rxbuf + 3 
+55a4 c02055a7 beq encapsulated_len_p256 ,parse_lmp_encapsulated_header3 
+55a5 c01855a7 beq encapsulated_len_p192 ,parse_lmp_encapsulated_header3 
+55a6 20205649 branch lmp_reject_pdu_not_allowed 
+
+parse_lmp_encapsulated_header3:
+55a7 67e0c646 store 1 ,mem_encapsulated_len 
+55a8 204059dc call check_localsm 
+55a9 2020d5ab branch parse_lmp_encapsulated_header_master ,true 
+55aa 70087001 jam sp_stat_key_recv ,mem_sp_state 
+
+parse_lmp_encapsulated_header_master:
+55ab 70007d03 jam lmp_accepted ,mem_lmo_opcode2 
+55ac 70007e3d jam lmp_encapsulated_header ,mem_lmi_opcode2 
+55ad 2020536c branch parse_rx_done 
+
+parse_lmp_accepted_encapsulated_header:
+55ae 70007d3e jam lmp_encapsulated_payload ,mem_lmo_opcode2 
+55af 20600000 rtn 
+
+parse_lmp_accepted_simple_pairing_number:
+55b0 6fe0c76b fetch 1 ,mem_ssp_mode_flag 
+55b1 c000d5b7 beq ssp_mode_ssp_pin_flag ,parse_lmp_accepted_simple_pairing_number_ssp_pin 
+55b2 c00155bb beq ssp_mode_passkey_entry_flag ,parse_lmp_accepted_simple_pairing_number_passkey 
+
+parse_lmp_accepted_simple_pairing_number_common:
+55b3 204059dc call check_localsm 
+55b4 20608000 rtn true 
+55b5 70087008 jam sp_stat_confirm_recv ,mem_sp_state 
+55b6 20600000 rtn 
+
+parse_lmp_accepted_simple_pairing_number_ssp_pin:
+55b7 2040731f call g_noninit_number_confirm 
+55b8 70095b35 jam bt_evt_bt_gkey_generate ,mem_fifo_temp 
+55b9 2040789f call ui_ipc_send_event 
+55ba 202055b3 branch parse_lmp_accepted_simple_pairing_number_common 
+
+parse_lmp_accepted_simple_pairing_number_passkey:
+55bb 204059dc call check_localsm 
+55bc 20608000 rtn true 
+55bd 6fe0c76c fetch 1 ,mem_authentication_passkey_times 
+55be c009d5cb beq 19 ,authentication_passkey_end 
+55bf 1fe0fe01 increase 1 ,pdata 
+55c0 67e0c76c store 1 ,mem_authentication_passkey_times 
+
+authentication_passkey:
+55c1 70087201 jam sp_flag_commit ,mem_sp_flag 
+55c2 70087004 jam sp_stat_commit_calc ,mem_sp_state 
+55c3 6fe0c76c fetch 1 ,mem_authentication_passkey_times 
+55c4 1fe20e00 copy pdata ,queue 
+55c5 6fe34793 fetch 6 ,mem_pin 
+55c6 afefffff qisolate1 pdata 
+55c7 58000080 setarg 0x80 
+55c8 7920fe00 setflag true ,0 ,pdata 
+55c9 67e0c76d store 1 ,mem_passkey_1bit 
+55ca 20600000 rtn 
+
+authentication_passkey_end:
+55cb 70087008 jam sp_stat_confirm_recv ,mem_sp_state 
+55cc 20600000 rtn 
+
+parse_lmp_accepted_dhkey_check:
+55cd 204055d3 call parse_lmp_accepted_dhkey_check_common 
+
+pairing_success:
+55ce 6fe0c76e fetch 1 ,mem_flag_pairing_state 
+55cf 207a0000 rtn blank 
+55d0 70476e00 jam flag_pairing_state_not_pairing ,mem_flag_pairing_state 
+55d1 70095b38 jam bt_evt_bt_pairing_success ,mem_fifo_temp 
+55d2 2020789f branch ui_ipc_send_event 
+
+parse_lmp_accepted_dhkey_check_common:
+55d3 204059dc call check_localsm 
+55d4 2440f329 ncall g_noninit_192 ,true 
+55d5 2040f339 call g_init_192 ,true 
+55d6 204059dc call check_localsm 
+55d7 20608000 rtn true 
+55d8 7008700c jam sp_stat_link_key_calc ,mem_sp_state 
+55d9 70087201 jam sp_flag_commit ,mem_sp_flag 
+55da 20600000 rtn 
+
+parse_simple_pairing_confirm:
+55db d8a00930 arg mem_sp_confirm_remote ,contw 
+55dc d8c000d0 arg mem_rxbuf + 1 ,contr 
+55dd 20407d1a call memcpy16 
+55de 6fe0c76b fetch 1 ,mem_ssp_mode_flag 
+55df c1010000 rtneq ssp_mode_passkey_entry_flag 
+55e0 20207095 branch master_set_mem_master_sp_flag 
+55e1 20600000 rtn 
+
+parse_lmp_encapsulated_payload:
+55e2 6fe0c645 fetch 1 ,mem_encapsulated_minor_type 
+55e3 c000d5f8 beq encapsulated_minor_type_p192 ,parse_lmp_encapsulated_payload_192 
+55e4 c00155e6 beq encapsulated_minor_type_p256 ,parse_lmp_encapsulated_payload_256 
+55e5 20205649 branch lmp_reject_pdu_not_allowed 
+
+parse_lmp_encapsulated_payload_256:
+55e6 6fe08871 fetch 1 ,mem_master_sp_state 
+55e7 c003d5ea beq sp_stat_random_send ,parse_encapsulated_payload_256_master 
+55e8 6fe08870 fetch 1 ,mem_sp_state 
+55e9 c080d649 bne sp_stat_key_recv ,lmp_reject_pdu_not_allowed 
+
+parse_encapsulated_payload_256_master:
+55ea 6fe08879 fetch 1 ,mem_sp_remote_key_recv_count 
+55eb 1fe60a30 sub pdata ,0x30 ,contw 
+55ec 24215649 nbranch lmp_reject_pdu_not_allowed ,positive 
+55ed d8a00880 arg mem_le_pubkey_remote_x_256 ,contw 
+55ee 98a08a00 iadd contw ,contw 
+55ef 6fe400d0 fetch 8 ,mem_rxbuf + 1 
+55f0 e7e40005 istore 8 ,contw 
+55f1 6fe400d8 fetch 8 ,mem_rxbuf + 9 
+55f2 e7e40005 istore 8 ,contw 
+55f3 6fe08879 fetch 1 ,mem_sp_remote_key_recv_count 
+55f4 1fe0fe10 increase 16 ,pdata 
+55f5 67e08879 store 1 ,mem_sp_remote_key_recv_count 
+55f6 c0a054a8 bne encapsulated_len_p256 ,accept_lmp_msg 
+55f7 20205609 branch parse_lmp_encapsulated_payload_completed 
+
+parse_lmp_encapsulated_payload_192:
+55f8 6fe08871 fetch 1 ,mem_master_sp_state 
+55f9 c003d5fc beq sp_stat_random_send ,parse_encapsulated_payload_192_master 
+55fa 6fe08870 fetch 1 ,mem_sp_state 
+55fb c080d649 bne sp_stat_key_recv ,lmp_reject_pdu_not_allowed 
+
+parse_encapsulated_payload_192_master:
+55fc 6fe08879 fetch 1 ,mem_sp_remote_key_recv_count 
+55fd 1fe60a20 sub pdata ,0x20 ,contw 
+55fe 24215649 nbranch lmp_reject_pdu_not_allowed ,positive 
+55ff d8a00888 arg mem_sp_pubkey_remote ,contw 
+5600 98a08a00 iadd contw ,contw 
+5601 6fe400d0 fetch 8 ,mem_rxbuf + 1 
+5602 e7e40005 istore 8 ,contw 
+5603 6fe400d8 fetch 8 ,mem_rxbuf + 9 
+5604 e7e40005 istore 8 ,contw 
+5605 6fe08879 fetch 1 ,mem_sp_remote_key_recv_count 
+5606 1fe0fe10 increase 16 ,pdata 
+5607 67e08879 store 1 ,mem_sp_remote_key_recv_count 
+5608 c09854a8 bne encapsulated_len_p192 ,accept_lmp_msg 
+
+parse_lmp_encapsulated_payload_completed:
+5609 204059dc call check_localsm 
+560a 2020d4a8 branch accept_lmp_msg ,true 
+560b 70087a01 jam sp_key_valid ,mem_sp_remote_key_invalid 
+560c 70087002 jam sp_stat_key_generate ,mem_sp_state 
+560d 70087201 jam sp_flag_commit ,mem_sp_flag 
+560e 202054a8 branch accept_lmp_msg 
+
+parse_lmp_accepted_encapsulated_payload:
+560f 6fe0c645 fetch 1 ,mem_encapsulated_minor_type 
+5610 c000d613 beq encapsulated_minor_type_p192 ,parse_lmp_accepted_encapsulated_payload_192 
+5611 c0015617 beq encapsulated_minor_type_p256 ,parse_lmp_accepted_encapsulated_payload_256 
+5612 20600000 rtn 
+
+parse_lmp_accepted_encapsulated_payload_192:
+5613 6fe08878 fetch 1 ,mem_sp_local_key_send_count 
+5614 c018561b beq encapsulated_len_p192 ,parse_lmp_encapsulated_payload_all_accepted 
+5615 70007d3e jam lmp_encapsulated_payload ,mem_lmo_opcode2 
+5616 20600000 rtn 
+
+parse_lmp_accepted_encapsulated_payload_256:
+5617 6fe08878 fetch 1 ,mem_sp_local_key_send_count 
+5618 c020561b beq encapsulated_len_p256 ,parse_lmp_encapsulated_payload_all_accepted 
+5619 70007d3e jam lmp_encapsulated_payload ,mem_lmo_opcode2 
+561a 20600000 rtn 
+
+parse_lmp_encapsulated_payload_all_accepted:
+561b 204059dc call check_localsm 
+561c 2020d624 branch parse_lmp_encapsulated_payload_all_accepted_master ,true 
+561d 6fe0c76b fetch 1 ,mem_ssp_mode_flag 
+561e c0015622 beq ssp_mode_passkey_entry_flag ,parse_lmp_encapsulated_payload_all_accepted_get_passkey 
+561f 70087201 jam sp_flag_commit ,mem_sp_flag 
+5620 70087004 jam sp_stat_commit_calc ,mem_sp_state 
+5621 2020536c branch parse_rx_done 
+
+parse_lmp_encapsulated_payload_all_accepted_get_passkey:
+5622 70095b36 jam bt_evt_bt_get_passkey ,mem_fifo_temp 
+5623 2020789f branch ui_ipc_send_event 
+
+parse_lmp_encapsulated_payload_all_accepted_master:
+5624 2020536c branch parse_rx_done 
+
+parse_lmp_simple_pairing_number:
+5625 6fe08871 fetch 1 ,mem_master_sp_state 
+5626 c003d629 beq sp_stat_random_send ,parse_lmp_simple_pairing_number_master 
+5627 6fe08870 fetch 1 ,mem_sp_state 
+5628 c0835649 bne sp_stat_random_recv ,lmp_reject_pdu_not_allowed 
+
+parse_lmp_simple_pairing_number_master:
+5629 d8a008f0 arg mem_sp_random_remote ,contw 
+562a 6fe400d0 fetch 8 ,mem_rxbuf + 1 
+562b e7e40005 istore 8 ,contw 
+562c 6fe400d8 fetch 8 ,mem_rxbuf + 9 
+562d e7e40005 istore 8 ,contw 
+562e 204059dc call check_localsm 
+562f 2020d633 branch parse_lmp_simple_pairing_number_master0 ,true 
+5630 70087007 jam sp_stat_random_send ,mem_sp_state 
+5631 70087201 jam sp_flag_commit ,mem_sp_flag 
+5632 202054a8 branch accept_lmp_msg 
+
+parse_lmp_simple_pairing_number_master0:
+5633 70087104 jam sp_stat_commit_calc ,mem_master_sp_state 
+5634 20207095 branch master_set_mem_master_sp_flag 
+5635 20205649 branch lmp_reject_pdu_not_allowed 
+
+parse_dhkey_check:
+5636 6fe08871 fetch 1 ,mem_master_sp_state 
+5637 c005d63a beq sp_stat_confirm_send ,parse_dhkey_check_master 
+5638 6fe08870 fetch 1 ,mem_sp_state 
+5639 c0845649 bne sp_stat_confirm_recv ,lmp_reject_pdu_not_allowed 
+
+parse_dhkey_check_master:
+563a d8a00920 arg mem_sp_check_result ,contw 
+563b d8c000d0 arg mem_rxbuf + 1 ,contr 
+563c 20407d1a call memcpy16 
+563d 204059dc call check_localsm 
+563e 2020d646 branch parse_dhkey_check_master0 ,true 
+563f 6fe0c76b fetch 1 ,mem_ssp_mode_flag 
+5640 c000d64b beq ssp_mode_ssp_pin_flag ,number_comparison_mode 
+
+number_comparison_successed:
+5641 70476a00 jam 0 ,mem_flag_mode_ssp_pin 
+5642 70087009 jam sp_stat_confirm_check ,mem_sp_state 
+5643 70087201 jam sp_flag_commit ,mem_sp_flag 
+5644 70007e41 jam lmp_dhkey_check ,mem_lmi_opcode2 
+5645 2020536c branch parse_rx_done 
+
+parse_dhkey_check_master0:
+5646 70087109 jam sp_stat_confirm_check ,mem_master_sp_state 
+5647 70087301 jam sp_flag_commit ,mem_master_sp_flag 
+5648 2020536c branch parse_rx_done 
+
+lmp_reject_pdu_not_allowed:
+5649 70007f24 jam pdu_not_allowed ,mem_lmo_reason2 
+564a 202053ba branch reject_lmp_packet 
+
+number_comparison_mode:
+564b 6fe0c76a fetch 1 ,mem_flag_mode_ssp_pin 
+564c c283d650 bbit1 flag_mode_ssp_pin_reviceve_comparison_bit ,comparison_result 
+564d 79207e06 set1 flag_mode_ssp_pin_recieve_dhkey_bit ,pdata 
+564e 67e0c76a store 1 ,mem_flag_mode_ssp_pin 
+564f 20600000 rtn 
+
+comparison_result:
+5650 c2805641 bbit1 flag_mode_ssp_pin_comparison_result_bit ,number_comparison_successed 
+5651 70476a00 jam 0 ,mem_flag_mode_ssp_pin 
+5652 20205649 branch lmp_reject_pdu_not_allowed 
+
+parse_lmp_clkoffset_res:
+5653 2020536c branch parse_rx_done 
+
+parse_lmp_encryption_mode_req:
+5654 6fe080bd fetch 1 ,mem_connection_options 
+5655 793ffe01 set0 connection_encrypt ,pdata 
+5656 67e080bd store 1 ,mem_connection_options 
+5657 204054a8 call accept_lmp_msg 
+5658 24748000 nrtn master 
+5659 6fe080d0 fetch 1 ,mem_rxbuf + 1 
+565a 6848804c fetcht 1 ,mem_op 
+565b 793a0404 setflag blank ,op_stop_enc ,temp 
+565c 7d3a0405 nsetflag blank ,op_start_enc ,temp 
+565d 6048804c storet 1 ,mem_op 
+565e 20600000 rtn 
+
+parse_lmp_features_res:
+565f 684c00d0 fetcht 8 ,mem_rxbuf + 1 
+
+parse_lmp_features_res_not_hci:
+5660 6fe08056 fetch 1 ,mem_conn_sm 
+5661 c1818000 rtnne conn_sm_wait_features_res 
+5662 6fe080bd fetch 1 ,mem_connection_options 
+5663 c3025666 bbit0 connection_feature_ext ,parse_lmp_send_conn 
+5664 70005614 jam conn_sm_send_features_ext ,mem_conn_sm 
+5665 20600000 rtn 
+
+parse_lmp_send_conn:
+5666 70005604 jam conn_sm_send_conn_req ,mem_conn_sm 
+5667 20600000 rtn 
+
+parse_lmp_test_activate:
+5668 6fe080e4 fetch 1 ,mem_debug_config 
+5669 67e08a5b store 1 ,mem_test_mode_old_debug_config 
+566a 70007d03 jam lmp_accepted ,mem_lmo_opcode2 
+566b 70007e38 jam lmp_test_activate ,mem_lmi_opcode2 
+566c 20600000 rtn 
+
+parse_lmp_test_control:
+566d 70007d03 jam lmp_accepted ,mem_lmo_opcode2 
+566e 70007e39 jam lmp_test_control ,mem_lmi_opcode2 
+566f 18007209 force 9 ,loopcnt 
+5670 d8c000d0 arg mem_rxbuf + 1 ,contr 
+5671 d8a00a52 arg mem_temp_payload ,contw 
+
+parse_lmp_test_xor:
+5672 efe08006 ifetch 1 ,contr 
+5673 1fe2fe55 xor_into 0x55 ,pdata 
+5674 e7e08005 istore 1 ,contw 
+5675 c2005672 loop parse_lmp_test_xor 
+5676 6fe08a52 fetch 1 ,test_mode_scenario 
+5677 68488a51 fetcht 1 ,mem_tester_emulate 
+5678 793f8407 set0 tester_no_whitening ,temp 
+5679 793f8404 set0 tester_pattern_test ,temp 
+567a c07fd686 beq exit_test_mode ,parse_lmp_test_control_exit 
+567b c000569f beq pause_test_mode ,parse_lmp_test_control_pause 
+567c c002d693 beq closed_loop_back_acl ,parse_lmp_test_control_loopback 
+567d c003d692 beq acl_without_whitening ,parse_lmp_test_control_loopback_nowhite 
+567e c0035693 beq closed_loop_back_sco ,parse_lmp_test_control_loopback 
+567f c0045692 beq sco_without_whitening ,parse_lmp_test_control_loopback_nowhite 
+5680 c000d68b beq zero_pattern ,parse_lmp_test_control_pattern 
+5681 c001568b beq one_pattern ,parse_lmp_test_control_pattern 
+5682 c001d68b beq alt_pattern ,parse_lmp_test_control_pattern 
+5683 c004d68b beq alt2_pattern ,parse_lmp_test_control_pattern 
+5684 c002568b beq pseudorandom ,parse_lmp_test_control_pattern 
+5685 20600000 rtn 
+
+parse_lmp_test_control_exit:
+5686 6fe08a51 fetch 1 ,mem_tester_emulate 
+5687 79207e03 set1 tester_exit ,pdata 
+5688 79207e02 set1 tester_change ,pdata 
+5689 67e08a51 store 1 ,mem_tester_emulate 
+568a 20600000 rtn 
+
+parse_lmp_test_control_pattern:
+568b 79200404 set1 tester_pattern_test ,temp 
+568c 7000e505 jam 5 ,mem_lch_code 
+568d 6fe10a59 fetch 2 ,test_mode_data_length 
+568e 98007200 iforce loopcnt 
+568f 67e100af store 2 ,mem_len 
+5690 d8a000cf arg mem_rxbuf ,contw 
+5691 20407de1 call pn9 
+
+parse_lmp_test_control_loopback_nowhite:
+5692 79200407 set1 tester_no_whitening ,temp 
+
+parse_lmp_test_control_loopback:
+5693 79200402 set1 tester_change ,temp 
+5694 18007e00 force 0 ,pdata 
+5695 67e0800b store 1 ,mem_slave_rcvcnt 
+5696 67e109fa store 2 ,mem_tst_pktcnt_crc 
+5697 67e109fc store 2 ,mem_tst_pktcnt_dmh 
+5698 67e109f8 store 2 ,mem_tst_pktcnt_hec 
+5699 67e109f6 store 2 ,mem_tst_pktcnt_sync 
+569a 6fe08a53 fetch 1 ,test_mode_hopping_mode 
+569b 2fe1fe00 compare fixed_freq ,pdata ,0xff 
+569c 79208406 setflag true ,tester_fixed_freq ,temp 
+569d 60488a51 storet 1 ,mem_tester_emulate 
+569e 20600000 rtn 
+
+parse_lmp_test_control_pause:
+569f 793f8011 set0 mark_testmode ,mark 
+56a0 700a5100 jam 0 ,mem_tester_emulate 
+56a1 6fe080e4 fetch 1 ,mem_debug_config 
+56a2 793ffe06 set0 debug_tx_pattern ,pdata 
+56a3 67e080e4 store 1 ,mem_debug_config 
+56a4 20600000 rtn 
+
+lmp_copy_rand:
+56a5 d8c000d0 arg mem_rxbuf + 1 ,contr 
+56a6 d8a00424 arg mem_random_number ,contw 
+56a7 20207d1a branch memcpy16 
+
+lmp_generate_key:
+56a8 70007d09 jam lmp_comb_key ,mem_lmo_opcode2 
+56a9 20600000 rtn 
+
+lmp_start_encryption:
+56aa 24748000 nrtn master 
+56ab 70007d11 jam lmp_start_encryption_req ,mem_lmo_opcode2 
+56ac 20600000 rtn 
+
+lmp_accept_inrand:
+56ad da2040a8 arg mem_lap ,rega 
+56ae 20406b36 call generate_kinit 
+56af 70007d03 jam lmp_accepted ,mem_lmo_opcode2 
+56b0 70007e08 jam lmp_in_rand ,mem_lmi_opcode2 
+56b1 20600000 rtn 
+
+lmp_disconnect:
+56b2 7000730a jam 10 ,mem_conn_timer 
+56b3 70007d07 jam lmp_detach ,mem_lmo_opcode2 
+56b4 70039e16 jam local_host ,mem_disconn_reason_send 
+56b5 20600000 rtn 
+
+send_lmp:
+56b6 470e4023 bpatchx patch23_4 ,mem_patch23 
+56b7 78547c00 disable user 
+56b8 204059a1 call lmo_fifo_process 
+56b9 6fe08049 fetch 1 ,mem_lmp_to_send 
+56ba 207a0000 rtn blank 
+56bb c283d6eb bbit1 7 ,send_lmp_escape 
+
+send_lmp0:
+56bc c000d835 beq lmp_name_req ,send_lmp_name_req 
+56bd c00157b6 beq lmp_name_res ,send_lmp_name_res 
+56be c001d6f7 beq lmp_accepted ,send_lmp_accepted 
+56bf c002570d beq lmp_not_accepted ,send_lmp_not_accepted 
+56c0 c013d8a1 beq lmp_features_req ,send_lmp_features_req 
+56c1 c01457da beq lmp_features_res ,send_lmp_features_res 
+56c2 c01857c6 beq lmp_timing_accuracy_res ,send_lmp_timing_accuracy_res 
+56c3 c012d89c beq lmp_version_req ,send_lmp_version_req 
+56c4 c01357d5 beq lmp_version_res ,send_lmp_version_res 
+56c5 c018d889 beq lmp_setup_complete ,send_lmp_setup_complete 
+56c6 c01bd830 beq lmp_supervision_timeout ,send_lmp_superto 
+56c7 c019d822 beq lmp_host_connection_req ,send_lmp_no_payload 
+56c8 c0045923 beq lmp_in_rand ,send_lmp_inrand 
+56c9 c004d919 beq lmp_comb_key ,send_lmp_comb_key 
+56ca c005d92e beq lmp_au_rand ,send_lmp_aurand 
+56cb c006593b beq lmp_sres ,send_lmp_sres 
+56cc c007d828 beq lmp_encryption_mode_req ,send_lmp_encryption_mode_req 
+56cd c0085971 beq lmp_encryption_key_size_req ,send_lmp_encryption_key_size_req 
+56ce c008d967 beq lmp_start_encryption_req ,send_lmp_start_encryption 
+56cf c003d818 beq lmp_detach ,send_lmp_detach 
+56d0 c0155844 beq lmp_quality_of_service_req ,send_lmp_quality_of_service_req 
+56d1 c0055845 beq lmp_unit_key ,send_lmp_unit_key 
+56d2 c00fd882 beq lmp_incr_power_req ,send_lmp_inc_power 
+56d3 c00357cb beq lmp_clkoffset_res ,send_lmp_clkoffset_res 
+56d4 c010d825 beq lmp_max_power ,send_lmp_nopayload_reply 
+56d5 c016d878 beq lmp_max_slot ,send_lmp_max_slot 
+56d6 c017587d beq lmp_max_slot_req ,send_lmp_max_slot_req 
+56d7 c0115825 beq lmp_min_power ,send_lmp_nopayload_reply 
+56d8 c01a5846 beq lmp_slot_offset ,send_lmp_slot_offset 
+56d9 c009d85b beq lmp_switch_req ,send_lmp_switch_req 
+56da c00bd86a beq lmp_sniff_req ,send_lmp_sniff_req 
+56db c009596e beq lmp_stop_encryption_req ,send_lmp_stop_encryption_req 
+56dc c017d870 beq lmp_timing_accuracy_req ,send_lmp_timing_accuracy_req 
+56dd c00c5875 beq lmp_unsniff_req ,send_lmp_unsniff_req 
+56de c01ed8c4 beq lmp_encapsulated_header ,send_lmp_encapsulated_header 
+56df c01f58cc beq lmp_encapsulated_payload ,send_lmp_encapsulated_payload 
+56e0 c01fd8e7 beq lmp_simple_pairing_confirm ,send_lmp_simple_pairing_comfirm 
+56e1 c02058f1 beq lmp_simple_pairing_number ,send_lmp_simple_pairing_number 
+56e2 c020d906 beq lmp_dhkey_check ,send_lmp_dhkey_check 
+56e3 c011d915 beq lmp_auto_rate ,send_lmp_auto_rate 
+56e4 c01dd910 beq lmp_enc_key_size_mask_res ,send_lmp_enc_key_size_mask_res 
+56e5 c002d916 beq lmp_clkoffset_req ,send_lmp_clkoffset_req 
+56e6 c014d917 beq lmp_quality_of_service ,send_lmp_quality_of_service 
+56e7 c01c5918 beq lmp_test_activate ,send_lmp_test_activate 
+56e8 c01cd83b beq lmp_test_control ,send_lmp_test_control 
+
+send_lmp_error:
+56e9 2020131f branch assert 
+56ea 20600000 rtn 
+
+send_lmp_escape:
+56eb c040d71a beq lmp_ext_accepted ,send_lmpext_accepted 
+56ec c041d7df beq lmp_ext_features_req ,send_lmpext_features_req 
+56ed c0425749 beq lmp_ext_features_res ,send_lmpext_features_res 
+56ee c0415723 beq lmp_not_accepted_ext ,send_lmpext_not_accepted 
+56ef c045d7ec beq lmp_packet_type_table_req ,send_lmpext_packet_type_table_req 
+56f0 c04bd814 beq lmp_pause_encryption_req ,send_lmpext_pause_encryption_req 
+56f1 c04cd7a7 beq lmp_io_cap_req ,send_lmp_io_cap_req 
+56f2 c04d5776 beq lmp_io_cap_res ,send_lmpext_io_cap_res 
+56f3 c04ad7ac beq lmp_sniff_subrating_req ,send_lmpext_sniff_subrating_req 
+56f4 c04b57ad beq lmp_sniff_subrating_res ,send_lmpext_sniff_subrating_res 
+56f5 c0515746 beq lmp_ping_res ,send_lmpext_ping_res 
+56f6 2020131f branch assert 
+
+send_lmp_accepted:
+56f7 18007e02 force 2 ,pdata 
+56f8 20405977 call msg_send_lmp 
+56f9 6fe0804a fetch 1 ,mem_lmi_opcode 
+56fa e7e08005 istore 1 ,contw 
+56fb 20405986 call send_lmp_follow 
+56fc 470ec023 bpatchx patch23_5 ,mem_patch23 
+56fd 6fe0804a fetch 1 ,mem_lmi_opcode 
+56fe c004572d beq lmp_in_rand ,send_lmp_accepted_inrand 
+56ff c007d731 beq lmp_encryption_mode_req ,send_lmp_accepted_enc_mode 
+5700 c008573c beq lmp_encryption_key_size_req ,send_lmp_accepted_enc_key 
+5701 c00bd70c beq lmp_sniff_req ,send_lmp_accept_sniff_req 
+5702 c019d73f beq lmp_host_connection_req ,send_lmp_accepted_connection 
+5703 c020d745 beq lmp_dhkey_check ,send_lmp_accept_dhkey_check 
+5704 c008d706 beq lmp_start_encryption_req ,send_create_conn_start_l2cap_timer_sm 
+5705 20600000 rtn 
+
+send_create_conn_start_l2cap_timer_sm:
+5706 6fe08056 fetch 1 ,mem_conn_sm 
+5707 207a0000 rtn blank 
+5708 7000561b jam conn_sm_wait_done ,mem_conn_sm 
+5709 5800000c setarg timer_enpt_waite 
+570a d8e00007 arg enpt_delay_timer ,queue 
+570b 20207d74 branch timer_init 
+
+send_lmp_accept_sniff_req:
+570c 20200eee branch sniff_init 
+
+send_lmp_not_accepted:
+570d 18007e03 force 3 ,pdata 
+570e 20405977 call msg_send_lmp 
+570f 6fe0804a fetch 1 ,mem_lmi_opcode 
+5710 c005d715 beq lmp_au_rand ,send_not_accept_aurand 
+5711 e7e08005 istore 1 ,contw 
+5712 6fe0804b fetch 1 ,mem_lmo_reason 
+5713 e7e08005 istore 1 ,contw 
+5714 20205986 branch send_lmp_follow 
+
+send_not_accept_aurand:
+5715 e7e08005 istore 1 ,contw 
+5716 6fe0804b fetch 1 ,mem_lmo_reason 
+5717 e7e08005 istore 1 ,contw 
+5718 d84003a9 arg mem_sres_tid ,temp 
+5719 202059c2 branch special_tid_store 
+
+send_lmpext_accepted:
+571a 18000e04 force 4 ,queue 
+571b 2040597f call send_lmpext 
+571c 5800007f setarg lmp_escape 
+571d e7e08005 istore 1 ,contw 
+571e 6fe0804a fetch 1 ,mem_lmi_opcode 
+571f 793ffe07 set0 7 ,pdata 
+5720 e7e08005 istore 1 ,contw 
+5721 6fe0804a fetch 1 ,mem_lmi_opcode 
+5722 20205986 branch send_lmp_follow 
+
+send_lmpext_not_accepted:
+5723 18000e05 force 5 ,queue 
+5724 2040597f call send_lmpext 
+5725 5800007f setarg lmp_escape 
+5726 e7e08005 istore 1 ,contw 
+5727 6fe0804a fetch 1 ,mem_lmi_opcode 
+5728 793ffe07 set0 7 ,pdata 
+5729 e7e08005 istore 1 ,contw 
+572a 6fe0804b fetch 1 ,mem_lmo_reason 
+572b e7e08005 istore 1 ,contw 
+572c 20205986 branch send_lmp_follow 
+
+send_lmp_accepted_inrand:
+572d 20400c5d call clear_linkkey 
+572e 204059d3 call tid_check 
+572f 20608000 rtn true 
+5730 202056a8 branch lmp_generate_key 
+
+send_lmp_accepted_enc_mode:
+5731 6fe0804c fetch 1 ,mem_op 
+5732 c282d738 bbit1 op_start_enc ,send_lmp_accepted_enc_start 
+5733 c4020000 rtnbit0 op_stop_enc 
+5734 70007d12 jam lmp_stop_encryption_req ,mem_lmo_opcode2 
+5735 793ffe04 set0 op_stop_enc ,pdata 
+5736 204059cb call tid_reply 
+5737 2020573a branch send_lmp_accepted_enc_exit 
+
+send_lmp_accepted_enc_start:
+5738 70007d10 jam lmp_encryption_key_size_req ,mem_lmo_opcode2 
+5739 793ffe05 set0 op_start_enc ,pdata 
+
+send_lmp_accepted_enc_exit:
+573a 67e0804c store 1 ,mem_op 
+573b 20600000 rtn 
+
+send_lmp_accepted_enc_key:
+573c 204059dc call check_localsm 
+573d 2020d6aa branch lmp_start_encryption ,true 
+573e 20600000 rtn 
+
+send_lmp_accepted_connection:
+573f 70007d8b jam lmp_packet_type_table_req ,mem_lmo_opcode2 
+5740 6fe083a5 fetch 1 ,mem_lmp_conn_state 
+5741 79207e00 set1 received_conn_req ,pdata 
+5742 67e083a5 store 1 ,mem_lmp_conn_state 
+5743 70095b01 jam bt_evt_bb_connected ,mem_fifo_temp 
+5744 2020789f branch ui_ipc_send_event 
+
+send_lmp_accept_dhkey_check:
+5745 20600000 rtn 
+
+send_lmpext_ping_res:
+5746 18000e02 force 2 ,queue 
+5747 2040597f call send_lmpext 
+5748 2020598f branch send_lmp_reply 
+
+send_lmpext_features_res:
+5749 1fe22200 copy pdata ,rega 
+574a 2040575f call check_ssp_enable 
+574b 6fe083a1 fetch 1 ,mem_ext_features_page 
+574c c000d74f beq 1 ,send_lmpext_features_res1 
+574d c0015757 beq 2 ,send_lmpext_features_res2 
+574e 20600000 rtn 
+
+send_lmpext_features_res1:
+574f 1a227e00 copy rega ,pdata 
+5750 18000e0c force 12 ,queue 
+5751 2040597f call send_lmpext 
+5752 58000001 setarg 0x01 
+5753 e7e08005 istore 1 ,contw 
+5754 6fe103a2 fetch 2 ,mem_lmpext_ssp_enable 
+5755 e7e48005 istore 9 ,contw 
+5756 2020598f branch send_lmp_reply 
+
+send_lmpext_features_res2:
+5757 1a227e00 copy rega ,pdata 
+5758 18000e0c force 12 ,queue 
+5759 2040597f call send_lmpext 
+575a 58000002 setarg 0x02 
+575b e7e08005 istore 1 ,contw 
+575c 58010002 setarg 0x010002 
+575d e7e48005 istore 9 ,contw 
+575e 2020598f branch send_lmp_reply 
+
+check_ssp_enable:
+575f 6fe0c763 fetch 1 ,mem_ssp_enable 
+5760 203a5763 branch ssp_disable ,blank 
+5761 20405769 call ssp_enable 
+5762 20205770 branch check_br_sc_enable 
+
+ssp_disable:
+5763 6fe0c0a6 fetch 1 ,mem_features + 6 
+5764 793ffe03 set0 param_featrue_ssp ,pdata 
+5765 67e0c0a6 store 1 ,mem_features + 6 
+5766 58000001 setarg 0x1 
+5767 67e103a2 store 2 ,mem_lmpext_ssp_enable 
+5768 20206ef9 branch sp_clear_flags 
+
+ssp_enable:
+5769 470f4023 bpatchx patch23_6 ,mem_patch23 
+576a 6fe0c0a6 fetch 1 ,mem_features + 6 
+576b 79207e03 set1 param_featrue_ssp ,pdata 
+576c 67e0c0a6 store 1 ,mem_features + 6 
+576d 58000101 setarg param_lmpext_ssp_enable 
+576e 67e103a2 store 2 ,mem_lmpext_ssp_enable 
+576f 20600000 rtn 
+
+check_br_sc_enable:
+5770 6fe0c6b7 fetch 1 ,mem_secure_connections_enable 
+5771 c280d773 bbit1 secure_connections_br_bit ,br_sc_enable 
+5772 20600000 rtn 
+
+br_sc_enable:
+5773 58000902 setarg 0x0902 
+5774 67e103a2 store 2 ,mem_lmpext_ssp_enable 
+5775 20600000 rtn 
+
+send_lmpext_io_cap_res:
+5776 18000e05 force 5 ,queue 
+5777 2040597f call send_lmpext 
+5778 6fe1c764 fetch 3 ,mem_lmp_io_cap_payload_iocap 
+5779 e7e18005 istore 3 ,contw 
+577a 2040598f call send_lmp_reply 
+577b 70476e01 jam flag_pairing_state_pairing ,mem_flag_pairing_state 
+577c 6fe0c764 fetch 1 ,mem_lmp_io_cap_payload_iocap 
+577d c000d787 beq io_capability_display_yesno ,responder_iocap_display_yesno 
+577e c0015781 beq io_capability_keyboard_only ,responder_iocap_keyboard_only 
+577f c001d78d beq io_capability_no_input_no_output ,responder_iocap_no_input_no_output 
+5780 20600000 rtn 
+
+responder_iocap_keyboard_only:
+5781 6fe0c767 fetch 1 ,mem_sp_iocap_remote 
+5782 c0005799 beq io_capability_display_only ,responder_iocap_keyboard_only_initiator_iocap_display_only 
+5783 c000d799 beq io_capability_display_yesno ,responder_iocap_keyboard_only_initiator_iocap_display_yesno 
+5784 c0015799 beq io_capability_keyboard_only ,responder_iocap_keyboard_only_initiator_iocap_keyboard_only 
+5785 c001d793 beq io_capability_no_input_no_output ,responder_iocap_keyboard_only_initiator_iocap_no_input_no_output 
+5786 20600000 rtn 
+
+responder_iocap_display_yesno:
+5787 6fe0c767 fetch 1 ,mem_sp_iocap_remote 
+5788 c0005793 beq io_capability_display_only ,responder_iocap_display_yesno_initiator_iocap_display_only 
+5789 c000d797 beq io_capability_display_yesno ,responder_iocap_display_yesno_initiator_iocap_display_yesno 
+578a c0015799 beq io_capability_keyboard_only ,responder_iocap_display_yesno_initiator_iocap_keyboard_only 
+578b c001d793 beq io_capability_no_input_no_output ,responder_iocap_display_yesno_initiator_iocap_no_input_no_output 
+578c 20600000 rtn 
+
+responder_iocap_no_input_no_output:
+578d 6fe0c767 fetch 1 ,mem_sp_iocap_remote 
+578e c0005793 beq io_capability_display_only ,responder_iocap_no_input_no_output_initiator_iocap_display_only 
+578f c000d793 beq io_capability_display_yesno ,responder_iocap_no_input_no_output_initiator_iocap_display_yesno 
+5790 c0015793 beq io_capability_keyboard_only ,responder_iocap_no_input_no_output_initiator_iocap_keyboard_only 
+5791 c001d793 beq io_capability_no_input_no_output ,responder_iocap_no_input_no_output_initiator_iocap_no_input_no_output 
+5792 20600000 rtn 
+
+responder_iocap_keyboard_only_initiator_iocap_no_input_no_output:
+
+responder_iocap_display_yesno_initiator_iocap_no_input_no_output:
+
+responder_iocap_display_yesno_initiator_iocap_display_only:
+
+responder_iocap_no_input_no_output_initiator_iocap_display_only:
+
+responder_iocap_no_input_no_output_initiator_iocap_display_yesno:
+
+responder_iocap_no_input_no_output_initiator_iocap_keyboard_only:
+
+responder_iocap_no_input_no_output_initiator_iocap_no_input_no_output:
+
+set_ssp_mode_justwork:
+5793 70476b03 jam ssp_mode_just_work_flag ,mem_ssp_mode_flag 
+5794 6fe0c643 fetch 1 ,mem_classic_bt_flag 
+5795 c28030b0 bbit1 flag_ssp_reject_justwork ,app_bt_disconnect 
+5796 20600000 rtn 
+
+responder_iocap_display_yesno_initiator_iocap_display_yesno:
+
+set_ssp_mode_numeric_comparison:
+5797 70476b01 jam ssp_mode_ssp_pin_flag ,mem_ssp_mode_flag 
+5798 20600000 rtn 
+
+responder_iocap_keyboard_only_initiator_iocap_display_yesno:
+
+responder_iocap_keyboard_only_initiator_iocap_keyboard_only:
+
+responder_iocap_keyboard_only_initiator_iocap_display_only:
+
+responder_iocap_display_yesno_initiator_iocap_keyboard_only:
+
+set_ssp_mode_passkey:
+5799 70476b02 jam ssp_mode_passkey_entry_flag ,mem_ssp_mode_flag 
+579a 20600000 rtn 
+
+classic_bt_set_reject_justwork_flag:
+579b d8e00000 arg flag_ssp_reject_justwork ,queue 
+579c 2020579f branch classic_bluetooth_set_flag 
+
+classic_bt_clr_reject_justwork_flag:
+579d d8e00000 arg flag_ssp_reject_justwork ,queue 
+579e 202057a3 branch classic_bluetooth_clr_flag 
+
+classic_bluetooth_set_flag:
+579f 6fe0c643 fetch 1 ,mem_classic_bt_flag 
+57a0 f9207e00 qset1 pdata 
+57a1 67e0c643 store 1 ,mem_classic_bt_flag 
+57a2 20600000 rtn 
+
+classic_bluetooth_clr_flag:
+57a3 6fe0c643 fetch 1 ,mem_classic_bt_flag 
+57a4 f93ffe00 qset0 pdata 
+57a5 67e0c643 store 1 ,mem_classic_bt_flag 
+57a6 20600000 rtn 
+
+send_lmp_io_cap_req:
+57a7 18000e05 force 5 ,queue 
+57a8 2040597f call send_lmpext 
+57a9 6fe1c764 fetch 3 ,mem_lmp_io_cap_payload_iocap 
+57aa e7e18005 istore 3 ,contw 
+57ab 20205991 branch send_lmp_request 
+
+send_lmpext_sniff_subrating_req:
+57ac 20600000 rtn 
+
+send_lmpext_sniff_subrating_res:
+57ad 18000e09 force 9 ,queue 
+57ae 2040597f call send_lmpext 
+57af 6fe08093 fetch 1 ,mem_subsniff_rate 
+57b0 e7e08005 istore 1 ,contw 
+57b1 6fe10094 fetch 2 ,mem_subsniff_tcmax 
+57b2 e7e10005 istore 2 ,contw 
+57b3 6fe2008f fetch 4 ,mem_subsniff_instant 
+57b4 e7e20005 istore 4 ,contw 
+57b5 2020598f branch send_lmp_reply 
+
+send_lmp_name_res:
+57b6 18007e11 force 17 ,pdata 
+57b7 20405977 call msg_send_lmp 
+57b8 6fe0804a fetch 1 ,mem_lmi_opcode 
+57b9 1fe20400 copy pdata ,temp 
+57ba c00057be beq 0x00 ,send_lmp_name_res_offset_ok 
+57bb c00757be beq 0x0e ,send_lmp_name_res_offset_ok 
+57bc c00e57be beq 0x1c ,send_lmp_name_res_offset_ok 
+57bd 20600000 rtn 
+
+send_lmp_name_res_offset_ok:
+57be e7e08005 istore 1 ,contw 
+57bf 6fe0c5fc fetch 1 ,mem_local_name_length 
+57c0 e7e08005 istore 1 ,contw 
+57c1 df20000e arg 14 ,loopcnt 
+57c2 580045fd setarg mem_local_name 
+57c3 98408c00 iadd temp ,contr 
+57c4 20407d6d call memcpy 
+57c5 2020598f branch send_lmp_reply 
+
+send_lmp_timing_accuracy_res:
+57c6 18007e03 force 3 ,pdata 
+57c7 20405977 call msg_send_lmp 
+57c8 58000114 setarg 0x0114 
+57c9 e7e10005 istore 2 ,contw 
+57ca 2020598f branch send_lmp_reply 
+
+send_lmp_clkoffset_res:
+57cb 18007e03 force 3 ,pdata 
+57cc 20405977 call msg_send_lmp 
+57cd 6fe200b5 fetch 4 ,mem_clke_bt 
+57ce 9c467e00 isub clkn_bt ,pdata 
+57cf 2034d7d1 branch send_lmp_clkoffset_res_master ,master 
+57d0 1fe67e00 sub pdata ,0 ,pdata 
+
+send_lmp_clkoffset_res_master:
+57d1 1feb7e00 rshift2 pdata ,pdata 
+57d2 793ffe0f set0 15 ,pdata 
+57d3 e7e10005 istore 2 ,contw 
+57d4 2020598f branch send_lmp_reply 
+
+send_lmp_version_res:
+57d5 18007e06 force 6 ,pdata 
+57d6 20405977 call msg_send_lmp 
+57d7 6fe2c5f7 fetch 5 ,mem_lmp_version 
+57d8 e7e28005 istore 5 ,contw 
+57d9 2020598f branch send_lmp_reply 
+
+send_lmp_features_res:
+57da 18007e09 force 9 ,pdata 
+57db 20405977 call msg_send_lmp 
+57dc 6fe440a0 fetch 8 ,mem_features 
+57dd e7e40005 istore 8 ,contw 
+57de 2020598f branch send_lmp_reply 
+
+send_lmpext_features_req:
+57df 2040575f call check_ssp_enable 
+57e0 6fe08049 fetch 1 ,mem_lmp_to_send 
+57e1 18000e0c force 12 ,queue 
+57e2 2040597f call send_lmpext 
+57e3 58000001 setarg 0x01 
+57e4 e7e08005 istore 1 ,contw 
+57e5 6fe103a2 fetch 2 ,mem_lmpext_ssp_enable 
+57e6 e7e10005 istore 2 ,contw 
+57e7 58000000 setarg 0 
+57e8 e7e18005 istore 3 ,contw 
+57e9 58000000 setarg 0x00 
+57ea e7e20005 istore 4 ,contw 
+57eb 20205991 branch send_lmp_request 
+
+send_lmpext_packet_type_table_req:
+57ec 18000e03 force 3 ,queue 
+57ed 2040597f call send_lmpext 
+57ee 6fe0c162 fetch 1 ,mem_ptt 
+57ef e7e08005 istore 1 ,contw 
+57f0 78547c00 disable user 
+57f1 20405991 call send_lmp_request 
+57f2 24740000 nrtn user 
+57f3 24748000 nrtn master 
+57f4 6fe0c0e0 fetch 1 ,mem_afh_cfg 
+57f5 c4000000 rtnbit0 afh_cfg_on 
+57f6 204057f8 call afh_init 
+57f7 20205802 branch afh_open_all_channels 
+
+afh_init:
+57f8 7040e003 jam 0x3 ,mem_afh_cfg 
+57f9 58000000 setarg 0 
+57fa 67e2414a store 4 ,mem_afh_timer 
+57fb d8a040e2 arg mem_afh_map_lo ,contw 
+57fc 20405806 call afh_reset_map 
+57fd d8a040ef arg mem_afh_map_new ,contw 
+57fe 20405806 call afh_reset_map 
+57ff d8a0414e arg mem_afh_classify_channel_map ,contw 
+5800 20405806 call afh_reset_map 
+5801 2020580d branch afh_clear_error_counter 
+
+afh_open_all_channels:
+5802 d8a040ef arg mem_afh_map_new ,contw 
+5803 20405806 call afh_reset_map 
+5804 2040580d call afh_clear_error_counter 
+5805 20205810 branch afh_set_send_flag 
+
+afh_reset_map:
+5806 58ffffff setarg 0xffffff 
+5807 e7e18005 istore 3 ,contw 
+5808 e7e18005 istore 3 ,contw 
+5809 e7e18005 istore 3 ,contw 
+580a 5800007f setarg 0x7f 
+580b e7e08005 istore 1 ,contw 
+580c 20600000 rtn 
+
+afh_clear_error_counter:
+580d 58000000 setarg 0 
+580e 67e140de store 2 ,mem_afh_error_total 
+580f 20600000 rtn 
+
+afh_set_send_flag:
+5810 6fe0c0e0 fetch 1 ,mem_afh_cfg 
+5811 79207e02 set1 send_lmp_set_afh ,pdata 
+5812 67e0c0e0 store 1 ,mem_afh_cfg 
+5813 20600000 rtn 
+
+send_lmpext_pause_encryption_req:
+5814 18000e02 force 2 ,queue 
+5815 2040597f call send_lmpext 
+5816 2434d98f nbranch send_lmp_reply ,master 
+5817 20205991 branch send_lmp_request 
+
+send_lmp_detach:
+5818 18007e02 force 2 ,pdata 
+5819 20405977 call msg_send_lmp 
+581a 6fe0839e fetch 1 ,mem_disconn_reason_send 
+581b e7e08005 istore 1 ,contw 
+581c 20405991 call send_lmp_request 
+
+prepare_disconnect:
+581d 6fe0804c fetch 1 ,mem_op 
+581e 79207e03 set1 op_disconn ,pdata 
+581f 67e0804c store 1 ,mem_op 
+5820 70007332 jam 50 ,mem_conn_timer 
+5821 20600000 rtn 
+
+send_lmp_no_payload:
+5822 18007e01 force 1 ,pdata 
+5823 20405977 call msg_send_lmp 
+5824 20205991 branch send_lmp_request 
+
+send_lmp_nopayload_reply:
+5825 18007e01 force 1 ,pdata 
+5826 20405977 call msg_send_lmp 
+5827 2020598f branch send_lmp_reply 
+
+send_lmp_encryption_mode_req:
+5828 18007e02 force 2 ,pdata 
+5829 20405977 call msg_send_lmp 
+582a 6fe0804d fetch 1 ,mem_state_map 
+582b 2fec0002 isolate0 smap_encryption ,pdata 
+582c 7920fe00 setflag true ,0 ,pdata 
+582d 1fe17e01 and_into 1 ,pdata 
+582e e7e08005 istore 1 ,contw 
+582f 20205991 branch send_lmp_request 
+
+send_lmp_superto:
+5830 18007e03 force 3 ,pdata 
+5831 20405977 call msg_send_lmp 
+5832 6fe10052 fetch 2 ,mem_supervision_to 
+5833 e7e10005 istore 2 ,contw 
+5834 20205991 branch send_lmp_request 
+
+send_lmp_name_req:
+5835 700073fa jam 250 ,mem_conn_timer 
+5836 18007e02 force 2 ,pdata 
+5837 20405977 call msg_send_lmp 
+5838 6fe08054 fetch 1 ,mem_name_offset 
+5839 e7e08005 istore 1 ,contw 
+583a 20205991 branch send_lmp_request 
+
+send_lmp_test_control:
+583b 18007e0a force 10 ,pdata 
+583c 20405977 call msg_send_lmp 
+583d d8c00a52 arg mem_temp_payload ,contr 
+583e 18007209 force 9 ,loopcnt 
+
+send_lmp_test_control_loop:
+583f efe08006 ifetch 1 ,contr 
+5840 1fe2fe55 xor_into 0x55 ,pdata 
+5841 e7e08005 istore 1 ,contw 
+5842 c200583f loop send_lmp_test_control_loop 
+5843 20205991 branch send_lmp_request 
+
+send_lmp_quality_of_service_req:
+5844 20205991 branch send_lmp_request 
+
+send_lmp_unit_key:
+5845 20205991 branch send_lmp_request 
+
+send_lmp_slot_offset:
+5846 20748000 rtn master 
+5847 20401049 call calc_slot_offset 
+5848 18007e09 force 9 ,pdata 
+5849 20405977 call msg_send_lmp 
+584a 6fe100c1 fetch 2 ,mem_slot_offset 
+584b e7e10005 istore 2 ,contw 
+584c 6fe1c0a8 fetch 3 ,mem_lap 
+584d e7e18005 istore 3 ,contw 
+584e 6fe0c0ab fetch 1 ,mem_uap 
+584f e7e08005 istore 1 ,contw 
+5850 6fe140ac fetch 2 ,mem_nap 
+5851 e7e10005 istore 2 ,contw 
+5852 c581d857 bmark0 mark_switch_initiated ,send_lmp_slot_offset_reply 
+5853 793f8003 set0 mark_switch_initiated ,mark 
+5854 20405991 call send_lmp_request 
+5855 70007d13 jam lmp_switch_req ,mem_lmo_opcode2 
+5856 20600000 rtn 
+
+send_lmp_slot_offset_reply:
+5857 2040598f call send_lmp_reply 
+5858 70007d03 jam lmp_accepted ,mem_lmo_opcode2 
+5859 70007e13 jam lmp_switch_req ,mem_lmi_opcode2 
+585a 20600000 rtn 
+
+send_lmp_switch_req:
+585b d8400200 arg 0x200 ,temp 
+585c 2034d85f branch switch_on_native ,master 
+585d 1d027e00 deposit clke_bt 
+585e 20205860 branch switch_slack 
+
+switch_on_native:
+585f 1c427e00 deposit clkn_bt 
+
+switch_slack:
+5860 1c227e00 deposit bt_clk 
+5861 9840fe00 iadd temp ,pdata 
+5862 1fe17ffc and_into 0x1fc ,pdata 
+5863 67e20035 store 4 ,mem_sniff_anchor 
+5864 18007e05 force 5 ,pdata 
+5865 20405977 call msg_send_lmp 
+5866 6fe20035 fetch 4 ,mem_sniff_anchor 
+5867 1fe37e00 rshift pdata ,pdata 
+5868 e7e20005 istore 4 ,contw 
+5869 20205991 branch send_lmp_request 
+
+send_lmp_sniff_req:
+586a 18007e0a force 10 ,pdata 
+586b 20405977 call msg_send_lmp 
+586c d8c003ac arg mem_sniff_payload ,contr 
+586d efe48006 ifetch 9 ,contr 
+586e e7e48005 istore 9 ,contw 
+586f 20205991 branch send_lmp_request 
+
+send_lmp_timing_accuracy_req:
+5870 18007e03 force 3 ,pdata 
+5871 20405977 call msg_send_lmp 
+5872 58000114 setarg 0x0114 
+5873 e7e10005 istore 2 ,contw 
+5874 20205991 branch send_lmp_request 
+
+send_lmp_unsniff_req:
+5875 18007e01 force 1 ,pdata 
+5876 20405977 call msg_send_lmp 
+5877 20205991 branch send_lmp_request 
+
+send_lmp_max_slot:
+5878 18007e02 force 2 ,pdata 
+5879 20405977 call msg_send_lmp 
+587a 6fe0c0d8 fetch 1 ,mem_max_slot 
+587b e7e08005 istore 1 ,contw 
+587c 20205991 branch send_lmp_request 
+
+send_lmp_max_slot_req:
+587d 18007e02 force 2 ,pdata 
+587e 20405977 call msg_send_lmp 
+587f 58000005 setarg 0x05 
+5880 e7e08005 istore 1 ,contw 
+5881 20205991 branch send_lmp_request 
+
+send_lmp_inc_power:
+5882 18007e02 force 2 ,pdata 
+5883 20405977 call msg_send_lmp 
+5884 58000000 setarg 0x00 
+5885 e7e08005 istore 1 ,contw 
+5886 20205991 branch send_lmp_request 
+
+send_lmp_setup_complete_by_module:
+5887 70007d2e jam lmp_max_slot_req ,mem_lmo_opcode2 
+5888 20600000 rtn 
+
+send_lmp_setup_complete:
+5889 6fe0c09a fetch 1 ,mem_device_option 
+588a 1fe67c0a sub pdata ,dvc_op_module ,null 
+588b 2042d887 call send_lmp_setup_complete_by_module ,zero 
+588c 6fe08031 fetch 1 ,mem_state 
+588d 79207e04 set1 state_conn_comp ,pdata 
+588e 67e08031 store 1 ,mem_state 
+588f 1c427e00 copy clkn_bt ,pdata 
+5890 67e203bc store 4 ,mem_aurand_send_delay_time 
+5891 6fe083a5 fetch 1 ,mem_lmp_conn_state 
+5892 c281d89a bbit1 sent_setup_complete ,send_lmp_setup_complete_has_sent 
+5893 79207e03 set1 sent_setup_complete ,pdata 
+5894 67e083a5 store 1 ,mem_lmp_conn_state 
+5895 70095b05 jam bt_evt_setup_complete ,mem_fifo_temp 
+5896 2040789f call ui_ipc_send_event 
+5897 18007e01 force 1 ,pdata 
+5898 20405977 call msg_send_lmp 
+5899 20205991 branch send_lmp_request 
+
+send_lmp_setup_complete_has_sent:
+589a 70004900 jam 0 ,mem_lmp_to_send 
+589b 20600000 rtn 
+
+send_lmp_version_req:
+589c 18007e06 force 6 ,pdata 
+589d 20405977 call msg_send_lmp 
+589e 6fe2c5f7 fetch 5 ,mem_lmp_version 
+589f e7e28005 istore 5 ,contw 
+58a0 20205991 branch send_lmp_request 
+
+send_lmp_features_req:
+58a1 18007e09 force 9 ,pdata 
+58a2 20405977 call msg_send_lmp 
+58a3 6fe440a0 fetch 8 ,mem_features 
+58a4 e7e40005 istore 8 ,contw 
+58a5 20205991 branch send_lmp_request 
+
+sp_master_send_io_cap_get:
+58a6 70087301 jam sp_flag_commit ,mem_master_sp_flag 
+58a7 6fe0c6b8 fetch 1 ,mem_sp_local_key_invalid 
+58a8 c1808000 rtnne sp_key_valid 
+58a9 70087113 jam sp_master_stat_start_done ,mem_master_sp_state 
+58aa 20600000 rtn 
+
+sp_master_send_io_cap_send:
+58ab 204059cf call tid_initiate 
+58ac 70007d99 jam lmp_io_cap_req ,mem_lmo_opcode2 
+58ad 70087103 jam sp_stat_key_send ,mem_master_sp_state 
+58ae 20600000 rtn 
+
+sp_master_send_lmp_encapsulated_header:
+58af 204059cf call tid_initiate 
+58b0 70007d3d jam lmp_encapsulated_header ,mem_lmo_opcode2 
+58b1 70087107 jam sp_stat_random_send ,mem_master_sp_state 
+58b2 20600000 rtn 
+
+sp_master_commitment_compare:
+58b3 da200910 arg mem_sp_calc_result_high ,rega 
+58b4 da400930 arg mem_sp_confirm_remote ,regb 
+58b5 df200010 arg 16 ,loopcnt 
+58b6 20407dff call string_compare 
+58b7 2022d8bc branch sp_master_commitment_compare_success ,zero 
+58b8 70087100 jam sp_stat_null ,mem_master_sp_state 
+58b9 20407097 call master_clear_mem_master_sp_flag 
+58ba 70007e40 jam lmp_simple_pairing_number ,mem_lmi_opcode2 
+58bb 20205649 branch lmp_reject_pdu_not_allowed 
+
+sp_master_commitment_compare_success:
+58bc 7008710a jam sp_stat_confirm_calc ,mem_master_sp_state 
+58bd 20407095 call master_set_mem_master_sp_flag 
+58be 70007e40 jam lmp_simple_pairing_number ,mem_lmi_opcode2 
+58bf 202054a8 branch accept_lmp_msg 
+
+sp_master_send_lmp_simple_pairing_number:
+58c0 70007d40 jam lmp_simple_pairing_number ,mem_lmo_opcode2 
+58c1 20600000 rtn 
+
+sp_send_lmp_encapsulated_header:
+58c2 70007d3d jam lmp_encapsulated_header ,mem_lmo_opcode2 
+58c3 20600000 rtn 
+
+send_lmp_encapsulated_header:
+58c4 70087800 jam 0 ,mem_sp_local_key_send_count 
+58c5 18007e04 force 4 ,pdata 
+58c6 20405977 call msg_send_lmp 
+58c7 6fe1c644 fetch 3 ,mem_encapsulated_major_type 
+58c8 e7e18005 istore 3 ,contw 
+58c9 204059dc call check_localsm 
+58ca 2020d991 branch send_lmp_request ,true 
+58cb 2020598f branch send_lmp_reply 
+
+send_lmp_encapsulated_payload:
+58cc 6fe0c645 fetch 1 ,mem_encapsulated_minor_type 
+58cd c00158d0 beq encapsulated_minor_type_p256 ,send_lmp_encapsulated_payload_256 
+58ce c000d8d5 beq encapsulated_minor_type_p192 ,send_lmp_encapsulated_payload_192 
+58cf 20600000 rtn 
+
+send_lmp_encapsulated_payload_256:
+58d0 18007e11 force 17 ,pdata 
+58d1 20405977 call msg_send_lmp 
+58d2 6fe08878 fetch 1 ,mem_sp_local_key_send_count 
+58d3 d8c046db arg mem_sc_pubkey_local_x_256 ,contr 
+58d4 202058d9 branch send_lmp_encapsulated_payload_common 
+
+send_lmp_encapsulated_payload_192:
+58d5 18007e11 force 17 ,pdata 
+58d6 20405977 call msg_send_lmp 
+58d7 6fe08878 fetch 1 ,mem_sp_local_key_send_count 
+58d8 d8c04733 arg mem_sp_pubkey_local ,contr 
+
+send_lmp_encapsulated_payload_common:
+58d9 98c08c00 iadd contr ,contr 
+58da efe40006 ifetch 8 ,contr 
+58db e7e40005 istore 8 ,contw 
+58dc efe40006 ifetch 8 ,contr 
+58dd e7e40005 istore 8 ,contw 
+58de 6fe08878 fetch 1 ,mem_sp_local_key_send_count 
+58df 1fe0fe10 increase 16 ,pdata 
+58e0 67e08878 store 1 ,mem_sp_local_key_send_count 
+58e1 204059dc call check_localsm 
+58e2 2020d991 branch send_lmp_request ,true 
+58e3 2020598f branch send_lmp_reply 
+
+sp_send_lmp_simple_pairing_comfirm:
+58e4 70087006 jam sp_stat_random_recv ,mem_sp_state 
+58e5 70007d3f jam lmp_simple_pairing_confirm ,mem_lmo_opcode2 
+58e6 20600000 rtn 
+
+send_lmp_simple_pairing_comfirm:
+58e7 18007e11 force 17 ,pdata 
+58e8 20405977 call msg_send_lmp 
+58e9 d8c00910 arg mem_sp_calc_result_high ,contr 
+58ea efe40006 ifetch 8 ,contr 
+58eb e7e40005 istore 8 ,contw 
+58ec efe40006 ifetch 8 ,contr 
+58ed e7e40005 istore 8 ,contw 
+58ee 2020598f branch send_lmp_reply 
+
+sp_send_lmp_simple_pairing_number:
+58ef 70007d40 jam lmp_simple_pairing_number ,mem_lmo_opcode2 
+58f0 20600000 rtn 
+
+send_lmp_simple_pairing_number:
+58f1 204059dc call check_localsm 
+58f2 2040efaa call sp_local_random_key_generator ,true 
+58f3 18007e11 force 17 ,pdata 
+58f4 20405977 call msg_send_lmp 
+58f5 d8c008e0 arg mem_sp_random_local ,contr 
+58f6 efe40006 ifetch 8 ,contr 
+58f7 e7e40005 istore 8 ,contw 
+58f8 efe40006 ifetch 8 ,contr 
+58f9 e7e40005 istore 8 ,contw 
+58fa 204059dc call check_localsm 
+58fb 2420d98f nbranch send_lmp_reply ,true 
+58fc 2020d991 branch send_lmp_request ,true 
+
+master_sp_sm_end:
+58fd 7008710f jam sp_stat_done ,mem_master_sp_state 
+
+sp_aurand_send:
+58fe 204059cf call tid_initiate 
+58ff 70007d0b jam lmp_au_rand ,mem_lmo_opcode2 
+5900 204059e7 call check_localsm_master 
+5901 2020eff8 branch sp_master_key_prarm_push ,true 
+5902 20207002 branch sp_link_key_prarm_push 
+
+master_sp_send_lmp_dhkey_check:
+5903 204059cb call tid_reply 
+
+sp_send_lmp_dhkey_check:
+5904 70007d41 jam lmp_dhkey_check ,mem_lmo_opcode2 
+5905 20600000 rtn 
+
+send_lmp_dhkey_check:
+5906 18007e11 force 17 ,pdata 
+5907 20405977 call msg_send_lmp 
+5908 d8c00910 arg mem_sp_calc_result_high ,contr 
+5909 efe40006 ifetch 8 ,contr 
+590a e7e40005 istore 8 ,contw 
+590b efe40006 ifetch 8 ,contr 
+590c e7e40005 istore 8 ,contw 
+590d 204059dc call check_localsm 
+590e 2420d98f nbranch send_lmp_reply ,true 
+590f 2020d991 branch send_lmp_request ,true 
+
+send_lmp_enc_key_size_mask_res:
+5910 18007e03 force 3 ,pdata 
+5911 20405977 call msg_send_lmp 
+5912 5800fffe setarg 0xfffe 
+5913 e7e10005 istore 2 ,contw 
+5914 2020598f branch send_lmp_reply 
+
+send_lmp_auto_rate:
+5915 20205991 branch send_lmp_request 
+
+send_lmp_clkoffset_req:
+5916 20205991 branch send_lmp_request 
+
+send_lmp_quality_of_service:
+5917 20205991 branch send_lmp_request 
+
+send_lmp_test_activate:
+5918 20205991 branch send_lmp_request 
+
+send_lmp_comb_key:
+5919 204059eb call generate_random_number 
+591a da2040a8 arg mem_lap ,rega 
+591b 204059f1 call generate_linkkey 
+591c 18007e11 force 17 ,pdata 
+591d 20405977 call msg_send_lmp 
+591e da200444 arg mem_kinit ,rega 
+591f da400424 arg mem_random_number ,regb 
+5920 20406c33 call xor16 
+5921 2434d986 nbranch send_lmp_follow ,master 
+5922 2020598c branch send_lmp_tid 
+
+send_lmp_inrand:
+5923 204059eb call generate_random_number 
+5924 da200041 arg mem_plap ,rega 
+5925 20406b36 call generate_kinit 
+
+send_lmp_rand:
+5926 18007e11 force 17 ,pdata 
+5927 20405977 call msg_send_lmp 
+5928 d8c00424 arg mem_random_number ,contr 
+5929 20407d1a call memcpy16 
+592a 6fe08056 fetch 1 ,mem_conn_sm 
+592b c00cd991 beq conn_sm_auth_wait ,send_lmp_request 
+592c c00c5991 beq conn_sm_pairing_wait ,send_lmp_request 
+592d 2020598c branch send_lmp_tid 
+
+send_lmp_aurand:
+592e 6fe0c645 fetch 1 ,mem_encapsulated_minor_type 
+592f c0015939 beq encapsulated_minor_type_p256 ,send_lmp_aurand_256 
+5930 6fe08877 fetch 1 ,mem_pairing_auth 
+5931 203a5936 branch send_lmp_aurand_notpairing ,blank 
+
+send_lmp_aurand2:
+5932 204059dc call check_localsm 
+5933 2040d9cf call tid_initiate ,true 
+5934 2440d9cb ncall tid_reply ,true 
+5935 20205937 branch send_lmp_aurand_common 
+
+send_lmp_aurand_notpairing:
+5936 204059cf call tid_initiate 
+
+send_lmp_aurand_common:
+5937 204059eb call generate_random_number 
+5938 20205926 branch send_lmp_rand 
+
+send_lmp_aurand_256:
+5939 70007d0c jam lmp_sres ,mem_lmo_opcode2 
+593a 20205932 branch send_lmp_aurand2 
+
+send_lmp_sres:
+593b 6fe0c645 fetch 1 ,mem_encapsulated_minor_type 
+593c c0015955 beq encapsulated_minor_type_p256 ,send_lmp_sres_256 
+593d da2040a8 arg mem_lap ,rega 
+593e 20406b69 call function_e1 
+593f 18007e05 force 5 ,pdata 
+5940 20405977 call msg_send_lmp 
+5941 6fe20454 fetch 4 ,mem_input_store 
+5942 e7e20005 istore 4 ,contw 
+5943 d84003a9 arg mem_sres_tid ,temp 
+5944 204059c2 call special_tid_store 
+5945 20406c67 call copy_aco 
+5946 204059dc call check_localsm 
+5947 2020d94c branch send_lmp_sres_master ,true 
+5948 7003ab01 jam done_encryp ,mem_wait_encryption 
+5949 6fe08877 fetch 1 ,mem_pairing_auth 
+594a 207a0000 rtn blank 
+594b 70007d0b jam lmp_au_rand ,mem_lmo_opcode2 
+
+send_lmp_sres_master:
+594c 6fe0c1cd fetch 1 ,mem_link_key_exists 
+594d 207a0000 rtn blank 
+
+send_lmp_sres_startenc:
+594e 204059dc call check_localsm 
+594f 2420d951 nbranch send_lmp_sres_startenc_slave ,true 
+5950 20600000 rtn 
+
+send_lmp_sres_startenc_slave:
+5951 c6908000 rtnmark0 mark_slave_in_rand_accepted 
+5952 793f8021 set0 mark_slave_in_rand_accepted ,mark 
+5953 70007d0f jam lmp_encryption_mode_req ,mem_lmo_opcode2 
+5954 20600000 rtn 
+
+send_lmp_sres_256:
+5955 20407521 call function_h4 
+5956 20407546 call function_h5 
+5957 18007e05 force 5 ,pdata 
+5958 20405977 call msg_send_lmp 
+5959 6fe20918 fetch 4 ,memb 
+595a e7e20005 istore 4 ,contw 
+595b d84003a9 arg mem_sres_tid ,temp 
+595c 204059c2 call special_tid_store 
+595d 20405964 call copy_aco_256 
+595e 204059dc call check_localsm 
+595f 2020d94c branch send_lmp_sres_master ,true 
+5960 7003ab01 jam done_encryp ,mem_wait_encryption 
+5961 6fe08877 fetch 1 ,mem_pairing_auth 
+5962 207a0000 rtn blank 
+5963 2020594c branch send_lmp_sres_master 
+
+copy_aco_256:
+5964 6fe40910 fetch 8 ,mem_sp_calc_result_high 
+5965 67e446a9 store 8 ,mem_ccm_iv 
+5966 20600000 rtn 
+
+send_lmp_start_encryption:
+5967 204059eb call generate_random_number 
+5968 20406b6c call function_e3 
+5969 18007e11 force 17 ,pdata 
+596a 20405977 call msg_send_lmp 
+596b d8c00424 arg mem_random_number ,contr 
+596c 20407d1a call memcpy16 
+596d 2020598c branch send_lmp_tid 
+
+send_lmp_stop_encryption_req:
+596e 18007e01 force 1 ,pdata 
+596f 20405977 call msg_send_lmp 
+5970 2020598c branch send_lmp_tid 
+
+send_lmp_encryption_key_size_req:
+5971 18007e02 force 2 ,pdata 
+5972 20405977 call msg_send_lmp 
+5973 18007e10 force 16 ,pdata 
+5974 e7e08005 istore 1 ,contw 
+5975 67e08055 store 1 ,mem_key_size 
+5976 2020598c branch send_lmp_tid 
+
+msg_send_lmp:
+5977 1fe9fe00 lshift3 pdata ,pdata 
+5978 1fe1fe07 or_into 0x07 ,pdata 
+5979 67e0838a store 1 ,mem_lmo_header_length 
+597a df200011 arg 17 ,loopcnt 
+597b d8a0038c arg mem_lmo_payload ,contw 
+597c 20407d34 call clear_mem 
+597d d8a0038c arg mem_lmo_payload ,contw 
+597e 20600000 rtn 
+
+send_lmpext:
+597f 1fe1227f and pdata ,0x7f ,rega 
+5980 7000497f jam lmp_escape ,mem_lmp_to_send 
+5981 18e27e00 deposit queue 
+5982 20405977 call msg_send_lmp 
+5983 1a227e00 deposit rega 
+5984 e7e08005 istore 1 ,contw 
+5985 20600000 rtn 
+
+send_lmp_follow:
+5986 6fe08049 fetch 1 ,mem_lmp_to_send 
+5987 1fe3fe00 lshift pdata ,pdata 
+5988 6848804d fetcht 1 ,mem_state_map 
+5989 284ffe01 isolate1 smap_lmptid ,temp 
+598a 7920fe00 setflag true ,0 ,pdata 
+598b 20205996 branch send_lmp_exit 
+
+send_lmp_tid:
+598c 6848804d fetcht 1 ,mem_state_map 
+598d 18410401 and_into 1 ,temp 
+598e 20205992 branch send_lmp_end 
+
+send_lmp_reply:
+598f 18000400 force 0 ,temp 
+5990 20205992 branch send_lmp_end 
+
+send_lmp_request:
+5991 18000401 force 1 ,temp 
+
+send_lmp_end:
+5992 6fe08049 fetch 1 ,mem_lmp_to_send 
+5993 1fe3fe00 lshift pdata ,pdata 
+5994 7934fe00 setflag master ,0 ,pdata 
+5995 9842fe00 ixor temp ,pdata 
+
+send_lmp_exit:
+5996 67e0838b store 1 ,mem_lmo_header_opcode 
+5997 67e0c5f6 store 1 ,mem_lmo_header_opcode_x 
+5998 70004900 jam 0 ,mem_lmp_to_send 
+5999 204059a7 call lmo_fifo_process_lmo0empty 
+599a 78347c00 enable user 
+599b 20600000 rtn 
+
+lmo_fifo_check:
+599c 6fe0807d fetch 1 ,mem_lmo_opcode2 
+599d 207a0000 rtn blank 
+599e 204059a1 call lmo_fifo_process 
+599f 6fe0807d fetch 1 ,mem_lmo_opcode2 
+59a0 20600000 rtn 
+
+lmo_fifo_process:
+59a1 470fc023 bpatchx patch23_7 ,mem_patch23 
+59a2 6fe08049 fetch 1 ,mem_lmp_to_send 
+59a3 203a59a7 branch lmo_fifo_process_lmo0empty ,blank 
+59a4 6fe08079 fetch 1 ,mem_lmo_opcode1 
+59a5 247a0000 nrtn blank 
+59a6 202059b1 branch lmo_fifo_process_lmo2to1 
+
+lmo_fifo_process_lmo0empty:
+59a7 6fe08079 fetch 1 ,mem_lmo_opcode1 
+59a8 203a59b7 branch lmo_fifo_process_lmo1_empty ,blank 
+59a9 6fe18079 fetch 3 ,mem_lmo_opcode1 
+59aa 67e18049 store 3 ,mem_lmp_to_send 
+59ab 6848807c fetcht 1 ,mem_lmo_tid1 
+59ac 6fe0804d fetch 1 ,mem_state_map 
+59ad 793ffe01 set0 smap_lmptid ,pdata 
+59ae 9841fe00 ior temp ,pdata 
+59af 67e0804d store 1 ,mem_state_map 
+59b0 70007900 jam 0 ,mem_lmo_opcode1 
+
+lmo_fifo_process_lmo2to1:
+59b1 6fe0807d fetch 1 ,mem_lmo_opcode2 
+59b2 207a0000 rtn blank 
+59b3 6fe2007d fetch 4 ,mem_lmo_opcode2 
+59b4 67e20079 store 4 ,mem_lmo_opcode1 
+59b5 70007d00 jam 0 ,mem_lmo_opcode2 
+59b6 20600000 rtn 
+
+lmo_fifo_process_lmo1_empty:
+59b7 6fe0807d fetch 1 ,mem_lmo_opcode2 
+59b8 207a0000 rtn blank 
+59b9 6fe1807d fetch 3 ,mem_lmo_opcode2 
+59ba 67e18049 store 3 ,mem_lmp_to_send 
+59bb 68488080 fetcht 1 ,mem_lmo_tid2 
+59bc 6fe0804d fetch 1 ,mem_state_map 
+59bd 793ffe01 set0 smap_lmptid ,pdata 
+59be 9841fe00 ior temp ,pdata 
+59bf 67e0804d store 1 ,mem_state_map 
+59c0 70007d00 jam 0 ,mem_lmo_opcode2 
+59c1 20600000 rtn 
+
+special_tid_store:
+59c2 47104024 bpatchx patch24_0 ,mem_patch24 
+59c3 6fe0804d fetch 1 ,mem_state_map 
+59c4 1fe22600 copy pdata ,regc 
+59c5 efe08002 ifetch 1 ,temp 
+59c6 204054c4 call pop_tid_follow 
+59c7 20405986 call send_lmp_follow 
+59c8 1a627e00 copy regc ,pdata 
+59c9 67e0804d store 1 ,mem_state_map 
+59ca 20600000 rtn 
+
+tid_reply:
+59cb 6848804d fetcht 1 ,mem_state_map 
+59cc 793f8400 set0 smap_lmptidinit ,temp 
+59cd 6048804d storet 1 ,mem_state_map 
+59ce 20600000 rtn 
+
+tid_initiate:
+59cf 6848804d fetcht 1 ,mem_state_map 
+59d0 79200400 set1 smap_lmptidinit ,temp 
+59d1 6048804d storet 1 ,mem_state_map 
+59d2 20600000 rtn 
+
+tid_check:
+59d3 7d34fe01 nsetflag master ,smap_lmptid ,pdata 
+59d4 6848804d fetcht 1 ,mem_state_map 
+59d5 9842fe00 ixor temp ,pdata 
+59d6 2feffe01 isolate1 smap_lmptid ,pdata 
+59d7 20600000 rtn 
+
+tid_set_reply:
+59d8 6fe0804d fetch 1 ,mem_state_map 
+59d9 7934fe01 setflag master ,smap_lmptid ,pdata 
+59da 67e0804d store 1 ,mem_state_map 
+59db 20600000 rtn 
+
+check_localsm:
+59dc 6fe08876 fetch 1 ,mem_sp_localsm 
+59dd 2fe0fe01 compare local_statemachine ,pdata ,0x7f 
+59de 20600000 rtn 
+
+setlocalsm_master:
+59df 6fe08876 fetch 1 ,mem_sp_localsm 
+59e0 79207e07 set1 7 ,pdata 
+59e1 67e08876 store 1 ,mem_sp_localsm 
+59e2 20600000 rtn 
+
+setlocalsm_slave:
+59e3 6fe08876 fetch 1 ,mem_sp_localsm 
+59e4 793ffe07 set0 7 ,pdata 
+59e5 67e08876 store 1 ,mem_sp_localsm 
+59e6 20600000 rtn 
+
+check_localsm_master:
+59e7 6fe08876 fetch 1 ,mem_sp_localsm 
+59e8 2feffe07 isolate1 7 ,pdata 
+59e9 67e08876 store 1 ,mem_sp_localsm 
+59ea 20600000 rtn 
+
+generate_random_number:
+59eb d8a00424 arg mem_random_number ,contw 
+
+generate_random:
+59ec 18007210 force 16 ,loopcnt 
+
+generate_random_another:
+
+generate_random_loop:
+59ed 180a7e00 random pdata 
+59ee e7e08005 istore 1 ,contw 
+59ef c20059ed loop generate_random_another 
+59f0 20600000 rtn 
+
+generate_linkkey:
+59f1 20406b3a call function_e21 
+59f2 da2041ce arg mem_link_key ,rega 
+59f3 da400454 arg mem_input_store ,regb 
+59f4 efe40011 ifetch 8 ,rega 
+59f5 68488031 fetcht 1 ,mem_state 
+59f6 7d3a0406 nsetflag blank ,state_combkey ,temp 
+59f7 60488031 storet 1 ,mem_state 
+59f8 1a220a00 copy rega ,contw 
+59f9 20406c33 call xor16 
+59fa 202009c6 branch generate_linkkey_continue 
+
+process_conn_sm:
+59fb 4710c024 bpatchx patch24_1 ,mem_patch24 
+59fc 2040599c call lmo_fifo_check 
+59fd 247a0000 nrtn blank 
+
+process_conn_sm_continue:
+59fe 6fe08056 fetch 1 ,mem_conn_sm 
+59ff 207a0000 rtn blank 
+5a00 c0025a4f beq conn_sm_send_conn_req ,host_create_conn_send_conn_req 
+5a01 c002da55 beq conn_sm_wait_conn_accept ,host_create_conn_wait_accept 
+5a02 c0015a46 beq conn_sm_send_features ,host_create_conn_send_features 
+5a03 c001da5d beq conn_sm_wait_features_res ,host_create_conn_waiting 
+5a04 c0075a49 beq conn_sm_send_switch ,host_create_conn_send_switch 
+5a05 c0035a79 beq conn_sm_auth_pair ,host_create_conn_auth_pair 
+5a06 c003da91 beq conn_sm_auth_pair_wait ,host_create_conn_auth_pair_wait 
+5a07 c004da92 beq conn_sm_encrypt ,host_create_conn_encrypt 
+5a08 c0055a9b beq conn_sm_encrypt_wait ,host_create_conn_encrypt_wait 
+5a09 c005da9f beq conn_sm_encrypt_wait_clear ,host_create_conn_encrypt_wait_clear 
+5a0a c0065a67 beq conn_sm_send_setup_complete ,host_create_conn_send_setup_complete 
+5a0b c006da6a beq conn_sm_wait_setup_complete ,host_create_conn_wait_setup_complete 
+5a0c c007da70 beq conn_sm_detach_delay ,host_create_conn_master_detach 
+5a0d c0095a39 beq conn_sm_send_version ,host_create_conn_send_version 
+5a0e c009da5d beq conn_sm_wait_version ,host_create_conn_waiting 
+5a0f c0085a3c beq conn_sm_wait_switch_after_host_connection ,host_creat_conn_wait_switch 
+5a10 c00a5a36 beq conn_sm_send_features_ext ,host_creat_conn_send_feat_ext 
+5a11 c00ada5d beq conn_sm_wait_features_ext ,host_create_conn_waiting 
+5a12 c00b5a30 beq conn_sm_pairing ,host_create_conn_pairing 
+5a13 c00c5a35 beq conn_sm_pairing_wait ,host_create_conn_pairing_wait 
+5a14 c00bda29 beq conn_sm_auth ,host_create_conn_auth 
+5a15 c00cda2f beq conn_sm_auth_wait ,host_create_conn_auth_wait 
+5a16 c00d5a1a beq conn_sm_done ,host_create_conn_done 
+5a17 c00dda24 beq conn_sm_wait_done ,host_create_conn_done_wait 
+5a18 70005600 jam conn_sm_standby ,mem_conn_sm 
+5a19 20600000 rtn 
+
+host_create_conn_done:
+5a1a 6fe083a5 fetch 1 ,mem_lmp_conn_state 
+5a1b c4010000 rtnbit0 received_setup_complete 
+5a1c c4018000 rtnbit0 sent_setup_complete 
+5a1d 70005600 jam conn_sm_standby ,mem_conn_sm 
+5a1e 20405a20 call host_conn_judge_encrypt 
+5a1f 202065d0 branch scheduler_start_upper_sm 
+
+host_conn_judge_encrypt:
+5a20 6fe080bd fetch 1 ,mem_connection_options 
+5a21 c4008000 rtnbit0 connection_encrypt 
+5a22 7000560a jam conn_sm_encrypt_wait ,mem_conn_sm 
+5a23 20600000 rtn 
+
+host_create_conn_done_wait:
+5a24 d8e00007 arg enpt_delay_timer ,queue 
+5a25 20407d82 call timer_check 
+5a26 247a0000 nrtn blank 
+5a27 7000561a jam conn_sm_done ,mem_conn_sm 
+5a28 20600000 rtn 
+
+host_create_conn_auth:
+5a29 6fe080bd fetch 1 ,mem_connection_options 
+5a2a 793ffe00 set0 connection_auth ,pdata 
+5a2b 67e080bd store 1 ,mem_connection_options 
+5a2c 70005619 jam conn_sm_auth_wait ,mem_conn_sm 
+5a2d 70007d0b jam lmp_au_rand ,mem_lmo_opcode2 
+5a2e 20600000 rtn 
+
+host_create_conn_auth_wait:
+5a2f 20600000 rtn 
+
+host_create_conn_pairing:
+5a30 6fe083a8 fetch 1 ,mem_pincode_state 
+5a31 c1810000 rtnne pincode_state_pincode_ready 
+5a32 20405aa1 call host_auth 
+5a33 70005618 jam conn_sm_pairing_wait ,mem_conn_sm 
+5a34 20600000 rtn 
+
+host_create_conn_pairing_wait:
+5a35 20600000 rtn 
+
+host_creat_conn_send_feat_ext:
+5a36 70005615 jam conn_sm_wait_features_ext ,mem_conn_sm 
+5a37 70007d83 jam lmp_ext_features_req ,mem_lmo_opcode2 
+5a38 20600000 rtn 
+
+host_create_conn_send_version:
+5a39 70005613 jam conn_sm_wait_version ,mem_conn_sm 
+5a3a 70007d25 jam lmp_version_req ,mem_lmo_opcode2 
+5a3b 20600000 rtn 
+
+host_creat_conn_wait_switch:
+5a3c 6fe0c642 fetch 1 ,mem_switch_flag 
+5a3d c1000000 rtneq switch_flag_init 
+5a3e c000da44 beq switch_flag_accept ,host_create_conn_switch_accept 
+5a3f d8e00006 arg switch_wait_timer ,queue 
+5a40 20407d82 call timer_check 
+5a41 247a0000 nrtn blank 
+5a42 70464200 jam switch_flag_init ,mem_switch_flag 
+5a43 20205a5e branch host_create_conn_switch 
+
+host_create_conn_switch_accept:
+5a44 20748000 rtn master 
+5a45 20205a79 branch host_create_conn_auth_pair 
+
+host_create_conn_send_features:
+5a46 70005603 jam conn_sm_wait_features_res ,mem_conn_sm 
+5a47 70007d27 jam lmp_features_req ,mem_lmo_opcode2 
+5a48 20600000 rtn 
+
+host_create_conn_send_switch:
+5a49 70007d13 jam lmp_switch_req ,mem_lmo_opcode2 
+5a4a 79200003 set1 mark_switch_initiated ,mark 
+5a4b 70005605 jam conn_sm_wait_conn_accept ,mem_conn_sm 
+5a4c 580001ff setarg 0x1ff 
+5a4d 67e103a6 store 2 ,mem_soft_timer 
+5a4e 20600000 rtn 
+
+host_create_conn_send_conn_req:
+5a4f 70005605 jam conn_sm_wait_conn_accept ,mem_conn_sm 
+5a50 580000ff setarg 0xff 
+5a51 67e103a6 store 2 ,mem_soft_timer 
+5a52 793f8022 set0 mark_reconn_recieve_switch ,mark 
+5a53 70007d33 jam lmp_host_connection_req ,mem_lmo_opcode2 
+5a54 20205369 branch init_lmp_reinit 
+
+host_create_conn_wait_accept:
+5a55 c6110000 rtnmark1 mark_reconn_recieve_switch 
+5a56 6fe103a6 fetch 2 ,mem_soft_timer 
+5a57 1fe0ffff increase -1 ,pdata 
+5a58 2022da5b branch host_create_conn_resend ,zero 
+5a59 67e103a6 store 2 ,mem_soft_timer 
+5a5a 20600000 rtn 
+
+host_create_conn_resend:
+5a5b 7000560e jam conn_sm_send_switch ,mem_conn_sm 
+5a5c 20600000 rtn 
+
+host_create_conn_waiting:
+5a5d 20600000 rtn 
+
+host_create_conn_switch:
+5a5e 6fe083a5 fetch 1 ,mem_lmp_conn_state 
+5a5f c4018000 rtnbit0 sent_setup_complete 
+5a60 c4010000 rtnbit0 received_setup_complete 
+5a61 6fe080bd fetch 1 ,mem_connection_options 
+5a62 793ffe02 set0 connection_switch ,pdata 
+5a63 67e080bd store 1 ,mem_connection_options 
+5a64 70007d13 jam lmp_switch_req ,mem_lmo_opcode2 
+5a65 70005610 jam conn_sm_wait_switch_after_host_connection ,mem_conn_sm 
+5a66 20600000 rtn 
+
+host_create_conn_send_setup_complete:
+5a67 7000560d jam conn_sm_wait_setup_complete ,mem_conn_sm 
+5a68 70007d31 jam lmp_setup_complete ,mem_lmo_opcode2 
+5a69 20600000 rtn 
+
+host_create_conn_wait_setup_complete:
+5a6a 6fe083a5 fetch 1 ,mem_lmp_conn_state 
+5a6b c4010000 rtnbit0 received_setup_complete 
+5a6c 70005600 jam conn_sm_standby ,mem_conn_sm 
+5a6d 20600000 rtn 
+
+host_create_conn_wait_setup_complete_rtn:
+5a6e 70005606 jam conn_sm_auth_pair ,mem_conn_sm 
+5a6f 20600000 rtn 
+
+host_create_conn_master_detach:
+5a70 6fe103a6 fetch 2 ,mem_soft_timer 
+5a71 1fe0ffff increase -1 ,pdata 
+5a72 203a5a75 branch host_create_conn_send_detach ,blank 
+5a73 67e103a6 store 2 ,mem_soft_timer 
+5a74 20600000 rtn 
+
+host_create_conn_send_detach:
+5a75 70007d07 jam lmp_detach ,mem_lmo_opcode2 
+5a76 70039e16 jam local_host ,mem_disconn_reason_send 
+5a77 70005600 jam 0 ,mem_conn_sm 
+5a78 20600000 rtn 
+
+host_create_conn_auth_pair:
+5a79 6fe080bd fetch 1 ,mem_connection_options 
+5a7a c2815a5e bbit1 connection_switch ,host_create_conn_switch 
+5a7b c2805a7e bbit1 connection_auth ,host_create_conn_auth_pair_true 
+
+host_create_conn_sm_done:
+5a7c 7000561a jam conn_sm_done ,mem_conn_sm 
+5a7d 20600000 rtn 
+
+host_create_conn_auth_pair_true:
+5a7e 6fe0c1cd fetch 1 ,mem_link_key_exists 
+5a7f 203a5a8a branch host_create_conn_auth_pair_nokey ,blank 
+5a80 6fe083a5 fetch 1 ,mem_lmp_conn_state 
+5a81 c4018000 rtnbit0 sent_setup_complete 
+5a82 c4010000 rtnbit0 received_setup_complete 
+5a83 6fe203bc fetch 4 ,mem_aurand_send_delay_time 
+5a84 d8400064 arg 100 ,temp 
+5a85 98408400 iadd temp ,temp 
+5a86 1c427e00 copy clkn_bt ,pdata 
+5a87 98467c00 isub temp ,null 
+5a88 24610000 nrtn positive 
+5a89 20205a29 branch host_create_conn_auth 
+
+host_create_conn_auth_pair_nokey:
+5a8a 70005616 jam conn_sm_pairing ,mem_conn_sm 
+5a8b 70479204 jam 4 ,mem_pin_length 
+5a8c 58003030 setarg 0x3030 
+5a8d 67e14793 store 2 ,mem_pin 
+5a8e e7e10005 istore 2 ,contw 
+5a8f 7003a802 jam pincode_state_pincode_ready ,mem_pincode_state 
+5a90 20205a30 branch host_create_conn_pairing 
+
+host_create_conn_auth_pair_wait:
+5a91 20600000 rtn 
+
+host_create_conn_encrypt:
+5a92 6fe080bd fetch 1 ,mem_connection_options 
+5a93 c280da96 bbit1 connection_encrypt ,host_create_conn_encrypt_start 
+5a94 7000561a jam conn_sm_done ,mem_conn_sm 
+5a95 20600000 rtn 
+
+host_create_conn_encrypt_start:
+5a96 6fe080bd fetch 1 ,mem_connection_options 
+5a97 793ffe01 set0 connection_encrypt ,pdata 
+5a98 67e080bd store 1 ,mem_connection_options 
+5a99 70007d0f jam lmp_encryption_mode_req ,mem_lmo_opcode2 
+5a9a 20600000 rtn 
+
+host_create_conn_encrypt_wait:
+5a9b 6fe083ab fetch 1 ,mem_wait_encryption 
+5a9c 207a0000 rtn blank 
+5a9d 70005600 jam conn_sm_standby ,mem_conn_sm 
+5a9e 20205a96 branch host_create_conn_encrypt_start 
+
+host_create_conn_encrypt_wait_clear:
+5a9f 7000560c jam conn_sm_send_setup_complete ,mem_conn_sm 
+5aa0 20600000 rtn 
+
+host_auth:
+5aa1 6fe0804c fetch 1 ,mem_op 
+5aa2 c2815aa6 bbit1 op_inrand_req ,remote_auth 
+5aa3 204059cf call tid_initiate 
+5aa4 70007d08 jam lmp_in_rand ,mem_lmo_opcode2 
+5aa5 20204d65 branch cmd_exit 
+
+remote_auth:
+5aa6 6fe0804c fetch 1 ,mem_op 
+5aa7 793ffe02 set0 op_inrand_req ,pdata 
+5aa8 67e0804c store 1 ,mem_op 
+5aa9 204056ad call lmp_accept_inrand 
+5aaa 204059d8 call tid_set_reply 
+5aab 20204d65 branch cmd_exit 
+
+pincode_reinit:
+5aac 58000004 setarg 4 
+5aad 67e0c792 store 1 ,mem_pin_length 
+5aae 58003030 setarg 0x3030 
+5aaf e7e10005 istore 2 ,contw 
+5ab0 e7e10005 istore 2 ,contw 
+5ab1 20600000 rtn 
+
+twspi_reset:
+5ab2 47114024 bpatchx patch24_2 ,mem_patch24 
+5ab3 1fe17eff and_into 0xff ,pdata 
+5ab4 d8a08070 arg core_gpio_conf ,contw 
+5ab5 98a08a00 iadd contw ,contw 
+5ab6 18a22200 copy contw ,rega 
+5ab7 d840003e arg gpcfg_output_low ,temp 
+5ab8 e0408005 istoret 1 ,contw 
+5ab9 20405acb call twspi_disable 
+5aba 2000001e nop 30 
+5abb 1a220a00 copy rega ,contw 
+5abc d840003f arg gpcfg_output_high ,temp 
+5abd e0408005 istoret 1 ,contw 
+5abe 20205ad3 branch twspi_enable 
+
+twspi2_reset:
+5abf 1fe17eff and_into 0xff ,pdata 
+5ac0 d8a08070 arg core_gpio_conf ,contw 
+5ac1 98a08a00 iadd contw ,contw 
+5ac2 18a22200 copy contw ,rega 
+5ac3 d840003e arg gpcfg_output_low ,temp 
+5ac4 e0408005 istoret 1 ,contw 
+5ac5 20405acf call twspi2_disable 
+5ac6 2000001e nop 30 
+5ac7 1a220a00 copy rega ,contw 
+5ac8 d840003f arg gpcfg_output_high ,temp 
+5ac9 e0408005 istoret 1 ,contw 
+5aca 20205ad7 branch twspi2_enable 
+
+twspi_disable:
+5acb 6ff08085 fetch 1 ,core_aes_en 
+5acc 1fe17efb and_into 0xfb ,pdata 
+5acd 67f08085 store 1 ,core_aes_en 
+5ace 20600000 rtn 
+
+twspi2_disable:
+5acf 6ff08085 fetch 1 ,core_aes_en 
+5ad0 1fe17ef7 and_into 0xf7 ,pdata 
+5ad1 67f08085 store 1 ,core_aes_en 
+5ad2 20600000 rtn 
+
+twspi_enable:
+5ad3 6ff08085 fetch 1 ,core_aes_en 
+5ad4 1fe1fe04 or_into 0x04 ,pdata 
+5ad5 67f08085 store 1 ,core_aes_en 
+5ad6 20600000 rtn 
+
+twspi2_enable:
+5ad7 6ff08085 fetch 1 ,core_aes_en 
+5ad8 1fe1fe08 or_into 0x08 ,pdata 
+5ad9 67f08085 store 1 ,core_aes_en 
+5ada 20600000 rtn 
+
+sensor_read:
+5adb 1fe22400 copy pdata ,regb 
+5adc 20405aed call spi_ncs_enable 
+5add 20000064 nop 100 
+5ade 1a427e00 copy regb ,pdata 
+5adf 20405af3 call twspi_read 
+5ae0 1fe22400 copy pdata ,regb 
+5ae1 20405aef call spi_ncs_disable 
+5ae2 20000064 nop 100 
+5ae3 1a427e00 copy regb ,pdata 
+5ae4 20600000 rtn 
+
+sensor_write:
+5ae5 1fe22400 copy pdata ,regb 
+5ae6 20405aed call spi_ncs_enable 
+5ae7 20000064 nop 100 
+5ae8 1a427e00 copy regb ,pdata 
+5ae9 20405af1 call twspi_write 
+5aea 20405aef call spi_ncs_disable 
+5aeb 20000064 nop 100 
+5aec 20600000 rtn 
+
+spi_ncs_gpio_init:
+
+spi_ncs_enable:
+5aed 6848c48a fetcht 1 ,mem_spi_ncs_gpio 
+5aee 202060b8 branch gpio_out_active 
+
+spi_ncs_disable:
+5aef 6848c48a fetcht 1 ,mem_spi_ncs_gpio 
+5af0 202060b4 branch gpio_out_inactive 
+
+twspi_write:
+5af1 20205c70 branch spid_write_reg 
+
+twspi2_write:
+5af2 20205d47 branch spid2_write_reg 
+
+twspi_read:
+5af3 20205c77 branch spid_read_reg 
+
+twspi2_read:
+5af4 20205d4d branch spid2_read_reg 
+
+aes_disable:
+5af5 6ff08085 fetch 1 ,core_aes_en 
+5af6 1fe17efd and_into 0xfd ,pdata 
+5af7 67f08085 store 1 ,core_aes_en 
+5af8 20600000 rtn 
+
+read_function_aes:
+5af9 24345afd nbranch read_function ,user 
+5afa 6ff08085 fetch 1 ,core_aes_en 
+5afb 1fe1fe02 or_into 0x2 ,pdata 
+5afc 67f08085 store 1 ,core_aes_en 
+
+read_function:
+5afd 18427c00 copy temp ,null 
+5afe 2022db00 branch read_fuction_zero ,zero 
+5aff 1a627a00 copy regc ,pc 
+
+read_fuction_zero:
+5b00 2fcc0000 isolate0 0 ,null 
+5b01 20205bcc branch set_ucode_status 
+
+get_block_header:
+5b02 18000404 force 4 ,temp 
+
+get_block_header0:
+5b03 da2002eb arg mem_ucode_buf ,rega 
+5b04 20405af5 call aes_disable 
+5b05 20405afd call read_function 
+5b06 da2055aa arg 0x55aa ,rega 
+5b07 6fe102eb fetch 2 ,mem_ucode_buf 
+5b08 e8410006 ifetcht 2 ,contr 
+5b09 9a267c00 isub rega ,null 
+5b0a 20600000 rtn 
+
+read_first_block:
+5b0b d8400002 arg 2 ,temp 
+5b0c da2002f1 arg mem_ucode_ptr ,rega 
+5b0d 20405afd call read_function 
+5b0e 6fe102f1 fetch 2 ,mem_ucode_ptr 
+5b0f 67e102e4 store 2 ,mem_addr_mi 
+5b10 20545b12 call get_iv ,user 
+5b11 20600000 rtn 
+
+get_iv:
+5b12 d8400010 arg 16 ,temp 
+5b13 da2002f3 arg mem_ucode_keybuf ,rega 
+5b14 20405af5 call aes_disable 
+5b15 20405afd call read_function 
+5b16 d8c002f3 arg mem_ucode_keybuf ,contr 
+5b17 df200010 arg 16 ,loopcnt 
+5b18 20406ddf call aes_load_data 
+5b19 20406d8f call aes_init 
+5b1a 20406df8 call aes_clear_data 
+5b1b 20206d89 branch do_aes_cbc 
+
+load_storage:
+5b1c 7856fc00 disable match 
+5b1d 20405b02 call get_block_header 
+5b1e 24628000 nrtn zero 
+5b1f 7836fc00 enable match 
+5b20 70802380 jam 0x80 ,core_ucode_ctrl 
+5b21 70802200 jam 0 ,core_ucode_hi 
+5b22 70802400 jam 0 ,core_ucode_low 
+5b23 da208025 arg core_ucode_data ,rega 
+5b24 20405af9 call read_function_aes 
+5b25 70802300 jam 0x0 ,core_ucode_ctrl 
+
+load_storage_loop:
+5b26 d8400006 arg 6 ,temp 
+5b27 20405b03 call get_block_header0 
+5b28 24628000 nrtn zero 
+5b29 efe10006 ifetch 2 ,contr 
+5b2a 98002200 iforce rega 
+5b2b 20405afd call read_function 
+5b2c 20205b26 branch load_storage_loop 
+
+load_storage_efuse:
+5b2d 6fe08a04 fetch 1 ,mem_tmp_buffer + efuse_offset_offset 
+5b2e d8c00a01 arg mem_tmp_buffer ,contr 
+5b2f 98c08c00 iadd contr ,contr 
+5b30 70802380 jam 0x80 ,core_ucode_ctrl 
+5b31 70802200 jam 0 ,core_ucode_hi 
+5b32 70802400 jam 0 ,core_ucode_low 
+5b33 da208025 arg core_ucode_data ,rega 
+5b34 ef208006 ifetchr loopcnt ,1 ,contr 
+5b35 1f267c00 sub loopcnt ,0 ,null 
+5b36 2442db3f ncall load_efuse_read_code_loop ,zero 
+5b37 70802300 jam 0x0 ,core_ucode_ctrl 
+
+load_storage_efuse_loop:
+5b38 efe08006 ifetch 1 ,contr 
+5b39 207a0000 rtn blank 
+5b3a 1fe27200 copy pdata ,loopcnt 
+5b3b ea410006 ifetchr regb ,2 ,contr 
+5b3c 1a420a00 copy regb ,contw 
+5b3d 20407d6f call memcpy_loop 
+5b3e 20205b38 branch load_storage_efuse_loop 
+
+load_efuse_read_code_loop:
+5b3f efe08006 ifetch 1 ,contr 
+5b40 e7e08011 istore 1 ,rega 
+5b41 c2005b3f loop load_efuse_read_code_loop 
+5b42 20600000 rtn 
+
+reload_eeprom:
+5b43 20407e10 call clean_mem 
+5b44 58001000 setarg 0x1000 
+5b45 67e102e4 store 2 ,mem_addr_mi 
+5b46 da605e2f arg iicd_read_eep ,regc 
+5b47 df200002 arg 2 ,loopcnt 
+
+reload_eeprom_loop:
+5b48 20405b02 call get_block_header 
+5b49 24628000 nrtn zero 
+5b4a 6fe102e4 fetch 2 ,mem_addr_mi 
+5b4b 1ff0fe00 byteswap pdata ,pdata 
+5b4c 9840fe00 iadd temp ,pdata 
+5b4d 1ff0fe00 byteswap pdata ,pdata 
+5b4e 67e102e4 store 2 ,mem_addr_mi 
+5b4f c2005b48 loop reload_eeprom_loop 
+5b50 20205b26 branch load_storage_loop 
+
+loadcode:
+5b51 20407e10 call clean_mem 
+5b52 70805025 jam 0x25 ,core_clkoff 
+5b53 58000000 setarg 0 
+5b54 da200a01 arg mem_tmp_buffer ,rega 
+5b55 d8400040 arg 64 ,temp 
+5b56 20405eb0 call efuse_read_data 
+5b57 20405b9d call loadcode_efuse_check 
+5b58 78547c00 disable user 
+5b59 6fe08a01 fetch 1 ,mem_tmp_buffer + efuse_offset_ucode 
+5b5a c301db62 bbit0 ucode_flag_enc ,loadcode_efuse 
+5b5b 70800608 jam lock_otp ,core_misc_ctrl 
+5b5c 7920002b set1 mark_otp_encrypt ,mark 
+5b5d 18007004 force regidx_key ,regext_index 
+5b5e 20406df9 call aes_clear 
+5b5f 18007004 force regidx_key ,regext_index 
+5b60 6de20a3d fetchr regext ,4 ,mem_tmp_buffer + efuse_offset_key_addr 
+5b61 78347c00 enable user 
+
+loadcode_efuse:
+5b62 6fe20a01 fetch 4 ,mem_tmp_buffer 
+5b63 203a5b66 branch loadcode_iic ,blank 
+5b64 20405bf7 call app_lpm_peripheral_lock_check 
+5b65 20405b2d call load_storage_efuse 
+
+loadcode_iic:
+5b66 7041e600 jam 0 ,mem_loadcode_times 
+
+loadcode_iic_2:
+5b67 6fe08a01 fetch 1 ,mem_tmp_buffer + efuse_offset_ucode 
+5b68 c2815b81 bbit1 ucode_flag_skip_eep ,loadcode_spi 
+5b69 20405bc5 call loadcode_check_times 
+5b6a 20405b79 call iicd_load_gpio_init 
+5b6b 20405e0c call clear_eeprom_size_2k 
+5b6c 20405bbf call loadcode_iic_by_eeprom 
+5b6d 2436db71 nbranch loadcode_iic_eeprom_2k ,match 
+5b6e 6fe082e1 fetch 1 ,mem_ucode_status 
+5b6f c3005b67 bbit0 0 ,loadcode_iic_2 
+5b70 20205b8f branch loadcode_hci 
+
+loadcode_iic_eeprom_2k:
+5b71 20405e09 call set_eeprom_size_2k 
+5b72 6fe08a01 fetch 1 ,mem_tmp_buffer + efuse_offset_ucode 
+5b73 c2815b81 bbit1 ucode_flag_skip_eep ,loadcode_spi 
+5b74 20405bbf call loadcode_iic_by_eeprom 
+5b75 2436db81 nbranch loadcode_spi ,match 
+5b76 6fe082e1 fetch 1 ,mem_ucode_status 
+5b77 c3005b67 bbit0 0 ,loadcode_iic_2 
+5b78 20205b8f branch loadcode_hci 
+
+iicd_load_gpio_init:
+5b79 6fe0c4c6 fetch 1 ,mem_eeprom_sda_gpio 
+5b7a 6848c4c5 fetcht 1 ,mem_eeprom_scl_gpio 
+5b7b 98467c00 isub temp ,null 
+5b7c 2422ddf2 nbranch iicd_read_init_pin ,zero 
+
+iicd_load_default_gpio:
+5b7d 7044c40f jam 15 ,mem_eeprom_wp_gpio 
+5b7e 7044c510 jam 16 ,mem_eeprom_scl_gpio 
+5b7f 7044c611 jam 17 ,mem_eeprom_sda_gpio 
+5b80 20205df2 branch iicd_read_init_pin 
+
+loadcode_spi:
+5b81 7041e600 jam 0 ,mem_loadcode_times 
+
+loadcode_spi_loop:
+5b82 20405bc5 call loadcode_check_times 
+5b83 6fe08a01 fetch 1 ,mem_tmp_buffer + efuse_offset_ucode 
+5b84 c280db8f bbit1 ucode_flag_skip_flash ,loadcode_hci 
+5b85 20405cc1 call spid_init_flash 
+5b86 200000c8 nop 200 
+5b87 20405ccf call spid_flash_release_form_powerdown 
+5b88 20000064 nop 100 
+5b89 da605d03 arg spid_load_flash ,regc 
+5b8a 20405b0b call read_first_block 
+5b8b 20405b1c call load_storage 
+5b8c 2436db8f nbranch loadcode_hci ,match 
+5b8d 6fe082e1 fetch 1 ,mem_ucode_status 
+5b8e c3005b82 bbit0 0 ,loadcode_spi_loop 
+
+loadcode_hci:
+5b8f 6fe08a01 fetch 1 ,mem_tmp_buffer + efuse_offset_ucode 
+5b90 c3005b93 bbit0 ucode_flag_hci ,clear_key_buf 
+5b91 20405b93 call clear_key_buf 
+5b92 20204ca7 branch hci_init 
+
+clear_key_buf:
+5b93 58000000 setarg 0 
+5b94 67e20a3d store 4 ,mem_tmp_buffer + efuse_offset_key_addr 
+5b95 18007004 force regidx_key ,regext_index 
+5b96 20406df9 call aes_clear 
+5b97 70805021 jam 0x21 ,core_clkoff 
+5b98 20600000 rtn 
+
+loadcode_efuse_check_xor:
+5b99 1ff18400 rshift4 pdata ,temp 
+5b9a 1fe17e0f and pdata ,0x0f ,pdata 
+5b9b 9842fe00 ixor temp ,pdata 
+5b9c 20600000 rtn 
+
+loadcode_efuse_check:
+5b9d 6fe20a01 fetch 4 ,mem_tmp_buffer 
+5b9e 207a0000 rtn blank 
+5b9f 6fe08a01 fetch 1 ,mem_tmp_buffer + efuse_offset_ucode 
+5ba0 20405b99 call loadcode_efuse_check_xor 
+5ba1 c087dbcb bne 0x0f ,loadcode_error 
+5ba2 6fe08a02 fetch 1 ,mem_tmp_buffer + efuse_offset_device 
+5ba3 20405b99 call loadcode_efuse_check_xor 
+5ba4 c087dbcb bne 0x0f ,loadcode_error 
+
+loadcode_efuse_check_sum:
+5ba5 6fe08a01 fetch 1 ,mem_tmp_buffer 
+5ba6 e8408006 ifetcht 1 ,contr 
+5ba7 9840fe00 iadd temp ,pdata 
+5ba8 e8408006 ifetcht 1 ,contr 
+5ba9 9840fe00 iadd temp ,pdata 
+5baa e8408006 ifetcht 1 ,contr 
+5bab 9840a200 iadd temp ,rega 
+5bac dfe00a01 arg mem_tmp_buffer ,pdata 
+5bad 98408c00 iadd temp ,contr 
+5bae 1a227e00 copy rega ,pdata 
+5baf ef208006 ifetchr loopcnt ,1 ,contr 
+5bb0 9f20fe00 iadd loopcnt ,pdata 
+5bb1 20407e6e call cal_sum 
+5bb2 20405bb8 call loadcode_efuse_check_sum_loop 
+5bb3 e8408006 ifetcht 1 ,contr 
+5bb4 1fe17eff and pdata ,0xff ,pdata 
+5bb5 98467c00 isub temp ,null 
+5bb6 2422dbcb nbranch loadcode_error ,zero 
+5bb7 20600000 rtn 
+
+loadcode_efuse_check_sum_loop:
+5bb8 ef208006 ifetchr loopcnt ,1 ,contr 
+5bb9 1f267c00 sub loopcnt ,0 ,null 
+5bba 20628000 rtn zero 
+5bbb 9f20fe00 iadd loopcnt ,pdata 
+5bbc 1f20f202 increase 2 ,loopcnt 
+5bbd 20407e6e call cal_sum 
+5bbe 20205bb8 branch loadcode_efuse_check_sum_loop 
+
+loadcode_iic_by_eeprom:
+5bbf 58000000 setarg 0x0 
+5bc0 67e102e4 store 2 ,mem_addr_mi 
+5bc1 da605e2f arg iicd_read_eep ,regc 
+5bc2 20405ddb call iic_init_600khz 
+5bc3 20405b0b call read_first_block 
+5bc4 20205b1c branch load_storage 
+
+loadcode_check_times:
+5bc5 6fe0c1e6 fetch 1 ,mem_loadcode_times 
+5bc6 1fe0fe01 increase 1 ,pdata 
+5bc7 1fe67c03 sub pdata ,3 ,null 
+5bc8 24215bcb nbranch loadcode_error ,positive 
+5bc9 67e0c1e6 store 1 ,mem_loadcode_times 
+5bca 20600000 rtn 
+
+loadcode_error:
+5bcb 20205c3d branch app_lpm_mpu_lock_br_ble 
+
+set_ucode_status:
+5bcc 6fe082e1 fetch 1 ,mem_ucode_status 
+5bcd 1fe3fe00 lshift pdata ,pdata 
+5bce 7920fe00 setflag true ,0 ,pdata 
+5bcf 2a2c000f isolate0 15 ,rega 
+5bd0 20608000 rtn true 
+5bd1 67e082e1 store 1 ,mem_ucode_status 
+5bd2 20600000 rtn 
+
+decrypt_code:
+5bd3 6ff08085 fetch 1 ,core_aes_en 
+5bd4 c4008000 rtnbit0 1 
+5bd5 20205bd9 branch decrypt_code_skip 
+
+decrypt_code_loop:
+5bd6 6ff0812c fetch 1 ,core_dma_status 
+5bd7 afefffff qisolate1 pdata 
+5bd8 20608000 rtn true 
+
+decrypt_code_skip:
+5bd9 6ff08108 fetch 1 ,core_misc_status 
+5bda c300dbd6 bbit0 1 ,decrypt_code_loop 
+5bdb 20406d89 call do_aes_cbc 
+5bdc 20205bd6 branch decrypt_code_loop 
+
+save_ucode:
+5bdd 1f220400 copy loopcnt ,temp 
+5bde 604941ab storet 2 ,mem_patch_len 
+5bdf 70802380 jam 0x80 ,core_ucode_ctrl 
+5be0 70802200 jam 0 ,core_ucode_hi 
+5be1 70802400 jam 0 ,core_ucode_low 
+5be2 67e141a9 store 2 ,mem_patch_ptr 
+5be3 98000a00 iforce contw 
+5be4 1f2bf200 lshift2 loopcnt ,loopcnt 
+
+save_ucode_loop:
+5be5 6ff08025 fetch 1 ,core_ucode_data 
+5be6 e7e08005 istore 1 ,contw 
+5be7 c2005be5 loop save_ucode_loop 
+5be8 70802300 jam 0x0 ,core_ucode_ctrl 
+5be9 20600000 rtn 
+
+load_ucode:
+5bea 6fe141a9 fetch 2 ,mem_patch_ptr 
+5beb 207a0000 rtn blank 
+5bec 70802380 jam 0x80 ,core_ucode_ctrl 
+5bed 70802200 jam 0 ,core_ucode_hi 
+5bee 70802400 jam 0 ,core_ucode_low 
+5bef 684941ab fetcht 2 ,mem_patch_len 
+5bf0 184bf200 lshift2 temp ,loopcnt 
+5bf1 98000c00 iforce contr 
+
+load_ucode_loop:
+5bf2 efe08006 ifetch 1 ,contr 
+5bf3 67f08025 store 1 ,core_ucode_data 
+5bf4 c2005bf2 loop load_ucode_loop 
+5bf5 70802300 jam 0x0 ,core_ucode_ctrl 
+5bf6 20600000 rtn 
+
+app_lpm_peripheral_lock_check:
+5bf7 6fe08a02 fetch 1 ,mem_tmp_buffer + efuse_offset_device 
+5bf8 1fe17e0f and pdata ,0x0f ,pdata 
+5bf9 c0055c06 beq dvc_op_module ,app_lpm_peripheral_lock_module 
+5bfa c000dc06 beq dvc_op_hci ,app_lpm_peripheral_lock_hci 
+5bfb c0025c08 beq dvc_op_dongle ,app_lpm_peripheral_lock_dongle 
+5bfc c002dc0c beq dvc_op_test ,app_lpm_peripheral_lock_test 
+5bfd c0045c0d beq dvc_op_mouse ,app_lpm_peripheral_lock_mouse 
+5bfe c004dc11 beq dvc_op_shutter ,app_lpm_peripheral_lock_shutter 
+5bff c005dc15 beq dvc_op_ali_mesh ,app_lpm_peripheral_lock_mesh 
+5c00 c0065c06 beq dvc_op_hci_boot ,app_lpm_peripheral_lock_hciboot 
+5c01 c006dc17 beq dvc_op_remote_car ,app_lpm_peripheral_lock_remote_car 
+5c02 c0075c1b beq dvc_op_car ,app_lpm_peripheral_lock_car 
+5c03 c007dc1f beq dvc_op_antilost ,app_lpm_peripheral_lock_antilost 
+5c04 c0015c26 beq dvc_op_esl ,app_lpm_peripheral_lock_esl 
+5c05 20600000 rtn 
+
+app_lpm_peripheral_lock_module:
+
+app_lpm_peripheral_lock_hci:
+
+app_lpm_peripheral_lock_hciboot:
+5c06 20405c23 call app_lpm_mpu_lock_mesh 
+5c07 20205c47 branch lpm_write_lock 
+
+app_lpm_peripheral_lock_dongle:
+5c08 dfe035fa arg eink_log_push_2bdec ,pdata 
+5c09 d8404c7f arg ui_soft_switch_power_off ,temp 
+5c0a 20405c2c call app_mpu_s0_lock 
+5c0b 20205c47 branch lpm_write_lock 
+
+app_lpm_peripheral_lock_test:
+5c0c 20205c47 branch lpm_write_lock 
+
+app_lpm_peripheral_lock_mouse:
+5c0d dfe030fe arg antilost_init ,pdata 
+5c0e d8403cf9 arg module_set_state ,temp 
+5c0f 20405c2c call app_mpu_s0_lock 
+5c10 20205c47 branch lpm_write_lock 
+
+app_lpm_peripheral_lock_shutter:
+5c11 dfe030fe arg antilost_init ,pdata 
+5c12 d8404a7c arg remote_car_moto_data_enable_user ,temp 
+5c13 20405c2c call app_mpu_s0_lock 
+5c14 20205c47 branch lpm_write_lock 
+
+app_lpm_peripheral_lock_mesh:
+5c15 20405c2f call app_lpm_mpu_lock_app 
+5c16 20205c47 branch lpm_write_lock 
+
+app_lpm_peripheral_lock_remote_car:
+5c17 dfe030fe arg antilost_init ,pdata 
+5c18 d8404997 arg mouse_low_voltage_led_no_enter_lpm_blink ,temp 
+5c19 20405c2c call app_mpu_s0_lock 
+5c1a 20205c47 branch lpm_write_lock 
+
+app_lpm_peripheral_lock_car:
+5c1b dfe034d8 arg dongle_init ,pdata 
+5c1c d8404c7f arg ui_soft_switch_power_off ,temp 
+5c1d 20405c2c call app_mpu_s0_lock 
+5c1e 20205c47 branch lpm_write_lock 
+
+app_lpm_peripheral_lock_antilost:
+5c1f dfe0329a arg car_init ,pdata 
+5c20 d8404c7f arg ui_soft_switch_power_off ,temp 
+5c21 20405c2c call app_mpu_s0_lock 
+5c22 20205c47 branch lpm_write_lock 
+
+app_lpm_mpu_lock_mesh:
+5c23 dfe01554 arg ali_mesh_access_layer_check_access_message_opcode ,pdata 
+5c24 d8401dfe arg ali_mesh_upper_transport_layer_clear_tx_buffer ,temp 
+5c25 20205c2c branch app_mpu_s0_lock 
+
+app_lpm_peripheral_lock_esl:
+5c26 dfe03885 arg module_init ,pdata 
+5c27 d8404c7f arg ui_soft_switch_power_off ,temp 
+5c28 20405c2c call app_mpu_s0_lock 
+5c29 20205c47 branch lpm_write_lock 
+
+app_lpm_mpu_lock_module:
+5c2a dfe03885 arg module_init ,pdata 
+5c2b d8403cf9 arg module_set_state ,temp 
+
+app_mpu_s0_lock:
+5c2c 67f10013 store 2 ,core_mpu_s0_saddr 
+5c2d 60590015 storet 2 ,core_mpu_s0_eaddr 
+5c2e 20600000 rtn 
+
+app_lpm_mpu_lock_app:
+5c2f dfe030fe arg antilost_init ,pdata 
+5c30 d8404c7f arg ui_soft_switch_power_off ,temp 
+5c31 20205c2c branch app_mpu_s0_lock 
+
+app_lpm_mpu_lock_br:
+5c32 dfe0536d arg parse_lmp ,pdata 
+5c33 d8405aa6 arg remote_auth ,temp 
+5c34 20205c37 branch app_mpu_s1_lock 
+
+app_lpm_mpu_lock_ble:
+5c35 dfe024dd arg le_parse_att ,pdata 
+5c36 d8402a9f arg le_send_ll_one_lenth ,temp 
+
+app_mpu_s1_lock:
+5c37 67f10017 store 2 ,core_mpu_s1_saddr 
+5c38 60590019 storet 2 ,core_mpu_s1_eaddr 
+5c39 20600000 rtn 
+
+app_lpm_mpu_lock_24g:
+5c3a dfe02aa4 arg g24_prep ,pdata 
+5c3b d8402fa9 arg power_ctrl_pac_succ_cnt_reinit ,temp 
+5c3c 20205c37 branch app_mpu_s1_lock 
+
+app_lpm_mpu_lock_br_ble:
+5c3d 20405c32 call app_lpm_mpu_lock_br 
+5c3e dfe024dd arg le_parse_att ,pdata 
+5c3f d8402a9f arg le_send_ll_one_lenth ,temp 
+5c40 20205c2c branch app_mpu_s0_lock 
+
+app_lpm_mpu_mode_lock:
+5c41 6fe08a03 fetch 1 ,mem_tmp_buffer + efuse_offset_peripherals_lock 
+5c42 1fe17ec0 and pdata ,0xc0 ,pdata 
+5c43 c0605c3d beq 0xc0 ,app_lpm_mpu_lock_br_ble 
+5c44 c2835c35 bbit1 efuse_le_lock_bit ,app_lpm_mpu_lock_ble 
+5c45 c283dc32 bbit1 efuse_br_lock_bit ,app_lpm_mpu_lock_br 
+5c46 20600000 rtn 
+
+lpm_write_lock:
+5c47 20405c41 call app_lpm_mpu_mode_lock 
+5c48 6fe08a03 fetch 1 ,mem_tmp_buffer + efuse_offset_peripherals_lock 
+5c49 1fe1221f and pdata ,0x1f ,rega 
+5c4a 6fe08a01 fetch 1 ,mem_tmp_buffer + efuse_offset_ucode 
+5c4b 1fe17e0f and pdata ,0x0f ,pdata 
+5c4c 68488a02 fetcht 1 ,mem_tmp_buffer + efuse_offset_device 
+5c4d 1841040f and temp ,0x0f ,temp 
+5c4e 18520400 lshift4 temp ,temp 
+5c4f 9841fe00 ior temp ,pdata 
+5c50 1a2d2200 lshift8 rega ,rega 
+5c51 9a21fe00 ior rega ,pdata 
+5c52 79207e0d set1 lpmreg_rom_lock_bit ,pdata 
+5c53 79207e0e set1 lpmreg_ice_mode_bit ,pdata 
+5c54 67f2004c store 4 ,core_lpm_reg 
+5c55 20405c5b call lpm_write2_ctrl_option 
+5c56 70801108 jam 8 ,core_encrypt 
+5c57 20600000 rtn 
+
+lpm_rom_lock:
+5c58 6ff10120 fetch 2 ,core_ucode_flag 
+5c59 79207e0d set1 lpmreg_rom_lock_bit ,pdata 
+5c5a 67f2004c store 4 ,core_lpm_reg 
+
+lpm_write2_ctrl_option:
+5c5b 58000002 setarg lpmreg_sel_option 
+
+lpm_write2:
+5c5c 37d98200 until null ,lpo_edge 
+5c5d 67f08012 store 1 ,core_lpm_wr2 
+5c5e 37d98200 until null ,lpo_edge 
+5c5f 37d98200 until null ,lpo_edge 
+5c60 20600000 rtn 
+
+lpm_write_ice_disable:
+5c61 6ff10120 fetch 2 ,core_ucode_flag 
+5c62 793ffe0e set0 lpmreg_ice_mode_bit ,pdata 
+5c63 67f2004c store 4 ,core_lpm_reg 
+5c64 20205c5b branch lpm_write2_ctrl_option 
+
+spid_init:
+5c65 4711c024 bpatchx patch24_3 ,mem_patch24 
+5c66 20205c67 branch spid_init_common 
+
+spid_init_common:
+5c67 6fe0c488 fetch 1 ,mem_spi_init_clk 
+5c68 67f08086 store 1 ,core_spid_ctrl 
+5c69 6fe0c489 fetch 1 ,mem_spi_init_delay_time 
+5c6a 67f08087 store 1 ,core_spid_delay 
+5c6b 580002e2 setarg mem_spid_tbuf 
+5c6c 67f1008a store 2 ,core_spid_txaddr 
+5c6d 580002e7 setarg mem_spid_rbuf 
+5c6e 67f1008c store 2 ,core_spid_rxaddr 
+5c6f 20205acb branch twspi_disable 
+
+spid_write_reg:
+5c70 79207e07 set1 7 ,pdata 
+5c71 67e102e2 store 2 ,mem_spid_tbuf 
+5c72 47124024 bpatchx patch24_4 ,mem_patch24 
+5c73 70808802 jam 2 ,core_spid_txlen 
+5c74 70808e00 jam 0 ,core_spid_rxlen 
+5c75 70800602 jam spid_start ,core_misc_ctrl 
+5c76 20205c80 branch wait_spid_done 
+
+spid_read_reg:
+5c77 18000401 force 1 ,temp 
+
+spid_read_regs:
+5c78 67e082e2 store 1 ,mem_spid_tbuf 
+5c79 4712c024 bpatchx patch24_5 ,mem_patch24 
+5c7a 70808801 jam 1 ,core_spid_txlen 
+5c7b 6059008e storet 2 ,core_spid_rxlen 
+5c7c 70800602 jam spid_start ,core_misc_ctrl 
+5c7d 20405c80 call wait_spid_done 
+5c7e 6fe082e7 fetch 1 ,mem_spid_rbuf 
+5c7f 20600000 rtn 
+
+wait_spid_done:
+5c80 6fe140de fetch 2 ,mem_afh_error_total 
+5c81 1fe0fe01 increase 1 ,pdata 
+5c82 67e140de store 2 ,mem_afh_error_total 
+5c83 6ff0812c fetch 1 ,core_dma_status 
+5c84 c301dc80 bbit0 spid_done ,wait_spid_done 
+5c85 20600000 rtn 
+
+flash_write:
+5c86 78547c00 disable user 
+5c87 1fe22400 copy pdata ,regb 
+5c88 6fe0c4af fetch 1 ,mem_spi_write_flash_sm 
+5c89 c1800000 rtnne flash_sm_no_buys 
+5c8a 78347c00 enable user 
+5c8b 1a427e00 copy regb ,pdata 
+5c8c 20205c94 branch spid_flash_write_start 
+
+flash_write_spi_sm_timer:
+5c8d 6fe0c4af fetch 1 ,mem_spi_write_flash_sm 
+5c8e c000dc94 beq flash_sm_start ,spid_flash_write_start 
+5c8f c0015c9a beq flash_sm_erase_sector ,spid_flash_erase_sector 
+5c90 c001dca2 beq flash_sm_wait_erase_sector ,spid_flash_wait_erase_sector 
+5c91 c0025ca6 beq flash_sm_write_data ,spid_flash_write_data 
+5c92 c002dcac beq flash_sm_wait_write_data ,spid_flash_wait_write_data 
+5c93 20600000 rtn 
+
+spid_flash_write_start:
+5c94 67e1c4a8 store 3 ,mem_spi_write_addr 
+5c95 1a227e00 copy rega ,pdata 
+5c96 67e144ab store 2 ,mem_spi_write_ptr 
+5c97 604944ad storet 2 ,mem_spi_write_len 
+5c98 7044af02 jam flash_sm_erase_sector ,mem_spi_write_flash_sm 
+5c99 20205cc1 branch spid_init_flash 
+
+spid_flash_erase_sector:
+5c9a 20405cc1 call spid_init_flash 
+5c9b 7044af03 jam flash_sm_wait_erase_sector ,mem_spi_write_flash_sm 
+5c9c 20405cc6 call spid_unlock_flash 
+5c9d da2002e2 arg mem_spid_tbuf ,rega 
+5c9e 70808804 jam 4 ,core_spid_txlen 
+5c9f 6fe1c4a8 fetch 3 ,mem_spi_write_addr 
+5ca0 d8400020 arg flash_command_sector_erase ,temp 
+5ca1 20205cd7 branch spid_write_flash_common 
+
+spid_flash_wait_erase_sector:
+5ca2 20405cc1 call spid_init_flash 
+5ca3 20405cfa call wait_spid_flash_done 
+5ca4 7044af04 jam flash_sm_write_data ,mem_spi_write_flash_sm 
+5ca5 20600000 rtn 
+
+spid_flash_write_data:
+5ca6 20405cc1 call spid_init_flash 
+5ca7 7044af05 jam flash_sm_wait_write_data ,mem_spi_write_flash_sm 
+5ca8 20405cc6 call spid_unlock_flash 
+5ca9 20405cb9 call spid_flash_data_preserve 
+5caa 20405cd3 call spid_write_flash 
+5cab 20205cb4 branch spid_flash_data_recover 
+
+spid_flash_wait_write_data:
+5cac 20405cc1 call spid_init_flash 
+5cad 20405cc6 call spid_unlock_flash 
+5cae 58000005 setarg flash_read_satus 
+5caf 20405c77 call spid_read_reg 
+5cb0 c3800000 rtnbit1 flash_status_wip 
+5cb1 7044af00 jam flash_sm_no_buys ,mem_spi_write_flash_sm 
+5cb2 6fe14473 fetch 2 ,mem_cb_spi_flash_write_complate 
+5cb3 20207e13 branch callback_func 
+
+spid_flash_data_recover:
+5cb4 6fe20964 fetch 4 ,mem_temp 
+5cb5 684944ab fetcht 2 ,mem_spi_write_ptr 
+
+spid_flash_data_recover_comm:
+5cb6 184085fc increase -4 ,temp 
+5cb7 e7e20002 istore 4 ,temp 
+5cb8 20600000 rtn 
+
+spid_flash_data_preserve:
+5cb9 684944ab fetcht 2 ,mem_spi_write_ptr 
+5cba 18422200 copy temp ,rega 
+5cbb 184085fc increase -4 ,temp 
+5cbc efe20002 ifetch 4 ,temp 
+5cbd 67e20964 store 4 ,mem_temp 
+5cbe 684944ad fetcht 2 ,mem_spi_write_len 
+5cbf 6fe1c4a8 fetch 3 ,mem_spi_write_addr 
+5cc0 20600000 rtn 
+
+spid_init_flash:
+5cc1 20405d25 call spi_gpio_init 
+5cc2 20405acb call twspi_disable 
+5cc3 58000000 setarg 0 
+5cc4 67e202e2 store 4 ,mem_spid_tbuf 
+5cc5 20600000 rtn 
+
+spid_unlock_flash:
+5cc6 7002e206 jam flash_command_write_enable ,mem_spid_tbuf 
+
+spid_sendcmd_common:
+5cc7 58000000 setarg 0 
+5cc8 67f1008e store 2 ,core_spid_rxlen 
+5cc9 58000001 setarg 1 
+5cca 67f10088 store 2 ,core_spid_txlen 
+5ccb 580002e2 setarg mem_spid_tbuf 
+5ccc 67f1008a store 2 ,core_spid_txaddr 
+5ccd 70800602 jam spid_start ,core_misc_ctrl 
+5cce 20205c80 branch wait_spid_done 
+
+spid_flash_release_form_powerdown:
+5ccf 7002e2ab jam flash_command_release_from_powerdown ,mem_spid_tbuf 
+5cd0 20205cc7 branch spid_sendcmd_common 
+
+spid_flash_powerdown:
+5cd1 7002e2b9 jam flash_command_powerdown ,mem_spid_tbuf 
+5cd2 20205cc7 branch spid_sendcmd_common 
+
+spid_write_flash:
+5cd3 18408404 increase 4 ,temp 
+5cd4 60590088 storet 2 ,core_spid_txlen 
+5cd5 d8400002 arg flash_command_write_data ,temp 
+5cd6 1a20a3fc increase -4 ,rega 
+
+spid_write_flash_common:
+5cd7 e0408011 istoret 1 ,rega 
+5cd8 1ff10400 rshift16 pdata ,temp 
+5cd9 e0408005 istoret 1 ,contw 
+5cda 1fec8400 rshift8 pdata ,temp 
+5cdb e0408005 istoret 1 ,contw 
+5cdc e7e08005 istore 1 ,contw 
+5cdd 1a227e00 deposit rega 
+5cde 67f1008a store 2 ,core_spid_txaddr 
+5cdf 58000000 setarg 0 
+5ce0 67f1008e store 2 ,core_spid_rxlen 
+5ce1 70800602 jam spid_start ,core_misc_ctrl 
+5ce2 20405c80 call wait_spid_done 
+5ce3 20205cfa branch wait_spid_flash_done 
+
+spid_read_flash:
+5ce4 6059008e storet 2 ,core_spid_rxlen 
+5ce5 1ff10400 rshift16 pdata ,temp 
+5ce6 604882e3 storet 1 ,mem_addr_hi 
+5ce7 1fec8400 rshift8 pdata ,temp 
+5ce8 604882e4 storet 1 ,mem_addr_mi 
+5ce9 67e082e5 store 1 ,mem_addr_lo 
+5cea 58000004 setarg 4 
+5ceb 67f10088 store 2 ,core_spid_txlen 
+5cec 7002e203 jam flash_command_read_data ,mem_spid_tbuf 
+5ced 580002e2 setarg mem_spid_tbuf 
+5cee 67f1008a store 2 ,core_spid_txaddr 
+5cef 1a227e00 deposit rega 
+5cf0 67f1008c store 2 ,core_spid_rxaddr 
+5cf1 6ff08086 fetch 1 ,core_spid_ctrl 
+5cf2 2a2c000f isolate0 15 ,rega 
+5cf3 7920fe06 setflag true ,6 ,pdata 
+5cf4 67f08086 store 1 ,core_spid_ctrl 
+5cf5 70800602 jam spid_start ,core_misc_ctrl 
+
+spid_read_flash_wait:
+5cf6 6ff0812c fetch 1 ,core_dma_status 
+5cf7 c283dcf6 bbit1 7 ,spid_read_flash_wait 
+5cf8 d8e00003 arg spid_done ,queue 
+5cf9 20205c80 branch wait_spid_done 
+
+wait_spid_flash_done:
+5cfa 580007d0 setarg 2000 
+5cfb 20401322 call sleep 
+5cfc 20405cc6 call spid_unlock_flash 
+5cfd 580002e7 setarg mem_spid_rbuf 
+5cfe 67f1008c store 2 ,core_spid_rxaddr 
+5cff 58000005 setarg flash_read_satus 
+5d00 20405c77 call spid_read_reg 
+5d01 c2805cfa bbit1 flash_status_wip ,wait_spid_flash_done 
+5d02 20600000 rtn 
+
+spid_load_flash:
+5d03 6059008e storet 2 ,core_spid_rxlen 
+5d04 58000004 setarg 4 
+5d05 67f10088 store 2 ,core_spid_txlen 
+5d06 7002e203 jam 3 ,mem_spid_tbuf 
+5d07 580002e2 setarg mem_spid_tbuf 
+5d08 67f1008a store 2 ,core_spid_txaddr 
+5d09 1a227e00 deposit rega 
+5d0a 67f1008c store 2 ,core_spid_rxaddr 
+5d0b 6ff08086 fetch 1 ,core_spid_ctrl 
+5d0c 2a2c000f isolate0 15 ,rega 
+5d0d 7920fe06 setflag true ,6 ,pdata 
+5d0e 67f08086 store 1 ,core_spid_ctrl 
+5d0f 70800602 jam spid_start ,core_misc_ctrl 
+
+spi_load_flash_wait:
+5d10 6ff0812c fetch 1 ,core_dma_status 
+5d11 c283dd10 bbit1 7 ,spi_load_flash_wait 
+5d12 d8e00003 arg spid_done ,queue 
+5d13 20405bd3 call decrypt_code 
+5d14 20405c80 call wait_spid_done 
+5d15 2feffe02 isolate1 spid_crcok ,pdata 
+5d16 20405bcc call set_ucode_status 
+5d17 6fe082e3 fetch 1 ,mem_addr_hi 
+5d18 1ff02400 lshift16 pdata ,regb 
+5d19 6fe082e4 fetch 1 ,mem_addr_mi 
+5d1a 1fed7e00 lshift8 pdata ,pdata 
+5d1b 9a41a400 ior regb ,regb 
+5d1c 6fe082e5 fetch 1 ,mem_addr_lo 
+5d1d 9a41fe00 ior regb ,pdata 
+5d1e 9840fe00 iadd temp ,pdata 
+5d1f 67e082e5 store 1 ,mem_addr_lo 
+5d20 1fecfe00 rshift8 pdata ,pdata 
+5d21 67e082e4 store 1 ,mem_addr_mi 
+5d22 1fecfe00 rshift8 pdata ,pdata 
+5d23 67e082e3 store 1 ,mem_addr_hi 
+5d24 20600000 rtn 
+
+spi_gpio_init:
+5d25 6fe0c4b8 fetch 1 ,mem_spi_cs_gpio 
+5d26 6848c4ba fetcht 1 ,mem_spi_so_gpio 
+5d27 98467c00 isub temp ,null 
+5d28 2422dd2a nbranch spi_pin_set ,zero 
+5d29 20405d36 call spi_gpio_default_init 
+
+spi_pin_set:
+5d2a 6fe0c4b8 fetch 1 ,mem_spi_cs_gpio 
+5d2b d8400020 arg gpcfg_spid_ncs ,temp 
+5d2c 204060e2 call gpio_config_function_int 
+5d2d 6fe0c4bb fetch 1 ,mem_spi_sclk_gpio 
+5d2e d8400021 arg gpcfg_spid_sck ,temp 
+5d2f 204060e2 call gpio_config_function_int 
+5d30 6fe0c4b9 fetch 1 ,mem_spi_si_gpio 
+5d31 d8400022 arg gpcfg_spid_mosi ,temp 
+5d32 204060e2 call gpio_config_function_int 
+5d33 6fe0c4ba fetch 1 ,mem_spi_so_gpio 
+5d34 d840001f arg gpcfg_spid_miso ,temp 
+5d35 202060e2 branch gpio_config_function_int 
+
+spi_gpio_default_init:
+5d36 7044b80e jam 14 ,mem_spi_cs_gpio 
+5d37 7044b90d jam 13 ,mem_spi_si_gpio 
+5d38 7044ba10 jam 16 ,mem_spi_so_gpio 
+5d39 7044bb0f jam 15 ,mem_spi_sclk_gpio 
+5d3a 7044bc11 jam 17 ,mem_spi_wp_gpio 
+5d3b 7044bd12 jam 18 ,mem_spi_hold_gpio 
+5d3c 20600000 rtn 
+
+spid2_init:
+5d3d 20205d3e branch spid2_init_common 
+
+spid2_init_common:
+5d3e 6fe0c488 fetch 1 ,mem_spi_init_clk 
+5d3f 67f080c0 store 1 ,core_spid2_ctrl 
+5d40 6fe0c489 fetch 1 ,mem_spi_init_delay_time 
+5d41 67f080c1 store 1 ,core_spid2_delay 
+5d42 58000303 setarg mem_spid2_tbuf 
+5d43 67f100c4 store 2 ,core_spid2_txaddr 
+5d44 58000307 setarg mem_spid2_rbuf 
+5d45 67f100c6 store 2 ,core_spid2_rxaddr 
+5d46 20205acf branch twspi2_disable 
+
+spid2_write_reg:
+5d47 79207e07 set1 7 ,pdata 
+5d48 67e10303 store 2 ,mem_spid2_tbuf 
+5d49 7080c202 jam 2 ,core_spid2_txlen 
+5d4a 7080c800 jam 0 ,core_spid2_rxlen 
+5d4b 70800601 jam spid2_start ,core_misc_ctrl 
+5d4c 20205d55 branch wait_spid2_done 
+
+spid2_read_reg:
+5d4d 18000401 force 1 ,temp 
+
+spid2_read_regs:
+5d4e 67e08303 store 1 ,mem_spid2_tbuf 
+5d4f 7080c201 jam 1 ,core_spid2_txlen 
+5d50 605900c8 storet 2 ,core_spid2_rxlen 
+5d51 70800601 jam spid2_start ,core_misc_ctrl 
+5d52 20405d55 call wait_spid2_done 
+5d53 6fe08307 fetch 1 ,mem_spid2_rbuf 
+5d54 20600000 rtn 
+
+wait_spid2_done:
+5d55 6fe140de fetch 2 ,mem_afh_error_total 
+5d56 1fe0fe01 increase 1 ,pdata 
+5d57 67e140de store 2 ,mem_afh_error_total 
+5d58 6ff0812d fetch 1 ,core_perf_status 
+5d59 c301dd55 bbit0 spid_done ,wait_spid2_done 
+5d5a 20600000 rtn 
+
+spid2_init_flash:
+5d5b 20405dcd call spi2_gpio_init 
+5d5c 58000000 setarg 0 
+5d5d 67e20303 store 4 ,mem_spid2_tbuf 
+5d5e 6ff080c0 fetch 1 ,core_spid2_ctrl 
+5d5f 79207e03 set1 3 ,pdata 
+5d60 67f080c0 store 1 ,core_spid2_ctrl 
+5d61 20600000 rtn 
+
+spid2_unlock_flash:
+5d62 58000000 setarg 0 
+5d63 67f100c8 store 2 ,core_spid2_rxlen 
+5d64 58000001 setarg 1 
+5d65 67f100c2 store 2 ,core_spid2_txlen 
+5d66 58000303 setarg mem_spid2_tbuf 
+5d67 67f100c4 store 2 ,core_spid2_txaddr 
+5d68 70030306 jam flash_command_write_enable ,mem_spid2_tbuf 
+5d69 70800601 jam spid2_start ,core_misc_ctrl 
+5d6a 20205d55 branch wait_spid2_done 
+
+flash_write_spi2_sm_timer:
+5d6b 6fe0c4b7 fetch 1 ,mem_spi2_write_flash_sm 
+5d6c c000dd72 beq flash_sm_start ,spid2_flash_write_start 
+5d6d c0015d78 beq flash_sm_erase_sector ,spid2_flash_erase_sector 
+5d6e c001dd80 beq flash_sm_wait_erase_sector ,spid2_flash_wait_erase_sector 
+5d6f c0025d84 beq flash_sm_write_data ,spid2_flash_write_data 
+5d70 c002dd8a beq flash_sm_wait_write_data ,spid2_flash_wait_write_data 
+5d71 20600000 rtn 
+
+spid2_flash_write_start:
+5d72 67e1c4b0 store 3 ,mem_spi2_write_addr 
+5d73 1a227e00 copy rega ,pdata 
+5d74 67e144b3 store 2 ,mem_spi2_write_ptr 
+5d75 604944b5 storet 2 ,mem_spi2_write_len 
+5d76 7044b702 jam flash_sm_erase_sector ,mem_spi2_write_flash_sm 
+5d77 20205d5b branch spid2_init_flash 
+
+spid2_flash_erase_sector:
+5d78 20405d5b call spid2_init_flash 
+5d79 7044b703 jam flash_sm_wait_erase_sector ,mem_spi2_write_flash_sm 
+5d7a 20405d62 call spid2_unlock_flash 
+5d7b da200303 arg mem_spid2_tbuf ,rega 
+5d7c 7080c204 jam 4 ,core_spid2_txlen 
+5d7d 6fe1c4b0 fetch 3 ,mem_spi2_write_addr 
+5d7e d8400020 arg flash_command_sector_erase ,temp 
+5d7f 20205da1 branch spid2_write_flash_common 
+
+spid2_flash_wait_erase_sector:
+5d80 20405d5b call spid2_init_flash 
+5d81 20405dc4 call wait_spid2_flash_done 
+5d82 7044b704 jam flash_sm_write_data ,mem_spi2_write_flash_sm 
+5d83 20600000 rtn 
+
+spid2_flash_write_data:
+5d84 20405d5b call spid2_init_flash 
+5d85 7044b705 jam flash_sm_wait_write_data ,mem_spi2_write_flash_sm 
+5d86 20405d62 call spid2_unlock_flash 
+5d87 20405d95 call spid2_flash_data_preserve 
+5d88 20405d9d call spid2_write_flash 
+5d89 20205d92 branch spid2_flash_data_recover 
+
+spid2_flash_wait_write_data:
+5d8a 20405d5b call spid2_init_flash 
+5d8b 20405d62 call spid2_unlock_flash 
+5d8c 58000005 setarg flash_read_satus 
+5d8d 20405d4d call spid2_read_reg 
+5d8e c3800000 rtnbit1 flash_status_wip 
+5d8f 7044b700 jam flash_sm_no_buys ,mem_spi2_write_flash_sm 
+5d90 6fe14475 fetch 2 ,mem_cb_spi2_flash_write_complate 
+5d91 20207e13 branch callback_func 
+
+spid2_flash_data_recover:
+5d92 6fe20964 fetch 4 ,mem_temp 
+5d93 684944b3 fetcht 2 ,mem_spi2_write_ptr 
+5d94 20205cb6 branch spid_flash_data_recover_comm 
+
+spid2_flash_data_preserve:
+5d95 684944b3 fetcht 2 ,mem_spi2_write_ptr 
+5d96 18422200 copy temp ,rega 
+5d97 184085fc increase -4 ,temp 
+5d98 efe20002 ifetch 4 ,temp 
+5d99 67e20964 store 4 ,mem_temp 
+5d9a 684944b5 fetcht 2 ,mem_spi2_write_len 
+5d9b 6fe1c4b0 fetch 3 ,mem_spi2_write_addr 
+5d9c 20600000 rtn 
+
+spid2_write_flash:
+5d9d 18408404 increase 4 ,temp 
+5d9e 605900c2 storet 2 ,core_spid2_txlen 
+5d9f d8400002 arg flash_command_write_data ,temp 
+5da0 1a20a3fc increase -4 ,rega 
+
+spid2_write_flash_common:
+5da1 e0408011 istoret 1 ,rega 
+5da2 1ff10400 rshift16 pdata ,temp 
+5da3 e0408005 istoret 1 ,contw 
+5da4 1fec8400 rshift8 pdata ,temp 
+5da5 e0408005 istoret 1 ,contw 
+5da6 e7e08005 istore 1 ,contw 
+5da7 1a227e00 deposit rega 
+5da8 67f100c4 store 2 ,core_spid2_txaddr 
+5da9 58000000 setarg 0 
+5daa 67f100c8 store 2 ,core_spid2_rxlen 
+5dab 70800601 jam spid2_start ,core_misc_ctrl 
+5dac 20405d55 call wait_spid2_done 
+5dad 20205dc4 branch wait_spid2_flash_done 
+
+spid2_read_flash:
+5dae 605900c8 storet 2 ,core_spid2_rxlen 
+5daf 1ff10400 rshift16 pdata ,temp 
+5db0 60488304 storet 1 ,mem_addr_hi2 
+5db1 1fec8400 rshift8 pdata ,temp 
+5db2 60488305 storet 1 ,mem_addr_mi2 
+5db3 67e08306 store 1 ,mem_addr_lo2 
+5db4 58000004 setarg 4 
+5db5 67f100c2 store 2 ,core_spid2_txlen 
+5db6 70030303 jam flash_command_read_data ,mem_spid2_tbuf 
+5db7 58000303 setarg mem_spid2_tbuf 
+5db8 67f100c4 store 2 ,core_spid2_txaddr 
+5db9 1a227e00 deposit rega 
+5dba 67f100c6 store 2 ,core_spid2_rxaddr 
+5dbb 6ff080c0 fetch 1 ,core_spid2_ctrl 
+5dbc 2a2c000f isolate0 15 ,rega 
+5dbd 7920fe06 setflag true ,6 ,pdata 
+5dbe 67f080c0 store 1 ,core_spid2_ctrl 
+5dbf 70800601 jam spid2_start ,core_misc_ctrl 
+
+spid2_read_flash_wait:
+5dc0 6ff0812d fetch 1 ,core_perf_status 
+5dc1 c283ddc0 bbit1 7 ,spid2_read_flash_wait 
+5dc2 d8e00003 arg spid_done ,queue 
+5dc3 20205d55 branch wait_spid2_done 
+
+wait_spid2_flash_done:
+5dc4 580007d0 setarg 2000 
+5dc5 20401322 call sleep 
+5dc6 20405d62 call spid2_unlock_flash 
+5dc7 58000307 setarg mem_spid2_rbuf 
+5dc8 67f100c6 store 2 ,core_spid2_rxaddr 
+5dc9 58000005 setarg flash_read_satus 
+5dca 20405d4d call spid2_read_reg 
+5dcb c2805dc4 bbit1 flash_status_wip ,wait_spid2_flash_done 
+5dcc 20600000 rtn 
+
+spi2_gpio_init:
+5dcd 6fe0c4be fetch 1 ,mem_spi2_cs_gpio 
+5dce d8400028 arg gpcfg_spid2_ncs ,temp 
+5dcf 204060e2 call gpio_config_function_int 
+5dd0 6fe0c4c1 fetch 1 ,mem_spi2_sclk_gpio 
+5dd1 d8400029 arg gpcfg_spid2_sck ,temp 
+5dd2 204060e2 call gpio_config_function_int 
+5dd3 6fe0c4bf fetch 1 ,mem_spi2_si_gpio 
+5dd4 d840002a arg gpcfg_spid2_mosi ,temp 
+5dd5 204060e2 call gpio_config_function_int 
+5dd6 6fe0c4c0 fetch 1 ,mem_spi2_so_gpio 
+5dd7 d8400027 arg gpcfg_spid2_miso ,temp 
+5dd8 202060e2 branch gpio_config_function_int 
+
+soft_reset_chip:
+5dd9 70801001 jam 1 ,core_reset 
+5dda 20600000 rtn 
+
+iic_init_600khz:
+5ddb 70809105 jam 5 ,core_iicd_scl_low 
+5ddc 70809207 jam 7 ,core_iicd_scl_high 
+5ddd 70809307 jam 7 ,core_iicd_start_setup 
+5dde 70809407 jam 7 ,core_iicd_start_hold 
+5ddf 70809507 jam 7 ,core_iicd_stop_setup 
+5de0 70809605 jam 5 ,core_iicd_data_setup 
+5de1 70809700 jam 0 ,core_iicd_data_hold 
+5de2 20600000 rtn 
+
+iic_init_360khz:
+5de3 7080910c jam 12 ,core_iicd_scl_low 
+5de4 7080920d jam 13 ,core_iicd_scl_high 
+5de5 7080930d jam 13 ,core_iicd_start_setup 
+5de6 7080940d jam 13 ,core_iicd_start_hold 
+5de7 7080950d jam 13 ,core_iicd_stop_setup 
+5de8 7080960c jam 12 ,core_iicd_data_setup 
+5de9 70809700 jam 0 ,core_iicd_data_hold 
+5dea 20600000 rtn 
+
+iicd_init_pin:
+5deb 20405e20 call iicd_eeprom_write_enable 
+
+iicd_init_pin_scl_sda:
+5dec 6fe0c4c5 fetch 1 ,mem_eeprom_scl_gpio 
+5ded d840002c arg gpcfg_iic_scl ,temp 
+5dee 204060e2 call gpio_config_function_int 
+5def 6fe0c4c6 fetch 1 ,mem_eeprom_sda_gpio 
+5df0 d840002d arg gpcfg_iic_sda ,temp 
+5df1 202060e2 branch gpio_config_function_int 
+
+iicd_read_init_pin:
+5df2 20405e27 call iicd_eeprom_write_disable 
+5df3 20205dec branch iicd_init_pin_scl_sda 
+
+wait_iicd_done:
+5df4 6ff0812c fetch 1 ,core_dma_status 
+5df5 c302ddf4 bbit0 iicd_done ,wait_iicd_done 
+5df6 20600000 rtn 
+
+iicd_read_data:
+5df7 67e082e6 store 1 ,mem_iicd_addr 
+5df8 580002e6 setarg mem_iicd_addr 
+5df9 67f1009a store 2 ,core_iicd_txaddr 
+5dfa 58000001 setarg 1 
+5dfb 67f10098 store 2 ,core_iicd_txlen 
+5dfc 6059009e storet 2 ,core_iicd_rxlen 
+5dfd 6231009c storer rega ,2 ,core_iicd_rxaddr 
+5dfe 70809001 jam 1 ,core_iicd_ctrl 
+5dff 70800604 jam iicd_start ,core_misc_ctrl 
+5e00 20205df4 branch wait_iicd_done 
+
+iic_write_data:
+5e01 58000000 setarg 0 
+5e02 67f1009e store 2 ,core_iicd_rxlen 
+5e03 67f1009c store 2 ,core_iicd_rxaddr 
+5e04 60590098 storet 2 ,core_iicd_txlen 
+5e05 6231009a storer rega ,2 ,core_iicd_txaddr 
+5e06 70809001 jam 1 ,core_iicd_ctrl 
+5e07 70800604 jam iicd_start ,core_misc_ctrl 
+5e08 20205df4 branch wait_iicd_done 
+
+set_eeprom_size_2k:
+5e09 79200028 set1 mark_eeprom_size ,mark 
+5e0a 70448708 jam 0x08 ,mem_eeprom_block_size 
+5e0b 20600000 rtn 
+
+clear_eeprom_size_2k:
+5e0c 793f8028 set0 mark_eeprom_size ,mark 
+5e0d 70448720 jam 0x20 ,mem_eeprom_block_size 
+5e0e 20600000 rtn 
+
+iicd_read_eep_data_size_2k:
+5e0f 6fe0c479 fetch 1 ,mem_eeprom_base 
+5e10 9a40fe00 iadd regb ,pdata 
+5e11 67e082e4 store 1 ,mem_addr_mi 
+5e12 20205e16 branch iicd_read_eep_size_2k 
+
+iicd_read_eep_size_2k_lcadcode:
+5e13 6fe102e4 fetch 2 ,mem_addr_mi 
+5e14 1ff0fe00 byteswap pdata ,pdata 
+5e15 67e082e4 store 1 ,mem_addr_mi 
+
+iicd_read_eep_size_2k:
+5e16 58000003 setarg 3 
+5e17 67f10098 store 2 ,core_iicd_txlen 
+5e18 7002e3a0 jam 0xa0 ,mem_iicd_tbuf 
+5e19 7002e5a1 jam 0xa1 ,mem_iicd_tbuf + 2 
+5e1a 20205e35 branch iicd_read_eep_common 
+
+iicd_write_protect_eep_data:
+5e1b 60490964 storet 2 ,mem_temp 
+5e1c 20405e20 call iicd_eeprom_write_enable 
+5e1d 68490964 fetcht 2 ,mem_temp 
+5e1e 20405e4f call iicd_write_eep_data 
+5e1f 20205e27 branch iicd_eeprom_write_disable 
+
+iicd_eeprom_write_enable:
+5e20 6fe0c4c4 fetch 1 ,mem_eeprom_wp_gpio 
+5e21 c17f8000 rtneq gpio_disable 
+5e22 c3035e25 bbit0 6 ,iicd_wp_gpio_output_low 
+5e23 580249f0 setarg 150000 
+5e24 20401322 call sleep 
+
+iicd_wp_gpio_output_low:
+5e25 6848c4c4 fetcht 1 ,mem_eeprom_wp_gpio 
+5e26 202060b8 branch gpio_out_active 
+
+iicd_eeprom_write_disable:
+5e27 6848c4c4 fetcht 1 ,mem_eeprom_wp_gpio 
+5e28 202060b4 branch gpio_out_inactive 
+
+iicd_read_eep_data:
+5e29 47134024 bpatchx patch24_6 ,mem_patch24 
+5e2a c5145e0f bmark1 mark_eeprom_size ,iicd_read_eep_data_size_2k 
+5e2b 6fe14479 fetch 2 ,mem_eeprom_base 
+5e2c 9a40fe00 iadd regb ,pdata 
+5e2d 1ff0fe00 byteswap pdata ,pdata 
+5e2e 67e102e4 store 2 ,mem_addr_mi 
+
+iicd_read_eep:
+5e2f 4713c024 bpatchx patch24_7 ,mem_patch24 
+5e30 c5145e13 bmark1 mark_eeprom_size ,iicd_read_eep_size_2k_lcadcode 
+5e31 58000004 setarg 4 
+5e32 67f10098 store 2 ,core_iicd_txlen 
+5e33 7002e3a0 jam 0xa0 ,mem_iicd_tbuf 
+5e34 7002e6a1 jam 0xa1 ,mem_iicd_tbuf + 3 
+
+iicd_read_eep_common:
+5e35 580002e3 setarg mem_iicd_tbuf 
+5e36 67f1009a store 2 ,core_iicd_txaddr 
+5e37 6059009e storet 2 ,core_iicd_rxlen 
+5e38 6231009c storer rega ,2 ,core_iicd_rxaddr 
+5e39 58000002 setarg 2 
+5e3a 2a2c000f isolate0 15 ,rega 
+5e3b 7920fe00 setflag true ,0 ,pdata 
+5e3c 67f08090 store 1 ,core_iicd_ctrl 
+5e3d 70800604 jam iicd_start ,core_misc_ctrl 
+5e3e d8e00005 arg iicd_done ,queue 
+5e3f 20405bd3 call decrypt_code 
+5e40 20405df4 call wait_iicd_done 
+5e41 2feffe04 isolate1 iicd_crcok ,pdata 
+5e42 20405bcc call set_ucode_status 
+5e43 c5145e4a bmark1 mark_eeprom_size ,iicd_read_eep_load_code_size_2k 
+5e44 6fe102e4 fetch 2 ,mem_addr_mi 
+5e45 1ff0fe00 byteswap pdata ,pdata 
+5e46 9840fe00 iadd temp ,pdata 
+5e47 1ff0fe00 byteswap pdata ,pdata 
+5e48 67e102e4 store 2 ,mem_addr_mi 
+5e49 20600000 rtn 
+
+iicd_read_eep_load_code_size_2k:
+5e4a 6fe082e4 fetch 1 ,mem_addr_mi 
+5e4b 9840fe00 iadd temp ,pdata 
+5e4c 1ff0fe00 byteswap pdata ,pdata 
+5e4d 67e102e4 store 2 ,mem_addr_mi 
+5e4e 20600000 rtn 
+
+iicd_write_eep_data:
+5e4f 6fe14479 fetch 2 ,mem_eeprom_base 
+5e50 9a40fe00 iadd regb ,pdata 
+
+iicd_write_ota_data:
+5e51 67e1095c store 2 ,mem_pdatatemp 
+5e52 47144025 bpatchx patch25_0 ,mem_patch25 
+5e53 60490964 storet 2 ,mem_temp 
+5e54 6221097b storer rega ,2 ,mem_contr 
+
+iicd_write_eep_loop:
+5e55 20405e64 call iicd_eep_transparency 
+5e56 68490974 fetcht 2 ,mem_regb 
+5e57 6a21097b fetchr rega ,2 ,mem_contr 
+5e58 6fe1095c fetch 2 ,mem_pdatatemp 
+5e59 20405e85 call iicd_write_eep 
+5e5a 6fe10974 fetch 2 ,mem_regb 
+5e5b 6849097b fetcht 2 ,mem_contr 
+5e5c 98408400 iadd temp ,temp 
+5e5d 6049097b storet 2 ,mem_contr 
+5e5e 6849095c fetcht 2 ,mem_pdatatemp 
+5e5f 98408400 iadd temp ,temp 
+5e60 6049095c storet 2 ,mem_pdatatemp 
+5e61 6fe10964 fetch 2 ,mem_temp 
+5e62 243a5e55 nbranch iicd_write_eep_loop ,blank 
+5e63 20600000 rtn 
+
+iicd_eep_transparency:
+5e64 4714c025 bpatchx patch25_1 ,mem_patch25 
+5e65 6fe0c487 fetch 1 ,mem_eeprom_block_size 
+5e66 1fe0ffff increase -1 ,pdata 
+5e67 6849095c fetcht 2 ,mem_pdatatemp 
+5e68 9841fe00 ior temp ,pdata 
+5e69 1fe0fe01 increase 1 ,pdata 
+5e6a 67e18978 store 3 ,mem_regc 
+5e6b 6fe10964 fetch 2 ,mem_temp 
+5e6c 9840fe00 iadd temp ,pdata 
+5e6d 68498978 fetcht 3 ,mem_regc 
+5e6e 98467e00 isub temp ,pdata 
+5e6f 24215e76 nbranch iicd_eep_deal_short_packet ,positive 
+5e70 67e10964 store 2 ,mem_temp 
+5e71 6fe18978 fetch 3 ,mem_regc 
+5e72 6849095c fetcht 2 ,mem_pdatatemp 
+5e73 98467e00 isub temp ,pdata 
+5e74 67e10974 store 2 ,mem_regb 
+5e75 20600000 rtn 
+
+iicd_eep_deal_short_packet:
+5e76 6fe10964 fetch 2 ,mem_temp 
+5e77 67e10974 store 2 ,mem_regb 
+5e78 58000000 setarg 0 
+5e79 67e10964 store 2 ,mem_temp 
+5e7a 20600000 rtn 
+
+iicd_write_eep_size_2k:
+5e7b 1a427e00 copy regb ,pdata 
+5e7c 18408402 increase 2 ,temp 
+5e7d 60590098 storet 2 ,core_iicd_txlen 
+5e7e 1a20a3fe increase -2 ,rega 
+5e7f e8418011 ifetcht 3 ,rega 
+5e80 18422400 copy temp ,regb 
+5e81 d84000a0 arg 0xa0 ,temp 
+5e82 e0408011 istoret 1 ,rega 
+5e83 e7e08005 istore 1 ,contw 
+5e84 20205e92 branch iicd_write_eep_common 
+
+iicd_write_eep:
+5e85 1fe22400 copy pdata ,regb 
+5e86 47154025 bpatchx patch25_2 ,mem_patch25 
+5e87 c5145e7b bmark1 mark_eeprom_size ,iicd_write_eep_size_2k 
+5e88 1a427e00 copy regb ,pdata 
+5e89 18408403 increase 3 ,temp 
+5e8a 60590098 storet 2 ,core_iicd_txlen 
+5e8b 1a20a3fd increase -3 ,rega 
+5e8c e8418011 ifetcht 3 ,rega 
+5e8d 18422400 copy temp ,regb 
+5e8e d84000a0 arg 0xa0 ,temp 
+5e8f e0408011 istoret 1 ,rega 
+5e90 1ff0fe00 byteswap pdata ,pdata 
+5e91 e7e10005 istore 2 ,contw 
+
+iicd_write_eep_common:
+5e92 6231009a storer rega ,2 ,core_iicd_txaddr 
+5e93 58000000 setarg 0 
+5e94 67f1009e store 2 ,core_iicd_rxlen 
+5e95 70809001 jam 1 ,core_iicd_ctrl 
+5e96 70800604 jam iicd_start ,core_misc_ctrl 
+5e97 20405df4 call wait_iicd_done 
+5e98 e2418011 istorer regb ,3 ,rega 
+
+iic_check_eeprom_standby:
+5e99 4715c025 bpatchx patch25_3 ,mem_patch25 
+5e9a 7002e600 jam 0 ,mem_iicd_tbuf + 3 
+
+iic_check_eeprom_standby_wait:
+5e9b 58000001 setarg 1 
+5e9c 67f10098 store 2 ,core_iicd_txlen 
+5e9d 7002e3a0 jam 0xa0 ,mem_iicd_tbuf 
+5e9e 580002e3 setarg mem_iicd_tbuf 
+5e9f 67f1009a store 2 ,core_iicd_txaddr 
+5ea0 58000000 setarg 0 
+5ea1 67f1009e store 2 ,core_iicd_rxlen 
+5ea2 67f1009c store 2 ,core_iicd_rxaddr 
+5ea3 58000003 setarg 3 
+5ea4 67f08090 store 1 ,core_iicd_ctrl 
+5ea5 70800604 jam iicd_start ,core_misc_ctrl 
+5ea6 20405df4 call wait_iicd_done 
+5ea7 6ff0812c fetch 1 ,core_dma_status 
+5ea8 c4030000 rtnbit0 iicd_ack 
+5ea9 200005dc nop 1500 
+5eaa 6fe082e6 fetch 1 ,mem_iicd_tbuf + 3 
+5eab 1fe0fe01 increase 1 ,pdata 
+5eac 67e082e6 store 1 ,mem_iicd_tbuf + 3 
+5ead 1fe67c28 sub pdata ,40 ,null 
+5eae 24610000 nrtn positive 
+5eaf 20205e9b branch iic_check_eeprom_standby_wait 
+
+efuse_read_data:
+5eb0 18427200 copy temp ,loopcnt 
+5eb1 1fe20400 copy pdata ,temp 
+5eb2 18498400 lshift3 temp ,temp 
+5eb3 20405ee2 call efuse_vdd_on 
+5eb4 70804780 jam 0x80 ,core_efuse_ctrl 
+
+efuse_read_loop:
+5eb5 70804786 jam 0x86 ,core_efuse_ctrl 
+5eb6 60590045 storet 2 ,core_efuse_addr 
+5eb7 18408408 increase 8 ,temp 
+5eb8 70804787 jam 0x87 ,core_efuse_ctrl 
+5eb9 6ff08007 fetch 1 ,core_efuse_rdata 
+5eba e7e08011 istore 1 ,rega 
+5ebb 1a20a201 increase 1 ,rega 
+5ebc c2005eb5 loop efuse_read_loop 
+5ebd 70804786 jam 0x86 ,core_efuse_ctrl 
+5ebe 70804780 jam 0x80 ,core_efuse_ctrl 
+5ebf 70804700 jam 0x0 ,core_efuse_ctrl 
+5ec0 20205eea branch efuse_vdd_off 
+
+efuse_program:
+5ec1 20405eda call efuse_vdd_fsource_on 
+5ec2 70804780 jam 0x80 ,core_efuse_ctrl 
+5ec3 18498400 lshift3 temp ,temp 
+5ec4 1a220c00 copy rega ,contr 
+
+efuse_program_loop:
+5ec5 efe08006 ifetch 1 ,contr 
+5ec6 da400008 arg 8 ,regb 
+
+efuse_program_bit_loop:
+5ec7 1fe17c01 and pdata ,1 ,null 
+5ec8 2442def5 ncall efuse_program_bit ,zero 
+5ec9 1fe37e00 rshift pdata ,pdata 
+5eca 18408401 increase 1 ,temp 
+5ecb 1a40a5ff increase -1 ,regb 
+5ecc 2422dec7 nbranch efuse_program_bit_loop ,zero 
+5ecd c2005ec5 loop efuse_program_loop 
+5ece 70804780 jam 0x80 ,core_efuse_ctrl 
+5ecf 70804700 jam 0x0 ,core_efuse_ctrl 
+5ed0 20205eea branch efuse_vdd_off 
+
+efuse_lna_pa_ldo_on:
+5ed1 6ff08a0a fetch 1 ,core_rf_ldo_en0 
+5ed2 79207e01 set1 1 ,pdata 
+5ed3 67f08a0a store 1 ,core_rf_ldo_en0 
+5ed4 200000c8 nop 200 
+5ed5 6ff08a0b fetch 1 ,core_rf_ldo_en1 
+5ed6 79207e00 set1 0 ,pdata 
+5ed7 67f08a0b store 1 ,core_rf_ldo_en1 
+5ed8 200007d0 nop 2000 
+5ed9 20600000 rtn 
+
+efuse_vdd_fsource_on:
+5eda 20405ed1 call efuse_lna_pa_ldo_on 
+5edb 6ff08a0b fetch 1 ,core_rf_ldo_en1 
+5edc 793ffe05 set0 5 ,pdata 
+5edd 79207e04 set1 4 ,pdata 
+5ede 79207e03 set1 3 ,pdata 
+5edf 67f08a0b store 1 ,core_rf_ldo_en1 
+5ee0 200001f4 nop 500 
+5ee1 20600000 rtn 
+
+efuse_vdd_on:
+5ee2 20405ed1 call efuse_lna_pa_ldo_on 
+5ee3 6ff08a0b fetch 1 ,core_rf_ldo_en1 
+5ee4 79207e05 set1 5 ,pdata 
+5ee5 79207e04 set1 4 ,pdata 
+5ee6 793ffe03 set0 3 ,pdata 
+5ee7 67f08a0b store 1 ,core_rf_ldo_en1 
+5ee8 200001f4 nop 500 
+5ee9 20600000 rtn 
+
+efuse_vdd_off:
+5eea 6ff08a0b fetch 1 ,core_rf_ldo_en1 
+5eeb 793ffe05 set0 5 ,pdata 
+5eec 793ffe04 set0 4 ,pdata 
+5eed 793ffe03 set0 3 ,pdata 
+5eee 793ffe00 set0 0 ,pdata 
+5eef 67f08a0b store 1 ,core_rf_ldo_en1 
+5ef0 200000c8 nop 200 
+5ef1 6ff08a0a fetch 1 ,core_rf_ldo_en0 
+5ef2 793ffe01 set0 1 ,pdata 
+5ef3 67f08a0a store 1 ,core_rf_ldo_en0 
+5ef4 20600000 rtn 
+
+efuse_program_bit:
+5ef5 70804780 jam 0x80 ,core_efuse_ctrl 
+5ef6 2000000a nop 10 
+5ef7 60590045 storet 2 ,core_efuse_addr 
+5ef8 70804781 jam 0x81 ,core_efuse_ctrl 
+5ef9 2000006e nop 110 
+5efa 20600000 rtn 
+
+uarta_init_dma_mem:
+5efb 20407e62 call enable_user 
+5efc 20205eff branch uart_init_dma_mem 
+
+uartb_init_dma_mem:
+5efd 20407e64 call disable_user 
+5efe 20205eff branch uart_init_dma_mem 
+
+uart_init_dma_mem:
+5eff 1ff10400 rshift16 pdata ,temp 
+5f00 20545f32 call uarta_init_rx ,user 
+5f01 24545f36 ncall uartb_init_rx ,user 
+5f02 1fef7e00 rshift32 pdata ,pdata 
+5f03 1ff10400 rshift16 pdata ,temp 
+5f04 20545f2a call uarta_init_tx ,user 
+5f05 24545f2e ncall uartb_init_tx ,user 
+5f06 24345f0b nbranch uartb_init_dma_turn_on_clk ,user 
+5f07 6ff10050 fetch 2 ,core_clkoff 
+5f08 793ffe0f set0 clock_off_uart ,pdata 
+5f09 67f10050 store 2 ,core_clkoff 
+5f0a 20600000 rtn 
+
+uartb_init_dma_turn_on_clk:
+5f0b 6ff10050 fetch 2 ,core_clkoff 
+5f0c 793ffe0e set0 clock_off_uartb ,pdata 
+5f0d 67f10050 store 2 ,core_clkoff 
+5f0e 20600000 rtn 
+
+uarta_init_baud_rate:
+5f0f 67f10052 store uart_baud_len ,core_uart_baud 
+5f10 20600000 rtn 
+
+uartb_init_baud_rate:
+5f11 67f10062 store uart_baud_len ,core_uartb_baud 
+5f12 20600000 rtn 
+
+uarta_calc_baud_rate_config:
+5f13 20405f17 call uart_calc_baud_rate_config 
+5f14 20205f0f branch uarta_init_baud_rate 
+
+uartb_calc_baud_rate_config:
+5f15 20405f17 call uart_calc_baud_rate_config 
+5f16 20205f11 branch uartb_init_baud_rate 
+
+uart_calc_baud_rate_config:
+5f17 20405f1c call uart_calc_baud_rate_config_choice_uart_clock 
+5f18 9846fc00 idiv temp 
+5f19 20407dfd call wait_div_end 
+5f1a 1807fe00 quotient pdata 
+5f1b 20600000 rtn 
+
+uart_calc_baud_rate_config_choice_uart_clock:
+5f1c 6ff08043 fetch 1 ,core_uart_clksel 
+5f1d c3005f20 bbit0 uart_clock_select_bit ,uart_calc_baud_rate_config_choice_uart_clock_crystal 
+5f1e 5adc6c00 setarg uart_clock_freq_48m 
+5f1f 20600000 rtn 
+
+uart_calc_baud_rate_config_choice_uart_clock_crystal:
+5f20 596e3600 setarg uart_clock_freq_24m 
+5f21 20600000 rtn 
+
+uart_clock_select_main_freq_crystal:
+5f22 6ff08043 fetch 1 ,core_uart_clksel 
+5f23 1fe17efe and pdata ,uart_clock_select_crystal ,pdata 
+5f24 67f08043 store 1 ,core_uart_clksel 
+5f25 20600000 rtn 
+
+uart_clock_select_main_freq_dpll:
+5f26 6ff08043 fetch 1 ,core_uart_clksel 
+5f27 1fe1fe01 or pdata ,uart_clock_select_dpll ,pdata 
+5f28 67f08043 store 1 ,core_uart_clksel 
+5f29 20600000 rtn 
+
+uarta_init_tx:
+5f2a 67f1005a store 2 ,core_uart_tsaddr 
+5f2b 67f1005e store 2 ,core_uart_twptr 
+5f2c 6059005c storet 2 ,core_uart_teaddr 
+5f2d 20600000 rtn 
+
+uartb_init_tx:
+5f2e 67f1006a store 2 ,core_uartb_tsaddr 
+5f2f 67f1006e store 2 ,core_uartb_twptr 
+5f30 6059006c storet 2 ,core_uartb_teaddr 
+5f31 20600000 rtn 
+
+uarta_init_rx:
+5f32 67f10054 store 2 ,core_uart_rsaddr 
+5f33 67f10058 store 2 ,core_uart_rrptr 
+5f34 60590056 storet 2 ,core_uart_readdr 
+5f35 20600000 rtn 
+
+uartb_init_rx:
+5f36 67f10064 store 2 ,core_uartb_rsaddr 
+5f37 67f10068 store 2 ,core_uartb_rrptr 
+5f38 60590066 storet 2 ,core_uartb_readdr 
+5f39 20600000 rtn 
+
+uarta_prepare_tx:
+5f3a 6951005a fetchr contus ,2 ,core_uart_tsaddr 
+5f3b 6a11005c fetchr contue ,2 ,core_uart_teaddr 
+5f3c 6871005e fetchr contu ,2 ,core_uart_twptr 
+5f3d 20600000 rtn 
+
+uartb_prepare_tx:
+5f3e 6951006a fetchr contus ,2 ,core_uartb_tsaddr 
+5f3f 6a11006c fetchr contue ,2 ,core_uartb_teaddr 
+5f40 6871006e fetchr contu ,2 ,core_uartb_twptr 
+5f41 20600000 rtn 
+
+uarta_prepare_rx:
+5f42 69510054 fetchr contus ,2 ,core_uart_rsaddr 
+5f43 6a110056 fetchr contue ,2 ,core_uart_readdr 
+5f44 68710058 fetchr contu ,2 ,core_uart_rrptr 
+5f45 20600000 rtn 
+
+uartb_prepare_rx:
+5f46 69510064 fetchr contus ,2 ,core_uartb_rsaddr 
+5f47 6a110066 fetchr contue ,2 ,core_uartb_readdr 
+5f48 68710068 fetchr contu ,2 ,core_uartb_rrptr 
+5f49 20600000 rtn 
+
+uarta_send:
+5f4a 6071005e storer contu ,2 ,core_uart_twptr 
+5f4b 20600000 rtn 
+
+uartb_send:
+5f4c 6071006e storer contu ,2 ,core_uartb_twptr 
+5f4d 20600000 rtn 
+
+uarta_rxdone:
+5f4e 60710058 storer contu ,2 ,core_uart_rrptr 
+5f4f 20600000 rtn 
+
+uartb_rxdone:
+5f50 60710068 storer contu ,2 ,core_uartb_rrptr 
+5f51 20600000 rtn 
+
+uarta_clear_current_rx:
+5f52 20405f42 call uarta_prepare_rx 
+5f53 6ff10112 fetch 2 ,core_uart_rxitems 
+5f54 98608600 iadd contu ,contu 
+5f55 20205f4e branch uarta_rxdone 
+
+uartb_clear_current_rx:
+5f56 20405f46 call uartb_prepare_rx 
+5f57 6ff10158 fetch 2 ,core_uartb_rxitems 
+5f58 98608600 iadd contu ,contu 
+5f59 20205f50 branch uartb_rxdone 
+
+uarta_prepare_tx_register_push:
+5f5a 20405f62 call uart_register_push 
+5f5b 20205f3a branch uarta_prepare_tx 
+
+uartb_prepare_tx_register_push:
+5f5c 20405f62 call uart_register_push 
+5f5d 20205f3e branch uartb_prepare_tx 
+
+uarta_send_register_pop:
+5f5e 20405f4a call uarta_send 
+5f5f 20205f66 branch uart_register_pop 
+
+uartb_send_register_pop:
+5f60 20405f4c call uartb_send 
+5f61 20205f66 branch uart_register_pop 
+
+uart_register_push:
+5f62 60610983 storer contu ,2 ,mem_contu 
+5f63 61410981 storer contus ,2 ,mem_contue 
+5f64 6201097f storer contue ,2 ,mem_contus 
+5f65 20600000 rtn 
+
+uart_register_pop:
+5f66 68610983 fetchr contu ,2 ,mem_contu 
+5f67 69410981 fetchr contus ,2 ,mem_contue 
+5f68 6a01097f fetchr contue ,2 ,mem_contus 
+5f69 20600000 rtn 
+
+uart_copy_tx_bytes_fast:
+5f6a 1f227e00 deposit loopcnt 
+5f6b 207a0000 rtn blank 
+
+uart_copy_tx_bytes_fast_loop:
+5f6c 1f20f3f8 increase -8 ,loopcnt 
+5f6d 20415f78 call uart_tx_8_bytes ,positive 
+5f6e 20628000 rtn zero 
+5f6f 20215f6c branch uart_copy_tx_bytes_fast_loop ,positive 
+5f70 1f20f208 increase 8 ,loopcnt 
+
+uart_copy_tx_bytes_fast_loop_four:
+5f71 1f20f3fc increase -4 ,loopcnt 
+5f72 20415f7b call uart_tx_4_bytes ,positive 
+5f73 20628000 rtn zero 
+5f74 20215f71 branch uart_copy_tx_bytes_fast_loop_four ,positive 
+5f75 1f20f204 increase 4 ,loopcnt 
+5f76 20205f7e branch uart_copy_tx_bytes 
+
+uart_tx_16_bytes:
+5f77 20405f78 call uart_tx_8_bytes 
+
+uart_tx_8_bytes:
+5f78 efe40006 ifetch 8 ,contr 
+5f79 e7e40003 istore 8 ,contu 
+5f7a 20600000 rtn 
+
+uart_tx_4_bytes:
+5f7b efe20006 ifetch 4 ,contr 
+5f7c e7e20003 istore 4 ,contu 
+5f7d 20600000 rtn 
+
+uart_copy_tx_bytes:
+5f7e 1f227e00 deposit loopcnt 
+5f7f 207a0000 rtn blank 
+
+uart_copy_tx_bytes_loop:
+5f80 efe08006 ifetch 1 ,contr 
+5f81 e7e08003 istore 1 ,contu 
+5f82 c2005f80 loop uart_copy_tx_bytes_loop 
+5f83 20600000 rtn 
+
+uart_copy_rx_bytes_fast:
+5f84 1f227e00 deposit loopcnt 
+5f85 207a0000 rtn blank 
+
+uart_copy_rx_bytes_fast_loop:
+5f86 1f20f3f8 increase -8 ,loopcnt 
+5f87 20415f92 call uart_rx_8_bytes ,positive 
+5f88 20628000 rtn zero 
+5f89 20215f86 branch uart_copy_rx_bytes_fast_loop ,positive 
+5f8a 1f20f208 increase 8 ,loopcnt 
+
+uart_copy_rx_bytes_fast_loop_four:
+5f8b 1f20f3fc increase -4 ,loopcnt 
+5f8c 20415f95 call uart_rx_4_bytes ,positive 
+5f8d 20628000 rtn zero 
+5f8e 20215f8b branch uart_copy_rx_bytes_fast_loop_four ,positive 
+5f8f 1f20f204 increase 4 ,loopcnt 
+5f90 20205f98 branch uart_copy_rx_bytes 
+
+uart_rx_16_bytes:
+5f91 20405f92 call uart_rx_8_bytes 
+
+uart_rx_8_bytes:
+5f92 efe40003 ifetch 8 ,contu 
+5f93 e7e40005 istore 8 ,contw 
+5f94 20600000 rtn 
+
+uart_rx_4_bytes:
+5f95 efe20003 ifetch 4 ,contu 
+5f96 e7e20005 istore 4 ,contw 
+5f97 20600000 rtn 
+
+uart_copy_rx_bytes:
+5f98 1f227e00 deposit loopcnt 
+5f99 207a0000 rtn blank 
+
+uart_copy_rx_bytes_loop:
+5f9a efe08003 ifetch 1 ,contu 
+5f9b e7e08005 istore 1 ,contw 
+5f9c c2005f9a loop uart_copy_rx_bytes_loop 
+5f9d 20600000 rtn 
+
+app_store_nvram_event:
+5f9e 70095b3d jam bt_evt_store_nvram ,mem_fifo_temp 
+5f9f 2020789f branch ui_ipc_send_event 
+
+check_51cmd_store_reconn_info:
+
+check_51cmd_update_device_record:
+5fa0 47164025 bpatchx patch25_4 ,mem_patch25 
+5fa1 6fe0c48d fetch 1 ,mem_nv_data_number 
+5fa2 207a0000 rtn blank 
+5fa3 20406047 call check_nvram 
+5fa4 2042e04d call init_device_list ,zero 
+5fa5 20407e68 call disable_user2 
+5fa6 20405fd6 call nvram_find_addr_from_bd_list 
+
+write_device_record:
+5fa7 6fe0c48d fetch 1 ,mem_nv_data_number 
+5fa8 1fe22600 icopy regc 
+5fa9 6849448b fetcht 2 ,mem_nv_data_ptr 
+5faa 604900ef storet 2 ,mem_list_item_ptr 
+
+write_device_loop_find:
+5fab 1a627e00 copy regc ,pdata 
+5fac 203a5f9e branch app_store_nvram_event ,blank 
+5fad 1a60a7ff increase -1 ,regc 
+5fae 18422200 copy temp ,rega 
+5faf efe08011 ifetch 1 ,rega 
+5fb0 684880e7 fetcht 1 ,mem_select_list_item 
+5fb1 98467c00 isub temp ,null 
+5fb2 2042dfbb call set_index_finded_device ,zero 
+5fb3 20215fb7 branch write_device_loop_find0 ,positive 
+5fb4 efe08011 ifetch 1 ,rega 
+5fb5 1fe0fe01 increase 1 ,pdata 
+5fb6 e7e08011 istore 1 ,rega 
+
+write_device_loop_find0:
+5fb7 684900ef fetcht 2 ,mem_list_item_ptr 
+5fb8 18408422 increase nv_data_len ,temp 
+5fb9 604900ef storet 2 ,mem_list_item_ptr 
+5fba 20205fab branch write_device_loop_find 
+
+set_index_finded_device:
+5fbb 58000000 setarg 0 
+5fbc e7e08011 istore 1 ,rega 
+5fbd 6fe080e8 fetch 1 ,mem_temp_reconn_record 
+5fbe e7e08005 istore 1 ,contw 
+5fbf c099dfcb bne rec_3_mode ,set_index_finded_device_ble_mode 
+5fc0 da4041ce arg mem_link_key ,regb 
+
+set_index_find_device_master_addr:
+5fc1 efe30006 ifetch 6 ,contr 
+5fc2 e7e30005 istore 6 ,contw 
+5fc3 6fe0c645 fetch 1 ,mem_encapsulated_minor_type 
+5fc4 e7e08005 istore 1 ,contw 
+5fc5 58000000 setarg 0 
+5fc6 e7e48005 istore 9 ,contw 
+5fc7 1a420c00 copy regb ,contr 
+
+store_rec_data_common:
+5fc8 20407d1a call memcpy16 
+5fc9 18007c01 force 1 ,null 
+5fca 20600000 rtn 
+
+set_index_finded_device_ble_mode:
+5fcb c01b5fcf beq rec_4_mode_random_resolvable_private_address ,set_index_finded_device_irk 
+5fcc c01bdfd3 beq rec_4_mode_random_non_resolvable_private_address ,set_index_finded_device_ediv 
+5fcd da404314 arg mem_le_ltk ,regb 
+5fce 20205fc1 branch set_index_find_device_master_addr 
+
+set_index_finded_device_irk:
+5fcf d8c043aa arg mem_le_irk ,contr 
+5fd0 20407d1a call memcpy16 
+
+store_ble_rec_data_common:
+5fd1 d8c04314 arg mem_le_ltk ,contr 
+5fd2 20205fc8 branch store_rec_data_common 
+
+set_index_finded_device_ediv:
+5fd3 d8c043a2 arg mem_le_rand ,contr 
+5fd4 20407d1a call memcpy16 
+5fd5 20205fd1 branch store_ble_rec_data_common 
+
+nvram_find_addr_from_bd_list:
+5fd6 20407e64 call disable_user 
+5fd7 6fe0c48d fetch 1 ,mem_nv_data_number 
+5fd8 207a0000 rtn blank 
+5fd9 4716c025 bpatchx patch25_5 ,mem_patch25 
+5fda 6fe1478b fetch 2 ,mem_ui_state_map 
+5fdb c2805ff9 bbit1 ui_state_bt_connected ,find_addr_from_bd_list_spp_mode 
+5fdc c4048000 rtnbit0 ui_state_ble_connected 
+
+find_addr_from_bd_list_ble_mode:
+5fdd 6fe0c368 fetch 1 ,mem_le_conn_peer_addr_type 
+5fde c0005ff2 beq master_public_addr ,find_addr_from_bd_list_public_device_addr 
+5fdf 6fe0829c fetch 1 ,mem_le_plap + 5 
+5fe0 2fe180c0 compare 0xc0 ,pdata ,0xc0 
+5fe1 2020dfe5 branch find_addr_from_bd_list_static_addr ,true 
+5fe2 2fe18040 compare 0x40 ,pdata ,0xc0 
+5fe3 2020dff7 branch find_addr_from_bd_list_random_addr ,true 
+5fe4 20205fec branch find_addr_from_bd_list_random_non_resolvable_private_address_sc_or_legacy 
+
+find_addr_from_bd_list_static_addr:
+5fe5 20365fe9 branch find_addr_from_bd_list_static_addr_reconnect ,user2 
+5fe6 6fe0c34c fetch 1 ,mem_le_preq_init_key_distribution 
+5fe7 c300dff2 bbit0 le_initator_irk_bit ,find_addr_from_bd_list_public_device_addr 
+5fe8 20205fec branch find_addr_from_bd_list_static_addr_sc_or_legacy 
+
+find_addr_from_bd_list_static_addr_reconnect:
+5fe9 20405ff2 call find_addr_from_bd_list_public_device_addr 
+5fea 20740000 rtn user 
+5feb 20205fec branch find_addr_from_bd_list_static_addr_sc_or_legacy 
+
+find_addr_from_bd_list_static_addr_sc_or_legacy:
+
+find_addr_from_bd_list_random_non_resolvable_private_address_sc_or_legacy:
+5fec 6fe0c39b fetch 1 ,mem_le_pairing_mode 
+5fed c283dfef bbit1 le_pairing_mode_secure_connect_bit ,find_addr_from_bd_list_random_non_resolvable_private_address_sc 
+5fee 20205ff5 branch find_addr_from_bd_list_random_non_resolvable_private_address 
+
+find_addr_from_bd_list_static_addr_sc:
+
+find_addr_from_bd_list_random_non_resolvable_private_address_sc:
+5fef 6fe30297 fetch 6 ,mem_le_plap 
+5ff0 67e443a2 store 8 ,mem_le_rand 
+5ff1 20205ff5 branch find_addr_from_bd_list_random_non_resolvable_private_address 
+
+find_addr_from_bd_list_public_device_addr:
+5ff2 7000e835 jam rec_4_mode_static_address ,mem_temp_reconn_record 
+5ff3 6fe30297 fetch 6 ,mem_le_plap 
+5ff4 20205ffb branch find_addr_from_bd_list_common 
+
+find_addr_from_bd_list_random_non_resolvable_private_address:
+5ff5 7000e837 jam rec_4_mode_random_non_resolvable_private_address ,mem_temp_reconn_record 
+5ff6 20205ffb branch find_addr_from_bd_list_common 
+
+find_addr_from_bd_list_random_addr:
+5ff7 7000e836 jam rec_4_mode_random_resolvable_private_address ,mem_temp_reconn_record 
+5ff8 20205ffb branch find_addr_from_bd_list_common 
+
+find_addr_from_bd_list_spp_mode:
+5ff9 7000e833 jam rec_3_mode ,mem_temp_reconn_record 
+5ffa 6fe30041 fetch 6 ,mem_plap 
+
+find_addr_from_bd_list_common:
+5ffb 67e300e9 store 6 ,mem_temp_lap 
+5ffc 6fe1448b fetch 2 ,mem_nv_data_ptr 
+5ffd e840803f ifetcht 1 ,pdata 
+5ffe 1fe0fe01 pincrease 1 
+5fff 67e100ef store 2 ,mem_list_item_ptr 
+6000 604880e7 storet 1 ,mem_select_list_item 
+6001 6fe0c48d fetch 1 ,mem_nv_data_number 
+6002 1fe22600 icopy regc 
+
+nvram_find_addr_from_list:
+6003 6fe100ef fetch 2 ,mem_list_item_ptr 
+6004 1fe22200 copy pdata ,rega 
+6005 20406013 call nvram_find_addr_from_list_compare 
+6006 20740000 rtn user 
+6007 684900ef fetcht 2 ,mem_list_item_ptr 
+6008 18408422 increase nv_data_len ,temp 
+6009 604900ef storet 2 ,mem_list_item_ptr 
+600a 184085ff increase -1 ,temp 
+600b efe08002 ifetch 1 ,temp 
+600c 67e080e7 store 1 ,mem_select_list_item 
+600d 1a60a7ff increase -1 ,regc 
+600e 2422e003 nbranch nvram_find_addr_from_list ,zero 
+600f 6fe0c48d fetch 1 ,mem_nv_data_number 
+6010 1fe0ffff pincrease decreased_one 
+6011 67e080e7 store 1 ,mem_select_list_item 
+6012 20600000 rtn 
+
+nvram_find_addr_from_list_compare:
+6013 6fe080e8 fetch 1 ,mem_temp_reconn_record 
+6014 c099e01a bne rec_3_mode ,find_addr_from_list_compare_ble_mode 
+
+find_master_addr_from_list_compare:
+6015 da4000e8 arg mem_temp_reconn_record ,regb 
+6016 df200007 arg 7 ,loopcnt 
+6017 20407dff call string_compare 
+6018 2022fe62 branch enable_user ,zero 
+6019 20600000 rtn 
+
+find_addr_from_list_compare_ble_mode:
+601a c01b601d beq rec_4_mode_random_resolvable_private_address ,find_irk_form_list_compare 
+601b c01be038 beq rec_4_mode_random_non_resolvable_private_address ,find_ediv_form_list_compare 
+601c 20206015 branch find_master_addr_from_list_compare 
+
+find_irk_form_list_compare:
+601d e8408011 ifetcht 1 ,rega 
+601e 98467c00 isub temp ,null 
+601f 24628000 nrtn zero 
+6020 d8a0098e arg mem_le_prand ,contw 
+6021 df200010 arg 16 ,loopcnt 
+6022 20407d34 call clear_mem 
+6023 6fe1829a fetch 3 ,mem_le_plap + 3 
+6024 67e1898e store 3 ,mem_le_prand 
+6025 2040602f call genernate_master_macaddress 
+6026 6fe109ab fetch 2 ,mem_le_aes_128 + 13 
+6027 1ff0fe00 byteswap pdata ,pdata 
+6028 1fed0400 lshift8 pdata ,temp 
+6029 efe08006 ifetch 1 ,contr 
+602a 9840fe00 iadd temp ,pdata 
+602b 68498297 fetcht 3 ,mem_le_plap 
+602c 98467c00 isub temp ,null 
+602d 2022fe62 branch enable_user ,zero 
+602e 20600000 rtn 
+
+genernate_master_macaddress:
+602f d8c0098e arg mem_le_prand ,contr 
+6030 20406ded call load_data128 
+6031 efe08011 ifetch 1 ,rega 
+6032 20406dee call load_regext 
+6033 18006c38 force 0x38 ,aes_ctrl 
+6034 18006c00 force 0x0 ,aes_ctrl 
+6035 20406d84 call wait_aes 
+6036 d8a0099e arg mem_le_aes_128 ,contw 
+6037 20206dfe branch store_aes_result 
+
+find_ediv_form_list_compare:
+6038 e8408011 ifetcht 1 ,rega 
+6039 98467c00 isub temp ,null 
+603a 24628000 nrtn zero 
+603b 18c22200 copy contr ,rega 
+603c 18c0a608 add contr ,8 ,regc 
+603d da4043a2 arg mem_le_rand ,regb 
+603e df200008 arg 8 ,loopcnt 
+603f 20407dff call string_compare 
+6040 2022fe62 branch enable_user ,zero 
+6041 1a622200 copy regc ,rega 
+6042 da4043aa arg mem_le_irk ,regb 
+6043 df200008 arg 8 ,loopcnt 
+6044 20407dff call string_compare 
+6045 2022fe62 branch enable_user ,zero 
+6046 20600000 rtn 
+
+check_nvram:
+6047 6fe1448b fetch 2 ,mem_nv_data_ptr 
+6048 e840803f ifetcht 1 ,pdata 
+6049 1fe0fe22 pincrease nv_data_len 
+604a efe0803f ifetch 1 ,pdata 
+604b 98467c00 isub temp ,null 
+604c 20600000 rtn 
+
+init_device_list:
+604d 6fe0c48d fetch 1 ,mem_nv_data_number 
+604e 1fe27200 icopy loopcnt 
+604f 6849448b fetcht 2 ,mem_nv_data_ptr 
+6050 58000000 setarg 0 
+
+init_device_list_loop:
+6051 e7e08002 istore 1 ,temp 
+6052 18408422 increase nv_data_len ,temp 
+6053 1fe0fe01 pincrease 1 
+6054 c2006051 loop init_device_list_loop 
+6055 20600000 rtn 
+
+load_device_list:
+6056 47174025 bpatchx patch25_6 ,mem_patch25 
+6057 20407e66 call enable_user2 
+6058 20405fd6 call nvram_find_addr_from_bd_list 
+6059 6fe08031 fetch 1 ,mem_state 
+605a 79347e06 setflag user ,state_combkey ,pdata 
+605b 67e08031 store 1 ,mem_state 
+605c 24346063 nbranch clear_key_exists ,user 
+605d efe08011 ifetch 1 ,rega 
+605e 67e0c645 store 1 ,mem_encapsulated_minor_type 
+605f 1a208c0a add rega ,10 ,contr 
+6060 d8a041ce arg mem_link_key ,contw 
+6061 20407d1a call memcpy16 
+6062 2020607b branch check_link_key_load 
+
+clear_key_exists:
+6063 7041cd00 jam 0 ,mem_link_key_exists 
+6064 20600000 rtn 
+
+load_device_list_mode_4:
+6065 6fe4c3a0 fetch 9 ,mem_le_ediv 
+6066 203a6072 branch clear_ltk_exists ,blank 
+6067 20407e66 call enable_user2 
+6068 20405fd6 call nvram_find_addr_from_bd_list 
+6069 24346072 nbranch clear_ltk_exists ,user 
+606a 6fe100ef fetch 2 ,mem_list_item_ptr 
+606b 1fe08c01 add pdata ,1 ,contr 
+606c d8a043aa arg mem_le_irk ,contw 
+606d 20407d1a call memcpy16 
+606e d8a04314 arg mem_le_ltk ,contw 
+606f 20407d1a call memcpy16 
+6070 70432401 jam 1 ,mem_ltk_exists 
+6071 20600000 rtn 
+
+clear_ltk_exists:
+6072 70432400 jam 0 ,mem_ltk_exists 
+6073 20600000 rtn 
+
+eeprom_store_le_reconn_info:
+6074 7000e834 jam rec_4_mode ,mem_record_bt_mode 
+6075 20206077 branch eeprom_store_reconn_info 
+
+eeprom_store_bd_reconn_info:
+6076 7000e833 jam rec_3_mode ,mem_record_bt_mode 
+
+eeprom_store_reconn_info:
+6077 6fe0c09a fetch 1 ,mem_device_option 
+6078 c0055fa0 beq dvc_op_module ,check_51cmd_update_device_record 
+6079 c00445c6 beq dvc_op_mouse ,mouse_store_remote_bdaddr 
+607a 20600000 rtn 
+
+check_link_key_load:
+607b 6fe441ce fetch 8 ,mem_link_key 
+607c 684c41d6 fetcht 8 ,mem_link_key + 8 
+607d 9841fe00 ior temp ,pdata 
+607e 207a0000 rtn blank 
+607f 7041cd01 jam 1 ,mem_link_key_exists 
+6080 20600000 rtn 
+
+gpio_set_wake_by_current_state:
+6081 4717c025 bpatchx patch25_7 ,mem_patch25 
+6082 79200407 set1 gpio_active_bit ,temp 
+6083 204060a8 call gpio_get_bit 
+6084 7d208407 nsetflag true ,gpio_active_bit ,temp 
+
+gpio_set_wake:
+6085 47184026 bpatchx patch26_0 ,mem_patch26 
+6086 18467cff sub temp ,ui_button_gpio_disable ,null 
+6087 20628000 rtn zero 
+6088 284c0007 isolate0 gpio_active_bit ,temp 
+6089 18410e1f and temp ,0x1f ,queue 
+608a 6fe2009f fetch 4 ,mem_gpio_wakeup_low 
+608b f920fe00 qsetflag true ,pdata 
+608c 67e2009f store 4 ,mem_gpio_wakeup_low 
+608d 6fe200a3 fetch 4 ,mem_gpio_wakeup_high 
+608e fd20fe00 nqsetflag true ,pdata 
+608f 67e200a3 store 4 ,mem_gpio_wakeup_high 
+6090 20600000 rtn 
+
+gpio_clr_wake:
+6091 4718c026 bpatchx patch26_1 ,mem_patch26 
+6092 18467cff sub temp ,ui_button_gpio_disable ,null 
+6093 20628000 rtn zero 
+6094 284c0007 isolate0 gpio_active_bit ,temp 
+6095 18410e1f and temp ,0x1f ,queue 
+6096 6fe2009f fetch 4 ,mem_gpio_wakeup_low 
+6097 f93ffe00 qset0 pdata 
+6098 67e2009f store 4 ,mem_gpio_wakeup_low 
+6099 6fe200a3 fetch 4 ,mem_gpio_wakeup_high 
+609a f93ffe00 qset0 pdata 
+609b 67e200a3 store 4 ,mem_gpio_wakeup_high 
+609c 20600000 rtn 
+
+gpio_config_input_nowake:
+609d 20406091 call gpio_clr_wake 
+609e 202060a2 branch gpio_config_input_without_wake 
+
+gpio_config_input:
+609f 18467cff sub temp ,ui_button_gpio_disable ,null 
+60a0 20628000 rtn zero 
+60a1 2455e085 ncall gpio_set_wake ,wake 
+
+gpio_config_input_without_wake:
+60a2 204060da call gpio_addr 
+60a3 58000000 setarg 0 
+60a4 284ffe07 isolate1 gpio_active_bit ,temp 
+60a5 7d20fe06 nsetflag true ,6 ,pdata 
+60a6 7920fe07 setflag true ,7 ,pdata 
+60a7 202060cc branch gpio_write 
+
+gpio_get_bit:
+60a8 d8a0811c arg core_gpio_in ,contw 
+60a9 18410e07 and temp ,0x07 ,queue 
+60aa 18497e00 rshift3 temp ,pdata 
+60ab 1fe17e03 and_into 3 ,pdata 
+60ac 98a08a00 iadd contw ,contw 
+60ad efe08005 ifetch 1 ,contw 
+60ae 284ffe07 isolate1 gpio_active_bit ,temp 
+60af 2020e0b2 branch gpio_get_bit_reverse ,true 
+60b0 afec0000 qisolate0 pdata 
+60b1 20600000 rtn 
+
+gpio_get_bit_reverse:
+60b2 afefffff qisolate1 pdata 
+60b3 20600000 rtn 
+
+gpio_out_inactive:
+60b4 18467cff sub temp ,ui_button_gpio_disable ,null 
+60b5 20628000 rtn zero 
+60b6 2fcffe07 isolate1 gpio_active_bit ,null 
+60b7 202060bb branch gpio_out_flag 
+
+gpio_config_output:
+
+gpio_out_active:
+60b8 18467cff sub temp ,ui_button_gpio_disable ,null 
+60b9 20628000 rtn zero 
+60ba 2fcc0007 isolate0 gpio_active_bit ,null 
+
+gpio_out_flag:
+60bb 58000000 setarg 0 
+60bc 7d20fe07 nsetflag true ,gpio_active_bit ,pdata 
+60bd 98428400 ixor temp ,temp 
+
+gpio_out:
+60be 204060da call gpio_addr 
+60bf 5800003f setarg gpcfg_output_high 
+60c0 284ffe07 isolate1 gpio_active_bit ,temp 
+60c1 7920fe00 setflag true ,0 ,pdata 
+60c2 202060cc branch gpio_write 
+
+gpio_check_active:
+60c3 204060da call gpio_addr 
+60c4 efe08005 ifetch 1 ,contw 
+60c5 c28060c8 bbit1 0 ,gpio_check_active_high 
+60c6 284c0007 isolate0 gpio_active_bit ,temp 
+60c7 20600000 rtn 
+
+gpio_check_active_high:
+60c8 284c0007 isolate0 gpio_active_bit ,temp 
+60c9 20600000 rtn 
+
+gpio_set_analog:
+60ca 204060da call gpio_addr 
+60cb 580000c0 setarg gpcfg_no_ie 
+
+gpio_write:
+60cc e7e08005 istore 1 ,contw 
+60cd 20600000 rtn 
+
+gpio_set_high_impedance:
+60ce 204060da call gpio_addr 
+60cf 58000000 setarg gpcfg_high_impedance 
+60d0 202060cc branch gpio_write 
+
+gpio_pd_idle:
+60d1 d8c08070 arg core_gpio_conf ,contr 
+60d2 df200028 arg 40 ,loopcnt 
+
+gpio_pd_idle_loop:
+60d3 efe08006 ifetch 1 ,contr 
+60d4 243a60d8 nbranch gpio_pd_idle_configured ,blank 
+60d5 58000080 setarg 0x80 
+60d6 18c08bff add contr ,-1 ,contw 
+60d7 e7e08005 istore 1 ,contw 
+
+gpio_pd_idle_configured:
+60d8 c20060d3 loop gpio_pd_idle_loop 
+60d9 20600000 rtn 
+
+gpio_addr:
+60da 18417e3f and temp ,0x3f ,pdata 
+60db d8a08070 arg core_gpio_conf ,contw 
+60dc 98a08a00 iadd contw ,contw 
+60dd 20600000 rtn 
+
+gpio_config_param:
+60de 1fe104ff and pdata ,0xff ,temp 
+60df 1fecfe00 rshift8 pdata ,pdata 
+60e0 202060e2 branch gpio_config_function_int 
+
+gpio_config_function:
+60e1 c4038000 rtnbit0 gpio_active_bit 
+
+gpio_config_function_int:
+60e2 1fe17e3f and_into 0x3f ,pdata 
+60e3 d8a08070 arg core_gpio_conf ,contw 
+60e4 98a08a00 iadd contw ,contw 
+60e5 e0408005 istoret 1 ,contw 
+60e6 20600000 rtn 
+
+gpio_get_config:
+60e7 1841043f and_into 0x3f ,temp 
+60e8 58008070 setarg core_gpio_conf 
+60e9 98408c00 iadd temp ,contr 
+60ea efe08006 ifetch 1 ,contr 
+60eb 20600000 rtn 
+
+gpio_set_before_lpm_common:
+60ec 47194026 bpatchx patch26_2 ,mem_patch26 
+60ed 20600000 rtn 
+
+neglect2_from_6_pin:
+60ee d8e00006 arg 6 ,queue 
+60ef 202060fe branch neglect_2_pin 
+
+neglect4_from_9_pin:
+60f0 d8e00009 arg 9 ,queue 
+60f1 202060fc branch neglact_4_pin 
+
+neglact4_from_23_pin:
+60f2 d8e00017 arg 23 ,queue 
+60f3 202060fc branch neglact_4_pin 
+
+neglact2_form_25_pin:
+60f4 d8e00019 arg 25 ,queue 
+60f5 202060fe branch neglect_2_pin 
+
+neglact2_form_30_pin:
+60f6 d8e0001e arg 30 ,queue 
+60f7 202060fe branch neglect_2_pin 
+
+neglact2_form_2_pin:
+60f8 d8e00002 arg 2 ,queue 
+60f9 202060fe branch neglect_2_pin 
+
+neglact_1_pin:
+60fa df200001 arg 1 ,loopcnt 
+60fb 202060ff branch neglect_pin_loop 
+
+neglact_4_pin:
+60fc df200004 arg 4 ,loopcnt 
+60fd 202060ff branch neglect_pin_loop 
+
+neglect_2_pin:
+60fe df200002 arg 2 ,loopcnt 
+
+neglect_pin_loop:
+60ff f93fa200 qset0 rega 
+6100 18e08e01 increase 1 ,queue 
+6101 c20060ff loop neglect_pin_loop 
+6102 20600000 rtn 
+
+dpll_en_check:
+6103 6ff08a00 fetch 1 ,core_clkpll_ctrl0 
+6104 1fe17e03 and_into 0x03 ,pdata 
+6105 c081fe6c bne 0x03 ,enable_blank 
+6106 6ff08a01 fetch 1 ,core_clkpll_ctrl1 
+6107 1fe17e7f and_into 0x7f ,pdata 
+6108 c0bffe6c bne 0x7f ,enable_blank 
+6109 20207e6a branch disable_blank 
+
+measure_adc_en:
+610a 20406103 call dpll_en_check 
+610b 205a124d call dpll_en ,blank 
+610c 6ff08a02 fetch 1 ,core_clkpll_ctrl2 
+610d 79207e02 set1 2 ,pdata 
+610e 67f08a02 store 1 ,core_clkpll_ctrl2 
+610f 6ff08a12 fetch 1 ,core_rf_ldo_cfg6 
+6110 1fe1fe07 or_into 0x07 ,pdata 
+6111 1fe17efd and_into 0xfd ,pdata 
+6112 67f08a12 store 1 ,core_rf_ldo_cfg6 
+6113 6ff08a0a fetch 1 ,core_rf_ldo_en0 
+6114 1fe1fe0c or_into 0x0c ,pdata 
+6115 67f08a0a store 1 ,core_rf_ldo_en0 
+6116 6ff08a0b fetch 1 ,core_rf_ldo_en1 
+6117 79207e02 set1 2 ,pdata 
+6118 67f08a0b store 1 ,core_rf_ldo_en1 
+6119 20000078 nop 120 
+611a 6ff08a17 fetch 1 ,core_rx_en0 
+611b 1fe17ef1 and_into 0xf1 ,pdata 
+611c 1fe1fe06 or_into 0x06 ,pdata 
+611d 67f08a17 store 1 ,core_rx_en0 
+611e 6ff08a18 fetch 1 ,core_rx_en1 
+611f 1fe17ee0 and_into 0xe0 ,pdata 
+6120 67f08a18 store 1 ,core_rx_en1 
+6121 6ff08a97 fetch 1 ,core_gpadc_ctrl 
+6122 1fe17e80 and_into 0x80 ,pdata 
+6123 1fe1fe01 or_into 0x01 ,pdata 
+6124 67f08a97 store 1 ,core_gpadc_ctrl 
+6125 20000078 nop 120 
+6126 708a1000 jam 0 ,core_rf_ldo_cfg4 
+6127 6ff08a11 fetch 1 ,core_rf_ldo_cfg5 
+6128 79207e04 set1 4 ,pdata 
+6129 793ffe05 set0 5 ,pdata 
+612a 67f08a11 store 1 ,core_rf_ldo_cfg5 
+612b 20600000 rtn 
+
+adc_init_data:
+612c 4719c026 bpatchx patch26_3 ,mem_patch26 
+612d 20600000 rtn 
+
+adc_set_mode:
+612e 6fe0c4a3 fetch 1 ,mem_adc_config_flag 
+612f c0006133 beq adc_config_vinlpm ,adc_check_vinlpm 
+6130 c000e135 beq adc_config_hvin ,adc_check_hvin 
+6131 c0016137 beq adc_config_gpio ,adc_check_gpio 
+6132 20600000 rtn 
+
+adc_check_vinlpm:
+6133 708a9750 jam 0x50 ,core_gpadc_ctrl 
+6134 2020613b branch read_adc 
+
+adc_check_hvin:
+6135 708a9748 jam 0x48 ,core_gpadc_ctrl 
+6136 2020613b branch read_adc 
+
+adc_check_gpio:
+6137 6fe0c4a4 fetch 1 ,mem_adc_channel 
+6138 1fe9fe00 lshift3 pdata ,pdata 
+6139 67f08a97 store 1 ,core_gpadc_ctrl 
+613a 2020613b branch read_adc 
+
+read_adc:
+613b 471a4026 bpatchx patch26_4 ,mem_patch26 
+613c 2040610a call measure_adc_en 
+613d 6ff08053 fetch 1 ,core_uart_baud + 1 
+613e 79207e07 set1 7 ,pdata 
+613f 67f08053 store 1 ,core_uart_baud + 1 
+6140 20001388 nop 5000 
+6141 68590150 fetcht 2 ,core_adc_sum 
+6142 6ff08053 fetch 1 ,core_uart_baud + 1 
+6143 793ffe07 set0 7 ,pdata 
+6144 67f08053 store 1 ,core_uart_baud + 1 
+6145 604944a5 storet 2 ,mem_adc_current_value 
+6146 20600000 rtn 
+
+vdd_calculate_by_mode:
+6147 471ac026 bpatchx patch26_5 ,mem_patch26 
+6148 6fe0c4a3 fetch 1 ,mem_adc_config_flag 
+6149 c000614d beq adc_config_vinlpm ,vdd_calculate_vinlpm 
+614a c000e151 beq adc_config_hvin ,vdd_calculate_hvin 
+614b c0016155 beq adc_config_gpio ,vdd_calculate_io 
+614c 20600000 rtn 
+
+vdd_calculate_vinlpm:
+614d 6fe1449d fetch 2 ,mem_3v_adc_vinlpm_data 
+614e 68494497 fetcht 2 ,mem_2v_adc_vinlpm_data 
+614f da6000c8 arg 200 ,regc 
+6150 20206159 branch vdd_calculate 
+
+vdd_calculate_hvin:
+6151 6fe1449b fetch 2 ,mem_5v_adc_hvin_data 
+6152 68494495 fetcht 2 ,mem_3v_adc_hvin_data 
+6153 da600064 arg 100 ,regc 
+6154 20206159 branch vdd_calculate 
+
+vdd_calculate_io:
+6155 6fe14499 fetch 2 ,mem_1v_adc_io_data 
+6156 68494493 fetcht 2 ,mem_3v_adc_io_data 
+6157 da600032 arg 50 ,regc 
+6158 20206159 branch vdd_calculate 
+
+vdd_calculate:
+6159 98462200 isub temp ,rega 
+615a 6fe144a5 fetch 2 ,mem_adc_current_value 
+615b 98467e00 isub temp ,pdata 
+615c 24216166 nbranch vdd_calculate1 ,positive 
+615d 684944a1 fetcht 2 ,mem_reference_voltage 
+615e 984fa400 imul32 temp ,regb 
+615f 1a627e00 copy regc ,pdata 
+6160 9a2ffe00 imul32 rega ,pdata 
+6161 9a40fe00 iadd regb ,pdata 
+
+vdd_calculate2:
+6162 9a26fc00 idiv rega 
+6163 20407dfd call wait_div_end 
+6164 1807fe00 quotient pdata 
+6165 20600000 rtn 
+
+vdd_calculate1:
+6166 18427e00 copy temp ,pdata 
+6167 684944a5 fetcht 2 ,mem_adc_current_value 
+6168 98467e00 isub temp ,pdata 
+6169 9a267c00 isub rega ,null 
+616a 20416171 call vdd_calculate3 ,positive 
+616b 684944a1 fetcht 2 ,mem_reference_voltage 
+616c 984fa400 imul32 temp ,regb 
+616d 1a627e00 copy regc ,pdata 
+616e 9a2ffe00 imul32 rega ,pdata 
+616f 9a467e00 isub regb ,pdata 
+6170 20206162 branch vdd_calculate2 
+
+vdd_calculate3:
+6171 1a227e00 copy rega ,pdata 
+6172 20600000 rtn 
+
+adc_bat_percent_lowpower_out:
+6173 efe40011 ifetch 8 ,rega 
+6174 67e4095c store 8 ,mem_pdatatemp 
+6175 6fe1095c fetch 2 ,mem_pdatatemp 
+6176 6849095e fetcht 2 ,mem_pdatatemp + 2 
+6177 98462200 isub temp ,rega 
+6178 6fe10962 fetch 2 ,mem_pdatatemp + 6 
+6179 98462400 isub temp ,regb 
+617a 68490960 fetcht 2 ,mem_pdatatemp + 4 
+617b 98467c00 isub temp ,null 
+617c 24416183 ncall adc_set_low_power_flag ,positive 
+617d 1a4ffe64 mul32 regb ,100 ,pdata 
+617e 9a26fc00 idiv rega 
+617f 20407dfd call wait_div_end 
+6180 1807fe00 quotient pdata 
+6181 205a618b call adc_set_no_power_flag ,blank 
+6182 20600000 rtn 
+
+adc_set_low_power_flag:
+6183 6fe0c4a7 fetch 1 ,mem_adc_power_flag 
+6184 79207e00 set1 0 ,pdata 
+6185 67e0c4a7 store 1 ,mem_adc_power_flag 
+6186 20600000 rtn 
+
+adc_clear_low_power_flag:
+6187 6fe0c4a7 fetch 1 ,mem_adc_power_flag 
+6188 793ffe00 set0 0 ,pdata 
+6189 67e0c4a7 store 1 ,mem_adc_power_flag 
+618a 20600000 rtn 
+
+adc_set_no_power_flag:
+618b 6848c4a7 fetcht 1 ,mem_adc_power_flag 
+618c 79200401 set1 1 ,temp 
+618d 6048c4a7 storet 1 ,mem_adc_power_flag 
+618e 20600000 rtn 
+
+adc_clear_no_power_flag:
+618f 6848c4a7 fetcht 1 ,mem_adc_power_flag 
+6190 793f8401 set0 1 ,temp 
+6191 6048c4a7 storet 1 ,mem_adc_power_flag 
+6192 20600000 rtn 
+
+keyscan_key_init:
+6193 6fe144c9 fetch 2 ,mem_key_num_ptr 
+6194 efe0803f ifetch 1 ,pdata 
+
+keyscan_key_init_next:
+6195 207a0000 rtn blank 
+6196 1fe27200 copy pdata ,loopcnt 
+6197 6fe144c9 fetch 2 ,mem_keyscan_ptr 
+6198 1fe0fe03 increase 3 ,pdata 
+6199 1fe22200 copy pdata ,rega 
+
+keyscan_key_init_lp1:
+619a e8408011 ifetcht 1 ,rega 
+619b 2040609f call gpio_config_input 
+619c 1a20a201 increase key_conf_struct_len ,rega 
+619d c200619a loop keyscan_key_init_lp1 
+
+keyscan_key_init_end:
+619e 20600000 rtn 
+
+keyscan_scan_key:
+619f 6fe144c9 fetch 2 ,mem_keyscan_ptr 
+61a0 1fe0fe03 increase 3 ,pdata 
+61a1 1fe22200 copy pdata ,rega 
+61a2 18002400 force 0 ,regb 
+61a3 7009de00 jam 0 ,mem_key_value_temp 
+
+keyscan_scan_key_lp1:
+61a4 e8408011 ifetcht 1 ,rega 
+61a5 204060a8 call gpio_get_bit 
+61a6 471b4026 bpatchx patch26_6 ,mem_patch26 
+61a7 6fe109de fetch 2 ,mem_key_value_temp 
+61a8 1a420e00 copy regb ,queue 
+61a9 f920fe00 qsetflag true ,pdata 
+61aa 67e109de store 2 ,mem_key_value_temp 
+61ab 1a20a201 increase key_conf_struct_len ,rega 
+61ac 1a40a401 increase 1 ,regb 
+61ad 6fe144c9 fetch 2 ,mem_key_num_ptr 
+61ae efe0803f ifetch 1 ,pdata 
+
+keyscan_scan_key_lp1_next:
+61af 9a42fc00 ixor regb ,null 
+61b0 2422e1a4 nbranch keyscan_scan_key_lp1 ,zero 
+61b1 6fe109de fetch 2 ,mem_key_value_temp 
+61b2 684909e0 fetcht 2 ,mem_key_value 
+61b3 9842fc00 ixor temp ,null 
+61b4 20628000 rtn zero 
+61b5 78347c00 enable user 
+61b6 20600000 rtn 
+
+keyscan_process_lpm_before:
+61b7 6fe144c9 fetch 2 ,mem_key_num_ptr 
+61b8 efe0803f ifetch 1 ,pdata 
+
+keyscan_process_lpm_before_next:
+61b9 207a0000 rtn blank 
+61ba 1fe27200 copy pdata ,loopcnt 
+61bb 6fe144c9 fetch 2 ,mem_keyscan_ptr 
+61bc 1fe0fe03 increase 3 ,pdata 
+61bd 1fe22200 copy pdata ,rega 
+
+keyscan_process_lpm_before_lp1:
+61be e8408011 ifetcht 1 ,rega 
+61bf 20406081 call gpio_set_wake_by_current_state 
+61c0 1a20a201 increase key_conf_struct_len ,rega 
+61c1 c20061be loop keyscan_process_lpm_before_lp1 
+
+keyscan_process_lpm_before_end:
+61c2 20600000 rtn 
+
+keyscan_key_process:
+61c3 d8e00009 arg key_scan_timer ,queue 
+61c4 20407d82 call timer_check 
+61c5 247a0000 nrtn blank 
+61c6 58000020 setarg 0x20 
+61c7 d8e00009 arg key_scan_timer ,queue 
+61c8 20407d74 call timer_init 
+61c9 78547c00 disable user 
+61ca 204061b7 call keyscan_process_lpm_before 
+61cb 471bc026 bpatchx patch26_7 ,mem_patch26 
+61cc 6fe144c9 fetch 2 ,mem_key_num_ptr 
+61cd efe0803f ifetch 1 ,pdata 
+
+keyscan_key_process_next:
+61ce 207a0000 rtn blank 
+61cf 2040619f call keyscan_scan_key 
+61d0 24347817 nbranch lpm_button_clean_wake_lock ,user 
+61d1 20407815 call lpm_button_get_wake_lock 
+61d2 78547c00 disable user 
+61d3 6fe109de fetch 2 ,mem_key_value_temp 
+61d4 67e109e5 store 2 ,mem_key_value_temp4 
+61d5 7009e700 jam 0 ,mem_key_value_temp6 
+61d6 18000e00 force 0 ,queue 
+
+keyscan_key_lp1:
+61d7 6fe109e0 fetch 2 ,mem_key_value 
+61d8 1fe30400 rshift pdata ,temp 
+61d9 604909e0 storet 2 ,mem_key_value 
+61da 1fe17e01 and pdata ,0x01 ,pdata 
+61db 684909e5 fetcht 2 ,mem_key_value_temp4 
+61dc 18412201 and temp ,0x01 ,rega 
+61dd 18430400 rshift temp ,temp 
+61de 604909e5 storet 2 ,mem_key_value_temp4 
+61df 9a22fc00 ixor rega ,null 
+61e0 2442e1ec ncall keyscan_send_key_data ,zero 
+61e1 6fe144c9 fetch 2 ,mem_key_num_ptr 
+61e2 efe0803f ifetch 1 ,pdata 
+
+keyscan_key_lp1_next:
+61e3 684889e7 fetcht 1 ,mem_key_value_temp6 
+61e4 18408401 increase 1 ,temp 
+61e5 604889e7 storet 1 ,mem_key_value_temp6 
+61e6 18420e00 copy temp ,queue 
+61e7 98e2fc00 ixor queue ,null 
+61e8 2422e1d7 nbranch keyscan_key_lp1 ,zero 
+61e9 6fe109de fetch 2 ,mem_key_value_temp 
+61ea 67e109e0 store 2 ,mem_key_value 
+61eb 20600000 rtn 
+
+keyscan_send_key_data:
+61ec 471c4027 bpatchx patch27_0 ,mem_patch27 
+61ed 6fe144c9 fetch 2 ,mem_keyscan_ptr 
+61ee 1fe0fe01 increase 1 ,pdata 
+61ef efe1003f ifetch 2 ,pdata 
+61f0 20207e13 branch callback_func 
+
+pwm_init:
+61f1 6ff08042 fetch 1 ,core_clksel 
+61f2 9a21fe00 ior rega ,pdata 
+61f3 67f08042 store 1 ,core_clksel 
+61f4 6ff10050 fetch 2 ,core_clkoff 
+61f5 793ffe0d set0 clock_off_pwm ,pdata 
+61f6 67f10050 store 2 ,core_clkoff 
+
+delay_nop100:
+61f7 20000064 nop 100 
+61f8 20600000 rtn 
+
+pwm_clk_set:
+61f9 6ff08042 fetch 1 ,core_clksel 
+61fa c28361fe bbit1 6 ,pwm_24m_clk_set 
+61fb c283e200 bbit1 7 ,pwm_33k_clk_set 
+
+pwm_12m_clk_set:
+61fc 58b71b00 setarg pwm_12mhz 
+61fd 20600000 rtn 
+
+pwm_24m_clk_set:
+61fe 596e3600 setarg pwm_24mhz 
+61ff 20600000 rtn 
+
+pwm_33k_clk_set:
+6200 580080e8 setarg pwm_33khz 
+6201 20600000 rtn 
+
+pwm_cont_set:
+6202 6fe0895d fetch 1 ,mem_pdatatemp + 1 
+6203 c2826206 bbit1 4 ,pwm_cont_set1 
+6204 c302620d bbit0 4 ,pwm_cont_set0 
+6205 20600000 rtn 
+
+pwm_cont_set1:
+6206 78347c00 enable user 
+6207 1fe10e0f and pdata ,0x0f ,queue 
+6208 20406214 call pwm_set_value 
+6209 1807a400 quotient regb 
+620a 18427e00 copy temp ,pdata 
+620b 9a462200 isub regb ,rega 
+620c 20600000 rtn 
+
+pwm_cont_set0:
+620d 78547c00 disable user 
+620e 1fe10e0f and pdata ,0x0f ,queue 
+620f 20406214 call pwm_set_value 
+6210 1807a200 quotient rega 
+6211 18427e00 copy temp ,pdata 
+6212 9a262400 isub rega ,regb 
+6213 20600000 rtn 
+
+pwm_set_value:
+6214 6ff080d8 fetch 1 ,core_pwm_init 
+6215 f9347e00 qsetflag user ,pdata 
+6216 67f080d8 store 1 ,core_pwm_init 
+6217 20600000 rtn 
+
+pwm_out_set:
+6218 6849895e fetcht 3 ,mem_pdatatemp + 2 
+6219 204061f9 call pwm_clk_set 
+621a 9846fc00 idiv temp 
+621b 20407dfd call wait_div_end 
+621c 18078400 quotient temp 
+621d 6fe08961 fetch 1 ,mem_pdatatemp + 5 
+621e 984ffe00 imul32 temp ,pdata 
+621f 1fe6fc64 div pdata ,100 
+6220 20407dfd call wait_div_end 
+6221 20406202 call pwm_cont_set 
+6222 6fe0895d fetch 1 ,mem_pdatatemp + 1 
+6223 2040622a call pwm_duty_cycle_set 
+6224 6fe0895c fetch 1 ,mem_pdatatemp 
+6225 6848895d fetcht 1 ,mem_pdatatemp + 1 
+6226 1841040f and_into 0x0f ,temp 
+6227 184d0400 lshift8 temp ,temp 
+6228 9841fe00 ior temp ,pdata 
+6229 20206233 branch pwm_enable 
+
+pwm_duty_cycle_set:
+622a 1fe17e0f and_into 0x0f ,pdata 
+622b d8a080a0 arg core_pwm_pcnt0 ,contw 
+622c 1feffe04 mul32 pdata ,4 ,pdata 
+622d 98a08a00 iadd contw ,contw 
+622e 1a227e00 copy rega ,pdata 
+622f e7e10005 istore 2 ,contw 
+6230 1a427e00 copy regb ,pdata 
+6231 e7e10005 istore 2 ,contw 
+6232 20600000 rtn 
+
+pwm_enable:
+6233 78347c00 enable user 
+6234 20406248 call pwm_srst_set 
+6235 20206238 branch pwm_gpio_set 
+
+pwm_disable:
+6236 78547c00 disable user 
+6237 20406243 call pwm_select_channel 
+
+pwm_gpio_set:
+6238 18427e00 copy temp ,pdata 
+6239 1fed7e00 lshift8 pdata ,pdata 
+623a 18e08410 add queue ,gpcfg_pwm_out0 ,temp 
+623b 9841fe00 ior temp ,pdata 
+623c 204060de call gpio_config_param 
+
+pwm_set_select:
+623d 6ff08084 fetch 1 ,core_pwm_en 
+623e 70808400 jam 0x00 ,core_pwm_en 
+623f 200004b0 nop 1200 
+6240 f9347e00 qsetflag user ,pdata 
+6241 67f08084 store 1 ,core_pwm_en 
+6242 20600000 rtn 
+
+pwm_select_channel:
+6243 1fe20400 copy pdata ,temp 
+6244 1fecfe00 rshift8 pdata ,pdata 
+6245 1fe20e00 copy pdata ,queue 
+6246 20600000 rtn 
+
+pwm_srst_powerdown:
+6247 78547c00 disable user 
+
+pwm_srst_set:
+6248 20406243 call pwm_select_channel 
+6249 6ff080dd fetch 1 ,core_pwm_srst 
+624a fd347e00 nqsetflag user ,pdata 
+624b 67f080dd store 1 ,core_pwm_srst 
+624c 20206238 branch pwm_gpio_set 
+
+wdt_init_config:
+624d d8402710 arg 0x2710 ,temp 
+624e 984ffe00 imul32 temp ,pdata 
+624f d841312d arg 0x1312d ,temp 
+6250 9846fc00 idiv temp 
+6251 20407dfd call wait_div_end 
+6252 18078400 quotient temp 
+6253 58000800 setarg 2048 
+6254 98467e00 isub temp ,pdata 
+6255 1fe20400 copy pdata ,temp 
+6256 1841040f and_into 0x0f ,temp 
+6257 6058800b storet 1 ,core_write_wdt2 
+6258 1fe20400 copy pdata ,temp 
+6259 18518400 rshift4 temp ,temp 
+625a 60588004 storet 1 ,core_write_wdt 
+625b 20600000 rtn 
+
+wdt_set_enable:
+625c 78347c00 enable user 
+625d 2020625f branch wdt_init_set 
+
+wdt_set_disable:
+625e 78547c00 disable user 
+
+wdt_init_set:
+625f 6ff08043 fetch 1 ,core_config 
+6260 79347e03 setflag user ,3 ,pdata 
+6261 67f08043 store 1 ,core_config 
+6262 20600000 rtn 
+
+nec61212_init:
+6263 d8400031 arg fun_nec_enable | fun_nec_clk_divide_24 ,temp 
+
+nec_init_config:
+6264 67f200ca store 4 ,core_nec_start_addr 
+6265 67f100ce store 2 ,core_nec_rptr 
+6266 605880d0 storet 1 ,core_nec_control 
+6267 20600000 rtn 
+
+nec_check_rxbuff_size:
+6268 6ff10130 fetch 2 ,core_nec_rxitem 
+6269 20600000 rtn 
+
+nec_prepare_read:
+626a 687100ce fetchr contu ,2 ,core_nec_rptr 
+626b 695100ca fetchr contus ,2 ,core_nec_start_addr 
+626c 6a1100cc fetchr contue ,2 ,core_nec_end_addr 
+626d 20600000 rtn 
+
+nec_read_done:
+626e 607100ce storer contu ,2 ,core_nec_rptr 
+626f 20600000 rtn 
+
+nec_parse_nec61212:
+6270 20407e62 call enable_user 
+6271 dd600000 arg 0 ,rege 
+6272 20406268 call nec_check_rxbuff_size 
+6273 c00162b2 beq 2 ,nec_parse_nec61212_check_timeout 
+6274 1fe67c04 sub pdata ,4 ,null 
+6275 20610000 rtn positive 
+6276 2040626a call nec_prepare_read 
+6277 e8410003 ifetcht 2 ,contu 
+6278 5800a654 setarg nec61212_data2repeat_time 
+6279 204062bb call nec_check_pulse_range_legal_default_deviation 
+627a 242162a0 nbranch nec_parse_nec61212_check_repeat_data ,positive 
+627b 1b020400 copy regd ,temp 
+627c 58017f8e setarg nec61212_repeat2repeat_time 
+627d 204062bb call nec_check_pulse_range_legal_default_deviation 
+627e 242162a0 nbranch nec_parse_nec61212_check_repeat_data ,positive 
+627f 1b020400 copy regd ,temp 
+6280 58002328 setarg nec61212_boot_code_start_time 
+6281 204062bb call nec_check_pulse_range_legal_default_deviation 
+6282 20216297 branch nec_parse_nec61212_error_data ,positive 
+6283 e8410003 ifetcht 2 ,contu 
+6284 58001194 setarg nec61212_boot_code_end_time 
+6285 204062bb call nec_check_pulse_range_legal_default_deviation 
+6286 20216297 branch nec_parse_nec61212_error_data ,positive 
+6287 20406268 call nec_check_rxbuff_size 
+6288 1fe67c85 sub pdata ,133 ,null 
+6289 20610000 rtn positive 
+628a df200020 arg 32 ,loopcnt 
+
+nec_parse_nec61212_data:
+628b e8410003 ifetcht 2 ,contu 
+628c 58000230 setarg nec61212_data_bit_1_start_time 
+628d 204062bb call nec_check_pulse_range_legal_default_deviation 
+628e 20216297 branch nec_parse_nec61212_error_data ,positive 
+628f e8410003 ifetcht 2 ,contu 
+6290 5800069a setarg nec61212_data_bit_1_end_time 
+6291 204062bb call nec_check_pulse_range_legal_default_deviation 
+6292 2421629c nbranch nec_parse_nec61212_add_bit1 ,positive 
+6293 1b020400 copy regd ,temp 
+6294 58000230 setarg nec61212_data_bit_0_end_time 
+6295 204062bb call nec_check_pulse_range_legal_default_deviation 
+6296 2421629d nbranch nec_parse_nec61212_add_bit0 ,positive 
+
+nec_parse_nec61212_error_data:
+6297 1b020400 copy regd ,temp 
+6298 5800ffff setarg nec61212_timeout_time 
+6299 98467c00 isub temp ,null 
+629a 2022e2b7 branch nec_parse_nec61212_check_timeout_cb ,zero 
+629b 2020626e branch nec_read_done 
+
+nec_parse_nec61212_add_bit1:
+629c 79205620 set1 32 ,rege 
+
+nec_parse_nec61212_add_bit0:
+629d 1d635600 rshift rege ,rege 
+629e c200628b loop nec_parse_nec61212_data 
+629f 202062ab branch nec_parse_nec61212_check_stop_bit 
+
+nec_parse_nec61212_check_repeat_data:
+62a0 20406268 call nec_check_rxbuff_size 
+62a1 1fe67c07 sub pdata ,7 ,null 
+62a2 20610000 rtn positive 
+62a3 e8410003 ifetcht 2 ,contu 
+62a4 58002328 setarg nec61212_repeat_start_time 
+62a5 204062bb call nec_check_pulse_range_legal_default_deviation 
+62a6 20216297 branch nec_parse_nec61212_error_data ,positive 
+62a7 e8410003 ifetcht 2 ,contu 
+62a8 580008ca setarg nec61212_repeat_end_time 
+62a9 204062bb call nec_check_pulse_range_legal_default_deviation 
+62aa 20216297 branch nec_parse_nec61212_error_data ,positive 
+
+nec_parse_nec61212_check_stop_bit:
+62ab e8410003 ifetcht 2 ,contu 
+62ac 58000230 setarg nec61212_stop_time 
+62ad 204062bb call nec_check_pulse_range_legal_default_deviation 
+62ae 20216297 branch nec_parse_nec61212_error_data ,positive 
+62af 2040626e call nec_read_done 
+62b0 1a627e00 copy regc ,pdata 
+62b1 20207e13 branch callback_func 
+
+nec_parse_nec61212_check_timeout:
+62b2 2040626a call nec_prepare_read 
+62b3 e8410003 ifetcht 2 ,contu 
+62b4 5800ffff setarg nec61212_timeout_time 
+62b5 98467c00 isub temp ,null 
+62b6 24628000 nrtn zero 
+
+nec_parse_nec61212_check_timeout_cb:
+62b7 2040626e call nec_read_done 
+62b8 20407e64 call disable_user 
+62b9 1a627e00 copy regc ,pdata 
+62ba 20207e13 branch callback_func 
+
+nec_check_pulse_range_legal_default_deviation:
+62bb da40000a arg 10 ,regb 
+
+nec_check_pulse_range_legal:
+62bc 18423000 copy temp ,regd 
+62bd 9a4fa400 imul32 regb ,regb 
+62be 18438400 lshift temp ,temp 
+62bf 98462200 isub temp ,rega 
+62c0 244162c4 ncall nec_check_pulse_range_legal_data_negative ,positive 
+62c1 1a2ffe64 mul32 rega ,100 ,pdata 
+62c2 9a467c00 isub regb ,null 
+62c3 20600000 rtn 
+
+nec_check_pulse_range_legal_data_negative:
+62c4 1a262200 sub rega ,0 ,rega 
+62c5 20600000 rtn 
+
+select_system_clk_24m:
+62c6 7041ed18 jam system_clk_24m ,mem_system_clk 
+62c7 70804201 jam clksel_dpll_24m ,core_clksel 
+62c8 58001d4b setarg 7499 
+62c9 67f10040 store 2 ,core_halfslot 
+
+calc_new_param:
+62ca df20000b arg 11 ,loopcnt 
+62cb da200155 arg mem_param_tx_setup ,rega 
+
+calc_new_param_loop:
+62cc efe10011 ifetch 2 ,rega 
+62cd 1fe3fe00 lshift pdata ,pdata 
+62ce e7e10011 istore 2 ,rega 
+62cf 1a20a202 increase 2 ,rega 
+62d0 c20062cc loop calc_new_param_loop 
+62d1 20600000 rtn 
+
+calc_new_le_time:
+62d2 1b63b600 lshift stop_watch ,stop_watch 
+62d3 20600000 rtn 
+
+select_system_clk_12m_xtal:
+62d4 70804204 jam clksel_xtal ,core_clksel 
+
+select_system_clk_12m_common:
+62d5 7041ed0c jam system_clk_12m ,mem_system_clk 
+62d6 58000ea5 setarg 3749 
+62d7 67f10040 store 2 ,core_halfslot 
+62d8 20600000 rtn 
+
+select_system_clk_12m_dpll:
+62d9 70804205 jam clksel_dpll ,core_clksel 
+62da 202062d5 branch select_system_clk_12m_common 
+
+ac_50hz_check:
+62db 67f1004a store 2 ,core_ac_saddr 
+62dc 605880d9 storet 1 ,core_ac_buf_len 
+62dd 6fe0c4d1 fetch 1 ,mem_ac_detect_gpio 
+62de d8400019 arg gpcfg_ac_input ,temp 
+62df 204060e2 call gpio_config_function_int 
+62e0 6fe144d2 fetch 2 ,mem_ac_detect_control 
+62e1 79207e00 set1 0 ,pdata 
+62e2 67f10048 store 2 ,core_ac_ctrl 
+
+ac_50hz_check_wait:
+62e3 6ff0812d fetch 1 ,core_perf_status 
+62e4 2feffe06 isolate1 6 ,pdata 
+62e5 20600000 rtn 
+
+rfcomm_init:
+62e6 20758000 rtn wake 
+62e7 70465100 jam 0 ,mem_rfcomm_send_more_pkt 
+62e8 7003c003 jam bits9600 ,memremoterpnbitrate 
+62e9 7003c103 jam databits8 ,memremoteprndatabits 
+62ea 7003c511 jam 0x11 ,memremoteprnxon 
+62eb 7003c613 jam 0x13 ,memremoteprnxoff 
+62ec 58000000 setarg 0 
+62ed 67e183c2 store 3 ,memremoteprnstopbit 
+62ee 67e0c4e4 store 1 ,mem_spp_state 
+62ef 70478a00 jam 0 ,memui_reconnect_mode 
+
+rfcomm_init_spp:
+62f0 58000000 setarg 0 
+62f1 67e0c4e4 store 1 ,mem_spp_state 
+62f2 67e0c64e store 1 ,mem_remote_spp_channel 
+62f3 67e0c647 store 1 ,mem_pn_dlci 
+62f4 6fe0c655 fetch 1 ,mem_rfcomm_credit_flag 
+62f5 c000e2f8 beq credit_enable ,rfcomm_init_spp_with_credit 
+62f6 70465350 jam 0x50 ,mem_credit_given 
+62f7 20600000 rtn 
+
+rfcomm_init_spp_with_credit:
+62f8 70465300 jam 0x00 ,mem_credit_given 
+62f9 20600000 rtn 
+
+set_cr_bit:
+62fa 18418402 or_into 0x02 ,temp 
+62fb 20600000 rtn 
+
+rfcomm_calculate_fcs_sabm:
+62fc 18427e00 copy temp ,pdata 
+62fd 1fedfe00 reverse pdata ,pdata 
+62fe 67e0c64c store 1 ,memfcstemp3 
+62ff 18007e3f force ini_tx_sabm ,pdata 
+6300 1fedfe00 reverse pdata ,pdata 
+6301 67e0c64b store 1 ,memfcstemp2 
+6302 18007e01 force 0x01 ,pdata 
+6303 1fedfe00 reverse pdata ,pdata 
+6304 67e0c64a store 1 ,memfcstemp1 
+6305 20406332 call caculate_fcs 
+6306 18427e00 copy temp ,pdata 
+6307 20600000 rtn 
+
+rfcomm_calculate_fcs_ua:
+6308 1fedfe00 reverse pdata ,pdata 
+6309 67e0c64c store 1 ,memfcstemp3 
+630a 18007e73 force rsp_tx_ua ,pdata 
+630b 1fedfe00 reverse pdata ,pdata 
+630c 67e0c64b store 1 ,memfcstemp2 
+630d 18007e01 force 0x01 ,pdata 
+630e 1fedfe00 reverse pdata ,pdata 
+630f 67e0c64a store 1 ,memfcstemp1 
+6310 20206332 branch caculate_fcs 
+
+rfcomm_calculate_fcs_dlci0:
+6311 6fe0c64d fetch 1 ,mem_rfcomm_initiator 
+6312 203a6315 branch rfcomm_calculate_fcs_dlci0_res ,blank 
+6313 58000070 setarg 0x70 
+6314 20600000 rtn 
+
+rfcomm_calculate_fcs_dlci0_res:
+6315 580000aa setarg 0xaa 
+6316 20600000 rtn 
+
+rfcomm_save_fcs_uih:
+6317 1fedfe00 reverse pdata ,pdata 
+6318 67e0c64c store 1 ,memfcstemp3 
+6319 18007eef force rsp_rx_uih ,pdata 
+631a 20406326 call caculate_uihdata_fcs 
+631b 684903ca fetcht 2 ,mem_contw_temp 
+631c 18420a00 copy temp ,contw 
+631d e7e08005 istore 1 ,contw 
+631e 18a20400 copy contw ,temp 
+631f 604903ca storet 2 ,mem_contw_temp 
+6320 18007eff force rsp_rx_uih_wdata ,pdata 
+6321 20406326 call caculate_uihdata_fcs 
+6322 684903ca fetcht 2 ,mem_contw_temp 
+6323 18420a00 copy temp ,contw 
+6324 e7e08005 istore 1 ,contw 
+6325 20600000 rtn 
+
+caculate_uihdata_fcs:
+6326 1fedfe00 reverse pdata ,pdata 
+6327 67e0c64b store 1 ,memfcstemp2 
+6328 6fe1464b fetch 2 ,memfcstemp2 
+6329 1fed7e00 lshift8 pdata ,pdata 
+632a 67e183c7 store 3 ,mem_mod2div_temp 
+632b da200107 arg 0x107 ,rega 
+632c da40000f arg 0xf ,regb 
+632d 2040633f call mod2div 
+632e 1fe2fed7 xor_into 0xd7 ,pdata 
+632f 1fe47e00 invert pdata ,pdata 
+6330 1fedfe00 reverse pdata ,pdata 
+6331 20600000 rtn 
+
+caculate_fcs:
+6332 6fe1c64a fetch 3 ,memfcstemp1 
+6333 67e183c7 store 3 ,mem_mod2div_temp 
+6334 da200107 arg 0x107 ,rega 
+6335 da40000f arg 0xf ,regb 
+6336 2040633f call mod2div 
+6337 1fed7e00 lshift8 pdata ,pdata 
+6338 da400007 arg 0x7 ,regb 
+6339 2040633f call mod2div 
+633a 1fe2fe2b xor_into 0x2b ,pdata 
+633b 1fe47e00 invert pdata ,pdata 
+633c 1fedfe00 reverse pdata ,pdata 
+633d 1fe20400 copy pdata ,temp 
+633e 20600000 rtn 
+
+mod2div:
+633f da600000 arg 0 ,regc 
+6340 1a427200 copy regb ,loopcnt 
+6341 20407cd1 call right_shift_n 
+6342 1fe20400 icopy temp 
+
+mod2div_loop:
+6343 18427e00 copy temp ,pdata 
+6344 1a63a600 lshift regc ,regc 
+6345 c3046348 bbit0 8 ,mod2div_not_enough_reduction 
+6346 9a228400 ixor rega ,temp 
+6347 1a60a601 increase 1 ,regc 
+
+mod2div_not_enough_reduction:
+6348 18438400 lshift temp ,temp 
+6349 6fe183c7 fetch 3 ,mem_mod2div_temp 
+634a 1a40a5ff increase -1 ,regb 
+634b 2a41feff compare 0xff ,regb ,0xff 
+634c 2020e352 branch mod2div_end ,true 
+634d 1a427200 copy regb ,loopcnt 
+634e 20407cd1 call right_shift_n 
+634f 2feffe00 isolate1 0 ,pdata 
+6350 79208400 setflag true ,0 ,temp 
+6351 20206343 branch mod2div_loop 
+
+mod2div_end:
+6352 18437e00 rshift temp ,pdata 
+6353 20600000 rtn 
+
+get_rfcomm_snd_adss:
+6354 6848c647 fetcht 1 ,mem_pn_dlci 
+
+dlci_to_address_cmd:
+6355 184b8400 lshift2 temp ,temp 
+6356 79200400 set1 rfcomm_address_ext_len ,temp 
+6357 6fe0c64d fetch 1 ,mem_rfcomm_initiator 
+6358 245a62fa ncall set_cr_bit ,blank 
+6359 604883e0 storet 1 ,mem_rfcomm_send_adss 
+635a 20600000 rtn 
+
+channel_to_dlci:
+635b 18438400 lshift temp ,temp 
+635c 6fe0c64d fetch 1 ,mem_rfcomm_initiator 
+635d 793a0400 setflag blank ,0 ,temp 
+635e 20600000 rtn 
+
+rfcomm_rx_process_dlci0_sabm:
+635f 684883cf fetcht 1 ,mem_current_channel 
+6360 7003d1d7 jam 0xd7 ,mem_current_fcs 
+6361 20406498 call rfcomm_send_ua 
+6362 6fe0c4e1 fetch 1 ,mem_rfcomm_state 
+6363 79207e06 set1 l2cap_channel_rfcomm_only_sabm ,pdata 
+6364 79207e07 set1 l2cap_channel_rfcomm_only_ua ,pdata 
+6365 67e0c4e1 store 1 ,mem_rfcomm_state 
+6366 70464d00 jam 0 ,mem_rfcomm_initiator 
+6367 20206479 branch rfcomm_rx_process_end 
+
+rfcomm_rx_process_dlci0_ua:
+6368 6fe0c4e1 fetch 1 ,mem_rfcomm_state 
+6369 79207e07 set1 l2cap_channel_rfcomm_only_ua ,pdata 
+636a 67e0c4e1 store 1 ,mem_rfcomm_state 
+636b 20206479 branch rfcomm_rx_process_end 
+
+rfcomm_rx_process:
+636c 471cc027 bpatchx patch27_1 ,mem_patch27 
+636d 6fe0c78a fetch 1 ,memui_reconnect_mode 
+636e c0006370 beq no_reconnection ,rfcomm_rx_process_remote_page 
+636f 2020642e branch rfcomm_rx_process_reconn 
+
+rfcomm_rx_process_remote_page:
+6370 6fe10315 fetch 2 ,mem_l2cap_payload_ptr 
+6371 1fe20c00 copy pdata ,contr 
+6372 2040639a call get_rfcomm_head_struct 
+6373 6fe083cf fetch 1 ,mem_current_channel 
+6374 c0006376 beq 0 ,parse_dlci0_rp 
+6375 202063fa branch parse_uih_rp 
+
+parse_dlci0_rp:
+6376 471d4027 bpatchx patch27_2 ,mem_patch27 
+6377 6fe083d0 fetch 1 ,mem_current_frame_type 
+6378 c01fe35f beq rfcomm_frame_type_sabm ,rfcomm_rx_process_dlci0_sabm 
+6379 c039e368 beq rfcomm_frame_type_ua ,rfcomm_rx_process_dlci0_ua 
+637a c077e37d beq rfcomm_frame_type_uih ,parse_dlci0_rp_uih 
+637b c029e426 beq rfcomm_frame_type_disconn ,parse_uih_rp_spp_disconn_send_event 
+637c 20600000 rtn 
+
+parse_dlci0_rp_uih:
+637d 6fe103d4 fetch 2 ,mem_rfcomm_uih_payload_ptr 
+637e 1fe20c00 copy pdata ,contr 
+637f 204063a5 call get_rfcomm_uih_head_struct 
+6380 6fe083d6 fetch 1 ,mem_uih_cmd_type 
+6381 c020e387 beq uih_param_neg_cmd ,parse_dlci0_rp_uih_pn_cmd 
+6382 c020638f beq uih_param_neg_res ,parse_dlci0_rp_uih_pn_res 
+6383 c038e3c8 beq uih_modem_status_cmd ,parse_dlci0_rp_uih_ms_cmd 
+6384 c03863d4 beq uih_modem_status_res ,parse_dlci0_rp_uih_ms_res 
+6385 c024e3df beq uih_param_cmd_remove_port ,parse_dlci0_rp_uih_cmd_port 
+6386 20206479 branch rfcomm_rx_process_end 
+
+parse_dlci0_rp_uih_pn_cmd:
+6387 20406391 call parse_dlci0_rp_uih_pn_res_common 
+6388 20206389 branch parse_dlci0_rp_uih_pn_cmd_spp 
+
+parse_dlci0_rp_uih_pn_cmd_spp:
+6389 6fe0c4e4 fetch 1 ,mem_spp_state 
+638a 79207e00 set1 rfcomm_channel_state_pn_cmd ,pdata 
+638b 79207e01 set1 rfcomm_channel_state_pn_res ,pdata 
+638c 67e0c4e4 store 1 ,mem_spp_state 
+638d 204064c2 call rfcomm_send_param_neg_res 
+638e 20206479 branch rfcomm_rx_process_end 
+
+parse_dlci0_rp_uih_pn_res:
+638f 20406391 call parse_dlci0_rp_uih_pn_res_common 
+6390 20206479 branch rfcomm_rx_process_end 
+
+parse_dlci0_rp_uih_pn_res_common:
+6391 204063ad call get_param_payload_ptr 
+6392 202063b9 branch get_rfcomm_prarmer_negotiation 
+
+get_rfcomm_param_modem_status:
+6393 204063ad call get_param_payload_ptr 
+6394 efe08006 ifetch 1 ,contr 
+6395 1fe97e00 rshift3 pdata ,pdata 
+6396 67e0c654 store 1 ,mem_ms_channel 
+6397 efe08006 ifetch 1 ,contr 
+6398 67e083db store 1 ,mem_ms_param 
+6399 20600000 rtn 
+
+get_rfcomm_head_struct:
+639a efe08006 ifetch 1 ,contr 
+639b 67e083ce store 1 ,mem_current_adss 
+639c 1fe97e00 rshift3 pdata ,pdata 
+639d 67e083cf store 1 ,mem_current_channel 
+639e efe08006 ifetch 1 ,contr 
+639f 67e083d0 store 1 ,mem_current_frame_type 
+
+get_rfcomm_current_length:
+63a0 204063b0 call get_rfcomm_length_common 
+63a1 604903d2 storet 2 ,mem_current_length 
+63a2 18c27e00 copy contr ,pdata 
+63a3 67e103d4 store 2 ,mem_rfcomm_uih_payload_ptr 
+63a4 20600000 rtn 
+
+get_rfcomm_uih_head_struct:
+63a5 efe08006 ifetch 1 ,contr 
+63a6 1fe37e00 rshift pdata ,pdata 
+63a7 67e083d6 store 1 ,mem_uih_cmd_type 
+63a8 204063b0 call get_rfcomm_length_common 
+63a9 604903d7 storet 2 ,mem_uih_length 
+63aa 18c27e00 copy contr ,pdata 
+63ab 67e103d9 store 2 ,mem_param_payload_ptr 
+63ac 20600000 rtn 
+
+get_param_payload_ptr:
+63ad 6fe103d9 fetch 2 ,mem_param_payload_ptr 
+63ae 1fe20c00 copy pdata ,contr 
+63af 20600000 rtn 
+
+get_rfcomm_length_common:
+63b0 efe08006 ifetch 1 ,contr 
+63b1 1fe20400 copy pdata ,temp 
+63b2 18430400 rshift temp ,temp 
+63b3 c3800000 rtnbit1 0 
+63b4 efe08006 ifetch 1 ,contr 
+63b5 1fe9fe00 lshift3 pdata ,pdata 
+63b6 1ff27e00 lshift4 pdata ,pdata 
+63b7 98408400 iadd temp ,temp 
+63b8 20600000 rtn 
+
+get_rfcomm_prarmer_negotiation:
+63b9 efe08006 ifetch 1 ,contr 
+63ba 67e0c647 store 1 ,mem_pn_dlci 
+63bb efe08006 ifetch 1 ,contr 
+63bc 67e083dc store 1 ,mem_pn_credit_flow_type_info 
+63bd efe08006 ifetch 1 ,contr 
+63be 67e083dd store 1 ,mem_pn_priority 
+63bf efe08006 ifetch 1 ,contr 
+63c0 67e083de store 1 ,mem_pn_acknowledg_timer 
+63c1 efe10006 ifetch 2 ,contr 
+63c2 67e14648 store 2 ,mem_pn_max_frame_size 
+63c3 efe08006 ifetch 1 ,contr 
+63c4 67e083df store 1 ,mem_pn_max_retrans 
+63c5 efe08006 ifetch 1 ,contr 
+63c6 67e0c652 store 1 ,mem_remote_credits 
+63c7 20600000 rtn 
+
+parse_dlci0_rp_uih_ms_cmd:
+63c8 20406393 call get_rfcomm_param_modem_status 
+63c9 202063ca branch parse_dlci0_rp_uih_ms_cmd_spp 
+
+parse_dlci0_rp_uih_ms_cmd_spp:
+63ca 6fe0c4e4 fetch 1 ,mem_spp_state 
+63cb 79207e05 set1 rfcomm_channel_state_rcv_ms_cmd ,pdata 
+63cc 79207e06 set1 rfcomm_channel_state_snd_ms_res ,pdata 
+63cd 67e0c4e4 store 1 ,mem_spp_state 
+63ce 6848c647 fetcht 1 ,mem_pn_dlci 
+63cf 184b8400 lshift2 temp ,temp 
+63d0 18418403 or_into 3 ,temp 
+63d1 204064f3 call rfcomm_send_modem_status_res 
+63d2 70465103 jam more_pkt_msc_cmd_spp ,mem_rfcomm_send_more_pkt 
+63d3 20206479 branch rfcomm_rx_process_end 
+
+parse_dlci0_rp_uih_ms_res:
+63d4 70095b08 jam bt_evt_spp_connected ,mem_fifo_temp 
+63d5 2040789f call ui_ipc_send_event 
+63d6 20406393 call get_rfcomm_param_modem_status 
+63d7 6fe0c654 fetch 1 ,mem_ms_channel 
+63d8 1fe67c01 sub pdata ,1 ,null 
+63d9 2022e3db branch parse_dlci0_rp_uih_ms_res_spp ,zero 
+63da 2020131f branch assert 
+
+parse_dlci0_rp_uih_ms_res_spp:
+63db 6fe0c4e4 fetch 1 ,mem_spp_state 
+63dc 79207e07 set1 rfcomm_channel_state_rcv_ms_res ,pdata 
+63dd 67e0c4e4 store 1 ,mem_spp_state 
+63de 20206479 branch rfcomm_rx_process_end 
+
+parse_dlci0_rp_uih_cmd_port:
+63df 204063ad call get_param_payload_ptr 
+63e0 efe08006 ifetch 1 ,contr 
+63e1 67e0898e store 1 ,mem_rpn_dlci 
+63e2 20405300 call l2cap_malloc_rfcomm_channel 
+63e3 2040530e call l2cap_get_rfcomm_tx_buff 
+63e4 5800000e setarg 0x000e 
+63e5 e7e10005 istore 2 ,contw 
+63e6 6fe144da fetch 2 ,mem_rfcomm_remote_cid 
+63e7 e7e10005 istore 2 ,contw 
+63e8 6fe0c64d fetch 1 ,mem_rfcomm_initiator 
+63e9 1fe3fe00 lshift pdata ,pdata 
+63ea 79207e00 set1 0 ,pdata 
+63eb e7e08005 istore 1 ,contw 
+63ec 471dc027 bpatchx patch27_3 ,mem_patch27 
+63ed 580015ef setarg 0x15ef 
+63ee e7e10005 istore 2 ,contw 
+63ef 58001191 setarg 0x1191 
+63f0 e7e10005 istore 2 ,contw 
+63f1 6fe0898e fetch 1 ,mem_rpn_dlci 
+63f2 e7e08005 istore 1 ,contw 
+63f3 58000007 setarg 0x000007 
+63f4 e7e28005 istore 5 ,contw 
+63f5 58000001 setarg 0x01 
+63f6 e7e10005 istore 2 ,contw 
+63f7 20406311 call rfcomm_calculate_fcs_dlci0 
+63f8 e7e08005 istore 1 ,contw 
+63f9 20600000 rtn 
+
+parse_uih_rp:
+63fa 202063fb branch parse_uih_rp_spp 
+
+parse_uih_rp_spp:
+63fb 471e4027 bpatchx patch27_4 ,mem_patch27 
+63fc 6fe083d0 fetch 1 ,mem_current_frame_type 
+63fd c039e403 beq rfcomm_frame_type_ua ,parse_uih_rp_spp_ua 
+63fe c01fe407 beq rfcomm_frame_type_sabm ,parse_uih_rp_spp_sabm 
+63ff c077e421 beq rfcomm_frame_type_uih ,parse_uih_spp_uih 
+6400 c07fe419 beq rfcomm_frame_type_uih_credits ,parse_uih_spp_uih_credits 
+6401 c029e428 beq rfcomm_frame_type_disconn ,parse_uih_rp_spp_disconn 
+6402 20600000 rtn 
+
+parse_uih_rp_spp_ua:
+6403 6fe0c4e4 fetch 1 ,mem_spp_state 
+6404 79207e03 set1 rfcomm_channel_state_ua ,pdata 
+6405 67e0c4e4 store 1 ,mem_spp_state 
+6406 20206479 branch rfcomm_rx_process_end 
+
+parse_uih_rp_spp_sabm:
+6407 6fe0c4e4 fetch 1 ,mem_spp_state 
+6408 79207e03 set1 rfcomm_channel_state_ua ,pdata 
+6409 79207e02 set1 rfcomm_channel_state_sabm ,pdata 
+640a 67e0c4e4 store 1 ,mem_spp_state 
+640b 6fe083ce fetch 1 ,mem_current_adss 
+640c 20406308 call rfcomm_calculate_fcs_ua 
+640d 67e083d1 store 1 ,mem_current_fcs 
+640e 20406498 call rfcomm_send_ua 
+640f 6fe083ce fetch 1 ,mem_current_adss 
+6410 1feb7e00 rshift2 pdata ,pdata 
+6411 67e0c647 store 1 ,mem_pn_dlci 
+6412 1febfe00 lshift2 pdata ,pdata 
+6413 793ffe01 set0 rfcomm_address_cr ,pdata 
+6414 79207e00 set1 rfcomm_address_ext_len ,pdata 
+6415 d840464f arg mem_hiufcs_spp ,temp 
+6416 604903ca storet 2 ,mem_contw_temp 
+6417 20406317 call rfcomm_save_fcs_uih 
+6418 20206479 branch rfcomm_rx_process_end 
+
+parse_uih_spp_uih_credits:
+6419 6fe103d4 fetch 2 ,mem_rfcomm_uih_payload_ptr 
+641a 1fe20c00 copy pdata ,contr 
+641b 1fe0fe01 increase 1 ,pdata 
+641c 67e103d4 store 2 ,mem_rfcomm_uih_payload_ptr 
+641d efe08006 ifetch 1 ,contr 
+641e 6848c652 fetcht 1 ,mem_remote_credits 
+641f 9840fe00 iadd temp ,pdata 
+6420 67e0c652 store 1 ,mem_remote_credits 
+
+parse_uih_spp_uih:
+6421 20406524 call rfcomm_increase_credit_given 
+
+parse_uih_spp_uih_cont:
+6422 20406354 call get_rfcomm_snd_adss 
+6423 2040650a call rfcomm_send_uih_without_payload 
+6424 2040652d call spp_process_rx_data 
+6425 20206479 branch rfcomm_rx_process_end 
+
+parse_uih_rp_spp_disconn_send_event:
+6426 70095b09 jam bt_evt_spp_disconnected ,mem_fifo_temp 
+6427 2040789f call ui_ipc_send_event 
+
+parse_uih_rp_spp_disconn:
+6428 204062f0 call rfcomm_init_spp 
+6429 6fe083ce fetch 1 ,mem_current_adss 
+642a 20406308 call rfcomm_calculate_fcs_ua 
+642b 67e083d1 store 1 ,mem_current_fcs 
+642c 20406498 call rfcomm_send_ua 
+642d 20206479 branch rfcomm_rx_process_end 
+
+rfcomm_rx_process_reconn:
+642e 6fe10315 fetch 2 ,mem_l2cap_payload_ptr 
+642f 1fe20c00 copy pdata ,contr 
+6430 2040639a call get_rfcomm_head_struct 
+6431 6fe083cf fetch 1 ,mem_current_channel 
+6432 c0006434 beq 0 ,parse_dlci0_reconn 
+6433 20206468 branch parse_uih_reconn 
+
+parse_dlci0_reconn:
+6434 471ec027 bpatchx patch27_5 ,mem_patch27 
+6435 6fe083d0 fetch 1 ,mem_current_frame_type 
+6436 c01fe35f beq rfcomm_frame_type_sabm ,rfcomm_rx_process_dlci0_sabm 
+6437 c039e368 beq rfcomm_frame_type_ua ,rfcomm_rx_process_dlci0_ua 
+6438 c077e43a beq rfcomm_frame_type_uih ,parse_dlci0_reconn_uih 
+6439 20206479 branch rfcomm_rx_process_end 
+
+parse_dlci0_reconn_uih:
+643a 6fe103d4 fetch 2 ,mem_rfcomm_uih_payload_ptr 
+643b 1fe20c00 copy pdata ,contr 
+643c 204063a5 call get_rfcomm_uih_head_struct 
+643d 6fe083d6 fetch 1 ,mem_uih_cmd_type 
+643e c020e443 beq uih_param_neg_cmd ,parse_dlci0_reconn_uih_pn_cmd 
+643f c0206443 beq uih_param_neg_res ,parse_dlci0_reconn_uih_pn_cmd 
+6440 c038e44e beq uih_modem_status_cmd ,parse_dlci0_reconn_uih_ms_cmd 
+6441 c038645e beq uih_modem_status_res ,parse_dlci0_reconn_uih_ms_res 
+6442 20206479 branch rfcomm_rx_process_end 
+
+parse_dlci0_reconn_uih_pn_cmd:
+6443 20406391 call parse_dlci0_rp_uih_pn_res_common 
+6444 6fe0c647 fetch 1 ,mem_pn_dlci 
+6445 1fe37e00 rshift pdata ,pdata 
+6446 6848c64e fetcht 1 ,mem_remote_spp_channel 
+6447 98467c00 isub temp ,null 
+6448 2022e44a branch parse_dlci0_reconn_uih_pn_cmd_spp ,zero 
+6449 2020131f branch assert 
+
+parse_dlci0_reconn_uih_pn_cmd_spp:
+644a 6fe0c4e4 fetch 1 ,mem_spp_state 
+644b 79207e01 set1 rfcomm_channel_state_pn_res ,pdata 
+644c 67e0c4e4 store 1 ,mem_spp_state 
+644d 20206479 branch rfcomm_rx_process_end 
+
+parse_dlci0_reconn_uih_ms_cmd:
+644e 20406393 call get_rfcomm_param_modem_status 
+644f 6fe0c654 fetch 1 ,mem_ms_channel 
+6450 6848c64e fetcht 1 ,mem_remote_spp_channel 
+6451 98467c00 isub temp ,null 
+6452 2022e455 branch parse_dlci0_reconn_uih_ms_cmd_spp ,zero 
+6453 2020131f branch assert 
+6454 20206479 branch rfcomm_rx_process_end 
+
+parse_dlci0_reconn_uih_ms_cmd_spp:
+6455 6fe0c4e4 fetch 1 ,mem_spp_state 
+6456 79207e05 set1 rfcomm_channel_state_rcv_ms_cmd ,pdata 
+6457 79207e06 set1 rfcomm_channel_state_snd_ms_res ,pdata 
+6458 67e0c4e4 store 1 ,mem_spp_state 
+6459 6848c647 fetcht 1 ,mem_pn_dlci 
+645a 184b8400 lshift2 temp ,temp 
+645b 18418403 or_into 3 ,temp 
+645c 204064f3 call rfcomm_send_modem_status_res 
+645d 20206479 branch rfcomm_rx_process_end 
+
+parse_dlci0_reconn_uih_ms_res:
+645e 20406393 call get_rfcomm_param_modem_status 
+645f 6fe0c654 fetch 1 ,mem_ms_channel 
+6460 6848c64e fetcht 1 ,mem_remote_spp_channel 
+6461 98467c00 isub temp ,null 
+6462 2022e464 branch parse_dlci0_reconn_uih_ms_res_spp ,zero 
+6463 2020131f branch assert 
+
+parse_dlci0_reconn_uih_ms_res_spp:
+6464 6fe0c4e4 fetch 1 ,mem_spp_state 
+6465 79207e07 set1 rfcomm_channel_state_rcv_ms_res ,pdata 
+6466 67e0c4e4 store 1 ,mem_spp_state 
+6467 20206479 branch rfcomm_rx_process_end 
+
+parse_uih_reconn:
+6468 6fe083cf fetch 1 ,mem_current_channel 
+6469 6848c64e fetcht 1 ,mem_remote_spp_channel 
+646a 98467c00 isub temp ,null 
+646b 2022e46e branch parse_uih_reconn_spp ,zero 
+646c 2020131f branch assert 
+646d 20206479 branch rfcomm_rx_process_end 
+
+parse_uih_reconn_spp:
+646e 6fe083d0 fetch 1 ,mem_current_frame_type 
+646f c039e473 beq rfcomm_frame_type_ua ,parse_uih_reconn_spp_ua 
+6470 c077e421 beq rfcomm_frame_type_uih ,parse_uih_spp_uih 
+6471 c07fe419 beq rfcomm_frame_type_uih_credits ,parse_uih_spp_uih_credits 
+6472 c029e478 beq rfcomm_frame_type_disconn ,parse_uih_reconn_spp_disconn 
+
+parse_uih_reconn_spp_ua:
+6473 6fe0c4e4 fetch 1 ,mem_spp_state 
+6474 79207e03 set1 rfcomm_channel_state_ua ,pdata 
+6475 67e0c4e4 store 1 ,mem_spp_state 
+6476 20206479 branch rfcomm_rx_process_end 
+
+parse_uih_reconn_spp_sabm:
+6477 20206477 branch parse_uih_reconn_spp_sabm 
+
+parse_uih_reconn_spp_disconn:
+6478 20206428 branch parse_uih_rp_spp_disconn 
+
+rfcomm_rx_process_end:
+6479 20600000 rtn 
+
+rfcomm_send_more_pkt:
+647a 6fe0c651 fetch 1 ,mem_rfcomm_send_more_pkt 
+647b 207a0000 rtn blank 
+647c c001e47e beq more_pkt_msc_cmd_spp ,rfcomm_send_more_pkt_msc_cmd_spp 
+647d 2020131f branch assert 
+
+rfcomm_send_more_pkt_msc_cmd_spp:
+647e 70465100 jam 0 ,mem_rfcomm_send_more_pkt 
+647f 20405300 call l2cap_malloc_rfcomm_channel 
+6480 d8400001 arg spp_slave_channel ,temp 
+6481 6848c647 fetcht 1 ,mem_pn_dlci 
+6482 184b8400 lshift2 temp ,temp 
+
+rfcomm_send_more_pkt_msc_cmd_spp0:
+6483 18418403 or_into 0x03 ,temp 
+6484 da2000aa arg 0xaa ,rega 
+6485 204064de call rfcomm_send_modem_status_cmd 
+6486 2040530e call l2cap_get_rfcomm_tx_buff 
+6487 18a20c00 copy contw ,contr 
+6488 efe10006 ifetch 2 ,contr 
+6489 203a131f branch assert ,blank 
+648a 20600000 rtn 
+
+rfcomm_send_sabm:
+648b 2040530e call l2cap_get_rfcomm_tx_buff 
+648c 58000004 setarg 0x0004 
+648d e7e10005 istore 2 ,contw 
+648e 6fe144da fetch 2 ,mem_rfcomm_remote_cid 
+648f e7e10005 istore 2 ,contw 
+6490 6fe083ce fetch 1 ,mem_current_adss 
+6491 e7e08005 istore 1 ,contw 
+6492 471f4027 bpatchx patch27_6 ,mem_patch27 
+6493 5800013f setarg 0x013f 
+6494 e7e10005 istore 2 ,contw 
+6495 6fe083d1 fetch 1 ,mem_current_fcs 
+6496 e7e08005 istore 1 ,contw 
+6497 20600000 rtn 
+
+rfcomm_send_ua:
+6498 20405300 call l2cap_malloc_rfcomm_channel 
+6499 2040530e call l2cap_get_rfcomm_tx_buff 
+649a 58000004 setarg 0x0004 
+649b e7e10005 istore 2 ,contw 
+649c 6fe144da fetch 2 ,mem_rfcomm_remote_cid 
+649d e7e10005 istore 2 ,contw 
+649e 6fe083ce fetch 1 ,mem_current_adss 
+649f e7e08005 istore 1 ,contw 
+64a0 471fc027 bpatchx patch27_7 ,mem_patch27 
+64a1 58000173 setarg 0x0173 
+64a2 e7e10005 istore 2 ,contw 
+64a3 6fe083d1 fetch 1 ,mem_current_fcs 
+64a4 e7e08005 istore 1 ,contw 
+64a5 20600000 rtn 
+
+rfcomm_send_param_neg_cmd:
+64a6 2040530e call l2cap_get_rfcomm_tx_buff 
+64a7 5800000e setarg 0x000e 
+64a8 e7e10005 istore 2 ,contw 
+64a9 6fe144da fetch 2 ,mem_rfcomm_remote_cid 
+64aa e7e10005 istore 2 ,contw 
+64ab 6fe0c64d fetch 1 ,mem_rfcomm_initiator 
+64ac 1fe3fe00 lshift pdata ,pdata 
+64ad 79207e00 set1 0 ,pdata 
+64ae e7e08005 istore 1 ,contw 
+64af 47204028 bpatchx patch28_0 ,mem_patch28 
+64b0 580015ef setarg 0x15ef 
+64b1 e7e10005 istore 2 ,contw 
+64b2 58001183 setarg 0x1183 
+64b3 e7e10005 istore 2 ,contw 
+64b4 18427e00 copy temp ,pdata 
+64b5 e7e08005 istore 1 ,contw 
+64b6 580000f0 setarg 0x0000f0 
+64b7 e7e18005 istore 3 ,contw 
+64b8 5800007f setarg rfcomm_max_frame_size 
+64b9 e7e10005 istore 2 ,contw 
+64ba 58000000 setarg 0 
+64bb e7e08005 istore 1 ,contw 
+64bc 58000001 setarg 0x01 
+64bd e7e08005 istore 1 ,contw 
+64be 20406311 call rfcomm_calculate_fcs_dlci0 
+64bf e7e08005 istore 1 ,contw 
+64c0 70465310 jam 0x10 ,mem_credit_given 
+64c1 20600000 rtn 
+
+rfcomm_send_param_neg_res:
+64c2 20405300 call l2cap_malloc_rfcomm_channel 
+64c3 2040530e call l2cap_get_rfcomm_tx_buff 
+64c4 5800000e setarg 0x000e 
+64c5 e7e10005 istore 2 ,contw 
+64c6 6fe144da fetch 2 ,mem_rfcomm_remote_cid 
+64c7 e7e10005 istore 2 ,contw 
+64c8 6fe0c64d fetch 1 ,mem_rfcomm_initiator 
+64c9 1fe3fe00 lshift pdata ,pdata 
+64ca 79207e00 set1 0 ,pdata 
+64cb e7e08005 istore 1 ,contw 
+64cc 4720c028 bpatchx patch28_1 ,mem_patch28 
+64cd 580015ef setarg 0x15ef 
+64ce e7e10005 istore 2 ,contw 
+64cf 58001181 setarg 0x1181 
+64d0 e7e10005 istore 2 ,contw 
+64d1 6fe0c647 fetch 1 ,mem_pn_dlci 
+64d2 e7e08005 istore 1 ,contw 
+64d3 580000e0 setarg 0x0000e0 
+64d4 e7e18005 istore 3 ,contw 
+64d5 6fe14656 fetch 2 ,mem_rfcomm_max_frame_size 
+64d6 e7e10005 istore 2 ,contw 
+64d7 58000000 setarg 0x00 
+64d8 e7e08005 istore 1 ,contw 
+64d9 6fe0c658 fetch 1 ,mem_rfcomm_credit_init_data 
+64da e7e08005 istore 1 ,contw 
+64db 20406311 call rfcomm_calculate_fcs_dlci0 
+64dc e7e08005 istore 1 ,contw 
+64dd 20600000 rtn 
+
+rfcomm_send_modem_status_cmd:
+64de 2040530e call l2cap_get_rfcomm_tx_buff 
+64df 58000008 setarg 0x0008 
+64e0 e7e10005 istore 2 ,contw 
+64e1 6fe144da fetch 2 ,mem_rfcomm_remote_cid 
+64e2 e7e10005 istore 2 ,contw 
+64e3 6fe0c64d fetch 1 ,mem_rfcomm_initiator 
+64e4 1fe3fe00 lshift pdata ,pdata 
+64e5 79207e00 set1 0 ,pdata 
+64e6 e7e08005 istore 1 ,contw 
+64e7 47214028 bpatchx patch28_2 ,mem_patch28 
+64e8 580009ef setarg 0x09ef 
+64e9 e7e10005 istore 2 ,contw 
+64ea 580005e3 setarg 0x05e3 
+64eb e7e10005 istore 2 ,contw 
+64ec 18427e00 copy temp ,pdata 
+64ed e7e08005 istore 1 ,contw 
+64ee 5800008d setarg 0x8d 
+64ef e7e08005 istore 1 ,contw 
+64f0 20406311 call rfcomm_calculate_fcs_dlci0 
+64f1 e7e08005 istore 1 ,contw 
+64f2 20600000 rtn 
+
+rfcomm_send_modem_status_res:
+64f3 20405300 call l2cap_malloc_rfcomm_channel 
+64f4 2040530e call l2cap_get_rfcomm_tx_buff 
+64f5 58000008 setarg 0x0008 
+64f6 e7e10005 istore 2 ,contw 
+64f7 6fe144da fetch 2 ,mem_rfcomm_remote_cid 
+64f8 e7e10005 istore 2 ,contw 
+64f9 18421600 copy temp ,timeup 
+64fa 6fe0c64d fetch 1 ,mem_rfcomm_initiator 
+64fb 1fe3fe00 lshift pdata ,pdata 
+64fc 79207e00 set1 0 ,pdata 
+64fd e7e08005 istore 1 ,contw 
+64fe 4721c028 bpatchx patch28_3 ,mem_patch28 
+64ff 580009ef setarg 0x09ef 
+6500 e7e10005 istore 2 ,contw 
+6501 580005e1 setarg 0x05e1 
+6502 e7e10005 istore 2 ,contw 
+6503 19627e00 copy timeup ,pdata 
+6504 e7e08005 istore 1 ,contw 
+6505 5800008d setarg 0x8d 
+6506 e7e08005 istore 1 ,contw 
+6507 20406311 call rfcomm_calculate_fcs_dlci0 
+6508 e7e08005 istore 1 ,contw 
+6509 20600000 rtn 
+
+rfcomm_send_uih_without_payload:
+650a 47224028 bpatchx patch28_4 ,mem_patch28 
+650b 6fe0c653 fetch 1 ,mem_credit_given 
+650c 207a0000 rtn blank 
+650d 6ff10112 fetch 2 ,core_uart_rxitems 
+650e 247a0000 nrtn blank 
+650f 1a227e00 copy rega ,pdata 
+6510 67e0895d store 1 ,mem_pdatatemp + 1 
+6511 6048895c storet 1 ,mem_pdatatemp 
+6512 204052cc call l2cap_malloc_is_fifo_full 
+6513 247a0000 nrtn blank 
+6514 20405300 call l2cap_malloc_rfcomm_channel 
+6515 2040530e call l2cap_get_rfcomm_tx_buff 
+6516 58000005 setarg 0x05 
+6517 e7e10005 istore 2 ,contw 
+6518 6fe144da fetch 2 ,mem_rfcomm_remote_cid 
+6519 e7e10005 istore 2 ,contw 
+651a 6fe083e0 fetch 1 ,mem_rfcomm_send_adss 
+651b e7e08005 istore 1 ,contw 
+651c 580001ff setarg 0x01ff 
+651d e7e10005 istore 2 ,contw 
+651e 6fe0c653 fetch 1 ,mem_credit_given 
+651f e7e08005 istore 1 ,contw 
+6520 6fe0c650 fetch 1 ,mem_hiufcs_spp_wcredits 
+6521 e7e08005 istore 1 ,contw 
+6522 70465300 jam 0 ,mem_credit_given 
+6523 20600000 rtn 
+
+rfcomm_increase_credit_given:
+6524 4722c028 bpatchx patch28_5 ,mem_patch28 
+6525 6fe0c655 fetch 1 ,mem_rfcomm_credit_flag 
+6526 c1008000 rtneq credit_enable 
+6527 6fe103d2 fetch 2 ,mem_current_length 
+6528 207a0000 rtn blank 
+6529 6fe0c653 fetch 1 ,mem_credit_given 
+652a 1fe0fe01 increase 1 ,pdata 
+652b 67e0c653 store 1 ,mem_credit_given 
+652c 20600000 rtn 
+
+spp_process_rx_data:
+652d 6fe14659 fetch 2 ,mem_cb_receive_spp_data 
+652e 20207e13 branch callback_func 
+
+spp_tx_rfcomm_packet:
+652f 47234028 bpatchx patch28_6 ,mem_patch28 
+6530 6fe0c652 fetch 1 ,mem_remote_credits 
+6531 207a0000 rtn blank 
+6532 1fe0ffff increase -1 ,pdata 
+6533 67e0c652 store 1 ,mem_remote_credits 
+6534 6fe14648 fetch 2 ,mem_pn_max_frame_size 
+6535 684947a8 fetcht 2 ,mem_current_packet_length 
+6536 98467c00 isub temp ,null 
+6537 20216539 branch ssp_tx_rfcomm_from_uart ,positive 
+6538 67e147a8 store 2 ,mem_current_packet_length 
+
+ssp_tx_rfcomm_from_uart:
+6539 6fe0c653 fetch 1 ,mem_credit_given 
+653a 203a6541 branch ssp_tx_rfcomm_from_uart_without_credit ,blank 
+653b 7003e301 jam 1 ,mem_rfcomm_send_offset 
+653c 6fe0c650 fetch 1 ,mem_hiufcs_spp_wcredits 
+653d 67e083e2 store 1 ,mem_rfcomm_send_fcs 
+653e 580000ff setarg rsp_rx_uih_wdata 
+653f 67e083e1 store 1 ,mem_rfcomm_send_frame_type 
+6540 20206546 branch ssp_tx_rfcomm_from_uart_common 
+
+ssp_tx_rfcomm_from_uart_without_credit:
+6541 7003e300 jam 0 ,mem_rfcomm_send_offset 
+6542 6fe0c64f fetch 1 ,mem_hiufcs_spp 
+6543 67e083e2 store 1 ,mem_rfcomm_send_fcs 
+6544 580000ef setarg rsp_tx_uih 
+6545 67e083e1 store 1 ,mem_rfcomm_send_frame_type 
+
+ssp_tx_rfcomm_from_uart_common:
+6546 4723c028 bpatchx patch28_7 ,mem_patch28 
+6547 6fe147a8 fetch 2 ,mem_current_packet_length 
+6548 1fe67c7f sub pdata ,127 ,null 
+6549 2021654d branch ssp_tx_rfcomm_from_uart_common0 ,positive 
+654a 6fe083e3 fetch 1 ,mem_rfcomm_send_offset 
+654b 1fe0fe01 increase 1 ,pdata 
+654c 67e083e3 store 1 ,mem_rfcomm_send_offset 
+
+ssp_tx_rfcomm_from_uart_common0:
+654d 20406354 call get_rfcomm_snd_adss 
+654e 6fe147a8 fetch 2 ,mem_current_packet_length 
+654f 1fe0fe08 increase 8 ,pdata 
+6550 684883e3 fetcht 1 ,mem_rfcomm_send_offset 
+6551 9840a200 iadd temp ,rega 
+6552 20405278 call l2cap_malloc 
+6553 67e10328 store 2 ,mem_rfcomm_tx_buff_ptr 
+6554 1fe0fe04 increase 4 ,pdata 
+6555 67e1032a store 2 ,mem_rfcomm_tx_payload_ptr 
+6556 1fe20a00 copy pdata ,contw 
+6557 6fe083e0 fetch 1 ,mem_rfcomm_send_adss 
+6558 e7e08005 istore 1 ,contw 
+6559 6fe083e1 fetch 1 ,mem_rfcomm_send_frame_type 
+655a e7e08005 istore 1 ,contw 
+655b 20406577 call ssp_tx_write_length 
+655c 20406588 call ssp_tx_write_given_credit 
+655d 47244029 bpatchx patch29_0 ,mem_patch29 
+655e 6fe1465b fetch 2 ,mem_nl_rx_data_src 
+655f 1fe20600 copy pdata ,contu 
+6560 6fe147a8 fetch 2 ,mem_current_packet_length 
+6561 1fe27200 copy pdata ,loopcnt 
+6562 20405f84 call uart_copy_rx_bytes_fast 
+6563 18a20400 copy contw ,temp 
+6564 18627e00 copy contu ,pdata 
+6565 67e1465b store 2 ,mem_nl_rx_data_src 
+6566 18420a00 copy temp ,contw 
+6567 6fe083e2 fetch 1 ,mem_rfcomm_send_fcs 
+6568 e7e08005 istore 1 ,contw 
+6569 6fe10328 fetch 2 ,mem_rfcomm_tx_buff_ptr 
+656a 1fe20a00 copy pdata ,contw 
+656b 6fe147a8 fetch 2 ,mem_current_packet_length 
+656c 684883e3 fetcht 1 ,mem_rfcomm_send_offset 
+656d 9840fe00 iadd temp ,pdata 
+656e 1fe0fe04 increase 4 ,pdata 
+656f e7e10005 istore 2 ,contw 
+6570 6fe144da fetch 2 ,mem_rfcomm_remote_cid 
+6571 e7e10005 istore 2 ,contw 
+6572 70465300 jam 0 ,mem_credit_given 
+6573 6fe1465d fetch 2 ,mem_nl_rx_len_all 
+6574 c00039df beq 0 ,module_hci_command_tx_spp_tx_complete 
+6575 7009d100 jam hci_not_discard_packet ,mem_module_temp_nl_discard_packet 
+6576 20600000 rtn 
+
+ssp_tx_write_length:
+6577 4724c029 bpatchx patch29_1 ,mem_patch29 
+6578 6fe147a8 fetch 2 ,mem_current_packet_length 
+6579 1fe67c7f sub pdata ,0x7f ,null 
+657a 2421657f nbranch ssp_tx_write_long_packet ,positive 
+657b 1fe3fe00 lshift pdata ,pdata 
+657c 79207e00 set1 0 ,pdata 
+657d e7e08005 istore 1 ,contw 
+657e 20600000 rtn 
+
+ssp_tx_write_long_packet:
+657f 6fe147a8 fetch 2 ,mem_current_packet_length 
+6580 1fe97e00 rshift3 pdata ,pdata 
+6581 1ff18400 rshift4 pdata ,temp 
+6582 1fe17e7f and_into 0x7f ,pdata 
+6583 1fe3fe00 lshift pdata ,pdata 
+6584 793ffe00 set0 0 ,pdata 
+6585 e7e08005 istore 1 ,contw 
+6586 e0408005 istoret 1 ,contw 
+6587 20600000 rtn 
+
+ssp_tx_write_given_credit:
+6588 6fe0c653 fetch 1 ,mem_credit_given 
+6589 207a0000 rtn blank 
+658a e7e08005 istore 1 ,contw 
+658b 20600000 rtn 
+
+scheduler_process:
+658c 47254029 bpatchx patch29_2 ,mem_patch29 
+658d 204078b5 call check_51cmd 
+658e 20402fcb call app_process_bb_event 
+658f 204059fb call process_conn_sm 
+6590 4725c029 bpatchx patch29_3 ,mem_patch29 
+6591 20407099 call sp_calc_sequence 
+6592 20407072 call simple_pairing_sequence 
+6593 20407083 call master_simple_paring_sequence 
+6594 204052cc call l2cap_malloc_is_fifo_full 
+6595 247a0000 nrtn blank 
+6596 20404de3 call l2cap_call_proc_sigal_pending 
+6597 204052cc call l2cap_malloc_is_fifo_full 
+6598 247a0000 nrtn blank 
+6599 47264029 bpatchx patch29_4 ,mem_patch29 
+659a 204065d6 call process_upper_sm 
+659b 20404f9d call l2cap_send_config_req 
+659c 2040647a call rfcomm_send_more_pkt 
+
+scheduler_process0:
+659d 204065a0 call scheduler_tx_disconnect_hid 
+659e 4726c029 bpatchx patch29_5 ,mem_patch29 
+659f 20202fc7 branch app_process_bt 
+
+scheduler_tx_disconnect_hid:
+65a0 6fe08330 fetch 1 ,mem_control_tasks 
+65a1 c28050c0 bbit1 l2cap_disconnect_interrupt ,l2cap_disconnect_interrupt_req 
+65a2 c283d0ca bbit1 l2cap_disconnect_control ,l2cap_disconnect_control_req 
+65a3 20600000 rtn 
+
+scheduler_tx_l2cap_pkt:
+65a4 47274029 bpatchx patch29_6 ,mem_patch29 
+65a5 204052d2 call l2cap_malloc_is_fifo_empty 
+65a6 207a0000 rtn blank 
+65a7 6fe0804c fetch 1 ,mem_op 
+65a8 c3830000 rtnbit1 op_txl2cap 
+65a9 204052b6 call l2cap_malloc_fifo_out 
+65aa 67e100bf store 2 ,mem_txptr 
+65ab 1fe20c00 copy pdata ,contr 
+65ac efe10006 ifetch 2 ,contr 
+65ad 1fe0fe04 increase 4 ,pdata 
+65ae 67e141e9 store 2 ,mem_tx_len 
+65af 7041e806 jam 6 ,mem_tx_lch 
+65b0 4727c029 bpatchx patch29_7 ,mem_patch29 
+65b1 6fe144d6 fetch 2 ,mem_l2cap_tx_multi_offset 
+65b2 203a65bf branch scheduler_tx_l2cap_start_pkt ,blank 
+65b3 6fe0804c fetch 1 ,mem_op 
+65b4 c4038000 rtnbit0 op_pkt_comp 
+65b5 793ffe07 set0 op_pkt_comp ,pdata 
+65b6 67e0804c store 1 ,mem_op 
+65b7 7041e805 jam 5 ,mem_tx_lch 
+65b8 684944d6 fetcht 2 ,mem_l2cap_tx_multi_offset 
+65b9 6fe100bf fetch 2 ,mem_txptr 
+65ba 9840fe00 iadd temp ,pdata 
+65bb 67e100bf store 2 ,mem_txptr 
+65bc 6fe141e9 fetch 2 ,mem_tx_len 
+65bd 98467e00 isub temp ,pdata 
+65be 67e141e9 store 2 ,mem_tx_len 
+
+scheduler_tx_l2cap_start_pkt:
+65bf 6fe141e9 fetch 2 ,mem_tx_len 
+65c0 203a131f branch assert ,blank 
+65c1 d8400104 arg l2cap_max_pkt_len ,temp 
+65c2 98467e00 isub temp ,pdata 
+65c3 2022e5ca branch scheduler_tx_l2cap_last_pkt ,zero 
+65c4 242165ca nbranch scheduler_tx_l2cap_last_pkt ,positive 
+65c5 604941e9 storet 2 ,mem_tx_len 
+65c6 6fe144d6 fetch 2 ,mem_l2cap_tx_multi_offset 
+65c7 9840fe00 iadd temp ,pdata 
+65c8 67e144d6 store 2 ,mem_l2cap_tx_multi_offset 
+65c9 202065cc branch scheduler_tx_l2cap_pkt_end 
+
+scheduler_tx_l2cap_last_pkt:
+65ca 58000000 setarg 0 
+65cb 67e144d6 store 2 ,mem_l2cap_tx_multi_offset 
+
+scheduler_tx_l2cap_pkt_end:
+65cc 6fe0804c fetch 1 ,mem_op 
+65cd 79207e06 set1 op_txl2cap ,pdata 
+65ce 67e0804c store 1 ,mem_op 
+65cf 20600000 rtn 
+
+scheduler_start_upper_sm:
+65d0 6fe0c78d fetch 1 ,mem_ui_profile_supported 
+65d1 c28065d4 bbit1 support_hid ,scheduler_start_upper_sm_hid 
+65d2 70033801 jam uppersm_reconn_sdp_conn ,mem_upper_sm_reconn 
+65d3 20600000 rtn 
+
+scheduler_start_upper_sm_hid:
+65d4 7003380f jam uppersm_reconn_hid_ctrl_conn ,mem_upper_sm_reconn 
+65d5 20600000 rtn 
+
+process_upper_sm:
+65d6 6fe0c78a fetch 1 ,memui_reconnect_mode 
+65d7 243a65dc nbranch process_upper_sm_reconn ,blank 
+
+process_upper_sm_remote_page:
+65d8 6fe08337 fetch 1 ,mem_upper_sm_remote_page 
+65d9 207a0000 rtn blank 
+65da 70033700 jam 0 ,mem_upper_sm_remote_page 
+
+process_upper_sm_rp_wait:
+65db 20600000 rtn 
+
+process_upper_sm_reconn:
+65dc 4728402a bpatchx patch2a_0 ,mem_patch2a 
+65dd 6fe08338 fetch 1 ,mem_upper_sm_reconn 
+65de 207a0000 rtn blank 
+65df c000e5fc beq uppersm_reconn_sdp_conn ,process_upper_sm_reconn_sdp_conn 
+65e0 c0016655 beq uppersm_reconn_sdp_conn_wait ,process_upper_sm_reconn_sdp_conn_wait 
+65e1 c001e602 beq uppersm_reconn_sdp_cfg ,process_upper_sm_reconn_sdp_cfg 
+65e2 c0026659 beq uppersm_reconn_sdp_cfg_wait ,process_upper_sm_reconn_sdp_cfg_wait 
+65e3 c01de60c beq uppersm_reconn_ss_spp ,process_upper_sm_reconn_ss_spp 
+65e4 c01e665c beq uppersm_reconn_ss_spp_wait ,process_upper_sm_reconn_ss_spp_wait 
+65e5 c006e611 beq uppersm_reconn_sdp_disconn ,process_upper_sm_reconn_sdp_disconn 
+65e6 c0076661 beq uppersm_reconn_sdp_disconn_wait ,process_upper_sm_reconn_sdp_disconn_wait 
+65e7 c007e614 beq uppersm_reconn_hid_ctrl_conn ,process_upper_sm_reconn_hid_ctrl_conn 
+65e8 c0086667 beq uppersm_reconn_hid_ctrl_conn_wait ,process_upper_sm_reconn_hid_ctrl_conn_wait 
+65e9 c008e61a beq uppersm_reconn_hid_ctrl_cfg ,process_upper_sm_reconn_hid_ctrl_cfg 
+65ea c009666b beq uppersm_reconn_hid_ctrl_cfg_wait ,process_upper_sm_reconn_hid_ctrl_cfg_wait 
+65eb c009e620 beq uppersm_reconn_hid_int_conn ,process_upper_sm_reconn_hid_int_conn 
+65ec c00a666f beq uppersm_reconn_hid_int_conn_wait ,process_upper_sm_reconn_hid_int_conn_wait 
+65ed c00ae626 beq uppersm_reconn_hid_int_cfg ,process_upper_sm_reconn_hid_int_cfg 
+65ee c00b6673 beq uppersm_reconn_hid_int_cfg_wait ,process_upper_sm_reconn_hid_int_cfg_wait 
+65ef c00be62c beq uppersm_reconn_rfcomm_conn ,process_upper_sm_reconn_rfcomm_conn 
+65f0 c00c6678 beq uppersm_reconn_rfcomm_conn_wait ,process_upper_sm_reconn_rfcomm_conn_wait 
+65f1 c00ce632 beq uppersm_reconn_rfcomm_cfg ,process_upper_sm_reconn_rfcomm_cfg 
+65f2 c00d667c beq uppersm_reconn_rfcomm_cfg_wait ,process_upper_sm_reconn_rfcomm_cfg_wait 
+65f3 c00de638 beq uppersm_reconn_rfcomm_sabm ,process_upper_sm_reconn_rfcomm_sabm 
+65f4 c00e6680 beq uppersm_reconn_rfcomm_sabm_wait ,process_upper_sm_reconn_rfcomm_sabm_wait 
+65f5 c00ee63e beq uppersm_reconn_spp_cmd_pn ,process_upper_sm_reconn_spp_cmd_pn 
+65f6 c00f6685 beq uppersm_reconn_spp_cmd_pn_wait ,process_upper_sm_reconn_spp_cmd_pn_wait 
+65f7 c00fe644 beq uppersm_reconn_spp_sabm ,process_upper_sm_reconn_spp_sabm 
+65f8 c0106689 beq uppersm_reconn_spp_sabm_wait ,process_upper_sm_reconn_spp_sabm_wait 
+65f9 c010e64f beq uppersm_reconn_spp_cmd_ms ,process_upper_sm_reconn_spp_cmd_ms 
+65fa c011668d beq uppersm_reconn_spp_cmd_ms_wait ,process_upper_sm_reconn_spp_cmd_ms_wait 
+
+process_upper_sm_reconn_wait:
+65fb 20600000 rtn 
+
+process_upper_sm_reconn_sdp_conn:
+65fc 20406698 call upper_sm_send_sdp_conn 
+65fd 70033802 jam uppersm_reconn_sdp_conn_wait ,mem_upper_sm_reconn 
+65fe 6fe0c4e0 fetch 1 ,mem_sdp_state 
+65ff 79207e00 set1 l2cap_channel_state_conn_req ,pdata 
+6600 67e0c4e0 store 1 ,mem_sdp_state 
+6601 20600000 rtn 
+
+process_upper_sm_reconn_sdp_cfg:
+6602 70033804 jam uppersm_reconn_sdp_cfg_wait ,mem_upper_sm_reconn 
+6603 6fe0c4e0 fetch 1 ,mem_sdp_state 
+6604 c3810000 rtnbit1 l2cap_channel_state_snd_cfg_req 
+6605 70033803 jam uppersm_reconn_sdp_cfg ,mem_upper_sm_reconn 
+6606 2040669f call upper_sm_send_sdp_cfg 
+6607 70033804 jam uppersm_reconn_sdp_cfg_wait ,mem_upper_sm_reconn 
+6608 6fe0c4e0 fetch 1 ,mem_sdp_state 
+6609 79207e02 set1 l2cap_channel_state_snd_cfg_req ,pdata 
+660a 67e0c4e0 store 1 ,mem_sdp_state 
+660b 20600000 rtn 
+
+process_upper_sm_reconn_ss_spp:
+660c 204052d2 call l2cap_malloc_is_fifo_empty 
+660d 247a0000 nrtn blank 
+660e 204066ae call upper_sm_send_ss_spp 
+660f 7003383c jam uppersm_reconn_ss_spp_wait ,mem_upper_sm_reconn 
+6610 20600000 rtn 
+
+process_upper_sm_reconn_sdp_disconn:
+6611 204066a4 call upper_sm_send_sdp_disconn 
+6612 7003380e jam uppersm_reconn_sdp_disconn_wait ,mem_upper_sm_reconn 
+6613 20600000 rtn 
+
+process_upper_sm_reconn_hid_ctrl_conn:
+6614 204066be call upper_sm_send_hid_ctrl_conn 
+6615 70033810 jam uppersm_reconn_hid_ctrl_conn_wait ,mem_upper_sm_reconn 
+6616 6fe0c4e2 fetch 1 ,mem_hid_control_state 
+6617 79207e00 set1 l2cap_channel_state_conn_req ,pdata 
+6618 67e0c4e2 store 1 ,mem_hid_control_state 
+6619 20600000 rtn 
+
+process_upper_sm_reconn_hid_ctrl_cfg:
+661a 204066c5 call upper_sm_send_hid_ctrl_cfg 
+661b 70033812 jam uppersm_reconn_hid_ctrl_cfg_wait ,mem_upper_sm_reconn 
+661c 6fe0c4e2 fetch 1 ,mem_hid_control_state 
+661d 79207e02 set1 l2cap_channel_state_snd_cfg_req ,pdata 
+661e 67e0c4e2 store 1 ,mem_hid_control_state 
+661f 20600000 rtn 
+
+process_upper_sm_reconn_hid_int_conn:
+6620 204066ca call upper_sm_send_hid_int_conn 
+6621 70033814 jam uppersm_reconn_hid_int_conn_wait ,mem_upper_sm_reconn 
+6622 6fe0c4e3 fetch 1 ,mem_hid_interrupt_state 
+6623 79207e00 set1 l2cap_channel_state_conn_req ,pdata 
+6624 67e0c4e3 store 1 ,mem_hid_interrupt_state 
+6625 20600000 rtn 
+
+process_upper_sm_reconn_hid_int_cfg:
+6626 204066d1 call upper_sm_send_hid_int_cfg 
+6627 70033816 jam uppersm_reconn_hid_int_cfg_wait ,mem_upper_sm_reconn 
+6628 6fe0c4e3 fetch 1 ,mem_hid_interrupt_state 
+6629 79207e02 set1 l2cap_channel_state_snd_cfg_req ,pdata 
+662a 67e0c4e3 store 1 ,mem_hid_interrupt_state 
+662b 20600000 rtn 
+
+process_upper_sm_reconn_rfcomm_conn:
+662c 204066b2 call upper_sm_send_rfcomm_conn 
+662d 70033818 jam uppersm_reconn_rfcomm_conn_wait ,mem_upper_sm_reconn 
+662e 6fe0c4e1 fetch 1 ,mem_rfcomm_state 
+662f 79207e00 set1 l2cap_channel_state_conn_req ,pdata 
+6630 67e0c4e1 store 1 ,mem_rfcomm_state 
+6631 20600000 rtn 
+
+process_upper_sm_reconn_rfcomm_cfg:
+6632 204066b9 call upper_sm_send_rfcomm_cfg 
+6633 7003381a jam uppersm_reconn_rfcomm_cfg_wait ,mem_upper_sm_reconn 
+6634 6fe0c4e1 fetch 1 ,mem_rfcomm_state 
+6635 79207e02 set1 l2cap_channel_state_snd_cfg_req ,pdata 
+6636 67e0c4e1 store 1 ,mem_rfcomm_state 
+6637 20600000 rtn 
+
+process_upper_sm_reconn_rfcomm_sabm:
+6638 204066d6 call upper_sm_send_rfcomm_sabm 
+6639 7003381c jam uppersm_reconn_rfcomm_sabm_wait ,mem_upper_sm_reconn 
+663a 6fe0c4e1 fetch 1 ,mem_rfcomm_state 
+663b 79207e06 set1 l2cap_channel_rfcomm_only_sabm ,pdata 
+663c 67e0c4e1 store 1 ,mem_rfcomm_state 
+663d 20600000 rtn 
+
+process_upper_sm_reconn_spp_cmd_pn:
+663e 204066dd call upper_sm_send_spp_cmd_pn 
+663f 6fe0c4e4 fetch 1 ,mem_spp_state 
+6640 79207e00 set1 rfcomm_channel_state_pn_cmd ,pdata 
+6641 67e0c4e4 store 1 ,mem_spp_state 
+6642 7003381e jam uppersm_reconn_spp_cmd_pn_wait ,mem_upper_sm_reconn 
+6643 20600000 rtn 
+
+process_upper_sm_reconn_spp_sabm:
+6644 204066e3 call upper_sm_send_spp_sabm 
+6645 6fe0c4e4 fetch 1 ,mem_spp_state 
+6646 79207e02 set1 rfcomm_channel_state_sabm ,pdata 
+6647 67e0c4e4 store 1 ,mem_spp_state 
+6648 70033820 jam uppersm_reconn_spp_sabm_wait ,mem_upper_sm_reconn 
+6649 6fe0c64e fetch 1 ,mem_remote_spp_channel 
+664a 1fe9fe00 lshift3 pdata ,pdata 
+664b 1fe1fe03 or_into 3 ,pdata 
+664c d840464f arg mem_hiufcs_spp ,temp 
+664d 604903ca storet 2 ,mem_contw_temp 
+664e 20206317 branch rfcomm_save_fcs_uih 
+
+process_upper_sm_reconn_spp_cmd_ms:
+664f 204066ed call upper_sm_send_spp_cmd_ms 
+6650 6fe0c4e4 fetch 1 ,mem_spp_state 
+6651 79207e04 set1 rfcomm_channel_state_snd_ms_cmd ,pdata 
+6652 67e0c4e4 store 1 ,mem_spp_state 
+6653 70033822 jam uppersm_reconn_spp_cmd_ms_wait ,mem_upper_sm_reconn 
+6654 20600000 rtn 
+
+process_upper_sm_reconn_sdp_conn_wait:
+6655 6fe0c4e0 fetch 1 ,mem_sdp_state 
+6656 c4008000 rtnbit0 l2cap_channel_state_conn_res 
+6657 70033803 jam uppersm_reconn_sdp_cfg ,mem_upper_sm_reconn 
+6658 202065dc branch process_upper_sm_reconn 
+
+process_upper_sm_reconn_sdp_cfg_wait:
+6659 6fe0c4e0 fetch 1 ,mem_sdp_state 
+665a c19f8000 rtnne l2cap_channel_setup_complete 
+665b 7003383b jam uppersm_reconn_ss_spp ,mem_upper_sm_reconn 
+
+process_upper_sm_reconn_ss_spp_wait:
+665c 6fe08336 fetch 1 ,mem_message_to_uppersm 
+665d c18b8000 rtnne recieve_ss_reasult_hf 
+665e 70033600 jam 0 ,mem_message_to_uppersm 
+665f 7003380d jam uppersm_reconn_sdp_disconn ,mem_upper_sm_reconn 
+6660 202065dc branch process_upper_sm_reconn 
+
+process_upper_sm_reconn_sdp_disconn_wait:
+6661 6fe0c4e0 fetch 1 ,mem_sdp_state 
+6662 247a0000 nrtn blank 
+6663 6fe0c78d fetch 1 ,mem_ui_profile_supported 
+6664 c2806690 bbit1 support_hid ,process_upper_sm_reconn_setup_hid 
+6665 c2836692 bbit1 support_spp ,process_upper_sm_reconn_setup_rfcomm 
+6666 20206696 branch process_upper_sm_reconn_termination 
+
+process_upper_sm_reconn_hid_ctrl_conn_wait:
+6667 6fe0c4e2 fetch 1 ,mem_hid_control_state 
+6668 c4008000 rtnbit0 l2cap_channel_state_conn_res 
+6669 70033811 jam uppersm_reconn_hid_ctrl_cfg ,mem_upper_sm_reconn 
+666a 202065dc branch process_upper_sm_reconn 
+
+process_upper_sm_reconn_hid_ctrl_cfg_wait:
+666b 6fe0c4e2 fetch 1 ,mem_hid_control_state 
+666c c19f8000 rtnne l2cap_channel_setup_complete 
+666d 70033813 jam uppersm_reconn_hid_int_conn ,mem_upper_sm_reconn 
+666e 202065dc branch process_upper_sm_reconn 
+
+process_upper_sm_reconn_hid_int_conn_wait:
+666f 6fe0c4e3 fetch 1 ,mem_hid_interrupt_state 
+6670 c4008000 rtnbit0 l2cap_channel_state_conn_res 
+6671 70033815 jam uppersm_reconn_hid_int_cfg ,mem_upper_sm_reconn 
+6672 202065dc branch process_upper_sm_reconn 
+
+process_upper_sm_reconn_hid_int_cfg_wait:
+6673 6fe0c4e3 fetch 1 ,mem_hid_interrupt_state 
+6674 c19f8000 rtnne l2cap_channel_setup_complete 
+6675 6fe0c78d fetch 1 ,mem_ui_profile_supported 
+6676 c2836692 bbit1 support_spp ,process_upper_sm_reconn_setup_rfcomm 
+6677 20206696 branch process_upper_sm_reconn_termination 
+
+process_upper_sm_reconn_rfcomm_conn_wait:
+6678 6fe0c4e1 fetch 1 ,mem_rfcomm_state 
+6679 c4008000 rtnbit0 l2cap_channel_state_conn_res 
+667a 70033819 jam uppersm_reconn_rfcomm_cfg ,mem_upper_sm_reconn 
+667b 202065dc branch process_upper_sm_reconn 
+
+process_upper_sm_reconn_rfcomm_cfg_wait:
+667c 6fe0c4e1 fetch 1 ,mem_rfcomm_state 
+667d c19f8000 rtnne l2cap_channel_setup_complete 
+667e 7003381b jam uppersm_reconn_rfcomm_sabm ,mem_upper_sm_reconn 
+667f 202065dc branch process_upper_sm_reconn 
+
+process_upper_sm_reconn_rfcomm_sabm_wait:
+6680 6fe0c4e1 fetch 1 ,mem_rfcomm_state 
+6681 c1ff8000 rtnne l2cap_channel_rfcomm_dlci0_opened 
+6682 6fe0c78d fetch 1 ,mem_ui_profile_supported 
+6683 c2836694 bbit1 support_spp ,process_upper_sm_reconn_setup_spp 
+6684 20206696 branch process_upper_sm_reconn_termination 
+
+process_upper_sm_reconn_spp_cmd_pn_wait:
+6685 6fe0c4e4 fetch 1 ,mem_spp_state 
+6686 c4008000 rtnbit0 rfcomm_channel_state_pn_res 
+6687 7003381f jam uppersm_reconn_spp_sabm ,mem_upper_sm_reconn 
+6688 202065dc branch process_upper_sm_reconn 
+
+process_upper_sm_reconn_spp_sabm_wait:
+6689 6fe0c4e4 fetch 1 ,mem_spp_state 
+668a c4018000 rtnbit0 rfcomm_channel_state_ua 
+668b 70033821 jam uppersm_reconn_spp_cmd_ms ,mem_upper_sm_reconn 
+668c 202065dc branch process_upper_sm_reconn 
+
+process_upper_sm_reconn_spp_cmd_ms_wait:
+668d 6fe0c4e4 fetch 1 ,mem_spp_state 
+668e c1ff8000 rtnne rfcomm_channel_setup_complete 
+668f 20206696 branch process_upper_sm_reconn_termination 
+
+process_upper_sm_reconn_setup_hid:
+6690 7003380f jam uppersm_reconn_hid_ctrl_conn ,mem_upper_sm_reconn 
+6691 202065dc branch process_upper_sm_reconn 
+
+process_upper_sm_reconn_setup_rfcomm:
+6692 70033817 jam uppersm_reconn_rfcomm_conn ,mem_upper_sm_reconn 
+6693 202065dc branch process_upper_sm_reconn 
+
+process_upper_sm_reconn_setup_spp:
+6694 7003381d jam uppersm_reconn_spp_cmd_pn ,mem_upper_sm_reconn 
+6695 202065dc branch process_upper_sm_reconn 
+
+process_upper_sm_reconn_termination:
+6696 70033800 jam 0 ,mem_upper_sm_reconn 
+6697 20600000 rtn 
+
+upper_sm_send_sdp_conn:
+6698 4728c02a bpatchx patch2a_1 ,mem_patch2a 
+6699 204052e6 call l2cap_malloc_signal_channel 
+669a 58000001 setarg psm_sdp 
+669b 1fe20400 copy pdata ,temp 
+669c 58000050 setarg l2cap_sdp_channel 
+669d 1fe21600 copy pdata ,timeup 
+669e 202050e1 branch ml2cap_send_signal_connect_req 
+
+upper_sm_send_sdp_cfg:
+669f 4729402a bpatchx patch2a_2 ,mem_patch2a 
+66a0 204052e6 call l2cap_malloc_signal_channel 
+66a1 6fe144d8 fetch 2 ,mem_sdp_remote_cid 
+66a2 1fe20400 copy pdata ,temp 
+66a3 202050f0 branch ml2cap_send_signal_config_req 
+
+upper_sm_send_sdp_disconn:
+66a4 4729c02a bpatchx patch2a_3 ,mem_patch2a 
+66a5 204052e6 call l2cap_malloc_signal_channel 
+66a6 6fe144d8 fetch 2 ,mem_sdp_remote_cid 
+66a7 1fe20400 copy pdata ,temp 
+66a8 d9600050 arg l2cap_sdp_channel ,timeup 
+66a9 20405105 call ml2cap_send_signal_disconn_req 
+66aa 6fe0c4e0 fetch 1 ,mem_sdp_state 
+66ab 793ffe05 set0 l2cap_channel_state_rcv_cfg_res ,pdata 
+66ac 67e0c4e0 store 1 ,mem_sdp_state 
+66ad 20600000 rtn 
+
+upper_sm_send_ss_spp:
+66ae 472a402a bpatchx patch2a_4 ,mem_patch2a 
+66af 204052f3 call l2cap_malloc_sdp_channel 
+66b0 20406a19 call sdp_send_spp_request 
+66b1 20205120 branch msdp_send_req_done 
+
+upper_sm_send_rfcomm_conn:
+66b2 472ac02a bpatchx patch2a_5 ,mem_patch2a 
+66b3 204052e6 call l2cap_malloc_signal_channel 
+66b4 58000003 setarg psm_rfcomm 
+66b5 1fe20400 copy pdata ,temp 
+66b6 58000051 setarg l2cap_rfcomm_channel 
+66b7 1fe21600 copy pdata ,timeup 
+66b8 202050e1 branch ml2cap_send_signal_connect_req 
+
+upper_sm_send_rfcomm_cfg:
+66b9 472b402a bpatchx patch2a_6 ,mem_patch2a 
+66ba 204052e6 call l2cap_malloc_signal_channel 
+66bb 6fe144da fetch 2 ,mem_rfcomm_remote_cid 
+66bc 1fe20400 copy pdata ,temp 
+66bd 202050f0 branch ml2cap_send_signal_config_req 
+
+upper_sm_send_hid_ctrl_conn:
+66be 472bc02a bpatchx patch2a_7 ,mem_patch2a 
+66bf 204052e6 call l2cap_malloc_signal_channel 
+66c0 58000011 setarg psm_hid_control 
+66c1 1fe20400 copy pdata ,temp 
+66c2 58000052 setarg l2cap_hid_control_channel 
+66c3 1fe21600 copy pdata ,timeup 
+66c4 202050e1 branch ml2cap_send_signal_connect_req 
+
+upper_sm_send_hid_ctrl_cfg:
+66c5 472c402b bpatchx patch2b_0 ,mem_patch2b 
+66c6 204052e6 call l2cap_malloc_signal_channel 
+66c7 6fe144dc fetch 2 ,mem_hid_ctrl_remote_cid 
+66c8 1fe20400 copy pdata ,temp 
+66c9 202050f0 branch ml2cap_send_signal_config_req 
+
+upper_sm_send_hid_int_conn:
+66ca 472cc02b bpatchx patch2b_1 ,mem_patch2b 
+66cb 204052e6 call l2cap_malloc_signal_channel 
+66cc 58000013 setarg psm_hid_interrupt 
+66cd 1fe20400 copy pdata ,temp 
+66ce 58000053 setarg l2cap_hid_interrupt_channel 
+66cf 1fe21600 copy pdata ,timeup 
+66d0 202050e1 branch ml2cap_send_signal_connect_req 
+
+upper_sm_send_hid_int_cfg:
+66d1 472d402b bpatchx patch2b_2 ,mem_patch2b 
+66d2 204052e6 call l2cap_malloc_signal_channel 
+66d3 6fe144de fetch 2 ,mem_hid_int_remote_cid 
+66d4 1fe20400 copy pdata ,temp 
+66d5 202050f0 branch ml2cap_send_signal_config_req 
+
+upper_sm_send_rfcomm_sabm:
+66d6 472dc02b bpatchx patch2b_3 ,mem_patch2b 
+66d7 20405300 call l2cap_malloc_rfcomm_channel 
+66d8 7003ce03 jam 3 ,mem_current_adss 
+66d9 7003d11c jam 0x1c ,mem_current_fcs 
+66da 2040648b call rfcomm_send_sabm 
+66db 70464d01 jam 1 ,mem_rfcomm_initiator 
+66dc 20600000 rtn 
+
+upper_sm_send_spp_cmd_pn:
+66dd 472e402b bpatchx patch2b_4 ,mem_patch2b 
+66de 20405300 call l2cap_malloc_rfcomm_channel 
+66df 6848c64e fetcht 1 ,mem_remote_spp_channel 
+66e0 2040635b call channel_to_dlci 
+66e1 6048c647 storet 1 ,mem_pn_dlci 
+66e2 202064a6 branch rfcomm_send_param_neg_cmd 
+
+upper_sm_send_spp_sabm:
+66e3 472ec02b bpatchx patch2b_5 ,mem_patch2b 
+66e4 20405300 call l2cap_malloc_rfcomm_channel 
+66e5 6848c647 fetcht 1 ,mem_pn_dlci 
+66e6 20406355 call dlci_to_address_cmd 
+66e7 204062fc call rfcomm_calculate_fcs_sabm 
+66e8 67e083d1 store 1 ,mem_current_fcs 
+66e9 6848c647 fetcht 1 ,mem_pn_dlci 
+66ea 20406355 call dlci_to_address_cmd 
+66eb 604883ce storet 1 ,mem_current_adss 
+66ec 2020648b branch rfcomm_send_sabm 
+
+upper_sm_send_spp_cmd_ms:
+66ed 472f402b bpatchx patch2b_6 ,mem_patch2b 
+66ee 20405300 call l2cap_malloc_rfcomm_channel 
+66ef 6848c647 fetcht 1 ,mem_pn_dlci 
+66f0 20406355 call dlci_to_address_cmd 
+66f1 202064de branch rfcomm_send_modem_status_cmd 
+
+sdp_process:
+66f2 472fc02b bpatchx patch2b_7 ,mem_patch2b 
+66f3 6fe10315 fetch 2 ,mem_l2cap_payload_ptr 
+66f4 98000c00 iforce contr 
+66f5 efe08006 ifetch 1 ,contr 
+66f6 1fe22400 copy pdata ,regb 
+66f7 67e083ee store 1 ,mem_sdp_pduid 
+66f8 efe10006 ifetch 2 ,contr 
+66f9 67e103ef store 2 ,mem_sdp_transactionid 
+66fa efe08006 ifetch 1 ,contr 
+66fb 1fed1600 lshift8 pdata ,timeup 
+66fc efe08006 ifetch 1 ,contr 
+66fd 99609600 iadd timeup ,timeup 
+66fe 4730402c bpatchx patch2c_0 ,mem_patch2c 
+66ff 18c20400 copy contr ,temp 
+6700 df200004 arg 4 ,loopcnt 
+6701 d8a003fd arg mem_sdp_handle_list ,contw 
+6702 20407d25 call memset0 
+6703 18420c00 copy temp ,contr 
+6704 1a427e00 deposit regb 
+6705 c000e89b beq sdp_error_res ,sdp_process_error_res 
+6706 c001670d beq sdp_search_req ,sdp_process_ss_req 
+6707 c001e89b beq sdp_search_res ,sdp_process_ss_res 
+6708 c0026735 beq sdp_attribute_req ,sdp_process_sa_req 
+6709 c002e89b beq sdp_attribute_res ,sdp_process_sa_res 
+670a c00367e3 beq sdp_searchattrib_req ,sdp_process_ssa_req 
+670b c003e89b beq sdp_searchattrib_res ,sdp_process_ssa_res 
+670c 202068a2 branch sdp_insufficient_resource 
+
+sdp_process_ss_req:
+670d 4730c02c bpatchx patch2c_1 ,mem_patch2c 
+670e 204068b1 call ask_serviceclassid 
+670f 2841fe01 compare 1 ,temp ,0xff 
+6710 2020e921 branch ss_empty_rsp ,true 
+6711 2841feff compare 0xff ,temp ,0xff 
+6712 2020e8a5 branch sdp_invalid_request_syntax ,true 
+6713 efe10006 ifetch 2 ,contr 
+6714 67e103f5 store 2 ,mem_sdp_record_maxcnt 
+6715 196097fe increase -2 ,timeup 
+6716 196097ff increase -1 ,timeup 
+6717 2422e89f nbranch sdp_invalid_pdu_size ,zero 
+6718 d96003e4 arg mem_sdp_uuid_search_ptr ,timeup 
+6719 efe1000b ifetch 2 ,timeup 
+671a 207a0000 rtn blank 
+671b 20406963 call search_all_uuid 
+671c 204052fe call l2cap_get_sdp_tx_payload 
+671d 18007e03 force 3 ,pdata 
+671e e7e08005 istore 1 ,contw 
+671f 6fe103ef fetch 2 ,mem_sdp_transactionid 
+6720 e7e10005 istore 2 ,contw 
+6721 18ebfe00 lshift2 queue ,pdata 
+6722 1fe0fe05 add pdata ,5 ,pdata 
+6723 1fe0a605 add pdata ,5 ,regc 
+6724 1ff0fe00 byteswap pdata ,pdata 
+6725 e7e10005 istore 2 ,contw 
+6726 18e27e00 deposit queue 
+6727 1ff0fe00 byteswap pdata ,pdata 
+6728 e7e10005 istore 2 ,contw 
+6729 e7e10005 istore 2 ,contw 
+672a d8c003fd arg mem_sdp_handle_list ,contr 
+672b 18e27200 copy queue ,loopcnt 
+672c 2022e730 branch ss_req_blank ,zero 
+
+ss_req_loop:
+672d efe20006 ifetch 4 ,contr 
+672e e7e20005 istore 4 ,contw 
+672f c200672d loop ss_req_loop 
+
+ss_req_blank:
+6730 18007e00 force 0 ,pdata 
+6731 e7e08005 istore 1 ,contw 
+6732 1a627e00 deposit regc 
+6733 67e10326 store 2 ,mem_sdp_tx_pkt_length 
+6734 20600000 rtn 
+
+sdp_process_sa_req:
+6735 4731402c bpatchx patch2c_2 ,mem_patch2c 
+6736 efe20006 ifetch 4 ,contr 
+6737 67e203f7 store 4 ,mem_sdp_record_handle 
+6738 196097fc increase -4 ,timeup 
+6739 2040680f call sdp_store_maxbyte 
+673a 67e103f3 store 2 ,mem_sdp_attribute_maxbyte 
+673b 196097fe increase -2 ,timeup 
+673c 20406909 call dataelementtype6 
+673d 2022e8a5 branch sdp_invalid_request_syntax ,zero 
+673e 2a21fe05 compare 5 ,rega ,0xff 
+673f 2020e743 branch sa_judge_wholerange ,true 
+
+sa_isnot_wholerange:
+6740 d8a003fd arg mem_sdp_attrib_list ,contw 
+6741 18000e00 force 0 ,queue 
+6742 20206752 branch sa_req_loop 
+
+sa_judge_wholerange:
+6743 efe08006 ifetch 1 ,contr 
+6744 c08568a5 bne sdp_attribute_range ,sdp_invalid_request_syntax 
+6745 efe10006 ifetch 2 ,contr 
+6746 243a6750 nbranch sa_judge_wholerange_false1 ,blank 
+6747 efe08006 ifetch 1 ,contr 
+6748 c0ffe74e bne 0xff ,sa_judge_wholerange_false2 
+6749 efe08006 ifetch 1 ,contr 
+674a c0ffe74c bne 0xff ,sa_judge_wholerange_false3 
+674b 20206799 branch sa_req_all 
+
+sa_judge_wholerange_false3:
+674c 18c08dfb increase -5 ,contr 
+674d 20206740 branch sa_isnot_wholerange 
+
+sa_judge_wholerange_false2:
+674e 18c08dfc increase -4 ,contr 
+674f 20206740 branch sa_isnot_wholerange 
+
+sa_judge_wholerange_false1:
+6750 18c08dfd increase -3 ,contr 
+6751 20206740 branch sa_isnot_wholerange 
+
+sa_req_loop:
+6752 efe08006 ifetch 1 ,contr 
+6753 c004e767 beq sdp_attribute_id ,sa_req_one_id 
+6754 c0056755 beq sdp_attribute_range ,sa_req_range 
+
+sa_req_range:
+6755 efe10006 ifetch 2 ,contr 
+6756 e7e10005 istore 2 ,contw 
+6757 18e08e01 increase 1 ,queue 
+6758 1ff0a400 byteswap pdata ,regb 
+6759 efe10006 ifetch 2 ,contr 
+675a 1ff0fe00 byteswap pdata ,pdata 
+
+sa_req_range_id_increase:
+675b 1a40a401 increase 1 ,regb 
+675c 9a467c00 isub regb ,null 
+675d 24216764 nbranch sa_req_range_id_finish ,positive 
+675e 1fe22600 copy pdata ,regc 
+675f 1a50fe00 byteswap regb ,pdata 
+6760 e7e10005 istore 2 ,contw 
+6761 18e08e01 increase 1 ,queue 
+6762 1a627e00 copy regc ,pdata 
+6763 2020675b branch sa_req_range_id_increase 
+
+sa_req_range_id_finish:
+6764 196097fb increase -5 ,timeup 
+6765 1a20a3fb increase -5 ,rega 
+6766 2020676c branch sa_req_check_next_id 
+
+sa_req_one_id:
+6767 efe10006 ifetch 2 ,contr 
+6768 e7e10005 istore 2 ,contw 
+6769 18e08e01 increase 1 ,queue 
+676a 196097fd increase -3 ,timeup 
+676b 1a20a3fd increase -3 ,rega 
+
+sa_req_check_next_id:
+676c 242168a5 nbranch sdp_invalid_request_syntax ,positive 
+676d 2422e752 nbranch sa_req_loop ,zero 
+676e 196097ff increase -1 ,timeup 
+676f 2422e8a5 nbranch sdp_invalid_request_syntax ,zero 
+6770 204052fe call l2cap_get_sdp_tx_payload 
+6771 18a08a0a increase 10 ,contw 
+6772 da2003fd arg mem_sdp_attrib_list ,rega 
+
+sa_req_handle_attributelist_next:
+6773 18e27e00 copy queue ,pdata 
+6774 203a6786 branch sa_req_handle_attributelist_end ,blank 
+6775 efe10011 ifetch 2 ,rega 
+6776 203a6786 branch sa_req_handle_attributelist_end ,blank 
+6777 98002400 iforce regb 
+6778 6fe203f7 fetch 4 ,mem_sdp_record_handle 
+6779 98000400 iforce temp 
+677a 204069c8 call search_handle_attrib 
+677b 18c27e00 copy contr ,pdata 
+677c 203a6783 branch sa_req_handle_attributelist_notfound ,blank 
+677d 18c08dfd increase -3 ,contr 
+677e efe18006 ifetch 3 ,contr 
+677f e7e18005 istore 3 ,contw 
+6780 2040693c call sdp_data_len 
+6781 98007200 iforce loopcnt 
+6782 20407d6d call memcpy 
+
+sa_req_handle_attributelist_notfound:
+6783 1a20a202 increase 2 ,rega 
+6784 18e08fff increase -1 ,queue 
+6785 20206773 branch sa_req_handle_attributelist_next 
+
+sa_req_handle_attributelist_end:
+6786 da200005 arg sdp_attribute_res ,rega 
+6787 20406865 call ssa_req_range_lastfreg_common 
+6788 6fe10326 fetch 2 ,mem_sdp_tx_pkt_length 
+6789 c005e924 beq 11 ,sa_empty_rsp 
+678a 2020687b branch ssa_req_range_attrbutes_length_no_continue 
+
+sdp_store_continue_common:
+678b efe08006 ifetch 1 ,contr 
+678c c000678f beq 0 ,sdp_store_continue_0byte 
+678d c000e791 beq 1 ,sdp_store_continue_1byte 
+678e c0016794 beq 2 ,sdp_store_continue_2byte 
+
+sdp_store_continue_0byte:
+678f 196097ff increase -1 ,timeup 
+6790 20206797 branch sdp_store_continue_end 
+
+sdp_store_continue_1byte:
+6791 efe08006 ifetch 1 ,contr 
+6792 196097fe increase -2 ,timeup 
+6793 20206797 branch sdp_store_continue_end 
+
+sdp_store_continue_2byte:
+6794 efe10006 ifetch 2 ,contr 
+6795 1ff0fe00 byteswap pdata ,pdata 
+6796 196097fd increase -3 ,timeup 
+
+sdp_store_continue_end:
+6797 67e103ec store 2 ,mem_sdp_continue_byte 
+6798 20600000 rtn 
+
+sa_req_all:
+6799 196097fb increase -5 ,timeup 
+679a 2040678b call sdp_store_continue_common 
+679b 2422e89f nbranch sdp_invalid_pdu_size ,zero 
+679c 684a03f7 fetcht 4 ,mem_sdp_record_handle 
+679d 20406992 call search_handle 
+679e 2422e89c nbranch sdp_invalid_service_record_handle ,zero 
+679f 18c22200 copy contr ,rega 
+67a0 204052fe call l2cap_get_sdp_tx_payload 
+67a1 1a220c00 copy rega ,contr 
+67a2 18a08a03 increase 3 ,contw 
+67a3 18c21600 copy contr ,timeup 
+67a4 20406943 call sdp_get_data 
+67a5 1fe22200 copy pdata ,rega 
+67a6 6fe103ec fetch 2 ,mem_sdp_continue_byte 
+67a7 1fe22400 copy pdata ,regb 
+67a8 1a227e00 copy rega ,pdata 
+67a9 9a462400 isub regb ,regb 
+67aa 6fe103f3 fetch 2 ,mem_sdp_attribute_maxbyte 
+67ab 9a467c00 isub regb ,null 
+67ac 242167c8 nbranch sa_req_all_fragment_sdp ,positive 
+67ad 78547c00 disable user 
+67ae 6fe103ec fetch 2 ,mem_sdp_continue_byte 
+67af 203a67bb branch sa_req_all_fisrt_fragment ,blank 
+67b0 99608c00 iadd timeup ,contr 
+67b1 1a40a403 increase 3 ,regb 
+67b2 1a427200 copy regb ,loopcnt 
+67b3 1f227e00 copy loopcnt ,pdata 
+67b4 1fe0fe03 increase 3 ,pdata 
+67b5 1ff0fe00 byteswap pdata ,pdata 
+67b6 e7e10005 istore 2 ,contw 
+67b7 1f227e00 copy loopcnt ,pdata 
+67b8 1ff0fe00 byteswap pdata ,pdata 
+67b9 e7e10005 istore 2 ,contw 
+67ba 202067d6 branch sa_req_all_answer_attributelist_full_loop 
+
+sa_req_all_fisrt_fragment:
+67bb 1a20f206 add rega ,6 ,loopcnt 
+67bc 203467bf branch sa_req_all_parlength_continue_byte ,user 
+67bd 1f30fe00 byteswap loopcnt ,pdata 
+67be 202067c2 branch sa_req_all_parlength_continue_byte_end 
+
+sa_req_all_parlength_continue_byte:
+67bf 1f227e00 copy loopcnt ,pdata 
+67c0 1fe0fe02 increase 2 ,pdata 
+67c1 1ff0fe00 byteswap pdata ,pdata 
+
+sa_req_all_parlength_continue_byte_end:
+67c2 e7e10005 istore 2 ,contw 
+67c3 1f20f3fd increase -3 ,loopcnt 
+67c4 1f30fe00 byteswap loopcnt ,pdata 
+67c5 e7e10005 istore 2 ,contw 
+67c6 19620c00 copy timeup ,contr 
+67c7 202067d6 branch sa_req_all_answer_attributelist_full_loop 
+
+sa_req_all_fragment_sdp:
+67c8 78347c00 enable user 
+67c9 6fe103f3 fetch 2 ,mem_sdp_attribute_maxbyte 
+67ca 1fe22200 copy pdata ,rega 
+67cb 1a227200 copy rega ,loopcnt 
+67cc 6fe103ec fetch 2 ,mem_sdp_continue_byte 
+67cd 203a67bb branch sa_req_all_fisrt_fragment ,blank 
+67ce 99608c00 iadd timeup ,contr 
+67cf 1a227e00 copy rega ,pdata 
+67d0 1fe0fe05 increase 5 ,pdata 
+67d1 1ff0fe00 byteswap pdata ,pdata 
+67d2 e7e10005 istore 2 ,contw 
+67d3 1a227e00 copy rega ,pdata 
+67d4 1ff0fe00 byteswap pdata ,pdata 
+67d5 e7e10005 istore 2 ,contw 
+
+sa_req_all_answer_attributelist_full_loop:
+67d6 20407d6d call memcpy 
+67d7 243467df nbranch sa_req_all_last_frag_continue ,user 
+67d8 18007e02 force 2 ,pdata 
+67d9 e7e08005 istore 1 ,contw 
+67da 18c27e00 copy contr ,pdata 
+67db 99667e00 isub timeup ,pdata 
+67dc 1ff0fe00 byteswap pdata ,pdata 
+67dd e7e10005 istore 2 ,contw 
+67de 202067e1 branch sa_req_all_frag_end 
+
+sa_req_all_last_frag_continue:
+67df 18007e00 force 0 ,pdata 
+67e0 e7e08005 istore 1 ,contw 
+
+sa_req_all_frag_end:
+67e1 da200005 arg sdp_attribute_res ,rega 
+67e2 20206891 branch ssa_req_range_common 
+
+sdp_process_ssa_req:
+67e3 4731c02c bpatchx patch2c_3 ,mem_patch2c 
+67e4 204068b1 call ask_serviceclassid 
+67e5 2841feff compare 0xff ,temp ,0xff 
+67e6 2020e8a5 branch sdp_invalid_request_syntax ,true 
+67e7 2040680f call sdp_store_maxbyte 
+67e8 67e103f3 store 2 ,mem_sdp_attribute_maxbyte 
+67e9 196097fe increase -2 ,timeup 
+67ea 20406909 call dataelementtype6 
+67eb d8a003fd arg mem_sdp_attrib_list ,contw 
+67ec 18000e00 force 0 ,queue 
+
+ssa_req_loop:
+67ed efe08006 ifetch 1 ,contr 
+67ee c0056817 beq sdp_attribute_range ,ssa_req_range 
+67ef efe10006 ifetch 2 ,contr 
+67f0 e7e10005 istore 2 ,contw 
+67f1 18e08e01 increase 1 ,queue 
+67f2 196097fd increase -3 ,timeup 
+67f3 1a20a3fd increase -3 ,rega 
+67f4 242168a5 nbranch sdp_invalid_request_syntax ,positive 
+67f5 2422e7ed nbranch ssa_req_loop ,zero 
+67f6 196097ff increase -1 ,timeup 
+67f7 2422e8a5 nbranch sdp_invalid_request_syntax ,zero 
+67f8 204052fe call l2cap_get_sdp_tx_payload 
+67f9 18a08a0d increase 13 ,contw 
+67fa 6fe103e4 fetch 2 ,mem_sdp_uuid_search_ptr 
+67fb 98002600 iforce regc 
+67fc da2003fd arg mem_sdp_attrib_list ,rega 
+
+ssa_req_attributelist_next:
+67fd efe10011 ifetch 2 ,rega 
+67fe 203a680a branch ssa_req_attributelist_end ,blank 
+67ff 98002400 iforce regb 
+6800 204069a7 call search_attrib 
+6801 203a6808 branch ssa_req_attributelist_notfound ,blank 
+6802 18c08dfd increase -3 ,contr 
+6803 efe18006 ifetch 3 ,contr 
+6804 e7e18005 istore 3 ,contw 
+6805 2040693c call sdp_data_len 
+6806 98007200 iforce loopcnt 
+6807 20407d6d call memcpy 
+
+ssa_req_attributelist_notfound:
+6808 1a20a202 increase 2 ,rega 
+6809 202067fd branch ssa_req_attributelist_next 
+
+ssa_req_attributelist_end:
+680a 20406864 call ssa_req_range_lastfreg 
+680b 6fe10326 fetch 2 ,mem_sdp_tx_pkt_length 
+680c c0076927 beq 14 ,ssa_empty_rsp 
+680d 2040687b call ssa_req_range_attrbutes_length_no_continue 
+680e 2020687b branch ssa_req_range_attrbutes_length_no_continue 
+
+sdp_store_maxbyte:
+680f efe10006 ifetch 2 ,contr 
+6810 1ff0fe00 byteswap pdata ,pdata 
+6811 1fe0fffd increase -3 ,pdata 
+6812 d84000c8 arg 200 ,temp 
+6813 98467c00 isub temp ,null 
+6814 24610000 nrtn positive 
+6815 580000c8 setarg 200 
+6816 20600000 rtn 
+
+ssa_req_range:
+6817 18c08c04 increase 4 ,contr 
+6818 196097fb increase -5 ,timeup 
+6819 1a20a3fb increase -5 ,rega 
+681a 2422e8a5 nbranch sdp_invalid_request_syntax ,zero 
+681b 2040678b call sdp_store_continue_common 
+681c 2422e89f nbranch sdp_invalid_pdu_size ,zero 
+681d d96003e4 arg mem_sdp_uuid_search_ptr ,timeup 
+681e 20406963 call search_all_uuid 
+681f 18e27e00 deposit queue 
+6820 203a6927 branch ssa_empty_rsp ,blank 
+6821 67e08421 store 1 ,mem_handle_humber 
+6822 1a427e00 copy regb ,pdata 
+6823 67e1041f store 2 ,mem_sdp_all_length 
+6824 d8e00000 arg 0 ,queue 
+6825 da200000 arg 0 ,rega 
+6826 204052fe call l2cap_get_sdp_tx_payload 
+6827 18a08a0a increase 10 ,contw 
+
+ssa_req_range_find_handle:
+6828 2040684d call ssa_req_range_get_length 
+6829 2434131f nbranch assert ,user 
+682a 18c21600 copy contr ,timeup 
+682b 1fe22600 copy pdata ,regc 
+682c 9a20a200 iadd rega ,rega 
+682d 6fe103ec fetch 2 ,mem_sdp_continue_byte 
+682e 1fe22400 copy pdata ,regb 
+682f 203a6856 branch ssa_req_range_first_freg ,blank 
+
+ssa_req_range_later_freg_with_continue:
+6830 1a227e00 copy rega ,pdata 
+6831 9a462400 isub regb ,regb 
+6832 2022e848 branch ssa_req_range_next_handle ,zero 
+6833 24216848 nbranch ssa_req_range_next_handle ,positive 
+6834 6fe103f3 fetch 2 ,mem_sdp_attribute_maxbyte 
+6835 9a467c00 isub regb ,null 
+6836 2022e83f branch ssa_req_range_maxbyte_with_continue ,zero 
+6837 2421683f nbranch ssa_req_range_maxbyte_with_continue ,positive 
+
+ssa_req_range_send_not_maxbyte:
+6838 1a427200 copy regb ,loopcnt 
+6839 20406842 call ssa_req_range_maxbyte_with_continue_cpy 
+683a 6fe08421 fetch 1 ,mem_handle_humber 
+683b 18e08e01 increase 1 ,queue 
+683c 98e67c00 isub queue ,null 
+683d 2022e864 branch ssa_req_range_lastfreg ,zero 
+683e 20206881 branch ssa_req_range_freg_with_continue 
+
+ssa_req_range_maxbyte_with_continue:
+683f 1fe27200 copy pdata ,loopcnt 
+6840 20406842 call ssa_req_range_maxbyte_with_continue_cpy 
+6841 20206881 branch ssa_req_range_freg_with_continue 
+
+ssa_req_range_maxbyte_with_continue_cpy:
+6842 18a08bfd increase -3 ,contw 
+6843 1f220400 copy loopcnt ,temp 
+6844 1a627e00 copy regc ,pdata 
+6845 9a467e00 isub regb ,pdata 
+6846 99608c00 iadd timeup ,contr 
+6847 20207d6d branch memcpy 
+
+ssa_req_range_next_handle:
+6848 6fe08421 fetch 1 ,mem_handle_humber 
+6849 18e08e01 increase 1 ,queue 
+684a 98e67c00 isub queue ,null 
+684b 20628000 rtn zero 
+684c 20206828 branch ssa_req_range_find_handle 
+
+ssa_req_range_get_length:
+684d 20407e64 call disable_user 
+684e d8c003fd arg mem_sdp_handle_list ,contr 
+684f 18ebfe00 lshift2 queue ,pdata 
+6850 98c08c00 iadd contr ,contr 
+6851 e8420006 ifetcht 4 ,contr 
+6852 20406992 call search_handle 
+6853 24628000 nrtn zero 
+6854 2040693c call sdp_data_len 
+6855 20207e62 branch enable_user 
+
+ssa_req_range_first_freg:
+6856 6fe103f3 fetch 2 ,mem_sdp_attribute_maxbyte 
+6857 9a267c00 isub rega ,null 
+6858 24216870 nbranch ssa_req_range_firstfreg_maxbyte_with_continue ,positive 
+6859 1a227200 copy rega ,loopcnt 
+685a 1f220400 copy loopcnt ,temp 
+685b 19620c00 copy timeup ,contr 
+685c 20407d6d call memcpy 
+685d 6fe1041f fetch 2 ,mem_sdp_all_length 
+685e 9a267c00 isub rega ,null 
+685f 2022e862 branch ssa_req_range_freg_no_continue ,zero 
+
+ssa_req_range_firstfreg_not_maxbyte_with_continue:
+6860 20406881 call ssa_req_range_freg_with_continue 
+6861 20206875 branch ssa_req_range_attrbutes_length 
+
+ssa_req_range_freg_no_continue:
+6862 20406864 call ssa_req_range_lastfreg 
+6863 20206875 branch ssa_req_range_attrbutes_length 
+
+ssa_req_range_lastfreg:
+6864 da200007 arg sdp_searchattrib_res ,rega 
+
+ssa_req_range_lastfreg_common:
+6865 18007e00 force 0 ,pdata 
+6866 e7e08005 istore 1 ,contw 
+6867 20406891 call ssa_req_range_common 
+6868 68490326 fetcht 2 ,mem_sdp_tx_pkt_length 
+6869 184085fb increase -5 ,temp 
+686a 1850fe00 byteswap temp ,pdata 
+686b e7e10005 istore 2 ,contw 
+686c 184085fd increase -3 ,temp 
+686d 1850fe00 byteswap temp ,pdata 
+686e e7e10005 istore 2 ,contw 
+686f 20600000 rtn 
+
+ssa_req_range_firstfreg_maxbyte_with_continue:
+6870 1fe27200 copy pdata ,loopcnt 
+6871 1f220400 copy loopcnt ,temp 
+6872 19620c00 copy timeup ,contr 
+6873 20407d6d call memcpy 
+6874 20406881 call ssa_req_range_freg_with_continue 
+
+ssa_req_range_attrbutes_length:
+6875 58000036 setarg 0x36 
+6876 e7e08005 istore 1 ,contw 
+6877 6fe1041f fetch 2 ,mem_sdp_all_length 
+6878 1ff0fe00 byteswap pdata ,pdata 
+6879 e7e10005 istore 2 ,contw 
+687a 20600000 rtn 
+
+ssa_req_range_attrbutes_length_no_continue:
+687b 58000036 setarg 0x36 
+687c e7e08005 istore 1 ,contw 
+687d 184085fd increase -3 ,temp 
+687e 1850fe00 byteswap temp ,pdata 
+687f e7e10005 istore 2 ,contw 
+6880 20600000 rtn 
+
+ssa_req_range_freg_with_continue:
+6881 da200007 arg sdp_searchattrib_res ,rega 
+6882 58000002 setarg 2 
+6883 e7e08005 istore 1 ,contw 
+6884 6fe103ec fetch 2 ,mem_sdp_continue_byte 
+6885 98408400 iadd temp ,temp 
+6886 1850fe00 byteswap temp ,pdata 
+6887 e7e10005 istore 2 ,contw 
+6888 20406891 call ssa_req_range_common 
+6889 68490326 fetcht 2 ,mem_sdp_tx_pkt_length 
+688a 184085fb increase -5 ,temp 
+688b 1850fe00 byteswap temp ,pdata 
+688c e7e10005 istore 2 ,contw 
+688d 184085fb increase -5 ,temp 
+688e 1850fe00 byteswap temp ,pdata 
+688f e7e10005 istore 2 ,contw 
+6890 20600000 rtn 
+
+ssa_req_range_common:
+6891 6fe10324 fetch 2 ,mem_sdp_tx_payload_ptr 
+6892 98a67e00 isub contw ,pdata 
+6893 1fe67e00 sub pdata ,0 ,pdata 
+6894 67e10326 store 2 ,mem_sdp_tx_pkt_length 
+6895 204052fe call l2cap_get_sdp_tx_payload 
+6896 1a227e00 copy rega ,pdata 
+6897 e7e08005 istore 1 ,contw 
+6898 6fe103ef fetch 2 ,mem_sdp_transactionid 
+6899 e7e10005 istore 2 ,contw 
+689a 20600000 rtn 
+
+sdp_process_ssa_res:
+
+sdp_process_ss_res:
+
+sdp_process_sa_res:
+
+sdp_process_error_res:
+689b 20600000 rtn 
+
+sdp_invalid_service_record_handle:
+689c 58000200 setarg 0x0200 
+689d 67e1041d store 2 ,mem_sdp_error_code 
+689e 202068a7 branch sdp_error_response 
+
+sdp_invalid_pdu_size:
+689f 58000400 setarg 0x0400 
+68a0 67e1041d store 2 ,mem_sdp_error_code 
+68a1 202068a7 branch sdp_error_response 
+
+sdp_insufficient_resource:
+68a2 58000600 setarg 0x0600 
+68a3 67e1041d store 2 ,mem_sdp_error_code 
+68a4 202068a7 branch sdp_error_response 
+
+sdp_invalid_request_syntax:
+68a5 58000300 setarg 0x0300 
+68a6 67e1041d store 2 ,mem_sdp_error_code 
+
+sdp_error_response:
+68a7 204052fe call l2cap_get_sdp_tx_payload 
+68a8 e7e08005 istore 1 ,contw 
+68a9 6fe103ef fetch 2 ,mem_sdp_transactionid 
+68aa e7e10005 istore 2 ,contw 
+68ab 58000200 setarg 0x0200 
+68ac e7e10005 istore 2 ,contw 
+68ad 6fe1041d fetch 2 ,mem_sdp_error_code 
+68ae e7e10005 istore 2 ,contw 
+68af 70032607 jam 7 ,mem_sdp_tx_pkt_length 
+68b0 20600000 rtn 
+
+ask_serviceclassid:
+68b1 da400000 arg 0 ,regb 
+68b2 18000400 force 0 ,temp 
+68b3 d8a003e4 arg mem_sdp_uuid_search_ptr ,contw 
+68b4 20406909 call dataelementtype6 
+68b5 2022e907 branch asksrv_error ,zero 
+
+classidloop:
+68b6 1a40a401 increase 1 ,regb 
+68b7 efe08006 ifetch 1 ,contr 
+68b8 1a20a3ff increase -1 ,rega 
+68b9 196097ff increase -1 ,timeup 
+68ba 2fe1f018 compare 0x18 ,pdata ,0xf8 
+68bb 2420e907 nbranch asksrv_error ,true 
+68bc 2fe00e04 compare 0x04 ,pdata ,0x07 
+68bd 2420e8d4 nbranch cmp032 ,true 
+68be 18000401 force 1 ,temp 
+
+skip2bytes:
+68bf efe08006 ifetch 1 ,contr 
+68c0 1a20a3ff increase -1 ,rega 
+68c1 196097ff increase -1 ,timeup 
+68c2 c08068c8 bne 0x00 ,frstbwrong 
+68c3 efe08006 ifetch 1 ,contr 
+68c4 1a20a3ff increase -1 ,rega 
+68c5 196097ff increase -1 ,timeup 
+68c6 c00068d9 beq 0x00 ,cmpuuid 
+68c7 202068cb branch scndbwrong 
+
+frstbwrong:
+68c8 18c08c01 increase 1 ,contr 
+68c9 1a20a3ff increase -1 ,rega 
+68ca 196097ff increase -1 ,timeup 
+
+scndbwrong:
+68cb 18c08c02 increase 2 ,contr 
+68cc 1a20a3fe increase -2 ,rega 
+68cd 196097fe increase -2 ,timeup 
+68ce 2841fe00 compare 0x00 ,temp ,0xff 
+68cf 2020e901 branch loopornot ,true 
+68d0 18c08c0c increase 12 ,contr 
+68d1 1a20a3f4 increase -12 ,rega 
+68d2 196097f4 increase -12 ,timeup 
+68d3 20206901 branch loopornot 
+
+cmp032:
+68d4 2fe00e02 compare 0x02 ,pdata ,0x07 
+68d5 2420e8d7 nbranch cmp016 ,true 
+68d6 202068bf branch skip2bytes 
+
+cmp016:
+68d7 2fe00e01 compare 0x01 ,pdata ,0x07 
+68d8 2420e907 nbranch asksrv_error ,true 
+
+cmpuuid:
+68d9 1a20a3fe increase -2 ,rega 
+68da 196097fe increase -2 ,timeup 
+68db efe10006 ifetch 2 ,contr 
+68dc 1a467c04 sub regb ,4 ,null 
+68dd 2022e8df branch uuidsize ,zero 
+68de e7e10005 istore 2 ,contw 
+
+uuidsize:
+68df 2841fe00 compare 0x00 ,temp ,0xff 
+68e0 2020e901 branch loopornot ,true 
+68e1 18c20400 copy contr ,temp 
+68e2 efe08006 ifetch 1 ,contr 
+68e3 c08068fa bne 0x00 ,wrong12b 
+68e4 efe08006 ifetch 1 ,contr 
+68e5 c08068fa bne 0x00 ,wrong12b 
+68e6 efe08006 ifetch 1 ,contr 
+68e7 c08868fa bne 0x10 ,wrong12b 
+68e8 efe08006 ifetch 1 ,contr 
+68e9 c08068fa bne 0x00 ,wrong12b 
+68ea efe08006 ifetch 1 ,contr 
+68eb c0c068fa bne 0x80 ,wrong12b 
+68ec efe08006 ifetch 1 ,contr 
+68ed c08068fa bne 0x00 ,wrong12b 
+68ee efe08006 ifetch 1 ,contr 
+68ef c08068fa bne 0x00 ,wrong12b 
+68f0 efe08006 ifetch 1 ,contr 
+68f1 c0c068fa bne 0x80 ,wrong12b 
+68f2 efe08006 ifetch 1 ,contr 
+68f3 c0afe8fa bne 0x5f ,wrong12b 
+68f4 efe08006 ifetch 1 ,contr 
+68f5 c0cde8fa bne 0x9b ,wrong12b 
+68f6 efe08006 ifetch 1 ,contr 
+68f7 c09a68fa bne 0x34 ,wrong12b 
+68f8 efe08006 ifetch 1 ,contr 
+68f9 c07de8ff beq 0xfb ,chck12dn 
+
+wrong12b:
+68fa 18420c00 copy temp ,contr 
+
+wrong12b1:
+68fb 18c08c0c increase 12 ,contr 
+68fc 18000e00 force 0x00 ,queue 
+68fd 18000400 force 0x00 ,temp 
+68fe 202068ff branch chck12dn 
+
+chck12dn:
+68ff 196097f4 increase -12 ,timeup 
+6900 1a20a3f4 increase -12 ,rega 
+
+loopornot:
+6901 18000400 force 0x00 ,temp 
+6902 2a21fe00 compare 0x00 ,rega ,0xff 
+6903 2420e8b6 nbranch classidloop ,true 
+6904 18007e00 force 0 ,pdata 
+6905 e7e10005 istore 2 ,contw 
+6906 20600000 rtn 
+
+asksrv_error:
+6907 d84000ff arg 0xff ,temp 
+6908 20600000 rtn 
+
+dataelementtype6:
+6909 4733402c bpatchx patch2c_6 ,mem_patch2c 
+690a efe08006 ifetch 1 ,contr 
+690b 196097ff increase -1 ,timeup 
+690c 2fe1f030 compare 0x30 ,pdata ,0xf8 
+690d 2420e91f nbranch dsize_error ,true 
+690e 2fe00e07 compare 0x07 ,pdata ,0x07 
+690f 2020e918 branch dsize32 ,true 
+6910 2fe00e06 compare 0x06 ,pdata ,0x07 
+6911 2020e91a branch dsize16 ,true 
+6912 2fe00e05 compare 0x05 ,pdata ,0x07 
+6913 2420e91f nbranch dsize_error ,true 
+6914 efe08006 ifetch 1 ,contr 
+6915 1fe22200 copy pdata ,rega 
+6916 196097ff increase -1 ,timeup 
+6917 2020691d branch dsize 
+
+dsize32:
+6918 18c08c02 increase 2 ,contr 
+6919 196097fe increase -2 ,timeup 
+
+dsize16:
+691a efe10006 ifetch 2 ,contr 
+691b 1ff0a200 byteswap pdata ,rega 
+691c 196097fe increase -2 ,timeup 
+
+dsize:
+691d 18007e01 force 0x01 ,pdata 
+691e 20600000 rtn 
+
+dsize_error:
+691f 18007e00 force 0x00 ,pdata 
+6920 20600000 rtn 
+
+ss_empty_rsp:
+6921 58000003 setarg sdp_search_res 
+6922 67e083ee store 1 ,mem_sdp_pduid 
+6923 20206929 branch empty_response 
+
+sa_empty_rsp:
+6924 58000005 setarg sdp_attribute_res 
+6925 67e083ee store 1 ,mem_sdp_pduid 
+6926 20206929 branch empty_response 
+
+ssa_empty_rsp:
+6927 58000007 setarg sdp_searchattrib_res 
+6928 67e083ee store 1 ,mem_sdp_pduid 
+
+empty_response:
+6929 204052fe call l2cap_get_sdp_tx_payload 
+692a 6fe083ee fetch 1 ,mem_sdp_pduid 
+692b 1fe22400 copy pdata ,regb 
+692c e7e08005 istore 1 ,contw 
+692d 6fe103ef fetch 2 ,mem_sdp_transactionid 
+692e e7e10005 istore 2 ,contw 
+692f 58000500 setarg 0x0500 
+6930 e7e10005 istore 2 ,contw 
+6931 2a41fe05 compare sdp_attribute_res ,regb ,0xff 
+6932 2020e938 branch fullsearch ,true 
+6933 2a41fe07 compare sdp_searchattrib_res ,regb ,0xff 
+6934 2020e938 branch fullsearch ,true 
+6935 58000000 setarg 0x000000 
+6936 e7e28005 istore 5 ,contw 
+6937 2020693a branch outempty 
+
+fullsearch:
+6938 58350200 setarg 0x350200 
+6939 e7e28005 istore 5 ,contw 
+
+outempty:
+693a 7003260a jam 10 ,mem_sdp_tx_pkt_length 
+693b 20600000 rtn 
+
+sdp_data_len:
+693c 20407cfc call store_contw 
+693d 20407cff call store_contr 
+693e 20406943 call sdp_get_data 
+693f 20407cf6 call get_contw 
+6940 20407cf9 call get_contr 
+6941 18427e00 copy temp ,pdata 
+6942 20600000 rtn 
+
+sdp_get_data:
+6943 efe08006 ifetch 1 ,contr 
+6944 1fe17207 and pdata ,0x7 ,loopcnt 
+6945 1fe97e00 rshift3 pdata ,pdata 
+6946 c080694d bne 0 ,sdp_get_data_type_not0 
+
+sdp_get_data_type0:
+6947 18007e01 force 1 ,pdata 
+6948 18000401 force 1 ,temp 
+6949 20600000 rtn 
+
+sdp_get_data_type_not0_sizeindex01234:
+694a 20407cd6 call left_shift_n 
+694b 1fe08401 add pdata ,1 ,temp 
+694c 20600000 rtn 
+
+sdp_get_data_type_not0:
+694d 1f227e00 deposit loopcnt 
+694e 1fe67c04 sub pdata ,4 ,null 
+694f 2021694a branch sdp_get_data_type_not0_sizeindex01234 ,positive 
+6950 c002e954 beq 5 ,sdp_get_data_type_not0_sizeindex5 
+6951 c0036957 beq 6 ,sdp_get_data_type_not0_sizeindex6 
+6952 c003e95b beq 7 ,sdp_get_data_type_not0_sizeindex7 
+6953 20600000 rtn 
+
+sdp_get_data_type_not0_sizeindex5:
+6954 efe08006 ifetch 1 ,contr 
+6955 1fe08402 add pdata ,2 ,temp 
+6956 20600000 rtn 
+
+sdp_get_data_type_not0_sizeindex6:
+6957 efe10006 ifetch 2 ,contr 
+6958 1ff0fe00 byteswap pdata ,pdata 
+6959 1fe08403 add pdata ,3 ,temp 
+695a 20600000 rtn 
+
+sdp_get_data_type_not0_sizeindex7:
+695b efe10006 ifetch 2 ,contr 
+695c 1ff0fe00 byteswap pdata ,pdata 
+695d e8410006 ifetcht 2 ,contr 
+695e 18508400 byteswap temp ,temp 
+695f 18500400 lshift16 temp ,temp 
+6960 9840fe00 iadd temp ,pdata 
+6961 1fe08405 add pdata ,5 ,temp 
+6962 20600000 rtn 
+
+search_all_uuid:
+6963 4733c02c bpatchx patch2c_7 ,mem_patch2c 
+6964 18000e00 force 0 ,queue 
+6965 da400000 arg 0 ,regb 
+6966 d8a003fd arg mem_sdp_handle_list ,contw 
+
+search_all_uuid_llop:
+6967 efe1000b ifetch 2 ,timeup 
+6968 207a0000 rtn blank 
+6969 2040696e call search_uuid 
+696a 18e27e00 copy queue ,pdata 
+696b c1038000 rtneq sdp_max_handle_number 
+696c 19609602 increase 2 ,timeup 
+696d 20206967 branch search_all_uuid_llop 
+
+search_uuid:
+696e 98002600 iforce regc 
+696f 6fe1465f fetch 2 ,mem_ui_uuid_table 
+6970 98000c00 iforce contr 
+
+search_uuid_next:
+6971 18e27e00 copy queue ,pdata 
+6972 c1038000 rtneq sdp_max_handle_number 
+6973 78547c00 disable user 
+6974 efe08006 ifetch 1 ,contr 
+6975 207a0000 rtn blank 
+6976 98007200 iforce loopcnt 
+
+search_uuid_loop:
+6977 efe10006 ifetch 2 ,contr 
+6978 9a667c00 isub regc ,null 
+6979 2422e97b nbranch search_uuid_not_found ,zero 
+697a 78347c00 enable user 
+
+search_uuid_not_found:
+697b c2006977 loop search_uuid_loop 
+697c e8420006 ifetcht 4 ,contr 
+697d 18c22200 copy contr ,rega 
+697e 2434698e nbranch search_uuid_nomatch ,user 
+697f d8c003fd arg mem_sdp_handle_list ,contr 
+6980 df200007 arg sdp_max_handle_number ,loopcnt 
+
+search_uuid_check_same_handle:
+6981 efe20006 ifetch 4 ,contr 
+6982 203a6987 branch search_uuid_store_handle ,blank 
+6983 98467c00 isub temp ,null 
+6984 2022e98e branch search_uuid_nomatch ,zero 
+6985 c2006981 loop search_uuid_check_same_handle 
+6986 20600000 rtn 
+
+search_uuid_store_handle:
+6987 e0420005 istoret 4 ,contw 
+6988 18e08e01 increase 1 ,queue 
+6989 1a220c00 copy rega ,contr 
+698a 2040693c call sdp_data_len 
+698b 9a40a400 iadd regb ,regb 
+698c 98c08c00 iadd contr ,contr 
+698d 20206971 branch search_uuid_next 
+
+search_uuid_nomatch:
+698e 1a220c00 copy rega ,contr 
+698f 20406943 call sdp_get_data 
+6990 98c08c00 iadd contr ,contr 
+6991 20206971 branch search_uuid_next 
+
+search_handle:
+6992 4734402d bpatchx patch2d_0 ,mem_patch2d 
+6993 6fe1465f fetch 2 ,mem_ui_uuid_table 
+6994 98000c00 iforce contr 
+
+search_handle_loop:
+6995 efe08006 ifetch 1 ,contr 
+6996 203a7e5e branch disable_zero ,blank 
+6997 1fe3fe00 lshift pdata ,pdata 
+6998 98c08c00 iadd contr ,contr 
+6999 efe20006 ifetch 4 ,contr 
+699a 98467c00 isub temp ,null 
+699b 20628000 rtn zero 
+699c 18a27e00 deposit contw 
+699d 67e1097d store 2 ,mem_contw 
+699e 604c0964 storet 8 ,mem_temp 
+699f 20406943 call sdp_get_data 
+69a0 98c08c00 iadd contr ,contr 
+69a1 18c27e00 copy contr ,pdata 
+69a2 6849097d fetcht 2 ,mem_contw 
+69a3 18420a00 copy temp ,contw 
+69a4 684c0964 fetcht 8 ,mem_temp 
+69a5 1fe20c00 copy pdata ,contr 
+69a6 20206995 branch search_handle_loop 
+
+search_attrib:
+69a7 4734c02d bpatchx patch2d_1 ,mem_patch2d 
+69a8 6fe1465f fetch 2 ,mem_ui_uuid_table 
+69a9 98000c00 iforce contr 
+
+search_attrib_next:
+69aa efe08006 ifetch 1 ,contr 
+69ab 203a69c5 branch search_attrib_end ,blank 
+69ac 98007200 iforce loopcnt 
+
+search_attrib_loop:
+69ad efe10006 ifetch 2 ,contr 
+69ae 9a667c00 isub regc ,null 
+69af 2022e9b5 branch search_attrib_found_uuid ,zero 
+69b0 c20069ad loop search_attrib_loop 
+69b1 18c08c04 increase 4 ,contr 
+69b2 20406943 call sdp_get_data 
+69b3 98c08c00 iadd contr ,contr 
+69b4 202069aa branch search_attrib_next 
+
+search_attrib_found_uuid:
+69b5 1f20f3ff increase -1 ,loopcnt 
+69b6 1f23fe00 lshift loopcnt ,pdata 
+69b7 98c08c00 iadd contr ,contr 
+69b8 18c08c04 increase 4 ,contr 
+69b9 20406943 call sdp_get_data 
+69ba 98c09600 iadd contr ,timeup 
+
+search_attrib_loop_attribs:
+69bb 18c08c01 increase 1 ,contr 
+69bc efe10006 ifetch 2 ,contr 
+69bd 9a467c00 isub regb ,null 
+69be 2022fe6a branch disable_blank ,zero 
+69bf 2040693c call sdp_data_len 
+69c0 98c08c00 iadd contr ,contr 
+69c1 19627e00 deposit timeup 
+69c2 98c67c00 isub contr ,null 
+69c3 2022e9c5 branch search_attrib_end ,zero 
+69c4 202069bb branch search_attrib_loop_attribs 
+
+search_attrib_end:
+69c5 18000c00 force 0 ,contr 
+69c6 18007e00 force 0 ,pdata 
+69c7 20600000 rtn 
+
+search_handle_attrib:
+69c8 4735402d bpatchx patch2d_2 ,mem_patch2d 
+69c9 6fe1465f fetch 2 ,mem_ui_uuid_table 
+69ca 98000c00 iforce contr 
+
+search_handle_attrib_next:
+69cb efe08006 ifetch 1 ,contr 
+69cc 203a69e1 branch search_handle_attrib_end ,blank 
+69cd 1fe3fe00 lshift pdata ,pdata 
+69ce 98c08c00 iadd contr ,contr 
+69cf efe20006 ifetch 4 ,contr 
+69d0 98467c00 isub temp ,null 
+69d1 2022e9d5 branch search_handl_attrib_found_handle ,zero 
+69d2 20406943 call sdp_get_data 
+69d3 98c08c00 iadd contr ,contr 
+69d4 202069cb branch search_handle_attrib_next 
+
+search_handl_attrib_found_handle:
+69d5 20406943 call sdp_get_data 
+69d6 98c09600 iadd contr ,timeup 
+
+search_handle_attrib_loop_attribs:
+69d7 18c08c01 increase 1 ,contr 
+69d8 efe10006 ifetch 2 ,contr 
+69d9 9a467c00 isub regb ,null 
+69da 20628000 rtn zero 
+69db 2040693c call sdp_data_len 
+69dc 98c08c00 iadd contr ,contr 
+69dd 19627e00 deposit timeup 
+69de 98c67c00 isub contr ,null 
+69df 2022e9e1 branch search_handle_attrib_end ,zero 
+69e0 202069d7 branch search_handle_attrib_loop_attribs 
+
+search_handle_attrib_end:
+69e1 18000c00 force 0 ,contr 
+69e2 20600000 rtn 
+
+search_rfcomm_cn:
+69e3 da400400 arg 0x0400 ,regb 
+69e4 204069d5 call search_handl_attrib_found_handle 
+69e5 da400300 arg 0x0300 ,regb 
+69e6 204069ee call search_uuid_in_data 
+69e7 24740000 nrtn user 
+69e8 1a267c03 sub rega ,3 ,null 
+69e9 20217e64 branch disable_user ,positive 
+69ea efe08006 ifetch 1 ,contr 
+69eb c0847e64 bne 0x08 ,disable_user 
+69ec efe08006 ifetch 1 ,contr 
+69ed 20600000 rtn 
+
+search_uuid_in_data:
+69ee 4735c02d bpatchx patch2d_3 ,mem_patch2d 
+69ef 20406943 call sdp_get_data 
+69f0 1fe22200 copy pdata ,rega 
+
+search_uuid_in_data_loop:
+69f1 efe08006 ifetch 1 ,contr 
+69f2 1fe17207 and pdata ,0x7 ,loopcnt 
+69f3 1fe97e00 rshift3 pdata ,pdata 
+69f4 1fe67c03 sub pdata ,3 ,null 
+69f5 2022ea0a branch search_uuid_in_data_found_uuid ,zero 
+69f6 1f227e00 copy loopcnt ,pdata 
+69f7 c002ea01 beq 5 ,search_uuid_in_data_found_element_index5 
+69f8 c0036a04 beq 6 ,search_uuid_in_data_found_element_index6 
+69f9 c003ea07 beq 7 ,search_uuid_in_data_found_element_index7 
+69fa 18c08dff increase -1 ,contr 
+69fb 20406943 call sdp_get_data 
+69fc 98c08c00 iadd contr ,contr 
+69fd 1a227e00 copy rega ,pdata 
+69fe 98462200 isub temp ,rega 
+69ff 2022fe64 branch disable_user ,zero 
+6a00 202069f1 branch search_uuid_in_data_loop 
+
+search_uuid_in_data_found_element_index5:
+6a01 1a20a3fe increase -2 ,rega 
+6a02 18c08c01 increase 1 ,contr 
+6a03 202069f1 branch search_uuid_in_data_loop 
+
+search_uuid_in_data_found_element_index6:
+6a04 1a20a3fd increase -3 ,rega 
+6a05 18c08c02 increase 2 ,contr 
+6a06 202069f1 branch search_uuid_in_data_loop 
+
+search_uuid_in_data_found_element_index7:
+6a07 1a20a3fb increase -5 ,rega 
+6a08 18c08c04 increase 4 ,contr 
+6a09 202069f1 branch search_uuid_in_data_loop 
+
+search_uuid_in_data_found_uuid:
+6a0a 1a20a3ff increase -1 ,rega 
+6a0b 1f227e00 copy loopcnt ,pdata 
+6a0c c000ea13 beq 1 ,search_uuid_in_data_type_uuid_16 
+6a0d c0016a11 beq 2 ,search_uuid_in_data_type_uuid_32 
+6a0e c0026a10 beq 4 ,search_uuid_in_data_type_uuid_128 
+6a0f 20207e64 branch disable_user 
+
+search_uuid_in_data_type_uuid_128:
+6a10 1a20a3f4 increase -12 ,rega 
+
+search_uuid_in_data_type_uuid_32:
+6a11 efe10006 ifetch 2 ,contr 
+6a12 1a20a3fe increase -2 ,rega 
+
+search_uuid_in_data_type_uuid_16:
+6a13 efe10006 ifetch 2 ,contr 
+6a14 9a467c00 isub regb ,null 
+6a15 2022fe62 branch enable_user ,zero 
+6a16 1a20a3fe increase -2 ,rega 
+6a17 2022fe64 branch disable_user ,zero 
+6a18 202069f1 branch search_uuid_in_data_loop 
+
+sdp_send_spp_request:
+6a19 204052fe call l2cap_get_sdp_tx_payload 
+6a1a 1fe20a00 copy pdata ,contw 
+6a1b 58000006 setarg 6 
+6a1c e7e08005 istore 1 ,contw 
+6a1d 5800006e setarg sdp_tid_spp 
+6a1e e7e10005 istore 2 ,contw 
+6a1f 58000f00 setarg 0x0f00 
+6a20 e7e10005 istore 2 ,contw 
+6a21 581a0535 setarg 0x1a0535 
+6a22 e7e18005 istore 3 ,contw 
+6a23 58000111 setarg 0x0111 
+6a24 1ff07e00 lshift16 pdata ,pdata 
+6a25 e7e20005 istore 4 ,contw 
+6a26 58002600 setarg 0x2600 
+6a27 e7e10005 istore 2 ,contw 
+6a28 58000335 setarg 0x0335 
+6a29 e7e10005 istore 2 ,contw 
+6a2a 58000009 setarg 0x0009 
+6a2b e7e10005 istore 2 ,contw 
+6a2c 58000004 setarg 0x0004 
+6a2d e7e10005 istore 2 ,contw 
+6a2e 70032614 jam 0x14 ,mem_sdp_tx_pkt_length 
+6a2f 20600000 rtn 
+
+function_g2:
+6a30 4736402d bpatchx patch2d_4 ,mem_patch2d 
+6a31 7004a750 jam 80 ,mem_aes_cmac_data_length 
+6a32 d8a004a8 arg memdat ,contw 
+6a33 d8c04335 arg mem_le_srand ,contr 
+6a34 20407d1a call memcpy16 
+6a35 d8c046db arg mem_sc_pubkey_local_x_256 ,contr 
+6a36 20407d18 call memcpy32 
+6a37 d8c00880 arg mem_le_pubkey_remote_x_256 ,contr 
+6a38 20407d18 call memcpy32 
+6a39 20406aeb call inverse_memdat 
+6a3a d8c00277 arg mem_le_mrand ,contr 
+6a3b 20406ae6 call store_inverse_k 
+6a3c 20406ab1 call function_aes_cmac 
+6a3d d8a009be arg mem_aes_cmac_temp ,contw 
+6a3e 20406ae2 call load_inverse_result 
+6a3f 580f4240 setarg 1000000 
+6a40 1fe22200 copy pdata ,rega 
+6a41 6fe209be fetch 4 ,mem_aes_cmac_temp 
+6a42 9a26fc00 idiv rega 
+6a43 20407dfd call wait_div_end 
+6a44 18077e00 remainder pdata 
+6a45 67e2087c store 4 ,mem_gkey 
+6a46 20600000 rtn 
+
+function_f6_eb:
+6a47 7004a741 jam 65 ,mem_aes_cmac_data_length 
+6a48 d8a004a8 arg memdat ,contw 
+6a49 20406a96 call store_addr_common_a 
+6a4a 20406a91 call store_addr_common_b 
+6a4b 6fe1c34f fetch 3 ,mem_le_pres + 1 
+6a4c e7e18005 istore 3 ,contw 
+6a4d 20406a57 call get_r 
+6a4e d8c00277 arg mem_le_mrand ,contr 
+6a4f 20407d1a call memcpy16 
+6a50 d8c04335 arg mem_le_srand ,contr 
+6a51 20407d1a call memcpy16 
+6a52 20406aeb call inverse_memdat 
+6a53 d8c009de arg mem_le_mackey ,contr 
+6a54 d8a0098e arg mem_aes_cmac_k ,contw 
+6a55 20407d1a call memcpy16 
+6a56 20206ab1 branch function_aes_cmac 
+
+get_r:
+6a57 6fe2439c fetch 4 ,mem_le_tk 
+6a58 e7e20005 istore 4 ,contw 
+6a59 20407d2d call memset0_4 
+6a5a 20207d2a branch memset0_8 
+
+function_f6_ea:
+6a5b 4736c02d bpatchx patch2d_5 ,mem_patch2d 
+6a5c 7004a741 jam 65 ,mem_aes_cmac_data_length 
+6a5d d8a004a8 arg memdat ,contw 
+6a5e 20406a91 call store_addr_common_b 
+6a5f 20406a96 call store_addr_common_a 
+6a60 6fe1c348 fetch 3 ,mem_le_preq + 1 
+6a61 e7e18005 istore 3 ,contw 
+6a62 20406a57 call get_r 
+6a63 d8c04335 arg mem_le_srand ,contr 
+6a64 20407d1a call memcpy16 
+6a65 d8c00277 arg mem_le_mrand ,contr 
+6a66 20407d1a call memcpy16 
+6a67 20406aeb call inverse_memdat 
+6a68 d8c009de arg mem_le_mackey ,contr 
+6a69 d8a0098e arg mem_aes_cmac_k ,contw 
+6a6a 20407d1a call memcpy16 
+6a6b 20406ab1 call function_aes_cmac 
+6a6c d8a009be arg mem_aes_cmac_temp ,contw 
+6a6d 20206ae2 branch load_inverse_result 
+
+function_f5:
+6a6e 7004a720 jam 32 ,mem_aes_cmac_data_length 
+6a6f d8c008c0 arg mem_le_dhkey_256 ,contr 
+6a70 d8a004a8 arg memdat ,contw 
+6a71 20407d18 call memcpy32 
+6a72 20406aeb call inverse_memdat 
+6a73 d8c00860 arg mem_le_slat ,contr 
+6a74 20406ae6 call store_inverse_k 
+6a75 20406ab1 call function_aes_cmac 
+6a76 d8a0098e arg mem_aes_cmac_k ,contw 
+6a77 20406dfe call store_aes_result 
+6a78 d8400001 arg 1 ,temp 
+6a79 20406a80 call function_f5_common 
+6a7a d8a04314 arg mem_le_ltk ,contw 
+6a7b 20406ae2 call load_inverse_result 
+6a7c d8400000 arg 0 ,temp 
+6a7d 20406a80 call function_f5_common 
+6a7e d8a009de arg mem_le_mackey ,contw 
+6a7f 20206dfe branch store_aes_result 
+
+function_f5_common:
+6a80 4737402d bpatchx patch2d_6 ,mem_patch2d 
+6a81 7004a735 jam 53 ,mem_aes_cmac_data_length 
+6a82 58000100 setarg 0x100 
+6a83 67e104a8 store 2 ,memdat 
+6a84 20406a91 call store_addr_common_b 
+6a85 20406a96 call store_addr_common_a 
+6a86 d8c04335 arg mem_le_srand ,contr 
+6a87 20407d1a call memcpy16 
+6a88 d8c00277 arg mem_le_mrand ,contr 
+6a89 20407d1a call memcpy16 
+6a8a 58006c65 setarg 0x6c65 
+6a8b e7e10005 istore 2 ,contw 
+6a8c 58006274 setarg 0x6274 
+6a8d e7e10005 istore 2 ,contw 
+6a8e e0408005 istoret 1 ,contw 
+6a8f 20406aeb call inverse_memdat 
+6a90 20206ab1 branch function_aes_cmac 
+
+store_addr_common_b:
+6a91 6fe34378 fetch 6 ,mem_le_lap 
+6a92 e7e30005 istore 6 ,contw 
+6a93 6fe0c36f fetch 1 ,mem_le_conn_own_addr_type 
+6a94 e7e08005 istore 1 ,contw 
+6a95 20600000 rtn 
+
+store_addr_common_a:
+6a96 6fe30297 fetch 6 ,mem_le_plap 
+6a97 e7e30005 istore 6 ,contw 
+6a98 6fe0c368 fetch 1 ,mem_le_conn_peer_addr_type 
+6a99 e7e08005 istore 1 ,contw 
+6a9a 20600000 rtn 
+
+function_f4_ca:
+6a9b 7004a741 jam 65 ,mem_aes_cmac_data_length 
+6a9c 6fe0c76d fetch 1 ,mem_passkey_1bit 
+6a9d 67e084a8 store 1 ,memdat 
+6a9e d8c046db arg mem_sc_pubkey_local_x_256 ,contr 
+6a9f 20407d18 call memcpy32 
+6aa0 d8c00880 arg mem_le_pubkey_remote_x_256 ,contr 
+6aa1 20407d18 call memcpy32 
+6aa2 20406aeb call inverse_memdat 
+6aa3 d8c00277 arg mem_le_mrand ,contr 
+6aa4 20406ae6 call store_inverse_k 
+6aa5 20206ab1 branch function_aes_cmac 
+
+function_f4_cb:
+6aa6 7004a741 jam 65 ,mem_aes_cmac_data_length 
+6aa7 6fe0c76d fetch 1 ,mem_passkey_1bit 
+6aa8 67e084a8 store 1 ,memdat 
+6aa9 d8c00880 arg mem_le_pubkey_remote_x_256 ,contr 
+6aaa 20407d18 call memcpy32 
+6aab d8c046db arg mem_sc_pubkey_local_x_256 ,contr 
+6aac 20407d18 call memcpy32 
+6aad 20406aeb call inverse_memdat 
+6aae d8c04335 arg mem_le_srand ,contr 
+6aaf 20406ae6 call store_inverse_k 
+6ab0 20206ab1 branch function_aes_cmac 
+
+function_aes_cmac:
+6ab1 4737c02d bpatchx patch2d_7 ,mem_patch2d 
+6ab2 20406b00 call function_aes_cmac_generate_subkey 
+6ab3 6fe084a7 fetch 1 ,mem_aes_cmac_data_length 
+6ab4 1fe20400 copy pdata ,temp 
+
+function_ceil16:
+6ab5 1fe0fe0f increase 15 ,pdata 
+6ab6 1ff1fe00 rshift4 pdata ,pdata 
+6ab7 1fe22400 copy pdata ,regb 
+6ab8 203a6ac3 branch function_aes_cmac_set_flag_0_balnk ,blank 
+6ab9 18417e0f and temp ,0x0f ,pdata 
+6aba 243a6ac6 nbranch function_aes_cmac_set_flag_0 ,blank 
+6abb da60099e arg mem_aes_cmac_k1 ,regc 
+6abc dfe004a8 arg memdat ,pdata 
+6abd 1fe0fff0 increase -16 ,pdata 
+6abe 9840a200 iadd temp ,rega 
+6abf d8a009ce arg mem_aes_cmac_m_last ,contw 
+6ac0 df200004 arg 4 ,loopcnt 
+6ac1 20407d3d call xor_loop 
+6ac2 20206ad1 branch function_aes_cmac_aes 
+
+function_aes_cmac_set_flag_0_balnk:
+6ac3 da400001 arg 1 ,regb 
+6ac4 da200000 arg 0 ,rega 
+6ac5 20206ac7 branch function_aes_cmac_set_flag_0_common 
+
+function_aes_cmac_set_flag_0:
+6ac6 1841220f and temp ,0x0f ,rega 
+
+function_aes_cmac_set_flag_0_common:
+6ac7 dfe004a8 arg memdat ,pdata 
+6ac8 9840fe00 iadd temp ,pdata 
+6ac9 9a260c00 isub rega ,contr 
+6aca d8a009be arg mem_aes_cmac_temp ,contw 
+6acb 20406b26 call function_aes_cmac_padding 
+6acc da6009ae arg mem_aes_cmac_k2 ,regc 
+6acd da2009be arg mem_aes_cmac_temp ,rega 
+6ace d8a009ce arg mem_aes_cmac_m_last ,contw 
+6acf df200004 arg 4 ,loopcnt 
+6ad0 20407d3d call xor_loop 
+
+function_aes_cmac_aes:
+6ad1 20406df8 call aes_clear_data 
+6ad2 20406d8f call aes_init 
+6ad3 d8c004a8 arg memdat ,contr 
+
+function_aes_cmac_aes_loop:
+6ad4 1a40a5ff increase -1 ,regb 
+6ad5 1a427e00 deposit regb 
+6ad6 203a6ada branch function_aes_cmac_aes_loop_end ,blank 
+6ad7 20406ded call load_data128 
+6ad8 20406d89 call do_aes_cbc 
+6ad9 20206ad4 branch function_aes_cmac_aes_loop 
+
+function_aes_cmac_aes_loop_end:
+6ada d8a009be arg mem_aes_cmac_temp ,contw 
+6adb 20406dfe call store_aes_result 
+6adc d8c009ce arg mem_aes_cmac_m_last ,contr 
+6add 20406ded call load_data128 
+6ade 20406d8f call aes_init 
+6adf d8c009be arg mem_aes_cmac_temp ,contr 
+6ae0 20406ded call load_data128 
+6ae1 20206d89 branch do_aes_cbc 
+
+load_inverse_result:
+6ae2 18a22200 copy contw ,rega 
+6ae3 20406dfe call store_aes_result 
+6ae4 df200010 arg 16 ,loopcnt 
+6ae5 20207d45 branch inverse_data 
+
+store_inverse_k:
+6ae6 d8a0098e arg mem_aes_cmac_k ,contw 
+6ae7 20407d1a call memcpy16 
+
+inverse_k:
+6ae8 df200010 arg 16 ,loopcnt 
+6ae9 da20098e arg mem_aes_cmac_k ,rega 
+6aea 20207d45 branch inverse_data 
+
+inverse_memdat:
+6aeb 6fe084a7 fetch 1 ,mem_aes_cmac_data_length 
+6aec 1fe27200 copy pdata ,loopcnt 
+6aed da2004a8 arg memdat ,rega 
+6aee 20207d45 branch inverse_data 
+
+bn_lshift_0_inverse:
+6aef efe08011 ifetch 1 ,rega 
+6af0 1fe3fe00 lshift pdata ,pdata 
+6af1 2a6ffe00 isolate1 0 ,regc 
+6af2 7920fe00 setflag true ,0 ,pdata 
+6af3 2feffe08 isolate1 8 ,pdata 
+6af4 7920a600 setflag true ,0 ,regc 
+6af5 e7e08011 istore 1 ,rega 
+6af6 1a20a3ff increase -1 ,rega 
+6af7 c2006aef loop bn_lshift_0_inverse 
+6af8 20600000 rtn 
+
+function_aes_cmac_k1_inverse:
+6af9 da20099e arg mem_aes_cmac_k1 ,rega 
+
+function_aes_cmac_inverse_common:
+6afa 1a20a20f increase 15 ,rega 
+6afb 18007210 force 16 ,loopcnt 
+6afc 18002600 force 0 ,regc 
+6afd 20206aef branch bn_lshift_0_inverse 
+
+function_aes_cmac_k2_inverse:
+6afe da2009ae arg mem_aes_cmac_k2 ,rega 
+6aff 20206afa branch function_aes_cmac_inverse_common 
+
+function_aes_cmac_generate_subkey:
+6b00 d8c0098e arg mem_aes_cmac_k ,contr 
+6b01 20406deb call load_key 
+6b02 18007008 force regidx_xor ,regext_index 
+6b03 20406df9 call aes_clear 
+6b04 20406df8 call aes_clear_data 
+6b05 20406d86 call do_aes_ocb 
+6b06 d8a0099e arg mem_aes_cmac_k1 ,contw 
+6b07 20406dfe call store_aes_result 
+
+function_aes_cmac_k1:
+6b08 4738402e bpatchx patch2e_0 ,mem_patch2e 
+6b09 6fe0899e fetch 1 ,mem_aes_cmac_k1 
+6b0a 2feffe07 isolate1 7 ,pdata 
+6b0b 2420eb11 nbranch function_aes_cmac_k1_0 ,true 
+6b0c 20406af9 call function_aes_cmac_k1_inverse 
+6b0d da60099e arg mem_aes_cmac_k1 ,regc 
+6b0e d8a0099e arg mem_aes_cmac_k1 ,contw 
+6b0f 20406b1b call function_aes_cmac_xor_rb 
+6b10 20206b12 branch function_aes_cmac_k2 
+
+function_aes_cmac_k1_0:
+6b11 20406af9 call function_aes_cmac_k1_inverse 
+
+function_aes_cmac_k2:
+6b12 d8c0099e arg mem_aes_cmac_k1 ,contr 
+6b13 d8a009ae arg mem_aes_cmac_k2 ,contw 
+6b14 20407d1a call memcpy16 
+6b15 6fe089ae fetch 1 ,mem_aes_cmac_k2 
+6b16 2feffe07 isolate1 7 ,pdata 
+6b17 2420eafe nbranch function_aes_cmac_k2_inverse ,true 
+6b18 20406afe call function_aes_cmac_k2_inverse 
+6b19 da6009ae arg mem_aes_cmac_k2 ,regc 
+6b1a d8a009ae arg mem_aes_cmac_k2 ,contw 
+
+function_aes_cmac_xor_rb:
+6b1b df200003 arg 3 ,loopcnt 
+
+function_aes_cmac_xor_rb_loop:
+6b1c d8400000 arg 0 ,temp 
+6b1d 20406b22 call function_aes_cmac_xor_loop_common 
+6b1e 1a60a604 increase 4 ,regc 
+6b1f c2006b1c loop function_aes_cmac_xor_rb_loop 
+6b20 d8408700 arg 0x8700 ,temp 
+6b21 18500400 lshift16 temp ,temp 
+
+function_aes_cmac_xor_loop_common:
+6b22 efe20013 ifetch 4 ,regc 
+6b23 9842fe00 ixor temp ,pdata 
+6b24 e7e20005 istore 4 ,contw 
+6b25 20600000 rtn 
+
+function_aes_cmac_padding:
+6b26 4738c02e bpatchx patch2e_1 ,mem_patch2e 
+6b27 df200010 arg 16 ,loopcnt 
+6b28 dfe00000 arg 0 ,pdata 
+
+function_aes_cmac_padding_loop:
+6b29 9a267c00 isub rega ,null 
+6b2a 2022eb31 branch function_aes_cmac_padding_beq_length ,zero 
+6b2b 20216b34 branch function_aes_cmac_padding_big_length ,positive 
+6b2c e8408006 ifetcht 1 ,contr 
+6b2d e0408005 istoret 1 ,contw 
+
+function_aes_cmac_padding_loop2:
+6b2e 1fe0fe01 increase 1 ,pdata 
+6b2f c2006b29 loop function_aes_cmac_padding_loop 
+6b30 20600000 rtn 
+
+function_aes_cmac_padding_beq_length:
+6b31 d8400080 arg 0x80 ,temp 
+
+function_aes_cmac_padding_common:
+6b32 e0408005 istoret 1 ,contw 
+6b33 20206b2e branch function_aes_cmac_padding_loop2 
+
+function_aes_cmac_padding_big_length:
+6b34 d8400000 arg 0 ,temp 
+6b35 20206b32 branch function_aes_cmac_padding_common 
+
+generate_kinit:
+6b36 20406b49 call function_e22 
+6b37 d8c00454 arg mem_input_store ,contr 
+6b38 d8a00444 arg mem_kinit ,contw 
+6b39 20207d1a branch memcpy16 
+
+function_e21:
+6b3a 78547c00 disable user 
+6b3b 20406c40 call function_expand 
+6b3c d8c00424 arg mem_random_number ,contr 
+6b3d d8a00464 arg mem_x ,contw 
+6b3e 1800720f force 15 ,loopcnt 
+6b3f 20407d6d call memcpy 
+6b40 efe08006 ifetch 1 ,contr 
+6b41 1fe2fe06 xor_into 6 ,pdata 
+6b42 e7e08005 istore 1 ,contw 
+6b43 58000474 setarg mem_y 
+6b44 67e10498 store 2 ,memp_ar_input 
+6b45 58000464 setarg mem_x 
+6b46 67e10496 store 2 ,memp_ar_key 
+6b47 79200012 set1 mark_ar2 ,mark 
+6b48 20206b89 branch function_ar 
+
+function_e22:
+6b49 6848c792 fetcht 1 ,mem_pin_length 
+6b4a 18002410 force 16 ,regb 
+6b4b 1840a606 add temp ,6 ,regc 
+6b4c 1a667c10 sub regc ,16 ,null 
+6b4d 20216b4f branch function_e22_pin_init ,positive 
+6b4e 18002610 force 16 ,regc 
+
+function_e22_pin_init:
+6b4f d8a00464 arg mem_x ,contw 
+
+function_e22_genx_pin:
+6b50 d8c04793 arg mem_pin ,contr 
+6b51 18427200 copy temp ,loopcnt 
+6b52 78547c00 disable user 
+
+function_e22_genx_loop:
+6b53 efe08006 ifetch 1 ,contr 
+6b54 e7e08005 istore 1 ,contw 
+6b55 1a40a5ff increase -1 ,regb 
+6b56 2022eb5d branch function_e22_genx_end ,zero 
+6b57 c2006b53 loop function_e22_genx_loop 
+6b58 20346b50 branch function_e22_genx_pin ,user 
+6b59 78347c00 enable user 
+6b5a 18007206 force 6 ,loopcnt 
+6b5b 1a220c00 copy rega ,contr 
+6b5c 20206b53 branch function_e22_genx_loop 
+
+function_e22_genx_end:
+6b5d d8c00424 arg mem_random_number ,contr 
+6b5e d8a00474 arg mem_y ,contw 
+6b5f 20407d1a call memcpy16 
+6b60 6fe08483 fetch 1 ,mem_y15 
+6b61 9a62fe00 ixor regc ,pdata 
+6b62 67e08483 store 1 ,mem_y15 
+6b63 58000474 setarg mem_y 
+6b64 67e10498 store 2 ,memp_ar_input 
+6b65 58000464 setarg mem_x 
+6b66 67e10496 store 2 ,memp_ar_key 
+6b67 79200012 set1 mark_ar2 ,mark 
+6b68 20206b89 branch function_ar 
+
+function_e1:
+6b69 78547c00 disable user 
+6b6a 20406c40 call function_expand 
+6b6b 20206b73 branch function_hash 
+
+function_e3:
+6b6c da200057 arg mem_aco ,rega 
+6b6d 78347c00 enable user 
+6b6e 20406c40 call function_expand 
+6b6f 20406b73 call function_hash 
+6b70 d8c00454 arg mem_input_store ,contr 
+6b71 d8a00063 arg mem_kc ,contw 
+6b72 20207d1a branch memcpy16 
+
+function_hash:
+6b73 58000424 setarg mem_random_number 
+6b74 67e10498 store 2 ,memp_ar_input 
+6b75 580041ce setarg mem_link_key 
+6b76 67e10496 store 2 ,memp_ar_key 
+6b77 793f8012 set0 mark_ar2 ,mark 
+6b78 20406b89 call function_ar 
+6b79 da200454 arg mem_input_store ,rega 
+6b7a da400424 arg mem_random_number ,regb 
+6b7b d8a00464 arg mem_x ,contw 
+6b7c 20406c33 call xor16 
+6b7d da200464 arg mem_x ,rega 
+6b7e da400474 arg mem_y ,regb 
+6b7f 1a420a00 copy regb ,contw 
+6b80 78347c00 enable user 
+6b81 20406c31 call add16 
+6b82 20406c4b call key_offset 
+6b83 58000474 setarg mem_y 
+6b84 67e10498 store 2 ,memp_ar_input 
+6b85 58000464 setarg mem_x 
+6b86 67e10496 store 2 ,memp_ar_key 
+6b87 79200012 set1 mark_ar2 ,mark 
+6b88 20206b89 branch function_ar 
+
+function_ar:
+6b89 70049a00 jam 0 ,mem_ar_hround 
+6b8a 6fe10496 fetch 2 ,memp_ar_key 
+6b8b 98000c00 iforce contr 
+6b8c d8a00484 arg mem_key_store ,contw 
+6b8d 20407d1a call memcpy16 
+6b8e 6fe10498 fetch 2 ,memp_ar_input 
+6b8f 98000c00 iforce contr 
+6b90 d8a00454 arg mem_input_store ,contw 
+6b91 20407d1a call memcpy16 
+
+function_ar_loop:
+6b92 20406bb0 call key_scheduling 
+6b93 78547c00 disable user 
+6b94 c5896b9a bmark0 mark_ar2 ,function_ar_original 
+6b95 6fe0849a fetch 1 ,mem_ar_hround 
+6b96 c0826b9a bne 4 ,function_ar_original 
+6b97 6fe10498 fetch 2 ,memp_ar_input 
+6b98 98002400 iforce regb 
+6b99 20406be2 call xor_mod32_ar2 
+
+function_ar_original:
+6b9a 20406be1 call xor_mod32 
+6b9b 20406bf4 call el_boxes 
+6b9c 6fe0849a fetch 1 ,mem_ar_hround 
+6b9d 1fe0fe01 increase 1 ,pdata 
+6b9e 67e0849a store 1 ,mem_ar_hround 
+6b9f 20406bb0 call key_scheduling 
+6ba0 78347c00 enable user 
+6ba1 20406be1 call xor_mod32 
+6ba2 20406c03 call pht 
+6ba3 20406c12 call permute 
+6ba4 20406c03 call pht 
+6ba5 20406c12 call permute 
+6ba6 20406c03 call pht 
+6ba7 20406c12 call permute 
+6ba8 20406c03 call pht 
+6ba9 6fe0849a fetch 1 ,mem_ar_hround 
+6baa 1fe0fe01 increase 1 ,pdata 
+6bab 67e0849a store 1 ,mem_ar_hround 
+6bac c0886b92 bne 16 ,function_ar_loop 
+6bad 20406bb0 call key_scheduling 
+6bae 78547c00 disable user 
+6baf 20206be1 branch xor_mod32 
+
+key_scheduling:
+6bb0 6fe0849a fetch 1 ,mem_ar_hround 
+6bb1 d8c00484 arg mem_key_store ,contr 
+6bb2 203a6bd7 branch key_sched_zero ,blank 
+6bb3 98002400 iforce regb 
+6bb4 18007211 force 17 ,loopcnt 
+6bb5 18c20a00 copy contr ,contw 
+
+key_rotateloop:
+6bb6 efe08006 ifetch 1 ,contr 
+6bb7 1fe98400 lshift3 pdata ,temp 
+6bb8 1feb7e00 rshift2 pdata ,pdata 
+6bb9 1fe97e00 rshift3 pdata ,pdata 
+6bba 9841fe00 ior temp ,pdata 
+6bbb e7e08005 istore 1 ,contw 
+6bbc c2006bb6 loop key_rotateloop 
+6bbd 58000484 setarg mem_key_store 
+6bbe 9a408c00 iadd regb ,contr 
+6bbf 18007210 force 16 ,loopcnt 
+6bc0 d8a00434 arg mem_round_key ,contw 
+
+key_select_octet_loop:
+6bc1 efe08006 ifetch 1 ,contr 
+6bc2 e7e08005 istore 1 ,contw 
+6bc3 28c1fe95 compare mem_key_store_end ,contr ,0xff 
+6bc4 2420ebc6 nbranch key_select_octet_nwrap ,true 
+6bc5 18c08def increase -17 ,contr 
+
+key_select_octet_nwrap:
+6bc6 c2006bc1 loop key_select_octet_loop 
+6bc7 18002200 force 0 ,rega 
+6bc8 1a40a7ff add regb ,-1 ,regc 
+6bc9 1a6ba600 lshift2 regc ,regc 
+6bca 1a6ba600 lshift2 regc ,regc 
+6bcb 20406e20 call enable_authrom 
+6bcc 58009000 setarg mem_b_box 
+6bcd 9a60a600 iadd regc ,regc 
+6bce d8a00434 arg mem_round_key ,contw 
+6bcf 18007210 force 16 ,loopcnt 
+
+bias_round_key_loop:
+6bd0 e8408013 ifetcht 1 ,regc 
+6bd1 efe08005 ifetch 1 ,contw 
+6bd2 9840fe00 iadd temp ,pdata 
+6bd3 e7e08005 istore 1 ,contw 
+6bd4 1a60a601 increase 1 ,regc 
+6bd5 c2006bd0 loop bias_round_key_loop 
+6bd6 20206e24 branch disable_authrom 
+
+key_sched_zero:
+6bd7 18007210 force 16 ,loopcnt 
+6bd8 18000400 force 0 ,temp 
+
+create_byte_16_loop:
+6bd9 efe08006 ifetch 1 ,contr 
+6bda 98428400 ixor temp ,temp 
+6bdb c2006bd9 loop create_byte_16_loop 
+6bdc 18427e00 deposit temp 
+6bdd e7e08006 istore 1 ,contr 
+6bde d8c00484 arg mem_key_store ,contr 
+6bdf d8a00434 arg mem_round_key ,contw 
+6be0 20207d1a branch memcpy16 
+
+xor_mod32:
+6be1 da400434 arg mem_round_key ,regb 
+
+xor_mod32_ar2:
+6be2 18007210 force 16 ,loopcnt 
+6be3 da200454 arg mem_input_store ,rega 
+6be4 1a220a00 copy rega ,contw 
+
+xor_mod32_loop:
+6be5 e8408011 ifetcht 1 ,rega 
+6be6 efe08012 ifetch 1 ,regb 
+6be7 9842e000 ixor temp ,alarm 
+6be8 1f212603 and loopcnt ,3 ,regc 
+6be9 24346beb nbranch xor_mod32_invert ,user 
+6bea 1a62a603 xor_into 3 ,regc 
+
+xor_mod32_invert:
+6beb 1a662601 sub regc ,1 ,regc 
+6bec 20216bee branch xor_even ,positive 
+6bed 9840e000 iadd temp ,alarm 
+
+xor_even:
+6bee 1e027e00 deposit alarm 
+6bef e7e08005 istore 1 ,contw 
+6bf0 1a20a201 increase 1 ,rega 
+6bf1 1a40a401 increase 1 ,regb 
+6bf2 c2006be5 loop xor_mod32_loop 
+6bf3 20600000 rtn 
+
+el_boxes:
+6bf4 20406e20 call enable_authrom 
+6bf5 18007210 force 16 ,loopcnt 
+6bf6 da200454 arg mem_input_store ,rega 
+
+el_box_loop:
+6bf7 efe08011 ifetch 1 ,rega 
+6bf8 d8c09100 arg mem_e_box ,contr 
+6bf9 1f212603 and loopcnt ,3 ,regc 
+6bfa 1a667c01 sub regc ,1 ,null 
+6bfb 20216bfd branch e_boxes ,positive 
+6bfc d8c09200 arg mem_l_box ,contr 
+
+e_boxes:
+6bfd 98c08c00 iadd contr ,contr 
+6bfe efe08006 ifetch 1 ,contr 
+6bff e7e08011 istore 1 ,rega 
+6c00 1a20a201 increase 1 ,rega 
+6c01 c2006bf7 loop el_box_loop 
+6c02 20206e24 branch disable_authrom 
+
+pht:
+6c03 18007208 force 8 ,loopcnt 
+6c04 d8c00454 arg mem_input_store ,contr 
+6c05 18c20a00 copy contr ,contw 
+
+pht_loop:
+6c06 efe08006 ifetch 1 ,contr 
+6c07 98002200 iforce rega 
+6c08 efe08006 ifetch 1 ,contr 
+6c09 98002400 iforce regb 
+6c0a 1a23fe00 lshift rega ,pdata 
+6c0b 9a40fe00 iadd regb ,pdata 
+6c0c e7e08005 istore 1 ,contw 
+6c0d 1a227e00 deposit rega 
+6c0e 9a40fe00 iadd regb ,pdata 
+6c0f e7e08005 istore 1 ,contw 
+6c10 c2006c06 loop pht_loop 
+6c11 20600000 rtn 
+
+permute:
+6c12 588ae42c setarg 0x8ae42c 
+6c13 98000400 iforce temp 
+6c14 18007207 force 7 ,loopcnt 
+6c15 20406c21 call permute_exchange 
+6c16 580d751b setarg 0xd751b 
+6c17 98000400 iforce temp 
+6c18 18007205 force 5 ,loopcnt 
+6c19 20406c21 call permute_exchange 
+6c1a 6fe08463 fetch 1 ,mem_input_store + 15 
+6c1b 98002200 iforce rega 
+6c1c 6fe08457 fetch 1 ,mem_input_store + 3 
+6c1d 67e08463 store 1 ,mem_input_store + 15 
+6c1e 1a227e00 deposit rega 
+6c1f 67e08457 store 1 ,mem_input_store + 3 
+6c20 20600000 rtn 
+
+permute_exchange:
+6c21 1841240f and temp ,0xf ,regb 
+
+permute_loop:
+6c22 18417e0f and temp ,0xf ,pdata 
+6c23 d8a00454 arg mem_input_store ,contw 
+6c24 98a08a00 iadd contw ,contw 
+6c25 efe08005 ifetch 1 ,contw 
+6c26 98002600 iforce regc 
+6c27 1a227e00 deposit rega 
+6c28 e7e08005 istore 1 ,contw 
+6c29 1a622200 copy regc ,rega 
+6c2a 18518400 rshift4 temp ,temp 
+6c2b c2006c22 loop permute_loop 
+6c2c 58000454 setarg mem_input_store 
+6c2d 9a408a00 iadd regb ,contw 
+6c2e 1a227e00 deposit rega 
+6c2f e7e08005 istore 1 ,contw 
+6c30 20600000 rtn 
+
+add16:
+6c31 78347c00 enable user 
+6c32 20206c34 branch xor_add16 
+
+xor16:
+6c33 78547c00 disable user 
+
+xor_add16:
+6c34 18007210 force 16 ,loopcnt 
+
+xoradd_loop:
+6c35 e8408011 ifetcht 1 ,rega 
+6c36 efe08012 ifetch 1 ,regb 
+6c37 20346c3a branch xoradd_add ,user 
+6c38 9842fe00 ixor temp ,pdata 
+6c39 20206c3b branch xoradd_store 
+
+xoradd_add:
+6c3a 9840fe00 iadd temp ,pdata 
+
+xoradd_store:
+6c3b e7e08005 istore 1 ,contw 
+6c3c 1a20a201 increase 1 ,rega 
+6c3d 1a40a401 increase 1 ,regb 
+6c3e c2006c35 loop xoradd_loop 
+6c3f 20600000 rtn 
+
+function_expand:
+6c40 d8a00474 arg mem_y ,contw 
+6c41 efe30011 ifetch 6 ,rega 
+6c42 e7e30005 istore 6 ,contw 
+6c43 20346c46 branch expand_12 ,user 
+6c44 efe30011 ifetch 6 ,rega 
+6c45 20206c47 branch expand_cont 
+
+expand_12:
+6c46 efe30006 ifetch 6 ,contr 
+
+expand_cont:
+6c47 e7e30005 istore 6 ,contw 
+6c48 efe20011 ifetch 4 ,rega 
+6c49 e7e20005 istore 4 ,contw 
+6c4a 20600000 rtn 
+
+key_offset:
+6c4b d8c041ce arg mem_link_key ,contr 
+6c4c d8a00464 arg mem_x ,contw 
+6c4d d8400000 arg 0 ,temp 
+6c4e 588395a7 setarg 0x8395a7 
+6c4f 20406c6c call concatenate_temp24 
+6c50 58b3c1df setarg 0xb3c1df 
+6c51 20406c6c call concatenate_temp24 
+6c52 5800e5e9 setarg 0xe5e9 
+6c53 20406c6d call concatenate_temp16 
+6c54 18422800 copy temp ,regab 
+6c55 78547c00 disable user 
+6c56 20406c5a call key_addxor 
+6c57 1a820400 copy regab ,temp 
+6c58 78347c00 enable user 
+6c59 20206c5a branch key_addxor 
+
+key_addxor:
+6c5a 18007208 force 8 ,loopcnt 
+
+key_addxor_loop:
+6c5b efe08006 ifetch 1 ,contr 
+6c5c 2f200201 compare 1 ,loopcnt ,1 
+6c5d 20346c61 branch key_high ,user 
+6c5e 2020ec62 branch key_xor ,true 
+
+key_add:
+6c5f 9840fe00 iadd temp ,pdata 
+6c60 20206c63 branch key_store 
+
+key_high:
+6c61 2020ec5f branch key_add ,true 
+
+key_xor:
+6c62 9842fe00 ixor temp ,pdata 
+
+key_store:
+6c63 e7e08005 istore 1 ,contw 
+6c64 184c8400 rshift8 temp ,temp 
+6c65 c2006c5b loop key_addxor_loop 
+6c66 20600000 rtn 
+
+copy_aco:
+6c67 6fe30458 fetch 6 ,mem_input_store + 4 
+6c68 67e30057 store 6 ,mem_aco 
+6c69 efe30006 ifetch 6 ,contr 
+6c6a e7e30005 istore 6 ,contw 
+6c6b 20600000 rtn 
+
+concatenate_temp24:
+6c6c 184d0400 lshift8 temp ,temp 
+
+concatenate_temp16:
+6c6d 18500400 lshift16 temp ,temp 
+6c6e 98418400 ior temp ,temp 
+6c6f 20600000 rtn 
+
+loop1:
+6c70 20206c70 branch loop1 
+
+generate_stk:
+6c71 4739402e bpatchx patch2e_2 ,mem_patch2e 
+6c72 20406d92 call function_s1 
+6c73 d8a04314 arg mem_le_ltk ,contw 
+6c74 20206dfe branch store_aes_result 
+
+authenticate_rconfirm:
+6c75 d8a04335 arg mem_le_srand ,contw 
+6c76 2034ec78 branch authenticate_mconfirm ,master 
+6c77 d8a00277 arg mem_le_mrand ,contw 
+
+authenticate_mconfirm:
+6c78 18c22200 copy contr ,rega 
+6c79 20407d1a call memcpy16 
+6c7a 20406da7 call function_c1 
+6c7b d8c04325 arg mem_le_rconfirm ,contr 
+6c7c 20206e17 branch compare_res 
+
+generate_confirm:
+6c7d da200277 arg mem_le_mrand ,rega 
+6c7e 2034ec80 branch generate_mrand ,master 
+6c7f da204335 arg mem_le_srand ,rega 
+
+generate_mrand:
+6c80 1a220a00 copy rega ,contw 
+6c81 204059ec call generate_random 
+6c82 20206da7 branch function_c1 
+
+generate_sk:
+6c83 d8c04382 arg mem_le_skdm ,contr 
+6c84 20406ded call load_data128 
+6c85 d8c04314 arg mem_le_ltk ,contr 
+6c86 20406dee call load_regext 
+6c87 18006c38 force 0x38 ,aes_ctrl 
+6c88 18006c00 force 0x0 ,aes_ctrl 
+6c89 20406d84 call wait_aes 
+6c8a d8a002c7 arg mem_le_sk ,contw 
+6c8b 20206dfe branch store_aes_result 
+
+ccm_b0:
+6c8c 18007008 force regidx_xor ,regext_index 
+6c8d 18007e49 force 0x49 ,pdata 
+6c8e 20206c93 branch iv_common 
+
+first_block_counter:
+6c8f 18007e49 force 0x49 ,pdata 
+6c90 20206c92 branch first_block 
+
+first_block_data:
+6c91 18007e01 force 1 ,pdata 
+
+first_block:
+6c92 18007000 force regidx_data ,regext_index 
+
+iv_common:
+6c93 184d5e00 lshift8 temp ,regext 
+6c94 9de1de00 ior regext ,regext 
+6c95 1f00f001 increase 1 ,regext_index 
+6c96 184cde00 rshift8 temp ,regext 
+6c97 1df15e00 rshift16 regext ,regext 
+6c98 6fe146a9 fetch 2 ,mem_ccm_iv 
+6c99 1ff07e00 lshift16 pdata ,pdata 
+6c9a 9de1de00 ior regext ,regext 
+6c9b 1f00f001 increase 1 ,regext_index 
+6c9c ede20006 ifetchr regext ,4 ,contr 
+6c9d 1f00f001 increase 1 ,regext_index 
+6c9e efe10006 ifetch 2 ,contr 
+6c9f 1a30de00 byteswap rega ,regext 
+6ca0 1df05e00 lshift16 regext ,regext 
+6ca1 9de1de00 ior regext ,regext 
+6ca2 1f00f001 increase 1 ,regext_index 
+6ca3 20600000 rtn 
+
+generate_mic:
+6ca4 1a608c01 add regc ,1 ,contr 
+6ca5 efe08006 ifetch 1 ,contr 
+6ca6 98002200 iforce rega 
+6ca7 20406c8f call first_block_counter 
+6ca8 20406d86 call do_aes_ocb 
+6ca9 18007000 force regidx_data ,regext_index 
+6caa efe08013 ifetch 1 ,regc 
+6cab 1fe17e03 and_into 0x3 ,pdata 
+6cac 1ff05e00 lshift16 pdata ,regext 
+6cad 79205e08 set1 8 ,regext 
+6cae 20406df6 call clear_hidata 
+6caf 20406d89 call do_aes_cbc 
+6cb0 1a227200 copy rega ,loopcnt 
+6cb1 1a608c02 add regc ,2 ,contr 
+6cb2 20406dd5 call padding_data 
+
+generate_mic_loop:
+6cb3 20406ddf call aes_load_data 
+6cb4 20406d89 call do_aes_cbc 
+6cb5 1f227e00 deposit loopcnt 
+6cb6 203a6cb8 branch generate_mic_end ,blank 
+6cb7 20206cb3 branch generate_mic_loop 
+
+generate_mic_end:
+6cb8 1800700c force regidx_result ,regext_index 
+6cb9 1de27e00 deposit regext 
+6cba 67e2026f store 4 ,mem_le_mic 
+6cbb 20600000 rtn 
+
+aes_crypt_data:
+6cbc 1a20a201 increase 1 ,rega 
+6cbd 20406c91 call first_block_data 
+6cbe 1a620c00 copy regc ,contr 
+6cbf 20406de9 call aes_load_xor 
+6cc0 20406d8c call do_aes_ctr 
+6cc1 20406e05 call store_enc_data 
+6cc2 1a60a610 increase 16 ,regc 
+6cc3 1a40a5f0 increase -16 ,regb 
+6cc4 20216cbc branch aes_crypt_data ,positive 
+6cc5 20600000 rtn 
+
+ccm_br_enc_new:
+6cc6 20406d79 call ccm_init_common 
+6cc7 4739c02e bpatchx patch2e_3 ,mem_patch2e 
+6cc8 d8c00063 arg mem_kc ,contr 
+6cc9 20406deb call load_key 
+6cca 7080d500 jam 0 ,core_ccm_aad0 
+6ccb 18217e0f and type ,0x0f ,pdata 
+6ccc 1fe9fe00 lshift3 pdata ,pdata 
+6ccd 9881fe00 ior am_addr ,pdata 
+6cce 67f080d6 store 1 ,core_ccm_aad1 
+6ccf 6fe0c1e7 fetch 1 ,mem_llid 
+6cd0 67f080d7 store 1 ,core_ccm_aad2 
+6cd1 627100d1 storer regc ,2 ,core_ccm_input_playload_addr 
+6cd2 627100d3 storer regc ,2 ,core_ccm_output_playload_addr 
+6cd3 6a2146b1 fetchr rega ,2 ,mem_ccm_len 
+6cd4 684ac69b fetcht 5 ,mem_ccm_pcnt_tx 
+6cd5 20406ce8 call ccm_br_check_0_length_continuation 
+6cd6 20406c8c call ccm_b0 
+6cd7 70800a02 jam 2 ,core_ccm_ctrl 
+6cd8 70800a03 jam 3 ,core_ccm_ctrl 
+6cd9 6fe146b1 fetch 2 ,mem_ccm_len 
+6cda 67f100da store 2 ,core_ccm_inptr 
+6cdb 1fe0fe04 increase 4 ,pdata 
+6cdc 67e146b1 store 2 ,mem_ccm_len 
+6cdd 1a627e00 copy regc ,pdata 
+6cde 9a20a200 iadd rega ,rega 
+6cdf 20406d80 call wait_ccm_done 
+6ce0 df00000c arg regidx_result ,regext_index 
+6ce1 e5e20011 istorer regext ,4 ,rega 
+6ce2 65e2026f storer regext ,4 ,mem_le_mic 
+6ce3 20600000 rtn 
+
+ccm_br_pcnt_tx_add:
+6ce4 6fe2c69b fetch 5 ,mem_ccm_pcnt_tx 
+6ce5 1fe0fe01 increase 1 ,pdata 
+6ce6 67e2c69b store 5 ,mem_ccm_pcnt_tx 
+6ce7 20206cee branch ccm_br_pcnt_tx_set 
+
+ccm_br_check_0_length_continuation:
+6ce8 6fe0c1e7 fetch 1 ,mem_llid 
+6ce9 c1808000 rtnne llid_l2cap_cont 
+6cea 6fe146b1 fetch 2 ,mem_ccm_len 
+6ceb 247a0000 nrtn blank 
+6cec 79200424 set1 br_ccm_0_length_continuation ,temp 
+6ced 20600000 rtn 
+
+ccm_br_pcnt_tx_set:
+6cee 6fe0c69f fetch 1 ,mem_ccm_pcnt_tx + 4 
+6cef 1fe17e0f and pdata ,0x0f ,pdata 
+6cf0 1fe1fe20 or pdata ,0x20 ,pdata 
+6cf1 67e0c69f store 1 ,mem_ccm_pcnt_tx + 4 
+6cf2 20600000 rtn 
+
+ccm_br_pcnt_rx_set:
+6cf3 6fe0c6a4 fetch 1 ,mem_ccm_pcnt_rx + 4 
+6cf4 1fe17e0f and pdata ,0x0f ,pdata 
+6cf5 67e0c6a4 store 1 ,mem_ccm_pcnt_rx + 4 
+6cf6 20600000 rtn 
+
+ccm_br_decrypt_new:
+6cf7 18a27e00 copy contw ,pdata 
+6cf8 684900af fetcht 2 ,mem_len 
+6cf9 18408404 increase 4 ,temp 
+6cfa 98467e00 isub temp ,pdata 
+6cfb 67e146b3 store 2 ,mem_ccm_rx_ptr 
+6cfc 67f100d1 store 2 ,core_ccm_input_playload_addr 
+6cfd 67f100d3 store 2 ,core_ccm_output_playload_addr 
+6cfe 20407e68 call disable_user2 
+6cff 20406d79 call ccm_init_common 
+6d00 d8c00063 arg mem_kc ,contr 
+6d01 20406deb call load_key 
+6d02 7080d500 jam 0 ,core_ccm_aad0 
+6d03 6fe0801a fetch 1 ,mem_rx_type 
+6d04 1fe17e0f and pdata ,0x0f ,pdata 
+6d05 1fe9fe00 lshift3 pdata ,pdata 
+6d06 9881fe00 ior am_addr ,pdata 
+6d07 67f080d6 store 1 ,core_ccm_aad1 
+6d08 6fe080e5 fetch 1 ,mem_lch_code 
+6d09 1fe17e03 and pdata ,0x3 ,pdata 
+6d0a 67e0c1e7 store 1 ,mem_llid 
+6d0b 67f080d7 store 1 ,core_ccm_aad2 
+6d0c 6a2100af fetchr rega ,2 ,mem_len 
+6d0d 622146b1 storer rega ,2 ,mem_ccm_len 
+6d0e 6fe146b3 fetch 2 ,mem_ccm_rx_ptr 
+6d0f 9a208c00 iadd rega ,contr 
+6d10 18007000 force regidx_data ,regext_index 
+6d11 ede20006 ifetchr regext ,4 ,contr 
+6d12 65e20273 storer regext ,4 ,mem_le_peer_mic 
+6d13 684ac6a0 fetcht 5 ,mem_ccm_pcnt_rx 
+6d14 20406ce8 call ccm_br_check_0_length_continuation 
+6d15 20406c8c call ccm_b0 
+6d16 70800a06 jam 6 ,core_ccm_ctrl 
+6d17 70800a07 jam 7 ,core_ccm_ctrl 
+6d18 6fe100af fetch 2 ,mem_len 
+6d19 67f100da store 2 ,core_ccm_inptr 
+6d1a 20406d80 call wait_ccm_done 
+6d1b 6ff08108 fetch 1 ,core_misc_status 
+6d1c c4038000 rtnbit0 7 
+6d1d 20207e66 branch enable_user2 
+
+ccm_br_pcnt_rx_add:
+6d1e 6fe100af fetch 2 ,mem_len 
+6d1f 207a0000 rtn blank 
+6d20 c6078000 rtnmark1 mark_old_packet 
+6d21 684a0273 fetcht 4 ,mem_le_peer_mic 
+6d22 604a46a5 storet 4 ,mem_ccm_last_mic 
+6d23 6fe2c6a0 fetch 5 ,mem_ccm_pcnt_rx 
+6d24 1fe0fe01 increase 1 ,pdata 
+6d25 67e2c6a0 store 5 ,mem_ccm_pcnt_rx 
+6d26 20206cf3 branch ccm_br_pcnt_rx_set 
+
+le_decrypt_new:
+6d27 20406d79 call ccm_init_common 
+6d28 7080d500 jam 0 ,core_ccm_aad0 
+6d29 7080d601 jam 1 ,core_ccm_aad1 
+6d2a 6fe0816b fetch 1 ,mem_le_rxbuf_data_header 
+6d2b 1fe17e03 and_into 0x3 ,pdata 
+6d2c 67f080d7 store 1 ,core_ccm_aad2 
+6d2d 5800016d setarg mem_le_rxbuf_data_payload 
+6d2e 67f100d1 store 2 ,core_ccm_input_playload_addr 
+6d2f 67f100d3 store 2 ,core_ccm_output_playload_addr 
+6d30 6a20816c fetchr rega ,1 ,mem_le_rxbuf_data_length 
+6d31 1a20a3fc increase -4 ,rega 
+6d32 24217e6a nbranch disable_blank ,positive 
+6d33 6220816c storer rega ,1 ,mem_le_rxbuf_data_length 
+6d34 5800016d setarg mem_le_rxbuf_data_payload 
+6d35 9a208c00 iadd rega ,contr 
+6d36 18007000 force regidx_data ,regext_index 
+6d37 ede20006 ifetchr regext ,4 ,contr 
+6d38 65e20273 storer regext ,4 ,mem_le_peer_mic 
+6d39 684ac6a0 fetcht 5 ,mem_ccm_pcnt_rx 
+6d3a 20406c8c call ccm_b0 
+6d3b 70800a06 jam 6 ,core_ccm_ctrl 
+6d3c 70800a07 jam 7 ,core_ccm_ctrl 
+6d3d 6fe0816c fetch 1 ,mem_le_rxbuf_data_length 
+6d3e 67f100da store 2 ,core_ccm_inptr 
+6d3f 20406d80 call wait_ccm_done 
+6d40 6ff08108 fetch 1 ,core_misc_status 
+6d41 c303fe6a bbit0 7 ,disable_blank 
+6d42 684a0273 fetcht 4 ,mem_le_peer_mic 
+6d43 6fe246a5 fetch 4 ,mem_ccm_last_mic 
+6d44 98467e00 isub temp ,pdata 
+6d45 207a0000 rtn blank 
+6d46 604a46a5 storet 4 ,mem_ccm_last_mic 
+6d47 6fe2c6a0 fetch 5 ,mem_ccm_pcnt_rx 
+6d48 1fe0fe01 increase 1 ,pdata 
+6d49 79207e27 set1 le_ccm_directionbit ,pdata 
+6d4a 67e2c6a0 store 5 ,mem_ccm_pcnt_rx 
+6d4b 18007e00 force 0 ,pdata 
+6d4c 20600000 rtn 
+
+le_encrypt_new:
+6d4d 20406d54 call le_encrypt_new_start 
+6d4e 580041f5 setarg mem_le_txpayload 
+6d4f 9a20a200 iadd rega ,rega 
+6d50 20406d80 call wait_ccm_done 
+6d51 df00000c arg regidx_result ,regext_index 
+6d52 e5e20011 istorer regext ,4 ,rega 
+6d53 20600000 rtn 
+
+le_encrypt_new_start:
+6d54 20406d79 call ccm_init_common 
+6d55 473a402e bpatchx patch2e_4 ,mem_patch2e 
+6d56 7080d500 jam 0 ,core_ccm_aad0 
+6d57 7080d601 jam 1 ,core_ccm_aad1 
+6d58 6fe0c1f3 fetch 1 ,mem_le_txheader 
+6d59 1fe17e03 and_into 0x3 ,pdata 
+6d5a 67f080d7 store 1 ,core_ccm_aad2 
+6d5b 6fe1097b fetch 2 ,mem_contr 
+6d5c 67f100d1 store 2 ,core_ccm_input_playload_addr 
+6d5d 580041f5 setarg mem_le_txpayload 
+6d5e 67f100d3 store 2 ,core_ccm_output_playload_addr 
+6d5f 6a20c1f4 fetchr rega ,1 ,mem_le_txlen 
+6d60 684ac69b fetcht 5 ,mem_ccm_pcnt_tx 
+6d61 20406c8c call ccm_b0 
+6d62 70800a02 jam 2 ,core_ccm_ctrl 
+6d63 70800a03 jam 3 ,core_ccm_ctrl 
+6d64 6fe0c1f4 fetch 1 ,mem_le_txlen 
+6d65 67f100da store 2 ,core_ccm_inptr 
+6d66 1fe0fe04 increase 4 ,pdata 
+6d67 67e0c1f4 store 1 ,mem_le_txlen 
+6d68 6fe2c69b fetch 5 ,mem_ccm_pcnt_tx 
+6d69 1fe0fe01 increase 1 ,pdata 
+6d6a 793ffe27 set0 le_ccm_directionbit ,pdata 
+6d6b 67e2c69b store 5 ,mem_ccm_pcnt_tx 
+6d6c 20600000 rtn 
+
+ccm_wait_enc:
+6d6d 6ff1011a fetch 2 ,core_ccm_outptr 
+6d6e 98467c00 isub temp ,null 
+6d6f 20628000 rtn zero 
+6d70 247a0000 nrtn blank 
+6d71 20206d6d branch ccm_wait_enc 
+
+ccm_check_enc_done:
+6d72 6ff08108 fetch 1 ,core_misc_status 
+6d73 c303131f bbit0 6 ,assert 
+
+ccm_enc_done:
+6d74 580041f5 setarg mem_le_txpayload 
+6d75 98408a00 iadd temp ,contw 
+6d76 df00000c arg regidx_result ,regext_index 
+6d77 e5e20005 istorer regext ,4 ,contw 
+6d78 20206d82 branch ccm_ctrl_clr 
+
+ccm_init_common:
+6d79 473ac02e bpatchx patch2e_5 ,mem_patch2e 
+6d7a 1800700c force regidx_result ,regext_index 
+6d7b 20406df9 call aes_clear 
+6d7c 20406df8 call aes_clear_data 
+6d7d 58000000 setarg 0 
+6d7e 67f100da store 2 ,core_ccm_inptr 
+6d7f 20600000 rtn 
+
+wait_ccm_done:
+6d80 6ff08108 fetch 1 ,core_misc_status 
+6d81 c3036d80 bbit0 6 ,wait_ccm_done 
+
+ccm_ctrl_clr:
+6d82 70800a00 jam 0 ,core_ccm_ctrl 
+6d83 20600000 rtn 
+
+wait_aes:
+6d84 243bed84 nbranch wait_aes ,aes_ready 
+6d85 20600000 rtn 
+
+do_aes_ocb:
+6d86 18006c30 force 0x30 ,aes_ctrl 
+6d87 18006c00 force 0x0 ,aes_ctrl 
+6d88 20206d84 branch wait_aes 
+
+do_aes_cbc:
+6d89 18006c32 force 0x32 ,aes_ctrl 
+6d8a 18006c02 force 0x2 ,aes_ctrl 
+6d8b 20206d84 branch wait_aes 
+
+do_aes_ctr:
+6d8c 18006c34 force 0x34 ,aes_ctrl 
+6d8d 18006c04 force 0x4 ,aes_ctrl 
+6d8e 20206d84 branch wait_aes 
+
+aes_init:
+6d8f 18006c01 force 1 ,aes_ctrl 
+6d90 18006c00 force 0 ,aes_ctrl 
+6d91 20600000 rtn 
+
+function_s1:
+6d92 18007000 force regidx_data ,regext_index 
+6d93 6fe20277 fetch 4 ,mem_le_mrand 
+6d94 98005e00 iforce regext 
+6d95 1f00f001 increase 1 ,regext_index 
+6d96 efe20006 ifetch 4 ,contr 
+6d97 98005e00 iforce regext 
+6d98 1f00f001 increase 1 ,regext_index 
+6d99 6fe24335 fetch 4 ,mem_le_srand 
+6d9a 98005e00 iforce regext 
+6d9b 1f00f001 increase 1 ,regext_index 
+6d9c efe20006 ifetch 4 ,contr 
+6d9d 98005e00 iforce regext 
+6d9e 1f00f001 increase 1 ,regext_index 
+6d9f 20406df9 call aes_clear 
+6da0 1f00f1fc increase -4 ,regext_index 
+6da1 6fe2439c fetch 4 ,mem_le_tk 
+6da2 1fe25e00 copy pdata ,regext 
+6da3 1f00f004 increase 4 ,regext_index 
+6da4 18006c38 force 0x38 ,aes_ctrl 
+6da5 18006c08 force 0x8 ,aes_ctrl 
+6da6 20206d84 branch wait_aes 
+
+function_c1:
+6da7 473b402e bpatchx patch2e_6 ,mem_patch2e 
+6da8 6fe34378 fetch 6 ,mem_le_lap 
+6da9 684b0297 fetcht 6 ,mem_le_plap 
+6daa 2034edad branch function_c1_master ,master 
+6dab 6fe30297 fetch 6 ,mem_le_plap 
+6dac 684b4378 fetcht 6 ,mem_le_lap 
+
+function_c1_master:
+6dad 18007008 force regidx_xor ,regext_index 
+6dae 18425e00 copy temp ,regext 
+6daf 1f00f001 increase 1 ,regext_index 
+6db0 184f5e00 rshift32 temp ,regext 
+6db1 1ff07e00 lshift16 pdata ,pdata 
+6db2 9de1de00 ior regext ,regext 
+6db3 1f00f001 increase 1 ,regext_index 
+6db4 1fef5e00 rshift32 pdata ,regext 
+6db5 1f00f001 increase 1 ,regext_index 
+6db6 18005e00 force 0 ,regext 
+6db7 18007e00 force 0 ,pdata 
+6db8 6fe0c368 fetch 1 ,mem_le_conn_peer_addr_type 
+6db9 6848c429 fetcht 1 ,mem_le_adv_own_addr_type 
+6dba 2434edbd nbranch function_c1_irat ,master 
+6dbb 6fe0c36f fetch 1 ,mem_le_conn_own_addr_type 
+6dbc 6848c368 fetcht 1 ,mem_le_conn_peer_addr_type 
+
+function_c1_irat:
+6dbd 67e0c345 store 1 ,mem_le_iat 
+6dbe 6048c346 storet 1 ,mem_le_rat 
+6dbf 18007000 force regidx_data ,regext_index 
+6dc0 da404345 arg mem_le_iat ,regb 
+6dc1 18007204 force 4 ,loopcnt 
+
+function_c1_loop1:
+6dc2 efe20011 ifetch 4 ,rega 
+6dc3 e8420012 ifetcht 4 ,regb 
+6dc4 9842de00 ixor temp ,regext 
+6dc5 1f00f001 increase 1 ,regext_index 
+6dc6 1a20a204 increase 4 ,rega 
+6dc7 1a40a404 increase 4 ,regb 
+6dc8 c2006dc2 loop function_c1_loop1 
+6dc9 20406df9 call aes_clear 
+6dca 1f00f1fc increase -4 ,regext_index 
+6dcb 6fe2439c fetch 4 ,mem_le_tk 
+6dcc 1fe25e00 copy pdata ,regext 
+6dcd 1f00f004 increase 4 ,regext_index 
+6dce 18006c38 force 0x38 ,aes_ctrl 
+6dcf 18006c0c force 0xc ,aes_ctrl 
+6dd0 20406d84 call wait_aes 
+6dd1 20406df8 call aes_clear_data 
+6dd2 18006c3a force 0x3a ,aes_ctrl 
+6dd3 18006c08 force 0x8 ,aes_ctrl 
+6dd4 20206d84 branch wait_aes 
+
+padding_data:
+6dd5 2f200600 compare 0 ,loopcnt ,3 
+6dd6 20608000 rtn true 
+6dd7 18c27e00 deposit contr 
+6dd8 9f208a00 iadd loopcnt ,contw 
+6dd9 18007e00 force 0 ,pdata 
+
+padding_loop:
+6dda e7e08005 istore 1 ,contw 
+6ddb 1f20f201 increase 1 ,loopcnt 
+6ddc 2f200600 compare 0 ,loopcnt ,3 
+6ddd 20608000 rtn true 
+6dde 20206dda branch padding_loop 
+
+aes_load_data:
+6ddf 18007000 force regidx_data ,regext_index 
+
+load_data_loop:
+6de0 1f227e00 deposit loopcnt 
+6de1 203a6de4 branch load_data_padding ,blank 
+6de2 efe20006 ifetch 4 ,contr 
+6de3 1f20f3fc increase -4 ,loopcnt 
+
+load_data_padding:
+6de4 98005e00 iforce regext 
+6de5 1f00f001 increase 1 ,regext_index 
+6de6 2f001e04 compare regidx_key ,regext_index ,0xf 
+6de7 20608000 rtn true 
+6de8 20206de0 branch load_data_loop 
+
+aes_load_xor:
+6de9 18007008 force regidx_xor ,regext_index 
+6dea 20206dee branch load_regext 
+
+load_key:
+6deb 18007004 force regidx_key ,regext_index 
+6dec 20206dee branch load_regext 
+
+load_data128:
+6ded 18007000 force regidx_data ,regext_index 
+
+load_regext:
+6dee 18007204 force 4 ,loopcnt 
+
+load_regext_loop:
+6def efe20006 ifetch 4 ,contr 
+6df0 98005e00 iforce regext 
+6df1 1f00f001 increase 1 ,regext_index 
+6df2 c2006def loop load_regext_loop 
+6df3 20600000 rtn 
+
+load_sk:
+6df4 d8c002c7 arg mem_le_sk ,contr 
+6df5 20206deb branch load_key 
+
+clear_hidata:
+6df6 18007204 force 4 ,loopcnt 
+6df7 20206dfb branch clear_data_rest 
+
+aes_clear_data:
+6df8 18007000 force regidx_data ,regext_index 
+
+aes_clear:
+6df9 18007204 force 4 ,loopcnt 
+
+clear_loop:
+6dfa 18005e00 force 0 ,regext 
+
+clear_data_rest:
+6dfb 1f00f001 increase 1 ,regext_index 
+6dfc c2006dfa loop clear_loop 
+6dfd 20600000 rtn 
+
+store_aes_result:
+6dfe 1800700c force regidx_result ,regext_index 
+6dff 18007204 force 4 ,loopcnt 
+
+send_aes_result_loop:
+6e00 1de27e00 deposit regext 
+6e01 e7e20005 istore 4 ,contw 
+6e02 1f00f001 increase 1 ,regext_index 
+6e03 c2006e00 loop send_aes_result_loop 
+6e04 20600000 rtn 
+
+store_enc_data:
+6e05 1800700c force regidx_result ,regext_index 
+6e06 1a620a00 copy regc ,contw 
+6e07 1a40f201 add regb ,1 ,loopcnt 
+6e08 1f267c0f sub loopcnt ,15 ,null 
+6e09 20216e0b branch store_enc_loop ,positive 
+6e0a 18007210 force 16 ,loopcnt 
+
+store_enc_loop:
+6e0b 1de27e00 deposit regext 
+6e0c 1f267c03 sub loopcnt ,3 ,null 
+6e0d 20216e13 branch store_enc_byte ,positive 
+6e0e e7e20005 istore 4 ,contw 
+6e0f 1f20f3fc increase -4 ,loopcnt 
+6e10 20628000 rtn zero 
+6e11 1f00f001 increase 1 ,regext_index 
+6e12 20206e0b branch store_enc_loop 
+
+store_enc_byte:
+6e13 e7e08005 istore 1 ,contw 
+6e14 1fecfe00 rshift8 pdata ,pdata 
+6e15 c2006e13 loop store_enc_byte 
+6e16 20600000 rtn 
+
+compare_res:
+6e17 1800700c force regidx_result ,regext_index 
+6e18 18007204 force 4 ,loopcnt 
+
+compare_res_loop:
+6e19 efe20006 ifetch 4 ,contr 
+6e1a 9de67c00 isub regext ,null 
+6e1b 24628000 nrtn zero 
+6e1c 1f00f001 increase 1 ,regext_index 
+6e1d c2006e19 loop compare_res_loop 
+6e1e 18007c00 force 0 ,null 
+6e1f 20600000 rtn 
+
+enable_authrom:
+6e20 6ff08050 fetch 1 ,core_clkoff 
+6e21 793ffe00 set0 clock_off_auth_rom ,pdata 
+6e22 67f08050 store 1 ,core_clkoff 
+6e23 20600000 rtn 
+
+disable_authrom:
+6e24 6ff08050 fetch 1 ,core_clkoff 
+6e25 79207e00 set1 clock_off_auth_rom ,pdata 
+6e26 67f08050 store 1 ,core_clkoff 
+6e27 20600000 rtn 
+
+init_memp:
+6e28 d8a00748 arg mem_p ,contw 
+6e29 3803ffff setsect 0 ,0x3ffff 
+6e2a 3807ffff setsect 1 ,0x3ffff 
+6e2b 380bffff setsect 2 ,0x3ffff 
+6e2c 380ffbff setsect 3 ,0x3fbff 
+6e2d e7e48005 istore 9 ,contw 
+6e2e 3803ffff setsect 0 ,0x3ffff 
+6e2f 3807ffff setsect 1 ,0x3ffff 
+6e30 380bffff setsect 2 ,0x3ffff 
+6e31 380fffff setsect 3 ,0x3ffff 
+6e32 e7e48005 istore 9 ,contw 
+6e33 3803ffff setsect 0 ,0x3ffff 
+6e34 3807ffff setsect 1 ,0x3ffff 
+6e35 380bcfff setsect 2 ,0x3cfff 
+6e36 380fffff setsect 3 ,0x3ffff 
+6e37 e7e48005 istore 9 ,contw 
+6e38 3803ffff setsect 0 ,0x3ffff 
+6e39 3807ffff setsect 1 ,0x3ffff 
+6e3a 380bffef setsect 2 ,0x3ffef 
+6e3b 380fffff setsect 3 ,0x3ffff 
+6e3c e7e48005 istore 9 ,contw 
+6e3d 3803ffff setsect 0 ,0x3ffff 
+6e3e 3807ffff setsect 1 ,0x3ffff 
+6e3f 380bffff setsect 2 ,0x3ffff 
+6e40 380fffff setsect 3 ,0x3ffff 
+6e41 e7e48005 istore 9 ,contw 
+6e42 3803ffff setsect 0 ,0x3ffff 
+6e43 38066c7f setsect 1 ,0x26c7f 
+6e44 3808146b setsect 2 ,0x146b 
+6e45 380f7bb3 setsect 3 ,0x37bb3 
+6e46 e7e48005 istore 9 ,contw 
+6e47 3801feb8 setsect 0 ,0x1feb8 
+6e48 38050c12 setsect 1 ,0x10c12 
+6e49 380ab722 setsect 2 ,0x2b722 
+6e4a 380e9fa6 setsect 3 ,0x29fa6 
+6e4b e7e48005 istore 9 ,contw 
+6e4c 3800e70f setsect 0 ,0xe70f 
+6e4d 38056720 setsect 1 ,0x16720 
+6e4e 3808519e setsect 2 ,0x519e 
+6e4f 380d9084 setsect 3 ,0x19084 
+6e50 e7e48005 istore 9 ,contw 
+6e51 38031012 setsect 0 ,0x31012 
+6e52 380760bf setsect 1 ,0x360bf 
+6e53 380bf0af setsect 2 ,0x3f0af 
+6e54 380c03d3 setsect 3 ,0x3d3 
+6e55 e7e48005 istore 9 ,contw 
+6e56 3803a188 setsect 0 ,0x3a188 
+6e57 38043ad0 setsect 1 ,0x3ad0 
+6e58 380bcbf2 setsect 2 ,0x3cbf2 
+6e59 380e43d9 setsect 3 ,0x243d9 
+6e5a e7e48005 istore 9 ,contw 
+6e5b 3802b030 setsect 0 ,0x2b030 
+6e5c 38076a03 setsect 1 ,0x36a03 
+6e5d 38091188 setsect 2 ,0x11188 
+6e5e 380de520 setsect 3 ,0x1e520 
+6e5f e7e48005 istore 9 ,contw 
+6e60 3803a11e setsect 0 ,0x3a11e 
+6e61 3804fe5d setsect 1 ,0xfe5d 
+6e62 3808dd57 setsect 2 ,0xdd57 
+6e63 380dac93 setsect 3 ,0x1ac93 
+6e64 e7e48005 istore 9 ,contw 
+6e65 380011ed setsect 0 ,0x11ed 
+6e66 380618c4 setsect 1 ,0x218c4 
+6e67 38088da7 setsect 2 ,0x8da7 
+6e68 380e57ff setsect 3 ,0x257ff 
+6e69 e7e48005 istore 9 ,contw 
+6e6a 3803192b setsect 0 ,0x3192b 
+6e6b 38074641 setsect 1 ,0x34641 
+6e6c 3809be0c setsect 2 ,0x1be0c 
+6e6d 380f66ad setsect 3 ,0x366ad 
+6e6e e7e48005 istore 9 ,contw 
+6e6f 38001f83 setsect 0 ,0x1f83 
+6e70 38055a23 setsect 1 ,0x15a23 
+6e71 380bf9b0 setsect 2 ,0x3f9b0 
+6e72 380c3949 setsect 3 ,0x3949 
+6e73 e7e48005 istore 9 ,contw 
+6e74 38013a51 setsect 0 ,0x13a51 
+6e75 380553fd setsect 1 ,0x153fd 
+6e76 380b372a setsect 2 ,0x3372a 
+6e77 380cf1bb setsect 3 ,0xf1bb 
+6e78 e7e48005 istore 9 ,contw 
+6e79 3803ae85 setsect 0 ,0x3ae85 
+6e7a 3805eed9 setsect 1 ,0x1eed9 
+6e7b 38089e66 setsect 2 ,0x9e66 
+6e7c 380c01a8 setsect 3 ,0x1a8 
+6e7d e7e40005 istore 8 ,contw 
+6e7e 20600000 rtn 
+
+init_memp_256:
+6e7f d8a007e0 arg mem_p_256 ,contw 
+6e80 3803ffff setsect 0 ,0x3ffff 
+6e81 3807ffff setsect 1 ,0x3ffff 
+6e82 380bffff setsect 2 ,0x3ffff 
+6e83 380fffff setsect 3 ,0x3ffff 
+6e84 e7e48005 istore 9 ,contw 
+6e85 3803ffff setsect 0 ,0x3ffff 
+6e86 3804003f setsect 1 ,0x3f 
+6e87 38080000 setsect 2 ,0x0 
+6e88 380c0000 setsect 3 ,0x0 
+6e89 e7e48005 istore 9 ,contw 
+6e8a 38000000 setsect 0 ,0x0 
+6e8b 38040000 setsect 1 ,0x0 
+6e8c 38081000 setsect 2 ,0x1000 
+6e8d 380c0000 setsect 3 ,0x0 
+6e8e e7e48005 istore 9 ,contw 
+6e8f 3803ff00 setsect 0 ,0x3ff00 
+6e90 3807ffff setsect 1 ,0x3ffff 
+6e91 380bffcf setsect 2 ,0x3ffcf 
+6e92 380fffff setsect 3 ,0x3ffff 
+6e93 e7e48005 istore 9 ,contw 
+6e94 3803ffff setsect 0 ,0x3ffff 
+6e95 3807ffff setsect 1 ,0x3ffff 
+6e96 380bffff setsect 2 ,0x3ffff 
+6e97 380c03ff setsect 3 ,0x3ff 
+6e98 e7e48005 istore 9 ,contw 
+6e99 38000000 setsect 0 ,0x0 
+6e9a 38040000 setsect 1 ,0x0 
+6e9b 38080000 setsect 2 ,0x0 
+6e9c 380c0000 setsect 3 ,0x0 
+6e9d e7e48005 istore 9 ,contw 
+6e9e 38010000 setsect 0 ,0x10000 
+6e9f 38040000 setsect 1 ,0x0 
+6ea0 380bf000 setsect 2 ,0x3f000 
+6ea1 380fffff setsect 3 ,0x3ffff 
+6ea2 e7e48005 istore 9 ,contw 
+6ea3 380296ff setsect 0 ,0x296ff 
+6ea4 38062630 setsect 1 ,0x22630 
+6ea5 380b945d setsect 2 ,0x3945d 
+6ea6 380fd284 setsect 3 ,0x3d284 
+6ea7 e7e48005 istore 9 ,contw 
+6ea8 380333a0 setsect 0 ,0x333a0 
+6ea9 38044b7a setsect 1 ,0x4b7a 
+6eaa 380837d8 setsect 2 ,0x37d8 
+6eab 380fc9dc setsect 3 ,0x3c9dc 
+6eac e7e48005 istore 9 ,contw 
+6ead 3803a440 setsect 0 ,0x3a440 
+6eae 3805b958 setsect 1 ,0x1b958 
+6eaf 380b8bce setsect 2 ,0x38bce 
+6eb0 380d091f setsect 3 ,0x1091f 
+6eb1 e7e48005 istore 9 ,contw 
+6eb2 3802e12c setsect 0 ,0x2e12c 
+6eb3 3805f47c setsect 1 ,0x1f47c 
+6eb4 380b56b1 setsect 2 ,0x356b1 
+6eb5 380efd47 setsect 3 ,0x2fd47 
+6eb6 e7e48005 istore 9 ,contw 
+6eb7 38006837 setsect 0 ,0x6837 
+6eb8 3806ed90 setsect 1 ,0x2ed90 
+6eb9 3809ecec setsect 2 ,0x1ecec 
+6eba 380dacc5 setsect 3 ,0x1acc5 
+6ebb e7e48005 istore 9 ,contw 
+6ebc 38023357 setsect 0 ,0x23357 
+6ebd 38058af3 setsect 1 ,0x18af3 
+6ebe 3808f9e1 setsect 2 ,0xf9e1 
+6ebf 380d29f0 setsect 3 ,0x129f0 
+6ec0 e7e48005 istore 9 ,contw 
+6ec1 3802e7eb setsect 0 ,0x2e7eb 
+6ec2 3807e6e3 setsect 1 ,0x3e6e3 
+6ec3 380be1a7 setsect 2 ,0x3e1a7 
+6ec4 380d0b8b setsect 3 ,0x10b8b 
+6ec5 e7e48005 istore 9 ,contw 
+6ec6 38024fe3 setsect 0 ,0x24fe3 
+6ec7 380420ef setsect 1 ,0x20ef 
+6ec8 3809b5a6 setsect 2 ,0x1b5a6 
+6ec9 380cdc2f setsect 3 ,0xdc2f 
+6eca e7e48005 istore 9 ,contw 
+6ecb 38013860 setsect 0 ,0x13860 
+6ecc 3806bd69 setsect 1 ,0x2bd69 
+6ecd 3808391a setsect 2 ,0x391a 
+6ece 380db222 setsect 3 ,0x1b222 
+6ecf e7e48005 istore 9 ,contw 
+6ed0 20600000 rtn 
+
+publickey_init:
+6ed1 6fe0c763 fetch 1 ,mem_ssp_enable 
+6ed2 243a6eec nbranch sp_initialize ,blank 
+6ed3 2020756e branch sp_initialize_256 
+
+sp_calc_sequence_256_check:
+6ed4 473bc02e bpatchx patch2e_7 ,mem_patch2e 
+6ed5 6fe0c763 fetch 1 ,mem_ssp_enable 
+6ed6 207a0000 rtn blank 
+6ed7 6fe0c6b8 fetch 1 ,mem_sp_local_key_invalid 
+6ed8 c1808000 rtnne sp_key_valid 
+6ed9 6fe0c6b7 fetch 1 ,mem_secure_connections_enable 
+6eda 207a0000 rtn blank 
+6edb 6fe0c6ba fetch 1 ,mem_sc_local_key_invalid 
+6edc c1018000 rtneq sp_key_valid_256 
+6edd 6fe1478b fetch 2 ,mem_ui_state_map 
+6ede c2806ee2 bbit1 ui_state_bt_connected ,stop_publickey_calc_256 
+6edf 6fe0c6b9 fetch 1 ,mem_sc_calc 
+6ee0 c000756e beq sp_calc_standby ,sp_initialize_256 
+6ee1 20600000 rtn 
+
+stop_publickey_calc_256:
+6ee2 7046b900 jam sp_calc_standby ,mem_sc_calc 
+6ee3 20600000 rtn 
+
+sp_br_secure_connection_enable:
+6ee4 6fe0c6b7 fetch 1 ,mem_secure_connections_enable 
+6ee5 79207e01 set1 secure_connections_br_bit ,pdata 
+6ee6 67e0c6b7 store 1 ,mem_secure_connections_enable 
+6ee7 20600000 rtn 
+
+sp_br_secure_connection_disable:
+6ee8 6fe0c6b7 fetch 1 ,mem_secure_connections_enable 
+6ee9 793ffe01 set0 secure_connections_br_bit ,pdata 
+6eea 67e0c6b7 store 1 ,mem_secure_connections_enable 
+6eeb 20600000 rtn 
+
+sp_initialize:
+6eec 473c402f bpatchx patch2f_0 ,mem_patch2f 
+6eed 6fe0c763 fetch 1 ,mem_ssp_enable 
+6eee 243a7027 nbranch sp_pubkey_calc ,blank 
+
+sp_reset:
+6eef 20406ef9 call sp_clear_flags 
+6ef0 7046b800 jam sp_key_invalid ,mem_sp_local_key_invalid 
+6ef1 70087400 jam sp_calc_standby ,mem_sp_calc 
+6ef2 20600000 rtn 
+
+sp_wait_pubkey_calc_done:
+6ef3 6fe0c763 fetch 1 ,mem_ssp_enable 
+6ef4 207a0000 rtn blank 
+6ef5 6fe0c6b8 fetch 1 ,mem_sp_local_key_invalid 
+6ef6 c1008000 rtneq sp_key_valid 
+6ef7 20407099 call sp_calc_sequence 
+6ef8 20206ef3 branch sp_wait_pubkey_calc_done 
+
+sp_clear_flags:
+6ef9 58000880 setarg mem_sp_state_end 
+6efa d8a00870 arg mem_sp_state_start ,contw 
+6efb 98a67200 isub contw ,loopcnt 
+6efc 20407d34 call clear_mem 
+6efd 5800476f setarg mem_sp_state_xmem_end 
+6efe d8a04767 arg mem_sp_state_xmem ,contw 
+6eff 98a67200 isub contw ,loopcnt 
+6f00 20207d34 branch clear_mem 
+
+sp_generate_local_key:
+6f01 70087201 jam sp_flag_commit ,mem_sp_flag 
+6f02 6fe0c645 fetch 1 ,mem_encapsulated_minor_type 
+6f03 c0016f06 beq encapsulated_minor_type_p256 ,sp_generate_local_key0_256 
+6f04 c000ef11 beq encapsulated_minor_type_p192 ,sp_generate_local_key0_192 
+6f05 20600000 rtn 
+
+sp_generate_local_key0_256:
+6f06 6fe0c6ba fetch 1 ,mem_sc_local_key_invalid 
+6f07 c001ef09 beq sp_key_valid_256 ,sp_start_send_pubkey_256 
+6f08 2020758f branch sp_pubkey_calc_256 
+
+sp_start_send_pubkey_256:
+6f09 204075ae call sp_dhkey_calc_256 
+6f0a 6fe08871 fetch 1 ,mem_master_sp_state 
+6f0b 247a0000 nrtn blank 
+6f0c 70087003 jam sp_stat_key_send ,mem_sp_state 
+6f0d 20600000 rtn 
+
+sp_master_generate_local_key:
+6f0e 6fe0c6b8 fetch 1 ,mem_sp_local_key_invalid 
+6f0f c000f047 beq sp_key_valid ,sp_dhkey_calc 
+6f10 2020131f branch assert 
+
+sp_generate_local_key0_192:
+6f11 6fe0c6b8 fetch 1 ,mem_sp_local_key_invalid 
+6f12 c000ef14 beq sp_key_valid ,sp_start_send_pubkey 
+6f13 20207027 branch sp_pubkey_calc 
+
+sp_start_send_pubkey:
+6f14 20407047 call sp_dhkey_calc 
+6f15 6fe08871 fetch 1 ,mem_master_sp_state 
+6f16 247a0000 nrtn blank 
+6f17 70087003 jam sp_stat_key_send ,mem_sp_state 
+6f18 20600000 rtn 
+
+sp_calc_check_publickey_256:
+6f19 20406f34 call sp_calc_b256 
+6f1a da2008a0 arg mem_le_pubkey_remote_y_256 ,rega 
+6f1b d8a00728 arg mem_t7_256 ,contw 
+6f1c 2040778e call bn_sqrmod_256 
+6f1d da200880 arg mem_le_pubkey_remote_x_256 ,rega 
+6f1e d8a006e8 arg mem_t2_256 ,contw 
+6f1f 2040778e call bn_sqrmod_256 
+6f20 da2006e8 arg mem_t2_256 ,rega 
+6f21 da400880 arg mem_le_pubkey_remote_x_256 ,regb 
+6f22 d8a006e8 arg mem_t2_256 ,contw 
+6f23 204076f6 call bn_mulmod_256 
+6f24 da200800 arg mem_a_256 ,rega 
+6f25 da400880 arg mem_le_pubkey_remote_x_256 ,regb 
+6f26 d8a00708 arg mem_t3_256 ,contw 
+6f27 204076f6 call bn_mulmod_256 
+6f28 da200708 arg mem_t3_256 ,rega 
+6f29 da4006e8 arg mem_t2_256 ,regb 
+6f2a d8a006e8 arg mem_t2_256 ,contw 
+6f2b 20407792 call bn_addmod_256 
+6f2c da2006c8 arg mem_t0_256 ,rega 
+6f2d da4006e8 arg mem_t2_256 ,regb 
+6f2e d8a006c8 arg mem_t0_256 ,contw 
+6f2f 20407792 call bn_addmod_256 
+6f30 df200020 arg 32 ,loopcnt 
+6f31 da200728 arg mem_t7_256 ,rega 
+6f32 da4006c8 arg mem_t0_256 ,regb 
+6f33 20207dff branch string_compare 
+
+sp_calc_b256:
+6f34 da200840 arg mem_gy_256 ,rega 
+6f35 d8a006c8 arg mem_t0_256 ,contw 
+6f36 2040778e call bn_sqrmod_256 
+6f37 da200820 arg mem_gx_256 ,rega 
+6f38 d8a006e8 arg mem_t2_256 ,contw 
+6f39 2040778e call bn_sqrmod_256 
+6f3a da2006e8 arg mem_t2_256 ,rega 
+6f3b da400820 arg mem_gx_256 ,regb 
+6f3c d8a006e8 arg mem_t2_256 ,contw 
+6f3d 204076f6 call bn_mulmod_256 
+6f3e da200800 arg mem_a_256 ,rega 
+6f3f da400820 arg mem_gx_256 ,regb 
+6f40 d8a00708 arg mem_t3_256 ,contw 
+6f41 204076f6 call bn_mulmod_256 
+6f42 da200708 arg mem_t3_256 ,rega 
+6f43 da4006e8 arg mem_t2_256 ,regb 
+6f44 d8a006e8 arg mem_t2_256 ,contw 
+6f45 20407792 call bn_addmod_256 
+6f46 da2006c8 arg mem_t0_256 ,rega 
+6f47 da4006e8 arg mem_t2_256 ,regb 
+6f48 d8a006c8 arg mem_t0_256 ,contw 
+6f49 202077ab branch bn_submod_256 
+
+sp_calc_check_publickey:
+6f4a 20406f65 call sp_calc_b 
+6f4b da2008a8 arg mem_sp_pubkey_remote_y ,rega 
+6f4c d8a00728 arg mem_t7_256 ,contw 
+6f4d 20407165 call bn_sqrmod 
+6f4e da200888 arg mem_sp_pubkey_remote_x ,rega 
+6f4f d8a006e8 arg mem_t2_256 ,contw 
+6f50 20407165 call bn_sqrmod 
+6f51 da2006e8 arg mem_t2_256 ,rega 
+6f52 da400888 arg mem_sp_pubkey_remote_x ,regb 
+6f53 d8a006e8 arg mem_t2_256 ,contw 
+6f54 20407143 call bn_mulmod 
+6f55 da200760 arg mem_a ,rega 
+6f56 da400888 arg mem_sp_pubkey_remote_x ,regb 
+6f57 d8a00708 arg mem_t3_256 ,contw 
+6f58 20407143 call bn_mulmod 
+6f59 da200708 arg mem_t3_256 ,rega 
+6f5a da4006e8 arg mem_t2_256 ,regb 
+6f5b d8a006e8 arg mem_t2_256 ,contw 
+6f5c 20407112 call bn_addmod 
+6f5d da2006c8 arg mem_t0_256 ,rega 
+6f5e da4006e8 arg mem_t2_256 ,regb 
+6f5f d8a006c8 arg mem_t0_256 ,contw 
+6f60 20407112 call bn_addmod 
+6f61 df200018 arg 24 ,loopcnt 
+6f62 da200728 arg mem_t7_256 ,rega 
+6f63 da4006c8 arg mem_t0_256 ,regb 
+6f64 20207dff branch string_compare 
+
+sp_calc_b:
+6f65 da2007a8 arg mem_gy ,rega 
+6f66 d8a006c8 arg mem_t0_256 ,contw 
+6f67 20407165 call bn_sqrmod 
+6f68 da200790 arg mem_gx ,rega 
+6f69 d8a006e8 arg mem_t2_256 ,contw 
+6f6a 20407165 call bn_sqrmod 
+6f6b da2006e8 arg mem_t2_256 ,rega 
+6f6c da400790 arg mem_gx ,regb 
+6f6d d8a006e8 arg mem_t2_256 ,contw 
+6f6e 20407143 call bn_mulmod 
+6f6f da200760 arg mem_a ,rega 
+6f70 da400790 arg mem_gx ,regb 
+6f71 d8a00708 arg mem_t3_256 ,contw 
+6f72 20407143 call bn_mulmod 
+6f73 da200708 arg mem_t3_256 ,rega 
+6f74 da4006e8 arg mem_t2_256 ,regb 
+6f75 d8a006e8 arg mem_t2_256 ,contw 
+6f76 20407112 call bn_addmod 
+6f77 da2006c8 arg mem_t0_256 ,rega 
+6f78 da4006e8 arg mem_t2_256 ,regb 
+6f79 d8a006c8 arg mem_t0_256 ,contw 
+6f7a 20207115 branch bn_submod 
+
+sp_calculate_commitment:
+6f7b 6fe0c645 fetch 1 ,mem_encapsulated_minor_type 
+6f7c c0016f7f beq encapsulated_minor_type_p256 ,sp_calculate_commitment_256 
+6f7d c000ef8f beq encapsulated_minor_type_p192 ,sp_calculate_commitment_192 
+6f7e 20600000 rtn 
+
+sp_calculate_commitment_256:
+6f7f 6fe0c6b9 fetch 1 ,mem_sc_calc 
+6f80 c0806fad bne sp_calc_standby ,sp_calculate_commitment_wait_dhkey_calc 
+6f81 20406faa call sp_local_random_key_generator 
+6f82 d8a00940 arg mem_sp_prarm_stack ,contw 
+6f83 580008f0 setarg mem_sp_random_local_end 
+6f84 e7e10005 istore 2 ,contw 
+6f85 580046fb setarg mem_sc_pubkey_local_x_256 + 32 
+6f86 e7e10005 istore 2 ,contw 
+6f87 580008a0 setarg mem_le_pubkey_remote_x_256 + 32 
+6f88 e7e10005 istore 2 ,contw 
+
+sp_calculate_commitment0_256:
+6f89 20407457 call function_f1_256 
+6f8a 6fe08871 fetch 1 ,mem_master_sp_state 
+6f8b c0026fa7 beq sp_stat_commit_calc ,master_sp_calculate_commitment0 
+6f8c 70087201 jam sp_flag_commit ,mem_sp_flag 
+6f8d 70087005 jam sp_stat_commit_send ,mem_sp_state 
+6f8e 20600000 rtn 
+
+sp_calculate_commitment_192:
+6f8f 6fe08874 fetch 1 ,mem_sp_calc 
+6f90 c0806fad bne sp_calc_standby ,sp_calculate_commitment_wait_dhkey_calc 
+6f91 20406faa call sp_local_random_key_generator 
+6f92 d8a00940 arg mem_sp_prarm_stack ,contw 
+6f93 580008f0 setarg mem_sp_random_local_end 
+6f94 e7e10005 istore 2 ,contw 
+6f95 5800474b setarg mem_sp_pubkey_local_x_end 
+6f96 e7e10005 istore 2 ,contw 
+6f97 580008a0 setarg mem_sp_pubkey_remote_x_end 
+6f98 e7e10005 istore 2 ,contw 
+6f99 20206fa1 branch sp_calculate_commitment0 
+
+master_sp_calculate_commitment:
+6f9a d8a00940 arg mem_sp_prarm_stack ,contw 
+6f9b 58000900 setarg mem_sp_random_remote_end 
+6f9c e7e10005 istore 2 ,contw 
+6f9d 580008a0 setarg mem_sp_pubkey_remote_x_end 
+6f9e e7e10005 istore 2 ,contw 
+6f9f 5800474b setarg mem_sp_pubkey_local_x_end 
+6fa0 e7e10005 istore 2 ,contw 
+
+sp_calculate_commitment0:
+6fa1 2040737e call function_f1_192 
+6fa2 6fe08871 fetch 1 ,mem_master_sp_state 
+6fa3 c0026fa7 beq sp_stat_commit_calc ,master_sp_calculate_commitment0 
+6fa4 70087201 jam sp_flag_commit ,mem_sp_flag 
+6fa5 70087005 jam sp_stat_commit_send ,mem_sp_state 
+6fa6 20600000 rtn 
+
+master_sp_calculate_commitment0:
+6fa7 70087114 jam sp_stat_commitment_compare ,mem_master_sp_state 
+6fa8 20406f0e call sp_master_generate_local_key 
+6fa9 20207095 branch master_set_mem_master_sp_flag 
+
+sp_local_random_key_generator:
+6faa d8a008e0 arg mem_sp_random_local ,contw 
+6fab 18000e08 force 8 ,queue 
+6fac 2020705f branch random_generator 
+
+sp_calculate_commitment_wait_dhkey_calc:
+6fad 70087201 jam sp_flag_commit ,mem_sp_flag 
+6fae 20600000 rtn 
+
+sp_confirm_check:
+6faf 6fe0c645 fetch 1 ,mem_encapsulated_minor_type 
+6fb0 c0016fb5 beq encapsulated_minor_type_p256 ,sp_confirm_check_256 
+6fb1 c000efb8 beq encapsulated_minor_type_p192 ,sp_confirm_check_192 
+
+sp_confirm_check_wait:
+6fb2 70087009 jam sp_stat_confirm_check ,mem_sp_state 
+6fb3 70087201 jam sp_flag_commit ,mem_sp_flag 
+6fb4 20600000 rtn 
+
+sp_confirm_check_256:
+6fb5 6fe0887b fetch 1 ,mem_sp_dhkey_invalid 
+6fb6 c081efb2 bne sp_key_valid_256 ,sp_confirm_check_wait 
+6fb7 20206fba branch sp_confirm_check_common 
+
+sp_confirm_check_192:
+6fb8 6fe0887b fetch 1 ,mem_sp_dhkey_invalid 
+6fb9 c080efb2 bne sp_key_valid ,sp_confirm_check_wait 
+
+sp_confirm_check_common:
+6fba d8a005e9 arg mem_addr_value ,contw 
+6fbb 6fe340a8 fetch 6 ,mem_lap 
+6fbc e7e30005 istore 6 ,contw 
+6fbd 6fe30041 fetch 6 ,mem_plap 
+6fbe e7e30005 istore 6 ,contw 
+6fbf 6fe1c767 fetch 3 ,mem_sp_iocap_remote 
+6fc0 e7e18005 istore 3 ,contw 
+6fc1 20407476 call function_f3a 
+6fc2 da200910 arg mem_sp_calc_result_high ,rega 
+6fc3 da400920 arg mem_sp_check_result ,regb 
+6fc4 18000e04 force 4 ,queue 
+6fc5 20407064 call compare4 
+6fc6 2420efd3 nbranch sp_confirm_check_failed ,true 
+6fc7 20406fca call sp_confirm_check_success 
+6fc8 70007e41 jam lmp_dhkey_check ,mem_lmi_opcode2 
+6fc9 202059d8 branch tid_set_reply 
+
+sp_confirm_check_success:
+6fca 6fe08871 fetch 1 ,mem_master_sp_state 
+6fcb c004efd0 beq sp_stat_confirm_check ,sp_confirm_check_success_master 
+6fcc 7008700a jam sp_stat_confirm_calc ,mem_sp_state 
+6fcd 70087201 jam sp_flag_commit ,mem_sp_flag 
+6fce 70007d03 jam lmp_accepted ,mem_lmo_opcode2 
+6fcf 20600000 rtn 
+
+sp_confirm_check_success_master:
+6fd0 70007d03 jam lmp_accepted ,mem_lmo_opcode2 
+6fd1 70087115 jam sp_state_end ,mem_master_sp_state 
+6fd2 20207095 branch master_set_mem_master_sp_flag 
+
+sp_confirm_check_failed:
+6fd3 6fe08871 fetch 1 ,mem_master_sp_state 
+6fd4 c004efd9 beq sp_stat_confirm_check ,sp_confirm_check_failed_master 
+6fd5 70087000 jam sp_stat_null ,mem_sp_state 
+6fd6 70007d04 jam lmp_not_accepted ,mem_lmo_opcode2 
+6fd7 70007f05 jam authentication_failure_error ,mem_lmo_reason2 
+6fd8 20600000 rtn 
+
+sp_confirm_check_failed_master:
+6fd9 70007d04 jam lmp_not_accepted ,mem_lmo_opcode2 
+6fda 70087100 jam sp_stat_null ,mem_master_sp_state 
+6fdb 20600000 rtn 
+
+sp_confirm_calc:
+6fdc 6fe0c645 fetch 1 ,mem_encapsulated_minor_type 
+6fdd c0016fe0 beq encapsulated_minor_type_p256 ,sp_confirm_calc_256 
+6fde c000efe4 beq encapsulated_minor_type_p192 ,sp_confirm_calc_192 
+6fdf 20600000 rtn 
+
+sp_confirm_calc_256:
+6fe0 6fe0887b fetch 1 ,mem_sp_dhkey_invalid 
+6fe1 c001efe8 beq sp_key_valid_256 ,sp_confirm_calc_ready 
+6fe2 7008710a jam sp_stat_confirm_calc ,mem_master_sp_state 
+6fe3 20207095 branch master_set_mem_master_sp_flag 
+
+sp_confirm_calc_192:
+6fe4 6fe08875 fetch 1 ,mem_sp_dh_ready 
+6fe5 c000efe8 beq sp_flag_commit ,sp_confirm_calc_ready 
+6fe6 7008710a jam sp_stat_confirm_calc ,mem_master_sp_state 
+6fe7 20207095 branch master_set_mem_master_sp_flag 
+
+sp_confirm_calc_ready:
+6fe8 d8a005e9 arg mem_addr_value ,contw 
+6fe9 6fe30041 fetch 6 ,mem_plap 
+6fea e7e30005 istore 6 ,contw 
+6feb 6fe340a8 fetch 6 ,mem_lap 
+6fec e7e30005 istore 6 ,contw 
+6fed 6fe1c764 fetch 3 ,mem_lmp_io_cap_payload_iocap 
+6fee e7e18005 istore 3 ,contw 
+6fef 204074b9 call function_f3b 
+6ff0 6fe08871 fetch 1 ,mem_master_sp_state 
+6ff1 c0056ff5 beq sp_stat_confirm_calc ,sp_confirm_calc_master 
+6ff2 7008700b jam sp_stat_confirm_send ,mem_sp_state 
+6ff3 70087201 jam sp_flag_commit ,mem_sp_flag 
+6ff4 20600000 rtn 
+
+sp_confirm_calc_master:
+6ff5 7008710b jam sp_stat_confirm_send ,mem_master_sp_state 
+6ff6 70087301 jam sp_flag_commit ,mem_master_sp_flag 
+6ff7 20600000 rtn 
+
+sp_master_key_prarm_push:
+6ff8 d8a00940 arg mem_sp_prarm_stack ,contw 
+6ff9 6fe30041 fetch 6 ,mem_plap 
+6ffa e7e30005 istore 6 ,contw 
+6ffb 6fe340a8 fetch 6 ,mem_lap 
+6ffc e7e30005 istore 6 ,contw 
+6ffd 580008f0 setarg mem_sp_random_local_end 
+6ffe e7e10005 istore 2 ,contw 
+6fff 58000900 setarg mem_sp_random_remote_end 
+7000 e7e10005 istore 2 ,contw 
+7001 2020700c branch sp_link_key_calc 
+
+sp_link_key_prarm_push:
+7002 7008700f jam sp_stat_done ,mem_sp_state 
+7003 d8a00940 arg mem_sp_prarm_stack ,contw 
+7004 6fe340a8 fetch 6 ,mem_lap 
+7005 e7e30005 istore 6 ,contw 
+7006 6fe30041 fetch 6 ,mem_plap 
+7007 e7e30005 istore 6 ,contw 
+7008 58000900 setarg mem_sp_random_remote_end 
+7009 e7e10005 istore 2 ,contw 
+700a 580008f0 setarg mem_sp_random_local_end 
+700b e7e10005 istore 2 ,contw 
+
+sp_link_key_calc:
+700c d8a005e9 arg mem_addr_value ,contw 
+700d 6fe30940 fetch 6 ,mem_sp_prarm_stack 
+700e e7e30005 istore 6 ,contw 
+700f 6fe30946 fetch 6 ,mem_sp_prarm_stack + 6 
+7010 e7e30005 istore 6 ,contw 
+7011 204074cd call function_f2 
+7012 7041cd01 jam 1 ,mem_link_key_exists 
+7013 d8a041ce arg mem_link_key ,contw 
+7014 d8c00910 arg mem_sp_calc_result_high ,contr 
+7015 20407d1a call memcpy16 
+7016 202009c6 branch generate_linkkey_continue 
+
+sp_debug_private:
+7017 d8a0471b arg mem_sp_private_key ,contw 
+7018 380118ff setsect 0 ,0x118ff 
+7019 3807fd29 setsect 1 ,0x3fd29 
+701a 3809ed2e setsect 2 ,0x1ed2e 
+701b 380cad89 setsect 3 ,0xad89 
+701c e7e48005 istore 9 ,contw 
+701d 38030c14 setsect 0 ,0x30c14 
+701e 380475b3 setsect 1 ,0x75b3 
+701f 380805df setsect 2 ,0x5df 
+7020 380f709c setsect 3 ,0x3709c 
+7021 e7e48005 istore 9 ,contw 
+7022 3802918d setsect 0 ,0x2918d 
+7023 380457e1 setsect 1 ,0x57e1 
+7024 38080079 setsect 2 ,0x79 
+7025 e7e30005 istore 6 ,contw 
+7026 20600000 rtn 
+
+sp_pubkey_calc:
+7027 473cc02f bpatchx patch2f_1 ,mem_patch2f 
+7028 6fe0c6b8 fetch 1 ,mem_sp_local_key_invalid 
+7029 c1800000 rtnne sp_key_invalid 
+702a 6fe08874 fetch 1 ,mem_sp_calc 
+702b c1800000 rtnne sp_calc_standby 
+702c 20406e28 call init_memp 
+702d d8a0471b arg mem_sp_private_key ,contw 
+702e 18000e0b force 11 ,queue 
+702f 2040705f call random_generator 
+7030 180a7e00 random pdata 
+7031 1fe37e00 rshift pdata ,pdata 
+7032 e7e10005 istore 2 ,contw 
+7033 6fe0c6b6 fetch 1 ,mem_sp_debug_mode 
+7034 245a7017 ncall sp_debug_private ,blank 
+7035 d8a00580 arg mem_k ,contw 
+7036 d8c0471b arg mem_sp_private_key ,contr 
+7037 20407d19 call memcpy24 
+7038 d8a004a8 arg mem_ax ,contw 
+7039 d8c00790 arg mem_gx ,contr 
+703a 20407d17 call memcpy48 
+703b d8a004d8 arg mem_az ,contw 
+703c 20407d24 call bn_zero 
+703d 7004d801 jam 1 ,mem_az 
+703e 2040743b call eckp_calc_init 
+703f 70087401 jam sp_calc_pubkey ,mem_sp_calc 
+7040 20600000 rtn 
+
+sp_pubkey_generated:
+7041 d8a04733 arg mem_sp_pubkey_local ,contw 
+7042 d8c004f0 arg mem_bx ,contr 
+7043 20407d17 call memcpy48 
+7044 7046b801 jam sp_key_valid ,mem_sp_local_key_invalid 
+7045 70087400 jam sp_calc_standby ,mem_sp_calc 
+7046 20600000 rtn 
+
+sp_dhkey_calc:
+7047 473d402f bpatchx patch2f_2 ,mem_patch2f 
+7048 6fe0887b fetch 1 ,mem_sp_dhkey_invalid 
+7049 c1800000 rtnne sp_key_invalid 
+704a 6fe08874 fetch 1 ,mem_sp_calc 
+704b c1800000 rtnne sp_calc_standby 
+704c d8a00580 arg mem_k ,contw 
+704d d8c0471b arg mem_sp_private_key ,contr 
+704e 20407d19 call memcpy24 
+704f d8a004a8 arg mem_ax ,contw 
+7050 d8c00888 arg mem_sp_pubkey_remote ,contr 
+7051 20407d17 call memcpy48 
+7052 d8a004d8 arg mem_az ,contw 
+7053 20407d24 call bn_zero 
+7054 7004d801 jam 1 ,mem_az 
+7055 2040743b call eckp_calc_init 
+7056 70087402 jam sp_calc_dhkey ,mem_sp_calc 
+7057 20600000 rtn 
+
+sp_dhkey_generated:
+7058 70087501 jam sp_flag_commit ,mem_sp_dh_ready 
+7059 d8a008c8 arg mem_sp_dhkey ,contw 
+705a d8c004f0 arg mem_bx ,contr 
+705b 20407d19 call memcpy24 
+705c 70087b01 jam sp_key_valid ,mem_sp_dhkey_invalid 
+705d 70087400 jam sp_calc_standby ,mem_sp_calc 
+705e 20600000 rtn 
+
+random_generator:
+705f 18e08fff increase -1 ,queue 
+7060 24610000 nrtn positive 
+7061 180a7e00 random pdata 
+7062 e7e10005 istore 2 ,contw 
+7063 2020705f branch random_generator 
+
+compare4:
+7064 18e08fff increase -1 ,queue 
+7065 24217070 nbranch compare4_success ,positive 
+7066 efe20011 ifetch 4 ,rega 
+7067 1fe20400 copy pdata ,temp 
+7068 efe20012 ifetch 4 ,regb 
+7069 9842fe00 iflip temp ,pdata 
+706a 2422f06e nbranch compare4_failed ,zero 
+706b 1a20a204 increase 4 ,rega 
+706c 1a40a404 increase 4 ,regb 
+706d 20207064 branch compare4 
+
+compare4_failed:
+706e 7840fc00 disable true 
+706f 20600000 rtn 
+
+compare4_success:
+7070 7820fc00 enable true 
+7071 20600000 rtn 
+
+simple_pairing_sequence:
+7072 473dc02f bpatchx patch2f_3 ,mem_patch2f 
+7073 6fe08872 fetch 1 ,mem_sp_flag 
+7074 207a0000 rtn blank 
+7075 2040599c call lmo_fifo_check 
+7076 247a0000 nrtn blank 
+7077 70087200 jam sp_flag_standby ,mem_sp_flag 
+7078 6fe08870 fetch 1 ,mem_sp_state 
+7079 c001d8c2 beq sp_stat_key_send ,sp_send_lmp_encapsulated_header 
+707a c002d8e4 beq sp_stat_commit_send ,sp_send_lmp_simple_pairing_comfirm 
+707b c003d8ef beq sp_stat_random_send ,sp_send_lmp_simple_pairing_number 
+707c c005d904 beq sp_stat_confirm_send ,sp_send_lmp_dhkey_check 
+707d c0016f01 beq sp_stat_key_generate ,sp_generate_local_key 
+707e c0026f7b beq sp_stat_commit_calc ,sp_calculate_commitment 
+707f c004efaf beq sp_stat_confirm_check ,sp_confirm_check 
+7080 c0056fdc beq sp_stat_confirm_calc ,sp_confirm_calc 
+7081 c0067002 beq sp_stat_link_key_calc ,sp_link_key_prarm_push 
+7082 20600000 rtn 
+
+master_simple_paring_sequence:
+7083 473e402f bpatchx patch2f_4 ,mem_patch2f 
+7084 6fe08873 fetch 1 ,mem_master_sp_flag 
+7085 207a0000 rtn blank 
+7086 2040599c call lmo_fifo_check 
+7087 247a0000 nrtn blank 
+7088 70087300 jam sp_flag_standby ,mem_master_sp_flag 
+7089 6fe08871 fetch 1 ,mem_master_sp_state 
+708a c00958a6 beq sp_master_stat_start_skip ,sp_master_send_io_cap_get 
+708b c009d8ab beq sp_master_stat_start_done ,sp_master_send_io_cap_send 
+708c c001d8af beq sp_stat_key_send ,sp_master_send_lmp_encapsulated_header 
+708d c0026f9a beq sp_stat_commit_calc ,master_sp_calculate_commitment 
+708e c00a58b3 beq sp_stat_commitment_compare ,sp_master_commitment_compare 
+708f c003d8c0 beq sp_stat_random_send ,sp_master_send_lmp_simple_pairing_number 
+7090 c0056fdc beq sp_stat_confirm_calc ,sp_confirm_calc 
+7091 c005d903 beq sp_stat_confirm_send ,master_sp_send_lmp_dhkey_check 
+7092 c004efaf beq sp_stat_confirm_check ,sp_confirm_check 
+7093 c00ad8fd beq sp_state_end ,master_sp_sm_end 
+7094 20600000 rtn 
+
+master_set_mem_master_sp_flag:
+7095 70087301 jam sp_flag_commit ,mem_master_sp_flag 
+7096 20600000 rtn 
+
+master_clear_mem_master_sp_flag:
+7097 70087300 jam sp_flag_standby ,mem_master_sp_flag 
+7098 20600000 rtn 
+
+sp_calc_sequence:
+7099 473ec02f bpatchx patch2f_5 ,mem_patch2f 
+709a 6fe0c763 fetch 1 ,mem_ssp_enable 
+709b 207a0000 rtn blank 
+709c 6fe08874 fetch 1 ,mem_sp_calc 
+709d 207a0000 rtn blank 
+709e 1fe0fe80 increase 0x80 ,pdata 
+709f 67e08874 store 1 ,mem_sp_calc 
+70a0 c3838000 rtnbit1 7 
+70a1 6fe084a5 fetch 1 ,mem_ec_loopc 
+70a2 203a70a4 branch sp_calc_sequence_done ,blank 
+70a3 20207446 branch eckp_calc 
+
+sp_calc_sequence_done:
+70a4 20407290 call ecunmapz 
+70a5 6fe08874 fetch 1 ,mem_sp_calc 
+70a6 c000f041 beq sp_calc_pubkey ,sp_pubkey_generated 
+70a7 c0017058 beq sp_calc_dhkey ,sp_dhkey_generated 
+70a8 20600000 rtn 
+
+bn_testbit:
+70a9 1fe10e07 and pdata ,7 ,queue 
+70aa 1fe97e00 rshift3 pdata ,pdata 
+70ab 98c08c00 iadd contr ,contr 
+70ac efe08006 ifetch 1 ,contr 
+70ad afec0000 qisolate0 pdata 
+70ae 20600000 rtn 
+
+ec_copy:
+70af 20407d19 call memcpy24 
+70b0 20407d19 call memcpy24 
+70b1 20207d19 branch memcpy24 
+
+bn_eq_zero:
+70b2 efe40006 ifetch 8 ,contr 
+70b3 247a0000 nrtn blank 
+70b4 efe40006 ifetch 8 ,contr 
+70b5 247a0000 nrtn blank 
+70b6 efe40006 ifetch 8 ,contr 
+70b7 20600000 rtn 
+
+bn_eq_0:
+70b8 efe20011 ifetch 4 ,rega 
+70b9 98000400 iforce temp 
+70ba efe20012 ifetch 4 ,regb 
+70bb 98467c00 isub temp ,null 
+70bc 24628000 nrtn zero 
+70bd 1a20a204 increase 4 ,rega 
+70be 1a40a404 increase 4 ,regb 
+70bf c20070b8 loop bn_eq_0 
+70c0 20600000 rtn 
+
+bn_bigeq:
+70c1 18007206 force 6 ,loopcnt 
+70c2 1a20a214 increase 20 ,rega 
+70c3 1a40a414 increase 20 ,regb 
+
+bn_bigeq_0:
+70c4 efe20012 ifetch 4 ,regb 
+70c5 98000400 iforce temp 
+70c6 efe20011 ifetch 4 ,rega 
+70c7 98467e00 isub temp ,pdata 
+70c8 24610000 nrtn positive 
+70c9 247a0000 nrtn blank 
+70ca 1a20a3fc increase -4 ,rega 
+70cb 1a40a5fc increase -4 ,regb 
+70cc c20070c4 loop bn_bigeq_0 
+70cd 20600000 rtn 
+
+bn_add:
+70ce 18007206 force 6 ,loopcnt 
+70cf 18002600 force 0 ,regc 
+
+bn_add_0:
+70d0 efe20011 ifetch 4 ,rega 
+70d1 98000400 iforce temp 
+70d2 efe20012 ifetch 4 ,regb 
+70d3 9840fe00 iadd temp ,pdata 
+70d4 9a60fe00 iadd regc ,pdata 
+70d5 e7e20005 istore 4 ,contw 
+70d6 2feffe20 isolate1 32 ,pdata 
+70d7 7920a600 setflag true ,0 ,regc 
+70d8 1a20a204 increase 4 ,rega 
+70d9 1a40a404 increase 4 ,regb 
+70da c20070d0 loop bn_add_0 
+70db 20600000 rtn 
+
+bn_sub:
+70dc 18007206 force 6 ,loopcnt 
+70dd 18002600 force 0 ,regc 
+
+bn_sub_0:
+70de efe20012 ifetch 4 ,regb 
+70df 98000400 iforce temp 
+70e0 efe20011 ifetch 4 ,rega 
+70e1 98467e00 isub temp ,pdata 
+70e2 9a667e00 isub regc ,pdata 
+70e3 e7e20005 istore 4 ,contw 
+70e4 2feffe20 isolate1 32 ,pdata 
+70e5 7920a600 setflag true ,0 ,regc 
+70e6 1a20a204 increase 4 ,rega 
+70e7 1a40a404 increase 4 ,regb 
+70e8 c20070de loop bn_sub_0 
+70e9 20600000 rtn 
+
+bn_rshift6:
+70ea 18007206 force 6 ,loopcnt 
+70eb 1a20a214 increase 20 ,rega 
+
+bn_rshift:
+70ec 18002600 force 0 ,regc 
+
+bn_rshift_0:
+70ed efe20011 ifetch 4 ,rega 
+70ee 2feffe00 isolate1 0 ,pdata 
+70ef 7920a601 setflag true ,1 ,regc 
+70f0 1fe37e00 rshift pdata ,pdata 
+70f1 2a6ffe00 isolate1 0 ,regc 
+70f2 7920fe1f setflag true ,31 ,pdata 
+70f3 e7e20011 istore 4 ,rega 
+70f4 1a20a3fc increase -4 ,rega 
+70f5 1a632600 rshift regc ,regc 
+70f6 c20070ed loop bn_rshift_0 
+70f7 20600000 rtn 
+
+bn_lshift:
+70f8 18007206 force 6 ,loopcnt 
+70f9 18002600 force 0 ,regc 
+
+bn_lshift_0:
+70fa efe20011 ifetch 4 ,rega 
+70fb 2feffe1f isolate1 31 ,pdata 
+70fc 7920a601 setflag true ,1 ,regc 
+70fd 1fe3fe00 lshift pdata ,pdata 
+70fe 2a6ffe00 isolate1 0 ,regc 
+70ff 7920fe00 setflag true ,0 ,pdata 
+7100 e7e20011 istore 4 ,rega 
+7101 1a20a204 increase 4 ,rega 
+7102 1a632600 rshift regc ,regc 
+7103 c20070fa loop bn_lshift_0 
+7104 20600000 rtn 
+
+bn_lshiftmod:
+7105 204070f8 call bn_lshift 
+
+bn_lshiftmod_ismod:
+7106 2a6ffe00 isolate1 0 ,regc 
+7107 2020f10e branch bn_lshiftmod_0 ,true 
+7108 da400748 arg mem_p ,regb 
+7109 1a222600 copy rega ,regc 
+710a 1a20a3e8 increase -24 ,rega 
+710b 204070c1 call bn_bigeq 
+710c 24610000 nrtn positive 
+710d 1a622200 copy regc ,rega 
+
+bn_lshiftmod_0:
+710e 1a20a3e8 increase -24 ,rega 
+710f da400748 arg mem_p ,regb 
+7110 1a220a00 copy rega ,contw 
+7111 202070dc branch bn_sub 
+
+bn_addmod:
+7112 204070ce call bn_add 
+7113 18a22200 copy contw ,rega 
+7114 20207106 branch bn_lshiftmod_ismod 
+
+bn_submod:
+7115 204070dc call bn_sub 
+7116 2a6c0000 isolate0 0 ,regc 
+7117 20608000 rtn true 
+7118 da400748 arg mem_p ,regb 
+7119 18a0a3e8 add contw ,-24 ,rega 
+711a 1a220a00 copy rega ,contw 
+711b 202070ce branch bn_add 
+
+bn_p192mod:
+711c 18a21600 copy contw ,timeup 
+711d 1a226000 copy rega ,alarm 
+711e da4005d8 arg mem_tmp2 ,regb 
+711f 1a420a00 copy regb ,contw 
+7120 1a208c18 add rega ,24 ,contr 
+7121 efe40006 ifetch 8 ,contr 
+7122 e7e40005 istore 8 ,contw 
+7123 e7e40005 istore 8 ,contw 
+7124 18007e00 force 0 ,pdata 
+7125 e7e40005 istore 8 ,contw 
+7126 19620a00 copy timeup ,contw 
+7127 20407112 call bn_addmod 
+7128 da4005d8 arg mem_tmp2 ,regb 
+7129 1a420a00 copy regb ,contw 
+712a 18007e00 force 0 ,pdata 
+712b e7e40005 istore 8 ,contw 
+712c 1e008c20 add alarm ,32 ,contr 
+712d efe40006 ifetch 8 ,contr 
+712e e7e40005 istore 8 ,contw 
+712f e7e40005 istore 8 ,contw 
+7130 19622200 copy timeup ,rega 
+7131 1a220a00 copy rega ,contw 
+7132 20407112 call bn_addmod 
+7133 da4005d8 arg mem_tmp2 ,regb 
+7134 1a420a00 copy regb ,contw 
+7135 1e008c28 add alarm ,40 ,contr 
+7136 efe40006 ifetch 8 ,contr 
+7137 e7e40005 istore 8 ,contw 
+7138 e7e40005 istore 8 ,contw 
+7139 e7e40005 istore 8 ,contw 
+713a 19622200 copy timeup ,rega 
+713b 1a220a00 copy rega ,contw 
+713c 20207112 branch bn_addmod 
+
+bn_load:
+713d 18007206 force 6 ,loopcnt 
+
+bn_load_0:
+713e efe20006 ifetch 4 ,contr 
+713f 98005e00 iforce regext 
+7140 1f00f001 increase 1 ,regext_index 
+7141 c200713e loop bn_load_0 
+7142 20600000 rtn 
+
+bn_mulmod:
+7143 18a21600 copy contw ,timeup 
+7144 d8a005a8 arg mem_tmp1 ,contw 
+7145 20407d24 call bn_zero 
+7146 d8a005a8 arg mem_tmp1 ,contw 
+7147 1a220c00 copy rega ,contr 
+7148 18007000 force 0 ,regext_index 
+7149 2040713d call bn_load 
+714a 1a420c00 copy regb ,contr 
+714b 2040713d call bn_load 
+714c 18002400 force 0 ,regb 
+
+bn_mulmod_1:
+714d 18000400 force 0 ,temp 
+714e 18002606 force 6 ,regc 
+
+bn_mulmod_0:
+714f efe20005 ifetch 4 ,contw 
+7150 98002200 iforce rega 
+7151 1a427000 copy regb ,regext_index 
+7152 1de27e00 deposit regext 
+7153 1a627000 copy regc ,regext_index 
+7154 9deffe00 imul32 regext ,pdata 
+7155 9a20fe00 iadd rega ,pdata 
+7156 9840fe00 iadd temp ,pdata 
+7157 e7e20005 istore 4 ,contw 
+7158 1fef0400 rshift32 pdata ,temp 
+7159 1a60a601 increase 1 ,regc 
+715a 2a61fe0c compare 12 ,regc ,0xff 
+715b 2420f14f nbranch bn_mulmod_0 ,true 
+715c 18427e00 deposit temp 
+715d e7e20005 istore 4 ,contw 
+715e 18a08be8 increase -24 ,contw 
+715f 1a40a401 increase 1 ,regb 
+7160 2a41fe06 compare 6 ,regb ,0xff 
+7161 2420f14d nbranch bn_mulmod_1 ,true 
+7162 da2005a8 arg mem_tmp1 ,rega 
+7163 19620a00 copy timeup ,contw 
+7164 2020711c branch bn_p192mod 
+
+bn_sqrmod:
+7165 1a222400 copy rega ,regb 
+7166 20207143 branch bn_mulmod 
+
+bn_rshifteven:
+7167 1a226000 copy rega ,alarm 
+
+bn_rshifteven_1:
+7168 1e022200 copy alarm ,rega 
+7169 efe08011 ifetch 1 ,rega 
+716a 2feffe00 isolate1 0 ,pdata 
+716b 20608000 rtn true 
+716c 204070ea call bn_rshift6 
+716d efe08012 ifetch 1 ,regb 
+716e 2fec0000 isolate0 0 ,pdata 
+716f 2020f177 branch bn_rshifteven_0 ,true 
+7170 da200748 arg mem_p ,rega 
+7171 1a420a00 copy regb ,contw 
+7172 204070ce call bn_add 
+7173 efe08012 ifetch 1 ,regb 
+7174 9a60fe00 iadd regc ,pdata 
+7175 e7e08012 istore 1 ,regb 
+7176 1a40a5e8 increase -24 ,regb 
+
+bn_rshifteven_0:
+7177 1a40a218 add regb ,24 ,rega 
+7178 18007207 force 7 ,loopcnt 
+7179 204070ec call bn_rshift 
+717a 20207168 branch bn_rshifteven_1 
+
+bn_invmod:
+717b 18a21600 copy contw ,timeup 
+717c d8a00608 arg mem_tmp0 ,contw 
+717d 20407d24 call bn_zero 
+717e 18007e00 force 0 ,pdata 
+717f 67e205c0 store 4 ,mem_tmp5 
+7180 67e20620 store 4 ,mem_t2 
+7181 70060801 jam 1 ,mem_tmp0 
+7182 d8a005a8 arg mem_tmp1 ,contw 
+7183 20407d24 call bn_zero 
+7184 d8c00748 arg mem_p ,contr 
+7185 d8a005d8 arg mem_tmp2 ,contw 
+7186 20407d19 call memcpy24 
+7187 1a220c00 copy rega ,contr 
+7188 d8a005f0 arg mem_tmp3 ,contw 
+7189 20407d19 call memcpy24 
+
+bn_invmod_2:
+718a d8c005f0 arg mem_tmp3 ,contr 
+718b 204070b2 call bn_eq_zero 
+718c 203a71b3 branch bn_invmod_0 ,blank 
+718d da2005f0 arg mem_tmp3 ,rega 
+718e da400608 arg mem_tmp0 ,regb 
+718f 20407167 call bn_rshifteven 
+7190 da2005d8 arg mem_tmp2 ,rega 
+7191 da4005a8 arg mem_tmp1 ,regb 
+7192 20407167 call bn_rshifteven 
+7193 da2005f0 arg mem_tmp3 ,rega 
+7194 da4005d8 arg mem_tmp2 ,regb 
+7195 204070c1 call bn_bigeq 
+7196 202171a5 branch bn_invmod_1 ,positive 
+7197 da2005d8 arg mem_tmp2 ,rega 
+7198 da4005f0 arg mem_tmp3 ,regb 
+7199 1a220a00 copy rega ,contw 
+719a 204070dc call bn_sub 
+719b da200608 arg mem_tmp0 ,rega 
+719c da4005a8 arg mem_tmp1 ,regb 
+719d 1a420a00 copy regb ,contw 
+719e 204070ce call bn_add 
+719f efe08011 ifetch 1 ,rega 
+71a0 9a60a600 iadd regc ,regc 
+71a1 efe08012 ifetch 1 ,regb 
+71a2 9a60fe00 iadd regc ,pdata 
+71a3 e7e08012 istore 1 ,regb 
+71a4 2020718a branch bn_invmod_2 
+
+bn_invmod_1:
+71a5 da2005f0 arg mem_tmp3 ,rega 
+71a6 da4005d8 arg mem_tmp2 ,regb 
+71a7 1a220a00 copy rega ,contw 
+71a8 204070dc call bn_sub 
+71a9 da2005a8 arg mem_tmp1 ,rega 
+71aa da400608 arg mem_tmp0 ,regb 
+71ab 1a420a00 copy regb ,contw 
+71ac 204070ce call bn_add 
+71ad efe08011 ifetch 1 ,rega 
+71ae 9a60a600 iadd regc ,regc 
+71af efe08012 ifetch 1 ,regb 
+71b0 9a60fe00 iadd regc ,pdata 
+71b1 e7e08012 istore 1 ,regb 
+71b2 2020718a branch bn_invmod_2 
+
+bn_invmod_0:
+71b3 d8a00608 arg mem_tmp0 ,contw 
+71b4 20407d24 call bn_zero 
+71b5 6fe085c0 fetch 1 ,mem_tmp5 
+71b6 67e08608 store 1 ,mem_tmp0 
+71b7 67e08610 store 1 ,mem_tmp0a 
+71b8 da200608 arg mem_tmp0 ,rega 
+71b9 da4005a8 arg mem_tmp1 ,regb 
+71ba 1a420a00 copy regb ,contw 
+71bb 20407112 call bn_addmod 
+71bc da200748 arg mem_p ,rega 
+71bd da4005a8 arg mem_tmp1 ,regb 
+71be 19620a00 copy timeup ,contw 
+71bf 20207115 branch bn_submod 
+
+ecdbl:
+71c0 da200568 arg mem_cz ,rega 
+71c1 d8a00620 arg mem_t2 ,contw 
+71c2 20407165 call bn_sqrmod 
+71c3 da200620 arg mem_t2 ,rega 
+71c4 d8a00638 arg mem_t3 ,contw 
+71c5 20407165 call bn_sqrmod 
+71c6 da200760 arg mem_a ,rega 
+71c7 da400638 arg mem_t3 ,regb 
+71c8 d8a00638 arg mem_t3 ,contw 
+71c9 20407143 call bn_mulmod 
+71ca da200538 arg mem_cx ,rega 
+71cb d8a00620 arg mem_t2 ,contw 
+71cc 20407165 call bn_sqrmod 
+71cd d8c00620 arg mem_t2 ,contr 
+71ce d8a005f0 arg mem_t1 ,contw 
+71cf 20407d19 call memcpy24 
+71d0 da2005f0 arg mem_t1 ,rega 
+71d1 20407105 call bn_lshiftmod 
+71d2 da200620 arg mem_t2 ,rega 
+71d3 da4005f0 arg mem_t1 ,regb 
+71d4 d8a00620 arg mem_t2 ,contw 
+71d5 20407112 call bn_addmod 
+71d6 da200620 arg mem_t2 ,rega 
+71d7 da400638 arg mem_t3 ,regb 
+71d8 d8a00620 arg mem_t2 ,contw 
+71d9 20407112 call bn_addmod 
+71da d8c00538 arg mem_cx ,contr 
+71db d8a005f0 arg mem_t1 ,contw 
+71dc 20407d19 call memcpy24 
+71dd da200550 arg mem_cy ,rega 
+71de d8a00638 arg mem_t3 ,contw 
+71df 20407165 call bn_sqrmod 
+71e0 da2005f0 arg mem_t1 ,rega 
+71e1 20407105 call bn_lshiftmod 
+71e2 da2005f0 arg mem_t1 ,rega 
+71e3 20407105 call bn_lshiftmod 
+71e4 da2005f0 arg mem_t1 ,rega 
+71e5 da400638 arg mem_t3 ,regb 
+71e6 d8a005f0 arg mem_t1 ,contw 
+71e7 20407143 call bn_mulmod 
+71e8 da200638 arg mem_t3 ,rega 
+71e9 d8a00608 arg mem_t0 ,contw 
+71ea 20407165 call bn_sqrmod 
+71eb da200608 arg mem_t0 ,rega 
+71ec 20407105 call bn_lshiftmod 
+71ed da200608 arg mem_t0 ,rega 
+71ee 20407105 call bn_lshiftmod 
+71ef da200608 arg mem_t0 ,rega 
+71f0 20407105 call bn_lshiftmod 
+71f1 d8c00550 arg mem_cy ,contr 
+71f2 d8a00638 arg mem_t3 ,contw 
+71f3 20407d19 call memcpy24 
+71f4 da200638 arg mem_t3 ,rega 
+71f5 20407105 call bn_lshiftmod 
+71f6 da200638 arg mem_t3 ,rega 
+71f7 da400568 arg mem_cz ,regb 
+71f8 d8a00568 arg mem_cz ,contw 
+71f9 20407143 call bn_mulmod 
+71fa da200620 arg mem_t2 ,rega 
+71fb d8a00638 arg mem_t3 ,contw 
+71fc 20407165 call bn_sqrmod 
+71fd da200638 arg mem_t3 ,rega 
+71fe da4005f0 arg mem_t1 ,regb 
+71ff d8a00638 arg mem_t3 ,contw 
+7200 20407115 call bn_submod 
+7201 da200638 arg mem_t3 ,rega 
+7202 da4005f0 arg mem_t1 ,regb 
+7203 d8a00538 arg mem_cx ,contw 
+7204 20407115 call bn_submod 
+7205 da2005f0 arg mem_t1 ,rega 
+7206 da400538 arg mem_cx ,regb 
+7207 d8a00638 arg mem_t3 ,contw 
+7208 20407115 call bn_submod 
+7209 da200638 arg mem_t3 ,rega 
+720a da400620 arg mem_t2 ,regb 
+720b d8a00638 arg mem_t3 ,contw 
+720c 20407143 call bn_mulmod 
+720d da200638 arg mem_t3 ,rega 
+720e da400608 arg mem_t0 ,regb 
+720f d8a00550 arg mem_cy ,contw 
+7210 20207115 branch bn_submod 
+
+ecadd:
+7211 da2004d8 arg mem_az ,rega 
+7212 d8a00650 arg mem_t7 ,contw 
+7213 20407165 call bn_sqrmod 
+7214 da200538 arg mem_cx ,rega 
+7215 da400650 arg mem_t7 ,regb 
+7216 d8a00608 arg mem_t0 ,contw 
+7217 20407143 call bn_mulmod 
+7218 da2004d8 arg mem_az ,rega 
+7219 da400650 arg mem_t7 ,regb 
+721a d8a00650 arg mem_t7 ,contw 
+721b 20407143 call bn_mulmod 
+721c da200550 arg mem_cy ,rega 
+721d da400650 arg mem_t7 ,regb 
+721e d8a005f0 arg mem_t1 ,contw 
+721f 20407143 call bn_mulmod 
+7220 da200568 arg mem_cz ,rega 
+7221 d8a00650 arg mem_t7 ,contw 
+7222 20407165 call bn_sqrmod 
+7223 da2004a8 arg mem_ax ,rega 
+7224 da400650 arg mem_t7 ,regb 
+7225 d8a00620 arg mem_t2 ,contw 
+7226 20407143 call bn_mulmod 
+7227 da200568 arg mem_cz ,rega 
+7228 da400650 arg mem_t7 ,regb 
+7229 d8a00650 arg mem_t7 ,contw 
+722a 20407143 call bn_mulmod 
+722b da2004c0 arg mem_ay ,rega 
+722c da400650 arg mem_t7 ,regb 
+722d d8a00638 arg mem_t3 ,contw 
+722e 20407143 call bn_mulmod 
+722f da200608 arg mem_t0 ,rega 
+7230 da400620 arg mem_t2 ,regb 
+7231 d8a00650 arg mem_t7 ,contw 
+7232 20407115 call bn_submod 
+7233 da200608 arg mem_t0 ,rega 
+7234 da400620 arg mem_t2 ,regb 
+7235 d8a00608 arg mem_t0 ,contw 
+7236 20407112 call bn_addmod 
+7237 da2005f0 arg mem_t1 ,rega 
+7238 da400638 arg mem_t3 ,regb 
+7239 d8a00620 arg mem_t2 ,contw 
+723a 20407115 call bn_submod 
+723b da2005f0 arg mem_t1 ,rega 
+723c da400638 arg mem_t3 ,regb 
+723d d8a005f0 arg mem_t1 ,contw 
+723e 20407112 call bn_addmod 
+723f da2005f0 arg mem_t1 ,rega 
+7240 da400650 arg mem_t7 ,regb 
+7241 d8a005f0 arg mem_t1 ,contw 
+7242 20407143 call bn_mulmod 
+7243 da200568 arg mem_cz ,rega 
+7244 da4004d8 arg mem_az ,regb 
+7245 d8a00638 arg mem_t3 ,contw 
+7246 20407143 call bn_mulmod 
+7247 da200638 arg mem_t3 ,rega 
+7248 da400650 arg mem_t7 ,regb 
+7249 d8a00568 arg mem_cz ,contw 
+724a 20407143 call bn_mulmod 
+724b da200650 arg mem_t7 ,rega 
+724c d8a00650 arg mem_t7 ,contw 
+724d 20407165 call bn_sqrmod 
+724e da200650 arg mem_t7 ,rega 
+724f da400608 arg mem_t0 ,regb 
+7250 d8a00638 arg mem_t3 ,contw 
+7251 20407143 call bn_mulmod 
+7252 da200650 arg mem_t7 ,rega 
+7253 da4005f0 arg mem_t1 ,regb 
+7254 d8a005f0 arg mem_t1 ,contw 
+7255 20407143 call bn_mulmod 
+7256 da200620 arg mem_t2 ,rega 
+7257 d8a00538 arg mem_cx ,contw 
+7258 20407165 call bn_sqrmod 
+7259 da200538 arg mem_cx ,rega 
+725a da400638 arg mem_t3 ,regb 
+725b d8a00538 arg mem_cx ,contw 
+725c 20407115 call bn_submod 
+725d d8c00538 arg mem_cx ,contr 
+725e d8a00650 arg mem_t7 ,contw 
+725f 20407d19 call memcpy24 
+7260 da200650 arg mem_t7 ,rega 
+7261 20407105 call bn_lshiftmod 
+7262 da200638 arg mem_t3 ,rega 
+7263 da400650 arg mem_t7 ,regb 
+7264 d8a00638 arg mem_t3 ,contw 
+7265 20407115 call bn_submod 
+7266 da200638 arg mem_t3 ,rega 
+7267 da400620 arg mem_t2 ,regb 
+7268 d8a00620 arg mem_t2 ,contw 
+7269 20407143 call bn_mulmod 
+726a da200620 arg mem_t2 ,rega 
+726b da4005f0 arg mem_t1 ,regb 
+726c d8a00550 arg mem_cy ,contw 
+726d 20407115 call bn_submod 
+726e da200550 arg mem_cy ,rega 
+726f da400748 arg mem_p ,regb 
+7270 d8a00550 arg mem_cy ,contw 
+7271 18002600 force 0 ,regc 
+7272 6fe08550 fetch 1 ,mem_cy 
+7273 2feffe00 isolate1 0 ,pdata 
+7274 2040f0ce call bn_add ,true 
+7275 1a626000 copy regc ,alarm 
+7276 da200550 arg mem_cy ,rega 
+7277 204070ea call bn_rshift6 
+7278 6fe08567 fetch 1 ,mem_cy5 
+7279 2e0ffe00 isolate1 0 ,alarm 
+727a 7920fe07 setflag true ,7 ,pdata 
+727b 67e08567 store 1 ,mem_cy5 
+727c 20600000 rtn 
+
+eckp_0:
+727d 6fe084a5 fetch 1 ,mem_ec_loopc 
+727e 1fe0ffff increase -1 ,pdata 
+727f 24610000 nrtn positive 
+7280 67e084a5 store 1 ,mem_ec_loopc 
+7281 6fe084a4 fetch 1 ,mem_ec_infinite 
+7282 205a71c0 call ecdbl ,blank 
+7283 6fe084a5 fetch 1 ,mem_ec_loopc 
+7284 d8c00580 arg mem_k ,contr 
+7285 204070a9 call bn_testbit 
+7286 2020f27d branch eckp_0 ,true 
+7287 6fe084a4 fetch 1 ,mem_ec_infinite 
+7288 243a728b nbranch eckp_1 ,blank 
+7289 20407211 call ecadd 
+728a 2020727d branch eckp_0 
+
+eckp_1:
+728b 7004a400 jam 0 ,mem_ec_infinite 
+728c d8c004a8 arg mem_ax ,contr 
+728d d8a00538 arg mem_cx ,contw 
+728e 204070af call ec_copy 
+728f 2020727d branch eckp_0 
+
+ecunmapz:
+7290 da200568 arg mem_cz ,rega 
+7291 d8a00638 arg mem_t3 ,contw 
+7292 2040717b call bn_invmod 
+7293 da200638 arg mem_t3 ,rega 
+7294 d8a005f0 arg mem_t1 ,contw 
+7295 20407165 call bn_sqrmod 
+7296 da200538 arg mem_cx ,rega 
+7297 da4005f0 arg mem_t1 ,regb 
+7298 d8a004f0 arg mem_bx ,contw 
+7299 20407143 call bn_mulmod 
+729a da200638 arg mem_t3 ,rega 
+729b da4005f0 arg mem_t1 ,regb 
+729c d8a00620 arg mem_t2 ,contw 
+729d 20407143 call bn_mulmod 
+729e da200550 arg mem_cy ,rega 
+729f da400620 arg mem_t2 ,regb 
+72a0 d8a00508 arg mem_by ,contw 
+72a1 20207143 branch bn_mulmod 
+
+sha_endian_swap2:
+72a2 efe20006 ifetch 4 ,contr 
+72a3 18002204 force 4 ,rega 
+72a4 18a08a03 increase 3 ,contw 
+
+sha_endian_loop:
+72a5 e7e08005 istore 1 ,contw 
+72a6 1fecfe00 rshift8 pdata ,pdata 
+72a7 18a08bfe increase -2 ,contw 
+72a8 1a20a3ff increase -1 ,rega 
+72a9 2422f2a5 nbranch sha_endian_loop ,zero 
+72aa 18a08a05 increase 5 ,contw 
+72ab c20072a2 loop sha_endian_swap2 
+72ac 20600000 rtn 
+
+sha_getw:
+72ad 18ebfe00 lshift2 queue ,pdata 
+72ae 99608c00 iadd timeup ,contr 
+72af efe20006 ifetch 4 ,contr 
+72b0 20600000 rtn 
+
+sha_r:
+72b1 18006010 force 16 ,alarm 
+72b2 d96004a8 arg memdat ,timeup 
+
+sha_r_loop:
+72b3 1e008ff9 add alarm ,-7 ,queue 
+72b4 204072ad call sha_getw 
+72b5 98000400 iforce temp 
+72b6 1e008ff0 add alarm ,-16 ,queue 
+72b7 204072ad call sha_getw 
+72b8 98408400 iadd temp ,temp 
+72b9 1e008ffe add alarm ,-2 ,queue 
+72ba 204072ad call sha_getw 
+72bb 1fee7e01 shasx pdata ,1 ,pdata 
+72bc 98408400 iadd temp ,temp 
+72bd 1e008ff1 add alarm ,-15 ,queue 
+72be 204072ad call sha_getw 
+72bf 1fee7e00 shasx pdata ,0 ,pdata 
+72c0 98408400 iadd temp ,temp 
+72c1 1e0bfe00 lshift2 alarm ,pdata 
+72c2 99608a00 iadd timeup ,contw 
+72c3 e0420005 istoret 4 ,contw 
+72c4 1e00e001 increase 1 ,alarm 
+72c5 2e01fe40 compare 64 ,alarm ,0xff 
+72c6 2420f2b3 nbranch sha_r_loop ,true 
+72c7 20600000 rtn 
+
+sha_init:
+72c8 d8c007c0 arg memh0 ,contr 
+72c9 18007007 force 7 ,regext_index 
+
+sha_init_0:
+72ca efe20006 ifetch 4 ,contr 
+72cb 98005e00 iforce regext 
+72cc 1f00f1ff increase -1 ,regext_index 
+72cd 202172ca branch sha_init_0 ,positive 
+72ce 20600000 rtn 
+
+sha:
+72cf 473f402f bpatchx patch2f_6 ,mem_patch2f 
+72d0 204072b1 call sha_r 
+72d1 d8a005a8 arg memahbak ,contw 
+72d2 18007000 force 0 ,regext_index 
+
+sha_0:
+72d3 1de27e00 deposit regext 
+72d4 e7e20005 istore 4 ,contw 
+72d5 1f00f001 increase 1 ,regext_index 
+72d6 2f01fe08 compare 8 ,regext_index ,0xff 
+72d7 2420f2d3 nbranch sha_0 ,true 
+72d8 20406e20 call enable_authrom 
+72d9 d9609300 arg memk ,timeup 
+72da de0004a8 arg memdat ,alarm 
+72db 18007240 force 64 ,loopcnt 
+
+sha_loop:
+72dc e8420030 ifetcht 4 ,alarm 
+72dd efe2000b ifetch 4 ,timeup 
+72de 19609604 increase 4 ,timeup 
+72df 1e00e004 increase 4 ,alarm 
+72e0 9840fe00 iadd temp ,pdata 
+72e1 18007007 force 7 ,regext_index 
+72e2 9de08400 iadd regext ,temp 
+72e3 18007004 force 4 ,regext_index 
+72e4 1dee7e03 shasx regext ,3 ,pdata 
+72e5 98408400 iadd temp ,temp 
+72e6 18007005 force 5 ,regext_index 
+72e7 1de27e00 deposit regext 
+72e8 18007006 force 6 ,regext_index 
+72e9 9de2fe00 ixor regext ,pdata 
+72ea 18007004 force 4 ,regext_index 
+72eb 9de17e00 iand regext ,pdata 
+72ec 18007006 force 6 ,regext_index 
+72ed 9de2fe00 ixor regext ,pdata 
+72ee 98408400 iadd temp ,temp 
+72ef 18007007 force 7 ,regext_index 
+72f0 18425e00 copy temp ,regext 
+72f1 18007003 force 3 ,regext_index 
+72f2 1de27e00 deposit regext 
+72f3 9840de00 iadd temp ,regext 
+72f4 18007000 force 0 ,regext_index 
+72f5 1de27e00 deposit regext 
+72f6 18007001 force 1 ,regext_index 
+72f7 9de10400 iand regext ,temp 
+72f8 9de1fe00 ior regext ,pdata 
+72f9 18007002 force 2 ,regext_index 
+72fa 9de17e00 iand regext ,pdata 
+72fb 98418400 ior temp ,temp 
+72fc 18007000 force 0 ,regext_index 
+72fd 1dee7e02 shasx regext ,2 ,pdata 
+72fe 9840fe00 iadd temp ,pdata 
+72ff 18007007 force 7 ,regext_index 
+7300 9de0de00 iadd regext ,regext 
+7301 980efc00 regexrot 
+7302 c20072dc loop sha_loop 
+7303 d8c005a8 arg memahbak ,contr 
+7304 18007000 force 0 ,regext_index 
+
+sha_1:
+7305 efe20006 ifetch 4 ,contr 
+7306 9de0de00 iadd regext ,regext 
+7307 1f00f001 increase 1 ,regext_index 
+7308 2f01fe08 compare 8 ,regext_index ,0xff 
+7309 2420f305 nbranch sha_1 ,true 
+730a 20206e24 branch disable_authrom 
+
+sha_result:
+730b d8a00900 arg memresult ,contw 
+730c 18007007 force 7 ,regext_index 
+
+sha_regext_save:
+730d 1de27e00 deposit regext 
+730e e7e20005 istore 4 ,contw 
+730f 1f00f1ff increase -1 ,regext_index 
+7310 2021730d branch sha_regext_save ,positive 
+7311 20600000 rtn 
+
+pad_xor:
+7312 d8a004a8 arg memdat ,contw 
+7313 18c08dfc increase -4 ,contr 
+7314 1f262210 sub loopcnt ,16 ,rega 
+
+pad_xor_0:
+7315 efe20006 ifetch 4 ,contr 
+7316 9842fe00 ixor temp ,pdata 
+7317 e7e20005 istore 4 ,contw 
+7318 18c08df8 increase -8 ,contr 
+7319 c2007315 loop pad_xor_0 
+731a 1a227200 copy rega ,loopcnt 
+731b 18427e00 deposit temp 
+
+pad_xor_1:
+731c e7e20005 istore 4 ,contw 
+731d c200731c loop pad_xor_1 
+731e 20600000 rtn 
+
+g_noninit_number_confirm:
+731f 6fe0c645 fetch 1 ,mem_encapsulated_minor_type 
+7320 c0017326 beq encapsulated_minor_type_p256 ,g_noninit_number_confirm_256 
+7321 c000f323 beq encapsulated_minor_type_p192 ,g_noninit_number_confirm_192 
+7322 20600000 rtn 
+
+g_noninit_number_confirm_192:
+7323 2040732b call g_noninit0_192 
+7324 2040730b call sha_result 
+7325 20207351 branch g_common0 
+
+g_noninit_number_confirm_256:
+7326 20407365 call g_noninit0_256 
+7327 2040730b call sha_result 
+7328 20207351 branch g_common0 
+
+g_noninit_192:
+7329 2040732b call g_noninit0_192 
+732a 20207351 branch g_common0 
+
+g_noninit0_192:
+732b d8c008a0 arg mem_sp_pubkey_remote_x_end ,contr 
+732c d8a004a8 arg memdat ,contw 
+732d 18007206 force 6 ,loopcnt 
+732e 2040744f call memcpy_dword_swap 
+732f d8c0474b arg mem_sp_pubkey_local_x_end ,contr 
+7330 18007206 force 6 ,loopcnt 
+7331 2040744f call memcpy_dword_swap 
+7332 d8c00900 arg mem_sp_random_remote_end ,contr 
+7333 2040744e call memcpy_dword_swap4 
+7334 204072c8 call sha_init 
+7335 204072cf call sha 
+7336 d8c008f0 arg mem_sp_random_local_end ,contr 
+7337 d8a004a8 arg memdat ,contw 
+7338 20207348 branch g_common_192 
+
+g_init_192:
+7339 d8c0474b arg mem_sp_pubkey_local_x_end ,contr 
+733a d8a004a8 arg memdat ,contw 
+733b 18007206 force 6 ,loopcnt 
+733c 2040744f call memcpy_dword_swap 
+733d d8c008a0 arg mem_sp_pubkey_remote_x_end ,contr 
+733e 18007206 force 6 ,loopcnt 
+733f 2040744f call memcpy_dword_swap 
+7340 d8c008f0 arg mem_sp_random_local_end ,contr 
+7341 2040744e call memcpy_dword_swap4 
+7342 204072c8 call sha_init 
+7343 204072cf call sha 
+7344 d8c00900 arg mem_sp_random_remote_end ,contr 
+7345 d8a004a8 arg memdat ,contw 
+7346 20407348 call g_common_192 
+7347 20207351 branch g_common0 
+
+g_common_192:
+7348 2040744e call memcpy_dword_swap4 
+7349 58800000 setarg 0x800000 
+734a 1fed7e00 lshift8 pdata ,pdata 
+734b e7e20005 istore 4 ,contw 
+734c 18007205 force 5 ,loopcnt 
+734d 20407d25 call memset0 
+734e 58000280 setarg 640 
+734f e7e20005 istore 4 ,contw 
+7350 202072cf branch sha 
+
+g_common0:
+7351 6fe20900 fetch 4 ,memresult 
+7352 da2003e8 arg 1000 ,rega 
+7353 9a26fc00 idiv rega 
+7354 20407dfd call wait_div_end 
+7355 18077e00 remainder pdata 
+7356 67e2087c store 4 ,mem_gkey 
+7357 1807fe00 quotient pdata 
+7358 da2003e8 arg 1000 ,rega 
+7359 9a26fc00 idiv rega 
+735a 20407dfd call wait_div_end 
+735b 18077e00 remainder pdata 
+735c da2003e8 arg 1000 ,rega 
+735d 9a2ffe00 imul32 rega ,pdata 
+735e 684a087c fetcht 4 ,mem_gkey 
+735f 9840fe00 iadd temp ,pdata 
+7360 67e2087c store 4 ,mem_gkey 
+7361 20600000 rtn 
+
+noninit_number_confirm:
+7362 20407365 call g_noninit0_256 
+7363 2040730b call sha_result 
+7364 20207351 branch g_common0 
+
+g_noninit0_256:
+7365 d8c008a0 arg mem_le_pubkey_remote_x_256 + 32 ,contr 
+7366 d8a004a8 arg memdat ,contw 
+7367 18007208 force 8 ,loopcnt 
+7368 2040744f call memcpy_dword_swap 
+7369 d8c046fb arg mem_sc_pubkey_local_x_256 + 32 ,contr 
+736a 18007208 force 8 ,loopcnt 
+736b 2040744f call memcpy_dword_swap 
+736c 204072c8 call sha_init 
+736d 204072cf call sha 
+736e d8c00900 arg mem_sp_random_remote_end ,contr 
+736f d8a004a8 arg memdat ,contw 
+7370 2040744e call memcpy_dword_swap4 
+7371 d8c008f0 arg mem_sp_random_local_end ,contr 
+7372 20207373 branch g_common_256 
+
+g_common_256:
+7373 2040744e call memcpy_dword_swap4 
+7374 58800000 setarg 0x800000 
+7375 1fed7e00 lshift8 pdata ,pdata 
+7376 e7e20005 istore 4 ,contw 
+7377 18007203 force 3 ,loopcnt 
+7378 20407d25 call memset0 
+7379 58000300 setarg 768 
+737a e7e20005 istore 4 ,contw 
+737b 202072cf branch sha 
+
+function_f1_192_no_key:
+737c 70476d00 jam 0 ,mem_passkey_1bit 
+737d 20207380 branch function_f1_192_common 
+
+function_f1_192:
+737e 6fe0c76b fetch 1 ,mem_ssp_mode_flag 
+737f c081737c bne ssp_mode_passkey_entry_flag ,function_f1_192_no_key 
+
+function_f1_192_common:
+7380 473fc02f bpatchx patch2f_7 ,mem_patch2f 
+7381 58363636 setarg 0x363636 
+7382 1fed0400 lshift8 pdata ,temp 
+7383 18418436 or_into 0x36 ,temp 
+7384 6fe10940 fetch 2 ,mem_sp_prarm_stack 
+7385 1fe20c00 copy pdata ,contr 
+7386 18007204 force 4 ,loopcnt 
+7387 20407312 call pad_xor 
+7388 204072c8 call sha_init 
+7389 204072cf call sha 
+738a 6fe10942 fetch 2 ,mem_sp_prarm_stack + 2 
+738b 1fe20c00 copy pdata ,contr 
+738c d8a004a8 arg memdat ,contw 
+738d 18007206 force 6 ,loopcnt 
+738e 2040744f call memcpy_dword_swap 
+738f 6fe10944 fetch 2 ,mem_sp_prarm_stack + 4 
+7390 1fe20c00 copy pdata ,contr 
+7391 18007206 force 6 ,loopcnt 
+7392 2040744f call memcpy_dword_swap 
+7393 58800000 setarg 0x800000 
+7394 e7e18005 istore 3 ,contw 
+7395 6fe0c76d fetch 1 ,mem_passkey_1bit 
+7396 e7e08005 istore 1 ,contw 
+7397 18007e00 force 0 ,pdata 
+7398 e7e40005 istore 8 ,contw 
+7399 58000388 setarg 0x0388 
+739a e7e20005 istore 4 ,contw 
+
+function_f1_common2:
+739b 204072cf call sha 
+739c 2040730b call sha_result 
+739d d8c00900 arg memresult ,contr 
+739e d8a005c8 arg memahsave ,contw 
+739f 20407d18 call memcpy32 
+73a0 585c5c5c setarg 0x5c5c5c 
+73a1 1fed0400 lshift8 pdata ,temp 
+73a2 1841845c or_into 0x5c ,temp 
+73a3 6fe10940 fetch 2 ,mem_sp_prarm_stack 
+73a4 1fe20c00 copy pdata ,contr 
+73a5 18007204 force 4 ,loopcnt 
+73a6 20407312 call pad_xor 
+73a7 204072c8 call sha_init 
+73a8 204072cf call sha 
+73a9 d8c005e8 arg memahsave_end ,contr 
+73aa d8a004a8 arg memdat ,contw 
+73ab 18007208 force 8 ,loopcnt 
+73ac 2040744f call memcpy_dword_swap 
+73ad 58800000 setarg 0x800000 
+73ae 1fed7e00 lshift8 pdata ,pdata 
+73af e7e20005 istore 4 ,contw 
+73b0 20407d24 call bn_zero 
+73b1 58000300 setarg 0x0300 
+73b2 e7e20005 istore 4 ,contw 
+73b3 204072cf call sha 
+73b4 2020730b branch sha_result 
+
+function_f2_192:
+73b5 58363636 setarg 0x363636 
+73b6 1fed0400 lshift8 pdata ,temp 
+73b7 18418436 or_into 0x36 ,temp 
+73b8 d8c008e0 arg mem_sp_dhkey_end ,contr 
+73b9 18007206 force 6 ,loopcnt 
+73ba 20407312 call pad_xor 
+73bb 204072c8 call sha_init 
+73bc 204072cf call sha 
+73bd 6fe1094c fetch 2 ,mem_sp_prarm_stack + 12 
+73be 1fe20c00 copy pdata ,contr 
+73bf d8a004a8 arg memdat ,contw 
+73c0 2040744e call memcpy_dword_swap4 
+73c1 6fe1094e fetch 2 ,mem_sp_prarm_stack + 14 
+73c2 1fe20c00 copy pdata ,contr 
+73c3 2040744e call memcpy_dword_swap4 
+73c4 5862746c setarg 0x62746c 
+73c5 1fed7e00 lshift8 pdata ,pdata 
+73c6 1fe1fe6b or_into 0x6b ,pdata 
+73c7 e7e20005 istore 4 ,contw 
+73c8 d8c005f5 arg mem_addr_value_end ,contr 
+73c9 18007203 force 3 ,loopcnt 
+73ca 2040744f call memcpy_dword_swap 
+73cb 58800000 setarg 0x800000 
+73cc 1fed7e00 lshift8 pdata ,pdata 
+73cd e7e20005 istore 4 ,contw 
+73ce 18007e00 force 0 ,pdata 
+73cf e7e40005 istore 8 ,contw 
+73d0 58000380 setarg 0x0380 
+73d1 e7e20005 istore 4 ,contw 
+73d2 204072cf call sha 
+73d3 2040730b call sha_result 
+73d4 d8c00900 arg memresult ,contr 
+73d5 d8a005c8 arg memahsave ,contw 
+73d6 20407d18 call memcpy32 
+73d7 585c5c5c setarg 0x5c5c5c 
+73d8 1fed0400 lshift8 pdata ,temp 
+73d9 1841845c or_into 0x5c ,temp 
+73da d8c008e0 arg mem_sp_dhkey_end ,contr 
+73db 18007206 force 6 ,loopcnt 
+73dc 20407312 call pad_xor 
+73dd 204072c8 call sha_init 
+73de 204072cf call sha 
+73df d8c005e8 arg memahsave_end ,contr 
+73e0 d8a004a8 arg memdat ,contw 
+73e1 18007208 force 8 ,loopcnt 
+73e2 2040744f call memcpy_dword_swap 
+73e3 58800000 setarg 0x800000 
+73e4 1fed7e00 lshift8 pdata ,pdata 
+73e5 e7e20005 istore 4 ,contw 
+73e6 20407d24 call bn_zero 
+73e7 58000300 setarg 0x0300 
+73e8 e7e20005 istore 4 ,contw 
+73e9 204072cf call sha 
+73ea 2020730b branch sha_result 
+
+function_f3a_192:
+73eb 6fe0c76b fetch 1 ,mem_ssp_mode_flag 
+73ec c08173fc bne ssp_mode_passkey_entry_flag ,function_f3a_no_pin 
+
+function_f3a_common:
+73ed 47404030 bpatchx patch30_0 ,mem_patch30 
+73ee 58363636 setarg 0x363636 
+73ef 1fed0400 lshift8 pdata ,temp 
+73f0 18418436 or_into 0x36 ,temp 
+73f1 d8c008e0 arg mem_sp_dhkey_end ,contr 
+73f2 18007206 force 6 ,loopcnt 
+73f3 20407312 call pad_xor 
+73f4 204072c8 call sha_init 
+73f5 204072cf call sha 
+73f6 d8c00900 arg mem_sp_random_remote_end ,contr 
+73f7 d8a004a8 arg memdat ,contw 
+73f8 2040744e call memcpy_dword_swap4 
+73f9 d8c008f0 arg mem_sp_random_local_end ,contr 
+73fa 2040744e call memcpy_dword_swap4 
+73fb 20207411 branch function_f3_common 
+
+function_f3a_no_pin:
+73fc 58000000 setarg 0 
+73fd 67e24793 store 4 ,mem_pin 
+73fe 202073ed branch function_f3a_common 
+
+function_f3b_no_pin:
+73ff 58000000 setarg 0 
+7400 67e24793 store 4 ,mem_pin 
+7401 20207404 branch function_f3b_common 
+
+function_f3b_192:
+7402 6fe0c76b fetch 1 ,mem_ssp_mode_flag 
+7403 c08173ff bne ssp_mode_passkey_entry_flag ,function_f3b_no_pin 
+
+function_f3b_common:
+7404 58363636 setarg 0x363636 
+7405 1fed0400 lshift8 pdata ,temp 
+7406 18418436 or_into 0x36 ,temp 
+7407 d8c008e0 arg mem_sp_dhkey_end ,contr 
+7408 18007206 force 6 ,loopcnt 
+7409 20407312 call pad_xor 
+740a 204072c8 call sha_init 
+740b 204072cf call sha 
+740c d8c008f0 arg mem_sp_random_local_end ,contr 
+740d d8a004a8 arg memdat ,contw 
+740e 2040744e call memcpy_dword_swap4 
+740f d8c00900 arg mem_sp_random_remote_end ,contr 
+7410 2040744e call memcpy_dword_swap4 
+
+function_f3_common:
+7411 58000000 setarg 0x0 
+7412 e7e40005 istore 8 ,contw 
+7413 e7e20005 istore 4 ,contw 
+7414 6fe24793 fetch 4 ,mem_pin 
+7415 e7e20005 istore 4 ,contw 
+7416 18a20400 copy contw ,temp 
+7417 7005e880 jam 0x80 ,mem_addr_padding 
+7418 18420a00 copy temp ,contw 
+7419 d8c005f8 arg mem_addr_iocap_end ,contr 
+741a 2040744e call memcpy_dword_swap4 
+741b 204072cf call sha 
+741c d8a004a8 arg memdat ,contw 
+741d 18007207 force 7 ,loopcnt 
+741e 20407d25 call memset0 
+741f e7e20005 istore 4 ,contw 
+7420 580003f8 setarg 0x03F8 
+7421 e7e20005 istore 4 ,contw 
+7422 204072cf call sha 
+7423 2040730b call sha_result 
+7424 d8c00900 arg memresult ,contr 
+7425 d8a005c8 arg memahsave ,contw 
+7426 20407d18 call memcpy32 
+7427 585c5c5c setarg 0x5c5c5c 
+7428 1fed0400 lshift8 pdata ,temp 
+7429 1841845c or_into 0x5c ,temp 
+742a d8c008e0 arg mem_sp_dhkey_end ,contr 
+742b 18007206 force 6 ,loopcnt 
+742c 20407312 call pad_xor 
+742d 204072c8 call sha_init 
+742e 204072cf call sha 
+742f d8c005e8 arg memahsave_end ,contr 
+7430 d8a004a8 arg memdat ,contw 
+7431 18007208 force 8 ,loopcnt 
+7432 2040744f call memcpy_dword_swap 
+7433 58800000 setarg 0x800000 
+7434 1fed7e00 lshift8 pdata ,pdata 
+7435 e7e20005 istore 4 ,contw 
+7436 20407d24 call bn_zero 
+7437 58000300 setarg 0x0300 
+7438 e7e20005 istore 4 ,contw 
+7439 204072cf call sha 
+743a 2020730b branch sha_result 
+
+eckp_calc_init:
+743b 7004a5c0 jam 192 ,mem_ec_loopc 
+
+eckp_calc_init_1:
+743c 6fe084a5 fetch 1 ,mem_ec_loopc 
+743d 207a0000 rtn blank 
+743e 1fe0ffff increase -1 ,pdata 
+743f 67e084a5 store 1 ,mem_ec_loopc 
+7440 d8c00580 arg mem_k ,contr 
+7441 204070a9 call bn_testbit 
+7442 2020f43c branch eckp_calc_init_1 ,true 
+7443 d8c004a8 arg mem_ax ,contr 
+7444 d8a00538 arg mem_cx ,contw 
+7445 202070af branch ec_copy 
+
+eckp_calc:
+7446 204071c0 call ecdbl 
+7447 6fe084a5 fetch 1 ,mem_ec_loopc 
+7448 1fe0ffff increase -1 ,pdata 
+7449 67e084a5 store 1 ,mem_ec_loopc 
+744a d8c00580 arg mem_k ,contr 
+744b 204070a9 call bn_testbit 
+744c 20608000 rtn true 
+744d 20207211 branch ecadd 
+
+memcpy_dword_swap4:
+744e 18007204 force 4 ,loopcnt 
+
+memcpy_dword_swap:
+744f 18c08dfc increase -4 ,contr 
+
+memcpy_dword_swap_loop:
+7450 efe20006 ifetch 4 ,contr 
+7451 e7e20005 istore 4 ,contw 
+7452 18c08df8 increase -8 ,contr 
+7453 c2007450 loop memcpy_dword_swap_loop 
+7454 20600000 rtn 
+
+function_f1_no_key_256:
+7455 70476d00 jam 0 ,mem_passkey_1bit 
+7456 20207459 branch function_f1_common_256 
+
+function_f1_256:
+7457 6fe0c76b fetch 1 ,mem_ssp_mode_flag 
+7458 c0817455 bne ssp_mode_passkey_entry_flag ,function_f1_no_key_256 
+
+function_f1_common_256:
+7459 58363636 setarg 0x363636 
+745a 1fed0400 lshift8 pdata ,temp 
+745b 18418436 or_into 0x36 ,temp 
+745c 6fe10940 fetch 2 ,mem_sp_prarm_stack 
+745d 1fe20c00 copy pdata ,contr 
+745e 18007204 force 4 ,loopcnt 
+745f 20407312 call pad_xor 
+7460 204072c8 call sha_init 
+7461 204072cf call sha 
+7462 6fe10942 fetch 2 ,mem_sp_prarm_stack + 2 
+7463 1fe20c00 copy pdata ,contr 
+7464 d8a004a8 arg memdat ,contw 
+7465 18007208 force 8 ,loopcnt 
+7466 2040744f call memcpy_dword_swap 
+7467 6fe10944 fetch 2 ,mem_sp_prarm_stack + 4 
+7468 1fe20c00 copy pdata ,contr 
+7469 18007208 force 8 ,loopcnt 
+746a 2040744f call memcpy_dword_swap 
+746b 204072cf call sha 
+746c d8a004a8 arg memdat ,contw 
+746d 58800000 setarg 0x800000 
+746e e7e18005 istore 3 ,contw 
+746f 6fe0c76d fetch 1 ,mem_passkey_1bit 
+7470 e7e08005 istore 1 ,contw 
+7471 df200007 arg 7 ,loopcnt 
+7472 20407d25 call memset0 
+7473 58000408 setarg 0x0408 
+7474 e7e20005 istore 4 ,contw 
+7475 2020739b branch function_f1_common2 
+
+function_f3a:
+7476 6fe0c645 fetch 1 ,mem_encapsulated_minor_type 
+7477 c001747a beq encapsulated_minor_type_p256 ,function_f3a_256 
+7478 c000f3eb beq encapsulated_minor_type_p192 ,function_f3a_192 
+7479 20600000 rtn 
+
+function_f3a_256:
+747a 6fe0c76b fetch 1 ,mem_ssp_mode_flag 
+747b c08174b3 bne ssp_mode_passkey_entry_flag ,function_f3a_no_pin_256 
+
+function_f3a_common_256:
+747c 58363636 setarg 0x363636 
+747d 1fed0400 lshift8 pdata ,temp 
+747e 18418436 or_into 0x36 ,temp 
+747f d8c008e0 arg mem_sp_dhkey_end ,contr 
+7480 18007208 force 8 ,loopcnt 
+7481 20407312 call pad_xor 
+7482 204072c8 call sha_init 
+7483 204072cf call sha 
+7484 d8c00900 arg mem_sp_random_remote_end ,contr 
+7485 d8a004a8 arg memdat ,contw 
+7486 2040744e call memcpy_dword_swap4 
+7487 d8c008f0 arg mem_sp_random_local_end ,contr 
+7488 2040744e call memcpy_dword_swap4 
+
+function_f3_common_256:
+7489 58000000 setarg 0x0 
+748a e7e40005 istore 8 ,contw 
+748b e7e20005 istore 4 ,contw 
+748c 6fe24793 fetch 4 ,mem_pin 
+748d e7e20005 istore 4 ,contw 
+748e 18a20400 copy contw ,temp 
+748f 7005e880 jam 0x80 ,mem_addr_padding 
+7490 18420a00 copy temp ,contw 
+7491 d8c005f8 arg mem_addr_iocap_end ,contr 
+7492 2040744e call memcpy_dword_swap4 
+7493 204072cf call sha 
+7494 d8a004a8 arg memdat ,contw 
+7495 18007207 force 7 ,loopcnt 
+7496 20407d25 call memset0 
+7497 e7e20005 istore 4 ,contw 
+7498 580003f8 setarg 0x03F8 
+7499 e7e20005 istore 4 ,contw 
+749a 204072cf call sha 
+749b 2040730b call sha_result 
+749c d8c00900 arg memresult ,contr 
+749d d8a005c8 arg memahsave ,contw 
+749e 20407d18 call memcpy32 
+749f 585c5c5c setarg 0x5c5c5c 
+74a0 1fed0400 lshift8 pdata ,temp 
+74a1 1841845c or_into 0x5c ,temp 
+74a2 d8c008e0 arg mem_sp_dhkey_end ,contr 
+74a3 18007208 force 8 ,loopcnt 
+
+sha_end_common:
+74a4 20407312 call pad_xor 
+74a5 204072c8 call sha_init 
+74a6 204072cf call sha 
+74a7 d8c005e8 arg memahsave_end ,contr 
+74a8 d8a004a8 arg memdat ,contw 
+74a9 18007208 force 8 ,loopcnt 
+74aa 2040744f call memcpy_dword_swap 
+74ab 58800000 setarg 0x800000 
+74ac 1fed7e00 lshift8 pdata ,pdata 
+74ad e7e20005 istore 4 ,contw 
+74ae 20407d24 call bn_zero 
+74af 58000300 setarg 0x0300 
+74b0 e7e20005 istore 4 ,contw 
+74b1 204072cf call sha 
+74b2 2020730b branch sha_result 
+
+function_f3a_no_pin_256:
+74b3 58000000 setarg 0 
+74b4 67e24793 store 4 ,mem_pin 
+74b5 2020747c branch function_f3a_common_256 
+
+function_f3b_no_pin_256:
+74b6 58000000 setarg 0 
+74b7 67e24793 store 4 ,mem_pin 
+74b8 202074bf branch function_f3b_common_256 
+
+function_f3b:
+74b9 6fe0c645 fetch 1 ,mem_encapsulated_minor_type 
+74ba c00174bd beq encapsulated_minor_type_p256 ,function_f3b_256 
+74bb c000f402 beq encapsulated_minor_type_p192 ,function_f3b_192 
+74bc 20600000 rtn 
+
+function_f3b_256:
+74bd 6fe0c76b fetch 1 ,mem_ssp_mode_flag 
+74be c08174b6 bne ssp_mode_passkey_entry_flag ,function_f3b_no_pin_256 
+
+function_f3b_common_256:
+74bf 58363636 setarg 0x363636 
+74c0 1fed0400 lshift8 pdata ,temp 
+74c1 18418436 or_into 0x36 ,temp 
+74c2 d8c008e0 arg mem_sp_dhkey_end ,contr 
+74c3 18007208 force 8 ,loopcnt 
+74c4 20407312 call pad_xor 
+74c5 204072c8 call sha_init 
+74c6 204072cf call sha 
+74c7 d8c008f0 arg mem_sp_random_local_end ,contr 
+74c8 d8a004a8 arg memdat ,contw 
+74c9 2040744e call memcpy_dword_swap4 
+74ca d8c00900 arg mem_sp_random_remote_end ,contr 
+74cb 2040744e call memcpy_dword_swap4 
+74cc 20207489 branch function_f3_common_256 
+
+function_f2:
+74cd 6fe0c645 fetch 1 ,mem_encapsulated_minor_type 
+74ce c00174d1 beq encapsulated_minor_type_p256 ,function_f2_256 
+74cf c000f3b5 beq encapsulated_minor_type_p192 ,function_f2_192 
+74d0 20600000 rtn 
+
+function_f2_256:
+74d1 58363636 setarg 0x363636 
+74d2 1fed0400 lshift8 pdata ,temp 
+74d3 18418436 or_into 0x36 ,temp 
+74d4 d8c008e0 arg mem_sp_dhkey_end ,contr 
+74d5 18007208 force 8 ,loopcnt 
+74d6 20407312 call pad_xor 
+74d7 204072c8 call sha_init 
+74d8 204072cf call sha 
+74d9 6fe1094c fetch 2 ,mem_sp_prarm_stack + 12 
+74da 1fe20c00 copy pdata ,contr 
+74db d8a004a8 arg memdat ,contw 
+74dc 2040744e call memcpy_dword_swap4 
+74dd 6fe1094e fetch 2 ,mem_sp_prarm_stack + 14 
+74de 1fe20c00 copy pdata ,contr 
+74df 2040744e call memcpy_dword_swap4 
+74e0 5862746c setarg 0x62746c 
+74e1 1fed7e00 lshift8 pdata ,pdata 
+74e2 1fe1fe6b or_into 0x6b ,pdata 
+74e3 e7e20005 istore 4 ,contw 
+74e4 d8c005f5 arg mem_addr_value_end ,contr 
+74e5 18007203 force 3 ,loopcnt 
+74e6 2040744f call memcpy_dword_swap 
+74e7 58800000 setarg 0x800000 
+74e8 1fed7e00 lshift8 pdata ,pdata 
+74e9 e7e20005 istore 4 ,contw 
+74ea 18007e00 force 0 ,pdata 
+74eb e7e40005 istore 8 ,contw 
+74ec 58000380 setarg 0x0380 
+74ed e7e20005 istore 4 ,contw 
+74ee 204072cf call sha 
+74ef 2040730b call sha_result 
+74f0 d8c00900 arg memresult ,contr 
+74f1 d8a005c8 arg memahsave ,contw 
+74f2 20407d18 call memcpy32 
+74f3 585c5c5c setarg 0x5c5c5c 
+74f4 1fed0400 lshift8 pdata ,temp 
+74f5 1841845c or_into 0x5c ,temp 
+74f6 d8c008e0 arg mem_sp_dhkey_end ,contr 
+74f7 18007208 force 8 ,loopcnt 
+74f8 202074a4 branch sha_end_common 
+
+function_h3:
+74f9 6fe340a8 fetch 6 ,mem_lap 
+74fa 67e305e9 store 6 ,mem_addr_value 
+74fb 6fe30041 fetch 6 ,mem_plap 
+74fc e7e30005 istore 6 ,contw 
+74fd 58363636 setarg 0x363636 
+74fe 1fed0400 lshift8 pdata ,temp 
+74ff 18418436 or_into 0x36 ,temp 
+7500 d8c041de arg mem_link_key + 16 ,contr 
+7501 18007204 force 4 ,loopcnt 
+7502 20407312 call pad_xor 
+7503 204072c8 call sha_init 
+7504 204072cf call sha 
+7505 58627461 setarg 0x627461 
+7506 1fed7e00 lshift8 pdata ,pdata 
+7507 1fe1fe6b or_into 0x6b ,pdata 
+7508 67e204a8 store 4 ,memdat 
+7509 d8c005f5 arg mem_addr_value + 12 ,contr 
+750a 18007203 force 3 ,loopcnt 
+750b 2040744f call memcpy_dword_swap 
+750c d8c046b1 arg mem_ccm_iv + 8 ,contr 
+750d df200002 arg 2 ,loopcnt 
+750e 2040744f call memcpy_dword_swap 
+750f 58800000 setarg 0x800000 
+7510 1fed7e00 lshift8 pdata ,pdata 
+7511 e7e20005 istore 4 ,contw 
+7512 df200004 arg 4 ,loopcnt 
+7513 20407d25 call memset0 
+7514 580002c0 setarg 704 
+7515 e7e20005 istore 4 ,contw 
+7516 204072cf call sha 
+7517 2040730b call sha_result 
+7518 d8c00900 arg memresult ,contr 
+7519 d8a005c8 arg memahsave ,contw 
+751a 20407d18 call memcpy32 
+751b 585c5c5c setarg 0x5c5c5c 
+751c 1fed0400 lshift8 pdata ,temp 
+751d 1841845c or_into 0x5c ,temp 
+751e d8c041de arg mem_link_key + 16 ,contr 
+751f 18007204 force 4 ,loopcnt 
+7520 202074a4 branch sha_end_common 
+
+function_h4:
+7521 6fe340a8 fetch 6 ,mem_lap 
+7522 67e305e9 store 6 ,mem_addr_value 
+7523 6fe30041 fetch 6 ,mem_plap 
+7524 e7e30005 istore 6 ,contw 
+7525 58363636 setarg 0x363636 
+7526 1fed0400 lshift8 pdata ,temp 
+7527 18418436 or_into 0x36 ,temp 
+7528 d8c041de arg mem_link_key + 16 ,contr 
+7529 18007204 force 4 ,loopcnt 
+752a 20407312 call pad_xor 
+752b 204072c8 call sha_init 
+752c 204072cf call sha 
+752d 58627464 setarg 0x627464 
+752e 1fed7e00 lshift8 pdata ,pdata 
+752f 1fe1fe6b or_into 0x6b ,pdata 
+7530 67e204a8 store 4 ,memdat 
+7531 d8c005f5 arg mem_addr_value + 12 ,contr 
+7532 18007203 force 3 ,loopcnt 
+7533 2040744f call memcpy_dword_swap 
+7534 58800000 setarg 0x800000 
+7535 1fed7e00 lshift8 pdata ,pdata 
+7536 e7e20005 istore 4 ,contw 
+7537 df200005 arg 5 ,loopcnt 
+7538 20407d25 call memset0 
+7539 58000280 setarg 640 
+753a e7e20005 istore 4 ,contw 
+753b 204072cf call sha 
+753c 2040730b call sha_result 
+753d d8c00900 arg memresult ,contr 
+753e d8a005c8 arg memahsave ,contw 
+753f 20407d18 call memcpy32 
+7540 585c5c5c setarg 0x5c5c5c 
+7541 1fed0400 lshift8 pdata ,temp 
+7542 1841845c or_into 0x5c ,temp 
+7543 d8c041de arg mem_link_key + 16 ,contr 
+7544 18007204 force 4 ,loopcnt 
+7545 202074a4 branch sha_end_common 
+
+function_h5:
+7546 d8c00910 arg mem_sp_calc_result_high ,contr 
+7547 d8a00454 arg mem_input_store ,contw 
+7548 20407d1a call memcpy16 
+7549 58000900 setarg mem_sp_random_remote + 16 
+754a 67e10940 store 2 ,mem_sp_prarm_stack 
+754b 58000434 setarg mem_random_number + 16 
+754c e7e10005 istore 2 ,contw 
+754d 58363636 setarg 0x363636 
+754e 1fed0400 lshift8 pdata ,temp 
+754f 18418436 or_into 0x36 ,temp 
+7550 d8c00464 arg mem_input_store + 16 ,contr 
+7551 18007204 force 4 ,loopcnt 
+7552 20407312 call pad_xor 
+7553 204072c8 call sha_init 
+7554 204072cf call sha 
+7555 d8a004a8 arg memdat ,contw 
+7556 6fe10940 fetch 2 ,mem_sp_prarm_stack 
+7557 1fe20c00 copy pdata ,contr 
+7558 2040744e call memcpy_dword_swap4 
+7559 6fe10942 fetch 2 ,mem_sp_prarm_stack + 2 
+755a 1fe20c00 copy pdata ,contr 
+755b 2040744e call memcpy_dword_swap4 
+755c 58800000 setarg 0x800000 
+755d 1fed7e00 lshift8 pdata ,pdata 
+755e e7e20005 istore 4 ,contw 
+755f df200003 arg 3 ,loopcnt 
+7560 20407d25 call memset0 
+7561 58000300 setarg 768 
+7562 e7e20005 istore 4 ,contw 
+7563 204072cf call sha 
+7564 2040730b call sha_result 
+7565 d8c00900 arg memresult ,contr 
+7566 d8a005c8 arg memahsave ,contw 
+7567 20407d18 call memcpy32 
+7568 585c5c5c setarg 0x5c5c5c 
+7569 1fed0400 lshift8 pdata ,temp 
+756a 1841845c or_into 0x5c ,temp 
+756b d8c00464 arg mem_input_store + 16 ,contr 
+756c 18007204 force 4 ,loopcnt 
+756d 202074a4 branch sha_end_common 
+
+sp_initialize_256:
+756e 4740c030 bpatchx patch30_1 ,mem_patch30 
+756f 6fe0c6b7 fetch 1 ,mem_secure_connections_enable 
+7570 243a758f nbranch sp_pubkey_calc_256 ,blank 
+
+sc_reset:
+7571 7046b900 jam sp_calc_standby ,mem_sc_calc 
+7572 7046ba00 jam sp_key_invalid ,mem_sc_local_key_invalid 
+7573 20600000 rtn 
+
+sp_wait_pubkey_calc_256_done:
+7574 6fe0c6b7 fetch 1 ,mem_secure_connections_enable 
+7575 207a0000 rtn blank 
+7576 6fe0c6ba fetch 1 ,mem_sc_local_key_invalid 
+7577 c1018000 rtneq sp_key_valid_256 
+7578 204075c4 call sp_calc_sequence_256 
+7579 20207574 branch sp_wait_pubkey_calc_256_done 
+
+sp_debug_private_256:
+757a d8a046bb arg mem_sc_private_key_256 ,contw 
+757b 38001abd setsect 0 ,0x1abd 
+757c 3805b34f setsect 1 ,0x1b34f 
+757d 38099b8a setsect 2 ,0x19b8a 
+757e 380e6562 setsect 3 ,0x26562 
+757f e7e48005 istore 9 ,contw 
+7580 380340b7 setsect 0 ,0x340b7 
+7581 38041efa setsect 1 ,0x1efa 
+7582 3808aff6 setsect 2 ,0xaff6 
+7583 380cfd41 setsect 3 ,0xfd41 
+7584 e7e48005 istore 9 ,contw 
+7585 3803d210 setsect 0 ,0x3d210 
+7586 38066cf8 setsect 1 ,0x26cf8 
+7587 380b874c setsect 2 ,0x3874c 
+7588 380f157c setsect 3 ,0x3157c 
+7589 e7e48005 istore 9 ,contw 
+758a 3802d4a3 setsect 0 ,0x2d4a3 
+758b 3807d27d setsect 1 ,0x3d27d 
+758c 38080003 setsect 2 ,0x3 
+758d e7e28005 istore 5 ,contw 
+758e 20600000 rtn 
+
+sp_pubkey_calc_256:
+758f 6fe0c6ba fetch 1 ,mem_sc_local_key_invalid 
+7590 c1800000 rtnne sp_key_invalid 
+7591 6fe0c6b9 fetch 1 ,mem_sc_calc 
+7592 c1800000 rtnne sp_calc_standby 
+7593 20406e7f call init_memp_256 
+7594 d8a046bb arg mem_sc_private_key_256 ,contw 
+7595 18000e0f force 15 ,queue 
+7596 2040705f call random_generator 
+7597 180a7e00 random pdata 
+7598 1fe37e00 rshift pdata ,pdata 
+7599 e7e10005 istore 2 ,contw 
+759a 6fe0c6b6 fetch 1 ,mem_sp_debug_mode 
+759b 245a757a ncall sp_debug_private_256 ,blank 
+759c d8a00628 arg mem_k_256 ,contw 
+759d d8c046bb arg mem_sc_private_key_256 ,contr 
+759e 20407d18 call memcpy32 
+759f d8a00508 arg mem_ax_256 ,contw 
+75a0 d8c00820 arg mem_gx_256 ,contr 
+75a1 20407d0d call memcpy64 
+75a2 d8a00548 arg mem_az_256 ,contw 
+75a3 20407d30 call clear_mem_256 
+75a4 70054801 jam 1 ,mem_az_256 
+75a5 204075dc call eckp_calc_init_256 
+75a6 7046b903 jam sp_calc_pubkey_256 ,mem_sc_calc 
+75a7 20600000 rtn 
+
+sp_pubkey_generated_256:
+75a8 d8a046db arg mem_sc_pubkey_local_x_256 ,contw 
+75a9 d8c00568 arg mem_bx_256 ,contr 
+75aa 20407d0d call memcpy64 
+75ab 7046ba03 jam sp_key_valid_256 ,mem_sc_local_key_invalid 
+75ac 7046b900 jam sp_calc_standby ,mem_sc_calc 
+75ad 20600000 rtn 
+
+sp_dhkey_calc_256:
+75ae 6fe0887b fetch 1 ,mem_sp_dhkey_invalid 
+75af c1800000 rtnne sp_key_invalid 
+75b0 6fe0c6b9 fetch 1 ,mem_sc_calc 
+75b1 c1800000 rtnne sp_calc_standby 
+75b2 d8a00628 arg mem_k_256 ,contw 
+75b3 d8c046bb arg mem_sc_private_key_256 ,contr 
+75b4 20407d18 call memcpy32 
+75b5 d8a00508 arg mem_ax_256 ,contw 
+75b6 d8c00880 arg mem_le_pubkey_remote_x_256 ,contr 
+75b7 20407d0d call memcpy64 
+75b8 d8a00548 arg mem_az_256 ,contw 
+75b9 20407d30 call clear_mem_256 
+75ba 70054801 jam 1 ,mem_az_256 
+75bb 204075dc call eckp_calc_init_256 
+75bc 7046b904 jam sp_calc_dhkey_256 ,mem_sc_calc 
+75bd 20600000 rtn 
+
+sp_dhkey_generated_256:
+75be d8a008c0 arg mem_le_dhkey_256 ,contw 
+75bf d8c00568 arg mem_bx_256 ,contr 
+75c0 20407d18 call memcpy32 
+75c1 70087b03 jam sp_key_valid_256 ,mem_sp_dhkey_invalid 
+75c2 7046b900 jam sp_calc_standby ,mem_sc_calc 
+75c3 20600000 rtn 
+
+sp_calc_sequence_256:
+75c4 6fe0c6b7 fetch 1 ,mem_secure_connections_enable 
+75c5 207a0000 rtn blank 
+75c6 6fe0c6b9 fetch 1 ,mem_sc_calc 
+75c7 207a0000 rtn blank 
+75c8 1fe0fe80 increase 0x80 ,pdata 
+75c9 67e0c6b9 store 1 ,mem_sc_calc 
+75ca c3838000 rtnbit1 7 
+75cb 6fe104a5 fetch 2 ,mem_ec_loopc 
+75cc 203a75ce branch sp_calc_sequence_done_256 ,blank 
+75cd 202075d4 branch eckp_calc_256 
+
+sp_calc_sequence_done_256:
+75ce 47414030 bpatchx patch30_2 ,mem_patch30 
+75cf 204075e9 call ecunmapz_256 
+75d0 6fe0c6b9 fetch 1 ,mem_sc_calc 
+75d1 c001f5a8 beq sp_calc_pubkey_256 ,sp_pubkey_generated_256 
+75d2 c00275be beq sp_calc_dhkey_256 ,sp_dhkey_generated_256 
+75d3 20600000 rtn 
+
+eckp_calc_256:
+75d4 204075fb call ecdbl_256 
+75d5 6fe104a5 fetch 2 ,mem_ec_loopc 
+75d6 1fe0ffff increase -1 ,pdata 
+75d7 67e104a5 store 2 ,mem_ec_loopc 
+75d8 d8c00628 arg mem_k_256 ,contr 
+75d9 204070a9 call bn_testbit 
+75da 20608000 rtn true 
+75db 2020764c branch ecadd_256 
+
+eckp_calc_init_256:
+75dc 4741c030 bpatchx patch30_3 ,mem_patch30 
+75dd 58000100 setarg 256 
+75de 67e104a5 store 2 ,mem_ec_loopc 
+
+eckp_calc_init_256_1:
+75df 6fe104a5 fetch 2 ,mem_ec_loopc 
+75e0 207a0000 rtn blank 
+75e1 1fe0ffff increase -1 ,pdata 
+75e2 67e104a5 store 2 ,mem_ec_loopc 
+75e3 d8c00628 arg mem_k_256 ,contr 
+75e4 204070a9 call bn_testbit 
+75e5 2020f5df branch eckp_calc_init_256_1 ,true 
+75e6 d8c00508 arg mem_ax_256 ,contr 
+75e7 d8a005c8 arg mem_cx_256 ,contw 
+75e8 20207d0c branch memcpy96 
+
+ecunmapz_256:
+75e9 da200608 arg mem_cz_256 ,rega 
+75ea d8a00708 arg mem_t3_256 ,contw 
+75eb 204076b8 call bn_invmod_256 
+75ec da200708 arg mem_t3_256 ,rega 
+75ed d8a006a8 arg mem_t1_256 ,contw 
+75ee 2040778e call bn_sqrmod_256 
+75ef da2005c8 arg mem_cx_256 ,rega 
+75f0 da4006a8 arg mem_t1_256 ,regb 
+75f1 d8a00568 arg mem_bx_256 ,contw 
+75f2 204076f6 call bn_mulmod_256 
+75f3 da200708 arg mem_t3_256 ,rega 
+75f4 da4006a8 arg mem_t1_256 ,regb 
+75f5 d8a006e8 arg mem_t2_256 ,contw 
+75f6 204076f6 call bn_mulmod_256 
+75f7 da2005e8 arg mem_cy_256 ,rega 
+75f8 da4006e8 arg mem_t2_256 ,regb 
+75f9 d8a00588 arg mem_by_256 ,contw 
+75fa 202076f6 branch bn_mulmod_256 
+
+ecdbl_256:
+75fb da200608 arg mem_cz_256 ,rega 
+75fc d8a006e8 arg mem_t2_256 ,contw 
+75fd 2040778e call bn_sqrmod_256 
+75fe da2006e8 arg mem_t2_256 ,rega 
+75ff d8a00708 arg mem_t3_256 ,contw 
+7600 2040778e call bn_sqrmod_256 
+7601 da200800 arg mem_a_256 ,rega 
+7602 da400708 arg mem_t3_256 ,regb 
+7603 d8a00708 arg mem_t3_256 ,contw 
+7604 204076f6 call bn_mulmod_256 
+7605 da2005c8 arg mem_cx_256 ,rega 
+7606 d8a006e8 arg mem_t2_256 ,contw 
+7607 2040778e call bn_sqrmod_256 
+7608 d8c006e8 arg mem_t2_256 ,contr 
+7609 d8a006a8 arg mem_t1_256 ,contw 
+760a 20407d18 call memcpy32 
+760b da2006a8 arg mem_t1_256 ,rega 
+760c 20407795 call bn_lshiftmod_256 
+760d da2006e8 arg mem_t2_256 ,rega 
+760e da4006a8 arg mem_t1_256 ,regb 
+760f d8a006e8 arg mem_t2_256 ,contw 
+7610 20407792 call bn_addmod_256 
+7611 da2006e8 arg mem_t2_256 ,rega 
+7612 da400708 arg mem_t3_256 ,regb 
+7613 d8a006e8 arg mem_t2_256 ,contw 
+7614 20407792 call bn_addmod_256 
+7615 d8c005c8 arg mem_cx_256 ,contr 
+7616 d8a006a8 arg mem_t1_256 ,contw 
+7617 20407d18 call memcpy32 
+7618 da2005e8 arg mem_cy_256 ,rega 
+7619 d8a00708 arg mem_t3_256 ,contw 
+761a 2040778e call bn_sqrmod_256 
+761b da2006a8 arg mem_t1_256 ,rega 
+761c 20407795 call bn_lshiftmod_256 
+761d da2006a8 arg mem_t1_256 ,rega 
+761e 20407795 call bn_lshiftmod_256 
+761f da2006a8 arg mem_t1_256 ,rega 
+7620 da400708 arg mem_t3_256 ,regb 
+7621 d8a006a8 arg mem_t1_256 ,contw 
+7622 204076f6 call bn_mulmod_256 
+7623 da200708 arg mem_t3_256 ,rega 
+7624 d8a006c8 arg mem_t0_256 ,contw 
+7625 2040778e call bn_sqrmod_256 
+7626 da2006c8 arg mem_t0_256 ,rega 
+7627 20407795 call bn_lshiftmod_256 
+7628 da2006c8 arg mem_t0_256 ,rega 
+7629 20407795 call bn_lshiftmod_256 
+762a da2006c8 arg mem_t0_256 ,rega 
+762b 20407795 call bn_lshiftmod_256 
+762c d8c005e8 arg mem_cy_256 ,contr 
+762d d8a00708 arg mem_t3_256 ,contw 
+762e 20407d18 call memcpy32 
+762f da200708 arg mem_t3_256 ,rega 
+7630 20407795 call bn_lshiftmod_256 
+7631 da200708 arg mem_t3_256 ,rega 
+7632 da400608 arg mem_cz_256 ,regb 
+7633 d8a00608 arg mem_cz_256 ,contw 
+7634 204076f6 call bn_mulmod_256 
+7635 da2006e8 arg mem_t2_256 ,rega 
+7636 d8a00708 arg mem_t3_256 ,contw 
+7637 2040778e call bn_sqrmod_256 
+7638 da200708 arg mem_t3_256 ,rega 
+7639 da4006a8 arg mem_t1_256 ,regb 
+763a d8a00708 arg mem_t3_256 ,contw 
+763b 204077ab call bn_submod_256 
+763c da200708 arg mem_t3_256 ,rega 
+763d da4006a8 arg mem_t1_256 ,regb 
+763e d8a005c8 arg mem_cx_256 ,contw 
+763f 204077ab call bn_submod_256 
+7640 da2006a8 arg mem_t1_256 ,rega 
+7641 da4005c8 arg mem_cx_256 ,regb 
+7642 d8a00708 arg mem_t3_256 ,contw 
+7643 204077ab call bn_submod_256 
+7644 da200708 arg mem_t3_256 ,rega 
+7645 da4006e8 arg mem_t2_256 ,regb 
+7646 d8a00708 arg mem_t3_256 ,contw 
+7647 204076f6 call bn_mulmod_256 
+7648 da200708 arg mem_t3_256 ,rega 
+7649 da4006c8 arg mem_t0_256 ,regb 
+764a d8a005e8 arg mem_cy_256 ,contw 
+764b 202077ab branch bn_submod_256 
+
+ecadd_256:
+764c da200548 arg mem_az_256 ,rega 
+764d d8a00728 arg mem_t7_256 ,contw 
+764e 2040778e call bn_sqrmod_256 
+764f da2005c8 arg mem_cx_256 ,rega 
+7650 da400728 arg mem_t7_256 ,regb 
+7651 d8a006c8 arg mem_t0_256 ,contw 
+7652 204076f6 call bn_mulmod_256 
+7653 da200548 arg mem_az_256 ,rega 
+7654 da400728 arg mem_t7_256 ,regb 
+7655 d8a00728 arg mem_t7_256 ,contw 
+7656 204076f6 call bn_mulmod_256 
+7657 da2005e8 arg mem_cy_256 ,rega 
+7658 da400728 arg mem_t7_256 ,regb 
+7659 d8a006a8 arg mem_t1_256 ,contw 
+765a 204076f6 call bn_mulmod_256 
+765b da200608 arg mem_cz_256 ,rega 
+765c d8a00728 arg mem_t7_256 ,contw 
+765d 2040778e call bn_sqrmod_256 
+765e da200508 arg mem_ax_256 ,rega 
+765f da400728 arg mem_t7_256 ,regb 
+7660 d8a006e8 arg mem_t2_256 ,contw 
+7661 204076f6 call bn_mulmod_256 
+7662 da200608 arg mem_cz_256 ,rega 
+7663 da400728 arg mem_t7_256 ,regb 
+7664 d8a00728 arg mem_t7_256 ,contw 
+7665 204076f6 call bn_mulmod_256 
+7666 da200528 arg mem_ay_256 ,rega 
+7667 da400728 arg mem_t7_256 ,regb 
+7668 d8a00708 arg mem_t3_256 ,contw 
+7669 204076f6 call bn_mulmod_256 
+766a da4006c8 arg mem_t0_256 ,regb 
+766b da2006e8 arg mem_t2_256 ,rega 
+766c d8a00728 arg mem_t7_256 ,contw 
+766d 204077ab call bn_submod_256 
+766e da2006c8 arg mem_t0_256 ,rega 
+766f da4006e8 arg mem_t2_256 ,regb 
+7670 d8a006c8 arg mem_t0_256 ,contw 
+7671 20407792 call bn_addmod_256 
+7672 da4006a8 arg mem_t1_256 ,regb 
+7673 da200708 arg mem_t3_256 ,rega 
+7674 d8a006e8 arg mem_t2_256 ,contw 
+7675 204077ab call bn_submod_256 
+7676 da2006a8 arg mem_t1_256 ,rega 
+7677 da400708 arg mem_t3_256 ,regb 
+7678 d8a006a8 arg mem_t1_256 ,contw 
+7679 20407792 call bn_addmod_256 
+767a da2006a8 arg mem_t1_256 ,rega 
+767b da400728 arg mem_t7_256 ,regb 
+767c d8a006a8 arg mem_t1_256 ,contw 
+767d 204076f6 call bn_mulmod_256 
+767e da200608 arg mem_cz_256 ,rega 
+767f da400548 arg mem_az_256 ,regb 
+7680 d8a00708 arg mem_t3_256 ,contw 
+7681 204076f6 call bn_mulmod_256 
+7682 da200708 arg mem_t3_256 ,rega 
+7683 da400728 arg mem_t7_256 ,regb 
+7684 d8a00608 arg mem_cz_256 ,contw 
+7685 204076f6 call bn_mulmod_256 
+7686 da200728 arg mem_t7_256 ,rega 
+7687 d8a00728 arg mem_t7_256 ,contw 
+7688 2040778e call bn_sqrmod_256 
+7689 da200728 arg mem_t7_256 ,rega 
+768a da4006c8 arg mem_t0_256 ,regb 
+768b d8a00708 arg mem_t3_256 ,contw 
+768c 204076f6 call bn_mulmod_256 
+768d da200728 arg mem_t7_256 ,rega 
+768e da4006a8 arg mem_t1_256 ,regb 
+768f d8a006a8 arg mem_t1_256 ,contw 
+7690 204076f6 call bn_mulmod_256 
+7691 da2006e8 arg mem_t2_256 ,rega 
+7692 d8a005c8 arg mem_cx_256 ,contw 
+7693 2040778e call bn_sqrmod_256 
+7694 da2005c8 arg mem_cx_256 ,rega 
+7695 da400708 arg mem_t3_256 ,regb 
+7696 d8a005c8 arg mem_cx_256 ,contw 
+7697 204077ab call bn_submod_256 
+7698 d8c005c8 arg mem_cx_256 ,contr 
+7699 d8a00728 arg mem_t7_256 ,contw 
+769a 20407d18 call memcpy32 
+769b da200728 arg mem_t7_256 ,rega 
+769c 20407795 call bn_lshiftmod_256 
+769d da200708 arg mem_t3_256 ,rega 
+769e da400728 arg mem_t7_256 ,regb 
+769f d8a00708 arg mem_t3_256 ,contw 
+76a0 204077ab call bn_submod_256 
+76a1 da200708 arg mem_t3_256 ,rega 
+76a2 da4006e8 arg mem_t2_256 ,regb 
+76a3 d8a006e8 arg mem_t2_256 ,contw 
+76a4 204076f6 call bn_mulmod_256 
+76a5 da2006e8 arg mem_t2_256 ,rega 
+76a6 da4006a8 arg mem_t1_256 ,regb 
+76a7 d8a005e8 arg mem_cy_256 ,contw 
+76a8 204077ab call bn_submod_256 
+76a9 da2005e8 arg mem_cy_256 ,rega 
+76aa da4007e0 arg mem_p_256 ,regb 
+76ab d8a005e8 arg mem_cy_256 ,contw 
+76ac 18002600 force 0 ,regc 
+76ad 6fe085e8 fetch 1 ,mem_cy_256 
+76ae 2feffe00 isolate1 0 ,pdata 
+76af 2040f790 call bn_add_256 ,true 
+76b0 1a626000 copy regc ,alarm 
+76b1 da2005e8 arg mem_cy_256 ,rega 
+76b2 204077c0 call bn_rshift_256 
+76b3 6fe08607 fetch 1 ,mem_cy5_256 
+76b4 2e0ffe00 isolate1 0 ,alarm 
+76b5 7920fe07 setflag true ,7 ,pdata 
+76b6 67e08607 store 1 ,mem_cy5_256 
+76b7 20600000 rtn 
+
+bn_invmod_256:
+76b8 18a21600 copy contw ,timeup 
+76b9 d8a006c8 arg mem_tmp0_256 ,contw 
+76ba 20407d30 call clear_mem_256 
+76bb 18007e00 force 0 ,pdata 
+76bc 67e206e8 store 4 ,mem_t2_256 
+76bd 7006c801 jam 1 ,mem_tmp0_256 
+76be d8a00648 arg mem_tmp1_256 ,contw 
+76bf 20407d32 call clear_mem_512 
+76c0 d8c007e0 arg mem_p_256 ,contr 
+76c1 d8a00688 arg mem_tmp2_256 ,contw 
+76c2 20407d18 call memcpy32 
+76c3 1a220c00 copy rega ,contr 
+76c4 d8a006a8 arg mem_tmp3_256 ,contw 
+76c5 20407d18 call memcpy32 
+
+bn_invmod_256_2:
+76c6 d8c006a8 arg mem_tmp3_256 ,contr 
+76c7 204077ca call bn_eq_zero_256 
+76c8 203a76ef branch bn_invmod_256_0 ,blank 
+76c9 da2006a8 arg mem_tmp3_256 ,rega 
+76ca da4006c8 arg mem_tmp0_256 ,regb 
+76cb 204077cd call bn_rshifteven_256 
+76cc da200688 arg mem_tmp2_256 ,rega 
+76cd da400648 arg mem_tmp1_256 ,regb 
+76ce 204077cd call bn_rshifteven_256 
+76cf da2006a8 arg mem_tmp3_256 ,rega 
+76d0 da400688 arg mem_tmp2_256 ,regb 
+76d1 204077c6 call bn_bigeq_256 
+76d2 202176e1 branch bn_invmod_256_1 ,positive 
+76d3 da200688 arg mem_tmp2_256 ,rega 
+76d4 da4006a8 arg mem_tmp3_256 ,regb 
+76d5 1a220a00 copy rega ,contw 
+76d6 204077be call bn_sub_256 
+76d7 da2006c8 arg mem_tmp0_256 ,rega 
+76d8 da400648 arg mem_tmp1_256 ,regb 
+76d9 1a420a00 copy regb ,contw 
+76da 20407790 call bn_add_256 
+76db efe08011 ifetch 1 ,rega 
+76dc 9a60a600 iadd regc ,regc 
+76dd efe08012 ifetch 1 ,regb 
+76de 9a60fe00 iadd regc ,pdata 
+76df e7e08012 istore 1 ,regb 
+76e0 202076c6 branch bn_invmod_256_2 
+
+bn_invmod_256_1:
+76e1 da2006a8 arg mem_tmp3_256 ,rega 
+76e2 da400688 arg mem_tmp2_256 ,regb 
+76e3 1a220a00 copy rega ,contw 
+76e4 204077be call bn_sub_256 
+76e5 da200648 arg mem_tmp1_256 ,rega 
+76e6 da4006c8 arg mem_tmp0_256 ,regb 
+76e7 1a420a00 copy regb ,contw 
+76e8 20407790 call bn_add_256 
+76e9 efe08011 ifetch 1 ,rega 
+76ea 9a60a600 iadd regc ,regc 
+76eb efe08012 ifetch 1 ,regb 
+76ec 9a60fe00 iadd regc ,pdata 
+76ed e7e08012 istore 1 ,regb 
+76ee 202076c6 branch bn_invmod_256_2 
+
+bn_invmod_256_0:
+76ef da200648 arg mem_tmp1_256 ,rega 
+76f0 19620a00 copy timeup ,contw 
+76f1 2040771f call bn_p256mod 
+76f2 da2007e0 arg mem_p_256 ,rega 
+76f3 19622400 copy timeup ,regb 
+76f4 19620a00 copy timeup ,contw 
+76f5 202077ab branch bn_submod_256 
+
+bn_mulmod_256:
+76f6 18a21600 copy contw ,timeup 
+76f7 18007000 force 0 ,regext_index 
+76f8 d8a00648 arg mem_tmp1_256 ,contw 
+76f9 20407d32 call clear_mem_512 
+76fa d8a0099e arg mem_regext ,contw 
+76fb 20407d32 call clear_mem_512 
+76fc 1a220c00 copy rega ,contr 
+76fd 70099e00 jam 0 ,mem_regext 
+76fe 58000000 setarg 0 
+76ff 20407788 call bn_load_mem 
+7700 1a420c00 copy regb ,contr 
+7701 2040778c call bn_load_256 
+7702 18000e00 force 0 ,queue 
+7703 d8a00648 arg mem_tmp1_256 ,contw 
+
+bn_mulmod_256_1:
+7704 d840099e arg mem_regext ,temp 
+7705 18e22400 copy queue ,regb 
+7706 1a4bfe00 lshift2 regb ,pdata 
+7707 9840a400 iadd temp ,regb 
+7708 18000400 force 0 ,temp 
+7709 18002600 force 0 ,regc 
+
+bn_mulmod_256_0:
+770a efe20005 ifetch 4 ,contw 
+770b 98002200 iforce rega 
+770c efe20012 ifetch 4 ,regb 
+770d 1a627000 copy regc ,regext_index 
+770e 9deffe00 imul32 regext ,pdata 
+770f 9a20fe00 iadd rega ,pdata 
+7710 9840fe00 iadd temp ,pdata 
+7711 e7e20005 istore 4 ,contw 
+7712 1fef0400 rshift32 pdata ,temp 
+7713 1a60a601 increase 1 ,regc 
+7714 2a61fe08 compare 8 ,regc ,0xff 
+7715 2420f70a nbranch bn_mulmod_256_0 ,true 
+7716 18427e00 deposit temp 
+7717 e7e20005 istore 4 ,contw 
+7718 18a08be0 increase -32 ,contw 
+7719 18e08e01 increase 1 ,queue 
+771a 28e1fe08 compare 8 ,queue ,0xff 
+771b 2420f704 nbranch bn_mulmod_256_1 ,true 
+771c da200648 arg mem_tmp1_256 ,rega 
+771d 19620a00 copy timeup ,contw 
+771e 2020771f branch bn_p256mod 
+
+bn_p256mod:
+771f 47424030 bpatchx patch30_4 ,mem_patch30 
+7720 18a21600 copy contw ,timeup 
+7721 1a226000 copy rega ,alarm 
+7722 da400688 arg mem_tmp2_256 ,regb 
+7723 1a420a00 copy regb ,contw 
+7724 20407d2d call memset0_4 
+7725 e7e40005 istore 8 ,contw 
+7726 1a208c2c add rega ,44 ,contr 
+7727 20407d14 call memcpy8 
+7728 20407d10 call memcpy12 
+7729 1a422200 copy regb ,rega 
+772a 20407795 call bn_lshiftmod_256 
+772b da400688 arg mem_tmp2_256 ,regb 
+772c 1e022200 copy alarm ,rega 
+772d 19620a00 copy timeup ,contw 
+772e 20407792 call bn_addmod_256 
+772f da400688 arg mem_tmp2_256 ,regb 
+7730 1a420a00 copy regb ,contw 
+7731 20407d2d call memset0_4 
+7732 e7e40005 istore 8 ,contw 
+7733 1e008c30 add alarm ,48 ,contr 
+7734 20407d1a call memcpy16 
+7735 20407d2d call memset0_4 
+7736 1a422200 copy regb ,rega 
+7737 20407795 call bn_lshiftmod_256 
+7738 da400688 arg mem_tmp2_256 ,regb 
+7739 19622200 copy timeup ,rega 
+773a 1a220a00 copy rega ,contw 
+773b 20407792 call bn_addmod_256 
+773c da400688 arg mem_tmp2_256 ,regb 
+773d 1a420a00 copy regb ,contw 
+773e 1e008c20 add alarm ,32 ,contr 
+773f 20407d10 call memcpy12 
+7740 20407d2d call memset0_4 
+7741 e7e40005 istore 8 ,contw 
+7742 1e008c38 add alarm ,56 ,contr 
+7743 20407d14 call memcpy8 
+7744 19622200 copy timeup ,rega 
+7745 1a220a00 copy rega ,contw 
+7746 20407792 call bn_addmod_256 
+7747 da400688 arg mem_tmp2_256 ,regb 
+7748 1a420a00 copy regb ,contw 
+7749 1e008c24 add alarm ,36 ,contr 
+774a 20407d10 call memcpy12 
+774b 1e008c34 add alarm ,52 ,contr 
+774c 20407d10 call memcpy12 
+774d 1e008c34 add alarm ,52 ,contr 
+774e 20407d11 call memcpy4 
+774f 1e008c20 add alarm ,32 ,contr 
+7750 20407d11 call memcpy4 
+7751 19622200 copy timeup ,rega 
+7752 1a220a00 copy rega ,contw 
+7753 20407792 call bn_addmod_256 
+7754 da400688 arg mem_tmp2_256 ,regb 
+7755 1a420a00 copy regb ,contw 
+7756 1e008c2c add alarm ,44 ,contr 
+7757 20407d10 call memcpy12 
+7758 20407d2d call memset0_4 
+7759 e7e40005 istore 8 ,contw 
+775a 1e008c20 add alarm ,32 ,contr 
+775b 20407d11 call memcpy4 
+775c 1e008c28 add alarm ,40 ,contr 
+775d 20407d11 call memcpy4 
+775e 19622200 copy timeup ,rega 
+775f 1a220a00 copy rega ,contw 
+7760 204077ab call bn_submod_256 
+7761 da400688 arg mem_tmp2_256 ,regb 
+7762 1a420a00 copy regb ,contw 
+7763 1e008c30 add alarm ,48 ,contr 
+7764 20407d14 call memcpy8 
+7765 20407d14 call memcpy8 
+7766 18007e00 force 0 ,pdata 
+7767 e7e40005 istore 8 ,contw 
+7768 1e008c24 add alarm ,36 ,contr 
+7769 20407d11 call memcpy4 
+776a 1e008c2c add alarm ,44 ,contr 
+776b 20407d11 call memcpy4 
+776c 19622200 copy timeup ,rega 
+776d 1a220a00 copy rega ,contw 
+776e 204077ab call bn_submod_256 
+776f da400688 arg mem_tmp2_256 ,regb 
+7770 1a420a00 copy regb ,contw 
+7771 1e008c34 add alarm ,52 ,contr 
+7772 20407d10 call memcpy12 
+7773 1e008c20 add alarm ,32 ,contr 
+7774 20407d10 call memcpy12 
+7775 20407d2d call memset0_4 
+7776 1e008c30 add alarm ,48 ,contr 
+7777 20407d11 call memcpy4 
+7778 19622200 copy timeup ,rega 
+7779 1a220a00 copy rega ,contw 
+777a 204077ab call bn_submod_256 
+777b da400688 arg mem_tmp2_256 ,regb 
+777c 1a420a00 copy regb ,contw 
+777d 1e008c38 add alarm ,56 ,contr 
+777e 20407d14 call memcpy8 
+777f 20407d2d call memset0_4 
+7780 1e008c24 add alarm ,36 ,contr 
+7781 20407d10 call memcpy12 
+7782 20407d2d call memset0_4 
+7783 1e008c34 add alarm ,52 ,contr 
+7784 20407d11 call memcpy4 
+7785 19622200 copy timeup ,rega 
+7786 1a220a00 copy rega ,contw 
+7787 202077ab branch bn_submod_256 
+
+bn_load_mem:
+7788 18007220 force 32 ,loopcnt 
+7789 d8a0099e arg mem_regext ,contw 
+778a 98a08a00 iadd contw ,contw 
+778b 20207d6d branch memcpy 
+
+bn_load_256:
+778c 18007208 force 8 ,loopcnt 
+778d 2020713e branch bn_load_0 
+
+bn_sqrmod_256:
+778e 1a222400 copy rega ,regb 
+778f 202076f6 branch bn_mulmod_256 
+
+bn_add_256:
+7790 18007208 force 8 ,loopcnt 
+7791 202070cf branch bn_add + 1 
+
+bn_addmod_256:
+7792 20407790 call bn_add_256 
+7793 18a22200 copy contw ,rega 
+7794 20207796 branch bn_lshiftmod_ismod_256 
+
+bn_lshiftmod_256:
+7795 204077c3 call bn_lshift_256 
+
+bn_lshiftmod_ismod_256:
+7796 2a6ffe00 isolate1 0 ,regc 
+7797 2020f79f branch bn_lshiftmod_p_256 ,true 
+7798 da4007e0 arg mem_p_256 ,regb 
+7799 1a222600 copy rega ,regc 
+779a 1a20a3e0 increase -32 ,rega 
+779b 204077c6 call bn_bigeq_256 
+779c 24610000 nrtn positive 
+779d 1a622200 copy regc ,rega 
+779e 202077a7 branch sub_p2_256 
+
+bn_lshiftmod_p_256:
+779f 204077a7 call sub_p2_256 
+77a0 1a222600 copy rega ,regc 
+77a1 1a20a3e0 increase -32 ,rega 
+77a2 da4007e0 arg mem_p_256 ,regb 
+77a3 204077c6 call bn_bigeq_256 
+77a4 24610000 nrtn positive 
+77a5 1a622200 copy regc ,rega 
+77a6 202077a7 branch sub_p2_256 
+
+sub_p2_256:
+77a7 1a20a3e0 increase -32 ,rega 
+77a8 da4007e0 arg mem_p_256 ,regb 
+77a9 1a220a00 copy rega ,contw 
+77aa 202077be branch bn_sub_256 
+
+bn_submod_256:
+77ab 204077be call bn_sub_256 
+77ac 2020f7b5 branch bn_submod_256_np ,true 
+77ad 18a0a3e0 add contw ,-32 ,rega 
+77ae da4007e0 arg mem_p_256 ,regb 
+77af 204077c6 call bn_bigeq_256 
+77b0 24610000 nrtn positive 
+77b1 da4007e0 arg mem_p_256 ,regb 
+77b2 18a0a3e0 add contw ,-32 ,rega 
+77b3 1a220a00 copy rega ,contw 
+77b4 202077be branch bn_sub_256 
+
+bn_submod_256_np:
+77b5 18a0a3e0 add contw ,-32 ,rega 
+77b6 da4007e0 arg mem_p_256 ,regb 
+77b7 1a220a00 copy rega ,contw 
+77b8 20407790 call bn_add_256 
+77b9 20608000 rtn true 
+77ba 18a0a3e0 add contw ,-32 ,rega 
+77bb da4007e0 arg mem_p_256 ,regb 
+77bc 1a220a00 copy rega ,contw 
+77bd 20207790 branch bn_add_256 
+
+bn_sub_256:
+77be 18007208 force 8 ,loopcnt 
+77bf 202070dd branch bn_sub + 1 
+
+bn_rshift_256:
+77c0 18007208 force 8 ,loopcnt 
+77c1 1a20a21c increase 28 ,rega 
+77c2 202070ec branch bn_rshift 
+
+bn_lshift_256:
+77c3 18007208 force 8 ,loopcnt 
+77c4 18002600 force 0 ,regc 
+77c5 202070fa branch bn_lshift_0 
+
+bn_bigeq_256:
+77c6 18007208 force 8 ,loopcnt 
+77c7 1a20a21c increase 28 ,rega 
+77c8 1a40a41c increase 28 ,regb 
+77c9 202070c4 branch bn_bigeq_0 
+
+bn_eq_zero_256:
+77ca efe40006 ifetch 8 ,contr 
+77cb 247a0000 nrtn blank 
+77cc 202070b2 branch bn_eq_zero 
+
+bn_rshifteven_256:
+77cd 1a226000 copy rega ,alarm 
+
+bn_rshifteven_256_1:
+77ce 1e022200 copy alarm ,rega 
+77cf efe08011 ifetch 1 ,rega 
+77d0 2feffe00 isolate1 0 ,pdata 
+77d1 20608000 rtn true 
+77d2 204077c0 call bn_rshift_256 
+77d3 efe08012 ifetch 1 ,regb 
+77d4 2fec0000 isolate0 0 ,pdata 
+77d5 2020f7dd branch bn_rshifteven_256_0 ,true 
+77d6 da2007e0 arg mem_p_256 ,rega 
+77d7 1a420a00 copy regb ,contw 
+77d8 20407790 call bn_add_256 
+77d9 efe08012 ifetch 1 ,regb 
+77da 9a60fe00 iadd regc ,pdata 
+77db e7e08012 istore 1 ,regb 
+77dc 1a40a5e0 increase -32 ,regb 
+
+bn_rshifteven_256_0:
+77dd 1a40a220 add regb ,32 ,rega 
+77de 18007209 force 9 ,loopcnt 
+77df 204070ec call bn_rshift 
+77e0 202077ce branch bn_rshifteven_256_1 
+
+ui_init:
+77e1 20401547 call lpm_disable_exen_output 
+77e2 20758000 rtn wake 
+77e3 204077e8 call ui_button_init 
+77e4 2040788e call ui_timer_init 
+77e5 2020781d branch ui_led_init_global 
+
+ui_dispatch:
+77e6 2040783e call ui_led_dispatch 
+77e7 2020787d branch ui_timer_check 
+
+ui_button_init:
+77e8 6fe0c78f fetch 1 ,mem_ui_button_gpio 
+77e9 c17f8000 rtneq ui_button_gpio_disable 
+77ea 98000400 iforce temp 
+77eb 204060b8 call gpio_config_output 
+77ec 6848c78f fetcht 1 ,mem_ui_button_gpio 
+77ed 204060b4 call gpio_out_inactive 
+77ee 20000064 nop 100 
+77ef 6848c78f fetcht 1 ,mem_ui_button_gpio 
+77f0 2040609f call gpio_config_input 
+77f1 202077f2 branch ui_button_polling 
+
+ui_button_polling:
+77f2 4742c030 bpatchx patch30_5 ,mem_patch30 
+77f3 6fe0c78f fetch 1 ,mem_ui_button_gpio 
+77f4 c17f8000 rtneq ui_button_gpio_disable 
+77f5 1fe20400 copy pdata ,temp 
+77f6 204060a8 call gpio_get_bit 
+77f7 2420f804 nbranch ui_button_up ,true 
+
+ui_button_down:
+77f8 2040780e call ui_button_check_long_press 
+77f9 6fe1478b fetch 2 ,mem_ui_state_map 
+77fa 79207e0c set1 ui_state_btn_down ,pdata 
+77fb 67e1478b store 2 ,mem_ui_state_map 
+77fc 6fe0c782 fetch 1 ,mem_ui_button_last_state 
+77fd c1000000 rtneq ui_button_state_down 
+77fe 70478200 jam ui_button_state_down ,mem_ui_button_last_state 
+77ff 6fe0c78e fetch 1 ,mem_ui_button_timeout 
+7800 67e0c781 store 1 ,mem_ui_button_timer 
+7801 20407815 call lpm_button_get_wake_lock 
+7802 70095b2c jam bt_evt_button_down ,mem_fifo_temp 
+7803 2020789f branch ui_ipc_send_event 
+
+ui_button_up:
+7804 6fe1478b fetch 2 ,mem_ui_state_map 
+7805 793ffe0c set0 ui_state_btn_down ,pdata 
+7806 67e1478b store 2 ,mem_ui_state_map 
+7807 6fe0c782 fetch 1 ,mem_ui_button_last_state 
+7808 c1008000 rtneq ui_button_state_up 
+7809 70478201 jam ui_button_state_up ,mem_ui_button_last_state 
+780a 70478100 jam 0 ,mem_ui_button_timer 
+780b 20407817 call lpm_button_clean_wake_lock 
+780c 70095b2d jam bt_evt_button_up ,mem_fifo_temp 
+780d 2020789f branch ui_ipc_send_event 
+
+ui_button_check_long_press:
+780e 6fe0c781 fetch 1 ,mem_ui_button_timer 
+780f 207a0000 rtn blank 
+7810 1fe0ffff increase -1 ,pdata 
+7811 67e0c781 store 1 ,mem_ui_button_timer 
+7812 247a0000 nrtn blank 
+7813 70095b10 jam bt_evt_button_long_pressed ,mem_fifo_temp 
+7814 2020789f branch ui_ipc_send_event 
+
+lpm_button_get_wake_lock:
+7815 d8e00007 arg wake_lock_button ,queue 
+7816 20201516 branch lpm_get_wake_lock 
+
+lpm_button_clean_wake_lock:
+7817 d8e00007 arg wake_lock_button ,queue 
+7818 2020151a branch lpm_put_wake_lock 
+
+calc_curr_struct_prt:
+7819 6fe14491 fetch 2 ,mem_ui_led_struct_ptr 
+781a 1a2fa40b mul32 rega ,led_offset_length ,regb 
+781b 9a40a400 iadd regb ,regb 
+781c 20600000 rtn 
+
+ui_led_init_global:
+781d 6fe0c490 fetch 1 ,mem_ui_led_struct_num 
+781e 207a0000 rtn blank 
+781f 1fe27200 copy pdata ,loopcnt 
+7820 6fe14491 fetch 2 ,mem_ui_led_struct_ptr 
+7821 1fe22400 copy pdata ,regb 
+
+ui_led_init_loop:
+7822 1a40a602 add regb ,led_offset_led_gpio ,regc 
+7823 e8408013 ifetcht 1 ,regc 
+7824 204060b8 call gpio_config_output 
+7825 20407847 call ui_led_off_static 
+7826 1a40a40b increase led_offset_length ,regb 
+7827 c2007822 loop ui_led_init_loop 
+7828 20600000 rtn 
+
+ui_led_on_global:
+7829 20407819 call calc_curr_struct_prt 
+782a 58000002 setarg ui_led_state_lighting 
+782b e7e08012 istore 1 ,regb 
+782c 20407877 call ui_led_stop_timer 
+782d 2020784c branch ui_led_on_static 
+
+ui_led_blink_stop_global:
+
+ui_led_off_global:
+782e 20407819 call calc_curr_struct_prt 
+782f 58000003 setarg ui_led_state_darking 
+7830 e7e08012 istore 1 ,regb 
+7831 20407877 call ui_led_stop_timer 
+7832 20207847 branch ui_led_off_static 
+
+ui_led_blink_start_global:
+7833 20407819 call calc_curr_struct_prt 
+7834 58000001 setarg ui_led_state_blink_start 
+7835 e7e08012 istore 1 ,regb 
+7836 580000ff setarg led_infinite_flash_num 
+7837 e7e08005 istore 1 ,contw 
+7838 20207847 branch ui_led_off_static 
+
+ui_led_set_style_global:
+7839 20407819 call calc_curr_struct_prt 
+783a df20000b arg led_offset_length ,loopcnt 
+783b 1a620c00 copy regc ,contr 
+783c 1a420a00 copy regb ,contw 
+783d 20207d60 branch memcpy_fast 
+
+ui_led_dispatch:
+783e 6fe0c490 fetch 1 ,mem_ui_led_struct_num 
+783f 207a0000 rtn blank 
+7840 da200000 arg 0 ,rega 
+
+ui_led_blink_polling:
+7841 20407851 call ui_led_change_style_by_type 
+7842 1a20a201 increase 1 ,rega 
+7843 6fe0c490 fetch 1 ,mem_ui_led_struct_num 
+7844 9a267c00 isub rega ,null 
+7845 20628000 rtn zero 
+7846 20207841 branch ui_led_blink_polling 
+
+ui_led_off_static:
+7847 1a40a602 add regb ,led_offset_led_gpio ,regc 
+7848 e8408013 ifetcht 1 ,regc 
+7849 6fe0c09a fetch 1 ,mem_device_option 
+784a c0044933 beq dvc_op_mouse ,mouse_ui_led_off_static 
+784b 202060b4 branch gpio_out_inactive 
+
+ui_led_on_static:
+784c 1a40a602 add regb ,led_offset_led_gpio ,regc 
+784d e8408013 ifetcht 1 ,regc 
+784e 6fe0c09a fetch 1 ,mem_device_option 
+784f c004493f beq dvc_op_mouse ,mouse_ui_led_on_static 
+7850 202060b8 branch gpio_out_active 
+
+ui_led_change_style_by_type:
+7851 1a208e0b add rega ,ui_led_blink ,queue 
+7852 20407d82 call timer_check 
+7853 247a0000 nrtn blank 
+7854 20407819 call calc_curr_struct_prt 
+7855 efe08012 ifetch 1 ,regb 
+7856 c001784c beq ui_led_state_lighting ,ui_led_on_static 
+7857 c001f847 beq ui_led_state_darking ,ui_led_off_static 
+7858 c0007847 beq ui_led_state_blink_stop ,ui_led_off_static 
+7859 c002f865 beq ui_led_state_blink_darking ,ui_led_blink_state_darking 
+
+ui_led_blink_state_lighting:
+785a 2040784c call ui_led_on_static 
+785b 1a40a607 add regb ,led_offset_cb_ledon ,regc 
+785c 20407cdc call push_stack 
+785d efe10013 ifetch 2 ,regc 
+785e 20407e13 call callback_func 
+785f 20407ce8 call pop_stack 
+7860 58000005 setarg ui_led_state_blink_darking 
+7861 e7e08012 istore 1 ,regb 
+7862 1a40a603 add regb ,led_offset_on_time ,regc 
+7863 efe10013 ifetch 2 ,regc 
+7864 20207875 branch ui_led_blink_timer_start 
+
+ui_led_blink_state_darking:
+7865 20407847 call ui_led_off_static 
+7866 1a40a609 add regb ,led_offset_cb_ledoff ,regc 
+7867 20407cdc call push_stack 
+7868 efe10013 ifetch 2 ,regc 
+7869 20407e13 call callback_func 
+786a 20407ce8 call pop_stack 
+786b 1a40a601 add regb ,led_offset_blink_count ,regc 
+786c efe08013 ifetch 1 ,regc 
+786d c07ff871 beq led_infinite_flash_num ,ui_led_blink_infinite 
+786e 1fe0ffff increase -1 ,pdata 
+786f e7e08013 istore 1 ,regc 
+7870 203a782e branch ui_led_blink_stop_global ,blank 
+
+ui_led_blink_infinite:
+7871 58000004 setarg ui_led_state_blink_lighting 
+7872 e7e08012 istore 1 ,regb 
+7873 1a40a605 add regb ,led_offset_off_time ,regc 
+7874 efe10013 ifetch 2 ,regc 
+
+ui_led_blink_timer_start:
+7875 1a208e0b add rega ,ui_led_blink ,queue 
+7876 20207d74 branch timer_init 
+
+ui_led_stop_timer:
+7877 58000000 setarg 0 
+7878 20207875 branch ui_led_blink_timer_start 
+
+ui_timer_timeout:
+7879 58001000 setarg 0x1000 
+787a 1ff07e00 lshift16 pdata ,pdata 
+787b 9a40a400 iadd regb ,regb 
+787c 20600000 rtn 
+
+ui_timer_check:
+787d 47434030 bpatchx patch30_6 ,mem_patch30 
+787e da200000 arg 0 ,rega 
+787f 684a4783 fetcht 4 ,mem_ui_timer_last_btclk 
+7880 1c422400 copy clkn_bt ,regb 
+7881 1a427e00 copy regb ,pdata 
+7882 98467c00 isub temp ,null 
+7883 24417879 ncall ui_timer_timeout ,positive 
+
+ui_timer_check_loop:
+7884 1a427e00 copy regb ,pdata 
+7885 184084a0 increase 160 ,temp 
+7886 184084a0 increase 160 ,temp 
+7887 98467c00 isub temp ,null 
+7888 24217891 nbranch ui_timer_check_end ,positive 
+7889 1a20a201 increase 1 ,rega 
+788a 1a217e0f and rega ,0x0f ,pdata 
+788b 243a7884 nbranch ui_timer_check_loop ,blank 
+788c da200000 arg 0 ,rega 
+788d 20407898 call ui_timer_check_send_evt 
+
+ui_timer_init:
+788e 1c427e00 copy clkn_bt ,pdata 
+788f 67e24783 store 4 ,mem_ui_timer_last_btclk 
+7890 20600000 rtn 
+
+ui_timer_check_end:
+7891 4743c030 bpatchx patch30_7 ,mem_patch30 
+7892 1a227e00 copy rega ,pdata 
+7893 207a0000 rtn blank 
+7894 18408560 increase -160 ,temp 
+7895 18408560 increase -160 ,temp 
+7896 793f841c set0 28 ,temp 
+7897 604a4783 storet 4 ,mem_ui_timer_last_btclk 
+
+ui_timer_check_send_evt:
+7898 20203035 branch app_evt_timer 
+
+ui_ipc_get_lock:
+7899 70476f01 jam 1 ,mem_ipc_lock_bt 
+
+ui_ipc_get_lock_wait:
+789a 6fe0c770 fetch 1 ,mem_ipc_lock_c51 
+789b 243a789a nbranch ui_ipc_get_lock_wait ,blank 
+789c 20600000 rtn 
+
+ui_ipc_put_lock:
+789d 70476f00 jam 0 ,mem_ipc_lock_bt 
+789e 20600000 rtn 
+
+ui_ipc_send_event:
+789f 47444031 bpatchx patch31_0 ,mem_patch31 
+78a0 20407899 call ui_ipc_get_lock 
+78a1 1a227e00 copy rega ,pdata 
+78a2 67e20953 store 4 ,mem_ipc_rega_temp 
+78a3 da204771 arg mem_ipc_fifo_bt2c51 ,rega 
+78a4 20407e33 call fifo_in 
+78a5 6fe20953 fetch 4 ,mem_ipc_rega_temp 
+78a6 1fe22200 copy pdata ,rega 
+78a7 2020789d branch ui_ipc_put_lock 
+
+ui_ipc_send_cmd:
+78a8 4744c031 bpatchx patch31_1 ,mem_patch31 
+78a9 20407899 call ui_ipc_get_lock 
+78aa 1a227e00 copy rega ,pdata 
+78ab 67e20953 store 4 ,mem_ipc_rega_temp 
+78ac da204779 arg mem_ipc_fifo_c512bt ,rega 
+78ad 20407e33 call fifo_in 
+78ae 6fe20953 fetch 4 ,mem_ipc_rega_temp 
+78af 1fe22200 copy pdata ,rega 
+78b0 2020789d branch ui_ipc_put_lock 
+
+ui_ipc_clean_all_fifo:
+78b1 58000000 setarg 0 
+78b2 67e44779 store util_fifo_len ,mem_ipc_fifo_c512bt 
+78b3 67e44771 store util_fifo_len ,mem_ipc_fifo_bt2c51 
+78b4 20600000 rtn 
+
+check_51cmd:
+78b5 47454031 bpatchx patch31_2 ,mem_patch31 
+78b6 6fe0c1de fetch 1 ,mem_hci_cmd 
+78b7 247a0000 nrtn blank 
+78b8 da204779 arg mem_ipc_fifo_c512bt ,rega 
+78b9 20407e4b call fifo_is_empty 
+78ba 207a0000 rtn blank 
+78bb 70095200 jam ipc_continue_process ,mem_ipc_skip_continue_proc 
+78bc 204078c0 call check_51cmd_once 
+78bd 6fe08952 fetch 1 ,mem_ipc_skip_continue_proc 
+78be 203a78b5 branch check_51cmd ,blank 
+78bf 20600000 rtn 
+
+check_51cmd_once:
+78c0 20407899 call ui_ipc_get_lock 
+78c1 da204779 arg mem_ipc_fifo_c512bt ,rega 
+78c2 20407e3f call fifo_out 
+78c3 1fe20400 copy pdata ,temp 
+78c4 2040789d call ui_ipc_put_lock 
+78c5 4745c031 bpatchx patch31_3 ,mem_patch31 
+78c6 18427e00 copy temp ,pdata 
+78c7 207a0000 rtn blank 
+78c8 c000f8f2 beq bt_cmd_start_discovery ,check_51cmd_start_discovery 
+78c9 c00178f7 beq bt_cmd_stop_discovery ,check_51cmd_stop_discovery 
+78ca c001f8fd beq bt_cmd_reconnect ,check_51cmd_reconnect 
+78cb c006f91c beq bt_cmd_start_adv ,check_51cmd_adv 
+78cc c0077922 beq bt_cmd_stop_adv ,check_51cmd_stop_adv 
+78cd c007f927 beq bt_cmd_start_direct_adv ,check_51cmd_direct_adv 
+78ce c008792d beq bt_cmd_stop_direct_adv ,check_51cmd_stop_direct_adv 
+78cf c009f937 beq bt_cmd_led_off ,check_51cmd_led_off 
+78d0 c00a7939 beq bt_cmd_led_on ,check_51cmd_led_on 
+78d1 c00af93b beq bt_cmd_led_blink ,check_51cmd_led_start_blink 
+78d2 c00b7945 beq bt_cmd_le_start_conn ,check_51cmd_le_start_con 
+78d3 c00bf948 beq bt_cmd_le_start_scan ,check_51cmd_start_scan 
+78d4 c00c794a beq bt_cmd_le_stop_scan ,check_51cmd_stop_scan 
+78d5 c00cf94d beq bt_cmd_enter_hibernate ,check_51cmd_hibernate 
+78d6 c00f795f beq bt_cmd_bb_reconn_cancel ,check_51cmd_bb_reconn_cancel 
+78d7 67e0895b store 1 ,mem_fifo_temp 
+78d8 2040599c call lmo_fifo_check 
+78d9 243a78f0 nbranch check_51cmd_restore ,blank 
+
+check_51cmd_once_continue:
+78da 6fe0895b fetch 1 ,mem_fifo_temp 
+78db c584f8eb bmark0 mark_context ,check_51cmd_check_idle 
+78dc 47464031 bpatchx patch31_4 ,mem_patch31 
+78dd 6fe0895b fetch 1 ,mem_fifo_temp 
+78de c00278ff beq bt_cmd_disconnect ,check_51cmd_disconnect 
+78df c002f902 beq bt_cmd_enter_sniff ,check_51cmd_enter_sniff 
+78e0 c003790d beq bt_cmd_exit_sniff ,check_51cmd_exit_sniff 
+78e1 c005790f beq bt_cmd_set_pin_code ,check_51cmd_pincode 
+78e2 c008f932 beq bt_cmd_le_disconnect ,check_51cmd_le_disconnect 
+78e3 c00df955 beq bt_cmd_le_smp_security_request ,check_51cmd_le_smp_sec_req 
+78e4 c0097936 beq bt_cmd_le_update_conn ,check_51cmd_ble_update_connect_param 
+78e5 c00ef956 beq bt_cmd_role_switch ,check_51cmd_role_switch 
+78e6 c00fe074 beq bt_cmd_store_reconn_info_le ,eeprom_store_le_reconn_info 
+78e7 c0106076 beq bt_cmd_store_reconn_info_bt ,eeprom_store_bd_reconn_info 
+78e8 c010f961 beq bt_cmd_dhkey_not_accept ,check_51cmd_dhkey_not_accept 
+78e9 c012dfa0 beq bt_cmd_store_reconn_info ,check_51cmd_store_reconn_info 
+78ea 20600000 rtn 
+
+check_51cmd_check_idle:
+78eb 67e0895b store 1 ,mem_fifo_temp 
+78ec 20400a5f call context_check_idle 
+78ed 2022f8f0 branch check_51cmd_restore ,zero 
+78ee 20400a67 call context_search_plap 
+78ef 24628000 nrtn zero 
+
+check_51cmd_restore:
+78f0 70095201 jam ipc_skip_continue_process ,mem_ipc_skip_continue_proc 
+78f1 202078a8 branch ui_ipc_send_cmd 
+
+check_51cmd_start_discovery:
+78f2 6fe1478b fetch 2 ,mem_ui_state_map 
+78f3 79207e06 set1 ui_state_bt_discovery ,pdata 
+78f4 67e1478b store 2 ,mem_ui_state_map 
+78f5 70409b03 jam 3 ,mem_scan_mode 
+78f6 20600000 rtn 
+
+check_51cmd_stop_discovery:
+78f7 70478900 jam 0 ,mem_hid_handshake_timer_count 
+78f8 70409b00 jam 0 ,mem_scan_mode 
+78f9 6fe1478b fetch 2 ,mem_ui_state_map 
+78fa 793ffe06 set0 ui_state_bt_discovery ,pdata 
+78fb 67e1478b store 2 ,mem_ui_state_map 
+78fc 20600000 rtn 
+
+check_51cmd_reconnect:
+78fd 7041de05 jam hci_cmd_create_conn ,mem_hci_cmd 
+78fe 20600000 rtn 
+
+check_51cmd_disconnect:
+78ff 70007d07 jam lmp_detach ,mem_lmo_opcode2 
+7900 70039e13 jam other_end_terminated ,mem_disconn_reason_send 
+7901 20600000 rtn 
+
+check_51cmd_enter_sniff:
+7902 70007d17 jam lmp_sniff_req ,mem_lmo_opcode2 
+7903 d8a003ac arg mem_sniff_payload ,contw 
+7904 58000000 setarg 0 
+7905 2d0ffe1b isolate1 27 ,clke_bt 
+7906 7920fe01 setflag true ,1 ,pdata 
+7907 e7e08005 istore 1 ,contw 
+7908 58000000 setarg 0 
+7909 e7e10005 istore 2 ,contw 
+790a 6fe34455 fetch 6 ,mem_sniff_param_interval 
+790b e7e30005 istore 6 ,contw 
+790c 20600000 rtn 
+
+check_51cmd_exit_sniff:
+790d 70007d18 jam lmp_unsniff_req ,mem_lmo_opcode2 
+790e 20600000 rtn 
+
+check_51cmd_pincode:
+790f 7003a802 jam pincode_state_pincode_ready ,mem_pincode_state 
+7910 6fe0804c fetch 1 ,mem_op 
+7911 c2817915 bbit1 op_inrand_req ,check_51cmd_pincode_pair_passive 
+7912 204059cf call tid_initiate 
+7913 70007d08 jam lmp_in_rand ,mem_lmo_opcode2 
+7914 20600000 rtn 
+
+check_51cmd_pincode_pair_passive:
+7915 793ffe02 set0 op_inrand_req ,pdata 
+7916 67e0804c store 1 ,mem_op 
+7917 204056ad call lmp_accept_inrand 
+7918 58000000 setarg 0 
+7919 7934fe01 setflag master ,smap_lmptid ,pdata 
+791a 67e08080 store 1 ,mem_lmo_tid2 
+791b 20600000 rtn 
+
+check_51cmd_adv:
+791c 70442501 jam on ,mem_le_adv_enable 
+791d 70442800 jam adv_ind ,mem_le_adv_type 
+791e 6fe1478b fetch 2 ,mem_ui_state_map 
+791f 79207e0b set1 ui_state_ble_adv ,pdata 
+7920 67e1478b store 2 ,mem_ui_state_map 
+7921 20600000 rtn 
+
+check_51cmd_stop_adv:
+7922 6fe1478b fetch 2 ,mem_ui_state_map 
+7923 793ffe0b set0 ui_state_ble_adv ,pdata 
+7924 67e1478b store 2 ,mem_ui_state_map 
+7925 70442500 jam off ,mem_le_adv_enable 
+7926 20600000 rtn 
+
+check_51cmd_direct_adv:
+7927 70442501 jam on ,mem_le_adv_enable 
+7928 70442801 jam adv_direct_ind ,mem_le_adv_type 
+7929 6fe1478b fetch 2 ,mem_ui_state_map 
+792a 79207e0b set1 ui_state_ble_adv ,pdata 
+792b 67e1478b store 2 ,mem_ui_state_map 
+792c 20600000 rtn 
+
+check_51cmd_stop_direct_adv:
+792d 6fe1478b fetch 2 ,mem_ui_state_map 
+792e 793ffe0b set0 ui_state_ble_adv ,pdata 
+792f 67e1478b store 2 ,mem_ui_state_map 
+7930 70442500 jam off ,mem_le_adv_enable 
+7931 20600000 rtn 
+
+check_51cmd_le_disconnect:
+7932 58000014 setarg 20 
+7933 67e102b5 store 2 ,mem_le_superto 
+7934 67e14392 store 2 ,mem_le_init_superto 
+7935 20202a57 branch le_send_terminate_ind_user_terminated 
+
+check_51cmd_ble_update_connect_param:
+7936 20202827 branch le_l2cap_tx_update_req 
+
+check_51cmd_led_off:
+7937 da200000 arg 0 ,rega 
+7938 2020782e branch ui_led_off_global 
+
+check_51cmd_led_on:
+7939 da200000 arg 0 ,rega 
+793a 20207829 branch ui_led_on_global 
+
+check_51cmd_led_start_blink:
+793b da200000 arg 0 ,rega 
+793c 20407819 call calc_curr_struct_prt 
+793d efe08012 ifetch 1 ,regb 
+793e c000f942 beq ui_led_state_blink_start ,check_51cmd_led_start_blink_in_blink 
+793f c0027942 beq ui_led_state_blink_lighting ,check_51cmd_led_start_blink_in_blink 
+7940 c002f942 beq ui_led_state_blink_darking ,check_51cmd_led_start_blink_in_blink 
+7941 20207833 branch ui_led_blink_start_global 
+
+check_51cmd_led_start_blink_in_blink:
+7942 efe08006 ifetch 1 ,contr 
+7943 c17f8000 rtneq led_infinite_flash_num 
+7944 20207833 branch ui_led_blink_start_global 
+
+check_51cmd_le_start_con:
+7945 7043e001 jam on ,mem_le_scan_enable 
+7946 7041de1b jam hci_cmd_le_create_conn ,mem_hci_cmd 
+7947 20600000 rtn 
+
+check_51cmd_start_scan:
+7948 7043e001 jam on ,mem_le_scan_enable 
+7949 20600000 rtn 
+
+check_51cmd_stop_scan:
+794a 7043e000 jam off ,mem_le_scan_enable 
+794b 7041de00 jam 0 ,mem_hci_cmd 
+794c 20600000 rtn 
+
+check_51cmd_hibernate:
+794d 6fe1445d fetch 2 ,mem_cb_before_hibernate 
+794e 20407e13 call callback_func 
+794f 6fe0c78f fetch 1 ,mem_ui_button_gpio 
+7950 c07ff953 beq ui_button_gpio_disable ,check_51cmd_hibernate_btn_disabled 
+7951 1fe20400 copy pdata ,temp 
+7952 2040609f call gpio_config_input 
+
+check_51cmd_hibernate_btn_disabled:
+7953 204078b1 call ui_ipc_clean_all_fifo 
+7954 202013f8 branch lpm_hibernate 
+
+check_51cmd_le_smp_sec_req:
+7955 20202869 branch le_send_smp_security_request 
+
+check_51cmd_role_switch:
+7956 70007d34 jam lmp_slot_offset ,mem_lmo_opcode2 
+7957 79200003 set1 mark_switch_initiated ,mark 
+7958 24748000 nrtn master 
+7959 70464200 jam switch_flag_init ,mem_switch_flag 
+795a 70007d13 jam lmp_switch_req ,mem_lmo_opcode2 
+795b 6fe080bd fetch 1 ,mem_connection_options 
+795c 793ffe02 set0 connection_switch ,pdata 
+795d 67e080bd store 1 ,mem_connection_options 
+795e 20600000 rtn 
+
+check_51cmd_bb_reconn_cancel:
+795f 18000e03 force page_length_timer ,queue 
+7960 20207d73 branch timer_stop 
+
+check_51cmd_dhkey_not_accept:
+7961 204059d8 call tid_set_reply 
+7962 70007e41 jam lmp_dhkey_check ,mem_lmi_opcode2 
+7963 20205649 branch lmp_reject_pdu_not_allowed 
+
+ui_check_paring_button:
+7964 6fe0c78b fetch 1 ,mem_ui_state_map 
+7965 c4060000 rtnbit0 ui_state_btn_down 
+7966 c4038000 rtnbit0 ui_state_bt_reconnect 
+7967 2020795f branch check_51cmd_bb_reconn_cancel 
+
+queue_init:
+7968 6fe1448e fetch 2 ,mem_queue_ptr 
+7969 1fe08a02 add pdata ,queue_offset_curr_num ,contw 
+796a 58000000 setarg 0 
+796b e7e18005 istore 3 ,contw 
+796c 20600000 rtn 
+
+queue_push:
+796d 20407e64 call disable_user 
+796e 204079a8 call queue_full 
+796f 207a0000 rtn blank 
+7970 6fe1448e fetch 2 ,mem_queue_ptr 
+7971 1fe0a402 add pdata ,queue_offset_curr_num ,regb 
+7972 e8408012 ifetcht 1 ,regb 
+7973 18408401 increase 1 ,temp 
+7974 e0408012 istoret 1 ,regb 
+7975 e840803f ifetcht 1 ,pdata 
+7976 18427200 copy temp ,loopcnt 
+7977 1fe0a404 add pdata ,queue_offset_write_ptr ,regb 
+7978 efe08012 ifetch 1 ,regb 
+7979 984ffe00 imul32 temp ,pdata 
+797a 98c08a00 iadd contr ,contw 
+797b 1a220c00 copy rega ,contr 
+
+calc_queue_next_ptr:
+797c 20407d6d call memcpy 
+797d 204079ac call queue_get_size 
+797e 1fe0ffff pincrease -1 
+797f e8408012 ifetcht 1 ,regb 
+7980 18408401 increase 1 ,temp 
+7981 98410400 iand temp ,temp 
+7982 e0408012 istoret 1 ,regb 
+7983 20207e62 branch enable_user 
+
+queue_pop:
+7984 20407e64 call disable_user 
+7985 204079a4 call queue_empty 
+7986 207a0000 rtn blank 
+7987 6fe1448e fetch 2 ,mem_queue_ptr 
+7988 1fe0a402 add pdata ,queue_offset_curr_num ,regb 
+7989 e8408012 ifetcht 1 ,regb 
+798a 184085ff increase -1 ,temp 
+798b e0408012 istoret 1 ,regb 
+798c e840803f ifetcht 1 ,pdata 
+798d 18427200 copy temp ,loopcnt 
+798e 1fe0a403 add pdata ,queue_offset_read_ptr ,regb 
+798f efe08012 ifetch 1 ,regb 
+7990 984ffe00 imul32 temp ,pdata 
+7991 98c08c00 iadd contr ,contr 
+7992 18c08c01 increase 1 ,contr 
+7993 1a220a00 copy rega ,contw 
+7994 2020797c branch calc_queue_next_ptr 
+
+queue_get_new_ele:
+7995 20407e64 call disable_user 
+7996 204079a4 call queue_empty 
+7997 207a0000 rtn blank 
+7998 6fe1448e fetch 2 ,mem_queue_ptr 
+7999 e840803f ifetcht 1 ,pdata 
+799a 18427200 copy temp ,loopcnt 
+799b 1fe0a403 add pdata ,queue_offset_read_ptr ,regb 
+799c efe08012 ifetch 1 ,regb 
+799d 984ffe00 imul32 temp ,pdata 
+799e 98c08c00 iadd contr ,contr 
+799f 18c08c01 increase 1 ,contr 
+79a0 18c22400 copy contr ,regb 
+79a1 1a220a00 copy rega ,contw 
+79a2 20407d6d call memcpy 
+79a3 20207e62 branch enable_user 
+
+queue_empty:
+79a4 6fe1448e fetch 2 ,mem_queue_ptr 
+79a5 1fe08c02 add pdata ,queue_offset_curr_num ,contr 
+79a6 efe08006 ifetch 1 ,contr 
+79a7 20600000 rtn 
+
+queue_full:
+79a8 204079ac call queue_get_size 
+79a9 e8408006 ifetcht 1 ,contr 
+79aa 98467e00 isub temp ,pdata 
+79ab 20600000 rtn 
+
+queue_get_size:
+79ac 6fe1448e fetch 2 ,mem_queue_ptr 
+79ad 1fe08c01 add pdata ,queue_offset_length ,contr 
+79ae efe08006 ifetch 1 ,contr 
+79af 20600000 rtn 
+
+usb_isr:
+79b0 4746c031 bpatchx patch31_5 ,mem_patch31 
+79b1 6ff08c23 fetch 1 ,core_usb_status 
+79b2 2feffe03 isolate1 usb_status_reset ,pdata 
+79b3 2040f9bc call usb_init ,true 
+79b4 6ff08c23 fetch 1 ,core_usb_status 
+79b5 67f08c23 store 1 ,core_usb_status 
+79b6 67e089f6 store 1 ,mem_usb_status 
+79b7 20407a11 call usb_nak_state_judge 
+79b8 20407a39 call usb_rx 
+79b9 20407c22 call usb0_tx 
+79ba 20407c6a call usb_tx 
+79bb 20207a09 branch usb_nak_state 
+
+usb_init:
+79bc 47474031 bpatchx patch31_6 ,mem_patch31 
+79bd 20406e20 call enable_authrom 
+79be 204079db call usb_init_param 
+79bf 708c0000 jam 0x00 ,core_usb_config 
+79c0 20002710 nop 10000 
+79c1 708c18c0 jam 0xc0 ,core_usb_trig 
+79c2 6ff10050 fetch 2 ,core_clkoff 
+79c3 793ffe0a set0 clock_off_usb ,pdata 
+79c4 67f10050 store 2 ,core_clkoff 
+79c5 708c1100 jam 0x0 ,core_usb_hmode 
+79c6 708c003c jam 0x3c ,core_usb_config 
+79c7 58000a4f setarg mem_usb_rxbuf 
+79c8 67f10c03 store 2 ,core_usb_rx_saddr 
+79c9 67f10c07 store 2 ,core_usb_rxptr 
+79ca 58000a8f setarg mem_usb_rxbuf_end 
+79cb 67f10c05 store 2 ,core_usb_rx_eaddr 
+79cc 708c1104 jam 0x4 ,core_usb_hmode 
+79cd 708c0200 jam 0 ,core_usb_addr 
+79ce 708c23ff jam 0xff ,core_usb_status 
+79cf 58000c4b setarg mem_usb_clear_mem_end 
+79d0 d8a00b59 arg mem_usb_clear_mem_start ,contw 
+79d1 98a67200 isub contw ,loopcnt 
+79d2 20207d34 branch clear_mem 
+
+usb_offline_check_init:
+79d3 68488b58 fetcht 1 ,mem_usb_offline_check_gpio 
+79d4 2020609f branch gpio_config_input 
+
+usb_offline_state:
+79d5 6fe08bfa fetch 1 ,mem_usb_device_enumeration_endflag 
+79d6 207a0000 rtn blank 
+79d7 68488b58 fetcht 1 ,mem_usb_offline_check_gpio 
+79d8 204060a8 call gpio_get_bit 
+79d9 2020f9bc branch usb_init ,true 
+79da 20600000 rtn 
+
+usb_init_param:
+79db 700b5702 jam dev_default ,mem_usb0_state 
+79dc 58000000 setarg 0x0 
+79dd 67e08a92 store 1 ,mem_remain 
+79de 67e10b51 store 2 ,mem_usb_zero_packet 
+79df 1fe0fe01 pincrease 1 
+79e0 67e10b53 store 2 ,mem_usb_ones_packet 
+79e1 1fe0fe01 pincrease 1 
+79e2 67e10b55 store 2 ,mem_usb_two_packet 
+79e3 d8a00ae6 arg mem_string0 ,contw 
+79e4 58030404 setarg 0x030404 
+79e5 e7e18005 istore 3 ,contw 
+79e6 58000409 setarg 0x0409 
+79e7 e7e10005 istore 2 ,contw 
+79e8 d8a00aeb arg mem_string1 ,contw 
+79e9 38015906 setsect 0 ,0x15906 
+79ea 380610d2 setsect 1 ,0x210d2 
+79eb 38090494 setsect 2 ,0x10494 
+79ec 380c0001 setsect 3 ,0x1 
+79ed e7e48005 istore 9 ,contw 
+79ee d8a00b27 arg mem_string3 ,contw 
+79ef 3801620a setsect 0 ,0x1620a 
+79f0 38040c8c setsect 1 ,0xc8c 
+79f1 380b0333 setsect 2 ,0x30333 
+79f2 380cc0c0 setsect 3 ,0xc0c0 
+79f3 e7e48005 istore 9 ,contw 
+79f4 38003130 setsect 0 ,0x3130 
+79f5 e7e10005 istore 2 ,contw 
+79f6 580099a4 setarg usb_kbdata_vendor_define_addr 
+79f7 67e10a93 store 2 ,mem_hidreportdesc_kb 
+79f8 580099ff setarg usb_msdata_addr 
+79f9 67e10a95 store 2 ,mem_hidreportdesc_m 
+79fa d8c09aa3 arg usb_devicedata_addr ,contr 
+79fb d8a00a97 arg mem_devicedesc ,contw 
+79fc df200013 arg 19 ,loopcnt 
+79fd 20407d6d call memcpy 
+79fe d8c09ab6 arg usb_confdata_addr ,contr 
+79ff d8a00aaa arg mem_confdesc ,contw 
+7a00 df20003c arg 60 ,loopcnt 
+7a01 20407d6d call memcpy 
+
+usb_config_cb:
+7a02 6fe10b45 fetch 2 ,mem_cb_usb_config 
+7a03 20207e13 branch callback_func 
+
+usb_tx_interval_config:
+7a04 6fe08b47 fetch 1 ,mem_usb_tx_interval 
+7a05 207a0000 rtn blank 
+7a06 67e08acc store 1 ,mem_confdesc + 34 
+7a07 67e08ae5 store 1 ,mem_confdesc + 59 
+7a08 20600000 rtn 
+
+usb_nak_state:
+7a09 d8e00000 arg timer_nak ,queue 
+7a0a 20407d82 call timer_check 
+7a0b 247a0000 nrtn blank 
+7a0c 6fe08bfb fetch 1 ,mem_usb_wakestate_onetime_flag 
+7a0d 247a0000 nrtn blank 
+7a0e 6fe08bfa fetch 1 ,mem_usb_device_enumeration_endflag 
+7a0f 245a7cc0 ncall usb_mac_wakeup_judge ,blank 
+7a10 20600000 rtn 
+
+usb_nak_state_judge:
+7a11 6fe089f6 fetch 1 ,mem_usb_status 
+7a12 c2817a14 bbit1 usb_status_nak ,usb_nak_state_timer_init 
+7a13 20600000 rtn 
+
+usb_nak_state_timer_init:
+7a14 20407a19 call usb0_attached_state_judge 
+7a15 20407d81 call timer_reinit 
+7a16 58000280 setarg timer_nak_delay 
+7a17 d8e00000 arg timer_nak ,queue 
+7a18 20207d74 branch timer_init 
+
+usb0_attached_state_judge:
+7a19 6fe08bec fetch 1 ,mem_usb_state 
+7a1a c0817a1e bne usb_connected ,usb_clear_halt_dispose 
+7a1b 700bfb00 jam 0 ,mem_usb_wakestate_onetime_flag 
+7a1c 700bfc00 jam 0 ,mem_usb_mac_wakeup_trig 
+7a1d 20600000 rtn 
+
+usb_clear_halt_dispose:
+7a1e 6fe08bfe fetch 1 ,mem_usb_clear_halt 
+7a1f 207a0000 rtn blank 
+7a20 700bfe00 jam 0 ,mem_usb_clear_halt 
+7a21 700bec02 jam usb_connected ,mem_usb_state 
+7a22 700bfa01 jam 1 ,mem_usb_device_enumeration_endflag 
+7a23 20600000 rtn 
+
+usb_rx_no_data:
+7a24 6fe089f6 fetch 1 ,mem_usb_status 
+7a25 c2807a44 bbit1 usb_status_setup ,usb_class_type 
+7a26 20600000 rtn 
+
+usb_rx_data:
+7a27 6ff08c24 fetch 1 ,core_usb_txbusy 
+7a28 c3830000 rtnbit1 usb_status_rxempty 
+7a29 69510c03 fetchr contus ,2 ,core_usb_rx_saddr 
+7a2a 6a110c05 fetchr contue ,2 ,core_usb_rx_eaddr 
+7a2b 68710c07 fetchr contu ,2 ,core_usb_rxptr 
+7a2c efe10003 ifetch 2 ,contu 
+7a2d 1fec8400 rshift8 pdata ,temp 
+7a2e 18518400 rshift4 temp ,temp 
+7a2f d8c00fff arg 0xfff ,contr 
+7a30 98c17200 iand contr ,loopcnt 
+7a31 1f222200 copy loopcnt ,rega 
+
+usb_rx_read:
+7a32 efe08003 ifetch 1 ,contu 
+7a33 e7e08005 istore 1 ,contw 
+7a34 c2007a32 loop usb_rx_read 
+7a35 60710c07 storer contu ,2 ,core_usb_rxptr 
+7a36 622109f8 storer rega ,2 ,mem_usb_read_len 
+7a37 20600000 rtn 
+
+usb_data_rx:
+7a38 20600000 rtn 
+
+usb_rx:
+7a39 4747c031 bpatchx patch31_7 ,mem_patch31 
+7a3a 6fe089f6 fetch 1 ,mem_usb_status 
+7a3b c4028000 rtnbit0 usb_status_rxready 
+7a3c d8a00b59 arg mem_usb_setup ,contw 
+7a3d 20407a27 call usb_rx_data 
+7a3e 18427e00 copy temp ,pdata 
+7a3f c0007a41 beq 0 ,usb0_rx 
+7a40 20207a38 branch usb_data_rx 
+
+usb0_rx:
+7a41 6fe089f8 fetch 1 ,mem_usb_read_len 
+7a42 1fe67c07 sub pdata ,7 ,null 
+7a43 20610000 rtn positive 
+
+usb_class_type:
+7a44 47484032 bpatchx patch32_0 ,mem_patch32 
+7a45 793f8023 set0 mark_isstr ,mark 
+7a46 6fe08b59 fetch 1 ,mem_usb_setup_bmrequesttype 
+7a47 1fe17e80 and_into 0x80 ,pdata 
+7a48 c0407a4b beq in_device ,usb_in_device 
+7a49 c0007a53 beq out_device ,usb_out_device 
+7a4a 2020131f branch assert 
+
+usb_in_device:
+7a4b 6fe08b59 fetch 1 ,mem_usb_setup_bmrequesttype 
+7a4c 1ff1fe00 rshift4 pdata ,pdata 
+7a4d 1fe37e00 rshift pdata ,pdata 
+7a4e 1fe17e03 and_into 0x03 ,pdata 
+7a4f c0007a5b beq standard_req ,usb_in_standard_req 
+7a50 c000fa61 beq class_req ,usb_in_class_req 
+7a51 c0017a66 beq manufacturer_req ,usb_in_manufacturer_req 
+7a52 2020131f branch assert 
+
+usb_out_device:
+7a53 6fe08b59 fetch 1 ,mem_usb_setup_bmrequesttype 
+7a54 1ff1fe00 rshift4 pdata ,pdata 
+7a55 1fe37e00 rshift pdata ,pdata 
+7a56 1fe17e03 and_into 0x03 ,pdata 
+7a57 c0007a67 beq standard_req ,usb_out_standard_req 
+7a58 c000fa6f beq class_req ,usb_out_class_req 
+7a59 c0017a74 beq manufacturer_req ,usb_out_manufacturer_req 
+7a5a 2020131f branch assert 
+
+usb_in_standard_req:
+7a5b 6fe08b5a fetch 1 ,mem_usb_setup_brequest 
+7a5c c0047a7b beq get_configuration ,usb0_request_get_configuration 
+7a5d c0037a91 beq get_descriptor ,usb0_request_get_descriptor 
+7a5e c0057ad6 beq get_interface ,usb0_request_get_interface 
+7a5f c0007ae8 beq get_status ,usb0_request_get_status 
+7a60 20207a75 branch usb0_force_stall 
+
+usb_in_class_req:
+7a61 6fe08b5a fetch 1 ,mem_usb_setup_brequest 
+7a62 c0017b1d beq get_idle ,usb_get_idle 
+7a63 c000fb21 beq get_report ,usb_get_report 
+7a64 c001fb32 beq get_protocol ,usb_get_protocol_req 
+7a65 20207a75 branch usb0_force_stall 
+
+usb_in_manufacturer_req:
+7a66 20207a75 branch usb0_force_stall 
+
+usb_out_standard_req:
+7a67 6fe08b5a fetch 1 ,mem_usb_setup_brequest 
+7a68 c000fb3c beq clear_feature ,usb0_request_clear_feature 
+7a69 c001fb6b beq set_feature ,usb0_request_set_feature 
+7a6a c002fb95 beq set_address ,usb0_request_set_address 
+7a6b c004fbae beq set_configuration ,usb0_request_set_configuration 
+7a6c c005fbc9 beq set_interface ,usb0_request_set_interface 
+7a6d c003fa75 beq set_descriptor ,usb0_force_stall 
+7a6e 20207a75 branch usb0_force_stall 
+
+usb_out_class_req:
+7a6f 6fe08b5a fetch 1 ,mem_usb_setup_brequest 
+7a70 c0057bda beq set_idle ,usb_set_idle 
+7a71 c004fbec beq set_report ,usb_set_report 
+7a72 c005fc09 beq set_protocol ,usb_set_protocol_req 
+7a73 20207a75 branch usb0_force_stall 
+
+usb_out_manufacturer_req:
+7a74 20207a75 branch usb0_force_stall 
+
+usb0_force_stall:
+7a75 6ff08c19 fetch 1 ,core_usb_stall 
+7a76 79207e00 set1 0 ,pdata 
+7a77 67f08c19 store 1 ,core_usb_stall 
+7a78 20207a79 branch usb0_reply_zerolen 
+
+usb0_reply_zerolen:
+7a79 708c1810 jam 0x10 ,core_usb_trig 
+7a7a 20600000 rtn 
+
+usb0_request_get_configuration:
+7a7b 6fe08b59 fetch 1 ,mem_usb_setup_bmrequesttype 
+7a7c c0c07a75 bne in_device ,usb0_force_stall 
+7a7d 6fe08b5d fetch 1 ,mem_usb_setup_windex 
+7a7e c0807a75 bne 0 ,usb0_force_stall 
+7a7f 6fe08b5e fetch 1 ,mem_usb_setup_windex + 1 
+7a80 c0807a75 bne 0 ,usb0_force_stall 
+7a81 6fe08b5f fetch 1 ,mem_usb_setup_blength 
+7a82 c080fa75 bne 1 ,usb0_force_stall 
+7a83 6fe08b60 fetch 1 ,mem_usb_setup_blengthh 
+7a84 c0807a75 bne 0 ,usb0_force_stall 
+7a85 6fe08b5b fetch 1 ,mem_usb_setup_bvalue 
+7a86 c0807a75 bne 0 ,usb0_force_stall 
+7a87 6fe08b5c fetch 1 ,mem_usb_setup_bvalue + 1 
+7a88 c0807a75 bne 0 ,usb0_force_stall 
+7a89 6fe08b57 fetch 1 ,mem_usb0_state 
+7a8a c0027a8d beq dev_configured ,usb0_request_get_cfg_dev_cfg 
+7a8b c001fa8f beq dev_address ,usb0_request_get_cfg_dev_addr 
+7a8c 20207a75 branch usb0_force_stall 
+
+usb0_request_get_cfg_dev_cfg:
+7a8d da400001 arg 1 ,regb 
+7a8e 20207b02 branch usb_send_ones_packet 
+
+usb0_request_get_cfg_dev_addr:
+7a8f da400001 arg 1 ,regb 
+7a90 20207b00 branch usb_send_zero_packet 
+
+usb0_request_get_descriptor:
+7a91 4748c032 bpatchx patch32_1 ,mem_patch32 
+7a92 6fe08b5c fetch 1 ,mem_usb_setup_bvalueh 
+7a93 c000faa4 beq dsc_device ,dsc_device_info 
+7a94 c0017abd beq dsc_config ,dsc_config_info 
+7a95 c001fac0 beq dsc_string ,dsc_string_info 
+7a96 c010fa99 beq dsc_hid ,dsc_hid_info 
+7a97 c0117ace beq dsc_hid_report ,dsc_hid_report_info 
+7a98 20207a75 branch usb0_force_stall 
+
+dsc_hid_info:
+7a99 700be900 jam 0 ,mem_usb_get_protocol_flag 
+7a9a 6fe08b5d fetch 1 ,mem_usb_setup_windex 
+7a9b c0007a9e beq 0 ,dsc_hid_info_interface0 
+7a9c c000faa1 beq 1 ,dsc_hid_info_interface1 
+7a9d 20207a75 branch usb0_force_stall 
+
+dsc_hid_info_interface0:
+7a9e 6a408abd fetchr regb ,1 ,mem_confdesc + 19 
+7a9f da200abd arg mem_confdesc + 19 ,rega 
+7aa0 20207c18 branch usb0_respond 
+
+dsc_hid_info_interface1:
+7aa1 6a408ad6 fetchr regb ,1 ,mem_confdesc + 44 
+7aa2 da200ad6 arg mem_confdesc + 44 ,rega 
+7aa3 20207c18 branch usb0_respond 
+
+dsc_device_info:
+7aa4 6fe08bfd fetch 1 ,mem_usb_set_high_addr_flag 
+7aa5 245a7ab5 ncall usb_set_high_addr ,blank 
+7aa6 58000a97 setarg mem_devicedesc 
+7aa7 68488a97 fetcht 1 ,mem_devicedesc 
+
+dsc_info_set_data_len:
+7aa8 67e10bf4 store 2 ,mem_dsc_info_data_pointer 
+7aa9 60488bf6 storet 1 ,mem_dsc_info_len 
+7aaa 6fe08b5f fetch 1 ,mem_usb_setup_blength 
+7aab 98467c00 isub temp ,null 
+7aac 24217ab3 nbranch dsc_info_set_current_data_len ,positive 
+
+dsc_info_set_initial_data_len:
+7aad 6fe08bf6 fetch 1 ,mem_dsc_info_len 
+
+dsc_info_set_data_size_completed:
+7aae 98002400 iforce regb 
+7aaf 6fe10bf4 fetch 2 ,mem_dsc_info_data_pointer 
+7ab0 1fe0fe01 add pdata ,1 ,pdata 
+7ab1 98002200 iforce rega 
+7ab2 20207c18 branch usb0_respond 
+
+dsc_info_set_current_data_len:
+7ab3 6fe08b5f fetch 1 ,mem_usb_setup_blength 
+7ab4 20207aae branch dsc_info_set_data_size_completed 
+
+usb_set_high_addr:
+7ab5 6ff08c02 fetch 1 ,core_usb_addr 
+7ab6 245a7ab9 ncall usb0_set_addr ,blank 
+7ab7 700bfd00 jam 0 ,mem_usb_set_high_addr_flag 
+7ab8 20600000 rtn 
+
+usb0_set_addr:
+7ab9 6ff08c02 fetch 1 ,core_usb_addr 
+7aba 79207e07 set1 7 ,pdata 
+7abb 67f08c02 store 1 ,core_usb_addr 
+7abc 20600000 rtn 
+
+dsc_config_info:
+7abd 58000aaa setarg mem_confdesc 
+7abe 68488aaa fetcht 1 ,mem_confdesc 
+7abf 20207aa8 branch dsc_info_set_data_len 
+
+dsc_string_info:
+7ac0 6fe08b5b fetch 1 ,mem_usb_setup_bvalue 
+7ac1 1fe67c03 sub pdata ,3 ,null 
+7ac2 24217a75 nbranch usb0_force_stall ,positive 
+7ac3 6fe08b5b fetch 1 ,mem_usb_setup_bvalue 
+7ac4 da200ae6 arg mem_string0 ,rega 
+7ac5 c0007c16 beq 0 ,usb0_respond_length 
+7ac6 79200023 set1 mark_isstr ,mark 
+7ac7 da200aeb arg mem_string1 ,rega 
+7ac8 c000fc16 beq 1 ,usb0_respond_length 
+7ac9 da200b09 arg mem_string2 ,rega 
+7aca c0017c16 beq 2 ,usb0_respond_length 
+7acb da200b27 arg mem_string3 ,rega 
+7acc c001fc16 beq 3 ,usb0_respond_length 
+7acd 20600000 rtn 
+
+dsc_hid_report_info:
+7ace 6fe10b5d fetch 2 ,mem_usb_setup_windex 
+7acf c000fad2 beq 1 ,dsc_hid_report_info0 
+7ad0 6a210a93 fetchr rega ,2 ,mem_hidreportdesc_kb 
+7ad1 20207c16 branch usb0_respond_length 
+
+dsc_hid_report_info0:
+7ad2 700bfa01 jam 1 ,mem_usb_device_enumeration_endflag 
+7ad3 700bec01 jam usb_got_report_req ,mem_usb_state 
+7ad4 6a210a95 fetchr rega ,2 ,mem_hidreportdesc_m 
+7ad5 20207c16 branch usb0_respond_length 
+
+usb0_request_get_interface:
+7ad6 6fe08b57 fetch 1 ,mem_usb0_state 
+7ad7 c0827a75 bne dev_configured ,usb0_force_stall 
+7ad8 6fe08b59 fetch 1 ,mem_usb_setup_bmrequesttype 
+7ad9 c0c0fa75 bne in_interface ,usb0_force_stall 
+7ada 6fe08b5b fetch 1 ,mem_usb_setup_bvalue 
+7adb c0807a75 bne 0 ,usb0_force_stall 
+7adc 6fe08b5c fetch 1 ,mem_usb_setup_bvalueh 
+7add c0807a75 bne 0 ,usb0_force_stall 
+7ade 6fe08b5f fetch 1 ,mem_usb_setup_blength 
+7adf c080fa75 bne 1 ,usb0_force_stall 
+7ae0 6fe08b60 fetch 1 ,mem_usb_setup_blengthh 
+7ae1 c0807a75 bne 0 ,usb0_force_stall 
+7ae2 6fe08b5d fetch 1 ,mem_usb_setup_windex 
+7ae3 c0807a75 bne 0 ,usb0_force_stall 
+7ae4 6fe08b5e fetch 1 ,mem_usb_setup_windex + 1 
+7ae5 c0807a75 bne 0 ,usb0_force_stall 
+7ae6 da400001 arg 1 ,regb 
+7ae7 20207b00 branch usb_send_zero_packet 
+
+usb0_request_get_status:
+7ae8 6fe08b57 fetch 1 ,mem_usb0_state 
+7ae9 c0017a75 beq dev_default ,usb0_force_stall 
+7aea 6fe08b5b fetch 1 ,mem_usb_setup_bvalue 
+7aeb c0807a75 bne 0 ,usb0_force_stall 
+7aec 6fe08b5c fetch 1 ,mem_usb_setup_bvalueh 
+7aed c0807a75 bne 0 ,usb0_force_stall 
+7aee 6fe08b5f fetch 1 ,mem_usb_setup_blength 
+7aef c0817a75 bne 2 ,usb0_force_stall 
+7af0 6fe08b60 fetch 1 ,mem_usb_setup_blengthh 
+7af1 c0807a75 bne 0 ,usb0_force_stall 
+7af2 6fe08b5e fetch 1 ,mem_usb_setup_windex + 1 
+7af3 c0807a75 bne 0 ,usb0_force_stall 
+7af4 6fe08b59 fetch 1 ,mem_usb_setup_bmrequesttype 
+7af5 c0407afb beq in_device ,usb0_get_status_in_device 
+7af6 c040fb06 beq in_interface ,usb0_get_status_in_interface 
+7af7 c0417b0a beq in_endpoint ,usb0_get_status_in_endpoint 
+7af8 20207a75 branch usb0_force_stall 
+
+usb0_sdsystem_dispose:
+7af9 700bef01 jam 1 ,mem_sdsystem_wakeup_flag 
+7afa 20207b04 branch usb_send_two_packet 
+
+usb0_get_status_in_device:
+7afb 6fe08b5d fetch 1 ,mem_usb_setup_windex 
+7afc c0807a75 bne 0 ,usb0_force_stall 
+7afd da400002 arg 2 ,regb 
+7afe 6fe08bed fetch 1 ,mem_usb_remote_wakeup 
+7aff c000faf9 beq 0x01 ,usb0_sdsystem_dispose 
+
+usb_send_zero_packet:
+7b00 da200b51 arg mem_usb_zero_packet ,rega 
+7b01 20207c18 branch usb0_respond 
+
+usb_send_ones_packet:
+7b02 da200b53 arg mem_usb_ones_packet ,rega 
+7b03 20207c18 branch usb0_respond 
+
+usb_send_two_packet:
+7b04 da200b55 arg mem_usb_two_packet ,rega 
+7b05 20207c18 branch usb0_respond 
+
+usb0_get_status_in_interface:
+7b06 6fe08b57 fetch 1 ,mem_usb0_state 
+7b07 c0827a75 bne dev_configured ,usb0_force_stall 
+7b08 da400002 arg 2 ,regb 
+7b09 20207b00 branch usb_send_zero_packet 
+
+usb0_get_status_in_endpoint:
+7b0a 6fe08b57 fetch 1 ,mem_usb0_state 
+7b0b c0827a75 bne dev_configured ,usb0_force_stall 
+7b0c 6fe08b5d fetch 1 ,mem_usb_setup_windex 
+7b0d c040fb17 beq in_ep1 ,usb0_get_status_in_ep_in_ep1 
+7b0e c0417b19 beq in_ep2 ,usb0_get_status_in_ep_in_ep2 
+7b0f c041fb1b beq in_ep3 ,usb0_get_status_in_ep_in_ep3 
+7b10 1fe17e7f and_into 0x7f ,pdata 
+7b11 c0007b13 beq 0x00 ,usb0_get_status_in_ep_in_ep0 
+7b12 20207a75 branch usb0_force_stall 
+
+usb0_get_status_in_ep_in_ep0:
+7b13 6fe08bf0 fetch 1 ,mem_usb_ep0_stall_status 
+
+usb0_get_status_in_ep_in_ack:
+7b14 da400002 arg 2 ,regb 
+7b15 c000fb02 beq 1 ,usb_send_ones_packet 
+7b16 20207b00 branch usb_send_zero_packet 
+
+usb0_get_status_in_ep_in_ep1:
+7b17 6fe08bf1 fetch 1 ,mem_usb_ep1_stall_status 
+7b18 20207b14 branch usb0_get_status_in_ep_in_ack 
+
+usb0_get_status_in_ep_in_ep2:
+7b19 6fe08bf2 fetch 1 ,mem_usb_ep2_stall_status 
+7b1a 20207b14 branch usb0_get_status_in_ep_in_ack 
+
+usb0_get_status_in_ep_in_ep3:
+7b1b 6fe08bf3 fetch 1 ,mem_usb_ep3_stall_status 
+7b1c 20207b14 branch usb0_get_status_in_ep_in_ack 
+
+usb_get_idle:
+7b1d 700be701 jam 1 ,mem_usb_idle_flag 
+7b1e da200be8 arg mem_usb_idle_rate ,rega 
+7b1f da400001 arg 1 ,regb 
+7b20 20207c18 branch usb0_respond 
+
+usb_get_report:
+7b21 6fe10b5b fetch 2 ,mem_usb_setup_bvalue 
+7b22 d84001ba arg pc_get_report ,temp 
+7b23 98467c00 isub temp ,null 
+7b24 2422fa75 nbranch usb0_force_stall ,zero 
+
+usb_get_report_dispose:
+7b25 6fe08be4 fetch 1 ,mem_usb0_data_ready_report 
+7b26 243a7b2f nbranch usb_get_report_data_success ,blank 
+7b27 700ba100 jam pc_get_nondata ,mem_usb0_get_report_data 
+
+usb_get_report_send_data:
+7b28 6fe08b5f fetch 1 ,mem_usb_setup_blength 
+7b29 98002400 iforce regb 
+7b2a da200ba1 arg mem_usb0_get_report_data ,rega 
+7b2b 20407c18 call usb0_respond 
+
+usb_get_report_data_release:
+7b2c d8a00ba1 arg mem_usb0_get_report_data ,contw 
+7b2d df200008 arg 8 ,loopcnt 
+7b2e 20207d25 branch memset0 
+
+usb_get_report_data_success:
+7b2f 700be400 jam 0 ,mem_usb0_data_ready_report 
+7b30 700ba101 jam pc_get_data ,mem_usb0_get_report_data 
+7b31 20207b28 branch usb_get_report_send_data 
+
+usb_get_protocol_req:
+7b32 6fe08b5f fetch 1 ,mem_usb_setup_blength 
+7b33 c080fa75 bne 1 ,usb0_force_stall 
+7b34 700be901 jam 1 ,mem_usb_get_protocol_flag 
+7b35 da400001 arg 1 ,regb 
+7b36 6fe08beb fetch 1 ,mem_usb_set_protocol_value 
+7b37 c0007b3a beq 0 ,usb_get_report_protocol 
+7b38 c000fb3b beq 1 ,usb_get_boot_protocol 
+7b39 20207b00 branch usb_send_zero_packet 
+
+usb_get_report_protocol:
+7b3a 20207b02 branch usb_send_ones_packet 
+
+usb_get_boot_protocol:
+7b3b 20207b00 branch usb_send_zero_packet 
+
+usb0_request_clear_feature:
+7b3c 6fe08b57 fetch 1 ,mem_usb0_state 
+7b3d c0827a75 bne dev_configured ,usb0_force_stall 
+7b3e 6fe08b5f fetch 1 ,mem_usb_setup_blength 
+7b3f c0807a75 bne 0 ,usb0_force_stall 
+7b40 6fe08b60 fetch 1 ,mem_usb_setup_blengthh 
+7b41 c0807a75 bne 0 ,usb0_force_stall 
+7b42 6fe08b5c fetch 1 ,mem_usb_setup_bvalueh 
+7b43 c0807a75 bne 0 ,usb0_force_stall 
+7b44 6fe08b5e fetch 1 ,mem_usb_setup_windex + 1 
+7b45 c0807a75 bne 0 ,usb0_force_stall 
+7b46 6fe08b59 fetch 1 ,mem_usb_setup_bmrequesttype 
+7b47 c0007b4b beq out_device ,usb0_request_clear_feature_out_device 
+7b48 c000fb58 beq out_interface ,usb0_request_clear_feature_out_interface 
+7b49 c0017b59 beq out_endpoint ,usb0_request_clear_feature_out_endpoint 
+7b4a 20207a75 branch usb0_force_stall 
+
+usb0_request_clear_feature_out_device:
+7b4b 6fe08b5b fetch 1 ,mem_usb_setup_bvalue 
+7b4c c080fa75 bne device_remote_wakeup ,usb0_force_stall 
+7b4d 6ff08c00 fetch 1 ,core_usb_config 
+7b4e 793ffe07 set0 7 ,pdata 
+7b4f 67f08c00 store 1 ,core_usb_config 
+7b50 700bed00 jam 0 ,mem_usb_remote_wakeup 
+7b51 700bee01 jam 1 ,mem_usb_clear_remote_wakeup 
+7b52 6fe08bef fetch 1 ,mem_sdsystem_wakeup_flag 
+7b53 203a7a79 branch usb0_reply_zerolen ,blank 
+7b54 700bef00 jam 0 ,mem_sdsystem_wakeup_flag 
+7b55 700bee00 jam 0 ,mem_usb_clear_remote_wakeup 
+7b56 700bec02 jam usb_connected ,mem_usb_state 
+7b57 20207a79 branch usb0_reply_zerolen 
+
+usb0_request_clear_feature_out_interface:
+7b58 20207a75 branch usb0_force_stall 
+
+usb0_request_clear_feature_out_endpoint:
+7b59 6fe08b5b fetch 1 ,mem_usb_setup_bvalue 
+7b5a c0807a75 bne endpoint_halt ,usb0_force_stall 
+7b5b 6fe08b5d fetch 1 ,mem_usb_setup_windex 
+7b5c c040fb64 beq in_ep1 ,usb0_force_stall_ep1_in_off 
+7b5d c0417b67 beq in_ep2 ,usb0_force_stall_ep2_in_off 
+7b5e c041fb69 beq in_ep3 ,usb0_force_stall_ep3_in_off 
+7b5f 1fe17e7f and_into 0x7f ,pdata 
+7b60 c0007b62 beq 0x00 ,usb0_force_stall_ep0_in_off 
+7b61 20207a75 branch usb0_force_stall 
+
+usb0_force_stall_ep0_in_off:
+7b62 700bf000 jam 0 ,mem_usb_ep0_stall_status 
+7b63 20207a79 branch usb0_reply_zerolen 
+
+usb0_force_stall_ep1_in_off:
+7b64 700bf100 jam 0 ,mem_usb_ep1_stall_status 
+
+usb0_force_stall_ep1_in_off_reply:
+7b65 700bfe01 jam 1 ,mem_usb_clear_halt 
+7b66 20207a79 branch usb0_reply_zerolen 
+
+usb0_force_stall_ep2_in_off:
+7b67 700bf200 jam 0 ,mem_usb_ep2_stall_status 
+7b68 20207b65 branch usb0_force_stall_ep1_in_off_reply 
+
+usb0_force_stall_ep3_in_off:
+7b69 700bf300 jam 0 ,mem_usb_ep3_stall_status 
+7b6a 20207b65 branch usb0_force_stall_ep1_in_off_reply 
+
+usb0_request_set_feature:
+7b6b 6fe08b5f fetch 1 ,mem_usb_setup_blength 
+7b6c c0807a75 bne 0 ,usb0_force_stall 
+7b6d 6fe08b60 fetch 1 ,mem_usb_setup_blengthh 
+7b6e c0807a75 bne 0 ,usb0_force_stall 
+7b6f 6fe08b59 fetch 1 ,mem_usb_setup_bmrequesttype 
+7b70 c0007b74 beq out_device ,usb0_request_set_feature_out_device 
+7b71 c000fb81 beq out_interface ,usb0_request_set_feature_out_interface 
+7b72 c0017b82 beq out_endpoint ,usb0_request_set_feature_out_endpoint 
+7b73 20207a75 branch usb0_force_stall 
+
+usb0_request_set_feature_out_device:
+7b74 6fe08b5b fetch 1 ,mem_usb_setup_bvalue 
+7b75 c080fa75 bne device_remote_wakeup ,usb0_force_stall 
+7b76 6ff08c00 fetch 1 ,core_usb_config 
+7b77 79207e07 set1 7 ,pdata 
+7b78 67f08c00 store 1 ,core_usb_config 
+7b79 700bed01 jam 1 ,mem_usb_remote_wakeup 
+7b7a 700bec03 jam usb_sleep ,mem_usb_state 
+7b7b 700be500 jam 0 ,mem_usb_tx_win_enable 
+7b7c 20407a79 call usb0_reply_zerolen 
+
+usb_wakeup_timer_reinit:
+7b7d 20407d81 call timer_reinit 
+7b7e 58001388 setarg timer_wakeup_delay 
+7b7f d8e0000f arg timer_wakeup ,queue 
+7b80 20207d74 branch timer_init 
+
+usb0_request_set_feature_out_interface:
+7b81 20207a75 branch usb0_force_stall 
+
+usb0_request_set_feature_out_endpoint:
+7b82 6fe08b5b fetch 1 ,mem_usb_setup_bvalue 
+7b83 c0807a75 bne endpoint_halt ,usb0_force_stall 
+7b84 6fe08b5c fetch 1 ,mem_usb_setup_bvalueh 
+7b85 c0807a75 bne 0 ,usb0_force_stall 
+7b86 6fe08b5d fetch 1 ,mem_usb_setup_windex 
+7b87 c040fb8f beq in_ep1 ,usb0_force_stall_ep1_in_on 
+7b88 c0417b91 beq in_ep2 ,usb0_force_stall_ep2_in_on 
+7b89 c041fb93 beq in_ep3 ,usb0_force_stall_ep3_in_on 
+7b8a 1fe17e7f and_into 0x7f ,pdata 
+7b8b c0007b8d beq 0x00 ,usb0_force_stall_ep0_in_on 
+7b8c 20207a75 branch usb0_force_stall 
+
+usb0_force_stall_ep0_in_on:
+7b8d 700bf001 jam 1 ,mem_usb_ep0_stall_status 
+7b8e 20207a79 branch usb0_reply_zerolen 
+
+usb0_force_stall_ep1_in_on:
+7b8f 700bf101 jam 1 ,mem_usb_ep1_stall_status 
+7b90 20207a79 branch usb0_reply_zerolen 
+
+usb0_force_stall_ep2_in_on:
+7b91 700bf201 jam 1 ,mem_usb_ep2_stall_status 
+7b92 20207a79 branch usb0_reply_zerolen 
+
+usb0_force_stall_ep3_in_on:
+7b93 700bf301 jam 1 ,mem_usb_ep3_stall_status 
+7b94 20207a79 branch usb0_reply_zerolen 
+
+usb0_request_set_address:
+7b95 6fe08b59 fetch 1 ,mem_usb_setup_bmrequesttype 
+7b96 c0807a75 bne out_device ,usb0_force_stall 
+7b97 6fe08b5d fetch 1 ,mem_usb_setup_windex 
+7b98 c0807a75 bne 0 ,usb0_force_stall 
+7b99 6fe08b5e fetch 1 ,mem_usb_setup_windex + 1 
+7b9a c0807a75 bne 0 ,usb0_force_stall 
+7b9b 6fe08b5f fetch 1 ,mem_usb_setup_blength 
+7b9c c0807a75 bne 0 ,usb0_force_stall 
+7b9d 6fe08b60 fetch 1 ,mem_usb_setup_blengthh 
+7b9e c0807a75 bne 0 ,usb0_force_stall 
+7b9f 6fe08b5c fetch 1 ,mem_usb_setup_bvalueh 
+7ba0 c0807a75 bne 0 ,usb0_force_stall 
+7ba1 6fe08b5b fetch 1 ,mem_usb_setup_bvalue 
+7ba2 1fe17e80 and_into 0x80 ,pdata 
+7ba3 c0807a75 bne 0 ,usb0_force_stall 
+7ba4 6fe08b5b fetch 1 ,mem_usb_setup_bvalue 
+7ba5 c0807bac bne 0 ,usb_usb0_state_set_dev_addr 
+
+usb_usb0_state_set_dev_default:
+7ba6 700b5702 jam dev_default ,mem_usb0_state 
+
+usb0_request_set_wait_address:
+7ba7 6fe08b5b fetch 1 ,mem_usb_setup_bvalue 
+7ba8 67f08c02 store 1 ,core_usb_addr 
+7ba9 20407a79 call usb0_reply_zerolen 
+7baa 700bfd01 jam 1 ,mem_usb_set_high_addr_flag 
+7bab 20600000 rtn 
+
+usb_usb0_state_set_dev_addr:
+7bac 700b5703 jam dev_address ,mem_usb0_state 
+7bad 20207ba7 branch usb0_request_set_wait_address 
+
+usb0_request_set_configuration:
+7bae 6fe08b57 fetch 1 ,mem_usb0_state 
+7baf c0017a75 beq dev_default ,usb0_force_stall 
+7bb0 6fe08b59 fetch 1 ,mem_usb_setup_bmrequesttype 
+7bb1 c0807a75 bne out_device ,usb0_force_stall 
+7bb2 6fe08b5d fetch 1 ,mem_usb_setup_windex 
+7bb3 c0807a75 bne 0 ,usb0_force_stall 
+7bb4 6fe08b5e fetch 1 ,mem_usb_setup_windex + 1 
+7bb5 c0807a75 bne 0 ,usb0_force_stall 
+7bb6 6fe08b5f fetch 1 ,mem_usb_setup_blength 
+7bb7 c0807a75 bne 0 ,usb0_force_stall 
+7bb8 6fe08b60 fetch 1 ,mem_usb_setup_blengthh 
+7bb9 c0807a75 bne 0 ,usb0_force_stall 
+7bba 6fe08b5c fetch 1 ,mem_usb_setup_bvalue + 1 
+7bbb c0807a75 bne 0 ,usb0_force_stall 
+7bbc 6fe08b5b fetch 1 ,mem_usb_setup_bvalue 
+7bbd 1fe67c01 sub pdata ,usb_max_num_cfg ,null 
+7bbe 24217a75 nbranch usb0_force_stall ,positive 
+7bbf 6fe08b57 fetch 1 ,mem_usb0_state 
+7bc0 c001fbc3 beq dev_address ,usb0_request_set_cfg_addr_state 
+7bc1 c0027bc3 beq dev_configured ,usb0_request_set_cfg_cfg_state 
+7bc2 20207a75 branch usb0_force_stall 
+
+usb0_request_set_cfg_addr_state:
+
+usb0_request_set_cfg_cfg_state:
+7bc3 6fe08b5b fetch 1 ,mem_usb_setup_bvalue 
+7bc4 c0007bc7 beq 0 ,usb0_request_set_cfg_stay_addr_state 
+7bc5 700b5704 jam dev_configured ,mem_usb0_state 
+7bc6 20207a79 branch usb0_reply_zerolen 
+
+usb0_request_set_cfg_stay_addr_state:
+7bc7 700b5703 jam dev_address ,mem_usb0_state 
+7bc8 20207a79 branch usb0_reply_zerolen 
+
+usb0_request_set_interface:
+7bc9 6fe08b57 fetch 1 ,mem_usb0_state 
+7bca c0827a75 bne dev_configured ,usb0_force_stall 
+7bcb 6fe08b59 fetch 1 ,mem_usb_setup_bmrequesttype 
+7bcc c080fa75 bne out_interface ,usb0_force_stall 
+7bcd 6fe08b5b fetch 1 ,mem_usb_setup_bvalue 
+7bce c0807a75 bne 0 ,usb0_force_stall 
+7bcf 6fe08b5c fetch 1 ,mem_usb_setup_bvalueh 
+7bd0 c0807a75 bne 0 ,usb0_force_stall 
+7bd1 6fe08b5f fetch 1 ,mem_usb_setup_blength 
+7bd2 c0807a75 bne 0 ,usb0_force_stall 
+7bd3 6fe08b60 fetch 1 ,mem_usb_setup_blengthh 
+7bd4 c0807a75 bne 0 ,usb0_force_stall 
+7bd5 6fe08b5d fetch 1 ,mem_usb_setup_windex 
+7bd6 c0807a75 bne 0 ,usb0_force_stall 
+7bd7 6fe08b5e fetch 1 ,mem_usb_setup_windex + 1 
+7bd8 c0807a75 bne 0 ,usb0_force_stall 
+7bd9 20207a79 branch usb0_reply_zerolen 
+
+usb_set_idle:
+7bda 47494032 bpatchx patch32_2 ,mem_patch32 
+7bdb 700be701 jam 1 ,mem_usb_idle_flag 
+7bdc 6fe08b5c fetch 1 ,mem_usb_setup_bvalueh 
+7bdd 67e08be8 store 1 ,mem_usb_idle_rate 
+7bde 6fe08b5d fetch 1 ,mem_usb_setup_windex 
+7bdf 1fe67c01 sub pdata ,1 ,null 
+7be0 2042fbe8 call usb_clear_remote_wakeup_set0 ,zero 
+7be1 6fe08bec fetch 1 ,mem_usb_state 
+7be2 c0827a79 bne usb_resume ,usb0_reply_zerolen 
+7be3 700bec02 jam usb_connected ,mem_usb_state 
+7be4 20407a79 call usb0_reply_zerolen 
+7be5 20007530 nop 30000 
+7be6 20007530 nop 30000 
+7be7 20600000 rtn 
+
+usb_clear_remote_wakeup_set0:
+7be8 700bfa01 jam 1 ,mem_usb_device_enumeration_endflag 
+7be9 700bee00 jam 0 ,mem_usb_clear_remote_wakeup 
+7bea 700bec04 jam usb_resume ,mem_usb_state 
+7beb 20600000 rtn 
+
+usb_set_report:
+7bec d8a00b61 arg mem_usb0_set_report_data ,contw 
+7bed 20407a27 call usb_rx_data 
+7bee 700be301 jam 1 ,mem_usb0_get_set_report 
+7bef 20407bfb call usb_set_report_resume_judge 
+7bf0 6fe10b5b fetch 2 ,mem_usb_setup_bvalue 
+7bf1 67e10be1 store 2 ,mem_usb_setup_bvalue_temp 
+7bf2 20407a79 call usb0_reply_zerolen 
+7bf3 6fe0c09a fetch 1 ,mem_device_option 
+7bf4 c1820000 rtnne dvc_op_dongle 
+7bf5 6fe08be5 fetch 1 ,mem_usb_tx_win_enable 
+7bf6 207a0000 rtn blank 
+7bf7 6fe08b61 fetch 1 ,mem_usb0_set_report_data 
+7bf8 67e0c8d4 store 1 ,mem_24g_led_status 
+7bf9 7048c303 jam kb_led_ackpayload ,mem_24g_ackpayload_enable 
+7bfa 20600000 rtn 
+
+usb_set_report_resume_judge:
+7bfb 6fe10b5b fetch 2 ,mem_usb_setup_bvalue 
+7bfc d8400200 arg pc_set_report_bvalue ,temp 
+7bfd 98467c00 isub temp ,null 
+7bfe 24628000 nrtn zero 
+7bff 6fe10b5d fetch 2 ,mem_usb_setup_windex 
+7c00 d8400000 arg pc_set_report_windex ,temp 
+7c01 98467c00 isub temp ,null 
+7c02 24628000 nrtn zero 
+7c03 6fe10b5f fetch 2 ,mem_usb_setup_blength 
+7c04 d8400001 arg pc_set_report_blength ,temp 
+7c05 98467c00 isub temp ,null 
+7c06 24628000 nrtn zero 
+7c07 700be501 jam 1 ,mem_usb_tx_win_enable 
+7c08 20600000 rtn 
+
+usb_set_protocol_req:
+7c09 6fe08b5f fetch 1 ,mem_usb_setup_blength 
+7c0a c0807a75 bne 0 ,usb0_force_stall 
+7c0b 6fe08b5b fetch 1 ,mem_usb_setup_bvalue 
+7c0c c0007c0f beq boot_protocol ,usb_set_boot_protocol 
+7c0d c000fc12 beq report_protocol ,usb_set_report_protocol 
+7c0e 20207a75 branch usb0_force_stall 
+
+usb_set_boot_protocol:
+7c0f 700bea00 jam 0 ,mem_usb_set_protocol_status 
+7c10 700beb01 jam 1 ,mem_usb_set_protocol_value 
+7c11 20207a79 branch usb0_reply_zerolen 
+
+usb_set_report_protocol:
+7c12 700be601 jam 1 ,mem_usb_tx_mac_enable 
+7c13 700bea01 jam 1 ,mem_usb_set_protocol_status 
+7c14 700beb00 jam 0 ,mem_usb_set_protocol_value 
+7c15 20207a79 branch usb0_reply_zerolen 
+
+usb0_respond_length:
+7c16 ea408011 ifetchr regb ,1 ,rega 
+7c17 1a20a201 increase 1 ,rega 
+
+usb0_respond:
+7c18 4749c032 bpatchx patch32_3 ,mem_patch32 
+7c19 7920000e set1 mark_usb_first_resp ,mark 
+7c1a c591fc1d bmark0 mark_isstr ,usb0_respond_nostr 
+7c1b 1a40a401 increase 1 ,regb 
+7c1c 1a43a400 lshift regb ,regb 
+
+usb0_respond_nostr:
+7c1d 62210a90 storer rega ,2 ,mem_bufptr 
+7c1e 62408a92 storer regb ,1 ,mem_remain 
+7c1f 20207c22 branch usb0_tx 
+
+usb_no_respond_data:
+7c20 d8e00000 arg 0 ,queue 
+7c21 20207c62 branch usb_trig 
+
+usb0_tx:
+7c22 474a4032 bpatchx patch32_4 ,mem_patch32 
+7c23 6ff08c24 fetch 1 ,core_usb_txbusy 
+7c24 c3800000 rtnbit1 0 
+7c25 6fe08a92 fetch 1 ,mem_remain 
+7c26 207a0000 rtn blank 
+7c27 1fe27200 copy pdata ,loopcnt 
+7c28 98000400 iforce temp 
+7c29 6fe10b5f fetch 2 ,mem_usb_setup_blength 
+7c2a 1fe67c40 sub pdata ,ep0_packet_size ,null 
+7c2b 20217c30 branch usb0_tx_short ,positive 
+7c2c 1f267c40 sub loopcnt ,ep0_packet_size ,null 
+7c2d 20217c34 branch usb0_tx_info ,positive 
+7c2e 18007240 force ep0_packet_size ,loopcnt 
+7c2f 20207c34 branch usb0_tx_info 
+
+usb0_tx_short:
+7c30 9f267c00 isub loopcnt ,null 
+7c31 20217c34 branch usb0_tx_info ,positive 
+7c32 98007200 iforce loopcnt 
+7c33 67e08a92 store 1 ,mem_remain 
+
+usb0_tx_info:
+7c34 6fe08a92 fetch 1 ,mem_remain 
+7c35 9f267e00 isub loopcnt ,pdata 
+7c36 67e08a92 store 1 ,mem_remain 
+7c37 1f20ffff add loopcnt ,-1 ,pdata 
+7c38 67e089fa store 1 ,mem_usb_txbuf 
+7c39 c591fc46 bmark0 mark_isstr ,usb0_tx_nostr 
+7c3a 1fe37e00 rshift pdata ,pdata 
+7c3b 1f20ffff add loopcnt ,-1 ,pdata 
+7c3c 67e089fa store 1 ,mem_usb_txbuf 
+7c3d c5877c46 bmark0 mark_usb_first_resp ,usb0_tx_nostr 
+7c3e 793f800e set0 mark_usb_first_resp ,mark 
+7c3f e0408005 istoret 1 ,contw 
+7c40 58000003 setarg 3 
+7c41 e7e08005 istore 1 ,contw 
+7c42 1f20f3ff increase -1 ,loopcnt 
+7c43 1f227e00 copy loopcnt ,pdata 
+7c44 2422fc46 nbranch usb0_tx_nostr ,zero 
+7c45 1f20f201 increase 1 ,loopcnt 
+
+usb0_tx_nostr:
+7c46 6fe10a90 fetch 2 ,mem_bufptr 
+7c47 1fe20c00 copy pdata ,contr 
+
+usb0_tx0:
+7c48 efe08006 ifetch 1 ,contr 
+7c49 e7e08005 istore 1 ,contw 
+7c4a c591fc4d bmark0 mark_isstr ,usb0_tx1 
+7c4b 58000000 setarg 0 
+7c4c e7e08005 istore 1 ,contw 
+
+usb0_tx1:
+7c4d c2007c48 loop usb0_tx0 
+7c4e 18c27e00 copy contr ,pdata 
+7c4f 67e10a90 store 2 ,mem_bufptr 
+7c50 580009fa setarg mem_usb_txbuf 
+7c51 67f10c09 store 2 ,core_usb_tx_saddr0 
+7c52 d8e00000 arg 0 ,queue 
+7c53 20407c62 call usb_trig 
+7c54 6fe08a92 fetch 1 ,mem_remain 
+7c55 247a0000 nrtn blank 
+7c56 6fe08bec fetch 1 ,mem_usb_state 
+7c57 c1808000 rtnne usb_got_report_req 
+7c58 700bec02 jam usb_connected ,mem_usb_state 
+7c59 20600000 rtn 
+
+usb_tx_ep1:
+7c5a d8e00001 arg 1 ,queue 
+7c5b da200a3b arg mem_usb_txbuf1 ,rega 
+7c5c 62310c0b storer rega ,2 ,core_usb_tx_saddr1 
+
+usb_tx_buf:
+7c5d 1f20ffff add loopcnt ,-1 ,pdata 
+7c5e e7e08011 istore 1 ,rega 
+
+usb_tx_loop:
+7c5f efe08006 ifetch 1 ,contr 
+7c60 e7e08005 istore 1 ,contw 
+7c61 c2007c5f loop usb_tx_loop 
+
+usb_trig:
+7c62 58000000 setarg 0 
+7c63 f9207e00 qset1 pdata 
+7c64 67f08c18 store 1 ,core_usb_trig 
+7c65 20600000 rtn 
+
+usb_tx_ep2:
+7c66 d8e00002 arg 2 ,queue 
+7c67 da200a45 arg mem_usb_txbuf2 ,rega 
+7c68 62310c0d storer rega ,2 ,core_usb_tx_saddr2 
+7c69 20207c5d branch usb_tx_buf 
+
+usb_tx:
+7c6a 474ac032 bpatchx patch32_5 ,mem_patch32 
+7c6b 6fe08bf9 fetch 1 ,mem_usb_tx_enable 
+7c6c 207a0000 rtn blank 
+7c6d 6fe08bfa fetch 1 ,mem_usb_device_enumeration_endflag 
+7c6e 203a7c8e branch usb_tx_fifo_release ,blank 
+7c6f 6fe08bec fetch 1 ,mem_usb_state 
+7c70 c001fcc8 beq usb_sleep ,usb_windows_wakeup 
+7c71 c0817c8e bne usb_connected ,usb_tx_fifo_release 
+7c72 6fe08bee fetch 1 ,mem_usb_clear_remote_wakeup 
+7c73 243a7c8e nbranch usb_tx_fifo_release ,blank 
+7c74 20407c76 call usb_tx_data_ep1 
+7c75 20207c81 branch usb_tx_data_ep2 
+
+usb_tx_data_ep1:
+7c76 6ff08c24 fetch 1 ,core_usb_txbusy 
+7c77 c3808000 rtnbit1 1 
+7c78 6fe08bf9 fetch 1 ,mem_usb_tx_enable 
+7c79 c4008000 rtnbit0 1 
+7c7a 6fe08bf9 fetch 1 ,mem_usb_tx_enable 
+7c7b 793ffe01 set0 1 ,pdata 
+7c7c 67e08bf9 store 1 ,mem_usb_tx_enable 
+7c7d 6fe08bf7 fetch 1 ,mem_usb_ep1_data 
+7c7e 207a0000 rtn blank 
+7c7f c0087cb0 beq usb_ep1_kb ,usb_tx_kb_normal_data 
+7c80 2020131f branch assert 
+
+usb_tx_data_ep2:
+7c81 6ff08c24 fetch 1 ,core_usb_txbusy 
+7c82 c3810000 rtnbit1 2 
+7c83 6fe08bf9 fetch 1 ,mem_usb_tx_enable 
+7c84 c4010000 rtnbit0 2 
+7c85 6fe08bf9 fetch 1 ,mem_usb_tx_enable 
+7c86 793ffe02 set0 2 ,pdata 
+7c87 67e08bf9 store 1 ,mem_usb_tx_enable 
+7c88 6fe08bf8 fetch 1 ,mem_usb_ep2_data 
+7c89 207a0000 rtn blank 
+7c8a c0107c91 beq usb_ep2_ms ,usb_tx_ms_data 
+7c8b c010fcac beq usb_ep2_multikey ,usb_tx_kb_multikey_data 
+7c8c c0117cb4 beq usb_ep2_systemkey ,usb_tx_kb_systemkey_data 
+7c8d 2020131f branch assert 
+
+usb_tx_fifo_release:
+7c8e d8a00bff arg mem_usb_mouse_data ,contw 
+7c8f df200008 arg 8 ,loopcnt 
+7c90 20207d25 branch memset0 
+
+usb_tx_ms_data:
+7c91 6fe08be7 fetch 1 ,mem_usb_idle_flag 
+7c92 68488be9 fetcht 1 ,mem_usb_get_protocol_flag 
+7c93 98417e00 iand temp ,pdata 
+7c94 203a7ca8 branch usb_tx_ms_data_normal_mode ,blank 
+7c95 68488bea fetcht 1 ,mem_usb_set_protocol_status 
+7c96 9840fe00 iadd temp ,pdata 
+7c97 c000fc99 beq mac_boot_mode ,usb_tx_ms_data_mac_boot_mode 
+7c98 20207ca8 branch usb_tx_ms_data_normal_mode 
+
+usb_tx_ms_data_mac_boot_mode:
+7c99 700bf800 jam 0 ,mem_usb_ep2_data 
+
+usb_tx_ms_data_mac_boot_regroup:
+7c9a 6fe08c00 fetch 1 ,mem_usb_mouse_data + 1 
+7c9b c0017ca9 beq r_key ,usb_tx_mac_boot_ms_regroup_r_or_lrkey 
+7c9c c001fca9 beq lr_key ,usb_tx_mac_boot_ms_regroup_r_or_lrkey 
+7c9d 6fe08c00 fetch 1 ,mem_usb_mouse_data + 1 
+7c9e 67e08bff store 1 ,mem_usb_mouse_data 
+7c9f 6fe08c01 fetch 1 ,mem_usb_mouse_data + 2 
+7ca0 e7e08005 istore 1 ,contw 
+7ca1 6fe08c03 fetch 1 ,mem_usb_mouse_data + 4 
+7ca2 e7e08005 istore 1 ,contw 
+7ca3 6fe08c05 fetch 1 ,mem_usb_mouse_data + 6 
+7ca4 e7e08005 istore 1 ,contw 
+7ca5 df200004 arg 4 ,loopcnt 
+7ca6 d8c00bff arg mem_usb_mouse_data ,contr 
+7ca7 20207c66 branch usb_tx_ep2 
+
+usb_tx_ms_data_normal_mode:
+7ca8 700bf800 jam 0 ,mem_usb_ep2_data 
+
+usb_tx_mac_boot_ms_regroup_r_or_lrkey:
+7ca9 df200008 arg 8 ,loopcnt 
+7caa d8c00bff arg mem_usb_mouse_data ,contr 
+7cab 20207c66 branch usb_tx_ep2 
+
+usb_tx_kb_multikey_data:
+7cac 700bf800 jam 0 ,mem_usb_ep2_data 
+7cad df200003 arg 3 ,loopcnt 
+7cae d8c00c1f arg mem_usb_kb_multikey ,contr 
+7caf 20207c66 branch usb_tx_ep2 
+
+usb_tx_kb_normal_data:
+7cb0 700bf700 jam 0 ,mem_usb_ep1_data 
+7cb1 df200008 arg 8 ,loopcnt 
+7cb2 d8c00c0f arg mem_usb_kb_data ,contr 
+7cb3 20207c5a branch usb_tx_ep1 
+
+usb_tx_kb_systemkey_data:
+7cb4 700bf800 jam 0 ,mem_usb_ep2_data 
+7cb5 df200002 arg 2 ,loopcnt 
+7cb6 d8c00c2f arg mem_usb_kb_system ,contr 
+7cb7 20207c66 branch usb_tx_ep2 
+
+usb_inwake_state_tx_dispose:
+7cb8 6fe08bec fetch 1 ,mem_usb_state 
+7cb9 c0017cbb beq usb_connected ,usb_mac_wakeup_trig 
+7cba 20600000 rtn 
+
+usb_mac_wakeup_trig:
+7cbb 6ff08c00 fetch 1 ,core_usb_config 
+7cbc 79207e07 set1 7 ,pdata 
+7cbd 67f08c00 store 1 ,core_usb_config 
+7cbe 700bfc01 jam 1 ,mem_usb_mac_wakeup_trig 
+7cbf 20600000 rtn 
+
+usb_mac_wakeup_judge:
+7cc0 6fe08bec fetch 1 ,mem_usb_state 
+7cc1 c1018000 rtneq usb_sleep 
+7cc2 c0017cc4 beq usb_connected ,usb_mac_wakeup 
+7cc3 20600000 rtn 
+
+usb_mac_wakeup:
+7cc4 6fe08bfc fetch 1 ,mem_usb_mac_wakeup_trig 
+7cc5 207a0000 rtn blank 
+7cc6 700bfb01 jam 1 ,mem_usb_wakestate_onetime_flag 
+7cc7 20207ccb branch usb_wakeup 
+
+usb_windows_wakeup:
+7cc8 d8e0000f arg timer_wakeup ,queue 
+7cc9 20407d82 call timer_check 
+7cca 247a0000 nrtn blank 
+
+usb_wakeup:
+7ccb 6ff08c00 fetch 1 ,core_usb_config 
+7ccc c4038000 rtnbit0 7 
+7ccd 708c00fc jam 0xfc ,core_usb_config 
+7cce 20007530 nop 30000 
+7ccf 708c003c jam 0x3c ,core_usb_config 
+7cd0 20600000 rtn 
+
+right_shift_n:
+7cd1 1f267c00 sub loopcnt ,0 ,null 
+7cd2 20628000 rtn zero 
+
+right_shift_n_loop:
+7cd3 1fe37e00 rshift pdata ,pdata 
+7cd4 c2007cd3 loop right_shift_n_loop 
+7cd5 20600000 rtn 
+
+left_shift_n:
+7cd6 18007e01 force 1 ,pdata 
+7cd7 1f267c00 sub loopcnt ,0 ,null 
+7cd8 20628000 rtn zero 
+
+left_shift_n_loop:
+7cd9 1fe3fe00 lshift pdata ,pdata 
+7cda c2007cd9 loop left_shift_n_loop 
+7cdb 20600000 rtn 
+
+push_stack:
+7cdc 60a1097d storer contw ,2 ,mem_contw 
+7cdd 604c0964 storet 8 ,mem_temp 
+7cde 6162096c storer timeup ,4 ,mem_timeup 
+7cdf 20407ce4 call push_stack_rega_b_c 
+7ce0 60c1097b storer contr ,2 ,mem_contr 
+7ce1 67210987 storer loopcnt ,2 ,mem_loopcnt 
+7ce2 60e10985 storer queue ,2 ,mem_queue 
+7ce3 20600000 rtn 
+
+push_stack_rega_b_c:
+7ce4 62220970 storer rega ,4 ,mem_rega 
+7ce5 62420974 storer regb ,4 ,mem_regb 
+7ce6 62618978 storer regc ,3 ,mem_regc 
+7ce7 20600000 rtn 
+
+pop_stack:
+7ce8 6fe1097d fetch 2 ,mem_contw 
+7ce9 98000a00 iforce contw 
+7cea 684c0964 fetcht 8 ,mem_temp 
+7ceb 6962096c fetchr timeup ,4 ,mem_timeup 
+7cec 20407cf2 call pop_stack_rega_b_c 
+7ced 6f210987 fetchr loopcnt ,2 ,mem_loopcnt 
+7cee 68e10985 fetchr queue ,2 ,mem_queue 
+7cef 6fe1097b fetch 2 ,mem_contr 
+7cf0 98000c00 iforce contr 
+7cf1 20600000 rtn 
+
+pop_stack_rega_b_c:
+7cf2 6a220970 fetchr rega ,4 ,mem_rega 
+7cf3 6a420974 fetchr regb ,4 ,mem_regb 
+7cf4 6a618978 fetchr regc ,3 ,mem_regc 
+7cf5 20600000 rtn 
+
+get_contw:
+7cf6 6fe1097d fetch 2 ,mem_contw 
+7cf7 1fe20a00 copy pdata ,contw 
+7cf8 20600000 rtn 
+
+get_contr:
+7cf9 6fe1097b fetch 2 ,mem_contr 
+7cfa 1fe20c00 copy pdata ,contr 
+7cfb 20600000 rtn 
+
+store_contw:
+7cfc 18a27e00 copy contw ,pdata 
+7cfd 67e1097d store 2 ,mem_contw 
+7cfe 20600000 rtn 
+
+store_contr:
+7cff 18c27e00 copy contr ,pdata 
+7d00 67e1097b store 2 ,mem_contr 
+7d01 20600000 rtn 
+
+save_cont_pointers:
+7d02 18a27e00 copy contw ,pdata 
+7d03 67e10959 store 2 ,mem_hold_contw 
+7d04 18c27e00 copy contr ,pdata 
+7d05 67e10957 store 2 ,mem_hold_contr 
+7d06 20600000 rtn 
+
+load_cont_pointers:
+7d07 6fe10959 fetch 2 ,mem_hold_contw 
+7d08 1fe20a00 copy pdata ,contw 
+7d09 6fe10957 fetch 2 ,mem_hold_contr 
+7d0a 1fe20c00 copy pdata ,contr 
+7d0b 20600000 rtn 
+
+memcpy96:
+7d0c 20407d18 call memcpy32 
+
+memcpy64:
+7d0d 20407d18 call memcpy32 
+7d0e 20207d18 branch memcpy32 
+
+memcpy20:
+7d0f 20407d14 call memcpy8 
+
+memcpy12:
+7d10 20407d14 call memcpy8 
+
+memcpy4:
+7d11 efe20006 ifetch 4 ,contr 
+7d12 e7e20005 istore 4 ,contw 
+7d13 20600000 rtn 
+
+memcpy8:
+7d14 efe40006 ifetch 8 ,contr 
+7d15 e7e40005 istore 8 ,contw 
+7d16 20600000 rtn 
+
+memcpy48:
+7d17 20407d1a call memcpy16 
+
+memcpy32:
+7d18 20407d14 call memcpy8 
+
+memcpy24:
+7d19 20407d14 call memcpy8 
+
+memcpy16:
+7d1a 20407d14 call memcpy8 
+7d1b 20207d14 branch memcpy8 
+
+delay:
+7d1c 1fe0ffff increase -1 ,pdata 
+7d1d 20000026 nop 38 
+7d1e 243a7d1c nbranch delay ,blank 
+7d1f 20600000 rtn 
+
+delay_10ms:
+7d20 df20000a arg 10 ,loopcnt 
+
+delay_ms_wait:
+7d21 20002ee0 nop 12000 
+7d22 c2007d21 loop delay_ms_wait 
+7d23 20600000 rtn 
+
+bn_zero:
+7d24 18007203 force 3 ,loopcnt 
+
+memset0:
+7d25 18007e00 force 0 ,pdata 
+
+memset8:
+7d26 e7e40005 istore 8 ,contw 
+7d27 c2007d26 loop memset8 
+7d28 20600000 rtn 
+
+memset0_16:
+7d29 20407d2a call memset0_8 
+
+memset0_8:
+7d2a 18007e00 force 0 ,pdata 
+7d2b e7e40005 istore 8 ,contw 
+7d2c 20600000 rtn 
+
+memset0_4:
+7d2d 18007e00 force 0 ,pdata 
+7d2e e7e20005 istore 4 ,contw 
+7d2f 20600000 rtn 
+
+clear_mem_256:
+7d30 18007204 force 4 ,loopcnt 
+7d31 20207d25 branch memset0 
+
+clear_mem_512:
+7d32 18007208 force 8 ,loopcnt 
+7d33 20207d25 branch memset0 
+
+clear_mem:
+7d34 1f227e00 deposit loopcnt 
+7d35 207a0000 rtn blank 
+7d36 58000000 setarg 0 
+
+clear_mem_loop:
+7d37 e7e08005 istore 1 ,contw 
+7d38 c2007d37 loop clear_mem_loop 
+7d39 20600000 rtn 
+
+clear_temp_block:
+7d3a df200020 arg 32 ,loopcnt 
+7d3b d8a0098e arg mem_temp_block0 ,contw 
+7d3c 20207d34 branch clear_mem 
+
+xor_loop:
+7d3d efe20013 ifetch 4 ,regc 
+7d3e e8420011 ifetcht 4 ,rega 
+7d3f 9842fe00 ixor temp ,pdata 
+7d40 e7e20005 istore 4 ,contw 
+7d41 1a20a204 increase 4 ,rega 
+7d42 1a60a604 increase 4 ,regc 
+7d43 c2007d3d loop xor_loop 
+7d44 20600000 rtn 
+
+inverse_data:
+7d45 474b4032 bpatchx patch32_6 ,mem_patch32 
+7d46 1f227e00 copy loopcnt ,pdata 
+7d47 1fe67c01 sub pdata ,1 ,null 
+7d48 20610000 rtn positive 
+7d49 9a20a400 iadd rega ,regb 
+7d4a 1a40a5ff increase -1 ,regb 
+7d4b 1f237200 rshift loopcnt ,loopcnt 
+
+inverse_loop:
+7d4c e8408011 ifetcht 1 ,rega 
+7d4d efe08012 ifetch 1 ,regb 
+7d4e e7e08011 istore 1 ,rega 
+7d4f e0408012 istoret 1 ,regb 
+7d50 1a40a5ff increase -1 ,regb 
+7d51 1a20a201 increase 1 ,rega 
+7d52 c2007d4c loop inverse_loop 
+7d53 20600000 rtn 
+
+le2be_6byte:
+
+inverse_data_6byte:
+7d54 1fef0400 rshift32 pdata ,temp 
+7d55 20407d5a call inverse_data_4byte 
+7d56 18508400 byteswap temp ,temp 
+7d57 1ff07e00 lshift16 pdata ,pdata 
+7d58 9841fe00 ior temp ,pdata 
+7d59 20600000 rtn 
+
+le2be_4byte:
+
+inverse_data_4byte:
+7d5a 1ff10c00 rshift16 pdata ,contr 
+7d5b 18d08c00 byteswap contr ,contr 
+7d5c 1ff0fe00 byteswap pdata ,pdata 
+7d5d 1ff07e00 lshift16 pdata ,pdata 
+7d5e 98c1fe00 ior contr ,pdata 
+7d5f 20600000 rtn 
+
+memcpy_fast:
+7d60 1f227e00 deposit loopcnt 
+7d61 207a0000 rtn blank 
+
+memcpy_fast_loop:
+7d62 1f20f3f8 increase -8 ,loopcnt 
+7d63 20417d14 call memcpy8 ,positive 
+7d64 20628000 rtn zero 
+7d65 20217d62 branch memcpy_fast_loop ,positive 
+7d66 1f20f208 increase 8 ,loopcnt 
+
+memcpy_fast_loop_four:
+7d67 1f20f3fc increase -4 ,loopcnt 
+7d68 20417d11 call memcpy4 ,positive 
+7d69 20628000 rtn zero 
+7d6a 20217d67 branch memcpy_fast_loop_four ,positive 
+7d6b 1f20f204 increase 4 ,loopcnt 
+7d6c 20207d6d branch memcpy 
+
+memcpy:
+7d6d 1f227e00 deposit loopcnt 
+7d6e 207a0000 rtn blank 
+
+memcpy_loop:
+7d6f efe08006 ifetch 1 ,contr 
+7d70 e7e08005 istore 1 ,contw 
+7d71 c2007d6f loop memcpy_loop 
+7d72 20600000 rtn 
+
+timer_stop:
+7d73 58000000 setarg 0 
+
+timer_init:
+7d74 1c430400 rshift clkn_bt ,temp 
+7d75 604a409c storet 4 ,mem_last_clkn 
+7d76 d8a041ad arg mem_timers ,contw 
+7d77 98000400 iforce temp 
+7d78 18e3fe00 lshift queue ,pdata 
+7d79 98a08a00 iadd contw ,contw 
+7d7a e0410005 istoret 2 ,contw 
+7d7b 474bc032 bpatchx patch32_7 ,mem_patch32 
+7d7c 20600000 rtn 
+
+timer_check_timeout:
+7d7d d9600800 arg 0x800 ,timeup 
+7d7e 19701600 lshift16 timeup ,timeup 
+7d7f 9960fe00 iadd timeup ,pdata 
+7d80 20600000 rtn 
+
+timer_reinit:
+7d81 d8e00000 arg 0 ,queue 
+
+timer_check:
+7d82 474c4033 bpatchx patch33_0 ,mem_patch33 
+7d83 684a409c fetcht 4 ,mem_last_clkn 
+7d84 1c437e00 rshift clkn_bt ,pdata 
+7d85 67e2409c store 4 ,mem_last_clkn 
+7d86 98467c00 isub temp ,null 
+7d87 24417d7d ncall timer_check_timeout ,positive 
+7d88 98461600 isub temp ,timeup 
+7d89 19620400 copy timeup ,temp 
+7d8a d8c041ad arg mem_timers ,contr 
+7d8b 18c20a00 copy contr ,contw 
+7d8c df200010 arg 16 ,loopcnt 
+
+timer_loop:
+7d8d efe10006 ifetch 2 ,contr 
+7d8e 98467e00 isub temp ,pdata 
+7d8f 20217d91 branch timer_counting ,positive 
+7d90 18007e00 force 0 ,pdata 
+
+timer_counting:
+7d91 e7e10005 istore 2 ,contw 
+7d92 c2007d8d loop timer_loop 
+7d93 d8c041ad arg mem_timers ,contr 
+7d94 18e3fe00 lshift queue ,pdata 
+7d95 98c08c00 iadd contr ,contr 
+7d96 efe10006 ifetch 2 ,contr 
+7d97 20600000 rtn 
+
+clk_add:
+7d98 98408400 iadd temp ,temp 
+7d99 18427200 copy temp ,loopcnt 
+7d9a 6fe10163 fetch 2 ,mem_param_rt_rthalfslot 
+7d9b 9f267e00 isub loopcnt ,pdata 
+7d9c 20610000 rtn positive 
+7d9d 1fe67e00 sub pdata ,0 ,pdata 
+7d9e 18510400 rshift16 temp ,temp 
+7d9f 18408401 increase 1 ,temp 
+7da0 18500400 lshift16 temp ,temp 
+7da1 98418400 ior temp ,temp 
+7da2 20600000 rtn 
+
+clk_diff_rt:
+7da3 20407da5 call clk_diff 
+7da4 20207db2 branch clk2rt 
+
+clk_diff:
+7da5 78547c00 disable user 
+7da6 98467e00 isub temp ,pdata 
+7da7 20217daa branch clk_diff_pos ,positive 
+7da8 78347c00 enable user 
+7da9 1fe67e00 sub pdata ,0 ,pdata 
+
+clk_diff_pos:
+7daa c4078000 rtnbit0 15 
+7dab 1fe22800 copy pdata ,regab 
+7dac d8410000 arg 0x10000 ,temp 
+7dad 6fe10163 fetch 2 ,mem_param_rt_rthalfslot 
+7dae 98467e00 isub temp ,pdata 
+7daf 9a80fe00 iadd regab ,pdata 
+7db0 793ffe40 set0 64 ,pdata 
+7db1 20600000 rtn 
+
+clk2rt:
+7db2 68490163 fetcht 2 ,mem_param_rt_rthalfslot 
+7db3 98000c00 iforce contr 
+7db4 1ff17e00 rshift16 pdata ,pdata 
+7db5 984ffe00 imul32 temp ,pdata 
+7db6 98c0fe00 iadd contr ,pdata 
+7db7 20600000 rtn 
+
+clk2lpo:
+7db8 1fed7e00 lshift8 pdata ,pdata 
+7db9 1ff27e00 lshift4 pdata ,pdata 
+7dba 6849c177 fetcht 3 ,mem_clks_per_lpo 
+7dbb 9846fc00 idiv temp 
+7dbc 20407dfd call wait_div_end 
+7dbd 18078400 quotient temp 
+7dbe 20600000 rtn 
+
+clk2bt:
+7dbf 68490163 fetcht 2 ,mem_param_rt_rthalfslot 
+7dc0 9846fc00 idiv temp 
+7dc1 20407dfa call get_div_result 
+7dc2 1ff07e00 lshift16 pdata ,pdata 
+7dc3 18070400 remainder temp 
+7dc4 98418400 ior temp ,temp 
+7dc5 20600000 rtn 
+
+string2dec_from_uart:
+7dc6 d8400000 arg 0 ,temp 
+
+string2dec_from_uart_done:
+7dc7 18422800 copy temp ,regab 
+7dc8 efe08003 ifetch 1 ,contu 
+7dc9 20407dd2 call uchar2dialog 
+7dca 1a820400 copy regab ,temp 
+7dcb 20407e0c call swap 
+7dcc da40000a arg 10 ,regb 
+7dcd 9a4ffe00 imul32 regb ,pdata 
+7dce 9840fe00 iadd temp ,pdata 
+7dcf 1fe20400 copy pdata ,temp 
+7dd0 c2007dc7 loop string2dec_from_uart_done 
+7dd1 20600000 rtn 
+
+uchar2dialog:
+7dd2 d840003a arg 0x3a ,temp 
+7dd3 98467c00 isub temp ,null 
+7dd4 24217ddb nbranch uchar2dialog_number ,positive 
+7dd5 d8400061 arg 0x61 ,temp 
+7dd6 98467c00 isub temp ,null 
+7dd7 20217dde branch uchar2dialog_a2f ,positive 
+7dd8 d8400037 arg 0x37 ,temp 
+7dd9 98467e00 isub temp ,pdata 
+7dda 20600000 rtn 
+
+uchar2dialog_number:
+7ddb d8400030 arg 0x30 ,temp 
+7ddc 98467e00 isub temp ,pdata 
+7ddd 20600000 rtn 
+
+uchar2dialog_a2f:
+7dde d8400057 arg 0x57 ,temp 
+7ddf 98467e00 isub temp ,pdata 
+7de0 20600000 rtn 
+
+pn9:
+7de1 18426000 copy temp ,alarm 
+7de2 580001ff setarg 0x1ff 
+7de3 18002400 force 0 ,regb 
+
+pn9_loop:
+7de4 1fe92200 rshift3 pdata ,rega 
+7de5 1a232200 rshift rega ,rega 
+7de6 9a22a200 ixor rega ,rega 
+7de7 2a2ffe00 isolate1 0 ,rega 
+7de8 7920fe09 setflag true ,9 ,pdata 
+7de9 18430400 rshift temp ,temp 
+7dea 2feffe00 isolate1 0 ,pdata 
+7deb 79208407 setflag true ,7 ,temp 
+7dec 1fe37e00 rshift pdata ,pdata 
+7ded 1a40a401 increase 1 ,regb 
+7dee 2a400e00 compare 0 ,regb ,0x7 
+7def 2420fde4 nbranch pn9_loop ,true 
+7df0 e0408005 istoret 1 ,contw 
+7df1 c2007de4 loop pn9_loop 
+7df2 1e020400 copy alarm ,temp 
+7df3 20600000 rtn 
+
+calc_average:
+7df4 58000000 setarg 0 
+7df5 1f222200 copy loopcnt ,rega 
+
+calc_average_loop:
+7df6 e8410006 ifetcht 2 ,contr 
+7df7 9840fe00 iadd temp ,pdata 
+7df8 c2007df6 loop calc_average_loop 
+7df9 9a26fc00 idiv rega 
+
+get_div_result:
+7dfa 20407dfd call wait_div_end 
+7dfb 1807fe00 quotient pdata 
+7dfc 20600000 rtn 
+
+wait_div_end:
+7dfd 207a8000 rtn modone 
+7dfe 20207dfd branch wait_div_end 
+
+compare_loop:
+
+string_compare:
+7dff efe08011 ifetch 1 ,rega 
+7e00 e8408012 ifetcht 1 ,regb 
+7e01 98467c00 isub temp ,null 
+7e02 24628000 nrtn zero 
+7e03 1a20a201 increase 1 ,rega 
+7e04 1a40a401 increase 1 ,regb 
+7e05 c2007dff loop string_compare 
+7e06 18007c00 force 0 ,null 
+7e07 20600000 rtn 
+
+ceiling:
+7e08 98467c00 isub temp ,null 
+7e09 24610000 nrtn positive 
+7e0a 18427e00 deposit temp 
+7e0b 20600000 rtn 
+
+swap:
+7e0c 9840fe00 iadd temp ,pdata 
+7e0d 98460400 isub temp ,temp 
+7e0e 98467e00 isub temp ,pdata 
+7e0f 20600000 rtn 
+
+clean_mem:
+7e10 df200200 arg 0x200 ,loopcnt 
+7e11 d8a04000 arg 0x4000 ,contw 
+7e12 20207d25 branch memset0 
+
+callback_func:
+7e13 207a0000 rtn blank 
+7e14 1fe27a00 copy pdata ,pc 
+
+wait_uarttx:
+7e15 6ff1010e fetch 2 ,core_uart_txitems 
+7e16 243a7e15 nbranch wait_uarttx ,blank 
+7e17 20600000 rtn 
+
+ice_break:
+7e18 70820301 jam 0x1 ,core_ice_ctrl 
+7e19 20600000 rtn 
+
+ice_setbp:
+7e1a 67f10205 store 2 ,core_ice_break0 
+7e1b 6ff08203 fetch 1 ,core_ice_ctrl 
+7e1c 79207e04 set1 4 ,pdata 
+7e1d 67f08203 store 1 ,core_ice_ctrl 
+7e1e 20600000 rtn 
+
+ice_setbp2:
+7e1f 67f10207 store 2 ,core_ice_break1 
+7e20 6ff08203 fetch 1 ,core_ice_ctrl 
+7e21 79207e06 set1 6 ,pdata 
+7e22 67f08203 store 1 ,core_ice_ctrl 
+7e23 20600000 rtn 
+
+ice_set_write_bp:
+7e24 67f10205 store 2 ,core_ice_break0 
+7e25 70820330 jam 0x30 ,core_ice_ctrl 
+7e26 20600000 rtn 
+
+test_no_white:
+7e27 6ff08043 fetch 1 ,core_config 
+7e28 79207e04 set1 whiteoff_bit ,pdata 
+7e29 67f08043 store 1 ,core_config 
+7e2a 20600000 rtn 
+
+test_enable_white:
+7e2b 6ff08043 fetch 1 ,core_config 
+7e2c 793ffe04 set0 whiteoff_bit ,pdata 
+7e2d 67f08043 store 1 ,core_config 
+7e2e 20600000 rtn 
+
+check_uart_tx_buff:
+7e2f 6ff1010e fetch 2 ,core_uart_txitems 
+7e30 d8400200 arg uart_air_control_threshold ,temp 
+
+pdata_sub_temp:
+7e31 98467c00 isub temp ,null 
+7e32 20600000 rtn 
+
+fifo_in:
+7e33 474cc033 bpatchx patch33_1 ,mem_patch33 
+7e34 e8440011 ifetcht util_fifo_len ,rega 
+7e35 18417eff and temp ,0xff ,pdata 
+7e36 243a7e39 nbranch fifo_in_push ,blank 
+7e37 184cfe00 rshift8 temp ,pdata 
+7e38 e7e40011 istore util_fifo_len ,rega 
+
+fifo_in_push:
+7e39 1a20a207 increase util_fifo_len + util_fifo_offset ,rega 
+7e3a efe08011 ifetch 1 ,rega 
+7e3b 243a131f nbranch assert ,blank 
+7e3c 6fe0895b fetch 1 ,mem_fifo_temp 
+7e3d e7e08011 istore 1 ,rega 
+7e3e 20600000 rtn 
+
+fifo_out:
+7e3f 474d4033 bpatchx patch33_2 ,mem_patch33 
+7e40 df200008 arg util_fifo_len ,loopcnt 
+7e41 efe40011 ifetch util_fifo_len ,rega 
+7e42 207a0000 rtn blank 
+
+fifo_out_loop:
+7e43 efe08011 ifetch 1 ,rega 
+7e44 243a7e48 nbranch fifo_out_end ,blank 
+7e45 1a20a201 increase 1 ,rega 
+7e46 c2007e43 loop fifo_out_loop 
+7e47 2020131f branch assert 
+
+fifo_out_end:
+7e48 d8400000 arg 0 ,temp 
+7e49 e0408011 istoret 1 ,rega 
+7e4a 20600000 rtn 
+
+fifo_is_empty:
+7e4b efe40011 ifetch util_fifo_len ,rega 
+7e4c 20600000 rtn 
+
+fifo_is_full:
+7e4d efe08011 ifetch 1 ,rega 
+7e4e 20600000 rtn 
+
+fifo_is_near_full:
+7e4f efe10011 ifetch 2 ,rega 
+7e50 20600000 rtn 
+
+fifo_content_count:
+7e51 d8400000 arg 0 ,temp 
+
+fifo_content_count_loop:
+7e52 6fe08006 fetch 1 ,contr 
+7e53 c2007e52 loop fifo_content_count_loop ,blank 
+7e54 18408401 increase 1 ,temp 
+7e55 c2007e52 loop fifo_content_count_loop 
+7e56 18427e00 copy temp ,pdata 
+7e57 20600000 rtn 
+
+not_greater_than:
+7e58 98467c00 isub temp ,null 
+7e59 24610000 nrtn positive 
+
+copy_temp2pdata:
+7e5a 18427e00 copy temp ,pdata 
+7e5b 20600000 rtn 
+
+disable_positive:
+7e5c 18007dff force -1 ,null 
+7e5d 20600000 rtn 
+
+enable_positive:
+
+disable_zero:
+7e5e 18007c01 force 1 ,null 
+7e5f 20600000 rtn 
+
+enable_zero:
+7e60 18007c00 force 0 ,null 
+7e61 20600000 rtn 
+
+enable_user:
+7e62 78347c00 enable user 
+7e63 20600000 rtn 
+
+disable_user:
+7e64 78547c00 disable user 
+7e65 20600000 rtn 
+
+enable_user2:
+7e66 78367c00 enable user2 
+7e67 20600000 rtn 
+
+disable_user2:
+7e68 78567c00 disable user2 
+7e69 20600000 rtn 
+
+disable_blank:
+7e6a 58000001 setarg 1 
+7e6b 20600000 rtn 
+
+enable_blank:
+
+set_pdata_0:
+7e6c 58000000 setarg 0 
+7e6d 20600000 rtn 
+
+cal_sum:
+7e6e 1f267c00 sub loopcnt ,0 ,null 
+7e6f 20628000 rtn zero 
+
+cal_sum_loop:
+7e70 e8408006 ifetcht 1 ,contr 
+7e71 9840fe00 iadd temp ,pdata 
+7e72 c2007e70 loop cal_sum_loop 
+7e73 20600000 rtn 
+
+reverse_byte:
+7e74 1f227e00 copy loopcnt ,pdata 
+7e75 207a0000 rtn blank 
+7e76 18c27e00 copy contr ,pdata 
+7e77 9f20fe00 iadd loopcnt ,pdata 
+7e78 1fe0ffff increase -1 ,pdata 
+7e79 1fe20c00 copy pdata ,contr 
+
+reverse_loop:
+7e7a efe08006 ifetch 1 ,contr 
+7e7b 18c08dfe increase -2 ,contr 
+7e7c e7e08005 istore 1 ,contw 
+7e7d c2007e7a loop reverse_loop 
+7e7e 20600000 rtn 
+
+calc_k12:
+7e7f 19622400 copy timeup ,regb 
+
+calc_k:
+7e80 da609420 arg mem_local_sig ,regc 
+7e81 18007224 force 36 ,loopcnt 
+7e82 18005600 force 0 ,rege 
+7e83 18006e00 force 0 ,regf 
+
+rxcal_k1_loop:
+7e84 20407e94 call complex_mult16to8 
+7e85 52207e00 preload rega 
+7e86 9d60d600 iadd rege ,rege 
+7e87 50407e00 preload temp 
+7e88 9ee0ee00 iadd regf ,regf 
+7e89 1a40a404 increase 4 ,regb 
+7e8a 1a60a602 increase 2 ,regc 
+7e8b c2007e84 loop rxcal_k1_loop 
+7e8c 55607e00 preload rege 
+7e8d d8400024 arg 36 ,temp 
+7e8e 20407ee0 call signed_div 
+7e8f e7e20005 istore 4 ,contw 
+7e90 56e07e00 preload regf 
+7e91 20407ee0 call signed_div 
+7e92 e7e20005 istore 4 ,contw 
+7e93 20600000 rtn 
+
+complex_mult16to8:
+7e94 edc10012 ifetchr nap ,2 ,regb 
+7e95 eb808013 ifetchr fhs_misc ,1 ,regc 
+7e96 20407ec5 call signed_ext16by8 
+7e97 98482200 imults temp ,rega 
+7e98 eb808006 ifetchr fhs_misc ,1 ,contr 
+7e99 20347e9b branch complex_not_conj ,user 
+7e9a 1b863800 sub fhs_misc ,0 ,fhs_misc 
+
+complex_not_conj:
+7e9b 1a408c02 add regb ,2 ,contr 
+7e9c edc10006 ifetchr nap ,2 ,contr 
+7e9d 20407ec5 call signed_ext16by8 
+7e9e 98483000 imults temp ,regd 
+7e9f 52207e00 preload rega 
+7ea0 9b062200 isub regd ,rega 
+7ea1 edc10012 ifetchr nap ,2 ,regb 
+7ea2 55c07e00 preload nap 
+7ea3 98483000 imults temp ,regd 
+7ea4 edc10006 ifetchr nap ,2 ,contr 
+7ea5 eb808013 ifetchr fhs_misc ,1 ,regc 
+7ea6 20407ec5 call signed_ext16by8 
+7ea7 98480400 imults temp ,temp 
+7ea8 53007e00 preload regd 
+7ea9 98408400 iadd temp ,temp 
+7eaa 20600000 rtn 
+
+complex_mult32to32:
+7eab efe20012 ifetch 4 ,regb 
+7eac ea220013 ifetchr rega ,4 ,regc 
+7ead 9a285600 imults rega ,rege 
+7eae ea220006 ifetchr rega ,4 ,contr 
+7eaf 52206e00 aligned rega ,regf 
+7eb0 1a408c04 add regb ,4 ,contr 
+7eb1 efe20006 ifetch 4 ,contr 
+7eb2 9a280400 imults rega ,temp 
+7eb3 55607e00 preload rege 
+7eb4 98465600 isub temp ,rege 
+7eb5 efe20012 ifetch 4 ,regb 
+7eb6 9ee86e00 imults regf ,regf 
+7eb7 efe20006 ifetch 4 ,contr 
+7eb8 ea220013 ifetchr rega ,4 ,regc 
+7eb9 9a287e00 imults rega ,pdata 
+7eba 9ee0ee00 iadd regf ,regf 
+7ebb 20600000 rtn 
+
+lshift14:
+7ebc 1ff07e00 lshift16 pdata ,pdata 
+
+rshift2:
+7ebd 1feb7e00 rshift2 pdata ,pdata 
+7ebe 20600000 rtn 
+
+lshift6:
+7ebf 1fed7e00 lshift8 pdata ,pdata 
+7ec0 20207ebd branch rshift2 
+
+calc_vok:
+7ec1 9feffe00 imul32 pdata ,pdata 
+
+rshift7:
+7ec2 1ff1fe00 rshift4 pdata ,pdata 
+7ec3 1fe97e00 rshift3 pdata ,pdata 
+7ec4 20600000 rtn 
+
+signed_ext16by8:
+7ec5 55c07e00 preload nap 
+7ec6 53800400 aligned fhs_misc ,temp 
+7ec7 20600000 rtn 
+
+abs32:
+7ec8 c40f8000 rtnbit0 31 
+7ec9 18000400 force 0 ,temp 
+7eca 79200420 set1 32 ,temp 
+7ecb 184085ff increase -1 ,temp 
+7ecc 9842fe00 ixor temp ,pdata 
+7ecd 1fe0fe01 pincrease 1 
+7ece 20600000 rtn 
+
+sqrt:
+7ecf 98002200 iforce rega 
+7ed0 db000000 arg 0 ,regd 
+7ed1 7920301e set1 30 ,regd 
+7ed2 da400000 arg 0 ,regb 
+7ed3 df200010 arg 16 ,loopcnt 
+
+sqrt_loop:
+7ed4 1b027e00 deposit regd 
+7ed5 9a40fe00 iadd regb ,pdata 
+7ed6 1a432400 rshift regb ,regb 
+7ed7 9a267e00 isub rega ,pdata 
+7ed8 2022feda branch sqrt_less ,zero 
+7ed9 20217edd branch sqrt_greater ,positive 
+
+sqrt_less:
+7eda 1fe62200 sub pdata ,0 ,rega 
+7edb 1b027e00 deposit regd 
+7edc 9a41a400 ior regb ,regb 
+
+sqrt_greater:
+7edd 1b0b3000 rshift2 regd ,regd 
+7ede c2007ed4 loop sqrt_loop 
+7edf 20600000 rtn 
+
+signed_div:
+7ee0 793f802c set0 mark_temp ,mark 
+7ee1 c31ffee4 bbit0 63 ,signed_div_unsigna 
+7ee2 7920002c set1 mark_temp ,mark 
+7ee3 1fe67e00 sub pdata ,0 ,pdata 
+
+signed_div_unsigna:
+7ee4 284c003f isolate0 63 ,temp 
+7ee5 2020fee8 branch signed_div_unsignb ,true 
+7ee6 7940002c setflip mark_temp ,mark 
+7ee7 18460400 sub temp ,0 ,temp 
+
+signed_div_unsignb:
+7ee8 9846fc00 idiv temp 
+7ee9 20407dfa call get_div_result 
+7eea c6960000 rtnmark0 mark_temp 
+7eeb 1fe67e00 sub pdata ,0 ,pdata 
+7eec 20600000 rtn 
+
+rx_iq_comp:
+7eed 20407ef3 call calc_k1 
+7eee 20407ef6 call calc_k2 
+7eef 20407ef8 call calc_absk12_sqr 
+7ef0 20407f07 call calc_g 
+7ef1 20407f16 call calc_a 
+7ef2 20207f23 branch calc_c22 
+
+calc_k1:
+7ef3 78347c00 enable user 
+7ef4 d8a00a01 arg mem_tmp_buffer ,contw 
+7ef5 20207e7f branch calc_k12 
+
+calc_k2:
+7ef6 78547c00 disable user 
+7ef7 20207e7f branch calc_k12 
+
+calc_absk12_sqr:
+7ef8 6fe20a01 fetch 4 ,mem_tmp_buffer 
+7ef9 684a0a09 fetcht 4 ,mem_tmp_buffer + 8 
+7efa 9840fe00 iadd temp ,pdata 
+7efb 20407ec8 call abs32 
+7efc 98000400 iforce temp 
+7efd 984fd600 imul32 temp ,rege 
+7efe 6fe20a05 fetch 4 ,mem_tmp_buffer + 4 
+7eff 684a0a0d fetcht 4 ,mem_tmp_buffer + 12 
+7f00 98467e00 isub temp ,pdata 
+7f01 20407ec8 call abs32 
+7f02 98000400 iforce temp 
+7f03 984ffe00 imul32 temp ,pdata 
+7f04 9d60fe00 iadd rege ,pdata 
+7f05 67e40a11 store 8 ,mem_tmp_buffer + 16 
+7f06 20600000 rtn 
+
+calc_g:
+7f07 da400a01 arg mem_tmp_buffer ,regb 
+7f08 da600a09 arg mem_tmp_buffer + 8 ,regc 
+7f09 20407eab call complex_mult32to32 
+7f0a 55607e00 preload rege 
+7f0b 1fe67e00 sub pdata ,0 ,pdata 
+7f0c 1ff07e00 lshift16 pdata ,pdata 
+7f0d 1febfe00 lshift2 pdata ,pdata 
+7f0e 684c0a11 fetcht 8 ,mem_tmp_buffer + 16 
+7f0f 9848fc00 idiv48 temp 
+7f10 da210000 arg 0x10000 ,rega 
+7f11 20407dfa call get_div_result 
+7f12 9a20fe00 iadd rega ,pdata 
+7f13 20407ecf call sqrt 
+7f14 1a425600 copy regb ,rege 
+7f15 20600000 rtn 
+
+calc_a:
+7f16 184f7e00 rshift32 temp ,pdata 
+7f17 9a4fa200 imul32 regb ,rega 
+7f18 1a427e00 deposit regb 
+7f19 984f8400 imul32 temp ,temp 
+7f1a 1a307e00 lshift16 rega ,pdata 
+7f1b 1ff07e00 lshift16 pdata ,pdata 
+7f1c 98408400 iadd temp ,temp 
+7f1d 56e07e00 preload regf 
+7f1e 1fe67e00 sub pdata ,0 ,pdata 
+7f1f 1ff07e00 lshift16 pdata ,pdata 
+7f20 1fe3fe00 lshift pdata ,pdata 
+7f21 9848fc00 idiv48 temp 
+7f22 20207dfa branch get_div_result 
+
+calc_c22:
+7f23 1fe32600 rshift pdata ,regc 
+7f24 9fef8400 imul32 pdata ,temp 
+7f25 58010000 setarg 0x10000 
+7f26 98467e00 isub temp ,pdata 
+7f27 20407ecf call sqrt 
+7f28 1a427e00 deposit regb 
+7f29 9d6f8400 imul32 rege ,temp 
+7f2a 58000000 setarg 0 
+7f2b 79207e1c set1 28 ,pdata 
+7f2c 9848fc00 idiv48 temp 
+7f2d 20407dfd call wait_div_end 
+7f2e 18078400 quotient temp 
+7f2f 58001000 setarg 0x1000 
+7f30 98466e00 isub temp ,regf 
+7f31 20600000 rtn 
+
+tx_iq_precomp:
+7f32 20407f38 call calc_vok1 
+7f33 20407f3c call calc_sumvok 
+7f34 20407f43 call calc_ad_bc 
+7f35 20407f4a call calc_omega 
+7f36 20407f59 call calc_b1 
+7f37 20207f64 branch calc_b2 
+
+calc_vok1:
+7f38 6fe089f6 fetch 1 ,mem_vdk 
+7f39 20407ec1 call calc_vok 
+7f3a 67e089f8 store 1 ,mem_vok 
+7f3b 20600000 rtn 
+
+calc_sumvok:
+7f3c 98002600 iforce regc 
+7f3d 9fef8400 imul32 pdata ,temp 
+7f3e efe08006 ifetch 1 ,contr 
+7f3f 20407ec1 call calc_vok 
+7f40 e7e08005 istore 1 ,contw 
+7f41 9a60a200 iadd regc ,rega 
+7f42 20600000 rtn 
+
+calc_ad_bc:
+7f43 9feffe00 imul32 pdata ,pdata 
+7f44 9840a400 iadd temp ,regb 
+7f45 1a227e00 deposit rega 
+7f46 9a2f8400 imul32 rega ,temp 
+7f47 1a43fe00 lshift regb ,pdata 
+7f48 98460400 isub temp ,temp 
+7f49 20600000 rtn 
+
+calc_omega:
+7f4a 58400000 setarg 0x400000 
+7f4b 9846fc00 idiv temp 
+7f4c 20407dfa call get_div_result 
+7f4d 67e109fc store 2 ,mem_omega 
+7f4e 1a307e00 lshift16 rega ,pdata 
+7f4f 1feb7e00 rshift2 pdata ,pdata 
+7f50 9846fc00 idiv temp 
+7f51 20407dfa call get_div_result 
+7f52 e7e10005 istore 2 ,contw 
+7f53 1a4d7e00 lshift8 regb ,pdata 
+7f54 1fe37e00 rshift pdata ,pdata 
+7f55 9846fc00 idiv temp 
+7f56 20407dfa call get_div_result 
+7f57 e7e10005 istore 2 ,contw 
+7f58 20600000 rtn 
+
+calc_b1:
+7f59 1a707e00 lshift16 regc ,pdata 
+7f5a 1feb7e00 rshift2 pdata ,pdata 
+7f5b 9a46fc00 idiv regb 
+7f5c 20407dfa call get_div_result 
+7f5d 67e10a02 store 2 ,mem_b1 
+7f5e 6fe089f6 fetch 1 ,mem_vdk 
+7f5f 20407ebf call lshift6 
+7f60 9a26fc00 idiv rega 
+7f61 20407dfa call get_div_result 
+7f62 e7e10005 istore 2 ,contw 
+7f63 20600000 rtn 
+
+calc_b2:
+7f64 6fe089f9 fetch 1 ,mem_vok + 1 
+7f65 20407ebc call lshift14 
+7f66 9a46fc00 idiv regb 
+7f67 20407dfa call get_div_result 
+7f68 67e10a06 store 2 ,mem_b2 
+7f69 6fe089f7 fetch 1 ,mem_vdk + 1 
+7f6a 20407ebf call lshift6 
+7f6b 9a26fc00 idiv rega 
+7f6c 20407dfa call get_div_result 
+7f6d e7e10005 istore 2 ,contw 
+7f6e 20600000 rtn 
+
+tx_iq_cal:
+7f6f d8a00a2a arg mem_q ,contw 
+7f70 df200002 arg 2 ,loopcnt 
+7f71 20407d25 call memset0 
+7f72 d8e00004 arg 4 ,queue 
+
+tx_iq_cal_loop:
+7f73 20407f8f call calc_mk1 
+7f74 20407f92 call calc_d 
+7f75 20407f95 call calc_c 
+7f76 20407f9e call calc_est1 
+7f77 20407fa4 call calc_est2 
+7f78 20407faa call calc_u1 
+7f79 20407fb0 call calc_u2 
+7f7a 20407fb6 call calc_qest 
+7f7b 19609620 increase 32 ,timeup 
+7f7c 18e08fff increase -1 ,queue 
+7f7d 2422ff73 nbranch tx_iq_cal_loop ,zero 
+
+calc_tx_c22:
+7f7e 6fe20a2a fetch 4 ,mem_q 
+7f7f d8c00100 arg 0x100 ,contr 
+7f80 98c0d600 iadd contr ,rege 
+7f81 6fe20a2e fetch 4 ,mem_q + 4 
+7f82 9fe80400 imults pdata ,temp 
+7f83 58010000 setarg 0x10000 
+7f84 98467e00 isub temp ,pdata 
+7f85 20407ecf call sqrt 
+7f86 1a427e00 deposit regb 
+7f87 9d680400 imults rege ,temp 
+7f88 58000000 setarg 0 
+7f89 79207e1c set1 28 ,pdata 
+7f8a 20407ee0 call signed_div 
+7f8b d8401000 arg 0x1000 ,temp 
+7f8c 98467e00 isub temp ,pdata 
+7f8d 1fe67e00 sub pdata ,0 ,pdata 
+7f8e 20600000 rtn 
+
+calc_mk1:
+7f8f 19620c00 copy timeup ,contr 
+7f90 df200008 arg 8 ,loopcnt 
+7f91 20207df4 branch calc_average 
+
+calc_d:
+7f92 98002400 iforce regb 
+7f93 df200008 arg 8 ,loopcnt 
+7f94 20207df4 branch calc_average 
+
+calc_c:
+7f95 9a40a600 iadd regb ,regc 
+7f96 684889f9 fetcht 1 ,mem_vok + 1 
+7f97 984f8400 imul32 temp ,temp 
+7f98 6fe089f8 fetch 1 ,mem_vok 
+7f99 9a4ffe00 imul32 regb ,pdata 
+7f9a 9840fe00 iadd temp ,pdata 
+7f9b 1ff1fe00 rshift4 pdata ,pdata 
+7f9c 1fe92200 rshift3 pdata ,rega 
+7f9d 20600000 rtn 
+
+calc_est1:
+7f9e 6fe109fe fetch 2 ,mem_omega + 2 
+7f9f 9a6f8400 imul32 regc ,temp 
+7fa0 6fe109fc fetch 2 ,mem_omega 
+7fa1 9a2ffe00 imul32 rega ,pdata 
+7fa2 98462400 isub temp ,regb 
+7fa3 20600000 rtn 
+
+calc_est2:
+7fa4 6fe109fe fetch 2 ,mem_omega + 2 
+7fa5 9a2f8400 imul32 rega ,temp 
+7fa6 efe10006 ifetch 2 ,contr 
+7fa7 9a6ffe00 imul32 regc ,pdata 
+7fa8 98462200 isub temp ,rega 
+7fa9 20600000 rtn 
+
+calc_u1:
+7faa 6fe089f8 fetch 1 ,mem_vok 
+7fab 20407fd1 call mults_rshift7 
+7fac 9a20ee00 iadd rega ,regf 
+7fad 19622600 copy timeup ,regc 
+7fae d8a00a0a arg mem_u1 ,contw 
+7faf 20207fd4 branch theta_mul 
+
+calc_u2:
+7fb0 6fe089f9 fetch 1 ,mem_vok + 1 
+7fb1 20407fd1 call mults_rshift7 
+7fb2 9a20ee00 iadd rega ,regf 
+7fb3 1960a610 add timeup ,16 ,regc 
+7fb4 d8a00a1a arg mem_u2 ,contw 
+7fb5 20207fd4 branch theta_mul 
+
+calc_qest:
+7fb6 52406e00 aligned regb ,regf 
+7fb7 6a410a02 fetchr regb ,2 ,mem_b1 
+7fb8 6a610a06 fetchr regc ,2 ,mem_b2 
+7fb9 da200a0a arg mem_u1 ,rega 
+7fba ddc00a1a arg mem_u2 ,nap 
+7fbb d8a00a2a arg mem_q ,contw 
+7fbc 20407fc2 call calc_q 
+7fbd 20407fc2 call calc_q 
+7fbe 6a410a04 fetchr regb ,2 ,mem_b1 + 2 
+7fbf 6a610a08 fetchr regc ,2 ,mem_b2 + 2 
+7fc0 20407fc2 call calc_q 
+7fc1 20207fc2 branch calc_q 
+
+calc_q:
+7fc2 efe20011 ifetch 4 ,rega 
+7fc3 18c22200 copy contr ,rega 
+7fc4 9a485600 imults regb ,rege 
+7fc5 efe2002e ifetch 4 ,nap 
+7fc6 18c25c00 copy contr ,nap 
+7fc7 9a687e00 imults regc ,pdata 
+7fc8 9d60fe00 iadd rege ,pdata 
+7fc9 1fed7e00 lshift8 pdata ,pdata 
+7fca 1ee20400 copy regf ,temp 
+7fcb 20407ee0 call signed_div 
+7fcc ed620005 ifetchr rege ,4 ,contw 
+7fcd 9d667e00 isub rege ,pdata 
+7fce 1fe63000 sub pdata ,0 ,regd 
+7fcf e3020005 istorer regd ,4 ,contw 
+7fd0 20600000 rtn 
+
+mults_rshift7:
+7fd1 9a480400 imults regb ,temp 
+7fd2 50407e00 preload temp 
+7fd3 20207ec2 branch rshift7 
+
+theta_mul:
+7fd4 d9000004 arg 4 ,debug 
+7fd5 ddc09400 arg mem_theta ,nap 
+
+theta_mul_loop0:
+7fd6 dd600000 arg 0 ,rege 
+7fd7 df200008 arg 8 ,loopcnt 
+
+theta_mul_loop1:
+7fd8 efe10013 ifetch 2 ,regc 
+7fd9 18c22600 copy contr ,regc 
+7fda 9ee67e00 isub regf ,pdata 
+7fdb eb80802e ifetchr fhs_misc ,1 ,nap 
+7fdc 18c25c00 copy contr ,nap 
+7fdd 53800400 aligned fhs_misc ,temp 
+7fde 98487e00 imults temp ,pdata 
+7fdf 9d60d600 iadd rege ,rege 
+7fe0 c2007fd8 loop theta_mul_loop1 
+7fe1 1d6cfe00 rshift8 rege ,pdata 
+7fe2 1fe37e00 rshift pdata ,pdata 
+7fe3 e7e20005 istore 4 ,contw 
+7fe4 1a60a7f0 increase -16 ,regc 
+7fe5 190091ff increase -1 ,debug 
+7fe6 2422ffd6 nbranch theta_mul_loop0 ,zero 
+7fe7 20600000 rtn 
+
+savelist:
+7fe8 67e4095c store 8 ,mem_pdatatemp 
+
+savelist_1:
+7fe9 6fe0c4ce fetch 1 ,mem_seqi 
+7fea c13f8000 rtneq 0x7f 
+7feb 1fe9fe00 lshift3 pdata ,pdata 
+7fec d8a04c00 arg mem_savelist ,contw 
+7fed 98a08a00 iadd contw ,contw 
+7fee 6fe4095c fetch 8 ,mem_pdatatemp 
+7fef e7e40005 istore 8 ,contw 
+7ff0 6fe0c4ce fetch 1 ,mem_seqi 
+7ff1 1fe0fe01 increase 1 ,pdata 
+7ff2 1fe17e7f and_into 0x7f ,pdata 
+7ff3 67e0c4ce store 1 ,mem_seqi 
+7ff4 6fe4095c fetch 8 ,mem_pdatatemp 
+7ff5 20600000 rtn 
+
+clear_wake:
+7ff6 58000000 setarg 0 
+7ff7 67e4009f store 8 ,mem_gpio_wakeup_low 
+7ff8 20600000 rtn 
+
Index: output/romcode.rom
===================================================================
--- /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/output/romcode.rom	(nonexistent)
+++ /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/output/romcode.rom	(working copy)
@@ -0,0 +1,30720 @@
+20401395
+44804000
+20800000
+20405aed
+2040121e
+20405de3
+20401329
+20404da6
+4480c000
+204062e6
+2040535c
+204077e1
+20402fab
+44814000
+2055afb9
+20406ed1
+20406ef3
+20559420
+4481c000
+20407099
+204075c4
+20406ed4
+2040239d
+44824000
+20400838
+20402fc2
+2040088f
+20400b05
+20400b77
+20400821
+20402aa1
+20401448
+20200812
+20400826
+c6848000
+793f8009
+20400a30
+20201ec2
+4482c000
+20400a6b
+2422882f
+20400a17
+1a208c01
+efe08006
+c2801e2f
+c2808968
+20200bdc
+20400a38
+1f227c00
+20628000
+20400a17
+6fe08031
+c28188d2
+6fe08032
+c2808968
+20200bdc
+6fe0c1de
+207a0000
+c0008848
+c001084d
+c0018850
+c0028855
+c00d8845
+20400a64
+20628000
+20400a67
+20628000
+7041de00
+20600000
+7002e01b
+7041de00
+20600000
+7920001c
+793f801e
+70008dff
+70008b1f
+20200843
+793f801c
+18003600
+20200843
+20400a67
+20628000
+18000401
+7000be05
+2020085c
+44834000
+6fe341e0
+20000001
+70478a01
+70005603
+2020085b
+18000425
+4483c000
+6fe080a8
+203a0862
+1fe9fe00
+1ff27e00
+1fe0ffff
+67e0c0ae
+67e080a7
+70008c1f
+793f800c
+20400a48
+24228883
+20401302
+67e08078
+6048807d
+6fe341e0
+67e30041
+44844001
+20407d81
+18007e00
+2841fe01
+7d20fe05
+79207e03
+67e08031
+70095b03
+2040789f
+18007e00
+7920fe04
+67e0804d
+58000000
+79207e01
+67e08032
+7834fc00
+20400a30
+7854fc00
+18000e03
+6fe140c1
+20407d74
+20200843
+4484c001
+6fe341e0
+67e30041
+2841fe01
+20208889
+20200843
+d8a00a01
+df200008
+20407d25
+70095b04
+2040789f
+20200843
+c68e0000
+18000e01
+20407d82
+7d3a001c
+243a0895
+20600000
+44854001
+684940c3
+18000e04
+20400f3f
+20740000
+204010f5
+18004800
+20618000
+793f800b
+793f8000
+1c40c201
+280ffe1e
+7920c802
+2c200400
+242088be
+4485c001
+6fe08012
+1fe0fe01
+67e08012
+20401129
+20401123
+20401143
+204012e3
+204012e8
+204012f6
+20400e79
+204008b1
+2020089c
+44864001
+6fe0808b
+1fe0ffff
+67e0808b
+20610000
+70008b1f
+6fe0808d
+1fe0ffff
+67e0808d
+20610000
+7940001e
+70008dff
+20600000
+4486c001
+20401129
+2040111d
+20401143
+204012ed
+20401278
+2040129e
+202c08c8
+204008b1
+2020089f
+44874001
+20401238
+204012fe
+20400d44
+793f8001
+c6858000
+6fe08013
+1fe0fe01
+67e08013
+20600000
+4487c001
+7834fc00
+78387c00
+6fe140bd
+203a08da
+18000e08
+20407d82
+247a0000
+44884002
+684940bf
+18000e28
+20400f3f
+20340913
+18000e03
+20407d82
+243a08ef
+6fe0804d
+c28208e5
+202008e8
+d8a00a01
+df200008
+20407d25
+4488c002
+70003100
+2040535d
+70478a00
+70095b13
+2040789f
+20200913
+44894002
+18001600
+34730200
+6fe080a9
+1fe0ffff
+9c42fe00
+2fe00600
+242088ef
+18827e00
+67e080e6
+18004c00
+18004800
+4489c002
+20218913
+2040112d
+69610157
+34730200
+448a4002
+6fe200a9
+98004200
+1fe0fe01
+67e200a9
+280ffe0c
+7920c802
+2c200400
+24208927
+6fe0800c
+1fe0fe01
+67e0800c
+20401123
+204012e3
+204012e8
+204012f6
+20400e79
+20400919
+202008fb
+448ac002
+7854fc00
+6fe140bd
+207a0000
+18000e08
+20207d74
+448b4002
+6fe0808c
+1fe0ffff
+67e0808c
+20610000
+70008c1f
+6fe080a7
+1fe0ffff
+67e080a7
+20610000
+7940000c
+6fe0c0ae
+67e080a7
+20600000
+448bc002
+2040111d
+204012ed
+20401278
+2040129e
+202c092f
+20400919
+20200900
+20400e79
+6fe0800d
+1fe0fe01
+67e0800d
+18003600
+6fe200a9
+448c4003
+204012e1
+2040112d
+1cc0cc01
+1c2143fd
+1c8149fc
+20401123
+204012e3
+204012e8
+204012f6
+1c427e00
+67e200b1
+18000800
+18000202
+204012fe
+20400f89
+448cc003
+204012df
+1c21c202
+1c8149fc
+2040111d
+204012ed
+20401278
+2040129e
+204c0e79
+202c0954
+6fe08010
+203a08fb
+1fe0ffff
+67e08010
+20200935
+448d4003
+6fe0800e
+1fe0fe01
+67e0800e
+20400c43
+79200032
+20400aff
+202c0960
+793f8032
+20400c63
+243a0959
+202008fb
+448dc003
+793f8032
+6fe08031
+793ffe03
+67e08031
+20400c4e
+7854fc00
+20600000
+448e4003
+7834fc00
+78387c00
+204009e3
+20740000
+2040154b
+204012e1
+1c40c201
+20401133
+18004803
+204065a4
+20400c97
+20401123
+204012e3
+204012e8
+204012f6
+20400f85
+448ec003
+2040536d
+20400af1
+24368982
+2040131b
+20400f4b
+6fe0800f
+1fe0fe01
+67e0800f
+448f4003
+2040658c
+2040098d
+24748000
+20400f1b
+243a098a
+7854fc00
+20600000
+20400c97
+20400ae7
+20200979
+20368990
+20401312
+2021099e
+204009a9
+2434099e
+6fe0804d
+c4020000
+c3818000
+6fe0804c
+c3818000
+204009b0
+247a0000
+6fe080be
+1fe0ffff
+67e080be
+247a0000
+202056b2
+448fc003
+20400c6b
+7854fc00
+6fe0804d
+c28209a4
+20600000
+6fe0804d
+c3818000
+d8a00a01
+df200008
+20207d25
+44904004
+78347c00
+6fe0804c
+c4018000
+204009b0
+247a0000
+20207e64
+6fe08073
+1fe0ffff
+67e08073
+20600000
+4490c004
+6fe08031
+c28389bd
+6fe08877
+203a09bd
+70087700
+70095b18
+2040789f
+202009bd
+44914004
+20400a61
+6fe08031
+79207e07
+67e08031
+7041cd01
+6fe08056
+c08b09c5
+20600000
+70087701
+6fe08031
+793ffe07
+67e08031
+20600000
+4491c004
+78547c00
+6fe10033
+d840ffff
+98467c00
+24628000
+6fe20035
+203809d5
+9d067e00
+202009d6
+9c467e00
+1fe67c04
+24610000
+18007e00
+67e10033
+20207e62
+1fe20400
+44924004
+604a0035
+70464201
+5800ffff
+67e10033
+70007401
+20600000
+4492c004
+204009cb
+24740000
+78547c00
+70001120
+793f800b
+793f8030
+204012e1
+20400af3
+c50589f8
+20400c63
+243a09ea
+c5180a02
+44934004
+78547c00
+1c427e00
+67e240d2
+78387c00
+7834fc00
+70095b2a
+2020789f
+4493c004
+204012df
+d8200010
+20400ae9
+79200030
+793f800b
+6fe08078
+98000800
+70001102
+202009ea
+6fe200b5
+1fe0fe08
+67e200b5
+78587c00
+7854fc00
+20401034
+20400c43
+44944005
+20400c8a
+20368a0f
+20400c63
+243a0a09
+202009f0
+6fe08032
+793ffe01
+67e08032
+2040131b
+2040105c
+78347c00
+70095b2b
+2020789f
+4494c005
+79200009
+1a227e00
+67e1001f
+18007258
+d8a00287
+1a208c01
+efe08006
+1a220c00
+c2807d6d
+d8a00031
+20407d6d
+78577c00
+6fe08078
+98000800
+70008901
+20348a29
+70008901
+6fe08031
+c4008000
+6fe08074
+67e08089
+6fe08075
+67e0808a
+20600000
+44954005
+6fe1001f
+98000a00
+18007258
+d8c00287
+203b7d6d
+d8c00031
+20207d6d
+df200001
+68488015
+18408401
+2841fe01
+24208a3e
+d8400000
+60488015
+184ffe58
+da204040
+9a20a200
+efe08011
+c2808a46
+c3800000
+c3818000
+c2000a3a
+20600000
+4495c005
+da600a77
+20400a6e
+24628000
+1a227e00
+67e1001f
+18007c00
+20600000
+20400f48
+20208a58
+6fe1001f
+1fe08a17
+6fe08048
+e7e08005
+da600ab7
+20200a6e
+6fe08048
+2feffe03
+20208a5d
+18007c01
+20600000
+18007c00
+20600000
+da600ab4
+20200a6e
+6849001f
+da600adc
+20200a6e
+6848c1df
+da600a82
+20200a6e
+44964005
+684b41e0
+da600a7b
+20200a6e
+da600a88
+20200a6e
+da600ad3
+4496c005
+da204040
+df200001
+efe08011
+1a627a00
+1a20a258
+c2000a71
+18007c01
+20600000
+c2800a73
+c2818a73
+18007c00
+20600000
+c2818a7d
+c3000a73
+1a208c10
+efe30006
+98467c00
+20628000
+20200a73
+c3000a73
+1a208c16
+efe08006
+98467c00
+20628000
+20200a73
+c3008a73
+20400ac0
+20400aa4
+98467e00
+1fe0fe01
+20210a9e
+18c22400
+67e48964
+6fe0c6b9
+243a0a96
+6fe48964
+1a420c00
+1fe0fe05
+20200a99
+6fe48964
+1a420c00
+1fe0fe14
+24210a73
+18424200
+20400acc
+18007c00
+20600000
+98002400
+1a208c02
+efe10006
+203a0a9a
+20400acc
+20200a89
+1ff11600
+196c9600
+20228aae
+29601e0f
+24608000
+18511600
+196c9600
+24628000
+7920041c
+20600000
+18511600
+196c9600
+29601e0f
+24608000
+79207e1c
+20600000
+c3000a73
+18007c00
+20600000
+c3000a73
+1a208c01
+efe08006
+c2800a73
+1a208c17
+efe08006
+c3018a73
+18007c00
+20600000
+1a208c01
+e8408006
+1c427e00
+284ffe01
+1a208c04
+e8420006
+20608000
+1a208c08
+efe30006
+20401072
+1d027e00
+20600000
+1a208c02
+1a208a04
+efe10006
+98409600
+19627e00
+e7e20005
+20201f13
+c3008a73
+20400ac0
+9b60fe00
+9b60fe00
+98e0fe00
+98467c00
+24210a73
+18007c00
+20600000
+c3000a73
+18427e00
+9a267c00
+203f0a73
+1a208c01
+efe08006
+c2800a73
+efe08011
+793ffe07
+e7e08011
+20200a73
+44974005
+204012e1
+1c40c201
+20401133
+18004803
+20401123
+204012e3
+204012e8
+204012f6
+20200f85
+4497c005
+204012df
+1c40c201
+20401133
+18004803
+2040111d
+20400c38
+2040127d
+204012ed
+20401278
+2040129e
+246c0000
+20401238
+20200d41
+44984006
+6fe080e6
+98000800
+18000201
+20400ae7
+20200af1
+6fe0c09b
+c4000000
+18000e04
+20407d82
+247a0000
+684940b5
+18000e04
+20400f3f
+20740000
+20400b15
+18000e04
+6fe140b7
+242c7d74
+180a7e00
+9ea17e00
+20207d74
+4498c006
+7000e600
+78587c00
+78577c00
+204010f5
+1c4143fc
+18004801
+20401129
+2040111d
+7940001d
+6fe08006
+1fe0fe01
+67e08006
+20401143
+20401278
+204012a5
+246c0000
+44994006
+18003600
+2040114a
+6fe08007
+1fe0fe01
+67e08007
+20401129
+204012df
+1c21c202
+18004801
+20401123
+20401143
+204012e3
+204012f1
+1c427e00
+67e200b1
+204012f6
+18000202
+18000800
+204012fe
+20400f89
+20400b3f
+1c2143fd
+1cc0cc01
+20600000
+4499c006
+6fe0c0d9
+207a0000
+d8a000f1
+6fe0c5fc
+1fe27200
+1fe0fe01
+e7e08005
+18a20400
+1fe0fe01
+67e141e9
+18420a00
+58000009
+e7e08005
+d8c045fd
+20407d6d
+da604677
+df200004
+20400b61
+da604661
+df200001
+20400b61
+1800020a
+7041e802
+580000f1
+67e100bf
+204012df
+20401123
+204012e3
+204012f1
+204012f6
+204012fe
+20400f89
+20600000
+18a20400
+1a620c00
+efe08006
+207a0000
+1fe3fe00
+c2000b65
+1fe22200
+1fe0fe02
+1fe20e00
+6fe141e9
+98e0fe00
+67e141e9
+18420a00
+1a227e00
+1fe0fe01
+e7e08005
+1a620c00
+efe08006
+efe08006
+e7e08005
+1a227200
+20207d6d
+6fe0c09b
+c4008000
+18000e05
+20407d82
+247a0000
+684940b9
+18000e28
+20400f3f
+20740000
+18000800
+70001008
+793f800b
+20400b87
+18000e05
+6fe140bb
+20207d74
+449a4006
+78587c00
+204010f5
+6fe08008
+1fe0fe01
+67e08008
+18004c00
+20401133
+1c40c201
+18004802
+449ac006
+2040111d
+20401278
+204012a5
+246c0000
+2040114a
+6fe08009
+1fe0fe01
+67e08009
+18003600
+204012df
+1c21c202
+18004801
+20401123
+204012e3
+204012f1
+204012f6
+20400e79
+18000800
+69610157
+35330200
+1d01d003
+1c2143fd
+449b4006
+1cc0cc01
+2040111d
+20401278
+20401298
+242c0bb1
+204012fe
+20400d44
+c5058bb8
+449bc006
+6fe08010
+207a0000
+1fe0ffff
+67e08010
+204012e1
+20200ba8
+449c4007
+793fd001
+79205000
+6fe0800a
+1fe0fe01
+67e0800a
+204012df
+1c21c202
+20401123
+204012e3
+204012f1
+204012f6
+20400e79
+2d000603
+20208bc9
+37cb8200
+20200bc5
+6fe200b5
+1fe1fe03
+1fe25000
+449cc007
+6fe300c8
+67e30041
+20400c43
+20400c8a
+20368bd5
+20400c63
+243a0bd0
+20600000
+449d4007
+20400c4e
+20400a48
+24628000
+70003200
+2040105c
+20200a30
+449dc007
+2040106e
+20400c02
+20740000
+449e4007
+2040154b
+2040658c
+20400d39
+24368bf1
+6fe14477
+20407e13
+2040131b
+204065a4
+20400c97
+20400f7a
+20400f4b
+2040536d
+6fe0800b
+1fe0fe01
+67e0800b
+2040105c
+449ec007
+20401490
+20401312
+20210bfa
+204009a9
+24340bfa
+20400f1b
+243a0be0
+20600000
+449f4007
+700a5100
+7000e400
+20400c6b
+793f8011
+20407e2b
+6fe08031
+20600000
+204009cb
+24740000
+18820400
+20401302
+67e080e6
+18420800
+70001120
+449fc007
+204012e1
+18000202
+20400f72
+1c427e00
+67e200b1
+20400f85
+204012df
+7837fc00
+20400d1a
+202c0c1b
+2040114a
+20400c63
+243a0c09
+c6820000
+70007d34
+79200003
+20600000
+78387c00
+20400c43
+204010f5
+44a04008
+20400aff
+202c0c27
+20400c63
+243a0c1e
+78587c00
+1d027e00
+67e240d2
+20600000
+7834fc00
+c5820c2d
+793f8004
+70007d03
+70007e33
+204059d8
+18827e00
+67e08078
+18007e00
+67e30039
+6fe08032
+79207e01
+67e08032
+2040131b
+7854fc00
+78347c00
+20600000
+44a0c008
+7856fc00
+793f8005
+793f800a
+793f8010
+793f800f
+6fe08048
+793ffe05
+79207e04
+67e08048
+20600000
+44a14008
+70001120
+70004850
+6fe140c7
+67e1003f
+1c427e00
+67e240d2
+20780000
+1d027e00
+67e240d2
+20600000
+44a1c008
+20405369
+20400c67
+67e08047
+58000000
+67e1030e
+58001c80
+67e10052
+6fe08031
+79207e00
+67e08031
+70004c00
+70004d00
+70009e00
+2020131b
+44a24008
+18007e00
+67e441ce
+e7e40005
+204009c7
+20200a61
+6fe08011
+1fe0ffff
+67e08011
+20600000
+6fe0c0d7
+1fe0fe01
+67e0c0d7
+20600000
+44a2c008
+6fe0c1de
+c0018c70
+6fe08049
+c0808c74
+20404d67
+24228c74
+204009a6
+7041de00
+44a34008
+20403086
+20400f11
+70095b02
+2040789f
+2040535d
+20404da7
+20406ef9
+6fe08031
+793ffe00
+67e08031
+70478a00
+6fe0804d
+2fe18000
+20208c84
+793f8001
+6fe08048
+c3018c86
+6fe0804c
+c4030000
+793f8002
+20600000
+44a3c008
+6fe080c4
+207a0000
+1fe20800
+20400d39
+24768000
+18000200
+20400f7a
+18827e00
+67e08078
+18007e00
+67e080c4
+20600000
+44a44009
+6fe08031
+c3010ca4
+18000207
+c5838ca3
+20400f48
+24208ca4
+20370ca4
+20400ce5
+58000002
+67e140d0
+20600000
+24770000
+44a4c009
+20400a50
+24228cb5
+6fe08048
+c3018cbe
+c5028cc2
+6fe080e4
+c2830cc8
+6fe140d0
+1fe0ffff
+67e140d0
+203a0cb3
+6fe0c0cd
+98000200
+20600000
+44a54009
+20400eb4
+20400f48
+20208cbe
+204056b6
+20340ccc
+6fe0804c
+c2830cd8
+c5028cc2
+6fe080e4
+c2830cc8
+18000201
+20748000
+18000200
+20600000
+44a5c009
+6fe0801a
+98000200
+c1808000
+18000200
+20600000
+6fe08a58
+1fe1020f
+79200005
+20600000
+18000213
+20400ce5
+20400dda
+207a0000
+7041e703
+6fe0838a
+1fe17ff8
+1fe97e00
+67e146b1
+1fe22200
+da60038b
+20206cc6
+20400cee
+20400ce5
+20400dda
+207a0000
+6fe0c1e8
+1fe17e03
+67e0c1e7
+6fe141e9
+1fe22200
+67e146b1
+6fe100bf
+1fe22600
+20206cc6
+44a64009
+68488048
+79200403
+60488048
+18227e00
+67e0c0cd
+5800ffff
+67e140d0
+20600000
+44a6c009
+6fe0804d
+2feffe05
+6fe141e9
+20208d04
+18000203
+1fe67c11
+20610000
+18000204
+1fe67c1b
+20610000
+1800020a
+1fe67c79
+20610000
+1800020b
+1fe67cb7
+20610000
+1800020e
+1fe67ce0
+20610000
+1800020f
+20600000
+18000203
+1fe67c11
+20610000
+18000204
+1fe67c36
+20610000
+1800020a
+d840016f
+98467c00
+24610000
+1800020e
+d84002a7
+98467c00
+24610000
+1800020f
+20600000
+6fe08031
+c3008d19
+6fe10033
+203a0d19
+24370d1b
+204012e1
+1d00c201
+78287c00
+6fe1003f
+1fe37e00
+6849015d
+9840fe00
+204012b6
+2040113b
+18004803
+2040111d
+20400c38
+2040127d
+44a74009
+6fe1003f
+1fe37e00
+204012b6
+20401278
+7826fc00
+6fe1003f
+6849015b
+9840b600
+37c18400
+1b420400
+604b0098
+7846fc00
+246c0000
+6fe1015b
+1fe25200
+1c225000
+203593df
+20600000
+44a7c009
+20400d14
+242c114a
+20401238
+c5888d41
+6fe109f6
+1fe0fe01
+67e109f6
+20404c9c
+1c230400
+18419c40
+44a8400a
+7823fc00
+78257c00
+7825fc00
+09800003
+198cfe00
+67e080ad
+09800004
+08008007
+19827e00
+67e0801a
+09800003
+198cfe00
+67e080ae
+6fe0801a
+1fe67c03
+20210d59
+c0038d59
+6fe0804d
+2feffe05
+7920aa01
+44a8c00a
+09800008
+7845fc00
+78457c00
+20230e5c
+c5888d62
+6fe109f8
+1fe0fe01
+67e109f8
+44a9400a
+6fe080ad
+2fe00e00
+7920800a
+20208d70
+a8800e00
+20208d6e
+c5838e79
+6fe08048
+793ffe05
+79207e04
+67e08048
+20404c9f
+7836fc00
+44a9c00a
+6fe0801a
+1fe20200
+c5050d7f
+684880ae
+6fe08048
+793ffe00
+284ffe00
+7920fe00
+284ffe01
+7920fe01
+67e08048
+284c0001
+20208d7f
+20400eb4
+44aa400a
+d8400000
+204012ae
+18217e0f
+c0008d9b
+c0000e79
+c0010e85
+684880ae
+6fe08048
+a8400800
+24208d8d
+c5850d8c
+c3038d8d
+7920000f
+44aac00a
+18227e00
+c0018d9d
+c0020da1
+c0040da0
+d8400004
+204012ae
+c0050d9c
+c0058d9f
+d8400008
+204012ae
+c0070d9c
+c0078d9f
+20600000
+20200e79
+79200010
+78267c00
+20200da2
+79200010
+79202a02
+7826fc00
+44ab400a
+c5190e79
+c5008e79
+2aac0001
+20208daf
+7843fc00
+7826fc00
+78467c00
+1c409602
+34530400
+242c0e68
+79200010
+7823fc00
+44abc00a
+78277c00
+7824fc00
+09800003
+198cfe00
+67e080e5
+09800005
+c5080dba
+19897200
+1f297200
+20200dbd
+09800005
+19837200
+09800003
+44ac400b
+1f227e00
+67e100af
+203a0dd3
+20400dda
+203a0dc5
+1f20f204
+1f227e00
+9ea67c00
+20210e68
+44acc00b
+793f8000
+6fe080e5
+1fe17e03
+d8a000cf
+c0018ddf
+c5088e09
+6fe080e5
+1fe17e03
+c0010de4
+c0008df8
+20200e68
+20400dda
+203a0e0d
+09800020
+1fef7e00
+1fecfe00
+67e20273
+20200e0d
+6fe0804d
+c3017e6c
+6fe0c645
+c0817e6c
+20207e6a
+6fe100af
+1fe67c11
+24210e68
+c5078e49
+20200e09
+44ad400b
+c5078e49
+6fe100af
+d84002e0
+98467c00
+20210e68
+6fe08314
+c3000dee
+c3008df3
+20200e79
+70031201
+6fe1030e
+c0800e79
+d8a01000
+20200e09
+70031202
+6fe10310
+c0800e79
+d8a01400
+20200e09
+44adc00b
+c5078e49
+6fe100af
+d84002e0
+98467c00
+20210e68
+6fe08312
+c0008e02
+c0010e06
+20200e79
+d8a01000
+6fe1030e
+98a08a00
+20200e09
+d8a01400
+6fe10310
+98a08a00
+09800008
+19897e00
+e7e08005
+c2000e09
+44ae400b
+09800010
+20230e62
+20400dda
+20407e66
+245a6cf7
+24360e69
+20404c9b
+6fe0c5f3
+c0008e69
+c5088e36
+c5078e76
+6fe080e5
+2fe00603
+20208e36
+6fe100af
+203a0e36
+44aec00b
+6fe08312
+c0008e23
+c0010e2d
+2020131f
+6fe1030e
+684900af
+9840fe00
+67e1030e
+207a0000
+68491000
+18408404
+98467c00
+20428f6a
+20200e36
+6fe10310
+684900af
+9840fe00
+67e10310
+207a0000
+68491400
+18408404
+98467c00
+20428f6e
+44af400b
+6848804d
+6fe080e5
+2fe00603
+79208406
+7d208407
+6048804d
+24208e3f
+79200001
+c5888e49
+284ffe06
+20208e49
+6fe109fa
+1fe0fe01
+67e109fa
+79200005
+793f8407
+793f8001
+6048804d
+44afc00b
+20400dda
+245a6d1e
+684880ae
+6fe08048
+79207e05
+284ffe02
+7920fe02
+280ffe0a
+7920fe07
+67e08048
+6fe100af
+243a0e79
+6fe0804d
+793ffe07
+67e0804d
+6fe080e5
+2fe00e01
+20200e79
+44b0400c
+7856fc00
+6fe1001b
+1fe0fe01
+67e1001b
+20200e79
+6fe1001d
+1fe0fe01
+67e1001d
+20400e6a
+c5888e68
+79200005
+20200e79
+20200e62
+44b0c00c
+6fe080e5
+2fe00603
+24208e72
+6848804d
+793f8406
+6048804d
+20600000
+6848804d
+793f8407
+6048804d
+20600000
+6fe08048
+79207e05
+67e08048
+44b1400c
+784efc00
+784e7c00
+7846fc00
+78467c00
+7844fc00
+78477c00
+7843fc00
+2030914a
+37d38200
+20000064
+2020114a
+44b1c00c
+7824fc00
+78267c00
+09800048
+2feffe3a
+79208000
+1c020400
+57e04000
+57e03c00
+782afc00
+380bffff
+380cffff
+20000020
+29a80000
+1d827e00
+67e180c8
+1da27e00
+67e080cb
+18424000
+20208e9a
+20200e68
+44b2400c
+09800048
+57e03e00
+57e00800
+57e05c00
+57e02400
+18007e00
+09800010
+20230e68
+20404c9b
+5ffffffc
+9a417e00
+67e200b5
+1ba27e00
+67e180c5
+1b827e00
+67e080c3
+18827e00
+67e080c4
+1dc27e00
+67e100cc
+1c227e00
+08008220
+28201e02
+7920800b
+20200e79
+44b2c00c
+6fe08048
+c4018000
+793ffe03
+79407e06
+67e08048
+20400dda
+245a6ce4
+6fe0c0cd
+c0098ecb
+c1038000
+6fe0804c
+c4030000
+793ffe06
+79207e07
+67e0804c
+793f8002
+6fe144d6
+247a0000
+6fe0804c
+793ffe07
+67e0804c
+202052bb
+44b3400c
+6fe0c5f6
+1fe37e00
+c0088ede
+c0090ee8
+c00c0f11
+c03f8ed6
+c1818000
+6fe0838c
+c0088ed9
+20600000
+6fe0838c
+79207e07
+20600000
+20748000
+6fe08031
+c3820000
+70007d31
+20600000
+44b3c00c
+6fe0804d
+79207e02
+67e0804d
+70801101
+18007e00
+67e2c6a0
+79207e25
+67e2c69b
+20600000
+44b4400d
+6fe0804d
+793ffe02
+67e0804d
+70801100
+20600000
+44b4c00d
+1c427e00
+67e24482
+1c40a203
+20348ef4
+1d00a203
+68490033
+1a227e00
+793ffe1b
+9846fc00
+6fe10076
+20407dfd
+18072600
+9a667e00
+20210efe
+9840fe00
+9a20fe00
+67e20035
+70464200
+6fe08031
+79207e01
+67e08031
+6fe08074
+67e08089
+58000000
+67e1c171
+67e1c174
+67e0c161
+70095b0b
+2040789f
+6fe140c9
+67e1003f
+24748000
+18808fff
+20600000
+44b5400d
+6fe08031
+c4008000
+793ffe01
+67e08031
+6fe140c7
+67e1003f
+7855fc00
+70095b0c
+2020789f
+44b5c00d
+78377c00
+6fe08031
+c2808f28
+c6088000
+6fe08048
+c3818000
+6fe08049
+247a0000
+6fe0804c
+c3830000
+18007e00
+20600000
+c3010f32
+6fe08089
+c0010f2e
+6fe08048
+c2818f3b
+c5840f3b
+24348f3b
+6fe08049
+243a0f3b
+20200f26
+6fe08089
+c0808f3b
+6fe0808a
+203a0f3b
+1fe0ffff
+67e0808a
+6fe08048
+c3818000
+24768000
+6fe08089
+1fe0ffff
+67e08089
+20600000
+44b6400d
+78487c00
+18423600
+20400a6d
+78547c00
+24628000
+18003600
+78347c00
+20600000
+6fe0c160
+a881fe00
+20600000
+44b6c00d
+793f8001
+70031b00
+6fe08314
+207a0000
+2feffe00
+d8c01000
+2040cdb5
+44b7400d
+6fe0831b
+c0008f5e
+70031b00
+6fe08314
+c4008000
+d8c01400
+20404db5
+6fe0831b
+c0008f64
+20600000
+6fe08314
+793ffe00
+67e08314
+58000000
+67e1030e
+20600000
+6fe08314
+793ffe01
+67e08314
+58000000
+67e10310
+20600000
+6fe08314
+79207e00
+67e08314
+20600000
+6fe08314
+79207e01
+67e08314
+20600000
+44b7c00d
+1d00c201
+2040113b
+18004803
+20401123
+204012e3
+204012f1
+202012f6
+44b8400e
+204012df
+1d027e00
+684a40d2
+98467e00
+c1808000
+28203e00
+24208f84
+6fe0801a
+207a0000
+20400f72
+28203e10
+20208e79
+1c230400
+18419c40
+44b8c00e
+7823fc00
+78257c00
+782dfc00
+793f8010
+18827e00
+08008603
+18227e00
+08008604
+6fe08048
+08008004
+08008603
+78247c00
+08008608
+784dfc00
+78447c00
+78457c00
+793faa02
+d8400000
+204012ae
+44b9400e
+18217e1f
+c0098fcd
+c0000e79
+c0008e79
+c0010fae
+c0018fdc
+c0020fe2
+c0040fe1
+d8400004
+204012ae
+c0050fde
+c0058fe4
+d8400008
+204012ae
+c0078fe4
+20200fde
+44b9c00e
+6fe080e6
+1fe20800
+6fe0808e
+1fe23800
+6fe1c0b2
+1fe23a00
+6fe140ac
+1fe25c00
+7824fc00
+782e7c00
+1c022200
+20401133
+782afc00
+20000020
+1c221600
+6fe200b1
+1fe24200
+53c07e00
+79207e3a
+08008648
+53e07e00
+08008648
+19624200
+1a224000
+78247c00
+08008610
+78447c00
+20200e79
+78477c00
+20200fd1
+44ba400e
+20400dda
+243a0fcb
+78277c00
+7824fc00
+782e7c00
+6fe0838a
+1fe105f8
+d8c0038a
+18408408
+18497200
+efe08006
+08008608
+c2000fd8
+2020100e
+782e7c00
+20200fe7
+782e7c00
+79200010
+20200fe7
+79202a02
+782efc00
+20200fe7
+79202a02
+782efc00
+79200010
+44bac00e
+6fe0804d
+c3028ffc
+18267c03
+20210ffc
+78477c00
+784e7c00
+782efc00
+7843fc00
+79202a01
+2aaffe02
+20208ff6
+580abeee
+08008614
+20200ffa
+585faeba
+08008618
+58000012
+08008606
+7823fc00
+79200010
+78277c00
+7824fc00
+c502901c
+6fe0c1e8
+08008603
+6fe141e9
+98007200
+c5081006
+08008605
+20201007
+0800860d
+1f227e00
+203a100e
+6fe100bf
+98000c00
+efe08006
+08008608
+c200100b
+44bb400e
+20400dda
+203a1013
+6fe2026f
+08008620
+78247c00
+08008610
+78447c00
+20400ce5
+6fe0804d
+c3028e79
+18007e00
+08008606
+20200e79
+44bbc00e
+c5081024
+6fe080e5
+08008603
+6fe080af
+98002600
+08008605
+20201029
+6fe080e5
+08008603
+6fe100af
+98002600
+0800860d
+d8c000cf
+1a627c00
+20229030
+efe08006
+08008608
+1a60a7ff
+2020102a
+6fe109fc
+1fe0fe01
+67e109fc
+2020100e
+6fe200b5
+1fe0a207
+6fe100c1
+243a103a
+1a20a3fd
+20201042
+1feffe0c
+68590040
+18408401
+98467e00
+24211041
+1a20a3ff
+2020103d
+1fe67e00
+37d18200
+2c400600
+24209042
+98005200
+1a225000
+98005200
+20600000
+44bc400f
+37d10200
+1b427e00
+98000c00
+1ff17e00
+9c467200
+1f217203
+24229053
+18007e00
+20201057
+68490163
+18007e00
+9840fe00
+c2001055
+98c0fe00
+1fe6fc0c
+20407dfa
+67e100c1
+20600000
+44bcc00f
+1b427e00
+1b220400
+98467c00
+7d217e2c
+98460400
+6fe10163
+284c000f
+2020906a
+18426000
+d8410000
+6fe10163
+98467e00
+9e008400
+604b028f
+207b0000
+604b0039
+20600000
+78587c00
+6fe3028f
+203b1072
+6fe30039
+9b20e000
+1e00e00a
+6fe10163
+9e067e00
+2fec000f
+2020907e
+58010000
+6b010163
+9b067e00
+9e00e000
+1e023400
+20600000
+18007c00
+2020107c
+203b10a8
+58402c17
+67e189ee
+19317e00
+1fe90400
+df200030
+58000000
+67e189f1
+18437e00
+9842fe00
+1fe17e03
+c300908d
+1fe0ffff
+d8a009f1
+98a08a00
+efe08005
+1fe0fe01
+e7e08005
+18430400
+c2001088
+da2009f3
+da4009ee
+da600000
+df200003
+efe08011
+e8408012
+984ffe00
+9a60a600
+1a20a3ff
+1a40a401
+c2001098
+6fe089ef
+1fed7e00
+1ff27e00
+9a66fc00
+20407dfd
+1807fe00
+67f10938
+67e109f4
+20600000
+6fe109f4
+67f10938
+20600000
+58402d19
+67e189ee
+192f7e00
+1fe90400
+df200020
+20201086
+44bd400f
+20401165
+1c227e00
+1fe17f80
+2c800e03
+242090ba
+1fe97e00
+9ae0fe00
+202010bb
+1ae27e00
+1fe6fc4f
+782afc00
+20407dfd
+18072200
+1a2085d8
+202110c3
+1a238400
+202010c5
+18438400
+18408401
+44bdc00f
+6fe08032
+c30190d6
+6fe240da
+9c267c00
+202110d6
+204010f5
+6fe0c0e1
+207a0000
+6fe08032
+79207e02
+67e08032
+6fe2c0ef
+67e2c0e2
+efe28006
+67e2c0e7
+204010fa
+6fe08032
+c4010000
+2c2ffe01
+202090f2
+18492200
+18410e07
+580040e2
+9a20a200
+efe08011
+afec0000
+202090e3
+18427e00
+202010ef
+6fe0c0ec
+98002400
+1c227e00
+1fe17f80
+1fe97e00
+9ae0fe00
+9a46fc00
+580040fa
+20407dfd
+18072200
+9a208c00
+efe08006
+67e0c0ed
+98000400
+20600000
+6fe0c0ed
+98000400
+20600000
+6fe08032
+793ffe02
+793ffe03
+67e08032
+20600000
+44be400f
+d8a040fa
+1800720a
+20407d25
+d8a040fa
+18002600
+18000e02
+6fe2c0e2
+98000400
+28e1fe02
+20209106
+18430400
+284c0000
+2020910a
+1a627e00
+e7e08005
+184b0400
+1a60a602
+2a61fc28
+24209113
+6fe2c0e7
+98000400
+28e1fe02
+20209113
+18430400
+1a667c4e
+20211106
+18002601
+18e08fff
+24229101
+da2040fa
+18a27e00
+9a267e00
+67e0c0ec
+20600000
+44bec00f
+204010b1
+6fe080e4
+c3029122
+684883a0
+2020117e
+44bf400f
+204010b1
+6fe080e4
+c3021128
+6848839f
+202011d2
+18005a00
+6fe1c0af
+98005800
+20600000
+44bfc00f
+6fe0c1e3
+1fe25a00
+6fe1c1e0
+1fe25800
+20600000
+44c04010
+6fe140ac
+1fe25c00
+6fe0c0ab
+1fe25a00
+6fe1c0a8
+1fe25800
+20600000
+44c0c010
+6fe10045
+1fe25c00
+6fe08044
+1fe25a00
+6fe18041
+1fe25800
+20600000
+c5101146
+c68e8000
+c68f8000
+1d815900
+782afc00
+20000020
+20600000
+44c14010
+20404c9a
+2030914e
+20401158
+18002a08
+18002a00
+7850fc00
+78507c00
+782f7c00
+70890005
+20000002
+70890000
+44c1c010
+20600000
+44c24010
+20600000
+44c2c010
+6fe0c4d0
+67f08a43
+6ff08a0a
+79207e06
+67f08a0a
+6ff08a16
+79207e06
+67f08a16
+20000078
+20600000
+44c34010
+70890005
+20000002
+70890000
+6fe0c4cf
+245a115a
+6ff08a16
+79207e06
+67f08a16
+6ff08a0a
+1fe1fe30
+67f08a0a
+20000078
+6ff08a16
+1fe1fe3f
+1fe17efe
+67f08a16
+20000078
+6ff08a11
+1fe17e3f
+67f08a11
+6ff08a0a
+793ffe07
+67f08a0a
+20600000
+44c3c010
+6ff08a3d
+1fe17ee0
+1fe1fe06
+67f08a3d
+6ff08a3e
+1fe17ee0
+67f08a3e
+708a8403
+708a874a
+708a8940
+60488017
+1840a3fe
+c516918d
+1840a3ff
+204011bd
+6ff08a43
+1fe17ef0
+67f08a43
+2000000c
+6ff08a43
+1fe1fe0c
+67f08a43
+2000000c
+6ff08a43
+1fe1fe07
+67f08a43
+20201080
+44c44011
+20404c97
+708a6d05
+6ff08a12
+1fe1fe07
+1fe17efd
+67f08a12
+6ff08a0a
+1fe1fe0f
+67f08a0a
+6ff08a0b
+79207e02
+67f08a0b
+20000078
+6ff08a17
+1fe1fe1f
+67f08a17
+6ff08a18
+1fe1fef8
+67f08a18
+6ff08a19
+1fe17ee3
+1fe1fe18
+67f08a19
+20000078
+708a1000
+6ff08a11
+79207e04
+793ffe05
+67f08a11
+2000000a
+70890004
+20000002
+7089000c
+20600000
+44c4c011
+58000960
+9a20fe00
+6848c1ee
+202011c8
+44c54011
+58000960
+9a20fe00
+1fe3fe00
+6848c1ee
+184f8403
+9846fc00
+20407dfd
+1807a200
+18077e00
+1ff07e00
+1fed7e00
+1fed7e00
+9a21fe00
+67f20a3f
+20600000
+44c5c011
+6ff08a3d
+1fe17ee0
+1fe1fe19
+67f08a3d
+6ff08a3e
+1fe17ee0
+67f08a3e
+708a8403
+708a874a
+708a8940
+60488017
+1840a200
+204011c2
+6ff08a43
+1fe17ef0
+67f08a43
+2000000c
+6ff08a43
+1fe1fe0c
+67f08a43
+2000000c
+6ff08a43
+1fe1fe07
+67f08a43
+6fe1015d
+20401322
+44c64011
+6ff08a39
+1fe17ec0
+1fe1fe28
+67f08a39
+6ff08a3a
+1fe17ef0
+1fe1fe08
+67f08a3a
+6ff08a14
+1fe17ee0
+1fe1fe03
+67f08a14
+6ff08a15
+1fe17ef0
+1fe1fe07
+67f08a15
+6ff08a12
+1fe17ef8
+67f08a12
+6ff08a0a
+1fe17ef0
+1fe1fe0d
+67f08a0a
+6ff08a0b
+1fe1fe07
+67f08a0b
+20000078
+6ff08a19
+1fe17ee0
+1fe1fe0d
+67f08a19
+708a1ad9
+20000078
+708a1000
+6ff08a11
+1fe17ec3
+1fe1fe10
+67f08a11
+20000078
+6ff08a1a
+79207e05
+67f08a1a
+2000000a
+70890001
+20000002
+70890003
+44c6c011
+20600000
+70804206
+6fe140cb
+c307121f
+98000c00
+d8408900
+efe08006
+c07f9229
+98418a00
+efe08006
+e7e08005
+20201223
+44c74011
+204014c7
+20401246
+7041ed0c
+6fe10161
+9c40fe00
+67e200b9
+79202a03
+18002a00
+24559234
+20201236
+44c7c011
+20600000
+44c84012
+20600000
+44c8c012
+6ff089a0
+1fe67e00
+67e08019
+2040123f
+67e08018
+20600000
+1fe17eff
+1fe6fc0a
+20407dfa
+1ff27e00
+18070400
+9841fe00
+20600000
+44c94012
+70804206
+2040124d
+70804205
+20000001
+70804204
+20600000
+44c9c012
+6ff08a09
+6848c1ee
+18467c18
+7d217e00
+67f08a09
+58000060
+6848c1ee
+18467c18
+20211258
+58000080
+44ca4012
+6848c1ee
+9846fc00
+20407dfd
+1807a200
+18077e00
+1ff07e00
+1ff27e00
+67f18a05
+1a227e00
+67f08a08
+6ff08a01
+1fe1fe07
+67f08a01
+20000078
+6ff08a00
+1fe1fe03
+67f08a00
+2000000c
+6ff08a01
+1fe1fe78
+67f08a01
+200000f0
+6ff08a03
+793ffe04
+67f08a03
+20000168
+20600000
+58000f0f
+202014fa
+5800080f
+202014fa
+44cac012
+78507c00
+7830fc00
+782b7c00
+2020119a
+44cb4012
+20400dda
+243a128d
+6fe0804d
+2feffe02
+7920fe00
+67f08011
+d8c00063
+efe48006
+98006400
+efe38006
+98006600
+6fe08055
+1fe0e9ff
+782d7c00
+20600000
+70801100
+20600000
+1b427e00
+67e30098
+7846fc00
+242c114a
+6fe1015b
+1fe25200
+1d00d001
+1d0151fc
+20600000
+7826fc00
+37cb8400
+202c128f
+2d000402
+24209299
+2020128f
+44cbc012
+69610159
+7826fc00
+34730400
+7846fc00
+242c114a
+20600000
+44cc4013
+7826fc00
+37c18400
+7846fc00
+242c114a
+6fe1015b
+1fe25200
+1d0151fc
+20600000
+44ccc013
+98002200
+1c227e00
+98409600
+19627e00
+67e240d2
+1a227e00
+20600000
+1fe20400
+44cd4013
+18427e00
+20407dbf
+1c307e00
+79207e2c
+20407da5
+793ffe2c
+2040130a
+20407da5
+20740000
+20407db2
+98003600
+37c18200
+20600000
+44cdc013
+203812ca
+35330200
+1d020400
+202012cd
+203712cc
+34730200
+1c420400
+203412d9
+28400601
+242092c5
+44ce4013
+6fe08031
+c4000000
+6fe240d2
+98467e00
+24610000
+1fe67cff
+202112c5
+20600000
+28400603
+242092c5
+202012d0
+44cec013
+69610157
+202012c5
+78547c00
+202012dc
+78347c00
+202012dc
+44cf4013
+2040127d
+7850fc00
+78307c00
+20600000
+44cfc013
+69610155
+34730200
+782b7c00
+20600000
+44d04014
+6961015f
+34730200
+20600000
+44d0c014
+69610155
+35330200
+782b7c00
+20600000
+44d14014
+20404ca2
+51207e00
+782efc00
+79202a00
+08008648
+784efc00
+20600000
+1ca20400
+18418460
+18421c00
+20600000
+44d1c014
+6fe0c098
+1fe0fe01
+c0839307
+18007e01
+67e0c098
+98000800
+20600000
+1b220400
+20748000
+1b420400
+20600000
+1c427e00
+20748000
+1d027e00
+20600000
+44d24014
+684a004e
+2040130e
+98461600
+19627e00
+68490052
+18438400
+98467e00
+20600000
+44d2c014
+2040130e
+67e2004e
+20600000
+44d34014
+2020131f
+20201321
+207a0000
+1fe37e00
+1fe0fffd
+1fe0ffff
+24229325
+18007e00
+20600000
+df200010
+d8a00000
+20407d25
+d8a00287
+df20000a
+20407d25
+70087400
+70095b00
+7002df00
+7000e400
+7003a500
+44d3c014
+7000bd00
+700a5100
+700a5c00
+589e8b33
+67e1c0af
+70008e60
+7040d805
+70001402
+58000e43
+67e10155
+58000600
+67e10157
+58000600
+67e10159
+58000d00
+67e1015f
+580003bb
+67e1015b
+58000500
+67e1015d
+580007d0
+67e10161
+58000ea6
+67e10163
+580001e0
+67e10165
+58000120
+67e10167
+5800011a
+67e10169
+58001400
+67e143dc
+58000100
+67e143de
+44d44015
+20758000
+58000000
+67e141e9
+1c437e00
+67e2409c
+20600000
+70804206
+70804201
+2000000a
+58001d4a
+67f10040
+20600000
+58001369
+67e14463
+58001369
+67e14465
+20600000
+6fe08031
+c300936f
+7920000d
+6fe34171
+67e345fd
+20600000
+6fe08a51
+c4010000
+6fe08a5c
+1fe0fe01
+67e08a5c
+c1828000
+700a5c00
+6fe08a51
+793ffe02
+67e08a51
+c2819390
+2feffe07
+2040fe27
+2440fe2b
+6fe08a58
+2fe06020
+6fe0804d
+7920fe05
+67e0804d
+6fe08a51
+684880e4
+2feffe04
+79208406
+2feffe06
+79208404
+79208405
+604880e4
+6fe08a54
+67e0839f
+6fe08a55
+67e083a0
+79200011
+20600000
+793f8011
+700a5100
+6fe08a5b
+67e080e4
+20207e2b
+5800ee21
+67f10050
+6ff2011c
+67e2098a
+6ff0813b
+67e08989
+6ff0813e
+c301db51
+7835fc00
+c30393a6
+7855fc00
+1ce27e00
+243a13a6
+6ff0813b
+c28113a6
+d85fffff
+2020141b
+6ff20134
+67f2004c
+6ff08135
+1fe17ee0
+67f0804d
+2040150b
+6ff1813c
+67f1804c
+efe08006
+1fe1feef
+e7e08005
+20401505
+6ff0804f
+79207e04
+67f0804f
+20401505
+205593bf
+6ff0804e
+793ffe03
+67f0804e
+20401505
+2435db51
+c6958000
+70800608
+20600000
+6fe0c1a8
+67f08086
+d8c04189
+d8a08070
+20407d0f
+6fe441a0
+98000000
+6ff40140
+67e4009f
+20205bea
+18027e00
+67e441a0
+d8c08070
+d8a04189
+20407d0f
+6ff08086
+67e0c1a8
+2020150d
+6ff08085
+1ff1fe00
+243a13da
+6fe1c177
+247a0000
+6ff08085
+1fe1fec0
+67f08085
+70800680
+6ff0812d
+c4008000
+6ff18149
+67e1c177
+20600000
+44d4c015
+1b427e00
+20407da3
+684a4167
+18467cff
+20610000
+1fed7e00
+1ff27e00
+9846fc00
+20407dfa
+d84000c8
+20407e08
+67e08097
+243413ee
+1fe67e00
+6849c177
+9840fe00
+67e1c177
+58000000
+67e24167
+20600000
+6fe0c17f
+79207e02
+67e0c17f
+202013fc
+d85fffff
+6fe0c17e
+793ffe07
+67e0c17e
+44d54015
+2040150d
+6fe0c15f
+67e0c184
+6fe0c182
+79207e07
+67e0c182
+44d5c015
+20401274
+6fe24167
+9840fe00
+67e24167
+204013c9
+6fe24185
+1fe22400
+6fe2c180
+67f2004c
+1fef2200
+37d98200
+1b227e00
+67e3416b
+70800502
+37d98200
+37d98200
+1a227e00
+67f0804f
+70800502
+37d98200
+37d98200
+6252004c
+70800520
+37d98200
+37d98200
+605a004c
+70800510
+37df8200
+44d64015
+58000000
+1ce27c00
+2022942b
+6ff0813c
+6858813d
+98467c00
+20211429
+18427e00
+9ce67e00
+1fe0fe01
+1fe0fe08
+37d98200
+9e20fe00
+684a4163
+9840fe00
+6849c177
+984ffe00
+1fecfe00
+1ff1fe00
+1fe0fe6e
+68490163
+9846fc00
+20407dfa
+1ff07e00
+18070400
+9841fe00
+684b416b
+20407d98
+18423200
+6fe34048
+20401072
+1b427e00
+67e3095c
+1ce27e00
+e7e08005
+6ff0811d
+1fe1fef0
+e7e08005
+20600000
+44d6c015
+204013d1
+6fe1c177
+207a0000
+6fe0c099
+207a0000
+6fe0c763
+203a1452
+6fe0c6b8
+207a0000
+6fe0c6b9
+247a0000
+20400a50
+20628000
+2040151e
+247a0000
+6fe0c040
+2fe00e03
+2420947d
+6fe14042
+207a0000
+20758000
+44d74015
+6848809e
+6fe14042
+984ffe00
+18518400
+184b0400
+98467e00
+684a4044
+9840fe00
+6848c15e
+98467e00
+1ff06000
+44d7c015
+6fe1404e
+1fe37e00
+20407dbf
+1e027e00
+20407da5
+1b420400
+20407da3
+20740000
+20407db8
+44d84016
+6fe0c180
+98467c00
+202113f1
+604a4163
+20402ffd
+20405329
+684a4163
+20201403
+44d8c016
+6fe0c040
+c3800000
+c3818000
+6fe0c763
+203a1485
+6fe0c6b8
+207a0000
+6fe0c425
+243a1489
+6fe0c09b
+207a0000
+6fe1415c
+207a0000
+6848c15e
+98467e00
+d8401d4c
+984ffe00
+20201473
+44d94016
+7855fc00
+6fe08031
+c4008000
+243694b2
+204014ad
+6fe140c9
+67e1003f
+6fe08048
+c28194c0
+c58694c0
+204052d2
+243a14c0
+6fe0c643
+c28094c0
+6fe14471
+20407e13
+243a14c0
+70009e00
+c58694c0
+6fe0c17c
+203a14c4
+1fe0ffff
+67e0c17c
+20600000
+d8e00001
+2020579f
+d8e00001
+202057a3
+70416100
+6fe1c171
+1fe0fe01
+67e1c171
+20600000
+44d9c016
+684940c9
+18430400
+6fe1003f
+9840fe00
+67e1003f
+70009e00
+6fe1c174
+1fe0fe01
+67e1c174
+6fe0c161
+1fe0fe01
+67e0c161
+20600000
+70009e00
+6fe0c17b
+67e0c17c
+20600000
+6848c17a
+6048809e
+20600000
+44da4016
+6fe0c180
+247a0000
+70804206
+58000f0c
+204014fa
+58030d40
+20401322
+37d98200
+1e226000
+20401274
+70804204
+2000000a
+37d98200
+1e227e00
+9e067e00
+1fe0fe30
+d84000ff
+20407e08
+67e0c180
+20007530
+20007530
+20007530
+20600000
+6fe0c180
+247a0000
+708044ff
+70804206
+20401274
+580003e8
+9e20e000
+07e00000
+1e227e00
+20002ee0
+20002ee0
+20002ee0
+20002ee0
+20002ee0
+20002ee0
+20002ee0
+20002ee0
+20002ee0
+9e067e00
+1fe0fe30
+d84000ff
+20407e08
+67e0c180
+20007530
+20007530
+20007530
+20600000
+d8a00fff
+98a10a00
+6fe0c17d
+1fe17ef0
+1fed7e00
+98a1fe00
+67f1004c
+efe10006
+e7e10005
+58000001
+20201506
+58000002
+37d98200
+67f08005
+37d98200
+37d98200
+20600000
+58000020
+20201506
+44dac016
+6fe2009f
+67f2004c
+58000004
+20401506
+6fe200a3
+67f2004c
+58000008
+20201506
+6fe1415a
+f9207e00
+67e1415a
+20600000
+6fe1415a
+f93ffe00
+67e1415a
+20600000
+44db4016
+20402ffb
+6fe1415a
+1fe22200
+6fe0804d
+2feffe06
+7920a20b
+6fe08079
+6848807d
+9840fe00
+68488049
+9840fe00
+7d3a220a
+6fe1c4f0
+7d3a2201
+6fe1030e
+68490310
+9840fe00
+7d3a220d
+6fe44771
+7d3a220f
+6fe44779
+7d3a220e
+6fe0c1de
+7d3a2208
+6fe0c09a
+2fe1fe0a
+2040953d
+1a227e00
+67e1415a
+20600000
+6ff10112
+7d3a2206
+6ff1010e
+7d3a2205
+20600000
+6ff20138
+793ffe1b
+67f2004c
+20401503
+2020131f
+6ff2013c
+793ffe14
+67f2004c
+20201505
+6fe14158
+c280131f
+20600000
+6fe14158
+c280931f
+20600000
+6fe14158
+c281131f
+20600000
+4777403d
+2040159f
+6fe14979
+20407e13
+efe08030
+c000155e
+c0401b24
+c0411c15
+c06895a3
+20600000
+efe18006
+67e189f6
+d8a04a2d
+20407d1a
+70493000
+204018b3
+20401571
+6fe1497b
+20407e13
+58000080
+67e089fa
+58000003
+e7e08005
+58000000
+e7e08005
+6fe189f6
+e7e18005
+7009f906
+20201d97
+6fe14995
+c3810000
+20401ba5
+1a20a691
+5fffffff
+e7e40013
+e7e40005
+efe10011
+e7e10013
+1a427e00
+9a20a200
+c2001574
+6fe14991
+20207e13
+58000082
+67e089fa
+58000004
+e7e08005
+6fe08bdd
+e7e08005
+7009f903
+20201d97
+58000082
+67e089fa
+5800004e
+e7e08005
+6fe10bdd
+e7e10005
+7009f904
+20201d97
+58000082
+67e089fa
+58000060
+e7e08005
+6fe20bdd
+e7e20005
+7009f906
+20201d97
+5800005e
+67e089fa
+58000000
+e7e08005
+6fe10bdd
+e7e10005
+7009f904
+20201d97
+6f208b97
+1e022200
+da400050
+20201822
+204015bc
+24740000
+efe10006
+d8400534
+98467c00
+202295c8
+d8400533
+98467c00
+202295d1
+d8400123
+98467c00
+202295da
+d840f01f
+98467c00
+202295e3
+d840f010
+98467c00
+202295eb
+d840f011
+98467c00
+202295fb
+d840f012
+98467c00
+2022960b
+20600000
+20407e64
+efe10006
+d84001a8
+98467c00
+24628000
+18c22200
+6848c7a3
+efe08011
+98467c00
+20628000
+67e0c7a3
+20207e62
+efe08006
+67e08bdd
+20401627
+6fe08bdd
+e7e08005
+7009f907
+20401d97
+6fe14985
+20207e13
+efe08006
+67e08bdd
+20401627
+6fe08bdd
+e7e08005
+7009f907
+20401d97
+6fe14987
+20207e13
+efe30006
+67e30bdd
+20401627
+6fe30bdd
+e7e30005
+7009f90c
+20401d97
+6fe14989
+20207e13
+efe20006
+67e247a5
+20401677
+20401627
+6fe247a5
+e7e20005
+7009f90a
+20201d97
+e8440006
+604c0bdd
+d840f010
+20401627
+6fe40bdd
+e7e40005
+7009f90e
+20401d97
+2040161f
+207a0000
+6fe08bdd
+2040161b
+684c0bdd
+e0440005
+6fe14993
+20207e13
+efe38006
+67e38bdd
+d840f011
+20401627
+6fe38bdd
+e7e38005
+7009f90d
+20401d97
+2040161f
+207a0000
+700be459
+6fe08bdd
+2040161b
+6fe40bdd
+e7e40005
+202015f9
+e8408006
+60488bdd
+d840f012
+20401627
+6fe08bdd
+e7e08005
+7009f907
+20401d97
+2040161f
+207a0000
+6fe08bdd
+207a0000
+2040161b
+d8400000
+e0408005
+202015f9
+1fe0ffff
+1fe9fe00
+98a08a00
+20600000
+20401ba5
+1a20a28f
+6fe0c9ce
+9a4ffe00
+9a20a200
+efe10011
+1fe20a00
+20600000
+580000d3
+67e089fa
+580001a8
+e7e10005
+6fe0c7a3
+e7e08005
+e0410005
+20600000
+d8e00000
+d8400003
+da20f009
+2020164e
+da200100
+2020164e
+d8e00000
+da20f004
+20201653
+d8e00000
+da200534
+2020164e
+d8e00000
+da200533
+2020164e
+d8e00000
+20401c4a
+da200121
+20201653
+d8e00000
+20401c58
+da200122
+20201653
+18438400
+18418411
+da20f009
+20201653
+2040165a
+5800f009
+e7e10005
+20600000
+2040165a
+e2210005
+e0408005
+7009f907
+20201658
+2040165a
+e2210005
+e0410005
+7009f908
+20201658
+20401caf
+20201d98
+6fe0c92f
+67e08bfe
+580000f0
+67e10c1f
+6fe0c7a4
+1fe0fe01
+67e0c7a4
+c0601669
+580000d4
+67e089fa
+580001a8
+e7e10005
+6fe0c7a4
+e7e08005
+20600000
+7047a480
+20600000
+1c420400
+6fe247a9
+98467c00
+2041167d
+20401684
+98467c00
+20610000
+20401678
+6fe247a5
+1fe0fe01
+67e247a5
+20201688
+1c427e00
+67e247a9
+6fe0c7ac
+1fe17e0f
+67e0c7ac
+20600000
+20628000
+1fe22400
+58100000
+1fed7e00
+98408400
+1a427e00
+20600000
+df200014
+1fe0fea0
+c2001685
+20600000
+20401ba5
+1a20a28f
+7049ce00
+20401ca5
+efe10011
+203a1690
+1fe26000
+2040169a
+20401caa
+6fe0c9ce
+1fe0fe01
+67e0c9ce
+6848c997
+98467e00
+20628000
+1a427e00
+9a20a200
+2020168b
+df200028
+1f227e00
+67e08be8
+efe08030
+245a16a4
+1e00e008
+6fe08be8
+1fe27200
+c200169b
+20600000
+e8440030
+604c0bdd
+6fe08be4
+c02c96be
+684a47a5
+6fe20bde
+98467c00
+6fe08be4
+202296ae
+20600000
+67e08bdd
+6fe1497d
+20407e13
+1e027e00
+67e10bf0
+68e0c9ce
+e8408030
+20401646
+68488bdd
+68e0c9ce
+20401633
+6fe10bf0
+1fe26000
+58000000
+e7e08030
+202015f9
+6fe247a5
+d840003c
+9846fc00
+20407dfd
+18077e00
+247a0000
+6fe247a5
+d8454600
+98467e00
+d8493a80
+9846fc00
+20407dfd
+18077e00
+d8415180
+9846fc00
+20407dfd
+18072200
+18078e00
+58000000
+f9207e00
+68488be0
+98417e00
+207a0000
+1a227e00
+d840003c
+9846fc00
+20407dfd
+18078400
+580001e0
+98408400
+6fe10bde
+98467c00
+24628000
+6fe08be3
+202016ae
+4777c03d
+7047ad01
+58000096
+67e08a2c
+6fe08bdc
+1fe0fe0b
+1fe0f3fe
+67e08a2e
+1fe0ffff
+e7e08005
+5800002a
+e7e08005
+d8c04a6c
+20407d60
+6fe0c958
+1fe0fe01
+67e08a2d
+67e0c958
+da200a2c
+2020796d
+6fe0c7ad
+207a0000
+6fe0c930
+c0001700
+c00096fe
+6fe0c7ad
+203a1a80
+20401a74
+20201790
+204019e6
+202019ff
+6fe0c7ad
+207a0000
+d8e0000f
+20407d82
+247a0000
+7047ad00
+20401ba5
+1a20a202
+6221448e
+204079a4
+245a1711
+1a427e00
+9a20a200
+c2001708
+d8e0000f
+6fe147ae
+20207d74
+7047ad01
+20401ca5
+da200a2c
+20407995
+6fe08a2c
+1fe0ffff
+e7e08012
+205a7984
+d8c00a2e
+d8a047b0
+20407d18
+20401790
+2040171f
+20201caa
+6fe08a2d
+67e08ba8
+6fe08a2e
+1fe0fffe
+67e08a2e
+58000a31
+67e10a2c
+580ea801
+67e18ba3
+58000007
+67e08ba6
+6fe0c8ce
+67e08ba7
+6fe08a2e
+1fe6fc12
+20407dfd
+18077e00
+18078400
+245a1757
+18527e00
+1fe0fe01
+67e08ba9
+6fe08a2e
+207a0000
+d8400012
+20407e58
+1fe20400
+6fe08a2e
+98467e00
+67e08a2e
+60488baa
+1840fe0d
+67e0c7b0
+58000002
+67e0c7b1
+58000001
+e7e08005
+58000002
+e7e08005
+1840fe09
+e7e08005
+580000ff
+e7e08005
+6fe40ba3
+e7e40005
+18427200
+6fe10a2c
+1fe20c00
+20407d6d
+18c27e00
+67e10a2c
+6fe08ba9
+1fe0fe01
+67e08ba9
+20401790
+20201735
+18408401
+20600000
+20600000
+2020177c
+6fe0816b
+1fe17e0f
+c0001760
+c0011760
+20600000
+e8408006
+18467c06
+20610000
+18467c25
+24610000
+1840a3fa
+18c0a406
+e8408012
+18467c01
+20610000
+18467c1e
+24610000
+18427e00
+207a0000
+4778403e
+efe08006
+c07f9a13
+c0151cbb
+c0039a95
+1840fe01
+9a267c00
+20610000
+9a40a400
+18467fff
+9a20a200
+1a227e00
+207a0000
+20201767
+20401eb8
+20402443
+20401786
+24768000
+6fe08002
+1fe0fe01
+67e08002
+6fe14977
+20407e13
+20201ec2
+20401788
+20201f5a
+6fe0c7d0
+1fe0fe01
+67e0c7d0
+67e08016
+c1940000
+7047d025
+70001625
+20600000
+6fe08000
+1fe0fe01
+67e08000
+20401eb8
+df200027
+d8c041f3
+d8a00a4e
+20407d60
+70001625
+20402443
+204017a9
+180a7e00
+d84001ff
+98417e00
+1fe0fe64
+20407d1c
+6fe08016
+1fe0fe01
+67e08016
+c0941799
+df200027
+d8a041f3
+d8c00a4e
+20407d60
+20201ec2
+d8400002
+6048c1f3
+6848c7b0
+1840fe06
+67e0c1f4
+6fe34378
+67e341f5
+18427200
+d8c047b1
+20407d60
+20202046
+68490b98
+6fe08b97
+18420c00
+da2048ef
+de0048ff
+20401956
+20407e64
+1a627e00
+9e008c00
+684a48ff
+6fe10bda
+1fe22200
+df20000a
+efe20011
+203a17ce
+98467c00
+20628000
+1a20a204
+c20017c1
+6fe10bda
+1fe20a00
+1fe08c04
+df200024
+20407d60
+e0420005
+20207e62
+e0420011
+20207e62
+204017d7
+204017db
+204017e2
+204017e6
+204017ea
+204017ee
+202017f2
+d840001a
+da204959
+da400000
+20205e29
+d8400013
+da20493b
+da40001a
+20405e29
+6fe0c94b
+67e0c9d2
+20600000
+d8400010
+da204a2d
+da40002d
+20205e29
+d8400010
+da204821
+da40003d
+20205e29
+20600000
+d8400001
+da40004d
+20205e29
+d8400003
+da204a66
+da40004e
+20205e29
+6fe14995
+c3810000
+d8400040
+da20098e
+da400051
+20405e29
+20401ba5
+d8c0098e
+1a20a291
+1a220a00
+20407d1a
+1a427e00
+9a20a200
+c20017fb
+20600000
+20401804
+20401808
+2020180c
+d8400013
+da20493b
+da40001a
+20205e4f
+d8400010
+da204a2d
+da40002d
+20205e4f
+d8400010
+da204821
+da40003d
+20205e4f
+d8400003
+da204a66
+da40004e
+20205e4f
+20401ba5
+d8a0098e
+1a20a291
+1a220c00
+20407d1a
+1a427e00
+9a20a200
+c2001817
+d8400040
+da20098e
+da400051
+20205e4f
+d8400000
+2020182a
+d8400001
+2020182a
+d8400002
+2020182a
+d8400003
+2020182a
+d8400004
+2020182a
+4778c03e
+20407cdc
+20405f5c
+580000aa
+e7e08003
+58000003
+e7e08003
+1f20fe04
+e7e08003
+e0410003
+e2410003
+1a220c00
+20405f6a
+580000bb
+e7e08003
+20405f60
+20207ce8
+58001c00
+67e1095c
+58001c01
+e7e10005
+58001c02
+e7e10005
+58001fff
+e7e10005
+6fe4095c
+20405efd
+d84e1000
+20405f15
+20405f22
+d8400081
+60588061
+20600000
+20401851
+20401859
+2040185e
+20401863
+2040186b
+2020186f
+2040187c
+d8c04841
+df20000f
+204018dc
+204018f6
+d8c00900
+d8a04831
+20207d1a
+2040187f
+204018f6
+d8c00900
+d8a047e1
+20207d1a
+2040187f
+204018f6
+d8c00900
+d8a04811
+20207d1a
+6fe44801
+67e447d9
+6fe44809
+67e447d1
+d8c047d1
+da204831
+de0047f1
+20201944
+d8c04801
+da204831
+de004801
+20201944
+d8c047f1
+df200010
+204018d9
+d8c0485a
+df200009
+204018dc
+204018f6
+d8c00900
+d8a04821
+20207d1a
+2040187d
+d8c04801
+202018d8
+2040187a
+d8c04809
+202018d8
+d8c04959
+df200004
+204018df
+d8c0495d
+df200006
+204018df
+d8c04963
+df200010
+202018d9
+20401894
+da204938
+da400900
+df20000b
+efe10011
+e8410012
+9842fe00
+e7e10011
+1a20a202
+1a40a402
+c200188c
+20600000
+d8c047f1
+df200010
+204018d9
+d8c04850
+df20000a
+204018dc
+202018f6
+d8c0493b
+d8a0488e
+20407d1a
+d8c0488e
+da20489e
+de0048ae
+20401946
+de0048be
+da400001
+58000000
+20401948
+6fe0c8cd
+1fe17e7f
+67e0c8ce
+de0048df
+da400002
+58000010
+da2048be
+20401948
+de0048cf
+da400003
+58000010
+da2048df
+20201948
+d8c04a2d
+da2048ef
+de0048ff
+20401946
+d8c0490f
+da2048ff
+de00491f
+58000004
+20401956
+6fe0c92e
+1fe17e3f
+79207e06
+67e0c92f
+20600000
+da204a6d
+6fe3ca73
+202018c6
+da200bf6
+6fe38bfc
+67e38b7e
+58000000
+67e28b75
+204018cf
+6fe30b85
+e8430011
+9842fe00
+e7e30011
+20600000
+6fe249cf
+67e20b7a
+d8c048cf
+20406deb
+d8c00b75
+20406ded
+20406d86
+d8a00b85
+20206dfe
+df200008
+204018e6
+20401935
+202018e3
+204018e6
+20407d6d
+202018e3
+204018e6
+20401935
+5800002c
+e7e08005
+18a27e00
+67e14874
+20600000
+18c20400
+1f222200
+6fe14874
+1fe20a00
+6fe0c863
+205a18ef
+18420c00
+1a227200
+20600000
+70486301
+204018f3
+d8a00a75
+20600000
+df200020
+d8a00a75
+20207d25
+20401913
+da400010
+da200a75
+6f244864
+20401820
+2040192e
+58000a75
+67e1487b
+204072c8
+6fe1487b
+1fe20c00
+d8a004a8
+20407d0d
+204072cf
+6fe1487b
+1fe0fe40
+67e1487b
+6fe0c878
+1fe0ffff
+67e0c878
+243a18ff
+2040730b
+da200900
+df200020
+20407d45
+da400011
+da200900
+df200020
+20201820
+70486300
+6fe14874
+1fe20a00
+d8400080
+e0408005
+d8400a75
+98467e00
+67e44864
+1fe98400
+604c486c
+1ff1a600
+1a6b2600
+1fe17e3f
+1fe67c37
+2441192c
+1a60fe01
+67e0c878
+1fefa240
+1ff22600
+1a60a7ff
+58000a71
+9a20a200
+6fe2486c
+e7e20011
+20600000
+1a60a601
+20600000
+da200a75
+df200004
+20407d45
+1a20a202
+1a60a7ff
+2422992f
+20600000
+efe08006
+1ff18400
+2040193e
+e0408005
+1fe1040f
+2040193e
+e0408005
+c2001935
+20600000
+18467c09
+20211942
+18408457
+20600000
+18408430
+20600000
+58000020
+20201956
+58000010
+20201956
+6848c87d
+18408401
+98408400
+604884a7
+1a220c00
+1fe27200
+20407d60
+6848c87d
+18427200
+20407d6d
+1a427e00
+e7e08005
+da2048ae
+20201959
+67e084a7
+1fe27200
+20407d60
+1a220c00
+d8a0098e
+20407d1a
+da400012
+da2004a8
+6f2084a7
+20401820
+da400013
+da20098e
+df200010
+20401820
+20406ab1
+1e020a00
+20406dfe
+da400014
+1e022200
+df200010
+20201820
+68488ba2
+2020196e
+18000401
+18007000
+6fe10b95
+1fe20c00
+efe18006
+1fed7e00
+9841de00
+1f00f001
+efe20006
+1fe25e00
+1f00f001
+efe20006
+1fe25e00
+1f00f001
+1a30de00
+1df05e00
+efe10006
+9de1de00
+20600000
+6fe08b97
+1fe22200
+2040196b
+20406d86
+1800700c
+1de27e00
+1a227200
+68490b98
+18420c00
+20406dd5
+20206cb3
+700ba219
+2020198f
+700ba209
+2020198f
+67e08b97
+60490b98
+4779403e
+20401980
+18007008
+98005e00
+1800700d
+1de27e00
+18007009
+98005e00
+18002200
+18422600
+2040196d
+20406d8c
+204019ce
+604c0b9a
+6fe08b97
+1fe22400
+204019d6
+68488b97
+6fe10b98
+9840a200
+684c0b9a
+e0420011
+6fe08ba2
+1fe67e09
+207a0000
+e0440011
+20600000
+700ba219
+202019b0
+700ba209
+202019b0
+67e08b97
+60490b98
+18422600
+1fe22400
+9a608c00
+4779c03e
+efe40006
+18007008
+98005e00
+18007009
+1fef7e00
+98005e00
+18002200
+2040196d
+20406d8c
+204019ce
+604c0b9a
+204019d6
+20401980
+204019ce
+6fe08ba2
+c00c99cb
+604a0b9e
+6fe20b9a
+684a0b9e
+98467e00
+20600000
+6fe40b9a
+98467e00
+20600000
+1800700c
+1de27e00
+1800700d
+1de20400
+18500400
+18500400
+98418400
+20600000
+1a20a201
+2040196d
+1a620c00
+20406de9
+20406d8c
+20406e05
+1a60a610
+1a40a5f0
+202119d6
+20600000
+70495600
+70495700
+70493001
+70493100
+7047ad01
+20600000
+204019e8
+202019f3
+580001a8
+67e10ba3
+6fe0c932
+e7e08005
+6fe24973
+e7e20005
+6fe34378
+e7e30005
+6fe1c933
+e7e18005
+20600000
+7047b015
+58000014
+67e0c7b1
+5800002b
+e7e08005
+58000000
+e7e08005
+d8c00ba3
+20407d1a
+6fe14936
+e7e10005
+20201790
+7047b01d
+58000002
+67e0c7b1
+58000001
+e7e08005
+58000002
+e7e08005
+58000003
+e7e08005
+58000003
+e7e08005
+58001827
+e7e10005
+58000015
+e7e08005
+58000016
+e7e08005
+58001827
+e7e10005
+202019fa
+18427200
+18c22200
+e8410011
+580001a8
+1ff0fe00
+98467c00
+24628000
+efe08006
+67e08bd9
+18c22200
+20401a83
+477a403e
+efe08006
+c0001a24
+c0011a3b
+c0031a58
+20600000
+e8410006
+d8a04801
+20407d1a
+6fe14961
+98467c00
+24628000
+70493002
+20401a85
+6fe0c931
+c3808000
+79207e01
+67e0c931
+2040184b
+20401a33
+20201a89
+d8400012
+20401a5f
+58000001
+e7e08005
+6fe14961
+e7e10005
+d8c04801
+20207d1a
+18c22200
+6fe0c931
+c4008000
+c3810000
+1a220c00
+df200016
+d8a04938
+20407d6d
+20401888
+68494938
+6fe14961
+98467c00
+24628000
+20401a8d
+6fe0c931
+79207e02
+67e0c931
+2040189b
+6fe0c94b
+67e0c9d2
+20401a51
+20201a91
+d8400006
+20401a5f
+58000003
+e7e08005
+6fe3495d
+e7e30005
+20600000
+efe08006
+18c22200
+6848c8ce
+98467c00
+24628000
+da400012
+20201ad4
+58008fff
+67e14952
+7047ad01
+1840fe09
+67e0c7b0
+58000002
+67e0c7b1
+58000001
+e7e08005
+58000002
+e7e08005
+1840fe05
+e7e08005
+580000ff
+e7e08005
+580001a8
+1ff0fe00
+e7e10005
+6fe08bd9
+e7e08005
+20600000
+6fe0c930
+c1008000
+6fe2494e
+243a1a79
+20201a80
+1c427e00
+684a494e
+98460400
+6fe14952
+98467c00
+20610000
+70442500
+1c427e00
+67e2494e
+20600000
+da400001
+20201820
+df200001
+da400002
+da204931
+20201822
+6f20c7b0
+da400003
+da2047b1
+20201822
+df200001
+da400004
+da204931
+20201822
+6f20c7b0
+da400005
+da2047b1
+20201822
+d8a00ba3
+20407d1a
+da200ba3
+df200010
+20407d45
+68498ba3
+580ea801
+98467c00
+24628000
+477ac03e
+6fe08ba6
+c0031ace
+6fe0c930
+c1000000
+6fe10ba7
+68494961
+98467c00
+24628000
+da200ba9
+da400007
+20401ade
+20740000
+6fe14961
+67e10bb5
+477b403e
+6fe08ba6
+c0001ab3
+c0011ab5
+c0021ac2
+20600000
+d8c00bb5
+20201a24
+6fe0c931
+c4008000
+c3810000
+d8c00bb7
+df200014
+d8a0493a
+20407d6d
+20401894
+da20493a
+da400900
+df20000a
+2040188c
+20201a48
+70493002
+6fe10bb7
+67e10bb3
+d8400003
+20401a5f
+58000005
+e7e08005
+6fe14961
+e7e10005
+58000001
+e7e08005
+20600000
+6fe08ba7
+6848c8ce
+98467c00
+24628000
+da200ba8
+da400008
+20401ade
+20740000
+df200024
+da4000e1
+da200bb7
+20401820
+6848c955
+18408401
+d8c00bb7
+20201cbb
+477bc03e
+20401aff
+20740000
+1a208c01
+e8408006
+1851fe00
+c0009b17
+1fe27200
+20401afa
+18410e0f
+98e67c00
+20429b1d
+18e08fff
+6fe0c954
+afefffff
+2020fe62
+f9207e00
+67e0c954
+9a667c00
+2442fe62
+20429b0d
+1a208c02
+ef208006
+1a427e00
+98effe00
+d8a00bb7
+98a08a00
+20207d6d
+da600000
+1f208fff
+f9202600
+c2001afb
+20600000
+efe08011
+203a1b08
+6848c956
+98467c00
+2022fe62
+6848c957
+98467c00
+2022fe62
+20207e64
+68494956
+5800ffff
+98467c00
+2022fe62
+20207e64
+70495400
+6fe0c957
+67e0c956
+efe08011
+205a1b14
+67e0c957
+20207e64
+580000ff
+67e0c956
+20600000
+20401b0d
+1a208c02
+ef208006
+6720c955
+d8a00bb7
+20207d6d
+1fe0ffff
+9a4ffe00
+1a208c02
+ef208006
+9f20fe00
+67e0c955
+20600000
+efe08006
+c0249b29
+c00d9b31
+c00e1b38
+20600000
+6fe1498d
+20407e13
+58000080
+67e089fa
+5800004a
+e7e08005
+7009f902
+20201d97
+20401b56
+6fe14995
+c3810000
+20401b62
+20401b6b
+6fe14991
+20207e13
+20401b56
+6fe14995
+c3810000
+20401b62
+68490bdf
+184cfe00
+1ff1fe00
+c0061b46
+20401b4b
+24740000
+58000000
+e7e10011
+6fe14991
+20207e13
+5fffffff
+e7e40011
+e7e40005
+6fe14991
+20207e13
+df200008
+efe10011
+da40ffff
+9a467c00
+2022fe62
+98467c00
+2022fe62
+1a20a202
+c2001b4c
+20407e64
+20600000
+efe30006
+67e30bdd
+58000080
+67e089fa
+5800001f
+e7e08005
+58000000
+e7e08005
+6fe30bdd
+e7e30005
+7009f909
+20201d98
+20401ba5
+1a20a291
+6fe10bdd
+6849494c
+18508400
+98467e00
+9a4ffe00
+9a20a200
+20600000
+68490bdf
+df200008
+efe10011
+203a1b75
+da40ffff
+9a467c00
+20229b75
+1a20a202
+c2001b6d
+20600000
+18508400
+e0410011
+20600000
+5800175b
+67e14977
+58001ba9
+67e14465
+58001d10
+67e1498b
+58001801
+67e1497b
+58001814
+67e14991
+58001810
+67e1498f
+20758000
+7047d024
+20401669
+20401b9d
+477c403f
+2040183b
+20401bac
+da20493b
+da400000
+df200001
+20401822
+204017d0
+20401b96
+6fe0c93b
+c07f99e0
+204018b3
+2040189b
+2020162f
+6fe24959
+20407d5a
+67e24973
+6fe3495d
+20407d54
+67e34378
+20600000
+20401ba5
+1a20a202
+58000422
+e7e10011
+1a427e00
+9a20a200
+c2001b9f
+20600000
+6f20c997
+6a214998
+6a41499a
+20600000
+2040166b
+204016f5
+2020175a
+7080700c
+7080714d
+7080722c
+7080732d
+7080743e
+20205e0c
+477cc03f
+6fe08bfe
+c2839bb7
+704a3d00
+20201d5b
+20401bbc
+20401bd9
+20740000
+20401be9
+20201bf5
+df200003
+da200bff
+20407d45
+6fe18bff
+1fe1041f
+6048c9a0
+1ff1fe00
+1fe37e00
+1fe1041f
+6048c99f
+1ff1fe00
+1fe37e00
+da201fff
+9a210400
+1fe22400
+6fe1499d
+98467c00
+24429bd5
+6049499d
+1a4cfe00
+1ff1fe00
+1fe37e00
+67e0c99c
+67e0ca3d
+20600000
+58000000
+67e249a1
+7049a600
+20600000
+20407e64
+6fe0c99f
+1fe20e00
+6fe249a1
+afefffff
+2020fe62
+f9207e00
+67e249a1
+6848c9a0
+1840f201
+1f208fff
+afefffff
+24608000
+c2001be3
+7049a501
+20600000
+6fe08bf2
+1fe0fffa
+1fe27200
+6848c9a6
+98408400
+6048c9a6
+d8a049a7
+6fe0c99f
+1feffe0c
+98a08a00
+d8c00c02
+20207d6d
+6fe0c9a5
+c1000000
+58000000
+67e2c9a1
+68490bf8
+18508400
+5800e000
+98410400
+6fe1499d
+9841fe00
+1ff0fe00
+67e10bf8
+20201d65
+6fe089f9
+1fe08401
+1fe27200
+60488bdc
+6fe08bfe
+793ffe07
+67e0ca75
+d8c009fa
+20407d60
+20201d43
+1a208404
+1a227200
+60488bdc
+d8a04a79
+20407d60
+6fe08bfe
+79207e07
+67e0ca75
+20201d43
+efe08006
+c0011c1b
+c0211c22
+c0261c27
+c02f1c31
+20600000
+efe20006
+67e20bdd
+da601c1f
+20201c94
+2040157f
+6fe1497d
+20207e13
+efe28006
+67e28bdd
+20401597
+6fe1497f
+20207e13
+efe28006
+67e28bdd
+6fe10bdd
+20401c44
+67e08be2
+da601c2e
+20201c94
+20401587
+6fe14981
+20207e13
+efe48006
+67e48bdd
+6fe149cb
+68490bdf
+98467c00
+20628000
+6fe10bdd
+20401c44
+67e08be6
+6fe10bdf
+20401c50
+67e08be7
+6fe10bdf
+67e149cb
+da601c41
+20201c94
+2040158f
+6fe14983
+20207e13
+1feffe64
+d840ffff
+9846fc00
+20407dfd
+1807fe00
+20600000
+dfe0ffff
+984ffe00
+1fe6fc64
+20407dfd
+18078400
+20600000
+d8400320
+98462200
+20401c5f
+1a227e00
+9846fc00
+20407dfd
+1807fe00
+20600000
+18422200
+20401c5f
+1a227e00
+984ffe00
+d8400320
+98408400
+20600000
+58004e20
+d8400320
+98467e00
+1fe6fc64
+20407dfd
+18078400
+20600000
+d8e00000
+6f20c997
+20407e64
+6fe1494c
+98467c00
+20229c72
+1ff0fe00
+1fe0fe01
+1ff0fe00
+18e08e01
+c2001c6a
+20600000
+67e14a69
+7049cd00
+60e0c9ce
+20401caf
+20207e62
+d8e00000
+da600000
+20401ba5
+20407e64
+6fe14995
+c3011c8a
+efe10011
+98467c00
+20429c88
+1a427e00
+9a20a200
+18e08e01
+c2001c7b
+1a627e00
+207a0000
+67e0c9cd
+20207e62
+f9202600
+20600000
+1a208c91
+de000008
+efe10006
+98467c00
+20229c92
+1e00e1ff
+20229c80
+20201c8c
+20401c88
+20201c80
+6fe0c9cd
+203a1ca0
+d8e00000
+1fe22400
+6f20c997
+60e0c9ce
+aa4fffff
+20409ca0
+68e0c9ce
+18e08e01
+c2001c99
+20600000
+20401ca5
+20401caf
+1a627e00
+20407e13
+20201caa
+67210be8
+62210bea
+62410bec
+62610bee
+20600000
+6f210be8
+6a210bea
+6a410bec
+6a610bee
+20600000
+6fe1494c
+1ff0fe00
+98e0fe00
+1ff0fe00
+67e14a69
+20401ba5
+18e27e00
+9a4ffe00
+9a20a200
+1a20a202
+6221448e
+20600000
+18467c0c
+20610000
+18467c1e
+24610000
+477d403f
+20401d08
+20401cd6
+24740000
+204018c4
+20401cff
+6fe08bf2
+d8400bfc
+204019ae
+24628000
+477dc03f
+68490bfc
+60490bf3
+20401c66
+20341ce3
+20401c77
+20341ce3
+7049cdff
+5800ffcf
+98467c00
+20229ce3
+6fe1498b
+20207e13
+20407e64
+68488bf5
+1851fe00
+1fe97e00
+6a20c9d2
+1a212201
+9a267c00
+24628000
+1841047f
+6fe0c8ce
+98467c00
+24628000
+20207e62
+da2049d3
+df20000a
+68490bfa
+efe10011
+203a1ced
+98467c00
+20229cee
+1a20a205
+c2001ce5
+da2049d3
+e0410011
+60490c1f
+1a20a602
+efe18013
+67e18c21
+20201cf3
+20401cfc
+6fe18c21
+68498bf7
+98467c00
+20610000
+e0418013
+20401cfc
+20401d56
+20201bb2
+da200bf7
+df200003
+20207d45
+20401d02
+d8c048df
+20206deb
+d8a00c12
+58000000
+e7e08005
+6fe30bf6
+e7e40005
+20201d51
+1840fff4
+67e08bf2
+df20001d
+d8a00bf5
+20407d34
+1840f3ff
+d8a00bf5
+20207d60
+6fe14995
+c3808000
+6fe0c7ad
+247a0000
+20401d38
+24740000
+20401d3b
+6fe08bf6
+207a0000
+1fe0ffff
+207a0000
+67e08bf6
+20401cff
+6fe08bf2
+d8400bfc
+2040198d
+204018c4
+d8e00000
+20401caf
+7047ad01
+5800000f
+67e08a2c
+6fe08bf2
+1fe0840d
+60488a2e
+d8a00a2f
+6fe08a2e
+1fe0ffff
+e7e08005
+5800002a
+e7e08005
+6fe38bf5
+e7e38005
+6fe08bf2
+1fe0fe04
+1fe27200
+d8c00bfc
+20407d6d
+da200a2c
+2020796d
+58004a05
+67e10bda
+202017b4
+df200002
+da200bfc
+da400021
+20401822
+6f208b97
+6a210b98
+da400021
+20201820
+477e403f
+20401d47
+20401d50
+202016e1
+6fe08bdc
+1fe0a202
+1fe0fe04
+67e08bdc
+d8404a73
+20201d4d
+20401cff
+1a227e00
+2020198d
+202018c1
+6fe249cf
+e7e20005
+18a0fff3
+67e10b95
+20600000
+6fe08bf2
+1fe0f20b
+da200bf5
+da400020
+20201820
+c3031d5e
+20401d84
+20201d60
+20401d91
+20201d60
+6fe08bf2
+1fe0fff9
+de000bff
+20407e64
+20201d72
+6fe08bfe
+c3031d69
+20401d84
+20201d6b
+20401d91
+20201d6b
+6fe0ca3d
+245a7e62
+205a7e64
+6fe0c9a6
+1fe0fffc
+7049a600
+de0049a7
+1e020400
+20401d7e
+24628000
+df200001
+da200b97
+da400040
+20401822
+20401d81
+24740000
+6fe10b98
+1fe26000
+20201554
+243419ae
+1fe0fffc
+202019ac
+58004a3e
+67e10bda
+202017b4
+20401d87
+d8c04a2d
+20206deb
+d8a00c12
+58000001
+e7e08005
+6fe0ca3d
+d8400000
+7d3a0407
+e0408005
+6fe38bf7
+e7e38005
+20201d51
+20401d94
+d8c04821
+20206deb
+d8a00c12
+58000002
+20201d89
+20401dfe
+da2009fa
+6f2089f9
+da400041
+20401822
+477ec03f
+20401dca
+20401dcf
+58000000
+67e0ca3d
+20401dc0
+6fe089f9
+1fe67c0f
+24211da6
+20201c02
+477f403f
+20401de3
+580009fa
+67e10c24
+684889f9
+5800000c
+20407e58
+1fe22200
+18427e00
+9a267e00
+67e089f9
+6fe10c24
+1fe20c00
+9a208400
+60490c24
+20401c0c
+6fe089f9
+207a0000
+477fc03f
+6fe08c29
+1fe0fe01
+67e08c29
+20401def
+20401dca
+20401dcf
+20201daa
+6fe08bfe
+c3031dc4
+20401d84
+20201dc5
+20401d91
+6fe089f9
+1fe08404
+604889f9
+d84009fa
+2020198d
+6fe1ca66
+1fe0fe01
+67e1ca66
+6fe1498f
+20207e13
+6fe0c9d2
+1ff27e00
+1fe9fe00
+6848c8ce
+9841fe00
+67e0ca6c
+6fe0ca6b
+67e0ca6d
+6fe1ca66
+67e1ca6e
+6fe14a69
+67e14a71
+6fe10c1f
+67e14a73
+da204a6e
+df200003
+20407d45
+6fe44a6d
+67e40bf6
+20600000
+684889f9
+1fe6fc0c
+20407dfd
+18078400
+18077e00
+205a1dfc
+60488c2a
+700c2900
+6fe1ca66
+d8401fff
+98417e00
+67e10c27
+6fe10c27
+1ff27e00
+1fe3fe00
+68488c29
+9841fe00
+1ff27e00
+1fe3fe00
+68488c2a
+9841fe00
+67e1ca76
+df200003
+da204a76
+20207d45
+184085ff
+20600000
+20207968
+474dc033
+7855fc00
+70029d01
+70028703
+70029e01
+5fffffff
+67e102a1
+18007e00
+67e0829f
+67e082aa
+67e1c171
+67e1c174
+20402161
+7041f301
+7041f400
+7002bc01
+7002bd01
+70443300
+2020223b
+474e4033
+7834fc00
+70028803
+70443501
+70099e01
+5800ffff
+67e109a0
+18007e00
+67e2c6a0
+79207e27
+67e2c69b
+20201dff
+474ec033
+7854fc00
+58000017
+67e14380
+1fe0fe04
+67e14444
+70028801
+70442500
+70009e00
+20401e8d
+6fe102b5
+67e14392
+6fe10289
+1feffe05
+1ff1fe00
+67e102b5
+20201dff
+474f4033
+20401eb8
+6fe08287
+2feffe04
+79208031
+20402fc9
+6fe08288
+c2809e38
+20201e4b
+474fc033
+7834fc00
+20402232
+20211e48
+2040154e
+20401f04
+20402176
+7856fc00
+20402038
+24768000
+6fe08005
+1fe0fe01
+67e08005
+20402127
+7854fc00
+20600000
+20401e81
+7854fc00
+20600000
+47504034
+7043db00
+793f802f
+204075c4
+20402987
+78577c00
+20402232
+20211e81
+2040154e
+6fe082bc
+20401e9e
+20401f04
+20401f5e
+242c1e72
+20401e91
+20369e5d
+c5179e5d
+20201e6c
+4750c034
+6fe0c3db
+1fe0fe01
+67e0c3db
+c0061e6c
+20402127
+20402176
+6fe082bd
+20401e9e
+20402048
+204021d9
+6fe1446d
+20407e13
+20401e76
+20341e7b
+47514034
+2040294d
+20402944
+204078b5
+6fe082aa
+c2819e81
+4751c034
+20400e79
+20402305
+2020105c
+78547c00
+c5157e62
+c514fe62
+c517fe62
+20600000
+47524034
+78377c00
+2040203c
+20369e5d
+c5179e5d
+20201e6c
+4752c034
+20401e88
+2040308b
+20401e8d
+20402995
+70095b15
+2020789f
+d8a044e6
+20407d29
+70029d00
+70028800
+70028700
+47534034
+70439a00
+70439900
+20206ef9
+4753c034
+6fe08005
+1fe0fe01
+67e08005
+6fe08287
+c3818000
+79207e03
+67e08287
+6fe14392
+67e102b5
+58000000
+67e243ba
+20600000
+1fe20400
+47544035
+18427e00
+c2801eb8
+c2809ea7
+c3011eb8
+c2839eb5
+c2811ead
+20201eb8
+20401eb8
+7920002d
+793f802e
+70890103
+70892084
+20600000
+20401eb8
+7920002e
+793f802d
+70890105
+70892080
+70893020
+7089340a
+20600000
+20401ead
+7920002d
+20600000
+4754c035
+783b7c00
+793f802d
+793f802e
+70890101
+70892080
+708925a7
+70893003
+70893740
+20600000
+47554035
+785b7c00
+793f8031
+70890100
+70892080
+708925a3
+70893006
+70893402
+70893728
+20600000
+7844fc00
+7843fc00
+6fe182af
+98001e00
+6fe08016
+1fed8400
+79200401
+18431c00
+20600000
+20401ede
+2040117e
+6fe1015d
+20401322
+2020119a
+203691ed
+c51791ed
+20401ede
+202011d2
+4755c035
+20401165
+6fe082df
+243a1ef1
+6fe08016
+1fe67c24
+20211eeb
+18000400
+c1128000
+18000418
+c1130000
+1800044e
+20600000
+1fe67c0a
+20211eee
+1fe0fe01
+1fe3fe00
+1fe08402
+20600000
+6fe08016
+1fe38400
+20600000
+d84001f4
+207a0000
+d84000fa
+c1008000
+d8400096
+c1010000
+d8400064
+c1018000
+d840004b
+c1020000
+d8400032
+c1028000
+d8400028
+c1030000
+d8400014
+20600000
+47564035
+78287c00
+6fe202ab
+98001200
+204010ab
+20401f3c
+58000200
+20349f0e
+6fe10295
+1fe37e00
+6849015d
+9840fe00
+204012b6
+1b427e00
+20600000
+4756c035
+62610974
+62410978
+67210987
+1a208c01
+efe08006
+c4000000
+1a208a1a
+efe10005
+1fe0fe01
+e7e10005
+204020a8
+204020ca
+204020d3
+20401f26
+6a610974
+6a610978
+6f210987
+20600000
+1a208c19
+efe08006
+1a208a18
+e8408005
+9840fe00
+1fe67c24
+20211f2e
+1fe0ffdb
+e7e08005
+20600000
+1a208c30
+efe28006
+18000400
+18007225
+c3001f36
+18408401
+1fe37e00
+c2001f34
+1840ffff
+1a208a22
+e7e08005
+20600000
+47574035
+6fe0829f
+98000e00
+684a82b7
+a84fffff
+20209f51
+6fe082a9
+98e67e00
+20211f47
+1fe60fff
+20201f42
+18e27200
+18000e00
+a84fffff
+20209f4c
+1f20f201
+1f227e00
+203a1f51
+18e08e01
+1f20f3ff
+20201f49
+18e27e00
+67e08016
+20600000
+20349f57
+37c18200
+20600000
+d9600ea0
+34730200
+20600000
+78487c00
+6fe143e3
+1fe21600
+20201f64
+4757c035
+20401fc8
+78287c00
+6fe10295
+684a43ba
+98409600
+20401ed5
+47584036
+20401ecc
+c5971f6c
+783cfc00
+2000001e
+20401ecc
+19699600
+7856fc00
+7826fc00
+7830fc00
+78507c00
+19623600
+37c18400
+20371f75
+1b420400
+604b0098
+242c2003
+4758c036
+78287c00
+db604eab
+6fe0c1ed
+9b6fb600
+20404c9c
+20371f82
+20402007
+6fe08287
+c3019f82
+684b0098
+205593df
+20401238
+7823fc00
+7824fc00
+09800008
+19897e00
+67e0816b
+09800008
+19897e00
+67e0816c
+1fe27200
+20229fa7
+c5189f93
+09800008
+19897e00
+e7e08005
+c2001f8e
+20201fa7
+18a22400
+20402120
+6a20816c
+1a20a3fc
+24211ffb
+20401fcd
+1a420a00
+d8400000
+6f20816c
+1f20f3fc
+20229fa5
+09800008
+19897e00
+e7e08005
+18408401
+18417c0f
+20429fea
+c2001f9e
+20401ff2
+1a420a00
+47594036
+09800018
+1fef7e00
+1ff17e00
+e7e18005
+78287c00
+20402015
+20231fff
+c5989fb9
+6fe0816c
+203a1fb9
+1fe0fffc
+67e0816c
+20406d80
+6ff08108
+c3039ffb
+1800700c
+65e20273
+20404c9b
+7836fc00
+793f802f
+20406d82
+6fe082bc
+7d3e7e07
+67e082bc
+4759c036
+68488017
+1840a202
+c5169fc5
+1840a201
+204011c2
+7846fc00
+20201165
+c6988000
+20406df4
+1800700c
+20406df9
+20206df8
+7080d500
+7080d601
+6fe0816b
+1fe17e03
+67f080d7
+5800016d
+67f100d1
+67f100d3
+6a20816c
+1a20a3fc
+684ac6a0
+280ffe0f
+20409fe0
+20406c8c
+58000000
+67f100da
+70800a06
+70800a07
+20600000
+18467c00
+20229fe5
+184085ff
+79200427
+20600000
+58ffffff
+1ff07e00
+d840ffff
+98418400
+20600000
+18a22400
+6fe0816c
+1fe0fffc
+98467c00
+20628000
+605900da
+1a420a00
+20600000
+09800020
+1fef7e00
+1fecfe00
+e7e20005
+18a22400
+18007000
+1fe25e00
+605900da
+20600000
+20202005
+20402015
+20400e79
+20201fb9
+20404c9d
+c517a003
+7920002f
+20201fbc
+793f802f
+20202005
+20406d82
+20200e79
+c517200d
+c516a011
+6fe10165
+1fe25200
+1c225000
+20600000
+6fe10169
+1fe25200
+1c20d001
+20600000
+6fe10167
+1fe25200
+1c225000
+20600000
+6fe0816c
+1fe08405
+18498400
+6fe082bc
+c517201c
+c280201e
+c280a01f
+203e2021
+20202024
+20202029
+18430400
+20202029
+18408403
+18438400
+20202026
+18408403
+18498400
+58000028
+98408400
+20202029
+6fe0c1ed
+984f8400
+da204e20
+9a2ffe00
+98460400
+1b627e00
+98463600
+20600000
+20402048
+68488017
+2040117e
+2040119a
+78287c00
+d960157c
+20201f65
+475a4036
+6fe082bd
+20401e9e
+20402048
+6fe082bc
+20401e9e
+68488017
+2040117e
+2040119a
+78287c00
+d960157c
+c5971f65
+d9602134
+20201f65
+20402048
+20200e79
+475ac036
+20401ecc
+20401eda
+20404ca2
+79202a00
+782efc00
+78307c00
+7850fc00
+20401f54
+785d7c00
+c517208a
+c516a09c
+19317e00
+1fecfe00
+1ff1fe00
+08008628
+7823fc00
+7824fc00
+475b4036
+6fe0c1f3
+08008608
+efe08006
+1fe27200
+08008608
+1f267c00
+2022a069
+6ff0800a
+203a2065
+c518a07f
+d8c041f5
+efe08006
+08008608
+c2002066
+78247c00
+08008618
+78447c00
+c5972070
+7843fc00
+58000000
+08008603
+37d38200
+20000064
+784efc00
+785c7c00
+20401165
+20404ca0
+6fe0c1f3
+1fe17e03
+c1818000
+6fe0c39a
+c0012161
+c1828000
+6fe0c1f5
+c002a15c
+20600000
+1f20f3fc
+1f220400
+20406d6d
+d8c041f5
+efe08006
+08008608
+c2002083
+20406d72
+1de27e00
+08008620
+20202069
+df20000a
+5800003c
+08008608
+c200208b
+784efc00
+783c7c00
+19317e00
+1ff17e00
+1ff1fe00
+08008620
+c516a099
+58000001
+08008605
+783d7c00
+20202058
+58000000
+08008605
+20202058
+6fe0c1ed
+1fe37200
+20000002
+c200209e
+19317e00
+1fecfe00
+1ff18400
+18427e00
+08008608
+18427e00
+08008628
+20202058
+da6020ac
+da4020c0
+d8e00005
+20202101
+1a208c04
+e8420006
+1a208c37
+efe08006
+1a208a2b
+e7e08005
+efe10006
+1febfe00
+98409600
+1a208a04
+19627e00
+e7e20005
+efe10006
+1febfe00
+1a208a02
+e7e10005
+efe20006
+1a208a2c
+e7e20005
+2020223e
+efe08011
+793ffe03
+e7e08011
+6fe102b5
+67e14392
+62210970
+70095b44
+2040789f
+6a210970
+20600000
+da600000
+da4020ce
+d8e00006
+20202101
+1a208c37
+efe28006
+1a208a30
+e7e28005
+20201f30
+da600000
+da4020d7
+d8e00007
+20202101
+1a208c37
+efe08006
+204020e4
+e7e08005
+1a208c38
+efe08006
+204020f2
+e7e08005
+62210970
+70095b42
+2040789f
+6a210970
+20600000
+205a20ec
+1a208a35
+24748000
+6848c442
+284ffe07
+7920fe07
+1a208a36
+20600000
+1a208c35
+efe08006
+24748000
+1a208c36
+efe08006
+20600000
+205a20fb
+6848c442
+284ffe07
+7920fe07
+1a208a36
+24748000
+793ffe07
+1a208a35
+20600000
+1a208c36
+efe08006
+24748000
+1a208c35
+efe08006
+20600000
+efe08011
+afec0000
+20608000
+1a208c1a
+e8410006
+1a208c20
+efe10006
+98467e00
+c000a10d
+2022a10f
+24212114
+20600000
+1a627e00
+20207e13
+efe08011
+f93ffe00
+e7e08011
+1a427e00
+20207e13
+1a208c1a
+efe10006
+1a208c20
+efe10006
+98467e00
+d840ffff
+98467c00
+2022a10f
+d840f000
+98467c00
+2421210f
+20600000
+6848829e
+6fe0816b
+1fe37e00
+9842fe00
+2feffe02
+7920800f
+20600000
+475bc036
+2040223b
+c6178000
+2040214e
+6fe0816b
+2feffe04
+7920802a
+1fe37e00
+9842fe00
+2feffe02
+7920800f
+c6078000
+6fe0816c
+203a2140
+6fe08287
+c3022140
+684a0273
+6fe246a5
+98467c00
+2022931f
+604a46a5
+6fe2c6a0
+1fe0fe01
+79207e27
+67e2c6a0
+6848829e
+79400402
+6048829e
+6fe0c3be
+c4030000
+475c4037
+6fe0816c
+207a0000
+6fe0816b
+2fe00601
+2020a734
+2fe00602
+2020a722
+20600000
+475cc037
+6848829e
+284c0005
+20608000
+6fe0816b
+1fe3fe00
+9842fe00
+c4018000
+793f8405
+79400403
+6048829e
+28400603
+24608000
+20600000
+6fe08287
+79207e04
+67e08287
+79200031
+20600000
+475d4037
+70439a00
+dfe00000
+67e246a5
+67e2c69b
+79207e27
+67e2c6a0
+6fe08287
+793ffe04
+67e08287
+793f8031
+20600000
+da200001
+6fe0816b
+c3830000
+da200000
+20600000
+18c20a00
+68494444
+18a20c00
+20600000
+475dc037
+6fe0829e
+c3828000
+20402197
+2040236b
+203a21bb
+efe10006
+e8410006
+18422200
+9a267e00
+20402172
+20407e58
+1fe20400
+e8208006
+1a227e00
+98c0fe00
+67e1097b
+204021ab
+204021bd
+2040236b
+efe10006
+1fe22200
+18c22600
+e8410006
+18422400
+9a467e00
+20402172
+20407e58
+9a40fe00
+e7e10013
+9a267c00
+24628000
+20202384
+2040219e
+c6148000
+6fe0c3be
+c30121a9
+2040236e
+203a21a9
+202021a7
+2040236b
+203a21a9
+efe10006
+e8410006
+98462200
+20402172
+18427e00
+9a267c00
+202121a9
+79200029
+20600000
+793f8029
+20600000
+1a227e00
+207a0000
+d8200001
+20600000
+475e4037
+18408401
+2040226d
+18c08dfe
+efe10006
+d8402902
+98467c00
+24628000
+18c08c01
+18c22200
+efe08006
+20600000
+18000400
+18000201
+475ec037
+6048c1f4
+6848829e
+79200405
+18417efc
+9821fe00
+67e0829e
+1fe17e1f
+280ffe29
+7920fe04
+67e0c1f3
+6fe0c1f3
+28200601
+2420a1cd
+6fe0c1f4
+207a0000
+c518a1d3
+6f20c1f4
+6fe1097b
+1fe20c00
+d8a041f5
+20207d60
+20406df4
+20206d54
+d8e00000
+20201516
+d8e00000
+2020151a
+475f4037
+c6078000
+c6178000
+6fe0816b
+1fe17e03
+67e0c3d1
+207a0000
+5800016d
+67e143d6
+475fc037
+6fe0c3d1
+c001a9db
+204021f2
+243421d5
+204021d7
+58000000
+67e143d4
+6fe143d6
+1fe08c02
+47604038
+efe10006
+c00224dd
+c003285c
+c002a81e
+20600000
+6fe0c3d1
+c0012201
+c000a218
+20600000
+20407e62
+d8400004
+9fe67c00
+20628000
+d8400005
+9fe67c00
+20628000
+d8400006
+9fe67c00
+20628000
+20207e64
+6fe143d6
+1fe20c00
+efe10006
+67e143d2
+efe10006
+204021f6
+24740000
+6848816c
+604943d4
+6fe143d2
+1fe0fe04
+98467c00
+2022fe62
+6f20816c
+d8a01000
+6fe143d6
+1fe20c00
+20407d60
+20207e64
+20407e62
+6fe143d4
+247a0000
+20207e64
+20402214
+24740000
+6fe143d4
+d8a01000
+98a0a200
+6848816c
+9840fe00
+67e143d4
+6f20816c
+1a220a00
+6fe143d6
+1fe20c00
+20407d60
+58001000
+67e143d6
+6fe143d2
+1fe0fe04
+684943d4
+98467c00
+2022fe62
+20207e64
+20407cff
+d8a04357
+2020271c
+6fe1446b
+20207e13
+684a02a3
+2040130e
+98461600
+19627e00
+684902b5
+18520400
+18438400
+98467e00
+20600000
+2040130e
+67e202a3
+20600000
+4760c038
+1a208c50
+efe08006
+20401ef4
+1a208c02
+efe10006
+984ffe00
+68490163
+984ffe00
+d84f4240
+9846fc00
+d8400682
+6fe0c1ed
+984f8400
+1a208c2b
+efe08006
+984ffe00
+9840fe00
+67e243ba
+6fe140c9
+20407dfd
+18078400
+9840fe00
+1a208a0e
+e7e10005
+20600000
+47614038
+6fe1099e
+98002400
+6fe109a0
+98002600
+6fe14394
+98000c00
+78347c00
+20600000
+efe10006
+1fe17eff
+207a0000
+9a467c00
+24610000
+9a667c00
+20628000
+2021226b
+18007c01
+20600000
+18007e00
+20600000
+20402270
+2022a27d
+20600000
+4761c038
+6fe14394
+98000c00
+efe10006
+1fe17eff
+207a0000
+98467c00
+20628000
+efe08006
+98c08c00
+efe08006
+98c08c00
+20202273
+efe08006
+98c08c00
+20600000
+47624038
+6fe14394
+98000c00
+efe10006
+1fe17eff
+207a0000
+efe08006
+98c08c00
+18c08dfe
+efe10006
+98467c00
+20628000
+efe08006
+98c08c00
+20202283
+6fe14394
+98000c00
+efe10006
+1fe17eff
+207a0000
+1fe08401
+efe08006
+98c08c00
+efe08006
+98c08c00
+18c20a00
+20202291
+6fe109b4
+2020229f
+4762c038
+6fe14394
+98000c00
+efe10006
+1fe17eff
+203a22aa
+98467c00
+2022a2ab
+efe08006
+98c08c00
+efe08006
+98c08c00
+202022a0
+20207e6a
+efe08006
+67e089ba
+1fe27200
+d8a009bb
+20407d60
+efe08006
+67e089b3
+20407cff
+20207e6c
+47634038
+204022b7
+202022c9
+d8402a00
+20402280
+207a0000
+efe08006
+18c20a00
+6848c2f5
+18427200
+98467c00
+242122c6
+98460400
+d8c042f6
+20407d60
+18427200
+2442a301
+20600000
+1fe27200
+d8c042f6
+20207d60
+da604405
+da2043e6
+204022d6
+58000000
+79347e00
+67e0895c
+da604425
+da204406
+204022d6
+20740000
+6fe0895c
+203a131f
+20600000
+4763c038
+20407e62
+20407d3a
+da400000
+d8a0098f
+204022f0
+6fe0c2f5
+1fe08401
+9a40a200
+1a20a202
+1a267c1f
+242122ee
+e0408005
+d8400009
+e0408005
+98007200
+20407d60
+1a222400
+1a427e00
+67e0898e
+d8c0098e
+5fffffe0
+9a608a00
+20207d18
+20407e64
+202022e8
+efe08011
+207a0000
+1fe0fe01
+e8408006
+18467c09
+2022a2ff
+9a40a400
+1a220c00
+98007200
+20407d60
+18c22200
+1a227e00
+9a667c00
+20610000
+202022f0
+9a20a200
+202022fb
+58000020
+e7e08005
+c2002301
+20600000
+47644039
+7855fc00
+20372309
+2436a317
+204014ad
+6fe140c9
+67e10295
+243694c0
+c50794c0
+6fe0816c
+243a14c0
+6fe0c1f4
+243a14c0
+6fe0c3be
+c28294c0
+6fe08287
+c28294c0
+2020149f
+684940c9
+18430400
+6fe10295
+9840fe00
+67e10295
+202014b8
+d8e00000
+20202335
+d8e00000
+20202339
+d8e00001
+20202335
+d8e00001
+20202339
+d8e00002
+20202335
+d8e00002
+20202339
+d8e00003
+20202335
+d8e00003
+20202339
+d8e00004
+20202335
+d8e00004
+20202339
+d8e00005
+20202335
+d8e00005
+20202339
+6fe0c3be
+f9207e00
+67e0c3be
+20600000
+6fe0c3be
+f93ffe00
+67e0c3be
+20600000
+58112233
+67e1c3bf
+58445566
+e7e18005
+58778899
+e7e18005
+58001122
+e7e18005
+58334455
+e7e18005
+58000066
+e7e08005
+20600000
+59000302
+67e2434e
+58010010
+67e1c352
+70439b01
+20600000
+da200000
+d8200001
+20202361
+d8200003
+20402361
+1a427e00
+e7e08005
+20600000
+18000202
+1a20a204
+20402361
+1a20a3fc
+1a227e00
+e7e10005
+1a427e00
+e7e10005
+20600000
+1a20a205
+2040527c
+1a20a3fb
+1a227e00
+e7e10005
+58000000
+e7e10005
+18227e00
+e7e08005
+20600000
+204052b6
+1fe20c00
+20600000
+6fe144ee
+20600000
+20402373
+1fe20c00
+20600000
+6fe144f1
+20600000
+2040236b
+18c08c05
+20600000
+2040236b
+18c08c09
+20600000
+20402370
+18c08c09
+20600000
+20402370
+18c08c05
+20600000
+202052cc
+202052cf
+202052d2
+202052bb
+67e4444c
+20202397
+184122ff
+2040238b
+184ca200
+20202391
+6220c442
+2a2ffe01
+2040a393
+2a2ffe02
+2040a395
+20600000
+6220c443
+2020238c
+d8e00008
+20202399
+d8e0000b
+20202399
+d8e00005
+20202399
+6fe4443a
+f9207e00
+67e4443a
+20600000
+7002bc01
+7002bd01
+20401eb8
+204023a3
+20402422
+20201ec2
+4764c039
+6fe0c3e0
+c1808000
+d8e00002
+20407d82
+247a0000
+6fe143e1
+684943e3
+98467e00
+d8e00002
+20407d74
+7854fc00
+20402443
+204023c2
+24768000
+47654039
+6fe3016d
+67e30297
+6fe08002
+1fe0fe01
+67e08002
+204023c9
+20748000
+2040246a
+24768000
+6fe08004
+1fe0fe01
+67e08004
+6fe48173
+67e48a01
+20600000
+4765c039
+204024b6
+20401f5a
+6fe08001
+1fe0fe01
+67e08001
+20600000
+47664039
+6fe082e0
+c18d8000
+6fe30297
+684b4369
+98467c00
+24628000
+20400a48
+24628000
+204023da
+20401e12
+4766c039
+7041de00
+7002d700
+7043e000
+7002e000
+20200a30
+47674039
+18007fff
+38080001
+67e282b7
+da200287
+20401f30
+18007204
+d8a002ab
+204059ed
+6fe14376
+67e102b5
+180a7e00
+1fe17e0f
+1fe67c04
+202123e5
+67e082a0
+67e085a8
+4767c039
+684941f1
+60490289
+18422600
+1c40fe07
+9a66fc00
+20407dfd
+18072200
+9a267e00
+9a60fe00
+684941ef
+9840fe00
+67e2028b
+9c462200
+1a20a3fa
+da402205
+6fe0c36f
+7d3a2406
+6fe0c368
+7d3a2407
+1a427e00
+67e141f3
+6fe34378
+e7e30005
+6fe30297
+e7e30005
+6fe202ab
+e7e20005
+180a7e00
+e7e10005
+180a7e00
+e7e08005
+18007e02
+e7e08005
+1a2b7e00
+e7e10005
+1a6b7e00
+e7e10005
+4768403a
+58000000
+e7e10005
+6fe14376
+e7e10005
+6fe282b7
+e7e28005
+6fe082a0
+d84000a0
+9841fe00
+e7e08005
+20402046
+580041f3
+1fe08c12
+efe18006
+67e182af
+20600000
+70001624
+70098e00
+6fe0c425
+207a0000
+d8e00000
+20407d82
+247a0000
+4768c03a
+78287c00
+20402443
+204024b6
+2040244c
+2436a436
+6fe08003
+1fe0fe01
+67e08003
+6fe0816b
+1fe17e0f
+c001a47b
+c002a48d
+4769403a
+6fe0898e
+6848c430
+98467c00
+2422a424
+180a7e00
+d84001ff
+98417e00
+1fe0fefa
+20407d1c
+d8e00000
+6fe14426
+20207d74
+4769c03a
+7854fc00
+588e89be
+1fed7e00
+1fe1fed6
+98001200
+58555555
+67e182af
+202010ab
+476a403a
+6fe0c428
+6848c429
+18520400
+184b8400
+98408400
+6048c1f3
+c000a45d
+6848c3e5
+1840fe06
+67e0c1f4
+6fe34378
+67e341f5
+18427200
+d8c043e6
+20407d60
+20202463
+5800000c
+67e0c1f4
+6fe34378
+67e341f5
+6fe341e0
+e7e30005
+476ac03a
+6fe08000
+1fe0fe01
+67e08000
+db600708
+7856fc00
+20202031
+476b403a
+6fe0c431
+c1808000
+6fe08000
+1fe0fe01
+67e08000
+d8400c03
+6fe0c432
+7d3a0406
+1a227e00
+7d3a0407
+604941f3
+6fe34378
+e7e30005
+6fe30297
+e7e30005
+20202031
+6fe30173
+684b4378
+98467c00
+24628000
+d8400004
+6fe0c429
+7d3a0406
+6048c1f3
+6848c405
+1840fe06
+67e0c1f4
+6fe34378
+67e341f5
+d8c04406
+18427200
+20407d60
+20402046
+20202436
+6fe30173
+684b4378
+98467c00
+24628000
+2040216d
+6220c368
+6fe3016d
+67e30297
+6fe40179
+67e402ab
+68490181
+476bc03a
+184b8400
+6fe10183
+1febfe00
+67e10289
+67e2028b
+98467e00
+1fe0d1fe
+6fe48185
+67e482b3
+476c403b
+6fe0818e
+1fe1041f
+604882a0
+1ff18400
+18430400
+604882d7
+da200287
+2040223e
+da200287
+20401f30
+20401e1e
+20400a48
+24628000
+476cc03b
+2040105c
+2040283b
+70095b14
+2040789f
+20200a30
+476d403b
+6fe08016
+c012a4bc
+c01324c2
+c013a4c8
+202024c8
+6848c430
+284ffe01
+2020a4d3
+284ffe02
+2020a4d8
+202024ce
+6848c430
+284ffe02
+2020a4d8
+284ffe00
+2020a4ce
+202024d3
+6848c430
+284ffe00
+2020a4ce
+284ffe01
+2020a4d3
+202024d8
+70001625
+6fe0898e
+79207e00
+67e0898e
+20600000
+70001626
+6fe0898e
+79207e01
+67e0898e
+20600000
+70001627
+6fe0898e
+79207e02
+67e0898e
+20600000
+efe18006
+67e1c434
+c00124f4
+c001a4fc
+c00224ff
+c0032526
+c0042573
+c00525f1
+c0062620
+c0082636
+c0092679
+c00b269d
+c00c26b0
+c00f26b5
+c02926b9
+20600000
+18002203
+204026de
+58000002
+e7e08005
+6fe1437e
+e7e10005
+20600000
+204024fc
+18002203
+204026de
+58000003
+e7e08005
+6fe1437e
+e7e10005
+20600000
+1fecfe00
+67e14380
+20600000
+2040270d
+20407e62
+20202502
+d9600003
+20402258
+20402261
+203a2524
+24212521
+18c08dfe
+20407cff
+20407cf6
+24342514
+20407ce4
+20407e64
+18002214
+204026de
+20407cf2
+58000005
+e7e08005
+58000001
+e7e08005
+20407cf9
+efe10006
+1fe17eff
+e7e10005
+efe08006
+1fe27200
+20407d6d
+20407cfc
+196097ff
+2022a524
+efe08006
+98c08c00
+20202504
+efe08006
+98c08c00
+2020251e
+203426d2
+20202701
+2040270d
+efe10006
+67e14358
+20407cff
+d8a009a2
+6fe143d2
+1fe0fff9
+2040271e
+20202539
+78547c00
+6849099e
+6fe109a0
+98467c00
+24212536
+18427e00
+c1800000
+78347c00
+7002d801
+202026d3
+2040252f
+20740000
+68494358
+58002800
+98467c00
+2022a540
+202026d2
+70443700
+6849099e
+60490964
+2040229d
+243a26d2
+68490964
+2040229d
+243a2559
+18c22200
+6fe089b3
+1fe27200
+684889a2
+98467c00
+2422a555
+da4009a3
+20407dff
+2022a55c
+6fe109bb
+68494358
+98467c00
+2022a564
+6fe10964
+1fe0fe01
+67e10964
+20202545
+6fe0c437
+c000a564
+202026d2
+6fe109bb
+68494358
+98467c00
+2422a555
+70443701
+68490964
+604909b6
+20202555
+6fe0c437
+c0002555
+70443702
+68490964
+184085ff
+604909b8
+da200005
+204026de
+58000007
+e7e08005
+6fe109b6
+e7e10005
+6fe109b8
+e7e10005
+20600000
+2040270d
+2040271a
+20202576
+6849099e
+60490964
+20402258
+20402270
+18c08dfe
+18c27e00
+67e109b4
+684909a3
+58002a00
+98467c00
+2022a5dd
+58002803
+98467c00
+2422a5c9
+d9600002
+204026e4
+242125a6
+68490964
+2040229b
+243a25a6
+204026e8
+2422a5a4
+243425a8
+78547c00
+da200014
+204026de
+58000009
+e7e08005
+18a26000
+18a08a01
+204025b6
+204026e0
+2040229b
+204025bd
+6fe089ba
+1fe0a205
+e2208030
+1a267c07
+2442fe66
+2042fe68
+20402712
+9a26fc00
+20407dfd
+18079600
+196097ff
+2022a5a6
+204026e0
+20202585
+203426d2
+20202701
+204026f3
+204026e0
+2040229b
+20402667
+243a25a6
+20407cf6
+6fe10964
+1fe0ffff
+e7e10005
+204026fd
+204025bd
+196097ff
+2022a5a6
+202025a4
+6fe10964
+e7e10005
+6fe089b3
+1fe27200
+20407cf9
+20407d60
+20207cfc
+20407cf6
+6fe10964
+e7e10005
+20407cfc
+6fe089ba
+1fe27200
+20407cf6
+20407cf9
+9f260c00
+18c08dff
+20407d60
+20207cfc
+20402280
+203a26d2
+18c22600
+18c08dfb
+efe10006
+67e10964
+da200014
+204026de
+58000009
+e7e08005
+efe08013
+1fe27200
+1fe0fe02
+e7e08005
+6fe10964
+e7e10005
+1a608c01
+20407d60
+20407cfc
+20202701
+d8402a00
+20402280
+207a0000
+18c08dfb
+efe10006
+67e10964
+da200014
+204026de
+58000009
+e7e08005
+6fe0c2f5
+1fe27200
+1fe0fe02
+e7e08005
+6fe10964
+e7e10005
+d8c042f6
+20407d60
+20407cfc
+20202701
+20402697
+68494435
+6fe0c3be
+c281a616
+20402270
+2422a6d2
+2054261c
+20740000
+2040227d
+18c08dfe
+efe10006
+d8402a00
+98467c00
+2022a60c
+efe08006
+1fe67c16
+20212603
+18007e16
+1fe22600
+20407cff
+1a60a201
+204026de
+5800000b
+e7e08005
+1a627200
+20407cf9
+20207d6d
+20407cff
+6fe0c2f5
+1fe0a201
+204026de
+5800000b
+e7e08005
+6fe0c2f5
+1fe27200
+d8c042f6
+20207d6d
+6fe143cf
+98467c00
+2422a5f5
+243425f5
+7002d805
+202026d3
+18c08dfe
+efe10006
+c287261a
+20207e64
+efe10006
+67e109a2
+da200014
+204026de
+5800000d
+e7e08005
+6fe109a2
+98002200
+68494435
+2040226d
+203a26d2
+efe08006
+9a267200
+242126d2
+1f267c16
+20212631
+18007216
+1a227e00
+98c08c00
+20407d60
+20407cfc
+20202701
+2040270d
+2040271a
+20202639
+d9600002
+6849099e
+60490964
+20402270
+18c08dfe
+18c27e00
+67e109b4
+204026e4
+2421266f
+68490964
+2040229b
+243a2672
+204026e8
+2422a665
+19627e00
+c0002672
+2434265b
+78547c00
+da200014
+204026de
+58000011
+e7e08005
+6fe089b3
+1fe0a204
+e2208005
+20407cfc
+1a267c06
+2442fe66
+2042fe68
+20402712
+9a26fc00
+20407dfd
+18079600
+20202661
+20402669
+243a2672
+6fe10964
+1fe0ffff
+67e109b8
+204026f8
+6fe10964
+67e109b6
+204026f3
+196097ff
+204026e0
+20202640
+6fe089ba
+2020266a
+6fe089b3
+2036266d
+1fe0fffe
+20600000
+1fe0fff0
+20600000
+6fe10964
+67e109b8
+20202676
+6fe10964
+1fe0ffff
+67e109b8
+20202676
+203426d2
+204026f8
+20202701
+18c22200
+6fe143d2
+1fe0a5fd
+20402230
+20402697
+68494435
+20402270
+2422a695
+20542691
+20740000
+6fe0c3be
+c302268c
+68494435
+6fe143cf
+98467c00
+2422a68c
+20402697
+2434268c
+2020261a
+18002201
+204026de
+58000013
+e7e08005
+20600000
+18c08dfe
+efe10006
+c287a61a
+20207e64
+7002d801
+202026d3
+20407e64
+6fe0c39b
+c1000000
+6fe0c040
+c3820000
+20207e62
+18c0a202
+6fe143d2
+1fe0a5fb
+20402230
+202026a2
+6fe143d2
+1fe22200
+204026de
+58000017
+e7e08005
+6fe14435
+e7e10005
+6fe143d2
+1fe0f3fb
+6fe143d6
+1fe08c07
+efe10006
+e7e10005
+20207d60
+18002201
+204026de
+58000019
+e7e08005
+20600000
+6fe0c433
+793ffe00
+67e0c433
+20600000
+18c22200
+6fe143d2
+1fe0a5fd
+20202230
+18422600
+1a20a203
+204026de
+1a20a3fd
+5800001b
+e7e08005
+1a620400
+e0410005
+20600000
+6fe0c433
+79207e00
+67e0c433
+18422600
+1a20a203
+204026de
+1a20a3fd
+5800001d
+e7e08005
+1a620400
+e0410005
+20600000
+7002d80a
+18002205
+204026de
+58000001
+e7e08005
+6fe0c434
+e7e08005
+6fe14435
+e7e10005
+6fe082d8
+e7e08005
+20600000
+18002404
+20202358
+68490964
+18408401
+60490964
+20600000
+68490964
+6fe109a0
+98467c00
+20600000
+684889a2
+da2009a3
+6fe089ba
+1fe27200
+98467c00
+24628000
+da4009bb
+20207dff
+6848c357
+da204358
+202026ea
+6fe089b3
+67e08a01
+1fe27200
+20407cf9
+20207d60
+20407cf6
+6fe109b6
+e7e10005
+6fe109b8
+e7e10005
+6fe08a01
+1fe27200
+20407d60
+20207cfc
+20407cf6
+2040237b
+18a27e00
+98c62200
+2040237e
+1a227e00
+e7e10006
+1a20a204
+20402370
+1a227e00
+e7e08006
+20600000
+1fecfe00
+67e1099e
+efe10006
+67e109a0
+20600000
+6fe14380
+1fe0fffe
+6849437e
+184085fe
+20407e58
+d84000f0
+20407e58
+20600000
+20407cff
+d8a009a2
+6fe143d2
+1fe0fffb
+e7e08005
+1fe27200
+20407cf9
+20207d60
+6fe1016f
+c1820000
+6fe0c433
+79207e01
+67e0c433
+6fe18171
+67e1c434
+7920000f
+c009273d
+c0292742
+c00c26b0
+c00124f4
+c00f26b5
+793f800f
+6fe0c433
+793ffe01
+67e0c433
+20600000
+6fe0c433
+c4008000
+7920000f
+2040274c
+20402752
+20542730
+6fe0c434
+c009267d
+20600000
+20402742
+2020273f
+20402752
+24740000
+2020267d
+20402745
+da200174
+20202230
+6fe0816c
+1fe0a5f9
+1fe0fffc
+67e143d4
+6849016d
+604943d2
+20600000
+6a40816c
+6fe143d4
+9a408400
+604943d4
+da20016d
+20202230
+20407e64
+6fe143d4
+684943d2
+98467c00
+24628000
+20207e62
+20407e62
+6fe14438
+207a0000
+da60275d
+202027f8
+68494435
+6fe089b0
+1fe0fe01
+98467c00
+2022a766
+6fe089b1
+98467c00
+2022a76c
+20207e64
+204027ca
+204027cd
+da20099e
+df200012
+d8401127
+202027b3
+6fe089c2
+c000a772
+efe10011
+d84001fe
+98467c00
+2022a77d
+6fe109be
+9a40fe00
+67e109be
+6fe109c0
+1fe20a00
+1a220c00
+1a427200
+20407d60
+18a27e00
+67e109c0
+2020278e
+6fe109b4
+1fe20a00
+1a220c00
+1a427200
+20407d60
+18a27e00
+67e109c0
+624109be
+6a6109b4
+1a608c04
+efe10006
+d8403175
+98467c00
+2042a78c
+2020278e
+7009c201
+20600000
+6fe109be
+6a6109b4
+1a608c02
+e8410006
+18508400
+98467c00
+24610000
+7009c200
+6a6109b4
+1a608c04
+efe10006
+d840214e
+98467c00
+2022a7a0
+d8403175
+98467c00
+2022a7a5
+20600000
+204027cd
+da20099e
+df200002
+d8401327
+202027b3
+6fe109b6
+20207e13
+20407e64
+6a6109b4
+1a608c08
+efe10006
+c1850000
+efe08006
+c1890000
+efe08006
+207a0000
+1fe27200
+18c22600
+20207e62
+20407e66
+6fe109b2
+67e109bc
+1fe20a00
+580000fe
+e7e08005
+58000001
+e7e08005
+1f20b008
+1b10fe00
+e7e10005
+e0410005
+684909b8
+e0410005
+18a22600
+1a220c00
+20567d60
+630109ba
+202027c6
+1850fe00
+1fe0fe01
+1ff0fe00
+243a27cb
+58000100
+67e109b8
+20600000
+5800000a
+67e1099e
+58048084
+1fed7e00
+1fe1fe18
+67e209a0
+58000120
+67e109a4
+58000228
+67e109a6
+5800063a
+67e109a8
+6fe34378
+20407d54
+67e309aa
+20600000
+6fe0c433
+c3800000
+20402382
+247a0000
+6fe14438
+207a0000
+da6027e5
+202027f8
+20403a2e
+6fe109ba
+207a0000
+1840fffd
+684909ba
+20407e58
+1fe22200
+18427e00
+9a267e00
+67e109ba
+684889b0
+204026c6
+6fe109bc
+1fe20c00
+1a227200
+20407d60
+18c27e00
+67e109bc
+20600000
+204027fc
+1a627e00
+20407e13
+20202802
+6fe14438
+207a0000
+1fe20c00
+df200011
+d8a009b0
+20207d60
+6fe14438
+207a0000
+1fe20a00
+df200011
+d8c009b0
+20207d60
+20407e62
+6fe14438
+207a0000
+da60280d
+202027f8
+6fe109ba
+247a0000
+20407e64
+20407e68
+1a40f206
+d8401227
+204027b4
+1a620a00
+5812000a
+e7e18005
+e2408005
+1a220c00
+1a427200
+20407d60
+58000018
+e7e10005
+20600000
+efe08006
+e8408006
+e8410006
+c009a823
+20600000
+efe10006
+67e143d9
+70095b40
+2020789f
+da20000c
+da600012
+2040282f
+58000008
+e7e10005
+6fe44370
+e7e40005
+20600000
+20402837
+da400005
+20402358
+1a627e00
+e7e08005
+6fe0c3d8
+e7e08005
+20600000
+6fe0c3d8
+1fe0fe01
+67e0c3d8
+c1800000
+7043d801
+20600000
+6fe0c39b
+c000284c
+c000a84f
+c0012851
+c040a845
+c0412847
+c041a84a
+20600000
+7043510d
+2020284d
+7043510d
+70434f01
+20600000
+7043510d
+20202852
+70435100
+70434f03
+20600000
+70435105
+2020284d
+70435105
+70434f00
+20600000
+6fe0c6b7
+79207e00
+67e0c6b7
+20600000
+6fe0c6b7
+793ffe00
+67e0c6b7
+20600000
+efe08006
+c000a870
+c001a897
+c00228b8
+c002a8c5
+c003a92d
+c0042919
+c004a929
+c005292d
+c005a92d
+c006292e
+c006a933
+20600000
+18002202
+204029d9
+5800000b
+e7e08005
+6fe0c351
+e7e08005
+20600000
+67e0c347
+efe30006
+e7e30005
+6fe0c39b
+c00028ca
+20402892
+6fe0c6b5
+203a287c
+6fe0c34a
+c301b0c9
+6fe0c39b
+c303b0c9
+70439903
+6fe0c348
+c0002884
+c000a884
+c001a884
+6fe0c39b
+c0012887
+c1418000
+dfe00000
+67e2439c
+20600000
+6fe0c3be
+c2802890
+da20439c
+1a220a00
+df200003
+204059ed
+6fe1439e
+1fe17e07
+67e1439e
+70095b34
+2020789f
+18002207
+204029d9
+6fe3c34e
+e7e38005
+20600000
+70439905
+d8a04325
+20407d1a
+6fe0c39b
+c041a89f
+c00228a2
+c04228a4
+202028a7
+70439602
+70439708
+20600000
+70095b43
+2020789f
+6fe2439c
+203a28a2
+2020289f
+70439906
+6fe0c39b
+c283a8b0
+20406c7d
+18002211
+204029d9
+58000003
+e7e08005
+20206dfe
+d8a04335
+204059ec
+20406aa6
+18002211
+204029d9
+58000003
+e7e08005
+20206ae2
+18c22200
+6fe0c39b
+c283a8cc
+1a220c00
+20406c75
+2022a8e1
+7002d904
+18002202
+204029d9
+58000005
+e7e08005
+6fe082d9
+e7e08005
+18000e0a
+20407d73
+70439900
+70095b30
+2020789f
+7002d905
+202028bf
+d8a00277
+1a220c00
+20407d1a
+6fe0c39b
+c041a8d8
+c04228d8
+20406a30
+204028e6
+6fe0c39b
+c1c10000
+70095b3b
+2020789f
+20406a9b
+d8a009be
+20406ae2
+da2009be
+da404325
+df200010
+20407dff
+2422a8be
+202028e6
+20406c71
+70095b31
+2040789f
+70432401
+70439909
+18002211
+204029d9
+58000004
+e7e08005
+d8c04335
+20207d1a
+18002211
+204029d9
+58000006
+e7e08005
+6fe0c3be
+c280a8f4
+d8c04314
+20207d1a
+d8c043bf
+20207d1a
+d8a043a0
+1800720a
+204059ed
+1800220b
+204029d9
+58000007
+e7e08005
+6fe143a0
+e7e10005
+6fe443a2
+e7e40005
+20600000
+18002211
+204029d9
+58000008
+e7e08005
+58000000
+e7e40005
+e7e40005
+20600000
+18002208
+204029d9
+58000009
+e7e08005
+6fe0c36f
+e7e08005
+6fe34378
+e7e30005
+20600000
+7002d908
+202028bf
+6fe0c353
+6848c353
+98417e00
+20600000
+d8a043aa
+20407d1a
+20402915
+2fec0001
+2020a913
+6fe0c09a
+c1850000
+20402923
+24740000
+202030d7
+20407e64
+6fe0c368
+c1000000
+6fe0c34c
+c4008000
+20207e62
+20402915
+2fec0001
+2020a913
+20600000
+20600000
+d8a00880
+20407d0d
+70439602
+70439701
+20600000
+d8a00930
+20407d1a
+70439706
+70439602
+20600000
+18002241
+204029d9
+5800000c
+e7e08005
+d8c046db
+20207d0d
+20406a47
+18002211
+204029d9
+5800000d
+e7e08005
+20206ae2
+6fe0c399
+c17f8000
+d8400003
+98467c00
+24610000
+d8e0000a
+20407d82
+247a0000
+20202913
+476dc03b
+20402382
+247a0000
+6fe0c399
+c000295a
+c000a960
+c001295a
+c001a962
+c004a966
+c005a976
+c0062978
+c006a97f
+20600000
+6fe0c39a
+c1820000
+70439aff
+704399ff
+70095b3f
+2020789f
+70439902
+20202869
+70439904
+58017700
+d8e0000a
+20207d74
+6fe0c39a
+c0022969
+20600000
+6fe0c39b
+c283a974
+7043990b
+204028ec
+70095b29
+2040789f
+6fe0c09a
+c1850000
+20402923
+20740000
+202030d7
+7043990c
+2020296d
+7043990c
+202028f6
+6fe0c34d
+6848c354
+98417e00
+2fec0001
+2020a981
+7043990d
+20202902
+2040290a
+20202981
+18000e0a
+20407d73
+70439aff
+704399ff
+70095b3e
+2020789f
+476e403b
+6fe0c39b
+c4038000
+6fe0c396
+c1810000
+70439600
+6fe0c397
+c000a9cf
+c00129d6
+c001a9c7
+c00329ac
+c003a9a3
+c0042999
+20600000
+70439600
+70439700
+70439800
+20600000
+6fe0c76c
+1fe20e00
+1fe0fe01
+67e0c76c
+6fe2439c
+afefffff
+58000080
+7920fe00
+67e0c76d
+202029cb
+6fe0c398
+70439800
+c000a9a8
+70439602
+20600000
+70095b31
+2040789f
+70439909
+2020293e
+6fe0887b
+c001a9b0
+70439602
+20600000
+20406a6e
+6fe0c39b
+c041a9b5
+c04229b5
+20402884
+20406a5b
+da2009be
+da400930
+df200010
+20407dff
+2022a9bd
+7002d90b
+202028bf
+20406f19
+2422a9bb
+70432401
+6fe0c39b
+c040a9a8
+c041a9a8
+c04229a8
+70439602
+70439707
+20600000
+6fe0c39b
+c041a9cc
+c04229cc
+70476d00
+202028a7
+70476c00
+c1420000
+20202887
+70439602
+6fe0c6ba
+c001a9d3
+20600000
+70439702
+70087b00
+202075ae
+70439602
+70439703
+20202938
+18002406
+20202358
+6fe0816d
+c00029f2
+c000a9fa
+c0012a02
+c001aa06
+c0022a25
+c002aa2a
+c0032a2e
+c003aa33
+c0042a34
+c004aa35
+c0052a36
+c005aa3a
+c0062a3b
+c006aa3d
+c0092a3e
+c009aa3f
+c00a2a40
+c00aaa42
+c00b2a4d
+c00c2a4e
+6a60816d
+20202a71
+efe48006
+67e482be
+efe10006
+67e102a7
+6fe08287
+79207e05
+67e08287
+20600000
+efe28006
+67e282be
+efe10006
+67e102a7
+6fe08287
+79207e06
+67e08287
+20600000
+58000014
+67e102b5
+67e14392
+20600000
+efe40006
+67e443a2
+efe10006
+67e143a0
+efe40006
+67e44382
+efe20006
+67e246a9
+20402a5e
+476ec03b
+6fe0c399
+c004aa18
+6fe0c3be
+c280aa1b
+6fe0c48d
+245a6065
+6fe0c324
+c0002a20
+70439a01
+20402a6c
+20206c83
+70432401
+d8c043bf
+d8a04314
+20407d1a
+20202a18
+476f403b
+70439a00
+70439900
+70095b41
+2020789f
+efe40006
+67e4438a
+efe20006
+67e246ad
+20206c83
+6fe08287
+79207e04
+67e08287
+20600000
+20748000
+70095b32
+2040789f
+70439a04
+20202a6f
+20600000
+20202a76
+20600000
+70439a02
+20402a7d
+70095b33
+2020789f
+20600000
+20748000
+20202a7f
+20600000
+20202a8b
+20600000
+20402a42
+20202a8f
+efe40006
+67e44444
+6fe14444
+68494450
+20407e58
+67e14444
+6fe14448
+6849444c
+20407e58
+67e14448
+20600000
+20202a95
+efe10006
+67e102be
+efe10006
+67e102a7
+207a0000
+6fe08287
+79207e07
+67e08287
+20600000
+da600013
+da200002
+da400002
+20402353
+1a627e00
+e7e08005
+20600000
+d8a0438a
+18007208
+204059ed
+d8a046ad
+18007204
+204059ed
+da20000d
+da400004
+20402353
+6fe4438a
+e7e40005
+6fe246ad
+e7e20005
+20600000
+70439a05
+da400005
+20202a9f
+da400006
+20202a9f
+da200002
+da400007
+20402353
+e2608005
+20600000
+da200009
+da400009
+20402353
+6fe4443a
+1fe1fe01
+e7e40005
+20600000
+da40000b
+20202a9f
+da200006
+da40000c
+20402353
+6fe2c5f7
+e7e28005
+20600000
+da200002
+da40000d
+20402353
+58000006
+e7e08005
+20600000
+da400013
+20202a9f
+da400014
+20202a90
+da400015
+da200009
+20402353
+6fe4444c
+e7e40005
+20600000
+da200003
+da400017
+20402353
+6fe0c442
+1fe17e07
+e7e08005
+6fe0c443
+1fe17e07
+e7e08005
+20600000
+da200001
+20202353
+476fc03b
+c513acab
+20202ea5
+7844fc00
+7843fc00
+58555555
+98001e00
+6fe0c839
+20201ed1
+4770403c
+6fe0c863
+20401e9e
+6fe2483b
+98001200
+204010ab
+20401165
+6848c839
+20401ed6
+4770c03c
+20402aa4
+c5972ab9
+783cfc00
+2000001e
+20402aa4
+7857fc00
+7826fc00
+7830fc00
+78507c00
+78287c00
+6fe14837
+98003600
+37c18400
+242c2b01
+20404c9c
+c5172ac6
+7846fc00
+7825fc00
+7823fc00
+7824fc00
+20402afe
+67e0c859
+6848c858
+98467c00
+2422ab03
+280ffe2e
+2040aaf3
+20402afe
+67e0c7a3
+c513aad6
+6fe0c7a3
+6848c835
+a8400e00
+2420ab03
+20402afe
+280ffe2e
+2040aaf9
+e7e08005
+1fe97e00
+1fe1721f
+2022aae0
+20402afe
+e7e08005
+c2002add
+c513aae5
+18a22200
+20402afe
+67e0c86c
+1a220a00
+09800018
+1fef7e00
+1ff17e00
+e7e18005
+7845fc00
+280ffe27
+20409238
+20232b03
+20404c9b
+7837fc00
+20401fc0
+c6138000
+6fe0c86c
+20202e7d
+20402afe
+1fe0fffe
+c513aaf7
+1fe0ffff
+67e08964
+20600000
+1fe17e07
+68488964
+18498400
+9841fe00
+20600000
+09800008
+19897e00
+20600000
+280ffe27
+2040ae95
+20401ec2
+784dfc00
+7845fc00
+20200e79
+20401165
+6848c839
+202011d2
+4771403c
+6fe0c864
+20401e9e
+6fe2483b
+98001200
+20402aa4
+20402b07
+79202a00
+782efc00
+78307c00
+7850fc00
+20404ca2
+785d7c00
+c5172b37
+c516ab49
+19317e00
+1fecfe00
+1ff1fe00
+08008628
+c5172b20
+784efc00
+782dfc00
+7823fc00
+7824fc00
+6fe0c836
+98007200
+d8c047e5
+efe08006
+08008608
+c2002b25
+78247c00
+08008618
+78447c00
+c5972b2f
+7843fc00
+58000000
+08008603
+37d38200
+20000064
+785d7c00
+784efc00
+784dfc00
+785c7c00
+20401165
+20204ca0
+df20000a
+5800003c
+08008608
+c2002b38
+784efc00
+783c7c00
+19317e00
+1ff17e00
+1ff1fe00
+08008620
+c516ab46
+58000001
+08008605
+783d7c00
+20202b1d
+58000000
+08008605
+20202b1d
+6fe0c1ed
+1fe37200
+20000002
+c2002b4b
+19317e00
+1fecfe00
+1ff18400
+18427e00
+08008608
+18427e00
+08008628
+20202b1d
+6fe0c864
+c2812b74
+6fe0c834
+1fe0fe03
+67e0c836
+6fe0c858
+67e0c7e5
+6fe0c835
+e7e08005
+6fe0c834
+1fe9fe00
+6848c82a
+18410403
+18438400
+9841fe00
+6848c82b
+9840fe00
+e7e08005
+6fe0c834
+98007200
+d8c047c5
+20407d6d
+c6938000
+6fe08019
+e7e08005
+6fe0c864
+c3810000
+6fe0c836
+1fe0fe01
+67e0c836
+20600000
+6fe0c834
+1fe0fe04
+c593ab78
+1fe0fe01
+67e0c836
+6fe0c858
+67e0c7e5
+6fe0c836
+1fe0fffe
+e7e08005
+6fe0c835
+e7e08005
+58000000
+20202b5f
+6fe0c7a4
+1fe97e00
+67e0c829
+1fe0fe01
+d8c047a4
+98c08c00
+efe18006
+67e1c82c
+6fe0c7a4
+1fe37e00
+1fe17e03
+67e0c832
+20600000
+6848c83a
+20402b93
+6048c83a
+20600000
+20402b97
+18408401
+18410403
+20600000
+6fe0c83b
+1fe17e03
+1fefa204
+5800483f
+9a20fe00
+98408c00
+efe08006
+67e0c839
+20600000
+67e2483b
+da200000
+df200004
+d8c0483b
+efe08006
+9a20a200
+c2002ba4
+1a227e00
+67e14856
+6fe0c856
+6848c857
+9840fe00
+67e0c858
+20600000
+20407e64
+684a484f
+1c427e00
+98467c00
+24412bbd
+1fe22400
+6fe2484f
+6848c853
+98408400
+1a427e00
+98467c00
+24610000
+793ffe1c
+67e2484f
+20207e62
+20628000
+79207e1c
+20600000
+58000000
+67e2484f
+20600000
+da604871
+da402eff
+2020304b
+79200026
+6fe0c88f
+793ffe02
+79207e01
+67e0c88f
+58000000
+67e14875
+6fe1486f
+67e14871
+70486e00
+20402c0a
+70482a00
+6fe0c869
+67e0c839
+6fe0c86a
+67e0c1eb
+6fe24865
+20202ba0
+4771c03c
+6fe0c86d
+c07fac2c
+c000abe0
+c0012be2
+c001abe8
+c0022bee
+20600000
+7047c5ff
+20202bef
+6fe0c85a
+203a2be6
+6fe24896
+20402ba0
+7047c5aa
+20202bef
+7047c555
+6fe0c85a
+203a2bef
+6fe2487f
+67e247c7
+20202bf1
+7047c522
+6fe24896
+67e247c7
+6fe0c835
+1fe17e07
+67e0c7c6
+7047cb00
+70483407
+20402b55
+20402ee1
+242c2c04
+2437ac04
+20402e34
+20402ef6
+4772403c
+6fe0c86d
+c17f8000
+c000ac0f
+c0012c11
+c001ac17
+c0022c1f
+20600000
+20600000
+6fe0c86e
+1fe0fe01
+67e0c86e
+c1b20000
+70486e00
+70486d02
+6fe0c85a
+207a0000
+70486d01
+20600000
+70486d02
+20202edd
+6fe0c85a
+203a2c15
+6fe2480b
+67e2487f
+70486d03
+20202edd
+6fe0c85a
+203a2c1d
+6fe2480b
+684a4896
+98467c00
+24628000
+70486d04
+20202edd
+6fe0c85a
+203a2c25
+6fe2480b
+684a487f
+98467c00
+24628000
+70486dff
+70095b39
+2040789f
+58000000
+67e14871
+6fe2480b
+20402ba0
+6fe0c88f
+793ffe01
+67e0c88f
+20202edd
+7048c901
+7048c800
+20600000
+6fe0c8c8
+c3808000
+79207e01
+67e0c8c8
+58000000
+67e1c86c
+67e24877
+7048c301
+20202bd1
+7048c301
+70483408
+d8c0486f
+d8a047c5
+20207d14
+20402cc4
+20402aaa
+2437acc4
+20402c4e
+24342c4c
+20402cf2
+6fe0c85a
+207a0000
+6fe24877
+207a0000
+20202ba0
+20402cc4
+20202b03
+7048d505
+20407e64
+d8c047a3
+d8a0489b
+20407d14
+6fe0c89d
+c0552c59
+c02aac66
+c0112c83
+c07fae52
+20202cc4
+6fe0c89e
+c000ac5d
+c0012c63
+20600000
+70486c01
+70486f01
+70487080
+6fe340a8
+67e34871
+20207e62
+70486d01
+70486f02
+20202c5f
+6fe0c85a
+203a2c6c
+6fe2489f
+684a40a8
+98467c00
+24628000
+6fe0c89e
+c000ac70
+c0012c7b
+20600000
+6fe0c86c
+c000ac73
+20600000
+70486c02
+6fe0c85a
+203a2c5e
+70486f01
+70487080
+6fe24877
+67e24871
+20207e62
+6fe0c86d
+c000ac7e
+20600000
+70486d02
+6fe0c85a
+203a2c64
+70486f02
+20202c77
+6fe0c85a
+203a2c89
+6fe2489f
+684a4877
+98467c00
+24628000
+6fe0c89e
+c000ac8d
+c0012c97
+20600000
+6fe0c86c
+c0012c90
+20600000
+20402c5e
+6fe0c86e
+1fe1fe01
+67e0c86e
+58000000
+67e1486c
+20600000
+6fe0c86d
+c0802c9a
+20600000
+20402c64
+6fe0c86e
+1fe1fe02
+67e0c86e
+20402c94
+6fe0c09a
+c1820000
+6fe0c8d7
+c12d0000
+7048d75a
+204034f1
+20405e1b
+20205dd9
+79200027
+6fe0c1eb
+67e0c8d6
+20202e88
+6fe14893
+20207e13
+70483400
+6fe0c8c3
+207a0000
+6fe14895
+20207e13
+20402cef
+2437acc4
+20402ce1
+24342cc4
+6fe0c829
+203a2cc4
+1fe0fe02
+98007200
+d8c047a3
+d8a0489b
+20407d6d
+7048c600
+6fe0c8c5
+205a2cfc
+6fe0c89d
+c000acc7
+c0012cd5
+c07fae52
+d8a047a3
+df200042
+20207d34
+20402df0
+6fe0c8bd
+6848c89b
+284ffe03
+7920fe00
+67e0c8bd
+c000acda
+6fe0c8c4
+6848c89b
+284ffe04
+7920fe00
+67e0c8c4
+6fe14897
+20207e13
+6848c89b
+284ffe03
+2020acdf
+6fe14899
+20207e13
+6fe0c09a
+1fe67c0e
+2042b32d
+6fe248a5
+20202e59
+6fe248a5
+20202e5e
+20407e64
+6fe0c832
+6848c833
+98467c00
+2442fe62
+6fe0c832
+67e0c833
+6fe1c82c
+6849c82f
+98467c00
+2442fe62
+6fe1c82c
+67e1c82f
+20600000
+20402cc4
+20402aaa
+24778000
+6fe0c7a3
+67e0c835
+20402b82
+6fe0c7a4
+2feffe00
+2020acfb
+20402cad
+20402b55
+20402b0a
+20202b03
+7048c701
+58000280
+d8e00008
+20207d74
+7048c601
+7048ca00
+704853ff
+20202bc0
+4772c03c
+6fe0c8c6
+207a0000
+20402bae
+24740000
+20402d11
+6fe0c8ca
+1fe0fe01
+1fe17e01
+67e0c8ca
+c0002d16
+c000ad19
+20600000
+6fe0c8d5
+207a0000
+1fe0ffff
+67e0c8d5
+20600000
+6fe0c8d5
+247a0000
+20202d2a
+6fe0c8d5
+247a0000
+20202c30
+6fe0c8c8
+c3800000
+79207e00
+67e0c8c8
+6fe0c8d6
+67e0c1eb
+7048c300
+700bf900
+7048bd01
+70482a00
+6fe240a8
+20402ba0
+20402b8f
+20202cc4
+7048c300
+7048c900
+7048c800
+20600000
+6fe0c8c9
+c1800000
+20402d1c
+20402ddb
+20202cb2
+4773403c
+6fe0c8c9
+c1808000
+20402c33
+20402c41
+6fe0c8c5
+247a0000
+6fe0c86e
+207a0000
+7048c600
+20402d2a
+20402cfc
+20202bc0
+6fe0c8c8
+c3838000
+79207e07
+67e0c8c8
+7048ca00
+7048c301
+58000000
+67e1c888
+67e3c8cd
+20402dcb
+24628000
+6fe0c83a
+67e0c8cc
+6fe0c839
+67e0c8cb
+20600000
+4773c03c
+6fe0c8c9
+c1838000
+20402d40
+20402d74
+20402cef
+2437acc4
+20402dcb
+2042acb4
+7048c900
+6fe0c8c8
+79207e00
+67e0c8c8
+6fe0c8c3
+1fe67c02
+2442adc9
+20402cc4
+20402cfc
+20402dcb
+2022ad6d
+6fe2483b
+684a487f
+98467c00
+2022ad70
+6fe2483b
+684a487b
+98467c00
+2022ad72
+20600000
+6fe0c8cc
+67e0c83a
+20600000
+6fe0c8d2
+20202d6e
+6fe0c8cf
+20202d6e
+6fe0c8ca
+1fe0fe01
+1fe17e03
+67e0c8ca
+c0002d97
+c000adb1
+c0012d7d
+c001adb1
+20600000
+20402c5e
+6fe2487b
+203a2d74
+20402ba0
+6fe0c8d0
+205a2d92
+6fe0c8ce
+67e0c839
+6848c889
+6a21488f
+20402e60
+6048c889
+20402e68
+6048c886
+18467c50
+24610000
+6848c8cf
+20402b93
+6048c8cf
+67e0c8ce
+20600000
+7048d001
+d8400000
+20402b97
+67e0c8ce
+20600000
+20402c64
+6fe2487f
+203a2d74
+20402ba0
+6fe0c8d3
+205a2dac
+6fe0c8d1
+67e0c839
+6848c88a
+6a214891
+20402e60
+6048c88a
+20402e68
+6048c887
+18467c50
+24610000
+6848c8d2
+20402b93
+6048c8d2
+67e0c8d1
+20600000
+7048d301
+d8400000
+20402b97
+67e0c8d1
+20600000
+20402c5e
+6fe240a8
+20402ba0
+6fe0c8cd
+205a2dc5
+6fe0c8cb
+67e0c839
+6848c888
+6a21488d
+20402e60
+6048c888
+20402e68
+6048c885
+18467c50
+24610000
+6848c8cc
+20402b93
+6048c8cc
+67e0c8cb
+20600000
+7048cd01
+6fe0c8cb
+67e0c839
+20600000
+7048c300
+20600000
+6fe2483b
+684a40a8
+98467c00
+20600000
+6fe0c8c3
+c1010000
+6fe0c8c7
+207a0000
+d8e00008
+20407d82
+247a0000
+7048c700
+7048d500
+7048c907
+7048c800
+20202cc4
+6fe0c8bd
+c000ae9c
+6fe0c8c4
+c000adee
+684a48be
+1c427e00
+98467c00
+24412bbd
+1fe22400
+6fe248be
+6848c8c2
+98408400
+1a427e00
+98467c00
+24610000
+793ffe1c
+67e248be
+7048bd01
+20202b8f
+7048c400
+20202b8f
+1c427e00
+67e248be
+20600000
+da604875
+da402eff
+2020304b
+4774403d
+79200026
+6fe0c88f
+793ffe01
+79207e02
+67e0c88f
+6fe0c87a
+203a2e0b
+6fe0c879
+c000ae03
+c0012e03
+c001ae12
+c0022e12
+6fe0c86a
+67e0c1eb
+6848c883
+6048c83a
+6fe2487b
+20402e1b
+6048c883
+20600000
+7041eb02
+6848c884
+6048c83a
+6fe2487f
+20402e1b
+6048c884
+20600000
+7041eb02
+6848c885
+6048c83a
+6fe24896
+20402e1b
+6048c885
+20600000
+6fe2480b
+67e2487f
+20402ba0
+20202b8f
+4774c03d
+20402e37
+20402ee1
+242c2e3e
+2437ae3e
+20402ef6
+6fe0c88f
+793ffe02
+67e0c88f
+58000000
+67e14871
+67e14877
+67e14875
+6fe24865
+684a483b
+98467c00
+2022abc6
+6fe24896
+684a483b
+98467c00
+2042ae19
+70095b3c
+2040789f
+df200004
+d8a047c5
+20207d25
+7047c5ff
+6fe0c835
+67e0c7c6
+6fe24896
+67e247c7
+70483406
+20202b55
+6fe0c87a
+203a2b8f
+6fe14877
+1fe0fe01
+67e14877
+2feffe03
+6fe0c879
+c000ae4a
+c0012e4c
+c001ae4e
+c0022e50
+20202e0b
+2020ae0b
+20202e03
+2020ae12
+20202e03
+2020ae12
+20202e0b
+2020abd1
+20202e12
+6fe0c89e
+c000ae56
+c0012e5b
+20600000
+20407e62
+6fe2489f
+67e24877
+67e2487b
+20600000
+20407e62
+6fe2489f
+67e24877
+67e2487f
+20600000
+1a227e00
+98408a00
+6fe08018
+e7e08005
+18408401
+6fe0c86b
+98410400
+20600000
+6fe0c86b
+1fe0fe01
+67e10987
+1fe27200
+1a220c00
+dfe00000
+e8408006
+9840fe00
+c2002e6e
+68490987
+9846fc00
+20407dfd
+18078400
+c6138000
+18427e00
+c6930000
+2040123f
+1fe20400
+20600000
+6fe14887
+20202e8f
+1fe22200
+6848c886
+6fe14887
+98408a00
+1a227e00
+e7e08005
+18408401
+6fe0c86b
+98410400
+6048c886
+20600000
+6fe1488b
+20402e8f
+6fe1488d
+20402e8f
+6fe1488f
+20402e8f
+6fe14891
+207a0000
+1fe20a00
+6fe0c86b
+1fe0fe01
+1fe27200
+20207d34
+20401238
+207a0000
+6848c884
+6a21488b
+20402e60
+6048c884
+20600000
+6a21488b
+20402e68
+6048c883
+18467c50
+24610000
+20202b8f
+6fe240a8
+67e24896
+20202e7b
+c6930000
+6fe0c88f
+c280abd8
+c2812e1d
+6fe0c8a6
+c000af43
+4775403d
+20402eb9
+24342f1e
+20402ece
+20402f6b
+6fe4489d
+67e4485b
+6fe148ab
+67e148ad
+20402f38
+24740000
+20407ff6
+6fe1c89a
+20201473
+20402ebc
+24740000
+20202b55
+6fe14889
+20407e13
+20342ec2
+6fe3c7c6
+207a0000
+20207e62
+70489400
+1a20fe01
+67e0c834
+20402eca
+67e0c7c5
+1a420c00
+1a227200
+20207d6d
+6fe0c835
+1fe17e07
+67e0c835
+20600000
+70489300
+6961015f
+34730200
+20402ee1
+6fe0c82b
+c000aed7
+242c2eef
+2437aeef
+20402ef6
+20402e34
+20402f9d
+6fe0c82a
+1fe0fe01
+67e0c82a
+20402f11
+58000000
+67e0c890
+67e14891
+20600000
+7857fc00
+20402b0a
+6fe0c82b
+c000ab03
+18002a00
+6fe2483b
+98001200
+204010ab
+68488017
+2040117e
+2040119a
+20402ab3
+2057ab03
+20600000
+6fe14891
+1fe0fe01
+67e14891
+6fe0c892
+c2822eff
+20402f01
+20202ecf
+20402b82
+6fe0c829
+207a0000
+98007200
+d8c047a5
+d8a04809
+20207d6d
+58000000
+67e14891
+70095b3a
+2020789f
+4775c03d
+6fe0c893
+1fe67c0b
+24212f19
+1fe0fe01
+67e0c893
+c0012f0c
+c0032f13
+c0042f0c
+c0062f13
+20600000
+c5172f0f
+67e0c7e6
+20600000
+67e0c7e7
+20600000
+6fe0c835
+c4020000
+6fe0c835
+793ffe04
+67e0c835
+20402f0c
+20402fa1
+20202b8f
+20402f91
+20402fa1
+20202b8f
+6fe1488b
+20207e13
+6fe0c894
+205a2f24
+6fe0c8a6
+c1008000
+20402f1c
+20202f32
+70483501
+70489401
+20402eca
+67e0c7c5
+58000000
+67e3c7c6
+6fe24896
+67e247cd
+7048340c
+6fe0c835
+79207e03
+67e0c835
+20402b55
+20202eae
+20402f38
+24740000
+6fe4485b
+20407db8
+604a4163
+20201403
+4776403d
+78347c00
+204013d1
+6fe1c177
+203a7e64
+6fe0c099
+203a7e64
+6fe0c8a6
+c000fe64
+6fe1488d
+20207e13
+20402bae
+24740000
+20402f58
+6fe148a7
+1fe0fe01
+67e148a7
+684948a9
+98467c00
+2042af4d
+20202eab
+7048a600
+58000000
+67e148a7
+58000064
+67e148a9
+7048a500
+6fe0c854
+67e0c853
+20600000
+6fe0c855
+20202f54
+6fe0c8a5
+1fe0fe01
+67e0c8a5
+c0022f56
+c002af52
+20600000
+7048a601
+58000000
+67e148a7
+20600000
+df200002
+d8c0483b
+20407e62
+5800ffff
+e8410006
+98467c00
+2442fe64
+c2002f66
+20600000
+4776c03d
+6fe1478b
+c3858000
+c3838000
+c3830000
+6a214887
+20402e68
+6048c8af
+58000082
+c5132f76
+58000080
+98467c00
+24212f90
+6fe0c8b1
+1fe67c02
+24212f7e
+6fe0c8b1
+c0002f91
+20600000
+6fe0c8b1
+6848c8b2
+98467c00
+24628000
+7048b100
+6848c8af
+58000077
+c5132f87
+58000075
+98467c00
+24610000
+6fe0c8b0
+c0002f98
+1fe0ffff
+67e0c8b0
+c0002f98
+7041eb00
+20600000
+7048b100
+6fe0c8b0
+c0012f96
+1fe0fe01
+67e0c8b0
+c000af8e
+7041eb02
+20600000
+7041eb04
+20600000
+7048b001
+7048b100
+20600000
+6fe0c8b1
+1fe0fe01
+67e0c8b1
+20600000
+6fe0c8b1
+1fe67c02
+24412fa9
+6fe0c8b1
+c1000000
+1fe0ffff
+67e0c8b1
+20600000
+7048b103
+20600000
+44dbc016
+6fe0c09a
+203a2fab
+c00234d8
+c007b0fe
+c004ca7e
+c0053885
+c007329a
+c006c9b4
+c0064ca7
+c0059b78
+c0029364
+c0043cfd
+20600000
+700a5100
+7000e400
+7000e500
+58000000
+67e28870
+6fe0c09a
+203a2fb9
+c00538b2
+20600000
+204077e6
+204078b5
+20402fcb
+6fe14465
+20207e13
+6fe14463
+20207e13
+6fe14461
+20207e13
+44dc4017
+da204771
+20407e3f
+207a0000
+1fe22600
+20402fd4
+20202ff9
+da600000
+20600000
+c000afe6
+c008302d
+c002b00a
+c0093011
+c0033029
+c002306b
+c0013070
+c009b06b
+c00a3020
+c00ab024
+c001b003
+c005b015
+c006301c
+c00b3031
+c00c2fff
+c0152fef
+c015afed
+20600000
+6fe1478b
+79207e00
+67e1478b
+6fe14480
+793ffe00
+67e14480
+202078f7
+70030c00
+20600000
+6fe0830c
+1fe0fe01
+67e0830c
+1fe67c01
+202130a6
+70030c00
+6fe14480
+79207e09
+67e14480
+202030b0
+6fe14467
+20207e13
+6fe1445b
+20207e13
+6fe1445f
+20207e13
+6fe14480
+79207e01
+67e14480
+202030d9
+6fe1478b
+79207e07
+67e1478b
+6fe14480
+79207e02
+67e14480
+20600000
+6fe1478b
+79207e01
+67e1478b
+6fe14480
+79207e04
+67e14480
+20600000
+6fe1478b
+79207e03
+67e1478b
+20600000
+6fe1478b
+79207e05
+67e1478b
+6fe14480
+79207e03
+67e14480
+20600000
+6fe1478b
+793ffe05
+67e1478b
+20600000
+6fe1478b
+79207e09
+67e1478b
+20600000
+70443300
+6fe1478b
+793ffe09
+67e1478b
+202030df
+6fe1478b
+79207e02
+67e1478b
+20600000
+6fe14480
+79207e00
+67e14480
+20600000
+6fe14480
+79207e08
+67e14480
+202030b0
+44dcc017
+67e0830d
+6fe0830d
+207a0000
+1fe0ffff
+67e0830d
+204077f2
+2040309d
+2040305e
+20403064
+20405c8d
+20405d6b
+6fe1446f
+20407e13
+20203037
+efe08013
+207a0000
+1fe0ffff
+e7e08013
+247a0000
+1a427e00
+20207e13
+efe10013
+207a0000
+1fe0ffff
+e7e10013
+247a0000
+1a427e00
+20207e13
+684944cb
+1840a601
+da403056
+20203044
+204030f5
+c000b059
+202030d1
+58000002
+e7e08013
+1840a408
+efe10012
+20207e13
+da60447b
+da403061
+20203044
+20400a5f
+2022b0d5
+20600000
+da604787
+da403067
+2020304b
+204030b7
+204030cf
+6fe14469
+20207e13
+20403083
+6fe1478b
+793ffe07
+67e1478b
+20600000
+70447b00
+6fe1478b
+c283b075
+2fec0001
+2040afd2
+44dd4017
+6fe1478b
+793ffe00
+793ffe01
+793ffe02
+793ffe03
+793ffe07
+67e1478b
+202030df
+20403080
+202030d1
+58000000
+67e1447e
+20600000
+58000000
+67e14480
+20600000
+6fe14480
+67e1447e
+58000000
+67e14480
+20600000
+6fe14480
+79207e07
+67e1447e
+58000000
+67e14480
+20600000
+6fe0c78b
+2feffe05
+20600000
+6fe0c641
+67e0c47b
+20600000
+d8e00009
+20201516
+d8e00009
+2020151a
+70447c05
+20203097
+da60447c
+da403099
+20203044
+7045f301
+20600000
+7045f300
+20600000
+70095b0a
+202078a8
+70095b1d
+202078a8
+44ddc017
+6fe0c47d
+67e080bd
+70030b01
+70095b03
+202078a8
+70095b1e
+202078a8
+70095b04
+202078a8
+6fe14790
+67e14787
+204030cb
+70095b01
+202078a8
+58000000
+67e14787
+70095b02
+202078a8
+70095b0f
+202078a8
+70095b10
+202078a8
+70095b0e
+202078a8
+70095b0d
+202078a8
+70095b17
+202078a8
+70095b18
+202078a8
+70095b16
+202078a8
+70095b11
+202078a8
+70095b15
+202078a8
+70095b14
+202078a8
+70095b13
+202078a8
+70095b19
+202078a8
+70095b06
+202078a8
+70095b05
+202078a8
+70095b1f
+202078a8
+70095b20
+202078a8
+70095b25
+202078a8
+7920000d
+20600000
+793f800d
+20600000
+204030f5
+c00130eb
+58000001
+e7e08013
+1840a203
+1840a406
+e8408011
+1a60a601
+e0408013
+2020305c
+58000000
+e7e08013
+6fe1478b
+c304b0f1
+20402a57
+204030c9
+684944cb
+1840a202
+1840a404
+202030e7
+684944cb
+1840a600
+efe08013
+20600000
+204030f5
+c08030fc
+202030d1
+1840a40a
+2020305c
+20758000
+5800312d
+67e1445d
+580061b7
+67e1445f
+580031d0
+67e14465
+580031cf
+67e14461
+58003148
+67e14467
+58003185
+67e1446f
+5800312f
+67e1446d
+5800313a
+67e1445b
+580031dc
+67e1446b
+44de4017
+20403275
+2040312b
+20406193
+20403287
+2040781d
+204077e8
+580031e6
+67e1486f
+580031d7
+67e14866
+580031d3
+67e14868
+58003136
+67e1486a
+5800327c
+67e147b2
+5800327e
+67e147b4
+58003283
+67e147bd
+58003280
+67e147bf
+6fe1478b
+c3860000
+202030d1
+7045f707
+20600000
+20403260
+202030d1
+20402382
+247a0000
+da2009d2
+20407984
+24740000
+d8c009d2
+20204c89
+6fe148a0
+67e1489a
+70485c01
+20203269
+6fe0c8a6
+c000b143
+6fe1478b
+c304b143
+6fe0c8a7
+c000b097
+6fe0c809
+243a3097
+20203099
+6fe0c8a4
+6848c8a5
+9841fe00
+c000b097
+20203099
+1a627e00
+c016b0f9
+c00830e1
+c00a31ba
+c00ab1c3
+c0203150
+c022315a
+20600000
+20403156
+6fe143d9
+c000b160
+70489302
+7048983c
+20600000
+6fe08287
+c3828000
+704a5f01
+20600000
+6fe0ca5f
+207a0000
+704a5f00
+6fe102c3
+203a3175
+20600000
+6fe14374
+203a3173
+70489301
+684948bd
+6fe14370
+9840fe00
+67e14370
+1fe22200
+6fe14372
+9840fe00
+67e14372
+9a20fe00
+1fe30400
+6fe148c9
+9846fc00
+20407dfa
+67e14374
+70489901
+20600000
+70489303
+20600000
+70417a00
+70489900
+6fe102c1
+684948c7
+98467c00
+79212200
+6fe148c9
+684902c1
+98467e00
+79212201
+2a200603
+20608000
+6fe448c7
+67e44370
+70489901
+20600000
+20403052
+20403194
+20403199
+204031b0
+204031a5
+2040319f
+2040318d
+202031b4
+da604a60
+da403190
+20203044
+20403289
+20403289
+20403289
+20203294
+da6048a2
+da403197
+20203044
+7048a300
+20600000
+da60489c
+da40319c
+2020304b
+da6047c8
+da4047a7
+2020326b
+da604898
+da4031a2
+20203044
+6fe14374
+67e0c17a
+20600000
+da604899
+da4031a8
+20203044
+6fe08287
+2fe0c000
+2420b1ae
+70489301
+204030dd
+20202827
+70489901
+20600000
+da60489a
+da4031b3
+2020304b
+202030e1
+da604896
+da4031b7
+2020304b
+6fe148b0
+67e14896
+20203289
+6fe148b0
+67e14896
+58000000
+67e1489c
+67e1489a
+20403237
+20403260
+70417a00
+202030bf
+58000000
+67e24896
+67e1c893
+67e143d9
+7048a901
+6fe148a0
+67e1489a
+20407968
+6fe0c862
+c1000000
+20403269
+20203249
+202031e3
+6fe0c862
+c1810000
+202031e3
+da6047d6
+2040325c
+da6047cf
+2020325e
+70442500
+da6047e4
+2040325c
+da6047dd
+202031d6
+6fe0c434
+c00931df
+20600000
+6fe14435
+c006b211
+c005b24c
+20600000
+6fe0c85c
+207a0000
+202061c3
+1a227e00
+203a31eb
+18e27e00
+c00031ee
+20600000
+18e27e00
+c00031f6
+20600000
+7048a601
+da604800
+2040325c
+da6047f9
+2040325e
+6fe1478b
+c304b20d
+202031fc
+7048a600
+202031f8
+6fe0c8a3
+c1808000
+7048a205
+20600000
+6fe0c8a3
+1fe0fe01
+67e0c8a3
+c000b202
+c0013206
+20600000
+20403237
+70487a01
+da604875
+2020321f
+7048a300
+70487a02
+da604875
+2040321f
+6fe0c8a7
+c000b22c
+20600000
+6fe148a0
+67e1489a
+20403237
+20203269
+44dec017
+204033ab
+efe08011
+c001b217
+c003b21b
+20600000
+6fe0c8a7
+c000322c
+c000b237
+20600000
+efe08012
+c000b23f
+c0003244
+20600000
+44df4017
+6fe0c894
+2feffe00
+24608000
+1a608c06
+efe10006
+1ff0fe00
+1fe0f205
+1a608c03
+2040339f
+e7e08006
+1a622200
+2020796d
+6fe0c862
+207a0000
+7048a701
+da6047f2
+2040325c
+da6047eb
+2040325e
+70488904
+70488c01
+da604884
+2020321f
+6fe0c8a7
+207a0000
+7048a700
+20403260
+70488904
+70488c00
+da604884
+2020321f
+7048a801
+70488907
+70488c01
+da604884
+2020321f
+7048a800
+70488907
+70488c00
+da604884
+2020321f
+6fe0c8a8
+207a0000
+2020322c
+efe10011
+67e14894
+2feffe00
+24608000
+6fe0c8a9
+207a0000
+7048a900
+6fe448bf
+67e44370
+704a6003
+70488907
+7048991e
+6fe0c8a8
+67e0c88c
+da604884
+2020321f
+da200001
+2020325f
+da200000
+20203266
+da200000
+2040782e
+da200001
+2040782e
+6fe148aa
+20206236
+20407819
+df200007
+2020783b
+da6047c1
+da4047a3
+20403270
+2040325e
+6fe1489e
+67e1489c
+202030c1
+efe10012
+67e1415c
+efe10006
+67e14426
+20600000
+da200000
+204061f1
+6fe348aa
+67e3095c
+20406218
+6fe148aa
+20206236
+7048a401
+20600000
+7048a400
+20600000
+7048a500
+6fe148aa
+20206236
+7048a501
+6fe348aa
+67e3095c
+20206218
+7044a300
+2020612c
+2040612e
+20406147
+67e148b9
+da2048b3
+20406173
+67e0c8b2
+58000065
+c0003299
+1fe67c64
+24213297
+67e0c88c
+70488905
+da604884
+2020321f
+70488c64
+20203294
+202030e1
+20758000
+58003492
+67e14893
+58002c3c
+67e14895
+580034c4
+67e14897
+58003315
+67e1445d
+58003317
+67e1445f
+580030d1
+67e14469
+58003319
+67e14465
+5800333a
+67e14467
+58003097
+67e1445b
+580033a5
+67e1446b
+58003364
+67e1446f
+44dfc017
+204032fb
+20403327
+20407968
+70417a02
+704c4600
+6fe0ca08
+67e0c8d7
+c00032c4
+6fe0ca09
+67e0c78f
+70442500
+204077e8
+204077f2
+704a3001
+6fe1478b
+c3860000
+202030d1
+202032e2
+704a3002
+70442501
+58000020
+20404c85
+d8a042fd
+6fe0c378
+1fe104f0
+18518400
+204032dc
+e0408005
+1fe1040f
+204032dc
+e0408005
+204022b7
+6848c2f5
+18427200
+d8a043e8
+d8c042f6
+20407d6d
+6848c2f5
+18427200
+d8a04408
+d8c042f6
+20207d6d
+18467c09
+202132e0
+18408437
+20600000
+18408430
+20600000
+6fe0c9fd
+c0ffb2f4
+6fe0c9fb
+c0ffb2f7
+6fe0ca06
+c0ffb2f9
+6fe0c969
+1fe27200
+5800496a
+1fe22200
+1a220c00
+efe08006
+18c22200
+c07fb2f2
+1fe20400
+204060b8
+c20032ec
+20600000
+6fe449fd
+67e4496c
+202032e4
+67e0c96a
+202032e6
+67e0c96b
+202032e8
+2040348e
+da200000
+204061f1
+204032e2
+2040332f
+20403313
+20203302
+6fe0cc33
+1fe27200
+58004c34
+1fe22200
+1a220c00
+efe08006
+18c22200
+c07fb30d
+1fe20400
+67e0cc38
+2040330f
+c2003306
+20600000
+6fe0cc38
+c17f8000
+98000400
+202060b8
+704a0c64
+2020612c
+204060ec
+202061b7
+202061b7
+202061c3
+20403331
+2040331c
+20203318
+6fe1478b
+c3848000
+6fe0cc46
+c000b321
+20600000
+6fe0ca27
+c1008000
+704a2701
+2040332b
+2040332d
+20203344
+6fe14c4b
+67e14c4d
+704c4f00
+20600000
+58000000
+20203328
+da200000
+2020782e
+da200000
+20207833
+6fe1478b
+c4048000
+20402382
+247a0000
+da204955
+20407984
+24740000
+d8c04955
+20204c89
+1a627e00
+c016b0f9
+c00830e1
+c00a3340
+c00ab34a
+20600000
+2040332b
+2040332d
+793f8027
+20203346
+6fe14a28
+67e14a2a
+704a0b14
+70409900
+204030bf
+202030dd
+79200027
+20403327
+20403442
+20403436
+58000000
+67e2c9d9
+58000004
+20406236
+58000005
+20406236
+58000014
+20406236
+58000015
+20406236
+58000016
+20406236
+58000007
+20406236
+20407968
+70499b0a
+70499d0a
+70499f0a
+70417a02
+58000020
+20404c85
+202030c1
+204033e3
+204033e6
+204033e9
+20403052
+2040337a
+20403374
+2040336c
+2020336f
+da604c47
+da400000
+20203044
+da604c4d
+da403372
+2020304b
+704c4f01
+20600000
+da604a2a
+da403377
+2020304b
+704a2702
+704c4600
+2020334e
+6fe0ca05
+207a0000
+da604a0b
+da40337f
+20203044
+6fe0ca0a
+67e0ca0b
+6fe0ca0e
+247a0000
+2040612e
+20406147
+67e14a25
+da204a1f
+20406173
+6848ca0c
+98467c00
+2021338d
+67e0ca0c
+1fe20400
+6048ca0d
+6fe0ca07
+98467c00
+20413398
+6048ca18
+df200006
+d8c04a13
+2040339f
+67e0ca19
+da204a10
+2020796d
+6fe0ca0f
+247a0000
+704a0f01
+da200001
+20207833
+da200001
+2020782e
+da200000
+efe08006
+9a20a200
+c20033a0
+1a217eff
+20600000
+6fe0c434
+c00933a8
+20600000
+6fe14435
+c00a33bf
+20600000
+44e04018
+efe28011
+67e289de
+6fe109de
+d8406b5a
+98467c00
+24628000
+6fe109e1
+1ff0fe00
+67e109e1
+1fe27200
+1a20a205
+1a220c00
+d8a009e3
+20407d6d
+efe08006
+67e089ed
+da2009e0
+da4009e3
+20600000
+58000000
+67e2c98f
+67e2c994
+204033ab
+1a420c00
+d8a0498f
+df20000a
+20407d6d
+44e0c018
+efe08011
+c00133f2
+c001b407
+c002340e
+c002b40e
+c003347e
+c003b47f
+c0043482
+20600000
+204033bf
+6fe089e0
+c00233d6
+c002b3d6
+20600000
+6fe0c98f
+245a33dd
+6fe0c991
+245a33df
+6fe0c993
+245a33e1
+20600000
+704c3005
+20600000
+704c3105
+20600000
+704c3205
+20600000
+da604c30
+da4033ec
+20203044
+da604c31
+da4033ee
+20203044
+da604c32
+da4033f0
+20203044
+70498f00
+2020340e
+70499100
+2020340e
+70499300
+2020340e
+6fe0c98f
+67e0c99a
+6fe0c990
+67e0c99c
+20203418
+6fe0c98f
+67e0c99c
+20203426
+6fe0c99b
+204033ff
+6fe0c990
+67e0c99a
+20203424
+c0013403
+c001b405
+67e0c99b
+20600000
+70499b05
+20600000
+70499b0a
+20600000
+6fe0c98f
+204033ff
+6fe0c99b
+20403472
+20403475
+70095d00
+2020622a
+6fe0ca2d
+247a0000
+6fe3498f
+67e3499a
+6fe0c99b
+6848c99d
+98417e00
+6848c99f
+98417e00
+205a342a
+44e14018
+6fe1478b
+2feffe09
+2440b327
+20403424
+20403426
+2020341f
+6fe0c99a
+6848c99c
+9840fe00
+243a7939
+20207937
+d8c0499a
+2020342c
+d8c0499c
+20203431
+d8c0499e
+2020344e
+704a0e00
+20600000
+efe08006
+c0003436
+c000b43a
+c001343e
+20600000
+efe08006
+c0003442
+c0013446
+c000b44a
+20600000
+6848cc34
+204060b4
+6848cc35
+202060b4
+6848cc34
+204060b8
+6848cc35
+202060b4
+6848cc34
+204060b4
+6848cc35
+202060b8
+6848cc36
+204060b4
+6848cc37
+202060b4
+6848cc36
+204060b8
+6848cc37
+202060b4
+6848cc36
+204060b4
+6848cc37
+202060b8
+44e1c018
+efe08006
+c000345b
+c000b454
+c0013456
+20600000
+7049b800
+20203457
+7049b801
+efe08006
+67e0c9ba
+efe40012
+20203460
+efe08012
+20406236
+1a40a401
+efe08012
+20206236
+67e449bb
+704a0e01
+6fe0c9b8
+c000346e
+6fe0c9bc
+67e0c9bd
+6fe0c9bb
+20406236
+6fe0c9ba
+20403472
+67e0c9c2
+6fe349bd
+67e3095c
+20206218
+6fe0c9bb
+67e0c9bd
+6fe0c9bc
+20203467
+1feffe05
+1fe0fe32
+20600000
+d8402ee0
+984ffe00
+1fe6fc64
+20407dfd
+18078400
+18422200
+58002ee0
+98462400
+20600000
+20600000
+6fe4498f
+67e449d9
+20600000
+6fe0c9f6
+67e0c9ec
+6fe0c9f7
+67e0c9ed
+6fe0c9f8
+67e0c9ee
+df20000d
+d8c049e7
+2040339f
+67e0c9f4
+da2049e4
+2020796d
+58000000
+67e4486f
+20402ca7
+20202d00
+20403496
+2040349e
+204034ad
+202034cb
+20402d04
+6fe0c8c9
+c1808000
+6fe0cc47
+243a2d2a
+6fe0ca27
+c0012d2a
+20600000
+6fe0c8c9
+c1800000
+20402d2e
+2037b4ab
+6fe0cc4f
+207a0000
+6fe0cc50
+1fe0fe01
+67e0cc50
+c00234ab
+20402b8f
+20402cb2
+2437b4a2
+704c5000
+20600000
+6fe0c8c9
+c1808000
+20402c33
+204034c1
+20402c41
+6fe0c86e
+243a34ba
+20402dcf
+6fe0c8c7
+207a0000
+58000000
+67e2487b
+20600000
+7048c600
+da200000
+2040782e
+20402d2a
+20402bc0
+6fe240a8
+20202ba0
+6fe2487b
+207a0000
+20202ba0
+6fe1478b
+c3848000
+6fe14a28
+67e14a2a
+704c4601
+da20489e
+202033d1
+6fe0cc4f
+207a0000
+204034d3
+24740000
+6fe1c85b
+20407db8
+604a4163
+20201403
+78347c00
+204013d1
+6fe1c177
+203a7e64
+20203317
+20405e09
+6fe0c8f7
+2feffe01
+2440de0c
+20405e27
+204034ef
+20402ca7
+580034ea
+67e14893
+58003597
+67e14897
+580035a8
+67e14899
+5800358b
+67e14895
+580034f5
+67e10b45
+202079bc
+6fe0c8c5
+c000357c
+c000b513
+c007b50f
+20600000
+204034f1
+20205e29
+da2048d7
+da400000
+d8400001
+20600000
+6fe0c8f7
+2feffe02
+2420b4f9
+7048d75a
+20407a04
+204034fc
+20203505
+6fe08b48
+207a0000
+6fe0c8d7
+c02d3503
+6fe20b49
+67e20aa0
+20600000
+6fe20b4d
+20203501
+6fe0c8d7
+c02d350b
+580099a4
+67e10a93
+700ac41a
+20600000
+580099bf
+67e10a93
+700ac43f
+20600000
+20402d2a
+20403583
+20403545
+20203510
+20402d2a
+20403583
+20402d33
+20403545
+20203514
+2040351b
+2040352a
+20203539
+6fe0c8f6
+207a0000
+d8e0000b
+20407d82
+247a0000
+7048f600
+58000001
+67e08bff
+58000000
+e7e38005
+700bf820
+6fe08bf9
+79207e02
+67e08bf9
+20600000
+6fe0c8f4
+207a0000
+d8e0000e
+20407d82
+247a0000
+7048f400
+d8a00c0f
+df200002
+20407d25
+700c0f00
+700bf710
+6fe08bf9
+79207e01
+67e08bf9
+20600000
+6fe0c8f5
+207a0000
+d8e0000c
+20407d82
+247a0000
+7048f500
+d8a00c1f
+df200002
+20407d25
+700c1f03
+700bf821
+20203526
+44e24018
+204079b0
+6fe08be3
+207a0000
+700be300
+6fe10be1
+d84002ba
+98467c00
+24628000
+6fe08b61
+c1dd0000
+6fe08b62
+c0503559
+c050b55f
+c053356b
+c053b56d
+c054b573
+c0583578
+700be400
+20600000
+6fe08b63
+c040b55c
+20203557
+20402c30
+700be401
+20600000
+6fe08b63
+c000b564
+c0423567
+c053b569
+20203557
+6fe0c86e
+67e08ba2
+2020355d
+20402d2b
+20203564
+700ba2a1
+2020355d
+700ba215
+2020355d
+6fe0c8c9
+c0003571
+c000b569
+20600000
+700ba2a0
+2020355d
+700ba200
+700ba300
+700ba401
+700ba507
+2020355d
+20402dc9
+6fe08b63
+c07fddd9
+20600000
+20402d00
+20402d04
+20403583
+20402d33
+20402d50
+20403545
+2020357d
+44e2c018
+6fe0c8c9
+c1800000
+20402d2e
+20403518
+6fe0c8c5
+247a0000
+20202dcf
+6fe0c8c3
+c000ac3c
+c001b58f
+20600000
+6fe0c7a5
+c000ac3c
+c07fac3c
+700be500
+70483401
+6fe0c8d4
+67e0c7c5
+20600000
+58000001
+67e08bff
+6fe3c89e
+e7e38005
+6fe0c89e
+245a35a0
+6fe0c89e
+205a35a4
+20203525
+7048f601
+58000180
+d8e0000b
+20207d74
+7048f600
+58000000
+d8e0000b
+20207d74
+6fe0c89e
+c00035ad
+c00135e0
+c001b5c8
+20202cc4
+6fe0c8a0
+67e0c8c3
+7048a000
+d8a00c0f
+d8c0489f
+df200008
+20407d6d
+6fe40c0f
+245a35c0
+6fe40c0f
+205a35c4
+6fe40c0f
+67e448d8
+684c48e0
+98467c00
+2442b534
+6fe448d8
+67e448e0
+20202cc4
+7048f401
+58000180
+d8e0000e
+20207d74
+7048f400
+58000000
+d8e0000e
+20207d74
+d8a00c1f
+d8c0489e
+df200003
+20407d6d
+6fe10c20
+245a35d8
+6fe10c20
+205a35dc
+6fe18c1f
+67e1c8e8
+6849c8eb
+98467c00
+2442b543
+6fe1c8e8
+67e1c8eb
+20202cc4
+7048f501
+58000180
+d8e0000c
+20207d74
+7048f500
+58000000
+d8e0000c
+20207d74
+d8a00c2f
+d8c0489e
+df200002
+20407d6d
+6fe10c2f
+245a35f0
+6fe10c2f
+205a35f4
+6fe10c2f
+67e148ee
+684948f1
+98467c00
+2442b5f8
+6fe148ee
+67e148f1
+20202cc4
+7048f501
+58000180
+d8e0000c
+20207d74
+7048f500
+58000000
+d8e0000c
+20207d74
+700bf822
+20203526
+d9000002
+2040367a
+70483300
+5800481e
+6848c833
+98408c00
+efe08006
+1fe17e0f
+2040363a
+6fe0c833
+1fe0fe01
+67e0c833
+6fe0c832
+1fe0ffff
+67e0c832
+243a35fd
+20600000
+6fe0c814
+6848c819
+98467c00
+2422b61d
+6fe0c815
+6848c81a
+98467c00
+2422b61d
+6fe0c816
+6848c81b
+98467c00
+2422b61d
+6fe0c813
+c1150000
+5800002a
+2040363c
+7048132a
+20600000
+6fe0c819
+2040363c
+6fe0c81a
+2040363a
+204036c0
+6fe0c81b
+2040363a
+204036c0
+6fe0c81c
+2040363a
+6fe2c819
+67e2c814
+70481300
+20600000
+2fe1fe2a
+2440b63e
+1fe22600
+6fe0c803
+1fe22200
+6fe0c804
+1fe22400
+1a20a201
+1a26fc60
+20407dfd
+18070400
+18427e00
+aa41fe00
+2020b643
+20203656
+70481d01
+2020362b
+70481d00
+2020362b
+70481300
+70481400
+70481500
+70481600
+20600000
+6fe0c803
+da2047a3
+9a20a200
+1a627e00
+e7e08011
+20403663
+6fe0c803
+1fe0fe01
+1fe6fc60
+20407dfd
+18070400
+6048c803
+6fe0c804
+1fe0fe01
+1fe6fc60
+20407dfd
+18070400
+6048c804
+20600000
+6fe0c803
+da2047a3
+9a20a200
+1a627e00
+e7e08011
+20403663
+6fe0c803
+1fe0fe01
+1fe6fc60
+20407dfd
+18070400
+6048c803
+20600000
+6fe0c803
+1fe6fc08
+20407dfd
+1807fe00
+18070400
+da604805
+9a60a600
+efe08013
+1fe22200
+6fe0c81d
+205a3672
+245a3676
+1a227e00
+e7e08013
+20600000
+18420e00
+78547c00
+f9342200
+20600000
+18420e00
+78347c00
+f9342200
+20600000
+da60481e
+20403697
+204037e0
+2040369f
+78547c00
+efe08012
+1fe17e1f
+20343683
+203a3686
+1fe17e0f
+20403694
+78347c00
+1a40a401
+c200367f
+1a627e00
+d8c0481e
+98c67e00
+67e0c832
+1fe27200
+d8a0481e
+d840002e
+efe08005
+1fe08430
+e0408005
+c200368e
+20600000
+e7e08013
+1a60a601
+20600000
+19027e00
+c000b69b
+c001369d
+20600000
+efe08011
+20600000
+efe10011
+20600000
+19027e00
+c000b6a3
+c00136a6
+20600000
+df200003
+da40002e
+20600000
+df200005
+da40002c
+20600000
+58000062
+2040363c
+da204ab1
+204035fa
+204036c0
+6fe0cab3
+2040363a
+204036c0
+6fe0cab4
+2020363a
+204036a9
+58000066
+2040363c
+6fe14aae
+203a36bc
+280ffe02
+2020b6be
+58000000
+2020363a
+58000002
+2020363a
+58000001
+2020363a
+5800002d
+2020363c
+58000073
+2020363c
+da404880
+202036c9
+da4048d4
+204036c9
+da404898
+efe40012
+c17f8000
+1fe126ff
+204036d0
+1a60fe02
+9a40a400
+202036c9
+1fe122ff
+1fecfe00
+67e382e2
+580002e2
+204036d8
+204036e9
+6848c878
+202060b4
+67f1008a
+6848c878
+204060b8
+6848c879
+204060b8
+58000001
+67f10088
+204036e9
+6848c879
+204060b4
+1a227e00
+203a36d6
+67f10088
+6ff1008a
+1fe0fe01
+67f1008a
+20600000
+70800602
+20205c80
+70483700
+70483600
+df200020
+d8a009f6
+20407d25
+5800139e
+d8a01395
+98a67200
+20407d34
+58004ab9
+d840001f
+9840fe00
+67e1139c
+58001395
+d8a0138e
+98a67200
+20207d34
+6fe0c836
+c000b703
+20403730
+6fe11398
+207a0000
+204037ab
+20205c80
+70483600
+20403730
+6f209398
+d8a009f6
+d8c00af7
+20407d6d
+6fe1139a
+6848c835
+98467e00
+67e1139a
+6fe11398
+98467e00
+67e11398
+6f209398
+580009f6
+98408c00
+d8a00af7
+20407d6d
+202037ab
+20403730
+580009f6
+68489395
+98408a00
+6f209398
+d8c00af7
+20407d6d
+6fe09395
+203a372d
+70483701
+6fe1139a
+1fe0ffc2
+67e1139a
+67e11398
+d8c009f6
+d8a04838
+df20003e
+20407d6d
+6f209398
+d8c00a34
+d8a00af7
+20407d6d
+202037ab
+6fe09398
+67e09395
+20600000
+58000000
+67e1938e
+20403767
+6fe09390
+c0103745
+20403787
+6fe09392
+203a3745
+c283b74b
+70139601
+68491393
+6fe1139c
+98467c00
+24213748
+6a209391
+2040376c
+6fe09390
+1fe67c1f
+20213735
+70139600
+70139700
+6fe1138e
+67e11398
+20600000
+6fe09391
+67e09397
+20203745
+70139602
+68491393
+6fe1139c
+98467c00
+2421375b
+6fe09391
+98408400
+6fe1139c
+98460400
+2421375e
+6a209391
+2040377a
+6fe09390
+1fe67c1f
+20213735
+20203743
+6fe09391
+67e09397
+20203745
+18460400
+184085ff
+60489397
+6fe09391
+98467e00
+67e09391
+6a209391
+2040377a
+20203745
+6fe09397
+207a0000
+6fe09396
+c0013776
+6a209397
+1a227200
+20403796
+20403792
+efe08006
+e7e08005
+c200376e
+2040378e
+1a220400
+204037a3
+2020379f
+6fe09397
+1fe67c20
+24213782
+6a209397
+1a227200
+20403796
+20403792
+20407d6d
+1a220400
+2040379b
+204037a3
+2020379f
+6fe09397
+1fe0ffe0
+67e09397
+da200020
+2020377a
+20403792
+efe08006
+67e09392
+1fe17e7f
+67e09391
+18c27e00
+67e11393
+6fe09390
+1fe0fe01
+67e09390
+20600000
+58004ab9
+68489390
+98408c00
+20600000
+58000af6
+1fe0fe01
+6849138e
+98408a00
+20600000
+6fe09390
+9840fe00
+67e09390
+20600000
+6fe1139a
+9840fe00
+67e1139a
+20600000
+6fe1138e
+9840fe00
+67e1138e
+20600000
+700af624
+c6838000
+700af626
+20600000
+58000af6
+67e14aaa
+6fe14aac
+205a36c4
+204037a7
+68491398
+18422200
+6fe14aac
+1fe22400
+9840fe00
+67e14aac
+68494896
+98467e00
+242137d6
+c503b7cd
+67e11398
+6fe14896
+9a462200
+6fe11398
+203a37d1
+204037d3
+20405c80
+6fe11398
+6848c835
+98467e00
+67e11398
+1fe27200
+58000af7
+6848c835
+9840fe00
+9a208c00
+d8a00af7
+20407d6d
+202037ab
+1a227e00
+6848c835
+98462200
+202037d3
+70483601
+202037d3
+c503b7dd
+204037da
+79200007
+6fe14aaa
+204036d8
+70800602
+20600000
+58000000
+67e14aac
+20600000
+204037d4
+704ab007
+20600000
+67e4095c
+18007e20
+18007208
+d8a00029
+e7e08005
+c20037e4
+d8a00029
+18a08a07
+6fe4095c
+1fe6fc0a
+20407dfd
+18077e00
+1fe1fe30
+e7e08005
+18a08bfe
+1807fe00
+207a0000
+202037e9
+efe08011
+984ffe00
+9a40a400
+18408401
+1a20a3ff
+58004a94
+9a267c00
+2422b7f2
+1a46fc2f
+20407dfd
+18077e00
+20203694
+d8c04a64
+98c08c00
+e9008006
+d8e00007
+2040382f
+a90fffff
+20403809
+18e08fff
+20213802
+2040382f
+2fcffe00
+58000100
+99609600
+58000000
+2020b80e
+5fffffff
+67e202e3
+7002e224
+da200004
+202036d3
+da200020
+204036d3
+1a40a5e0
+20213812
+20600000
+d9000002
+da204ada
+2040367a
+6fe1481f
+67e14820
+70481f2e
+70483204
+2020382c
+6fe0cadc
+1fe67e5f
+24417e6c
+67e0cadd
+d9000001
+da204add
+2020382b
+6fe0cad9
+20203820
+d9000001
+da204834
+2020382b
+2040367a
+6f20c832
+de00481e
+20203840
+19617eff
+67e0c88a
+6fe1487e
+196c8400
+98467e00
+67e1488d
+da404888
+202036c9
+5800002e
+2020384d
+5800002c
+2040384d
+58000300
+99609600
+20600000
+58000020
+2020384d
+efe08030
+2040384d
+1e00e001
+c2003840
+20600000
+1fe1020f
+1ff1fe00
+20403849
+18227e00
+1fe0fe30
+1fe67c39
+2021384d
+1fe0fe27
+d9000003
+c010386b
+c0173869
+c0163867
+d9000008
+c0203865
+c01f3863
+c012b85f
+d9000006
+c01d386f
+c016b871
+c0153861
+c011b86d
+1fe67c39
+20213874
+1fe0ff9f
+d9000008
+20203875
+5800002d
+20203875
+5800002c
+20203875
+5800002b
+20203875
+5800002a
+20203875
+58000029
+20203875
+58000028
+20203875
+58000027
+20203875
+58000026
+20203875
+58000025
+20203875
+58000024
+d9000005
+20203875
+1fe0ffea
+1fe9fe00
+d84048f4
+9840de00
+2040382f
+efe0802f
+1fe47e00
+67e082e3
+7002e224
+da200001
+204036d3
+58000100
+99609600
+1de0de01
+190091ff
+2422b878
+20600000
+20758000
+204022b4
+2040612c
+580038d0
+67e14465
+580038bd
+67e14463
+580038d4
+67e14467
+580038b9
+67e1445b
+58003a0e
+67e1446d
+58003c13
+67e14659
+58003cbe
+67e1446b
+58003cd5
+67e1446f
+58003c9d
+67e147d4
+204038cd
+44e34018
+204038a0
+204038b4
+20401551
+20203c29
+6ff08060
+793ffe00
+67f08060
+6fe447b3
+20405efb
+6fe147bb
+20405f0f
+20405f22
+70808008
+70808149
+70807a0a
+70807b0b
+d8400081
+6fe147c2
+2feffe00
+79208404
+60588060
+20600000
+204038cd
+202038a0
+6848c7a7
+204060b8
+20403937
+6848c7a5
+2020609f
+6848c7a5
+204060a8
+2420b099
+20203097
+204038bf
+20203ce6
+6fe0c78b
+c30238cd
+58003eff
+684a47ca
+98408400
+1c427e00
+98467c00
+24610000
+6fe1478b
+c282b8cd
+6fe147c2
+c3850000
+20403ce9
+204030d5
+1c427e00
+67e247ca
+20600000
+20403ce6
+204052cc
+247a0000
+2020393c
+1a627e00
+c000b924
+c00138f3
+c0023927
+c002b914
+c00438fa
+c004b901
+c005391a
+c005b906
+c0063912
+c009b927
+c00a3920
+c00ab916
+c010b91b
+c011b91c
+c012391f
+c0183c71
+c018bc73
+c0193c81
+c019bc7f
+c01a3c6b
+c01abc54
+c01b3c69
+c01bbc75
+c01c3c77
+c01dbc54
+c01ebc4b
+c020b929
+c021392b
+c021bc69
+20600000
+204038cd
+6fe0c76e
+245a3c75
+20403927
+6fe1478b
+c4020000
+20203901
+6fe1478b
+79207e04
+67e1478b
+6fe0c7b0
+67e0c17a
+20403937
+20203bfe
+6fe1478b
+c4020000
+793ffe04
+67e1478b
+20203c02
+204038cd
+6fe14042
+1fe37e00
+68494455
+98467c00
+2422b90d
+202030dd
+6fe147c2
+c3848000
+6ff10112
+245a3ced
+202030d3
+20403ceb
+202030df
+204038cd
+2020392e
+20402327
+7047c400
+20403927
+20203c04
+202030a4
+20203ceb
+6fe147c2
+c304b0d5
+20203cef
+20203cef
+2040392e
+6fe0c7b1
+67e0c17a
+20203c00
+70476a00
+20403ceb
+20203cef
+204039a5
+2020392c
+20402a85
+20202869
+20203c97
+6848c7a7
+202060b8
+20403930
+20203937
+6fe0c7aa
+2feffe00
+2040b0b7
+6fe0c7aa
+2feffe01
+2040b0bf
+20600000
+6848c7a7
+202060b4
+6fe0c655
+c1000000
+2020650a
+6ff0810b
+c2813939
+20405f42
+efe08003
+c080b952
+6ff10112
+1fe67c02
+20610000
+efe08003
+67e089cf
+e8408003
+18622200
+604889d0
+18408403
+6ff10112
+98460400
+24610000
+7009d101
+20403960
+6fe089d1
+c1000000
+2020395b
+20407d20
+20403c5a
+20203955
+44e3c018
+20405f42
+6ff10112
+207a0000
+98608600
+2020395f
+20405f42
+18608602
+efe08003
+98608600
+20205f4e
+44e44019
+6fe089cf
+c0003993
+c000b998
+c001399d
+c001b9b2
+c00239bc
+c002b9c0
+c004b9e2
+c005ba36
+c0063a37
+c006ba5b
+c0073a5e
+c007ba66
+c0083a6e
+c008ba72
+c0093a76
+c00aba7a
+c0133a7f
+c0143a84
+c014ba94
+c0153a9d
+c015bad0
+c0163ad6
+c0183add
+c018bae7
+c0193af8
+c019bb03
+c01a3b30
+c01abb33
+c01b3b3c
+c01bbb45
+c01c3b48
+c0203b50
+c0213b5a
+c0243b5f
+c024bb6a
+c028bb70
+c030bb74
+c03b3b83
+c03bbb89
+c03c3b8e
+c03d3bc4
+c0483bd2
+c048bbd7
+c0493bdb
+c049bbe0
+c04a3be4
+c04abbea
+c07fbbf6
+20203bf8
+6fe089d0
+c0833bf8
+efe30003
+67e340a8
+20203bfb
+6fe089d0
+c0833bf8
+efe30003
+67e34378
+20203bfb
+6fe089d0
+c080bbf8
+e8408003
+6048c7b2
+20403bfb
+6fe1478b
+c3848000
+c3800000
+6fe0c7aa
+2feffe00
+2420b9ab
+6848c7b2
+18417e03
+67e0c09b
+6fe0c7aa
+2feffe01
+24608000
+6848c7b2
+284ffe02
+2020b0c1
+202030bf
+6fe089d0
+1fe67c43
+24213bf8
+67e0c5fc
+df200008
+20407d25
+6f2089d0
+d8a045fd
+20405f84
+20203bfb
+dfe0001f
+d8a042f5
+20403b36
+202022b4
+6fe0c78b
+c3023bf8
+20403091
+2020b9d0
+7009d100
+204038cd
+6fe0c652
+207a0000
+6fe1465d
+243a39ce
+6fe089d0
+67e1465d
+67e1465b
+6061465b
+204039d2
+2020652f
+7009d100
+20203ccf
+204039d8
+6fe1465d
+684947a8
+98467e00
+67e1465d
+20600000
+6fe1465d
+68494656
+20407e58
+68494648
+20407e58
+67e147a8
+20600000
+7009d101
+7009cf05
+20203bfb
+6fe1478b
+c304bbf8
+20403a33
+20343bf8
+7009d100
+6fe147c2
+c2843a07
+6fe0c7c4
+247a0000
+7009d101
+efe10003
+67e147c5
+606147c7
+6fe089d0
+1fe0fffe
+24213bf8
+2022bbf8
+67e0c7c4
+684947c5
+184085ff
+20402270
+203a3a0a
+e8420006
+59280302
+98467c00
+2422ba0a
+efe08006
+67e0c7c9
+1fe17e30
+203a3a0a
+7009d100
+20402325
+20403a0e
+20403a0e
+20403a0e
+6fe147c2
+c4040000
+7009d101
+20403cf3
+20203bfb
+7047c400
+7009d101
+20403cf3
+20203bf8
+6fe0c7c4
+207a0000
+20402382
+247a0000
+20403a2e
+44e4c019
+6fe0c433
+c3800000
+1840fffd
+d84000fb
+20407e58
+6848c7c4
+20407e58
+1fe22200
+18427e00
+9a267e00
+67e0c7c4
+20403a29
+6fe147c7
+1fe20600
+1a227200
+20405f84
+18627e00
+67e147c7
+6fe0c7c4
+247a0000
+20203cf1
+684947c5
+6fe0c7c9
+c282a6c6
+c28226bd
+20600000
+d8400017
+6fe147c2
+c3808000
+68494380
+20600000
+6fe147c2
+c2812697
+20207e64
+20203c2d
+efe08003
+c040ba44
+c0413a46
+c041ba48
+1fe22200
+20406ee8
+20407571
+1a227e00
+c0003a4a
+c000ba4d
+c0013a57
+c001ba59
+20203bf8
+20406ee4
+20203a4d
+20406ee4
+20203a57
+20406ee4
+20203a59
+20406eef
+70476300
+20203bfb
+58000003
+67e0c76b
+67e0c764
+58000000
+67e0c765
+58000004
+67e0c766
+20405769
+70476301
+20203bfb
+58000002
+20203a4e
+58000001
+20203a4e
+dfe00010
+d8a04792
+20203b36
+efe08003
+6848c7c2
+7d3a0400
+6048c7c2
+68588060
+7d3a0404
+60588060
+20203bfb
+6f2089d0
+20407dc6
+20405f17
+67e147bb
+20403bfb
+20407e15
+6fe147bb
+20205f0f
+da200002
+da4047a3
+d8400000
+20203c06
+6fe1478b
+c3003bf8
+20403bfb
+202030b0
+6fe1478b
+c304bbf8
+20403bfb
+202030c9
+6fe089d0
+c081bbf8
+efe18003
+67e1c0b2
+20203bfb
+6f2089d0
+6fe1448b
+1fe20a00
+20405f84
+20203bfb
+6fe1478b
+c284bb5f
+c3003bf8
+efe08003
+6848c76a
+793a0400
+79200407
+6048c76a
+20403bfb
+6fe0c76a
+c2833a90
+20600000
+c2805641
+70476a00
+70095b21
+202078a8
+6fe0c78b
+c4020000
+6fe0c655
+c1000000
+efe08003
+6848c653
+98408400
+6048c653
+20600000
+df200040
+d8a043e5
+20407d34
+58000000
+67e08974
+1a220600
+18627e00
+67e10978
+20403acb
+6fe08974
+68488964
+18408401
+9840fe00
+67e08974
+1fe67c1f
+24213ab7
+6848c3e5
+580043e6
+9840fe00
+67e1097d
+68488964
+18408401
+6fe0c3e5
+9840fe00
+67e0c3e5
+20203ac0
+6848c405
+58004406
+9840fe00
+67e1097d
+68488964
+18408401
+6fe0c405
+9840fe00
+67e0c405
+6fe1097d
+1fe20a00
+6fe10978
+1fe20600
+18427200
+20405f84
+6fe089d0
+68488974
+98467c00
+2422baa3
+20203bfb
+efe08003
+67e08964
+efe08003
+67e08970
+20600000
+d8400000
+da200002
+6fe147bf
+67e1098e
+da40098e
+20203c06
+6fe089d0
+c080bbf8
+efe08003
+67e0c7bd
+58000000
+67e147bf
+20203bfb
+6fe089d0
+c0823bf8
+6fe1478b
+c284bbc4
+efe20003
+67e24793
+70479204
+70476c00
+20403bfb
+202055c1
+6fe089d0
+c081bbf8
+efe08003
+c0003aed
+c000baf3
+20203bf8
+20403bfb
+e8408003
+efe08003
+c00160ce
+7d3a0407
+2020609f
+20403bfb
+e8408003
+efe08003
+203a60b8
+202060b4
+6fe089d0
+c080bbf8
+e8408003
+204060a8
+58000000
+7d20fe00
+da200001
+67e1098e
+da40098e
+d8400000
+20203c06
+efe08003
+1fe20400
+c040bb12
+c0413b16
+c041bb1b
+c0423b1f
+67e0c39b
+20407571
+20402858
+6fe0c39b
+c0003b23
+c000bb26
+c0013b28
+c0023b2a
+20203bf8
+6048c39b
+20402854
+7043510d
+20203b24
+6048c39b
+20402854
+7043510d
+70434f01
+20203bfb
+6048c39b
+20402854
+7043510d
+20203b2e
+6048c39b
+20402854
+7043510d
+20203b2c
+70435100
+70434f03
+20203bfb
+70435101
+20203b24
+70435105
+20203b2e
+70435105
+20203b2c
+70434f02
+20203bfb
+70434f00
+20203bfb
+dfe0001f
+d8a043e5
+20203b36
+dfe0001f
+d8a04405
+20203b36
+6f2089d0
+9f267c00
+24213bf8
+e7208005
+20405f84
+20203bfb
+6fe1478b
+c304bbf8
+6fe089d0
+c0843bf8
+efe40003
+67e44370
+70095b12
+204078a8
+20203bfb
+efe10003
+67e14426
+20203bfb
+6fe0c39b
+203a3bf8
+6fe0c399
+c0803bf8
+6fe0c39a
+c0803bf8
+20407955
+20203bfb
+6fe089d0
+c082bbf8
+efe08003
+67e0c7ab
+efe20003
+67e247ac
+6848c7ab
+204060b8
+20403cbc
+20203bfb
+6fe089d0
+c080bbf8
+efe08003
+67e0c1eb
+20203bfb
+efe08003
+c000bb68
+6fe0c397
+c001bb66
+c0033b66
+c003bb66
+20203bf8
+70439801
+20203bfb
+204028be
+20203bfb
+6fe089d0
+c080bbf8
+20403bfb
+efe08003
+203a579d
+2020579b
+20403bfb
+20407e15
+70801001
+20201321
+6fe089d0
+c0003bf8
+efe08003
+203a3b81
+6fe089d0
+c082bbf8
+efe20003
+d84f4240
+98467c00
+20213bf8
+67e2439c
+2040231d
+20203bfb
+2040231f
+20203bfb
+e8410003
+20402270
+18c08bfe
+58000000
+e7e10005
+20203bfb
+20403b92
+20403bc0
+58000000
+e7e10005
+20203c8e
+efe08003
+20403b96
+20403b9d
+20203c8e
+20403bbd
+58280002
+e7e18005
+20600000
+67e0895c
+20403bbd
+59280302
+e7e20005
+6fe0895c
+e7e18005
+20600000
+2040228f
+efe08003
+1fe1721f
+1fe22200
+2a2ffe07
+7920840f
+2a2ffe06
+7920840e
+e0410005
+1f227e00
+e7e08005
+20405f98
+20403bc0
+58000000
+e7e10005
+184104ff
+184085ff
+20402270
+18c08c04
+efe08006
+c2823bb5
+c282bbb5
+18408401
+20600000
+2040228f
+2a2ffe05
+7920840f
+e0410005
+5a290202
+e7e40005
+184085ff
+20600000
+2040228f
+e0410005
+20600000
+efe08003
+1fe27200
+e7e08005
+20205f98
+6fe0c399
+c082bbf8
+6fe0c39b
+c0023bd0
+c0423bca
+20203bf8
+70439602
+70439708
+20203bcd
+efe20003
+67e2439c
+20203bfb
+20403bcd
+202028a7
+6fe089d0
+c0813bf8
+e8410003
+20402387
+20203bfb
+d8400000
+da200002
+da404075
+20203c06
+6fe089d0
+c0843bf8
+efe40003
+20402385
+20203bfb
+ea208003
+ea410003
+d8400000
+20203c06
+6f2089d0
+1f20f3fe
+efe10003
+1fe20a00
+20405f84
+20203bfb
+6fe1478b
+c304bbf8
+6f2089d0
+d8a00c0a
+20405f84
+6a4089d0
+da200c0a
+20402808
+7009d100
+20740000
+7009d101
+20203bfb
+70409900
+20203bfb
+d8400001
+da200000
+20203c06
+d8400000
+da200000
+20203c06
+7009cf00
+20203c2a
+7009cf02
+20203c2a
+7009cf03
+20203c2a
+7009cf05
+20203c2a
+6fe089cf
+1fe22600
+7009cf06
+58000002
+9a20fe00
+20403ca5
+1a627e00
+e7e08003
+e0408003
+1a227200
+1a420c00
+20405f7e
+20203caf
+204038cd
+7009cf07
+6fe083d2
+207a0000
+20403ca5
+6fe083d2
+1fe27200
+6fe103d4
+1fe20c00
+20405f6a
+20203caf
+7009cf08
+1f20fe02
+20403ca5
+6fe109fa
+e7e10003
+6fe109f8
+1fe20c00
+20405f6a
+18c27e00
+67e109f8
+20203caf
+7009cf09
+58000000
+20403ca5
+20203caf
+7009cf0a
+58000001
+20403ca5
+20403c3e
+6fe1478b
+d8e00002
+afefffff
+79208403
+d8e00009
+afefffff
+79208405
+6fe0c78b
+d8e00004
+afefffff
+79208404
+e0408003
+20203caf
+d8400000
+6fe0c09b
+d8e00000
+afefffff
+79208400
+d8e00001
+afefffff
+79208401
+6fe0c425
+d8e00000
+afefffff
+79208402
+20600000
+7009cf0d
+6fe0c48d
+1feffe22
+1fe27200
+20403ca5
+6fe1448b
+1fe20c00
+20405f6a
+20203caf
+7009cf0e
+58000004
+20403ca5
+6fe2087c
+e7e20003
+20203caf
+7009cf0f
+6ff10112
+d8400040
+20407e58
+1fe22200
+1fe27200
+20405f42
+d8a0098e
+20405f84
+1a227e00
+1a227200
+20403ca5
+d8c0098e
+20405f6a
+20203caf
+7009cf10
+20203c2a
+7009cf11
+58000004
+20403ca5
+6fe2439c
+e7e20003
+20203caf
+da200180
+20203c78
+da200080
+20203c78
+da200101
+20203c78
+da200001
+70476a00
+7009cf14
+58000002
+20403ca5
+1a227e00
+e7e10003
+20203caf
+da600000
+20203c82
+da600001
+7009cf15
+58000001
+20403ca5
+1a627e00
+e7e08003
+20203caf
+7009cf1d
+58000004
+20403ca5
+6fe2087c
+e7e20003
+20203caf
+60490964
+7009cf29
+58000002
+20403ca5
+68490964
+e0410003
+20203caf
+7009cf2b
+20203c2a
+7009cf40
+58000002
+20403ca5
+6fe14075
+e7e10003
+20203caf
+204027a7
+24740000
+7009cf41
+1f227e00
+20403ca5
+1a620c00
+20405f6a
+20203caf
+7009ce02
+67e089d0
+604c0964
+44e54019
+20403cb1
+684c0964
+20405f5a
+6fe189ce
+e7e18003
+20600000
+44e5c019
+20205f5e
+20403cba
+20608000
+20403cb8
+6fe247ac
+1feb7e00
+207a0000
+20207d1c
+6848c7ab
+202060b8
+6848c7ab
+202060c3
+6848c7ab
+202060b4
+622109f8
+624109f6
+6fe14435
+67e109fa
+20403a33
+20740000
+684909f6
+6fe0c7c1
+20407e58
+1fe27200
+18427e00
+9f267e00
+67e109f6
+20403c1e
+6fe109f6
+207a0000
+20203cc4
+6fe147c2
+c3848000
+20403ced
+202030d3
+70417a02
+20600000
+20203cd6
+6fe0c7bd
+207a0000
+6fe0c7be
+207a0000
+1fe0ffff
+67e0c7be
+247a0000
+7047be0a
+2040612e
+20406147
+1fe6fc64
+20407dfa
+18070400
+67e0c7bf
+6048c7c0
+20600000
+20407e2f
+202130a0
+202030a2
+d8e0000a
+20203cf9
+d8e0000a
+20203cf5
+d8e00009
+20203cf9
+d8e00009
+20203cf5
+d8e00008
+20203cf9
+d8e00008
+20203cf5
+6fe147c2
+f93ffe00
+67e147c2
+20600000
+6fe147c2
+f9207e00
+67e147c2
+20600000
+20403d2d
+20405aed
+204041a3
+2040409c
+20405aef
+20758000
+20403db2
+2040473f
+20403d0c
+6fe0c8fd
+c3838000
+6fe1478b
+c2864591
+204046d7
+20203d79
+58004861
+67e14889
+58004895
+67e1488b
+58003e63
+67e1488d
+580043d9
+67e14461
+58004495
+67e14463
+58003e5f
+67e1445f
+5800436d
+67e14467
+5800468b
+67e14465
+58003e4c
+67e1445d
+580043c2
+67e1446b
+580044f3
+67e1446f
+58003f76
+67e14473
+58003e3c
+67e1445b
+5800499b
+67e1446d
+5800499e
+67e14477
+580049b1
+67e14471
+20600000
+20758000
+20402ea2
+20403f2d
+20403d3a
+20403e8d
+20402321
+2040234a
+2040233d
+20402329
+6fe44b50
+c289c675
+c2894636
+20600000
+58009468
+67e1465f
+58009732
+67e14394
+58002580
+67e1c0b2
+70417b03
+70415e08
+704b4300
+704b4300
+704b4400
+58000200
+67e1415c
+70437e17
+70438017
+58000a77
+67e14488
+38000306
+38044440
+38090000
+380c4408
+67e4c661
+38001224
+38044000
+38080000
+e7e28005
+3803ffff
+3806fe23
+380999d9
+380c020d
+67e440a0
+58004a99
+67e143dc
+58000010
+67e143de
+20404910
+204048ca
+20403ea6
+6fe44b50
+c30dbd66
+7044550c
+58000006
+67e14370
+67e14372
+6fe44b50
+c30c3d6c
+58002fb2
+67e1c89a
+580c0c10
+67e1c853
+6fe0c90b
+67e0ca57
+6fe1c37b
+67e1ca6d
+6fe0c8d8
+67e0c4a3
+58000000
+67e3c8b3
+6fe0c78e
+67e0cb40
+67e0cb41
+204022b4
+202042d3
+44e64019
+6fe44b50
+c297c807
+6fe0c90b
+c00047f3
+20403d8d
+24344324
+44e6c019
+da20490c
+6fe0c90b
+1fe0ffff
+1feffe1d
+9a20a200
+efe08011
+67e0c486
+44e74019
+6fe0c486
+c019bd97
+c01a3da3
+20204591
+44e7c019
+78547c00
+6fe44b50
+c305bd94
+6fe08989
+c3013d94
+78347c00
+6fe0ca54
+67e0ca53
+20600000
+68494b5f
+6fe0ca64
+c07fbd9b
+68494b5c
+604940c1
+6fe341e0
+203a30b2
+70447d17
+6fe0c763
+243a30a8
+70447d04
+202030a8
+704a6b01
+6848cb5e
+6fe0ca64
+c07fbda8
+68494b5a
+60494b1b
+204030df
+6fe1ca73
+67e1c3ea
+20404422
+58000004
+e7e08006
+d8c04406
+20404429
+2020791c
+6fe44b50
+c4068000
+58003db8
+67e10b45
+7048fea5
+20203dea
+20403dbb
+20403dc0
+20203dd0
+7048ff00
+6fe44b50
+c40a8000
+7048ff5a
+20600000
+6fe44b50
+c28ebdc7
+c28f3dca
+c28fbdcd
+7048fc19
+700b4708
+20600000
+7048fc0c
+700b4704
+20600000
+7048fc06
+700b4702
+20600000
+7048fc03
+700b4701
+20600000
+20407a04
+20403dd3
+20203dd8
+6fe08b48
+207a0000
+6fe0c8ff
+c02d3503
+20203500
+6fe0c8ff
+20203506
+6ff08c02
+c303bdde
+c283bde2
+20600000
+6fe0c8fd
+c4038000
+20407e18
+20205dd9
+6fe0c8fd
+c3838000
+204047ef
+2020434f
+6fe44b50
+c4068000
+204079b0
+20203dea
+44e8401a
+68488b58
+204060a8
+2020bdef
+20203df6
+6fe0c8fe
+c1528000
+7048fea5
+700bfa00
+7009f600
+700bec00
+20203d08
+6fe0c8fe
+c12d0000
+7048fe5a
+204047ef
+2040434f
+20404910
+202079bc
+6fe44b50
+c4068000
+20403dda
+6ff08c02
+67e0c8fd
+c4038000
+20403e34
+6fe24a60
+6848c8fc
+98408400
+1c427e00
+98467c00
+24610000
+67e24a60
+20403f87
+24740000
+6ff08c02
+c4038000
+6fe44b50
+c30abe13
+6fe0cb30
+c000be19
+20403525
+58000001
+67e08bff
+6fe3c8b3
+e7e38005
+20600000
+6fe0cb31
+203a3e24
+6fe44b72
+67e4095c
+6fe0cb71
+c001be26
+c0013e2d
+20403533
+6fe4095c
+67e40c0f
+20600000
+6fe44b7b
+20203e1c
+20403526
+700bf821
+58000003
+67e08c1f
+6fe1095c
+e7e10005
+20600000
+20403526
+700bf822
+58000002
+67e08c2f
+6fe0895c
+e7e08005
+20600000
+684a4a60
+1c427e00
+98467c00
+24413e39
+20600000
+58000000
+67e24a60
+20600000
+c5133097
+6fe0ca4f
+203a3097
+6fe0ca98
+c000b097
+6fe144d8
+243a3097
+6fe0c8c4
+243a3097
+20203099
+6fe14b5a
+67e14a67
+20600000
+2040421e
+20403e5c
+202030d1
+44e8c01a
+78347c00
+6ff20138
+79347e1a
+67f2004c
+20401503
+20406e24
+20404910
+2040402c
+20403e5c
+2040466d
+204060ec
+6848c8f1
+20206091
+20404322
+20407ff6
+20403e63
+204060d1
+20203f65
+20403e63
+6fe0809e
+247a0000
+20206091
+44e9401a
+20403f9f
+d840000a
+6fe0c4cd
+245a3f7f
+204060b8
+20405acb
+6848c8e4
+20406081
+6848c8e5
+20406081
+6848c8e6
+20406081
+6848c8e7
+20406081
+6848c8e8
+20406081
+6848c8e9
+20406081
+6848c8eb
+20406081
+6848c8ed
+20406081
+6848c8ee
+20406081
+6848c8ef
+20406081
+6848c8f0
+20406081
+6848c8f1
+20206085
+6fe1478b
+c284be87
+6fe1478b
+c2803e8a
+20600000
+1a227e00
+243a2331
+20202333
+1a227e00
+243a14a9
+202014ab
+6fe0c4a3
+c0003e92
+c000be9a
+c0013ea2
+20203e92
+68494497
+6fe1449d
+98467e00
+1feffe14
+1fe6fc64
+20407dfa
+67e148de
+20600000
+68494495
+6fe1449b
+98467e00
+1feffee6
+1fe6fd90
+20407dfa
+67e148de
+20600000
+6fe14499
+67e148de
+20600000
+20600000
+6fe44b50
+c40a0000
+7048d901
+c3970000
+c3958000
+7048d900
+20600000
+6fe0c8da
+1fe0fe01
+67e0c8da
+6848c8db
+98467c00
+20600000
+6fe44b50
+c40a0000
+20403ea5
+6fe0c8d9
+203a3ec3
+6fe0c8d8
+c0013ebf
+7048d903
+20403ead
+20413ee1
+24413ee5
+20203ec9
+7048d902
+6fe0cb4f
+247a0000
+20203ec9
+6fe0c8d8
+c0813ec7
+6fe0cb4f
+247a0000
+20403ead
+24610000
+7048da00
+2040612c
+2040612e
+20406147
+67e148cc
+da2048c6
+20403ee9
+6fe0c4a7
+c2813f29
+c280bf2b
+c3003ed8
+7048e001
+20203ed6
+d8e00004
+2020471d
+d8e00004
+20404721
+7048dc0c
+6fe0c8e0
+207a0000
+7048e000
+6fe0c8f3
+67e0c902
+2020492d
+6fe0cb4f
+243a3ee5
+7044a302
+20203e8d
+7048da00
+6fe0c8d8
+67e0c4a3
+20203e8d
+44e9c01a
+efe40011
+67e4095c
+6fe0c8d9
+c0003eff
+c0013ef0
+c001bf1e
+6fe44b50
+c3173ef6
+6fe10962
+684948ce
+98467c00
+24213f21
+6fe44b50
+c315beff
+7048e100
+6fe10962
+684948d0
+98467c00
+244146e4
+204146e0
+20203eff
+20403f25
+6fe10962
+6849095e
+98467c00
+2441618b
+2041618f
+68490960
+98467c00
+24416183
+20416187
+6fe10962
+6849095c
+98467c00
+20213f1a
+6849095e
+98467e00
+24213f1c
+203a3f1c
+1fefa264
+6fe1095c
+6849095e
+98460400
+1a227e00
+9846fc00
+20407dfa
+67e0ca93
+20600000
+704a9364
+20600000
+704a9300
+20600000
+6fe0c4a3
+c0013ef0
+20203eff
+6848c4a7
+79200402
+6048c4a7
+20600000
+6848c4a7
+793f8402
+6048c4a7
+20600000
+7048e101
+20600000
+20404910
+20203e49
+6848c4c4
+204060b8
+204079d3
+6848c8e4
+20403f63
+6848c8e5
+20403f63
+6848c8e6
+20403f63
+6848c8e7
+20403f63
+6848c8e8
+20403f63
+6848c8e9
+20403f63
+6848c8eb
+20403f63
+6848c8ec
+20403f63
+6848c8ed
+20403f63
+6848c8ee
+20403f63
+6848c8ef
+20403f63
+6848c8f0
+20403f63
+6848c8f1
+20403f63
+6848c8f2
+20403f63
+6848ca4e
+204060b8
+6848c8f3
+204060b8
+6848c8f4
+204060b8
+6848c8f5
+204060b8
+6848c8f6
+204060b8
+6848c8f7
+204060b8
+6848c8f8
+20203f63
+18467cff
+20628000
+18410e7f
+6ff2011c
+afefffff
+2020bf63
+20203f61
+793f8407
+2020609f
+79200407
+2020609f
+6fe1cb83
+67e1895c
+df200014
+d8400000
+6fe1895c
+2feffe00
+2040e0ce
+6fe1895c
+1fe3fe00
+67e1895c
+18408401
+c2003f69
+20600000
+20403f79
+70448873
+20403f76
+20205ad3
+6fe0c4cd
+c0005c65
+20205d3d
+5800000a
+d8400021
+204060e2
+5800000b
+d8400023
+202060e2
+d840001e
+20600000
+6fe0c4cd
+c000bf85
+d840000b
+202060a2
+d840001f
+202060a2
+44ea401a
+78547c00
+58000000
+67e348b4
+20404222
+20403f95
+20403f9a
+204040fa
+6fe0c8b3
+1fe17e1f
+67e0c8b3
+2434473f
+20404731
+20204582
+6fe0c8c3
+207a0000
+67e0c8b8
+7048c300
+20207e62
+6fe0c8bf
+207a0000
+67e0c8b9
+7048bf00
+20207e62
+20403fac
+20403fe8
+6fe0c8bd
+6848c8bc
+67e0c8bc
+98467c00
+2422b09b
+6fe0c8c1
+6848c8c0
+67e0c8c0
+98467c00
+2422b09b
+20600000
+6fe0c8ef
+c17f8000
+da200000
+6848c8ef
+204060a8
+7920a200
+6848c8f0
+204060a8
+7920a201
+1a227e00
+67e0c8bd
+c000bfbc
+c0013fc0
+6fe0c8be
+c283bfcc
+20600000
+6fe0c8bc
+c0003fc4
+c001bfc6
+20600000
+6fe0c8bc
+c0003fc8
+c001bfca
+20600000
+7048be82
+20600000
+7048be81
+20600000
+7048be80
+20600000
+7048be83
+20600000
+6fe0c8be
+793ffe07
+67e0c8be
+c0003fd4
+c000bfd7
+c0013fda
+c001bfdd
+20600000
+6fe0c8bd
+c001bfe0
+20600000
+6fe0c8bd
+c0003fe0
+20600000
+6fe0c8bd
+c001bfe4
+20600000
+6fe0c8bd
+c0003fe4
+20600000
+6fe0c8bf
+1fe0fe01
+67e0c8bf
+20600000
+6fe0c8bf
+1fe0ffff
+67e0c8bf
+20600000
+6fe0c8ed
+c17f8000
+da200000
+6848c8ed
+204060a8
+7920a200
+6848c8ee
+204060a8
+7920a201
+1a227e00
+67e0c8c1
+c000bff8
+c0013ffc
+6fe0c8c2
+c283c008
+20600000
+6fe0c8c0
+c0004000
+c001c002
+20600000
+6fe0c8c0
+c0004004
+c001c006
+20600000
+7048c282
+20600000
+7048c281
+20600000
+7048c280
+20600000
+7048c283
+20600000
+6fe0c8c2
+793ffe07
+67e0c8c2
+c0004010
+c000c013
+c0014016
+c001c019
+20600000
+6fe0c8c1
+c001c01c
+20600000
+6fe0c8c1
+c000401c
+20600000
+6fe0c8c1
+c001c020
+20600000
+6fe0c8c1
+c0004020
+20600000
+6fe0c8c3
+1fe0fe01
+67e0c8c3
+20600000
+6fe0c8c3
+1fe0ffff
+67e0c8c3
+20600000
+6848c8ed
+20406081
+6848c8ee
+20406081
+6848c8ef
+20406081
+6848c8f0
+20206081
+6848c8ed
+20403f5a
+6848c8ee
+20403f5a
+6848c8ef
+20403f5a
+6848c8f0
+20203f5a
+6fe148b8
+207a0000
+7048c401
+7048c50a
+20600000
+da6048c5
+da40403c
+20203044
+7048c400
+20600000
+6fe44b50
+c297404b
+6fe0c8e9
+c17f8000
+da200000
+704b3b05
+6848c8e9
+2040404e
+67e0cb38
+20404174
+1a227e00
+c282c060
+20204067
+6fe0c8e1
+203a4067
+20204060
+6fe44b50
+c2964056
+6fe0cb3f
+243a4053
+20204058
+7049b000
+704b3800
+20600000
+6fe0cb38
+20204195
+204060a8
+6848c8ea
+2020c056
+6848c8ea
+204060b8
+6848c8e9
+6fe0cb38
+20204195
+6fe0c9b0
+c1008000
+7049b001
+6fe44b50
+c3940000
+c39b0000
+20204077
+6fe0c9b0
+c1000000
+7049b000
+6fe44b50
+c294406e
+c29b406e
+20600000
+6fe0c9b1
+243a4072
+6fe0cb41
+245a4077
+7049b100
+6fe0c78e
+67e0cb41
+67e0cb40
+20600000
+44eac01a
+20404080
+20740000
+6fe0c965
+1fe0fe01
+1fe17e03
+67e0c965
+204040a3
+2020462e
+78547c00
+6fe44b50
+c3960000
+c3970000
+6fe0cb33
+207a0000
+6fe0cb34
+207a0000
+78347c00
+20600000
+6fe44b50
+c294408e
+c29b4095
+20600000
+6fe0c9b0
+c1808000
+da604b41
+da404093
+20203044
+7049b101
+202046ec
+6fe0c9b0
+c1808000
+da604b40
+da40409a
+20203044
+7049b101
+20204513
+202040a6
+6fe44b50
+c38e0000
+6fe0c965
+c1818000
+70496500
+20600000
+44eb401a
+2040409d
+204048e5
+6fe0c8e2
+c002c0dc
+c00240c8
+6fe0c965
+c00040b0
+c000c0ae
+c00140b2
+c001c0b4
+6848c9a4
+202040b6
+6848c9a3
+202040b6
+6848c9a5
+202040b6
+6848c9a6
+202040b6
+6fe0c8e2
+c00340c4
+c003c0c4
+c00140c6
+c004c0c6
+6048c9af
+58000006
+20405af3
+1fe104f8
+6fe0c9af
+9840fe00
+1fed7e00
+1fe0fe06
+20205af1
+184085ff
+202040bb
+18408402
+202040bb
+6fe0c965
+c00040cf
+c000c0cd
+c00140d1
+c001c0d3
+6fe0c9a8
+202040d4
+6fe0c9a7
+202040d4
+6fe0c9a9
+202040d4
+6fe0c9aa
+67e0c9af
+1fed7e00
+1fe22200
+1fe0fe0d
+20405af1
+1a227e00
+1fe0fe0e
+20205af1
+6fe0c965
+c00040e3
+c000c0e1
+c00140e5
+c001c0e7
+6fe0c9ac
+202040e8
+6fe0c9ab
+202040e8
+6fe0c9ad
+202040e8
+6fe0c9ae
+67e0c9af
+20403f81
+6fe0c9af
+1fe0fe80
+1fed7e00
+1fe0fe05
+1fe22200
+5800ba41
+20405ae5
+20000fa0
+5800ff7f
+20405ae5
+1a227e00
+20405ae5
+5800007f
+20405ae5
+5800b541
+20205ae5
+20404136
+2040410b
+20403e82
+20404106
+1a227e00
+6848c8bb
+67e0c8bb
+67e0c8b3
+9842fe00
+1fe67c00
+20628000
+20207e62
+c6930000
+1a227e00
+207a0000
+67e0c8b3
+20207e62
+704b3d00
+704b3e00
+704b3f00
+1fe20400
+2040411b
+2040411e
+20404121
+20404124
+6fe0cb3e
+207a0000
+6fe0cb3d
+207a0000
+704b3f01
+6fe0c8bb
+1fe22200
+20600000
+18417e09
+c004c12c
+20600000
+18417e14
+c00a412c
+20600000
+18417e18
+c00c412a
+20600000
+18417e07
+c001c12a
+c002c12a
+c003412a
+c003c12a
+20600000
+704b3e01
+20600000
+704b3d01
+20600000
+704b3303
+704b3503
+704b3403
+20404136
+704b3300
+704b3500
+704b3400
+20600000
+44ebc01a
+da200000
+20404140
+20404146
+2040414c
+20404152
+20404163
+20404178
+1a227e00
+20600000
+704b3b00
+6848c8e4
+6fe0cb33
+20404195
+67e0cb33
+20600000
+704b3b01
+6848c8e5
+6fe0cb34
+20404195
+67e0cb34
+20600000
+704b3b02
+6848c8e6
+6fe0cb35
+20404195
+67e0cb35
+20600000
+6fe0c8e7
+c17f8000
+704b3b03
+6848c8e7
+204060a8
+2020c15f
+6848c8ea
+204060b8
+6848c8e7
+6fe0cb36
+20404195
+67e0cb36
+20204174
+6848c8ea
+6fe0cb36
+20404195
+2020415d
+6fe0c8e8
+c17f8000
+704b3b04
+6848c8e8
+204060a8
+2020c170
+6848c8ea
+204060b8
+6848c8e8
+6fe0cb37
+20404195
+67e0cb37
+20204174
+6848c8ea
+6fe0cb37
+20404195
+2020416e
+6848c8ea
+204060b4
+6848c8ea
+20203f63
+704b3000
+6fe44b50
+c40a8000
+6fe0c8ec
+c17f8000
+704b3b07
+6848c8ec
+6fe0cb3a
+20404195
+67e0cb3a
+1a227e00
+c283c188
+2040418b
+6fe0cb31
+67e0cb32
+20600000
+704b3101
+2040418e
+20204185
+704b3100
+6fe0cb32
+207a0000
+704b3001
+20600000
+204060a8
+6848cb3b
+18420e00
+2020c1a1
+2020419f
+1fe3fe00
+1fe22400
+204060a8
+7920a400
+1a417e07
+6848cb3b
+18420e00
+c003c1a1
+c000419f
+20600000
+f93fa200
+20600000
+f9202200
+20600000
+44ec401b
+20403f72
+20758000
+2040421a
+204041bf
+204041b8
+c01f41c7
+c01841d6
+c018c20a
+204041af
+20001af4
+202041a7
+6fe0c4cd
+c000c1b2
+202041b5
+5800001e
+20405abf
+20203f79
+5800000a
+20405ab2
+20203f79
+58000001
+20405af3
+67e0c995
+58000000
+20405af3
+67e0c994
+20600000
+6fe0ca4e
+c17f8000
+6848ca4e
+204060b8
+20407d20
+6848ca4e
+204060b4
+20207d20
+7048e205
+5800ba41
+20405ae5
+58000d11
+20405ae5
+5800041b
+20405ae5
+5800041c
+20405ae5
+58000f1d
+20405ae5
+58000032
+20405ae5
+5800b541
+20205ae5
+6fe0c995
+c02d41de
+c06c41e5
+c068c1f4
+c06941fd
+c0014204
+c02a4207
+202041a7
+7048e207
+58008006
+20405af1
+20407d20
+da604a0c
+20404213
+2020409c
+58000016
+20405af3
+1fe67cbd
+2422c1a3
+58000019
+20405af3
+1fe67c55
+2422c1a3
+5800001b
+20405af3
+1fe67c1d
+2422c1a3
+7048e208
+da604a34
+20204213
+7048e200
+da6049c6
+20404213
+da6049d0
+20404213
+58000943
+20405af1
+da6049ea
+20204213
+7048e203
+da6049bc
+20404213
+da6049d0
+20404213
+da6049ea
+20204213
+7048e204
+da6049b2
+20204213
+7048e202
+da604a26
+20204213
+2040421a
+6fe0c995
+c0384211
+c000420f
+202041a7
+7048e201
+20600000
+7048e206
+20600000
+efe10013
+d840ffff
+98467c00
+20628000
+20405af1
+1a60a602
+20204213
+20403f72
+da604a44
+20404213
+2020409c
+204041a3
+20403f72
+58000806
+20205af1
+6fe0c4af
+c1800000
+6fe0c8e2
+c000422e
+c000c22e
+c001422e
+c001c22e
+c0024252
+c002c270
+c003422e
+c00442c8
+2020422e
+204042f7
+78547c00
+6fe0c8f1
+c07fc235
+6848c8f1
+204060a8
+24608000
+58000000
+20405af3
+c0984248
+58000002
+20405af3
+c4038000
+20404310
+6fe0c8b4
+20404308
+67e148b4
+6fe0c8b6
+20404308
+67e148b6
+6fe0c8fb
+c000424a
+c000c24c
+c001424e
+c001c250
+20600000
+c018c238
+202041af
+204042e0
+20204317
+204042e8
+20204317
+204042e4
+20204317
+204042f0
+20204317
+204042f7
+6fe0c8f1
+c07fc258
+6848c8f1
+204060a8
+24608000
+58000000
+20405af3
+c09841af
+58000002
+20405af3
+c4038000
+20404310
+2040426e
+67e0c8ba
+1ff1fe00
+2040430c
+67e0c8b5
+6fe0c8ba
+1fe17e0f
+2040430c
+67e0c8b7
+6fe0c8fb
+c00042e0
+c000c2e8
+c00142e4
+c001c2f0
+20600000
+58000012
+20205af3
+78547c00
+6fe0c8f1
+c07fc276
+6848c8f1
+204060a8
+24608000
+da400002
+2040428f
+c4038000
+da400000
+2040428f
+67e0c994
+c09f41bf
+6fe0c99b
+205a4298
+70499b01
+20404298
+6fe0c8ba
+1ff1fe00
+2040430c
+67e0c8b5
+6fe0c8ba
+1fe17e0f
+2040430c
+67e0c8b7
+6fe0c8fb
+c00042a4
+c000c2a8
+c00142a6
+c001c2aa
+20600000
+20405aed
+20000064
+1a427e00
+20405af3
+1fe22400
+20405aef
+20000064
+1a427e00
+20600000
+20405aed
+20404310
+dfe00005
+20405af3
+67e0c8ba
+dfe00007
+20405af3
+67e0c996
+dfe00008
+20405af3
+67e0c997
+20205aef
+204042e0
+202042ac
+204042e4
+202042ac
+204042e8
+202042ac
+204042f0
+202042ac
+6fe0c998
+c00042bc
+c000c2b0
+20600000
+6fe0c996
+c1800000
+6fe0c997
+1fe67c2d
+20610000
+70499800
+5800ba41
+20405ae5
+58000032
+20405ae5
+5800b541
+20205ae5
+6fe0c996
+c1800000
+6fe0c997
+1fe67c2d
+24610000
+70499801
+5800ba41
+20405ae5
+58008032
+20405ae5
+5800b541
+20205ae5
+204042f7
+78547c00
+58000002
+20405af3
+c4038000
+58000008
+20405af3
+203a423b
+58000000
+67e348b4
+20600000
+6fe0c8f9
+67e0c8fb
+6fe0c8f8
+c17f8000
+6848c8f8
+20403f63
+6848c8f8
+204060a8
+2040c2dd
+20203f61
+6fe0c8fa
+67e0c8fb
+20600000
+6fe148b4
+1fe67e00
+67e148b4
+20207e62
+6fe148b6
+1fe67e00
+67e148b6
+20207e62
+6fe148b6
+1fe67e00
+67e148b6
+6fe148b4
+1fe67e00
+67e148b4
+204042f2
+20207e62
+204042f2
+20207e62
+6fe148b6
+684948b4
+67e148b4
+604948b6
+20600000
+6fe0c99b
+205a4310
+70499b01
+20600000
+704a4f01
+20402325
+20405aed
+204041a3
+20205aef
+6fe0c8f1
+c1ff8000
+6fe0ca51
+c1808000
+58000000
+67e0ca51
+67e248b4
+202042fd
+c4038000
+d840ff00
+9841fe00
+20600000
+c4018000
+d84000f0
+9841fe00
+20600000
+dfe00003
+20405af3
+67e148b4
+dfe00004
+20405af3
+67e148b6
+20600000
+d840000b
+6fe0c4cd
+245a4320
+204060a8
+20608000
+5800000a
+20405af3
+200003e8
+20204317
+d840001f
+20600000
+58008100
+20205af1
+704a64ff
+6fe0cb58
+c280c328
+c280432d
+70448634
+580f0f0f
+67e1c378
+67e1c37b
+20203d88
+70448633
+d8c04947
+20404608
+20203d88
+44ecc01b
+204045fd
+2040434d
+6fe0c90b
+c000c338
+c001433a
+20600000
+6fe3490d
+2020433b
+6fe3492a
+684b4947
+98467c00
+2022c591
+20203d80
+2040434d
+6fe0c5fc
+1fe0fe03
+1fe22200
+20404d9f
+6fe144de
+e7e10005
+580004a1
+e7e10005
+6fe0c5fc
+1fe0fe01
+1fe27200
+d8c045fc
+20207d6d
+704a645a
+20600000
+6fe1478b
+c283c35b
+c284b0c9
+c28030b0
+202045b4
+58000000
+67e14a55
+6fe1478b
+c284b0c9
+6fe1478b
+c28030b0
+20600000
+20404715
+2020795f
+6fe44b50
+c40d8000
+24344365
+6fe0ca50
+1fe0fe01
+1fe17e0f
+67e0ca50
+247a0000
+704a5000
+78547c00
+20600000
+6fe0c8f1
+c1ff8000
+70417a00
+704a521e
+20600000
+44ed401b
+1a627e00
+c00a4389
+c000c434
+c00ac399
+c0014438
+c002c45b
+c008458c
+c009445e
+c003446c
+c0024470
+c009c470
+c00cb0a6
+c015c47b
+c010c481
+c0054488
+c0173094
+c018c3a4
+c014c3a6
+c01943a8
+c01f43b3
+c02043b4
+c013c48a
+c01cc84e
+c01d4830
+c01e4844
+c02243ca
+20600000
+704a5100
+204042fd
+704a6a01
+2040481f
+6fe0ca6b
+243a4390
+704a6c14
+6fe14480
+793ffe00
+67e14480
+58000000
+67e14b1b
+6fe14a94
+67e14a96
+20404582
+202045b4
+704a6a00
+58000006
+6fe44b50
+c28dc39e
+58000007
+67e14370
+67e14372
+704a9800
+704a4f00
+20402327
+20204438
+d8e00002
+202043af
+70095b12
+202078a8
+6fe0ca6b
+c000c3ab
+202043ad
+204043a6
+704b1a14
+d8e00001
+202043af
+6fe0cb19
+f9207e00
+67e0cb19
+20600000
+202030d7
+6fe143d9
+c1000000
+6fe08289
+1feb7e00
+1fe67c0c
+20610000
+58000009
+67e14370
+67e14372
+204043a6
+704a9801
+20600000
+704a9800
+20600000
+6fe0ca6b
+247a0000
+6fe0c435
+1fe67e22
+24628000
+704b1a00
+d8e00000
+202043af
+6fe082c1
+1fe67c0c
+242143be
+6fe082c3
+6848cb2f
+98467c00
+202143d4
+6fe082c3
+67e0c17a
+202043c0
+6fe0cb2f
+67e0c17a
+202043c0
+704b1900
+20600000
+44edc01b
+20402382
+247a0000
+6fe0ca64
+c07fc3e1
+6fe0cb19
+1fe17e03
+c1818000
+6fe0ca4f
+205a42fb
+6fe44b50
+c280c40b
+c280440b
+c282c40b
+c283440b
+20403f87
+2040435d
+24740000
+20404368
+20404300
+20404034
+6fe44b50
+c30ac3f2
+6fe0cb30
+c000c3f3
+2020440d
+6fe0cb31
+203a43fd
+6fe44b72
+67e4095c
+6fe0cb71
+c001c3ff
+c0014402
+704a8a08
+68494a8b
+20204412
+6fe44b7b
+202043f6
+704a8a03
+68494a8d
+20204412
+704a8a02
+68494a8f
+20204412
+da200001
+68494a91
+204026bd
+6fe0ca93
+e7e08005
+20600000
+58000000
+67e3c8b3
+704a8a07
+6fe3c8b3
+67e3895c
+68494355
+20204412
+6fe0ca8a
+1fe22200
+204026bd
+6848ca8a
+18427200
+d8c0095c
+20207d6d
+704a6b00
+6fe1ca70
+67e1c3ea
+20404422
+58000005
+e7e08006
+d8c04a76
+20404429
+2020791c
+da2043e6
+efe08011
+207a0000
+98c0a200
+efe08006
+c1008000
+20204423
+d8a043f1
+df200013
+20407d6d
+202022c9
+5800000c
+67e14455
+6fe44b50
+c38d8000
+5800000e
+67e14455
+20600000
+704a5100
+204042fd
+2040481f
+202045b4
+704b2400
+704b2d00
+2040442d
+20404443
+6fe1447e
+c283c44a
+c2803080
+c280c44e
+c2814451
+c281c451
+20204591
+58000000
+67e448bc
+e7e20005
+70499b00
+70445400
+70432400
+20600000
+204043d7
+6fe1447e
+c2803080
+2020307e
+c282c451
+c281c451
+20204591
+6fe1478b
+c2864591
+20403080
+2040412e
+2040451b
+6fe0cb44
+c000be46
+6fe14a67
+247a0000
+2020307e
+20600000
+704b2c04
+20600000
+70445401
+204030dd
+204030d9
+58000000
+67e14787
+67e0c789
+2040445c
+202030d5
+704b2500
+6fe0c5f5
+2feffe00
+20608000
+704b2501
+20600000
+2020446d
+58000002
+67e0c789
+20600000
+6fe0ca64
+c07fc331
+6fe1478b
+c3860000
+c3830000
+c3858000
+6fe44b50
+c3828000
+c299c591
+c297c81c
+2020307e
+6fe0cb24
+c1810000
+704b2400
+2040442d
+2040445c
+202030d5
+6fe0cb24
+c1010000
+1fe0fe01
+67e0cb24
+70445512
+2040445c
+202030d5
+20405aac
+202030a4
+58000001
+67e30041
+7000e833
+202045cd
+5fffffff
+67e30041
+7000e833
+704a64ff
+204045e2
+70490cff
+2020462e
+44ee401b
+20770000
+6fe0c454
+207a0000
+204052cf
+247a0000
+6fe0ca64
+c07fc33f
+6fe0ca4f
+205a42fb
+6fe44b50
+c280c4cc
+c28044cc
+c282c4cc
+c28344cc
+20403f87
+2040435d
+24740000
+20404368
+20404300
+20404034
+6fe0cb25
+c000c4bb
+6fe0cb2d
+207a0000
+6fe44b50
+c30ac4b2
+6fe0cb30
+c000c4cf
+da200009
+20404d9f
+6fe144de
+e7e10005
+580002a1
+e7e10005
+6fe3c8b3
+e7e38005
+20600000
+6fe0c8b3
+67e0cb26
+6fe0c8b4
+e7e08005
+6fe0c8b6
+e7e08005
+6fe148b8
+e7e10005
+da200007
+20404d9f
+6fe144de
+e7e10005
+580002a1
+e7e10005
+6fe2cb26
+e7e28005
+20600000
+58000000
+67e3c8b3
+202044b2
+6fe0cb31
+203a44f1
+6fe44b72
+67e4095c
+6fe0cb71
+c001c4df
+c00144e8
+da20000a
+20404d9f
+6fe144de
+e7e10005
+580001a1
+e7e10005
+6fe4095c
+e7e40005
+20600000
+da200004
+20404d9f
+6fe144de
+e7e10005
+580003a1
+e7e10005
+6fe1095c
+e7e10005
+20600000
+da200003
+20404d9f
+6fe144de
+e7e10005
+580004a1
+e7e10005
+6fe0895c
+e7e08005
+20600000
+6fe44b7b
+202044d2
+44eec01b
+20403eb3
+20404956
+204047eb
+20402bc3
+20402df3
+204047e4
+204048c2
+204048f1
+2040408a
+2040450b
+2040451b
+2040453e
+20404543
+20404551
+2040455e
+20404554
+20404569
+2040456c
+20404571
+20404574
+20404039
+20404585
+2020457b
+6fe44b50
+c29bc50e
+20600000
+6fe0cb43
+c1808000
+da604b40
+da404513
+20203044
+6fe0c90b
+c1000000
+6fe44b50
+c3830000
+d8e00006
+2040471d
+2040302d
+2020458c
+6fe0c90b
+c0004521
+6fe44b50
+c41a8000
+6848cb6f
+20204524
+6fe44b50
+c4190000
+6848cb70
+6048cb42
+20404136
+1fe17e07
+6848cb42
+98467c00
+2022c530
+6fe0c78e
+67e0cb45
+6fe0cb44
+c1000000
+704b4400
+20600000
+20404535
+6fe0cb44
+c1008000
+704b4401
+2020795f
+da404824
+da604b45
+6fe0c90b
+c0003044
+da404513
+20403044
+6fe0cb45
+c000c719
+20600000
+da604a65
+da404541
+2020304b
+204045b4
+20203e49
+da604b1b
+da404549
+2040304b
+6fe0cb1b
+c000b0bd
+20600000
+6fe0ca64
+c07fc331
+6fe0ca53
+243a4725
+6fe44b50
+c299c591
+c297c81c
+20203e49
+da604b1a
+da4043c8
+20203044
+6fe0ca6a
+207a0000
+da604a6c
+da404559
+20203044
+6fe0ca6b
+247a0000
+6fe0c399
+c1800000
+20202960
+da604a96
+da404561
+20203044
+6fe14a94
+67e14a96
+20204405
+6fe0cb19
+c3810000
+204043a6
+d8e00000
+202043af
+da604789
+da40445e
+20203044
+da604b2c
+da40456f
+20203044
+704b2d01
+20600000
+da604a67
+da403e49
+20203044
+da604a52
+da404577
+20203044
+6fe0cb2f
+67e0c17a
+704a5101
+20600000
+6fe0c8fd
+c3838000
+da604a55
+da404580
+2020304b
+c513794d
+20204354
+6fe14b63
+67e14a55
+20600000
+da604992
+da404588
+20203044
+20404631
+6fe0ca69
+243a46f7
+20600000
+280ffe26
+2040c7ef
+20404354
+204043d7
+20204591
+44ef401b
+2040434d
+6fe1478b
+c285c59d
+6fe44b50
+c304459d
+6849496a
+18408401
+6049496a
+60494379
+180a7e00
+67e0c378
+6fe1ca6d
+67e1c37b
+204030df
+6fe14790
+67e14a65
+7000bd06
+58000000
+67e14a55
+67e14b1b
+67e14a67
+67e0cb4c
+67e0ca4f
+d8e00002
+2040471d
+2040471b
+6fe0cb58
+2feffe01
+2040c419
+6fe0cb58
+2feffe00
+2040f8f2
+2040498a
+202048d0
+44efc01b
+d8e00006
+20404721
+58000000
+67e14a67
+6fe0cb58
+2feffe01
+2040c5c0
+6fe0cb58
+2feffe00
+2040c5c3
+20204914
+58000000
+67e14b1b
+20207922
+58000000
+67e14a65
+202078f7
+44f0401c
+6fe44b50
+c4010000
+204048ca
+d8e00002
+20404721
+204045cf
+204045e2
+2020462e
+6fe080e8
+c01a45d3
+c019c5d6
+20600000
+67e0cb1d
+6fe30297
+202045d8
+67e0cb1d
+6fe30041
+67e34b1e
+6fe3cb1d
+d8c0490c
+df200003
+e8438006
+98467c00
+2022c5f7
+18c08c16
+c20045dc
+20600000
+da20490c
+6fe0c90b
+1fe0ffff
+1feffe1d
+9a20a200
+6fe080e8
+e7e08011
+c01a45ec
+c019c5f3
+20600000
+6fe30297
+e7e30005
+d8c04314
+20407d1a
+6fe34378
+e7e30005
+20600000
+6fe30041
+e7e30005
+d8c041ce
+20207d1a
+18c08dfa
+18c20a00
+684b4b1e
+18408403
+e0430005
+20600000
+da20490c
+6fe0c90b
+c1000000
+1fe0ffff
+1feffe1d
+9a20a200
+efe08011
+67e0c486
+c019c608
+c01a460d
+20600000
+efe30006
+67e341e0
+d8a041ce
+20407d1a
+2020607b
+efe30006
+67e341e0
+d8a04314
+20407d1a
+efe30006
+67e34378
+20600000
+6fe14963
+d840aa55
+98467c00
+2022c622
+60494963
+20404627
+6fe0ca57
+67e0c90b
+6fe0c8e3
+67e0c965
+6fe2487b
+67e2487f
+67e2483b
+20600000
+204045fd
+6fe24966
+67e2487f
+67e2483b
+20600000
+6fe34378
+67e34923
+1fe0ff00
+67e34940
+1fe0ff00
+67e3495d
+20600000
+6fe0c993
+67e0c992
+20600000
+44f0c01c
+6fe44b50
+c289c67f
+c2894643
+20600000
+20405cc1
+2040464a
+2040463d
+20405ce4
+20404651
+20404614
+20203f72
+5800498b
+d840490b
+98460400
+6fe1c98b
+da20490b
+20600000
+20405cc1
+2040464a
+2040465f
+2040463d
+20404662
+20404651
+20203f72
+700964ab
+204061f7
+20405cc6
+da20498e
+68488964
+20404653
+202061f7
+700964b9
+2020464b
+e0408011
+1ff10400
+e0408005
+1fec8400
+e0408005
+e7e08005
+1a227e00
+67f1008a
+58000000
+67f1008e
+70800602
+20205c80
+6fe1c98b
+67e1c4a8
+20205c9c
+1fe22600
+1a227e00
+1fe0fffc
+1fe22400
+efe20012
+67e2498e
+1a627e00
+20405cd3
+6fe2498e
+e7e20012
+20600000
+6fe44b50
+c4090000
+20404651
+20405ad3
+6848c4b8
+204060b4
+6848c4bd
+20203f61
+20405df2
+6fe44b50
+2feffe09
+2440de0c
+2040467b
+20204614
+d8400080
+da20490b
+da400000
+20205e29
+d8400080
+da20490b
+da400000
+20205e1b
+d8400001
+da204965
+da40005a
+20205e1b
+d8400001
+da204965
+da40005a
+20205e29
+44f1401c
+2040498c
+20407964
+2040403e
+20404695
+204046d7
+2040470d
+20403de6
+20403f9f
+20203dfd
+6fe44b50
+c294c69a
+c29bc69a
+20600000
+704b3903
+6fe0c8eb
+c17f8000
+da200000
+704b3b06
+6848c8eb
+204046a5
+67e0cb39
+20404174
+1a227e00
+c28346c2
+202046b7
+6fe44b50
+c296c6ad
+6fe0cb3f
+243a46aa
+202046af
+704b4300
+704b3900
+20600000
+6fe0cb39
+20204195
+204060a8
+6848c8ea
+2020c6ad
+6848c8ea
+204060b8
+6848c8eb
+6fe0cb39
+20204195
+6fe0cb43
+c1000000
+704b4300
+6fe44b50
+c39a0000
+6fe0cb40
+1fe67c14
+244146ec
+6fe0c78e
+67e0cb40
+20600000
+204046ce
+20740000
+6fe0cb43
+c1008000
+704b4301
+6fe44b50
+c29a4513
+6fe14b1b
+207a0000
+6fe14b5a
+67e14b1b
+20600000
+78547c00
+6fe44b50
+c3968000
+6fe0cb33
+207a0000
+6fe0cb34
+207a0000
+78347c00
+20600000
+6fe44b50
+c29546db
+c295beb3
+20600000
+6848c8f2
+20403f63
+6848c8f2
+204060a8
+2020c6e4
+6fe0c90b
+c1008000
+70490b01
+2020434f
+6fe44b50
+c315c6e8
+6fe348d2
+67e348c6
+6fe0c90b
+c1000000
+70490b00
+202047ef
+44f1c01c
+6fe0cb59
+c1008000
+204046f9
+6048c90b
+7041cd00
+20404711
+2040434f
+20404713
+704a6901
+2020462e
+20404711
+20205dd9
+6848c90b
+18408401
+6fe44b50
+c288c700
+18467c02
+24414707
+20600000
+6fe0cb59
+1fe0ffff
+98467c00
+24414705
+20600000
+d8400000
+20600000
+d8400001
+20600000
+d8400001
+da20490b
+da400000
+20205e1b
+6fe44b50
+c41a0000
+2040469a
+20600000
+d8e00000
+2020471d
+d8e00000
+20204721
+d8e00003
+2020471d
+d8e00003
+20204721
+d8e00005
+2020471d
+d8e00005
+20204721
+6fe44b50
+f9207e00
+67e44b50
+20600000
+6fe44b50
+f93ffe00
+67e44b50
+20600000
+44f2401c
+6fe0ca53
+1fe0ffff
+67e0ca53
+6848c90b
+18467c01
+2442c6f9
+6048c90b
+7041cd00
+20404709
+204045e2
+20203d80
+6fe44b50
+c41c0000
+6fe248b4
+207a0000
+204047d4
+58000003
+204047ca
+205a47c6
+245a47c8
+58000002
+204047cf
+205a47c6
+6fe0c99c
+c000c744
+6fe44b50
+c41c0000
+df200005
+d8a0499c
+20207d34
+20404758
+6fe1499d
+67e109f8
+6fe148b4
+67e109fa
+20404790
+6fe109f8
+67e1499d
+6fe109fa
+67e148b4
+6fe1499f
+67e109f8
+6fe148b6
+67e109fa
+20404798
+6fe109f8
+67e1499f
+6fe109fa
+67e148b6
+20600000
+6fe44b50
+c41c8000
+6fe1499d
+67e109ff
+2040476b
+67e1499d
+6fe148b4
+67e109ff
+20404779
+67e148b4
+6fe1499f
+67e109ff
+2040476b
+67e1499f
+6fe148b6
+67e109ff
+20404779
+67e148b6
+20600000
+6fe08a00
+203a476e
+20204773
+6fe089ff
+20404786
+67e089ff
+6fe109ff
+20600000
+6fe089ff
+204047c2
+20404786
+205a7e6a
+204047be
+20204771
+6fe08a00
+203a477c
+20204780
+6fe089ff
+2040478b
+67e089ff
+20204771
+6fe089ff
+204047c2
+2040478b
+205a7e6a
+204047be
+20204771
+1feffe04
+1fe6fc05
+20407dfd
+1807fe00
+20600000
+1feffe0c
+1fe6fc0a
+20407dfd
+1807fe00
+20600000
+6fe109f8
+684909fa
+9840fe00
+6848c9a1
+9840fe00
+1fe10401
+6048c9a1
+202047a0
+6fe109f8
+684909fa
+9840fe00
+6848c9a2
+9840fe00
+1fe10401
+6048c9a2
+202047a0
+67e189fc
+2feffe10
+2020c7aa
+6fe089fd
+c07fc7b1
+6fe089fc
+1fe37e00
+67e109f8
+67e109fa
+20600000
+6fe089fd
+c00047ae
+6fe189fc
+202047a6
+7009fe00
+6fe089fc
+202047a6
+6fe089fc
+204047bc
+67e089f8
+67e089fa
+203a47ba
+580000ff
+67e089f9
+67e089fb
+20600000
+58000000
+202047b7
+204047c2
+1fe37e00
+204047c3
+1fe67e00
+67e089ff
+20600000
+1fe67e00
+67e08970
+6fe08970
+20600000
+70499c00
+20600000
+70499c01
+20600000
+9a267c00
+24217e6a
+9a467c00
+24217e6a
+20207e6c
+9a267c00
+24610000
+9a467c00
+24610000
+20207e6c
+6fe148b4
+204047db
+1fe22200
+6fe148b6
+204047db
+1fe22400
+20600000
+67e109fa
+6fe089fb
+c07fc7e1
+6fe089fa
+1fe17eff
+20600000
+6fe109fa
+1fe67e00
+202047df
+da6048ad
+da4047e7
+20203044
+5836ee80
+67e1c85b
+704a5101
+20600000
+da604b4a
+da4047ee
+20203044
+20600000
+793f8026
+70488f00
+d8e00001
+20204721
+6fe44b50
+c308c800
+20403d8d
+20344803
+6fe44b50
+c2984809
+c318c809
+2040412e
+1fe17e07
+6848cb70
+98467c00
+2022c824
+20204809
+6fe0ca53
+243a4725
+20600000
+6fe14873
+67e14875
+70487903
+20202df6
+20403d8d
+20344813
+70490b00
+6fe14b61
+67e14875
+70487902
+20202df6
+204048d0
+6fe1486f
+67e14875
+70487904
+20202df6
+6fe0c90b
+c0004803
+2040434d
+20204817
+204047ef
+20404910
+70490b01
+204045fd
+20203d80
+20403d8d
+2034307e
+20204591
+20403d8d
+20740000
+6fe44b50
+c297c62e
+20600000
+d8e00001
+2040471d
+58000000
+67e14875
+204045b4
+2040498a
+204048d0
+70483501
+6fe44b50
+c30aabc6
+70483502
+20202bc6
+6fe0c879
+c001483b
+c002483f
+704b4b01
+20404914
+204047ef
+6fe0ca53
+243a4725
+6fe0c90b
+c0003e49
+20600000
+6fe44b50
+c297c80e
+c298480e
+20204803
+6fe44b50
+c317c833
+6fe0cb59
+c000c833
+20204817
+204042fd
+704a5100
+70488f00
+70487900
+704b4b01
+6fe2487f
+6fe2487b
+98467c00
+20628000
+2020481f
+704b4b01
+d8e00001
+20404721
+204048ca
+58000000
+67e14871
+67e14875
+67e0c88f
+67e0c99b
+67e0c879
+204042fd
+6fe0c8e2
+1fe67c05
+2042c298
+2442c310
+6fe2483b
+67e2487f
+67e24966
+2020462e
+c6930000
+20403f87
+24740000
+20402f5e
+6fe44b50
+c30ac869
+6fe0cb30
+243a487d
+20404300
+6fe0c835
+c280c878
+6848c7c6
+6fe0c8b3
+9841fe00
+67e0c8b3
+6848c7cb
+6fe0c8b8
+9840fe00
+67e0c8b8
+6848c7cc
+6fe0c8b9
+9840fe00
+67e0c8b9
+70483501
+da200007
+da4048b3
+6fe148b8
+20600000
+70483502
+da200009
+6fe0cb31
+243a4883
+da404b7a
+20600000
+da404b71
+20600000
+6fe0cb4b
+207a0000
+6848c8e9
+204060a8
+2040c88e
+6fe0cb4a
+247a0000
+20404136
+247a0000
+6fe0c8e9
+c17f8000
+704b4a0a
+20600000
+58000000
+67e1cb49
+20600000
+6fe0ca51
+207a0000
+6fe0c894
+207a0000
+6fe0cb46
+1fe0fe01
+1fe17e03
+67e0cb46
+247a0000
+704b4700
+6fe0cb47
+1fe0fe01
+67e0cb47
+1fe67c08
+242148a9
+20402e37
+20402ee1
+242c48af
+2437c8af
+204048b9
+20402e34
+6fe0cb48
+1fe0fe01
+67e0cb48
+c00848b1
+20600000
+20402b8f
+2020489f
+704b4800
+6fe0cb49
+c3800000
+79207e00
+67e0cb49
+58000708
+67e14a55
+2020421e
+6fe0c894
+203a4892
+704b4800
+6fe0cb49
+c4000000
+793ffe00
+67e0cb49
+20404582
+202042fd
+6fe44b50
+c4100000
+6fe0cb4c
+207a0000
+1fe0ffff
+67e0cb4c
+203a4914
+20204922
+6fe44b50
+c4100000
+2040498a
+6fe0cb65
+67e0cb4c
+20600000
+704b4c00
+6fe14b69
+67e14903
+67e14905
+6fe0c90b
+c00048d9
+c000c8db
+c00148dd
+20600000
+6fe0c8f4
+202048de
+6fe0c8f5
+202048de
+6fe0c8f6
+67e08964
+20404914
+6fe08964
+67e0c902
+da200000
+70490001
+20207833
+6fe0c8f7
+c17f8000
+6fe14a65
+247a0000
+6fe14871
+247a0000
+6fe0cb4c
+247a0000
+6fe0cb66
+203a48f4
+67e0cb4d
+20600000
+da604b4d
+da4048f4
+20203044
+6fe0c8f7
+67e0c902
+6fe14b67
+67e14903
+67e14905
+da200000
+6848c965
+18408401
+6fe44b50
+c30e4901
+18408401
+18467c04
+24414904
+6048c901
+70490001
+20600000
+d8400001
+20600000
+78547c00
+6fe0c8f7
+6848c902
+98467c00
+24628000
+6fe0c901
+207a0000
+7048dd00
+78347c00
+20600000
+20404920
+20404919
+2040491c
+2020491e
+6fe0c90b
+c0004919
+c000c91c
+c001491e
+20600000
+704b4f00
+6fe0c8f4
+2020492d
+6fe0c8f5
+2020492d
+6fe0c8f6
+2020492d
+6fe0c8f7
+2020492d
+6fe0c90b
+c0004927
+c000c929
+c001492b
+20600000
+6fe0c8f4
+20204930
+6fe0c8f5
+20204930
+6fe0c8f6
+20204930
+67e0c902
+da200000
+2020782e
+67e0c902
+da200000
+20207829
+6fe0c8f4
+98467c00
+2042c952
+6fe44b50
+c312784b
+20404943
+20404947
+2040494b
+6fe0cb4e
+203a784b
+704b4e00
+202060ce
+6fe0c8f4
+98467c00
+2042c954
+20207850
+6fe44b50
+c4130000
+6fe0c8f6
+2020494e
+6fe44b50
+c4128000
+6fe0c8f7
+2020494e
+6fe44b50
+c4138000
+6fe0c8f3
+98467c00
+24628000
+704b4e01
+20600000
+704b4f00
+20600000
+704b4f01
+20600000
+6fe14a65
+247a0000
+6fe14871
+247a0000
+6fe0cb4c
+247a0000
+20404906
+20740000
+6fe44b50
+c4108000
+c4020000
+c291c978
+6fe0c8dc
+1fe0fe01
+67e0c8dc
+1fe67c14
+2441496c
+c001496e
+c0024973
+c003496e
+c0044973
+20600000
+7048dc01
+20204973
+6fe44b50
+c2914922
+6fe0c8f3
+c17f8000
+20204930
+6fe44b50
+c2914914
+6fe0c8f3
+c17f8000
+2020492d
+6fe14b63
+68494a55
+98460400
+6fe14b6d
+98467c00
+2421498a
+6fe0c8dd
+247a0000
+7048dd01
+20204982
+6fe14b6b
+67e14903
+67e14905
+6fe44b50
+c29148d4
+6fe0c8f3
+c17f8000
+202048de
+7048dd00
+20204973
+6fe44b50
+c4108000
+c4020000
+c291c997
+6fe0c8dc
+1fe67c0a
+20214995
+70409901
+20600000
+70409900
+20600000
+6fe0c8dd
+243a4995
+70409901
+20600000
+6fe08018
+20402e7d
+20202f6b
+6fe08018
+20402e7d
+6fe08031
+2feffe00
+24608000
+6fe08048
+2feffe03
+2040afa1
+2440af9d
+20202f6b
+6fe0cb19
+2fe00603
+2420fe6a
+20207e6c
+204052d2
+243a7e6c
+70008901
+70008a00
+20207e6c
+6fe1478b
+c284c9a8
+202049ac
+20758000
+20406193
+58004a62
+67e14889
+580049f4
+67e1488d
+580049f1
+67e1445d
+58004a2e
+67e14465
+58004a30
+67e14467
+58004a49
+67e1446f
+580049e6
+67e14974
+580049d6
+67e14978
+44f2c01c
+204049ed
+20407968
+6fe0c944
+67e0c8b3
+c00049d5
+6fe0c945
+67e0c78f
+204049e6
+204077e8
+204077f2
+70497001
+6fe1478b
+c3860000
+202030d1
+70497002
+204049e6
+da200000
+20407833
+204049e2
+20405e29
+20402f62
+20342bc6
+6fe2483b
+67e2487f
+6fe14873
+67e14875
+20202df6
+d8400004
+da20483b
+da400000
+20600000
+44f3401c
+6fe0c942
+c0ffc9eb
+6848c91f
+202060b8
+67e0c91f
+202049e9
+20402ea2
+6fe1496c
+67e1496e
+20600000
+204060ec
+204049f4
+202030d1
+202061b7
+204061c3
+20404a06
+204049f9
+20204a14
+6fe0c97b
+c1808000
+6fe2497f
+203a4a00
+70498500
+78347c00
+20207939
+6fe0c985
+c17f8000
+1fe0fe01
+67e0c985
+78547c00
+20207937
+684909e0
+18417e01
+18430400
+67e0c97f
+18417e01
+18430400
+67e0c980
+18417e01
+18430400
+67e0c981
+18417e01
+18430400
+67e0c982
+20600000
+44f3c01c
+20404a24
+20404a29
+20404a1a
+24740000
+20204a5e
+6fe0c97b
+c1808000
+6fe0c985
+207a0000
+1fe67c01
+24610000
+6fe14873
+67e14875
+78347c00
+20600000
+6fe0c97f
+243a4a52
+6fe0c980
+243a4a54
+20204a5a
+6fe0c981
+243a4a56
+6fe0c982
+243a4a58
+20204a5c
+20404a3e
+202049f5
+1a627e00
+c016b0f9
+c00830e1
+c01cca38
+c01e4a3a
+c01d4a37
+20600000
+20202e34
+204049e2
+20405e1b
+70488f00
+70497c01
+70497d01
+20600000
+6fe0c97c
+c1000000
+6fe0c97b
+c1008000
+70497b01
+da200000
+2020782e
+da200000
+2040782e
+204049e6
+202030d1
+20403052
+20402bc3
+20402df3
+20204a4d
+6fe0c946
+207a0000
+da60496e
+da404a45
+2020304b
+70494d01
+20600000
+70494d02
+20600000
+70494f01
+20600000
+70494f02
+20600000
+70494d00
+20600000
+70494f00
+20600000
+da204947
+2020796d
+da204954
+2020796d
+6fe0c97d
+c000ca6c
+da20495d
+20407984
+24344a71
+d8c0495d
+efe08006
+1fe22200
+da40495e
+20600000
+70497d00
+78347c00
+da200001
+da40497e
+20600000
+6fe0c960
+c0024a75
+c002ca75
+20600000
+6fe0c963
+243a4a7c
+6fe0c965
+243a4a7c
+6fe0c967
+243a4a7c
+20600000
+78347c00
+20204a67
+20758000
+58004b52
+67e1445d
+58004b51
+67e1445f
+580030d1
+67e14469
+58004b4f
+67e14465
+58004ab0
+67e14467
+58004aaa
+67e1445b
+58004bfd
+67e1446b
+58004b24
+67e1446f
+58004bc3
+67e147e7
+58004c5b
+67e147e2
+58004c5c
+67e147e4
+20404aa5
+204022b4
+20404c00
+20406193
+20407968
+2040781d
+20404c28
+20404c43
+44f4401d
+20404c0d
+20404aed
+6fe0c7dd
+c0004aa7
+6fe0c7de
+67e0c78f
+20204c63
+7045f707
+20600000
+70478fff
+7047df01
+20204b77
+6fe0c7df
+c0013097
+204052dc
+6fe0c4e6
+243a3097
+20203099
+1a627e00
+c000cac4
+c0014ac7
+c0024acf
+c002cad1
+c0034ad3
+c003cad6
+c0094ada
+c009cae2
+c013cae3
+c0174ae6
+c01ecae7
+c00a4af6
+c00acafa
+c01fcafd
+c0204b03
+c0084b09
+c0164b0a
+c016cb15
+20600000
+7047ad00
+7047ac00
+20600000
+20404ac9
+20204acf
+70445400
+70478900
+70447b00
+7047ac00
+7047ad00
+20207968
+20403080
+20204b60
+20404b54
+202030cf
+58000002
+67e0c789
+20600000
+7047ac00
+58000001
+67e0c7ad
+20600000
+6fe0c454
+c1008000
+70445401
+204030dd
+204030db
+20404b54
+204030cf
+202030d5
+20204acf
+58000005
+67e0c7ac
+20600000
+20203094
+da400000
+6fe0c48d
+1fef8422
+6fe1448b
+1fe22200
+20205e4f
+da400000
+6fe0c7a3
+c4008000
+6fe0c48d
+207a0000
+1fef8422
+6fe1448b
+1fe22200
+20205e29
+20404b54
+58000000
+67e147b7
+202030cf
+20407968
+7047b000
+20204b77
+20407968
+7047b001
+6fe447c1
+67e44370
+204030dd
+20202827
+6fe143d9
+c1000000
+6fe447c9
+207a0000
+67e44370
+20202827
+20204c74
+6fe0c7dd
+c1000000
+6fe0c7df
+c1808000
+20404b10
+202030cd
+7049df01
+df20000b
+d8a049e0
+d8c049c9
+20207d6d
+6fe0c7dd
+c1000000
+6fe0c7df
+c000cb1a
+20204c70
+6fe0c9df
+c1808000
+7049df00
+6fe1478b
+c28030cf
+c284b0cf
+df20000b
+d8c049e0
+d8a049c9
+20207d6d
+20404b2a
+20404b31
+20404b3c
+20404b44
+20404b47
+20204b4a
+da6047db
+da404b2d
+2020304b
+7047df02
+204030cf
+20404b8e
+20204c60
+da6049ec
+da404b34
+20203044
+6fe1478b
+c284cc60
+c2804c60
+6fe0c9c9
+c000cc60
+c0024c60
+c002cc60
+202030d1
+da6047ac
+da404b3f
+20203044
+6fe08330
+79207e00
+79207e07
+67e08330
+20600000
+da604789
+da404ada
+20203044
+da6047ad
+da4030b0
+20203044
+6fe0c7df
+c1808000
+da6047b7
+da404b60
+2020304b
+20404bd4
+202061c3
+202061b7
+204060ec
+20204b51
+6fe0c7a3
+c280cb5c
+c2804b58
+20600000
+6fe147d7
+67e147d9
+67e147db
+202030bf
+6fe147d3
+67e147d9
+67e147db
+202030b7
+6fe0c7df
+c1808000
+6fe0c7a3
+c280cb66
+c2804b6a
+20600000
+6fe147d1
+67e147d9
+67e147db
+202030b2
+6fe1478b
+c3848000
+6fe147d5
+67e147d9
+67e147db
+6fe147b3
+20404c85
+204030cb
+6fe247bd
+67e249cc
+6fe1478b
+c3858000
+202030c1
+6fe0c7df
+c1808000
+6fe0c7a3
+c280cb7d
+c2804b82
+20600000
+20404b92
+203a4b60
+204030cd
+204030b7
+202030a8
+6fe147b7
+684947b5
+604947b7
+247a0000
+6fe147b1
+20404c85
+204030cb
+6fe247b9
+67e249cc
+6fe1478b
+c3858000
+202030c1
+6fe1478b
+c284b0c9
+c28030b0
+20204b54
+6fe0c48d
+1fe27200
+6fe1448b
+1fe22200
+efe10011
+c0004b9b
+1a20a222
+c2004b96
+20207e6c
+efe30006
+67e341e0
+18c08c0a
+d8a041ce
+20407d1a
+2040607b
+20207e6a
+20407e64
+6fe1478b
+c2804ba7
+c284cbaa
+20600000
+6fe0c4e3
+c19f8000
+20207e62
+6fe0c7b0
+207a0000
+20207e62
+20407e64
+6fe1478b
+c3800000
+c3848000
+20207e62
+6fe0c7a3
+c280cbb6
+c2804bb9
+20600000
+6fe0c09b
+c1818000
+20204b77
+20204b77
+78567c00
+6fe147d9
+67e147db
+20404bad
+20344bb2
+20404ba2
+24740000
+78367c00
+20600000
+20404bba
+24760000
+1a227e00
+203a4bca
+204030cd
+da6047f1
+20204bcc
+204030cf
+da604819
+dfe00005
+98effe00
+9a60a600
+efe08013
+207a0000
+20404bf5
+1a60a601
+20204bcf
+6fe1478b
+c284cbd8
+c2804be1
+20600000
+20402382
+247a0000
+20404bf8
+24740000
+1fe0ffff
+1feffe05
+d8404841
+98408c00
+20204c89
+204052cf
+247a0000
+20404bf8
+24740000
+1fe0ffff
+1feffe05
+d84048a0
+98408c00
+efe28006
+67e2c89b
+6fe0c89b
+1fe22200
+20404d9f
+6fe144de
+e7e10005
+580000a1
+e7e08005
+6fe2489c
+e7e48005
+20600000
+67e0895c
+da20095c
+2020796d
+da20095c
+20407984
+24740000
+6fe0895c
+20600000
+6fe14435
+c00c4afd
+20600000
+58000002
+67e0c9eb
+58200008
+67e247c1
+592c0005
+e7e20005
+70437e17
+5800001b
+67e143cf
+20402321
+2040233d
+2040234a
+20202329
+df200028
+d8a04841
+d8c09e57
+20407d60
+df200028
+d8a048a0
+d8c09e7f
+20207d60
+df20017e
+d8c09af2
+20207d60
+df2001e7
+d8c09c70
+20207d60
+6fe0898e
+1fe27200
+67e0c2f5
+20407d60
+6fe0898e
+1fe27200
+67e0c5fc
+20407d60
+efe08006
+67e0c7e6
+efe08006
+67e0c7dd
+20600000
+6fe0c7a3
+c4008000
+d8400003
+6fe147a4
+1fe22400
+da2047a6
+20405e29
+684947a6
+58001b3a
+98467c00
+24628000
+6fe0c7a8
+207a0000
+1fe20400
+6fe147a4
+1fe0a403
+da20098e
+20405e29
+20204c3b
+20404c1b
+efe10006
+207a0000
+1fe20a00
+e8408006
+18427200
+20407d6d
+20204c3c
+6fe0c7a3
+c4008000
+6fe147ae
+207a0000
+1fe22400
+d8400004
+da20098e
+20405e29
+6fe0898e
+c080cc4e
+20204c57
+58000001
+67e0898e
+18007203
+204059ed
+6fe147ae
+1fe22400
+d8400004
+da20098e
+20405e4f
+6fe1898f
+67e1c0a8
+67e1c378
+20600000
+20204b77
+da200000
+da6049d4
+20407839
+20404b8e
+6fe0c9eb
+67e0c9ec
+20600000
+58000000
+20404c6b
+70478201
+204077e8
+204077f2
+6fe1478b
+c3860000
+202030d1
+684944cb
+e7e08002
+efe08005
+67e0c78e
+20600000
+6fe144cb
+efe0803f
+c1800000
+202030d1
+684944cb
+efe08002
+c000cc7f
+58000001
+684944cb
+e7e08002
+18408c02
+efe08006
+e7e0800e
+efe10006
+20207e13
+58000002
+20404c6b
+18408c05
+efe10006
+203a30d1
+20207e13
+67e1415c
+1fe0fffc
+67e14426
+20600000
+efe08006
+1fe22200
+e8410006
+20407cff
+204026bd
+1a227200
+20407cf9
+20207d6d
+6fe0c4d4
+d840003e
+202060e1
+6fe0c4d4
+d840003f
+202060e1
+20404c94
+20404c91
+20204c94
+20404c98
+20204c91
+20204c98
+20404c98
+20204c9a
+20204c91
+6fe0c4d5
+20204c92
+6fe0c4d5
+20204c95
+20404ca0
+20404ca2
+20204ca0
+20800000
+20404cb0
+20404cc4
+20404ce0
+20404ce4
+7009fc01
+7009f904
+20404cef
+20204cae
+20404cb4
+20404cb8
+20404cbc
+20204cc0
+6fe0c7a3
+247a0000
+7047a310
+20600000
+6fe0c7a4
+247a0000
+7047a411
+20600000
+6fe0c7a5
+247a0000
+7047a50a
+20600000
+6fe0c7a6
+247a0000
+7047a60b
+20600000
+58001800
+67e1095c
+58001bff
+e7e10005
+58001c00
+e7e10005
+58001fff
+e7e10005
+6fe4095c
+20405efb
+20405f26
+d841c200
+20405f13
+6fe0c7a3
+d8400008
+204060e2
+6fe0c7a4
+d8400049
+204060e2
+6fe0c7a5
+d840000a
+204060e2
+6fe0c7a6
+d840000b
+204060e2
+d8400081
+60588060
+20207e10
+6fe0c7a7
+247a0000
+7047a70d
+20600000
+6fe0c7a7
+d8400010
+204060e2
+da200040
+204061f1
+da200000
+da400000
+58000000
+2040622a
+d8e00000
+2020623d
+6ff10112
+1fe0a3fc
+24610000
+20405f42
+efe08003
+c000ccf7
+20407d20
+20205f52
+efe10003
+67e109fd
+d84003ff
+98410400
+604909f6
+1feb7e00
+1fecfe00
+67e089f8
+efe08003
+1fe0ffff
+9a267c00
+20610000
+20404d05
+20204d60
+6fe089f8
+c01fcd08
+20204d4c
+44f4c01d
+6fe089f6
+c0004d4b
+c000cd13
+c0014d18
+c001cd26
+c0024d30
+c002cd4b
+c0084d41
+c00a4d47
+20204d4b
+7009ff00
+6ff10000
+67e10a00
+df200003
+20204d53
+efe10003
+67f10052
+20600000
+efe08003
+1fe20400
+67f08024
+efe08003
+98408400
+79207e07
+67f08023
+efe08003
+98408400
+1fe27200
+20600000
+20404d1b
+efe08003
+67f08025
+98408400
+c2004d27
+184104ff
+efe08003
+98467c00
+2422cd3f
+20204d4b
+df200020
+d8a04000
+d8400000
+efe08003
+e7e08005
+98408400
+c2004d33
+184104ff
+efe08003
+98467c00
+2422cd3f
+70802300
+20404d4b
+20407e15
+20200801
+70802300
+20204d4c
+efe08003
+1fe27200
+efe10003
+1fe20a00
+20405f98
+20204d4b
+6ff08060
+79207e04
+67f08060
+20204d4b
+20204d50
+7009ff01
+20204d51
+7009ff0c
+20204d51
+7009ff00
+df200001
+20204d53
+7009fa0e
+1f20fe03
+67e089fb
+20404d5c
+6fe189fc
+e7e18003
+d8c009ff
+20405f7e
+20205f5e
+20405f5a
+6fe189f9
+e7e18003
+20600000
+20405f42
+18608603
+efe08003
+98608600
+20205f4e
+7041de00
+20600000
+6fe341e0
+684b0041
+98467c00
+20600000
+44f5401d
+6fe10315
+1fe20c00
+efe08006
+67e0c5f5
+1fe1040f
+1ff1fe00
+c004cd8c
+c003cd8c
+c0054d9b
+c002cd84
+c000cd78
+20600000
+18427e00
+c002cd7c
+c001cd83
+20600000
+70095b27
+2040789f
+6fe0c09a
+c1840000
+18427e00
+c002c48a
+20600000
+20600000
+20404d9b
+da200001
+20404d9f
+6fe144dc
+e7e10005
+58000000
+e7e08005
+20600000
+da200001
+20404d9f
+6fe144dc
+e7e10005
+58000000
+e7e08005
+70095001
+6fe0c4e2
+79207e06
+67e0c4e2
+70095b12
+2040789f
+6fe0c09a
+c1840000
+20204466
+efe08006
+c000cd9e
+20600000
+20600000
+20405278
+1a220400
+60488950
+1fe20a00
+1a227e00
+e7e10005
+20600000
+2035cdab
+580045f6
+d8a044d6
+98a67200
+20407d34
+44f5c01d
+58000424
+d8a003e4
+98a67200
+20407d34
+5800037a
+d8a0030e
+98a67200
+20407d34
+20205346
+44f6401d
+18c20400
+18420c00
+efe10006
+67e10317
+efe10006
+67e10319
+18c27e00
+67e10315
+6fe0c78a
+c0004dc1
+20205128
+6fe10317
+203a4e35
+44f6c01d
+6fe08319
+c000cdd7
+c0284e19
+c028ce2e
+c0294e2c
+c029ce2c
+20204e35
+44f7401d
+204052dc
+6fe0c4e6
+c0007e6c
+c000fe6c
+c0017e6c
+c001fe6c
+c040fe6c
+c0607e6c
+c0407e6c
+c0207e6c
+20600000
+20404dcb
+247a0000
+204052e6
+20404e3a
+68490320
+203a4e34
+204052ef
+6fe10320
+e7e10005
+18007e01
+e7e10005
+20204e35
+6fe0c5f4
+207a0000
+1fe22200
+44f7c01d
+6fe20386
+d8400100
+98408400
+1c427e00
+98467c00
+24610000
+7045f400
+1a227e00
+c0284df1
+2020131f
+d9000000
+204052e6
+20404eb3
+204052f1
+20407d02
+20404ee6
+204052ef
+5800000c
+e7e10005
+18007e01
+e7e10005
+20204e35
+44f8401e
+6fe10326
+1fe0fe04
+20407ec2
+1fe08401
+d8c044f0
+efe18006
+207a0000
+67e1898e
+6fe0898e
+1fe22200
+20404e0c
+1a427e00
+67e0c4f0
+20600000
+d8e00000
+da400000
+18e67c07
+24610000
+aa2fffff
+2020ce13
+20204e17
+18427e00
+203a4e17
+f9202400
+184085ff
+18e08e01
+20204e0e
+204052d2
+247a0000
+20404dcb
+247a0000
+204052f3
+204066f2
+20404dfd
+20204e25
+204052d2
+247a0000
+204052f3
+204066f2
+204052fc
+6fe10326
+203a4e34
+e7e10005
+6fe144d8
+e7e10005
+20204e35
+20404d6b
+20204e35
+44f8c01e
+70033500
+2040636c
+6fe08335
+c1008000
+20204e35
+204052c2
+58000000
+67e10317
+67e10319
+70031b01
+20600000
+44f9401e
+204052f1
+18002400
+6fe10317
+1fe22600
+6fe10315
+98000c00
+20404e49
+1a627e00
+1a60a7fc
+1fe0fffc
+243a4e41
+1a427e00
+67e10320
+20600000
+44f9c01e
+efe08006
+c000ce82
+c0014e8a
+c001cf0e
+c0024f3e
+c002cfdb
+c0035004
+c003d054
+c0045089
+c004d099
+c0054e58
+c005d09a
+2040509b
+20600000
+efe08006
+1fe20e00
+efe10006
+1fe22200
+1a627e00
+9a262600
+5800000b
+e7e08005
+18e27e00
+e7e08005
+efe10006
+c0014e66
+c001ce6c
+20600000
+58020008
+e7e30005
+58000280
+e7e20005
+18007e0c
+20204e71
+5803000c
+e7e30005
+58000006
+e7e40005
+18007e10
+9a40a400
+20204e57
+efe08006
+1fe20e00
+efe10006
+1fe22200
+efe10006
+67e10964
+1a627e00
+9a262600
+204052f1
+5800000b
+e7e08005
+18e27e00
+e7e08005
+6fe10964
+20204e63
+efe08006
+1fe20e00
+efe10006
+1fe22200
+98c08c00
+1a627e00
+9a262600
+20204e57
+20407d02
+20407d07
+d9000000
+efe08006
+1fe20e00
+efe10006
+1fe22200
+efe10006
+1fe20400
+efe10006
+1fe21600
+44fa401e
+18427e00
+c000ce9d
+c001cebf
+c008cecb
+c009ced6
+2040509b
+20204f0d
+20407d02
+d8400050
+6fe144d8
+243a4f07
+19627e00
+67e144d8
+1c427e00
+67e20386
+20404ea7
+20204ee2
+60490384
+19627e00
+67e1037a
+1a227e00
+67e1037c
+1a427e00
+67e1037e
+1a627e00
+67e10380
+18e27e00
+67e10382
+20600000
+68490384
+6fe1037a
+1fe21600
+6fe1037c
+1fe22200
+6fe1037e
+1fe22400
+6fe10380
+1fe22600
+6fe10382
+1fe20e00
+20600000
+20407d02
+58000051
+d8400051
+6fe144da
+243a4f07
+19627e00
+67e144da
+6fe0c4e1
+79207e00
+79207e01
+67e0c4e1
+20204eea
+20407d02
+d8400052
+6fe144dc
+243a4f07
+19627e00
+67e144dc
+6fe0c4e2
+79207e00
+79207e01
+67e0c4e2
+20204eea
+20407d02
+1b427e00
+d8400053
+6fe144de
+243a4f07
+19627e00
+67e144de
+6fe0c4e3
+79207e00
+79207e01
+67e0c4e3
+20204eea
+58000001
+67e1032e
+7045f450
+20204eec
+6fe0c4e0
+79207e00
+79207e01
+67e0c4e0
+58000000
+67e1032e
+44fac01e
+20407d07
+58000003
+e7e08005
+18e27e00
+e7e08005
+58000008
+e7e10005
+18427e00
+e7e10005
+19627e00
+e7e10005
+6fe1032e
+c000cf02
+290c0000
+2020cefd
+58000004
+e7e10005
+18007e00
+e7e10005
+5800000c
+20204f09
+e7e10005
+18007e02
+e7e10005
+5800000c
+20204f09
+79201000
+20204eea
+9a40a400
+1a627e00
+9a262600
+20204f0d
+20204e57
+efe08006
+1fe20e00
+efe10006
+1fe22200
+1a627e00
+9a262600
+efe10006
+1fe21600
+efe10006
+1fe20400
+44fb401e
+58000050
+98467c00
+2022cf26
+58000051
+98467c00
+2022cf2c
+58000052
+98467c00
+2022cf38
+58000053
+98467c00
+2022cf32
+20600000
+19627e00
+67e144d8
+6fe0c4e0
+79207e01
+67e0c4e0
+20204e57
+19627e00
+67e144da
+6fe0c4e1
+79207e01
+67e0c4e1
+20600000
+19627e00
+67e144dc
+6fe0c4e3
+79207e01
+67e0c4e3
+20600000
+19627e00
+67e144de
+6fe0c4e2
+79207e01
+67e0c4e2
+20600000
+efe08006
+1fe20e00
+efe10006
+1fe22200
+1a627e00
+9a262600
+efe10006
+1fe20400
+18422200
+44fbc01e
+58000050
+98467c00
+2022cf55
+58000051
+98467c00
+2022cf73
+58000052
+98467c00
+2022cf5f
+58000053
+98467c00
+2022cf69
+2020509b
+18a21600
+6fe0c4e0
+79207e04
+79207e03
+67e0c4e0
+19620a00
+d9600050
+6fe144d8
+1fe20400
+20204f7c
+18a21600
+6fe0c4e2
+79207e04
+79207e03
+67e0c4e2
+19620a00
+d9600052
+6fe144dc
+1fe20400
+20204f7c
+18a21600
+6fe0c4e3
+79207e04
+79207e03
+67e0c4e3
+19620a00
+d9600053
+6fe144de
+1fe20400
+20204f7c
+18a21600
+6fe0c4e1
+79207e04
+79207e03
+67e0c4e1
+19620a00
+d9600051
+6fe144da
+1fe20400
+44fc401f
+58000005
+e7e08005
+18e27e00
+e7e08005
+58000006
+e7e10005
+18427e00
+e7e10005
+18007e00
+e7e10005
+18007e00
+e7e10005
+18007e0a
+9a40a400
+60490333
+18e27e00
+67e08332
+18007e50
+a961fe00
+2020cf92
+1fe0fe01
+20600000
+78547c00
+c3810000
+c4000000
+c4008000
+79207e02
+18c20a00
+18a08bff
+e7e08005
+78347c00
+20600000
+6fe0c4e0
+20404f93
+24344fa4
+70033150
+6fe144d8
+67e10333
+20204fb8
+6fe0c4e1
+20404f93
+24344fab
+70033151
+6fe144da
+67e10333
+20204fb8
+6fe0c4e2
+20404f93
+24344fb2
+70033152
+6fe144dc
+67e10333
+20204fb8
+6fe0c4e3
+20404f93
+24740000
+70033153
+6fe144de
+67e10333
+44fcc01f
+20405272
+204052e6
+18002400
+204052f1
+18007e04
+e7e08005
+6fe0c4e5
+e7e08005
+58000008
+e7e10005
+6fe10333
+e7e10005
+58000000
+e7e10005
+18007e01
+e7e08005
+18007e02
+e7e08005
+6fe08331
+c028cfd0
+58000030
+e7e10005
+20204fd2
+580003e3
+e7e10005
+d840000c
+60490320
+204052ef
+6fe10320
+e7e10005
+18007e01
+e7e10005
+70033100
+20204e57
+18c08c01
+efe10006
+1fe22200
+1a627e00
+9a262600
+efe10006
+1fe22200
+44fd401f
+58000050
+9a267c00
+2022cff3
+58000051
+9a267c00
+2022cff7
+58000052
+9a267c00
+2022cffb
+58000053
+9a267c00
+2022cfff
+18c08c02
+efe10006
+98007c00
+20204e57
+6fe0c4e0
+79207e05
+67e0c4e0
+20204e57
+6fe0c4e1
+79207e05
+67e0c4e1
+20204e57
+6fe0c4e2
+79207e05
+67e0c4e2
+20204e57
+6fe0c4e3
+79207e05
+67e0c4e3
+70095b06
+2020789f
+efe08006
+1fe20e00
+efe10006
+1fe22200
+1a627e00
+9a262600
+efe10006
+1fe22200
+efe10006
+1fe21600
+1a220400
+20407d02
+44fdc01f
+58000050
+98467c00
+2022d02b
+58000051
+98467c00
+2022d03b
+58000052
+98467c00
+2022d01f
+58000053
+98467c00
+2022d025
+2040509b
+20205050
+19620400
+6fe144dc
+98467c00
+2022d031
+2040509b
+20205050
+19620400
+6fe144de
+98467c00
+2022d033
+2040509b
+20205050
+19620400
+6fe144d8
+98467c00
+2022d037
+2040509b
+20205050
+204050b2
+20205043
+204050b8
+6fe144dc
+203a5043
+20205043
+204050ad
+6fe08339
+243a5043
+20205043
+19620400
+6fe144da
+98467c00
+2022d041
+2040509b
+20205050
+204050a8
+20205043
+20407d07
+58000007
+e7e08005
+18e27e00
+e7e08005
+58000004
+e7e10005
+1a227e00
+e7e10005
+19627e00
+e7e10005
+18007e08
+20205052
+20407d07
+20205052
+9a40a400
+20204e57
+efe08006
+1fe20e00
+efe10006
+1fe22200
+1a627e00
+9a262600
+efe10006
+1fe21600
+efe10006
+1fe20400
+20407d02
+44fe401f
+58000050
+98467c00
+2022d06e
+58000051
+98467c00
+2022d074
+58000052
+98467c00
+2022d07a
+58000053
+98467c00
+2022d080
+2040509b
+20205088
+18422200
+19620400
+6fe144d8
+98467c00
+2042d0ad
+20205086
+18422200
+19620400
+6fe144da
+98467c00
+2042d0a8
+20205086
+18422200
+19620400
+6fe144dc
+98467c00
+2042d0b2
+20205086
+18422200
+19620400
+6fe144de
+98467c00
+2042d0b8
+20205086
+20407d07
+20204e57
+20204e57
+efe08006
+1fe20e00
+efe10006
+1fe22200
+98c08c00
+58000009
+e7e08005
+18e27e00
+e7e08005
+18007e00
+e7e10005
+18007e04
+9a40a400
+1a627e00
+9a262600
+20204e57
+20204e57
+20204e57
+18002400
+204052f1
+58000001
+e7e08005
+18e27e00
+e7e08005
+58000002
+e7e10005
+58000000
+e7e10005
+1a40a406
+da600004
+20204e57
+58000000
+67e1032c
+67e144da
+7044e100
+20600000
+58000000
+67e10326
+67e144d8
+7044e000
+20600000
+58000000
+67e144dc
+7044e200
+6fe0c4e3
+c00050be
+20600000
+58000000
+67e144de
+7044e300
+6fe0c4e2
+c00050be
+20600000
+70095b07
+2020789f
+6fe08330
+793ffe00
+67e08330
+6fe144de
+207a0000
+204052e6
+6fe144de
+1fe22200
+18002453
+202050d3
+6fe08330
+793ffe07
+67e08330
+6fe144dc
+207a0000
+204052e6
+6fe144dc
+1fe22200
+18002452
+20405272
+204052f1
+18007e06
+e7e08005
+6fe0c4e5
+e7e08005
+58000004
+e7e10005
+1a227e00
+e7e10005
+1a427e00
+e7e10005
+18000408
+20205117
+44fec01f
+20405272
+204052f1
+58000002
+e7e08005
+6fe0c4e5
+e7e08005
+58000004
+e7e10005
+18427e00
+e7e10005
+19627e00
+e7e10005
+d8400008
+20205117
+44ff401f
+20405272
+204052f1
+58000004
+e7e08005
+6fe0c4e5
+e7e08005
+58000008
+e7e10005
+18427e00
+e7e10005
+58000000
+e7e10005
+58000001
+e7e08005
+58000002
+e7e08005
+580003e3
+e7e10005
+d840000c
+20205117
+44ffc01f
+20405272
+204052f1
+58000006
+e7e08005
+6fe0c4e5
+1fe0fe01
+18a22200
+67e0c4e5
+1a220a00
+e7e08005
+58000004
+e7e10005
+18427e00
+e7e10005
+19627e00
+e7e10005
+d8400008
+60490320
+18427e00
+203a52c2
+204052ef
+6fe10320
+e7e10005
+18007e01
+e7e10005
+20600000
+6fe10326
+203a131f
+204052fc
+6fe10326
+e7e10005
+6fe144d8
+e7e10005
+20600000
+6fe10317
+203a4e35
+47004020
+6fe08319
+c000d132
+c0284e21
+c028ce2e
+c0294e2c
+c029ce2c
+20204e35
+204052e6
+18002400
+204052f1
+1fe20a00
+6fe10317
+1fe22600
+6fe10315
+98000c00
+20405140
+1a60a7fc
+2422d13a
+1a420400
+20405117
+20204e35
+efe08006
+c001514b
+c000d14e
+c001d158
+c002d194
+c00251c6
+c003d24b
+c0035219
+c0045089
+c0054e73
+20205266
+20407d02
+20407d07
+20204e8a
+efe08006
+1fe20e00
+efe10006
+1fe22200
+1a627e00
+9a262600
+efe08006
+1a20a3ff
+2422d154
+20600000
+efe08006
+1fe20e00
+efe10006
+1fe22200
+efe10006
+1fe21600
+efe10006
+1fe20400
+efe10006
+1fe67c00
+2022d16a
+c0015166
+c0025166
+20205168
+70095b16
+2040789f
+efe10006
+20205191
+20407d02
+4700c020
+58000050
+98467c00
+2022d179
+58000051
+98467c00
+2022d17f
+58000053
+98467c00
+2022d18b
+58000052
+98467c00
+2022d185
+20205191
+19627e00
+67e144d8
+6fe0c4e0
+79207e01
+67e0c4e0
+20205190
+19627e00
+67e144da
+6fe0c4e1
+79207e01
+67e0c4e1
+20205190
+19627e00
+67e144dc
+6fe0c4e2
+79207e01
+67e0c4e2
+20205190
+19627e00
+67e144de
+6fe0c4e3
+79207e01
+67e0c4e3
+20407d07
+1a627e00
+9a262600
+20600000
+efe08006
+1fe20e00
+efe10006
+1fe22200
+1a627e00
+9a262600
+efe10006
+1fe21600
+efe10006
+efe10006
+243a51c0
+20407d02
+19620400
+47014020
+58000050
+98467c00
+2022d1ae
+58000051
+98467c00
+2022d1b2
+58000052
+98467c00
+2022d1b6
+58000053
+98467c00
+2022d1ba
+6fe0c4e0
+79207e05
+67e0c4e0
+20600000
+6fe0c4e1
+79207e05
+67e0c4e1
+20600000
+6fe0c4e2
+79207e05
+67e0c4e2
+20600000
+6fe0c4e3
+79207e05
+67e0c4e3
+70095b06
+2020789f
+20407d07
+1a20a3fa
+2022d1c5
+18c08c01
+1a20a3ff
+202051c1
+20600000
+efe08006
+1fe20e00
+efe10006
+1fe22200
+1a627e00
+9a262600
+efe10006
+18c08c02
+1fe20400
+58000005
+e7e08005
+18e27e00
+e7e08005
+1a20a202
+1a227e00
+e7e10005
+20407d02
+4701c020
+58000050
+98467c00
+2022d1e5
+58000051
+98467c00
+2022d1f6
+58000052
+98467c00
+2022d1fc
+58000053
+98467c00
+2022d202
+20205207
+6fe0c4e0
+79207e04
+79207e03
+67e0c4e0
+c28151f3
+68488330
+79200406
+60488330
+18e27e00
+1fe0fe01
+67e08332
+6fe0c4e0
+79207e02
+67e0c4e0
+6fe144d8
+67e10333
+20205207
+6fe0c4e1
+79207e04
+79207e03
+67e0c4e1
+6fe144da
+20205207
+6fe0c4e2
+79207e04
+79207e03
+67e0c4e2
+6fe144dc
+20205207
+6fe0c4e3
+79207e04
+79207e03
+67e0c4e3
+6fe144de
+1fe21600
+20407d07
+19627e00
+e7e10005
+18007e00
+e7e10005
+18007e00
+e7e10005
+18007e0a
+9a40a400
+1a20a3fa
+2022d218
+efe08006
+e7e08005
+1a40a401
+1a20a3ff
+20205212
+20600000
+efe08006
+1fe20e00
+efe10006
+1fe22200
+1a627e00
+9a262600
+efe10006
+1fe22200
+efe10006
+1fe21600
+20407d02
+47024020
+58000050
+1a220400
+98467c00
+2022d232
+58000052
+1a220400
+98467c00
+2022d237
+58000053
+1a220400
+98467c00
+2022d239
+2020523b
+58000000
+67e10326
+67e144d8
+67e0c4e0
+2020523d
+204050b2
+2020523d
+204050b8
+2020523d
+58000000
+67e1032c
+20407d07
+58000007
+e7e08005
+18e27e00
+e7e08005
+58000004
+e7e10005
+1a227e00
+e7e10005
+19627e00
+e7e10005
+18007e08
+9a40a400
+20600000
+efe08006
+1fe20e00
+efe10006
+1fe22200
+efe10006
+1fe21600
+efe10006
+1fe20400
+20407d02
+4702c020
+6fe0c4e5
+a8e1fe00
+2420d262
+58000050
+98467c00
+2022d25f
+58000051
+98467c00
+2022d262
+20205262
+7044d800
+7044e000
+20205262
+20407d07
+1a627e00
+9a262600
+20600000
+58000001
+e7e08005
+efe08006
+e7e08005
+58000002
+e7e10005
+58000000
+e7e10005
+58000006
+9a40a400
+18002604
+20600000
+6fe0c4e5
+1fe0fe01
+c0805276
+1fe0fe01
+67e0c4e5
+20600000
+db001800
+dd600080
+20407e62
+20205280
+6b0143dc
+6d6143de
+20407e64
+20205280
+47034020
+204052cc
+243a131f
+204052dc
+df200008
+6848c4e6
+1f260e08
+a84fffff
+2020d28d
+20405294
+2421528d
+204052aa
+20205291
+1d627e00
+9b00b000
+c2005285
+2020131f
+1b027e00
+1b020a00
+20600000
+4703c020
+1f260e08
+d8400000
+d9600000
+18e27e00
+c00452a5
+6fe0c4e6
+afefffff
+2020d2a5
+f9201600
+1d627e00
+98408400
+18e08e01
+1a227e00
+98467c00
+2022d2a5
+20215298
+18427e00
+9a267c00
+24628000
+f9201600
+20600000
+47044021
+204052cc
+243a131f
+204052d2
+203a52b3
+6fe4c4ea
+67e4c4e7
+58000000
+e7e18005
+6160c4f0
+630144f1
+20600000
+4704c021
+204052d5
+18c08c01
+efe10006
+20600000
+47054021
+204052d5
+18c20a00
+18c20400
+58000000
+e7e18005
+20600000
+4705c021
+204052d2
+203a131f
+6fe1c4ed
+67e1c4f0
+6fe1c4ea
+67e1c4ed
+6fe1c4e7
+67e1c4ea
+20600000
+47064021
+6fe1c4e7
+20600000
+4706c021
+6fe1c4ea
+20600000
+47074021
+6fe1c4f0
+20600000
+204052d2
+203a52da
+d8c044e7
+efe18006
+203a52d8
+18c08dfd
+20600000
+4707c021
+df200004
+d8c044e7
+d8400000
+efe18006
+1fe17eff
+98418400
+c20052e0
+6048c4e6
+20600000
+47084022
+da20007f
+20405278
+67e1031c
+1fe0fe04
+67e1031e
+58000000
+67e10320
+20600000
+6fe1031c
+20205310
+6fe1031e
+20205310
+4708c022
+da2000fa
+20405278
+67e10322
+1fe0fe04
+67e10324
+58000000
+67e10326
+20600000
+6fe10322
+20205310
+6fe10324
+20205310
+47094022
+20407cdc
+70033501
+204052cc
+247a0000
+da20007f
+20405278
+67e10328
+1fe0fe04
+67e1032a
+58000000
+67e1032c
+70033500
+20207ce8
+6fe10328
+20205310
+203a131f
+1fe20a00
+20600000
+4709c022
+da400000
+da2044e7
+1a20a3fe
+1a20a202
+580044f3
+9a267c00
+2022d323
+efe08011
+1a20a201
+203a5317
+e8410011
+efe10002
+9a40a400
+1a40a404
+20205317
+1a427e00
+20600000
+d8e0000c
+20201516
+d8e0000c
+2020151a
+470a4022
+204052dc
+6fe0c4e6
+207a0000
+20405313
+d8400100
+98467c00
+20215325
+20405327
+d8a044f3
+da2044e7
+580044f3
+9a267c00
+20628000
+efe08011
+1a20a201
+243a533d
+e7e10005
+1a20a202
+20205334
+efe10011
+1a20a202
+1fe20c00
+efe10006
+e7e10005
+1fe27200
+1f20f202
+20407d6d
+20205334
+470ac022
+204052dc
+6fe0c4e6
+207a0000
+da2044e8
+1a20a3fd
+d8c044f3
+1a20a203
+580044f4
+9a267c00
+20628000
+efe10006
+203a534d
+1fe0fe04
+1fe27200
+18c22400
+efe10011
+1fe20a00
+1a420c00
+18c08dfe
+20407d6d
+2020534d
+20758000
+470b4022
+58000000
+67e08049
+67e08056
+67e08079
+67e0807d
+67e0c160
+67e080bd
+67e08877
+70464200
+70030c00
+7003ab00
+70087700
+70087600
+7003a500
+20600000
+470bc022
+2054d9df
+2454d9e3
+2040599c
+247a0000
+6fe0804d
+c4030000
+793ffe06
+793f8001
+67e0804d
+6fe080cf
+6848804d
+2feffe00
+79208401
+6048804d
+18410402
+60488080
+6848804d
+1fe37e00
+67e0807e
+470c4023
+6fe0807e
+c03fd3cf
+c001d41d
+c002542e
+c01e53c2
+c002d3be
+c007d654
+c0085493
+c011d4b2
+c01cd66d
+c01c5668
+c018d498
+c01bd534
+c013d530
+c019d52d
+c012d532
+c01354ae
+c003d4a7
+c016d49e
+c017549f
+c000d529
+c0015514
+c014565f
+c004d50a
+c005d4d1
+c00454b3
+c00654e3
+c00fd4aa
+c01054ac
+c010d54e
+c011554e
+c01ad54f
+c01b5550
+c012554e
+c01a5551
+c00bd55a
+c008d574
+c0095581
+c009d583
+c006d593
+c0075593
+c017d52e
+c0185593
+c0055593
+c00c5594
+c0195593
+c01ed599
+c01f55e2
+c01fd5db
+c0205625
+c020d636
+c0035653
+c01d53c0
+c01553bc
+c014d3bd
+70007f19
+70007d04
+20600000
+202054a8
+20600000
+70007d06
+20600000
+70007d3b
+20600000
+6fe200d0
+1fe3fe00
+67e240da
+6fe080d4
+67e0c0e1
+6fe280d5
+67e2c0ef
+6fe280da
+e7e28005
+6fe08032
+79207e03
+67e08032
+20600000
+470cc023
+6fe080d0
+79207e07
+67e0807e
+c040d3f4
+c04153f9
+c04ad535
+c04b554e
+c045d543
+c041d40f
+c0425413
+c04853e6
+c04bd408
+c04c540d
+c04cd3e9
+c04d53ec
+c050d3e4
+c1420000
+70007d82
+70007f19
+20600000
+70007da2
+20600000
+70007d82
+70007f2e
+20600000
+204053ee
+70007d9a
+20600000
+204053ee
+202053f2
+d8a04767
+6fe180d1
+e7e18005
+20600000
+2020f095
+20600000
+6fe080d2
+79207e07
+67e0839d
+c045d3fe
+20600000
+6fe080d2
+79207e07
+67e0839d
+c045d402
+20600000
+6fe0c162
+6848804d
+7d3a0405
+6048804d
+6fe08031
+c4028000
+793ffe05
+67e08031
+70007d31
+20600000
+2434d40b
+70007d12
+202059cb
+70007d97
+20600000
+204059cb
+202056aa
+efe08006
+67e083a1
+70007d84
+20600000
+684880d3
+18410401
+604883a4
+6fe0c1de
+c0a8d419
+7041de00
+6fe08056
+c18a8000
+70005604
+202059fb
+470d4023
+6fe080d0
+67e0839d
+c019d444
+c0045453
+c007d45a
+c0085460
+c008d461
+c0095469
+c00c5482
+c00bd485
+c009d43b
+c01ed5ae
+c01f560f
+c02055b0
+c020d5cd
+20600000
+470dc023
+6fe080d0
+67e0839d
+c000d479
+c019d44e
+c005d46a
+c0045470
+c009d43e
+c020547a
+c020d47d
+c00c5480
+c00bd491
+20600000
+70095b20
+2040789f
+202009de
+70095b19
+2040789f
+70464202
+58000050
+d8e00006
+20207d74
+6fe083a5
+79207e00
+67e083a5
+70095b01
+2040789f
+70007d8b
+6fe08056
+c082d36c
+70005606
+20600000
+70039e0b
+70007d07
+70005600
+2020d36c
+20600000
+6fe0c1cd
+247a0000
+20400c5d
+204056a8
+20748000
+79200021
+20600000
+24748000
+70007d10
+6fe0804d
+c4010000
+70007d12
+20600000
+202056aa
+20405706
+6fe08031
+c3820000
+70007d31
+6fe08056
+c1850000
+7000560b
+20600000
+20600000
+6fe0c09a
+1fe67c08
+2042be46
+70007d07
+70039e13
+20600000
+6fe080d1
+c0035476
+c18c0000
+70039e18
+70007d07
+20600000
+70039e06
+70007d07
+20600000
+20600000
+70087000
+70007d07
+2020536c
+70087000
+70007d07
+2020536c
+70095b24
+2020789f
+70095b23
+2040789f
+20200f11
+70095b22
+2040789f
+58000000
+67e10076
+6fe14455
+1fe3fe00
+67e10033
+6fe0c457
+67e08074
+6fe0c459
+67e08075
+20200eee
+70095b21
+2020789f
+684880d0
+18467c06
+20215649
+60488055
+202054a8
+6fe083a5
+79207e02
+67e083a5
+c3818000
+70007d31
+2020536c
+20600000
+6fe0c0d8
+684880d0
+98467c00
+202154a8
+70007d04
+70007f1f
+70007e2e
+20600000
+2020581d
+70007d03
+20600000
+70007d21
+20600000
+70007d22
+20600000
+6fe08056
+c1098000
+70005602
+20600000
+20600000
+6fe0c6b5
+243a54bc
+204056a5
+7003a801
+70095b0a
+2040789f
+204059d3
+2420d6ad
+2434d4c0
+70007d04
+70007e08
+70007f23
+20600000
+6fe0804c
+79207e02
+67e0804c
+20600000
+6848804d
+7d3a0401
+6048804d
+20600000
+6fe08080
+1fe37e00
+1fe17e01
+20600000
+6fe0c48d
+207a0000
+6fe08877
+205a6056
+20600000
+204054cc
+204054c8
+67e083a9
+6fe0c645
+c00154de
+204056a5
+70007d0c
+6fe0c1cd
+247a0000
+6fe08031
+c3830000
+70007f06
+202053ba
+70007d0b
+d8a008f0
+d8c000d0
+20407d1a
+202054d8
+6fe0c645
+c00154f3
+da200041
+20406b69
+684a0454
+6fe200d0
+98467c00
+2022d4ee
+70007d07
+70039e05
+20600000
+20406c67
+204054fc
+6fe0c763
+203a55ce
+20600000
+6fe200d0
+684a091c
+98467c00
+2022d4f8
+202054eb
+204054fc
+6fe0c6b7
+c280d5ce
+20600000
+204009b4
+6fe0804c
+2feffe01
+793ffe01
+67e0804c
+6fe08056
+c00cd505
+c00c5505
+20600000
+6fe08877
+c1800000
+6fe0804d
+c3810000
+20205a92
+da2000d0
+da400444
+d8a00424
+20406c33
+da200041
+204059f1
+70007d0b
+6fe08031
+c30356a8
+20600000
+6fe100af
+1fe0f3fd
+684880d0
+58000a01
+98408a00
+d8c000d2
+20407d6d
+68488054
+6fe080d1
+98467e00
+1fe67c0e
+20215524
+1840fe0e
+67e08054
+70007d01
+20600000
+6fe0804d
+79207e03
+67e0804d
+c28256b2
+20600000
+6fe080d0
+67e0807e
+70007d02
+20600000
+202054a8
+70007d30
+20600000
+70007d28
+20600000
+70007d26
+20600000
+20600000
+6fe10033
+98000400
+6fe080d1
+67e08093
+984f8400
+6fe100d2
+1fe3fe00
+67e10094
+6fe200d4
+1fe3fe00
+67e2008f
+18427e00
+67e10096
+20600000
+6848c162
+6fe080d1
+9842fc00
+2422d3e1
+2feffe00
+6fe0804d
+7920fe05
+67e0804d
+70007d81
+70007e8b
+20600000
+20600000
+202054a8
+202054a8
+6fe100d0
+67e100c1
+20600000
+6fe100d3
+6848c17a
+984ffe00
+d8400640
+98467c00
+20600000
+6fe100d5
+203a5649
+20405554
+20215649
+6fe0c09a
+1fe67c0a
+2042bcd3
+6fe08031
+c280d649
+6fe100d1
+1fe3fe00
+67e10076
+6fe100d3
+1fe3fe00
+67e10033
+6fe100d5
+67e08074
+98000400
+6fe100d7
+67e08075
+98467c00
+24215571
+67e08074
+70007d03
+70007e17
+20600000
+6fe0c645
+c001557a
+204054a8
+204056a5
+20406b6c
+20200ede
+204054a8
+20400ede
+204074f9
+d8a00063
+d8c00910
+df200010
+20207e74
+204054a8
+20200ee8
+6fe200d0
+1fe3fe00
+2034d58d
+6848c1cd
+243a558a
+70007e13
+20205649
+70007d34
+70005600
+202009db
+204009db
+79200022
+6fe080bd
+793ffe02
+67e080bd
+202054a8
+20600000
+70007d03
+70007e18
+70095b2e
+2040789f
+20200f11
+70087900
+6fe080d0
+67e0c644
+c080d649
+684880d1
+6048c645
+6fe0c6b5
+203a55a3
+18467c02
+2422d4eb
+6fe080d2
+c02055a7
+c01855a7
+20205649
+67e0c646
+204059dc
+2020d5ab
+70087001
+70007d03
+70007e3d
+2020536c
+70007d3e
+20600000
+6fe0c76b
+c000d5b7
+c00155bb
+204059dc
+20608000
+70087008
+20600000
+2040731f
+70095b35
+2040789f
+202055b3
+204059dc
+20608000
+6fe0c76c
+c009d5cb
+1fe0fe01
+67e0c76c
+70087201
+70087004
+6fe0c76c
+1fe20e00
+6fe34793
+afefffff
+58000080
+7920fe00
+67e0c76d
+20600000
+70087008
+20600000
+204055d3
+6fe0c76e
+207a0000
+70476e00
+70095b38
+2020789f
+204059dc
+2440f329
+2040f339
+204059dc
+20608000
+7008700c
+70087201
+20600000
+d8a00930
+d8c000d0
+20407d1a
+6fe0c76b
+c1010000
+20207095
+20600000
+6fe0c645
+c000d5f8
+c00155e6
+20205649
+6fe08871
+c003d5ea
+6fe08870
+c080d649
+6fe08879
+1fe60a30
+24215649
+d8a00880
+98a08a00
+6fe400d0
+e7e40005
+6fe400d8
+e7e40005
+6fe08879
+1fe0fe10
+67e08879
+c0a054a8
+20205609
+6fe08871
+c003d5fc
+6fe08870
+c080d649
+6fe08879
+1fe60a20
+24215649
+d8a00888
+98a08a00
+6fe400d0
+e7e40005
+6fe400d8
+e7e40005
+6fe08879
+1fe0fe10
+67e08879
+c09854a8
+204059dc
+2020d4a8
+70087a01
+70087002
+70087201
+202054a8
+6fe0c645
+c000d613
+c0015617
+20600000
+6fe08878
+c018561b
+70007d3e
+20600000
+6fe08878
+c020561b
+70007d3e
+20600000
+204059dc
+2020d624
+6fe0c76b
+c0015622
+70087201
+70087004
+2020536c
+70095b36
+2020789f
+2020536c
+6fe08871
+c003d629
+6fe08870
+c0835649
+d8a008f0
+6fe400d0
+e7e40005
+6fe400d8
+e7e40005
+204059dc
+2020d633
+70087007
+70087201
+202054a8
+70087104
+20207095
+20205649
+6fe08871
+c005d63a
+6fe08870
+c0845649
+d8a00920
+d8c000d0
+20407d1a
+204059dc
+2020d646
+6fe0c76b
+c000d64b
+70476a00
+70087009
+70087201
+70007e41
+2020536c
+70087109
+70087301
+2020536c
+70007f24
+202053ba
+6fe0c76a
+c283d650
+79207e06
+67e0c76a
+20600000
+c2805641
+70476a00
+20205649
+2020536c
+6fe080bd
+793ffe01
+67e080bd
+204054a8
+24748000
+6fe080d0
+6848804c
+793a0404
+7d3a0405
+6048804c
+20600000
+684c00d0
+6fe08056
+c1818000
+6fe080bd
+c3025666
+70005614
+20600000
+70005604
+20600000
+6fe080e4
+67e08a5b
+70007d03
+70007e38
+20600000
+70007d03
+70007e39
+18007209
+d8c000d0
+d8a00a52
+efe08006
+1fe2fe55
+e7e08005
+c2005672
+6fe08a52
+68488a51
+793f8407
+793f8404
+c07fd686
+c000569f
+c002d693
+c003d692
+c0035693
+c0045692
+c000d68b
+c001568b
+c001d68b
+c004d68b
+c002568b
+20600000
+6fe08a51
+79207e03
+79207e02
+67e08a51
+20600000
+79200404
+7000e505
+6fe10a59
+98007200
+67e100af
+d8a000cf
+20407de1
+79200407
+79200402
+18007e00
+67e0800b
+67e109fa
+67e109fc
+67e109f8
+67e109f6
+6fe08a53
+2fe1fe00
+79208406
+60488a51
+20600000
+793f8011
+700a5100
+6fe080e4
+793ffe06
+67e080e4
+20600000
+d8c000d0
+d8a00424
+20207d1a
+70007d09
+20600000
+24748000
+70007d11
+20600000
+da2040a8
+20406b36
+70007d03
+70007e08
+20600000
+7000730a
+70007d07
+70039e16
+20600000
+470e4023
+78547c00
+204059a1
+6fe08049
+207a0000
+c283d6eb
+c000d835
+c00157b6
+c001d6f7
+c002570d
+c013d8a1
+c01457da
+c01857c6
+c012d89c
+c01357d5
+c018d889
+c01bd830
+c019d822
+c0045923
+c004d919
+c005d92e
+c006593b
+c007d828
+c0085971
+c008d967
+c003d818
+c0155844
+c0055845
+c00fd882
+c00357cb
+c010d825
+c016d878
+c017587d
+c0115825
+c01a5846
+c009d85b
+c00bd86a
+c009596e
+c017d870
+c00c5875
+c01ed8c4
+c01f58cc
+c01fd8e7
+c02058f1
+c020d906
+c011d915
+c01dd910
+c002d916
+c014d917
+c01c5918
+c01cd83b
+2020131f
+20600000
+c040d71a
+c041d7df
+c0425749
+c0415723
+c045d7ec
+c04bd814
+c04cd7a7
+c04d5776
+c04ad7ac
+c04b57ad
+c0515746
+2020131f
+18007e02
+20405977
+6fe0804a
+e7e08005
+20405986
+470ec023
+6fe0804a
+c004572d
+c007d731
+c008573c
+c00bd70c
+c019d73f
+c020d745
+c008d706
+20600000
+6fe08056
+207a0000
+7000561b
+5800000c
+d8e00007
+20207d74
+20200eee
+18007e03
+20405977
+6fe0804a
+c005d715
+e7e08005
+6fe0804b
+e7e08005
+20205986
+e7e08005
+6fe0804b
+e7e08005
+d84003a9
+202059c2
+18000e04
+2040597f
+5800007f
+e7e08005
+6fe0804a
+793ffe07
+e7e08005
+6fe0804a
+20205986
+18000e05
+2040597f
+5800007f
+e7e08005
+6fe0804a
+793ffe07
+e7e08005
+6fe0804b
+e7e08005
+20205986
+20400c5d
+204059d3
+20608000
+202056a8
+6fe0804c
+c282d738
+c4020000
+70007d12
+793ffe04
+204059cb
+2020573a
+70007d10
+793ffe05
+67e0804c
+20600000
+204059dc
+2020d6aa
+20600000
+70007d8b
+6fe083a5
+79207e00
+67e083a5
+70095b01
+2020789f
+20600000
+18000e02
+2040597f
+2020598f
+1fe22200
+2040575f
+6fe083a1
+c000d74f
+c0015757
+20600000
+1a227e00
+18000e0c
+2040597f
+58000001
+e7e08005
+6fe103a2
+e7e48005
+2020598f
+1a227e00
+18000e0c
+2040597f
+58000002
+e7e08005
+58010002
+e7e48005
+2020598f
+6fe0c763
+203a5763
+20405769
+20205770
+6fe0c0a6
+793ffe03
+67e0c0a6
+58000001
+67e103a2
+20206ef9
+470f4023
+6fe0c0a6
+79207e03
+67e0c0a6
+58000101
+67e103a2
+20600000
+6fe0c6b7
+c280d773
+20600000
+58000902
+67e103a2
+20600000
+18000e05
+2040597f
+6fe1c764
+e7e18005
+2040598f
+70476e01
+6fe0c764
+c000d787
+c0015781
+c001d78d
+20600000
+6fe0c767
+c0005799
+c000d799
+c0015799
+c001d793
+20600000
+6fe0c767
+c0005793
+c000d797
+c0015799
+c001d793
+20600000
+6fe0c767
+c0005793
+c000d793
+c0015793
+c001d793
+20600000
+70476b03
+6fe0c643
+c28030b0
+20600000
+70476b01
+20600000
+70476b02
+20600000
+d8e00000
+2020579f
+d8e00000
+202057a3
+6fe0c643
+f9207e00
+67e0c643
+20600000
+6fe0c643
+f93ffe00
+67e0c643
+20600000
+18000e05
+2040597f
+6fe1c764
+e7e18005
+20205991
+20600000
+18000e09
+2040597f
+6fe08093
+e7e08005
+6fe10094
+e7e10005
+6fe2008f
+e7e20005
+2020598f
+18007e11
+20405977
+6fe0804a
+1fe20400
+c00057be
+c00757be
+c00e57be
+20600000
+e7e08005
+6fe0c5fc
+e7e08005
+df20000e
+580045fd
+98408c00
+20407d6d
+2020598f
+18007e03
+20405977
+58000114
+e7e10005
+2020598f
+18007e03
+20405977
+6fe200b5
+9c467e00
+2034d7d1
+1fe67e00
+1feb7e00
+793ffe0f
+e7e10005
+2020598f
+18007e06
+20405977
+6fe2c5f7
+e7e28005
+2020598f
+18007e09
+20405977
+6fe440a0
+e7e40005
+2020598f
+2040575f
+6fe08049
+18000e0c
+2040597f
+58000001
+e7e08005
+6fe103a2
+e7e10005
+58000000
+e7e18005
+58000000
+e7e20005
+20205991
+18000e03
+2040597f
+6fe0c162
+e7e08005
+78547c00
+20405991
+24740000
+24748000
+6fe0c0e0
+c4000000
+204057f8
+20205802
+7040e003
+58000000
+67e2414a
+d8a040e2
+20405806
+d8a040ef
+20405806
+d8a0414e
+20405806
+2020580d
+d8a040ef
+20405806
+2040580d
+20205810
+58ffffff
+e7e18005
+e7e18005
+e7e18005
+5800007f
+e7e08005
+20600000
+58000000
+67e140de
+20600000
+6fe0c0e0
+79207e02
+67e0c0e0
+20600000
+18000e02
+2040597f
+2434d98f
+20205991
+18007e02
+20405977
+6fe0839e
+e7e08005
+20405991
+6fe0804c
+79207e03
+67e0804c
+70007332
+20600000
+18007e01
+20405977
+20205991
+18007e01
+20405977
+2020598f
+18007e02
+20405977
+6fe0804d
+2fec0002
+7920fe00
+1fe17e01
+e7e08005
+20205991
+18007e03
+20405977
+6fe10052
+e7e10005
+20205991
+700073fa
+18007e02
+20405977
+6fe08054
+e7e08005
+20205991
+18007e0a
+20405977
+d8c00a52
+18007209
+efe08006
+1fe2fe55
+e7e08005
+c200583f
+20205991
+20205991
+20205991
+20748000
+20401049
+18007e09
+20405977
+6fe100c1
+e7e10005
+6fe1c0a8
+e7e18005
+6fe0c0ab
+e7e08005
+6fe140ac
+e7e10005
+c581d857
+793f8003
+20405991
+70007d13
+20600000
+2040598f
+70007d03
+70007e13
+20600000
+d8400200
+2034d85f
+1d027e00
+20205860
+1c427e00
+1c227e00
+9840fe00
+1fe17ffc
+67e20035
+18007e05
+20405977
+6fe20035
+1fe37e00
+e7e20005
+20205991
+18007e0a
+20405977
+d8c003ac
+efe48006
+e7e48005
+20205991
+18007e03
+20405977
+58000114
+e7e10005
+20205991
+18007e01
+20405977
+20205991
+18007e02
+20405977
+6fe0c0d8
+e7e08005
+20205991
+18007e02
+20405977
+58000005
+e7e08005
+20205991
+18007e02
+20405977
+58000000
+e7e08005
+20205991
+70007d2e
+20600000
+6fe0c09a
+1fe67c0a
+2042d887
+6fe08031
+79207e04
+67e08031
+1c427e00
+67e203bc
+6fe083a5
+c281d89a
+79207e03
+67e083a5
+70095b05
+2040789f
+18007e01
+20405977
+20205991
+70004900
+20600000
+18007e06
+20405977
+6fe2c5f7
+e7e28005
+20205991
+18007e09
+20405977
+6fe440a0
+e7e40005
+20205991
+70087301
+6fe0c6b8
+c1808000
+70087113
+20600000
+204059cf
+70007d99
+70087103
+20600000
+204059cf
+70007d3d
+70087107
+20600000
+da200910
+da400930
+df200010
+20407dff
+2022d8bc
+70087100
+20407097
+70007e40
+20205649
+7008710a
+20407095
+70007e40
+202054a8
+70007d40
+20600000
+70007d3d
+20600000
+70087800
+18007e04
+20405977
+6fe1c644
+e7e18005
+204059dc
+2020d991
+2020598f
+6fe0c645
+c00158d0
+c000d8d5
+20600000
+18007e11
+20405977
+6fe08878
+d8c046db
+202058d9
+18007e11
+20405977
+6fe08878
+d8c04733
+98c08c00
+efe40006
+e7e40005
+efe40006
+e7e40005
+6fe08878
+1fe0fe10
+67e08878
+204059dc
+2020d991
+2020598f
+70087006
+70007d3f
+20600000
+18007e11
+20405977
+d8c00910
+efe40006
+e7e40005
+efe40006
+e7e40005
+2020598f
+70007d40
+20600000
+204059dc
+2040efaa
+18007e11
+20405977
+d8c008e0
+efe40006
+e7e40005
+efe40006
+e7e40005
+204059dc
+2420d98f
+2020d991
+7008710f
+204059cf
+70007d0b
+204059e7
+2020eff8
+20207002
+204059cb
+70007d41
+20600000
+18007e11
+20405977
+d8c00910
+efe40006
+e7e40005
+efe40006
+e7e40005
+204059dc
+2420d98f
+2020d991
+18007e03
+20405977
+5800fffe
+e7e10005
+2020598f
+20205991
+20205991
+20205991
+20205991
+204059eb
+da2040a8
+204059f1
+18007e11
+20405977
+da200444
+da400424
+20406c33
+2434d986
+2020598c
+204059eb
+da200041
+20406b36
+18007e11
+20405977
+d8c00424
+20407d1a
+6fe08056
+c00cd991
+c00c5991
+2020598c
+6fe0c645
+c0015939
+6fe08877
+203a5936
+204059dc
+2040d9cf
+2440d9cb
+20205937
+204059cf
+204059eb
+20205926
+70007d0c
+20205932
+6fe0c645
+c0015955
+da2040a8
+20406b69
+18007e05
+20405977
+6fe20454
+e7e20005
+d84003a9
+204059c2
+20406c67
+204059dc
+2020d94c
+7003ab01
+6fe08877
+207a0000
+70007d0b
+6fe0c1cd
+207a0000
+204059dc
+2420d951
+20600000
+c6908000
+793f8021
+70007d0f
+20600000
+20407521
+20407546
+18007e05
+20405977
+6fe20918
+e7e20005
+d84003a9
+204059c2
+20405964
+204059dc
+2020d94c
+7003ab01
+6fe08877
+207a0000
+2020594c
+6fe40910
+67e446a9
+20600000
+204059eb
+20406b6c
+18007e11
+20405977
+d8c00424
+20407d1a
+2020598c
+18007e01
+20405977
+2020598c
+18007e02
+20405977
+18007e10
+e7e08005
+67e08055
+2020598c
+1fe9fe00
+1fe1fe07
+67e0838a
+df200011
+d8a0038c
+20407d34
+d8a0038c
+20600000
+1fe1227f
+7000497f
+18e27e00
+20405977
+1a227e00
+e7e08005
+20600000
+6fe08049
+1fe3fe00
+6848804d
+284ffe01
+7920fe00
+20205996
+6848804d
+18410401
+20205992
+18000400
+20205992
+18000401
+6fe08049
+1fe3fe00
+7934fe00
+9842fe00
+67e0838b
+67e0c5f6
+70004900
+204059a7
+78347c00
+20600000
+6fe0807d
+207a0000
+204059a1
+6fe0807d
+20600000
+470fc023
+6fe08049
+203a59a7
+6fe08079
+247a0000
+202059b1
+6fe08079
+203a59b7
+6fe18079
+67e18049
+6848807c
+6fe0804d
+793ffe01
+9841fe00
+67e0804d
+70007900
+6fe0807d
+207a0000
+6fe2007d
+67e20079
+70007d00
+20600000
+6fe0807d
+207a0000
+6fe1807d
+67e18049
+68488080
+6fe0804d
+793ffe01
+9841fe00
+67e0804d
+70007d00
+20600000
+47104024
+6fe0804d
+1fe22600
+efe08002
+204054c4
+20405986
+1a627e00
+67e0804d
+20600000
+6848804d
+793f8400
+6048804d
+20600000
+6848804d
+79200400
+6048804d
+20600000
+7d34fe01
+6848804d
+9842fe00
+2feffe01
+20600000
+6fe0804d
+7934fe01
+67e0804d
+20600000
+6fe08876
+2fe0fe01
+20600000
+6fe08876
+79207e07
+67e08876
+20600000
+6fe08876
+793ffe07
+67e08876
+20600000
+6fe08876
+2feffe07
+67e08876
+20600000
+d8a00424
+18007210
+180a7e00
+e7e08005
+c20059ed
+20600000
+20406b3a
+da2041ce
+da400454
+efe40011
+68488031
+7d3a0406
+60488031
+1a220a00
+20406c33
+202009c6
+4710c024
+2040599c
+247a0000
+6fe08056
+207a0000
+c0025a4f
+c002da55
+c0015a46
+c001da5d
+c0075a49
+c0035a79
+c003da91
+c004da92
+c0055a9b
+c005da9f
+c0065a67
+c006da6a
+c007da70
+c0095a39
+c009da5d
+c0085a3c
+c00a5a36
+c00ada5d
+c00b5a30
+c00c5a35
+c00bda29
+c00cda2f
+c00d5a1a
+c00dda24
+70005600
+20600000
+6fe083a5
+c4010000
+c4018000
+70005600
+20405a20
+202065d0
+6fe080bd
+c4008000
+7000560a
+20600000
+d8e00007
+20407d82
+247a0000
+7000561a
+20600000
+6fe080bd
+793ffe00
+67e080bd
+70005619
+70007d0b
+20600000
+20600000
+6fe083a8
+c1810000
+20405aa1
+70005618
+20600000
+20600000
+70005615
+70007d83
+20600000
+70005613
+70007d25
+20600000
+6fe0c642
+c1000000
+c000da44
+d8e00006
+20407d82
+247a0000
+70464200
+20205a5e
+20748000
+20205a79
+70005603
+70007d27
+20600000
+70007d13
+79200003
+70005605
+580001ff
+67e103a6
+20600000
+70005605
+580000ff
+67e103a6
+793f8022
+70007d33
+20205369
+c6110000
+6fe103a6
+1fe0ffff
+2022da5b
+67e103a6
+20600000
+7000560e
+20600000
+20600000
+6fe083a5
+c4018000
+c4010000
+6fe080bd
+793ffe02
+67e080bd
+70007d13
+70005610
+20600000
+7000560d
+70007d31
+20600000
+6fe083a5
+c4010000
+70005600
+20600000
+70005606
+20600000
+6fe103a6
+1fe0ffff
+203a5a75
+67e103a6
+20600000
+70007d07
+70039e16
+70005600
+20600000
+6fe080bd
+c2815a5e
+c2805a7e
+7000561a
+20600000
+6fe0c1cd
+203a5a8a
+6fe083a5
+c4018000
+c4010000
+6fe203bc
+d8400064
+98408400
+1c427e00
+98467c00
+24610000
+20205a29
+70005616
+70479204
+58003030
+67e14793
+e7e10005
+7003a802
+20205a30
+20600000
+6fe080bd
+c280da96
+7000561a
+20600000
+6fe080bd
+793ffe01
+67e080bd
+70007d0f
+20600000
+6fe083ab
+207a0000
+70005600
+20205a96
+7000560c
+20600000
+6fe0804c
+c2815aa6
+204059cf
+70007d08
+20204d65
+6fe0804c
+793ffe02
+67e0804c
+204056ad
+204059d8
+20204d65
+58000004
+67e0c792
+58003030
+e7e10005
+e7e10005
+20600000
+47114024
+1fe17eff
+d8a08070
+98a08a00
+18a22200
+d840003e
+e0408005
+20405acb
+2000001e
+1a220a00
+d840003f
+e0408005
+20205ad3
+1fe17eff
+d8a08070
+98a08a00
+18a22200
+d840003e
+e0408005
+20405acf
+2000001e
+1a220a00
+d840003f
+e0408005
+20205ad7
+6ff08085
+1fe17efb
+67f08085
+20600000
+6ff08085
+1fe17ef7
+67f08085
+20600000
+6ff08085
+1fe1fe04
+67f08085
+20600000
+6ff08085
+1fe1fe08
+67f08085
+20600000
+1fe22400
+20405aed
+20000064
+1a427e00
+20405af3
+1fe22400
+20405aef
+20000064
+1a427e00
+20600000
+1fe22400
+20405aed
+20000064
+1a427e00
+20405af1
+20405aef
+20000064
+20600000
+6848c48a
+202060b8
+6848c48a
+202060b4
+20205c70
+20205d47
+20205c77
+20205d4d
+6ff08085
+1fe17efd
+67f08085
+20600000
+24345afd
+6ff08085
+1fe1fe02
+67f08085
+18427c00
+2022db00
+1a627a00
+2fcc0000
+20205bcc
+18000404
+da2002eb
+20405af5
+20405afd
+da2055aa
+6fe102eb
+e8410006
+9a267c00
+20600000
+d8400002
+da2002f1
+20405afd
+6fe102f1
+67e102e4
+20545b12
+20600000
+d8400010
+da2002f3
+20405af5
+20405afd
+d8c002f3
+df200010
+20406ddf
+20406d8f
+20406df8
+20206d89
+7856fc00
+20405b02
+24628000
+7836fc00
+70802380
+70802200
+70802400
+da208025
+20405af9
+70802300
+d8400006
+20405b03
+24628000
+efe10006
+98002200
+20405afd
+20205b26
+6fe08a04
+d8c00a01
+98c08c00
+70802380
+70802200
+70802400
+da208025
+ef208006
+1f267c00
+2442db3f
+70802300
+efe08006
+207a0000
+1fe27200
+ea410006
+1a420a00
+20407d6f
+20205b38
+efe08006
+e7e08011
+c2005b3f
+20600000
+20407e10
+58001000
+67e102e4
+da605e2f
+df200002
+20405b02
+24628000
+6fe102e4
+1ff0fe00
+9840fe00
+1ff0fe00
+67e102e4
+c2005b48
+20205b26
+20407e10
+70805025
+58000000
+da200a01
+d8400040
+20405eb0
+20405b9d
+78547c00
+6fe08a01
+c301db62
+70800608
+7920002b
+18007004
+20406df9
+18007004
+6de20a3d
+78347c00
+6fe20a01
+203a5b66
+20405bf7
+20405b2d
+7041e600
+6fe08a01
+c2815b81
+20405bc5
+20405b79
+20405e0c
+20405bbf
+2436db71
+6fe082e1
+c3005b67
+20205b8f
+20405e09
+6fe08a01
+c2815b81
+20405bbf
+2436db81
+6fe082e1
+c3005b67
+20205b8f
+6fe0c4c6
+6848c4c5
+98467c00
+2422ddf2
+7044c40f
+7044c510
+7044c611
+20205df2
+7041e600
+20405bc5
+6fe08a01
+c280db8f
+20405cc1
+200000c8
+20405ccf
+20000064
+da605d03
+20405b0b
+20405b1c
+2436db8f
+6fe082e1
+c3005b82
+6fe08a01
+c3005b93
+20405b93
+20204ca7
+58000000
+67e20a3d
+18007004
+20406df9
+70805021
+20600000
+1ff18400
+1fe17e0f
+9842fe00
+20600000
+6fe20a01
+207a0000
+6fe08a01
+20405b99
+c087dbcb
+6fe08a02
+20405b99
+c087dbcb
+6fe08a01
+e8408006
+9840fe00
+e8408006
+9840fe00
+e8408006
+9840a200
+dfe00a01
+98408c00
+1a227e00
+ef208006
+9f20fe00
+20407e6e
+20405bb8
+e8408006
+1fe17eff
+98467c00
+2422dbcb
+20600000
+ef208006
+1f267c00
+20628000
+9f20fe00
+1f20f202
+20407e6e
+20205bb8
+58000000
+67e102e4
+da605e2f
+20405ddb
+20405b0b
+20205b1c
+6fe0c1e6
+1fe0fe01
+1fe67c03
+24215bcb
+67e0c1e6
+20600000
+20205c3d
+6fe082e1
+1fe3fe00
+7920fe00
+2a2c000f
+20608000
+67e082e1
+20600000
+6ff08085
+c4008000
+20205bd9
+6ff0812c
+afefffff
+20608000
+6ff08108
+c300dbd6
+20406d89
+20205bd6
+1f220400
+604941ab
+70802380
+70802200
+70802400
+67e141a9
+98000a00
+1f2bf200
+6ff08025
+e7e08005
+c2005be5
+70802300
+20600000
+6fe141a9
+207a0000
+70802380
+70802200
+70802400
+684941ab
+184bf200
+98000c00
+efe08006
+67f08025
+c2005bf2
+70802300
+20600000
+6fe08a02
+1fe17e0f
+c0055c06
+c000dc06
+c0025c08
+c002dc0c
+c0045c0d
+c004dc11
+c005dc15
+c0065c06
+c006dc17
+c0075c1b
+c007dc1f
+c0015c26
+20600000
+20405c23
+20205c47
+dfe035fa
+d8404c7f
+20405c2c
+20205c47
+20205c47
+dfe030fe
+d8403cf9
+20405c2c
+20205c47
+dfe030fe
+d8404a7c
+20405c2c
+20205c47
+20405c2f
+20205c47
+dfe030fe
+d8404997
+20405c2c
+20205c47
+dfe034d8
+d8404c7f
+20405c2c
+20205c47
+dfe0329a
+d8404c7f
+20405c2c
+20205c47
+dfe01554
+d8401dfe
+20205c2c
+dfe03885
+d8404c7f
+20405c2c
+20205c47
+dfe03885
+d8403cf9
+67f10013
+60590015
+20600000
+dfe030fe
+d8404c7f
+20205c2c
+dfe0536d
+d8405aa6
+20205c37
+dfe024dd
+d8402a9f
+67f10017
+60590019
+20600000
+dfe02aa4
+d8402fa9
+20205c37
+20405c32
+dfe024dd
+d8402a9f
+20205c2c
+6fe08a03
+1fe17ec0
+c0605c3d
+c2835c35
+c283dc32
+20600000
+20405c41
+6fe08a03
+1fe1221f
+6fe08a01
+1fe17e0f
+68488a02
+1841040f
+18520400
+9841fe00
+1a2d2200
+9a21fe00
+79207e0d
+79207e0e
+67f2004c
+20405c5b
+70801108
+20600000
+6ff10120
+79207e0d
+67f2004c
+58000002
+37d98200
+67f08012
+37d98200
+37d98200
+20600000
+6ff10120
+793ffe0e
+67f2004c
+20205c5b
+4711c024
+20205c67
+6fe0c488
+67f08086
+6fe0c489
+67f08087
+580002e2
+67f1008a
+580002e7
+67f1008c
+20205acb
+79207e07
+67e102e2
+47124024
+70808802
+70808e00
+70800602
+20205c80
+18000401
+67e082e2
+4712c024
+70808801
+6059008e
+70800602
+20405c80
+6fe082e7
+20600000
+6fe140de
+1fe0fe01
+67e140de
+6ff0812c
+c301dc80
+20600000
+78547c00
+1fe22400
+6fe0c4af
+c1800000
+78347c00
+1a427e00
+20205c94
+6fe0c4af
+c000dc94
+c0015c9a
+c001dca2
+c0025ca6
+c002dcac
+20600000
+67e1c4a8
+1a227e00
+67e144ab
+604944ad
+7044af02
+20205cc1
+20405cc1
+7044af03
+20405cc6
+da2002e2
+70808804
+6fe1c4a8
+d8400020
+20205cd7
+20405cc1
+20405cfa
+7044af04
+20600000
+20405cc1
+7044af05
+20405cc6
+20405cb9
+20405cd3
+20205cb4
+20405cc1
+20405cc6
+58000005
+20405c77
+c3800000
+7044af00
+6fe14473
+20207e13
+6fe20964
+684944ab
+184085fc
+e7e20002
+20600000
+684944ab
+18422200
+184085fc
+efe20002
+67e20964
+684944ad
+6fe1c4a8
+20600000
+20405d25
+20405acb
+58000000
+67e202e2
+20600000
+7002e206
+58000000
+67f1008e
+58000001
+67f10088
+580002e2
+67f1008a
+70800602
+20205c80
+7002e2ab
+20205cc7
+7002e2b9
+20205cc7
+18408404
+60590088
+d8400002
+1a20a3fc
+e0408011
+1ff10400
+e0408005
+1fec8400
+e0408005
+e7e08005
+1a227e00
+67f1008a
+58000000
+67f1008e
+70800602
+20405c80
+20205cfa
+6059008e
+1ff10400
+604882e3
+1fec8400
+604882e4
+67e082e5
+58000004
+67f10088
+7002e203
+580002e2
+67f1008a
+1a227e00
+67f1008c
+6ff08086
+2a2c000f
+7920fe06
+67f08086
+70800602
+6ff0812c
+c283dcf6
+d8e00003
+20205c80
+580007d0
+20401322
+20405cc6
+580002e7
+67f1008c
+58000005
+20405c77
+c2805cfa
+20600000
+6059008e
+58000004
+67f10088
+7002e203
+580002e2
+67f1008a
+1a227e00
+67f1008c
+6ff08086
+2a2c000f
+7920fe06
+67f08086
+70800602
+6ff0812c
+c283dd10
+d8e00003
+20405bd3
+20405c80
+2feffe02
+20405bcc
+6fe082e3
+1ff02400
+6fe082e4
+1fed7e00
+9a41a400
+6fe082e5
+9a41fe00
+9840fe00
+67e082e5
+1fecfe00
+67e082e4
+1fecfe00
+67e082e3
+20600000
+6fe0c4b8
+6848c4ba
+98467c00
+2422dd2a
+20405d36
+6fe0c4b8
+d8400020
+204060e2
+6fe0c4bb
+d8400021
+204060e2
+6fe0c4b9
+d8400022
+204060e2
+6fe0c4ba
+d840001f
+202060e2
+7044b80e
+7044b90d
+7044ba10
+7044bb0f
+7044bc11
+7044bd12
+20600000
+20205d3e
+6fe0c488
+67f080c0
+6fe0c489
+67f080c1
+58000303
+67f100c4
+58000307
+67f100c6
+20205acf
+79207e07
+67e10303
+7080c202
+7080c800
+70800601
+20205d55
+18000401
+67e08303
+7080c201
+605900c8
+70800601
+20405d55
+6fe08307
+20600000
+6fe140de
+1fe0fe01
+67e140de
+6ff0812d
+c301dd55
+20600000
+20405dcd
+58000000
+67e20303
+6ff080c0
+79207e03
+67f080c0
+20600000
+58000000
+67f100c8
+58000001
+67f100c2
+58000303
+67f100c4
+70030306
+70800601
+20205d55
+6fe0c4b7
+c000dd72
+c0015d78
+c001dd80
+c0025d84
+c002dd8a
+20600000
+67e1c4b0
+1a227e00
+67e144b3
+604944b5
+7044b702
+20205d5b
+20405d5b
+7044b703
+20405d62
+da200303
+7080c204
+6fe1c4b0
+d8400020
+20205da1
+20405d5b
+20405dc4
+7044b704
+20600000
+20405d5b
+7044b705
+20405d62
+20405d95
+20405d9d
+20205d92
+20405d5b
+20405d62
+58000005
+20405d4d
+c3800000
+7044b700
+6fe14475
+20207e13
+6fe20964
+684944b3
+20205cb6
+684944b3
+18422200
+184085fc
+efe20002
+67e20964
+684944b5
+6fe1c4b0
+20600000
+18408404
+605900c2
+d8400002
+1a20a3fc
+e0408011
+1ff10400
+e0408005
+1fec8400
+e0408005
+e7e08005
+1a227e00
+67f100c4
+58000000
+67f100c8
+70800601
+20405d55
+20205dc4
+605900c8
+1ff10400
+60488304
+1fec8400
+60488305
+67e08306
+58000004
+67f100c2
+70030303
+58000303
+67f100c4
+1a227e00
+67f100c6
+6ff080c0
+2a2c000f
+7920fe06
+67f080c0
+70800601
+6ff0812d
+c283ddc0
+d8e00003
+20205d55
+580007d0
+20401322
+20405d62
+58000307
+67f100c6
+58000005
+20405d4d
+c2805dc4
+20600000
+6fe0c4be
+d8400028
+204060e2
+6fe0c4c1
+d8400029
+204060e2
+6fe0c4bf
+d840002a
+204060e2
+6fe0c4c0
+d8400027
+202060e2
+70801001
+20600000
+70809105
+70809207
+70809307
+70809407
+70809507
+70809605
+70809700
+20600000
+7080910c
+7080920d
+7080930d
+7080940d
+7080950d
+7080960c
+70809700
+20600000
+20405e20
+6fe0c4c5
+d840002c
+204060e2
+6fe0c4c6
+d840002d
+202060e2
+20405e27
+20205dec
+6ff0812c
+c302ddf4
+20600000
+67e082e6
+580002e6
+67f1009a
+58000001
+67f10098
+6059009e
+6231009c
+70809001
+70800604
+20205df4
+58000000
+67f1009e
+67f1009c
+60590098
+6231009a
+70809001
+70800604
+20205df4
+79200028
+70448708
+20600000
+793f8028
+70448720
+20600000
+6fe0c479
+9a40fe00
+67e082e4
+20205e16
+6fe102e4
+1ff0fe00
+67e082e4
+58000003
+67f10098
+7002e3a0
+7002e5a1
+20205e35
+60490964
+20405e20
+68490964
+20405e4f
+20205e27
+6fe0c4c4
+c17f8000
+c3035e25
+580249f0
+20401322
+6848c4c4
+202060b8
+6848c4c4
+202060b4
+47134024
+c5145e0f
+6fe14479
+9a40fe00
+1ff0fe00
+67e102e4
+4713c024
+c5145e13
+58000004
+67f10098
+7002e3a0
+7002e6a1
+580002e3
+67f1009a
+6059009e
+6231009c
+58000002
+2a2c000f
+7920fe00
+67f08090
+70800604
+d8e00005
+20405bd3
+20405df4
+2feffe04
+20405bcc
+c5145e4a
+6fe102e4
+1ff0fe00
+9840fe00
+1ff0fe00
+67e102e4
+20600000
+6fe082e4
+9840fe00
+1ff0fe00
+67e102e4
+20600000
+6fe14479
+9a40fe00
+67e1095c
+47144025
+60490964
+6221097b
+20405e64
+68490974
+6a21097b
+6fe1095c
+20405e85
+6fe10974
+6849097b
+98408400
+6049097b
+6849095c
+98408400
+6049095c
+6fe10964
+243a5e55
+20600000
+4714c025
+6fe0c487
+1fe0ffff
+6849095c
+9841fe00
+1fe0fe01
+67e18978
+6fe10964
+9840fe00
+68498978
+98467e00
+24215e76
+67e10964
+6fe18978
+6849095c
+98467e00
+67e10974
+20600000
+6fe10964
+67e10974
+58000000
+67e10964
+20600000
+1a427e00
+18408402
+60590098
+1a20a3fe
+e8418011
+18422400
+d84000a0
+e0408011
+e7e08005
+20205e92
+1fe22400
+47154025
+c5145e7b
+1a427e00
+18408403
+60590098
+1a20a3fd
+e8418011
+18422400
+d84000a0
+e0408011
+1ff0fe00
+e7e10005
+6231009a
+58000000
+67f1009e
+70809001
+70800604
+20405df4
+e2418011
+4715c025
+7002e600
+58000001
+67f10098
+7002e3a0
+580002e3
+67f1009a
+58000000
+67f1009e
+67f1009c
+58000003
+67f08090
+70800604
+20405df4
+6ff0812c
+c4030000
+200005dc
+6fe082e6
+1fe0fe01
+67e082e6
+1fe67c28
+24610000
+20205e9b
+18427200
+1fe20400
+18498400
+20405ee2
+70804780
+70804786
+60590045
+18408408
+70804787
+6ff08007
+e7e08011
+1a20a201
+c2005eb5
+70804786
+70804780
+70804700
+20205eea
+20405eda
+70804780
+18498400
+1a220c00
+efe08006
+da400008
+1fe17c01
+2442def5
+1fe37e00
+18408401
+1a40a5ff
+2422dec7
+c2005ec5
+70804780
+70804700
+20205eea
+6ff08a0a
+79207e01
+67f08a0a
+200000c8
+6ff08a0b
+79207e00
+67f08a0b
+200007d0
+20600000
+20405ed1
+6ff08a0b
+793ffe05
+79207e04
+79207e03
+67f08a0b
+200001f4
+20600000
+20405ed1
+6ff08a0b
+79207e05
+79207e04
+793ffe03
+67f08a0b
+200001f4
+20600000
+6ff08a0b
+793ffe05
+793ffe04
+793ffe03
+793ffe00
+67f08a0b
+200000c8
+6ff08a0a
+793ffe01
+67f08a0a
+20600000
+70804780
+2000000a
+60590045
+70804781
+2000006e
+20600000
+20407e62
+20205eff
+20407e64
+20205eff
+1ff10400
+20545f32
+24545f36
+1fef7e00
+1ff10400
+20545f2a
+24545f2e
+24345f0b
+6ff10050
+793ffe0f
+67f10050
+20600000
+6ff10050
+793ffe0e
+67f10050
+20600000
+67f10052
+20600000
+67f10062
+20600000
+20405f17
+20205f0f
+20405f17
+20205f11
+20405f1c
+9846fc00
+20407dfd
+1807fe00
+20600000
+6ff08043
+c3005f20
+5adc6c00
+20600000
+596e3600
+20600000
+6ff08043
+1fe17efe
+67f08043
+20600000
+6ff08043
+1fe1fe01
+67f08043
+20600000
+67f1005a
+67f1005e
+6059005c
+20600000
+67f1006a
+67f1006e
+6059006c
+20600000
+67f10054
+67f10058
+60590056
+20600000
+67f10064
+67f10068
+60590066
+20600000
+6951005a
+6a11005c
+6871005e
+20600000
+6951006a
+6a11006c
+6871006e
+20600000
+69510054
+6a110056
+68710058
+20600000
+69510064
+6a110066
+68710068
+20600000
+6071005e
+20600000
+6071006e
+20600000
+60710058
+20600000
+60710068
+20600000
+20405f42
+6ff10112
+98608600
+20205f4e
+20405f46
+6ff10158
+98608600
+20205f50
+20405f62
+20205f3a
+20405f62
+20205f3e
+20405f4a
+20205f66
+20405f4c
+20205f66
+60610983
+61410981
+6201097f
+20600000
+68610983
+69410981
+6a01097f
+20600000
+1f227e00
+207a0000
+1f20f3f8
+20415f78
+20628000
+20215f6c
+1f20f208
+1f20f3fc
+20415f7b
+20628000
+20215f71
+1f20f204
+20205f7e
+20405f78
+efe40006
+e7e40003
+20600000
+efe20006
+e7e20003
+20600000
+1f227e00
+207a0000
+efe08006
+e7e08003
+c2005f80
+20600000
+1f227e00
+207a0000
+1f20f3f8
+20415f92
+20628000
+20215f86
+1f20f208
+1f20f3fc
+20415f95
+20628000
+20215f8b
+1f20f204
+20205f98
+20405f92
+efe40003
+e7e40005
+20600000
+efe20003
+e7e20005
+20600000
+1f227e00
+207a0000
+efe08003
+e7e08005
+c2005f9a
+20600000
+70095b3d
+2020789f
+47164025
+6fe0c48d
+207a0000
+20406047
+2042e04d
+20407e68
+20405fd6
+6fe0c48d
+1fe22600
+6849448b
+604900ef
+1a627e00
+203a5f9e
+1a60a7ff
+18422200
+efe08011
+684880e7
+98467c00
+2042dfbb
+20215fb7
+efe08011
+1fe0fe01
+e7e08011
+684900ef
+18408422
+604900ef
+20205fab
+58000000
+e7e08011
+6fe080e8
+e7e08005
+c099dfcb
+da4041ce
+efe30006
+e7e30005
+6fe0c645
+e7e08005
+58000000
+e7e48005
+1a420c00
+20407d1a
+18007c01
+20600000
+c01b5fcf
+c01bdfd3
+da404314
+20205fc1
+d8c043aa
+20407d1a
+d8c04314
+20205fc8
+d8c043a2
+20407d1a
+20205fd1
+20407e64
+6fe0c48d
+207a0000
+4716c025
+6fe1478b
+c2805ff9
+c4048000
+6fe0c368
+c0005ff2
+6fe0829c
+2fe180c0
+2020dfe5
+2fe18040
+2020dff7
+20205fec
+20365fe9
+6fe0c34c
+c300dff2
+20205fec
+20405ff2
+20740000
+20205fec
+6fe0c39b
+c283dfef
+20205ff5
+6fe30297
+67e443a2
+20205ff5
+7000e835
+6fe30297
+20205ffb
+7000e837
+20205ffb
+7000e836
+20205ffb
+7000e833
+6fe30041
+67e300e9
+6fe1448b
+e840803f
+1fe0fe01
+67e100ef
+604880e7
+6fe0c48d
+1fe22600
+6fe100ef
+1fe22200
+20406013
+20740000
+684900ef
+18408422
+604900ef
+184085ff
+efe08002
+67e080e7
+1a60a7ff
+2422e003
+6fe0c48d
+1fe0ffff
+67e080e7
+20600000
+6fe080e8
+c099e01a
+da4000e8
+df200007
+20407dff
+2022fe62
+20600000
+c01b601d
+c01be038
+20206015
+e8408011
+98467c00
+24628000
+d8a0098e
+df200010
+20407d34
+6fe1829a
+67e1898e
+2040602f
+6fe109ab
+1ff0fe00
+1fed0400
+efe08006
+9840fe00
+68498297
+98467c00
+2022fe62
+20600000
+d8c0098e
+20406ded
+efe08011
+20406dee
+18006c38
+18006c00
+20406d84
+d8a0099e
+20206dfe
+e8408011
+98467c00
+24628000
+18c22200
+18c0a608
+da4043a2
+df200008
+20407dff
+2022fe62
+1a622200
+da4043aa
+df200008
+20407dff
+2022fe62
+20600000
+6fe1448b
+e840803f
+1fe0fe22
+efe0803f
+98467c00
+20600000
+6fe0c48d
+1fe27200
+6849448b
+58000000
+e7e08002
+18408422
+1fe0fe01
+c2006051
+20600000
+47174025
+20407e66
+20405fd6
+6fe08031
+79347e06
+67e08031
+24346063
+efe08011
+67e0c645
+1a208c0a
+d8a041ce
+20407d1a
+2020607b
+7041cd00
+20600000
+6fe4c3a0
+203a6072
+20407e66
+20405fd6
+24346072
+6fe100ef
+1fe08c01
+d8a043aa
+20407d1a
+d8a04314
+20407d1a
+70432401
+20600000
+70432400
+20600000
+7000e834
+20206077
+7000e833
+6fe0c09a
+c0055fa0
+c00445c6
+20600000
+6fe441ce
+684c41d6
+9841fe00
+207a0000
+7041cd01
+20600000
+4717c025
+79200407
+204060a8
+7d208407
+47184026
+18467cff
+20628000
+284c0007
+18410e1f
+6fe2009f
+f920fe00
+67e2009f
+6fe200a3
+fd20fe00
+67e200a3
+20600000
+4718c026
+18467cff
+20628000
+284c0007
+18410e1f
+6fe2009f
+f93ffe00
+67e2009f
+6fe200a3
+f93ffe00
+67e200a3
+20600000
+20406091
+202060a2
+18467cff
+20628000
+2455e085
+204060da
+58000000
+284ffe07
+7d20fe06
+7920fe07
+202060cc
+d8a0811c
+18410e07
+18497e00
+1fe17e03
+98a08a00
+efe08005
+284ffe07
+2020e0b2
+afec0000
+20600000
+afefffff
+20600000
+18467cff
+20628000
+2fcffe07
+202060bb
+18467cff
+20628000
+2fcc0007
+58000000
+7d20fe07
+98428400
+204060da
+5800003f
+284ffe07
+7920fe00
+202060cc
+204060da
+efe08005
+c28060c8
+284c0007
+20600000
+284c0007
+20600000
+204060da
+580000c0
+e7e08005
+20600000
+204060da
+58000000
+202060cc
+d8c08070
+df200028
+efe08006
+243a60d8
+58000080
+18c08bff
+e7e08005
+c20060d3
+20600000
+18417e3f
+d8a08070
+98a08a00
+20600000
+1fe104ff
+1fecfe00
+202060e2
+c4038000
+1fe17e3f
+d8a08070
+98a08a00
+e0408005
+20600000
+1841043f
+58008070
+98408c00
+efe08006
+20600000
+47194026
+20600000
+d8e00006
+202060fe
+d8e00009
+202060fc
+d8e00017
+202060fc
+d8e00019
+202060fe
+d8e0001e
+202060fe
+d8e00002
+202060fe
+df200001
+202060ff
+df200004
+202060ff
+df200002
+f93fa200
+18e08e01
+c20060ff
+20600000
+6ff08a00
+1fe17e03
+c081fe6c
+6ff08a01
+1fe17e7f
+c0bffe6c
+20207e6a
+20406103
+205a124d
+6ff08a02
+79207e02
+67f08a02
+6ff08a12
+1fe1fe07
+1fe17efd
+67f08a12
+6ff08a0a
+1fe1fe0c
+67f08a0a
+6ff08a0b
+79207e02
+67f08a0b
+20000078
+6ff08a17
+1fe17ef1
+1fe1fe06
+67f08a17
+6ff08a18
+1fe17ee0
+67f08a18
+6ff08a97
+1fe17e80
+1fe1fe01
+67f08a97
+20000078
+708a1000
+6ff08a11
+79207e04
+793ffe05
+67f08a11
+20600000
+4719c026
+20600000
+6fe0c4a3
+c0006133
+c000e135
+c0016137
+20600000
+708a9750
+2020613b
+708a9748
+2020613b
+6fe0c4a4
+1fe9fe00
+67f08a97
+2020613b
+471a4026
+2040610a
+6ff08053
+79207e07
+67f08053
+20001388
+68590150
+6ff08053
+793ffe07
+67f08053
+604944a5
+20600000
+471ac026
+6fe0c4a3
+c000614d
+c000e151
+c0016155
+20600000
+6fe1449d
+68494497
+da6000c8
+20206159
+6fe1449b
+68494495
+da600064
+20206159
+6fe14499
+68494493
+da600032
+20206159
+98462200
+6fe144a5
+98467e00
+24216166
+684944a1
+984fa400
+1a627e00
+9a2ffe00
+9a40fe00
+9a26fc00
+20407dfd
+1807fe00
+20600000
+18427e00
+684944a5
+98467e00
+9a267c00
+20416171
+684944a1
+984fa400
+1a627e00
+9a2ffe00
+9a467e00
+20206162
+1a227e00
+20600000
+efe40011
+67e4095c
+6fe1095c
+6849095e
+98462200
+6fe10962
+98462400
+68490960
+98467c00
+24416183
+1a4ffe64
+9a26fc00
+20407dfd
+1807fe00
+205a618b
+20600000
+6fe0c4a7
+79207e00
+67e0c4a7
+20600000
+6fe0c4a7
+793ffe00
+67e0c4a7
+20600000
+6848c4a7
+79200401
+6048c4a7
+20600000
+6848c4a7
+793f8401
+6048c4a7
+20600000
+6fe144c9
+efe0803f
+207a0000
+1fe27200
+6fe144c9
+1fe0fe03
+1fe22200
+e8408011
+2040609f
+1a20a201
+c200619a
+20600000
+6fe144c9
+1fe0fe03
+1fe22200
+18002400
+7009de00
+e8408011
+204060a8
+471b4026
+6fe109de
+1a420e00
+f920fe00
+67e109de
+1a20a201
+1a40a401
+6fe144c9
+efe0803f
+9a42fc00
+2422e1a4
+6fe109de
+684909e0
+9842fc00
+20628000
+78347c00
+20600000
+6fe144c9
+efe0803f
+207a0000
+1fe27200
+6fe144c9
+1fe0fe03
+1fe22200
+e8408011
+20406081
+1a20a201
+c20061be
+20600000
+d8e00009
+20407d82
+247a0000
+58000020
+d8e00009
+20407d74
+78547c00
+204061b7
+471bc026
+6fe144c9
+efe0803f
+207a0000
+2040619f
+24347817
+20407815
+78547c00
+6fe109de
+67e109e5
+7009e700
+18000e00
+6fe109e0
+1fe30400
+604909e0
+1fe17e01
+684909e5
+18412201
+18430400
+604909e5
+9a22fc00
+2442e1ec
+6fe144c9
+efe0803f
+684889e7
+18408401
+604889e7
+18420e00
+98e2fc00
+2422e1d7
+6fe109de
+67e109e0
+20600000
+471c4027
+6fe144c9
+1fe0fe01
+efe1003f
+20207e13
+6ff08042
+9a21fe00
+67f08042
+6ff10050
+793ffe0d
+67f10050
+20000064
+20600000
+6ff08042
+c28361fe
+c283e200
+58b71b00
+20600000
+596e3600
+20600000
+580080e8
+20600000
+6fe0895d
+c2826206
+c302620d
+20600000
+78347c00
+1fe10e0f
+20406214
+1807a400
+18427e00
+9a462200
+20600000
+78547c00
+1fe10e0f
+20406214
+1807a200
+18427e00
+9a262400
+20600000
+6ff080d8
+f9347e00
+67f080d8
+20600000
+6849895e
+204061f9
+9846fc00
+20407dfd
+18078400
+6fe08961
+984ffe00
+1fe6fc64
+20407dfd
+20406202
+6fe0895d
+2040622a
+6fe0895c
+6848895d
+1841040f
+184d0400
+9841fe00
+20206233
+1fe17e0f
+d8a080a0
+1feffe04
+98a08a00
+1a227e00
+e7e10005
+1a427e00
+e7e10005
+20600000
+78347c00
+20406248
+20206238
+78547c00
+20406243
+18427e00
+1fed7e00
+18e08410
+9841fe00
+204060de
+6ff08084
+70808400
+200004b0
+f9347e00
+67f08084
+20600000
+1fe20400
+1fecfe00
+1fe20e00
+20600000
+78547c00
+20406243
+6ff080dd
+fd347e00
+67f080dd
+20206238
+d8402710
+984ffe00
+d841312d
+9846fc00
+20407dfd
+18078400
+58000800
+98467e00
+1fe20400
+1841040f
+6058800b
+1fe20400
+18518400
+60588004
+20600000
+78347c00
+2020625f
+78547c00
+6ff08043
+79347e03
+67f08043
+20600000
+d8400031
+67f200ca
+67f100ce
+605880d0
+20600000
+6ff10130
+20600000
+687100ce
+695100ca
+6a1100cc
+20600000
+607100ce
+20600000
+20407e62
+dd600000
+20406268
+c00162b2
+1fe67c04
+20610000
+2040626a
+e8410003
+5800a654
+204062bb
+242162a0
+1b020400
+58017f8e
+204062bb
+242162a0
+1b020400
+58002328
+204062bb
+20216297
+e8410003
+58001194
+204062bb
+20216297
+20406268
+1fe67c85
+20610000
+df200020
+e8410003
+58000230
+204062bb
+20216297
+e8410003
+5800069a
+204062bb
+2421629c
+1b020400
+58000230
+204062bb
+2421629d
+1b020400
+5800ffff
+98467c00
+2022e2b7
+2020626e
+79205620
+1d635600
+c200628b
+202062ab
+20406268
+1fe67c07
+20610000
+e8410003
+58002328
+204062bb
+20216297
+e8410003
+580008ca
+204062bb
+20216297
+e8410003
+58000230
+204062bb
+20216297
+2040626e
+1a627e00
+20207e13
+2040626a
+e8410003
+5800ffff
+98467c00
+24628000
+2040626e
+20407e64
+1a627e00
+20207e13
+da40000a
+18423000
+9a4fa400
+18438400
+98462200
+244162c4
+1a2ffe64
+9a467c00
+20600000
+1a262200
+20600000
+7041ed18
+70804201
+58001d4b
+67f10040
+df20000b
+da200155
+efe10011
+1fe3fe00
+e7e10011
+1a20a202
+c20062cc
+20600000
+1b63b600
+20600000
+70804204
+7041ed0c
+58000ea5
+67f10040
+20600000
+70804205
+202062d5
+67f1004a
+605880d9
+6fe0c4d1
+d8400019
+204060e2
+6fe144d2
+79207e00
+67f10048
+6ff0812d
+2feffe06
+20600000
+20758000
+70465100
+7003c003
+7003c103
+7003c511
+7003c613
+58000000
+67e183c2
+67e0c4e4
+70478a00
+58000000
+67e0c4e4
+67e0c64e
+67e0c647
+6fe0c655
+c000e2f8
+70465350
+20600000
+70465300
+20600000
+18418402
+20600000
+18427e00
+1fedfe00
+67e0c64c
+18007e3f
+1fedfe00
+67e0c64b
+18007e01
+1fedfe00
+67e0c64a
+20406332
+18427e00
+20600000
+1fedfe00
+67e0c64c
+18007e73
+1fedfe00
+67e0c64b
+18007e01
+1fedfe00
+67e0c64a
+20206332
+6fe0c64d
+203a6315
+58000070
+20600000
+580000aa
+20600000
+1fedfe00
+67e0c64c
+18007eef
+20406326
+684903ca
+18420a00
+e7e08005
+18a20400
+604903ca
+18007eff
+20406326
+684903ca
+18420a00
+e7e08005
+20600000
+1fedfe00
+67e0c64b
+6fe1464b
+1fed7e00
+67e183c7
+da200107
+da40000f
+2040633f
+1fe2fed7
+1fe47e00
+1fedfe00
+20600000
+6fe1c64a
+67e183c7
+da200107
+da40000f
+2040633f
+1fed7e00
+da400007
+2040633f
+1fe2fe2b
+1fe47e00
+1fedfe00
+1fe20400
+20600000
+da600000
+1a427200
+20407cd1
+1fe20400
+18427e00
+1a63a600
+c3046348
+9a228400
+1a60a601
+18438400
+6fe183c7
+1a40a5ff
+2a41feff
+2020e352
+1a427200
+20407cd1
+2feffe00
+79208400
+20206343
+18437e00
+20600000
+6848c647
+184b8400
+79200400
+6fe0c64d
+245a62fa
+604883e0
+20600000
+18438400
+6fe0c64d
+793a0400
+20600000
+684883cf
+7003d1d7
+20406498
+6fe0c4e1
+79207e06
+79207e07
+67e0c4e1
+70464d00
+20206479
+6fe0c4e1
+79207e07
+67e0c4e1
+20206479
+471cc027
+6fe0c78a
+c0006370
+2020642e
+6fe10315
+1fe20c00
+2040639a
+6fe083cf
+c0006376
+202063fa
+471d4027
+6fe083d0
+c01fe35f
+c039e368
+c077e37d
+c029e426
+20600000
+6fe103d4
+1fe20c00
+204063a5
+6fe083d6
+c020e387
+c020638f
+c038e3c8
+c03863d4
+c024e3df
+20206479
+20406391
+20206389
+6fe0c4e4
+79207e00
+79207e01
+67e0c4e4
+204064c2
+20206479
+20406391
+20206479
+204063ad
+202063b9
+204063ad
+efe08006
+1fe97e00
+67e0c654
+efe08006
+67e083db
+20600000
+efe08006
+67e083ce
+1fe97e00
+67e083cf
+efe08006
+67e083d0
+204063b0
+604903d2
+18c27e00
+67e103d4
+20600000
+efe08006
+1fe37e00
+67e083d6
+204063b0
+604903d7
+18c27e00
+67e103d9
+20600000
+6fe103d9
+1fe20c00
+20600000
+efe08006
+1fe20400
+18430400
+c3800000
+efe08006
+1fe9fe00
+1ff27e00
+98408400
+20600000
+efe08006
+67e0c647
+efe08006
+67e083dc
+efe08006
+67e083dd
+efe08006
+67e083de
+efe10006
+67e14648
+efe08006
+67e083df
+efe08006
+67e0c652
+20600000
+20406393
+202063ca
+6fe0c4e4
+79207e05
+79207e06
+67e0c4e4
+6848c647
+184b8400
+18418403
+204064f3
+70465103
+20206479
+70095b08
+2040789f
+20406393
+6fe0c654
+1fe67c01
+2022e3db
+2020131f
+6fe0c4e4
+79207e07
+67e0c4e4
+20206479
+204063ad
+efe08006
+67e0898e
+20405300
+2040530e
+5800000e
+e7e10005
+6fe144da
+e7e10005
+6fe0c64d
+1fe3fe00
+79207e00
+e7e08005
+471dc027
+580015ef
+e7e10005
+58001191
+e7e10005
+6fe0898e
+e7e08005
+58000007
+e7e28005
+58000001
+e7e10005
+20406311
+e7e08005
+20600000
+202063fb
+471e4027
+6fe083d0
+c039e403
+c01fe407
+c077e421
+c07fe419
+c029e428
+20600000
+6fe0c4e4
+79207e03
+67e0c4e4
+20206479
+6fe0c4e4
+79207e03
+79207e02
+67e0c4e4
+6fe083ce
+20406308
+67e083d1
+20406498
+6fe083ce
+1feb7e00
+67e0c647
+1febfe00
+793ffe01
+79207e00
+d840464f
+604903ca
+20406317
+20206479
+6fe103d4
+1fe20c00
+1fe0fe01
+67e103d4
+efe08006
+6848c652
+9840fe00
+67e0c652
+20406524
+20406354
+2040650a
+2040652d
+20206479
+70095b09
+2040789f
+204062f0
+6fe083ce
+20406308
+67e083d1
+20406498
+20206479
+6fe10315
+1fe20c00
+2040639a
+6fe083cf
+c0006434
+20206468
+471ec027
+6fe083d0
+c01fe35f
+c039e368
+c077e43a
+20206479
+6fe103d4
+1fe20c00
+204063a5
+6fe083d6
+c020e443
+c0206443
+c038e44e
+c038645e
+20206479
+20406391
+6fe0c647
+1fe37e00
+6848c64e
+98467c00
+2022e44a
+2020131f
+6fe0c4e4
+79207e01
+67e0c4e4
+20206479
+20406393
+6fe0c654
+6848c64e
+98467c00
+2022e455
+2020131f
+20206479
+6fe0c4e4
+79207e05
+79207e06
+67e0c4e4
+6848c647
+184b8400
+18418403
+204064f3
+20206479
+20406393
+6fe0c654
+6848c64e
+98467c00
+2022e464
+2020131f
+6fe0c4e4
+79207e07
+67e0c4e4
+20206479
+6fe083cf
+6848c64e
+98467c00
+2022e46e
+2020131f
+20206479
+6fe083d0
+c039e473
+c077e421
+c07fe419
+c029e478
+6fe0c4e4
+79207e03
+67e0c4e4
+20206479
+20206477
+20206428
+20600000
+6fe0c651
+207a0000
+c001e47e
+2020131f
+70465100
+20405300
+d8400001
+6848c647
+184b8400
+18418403
+da2000aa
+204064de
+2040530e
+18a20c00
+efe10006
+203a131f
+20600000
+2040530e
+58000004
+e7e10005
+6fe144da
+e7e10005
+6fe083ce
+e7e08005
+471f4027
+5800013f
+e7e10005
+6fe083d1
+e7e08005
+20600000
+20405300
+2040530e
+58000004
+e7e10005
+6fe144da
+e7e10005
+6fe083ce
+e7e08005
+471fc027
+58000173
+e7e10005
+6fe083d1
+e7e08005
+20600000
+2040530e
+5800000e
+e7e10005
+6fe144da
+e7e10005
+6fe0c64d
+1fe3fe00
+79207e00
+e7e08005
+47204028
+580015ef
+e7e10005
+58001183
+e7e10005
+18427e00
+e7e08005
+580000f0
+e7e18005
+5800007f
+e7e10005
+58000000
+e7e08005
+58000001
+e7e08005
+20406311
+e7e08005
+70465310
+20600000
+20405300
+2040530e
+5800000e
+e7e10005
+6fe144da
+e7e10005
+6fe0c64d
+1fe3fe00
+79207e00
+e7e08005
+4720c028
+580015ef
+e7e10005
+58001181
+e7e10005
+6fe0c647
+e7e08005
+580000e0
+e7e18005
+6fe14656
+e7e10005
+58000000
+e7e08005
+6fe0c658
+e7e08005
+20406311
+e7e08005
+20600000
+2040530e
+58000008
+e7e10005
+6fe144da
+e7e10005
+6fe0c64d
+1fe3fe00
+79207e00
+e7e08005
+47214028
+580009ef
+e7e10005
+580005e3
+e7e10005
+18427e00
+e7e08005
+5800008d
+e7e08005
+20406311
+e7e08005
+20600000
+20405300
+2040530e
+58000008
+e7e10005
+6fe144da
+e7e10005
+18421600
+6fe0c64d
+1fe3fe00
+79207e00
+e7e08005
+4721c028
+580009ef
+e7e10005
+580005e1
+e7e10005
+19627e00
+e7e08005
+5800008d
+e7e08005
+20406311
+e7e08005
+20600000
+47224028
+6fe0c653
+207a0000
+6ff10112
+247a0000
+1a227e00
+67e0895d
+6048895c
+204052cc
+247a0000
+20405300
+2040530e
+58000005
+e7e10005
+6fe144da
+e7e10005
+6fe083e0
+e7e08005
+580001ff
+e7e10005
+6fe0c653
+e7e08005
+6fe0c650
+e7e08005
+70465300
+20600000
+4722c028
+6fe0c655
+c1008000
+6fe103d2
+207a0000
+6fe0c653
+1fe0fe01
+67e0c653
+20600000
+6fe14659
+20207e13
+47234028
+6fe0c652
+207a0000
+1fe0ffff
+67e0c652
+6fe14648
+684947a8
+98467c00
+20216539
+67e147a8
+6fe0c653
+203a6541
+7003e301
+6fe0c650
+67e083e2
+580000ff
+67e083e1
+20206546
+7003e300
+6fe0c64f
+67e083e2
+580000ef
+67e083e1
+4723c028
+6fe147a8
+1fe67c7f
+2021654d
+6fe083e3
+1fe0fe01
+67e083e3
+20406354
+6fe147a8
+1fe0fe08
+684883e3
+9840a200
+20405278
+67e10328
+1fe0fe04
+67e1032a
+1fe20a00
+6fe083e0
+e7e08005
+6fe083e1
+e7e08005
+20406577
+20406588
+47244029
+6fe1465b
+1fe20600
+6fe147a8
+1fe27200
+20405f84
+18a20400
+18627e00
+67e1465b
+18420a00
+6fe083e2
+e7e08005
+6fe10328
+1fe20a00
+6fe147a8
+684883e3
+9840fe00
+1fe0fe04
+e7e10005
+6fe144da
+e7e10005
+70465300
+6fe1465d
+c00039df
+7009d100
+20600000
+4724c029
+6fe147a8
+1fe67c7f
+2421657f
+1fe3fe00
+79207e00
+e7e08005
+20600000
+6fe147a8
+1fe97e00
+1ff18400
+1fe17e7f
+1fe3fe00
+793ffe00
+e7e08005
+e0408005
+20600000
+6fe0c653
+207a0000
+e7e08005
+20600000
+47254029
+204078b5
+20402fcb
+204059fb
+4725c029
+20407099
+20407072
+20407083
+204052cc
+247a0000
+20404de3
+204052cc
+247a0000
+47264029
+204065d6
+20404f9d
+2040647a
+204065a0
+4726c029
+20202fc7
+6fe08330
+c28050c0
+c283d0ca
+20600000
+47274029
+204052d2
+207a0000
+6fe0804c
+c3830000
+204052b6
+67e100bf
+1fe20c00
+efe10006
+1fe0fe04
+67e141e9
+7041e806
+4727c029
+6fe144d6
+203a65bf
+6fe0804c
+c4038000
+793ffe07
+67e0804c
+7041e805
+684944d6
+6fe100bf
+9840fe00
+67e100bf
+6fe141e9
+98467e00
+67e141e9
+6fe141e9
+203a131f
+d8400104
+98467e00
+2022e5ca
+242165ca
+604941e9
+6fe144d6
+9840fe00
+67e144d6
+202065cc
+58000000
+67e144d6
+6fe0804c
+79207e06
+67e0804c
+20600000
+6fe0c78d
+c28065d4
+70033801
+20600000
+7003380f
+20600000
+6fe0c78a
+243a65dc
+6fe08337
+207a0000
+70033700
+20600000
+4728402a
+6fe08338
+207a0000
+c000e5fc
+c0016655
+c001e602
+c0026659
+c01de60c
+c01e665c
+c006e611
+c0076661
+c007e614
+c0086667
+c008e61a
+c009666b
+c009e620
+c00a666f
+c00ae626
+c00b6673
+c00be62c
+c00c6678
+c00ce632
+c00d667c
+c00de638
+c00e6680
+c00ee63e
+c00f6685
+c00fe644
+c0106689
+c010e64f
+c011668d
+20600000
+20406698
+70033802
+6fe0c4e0
+79207e00
+67e0c4e0
+20600000
+70033804
+6fe0c4e0
+c3810000
+70033803
+2040669f
+70033804
+6fe0c4e0
+79207e02
+67e0c4e0
+20600000
+204052d2
+247a0000
+204066ae
+7003383c
+20600000
+204066a4
+7003380e
+20600000
+204066be
+70033810
+6fe0c4e2
+79207e00
+67e0c4e2
+20600000
+204066c5
+70033812
+6fe0c4e2
+79207e02
+67e0c4e2
+20600000
+204066ca
+70033814
+6fe0c4e3
+79207e00
+67e0c4e3
+20600000
+204066d1
+70033816
+6fe0c4e3
+79207e02
+67e0c4e3
+20600000
+204066b2
+70033818
+6fe0c4e1
+79207e00
+67e0c4e1
+20600000
+204066b9
+7003381a
+6fe0c4e1
+79207e02
+67e0c4e1
+20600000
+204066d6
+7003381c
+6fe0c4e1
+79207e06
+67e0c4e1
+20600000
+204066dd
+6fe0c4e4
+79207e00
+67e0c4e4
+7003381e
+20600000
+204066e3
+6fe0c4e4
+79207e02
+67e0c4e4
+70033820
+6fe0c64e
+1fe9fe00
+1fe1fe03
+d840464f
+604903ca
+20206317
+204066ed
+6fe0c4e4
+79207e04
+67e0c4e4
+70033822
+20600000
+6fe0c4e0
+c4008000
+70033803
+202065dc
+6fe0c4e0
+c19f8000
+7003383b
+6fe08336
+c18b8000
+70033600
+7003380d
+202065dc
+6fe0c4e0
+247a0000
+6fe0c78d
+c2806690
+c2836692
+20206696
+6fe0c4e2
+c4008000
+70033811
+202065dc
+6fe0c4e2
+c19f8000
+70033813
+202065dc
+6fe0c4e3
+c4008000
+70033815
+202065dc
+6fe0c4e3
+c19f8000
+6fe0c78d
+c2836692
+20206696
+6fe0c4e1
+c4008000
+70033819
+202065dc
+6fe0c4e1
+c19f8000
+7003381b
+202065dc
+6fe0c4e1
+c1ff8000
+6fe0c78d
+c2836694
+20206696
+6fe0c4e4
+c4008000
+7003381f
+202065dc
+6fe0c4e4
+c4018000
+70033821
+202065dc
+6fe0c4e4
+c1ff8000
+20206696
+7003380f
+202065dc
+70033817
+202065dc
+7003381d
+202065dc
+70033800
+20600000
+4728c02a
+204052e6
+58000001
+1fe20400
+58000050
+1fe21600
+202050e1
+4729402a
+204052e6
+6fe144d8
+1fe20400
+202050f0
+4729c02a
+204052e6
+6fe144d8
+1fe20400
+d9600050
+20405105
+6fe0c4e0
+793ffe05
+67e0c4e0
+20600000
+472a402a
+204052f3
+20406a19
+20205120
+472ac02a
+204052e6
+58000003
+1fe20400
+58000051
+1fe21600
+202050e1
+472b402a
+204052e6
+6fe144da
+1fe20400
+202050f0
+472bc02a
+204052e6
+58000011
+1fe20400
+58000052
+1fe21600
+202050e1
+472c402b
+204052e6
+6fe144dc
+1fe20400
+202050f0
+472cc02b
+204052e6
+58000013
+1fe20400
+58000053
+1fe21600
+202050e1
+472d402b
+204052e6
+6fe144de
+1fe20400
+202050f0
+472dc02b
+20405300
+7003ce03
+7003d11c
+2040648b
+70464d01
+20600000
+472e402b
+20405300
+6848c64e
+2040635b
+6048c647
+202064a6
+472ec02b
+20405300
+6848c647
+20406355
+204062fc
+67e083d1
+6848c647
+20406355
+604883ce
+2020648b
+472f402b
+20405300
+6848c647
+20406355
+202064de
+472fc02b
+6fe10315
+98000c00
+efe08006
+1fe22400
+67e083ee
+efe10006
+67e103ef
+efe08006
+1fed1600
+efe08006
+99609600
+4730402c
+18c20400
+df200004
+d8a003fd
+20407d25
+18420c00
+1a427e00
+c000e89b
+c001670d
+c001e89b
+c0026735
+c002e89b
+c00367e3
+c003e89b
+202068a2
+4730c02c
+204068b1
+2841fe01
+2020e921
+2841feff
+2020e8a5
+efe10006
+67e103f5
+196097fe
+196097ff
+2422e89f
+d96003e4
+efe1000b
+207a0000
+20406963
+204052fe
+18007e03
+e7e08005
+6fe103ef
+e7e10005
+18ebfe00
+1fe0fe05
+1fe0a605
+1ff0fe00
+e7e10005
+18e27e00
+1ff0fe00
+e7e10005
+e7e10005
+d8c003fd
+18e27200
+2022e730
+efe20006
+e7e20005
+c200672d
+18007e00
+e7e08005
+1a627e00
+67e10326
+20600000
+4731402c
+efe20006
+67e203f7
+196097fc
+2040680f
+67e103f3
+196097fe
+20406909
+2022e8a5
+2a21fe05
+2020e743
+d8a003fd
+18000e00
+20206752
+efe08006
+c08568a5
+efe10006
+243a6750
+efe08006
+c0ffe74e
+efe08006
+c0ffe74c
+20206799
+18c08dfb
+20206740
+18c08dfc
+20206740
+18c08dfd
+20206740
+efe08006
+c004e767
+c0056755
+efe10006
+e7e10005
+18e08e01
+1ff0a400
+efe10006
+1ff0fe00
+1a40a401
+9a467c00
+24216764
+1fe22600
+1a50fe00
+e7e10005
+18e08e01
+1a627e00
+2020675b
+196097fb
+1a20a3fb
+2020676c
+efe10006
+e7e10005
+18e08e01
+196097fd
+1a20a3fd
+242168a5
+2422e752
+196097ff
+2422e8a5
+204052fe
+18a08a0a
+da2003fd
+18e27e00
+203a6786
+efe10011
+203a6786
+98002400
+6fe203f7
+98000400
+204069c8
+18c27e00
+203a6783
+18c08dfd
+efe18006
+e7e18005
+2040693c
+98007200
+20407d6d
+1a20a202
+18e08fff
+20206773
+da200005
+20406865
+6fe10326
+c005e924
+2020687b
+efe08006
+c000678f
+c000e791
+c0016794
+196097ff
+20206797
+efe08006
+196097fe
+20206797
+efe10006
+1ff0fe00
+196097fd
+67e103ec
+20600000
+196097fb
+2040678b
+2422e89f
+684a03f7
+20406992
+2422e89c
+18c22200
+204052fe
+1a220c00
+18a08a03
+18c21600
+20406943
+1fe22200
+6fe103ec
+1fe22400
+1a227e00
+9a462400
+6fe103f3
+9a467c00
+242167c8
+78547c00
+6fe103ec
+203a67bb
+99608c00
+1a40a403
+1a427200
+1f227e00
+1fe0fe03
+1ff0fe00
+e7e10005
+1f227e00
+1ff0fe00
+e7e10005
+202067d6
+1a20f206
+203467bf
+1f30fe00
+202067c2
+1f227e00
+1fe0fe02
+1ff0fe00
+e7e10005
+1f20f3fd
+1f30fe00
+e7e10005
+19620c00
+202067d6
+78347c00
+6fe103f3
+1fe22200
+1a227200
+6fe103ec
+203a67bb
+99608c00
+1a227e00
+1fe0fe05
+1ff0fe00
+e7e10005
+1a227e00
+1ff0fe00
+e7e10005
+20407d6d
+243467df
+18007e02
+e7e08005
+18c27e00
+99667e00
+1ff0fe00
+e7e10005
+202067e1
+18007e00
+e7e08005
+da200005
+20206891
+4731c02c
+204068b1
+2841feff
+2020e8a5
+2040680f
+67e103f3
+196097fe
+20406909
+d8a003fd
+18000e00
+efe08006
+c0056817
+efe10006
+e7e10005
+18e08e01
+196097fd
+1a20a3fd
+242168a5
+2422e7ed
+196097ff
+2422e8a5
+204052fe
+18a08a0d
+6fe103e4
+98002600
+da2003fd
+efe10011
+203a680a
+98002400
+204069a7
+203a6808
+18c08dfd
+efe18006
+e7e18005
+2040693c
+98007200
+20407d6d
+1a20a202
+202067fd
+20406864
+6fe10326
+c0076927
+2040687b
+2020687b
+efe10006
+1ff0fe00
+1fe0fffd
+d84000c8
+98467c00
+24610000
+580000c8
+20600000
+18c08c04
+196097fb
+1a20a3fb
+2422e8a5
+2040678b
+2422e89f
+d96003e4
+20406963
+18e27e00
+203a6927
+67e08421
+1a427e00
+67e1041f
+d8e00000
+da200000
+204052fe
+18a08a0a
+2040684d
+2434131f
+18c21600
+1fe22600
+9a20a200
+6fe103ec
+1fe22400
+203a6856
+1a227e00
+9a462400
+2022e848
+24216848
+6fe103f3
+9a467c00
+2022e83f
+2421683f
+1a427200
+20406842
+6fe08421
+18e08e01
+98e67c00
+2022e864
+20206881
+1fe27200
+20406842
+20206881
+18a08bfd
+1f220400
+1a627e00
+9a467e00
+99608c00
+20207d6d
+6fe08421
+18e08e01
+98e67c00
+20628000
+20206828
+20407e64
+d8c003fd
+18ebfe00
+98c08c00
+e8420006
+20406992
+24628000
+2040693c
+20207e62
+6fe103f3
+9a267c00
+24216870
+1a227200
+1f220400
+19620c00
+20407d6d
+6fe1041f
+9a267c00
+2022e862
+20406881
+20206875
+20406864
+20206875
+da200007
+18007e00
+e7e08005
+20406891
+68490326
+184085fb
+1850fe00
+e7e10005
+184085fd
+1850fe00
+e7e10005
+20600000
+1fe27200
+1f220400
+19620c00
+20407d6d
+20406881
+58000036
+e7e08005
+6fe1041f
+1ff0fe00
+e7e10005
+20600000
+58000036
+e7e08005
+184085fd
+1850fe00
+e7e10005
+20600000
+da200007
+58000002
+e7e08005
+6fe103ec
+98408400
+1850fe00
+e7e10005
+20406891
+68490326
+184085fb
+1850fe00
+e7e10005
+184085fb
+1850fe00
+e7e10005
+20600000
+6fe10324
+98a67e00
+1fe67e00
+67e10326
+204052fe
+1a227e00
+e7e08005
+6fe103ef
+e7e10005
+20600000
+20600000
+58000200
+67e1041d
+202068a7
+58000400
+67e1041d
+202068a7
+58000600
+67e1041d
+202068a7
+58000300
+67e1041d
+204052fe
+e7e08005
+6fe103ef
+e7e10005
+58000200
+e7e10005
+6fe1041d
+e7e10005
+70032607
+20600000
+da400000
+18000400
+d8a003e4
+20406909
+2022e907
+1a40a401
+efe08006
+1a20a3ff
+196097ff
+2fe1f018
+2420e907
+2fe00e04
+2420e8d4
+18000401
+efe08006
+1a20a3ff
+196097ff
+c08068c8
+efe08006
+1a20a3ff
+196097ff
+c00068d9
+202068cb
+18c08c01
+1a20a3ff
+196097ff
+18c08c02
+1a20a3fe
+196097fe
+2841fe00
+2020e901
+18c08c0c
+1a20a3f4
+196097f4
+20206901
+2fe00e02
+2420e8d7
+202068bf
+2fe00e01
+2420e907
+1a20a3fe
+196097fe
+efe10006
+1a467c04
+2022e8df
+e7e10005
+2841fe00
+2020e901
+18c20400
+efe08006
+c08068fa
+efe08006
+c08068fa
+efe08006
+c08868fa
+efe08006
+c08068fa
+efe08006
+c0c068fa
+efe08006
+c08068fa
+efe08006
+c08068fa
+efe08006
+c0c068fa
+efe08006
+c0afe8fa
+efe08006
+c0cde8fa
+efe08006
+c09a68fa
+efe08006
+c07de8ff
+18420c00
+18c08c0c
+18000e00
+18000400
+202068ff
+196097f4
+1a20a3f4
+18000400
+2a21fe00
+2420e8b6
+18007e00
+e7e10005
+20600000
+d84000ff
+20600000
+4733402c
+efe08006
+196097ff
+2fe1f030
+2420e91f
+2fe00e07
+2020e918
+2fe00e06
+2020e91a
+2fe00e05
+2420e91f
+efe08006
+1fe22200
+196097ff
+2020691d
+18c08c02
+196097fe
+efe10006
+1ff0a200
+196097fe
+18007e01
+20600000
+18007e00
+20600000
+58000003
+67e083ee
+20206929
+58000005
+67e083ee
+20206929
+58000007
+67e083ee
+204052fe
+6fe083ee
+1fe22400
+e7e08005
+6fe103ef
+e7e10005
+58000500
+e7e10005
+2a41fe05
+2020e938
+2a41fe07
+2020e938
+58000000
+e7e28005
+2020693a
+58350200
+e7e28005
+7003260a
+20600000
+20407cfc
+20407cff
+20406943
+20407cf6
+20407cf9
+18427e00
+20600000
+efe08006
+1fe17207
+1fe97e00
+c080694d
+18007e01
+18000401
+20600000
+20407cd6
+1fe08401
+20600000
+1f227e00
+1fe67c04
+2021694a
+c002e954
+c0036957
+c003e95b
+20600000
+efe08006
+1fe08402
+20600000
+efe10006
+1ff0fe00
+1fe08403
+20600000
+efe10006
+1ff0fe00
+e8410006
+18508400
+18500400
+9840fe00
+1fe08405
+20600000
+4733c02c
+18000e00
+da400000
+d8a003fd
+efe1000b
+207a0000
+2040696e
+18e27e00
+c1038000
+19609602
+20206967
+98002600
+6fe1465f
+98000c00
+18e27e00
+c1038000
+78547c00
+efe08006
+207a0000
+98007200
+efe10006
+9a667c00
+2422e97b
+78347c00
+c2006977
+e8420006
+18c22200
+2434698e
+d8c003fd
+df200007
+efe20006
+203a6987
+98467c00
+2022e98e
+c2006981
+20600000
+e0420005
+18e08e01
+1a220c00
+2040693c
+9a40a400
+98c08c00
+20206971
+1a220c00
+20406943
+98c08c00
+20206971
+4734402d
+6fe1465f
+98000c00
+efe08006
+203a7e5e
+1fe3fe00
+98c08c00
+efe20006
+98467c00
+20628000
+18a27e00
+67e1097d
+604c0964
+20406943
+98c08c00
+18c27e00
+6849097d
+18420a00
+684c0964
+1fe20c00
+20206995
+4734c02d
+6fe1465f
+98000c00
+efe08006
+203a69c5
+98007200
+efe10006
+9a667c00
+2022e9b5
+c20069ad
+18c08c04
+20406943
+98c08c00
+202069aa
+1f20f3ff
+1f23fe00
+98c08c00
+18c08c04
+20406943
+98c09600
+18c08c01
+efe10006
+9a467c00
+2022fe6a
+2040693c
+98c08c00
+19627e00
+98c67c00
+2022e9c5
+202069bb
+18000c00
+18007e00
+20600000
+4735402d
+6fe1465f
+98000c00
+efe08006
+203a69e1
+1fe3fe00
+98c08c00
+efe20006
+98467c00
+2022e9d5
+20406943
+98c08c00
+202069cb
+20406943
+98c09600
+18c08c01
+efe10006
+9a467c00
+20628000
+2040693c
+98c08c00
+19627e00
+98c67c00
+2022e9e1
+202069d7
+18000c00
+20600000
+da400400
+204069d5
+da400300
+204069ee
+24740000
+1a267c03
+20217e64
+efe08006
+c0847e64
+efe08006
+20600000
+4735c02d
+20406943
+1fe22200
+efe08006
+1fe17207
+1fe97e00
+1fe67c03
+2022ea0a
+1f227e00
+c002ea01
+c0036a04
+c003ea07
+18c08dff
+20406943
+98c08c00
+1a227e00
+98462200
+2022fe64
+202069f1
+1a20a3fe
+18c08c01
+202069f1
+1a20a3fd
+18c08c02
+202069f1
+1a20a3fb
+18c08c04
+202069f1
+1a20a3ff
+1f227e00
+c000ea13
+c0016a11
+c0026a10
+20207e64
+1a20a3f4
+efe10006
+1a20a3fe
+efe10006
+9a467c00
+2022fe62
+1a20a3fe
+2022fe64
+202069f1
+204052fe
+1fe20a00
+58000006
+e7e08005
+5800006e
+e7e10005
+58000f00
+e7e10005
+581a0535
+e7e18005
+58000111
+1ff07e00
+e7e20005
+58002600
+e7e10005
+58000335
+e7e10005
+58000009
+e7e10005
+58000004
+e7e10005
+70032614
+20600000
+4736402d
+7004a750
+d8a004a8
+d8c04335
+20407d1a
+d8c046db
+20407d18
+d8c00880
+20407d18
+20406aeb
+d8c00277
+20406ae6
+20406ab1
+d8a009be
+20406ae2
+580f4240
+1fe22200
+6fe209be
+9a26fc00
+20407dfd
+18077e00
+67e2087c
+20600000
+7004a741
+d8a004a8
+20406a96
+20406a91
+6fe1c34f
+e7e18005
+20406a57
+d8c00277
+20407d1a
+d8c04335
+20407d1a
+20406aeb
+d8c009de
+d8a0098e
+20407d1a
+20206ab1
+6fe2439c
+e7e20005
+20407d2d
+20207d2a
+4736c02d
+7004a741
+d8a004a8
+20406a91
+20406a96
+6fe1c348
+e7e18005
+20406a57
+d8c04335
+20407d1a
+d8c00277
+20407d1a
+20406aeb
+d8c009de
+d8a0098e
+20407d1a
+20406ab1
+d8a009be
+20206ae2
+7004a720
+d8c008c0
+d8a004a8
+20407d18
+20406aeb
+d8c00860
+20406ae6
+20406ab1
+d8a0098e
+20406dfe
+d8400001
+20406a80
+d8a04314
+20406ae2
+d8400000
+20406a80
+d8a009de
+20206dfe
+4737402d
+7004a735
+58000100
+67e104a8
+20406a91
+20406a96
+d8c04335
+20407d1a
+d8c00277
+20407d1a
+58006c65
+e7e10005
+58006274
+e7e10005
+e0408005
+20406aeb
+20206ab1
+6fe34378
+e7e30005
+6fe0c36f
+e7e08005
+20600000
+6fe30297
+e7e30005
+6fe0c368
+e7e08005
+20600000
+7004a741
+6fe0c76d
+67e084a8
+d8c046db
+20407d18
+d8c00880
+20407d18
+20406aeb
+d8c00277
+20406ae6
+20206ab1
+7004a741
+6fe0c76d
+67e084a8
+d8c00880
+20407d18
+d8c046db
+20407d18
+20406aeb
+d8c04335
+20406ae6
+20206ab1
+4737c02d
+20406b00
+6fe084a7
+1fe20400
+1fe0fe0f
+1ff1fe00
+1fe22400
+203a6ac3
+18417e0f
+243a6ac6
+da60099e
+dfe004a8
+1fe0fff0
+9840a200
+d8a009ce
+df200004
+20407d3d
+20206ad1
+da400001
+da200000
+20206ac7
+1841220f
+dfe004a8
+9840fe00
+9a260c00
+d8a009be
+20406b26
+da6009ae
+da2009be
+d8a009ce
+df200004
+20407d3d
+20406df8
+20406d8f
+d8c004a8
+1a40a5ff
+1a427e00
+203a6ada
+20406ded
+20406d89
+20206ad4
+d8a009be
+20406dfe
+d8c009ce
+20406ded
+20406d8f
+d8c009be
+20406ded
+20206d89
+18a22200
+20406dfe
+df200010
+20207d45
+d8a0098e
+20407d1a
+df200010
+da20098e
+20207d45
+6fe084a7
+1fe27200
+da2004a8
+20207d45
+efe08011
+1fe3fe00
+2a6ffe00
+7920fe00
+2feffe08
+7920a600
+e7e08011
+1a20a3ff
+c2006aef
+20600000
+da20099e
+1a20a20f
+18007210
+18002600
+20206aef
+da2009ae
+20206afa
+d8c0098e
+20406deb
+18007008
+20406df9
+20406df8
+20406d86
+d8a0099e
+20406dfe
+4738402e
+6fe0899e
+2feffe07
+2420eb11
+20406af9
+da60099e
+d8a0099e
+20406b1b
+20206b12
+20406af9
+d8c0099e
+d8a009ae
+20407d1a
+6fe089ae
+2feffe07
+2420eafe
+20406afe
+da6009ae
+d8a009ae
+df200003
+d8400000
+20406b22
+1a60a604
+c2006b1c
+d8408700
+18500400
+efe20013
+9842fe00
+e7e20005
+20600000
+4738c02e
+df200010
+dfe00000
+9a267c00
+2022eb31
+20216b34
+e8408006
+e0408005
+1fe0fe01
+c2006b29
+20600000
+d8400080
+e0408005
+20206b2e
+d8400000
+20206b32
+20406b49
+d8c00454
+d8a00444
+20207d1a
+78547c00
+20406c40
+d8c00424
+d8a00464
+1800720f
+20407d6d
+efe08006
+1fe2fe06
+e7e08005
+58000474
+67e10498
+58000464
+67e10496
+79200012
+20206b89
+6848c792
+18002410
+1840a606
+1a667c10
+20216b4f
+18002610
+d8a00464
+d8c04793
+18427200
+78547c00
+efe08006
+e7e08005
+1a40a5ff
+2022eb5d
+c2006b53
+20346b50
+78347c00
+18007206
+1a220c00
+20206b53
+d8c00424
+d8a00474
+20407d1a
+6fe08483
+9a62fe00
+67e08483
+58000474
+67e10498
+58000464
+67e10496
+79200012
+20206b89
+78547c00
+20406c40
+20206b73
+da200057
+78347c00
+20406c40
+20406b73
+d8c00454
+d8a00063
+20207d1a
+58000424
+67e10498
+580041ce
+67e10496
+793f8012
+20406b89
+da200454
+da400424
+d8a00464
+20406c33
+da200464
+da400474
+1a420a00
+78347c00
+20406c31
+20406c4b
+58000474
+67e10498
+58000464
+67e10496
+79200012
+20206b89
+70049a00
+6fe10496
+98000c00
+d8a00484
+20407d1a
+6fe10498
+98000c00
+d8a00454
+20407d1a
+20406bb0
+78547c00
+c5896b9a
+6fe0849a
+c0826b9a
+6fe10498
+98002400
+20406be2
+20406be1
+20406bf4
+6fe0849a
+1fe0fe01
+67e0849a
+20406bb0
+78347c00
+20406be1
+20406c03
+20406c12
+20406c03
+20406c12
+20406c03
+20406c12
+20406c03
+6fe0849a
+1fe0fe01
+67e0849a
+c0886b92
+20406bb0
+78547c00
+20206be1
+6fe0849a
+d8c00484
+203a6bd7
+98002400
+18007211
+18c20a00
+efe08006
+1fe98400
+1feb7e00
+1fe97e00
+9841fe00
+e7e08005
+c2006bb6
+58000484
+9a408c00
+18007210
+d8a00434
+efe08006
+e7e08005
+28c1fe95
+2420ebc6
+18c08def
+c2006bc1
+18002200
+1a40a7ff
+1a6ba600
+1a6ba600
+20406e20
+58009000
+9a60a600
+d8a00434
+18007210
+e8408013
+efe08005
+9840fe00
+e7e08005
+1a60a601
+c2006bd0
+20206e24
+18007210
+18000400
+efe08006
+98428400
+c2006bd9
+18427e00
+e7e08006
+d8c00484
+d8a00434
+20207d1a
+da400434
+18007210
+da200454
+1a220a00
+e8408011
+efe08012
+9842e000
+1f212603
+24346beb
+1a62a603
+1a662601
+20216bee
+9840e000
+1e027e00
+e7e08005
+1a20a201
+1a40a401
+c2006be5
+20600000
+20406e20
+18007210
+da200454
+efe08011
+d8c09100
+1f212603
+1a667c01
+20216bfd
+d8c09200
+98c08c00
+efe08006
+e7e08011
+1a20a201
+c2006bf7
+20206e24
+18007208
+d8c00454
+18c20a00
+efe08006
+98002200
+efe08006
+98002400
+1a23fe00
+9a40fe00
+e7e08005
+1a227e00
+9a40fe00
+e7e08005
+c2006c06
+20600000
+588ae42c
+98000400
+18007207
+20406c21
+580d751b
+98000400
+18007205
+20406c21
+6fe08463
+98002200
+6fe08457
+67e08463
+1a227e00
+67e08457
+20600000
+1841240f
+18417e0f
+d8a00454
+98a08a00
+efe08005
+98002600
+1a227e00
+e7e08005
+1a622200
+18518400
+c2006c22
+58000454
+9a408a00
+1a227e00
+e7e08005
+20600000
+78347c00
+20206c34
+78547c00
+18007210
+e8408011
+efe08012
+20346c3a
+9842fe00
+20206c3b
+9840fe00
+e7e08005
+1a20a201
+1a40a401
+c2006c35
+20600000
+d8a00474
+efe30011
+e7e30005
+20346c46
+efe30011
+20206c47
+efe30006
+e7e30005
+efe20011
+e7e20005
+20600000
+d8c041ce
+d8a00464
+d8400000
+588395a7
+20406c6c
+58b3c1df
+20406c6c
+5800e5e9
+20406c6d
+18422800
+78547c00
+20406c5a
+1a820400
+78347c00
+20206c5a
+18007208
+efe08006
+2f200201
+20346c61
+2020ec62
+9840fe00
+20206c63
+2020ec5f
+9842fe00
+e7e08005
+184c8400
+c2006c5b
+20600000
+6fe30458
+67e30057
+efe30006
+e7e30005
+20600000
+184d0400
+18500400
+98418400
+20600000
+20206c70
+4739402e
+20406d92
+d8a04314
+20206dfe
+d8a04335
+2034ec78
+d8a00277
+18c22200
+20407d1a
+20406da7
+d8c04325
+20206e17
+da200277
+2034ec80
+da204335
+1a220a00
+204059ec
+20206da7
+d8c04382
+20406ded
+d8c04314
+20406dee
+18006c38
+18006c00
+20406d84
+d8a002c7
+20206dfe
+18007008
+18007e49
+20206c93
+18007e49
+20206c92
+18007e01
+18007000
+184d5e00
+9de1de00
+1f00f001
+184cde00
+1df15e00
+6fe146a9
+1ff07e00
+9de1de00
+1f00f001
+ede20006
+1f00f001
+efe10006
+1a30de00
+1df05e00
+9de1de00
+1f00f001
+20600000
+1a608c01
+efe08006
+98002200
+20406c8f
+20406d86
+18007000
+efe08013
+1fe17e03
+1ff05e00
+79205e08
+20406df6
+20406d89
+1a227200
+1a608c02
+20406dd5
+20406ddf
+20406d89
+1f227e00
+203a6cb8
+20206cb3
+1800700c
+1de27e00
+67e2026f
+20600000
+1a20a201
+20406c91
+1a620c00
+20406de9
+20406d8c
+20406e05
+1a60a610
+1a40a5f0
+20216cbc
+20600000
+20406d79
+4739c02e
+d8c00063
+20406deb
+7080d500
+18217e0f
+1fe9fe00
+9881fe00
+67f080d6
+6fe0c1e7
+67f080d7
+627100d1
+627100d3
+6a2146b1
+684ac69b
+20406ce8
+20406c8c
+70800a02
+70800a03
+6fe146b1
+67f100da
+1fe0fe04
+67e146b1
+1a627e00
+9a20a200
+20406d80
+df00000c
+e5e20011
+65e2026f
+20600000
+6fe2c69b
+1fe0fe01
+67e2c69b
+20206cee
+6fe0c1e7
+c1808000
+6fe146b1
+247a0000
+79200424
+20600000
+6fe0c69f
+1fe17e0f
+1fe1fe20
+67e0c69f
+20600000
+6fe0c6a4
+1fe17e0f
+67e0c6a4
+20600000
+18a27e00
+684900af
+18408404
+98467e00
+67e146b3
+67f100d1
+67f100d3
+20407e68
+20406d79
+d8c00063
+20406deb
+7080d500
+6fe0801a
+1fe17e0f
+1fe9fe00
+9881fe00
+67f080d6
+6fe080e5
+1fe17e03
+67e0c1e7
+67f080d7
+6a2100af
+622146b1
+6fe146b3
+9a208c00
+18007000
+ede20006
+65e20273
+684ac6a0
+20406ce8
+20406c8c
+70800a06
+70800a07
+6fe100af
+67f100da
+20406d80
+6ff08108
+c4038000
+20207e66
+6fe100af
+207a0000
+c6078000
+684a0273
+604a46a5
+6fe2c6a0
+1fe0fe01
+67e2c6a0
+20206cf3
+20406d79
+7080d500
+7080d601
+6fe0816b
+1fe17e03
+67f080d7
+5800016d
+67f100d1
+67f100d3
+6a20816c
+1a20a3fc
+24217e6a
+6220816c
+5800016d
+9a208c00
+18007000
+ede20006
+65e20273
+684ac6a0
+20406c8c
+70800a06
+70800a07
+6fe0816c
+67f100da
+20406d80
+6ff08108
+c303fe6a
+684a0273
+6fe246a5
+98467e00
+207a0000
+604a46a5
+6fe2c6a0
+1fe0fe01
+79207e27
+67e2c6a0
+18007e00
+20600000
+20406d54
+580041f5
+9a20a200
+20406d80
+df00000c
+e5e20011
+20600000
+20406d79
+473a402e
+7080d500
+7080d601
+6fe0c1f3
+1fe17e03
+67f080d7
+6fe1097b
+67f100d1
+580041f5
+67f100d3
+6a20c1f4
+684ac69b
+20406c8c
+70800a02
+70800a03
+6fe0c1f4
+67f100da
+1fe0fe04
+67e0c1f4
+6fe2c69b
+1fe0fe01
+793ffe27
+67e2c69b
+20600000
+6ff1011a
+98467c00
+20628000
+247a0000
+20206d6d
+6ff08108
+c303131f
+580041f5
+98408a00
+df00000c
+e5e20005
+20206d82
+473ac02e
+1800700c
+20406df9
+20406df8
+58000000
+67f100da
+20600000
+6ff08108
+c3036d80
+70800a00
+20600000
+243bed84
+20600000
+18006c30
+18006c00
+20206d84
+18006c32
+18006c02
+20206d84
+18006c34
+18006c04
+20206d84
+18006c01
+18006c00
+20600000
+18007000
+6fe20277
+98005e00
+1f00f001
+efe20006
+98005e00
+1f00f001
+6fe24335
+98005e00
+1f00f001
+efe20006
+98005e00
+1f00f001
+20406df9
+1f00f1fc
+6fe2439c
+1fe25e00
+1f00f004
+18006c38
+18006c08
+20206d84
+473b402e
+6fe34378
+684b0297
+2034edad
+6fe30297
+684b4378
+18007008
+18425e00
+1f00f001
+184f5e00
+1ff07e00
+9de1de00
+1f00f001
+1fef5e00
+1f00f001
+18005e00
+18007e00
+6fe0c368
+6848c429
+2434edbd
+6fe0c36f
+6848c368
+67e0c345
+6048c346
+18007000
+da404345
+18007204
+efe20011
+e8420012
+9842de00
+1f00f001
+1a20a204
+1a40a404
+c2006dc2
+20406df9
+1f00f1fc
+6fe2439c
+1fe25e00
+1f00f004
+18006c38
+18006c0c
+20406d84
+20406df8
+18006c3a
+18006c08
+20206d84
+2f200600
+20608000
+18c27e00
+9f208a00
+18007e00
+e7e08005
+1f20f201
+2f200600
+20608000
+20206dda
+18007000
+1f227e00
+203a6de4
+efe20006
+1f20f3fc
+98005e00
+1f00f001
+2f001e04
+20608000
+20206de0
+18007008
+20206dee
+18007004
+20206dee
+18007000
+18007204
+efe20006
+98005e00
+1f00f001
+c2006def
+20600000
+d8c002c7
+20206deb
+18007204
+20206dfb
+18007000
+18007204
+18005e00
+1f00f001
+c2006dfa
+20600000
+1800700c
+18007204
+1de27e00
+e7e20005
+1f00f001
+c2006e00
+20600000
+1800700c
+1a620a00
+1a40f201
+1f267c0f
+20216e0b
+18007210
+1de27e00
+1f267c03
+20216e13
+e7e20005
+1f20f3fc
+20628000
+1f00f001
+20206e0b
+e7e08005
+1fecfe00
+c2006e13
+20600000
+1800700c
+18007204
+efe20006
+9de67c00
+24628000
+1f00f001
+c2006e19
+18007c00
+20600000
+6ff08050
+793ffe00
+67f08050
+20600000
+6ff08050
+79207e00
+67f08050
+20600000
+d8a00748
+3803ffff
+3807ffff
+380bffff
+380ffbff
+e7e48005
+3803ffff
+3807ffff
+380bffff
+380fffff
+e7e48005
+3803ffff
+3807ffff
+380bcfff
+380fffff
+e7e48005
+3803ffff
+3807ffff
+380bffef
+380fffff
+e7e48005
+3803ffff
+3807ffff
+380bffff
+380fffff
+e7e48005
+3803ffff
+38066c7f
+3808146b
+380f7bb3
+e7e48005
+3801feb8
+38050c12
+380ab722
+380e9fa6
+e7e48005
+3800e70f
+38056720
+3808519e
+380d9084
+e7e48005
+38031012
+380760bf
+380bf0af
+380c03d3
+e7e48005
+3803a188
+38043ad0
+380bcbf2
+380e43d9
+e7e48005
+3802b030
+38076a03
+38091188
+380de520
+e7e48005
+3803a11e
+3804fe5d
+3808dd57
+380dac93
+e7e48005
+380011ed
+380618c4
+38088da7
+380e57ff
+e7e48005
+3803192b
+38074641
+3809be0c
+380f66ad
+e7e48005
+38001f83
+38055a23
+380bf9b0
+380c3949
+e7e48005
+38013a51
+380553fd
+380b372a
+380cf1bb
+e7e48005
+3803ae85
+3805eed9
+38089e66
+380c01a8
+e7e40005
+20600000
+d8a007e0
+3803ffff
+3807ffff
+380bffff
+380fffff
+e7e48005
+3803ffff
+3804003f
+38080000
+380c0000
+e7e48005
+38000000
+38040000
+38081000
+380c0000
+e7e48005
+3803ff00
+3807ffff
+380bffcf
+380fffff
+e7e48005
+3803ffff
+3807ffff
+380bffff
+380c03ff
+e7e48005
+38000000
+38040000
+38080000
+380c0000
+e7e48005
+38010000
+38040000
+380bf000
+380fffff
+e7e48005
+380296ff
+38062630
+380b945d
+380fd284
+e7e48005
+380333a0
+38044b7a
+380837d8
+380fc9dc
+e7e48005
+3803a440
+3805b958
+380b8bce
+380d091f
+e7e48005
+3802e12c
+3805f47c
+380b56b1
+380efd47
+e7e48005
+38006837
+3806ed90
+3809ecec
+380dacc5
+e7e48005
+38023357
+38058af3
+3808f9e1
+380d29f0
+e7e48005
+3802e7eb
+3807e6e3
+380be1a7
+380d0b8b
+e7e48005
+38024fe3
+380420ef
+3809b5a6
+380cdc2f
+e7e48005
+38013860
+3806bd69
+3808391a
+380db222
+e7e48005
+20600000
+6fe0c763
+243a6eec
+2020756e
+473bc02e
+6fe0c763
+207a0000
+6fe0c6b8
+c1808000
+6fe0c6b7
+207a0000
+6fe0c6ba
+c1018000
+6fe1478b
+c2806ee2
+6fe0c6b9
+c000756e
+20600000
+7046b900
+20600000
+6fe0c6b7
+79207e01
+67e0c6b7
+20600000
+6fe0c6b7
+793ffe01
+67e0c6b7
+20600000
+473c402f
+6fe0c763
+243a7027
+20406ef9
+7046b800
+70087400
+20600000
+6fe0c763
+207a0000
+6fe0c6b8
+c1008000
+20407099
+20206ef3
+58000880
+d8a00870
+98a67200
+20407d34
+5800476f
+d8a04767
+98a67200
+20207d34
+70087201
+6fe0c645
+c0016f06
+c000ef11
+20600000
+6fe0c6ba
+c001ef09
+2020758f
+204075ae
+6fe08871
+247a0000
+70087003
+20600000
+6fe0c6b8
+c000f047
+2020131f
+6fe0c6b8
+c000ef14
+20207027
+20407047
+6fe08871
+247a0000
+70087003
+20600000
+20406f34
+da2008a0
+d8a00728
+2040778e
+da200880
+d8a006e8
+2040778e
+da2006e8
+da400880
+d8a006e8
+204076f6
+da200800
+da400880
+d8a00708
+204076f6
+da200708
+da4006e8
+d8a006e8
+20407792
+da2006c8
+da4006e8
+d8a006c8
+20407792
+df200020
+da200728
+da4006c8
+20207dff
+da200840
+d8a006c8
+2040778e
+da200820
+d8a006e8
+2040778e
+da2006e8
+da400820
+d8a006e8
+204076f6
+da200800
+da400820
+d8a00708
+204076f6
+da200708
+da4006e8
+d8a006e8
+20407792
+da2006c8
+da4006e8
+d8a006c8
+202077ab
+20406f65
+da2008a8
+d8a00728
+20407165
+da200888
+d8a006e8
+20407165
+da2006e8
+da400888
+d8a006e8
+20407143
+da200760
+da400888
+d8a00708
+20407143
+da200708
+da4006e8
+d8a006e8
+20407112
+da2006c8
+da4006e8
+d8a006c8
+20407112
+df200018
+da200728
+da4006c8
+20207dff
+da2007a8
+d8a006c8
+20407165
+da200790
+d8a006e8
+20407165
+da2006e8
+da400790
+d8a006e8
+20407143
+da200760
+da400790
+d8a00708
+20407143
+da200708
+da4006e8
+d8a006e8
+20407112
+da2006c8
+da4006e8
+d8a006c8
+20207115
+6fe0c645
+c0016f7f
+c000ef8f
+20600000
+6fe0c6b9
+c0806fad
+20406faa
+d8a00940
+580008f0
+e7e10005
+580046fb
+e7e10005
+580008a0
+e7e10005
+20407457
+6fe08871
+c0026fa7
+70087201
+70087005
+20600000
+6fe08874
+c0806fad
+20406faa
+d8a00940
+580008f0
+e7e10005
+5800474b
+e7e10005
+580008a0
+e7e10005
+20206fa1
+d8a00940
+58000900
+e7e10005
+580008a0
+e7e10005
+5800474b
+e7e10005
+2040737e
+6fe08871
+c0026fa7
+70087201
+70087005
+20600000
+70087114
+20406f0e
+20207095
+d8a008e0
+18000e08
+2020705f
+70087201
+20600000
+6fe0c645
+c0016fb5
+c000efb8
+70087009
+70087201
+20600000
+6fe0887b
+c081efb2
+20206fba
+6fe0887b
+c080efb2
+d8a005e9
+6fe340a8
+e7e30005
+6fe30041
+e7e30005
+6fe1c767
+e7e18005
+20407476
+da200910
+da400920
+18000e04
+20407064
+2420efd3
+20406fca
+70007e41
+202059d8
+6fe08871
+c004efd0
+7008700a
+70087201
+70007d03
+20600000
+70007d03
+70087115
+20207095
+6fe08871
+c004efd9
+70087000
+70007d04
+70007f05
+20600000
+70007d04
+70087100
+20600000
+6fe0c645
+c0016fe0
+c000efe4
+20600000
+6fe0887b
+c001efe8
+7008710a
+20207095
+6fe08875
+c000efe8
+7008710a
+20207095
+d8a005e9
+6fe30041
+e7e30005
+6fe340a8
+e7e30005
+6fe1c764
+e7e18005
+204074b9
+6fe08871
+c0056ff5
+7008700b
+70087201
+20600000
+7008710b
+70087301
+20600000
+d8a00940
+6fe30041
+e7e30005
+6fe340a8
+e7e30005
+580008f0
+e7e10005
+58000900
+e7e10005
+2020700c
+7008700f
+d8a00940
+6fe340a8
+e7e30005
+6fe30041
+e7e30005
+58000900
+e7e10005
+580008f0
+e7e10005
+d8a005e9
+6fe30940
+e7e30005
+6fe30946
+e7e30005
+204074cd
+7041cd01
+d8a041ce
+d8c00910
+20407d1a
+202009c6
+d8a0471b
+380118ff
+3807fd29
+3809ed2e
+380cad89
+e7e48005
+38030c14
+380475b3
+380805df
+380f709c
+e7e48005
+3802918d
+380457e1
+38080079
+e7e30005
+20600000
+473cc02f
+6fe0c6b8
+c1800000
+6fe08874
+c1800000
+20406e28
+d8a0471b
+18000e0b
+2040705f
+180a7e00
+1fe37e00
+e7e10005
+6fe0c6b6
+245a7017
+d8a00580
+d8c0471b
+20407d19
+d8a004a8
+d8c00790
+20407d17
+d8a004d8
+20407d24
+7004d801
+2040743b
+70087401
+20600000
+d8a04733
+d8c004f0
+20407d17
+7046b801
+70087400
+20600000
+473d402f
+6fe0887b
+c1800000
+6fe08874
+c1800000
+d8a00580
+d8c0471b
+20407d19
+d8a004a8
+d8c00888
+20407d17
+d8a004d8
+20407d24
+7004d801
+2040743b
+70087402
+20600000
+70087501
+d8a008c8
+d8c004f0
+20407d19
+70087b01
+70087400
+20600000
+18e08fff
+24610000
+180a7e00
+e7e10005
+2020705f
+18e08fff
+24217070
+efe20011
+1fe20400
+efe20012
+9842fe00
+2422f06e
+1a20a204
+1a40a404
+20207064
+7840fc00
+20600000
+7820fc00
+20600000
+473dc02f
+6fe08872
+207a0000
+2040599c
+247a0000
+70087200
+6fe08870
+c001d8c2
+c002d8e4
+c003d8ef
+c005d904
+c0016f01
+c0026f7b
+c004efaf
+c0056fdc
+c0067002
+20600000
+473e402f
+6fe08873
+207a0000
+2040599c
+247a0000
+70087300
+6fe08871
+c00958a6
+c009d8ab
+c001d8af
+c0026f9a
+c00a58b3
+c003d8c0
+c0056fdc
+c005d903
+c004efaf
+c00ad8fd
+20600000
+70087301
+20600000
+70087300
+20600000
+473ec02f
+6fe0c763
+207a0000
+6fe08874
+207a0000
+1fe0fe80
+67e08874
+c3838000
+6fe084a5
+203a70a4
+20207446
+20407290
+6fe08874
+c000f041
+c0017058
+20600000
+1fe10e07
+1fe97e00
+98c08c00
+efe08006
+afec0000
+20600000
+20407d19
+20407d19
+20207d19
+efe40006
+247a0000
+efe40006
+247a0000
+efe40006
+20600000
+efe20011
+98000400
+efe20012
+98467c00
+24628000
+1a20a204
+1a40a404
+c20070b8
+20600000
+18007206
+1a20a214
+1a40a414
+efe20012
+98000400
+efe20011
+98467e00
+24610000
+247a0000
+1a20a3fc
+1a40a5fc
+c20070c4
+20600000
+18007206
+18002600
+efe20011
+98000400
+efe20012
+9840fe00
+9a60fe00
+e7e20005
+2feffe20
+7920a600
+1a20a204
+1a40a404
+c20070d0
+20600000
+18007206
+18002600
+efe20012
+98000400
+efe20011
+98467e00
+9a667e00
+e7e20005
+2feffe20
+7920a600
+1a20a204
+1a40a404
+c20070de
+20600000
+18007206
+1a20a214
+18002600
+efe20011
+2feffe00
+7920a601
+1fe37e00
+2a6ffe00
+7920fe1f
+e7e20011
+1a20a3fc
+1a632600
+c20070ed
+20600000
+18007206
+18002600
+efe20011
+2feffe1f
+7920a601
+1fe3fe00
+2a6ffe00
+7920fe00
+e7e20011
+1a20a204
+1a632600
+c20070fa
+20600000
+204070f8
+2a6ffe00
+2020f10e
+da400748
+1a222600
+1a20a3e8
+204070c1
+24610000
+1a622200
+1a20a3e8
+da400748
+1a220a00
+202070dc
+204070ce
+18a22200
+20207106
+204070dc
+2a6c0000
+20608000
+da400748
+18a0a3e8
+1a220a00
+202070ce
+18a21600
+1a226000
+da4005d8
+1a420a00
+1a208c18
+efe40006
+e7e40005
+e7e40005
+18007e00
+e7e40005
+19620a00
+20407112
+da4005d8
+1a420a00
+18007e00
+e7e40005
+1e008c20
+efe40006
+e7e40005
+e7e40005
+19622200
+1a220a00
+20407112
+da4005d8
+1a420a00
+1e008c28
+efe40006
+e7e40005
+e7e40005
+e7e40005
+19622200
+1a220a00
+20207112
+18007206
+efe20006
+98005e00
+1f00f001
+c200713e
+20600000
+18a21600
+d8a005a8
+20407d24
+d8a005a8
+1a220c00
+18007000
+2040713d
+1a420c00
+2040713d
+18002400
+18000400
+18002606
+efe20005
+98002200
+1a427000
+1de27e00
+1a627000
+9deffe00
+9a20fe00
+9840fe00
+e7e20005
+1fef0400
+1a60a601
+2a61fe0c
+2420f14f
+18427e00
+e7e20005
+18a08be8
+1a40a401
+2a41fe06
+2420f14d
+da2005a8
+19620a00
+2020711c
+1a222400
+20207143
+1a226000
+1e022200
+efe08011
+2feffe00
+20608000
+204070ea
+efe08012
+2fec0000
+2020f177
+da200748
+1a420a00
+204070ce
+efe08012
+9a60fe00
+e7e08012
+1a40a5e8
+1a40a218
+18007207
+204070ec
+20207168
+18a21600
+d8a00608
+20407d24
+18007e00
+67e205c0
+67e20620
+70060801
+d8a005a8
+20407d24
+d8c00748
+d8a005d8
+20407d19
+1a220c00
+d8a005f0
+20407d19
+d8c005f0
+204070b2
+203a71b3
+da2005f0
+da400608
+20407167
+da2005d8
+da4005a8
+20407167
+da2005f0
+da4005d8
+204070c1
+202171a5
+da2005d8
+da4005f0
+1a220a00
+204070dc
+da200608
+da4005a8
+1a420a00
+204070ce
+efe08011
+9a60a600
+efe08012
+9a60fe00
+e7e08012
+2020718a
+da2005f0
+da4005d8
+1a220a00
+204070dc
+da2005a8
+da400608
+1a420a00
+204070ce
+efe08011
+9a60a600
+efe08012
+9a60fe00
+e7e08012
+2020718a
+d8a00608
+20407d24
+6fe085c0
+67e08608
+67e08610
+da200608
+da4005a8
+1a420a00
+20407112
+da200748
+da4005a8
+19620a00
+20207115
+da200568
+d8a00620
+20407165
+da200620
+d8a00638
+20407165
+da200760
+da400638
+d8a00638
+20407143
+da200538
+d8a00620
+20407165
+d8c00620
+d8a005f0
+20407d19
+da2005f0
+20407105
+da200620
+da4005f0
+d8a00620
+20407112
+da200620
+da400638
+d8a00620
+20407112
+d8c00538
+d8a005f0
+20407d19
+da200550
+d8a00638
+20407165
+da2005f0
+20407105
+da2005f0
+20407105
+da2005f0
+da400638
+d8a005f0
+20407143
+da200638
+d8a00608
+20407165
+da200608
+20407105
+da200608
+20407105
+da200608
+20407105
+d8c00550
+d8a00638
+20407d19
+da200638
+20407105
+da200638
+da400568
+d8a00568
+20407143
+da200620
+d8a00638
+20407165
+da200638
+da4005f0
+d8a00638
+20407115
+da200638
+da4005f0
+d8a00538
+20407115
+da2005f0
+da400538
+d8a00638
+20407115
+da200638
+da400620
+d8a00638
+20407143
+da200638
+da400608
+d8a00550
+20207115
+da2004d8
+d8a00650
+20407165
+da200538
+da400650
+d8a00608
+20407143
+da2004d8
+da400650
+d8a00650
+20407143
+da200550
+da400650
+d8a005f0
+20407143
+da200568
+d8a00650
+20407165
+da2004a8
+da400650
+d8a00620
+20407143
+da200568
+da400650
+d8a00650
+20407143
+da2004c0
+da400650
+d8a00638
+20407143
+da200608
+da400620
+d8a00650
+20407115
+da200608
+da400620
+d8a00608
+20407112
+da2005f0
+da400638
+d8a00620
+20407115
+da2005f0
+da400638
+d8a005f0
+20407112
+da2005f0
+da400650
+d8a005f0
+20407143
+da200568
+da4004d8
+d8a00638
+20407143
+da200638
+da400650
+d8a00568
+20407143
+da200650
+d8a00650
+20407165
+da200650
+da400608
+d8a00638
+20407143
+da200650
+da4005f0
+d8a005f0
+20407143
+da200620
+d8a00538
+20407165
+da200538
+da400638
+d8a00538
+20407115
+d8c00538
+d8a00650
+20407d19
+da200650
+20407105
+da200638
+da400650
+d8a00638
+20407115
+da200638
+da400620
+d8a00620
+20407143
+da200620
+da4005f0
+d8a00550
+20407115
+da200550
+da400748
+d8a00550
+18002600
+6fe08550
+2feffe00
+2040f0ce
+1a626000
+da200550
+204070ea
+6fe08567
+2e0ffe00
+7920fe07
+67e08567
+20600000
+6fe084a5
+1fe0ffff
+24610000
+67e084a5
+6fe084a4
+205a71c0
+6fe084a5
+d8c00580
+204070a9
+2020f27d
+6fe084a4
+243a728b
+20407211
+2020727d
+7004a400
+d8c004a8
+d8a00538
+204070af
+2020727d
+da200568
+d8a00638
+2040717b
+da200638
+d8a005f0
+20407165
+da200538
+da4005f0
+d8a004f0
+20407143
+da200638
+da4005f0
+d8a00620
+20407143
+da200550
+da400620
+d8a00508
+20207143
+efe20006
+18002204
+18a08a03
+e7e08005
+1fecfe00
+18a08bfe
+1a20a3ff
+2422f2a5
+18a08a05
+c20072a2
+20600000
+18ebfe00
+99608c00
+efe20006
+20600000
+18006010
+d96004a8
+1e008ff9
+204072ad
+98000400
+1e008ff0
+204072ad
+98408400
+1e008ffe
+204072ad
+1fee7e01
+98408400
+1e008ff1
+204072ad
+1fee7e00
+98408400
+1e0bfe00
+99608a00
+e0420005
+1e00e001
+2e01fe40
+2420f2b3
+20600000
+d8c007c0
+18007007
+efe20006
+98005e00
+1f00f1ff
+202172ca
+20600000
+473f402f
+204072b1
+d8a005a8
+18007000
+1de27e00
+e7e20005
+1f00f001
+2f01fe08
+2420f2d3
+20406e20
+d9609300
+de0004a8
+18007240
+e8420030
+efe2000b
+19609604
+1e00e004
+9840fe00
+18007007
+9de08400
+18007004
+1dee7e03
+98408400
+18007005
+1de27e00
+18007006
+9de2fe00
+18007004
+9de17e00
+18007006
+9de2fe00
+98408400
+18007007
+18425e00
+18007003
+1de27e00
+9840de00
+18007000
+1de27e00
+18007001
+9de10400
+9de1fe00
+18007002
+9de17e00
+98418400
+18007000
+1dee7e02
+9840fe00
+18007007
+9de0de00
+980efc00
+c20072dc
+d8c005a8
+18007000
+efe20006
+9de0de00
+1f00f001
+2f01fe08
+2420f305
+20206e24
+d8a00900
+18007007
+1de27e00
+e7e20005
+1f00f1ff
+2021730d
+20600000
+d8a004a8
+18c08dfc
+1f262210
+efe20006
+9842fe00
+e7e20005
+18c08df8
+c2007315
+1a227200
+18427e00
+e7e20005
+c200731c
+20600000
+6fe0c645
+c0017326
+c000f323
+20600000
+2040732b
+2040730b
+20207351
+20407365
+2040730b
+20207351
+2040732b
+20207351
+d8c008a0
+d8a004a8
+18007206
+2040744f
+d8c0474b
+18007206
+2040744f
+d8c00900
+2040744e
+204072c8
+204072cf
+d8c008f0
+d8a004a8
+20207348
+d8c0474b
+d8a004a8
+18007206
+2040744f
+d8c008a0
+18007206
+2040744f
+d8c008f0
+2040744e
+204072c8
+204072cf
+d8c00900
+d8a004a8
+20407348
+20207351
+2040744e
+58800000
+1fed7e00
+e7e20005
+18007205
+20407d25
+58000280
+e7e20005
+202072cf
+6fe20900
+da2003e8
+9a26fc00
+20407dfd
+18077e00
+67e2087c
+1807fe00
+da2003e8
+9a26fc00
+20407dfd
+18077e00
+da2003e8
+9a2ffe00
+684a087c
+9840fe00
+67e2087c
+20600000
+20407365
+2040730b
+20207351
+d8c008a0
+d8a004a8
+18007208
+2040744f
+d8c046fb
+18007208
+2040744f
+204072c8
+204072cf
+d8c00900
+d8a004a8
+2040744e
+d8c008f0
+20207373
+2040744e
+58800000
+1fed7e00
+e7e20005
+18007203
+20407d25
+58000300
+e7e20005
+202072cf
+70476d00
+20207380
+6fe0c76b
+c081737c
+473fc02f
+58363636
+1fed0400
+18418436
+6fe10940
+1fe20c00
+18007204
+20407312
+204072c8
+204072cf
+6fe10942
+1fe20c00
+d8a004a8
+18007206
+2040744f
+6fe10944
+1fe20c00
+18007206
+2040744f
+58800000
+e7e18005
+6fe0c76d
+e7e08005
+18007e00
+e7e40005
+58000388
+e7e20005
+204072cf
+2040730b
+d8c00900
+d8a005c8
+20407d18
+585c5c5c
+1fed0400
+1841845c
+6fe10940
+1fe20c00
+18007204
+20407312
+204072c8
+204072cf
+d8c005e8
+d8a004a8
+18007208
+2040744f
+58800000
+1fed7e00
+e7e20005
+20407d24
+58000300
+e7e20005
+204072cf
+2020730b
+58363636
+1fed0400
+18418436
+d8c008e0
+18007206
+20407312
+204072c8
+204072cf
+6fe1094c
+1fe20c00
+d8a004a8
+2040744e
+6fe1094e
+1fe20c00
+2040744e
+5862746c
+1fed7e00
+1fe1fe6b
+e7e20005
+d8c005f5
+18007203
+2040744f
+58800000
+1fed7e00
+e7e20005
+18007e00
+e7e40005
+58000380
+e7e20005
+204072cf
+2040730b
+d8c00900
+d8a005c8
+20407d18
+585c5c5c
+1fed0400
+1841845c
+d8c008e0
+18007206
+20407312
+204072c8
+204072cf
+d8c005e8
+d8a004a8
+18007208
+2040744f
+58800000
+1fed7e00
+e7e20005
+20407d24
+58000300
+e7e20005
+204072cf
+2020730b
+6fe0c76b
+c08173fc
+47404030
+58363636
+1fed0400
+18418436
+d8c008e0
+18007206
+20407312
+204072c8
+204072cf
+d8c00900
+d8a004a8
+2040744e
+d8c008f0
+2040744e
+20207411
+58000000
+67e24793
+202073ed
+58000000
+67e24793
+20207404
+6fe0c76b
+c08173ff
+58363636
+1fed0400
+18418436
+d8c008e0
+18007206
+20407312
+204072c8
+204072cf
+d8c008f0
+d8a004a8
+2040744e
+d8c00900
+2040744e
+58000000
+e7e40005
+e7e20005
+6fe24793
+e7e20005
+18a20400
+7005e880
+18420a00
+d8c005f8
+2040744e
+204072cf
+d8a004a8
+18007207
+20407d25
+e7e20005
+580003f8
+e7e20005
+204072cf
+2040730b
+d8c00900
+d8a005c8
+20407d18
+585c5c5c
+1fed0400
+1841845c
+d8c008e0
+18007206
+20407312
+204072c8
+204072cf
+d8c005e8
+d8a004a8
+18007208
+2040744f
+58800000
+1fed7e00
+e7e20005
+20407d24
+58000300
+e7e20005
+204072cf
+2020730b
+7004a5c0
+6fe084a5
+207a0000
+1fe0ffff
+67e084a5
+d8c00580
+204070a9
+2020f43c
+d8c004a8
+d8a00538
+202070af
+204071c0
+6fe084a5
+1fe0ffff
+67e084a5
+d8c00580
+204070a9
+20608000
+20207211
+18007204
+18c08dfc
+efe20006
+e7e20005
+18c08df8
+c2007450
+20600000
+70476d00
+20207459
+6fe0c76b
+c0817455
+58363636
+1fed0400
+18418436
+6fe10940
+1fe20c00
+18007204
+20407312
+204072c8
+204072cf
+6fe10942
+1fe20c00
+d8a004a8
+18007208
+2040744f
+6fe10944
+1fe20c00
+18007208
+2040744f
+204072cf
+d8a004a8
+58800000
+e7e18005
+6fe0c76d
+e7e08005
+df200007
+20407d25
+58000408
+e7e20005
+2020739b
+6fe0c645
+c001747a
+c000f3eb
+20600000
+6fe0c76b
+c08174b3
+58363636
+1fed0400
+18418436
+d8c008e0
+18007208
+20407312
+204072c8
+204072cf
+d8c00900
+d8a004a8
+2040744e
+d8c008f0
+2040744e
+58000000
+e7e40005
+e7e20005
+6fe24793
+e7e20005
+18a20400
+7005e880
+18420a00
+d8c005f8
+2040744e
+204072cf
+d8a004a8
+18007207
+20407d25
+e7e20005
+580003f8
+e7e20005
+204072cf
+2040730b
+d8c00900
+d8a005c8
+20407d18
+585c5c5c
+1fed0400
+1841845c
+d8c008e0
+18007208
+20407312
+204072c8
+204072cf
+d8c005e8
+d8a004a8
+18007208
+2040744f
+58800000
+1fed7e00
+e7e20005
+20407d24
+58000300
+e7e20005
+204072cf
+2020730b
+58000000
+67e24793
+2020747c
+58000000
+67e24793
+202074bf
+6fe0c645
+c00174bd
+c000f402
+20600000
+6fe0c76b
+c08174b6
+58363636
+1fed0400
+18418436
+d8c008e0
+18007208
+20407312
+204072c8
+204072cf
+d8c008f0
+d8a004a8
+2040744e
+d8c00900
+2040744e
+20207489
+6fe0c645
+c00174d1
+c000f3b5
+20600000
+58363636
+1fed0400
+18418436
+d8c008e0
+18007208
+20407312
+204072c8
+204072cf
+6fe1094c
+1fe20c00
+d8a004a8
+2040744e
+6fe1094e
+1fe20c00
+2040744e
+5862746c
+1fed7e00
+1fe1fe6b
+e7e20005
+d8c005f5
+18007203
+2040744f
+58800000
+1fed7e00
+e7e20005
+18007e00
+e7e40005
+58000380
+e7e20005
+204072cf
+2040730b
+d8c00900
+d8a005c8
+20407d18
+585c5c5c
+1fed0400
+1841845c
+d8c008e0
+18007208
+202074a4
+6fe340a8
+67e305e9
+6fe30041
+e7e30005
+58363636
+1fed0400
+18418436
+d8c041de
+18007204
+20407312
+204072c8
+204072cf
+58627461
+1fed7e00
+1fe1fe6b
+67e204a8
+d8c005f5
+18007203
+2040744f
+d8c046b1
+df200002
+2040744f
+58800000
+1fed7e00
+e7e20005
+df200004
+20407d25
+580002c0
+e7e20005
+204072cf
+2040730b
+d8c00900
+d8a005c8
+20407d18
+585c5c5c
+1fed0400
+1841845c
+d8c041de
+18007204
+202074a4
+6fe340a8
+67e305e9
+6fe30041
+e7e30005
+58363636
+1fed0400
+18418436
+d8c041de
+18007204
+20407312
+204072c8
+204072cf
+58627464
+1fed7e00
+1fe1fe6b
+67e204a8
+d8c005f5
+18007203
+2040744f
+58800000
+1fed7e00
+e7e20005
+df200005
+20407d25
+58000280
+e7e20005
+204072cf
+2040730b
+d8c00900
+d8a005c8
+20407d18
+585c5c5c
+1fed0400
+1841845c
+d8c041de
+18007204
+202074a4
+d8c00910
+d8a00454
+20407d1a
+58000900
+67e10940
+58000434
+e7e10005
+58363636
+1fed0400
+18418436
+d8c00464
+18007204
+20407312
+204072c8
+204072cf
+d8a004a8
+6fe10940
+1fe20c00
+2040744e
+6fe10942
+1fe20c00
+2040744e
+58800000
+1fed7e00
+e7e20005
+df200003
+20407d25
+58000300
+e7e20005
+204072cf
+2040730b
+d8c00900
+d8a005c8
+20407d18
+585c5c5c
+1fed0400
+1841845c
+d8c00464
+18007204
+202074a4
+4740c030
+6fe0c6b7
+243a758f
+7046b900
+7046ba00
+20600000
+6fe0c6b7
+207a0000
+6fe0c6ba
+c1018000
+204075c4
+20207574
+d8a046bb
+38001abd
+3805b34f
+38099b8a
+380e6562
+e7e48005
+380340b7
+38041efa
+3808aff6
+380cfd41
+e7e48005
+3803d210
+38066cf8
+380b874c
+380f157c
+e7e48005
+3802d4a3
+3807d27d
+38080003
+e7e28005
+20600000
+6fe0c6ba
+c1800000
+6fe0c6b9
+c1800000
+20406e7f
+d8a046bb
+18000e0f
+2040705f
+180a7e00
+1fe37e00
+e7e10005
+6fe0c6b6
+245a757a
+d8a00628
+d8c046bb
+20407d18
+d8a00508
+d8c00820
+20407d0d
+d8a00548
+20407d30
+70054801
+204075dc
+7046b903
+20600000
+d8a046db
+d8c00568
+20407d0d
+7046ba03
+7046b900
+20600000
+6fe0887b
+c1800000
+6fe0c6b9
+c1800000
+d8a00628
+d8c046bb
+20407d18
+d8a00508
+d8c00880
+20407d0d
+d8a00548
+20407d30
+70054801
+204075dc
+7046b904
+20600000
+d8a008c0
+d8c00568
+20407d18
+70087b03
+7046b900
+20600000
+6fe0c6b7
+207a0000
+6fe0c6b9
+207a0000
+1fe0fe80
+67e0c6b9
+c3838000
+6fe104a5
+203a75ce
+202075d4
+47414030
+204075e9
+6fe0c6b9
+c001f5a8
+c00275be
+20600000
+204075fb
+6fe104a5
+1fe0ffff
+67e104a5
+d8c00628
+204070a9
+20608000
+2020764c
+4741c030
+58000100
+67e104a5
+6fe104a5
+207a0000
+1fe0ffff
+67e104a5
+d8c00628
+204070a9
+2020f5df
+d8c00508
+d8a005c8
+20207d0c
+da200608
+d8a00708
+204076b8
+da200708
+d8a006a8
+2040778e
+da2005c8
+da4006a8
+d8a00568
+204076f6
+da200708
+da4006a8
+d8a006e8
+204076f6
+da2005e8
+da4006e8
+d8a00588
+202076f6
+da200608
+d8a006e8
+2040778e
+da2006e8
+d8a00708
+2040778e
+da200800
+da400708
+d8a00708
+204076f6
+da2005c8
+d8a006e8
+2040778e
+d8c006e8
+d8a006a8
+20407d18
+da2006a8
+20407795
+da2006e8
+da4006a8
+d8a006e8
+20407792
+da2006e8
+da400708
+d8a006e8
+20407792
+d8c005c8
+d8a006a8
+20407d18
+da2005e8
+d8a00708
+2040778e
+da2006a8
+20407795
+da2006a8
+20407795
+da2006a8
+da400708
+d8a006a8
+204076f6
+da200708
+d8a006c8
+2040778e
+da2006c8
+20407795
+da2006c8
+20407795
+da2006c8
+20407795
+d8c005e8
+d8a00708
+20407d18
+da200708
+20407795
+da200708
+da400608
+d8a00608
+204076f6
+da2006e8
+d8a00708
+2040778e
+da200708
+da4006a8
+d8a00708
+204077ab
+da200708
+da4006a8
+d8a005c8
+204077ab
+da2006a8
+da4005c8
+d8a00708
+204077ab
+da200708
+da4006e8
+d8a00708
+204076f6
+da200708
+da4006c8
+d8a005e8
+202077ab
+da200548
+d8a00728
+2040778e
+da2005c8
+da400728
+d8a006c8
+204076f6
+da200548
+da400728
+d8a00728
+204076f6
+da2005e8
+da400728
+d8a006a8
+204076f6
+da200608
+d8a00728
+2040778e
+da200508
+da400728
+d8a006e8
+204076f6
+da200608
+da400728
+d8a00728
+204076f6
+da200528
+da400728
+d8a00708
+204076f6
+da4006c8
+da2006e8
+d8a00728
+204077ab
+da2006c8
+da4006e8
+d8a006c8
+20407792
+da4006a8
+da200708
+d8a006e8
+204077ab
+da2006a8
+da400708
+d8a006a8
+20407792
+da2006a8
+da400728
+d8a006a8
+204076f6
+da200608
+da400548
+d8a00708
+204076f6
+da200708
+da400728
+d8a00608
+204076f6
+da200728
+d8a00728
+2040778e
+da200728
+da4006c8
+d8a00708
+204076f6
+da200728
+da4006a8
+d8a006a8
+204076f6
+da2006e8
+d8a005c8
+2040778e
+da2005c8
+da400708
+d8a005c8
+204077ab
+d8c005c8
+d8a00728
+20407d18
+da200728
+20407795
+da200708
+da400728
+d8a00708
+204077ab
+da200708
+da4006e8
+d8a006e8
+204076f6
+da2006e8
+da4006a8
+d8a005e8
+204077ab
+da2005e8
+da4007e0
+d8a005e8
+18002600
+6fe085e8
+2feffe00
+2040f790
+1a626000
+da2005e8
+204077c0
+6fe08607
+2e0ffe00
+7920fe07
+67e08607
+20600000
+18a21600
+d8a006c8
+20407d30
+18007e00
+67e206e8
+7006c801
+d8a00648
+20407d32
+d8c007e0
+d8a00688
+20407d18
+1a220c00
+d8a006a8
+20407d18
+d8c006a8
+204077ca
+203a76ef
+da2006a8
+da4006c8
+204077cd
+da200688
+da400648
+204077cd
+da2006a8
+da400688
+204077c6
+202176e1
+da200688
+da4006a8
+1a220a00
+204077be
+da2006c8
+da400648
+1a420a00
+20407790
+efe08011
+9a60a600
+efe08012
+9a60fe00
+e7e08012
+202076c6
+da2006a8
+da400688
+1a220a00
+204077be
+da200648
+da4006c8
+1a420a00
+20407790
+efe08011
+9a60a600
+efe08012
+9a60fe00
+e7e08012
+202076c6
+da200648
+19620a00
+2040771f
+da2007e0
+19622400
+19620a00
+202077ab
+18a21600
+18007000
+d8a00648
+20407d32
+d8a0099e
+20407d32
+1a220c00
+70099e00
+58000000
+20407788
+1a420c00
+2040778c
+18000e00
+d8a00648
+d840099e
+18e22400
+1a4bfe00
+9840a400
+18000400
+18002600
+efe20005
+98002200
+efe20012
+1a627000
+9deffe00
+9a20fe00
+9840fe00
+e7e20005
+1fef0400
+1a60a601
+2a61fe08
+2420f70a
+18427e00
+e7e20005
+18a08be0
+18e08e01
+28e1fe08
+2420f704
+da200648
+19620a00
+2020771f
+47424030
+18a21600
+1a226000
+da400688
+1a420a00
+20407d2d
+e7e40005
+1a208c2c
+20407d14
+20407d10
+1a422200
+20407795
+da400688
+1e022200
+19620a00
+20407792
+da400688
+1a420a00
+20407d2d
+e7e40005
+1e008c30
+20407d1a
+20407d2d
+1a422200
+20407795
+da400688
+19622200
+1a220a00
+20407792
+da400688
+1a420a00
+1e008c20
+20407d10
+20407d2d
+e7e40005
+1e008c38
+20407d14
+19622200
+1a220a00
+20407792
+da400688
+1a420a00
+1e008c24
+20407d10
+1e008c34
+20407d10
+1e008c34
+20407d11
+1e008c20
+20407d11
+19622200
+1a220a00
+20407792
+da400688
+1a420a00
+1e008c2c
+20407d10
+20407d2d
+e7e40005
+1e008c20
+20407d11
+1e008c28
+20407d11
+19622200
+1a220a00
+204077ab
+da400688
+1a420a00
+1e008c30
+20407d14
+20407d14
+18007e00
+e7e40005
+1e008c24
+20407d11
+1e008c2c
+20407d11
+19622200
+1a220a00
+204077ab
+da400688
+1a420a00
+1e008c34
+20407d10
+1e008c20
+20407d10
+20407d2d
+1e008c30
+20407d11
+19622200
+1a220a00
+204077ab
+da400688
+1a420a00
+1e008c38
+20407d14
+20407d2d
+1e008c24
+20407d10
+20407d2d
+1e008c34
+20407d11
+19622200
+1a220a00
+202077ab
+18007220
+d8a0099e
+98a08a00
+20207d6d
+18007208
+2020713e
+1a222400
+202076f6
+18007208
+202070cf
+20407790
+18a22200
+20207796
+204077c3
+2a6ffe00
+2020f79f
+da4007e0
+1a222600
+1a20a3e0
+204077c6
+24610000
+1a622200
+202077a7
+204077a7
+1a222600
+1a20a3e0
+da4007e0
+204077c6
+24610000
+1a622200
+202077a7
+1a20a3e0
+da4007e0
+1a220a00
+202077be
+204077be
+2020f7b5
+18a0a3e0
+da4007e0
+204077c6
+24610000
+da4007e0
+18a0a3e0
+1a220a00
+202077be
+18a0a3e0
+da4007e0
+1a220a00
+20407790
+20608000
+18a0a3e0
+da4007e0
+1a220a00
+20207790
+18007208
+202070dd
+18007208
+1a20a21c
+202070ec
+18007208
+18002600
+202070fa
+18007208
+1a20a21c
+1a40a41c
+202070c4
+efe40006
+247a0000
+202070b2
+1a226000
+1e022200
+efe08011
+2feffe00
+20608000
+204077c0
+efe08012
+2fec0000
+2020f7dd
+da2007e0
+1a420a00
+20407790
+efe08012
+9a60fe00
+e7e08012
+1a40a5e0
+1a40a220
+18007209
+204070ec
+202077ce
+20401547
+20758000
+204077e8
+2040788e
+2020781d
+2040783e
+2020787d
+6fe0c78f
+c17f8000
+98000400
+204060b8
+6848c78f
+204060b4
+20000064
+6848c78f
+2040609f
+202077f2
+4742c030
+6fe0c78f
+c17f8000
+1fe20400
+204060a8
+2420f804
+2040780e
+6fe1478b
+79207e0c
+67e1478b
+6fe0c782
+c1000000
+70478200
+6fe0c78e
+67e0c781
+20407815
+70095b2c
+2020789f
+6fe1478b
+793ffe0c
+67e1478b
+6fe0c782
+c1008000
+70478201
+70478100
+20407817
+70095b2d
+2020789f
+6fe0c781
+207a0000
+1fe0ffff
+67e0c781
+247a0000
+70095b10
+2020789f
+d8e00007
+20201516
+d8e00007
+2020151a
+6fe14491
+1a2fa40b
+9a40a400
+20600000
+6fe0c490
+207a0000
+1fe27200
+6fe14491
+1fe22400
+1a40a602
+e8408013
+204060b8
+20407847
+1a40a40b
+c2007822
+20600000
+20407819
+58000002
+e7e08012
+20407877
+2020784c
+20407819
+58000003
+e7e08012
+20407877
+20207847
+20407819
+58000001
+e7e08012
+580000ff
+e7e08005
+20207847
+20407819
+df20000b
+1a620c00
+1a420a00
+20207d60
+6fe0c490
+207a0000
+da200000
+20407851
+1a20a201
+6fe0c490
+9a267c00
+20628000
+20207841
+1a40a602
+e8408013
+6fe0c09a
+c0044933
+202060b4
+1a40a602
+e8408013
+6fe0c09a
+c004493f
+202060b8
+1a208e0b
+20407d82
+247a0000
+20407819
+efe08012
+c001784c
+c001f847
+c0007847
+c002f865
+2040784c
+1a40a607
+20407cdc
+efe10013
+20407e13
+20407ce8
+58000005
+e7e08012
+1a40a603
+efe10013
+20207875
+20407847
+1a40a609
+20407cdc
+efe10013
+20407e13
+20407ce8
+1a40a601
+efe08013
+c07ff871
+1fe0ffff
+e7e08013
+203a782e
+58000004
+e7e08012
+1a40a605
+efe10013
+1a208e0b
+20207d74
+58000000
+20207875
+58001000
+1ff07e00
+9a40a400
+20600000
+47434030
+da200000
+684a4783
+1c422400
+1a427e00
+98467c00
+24417879
+1a427e00
+184084a0
+184084a0
+98467c00
+24217891
+1a20a201
+1a217e0f
+243a7884
+da200000
+20407898
+1c427e00
+67e24783
+20600000
+4743c030
+1a227e00
+207a0000
+18408560
+18408560
+793f841c
+604a4783
+20203035
+70476f01
+6fe0c770
+243a789a
+20600000
+70476f00
+20600000
+47444031
+20407899
+1a227e00
+67e20953
+da204771
+20407e33
+6fe20953
+1fe22200
+2020789d
+4744c031
+20407899
+1a227e00
+67e20953
+da204779
+20407e33
+6fe20953
+1fe22200
+2020789d
+58000000
+67e44779
+67e44771
+20600000
+47454031
+6fe0c1de
+247a0000
+da204779
+20407e4b
+207a0000
+70095200
+204078c0
+6fe08952
+203a78b5
+20600000
+20407899
+da204779
+20407e3f
+1fe20400
+2040789d
+4745c031
+18427e00
+207a0000
+c000f8f2
+c00178f7
+c001f8fd
+c006f91c
+c0077922
+c007f927
+c008792d
+c009f937
+c00a7939
+c00af93b
+c00b7945
+c00bf948
+c00c794a
+c00cf94d
+c00f795f
+67e0895b
+2040599c
+243a78f0
+6fe0895b
+c584f8eb
+47464031
+6fe0895b
+c00278ff
+c002f902
+c003790d
+c005790f
+c008f932
+c00df955
+c0097936
+c00ef956
+c00fe074
+c0106076
+c010f961
+c012dfa0
+20600000
+67e0895b
+20400a5f
+2022f8f0
+20400a67
+24628000
+70095201
+202078a8
+6fe1478b
+79207e06
+67e1478b
+70409b03
+20600000
+70478900
+70409b00
+6fe1478b
+793ffe06
+67e1478b
+20600000
+7041de05
+20600000
+70007d07
+70039e13
+20600000
+70007d17
+d8a003ac
+58000000
+2d0ffe1b
+7920fe01
+e7e08005
+58000000
+e7e10005
+6fe34455
+e7e30005
+20600000
+70007d18
+20600000
+7003a802
+6fe0804c
+c2817915
+204059cf
+70007d08
+20600000
+793ffe02
+67e0804c
+204056ad
+58000000
+7934fe01
+67e08080
+20600000
+70442501
+70442800
+6fe1478b
+79207e0b
+67e1478b
+20600000
+6fe1478b
+793ffe0b
+67e1478b
+70442500
+20600000
+70442501
+70442801
+6fe1478b
+79207e0b
+67e1478b
+20600000
+6fe1478b
+793ffe0b
+67e1478b
+70442500
+20600000
+58000014
+67e102b5
+67e14392
+20202a57
+20202827
+da200000
+2020782e
+da200000
+20207829
+da200000
+20407819
+efe08012
+c000f942
+c0027942
+c002f942
+20207833
+efe08006
+c17f8000
+20207833
+7043e001
+7041de1b
+20600000
+7043e001
+20600000
+7043e000
+7041de00
+20600000
+6fe1445d
+20407e13
+6fe0c78f
+c07ff953
+1fe20400
+2040609f
+204078b1
+202013f8
+20202869
+70007d34
+79200003
+24748000
+70464200
+70007d13
+6fe080bd
+793ffe02
+67e080bd
+20600000
+18000e03
+20207d73
+204059d8
+70007e41
+20205649
+6fe0c78b
+c4060000
+c4038000
+2020795f
+6fe1448e
+1fe08a02
+58000000
+e7e18005
+20600000
+20407e64
+204079a8
+207a0000
+6fe1448e
+1fe0a402
+e8408012
+18408401
+e0408012
+e840803f
+18427200
+1fe0a404
+efe08012
+984ffe00
+98c08a00
+1a220c00
+20407d6d
+204079ac
+1fe0ffff
+e8408012
+18408401
+98410400
+e0408012
+20207e62
+20407e64
+204079a4
+207a0000
+6fe1448e
+1fe0a402
+e8408012
+184085ff
+e0408012
+e840803f
+18427200
+1fe0a403
+efe08012
+984ffe00
+98c08c00
+18c08c01
+1a220a00
+2020797c
+20407e64
+204079a4
+207a0000
+6fe1448e
+e840803f
+18427200
+1fe0a403
+efe08012
+984ffe00
+98c08c00
+18c08c01
+18c22400
+1a220a00
+20407d6d
+20207e62
+6fe1448e
+1fe08c02
+efe08006
+20600000
+204079ac
+e8408006
+98467e00
+20600000
+6fe1448e
+1fe08c01
+efe08006
+20600000
+4746c031
+6ff08c23
+2feffe03
+2040f9bc
+6ff08c23
+67f08c23
+67e089f6
+20407a11
+20407a39
+20407c22
+20407c6a
+20207a09
+47474031
+20406e20
+204079db
+708c0000
+20002710
+708c18c0
+6ff10050
+793ffe0a
+67f10050
+708c1100
+708c003c
+58000a4f
+67f10c03
+67f10c07
+58000a8f
+67f10c05
+708c1104
+708c0200
+708c23ff
+58000c4b
+d8a00b59
+98a67200
+20207d34
+68488b58
+2020609f
+6fe08bfa
+207a0000
+68488b58
+204060a8
+2020f9bc
+20600000
+700b5702
+58000000
+67e08a92
+67e10b51
+1fe0fe01
+67e10b53
+1fe0fe01
+67e10b55
+d8a00ae6
+58030404
+e7e18005
+58000409
+e7e10005
+d8a00aeb
+38015906
+380610d2
+38090494
+380c0001
+e7e48005
+d8a00b27
+3801620a
+38040c8c
+380b0333
+380cc0c0
+e7e48005
+38003130
+e7e10005
+580099a4
+67e10a93
+580099ff
+67e10a95
+d8c09aa3
+d8a00a97
+df200013
+20407d6d
+d8c09ab6
+d8a00aaa
+df20003c
+20407d6d
+6fe10b45
+20207e13
+6fe08b47
+207a0000
+67e08acc
+67e08ae5
+20600000
+d8e00000
+20407d82
+247a0000
+6fe08bfb
+247a0000
+6fe08bfa
+245a7cc0
+20600000
+6fe089f6
+c2817a14
+20600000
+20407a19
+20407d81
+58000280
+d8e00000
+20207d74
+6fe08bec
+c0817a1e
+700bfb00
+700bfc00
+20600000
+6fe08bfe
+207a0000
+700bfe00
+700bec02
+700bfa01
+20600000
+6fe089f6
+c2807a44
+20600000
+6ff08c24
+c3830000
+69510c03
+6a110c05
+68710c07
+efe10003
+1fec8400
+18518400
+d8c00fff
+98c17200
+1f222200
+efe08003
+e7e08005
+c2007a32
+60710c07
+622109f8
+20600000
+20600000
+4747c031
+6fe089f6
+c4028000
+d8a00b59
+20407a27
+18427e00
+c0007a41
+20207a38
+6fe089f8
+1fe67c07
+20610000
+47484032
+793f8023
+6fe08b59
+1fe17e80
+c0407a4b
+c0007a53
+2020131f
+6fe08b59
+1ff1fe00
+1fe37e00
+1fe17e03
+c0007a5b
+c000fa61
+c0017a66
+2020131f
+6fe08b59
+1ff1fe00
+1fe37e00
+1fe17e03
+c0007a67
+c000fa6f
+c0017a74
+2020131f
+6fe08b5a
+c0047a7b
+c0037a91
+c0057ad6
+c0007ae8
+20207a75
+6fe08b5a
+c0017b1d
+c000fb21
+c001fb32
+20207a75
+20207a75
+6fe08b5a
+c000fb3c
+c001fb6b
+c002fb95
+c004fbae
+c005fbc9
+c003fa75
+20207a75
+6fe08b5a
+c0057bda
+c004fbec
+c005fc09
+20207a75
+20207a75
+6ff08c19
+79207e00
+67f08c19
+20207a79
+708c1810
+20600000
+6fe08b59
+c0c07a75
+6fe08b5d
+c0807a75
+6fe08b5e
+c0807a75
+6fe08b5f
+c080fa75
+6fe08b60
+c0807a75
+6fe08b5b
+c0807a75
+6fe08b5c
+c0807a75
+6fe08b57
+c0027a8d
+c001fa8f
+20207a75
+da400001
+20207b02
+da400001
+20207b00
+4748c032
+6fe08b5c
+c000faa4
+c0017abd
+c001fac0
+c010fa99
+c0117ace
+20207a75
+700be900
+6fe08b5d
+c0007a9e
+c000faa1
+20207a75
+6a408abd
+da200abd
+20207c18
+6a408ad6
+da200ad6
+20207c18
+6fe08bfd
+245a7ab5
+58000a97
+68488a97
+67e10bf4
+60488bf6
+6fe08b5f
+98467c00
+24217ab3
+6fe08bf6
+98002400
+6fe10bf4
+1fe0fe01
+98002200
+20207c18
+6fe08b5f
+20207aae
+6ff08c02
+245a7ab9
+700bfd00
+20600000
+6ff08c02
+79207e07
+67f08c02
+20600000
+58000aaa
+68488aaa
+20207aa8
+6fe08b5b
+1fe67c03
+24217a75
+6fe08b5b
+da200ae6
+c0007c16
+79200023
+da200aeb
+c000fc16
+da200b09
+c0017c16
+da200b27
+c001fc16
+20600000
+6fe10b5d
+c000fad2
+6a210a93
+20207c16
+700bfa01
+700bec01
+6a210a95
+20207c16
+6fe08b57
+c0827a75
+6fe08b59
+c0c0fa75
+6fe08b5b
+c0807a75
+6fe08b5c
+c0807a75
+6fe08b5f
+c080fa75
+6fe08b60
+c0807a75
+6fe08b5d
+c0807a75
+6fe08b5e
+c0807a75
+da400001
+20207b00
+6fe08b57
+c0017a75
+6fe08b5b
+c0807a75
+6fe08b5c
+c0807a75
+6fe08b5f
+c0817a75
+6fe08b60
+c0807a75
+6fe08b5e
+c0807a75
+6fe08b59
+c0407afb
+c040fb06
+c0417b0a
+20207a75
+700bef01
+20207b04
+6fe08b5d
+c0807a75
+da400002
+6fe08bed
+c000faf9
+da200b51
+20207c18
+da200b53
+20207c18
+da200b55
+20207c18
+6fe08b57
+c0827a75
+da400002
+20207b00
+6fe08b57
+c0827a75
+6fe08b5d
+c040fb17
+c0417b19
+c041fb1b
+1fe17e7f
+c0007b13
+20207a75
+6fe08bf0
+da400002
+c000fb02
+20207b00
+6fe08bf1
+20207b14
+6fe08bf2
+20207b14
+6fe08bf3
+20207b14
+700be701
+da200be8
+da400001
+20207c18
+6fe10b5b
+d84001ba
+98467c00
+2422fa75
+6fe08be4
+243a7b2f
+700ba100
+6fe08b5f
+98002400
+da200ba1
+20407c18
+d8a00ba1
+df200008
+20207d25
+700be400
+700ba101
+20207b28
+6fe08b5f
+c080fa75
+700be901
+da400001
+6fe08beb
+c0007b3a
+c000fb3b
+20207b00
+20207b02
+20207b00
+6fe08b57
+c0827a75
+6fe08b5f
+c0807a75
+6fe08b60
+c0807a75
+6fe08b5c
+c0807a75
+6fe08b5e
+c0807a75
+6fe08b59
+c0007b4b
+c000fb58
+c0017b59
+20207a75
+6fe08b5b
+c080fa75
+6ff08c00
+793ffe07
+67f08c00
+700bed00
+700bee01
+6fe08bef
+203a7a79
+700bef00
+700bee00
+700bec02
+20207a79
+20207a75
+6fe08b5b
+c0807a75
+6fe08b5d
+c040fb64
+c0417b67
+c041fb69
+1fe17e7f
+c0007b62
+20207a75
+700bf000
+20207a79
+700bf100
+700bfe01
+20207a79
+700bf200
+20207b65
+700bf300
+20207b65
+6fe08b5f
+c0807a75
+6fe08b60
+c0807a75
+6fe08b59
+c0007b74
+c000fb81
+c0017b82
+20207a75
+6fe08b5b
+c080fa75
+6ff08c00
+79207e07
+67f08c00
+700bed01
+700bec03
+700be500
+20407a79
+20407d81
+58001388
+d8e0000f
+20207d74
+20207a75
+6fe08b5b
+c0807a75
+6fe08b5c
+c0807a75
+6fe08b5d
+c040fb8f
+c0417b91
+c041fb93
+1fe17e7f
+c0007b8d
+20207a75
+700bf001
+20207a79
+700bf101
+20207a79
+700bf201
+20207a79
+700bf301
+20207a79
+6fe08b59
+c0807a75
+6fe08b5d
+c0807a75
+6fe08b5e
+c0807a75
+6fe08b5f
+c0807a75
+6fe08b60
+c0807a75
+6fe08b5c
+c0807a75
+6fe08b5b
+1fe17e80
+c0807a75
+6fe08b5b
+c0807bac
+700b5702
+6fe08b5b
+67f08c02
+20407a79
+700bfd01
+20600000
+700b5703
+20207ba7
+6fe08b57
+c0017a75
+6fe08b59
+c0807a75
+6fe08b5d
+c0807a75
+6fe08b5e
+c0807a75
+6fe08b5f
+c0807a75
+6fe08b60
+c0807a75
+6fe08b5c
+c0807a75
+6fe08b5b
+1fe67c01
+24217a75
+6fe08b57
+c001fbc3
+c0027bc3
+20207a75
+6fe08b5b
+c0007bc7
+700b5704
+20207a79
+700b5703
+20207a79
+6fe08b57
+c0827a75
+6fe08b59
+c080fa75
+6fe08b5b
+c0807a75
+6fe08b5c
+c0807a75
+6fe08b5f
+c0807a75
+6fe08b60
+c0807a75
+6fe08b5d
+c0807a75
+6fe08b5e
+c0807a75
+20207a79
+47494032
+700be701
+6fe08b5c
+67e08be8
+6fe08b5d
+1fe67c01
+2042fbe8
+6fe08bec
+c0827a79
+700bec02
+20407a79
+20007530
+20007530
+20600000
+700bfa01
+700bee00
+700bec04
+20600000
+d8a00b61
+20407a27
+700be301
+20407bfb
+6fe10b5b
+67e10be1
+20407a79
+6fe0c09a
+c1820000
+6fe08be5
+207a0000
+6fe08b61
+67e0c8d4
+7048c303
+20600000
+6fe10b5b
+d8400200
+98467c00
+24628000
+6fe10b5d
+d8400000
+98467c00
+24628000
+6fe10b5f
+d8400001
+98467c00
+24628000
+700be501
+20600000
+6fe08b5f
+c0807a75
+6fe08b5b
+c0007c0f
+c000fc12
+20207a75
+700bea00
+700beb01
+20207a79
+700be601
+700bea01
+700beb00
+20207a79
+ea408011
+1a20a201
+4749c032
+7920000e
+c591fc1d
+1a40a401
+1a43a400
+62210a90
+62408a92
+20207c22
+d8e00000
+20207c62
+474a4032
+6ff08c24
+c3800000
+6fe08a92
+207a0000
+1fe27200
+98000400
+6fe10b5f
+1fe67c40
+20217c30
+1f267c40
+20217c34
+18007240
+20207c34
+9f267c00
+20217c34
+98007200
+67e08a92
+6fe08a92
+9f267e00
+67e08a92
+1f20ffff
+67e089fa
+c591fc46
+1fe37e00
+1f20ffff
+67e089fa
+c5877c46
+793f800e
+e0408005
+58000003
+e7e08005
+1f20f3ff
+1f227e00
+2422fc46
+1f20f201
+6fe10a90
+1fe20c00
+efe08006
+e7e08005
+c591fc4d
+58000000
+e7e08005
+c2007c48
+18c27e00
+67e10a90
+580009fa
+67f10c09
+d8e00000
+20407c62
+6fe08a92
+247a0000
+6fe08bec
+c1808000
+700bec02
+20600000
+d8e00001
+da200a3b
+62310c0b
+1f20ffff
+e7e08011
+efe08006
+e7e08005
+c2007c5f
+58000000
+f9207e00
+67f08c18
+20600000
+d8e00002
+da200a45
+62310c0d
+20207c5d
+474ac032
+6fe08bf9
+207a0000
+6fe08bfa
+203a7c8e
+6fe08bec
+c001fcc8
+c0817c8e
+6fe08bee
+243a7c8e
+20407c76
+20207c81
+6ff08c24
+c3808000
+6fe08bf9
+c4008000
+6fe08bf9
+793ffe01
+67e08bf9
+6fe08bf7
+207a0000
+c0087cb0
+2020131f
+6ff08c24
+c3810000
+6fe08bf9
+c4010000
+6fe08bf9
+793ffe02
+67e08bf9
+6fe08bf8
+207a0000
+c0107c91
+c010fcac
+c0117cb4
+2020131f
+d8a00bff
+df200008
+20207d25
+6fe08be7
+68488be9
+98417e00
+203a7ca8
+68488bea
+9840fe00
+c000fc99
+20207ca8
+700bf800
+6fe08c00
+c0017ca9
+c001fca9
+6fe08c00
+67e08bff
+6fe08c01
+e7e08005
+6fe08c03
+e7e08005
+6fe08c05
+e7e08005
+df200004
+d8c00bff
+20207c66
+700bf800
+df200008
+d8c00bff
+20207c66
+700bf800
+df200003
+d8c00c1f
+20207c66
+700bf700
+df200008
+d8c00c0f
+20207c5a
+700bf800
+df200002
+d8c00c2f
+20207c66
+6fe08bec
+c0017cbb
+20600000
+6ff08c00
+79207e07
+67f08c00
+700bfc01
+20600000
+6fe08bec
+c1018000
+c0017cc4
+20600000
+6fe08bfc
+207a0000
+700bfb01
+20207ccb
+d8e0000f
+20407d82
+247a0000
+6ff08c00
+c4038000
+708c00fc
+20007530
+708c003c
+20600000
+1f267c00
+20628000
+1fe37e00
+c2007cd3
+20600000
+18007e01
+1f267c00
+20628000
+1fe3fe00
+c2007cd9
+20600000
+60a1097d
+604c0964
+6162096c
+20407ce4
+60c1097b
+67210987
+60e10985
+20600000
+62220970
+62420974
+62618978
+20600000
+6fe1097d
+98000a00
+684c0964
+6962096c
+20407cf2
+6f210987
+68e10985
+6fe1097b
+98000c00
+20600000
+6a220970
+6a420974
+6a618978
+20600000
+6fe1097d
+1fe20a00
+20600000
+6fe1097b
+1fe20c00
+20600000
+18a27e00
+67e1097d
+20600000
+18c27e00
+67e1097b
+20600000
+18a27e00
+67e10959
+18c27e00
+67e10957
+20600000
+6fe10959
+1fe20a00
+6fe10957
+1fe20c00
+20600000
+20407d18
+20407d18
+20207d18
+20407d14
+20407d14
+efe20006
+e7e20005
+20600000
+efe40006
+e7e40005
+20600000
+20407d1a
+20407d14
+20407d14
+20407d14
+20207d14
+1fe0ffff
+20000026
+243a7d1c
+20600000
+df20000a
+20002ee0
+c2007d21
+20600000
+18007203
+18007e00
+e7e40005
+c2007d26
+20600000
+20407d2a
+18007e00
+e7e40005
+20600000
+18007e00
+e7e20005
+20600000
+18007204
+20207d25
+18007208
+20207d25
+1f227e00
+207a0000
+58000000
+e7e08005
+c2007d37
+20600000
+df200020
+d8a0098e
+20207d34
+efe20013
+e8420011
+9842fe00
+e7e20005
+1a20a204
+1a60a604
+c2007d3d
+20600000
+474b4032
+1f227e00
+1fe67c01
+20610000
+9a20a400
+1a40a5ff
+1f237200
+e8408011
+efe08012
+e7e08011
+e0408012
+1a40a5ff
+1a20a201
+c2007d4c
+20600000
+1fef0400
+20407d5a
+18508400
+1ff07e00
+9841fe00
+20600000
+1ff10c00
+18d08c00
+1ff0fe00
+1ff07e00
+98c1fe00
+20600000
+1f227e00
+207a0000
+1f20f3f8
+20417d14
+20628000
+20217d62
+1f20f208
+1f20f3fc
+20417d11
+20628000
+20217d67
+1f20f204
+20207d6d
+1f227e00
+207a0000
+efe08006
+e7e08005
+c2007d6f
+20600000
+58000000
+1c430400
+604a409c
+d8a041ad
+98000400
+18e3fe00
+98a08a00
+e0410005
+474bc032
+20600000
+d9600800
+19701600
+9960fe00
+20600000
+d8e00000
+474c4033
+684a409c
+1c437e00
+67e2409c
+98467c00
+24417d7d
+98461600
+19620400
+d8c041ad
+18c20a00
+df200010
+efe10006
+98467e00
+20217d91
+18007e00
+e7e10005
+c2007d8d
+d8c041ad
+18e3fe00
+98c08c00
+efe10006
+20600000
+98408400
+18427200
+6fe10163
+9f267e00
+20610000
+1fe67e00
+18510400
+18408401
+18500400
+98418400
+20600000
+20407da5
+20207db2
+78547c00
+98467e00
+20217daa
+78347c00
+1fe67e00
+c4078000
+1fe22800
+d8410000
+6fe10163
+98467e00
+9a80fe00
+793ffe40
+20600000
+68490163
+98000c00
+1ff17e00
+984ffe00
+98c0fe00
+20600000
+1fed7e00
+1ff27e00
+6849c177
+9846fc00
+20407dfd
+18078400
+20600000
+68490163
+9846fc00
+20407dfa
+1ff07e00
+18070400
+98418400
+20600000
+d8400000
+18422800
+efe08003
+20407dd2
+1a820400
+20407e0c
+da40000a
+9a4ffe00
+9840fe00
+1fe20400
+c2007dc7
+20600000
+d840003a
+98467c00
+24217ddb
+d8400061
+98467c00
+20217dde
+d8400037
+98467e00
+20600000
+d8400030
+98467e00
+20600000
+d8400057
+98467e00
+20600000
+18426000
+580001ff
+18002400
+1fe92200
+1a232200
+9a22a200
+2a2ffe00
+7920fe09
+18430400
+2feffe00
+79208407
+1fe37e00
+1a40a401
+2a400e00
+2420fde4
+e0408005
+c2007de4
+1e020400
+20600000
+58000000
+1f222200
+e8410006
+9840fe00
+c2007df6
+9a26fc00
+20407dfd
+1807fe00
+20600000
+207a8000
+20207dfd
+efe08011
+e8408012
+98467c00
+24628000
+1a20a201
+1a40a401
+c2007dff
+18007c00
+20600000
+98467c00
+24610000
+18427e00
+20600000
+9840fe00
+98460400
+98467e00
+20600000
+df200200
+d8a04000
+20207d25
+207a0000
+1fe27a00
+6ff1010e
+243a7e15
+20600000
+70820301
+20600000
+67f10205
+6ff08203
+79207e04
+67f08203
+20600000
+67f10207
+6ff08203
+79207e06
+67f08203
+20600000
+67f10205
+70820330
+20600000
+6ff08043
+79207e04
+67f08043
+20600000
+6ff08043
+793ffe04
+67f08043
+20600000
+6ff1010e
+d8400200
+98467c00
+20600000
+474cc033
+e8440011
+18417eff
+243a7e39
+184cfe00
+e7e40011
+1a20a207
+efe08011
+243a131f
+6fe0895b
+e7e08011
+20600000
+474d4033
+df200008
+efe40011
+207a0000
+efe08011
+243a7e48
+1a20a201
+c2007e43
+2020131f
+d8400000
+e0408011
+20600000
+efe40011
+20600000
+efe08011
+20600000
+efe10011
+20600000
+d8400000
+6fe08006
+c2007e52
+18408401
+c2007e52
+18427e00
+20600000
+98467c00
+24610000
+18427e00
+20600000
+18007dff
+20600000
+18007c01
+20600000
+18007c00
+20600000
+78347c00
+20600000
+78547c00
+20600000
+78367c00
+20600000
+78567c00
+20600000
+58000001
+20600000
+58000000
+20600000
+1f267c00
+20628000
+e8408006
+9840fe00
+c2007e70
+20600000
+1f227e00
+207a0000
+18c27e00
+9f20fe00
+1fe0ffff
+1fe20c00
+efe08006
+18c08dfe
+e7e08005
+c2007e7a
+20600000
+19622400
+da609420
+18007224
+18005600
+18006e00
+20407e94
+52207e00
+9d60d600
+50407e00
+9ee0ee00
+1a40a404
+1a60a602
+c2007e84
+55607e00
+d8400024
+20407ee0
+e7e20005
+56e07e00
+20407ee0
+e7e20005
+20600000
+edc10012
+eb808013
+20407ec5
+98482200
+eb808006
+20347e9b
+1b863800
+1a408c02
+edc10006
+20407ec5
+98483000
+52207e00
+9b062200
+edc10012
+55c07e00
+98483000
+edc10006
+eb808013
+20407ec5
+98480400
+53007e00
+98408400
+20600000
+efe20012
+ea220013
+9a285600
+ea220006
+52206e00
+1a408c04
+efe20006
+9a280400
+55607e00
+98465600
+efe20012
+9ee86e00
+efe20006
+ea220013
+9a287e00
+9ee0ee00
+20600000
+1ff07e00
+1feb7e00
+20600000
+1fed7e00
+20207ebd
+9feffe00
+1ff1fe00
+1fe97e00
+20600000
+55c07e00
+53800400
+20600000
+c40f8000
+18000400
+79200420
+184085ff
+9842fe00
+1fe0fe01
+20600000
+98002200
+db000000
+7920301e
+da400000
+df200010
+1b027e00
+9a40fe00
+1a432400
+9a267e00
+2022feda
+20217edd
+1fe62200
+1b027e00
+9a41a400
+1b0b3000
+c2007ed4
+20600000
+793f802c
+c31ffee4
+7920002c
+1fe67e00
+284c003f
+2020fee8
+7940002c
+18460400
+9846fc00
+20407dfa
+c6960000
+1fe67e00
+20600000
+20407ef3
+20407ef6
+20407ef8
+20407f07
+20407f16
+20207f23
+78347c00
+d8a00a01
+20207e7f
+78547c00
+20207e7f
+6fe20a01
+684a0a09
+9840fe00
+20407ec8
+98000400
+984fd600
+6fe20a05
+684a0a0d
+98467e00
+20407ec8
+98000400
+984ffe00
+9d60fe00
+67e40a11
+20600000
+da400a01
+da600a09
+20407eab
+55607e00
+1fe67e00
+1ff07e00
+1febfe00
+684c0a11
+9848fc00
+da210000
+20407dfa
+9a20fe00
+20407ecf
+1a425600
+20600000
+184f7e00
+9a4fa200
+1a427e00
+984f8400
+1a307e00
+1ff07e00
+98408400
+56e07e00
+1fe67e00
+1ff07e00
+1fe3fe00
+9848fc00
+20207dfa
+1fe32600
+9fef8400
+58010000
+98467e00
+20407ecf
+1a427e00
+9d6f8400
+58000000
+79207e1c
+9848fc00
+20407dfd
+18078400
+58001000
+98466e00
+20600000
+20407f38
+20407f3c
+20407f43
+20407f4a
+20407f59
+20207f64
+6fe089f6
+20407ec1
+67e089f8
+20600000
+98002600
+9fef8400
+efe08006
+20407ec1
+e7e08005
+9a60a200
+20600000
+9feffe00
+9840a400
+1a227e00
+9a2f8400
+1a43fe00
+98460400
+20600000
+58400000
+9846fc00
+20407dfa
+67e109fc
+1a307e00
+1feb7e00
+9846fc00
+20407dfa
+e7e10005
+1a4d7e00
+1fe37e00
+9846fc00
+20407dfa
+e7e10005
+20600000
+1a707e00
+1feb7e00
+9a46fc00
+20407dfa
+67e10a02
+6fe089f6
+20407ebf
+9a26fc00
+20407dfa
+e7e10005
+20600000
+6fe089f9
+20407ebc
+9a46fc00
+20407dfa
+67e10a06
+6fe089f7
+20407ebf
+9a26fc00
+20407dfa
+e7e10005
+20600000
+d8a00a2a
+df200002
+20407d25
+d8e00004
+20407f8f
+20407f92
+20407f95
+20407f9e
+20407fa4
+20407faa
+20407fb0
+20407fb6
+19609620
+18e08fff
+2422ff73
+6fe20a2a
+d8c00100
+98c0d600
+6fe20a2e
+9fe80400
+58010000
+98467e00
+20407ecf
+1a427e00
+9d680400
+58000000
+79207e1c
+20407ee0
+d8401000
+98467e00
+1fe67e00
+20600000
+19620c00
+df200008
+20207df4
+98002400
+df200008
+20207df4
+9a40a600
+684889f9
+984f8400
+6fe089f8
+9a4ffe00
+9840fe00
+1ff1fe00
+1fe92200
+20600000
+6fe109fe
+9a6f8400
+6fe109fc
+9a2ffe00
+98462400
+20600000
+6fe109fe
+9a2f8400
+efe10006
+9a6ffe00
+98462200
+20600000
+6fe089f8
+20407fd1
+9a20ee00
+19622600
+d8a00a0a
+20207fd4
+6fe089f9
+20407fd1
+9a20ee00
+1960a610
+d8a00a1a
+20207fd4
+52406e00
+6a410a02
+6a610a06
+da200a0a
+ddc00a1a
+d8a00a2a
+20407fc2
+20407fc2
+6a410a04
+6a610a08
+20407fc2
+20207fc2
+efe20011
+18c22200
+9a485600
+efe2002e
+18c25c00
+9a687e00
+9d60fe00
+1fed7e00
+1ee20400
+20407ee0
+ed620005
+9d667e00
+1fe63000
+e3020005
+20600000
+9a480400
+50407e00
+20207ec2
+d9000004
+ddc09400
+dd600000
+df200008
+efe10013
+18c22600
+9ee67e00
+eb80802e
+18c25c00
+53800400
+98487e00
+9d60d600
+c2007fd8
+1d6cfe00
+1fe37e00
+e7e20005
+1a60a7f0
+190091ff
+2422ffd6
+20600000
+67e4095c
+6fe0c4ce
+c13f8000
+1fe9fe00
+d8a04c00
+98a08a00
+6fe4095c
+e7e40005
+6fe0c4ce
+1fe0fe01
+1fe17e7f
+67e0c4ce
+6fe4095c
+20600000
+58000000
+67e4009f
+20600000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00004e46
Index: program/app.prog
===================================================================
--- /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/program/app.prog	(nonexistent)
+++ /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/program/app.prog	(working copy)
@@ -0,0 +1,554 @@
+app_init:
+	bpatch patch16_7,mem_patch16
+	fetch 1,mem_device_option
+	branch app_init,blank				/* wait ram to be initialized */
+	beq dvc_op_dongle,dongle_init
+	beq dvc_op_antilost,antilost_init
+	beq dvc_op_shutter,shutter_init
+	beq dvc_op_module,module_init
+	beq dvc_op_car,car_init
+	beq dvc_op_remote_car,remote_car_init
+	beq dvc_op_hci_boot,hci_init
+	beq dvc_op_ali_mesh,ali_mesh_init
+	beq dvc_op_test,test_init
+	beq dvc_op_mouse,mouse_init
+	rtn
+	
+app_lpm_init:
+	jam 0,mem_tester_emulate
+	jam 0,mem_debug_config
+	jam 0, mem_lch_code
+	setarg 0
+	store 5,mem_sp_state_start
+	fetch 1,mem_device_option
+	branch app_lpm_init,blank				/* wait ram to be initialized */
+	beq dvc_op_module,module_lpm_init
+app_lpm_init0:
+	rtn
+
+	
+app_process_idle:
+	call ui_dispatch
+	call check_51cmd
+	call app_process_bb_event
+	fetch 2,mem_cb_idle_process
+	branch callback_func
+	
+app_process_bt:
+	fetch 2,mem_cb_bt_process
+	branch callback_func
+	
+app_process_ble:
+	fetch 2,mem_cb_le_process
+	branch callback_func
+
+app_process_bb_event:
+	bpatch patch17_0,mem_patch17
+	//return if c51 need to process bb event
+	arg mem_ipc_fifo_bt2c51,rega
+	call fifo_out
+	rtn blank
+	//reaching here mains c51 cannot get bb event.
+	copy pdata,regc
+	call app_event_normal_process
+	branch app_process_bb_event_priority
+	
+app_discard_event:
+	arg 0,regc
+	rtn
+
+//************************************************//
+//*APP BB EVENT NORMAL PROCESS**//
+//************************************************//
+app_event_normal_process:
+	beq BT_EVT_BB_CONNECTED,app_evt_bt_conn
+	beq BT_EVT_BUTTON_LONG_PRESSED,app_evt_button_long_pressed
+	beq BT_EVT_SETUP_COMPLETE,app_evt_setup_complete
+	beq BT_EVT_HID_HANDSHAKE,app_evt_hid_handshake
+	beq BT_EVT_HID_CONNECTED,app_bb_event_hid_connected
+	beq BT_EVT_RECONN_FAILED,app_bb_event_reconn_failed
+	beq BT_EVT_BB_DISCONNECTED,app_bb_event_bb_disconn
+	beq BT_EVT_RECONN_PAGE_TIMEOUT,app_bb_event_reconn_failed	
+	beq BT_EVT_LE_CONNECTED,app_le_event_bb_connected
+	beq BT_EVT_LE_DISCONNECTED,app_le_event_bb_disconn
+	beq BT_EVT_RECONN_STARTED,app_event_reconn_start
+	beq BT_EVT_ENTER_SNIFF,app_event_enter_sniff
+	beq BT_EVT_EXIT_SNIFF,app_event_exit_sniff
+	
+	beq BT_EVT_ML2CAP_CONN_REFUSED,app_event_ml2cap_conn_refused
+	beq BT_EVT_LINKKEY_GENERATE,app_event_linkkey_generate
+	beq BT_EVT_SWITCH_FAIL_MASTER,app_event_switch_fail_master
+	beq BT_EVT_SWITCH_SUCCESS_MASTER,app_event_switch_success
+	rtn
+
+
+app_evt_bt_conn:
+	fetch 2,mem_ui_state_map
+	set1 UI_STATE_BT_CONNECTED,pdata
+	store 2,mem_ui_state_map
+	fetch APP_DISC_RSN_SIZE,mem_app_disconn_reason_flag
+	set0 APP_DISC_BY_BUTTON ,pdata
+	store APP_DISC_RSN_SIZE,mem_app_disconn_reason_flag
+	branch check_51cmd_stop_discovery
+
+app_event_switch_success:
+	jam 0,mem_switch_fail_master_count
+	rtn	
+
+app_event_switch_fail_master:
+	fetch 1,mem_switch_fail_master_count
+	increase 1,pdata
+	store 1,mem_switch_fail_master_count
+	sub pdata,1,null
+	branch app_bt_role_switch,positive
+	jam 0,mem_switch_fail_master_count
+	fetch APP_DISC_RSN_SIZE,mem_app_disconn_reason_flag
+	set1 APP_DISC_SWITCH_FAIL,pdata
+	store APP_DISC_RSN_SIZE,mem_app_disconn_reason_flag
+	branch app_bt_disconnect
+	
+app_process_bb_event_priority:
+	fetch 2,mem_cb_bb_event_process
+	branch callback_func
+
+app_check_wake_lock:
+	fetch 2,mem_cb_check_wakelock
+	branch callback_func
+	
+app_will_enter_lpm:
+	fetch 2,mem_cb_before_lpm
+	branch callback_func
+
+app_event_linkkey_generate:
+	fetch APP_DISC_RSN_SIZE,mem_app_disconn_reason_flag
+	set1 APP_DISC_AFTER_PAIRING ,pdata
+	store APP_DISC_RSN_SIZE,mem_app_disconn_reason_flag
+	branch app_bt_store_reconn_info
+	
+app_event_reconn_start:
+	fetch 2,mem_ui_state_map
+	set1 UI_STATE_BT_RECONNECT,pdata
+	store 2,mem_ui_state_map
+	fetch APP_DISC_RSN_SIZE,mem_app_disconn_reason_flag
+	set1 APP_DISC_AFTER_RECONN,pdata
+	store APP_DISC_RSN_SIZE,mem_app_disconn_reason_flag
+	rtn
+
+app_evt_setup_complete:
+	fetch 2,mem_ui_state_map
+	set1 UI_STATE_BT_SETUP_COMPLETE,pdata
+	store 2,mem_ui_state_map
+	fetch APP_DISC_RSN_SIZE,mem_app_disconn_reason_flag
+	set1 APP_DISC_AFTER_SETUP_DONE,pdata
+	store APP_DISC_RSN_SIZE,mem_app_disconn_reason_flag
+	rtn
+
+app_evt_hid_handshake:
+	fetch 2,mem_ui_state_map
+	set1 UI_STATE_BT_HID_HANDSHAKE,pdata
+	store 2,mem_ui_state_map
+	rtn
+	
+app_event_enter_sniff:
+	fetch 2,mem_ui_state_map
+	set1 UI_STATE_BT_SNIFF,pdata
+	store 2,mem_ui_state_map
+	fetch APP_DISC_RSN_SIZE,mem_app_disconn_reason_flag
+	set1 APP_DISC_AFTER_SNIFF,pdata
+	store APP_DISC_RSN_SIZE,mem_app_disconn_reason_flag
+	rtn
+	
+app_event_exit_sniff:
+	fetch 2,mem_ui_state_map
+	set0 UI_STATE_BT_SNIFF,pdata
+	store 2,mem_ui_state_map
+	rtn
+
+app_le_event_bb_connected:
+	fetch 2,mem_ui_state_map
+	set1 UI_STATE_BLE_CONNECTED,pdata
+	store 2,mem_ui_state_map
+	rtn
+	
+app_le_event_bb_disconn:
+	jam 0,mem_le_l2cap_att_states
+	fetch 2,mem_ui_state_map
+	set0 UI_STATE_BLE_CONNECTED,pdata
+	store 2,mem_ui_state_map
+	branch app_lpm_mult_disable
+	
+app_bb_event_hid_connected:
+	fetch 2,mem_ui_state_map
+	set1 UI_STATE_BT_HID_CONN,pdata
+	store 2,mem_ui_state_map
+	rtn
+
+app_evt_button_long_pressed:
+	fetch APP_DISC_RSN_SIZE,mem_app_disconn_reason_flag
+	set1 APP_DISC_BY_BUTTON,pdata
+	store APP_DISC_RSN_SIZE,mem_app_disconn_reason_flag
+	rtn
+	
+app_event_ml2cap_conn_refused:
+	fetch APP_DISC_RSN_SIZE,mem_app_disconn_reason_flag
+	set1 APP_DISC_L2CAP_REFUSED,pdata
+	store APP_DISC_RSN_SIZE,mem_app_disconn_reason_flag
+	branch  app_bt_disconnect
+
+
+app_evt_timer:
+	bpatch patch17_1,mem_patch17
+	store 1,mem_app_evt_timer_count
+app_evt_100ms_loop:
+	fetch 1,mem_app_evt_timer_count
+	rtn blank
+	increase -1,pdata
+	store 1,mem_app_evt_timer_count
+	call ui_button_polling
+	call app_lpm_wake_auto_lock_timer
+	call app_unsniff_delay_timer
+	call app_discovery_timer
+	call flash_write_spi_sm_timer
+	call flash_write_spi2_sm_timer
+	fetch 2,mem_cb_event_timer
+	call callback_func
+	branch app_evt_100ms_loop
+
+
+//regc:timer addr
+//regb:timer up call back fuction
+timer_single_step:
+	ifetch 1,regc
+	rtn blank
+	pincrease -1
+	istore 1,regc
+	nrtn blank
+	copy regb,pdata
+	branch callback_func
+
+//regc:timer addr
+//regb:timer up call back fuction
+timer_single_step_2B:
+	ifetch 2,regc
+	rtn blank
+	pincrease -1
+	istore 2,regc
+	nrtn blank
+	copy regb,pdata
+	branch callback_func
+	
+app_power_timer:
+	fetcht 2,mem_power_param_ptr
+	add temp,power_timer_offset,regc
+	arg app_power_timer_timeout,regb
+	branch timer_single_step
+	
+app_power_timer_timeout:
+	call app_got_power_state_common
+	beq POWER_STARTING,app_enter_power_stanby_state
+app_enter_power_off_state:
+	branch app_enter_hibernate
+app_enter_power_stanby_state:
+	setarg POWER_STANDBY
+	istore 1,regc
+	add temp,power_standby_cb_offset,regb
+app_power_cb_common:
+	ifetch 2,regb
+	branch callback_func
+
+app_unsniff_delay_timer:
+	arg mem_unsniff2sniff_timer_count,regc
+	arg app_unsniff_delay_timeout,regb
+	branch timer_single_step
+	
+app_unsniff_delay_timeout:
+	call context_check_idle
+	branch app_bt_enter_sniff,zero
+	rtn
+
+
+app_discovery_timer:
+	arg mem_discovery_timeout_timer_count,regc
+	arg app_discovery_timeout,regb
+	branch timer_single_step_2B
+	
+app_discovery_timeout:
+	call app_bt_stop_discovery
+	call app_led_off
+	fetch 2,mem_cb_discovry_timeout
+	branch callback_func
+
+	
+app_bb_event_reconn_failed:
+	call app_disconn_reason_flag_clear
+app_clear_reconnect_flag:
+	fetch 2,mem_ui_state_map
+	set0 UI_STATE_BT_RECONNECT,pdata
+	store 2,mem_ui_state_map
+	rtn
+
+app_bb_event_bb_disconn:
+	jam 0,mem_unsniff2sniff_timer_count
+	fetch 2,mem_ui_state_map
+	bbit1 UI_STATE_BT_RECONNECT,app_bb_event_bb_reconn_disconn
+	isolate0 UI_STATE_BT_SETUP_COMPLETE,pdata
+ 	call app_discard_event,true
+app_bb_event_bb_reconn_disconn:
+	bpatch patch17_2,mem_patch17
+	fetch 2,mem_ui_state_map
+	set0 UI_STATE_BT_CONNECTED,pdata
+	set0 UI_STATE_BT_SETUP_COMPLETE,pdata
+	set0 UI_STATE_BT_HID_CONN,pdata
+	set0 UI_STATE_BT_HID_HANDSHAKE,pdata
+	set0 UI_STATE_BT_RECONNECT,pdata
+	store 2,mem_ui_state_map
+	branch app_lpm_mult_disable
+	
+app_bb_hibernate:
+	call app_disconn_reason_clear
+	branch app_enter_hibernate
+
+	
+app_disconn_reason_clear:
+	setarg 0
+	store APP_DISC_RSN_SIZE,mem_app_disconn_reason
+	rtn
+app_disconn_reason_flag_clear:
+	setarg 0
+	store APP_DISC_RSN_SIZE,mem_app_disconn_reason_flag
+	rtn
+
+app_disconn_reason_collect_bt:
+	fetch APP_DISC_RSN_SIZE,mem_app_disconn_reason_flag
+	store APP_DISC_RSN_SIZE,mem_app_disconn_reason
+	setarg 0
+	store APP_DISC_RSN_SIZE,mem_app_disconn_reason_flag
+	rtn
+	
+app_disconn_reason_collect_ble:
+	fetch APP_DISC_RSN_SIZE,mem_app_disconn_reason_flag
+	set1 APP_DISC_BLE,pdata
+	store APP_DISC_RSN_SIZE,mem_app_disconn_reason
+	setarg 0
+	store APP_DISC_RSN_SIZE,mem_app_disconn_reason_flag
+	rtn
+
+	
+//************************************************//
+//********APP SHARED FUNCSIONS*******//
+//************************************************//
+
+
+app_check_sniff:
+	fetch 1,mem_ui_state_map
+	isolate1 UI_STATE_BT_SNIFF,pdata
+	rtn
+
+//*****************************************//
+//*****************API********************//
+//*****************************************//
+app_start_auto_sniff:
+	fetch 1,mem_unsniff2sniff_timer
+	store 1,mem_unsniff2sniff_timer_count
+	rtn
+	
+app_get_lpm_wake_lock:
+	arg wake_lock_app,queue
+	branch lpm_get_wake_lock
+
+app_put_lpm_wake_lock:
+	arg wake_lock_app,queue
+	branch lpm_put_wake_lock
+	
+app_lpm_wake_auto_lock:
+	jam  LPM_WAKE_UP_DELAY_TIMER,mem_wake_up_delay_timer
+	branch app_get_lpm_wake_lock
+	
+app_lpm_wake_auto_lock_timer:
+	arg mem_wake_up_delay_timer,regc
+	arg app_put_lpm_wake_lock,regb
+	branch timer_single_step
+
+app_l2cap_flow_control_enable:
+	jam L2CAP_FLOW_CTRL_ENABLE,mem_l2cap_flow_ctrl_flag
+	rtn
+
+app_l2cap_flow_control_disable:
+	jam L2CAP_FLOW_CTRL_DISABLE,mem_l2cap_flow_ctrl_flag
+	rtn
+	
+app_bt_set_pincode:
+	jam BT_CMD_SET_PIN_CODE,mem_fifo_temp
+	branch ui_ipc_send_cmd
+
+app_bt_role_switch:
+	jam BT_CMD_ROLE_SWITCH,mem_fifo_temp
+	branch ui_ipc_send_cmd
+	
+app_bt_start_reconnect:
+	bpatch patch17_3,mem_patch17
+	fetch 1,mem_app_connection_options
+	store 1,mem_connection_options
+	jam APP_FLAG_RECONNECT,mem_reconnect_flag
+	jam BT_CMD_RECONNECT,mem_fifo_temp
+	branch ui_ipc_send_cmd	
+	
+app_bt_reconnect_cancel:
+	jam BT_CMD_BB_RECONN_CANCEL,mem_fifo_temp
+	branch ui_ipc_send_cmd
+	
+app_bt_disconnect:
+	jam BT_CMD_DISCONNECT,mem_fifo_temp
+	branch ui_ipc_send_cmd	
+
+app_bt_start_discovery_short:
+	fetch 2,mem_discovery_timeout
+	store 2,mem_discovery_timeout_timer_count
+app_bt_start_discovery_led_blink:
+	call app_led_start_blink
+app_bt_start_discovery:
+	jam BT_CMD_START_DISCOVERY,mem_fifo_temp
+	branch ui_ipc_send_cmd
+
+app_bt_stop_discovery:
+	setarg 0
+	store 2,mem_discovery_timeout_timer_count
+	jam BT_CMD_STOP_DISCOVERY,mem_fifo_temp
+	branch ui_ipc_send_cmd
+	
+app_ble_start_direct_adv:
+	jam BT_CMD_START_DIRECT_ADV,mem_fifo_temp
+	branch ui_ipc_send_cmd
+
+app_ble_stop_direct_adv:
+	jam BT_CMD_STOP_DIRECT_ADV,mem_fifo_temp
+	branch ui_ipc_send_cmd
+	
+app_ble_stop_adv:
+	jam BT_CMD_STOP_ADV,mem_fifo_temp
+	branch ui_ipc_send_cmd
+	
+app_ble_start_adv:	
+	jam BT_CMD_START_ADV,mem_fifo_temp
+	branch ui_ipc_send_cmd
+	
+app_ble_start_scan:
+	jam BT_CMD_LE_START_SCAN,mem_fifo_temp
+	branch ui_ipc_send_cmd
+	
+app_ble_stop_scan:
+	jam BT_CMD_LE_STOP_SCAN,mem_fifo_temp
+	branch ui_ipc_send_cmd
+	
+app_ble_start_conn:
+	jam BT_CMD_LE_START_CONN,mem_fifo_temp
+	branch ui_ipc_send_cmd
+	
+app_ble_disconnect:
+	jam BT_CMD_LE_DISCONNECT,mem_fifo_temp
+	branch ui_ipc_send_cmd
+	
+app_led_start_blink:	
+	jam BT_CMD_LED_BLINK,mem_fifo_temp
+	branch ui_ipc_send_cmd
+
+app_led_on:
+	jam BT_CMD_LED_ON,mem_fifo_temp
+	branch ui_ipc_send_cmd
+	
+app_led_stop_blink:
+app_led_off:
+	jam BT_CMD_LED_OFF,mem_fifo_temp
+	branch ui_ipc_send_cmd
+	
+app_enter_hibernate:
+	jam BT_CMD_ENTER_HIBERNATE,mem_fifo_temp 
+	branch ui_ipc_send_cmd
+	
+app_bt_sniff_exit:
+	jam BT_CMD_EXIT_SNIFF,mem_fifo_temp
+	branch  ui_ipc_send_cmd
+	
+app_bt_enter_sniff:
+	jam BT_CMD_ENTER_SNIFF,mem_fifo_temp
+	branch ui_ipc_send_cmd
+
+app_ble_store_reconn_info:
+	jam BT_CMD_STORE_RECONN_INFO_LE,mem_fifo_temp
+	branch ui_ipc_send_cmd
+
+app_bt_store_reconn_info:
+	jam BT_CMD_STORE_RECONN_INFO_BT,mem_fifo_temp
+	branch ui_ipc_send_cmd
+
+app_store_reconn_info:
+	jam BT_CMD_STORE_RECONN_INFO,mem_fifo_temp
+	branch ui_ipc_send_cmd
+
+app_lpm_mult_enable:
+	set1 mark_lpm_mult_enable,mark
+	rtn
+
+app_lpm_mult_disable:
+	set0 mark_lpm_mult_enable,mark
+	rtn
+
+
+/*
+
+mem_power_param struct
+{
+	usigned char     mem_power_state
+	usigned char     mem_power_timer
+	usigned char	 mem_power_off_timeout
+	usigned char	 mem_power_starting_timeout
+	usigned long	 mem_power_off_cb
+	usigned long	 mem_power_starting_cb
+	usigned long	 mem_power_standby_cb
+	usigned long 	 mem_ui_butten_up_cb
+}
+    	functions:power state switching by mem_app_power_timer timeout or by button_long_pressed event
+    	(power off -> power starting->power standby->power off) and power timer initialization 
+ input parameters:mem_power_param_ptr should be point to the variable(mem_power_param) address where the input parameters stored in with its format
+output parameters:switched power state will be stored in variable mem_power_state*/
+app_button_long_pressed:
+	call app_got_power_state_common
+	beq POWER_STANDBY,app_power_shutting_down
+app_power_starting:
+	setarg POWER_STARTING
+	istore 1,regc
+	add temp,power_starting_timeout_offset,rega
+	add temp,power_starting_cb_offset,regb
+app_power_common:
+	ifetcht 1,rega
+	increase 1,regc
+	istoret 1,regc
+	branch app_power_cb_common
+	
+app_power_shutting_down:
+	setarg POWER_OFF
+	istore 1,regc
+	fetch 2,mem_ui_state_map
+	bbit0 UI_STATE_BLE_CONNECTED,app_power_off_end
+	call le_send_terminate_ind_user_terminated
+	call app_ble_disconnect
+app_power_off_end:
+	fetcht 2,mem_power_param_ptr
+	add temp,power_off_timeout_offset,rega
+	add temp,power_off_cb_offset,regb
+	branch app_power_common
+	
+app_got_power_state_common:
+	fetcht 2,mem_power_param_ptr
+	add temp,power_state_offset,regc
+	ifetch 1,regc
+	rtn
+
+app_event_button_up:
+	call app_got_power_state_common
+	bne POWER_OFF,app_power_release
+	branch app_enter_hibernate
+app_power_release:
+	add temp,ui_butten_up_cb_offset,regb
+	branch app_power_cb_common
+
Index: program/app_antiLost.prog
===================================================================
--- /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/program/app_antiLost.prog	(nonexistent)
+++ /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/program/app_antiLost.prog	(working copy)
@@ -0,0 +1,590 @@
+ifdef COMPILE_ANTILOST
+antilost_init:
+	rtn wake	
+	setarg antilost_le_before_hibernate
+	store 2,mem_cb_before_hibernate
+	setarg keyscan_process_lpm_before
+	store 2,mem_cb_before_lpm
+	setarg antilost_idle_process	//
+	store 2,mem_cb_idle_process
+	setarg antilost_le_conn_process	//
+	store 2,mem_cb_le_process
+	setarg antilost_bb_event_process 
+	store 2,mem_cb_bb_event_process
+	setarg antilost_le_bb_event_timer
+	store 2,mem_cb_event_timer
+	setarg antilost_le_notification
+	store 2,mem_cb_ble_transmit
+	setarg antilost_lpm_lock_process
+	store 2,mem_cb_check_wakelock
+	setarg antilost_le_receive_data_process
+	store 2,mem_cb_att_write
+	bpatch patch17_4,mem_patch17
+	
+	call antilost_buzzer_pwm_init
+	call antilost_set_ble_version
+	call keyscan_key_init
+	call antilost_adc_init
+	call ui_led_init_global
+	call ui_button_init
+	setarg antilost_key_up_down
+	store 2,mem_cb_antl_key
+	setarg antilost_power_off_cb
+	store 2,mem_antl_power_off_cb
+	setarg antilost_power_starting_cb
+	store 2,mem_antl_power_starting_cb
+	setarg antilost_power_standby_cb
+	store 2,mem_antl_power_standby_cb
+	setarg antilost_led_on_cb
+	store 2,mem_antl_led_cb_on
+	setarg antilost_led_off_cb
+	store 2,mem_antl_led_cb_off
+	setarg antilost_buzzer_on
+	store 2,mem_antl_buzzer_cb_on
+	setarg antilost_buzzer_off
+	store 2,mem_antl_buzzer_cb_off
+	fetch 2,mem_ui_state_map
+	rtnbit1 UI_STATE_BTN_DOWN
+	branch app_enter_hibernate
+
+antilost_set_ble_version:
+	//set ble version  4.1 
+	jam 7,mem_lmp_version
+	rtn
+
+
+antilost_le_before_hibernate:
+	call antilost_led_buzzer_stop_blink
+	branch  app_enter_hibernate
+
+antilost_le_notification:
+	call le_fifo_check_nearly_full
+	nrtn blank
+	arg mem_temp_block5,rega
+	call queue_pop
+	nrtn user
+	arg mem_temp_block5,contr
+	branch le_send_notify_from_list
+
+antilost_power_standby_cb:
+	fetch 2,mem_antl_le_sleep_timeout
+	store 2,mem_antl_le_sleep_timer
+	jam 1,mem_antl_key_scan_enable
+	branch antilost_fast_adv_start
+	
+antilost_lpm_lock_process:
+	fetch 1,mem_antl_key_state
+	beq 1,antilost_lpm_ctrl_for_led_buzzer
+	fetch 2,mem_ui_state_map
+	bbit0 UI_STATE_BLE_CONNECTED,antilost_lpm_ctrl_for_led_buzzer
+	fetch 1,mem_antl_lost_mode
+	beq 1,app_get_lpm_wake_lock
+	fetch 1, mem_antl_queue_curr_num
+	nbranch app_get_lpm_wake_lock,blank 
+	branch app_put_lpm_wake_lock
+	
+antilost_lpm_ctrl_for_led_buzzer:
+	fetch 1,mem_antl_led_state
+	fetcht 1,mem_antl_buzzer_state
+	ior temp,pdata
+	beq 1,app_get_lpm_wake_lock
+	branch app_put_lpm_wake_lock
+
+antilost_bb_event_process:
+	copy regc,pdata
+	beq BT_EVT_BUTTON_UP,app_event_button_up
+	beq BT_EVT_BUTTON_LONG_PRESSED,app_button_long_pressed
+	beq BT_EVT_LE_CONNECTED,antilost_le_process_conn
+	beq BT_EVT_LE_DISCONNECTED,antilost_le_process_discon
+	beq BT_EVT_LE_PARSE_CONN_PAPA_UPDATE_RSP,antilost_le_conn_param_update_rsp_recieved
+	beq BT_EVT_LE_PARSE_CONN_PARAM_ACCEPTED,antilost_le_conn_param_accepted
+	rtn
+antilost_le_conn_param_update_rsp_recieved:
+	call antilost_le_conn_param_updata_judge
+	fetch 2,mem_le_l2cap_signaling_conn_param_update_rsp_result
+	beq BLE_SIGNALING_CONNECT_PARAMETER_UPDATE_REJECTED,antilost_le_conn_param_rejected
+antilost_le_conn_param_updata_procedure_sucsess:
+	jam CONN_PARAM_UPDATA_PROCEDURE_COMPLETE,mem_antl_conn_updata_procedure_state
+	jam 60,mem_antl_conn_update_timer
+	rtn
+antilost_le_conn_param_updata_judge:
+	fetch 1,mem_le_state
+	rtnbit1 lestate_update_param
+	jam 1,mem_lestate_update_param_flag
+	rtn
+
+	
+antilost_le_conn_param_accepted:
+	fetch 1,mem_lestate_update_param_flag
+	rtn blank
+	jam 0,mem_lestate_update_param_flag
+	fetch 2,mem_le_new_connslavelatency
+	branch antilost_master_nonsupport_latency,blank
+	rtn
+
+antilost_le_conn_param_rejected:
+	fetch 2,mem_le_latency
+	branch antilost_conn_param_updata_procedure_faild,blank
+antilost_conn_param_retransimiting:
+	jam CONN_PARAM_UPDATA_PROCEDURE_STARTING,mem_antl_conn_updata_procedure_state
+	fetcht 2,mem_interval_increment
+	fetch 2,mem_le_interval_min
+	iadd temp,pdata
+	store 2,mem_le_interval_min
+	copy pdata,rega
+	fetch 2,mem_le_interval_max
+	iadd temp,pdata
+	store 2,mem_le_interval_max
+	iadd rega,pdata
+	rshift pdata,temp
+	fetch 2,mem_antl_le_unnormal_interval_max
+	idiv temp
+	call get_div_result
+	store 2,mem_le_latency
+	jam 1,mem_antl_send_updata_le_param_timer
+	rtn
+antilost_conn_param_updata_procedure_faild:
+	jam CONN_PARAM_UPDATA_PROCEDURE_FAILD,mem_antl_conn_updata_procedure_state
+	rtn
+
+antilost_master_nonsupport_latency:
+	jam 0,mem_lpm_mult
+	jam 0,mem_antl_send_updata_le_param_timer
+	fetch 2,mem_le_new_conninterval	//interval from master
+	fetcht 2,mem_antl_le_unnormal_interval_min
+	isub temp,null
+	setflag positive,0,rega 
+	fetch 2,mem_antl_le_unnormal_interval_max //local intervalmax
+	fetcht 2,mem_le_new_conninterval//interval form master
+	isub temp,pdata
+	setflag positive,1,rega
+	compare	0x03,rega,0x03
+	rtn true //return if the new conn_interval in range through conn_interval_min to conn_interval_max already
+	fetch 8,mem_antl_le_unnormal_interval_min
+	store 8,mem_le_interval_min
+	jam 1,mem_antl_send_updata_le_param_timer
+	rtn                               
+
+
+antilost_le_bb_event_timer:
+	call app_power_timer
+	call antilost_double_click_timer
+	call antilost_le_fast_adv_timer
+	call antilost_le_sleep_timer
+	call antilost_app_updata_le_param_timer
+	call antilost_conn_update_timer
+	call antilost_conn_battery_send_timer
+	branch antilost_adc_check_timer
+
+antilost_conn_battery_send_timer:
+	arg mem_antilost_conn_battery_send_timer,regc
+	arg antilost_conn_battery_send,regb
+	branch timer_single_step
+antilost_conn_battery_send:
+	call antilost_battery_process
+	call antilost_battery_process
+	call antilost_battery_process
+	branch antilost_battery_calculate_end //send twice to combat the failure of reception first time
+
+	
+antilost_double_click_timer:
+	arg mem_double_click_timer,regc
+	arg antilost_double_click_timeout,regb
+	branch timer_single_step
+antilost_double_click_timeout:
+	jam 0,mem_butten_click_cnt
+	rtn
+antilost_le_fast_adv_timer:
+	arg mem_antl_fast_adv_timer,regc
+	arg antilost_le_fast_adv_timeout,regb
+	branch timer_single_step_2B
+antilost_le_fast_adv_timeout:
+	arg mem_antl_slow_adv_led_style,regc
+	arg mem_antl_slow_adv_lpm_interval,regb
+	branch antilost_adv_start_common
+	
+
+antilost_conn_update_timer:
+	arg mem_antl_conn_update_timer,regc
+	arg antilost_conn_update_timer_time_out,regb
+	branch timer_single_step
+	
+antilost_conn_update_timer_time_out:
+	fetch 2,mem_le_latency
+	store 1,mem_lpm_mult
+	rtn
+antilost_app_updata_le_param_timer:
+	arg mem_antl_send_updata_le_param_timer,regc
+	arg antilost_app_updata_le_param_timeout,regb
+	branch timer_single_step
+antilost_app_updata_le_param_timeout:
+	fetch 1,mem_le_state
+	compare 0,pdata,0x60
+	nbranch antilost_wait_for_updata_param_instant_expire,true
+	jam CONN_PARAM_UPDATA_PROCEDURE_STARTING,mem_antl_conn_updata_procedure_state
+	call  app_lpm_mult_enable
+	branch le_l2cap_tx_update_req	
+antilost_wait_for_updata_param_instant_expire:
+	jam 1,mem_antl_send_updata_le_param_timer
+	rtn
+	
+antilost_le_sleep_timer:
+	arg mem_antl_le_sleep_timer,regc
+	arg antilost_le_sleep_timer_timeout,regb
+	branch timer_single_step_2B
+
+
+antilost_le_sleep_timer_timeout:
+	branch app_button_long_pressed
+
+antilost_adc_check_timer:
+	arg mem_adc_timer,regc
+	arg antilost_adc_check_timer_timeout,regb
+	branch timer_single_step_2B
+antilost_adc_check_timer_timeout:
+	fetch 2,mem_adc_timeout
+	store 2,mem_adc_timer
+	branch antilost_battery_process
+
+
+antilost_le_process_conn:
+	fetch 2,mem_adc_timeout
+	store 2,mem_adc_timer
+	setarg 0
+	store 2,mem_antl_fast_adv_timer
+	store 2,mem_antl_le_sleep_timer
+	call antilost_alert_off
+	call antilost_led_buzzer_stop_blink
+	jam 0,mem_lpm_mult
+	branch app_ble_stop_adv
+	                                                      
+
+antilost_le_process_discon:
+	setarg 0
+	store 4,mem_adc_timer
+	store 3,mem_antl_conn_updata_procedure_state
+	store 2,mem_le_l2cap_signaling_conn_param_update_rsp_result
+	
+	jam 1,mem_alarm_config_notfy_cnt
+	fetch 2,mem_antl_le_sleep_timeout
+	store 2,mem_antl_le_sleep_timer
+	call queue_init
+	fetch 1,mem_antl_power_state
+	rtneq POWER_OFF
+	call antilost_fast_adv_start
+	branch antilost_on_off_alarm_after_disconn
+
+
+antilost_le_conn_process:
+//bpatch
+	branch antilost_key_process
+
+antilost_idle_process:
+
+	fetch 1,mem_antl_power_state
+	rtnne POWER_STANDBY
+	branch antilost_key_process
+
+
+//////////////////////////////////////////////////////////////////////////////////////////
+/////SOFT WTICH////////
+antilost_power_starting_cb:
+	arg mem_antl_power_starting_buzzer_style,regc
+	call antilost_buzzer_configuration
+	arg mem_antl_power_starting_led_style,regc
+antilost_power_common:
+	branch antilost_led_configuration
+
+antilost_power_off_cb:
+	jam OFF,mem_le_adv_enable
+	arg mem_antl_power_off_buzzer_style,regc
+	call antilost_buzzer_configuration
+	arg mem_antl_power_off_led_style,regc
+	branch antilost_power_common
+	
+antilost_le_receive_data_process:
+	fetch 1,mem_le_att_opcode
+	beq ATTOP_WRITE_REQUEST,antilost_le_parse_att_write_request
+	rtn
+antilost_le_parse_att_write_request:
+	fetch 2,mem_le_att_handle
+//	beq  ATT_WRITE_REQUEST_HANDLE,antilost_key_data_send
+	beq NEW_SPEC_WRITE_HANDLE,antilost_cmd_parse_for_application
+	beq NEW_SPEC_NOTIFICATION_ENABLE_HANDLE,antilost_notify_alarm_config_first_time
+	rtn
+/////////////////////////////////////////////////////////
+
+
+/////////key scan
+antilost_key_process:
+	fetch 1,mem_antl_key_scan_enable
+	rtn blank
+	branch keyscan_key_process
+
+	//queue = key index
+	//rega =1 press, =0 release
+antilost_key_up_down:
+	copy rega,pdata
+	branch antilost_key_is_up,blank
+antilost_key_is_down:
+	copy queue,pdata
+	beq 0,antilost_key0_down
+	rtn
+antilost_key_is_up:
+	copy queue,pdata
+	beq 0,antilost_key0_up
+	rtn
+
+antilost_key0_down:
+	jam 1,mem_antl_key_state
+	arg mem_antl_key_buzzer_style,regc
+	call antilost_buzzer_configuration
+	arg mem_antl_key_led_style,regc
+	call antilost_led_configuration
+	fetch 2,mem_ui_state_map
+	bbit0 UI_STATE_BLE_CONNECTED,antilost_butten_down_while_disconn
+	branch antilost_butten_down_after_conn
+	
+antilost_key0_up:
+	jam 0,mem_antl_key_state
+	branch antilost_double_click_timer_init
+
+//////////////process for double-click
+
+antilost_double_click_timer_init:
+	fetch 1,mem_butten_click_cnt
+	rtnne 1
+	jam 5,mem_double_click_timer
+	rtn
+
+antilost_butten_down_after_conn:
+	fetch 1,mem_butten_click_cnt
+	pincrease 1
+	store 1,mem_butten_click_cnt
+	beq 1,antilost_click_once
+	beq 2,antilost_click_twice
+	rtn
+antilost_click_once:
+	call antilost_alert_off
+	jam OPCODE1_BUTTEN_CLICK_ONCE,mem_antl_key0_press+5//5 represent opcode offset
+	arg mem_antl_key0_press,regc
+	branch antilost_prepare_data_and_send
+antilost_click_twice:
+	jam 0,mem_butten_click_cnt
+	jam OPCODE2_BUTTEN_DOUBLE_CLICK,mem_antl_key0_press+5
+	arg mem_antl_key0_press,regc
+	call antilost_prepare_data_and_send
+	fetch 1,mem_antl_lost_mode
+	beq 1,antilost_alert_on
+	rtn   //rtn should be retaind
+	
+antilost_butten_down_while_disconn:
+	fetch 2,mem_antl_le_sleep_timeout
+	store 2,mem_antl_le_sleep_timer
+	call antilost_alert_off
+	branch antilost_fast_adv_start
+	
+///////////////////////NEW App Spcecific///////
+antilost_cmd_parse_for_application:
+	bpatch patch17_5,mem_patch17
+	call le_app_receive_data
+	ifetch 1,rega
+	beq OPCODE3_ANTL_START_ALRAM,antilost_on_of_alram
+	beq OPCODE7_ANTL_CONFIG_ALRAM,antilost_configuration_for_alram
+	rtn
+
+antilost_on_of_alram:
+	fetch 1,mem_antl_lost_mode
+	beq ANTI_LE_ALARM_OFF,antilost_alert_on
+	beq ANTI_LE_ALARM_ON,antilost_alert_off
+	rtn
+
+antilost_configuration_for_alram:
+	ifetch 1,regb
+	beq 1,antilost_set_start_alarm_after_disconn
+	beq 0,antilost_set_no_alarm_after_disconn
+	rtn
+/////////////////check////////////////////////
+
+/*input: 1)package data addr in regc
+output:no
+function:calculate check_out value and send data*/
+//mem_temp_block5
+antilost_prepare_data_and_send:
+	bpatch patch17_6,mem_patch17
+	fetch 1,mem_client_characteristic_configuration_descriptor
+	isolate1 NOTIFICATION_ENABLE_BIT,pdata
+	nrtn true
+	add regc,6,contr
+	ifetch 2,contr
+	byteswap pdata,pdata
+	add pdata,5,loopcnt
+	add regc,3,contr
+	call calc_check_sum_start
+	istore 1,contr
+	copy regc,rega
+	branch queue_push
+
+/////////////////NEW APP SPECIFIC check end////////////////////
+
+
+/////////alarm//////////////////////////////
+antilost_alert_on:
+	fetch 1,mem_antl_power_state
+	rtn blank
+	jam 1,mem_antl_lost_mode
+	arg mem_antl_alert_buzzer_stlye,regc
+	call antilost_buzzer_configuration
+	arg mem_antl_alert_led_stlye,regc
+	call antilost_led_configuration
+	jam OPCODE4_CURRENT_ALARM_STATE,mem_antl_key0_release+5//5 represent opcode offset
+	jam 1,mem_antl_key0_release+8 //8 represent data offset,digit 1 represent alarm is on at present
+	arg mem_antl_key0_release,regc
+	branch antilost_prepare_data_and_send
+antilost_alert_off:
+	fetch 1,mem_antl_lost_mode
+	rtn blank
+	jam 0,mem_antl_lost_mode
+	call antilost_led_buzzer_stop_blink
+	jam OPCODE4_CURRENT_ALARM_STATE,mem_antl_key0_release+5//5 represent opcode offset
+	jam 0,mem_antl_key0_release+8 //8 represent data offset,digit 0 represent alarm is off at present
+	arg mem_antl_key0_release,regc
+	branch antilost_prepare_data_and_send
+
+antilost_set_start_alarm_after_disconn:
+	jam 1,mem_alarm_config
+	jam OPCODE7_ANTL_CONFIG_ALRAM,mem_antl_key0_release+5
+	jam 1,mem_antl_key0_release+8
+	arg mem_antl_key0_release,regc
+	branch antilost_prepare_data_and_send
+antilost_set_no_alarm_after_disconn:
+	jam 0,mem_alarm_config
+	jam OPCODE7_ANTL_CONFIG_ALRAM,mem_antl_key0_release+5
+	jam 0,mem_antl_key0_release+8
+	arg mem_antl_key0_release,regc
+	branch antilost_prepare_data_and_send
+antilost_on_off_alarm_after_disconn:
+	fetch 1,mem_alarm_config
+	rtn blank
+	branch antilost_alert_on
+	
+antilost_notify_alarm_config_first_time:
+	ifetch 2,rega
+	store 2,mem_client_characteristic_configuration_descriptor
+	isolate1 NOTIFICATION_ENABLE_BIT,pdata
+	nrtn true
+	fetch 1,mem_alarm_config_notfy_cnt
+	rtn blank
+	jam 0,mem_alarm_config_notfy_cnt
+	fetch 8,mem_antl_le_interval_min
+	store 8,mem_le_interval_min
+	jam 3,mem_antilost_conn_battery_send_timer
+	jam OPCODE7_ANTL_CONFIG_ALRAM,mem_antl_key0_release+5
+	jam 30,mem_antl_send_updata_le_param_timer
+	fetch 1,mem_alarm_config
+	store 1,mem_antl_key0_release+8
+	arg mem_antl_key0_release,regc
+	branch antilost_prepare_data_and_send
+
+//////////////alarm end//////////////////////////
+//sytle address in regc
+antilost_buzzer_configuration:
+	arg 1,rega
+	branch antilost_configuration_common
+antilost_led_configuration:
+	arg 0,rega
+antilost_configuration_common:
+	branch antilost_led_buzzer_style_configuration
+	
+antilost_led_buzzer_stop_blink:
+	arg 0,rega
+	call ui_led_blink_stop_global
+	arg 1,rega
+	call ui_led_blink_stop_global
+	fetch 2,mem_buzzer_pwm_conf
+	branch pwm_disable
+	
+antilost_led_buzzer_style_configuration:
+	call calc_curr_struct_prt
+	arg 7,loopcnt
+	branch ui_led_set_style_global+2
+
+
+
+antilost_fast_adv_start:
+	arg mem_antl_fast_adv_led_style,regc
+	arg mem_antl_lpm_interval,regb
+antilost_adv_start_common:
+	call antilost_adv_interval_lpm_interval_set
+	call antilost_led_configuration
+	fetch 2,mem_antl_fast_adv_timeout
+	store 2,mem_antl_fast_adv_timer
+	branch app_ble_start_adv
+	
+antilost_adv_interval_lpm_interval_set:
+	ifetch 2,regb
+	store 2,mem_lpm_interval
+	ifetch 2,contr
+	store 2,mem_le_adv_interval
+	rtn
+///////////////beep////////////
+antilost_buzzer_pwm_init:
+	arg 0,rega //sys clk 12mhz
+	call pwm_init
+	fetch 6,mem_buzzer_pwm_conf
+	store 6,mem_pdatatemp
+	call pwm_out_set
+	fetch 2,mem_buzzer_pwm_conf
+	branch pwm_disable
+	
+antilost_led_on_cb:
+	jam 1,mem_antl_led_state
+	rtn	
+antilost_led_off_cb:
+	jam 0,mem_antl_led_state
+	rtn
+
+
+
+antilost_buzzer_off:
+	jam 0,mem_antl_buzzer_state
+	fetch 2,mem_buzzer_pwm_conf
+	branch pwm_disable
+	
+antilost_buzzer_on:
+	jam 1,mem_antl_buzzer_state
+	fetch 6,mem_buzzer_pwm_conf
+	store 6,mem_pdatatemp
+	branch pwm_out_set
+
+////////////////beep end///////////////////////////
+/////////////adc start////////////////////////
+antilost_adc_init:
+	jam 0,mem_adc_config_flag
+	branch adc_init_data
+
+antilost_battery_process:
+	call adc_set_mode
+	call vdd_calculate_by_mode
+	store 2,mem_battery_current_voltage
+	arg mem_battery_calculate_set,rega
+	call adc_bat_percent_lowpower_out
+	store 1,mem_voltage_remain_percent //for debug
+	setarg 0x65
+	beq 0,antilost_low_battery
+	sub pdata,0x64,null
+	nbranch antilost_full_battery,positive
+	store 1,mem_antl_key0_release+8
+antilost_battery_calculate_end:
+	jam OPCODE5_BATTER_INFORMATION,mem_antl_key0_release+5
+	arg mem_antl_key0_release,regc
+	branch antilost_prepare_data_and_send
+antilost_full_battery:
+	jam 100,mem_antl_key0_release+8
+	branch antilost_battery_calculate_end
+
+antilost_low_battery:
+	branch app_button_long_pressed
+endif
+
+
Index: program/app_car.prog
===================================================================
--- /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/program/app_car.prog	(nonexistent)
+++ /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/program/app_car.prog	(working copy)
@@ -0,0 +1,803 @@
+ifdef COMPILE_CAR
+
+car_init:
+	rtn wake
+	setarg car_g24_receive_process
+	store 2,mem_cb_24g_receive_process
+	
+	setarg g24_bind_ackpayload_prep
+	store 2,mem_cb_24g_ackpayload
+	
+	setarg car_g24_cb_data_device1
+	store 2,mem_cb_24g_data_device1
+
+	setarg car_le_before_hibernate
+	store 2,mem_cb_before_hibernate
+	
+	setarg car_le_process_lpm_before
+	store 2,mem_cb_before_lpm	
+	
+	setarg app_enter_hibernate
+	store 2,mem_cb_discovry_timeout
+	
+	setarg car_scale_process_idle	
+	store 2,mem_cb_idle_process	
+	
+	setarg car_scale_process_bb_event 
+	store 2,mem_cb_bb_event_process	
+	
+	setarg app_get_lpm_wake_lock
+	store 2,mem_cb_check_wakelock
+	
+	setarg car_le_receive_data
+	store 2,mem_cb_att_write
+	
+	setarg car_le_bb_event_timer
+	store 2,mem_cb_event_timer
+	
+	bpatch patch17_7,mem_patch17
+	call car_init_environment
+	call car_lpm_timer_enable
+	call queue_init
+	jam 2,mem_lpm_mult
+	jam POWER_ON,mem_car_24g_received_pac
+	fetch 1,mem_car_config_soft_switch_enable
+	store 1,mem_car_hard_soft_switch
+	beq HARD_SWITCH, car_hard_switch_power_on_signal
+	fetch 1,mem_car_config_soft_switch_gpio
+	store 1,mem_ui_button_gpio
+	jam OFF,mem_le_adv_enable
+car_soft_switch_power_on_init:
+	call ui_button_init
+	call ui_button_polling
+	jam POWER_STARTING,mem_car_power_state
+	fetch 2,mem_ui_state_map
+	rtnbit1 UI_STATE_BTN_DOWN
+ 	branch app_enter_hibernate
+
+car_power_off_signal:	
+	branch car_ui_led_init
+	
+car_hard_switch_power_on_signal:
+	jam POWER_STANDBY,mem_car_power_state
+car_soft_switch_power_on_signal:
+	jam ON,mem_le_adv_enable
+	setarg FAST_ADV_INTERVAL_VALUE_CAR
+	call shutter_ble_adv_interval_set
+car_le_modified_name_adv:
+	arg mem_le_name+7,contw
+	fetch 1,mem_le_lap
+car_name_loop:
+	and pdata,0xF0,temp
+	rshift4 temp,temp
+	call car_hex_to_ascii
+	istoret 1, contw
+	and pdata,0x0F,temp
+	call car_hex_to_ascii
+	istoret 1, contw
+	call le_modified_name_att_list
+	fetcht 1,mem_le_name_len
+	copy temp,loopcnt
+	arg mem_le_adv_data+2,contw
+	arg mem_le_name,contr
+	call memcpy
+car_le_modified_name_scan:
+	fetcht 1,mem_le_name_len
+	copy temp,loopcnt
+	arg mem_le_scan_data+2,contw
+	arg mem_le_name,contr
+	branch memcpy
+car_hex_to_ascii:
+	sub temp,9,null
+	branch car_hex_num,positive
+	add temp,55,temp
+	rtn
+car_hex_num:	
+	add temp,48,temp
+	rtn
+
+car_ui_led_init:
+	fetch 1,mem_car_config_blood_led1_gpio
+	bne INVALID_PIN_NUM,car_blood_led_gpio_set
+car_ui_led_init_1:
+	fetch 1,mem_car_config_pairing_led_gpio
+	bne INVALID_PIN_NUM,car_pairing_led_gpio_set
+car_ui_led_init_2:
+	fetch 1,mem_car_config_low_voltage_led_gpio
+	bne INVALID_PIN_NUM,car_low_voltage_led_gpio_set
+car_ui_led_init_3:
+	fetch 1, mem_car_led_num
+	copy pdata,loopcnt
+	setarg mem_car_led_map
+	copy pdata,rega
+car_in_lp1:
+	copy rega,contr
+	ifetch 1,contr
+	copy contr,rega
+	beq INVALID_PIN_NUM,car_in_lp1_end
+	copy pdata,temp
+	call gpio_config_output
+car_in_lp1_end:
+	loop car_in_lp1
+car_ui_led_init_end:
+	rtn
+car_blood_led_gpio_set:
+	fetch 8,mem_car_config_blood_led1_gpio
+	store 8,mem_car_led_map+2
+	branch car_ui_led_init_1
+car_pairing_led_gpio_set:
+	store 1,mem_car_led_map
+	branch car_ui_led_init_2
+car_low_voltage_led_gpio_set:
+	store 1,mem_car_led_map+1
+	branch car_ui_led_init_3
+
+car_init_environment:
+	
+	call car_g24_init
+	arg 0,rega
+	call pwm_init
+	call car_ui_led_init
+	call car_start_blink
+	call car_init_adc_hvin
+	branch car_motor_init
+
+car_motor_init:
+	fetch 1, mem_car_motor_gpio_num
+	copy pdata,loopcnt
+	setarg mem_car_motor_gpio_map
+	copy pdata,rega
+p_in_lp1:
+	copy rega,contr
+	ifetch 1,contr
+	copy contr,rega
+	beq INVALID_PIN_NUM,p_in_lp1_end
+	copy pdata,temp
+	store 1, mem_car_gpio
+	call car_ui_gpio_init
+p_in_lp1_end:
+	loop p_in_lp1
+p_car_ui_led_init_end:
+	rtn
+
+car_ui_gpio_init:
+	fetch 1,mem_car_gpio
+	rtneq UI_BUTTON_GPIO_DISABLE
+	iforce temp
+	branch gpio_config_output
+
+	
+car_init_adc_hvin:
+	jam 100,mem_car_notify_vdd_value_last
+	branch adc_init_data
+	
+car_le_before_hibernate:
+	call gpio_set_before_lpm_common
+	branch keyscan_process_lpm_before
+
+car_le_process_lpm_before:
+	branch keyscan_process_lpm_before
+
+car_key_scan_process:
+	branch keyscan_key_process
+
+car_scale_process_idle:
+	call car_le_send_packet
+	call car_g24_status_process
+	branch car_key_scan_process
+
+car_g24_status_process:
+	fetch 2,mem_ui_state_map
+	rtnbit1 UI_STATE_BLE_CONNECTED
+	fetch 1,mem_car_24g_received_pac
+	beq WORK_PAIRED,car_g24_connected_event
+	rtn
+car_g24_connected_event:
+	fetch 1,mem_car_24g_status
+	rtneq WORK_PAIRED
+	jam WORK_PAIRED,mem_car_24g_status
+	call car_lpm_timer_disable
+	call car_stop_blink
+	branch car_g24_connected
+
+car_lpm_timer_enable:
+	fetch 2,mem_car_enter_lpm_timer_count	
+	store 2,mem_car_enter_lpm_timer
+	jam 0,mem_car_enter_lpm_flag
+	rtn
+
+	
+car_lpm_timer_disable:
+	setarg 0
+	branch car_lpm_timer_enable+1
+
+
+car_stop_blink:
+	arg 0,rega
+	branch ui_led_blink_stop_global
+	
+	
+car_start_blink:
+	arg 0,rega
+	branch ui_led_blink_start_global
+	
+
+
+
+
+car_le_send_packet:
+	fetch 2,mem_ui_state_map
+	rtnbit0 UI_STATE_BLE_CONNECTED
+	call le_fifo_check_nearly_full
+	nrtn blank
+	arg mem_car_pop_queue_buff,rega
+	call queue_pop
+	nrtn user
+	arg mem_car_pop_queue_buff,contr
+	branch le_send_notify_from_list
+ 
+car_scale_process_bb_event:
+	copy regc,pdata
+	beq BT_EVT_BUTTON_UP,app_event_button_up
+	beq BT_EVT_BUTTON_LONG_PRESSED,app_button_long_pressed
+	beq BT_EVT_LE_CONNECTED,car_scale_event_le_conn
+	beq BT_EVT_LE_DISCONNECTED,car_scale_event_le_discon
+	rtn
+
+car_scale_event_le_conn:
+	call car_lpm_timer_disable
+	call car_stop_blink
+	set0 mark_24g_rxmode,mark
+	branch car_scale_process_conn
+car_g24_connected:
+	fetch 2,mem_car_24g_no_data_timeout_count
+	store 2,mem_car_24g_no_data_timeout_timer
+car_scale_process_conn:
+	jam 0x14,mem_car_notify_vdd_timer
+	jam 0,mem_lpm_mode
+	call app_ble_stop_adv
+	branch app_lpm_mult_enable
+
+
+car_scale_event_le_discon:
+	set1 mark_24g_rxmode,mark
+	call car_lpm_timer_enable
+	call car_fb_motor_stop
+	call car_lr_motor_stop
+car_g24_disconnect:
+	setarg 0
+	store 5,mem_car_led_control
+	setarg 4
+	call pwm_disable
+	setarg 5
+	call pwm_disable
+	setarg 20
+	call pwm_disable
+	setarg 21
+	call pwm_disable
+	setarg 22
+	call pwm_disable
+	setarg 7
+	call pwm_disable
+	call queue_init
+	jam 10,mem_motor1_speed
+	jam 10,mem_motor2_speed
+	jam 10,mem_motor3_speed
+//	jam 1,mem_lpm_mode
+	jam 2,mem_lpm_mult
+	setarg FAST_ADV_INTERVAL_VALUE_CAR
+	call shutter_ble_adv_interval_set
+	branch app_ble_start_adv
+
+car_le_bb_event_timer:
+	call car_moto1_blank_data_timer
+	call car_moto2_blank_data_timer
+	call car_moto3_blank_data_timer
+	call app_power_timer
+	call car_notify_vdd_timer
+	call car_24g_no_data_timeout_timer
+	call car_24g_bind_enable_timer
+	branch car_enter_lpm_timer
+
+car_24g_bind_enable_timer:
+	arg mem_car_24g_bind_enable_delay_count,regc
+	arg 0,regb
+	branch timer_single_step
+
+car_enter_lpm_timer:
+	arg mem_car_enter_lpm_timer,regc
+	arg car_enter_lpm_enable,regb
+	branch timer_single_step_2B
+car_enter_lpm_enable:
+	jam 1,mem_car_enter_lpm_flag
+	rtn
+	
+car_24g_no_data_timeout_timer:
+	arg mem_car_24g_no_data_timeout_timer,regc
+	arg car_24g_no_data_timer_timeout,regb
+	branch timer_single_step_2B
+car_24g_no_data_timer_timeout:
+	jam WORK_SEARCH,mem_car_24g_status
+	jam POWER_ON,mem_car_24g_received_pac
+	branch car_g24_disconnect
+
+car_notify_vdd_timer:
+	fetch 1,mem_car_config_bat_notify_enable
+	rtn blank
+	arg mem_car_notify_vdd_timer,regc
+	arg car_notify_vdd,regb
+	branch timer_single_step
+car_notify_vdd:
+	fetch 1,mem_car_notify_vdd_count
+	store 1,mem_car_notify_vdd_timer
+ 	fetch 1,mem_car_working_flag
+ 	nrtn blank
+car_read_hvin:
+	call adc_set_mode
+	call vdd_calculate_by_mode
+	store 2,mem_vdd_now_vol
+	arg mem_vdd_calculate_set,rega
+	call adc_bat_percent_lowpower_out
+	fetcht 1,mem_car_notify_vdd_value_last
+	isub temp,null
+	branch car_notify_vdd_next2,positive
+	store 1,mem_car_notify_vdd_value_last
+	copy pdata,temp
+car_notify_vdd_next2:
+	storet 1,mem_car_notify_vdd_percent
+	fetch 1,mem_car_config_low_voltage_percent
+	isub temp,null
+	call car_enter_low_bat,positive
+	storet 1,mem_notify_bat_payload 
+	arg 6,loopcnt
+	arg mem_notify_bat_head,contr
+	call calc_check_sum_start
+	store 1,mem_notify_bat_check_sum
+	arg mem_notify_bat_packet,rega
+	branch queue_push
+car_enter_low_bat:
+	fetch 1,mem_low_bat_flag
+	nrtn blank
+	jam 1,mem_low_bat_flag
+	arg 1,rega
+	branch ui_led_blink_start_global
+car_low_bat_led_off:
+	arg 1,rega
+	branch ui_led_blink_stop_global
+
+////////////////////////check sum////////////////////////
+//loopcnt = sum number,contr = ptr
+calc_check_sum_start:
+	arg 0,rega
+calc_check_sum_loop:
+	ifetch 1,contr
+	iadd rega,rega
+	loop calc_check_sum_loop
+calc_check_sum_and:
+	and rega,0xff,pdata
+	rtn
+
+car_le_receive_data:	
+	fetch 1,mem_le_att_opcode
+	beq ATTOP_WRITE_REQUEST,car_le_parse_att_write_request
+	rtn
+car_le_parse_att_write_request:
+	fetch 2,mem_le_att_handle
+	beq ATT_CAR_CONTROL_HANDLE,car_control_le_receive
+	rtn
+
+/*
+*	typedef struct
+*	{
+*		2byte	packet_head				(mem_app_receive_temp)
+*		1byte	packet_cmd				(mem_app_receive_temp+2)
+*		2byte	packet_payload_length	(mem_app_receive_temp+3)
+*		10byte	packet_payload			(mem_app_receive_temp+5)
+*		1byte	packet_check_sum		(mem_app_receive_temp+15)
+*	}
+*/
+le_app_receive_data:
+	bpatch patch18_0,mem_patch18
+	ifetch 5,rega
+	store 5,mem_app_receive_temp
+	fetch 2,mem_app_receive_temp
+	arg LE_RECEIVE_PACKET_HEAD,temp
+	isub temp,null
+	nrtn zero
+	fetch 2,mem_app_receive_temp+3
+	byteswap pdata,pdata
+	store 2,mem_app_receive_temp+3
+	copy pdata,loopcnt
+	increase 5,rega
+	copy rega,contr
+	arg mem_app_receive_temp+5,contw
+	call memcpy
+	ifetch 1,contr
+	store 1,mem_app_receive_temp+15
+	arg mem_app_receive_temp+2,rega
+	arg mem_app_receive_temp+5,regb
+	rtn
+
+car_control_le_receive:
+	setarg 0
+	store 5,mem_le_receive_payload
+	store 5,mem_le_receive_payload+5
+	call le_app_receive_data
+	copy regb,contr
+	arg mem_le_receive_payload,contw
+	arg 10,loopcnt
+	call memcpy
+car_receive_cmd_select:
+	bpatch patch18_1,mem_patch18
+	ifetch 1,rega
+	beq CAR_CMD_OLD_CAR_CONTROL,car_drive_old
+	beq CAR_CMD_OLD_SPEED_CONTROL,car_speed_set_old
+	beq CAR_CMD_L_R_MOTOR_CONTROL,car_motor_control
+	beq CAR_CMD_F_B_MOTOR_CONTROL,car_motor_control
+	beq CAR_CMD_IR_CONTROL,car_ir_data_rx_from_app
+	beq CAR_CMD_LED_CONTROL,car_led_control_receive
+	beq CAR_CMD_DEVICE_INFO,car_info_request
+	rtn
+
+car_24g_receive_data:
+	call car_control_le_receive
+	fetch 1,mem_app_receive_temp+2	//cmd
+	beq CAR_CMD_L_R_MOTOR_CONTROL,car_24g_receive_data_next
+	beq CAR_CMD_F_B_MOTOR_CONTROL,car_24g_receive_data_next
+	rtn
+car_24g_receive_data_next:
+	fetch 1,mem_le_receive_payload	//moto1
+	ncall car_moto1_enable_blank_data_timer,blank
+	fetch 1,mem_le_receive_payload+2	//moto2
+	ncall car_moto2_enable_blank_data_timer,blank
+	fetch 1,mem_le_receive_payload+4	//moto3
+	ncall car_moto3_enable_blank_data_timer,blank
+	rtn
+
+car_moto1_enable_blank_data_timer:
+	jam 5,mem_car_moto1_blank_timer
+	rtn
+car_moto2_enable_blank_data_timer:
+	jam 5,mem_car_moto2_blank_timer
+	rtn
+car_moto3_enable_blank_data_timer:
+	jam 5,mem_car_moto3_blank_timer
+	rtn
+
+car_moto1_blank_data_timer:
+	arg mem_car_moto1_blank_timer,regc
+	arg car_moto1_blank_data,regb
+	branch timer_single_step
+car_moto2_blank_data_timer:	
+	arg mem_car_moto2_blank_timer,regc
+	arg car_moto2_blank_data,regb
+	branch timer_single_step
+car_moto3_blank_data_timer:		
+	arg mem_car_moto3_blank_timer,regc
+	arg car_moto3_blank_data,regb
+	branch timer_single_step
+
+car_moto1_blank_data:
+	jam 0,mem_le_receive_payload
+	branch car_motor_control
+car_moto2_blank_data:
+	jam 0,mem_le_receive_payload+2
+	branch car_motor_control
+car_moto3_blank_data:
+	jam 0,mem_le_receive_payload+4
+	branch car_motor_control
+	
+	
+///////////////////////Motor//////////////////////////////////////////
+
+car_drive_old:	
+	fetch 1,mem_le_receive_payload
+	store 1,mem_motor1_status
+	fetch 1,mem_le_receive_payload+1
+	store 1,mem_motor2_status
+	branch car_motor_control_common
+
+
+	
+car_left_right_control_old:
+	fetch 1,mem_le_receive_payload
+	store 1,mem_motor2_status
+	branch car_motor2_control
+car_front_back_control_old:
+	fetch 1,mem_motor1_speed
+	call car_reset_old_speed
+	fetch 1,mem_le_receive_payload+1
+	store 1,mem_motor1_status
+	branch car_motor1_control
+car_reset_old_speed:
+	beq SPEED_LEVEL_2,car_reset_old_speed2
+	beq SPEED_LEVEL_3,car_reset_old_speed3
+	store 1,mem_motor1_speed
+	rtn
+car_reset_old_speed2:
+	jam SPEED_LEVEL_5,mem_motor1_speed
+	rtn
+car_reset_old_speed3:
+	jam SPEED_LEVEL_10,mem_motor1_speed
+	rtn
+car_speed_set_old:
+	fetch 1,mem_le_receive_payload
+	call car_reset_old_speed
+	fetch 1,mem_motor1_speed
+	call car_motor_speed_duty_setting
+	call car_motor_speed_duty_transform
+	jam 0x00,mem_pdatatemp+1	//pwm channel0
+	branch pwm_duty_cycle_set
+
+car_motor_control:
+	fetch 1,mem_car_24g_go_die_flag
+	nrtn blank
+	fetch 6,mem_le_receive_payload
+	store 6,mem_motor1_status
+	fetch 1,mem_motor1_speed
+	fetcht 1,mem_motor2_speed
+	iand temp,pdata
+	fetcht 1,mem_motor3_speed
+	iand temp,pdata
+	call car_motor_working_flag,blank	
+car_motor_control_common:
+	bpatch patch18_2,mem_patch18
+	fetch 2,mem_ui_state_map
+	isolate1 UI_STATE_BLE_CONNECTED,pdata
+	ncall car_lpm_timer_enable,true
+	call car_motor1_control
+	call car_motor2_control
+	branch car_conn_led_state
+
+car_conn_led_state:
+	fetch 1,mem_motor1_status
+	fetcht 1,mem_motor2_status
+	iadd temp,pdata
+	nbranch check_51cmd_led_on,blank
+	branch check_51cmd_led_off	
+
+car_motor1_control:
+	arg mem_motor1_status,contr
+	branch car_motor1_status_select
+car_motor2_control:
+	arg mem_motor2_status,contr
+	branch car_motor2_status_select
+car_motor3_control:
+	arg mem_motor3_status,contr
+	branch car_motor_status_select
+car_motor_working_flag:
+	jam 0,mem_car_working_flag
+	rtn
+
+car_motor1_status_select:
+	ifetch 1,contr
+	beq TURN_FRONT,car_lr_motor_stop
+	beq TURN_LEFT,car_lr_motor_left
+	beq TURN_RIGHT,car_lr_motor_right
+	rtn
+car_motor2_status_select:
+	ifetch 1,contr
+	beq MOTOR_STOP,car_fb_motor_stop
+	beq GO_BACK,car_fb_motor_front
+	beq GO_FRONT,car_fb_motor_back
+	rtn
+
+car_lr_motor_stop:
+	fetcht 1,mem_car_motor_left_gpio
+	call gpio_out_inactive
+	fetcht 1,mem_car_motor_right_gpio
+	branch gpio_out_inactive
+car_lr_motor_left:
+	fetcht 1,mem_car_motor_left_gpio
+	call gpio_out_active
+	fetcht 1,mem_car_motor_right_gpio
+	branch gpio_out_inactive
+car_lr_motor_right:
+	fetcht 1,mem_car_motor_left_gpio
+	call gpio_out_inactive
+	fetcht 1,mem_car_motor_right_gpio
+	branch gpio_out_active
+car_fb_motor_stop:
+	fetcht 1,mem_car_motor_front_gpio
+	call gpio_out_inactive
+	fetcht 1,mem_car_motor_back_gpio
+	branch gpio_out_inactive
+car_fb_motor_front:
+	fetcht 1,mem_car_motor_front_gpio
+	call gpio_out_active
+	fetcht 1,mem_car_motor_back_gpio
+	branch gpio_out_inactive
+car_fb_motor_back:
+	fetcht 1,mem_car_motor_front_gpio
+	call gpio_out_inactive
+	fetcht 1,mem_car_motor_back_gpio
+	branch gpio_out_active
+
+	
+
+
+car_motor_status_select:
+	bpatch patch18_3,mem_patch18
+	ifetch 1,contr
+	beq MOTOR_STOP,car_motor_stop
+	beq GO_FRONT,car_motor_positive
+	beq GO_BACK,car_motor_negative
+	rtn
+car_motor_positive:
+	jam 0,mem_motor_select_p_n
+	branch car_motor_negative+1
+car_motor_negative:
+	jam 1,mem_motor_select_p_n
+	ifetch 1,contr
+	store 1,mem_car_motor_speed
+	ifetch 8,regb
+	branch car_motor_work
+
+car_motor_stop:
+	ifetch 1,regb
+	call pwm_disable
+	increase 1,regb
+	ifetch 1,regb
+	branch pwm_disable
+car_motor_work:
+	store 8,mem_motor_pwm_pin1_set
+	jam 1,mem_car_working_flag
+	fetch 1,mem_motor_select_p_n
+	beq 0,car_motor_select_positive
+car_motor_select_negative:
+	fetch 1,mem_motor_pwm_pin2_set
+	store 1,mem_motor_pwm_pin_set
+	fetch 1,mem_motor_pwm_pin1_set
+car_motor_work_next:
+	call pwm_disable
+	fetch 1,mem_car_motor_speed
+	call car_motor_speed_duty_setting
+	store 1,mem_motor_pwm_dute_set
+	fetch 6,mem_motor_pwm_pin_set
+	store 6,mem_pdatatemp
+	branch pwm_out_set
+car_motor_select_positive:
+	fetch 1,mem_motor_pwm_pin1_set
+	store 1,mem_motor_pwm_pin_set
+	fetch 1,mem_motor_pwm_pin2_set
+	branch car_motor_work_next
+
+car_motor_speed_duty_setting:
+	mul32 pdata,5,pdata
+	add pdata,50,pdata
+	rtn
+car_motor_speed_duty_transform:
+	arg 12000,temp
+	imul32 temp,pdata
+	div pdata,100
+	call wait_div_end
+	quotient temp
+	copy temp,rega
+	setarg 12000
+	isub temp,regb
+	rtn
+
+car_ir_data_rx_from_app:
+	rtn
+
+car_led_control_receive:
+	fetch 8,mem_le_receive_payload
+	store 8,mem_car_led_control
+	rtn
+
+car_info_request:
+	fetch 1,mem_car_config_device_select
+	store 1,mem_car_info_request_payload
+	fetch 1,mem_car_config_motor_layout
+	store 1,mem_car_info_request_payload+1
+	fetch 1,mem_car_config_ir_enable
+	store 1,mem_car_info_request_payload+2
+	arg 13,loopcnt
+	arg mem_car_info_request_head,contr
+	call calc_check_sum_start
+	store 1,mem_car_info_request_checksum
+	arg mem_car_info_request,rega
+	branch queue_push
+
+
+/************************************G24 CAR RX FUNC START**************************************/
+car_g24_init:
+	setarg 0
+	store 8,mem_24g_bind_payload
+	call g24_receive_init
+	branch g24_mode_switch_init
+
+car_g24_receive_process:
+	call car_g24_mode_switch
+	call car_g24_work_mode
+	call car_g24_bind_mode
+	branch car_g24_lpm_dipatch
+
+car_g24_mode_switch:
+	call g24_mode_switch
+car_g24_bind_mode_enable:
+	fetch 1,mem_24g_work_mode
+	rtnne DONGLE_BIND
+	fetch 1,mem_car_24g_bind_enable_delay_count	//after power on 10s,enable bind
+	nbranch g24_switch_work_mode,blank
+	fetch 1,mem_car_24g_status	//after paired,disable bind mode
+	beq WORK_SEARCH,g24_switch_work_mode
+	rtn
+
+car_g24_work_mode:
+	fetch 1,mem_24g_work_mode
+	rtnne DONGLE_WORK
+	call g24_work_mode_start
+	branch car_g24_ch_polling_clear,user3
+car_g24_receive_ch_polling:
+	fetch 1,mem_car_enter_lpm_flag
+	rtn blank
+	fetch 1,mem_car_24g_ch_polling
+	increase 1,pdata
+	store 1,mem_car_24g_ch_polling
+	beq 4,car_g24_ch_polling_clear
+	call g24_ch
+	call g24_receive_packet_start
+	nbranch car_g24_receive_ch_polling,user3
+car_g24_ch_polling_clear:
+	jam 0,mem_car_24g_ch_polling
+	rtn
+
+car_g24_bind_mode:
+	fetch 1,mem_24g_work_mode
+	rtnne DONGLE_BIND
+	call g24_bind_init
+	call car_g24_bind_device_addr
+	call g24_bind_data_process
+	fetch 1,mem_24g_bind_device_status
+	nbranch car_g24_bind_mode_exit,blank
+	call g24_nodata_process
+	fetch 1,mem_24g_nodata_timer_enable
+	rtn blank
+	setarg 0
+	store 4,mem_24g_device1_addr
+	rtn
+
+car_g24_bind_mode_exit:
+	jam 0,mem_24g_mode_switch
+	arg 0,rega
+	call ui_led_off_global
+	call g24_switch_work_mode
+	call g24_timer_init
+	fetch 4,mem_lap
+	branch g24_update_addr_and_synccrc8
+	
+car_g24_bind_device_addr:
+	fetch 4,mem_24g_device1_addr
+	rtn blank
+	branch g24_update_addr_and_synccrc8
+
+car_g24_cb_data_device1:
+	fetch 2,mem_ui_state_map
+	rtnbit1 UI_STATE_BLE_CONNECTED
+	fetch 2,mem_car_24g_no_data_timeout_count
+	store 2,mem_car_24g_no_data_timeout_timer
+	jam WORK_PAIRED,mem_car_24g_received_pac
+	arg mem_24g_rxdata_temp+3,rega
+	branch car_24g_receive_data
+
+car_g24_lpm_dipatch:
+	fetch 1,mem_car_enter_lpm_flag
+	rtn blank
+	call car_g24_lpm_wait
+	nrtn user
+	fetch 3,mem_24g_enter_hibernate	//about 1000ms
+	call clk2lpo
+	storet 4,mem_sleep_counter
+  	branch lpm_sleep
+car_g24_lpm_wait:
+	enable user
+	call lpo_calibration
+	fetch 3,mem_clks_per_lpo
+	branch disable_user,blank
+	branch car_le_process_lpm_before
+
+endif
+
+
+
Index: program/app_dongle.prog
===================================================================
--- /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/program/app_dongle.prog	(nonexistent)
+++ /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/program/app_dongle.prog	(working copy)
@@ -0,0 +1,399 @@
+ifdef COMPILE_DONGLE
+
+dongle_init:
+	call set_eeprom_size_2k
+	fetch DG_CONFIG_LEN,mem_dg_config
+	isolate1 DG_ENABLE_2K_EEPROM,pdata
+	ncall clear_eeprom_size_2k,true
+	call iicd_eeprom_write_disable
+	call dongle_read_kb_bind_status
+	
+	call g24_receive_init
+	setarg dongle_dispatch
+	store 2,mem_cb_24g_receive_process
+	setarg dongle_g24_mouse
+	store 2,mem_cb_24g_data_device1
+	setarg dongle_g24_kb
+	store 2,mem_cb_24g_data_device2
+	setarg dongle_ackpayload_prep
+	store 2,mem_cb_24g_ackpayload
+
+	setarg dongle_usb_config
+	store 2,mem_cb_usb_config
+	branch usb_init
+	
+dongle_dispatch:
+	fetch 1,mem_24g_pair_mode
+	beq 0x00,dongle_auto_bind
+	beq 0x01,dongle_pc_bind
+	beq 0x0f,dongle_all_powerful
+	rtn
+
+dongle_read_kb_bind_status:
+	call dongle_set_kb_bind_addr_eeprom
+	branch iicd_read_eep_data
+
+dongle_set_kb_bind_addr_eeprom:
+	arg mem_dg_kb_bind_flag,rega
+	arg DONGLE_KB_BIND_EEPROM_OFFECT,regb
+	arg 1,temp
+	rtn
+
+dongle_usb_config:
+	fetch DG_CONFIG_LEN,mem_dg_config
+	isolate1 DG_ENABLE_KB_ICON,pdata
+	nbranch dongle_usb_config_param,true
+	jam DONGLE_KB_BIND_SUCCESS,mem_dg_kb_bind_flag
+dongle_usb_config_param:
+	call usb_tx_interval_config
+	call dongle_usb_vid_pid_config
+	branch dongle_usb_hid_icon_config
+
+dongle_usb_vid_pid_config:
+	fetch 1,mem_usb_vid_pid
+	rtn blank
+	fetch 1,mem_dg_kb_bind_flag
+	beq DONGLE_KB_BIND_SUCCESS,dongle_usb_vid_pid_for_suit
+dongle_usb_vid_pid_for_mouse_only_auto_pair:	
+	fetch 4,mem_usb_vid_pid+1
+dongle_usb_vid_pid_store:	
+	store 4,mem_devicedesc+9
+	rtn
+dongle_usb_vid_pid_for_suit:
+	fetch 4,mem_usb_vid_pid+5
+	branch dongle_usb_vid_pid_store
+
+dongle_usb_hid_icon_config:
+	fetch 1,mem_dg_kb_bind_flag
+	beq DONGLE_KB_BIND_SUCCESS,dongle_usb_kb_hidreportdesc
+	setarg USB_KBDATA_VENDOR_DEFINE_ADDR
+	store 2,mem_hidreportdesc_kb
+	jam 0x1a,mem_confdesc+26//hid_descriptor--keyboard length
+	rtn
+dongle_usb_kb_hidreportdesc:
+	setarg USB_KBDATA_ADDR
+	store 2,mem_hidreportdesc_kb
+	jam 0x3f,mem_confdesc+26//hid_descriptor--keyboard length	
+	rtn
+
+
+dongle_all_powerful:
+	call g24_switch_work_mode
+dongle_all_powerful_loop:
+	call dongle_work_mode_auto
+	call dongle_usb_dispatch
+	branch dongle_all_powerful_loop
+
+dongle_pc_bind:
+	call g24_switch_work_mode
+dongle_pc_bind_loop:	
+	call dongle_work_mode_auto
+	call g24_bind_mode_auto
+	call dongle_usb_dispatch
+	branch dongle_pc_bind_loop
+
+dongle_g24_blank_data_process:
+	call dongle_g24_ms_blank_data
+	call dongle_g24_kb_blank_data
+	branch dongle_g24_kb_mul_blank_data
+
+dongle_g24_ms_blank_data:
+	fetch 1,mem_dg_ms_blank_data_enable
+	rtn blank
+	arg TIMER_MS_BLANK,queue
+	call timer_check
+	nrtn blank
+	jam 0,mem_dg_ms_blank_data_enable
+	setarg MS_REPORT_ID
+	store 1,mem_usb_mouse_data
+	setarg 0
+	istore 7,contw
+dongle_usb_tx_ms_data:
+	jam USB_EP2_MS,mem_usb_ep2_data
+dongle_usb_tx_enable_ep2:
+	fetch 1,mem_usb_tx_enable
+	set1 2,pdata
+	store 1,mem_usb_tx_enable
+	rtn
+
+dongle_g24_kb_blank_data:
+	fetch 1,mem_dg_kb_blank_data_enable
+	rtn blank
+	arg TIMER_KB_BLANK,queue
+	call timer_check
+	nrtn blank
+	jam 0,mem_dg_kb_blank_data_enable
+	arg mem_usb_kb_data,contw
+	arg 2,loopcnt
+	call memset0
+dongle_usb_tx_kb_data:	
+	jam KB_NORMAL_REPORT_ID,mem_usb_kb_data
+dongle_usb_tx_enable_ep1:
+	jam USB_EP1_KB,mem_usb_ep1_data
+	fetch 1,mem_usb_tx_enable
+	set1 1,pdata
+	store 1,mem_usb_tx_enable
+	rtn
+
+dongle_g24_kb_mul_blank_data:
+	fetch 1,mem_dg_kb_mul_blank_data_enable
+	rtn blank
+	arg TIMER_KB_MUL_BLANK,queue
+	call timer_check
+	nrtn blank
+	jam 0,mem_dg_kb_mul_blank_data_enable
+	arg mem_usb_kb_multikey,contw
+	arg 2,loopcnt
+	call memset0
+	jam KB_MULTIKEY_REPORT_ID,mem_usb_kb_multikey
+dongle_usb_tx_multikey_data:
+	jam USB_EP2_MULTIKEY,mem_usb_ep2_data
+	branch dongle_usb_tx_enable_ep2
+
+dongle_usb_dispatch:
+	bpatch patch18_4,mem_patch18
+//	jam 0xff,core_write_wdt
+	call usb_isr
+	fetch 1,mem_usb0_get_set_report
+	rtn blank
+	jam 0,mem_usb0_get_set_report
+	fetch 2,mem_usb_setup_bValue_temp
+	arg PC_SET_REPORT,temp
+	isub temp,null
+	nrtn zero
+	//get usb host command
+	fetch 1,mem_usb0_set_report_data
+	rtnne PC_REPORT_ID
+	fetch 1,mem_usb0_set_report_data+1
+	beq COMMAND_MODE,dongle_dispose_cmd_mode
+	beq COMMAND_BIND,dongle_dispose_cmd_bind
+	beq COMMAND_CURRENT_PROJECT,dongle_dispose_cmd_current_project
+	beq COMMAND_CURRENT_MODE,dongle_dispose_cmd_current_mode
+	beq COMMAND_CURRENT_FW_VERSION,dongle_dispose_cmd_current_fw_version
+	beq COMMAND_USER_DEFINED,dongle_dispose_cmd_user_defined
+dongle_usb0_data_ready_report_set0:
+	jam 0,mem_usb0_data_ready_report
+	rtn
+
+dongle_dispose_cmd_mode:
+	fetch 1,mem_usb0_set_report_data+2
+	beq COM_MODE_BIND,dongle_enter_bind_mode
+	branch dongle_usb0_data_ready_report_set0
+dongle_enter_bind_mode:
+	call g24_bind_mode_enable
+dongle_usb0_data_ready_report_set1:
+	jam 1,mem_usb0_data_ready_report
+	rtn
+
+dongle_dispose_cmd_bind:
+	fetch 1,mem_usb0_set_report_data+2
+	beq COM_BIND_GET,dongle_dispose_cmd_get_bind
+	beq COM_BIND_EXIT,dongle_dispose_cmd_exit_bind
+	beq COM_READ_MODE,dongle_dispose_cmd_read_mode
+	branch dongle_usb0_data_ready_report_set0
+dongle_dispose_cmd_get_bind:
+	fetch 1,mem_24g_bind_device_status
+	store 1,mem_usb0_get_report_data+1
+	branch dongle_usb0_data_ready_report_set1
+dongle_dispose_cmd_exit_bind:
+	call g24_work_mode_enable
+	branch dongle_dispose_cmd_get_bind
+dongle_dispose_cmd_read_mode:
+dongle_dispose_in_bind_mode:
+	jam COMMAND_BIND,mem_usb0_get_report_data+1
+	branch dongle_usb0_data_ready_report_set1	
+
+dongle_dispose_cmd_current_project:
+	jam PRODUCT_ID,mem_usb0_get_report_data+1
+	branch dongle_usb0_data_ready_report_set1
+
+dongle_dispose_cmd_current_mode:
+	fetch 1,mem_24g_work_mode
+	beq DONGLE_WORK,dongle_dispose_in_work_mode
+	beq DONGLE_BIND,dongle_dispose_in_bind_mode
+	rtn
+dongle_dispose_in_work_mode:
+	jam COMMAND_MODE,mem_usb0_get_report_data+1
+	branch dongle_usb0_data_ready_report_set1
+	
+dongle_dispose_cmd_current_fw_version:
+	jam FW_VERSION0,mem_usb0_get_report_data+1
+	jam FW_VERSION1,mem_usb0_get_report_data+2
+	jam FW_VERSION2,mem_usb0_get_report_data+3
+	jam FW_VERSION3,mem_usb0_get_report_data+4
+	branch dongle_usb0_data_ready_report_set1
+
+dongle_dispose_cmd_user_defined:
+	call g24_ackpayload_disable
+	fetch 1,mem_usb0_set_report_data+2
+	beq 0xff,soft_reset_chip
+	rtn
+
+dongle_auto_bind:
+	call g24_mode_switch_init
+dongle_auto_bind_loop:
+	call g24_mode_switch
+	call dongle_work_mode_auto
+	call g24_bind_mode_auto
+	call g24_search_mode_auto
+	call dongle_usb_dispatch
+	branch dongle_auto_bind_loop
+
+dongle_work_mode_auto:
+	bpatch patch18_5,mem_patch18
+	fetch 1,mem_24g_work_mode
+	rtnne DONGLE_WORK
+	call g24_work_mode_start
+	call dongle_g24_blank_data_process
+	fetch 1,mem_24g_pair_mode
+	nrtn blank
+	branch g24_nodata_process
+
+dongle_ackpayload_prep:
+	fetch 1,mem_24g_ackpayload_enable
+	beq BIND_ACKPAYLOAD,g24_bind_ackpayload_prep
+	beq KB_LED_ACKPAYLOAD,dongle_g24_kb_led_ackpayload_prep
+	rtn
+
+dongle_g24_kb_led_ackpayload_prep:
+	fetch 1,mem_24g_rxbuf+2
+	beq DATATYPE_DEVICE1,g24_bind_ackpayload_prep
+	beq DATATYPE_ATTEMP,g24_bind_ackpayload_prep
+	jam 0,mem_usb_tx_win_enable
+	jam 0x01,mem_24g_datalen
+	fetch 1,mem_24g_led_status
+	store 1,mem_24g_txbuf
+	rtn
+
+dongle_g24_mouse:
+	setarg MS_REPORT_ID
+	store 1,mem_usb_mouse_data	//report id
+	fetch 7,mem_24g_rxdata_temp+3	//key
+	istore 7,contw
+	fetch 1,mem_24g_rxdata_temp+3	//key
+	ncall dongle_g24_ms_enable_blank_data_forcibly,blank//get kb data
+	fetch 1,mem_24g_rxdata_temp+3	//key
+	call dongle_g24_ms_disable_blank_data_forcibly,blank
+	branch dongle_usb_tx_ms_data
+
+dongle_g24_ms_enable_blank_data_forcibly:
+	jam 1,mem_dg_ms_blank_data_enable
+	setarg TIMER_MS_BLANK_DELAY
+	arg TIMER_MS_BLANK,queue
+	branch timer_init
+
+dongle_g24_ms_disable_blank_data_forcibly:
+	jam 0,mem_dg_ms_blank_data_enable
+	setarg 0
+	arg TIMER_MS_BLANK,queue
+	branch timer_init
+
+dongle_g24_kb:
+	fetch 1,mem_24g_rxdata_temp+3
+	beq 0,dongle_g24_kb_type0	//normal key
+	beq 2,dongle_g24_kb_type2	//system key
+	beq 3,dongle_g24_kb_type3	//multikey
+	branch g24_rx_interrupt_clear
+
+dongle_g24_kb_type0:
+	fetch 1,mem_24g_rxdata_temp+5
+	store 1,mem_24g_ackpayload_enable
+	jam 0,mem_24g_rxdata_temp+5
+	arg mem_usb_kb_data,contw
+	arg mem_24g_rxdata_temp+4,contr
+	arg 8,loopcnt
+	call memcpy
+	fetch 8,mem_usb_kb_data
+	ncall dongle_g24_kb_enable_blank_data_forcibly,blank//get kb data
+	fetch 8,mem_usb_kb_data	
+	call dongle_g24_kb_disable_blank_data_forcibly,blank
+	fetch 8,mem_usb_kb_data
+	store 8,mem_dg_kb_data_sta_data
+	fetcht 8,mem_dg_kb_data_last_data
+	isub temp,null
+	ncall dongle_usb_tx_enable_ep1,zero
+	fetch 8,mem_dg_kb_data_sta_data
+	store 8,mem_dg_kb_data_last_data
+	branch g24_rx_interrupt_clear
+
+dongle_g24_kb_enable_blank_data_forcibly:
+	jam 1,mem_dg_kb_blank_data_enable
+	setarg TIMER_KB_BLANK_DELAY
+	arg TIMER_KB_BLANK,queue
+	branch timer_init
+
+dongle_g24_kb_disable_blank_data_forcibly:
+	jam 0,mem_dg_kb_blank_data_enable
+	setarg 0
+	arg TIMER_KB_BLANK,queue
+	branch timer_init
+
+dongle_g24_kb_type3:
+	arg mem_usb_kb_multikey,contw
+	arg mem_24g_rxdata_temp+3,contr
+	arg 3,loopcnt
+	call memcpy
+	fetch 2,mem_usb_kb_multikey+1
+	ncall dongle_g24_kb_mul_enable_blank_data_forcibly,blank//get multikey data
+	fetch 2,mem_usb_kb_multikey+1
+	call dongle_g24_kb_mul_disable_blank_data_forcibly,blank
+	fetch 3,mem_usb_kb_multikey
+	store 3,mem_dg_kb_multikey_sta_data
+	fetcht 3,mem_dg_kb_multikey_last_data
+	isub temp,null
+	ncall dongle_usb_tx_multikey_data,zero
+	fetch 3,mem_dg_kb_multikey_sta_data
+	store 3,mem_dg_kb_multikey_last_data
+	branch g24_rx_interrupt_clear
+
+dongle_g24_kb_mul_enable_blank_data_forcibly:
+	jam 1,mem_dg_kb_mul_blank_data_enable
+	setarg TIMER_KB_MUL_BLANK_DELAY
+	arg TIMER_KB_MUL_BLANK,queue
+	branch timer_init
+	
+dongle_g24_kb_mul_disable_blank_data_forcibly:
+	jam 0,mem_dg_kb_mul_blank_data_enable
+	setarg 0
+	arg TIMER_KB_MUL_BLANK,queue
+	branch timer_init
+
+dongle_g24_kb_type2:
+	arg mem_usb_kb_system,contw
+	arg mem_24g_rxdata_temp+3,contr
+	arg 2,loopcnt
+	call memcpy
+	fetch 2,mem_usb_kb_system
+	ncall dongle_g24_kb_sys_enable_blank_data_forcibly,blank
+	fetch 2,mem_usb_kb_system
+	call dongle_g24_kb_sys_disable_blank_data_forcibly,blank
+	fetch 2,mem_usb_kb_system
+	store 2,mem_dg_kb_system_sta_data
+	fetcht 2,mem_dg_kb_system_last_data
+	isub temp,null
+	ncall dongle_usb_tx_sys_data,zero
+	fetch 2,mem_dg_kb_system_sta_data
+	store 2,mem_dg_kb_system_last_data
+	branch g24_rx_interrupt_clear
+
+dongle_g24_kb_sys_enable_blank_data_forcibly:
+	jam 1,mem_dg_kb_mul_blank_data_enable
+	setarg TIMER_KB_MUL_BLANK_DELAY
+	arg TIMER_KB_MUL_BLANK,queue
+	branch timer_init
+dongle_g24_kb_sys_disable_blank_data_forcibly:
+	jam 0,mem_dg_kb_mul_blank_data_enable
+	setarg 0
+	arg TIMER_KB_MUL_BLANK,queue
+	branch timer_init
+
+dongle_usb_tx_sys_data:
+	jam USB_EP2_SYSTEMKEY,mem_usb_ep2_data
+	branch dongle_usb_tx_enable_ep2
+
+	
+
+
+endif
+
+
Index: program/app_esl.prog
===================================================================
--- /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/program/app_esl.prog	(nonexistent)
+++ /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/program/app_esl.prog	(working copy)
@@ -0,0 +1,887 @@
+
+/**************************************INFO LOG FUNC0******************************************/
+
+eink_log_push_2Bdec:
+	arg 2,debug
+	call eink_log_hex2dec
+	jam 0,mem_eink_log_hex2dec_ptr
+eink_log_push_2Bdec_loop:
+	setarg mem_eink_log_hex2dec
+	fetcht 1,mem_eink_log_hex2dec_ptr
+	iadd temp,contr
+	ifetch 1,contr
+	and_into 0xf,pdata
+	call eink_log_num
+	fetch 1,mem_eink_log_hex2dec_ptr
+	increase 1,pdata
+	store 1,mem_eink_log_hex2dec_ptr
+	fetch 1,mem_eink_log_hex2dec_len
+	increase -1,pdata
+	store 1,mem_eink_log_hex2dec_len
+	nbranch eink_log_push_2Bdec_loop,blank
+	rtn
+
+eink_log_push:
+	fetch 1,mem_eink_log_last_letter	//if(last_letter != letter)
+	fetcht 1,mem_eink_log_letter
+	isub temp,null
+	nbranch eink_log_push_real,zero
+
+	fetch 1,mem_eink_log_last_cmd	//if(last_cmd != cmd)
+	fetcht 1,mem_eink_log_cmd
+	isub temp,null
+	nbranch eink_log_push_real,zero
+	
+	fetch 1,mem_eink_log_last_ch	//if(last_ch != ch)
+	fetcht 1,mem_eink_log_ch
+	isub temp,null
+	nbranch eink_log_push_real,zero
+	
+	fetch 1,mem_eink_log_last_star
+	rtneq CHAR_ASTERISK					//if(last_star == '*')    *:0x2A
+	setarg CHAR_ASTERISK
+	call eink_log_font
+	jam CHAR_ASTERISK,mem_eink_log_last_star
+	rtn
+	
+eink_log_push_real:
+	fetch 1,mem_eink_log_letter
+	call eink_log_font
+
+	fetch 1,mem_eink_log_cmd
+	call eink_log_num
+
+	call eink_log_minus
+
+	fetch 1,mem_eink_log_ch
+	call eink_log_num
+
+	call eink_log_minus
+
+	fetch 1,mem_eink_log_rssi
+	call eink_log_num
+
+	fetch 5,mem_eink_log_info
+	store 5,mem_eink_log_last_info
+	jam 0,mem_eink_log_last_star
+	rtn
+	
+
+/* print 1 byte of pdata to ring buffer screen log*/
+eink_log:
+	compare CHAR_ASTERISK,pdata,0xFF     //if(last_star == '*') *:0x2A
+	ncall eink_log_clear_last,true
+
+	copy pdata,regc
+	fetch 1,mem_eink_log_front
+	copy pdata,rega						//front -> rega
+	fetch 1,mem_eink_log_end				
+	copy pdata,regb						//end -> regb
+       
+	increase 1,rega						//front =+ 1
+	div rega,EINK_LOG_MAX				// front%20
+	call wait_div_end
+	remainder temp						//temp = front%30
+	copy temp,pdata
+	icompare 0xFF,regb					//if( front%30 == end)
+	branch eink_log_full,true
+	branch eink_log_not_full
+
+eink_log_num:
+	jam 1,mem_eink_log_is_byte		//set is  byte
+	branch eink_log
+eink_log_font:
+	jam 0,mem_eink_log_is_byte		//set is not byte
+	branch eink_log
+
+eink_log_clear_last:
+	jam 0,mem_eink_log_last_star
+	jam 0,mem_eink_log_last_letter
+	jam 0,mem_eink_log_last_cmd
+	jam 0,mem_eink_log_last_ch
+	rtn
+
+eink_log_full:
+	fetch 1,mem_eink_log_front				//ringbuf[front] = cmd;
+	arg mem_eink_log_ring_buffer,rega
+	iadd rega,rega
+	copy regc,pdata
+	istore 1,rega
+	call eink_log_set_byte_flag					//modify is-byte flag
+		
+	fetch 1,mem_eink_log_front				//front = (front + 1)%BUF_LEN;
+	increase 1,pdata
+	div pdata,EINK_LOG_MAX
+	call wait_div_end
+	remainder temp
+	storet 1,mem_eink_log_front
+
+	fetch 1, mem_eink_log_end					//end = (end + 1)%BUF_LEN;
+	increase 1,pdata
+	div pdata,EINK_LOG_MAX
+	call wait_div_end
+	remainder temp
+	storet 1,mem_eink_log_end
+	rtn
+
+eink_log_not_full:
+	fetch 1,mem_eink_log_front				//ringbuf[front] = cmd;
+	arg mem_eink_log_ring_buffer,rega
+	iadd rega,rega
+	copy regc,pdata
+	istore 1,rega
+	call eink_log_set_byte_flag					//modify is-byte flag
+
+	fetch 1,mem_eink_log_front				//front = (front + 1)%BUF_LEN;
+	increase 1, pdata
+	div pdata,EINK_LOG_MAX
+	call wait_div_end
+	remainder temp
+	storet 1,mem_eink_log_front
+	rtn
+
+eink_log_set_byte_flag:
+ 	fetch 1,mem_eink_log_front				//modify is-byte flag
+ 	div pdata,8
+ 	call wait_div_end
+ 	quotient pdata
+ 	remainder temp
+	arg mem_eink_log_ring_buffer_flag,regc
+	iadd regc,regc
+	ifetch 1,regc                       //now regc is flag byte addr
+	copy pdata,rega                //now pdata and rega is flag byte data
+
+	fetch 1,mem_eink_log_is_byte		//modify bit of is-byte 
+	call eink_log_set_flag_font,blank
+	ncall eink_log_set_flag_byte,blank
+
+	copy rega,pdata					//save back to mem
+ 	istore 1,regc
+	rtn
+
+eink_log_set_flag_font:
+	copy temp,queue
+	disable user
+	qsetflag user,rega
+	rtn
+eink_log_set_flag_byte:
+ 	copy temp,queue
+ 	enable user
+	qsetflag user,rega
+ 	rtn
+
+//rega:src buff
+//debug:length
+eink_log_hex2dec:
+	arg mem_eink_log_hex2dec,regc
+eink_log_calc_loop:
+	call eink_log_hex2dec_Rptr
+	call bcd2
+	call eink_log_hex2dec_Rcnt
+	disable user
+eink_log_bcd_loop:
+	ifetch 1,regb
+	and_into 0x1f,pdata
+	branch eink_log_do_store,user
+	branch eink_log_skip_prefix,blank
+eink_log_do_store:
+	and_into 0xf,pdata
+	call eink_store_barcode
+	enable user
+eink_log_skip_prefix:
+	increase 1,regb
+	loop eink_log_bcd_loop
+	deposit regc
+	arg mem_eink_log_hex2dec,contr
+	isub contr,pdata
+	store 1,mem_eink_log_hex2dec_len
+	copy pdata,loopcnt
+	arg mem_eink_log_hex2dec,contw
+eink_display_dec_loop:
+	arg 0x2e,temp
+	ifetch 1,contw
+	add pdata,0x30,temp
+	istoret 1,contw
+	loop eink_display_dec_loop
+	rtn
+
+eink_store_barcode:
+	istore 1,regc
+	increase 1,regc
+	rtn	
+
+eink_log_hex2dec_Rptr:
+	copy debug,pdata
+	beq 1,rega_read_1byte
+	beq 2,rega_read_2bytes
+	rtn
+rega_read_1byte:
+	ifetch 1,rega
+	rtn
+rega_read_2bytes:
+	ifetch 2,rega
+	rtn
+
+eink_log_hex2dec_Rcnt:
+	copy debug,pdata
+	beq 1,bcd_read_1byte
+	beq 2,bcd_read_2bytes
+	rtn
+bcd_read_1byte:
+	arg 3,loopcnt
+	arg mem_bcd+5,regb
+	rtn
+bcd_read_2bytes:
+	arg 5,loopcnt
+	arg mem_bcd+3,regb	
+	rtn
+
+eink_log_break:
+	setarg LETTER_B					//'B'
+	call eink_log_font
+	arg mem_parse_cnt,rega
+	call eink_log_push_2Bdec
+	call eink_log_minus				//'-'
+	fetch 1,mem_esl_24g_current_ch
+	call eink_log_num
+	call eink_log_minus				//'-'
+	fetch 1,mem_esl_24g_behavior
+	branch eink_log_num
+
+eink_log_supervision_timeout:
+	call eink_log_break
+eink_log_fail:
+	setarg LETTER_F					//'F'
+	call eink_log_font
+	fetch 2,mem_rx_cnt
+	branch eink_log_fail_rx_null,blank
+	isolate1 mark_24g_old_packet,mark
+	branch eink_log_fail_old_pac,true
+eink_log_fail_rx_lost:	
+	setarg EINK_LOG_RX_LOST
+	branch eink_log_num	
+eink_log_fail_rx_null:
+	setarg EINK_LOG_RX_NULL
+	branch eink_log_num
+eink_log_fail_old_pac:
+	setarg EINK_LOG_OLD_PAC
+	branch eink_log_num
+
+
+eink_log_minus:
+	setarg CHAR_MINUS
+	branch eink_log_font
+
+eink_log_s:
+	setarg LETTER_S					//'S'
+	branch eink_log_font
+
+eink_set_orig:
+	arg mem_eink_orig,regb
+	branch eink_wr_seq
+
+eink_init_seq:
+	arg mem_eink_init_offset,regb
+	call eink_wr_seq
+	arg mem_eink_init,regb
+eink_wr_seq:
+	ifetch 8,regb
+	rtneq 0xff
+	and pdata,0xff,regc
+	call eink_spid_cmd
+	add regc,2,pdata
+	iadd regb,regb
+	branch eink_wr_seq
+
+	// pdata[7:0] data length pdata [15:8] command pdata[63:16] data
+eink_spid_cmd:
+	and pdata,0xff,rega
+	rshift8 pdata,pdata
+	store 7,mem_spid_tbuf
+eink_spid_data:
+	setarg mem_spid_tbuf
+	call eink_spid_buf
+	call start_spid
+eink_spid_end:
+	fetcht 1,mem_cs
+	branch gpio_out_inactive
+
+
+	// pdata: tx buffer, rega is data length	
+eink_spid_buf:
+	store 2,core_spid_txaddr
+	fetcht 1,mem_cs
+	call gpio_out_active
+	fetcht 1,mem_dc
+	call gpio_out_active
+	setarg 1
+	store 2,core_spid_txlen
+	call start_spid
+	fetcht 1,mem_dc
+	call gpio_out_inactive
+	deposit rega
+	branch eink_spid_end,blank
+	store 2,core_spid_txlen
+	fetch 2,core_spid_txaddr
+	increase 1,pdata
+	store 2,core_spid_txaddr
+	rtn
+
+start_spid:
+	jam spid_start,core_misc_ctrl
+	branch wait_spid_done
+
+
+/**********************************RLE UNCOMPRESS FUNC***********************************/
+uncompress_init:
+	jam 0,mem_uncom_image_att_flag
+	jam 0,mem_uncom_fliter_data_flag
+	arg 0x20,loopcnt
+	arg mem_uncom_the_first_two_buff,contw
+	call memset0
+	setarg mem_uncom_clear_once_end
+	arg mem_uncom_clear_once_start,contw
+	isub contw,loopcnt
+	call clear_mem
+	setarg mem_esl_24g_rxpayload
+	arg UNCOM_SRC_INDEX,temp
+	iadd temp,pdata
+	store 2,mem_uncom_src_end
+uncompress_mem_clear_everytime:
+	setarg mem_uncom_clear_everytime_end
+	arg mem_uncom_clear_everytime_start,contw
+	isub contw,loopcnt
+	branch clear_mem
+
+uncompress_dispatch:
+	//fetch 1,mem_uncom_image_att_flag
+	//beq 0,umcompress_image_att
+	fetch 1,mem_uncom_fliter_data_flag
+	beq 1,uncompress_fliter_redundant_data
+	call uncompress_start
+	fetch 2,mem_uncom_current_len
+	rtn blank
+	call uncompress_image
+	branch wait_spid_done  //should wait spi write data finish
+	
+uncompress_fliter_redundant_data:
+	jam 0,mem_uncom_fliter_data_flag
+	call uncompress_start
+	fetchr loopcnt,1,mem_uncom_current_len
+	arg mem_uncom_the_first_two_buff,contw
+	arg mem_uncom_dest+1,contr
+	call memcpy
+	/******************reuse temp********************/	
+	fetch 2,mem_uncom_total_len
+	fetcht 1,mem_uncom_fliter_datalen
+	isub temp,pdata
+	store 2,mem_uncom_total_len
+	fetch 2,mem_uncom_current_len
+	isub temp,pdata
+	store 2,mem_uncom_current_len
+	fetchr loopcnt,1,mem_uncom_current_len
+	setarg mem_uncom_the_first_two_buff
+	iadd temp,contr
+	arg mem_uncom_dest+1,contw
+	call memcpy
+	/******************reuse temp********************/	
+	branch uncompress_image
+
+
+umcompress_image_att:
+	call uncompress_start
+	setarg mem_uncom_the_first_two_buff
+	fetcht 1,mem_uncom_the_first_two_index
+	iadd temp,contw
+	fetchr loopcnt,1,mem_uncom_current_len
+	arg mem_uncom_dest+1,contr
+	call memcpy
+	fetch 1,mem_uncom_the_first_two_index
+	branch umcompress_image_att_index,blank
+	jam 1,mem_uncom_image_att_flag
+	fetch 2,mem_uncom_total_len
+	pincrease -62	//UNCOM_IMAGE_ATT_LENTH
+	store 2,mem_uncom_total_len
+	store 2,mem_uncom_current_len
+	arg mem_uncom_the_first_two_buff,contr
+	arg mem_uncom_image_att_buf,contw
+	arg UNCOM_IMAGE_ATT_LENTH,loopcnt
+	call memcpy
+	fetchr loopcnt,1,mem_uncom_current_len
+	arg mem_uncom_the_first_two_buff+UNCOM_IMAGE_ATT_LENTH,contr
+	arg mem_uncom_dest+1,contw
+	call memcpy
+	branch uncompress_image
+
+
+umcompress_image_att_index:
+	fetch 1,mem_uncom_current_len
+	store 1,mem_uncom_the_first_two_index
+	rtn
+
+uncompress_start:
+	setarg 0
+	store 3,mem_uncom_dest_index
+	call uncompress_left_check
+	fetch 1,mem_uncom_src_index
+	beq UNCOM_SRC_LENGTH,uncompress_end
+uncompress_loop:
+	call uncompress_read_head
+	fetch 1,mem_uncom_block_head
+	branch uncompress_end,blank
+	bbit1 7,uncompress_original
+uncompress_repetition:
+	jam 1,mem_uncom_repetitive
+	fetcht 2,mem_uncom_block_body_ptr
+	fetch 2,mem_uncom_src_end
+	isub temp,null
+	nbranch repetition_overflow,positive
+	fetchr rega,1,mem_uncom_block_len
+	call uncompress_repetition_memcpy
+	fetch 1,mem_uncom_src_index
+	sub pdata,UNCOM_SRC_INDEX,null
+	branch uncompress_loop,positive
+uncompress_repetition_end:
+uncompress_original_end:
+	jam 0,mem_uncom_repetitive
+	jam 0,mem_uncom_left_len
+uncompress_end:
+	fetch 2,mem_uncom_dest_index
+	store 2,mem_uncom_current_len
+	rtn
+
+repetition_overflow:
+	fetch 1,mem_uncom_block_len
+	store 1,mem_uncom_left_len
+	branch uncompress_end
+
+uncompress_original:
+	jam 2,mem_uncom_repetitive
+	fetcht 2,mem_uncom_block_body_ptr
+	fetch 2,mem_uncom_src_end
+	isub temp,null
+	nbranch original_overflow_head_left,positive
+
+	fetch 1,mem_uncom_block_len
+	iadd temp,temp
+	fetch 2,mem_uncom_src_end
+	isub temp,temp
+	nbranch original_overflow_body_left,positive
+
+	fetchr rega,1,mem_uncom_block_len
+	call uncompress_original_memcpy
+	fetch 1,mem_uncom_src_index
+	sub pdata,UNCOM_SRC_INDEX,null
+	branch uncompress_loop,positive
+	branch uncompress_original_end
+
+original_overflow_head_left:
+	fetch 1,mem_uncom_block_len
+	store 1,mem_uncom_left_len
+	branch uncompress_end
+
+original_overflow_body_left:
+	sub temp,0,temp
+	increase -1,temp
+	storet 1,mem_uncom_left_len
+	fetch 1,mem_uncom_block_len
+	isub temp,pdata
+	store 1,mem_uncom_block_len
+	fetchr rega,1,mem_uncom_block_len
+	call uncompress_original_memcpy
+	branch uncompress_end
+
+uncompress_left_check:
+	fetch 1,mem_uncom_left_len
+	rtn blank
+	fetch 1,mem_uncom_repetitive
+	beq 2,uncompress_left_original
+uncompress_left_repetition:
+	fetchr rega,1,mem_uncom_left_len
+uncompress_repetition_memcpy:
+	copy rega,loopcnt
+	call uncompress_dest_contw
+repetition_memcpy_loop:
+	call uncompress_src_contr
+	ifetch 1,contr
+	istore 1,contw
+	loop repetition_memcpy_loop
+	call uncompress_src_index_add_one
+	/******************reuse temp********************/
+	copy rega,temp
+	call uncompress_dest_index_add_len
+	branch uncompress_total_len_add_len
+	/******************reuse temp********************/
+
+uncompress_left_original:
+	fetch 1,mem_uncom_left_len
+	sub pdata,UNCOM_SRC_LENGTH,null
+	nbranch uncompress_left_original_continue,positive
+	fetchr rega,1,mem_uncom_left_len
+uncompress_original_memcpy:
+	copy rega,loopcnt
+	call uncompress_dest_contw
+	call uncompress_src_contr
+	call memcpy
+	/******************reuse temp********************/
+	copy rega,temp
+	call uncompress_src_index_add_len
+	call uncompress_dest_index_add_len
+	branch uncompress_total_len_add_len
+	/******************reuse temp********************/
+
+uncompress_left_original_continue:
+	fetch 1,mem_uncom_left_len
+	increase -32,pdata	//24g data len
+	store 1,mem_uncom_left_len
+	arg 32,rega			//24g data len
+	branch uncompress_original_memcpy
+
+uncompress_read_head:
+	call uncompress_src_contr
+	ifetch 1,contr
+	store 1,mem_uncom_block_head
+	and_into 0x7f,pdata
+	store 1,mem_uncom_block_len
+	copy contr,pdata
+	store 2,mem_uncom_block_body_ptr
+uncompress_src_index_add_one:
+	fetch 1,mem_uncom_src_index
+	increase 1,pdata
+	store 1,mem_uncom_src_index
+	rtn
+
+uncompress_src_contr:
+	setarg mem_esl_24g_rxpayload
+	fetcht 1,mem_uncom_src_index
+	iadd temp,contr
+	rtn
+
+uncompress_dest_contw:
+	setarg mem_uncom_dest
+	pincrease 1
+	fetcht 2,mem_uncom_dest_index
+	iadd temp,contw
+	rtn
+
+uncompress_src_index_add_len:
+	fetch 1,mem_uncom_src_index
+	iadd temp,pdata
+	store 1,mem_uncom_src_index
+	rtn
+
+uncompress_total_len_add_len:
+	fetch 2,mem_uncom_total_len
+	iadd temp,pdata
+	store 2,mem_uncom_total_len
+	rtn
+
+uncompress_dest_index_add_len:
+	fetch 2,mem_uncom_dest_index
+	iadd temp,pdata
+	store 2,mem_uncom_dest_index
+	rtn
+
+
+uncompress_eink_type:
+	jam 0x24,mem_uncom_dest
+	rtnmark0 mark_eink_red
+	jam 0x26,mem_uncom_dest
+	rtn	
+
+uncompress_image:
+	setarg mem_uncom_dest
+	store 2,mem_eink_head
+	fetch 2,mem_image_ptr
+	call eink_set_orig,blank
+	call uncompress_eink_type
+	fetcht 2,mem_uncom_current_len
+	copy temp,rega
+	fetch 2,mem_image_ptr
+	copy pdata,regb
+	iadd temp,pdata
+	store 2,mem_image_ptr
+	fetcht 2,mem_eink_size
+	isub temp,pdata
+	nbranch esl_write_full,positive
+	bmark1 mark_eink_red,uncompress_image_red
+uncompress_image_black:
+	store 2,mem_uncom_current_len	//red ram length
+	fetch 2,mem_eink_size
+	isub regb,rega		//black ram left length
+	fetch 2,mem_uncom_current_len
+	branch uncompress_image_black_end,blank
+	call esl_write_ram
+	call wait_spid_done	//wait write eink ram done
+	fetch 2,mem_uncom_current_len
+	fetcht 1,mem_uncom_fliter_datalen
+	isub temp,pdata
+	store 2,mem_uncom_current_len
+	copy pdata,loopcnt
+	setarg mem_uncom_dest+1
+	fetcht 1,mem_uncom_fliter_datalen
+	iadd temp,pdata
+	iadd rega,contr
+	arg mem_uncom_dest+1,contw
+	call memcpy
+	branch uncompress_image
+
+uncompress_image_red:
+	copy rega,pdata
+	fetcht 1,mem_uncom_fliter_datalen
+	isub temp,rega
+	branch esl_write_ram
+
+uncompress_image_black_end:
+	jam 1,mem_uncom_fliter_data_flag
+	branch esl_write_ram
+
+
+esl_write_ram:
+	bmark1 mark_eink_red,lost_last_packet
+esl_write_ram_start:
+	call image_ptr_clear
+	set1 mark_eink_red,mark
+esl_write_full:	
+	fetch 2,mem_eink_head
+	call eink_spid_buf
+	jam spid_start,core_misc_ctrl
+	rtn
+	
+image_ptr_clear:
+	setarg 0
+	store 2,mem_image_ptr
+	rtn	
+	
+lost_last_packet:
+	call esl_write_ram_start
+	jam STATE_DATA_FINISH,mem_update_state
+	rtn
+	
+bcd2:
+	store 8,mem_pdatatemp
+	force 0x20,pdata
+	force 8,loopcnt
+	arg mem_bcd,contw
+lpo_clear:	
+	istore 1,contw
+	loop lpo_clear
+	arg mem_bcd,contw
+	increase 7,contw
+	fetch 8,mem_pdatatemp
+bcd_loop:
+	div pdata,10
+	call wait_div_end
+	remainder pdata
+	or_into 0x30,pdata
+	istore 1,contw
+	increase -2,contw
+	quotient pdata
+	rtn blank
+	branch bcd_loop
+
+
+/**************************************INFO DISPALY FUNC******************************************/
+eink_chksum:
+	ifetch 1,rega
+	imul32 temp,pdata
+	iadd regb,regb
+	increase 1,temp
+	increase -1,rega
+	setarg mem_barcode_start
+	isub rega,null
+	nbranch eink_chksum,zero
+	div regb,47
+	call wait_div_end
+	remainder pdata
+	branch eink_store_barcode
+	// pdata: 0-9, 37=dot, 47=start/stop
+eink_display_barcode_byte:
+	arg mem_code93,contr
+	iadd contr,contr
+	ifetchr debug,1,contr
+	arg 7,queue
+eink_display_barcode_byte_loop:
+	call eink_setxy
+	qisolate1 debug
+	call eink_display_barcode_x
+	increase -1,queue
+	branch eink_display_barcode_byte_loop,positive
+	call eink_setxy
+	isolate1 0,null
+eink_display_barcode_x:
+	setarg 0x100
+	iadd timeup,timeup
+	setarg 0
+	branch eink_display_barcode_blank,true
+	setarg -1
+eink_display_barcode_blank:
+	store 4,mem_spid_tbuf+1
+	jam 0x24,mem_spid_tbuf
+	arg 4,rega
+	branch eink_spid_data
+	
+eink_clear_loop:
+	arg 32,rega
+	call eink_spid_data
+	increase -32,regb
+	branch eink_clear_loop,positive
+	rtn
+	
+eink_log_battery_vol:
+	arg 2,debug
+	arg mem_battery_vol,rega
+	call eink_log_hex2dec
+	fetch 2,mem_eink_log_hex2dec+1
+	store 2,mem_eink_log_hex2dec+2
+	jam CHAR_DOT,mem_eink_log_hex2dec+1
+	jam 4,mem_eink_log_hex2dec_len	//'2.78'
+	branch eink_display_dec+1
+
+eink_log_broadcast_rssi:
+	fetch 1,mem_rssi_save	//broadcast
+	sub pdata,95,pdata
+	ncall enable_blank,positive
+	store 1,mem_rssi_temp
+	arg 1,debug
+	arg mem_rssi_temp,rega
+	branch eink_display_dec
+eink_log_unicast_rssi:
+	fetch 1,mem_esl_24g_rssi_save	//unicast
+	branch eink_log_broadcast_rssi+1
+eink_log_push_zero:
+	arg 1,debug
+	arg mem_eink_log_push_zero,rega
+	branch eink_display_dec
+
+eink_display_dec:
+	call eink_log_hex2dec
+	fetchr loopcnt,1,mem_eink_log_hex2dec_len
+	arg mem_eink_log_hex2dec,alarm
+	branch eink_display_str
+
+
+	// timeup is yx 24 bit
+eink_setxy:
+	and timeup,0xff,pdata
+	store 1,mem_eink_setxy+2
+	fetch 2,mem_eink_xy+1
+	rshift8 timeup,temp
+	isub temp,pdata
+	store 2,mem_eink_setxy+5
+	arg mem_eink_setxy,regb
+	branch eink_wr_seq
+
+eink_display_dot:
+	setarg CHAR_DOT
+	branch eink_display_font
+
+eink_display_comma:
+	setarg CHAR_COMMA
+	call eink_display_font
+	setarg 0x300
+	iadd timeup,timeup
+	rtn
+
+eink_display_space:
+	setarg CHAR_SPACE
+	branch eink_display_font
+	
+
+	// alarm points to bytes, loopcnt is length
+eink_display_str:
+	ifetch 1,alarm
+	call eink_display_font
+	increase 1,alarm
+	loop eink_display_str
+	rtn
+	// pdata:0-ff
+eink_display_byte:
+	and pdata,0xf,type
+	rshift4 pdata,pdata
+	call eink_display_hex
+	deposit type
+
+	// pdata:0-f
+eink_display_hex:
+	pincrease 0x30
+	sub pdata,0x39,null
+	branch eink_display_font,positive
+	pincrease 0x27
+
+	// pdata:char 0-9 for digit, > 65 for A-Z, timeup is yx
+eink_display_font:
+	arg 3,debug
+	beq 0x20,eink_display_font_space
+	beq 0x2e,eink_display_font_dot
+	beq 0x2c,eink_display_font_comma
+	arg 8,debug
+	beq 0x40,eink_display_font_at
+	beq 0x3e,eink_display_font_greater
+	beq 0x25,eink_display_font_percent
+	arg 6,debug
+	beq 0x3a,eink_display_font_colon
+	beq 0x2d,eink_display_font_minus
+	beq 0x2a,eink_display_font_asterisk
+	beq 0x23,eink_display_font_pound
+	sub pdata,0x39,null
+	branch eink_display_digit,positive
+	increase -97,pdata
+	arg 8,debug
+	branch eink_display_cont
+eink_display_font_percent:
+	setarg 45
+	branch eink_display_cont
+eink_display_font_asterisk:
+	setarg 44
+	branch eink_display_cont
+eink_display_font_greater:
+	setarg 43
+	branch eink_display_cont
+eink_display_font_at:
+	setarg 42
+	branch eink_display_cont
+eink_display_font_comma:
+	setarg 41
+	branch eink_display_cont
+eink_display_font_dot:
+	setarg 40
+	branch eink_display_cont
+eink_display_font_space:
+	setarg 39
+	branch eink_display_cont
+eink_display_font_pound:
+	setarg 38
+	branch eink_display_cont
+eink_display_font_colon:
+	setarg 37
+	branch eink_display_cont
+eink_display_font_minus:
+	setarg 36
+	arg 5,debug
+	branch eink_display_cont
+eink_display_digit:
+	increase -22,pdata
+eink_display_cont:
+	lshift3 pdata,pdata
+	arg mem_eink_font,temp
+	iadd temp,regext
+eink_display_font_loop:
+	call eink_setxy
+	ifetch 1,regext
+	pinvert
+	store 1,mem_spid_tbuf+1
+	jam 0x24,mem_spid_tbuf
+	arg 1,rega
+	call eink_spid_data
+	setarg 0x100
+	iadd timeup,timeup
+	increase 1,regext
+	increase -1,debug
+	nbranch eink_display_font_loop,zero
+	rtn
+
+
+
+
+
Index: program/app_module.prog
===================================================================
--- /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/program/app_module.prog	(nonexistent)
+++ /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/program/app_module.prog	(working copy)
@@ -0,0 +1,1794 @@
+
+ifdef COMPILE_MODULE
+
+
+
+
+module_init:	
+	rtn wake
+	call le_modified_name
+	call adc_init_data
+	setarg module_process_idle
+	store 2,mem_cb_idle_process
+	setarg module_bt_conn_process
+	store 2,mem_cb_bt_process
+	setarg module_process_bb_event
+	store 2,mem_cb_bb_event_process
+	setarg module_lpm_lock
+	store 2,mem_cb_check_wakelock
+	setarg module_hci_cmd_transmit_le_notify
+	store 2,mem_cb_ble_transmit
+	setarg module_hci_event_receive_spp_data
+	store 2,mem_cb_receive_spp_data
+	setarg module_le_receive_data
+	store 2,mem_cb_att_write
+	setarg module_bb_event_timer
+	store 2,mem_cb_event_timer
+
+	setarg module_wechat_rx_push_data
+	store 2,mem_module_wechat_rx_push_data_cb
+
+	call module_spp_clear_last_transmite_clock
+	bpatch patch18_6,mem_patch18
+	call module_lpm_uart_init
+	call module_gpio_init
+	call check_module_disabled
+	branch module_hci_event_enter_standby_mode
+
+/*
+	function name:uart init by mem
+	input:
+		mem_module_uart_rx_buffer、mem_module_uart_rx_buffer_end
+		mem_module_uart_tx_buffer、mem_module_uart_tx_buffer_end
+		mem_module_uarta_baud_rate
+		bit0 of mem_module_flag
+*/
+module_lpm_uart_init:
+	fetch 1,core_uart_ctrl
+	set0 BIT_UART_CONTROL_ENABLE,pdata
+	store 1,core_uart_ctrl
+	fetch 8,mem_module_uart_rx_buffer
+	call uarta_init_dma_mem
+	fetch uart_baud_len,mem_module_uarta_baud_rate
+	call uarta_init_baud_rate
+	call uart_clock_select_main_freq_crystal
+	jam gpcfg_uart_txd,core_gpio_conf+HCI_UART_TX_GPIO_NUM
+	jam gpcfg_uart_rxd|gpcfg_pullup,core_gpio_conf+HCI_UART_RX_GPIO_NUM
+	jam gpcfg_uart_rts,core_gpio_conf+HCI_UART_RTS_GPIO_NUM
+	jam gpcfg_uart_cts,core_gpio_conf+HCI_UART_CTS_GPIO_NUM
+
+	arg FUN_UART_CONTROL_ENABLE|FUN_UART_CONTROL_SETTING_RATE_BAUD,temp
+	fetch 2,mem_module_flag
+	isolate1 MODULE_FLAG_UART_FLOW_CONTROL,pdata
+	setflag true,BIT_UART_CONTROL_FLOW_CONTROL,temp
+	storet 1,core_uart_ctrl
+	rtn
+
+/*
+	function:init uart & spp clock by lpm wake
+*/
+module_lpm_init:
+	call module_spp_clear_last_transmite_clock
+	branch module_lpm_uart_init
+
+
+
+/*
+	function name:module_gpio_init
+	init connect state & lpm wake up
+*/
+module_gpio_init:
+	fetcht 1,mem_module_connect_state_gpio
+	call gpio_config_output
+	call module_set_conn_pin_low
+	fetcht 1,mem_module_wake_up_gpio
+	branch gpio_config_input
+
+module_lpm_lock:
+	fetcht 1,mem_module_wake_up_gpio
+	call gpio_get_bit
+	nbranch app_put_lpm_wake_lock,true
+	branch app_get_lpm_wake_lock
+
+
+/*
+	function name:BT connect process callback
+	check sniff timer & check uart Tx buffer from SPP Credit
+*/
+module_bt_conn_process:
+	call module_spp_enter_sniff
+	branch module_control_air_flow
+
+module_spp_enter_sniff:
+	fetch 1,mem_ui_state_map
+	bbit0 UI_STATE_BT_SPP_CONN,module_spp_clear_last_transmite_clock
+	setarg 0x3eff
+	fetcht 4,mem_last_transmite_clock
+	iadd temp,temp
+	copy clkn_bt,pdata
+	isub temp,null
+	nrtn positive
+	fetch 2,mem_ui_state_map
+	bbit1 UI_STATE_BT_SNIFF,module_spp_clear_last_transmite_clock
+	fetch 2,mem_module_flag
+	rtnbit1 MOUDLE_TASK_SNIFF
+	call module_set_sniff_task_flag
+	call app_bt_enter_sniff
+module_spp_clear_last_transmite_clock:
+	copy clkn_bt,pdata
+	store 4,mem_last_transmite_clock
+	rtn
+
+/*
+	function name:chip idle process callback
+	check uart Tx buffer from SPP Credit&check l2cap fifo&check uart rx data
+*/
+module_process_idle:
+	call module_control_air_flow
+	call l2cap_malloc_is_fifo_full
+	nrtn blank
+	branch module_process_check_hci_command_complete
+
+	
+module_process_bb_event:
+	copy regc,pdata
+	beq BT_EVT_BB_CONNECTED,module_process_bb_conn
+	beq BT_EVT_BB_DISCONNECTED,module_process_bb_event_disconned
+	beq BT_EVT_RECONN_FAILED,module_process_reconn_fail
+	beq BT_EVT_SETUP_COMPLETE,module_process_setup_complete
+	beq BT_EVT_SPP_CONNECTED,module_process_spp_connected
+	beq BT_EVT_SPP_DISCONNECTED,module_process_spp_disconnected
+	beq BT_EVT_PINCODE_REQ,module_process_evt_pincode_req
+	beq BT_EVT_ENTER_SNIFF,module_process_enter_sniff
+	beq BT_EVT_EXIT_SNIFF,module_process_exit_sniff
+	beq BT_EVT_RECONN_PAGE_TIMEOUT,module_process_page_time_out
+	beq BT_EVT_LE_CONNECTED,module_process_le_conn
+	beq BT_EVT_LE_DISCONNECTED,module_process_bb_even_le_disconn
+	beq BT_EVT_SNIFF_NOT_ACCEPT,module_process_sniff_not_accept
+	beq BT_EVT_UNSNIFF_ACCEPT,module_process_unsniff_accept
+	beq BT_EVT_UNSNIFF_NOT_ACCEPT,module_process_unsniff_not_accept
+	beq BT_EVT_LE_PAIRING_FAIL,module_hci_event_le_pairing_fail
+	beq BT_EVT_LE_PAIRING_SUCCESS,module_hci_event_le_pairing_success
+	beq BT_EVT_LE_START_ENC,module_hci_event_start_enc
+	beq BT_EVT_LE_PAUSE_ENC,module_hci_event_pause_enc
+	beq BT_EVT_LE_TK_GENERATE,module_hci_event_le_tk
+	beq BT_EVT_BT_GKEY_GENERATE,module_hci_event_gkey_generate
+	beq BT_EVT_BT_GET_PASSKEY,module_hci_event_passkey_entry_mode
+	beq BT_EVT_BT_PAIRING_FAIL,module_hci_event_bt_pairing_fail	
+	beq BT_EVT_BT_PAIRING_SUCCESS,module_hci_event_bt_pairing_success
+ifdef SECURE_CONNECTION	
+	beq BT_EVT_LE_GKEY_GENERATE,module_hci_event_gkey_generate
+endif
+	beq BT_EVT_STORE_NVRAM,module_hci_event_store_device
+	beq BT_EVT_LE_LTK_LOST,module_process_ble_ltk_lost
+	beq BT_EVT_LE_UPDATE_PHY,module_process_ble_update_phy
+	beq BT_EVT_LE_GET_PASSKEY,module_hci_event_passkey_entry_mode
+	rtn
+
+	
+module_process_bb_event_disconned:
+	call module_spp_clear_last_transmite_clock
+	fetch 1,mem_flag_pairing_state
+	ncall module_hci_event_bt_pairing_fail,blank
+	call module_disconn_start
+	fetch 2,mem_ui_state_map
+	rtnbit0 UI_STATE_BT_SPP_CONN
+	branch  module_spp_disconnected
+
+module_process_spp_connected:
+	fetch 2,mem_ui_state_map
+	set1 UI_STATE_BT_SPP_CONN,pdata
+	store 2,mem_ui_state_map
+	fetch 1,mem_module_spp_lpm_mult
+	store 1,mem_lpm_mult
+	call module_set_conn_pin_low
+	branch module_hci_event_spp_connect
+
+module_process_spp_disconnected:
+//	branch module_spp_disconnected
+module_spp_disconnected:
+	fetch 2,mem_ui_state_map
+	rtnbit0 UI_STATE_BT_SPP_CONN
+	set0 UI_STATE_BT_SPP_CONN ,pdata
+	store 2,mem_ui_state_map
+	branch module_hci_event_spp_disconnect
+
+
+module_process_enter_sniff:
+
+module_sniff_param_check:
+	call module_spp_clear_last_transmite_clock
+	//fetch 1,mem_context
+	//rtnbit0 state_insniff
+	fetch 2,mem_context+coffset_tsniff
+	rshift pdata,pdata
+	fetcht 2,mem_sniff_param_interval
+	isub temp,null
+	nbranch module_sniff_param_check_unsniff,zero
+	branch app_lpm_mult_enable
+module_sniff_param_check_unsniff:
+	fetch 2,mem_module_flag
+	rtnbit1 MOUDLE_TASK_UNSNIFF
+	fetch 2,core_uart_rxitems    //*
+	ncall module_set_unsniff_task_flag,blank    //*加这两句话
+	branch app_bt_sniff_exit
+
+module_process_exit_sniff:
+	call module_clear_sniff_task_flag
+	branch app_lpm_mult_disable
+ 	
+module_process_setup_complete:
+	call module_spp_clear_last_transmite_clock
+	branch module_conn_start
+	
+module_process_bb_even_le_disconn:
+	call le_clr_config_more_data
+	jam 0,mem_module_hci_notify_len
+	call module_disconn_start
+	branch module_hci_event_le_disconnect
+
+module_process_evt_pincode_req:
+	branch  app_bt_set_pincode
+	
+
+module_process_sniff_not_accept:
+	branch module_clear_sniff_task_flag
+
+
+module_process_unsniff_accept:
+	fetch 2,mem_module_flag
+	bbit0 MOUDLE_TASK_UNSNIFF,app_bt_enter_sniff
+	branch module_clear_unsniff_task_flag
+
+	
+module_process_unsniff_not_accept:
+	branch module_clear_unsniff_task_flag
+
+	
+module_process_le_conn:
+//	call le_send_att_exchange_mtu_requset
+	call module_conn_start
+	fetch 1,mem_module_le_lpm_mult
+	store 1,mem_lpm_mult
+	branch module_hci_event_le_connect
+
+
+module_process_bb_conn:
+	jam 0,mem_flag_mode_ssp_pin
+	call module_clear_sniff_task_flag
+	branch module_clear_unsniff_task_flag
+
+module_process_page_time_out:
+module_process_reconn_fail:
+module_disconn_start:
+	call module_start_adv_discovery_by_command
+	branch module_set_conn_pin_high
+
+
+module_process_ble_ltk_lost:
+	call le_send_reject_ind
+	branch le_send_smp_security_request
+
+module_process_ble_update_phy:
+	branch module_hci_event_le_update_phy
+
+
+module_set_conn_pin_high:
+	fetcht 1,mem_module_connect_state_gpio
+	branch gpio_out_active
+
+module_conn_start:
+	call module_stop_adv_discovery
+	branch module_set_conn_pin_low
+	
+module_stop_adv_discovery:
+	fetch 1,mem_module_state
+	isolate1 MOUDLE_STATE_BT_BIT,pdata
+	call app_bt_stop_discovery,true
+	fetch 1,mem_module_state
+	isolate1 MOUDLE_STATE_BLE_BIT,pdata
+	call app_ble_stop_adv,true
+	rtn
+module_set_conn_pin_low:
+	fetcht 1,mem_module_connect_state_gpio
+	branch gpio_out_inactive
+
+module_process_with_credit:
+	fetch 1,mem_rfcomm_credit_flag
+	rtneq CREDIT_DISABLE
+	branch rfcomm_send_uih_without_payload
+
+/*
+	function name:check hci command complete
+	hci command format:
+	typedef struct HciFormat
+	{
+		uint8_t HciType;
+		uint8_t HciOpcode;
+		uint8_t HciPayloadLen;
+		uint8_t HciPayload[HciPayloadLen];
+	}
+*/
+module_process_check_hci_command_complete:
+	fetch 1,core_uart_status
+	bbit1 UART_STATUS_RX_FIFO_EMPTY,module_process_with_credit  //rx no data
+	call uarta_prepare_rx
+	ifetch 1,contru
+	bne 0x01,module_hci_in_excp	//HciType != 0x01
+	fetch 2,core_uart_rxitems
+	sub pdata,2,null
+	rtn positive
+	ifetch 1,contru
+	store 1,mem_module_uart_opcode
+	ifetcht 1,contru
+	copy contru,rega
+	storet 1,mem_module_uart_len
+	add temp,3,temp
+	fetch 2,core_uart_rxitems
+	isub temp,temp
+	nrtn positive
+	jam HCI_DISCARD_PACKET,mem_module_temp_nl_discard_packet
+	call module_hci_cmd_control
+	fetch 1,mem_module_temp_nl_discard_packet
+	rtneq HCI_NOT_DISCARD_PACKET
+	branch module_hci_dicard_packet //discard this packet
+
+module_hci_in_excp:
+	call delay_10ms
+	call module_hci_event_invalid_packet
+	branch module_hci_release_except
+
+
+module_hci_release_except:
+	bpatch patch18_7,mem_patch18
+	call uarta_prepare_rx
+	fetch 2,core_uart_rxitems
+	rtn blank
+	iadd contru,contru
+	branch module_hci_dicard_bytes
+
+module_hci_dicard_packet:
+	call uarta_prepare_rx
+	increase 2,contu
+	ifetch 1,contu
+	iadd contu,contu
+module_hci_dicard_bytes:
+	branch uarta_rxdone
+	
+/*********************HCI CONTROL*********************/
+module_hci_cmd_control:
+	bpatch patch19_0,mem_patch19
+	fetch 1,mem_module_uart_opcode
+	beq HCI_CMD_SET_BT_ADDR_REQ,module_hci_cmd_set_bt_addr
+	beq HCI_CMD_SET_LE_ADDR_REQ,module_hci_cmd_set_le_addr
+	beq HCI_CMD_SET_VISIBILITY_REQ,module_hci_cmd_set_visibility	
+	beq HCI_CMD_SET_BT_NAME_REQ,module_hci_cmd_set_bt_name
+	beq HCI_CMD_SET_LE_NAME_REQ,module_hci_cmd_set_le_name
+	beq HCI_CMD_SPP_DATA_REQ,module_hci_cmd_receive_spp_data
+	beq HCI_CMD_LE_DATA_REQ,module_hci_cmd_receive_le_data
+	beq HCI_CMD_STATUS_IRQ,module_hci_cmd_inquire_status
+	beq HCI_CMD_SET_PAIRING_REQ,module_hci_cmd_set_pairing_mode
+	beq HCI_CMD_SET_PINCODE_REQ,module_hci_cmd_set_pincode	
+	beq HCI_CMD_SET_UARTCONTROL_REQ,module_hci_cmd_set_uart_control_mode
+	beq HCI_CMD_SET_UART_BAUD_REQ,module_hci_cmd_set_uart_baud
+	beq HCI_CMD_VERSION_REQ,module_hci_cmd_version_request
+	beq HCI_CMD_BT_DISCONNECT,module_hci_cmd_bt_disconnect
+	beq HCI_CMD_BLE_DISCONNECT,module_hci_cmd_ble_disconnect
+	beq HCI_CMD_SET_COD,module_hci_cmd_set_cod
+	beq HCI_CMD_SET_NVRAM_REQ,module_hci_cmd_set_nvram
+	beq HCI_CMD_CONFIRM_GKEY,module_hci_cmd_confirm_gkey
+	beq HCI_CMD_SET_CREDIT_GIVEN,module_hci_cmd_set_credit_given
+	beq HCI_CMD_AUTO_ADV_SCAN,module_hci_cmd_auto_adv
+	beq HCI_CMD_POWER_REQ,module_hci_cmd_power_request
+	beq HCI_CMD_POWER_SET,module_hci_cmd_power_set
+	beq HCI_CMD_PASSKEY_ENTRY,module_hci_cmd_passkey_entry
+	beq HCI_CMD_SET_GPIO,module_hci_cmd_set_gpio
+	beq HCI_CMD_READ_GPIO,module_hci_cmd_read_gpio
+	beq HCI_CMD_LE_SET_PAIRING,module_hci_cmd_le_set_pairing_mode
+	beq HCI_CMD_LE_SET_ADV_DATA,module_hci_cmd_le_set_adv_data
+	beq HCI_CMD_LE_SET_SCAN_DATA,module_hci_cmd_le_set_scan_data
+	beq HCI_CMD_LE_SEND_CONN_UPDATE_REQ,module_hci_cmd_le_send_conn_update_req
+	beq HCI_CMD_LE_SET_ADV_PARM,module_hci_cmd_set_le_adv_parameter
+	beq HCI_CMD_LE_START_PAIRING,module_hci_cmd_le_start_pairing
+	beq HCI_CMD_SET_WAKE_GPIO,module_hci_cmd_set_wake_gpio
+	beq HCI_CMD_SET_TX_POWER,module_hci_cmd_set_tx_power
+	beq HCI_CMD_LE_CONFIRM_GKEY,module_hci_cmd_le_confirm_gkey
+	beq HCI_CMD_REJECT_JUSTWORK,module_hci_cmd_set_reject_justwork_flag
+	beq HCI_CMD_RESET_CHIP_REQ,module_hci_cmd_reset_chip
+	beq HCI_CMD_LE_SET_FIXED_PASSKEY,module_hci_cmd_le_set_fixed_passkey
+	beq HCI_CMD_DELETE_CUSTOMIZE_SERVICE,module_hci_cmd_delete_customize_service
+	beq HCI_CMD_ADD_SERVICE_UUID,module_hci_cmd_add_service_uuid
+	beq HCI_CMD_ADD_CHARACTERISTIC_UUID,module_hci_cmd_add_characteristic_uuid
+	beq HCI_CMD_PASSKEY_ENTRY_INPUT,module_hci_cmd_le_passkey_entry_input
+	beq HCI_CMD_BLE_SET_PHY,module_hci_cmd_ble_set_phy
+	beq HCI_CMD_BLE_READ_CURRENT_PHY,module_hci_cmd_ble_read_current_phy
+	beq HCI_CMD_BLE_SET_DLE,module_hci_cmd_ble_set_dle
+	beq HCI_CMD_READ_CHIP_DATA,module_hci_cmd_read_chip_data
+	beq HCI_CMD_WRITE_CHIP_DATA,module_hci_cmd_write_chip_data
+	beq HCI_CMD_WECHAT_SEND_DATA,module_hci_cmd_wechat_send_data
+	beq HCI_CMD_CLOSE_LPM,module_hci_cmd_close_lpm
+	branch  module_hci_event_receive_invalid_cmd
+
+/*********************HCI COMMAND*********************/
+
+//command opcode 0x00
+module_hci_cmd_set_bt_addr:
+	fetch 1,mem_module_uart_len
+	bne 6,module_hci_event_receive_invalid_cmd
+	ifetch 6,contru
+	store 6,mem_lap
+	branch module_hci_event_receive_valid_cmd
+
+//command opcode 0x01
+module_hci_cmd_set_le_addr:
+	fetch 1,mem_module_uart_len
+	bne 6,module_hci_event_receive_invalid_cmd
+	ifetch 6,contru
+	store 6,mem_le_lap
+	branch module_hci_event_receive_valid_cmd
+
+
+//command opcode 0x02
+module_hci_cmd_set_visibility:
+	fetch 1,mem_module_uart_len
+	bne 1,module_hci_event_receive_invalid_cmd
+	ifetcht 1,contru
+	storet 1,mem_module_bluetooth_stauts_by_command
+	call module_hci_event_receive_valid_cmd
+	fetch 2,mem_ui_state_map
+	rtnbit1 UI_STATE_BLE_CONNECTED
+	rtnbit1 UI_STATE_BT_CONNECTED
+module_start_adv_discovery_by_command:
+	fetch 1,mem_module_state
+	isolate1 MOUDLE_STATE_BT_BIT,pdata
+	nbranch moudle_start_adv_by_command,true
+	fetcht 1,mem_module_bluetooth_stauts_by_command
+	and temp,0x03,pdata
+	store 1,mem_scan_mode
+moudle_start_adv_by_command:
+	fetch 1,mem_module_state
+	isolate1 MOUDLE_STATE_BLE_BIT,pdata
+	nrtn true
+	fetcht 1,mem_module_bluetooth_stauts_by_command
+	isolate1 2,temp
+	branch app_ble_start_adv,true
+	branch app_ble_stop_adv
+
+
+//command opcode 0x03
+module_hci_cmd_set_bt_name:
+	fetch 1,mem_module_uart_len
+	sub pdata,67,null
+	nbranch module_hci_event_receive_invalid_cmd,positive
+	store 1,mem_local_name_length
+	arg 8,loopcnt
+	call memset0
+	fetchr loopcnt,1,mem_module_uart_len
+	arg mem_local_name,contw
+	call uart_copy_rx_bytes_fast
+	branch module_hci_event_receive_valid_cmd
+
+
+//command opcode 0x04
+module_hci_cmd_set_le_name:
+	arg 31,pdata
+	arg mem_le_name_len,contw
+	call module_hci_cmd_receive_store_mem
+	branch le_modified_name
+
+
+//command opcode 0x05
+module_hci_cmd_receive_spp_data:
+	fetch 1,mem_ui_state_map
+	bbit0 UI_STATE_BT_SPP_CONN,module_hci_event_receive_invalid_cmd
+	call app_check_sniff
+	branch module_hci_cmd_spp_exit_sniff,true
+	jam HCI_NOT_DISCARD_PACKET,mem_module_temp_nl_discard_packet
+	call module_spp_clear_last_transmite_clock
+	fetch 1,mem_remote_credits
+	rtn blank
+	fetch 2,mem_nl_rx_len_all
+	nbranch module_hci_cmd_pass_init_ng_rx_len_all,blank
+	fetch 1,mem_module_uart_len
+	store 2,mem_nl_rx_len_all
+
+	store 2,mem_nl_rx_data_src
+	storer contru,2,mem_nl_rx_data_src
+module_hci_cmd_pass_init_ng_rx_len_all:
+	call module_hci_cmd_get_current_packet_len_and_remain_len
+	branch spp_tx_rfcomm_packet
+	
+module_hci_cmd_spp_exit_sniff:
+	jam HCI_NOT_DISCARD_PACKET,mem_module_temp_nl_discard_packet
+	branch module_exit_sniff
+
+module_hci_cmd_get_current_packet_len_and_remain_len:
+	call module_hci_cmd_get_current_patcket_len
+	fetch 2,mem_nl_rx_len_all
+	fetcht 2,mem_current_packet_length
+	isub temp,pdata
+	store 2,mem_nl_rx_len_all
+	rtn
+
+module_hci_cmd_get_current_patcket_len:
+	fetch 2,mem_nl_rx_len_all
+	fetcht 2,mem_rfcomm_max_frame_size	//接收最大能力?
+	call not_greater_than
+	fetcht 2,mem_pn_max_frame_size		//发送最大能力?
+	call not_greater_than
+	store 2,mem_current_packet_length
+	rtn
+
+module_hci_command_tx_spp_tx_complete:
+	jam HCI_DISCARD_PACKET,mem_module_temp_nl_discard_packet
+	jam HCI_CMD_SPP_DATA_REQ,mem_module_uart_opcode
+	branch module_hci_event_receive_valid_cmd
+
+
+//command opcode 0x09
+module_hci_cmd_receive_le_data:
+	fetch 2,mem_ui_state_map
+	bbit0 UI_STATE_BLE_CONNECTED,module_hci_event_receive_invalid_cmd
+	call module_check_ble_encrypt_state
+	branch module_hci_event_receive_invalid_cmd,user
+	jam HCI_NOT_DISCARD_PACKET,mem_module_temp_nl_discard_packet 
+	fetch 2,mem_module_flag
+	bbit1 MODULE_FLAG_BLE_DATA_FINISH,module_hci_cmd_receive_le_data_finish
+	fetch 1,mem_module_hci_notify_len
+	nrtn blank
+	jam HCI_DISCARD_PACKET,mem_module_temp_nl_discard_packet 
+	ifetch 2,contru		//handle
+	store 2,mem_module_hci_notify_handle
+	storer contru,2,mem_module_hci_nofiy_addr
+	fetch 1,mem_module_uart_len
+	pincrease -2
+	nbranch module_hci_event_receive_invalid_cmd,positive
+	branch module_hci_event_receive_invalid_cmd,zero
+	store 1,mem_module_hci_notify_len
+	fetcht 2,mem_module_hci_notify_handle
+	increase -1,temp
+	call le_att_get_handle_ptr2
+	branch module_hci_cmd_transmit_handle_error,blank
+	ifetcht 4,contr		//flag
+	setarg 0x01280302
+	isub temp,null
+	nbranch module_hci_cmd_transmit_handle_error,zero
+	ifetch 1,contr
+	store 1,mem_module_hci_notify_type
+	and_into 0x30,pdata
+	branch module_hci_cmd_transmit_handle_error,blank
+	jam HCI_NOT_DISCARD_PACKET,mem_module_temp_nl_discard_packet
+	call le_set_config_more_data
+	call module_hci_cmd_transmit_le_notify
+	call module_hci_cmd_transmit_le_notify
+	call module_hci_cmd_transmit_le_notify
+	fetch 2,mem_module_flag
+	rtnbit0 MODULE_FLAG_BLE_DATA_FINISH
+module_hci_cmd_receive_le_data_finish:
+	jam HCI_DISCARD_PACKET,mem_module_temp_nl_discard_packet 
+	call module_clear_le_tx_data_flag
+	branch module_hci_event_receive_valid_cmd
+
+module_hci_cmd_transmit_handle_error:
+	jam 0,mem_module_hci_notify_len
+	jam HCI_DISCARD_PACKET,mem_module_temp_nl_discard_packet 
+	call module_clear_le_tx_data_flag
+	branch module_hci_event_receive_invalid_cmd
+
+module_hci_cmd_transmit_le_notify:
+	fetch 1,mem_module_hci_notify_len
+	rtn blank
+	call le_fifo_check_nearly_full
+	nrtn blank				//no fifo
+	call module_get_le_remote_mtu
+	bpatch patch19_1,mem_patch19
+	fetch 1,mem_le_l2cap_att_states
+	rtnbit1 BLE_L2CAP_RECV_CONFIRMATION_PACKET
+	add temp,-3,pdata		//sub handle and opcode
+	arg 251,temp
+	call not_greater_than
+	fetcht 1,mem_module_hci_notify_len
+	call not_greater_than
+	copy pdata,rega
+	copy temp,pdata
+	isub rega,pdata
+	store 1,mem_module_hci_notify_len
+	call module_hci_cmd_transmit_le_notify_malloc_l2cap
+	fetch 2,mem_module_hci_nofiy_addr
+	copy pdata,contru
+	copy rega,loopcnt
+	call uart_copy_rx_bytes_fast
+	copy contru,pdata
+	store 2,mem_module_hci_nofiy_addr
+	fetch 1,mem_module_hci_notify_len
+	nrtn blank
+	branch module_set_le_tx_data_flag
+
+module_hci_cmd_transmit_le_notify_malloc_l2cap:
+	fetcht 2,mem_module_hci_notify_handle
+	fetch 1,mem_module_hci_notify_type
+	bbit1 BIT_CHARACTERISTIC_INDICATE,le_att_malloc_tx_indication
+	bbit1 BIT_CHARACTERISTIC_NOTIFY,le_att_malloc_tx_notify
+	rtn
+
+
+//output: temp is master mtu
+module_get_le_remote_mtu:
+	arg 0x17,temp
+	fetch 2,mem_module_flag
+	rtnbit1 MODULE_FLAG_BLE_SEND_MTU23
+	fetcht 2,mem_le_remote_mtu
+	rtn
+
+module_check_ble_encrypt_state:
+	fetch 2,mem_module_flag
+	bbit1 MODULE_FLAG_BLE_DATA_ENCRYPT,le_check_encrypt_state
+	branch disable_user
+	
+
+//command opcode 0x0b
+module_hci_cmd_inquire_status:
+	branch module_hci_event_status_res
+
+
+//command opcode 0x0c
+module_hci_cmd_set_pairing_mode:
+	ifetch 1,contru
+	beq BR_PAIRING_MODE_SECURE_CONNECT_JUSTWORK,module_hci_pairing_just_work_sc
+	beq BR_PAIRING_MODE_SECURE_CONNECT_PASSKEY,module_hci_pairing_passkey_sc
+	beq BR_PAIRING_MODE_SECURE_CONNECT_NUMERIC,module_hci_pairing_numeric_comparison_sc
+
+	copy pdata,rega
+	call sp_br_secure_connection_disable
+	call sc_reset
+	copy rega,pdata
+	beq BR_PAIRING_MODE_PINCODE,module_hci_pairing_pincode_mode
+	beq BR_PAIRING_MODE_JUSTWORK,module_hci_pairing_just_work_mode
+	beq BR_PAIRING_MODE_PASSKEY,module_hci_pairing_passkey
+	beq BR_PAIRING_MODE_NUMERIC,module_hci_pairing_numeric_comparison
+	branch module_hci_event_receive_invalid_cmd
+
+module_hci_pairing_just_work_sc:
+	call sp_br_secure_connection_enable
+	branch module_hci_pairing_just_work_mode
+	
+module_hci_pairing_passkey_sc:
+	call sp_br_secure_connection_enable
+	branch module_hci_pairing_passkey
+
+module_hci_pairing_numeric_comparison_sc:
+	call sp_br_secure_connection_enable
+	branch module_hci_pairing_numeric_comparison
+	
+module_hci_pairing_pincode_mode:
+	call sp_reset
+	jam 0,mem_ssp_enable
+	branch module_hci_event_receive_valid_cmd
+	
+module_hci_pairing_just_work_mode:
+	setarg IO_CAPABILITY_NO_INPUT_NO_OUTPUT
+module_hci_sspairing_mode:
+	store 1,mem_ssp_mode_flag
+	store 1,mem_lmp_io_cap_payload_iocap
+	setarg OOB_DATA_PRESENT_NOT_PRESENT
+	store 1,mem_lmp_io_cap_payload_oob_auth_data
+	setarg AUTH_REQ_MITM_PROTECTION_NOT_REQUIRED_GENERAL_BONDING
+	store 1,mem_lmp_io_cap_payload_auth_req
+	call ssp_enable
+	jam 1,mem_ssp_enable
+	branch module_hci_event_receive_valid_cmd
+module_hci_pairing_passkey:
+	setarg IO_CAPABILITY_KEYBOARD_ONLY
+	branch module_hci_sspairing_mode
+
+module_hci_pairing_numeric_comparison:
+	setarg IO_CAPABILITY_DISPLAY_YESNO
+	branch module_hci_sspairing_mode
+
+
+//command opcode 0x0d
+module_hci_cmd_set_pincode:
+	arg 16,pdata
+	arg mem_pin_length,contw
+	branch module_hci_cmd_receive_store_mem
+
+
+//command opcode 0x0e
+module_hci_cmd_set_uart_control_mode:
+	ifetch 1,contru
+	fetcht 1,mem_module_flag
+	nsetflag blank,MODULE_FLAG_UART_FLOW_CONTROL,temp
+	storet 1,mem_module_flag
+	fetcht 1,core_uart_ctrl
+	nsetflag blank,BIT_UART_CONTROL_FLOW_CONTROL,temp
+	storet 1,core_uart_ctrl
+ 	branch module_hci_event_receive_valid_cmd
+
+ 	
+//command opcode 0x0f
+module_hci_cmd_set_uart_baud:
+	fetchr loopcnt,1,mem_module_uart_len
+	call string2dec_from_uart
+	call uart_calc_baud_rate_config
+	store uart_baud_len,mem_module_uarta_baud_rate
+	call module_hci_event_receive_valid_cmd
+	call wait_uarttx
+	fetch uart_baud_len,mem_module_uarta_baud_rate
+	branch uarta_init_baud_rate
+
+
+//command opcode 0x10
+module_hci_cmd_version_request:
+	arg 2,rega
+	arg mem_soft_version_num,regb
+	arg 0,temp
+	branch module_hci_event_set_cmd
+
+
+//command opcode 0x11
+module_hci_cmd_bt_disconnect:
+	fetch 2,mem_ui_state_map
+	bbit0 UI_STATE_BT_CONNECTED,module_hci_event_receive_invalid_cmd
+module_hci_cmd_bt_disconnect_doing:
+	call module_hci_event_receive_valid_cmd
+	branch app_bt_disconnect
+
+	
+//command opcode 0x12
+module_hci_cmd_ble_disconnect:
+	fetch 2,mem_ui_state_map
+	bbit0 UI_STATE_BLE_CONNECTED,module_hci_event_receive_invalid_cmd
+module_hci_cmd_ble_disconnect_doing:
+	call module_hci_event_receive_valid_cmd
+	branch app_ble_disconnect
+
+
+//command opcode 0x15
+module_hci_cmd_set_cod:
+	fetch 1,mem_module_uart_len
+	bne 3,module_hci_event_receive_invalid_cmd
+	ifetch 3,contru
+	store 3,mem_class
+	branch module_hci_event_receive_valid_cmd
+	
+
+//command opcode 0x26
+module_hci_cmd_set_nvram:
+	fetchr loopcnt,1,mem_module_uart_len
+	fetch 2,mem_nv_data_ptr
+	icopy contw
+	call uart_copy_rx_bytes_fast
+	branch module_hci_event_receive_valid_cmd
+
+
+//command opcode 0x28
+module_hci_cmd_confirm_gkey:
+	fetch 2,mem_ui_state_map
+	bbit1 UI_STATE_BLE_CONNECTED,module_hci_cmd_le_confirm_gkey
+	bbit0 UI_STATE_BT_CONNECTED,module_hci_event_receive_invalid_cmd	
+	ifetch 1,contru
+	fetcht 1,mem_flag_mode_ssp_pin
+	setflag blank,FLAG_MODE_SSP_PIN_COMPARISON_RESULT_BIT,temp
+	set1 FLAG_MODE_SSP_PIN_REVICEVE_COMPARISON_BIT ,temp
+	storet 1,mem_flag_mode_ssp_pin
+
+	call module_hci_event_receive_valid_cmd
+
+	fetch 1,mem_flag_mode_ssp_pin
+	bbit1 FLAG_MODE_SSP_PIN_RECIEVE_DHKEY_BIT,module_hci_cmd_spp_number_comparison_result_is1
+	rtn
+
+module_hci_cmd_spp_number_comparison_result_is1:
+	bbit1 FLAG_MODE_SSP_PIN_COMPARISON_RESULT_BIT,number_comparison_successed
+	jam 0,mem_flag_mode_ssp_pin
+	jam BT_CMD_DHKEY_NOT_ACCEPT,mem_fifo_temp
+	branch ui_ipc_send_cmd
+
+
+//command opcode 0x29
+module_hci_cmd_set_credit_given:
+	fetch 1,mem_ui_state_map
+	rtnbit0 UI_STATE_BT_SPP_CONN
+	fetch 1,mem_rfcomm_credit_flag
+	rtneq CREDIT_DISABLE
+	ifetch 1,contru
+	fetcht 1,mem_credit_given
+	iadd temp,temp
+	storet 1,mem_credit_given
+	rtn
+
+
+//command opcode 0x2a
+module_hci_cmd_auto_adv:
+	arg 0x40,loopcnt
+	arg mem_le_adv_data_len,contw
+	call clear_mem
+	setarg 0
+	store 1,mem_regb
+	copy rega,contru
+module_hci_cmd_auto_adv_loop:
+	copy contru,pdata
+	store 2,mem_regc
+	call module_hci_cmd_auto_adv_adv_analys
+
+	fetch 1,mem_regb
+	fetcht 1,mem_temp
+	increase 1,temp
+	iadd temp,pdata
+	store 1,mem_regb
+
+	sub pdata,31,null
+	nbranch module_hci_cmd_auto_adv_store_scan,positive
+module_hci_cmd_auto_adv_store_adv:
+	fetcht 1,mem_le_adv_data_len
+	setarg mem_le_adv_data
+	iadd temp,pdata
+	store 2,mem_contw
+	fetcht 1,mem_temp
+	increase 1,temp
+	fetch 1,mem_le_adv_data_len
+	iadd temp,pdata
+	store 1,mem_le_adv_data_len
+	branch module_hci_cmd_auto_adv_store_common
+module_hci_cmd_auto_adv_store_scan:
+	fetcht 1,mem_le_scan_data_len
+	setarg mem_le_scan_data
+	iadd temp,pdata
+	store 2,mem_contw
+	fetcht 1,mem_temp
+	increase 1,temp
+	fetch 1,mem_le_scan_data_len
+	iadd temp,pdata
+	store 1,mem_le_scan_data_len
+module_hci_cmd_auto_adv_store_common:
+	fetch 2,mem_contw
+	copy pdata,contw
+	fetch 2,mem_regc
+	copy pdata,contru
+
+	copy temp,loopcnt
+	call uart_copy_rx_bytes_fast
+
+	fetch 1,mem_module_uart_len
+	fetcht 1,mem_regb
+	isub temp,null
+	nbranch  module_hci_cmd_auto_adv_loop,zero
+	branch module_hci_event_receive_valid_cmd
+
+//block of adv len in mem_temp
+module_hci_cmd_auto_adv_adv_analys:
+	ifetch 1,contru
+	store 1,mem_temp
+	ifetch 1,contru
+	store 1,mem_rega
+	rtn
+
+
+//command opcode 0x2b
+module_hci_cmd_power_request:
+	arg 0,temp
+	arg 2,rega
+	fetch 2,mem_module_vdd_quotient
+	store 2,mem_event_cmd_response_content
+	arg mem_event_cmd_response_content,regb
+	branch module_hci_event_set_cmd
+
+
+//command opcode 0x2c
+module_hci_cmd_power_set:
+	fetch 1,mem_module_uart_len
+	bne 1,module_hci_event_receive_invalid_cmd
+	ifetch 1,contru
+	store 1,mem_module_read_vdd_flag
+	setarg 0x00
+	store 2,mem_module_vdd_quotient
+	branch module_hci_event_receive_valid_cmd
+
+
+//command opcode 0x30
+module_hci_cmd_passkey_entry:
+	fetch 1,mem_module_uart_len
+	bne 4,module_hci_event_receive_invalid_cmd
+	fetch 2,mem_ui_state_map
+	bbit1 UI_STATE_BLE_CONNECTED,module_hci_cmd_le_passkey_entry_input
+	ifetch 4,contru
+	store 4,mem_pin
+	jam 4,mem_pin_length
+	jam 0,mem_authentication_passkey_times
+	call module_hci_event_receive_valid_cmd
+	branch authentication_passkey
+
+
+//command opcode 0x31
+module_hci_cmd_set_gpio:
+	fetch 1,mem_module_uart_len
+	bne 3,module_hci_event_receive_invalid_cmd
+	ifetch 1,contru
+	beq HCI_CMD_CONFIG_GPIO_INPUT,module_set_gpio_input
+	beq HCI_CMD_CONFIG_GPIO_OUTPUT,module_set_gpio_output
+	branch module_hci_event_receive_invalid_cmd
+
+module_set_gpio_input:
+	call module_hci_event_receive_valid_cmd
+	ifetcht 1,contru
+	ifetch 1,contru
+	beq GPIO_INPUT_HIGH_IMPEDANCE,gpio_set_high_impedance
+	nsetflag blank,7,temp
+	branch gpio_config_input
+
+module_set_gpio_output:
+	call module_hci_event_receive_valid_cmd
+	ifetcht 1,contru
+	ifetch 1,contru	
+	branch gpio_out_active,blank
+	branch gpio_out_inactive
+
+
+//command opcode 0x32
+module_hci_cmd_read_gpio:
+	fetch 1,mem_module_uart_len
+	bne 1,module_hci_event_receive_invalid_cmd
+	ifetcht 1,contru
+	call gpio_get_bit
+	setarg 0x0
+	nsetflag true,0,pdata
+	arg 1,rega
+	store 2,mem_event_cmd_response_content
+	arg mem_event_cmd_response_content,regb
+	arg 0,temp
+	branch module_hci_event_set_cmd
+
+
+//command opcode 0x33
+module_hci_cmd_le_set_pairing_mode:
+	ifetch 1,contru
+	copy pdata,temp
+ifdef SECURE_CONNECTION
+	beq LE_PAIRING_MODE_SECURE_CONNECT_JUSTWORK,module_le_set_pairing_mode_secure_justwork
+	beq LE_PAIRING_MODE_SECURE_CONNECT_NUMERIC,module_le_set_pairing_mode_secure_numeric
+	beq LE_PAIRING_MODE_SECURE_CONNECT_PASSKEY,module_le_set_pairing_mode_secure_passkey
+	beq LE_PAIRING_MODE_SECURE_CONNECT_PASSKEY_RES_INPUT,module_le_set_pairing_mode_secure_passkey_res_input
+endif
+	store 1,mem_le_pairing_mode
+	call sc_reset
+	call le_secure_connection_disable
+	fetch 1,mem_le_pairing_mode
+	beq LE_PAIRING_MODE_NONE, module_le_set_no_pairing
+	beq LE_PAIRING_MODE_LAGACY_JUSTWORK,module_le_set_pairing_mode_lagacy_just_work
+	beq LE_PAIRING_MODE_LAGACY_PASSKEY,module_le_set_pairing_mode_lagacy_passkey
+	beq LE_PAIRING_MODE_LAGACY_PASSKEY_RES_INPUT,module_le_set_pairing_mode_lagacy_passkey_res_input
+	branch module_hci_event_receive_invalid_cmd
+		
+ifdef SECURE_CONNECTION	
+module_le_set_pairing_mode_secure_justwork:
+	storet 1,mem_le_pairing_mode
+	call le_secure_connection_enable
+	jam FLAG_LE_BONDING_MITM_SECURE,mem_le_pres_auth
+	branch module_le_set_noinputnooutput
+module_le_set_pairing_mode_secure_numeric:
+	storet 1,mem_le_pairing_mode
+	call le_secure_connection_enable
+	jam FLAG_LE_BONDING_MITM_SECURE,mem_le_pres_auth
+	jam FLAG_IOCAP_DISPLAYYESNO,mem_le_pres_iocap
+	branch module_hci_event_receive_valid_cmd	
+module_le_set_pairing_mode_secure_passkey:	
+	storet 1,mem_le_pairing_mode
+	call le_secure_connection_enable
+	jam FLAG_LE_BONDING_MITM_SECURE,mem_le_pres_auth
+	branch module_le_set_displayonly
+module_le_set_pairing_mode_secure_passkey_res_input:
+	storet 1,mem_le_pairing_mode
+	call le_secure_connection_enable
+	jam FLAG_LE_BONDING_MITM_SECURE,mem_le_pres_auth
+	branch module_le_set_keboadonly
+
+endif
+
+module_le_set_no_pairing:
+	jam FLAG_LE_NO_BONDING_NO_MITM,mem_le_pres_auth
+module_le_set_noinputnooutput:	
+	jam FLAG_IOCAP_NOINPUTNOOUTPUT,mem_le_pres_iocap
+	branch module_hci_event_receive_valid_cmd	
+module_le_set_pairing_mode_lagacy_just_work:
+	jam FLAG_LE_BONDING_NO_MITM,mem_le_pres_auth
+	branch module_le_set_noinputnooutput
+module_le_set_pairing_mode_lagacy_passkey:
+	jam FLAG_LE_BONDING_MITM,mem_le_pres_auth
+	branch module_le_set_displayonly
+module_le_set_pairing_mode_lagacy_passkey_res_input:
+	jam FLAG_LE_BONDING_MITM,mem_le_pres_auth
+	branch module_le_set_keboadonly
+module_le_set_keboadonly:	
+	jam FLAG_IOCAP_KEYBOARDONLY,mem_le_pres_iocap
+	branch module_hci_event_receive_valid_cmd	
+module_le_set_displayonly:	
+	jam FLAG_IOCAP_DISPLAYONLY,mem_le_pres_iocap
+	branch module_hci_event_receive_valid_cmd	
+
+
+//command opcode 0x34
+module_hci_cmd_le_set_adv_data:
+	arg 31,pdata
+	arg mem_le_adv_data_len,contw
+	branch module_hci_cmd_receive_store_mem
+
+
+//command opcode 0x35
+module_hci_cmd_le_set_scan_data:
+	arg 31,pdata
+	arg mem_le_scan_data_len,contw
+	branch module_hci_cmd_receive_store_mem
+
+/*
+	input:contw is store mem ptr
+	pdata is max length
+*/
+module_hci_cmd_receive_store_mem:
+	fetchr loopcnt,1,mem_module_uart_len
+	isub loopcnt,null
+	nbranch module_hci_event_receive_invalid_cmd,positive
+	istorer loopcnt,1,contw
+	call uart_copy_rx_bytes_fast
+	branch module_hci_event_receive_valid_cmd	
+
+	
+//command opcode 0x36
+module_hci_cmd_le_send_conn_update_req:
+	fetch 2,mem_ui_state_map
+	bbit0 UI_STATE_BLE_CONNECTED,module_hci_event_receive_invalid_cmd
+	fetch 1,mem_module_uart_len
+	bne 0x08,module_hci_event_receive_invalid_cmd
+	ifetch 8,contru
+	store 8,mem_le_interval_min
+	jam BT_CMD_LE_UPDATE_CONN,mem_fifo_temp
+	call  ui_ipc_send_cmd
+	branch module_hci_event_receive_valid_cmd
+
+
+//command opcode 0x37
+module_hci_cmd_set_le_adv_parameter:
+	ifetch 2,contru
+	store 2,mem_le_adv_interval
+	branch module_hci_event_receive_valid_cmd
+	
+	
+//command opcode 0x38
+module_hci_cmd_le_start_pairing:
+	fetch 1,mem_le_pairing_mode
+	branch module_hci_event_receive_invalid_cmd,blank
+	fetch 1,mem_le_pairing_state
+	bne FLAG_LE_PAIRING_NULL,module_hci_event_receive_invalid_cmd
+	fetch 1,mem_le_enc_state
+	bne FLAG_LE_ENC_NULL,module_hci_event_receive_invalid_cmd
+	call check_51cmd_le_smp_sec_req
+	branch module_hci_event_receive_valid_cmd	
+
+
+//command opcode 0x40
+module_hci_cmd_set_wake_gpio:
+	fetch 1,mem_module_uart_len
+	bne 5,module_hci_event_receive_invalid_cmd
+	ifetch 1,contru
+	store 1,mem_module_mcu_wake_pin
+	ifetch 4,contru
+	store 4, mem_module_mcu_wake_delay_us
+	fetcht 1,mem_module_mcu_wake_pin
+	call gpio_config_output
+	call module_set_mcu_wake_pin_low
+	branch module_hci_event_receive_valid_cmd
+	
+
+//command opcode 0x42
+module_hci_cmd_set_tx_power:
+	fetch 1,mem_module_uart_len
+	bne 0x01,module_hci_event_receive_invalid_cmd
+	ifetch 1,contru
+	store 1,mem_tx_power
+	branch module_hci_event_receive_valid_cmd
+
+
+//command opcode 0x48
+module_hci_cmd_le_confirm_gkey:
+	ifetch 1,contru
+	beq 0x01,module_hci_cmd_le_confirm_gkey_fail
+	fetch 1,mem_le_secure_connect_state
+	beq LE_SC_STAT_SEND_PUBLIC_KEY,module_hci_cmd_le_confirm_gkey_ok
+	beq LE_SC_STAT_RECEIVE_DHKEY,module_hci_cmd_le_confirm_gkey_ok
+	beq LE_SC_STAT_WAIT_CONFIRM_GKEY,module_hci_cmd_le_confirm_gkey_ok
+	branch module_hci_event_receive_invalid_cmd		
+module_hci_cmd_le_confirm_gkey_ok:
+	jam FLAG_LE_SC_CONFRIM_GKEY_OK,mem_le_sc_confirm_gkey_flag
+	branch module_hci_event_receive_valid_cmd	
+	
+module_hci_cmd_le_confirm_gkey_fail:
+	call le_send_pairing_confirm_value_failed
+	branch module_hci_event_receive_valid_cmd
+
+
+//command opcode 0x49
+module_hci_cmd_set_reject_justwork_flag:
+	fetch 1,mem_module_uart_len
+	bne 0x01,module_hci_event_receive_invalid_cmd
+	call module_hci_event_receive_valid_cmd
+	ifetch 1,contru
+	branch classic_bt_clr_reject_justwork_flag,blank
+	branch classic_bt_set_reject_justwork_flag
+
+
+//command opcode 0x51
+module_hci_cmd_reset_chip:
+	call module_hci_event_receive_valid_cmd
+	call wait_uarttx
+	jam 0x01,core_reset // rest YC1021
+	branch loop
+
+
+//command opcode 0x61
+module_hci_cmd_le_set_fixed_passkey:
+	fetch 1,mem_module_uart_len
+	beq 0,module_hci_event_receive_invalid_cmd
+	ifetch 1,contru
+	branch module_hci_cmd_le_set_random_passkey,blank
+	fetch 1,mem_module_uart_len
+	bne 5,module_hci_event_receive_invalid_cmd
+	ifetch 4,contru
+	arg 1000000,temp
+	isub temp,null
+	branch module_hci_event_receive_invalid_cmd,positive
+	store 4,mem_le_tk
+	call le_set_config_fixed_tk
+	branch module_hci_event_receive_valid_cmd
+
+module_hci_cmd_le_set_random_passkey:
+	call le_clr_config_fixed_tk
+	branch module_hci_event_receive_valid_cmd
+
+
+//command opcode 0x76
+module_hci_cmd_delete_customize_service:
+	ifetcht 2,contru
+	call le_att_get_handle_ptr2
+	add contr,-2,contw
+	setarg 0x0000
+	istore 2,contw
+	branch module_hci_event_receive_valid_cmd
+
+
+//command opcode 0x77
+module_hci_cmd_add_service_uuid:
+	call module_hci_cmd_add_service_uuid_set_uuid
+	call uart_copy_rx_bytes_len_data
+	setarg 0x0000
+	istore 2,contw
+	branch module_hci_event_uuid_handle
+
+
+
+//command opcode 0x78
+module_hci_cmd_add_characteristic_uuid:
+	ifetch 1,contru	//Characteristic
+	call module_hci_cmd_add_characteristic_uuid_set_handle
+	call module_hci_cmd_add_characteristic_uuid_set_uuid
+	branch module_hci_event_uuid_handle
+
+
+module_hci_cmd_add_service_uuid_set_uuid:
+	call le_att_creat_new_handle
+	setarg 0x280002
+	istore 3,contw
+	rtn
+
+
+module_hci_cmd_add_characteristic_uuid_set_handle:
+	store 1,mem_pdatatemp
+	call le_att_creat_new_handle
+	setarg 0x01280302
+	istore 4,contw
+	fetch 1,mem_pdatatemp
+	istore 3,contw
+	rtn
+
+
+module_hci_cmd_add_characteristic_uuid_set_uuid:
+	call le_att_get_last_handle
+	ifetch 1,contru
+	and pdata,0x1f,loopcnt
+	copy pdata,rega
+	isolate1 BIT_OF_WRITE_AUTHENTICATED,rega
+	setflag true,BIT_OF_ATT_HANDLE_WRITE_AUTHENTICATED,temp
+	isolate1 BIT_OF_READ_AUTHENTICATED,rega
+	setflag true,BIT_OF_ATT_HANDLE_READ_AUTHENTICATED,temp
+	istoret 2,contw
+	copy loopcnt,pdata
+	istore 1,contw
+	call uart_copy_rx_bytes
+	call uart_copy_rx_bytes_len_data		//data
+	setarg 0
+	istore 2,contw
+	and temp,0xff,temp
+	increase -1,temp
+	call le_att_get_handle_ptr2
+	add contr,4,contr
+	ifetch 1,contr		//characteristic data
+	bbit1 BIT_CHARACTERISTIC_NOTIFY,module_hci_cmd_add_characteristic_uuid_set_ccc_uuid
+	bbit1 BIT_CHARACTERISTIC_INDICATE,module_hci_cmd_add_characteristic_uuid_set_ccc_uuid
+	increase 1,temp
+	rtn
+
+
+module_hci_cmd_add_characteristic_uuid_set_ccc_uuid:
+	call le_att_get_last_handle
+	isolate1 BIT_OF_NOTIFY_AUTHENTICATED,rega
+	setflag true,BIT_OF_ATT_HANDLE_WRITE_AUTHENTICATED,temp
+	istoret 2,contw
+	setarg 0x02290202
+	istore 8,contw
+	increase -1,temp
+	rtn
+
+
+le_att_creat_new_handle:
+	call le_att_get_last_handle
+	istoret 2,contw
+	rtn
+
+
+uart_copy_rx_bytes_len_data:
+	ifetch 1,contru
+	copy pdata,loopcnt
+	istore 1,contw
+	branch uart_copy_rx_bytes
+
+
+//command opcode 0x7a
+module_hci_cmd_le_passkey_entry_input:
+	fetch 1,mem_le_pairing_state
+	bne FLAG_LE_PAIRING_RECEIVE_PAIRING_CONFIRM,module_hci_event_receive_invalid_cmd
+	fetch 1,mem_le_pairing_mode
+	beq LE_PAIRING_MODE_LAGACY_PASSKEY_RES_INPUT,module_hci_cmd_passkey_entry_res_input
+	beq LE_PAIRING_MODE_SECURE_CONNECT_PASSKEY_RES_INPUT,module_hci_cmd_passkey_entry_sc_res_input
+	branch module_hci_event_receive_invalid_cmd
+
+module_hci_cmd_passkey_entry_sc_res_input:
+	jam LE_SP_FLAG_COMMIT_256,mem_le_secure_connect_flag
+	jam LE_SC_STAT_PASSKEY_WAIT_CONFIRM,mem_le_secure_connect_state	
+	branch module_hci_cmd_receive_ble_passkey
+
+module_hci_cmd_receive_ble_passkey:
+	ifetch 4,contru
+	store 4,mem_le_tk
+	branch module_hci_event_receive_valid_cmd
+	
+module_hci_cmd_passkey_entry_res_input:
+	call module_hci_cmd_receive_ble_passkey
+	branch le_send_smp_pairing_confirm
+
+
+
+//command opcode 0x90
+module_hci_cmd_ble_set_phy:
+	fetch 1,mem_module_uart_len
+	bne 2,module_hci_event_receive_invalid_cmd
+	ifetcht 2,contru
+	call le_set_phys
+	branch module_hci_event_receive_valid_cmd
+
+
+//command opcode 0x91
+module_hci_cmd_ble_read_current_phy:
+	arg 0,temp
+	arg 2,rega
+	arg mem_context+coffset_le_rx_phy,regb
+	branch module_hci_event_set_cmd
+
+
+//command opcode 0x92
+module_hci_cmd_ble_set_dle:
+	fetch 1,mem_module_uart_len
+	bne 8,module_hci_event_receive_invalid_cmd
+	ifetch 8,contru
+	call le_set_dle
+	branch module_hci_event_receive_valid_cmd
+
+
+//command opcode 0x93
+module_hci_cmd_read_chip_data:
+	ifetchr rega,1,contru
+	ifetchr regb,2,contru
+	arg 0,temp
+	branch module_hci_event_set_cmd
+
+
+//command opcode 0x94
+module_hci_cmd_write_chip_data:
+	fetchr loopcnt,1,mem_module_uart_len
+	increase -2,loopcnt
+	ifetch 2,contru
+	copy pdata,contw
+	call uart_copy_rx_bytes_fast
+	branch module_hci_event_receive_valid_cmd
+
+
+//command opcode 0x95
+module_hci_cmd_wechat_send_data:
+	fetch 2,mem_ui_state_map
+	bbit0 UI_STATE_BLE_CONNECTED,module_hci_event_receive_invalid_cmd
+	fetchr loopcnt,1,mem_module_uart_len
+	arg mem_module_wechat_local_data_buffer,contw
+	call uart_copy_rx_bytes_fast
+	fetchr regb,1,mem_module_uart_len
+	arg mem_module_wechat_local_data_buffer,rega
+	call wechat_air_sync_send_wechat_packet
+	jam HCI_NOT_DISCARD_PACKET,mem_module_temp_nl_discard_packet 
+	rtn user
+	jam HCI_DISCARD_PACKET,mem_module_temp_nl_discard_packet 
+	branch module_hci_event_receive_valid_cmd
+
+
+
+//command opcode 0xff
+module_hci_cmd_close_lpm:
+	jam 0,mem_lpm_mode
+	branch module_hci_event_receive_valid_cmd
+	
+
+/*********************HCI EVENT*********************/
+
+module_hci_event_receive_invalid_cmd:
+	arg 1,temp
+	arg 0,rega
+	branch module_hci_event_set_cmd
+
+
+module_hci_event_receive_valid_cmd:
+	arg 0,temp
+	arg 0,rega
+	branch module_hci_event_set_cmd
+
+
+//event opcode 0x00
+module_hci_event_spp_connect:
+	jam  HCI_EVENT_SPP_CONN_REP,mem_module_uart_opcode
+	branch module_hci_event_enter_standby_mode_len0
+
+
+//event opcode 0x02
+module_hci_event_le_connect:
+	jam  HCI_EVENT_LE_CONN_REP,mem_module_uart_opcode
+	branch module_hci_event_enter_standby_mode_len0
+
+
+//event opcode 0x03
+module_hci_event_spp_disconnect:
+	jam  HCI_EVENT_SPP_DIS_REP,mem_module_uart_opcode
+	branch module_hci_event_enter_standby_mode_len0
+
+
+//event opcode 0x05
+module_hci_event_le_disconnect:
+	jam  HCI_EVENT_LE_DIS_REP,mem_module_uart_opcode
+	branch module_hci_event_enter_standby_mode_len0
+
+
+//event opcode 0x06
+//input:
+//	temp: success 0; fail 1
+//	rega:Response Content length
+//	regb:Response Content address
+module_hci_event_set_cmd:
+	fetch 1,mem_module_uart_opcode
+	copy pdata,regc
+	jam  HCI_EVENT_CMD_RES,mem_module_uart_opcode
+	setarg 2
+	iadd rega,pdata
+	call module_hci_prepare_tx
+	copy regc,pdata
+	istore 1,contwu
+	istoret 1,contwu
+	copy rega,loopcnt
+	copy regb,contr
+	call uart_copy_tx_bytes
+	branch module_hci_transmit_tx
+
+
+//event opcode 0x07
+module_hci_event_receive_spp_data:
+//	call p_nl_clear_last_transmite_clock
+	call module_spp_clear_last_transmite_clock
+	jam HCI_EVENT_SPP_DATA_REP,mem_module_uart_opcode
+	fetch 1,mem_current_length
+	rtn blank
+	call module_hci_prepare_tx
+	fetch 1,mem_current_length
+	copy pdata,loopcnt
+	fetch 2,mem_rfcomm_uih_payload_ptr
+	copy pdata,contr
+	call uart_copy_tx_bytes_fast
+	branch module_hci_transmit_tx
+
+
+//event opcode 0x08
+//loopcnt pdata is data length
+module_hci_event_receive_le_data:
+	jam HCI_EVENT_LE_DATA_REP,mem_module_uart_opcode
+	add loopcnt,2,pdata
+	call module_hci_prepare_tx
+	fetch 2,mem_module_le_rx_data_handle // Attribute handle
+	istore 2,contwu
+	fetch 2,mem_module_le_rx_data_address
+	icopy contr
+	call uart_copy_tx_bytes_fast
+	copy contr,pdata
+	store 2,mem_module_le_rx_data_address
+	branch module_hci_transmit_tx
+
+
+//event opcode 0x09
+module_hci_event_enter_standby_mode:
+	jam HCI_EVENT_STANDBY_REP,mem_module_uart_opcode
+module_hci_event_enter_standby_mode_len0:
+	setarg 0
+	call module_hci_prepare_tx
+	branch module_hci_transmit_tx
+
+
+//event opcode 0x0a
+module_hci_event_status_res:
+	jam HCI_EVENT_STATUS_RES,mem_module_uart_opcode
+	setarg 1
+	call module_hci_prepare_tx
+	
+	call module_hci_read_bt_status
+	
+	fetch 2,mem_ui_state_map	
+	arg UI_STATE_BT_HID_CONN,queue
+	qisolate1 pdata
+	setflag true,3,temp
+
+	arg UI_STATE_BLE_CONNECTED,queue
+	qisolate1 pdata
+	setflag true,5,temp	
+	
+	fetch 1,mem_ui_state_map
+	arg UI_STATE_BT_SPP_CONN,queue
+	qisolate1 pdata
+	setflag true,4,temp	
+	
+	istoret 1,contwu
+	branch module_hci_transmit_tx
+
+//	temp: bit0 3.0 inquiry;bit1 3.0 scan;bit2 ble adv;
+
+module_hci_read_bt_status:
+	arg 0,temp
+	fetch 1,mem_scan_mode
+	arg inq_scan_mode,queue
+	qisolate1 pdata
+	setflag true,0,temp
+	arg page_scan_mode,queue
+	qisolate1 pdata
+	setflag true,1,temp	
+
+	fetch 1,mem_le_adv_enable
+	arg 0,queue
+	qisolate1 pdata
+	setflag true,2,temp	
+	rtn
+
+
+//event opcode 0x0d
+module_hci_event_store_device:
+	jam HCI_EVENT_NVRAM_REP,mem_module_uart_opcode
+	fetch 1,mem_nv_data_number
+	mul32 pdata,34,pdata
+	icopy loopcnt
+	call module_hci_prepare_tx
+	fetch 2,mem_nv_data_ptr
+	icopy contr
+	call uart_copy_tx_bytes_fast
+	branch module_hci_transmit_tx
+
+
+//event opcode 0x0e
+module_hci_event_gkey_generate:
+	jam HCI_EVENT_GKEY,mem_module_uart_opcode
+	setarg 4
+	call module_hci_prepare_tx
+	fetch 4,mem_gkey
+	istore 4,contwu
+	branch module_hci_transmit_tx
+
+
+//event opcode 0x0f
+module_hci_event_invalid_packet:
+	jam HCI_EVENT_INVALID_PACKET,mem_module_uart_opcode
+	fetch 2,core_uart_rxitems
+	arg 0x40,temp
+	call not_greater_than
+	copy pdata,rega
+	copy pdata,loopcnt
+	call uarta_prepare_rx
+	arg mem_module_rx_error_data_buffer,contw
+	call uart_copy_rx_bytes_fast
+	copy rega,pdata
+	copy rega,loopcnt
+	call module_hci_prepare_tx
+	arg mem_module_rx_error_data_buffer,contr
+	call uart_copy_tx_bytes_fast
+	branch module_hci_transmit_tx
+
+
+//event opcode 0x10
+module_hci_event_passkey_entry_mode:
+	jam  HCI_EVENT_GET_PASSKEY,mem_module_uart_opcode
+	branch module_hci_event_enter_standby_mode_len0
+
+
+//event opcode 0x11
+module_hci_event_le_tk:
+	jam HCI_EVENT_LE_TK,mem_module_uart_opcode
+	setarg 4
+	call module_hci_prepare_tx
+	fetch 4,mem_le_tk
+	istore 4,contwu
+	branch module_hci_transmit_tx
+
+
+//event opcode 0x14
+module_hci_event_le_pairing_fail:
+	arg FLAG_BLE_PAIRING_FAIL,rega
+	branch module_hci_event_pairing_completed
+
+module_hci_event_le_pairing_success:
+	arg FLAG_BLE_PAIRING_SUCCESS,rega
+	branch module_hci_event_pairing_completed
+
+module_hci_event_bt_pairing_fail:
+	arg FLAG_BT_PAIRING_FAIL,rega
+	branch module_hci_event_pairing_completed
+
+module_hci_event_bt_pairing_success:
+	arg FLAG_BT_PAIRING_SUCCESS,rega
+
+module_hci_event_pairing_completed:
+	jam 0,mem_flag_mode_ssp_pin
+	jam HCI_EVENT_LE_PAIRING_STATE,mem_module_uart_opcode
+	setarg 2
+	call module_hci_prepare_tx
+	copy rega,pdata
+	istore 2,contwu
+	branch module_hci_transmit_tx
+
+
+//event opcode 0x15
+module_hci_event_pause_enc:
+	arg FLAG_EVENT_PAUSE_ENC,regc
+	branch module_hci_event_enc
+
+module_hci_event_start_enc:
+	arg FLAG_EVENT_START_ENC,regc
+
+module_hci_event_enc:
+	jam HCI_EVENT_LE_ENCRYPTION_STATE,mem_module_uart_opcode
+	setarg 1
+	call module_hci_prepare_tx
+	copy regc,pdata
+	istore 1,contwu
+	branch module_hci_transmit_tx
+
+
+//event opcode 0x1d
+module_hci_event_le_gkey:
+	jam HCI_EVENT_LE_GKEY,mem_module_uart_opcode
+	setarg 4
+	call module_hci_prepare_tx
+	fetch 4,mem_gkey
+	istore 4,contwu
+	branch module_hci_transmit_tx
+
+
+//event opcode 0x29
+//input:temp uuid number
+module_hci_event_uuid_handle:
+	storet 2,mem_temp
+	jam HCI_EVENT_UUID_HANDLE,mem_module_uart_opcode
+	setarg 2
+	call module_hci_prepare_tx
+	fetcht 2,mem_temp
+	istoret 2,contwu
+	branch module_hci_transmit_tx
+
+
+//event opcode 0x2B
+module_hci_event_le_input_passkey:
+	jam HCI_EVENT_LE_INPUT_GKEY,mem_module_uart_opcode
+	branch module_hci_event_enter_standby_mode_len0
+
+
+//event opcode 0x40
+module_hci_event_le_update_phy:
+	jam HCI_BLE_UPDATE_PHY_EVENT,mem_module_uart_opcode
+	setarg 2
+	call module_hci_prepare_tx
+	fetch 2,mem_context+coffset_le_rx_phy
+	istore 2,contwu
+	branch module_hci_transmit_tx
+
+
+//event opcode 0x41
+module_wechat_rx_push_data:
+module_hci_event_ble_wechat_receive_push_data:
+	call wechat_air_sync_check_push_data_struct
+	nrtn user
+	jam HCI_BLE_WECHAT_RECEIVE_PUSH_DATA,mem_module_uart_opcode
+	copy loopcnt,pdata
+	call module_hci_prepare_tx
+	copy regc,contr
+	call uart_copy_tx_bytes_fast
+	branch module_hci_transmit_tx
+
+	
+
+//****************************************************************//
+	//module_hci_prepare_tx
+	//function:write hci packet header
+	//input: pdata-----packet length  (1byte)
+	//input: mem_uart_opcode------opcode (1byte)
+	//output:contwu --- pointer to packet payload
+	//use reg: contwu,pdata
+//****************************************************************//	
+module_hci_prepare_tx:
+	jam 0x02,mem_module_uart_cmd
+	store 1,mem_module_uart_len
+	storet 8,mem_temp
+	bpatch patch19_2,mem_patch19
+	call module_set_mcu_wake_pin_high_delay
+	fetcht 8,mem_temp
+	call uarta_prepare_tx_register_push
+	fetch 3,mem_module_uart_cmd
+	istore 3,contwu
+	rtn
+
+module_hci_transmit_tx:
+	bpatch patch19_3,mem_patch19
+	branch uarta_send_register_pop
+
+module_set_mcu_wake_pin_high_delay:
+	call module_check_mcu_wake_pin_high
+	rtn true
+module_set_mcu_wake_pin_h_delay:
+	call module_set_mcu_wake_pin_high
+	fetch 4,mem_module_mcu_wake_delay_us
+	rshift2 pdata,pdata
+	rtn blank
+	branch delay
+
+module_set_mcu_wake_pin_high:
+	//call ice_break
+	fetcht 1,mem_module_mcu_wake_pin
+	branch gpio_out_active
+
+module_check_mcu_wake_pin_high:
+	fetcht 1,mem_module_mcu_wake_pin
+	branch gpio_check_active
+
+module_set_mcu_wake_pin_low:
+	fetcht 1,mem_module_mcu_wake_pin
+	branch gpio_out_inactive
+
+
+
+/*********************hci command end*********************/
+
+/*********************hci ble receive data start*********************/
+
+//rega is le rx data address
+//regb is le rx data length
+//mem_le_att_handle is write handle
+module_le_receive_data:
+	storer rega,2,mem_module_le_rx_data_address
+	storer regb,2,mem_module_le_rx_data_len
+	fetch 2,mem_le_att_handle
+	store 2,mem_module_le_rx_data_handle
+	call module_check_ble_encrypt_state
+	rtn user
+	
+module_le_receive_data_ok:	
+	fetcht 2,mem_module_le_rx_data_len
+	fetch 1,mem_module_ble_data_uart_max_length
+	call not_greater_than
+	copy pdata,loopcnt
+	copy temp,pdata
+	isub loopcnt,pdata
+	store 2,mem_module_le_rx_data_len
+	call module_hci_event_receive_le_data
+	fetch 2,mem_module_le_rx_data_len
+	rtn blank
+	branch module_le_receive_data_ok
+
+/*********************hci ble receive data end*********************/
+
+module_exit_sniff:
+	fetch 2,mem_module_flag
+	rtnbit1 MOUDLE_TASK_UNSNIFF
+	call module_set_unsniff_task_flag	
+	branch app_bt_sniff_exit
+
+
+module_set_lpm_mult_2:
+	jam 2,mem_lpm_mult
+	rtn
+
+
+
+module_bb_event_timer:
+	branch module_read_vdd_timer
+
+module_read_vdd_timer:
+	fetch 1,mem_module_read_vdd_flag
+	rtn blank
+	fetch 1,mem_module_read_vdd_count
+	rtn blank
+	increase -1,pdata
+	store 1,mem_module_read_vdd_count
+	nrtn blank
+	jam FLAG_MODULE_READ_VDD_COUNT,mem_module_read_vdd_count
+	call adc_set_mode
+	call vdd_calculate_by_mode
+	div pdata,0x64
+	call get_div_result
+	remainder temp
+	store 1,mem_module_vdd_quotient
+	storet 1,mem_module_vdd_remainder
+	rtn	
+	
+
+module_control_air_flow:
+	call check_uart_tx_buff
+	branch app_l2cap_flow_control_enable,positive
+	branch app_l2cap_flow_control_disable
+
+
+/**************module state *******************/
+module_set_sniff_task_flag:
+	arg MOUDLE_TASK_SNIFF,queue
+	branch module_set_state
+
+module_clear_sniff_task_flag:
+	arg MOUDLE_TASK_SNIFF,queue
+	branch module_clr_state
+
+module_set_unsniff_task_flag:
+	arg MOUDLE_TASK_UNSNIFF,queue
+	branch module_set_state
+
+module_clear_unsniff_task_flag:
+	arg MOUDLE_TASK_UNSNIFF,queue
+	branch module_clr_state
+
+module_set_le_tx_data_flag:
+	arg MODULE_FLAG_BLE_DATA_FINISH,queue
+	branch module_set_state
+	
+module_clear_le_tx_data_flag:
+	arg MODULE_FLAG_BLE_DATA_FINISH,queue
+	branch module_clr_state
+
+module_clr_state:
+	fetch 2,mem_module_flag
+	qset0 pdata
+	store 2,mem_module_flag
+	rtn
+
+module_set_state:
+	fetch 2,mem_module_flag
+	qset1 pdata
+	store 2,mem_module_flag
+	rtn
+	
+/**************module state end*******************/
+
+
+else
+
+endif
Index: program/app_mouse.prog
===================================================================
--- /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/program/app_mouse.prog	(nonexistent)
+++ /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/program/app_mouse.prog	(working copy)
@@ -0,0 +1,4527 @@
+
+ifdef COMPILE_MOUSE
+mouse_init:
+	call mouse_setting_config
+	call spi_ncs_enable
+	call mouse_init_sunt
+	call mouse_dpi_config
+	call spi_ncs_disable
+	rtn wake
+	call mouse_usb_check_enable
+	call mouse_drawing_optima_init
+	call mouse_cb_fuction
+	fetch 1,mem_usb_addr
+	rtnbit1 7
+mouse_init_wireless:	
+	fetch 2,mem_ui_state_map
+	bbit1 UI_STATE_BTN_DOWN,mouse_start_discovery
+	call mouse_check_select_device_by_switch
+	branch mouse_start_work
+
+
+mouse_cb_fuction:
+	setarg mouse_24g_package_data
+	store 2,mem_cb_24g_transmit_data
+	setarg mouse_24g_search_dongle
+	store 2,mem_cb_24g_search_receiver
+mouse_cb_fuction2:
+	setarg mouse_lpm_before_common
+	store 2,mem_cb_24g_lpm_before
+	setarg mouse_le
+	store 2,mem_cb_le_process
+	setarg mouse_bt
+	store 2,mem_cb_bt_process
+	setarg mouse_process_lpm_before
+	store 2,mem_cb_before_lpm
+	setarg mouse_priority_bb_event
+	store 2,mem_cb_bb_event_process
+	setarg mouse_idle
+	store 2,mem_cb_idle_process
+	setarg mouse_before_hibernate
+	store 2,mem_cb_before_hibernate
+	setarg mouse_le_bb_event_connect_complete
+	store 2,mem_cb_att_write	
+	setarg mouse_bb_event_timer
+	store 2,mem_cb_event_timer
+	setarg mouse_spi_write_flash_cb
+	store 2,mem_cb_spi_flash_write_complate
+	setarg mouse_lpm_check_wake_lock
+	store 2,mem_cb_check_wakelock
+	setarg mouse_le_transmit
+	store 2,mem_cb_ble_transmit
+	setarg mouse_bt_slave_match
+	store 2,mem_cb_bt_slave_match
+	setarg mouse_set_lpm_mult
+	store 2,mem_cb_bt_set_mult
+	rtn
+
+
+mouse_setting_config:
+	rtn wake
+	call g24_transmit_init
+	call mouse_gpio_init
+	call mouse_param_init
+	call mouse_adc_init
+	call le_set_config_fixed_ltk
+	call le_set_justwork
+	call le_set_fixed_ltk
+	call le_set_config_read_authentication
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	bbit1 MOUSE_ENABLE_EEPROM,mouse_load_eeprom_info_check
+	bbit1 MOUSE_ENABLE_FLASH,mouse_load_flash_info_check
+	rtn
+	
+
+mouse_param_init:
+	setarg MOUSE_BT_SDP_ADDR				//bt sdp start address
+	store 2,mem_ui_uuid_table
+	setarg MOUSE_BLE_ATT_LIST_ADDR				//ble attlist start address
+	store 2,mem_ui_le_uuid_table
+	setarg 0x2580
+	store 3,mem_class
+	jam 3,mem_lpm_mult_timeout
+	jam 8,mem_lpm_overhead
+	jam DPI_BUTTON_STATE_UP,mem_select_device_button_statue
+	jam PB_BUTTON_STATE_UP,mem_select_device_button_statue
+	jam COMMBINATION_KEY_STATE_UP,mem_commbination_key_statue	
+	setarg 0x0200
+	store 2,mem_lpm_interval
+	jam 0x17,mem_le_local_mtu
+	jam 0x17,mem_le_remote_mtu
+//===========init spi param==============================
+	setarg 0x0a77
+	store 2,mem_spi_init_clk
+//===========all 16bit uuid==================================
+	setsect 0,0x306
+	setsect 1,0x4440
+	setsect 2,0x10000
+	setsect 3,0x4408
+	store 9,mem_all_uuid_16bits
+	setsect 0,0x1224
+	setsect 1,0x4000
+	setsect 2,0x0
+	istore 5,contw
+//===========features=====================================
+	setsect 0,0x3ffff
+	setsect 1,0x2fe23
+	setsect 2,0x199d9
+	setsect 3,0x20d
+	store 8,mem_features
+//======================================================	
+	setarg mem_le_tx_buffer0_omemalloc
+	store 2,mem_ble_l2cap_tx_buff0_ptr
+	setarg MOUSE_BLE_L2CAP_TXBUFF_SIZE
+	store 2,mem_ble_l2cap_tx_buff_size_ptr
+	
+	call mouse_device_led_all_off
+	call mouse_device_poweron_timer_init
+	call mouse_adc_gpio_mux_init
+
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	bbit0 MOUSE_ENABLE_BT_125Hz,mouse_param_init_intervl_end
+	jam CLASSIC_INTERVAL_7_5MS,mem_sniff_param_interval
+	setarg LE_INTERVAL_7_5MS
+	store 2,mem_le_interval_min
+	store 2,mem_le_interval_min+2
+mouse_param_init_intervl_end:
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	bbit0 MOUSE_ENABLE_24G_250Hz,mouse_24g_short_sleep_set_end
+	setarg G24_4MS_INTERVAL_PARAM
+	store 3,mem_24g_short_sleep_set
+	setarg 0x0c0c10
+	store 3,mem_24g_interval
+mouse_24g_short_sleep_set_end:
+	fetch 1,mem_device_flag
+	store 1,mem_device_flag_temp
+	fetch 3,mem_le_lap+3
+	store 3,mem_mouse_le_lap_temp
+	fetch 1,mem_adc_config_flag_init
+	store 1,mem_adc_config_flag
+	setarg 0
+	store 7,mem_mouse_key
+	fetch 1,mem_ui_button_timeout
+	store 1,mem_bt_discovery_count
+	store 1,mem_select_device_count
+	call le_modified_name
+	branch mouse_sensor_set_angle
+
+
+mouse_start_work:
+	bpatch patch19_4,mem_patch19
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	bbit1 MOUSE_ENABLE_24G_FIRST_AUTO_PAIRING, mouse_24g_first_start_auto_pair_mode
+	fetch 1,mem_device_flag
+	beq MODE_24G_DEVICE,mouse_24g_start_mode
+	call mouse_wakeup_from_power_check	// wake from hibernate :enble user
+	nbranch mouse_buletooth_fast_conn_init,user
+mouse_start_reconnect_device:
+	bpatch patch19_5,mem_patch19
+	arg mem_device1_type,rega
+	fetch 1,mem_device_flag
+	increase -1,pdata
+	mul32 pdata,29,pdata
+	iadd rega,rega
+	ifetch 1,rega
+	store 1,mem_xrecord_mode
+mouse_start_reconnect:	
+	bpatch patch19_6,mem_patch19
+	fetch 1,mem_xrecord_mode
+	beq REC_3_MODE,mouse3_0_check_reconn_target
+	beq REC_4_MODE,mouse4_0_check_reconn_target
+	branch mouse_start_discovery
+
+
+mouse_wakeup_from_power_check:
+	bpatch patch19_7,mem_patch19
+	disable user
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	bbit0 MOUSE_ENABLE_WAKEUP_FROM_POWER,mouse_wakeup_from_power
+	fetch 1,mem_wakup_from_power_flag
+	bbit0 BIT_POWER_ON,mouse_wakeup_from_power
+	enable user		// mouse power on
+mouse_wakeup_from_power:
+	fetch 1,mem_reconn_times_init
+	store 1,mem_reconn_times
+	rtn
+
+
+mouse3_0_check_reconn_target:
+	fetcht 2,mem_mouse_fast_page_to
+	fetch 1,mem_mouse_bluetooth_fast_conn_flag
+	beq 0xff,mouse3_0_check_reconn_target_next
+	fetcht 2,mem_mouse_page_to
+mouse3_0_check_reconn_target_next:	
+	storet 2,mem_page_to
+	fetch 6,mem_hci_plap
+	branch app_bt_start_discovery_short,blank
+	jam 0x17,mem_app_connection_options  //ssp
+	fetch 1,mem_ssp_enable
+	nbranch app_bt_start_reconnect,blank
+	jam 0x04,mem_app_connection_options  //no ssp
+	branch app_bt_start_reconnect
+	
+mouse4_0_check_reconn_target:
+	jam 1,mem_mouse_le_reconnect_flag
+	fetcht 1,mem_mouse_fast_direct_timeout
+	fetch 1,mem_mouse_bluetooth_fast_conn_flag
+	beq 0xff,mouse4_0_check_reconn_target_next
+	fetcht 2,mem_mouse_direct_timeout
+mouse4_0_check_reconn_target_next:	
+	storet 2,mem_mouse_direct_timer
+	call app_lpm_mult_disable
+	fetch 3,mem_le_adv_direct_ind
+	store 3,mem_le_adv_data+4
+	call mouse_le_check_adv_flag
+	setarg ADV_FLAG_BREDR_NOT_SUPPORTED
+	istore 1,contr
+	arg mem_le_scan_data,contr
+	call mouse_le_adv_data_update
+	branch check_51cmd_adv
+
+
+/*************************usb**********************************/
+mouse_usb_check_enable:
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	rtnbit0 MOUSE_ENABLE_USB
+	setarg mouse_usb_config_param
+	store 2,mem_cb_usb_config
+	jam MOUSE_USB_INTERFACE_REMOVE,mem_mouse_usb_vdd_status
+	branch mouse_usb_interface_check
+
+mouse_usb_config_param:
+	call mouse_usb_config_kb_check
+	call mouse_usb_config_param_init
+	branch mouse_usb_config_param_setup
+
+mouse_usb_config_kb_check:
+	jam DONGLE_KB_BIND_EEPROM_OFFECT,mem_mouse_usb_keyboard_flag
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	rtnbit0 MOUSE_ENABLE_KEYBOARD
+	jam DONGLE_KB_BIND_SUCCESS,mem_mouse_usb_keyboard_flag
+	rtn
+
+mouse_usb_config_param_init:
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	bbit1 MOUSE_ENABLE_USB_250,mouse_usb_report_rate_set_250hz
+	bbit1 MOUSE_ENABLE_USB_500,mouse_usb_report_rate_set_500hz
+	bbit1 MOUSE_ENABLE_USB_1000,mouse_usb_report_rate_set_1000hz
+	jam 0x19,mem_wire_usb_interval
+	jam 0x08,mem_usb_tx_interval
+	rtn
+mouse_usb_report_rate_set_250hz:
+	jam 0x0c,mem_wire_usb_interval
+	jam 0x04,mem_usb_tx_interval
+	rtn
+mouse_usb_report_rate_set_500hz:
+	jam 0x06,mem_wire_usb_interval
+	jam 0x02,mem_usb_tx_interval
+	rtn
+mouse_usb_report_rate_set_1000hz:
+	jam 0x03,mem_wire_usb_interval
+	jam 0x01,mem_usb_tx_interval
+	rtn
+
+mouse_usb_config_param_setup:
+	call usb_tx_interval_config
+	call mouse_usb_vid_pid_config
+	branch mouse_usb_hid_icon_config
+
+mouse_usb_vid_pid_config:
+	fetch 1,mem_usb_vid_pid
+	rtn blank
+	fetch 1,mem_mouse_usb_keyboard_flag
+	beq DONGLE_KB_BIND_SUCCESS,dongle_usb_vid_pid_for_suit
+	branch dongle_usb_vid_pid_for_mouse_only_auto_pair
+
+mouse_usb_hid_icon_config:
+	fetch 1,mem_mouse_usb_keyboard_flag
+	branch dongle_usb_hid_icon_config+1
+
+
+mouse_usb_check:
+	fetch 1,core_usb_addr
+	bbit0 7,mouse_usb_no_exsit
+	bbit1 7,mouse_usb_exsit
+	rtn
+mouse_usb_no_exsit:
+	fetch 1,mem_usb_addr
+	rtnbit0 7
+	call ice_break
+	branch soft_reset_chip
+mouse_usb_exsit:
+	fetch 1,mem_usb_addr
+	rtnbit1 7
+	call mouse_24g_stop
+	branch mouse_stop_bluetooth_mode
+
+mouse_usb_isr:
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	rtnbit0 MOUSE_ENABLE_USB
+	call usb_isr
+	branch mouse_usb_interface_check
+//	branch usb_offline_state
+
+
+mouse_usb_interface_check:
+	bpatch patch1a_0,mem_patch1a
+	fetcht 1,mem_usb_offline_check_gpio
+	call gpio_get_bit
+	branch mouse_usb_gpio_low,true
+	branch mouse_usb_gpio_high
+
+
+mouse_usb_gpio_low:
+	fetch 1,mem_mouse_usb_vdd_status
+	rtneq MOUSE_USB_INTERFACE_REMOVE
+	jam MOUSE_USB_INTERFACE_REMOVE,mem_mouse_usb_vdd_status
+	jam 0,mem_usb_device_enumeration_endflag
+	jam 0,mem_usb_status
+	jam 0,mem_usb_state
+	branch mouse_init_wireless
+	
+	
+mouse_usb_gpio_high:
+	fetch 1,mem_mouse_usb_vdd_status
+	rtneq MOUSE_USB_INTERFACE_INSERT
+	jam MOUSE_USB_INTERFACE_INSERT,mem_mouse_usb_vdd_status
+	call mouse_24g_stop
+	call mouse_stop_bluetooth_mode
+	call mouse_device_led_all_off
+	branch usb_init
+	
+	
+mouse_usb_mode:
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	rtnbit0 MOUSE_ENABLE_USB
+	call mouse_usb_check
+	fetch 1,core_usb_addr
+	store 1,mem_usb_addr
+	rtnbit0 7
+	call mouse_clkn_check 
+	fetch 4,mem_btclk_sensor
+	fetcht 1,mem_wire_usb_interval
+	iadd temp,temp
+	copy clkn_bt,pdata
+	isub temp,null
+	nrtn positive
+	store 4,mem_btclk_sensor
+	call mouse_motion
+	nrtn user
+mouse_push_data_to_usb:
+	fetch 1,core_usb_addr
+	rtnbit0 7
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	bbit0 MOUSE_ENABLE_KEYBOARD,mouse_push_mouse_data_to_usb
+	fetch 1,mem_customer_key
+	beq 1,mouse_push_keyboard_data_to_usb
+mouse_push_mouse_data_to_usb:
+	call dongle_usb_tx_ms_data
+	setarg MS_REPORT_ID
+	store 1,mem_usb_mouse_data
+	fetch 7,mem_mouse_key
+	istore 7,contw
+	rtn
+
+mouse_push_keyboard_data_to_usb:
+	fetch 1,mem_customer_data_trigger
+	branch mouse_push_release_keyboard_data_to_usb,blank
+	fetch 8,mem_customer_key_press+1
+mouse_push_keyboard_package_data_to_usb:
+	store 8,mem_pdatatemp
+	fetch 1,mem_customer_key_press
+	beq KB_MULTIKEY_REPORT_ID,mouse_push_multimedia_key_data_to_usb
+	beq KB_SYSTEM_CONCTRL_REPORT_ID,mouse_push_systemctrl_key_data_to_usb
+	call dongle_usb_tx_kb_data
+	fetch 8,mem_pdatatemp
+	store 8,mem_usb_kb_data
+	rtn
+	
+mouse_push_release_keyboard_data_to_usb:
+	fetch 8,mem_customer_key_release+1
+	branch mouse_push_keyboard_package_data_to_usb
+
+mouse_push_multimedia_key_data_to_usb:
+	call dongle_usb_tx_enable_ep2
+	jam USB_EP2_MULTIKEY,mem_usb_ep2_data
+	setarg KB_MULTIKEY_REPORT_ID
+	store 1,mem_usb_kb_multikey
+	fetch 2,mem_pdatatemp
+	istore 2,contw
+	rtn
+
+mouse_push_systemctrl_key_data_to_usb:
+	call dongle_usb_tx_enable_ep2
+	jam USB_EP2_SYSTEMKEY,mem_usb_ep2_data
+	setarg KB_SYSTEM_CONCTRL_REPORT_ID
+	store 1,mem_usb_kb_system
+	fetch 1,mem_pdatatemp
+	istore 1,contw
+	rtn
+
+	
+/*************************usb**********************************/
+
+
+/*****************system clk***********************************/
+
+mouse_clkn_check:
+	fetcht 4,mem_btclk_sensor
+	copy clkn_bt,pdata
+	isub temp,null
+	ncall mouse_clkn_timeout,positive
+	rtn
+mouse_clkn_timeout:
+	setarg 0
+	store 4,mem_btclk_sensor
+	rtn
+
+
+/*
+mouse_enable_clock_qdecoder:
+	fetch 2,core_clkoff
+	set0 CLOCK_OFF_QDECODER,pdata
+	store 2,core_clkoff
+	rtn
+*/
+
+mouse_lpm_check_wake_lock:
+	bmark1 mark_24g,app_get_lpm_wake_lock
+	fetch 1,mem_mouse_clear_sensor_data_flag
+	branch app_get_lpm_wake_lock,blank
+	fetch 1,mem_mouse_le_conn_param_reject
+	beq LE_LPM_DISABLE,app_get_lpm_wake_lock
+	fetch 2,mem_sdp_remote_cid
+	nbranch app_get_lpm_wake_lock,blank
+	fetch 1,mem_mouse_wheel_trigger
+	nbranch app_get_lpm_wake_lock,blank
+	branch app_put_lpm_wake_lock
+
+mouse_delay_enter_hibernata:
+	fetch 2,mem_mouse_direct_timeout
+	store 2,mem_mouse_bluetooth_reconnect_timeout
+	rtn
+
+
+mouse_app_enter_hibernate:
+	call mouse_sensor_powerdown
+	call mouse_setgpio_hibernate
+	branch app_enter_hibernate
+
+	
+mouse_before_hibernate:
+	bpatch patch1a_1,mem_patch1a
+	enable user
+	fetch 4,0x8138
+	setflag user,26,pdata
+	store 4,core_lpm_reg
+	call lpm_write_ctrl
+	call disable_authrom
+	call mouse_device_led_all_off
+	call mouse_before_hibernate_wheel_gpio_set
+	call mouse_setgpio_hibernate
+	call mouse_flash_power_down
+	call gpio_set_before_lpm_common
+	fetcht 1,mem_sensor_motion_gpio
+	branch gpio_clr_wake
+
+
+mouse_setgpio_lpm:
+	call mouse_set_sdio_high
+	call clear_wake
+mouse_setgpio_hibernate:	
+	call mouse_lpm_before_common
+	call gpio_pd_idle
+	branch mouse_gpio_set_high_impedance
+	
+
+	
+mouse_process_lpm_before:
+	call mouse_lpm_before_common
+	fetch 1,mem_lpm_current_mult
+	nrtn blank					// 7.5ms, no gpio wakeup
+	branch gpio_clr_wake
+
+mouse_lpm_before_common:
+	bpatch patch1a_2,mem_patch1a
+	
+	call mouse_wheel_check
+	arg MOUSE_SPI1_CLK_GPIO,temp					// set sclk high
+	fetch 1,mem_enable_spi2_flag
+	ncall mouse_spi_clk_gpio,blank
+	call gpio_config_output
+	call twspi_disable
+	
+	fetcht 1,mem_lbutton_gpio
+	call gpio_set_wake_by_current_state
+	fetcht 1,mem_rbutton_gpio
+	call gpio_set_wake_by_current_state
+	fetcht 1,mem_mbutton_gpio
+	call gpio_set_wake_by_current_state
+
+	fetcht 1,mem_bk_button_gpio
+	call gpio_set_wake_by_current_state
+	fetcht 1,mem_fw_button_gpio
+	call gpio_set_wake_by_current_state
+	fetcht 1,mem_dpi_button_gpio
+	call gpio_set_wake_by_current_state
+	fetcht 1,mem_config_select_device_button_gpio
+	call gpio_set_wake_by_current_state
+mouse_lpm_before_common_next:	
+	fetcht 1,mem_whee_a_data_gpio
+	call gpio_set_wake_by_current_state
+	fetcht 1,mem_whee_b_data_gpio
+	call gpio_set_wake_by_current_state
+	fetcht 1,mem_whee_ta_data_gpio
+	call gpio_set_wake_by_current_state
+	fetcht 1,mem_whee_tb_data_gpio
+	call gpio_set_wake_by_current_state
+	fetcht 1,mem_sensor_motion_gpio
+	branch gpio_set_wake
+
+
+//short mult: no key 
+mouse_set_mult:
+	fetch 2,mem_ui_state_map
+	bbit1 UI_STATE_BLE_CONNECTED,mouse_set_ble_mult
+	fetch 2,mem_ui_state_map
+	bbit1 UI_STATE_BT_CONNECTED,mouse_set_bt_mult
+	rtn
+mouse_set_ble_mult:
+	copy rega,pdata
+	nbranch le_set_config_short_mult,blank
+	branch le_clr_config_short_mult
+mouse_set_bt_mult:
+	copy rega,pdata
+	nbranch classic_bt_set_mult_short_flag,blank
+	branch classic_bt_clr_mult_short_flag
+
+/*****************system clk***********************************/
+	
+	
+/****************************adc**************************************/	
+mouse_adc_init:
+	fetch 1,mem_adc_config_flag
+	beq ADC_CONFIG_VINLPM,mouse_adc_init_data_vinlpm
+	beq ADC_CONFIG_HVIN,mouse_adc_init_data_hvin
+	beq ADC_CONFIG_GPIO,mouse_adc_init_data_io
+	branch mouse_adc_init_data_vinlpm
+	
+mouse_adc_init_data_vinlpm:
+	fetcht 2,mem_2v_adc_vinlpm_data
+	fetch 2,mem_3v_adc_vinlpm_data
+	isub temp,pdata
+	mul32 pdata,20,pdata 
+	div pdata,100
+	call get_div_result
+	store 2,mem_adc_reference_voltage //vinlpm :2v2 low alter
+	rtn
+mouse_adc_init_data_hvin:
+	fetcht 2,mem_3v_adc_hvin_data
+	fetch 2,mem_5v_adc_hvin_data
+	isub temp,pdata
+	mul32 pdata,230,pdata 
+	div pdata,400
+	call get_div_result
+	store 2,mem_adc_reference_voltage //hvin :3v3 low alter
+	rtn
+mouse_adc_init_data_io:
+	fetch 2,mem_1v_adc_io_data
+	store 2,mem_adc_reference_voltage  //vio :1v low alter
+	rtn
+
+mouse_adc_gpio_set:
+	//	hfetch 1,core_gpio_pd0	//gpio5 pull down disable
+	//	set0 5,pdata
+	//	hstore 1,core_gpio_pd0
+	rtn
+
+
+mouse_adc_gpio_mux_init:
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	rtnbit0 MOUSE_ENABLE_ADC
+	jam MOUSE_ADC_CHECK_MULTIPLE,mem_adc_mux_status
+	rtnbit1 MOUSE_ENABLE_DPI_KEY_CONNECT_ADC
+	rtnbit1 MOUSE_ENABLE_SELECT_DEVICE_BY_SWITCH_ADC
+	jam MOUSE_ADC_CHECK_BATTERY_ONLY,mem_adc_mux_status
+	rtn
+
+mouse_adc_read_interval:	
+	fetch 1,mem_adc_read_timer
+	increase 1,pdata
+	store 1,mem_adc_read_timer
+	fetcht 1,mem_adc_read_time_init	//1s read adc
+	isub temp,null
+	rtn
+
+
+mouse_adc_read:
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	rtnbit0 MOUSE_ENABLE_ADC
+	call mouse_adc_gpio_set
+	fetch 1,mem_adc_mux_status
+	branch mouse_adc_read_battery,blank
+	fetch 1,mem_adc_config_flag_init
+	beq ADC_CONFIG_GPIO,mouse_adc_read_gpio_mux_start	// gpio + dpi/switch
+	jam MOUSE_ADC_CHECK_VINLPM_MULTIPLE,mem_adc_mux_status
+	call mouse_adc_read_interval					// vinlpm + dpi/switch
+	call mouse_adc_read_gpio, positive
+	ncall mouse_adc_read_vinlpm,positive
+	branch mouse_adc_read_start
+
+mouse_adc_read_gpio_mux_start:
+	jam MOUSE_ADC_CHECK_GPIO_MULTIPLE,mem_adc_mux_status
+	fetch 1,mem_24g_device_led_status		// 2.4g gpio output high 
+	nrtn blank
+	branch mouse_adc_read_start
+	
+mouse_adc_read_battery:		// only get battery
+	fetch 1,mem_adc_config_flag_init
+	bne ADC_CONFIG_GPIO,mouse_adc_read_battery_start
+	fetch 1,mem_24g_device_led_status		// 2.4g gpio output high 
+	nrtn blank
+mouse_adc_read_battery_start:
+	call mouse_adc_read_interval
+	nrtn positive
+mouse_adc_read_start:
+	jam 0,mem_adc_read_timer
+	call adc_init_data
+	call adc_set_mode
+	call vdd_calculate_by_mode
+	store 2,mem_mouse_vdd_now_vol
+	arg mem_mouse_vdd_calculate_set,rega
+	call mouse_adc_bat_percent_lowpower_out
+	fetch 1,mem_adc_power_flag
+	bbit1 2,mouse_adc_button_press
+	bbit1 1,mouse_power_down
+	bbit0 0,mouse_adc_no_low_voltage
+	jam 1,mem_mouse_adc_last_low_voltage_flag
+	branch mouse_adc_low_voltage
+mouse_adc_low_voltage:
+	arg MOUSE_LOW_VOLTAGE_FLAG,queue
+	branch mouse_enable_function_flag
+mouse_adc_no_low_voltage:
+	arg MOUSE_LOW_VOLTAGE_FLAG,queue
+	call mouse_disable_function_flag
+	jam 12,mem_adc_low_volatage_led_timer_count
+	fetch 1,mem_mouse_adc_last_low_voltage_flag
+	rtn blank
+	jam 0,mem_mouse_adc_last_low_voltage_flag
+	fetch 1,mem_config_low_voltage_alarm_gpio
+	store 1,mem_mouse_struct_led_gpio
+	branch mouse_led_off
+
+mouse_adc_read_gpio:
+	fetch 1,mem_24g_device_led_status
+	nbranch mouse_adc_read_vinlpm,blank
+	jam ADC_CONFIG_GPIO,mem_adc_config_flag
+	branch mouse_adc_init
+	
+mouse_adc_read_vinlpm:
+	jam 0,mem_adc_read_timer
+	fetch 1,mem_adc_config_flag_init
+	store 1,mem_adc_config_flag
+	branch mouse_adc_init
+
+mouse_adc_bat_percent_lowpower_out:
+	bpatch patch1a_3,mem_patch1a
+	ifetch 8,rega
+	store 8,mem_pdatatemp
+	fetch 1,mem_adc_mux_status
+	beq MOUSE_ADC_CHECK_BATTERY_ONLY,mouse_adc_bat_percent_lowpower_out_battery
+	beq MOUSE_ADC_CHECK_GPIO_MULTIPLE,mouse_adc_bat_percent_lowpower_out_gpio_multiple
+	beq MOUSE_ADC_CHECK_VINLPM_MULTIPLE,mouse_adc_bat_percent_lowpower_out_vinlpm_multiple
+mouse_adc_bat_percent_lowpower_out_gpio_multiple:
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	bbit0 MOUSE_ENABLE_DPI_KEY_CONNECT_ADC,mouse_adc_bat_percent_lowpower_out_gpio_switch
+	fetch 2,mem_pdatatemp+6		               	//now voltage
+	fetcht 2,mem_mouse_vdd_button_press_vol	// button press check
+	isub temp,null
+	nbranch mouse_adc_set_button_press_flag,positive
+	
+mouse_adc_bat_percent_lowpower_out_gpio_switch:
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	bbit0 MOUSE_ENABLE_SELECT_DEVICE_BY_SWITCH_ADC,mouse_adc_bat_percent_lowpower_out_battery
+	jam 0,mem_mouse_adc_button_press_flag
+	fetch 2,mem_pdatatemp+6				    	        //now voltage	
+	fetcht 2,mem_mouse_vdd_switch_gnd_24g_vol	// switch mode check
+	isub temp,null
+	ncall mouse_check_select_24gdevice,positive
+	call mouse_select_btdevice,positive
+	branch mouse_adc_bat_percent_lowpower_out_battery
+mouse_adc_bat_percent_lowpower_out_battery:	
+	call mouse_adc_clear_button_press_flag
+	fetch 2,mem_pdatatemp+6
+	fetcht 2,mem_pdatatemp+2	        //shutdown voltage
+	isub temp,null
+	ncall adc_set_no_power_flag,positive
+	call adc_clear_no_power_flag,positive
+	fetcht 2,mem_pdatatemp+4		//low voltage
+	isub temp,null
+	ncall adc_set_low_power_flag,positive
+	call adc_clear_low_power_flag,positive
+mouse_adc_bat_level_set:
+	fetch 2,mem_pdatatemp+6		//now voltage	
+	fetcht 2,mem_pdatatemp		//full voltage
+	isub temp,null
+	branch mouse_adc_bat_level_100_percent,positive		// now >= full
+	fetcht 2,mem_pdatatemp+2	        //shutdown voltage
+	isub temp,pdata
+	nbranch mouse_adc_bat_level_0_percent,positive		// now < shutdown
+	branch mouse_adc_bat_level_0_percent,blank			// now = shutdown
+	mul32 pdata,100,rega								// (now - shutdown)*100 /(full - shutdown)
+	fetch 2,mem_pdatatemp
+	fetcht 2,mem_pdatatemp+2
+	isub temp,temp
+	copy rega,pdata
+	idiv temp
+	call get_div_result
+	store 1,mem_le_battery_level_percentage
+	rtn
+
+mouse_adc_bat_level_100_percent:
+	jam 100,mem_le_battery_level_percentage
+	rtn
+mouse_adc_bat_level_0_percent:	
+	jam 0,mem_le_battery_level_percentage
+	rtn
+
+	
+mouse_adc_bat_percent_lowpower_out_vinlpm_multiple:
+	fetch 1,mem_adc_config_flag
+	beq ADC_CONFIG_GPIO,mouse_adc_bat_percent_lowpower_out_gpio_multiple
+	branch mouse_adc_bat_percent_lowpower_out_battery
+	
+
+mouse_adc_set_button_press_flag:
+	fetcht 1,mem_adc_power_flag
+	set1 2,temp
+	storet 1,mem_adc_power_flag
+	rtn	
+
+mouse_adc_clear_button_press_flag:
+	fetcht 1,mem_adc_power_flag
+	set0 2,temp
+	storet 1,mem_adc_power_flag
+	rtn		
+
+mouse_adc_button_press:
+	jam 1,mem_mouse_adc_button_press_flag
+	rtn
+
+mouse_power_down:
+	call mouse_device_led_all_off
+	branch mouse_app_enter_hibernate
+	
+/****************************adc**************************************/	
+
+/****************************gpio******************************************/
+mouse_gpio_init:
+	fetcht 1,mem_eeprom_wp_gpio
+	call gpio_config_output
+	call usb_offline_check_init
+	fetcht 1,mem_lbutton_gpio
+	call mouse_gpio_config_input_pu
+	fetcht 1,mem_rbutton_gpio
+	call mouse_gpio_config_input_pu
+	fetcht 1,mem_mbutton_gpio
+	call mouse_gpio_config_input_pu
+	fetcht 1,mem_bk_button_gpio
+	call mouse_gpio_config_input_pu
+	fetcht 1,mem_fw_button_gpio
+	call mouse_gpio_config_input_pu
+	fetcht 1,mem_dpi_button_gpio
+	call mouse_gpio_config_input_pu
+
+//	fetcht 1,mem_matrix_public_gpio
+//	call mouse_gpio_config_input_pu
+
+	fetcht 1,mem_config_select_device_button_gpio
+	call mouse_gpio_config_input_pu
+
+	fetcht 1,mem_customer_key_gpio
+	call mouse_gpio_config_input_pu
+
+	fetcht 1,mem_whee_a_data_gpio
+	call mouse_gpio_config_input_pu
+
+	fetcht 1,mem_whee_b_data_gpio
+	call mouse_gpio_config_input_pu
+
+	fetcht 1,mem_whee_ta_data_gpio
+	call mouse_gpio_config_input_pu
+	fetcht 1,mem_whee_tb_data_gpio
+	call mouse_gpio_config_input_pu
+
+	fetcht 1,mem_sensor_motion_gpio
+	call mouse_gpio_config_input_pu
+
+	fetcht 1,mem_device_switch_gpio
+	call mouse_gpio_config_input_pu
+	
+
+	fetcht 1,mem_sensor_reset_gpio
+	call gpio_config_output
+
+	fetcht 1,mem_config_low_voltage_alarm_gpio
+	call gpio_config_output
+
+	fetcht 1,mem_config_device_24g_led_gpio
+	call gpio_config_output
+
+	fetcht 1,mem_config_device_bt1_led_gpio
+	call gpio_config_output
+	
+	fetcht 1,mem_config_device_bt2_led_gpio
+	call gpio_config_output
+
+	fetcht 1,mem_dpi_led_gpio
+	call gpio_config_output
+
+	fetcht 1,mem_select_sensor_angle_gpio
+	branch mouse_gpio_config_input_pu
+
+
+mouse_gpio_set_pupd_by_input:
+	sub temp,UI_BUTTON_GPIO_DISABLE,null
+	rtn zero
+	and temp,0x7f,queue
+	fetch 4,core_gpio_in
+	qisolate1 pdata
+	branch mouse_gpio_config_input_pu,true
+	branch mouse_gpio_config_input_pd
+
+	
+mouse_gpio_config_input_pd:
+	set0 gpio_active_bit,temp
+	branch gpio_config_input
+
+mouse_gpio_config_input_pu:
+	set1 gpio_active_bit,temp
+	branch gpio_config_input
+
+mouse_gpio_set_high_impedance:
+	fetch 3,mem_mouse_set_high_impedance_bit_set
+	store 3,mem_pdatatemp
+	arg 20,loopcnt
+	arg 0,temp
+mouse_gpio_set_high_impedance_bit_loop:	
+	fetch 3,mem_pdatatemp
+	isolate1 0,pdata
+	call gpio_set_high_impedance,true
+	fetch 3,mem_pdatatemp
+	lshift pdata,pdata
+	store 3,mem_pdatatemp
+	increase 1,temp
+	loop mouse_gpio_set_high_impedance_bit_loop
+	rtn
+
+
+
+/****************************gpio******************************************/
+
+/*******************spi*****************************/
+mouse_sensor_spi_init:
+	call mouse_spid_init_pin
+	jam 0x73,mem_spi_init_clk
+//	jam 0x1e,mem_spi_init_delay_time
+	call mouse_spi_init
+	branch twspi_enable
+	
+
+mouse_spi_write_flash_cb:
+mouse_spi_init:
+	fetch 1,mem_enable_spi2_flag
+	beq 0,spid_init
+	branch spid2_init
+	
+mouse_spid_init_pin:
+ 	setarg MOUSE_SPI1_CLK_GPIO
+ 	arg gpcfg_spid_sck,temp
+ 	call gpio_config_function_int
+ 	setarg MOUSE_SPI1_SDIO_GPIO
+ 	arg gpcfg_spid_sdio,temp
+ 	branch gpio_config_function_int
+
+mouse_spi_clk_gpio:
+	arg MOUSE_SPI2_CLK_GPIO,temp
+	rtn
+
+mouse_spi_sdio_gpio_pollup:
+	fetch 1,mem_enable_spi2_flag
+	beq 1,mouse_spi2_sdio_gpio_pollup
+mouse_spi1_sdio_gpio_pollup:
+	arg MOUSE_SPI1_SDIO_GPIO,temp
+	branch gpio_config_input_without_wake
+mouse_spi2_sdio_gpio_pollup:
+	arg MOUSE_SPI2_SDIO_GPIO,temp
+	branch gpio_config_input_without_wake
+/*******************spi*****************************/
+
+
+
+
+mouse_motion:
+	bpatch patch1a_4,mem_patch1a
+	disable user
+	setarg 0
+	store 6,mem_mouse_x
+	call mouse_check_sensor_data
+mouse_motion2:
+	call mouse_zwheel
+	call mouse_t_zwheel
+	call mouse_key
+	fetch 1,mem_mouse_key
+	and_into 0x1f,pdata
+	store 1,mem_mouse_key
+	nbranch mouse_drawing_optima_init,user
+	call mouse_drawing_optima
+	branch mouse_no_data_timer_init
+
+	
+
+/*******************wheel*************************/
+mouse_zwheel:
+	fetch 1,mem_mouse_z_data
+	rtn blank	
+	store 1,mem_mouse_z
+	jam 0,mem_mouse_z_data
+	branch enable_user
+	
+mouse_t_zwheel:
+	fetch 1,mem_mouse_tz_data
+	rtn blank	
+	store 1,mem_mouse_tz
+	jam 0,mem_mouse_tz_data
+	branch enable_user
+
+mouse_wheel_check:
+	call mouse_t_wheel_scan
+	call mouse_wheel_scan
+	fetch 1,mem_wheel_tb_new_pinlevel
+	fetcht 1,mem_wheel_tb_old_pinlevel
+	store 1,mem_wheel_tb_old_pinlevel
+	isub temp,null
+	nbranch app_lpm_wake_auto_lock,zero
+	fetch 1,mem_mwheel_b_new_pinlevel
+	fetcht 1,mem_mwheel_b_old_pinlevel
+	store 1,mem_mwheel_b_old_pinlevel
+	isub temp,null
+	nbranch app_lpm_wake_auto_lock,zero
+	rtn
+mouse_t_wheel_scan:
+	fetch 1,mem_whee_ta_data_gpio
+	rtneq GPIO_DISABLE
+	arg 0,rega
+	fetcht 1,mem_whee_ta_data_gpio
+	call gpio_get_bit
+	setflag true,0,rega
+	fetcht 1,mem_whee_tb_data_gpio
+	call gpio_get_bit
+	setflag true,1,rega
+	copy rega,pdata
+	store 1,mem_wheel_tb_new_pinlevel
+	beq 0x01,mouse_t_wheel_scan_judge1
+	beq 0x02,mouse_t_wheel_scan_judge2
+	fetch 1,mem_wheel_tog
+	bbit1 7,mouse_t_wheel_scan_judge3
+	rtn
+
+mouse_t_wheel_scan_judge1:
+	fetch 1,mem_wheel_tb_old_pinlevel
+	beq 0,mouse_t_wheel_scan_judge11
+	beq 3,mouse_t_wheel_scan_judge12
+	rtn
+mouse_t_wheel_scan_judge2:
+	fetch 1,mem_wheel_tb_old_pinlevel
+	beq 0,mouse_t_wheel_scan_judge21
+	beq 3,mouse_t_wheel_scan_judge22
+	rtn
+mouse_t_wheel_scan_judge11:
+	jam 0x82,mem_wheel_tog
+	rtn
+mouse_t_wheel_scan_judge12:
+	jam 0x81,mem_wheel_tog
+	rtn
+mouse_t_wheel_scan_judge21:
+	jam 0x80,mem_wheel_tog
+	rtn
+mouse_t_wheel_scan_judge22:
+	jam 0x83,mem_wheel_tog
+	rtn
+mouse_t_wheel_scan_judge3:
+	fetch 1,mem_wheel_tog
+	set0 7,pdata
+	store 1,mem_wheel_tog
+	beq 0,mouse_t_wheel_scan_judge30
+	beq 1,mouse_t_wheel_scan_judge31
+	beq 2,mouse_t_wheel_scan_judge32
+	beq 3,mouse_t_wheel_scan_judge33
+	rtn
+mouse_t_wheel_scan_judge30:
+	fetch 1,mem_wheel_tb_new_pinlevel
+	beq 3,mouse_wheel_t_forward
+	rtn
+mouse_t_wheel_scan_judge31:
+	fetch 1,mem_wheel_tb_new_pinlevel
+	beq 0,mouse_wheel_t_forward
+	rtn
+mouse_t_wheel_scan_judge32:
+	fetch 1,mem_wheel_tb_new_pinlevel
+	beq 3,mouse_wheel_t_back
+	rtn
+mouse_t_wheel_scan_judge33:
+	fetch 1,mem_wheel_tb_new_pinlevel
+	beq 0,mouse_wheel_t_back
+	rtn
+mouse_wheel_t_forward:
+	fetch 1,mem_mouse_tz_data
+	increase 1,pdata
+	store 1,mem_mouse_tz_data
+	rtn
+mouse_wheel_t_back:
+	fetch 1,mem_mouse_tz_data
+	increase -1,pdata
+	store 1,mem_mouse_tz_data
+	rtn
+
+
+mouse_wheel_scan:
+	fetch 1,mem_whee_a_data_gpio
+	rtneq GPIO_DISABLE
+	arg 0,rega
+	fetcht 1,mem_whee_a_data_gpio
+	call gpio_get_bit
+	setflag true,0,rega
+	fetcht 1,mem_whee_b_data_gpio
+	call gpio_get_bit
+	setflag true,1,rega
+	copy rega,pdata
+	store 1,mem_mwheel_b_new_pinlevel
+	beq 0x01,mouse_wheel_scan_judge1
+	beq 0x02,mouse_wheel_scan_judge2
+	fetch 1,mem_mwheel_tog
+	bbit1 7,mouse_wheel_scan_judge3
+	rtn
+
+mouse_wheel_scan_judge1:
+	fetch 1,mem_mwheel_b_old_pinlevel
+	beq 0,mouse_wheel_scan_judge11
+	beq 3,mouse_wheel_scan_judge12
+	rtn
+mouse_wheel_scan_judge2:
+	fetch 1,mem_mwheel_b_old_pinlevel
+	beq 0,mouse_wheel_scan_judge21
+	beq 3,mouse_wheel_scan_judge22
+	rtn
+mouse_wheel_scan_judge11:
+	jam 0x82,mem_mwheel_tog
+	rtn
+mouse_wheel_scan_judge12:
+	jam 0x81,mem_mwheel_tog
+	rtn
+mouse_wheel_scan_judge21:
+	jam 0x80,mem_mwheel_tog
+	rtn
+mouse_wheel_scan_judge22:
+	jam 0x83,mem_mwheel_tog
+	rtn
+mouse_wheel_scan_judge3:
+	fetch 1,mem_mwheel_tog
+	set0 7,pdata
+	store 1,mem_mwheel_tog
+	beq 0,mouse_wheel_scan_judge30
+	beq 1,mouse_wheel_scan_judge31
+	beq 2,mouse_wheel_scan_judge32
+	beq 3,mouse_wheel_scan_judge33
+	rtn
+mouse_wheel_scan_judge30:
+	fetch 1,mem_mwheel_b_new_pinlevel
+	beq 3,mouse_wheel_forward
+	rtn
+mouse_wheel_scan_judge31:
+	fetch 1,mem_mwheel_b_new_pinlevel
+	beq 0,mouse_wheel_forward
+	rtn
+mouse_wheel_scan_judge32:
+	fetch 1,mem_mwheel_b_new_pinlevel
+	beq 3,mouse_wheel_back
+	rtn
+mouse_wheel_scan_judge33:
+	fetch 1,mem_mwheel_b_new_pinlevel
+	beq 0,mouse_wheel_back
+	rtn
+mouse_wheel_forward:
+	fetch 1,mem_mouse_z_data
+	increase 1,pdata
+	store 1,mem_mouse_z_data
+	rtn
+mouse_wheel_back:
+	fetch 1,mem_mouse_z_data
+	increase -1,pdata
+	store 1,mem_mouse_z_data
+	rtn
+
+
+mouse_wheel_gpio_set_wake:
+	fetcht 1,mem_whee_a_data_gpio
+	call gpio_set_wake_by_current_state
+	fetcht 1,mem_whee_b_data_gpio
+	call gpio_set_wake_by_current_state
+	fetcht 1,mem_whee_ta_data_gpio
+	call gpio_set_wake_by_current_state
+	fetcht 1,mem_whee_tb_data_gpio
+	branch gpio_set_wake_by_current_state
+	
+mouse_before_hibernate_wheel_gpio_set:
+	fetcht 1,mem_whee_a_data_gpio
+	call mouse_gpio_set_pupd_by_input
+	fetcht 1,mem_whee_b_data_gpio
+	call mouse_gpio_set_pupd_by_input
+	fetcht 1,mem_whee_ta_data_gpio
+	call mouse_gpio_set_pupd_by_input
+	fetcht 1,mem_whee_tb_data_gpio
+	branch mouse_gpio_set_pupd_by_input
+
+mouse_wheel_trigger:
+	fetch 2,mem_mouse_z
+	rtn blank
+	jam 1,mem_mouse_wheel_trigger
+	jam 10,mem_mouse_wheel_trigger_timer
+	rtn
+
+mouse_wheel_trigger_timer:
+	arg mem_mouse_wheel_trigger_timer,regc
+	arg mouse_wheel_trigger_disable,regb
+	branch timer_single_step
+mouse_wheel_trigger_disable:
+	jam 0,mem_mouse_wheel_trigger
+	rtn
+
+
+/*
+mouse_set_qdecoder_x:
+	arg MOUSE_DEFAULT_XA_GPIO,temp
+	call mouse_gpio_config_input_pu
+	arg MOUSE_DEFAULT_XA_GPIO,temp
+	call gpio_get_bit
+	rtn true
+	fetch 1,core_qdec_cntx
+	set1 4,pdata
+	store 1,core_qdec_cntx
+	rtn
+*/	
+	
+/*******************wheel*************************/
+
+
+
+/********************dpi******************************/
+mouse_dpi_check:
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	bbit1 MOUSE_ENABLE_DPI_KEY_CONNECT_ADC,mouse_dpi_check_connect_adc
+	fetch 1,mem_dpi_button_gpio
+	rtneq GPIO_DISABLE
+	arg 0,rega
+	jam MOUSE_DPI_KEY,mem_mouse_key_temp
+	fetcht 1,mem_dpi_button_gpio
+	call mouse_dpi_key_check
+	store 1,mem_mouse_dpikey_press_status
+	call mouse_matrix_public_gpio_reset
+	copy rega,pdata
+	bbit1 MOUSE_DPI_KEY,mouse_dpi_down
+	branch mouse_dpi_up
+
+mouse_dpi_check_connect_adc:
+	fetch 1,mem_mouse_adc_button_press_flag
+	branch mouse_dpi_up,blank
+	branch mouse_dpi_down
+	
+mouse_dpi_key_check:
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	bbit1 MOUSE_ENABLE_DPI_KEY_CONNECT_GND,mouse_dpi_key_connect_gnd
+	fetch 1,mem_mouse_ghost_flag
+	nbranch mouse_dpi_check_end,blank
+	branch mouse_dpi_key_connect_matrix
+
+mouse_dpi_check_end:
+	jam DPI_BUTTON_STATE_UP,mem_mouse_dpi_button_state
+	jam 0,mem_mouse_dpikey_press_status
+	rtn
+
+mouse_dpi_key_connect_gnd:
+	fetch 1,mem_mouse_dpikey_press_status
+	branch mouse_check_key_connect_gnd
+
+mouse_dpi_key_connect_matrix:
+	call gpio_get_bit
+	fetcht 1,mem_matrix_public_gpio
+	branch mouse_dpi_key_connect_gnd,true
+	fetcht 1,mem_matrix_public_gpio
+	call gpio_out_active
+	fetcht 1,mem_dpi_button_gpio
+	fetch 1,mem_mouse_dpikey_press_status
+	branch mouse_check_key_connect_gnd
+
+
+mouse_dpi_down:
+	fetch 1,mem_mouse_dpi_button_state
+	rtneq DPI_BUTTON_STATE_DOWN
+	jam DPI_BUTTON_STATE_DOWN,mem_mouse_dpi_button_state
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	rtnbit1 MOUSE_ENABLE_SELECT_DEVICE_BY_DPI_BUTTON
+	rtnbit1 MOUSE_ENABLE_DPI_KEY_LONG_PRESS_DISCONVERY
+	branch mouse_dpi_process
+
+mouse_dpi_up:
+	fetch 1,mem_mouse_dpi_button_state
+	rtneq DPI_BUTTON_STATE_UP
+	jam DPI_BUTTON_STATE_UP,mem_mouse_dpi_button_state
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	bbit1 MOUSE_ENABLE_SELECT_DEVICE_BY_DPI_BUTTON,mouse_dpi_up_next
+	bbit1 MOUSE_ENABLE_DPI_KEY_LONG_PRESS_DISCONVERY,mouse_dpi_up_next
+	rtn
+mouse_dpi_up_next:	
+	fetch 1,mem_mouse_dpi_long_press_flag
+	nbranch mouse_dpi_up_after_long_press,blank
+	fetch 1,mem_select_device_count
+	ncall mouse_dpi_process,blank
+mouse_dpi_up_after_long_press:	
+	jam 0,mem_mouse_dpi_long_press_flag
+	fetch 1,mem_ui_button_timeout
+	store 1,mem_select_device_count	
+	store 1,mem_bt_discovery_count	
+	rtn
+	
+mouse_dpi_process:	
+	bpatch patch1a_5,mem_patch1a
+	call mouse_dpi_ghost_check
+	rtn user
+	fetch 1,mem_mouse_dpi
+	increase 1,pdata
+	and pdata,0x03,pdata
+	store 1,mem_mouse_dpi
+	call mouse_seting_dpi
+	branch mouse_store_device_info_delay
+
+mouse_dpi_ghost_check:
+	disable user
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	rtnbit1 MOUSE_ENABLE_DPI_KEY_CONNECT_GND
+	rtnbit1 MOUSE_ENABLE_DPI_KEY_CONNECT_ADC
+	fetch 1,mem_mouse_lkey_press_status
+	rtn blank
+	fetch 1,mem_mouse_rkey_press_status
+	rtn blank
+	enable user
+	rtn
+	
+
+mouse_dpi_key_check_long_press:
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	bbit1 MOUSE_ENABLE_SELECT_DEVICE_BY_DPI_BUTTON,mouse_select_device_by_dpi_button
+	bbit1 MOUSE_ENABLE_DPI_KEY_LONG_PRESS_DISCONVERY,mouse_discovery_by_dpi_button
+	rtn
+
+
+mouse_select_device_by_dpi_button:
+	fetch 1,mem_mouse_dpi_button_state
+	rtnne DPI_BUTTON_STATE_DOWN	
+	arg mem_select_device_count,regc
+	arg mouse_ready_reconnection_by_dpi_button,regb
+	branch timer_single_step
+
+mouse_ready_reconnection_by_dpi_button:
+	jam 1,mem_mouse_dpi_long_press_flag
+	branch mouse_ready_reconnection_by_button
+
+mouse_discovery_by_dpi_button:
+	fetch 1,mem_mouse_dpi_button_state
+	rtnne DPI_BUTTON_STATE_DOWN	
+	arg mem_bt_discovery_count,regc
+	arg mouse_long_dpi_button_bt_discovery,regb
+	branch timer_single_step
+
+mouse_long_dpi_button_bt_discovery:
+	jam 1,mem_mouse_dpi_long_press_flag
+	branch mouse_long_button_bt_discovery
+
+
+
+mouse_dpi_config:
+	branch mouse_seting_dpi+3
+
+
+mouse_setting_dpi_4_level:
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	rtnbit1 MOUSE_ENABLE_DPI_LEVEL_4
+	fetch 1,mem_mouse_dpi
+	rtnne MOUSE_DPI_LEVEL4
+	jam MOUSE_DPI_LEVEL1,mem_mouse_dpi
+	rtn
+	
+
+mouse_seting_dpi:
+	bpatch patch1a_6,mem_patch1a
+	call mouse_setting_dpi_4_level
+	call mouse_dpi_led_blink_delay
+	fetch 1,mem_config_sensor_type
+	beq P3610,mouse_seting_3610_dpi
+	beq P3212,mouse_seting_3212_dpi
+mouse_seting_dpi_sensor_type:
+	fetch 1,mem_mouse_dpi
+	beq MOUSE_DPI_LEVEL1,mouse_set_cpi0		//1200
+	beq MOUSE_DPI_LEVEL2,mouse_set_cpi1		//1600
+	beq MOUSE_DPI_LEVEL3,mouse_set_cpi2		//800
+	beq MOUSE_DPI_LEVEL4,mouse_set_cpi3		//1000
+mouse_set_cpi1:	//320x+8009
+	fetcht 1,mem_320x_dpi_1
+	branch mouse_dpi_store
+mouse_set_cpi0:
+	fetcht 1,mem_320x_dpi_0
+	branch mouse_dpi_store
+mouse_set_cpi2:
+	fetcht 1,mem_320x_dpi_2
+	branch mouse_dpi_store
+mouse_set_cpi3:
+	fetcht 1,mem_320x_dpi_3
+	branch mouse_dpi_store
+
+mouse_dpi_store:
+	fetch 1,mem_config_sensor_type
+	beq P3065_XY,mouse_3065xy_set_dpi
+	beq MX8650,mouse_3065xy_set_dpi
+	beq KA8,mouse_ka8_set_dpi
+	beq P6520,mouse_ka8_set_dpi
+mouse_dpi_write:		// 3205  1  2  3  4
+	storet 1,mem_mouse_cpi_count
+	setarg MOUSE_DPI_ADDRESS
+	call twspi_read
+	and pdata,0xf8,temp
+	fetch 1,mem_mouse_cpi_count
+	iadd temp,pdata
+	lshift8 pdata,pdata
+	add pdata,MOUSE_DPI_ADDRESS,pdata
+	branch twspi_write
+
+mouse_3065xy_set_dpi:	// 0 1 2 3
+	increase -1,temp
+	branch mouse_dpi_write
+
+mouse_ka8_set_dpi:	// 3 4 5 6
+	increase 2,temp
+	branch mouse_dpi_write
+
+mouse_seting_3212_dpi:
+	fetch 1,mem_mouse_dpi
+	beq MOUSE_DPI_LEVEL1,mouse_set_p3212_cpi0
+	beq MOUSE_DPI_LEVEL2,mouse_set_p3212_cpi1
+	beq MOUSE_DPI_LEVEL3,mouse_set_p3212_cpi2
+	beq MOUSE_DPI_LEVEL4,mouse_set_p3212_cpi3
+mouse_set_p3212_cpi1:
+	fetch 1,mem_3212_dpi_1
+	branch mouse_p3212_dpi
+mouse_set_p3212_cpi0:
+	fetch 1,mem_3212_dpi_0
+	branch mouse_p3212_dpi
+mouse_set_p3212_cpi2:
+	fetch 1,mem_3212_dpi_2
+	branch mouse_p3212_dpi
+mouse_set_p3212_cpi3:
+	fetch 1,mem_3212_dpi_3
+mouse_p3212_dpi:
+	store 1,mem_mouse_cpi_count
+	lshift8 pdata,pdata
+	copy pdata,rega
+	add pdata,MOUSE_P3212_DPI_XADDRESS,pdata
+  	call twspi_write
+ 	copy rega,pdata
+  	add pdata,MOUSE_P3212_DPI_YADDRESS,pdata
+	branch twspi_write
+	
+mouse_seting_3610_dpi:
+	fetch 1,mem_mouse_dpi
+	beq MOUSE_DPI_LEVEL1,mouse_set_p3610_cpi0
+	beq MOUSE_DPI_LEVEL2,mouse_set_p3610_cpi1
+	beq MOUSE_DPI_LEVEL3,mouse_set_p3610_cpi2
+	beq MOUSE_DPI_LEVEL4,mouse_set_p3610_cpi3
+mouse_set_p3610_cpi1:
+	fetch 1,mem_3610_dpi_1
+	branch mouse_p3610_dpi
+mouse_set_p3610_cpi0:
+	fetch 1,mem_3610_dpi_0
+	branch mouse_p3610_dpi
+mouse_set_p3610_cpi2:
+	fetch 1,mem_3610_dpi_2
+	branch mouse_p3610_dpi
+mouse_set_p3610_cpi3:
+	fetch 1,mem_3610_dpi_3
+mouse_p3610_dpi:
+	store 1,mem_mouse_cpi_count
+	call mouse_spi_sdio_gpio_pollup
+	fetch 1,mem_mouse_cpi_count
+mouse_reset_p3610_dpi:
+	add pdata,0x80,pdata
+	lshift8 pdata,pdata
+	add pdata,MOUSE_P3610_DPI_ADDRESS,pdata
+	copy pdata,rega
+mouse_set_sensor_reg:
+	setarg 0xba41
+	call sensor_write
+	nop 4000
+	setarg 0xff7f
+	call sensor_write
+	copy rega,pdata
+	call sensor_write
+	setarg 0x007f
+	call sensor_write
+	setarg 0xb541
+	branch sensor_write
+		
+/********************dpi******************************/		
+
+
+/***********************key******************************/
+
+mouse_key:
+	call mouse_check_key_gpio
+	call mouse_ghost_key_check
+	call mouse_set_mult
+	call mouse_24g_key
+	copy rega,pdata
+	fetcht 1,mem_mouse_key_last
+	store 1,mem_mouse_key_last
+	store 1,mem_mouse_key
+	ixor temp,pdata
+	sub pdata,0,null
+	rtn zero
+	branch enable_user
+
+mouse_24g_key:
+	rtnmark0 mark_24g
+	copy rega,pdata
+	rtn blank
+	store 1,mem_mouse_key
+	branch enable_user
+
+mouse_ghost_key_check:
+	jam 0,mem_mouse_matrix_key_cow_count
+	jam 0,mem_mouse_matrix_key_row_count
+	jam 0,mem_mouse_ghost_flag
+	copy pdata,temp
+	call mouse_ghost_key_check_L_BK
+	call mouse_ghost_key_check_M_FW
+	call mouse_ghost_key_check_BK_FW
+	call mouse_ghost_key_check_LMR
+	fetch 1,mem_mouse_matrix_key_row_count
+	rtn blank
+	fetch 1,mem_mouse_matrix_key_cow_count
+	rtn blank
+	jam 1,mem_mouse_ghost_flag
+	fetch 1,mem_mouse_key_last		// matrix have ghost key
+	copy pdata,rega
+	rtn
+
+mouse_ghost_key_check_L_BK:
+	and temp,MOUSE_L_BK_BUTTON,pdata
+	beq MOUSE_L_BK_BUTTON,mouse_matrix_cow_more_than_one_key
+	rtn
+mouse_ghost_key_check_M_FW:
+	and temp,MOUSE_M_FW_BUTTON,pdata
+	beq MOUSE_M_FW_BUTTON,mouse_matrix_cow_more_than_one_key
+	rtn
+mouse_ghost_key_check_BK_FW:
+	and temp,MOUSE_BK_FW_BUTTON,pdata
+	beq MOUSE_BK_FW_BUTTON,mouse_matrix_row_more_than_one_key
+	rtn	
+
+mouse_ghost_key_check_LMR:
+	and temp,MOUSE_LMR_BUTTON,pdata	// key LMR press
+	beq MOUSE_LR_BUTTON,mouse_matrix_row_more_than_one_key
+	beq MOUSE_LM_BUTTON,mouse_matrix_row_more_than_one_key
+	beq MOUSE_RM_BUTTON,mouse_matrix_row_more_than_one_key
+	beq MOUSE_LMR_BUTTON,mouse_matrix_row_more_than_one_key
+	rtn
+
+
+mouse_matrix_row_more_than_one_key:
+	jam 1,mem_mouse_matrix_key_row_count
+	rtn
+
+mouse_matrix_cow_more_than_one_key:
+	jam 1,mem_mouse_matrix_key_cow_count
+	rtn
+
+mouse_key_check_once:
+	jam 0x03,mem_mouse_lkey_press_status
+	jam 0x03,mem_mouse_mkey_press_status
+	jam 0x03,mem_mouse_rkey_press_status
+	call mouse_check_key_gpio
+	jam 0,mem_mouse_lkey_press_status
+	jam 0,mem_mouse_mkey_press_status
+	jam 0,mem_mouse_rkey_press_status
+	rtn
+	
+mouse_check_key_gpio:
+	bpatch patch1a_7,mem_patch1a
+	arg 0,rega
+	call mouse_check_lkey_gpio
+	call mouse_check_rkey_gpio
+	call mouse_check_mkey_gpio
+	call mouse_check_bkkey_gpio
+	call mouse_check_fwkey_gpio
+	call mouse_check_customerkey_gpio
+	copy rega,pdata
+	rtn
+
+mouse_check_lkey_gpio:
+	jam MOUSE_L_KEY,mem_mouse_key_temp
+	fetcht 1,mem_lbutton_gpio
+	fetch 1,mem_mouse_lkey_press_status
+	call mouse_check_key_connect_gnd
+	store 1,mem_mouse_lkey_press_status
+	rtn
+
+mouse_check_rkey_gpio:
+	jam MOUSE_R_KEY,mem_mouse_key_temp
+	fetcht 1,mem_rbutton_gpio
+	fetch 1,mem_mouse_rkey_press_status
+	call mouse_check_key_connect_gnd
+	store 1,mem_mouse_rkey_press_status
+	rtn
+	
+mouse_check_mkey_gpio:
+	jam MOUSE_M_KEY,mem_mouse_key_temp
+	fetcht 1,mem_mbutton_gpio
+	fetch 1,mem_mouse_mkey_press_status
+	call mouse_check_key_connect_gnd
+	store 1,mem_mouse_mkey_press_status
+	rtn
+
+mouse_check_bkkey_gpio:
+	fetch 1,mem_bk_button_gpio
+	rtneq GPIO_DISABLE
+	jam MOUSE_BK_KEY,mem_mouse_key_temp
+	fetcht 1,mem_bk_button_gpio
+	call gpio_get_bit
+	branch mouse_check_bk_button_connect_gnd,true
+	fetcht 1,mem_matrix_public_gpio
+	call gpio_out_active
+	fetcht 1,mem_bk_button_gpio
+	fetch 1,mem_mouse_bkkey_press_status
+	call mouse_check_key_connect_gnd
+mouse_check_bkkey_gpio_end:	
+	store 1,mem_mouse_bkkey_press_status
+	branch mouse_matrix_public_gpio_reset
+
+mouse_check_bk_button_connect_gnd:
+	fetcht 1,mem_matrix_public_gpio
+	fetch 1,mem_mouse_bkkey_press_status
+	call mouse_check_key_connect_gnd
+	branch mouse_check_bkkey_gpio_end
+
+mouse_check_fwkey_gpio:
+	fetch 1,mem_fw_button_gpio
+	rtneq GPIO_DISABLE
+	jam MOUSE_FW_KEY,mem_mouse_key_temp
+	fetcht 1,mem_fw_button_gpio
+	call gpio_get_bit
+	branch mouse_check_fw_button_connect_gnd,true
+	fetcht 1,mem_matrix_public_gpio
+	call gpio_out_active
+	fetcht 1,mem_fw_button_gpio
+	fetch 1,mem_mouse_fwkey_press_status
+	call mouse_check_key_connect_gnd
+mouse_check_fwkey_gpio_end:	
+	store 1,mem_mouse_fwkey_press_status
+	branch mouse_matrix_public_gpio_reset
+
+mouse_check_fw_button_connect_gnd:
+	fetcht 1,mem_matrix_public_gpio
+	fetch 1,mem_mouse_fwkey_press_status
+	call mouse_check_key_connect_gnd
+	branch mouse_check_fwkey_gpio_end	
+
+mouse_matrix_public_gpio_reset:	
+	fetcht 1,mem_matrix_public_gpio
+	call gpio_out_inactive
+	fetcht 1,mem_matrix_public_gpio
+	branch mouse_gpio_config_input_pu
+
+mouse_check_customerkey_gpio:
+	jam 0,mem_customer_key
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	rtnbit0 MOUSE_ENABLE_KEYBOARD
+	fetch 1,mem_customer_key_gpio
+	rtneq GPIO_DISABLE
+	jam MOUSE_CUSTOMER_KEY,mem_mouse_key_temp
+	fetcht 1,mem_customer_key_gpio
+	fetch 1,mem_mouse_customerkey_press_status
+	call mouse_check_key_connect_gnd
+	store 1,mem_mouse_customerkey_press_status
+	copy rega,pdata
+	bbit1 MOUSE_CUSTOMER_KEY,mouse_customerkey_press
+	call mouse_customerkey_release
+mouse_check_customerkey_gpio_exit:
+	fetch 1,mem_customer_data_trigger
+	store 1,mem_customer_data_trigger_last
+	rtn
+
+
+mouse_customerkey_press:
+	jam 1,mem_customer_data_trigger
+	call mouse_customer_key_need_send
+	branch mouse_check_customerkey_gpio_exit
+
+mouse_customerkey_release:
+	jam 0,mem_customer_data_trigger
+	fetch 1,mem_customer_data_trigger_last
+	rtn blank
+mouse_customer_key_need_send:	
+	jam 1,mem_customer_key
+	rtn	
+
+
+mouse_check_matrix_button_connect_gnd:	
+	call gpio_get_bit
+	fetcht 1,mem_mouse_key_temp
+	copy temp,queue	
+	branch  mouse_key_press,true
+	branch mouse_key_release
+
+mouse_check_key_connect_gnd:	
+	lshift pdata,pdata
+	copy pdata,regb
+	call gpio_get_bit
+	setflag true,0,regb
+	and regb,0x07,pdata
+	fetcht 1,mem_mouse_key_temp
+	copy temp,queue
+	beq 0x07,mouse_key_press		//  about 17~22ms three times
+	beq 0x00,mouse_key_release
+	rtn
+
+mouse_key_release:
+	qset0 rega
+	rtn		
+
+mouse_key_press:
+	qset1 rega
+	rtn
+/*************************key***************************************/
+
+/**********************sensor******************************/	
+mouse_init_sunt:
+	bpatch patch1b_0,mem_patch1b
+	call mouse_sensor_spi_init
+	rtn wake
+	call mouse_sensor_poweron
+mouse_init_sensor:
+	call mouse_init_3610sensor_reset
+	call mouse_read_sensor_id
+	beq P3610_ID1,mouse_init_p3610
+	beq P32XX_ID1,mouse_init_p32xx_id2_judge
+	beq P3065_ID1,mouse_init_p3065
+	call mouse_twspi_reset
+	nop 6900
+	branch mouse_init_sensor
+mouse_twspi_reset:
+	fetch 1,mem_enable_spi2_flag
+	beq 1,mouse_twspi_reset2
+	branch mouse_twspi_reset1
+
+mouse_twspi_reset2:
+	setarg MOUSE_SPI2_CLK_GPIO
+	call twspi2_reset
+	branch mouse_spid_init_pin
+mouse_twspi_reset1:
+	setarg MOUSE_SPI1_CLK_GPIO
+	call twspi_reset 
+	branch mouse_spid_init_pin
+
+mouse_read_sensor_id:
+	setarg PAN_REG_PID_H
+	call twspi_read
+	store 1,mem_sensor_id2
+	setarg PAN_REG_PID_L
+	call twspi_read
+	store 1,mem_sensor_id1
+	rtn
+
+/***************3610************************/
+mouse_init_3610sensor_reset:
+	fetch 1,mem_sensor_reset_gpio
+	rtneq GPIO_DISABLE
+	fetcht 1,mem_sensor_reset_gpio
+	call gpio_out_active
+	call delay_10ms
+	fetcht 1,mem_sensor_reset_gpio
+	call gpio_out_inactive
+	branch delay_10ms
+
+mouse_init_p3610:
+	jam P3610,mem_config_sensor_type
+	setarg 0xba41
+	call sensor_write
+	setarg 0x0d11
+	call sensor_write
+	setarg 0x041b
+	call sensor_write
+	setarg 0x041c
+	call sensor_write
+	setarg 0x0f1d
+	call sensor_write
+	setarg 0x0032
+	call sensor_write
+	setarg 0xb541
+	branch sensor_write
+/***************3610************************/	
+	
+
+mouse_init_p32xx_id2_judge:
+	fetch 1,mem_sensor_id2
+	beq P_MX8650,mouse_mx8650_init_param
+	beq P8009_ID2,mouse_8009_init_param
+	beq P3205_TJ3T_ID2,mouse_3205_3t_init_param
+	beq P3204_TJ3L_ID2,mouse_3204_3l_init_param
+	beq P3212_ID2,mouse_3212_init_param
+	beq PKA8_ID2,mouse_ka8_init_param
+	branch mouse_init_sensor
+	
+mouse_mx8650_init_param:
+	jam MX8650,mem_config_sensor_type
+	setarg 0x8006
+	call twspi_write
+	call delay_10ms
+	arg mem_sensor_8650_init,regc
+	call mouse_sensor_wr_seq
+	branch mouse_dpi_config
+
+mouse_8009_init_param:
+	setarg 0x16
+	call twspi_read
+	sub pdata,0xbd,null 
+	nbranch mouse_init_sunt,zero
+	setarg 0x19
+	call twspi_read
+	sub pdata,0x55,null 
+	nbranch mouse_init_sunt,zero
+	setarg 0x1b
+	call twspi_read
+	sub pdata,0x1d,null 
+	nbranch mouse_init_sunt,zero
+	jam P8009,mem_config_sensor_type
+	arg mem_sensor_8009_init,regc
+	branch mouse_sensor_wr_seq
+
+mouse_3205_3t_init_param:
+	jam P3205,mem_config_sensor_type
+	arg mem_sensor_3205_init,regc
+	call mouse_sensor_wr_seq
+	arg mem_sensor_32xx_init,regc
+	call mouse_sensor_wr_seq
+	setarg 0x0943
+	call twspi_write
+	arg mem_sensor_32xx_init_1,regc
+	branch mouse_sensor_wr_seq	
+
+mouse_3204_3l_init_param:
+	jam P3204,mem_config_sensor_type
+	arg mem_sensor_3204_init,regc
+	call mouse_sensor_wr_seq
+	arg mem_sensor_32xx_init,regc
+	call mouse_sensor_wr_seq
+	arg mem_sensor_32xx_init_1,regc
+	branch mouse_sensor_wr_seq	
+
+mouse_3212_init_param:
+	jam P3212,mem_config_sensor_type
+	arg mem_sensor_3212_init,regc
+	branch mouse_sensor_wr_seq
+
+mouse_ka8_init_param:
+	jam KA8,mem_config_sensor_type	
+	arg mem_sensor_ka8_init,regc
+	branch mouse_sensor_wr_seq
+
+mouse_init_p3065:
+	call mouse_sensor_poweron
+	fetch 1,mem_sensor_id2
+	beq P3065_XY_ID2,mouse_p3065xy_init_param
+	beq P3065_ID2,mouse_p3065_init_param
+	branch mouse_init_sensor
+	
+mouse_p3065_init_param:	
+	jam P3065,mem_config_sensor_type
+	rtn
+
+mouse_p3065xy_init_param:
+	jam P3065_XY,mem_config_sensor_type
+	rtn
+
+mouse_sensor_wr_seq:
+	ifetch 2,regc
+	arg 0xffff,temp
+	isub temp,null
+	rtn zero
+	call twspi_write
+	increase 2,regc
+	branch mouse_sensor_wr_seq
+	
+mouse_sensor_poweron:
+	call mouse_sensor_spi_init
+	arg mem_sensor_poweron_init,regc
+	call mouse_sensor_wr_seq
+	branch mouse_dpi_config
+
+mouse_sensor_powerdown:
+	call mouse_init_sunt
+	call mouse_sensor_spi_init
+mouse_sensor_powerdown_next:
+	setarg 0x0806
+	branch twspi_write
+/*********sensor init*************/	
+
+
+
+/*********sensor motion*************/
+
+mouse_check_sensor_data:
+	fetch 1,mem_spi_write_flash_sm
+	rtnne FLASH_SM_NO_BUYS
+	fetch 1,mem_config_sensor_type
+	beq P3205,mouse_p32xx_sensor_motion
+	beq P3065,mouse_p32xx_sensor_motion
+	beq KA8,mouse_p32xx_sensor_motion
+	beq P3204,mouse_p32xx_sensor_motion
+	beq P3212,mouse_p3212_sensor_motion
+	beq P3610,mouse_p3610_sensor_motion
+	beq P3065_xy,mouse_p32xx_sensor_motion
+	beq P8009,mouse_p8009_sensor_motion	
+	branch mouse_p32xx_sensor_motion
+
+
+mouse_p32xx_sensor_motion:
+	call mouse_clear_sensor_data
+	disable user
+	fetch 1,mem_sensor_motion_gpio
+	beq GPIO_DISABLE,mouse_p32xx_sensor_motion_2
+	fetcht 1,mem_sensor_motion_gpio
+	call gpio_get_bit
+	nrtn true
+mouse_p32xx_sensor_motion_2:
+	setarg PAN_REG_PID_L
+	call twspi_read
+	bne P32XX_ID1,mouse_p3065_judge   
+mouse_p32xx_sensor_motion_1:
+	setarg PAN_REG_MOTION_STAUS
+	call twspi_read
+	rtnbit0 7
+	call mouse_read_sensor_common
+	fetch 1,mem_mouse_x
+	call mouse_data_extsign
+	store 2,mem_mouse_x
+	fetch 1,mem_mouse_y
+	call mouse_data_extsign
+	store 2,mem_mouse_y
+	fetch 1,mem_config_sensor_angle
+	beq MOUSE_6CLK_ANGLE,mouse_motion32xx_6clk_direction_selection
+	beq MOUSE_9CLK_ANGLE,mouse_motion32xx_9clk_direction_selection
+	beq MOUSE_12CLK_ANGLE,mouse_motion32xx_12clk_direction_selection
+	beq MOUSE_3CLK_ANGLE,mouse_motion32xx_3clk_direction_selection
+	rtn
+
+mouse_p3065_judge:
+	beq P3065_ID1,mouse_p32xx_sensor_motion_1
+	branch mouse_twspi_reset
+	
+mouse_motion32xx_6clk_direction_selection:
+	call mouse_motion_6clk_direction_dispose
+	branch mouse_sensor_sdio_low
+mouse_motion32xx_9clk_direction_selection:
+	call mouse_motion_9clk_direction_dispose
+	branch mouse_sensor_sdio_low
+mouse_motion32xx_12clk_direction_selection:
+	call mouse_motion_12clk_direction_dispose
+	branch mouse_sensor_sdio_low
+mouse_motion32xx_3clk_direction_selection:
+	call mouse_motion_3clk_direction_dispose
+	branch mouse_sensor_sdio_low
+
+
+	
+mouse_p3212_sensor_motion:
+	call mouse_clear_sensor_data
+	fetch 1,mem_sensor_motion_gpio
+	beq GPIO_DISABLE,mouse_p3212_sensor_motion_1
+	fetcht 1,mem_sensor_motion_gpio
+	call gpio_get_bit
+	nrtn true
+mouse_p3212_sensor_motion_1:	
+	setarg PAN_REG_PID_L
+	call twspi_read
+	bne P32XX_ID1,mouse_twspi_reset
+mouse_p3212_sensor_motion_2:
+	setarg PAN_REG_MOTION_STAUS
+	call twspi_read
+	rtnbit0 7
+	call mouse_read_sensor_common
+	call mouse_read_3212sensor_xy_high
+	store 1,mem_mouse_xy_h
+	rshift4 pdata,pdata
+	call mouse_data_extsign_bit3
+	store 1,mem_mouse_x+1
+	fetch 1,mem_mouse_xy_h
+	and pdata,0x0f,pdata
+	call mouse_data_extsign_bit3
+	store 1,mem_mouse_y+1
+	fetch 1,mem_config_sensor_angle
+	beq MOUSE_6CLK_ANGLE,mouse_motion_6clk_direction_dispose
+	beq MOUSE_9CLK_ANGLE,mouse_motion_9clk_direction_dispose
+	beq MOUSE_12CLK_ANGLE,mouse_motion_12clk_direction_dispose
+	beq MOUSE_3CLK_ANGLE,mouse_motion_3clk_direction_dispose
+	rtn
+
+mouse_read_3212sensor_xy_high:
+	setarg 0x12
+	branch twspi_read
+
+
+
+	
+mouse_p3610_sensor_motion:
+	disable user
+	fetch 1,mem_sensor_motion_gpio
+	beq GPIO_DISABLE,mouse_p3610_sensor_motion_1
+	fetcht 1,mem_sensor_motion_gpio
+	call gpio_get_bit
+	nrtn true
+mouse_p3610_sensor_motion_1:
+	arg PAN_REG_MOTION_STAUS,regb
+	call mouse_p3610sensor_read
+	rtnbit0 7
+	arg PAN_REG_PID_L,regb
+	call mouse_p3610sensor_read
+	store 1,mem_sensor_id1
+	bne P3610_ID1,mouse_init_3610sensor_reset
+	fetch 1,mem_mouse_move_flag
+	call mouse_read_sensor3610_data,blank
+	jam 1,mem_mouse_move_flag
+	call mouse_read_sensor3610_data
+	fetch 1,mem_mouse_xy_h
+	rshift4 pdata,pdata
+	call mouse_data_extsign_bit3
+	store 1,mem_mouse_x+1
+	fetch 1,mem_mouse_xy_h
+	and pdata,0x0f,pdata
+	call mouse_data_extsign_bit3
+	store 1,mem_mouse_y+1
+	fetch 1,mem_config_sensor_angle
+	beq 0,mouse_motion3610_6clk_direction_selection
+	beq 1,mouse_motion3610_9clk_direction_selection
+	beq 2,mouse_motion3610_12clk_direction_selection
+	beq 3,mouse_motion3610_3clk_direction_selection
+	rtn
+
+//input regb  output:pdata
+mouse_p3610sensor_read:
+	call spi_ncs_enable
+	nop 100
+	copy regb,pdata
+	call twspi_read
+	copy pdata,regb
+	call spi_ncs_disable
+	nop 100
+	copy regb,pdata
+	rtn		
+
+mouse_read_sensor3610_data:
+	call spi_ncs_enable
+	call mouse_read_sensor_common
+	arg 5,pdata
+	call twspi_read
+	store 1,mem_mouse_xy_h
+	arg 7,pdata
+	call twspi_read
+	store 1,mem_sensor_shutter_hi
+	arg 8,pdata
+	call twspi_read
+	store 1,mem_sensor_shutter_lo
+	branch spi_ncs_disable
+
+
+mouse_motion3610_6clk_direction_selection:
+	call mouse_motion_6clk_direction_dispose
+	branch mouse_3610_smart_select
+	
+mouse_motion3610_12clk_direction_selection:
+	call mouse_motion_12clk_direction_dispose
+	branch mouse_3610_smart_select
+	
+mouse_motion3610_9clk_direction_selection:
+	call mouse_motion_9clk_direction_dispose
+	branch mouse_3610_smart_select
+	
+mouse_motion3610_3clk_direction_selection:
+	call mouse_motion_3clk_direction_dispose
+	branch mouse_3610_smart_select
+	
+mouse_3610_smart_select:
+	fetch 1,mem_sensor_smart_flag
+	beq P3610_SMART_ENABLE,mouse_3610_smart_disable
+	beq P3610_SMART_DISABLE,mouse_3610_smart_enable
+	rtn
+
+mouse_3610_smart_enable:
+	fetch 1,mem_sensor_shutter_hi
+	rtnne 0
+	fetch 1,mem_sensor_shutter_lo
+	sub pdata,45,null
+	rtn positive
+	jam P3610_SMART_ENABLE,mem_sensor_smart_flag
+	setarg 0xba41
+	call sensor_write
+	setarg 0x0032
+	call sensor_write
+	setarg 0xb541
+	branch sensor_write
+mouse_3610_smart_disable:
+	fetch 1,mem_sensor_shutter_hi
+	rtnne 0
+	fetch 1,mem_sensor_shutter_lo
+	sub pdata,45,null
+	nrtn positive
+	jam P3610_SMART_DISABLE,mem_sensor_smart_flag
+	setarg 0xba41
+	call sensor_write
+	setarg 0x8032
+	call sensor_write
+	setarg 0xb541
+	branch sensor_write
+
+
+
+mouse_p8009_sensor_motion:
+	call mouse_clear_sensor_data
+	disable user
+	setarg PAN_REG_MOTION_STAUS
+	call twspi_read
+	rtnbit0 7
+	setarg PAN_REG_OPRATION_STATE
+	call twspi_read
+	branch mouse_p32xx_sensor_motion_1+3,blank
+	setarg 0
+	store 6,mem_mouse_x
+	rtn
+
+
+
+mouse_sensor_set_angle:
+	fetch 1,mem_sensor_angle_default
+	store 1,mem_config_sensor_angle
+	fetch 1,mem_select_sensor_angle_gpio
+	rtneq GPIO_DISABLE
+	fetcht 1,mem_select_sensor_angle_gpio
+	call mouse_gpio_config_input_pu
+	fetcht 1,mem_select_sensor_angle_gpio
+	call gpio_get_bit
+	call mouse_sensor_switch_angle,true
+	branch mouse_gpio_config_input_pd
+mouse_sensor_switch_angle:
+	fetch 1,mem_sensor_angle_switch
+	store 1,mem_config_sensor_angle
+	rtn
+	
+mouse_motion_6clk_direction_dispose:
+	fetch 2,mem_mouse_x
+	sub pdata,0,pdata
+	store 2,mem_mouse_x
+	branch enable_user
+mouse_motion_12clk_direction_dispose:
+	fetch 2,mem_mouse_y
+	sub pdata,0,pdata
+	store 2,mem_mouse_y
+	branch enable_user
+mouse_motion_9clk_direction_dispose:
+	fetch 2,mem_mouse_y
+	sub pdata,0,pdata
+	store 2,mem_mouse_y
+	fetch 2,mem_mouse_x
+	sub pdata,0,pdata
+	store 2,mem_mouse_x
+	call mouse_sensor_data_swap_places
+	branch enable_user
+mouse_motion_3clk_direction_dispose:
+	call mouse_sensor_data_swap_places
+	branch enable_user
+
+mouse_sensor_data_swap_places:
+	fetch 2, mem_mouse_y
+	fetcht 2,mem_mouse_x
+	store 2,mem_mouse_x
+	storet 2,mem_mouse_y
+	rtn
+
+	
+mouse_clear_sensor_data:
+	fetch 1,mem_mouse_move_flag
+	call mouse_read_sensor_common,blank
+	jam 1,mem_mouse_move_flag
+	rtn
+
+mouse_clear_sensor_data_by_reset:
+	jam 1,mem_mouse_clear_sensor_data_flag
+	call le_set_config_more_data
+mouse_init_sensor_reset:
+	call spi_ncs_enable
+	call mouse_init_sunt
+	branch spi_ncs_disable
+
+mouse_data_xy_release:
+	fetch 1,mem_sensor_motion_gpio
+	rtnne GPIO_DISABLE
+	fetch 1,mem_mouse_long_mult_flag
+	rtnne 1
+	setarg 0
+	store 1,mem_mouse_long_mult_flag
+	store 4,mem_mouse_x
+	branch mouse_init_sensor_reset
+
+mouse_data_extsign:
+	rtnbit0 7
+	arg 0xff00,temp
+	ior temp,pdata
+	rtn
+
+mouse_data_extsign_bit3:
+	rtnbit0 3
+	arg 0xf0,temp
+	ior temp,pdata
+	rtn
+
+mouse_read_sensor_common:
+	arg PAN_REG_DELTA_X,pdata
+	call twspi_read
+	store 2,mem_mouse_x
+	arg PAN_REG_DELTA_Y,pdata
+	call twspi_read
+	store 2,mem_mouse_y
+	rtn
+
+	/* sdio high will cost extra 9mA */
+mouse_sensor_sdio_low:
+	arg MOUSE_SPI1_SDIO_GPIO,temp
+	fetch 1,mem_enable_spi2_flag
+	ncall mouse_sensor_sdio_low2,blank
+	call gpio_get_bit
+	rtn true
+	setarg 0x0a
+	call twspi_read
+	nop 1000
+	branch mouse_sensor_sdio_low
+mouse_sensor_sdio_low2:
+	arg MOUSE_SPI2_SDIO_GPIO,temp
+	rtn
+
+mouse_set_sdio_high:		// make sdio high to make 100uA less
+	setarg 0x8100
+	branch twspi_write
+	
+/****************************sensor*************************/
+
+/*******************mouse fast connect******************/
+mouse_buletooth_fast_conn_init:
+	jam 0xff,mem_mouse_bluetooth_fast_conn_flag
+	fetch 1,mem_mouse_bluetooth_type
+	bbit1 MODE_4_MOUSE,mouse_ble_fast_conn_init
+	bbit1 MODE_3_MOUSE,mouse_bt_fast_conn_init
+mouse_ble_fast_conn_init:	
+	jam 0x34,mem_xrecord_mode
+	setarg 0x0f0f0f
+	store 3,mem_le_lap
+	store 3,mem_le_lap+3
+	branch mouse_start_reconnect
+
+mouse_bt_fast_conn_init:
+	jam 0x33,mem_xrecord_mode
+	arg mem_mouse_compare_addr_ff,contr
+	call mouse_load_bt_device
+	branch mouse_start_reconnect
+
+mouse_buletooth_fast_conn_end:
+	bpatch patch1b_1,mem_patch1b
+	call mouse_select_reconn_device
+	call mouse_bluetooth_fast_conn_disable
+	fetch 1,mem_device_flag
+	beq MODE_BT_DEVICE1,mouse_device1_check_auto_discover
+	beq MODE_BT_DEVICE2,mouse_device2_check_auto_discover
+	rtn
+mouse_device1_check_auto_discover:
+	fetch 6,mem_device1_addr
+	branch mouse_device_check_auto_discover
+mouse_device2_check_auto_discover:
+	fetch 6,mem_device2_addr
+mouse_device_check_auto_discover:	
+	fetcht 6,mem_mouse_compare_addr_ff
+	isub temp,null
+	branch mouse_start_discovery ,zero
+	branch mouse_start_reconnect_device
+
+mouse_bt_fast_conn_send_device_name:
+	call mouse_bluetooth_fast_conn_disable
+	fetch 1,mem_local_name_length
+	increase 3,pdata
+	copy pdata,rega
+	call hid_malloc_tx_buff
+	fetch 2,mem_hid_int_remote_cid
+	istore 2,contw
+	setarg 0x04a1		// report id = 4
+	istore 2,contw
+	fetch 1,mem_local_name_length
+	increase 1,pdata
+	copy pdata,loopcnt
+	arg mem_local_name_length,contr
+	branch memcpy
+
+mouse_bluetooth_fast_conn_disable:
+	jam 0x5a,mem_mouse_bluetooth_fast_conn_flag
+	rtn	
+/*******************mouse fast connect******************/
+
+mouse_stop_bluetooth_mode:
+	fetch 2,mem_ui_state_map
+	bbit1 UI_STATE_BT_RECONNECT,mouse_cancel_reconnect
+	bbit1 UI_STATE_BLE_CONNECTED,app_ble_disconnect
+	bbit1 UI_STATE_BT_CONNECTED,app_bt_disconnect
+	branch mouse_stop_discovery
+
+mouse_disconnect:
+	setarg 0
+	store 2,mem_mouse_no_data_timer
+	fetch 2,mem_ui_state_map
+	bbit1 UI_STATE_BLE_CONNECTED,app_ble_disconnect
+	fetch 2,mem_ui_state_map
+	bbit1 UI_STATE_BT_CONNECTED,app_bt_disconnect
+	rtn
+	
+mouse_cancel_reconnect:
+	call mouse_bt_cannel_reconn_enable
+	branch check_51cmd_bb_reconn_cancel
+
+mouse_check_125Hz:
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	rtnbit0 MOUSE_ENABLE_BT_125Hz
+mouse_bluetooth_125Hz:
+	nbranch mouse_bluetooth_125hz_clear,user
+	fetch 1,mem_bluetooth_125hz_cnt
+	increase 1,pdata
+	and_into 0x0f,pdata
+	store 1,mem_bluetooth_125hz_cnt
+	nrtn blank
+mouse_bluetooth_125hz_clear:
+	jam 0,mem_bluetooth_125hz_cnt
+	disable user
+	rtn
+
+
+mouse_current_mult_update:
+	fetch 1,mem_sensor_motion_gpio
+	rtnne GPIO_DISABLE
+	jam 0,mem_lpm_mult
+	jam 30,mem_mouse_current_mult_timer
+	rtn
+
+
+mouse_priority_bb_event:	
+	bpatch patch1b_2,mem_patch1b
+	copy regc,pdata
+	beq BT_EVT_LE_CONNECTED,mouse_le_bb_event_connected
+	beq BT_EVT_BB_CONNECTED,mouse_bb_event_connected
+	beq BT_EVT_LE_DISCONNECTED,mouse_le_bb_disconnected
+	beq BT_EVT_BB_DISCONNECTED,mouse_bb_disconnected
+	beq BT_EVT_SETUP_COMPLETE,mouse_bt_event_setup_complete
+	beq BT_EVT_BUTTON_LONG_PRESSED,mouse_bb_event_discovery_btn
+	beq BT_EVT_HID_HANDSHAKE,mouse_bt_hid_handshake
+	beq BT_EVT_HID_CONNECTED,mouse_bt_hid_connected
+	beq BT_EVT_RECONN_FAILED,mouse_bb_event_reconn_failed
+	beq BT_EVT_RECONN_PAGE_TIMEOUT,mouse_bb_event_reconn_timeout
+	beq BT_EVT_SWITCH_NOT_ACCEPT,app_bt_role_switch	
+	beq BT_EVT_SWITCH_SUCCESS_MASTER,mouse_enter_sniff_check
+	beq BT_EVT_SNIFF_NOT_ACCEPT,mouse_sniff_not_accept
+	beq BT_EVT_PINCODE_REQ,mouse_bb_event_pincode
+	beq BT_EVT_REMOTE_UNSNIFF,app_start_auto_sniff
+	beq BT_EVT_LE_PAIRING_SUCCESS,mouse_le_pairing_success
+	beq BT_EVT_LE_ENC_INFO,mouse_le_enc_info
+	beq BT_EVT_LE_START_ENC,mouse_le_ll_start_encryt
+	beq BT_EVT_LE_PAIRING_COMPLETE,mouse_le_pairing_complete
+	beq BT_EVT_LE_PARSE_CONN_PAPA_UPDATE_RSP,mouse_le_conn_param_update_rsp_recieved
+	beq BT_EVT_VIRTUAL_CABLE_UNPLUG,mouse_irtual_cable_unplug
+	beq BT_EVT_24G_PAIRING_COMPLETE,mouse_24g_pairing_complete
+	beq BT_EVT_24G_ATTEMPT_FAIL,mouse_24g_attempt_fail
+	beq BT_EVT_24G_ATTEMPT_SUCCESS,mouse_24g_attempt_success
+	beq BT_EVT_LE_PARSE_CONN_PARAM_ACCEPTED,mouse_le_parse_conn_param_accepted
+	rtn
+
+/***************************le*************************/
+mouse_le_bb_event_connected:
+	jam 0,mem_mouse_long_mult_flag
+	call mouse_init_sensor_reset
+	jam 1,mem_mouse_le_bb_connected_flag
+	call mouse_24g_first_store_reconn_info
+	fetch 1,mem_mouse_le_reconnect_flag
+	nbranch mouse_le_bb_event_connected_next,blank
+	jam 0x14,mem_mouse_send_secutiry_request_timer
+mouse_le_bb_event_connected_next:
+	fetch APP_DISC_RSN_SIZE,mem_app_disconn_reason_flag
+	set0 APP_DISC_BY_BUTTON ,pdata
+	store APP_DISC_RSN_SIZE,mem_app_disconn_reason_flag
+	setarg 0
+	store 2,mem_mouse_direct_timer
+	fetch 2,mem_le_battery_level_updata_timer_init
+	store 2,mem_le_battery_level_updata_timer
+	call mouse_no_data_timer_init
+	branch mouse_stop_discovery
+
+mouse_le_bb_disconnected:
+	jam 0,mem_mouse_le_bb_connected_flag
+	setarg LE_INTERVAL_7_5MS
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	bbit1 MOUSE_ENABLE_BT_125Hz,mouse_le_bb_disconnected_next
+	setarg LE_INTERVAL_8_75MS
+mouse_le_bb_disconnected_next:	
+	store 2,mem_le_interval_min
+	store 2,mem_le_interval_min+2
+	jam LE_LPM_ENABLE,mem_mouse_le_conn_param_reject
+	jam 0,mem_mouse_clear_sensor_data_flag
+	call le_clr_config_more_data
+	branch mouse_bb_disconnected
+
+mouse_le_pairing_success:
+	arg LL_PAIRING_SUCCESS_FLAG,queue
+	branch mouse_le_enable_connect_flag
+
+mouse_le_enc_info:
+mouse_updata_le_param:
+	jam BT_CMD_LE_UPDATE_CONN,mem_fifo_temp
+	branch ui_ipc_send_cmd
+	
+mouse_le_ll_start_encryt:
+	fetch 1,mem_mouse_le_reconnect_flag
+	beq 1,mouse_le_ll_reconn_start_encryt
+	branch mouse_le_ll_enable_start_enc_flag
+mouse_le_ll_reconn_start_encryt:
+	call mouse_updata_le_param
+	jam 20,mem_le_start_encrypt_timer
+mouse_le_ll_enable_start_enc_flag:
+	arg LL_START_ENC_FLAG,queue
+	branch mouse_le_enable_connect_flag
+
+mouse_le_enable_connect_flag:
+	fetch 1,mem_le_connect_status_flag
+	qset1 pdata
+	store 1,mem_le_connect_status_flag
+	rtn
+
+mouse_le_pairing_complete:
+	branch app_ble_store_reconn_info
+
+mouse_le_conn_param_update_rsp_recieved:
+	fetch 2,mem_le_l2cap_signaling_conn_param_update_rsp_result
+	rtneq BLE_SIGNALING_CONNECT_PARAMETER_UPDATE_ACCEPTED
+	fetch 1,mem_le_tsniff
+	rshift2 pdata,pdata
+	sub pdata,LE_INTERVAL_15MS,null
+	rtn positive
+	setarg LE_INTERVAL_11_25MS
+	store 2,mem_le_interval_min
+	store 2,mem_le_interval_min+2
+	call mouse_updata_le_param
+mouse_le_conn_param_lpm_disable:
+	jam LE_LPM_DISABLE,mem_mouse_le_conn_param_reject
+	rtn
+
+mouse_le_conn_param_lpm_enable:
+	jam LE_LPM_ENABLE,mem_mouse_le_conn_param_reject
+	rtn
+
+mouse_le_bb_event_connect_complete:
+	fetch 1,mem_mouse_le_reconnect_flag
+	nrtn blank
+	fetch 1,mem_le_att_handle
+	sub pdata,34,pdata
+	nrtn zero
+	jam 0,mem_le_start_encrypt_timer
+mouse_le_write_enable:	
+	arg WRITE_REQ_ENABLE_FLAG,queue
+	branch mouse_le_enable_connect_flag
+
+mouse_le_parse_conn_param_accepted:
+	fetch 1,mem_le_new_conninterval
+	sub pdata,LE_INTERVAL_15MS,null
+	nbranch mouse_le_conn_param_lpm_disable,positive
+	fetch 1,mem_le_new_connslavelatency
+	fetcht 1,mem_lpm_mult_init
+	isub temp,null
+	branch mouse_le_lpm_mult_reinit,positive
+	fetch 1,mem_le_new_connslavelatency
+	store 1,mem_lpm_mult
+	branch mouse_le_conn_param_lpm_enable
+mouse_le_lpm_mult_reinit:
+	fetch 1,mem_lpm_mult_init
+	store 1,mem_lpm_mult
+	branch mouse_le_conn_param_lpm_enable
+	
+/*
+mouse_le_disable_connect_flag:
+	fetch 1,mem_le_connect_status_flag
+	qset0 pdata
+	store 1,mem_le_connect_status_flag
+	rtn
+*/
+mouse_le_clean_connect_flag:
+	jam 0,mem_le_connect_status_flag
+	rtn
+
+/*
+mouse_le_reconn_write_enable_timer_reinit:
+	fetch 1,mem_mouse_le_reconnect_flag
+	rtn blank
+	fetch 1,mem_le_connect_status_flag
+	and pdata,0x03,pdata
+	rtneq 0x03
+	jam 2,mem_le_start_encrypt_timer
+	rtn
+*/
+mouse_le:
+	bpatch patch1b_3,mem_patch1b
+	call le_fifo_check_nearly_full
+	nrtn blank
+	fetch 1,mem_mouse_bluetooth_fast_conn_flag
+	beq 0xff,mouse_le_next
+	fetch 1,mem_le_connect_status_flag
+	and pdata,0x03,pdata
+	rtnne 0x03
+mouse_le_next:	
+	fetch 1,mem_mouse_clear_sensor_data_flag
+	call mouse_clear_sensor_data_by_reset,blank
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	bbit1 MOUSE_24G_PAIRING_FLAG,mouse_le_send_empty_packet
+	bbit1 MOUSE_SELECT_DEVICE_FLAG,mouse_le_send_empty_packet
+	bbit1 MOUSE_BT_DISCOVERY_BUTTON_DOWN_FLAG,mouse_le_send_empty_packet
+	bbit1 MOUSE_BT_DISCOVERY_BUTTON_LONG_DOWN_FLAG,mouse_le_send_empty_packet
+	call mouse_motion
+	call mouse_check_125Hz
+	nrtn user
+	call mouse_current_mult_update
+	call mouse_data_xy_release
+	call mouse_wheel_trigger
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	bbit0 MOUSE_ENABLE_KEYBOARD,mouse_le_send_mouse_data
+	fetch 1,mem_customer_key
+	beq 1,mouse_le_send_keyboard_package_data		
+mouse_le_send_mouse_data:
+	branch mouse_fill_mouse_data_le
+
+
+mouse_le_send_keyboard_package_data:
+	fetch 1,mem_customer_data_trigger
+	branch mouse_le_release_keyboard_data,blank
+	fetch 8,mem_customer_key_press+1
+mouse_fill_keyboard_package_data_le:
+	store 8,mem_pdatatemp
+	fetch 1,mem_customer_key_press
+	beq KB_MULTIKEY_REPORT_ID,mouse_fill_multimedia_key_data_le
+	beq KB_SYSTEM_CONCTRL_REPORT_ID,mouse_fill_systemctrl_key_data_le
+	jam 8,mem_le_data_len
+	fetcht 2,mem_le_keyboard_handle
+	branch mouse_fill_data_le
+	
+
+mouse_le_release_keyboard_data:
+	fetch 8,mem_customer_key_release+1
+	branch mouse_fill_keyboard_package_data_le
+
+mouse_fill_multimedia_key_data_le:
+	jam 3,mem_le_data_len
+	fetcht 2,mem_le_multimedia_handle
+	branch mouse_fill_data_le
+
+mouse_fill_systemctrl_key_data_le:
+	jam 2,mem_le_data_len
+	fetcht 2,mem_le_systemctrl_handle
+	branch mouse_fill_data_le
+
+mouse_fill_battery_level_le:
+	arg 1,rega
+	fetcht 2,mem_le_battery_level_handle
+	call le_att_malloc_tx_notify
+	fetch 1,mem_le_battery_level_percentage
+	istore 1,contw
+	rtn
+
+
+mouse_le_send_empty_packet:
+	setarg 0
+	store 7,mem_mouse_key
+mouse_fill_mouse_data_le:
+	jam 7,mem_le_data_len
+	fetch 7,mem_mouse_key
+	store 7,mem_pdatatemp
+	fetcht 2,mem_le_notify_handle
+	branch mouse_fill_data_le
+
+mouse_fill_data_le:
+	fetch 1,mem_le_data_len
+	copy pdata,rega
+	call le_att_malloc_tx_notify
+	fetcht 1,mem_le_data_len
+	copy temp,loopcnt
+	arg mem_pdatatemp,contr
+	branch memcpy	
+
+mouse_check_51cmd_adv:
+	jam 0,mem_mouse_le_reconnect_flag
+	fetch 3,mem_le_adv_ind
+	store 3,mem_le_adv_data+4
+	call mouse_le_check_adv_flag
+	setarg ADV_FLAG_BREDR_NOT_SUPPORTED |ADV_FLAG_LIMITED_DISCOVERABLE
+	istore 1,contr
+	arg mem_le_adv_swift_pair,contr
+	call mouse_le_adv_data_update
+	branch check_51cmd_adv
+
+mouse_le_check_adv_flag:
+	arg mem_le_adv_data,rega
+mouse_le_check_adv_flag_loop:
+	ifetch 1,rega	//length
+	rtn blank
+	iadd contr,rega
+	ifetch 1,contr	//type
+	rtneq 0x01
+	branch mouse_le_check_adv_flag_loop
+	
+mouse_le_adv_data_update:
+	arg mem_le_adv_data+11,contw
+	arg 19,loopcnt
+	call memcpy
+	branch le_modified_name_adv
+	
+/***************************le*************************/
+
+
+/***********************bt****************************/	
+mouse_bt_sniff_param_interval_setup:
+	setarg CLASSIC_INTERVAL_7_5MS
+	store 2,mem_sniff_param_interval
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	rtnbit1 MOUSE_ENABLE_BT_125Hz
+	setarg CLASSIC_INTERVAL_8_75MS
+	store 2,mem_sniff_param_interval
+	rtn
+
+mouse_bb_event_connected:
+	jam 0,mem_mouse_long_mult_flag
+	call mouse_init_sensor_reset
+	call mouse_24g_first_store_reconn_info
+	branch mouse_stop_discovery
+
+mouse_bb_disconnected:
+	jam 0,mem_mouse_enter_sniff_count
+	jam 0,mem_mouse_bt_send_first_package_flag
+	call mouse_bt_sniff_param_interval_setup
+	call mouse_bb_discon_clear_stack
+	fetch APP_DISC_RSN_SIZE,mem_app_disconn_reason
+	bbit1 APP_DISC_BLE,mouse4_0_event_bb_disconn
+	bbit1 APP_DISC_BY_BUTTON,app_disconn_reason_clear
+	bbit1 APP_DISC_AFTER_PAIRING,mouse_event_light_state_pairing
+	bbit1 APP_DISC_AFTER_RECONN,mouse_event_light_state_hibernate
+	bbit1 APP_DISC_AFTER_SNIFF,mouse_event_light_state_hibernate
+	branch mouse_start_discovery
+mouse_bb_discon_clear_stack:
+	setarg 0
+	store 8,mem_wheel_tb_old_pinlevel
+	istore 4,contw             //clean wheel statue
+	jam 0,mem_mouse_move_flag
+	jam APP_HANDSHAKE_NULL,mem_app_handshake_flag
+	jam 0,mem_ltk_exists
+	rtn
+
+mouse4_0_event_bb_disconn:
+	call mouse_le_clean_connect_flag
+	fetch APP_DISC_RSN_SIZE,mem_app_disconn_reason
+	bbit1 APP_DISC_BY_BUTTON,app_disconn_reason_clear
+	branch app_bb_hibernate
+
+
+mouse_event_light_state_pairing:
+	bbit1 APP_DISC_AFTER_HANDSHAKE,mouse_event_light_state_hibernate
+	bbit1 APP_DISC_AFTER_SNIFF,mouse_event_light_state_hibernate
+	branch mouse_start_discovery
+mouse_event_light_state_hibernate:
+	fetch 2,mem_ui_state_map
+	bbit1 UI_STATE_BTN_DOWN,mouse_start_discovery
+	call app_disconn_reason_clear
+
+	call mouse_key_check_once	//mult_key pair
+	call mouse_commbination_key_process
+	fetch 1,mem_commbination_key_statue
+	beq COMMBINATION_KEY_STATE_DOWN,mouse_delay_enter_hibernata
+	
+	fetch 2,mem_mouse_bluetooth_reconnect_timeout
+	nrtn blank
+	branch app_bb_hibernate
+
+
+mouse_bt_event_setup_complete:
+	rtn
+
+mouse_bt_send_first_package_timer_init:
+	jam 4,mem_mouse_bt_send_first_package_timer
+	rtn
+
+mouse_bt_hid_handshake:
+	jam APP_HANDSHAKE_DONE,mem_app_handshake_flag
+	call app_lpm_mult_enable
+	call app_bt_store_reconn_info
+	setarg 0
+	store 2,mem_discovery_timeout_timer_count
+	store 1,mem_hid_handshake_timer_count
+	call mouse_bt_send_first_package_timer_init
+	branch app_bt_enter_sniff
+
+mouse_bt_hid_handshake_boot_check:	
+	jam 0,mem_mouse_bt_boot_mode
+	fetch 1,mem_l2cap_rcv_hidtype
+	isolate1 0,pdata
+	rtn true
+	jam 1,mem_mouse_bt_boot_mode	//boot mode
+	rtn
+
+mouse_bt_hid_connected:
+	branch mouse_hid_connected
+
+mouse_hid_connected:
+	setarg HID_HANDSHAKE_TIMEOUT
+	store 1,mem_hid_handshake_timer_count
+	rtn
+	
+mouse_bb_event_reconn_timeout:
+mouse_bb_event_reconn_failed:
+	fetch 1,mem_mouse_bluetooth_fast_conn_flag
+	beq 0xff,mouse_buletooth_fast_conn_end
+	fetch 2,mem_ui_state_map
+	rtnbit1 UI_STATE_BTN_DOWN
+	rtnbit1 UI_STATE_BT_DISCOVERY
+	rtnbit1 UI_STATE_BLE_ADV
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	rtnbit1 MOUSE_BT_DISCOVERY_BUTTON_DOWN_FLAG
+	bbit1 MOUSE_ENABLE_BT_RECONNECT_TIMEOUT_ENTER_DISCOVERY,mouse_start_discovery
+	bbit1 MOUSE_ENABLE_24G_FIRST_AUTO_PAIRING,mouse_24g_first_bb_event_reconn_timeout
+	branch app_bb_hibernate
+
+mouse_enter_sniff_check:
+	fetch 1,mem_mouse_enter_sniff_count
+	rtnne 2
+	jam 0,mem_mouse_enter_sniff_count
+	call mouse_bt_sniff_param_interval_setup
+	call mouse_bt_send_first_package_timer_init
+	branch app_bt_enter_sniff
+
+mouse_sniff_not_accept:
+	fetch 1,mem_mouse_enter_sniff_count
+	rtneq 2
+	increase 1,pdata
+	store 1,mem_mouse_enter_sniff_count
+	jam 0x12,mem_sniff_param_interval	//89Hz
+	call mouse_bt_send_first_package_timer_init
+	branch app_bt_enter_sniff
+
+mouse_bb_event_pincode:
+	call pincode_reinit
+	branch app_bt_set_pincode
+
+mouse_irtual_cable_unplug:
+	setarg 0x01
+	store 6,mem_plap
+	jam REC_3_MODE,mem_record_bt_mode
+	branch mouse_unplug_clean_bdaddr
+
+mouse_irtual_cable_unplug1:
+	setarg -1
+	store 6,mem_plap
+	jam REC_3_MODE,mem_record_bt_mode
+	jam 0xff,mem_mouse_bluetooth_fast_conn_flag
+	call mouse_before_store_reconn_info
+	jam 0xff,mem_device1_type
+	branch mouse_store_device_info_delay
+
+mouse_bt:
+	bpatch patch1b_4,mem_patch1b
+	rtn attempt
+	fetch 1,mem_app_handshake_flag
+	rtn blank
+	call l2cap_malloc_is_fifo_nearly_full
+	nrtn blank
+	fetch 1,mem_mouse_bluetooth_fast_conn_flag
+	beq 0xff,mouse_bt_fast_conn_send_device_name	
+	fetch 1,mem_mouse_clear_sensor_data_flag
+	call mouse_clear_sensor_data_by_reset,blank
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	bbit1 MOUSE_24G_PAIRING_FLAG,mouse_send_empty_data
+	bbit1 MOUSE_SELECT_DEVICE_FLAG,mouse_send_empty_data
+	bbit1 MOUSE_BT_DISCOVERY_BUTTON_DOWN_FLAG,mouse_send_empty_data
+	bbit1 MOUSE_BT_DISCOVERY_BUTTON_LONG_DOWN_FLAG,mouse_send_empty_data
+	call mouse_motion
+	call mouse_check_125Hz
+	nrtn user
+	call mouse_current_mult_update
+	call mouse_data_xy_release
+	call mouse_wheel_trigger
+	fetch 1,mem_mouse_bt_boot_mode
+	beq 1,mouse_send_data_boot_mode	//boot
+	fetch 1,mem_mouse_bt_send_first_package_flag
+	rtn blank
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	bbit0 MOUSE_ENABLE_KEYBOARD,mouse_send_data
+	fetch 1,mem_customer_key
+	beq 1,mouse_bt_send_keyboard_packet
+mouse_send_data:
+	arg 9,rega
+	call hid_malloc_tx_buff
+	fetch 2,mem_hid_int_remote_cid
+	istore 2,contw
+	setarg 0x02a1
+	istore 2,contw
+	fetch 7,mem_mouse_key
+	istore 7,contw
+	rtn
+
+mouse_send_data_boot_mode:
+	fetch 1,mem_mouse_key
+	store 1,mem_mouse_bt_boot_data
+	fetch 1,mem_mouse_x
+	istore 1,contw
+	fetch 1,mem_mouse_y
+	istore 1,contw
+	fetch 2,mem_mouse_z
+	istore 2,contw
+	arg 7,rega
+	call hid_malloc_tx_buff
+	fetch 2,mem_hid_int_remote_cid
+	istore 2,contw
+	setarg 0x02a1		// pid:02  mouse
+	istore 2,contw
+	fetch 5,mem_mouse_bt_boot_data
+	istore 5,contw
+	rtn
+
+mouse_send_empty_data:
+	setarg 0
+	store 7,mem_mouse_key
+	branch mouse_send_data
+
+
+mouse_bt_send_keyboard_packet:
+	fetch 1,mem_customer_data_trigger
+	branch mouse_bt_release_keyboard_data,blank
+	fetch 8,mem_customer_key_press+1
+mouse_bt_send_keyboard_data:
+	store 8,mem_pdatatemp
+	fetch 1,mem_customer_key_press
+	beq KB_MULTIKEY_REPORT_ID,mouse_bt_send_multimedia_key_data
+	beq KB_SYSTEM_CONCTRL_REPORT_ID,mouse_bt_send_systemctrl_key_data
+	arg 10,rega
+	call hid_malloc_tx_buff
+	fetch 2,mem_hid_int_remote_cid
+	istore 2,contw
+	setarg 0x01a1		// pid:01  standard key
+	istore 2,contw
+	fetch 8,mem_pdatatemp
+	istore 8,contw
+	rtn
+
+mouse_bt_send_multimedia_key_data:
+	arg 4,rega
+	call hid_malloc_tx_buff
+	fetch 2,mem_hid_int_remote_cid
+	istore 2,contw
+	setarg 0x03a1		// pid:03  multimedia key
+	istore 2,contw
+	fetch 2,mem_pdatatemp
+	istore 2,contw
+	rtn	
+
+mouse_bt_send_systemctrl_key_data:
+	arg 3,rega
+	call hid_malloc_tx_buff
+	fetch 2,mem_hid_int_remote_cid
+	istore 2,contw
+	setarg 0x04a1		// pid:04  systemctrl key	
+	istore 2,contw
+	fetch 1,mem_pdatatemp
+	istore 1,contw
+	rtn		
+
+mouse_bt_release_keyboard_data:
+	fetch 8,mem_customer_key_release+1
+	branch mouse_bt_send_keyboard_data	
+/*******************bt****************************/
+
+
+
+/********************mouse 100ms timer*****************/
+mouse_bb_event_timer:
+	bpatch patch1b_5,mem_patch1b
+	call mouse_adc_read
+	call mouse_low_voltage_led_timer
+	//24g
+	call mouse_24g_delay_timer
+	call g24_pair_timeout_timer
+	call g24_reconn_timeout_timer
+	call mouse_24g_long_sleep_param_update_timer
+	//led
+	call mouse_device_poweron_timer
+	call mouse_dpi_led_blink_delay_timer
+	//poll
+	call mouse_dpi_key_check_long_press
+	call mouse_bt_discovery_check
+	call mouse_commbination_key_process
+	call mouse_check_discovery_timeout_timer
+	//ble
+	call mouse_check_direct_timeout_timer
+	call mouse_le_enable_att_list_timer
+	call mouse_le_battery_updata_timer
+	call mouse_le_send_smp_security_request_timer
+	//bt
+	call mouse_check_hid_handshake_timer
+	call mouse_bt_check_sniff_req_timeout_timer
+	call mouse_check_reconnect_delay_long_sleep		//delete 3.0,reconnect fail
+	call mouse_current_mult_update_timer
+	call mouse_wheel_trigger_timer
+	call mouse_store_information_delay_timer
+	branch mouse_check_no_data_timeout_timer
+
+
+
+
+mouse_bt_discovery_check:
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	bbit1 MOUSE_ENABLE_PB_BUTTON_LONG_PRESS_DISCONVERY,mouse_bt_discovery_by_pb_button
+	rtn
+
+mouse_bt_discovery_by_pb_button:
+	fetch 1,mem_select_device_button_statue
+	rtnne PB_BUTTON_STATE_DOWN
+	arg mem_bt_discovery_count,regc
+	arg mouse_long_button_bt_discovery,regb
+	branch timer_single_step
+		
+mouse_long_button_bt_discovery:
+	fetch 1,mem_device_flag
+	rtneq MODE_24G_DEVICE
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	rtnbit1 MOUSE_BT_DISCOVERY_BUTTON_LONG_DOWN_FLAG
+	arg MOUSE_BT_DISCOVERY_BUTTON_LONG_DOWN_FLAG,queue
+	call mouse_enable_function_flag
+	call app_evt_button_long_pressed
+	branch mouse_bb_event_discovery_btn
+
+		
+mouse_commbination_key_process:
+	fetch 1,mem_device_flag
+	beq MODE_24G_DEVICE,mouse_24g_commbination_key_process
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	rtnbit0 MOUSE_ENABLE_COMMBINATION_KEY_BY_BT_DISCOVERY
+	fetcht 1,mem_mouse_commbination_key_bt
+	branch mouse_commbination_key_start
+
+mouse_24g_commbination_key_process:
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	rtnbit0 MOUSE_ENABLE_COMMBINATION_KEY_BY_24G_PAIRING
+	fetcht 1,mem_mouse_commbination_key_24g
+mouse_commbination_key_start:
+	storet 1,mem_mouse_commbination_key
+	call mouse_check_key_gpio
+	and pdata,0x07,pdata
+	fetcht 1,mem_mouse_commbination_key
+	isub temp,null
+	branch mouse_commbination_key_down,zero
+mouse_commbination_key_up:
+	fetch 1,mem_ui_button_timeout
+	store 1,mem_combination_ui_button_count	//combination key timer init 
+	fetch 1,mem_commbination_key_statue
+	rtneq COMMBINATION_KEY_STATE_UP
+	jam COMMBINATION_KEY_STATE_UP,mem_commbination_key_statue	
+	rtn
+		
+mouse_commbination_key_down:
+	call mouse_combination_ui_timer
+	fetch 1,mem_commbination_key_statue
+	rtneq COMMBINATION_KEY_STATE_DOWN
+	jam COMMBINATION_KEY_STATE_DOWN,mem_commbination_key_statue
+	branch check_51cmd_bb_reconn_cancel
+
+
+mouse_combination_ui_timer:
+	arg mouse_24g_start_pair_mode,regb
+	arg mem_combination_ui_button_count,regc
+	fetch 1,mem_device_flag
+	beq MODE_24G_DEVICE,timer_single_step
+	arg mouse_long_button_bt_discovery,regb
+	call timer_single_step
+	fetch 1,mem_combination_ui_button_count
+	beq 1,mouse_bt_discovery_button_down_enable	// ble release key press
+	rtn
+
+
+
+mouse_check_discovery_timeout_timer:	
+	arg mem_mouse_discovery_timer,regc
+	arg mouse_check_discovery_timeout,regb
+	branch timer_single_step_2B
+
+mouse_check_discovery_timeout:
+	call mouse_stop_discovery
+	branch mouse_app_enter_hibernate
+
+
+mouse_check_direct_timeout_timer:	
+	arg mem_mouse_direct_timer,regc
+	arg mouse_check_direct_timeout,regb
+	call timer_single_step_2B
+	fetch 1,mem_mouse_direct_timer
+	beq 1,app_ble_stop_direct_adv
+	rtn
+
+mouse_check_direct_timeout:
+	fetch 1,mem_mouse_bluetooth_fast_conn_flag
+	beq 0xff,mouse_buletooth_fast_conn_end
+	fetch 1,mem_reconn_times
+	nbranch mouse_polling_device,blank
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	bbit1 MOUSE_ENABLE_BT_RECONNECT_TIMEOUT_ENTER_DISCOVERY,mouse_start_discovery
+	bbit1 MOUSE_ENABLE_24G_FIRST_AUTO_PAIRING,mouse_24g_first_bb_event_reconn_timeout
+	branch mouse_app_enter_hibernate
+	
+mouse_le_enable_att_list_timer:
+	arg mem_le_start_encrypt_timer,regc
+	arg mouse_le_write_enable,regb
+	branch timer_single_step
+
+mouse_le_send_smp_security_request_timer:
+	fetch 1,mem_mouse_le_bb_connected_flag
+	rtn blank
+	arg mem_mouse_send_secutiry_request_timer,regc
+	arg mouse_le_pairing_sm_start_check,regb
+	branch timer_single_step
+mouse_le_pairing_sm_start_check:
+	fetch 1,mem_mouse_le_reconnect_flag
+	nrtn blank
+	fetch 1,mem_le_pairing_state
+	rtnne FLAG_LE_PAIRING_NULL
+	branch le_pairing_sm_start
+
+mouse_le_battery_updata_timer:
+	arg mem_le_battery_level_updata_timer,regc
+	arg mouse_le_battery_level_updata,regb
+	branch timer_single_step
+
+mouse_le_battery_level_updata:
+	fetch 2,mem_le_battery_level_updata_timer_init
+	store 2,mem_le_battery_level_updata_timer
+	branch mouse_fill_battery_level_le
+	
+mouse_le_enable_att_list:	
+	fetch 1,mem_le_connect_status_flag
+	rtnbit1 LL_PAIRING_SUCCESS_FLAG
+	call mouse_updata_le_param
+	arg WRITE_REQ_ENABLE_FLAG,queue
+	branch mouse_le_enable_connect_flag
+
+mouse_check_hid_handshake_timer:
+	arg mem_hid_handshake_timer_count,regc
+	arg mouse_bt_hid_handshake,regb
+	branch timer_single_step
+	
+mouse_bt_check_sniff_req_timeout_timer:
+	arg mem_mouse_bt_send_first_package_timer,regc
+	arg mouse_bt_send_first_package,regb
+	branch timer_single_step
+mouse_bt_send_first_package:
+	jam 1,mem_mouse_bt_send_first_package_flag
+	rtn
+
+mouse_check_reconnect_delay_long_sleep:
+	arg mem_mouse_bluetooth_reconnect_timeout,regc
+	arg mouse_app_enter_hibernate,regb
+	branch timer_single_step
+
+
+mouse_current_mult_update_timer:
+	arg mem_mouse_current_mult_timer,regc
+	arg mouse_current_mult_reinit,regb
+	branch timer_single_step
+mouse_current_mult_reinit:
+	fetch 1,mem_lpm_mult_init
+	store 1,mem_lpm_mult
+	jam 1,mem_mouse_long_mult_flag
+	rtn
+
+
+mouse_check_no_data_timeout_timer:	
+	fetch 1,mem_usb_addr
+	rtnbit1 7
+	arg mem_mouse_no_data_timer,regc
+	arg mouse_check_no_data_timeout,regb
+	branch timer_single_step_2B
+
+mouse_check_no_data_timeout:
+	bmark1 mark_24g,check_51cmd_hibernate
+	branch mouse_disconnect
+	
+mouse_no_data_timer_init:
+	fetch 2,mem_mouse_no_data_timeout
+	store 2,mem_mouse_no_data_timer
+	rtn
+
+mouse_store_information_delay_timer:
+	arg mem_store_information_delay_timer,regc
+	arg mouse_store_device_info_check,regb
+	branch timer_single_step
+
+mouse_store_device_info_check:
+	call mouse_store_device_info
+	fetch 1,mem_mouse_need_soft_reset
+	nbranch mouse_soft_reset,blank
+	rtn
+
+mouse_bb_event_discovery_btn:
+	isolate1 mark_24g,mark
+	call mouse_24g_stop,true
+	call mouse_disconnect
+	call mouse_le_clean_connect_flag
+	branch mouse_start_discovery
+	
+mouse_start_discovery:
+	bpatch patch1b_6,mem_patch1b
+	call mouse_bluetooth_fast_conn_disable
+	fetch 2,mem_ui_state_map
+	bbit1 UI_STATE_BLE_ADV,mouse_start_discovery_norandom
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	bbit0 MOUSE_ENABLE_BLE_RANDOM_ADDRE,mouse_start_discovery_norandom
+	fetcht 2,mem_random_addr_increase_count
+	increase 1,temp
+	storet 2,mem_random_addr_increase_count
+	storet 2,mem_le_lap+1
+	random pdata					//random ble addr
+	store 1,mem_le_lap
+mouse_start_discovery_norandom:
+	fetch 3,mem_mouse_le_lap_temp
+	store 3,mem_le_lap+3
+	call app_lpm_mult_disable
+	fetch 2,mem_discovery_timeout
+	store 2,mem_mouse_discovery_timer
+	jam 6,mem_connection_options
+	setarg 0
+	store 2,mem_mouse_no_data_timer
+	store 2,mem_mouse_direct_timer
+	store 2,mem_mouse_bluetooth_reconnect_timeout
+	store 1,mem_mouse_device_poweron_timer_count
+	store 1,mem_mouse_clear_sensor_data_flag
+	arg MOUSE_STORE_EEPROM_FLAG,queue
+	call mouse_enable_function_flag
+	call mouse_bt_discovery_button_down_disable
+	fetch 1,mem_mouse_bluetooth_type
+	isolate1 MODE_4_MOUSE,pdata
+	call mouse_check_51cmd_adv,true
+	fetch 1,mem_mouse_bluetooth_type
+	isolate1 MODE_3_MOUSE,pdata
+	call check_51cmd_start_discovery,true
+	call mouse_low_voltage_led_blink_disable
+	branch mouse_discover_setting_led_gpio
+
+
+mouse_stop_discovery:
+	bpatch patch1b_7,mem_patch1b
+	arg MOUSE_BT_DISCOVERY_BUTTON_LONG_DOWN_FLAG,queue
+	call mouse_disable_function_flag
+	setarg 0
+	store 2,mem_mouse_bluetooth_reconnect_timeout
+	fetch 1,mem_mouse_bluetooth_type
+	isolate1 MODE_4_MOUSE,pdata
+	call mouse_stop_le_adv,true
+	fetch 1,mem_mouse_bluetooth_type
+	isolate1 MODE_3_MOUSE,pdata
+	call mouse_stop_bt3_discovery,true
+	branch mouse_device_led_off
+mouse_stop_le_adv:
+	setarg 0
+	store 2,mem_mouse_direct_timer
+	branch check_51cmd_stop_adv
+mouse_stop_bt3_discovery:
+	setarg 0
+	store 2,mem_mouse_discovery_timer
+	branch check_51cmd_stop_discovery
+
+mouse_store_remote_bdaddr:
+	bpatch patch1c_0,mem_patch1c
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	rtnbit0 MOUSE_STORE_EEPROM_FLAG
+	call mouse_device_poweron_timer_init
+	arg MOUSE_STORE_EEPROM_FLAG,queue
+	call mouse_disable_function_flag
+	call mouse_check_device_addr
+mouse_unplug_clean_bdaddr:
+	call mouse_before_store_reconn_info
+	branch mouse_store_device_info_delay
+
+	
+mouse_check_device_addr:
+	fetch 1,mem_record_bt_mode
+	beq REC_4_MODE,mouse_check_le_device_addr
+	beq REC_3_MODE,mouse_check_bt_device_addr
+	rtn
+mouse_check_le_device_addr:
+	store 1,mem_device_addr_temp
+	fetch 6,mem_le_plap
+	branch mouse_check_bt_device_addr_common
+mouse_check_bt_device_addr:
+	store 1,mem_device_addr_temp
+	fetch 6,mem_plap
+mouse_check_bt_device_addr_common:
+	store 6,mem_device_addr_temp+1
+	fetch 7,mem_device_addr_temp
+	arg mem_device1_type,contr
+	arg 3,loopcnt
+mouse_check_device_addr_end:
+	ifetcht 7,contr
+	isub temp,null
+	branch mouse_clean_addr,zero
+	increase 22,contr
+	loop mouse_check_device_addr_end
+	rtn
+mouse_before_store_reconn_info:
+	arg mem_device1_type,rega
+	fetch 1,mem_device_flag
+	increase -1,pdata
+	mul32 pdata,29,pdata
+	iadd rega,rega
+	fetch 1,mem_record_bt_mode
+	istore 1,rega
+	beq REC_4_MODE,mouse_store_le_device
+	beq REC_3_MODE,mouse_store_bt_device
+	rtn
+	
+mouse_store_le_device:
+	fetch 6,mem_le_plap
+	istore 6,contw
+	arg mem_le_ltk,contr
+	call memcpy16
+	fetch 6,mem_le_lap
+	istore 6,contw
+	rtn
+mouse_store_bt_device:
+	fetch 6,mem_plap
+	istore 6,contw
+	arg mem_link_key,contr
+	branch memcpy16
+
+mouse_clean_addr:
+	increase -6,contr
+	copy contr,contw
+	fetcht 6,mem_device_addr_temp+1
+	increase 3,temp
+	istoret 6,contw
+	rtn
+	
+mouse_select_reconn_device:
+	arg mem_device1_type,rega
+	fetch 1,mem_device_flag
+	rtneq MODE_24G_DEVICE
+	increase -1,pdata
+	mul32 pdata,29,pdata
+	iadd rega,rega
+	ifetch 1,rega
+	store 1,mem_xrecord_mode
+	beq REC_3_MODE,mouse_load_bt_device
+	beq REC_4_MODE,mouse_load_le_device
+	rtn
+
+mouse_load_bt_device:
+	ifetch 6,contr
+mouse_load_bt_device_end:
+	store 6,mem_hci_plap
+	arg mem_link_key,contw
+	call memcpy16
+	branch check_link_key_load
+
+mouse_load_le_device:
+	ifetch 6,contr
+mouse_load_le_device_end:
+	store 6,mem_hci_plap
+	arg mem_le_ltk,contw
+	call memcpy16
+	ifetch 6,contr
+	store 6,mem_le_lap
+	rtn
+
+
+
+mouse_app_initflag_check:
+	fetch 2,mem_store_flag
+	arg EEPROM_INIT_FLAG,temp
+	isub temp,null
+	branch mouse_load_device_info,zero
+	storet 2,mem_store_flag
+	call mouse_ble_init_address
+	fetch 1,mem_device_flag_temp
+	store 1,mem_device_flag
+	fetch 1,mem_config_sensor_dpi
+	store 1,mem_mouse_dpi
+	fetch 4,mem_24g_fast_conn_addr
+	store 4,mem_24g_receiver_addr
+	store 4,mem_24g_addr	
+	rtn
+
+mouse_load_device_info:
+	call mouse_select_reconn_device
+	fetch 4,mem_mouse_24g_addr
+	store 4,mem_24g_receiver_addr
+	store 4,mem_24g_addr
+	rtn
+	
+mouse_ble_init_address:
+	fetch 6,mem_le_lap
+	store 6,mem_device1_locall_addr
+	add pdata,0x0100,pdata
+	store 6,mem_device2_locall_addr
+	add pdata,0x0100,pdata
+	store 6,mem_device3_locall_addr
+	rtn
+	
+
+mouse_store_device_info_delay:	
+	fetch 1,mem_store_information_delay_timer_init
+	store 1,mem_store_information_delay_timer
+	rtn
+
+mouse_store_device_info:
+	bpatch patch1c_1,mem_patch1c
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	bbit1 MOUSE_ENABLE_EEPROM,mouse_store_eeprom_device_info
+	bbit1 MOUSE_ENABLE_FLASH,mouse_store_flash_device_info
+	rtn
+
+mouse_load_flash_info_check:
+	call spid_init_flash
+	call mouse_spid_flash_release_form_powerdown
+	call mouse_information_flash_parameters
+	call spid_read_flash
+	call mouse_spid_flash_powerdown
+	call mouse_app_initflag_check
+	branch mouse_sensor_spi_init
+
+
+mouse_information_flash_parameters:
+	setarg mem_mouse_information_end
+	arg mem_mouse_information_start,temp
+	isub temp,temp
+	fetch 3,mem_flash_base
+	arg mem_mouse_information_start,rega
+	rtn
+	
+mouse_store_flash_device_info:
+	call spid_init_flash
+	call mouse_spid_flash_release_form_powerdown
+	call mouse_flash_erase_sector
+
+	call mouse_information_flash_parameters
+	call mouse_spid_write_flash
+	call mouse_spid_flash_powerdown
+	branch mouse_sensor_spi_init
+
+mouse_spid_flash_release_form_powerdown:
+	jam FLASH_COMMAND_RELEASE_FROM_POWERDOWN,mem_temp
+mouse_spid_write_flash_cmd:
+	call delay_nop100
+	call spid_unlock_flash
+	arg mem_write_flash_head_temp,rega
+	fetcht 1,mem_temp
+	call mouse_spid_write_flash_cmd_common
+	branch delay_nop100
+
+mouse_spid_flash_powerdown:
+	jam FLASH_COMMAND_POWERDOWN,mem_temp
+	branch mouse_spid_write_flash_cmd
+
+mouse_spid_write_flash_cmd_common:
+	istoret 1,rega
+	rshift16 pdata,temp
+	istoret 1,contw
+	rshift8 pdata,temp
+	istoret 1,contw
+	istore 1,contw
+	deposit rega
+	store 2,core_spid_txaddr
+	setarg 0
+	store 2,core_spid_rxlen
+	jam spid_start,core_misc_ctrl
+	branch wait_spid_done
+		
+mouse_flash_erase_sector:
+	fetch 3,mem_flash_base
+	store 3,mem_spi_write_addr
+	branch spid_flash_erase_sector+2
+
+mouse_spid_write_flash:
+	copy pdata,regc
+	copy rega,pdata
+	increase -4,pdata
+	copy pdata,regb
+	ifetch 4,regb
+	store 4,mem_write_flash_head_temp
+	copy regc,pdata
+	call spid_write_flash
+	fetch 4,mem_write_flash_head_temp
+	istore 4,regb
+	rtn
+
+mouse_flash_power_down:
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	rtnbit0 MOUSE_ENABLE_FLASH
+	call mouse_spid_flash_powerdown
+	call twspi_enable	// 2 wire mode
+	fetcht 1,mem_spi_cs_gpio		//disable flash
+	call gpio_out_inactive
+	fetcht 1,mem_spi_hold_gpio
+	branch mouse_gpio_config_input_pd
+
+mouse_load_eeprom_info_check:
+	call iicd_read_init_pin
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	isolate1 MOUSE_ENABLE_2K_EEPROM,pdata
+	ncall clear_eeprom_size_2k,true
+	call mouse_eeprom_load_recon_info
+	branch mouse_app_initflag_check
+
+mouse_eeprom_load_recon_info:
+	arg 128,temp
+	arg mem_device_flag,rega
+	arg MOUSE_INFO_EEPROM_OFFECT,regb
+	branch iicd_read_eep_data
+
+mouse_store_eeprom_device_info:
+	arg 128,temp
+	arg mem_device_flag,rega
+	arg MOUSE_INFO_EEPROM_OFFECT,regb
+	branch iicd_write_protect_eep_data
+
+
+mouse_store_eerpom_dpi:
+	arg 1,temp
+	arg mem_mouse_dpi,rega
+	arg MOUSE_DPI_EEPROM_OFFECT,regb
+	branch iicd_write_protect_eep_data
+
+mouse_load_eeprom_dpi:
+	arg 1,temp
+	arg mem_mouse_dpi,rega
+	arg MOUSE_DPI_EEPROM_OFFECT,regb
+	branch iicd_read_eep_data
+
+
+
+mouse_idle:
+	bpatch patch1c_2,mem_patch1c
+	call mouse_low_voltage_led_no_enter_lpm
+	call ui_check_paring_button
+	call mouse_dpi_check
+	call mouse_select_device_check
+	call mouse_check_select_device_by_switch
+	call mouse_bt_button_check
+	call mouse_usb_isr
+	call mouse_wheel_check
+	branch mouse_usb_mode
+
+mouse_select_device_check:
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	bbit1 MOUSE_ENABLE_SELECT_DEVICE_BY_PB_BUTTON,mouse_select_device_by_pb_button
+	bbit1 MOUSE_ENABLE_PB_BUTTON_LONG_PRESS_DISCONVERY,mouse_select_device_by_pb_button
+	rtn
+
+mouse_select_device_by_pb_button_check_once:
+	jam 0x03,mem_mouse_pbkey_press_status
+mouse_select_device_by_pb_button:	
+	fetch 1,mem_config_select_device_button_gpio
+	rtneq GPIO_DISABLE
+	arg 0,rega
+	jam MOUSE_PB_KEY,mem_mouse_key_temp
+	fetcht 1,mem_config_select_device_button_gpio
+	call mouse_pb_button_check
+	store 1,mem_mouse_pbkey_press_status
+	call mouse_matrix_public_gpio_reset
+	copy rega,pdata
+	bbit1 MOUSE_PB_KEY,mouse_select_device_button_down
+	branch mouse_select_device_button_up
+
+
+mouse_pb_button_check:
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	bbit1 MOUSE_ENABLE_PB_BUTTON_CONNECT_GND,mouse_pb_button_connect_gnd
+	fetch 1,mem_mouse_ghost_flag
+	nbranch mouse_select_device_by_pb_button_end,blank
+	branch mouse_pb_button_connect_matrix
+
+mouse_select_device_by_pb_button_end:
+	jam PB_BUTTON_STATE_UP,mem_select_device_button_statue
+	jam 0,mem_mouse_pbkey_press_status
+	rtn
+
+mouse_pb_button_connect_gnd:
+	fetch 1,mem_mouse_pbkey_press_status
+	branch mouse_check_key_connect_gnd
+
+mouse_pb_button_connect_matrix:
+	call gpio_get_bit
+	fetcht 1,mem_matrix_public_gpio
+	branch mouse_pb_button_connect_gnd,true
+	fetcht 1,mem_matrix_public_gpio
+	call gpio_out_active
+	fetcht 1,mem_config_select_device_button_gpio
+	fetch 1,mem_mouse_pbkey_press_status
+	branch mouse_check_key_connect_gnd
+	
+mouse_select_device_button_up:
+	fetch 1,mem_select_device_button_statue
+	rtneq PB_BUTTON_STATE_UP
+	jam PB_BUTTON_STATE_UP,mem_select_device_button_statue	
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	rtnbit1 MOUSE_ENABLE_PB_BUTTON_SHORT_PRESS_ENTER_DISCOVERY
+	fetch 1,mem_bt_discovery_count
+	sub pdata,20,null
+	ncall mouse_ready_reconnection_by_button,positive		// press button less than 30-20=1000ms
+	fetch 1,mem_ui_button_timeout
+	store 1,mem_bt_discovery_count
+	rtn
+
+mouse_select_device_button_down:
+	call mouse_select_device_ghost_check
+	rtn user
+	fetch 1,mem_select_device_button_statue
+	rtneq PB_BUTTON_STATE_DOWN
+	jam PB_BUTTON_STATE_DOWN,mem_select_device_button_statue
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	bbit1 MOUSE_ENABLE_PB_BUTTON_SHORT_PRESS_ENTER_DISCOVERY,mouse_long_button_bt_discovery
+	fetch 2,mem_mouse_direct_timer
+	rtn blank
+	fetch 2,mem_mouse_direct_timeout
+	store 2,mem_mouse_direct_timer
+	rtn
+
+mouse_select_device_ghost_check:
+	disable user
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	rtnbit1 MOUSE_ENABLE_PB_BUTTON_CONNECT_GND
+	fetch 1,mem_mouse_lkey_press_status
+	rtn blank
+	fetch 1,mem_mouse_rkey_press_status
+	rtn blank
+	enable user
+	rtn
+	
+
+
+mouse_check_select_device_by_switch:
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	bbit1 MOUSE_ENABLE_SELECT_DEVICE_BY_SWITCH_GPIO,mouse_check_select_device_by_switch_gpio
+	bbit1 MOUSE_ENABLE_SELECT_DEVICE_BY_SWITCH_ADC,mouse_adc_read
+	rtn
+mouse_check_select_device_by_switch_gpio:	
+	fetcht 1,mem_device_switch_gpio
+	call mouse_gpio_config_input_pu
+	fetcht 1,mem_device_switch_gpio
+	call gpio_get_bit
+	branch mouse_check_select_24gdevice,true
+mouse_select_btdevice:
+	fetch 1,mem_device_flag
+	rtneq MODE_BT_DEVICE1
+	jam MODE_BT_DEVICE1,mem_device_flag
+	branch mouse_stop_bluetooth_mode
+	
+	
+mouse_check_select_24gdevice:
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	bbit0 MOUSE_ENABLE_SELECT_DEVICE_BY_SWITCH_ADC,mouse_check_select_24g_device
+	fetch 6,mem_mouse_vdd_switch_gnd_full_vol
+	store 6,mem_mouse_vdd_calculate_set
+mouse_check_select_24g_device:	
+	fetch 1,mem_device_flag
+	rtneq MODE_24G_DEVICE
+	jam MODE_24G_DEVICE,mem_device_flag
+	branch mouse_24g_stop
+
+	
+
+mouse_ready_reconnection_by_button:
+	bpatch patch1c_3,mem_patch1c
+	fetch 1,mem_device_number
+	rtneq 1		// 1channel
+	call mouse_select_device_number
+	storet 1,mem_device_flag
+mouse_store_device_number_before_reset:	
+	jam 0,mem_link_key_exists
+	call mouse_select_device_enable
+	call mouse_stop_bluetooth_mode
+	call mouse_select_device_disable
+	jam 1,mem_mouse_need_soft_reset
+	branch mouse_store_device_info_delay
+
+
+mouse_soft_reset:
+	call mouse_select_device_enable
+	branch soft_reset_chip
+
+mouse_select_device_number:
+	fetcht 1,mem_device_flag
+	increase 1,temp
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	bbit1 MOUSE_ENABLE_24G,mouse_select_device_number_24g
+	sub temp,2,null
+	ncall mouse_select_device_count_clean_bt,positive
+	rtn
+	
+mouse_select_device_number_24g:	
+	fetch 1,mem_device_number
+	increase -1,pdata
+	isub temp,null
+	ncall mouse_select_device_count_clean_24g,positive
+	rtn
+
+mouse_select_device_count_clean_24g:
+	arg 0,temp
+	rtn
+mouse_select_device_count_clean_bt:
+	arg 1,temp
+	rtn
+
+
+mouse_store_device_number2eeprom:
+	arg 1,temp
+	arg mem_device_flag,rega
+	arg 0,regb
+	branch iicd_write_protect_eep_data
+		
+
+mouse_bt_button_check:
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	rtnbit0 MOUSE_ENABLE_PB_BUTTON_SHORT_PRESS_ENTER_DISCOVERY
+	call mouse_select_device_by_pb_button
+	rtn
+
+
+
+
+mouse_select_device_enable:
+	arg MOUSE_SELECT_DEVICE_FLAG,queue
+	branch mouse_enable_function_flag
+mouse_select_device_disable:
+	arg MOUSE_SELECT_DEVICE_FLAG,queue
+	branch mouse_disable_function_flag
+mouse_bt_cannel_reconn_enable:
+	arg MOUSE_BT_CANNEL_RECONN_FLAG,queue
+	branch mouse_enable_function_flag
+mouse_bt_cannel_reconn_disable:
+	arg MOUSE_BT_CANNEL_RECONN_FLAG,queue
+	branch mouse_disable_function_flag
+mouse_bt_discovery_button_down_enable:
+	arg MOUSE_BT_DISCOVERY_BUTTON_DOWN_FLAG,queue
+	branch mouse_enable_function_flag
+mouse_bt_discovery_button_down_disable:
+	arg MOUSE_BT_DISCOVERY_BUTTON_DOWN_FLAG,queue
+	branch mouse_disable_function_flag
+
+mouse_enable_function_flag:
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	qset1 pdata
+	store MOUSE_FLAG_LEN,mem_mouse_flag
+	rtn
+
+mouse_disable_function_flag:
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	qset0 pdata
+	store MOUSE_FLAG_LEN,mem_mouse_flag
+	rtn
+
+
+	
+mouse_polling_device:
+	bpatch patch1c_4,mem_patch1c
+	fetch 1,mem_reconn_times
+	increase -1,pdata
+	store 1,mem_reconn_times
+	fetcht 1,mem_device_flag
+	sub temp,1,null
+	ncall mouse_select_device_number,zero
+	storet 1,mem_device_flag
+	jam 0,mem_link_key_exists
+	call mouse_store_device_number2eeprom
+	call mouse_before_store_reconn_info
+	branch mouse_start_reconnect_device
+	
+
+
+//notice: need to call p_mouse_drawing_optima_init when waked from mult
+mouse_drawing_optima:
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	rtnbit0 MOUSE_ENABLE_SMOOTHER
+	fetch 4,mem_mouse_x
+	rtn blank
+	call mouse_data_abs_check
+	setarg 0x03	//asm_flag enable condition
+	call mouse_pdata_greater_than_check
+	call mouse_disable_asm,blank
+	ncall mouse_enable_asm,blank
+	setarg 0x02	//asm_flag disable condition
+	call mouse_data_less_than_check
+	call mouse_disable_asm,blank
+	fetch 1,mem_mouse_asm_flag
+	beq 1,mouse_drawing_optima_modify
+mouse_drawing_optima_init:
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	rtnbit0 MOUSE_ENABLE_SMOOTHER
+	arg 5,loopcnt
+	arg mem_mouse_asm_flag,contw
+	branch clear_mem
+
+mouse_drawing_optima_modify:
+	call mouse_drawing_optima_xy_offset_modify
+	fetch 2,mem_mouse_x_pre
+	store 2,mem_data_pre
+	fetch 2,mem_mouse_x
+	store 2,mem_data_current
+	call mouse_drawing_optima_data_x
+	fetch 2,mem_data_pre
+	store 2,mem_mouse_x_pre
+	fetch 2,mem_data_current
+	store 2,mem_mouse_x
+
+	fetch 2,mem_mouse_y_pre
+	store 2,mem_data_pre
+	fetch 2,mem_mouse_y
+	store 2,mem_data_current
+	call mouse_drawing_optima_data_y
+	fetch 2,mem_data_pre
+	store 2,mem_mouse_y_pre
+	fetch 2,mem_data_current
+	store 2,mem_mouse_y
+	rtn
+
+mouse_drawing_optima_xy_offset_modify:
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	rtnbit0 MOUSE_ENABLE_XY_OFFSET
+	fetch 2,mem_mouse_x_pre
+	store 2,mem_data_value
+	call mouse_pre_xy_data_judge
+	store 2,mem_mouse_x_pre
+	fetch 2,mem_mouse_x
+	store 2,mem_data_value
+	call mouse_current_xy_data_judge
+	store 2,mem_mouse_x
+	fetch 2,mem_mouse_y_pre
+	store 2,mem_data_value
+	call mouse_pre_xy_data_judge
+	store 2,mem_mouse_y_pre
+	fetch 2,mem_mouse_y
+	store 2,mem_data_value
+	call mouse_current_xy_data_judge
+	store 2,mem_mouse_y
+	rtn
+
+mouse_pre_xy_data_judge:	
+	fetch 1,mem_data_value+1
+	branch mouse_pre_xy_pdata_offset,blank
+	branch mouse_pre_xy_ndata_offset
+
+mouse_pre_xy_pdata_offset:
+	fetch 1,mem_data_value
+	call mouse_pre_xy_get_0_4_times
+	store 1,mem_data_value
+mouse_xy_data_offset_new:
+	fetch 2,mem_data_value
+	rtn
+mouse_pre_xy_ndata_offset:
+	fetch 1,mem_data_value
+	call mouse_pdata_invert
+	call mouse_pre_xy_get_0_4_times
+	call disable_blank,blank
+	call mouse_pdata_get_new_value
+	branch mouse_xy_data_offset_new
+	
+mouse_current_xy_data_judge:
+	fetch 1,mem_data_value+1
+	branch mouse_current_xy_pdata_offset,blank
+	branch mouse_current_xy_ndata_offset
+mouse_current_xy_pdata_offset:
+	fetch 1,mem_data_value
+	call mouse_current_xy_get_0_6_times
+	store 1,mem_data_value
+	branch mouse_xy_data_offset_new
+mouse_current_xy_ndata_offset:	
+	fetch 1,mem_data_value
+	call mouse_pdata_invert
+	call mouse_current_xy_get_0_6_times
+	call disable_blank,blank
+	call mouse_pdata_get_new_value
+	branch mouse_xy_data_offset_new
+	
+mouse_pre_xy_get_0_4_times:
+	mul32 pdata,4,pdata
+	div pdata,5
+	call wait_div_end
+	quotient pdata
+	rtn
+mouse_current_xy_get_0_6_times:	//0.6 times
+	mul32 pdata,12,pdata
+	div pdata,10
+	call wait_div_end
+	quotient pdata
+	rtn	
+	
+mouse_drawing_optima_data_x:
+	fetch 2,mem_data_pre
+	fetcht 2,mem_data_current
+	iadd temp,pdata
+	fetcht 1,mem_mouse_data_xtemp
+	iadd temp,pdata
+	and pdata,0x01,temp
+	storet 1,mem_mouse_data_xtemp
+	branch mouse_drawing_optima_data
+
+mouse_drawing_optima_data_y:
+	fetch 2,mem_data_pre
+	fetcht 2,mem_data_current
+	iadd temp,pdata
+	fetcht 1,mem_mouse_data_ytemp
+	iadd temp,pdata
+	and pdata,0x01,temp
+	storet 1,mem_mouse_data_ytemp
+	branch mouse_drawing_optima_data
+
+/**********
+input:data_pre,data_current
+output:data_pre,data_current after optima
+***********/
+mouse_drawing_optima_data:
+	store 3,mem_data_sum
+	isolate1 16,pdata
+	branch mouse_data_sum_overflow,true
+	fetch 1,mem_data_sum+1
+	beq 0xff,mouse_data_sum_n
+	fetch 1,mem_data_sum
+mouse_data_store_pre:
+	rshift pdata,pdata
+	store 2,mem_data_pre
+	store 2,mem_data_current
+	rtn
+mouse_data_sum_overflow:
+	fetch 1,mem_data_sum+1	//sum positive
+	beq 0,mouse_data_sum_overflow_p
+	fetch 3,mem_data_sum	
+	branch mouse_data_store_pre
+mouse_data_sum_overflow_p:
+	jam 0,mem_data_sum+2
+	fetch 1,mem_data_sum
+	branch mouse_data_store_pre
+
+mouse_data_sum_n:
+	fetch 1,mem_data_sum	//sum negetive
+	call mouse_pdata_get_half
+	store 1,mem_data_pre
+	store 1,mem_data_current
+	branch mouse_data_zero,blank
+	setarg 0xff
+mouse_data_set_direction:	
+	store 1,mem_data_pre+1
+	store 1,mem_data_current+1
+	rtn
+mouse_data_zero:
+	setarg 0
+	branch mouse_data_set_direction
+
+mouse_pdata_get_half:
+	call mouse_pdata_invert
+	rshift pdata,pdata
+mouse_pdata_get_new_value:	
+	call mouse_rega_in_out
+	sub pdata,0,pdata
+	store 1,mem_data_value	
+	rtn
+
+mouse_pdata_invert:
+	sub pdata,0,pdata
+mouse_rega_in_out:	
+	store 1,mem_rega
+	fetch 1,mem_rega
+	rtn
+
+mouse_disable_asm:
+	jam 0,mem_mouse_asm_flag
+	rtn
+mouse_enable_asm:
+	jam 1,mem_mouse_asm_flag
+	rtn
+
+//rega mouse_x, regb mouse_y, pdata refer
+mouse_pdata_greater_than_check:
+	isub rega,null
+	nbranch disable_blank,positive
+	isub regb,null
+	nbranch disable_blank,positive
+	branch enable_blank
+mouse_data_less_than_check:
+	isub rega,null
+	nrtn positive
+	isub regb,null
+	nrtn positive
+	branch enable_blank
+
+mouse_data_abs_check:
+	fetch 2,mem_mouse_x
+	call mouse_data_abs
+	copy pdata,rega
+	fetch 2,mem_mouse_y
+	call mouse_data_abs
+	copy pdata,regb
+	rtn
+
+/***********
+input: data_current
+output:pdata,abs
+************/
+mouse_data_abs:
+	store 2,mem_data_current
+	fetch 1,mem_data_current+1
+	beq 0xff,mouse_data_reversal
+	fetch 1,mem_data_current
+mouse_data_abs_store:
+	and_into 0xff,pdata
+	//output:pdata
+	rtn
+mouse_data_reversal:
+	fetch 2,mem_data_current
+	sub pdata,0,pdata
+	branch mouse_data_abs_store
+
+
+/*
+mouse_delay_4s:
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	rtnbit0 MOUSE_ENABLE_INIT_DELAY
+	arg 20,loopcnt
+mouse_delay_20ms:
+	setarg 200000
+	call sleep
+	loop delay_10ms
+	rtn	
+*/
+mouse_24g_long_sleep_param_update_timer:
+	arg mem_24g_long_sleep_param_update_timer,regc
+	arg mouse_24g_long_sleep_normal_param,regb
+	branch timer_single_step
+mouse_24g_long_sleep_normal_param:
+	setarg G24_LONG_SLEEP_STEP2
+	store 3,mem_24g_enter_hibernate
+	jam 1,mem_mouse_long_mult_flag
+	rtn
+
+
+
+
+mouse_24g_delay_timer:
+	arg mem_24g_enter_lpm_timer,regc
+	arg mouse_24g_delay,regb
+	branch timer_single_step
+
+mouse_24g_delay:
+	rtn
+
+
+mouse_24g_stop:
+	set0 mark_24g,mark
+	jam STATE_24G_STOP,mem_24g_conn_sm
+	arg MOUSE_24G_PAIRING_FLAG,queue
+	branch mouse_disable_function_flag
+
+
+mouse_24g_start_mode:
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	bbit0 MOUSE_ENABLE_24G,mouse_24g_mode_setup_error
+	call mouse_wakeup_from_power_check	// wake from hibernate :enble user
+	branch mouse_24g_reconn_dongle_start,user
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	bbit1 MOUSE_ENABLE_AUTO_24G_PARING,mouse_24g_reconn_general_dongle
+	bbit0 MOUSE_ENABLE_24G_POWER_ON_PAIRING,mouse_24g_reconn_general_dongle
+	call mouse_key_check_once
+	and pdata,0x07,pdata
+	fetcht 1,mem_mouse_commbination_key_24g
+	isub temp,null
+	branch mouse_24g_start_pair_mode,zero
+	branch mouse_24g_reconn_general_dongle
+
+mouse_24g_mode_setup_error:
+	fetch 1,mem_reconn_times
+	nbranch mouse_polling_device,blank
+	rtn
+
+mouse_24g_reconn_dongle_start:
+	fetch 2,mem_24g_reconn_timeout_init
+	store 2,mem_24g_reconn_timeout
+	jam RECEIVER_AND_3_0_ADDR,mem_24g_reconn_type
+	branch g24_reconn_start
+
+
+mouse_24g_first_start_auto_pair_mode:
+	call mouse_wakeup_from_power_check
+	branch mouse_24g_first_start_reconn,user  	// wake from hibernate :enble user
+mouse_24g_reconn_general_dongle:	
+	jam MODE_24G_DEVICE,mem_device_flag
+	fetch 2,mem_mouse_24g_power_on_fast_conn_timer
+	store 2,mem_24g_reconn_timeout
+	jam FAST_CONN_AND_3_0_ADDR,mem_24g_reconn_type
+	branch g24_reconn_start
+
+mouse_24g_start_auto_pair:
+	call mouse_discover_setting_led_gpio
+	fetch 2,mem_24g_pair_timeout_init
+	store 2,mem_24g_reconn_timeout
+	jam PAIR_AND_3_0_ADDR,mem_24g_reconn_type
+	branch g24_reconn_start
+
+
+mouse_24g_first_start_reconn:
+	fetch 1,mem_device_flag
+	beq MODE_24G_DEVICE,mouse_24g_reconn_dongle_start
+	call mouse_bluetooth_fast_conn_disable
+	branch mouse_24g_first_bluetooth_reconnect
+	
+mouse_24g_first_bluetooth_reconnect:
+	call mouse_24g_stop
+	call mouse_device_led_all_off
+	jam MODE_BT_DEVICE1,mem_device_flag
+	call mouse_select_reconn_device
+	branch mouse_start_reconnect_device
+
+mouse_24g_first_bb_event_reconn_timeout:
+	call mouse_wakeup_from_power_check
+	branch app_bb_hibernate,user
+	branch mouse_start_discovery
+
+
+mouse_24g_first_store_reconn_info:
+	call mouse_wakeup_from_power_check
+	rtn user
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	bbit1 MOUSE_ENABLE_24G_FIRST_AUTO_PAIRING,mouse_store_device_info_delay
+	rtn
+
+mouse_24g_start_pair_mode:
+	arg MOUSE_24G_PAIRING_FLAG,queue
+	call mouse_enable_function_flag
+	setarg 0
+	store 2,mem_24g_reconn_timeout	
+	call mouse_stop_discovery
+	call mouse_low_voltage_led_blink_disable
+	call mouse_discover_setting_led_gpio
+	jam TYPE_MS,mem_24g_data_type
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	bbit0 MOUSE_ENABLE_KEYBOARD,g24_pair_start
+	jam TYPE_KB,mem_24g_data_type
+	branch g24_pair_start
+
+	
+mouse_24g_attempt_fail:
+	fetch 1,mem_24g_reconn_type
+	beq FAST_CONN_AND_3_0_ADDR,mouse_24g_fast_conn_attempt_fail
+	beq PAIR_AND_3_0_ADDR,mouse_24g_auto_pair_attempt_fail
+mouse_24g_attempt_fail_enter_hibernate:
+	jam 1,mem_mouse_24g_enter_lpm_enable
+	call mouse_device_led_off
+	call mouse_24g_stop
+	fetch 1,mem_reconn_times
+	nbranch mouse_polling_device,blank
+	fetch 1,mem_device_flag
+	beq MODE_24G_DEVICE,mouse_app_enter_hibernate
+	rtn
+
+mouse_24g_fast_conn_attempt_fail:
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag 
+	bbit1 MOUSE_ENABLE_24G_FIRST_AUTO_PAIRING,mouse_24g_start_auto_pair
+	bbit1 MOUSE_ENABLE_AUTO_24G_PARING,mouse_24g_start_auto_pair
+	branch mouse_24g_reconn_dongle_start
+
+
+mouse_24g_auto_pair_attempt_fail:
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag 
+	bbit0 MOUSE_ENABLE_24G_FIRST_AUTO_PAIRING,mouse_24g_attempt_fail_enter_hibernate
+	fetch 1,mem_device_number
+	beq 1,mouse_24g_attempt_fail_enter_hibernate		//24g first mode and only 2.4g device
+	branch mouse_24g_first_bluetooth_reconnect
+		
+mouse_24g_attempt_success:
+	call mouse_init_sensor_reset
+	jam 0,mem_mouse_long_mult_flag
+	jam 0,mem_24g_conn_sm
+	jam 0,mem_24g_reconn_type
+	jam 1,mem_mouse_24g_enter_lpm_enable
+	fetch 4,mem_24g_receiver_addr
+	fetch 4,mem_24g_fast_conn_addr
+	isub temp,null
+	rtn zero
+	branch mouse_24g_first_store_reconn_info
+	
+mouse_24g_pairing_complete:
+	jam 1,mem_mouse_24g_enter_lpm_enable
+	arg MOUSE_24G_PAIRING_FLAG,queue
+	call mouse_disable_function_flag
+	call mouse_device_poweron_timer_init
+	setarg 0
+	store 2,mem_24g_pair_timeout
+	store 2,mem_24g_reconn_timeout
+	store 1,mem_24g_conn_sm
+	store 1,mem_mouse_move_flag
+	store 1,mem_24g_reconn_type
+
+	call mouse_init_sensor_reset
+	fetch 1,mem_config_sensor_type
+	sub pdata,P3610,null
+	call mouse_read_sensor3610_data,zero
+	ncall mouse_read_sensor_common,zero
+
+	fetch 4,mem_24g_addr
+	store 4,mem_24g_receiver_addr
+	store 4,mem_mouse_24g_addr
+	branch mouse_store_device_info_delay
+
+mouse_24g_package_data:
+	rtnmark0 mark_24g
+	call mouse_motion
+	nrtn user
+	call g24_transmit_by_interrupt_enable
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	bbit0 MOUSE_ENABLE_KEYBOARD,mouse_24g_mouse_package_data
+	fetch 1,mem_customer_key
+	nbranch mouse_24g_keyboard_package_data,blank
+mouse_24g_mouse_package_data:
+	call mouse_data_xy_release
+	fetch 1,mem_24g_data_type
+	bbit1 1,mouse_24g_mouse_package_data_now	// last package is keyboard data
+	fetcht 1,mem_24g_txbuf+1
+	fetch 1,mem_mouse_key
+	ior temp,pdata
+	store 1,mem_mouse_key
+	fetcht 1,mem_24g_txbuf+6
+	fetch 1,mem_mouse_z
+	iadd temp,pdata
+	store 1,mem_mouse_z
+	fetcht 1,mem_24g_txbuf+7
+	fetch 1,mem_mouse_tz
+	iadd temp,pdata
+	store 1,mem_mouse_tz	
+mouse_24g_mouse_package_data_now:	
+	jam TYPE_MS,mem_24g_data_type
+	arg 7,rega	//length
+	arg mem_mouse_key,regb //tx buff
+	fetch 2,mem_mouse_z
+	rtn
+//	rtn blank
+//	branch g24_transmit_by_interrupt_enable
+
+mouse_24g_keyboard_package_data:
+	jam TYPE_KB,mem_24g_data_type
+	arg 9,rega	//length
+	fetch 1,mem_customer_data_trigger
+	nbranch mouse_customer_key_press,blank
+	arg mem_customer_key_release,regb	//tx buff
+	rtn
+mouse_customer_key_press:
+	arg mem_customer_key_press,regb
+	rtn
+
+
+	
+mouse_24g_enter_lpm:
+	fetch 1,mem_mouse_24g_enter_lpm_enable
+	rtn blank
+	//do not enter lpm when condition is unallowed
+	fetcht 1,mem_dpi_button_gpio
+	call gpio_get_bit
+	call mouse_24g_dpi_delay_init,true
+	fetch 1,mem_24g_enter_lpm_timer
+	nrtn blank
+	call mouse_check_key_gpio
+	nrtn blank
+//	branch g24_lpm_long_sleep
+
+mouse_24g_dpi_delay_init:
+	fetch 1,mem_dpi_button_gpio
+	rtneq UI_BUTTON_GPIO_DISABLE
+	jam 10,mem_24g_enter_lpm_timer
+	rtn
+
+
+
+
+/**************************************g24 search receiver*****************************************/
+
+mouse_24g_search_dongle_init:
+	setarg 0
+	store 3,mem_mouse_search_dongle_action
+	rtn
+
+mouse_24g_search_dongle:
+	fetch 1,mem_mouse_long_mult_flag
+	rtn blank
+	fetch 1,mem_24g_abort_pac
+	rtn blank
+	fetch 1,mem_mouse_search_dongle_interval
+	increase 1,pdata
+	and_into 3,pdata
+	store 1,mem_mouse_search_dongle_interval
+	nrtn blank	//400ms
+	jam 0,mem_mouse_search_dongle_ch
+mouse_24g_search_dongle_loop:
+	fetch 1,mem_mouse_search_dongle_ch
+	increase 1,pdata
+	store 1,mem_mouse_search_dongle_ch
+	sub pdata,G24_CH_NUMBER,null
+	nbranch mouse_24g_search_dongle_loop_end,positive
+	call g24_reconn_data_prep
+	call g24_transmit_receive_ack
+	nbranch mouse_24g_search_dongle_loop_retry,sync
+	nbranch mouse_24g_search_dongle_loop_retry,user3
+	call mouse_24g_search_dongle_success
+mouse_24g_search_dongle_loop_end:
+	call g24_txbuf_clear
+	fetch 1,mem_mouse_search_dongle_count
+	increase 1,pdata
+	store 1,mem_mouse_search_dongle_count
+	beq G24_CH_POLL_COUNT,mouse_24g_search_dongle_check
+	rtn
+
+mouse_24g_search_dongle_loop_retry:
+	call g24_ch
+	branch mouse_24g_search_dongle_loop
+
+mouse_24g_search_dongle_check:
+	jam 0,mem_mouse_search_dongle_count
+	fetch 1,mem_mouse_search_dongle_action
+	rtnbit1 G24_DISCONN_STATE
+	set1 G24_DISCONN_STATE,pdata
+	store 1,mem_mouse_search_dongle_action
+	setarg G24_DISCONN_NODATA_TIMER	//3min
+	store 2,mem_mouse_no_data_timer
+	branch mouse_sensor_powerdown
+
+mouse_24g_search_dongle_success:
+	fetch 1,mem_24g_abort_pac
+	branch mouse_24g_search_dongle_init,blank
+	jam 0,mem_mouse_search_dongle_count
+	fetch 1,mem_mouse_search_dongle_action
+	rtnbit0 G24_DISCONN_STATE
+	set0 G24_DISCONN_STATE,pdata
+	store 1,mem_mouse_search_dongle_action
+	call mouse_no_data_timer_init
+	branch mouse_init_sensor_reset
+
+/**************************************g24 search receiver*****************************************/
+
+
+
+/*******************led*************************/
+mouse_device_poweron_timer:
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	rtnbit0 MOUSE_ENABLE_POWER_ON_LED
+	fetch 1,mem_mouse_device_poweron_timer_count
+	rtn blank
+	increase -1,pdata
+	store 1,mem_mouse_device_poweron_timer_count
+	branch mouse_device_led_off,blank
+	branch mouse_device_led_on
+	
+mouse_device_poweron_timer_init:
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	rtnbit0 MOUSE_ENABLE_POWER_ON_LED
+	call mouse_low_voltage_led_blink_disable
+	fetch 1,mem_mouse_device_poweron_timer_count_init
+	store 1,mem_mouse_device_poweron_timer_count
+	rtn	
+
+	
+mouse_discover_setting_led_gpio:
+	jam 0,mem_mouse_device_poweron_timer_count
+	fetch 2,mem_mouse_disconvey_led_blink_time
+	store 2,mem_mouse_on_time
+	store 2,mem_mouse_off_time	
+mouse_setting_led_gpio_comman:
+	fetch 1,mem_device_flag
+	beq MODE_24G_DEVICE,mouse_device_led_24g
+	beq MODE_BT_DEVICE1,mouse_device_led_bt1
+	beq MODE_BT_DEVICE2,mouse_device_led_bt2
+	rtn
+mouse_device_led_24g:
+	fetch 1,mem_config_device_24g_led_gpio
+	branch mouse_led_blink
+mouse_device_led_bt1:
+	fetch 1,mem_config_device_bt1_led_gpio
+	branch mouse_led_blink
+mouse_device_led_bt2:
+	fetch 1,mem_config_device_bt2_led_gpio
+mouse_led_blink:
+	store 1,mem_temp
+	call mouse_device_led_off
+	fetch 1,mem_temp
+	store 1,mem_mouse_struct_led_gpio
+	arg 0,rega
+	jam UI_LED_STATE_BLINK_START,mem_mouse_led_type
+	branch ui_led_blink_start_global
+
+
+mouse_dpi_led_blink_delay:
+	fetch 1,mem_dpi_led_gpio
+	rtneq GPIO_DISABLE
+	fetch 2,mem_mouse_discovery_timer
+	nrtn blank
+	fetch 2,mem_24g_pair_timeout
+	nrtn blank
+	fetch 1,mem_mouse_device_poweron_timer_count
+	nrtn blank
+	fetch 1,mem_mouse_dpi_led_delay_count_init
+	branch mouse_dpi_led_blink_init,blank
+	store 1,mem_mouse_dpi_led_delay_count  //delay 1s led blink
+	rtn
+
+
+mouse_dpi_led_blink_delay_timer:
+	arg mem_mouse_dpi_led_delay_count,regc
+	arg mouse_dpi_led_blink_init,regb
+	branch timer_single_step	
+	
+mouse_dpi_led_blink_init:
+	fetch 1,mem_dpi_led_gpio
+	store 1,mem_mouse_struct_led_gpio
+	fetch 2,mem_mouse_dpi_led_blink_time
+	store 2,mem_mouse_on_time
+	store 2,mem_mouse_off_time
+	arg 0,rega
+	fetcht 1,mem_mouse_dpi
+	increase 1,temp
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	bbit0 MOUSE_ENABLE_DPI_LEVEL_4,mouse_dpi_led_blink_init_end
+	increase 1,temp
+	sub temp,4,null
+	ncall mouse_dpi_led_blink_count_clean,positive		// blink count:2 3 4 1
+mouse_dpi_led_blink_init_end:	
+	storet 1,mem_mouse_blink_count
+	jam UI_LED_STATE_BLINK_START,mem_mouse_led_type
+	rtn
+
+mouse_dpi_led_blink_count_clean:
+	arg 1,temp
+	rtn
+
+mouse_check_dpi_blink:
+	disable user
+	fetch 1,mem_dpi_led_gpio
+	fetcht 1,mem_mouse_struct_led_gpio
+	isub temp,null
+	nrtn zero
+	fetch 1,mem_mouse_blink_count
+	rtn blank
+	jam 0,mem_adc_low_volatage_led_blink_enable
+	enable user
+	rtn
+
+mouse_device_led_all_off:
+	call mouse_dpi_led_off
+	call mouse_device_24g_led_off
+	call mouse_device_bt1_led_off
+	branch mouse_device_bt2_led_off
+
+mouse_device_led_off:
+	fetch 1,mem_device_flag
+	beq MODE_24G_DEVICE,mouse_device_24g_led_off
+	beq MODE_BT_DEVICE1,mouse_device_bt1_led_off
+	beq MODE_BT_DEVICE2,mouse_device_bt2_led_off
+	rtn
+
+mouse_device_24g_led_off:
+	jam 0,mem_24g_device_led_status
+	fetch 1,mem_config_device_24g_led_gpio
+	branch mouse_led_off
+
+mouse_device_bt1_led_off:
+	fetch 1,mem_config_device_bt1_led_gpio
+	branch mouse_led_off
+	
+mouse_device_bt2_led_off:
+	fetch 1,mem_config_device_bt2_led_gpio
+	branch mouse_led_off
+
+mouse_dpi_led_off:
+	fetch 1,mem_dpi_led_gpio
+	branch mouse_led_off
+
+mouse_device_led_on:
+	fetch 1,mem_device_flag
+	beq MODE_24G_DEVICE,mouse_device_24g_led_on
+	beq MODE_BT_DEVICE1,mouse_device_bt1_led_on
+	beq MODE_BT_DEVICE2,mouse_device_bt2_led_on
+	rtn
+
+mouse_device_24g_led_on:
+	fetch 1,mem_config_device_24g_led_gpio
+	branch mouse_led_on
+mouse_device_bt1_led_on:
+	fetch 1,mem_config_device_bt1_led_gpio
+	branch mouse_led_on
+mouse_device_bt2_led_on:
+	fetch 1,mem_config_device_bt2_led_gpio
+	branch mouse_led_on
+
+mouse_led_off:
+	store 1,mem_mouse_struct_led_gpio
+	arg 0,rega
+	branch ui_led_off_global
+mouse_led_on:
+	store 1,mem_mouse_struct_led_gpio
+	arg 0,rega
+	branch ui_led_on_global
+
+mouse_ui_led_off_static:
+	fetch 1,mem_config_device_24g_led_gpio
+	isub temp,null
+	call mouse_clear_24g_led_statue,zero
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	bbit0 MOUSE_ENABLE_4_LED,ui_led_off_static+4
+	call mouse_check_bt2_led_off
+	call mouse_check_dpi_led_off
+	call mouse_check_low_v_led_off
+	fetch 1,mem_mouse_led_off_4_led
+	branch ui_led_off_static+4,blank
+	jam 0,mem_mouse_led_off_4_led
+	branch gpio_set_high_impedance
+
+mouse_ui_led_on_static:
+	fetch 1,mem_config_device_24g_led_gpio
+	isub temp,null
+	call mouse_set_24g_led_statue,zero
+	branch ui_led_on_static+4 
+
+
+mouse_check_bt2_led_off:
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	rtnbit0 MOUSE_ENABLE_BT2_FOR_4_LED
+	fetch 1,mem_config_device_bt2_led_gpio
+	branch mouse_check_1gpio_2led_off
+mouse_check_dpi_led_off:
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	rtnbit0 MOUSE_ENABLE_DPI_FOR_4_LED
+	fetch 1,mem_dpi_led_gpio
+	branch mouse_check_1gpio_2led_off
+mouse_check_low_v_led_off:
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	rtnbit0 MOUSE_ENABLE_LOW_V_FOR_4_LED
+	fetch 1,mem_config_low_voltage_alarm_gpio
+mouse_check_1gpio_2led_off:
+	isub temp,null
+	nrtn zero
+	jam 1,mem_mouse_led_off_4_led
+	rtn
+
+mouse_clear_24g_led_statue:
+	jam 0,mem_24g_device_led_status
+	rtn
+
+mouse_set_24g_led_statue:
+	jam 1,mem_24g_device_led_status
+	rtn
+
+mouse_low_voltage_led_timer:
+	fetch 2,mem_mouse_discovery_timer
+	nrtn blank
+	fetch 2,mem_24g_pair_timeout
+	nrtn blank
+	fetch 1,mem_mouse_device_poweron_timer_count
+	nrtn blank
+	call mouse_check_dpi_blink
+	rtn user
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	rtnbit0 MOUSE_ENABLE_LOW_VOLTAGE_LED
+	rtnbit0 MOUSE_LOW_VOLTAGE_FLAG
+	bbit1 MOUSE_ENABLE_LOW_VOLTAGE_LED_BLINK_N_SECOND,mouse_low_voltage_led_blink_new_data
+	fetch 1,mem_adc_low_volatage_led_timer_count
+	increase 1,pdata
+	store 1,mem_adc_low_volatage_led_timer_count
+	sub pdata,20,null
+	ncall mouse_adc_low_volatage_led_timer_count_clean,positive
+	beq 2,mouse_low_voltage_led_on
+	beq 4,mouse_low_voltage_led_off
+	beq 6,mouse_low_voltage_led_on
+	beq 8,mouse_low_voltage_led_off
+	rtn
+mouse_adc_low_volatage_led_timer_count_clean:
+	jam 1,mem_adc_low_volatage_led_timer_count
+	branch mouse_low_voltage_led_off
+mouse_low_voltage_led_on:
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	bbit1 MOUSE_ENABLE_LOW_VOLTAGE_USE_MODE_LED,mouse_device_led_on
+	fetch 1,mem_config_low_voltage_alarm_gpio
+	rtneq GPIO_DISABLE
+	branch mouse_led_on
+mouse_low_voltage_led_off:
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	bbit1 MOUSE_ENABLE_LOW_VOLTAGE_USE_MODE_LED,mouse_device_led_off
+	fetch 1,mem_config_low_voltage_alarm_gpio
+	rtneq GPIO_DISABLE
+	branch mouse_led_off
+
+mouse_low_voltage_led_blink_new_data:
+	fetch 2,mem_mouse_no_data_timeout
+	fetcht 2,mem_mouse_no_data_timer
+	isub temp,temp
+	fetch 2,mem_adc_low_volatage_led_blink_timer
+	isub temp,null
+	nbranch mouse_low_voltage_led_blink_disable,positive
+	fetch 1,mem_adc_low_volatage_led_blink_enable
+	nrtn blank
+	jam 1,mem_adc_low_volatage_led_blink_enable
+	branch mouse_low_voltage_led_blink_init
+	
+mouse_low_voltage_led_blink_init:
+	fetch 2,mem_mouse_low_v_led_blink_time
+	store 2,mem_mouse_on_time
+	store 2,mem_mouse_off_time
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	bbit1 MOUSE_ENABLE_LOW_VOLTAGE_USE_MODE_LED,mouse_setting_led_gpio_comman
+	fetch 1,mem_config_low_voltage_alarm_gpio
+	rtneq GPIO_DISABLE
+	branch mouse_led_blink
+
+mouse_low_voltage_led_blink_disable:
+	jam 0,mem_adc_low_volatage_led_blink_enable
+	branch mouse_low_voltage_led_off
+
+
+mouse_low_voltage_led_no_enter_lpm:	
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	rtnbit0 MOUSE_ENABLE_LOW_VOLTAGE_LED
+	rtnbit0 MOUSE_LOW_VOLTAGE_FLAG
+	bbit1 MOUSE_ENABLE_LOW_VOLTAGE_LED_BLINK_N_SECOND,mouse_low_voltage_led_no_enter_lpm_blink
+	fetch 1,mem_adc_low_volatage_led_timer_count
+	sub pdata,10,null
+	branch mouse_lpm_mode_clear,positive
+	jam 1,mem_lpm_mode
+	rtn
+
+mouse_lpm_mode_clear:
+	jam 0,mem_lpm_mode
+	rtn
+
+mouse_low_voltage_led_no_enter_lpm_blink:
+	fetch 1,mem_adc_low_volatage_led_blink_enable
+	nbranch mouse_lpm_mode_clear,blank
+	jam 1,mem_lpm_mode
+	rtn
+	
+/*******************led*************************/	
+
+
+mouse_le_transmit:
+	fetch 1,mem_rssi
+	call rssi_signal
+	branch power_ctrl_start
+
+mouse_bt_slave_match:
+	fetch 1,mem_rssi
+	call rssi_signal
+	fetch 1,mem_state
+	isolate1 state_inconn,pdata
+	nrtn true
+	fetch 1,mem_arq
+	isolate1 wack,pdata
+	call power_ctrl_pac_succ_decrs,true
+	ncall power_ctrl_pac_succ_incrs,true
+	branch power_ctrl_start
+
+mouse_le_set_lpm_mult:
+	fetch 1,mem_le_connect_status_flag
+	compare 3,pdata,3
+	nbranch disable_blank,true
+	branch enable_blank
+
+mouse_bt_set_lpm_mult:
+	call l2cap_malloc_is_fifo_empty
+	nbranch enable_blank,blank
+	jam 1,mem_current_sniff_attempt
+	jam 0,mem_current_sniff_timeout
+	branch enable_blank
+
+mouse_set_lpm_mult:
+	fetch 2,mem_ui_state_map
+	bbit1 UI_STATE_BLE_CONNECTED,mouse_le_set_lpm_mult
+	branch mouse_bt_set_lpm_mult
+
+/*****************close define  COMPILE_MOUSE**********/
+else
+mouse_init:
+mouse_irtual_cable_unplug:
+mouse_store_remote_bdaddr:
+mouse_ui_led_off_static:
+mouse_ui_led_on_static:
+mouse_bt_hid_handshake_boot_check:
+mouse_delay_enter_hibernata:
+mouse_low_voltage_led_no_enter_lpm_blink:
+	rtn
+endif
+
+
+
Index: program/app_remote_car.prog
===================================================================
--- /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/program/app_remote_car.prog	(nonexistent)
+++ /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/program/app_remote_car.prog	(working copy)
@@ -0,0 +1,313 @@
+ifdef COMPILE_REMOTE_CAR
+
+remote_car_init:
+	rtn wake	
+	call keyscan_key_init
+	setarg remote_car_g24_package_data
+	store 2,mem_cb_24g_transmit_data
+
+	setarg remote_car_process_lpm_before
+	store 2,mem_cb_24g_lpm_before
+	
+	setarg remote_car_le_before_hibernate
+	store 2,mem_cb_before_hibernate
+	
+	setarg remote_car_scale_process_idle
+	store 2,mem_cb_idle_process	
+	
+	setarg remote_car_scale_process_bb_event
+	store 2,mem_cb_bb_event_process
+
+	setarg remote_car_event_timer
+	store 2,mem_cb_event_timer
+	
+	setarg remote_car_power_off_signal
+	store 2,mem_remote_car_power_off_cb
+	
+	setarg remote_car_soft_switch_power_on_signal
+	store 2,mem_remote_car_power_standby_cb
+	
+	
+	bpatch patch1c_5,mem_patch1c
+	call remote_car_init_environment
+
+	call queue_init
+	fetch 1,mem_remote_car_config_soft_switch_enable
+	store 1,mem_remote_car_hard_soft_switch
+	beq HARD_SWITCH, remote_car_hard_switch_power_on_signal
+	fetch 1,mem_remote_car_config_soft_switch_gpio
+	store 1,mem_ui_button_gpio
+remote_car_soft_switch_power_on_init:
+	call remote_car_ui_led_init
+	call ui_button_init
+	call ui_button_polling
+	jam POWER_STARTING,mem_remote_car_power_state
+	fetch 2,mem_ui_state_map
+	rtnbit1 UI_STATE_BTN_DOWN
+	branch app_enter_hibernate
+
+
+
+remote_car_hard_switch_power_on_signal:
+	jam POWER_STANDBY,mem_remote_car_power_state
+remote_car_soft_switch_power_on_signal:
+	call remote_car_ui_led_init
+	arg 0,rega
+	call ui_led_blink_start_global
+	call remote_car_set_24g_addr_eeprom
+	call iicd_read_eep_data
+	call g24_factory_check
+	branch g24_pair_start,user
+	fetch 4,mem_24g_addr
+	store 4,mem_24g_receiver_addr
+	fetch 2,mem_24g_reconn_timeout_init
+	store 2,mem_24g_reconn_timeout
+	branch g24_reconn_start
+
+remote_car_set_24g_addr_eeprom:
+	arg 4,temp
+	arg mem_24g_addr,rega
+	arg REMOTE_INFO_EEPROM_OFFECT,regb
+	rtn
+
+
+remote_car_power_off_signal:	
+remote_car_ui_led_init:
+	bpatch patch1c_6,mem_patch1c
+	fetch 1,mem_remote_car_config_connect_led_gpio
+	bne INVALID_PIN_NUM,remote_car_pairing_led_gpio_set
+remote_car_ui_led_init_1:
+	fetcht 1, mem_remote_car_led_map
+	branch gpio_config_output
+remote_car_pairing_led_gpio_set:
+	store 1,mem_remote_car_led_map
+	branch remote_car_ui_led_init_1
+
+
+remote_car_init_environment:
+	call g24_transmit_init
+	fetch 2,mem_remote_car_no_data_timeout
+	store 2,mem_remote_car_no_data_timer
+	rtn
+
+remote_car_le_before_hibernate:
+//	call keyscan_scan_key
+//	fetch 2, mem_key_value_temp
+//	branch remote_car_in_enter_hibernate,blank
+//	branch app_enter_hibernate
+//remote_car_in_enter_hibernate:
+	call gpio_set_before_lpm_common
+	call remote_car_process_lpm_before
+	branch app_enter_hibernate
+
+remote_car_process_lpm_before:
+	branch keyscan_process_lpm_before
+
+remote_car_key_scan_process:
+	call keyscan_key_process
+	call get_remote_key_state
+	call remote_conn_led_state
+	branch send_data
+
+remote_conn_led_state:
+	fetch 1,mem_remote_car_24g_status
+	rtnne WORK_PAIRED
+	fetch 4,mem_remote_car_motor1_key0_press_state
+	branch remote_car_stop_state,blank
+	jam 0,mem_remote_car_no_data_check
+	enable user
+	branch check_51cmd_led_on
+remote_car_stop_state:
+	fetch 1,mem_remote_car_no_data_check
+	rtneq 0xff
+	pincrease 1
+	store 1,mem_remote_car_no_data_check
+	disable user
+	branch check_51cmd_led_off
+
+	
+get_remote_key_state:
+	fetcht 2,mem_key_value
+	and temp,0x01,pdata
+	rshift temp,temp
+	store 1,mem_remote_car_motor1_key0_press_state
+	and temp,0x01,pdata
+	rshift temp,temp
+	store 1,mem_remote_car_motor1_key1_press_state
+	and temp,0x01,pdata
+	rshift temp,temp
+	store 1,mem_remote_car_motor2_key2_press_state
+	and temp,0x01,pdata
+	rshift temp,temp
+	store 1,mem_remote_car_motor2_key3_press_state
+	rtn
+send_data:
+	bpatch patch1c_7,mem_patch1c
+	call remote_car_fb_check
+	call remote_car_lr_check
+	call remote_car_no_data_timeout_check
+	nrtn user
+	branch remote_car_send_key 
+
+
+remote_car_no_data_timeout_check:
+	fetch 1,mem_remote_car_24g_status
+	rtnne WORK_PAIRED
+	fetch 1,mem_remote_car_no_data_check
+	rtn blank
+	sub pdata,1,null
+	nrtn positive
+	fetch 2,mem_24g_reconn_timeout_init
+	store 2,mem_24g_reconn_timeout
+	enable user
+	rtn
+
+
+	
+remote_car_fb_check:
+	fetch 1,mem_remote_car_motor1_key0_press_state
+	nbranch remote_car_send_motor1_key0_press,blank
+	fetch 1,mem_remote_car_motor1_key1_press_state
+	nbranch remote_car_send_motor1_key1_press,blank
+	branch remote_car_send_motor1_key0_rel
+	
+remote_car_lr_check:
+	fetch 1,mem_remote_car_motor2_key2_press_state
+	nbranch remote_car_send_motor2_key2_press,blank
+	fetch 1,mem_remote_car_motor2_key3_press_state
+	nbranch remote_car_send_motor2_key3_press,blank
+	branch remote_car_send_motor2_key2_rel
+
+
+remote_car_scale_process_idle:
+	call remote_car_24g_status_process
+	branch remote_car_key_scan_process
+
+remote_car_scale_process_bb_event:
+	copy regc,pdata
+	beq BT_EVT_BUTTON_UP,app_event_button_up
+	beq BT_EVT_BUTTON_LONG_PRESSED,app_button_long_pressed
+	beq BT_EVT_24G_PAIRING_COMPLETE,remote_car_24g_pairing_complete
+	beq BT_EVT_24G_ATTEMPT_SUCCESS,remote_car_24g_attempt_success
+	beq BT_EVT_24G_ATTEMPT_FAIL,remote_car_24g_attempt_fail
+	rtn
+
+remote_car_24g_attempt_fail:
+	branch g24_txbuf_clear
+
+remote_car_24g_pairing_complete:
+	call remote_car_set_24g_addr_eeprom
+	call iicd_write_protect_eep_data
+remote_car_24g_attempt_success:
+	jam 0,mem_24g_conn_sm
+	jam WORK_PAIRED,mem_remote_car_24g_auto_work_step
+	jam WORK_PAIRED,mem_remote_car_24g_pair_success_flag
+	rtn
+
+remote_car_24g_status_process:
+	fetch 1,mem_remote_car_24g_auto_work_step
+	rtneq POWER_ON
+	fetch 1,mem_remote_car_24g_status
+	rtneq WORK_PAIRED
+	jam WORK_PAIRED,mem_remote_car_24g_status
+remote_car_scale_process_paired:
+	arg 0,rega
+	branch ui_led_off_global
+remote_car_scale_process_shutdown:
+	arg 0,rega
+	call ui_led_off_global
+	call remote_car_ui_led_init
+	branch app_enter_hibernate
+	
+remote_car_event_timer:
+	call app_power_timer
+	call g24_pair_timeout_timer
+	call g24_reconn_timeout_timer	
+	branch remote_car_no_data_timer
+
+remote_car_no_data_timer:
+	fetch 1,mem_remote_car_config_timeout_shutdown_enable
+	rtn blank
+	arg mem_remote_car_no_data_timer,regc
+	arg remote_car_scale_process_shutdown,regb
+	branch timer_single_step_2B
+	
+
+//cross key,control front-back motor layout
+remote_car_send_motor1_key0_press:	//front
+	jam MOTOR_POSITIVE,mem_remote_car_24g_motor1_payload
+	rtn
+remote_car_send_motor1_key1_press:	//back
+	jam MOTOR_NEGATIVE,mem_remote_car_24g_motor1_payload
+	rtn
+remote_car_send_motor2_key2_press:	//left
+	jam MOTOR_POSITIVE,mem_remote_car_24g_motor2_payload
+	rtn
+remote_car_send_motor2_key3_press:	//right
+	jam MOTOR_NEGATIVE,mem_remote_car_24g_motor2_payload
+	rtn
+
+
+remote_car_send_motor1_key0_rel:
+remote_car_send_motor1_key1_rel:
+	jam MOTOR_STOP,mem_remote_car_24g_motor1_payload
+	rtn
+remote_car_send_motor2_key2_rel:
+remote_car_send_motor2_key3_rel:
+	jam MOTOR_STOP,mem_remote_car_24g_motor2_payload
+	rtn
+	
+remote_car_send_key:
+	arg mem_remote_car_24g_motor_packet,rega
+	branch queue_push
+remote_car_send_attack:
+	arg mem_remote_car_24g_fire_packet,rega
+	branch queue_push
+
+remote_car_g24_package_data:
+	fetch 1,mem_remote_car_24g_pair_success_flag
+	beq WORK_PAIRED,remote_car_g24_send_empty
+	arg mem_remote_car_24g_tx_temp,rega
+	call queue_pop
+	nbranch remote_car_moto_data,user
+remote_car_g24_package_data_continue:
+	arg mem_remote_car_24g_tx_temp,contr
+	ifetch 1,contr
+	copy pdata,rega
+	arg mem_remote_car_24g_tx_temp+1,regb
+	//rega: length
+	//regb: tx buffer
+	rtn
+	
+remote_car_g24_send_empty:
+	jam 0,mem_remote_car_24g_pair_success_flag
+	enable user
+	arg 1,rega
+	arg mem_remote_car_empty_packet,regb
+	rtn
+	
+remote_car_moto_data:
+	fetch 1,mem_remote_car_24g_tx_temp+3	//cmd
+	beq CAR_CMD_L_R_MOTOR_CONTROL,remote_car_moto_data_next
+	beq CAR_CMD_F_B_MOTOR_CONTROL,remote_car_moto_data_next
+	rtn
+remote_car_moto_data_next:
+	fetch 1,mem_remote_car_24g_tx_temp+6	//data moto1
+	nbranch remote_car_moto_data_enable_user,blank
+	fetch 1,mem_remote_car_24g_tx_temp+8	//data moto2
+	nbranch remote_car_moto_data_enable_user,blank
+	fetch 1,mem_remote_car_24g_tx_temp+10	//data moto3
+	nbranch remote_car_moto_data_enable_user,blank
+	rtn
+remote_car_moto_data_enable_user:
+	enable user
+	branch remote_car_g24_package_data_continue
+
+else
+remote_car_init:
+	rtn
+endif
+
+
+
+
Index: program/app_shutter.prog
===================================================================
--- /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/program/app_shutter.prog	(nonexistent)
+++ /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/program/app_shutter.prog	(working copy)
@@ -0,0 +1,833 @@
+
+ifdef COMPILE_SHUTTER
+
+shutter_init:
+	rtn wake
+	setarg shutter_le_before_hibernate
+	store 2,mem_cb_before_hibernate
+
+	setarg shutter_process_lpm_before
+	store 2,mem_cb_before_lpm
+	
+	setarg app_enter_hibernate
+	store 2,mem_cb_discovry_timeout
+	
+	setarg shutter_process_idle
+	store 2,mem_cb_idle_process
+		
+	setarg shutter_process_bb_event 
+	store 2,mem_cb_bb_event_process
+
+	setarg shutter_le_scale_lpm_lock
+	store 2,mem_cb_check_wakelock
+	
+	setarg ble_shutter_receive_data
+	store 2,mem_cb_att_write
+
+	setarg shutter_le_bb_event_timer
+	store 2,mem_cb_event_timer
+
+	setarg shutter_key_change
+	store 2,mem_cb_shutter_keycan
+
+	setarg shutter_soft_swtich_power_on
+	store 2,mem_shutter_soft_switch_poweron_callback_function
+	setarg shutter_soft_swtich_power_off
+	store 2,mem_shutter_soft_switch_poweroff_callback_function
+
+	call shutter_set_ble_version
+	call le_modified_name
+	call shutter_init_param	
+	call keyscan_key_init
+	call queue_init
+	call ui_led_init_global
+	call shutter_load_bluetooth_config_by_eeprom
+	call shutter_random_mac_addr
+	
+	bpatch patch1d_0,mem_patch1d
+	call shutter_load_buffer_config_form_DataRom
+	call classic_shutter_load_reconn_info
+	fetch 1, mem_shutter_hard_soft_switch_case
+	beq HARD_SWITCH, shutter_hart_swtich_power_on
+	fetch 1,mem_shutter_soft_switch_button_gpio
+	store 1,mem_ui_button_gpio
+	branch ui_soft_swtich_init
+
+shutter_set_ble_version:
+	//set ble version  4.1 
+	jam 7,mem_lmp_version
+	rtn
+
+/**************hard swtich function**************/
+shutter_hart_swtich_power_on:
+	jam UI_BUTTON_GPIO_DISABLE,mem_ui_button_gpio
+	jam SS_STATE_POWER_ON,mem_shutter_soft_switch_power_state
+	branch shutter_start_reconnect
+/****************************/
+
+/**************lpm lock callback function**************/
+shutter_le_scale_lpm_lock:
+	fetch 1,mem_shutter_soft_switch_power_state
+	beq SS_STATE_POWER_OFF,app_get_lpm_wake_lock
+	call l2cap_malloc_get_full_map
+	fetch 1,mem_used_map
+	nbranch app_get_lpm_wake_lock,blank
+	branch app_put_lpm_wake_lock
+/****************************/
+
+/**************c512bt event callback function*************/
+shutter_process_bb_event:
+	copy regc,pdata
+/**************classic shutter event*****************/
+	beq BT_EVT_BB_CONNECTED,classic_shutter_process_baseband_connect
+	beq BT_EVT_BB_DISCONNECTED,classic_shutter_process_baseband_disconnect
+	beq BT_EVT_RECONN_FAILED,classic_shutter_process_reconnect_failed
+	beq BT_EVT_SETUP_COMPLETE,classic_shutter_process_setup_complete
+	beq BT_EVT_HID_CONNECTED,classic_shutter_process_hid_connect
+	beq BT_EVT_HID_DISCONNECTED,classic_shutter_process_hid_disconnect
+	beq BT_EVT_HID_HANDSHAKE,classic_shutter_process_hid_handshake
+	beq BT_EVT_RECONN_PAGE_TIMEOUT,classic_shutter_process_reconnect_page_timeout
+	beq BT_EVT_VIRTUAL_CABLE_UNPLUG,classic_shutter_process_virtual_cable_unplug
+	beq BT_EVT_REMOTE_UNSNIFF,classic_shutter_process_remote_unsniff
+	beq BT_EVT_STORE_NVRAM,classic_shutter_process_store_reconnect_information
+/**************ble shutter event*****************/
+	beq BT_EVT_LE_CONNECTED,ble_shutter_process_baseband_connect
+	beq BT_EVT_LE_DISCONNECTED,ble_shutter_process_baseband_disconnect
+	beq BT_EVT_LE_RECONNECT_COMPLETE,ble_shutter_process_reconnect_complete
+	beq BT_EVT_LE_PARSE_CONN_PAPA_UPDATE_RSP,ble_shutter_process_parse_connect_parameter_update_response
+/***************soft swtich event****************/
+	beq BT_EVT_BUTTON_LONG_PRESSED,shutter_process_soft_swtich_button_long_press
+	beq BT_EVT_BUTTON_DOWN,shutter_process_soft_swtich_button_down
+	beq BT_EVT_BUTTON_UP,shutter_process_soft_swtich_button_up
+	rtn
+/****************************/
+
+
+/******************classic shutter event**********************/
+classic_shutter_process_baseband_connect:
+	jam 0,mem_classic_shutter_hid_disconn_count
+	jam 0,mem_classic_shutter_cable_unplug_conut	
+	rtn
+
+
+classic_shutter_process_baseband_disconnect:
+	call classic_shutter_disconnect_clear_flag
+	branch classic_shutter_process_reconnect_failed
+
+classic_shutter_disconnect_clear_flag:
+	jam APP_HANDSHAKE_NULL,mem_app_handshake_flag
+	jam 0,mem_hid_handshake_timer_count
+	jam 0,mem_unsniff2sniff_timer_count
+	jam 0,mem_classic_shutter_cable_unplug_conut
+	jam 0,mem_classic_shutter_hid_disconn_count
+	branch queue_init
+
+
+classic_shutter_process_reconnect_failed:
+	call app_disconn_reason_clear
+	branch shutter_start_bluetooth_discovery
+
+
+classic_shutter_process_setup_complete:
+	call shutter_stop_bluetooth_discovery
+	branch app_led_stop_blink
+
+
+classic_shutter_process_hid_connect:
+	setarg HID_HANDSHAKE_TIMEOUT
+	store 1,mem_hid_handshake_timer_count
+	rtn	
+
+
+classic_shutter_process_hid_disconnect:
+	jam 0,mem_classic_shutter_cable_unplug_conut	
+	setarg FLAG_SHUTTER_HID_DISCONN_TIMEOUT
+	store 1,mem_classic_shutter_hid_disconn_count
+	rtn
+
+
+classic_shutter_process_hid_handshake:
+	fetch 1,mem_app_handshake_flag
+	rtneq APP_HANDSHAKE_DONE
+	jam APP_HANDSHAKE_DONE,mem_app_handshake_flag
+	call app_lpm_mult_enable
+	call app_store_reconn_info
+	call shutter_stop_bluetooth_discovery
+	call app_led_off
+	branch app_bt_enter_sniff
+
+
+classic_shutter_process_reconnect_page_timeout:
+	branch classic_shutter_process_reconnect_failed
+
+
+classic_shutter_process_virtual_cable_unplug:
+	setarg FLAG_SHUTTER_CABLE_UNPLUG_TIMEOUT
+	store 1,mem_classic_shutter_cable_unplug_conut
+	rtn
+
+
+classic_shutter_process_remote_unsniff:
+	branch app_start_auto_sniff
+
+
+/***************classic shutter store reconn info***********************/
+classic_shutter_process_store_reconnect_information:
+	arg NVRAM_EEPROM_OFFSET,regb
+	fetch 1,mem_nv_data_number
+	mul32 pdata,34,temp
+	fetch 2,mem_nv_data_ptr
+	copy pdata,rega
+	branch iicd_write_eep_data
+
+classic_shutter_load_reconn_info:
+	arg NVRAM_EEPROM_OFFSET,regb
+	fetch 1,mem_shutter_bluetooth_type
+	rtnbit0 CLASSIC_SHUTTER
+	fetch 1,mem_nv_data_number
+	rtn blank
+	mul32 pdata,34,temp
+	fetch 2,mem_nv_data_ptr
+	copy pdata,rega
+	branch iicd_read_eep_data
+/**************************************/
+
+/******************ble shutter event**********************/
+ble_shutter_process_baseband_connect:
+	call shutter_stop_bluetooth_discovery
+	setarg 0
+	store 2,mem_ble_shutter_reconn_timer
+	branch app_led_off
+
+
+ble_shutter_process_baseband_disconnect:
+	call queue_init
+	jam 0,mem_ble_shutter_enable_notify
+	branch shutter_start_reconnect
+
+
+ble_shutter_process_reconnect_complete:
+	call queue_init
+	jam 1,mem_ble_shutter_enable_notify
+	fetch 8,mem_ble_shutter_interval_min
+	store 8,mem_le_interval_min
+	call app_lpm_mult_enable
+	branch le_l2cap_tx_update_req
+
+
+ble_shutter_process_parse_connect_parameter_update_response:
+	fetch 2,mem_le_l2cap_signaling_conn_param_update_rsp_result
+	rtneq BLE_SIGNALING_CONNECT_PARAMETER_UPDATE_ACCEPTED
+	fetch 8,mem_ble_shutter_interval_min_new
+	rtn blank
+	store 8,mem_le_interval_min
+	branch le_l2cap_tx_update_req
+/**************************************/
+
+/******************soft swtich event**********************/
+shutter_process_soft_swtich_button_long_press:
+	branch ui_soft_switch_botton_long_press
+
+shutter_process_soft_swtich_button_down:
+	fetch 1,mem_shutter_hard_soft_switch_case
+	rtneq HARD_SWITCH
+	fetch 1,mem_shutter_soft_switch_power_state
+	rtnne SS_STATE_POWER_ON
+	call shutter_store_currenct_led_state
+	branch app_led_on
+	
+shutter_store_currenct_led_state:
+	jam 1,mem_shutter_soft_swtich_botton_down
+	arg 11,loopcnt
+	arg mem_shutter_soft_swtich_led_struct_temp,contw
+	arg mem_shutter_led_struct_app_led,contr
+	branch memcpy
+	
+shutter_process_soft_swtich_button_up:
+	fetch 1,mem_shutter_hard_soft_switch_case
+	rtneq HARD_SWITCH
+	fetch 1,mem_shutter_soft_switch_power_state
+	beq SS_STATE_POWER_ON,shutter_load_currenct_led_state
+	branch ui_soft_switch_botton_up
+
+shutter_load_currenct_led_state:
+	fetch 1,mem_shutter_soft_swtich_botton_down
+	rtnne 1
+	jam 0,mem_shutter_soft_swtich_botton_down
+	fetch 2,mem_ui_state_map
+	bbit1 UI_STATE_BT_CONNECTED,app_led_off
+	bbit1 UI_STATE_BLE_CONNECTED,app_led_off
+	arg 11,loopcnt
+	arg mem_shutter_soft_swtich_led_struct_temp,contr
+	arg mem_shutter_led_struct_app_led,contw
+	branch memcpy
+	
+/**************************************/
+
+
+shutter_le_bb_event_timer:
+/**************shutter check sleep timer**********************/
+	call shutter_check_sleep_timer
+/************************************/
+/**************soft reset power off timer**********************/
+	call shutter_check_power_off_timer
+/************************************/
+/**************classic shutter timer**********************/
+	call classic_shutter_check_unplug_timer
+	call classic_shutter_hid_handshake_timer
+	call classic_shutter_hid_disconn_timer
+/************************************/
+/**************ble shutter timer**********************/
+	branch ble_shutter_reconn_timer
+/************************************/
+
+/**************shutter check sleep timer**********************/
+shutter_check_sleep_timer:
+	arg mem_shutter_sleep_timer,regc
+	arg shutter_sleep_timeout,regb
+	branch timer_single_step_2B
+shutter_sleep_timeout:
+	jam SS_STATE_POWER_OFF,mem_shutter_soft_switch_power_state
+	call app_led_off
+	call shutter_disconnect_current_connection
+	branch shutter_wait_power_off
+
+/**************soft reset power off timer**********************/
+shutter_check_power_off_timer:
+	arg mem_shutter_power_off_timer,regc
+	arg shutter_check_power_off_timeout,regb
+	branch timer_single_step
+
+shutter_check_power_off_timeout:
+	fetch 2,mem_ui_state_map
+	bbit1 UI_STATE_BLE_CONNECTED,shutter_wait_power_off
+	bbit1 UI_STATE_BT_CONNECTED,shutter_wait_power_off
+	fetch 1,mem_shutter_led_struct_app_led_type
+	beq UI_LED_STATE_BLINK_START,shutter_wait_power_off
+	beq UI_LED_STATE_BLINK_LIGHTING,shutter_wait_power_off
+	beq UI_LED_STATE_BLINK_DARKING,shutter_wait_power_off
+	branch app_enter_hibernate
+/************************************/
+
+/**************classic shutter timer**********************/
+classic_shutter_check_unplug_timer:
+	arg mem_classic_shutter_cable_unplug_conut,regc
+	arg classic_shutter_unplug_timeout,regb
+	branch timer_single_step
+	
+classic_shutter_unplug_timeout:
+	fetch 1,mem_CONTROL_tasks
+	set1  L2CAP_DISCONNECT_INTERRUPT, pdata
+	set1  L2CAP_DISCONNECT_CONTROL, pdata
+	store 1,mem_CONTROL_tasks	
+	rtn
+
+classic_shutter_hid_handshake_timer:
+	arg mem_hid_handshake_timer_count,regc
+	arg classic_shutter_process_hid_handshake,regb
+	branch timer_single_step
+
+classic_shutter_hid_disconn_timer:
+	arg mem_classic_shutter_hid_disconn_count,regc
+	arg app_bt_disconnect,regb
+	branch timer_single_step
+
+/************************************/
+
+/**************ble shutter timer**********************/
+ble_shutter_reconn_timer:
+	fetch 1,mem_shutter_soft_switch_power_state
+	rtnne SS_STATE_POWER_ON
+	arg mem_ble_shutter_reconn_timer,regc
+	arg shutter_start_bluetooth_discovery,regb
+	branch timer_single_step_2B
+/************************************/
+
+shutter_process_idle:
+	call shutter_send_data_to_master
+	branch keyscan_key_process
+
+
+shutter_process_lpm_before:
+	branch keyscan_process_lpm_before
+
+shutter_le_before_hibernate:
+	call gpio_set_before_lpm_common
+	branch shutter_process_lpm_before
+
+//////////////////////////////////////////////////////////////////////////////////////////
+
+
+/****************shutter bluetooth control**********************/
+shutter_stop_bluetooth_discovery:
+	fetch 1,mem_shutter_bluetooth_type
+	bbit1 CLASSIC_SHUTTER,classic_shutter_stop_bluetooth_discovery
+	bbit1 BLE_SHUTTER,ble_shutter_stop_bluetooth_discovery
+	rtn
+
+ble_shutter_stop_bluetooth_discovery:
+	fetch 2,mem_ble_shutter_connect_timeout
+	store 2,mem_shutter_sleep_timeout
+	store 2,mem_shutter_sleep_timer
+	branch app_ble_stop_adv
+	
+classic_shutter_stop_bluetooth_discovery:
+	fetch 2,mem_classic_shutter_connect_timeout
+	store 2,mem_shutter_sleep_timeout
+	store 2,mem_shutter_sleep_timer
+	branch app_bt_stop_discovery
+
+shutter_start_bluetooth_discovery:
+	fetch 1,mem_shutter_soft_switch_power_state
+	rtnne SS_STATE_POWER_ON
+	fetch 1,mem_shutter_bluetooth_type
+	bbit1 CLASSIC_SHUTTER,classic_shutter_start_discovery
+	bbit1 BLE_SHUTTER,ble_shutter_start_discovery
+	rtn
+	
+classic_shutter_start_discovery:
+	fetch 2,mem_classic_shutter_discovery_timeout,
+	store 2,mem_shutter_sleep_timeout
+	store 2,mem_shutter_sleep_timer
+	branch app_bt_start_discovery_short
+
+ble_shutter_start_discovery:
+	fetch 2,mem_ui_state_map
+	rtnbit1 UI_STATE_BLE_CONNECTED
+	fetch 2,mem_ble_shutter_discovery_timeout
+	store 2,mem_shutter_sleep_timeout
+	store 2,mem_shutter_sleep_timer
+	fetch 2,mem_ble_shutter_discovery_adv_interval
+	call shutter_ble_adv_interval_set
+	call app_led_start_blink
+	fetch 4,mem_ble_shutter_discovery_blink_on_time
+	store 4,mem_shutter_led_struct_app_led_on_time
+	fetch 2,mem_ui_state_map
+	rtnbit1 UI_STATE_BLE_ADV
+	branch app_ble_start_adv
+
+
+shutter_start_reconnect:
+	fetch 1,mem_shutter_soft_switch_power_state
+	rtnne SS_STATE_POWER_ON
+	fetch 1,mem_shutter_bluetooth_type
+	bbit1 CLASSIC_SHUTTER,classic_shutter_start_reconnect
+	bbit1 BLE_SHUTTER,ble_shutter_start_reconnect
+	rtn
+
+classic_shutter_start_reconnect:
+	call app_check_reconn_target
+	branch shutter_start_bluetooth_discovery,blank
+	call app_led_on	
+	call app_bt_stop_discovery
+	branch app_bt_start_reconnect	
+
+ble_shutter_start_reconnect:
+	fetch 2,mem_ble_shutter_reconn_timer
+	fetcht 2,mem_ble_shutter_reconn_timeout
+	storet 2,mem_ble_shutter_reconn_timer
+	nrtn blank
+	fetch 2,mem_ble_shutter_reconn_dav_interval
+	call shutter_ble_adv_interval_set
+	call app_led_start_blink
+	fetch 4,mem_ble_shutter_reconn_blink_on_time
+	store 4,mem_shutter_led_struct_app_led_on_time
+	fetch 2,mem_ui_state_map
+	rtnbit1 UI_STATE_BLE_ADV
+	branch app_ble_start_adv
+
+shutter_disconnect_current_connection:
+	fetch 2,mem_ui_state_map
+	bbit1 UI_STATE_BLE_CONNECTED,app_ble_disconnect
+	bbit1 UI_STATE_BT_CONNECTED,app_bt_disconnect
+	branch shutter_stop_bluetooth_discovery
+/**************************************/
+
+/******************classic shutter load reconnect*********************/
+app_check_reconn_target:
+	fetch 1,mem_nv_data_number
+	copy pdata,loopcnt
+	fetch 2,mem_nv_data_ptr
+	copy pdata,rega
+app_check_reconn_target_loop:
+	ifetch 2,rega
+	beq 0,found_reconn_device
+	increase NV_DATA_LEN,rega
+	loop app_check_reconn_target_loop
+	branch enable_blank
+
+found_reconn_device:
+	ifetch 6,contr
+	store 6,mem_hci_plap
+	increase 10,contr
+	arg mem_link_key,contw
+	call  memcpy16
+	call check_link_key_load
+	branch disable_blank
+	
+/**************************************/
+
+/////////////////////////////////////////////////////////////////////////
+//output:if user is enable,mean,can send data
+shutter_check_data_enable:
+	call disable_user
+	fetch 2,mem_ui_state_map
+	bbit1 UI_STATE_BT_CONNECTED,shutter_check_bt_data_enable
+	bbit1 UI_STATE_BLE_CONNECTED,shutter_check_ble_data_enable
+	rtn
+
+shutter_check_bt_data_enable:
+	fetch 1,mem_hid_interrupt_state
+	rtnne 0x3f	
+	branch enable_user
+
+shutter_check_ble_data_enable:
+	fetch 1,mem_ble_shutter_enable_notify
+	rtn blank
+	branch enable_user
+/////////////////////////////////////////////////////////////////////////
+
+/////////////////////////////////////////////////////////////////////////
+//output:if user is enable,mean,bluetooth disconnect
+shutter_check_bluetooth_conn:
+	call disable_user
+	fetch 2,mem_ui_state_map
+	rtnbit1 UI_STATE_BT_CONNECTED
+	rtnbit1 UI_STATE_BLE_CONNECTED
+	branch enable_user
+/////////////////////////////////////////////////////////////////////////
+
+/////////////////////////////////////////////////////////////////////////
+shutter_change_bluetooth_status_bt_disconn:
+	fetch 1,mem_shutter_bluetooth_type
+	bbit1 CLASSIC_SHUTTER,classic_shutter_change_bluetooth_status_bt_disconn
+	bbit1 BLE_SHUTTER,ble_shutter_change_bluetooth_status_bt_disconn
+	rtn
+	
+classic_shutter_change_bluetooth_status_bt_disconn:
+	fetch 1,mem_scan_mode
+	rtnne 0x03
+	branch shutter_start_reconnect
+	
+ble_shutter_change_bluetooth_status_bt_disconn:
+	branch shutter_start_reconnect
+
+/////////////////////////////////////////////////////////////////////////
+
+shutter_check_send_data:
+	disable user2
+	fetch 2,mem_shutter_sleep_timeout
+	store 2,mem_shutter_sleep_timer
+
+	call shutter_check_bluetooth_conn
+	branch shutter_change_bluetooth_status_bt_disconn,user
+	
+	call shutter_check_data_enable
+	nrtn user
+	enable user2
+	rtn
+
+//queue = key index
+//rega =1 press, =0 release
+shutter_key_change:
+	call shutter_check_send_data
+	nrtn user2
+	deposit rega
+	branch shutter_key_release,blank
+shutter_key_press:
+	call app_led_on
+	arg mem_key0_press,regc
+	branch push_queue_press_or_release
+
+shutter_key_release:
+	call app_led_off
+	arg mem_key0_release,regc
+
+push_queue_press_or_release:
+	arg MAX_QUEUE_NUM,pdata
+	imul32 queue,pdata
+	iadd regc,regc
+	
+//input:regc the address that want push to queue buffer
+push_buffer_in_queue:
+	ifetch 1,regc
+	rtn blank
+	call queue_push_one_byte
+	increase 1,regc
+	branch push_buffer_in_queue
+
+
+shutter_send_data_to_master:
+	fetch 2,mem_ui_state_map
+	bbit1 UI_STATE_BLE_CONNECTED,pop_queue_to_ble_data
+	bbit1 UI_STATE_BT_CONNECTED,pop_queue_to_classic_data
+	rtn
+
+pop_queue_to_ble_data:
+	call le_fifo_check_nearly_full
+	nrtn blank
+	call queue_pop_one_byte
+	nrtn user
+	pincrease -1
+	mul32 pdata,SHUTTER_BLE_DATA_BUFFER,pdata
+	arg mem_ble_data_buffer1,temp
+	iadd temp,contr
+	branch le_send_notify_from_list
+
+
+pop_queue_to_classic_data:
+	call l2cap_malloc_is_fifo_nearly_full
+	nrtn blank
+	call queue_pop_one_byte
+	nrtn user
+	pincrease -1
+	mul32 pdata,SHUTTER_CLASSIC_DATA_BUFFER,pdata
+	arg mem_classic_data_buffer1,temp
+	iadd temp,contr
+	ifetch 5,contr
+	store 5,mem_classic_data_buffer
+classic_send_hid_data:
+	fetch 1,mem_classic_data_buffer
+	copy pdata,rega
+	call hid_malloc_tx_buff
+	fetch 2,mem_hid_int_remote_cid
+	istore 2,contw
+	setarg 0xa1
+	istore 1,contw
+	fetch 4,mem_classic_data_buffer + 1
+	istore 9,contw
+	rtn
+
+///////////queue function////////////
+//input:pdata is data that want push
+queue_push_one_byte:
+	store 1,mem_pdatatemp
+	arg mem_pdatatemp,rega
+	branch queue_push
+
+queue_pop_one_byte:
+	arg mem_pdatatemp,rega
+	call queue_pop
+	nrtn user
+	fetch 1,mem_pdatatemp
+	rtn
+
+///////////queue function ending////////////
+ble_shutter_receive_data:
+	fetch 2,mem_le_att_handle
+	beq GATT_KEYBOARD_WRITE_HANDLE,ble_shutter_process_reconnect_complete
+	rtn
+
+shutter_init_param:
+	setarg 0x02
+	store 1,mem_shutter_power_off_timeout
+/////////////ble connect interval//////////////
+	setarg 0x00200008
+	store 4,mem_ble_shutter_interval_min		//set min interval is 10ms,set max interval is 40ms
+	setarg 0x012c0005
+	istore 4,contw
+///////////////////////////////////////
+//////////////////MTU/////////////
+	jam 0x17,mem_le_local_mtu
+///////////////////////////////////////
+////////////////justwork/////////
+	setarg 0x1b
+ 	store 2,mem_le_pairing_handle
+ 	call le_set_config_fixed_ltk
+	call le_set_fixed_ltk
+	call le_set_justwork
+	branch le_set_config_read_authentication
+///////////////////////////////////////
+
+shutter_load_buffer_config_form_DataRom:
+///////load data Rom/////////
+	arg BLE_KEY_VALUE_LIST_SIZE,loopcnt
+	arg mem_ble_data_buffer1,contw
+	arg BLE_SHUTTER_KEY_VALUE_LIST,contr
+	call memcpy_fast
+	arg BT_KEY_VALUE_LIST_SIZE,loopcnt
+	arg mem_classic_data_buffer1,contw
+	arg CLASSIC_SHUTTER_KEY_VALUE_LIST,contr
+	branch memcpy_fast	
+
+
+shutter_load_ble_gatt_form_DataRom:
+	arg BLE_GATT_LIST_SIZE,loopcnt
+	arg BLE_SHUTTER_GATT_LIST,contr
+	branch memcpy_fast
+
+
+shutter_load_bt_sdp_form_DataRom:
+	arg BT_SDP_LIST_SIZE,loopcnt
+	arg CLASSIC_SHUTTER_SDP_LIST,contr
+	branch memcpy_fast
+
+
+shutter_load_bluetooth_config_store_name:
+	fetch 1,mem_shutter_config_data_temp
+	copy pdata,loopcnt
+	store 1,mem_le_name_len
+	call memcpy_fast
+	fetch 1,mem_shutter_config_data_temp
+	copy pdata,loopcnt
+	store 1,mem_local_name_length
+	call memcpy_fast
+	ifetch 1,contr
+	store 1,mem_shutter_key_num
+	ifetch 1,contr
+	store 1,mem_shutter_hard_soft_switch_case
+	rtn
+
+
+shutter_load_bluetooth_config_by_eeprom:
+	fetch 1,mem_shutter_bluetooth_type
+	rtnbit0 CLASSIC_SHUTTER
+	arg 3,temp
+	fetch 2,mem_shutter_config_eeprom_offset_addr
+	copy pdata,regb
+	arg mem_shutter_config_eeprom_start_flag,rega
+	call iicd_read_eep_data
+	fetcht 2,mem_shutter_config_eeprom_start_flag
+	setarg SHUTTER_EEPROM_CONFIG_CRC
+	isub temp,null
+	nrtn zero
+	fetch 1,mem_shutter_config_user_size
+	rtn blank
+	copy pdata,temp
+	fetch 2,mem_shutter_config_eeprom_offset_addr
+	add pdata,3,regb
+	arg mem_shutter_config_data_temp,rega
+	call iicd_read_eep_data
+	branch shutter_store_config
+
+shutter_store_config:
+	call shutter_load_bluetooth_config_store_name
+shutter_load_bluetooth_config_custom:
+	ifetch 2,contr
+	rtn blank
+	copy pdata,contw
+	ifetcht 1,contr
+	copy temp,loopcnt
+	call memcpy
+	branch shutter_load_bluetooth_config_custom
+///////////////////////////////////////////////////////////////////
+
+//////////////////////////random mac address//////////////////////////////
+shutter_random_mac_addr:
+	fetch 1,mem_shutter_bluetooth_type
+	rtnbit0 CLASSIC_SHUTTER
+	fetch 2,mem_classic_shutter_random_mac_offset_addr
+	rtn blank
+	copy pdata,regb
+	arg 4,temp
+	arg mem_shutter_random_mac_data_temp,rega
+	call iicd_read_eep_data
+	fetch 1,mem_shutter_random_mac_data_temp
+	bne 1,shutter_write_random_mac_addr_to_eeprom
+	branch shutter_write_random_mac_addr
+shutter_write_random_mac_addr_to_eeprom:
+	setarg 1
+	store 1,mem_shutter_random_mac_data_temp
+	force 3,loopcnt
+	call generate_random_loop
+	fetch 2,mem_classic_shutter_random_mac_offset_addr
+	copy pdata,regb
+	arg 4,temp
+	arg mem_shutter_random_mac_data_temp,rega
+	call iicd_write_eep_data
+shutter_write_random_mac_addr:
+	fetch 3,mem_shutter_random_mac_data_temp + 1
+	store 3,mem_lap
+	store 3,mem_le_lap
+	rtn
+	
+/////////////////////////////////////////////////////////////////
+shutter_soft_swtich_power_on:
+	branch shutter_start_reconnect
+
+
+shutter_soft_swtich_power_off:
+	arg 0,rega
+	arg mem_shutter_power_off_led_style,regc
+	call ui_led_set_style_global
+	call shutter_disconnect_current_connection
+shutter_wait_power_off:
+	fetch 1,mem_shutter_power_off_timeout
+	store 1,mem_shutter_power_off_timer
+	rtn
+	
+
+/*************soft swtich ui config*********************/
+ui_soft_swtich_init:
+	setarg SS_STATE_POWER_UP
+	call ui_soft_swtich_init_power_on_time
+	jam UI_BUTTON_STATE_UP,mem_ui_button_last_state
+	call ui_button_init
+	call ui_button_polling
+	fetch 2,mem_ui_state_map
+	rtnbit1 UI_STATE_BTN_DOWN
+	branch app_enter_hibernate
+
+ui_soft_swtich_init_power_on_time:
+	fetcht 2,mem_power_param_ptr
+	istore 1,temp		//init power state 
+	ifetch 1,contw		//power on time
+	store 1,mem_ui_button_timeout
+	rtn
+
+
+ui_soft_switch_botton_up:
+	fetch 2,mem_power_param_ptr
+	ifetch 1,pdata
+	rtnne SS_STATE_POWER_UP
+	branch app_enter_hibernate
+
+
+ui_soft_switch_botton_long_press:
+	fetcht 2,mem_power_param_ptr
+	ifetch 1,temp
+	beq SS_STATE_POWER_ON,ui_soft_switch_power_off
+ui_soft_switch_power_on:
+	setarg SS_STATE_POWER_ON
+	fetcht 2,mem_power_param_ptr
+	istore 1,temp		//init power state 
+	add temp,SS_POWER_OFF_TIME,contr
+	ifetch 1,contr
+	istore 1,mem_ui_button_timeout
+	ifetch 2,contr
+	branch callback_func
+
+ui_soft_switch_power_off:
+	setarg SS_STATE_POWER_OFF
+	call ui_soft_swtich_init_power_on_time
+	add temp,SS_POWER_OFF_CB,contr
+	ifetch 2,contr
+	branch app_enter_hibernate,blank		//no call back function , just enter hibernate
+	branch callback_func
+	
+/*************soft swtich ui config ending*********************/
+
+
+//pdata:adv interval value
+shutter_ble_adv_interval_set:
+	store 2,mem_lpm_interval
+	increase -4,pdata
+	store 2,mem_le_adv_interval
+	rtn
+
+le_send_notify_from_list:
+	ifetch 1,contr	//length 
+	copy pdata,rega
+	ifetcht 2,contr	//handle
+	call store_contr
+	call le_att_malloc_tx_notify
+	copy rega,loopcnt
+	call get_contr
+	branch memcpy
+
+
+
+else
+	branch assert
+	
+endif
Index: program/ble_protocol_stack/le.prog
===================================================================
--- /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/program/ble_protocol_stack/le.prog	(nonexistent)
+++ /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/program/ble_protocol_stack/le.prog	(working copy)
@@ -0,0 +1,1998 @@
+ifdef COMPILE_LE
+//******************************************//
+//*************LE INIT ****************//
+//******************************************//
+
+le_init_conn:
+	bpatchx patch33_3,mem_patch33
+	disable wake
+	jam 1,mem_le_conn_handle
+	jam 3,mem_le_state
+	jam 1,mem_le_arq
+	setarg -1
+	store 2,mem_le_event_count
+	force 0,pdata
+	store 1,mem_le_ch
+	store 1,mem_le_op
+	store 3,mem_sniff_rcv
+	store 3,mem_sniff_lost
+	call le_clear_enc
+	jam 1,mem_le_txheader
+	jam 0,mem_le_txlen
+	jam FUN_RX_LL_1M_PHY,mem_le_rx_phy
+	jam FUN_TX_LL_1M_PHY,mem_le_tx_phy
+	jam 0,mem_le_l2cap_att_states
+	branch le_supervision_flush
+
+le_init_master:
+	bpatchx patch33_4,mem_patch33
+	enable master
+	jam lemode_master,mem_le_mode
+	jam 1,mem_le_att_handle
+	jam 1,mem_le_search_handle_start
+	setarg 0xffff
+	store 2,mem_le_search_handle_end
+	force 0,pdata
+	store 5,mem_ccm_pcnt_rx
+	set1 LE_CCM_DIRECTIONBIT,pdata
+	store 5,mem_ccm_pcnt_tx	
+	branch le_init_conn
+
+
+le_init_slave:
+	bpatchx patch33_5,mem_patch33
+	disable master
+ 	setarg 0x17
+ 	store 2,mem_le_remote_mtu
+	increase 4,pdata
+	store 2,mem_remote_rx_max_octets
+	jam lemode_slave,mem_le_mode
+	jam 0,mem_le_adv_enable
+	jam 0,mem_lpm_current_mult
+	call le_clear_pairing_state
+	fetch 2,mem_le_superto
+	store 2,mem_le_init_superto
+	fetch 2,mem_le_tsniff
+	mul32 pdata,5,pdata
+	rshift4 pdata,pdata
+	store 2,mem_le_superto			// vol.6 part B 4.5.2 only 6*conninterval before establish
+	branch le_init_conn
+	
+
+//******************************************//
+//*************LE main process*********//
+//******************************************//
+
+le_conn_dispatch:
+	bpatchx patch33_6,mem_patch33
+	call le_enable
+ 	fetch 1,mem_le_state
+ 	isolate1 lestate_encryption,pdata
+ 	setflag true,mark_ble_encryption,mark
+	call app_process_ble
+	fetch 1,mem_le_mode
+	bbit1 mode_master,le_master_dispatch
+	branch le_slave_dispatch
+	
+//******************************************//
+//***********LE master process*********//
+//******************************************//
+	
+le_master_dispatch:
+	bpatchx patch33_7,mem_patch33
+	enable master
+	call le_supervision_update
+	branch le_master_disconn,positive
+	call check_ble_disabled
+	call le_setup
+	call le_prepare_tx
+	disable match
+	call le_transmit_receive_sifs
+	nrtn match
+	fetch 1,mem_le_conn_rcv
+	increase 1,pdata
+	store 1,mem_le_conn_rcv
+	call le_acknowledge
+	disable master
+	rtn
+	
+le_master_disconn:
+	call le_disconnect
+	disable master
+	rtn
+	
+//******************************************//
+//***********LE slave process***********//
+//******************************************//
+le_slave_dispatch:
+	bpatchx patch34_0,mem_patch34
+	jam 0,mem_le_md_count
+	set0 mark_ble_crc_fail,mark
+ifdef SECURE_CONNECTION
+	call sp_calc_sequence_256
+	call le_secure_connect_sm
+endif
+	disable attempt
+	call le_supervision_update
+	branch le_slave_disconn,positive
+	call check_ble_disabled
+	fetch 1,mem_le_rx_phy
+	call le_enable_phy_by_pdata
+	call le_setup
+	call le_receive_slave
+	nbranch le_slave_unsync,sync	// vol.6 part B 4.5.1 respond even crc error
+	call le_got_first_packet
+	branch le_slave_match,match
+	bmark1 mark_ble_crc_fail,le_slave_crc_fail
+	branch le_slave_cont
+	
+
+le_slave_crc_fail:
+le_slave_match:
+	bpatchx patch34_1,mem_patch34
+	fetch 1,mem_le_md_count
+	pincrease 1
+	store 1,mem_le_md_count
+	beq LE_MD_MAX_COUNT,le_slave_cont
+	call le_acknowledge
+	call le_prepare_tx
+	fetch 1,mem_le_tx_phy
+	call le_enable_phy_by_pdata
+	call le_transmit
+	call le_parse
+	fetch 2,mem_cb_ble_transmit
+	call callback_func
+	call le_check_md
+	branch le_slave_more_data,user
+le_slave_cont:
+	bpatchx patch34_2,mem_patch34
+	call le_pairing_sm
+ 	call le_check_paring_time
+	call check_51cmd
+	fetch 1,mem_le_op
+	bbit1 op_disconn,le_slave_disconn
+le_slave_unsync:
+	bpatchx patch34_3,mem_patch34
+	call end_of_packet
+	call le_lpm_set_mult
+	branch calc_clke_offset
+
+
+le_check_md:
+	disable user
+	bmark1 mark_ble_rx_md,enable_user
+	bmark1 mark_ble_tx_md,enable_user
+	bmark1 mark_ble_crc_fail,enable_user
+	rtn
+
+
+le_slave_more_data:
+	bpatchx patch34_4,mem_patch34
+	enable attempt
+	call le_transmit_receive_sifs_notx
+	branch le_slave_match,match
+	bmark1 mark_ble_crc_fail,le_slave_crc_fail
+	branch le_slave_cont
+
+le_slave_disconn:
+
+	//fall through
+le_disconnect:
+	bpatchx patch34_5,mem_patch34
+	call le_clear_connection_info
+	call app_disconn_reason_collect_ble
+ifdef SECURE_CONNECTION
+	call le_clear_pairing_state
+	call le_sc_state_clear
+endif
+	jam BT_EVT_LE_DISCONNECTED,mem_fifo_temp
+	branch ui_ipc_send_event
+
+le_clear_connection_info:
+	arg mem_used_map,contw
+	call memset0_16
+	jam 0,mem_le_conn_handle
+	jam lemode_idle,mem_le_mode
+	jam 0,mem_le_state
+le_clear_pairing_state:
+	bpatchx patch34_6,mem_patch34
+	jam FLAG_LE_ENC_NULL,mem_le_enc_state
+	jam FLAG_LE_PAIRING_NULL,mem_le_pairing_state
+	branch sp_clear_flags
+	
+le_got_first_packet:
+	bpatchx patch34_7,mem_patch34
+	fetch 1,mem_le_conn_rcv
+	increase 1,pdata
+	store 1,mem_le_conn_rcv
+	fetch 1,mem_le_state
+	rtnbit1 lestate_got_first_packet
+	set1 lestate_got_first_packet,pdata
+	store 1,mem_le_state
+	fetch 2,mem_le_init_superto
+	store 2,mem_le_superto
+	setarg 0
+	store 4,mem_le_transmit_window
+	rtn
+
+
+//input: pdata is phy mode
+//bit0 is le 1M phy
+//bit1 is le 2M phy
+//bit2 is le coded phy s2
+//bit7 is le coded phy s8
+le_enable_phy_by_pdata:
+	copy pdata,temp
+	bpatchx patch35_0,mem_patch35
+	copy temp,pdata
+	bbit1 BIT_LE_1M_PHY,le_enable
+	bbit1 BIT_LE_2M_PHY,le_enable_2M
+	bbit0 BIT_LE_CODED_PHY,le_enable
+	bbit1 BIT_LE_CODED_PHY_S8,le_enable_coded_s8
+	bbit1 BIT_LE_CODED_PHY_S2,le_enable_coded_s2
+	branch le_enable
+
+le_enable_2M:
+	call le_enable
+	set1 mark_ble_2M,mark
+	set0 mark_ble_lr,mark
+	jam 0x03,0x8901
+	jam 0x84,0x8920
+	rtn
+
+le_enable_coded_s2:
+le_enable_coded:
+	call le_enable
+	set1 mark_ble_lr,mark
+	set0 mark_ble_lr_s8,mark
+	jam 0x05,0x8901
+	jam 0x80,0x8920
+	jam 0x20,0x8930
+	jam 0x0a,0x8934
+	rtn
+
+le_enable_coded_s8:
+	call le_enable_coded
+	set1 mark_ble_lr_s8,mark
+	rtn
+
+le_enable:
+	bpatchx patch35_1,mem_patch35
+	enable le
+	set0 mark_ble_2M,mark
+	set0 mark_ble_lr,mark
+	jam 0x01,0x8901
+	jam 0x80,0x8920
+	jam 0xa7,0x8925
+	jam 0x03,0x8930
+	jam 0x40,0x8937
+	rtn
+
+
+le_disable:
+	bpatchx patch35_2,mem_patch35
+	disable le
+	set0 mark_ble_encryption,mark
+	jam 0x00,0x8901
+	jam 0x80,0x8920
+	jam 0xa3,0x8925
+	jam 0x06,0x8930
+	jam 0x02,0x8934
+	jam 0x28,0x8937
+	rtn
+
+le_prep:
+	disable enable_crc
+	disable enable_white
+	fetch 3,mem_le_crcinit
+	iforce crc24_init
+	fetch 1,mem_le_ch_mapped
+	reverse pdata,temp
+	set1 1,temp
+	rshift temp,white_init
+	rtn
+	
+
+le_rx_setfreq:
+	call le_setfreq
+le_rf_rx_enable:	
+	call set_freq_rx
+	fetch 2,mem_param_pll_setup
+	call sleep
+	branch rf_rx_enable
+
+le_tx_setfreq:
+	branch txon,match
+	bmark1 mark_ble_crc_fail,txon
+le_tx_setfreq0:
+	call le_setfreq
+	branch set_freq_tx
+le_setfreq:
+	bpatchx patch35_3,mem_patch35
+	call set_sync_on
+	fetch 1, mem_le_testtype
+	nbranch le_ctf_test,blank
+	fetch 1,mem_le_ch_mapped
+	sub pdata,36,null
+	branch le_ctf_normal,positive
+	force 0,temp
+	rtneq 37
+	force 24,temp
+	rtneq 38
+	force 78,temp
+	rtn
+	
+le_ctf_normal:
+	sub pdata,10,null
+	branch le_ctf_low,positive
+	increase 1,pdata
+	
+le_ctf_low:	
+	lshift pdata,pdata
+	add pdata,2,temp
+	rtn
+	
+le_ctf_test:
+	fetch 1,mem_le_ch_mapped
+	lshift pdata,temp
+	rtn
+
+le_sca_map:
+	arg 500,temp
+	rtn blank
+	arg 250,temp
+	rtneq 1
+	arg 150,temp
+	rtneq 2
+	arg 100,temp
+	rtneq 3
+	arg 75,temp
+	rtneq 4
+	arg 50,temp
+	rtneq 5
+	arg 40,temp
+	rtneq 6
+	arg 20,temp
+	rtn
+
+
+	
+le_setup:
+	bpatchx patch35_4,mem_patch35
+	enable swfine
+	fetch 4,mem_le_access
+	iforce access
+	call calc_mod_value_scale_le
+	call le_map_channel
+	setarg 0x200
+	branch le_setup_master,master
+	fetch 2,mem_le_receive_window
+	rshift pdata,pdata
+le_setup_master:
+	fetcht 2,mem_param_pll_setup
+	iadd temp,pdata
+	call ahead_window
+	deposit clke
+	rtn
+
+
+le_context_nextevent:
+	bpatchx patch35_5,mem_patch35
+	storer regc,2,mem_regb
+	storer regb,2,mem_regc
+	storer loopcnt ,2,mem_loopcnt
+	add rega,coffset_mode,contr
+	ifetch 1,contr
+	rtnbit0 mode_le
+	add rega,coffset_le_event_cnt,contw
+	ifetch 2,contw
+	increase 1,pdata
+	istore 2,contw
+	call le_update_param
+	call le_update_channel_map
+	call le_update_phy	
+	call le_context_nexthop
+	fetchr regc,2,mem_regb
+	fetchr regc,2,mem_regc
+	fetchr loopcnt ,2,mem_loopcnt
+	rtn
+	
+le_context_nexthop:	
+	add rega,coffset_le_hop,contr
+	ifetch 1,contr
+	add rega,coffset_le_ch,contw
+	ifetcht 1,contw
+	iadd temp,pdata
+	sub pdata,36,null
+	branch le_nexthop_nowrap,positive
+	increase -37,pdata
+le_nexthop_nowrap:
+	istore 1,contw
+	rtn
+
+//input rega
+le_calc_channel_map:
+	add rega,coffset_le_channel_map,contr
+	ifetch 5,contr
+	force 0,temp
+	force 37,loopcnt
+le_count_channels_loop:
+	bbit0 0,le_count_channels_notused
+	increase 1,temp
+le_count_channels_notused:
+	rshift pdata,pdata
+	loop le_count_channels_loop
+	add temp,-1,pdata
+	add rega,coffset_le_channels,contw
+	istore 1,contw
+	rtn
+
+le_map_channel:
+	bpatchx patch35_6,mem_patch35
+	fetch 1,mem_le_ch
+	iforce queue
+	fetcht 5,mem_le_channel_map
+	qisolate1 temp
+	branch le_map_channel_end,true
+le_map_channel_next:
+	fetch 1,mem_le_channels
+	isub queue,pdata
+	branch le_map_channel_cont,positive
+	sub pdata,-1,queue
+	branch le_map_channel_next
+le_map_channel_cont:
+	copy queue,loopcnt
+	force 0,queue
+le_map_channel_loop:
+	qisolate1 temp
+	branch le_map_channel_skip,true
+	increase 1,loopcnt
+le_map_channel_skip:
+	deposit loopcnt
+	branch le_map_channel_end,blank
+	increase 1,queue
+	increase -1,loopcnt
+	branch le_map_channel_loop
+le_map_channel_end:
+	deposit queue
+	store 1,mem_le_ch_mapped
+	rtn
+
+
+le_wait_tx:
+	branch le_wait_master,master
+	until null,timeout
+	rtn
+	
+le_wait_master:
+	arg 0xea0,timeup
+	until clkn_rt,meet
+	rtn
+
+le_receive_adv:
+	disable swfine
+	fetch 2,mem_le_scan_window
+	copy pdata,timeup
+	branch le_receive_packet
+
+
+le_receive_slave:
+	bpatchx patch35_7,mem_patch35
+ 	call le_dec_init
+	enable swfine
+	fetch 2,mem_le_receive_window
+	fetcht 4,mem_le_transmit_window
+	iadd temp,timeup
+le_receive_packet:
+	call le_rx_setfreq
+le_receive_rxon:
+	bpatchx patch36_0,mem_patch36
+	call le_prep
+	bmark0 mark_ble_lr,le_receive_nolr
+	pulse dewhiten_code_calc
+	nop 30
+	call le_prep
+	lshift3 timeup,timeup
+le_receive_nolr:
+	disable match
+	enable decode_fec0
+	enable is_rx
+	disable is_tx
+	copy timeup,stop_watch
+	correlate null,timeout
+	branch le_receive_on_attempt,attempt
+	copy clke,temp
+	storet 6,mem_sync_clke
+le_receive_on_attempt:
+	nbranch le_unsync_end,sync
+	bpatchx patch36_1,mem_patch36
+	enable swfine
+	arg PARAM_T_IFS_150US+PARAM_20MS_INIT+PARAM_SYNC_TIME_DIFFERENCE,stop_watch
+	fetch 1,mem_system_clk
+	imul32 stop_watch,stop_watch
+	call rf_debug_rx_sync_line	//L-H
+	branch le_receive_skip,attempt
+	call calc_clke_all_modem
+	fetch 1,mem_le_state
+	bbit0 lestate_got_first_packet,le_receive_skip
+	fetcht 6,mem_sync_clke
+	call lpm_adjust_clk,wake
+le_receive_skip:
+	call save_rssi
+	enable enable_white
+	enable enable_crc
+	parse demod,bucket,8
+	rshift3 pwindow,pdata
+	store 1,mem_le_rxbuf_data_header
+	parse demod,bucket,8
+	rshift3 pwindow,pdata
+	store 1,mem_le_rxbuf_data_length
+ 	copy pdata,loopcnt
+	branch le_rx_nopayload,zero
+
+	bmark1 mark_ble_encryption,le_rx_dec
+
+le_rx_loop:
+	parse demod,bucket,8
+	rshift3 pwindow,pdata
+	istore 1,contw
+	loop le_rx_loop
+	branch le_rx_nopayload
+
+le_rx_dec: 
+	copy contw,regb
+	call le_check_retransmit	
+//	bmark1 mark_old_packet,le_retransmit_end_of_packet
+	fetchr rega, 1,mem_le_rxbuf_data_length
+	increase -4,rega
+	nbranch le_mic_error,positive
+//	storer rega, 1,mem_le_rxbuf_data_length
+	call le_dec_start	
+	copy regb,contw
+	arg 0,temp
+	fetchr loopcnt, 1,mem_le_rxbuf_data_length
+	increase -4,loopcnt
+	branch le_rx_dec_loop_end,zero
+le_rx_dec_loop:
+	
+	parse demod,bucket,8
+	rshift3 pwindow,pdata
+	istore 1,contw
+	increase 1,temp
+	and temp,0xf,null
+	call le_dec,zero
+	loop le_rx_dec_loop
+le_rx_dec_loop_end:
+	call le_dec_end	
+	copy regb,contw
+	
+
+le_rx_nopayload:
+	bpatchx patch36_2,mem_patch36
+	parse demod,bucket,24	
+	rshift32 pdata,pdata
+	rshift16 pdata,pdata
+	istore 3,contw
+	enable swfine
+	call le_set_until_tx_timer
+	branch le_crc_fail,crc_failed
+	bmark0 mark_ble_encryption,le_rx_match
+	fetch 1,mem_le_rxbuf_data_length
+	branch le_rx_match,blank
+	increase -4,pdata
+	store 1,mem_le_rxbuf_data_length
+	call wait_ccm_done
+ 	fetch 1,core_misc_status
+	bbit0 7, le_mic_error
+ 	force regidx_result,regext_index
+	storer regext, 4,mem_le_peer_mic
+le_rx_match:
+	call rf_debug_rx_crc_line	//L
+	enable match
+	set0 mark_ble_crc_fail,mark
+le_crc_fail_tx:
+	call ccm_ctrl_clr
+	fetch 1,mem_le_rx_phy
+	nsetflag ble_coded_info,BIT_LE_CODED_PHY_S8,pdata
+	store 1,mem_le_rx_phy
+le_set_txfreq:
+	bpatchx patch36_3,mem_patch36
+	fetcht 1,mem_last_freq
+	add temp,2,rega
+	bmark1 mark_ble_2M,le_set_txfreq_offset
+	add temp,1,rega
+le_set_txfreq_offset:
+	call rf_tx_write_freq				/* set frequency to tx mode freq */
+	disable decode_fec0
+	branch set_sync_on
+
+le_dec_init:
+	rtnmark0 mark_ble_encryption
+	call load_sk
+	force regidx_result,regext_index
+	call aes_clear
+	branch aes_clear_data
+	
+	
+le_dec_start:
+	jam 0,core_ccm_aad0 
+	jam 1,core_ccm_aad1
+	fetch 1,mem_le_rxbuf_data_header
+	and_into 0x3,pdata
+	store 1,core_ccm_aad2
+	
+	setarg mem_le_rxbuf_data_payload
+	store 2,core_ccm_input_playload_addr
+	store 2,core_ccm_output_playload_addr
+
+	fetchr rega, 1,mem_le_rxbuf_data_length
+	increase -4,rega
+
+	fetcht 5,mem_ccm_pcnt_rx	
+	isolate1 mark_old_packet,mark
+	call le_pcnt_rx_sub1,true
+	call ccm_b0
+	setarg 0
+	store 2,core_ccm_inptr
+	jam 6,core_ccm_ctrl
+	jam 7,core_ccm_ctrl	
+	rtn	
+
+le_pcnt_rx_sub1:
+	sub temp,0,null
+	branch le_pcnt_rx_sub1_0,zero
+	increase -1,temp
+	set1 LE_CCM_DIRECTIONBIT,temp
+	rtn
+
+le_pcnt_rx_sub1_0:
+	setarg 0xffffff
+	lshift16 pdata,pdata
+	arg 0xffff,temp
+	ior temp,temp
+	rtn
+
+le_dec:
+	copy contw,regb
+	fetch 1,mem_le_rxbuf_data_length
+	increase -4,pdata
+	isub temp,null
+	rtn zero
+	storet 2,core_ccm_inptr
+	copy regb,contw
+	rtn
+	
+le_dec_end://mic
+	parse demod,bucket,32
+	rshift32 pdata,pdata
+	rshift8 pdata,pdata
+	istore 4,contw
+	copy contw,regb
+//	store 4,mem_le_peer_mic
+	force regidx_data,regext_index
+	copy  pdata,regext
+	storet 2,core_ccm_inptr
+	rtn
+
+le_mic_error:
+	branch le_end_of_packet
+
+le_retransmit_end_of_packet:
+	call le_set_until_tx_timer	// start SIFS timer after last bit of crc
+	call end_of_packet
+	branch le_rx_match
+
+le_crc_fail:
+	call rf_debug_rx_crc_fail_line
+	bmark1 mark_ble_crc_fail,le_crc_fail_consecutive //two consecutive packets received with an invalid CRC match within a connection event shall close the event
+	set1 mark_ble_crc_fail,mark
+	branch le_crc_fail_tx
+	
+le_unsync_end:	
+le_crc_fail_consecutive:
+	set0 mark_ble_crc_fail,mark
+	branch le_end_of_packet
+
+le_end_of_packet:
+	call ccm_ctrl_clr
+	branch end_of_packet
+	
+calc_clke_all_modem:
+	bmark1 mark_ble_lr,calc_clke_modem_coded
+	bmark1 mark_ble_2M,calc_clke_modem_2M
+	fetch 2,mem_param_clke_cal_le_1m
+	copy pdata,clke_rt
+	copy bt_clk,clke_bt
+	rtn
+
+
+calc_clke_modem_coded:
+	fetch 2,mem_param_clke_cal_le_coded
+	copy pdata,clke_rt
+	add bt_clk,1,clke_bt
+	rtn
+
+calc_clke_modem_2M:
+	fetch 2,mem_param_clke_cal_le_2m
+	copy pdata,clke_rt
+	copy bt_clk,clke_bt
+	rtn
+
+
+le_set_until_tx_timer:
+	fetch 1,mem_le_rxbuf_data_length
+	add pdata,5,temp	//PDU Length
+	lshift3 temp,temp	//PDU bit size
+	fetch 1,mem_le_rx_phy
+	bmark1 mark_ble_lr,le_set_until_tx_timer_rx_lr
+	bbit1 BIT_LE_1M_PHY,le_set_until_tx_timer_rx_1M
+	bbit1 BIT_LE_2M_PHY,le_set_until_tx_timer_rx_2M
+le_set_until_tx_timer_rx_lr:
+	branch le_set_until_tx_timer_rx_coded_s2,ble_coded_info
+	branch le_set_until_tx_timer_rx_coded_s8
+
+le_set_until_tx_timer_rx_1M:
+	branch le_calc_stop_watch
+
+le_set_until_tx_timer_rx_2M:
+	rshift temp,temp
+	branch le_calc_stop_watch
+
+le_set_until_tx_timer_rx_coded_s2:
+	add temp,3,temp	//term2
+	lshift temp,temp
+	branch le_set_until_tx_timer_rx_coded
+
+le_set_until_tx_timer_rx_coded_s8:
+	add temp,3,temp	//term2
+	lshift3 temp,temp
+le_set_until_tx_timer_rx_coded:
+	setarg PARAM_CODED_C1_TERM1_TIME_40US
+	iadd temp,temp
+	branch le_calc_stop_watch
+
+le_calc_stop_watch:
+	fetch 1,mem_system_clk
+	imul32 temp,temp		//mips cpu
+	arg PARAM_20MS_INIT,rega
+	imul32 rega,pdata
+	isub temp,temp
+	copy stop_watch,pdata
+	isub temp,stop_watch
+	rtn
+
+le_transmit_receive_sifs_without_change_mode:
+	call le_transmit
+	fetcht 1,mem_last_freq
+	call set_freq_rx
+	call rf_rx_enable
+	enable swfine
+	arg 5500,timeup
+	branch le_receive_rxon
+
+
+le_transmit_receive_sifs:
+	bpatchx patch36_4,mem_patch36
+	fetch 1,mem_le_tx_phy
+	call le_enable_phy_by_pdata
+	call le_transmit
+le_transmit_receive_sifs_notx:
+	fetch 1,mem_le_rx_phy
+	call le_enable_phy_by_pdata
+
+	fetcht 1,mem_last_freq
+	call set_freq_rx
+	call rf_rx_enable
+	enable swfine
+	arg 5500,timeup
+	bmark0 mark_ble_lr,le_receive_rxon
+	arg 8500,timeup
+	branch le_receive_rxon
+
+le_transmit_norx:
+	call le_transmit
+	branch end_of_packet
+	
+le_transmit:
+	bpatchx patch36_5,mem_patch36
+	call le_prep
+	call le_tx_setfreq
+	call rf_debug_tx_on_line	//H
+	set1 TXGFSK,radio_ctrl
+	enable encode_fec0
+	enable is_tx
+	disable is_rx
+	call le_wait_tx
+	disable lr_s2en
+	bmark1 mark_ble_lr,le_transmit_lr
+	bmark1 mark_ble_2M,le_transmit_2M
+	rshift16 access,pdata
+	rshift8 pdata,pdata
+	rshift4 pdata,pdata
+	inject mod,40
+le_transmit_packet:
+	enable enable_white
+	enable enable_crc
+	bpatchx patch36_6,mem_patch36
+	fetch 1,mem_le_txheader
+	inject mod,8
+	ifetch 1,contr
+	copy pdata,loopcnt
+	inject mod,8
+	sub loopcnt,0,null
+	branch le_tr_nopayload,zero
+
+	fetch 1,core_ccm_ctrl
+	branch le_transmit_packet_not_enc,blank 
+	bmark1 mark_ble_encryption,le_transmit_packet_enc
+le_transmit_packet_not_enc:	
+	arg mem_le_txpayload,contr
+le_tr_loop:
+	ifetch 1,contr
+	inject mod,8
+	loop le_tr_loop
+	
+le_tr_nopayload:
+	enable enable_parity
+	inject mod,24
+	disable enable_parity
+	bmark0 mark_ble_lr,le_transmit_skip
+	disable enable_white
+	setarg 0
+	inject mod,3
+le_transmit_skip:
+	until null,tx_clear
+	nop 100          /* flush out the last bit */
+	disable encode_fec0
+	disable encode_fec3
+	call set_sync_on
+	call rf_debug_tx_off_line	//L
+le_check_start_pause_enc:
+	fetch 1,mem_le_txheader
+	and pdata,LLID_LE_LL,pdata
+	rtnne LLID_LE_LL
+	fetch 1,mem_le_enc_state
+	beq  FLAG_LE_ENC_PAUSE,le_clear_enc
+	rtnne FLAG_LE_SEND_START_ENC_REQ
+	fetch 1,mem_le_txpayload
+	beq LL_START_ENC_REQ,le_set_enc
+	rtn
+	
+
+le_transmit_packet_enc:
+	increase -4,loopcnt
+	copy loopcnt,temp	
+	call ccm_wait_enc	
+	arg mem_le_txpayload,contr
+le_transmit_packet_enc_loop:
+	ifetch 1,contr
+	inject mod,8
+	loop le_transmit_packet_enc_loop
+	call ccm_check_enc_done
+	copy regext,pdata
+	inject mod,32
+	branch le_tr_nopayload
+
+le_transmit_lr:
+	arg 10,loopcnt
+le_transmit_lr_preamble_loop:
+	setarg 0x3c
+	inject mod,8
+	loop le_transmit_lr_preamble_loop
+	disable encode_fec0
+	enable encode_fec3
+	rshift16 access,pdata
+	rshift16 pdata,pdata
+	rshift4 pdata,pdata
+	inject mod,32
+	bmark1 mark_ble_lr_s8,le_transmit_lr_s8
+le_transmit_lr_s2:
+	setarg 1
+	inject mod,5
+	enable lr_s2en
+	branch le_transmit_packet
+
+le_transmit_lr_s8:
+	setarg 0
+	inject mod,5
+	branch le_transmit_packet
+
+le_transmit_2M:
+	fetch 1,mem_system_clk
+	rshift pdata,loopcnt
+le_transmit_2M_dealy:
+	nop 2
+	loop le_transmit_2M_dealy
+//	nop 36	//2M 前端发送比1M快3us左右
+	rshift16 access,pdata
+	rshift8 pdata,pdata
+	rshift4 pdata,temp
+	copy temp,pdata
+	inject mod,8
+	copy temp,pdata
+	inject mod,40
+	branch le_transmit_packet
+	
+
+le_update_param:
+	arg le_update_param_ahead1_cb,regc
+	arg le_update_param_cb,regb
+	arg lestate_update_param,queue
+	branch le_check_update_flag
+
+le_update_param_ahead1_cb:
+	add rega,coffset_sniff_anchor,contr
+	ifetcht 4,contr
+	add rega,coffest_le_new_transmitwindowsize,contr
+	ifetch 1,contr
+	add rega,coffset_le_window_size,contw
+	istore 1,contw
+	ifetch 2,contr
+	lshift2 pdata,pdata
+	iadd temp,timeup	//add windowsize
+	add rega,coffset_sniff_anchor,contw  
+	deposit timeup
+	istore 4,contw
+	ifetch 2,contr
+	lshift2 pdata,pdata
+	add rega,coffset_tsniff,contw
+	istore 2,contw
+	ifetch 4,contr
+	add rega,coffset_le_slave_latency,contw
+	istore 4,contw
+	branch le_receive_window_size
+
+le_update_param_cb:
+	ifetch 1,rega
+	set0 lestate_got_first_packet,pdata
+	istore 1,rega
+	fetch 2,mem_le_superto
+	store 2,mem_le_init_superto
+	storer rega,2,mem_rega
+	jam BT_EVT_LE_PARSE_CONN_PARAM_ACCEPTED,mem_fifo_temp
+	call ui_ipc_send_event
+	fetchr rega,2,mem_rega
+	rtn	
+
+le_update_channel_map:
+	arg 0,regc
+	arg le_update_channel_map_cb,regb
+	arg lestate_update_map,queue
+	branch le_check_update_flag
+	
+le_update_channel_map_cb:
+	add rega,coffset_le_new_map,contr
+	ifetch 5,contr
+	add rega,coffset_le_channel_map,contw
+	istore 5,contw
+	branch le_calc_channel_map
+	
+
+le_update_phy:
+	arg 0,regc
+	arg le_update_phy_cb,regb
+	arg lestate_update_phy,queue
+	branch le_check_update_flag
+	
+le_update_phy_cb:
+	add rega,coffset_le_new_m2s_phy,contr
+	ifetch 1,contr
+	call le_update_phy_cb_m2s
+	istore 1,contw
+	add rega,coffset_le_new_s2m_phy,contr
+	ifetch 1,contr
+	call le_update_phy_cb_s2m
+	istore 1,contw
+	storer rega,2,mem_rega
+	jam BT_EVT_LE_UPDATE_PHY,mem_fifo_temp
+	call ui_ipc_send_event
+	fetchr rega,2,mem_rega
+	rtn	
+
+le_update_phy_cb_m2s:
+	call le_update_phy_cb_m2s_no_change,blank
+	add rega,coffset_le_rx_phy,contw
+	nrtn master
+	fetcht 1,mem_le_tx_phys
+	isolate1 BIT_LE_CODED_PHY_S8,temp
+	setflag true,BIT_LE_CODED_PHY_S8,pdata
+	add rega,coffset_le_tx_phy,contw
+	rtn
+
+le_update_phy_cb_m2s_no_change:
+	add rega,coffset_le_rx_phy,contr
+	ifetch 1,contr
+	nrtn master
+	add rega,coffset_le_tx_phy,contr
+	ifetch 1,contr
+	rtn
+
+le_update_phy_cb_s2m:
+	call le_update_phy_cb_s2m_no_change,blank
+	fetcht 1,mem_le_tx_phys
+	isolate1 BIT_LE_CODED_PHY_S8,temp
+	setflag true,BIT_LE_CODED_PHY_S8,pdata
+	add rega,coffset_le_tx_phy,contw
+	nrtn master
+	set0 BIT_LE_CODED_PHY_S8,pdata
+	add rega,coffset_le_rx_phy,contw
+	rtn
+
+le_update_phy_cb_s2m_no_change:
+	add rega,coffset_le_tx_phy,contr
+	ifetch 1,contr
+	nrtn master
+	add rega,coffset_le_rx_phy,contr
+	ifetch 1,contr
+	rtn
+	
+
+//regb regc is cb function
+//queue is state flag
+le_check_update_flag:
+	ifetch 1,rega
+	qisolate0 pdata
+	rtn true
+	add rega,coffset_le_event_cnt,contr
+	ifetcht 2,contr
+	add rega,coffset_le_instant,contr
+	ifetch 2,contr
+	
+	isub temp,pdata
+	beq 1,le_update_ahead1
+	branch le_update,zero
+	nbranch le_check_update_small,positive
+	rtn
+	
+le_update_ahead1:
+	copy regc,pdata
+	branch callback_func
+
+le_update:
+	ifetch 1,rega
+	qset0 pdata
+	istore 1,rega
+	copy regb,pdata
+	branch callback_func
+	
+le_check_update_small:
+	add rega,coffset_le_event_cnt,contr
+	ifetch 2,contr
+	add rega,coffset_le_instant,contr
+	ifetch 2,contr
+	isub temp,pdata
+	arg 0xffff,temp
+	isub temp,null
+	branch le_update,zero
+	arg 0xf000,temp
+	isub temp,null
+	nbranch le_update,positive
+	rtn
+	
+
+le_check_retransmit:
+	fetcht 1,mem_le_arq
+	fetch 1,mem_le_rxbuf_data_header
+//	isolate1 md,pdata
+//	setflag true,mark_ble_rx_md,mark
+	rshift pdata,pdata
+	ixor temp,pdata
+	isolate1 nesn,pdata
+	setflag true,mark_old_packet,mark	/* retransmit */
+	rtn
+
+
+le_acknowledge:
+	bpatchx patch36_7,mem_patch36
+	call le_supervision_flush
+	rtnmark1 mark_ble_crc_fail
+	call le_check_wak
+	fetch 1,mem_le_rxbuf_data_header
+	isolate1 md,pdata
+	setflag true,mark_ble_rx_md,mark
+	rshift pdata,pdata
+	ixor temp,pdata
+	isolate1 nesn,pdata
+	setflag true,mark_old_packet,mark	/* retransmit */
+	rtnmark1 mark_old_packet
+	fetch 1,mem_le_rxbuf_data_length
+	branch le_ack_unenc,blank		/* empty packet, no decryption */
+	fetch 1,mem_le_state
+	bbit0 lestate_encryption,le_ack_unenc
+	fetcht 4,mem_le_peer_mic
+	fetch 4,mem_ccm_last_mic			
+	isub temp,null
+	branch assert,zero
+	storet 4,mem_ccm_last_mic
+	fetch 5,mem_ccm_pcnt_rx
+	increase 1,pdata
+	set1 LE_CCM_DIRECTIONBIT,pdata
+	store 5,mem_ccm_pcnt_rx
+	
+le_ack_unenc:
+	fetcht 1,mem_le_arq
+	setflip nesn,temp
+	storet 1,mem_le_arq
+	fetch 1,mem_le_configuration
+	rtnbit0 BIT_BLE_DEAL_BB_PACKET
+	bpatchx patch37_0,mem_patch37
+	fetch 1,mem_le_rxbuf_data_length
+	rtn blank		//empty packet
+	fetch 1,mem_le_rxbuf_data_header
+	compare LLID_CONTINUE,pdata,3
+	branch le_parse_writing_attribute_continue,true //ACL-U continue
+	compare LLID_START,pdata,3
+	branch le_parse_writing_attribute_start,true
+	rtn
+
+	
+le_check_wak:
+	bpatchx patch37_1,mem_patch37
+	fetcht 1,mem_le_arq
+	isolate0 wak,temp
+	rtn true
+	fetch 1,mem_le_rxbuf_data_header
+	lshift pdata,pdata
+	ixor temp,pdata
+	rtnbit0 sn			/* received NESN is same as SN, NAK */
+	set0 wak,temp
+	setflip sn,temp
+	storet 1,mem_le_arq
+	compare 3,temp,3
+	nrtn true
+	rtn
+	
+
+le_set_enc:
+	fetch 1,mem_le_state
+	set1 lestate_encryption,pdata
+	store 1,mem_le_state
+	set1 mark_ble_encryption,mark
+	rtn	
+	
+le_clear_enc:
+	bpatchx patch37_2,mem_patch37
+	jam FLAG_LE_ENC_NULL,mem_le_enc_state
+	arg 0,pdata
+	store 4,mem_ccm_last_mic
+	store 5,mem_ccm_pcnt_tx
+	set1 LE_CCM_DIRECTIONBIT,pdata
+	store 5,mem_ccm_pcnt_rx
+	fetch 1,mem_le_state
+	set0 lestate_encryption,pdata
+	store 1,mem_le_state
+	set0 mark_ble_encryption,mark
+	rtn
+
+
+
+
+le_scan_check_sender_addr_type:
+	arg 1,rega// sender_addr_type
+	fetch 1,mem_le_rxbuf_adv_connect_ind_header
+	rtnbit1 LE_SENDER_ADDR_BIT
+	arg 0,rega
+	rtn
+
+
+le_get_master_rx_max:
+	copy contr,contw
+	fetcht 2,mem_remote_rx_max_octets
+	copy contw,contr
+	rtn
+
+
+le_prepare_tx:
+	bpatchx patch37_3,mem_patch37
+	fetch 1,mem_le_arq
+	rtnbit1 wak
+	call le_check_tx_md
+	call le_fifo_get_first_tx_ptr	//no packet to send
+	branch le_send_empty,blank
+	ifetch 2,contr
+	ifetcht 2,contr
+	copy temp,rega
+	isub rega,pdata
+	call le_get_master_rx_max
+	call not_greater_than
+	copy pdata,temp
+	ifetchr type,1,contr
+	copy rega,pdata
+	iadd contr,pdata
+	store 2,mem_contr
+	call le_update_tx_type
+	call le_send_packet
+	
+	call le_fifo_get_first_tx_ptr
+	ifetch 2,contr
+	copy pdata,rega	//rega:total length
+	copy contr,regc
+	ifetcht 2,contr
+	copy temp,regb	//temp&regb is offset
+	isub regb,pdata
+	call le_get_master_rx_max
+	call not_greater_than
+	iadd regb,pdata
+	istore 2,regc
+	isub rega,null
+	nrtn zero
+	branch le_fifo_release_first_node
+
+	
+le_check_tx_md:
+	call le_check_continue
+	rtnmark1 mark_ble_tx_md
+	fetch 1,mem_le_configuration
+	bbit0 BIT_BLE_TRANSMIT_PACKET_BY_MD,le_clear_md
+	call le_fifo_get_second_tx_ptr	//no packet to send
+	branch le_clear_md,blank
+	branch le_set_md
+
+	
+le_check_continue:
+	call le_fifo_get_first_tx_ptr	//no packet to send
+	branch le_clear_md,blank
+	ifetch 2,contr				//pdata:length
+	ifetcht 2,contr				//temp:offest
+	isub temp,rega			//pdata:length - offset
+	call le_get_master_rx_max
+	copy temp,pdata
+	isub rega,null
+	branch le_clear_md,positive				//27 > length -offset
+le_set_md:
+	set1 mark_ble_tx_md,mark
+	rtn
+
+le_clear_md:
+	set0 mark_ble_tx_md,mark
+	rtn
+
+le_update_tx_type:
+	copy rega,pdata
+	rtn blank
+	arg LLID_CONTINUE,type
+	rtn
+
+
+le_att_check_notification_enable: // temp ->handle,output-> pdata,output :contr->rega
+	bpatchx patch37_4,mem_patch37
+	increase 1,temp
+	call le_att_get_handle_ptr
+	increase -2,contr
+	ifetch 2,contr
+	arg CLIENT_CHARACTERTIC_CONFIGURATION,temp
+	isub temp,null
+	nrtn zero
+	increase 1,contr
+	copy contr,rega
+	ifetch 1,contr
+	rtn
+	
+
+le_send_empty:
+	force 0,temp
+	force 1,type
+	
+le_send_packet:
+	bpatchx patch37_5,mem_patch37
+	storet 1,mem_le_txlen
+	fetcht 1,mem_le_arq
+	set1 wak,temp
+	and temp,0xfc,pdata
+	ior type,pdata
+	store 1,mem_le_arq
+	and_into 0x1f,pdata
+	isolate1 mark_ble_tx_md,mark
+	setflag true,md,pdata
+	store 1,mem_le_txheader
+
+	fetch 1,mem_le_txheader
+	compare 1,type,3
+	nbranch le_send_no_txlen,true
+	fetch 1,mem_le_txlen
+	rtn blank
+	
+le_send_no_txlen:	
+	bmark1 mark_ble_encryption,le_send_packet_enc
+	fetchr loopcnt,1,mem_le_txlen
+	fetch 2,mem_contr
+	copy pdata,contr
+	arg mem_le_txpayload,contw
+	branch memcpy_fast
+	
+le_send_packet_enc:
+	call load_sk
+	branch le_encrypt_new_start
+
+get_lpm_wake_ble_rx_lock:
+	arg wake_lock_ble_rx,queue
+	branch lpm_get_wake_lock
+
+put_lpm_wake_ble_rx_lock:
+	arg wake_lock_ble_rx,queue
+	branch lpm_put_wake_lock
+
+
+le_parse:
+	bpatchx patch37_6,mem_patch37
+	rtnmark1 mark_old_packet
+	rtnmark1 mark_ble_crc_fail
+//	call le_fifo_check_full
+//	nrtn blank
+	fetch 1,mem_le_rxbuf_data_header
+	and pdata,0x3,pdata
+	store 1,mem_le_packet_llid
+	rtn blank							//empty rtn
+	setarg mem_le_rxbuf_data_payload
+	store 2,mem_le_payload_ptr
+	bpatchx patch37_7,mem_patch37
+	fetch 1,mem_le_packet_llid
+	beq LLID_LE_LL,le_parse_ll
+le_parse_l2cap:
+	call le_check_l2cap_complete
+	nbranch get_lpm_wake_ble_rx_lock,user
+	call put_lpm_wake_ble_rx_lock
+	setarg 0
+	store 2,mem_le_packet_len_recved
+	fetch 2,mem_le_payload_ptr
+	add pdata,2,contr	//l2cap length
+	bpatchx patch38_0,mem_patch38
+	ifetch 2,contr
+	beq LE_L2CAP_CID_ATT,le_parse_att
+	beq LE_L2CAP_CID_SMP,le_parse_smp
+	beq LE_L2CAP_CID_SIGNAL,le_parse_signaling
+	rtn
+
+
+le_check_l2cap_complete:
+	fetch 1,mem_le_packet_llid
+	beq LLID_START,le_check_l2cap_llid_start
+	beq LLID_CONTINUE,le_check_l2cap_llid_continue
+	rtn
+
+//input: pdata is CID number
+//output: 	if CID is legal ,enable user
+//		if ICD is illegal,disable user 
+le_check_l2cap_CID_legal:
+	call enable_user
+	arg LE_L2CAP_CID_ATT,temp
+	isub pdata,null
+	rtn zero
+	arg LE_L2CAP_CID_SIGNAL,temp
+	isub pdata,null
+	rtn zero
+	arg LE_L2CAP_CID_SMP,temp
+	isub pdata,null
+	rtn zero
+	branch disable_user
+
+	
+le_check_l2cap_llid_start:
+	fetch 2,mem_le_payload_ptr
+	copy pdata,contr
+	ifetch 2,contr
+	store 2,mem_le_l2cap_size
+	ifetch 2,contr			//CID
+	call le_check_l2cap_CID_legal
+	nrtn user		//CID error
+	fetcht 1,mem_le_rxbuf_data_length
+	storet 2,mem_le_packet_len_recved
+	fetch 2,mem_le_l2cap_size
+	increase 4,pdata		//CID:2 L2cap length 2
+	isub temp,null
+	branch enable_user,zero
+	fetchr loopcnt,1,mem_le_rxbuf_data_length
+	arg mem_le_l2cap_buf,contw
+	fetch 2,mem_le_payload_ptr
+	copy pdata,contr
+	call memcpy_fast
+	branch disable_user
+
+//no input
+//output: 	if CID is legal ,enable user
+//		if ICD is illegal,disable user 
+le_check_l2cap_continue_legal:
+	call enable_user
+	fetch 2,mem_le_packet_len_recved
+	nrtn blank
+	branch disable_user
+
+le_check_l2cap_llid_continue:
+	call le_check_l2cap_continue_legal
+	nrtn user		//check receive start packet
+	fetch 2,mem_le_packet_len_recved
+	arg mem_le_l2cap_buf,contw
+	iadd contw,rega
+	fetcht 1,mem_le_rxbuf_data_length
+	iadd temp,pdata
+	store 2,mem_le_packet_len_recved
+	fetchr loopcnt,1,mem_le_rxbuf_data_length
+	copy rega,contw
+	fetch 2,mem_le_payload_ptr
+	copy pdata,contr
+	call memcpy_fast
+	setarg mem_le_l2cap_buf
+	store 2,mem_le_payload_ptr		//update ptr->mem_le_l2capbuff
+	fetch 2,mem_le_l2cap_size
+	increase 4,pdata
+	fetcht 2,mem_le_packet_len_recved
+	isub temp,null
+	branch enable_user,zero
+	branch disable_user
+
+
+
+
+
+le_get_search_att_uuid:
+	call store_contr
+	arg mem_le_search_uuid_length,contw
+	branch le_get_search_common
+
+
+	/* rega pointers to data, regb is length */
+le_writeatt_cb:
+	fetch 2,mem_cb_att_write
+	branch callback_func
+	
+le_supervision_update:
+	fetcht 4,mem_le_supervision_timer
+	call get_clkbt
+	isub temp,timeup					/* and to 28 bits */
+	deposit timeup
+	fetcht 2,mem_le_superto
+	lshift4 temp,temp
+	lshift temp,temp
+	isub temp,pdata
+	rtn
+	
+le_supervision_flush:
+	call get_clkbt
+	store 4,mem_le_supervision_timer
+	rtn
+
+	
+//input rega
+le_receive_window_size:
+	bpatchx patch38_1,mem_patch38
+	add rega, coffset_le_peer_sca,contr
+	ifetch 1,contr
+	call le_sca_map
+	add rega, coffset_tsniff,contr
+	ifetch 2,contr
+	imul32 temp,pdata
+	fetcht 2,mem_param_rt_rthalfslot
+	imul32 temp,pdata
+	arg 1000000,temp
+	idiv temp
+	arg PARAM_WINDOWN_SIZE,temp
+	fetch 1,mem_system_clk
+	imul32 temp,temp
+	add rega, coffset_le_window_size,contr
+	ifetch 1,contr
+	imul32 temp,pdata
+	iadd temp,pdata
+	store 4,mem_le_transmit_window	
+	fetch 2,mem_rx_window_sniff
+	call wait_div_end
+	quotient temp
+	iadd temp,pdata
+	add rega, coffset_rx_window,contw
+	istore 2,contw
+	rtn
+
+	
+
+le_init_attlist_search:
+	bpatchx patch38_2,mem_patch38
+	fetch 2,mem_le_search_handle_start
+	iforce regb
+	fetch 2,mem_le_search_handle_end
+	iforce regc
+	fetch 2,mem_ui_le_uuid_table
+	iforce contr
+	enable user
+	rtn
+
+	/* return handle in pdata, blank:end of list, positive:in range */
+le_att_handle_inrange:
+	ifetch 2,contr
+	and_into 0xff,pdata
+	rtn blank
+	isub regb,null			/* less than start ? */
+	nrtn positive
+	isub regc,null			/* greater than end ? */
+	rtn zero
+	branch le_att_handle_blank,positive
+	force 1,null
+	rtn
+le_att_handle_blank:
+	force 0,pdata
+	rtn
+
+
+	/* handle in temp, return pointer in contr to length, blank not found */
+le_att_get_handle_ptr:
+	call le_att_get_handle_ptr2
+	branch le_att_get_handle_ptr_found,zero
+	rtn
+	
+le_att_get_handle_ptr2:
+	bpatchx patch38_3,mem_patch38
+	fetch 2,mem_ui_le_uuid_table
+	iforce contr
+le_att_get_handle_loop1:
+	ifetch 2,contr
+	and_into 0xff,pdata
+	rtn blank
+	isub temp,null
+	rtn zero
+	ifetch 1,contr
+	iadd contr,contr	
+	ifetch 1,contr			// length  
+	iadd contr,contr
+	branch le_att_get_handle_loop1
+le_att_get_handle_ptr_found:
+	ifetch 1,contr
+	iadd contr,contr	
+	rtn	
+
+
+
+le_att_get_short_uuid_ptr:
+	bpatchx patch38_4,mem_patch38
+	fetch 2,mem_ui_le_uuid_table
+	iforce contr
+le_att_get_short_uuid_loop:
+	ifetch 2,contr
+	and_into 0xff,pdata
+	rtn blank
+	ifetch 1,contr
+	iadd contr,contr
+	increase -2,contr
+	ifetch 2,contr
+	isub temp,null
+	rtn zero
+	ifetch 1,contr			 
+	iadd contr,contr
+	branch le_att_get_short_uuid_loop	
+
+
+//output:temp:new handle num
+//contr:address write data
+le_att_get_last_handle:
+	fetch 2,mem_ui_le_uuid_table
+	iforce contr
+le_att_get_last_handle_loop:
+	ifetch 2,contr
+	and_into 0xff,pdata
+	rtn blank
+	add pdata,1,temp
+	ifetch 1,contr
+	iadd contr,contr	
+	ifetch 1,contr			// length
+	iadd contr,contr
+	copy contr,contw
+	branch le_att_get_last_handle_loop
+
+
+le_att_get_handle_info_from_ptr:
+	fetch 2, mem_le_cur_attlist_start_ptr
+	branch le_att_get_handle_info_fast
+
+le_att_get_handle_info:
+	bpatchx patch38_5,mem_patch38
+	fetch 2,mem_ui_le_uuid_table
+le_att_get_handle_info_fast:
+	iforce contr
+le_att_get_handle_loop:
+	ifetch 2,contr
+	and_into 0xff,pdata
+	branch le_att_unfind_handle,blank
+	isub temp,null
+	branch le_att_finded_handle, zero
+	ifetch 1,contr			// length  
+	iadd contr,contr	
+	ifetch 1,contr			//length 
+	iadd contr,contr
+	branch le_att_get_handle_loop
+le_att_unfind_handle:
+	branch disable_blank
+
+le_att_finded_handle:
+	ifetch 1,contr
+	store 1,mem_le_cur_uuid_length
+	copy pdata,loopcnt
+	arg mem_le_cur_uuid,contw
+	call memcpy_fast
+	ifetch 1,contr
+	store 1,mem_le_curr_att_len
+	call store_contr
+	branch enable_blank
+
+	
+le_modified_name:
+	bpatchx patch38_6,mem_patch38
+	call le_modified_name_att_list
+	branch le_modified_name_adv
+
+le_modified_name_att_list:
+	arg UUID_CHRCTR_DEVICE_NAME,temp
+	call le_att_get_short_uuid_ptr
+	rtn blank
+	ifetch 1,contr						// attribute length
+	copy contr,contw
+	fetcht 1,mem_le_name_len
+	copy temp,loopcnt
+	isub temp,null
+	nbranch le_name_length_longer_than_att,positive
+	isub temp,temp
+	arg mem_le_name,contr
+	call memcpy_fast
+	copy temp,loopcnt
+	ncall memcpy_empty,zero
+	rtn
+le_name_length_longer_than_att:
+	copy pdata,loopcnt
+	arg mem_le_name,contr
+	branch memcpy_fast
+
+
+le_modified_name_adv:
+	arg mem_le_adv_data_len+32,regc
+	arg mem_le_adv_data,rega
+	call le_modified_name_adv_and_scan
+	setarg 0
+	setflag user,0,pdata
+	store 1,mem_pdatatemp
+	arg mem_le_scan_data_len+32,regc
+	arg mem_le_scan_data,rega
+	call le_modified_name_adv_and_scan
+	rtn user
+	fetch 1,mem_pdatatemp
+	branch assert,blank
+	rtn
+
+
+le_modified_name_adv_and_scan:
+	bpatchx patch38_7,mem_patch38
+	call enable_user
+	call clear_temp_block
+	arg 0,regb	//current length
+	arg mem_le_data_temp,contw
+	call le_modified_name_adv_loop
+	fetch 1,mem_le_name_len
+	add pdata,1,temp
+	iadd regb,rega	
+	increase 2,rega
+	sub rega,0x1f,null
+	nbranch le_modified_name_adv_and_scan_name_overflow,positive
+	istoret 1,contw		//store ble name length
+	arg GAP_ADTYPE_LOCAL_NAME_COMPLETE,temp
+	istoret 1,contw		//store ble name type
+	iforce loopcnt
+	call memcpy_fast
+	copy rega,regb
+le_modified_name_adv_and_scan_store_data:
+	deposit regb
+	store 1,mem_le_data_len_temp
+	arg mem_le_data_len_temp,contr
+	setarg -32
+	iadd regc,contw
+	branch memcpy32
+
+le_modified_name_adv_and_scan_name_overflow:
+	call disable_user
+	branch le_modified_name_adv_and_scan_store_data
+	
+le_modified_name_adv_loop:
+	ifetch 1,rega		//pdata:length
+	rtn blank			//length is zero,ending find
+	pincrease 1		//length += 1
+	ifetcht 1,contr		//pdata:type
+	sub temp,GAP_ADTYPE_LOCAL_NAME_COMPLETE,null
+	branch le_modified_name_adv_found_name,zero
+	iadd regb,regb	
+	copy rega,contr
+	iforce loopcnt
+	call memcpy_fast
+	copy contr,rega
+le_modified_name_adv_loop2:
+	deposit rega
+	isub regc,null
+	rtn positive
+	branch le_modified_name_adv_loop
+
+le_modified_name_adv_found_name:
+	iadd rega,rega
+	branch le_modified_name_adv_loop2
+
+
+memcpy_empty:
+	setarg SPACE
+	istore 1,contw
+	loop memcpy_empty
+	rtn
+
+	
+le_lpm_set_mult:
+	bpatchx patch39_0,mem_patch39
+	disable wake
+	branch le_lpm_set_mult_attempt,attempt
+	nbranch le_lpm_lost,match
+le_lpm_set_mult_attempt:
+	call lpm_match
+	fetch 2,mem_rx_window_sniff
+	store 2,mem_le_receive_window
+le_lpm_set_mult_attempt_match:
+	nbranch lpm_mult_short,match
+	bmark1 mark_old_packet,lpm_mult_short
+
+	fetch 1,mem_le_rxbuf_data_length
+	nbranch lpm_mult_short,blank		// rx not empty, short interval
+	fetch 1,mem_le_txlen
+	nbranch lpm_mult_short,blank		// tx not empty, short interval
+	
+	fetch 1,mem_le_configuration
+	bbit1 BIT_BLE_SHORT_MULT,lpm_mult_short	//check flag,if flag is 1,always short mult
+	
+	fetch 1,mem_le_state
+	bbit1 lestate_update_param,lpm_mult_short
+	branch lpm_mult_wait_timeout
+	
+le_lpm_lost:
+	fetcht 2,mem_rx_window_sniff
+	rshift temp,temp
+	fetch 2,mem_le_receive_window
+	iadd temp,pdata
+	store 2,mem_le_receive_window
+	branch lpm_lost
+
+///////////////////////////////BLE CONFIG//////////////////////////////////////////
+le_set_config_fixed_tk:
+	arg BIT_BLE_PASSKEY_FIXED_KEY,queue
+	branch le_set_config
+
+le_clr_config_fixed_tk:
+	arg BIT_BLE_PASSKEY_FIXED_KEY,queue
+	branch le_clr_config
+
+le_set_config_fixed_ltk:
+	arg BIT_BLE_PAIRING_FIXED_LTK,queue
+	branch le_set_config
+
+le_clr_config_fixed_ltk:
+	arg BIT_BLE_PAIRING_FIXED_LTK,queue
+	branch le_clr_config
+
+le_set_config_more_data:
+	arg BIT_BLE_TRANSMIT_PACKET_BY_MD,queue
+	branch le_set_config
+
+le_clr_config_more_data:
+	arg BIT_BLE_TRANSMIT_PACKET_BY_MD,queue
+	branch le_clr_config
+
+le_set_config_read_authentication:
+	arg BIT_BLE_READ_AUTH,queue
+	branch le_set_config
+
+le_clr_config_read_authentication:
+	arg BIT_BLE_READ_AUTH,queue
+	branch le_clr_config
+
+le_set_config_write_authentication:
+	arg BIT_BLE_WRITE_AUTH,queue
+	branch le_set_config
+
+le_clr_config_write_authentication:
+	arg BIT_BLE_WRITE_AUTH,queue
+	branch le_clr_config
+
+le_set_config_short_mult:
+	arg BIT_BLE_SHORT_MULT,queue
+	branch le_set_config
+
+le_clr_config_short_mult:
+	arg BIT_BLE_SHORT_MULT,queue
+	branch le_clr_config
+
+
+le_set_config:
+	fetch 1,mem_le_configuration
+	qset1 pdata
+	store 1,mem_le_configuration
+	rtn
+
+le_clr_config:
+	fetch 1,mem_le_configuration
+	qset0 pdata
+	store 1,mem_le_configuration
+	rtn
+
+le_set_fixed_ltk:
+	setarg 0x112233
+	store 3,mem_le_fixed_ltk
+	setarg 0x445566
+	istore 3,contw
+	setarg 0x778899
+	istore 3,contw
+	setarg 0x001122
+	istore 3,contw
+	setarg 0x334455
+	istore 3,contw
+	setarg 0x66
+	istore 1,contw
+	rtn
+
+
+le_set_justwork:
+	setarg 0x01000302
+	store 4,mem_le_pres
+	setarg 0x010010
+	store 3,mem_le_pres_max_keysize
+	jam 1,mem_le_pairing_mode
+	rtn
+
+/////////////////////////////////////////////////////////////////////////
+
+le_fifo_malloc_tx_empty:
+	arg 0,rega
+	arg LLID_EMPTY,type
+	branch le_fifo_malloc_tx
+
+
+//rega:len regb:ll opcode
+le_fifo_malloc_tx_ll:
+	arg LLID_LE_LL,type
+	call le_fifo_malloc_tx
+	copy regb,pdata
+	istore 1,contw
+	rtn
+	
+
+//rega:len regb:cid
+le_fifo_malloc_tx_l2cap:
+	force LLID_START,type
+	increase 4,rega
+	call le_fifo_malloc_tx
+	increase -4,rega
+	copy rega,pdata
+	istore 2,contw
+	copy regb,pdata
+	istore 2,contw
+	rtn
+
+
+//rega:len type:llid
+le_fifo_malloc_tx:
+	increase 5,rega
+	call ble_l2cap_malloc
+	increase -5,rega
+	copy rega,pdata
+	istore 2,contw				//lengh
+	setarg 0
+	istore 2,contw				//offset
+	copy type,pdata
+	istore 1,contw				//LLID
+	rtn
+
+
+le_fifo_get_first_tx_ptr:
+	call l2cap_malloc_fifo_out
+	copy pdata,contr
+	rtn
+
+le_fifo_get_second_tx_ptr:
+	fetch 2,mem_tx_fifo2_ptr
+	rtn
+
+le_fifo_get_last_tx_ptr:
+	call le_fifo_get_last_tx_ptr0
+	copy pdata,contr
+	rtn
+
+
+le_fifo_get_last_tx_ptr0:
+	fetch 2,mem_tx_fifo3_ptr
+	rtn
+
+
+le_fifo_get_first_l2cap_ptr:
+	call le_fifo_get_first_tx_ptr
+	increase 5,contr
+	rtn
+
+le_fifo_get_first_att_ptr:
+	call le_fifo_get_first_tx_ptr
+	increase 9,contr
+	rtn
+
+le_fifo_get_last_att_ptr:
+	call le_fifo_get_last_tx_ptr
+	increase 9,contr
+	rtn
+
+le_fifo_get_last_l2cap_ptr:
+	call le_fifo_get_last_tx_ptr
+	increase 5,contr
+	rtn
+
+
+le_fifo_check_full:
+	branch l2cap_malloc_is_fifo_full
+
+
+le_fifo_check_nearly_full:
+	branch l2cap_malloc_is_fifo_nearly_full
+
+	
+le_fifo_check_empty:
+	branch l2cap_malloc_is_fifo_empty
+
+
+le_fifo_release_first_node:
+	branch l2cap_malloc_free
+
+
+/*
+	function name:le_set_dle (data packet length extension)
+	input:pdata is dle params
+	bit0~bit15 max rx octets
+	bit16~bit31 max rx time
+	bit32~bit47 max tx octets
+	bit48~bit63 max tx time
+*/
+le_set_dle:
+	store 8,mem_local_rx_max_octets
+	branch le_set_feature_data_packet_length_extension
+
+
+/*
+	function name:le_set_phys
+	input:temp is tx & rx phys
+	bit0~bit7 is tx phys
+	bit8~bit15 is rx phys
+*/
+le_set_phys:
+	and temp,0xff,rega
+	call le_set_tx_phy
+	rshift8 temp,rega
+	branch le_set_rx_phy
+
+le_set_tx_phy:
+	storer rega,1,mem_le_tx_phys
+	isolate1 BIT_LE_2M_PHY,rega
+	call le_set_feature_2M_phy,true
+	isolate1 BIT_LE_CODED_PHY,rega
+	call le_set_feature_coded_phy,true
+	rtn
+
+le_set_rx_phy:
+	storer rega,1,mem_le_rx_phys
+	branch le_set_tx_phy+1
+
+
+le_set_feature_2M_phy:
+	arg BIT_LL_FEATURE_LE_2M_PHY,queue
+	branch le_set_feature
+
+
+le_set_feature_coded_phy:
+	arg BIT_LL_FEATURE_LE_CODED_PHY,queue
+	branch le_set_feature
+
+
+le_set_feature_data_packet_length_extension:
+	arg BIT_LL_FEATURE_LE_DATA_PACKET_LENGTH_EXTENSION,queue
+	branch le_set_feature
+
+
+le_set_feature:
+	fetch 8,mem_le_local_feature
+	qset1 pdata
+	store 8,mem_le_local_feature
+	rtn
+
+
+
Index: program/ble_protocol_stack/le_advertising.prog
===================================================================
--- /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/program/ble_protocol_stack/le_advertising.prog	(nonexistent)
+++ /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/program/ble_protocol_stack/le_advertising.prog	(working copy)
@@ -0,0 +1,383 @@
+
+/*
+ble core spec advertising
+*/
+
+le_advertising_dispatch:
+	jam FUN_RX_LL_1M_PHY,mem_le_rx_phy
+	jam FUN_TX_LL_1M_PHY,mem_le_tx_phy
+	call le_enable
+	call le_scan
+	call le_adv
+	branch le_disable
+
+le_scan:
+	bpatchx patch39_1,mem_patch39
+	fetch 1,mem_le_scan_enable
+	rtnne LE_SCAN_ENABLE
+	arg le_scan_interval_timer,queue
+	call timer_check
+	nrtn blank
+	fetch 2,mem_le_scan_interval
+	fetcht 2,mem_le_scan_window
+	isub temp,pdata
+	arg le_scan_interval_timer,queue
+	call timer_init
+	disable master
+	call le_init_adv
+	call le_wait_adv
+	nrtn match
+	bpatchx patch39_2,mem_patch39
+	fetch 6,mem_le_rxbuf+2
+	store 6,mem_le_plap
+//	call le_scan_dongle
+
+	fetch 1,mem_le_adv_rcv
+	increase 1,pdata
+	store 1,mem_le_adv_rcv
+	call le_create_conn
+	rtn master
+	call le_send_scan_request
+	nrtn match
+	fetch 1,mem_le_scanrsp_rcv
+	increase 1,pdata
+	store 1,mem_le_scanrsp_rcv
+	fetch 9,mem_le_rxbuf+8
+	store 9,mem_tmp_buffer
+	rtn
+
+
+le_wait_adv:
+	bpatchx patch39_3,mem_patch39
+	call le_next_adv_channel
+	call le_receive_adv
+	fetch 1,mem_le_adv_waitcnt
+	increase 1,pdata
+	store 1,mem_le_adv_waitcnt
+	rtn
+
+
+le_create_conn:
+	bpatchx patch39_4,mem_patch39
+	fetch 1,mem_cmd_le_create_conn
+	rtnne hci_cmd_le_create_conn
+	fetch 6,mem_le_plap
+	fetcht 6,mem_le_conn_peer_addr
+	isub temp,null
+	nrtn zero
+	call context_new
+	nrtn zero
+	call le_connect_request
+	call le_init_master
+	bpatchx patch39_5,mem_patch39
+	jam 0,mem_hci_cmd
+	jam 0,mem_le_peer_sca
+	jam 0,mem_le_scan_enable
+	jam 0,mem_cmd_le_create_conn
+	branch context_save
+
+le_connect_request:
+	bpatchx patch39_6,mem_patch39
+	force -1,pdata
+	setsect 2,1
+	store 5,mem_le_channel_map
+	arg mem_le_state,rega	
+	call le_calc_channel_map	
+	force 4,loopcnt
+	arg mem_le_access,contw
+	call generate_random_loop	
+	fetch 2,mem_le_timeout
+	store 2,mem_le_superto
+le_con_req_hop_retry:
+	random pdata
+	and_into 0xf,pdata
+	sub pdata,4,null
+	branch le_con_req_hop_retry,positive
+	store 1,mem_le_hop
+	store 1,mem_tmp1
+	bpatchx patch39_7,mem_patch39
+	fetcht 2,mem_le_conn_interval
+	storet 2,mem_le_tsniff	
+	copy temp,regc			// tsniff in regc
+	add clkn_bt,7,pdata			// leave space for offset
+	idiv regc
+	call wait_div_end
+	remainder rega
+	isub rega,pdata
+	iadd regc,pdata
+	fetcht 2,mem_le_dsniff
+	iadd temp,pdata
+	store 4,mem_le_anchor
+	isub clkn_bt,rega
+	increase -6,rega			// window offset
+	arg 0x2205,regb			// length & CONN_REQ PDU
+	fetch 1,mem_le_conn_own_addr_type
+	nsetflag blank,LE_SENDER_ADDR_BIT,regb
+	fetch 1,mem_le_conn_peer_addr_type
+	nsetflag blank,LE_RECEIVER_ADDR_BIT,regb
+	copy regb,pdata
+	store 2,mem_le_txheader
+	fetch 6,mem_le_lap
+	istore 6,contw//own addr
+	fetch 6,mem_le_plap
+	istore 6,contw// peer addr
+	fetch 4,mem_le_access
+	istore 4,contw
+	random pdata
+	istore 2,contw				/* crc init */
+	random pdata
+	istore 1,contw
+	force 2,pdata				/* window size */	
+	istore 1,contw
+	rshift2 rega,pdata
+	istore 2,contw				/* window offset */
+	rshift2 regc,pdata			
+	istore 2,contw				/* conn Interval */
+	bpatchx patch3a_0,mem_patch3a
+	setarg 0					/* slave latency */
+	istore 2,contw
+	fetch 2,mem_le_timeout
+	istore 2,contw
+	fetch 5,mem_le_channel_map
+	istore 5,contw				/* channel map */
+	fetch 1,mem_le_hop
+	arg param_le_sca,temp
+	ior temp,pdata
+	istore 1,contw
+	call le_transmit_norx
+	setarg mem_le_txheader
+	add pdata,18,contr
+	ifetch 3,contr
+	store 3,mem_le_crcinit
+	rtn
+		
+
+
+le_adv:
+	jam 36,mem_le_ch_mapped
+	jam 0,mem_le_adv_channel_map_temp
+le_adv_loop:
+	fetch 1,mem_le_adv_enable
+	rtn blank
+	arg le_adv_interval_timer,queue
+	call timer_check
+	nrtn blank
+	bpatchx patch3a_1,mem_patch3a
+le_adv_loop_tx:
+	enable swfine
+	call le_init_adv
+	call le_next_adv_channel
+	call le_send_adv_ind
+	nbranch le_adv_not_match,match
+	fetch 1,mem_le_req_rcv
+	increase 1,pdata
+	store 1,mem_le_req_rcv
+	fetch 1,mem_le_rxbuf_adv_header
+	and pdata,0x0f,pdata
+	beq SCAN_REQ,le_send_scan_response
+	beq CONNECT_REQ,le_parse_connect_req
+le_adv_not_match:
+	bpatchx patch3a_2,mem_patch3a
+	fetch 1,mem_le_adv_channel_map_temp
+	fetcht 1,mem_le_adv_channel_map
+	isub temp,null
+	nbranch le_adv_loop,zero
+	random pdata 
+	arg 0x1ff,temp
+	iand temp,pdata
+	add pdata,250,pdata
+	call delay
+	arg le_adv_interval_timer,queue
+	fetch 2,mem_le_adv_interval
+	branch timer_init
+
+
+le_init_adv:
+	bpatchx patch3a_3,mem_patch3a
+	disable master
+le_adv_access:
+	setarg 0x8e89be
+	lshift8 pdata,pdata
+	or_into 0xd6,pdata
+	iforce access
+	setarg 0x555555
+	store 3,mem_le_crcinit
+	branch calc_mod_value_scale_le
+
+
+
+le_send_adv_ind:
+	bpatchx patch3a_4,mem_patch3a
+	fetch 1,mem_le_adv_type
+	fetcht 1,mem_le_adv_own_addr_type
+	lshift4 temp,temp
+	lshift2 temp,temp
+	iadd temp,temp
+	storet 1,mem_le_txheader
+	beq ADV_DIRECT_IND,le_send_adv_direct_ind
+	fetcht 1,mem_le_adv_data_len
+	add temp,6,pdata
+	store 1,mem_le_txlen
+	fetch 6,mem_le_lap
+	store 6,mem_le_txpayload
+	copy temp,loopcnt
+	arg mem_le_adv_data,contr
+	call memcpy_fast
+	branch le_send_adv_transmit
+
+le_send_adv_direct_ind:
+	setarg 12
+	store 1,mem_le_txlen
+	fetch 6,mem_le_lap
+	store 6,mem_le_txpayload
+	fetch 6,mem_hci_plap
+	istore 6,contw
+le_send_adv_transmit:
+	bpatchx patch3a_5,mem_patch3a
+	fetch 1,mem_le_adv_transmit
+	increase 1,pdata
+	store 1,mem_le_adv_transmit
+	arg 1800,stop_watch
+	disable match
+	branch le_transmit_receive_sifs_without_change_mode
+
+
+le_send_scan_request:
+	bpatchx patch3a_6,mem_patch3a
+	fetch 1,mem_le_scan_type
+	rtnne LE_SCAN_TYPE_ACTIVE
+	fetch 1,mem_le_adv_transmit
+	increase 1,pdata
+	store 1,mem_le_adv_transmit
+	arg 0x0c03,temp// length + SCAN_REQ PDU
+	fetch 1,mem_le_scan_own_addr_type
+	nsetflag blank,LE_SENDER_ADDR_BIT,temp
+	copy rega,pdata
+	nsetflag blank,LE_RECEIVER_ADDR_BIT,temp	
+	storet 2,mem_le_txheader
+	fetch 6,mem_le_lap
+	istore 6,contw
+	fetch 6,mem_le_plap
+	istore 6,contw
+	branch le_transmit_receive_sifs_without_change_mode
+
+le_send_scan_response:
+	fetch 6,mem_le_rxbuf_adv_scan_req_adv_address
+	fetcht 6,mem_le_lap
+	isub temp,null
+	nrtn zero
+	arg SCAN_RSP,temp
+	fetch 1,mem_le_adv_own_addr_type
+	nsetflag blank,LE_SENDER_ADDR_BIT,temp
+	storet 1,mem_le_txheader
+	fetcht 1,mem_le_scan_data_len
+	add temp,6,pdata
+	store 1,mem_le_txlen
+	fetch 6,mem_le_lap
+	store 6,mem_le_txpayload
+	arg mem_le_scan_data,contr
+	copy temp,loopcnt
+	call memcpy_fast
+	call le_transmit_norx
+	branch le_adv_not_match
+
+le_parse_connect_req:
+	fetch 6,mem_le_rxbuf_adv_connect_ind_adv_address
+	fetcht 6,mem_le_lap
+	isub temp,null
+	nrtn zero
+	call le_scan_check_sender_addr_type
+	storer rega,1,mem_le_conn_peer_addr_type
+	fetch 6,mem_le_rxbuf_adv_connect_ind_init_address
+	store 6,mem_le_plap
+	fetch 8,mem_le_rxbuf_adv_connect_ind_access_address
+	store 8,mem_le_access 	// and crcinit & window size
+	fetcht 2,mem_le_rxbuf_adv_connect_ind_win_offset	// transmit offset
+	bpatchx patch3a_7,mem_patch3a
+	lshift2 temp,temp
+	fetch 2,mem_le_rxbuf_adv_connect_ind_interval	// connInterval
+	lshift2 pdata,pdata
+	store 2,mem_le_tsniff
+	store 4,mem_le_anchor
+	isub temp,pdata
+	add pdata,-2,clke_bt
+	fetch 9,mem_le_rxbuf_adv_connect_ind_latency
+	store 9,mem_le_slave_latency// and super to & channel map
+	bpatchx patch3b_0,mem_patch3b
+	fetch 1,mem_le_rxbuf_adv_connect_ind_hop_and_sca
+	and pdata,0x1f,temp
+	storet 1,mem_le_hop
+	rshift4 pdata,temp
+	rshift temp,temp
+	storet 1,mem_le_peer_sca
+	arg mem_le_state,rega
+	call le_receive_window_size
+	arg mem_le_state,rega	
+	call le_calc_channel_map
+	call le_init_slave
+	call context_new
+	nrtn zero
+	bpatchx patch3b_1,mem_patch3b
+	call calc_clke_offset
+	call le_l2cap_reset_signaling_identifier
+	jam BT_EVT_LE_CONNECTED,mem_fifo_temp
+	call ui_ipc_send_event
+	branch context_save
+
+
+le_next_adv_channel:
+	bpatchx patch3b_2,mem_patch3b
+	fetch 1,mem_le_ch_mapped
+	beq 37,le_next_adv_channel_curr_channel_37
+	beq 38,le_next_adv_channel_curr_channel_38
+	beq 39,le_next_adv_channel_curr_channel_39
+	branch le_next_adv_channel_curr_channel_39
+
+le_next_adv_channel_curr_channel_37:
+	fetcht 1,mem_le_adv_channel_map
+	isolate1 BIT_ADV_CHANNEL_MAP_38,temp		//check 38 channel enable
+	branch set_le_next_adv_channel_38,true
+	isolate1 BIT_ADV_CHANNEL_MAP_39,temp		//check 39 channel enable
+	branch set_le_next_adv_channel_39,true
+	branch set_le_next_adv_channel_37
+
+
+le_next_adv_channel_curr_channel_38:
+	fetcht 1,mem_le_adv_channel_map
+	isolate1 BIT_ADV_CHANNEL_MAP_39,temp		//check 39 channel enable
+	branch set_le_next_adv_channel_39,true
+	isolate1 BIT_ADV_CHANNEL_MAP_37,temp		//check 37 channel enable
+	branch set_le_next_adv_channel_37,true
+	branch set_le_next_adv_channel_38
+
+
+le_next_adv_channel_curr_channel_39:
+	fetcht 1,mem_le_adv_channel_map
+	isolate1 BIT_ADV_CHANNEL_MAP_37,temp		//check 37 channel enable
+	branch set_le_next_adv_channel_37,true
+	isolate1 BIT_ADV_CHANNEL_MAP_38,temp		//check 38 channel enable
+	branch set_le_next_adv_channel_38,true
+	branch set_le_next_adv_channel_39
+
+set_le_next_adv_channel_37:
+	jam 37,mem_le_ch_mapped
+	fetch 1,mem_le_adv_channel_map_temp
+	set1 BIT_ADV_CHANNEL_MAP_37,pdata
+	store 1,mem_le_adv_channel_map_temp
+	rtn
+
+set_le_next_adv_channel_38:
+	jam 38,mem_le_ch_mapped
+	fetch 1,mem_le_adv_channel_map_temp
+	set1 BIT_ADV_CHANNEL_MAP_38,pdata
+	store 1,mem_le_adv_channel_map_temp
+	rtn
+
+set_le_next_adv_channel_39:
+	jam 39,mem_le_ch_mapped
+	fetch 1,mem_le_adv_channel_map_temp
+	set1 BIT_ADV_CHANNEL_MAP_39,pdata
+	store 1,mem_le_adv_channel_map_temp
+	rtn
+
+
Index: program/ble_protocol_stack/le_l2cap_att.prog
===================================================================
--- /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/program/ble_protocol_stack/le_l2cap_att.prog	(nonexistent)
+++ /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/program/ble_protocol_stack/le_l2cap_att.prog	(working copy)
@@ -0,0 +1,871 @@
+
+
+le_parse_att:
+	ifetch 3,contr
+	store 3,mem_le_att_opcode
+	beq ATTOP_EXCHANGE_MTU_REQUEST,le_parse_att_exchange_mtu_request
+	beq ATTOP_EXCHANGE_MTU_RESPONSE,le_parse_att_exchange_mtu_response
+	beq ATTOP_FIND_INFORMATION_REQUEST,le_parse_att_find_information_request
+	beq ATTOP_FIND_BY_TYPE_VALUE_REQUEST,le_parse_att_find_by_type_value_request
+	beq ATTOP_READ_BY_TYPE_REQUEST,le_parse_att_read_by_type_request
+	beq ATTOP_READ_REQUEST,le_parse_att_read_request
+	beq ATTOP_READ_BLOB_REQUEST,le_parse_att_read_blob_request
+	beq ATTOP_READ_BY_GROUP_TYPE_REQUEST,le_parse_att_read_by_group_type_request
+	beq ATTOP_WRITE_REQUEST,le_parse_att_write_request
+	beq ATTOP_PREPARE_WRITE_REQUEST,le_parse_att_prepare_write_request
+	beq ATTOP_EXECUTE_WRITE_REQUEST,le_parse_att_execute_write_request
+	beq ATTOP_HANDLE_VALUE_CONFIRMATION,le_parse_handle_value_confirmation
+	beq ATTOP_WRITE_COMMAND,le_parse_att_write_command
+	rtn
+
+
+le_send_att_exchange_mtu_requset:
+	force 3,rega
+	call le_fifo_malloc_tx_l2cap_gatt
+	setarg ATTOP_EXCHANGE_MTU_REQUEST
+	istore 1,contw
+	fetch 2,mem_le_local_mtu
+	istore 2,contw
+	rtn
+
+
+le_parse_att_exchange_mtu_request:
+	call le_parse_att_exchange_mtu_response
+le_send_att_exchange_mtu_response:
+	force 3,rega
+	call le_fifo_malloc_tx_l2cap_gatt
+	setarg ATTOP_EXCHANGE_MTU_RESPONSE
+	istore 1,contw
+	fetch 2,mem_le_local_mtu
+	istore 2,contw
+	rtn
+
+le_parse_att_exchange_mtu_response:
+	rshift8 pdata,pdata
+	store 2,mem_le_remote_mtu
+	rtn
+
+le_parse_att_find_information_request:
+	call le_get_search_handle_start_end_common
+	call enable_user
+	branch le_send_att_find_information_response
+	
+le_send_att_find_information_response:
+	arg 3,timeup
+	call le_init_attlist_search
+le_send_att_find_information_res_loop:
+	call le_att_handle_inrange
+	branch le_send_att_find_information_res_end,blank
+	nbranch le_send_att_find_information_res_next,positive
+	increase -2,contr
+	call store_contr
+	call get_contw
+	nbranch le_send_att_find_information_res_store_info,user
+	call push_stack_rega_b_c
+	call disable_user
+	force 20,rega
+	call le_fifo_malloc_tx_l2cap_gatt
+	call pop_stack_rega_b_c
+	setarg ATTOP_FIND_INFORMATION_RESPONSE
+	istore 1,contw
+	setarg UUID_SIZE_16BIT
+	istore 1,contw
+le_send_att_find_information_res_store_info:
+	call get_contr
+	ifetch 2,contr
+	and_into 0xff,pdata
+	istore 2,contw
+	ifetch 1,contr
+	copy pdata,loopcnt
+	call memcpy
+	call store_contw
+	increase -1,timeup
+	branch le_send_att_find_information_res_end,zero
+le_send_att_find_information_res_cont:
+	ifetch 1,contr
+	iadd contr,contr
+	branch le_send_att_find_information_res_loop
+le_send_att_find_information_res_next:
+	ifetch 1,contr
+	iadd contr,contr
+	branch le_send_att_find_information_res_cont
+le_send_att_find_information_res_end:
+	branch le_send_att_error_response_notfound,user
+	branch le_send_auto_len_by_mem
+
+
+le_parse_att_find_by_type_value_request:
+	call le_get_search_handle_start_end_common
+	ifetch 2,contr
+	store 2,mem_le_search_uuid
+	call store_contr
+	arg mem_le_search_att_type_length,contw
+	fetch 2,mem_le_l2cap_size
+	increase -7,pdata
+	call le_get_search_common2
+	branch le_send_att_find_by_type_value_response
+
+
+le_start_end_handle_check_1:
+	disable user
+	fetcht 2,mem_le_search_handle_start
+	fetch 2,mem_le_search_handle_end
+	isub temp,null
+	nbranch le_start_end_handle_check_1_fail,positive
+	deposit temp
+	rtnne 0
+le_start_end_handle_check_1_fail:
+	enable user
+	jam ATT_ERR_INVALID_HANDLE,mem_le_err_code
+	branch le_send_att_error_response
+
+
+le_send_att_find_by_type_value_response:
+	call le_start_end_handle_check_1
+	rtn user
+	fetcht 2,mem_le_search_uuid
+	setarg UUID_GATT_PRIMARY_SERVICE
+	isub temp,null
+	branch le_send_att_find_by_type_value_res_primary,zero
+	branch le_send_att_error_response_notfound
+	
+
+le_send_att_find_by_type_value_res_primary:
+	jam LE_FIND_BY_TYPE_VAL_RES_NOT_FOUND,mem_le_search_res
+	fetcht 2,mem_le_search_handle_start
+	storet 2,mem_temp
+	call le_att_get_handle_info
+	nbranch le_send_att_error_response_notfound,blank
+le_send_att_find_primary_search_loop:
+	fetcht 2,mem_temp
+	call le_att_get_handle_info
+	nbranch le_send_att_error_response_notfound2,blank	
+	copy contr,rega
+	fetch 1,mem_le_curr_att_len
+	copy pdata,loopcnt
+	fetcht 1,mem_le_search_att_type_length
+	isub temp,null
+	nbranch le_send_att_find_primary_search_loop1,zero
+	arg mem_le_search_att_type,regb
+	call string_compare
+
+	branch le_send_att_find_primary_search_end_start_handle_found,zero
+
+	fetch 2,mem_le_cur_uuid
+	fetcht 2,mem_le_search_uuid
+	isub temp,null
+	branch le_send_att_find_primary_search_end_ending_handle_found,zero
+le_send_att_find_primary_search_loop1:
+	fetch 2,mem_temp
+	increase 1,pdata
+	store 2,mem_temp
+	branch le_send_att_find_primary_search_loop
+
+le_send_att_error_response_notfound2:
+	fetch 1,mem_le_search_res
+	beq LE_FIND_BY_TYPE_VAL_RES_FOUND_STARTING_HANDLE,le_send_att_find_primary_search_end_ending_handle_found
+	branch le_send_att_error_response_notfound
+
+	
+le_send_att_find_primary_search_end_start_handle_found:
+	fetch 2,mem_le_cur_uuid
+	fetcht 2,mem_le_search_uuid
+	isub temp,null
+	nbranch  le_send_att_find_primary_search_loop1,zero
+	jam LE_FIND_BY_TYPE_VAL_RES_FOUND_STARTING_HANDLE,mem_le_search_res
+//	copy rega,temp
+	fetcht 2,mem_temp
+	storet 2,mem_le_cur_handle_start
+	branch le_send_att_find_primary_search_loop1
+
+le_send_att_find_primary_search_end_ending_handle_found:
+	fetch 1,mem_le_search_res
+	beq LE_FIND_BY_TYPE_VAL_RES_NOT_FOUND,le_send_att_find_primary_search_loop1
+	jam LE_FIND_BY_TYPE_VAL_RES_FOUND_ENDING_HANDLE,mem_le_search_res
+	fetcht 2,mem_temp
+	increase -1,temp
+	storet 2,mem_le_cur_handle_end
+	
+le_send_att_find_primary_search_end:
+	arg 5,rega
+	call le_fifo_malloc_tx_l2cap_gatt
+	setarg ATTOP_FIND_BY_TYPE_VALUE_RESPONSE
+	istore 1,contw
+	fetch 2,mem_le_cur_handle_start
+	istore 2,contw
+	fetch 2,mem_le_cur_handle_end
+	istore 2,contw
+	rtn
+
+
+
+le_parse_att_read_by_type_request:
+	call le_get_search_handle_start_end_common
+	call le_get_search_att_type
+	branch le_send_att_read_by_type_response
+	
+le_send_att_read_by_type_response:
+	fetcht 2,mem_le_search_handle_start
+	storet 2,mem_temp
+	call le_init_attlist_search
+	call le_att_get_handle_ptr2
+	increase -2,contr
+	copy contr,pdata
+	store 2,mem_le_cur_attlist_start_ptr
+
+	fetcht 2,mem_le_search_att_type
+	setarg UUID_CHRCTR_DEVICE_NAME
+	isub temp,null
+	branch le_send_att_read_by_type_res_device_name,zero
+	setarg UUID_GATT_CHARACTERISTIC
+	isub temp,null
+	nbranch le_send_att_read_by_type_res_not_characteristic,zero
+	arg 2,timeup
+le_send_att_read_by_type_response_loop:
+	call le_att_check_handle_end
+	nbranch le_send_att_read_by_type_response_end,positive
+	fetcht 2,mem_temp
+	call le_att_get_handle_info_from_ptr
+	nbranch le_send_att_read_by_type_response_end,blank
+	call le_att_same_type
+	nbranch le_send_att_read_by_type_response_next_handle,zero
+	nbranch le_send_att_read_by_type_res_found_next,user
+	disable user
+	arg 20,rega
+	call le_fifo_malloc_tx_l2cap_gatt
+	setarg ATTOP_READ_BY_TYPE_RESPONSE
+	istore 1,contw
+	copy contw,alarm
+	increase 1,contw
+	
+	call le_send_att_read_by_type_write_properties
+	call le_att_next_handle
+	call le_att_get_handle_info_from_ptr
+	call le_send_att_read_by_type_write_uuid
+	fetch 1,mem_le_cur_uuid_length
+	add pdata,5,rega
+	istorer rega,1,alarm
+	
+	sub rega,7,null
+	ncall enable_user2,zero
+	call disable_user2,zero
+ 	call le_get_search_max_mtu_data
+	idiv rega
+	call wait_div_end
+	quotient timeup
+	increase -1,timeup
+	branch le_send_att_read_by_type_response_end,zero
+le_send_att_read_by_type_response_next_handle:
+	call le_att_next_handle
+	branch le_send_att_read_by_type_response_loop
+le_send_att_read_by_type_response_end:
+	branch le_send_att_error_response_notfound,user
+	branch le_send_auto_len_by_mem
+
+le_send_att_read_by_type_res_found_next:
+	call le_store_att_record
+	call le_att_next_handle
+	call le_att_get_handle_info_from_ptr
+	call le_send_att_read_by_type_res_check_pair_length_type
+	nbranch le_send_att_read_by_type_response_end,blank
+
+	call get_contw
+	fetch 2,mem_temp
+	increase -1,pdata
+	istore 2,contw
+	call le_write_att_record_common
+	call le_send_att_read_by_type_write_uuid
+	increase -1,timeup
+	branch le_send_att_read_by_type_response_end,zero
+	branch le_send_att_read_by_type_response_next_handle
+
+	
+le_send_att_read_by_type_write_properties:
+	fetch 2,mem_temp
+	istore 2,contw
+	
+	fetch 1,mem_le_curr_att_len
+	copy pdata,loopcnt
+	call get_contr
+	call memcpy_fast
+	branch store_contw
+le_send_att_read_by_type_write_uuid:
+	call get_contw
+	fetch 2,mem_temp
+	istore 2,contw
+	call store_contw
+	fetch 1,mem_le_cur_uuid_length
+	copy pdata,loopcnt
+	call get_contw	
+	call get_contr
+	isub loopcnt,contr
+	increase -1,contr
+	call memcpy_fast
+	branch store_contw
+
+
+
+le_send_att_read_by_type_res_not_characteristic:
+	call le_att_get_short_uuid_ptr
+	branch le_send_att_error_response_notfound,blank
+	copy contr,regc
+	increase -5,contr // point to handle
+	ifetch 2,contr
+	store 2,mem_temp
+	arg 20,rega
+	call le_fifo_malloc_tx_l2cap_gatt
+	setarg ATTOP_READ_BY_TYPE_RESPONSE
+	istore 1,contw
+	ifetch 1,regc
+	copy pdata,loopcnt
+	increase 2,pdata
+	istore 1,contw
+	fetch 2,mem_temp
+	istore 2,contw
+	add regc,1,contr
+	call memcpy_fast
+	call store_contw
+	branch le_send_auto_len_by_mem
+
+	
+
+le_send_att_read_by_type_res_device_name:
+	arg UUID_CHRCTR_DEVICE_NAME,temp
+	call le_att_get_short_uuid_ptr
+	rtn blank
+	increase -5,contr // point to handle
+	ifetch 2,contr		
+	store 2,mem_temp
+	arg 20,rega
+	call le_fifo_malloc_tx_l2cap_gatt
+	setarg ATTOP_READ_BY_TYPE_RESPONSE
+	istore 1,contw
+	fetch 1,mem_le_name_len
+	copy pdata,loopcnt
+	increase 2,pdata
+	istore 1,contw
+	fetch 2,mem_temp
+	istore 2,contw
+	arg mem_le_name,contr
+	call memcpy_fast
+	call store_contw
+	branch le_send_auto_len_by_mem
+
+
+
+le_parse_att_read_request:
+	call le_check_encrypt_state
+	fetcht 2,mem_le_att_handle
+	fetch 1,mem_le_configuration
+	bbit1 BIT_BLE_READ_AUTH,le_send_att_read_response_check_auth
+
+//input:temp is handle
+le_send_att_read_response:
+	call le_att_get_handle_ptr2
+	nbranch le_send_att_error_response_notfound,zero
+	call le_send_att_read_response_check_handle,user
+	rtn user
+	call le_att_get_handle_ptr_found
+	increase -2,contr
+	ifetch 2,contr
+	arg UUID_CHRCTR_DEVICE_NAME,temp
+	isub temp,null
+	branch le_send_device_name,zero
+	ifetch 1,contr
+	sub pdata,22,null
+	branch le_send_att_read_response_less,positive
+	force 22,pdata
+le_send_att_read_response_less:
+	copy pdata,regc
+	call store_contr
+	add regc,1,rega
+	call le_fifo_malloc_tx_l2cap_gatt
+	setarg ATTOP_READ_RESPONSE
+	istore 1,contw
+	copy regc,loopcnt
+	call get_contr
+	branch memcpy
+
+le_send_device_name:
+	call store_contr
+	fetch 1,mem_le_name_len
+	add pdata,1,rega
+	call le_fifo_malloc_tx_l2cap_gatt
+	setarg ATTOP_READ_RESPONSE
+	istore 1,contw
+	fetch 1,mem_le_name_len
+	copy pdata,loopcnt
+	arg mem_le_name,contr
+	branch memcpy
+	
+	
+le_send_att_read_response_check_auth:
+	fetch 2,mem_le_pairing_handle
+	isub temp,null
+	nbranch le_send_att_read_response,zero
+	nbranch le_send_att_read_response,user
+le_send_att_read_response_error_insufficient_auth:
+	jam ATT_ERR_INSUFFICIENT_AUTHENTICATION,mem_le_err_code
+	branch le_send_att_error_response
+
+le_send_att_read_response_check_handle:
+	increase -2,contr
+	ifetch 2,contr
+	bbit1 BIT_OF_ATT_HANDLE_READ_AUTHENTICATED,le_send_att_read_response_error_insufficient_auth
+	branch disable_user
+
+le_parse_att_read_blob_request:
+	ifetch 2,contr
+	store 2,mem_le_att_offset
+le_send_att_read_blob_response:
+	arg 20,rega
+	call le_fifo_malloc_tx_l2cap_gatt
+	setarg ATTOP_READ_BLOB_RESPONSE
+	istore 1,contw
+	fetch 2,mem_le_att_offset
+	iforce rega
+	fetcht 2,mem_le_att_handle
+	call le_att_get_handle_ptr 
+	branch le_send_att_error_response_notfound,blank
+	ifetch 1,contr
+	isub rega,loopcnt
+	nbranch le_send_att_error_response_notfound,positive
+	sub loopcnt,22,null
+	branch le_send_att_read_blob_response_less,positive
+	force 22,loopcnt
+le_send_att_read_blob_response_less:
+	deposit rega
+	iadd contr,contr
+	call memcpy_fast
+	call store_contw
+	branch le_send_auto_len_by_mem
+
+
+//查询server
+le_parse_att_read_by_group_type_request:
+	call le_get_search_handle_start_end_common
+ 	call le_get_search_att_type
+	branch le_send_att_read_by_group_type_response
+
+
+//mem_le_search_att_type
+//mem_le_search_handle_start
+//mem_le_search_handle_end
+le_send_att_read_by_group_type_response:
+	arg 2,timeup
+	fetcht 2,mem_le_search_handle_start
+	storet 2,mem_temp
+	call le_att_get_handle_ptr2
+	increase -2,contr
+	copy contr,pdata
+	store 2,mem_le_cur_attlist_start_ptr
+le_send_att_read_by_group_type_response_loop:
+	call le_att_check_handle_end		//check current handle >= ending handle
+	nbranch le_send_att_read_by_group_type_end0,positive
+	fetcht 2,mem_temp
+	call le_att_get_handle_info_from_ptr	//get current handle info
+	nbranch le_send_att_read_by_group_type_end1,blank
+
+	call le_att_same_type				//compair attr group type
+	nbranch le_send_att_read_by_group_type_next_handle,zero
+	copy timeup,pdata
+	beq 0,le_send_att_read_by_group_type_end1	//loop count
+	nbranch le_send_att_read_by_group_type_store_write_record,user		//un first
+	disable user
+	//first att uuid
+	arg 20,rega
+	call le_fifo_malloc_tx_l2cap_gatt
+	setarg ATTOP_READ_BY_GROUP_TYPE_RESPONSE
+	istore 1,contw
+	fetch 1,mem_le_curr_att_len
+	add pdata,4,rega
+	istorer rega,1,contw
+	call store_contw
+	sub rega,6,null
+	ncall enable_user2,zero
+	call disable_user2,zero
+ 	call le_get_search_max_mtu_data
+	idiv rega
+	call wait_div_end
+	quotient timeup
+	branch le_send_att_read_by_group_type_store_record
+le_send_att_read_by_group_type_store_write_record:
+	call le_send_att_read_by_group_type_check_pair_length_type
+	nbranch le_send_att_read_by_group_type_end1,blank
+	fetch 2,mem_temp
+	increase -1,pdata
+	store 2,mem_le_cur_handle_end
+	call le_write_att_record
+le_send_att_read_by_group_type_store_record:
+	fetch 2,mem_temp
+	store 2,mem_le_cur_handle_start
+	call le_store_att_record
+	increase -1,timeup
+//	branch le_send_att_read_by_group_type_last_find,zero		
+le_send_att_read_by_group_type_next_handle:
+	call le_att_next_handle
+	branch le_send_att_read_by_group_type_response_loop
+
+le_send_att_read_by_type_res_check_pair_length_type:
+	fetch 1,mem_le_cur_uuid_length
+	branch le_send_att_read_by_group_type_check_pair_length_type+1
+
+//output:blank is same
+le_send_att_read_by_group_type_check_pair_length_type:
+	fetch 1,mem_le_curr_att_len
+	branch le_send_att_read_by_group_type_check_pair_length_type_16byte,user2
+	increase -2,pdata
+	rtn
+
+le_send_att_read_by_group_type_check_pair_length_type_16byte:
+	increase -16,pdata
+	rtn
+
+le_send_att_read_by_group_type_end0:	//> att handle end
+	fetch 2,mem_temp
+	store 2,mem_le_cur_handle_end
+	branch le_send_att_read_by_group_type_end_common
+le_send_att_read_by_group_type_end1:	//>att max list handle or diff len 
+	fetch 2,mem_temp
+	increase -1,pdata
+	store 2,mem_le_cur_handle_end
+	branch le_send_att_read_by_group_type_end_common
+le_send_att_read_by_group_type_end_common:
+	branch le_send_att_error_response_notfound,user
+	call le_write_att_record
+	branch le_send_auto_len_by_mem
+
+
+
+
+le_parse_att_write_request:
+	copy contr,rega
+	fetch 2,mem_le_l2cap_size
+	add pdata,-3,regb
+	call le_writeatt_cb
+le_send_att_write_response_check_auth:
+	call le_check_encrypt_state
+	fetcht 2,mem_le_att_handle
+	call le_att_get_handle_ptr2
+	nbranch le_send_att_write_response_error_invalid_handle,zero
+	call le_send_att_write_response_check_handle,user
+	rtn user
+
+	fetch 1,mem_le_configuration
+	bbit0 BIT_BLE_WRITE_AUTH,le_send_att_write_response
+
+	fetcht 2,mem_le_att_handle
+	fetch 2,mem_le_pairing_handle
+	isub temp,null
+	nbranch le_send_att_write_response,zero
+	call le_check_encrypt_state
+	nbranch le_send_att_write_response,user
+	branch le_send_att_read_response_error_insufficient_auth
+
+
+le_send_att_write_response:
+	force 1,rega
+	call le_fifo_malloc_tx_l2cap_gatt
+	setarg ATTOP_WRITE_RESPONSE
+	istore 1,contw
+	rtn
+
+le_send_att_write_response_check_handle:
+	increase -2,contr
+	ifetch 2,contr
+	bbit1 BIT_OF_ATT_HANDLE_WRITE_AUTHENTICATED,le_send_att_read_response_error_insufficient_auth
+	branch disable_user
+
+le_send_att_write_response_error_invalid_handle:
+	jam ATT_ERR_INVALID_HANDLE,mem_le_err_code
+	branch le_send_att_error_response
+
+
+le_check_encrypt_state:
+	call disable_user
+	fetch 1,mem_le_pairing_mode
+	rtneq LE_PAIRING_MODE_NONE
+	fetch 1,mem_context
+	rtnbit1 lestate_encryption
+	branch enable_user
+
+
+le_parse_att_prepare_write_request:
+	add contr,2,rega
+	fetch 2,mem_le_l2cap_size
+	add pdata,-5,regb
+	call le_writeatt_cb
+	branch le_send_att_prepare_write_response
+
+
+le_send_att_prepare_write_response:
+	fetch 2,mem_le_l2cap_size
+	copy pdata,rega
+	call le_fifo_malloc_tx_l2cap_gatt
+	setarg ATTOP_PREPARE_WRITE_RESPONSE
+	istore 1,contw
+	fetch 2,mem_le_att_handle
+	istore 2,contw
+	fetch 2,mem_le_l2cap_size
+	add pdata,-5,loopcnt	
+	fetch 2,mem_le_payload_ptr
+	add pdata,7,contr
+	ifetch 2,contr		//offset
+	istore 2,contw
+	branch memcpy_fast
+
+
+
+le_parse_att_execute_write_request:
+
+le_send_att_execute_write_response:
+	force 1,rega
+	call le_fifo_malloc_tx_l2cap_gatt
+	setarg ATTOP_EXECUTE_WRITE_RESPONSE
+	istore 1,contw
+	rtn
+
+le_parse_handle_value_confirmation:
+	fetch 1,mem_le_l2cap_att_states
+	set0 BLE_L2CAP_RECV_CONFIRMATION_PACKET,pdata
+	store 1,mem_le_l2cap_att_states
+	rtn
+
+le_parse_att_write_command:
+	copy contr,rega
+	fetch 2,mem_le_l2cap_size
+	add pdata,-3,regb
+	branch le_writeatt_cb
+
+
+
+//rga:len temp:handle;rgea,regb,regc already used
+le_att_malloc_tx_notify:
+	copy temp,regc
+	increase 3,rega
+	call le_fifo_malloc_tx_l2cap_gatt
+	increase -3,rega
+	setarg ATTOP_HANDLE_VALUE_NOTIFICATION
+	istore 1,contw
+	copy regc,temp
+	istoret 2,contw
+	rtn
+
+//rga:len temp:handle;rgea,regb,regc already used
+le_att_malloc_tx_indication:
+	fetch 1,mem_le_l2cap_att_states
+	set1 BLE_L2CAP_SEND_INDICATION_PACKET,pdata
+	store 1,mem_le_l2cap_att_states
+	copy temp,regc
+	increase 3,rega
+	call le_fifo_malloc_tx_l2cap_gatt
+	increase -3,rega
+	setarg ATTOP_HANDLE_VALUE_INDICATION
+	istore 1,contw
+	copy regc,temp
+	istoret 2,contw
+	rtn
+
+
+///////////////////////////ATT common function////////////////////////////////////
+
+le_send_att_error_response_notfound:	
+	jam ATT_ERR_ATTRIBUTE_NOT_FOUND,mem_le_err_code
+le_send_att_error_response:	
+	force 5,rega
+	call le_fifo_malloc_tx_l2cap_gatt
+	setarg ATTOP_ERROR_RESPONSE
+	istore 1,contw
+	fetch 1,mem_le_att_opcode
+	istore 1,contw
+	fetch 2,mem_le_att_handle
+	istore 2,contw
+	fetch 1,mem_le_err_code
+	istore 1,contw
+	rtn
+
+
+le_fifo_malloc_tx_l2cap_gatt:
+	force LE_L2CAP_CID_ATT,regb
+	branch le_fifo_malloc_tx_l2cap
+
+
+le_att_next_handle:
+	fetcht 2,mem_temp
+	increase 1,temp
+	storet 2,mem_temp
+	rtn
+
+le_att_check_handle_end:
+	fetcht 2,mem_temp
+	fetch 2,mem_le_search_handle_end
+	isub temp,null
+	rtn
+
+
+le_att_same_type:
+	fetcht 1,mem_le_search_att_type_length
+	arg mem_le_search_att_type,rega
+le_att_check_same_common:
+	fetch 1,mem_le_cur_uuid_length
+	copy pdata,loopcnt
+	isub temp,null
+	nrtn zero
+	arg mem_le_cur_uuid ,regb
+	branch string_compare
+
+le_att_same_uuid:
+	fetcht 1,mem_le_search_uuid_length
+	arg mem_le_search_uuid,rega
+	branch le_att_check_same_common
+
+
+le_store_att_record:
+	fetch 1,mem_le_curr_att_len
+	store 1, mem_tmp_buffer
+	copy pdata,loopcnt
+	call get_contr
+	branch memcpy_fast
+
+
+le_write_att_record:
+	call get_contw
+	fetch 2,mem_le_cur_handle_start
+	istore 2,contw
+	fetch 2,mem_le_cur_handle_end
+	istore 2,contw
+le_write_att_record_common:
+	fetch 1,mem_tmp_buffer
+	copy pdata,loopcnt
+	call memcpy_fast
+	branch store_contw
+
+
+
+le_send_auto_len_by_mem:
+	call get_contw
+	call le_fifo_get_last_att_ptr
+	copy contw,pdata
+	isub contr,rega
+	call le_fifo_get_last_l2cap_ptr
+	copy rega,pdata
+	istore 2,contr
+	increase 4,rega
+	call le_fifo_get_last_tx_ptr
+	copy rega,pdata
+	istore 1,contr
+	rtn
+
+
+le_get_search_handle_start_end_common:
+	rshift8 pdata,pdata
+	store 2,mem_le_search_handle_start
+	ifetch 2,contr
+	store 2,mem_le_search_handle_end
+	rtn
+
+le_get_search_max_mtu_data:
+	fetch 2,mem_le_remote_mtu
+	increase -2,pdata
+	//-2原因
+	//uint8_t attribute opcode
+	//uint8_t length
+	fetcht 2,mem_le_local_mtu
+	increase -2,temp
+	call not_greater_than
+	arg 240,temp
+	call not_greater_than
+	//pdata is max mtu size
+	rtn
+
+le_get_search_att_type:
+	call store_contr
+	arg mem_le_search_att_type_length,contw
+le_get_search_common:	
+	fetch 2,mem_le_l2cap_size
+	increase -5,pdata
+le_get_search_common2:		
+	istore 1,contw
+	copy pdata,loopcnt
+	call get_contr
+	branch memcpy_fast	
+
+
+
+le_parse_writing_attribute_start:
+	fetch 2,mem_le_rxbuf_data_att_cid//CID
+	rtnne LE_L2CAP_CID_ATT
+	fetch 1,mem_le_l2cap_att_states
+	set1 BLE_L2CAP_DEAL_WITH_CONTINUE_PACKET,pdata
+	store 1,mem_le_l2cap_att_states
+	fetch 3,mem_le_rxbuf_data_att_opcode
+	store 3,mem_le_att_opcode
+	set1 mark_old_packet,mark
+	beq ATTOP_WRITE_REQUEST,le_parse_attribute_write_request
+	beq ATTOP_WRITE_COMMAND,le_parse_attribute_write_command
+	beq ATTOP_EXECUTE_WRITE_REQUEST,le_parse_att_execute_write_request
+	beq ATTOP_EXCHANGE_MTU_REQUEST,le_parse_att_exchange_mtu_request
+	beq ATTOP_HANDLE_VALUE_CONFIRMATION,le_parse_handle_value_confirmation
+	set0 mark_old_packet,mark
+le_clear_l2cap_att_states_deal_with_contiune_packet:
+	fetch 1,mem_le_l2cap_att_states
+	set0 BLE_L2CAP_DEAL_WITH_CONTINUE_PACKET,pdata
+	store 1,mem_le_l2cap_att_states
+	rtn
+
+le_parse_writing_attribute_continue:
+	fetch 1,mem_le_l2cap_att_states
+	rtnbit0 BLE_L2CAP_DEAL_WITH_CONTINUE_PACKET
+	set1 mark_old_packet,mark
+	call le_parse_l2cap_continue_common
+	call le_parse_attribute_check_complete_packet
+	call le_clear_l2cap_att_states_deal_with_contiune_packet,user
+	fetch 1,mem_le_att_opcode
+	beq ATTOP_WRITE_REQUEST,le_send_att_write_response_check_auth
+	rtn
+
+
+le_parse_attribute_write_request:
+	call le_parse_attribute_write_command
+	branch le_send_attribute_write_response_check_auth
+
+le_send_attribute_write_response_check_auth:
+	call le_parse_attribute_check_complete_packet
+	nrtn user
+	branch le_send_att_write_response_check_auth
+
+
+le_parse_attribute_write_command:
+	call le_parse_attribute_check_complete_packet_init
+	arg mem_le_rxbuf_data_att_write_payload,rega
+	branch le_writeatt_cb
+
+
+le_parse_attribute_check_complete_packet_init:
+	fetch 1,mem_le_rxbuf_data_att_write_length
+	add pdata,-7,regb
+	increase -4,pdata
+	store 2,mem_le_packet_len_recved	//payload length
+	fetcht 2,mem_le_rxbuf_data_att_write_l2cap_length	//l2cap length
+	storet 2,mem_le_l2cap_size
+	rtn
+
+
+le_parse_l2cap_continue_common:
+	fetchr regb,1,mem_le_rxbuf_data_continue_length
+	fetch 2,mem_le_packet_len_recved
+	iadd regb,temp
+	storet 2,mem_le_packet_len_recved
+	arg mem_le_rxbuf_data_continue_payload,rega
+	branch le_writeatt_cb
+
+
+//enable user,recevie complete packet
+le_parse_attribute_check_complete_packet:
+	call disable_user
+	fetch 2,mem_le_packet_len_recved
+	fetcht 2,mem_le_l2cap_size
+	isub temp,null
+	nrtn zero
+	branch enable_user
+
Index: program/ble_protocol_stack/le_l2cap_att_wechat.prog
===================================================================
--- /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/program/ble_protocol_stack/le_l2cap_att_wechat.prog	(nonexistent)
+++ /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/program/ble_protocol_stack/le_l2cap_att_wechat.prog	(working copy)
@@ -0,0 +1,273 @@
+
+
+/*
+	function name:le_l2cap_att_receive_data_check_wechat_air_sync_protocol
+	依据微信蓝牙外设协议1.0.4
+	输入:
+		rega is le rx data address
+		regb is le rx data length
+		mem_le_att_handle is write handle
+	输出:
+		user enable 是微信协议
+		disable不是微信协议
+*/
+le_l2cap_att_receive_data_check_wechat_air_sync_protocol:
+	call enable_user
+	fetch 2,mem_le_wechat_air_sync_ptr
+	rtn blank
+	arg le_l2cap_att_receive_data_deal_wechat_air_sync_protocol,regc
+	branch wechat_air_sync_calc_function
+le_l2cap_att_receive_data_deal_wechat_air_sync_protocol:
+	fetcht 2,mem_le_att_handle
+	fetch 1,mem_wechat_indication_handle
+	pincrease 1
+	isub temp,null
+	branch wechat_air_sync_enable_indicate_chara,zero
+	fetch 1,mem_wechat_write_handle
+	isub temp,null
+	branch wechat_air_sync_receive_wechat_data,zero
+	branch disable_user
+	
+wechat_air_sync_enable_indicate_chara:
+	call wechat_air_sync_reset_nSeq
+wechat_air_sync_send_request_auth:
+	call wechat_air_sync_init_authreq_base_request
+	arg mem_wechat_authreq_base_request,rega
+	arg ECI_REQ_AUTH_MESSAGE_LENGTH,loopcnt
+	arg ECI_REQ_AUTH,temp
+	branch wechat_air_sync_send_message
+
+wechat_air_sync_receive_wechat_data:
+	fetch 1,mem_wechat_receive_push_data
+	beq 1,wechat_air_sync_receive_wechat_data_contiune_packet
+	ifetch 2,rega
+	arg WECHAT_RX_HEAD,temp
+	isub temp,null
+	branch wechat_air_sync_receive_wechat_data_head_packet,zero
+wechat_air_sync_receive_wechat_data_contiune_packet:
+	fetch 2,mem_wechat_rx_len
+	iadd regb,pdata
+	store 2,mem_wechat_rx_len	
+	fetch 2,mem_wechat_rx_address
+	copy pdata,contw
+	copy rega,contr
+	copy regb,loopcnt
+	call memcpy_fast
+	copy contw,pdata
+	store 2,mem_wechat_rx_address
+	branch wechat_air_sync_receive_wechat_packet_complete
+
+
+wechat_air_sync_receive_wechat_data_head_packet:
+	fetch 2,mem_wechat_rx_buffer_ptr
+	copy pdata,contw
+	copy rega,contr
+	copy regb,loopcnt
+	call memcpy_fast
+	copy contw,pdata
+	store 2,mem_wechat_rx_address
+	storer regb,2,mem_wechat_rx_len
+	fetchr regc,2,mem_wechat_rx_buffer_ptr
+	add regc,WECHAT_PROTOCOL_MESSAGE_N_CMD_ID,contr
+	ifetch 2,contr
+	arg ECI_PUSH_RECEIVE_DATA,temp
+	isub temp,null
+	call wechat_air_sync_receive_wechat_push_data,zero
+	branch wechat_air_sync_receive_wechat_packet_complete
+
+wechat_air_sync_receive_wechat_push_data:
+	jam 1,mem_wechat_receive_push_data
+	rtn
+
+wechat_air_sync_receive_wechat_packet_complete:
+	fetch 2,mem_wechat_rx_len
+	fetchr regc,2,mem_wechat_rx_buffer_ptr
+	add regc,WECHAT_PROTOCOL_MESSAGE_N_LENGTH,contr
+	ifetcht 2,contr
+	byteswap temp,temp
+	isub temp,null
+	nrtn positive
+	jam 0,mem_wechat_receive_push_data
+	fetchr regc,2,mem_wechat_rx_buffer_ptr
+	add regc,WECHAT_PROTOCOL_MESSAGE_N_CMD_ID,contr
+	ifetch 2,contr
+	arg ECI_RESPONSE_AUTH,temp
+	isub temp,null
+	branch wechat_air_sync_receive_wechat_data_auth_respone,zero
+	arg ECI_PUSH_RECEIVE_DATA,temp
+	isub temp,null
+	branch wechat_air_sync_receive_wechat_data_push_receive_data,zero
+	rtn
+
+wechat_air_sync_receive_wechat_data_auth_respone:
+wechat_air_sync_wechat_send_request_init:
+	call wechat_air_sync_init_authreq_base_request
+	arg mem_wechat_initreq_base_request,rega
+	arg ECI_REQ_INIT_MESSAGE_LENGTH,loopcnt
+	arg ECI_REQ_INIT,temp
+	branch wechat_air_sync_send_message
+
+
+//接收数据的回调，可以使用wechat_air_sync_check_push_data_struct解析函数
+wechat_air_sync_receive_wechat_data_push_receive_data:
+
+	fetch 2,mem_wechat_rx_push_data_cb
+	branch callback_func
+
+/*
+数据解析默认函数，不能保证全部数据格式都能解析
+输出:disable user is no data
+	loopcnt is data length
+	contr is data ptr
+*/
+wechat_air_sync_check_push_data_struct:
+	call disable_user
+	fetchr regc,2,mem_wechat_rx_buffer_ptr
+	add regc,WECHAT_PROTOCOL_MESSAGE_PAYLOAD,contr
+	ifetch 2,contr
+	rtnne TAG_RecvDataPush_BasePush
+	ifetch 1,contr
+	rtnne TAG_RecvDataPush_Data
+	ifetch 1,contr
+	rtn blank
+	copy pdata,loopcnt
+	copy contr,regc
+	branch enable_user
+
+
+wechat_air_sync_send_message:
+	call enable_user2
+wechat_air_sync_send_message_without_payload:
+	fetch 2,mem_wechat_tx_buffer_ptr
+	store 2,mem_wechat_tx_address
+	copy pdata,contw
+	setarg WECHAT_HEAD_MAGIC_NUMBER
+	istore 1,contw			//bMagicNumber
+	setarg WECAHT_HEAD_VERSION
+	istore 1,contw			//bVer
+	add loopcnt,8,regd	//nLength
+	byteswap regd,pdata
+	istore 2,contw			//nLength
+	istoret 2,contw			//nCmdId
+	fetcht 2,mem_wechat_tx_nSeq
+	istoret 2,contw			//Tx nSeq
+	copy contw,regc
+	copy rega,contr
+	call memcpy_fast,user2
+	storer regd,2,mem_wechat_tx_len
+	branch wechat_air_sync_update_nSeq
+	
+wechat_air_sync_update_nSeq:
+	byteswap temp,pdata
+	pincrease 1
+	byteswap pdata,pdata
+	nbranch wechat_air_sync_store_nSeq,blank
+wechat_air_sync_reset_nSeq:
+	setarg 0x0100
+wechat_air_sync_store_nSeq:
+	store 2,mem_wechat_tx_nSeq
+	rtn
+
+
+wechat_air_sync_init_authreq_base_request:
+	setarg 0x000a
+	store 2,mem_wechat_authreq_base_request
+	setarg 0x048084
+	lshift8 pdata,pdata
+	or pdata,0x18,pdata
+	store 4,mem_wechat_authreq_protocol_version
+	setarg 0x0120
+	store 2,mem_wechat_authreq_auth_protocol
+	setarg 0x0228
+	store 2,mem_wechat_authreq_eam_mac_no_encrypt
+	setarg 0x063a
+	store 2,mem_wechat_authreq_mac_address
+	fetch 6,mem_le_lap
+	call inverse_data_6Byte
+	store 6,mem_wechat_authreq_device_address
+	rtn
+
+wechat_air_sync_ble_transmit_wechat_message:
+	fetch 1,mem_le_l2cap_att_states
+	rtnbit1 BLE_L2CAP_RECV_CONFIRMATION_PACKET
+	call le_fifo_check_nearly_full
+	nrtn blank				//no fifo
+	fetch 2,mem_le_wechat_air_sync_ptr
+	rtn blank
+	arg wechat_air_sync_ble_send_wechat_message,regc
+	branch wechat_air_sync_calc_function
+
+wechat_air_sync_ble_send_wechat_message:
+	call module_get_le_remote_mtu
+	fetch 2,mem_wechat_tx_len
+	rtn blank
+	add temp,-3,pdata		//sub handle and opcode
+	fetcht 2,mem_wechat_tx_len
+	call not_greater_than
+	copy pdata,rega
+	copy temp,pdata
+	isub rega,pdata
+	store 2,mem_wechat_tx_len
+	fetcht 1,mem_wechat_indication_handle
+	call le_att_malloc_tx_indication
+	fetch 2,mem_wechat_tx_address
+	copy pdata,contr
+	copy rega,loopcnt
+	call memcpy_fast
+	copy contr,pdata
+	store 2,mem_wechat_tx_address
+	rtn
+
+
+wechat_air_sync_calc_function:
+	call wechat_air_sync_load_in_local_buffer
+	copy regc,pdata
+	call callback_func
+	branch wechat_air_sync_store_in_global_buffer
+
+
+wechat_air_sync_load_in_local_buffer:
+	fetch 2,mem_le_wechat_air_sync_ptr
+	rtn blank
+	copy pdata,contr
+	arg WECHAT_AIR_SYNC_STRUCT_SIZE,loopcnt
+	arg mem_wechat_indication_handle,contw
+	branch memcpy_fast
+
+wechat_air_sync_store_in_global_buffer:
+	fetch 2,mem_le_wechat_air_sync_ptr
+	rtn blank
+	copy pdata,contw
+	arg WECHAT_AIR_SYNC_STRUCT_SIZE,loopcnt
+	arg mem_wechat_indication_handle,contr
+	branch memcpy_fast
+
+
+//input:rega is data ptr
+//regb is data length
+wechat_air_sync_send_wechat_packet:
+	call enable_user
+	fetch 2,mem_le_wechat_air_sync_ptr
+	rtn blank
+	arg wechat_air_sync_send_wechat_packet_cb,regc
+	branch wechat_air_sync_calc_function
+
+wechat_air_sync_send_wechat_packet_cb:
+	fetch 2,mem_wechat_tx_len
+	nrtn blank
+	call disable_user
+	call disable_user2
+	add regb,6,loopcnt
+	arg ECI_REQ_SEND_DATA,temp
+	call wechat_air_sync_send_message_without_payload
+	copy regc,contw
+	setarg 0x12000a
+	istore 3,contw
+	istorer regb,1,contw
+	copy rega,contr
+	copy regb,loopcnt
+	call memcpy_fast
+	setarg 0x0018
+	istore 2,contw
+	rtn
+
Index: program/ble_protocol_stack/le_l2cap_signalling.prog
===================================================================
--- /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/program/ble_protocol_stack/le_l2cap_signalling.prog	(nonexistent)
+++ /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/program/ble_protocol_stack/le_l2cap_signalling.prog	(working copy)
@@ -0,0 +1,54 @@
+
+
+le_parse_signaling:
+	ifetch 1,contr
+	ifetcht 1,contr //id
+	ifetcht 2,contr //length
+	beq L2CAP_CONNECTION_PARAMETER_UPDATE_RESPONSE,le_l2cap_parse_conn_parameter_update_rsp
+	rtn
+le_l2cap_parse_conn_parameter_update_rsp:
+	ifetch 2,contr	//result
+	store 2,mem_le_l2cap_signaling_conn_param_update_rsp_result
+	jam BT_EVT_LE_PARSE_CONN_PAPA_UPDATE_RSP,mem_fifo_temp
+	branch ui_ipc_send_event
+
+
+//mem_le_interval_min:the ptr that connection parameter,
+//include 	ConnIntervalMin,ConnIntervalMax,
+//		ConnSlaveLatency,ConnSupervisionTimeout
+le_l2cap_tx_update_req:
+	arg 0x0c,rega
+	arg L2CAP_CONNECTION_PARAMETER_UPDATE_REQUEST,regc
+	call le_fifo_malloc_tx_l2cap_signaling
+	setarg 0x08
+	istore 2,contw
+	fetch 8,mem_le_interval_min
+	istore 8,contw
+	rtn
+
+
+//rega:len regc:signaling opcode
+le_fifo_malloc_tx_l2cap_signaling:
+	call le_l2cap_update_signaling_identifier
+	arg LE_L2CAP_CID_SIGNAL,regb
+	call le_fifo_malloc_tx_l2cap
+	copy regc,pdata
+	istore 1,contw
+	fetch 1,mem_le_signaling_identifier
+	istore 1,contw
+	rtn
+
+
+le_l2cap_update_signaling_identifier:
+	fetch 1,mem_le_signaling_identifier
+	//beq 0xff,le_l2cap_signaling_identifier_set_1
+	pincrease 1
+	store 1,mem_le_signaling_identifier
+	rtnne 0
+	
+le_l2cap_reset_signaling_identifier:
+	jam 1,mem_le_signaling_identifier
+	rtn
+
+
+
Index: program/ble_protocol_stack/le_l2cap_smp.prog
===================================================================
--- /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/program/ble_protocol_stack/le_l2cap_smp.prog	(nonexistent)
+++ /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/program/ble_protocol_stack/le_l2cap_smp.prog	(working copy)
@@ -0,0 +1,611 @@
+
+le_pairing_mode_init:
+	fetch  1,mem_le_pairing_mode
+	beq LE_PAIRING_MODE_NONE, le_set_no_pairing
+	beq LE_PAIRING_MODE_LAGACY_JUSTWORK,le_set_pairing_mode_lagacy_just_work
+	beq LE_PAIRING_MODE_LAGACY_PASSKEY,le_set_pairing_mode_lagacy_passkey
+ifdef SECURE_CONNECTION
+	beq LE_PAIRING_MODE_SECURE_CONNECT_JUSTWORK,le_set_pairing_mode_secure_justwork
+	beq LE_PAIRING_MODE_SECURE_CONNECT_NUMERIC,le_set_pairing_mode_secure_numeric
+	beq LE_PAIRING_MODE_SECURE_CONNECT_PASSKEY,le_set_pairing_mode_secure_passkey
+endif
+	rtn
+
+ifdef SECURE_CONNECTION	
+le_set_pairing_mode_secure_justwork:
+	jam FLAG_LE_BONDING_MITM_SECURE,mem_le_pres_auth
+	branch le_set_noinputnooutput
+le_set_pairing_mode_secure_numeric:
+	jam FLAG_LE_BONDING_MITM_SECURE,mem_le_pres_auth
+	jam FLAG_IOCAP_DISPLAYYESNO,mem_le_pres_iocap
+	rtn
+le_set_pairing_mode_secure_passkey:	
+	jam FLAG_LE_BONDING_MITM_SECURE,mem_le_pres_auth
+	branch le_set_displayonly
+endif
+le_set_no_pairing:
+	jam FLAG_LE_NO_BONDING_NO_MITM,mem_le_pres_auth
+le_set_noinputnooutput:	
+	jam FLAG_IOCAP_NOINPUTNOOUTPUT,mem_le_pres_iocap
+	rtn
+le_set_pairing_mode_lagacy_just_work:
+	jam FLAG_LE_BONDING_MITM,mem_le_pres_auth
+	branch le_set_noinputnooutput
+le_set_pairing_mode_lagacy_passkey:
+	jam FLAG_LE_BONDING_MITM,mem_le_pres_auth
+le_set_displayonly:	
+	jam FLAG_IOCAP_DISPLAYONLY,mem_le_pres_iocap
+	rtn
+
+	
+le_secure_connection_enable:
+	fetch 1,mem_secure_connections_enable
+	set1 SECURE_CONNECTIONS_LE_BIT,pdata
+	store 1,mem_secure_connections_enable
+	rtn
+	
+le_secure_connection_disable:
+	fetch 1,mem_secure_connections_enable
+	set0 SECURE_CONNECTIONS_LE_BIT,pdata
+	store 1,mem_secure_connections_enable
+	rtn
+
+le_parse_smp:
+	ifetch 1,contr
+	beq SMP_PAIRING_REQUEST,le_parse_smp_pairing_request
+//	beq SMP_PAIRING_RESPONSE,le_parse_smp_pairing_response
+	beq SMP_PAIRING_CONFIRM,le_parse_smp_pairing_confirm
+	beq SMP_PAIRING_RANDOM,le_parse_smp_pairing_random
+	beq SMP_PAIRING_FAILED,le_parse_smp_pairing_failed
+//	beq SMP_ENCRYPTION_INFORMATION,le_parse_smp_encryption_information
+	beq SMP_MASTER_IDENTIFICATION,le_parse_smp_master_identification
+	beq SMP_IDENTITY_INFORMATION,le_parse_smp_identity_information
+	beq SMP_IDENTITY_ADDRESS_INFORMATION,le_parse_smp_identity_address_information
+	beq SMP_SIGNING_INFORMATION,le_parse_smp_signing_information
+	beq SMP_SECURITY_REQUEST,le_parse_smp_security_request
+ifdef SECURE_CONNECTION
+	beq SMP_PAIRING_PUBLIC_KEY,le_parse_smp_public_key
+	beq SMP_PAIRING_DHKEY_CHECK,le_parse_smp_dhkey_check
+endif
+	rtn
+
+
+
+le_send_smp_security_request:
+	force 2,rega
+	call le_fifo_malloc_tx_l2cap_smp
+	setarg SMP_SECURITY_REQUEST
+	istore 1,contw
+	fetch 1,mem_le_pres_auth
+	istore 1,contw
+	rtn
+		
+le_parse_smp_pairing_request:
+	store 1,mem_le_preq
+	ifetch 6,contr
+	istore 6,contw
+	fetch 1,mem_le_pairing_mode
+	beq  LE_PAIRING_MODE_NONE,le_smp_pairing_fail_reason_not_support_pairing
+	call le_send_smp_pairing_response
+	fetch 1,mem_sc_only_mode
+	branch le_parse_smp_pairing_request2, blank
+	fetch 1,mem_le_preq_auth
+	bbit0  LE_AUTH_SECURE_CONNECTION_PAIRING_BIT,app_ble_disconnect
+	fetch 1,mem_le_pairing_mode
+	bbit0 LE_PAIRING_MODE_SECURE_CONNECT_BIT,app_ble_disconnect
+le_parse_smp_pairing_request2:	
+	jam FLAG_LE_PAIRING_RCV_PAIRING_REQ,mem_le_pairing_state
+	fetch 1,mem_le_preq_iocap
+	beq  FLAG_IOCAP_DISPlAYONLY,le_set_tk_0
+	beq  FLAG_IOCAP_DISPLAYYESNO,le_set_tk_0
+	beq  FLAG_IOCAP_NOINPUTNOOUTPUT,le_set_tk_0
+	fetch 1,mem_le_pairing_mode	
+	beq LE_PAIRING_MODE_LAGACY_PASSKEY,le_parse_smp_pairing_req_passkey
+	rtneq LE_PAIRING_MODE_SECURE_CONNECT_PASSKEY
+le_set_tk_0:
+	arg 0,pdata
+	store 4,mem_le_tk
+	rtn
+
+le_parse_smp_pairing_req_passkey:
+	fetch 1,mem_le_configuration
+	bbit1 BIT_BLE_PASSKEY_FIXED_KEY,le_parse_smp_pairing_req_fixed_passkey
+le_genernate_tk:
+	arg mem_le_tk,rega
+	copy rega,contw
+	arg 3,loopcnt
+	call generate_random_loop
+	fetch 2,mem_le_tk + 2
+	and_into 0x7,pdata
+	store 2,mem_le_tk + 2
+le_parse_smp_pairing_req_fixed_passkey:
+	jam BT_EVT_LE_TK_GENERATE,mem_fifo_temp
+	branch ui_ipc_send_event
+
+
+
+le_send_smp_pairing_response:
+	force 7,rega
+	call le_fifo_malloc_tx_l2cap_smp
+	fetch 7,mem_le_pres
+	istore 7,contw
+	rtn
+		
+
+le_parse_smp_pairing_confirm:
+ifdef SECURE_CONNECTION
+	jam FLAG_LE_PAIRING_RECEIVE_PAIRING_CONFIRM,mem_le_pairing_state
+	arg mem_le_rconfirm,contw
+	call memcpy16
+	fetch 1,mem_le_pairing_mode
+	beq LE_PAIRING_MODE_SECURE_CONNECT_PASSKEY,le_parse_smp_pairing_confirm_secure_passkey
+	beq LE_PAIRING_MODE_LAGACY_PASSKEY_RES_INPUT,le_parse_smp_pairing_confirm_passkey_res_input
+	beq LE_PAIRING_MODE_SECURE_CONNECT_PASSKEY_RES_INPUT,le_parse_smp_pairing_confirm_sc_passkey_res_input
+endif
+	branch le_send_smp_pairing_confirm
+ifdef SECURE_CONNECTION
+le_parse_smp_pairing_confirm_secure_passkey:
+	jam LE_SP_FLAG_COMMIT_256,mem_le_secure_connect_flag
+	jam LE_SC_STAT_PASSKEY_WAIT_CONFIRM,mem_le_secure_connect_state	
+	rtn
+endif
+
+
+le_parse_smp_pairing_confirm_passkey_res_input:
+	jam BT_EVT_LE_GET_PASSKEY,mem_fifo_temp
+	branch ui_ipc_send_event
+
+
+le_parse_smp_pairing_confirm_sc_passkey_res_input:
+	fetch 4,mem_le_tk
+	branch le_parse_smp_pairing_confirm_passkey_res_input,blank
+	branch le_parse_smp_pairing_confirm_secure_passkey
+
+
+le_send_smp_pairing_confirm:
+	jam FLAG_LE_PAIRING_SEND_PAIRING_CONFIRM,mem_le_pairing_state
+ifdef SECURE_CONNECTION
+	fetch 1,mem_le_pairing_mode
+	bbit1 LE_PAIRING_MODE_SECURE_CONNECT_BIT,le_send_smp_pairing_confirm_sc
+endif
+	call generate_confirm
+	force 17,rega
+	call le_fifo_malloc_tx_l2cap_smp
+	setarg SMP_PAIRING_CONFIRM
+	istore 1,contw
+	branch  store_aes_result
+
+	
+ifdef SECURE_CONNECTION
+le_send_smp_pairing_confirm_sc:
+	arg mem_le_srand,contw	
+	call generate_random
+	call function_f4_cb
+	force 17,rega
+	call le_fifo_malloc_tx_l2cap_smp
+	setarg SMP_PAIRING_CONFIRM
+	istore 1,contw
+	branch  load_inverse_result
+
+endif
+
+	
+le_parse_smp_pairing_random:	
+ifdef SECURE_CONNECTION
+	copy contr,rega
+	fetch 1,mem_le_pairing_mode
+	bbit1 LE_PAIRING_MODE_SECURE_CONNECT_BIT,le_parse_smp_pairing_random_sc
+	copy rega,contr
+endif
+	call authenticate_rconfirm
+	branch le_parse_smp_pairing_random_success,zero
+le_send_pairing_confirm_value_failed:
+	jam PAIRING_FAILED_CONFIRM_VALUE_FAILED,mem_le_ll_pairing_fail_reason
+le_send_pairing_failed:
+	force 2,rega
+	call le_fifo_malloc_tx_l2cap_smp
+	setarg SMP_PAIRING_FAILED
+	istore 1,contw
+	fetch 1,mem_le_ll_pairing_fail_reason
+	istore 1,contw	
+le_parse_smp_pairing_failed:
+	force smp_pairing_timer,queue
+	call timer_stop
+	jam FLAG_LE_PAIRING_NULL,mem_le_pairing_state
+	jam BT_EVT_LE_PAIRING_FAIL,mem_fifo_temp
+	branch ui_ipc_send_event
+
+le_smp_pairing_fail_reason_not_support_pairing:
+	jam PAIRING_FAILED_PAIRING_NOT_SUPPORTED,mem_le_ll_pairing_fail_reason
+	branch le_send_pairing_failed
+	
+	
+ifdef SECURE_CONNECTION	
+le_parse_smp_pairing_random_sc:
+	arg mem_le_mrand,contw
+	copy rega,contr
+	call memcpy16	
+	fetch 1,mem_le_pairing_mode
+	beq LE_PAIRING_MODE_SECURE_CONNECT_PASSKEY,le_parse_smp_pairing_random_sc_passkey
+	beq LE_PAIRING_MODE_SECURE_CONNECT_PASSKEY_RES_INPUT,le_parse_smp_pairing_random_sc_passkey
+	call function_g2
+	call le_send_smp_pairing_random
+	fetch 1,mem_le_pairing_mode
+	rtnne LE_PAIRING_MODE_SECURE_CONNECT_NUMERIC
+	jam BT_EVT_LE_GKEY_GENERATE,mem_fifo_temp
+	branch ui_ipc_send_event	
+	
+le_parse_smp_pairing_random_sc_passkey:
+	call function_f4_ca
+	arg mem_AES_CMAC_temp,contw
+	call load_inverse_result	
+	arg mem_AES_CMAC_temp,rega
+	arg mem_le_rconfirm ,regb
+	arg 16,loopcnt
+	call string_compare
+	nbranch le_send_pairing_confirm_value_failed,zero
+	branch le_send_smp_pairing_random
+endif
+	
+le_parse_smp_pairing_random_success:
+	call generate_stk
+	jam BT_EVT_LE_PAIRING_SUCCESS,mem_fifo_temp
+	call ui_ipc_send_event
+	jam 1,mem_ltk_exists
+	jam FLAG_LE_PAIRING_AFTER_AUTH,mem_le_pairing_state
+	
+le_send_smp_pairing_random:
+	force 17,rega
+	call le_fifo_malloc_tx_l2cap_smp
+	setarg SMP_PAIRING_RANDOM
+	istore 1,contw
+	arg mem_le_srand,contr
+	branch memcpy16
+
+le_send_smp_encryption_information:
+	force 17,rega
+	call le_fifo_malloc_tx_l2cap_smp
+	setarg SMP_ENCRYPTION_INFORMATION
+	istore 1,contw
+	fetch 1,mem_le_configuration
+	bbit1 BIT_BLE_PAIRING_FIXED_LTK,le_send_fixed_ltk
+	arg mem_le_ltk,contr
+	branch memcpy16
+
+le_send_fixed_ltk:
+	arg mem_le_fixed_ltk,contr
+	branch memcpy16
+
+
+le_send_smp_master_identification:
+	arg mem_le_ediv,contw
+	force 10,loopcnt
+	call generate_random_loop
+	force 11,rega
+	call le_fifo_malloc_tx_l2cap_smp
+	setarg SMP_MASTER_IDENTIFICATION
+	istore 1,contw
+	fetch 2,mem_le_ediv
+	istore 2,contw
+	fetch 8,mem_le_rand
+	istore 8,contw
+	rtn
+
+le_send_smp_identity_information:
+	force 17,rega
+	call le_fifo_malloc_tx_l2cap_smp
+	setarg SMP_IDENTITY_INFORMATION
+	istore 1,contw
+	setarg 0
+	istore 8,contw
+	istore 8,contw
+	rtn
+	
+
+le_send_smp_identity_address_information:
+	force 8,rega
+	call le_fifo_malloc_tx_l2cap_smp
+	setarg SMP_IDENTITY_ADDRESS_INFORMATION
+	istore 1,contw
+	fetch 1,mem_le_conn_own_addr_type
+	istore 1,contw
+	fetch 6,mem_le_lap	
+	istore 6,contw
+	rtn	
+
+
+le_send_pairing_fail_unspecified_reason:
+	jam PAIRING_FAILED_UNSPECIFIED_REASON,mem_le_ll_pairing_fail_reason
+	branch le_send_pairing_failed
+
+le_check_init_key_distribution:
+	fetch 1,mem_le_pres_init_key_distribution
+	fetcht 1,mem_le_pres_init_key_distribution
+	iand temp,pdata
+	rtn	
+
+le_parse_smp_identity_information:
+	arg mem_le_irk,contw
+	call memcpy16
+	call le_check_init_key_distribution
+	isolate0 LE_INITATOR_IRK_BIT,pdata
+	branch le_send_pairing_fail_unspecified_reason,true
+	fetch 1,mem_device_option
+	rtnne dvc_op_module
+	call le_check_master_addr_type
+	nrtn user
+	branch app_ble_store_reconn_info
+
+//output:user is enable ,random addr type
+le_check_master_addr_type:
+	call disable_user
+	fetch 1,mem_le_conn_peer_addr_type
+	rtneq MASTER_PUBLIC_ADDR
+	fetch 1,mem_le_preq_init_key_distribution
+	rtnbit0 LE_INITATOR_IRK_BIT
+	branch enable_user
+
+le_parse_smp_identity_address_information:
+	call le_check_init_key_distribution
+	isolate0 LE_INITATOR_IRK_BIT,pdata
+	branch le_send_pairing_fail_unspecified_reason,true
+	rtn
+
+le_parse_smp_master_identification:
+le_parse_smp_signing_information:	
+le_parse_smp_security_request:
+	rtn
+	
+ifdef SECURE_CONNECTION
+le_parse_smp_public_key:
+	arg mem_le_pubkey_remote_x_256,contw	
+	call memcpy64
+	jam LE_SP_FLAG_COMMIT_256,mem_le_secure_connect_flag
+	jam LE_SC_STAT_RECEIVE_PUBLIC_KEY,mem_le_secure_connect_state
+	rtn
+
+le_parse_smp_dhkey_check:
+	arg mem_sp_confirm_remote,contw
+	call memcpy16	
+	jam LE_SC_STAT_RECEIVE_DHKEY,mem_le_secure_connect_state
+	jam LE_SP_FLAG_COMMIT_256,mem_le_secure_connect_flag
+	rtn	
+
+le_send_smp_pairing_public_key:
+	force 65,rega
+	call le_fifo_malloc_tx_l2cap_smp
+	setarg SMP_PAIRING_PUBLIC_KEY
+	istore 1,contw	
+	arg mem_sc_pubkey_local_x_256,contr
+	branch memcpy64
+	
+le_send_smp_pairing_dhkey_check:
+	call function_f6_eb	
+	force 17,rega
+	call le_fifo_malloc_tx_l2cap_smp
+	setarg SMP_PAIRING_DHKEY_CHECK
+	istore 1,contw
+	branch load_inverse_result
+	
+endif
+
+le_check_paring_time:
+	fetch 1,mem_le_pairing_state
+	rtneq FLAG_LE_PAIRING_END
+	arg FLAG_LE_PAIRING_RCV_PAIRING_REQ,temp
+	isub temp,null
+	nrtn positive
+	arg smp_pairing_timer,queue
+	call timer_check
+	nrtn blank
+	branch le_send_pairing_fail_unspecified_reason
+
+le_pairing_sm:
+	bpatchx patch3b_3,mem_patch3b
+	call le_fifo_check_nearly_full
+	nrtn blank	
+	fetch 1,mem_le_pairing_state
+	beq FLAG_LE_PAIRING_NULL,le_pairing_sm_null
+	beq FLAG_LE_PAIRING_START,le_pairing_sm_start
+	beq FLAG_LE_PAIRING_SEND_RECURITY_REQ,le_pairing_sm_send_sec_req
+	beq FLAG_LE_PAIRING_RCV_PAIRING_REQ,le_pairing_sm_rcv_pairing_req
+	beq FLAG_LE_PAIRING_AFTER_AUTH,le_pairing_sm_after_auth
+	beq FLAG_LE_PARING_SEND_ENC_INFORMATION,le_pairng_sm_send_enc_information
+	beq FLAG_LE_PARING_SEND_MASTER_IDENTIFICATION,le_pairng_sm_send_master_indentification
+	beq FLAG_LE_PARING_SEND_INDENTITY_INFORMATION,le_pairng_sm_send_indentity_information
+	rtn
+
+le_pairing_sm_null:
+le_pairing_sm_send_sec_req:
+	fetch 1,mem_le_enc_state
+	rtnne FLAG_LE_SEND_START_ENC_RSP
+	jam FLAG_LE_ENC_END,mem_le_enc_state
+	jam FLAG_LE_PAIRING_END,mem_le_pairing_state
+	jam BT_EVT_LE_RECONNECT_COMPLETE ,mem_fifo_temp
+	branch ui_ipc_send_event	
+	
+	
+le_pairing_sm_start:
+	jam FLAG_LE_PAIRING_SEND_RECURITY_REQ,mem_le_pairing_state
+	branch le_send_smp_security_request
+
+le_pairing_sm_rcv_pairing_req:
+	jam FLAG_LE_PAIRING_WAIT_STK_GENERATION,mem_le_pairing_state
+	setarg TIMER_SMP_PAIRING_TIMEOUT
+	arg smp_pairing_timer,queue
+	branch timer_init
+	
+le_pairing_sm_after_auth:
+	fetch 1,mem_le_enc_state
+	beq FLAG_LE_SEND_START_ENC_RSP,le_pairing_sm_after_auth_start_enc
+	rtn
+	
+le_pairing_sm_after_auth_start_enc:
+	fetch 1,mem_le_pairing_mode
+	bbit1 LE_PAIRING_MODE_SECURE_CONNECT_BIT,le_pairing_sm_after_auth_start_enc_sc
+
+	jam FLAG_LE_PARING_SEND_ENC_INFORMATION,mem_le_pairing_state
+	call le_send_smp_encryption_information
+le_pairing_sm_after_auth_start_enc_common:
+	jam BT_EVT_LE_ENC_INFO,mem_fifo_temp
+	call ui_ipc_send_event
+	fetch 1,mem_device_option
+	rtnne dvc_op_module
+	call le_check_master_addr_type
+	rtn user
+	branch app_ble_store_reconn_info
+
+le_pairing_sm_after_auth_start_enc_sc:
+	jam FLAG_LE_PARING_SEND_MASTER_IDENTIFICATION,mem_le_pairing_state
+	branch le_pairing_sm_after_auth_start_enc_common
+
+le_pairng_sm_send_enc_information:	
+	jam FLAG_LE_PARING_SEND_MASTER_IDENTIFICATION,mem_le_pairing_state
+	branch le_send_smp_master_identification
+
+le_pairng_sm_send_master_indentification:	
+	fetch 1,mem_le_preq_resp_key_distribution
+	fetcht 1,mem_le_pres_resp_key_distribution
+	iand temp,pdata
+	isolate0 LE_INITATOR_IRK_BIT,pdata
+	branch le_parse_start_enc_rsp_after_auth_end,true
+	jam FLAG_LE_PARING_SEND_INDENTITY_INFORMATION,mem_le_pairing_state
+	branch le_send_smp_identity_information
+
+le_pairng_sm_send_indentity_information:		
+	call le_send_smp_identity_address_information
+	branch le_parse_start_enc_rsp_after_auth_end
+
+
+le_parse_start_enc_rsp_after_auth_end:
+	force smp_pairing_timer,queue
+	call timer_stop
+	jam FLAG_LE_ENC_END,mem_le_enc_state
+	jam FLAG_LE_PAIRING_END,mem_le_pairing_state
+	jam BT_EVT_LE_PAIRING_COMPLETE ,mem_fifo_temp
+	branch ui_ipc_send_event	
+	
+
+ifdef SECURE_CONNECTION
+
+le_secure_connect_sm:
+	bpatchx patch3b_4,mem_patch3b
+	fetch 1,mem_le_pairing_mode
+	rtnbit0 LE_PAIRING_MODE_SECURE_CONNECT_BIT
+	fetch 1,mem_le_secure_connect_flag
+	rtnne LE_SP_FLAG_COMMIT_256
+	jam SP_FLAG_STANDBY,mem_le_secure_connect_flag
+	fetch 1,mem_le_secure_connect_state
+	beq  LE_SC_STAT_RECEIVE_PUBLIC_KEY,le_sc_sm_receive_public_key
+	beq LE_SC_STAT_WAIT_SEND_PUBLIC_KEY,le_sc_sm_wait_send_public_key
+	beq LE_SC_STAT_SEND_PUBLIC_KEY,le_sc_sm_send_public_key
+	beq LE_SC_STAT_RECEIVE_DHKEY,le_sc_sm_receive_dhkey
+	beq LE_SC_STAT_WAIT_CONFIRM_GKEY,le_sc_sm_wait_confirm_gkey
+	beq  LE_SC_STAT_PASSKEY_WAIT_CONFIRM,le_sc_sm_passkey_wait_confirm
+	rtn	
+
+le_sc_state_clear:
+	jam SP_FLAG_STANDBY,mem_le_secure_connect_flag
+	jam LE_SC_STAT_NULL,mem_le_secure_connect_state
+	jam FLAG_LE_SC_CONFRIM_NULL,mem_le_sc_confirm_gkey_flag
+	rtn
+	
+le_sc_sm_passkey_wait_confirm:
+	fetch 1,mem_authentication_passkey_times
+	copy pdata,queue
+	increase 1,pdata
+	store 1,mem_authentication_passkey_times
+	fetch 4,mem_le_tk
+	qisolate1 pdata
+	setarg 0x80
+	setflag true,0,pdata
+	store 1,mem_passkey_1bit
+	branch le_sc_sm_ready_send_pairing_confirm
+	
+le_sc_sm_wait_confirm_gkey:
+	fetch 1,mem_le_sc_confirm_gkey_flag
+	jam FLAG_LE_SC_CONFRIM_NULL,mem_le_sc_confirm_gkey_flag
+	beq FLAG_LE_SC_CONFRIM_GKEY_OK,le_sc_confirm_gkey_ok
+	jam LE_SP_FLAG_COMMIT_256,mem_le_secure_connect_flag
+	rtn
+	
+le_sc_confirm_gkey_ok:
+	jam BT_EVT_LE_PAIRING_SUCCESS,mem_fifo_temp
+	call ui_ipc_send_event	
+	jam FLAG_LE_PAIRING_AFTER_AUTH,mem_le_pairing_state
+	branch le_send_smp_pairing_dhkey_check
+
+le_sc_sm_receive_dhkey:
+	fetch 1,mem_sp_dhkey_invalid
+	beq SP_KEY_VALID_256,le_dhkey_ready
+	jam LE_SP_FLAG_COMMIT_256,mem_le_secure_connect_flag
+	rtn
+
+le_dhkey_ready:
+	call function_f5
+	fetch 1,mem_le_pairing_mode
+	beq LE_PAIRING_MODE_SECURE_CONNECT_PASSKEY ,le_dhkey_ready_common
+	beq LE_PAIRING_MODE_SECURE_CONNECT_PASSKEY_RES_INPUT ,le_dhkey_ready_common
+	call le_set_tk_0 
+le_dhkey_ready_common:
+	call function_f6_ea
+	arg mem_AES_CMAC_temp,rega
+	arg mem_sp_confirm_remote ,regb
+	arg 16,loopcnt
+	call string_compare
+	branch le_dhkey_check_ok,zero
+le_dhkey_check_fail:	
+	jam PAIRING_FAILED_DHKEY_CHECK_FAILED,mem_le_ll_pairing_fail_reason
+	branch le_send_pairing_failed
+
+	
+le_dhkey_check_ok:
+	call sp_calc_check_publickey_256
+	nbranch le_dhkey_check_fail,zero
+	jam 1,mem_ltk_exists
+	fetch 1,mem_le_pairing_mode
+	beq LE_PAIRING_MODE_SECURE_CONNECT_JUSTWORK,le_sc_confirm_gkey_ok
+	beq LE_PAIRING_MODE_SECURE_CONNECT_PASSKEY ,le_sc_confirm_gkey_ok	
+	beq LE_PAIRING_MODE_SECURE_CONNECT_PASSKEY_RES_INPUT ,le_sc_confirm_gkey_ok	
+	jam LE_SP_FLAG_COMMIT_256,mem_le_secure_connect_flag
+	jam LE_SC_STAT_WAIT_CONFIRM_GKEY,mem_le_secure_connect_state	
+	rtn	
+
+le_sc_sm_send_public_key:
+	fetch 1,mem_le_pairing_mode
+	beq LE_PAIRING_MODE_SECURE_CONNECT_PASSKEY,le_sc_sm_send_public_key_passkey
+	beq LE_PAIRING_MODE_SECURE_CONNECT_PASSKEY_RES_INPUT,le_sc_sm_send_public_key_passkey
+	jam 0,mem_passkey_1bit
+le_sc_sm_ready_send_pairing_confirm:
+	branch le_send_smp_pairing_confirm
+
+le_sc_sm_send_public_key_passkey:
+	jam 0,mem_authentication_passkey_times
+	rtneq LE_PAIRING_MODE_SECURE_CONNECT_PASSKEY_RES_INPUT
+	branch le_parse_smp_pairing_req_passkey
+
+	
+le_sc_sm_receive_public_key:
+	jam LE_SP_FLAG_COMMIT_256,mem_le_secure_connect_flag
+	fetch 1,mem_sc_local_key_invalid
+	beq SP_KEY_VALID_256,le_public_key_ready
+	rtn
+	
+le_public_key_ready:
+	jam LE_SC_STAT_WAIT_SEND_PUBLIC_KEY,mem_le_secure_connect_state	
+	jam SP_KEY_INVALID,mem_sp_dhkey_invalid
+	branch sp_dhkey_calc_256	
+
+le_sc_sm_wait_send_public_key:
+	jam LE_SP_FLAG_COMMIT_256,mem_le_secure_connect_flag
+	jam LE_SC_STAT_SEND_PUBLIC_KEY,mem_le_secure_connect_state
+	branch le_send_smp_pairing_public_key
+
+endif
+
+
+le_fifo_malloc_tx_l2cap_smp:
+	force LE_L2CAP_CID_SMP,regb
+	branch le_fifo_malloc_tx_l2cap
+
+
Index: program/ble_protocol_stack/le_ll.prog
===================================================================
--- /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/program/ble_protocol_stack/le_ll.prog	(nonexistent)
+++ /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/program/ble_protocol_stack/le_ll.prog	(working copy)
@@ -0,0 +1,339 @@
+
+le_parse_ll:
+	fetch 1,mem_le_rxbuf_data_ll_opcode
+	beq LL_CONNECTION_UPDATE_IND,le_parse_connection_update_ind
+	beq LL_CHANNEL_MAP_IND,le_parse_channel_map_ind
+	beq LL_TERMINATE_IND,le_parse_terminate_ind
+	beq LL_ENC_REQ,le_parse_enc_req
+	beq LL_ENC_RSP,le_parse_enc_rsp
+	beq LL_START_ENC_REQ,le_parse_start_enc_req
+	beq LL_START_ENC_RSP,le_parse_start_enc_rsp
+	beq LL_UNKNOWN_RSP,le_parse_unknown_rsp
+	beq LL_FEATURE_REQ,le_parse_feature_req
+	beq LL_FEATURE_RSP,le_parse_feature_rsp
+	beq LL_PAUSE_ENC_REQ,le_parse_pause_enc_req
+	beq LL_PAUSE_ENC_RSP,le_parse_pause_enc_rsp
+	beq LL_VERSION_IND,le_parse_version_ind
+	beq LL_REJECT_IND,le_parse_reject_ind
+	beq LL_PING_REQ,le_parse_ping_req
+	beq LL_PING_RSP,le_parse_ping_rsp
+	beq LL_LENGTH_REQ,le_parse_length_req
+	beq LL_LENGTH_RSP,le_parse_length_rsp
+	beq LL_PHY_REQ,le_parse_phy_req
+	beq LL_PHY_UPDATE_IND,le_parse_phy_update_ind
+	fetchr regc,1,mem_le_rxbuf_data_ll_opcode
+	branch le_send_unknown_rsp
+
+
+//LL Opcode:0x00
+le_parse_connection_update_ind:
+	ifetch 9,contr
+	store 9,mem_le_new_param
+	ifetch 2,contr
+	store 2,mem_le_instant
+	fetch 1,mem_le_state
+	set1 lestate_update_param,pdata
+	store 1,mem_le_state
+	rtn
+
+
+//LL Opcode:0x01
+le_parse_channel_map_ind:
+	ifetch 5,contr
+	store 5,mem_le_new_map
+	ifetch 2,contr
+	store 2,mem_le_instant
+le_update_map_enable:
+	fetch 1,mem_le_state
+	set1 lestate_update_map,pdata
+	store 1,mem_le_state
+	rtn
+
+
+//LL Opcode:0x02
+le_parse_terminate_ind:
+	setarg 20 // 200ms
+	store 2,mem_le_superto
+	store 2,mem_le_init_superto
+	rtn
+
+
+//LL Opcode:0x03
+le_parse_enc_req:
+	ifetch 8,contr
+	store 8,mem_le_rand
+	ifetch 2,contr
+	store 2,mem_le_ediv
+	ifetch 8,contr
+	store 8,mem_le_skdm
+	ifetch 4,contr
+	store 4,mem_ccm_ivm
+	call le_send_enc_rsp
+	bpatchx patch3b_5,mem_patch3b
+	fetch 1,mem_le_pairing_state
+	beq FLAG_LE_PAIRING_AFTER_AUTH,le_parse_enc_req_after_auth
+	fetch 1,mem_le_configuration
+	bbit1  BIT_BLE_PAIRING_FIXED_LTK,le_parse_enc_req_fixed_ltk
+	fetch 1,mem_nv_data_number
+	ncall load_device_list_mode_4,blank
+	fetch 1,mem_ltk_exists
+	beq 0,le_ltk_lost
+le_parse_enc_req_after_auth:
+	jam FLAG_LE_RCV_ENC_START,mem_le_enc_state
+	call  le_send_start_enc_req
+	branch generate_sk
+le_parse_enc_req_fixed_ltk:
+	jam 1,mem_ltk_exists
+	arg mem_le_fixed_ltk,contr
+	arg mem_le_ltk,contw
+	call memcpy16
+	branch le_parse_enc_req_after_auth
+le_ltk_lost:
+	bpatchx patch3b_6,mem_patch3b
+	jam FLAG_LE_ENC_NULL,mem_le_enc_state
+	jam FLAG_LE_ENC_NULL,mem_le_pairing_state
+	jam BT_EVT_LE_LTK_LOST,mem_fifo_temp
+	branch ui_ipc_send_event
+
+//LL Opcode:0x04
+le_parse_enc_rsp:
+	ifetch 8,contr
+	store 8,mem_le_skds
+	ifetch 4,contr
+	store 4,mem_ccm_ivs
+	branch generate_sk
+
+
+//LL Opcode:0x05
+le_parse_start_enc_req:
+	fetch 1,mem_le_state
+	set1 lestate_encryption,pdata
+	store 1,mem_le_state
+	rtn
+
+//LL Opcode:0x06
+le_parse_start_enc_rsp:
+	rtn master
+	jam BT_EVT_LE_START_ENC,mem_fifo_temp
+	call ui_ipc_send_event	
+	jam FLAG_LE_SEND_START_ENC_RSP,mem_le_enc_state
+	branch le_send_start_enc_rsp
+
+
+//LL Opcode:0x07
+le_parse_unknown_rsp:
+	rtn
+
+
+//LL Opcode:0x08
+le_parse_feature_req:
+	branch le_send_feature_rsp
+
+
+//LL Opcode:0x09
+le_parse_feature_rsp:
+	rtn
+
+
+//LL Opcode:0x0a
+le_parse_pause_enc_req:
+	jam FLAG_LE_ENC_PAUSE,mem_le_enc_state
+	call le_send_pause_enc_rsp	
+	jam BT_EVT_LE_PAUSE_ENC,mem_fifo_temp
+	branch ui_ipc_send_event	
+
+
+//LL Opcode:0x0b
+le_parse_pause_enc_rsp:
+	rtn
+
+
+//LL Opcode:0x0c
+le_parse_version_ind:
+	rtn master
+	branch le_send_version_ind
+
+
+//LL Opcode:0x0d
+le_parse_reject_ind:
+	rtn
+
+
+//LL Opcode:0x13
+le_parse_ping_req:
+	branch le_send_ping_rsp
+
+
+//LL Opcode:0x14
+le_parse_ping_rsp:
+	rtn
+
+
+le_parse_length_req:
+	call le_parse_length_rsp
+	branch le_send_data_length_res
+
+le_parse_length_rsp:
+	ifetch 8,contr
+	store 8,mem_remote_rx_max_octets
+	fetch 2,mem_remote_rx_max_octets
+	fetcht 2,mem_local_tx_max_octets
+	call not_greater_than
+	store 2,mem_remote_rx_max_octets
+	
+	fetch 2,mem_remote_tx_max_octets
+	fetcht 2,mem_local_rx_max_octets
+	call not_greater_than
+	store 2,mem_remote_tx_max_octets
+	rtn
+
+
+//LL Opcode:0x16
+le_parse_phy_req:
+	branch le_send_phy_rsp
+
+
+//LL Opcode:0x18
+le_parse_phy_update_ind:
+	ifetch 2,contr
+	store 2,mem_le_new_m2s_phy
+	ifetch 2,contr
+	store 2,mem_le_instant
+	rtn blank
+	fetch 1,mem_le_state
+	set1 lestate_update_phy,pdata
+	store 1,mem_le_state	
+	rtn
+
+
+///////////////////send ll packet//////////////
+//LL Opcode:0x02
+le_send_terminate_ind_user_terminated:
+	arg ERROR_REMOTE_USER_TERMINATED_CONNECTION,regc
+
+//regc:The ErrorCode field shall be set to inform the remote device why the connection is about to be terminated.
+le_send_terminate_ind:
+	arg 2,rega
+	arg LL_TERMINATE_IND,regb
+	call le_fifo_malloc_tx_ll
+	copy regc,pdata
+	istore 1,contw
+	rtn
+
+
+//LL Opcode:0x04
+le_send_enc_rsp:
+	arg mem_le_skds,contw
+	force 8,loopcnt
+	call generate_random_loop
+	arg mem_ccm_ivs,contw
+	force 4,loopcnt
+	call generate_random_loop
+	arg 13,rega
+	arg LL_ENC_RSP,regb
+	call le_fifo_malloc_tx_ll
+	fetch 8,mem_le_skds
+	istore 8,contw
+	fetch 4,mem_ccm_ivs
+	istore 4,contw
+	rtn
+
+
+//LL Opcode:0x05
+le_send_start_enc_req:
+	jam FLAG_LE_SEND_START_ENC_REQ,mem_le_enc_state
+	arg LL_START_ENC_REQ,regb
+	branch le_send_ll_one_lenth
+
+
+//LL Opcode:0x06
+le_send_start_enc_rsp:
+	arg LL_START_ENC_RSP,regb
+	branch le_send_ll_one_lenth
+
+
+//LL Opcode:0x07
+//input:regc is receive ll opcode
+le_send_unknown_rsp:
+	arg 2,rega
+	arg LL_UNKNOWN_RSP,regb
+	call le_fifo_malloc_tx_ll
+	istorer regc,1,contw
+	rtn	
+
+
+//LL Opcode:0x09
+le_send_feature_rsp:
+	arg 9,rega
+	arg LL_FEATURE_RSP,regb
+	call le_fifo_malloc_tx_ll
+	fetch 8,mem_le_local_feature
+	or pdata,FUN_LL_FEATURE_LE_ENCRYPTION,pdata
+	istore 8,contw
+	rtn
+
+
+//LL Opcode:0x0B
+le_send_pause_enc_rsp:
+	arg LL_PAUSE_ENC_RSP,regb
+	branch le_send_ll_one_lenth
+
+
+//LL Opcode:0x0C
+le_send_version_ind:
+	arg 6,rega
+	arg LL_VERSION_IND,regb
+	call le_fifo_malloc_tx_ll
+	fetch 5,mem_lmp_version
+	istore 5,contw
+	rtn
+
+//LL Opcode:0x0D
+le_send_reject_ind:
+	arg 2,rega
+	arg LL_REJECT_IND,regb
+	call le_fifo_malloc_tx_ll
+	setarg LE_ERR_PIN_OR_KEY_MISSING
+	istore 1,contw
+	rtn		
+
+
+//LL Opcode:0x13
+le_send_ping_rsp:
+	arg LL_PING_RSP,regb
+	branch le_send_ll_one_lenth
+	
+le_send_data_length_req:
+	arg LL_LENGTH_REQ,regb
+	branch le_send_data_length
+
+le_send_data_length_res:
+	arg LL_LENGTH_RSP,regb
+le_send_data_length:
+	arg 9,rega
+	call le_fifo_malloc_tx_ll
+	fetch 8,mem_local_rx_max_octets
+	istore 8,contw
+	rtn
+
+
+//LL Opcode:0x17
+le_send_phy_rsp:
+	arg 3,rega
+	arg LL_PHY_RSP,regb
+	call le_fifo_malloc_tx_ll
+	fetch 1,mem_le_tx_phys
+	and pdata,0x07,pdata
+	istore 1,contw
+	fetch 1,mem_le_rx_phys
+	and pdata,0x07,pdata
+	istore 1,contw
+	rtn		
+
+
+//regb:ll opcode
+le_send_ll_one_lenth:
+	arg 1,rega
+	branch le_fifo_malloc_tx_ll
+
+
Index: program/bt.prog
===================================================================
--- /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/program/bt.prog	(nonexistent)
+++ /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/program/bt.prog	(working copy)
@@ -0,0 +1,4416 @@
+define FPGA
+define ROMCODE
+define PATCH
+//define RAM_VERSION
+//define CLK24M
+//define ACL_DEBUG
+define SECURE_CONNECTION
+define DEBUG_RF_INIT
+
+define SIMPLE_PAIRING
+define COMPILE_RFCOMM
+define COMPILE_SHUTTER
+define COMPILE_ANTILOST
+define COMPILE_MOUSE
+define COMPILE_MODULE
+define COMPILE_USB
+define COMPILE_DONGLE
+define COMPILE_LE
+define COMPILE_24G
+define COMPILE_CAR
+define COMPILE_REMOTE_CAR
+
+
+INCLUDE "bt_format"
+
+org 0x0000		// start from patch ram address start
+ifdef SIM
+include sim.prog
+else
+include patch.prog
+endif
+
+/******************************************/
+/***********   ROM Start   ***************/
+/******************************************/
+
+org 0x800		// start from rom address start
+start:
+	call lpmstate
+
+soft_reset:
+	bpatch patch00_0,mem_patch00
+	clear_stack
+	call spi_ncs_gpio_init  // 0xff disable spi ncs gpio init
+	call initialize_radio
+	call iic_init_360khz
+	call init_param
+	call l2cap_init
+	bpatch patch00_1,mem_patch00
+	call rfcomm_init
+	call init_lmp
+	call ui_init
+	call app_init
+//	ncall load_chip_option,wake
+	bpatch patch00_2,mem_patch00
+	call app_lpm_init,wake
+ifdef SIMPLE_PAIRING
+	call publickey_init
+	call sp_wait_pubkey_calc_done
+else
+	call sp_reset
+ifdef SECURE_CONNECTION
+	call publickey_init
+endif
+endif
+	call lpm_recover_clk,wake
+main_loop:	
+	bpatch patch00_3,mem_patch00
+ifdef SIMPLE_PAIRING
+	call sp_calc_sequence
+endif
+ifdef SECURE_CONNECTION
+	call sp_calc_sequence_256
+endif
+ifdef SIMPLE_PAIRING
+ifdef SECURE_CONNECTION
+	call sp_calc_sequence_256_check
+endif
+endif
+	call le_advertising_dispatch
+	bpatch patch00_4,mem_patch00
+	call idle_dispatch
+	call app_process_idle
+	call inquiry_dispatch
+	call inquiry_scan_dispatch
+	call page_scan_dispatch
+	call connection_dispatch
+	call g24_dispatch
+	call lpm_dispatch
+	branch main_loop
+
+connection_dispatch:
+	call connection_incontext
+	rtnmark0 mark_context
+	set0 mark_context,mark
+	call context_save
+	branch le_disable
+	
+connection_incontext:
+	bpatch patch00_5,mem_patch00
+	call context_search_insniff
+	nbranch connection_nosniff,zero
+	call context_load
+	add rega,coffset_mode,contr
+	ifetch 1,contr
+	bbit1 mode_le,le_conn_dispatch
+	bbit1 mode_master, master_dispatch
+	branch slave_dispatch
+connection_nosniff:
+	call context_get_next
+	copy loopcnt,null
+	rtn zero
+	call context_load
+	fetch 1,mem_state
+	bbit1 state_inpage,master_page
+	fetch 1,mem_mode
+	bbit1 mode_master, master_dispatch
+	branch slave_dispatch
+
+
+
+/**************************************/
+/**************idle dispatch*********/
+/**************************************/
+	
+idle_dispatch:
+	fetch 1,mem_hci_cmd
+	rtn blank
+	beq hci_cmd_inquiry,idle_inquiry
+	beq hci_cmd_inquiry_cancel,idle_inquiry_cancel
+	beq hci_cmd_remote_name_req,idle_remote_name_req
+	beq hci_cmd_create_conn,idle_create_conn
+	beq hci_cmd_le_create_conn,idle_le_create_conn
+	call context_search_conn_handle
+	rtn zero
+	call context_search_plap
+	rtn zero
+idle_exit:
+	jam 0,mem_hci_cmd
+	rtn
+
+idle_le_create_conn:
+	jam hci_cmd_le_create_conn,mem_cmd_le_create_conn
+	jam 0,mem_hci_cmd
+	rtn
+	
+idle_inquiry:
+	set1 mark_inquiry_on,mark
+	set0 mark_inquiry_trainb,mark
+	jam param_ninquiry,mem_ninqy_index
+	jam 31,mem_nfreq_index_inq
+	branch idle_exit
+
+idle_inquiry_cancel:
+	set0 mark_inquiry_on,mark
+	force 0,stop_watch
+	branch idle_exit
+
+idle_remote_name_req:
+	call context_search_plap
+	rtn zero
+	force LMP_NAME_REQ,temp
+	jam 5,mem_nameres_cnt
+	branch idle_start_page
+
+idle_create_conn:
+	bpatch patch00_6,mem_patch00
+idle_create_conn_device:
+	fetch 6,mem_hci_plap
+//	branch idle_exit,blank
+	nop 1
+	jam RECONNECT_HID,memui_reconnect_mode
+	//jam HS_INIT_CALL,mem_hs_mode //init as master
+	jam CONN_SM_WAIT_FEATURES_RES,mem_conn_sm
+	branch idle_create_conn_cont
+	
+idle_create_conn_cont:
+	force LMP_VERSION_REQ,temp
+idle_start_page:
+	bpatch patch00_7,mem_patch00
+	fetch 1,mem_page_mode
+	branch idle_page_mode_r0,blank
+	lshift3 pdata,pdata
+	lshift4 pdata,pdata
+	increase -1,pdata
+idle_page_mode_r0:
+	store 1,mem_npage
+	store 1,mem_npage_index
+	jam 31,mem_nfreq_index_page
+	set0 mark_page_trainb,mark
+	call context_new
+	nbranch idle_page_fail,zero
+	call get_free_amaddr
+	store 1,mem_amaddr
+	storet 1,mem_lmo_opcode2
+	fetch 6,mem_hci_plap
+	store 6,mem_plap
+	bpatch patch01_0,mem_patch01
+	call timer_reinit
+	force 0,pdata
+	compare LMP_NAME_REQ,temp,0xff
+	nsetflag true,state_init_seq,pdata
+	set1 state_inpage,pdata
+	store 1,mem_state
+	jam BT_EVT_RECONN_STARTED,mem_fifo_temp
+	call ui_ipc_send_event
+	force 0,pdata
+	setflag true,smap_name_req,pdata
+	store 1,mem_state_map
+	setarg 0
+	set1 mode_master,pdata
+	store 1,mem_mode
+	enable master
+	call context_save
+	disable master
+	force page_length_timer,queue
+	fetch 2,mem_page_to
+	call timer_init
+	branch idle_exit
+idle_page_fail:
+	bpatch patch01_1,mem_patch01
+	fetch 6,mem_hci_plap
+	store 6,mem_plap
+	compare LMP_NAME_REQ,temp,0xff
+	branch idle_name_fail,true
+	branch idle_exit
+idle_name_fail:
+	arg mem_tmp_buffer,contw
+	arg 8,loopcnt
+	call memset0
+	jam BT_EVT_RECONN_FAILED,mem_fifo_temp
+	call ui_ipc_send_event
+	branch idle_exit
+	
+
+/******************************************/
+/**************  Inquiry  *****************/
+/******************************************/
+
+inquiry_dispatch:
+	rtnmark0 mark_inquiry_on
+	force inquiry_length_timer,queue
+	call timer_check
+	nsetflag blank,mark_inquiry_on,mark
+	nbranch inquiry_start,blank
+	rtn
+	
+
+
+inquiry_start:
+	bpatch patch01_2,mem_patch01
+	fetcht 2,mem_inq_window
+	force 4,queue
+	call sniff_check_window
+	rtn user
+	call afh_clear
+	force 0,freq_mode
+inquiry_restart:
+	rtn timeout
+	set0 mark_fhs_already_good,mark
+	set0 mark_fhs_eir,mark
+inquiry_rx_restart:
+	add clkn_bt,1,bt_clk
+	isolate1 mark_inquiry_trainb,mark
+	setflag true,2,freq_mode
+	compare 0x00,bt_clk,0x02      /* see if this is even slot */
+	nbranch inquiry_receive,true
+
+inquiry_transmit:
+	bpatch patch01_3,mem_patch01
+	fetch 1,mem_inquiry_transmit
+	increase 1,pdata
+	store 1,mem_inquiry_transmit
+	call fetch_giac
+	call tx_radio_freq
+	call fetch_diac
+	call start_transmitter	/* get ready for that id packet */
+	call start_tx_native
+	call send_access_word
+	call end_of_packet
+	call inquiry_check_train
+	branch inquiry_restart
+
+inquiry_check_train:
+	bpatch patch01_4,mem_patch01
+	fetch 1,mem_nfreq_index_inq
+	increase -1,pdata
+	store 1,mem_nfreq_index_inq
+	rtn positive  /* if it's time to incremnt N */
+	jam 31,mem_nfreq_index_inq
+	fetch 1,mem_ninqy_index
+	increase -1,pdata
+	store 1,mem_ninqy_index
+	rtn positive      /* if it's time to change train */
+	setflip mark_inquiry_trainb,mark
+	jam param_ninquiry,mem_ninqy_index
+	rtn
+
+inquiry_receive:
+	bpatch patch01_5,mem_patch01
+	call fetch_giac
+	call rx_radio_freq
+	call fetch_diac
+	call start_rx_native
+	call start_receiver	/* get ready for that id packet */
+	call wait_access_clkn_rt
+	branch inquiry_sync,sync   /* try look for id packet again if not found */
+	call inquiry_check_train
+	branch inquiry_rx_restart
+inquiry_sync:
+	bpatch patch01_6,mem_patch01
+	call save_rssi
+	call scan_mode_whiten
+	call receive_packet_whitened
+	set0 mark_rxbuf_inuse,mark
+	rtnmark0 mark_fhs_already_good
+inquiry_receive_rtn:
+inquiry_receive_eir_rtn:
+	fetch 1,mem_inquiry_rcv
+	increase 1,pdata
+	store 1,mem_inquiry_rcv
+	rtn
+		
+/******************************************/
+/**************  Master Dispatch  *************/
+/******************************************/
+
+
+
+master_page:
+	bpatch patch01_7,mem_patch01
+	enable master
+	enable clknt
+	fetch 2,mem_page_interval
+	branch master_page_no_interval,blank
+	force page_interval_timer,queue
+	call timer_check               
+	nrtn blank
+master_page_no_interval:
+	bpatch patch02_0,mem_patch02
+	fetcht 2,mem_page_window
+	force 40,queue
+	call sniff_check_window
+	branch page_exit,user
+	force page_length_timer,queue
+	call timer_check
+	nbranch page_start,blank
+	fetch 1,mem_state_map
+	bbit1 smap_name_req,master_npage_timeout
+	branch master_page_timeout
+master_npage_timeout:
+	arg mem_tmp_buffer,contw
+	arg 8,loopcnt
+	call memset0
+master_page_timeout:
+	bpatch patch02_1,mem_patch02
+	jam 0,mem_state
+	call init_lmp_work
+	jam 0,memui_reconnect_mode
+	jam BT_EVT_RECONN_PAGE_TIMEOUT,mem_fifo_temp
+	call ui_ipc_send_event	
+	branch page_exit
+
+page_start:
+	bpatch patch02_2,mem_patch02
+	force 0,timeup
+	until clkn_rt,meet
+	fetch 1,mem_page_clk
+	increase -1,pdata
+	ixor clkn_bt,pdata
+	compare 0,pdata,3
+	nbranch page_start,true
+	deposit am_addr
+	store 1,mem_fhs_am_addr
+	force 0,N_tx_slot
+	force 0,freq_mode
+
+page_restart:
+	bpatch patch02_3,mem_patch02
+	branch page_exit,timeout
+	call fetch_page_bt_adr
+	fetchr timeup,2,mem_param_rf_setup
+	until clkn_rt,meet         /* wait for the start_receiver time against native real clk  */
+page_rx_restart:
+	bpatch patch02_4,mem_patch02
+	fetch 4,mem_page_clk    /* deposit clk_estimate */
+	iforce bt_clk
+	increase 1,pdata
+	store 4,mem_page_clk
+	isolate1 mark_page_trainb,mark
+	setflag true,2,freq_mode
+	compare 0x00,bt_clk,0x02      /* see if this is even slot */
+	nbranch page_receive,true
+	fetch 1, mem_page_transmit
+	increase 1,pdata
+	store 1, mem_page_transmit
+	call tx_radio_freq
+	call start_transmitter	/* get ready for that id packet */
+	call start_tx_native
+	call send_access_word
+	call end_of_packet
+	call page_check_train
+	branch page_restart	
+page_exit:
+	bpatch patch02_5,mem_patch02
+	disable master
+	fetch 2,mem_page_interval      
+	rtn blank
+	force page_interval_timer,queue
+	branch timer_init              
+
+page_check_train:
+	bpatch patch02_6,mem_patch02
+	fetch 1,mem_nfreq_index_page
+	increase -1,pdata
+	store 1,mem_nfreq_index_page
+	rtn positive
+	jam 31,mem_nfreq_index_page
+	fetch 1,mem_npage_index
+	increase -1,pdata                 /* increment N */
+	store 1,mem_npage_index
+	rtn positive      			/* if it's time to change train */
+	setflip mark_page_trainb,mark             /* change train */
+	fetch 1,mem_npage
+	store 1,mem_npage_index
+	rtn
+	
+page_receive:
+	bpatch patch02_7,mem_patch02
+	call rx_radio_freq
+	call start_rx_native
+	call start_receiver	/* get ready for that id packet */
+	call wait_access_clkn_rt	/* try id look for id packet again */
+	branch page_sync,sync         /* restart if didn't receive anything */
+	call page_check_train
+	branch page_rx_restart
+page_sync:
+	call end_of_packet
+	fetch 1, mem_page_rcv
+	increase 1,pdata
+	store 1, mem_page_rcv
+	force 0,stop_watch
+	fetch 4,mem_page_clk
+page_send_fhs:
+	bpatch patch03_0,mem_patch03
+	call rf_setup_time_master_slot
+	call fetch_page_bt_adr
+	increase 1,N_tx_slot
+page_send_fhs_continue:
+	and_into 0x1fd,bt_clk
+	and_into 0x1fc,freq_mode               /* master response = x00, even_train settin must remain the same */
+	call tx_radio_freq
+	call start_transmitter	/* get ready for that id packet */
+	call start_tx_native
+	call send_access_word
+	deposit clkn_bt
+	store 4,mem_clkn_bt
+	force 0,am_addr
+	force type_fhs,type
+	call scan_mode_whiten
+	call transmit_packet_whitened
+page_wait_fhs_reply:
+	bpatch patch03_1,mem_patch03
+	call rf_setup_time_slave_slot
+	or_into 0x02,bt_clk
+	and_into 0x1fc,freq_mode               /* master response sequence = x00, even train setting must be preserved */
+	call rx_radio_freq
+	call start_rx_native
+	call start_receiver	/* get ready for that id packet */
+	call wait_access_clkn_rt	/* look for that reply */
+	call end_of_packet,sync              /* id reply is enough */
+	branch page_wait_fhs_reply_ok,sync           /* no reply then send fhs again */
+	fetch 1,mem_fhs_wait_counter
+	branch page_restart,blank
+	increase -1,pdata
+	store 1,mem_fhs_wait_counter
+	branch page_send_fhs
+	
+page_wait_fhs_reply_ok:
+	bpatch patch03_2,mem_patch03
+	fetch 1, mem_page_rcv_fhs
+	increase 1,pdata
+	store 1, mem_page_rcv_fhs
+	call prepare_newconn
+master_newconn_loop:
+	set1 mark_first_packet,mark
+	call master_newconn_once
+	branch newconn_poll_responded,sync
+	set0 mark_first_packet,mark
+	call new_conn_timeout
+	nbranch master_newconn_loop,blank
+	branch page_restart
+
+newconn_poll_responded:
+	bpatch patch03_3,mem_patch03
+	set0 mark_first_packet,mark
+	fetch 1,mem_state
+	set0 state_inpage,pdata
+	store 1,mem_state
+	call newconn_init
+	disable master
+	rtn
+	
+
+master_dispatch:
+	bpatch patch03_4,mem_patch03
+	enable master
+	enable clknt
+	call role_switch_master
+	rtn user
+	call check_bt_disabled
+	call rf_setup_time_master_slot
+	add clkn_bt,1,bt_clk
+	call fetch_self_bt_adr
+	force 0x03,freq_mode
+	call scheduler_tx_l2cap_pkt
+	call prepare_tx
+	call tx_radio_freq
+	call start_transmitter
+	call start_tx_native
+	call send_access_word
+	call transmit_packet
+master_loop:
+	bpatch patch03_5,mem_patch03
+	call parse_lmp
+	call master_conn_recv_packet
+	nbranch master_notmatch,match
+	call supervision_flush
+	call parse_l2cap
+	fetch 1,mem_master_rcvcnt
+	increase 1,pdata
+	store 1,mem_master_rcvcnt
+master_notmatch:
+	bpatch patch03_6,mem_patch03
+	call scheduler_process
+	call check_master_disconnect
+	nrtn master					/* disconnected */
+	call check_attempt
+	nbranch master_attempt,blank
+master_exit:
+	disable master
+	rtn
+
+master_attempt:
+	call prepare_tx
+	call master_conn_send_packet
+	branch master_loop
+
+
+check_master_disconnect:
+	branch check_master_match,match
+	call supervision_update
+	branch master_disconnect,positive
+check_master_match:
+	call check_disconnect_timeout
+	nbranch master_disconnect,user
+	fetch 1,mem_state_map
+	rtnbit0 smap_name_req
+	rtnbit1 smap_name_res
+	fetch 1,mem_op
+	rtnbit1 op_disconn
+	call conn_timer_expired
+	nrtn blank
+	fetch 1,mem_nameres_cnt
+	increase -1,pdata
+	store 1,mem_nameres_cnt
+	nrtn blank
+	branch lmp_disconnect
+
+master_disconnect:
+	bpatch patch03_7,mem_patch03
+	call quit_connection
+	disable master
+	fetch 1,mem_state_map
+	bbit1 smap_name_req,master_name_disconnect
+	rtn
+	
+master_name_disconnect:
+	fetch 1,mem_state_map
+	rtnbit1 smap_name_res
+master_name_error:
+	arg mem_tmp_buffer,contw
+	arg 8,loopcnt
+	branch memset0
+	
+check_disconnect_timeout:
+	bpatch patch04_0,mem_patch04
+	enable user
+	fetch 1,mem_op
+	rtnbit0 op_disconn
+	call conn_timer_expired
+	nrtn blank
+	branch disable_user
+
+conn_timer_expired:
+	fetch 1,mem_conn_timer
+	increase -1,pdata
+	store 1,mem_conn_timer
+	rtn
+
+linkkey_ready:
+	bpatch patch04_1,mem_patch04
+	fetch 1,mem_state
+	bbit1 state_linkkey,linkkey_set
+	fetch 1,mem_pairing_auth
+	branch linkkey_set,blank
+	jam DEFALT_PAIRING_AUTH,mem_pairing_auth
+	jam BT_EVT_LINKKEY_GENERATE,mem_fifo_temp
+	call ui_ipc_send_event
+	branch linkkey_set
+linkkey_set:
+	bpatch patch04_2,mem_patch04
+	call context_traverse_linkkey
+	fetch 1,mem_state
+	set1 state_linkkey,pdata
+	store 1,mem_state
+	jam 1,mem_link_key_exists
+	fetch 1,mem_conn_sm
+	bne CONN_SM_PAIRING,linkkey_set_continue
+linkkey_set_continue:
+	rtn
+
+generate_linkkey_continue:
+	jam PAIRING_AUTH,mem_pairing_auth
+clear_linkstate:
+	fetch 1,mem_state
+	set0 state_linkkey,pdata
+	store 1,mem_state
+	rtn
+	
+
+	/* rtn user if switch */
+role_switch_check:
+	bpatch patch04_3,mem_patch04
+	disable user
+	fetch 2,mem_tsniff
+	arg 0xffff,temp
+	isub temp,null
+	nrtn zero
+	fetch 4,mem_sniff_anchor
+	branch role_switch_clkn,clknt
+	isub clke_bt,pdata
+	branch role_switch_clke
+role_switch_clkn:
+	isub clkn_bt,pdata
+role_switch_clke:
+	sub pdata,4,null
+	nrtn positive
+	force 0,pdata
+	store 2,mem_tsniff
+	branch enable_user
+
+
+	/* pdata: switch instant, set tsniff=0 for special sniff */	
+role_switch_prepare:
+	copy pdata,temp
+	bpatch patch04_4,mem_patch04
+	storet 4,mem_sniff_anchor
+role_switch_prepare0:
+	jam SWITCH_FLAG_ACCEPT,mem_switch_flag
+	setarg 0xffff
+	store 2,mem_tsniff
+	jam 1,mem_sniff_attempt
+	rtn
+
+
+role_switch_master:
+	bpatch patch04_5,mem_patch04
+	call role_switch_check
+	nrtn user
+	disable user
+	jam param_newconnto,mem_newconnto_counter
+	set0 mark_fhs_already_good,mark
+	set0 mark_role_switch_receive_fhs,mark
+roles_waitfhs_loop:
+	call rf_setup_time_master_slot
+	call master_recv_packet
+	bmark1 mark_fhs_already_good,roles_replyto_fhs
+	call new_conn_timeout
+	nbranch roles_waitfhs_loop,blank
+	bmark1 mark_role_switch_receive_fhs,roles_replyto_fhs_rcvd
+role_switch_fail_master:
+	bpatch patch04_6,mem_patch04
+	disable user
+	deposit clkn_bt
+	store 4,mem_next_btclk
+	enable clknt
+	enable master
+	jam BT_EVT_SWITCH_FAIL_MASTER,mem_fifo_temp
+	branch ui_ipc_send_event
+	
+roles_replyto_fhs:
+	bpatch patch04_7,mem_patch04
+	call rf_setup_time_slave_slot
+	arg type_id,type
+	call master_send_packet
+	set1 mark_role_switch_receive_fhs,mark
+	set0 mark_fhs_already_good,mark
+	fetch 1,mem_amaddr
+	iforce am_addr	//use current LT_ADDR
+	jam 2,mem_newconnto_counter
+	branch roles_waitfhs_loop
+
+roles_replyto_fhs_rcvd:
+	fetch 4,mem_clke_bt		//wait for 2 fhs,need 2.5ms
+	pincrease 8
+	store 4,mem_clke_bt
+	disable clknt
+	disable master
+	call apply_switch_clke
+	call prepare_newconn
+roles_newconns_loop:
+	bpatch patch05_0,mem_patch05
+	call slave_newconn_once
+	branch roles_newconns_responded,match
+	call new_conn_timeout
+	nbranch roles_newconns_loop,blank
+	branch role_switch_fail_master
+roles_newconns_responded:
+	fetch 1,mem_mode
+	set0 mode_master,pdata
+	store 1,mem_mode
+	call supervision_flush
+	call calc_clke_offset
+	enable user
+	jam BT_EVT_SWITCH_SUCCESS_MASTER,mem_fifo_temp
+	branch ui_ipc_send_event
+
+
+
+
+context_load:
+	bpatch patch05_1,mem_patch05
+	set1 mark_context,mark
+	deposit rega
+	store 2,mem_context_ptr
+	force context_size,loopcnt
+	arg mem_le_state,contw
+	add rega,coffset_mode,contr
+	ifetch 1,contr
+	copy rega,contr
+	bbit1 mode_le,memcpy
+	arg mem_state,contw
+	call memcpy
+	disable attempt
+	fetch 1,mem_amaddr
+	iforce am_addr
+	jam 1,mem_current_sniff_attempt
+	branch context_load_master,master
+	jam 1,mem_current_sniff_attempt
+context_load_master:
+	fetch 1,mem_state
+	rtnbit0 state_insniff
+	fetch 1,mem_sniff_attempt
+	store 1,mem_current_sniff_attempt
+	fetch 1,mem_sniff_timeout
+	store 1,mem_current_sniff_timeout
+	rtn
+	
+context_save:
+	bpatch patch05_2,mem_patch05
+	fetch 2,mem_context_ptr
+	iforce contw
+	force context_size,loopcnt
+	arg mem_le_state,contr
+	branch memcpy,le
+	arg mem_state,contr
+	branch memcpy
+
+	
+
+context_get_next:
+	arg context_num,loopcnt
+	fetcht 1,mem_current_context
+context_get_next_loop:
+	increase 1,temp
+	compare context_num,temp,0xff
+	nbranch context_get_next_cont,true
+	arg 0,temp
+context_get_next_cont:
+	storet 1,mem_current_context
+	mul32 temp,context_size,pdata
+	arg mem_context,rega
+	iadd rega,rega
+	ifetch 1,rega
+	bbit1 state_insniff,context_get_next_sniff
+	rtnbit1 state_inconn
+	rtnbit1 state_inpage
+context_get_next_sniff:
+	loop context_get_next_loop
+	rtn
+	
+context_new:
+	bpatch patch05_3,mem_patch05
+	arg context_search_empty,regc
+	call context_search
+	nrtn zero					// all occupied
+	deposit rega
+	store 2,mem_context_ptr
+	force 0,null
+	rtn
+	
+	//return zero if anyone's wack is 1.
+	//return nzero if all wack is 0
+context_check_all_wack:
+	call check_esco_amaddr
+	branch context_check_esco_wack,true
+	fetch 2,mem_context_ptr
+	add pdata,coffset_arq,contw
+	fetch 1,mem_arq
+	istore 1,contw
+	arg context_check_a_wack,regc
+	branch context_search
+
+context_check_esco_wack:
+	fetch 1,mem_arq
+	isolate1 wack,pdata
+	branch context_esco_wack,true
+	force 1,null
+	rtn
+context_esco_wack:
+	force 0,null
+	rtn
+	
+	//rtn nzero if idle(no conn)
+context_check_idle:
+	arg context_check_inconn,regc
+	branch context_search
+	
+context_traverse_linkkey:
+	fetcht 2,mem_context_ptr
+	arg context_traverse_clearkey,regc
+	branch context_search
+	
+	
+	/* return zero if conn handle is found */
+context_search_conn_handle:
+	fetcht 1,mem_hci_conn_handle
+context_search_conn_handle2:
+	arg context_search_handle,regc
+	branch context_search
+	/* return zero if plap is found */
+context_search_plap:
+	bpatch patch05_4,mem_patch05
+	fetcht 6,mem_hci_plap
+context_search_plap2:
+	arg context_search_lap,regc
+	branch context_search
+	/* return zero if sniff anchor is meet and rega pointers to context */
+context_search_insniff:
+	arg context_search_sniff,regc
+	branch context_search
+	/* return zero if sniff window is in content with current transaction */
+context_search_sniff_window:
+	arg context_search_window,regc
+context_search:
+	bpatch patch05_5,mem_patch05
+	arg mem_context,rega
+	arg context_num,loopcnt
+context_search_loop:
+	ifetch 1,rega
+	copy regc,pc
+context_search_next:
+	increase context_size,rega
+	loop context_search_loop
+	force 1,null
+	rtn
+
+context_search_empty:
+	bbit1 state_inconn,context_search_next
+	bbit1 state_inpage,context_search_next
+	force 0,null
+	rtn
+	
+context_search_lap:
+	bbit1 state_inpage,context_search_lap_cont
+	bbit0 state_inconn,context_search_next
+context_search_lap_cont:
+	add rega,coffset_plap,contr
+	ifetch 6,contr
+	isub temp,null
+	rtn zero
+	branch context_search_next
+
+context_search_handle:
+	bbit0 state_inconn,context_search_next
+	add rega,coffset_conn_handle,contr
+	ifetch 1,contr
+	isub temp,null
+	rtn zero
+	branch context_search_next
+
+context_search_sniff:
+	bbit0 state_insniff,context_search_next
+context_search_sniff_loop:
+	call context_get_anchor
+	call sign_pdata_temp
+	isub temp,pdata
+	increase 1,pdata
+	branch context_search_sniff_miss,positive
+	copy contr,regb
+	store 9,mem_temp
+	fetch 1,mem_sc_calc
+	nbranch context_search_sniff_sc,blank
+	fetch 9,mem_temp
+	copy regb,contr
+	increase 5,pdata  
+	branch context_search_meet1
+context_search_sniff_sc:
+	fetch 9,mem_temp
+	copy regb,contr	
+	increase 20,pdata  
+context_search_meet1:
+	nbranch context_search_next,positive
+context_search_meet:
+	copy temp,bt_clk
+	call context_next_anchor
+	force 0,null
+	rtn
+	
+	
+context_search_sniff_miss:
+	iforce regb
+	add rega,coffset_tsniff,contr
+	ifetch 2,contr
+	branch context_search_meet,blank
+	call context_next_anchor
+	branch context_search_sniff_loop
+
+sign_pdata_temp:
+	rshift16 pdata,timeup    
+	rshift8 timeup,timeup    
+	branch sign_pdata_temp_p0,zero    
+	compare 0xf,timeup,0xf    
+	nrtn true    
+	rshift16 temp,timeup    
+	rshift8 timeup,timeup    
+	nrtn zero    
+	set1 28,temp    
+	rtn
+sign_pdata_temp_p0:    
+	rshift16 temp,timeup    
+	rshift8 timeup,timeup    
+	compare 0xf,timeup,0xf    
+	nrtn true    
+	set1 28,pdata    
+	rtn
+
+context_check_inconn:
+	bbit0 state_inconn,context_search_next
+	force 0,null 				// found
+	rtn
+	
+context_check_a_wack:
+	bbit0 state_inconn,context_search_next
+	add rega,coffset_mode,contr
+	ifetch 1,contr
+	bbit1 mode_le,context_search_next
+	add rega,coffset_arq,contr
+	ifetch 1,contr
+	bbit0 wack,context_search_next
+	force 0,null 				// found
+	rtn
+
+context_get_anchor:
+	add rega,coffset_mode,contr
+	ifetcht 1,contr
+	deposit clkn_bt
+	isolate1 mode_master,temp
+	add rega,coffset_sniff_anchor,contr
+	ifetcht 4,contr
+	rtn true
+	add rega,coffset_clk_offset,contr
+	ifetch 6,contr
+	call calc_clke2
+	deposit clke_bt
+	rtn
+
+context_next_anchor:
+	add rega,coffset_tsniff,contr
+	add rega,coffset_sniff_anchor,contw
+	ifetch 2,contr
+	iadd temp,timeup			/* wrap to 28 bits */
+	deposit timeup
+	istore 4,contw
+	branch le_context_nextevent
+	
+
+context_search_window:
+	bbit0 state_insniff,context_search_next
+	call context_get_anchor
+	iadd stop_watch,pdata
+	iadd stop_watch,pdata
+	iadd queue,pdata
+	isub temp,null
+	nbranch context_search_next,positive
+	force 0,null
+	rtn
+
+context_traverse_clearkey:
+	bbit0 state_inconn,context_search_next
+	deposit temp
+	isub rega,null
+	branch context_search_next,null
+	add rega,coffset_mode,contr
+	ifetch 1,contr
+	bbit1 mode_le,context_search_next
+	ifetch 1,rega
+	set0 state_linkkey,pdata
+	istore 1,rega
+	branch context_search_next
+
+	
+master_conn_send_packet:
+	bpatch patch05_6,mem_patch05
+	call rf_setup_time_master_slot
+master_send_packet:
+	add clkn_bt,1,bt_clk          /* master start to use native clock */
+	call fetch_self_bt_adr
+	force 0x03,freq_mode          /* we are in connection!! */
+	call tx_radio_freq
+	call start_transmitter
+	call start_tx_native
+	call send_access_word
+	branch transmit_packet
+
+master_conn_recv_packet:
+	bpatch patch05_7,mem_patch05
+	call rf_setup_time_slave_slot
+master_recv_packet:
+	add clkn_bt,1,bt_clk          /* master start to use native clock */
+	call fetch_self_bt_adr
+	force 0x03,freq_mode          /* we are in connection!! */
+	call rx_radio_freq
+	call init_rx_packet_flags
+	call prep_crypt
+	call start_rx_native	/* start listening at start_rx time */
+	call start_receiver
+master_rx_conn_finish_packet:
+	call wait_access_clkn_rt	/* master use native clock */
+	nrtn sync
+	call save_rssi
+	branch receive_packet
+	
+	
+
+master_newconn_once:
+	bpatch patch06_0,mem_patch06
+	fetch 1,mem_fhs_am_addr
+	iforce am_addr			//review
+	force type_poll,type
+	call master_conn_send_packet
+	branch master_conn_recv_packet
+
+
+
+
+
+
+/******************************************/
+/************* Inquiry Scan ***************/
+/******************************************/
+
+inquiry_scan_dispatch:
+	fetch 1,mem_scan_mode
+	rtnbit0 inq_scan_mode
+	force iscan_interval_timer,queue
+	call timer_check
+	nrtn blank
+	fetcht 2,mem_iscan_window
+	force 4,queue
+	call sniff_check_window
+	rtn user
+	call inquiry_scan_start
+	force iscan_interval_timer,queue
+	fetch 2,mem_iscan_interval
+	nbranch timer_init,sync
+	random pdata				/* inquiry scan backoff */
+	iand mask3ff,pdata
+	branch timer_init
+	
+
+inquiry_scan_start:
+	bpatch patch06_1,mem_patch06
+	jam 0,mem_fhs_am_addr
+	disable clknt
+	disable attempt
+	call afh_clear
+	and clkn_bt,0x1fc,bt_clk      /* freeze the clock, set bit[1] 0, this is version 1.1 */
+	force 0x01,freq_mode     /* slave in inquiry scan, kind of same as inquriy_response, this is version 1.1 */
+	call fetch_giac
+	call rx_radio_freq
+	setflip mark_inquiry_state,mark
+	fetch 1,mem_inquiryscan_waitcnt
+	increase 1,pdata
+	store 1,mem_inquiryscan_waitcnt
+	call fetch_diac
+	call start_receiver	/* get ready for that id packet */
+	call wait_access_forever	/* until there is timeout, or matched (true) */
+	nrtn sync
+	bpatch patch06_2,mem_patch06
+	force 0,stop_watch
+	call shutdown_radio	/* must have heard */
+	fetch 1,mem_inquiryscan_rcvcnt
+	increase 1,pdata
+	store 1,mem_inquiryscan_rcvcnt
+	call fetch_giac
+	call rf_setup_time_slave_slot
+	or_into 0x002,bt_clk               /* put clk(1) to 1 */
+	force 0x01,freq_mode               /* slave in inquriy and page, response only */
+	call tx_radio_freq
+	call fetch_diac
+	call start_transmitter	/* get ready for that id packet */
+	call start_tx_external
+	deposit clkn_bt
+	store 4,mem_clkn_bt
+	call send_access_word
+	force type_fhs,type
+	force 0,am_addr                       /* put 0 into am_addr field for fhs */
+	call scan_mode_whiten
+	call transmit_packet_whitened
+	call send_eir
+	and_into 0x1fd,bt_clk                 /* put clk(1) back to 0 */
+	increase 1,N_tx_slot
+	rtn
+
+send_eir:
+	bpatch patch06_3,mem_patch06
+	fetch 1,mem_eir_enable
+	rtn blank
+	arg mem_eir,contw
+	fetch 1,mem_local_name_length
+	copy pdata,loopcnt
+	increase 1,pdata
+	istore 1,contw	
+	copy contw,temp
+	increase 1,pdata
+	store 2,mem_tx_len	
+	copy temp,contw
+	setarg 0x09  //type:name
+	istore 1,contw		
+	arg  mem_local_name,contr
+	call memcpy       //name
+
+	arg mem_all_uuid_128bits,regc
+	arg 4,loopcnt
+	call get_all_uuid
+	arg mem_all_uuid_16bits,regc
+	arg 1,loopcnt
+	call get_all_uuid
+
+	force type_dm3,type		/* DM3 */
+	jam 2,mem_tx_lch
+	setarg mem_eir
+	store 2,mem_txptr
+	call rf_setup_time_slave_slot
+	call tx_radio_freq
+	call start_transmitter	/* get ready for that id packet */
+	call start_tx_external
+	call send_access_word
+	call scan_mode_whiten
+	call transmit_packet_whitened
+	rtn
+
+
+get_all_uuid:
+	copy contw,temp
+	copy regc,contr
+	ifetch 1,contr
+	rtn blank
+lshift_loop:
+	lshift pdata,pdata
+	loop lshift_loop
+	copy pdata,rega
+	increase 2,pdata
+	copy pdata,queue
+	fetch 2,mem_tx_len
+	iadd queue,pdata
+	store 2,mem_tx_len
+	copy temp,contw
+	copy rega,pdata
+	increase 1,pdata
+	istore 1,contw
+	copy regc,contr
+	ifetch 1,contr
+	ifetch 1,contr	//fetch type
+	istore 1,contw
+	copy rega,loopcnt
+	branch memcpy  //copy uuid
+	
+/******************************************/
+/******** Slave dispatch ***********/
+/******************************************/
+
+page_scan_dispatch:	
+	fetch 1,mem_scan_mode
+	rtnbit0 page_scan_mode
+	force pscan_interval_timer,queue
+	call timer_check
+	nrtn blank
+	fetcht 2,mem_pscan_window
+	force 40,queue
+	call sniff_check_window
+	rtn user
+	force 0,am_addr
+	jam param_pagerespto,mem_fhs_wait_counter
+	set0 mark_fhs_already_good,mark
+	call page_scan_start
+	force pscan_interval_timer,queue
+	fetch 2,mem_pscan_interval
+	branch timer_init
+	
+
+page_scan_start:
+	bpatch patch06_4,mem_patch06
+	disable clknt
+	call afh_clear
+	fetch 1,mem_pagescan_waitcnt
+	increase 1,pdata
+	store 1,mem_pagescan_waitcnt
+	force 0,N_tx_slot
+	call fetch_self_bt_adr
+	add clkn_bt,1,bt_clk      /* freeze the clock on native clock until scan window is up */
+	force 0x02, freq_mode     /* slave in inquiry and page, not response */
+	bpatch patch06_5,mem_patch06
+	call rx_radio_freq
+	call start_receiver	/* wait for that id packet from master */
+	call wait_access_forever
+	nrtn sync                          /* pscan window timeout occured, back to dispatch */
+	call shutdown_radio	/* got the id packet */
+	fetch 1,mem_pagescan_rcvcnt
+	increase 1,pdata
+	store 1,mem_pagescan_rcvcnt
+	force 0,stop_watch
+	call rf_setup_time_slave_slot
+	or_into 0x002,bt_clk               /* put clk(1) to 1 */
+	force 0x01,freq_mode               /* slave in inquriy and page, response only */
+	call tx_radio_freq
+	call start_transmitter
+	call start_tx_external
+	call send_access_word
+	call end_of_packet
+	force 0,am_addr
+	fetchr timeup,2,mem_param_rf_setup
+	until clke_rt,meet
+	or_into 0x03,clke_bt
+	and_into 0x1fd,bt_clk
+page_scan_wait_fhs_restart:
+	bpatch patch06_6,mem_patch06
+	increase 1,N_tx_slot
+	call rx_radio_freq
+	call start_receiver
+	call wait_access_mhalfbnd
+	nbranch page_scan_wait_fhs_again,sync	/* go back if didn't find access code */
+	call scan_mode_whiten
+	call receive_packet_whitened
+	bmark1 mark_fhs_already_good,page_scan_reply_to_fhs
+page_scan_wait_fhs_again:
+	bpatch patch06_7,mem_patch06
+	fetch 1,mem_fhs_wait_counter
+	rtn blank
+	increase -1,pdata
+	store 1,mem_fhs_wait_counter
+	call rf_setup_time_master_slot	/* set up expiration time */
+	branch page_scan_wait_fhs_restart
+
+
+page_scan_reply_to_fhs:
+	bpatch patch07_0,mem_patch07
+	set0 1,clke_bt
+	set1 0,clke_bt
+	fetch 1,mem_pagescan_rcvfhscnt
+	increase 1,pdata
+	store 1,mem_pagescan_rcvfhscnt
+	call rf_setup_time_slave_slot
+	or_into 0x02,bt_clk
+	call tx_radio_freq
+	call start_transmitter
+	call start_tx_external
+	call send_access_word
+	call end_of_packet
+slave_apply_clke_bt:
+	compare 0x03,clke_bt,0x03
+	branch slave_apply_clke_bt_now,true
+	until null,mhalfbnd
+	branch slave_apply_clke_bt
+slave_apply_clke_bt_now:
+	fetch 4,mem_clke_bt
+	or_into 0x03,pdata
+	icopy clke_bt
+
+start_slave_connection:
+	bpatch patch07_1,mem_patch07
+	fetch 6,extm_lap
+	store 6,mem_plap
+	call prepare_newconn
+slave_newconn_loop:
+	call slave_newconn_once
+	branch sconn_successful,match     /* we were talked to */
+	call new_conn_timeout
+	nbranch slave_newconn_loop,blank
+	rtn
+
+	
+sconn_successful:
+	bpatch patch07_2,mem_patch07
+	call newconn_init
+	call context_new
+	nrtn zero
+	jam 0,mem_mode
+	call calc_clke_offset
+	branch context_save
+
+
+
+
+slave_dispatch:
+	bpatch patch07_3,mem_patch07
+	call calc_clke
+	call role_switch_slave
+	rtn user
+slave_loop:
+	bpatch patch07_4,mem_patch07
+	call check_bt_disabled
+	call scheduler_process
+	call slave_conn_recv_packet	/* go listen for a packet */
+	nbranch slave_notmatch,match
+	fetch 2,mem_cb_bt_slave_match
+	call callback_func
+	call supervision_flush
+	call scheduler_tx_l2cap_pkt
+	call prepare_tx
+	call slave_conn_send_packet
+	call parse_l2cap
+	call parse_lmp
+	fetch 1,mem_slave_rcvcnt
+	increase 1,pdata
+	store 1,mem_slave_rcvcnt
+	call calc_clke_offset
+slave_notmatch:
+	bpatch patch07_5,mem_patch07
+	call lpm_set_mult
+	call supervision_update
+	branch slave_disconnect,positive
+	call check_disconnect_timeout
+	nbranch slave_disconnect,user
+	call check_attempt
+	nbranch slave_loop,blank
+	rtn
+
+slave_disconnect:
+	bpatch patch07_6,mem_patch07
+	jam 0,mem_tester_emulate
+	jam 0,mem_debug_config
+	call quit_connection
+	set0 mark_testmode,mark
+	call test_enable_white
+	fetch 1,mem_state
+	rtn
+
+
+role_switch_slave:
+	call role_switch_check
+	nrtn user
+	copy am_addr,temp
+	call get_free_amaddr
+	store 1,mem_fhs_am_addr
+	copy temp,am_addr
+	jam param_newconnto,mem_newconnto_counter
+roles_sendfhs_loop:
+	bpatch patch07_7,mem_patch07
+	call rf_setup_time_master_slot
+	force type_fhs,type
+	call slave_send_access
+	deposit clkn_bt
+	store 4,mem_clkn_bt
+	call transmit_packet
+	call rf_setup_time_slave_slot
+	enable user3
+	call slave_receive_access
+	branch roles_got_fhs_reply,sync
+	call shutdown_radio
+	call new_conn_timeout
+	nbranch roles_sendfhs_loop,blank
+	rtnmark0 mark_accept_switch
+	jam LMP_SLOT_OFFSET,mem_lmo_opcode2
+	set1 mark_switch_initiated,mark
+	rtn
+roles_got_fhs_reply:
+	enable clknt
+	call prepare_newconn
+	call afh_clear
+roles_newconn_loop:
+	bpatch patch08_0,mem_patch08
+	call master_newconn_once
+	branch roles_newconn_responded,sync
+	call new_conn_timeout
+	nbranch roles_newconn_loop,blank
+	disable clknt
+	deposit clke_bt
+	store 4,mem_next_btclk
+	rtn
+roles_newconn_responded:
+	enable master
+	bmark0 mark_accept_switch,roles_newconn_nolmp
+	set0 mark_accept_switch,mark
+	jam LMP_ACCEPTED,mem_lmo_opcode2
+	jam LMP_HOST_CONNECTION_REQ,mem_lmi_opcode2
+	call tid_set_reply
+roles_newconn_nolmp:
+	deposit am_addr
+	store 1,mem_amaddr
+	force 0,pdata
+	store 6,mem_clk_offset
+	fetch 1,mem_mode
+	set1 mode_master,pdata
+	store 1,mem_mode
+	call supervision_flush
+	disable master
+	enable user
+	rtn
+
+	
+
+init_rx_packet_flags:
+	bpatch patch08_1,mem_patch08
+	disable match
+	set0 mark_loopback,mark
+	set0 mark_am_addr_broadcast,mark          /* initialize slave flags */
+	set0 mark_longpacket,mark
+	set0 mark_old_packet,mark
+	fetch 1,mem_arq    /* mem_arq + am_addr */
+	set0 arqnx,pdata
+	set1 flowx,pdata
+	store 1,mem_arq
+	rtn
+
+prepare_newconn:
+	bpatch patch08_2,mem_patch08
+	jam param_newconnto,mem_newconnto_counter
+	jam param_newconn_arq,mem_arq
+	fetch 2,mem_rx_window_init
+	store 2,mem_rx_window
+	deposit clkn_bt
+	store 4,mem_next_btclk
+	rtn clknt
+	deposit clke_bt
+	store 4,mem_next_btclk
+	rtn
+
+newconn_init:
+	bpatch patch08_3,mem_patch08
+	call init_lmp_reinit
+	call new_conn_handle
+	store 1,mem_conn_handle
+	setarg 0
+	store 2,mem_l2cap_rxbuff1_len
+	setarg param_supervision_to
+	store 2,mem_supervision_to
+	fetch 1,mem_state
+	set1 state_inconn,pdata
+	store 1,mem_state
+	jam 0,mem_op
+	jam 0,mem_state_map
+	jam 0,mem_lpm_current_mult
+	branch supervision_flush
+	
+
+clear_linkkey:
+	bpatch patch08_4,mem_patch08
+	force 0,pdata
+	store 8,mem_link_key
+	istore 8,contw
+	call clear_linkstate
+	branch context_traverse_linkkey
+	
+new_conn_timeout:
+	fetch 1,mem_newconnto_counter
+	increase -1,pdata
+	store 1,mem_newconnto_counter
+	rtn
+
+new_conn_handle:
+	fetch 1,mem_handle_num
+	increase 1,pdata
+	store 1,mem_handle_num
+	rtn
+
+
+quit_connection:
+	bpatch patch08_5,mem_patch08
+	fetch 1,mem_hci_cmd
+	beq hci_cmd_remote_name_req,quit_connection_name
+	fetch 1,mem_lmp_to_send
+	bne LMP_NAME_REQ,quit_connection_cont
+quit_connection_name:
+	call cmd_check_plap
+	nbranch quit_connection_cont,zero
+	call master_name_error
+	jam 0,mem_hci_cmd
+quit_connection_cont:
+	bpatch patch08_6,mem_patch08
+	call app_disconn_reason_collect_bt
+	call sniff_exit
+	jam BT_EVT_BB_DISCONNECTED,mem_fifo_temp
+	call ui_ipc_send_event
+	call init_lmp_work
+	call l2cap_init_work
+ifdef SIMPLE_PAIRING
+	call sp_clear_flags
+endif
+	fetch 1,mem_state
+	set0 state_inconn,pdata
+	store 1,mem_state
+	jam 0,memui_reconnect_mode
+
+	fetch 1,mem_state_map
+	compare 0x0,pdata,0xc0
+	branch quit_connection_not_clear_mark,true
+	set0 mark_rxbuf_inuse,mark
+quit_connection_not_clear_mark:
+	fetch 1,mem_arq
+	bbit0 wack,quit_connection_not_clear_tx
+quit_connection_not_clear_tx:
+	fetch 1,mem_op
+	rtnbit0 op_txl2cap
+	set0 mark_tx_l2cap,mark
+	rtn
+
+slave_newconn_once:
+	bpatch patch08_7,mem_patch08
+	fetch 1,extm_newconn_am_addr
+	rtn blank     
+	icopy am_addr
+	call slave_conn_recv_packet
+	nrtn match
+	force type_null,type
+	call slave_conn_send_packet
+	deposit am_addr
+	store 1,mem_amaddr                 /* now the new am_addr is official */
+	force 0,pdata
+	store 1,extm_newconn_am_addr
+	rtn
+
+
+/******************************************/
+/********  Time consuming task  ***********/
+/******************************************/
+prepare_tx:
+	bpatch patch09_0,mem_patch09
+	fetch 1,mem_state
+	bbit0 state_insco,prepare_tx_not_sco
+	force type_hv3,type
+	bmark0 mark_esco,prepare_tx_not_esco
+	call check_esco_amaddr
+	nbranch prepare_tx_not_sco,true
+	branch prepare_tx_not_sco,attempt	
+	call set_wait_ack					/* send esco only at the first attempt */
+	setarg 2		/* esco only has 1 retry */
+	store 2,mem_retransmission_cnt
+	rtn
+
+prepare_tx_not_esco:
+	nrtn attempt						/* send sco only at the first attempt */
+prepare_tx_not_sco:
+	bpatch patch09_1,mem_patch09
+	call context_check_all_wack			 //abandon mark_retransmit, use context_check_all_wack instead.
+	nbranch prepare_tx_no_retransmit,zero
+	fetch 1,mem_arq
+	bbit0 wack,prepare_tx_pollnull		/* other wack, tx buffer in use, but not me */
+prepare_tx_retransmit:
+	bmark1 mark_loopback,prepare_tx_loopback
+	fetch 1,mem_debug_config
+	bbit1 debug_tx_pattern,prepare_tx_txpat
+	fetch 2,mem_retransmission_cnt
+	increase -1,pdata
+	store 2,mem_retransmission_cnt
+	branch prepare_tx_nomore_retransmit,blank
+	fetch 1,mem_last_type
+	iforce type
+	rtn
+
+prepare_tx_nomore_retransmit:
+	bpatch patch09_2,mem_patch09
+	call clear_got_tx
+prepare_tx_no_retransmit:
+	call check_esco_amaddr
+	branch prepare_tx_pollnull,true
+	call send_lmp
+	branch prepare_tx_sendlmp,user
+	fetch 1,mem_op
+	bbit1 op_txl2cap,prepare_tx_sendl2cap
+	bmark1 mark_loopback,prepare_tx_loopback
+	fetch 1,mem_debug_config
+	bbit1 debug_tx_pattern,prepare_tx_txpat
+prepare_tx_pollnull:
+	force type_poll,type				/* POLL for master */
+	rtn master
+	force type_null,type				/* default is NULL */
+	rtn
+prepare_tx_loopback:
+	bpatch patch09_3,mem_patch09
+	fetch 1,mem_rx_type
+	iforce type
+	rtnne 1
+	force type_null,type
+	rtn
+prepare_tx_txpat:
+	fetch 1,test_mode_packet_type
+	and pdata,0xf,type
+	set1 mark_loopback,mark
+	rtn
+prepare_tx_sendlmp:
+	force type_lmp,type
+	call set_wait_ack
+prepare_tx_ccm_edr_lmp:
+	call check_enc_ccm
+	rtn blank		
+	jam 3,mem_llid
+	fetch 1,mem_lmo_header_length
+	and pdata,0x1f8,pdata
+	rshift3 pdata,pdata
+	store 2,mem_ccm_len
+	copy pdata,rega
+	arg mem_lmo_header_opcode,regc
+	branch ccm_br_enc_new	
+
+	
+prepare_tx_sendl2cap:
+	call tx_l2cap_type
+	call set_wait_ack
+prepare_tx_ccm_edr:
+	call check_enc_ccm
+	rtn blank		
+	fetch 1,mem_tx_lch
+	and_into 3,pdata
+	store 1,mem_llid
+	fetch 2,mem_tx_len
+	copy pdata,rega
+	store 2,mem_ccm_len
+	fetch 2,mem_txptr
+	copy pdata,regc
+	branch ccm_br_enc_new
+	
+	
+set_wait_ack:
+	bpatch patch09_4,mem_patch09
+	fetcht 1,mem_arq
+	set1 wack,temp
+	storet 1,mem_arq
+	deposit type
+	store 1,mem_last_type
+	setarg 0xffff
+	store 2,mem_retransmission_cnt
+	rtn
+
+tx_l2cap_type:
+	bpatch patch09_5,mem_patch09
+	fetch 1,mem_state_map
+	isolate1 smap_edr,pdata
+	fetch 2,mem_tx_len
+	branch tx_l2cap_type_edr,true
+	force type_dm1,type		/* DM1 */
+	sub pdata,17,null			
+	rtn positive
+	force type_dh1,type		/* DH1 */
+	sub pdata,27,null				
+	rtn positive
+	force type_dm3,type		/* DM3 */
+	sub pdata,121,null
+	rtn positive
+	force type_dh3,type		/* DH3 */
+	sub pdata,183,null
+	rtn positive	
+	force type_dm5,type		/* DM5 */
+	sub pdata,224,null
+	rtn positive
+	force type_dh5,type		/* DH5 */
+	rtn
+tx_l2cap_type_edr:
+	force type_dm1,type
+	sub pdata,17,null
+	rtn positive
+	force type_dh1,type		/*2-DH1*/
+	sub pdata,54,null
+	rtn positive
+	force type_dm3,type		/*2-DH3*/
+	arg 367,temp
+	isub temp,null
+	nrtn positive
+	force type_dm5,type		/*2-DH5*/
+	arg 679,temp
+	isub temp,null
+	nrtn positive
+	force type_dh5,type		/*3-DH5*/
+	rtn
+
+
+/******************************************/
+/***********  Receive Packet  *************/
+/******************************************/
+
+
+
+slave_receive_master_slot:
+	fetch 1,mem_state
+	bbit0 state_insniff,slave_receive_notsniff
+	fetch 2,mem_tsniff
+	branch slave_receive_notsniff,blank		/* role switch */
+	nbranch slave_receive_sniff,attempt
+slave_receive_notsniff:
+	call rf_setup_time_master_slot
+slave_receive_access:
+	add clke_bt,1,bt_clk
+slave_receive_sniff:
+	enable swfine
+	fetch 2,mem_rx_window
+	rshift pdata,pdata
+	fetcht 2,mem_param_pll_setup
+	iadd temp,pdata
+	call ahead_window
+	call fetch_extm_bt_adr
+	force 0x03,freq_mode          /* connection hop */
+	call rx_radio_freq
+	call init_rx_packet_flags
+	call prep_crypt
+	bpatch patch09_6,mem_patch09
+	fetch 2,mem_rx_window
+	rshift pdata,pdata
+	call ahead_window
+	call start_receiver
+	enable decode_fec0
+	fetch 2,mem_rx_window
+	fetcht 2,mem_param_clke_cal
+	iadd temp,stop_watch
+	correlate null,timeout
+	copy clke,temp
+	storet 6,mem_sync_clke
+	disable decode_fec0
+	nrtn sync
+	fetch 2,mem_param_clke_cal
+	copy pdata,clke_rt
+	copy bt_clk,clke_bt
+	branch lpm_adjust_clk,wake
+	rtn
+
+
+slave_conn_recv_packet:
+	bpatch patch09_7,mem_patch09
+	call slave_receive_master_slot
+	nbranch shutdown_radio,sync
+	call save_rssi
+	bmark0 mark_testmode,receive_packet
+	fetch 2,mem_tst_pktcnt_sync
+	increase 1,pdata
+	store 2,mem_tst_pktcnt_sync
+receive_packet:
+	call rf_debug_rx_sync_line	//L-H
+	rshift bt_clk,temp
+	or temp,0x40,white_init
+receive_packet_whitened:
+	bpatch patch0a_0,mem_patch0a
+	enable enable_white
+	enable enable_hec
+	enable decode_fec1
+	parse demod,bucket,3  /* get am_addr */
+	rshift8 pwindow,pdata
+	store 1,mem_temp_am_addr
+	parse demod,bucket,4  /* get type */
+	inject bucket,7       /* align up to pwindow */
+	copy pwindow,pdata
+	store 1,mem_rx_type
+	parse demod,bucket,3  /* get arq */
+	rshift8 pwindow,pdata
+	store 1,mem_temp_arq
+	fetch 1,mem_rx_type
+	sub pdata,3,null
+	branch receive_packet_noedr,positive
+	beq 7,receive_packet_noedr		/* esco packet */
+	fetch 1,mem_state_map
+	isolate1 smap_edr,pdata
+	setflag true,PSK,radio_ctrl
+receive_packet_noedr:
+	bpatch patch0a_1,mem_patch0a
+	parse demod,bucket,8   /* cycle thru hec */
+	disable decode_fec1
+	disable enable_hec   /* at this moment, 1 seqn + 8 hec is in shift */
+	branch error_header,crc_failed  /* if hec error, nothing is valid */
+	bmark0 mark_testmode,receive_packet_amchk
+	fetch 2,mem_tst_pktcnt_hec
+	increase 1,pdata
+	store 2,mem_tst_pktcnt_hec
+receive_packet_amchk:	
+	bpatch patch0a_2,mem_patch0a
+	fetch 1,mem_temp_am_addr
+	compare 0,pdata,0x07           /* check for broadcast */
+	setflag true,mark_am_addr_broadcast,mark   /* received a broadcast message, can fire ar_addr if during unpark_req */
+	branch am_addr_ok,true
+	icompare 0x07,am_addr
+	branch am_addr_match,true
+	bmark0 mark_esco,end_of_packet
+	fetch 1,mem_arq    /* mem_arq + am_addr */
+	set0 arqnx,pdata
+	set1 flowx,pdata
+	store 1,mem_arq
+am_addr_match:
+	call rf_debug_rx_match_line	//L
+	enable match
+am_addr_ok:
+	bpatch patch0a_3,mem_patch0a
+	fetch 1,mem_rx_type
+	icopy type
+	bmark1 mark_am_addr_broadcast,arqn_bypass        /* arqn doesn't make sense */
+	fetcht 1,mem_temp_arq
+	fetch 1,mem_arq
+	set0 flow,pdata
+	isolate1 flow,temp
+	setflag true,flow,pdata
+	isolate1 arqn,temp
+	setflag true,arqn,pdata
+	store 1,mem_arq
+	isolate0 arqn,temp
+	branch arqn_bypass,true
+	call clear_got_tx
+arqn_bypass:
+	bpatch patch0a_4,mem_patch0a
+	arg 0,temp
+	call reserve_slot
+	and type,0xf,pdata
+	beq type_poll,process_poll
+	beq type_null,end_of_packet	/* null */
+	beq type_fhs,process_fhs
+	fetcht 1,mem_temp_arq
+	fetch 1,mem_arq
+	icompare 0x04,temp    /* bit 2 is seqn */
+	nbranch rx_type_dispatch,true   /* different then it's new */
+	bmark0 mark_am_addr_broadcast,failed_seqn         /* seqn failed, and not broadcast */
+	bbit0 bcast1,rx_type_dispatch           /* first broadcast never fail seqn */
+failed_seqn:
+	set1 mark_old_packet,mark
+rx_type_dispatch:
+	bpatch patch0a_5,mem_patch0a
+	deposit type
+	beq type_dm1, process_dm1
+	beq type_dh1, process_dh1
+	beq type_3dh1, process_3dh1
+	arg 4,temp
+	call reserve_slot
+	beq type_dm3, process_dm3
+	beq type_dh3, process_dh3
+	arg 8,temp
+	call reserve_slot
+	beq type_dm5, process_dm5
+	beq type_dh5, process_dh5
+	rtn
+
+
+
+
+process_poll:
+	branch end_of_packet
+
+process_dm3:
+process_dm5:
+	set1 mark_longpacket,mark
+process_dm1:
+	enable decode_fec2
+	branch process_dmh
+	
+process_dh3:
+process_dh5:
+	set1 mark_longpacket,mark
+process_3dh1:
+	set1 PSK3M,radio_ctrl
+process_dh1:
+	enable decode_fec0
+process_dmh:
+	bpatch patch0a_6,mem_patch0a
+	bmark1 mark_first_packet,end_of_packet
+	bmark1 mark_rxbuf_inuse,end_of_packet			/* buffer in use, nack */
+	isolate0 PSK,radio_ctrl
+	branch process_dmh_noedr,true
+	disable enable_white
+	enable decode_fec0
+	disable decode_fec2
+	add clkn_bt,2,timeup
+	correlate clkn_bt,meet
+	nbranch error_payload,sync
+	set1 mark_longpacket,mark
+	enable enable_white
+process_dmh_noedr:
+	bpatch patch0a_7,mem_patch0a
+	enable encrypt
+	enable enable_crc
+	parse demod,bucket,3  /* parse in lch+l2cap flow */
+	rshift8 pwindow,pdata
+	store 1,mem_lch_code		/* for loopback */
+	parse demod,bucket,5  /* parse in 5 bit packetlength */
+	bmark1 mark_longpacket,process_dmh_long
+	rshift3 pwindow,loopcnt
+	rshift3 loopcnt,loopcnt
+	branch process_dmh_common
+process_dmh_long:
+	parse demod,bucket,5		/* multi slot packet length of dh3 dh5 dm3 dm5 */
+	rshift pwindow,loopcnt
+	parse demod,bucket,3  /* undefined+bit 9 of length */
+process_dmh_common:	
+	bpatch patch0b_0,mem_patch0b
+	deposit loopcnt
+	store 2,mem_len
+	branch process_dmh_data_0,blank
+	call check_enc_ccm
+	branch process_dmh_common2,blank
+process_dmh_common2_ccm:
+	increase 4,loopcnt
+	deposit loopcnt
+process_dmh_common2:	
+	isub mask3ff,null
+	branch error_payload,positive	/* packet too large, discard */
+	bpatch patch0b_1,mem_patch0b
+	set0 mark_fhs_eir,mark
+	fetch 1,mem_lch_code
+	and_into 0x03,pdata
+	arg mem_rxbuf,contw //lmp_data or test packet
+	beq LLID_LMP,process_lmp
+	bmark1 mark_testmode,process_dmh_data
+	//non-HCI mode
+	fetch 1,mem_lch_code
+	and_into 0x03,pdata
+	beq LLID_L2CAP_START,process_dmh_data_l2cap_start_pkt
+	beq LLID_L2CAP_CONT,process_dmh_data_l2cap_continue_pkt
+	branch error_payload
+
+process_dmh_data_0:
+	call check_enc_ccm
+	branch process_dmh_data_end,blank
+	parse demod,bucket,32
+	rshift32 pdata,pdata
+	rshift8 pdata,pdata
+	store 4,mem_le_peer_mic
+	branch process_dmh_data_end
+	
+//blank not enc_ccm
+check_enc_ccm:
+	fetch 1,mem_state_map
+	bbit0 smap_encryption,enable_blank
+	fetch 1,mem_encapsulated_minor_type
+	bne ENCAPSULATED_MINOR_TYPE_P256,enable_blank
+	branch disable_blank
+	
+process_lmp:
+	fetch 2,mem_len
+	sub pdata,17,null		//lmp buffer size
+	nbranch error_payload,positive
+	bmark1 mark_old_packet,ack_payload
+	branch process_dmh_data
+
+	
+process_dmh_data_l2cap_start_pkt:
+	bpatch patch0b_2,mem_patch0b
+	bmark1 mark_old_packet,ack_payload
+	fetch 2,mem_len
+	arg 0x2e0,temp //l2cap buffer size
+	isub temp,null
+	branch error_payload,positive
+	fetch 1,mem_l2cap_rxbuff_inuse
+	bbit0 L2CAP_INUSE_BUFF1,process_dmh_data_into_buff1
+	bbit0 L2CAP_INUSE_BUFF2,process_dmh_data_into_buff2
+	branch end_of_packet
+process_dmh_data_into_buff1:
+	jam 1,mem_l2cap_rxbuff_new //new data in buff 1
+	fetch 2,mem_l2cap_rxbuff1_len
+	bne 0,end_of_packet			//baseband head error
+	arg mem_l2cap_rxbuff1,contw
+	branch process_dmh_data
+process_dmh_data_into_buff2:
+	jam 2,mem_l2cap_rxbuff_new //new data in buff 2
+	fetch 2,mem_l2cap_rxbuff2_len
+	bne 0,end_of_packet
+	arg mem_l2cap_rxbuff2,contw
+	branch process_dmh_data
+	
+process_dmh_data_l2cap_continue_pkt:
+	bpatch patch0b_3,mem_patch0b
+	bmark1 mark_old_packet,ack_payload
+	fetch 2,mem_len
+	arg 0x2e0,temp //l2cap buffer size
+	isub temp,null
+	branch error_payload,positive
+	fetch 1,mem_l2cap_rxbuff_new
+	beq 1,process_dmh_data_l2cap_continue_pkt1
+	beq 2,process_dmh_data_l2cap_continue_pkt2
+	branch end_of_packet
+process_dmh_data_l2cap_continue_pkt1:
+	arg mem_l2cap_rxbuff1,contw
+	fetch 2,mem_l2cap_rxbuff1_len
+	iadd contw,contw
+	branch process_dmh_data
+process_dmh_data_l2cap_continue_pkt2:
+	arg mem_l2cap_rxbuff2,contw
+	fetch 2,mem_l2cap_rxbuff2_len
+	iadd contw,contw
+process_dmh_data:	
+	parse demod,bucket,8
+	rshift3 pwindow,pdata
+	istore 1,contw
+	loop process_dmh_data
+process_dmh_data_end:	
+	bpatch patch0b_4,mem_patch0b
+	parse demod,bucket,16  /* cycle through the crc */
+	branch error_payload_crc,crc_failed
+	call check_enc_ccm
+	call enable_user2
+	ncall ccm_br_decrypt_new,blank
+	nbranch error_mic_error,user2
+	call rf_debug_rx_crc_line	//L
+
+	fetch 1,mem_l2cap_flow_ctrl_flag
+	beq L2CAP_FLOW_CTRL_ENABLE,flow_ctrl
+
+	bmark1 mark_testmode,process_dmh_cont
+	bmark1 mark_old_packet,redundant_payload
+	fetch 1,mem_lch_code
+	compare 3,pdata,3
+	branch process_dmh_cont,true
+	fetch 2,mem_len
+	branch process_dmh_cont,blank
+	bpatch patch0b_5,mem_patch0b
+	fetch 1,mem_l2cap_rxbuff_new
+	beq 1,process_l2cap_pass_crc_buff1
+	beq 2,process_l2cap_pass_crc_buff2
+	branch assert
+process_l2cap_pass_crc_buff1:
+	fetch 2,mem_l2cap_rxbuff1_len
+	fetcht 2,mem_len
+	iadd temp,pdata
+	store 2,mem_l2cap_rxbuff1_len
+	rtn blank
+	fetcht 2,mem_l2cap_rxbuff1// l2cap payload length
+	increase 4,temp
+	isub temp,null
+	call l2cap_buff1_inuse,zero //l2cap pkts not ended
+	branch process_dmh_cont
+process_l2cap_pass_crc_buff2:
+	fetch 2,mem_l2cap_rxbuff2_len
+	fetcht 2,mem_len
+	iadd temp,pdata
+	store 2,mem_l2cap_rxbuff2_len
+	rtn blank
+	fetcht 2,mem_l2cap_rxbuff2// l2cap payload length 
+	add temp,4,temp
+	isub temp,null
+	call l2cap_buff2_inuse,zero //l2cap pkts not ended
+//	branch process_dmh_cont
+process_dmh_cont:
+	bpatch patch0b_6,mem_patch0b
+	fetcht 1,mem_state_map
+	fetch 1,mem_lch_code
+	compare 3,pdata,0x03
+	setflag true,smap_rxlmp,temp
+	nsetflag true,smap_rxl2cap,temp
+	storet 1,mem_state_map
+	nbranch process_dmh_cont_rxbuf_not_use,true
+	set1 mark_rxbuf_inuse,mark
+process_dmh_cont_rxbuf_not_use:
+	bmark0 mark_testmode,ack_payload
+	isolate1 smap_rxlmp,temp
+	branch ack_payload,true
+	fetch 2,mem_tst_pktcnt_crc
+	increase 1,pdata
+	store 2,mem_tst_pktcnt_crc
+	set1 mark_loopback,mark
+	set0 smap_rxl2cap,temp
+	set0 mark_rxbuf_inuse,mark
+	storet 1,mem_state_map
+ack_payload:
+	bpatch patch0b_7,mem_patch0b
+	call check_enc_ccm
+	ncall ccm_br_pcnt_rx_add,blank
+	fetcht 1,mem_temp_arq
+	fetch 1,mem_arq
+	set1 arqnx,pdata
+	isolate1 seqn,temp            /* if accept, seqn always copies from the header */
+	setflag true,seqn,pdata
+	isolate1 mark_am_addr_broadcast,mark
+	setflag true,bcast1,pdata
+	store 1,mem_arq
+	fetch 2,mem_len
+	nbranch end_of_packet,blank
+	fetch 1,mem_state_map
+	set0 smap_rxl2cap,pdata//better to do this in l2cap_flow_ctrl_stop
+	store 1,mem_state_map
+	fetch 1,mem_lch_code
+	compare 0x01,pdata,0x07
+	//call l2cap_flow_ctrl_stop,true
+	branch end_of_packet
+	
+error_header:
+	bpatch patch0c_0,mem_patch0c
+	disable match
+	fetch 2,mem_rx_hec_err
+	increase 1,pdata
+	store 2,mem_rx_hec_err
+	branch end_of_packet
+error_payload_crc:
+	fetch 2,mem_rx_crc_err
+	increase 1,pdata
+	store 2,mem_rx_crc_err
+	call discard_pkt
+	bmark0 mark_testmode,error_payload
+	set1 mark_loopback,mark
+error_payload:
+	branch end_of_packet
+
+flow_ctrl:
+error_mic_error:
+	branch error_payload_crc
+
+	
+discard_pkt:
+	bpatch patch0c_1,mem_patch0c
+	fetch 1,mem_lch_code
+	compare 3,pdata,0x03
+	nbranch discard_pkt_l2cap,true
+discard_pkt_lmp:	
+	fetcht 1,mem_state_map
+	set0 smap_rxlmp,temp
+	storet 1,mem_state_map
+	rtn
+discard_pkt_l2cap:
+//	isolate1 mark_testmode,mark
+//	setflag true,mark_loopback,mark
+	fetcht 1,mem_state_map
+	set0 smap_rxl2cap,temp
+	storet 1,mem_state_map
+	rtn
+
+redundant_payload:
+	fetch 1,mem_arq
+	set1 arqnx,pdata
+	store 1,mem_arq
+end_of_packet:
+	bpatch patch0c_2,mem_patch0c
+	disable encode_fec0
+	disable encode_fec2
+	disable decode_fec0
+	disable decode_fec2
+	disable enable_crc
+	disable encrypt
+	disable enable_white
+	branch shutdown_radio,is_rx
+	until null,tx_clear
+	nop 100          /* flush out the last bit */
+	branch shutdown_radio
+	
+process_fhs:
+	bpatch patch0c_3,mem_patch0c
+	enable enable_crc
+	enable decode_fec2
+	parse demod,bucket,72
+	isolate1 58,pdata
+	setflag true,mark_fhs_eir,mark
+	copy bt_adr,temp             /* save current address to aside */
+	ialigned bt_adr            /* send it to access gen */
+	ialigned fhs0			/* get fhs_misc */
+	pulse recalc                /* calc the lap just received from the other guy */
+	setsect 2,0xfffff             /* preset ms of shift reg as big mask */
+	setsect 3,0x0ffff             /* preset ms of shift reg as big mask */
+	nop 32                       /* 30 cycles after recalc */
+	iverify fhs_parity             /* check fhs_parity against ls 34 bits at shift reg, with msb 36 bits as mask */
+	deposit lap
+	store 3,extm_lap
+	deposit uap
+	store 1,extm_uap
+	copy temp,bt_adr             /* put the address back */
+	branch fhs_parity_ok,true     /* fhs parity failed */
+	branch error_payload
+fhs_parity_ok:
+	bpatch patch0c_4,mem_patch0c
+	parse demod,bucket,72
+	ialigned fhs1                   /* give host the information on class and fhs_misc */
+	ialigned am_addr                /* store the am_addr the master assigned us */
+	ialigned nap
+	ialigned regb                   /* store external clock in regb according to clock format */
+	force 0,pdata
+	parse demod,bucket,16  /* cycle through the crc */
+	branch error_payload,crc_failed
+	call rf_debug_rx_crc_line	//L
+	setarg 0x0ffffffc
+	iand regb,pdata
+	store 4,mem_clke_bt
+	deposit fhs_class
+	store 3,extm_class
+	deposit fhs_misc
+	store 1,extm_fhs_misc
+	deposit am_addr
+	store 1,extm_newconn_am_addr
+	deposit nap
+	store 2,extm_nap
+	deposit bt_clk
+	inject rxf,32
+	compare type_fhs,type,0x0f         /* see if this was fhs packet */
+	setflag true,mark_fhs_already_good,mark
+	branch end_of_packet
+
+clear_got_tx:
+	bpatch patch0c_5,mem_patch0c
+	fetch 1,mem_arq
+	rtnbit0 wack
+	set0 wack,pdata
+	setflip seqnx,pdata
+	store 1,mem_arq
+	call check_enc_ccm
+	ncall ccm_br_pcnt_tx_add,blank
+	fetch 1,mem_last_type
+	beq type_lmp,clear_got_txlmp
+	rtneq type_hv3
+	fetch 1,mem_op
+	rtnbit0 op_txl2cap,pdata
+	set0 op_txl2cap,pdata
+	set1 op_pkt_comp,pdata
+	store 1,mem_op
+	set0 mark_tx_l2cap,mark
+	fetch 2,mem_l2cap_tx_multi_offset
+	nrtn blank
+	fetch 1,mem_op
+	set0 op_pkt_comp,pdata
+	store 1,mem_op
+	branch l2cap_malloc_free
+
+clear_got_txlmp:
+	bpatch patch0c_6,mem_patch0c
+	fetch 1,mem_lmo_header_opcode_x
+	rshift pdata,pdata
+	beq LMP_START_ENCRYPTION_REQ,start_encryption
+	beq LMP_STOP_ENCRYPTION_REQ,stop_encryption
+	beq LMP_UNSNIFF_REQ, sniff_exit
+	beq LMP_ESCAPE,clear_lmp_escape
+	rtnne LMP_ACCEPTED
+	fetch 1,mem_lmo_payload
+	beq LMP_START_ENCRYPTION_REQ,clear_send_setup_complete
+	rtn
+
+clear_lmp_escape:
+	fetch 1,mem_lmo_payload
+	set1 7,pdata
+	rtn
+clear_send_setup_complete:
+	rtn master
+	fetch 1,mem_state
+	rtnbit1 state_conn_comp
+	jam LMP_SETUP_COMPLETE,mem_lmo_opcode2
+	rtn
+	
+	
+start_encryption:
+	bpatch patch0c_7,mem_patch0c
+	fetch 1,mem_state_map
+	set1 smap_encryption,pdata
+	store 1,mem_state_map
+	jam 1,core_encrypt
+	force 0,pdata
+	store 5,mem_ccm_pcnt_rx
+	set1 BR_CCM_DIRECTIONBIT,pdata
+	store 5,mem_ccm_pcnt_tx	
+	rtn	
+
+stop_encryption:
+	bpatch patch0d_0,mem_patch0d
+	fetch 1,mem_state_map
+	set0 smap_encryption,pdata
+	store 1,mem_state_map
+	jam 0,core_encrypt
+	rtn
+
+
+sniff_init:
+	bpatch patch0d_1,mem_patch0d
+	copy clkn_bt,pdata
+	store 4,mem_lpm_delay_after_sniff
+	add clkn_bt,3,rega
+	branch sniff_init_master,master
+	add clke_bt,3,rega
+sniff_init_master:
+	fetcht 2,mem_tsniff
+	deposit rega
+	set0 27,pdata
+	idiv temp
+	fetch 2,mem_dsniff
+	call wait_div_end
+	remainder regc
+	isub regc,pdata
+	branch sniff_init_nowrap,positive
+	iadd temp,pdata
+sniff_init_nowrap:
+	iadd rega,pdata
+	store 4,mem_sniff_anchor
+	jam SWITCH_FLAG_INIT,mem_switch_flag
+	fetch 1,mem_state
+	set1 state_insniff,pdata
+	store 1,mem_state
+	fetch 1,mem_sniff_attempt
+	store 1,mem_current_sniff_attempt
+	setarg 0
+	store 3,mem_sniff_rcv
+	store 3,mem_sniff_lost
+	store 1,mem_sniff_unint_lost
+	jam BT_EVT_ENTER_SNIFF,mem_fifo_temp
+	call ui_ipc_send_event
+	fetch 2,mem_rx_window_sniff
+	store 2,mem_rx_window
+	nrtn master
+	add am_addr,-1,queue
+	rtn
+
+sniff_exit:
+	bpatch patch0d_2,mem_patch0d
+	fetch 1,mem_state
+	rtnbit0 state_insniff
+	set0 state_insniff,pdata
+	store 1,mem_state
+	fetch 2,mem_rx_window_init
+	store 2,mem_rx_window
+	disable wake
+	jam BT_EVT_EXIT_SNIFF,mem_fifo_temp
+	branch ui_ipc_send_event
+
+
+check_attempt:
+	bpatch patch0d_3,mem_patch0d
+	enable attempt
+	fetch 1,mem_state
+	bbit1 state_insniff,check_attempt_sniff
+	rtnmark1 mark_testmode						/* pdata won't be blank now, try attempt */
+	fetch 1,mem_arq
+	rtnbit1 wack
+	fetch 1,mem_lmp_to_send
+	nrtn blank
+	fetch 1,mem_op
+	rtnbit1 op_txl2cap
+check_attempt_nomore:
+	force 0,pdata
+	rtn
+
+check_attempt_sniff:
+	bbit0 state_insco,check_attempt_not_sco
+	fetch 1,mem_current_sniff_attempt
+	beq 2,check_attempt_sniff_restore_sco
+	fetch 1,mem_arq
+	bbit1 wack,check_attempt_notimeout
+	bmark0 mark_esco_rxok,check_attempt_notimeout
+check_attempt_sniff_restore_sco:
+	nbranch check_attempt_notimeout,master
+	fetch 1,mem_lmp_to_send
+	nbranch check_attempt_notimeout,blank
+check_attempt_sco_master:
+	branch check_attempt_nomore
+
+
+
+
+
+	
+check_attempt_not_sco:
+	fetch 1,mem_current_sniff_attempt
+	bne 1,check_attempt_notimeout
+	fetch 1,mem_current_sniff_timeout
+	branch check_attempt_notimeout,blank
+	increase -1,pdata
+	store 1,mem_current_sniff_timeout
+	fetch 1,mem_arq
+	rtnbit1 wack						// waiting for next ack
+	nrtn match						// waiting for next poll
+check_attempt_notimeout:
+	fetch 1,mem_current_sniff_attempt
+	increase -1,pdata
+	store 1,mem_current_sniff_attempt
+	rtn
+
+
+
+
+
+
+
+
+
+	/* enable user if sniff window vialation, queue is extra overhead */
+sniff_check_window:
+	bpatch patch0d_4,mem_patch0d
+	disable swfine
+	copy temp,stop_watch
+	call context_search_sniff_window
+	disable user
+	nrtn zero
+	force 0,stop_watch
+	enable user
+	rtn
+
+	//return true if it is esco context
+check_esco_amaddr:
+	fetch 1,mem_esco_addr
+	icompare 0xff,am_addr
+	rtn
+	
+
+parse_l2cap:	
+	bpatch patch0d_5,mem_patch0d
+	set0 mark_rxbuf_inuse,mark 
+parse_l2cap_cont:
+	jam L2CAP_RX_CLEAR,mem_l2cap_rx_done
+	fetch 1,mem_l2cap_rxbuff_inuse
+	rtn blank
+	isolate1 L2CAP_INUSE_BUFF1,pdata
+	arg mem_l2cap_rxbuff1,contr
+	call process_rx_l2cap_pkt,true
+	bpatch patch0d_6,mem_patch0d
+	fetch 1,mem_l2cap_rx_done
+	beq L2CAP_RX_DONE,parse_l2cap_release_buff1
+	
+	jam L2CAP_RX_CLEAR,mem_l2cap_rx_done
+	fetch 1,mem_l2cap_rxbuff_inuse
+	rtnbit0 L2CAP_INUSE_BUFF2
+	arg mem_l2cap_rxbuff2,contr	
+	call process_rx_l2cap_pkt
+	fetch 1,mem_l2cap_rx_done
+	beq L2CAP_RX_DONE,parse_l2cap_release_buff2
+	rtn
+		
+parse_l2cap_release_buff1:
+	fetch 1,mem_l2cap_rxbuff_inuse
+	set0 L2CAP_INUSE_BUFF1,pdata
+	store 1,mem_l2cap_rxbuff_inuse
+	setarg 0
+	store 2,mem_l2cap_rxbuff1_len
+	rtn
+parse_l2cap_release_buff2:
+	fetch 1,mem_l2cap_rxbuff_inuse
+	set0 L2CAP_INUSE_BUFF2,pdata
+	store 1,mem_l2cap_rxbuff_inuse
+	setarg 0
+	store 2,mem_l2cap_rxbuff2_len
+	rtn
+
+l2cap_buff1_inuse:
+	fetch 1,mem_l2cap_rxbuff_inuse
+	set1 L2CAP_INUSE_BUFF1,pdata
+	store 1,mem_l2cap_rxbuff_inuse
+	rtn
+
+l2cap_buff2_inuse:
+	fetch 1,mem_l2cap_rxbuff_inuse
+	set1 L2CAP_INUSE_BUFF2,pdata
+	store 1,mem_l2cap_rxbuff_inuse
+	rtn
+
+/******************************************/
+/**********  Transmit Packet  *************/
+/******************************************/
+
+slave_send_access:
+	bpatch patch0d_7,mem_patch0d
+	add clke_bt,1,bt_clk          /* slave start to use native clock */
+	call fetch_extm_bt_adr
+	force 0x03,freq_mode          /* connection frequency */
+	call tx_radio_freq
+	call start_transmitter
+	call start_tx_external
+	branch send_access_word
+	
+
+slave_conn_send_packet:
+	bpatch patch0e_0,mem_patch0e
+	call rf_setup_time_slave_slot
+	deposit clke_bt
+	fetcht 4,mem_next_btclk
+	isub temp,pdata
+	rtnne 1					/* missed slave slot */
+	compare type_null,type,0x1f
+	nbranch slave_conn_send_access,true
+	fetch 1,mem_rx_type
+	rtn blank					/* null packet, do nothing */
+slave_conn_send_access:
+	call slave_send_access
+transmit_packet:
+	compare type_id,type,0x1f        /* is this id only ? */
+	branch end_of_packet,true
+	rshift bt_clk,temp
+	or temp,0x40,white_init
+transmit_packet_whitened:
+	bpatch patch0e_1,mem_patch0e
+	enable enable_white
+	enable enable_hec
+	enable encode_fec1
+	set0 mark_longpacket,mark
+	deposit am_addr
+	inject mod,3             /* am_addr, temp is disabled */
+	deposit type
+	inject mod,4
+	fetch 1,mem_arq   /* aka mem_arq */
+	inject bucket,4  /* align up to flowx, arqnx, seqnx */
+	inject mod,3
+	enable enable_parity
+	inject mod,8   /* transmit parity */
+	disable encode_fec1
+	disable enable_parity
+	disable enable_hec
+	set0 PSK3M,radio_ctrl
+	arg 0,temp
+	call reserve_slot
+	bpatch patch0e_2,mem_patch0e
+	and type,0x1f,pdata
+	beq type_lmp, transmit_lmp
+	beq type_null, end_of_packet
+	beq type_poll, end_of_packet
+	beq type_fhs, transmit_fhs  /* master mode fhs need got_tx and ack */
+	beq type_dm1, transmit_dm1
+	beq type_dh1, transmit_dh1
+	beq type_3dh1, transmit_3dh1
+	arg 4,temp
+	call reserve_slot
+	beq type_dm3, transmit_dm3
+	beq type_dh3, transmit_dh3
+	arg 8,temp
+	call reserve_slot
+	beq type_dh5, transmit_dh5
+	branch transmit_dm5	/* must be 14, dm5 */
+
+
+	
+transmit_fhs:
+	bpatch patch0e_3,mem_patch0e
+	fetch 1,mem_fhs_am_addr            /* this is the am_addr to assign to slave */
+	icopy am_addr
+	fetch 1,mem_fhs_misc
+	icopy fhs_misc    /* [7:6]SR [5:4]SP [3:1]PS [0]undef  */
+	fetch 3,mem_class   /* store away class */
+	icopy fhs_class
+	fetch 2,mem_nap
+	icopy nap
+	enable enable_crc
+	enable encode_fec2
+	copy bt_adr,rega
+	call fetch_self_bt_adr
+	pulse recalc
+	nop 32                    /* 30 cycles after recalc for sync word generation */
+	copy bt_clk,timeup
+	fetch 4,mem_clkn_bt
+	icopy bt_clk
+	preload fhs0
+	set1 58,pdata		/* eir */
+	inject mod,72
+	preload fhs1
+	inject mod,72
+	copy timeup,bt_clk
+	copy rega,bt_adr
+	enable enable_parity
+	inject mod,16   /* generate CRC */
+	disable enable_parity
+	branch end_of_packet
+
+transmit_lmp_ccm:
+	disable encrypt
+	branch transmit_lmp_common
+	
+transmit_lmp:
+	bpatch patch0e_4,mem_patch0e
+	call check_enc_ccm
+	nbranch transmit_lmp_ccm,blank
+	enable encrypt
+transmit_lmp_common:
+	enable enable_crc
+	enable encode_fec2
+	fetch 1,mem_lmo_header_length   /* this is the payload header */
+	and pdata,0x1f8,temp       /* temp is number of bits, check payload header format */
+	arg mem_lmo_header_length,contr
+	increase 8,temp   /* temp is in bits */
+	rshift3 temp,loopcnt
+transmit_lmp_loop:
+	ifetch 1,contr
+	inject mod,8
+	loop  transmit_lmp_loop
+	branch transmit_end
+
+
+transmit_dm1:
+	enable encode_fec2
+	branch transmit_dmh
+transmit_dm3:
+transmit_dm5:
+	enable encode_fec2
+	set1 mark_longpacket,mark
+	branch transmit_dmh
+
+transmit_3dh1:
+	set1 PSK3M,radio_ctrl
+transmit_dh1:
+	enable encode_fec0
+	branch transmit_dmh
+	
+transmit_dh3:
+transmit_dh5:
+	set1 PSK3M,radio_ctrl
+	enable encode_fec0
+	set1 mark_longpacket,mark
+
+transmit_dmh:
+	bpatch patch0e_5,mem_patch0e
+	fetch 1,mem_state_map
+	bbit0 smap_edr,transmit_noedr
+	sub type,3,null
+	branch transmit_noedr,positive
+	disable encrypt
+	disable encode_fec2
+	enable encode_fec0
+	disable enable_white
+	set1 PSK,radio_ctrl
+	isolate1 PSK3M,radio_ctrl
+	branch transmit_edr3m,true
+	setarg 0xabeee
+	inject mod,20
+	branch transmit_edr_sync_end
+transmit_edr3m:
+	setarg 0x5faeba
+	inject mod,24
+	setarg 0x12
+	inject mod,6
+transmit_edr_sync_end:	
+	enable enable_white
+	set1 mark_longpacket,mark
+transmit_noedr:
+	enable encrypt
+	enable enable_crc
+	bmark1 mark_loopback,transmit_loopback
+	fetch 1,mem_tx_lch
+	inject mod,3
+	fetch 2,mem_tx_len
+	iforce loopcnt
+	bmark1 mark_longpacket,transmit_long
+	inject mod,5
+	branch transmit_stuff
+transmit_long:	
+	inject mod,13
+transmit_stuff:
+	deposit loopcnt
+	branch transmit_end,blank
+	fetch 2,mem_txptr
+	iforce contr
+transmit_stuff_loop:
+	ifetch 1,contr
+	inject mod,8
+	loop transmit_stuff_loop
+//	branch transmit_end
+
+transmit_end:
+	bpatch patch0e_6,mem_patch0e
+	call check_enc_ccm
+	branch transmit_end2,blank
+	fetch 4,mem_le_mic  
+	inject mod,32
+transmit_end2:	
+	enable enable_parity
+	inject mod,16
+	disable enable_parity
+	call set_wait_ack
+	fetch 1,mem_state_map
+	bbit0 smap_edr,end_of_packet
+	force 0,pdata
+	inject mod,6				/* edr trailer */
+	branch end_of_packet
+
+
+transmit_loopback:
+	bpatch patch0e_7,mem_patch0e
+	bmark1 mark_longpacket,transmit_loopback_long
+transmit_loopback_short:
+	fetch 1,mem_lch_code
+	inject mod,3						/* LLID and FLOW */
+	fetch 1,mem_len	/* take packet length */
+	iforce regc
+	inject mod,5
+	branch transmit_loopback_cont
+transmit_loopback_long:
+	fetch 1,mem_lch_code
+	inject mod,3						/* LLID and FLOW */
+	fetch 2,mem_len	/* take packet length */
+	iforce regc
+	inject mod,13
+transmit_loopback_cont:
+	arg mem_rxbuf,contr
+transmit_loopback_loop:	
+	copy regc,null
+	branch transmit_loopback_end,zero
+	ifetch 1,contr
+	inject mod,8
+	increase -1,regc
+	branch transmit_loopback_loop
+transmit_loopback_end:
+	fetch 2,mem_tst_pktcnt_dmh
+	increase 1,pdata
+	store 2,mem_tst_pktcnt_dmh
+	branch transmit_end
+	
+
+apply_switch_clke:
+	fetch 4,mem_clke_bt
+	add pdata,7,rega
+	fetch 2,mem_slot_offset
+	nbranch apply_switch_nozero,blank
+	increase -3,rega
+	branch apply_switch_wait_loop
+apply_switch_nozero:
+	mul32 pdata,12,pdata
+	fetcht 2,core_halfslot
+	increase 1,temp
+apply_switch_loop:
+	isub temp,pdata
+	nbranch apply_switch_bt,positive
+	increase -1,rega
+	branch apply_switch_loop
+apply_switch_bt:
+	sub pdata,0,pdata
+apply_switch_wait_loop:
+	until null,oneslot
+	compare 0,clkn_bt,3
+	nbranch apply_switch_wait_loop,true
+	iforce clke_rt
+	copy rega,clke_bt
+	iforce clke_rt
+	rtn
+	
+
+calc_slot_offset:
+	bpatch patch0f_0,mem_patch0f
+	until null,halfslot
+	deposit clke
+	iforce contr
+	rshift16,pdata,pdata
+	isub clkn_bt,loopcnt
+	and_into 3,loopcnt			/* bt portion */
+	nbranch calc_bt_portion,zero
+	force 0,pdata
+	branch calc_skip_bt
+calc_bt_portion:
+	fetcht 2,mem_param_rt_rthalfslot
+	force 0,pdata
+calc_slot_offset_loop:
+	iadd temp,pdata
+	loop calc_slot_offset_loop
+calc_skip_bt:
+	iadd contr,pdata			/* add rt portion */
+	div pdata,12
+	call get_div_result
+	store 2,mem_slot_offset
+	rtn
+
+calc_clke_offset:
+	bpatch patch0f_1,mem_patch0f
+	deposit clke
+	copy clkn,temp
+	isub temp,null
+	nsetflag positive,44,pdata
+	isub temp,temp
+	fetch 2,mem_param_rt_rthalfslot
+	isolate0 15,temp
+	branch calc_clke_pos,true
+	copy temp,alarm
+	arg 0x10000,temp
+	fetch 2,mem_param_rt_rthalfslot
+	isub temp,pdata
+	iadd alarm,temp
+	
+calc_clke_pos:
+	storet 6,mem_le_clk_offset
+	rtn le
+	storet 6,mem_clk_offset
+	rtn
+
+calc_clke:
+	disable clknt
+	fetch 6,mem_le_clk_offset
+	branch calc_clke2,le
+	fetch 6,mem_clk_offset
+calc_clke2:
+	iadd clkn,alarm
+	increase 10,alarm
+	fetch 2,mem_param_rt_rthalfslot
+	isub alarm,pdata
+	isolate0 15,pdata
+	branch calc_clke_pos_adj,true
+	setarg 0x10000
+	fetchr regd,2,mem_param_rt_rthalfslot
+	isub regd,pdata
+	iadd alarm,alarm
+calc_clke_pos2:
+	copy alarm,clke
+	rtn
+calc_clke_pos_adj:		/* add 2 clock */
+	force 0,null
+	branch calc_clke_pos2
+	
+/******************************************/
+/********* RF related functions ***********/
+/******************************************/
+
+calc_mod_value_scale:
+	branch calc_mod_value_scale_le2,le
+	setarg 0x402c17
+	store 3,mem_scale_ratio
+	rshift16 access,pdata
+	rshift3 pdata,temp
+	arg 48,loopcnt
+calc_mod_value_scale_do:
+	setarg 0
+	store 3,mem_xcnt
+calc_mod_vs_loop:
+	rshift temp,pdata
+	ixor temp,pdata
+	and_into 3,pdata
+	bbit0 1,calc_mod_vs01
+	pincrease -1
+calc_mod_vs01:
+	arg mem_xcnt,contw
+	iadd contw,contw
+	ifetch 1,contw
+	pincrease 1
+	istore 1,contw
+	rshift temp,temp
+	loop calc_mod_vs_loop
+	arg mem_xcnt+2,rega
+	arg mem_scale_ratio,regb
+	arg 0,regc
+	arg 3,loopcnt
+calc_mod_vs_loop2:
+	ifetch 1,rega
+	ifetcht 1,regb
+	imul32 temp,pdata
+	iadd regc,regc
+	increase -1,rega
+	increase 1,regb
+	loop calc_mod_vs_loop2
+	fetch 1,mem_scale_ratio+1
+	lshift8 pdata,pdata
+	lshift4 pdata,pdata
+	idiv regc
+	call wait_div_end
+	quotient pdata
+	store 2,mod_value_scale1
+	store 2,mem_scale_ratio_temp
+	rtn
+
+calc_mod_value_scale_le2:
+	fetch 2,mem_scale_ratio_temp
+	store 2,mod_value_scale1
+	rtn
+
+calc_mod_value_scale_le:
+	setarg 0x402d19
+	store 3,mem_scale_ratio
+	rshift32 access,pdata
+	rshift3 pdata,temp
+	arg 32,loopcnt
+	branch calc_mod_value_scale_do
+
+calc_radio_freq:
+	bpatch patch0f_2,mem_patch0f
+	call set_sync_on
+	copy bt_clk,pdata
+	and_into 0x180,pdata
+	compare 3,freq_mode,0x07
+	nbranch freq_not_connection,true    /* don't do the hack if not in connection */
+	rshift3 pdata,pdata
+	iadd freq_index,pdata
+	branch do_hop_mod_now
+freq_not_connection:	
+	copy freq_index,pdata
+do_hop_mod_now:
+	div pdata,79
+	pulse recalc         /* now is good time to recalc id */
+	call wait_div_end
+	remainder rega
+	add rega,-40,temp
+	branch odd_half,positive
+	lshift rega,temp
+	branch freq_result
+odd_half:
+	lshift temp,temp
+	increase 1,temp
+freq_result:	
+	bpatch patch0f_3,mem_patch0f
+	fetch 1,mem_mode
+	bbit0 afh_change,afh_process_con
+afh_process_0:	
+	fetch 4, mem_afh_instant   
+	isub bt_clk, null
+	branch afh_process_con,positive
+	call afh_clear
+	fetch 1,mem_afh_new_mod
+	rtn blank
+	fetch 1,mem_mode
+	set1 afh_enable,pdata
+	store 1,mem_mode
+	fetch 5,mem_afh_map_new
+	store 5,mem_afh_map_lo
+	ifetch 5,contr
+	store 5,mem_afh_map_hi
+	call afh_process_freq_map
+afh_process_con:
+	fetch 1,mem_mode
+	rtnbit0 afh_enable
+	isolate1 1,bt_clk
+	branch afh_same_channel,true	/* at odd slot, use the same as last even */
+	rshift3 temp,rega
+	and temp,7,queue
+	setarg mem_afh_map_lo  
+	iadd rega, rega
+	ifetch 1, rega
+	qisolate0 pdata
+	branch afh_process_1,true		/* not in map, do afh */
+	deposit temp
+	branch afh_process_end
+afh_process_1:
+	fetch 1, mem_afh_used
+	iforce regb                     
+	deposit bt_clk
+	and_into 0x180, pdata
+	rshift3 pdata,pdata
+	iadd freq_index,pdata
+	idiv regb
+	setarg mem_afh_map     
+	call wait_div_end
+	remainder rega
+	iadd rega,contr
+	ifetch 1,contr
+afh_process_end:	
+	store 1,mem_afh_index
+	iforce temp  
+  	rtn
+
+afh_same_channel:
+	fetch 1, mem_afh_index           /* last afh index  */
+	iforce temp
+	rtn
+
+afh_clear:
+	fetch 1,mem_mode
+	set0 afh_enable,pdata
+	set0 afh_change,pdata
+	store 1,mem_mode
+	rtn
+/*
+fixed_frequency:
+	fetcht 1,mem_fixed_freq
+	rtn
+*/
+afh_process_freq_map:
+	bpatch patch0f_4,mem_patch0f
+	arg mem_afh_map,contw
+	force 10,loopcnt
+	call memset0
+	arg mem_afh_map,contw
+	force 0,regc
+	force 2,queue
+process_freq_3:	
+	fetch 5,mem_afh_map_lo
+	iforce temp
+	compare 2,queue,0xff
+	branch process_freq_1,true
+	rshift temp,temp
+process_freq_1:	
+	isolate0 0,temp
+	branch process_freq_0,true
+	deposit regc
+	istore 1,contw
+process_freq_0:
+	rshift2 temp,temp
+	increase 2,regc
+	compare 40,regc,0xfe
+	nbranch process_freq_2,true
+	fetch 5,mem_afh_map_hi
+	iforce temp
+	compare 2,queue,0xff
+	branch process_freq_2,true
+	rshift temp,temp
+process_freq_2:	
+	sub regc,78,null
+	branch process_freq_1,positive
+	force 1,regc
+	increase -1,queue
+	nbranch process_freq_3,zero
+	arg mem_afh_map,rega
+	deposit contw
+	isub rega,pdata
+	store 1,mem_afh_used
+	rtn
+
+rx_radio_freq:
+	bpatch patch0f_5,mem_patch0f
+	call calc_radio_freq
+	fetch 1,mem_debug_config
+	bbit0 debug_rx_fixed_freq,rx_radio_freq_now
+	fetcht 1,mem_rx_fixed_freq
+rx_radio_freq_now:
+	branch set_freq_rx
+	
+
+tx_radio_freq:
+	bpatch patch0f_6,mem_patch0f
+	call calc_radio_freq
+	fetch 1,mem_debug_config
+	bbit0 debug_tx_fixed_freq,tx_radio_freq_now
+	fetcht 1,mem_tx_fixed_freq
+tx_radio_freq_now:
+	branch set_freq_tx
+	
+
+fetch_giac:
+	force 0,uap
+	fetch 3,mem_glap
+	iforce lap
+	rtn
+
+fetch_page_bt_adr:
+	bpatch patch0f_7,mem_patch0f
+	fetch 1,mem_hci_puap
+	icopy uap
+	fetch 3,mem_hci_plap
+	icopy lap
+	rtn
+
+fetch_self_bt_adr:
+	bpatch patch10_0,mem_patch10
+	fetch 2,mem_nap
+	icopy nap
+	fetch 1,mem_uap
+	icopy uap
+	fetch 3,mem_lap
+	icopy lap                 /* copy self_adr,bt_adr */      /* use own address */
+	rtn
+
+fetch_extm_bt_adr:
+	bpatch patch10_1,mem_patch10
+	fetch 2,mem_pnap
+	icopy nap
+	fetch 1,mem_puap
+	icopy uap
+	fetch 3,mem_plap
+	icopy lap         
+	rtn
+
+
+fetch_diac:
+	bmark1 mark_all_diac,fetch_diac_do
+	rtnmark0 mark_inquiry_state
+	rtnmark0 mark_periodical_diac
+fetch_diac_do:
+	and_into -256,lap
+	pulse recalc
+	nop 32
+	rtn
+
+
+shutdown_radio:
+	bpatch patch10_2,mem_patch10
+	call rf_debug_shutdown_radio_line	//L-H-L
+	branch shutdown_radio0,is_rx
+	call shutdown_radio_tx_power
+shutdown_radio0:
+	force 0x08,radio_ctrl
+	force 0,radio_ctrl
+	disable is_rx
+	disable is_tx
+	pulse packet_end
+	jam 0x5,modem_en
+	nop 2
+	jam 0x0,modem_en
+	bpatch patch10_3,mem_patch10
+
+	rtn
+
+shutdown_radio_tx_power:
+	bpatch patch10_4,mem_patch10
+
+	rtn
+
+set_cdb_on:
+	bpatch patch10_5,mem_patch10
+	//step 1
+	fetch 1,mem_syn_cal_ctrl
+	store 1,core_syn_cal_ctrl
+	
+	//step 2
+	fetch 1,core_rf_ldo_en0		// reg rf_ldo_en0[6] = 1’b1
+	set1 6,pdata
+	store 1,core_rf_ldo_en0
+
+	fetch 1,core_syn_en 		// reg syn_en[6] = 1’b1, enable cdb
+	set1 6,pdata
+	store 1,core_syn_en	
+	nop 120
+	rtn
+
+set_sync_on:
+	bpatch patch10_6,mem_patch10
+	jam 0x5,modem_en
+	nop 2
+	jam 0x0,modem_en					/* if called from tx or rx */
+
+	fetch 1,mem_set_cdb_on	//default: 00
+	ncall set_cdb_on,blank
+
+	//step 1
+	fetch 1,core_syn_en 	// reg syn_en[7] = 1’b1, enable syn current bias
+	set1 6,pdata
+	store 1,core_syn_en
+	fetch 1,core_rf_ldo_en0	// reg rf_ldo_en0[5:4] = 2’b11
+	or_into 0x30,pdata
+	store 1,core_rf_ldo_en0
+	nop 120
+	fetch 1,core_syn_en 	// reg syn_en[5:0] = 6’b111110, enable pfd,cp,vco,lkd
+	or_into 0x3f,pdata
+	and_into 0xfe,pdata
+	store 1,core_syn_en
+	nop 120
+
+	//step 2
+	fetch 1,core_rf_ldo_cfg5	// rf_ldo_cfg5[7:6] = 2’b00
+	and_into 0x3f,pdata
+	store 1,core_rf_ldo_cfg5
+	fetch 1,core_rf_ldo_en0	// reg rf_ldo_en0[7] = 1’b0, vref_rcfilter enable
+	set0 7,pdata
+	store 1,core_rf_ldo_en0
+	rtn
+
+set_freq_rx:
+	bpatch patch10_7,mem_patch10
+	//step1
+	fetch 1,core_syn_top_ctrl 		//reg syn_top_ctrl[4:0]=5’b00110, trx_sel=1’b0, ib_cp=4’0110
+	and_into 0xe0,pdata
+	or_into 0x06,pdata
+	store 1,core_syn_top_ctrl
+	fetch 1,core_syn_mmd_cp_ctrl	//reg syn_mmd_cp_ctrl[5:0]=6’b000000
+	and_into 0xe0,pdata
+	store 1,core_syn_mmd_cp_ctrl
+	jam 0x03,core_syn_cp_lpf_cfg	//reg syn_cp_lpf_cfg[7:0]= 8’b00000011
+	jam 0x4a,core_syn_afc_cfg1		//reg syn_afc_cfg1[7:0]= 8’b01001010
+	jam 0x40,core_syn_afc_cfg3		//reg syn_afc_cfg3[7:0] = 8’b01000000
+	
+	storet 1,mem_last_freq
+	add temp,-2,rega
+	bmark1 mark_ble_2M,set_rxfreq_2M_offset
+	add temp,-1,rega
+set_rxfreq_2M_offset:
+	call rf_rx_write_freq
+
+	//step2
+	fetch 1,core_syn_cal_ctrl		//reg syn_cal_ctrl[3:0] = 2’b0000, reset
+	and_into 0xf0,pdata
+	store 1,core_syn_cal_ctrl
+	nop 12
+	fetch 1,core_syn_cal_ctrl		//reg syn_cal_ctrl[5:4] = 2’b11, release rstn
+	or_into 0x0c,pdata
+	store 1,core_syn_cal_ctrl
+	nop 12
+	fetch 1,core_syn_cal_ctrl		//reg syn_cal_ctrl[1:0] = 2’b11,srart afc
+	or_into 0x07,pdata
+	store 1,core_syn_cal_ctrl
+
+	branch calc_mod_value_scale
+
+
+rf_rx_enable:
+	bpatch patch11_0,mem_patch11
+	call rf_debug_rx_on_line	//H-L-H
+	//step 1
+	jam 0x05,core_rx_bq_cfg0	// reg rx_bq_cfg0[7:0] = 8’b00000101
+
+	//step 2
+	fetch 1,core_rf_ldo_cfg6	// reg rf_ldo_cfg6 [2:0] = 3’b101
+	or_into 0x07,pdata
+	and_into 0xfd,pdata
+	store 1,core_rf_ldo_cfg6
+
+	//step 3
+	fetch 1,core_rf_ldo_en0		// reg rf_ldo_en0[3:0] = 4’b1111
+	or_into 0x0f,pdata
+	store 1,core_rf_ldo_en0
+	fetch 1,core_rf_ldo_en1		// reg rf_ldo_en1[2] = 1’b1
+	set1 2,pdata
+	store 1,core_rf_ldo_en1
+	nop 120
+
+	//step 4
+	fetch 1,core_rx_en0			// reg rx_en0[4:0] = 5’b11111
+	or_into 0x1f,pdata
+	store 1,core_rx_en0
+	fetch 1,core_rx_en1			// reg rx_en1[7:3] = 5’b11111
+	or_into 0xf8,pdata
+	store 1,core_rx_en1
+	fetch 1,core_tx_en0			// reg tx_en0[4:2] = 3’b110
+	and_into 0xe3,pdata
+	or_into 0x18,pdata
+	store 1,core_tx_en0
+	nop 120
+
+	//step 5
+	jam 0,core_rf_ldo_cfg4		// reg rf_ldo_cfg4[7:0] = 8’b00000000
+	fetch 1,core_rf_ldo_cfg5	// reg rf_ldo_cfg5[5:4] = 2’b01
+	set1 4,pdata
+	set0 5,pdata
+	store 1,core_rf_ldo_cfg5
+	
+	nop 10
+	jam 0x04,modem_en
+	nop 2
+	jam 0x0c,modem_en
+	rtn
+
+
+	/* rega is frequency, 00=2400Mhz */
+rf_rx_write_freq:
+	bpatch patch11_1,mem_patch11
+	setarg 2400
+	iadd rega,pdata
+	fetcht 1,mem_xtal_freq
+	branch rf_write_freq_calc
+
+
+	/* rega is frequency, 00=2400Mhz */
+rf_tx_write_freq:
+	bpatch patch11_2,mem_patch11
+	setarg 2400
+	iadd rega,pdata
+	lshift pdata,pdata
+	fetcht 1,mem_xtal_freq
+	mul32 temp,0x03,temp
+rf_write_freq_calc:	
+	idiv temp
+	call wait_div_end
+	quotient rega		//rega is divN
+	remainder pdata		
+	lshift16 pdata,pdata
+	lshift8 pdata,pdata	//pdata is frac * 2^24
+	lshift8 pdata,pdata
+	ior rega,pdata
+	store 4,core_syn_divr_int	//reg syn_divr_int[7:0]\syn_divr_int
+	rtn				//reg {syn_divr_frac2[7:0], syn_divr_frac1[7:0], syn_divr_frac0[7:0]} = Nfrac_bin\syn_divr_frac
+
+set_freq_tx:
+	bpatch patch11_3,mem_patch11
+
+	//step1
+	fetch 1,core_syn_top_ctrl 		//reg syn_top_ctrl[4:0]=5’b11001, trx_sel=1’b1, ib_cp=4’1001
+	and_into 0xe0,pdata
+	or_into 0x19,pdata
+	store 1,core_syn_top_ctrl
+	fetch 1,core_syn_mmd_cp_ctrl	//reg syn_mmd_cp_ctrl[5:0]=6’b000000
+	and_into 0xe0,pdata
+	store 1,core_syn_mmd_cp_ctrl
+	jam 0x03,core_syn_cp_lpf_cfg	//reg syn_cp_lpf_cfg[7:0]= 8’b00000011
+	jam 0x4a,core_syn_afc_cfg1		//reg syn_afc_cfg1[7:0]= 8’b01001010
+	jam 0x40,core_syn_afc_cfg3		//reg syn_afc_cfg3[7:0] = 8’b01000000
+	
+	storet 1,mem_last_freq
+	add temp,0,rega
+	call rf_tx_write_freq
+
+	//step2
+	fetch 1,core_syn_cal_ctrl		//reg syn_cal_ctrl[3:0] = 2’b0000, reset
+	and_into 0xf0,pdata
+	store 1,core_syn_cal_ctrl
+	nop 12
+	fetch 1,core_syn_cal_ctrl		//reg syn_cal_ctrl[5:4] = 2’b11, release rstn
+	or_into 0x0c,pdata
+	store 1,core_syn_cal_ctrl
+	nop 12
+	fetch 1,core_syn_cal_ctrl		//reg syn_cal_ctrl[1:0] = 2’b11,srart afc
+	or_into 0x07,pdata
+	store 1,core_syn_cal_ctrl
+
+	//step3 wait syn settle
+	fetch 2,mem_param_pll_setup
+	call sleep
+
+txon:
+	bpatch patch11_4,mem_patch11
+
+	//step 1
+	fetch 1,core_tx_pwr_ctrl0	// reg tx_pwr_ctrl0[5:0] = 6’b101000
+	and_into 0xc0,pdata
+	or_into 0x28,pdata
+	store 1,core_tx_pwr_ctrl0
+	
+	fetch 1,core_tx_pwr_ctrl1	// reg tx_pwr_ctrl1[3:0] = 4’b1000
+	and_into 0xf0,pdata
+	or_into 0x08,pdata
+	store 1,core_tx_pwr_ctrl1
+	
+	fetch 1,core_rf_ldo_cfg8	// reg rf_ldo_cfg8[4:0] = 5’b00011
+	and_into 0xe0,pdata
+	or_into 0x03,pdata
+	store 1,core_rf_ldo_cfg8
+	
+	fetch 1,core_rf_ldo_cfg9	// reg rf_ldo_cfg9[3:0] = 4’b0111
+	and_into 0xf0,pdata
+	or_into 0x07,pdata
+	store 1,core_rf_ldo_cfg9
+
+	//step 2
+	fetch 1,core_rf_ldo_cfg6	// reg rf_ldo_cfg6 [2:0] = 3’b000
+	and_into 0xf8,pdata
+	store 1,core_rf_ldo_cfg6
+	
+	//step 3
+	fetch 1,core_rf_ldo_en0		// reg rf_ldo_en0[3:0] = 4’b1101
+	and_into 0xf0,pdata
+	or_into 0x0d,pdata
+	store 1,core_rf_ldo_en0
+	fetch 1,core_rf_ldo_en1		// reg rf_ldo_en1[2:0] = 3’b111
+	or_into 0x07,pdata
+	store 1,core_rf_ldo_en1
+	nop 120
+
+	//step 4
+	fetch 1,core_tx_en0			// reg tx_en0[4:0] = 5’b01101
+	and_into 0xe0,pdata
+	or_into 0x0d,pdata
+	store 1,core_tx_en0
+	jam 0xd9,core_tx_en1		// reg tx_en1[7:0] = 8’b11011001
+	nop 120
+
+	//step 5
+	jam 0,core_rf_ldo_cfg4		// reg rf_ldo_cfg4[7:0] = 8’b00000000
+	fetch 1,core_rf_ldo_cfg5	// reg rf_ldo_cfg5[5:2] = 4’b0100
+	and_into 0xc3,pdata
+	or_into 0x10,pdata
+	store 1,core_rf_ldo_cfg5
+	nop 120
+
+	//step 6
+	fetch 1,core_tx_en1			// reg tx_en1[5] = 1’b1
+	set1 5,pdata
+	store 1,core_tx_en1
+
+	nop 10
+	jam 0x01, modem_en
+	nop 2
+	jam 0x03, modem_en
+txon_power_select:
+	bpatch patch11_5,mem_patch11
+
+	rtn
+
+
+
+initialize_radio:
+	jam clksel_rc,core_clksel
+initialize_radio_wait:
+	fetch 2,mem_rf_init_ptr
+	bbit0 14,initialize_radio_wait
+	iforce contr
+	arg 0x8900,temp
+initialize_radio_loop:
+	ifetch 1,contr
+	beq 0xff,initialize_radio_cont
+	ior temp,contw
+	ifetch 1,contr
+	istore 1,contw
+	branch initialize_radio_loop
+initialize_radio_cont:
+	bpatch patch11_6,mem_patch11
+	call lpm_cal_xtal_startup
+	call switchto_dpllclk
+	jam SYSTEM_CLK_12M,mem_system_clk
+//	ncall check_dpll,wake
+	fetch 2,mem_param_dpll_start_delay
+	iadd clkn_bt,pdata
+	store 4,mem_dpll_clkn
+	set1 RESET,radio_ctrl
+	force 0,radio_ctrl
+	ncall do_rccal,wake
+	branch set_rccal
+	
+do_rccal:
+	bpatch patch11_7,mem_patch11
+	rtn
+
+set_rccal:
+	bpatch patch12_0,mem_patch12
+	rtn
+
+save_rssi:
+	bpatch patch12_1,mem_patch12
+	fetch 1,modem_rssi
+	sub pdata,0,pdata
+	store 1,mem_rssi_hex
+	call bcd
+	store 1,mem_rssi			/* bcd value */
+	rtn
+bcd:
+	and_into 0xff,pdata
+	div pdata,10
+	call get_div_result
+	lshift4 pdata,pdata
+	remainder temp
+	ior temp,pdata
+	rtn
+	
+switchto_dpllclk:
+	bpatch patch12_2,mem_patch12
+	jam clksel_rc,core_clksel
+	call dpll_en
+	jam clksel_dpll,core_clksel
+	nop 1
+	jam clksel_xtal,core_clksel
+	rtn
+
+
+dpll_en:
+	bpatch patch12_3,mem_patch12
+	//step 1
+	fetch 1,core_clkpll_cfg6
+	fetcht 1,mem_xtal_freq
+	sub temp,24,null
+	nsetflag positive,0,pdata
+	store 1,core_clkpll_cfg6
+
+	setarg 96
+	fetcht 1,mem_xtal_freq
+	sub temp,24,null
+	branch clkpll_config,positive
+	setarg 128
+clkpll_config:
+	bpatch patch12_4,mem_patch12
+	fetcht 1,mem_xtal_freq
+	idiv temp
+	call wait_div_end
+	quotient rega		//rega is divN
+	remainder pdata		
+	lshift16 pdata,pdata
+	lshift4 pdata,pdata	//pdata is frac * 2^20
+	store 3,core_clkpll_cfg2	//reg {clkpll_cfg2[3:0], clkpll_cfg3[7:0], clkpll_cfg4[7:0]} = Nfrac_bin\rg_clkpll_divn_frac
+	copy rega,pdata
+	store 1,core_clkpll_cfg5	//reg clkpll_cfg5[7:3]\rg_clkpll_divn_int
+
+	//step2
+	fetch 1,core_clkpll_ctrl1	// reg clkpll_ctrl1[2:0] = 3’b111
+	or_into 0x07,pdata
+	store 1,core_clkpll_ctrl1
+	nop 120
+
+	//step3
+	fetch 1,core_clkpll_ctrl0	// reg clkpll_ctrl0[1:0] = 2’b11
+	or_into 0x03,pdata
+	store 1,core_clkpll_ctrl0
+	nop 12
+
+	//step4
+	fetch 1,core_clkpll_ctrl1	// reg clkpll_ctrl1[6:3] = 4’b1111
+	or_into 0x78,pdata
+	store 1,core_clkpll_ctrl1
+	nop 240
+
+	//step5
+	fetch 1,core_clkpll_cfg0		// reg clkpll_cfg0[4] = 1’b0
+	set0 4,pdata
+	store 1,core_clkpll_cfg0
+
+	//step6 dpll settle
+	nop 360				//typical 30us
+	rtn
+	
+xtal_fast_wake:
+	setarg 0xf0f
+	branch lpm_write_config
+
+init_lpm_ctrl:
+	setarg 0x80f
+	branch lpm_write_config
+
+
+
+start_receiver:
+	bpatch patch12_5,mem_patch12
+	disable is_tx
+	enable is_rx
+	pulse init_encrypt
+	branch rf_rx_enable
+
+prep_crypt:
+	bpatch patch12_6,mem_patch12
+	call check_enc_ccm
+	nbranch prep_crypt_ccm, blank	
+	fetch 1,mem_state_map
+	isolate1 smap_encryption,pdata
+	setflag true,0,pdata
+	store 1,core_encrypt
+	arg mem_kc,contr
+	ifetch 9,contr
+	iforce kc_ls
+	ifetch 7,contr
+	iforce kc_ms
+	fetch 1,mem_key_size
+	add pdata,-1,g1l
+	pulse kc_p_activate               /* immediately start calculating primary Key */
+	rtn
+
+prep_crypt_ccm:
+	jam 0,core_encrypt
+	rtn
+	
+wait_access_end:
+	deposit clke
+	store 6,mem_sync_clke
+	disable decode_fec0
+	nbranch shutdown_radio,sync
+	fetch 2,mem_param_clke_cal
+	copy pdata,clke_rt
+	increase 1,clke_bt
+	and_into 0x1fc,clke_bt
+	rtn
+
+
+
+wait_access_mhalfbnd:
+	enable decode_fec0
+wait_access_mhalfbnd_correlate:
+	correlate null,mhalfbnd    /* keep correlating until sync is found, or clke half */
+	branch wait_access_end,sync
+	compare 0x02,clke_bt,0x02
+	nbranch wait_access_mhalfbnd_correlate,true
+	branch wait_access_end
+
+wait_access_clkn_rt:
+	bpatch patch12_7,mem_patch12
+	fetchr timeup,2,mem_param_conn_access	/* found sync must occur within this time */
+	enable decode_fec0
+	correlate clkn_rt,meet    /* keep correlating until sync is found, or until clkn_rt timeup */
+	disable decode_fec0
+	nbranch shutdown_radio,sync
+	rtn
+
+wait_access_forever:
+	bpatch patch13_0,mem_patch13
+	enable decode_fec0
+	correlate null,timeout    /* keep correlating until sync is found, or timeout */
+	disable decode_fec0
+	nbranch shutdown_radio,sync
+	fetch 2,mem_param_clke_cal
+	copy pdata,clke_rt
+	and_into 0x1fc,clke_bt
+	rtn
+
+	/* reserve slots for mult-slot packet */
+reserve_slot:
+	bpatch patch13_1,mem_patch13
+	iforce rega
+	deposit bt_clk
+	iadd temp,timeup
+	copy timeup,pdata
+	store 4,mem_next_btclk
+	deposit rega
+	rtn
+
+	/* pdata = clks ahead of bt_clk */
+ahead_window:
+	copy pdata,temp
+	bpatch patch13_2,mem_patch13
+	copy temp,pdata
+	call clk2bt
+	lshift16 bt_clk,pdata
+	set1 44,pdata
+	call clk_diff
+	set0 44,pdata
+	call get_clk
+	call clk_diff
+	rtn user
+	call clk2rt
+	iforce stop_watch
+	until null,timeout
+	rtn
+
+
+setup_clk:
+	bpatch patch13_3,mem_patch13
+	branch setup_clkn,clknt
+	until clke_rt,meet
+skip_setup_clke:
+	copy clke_bt,temp
+	branch setup_clknbt
+setup_clkn:
+	branch skip_setup_clkn,attempt
+	until clkn_rt,meet
+skip_setup_clkn:
+	copy clkn_bt,temp
+setup_clknbt:
+	branch setup_clk11,user
+	compare 1,temp,3
+	nbranch setup_clk,true
+setup_complete:
+	bpatch patch13_4,mem_patch13
+	fetch 1,mem_state
+	rtnbit0 state_inconn
+	fetch 4,mem_next_btclk
+	isub temp,pdata
+	nrtn positive
+	sub pdata,0xff,null
+	branch setup_clk,positive
+	rtn
+setup_clk11:
+	compare 3,temp,3
+	nbranch setup_clk,true
+	branch setup_complete
+
+rf_setup_time:
+	bpatch patch13_5,mem_patch13
+	fetchr timeup,2,mem_param_rf_setup
+	branch setup_clk
+	
+rf_setup_time_slave_slot:
+	disable user
+	branch rf_setup_time
+
+rf_setup_time_master_slot:
+	enable user
+	branch rf_setup_time
+	
+start_transmitter:
+	bpatch patch13_6,mem_patch13
+	call prep_crypt
+	disable is_rx
+	enable is_tx
+	rtn
+
+
+
+start_tx_native:
+	bpatch patch13_7,mem_patch13
+	fetchr timeup,2,mem_param_tx_setup
+	until clkn_rt,meet         /* wait until start_tx time */
+	pulse init_encrypt
+	rtn
+
+start_rx_native:
+	bpatch patch14_0,mem_patch14
+	fetchr timeup,2,mem_param_rx_setup
+	until clkn_rt,meet
+	rtn
+
+
+start_tx_external:
+	bpatch patch14_1,mem_patch14
+	fetchr timeup,2,mem_param_tx_setup
+	until clke_rt,meet         /* wait until start_tx time */
+	pulse init_encrypt
+	rtn
+
+send_access_word:
+	bpatch patch14_2,mem_patch14
+	call rf_debug_tx_on_line	//H
+	preload access          /* load in access word ready to be sent */
+	enable encode_fec0
+	set1 TXGFSK,radio_ctrl
+	inject mod,72
+	disable encode_fec0
+	rtn
+
+
+scan_mode_whiten:
+	copy xin,temp
+	or_into 0x60,temp                /* extend xin with 5->1, 6->1 */
+	copy temp,white_init
+	rtn
+
+
+
+	/* return blank if free amaddr is found */
+get_free_amaddr:
+	bpatch patch14_3,mem_patch14
+	fetch 1,mem_current_amaddr
+	increase 1,pdata
+	bne param_esco_addr,get_free_amaddr_cont
+	force 1,pdata
+get_free_amaddr_cont:
+	store 1,mem_current_amaddr
+	iforce am_addr
+	rtn
+
+get_clk:
+	copy clkn,temp
+	rtn master
+	copy clke,temp
+	rtn
+
+get_clkbt:
+	deposit clkn_bt
+	rtn master
+	deposit clke_bt
+	rtn
+
+
+supervision_update:
+	bpatch patch14_4,mem_patch14
+	fetcht 4,mem_supervision_timer
+	call get_clkbt
+	isub temp,timeup					/* and to 28 bits */
+	deposit timeup
+	fetcht 2,mem_supervision_to
+	lshift temp,temp
+	isub temp,pdata
+	rtn
+	
+supervision_flush:
+	bpatch patch14_5,mem_patch14
+	call get_clkbt
+	store 4,mem_supervision_timer
+	rtn
+
+assert:
+	bpatch patch14_6,mem_patch14
+	branch assert
+	
+loop:
+	branch loop
+
+sleep:	
+	rtn blank
+	/* sleep pdata clocks, only even clocks are accurate */
+	rshift pdata,pdata
+	increase -3,pdata
+sleep_loop:	
+	increase -1,pdata
+	nbranch sleep_loop,zero
+	force 0,pdata
+	rtn
+
+
+
+init_param:
+	/* clear specified sched ram */
+	arg 0x10,loopcnt
+	arg 0,contw
+	call memset0
+	arg mem_le_state,contw
+	arg 10,loopcnt
+	call memset0
+	jam 0,mem_sp_calc
+	jam 0,mem_fifo_temp
+	jam 0,mem_le_testtype
+	jam 0,mem_debug_config
+	jam 0,mem_lmp_conn_state
+	bpatch patch14_7,mem_patch14
+	jam 0,mem_connection_options
+	jam 0,mem_tester_emulate
+	jam 0,mem_tester_cnt
+	setarg param_glap
+	store 3,mem_glap
+	jam 0x60,mem_fhs_misc		/* R1 for 1.28s ps interval,P2 */
+	jam param_max_slot,mem_max_slot
+	jam 0x02,mem_fw_ver		/* set firmware version */
+
+	setarg param_tx_setup
+	store 2,mem_param_tx_setup
+	setarg param_rf_setup
+	store 2,mem_param_rf_setup
+	setarg param_conn_access
+	store 2,mem_param_conn_access
+	setarg param_rx_setup
+	store 2,mem_param_rx_setup
+	setarg param_clke_cal
+	store 2,mem_param_clke_cal
+	setarg param_pll_setup
+	store 2,mem_param_pll_setup
+	setarg param_dpll_start_delay
+	store 2,mem_param_dpll_start_delay
+	setarg param_rt_rthalfslot
+	store 2,mem_param_rt_rthalfslot
+	setarg param_clke_cal_le_1m
+	store 2,mem_param_clke_cal_le_1m
+	setarg param_clke_cal_le_2m
+	store 2,mem_param_clke_cal_le_2m
+	setarg param_clke_cal_le_coded
+	store 2,mem_param_clke_cal_le_coded
+	setarg mem_ble_tx_buff0
+	store 2,mem_ble_l2cap_tx_buff0_ptr
+	setarg mem_ble_l2cap_tx_buff_size
+	store 2,mem_ble_l2cap_tx_buff_size_ptr
+
+	bpatch patch15_0,mem_patch15
+	rtn wake
+	setarg 0
+	store 2,mem_tx_len
+	rshift clkn_bt,pdata
+	store 4,mem_last_clkn
+	rtn
+
+clk24m_init:
+	jam 6,core_clksel
+	jam 1,core_clksel
+	nop 10
+	setarg 7498
+	store 2,core_halfslot
+	rtn
+
+test_init:
+	setarg test_proc
+	store 2,mem_cb_bt_process
+	setarg test_proc
+	store 2,mem_cb_idle_process
+	rtn
+
+test_proc:
+	fetch 1,mem_state
+	bbit0 state_insniff,check_test_cond
+	set1 mark_lpm_mult_enable,mark
+	fetch 6,mem_sniff_rcv
+	store 6,mem_local_name
+	rtn
+
+check_test_cond:
+	fetch 1,mem_tester_emulate
+	rtnbit0 tester_change
+	fetch 1,mem_tester_cnt
+	increase 1,pdata
+	store 1,mem_tester_cnt
+	rtnne 5
+	jam 0,mem_tester_cnt
+	fetch 1,mem_tester_emulate
+	set0 tester_change,pdata
+	store 1,mem_tester_emulate
+	bbit1 tester_exit,check_test_exit
+	isolate1 tester_no_whitening,pdata
+	call test_no_white,true
+	ncall test_enable_white,true
+	fetch 1,test_mode_packet_type
+	compare 0x20,pdata,0x30
+	fetch 1,mem_state_map
+	setflag true,smap_edr,pdata
+	store 1,mem_state_map
+	fetch 1,mem_tester_emulate
+	fetcht 1,mem_debug_config
+	isolate1 tester_pattern_test,pdata
+	setflag true,debug_tx_pattern,temp
+	isolate1 tester_fixed_freq,pdata
+	setflag true,debug_tx_fixed_freq,temp
+	setflag true,debug_rx_fixed_freq,temp
+	storet 1,mem_debug_config
+	fetch 1,test_mode_tx_freq
+	store 1,mem_tx_fixed_freq
+	fetch 1,test_mode_rx_freq
+	store 1,mem_rx_fixed_freq
+	set1 mark_testmode,mark
+	rtn
+	
+check_test_exit:
+	set0 mark_testmode,mark
+	jam 0,mem_tester_emulate
+	fetch 1,mem_test_mode_old_debug_config
+	store 1,mem_debug_config
+	branch test_enable_white
+
+
+/*****************************************LPO************************************************/
+
+lpmstate:
+	setarg 0xee21
+	store 2,core_clkoff			// disable unused peripherals
+	fetch 4,core_gpio_in
+	store 4,mem_saved_gpio_in
+	fetch 1,core_lpm_ctrl+3
+	store 1,mem_wakup_from_power_flag	//power up bit2 = 0
+	fetch 1,core_lpm_ldocnt
+	bbit0 gpio_latch,loadcode		// power up boot
+	enable wake
+	bbit0 cold_wake,lpmwake		
+	disable wake
+	deposit auxcnt
+	nbranch lpmwake,blank		// sleep interrupted, wakeup
+	fetch 1,core_lpm_ctrl+3
+	bbit1 reload_code,lpmwake
+	arg param_hibernate_clks,temp
+	branch lpm_enter_sleep
+lpmwake:
+	fetch 4,core_lpm_ctrl2
+	store 4,core_lpm_reg
+	fetch 1,core_lpm_ctrl2+1
+	and_into 0xe0,pdata			//digital aon ldo vout sel: 1.2v
+	store 1,core_lpm_reg+1
+	call lpm_write_ctrl3
+	fetch 3,core_lpm_xtalcnt
+	store 3,core_lpm_reg
+	ifetch 1,contr
+	or_into isogate_mask,pdata		// open all isolation gate&power switch
+	istore 1,contw
+	call lpm_write_ctrl2
+	fetch 1,core_lpm_isogate
+	set1 enable_retmem,pdata
+	store 1,core_lpm_isogate
+	call lpm_write_ctrl2
+	call lpm_load_context,wake
+	fetch 1,core_lpm_reg+2
+	set0 gpio_latch,pdata			// enable gpio fuction
+	store 1,core_lpm_reg+2
+	call lpm_write_ctrl2
+	nbranch loadcode,wake		// wakeup from hibernate
+	rtnmark0 mark_otp_encrypt
+	jam lock_otp,core_misc_ctrl	// disable further read/write of key
+	rtn 
+
+lpm_load_context:
+	fetch 1,mem_saved_spidctrl
+	store 1,core_spid_ctrl
+	arg mem_saved_gpio,contr
+	arg core_gpio_conf,contw
+	call memcpy20
+	fetch 8,mem_saved_mark
+	iforce mark
+	fetch 8,core_gpio_wakeup_low
+	store 8,mem_gpio_wakeup_low
+	branch load_ucode
+
+lpm_save_context:
+	deposit mark
+	store 8,mem_saved_mark
+	arg core_gpio_conf,contr
+	arg mem_saved_gpio,contw
+	call memcpy20
+	fetch 1,core_spid_ctrl
+	store 1,mem_saved_spidctrl
+	branch lpm_write_gpio_wakeup
+
+lpo_calibration:
+	fetch 1,core_aes_en
+	rshift4 pdata,pdata
+	nbranch lpo_cal_inited,blank
+	fetch 3,mem_clks_per_lpo
+	nrtn blank
+	fetch 1,core_aes_en
+	or_into 0xc0,pdata
+	store 1,core_aes_en
+	jam ccnt_start,core_misc_ctrl
+lpo_cal_inited:
+	fetch 1,core_perf_status
+	rtnbit0 1
+	fetch 3,core_clk_counter
+	store 3,mem_clks_per_lpo
+	rtn
+
+
+	/* temp is synced clke */
+lpm_adjust_clk:
+	bpatch patch15_1,mem_patch15
+	deposit clke
+	call clk_diff_rt
+	fetcht 4,mem_sleep_counter_all
+	sub temp,0xff,null
+	rtn positive				// interval too small
+	lshift8 pdata,pdata
+	lshift4 pdata,pdata
+	idiv temp
+	call get_div_result
+	arg param_lpm_adjmax,temp
+	call ceiling
+	store 1,mem_lpm_adjust
+	nbranch lpm_adjust_positive,user
+	sub pdata,0,pdata
+lpm_adjust_positive:
+	fetcht 3,mem_clks_per_lpo
+	iadd temp,pdata
+	store 3,mem_clks_per_lpo
+lpm_clear_counter:
+	setarg 0
+	store 4,mem_sleep_counter_all
+	rtn
+
+
+	/* temp is lpo counter for doze */
+lpm_doze:
+	fetch 1,mem_lpm_config+2
+	set1 reload_code,pdata
+	store 1,mem_lpm_config+2
+	branch lpm_hibernate_normal
+	
+
+	/* no retention memory at all */
+lpm_hibernate:
+	arg param_hibernate_clks,temp
+	fetch 1,mem_lpm_config+1
+	set0 7,pdata					/* lowest lpo */
+	store 1,mem_lpm_config+1
+lpm_hibernate_normal:
+	bpatch patch15_2,mem_patch15
+	call lpm_write_gpio_wakeup
+	fetch 1,mem_lpm_hibernate_switch
+	store 1,mem_lpm_xtalcnt + 4
+	fetch 1,mem_lpm_xtalcnt + 2
+	set1 cold_wake,pdata
+	store 1,mem_lpm_xtalcnt + 2
+
+	/* temp is lpo clocks to sleep */
+lpm_sleep:
+	bpatch patch15_3,mem_patch15
+	call xtal_fast_wake
+	fetch 4,mem_sleep_counter_all
+	iadd temp,pdata
+	store 4,mem_sleep_counter_all
+	call lpm_save_context
+	fetch 4,mem_lpm_ctrl3
+	copy pdata,regb
+	fetch 5,mem_lpm_xtalcnt
+	store 4,core_lpm_reg
+	rshift32 pdata,rega
+	until null,lpo_edge
+	deposit clkn
+	store 6,mem_sleep_clkn
+	jam lpmreg_sel_ctrl2,core_lpm_wr
+	until null,lpo_edge
+	until null,lpo_edge
+	deposit rega
+	store 1,core_lpm_isogate
+	jam lpmreg_sel_ctrl2,core_lpm_wr
+	until null,lpo_edge
+	until null,lpo_edge
+	storer regb,4,core_lpm_reg
+	jam lpmreg_sel_ctrl3,core_lpm_wr
+lpm_enter_sleep:
+	until null,lpo_edge
+	until null,lpo_edge
+	storet 4,core_lpm_reg
+	jam lpmreg_sel_counter,core_lpm_wr
+	until null,never
+
+
+
+
+lpm_recover_clk:
+	bpatch patch15_4,mem_patch15
+	setarg 0
+	copy auxcnt,null
+	branch lpm_recover_timeout,zero
+	fetch 1,core_lpm_xtalcnt
+	fetcht 1,core_lpm_buckcnt
+	isub temp,null
+	branch lpm_recover_xtal,positive
+	deposit temp
+lpm_recover_xtal:
+	isub auxcnt,pdata
+	increase 1,pdata
+lpm_recover_timeout:
+	increase 8,pdata
+	until null,lpo_edge
+	iadd lpo_time,pdata
+	fetcht 4,mem_sleep_counter
+	iadd temp,pdata
+	fetcht 3,mem_clks_per_lpo
+	imul32 temp,pdata
+	rshift8 pdata,pdata
+	rshift4 pdata,pdata
+	increase param_lpm_fix,pdata
+	fetcht 2,mem_param_rt_rthalfslot
+	idiv temp
+	call get_div_result
+	lshift16 pdata,pdata
+	remainder temp
+	ior temp,pdata
+	fetcht 6,mem_sleep_clkn
+	call clk_add
+	copy temp,clkn
+	fetch 6,mem_context + coffset_clk_offset
+	call calc_clke2
+	deposit clke
+	store 6,mem_pdatatemp
+	deposit auxcnt
+	istore 1,contw
+	fetch 1,core_gpio_in1
+	or_into 0xf0,pdata
+	istore 1,contw
+	rtn
+	
+lpm_dispatch:
+	bpatch patch15_5,mem_patch15
+	call lpo_calibration
+	fetch 3,mem_clks_per_lpo
+	rtn blank
+	fetch 1,mem_lpm_mode
+	rtn blank
+	fetch 1,mem_ssp_enable
+	branch lpm_dispatch_next,blank
+	fetch 1,mem_sp_local_key_invalid	// simple pairing is not ready
+	rtn blank
+lpm_dispatch_next:
+	fetch 1,mem_sc_calc
+	nrtn blank	
+	call context_check_all_wack			 
+	rtn zero
+	call lpm_check_wake_lock
+	nrtn blank
+	fetch 1,mem_context
+	compare 3,pdata,0x7							/* sco won't sleep */
+	nbranch lpm_dispatch_unconn,true
+	fetch 2,mem_context + coffset_tsniff		/* role switch */
+	rtn blank																
+	rtn wake
+	bpatch patch15_6,mem_patch15
+lpm_dispatch_next2:
+	fetcht 1,mem_lpm_current_mult
+	fetch 2,mem_context + coffset_tsniff
+	imul32 temp,pdata
+	rshift4 temp,temp
+	rshift2 temp,temp
+	isub temp,pdata
+	fetcht 4,mem_context + coffset_sniff_anchor
+	iadd temp,pdata
+	fetcht 1,mem_lpm_overhead
+	isub temp,pdata
+	lshift16 pdata,alarm
+	bpatch patch15_7,mem_patch15
+	fetch 2,mem_context + coffset_rx_window
+	rshift pdata,pdata
+	call clk2bt
+	deposit alarm
+	call clk_diff
+	copy clke,temp
+	call clk_diff_rt
+	rtn user
+lpm_dispatch_sleep:
+	call clk2lpo
+lpm_dispatch_lpo:
+	bpatch patch16_0,mem_patch16
+	fetch 1,mem_lpm_xtalcnt
+	isub temp,null
+	branch lpm_clear_counter,positive
+	storet 4,mem_sleep_counter
+	call app_will_enter_lpm
+	call l2cap_lpm_save_txbuf
+	fetcht 4,mem_sleep_counter
+	branch lpm_sleep
+	
+lpm_dispatch_unconn:
+	bpatch patch16_1,mem_patch16
+	fetch 1,mem_context
+	rtnbit1 state_inconn					// wont sleep in connection
+	rtnbit1 state_inpage					// wont sleep when paging
+	fetch 1,mem_ssp_enable
+	branch lpm_unconn_nossp,blank
+	fetch 1,mem_sp_local_key_invalid	// simple pairing is not ready
+	rtn blank
+lpm_unconn_nossp:
+	fetch 1,mem_le_adv_enable
+	nbranch lpm_unconn_cont,blank
+	fetch 1,mem_scan_mode
+	rtn blank
+lpm_unconn_cont:
+	fetch 2,mem_lpm_interval
+	rtn blank
+lpm_sleep_btclk:
+	fetcht 1,mem_lpm_overhead
+	isub temp,pdata
+	arg 7500,temp				/* 1.25ms */
+	imul32 temp,pdata
+	branch lpm_dispatch_sleep
+
+lpm_set_mult:
+	bpatch patch16_2,mem_patch16
+	disable wake
+	fetch 1,mem_state
+	rtnbit0 state_insniff
+	nbranch lpm_not_match,match
+	call lpm_match
+	fetch 2,mem_rx_window_sniff
+	store 2,mem_rx_window
+	fetch 1,mem_arq
+	bbit1 wack,lpm_mult_short
+	bmark0 mark_lpm_mult_enable,lpm_mult_short
+	call l2cap_malloc_is_fifo_empty
+	nbranch lpm_mult_short,blank
+	fetch 1,mem_classic_bt_flag
+	bbit1 SHORT_MULT_FLAG,lpm_mult_short
+lpm_mult_wait_timeout:
+	fetch 2,mem_cb_bt_set_mult
+	call callback_func
+	nbranch lpm_mult_short,blank
+	jam 0,mem_lpm_current_mult
+	bmark0 mark_lpm_mult_enable,lpm_mult_short
+	fetch 1,mem_lpm_mult_cnt
+	branch lpm_mult_long,blank
+	increase -1,pdata
+	store 1,mem_lpm_mult_cnt
+	rtn
+
+
+classic_bt_set_mult_short_flag:
+	arg SHORT_MULT_FLAG,queue
+	branch classic_bluetooth_set_flag
+	
+classic_bt_clr_mult_short_flag:
+	arg SHORT_MULT_FLAG,queue
+	branch classic_bluetooth_clr_flag
+
+
+
+lpm_match:
+	jam 0,mem_sniff_unint_lost
+	fetch 3,mem_sniff_rcv
+	increase 1,pdata
+	store 3,mem_sniff_rcv
+	rtn
+
+lpm_not_match:
+	bpatch patch16_3,mem_patch16
+	fetcht 2,mem_rx_window_sniff
+	rshift temp,temp
+	fetch 2,mem_rx_window
+	iadd temp,pdata
+	store 2,mem_rx_window
+lpm_lost:
+	jam 0,mem_lpm_current_mult
+	fetch 3,mem_sniff_lost
+	increase 1,pdata
+	store 3,mem_sniff_lost
+	fetch 1,mem_sniff_unint_lost
+	increase 1,pdata
+	store 1,mem_sniff_unint_lost
+	rtn
+
+lpm_mult_short:
+	jam 0,mem_lpm_current_mult
+	fetch 1,mem_lpm_mult_timeout
+	store 1,mem_lpm_mult_cnt
+	rtn
+
+lpm_mult_long:
+	fetcht 1,mem_lpm_mult
+	storet 1,mem_lpm_current_mult
+	rtn
+
+lpm_cal_xtal_startup:
+	bpatch patch16_4,mem_patch16
+	fetch 1,mem_lpm_xtalcnt
+	nrtn blank
+	jam clksel_rc,core_clksel
+	setarg 0xf0c
+	call lpm_write_config
+	setarg 200000
+	call sleep
+	until null,lpo_edge
+	copy lpo_time,alarm
+	call xtal_fast_wake
+	jam clksel_xtal,core_clksel
+	nop 10
+	until null,lpo_edge
+	deposit lpo_time
+	isub alarm,pdata
+	increase 0x30,pdata
+	arg 0xff,temp
+	call ceiling
+	store 1,mem_lpm_xtalcnt
+	nop 30000
+	nop 30000
+	nop 30000	
+	rtn
+
+lpm_cal_xtal_startup_by_snooze:
+	fetch 1,mem_lpm_xtalcnt
+	nrtn blank
+	jam 0xff,core_xtal_stable_time
+	jam clksel_rc,core_clksel
+	call xtal_fast_wake
+	setarg 1000
+	iadd lpo_time,alarm
+	snooze
+	deposit lpo_time
+	nop 12000	//delay about 1ms
+	nop 12000	//delay about 1ms
+	nop 12000	//delay about 1ms
+	nop 12000	//delay about 1ms
+	nop 12000	//delay about 1ms
+	nop 12000	//delay about 1ms
+	nop 12000	//delay about 1ms
+	nop 12000	//delay about 1ms
+	nop 12000	//delay about 1ms
+	isub alarm,pdata
+	add pdata,0x30,pdata
+	arg 0xff,temp
+	call ceiling
+	store 1,mem_lpm_xtalcnt
+	nop 30000
+	nop 30000
+	nop 30000	//delay 90000 nop
+	rtn
+
+
+
+	/* pdata is lpm_reg[11:0] */
+lpm_write_config:
+	arg 0xfff,contw
+	iand contw,contw
+	fetch 1,mem_lpm_config
+	and_into 0xf0,pdata
+	lshift8 pdata,pdata
+	ior contw,pdata
+	store 2,core_lpm_reg
+	ifetch 2,contr
+	istore 2,contw
+
+lpm_write_ctrl:
+	setarg lpmreg_sel_ctrl
+	branch lpm_write
+
+lpm_write_ctrl2:
+	setarg lpmreg_sel_ctrl2
+lpm_write:
+	until null,lpo_edge
+	store 1,core_lpm_wr
+	until null,lpo_edge
+	until null,lpo_edge
+	rtn
+
+lpm_write_ctrl3:
+	setarg lpmreg_sel_ctrl3
+	branch lpm_write
+
+
+lpm_write_gpio_wakeup:
+	bpatch patch16_5,mem_patch16
+	fetch 4,mem_gpio_wakeup_low
+	store 4,core_lpm_reg
+	setarg lpmreg_sel_gpiolow
+	call lpm_write
+	fetch 4,mem_gpio_wakeup_high
+	store 4,core_lpm_reg
+	setarg lpmreg_sel_gpiohigh
+	branch lpm_write
+
+lpm_get_wake_lock:
+	fetch 2,mem_lpm_wake_lock
+	qset1 pdata
+	store 2,mem_lpm_wake_lock
+	rtn
+
+lpm_put_wake_lock:
+	fetch 2,mem_lpm_wake_lock
+	qset0 pdata
+	store 2,mem_lpm_wake_lock
+	rtn
+
+
+
+lpm_check_wake_lock:
+	bpatch patch16_6,mem_patch16
+	call app_check_wake_lock
+	fetch 2,mem_lpm_wake_lock
+	copy pdata,rega
+	fetch 1,mem_state_map
+	isolate1 smap_rxlmp,pdata
+	setflag true,wake_lock_lmp_rx,rega
+	fetch 1,mem_lmo_opcode1
+	fetcht 1,mem_lmo_opcode2
+	iadd temp,pdata
+	fetcht 1,mem_lmp_to_send
+	iadd temp,pdata
+	nsetflag blank,wake_lock_lmp_tx,rega
+	fetch 3,mem_tx_fifo3
+	nsetflag blank,wake_lock_ble_tx,rega
+	fetch 2,mem_l2cap_rxbuff1_len
+	fetcht 2,mem_l2cap_rxbuff2_len
+	iadd temp,pdata
+	nsetflag blank,wake_lock_l2cap_rx,rega
+	fetch UTIL_FIFO_LEN,mem_ipc_fifo_bt2c51
+	nsetflag blank,wake_lock_ipc_bt2c51,rega
+	fetch UTIL_FIFO_LEN,mem_ipc_fifo_c512bt
+	nsetflag blank,wake_lock_ipc_c512bt,rega
+	fetch 1,mem_hci_cmd
+	nsetflag blank,wake_lock_cmd,rega
+	fetch 1,mem_device_option
+	compare dvc_op_module,pdata,0xff
+	call lpm_uart_wake_lock,true
+	copy rega,pdata
+	store 2,mem_lpm_wake_lock
+	rtn
+
+lpm_uart_wake_lock:
+	fetch 2,core_uart_rxitems
+	nsetflag blank,wake_lock_uart_rx ,rega
+	fetch 2,core_uart_txitems
+	nsetflag blank,wake_lock_uart_tx ,rega
+	rtn
+
+lpm_shut_down:
+	fetch 4,core_lpm_ctrl
+	set0 27,pdata
+	store 4,core_lpm_reg
+	call lpm_write_ctrl
+	branch assert
+	
+lpm_disable_exen_output:
+	fetch 4,core_lpm_xtalcnt
+	set0 20,pdata
+	store 4,core_lpm_reg
+	branch lpm_write_ctrl2
+
+check_bt_disabled:
+	fetch 2,mem_chip_functions
+	bbit1 bt_disabled,assert
+	rtn
+check_ble_disabled:
+	fetch 2,mem_chip_functions
+	bbit1 ble_disabled,assert
+	rtn
+check_module_disabled:
+	fetch 2,mem_chip_functions
+	bbit1 module_disable,assert
+	rtn
+
+
+
Index: program/debug.prog
===================================================================
--- /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/program/debug.prog	(nonexistent)
+++ /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/program/debug.prog	(working copy)
@@ -0,0 +1,66 @@
+
+// Rf debug
+
+/*****************************************************************************************************************************************************************************************
+    txon     txoff       rxon		      sync             crc pass    shutdown radio          match
+     _________          __    ____________    _________________     ___        ___                     
+    |         |        |  |  |            |  |                 |   |   |      |   |                   
+    |	      |        |  |  |            |  |                 |   |   |      |   |                   
+____|tx data  |________|  |__| rx window  |__| rx data         |___|   |______|   |_______       __________
+
+*****************************************************************************************************************************************************************************************/
+
+rf_debug_rx_gpio_low:
+	fetch 1,mem_rf_debug_rx_gpio
+rf_debug_gpio_low:
+	arg gpcfg_output_low,temp
+	branch gpio_config_function
+
+rf_debug_rx_gpio_high:
+	fetch 1,mem_rf_debug_rx_gpio
+rf_debug_gpio_high:
+	arg gpcfg_output_high,temp
+	branch gpio_config_function
+
+rf_debug_rx_on_line:
+rf_debug_rx_gpio_h_l_h:
+	call rf_debug_rx_gpio_high
+rf_debug_rx_gpio_l_h:
+	call rf_debug_rx_gpio_low
+	branch rf_debug_rx_gpio_high
+
+rf_debug_rx_gpio_l_h_l:
+rf_debug_shutdown_radio_line:
+	call rf_debug_rx_gpio_l_h
+rf_debug_rx_crc_line:
+	branch rf_debug_rx_gpio_low
+
+rf_debug_rx_sync_line:
+	branch rf_debug_rx_gpio_l_h
+
+rf_debug_rx_crc_fail_line:
+	call rf_debug_rx_gpio_l_h
+	branch rf_debug_rx_gpio_l_h_l
+
+rf_debug_rx_match_line:
+rf_debug_rx_crc_error_line:
+rf_debug_rx_sync_timeout_line:
+	branch rf_debug_rx_gpio_low
+
+
+rf_debug_tx_off_line:
+rf_debug_tx_gpio_low:
+	fetch 1,mem_rf_debug_tx_gpio
+	branch rf_debug_gpio_low
+
+rf_debug_tx_on_line:
+rf_debug_tx_gpio_high:
+	fetch 1,mem_rf_debug_tx_gpio
+	branch rf_debug_gpio_high
+
+rf_debug_tx_gpio_l_h_l:
+	call rf_debug_tx_gpio_low
+	call rf_debug_tx_gpio_high
+	branch rf_debug_tx_gpio_low
+
+	
Index: program/g24_protocol_stack/24g.prog
===================================================================
--- /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/program/g24_protocol_stack/24g.prog	(nonexistent)
+++ /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/program/g24_protocol_stack/24g.prog	(working copy)
@@ -0,0 +1,429 @@
+
+
+g24_dispatch:
+	bpatchx patch3b_7,mem_patch3b
+	bmark1 mark_24g_rxmode,g24_receive_dispatch
+	branch g24_transmit_dispatch
+
+
+/****************************g24 base transceiver start********************************/
+
+g24_prep:
+	disable enable_crc
+	disable enable_white
+	setarg 0x555555
+	iforce crc24_init
+	fetch 1,mem_24g_ch
+	branch le_prep+5	
+
+g24_receive_packet:
+	bpatchx patch3c_0,mem_patch3c
+	fetch 1,mem_24g_rx_phy
+	call le_enable_phy_by_pdata
+	fetch 4,mem_24g_addr
+	iforce access
+	call calc_mod_value_scale_le
+	call set_sync_on
+	fetcht 1,mem_24g_ch
+	call le_rf_rx_enable
+g24_receive_rxon:
+	bpatchx patch3c_1,mem_patch3c
+	call g24_prep
+	bmark0 mark_ble_lr,g24_receive_nolr
+	pulse dewhiten_code_calc
+	nop 30
+	call g24_prep
+g24_receive_nolr:
+	disable user3
+	enable decode_fec0
+	enable is_rx
+	disable is_tx
+	enable swfine
+	fetch 2,mem_24g_rx_window
+	iforce stop_watch
+	correlate null,timeout
+	nbranch g24_sync_timeout,sync
+	call rf_debug_rx_sync_line
+	bmark1 mark_ble_lr,g24_receive_skip_fec1
+	disable decode_fec0	
+	enable decode_fec1	//lr do not use fec1
+g24_receive_skip_fec1:
+	enable enable_white
+	enable enable_crc
+	call g24_receive_byte
+	store 1,mem_24g_get_syncword_crc8
+	fetcht 1,mem_24g_syncword_crc8
+	isub temp,null
+	nbranch g24_end_of_packet,zero
+	isolate1 mark_ble_lr,mark
+	call g24_lr_receive_pdu_len,true
+	call g24_receive_byte
+	store 1,mem_24g_rxbuf	//device id
+	bmark1 mark_24g_rxmode,g24_receive_skip
+	fetch 1,mem_24g_rxbuf
+	fetcht 1,mem_24g_data_type
+	icompare bits_data,temp
+	nbranch g24_end_of_packet,true
+g24_receive_skip:
+	call g24_receive_byte
+	isolate1 mark_ble_lr,mark
+	call g24_lr_receive_payload_len,true
+	istore 1,contw
+	rshift3 pdata,pdata
+	and pdata,0x1f,loopcnt	//max payload: 32bytes
+	branch g24rx_nopayload,zero
+g24rx_loop:
+	call g24_receive_byte
+	istore 1,contw
+	loop g24rx_loop
+g24rx_nopayload:
+	bmark1 mark_24g_rxmode,g24_receive_skip_rssi
+	copy contw,rega
+	call g24_receive_byte
+	store 1,mem_rssi_hex_received	//receive rssi hex
+	copy rega,contw
+g24_receive_skip_rssi:
+	parse demod,bucket,24
+	rshift32 pdata,pdata
+	rshift16 pdata,pdata
+	istore 3,contw
+	disable decode_fec1
+	isolate1 mark_24g_rxmode,mark
+	call save_rssi,true
+	branch g24_end_of_packet,crc_failed
+	call rf_debug_rx_crc_line	//L
+	enable user3
+	call le_set_txfreq
+	rtnmark1 mark_24g_rxmode
+	fetch 1,mem_rssi_hex_received
+	branch rssi_signal
+
+g24_lr_receive_pdu_len:
+	call g24_receive_byte
+	increase -2,pdata	//minus hec and pdu length
+	bmark1 mark_24g_rxmode,g24_lr_receive_pdu_norssi
+	increase -1,pdata	//minus rssi_hex length
+g24_lr_receive_pdu_norssi:
+	store 1,mem_temp	//payload length
+	rtn
+
+g24_lr_receive_payload_len:
+	and_into 0x07,pdata	//pdata[7:3]:length
+	fetcht 1,mem_temp	//payload length
+	lshift3 temp,temp
+	ior temp,pdata
+	rtn
+	
+g24_receive_byte:
+	parse demod,bucket,8
+	rshift3 pwindow,pdata
+	rtn
+
+g24_sync_timeout:
+	isolate1 mark_24g_rxmode,mark
+	call rssi_noise,true
+g24_end_of_packet:
+	call le_disable
+	disable encode_fec1
+	disable decode_fec1
+	branch end_of_packet
+
+g24_set_freq_tx:
+	call set_sync_on
+	fetcht 1,mem_24g_ch
+	branch set_freq_tx
+
+g24_transmit:
+	bpatchx patch3c_2,mem_patch3c
+	fetch 1,mem_24g_tx_phy
+	call le_enable_phy_by_pdata
+	fetch 4,mem_24g_addr
+	iforce access
+	call g24_prep
+	call g24_set_freq_tx
+	set1 TXGFSK,radio_ctrl
+	enable encode_fec0
+	enable is_tx
+	disable is_rx
+	call rf_debug_tx_on_line
+	disable lr_s2en
+	bmark1 mark_ble_lr,g24_transmit_lr
+	bmark1 mark_ble_2M,g24_transmit_2M
+	rshift16 access,pdata
+	rshift8 pdata,pdata
+	rshift4 pdata,pdata
+	inject mod,40
+g24_transmit_packet:
+	bmark1 mark_ble_lr,g24_transmit_nolr
+	disable encode_fec0	
+	enable encode_fec1	////lr use encode_fec3
+g24_transmit_nolr:
+	enable enable_white
+	enable enable_crc
+	fetch 1,mem_24g_txlen
+	iforce loopcnt
+	arg mem_24g_txpayload,contr
+g24tr_loop:
+	ifetch 1,contr
+	inject mod,8
+	loop g24tr_loop
+	enable enable_parity
+	inject mod,24	//crc
+	disable enable_parity
+	bmark0 mark_ble_lr,g24_transmit_skip
+	disable enable_white
+	setarg 0
+	inject mod,3
+g24_transmit_skip:	
+	until null,tx_clear
+	nop 100
+	disable lr_s2en
+	disable encode_fec0
+	disable encode_fec1
+	disable encode_fec3
+	call set_sync_on
+	branch rf_debug_tx_off_line
+
+g24_transmit_lr:
+	arg 10,loopcnt
+g24_transmit_lr_preamble_loop:
+	setarg 0x3c
+	inject mod,8
+	loop g24_transmit_lr_preamble_loop
+	disable encode_fec0
+	enable encode_fec3
+	rshift16 access,pdata
+	rshift16 pdata,pdata
+	rshift4 pdata,pdata
+	inject mod,32
+	bmark1 mark_ble_lr_s8,g24_transmit_lr_s8
+g24_transmit_lr_s2:
+	setarg 1
+	inject mod,5
+	enable lr_s2en
+	branch g24_transmit_packet
+
+g24_transmit_lr_s8:
+	setarg 0
+	inject mod,5
+	branch g24_transmit_packet
+
+g24_transmit_2M:
+	fetch 1,mem_system_clk
+	rshift pdata,loopcnt
+g24_transmit_2M_dealy:
+	nop 2
+	loop g24_transmit_2M_dealy
+//	nop 36	//2M 前端发送比1M快3us左右
+	rshift16 access,pdata
+	rshift8 pdata,pdata
+	rshift4 pdata,temp
+	copy temp,pdata
+	inject mod,8
+	copy temp,pdata
+	inject mod,40
+	branch g24_transmit_packet
+
+/****************************g24 base transceiver end********************************/
+
+
+
+/****************************g24 general func start********************************/
+
+g24_transmit_prep:
+	fetch 1,mem_24g_tx_phy
+	bbit1 BIT_LE_CODED_PHY,g24_lr_transmit_prep
+// total length
+	fetch 1,mem_24g_datalen
+	increase 3,pdata	//hec/type/control
+	store 1,mem_24g_txlen
+//hec
+	fetch 1,mem_24g_syncword_crc8
+	store 1,mem_24g_txpayload
+// data type
+	fetch 1,mem_24g_data_type
+	istore 1,contw
+//prepare 5bit payload length, 2bit PID, 1bit NO_ACK
+	fetch 1,mem_24g_datalen
+g24_transmit_prep_pdu:
+	lshift3 pdata,pdata
+	fetcht 1,mem_24g_pid
+	and temp,0x03,temp
+	lshift temp,temp
+	ior temp,pdata
+	fetcht 1,mem_24g_no_ack
+	iadd temp,pdata
+	istore 1,contw
+//prepare payload data
+	fetch 1,mem_24g_datalen
+	iforce loopcnt
+	arg mem_24g_txbuf,contr
+	call memcpy
+//rssi hex	
+	rtnmark0 mark_24g_rxmode
+	fetch 1,mem_rssi_hex
+	istore 1,contw
+	fetch 1,mem_24g_tx_phy
+	rtnbit1 BIT_LE_CODED_PHY
+	fetch 1,mem_24g_txlen
+	increase 1,pdata	//plus rssi_hex length
+	store 1,mem_24g_txlen
+	rtn
+	
+g24_lr_transmit_prep:
+// total length
+	fetch 1,mem_24g_datalen
+	increase 4,pdata	//hec/pdu/type/control
+	bmark0 mark_24g_rxmode,g24_lr_transmit_prep_skip
+	increase 1,pdata	//mem_rssi_hex
+g24_lr_transmit_prep_skip:
+	store 1,mem_24g_txlen
+//hec
+	fetch 1,mem_24g_syncword_crc8
+	store 1,mem_24g_txpayload
+// pdu length
+	fetch 1,mem_24g_txlen
+	increase -2,pdata	//minus hec and pdu length
+	istore 1,contw
+// data type
+	fetch 1,mem_24g_data_type
+	istore 1,contw
+	setarg 0
+	branch g24_transmit_prep_pdu
+
+g24_read_len_pid_crc:
+//read control
+	fetch 1,mem_24g_rxbuf+1
+	rshift3 pdata,pdata
+	store 1,mem_24g_rxdata_length
+//get crc
+	increase 1,pdata
+	arg mem_24g_rxbuf+1,contr
+	iadd contr,contr
+	ifetch 3,contr
+	store 3,mem_24g_sta_crc
+//read pid
+	fetch 1,mem_24g_rxbuf+1
+	rshift pdata,pdata
+	and pdata,0x03,pdata
+	store 1,mem_24g_sta_pid
+	rtn
+
+	
+g24_ch:
+	fetcht 1,mem_24g_current_ch_number
+	call g24_ch_map_size
+	storet 1,mem_24g_current_ch_number
+	rtn
+
+g24_ch_map_size:
+	call g24_ch_calc
+	increase 1,temp
+	and_into 3,temp //map size =4
+	rtn
+	
+g24_ch_calc:
+	fetch 1,mem_24g_addr	
+	and_into 0x03,pdata
+	mul32 pdata,4,rega			//24addr low bit0 bit1 ,00-map1,01-map2,10-map3,11-map4
+	setarg mem_24g_ch_map1
+	iadd rega,pdata
+	iadd temp,contr
+	ifetch 1,contr
+	store 1,mem_24g_ch
+	rtn
+
+
+g24_update_addr_and_synccrc8:
+	store 4,mem_24g_addr
+//output: 1BYTE crc8
+g24_syncword_crc8:
+	arg 0,rega
+	arg 4,loopcnt
+	arg mem_24g_addr,contr
+g24_syncword_crc8_loop:
+	ifetch 1,contr
+	iadd rega,rega
+	loop g24_syncword_crc8_loop
+	copy rega,pdata
+	store 2,mem_24g_syncword
+	fetch 1,mem_24g_syncword
+	fetcht 1,mem_24g_syncword+1
+	iadd temp,pdata
+	store 1,mem_24g_syncword_crc8
+	rtn
+
+
+g24_timer_check:
+	call disable_user
+	fetcht 4,mem_24g_tx_btclk
+	copy clkn_bt,pdata
+	isub temp,null
+	ncall g24_timer_timeout,positive
+	copy pdata,regb
+	fetch 4,mem_24g_tx_btclk
+	fetcht 1,mem_24g_interval
+	iadd temp,temp
+	copy regb,pdata
+	isub temp,null
+	nrtn positive
+	set0 28,pdata
+	store 4,mem_24g_tx_btclk
+	branch enable_user
+g24_timer_timeout:
+	rtn zero
+	set1 28,pdata
+	rtn
+g24_timer_init:
+	setarg 0
+	store 4,mem_24g_tx_btclk
+	rtn
+
+
+/****************************g24 general func end********************************/
+
+
+
+/****************************g24 sim start********************************/
+/*
+g24_sim_rx:
+	set1 mark_24g_rxmode,mark
+	jam 1,mem_24g_rx_phy	//0x01:1M/0x02:2M/0x04:S2/0x84:S8
+	fetch 1,mem_24g_rx_phy
+	call le_enable_phy_by_pdata
+	jam 0,mem_24g_ch
+	setarg 0x123456
+	store 3,mem_24g_addr
+	istore 1,contw
+	call g24_syncword_crc8
+	setarg 0x3000
+	store 2,mem_24g_rx_window
+g24_sim_rx_loop:
+	call g24_receive_packet
+	call g24_read_len_pid_crc
+	call g24_end_of_packet
+	branch g24_sim_rx_loop
+
+g24_sim_tx:
+	jam 1,mem_24g_tx_phy
+	fetch 1,mem_24g_tx_phy
+	call le_enable_phy_by_pdata
+	jam 0,mem_24g_ch
+	setarg 0x123456
+	store 3,mem_24g_addr
+	istore 1,contw
+	call g24_syncword_crc8
+	jam 1,mem_24g_datalen
+	jam 1,mem_24g_txbuf
+	jam 0x88,mem_rssi_hex
+	call g24_transmit_prep
+g24_sim_tx_loop:
+	call g24_transmit
+	call g24_end_of_packet
+	branch g24_sim_tx_loop
+
+*/
+
+/****************************g24 sim end********************************/
+
+	
Index: program/g24_protocol_stack/24g_pair.prog
===================================================================
--- /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/program/g24_protocol_stack/24g_pair.prog	(nonexistent)
+++ /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/program/g24_protocol_stack/24g_pair.prog	(working copy)
@@ -0,0 +1,355 @@
+/****************************g24 pair transmitter start********************************/
+
+g24_pair_timeout_timer:
+	arg mem_24g_pair_timeout,regc
+	arg g24_stop_24g_mode,regb
+	branch timer_single_step_2B
+
+g24_pair_start:
+	set1 mark_24g,mark
+	fetch 1,mem_24g_conn_sm
+	set0 STATE_24G_RECONN,pdata
+	set1 STATE_24G_PAIR,pdata
+	store 1,mem_24g_conn_sm
+	setarg 0
+	store 2,mem_24g_reconn_timeout
+	fetch 2,mem_24g_pair_timeout_init
+	store 2,mem_24g_pair_timeout
+	jam 0,mem_24g_pair_no_ack
+	call g24_pair_sm_reinit
+g24_pair_init_param:
+	jam 0,mem_24g_pid
+	fetch 1,mem_24g_pair_ch
+	store 1,mem_24g_ch
+	fetch 1,mem_24g_pair_tx_power
+	store 1,mem_tx_power
+	fetch 4,mem_24g_pair_addr
+	branch g24_update_addr_and_synccrc8
+
+
+g24_pair_dispatch:
+	bpatchx patch3c_3,mem_patch3c
+	fetch 1,mem_24g_pair_sm
+	beq STATE_24G_PAIRING_SUCCESS,g24_pair_exit
+	beq STATE_24G_PAIRING_1,g24_pair_sm_1
+	beq STATE_24G_PAIRING_2,g24_pair_sm_2
+	beq STATE_24G_PAIRING_3,g24_pair_sm_3
+	beq STATE_24G_PAIRING_4,g24_pair_sm_4
+	rtn
+
+g24_pair_sm_1:
+	jam DATATYPE_ATTEMP,mem_24g_txbuf
+	branch g24_pair_sm_prep
+
+g24_pair_sm_2:
+	fetch 1,mem_24g_pair_switch
+	branch g24_pair_sm_2_skip,blank
+	fetch 4,mem_24g_device_addr
+	call g24_update_addr_and_synccrc8	//use transmitter addr
+g24_pair_sm_2_skip:
+	jam DATATYPE_BIND,mem_24g_txbuf	
+	branch g24_pair_sm_prep
+
+g24_pair_sm_3:
+	jam DATATYPE_CONFIG,mem_24g_txbuf	
+	fetch 1,mem_24g_pair_switch
+	branch g24_pair_sm_prep,blank
+	fetch 4,mem_24g_receiver_addr		//prep receiver addr
+	store 4,mem_24g_txbuf+2
+	branch g24_pair_sm_common
+
+g24_pair_sm_4:
+	jam DATATYPE_OK,mem_24g_txbuf
+g24_pair_sm_prep:
+	fetch 4,mem_24g_device_addr
+	store 4,mem_24g_txbuf+2
+g24_pair_sm_common:
+	fetch 1,mem_24g_data_type
+	and_into bits_data,pdata
+	store 1,mem_24g_txbuf+1
+	jam 0,mem_24g_txbuf+6
+	jam 7,mem_24g_datalen
+	call g24_transmit_prep
+	call g24_transmit_receive_ack
+	nbranch g24_pair_fail,sync
+	nbranch g24_pair_fail,user3
+	call g24_txbuf_clear
+	call g24_ackpayload_parse
+	bpatchx patch3c_4,mem_patch3c
+	fetch 1,mem_24g_pair_sm
+	rtneq STATE_24G_PAIRING_SUCCESS
+	beq STATE_24G_PAIRING_1,g24_pair_sm_1_waiting_ack
+	beq STATE_24G_PAIRING_2,g24_pair_sm_2_waiting_ack
+	beq STATE_24G_PAIRING_3,g24_pair_sm_3_waiting_ack
+	beq STATE_24G_PAIRING_4,g24_pair_sm_4_waiting_ack
+	rtn
+
+g24_pair_fail:
+	rtn
+	fetch 1,mem_24g_pair_no_ack
+	increase 1,pdata
+	store 1,mem_24g_pair_no_ack
+	rtnne 100
+	jam 0,mem_24g_pair_no_ack
+g24_pair_sm_reinit:	
+	jam STATE_24G_PAIRING_2,mem_24g_pair_sm
+	fetch 1,mem_24g_pair_switch
+	rtn blank
+	jam STATE_24G_PAIRING_1,mem_24g_pair_sm
+	rtn
+
+g24_pair_sm_1_waiting_ack:
+	jam STATE_24G_PAIRING_2,mem_24g_pair_sm
+	branch g24_transmit_abandon
+	
+g24_pair_sm_2_waiting_ack:
+	fetch 1,mem_24g_pair_switch
+	branch g24_pair_sm_2_waiting_ack_skip,blank
+	fetch 4,mem_24g_rxpayload+2
+	store 4,mem_24g_receiver_addr
+g24_pair_sm_2_waiting_ack_skip:	
+	jam STATE_24G_PAIRING_3,mem_24g_pair_sm
+	branch g24_transmit_abandon
+
+g24_pair_sm_3_waiting_ack:
+	fetch 1,mem_24g_pair_switch
+	branch g24_pair_sm_3_waiting_ack_skip,blank
+	fetch 4,mem_24g_rxpayload+2
+	fetcht 4,mem_24g_device_addr
+	isub temp,null
+	nrtn zero
+g24_pair_sm_3_waiting_ack_skip:	
+	jam STATE_24G_PAIRING_4,mem_24g_pair_sm
+	branch g24_transmit_abandon	
+	
+g24_pair_sm_4_waiting_ack:
+	fetch 1,mem_24g_pair_switch
+	branch g24_pair_sm_4_waiting_ack_skip,blank
+	fetch 4,mem_24g_rxpayload+2
+	fetcht 4,mem_24g_receiver_addr
+	isub temp,null
+	nrtn zero
+g24_pair_sm_4_waiting_ack_skip:	
+	jam STATE_24G_PAIRING_SUCCESS,mem_24g_pair_sm
+	jam BT_EVT_24G_PAIRING_COMPLETE,mem_fifo_temp
+	call ui_ipc_send_event
+	setarg 0
+	store 2,mem_24g_pair_timeout
+	fetch 4,mem_24g_rxpayload+2
+	call g24_update_addr_and_synccrc8
+g24_pair_exit:
+	fetch 1,mem_24g_conn_sm
+	set0 STATE_24G_PAIR,pdata
+	store 1,mem_24g_conn_sm
+	branch g24_transmit_abandon
+
+
+
+
+/****************************g24 pair transmitter end********************************/
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+/****************************g24 pair receiver start********************************/
+
+
+g24_bind_mode_enable:
+	jam DONGLE_BIND,mem_24g_work_mode
+	jam CLEAR_INIT,mem_24g_mode_init
+	rtn
+
+g24_bind_init:
+	fetch 1,mem_24g_mode_init
+	rtnbit1 DONGLE_BIND
+	set1 DONGLE_BIND,pdata
+	store 1,mem_24g_mode_init
+	setarg 0
+	store 3,mem_24g_device1_bind_step
+	store 4,mem_24g_transmitter_addr
+	jam 1,mem_24g_ackpayload_enable
+	branch g24_pair_init_param
+
+
+g24_bind_ackpayload_prep:
+	jam 1,mem_24g_ackpayload_enable
+	jam 0x08,mem_24g_datalen
+	arg mem_24g_bind_payload,contr
+	arg mem_24g_txbuf,contw
+	branch memcpy8
+
+
+g24_bind_data_process:
+	call g24_rx_interrupt_clear
+	call g24_receive_packet
+	nbranch g24_rx_interrupt_clear,user3
+	call g24_bind_data_parse
+	nbranch g24_bind_data_error,user
+	call g24_transmit_ack
+	fetch 1,mem_24g_pair_switch
+	rtn blank
+	fetch 4,mem_24g_transmitter_addr
+	rtn blank
+	branch g24_update_addr_and_synccrc8
+
+g24_bind_data_error:
+	call g24_rx_interrupt_clear
+	branch g24_end_of_packet
+
+g24_bind_data_parse:
+	jam BIND_MODE_CONTINUE,mem_24g_bind_mode_continue	//about 400ms
+	call disable_user
+	arg mem_24g_rxbuf,contr
+	arg mem_24g_rxdata_temp,contw
+	call memcpy8
+	fetch 1,mem_24g_rxdata_temp+2
+	beq DATATYPE_BIND,g24_bind_first_step	//bind step 1
+	beq DATATYPE_CONFIG,g24_bind_second_step
+	beq DATATYPE_OK,g24_bind_third_step
+	beq DATATYPE_ATTEMP,g24_data_attemp
+	branch g24_rx_interrupt_clear
+
+
+g24_bind_first_step:
+	fetch 1,mem_24g_rxdata_temp+3
+	beq DATATYPE_DEVICE1,g24_bind_first_step_device1
+	beq DATATYPE_DEVICE2,g24_bind_first_step_device2
+	rtn
+
+g24_bind_first_step_device1:
+	jam 1,mem_24g_device1_bind_step
+g24_bind_dvc1_payload_cfg:
+	jam DATATYPE_DEVICE1,mem_24g_bind_payload
+g24_bind_payload_cfg:
+	jam 0x80,mem_24g_bind_payload+1
+	fetch 6,mem_lap
+	store 6,mem_24g_bind_payload+2
+	branch enable_user
+
+g24_bind_first_step_device2:
+	jam 1,mem_24g_device2_bind_step
+g24_bind_dvc2_payload_cfg:
+	jam DATATYPE_DEVICE2,mem_24g_bind_payload
+	branch g24_bind_payload_cfg
+
+
+g24_bind_second_step:
+	fetch 1,mem_24g_pair_switch
+	branch g24_bind_second_step_skip,blank
+	fetch 4,mem_24g_rxdata_temp+4
+	fetcht 4,mem_lap
+	isub temp,null
+	nrtn zero
+g24_bind_second_step_skip:	
+	fetch 1,mem_24g_rxdata_temp+3
+	beq DATATYPE_DEVICE1,g24_bind_second_step_device1
+	beq DATATYPE_DEVICE2,g24_bind_second_step_device2
+	rtn
+
+g24_bind_second_step_device1:
+	fetch 1,mem_24g_device1_bind_step
+	beq 1,g24_bind_dvc1_step_set2
+	rtn
+g24_bind_dvc1_step_set2:
+	jam 2,mem_24g_device1_bind_step
+	fetch 1,mem_24g_pair_switch
+	branch g24_bind_dvc1_payload_cfg,blank
+g24_bind_dvc1_payload_cfg_transmitter_addr:
+	jam DATATYPE_DEVICE1,mem_24g_bind_payload
+g24_bind_payload_cfg_transmitter_addr:
+	jam 0x80,mem_24g_bind_payload+1
+	fetch 4,mem_24g_transmitter_addr
+	store 4,mem_24g_bind_payload+2
+	branch enable_user
+
+g24_bind_second_step_device2:
+	fetch 1,mem_24g_device2_bind_step
+	beq 1,g24_bind_dvc2_step_set2
+	rtn
+g24_bind_dvc2_step_set2:
+	jam 2,mem_24g_device2_bind_step
+	fetch 1,mem_24g_pair_switch
+	branch g24_bind_dvc2_payload_cfg,blank	
+	jam DATATYPE_DEVICE2,mem_24g_bind_payload
+	branch g24_bind_payload_cfg_transmitter_addr
+
+
+g24_bind_third_step:
+	fetch 1,mem_24g_pair_switch
+	branch g24_bind_third_step_skip,blank
+	fetch 4,mem_24g_rxdata_temp+4
+	fetcht 4,mem_24g_transmitter_addr
+	isub temp,null
+	nrtn zero
+g24_bind_third_step_skip:
+	fetch 1,mem_24g_rxdata_temp+3
+	beq DATATYPE_DEVICE1,g24_bind_third_step_device1
+	beq DATATYPE_DEVICE2,g24_bind_third_step_device2
+	rtn
+
+g24_bind_third_step_device1:
+	fetch 1,mem_24g_device1_bind_step
+	beq 2,g24_bind_dvc1_step_success
+	rtn
+g24_bind_dvc1_step_success:
+	call g24_bind_dvc1_payload_cfg
+	fetch 1,mem_24g_bind_device_status
+	or_into 0x01,pdata
+	store 1,mem_24g_bind_device_status
+g24_bind_exit:
+	setarg 0
+	store 2,mem_24g_device1_bind_step
+	rtn
+	
+g24_bind_third_step_device2:
+	fetch 1,mem_24g_device2_bind_step
+	bne 0,g24_bind_dvc2_step_success
+	rtn
+g24_bind_dvc2_step_success:	
+	call g24_bind_dvc2_payload_cfg
+	fetch 1,mem_24g_bind_device_status
+	or_into 0x02,pdata
+	store 1,mem_24g_bind_device_status
+	call g24_bind_exit
+g24_store_dvc2_bind_flag:
+	fetch 1,mem_device_option
+	rtnne dvc_op_dongle
+	fetch 1,mem_dg_kb_bind_flag
+	rtneq DONGLE_KB_BIND_SUCCESS
+	jam DONGLE_KB_BIND_SUCCESS,mem_dg_kb_bind_flag
+	call dongle_set_kb_bind_addr_eeprom
+	call iicd_write_protect_eep_data
+	branch soft_reset_chip
+
+
+
+
+
+
+/****************************g24 pair receiver end********************************/
+
+
+
+
+
+
+
+
+
+
+
+
+
Index: program/g24_protocol_stack/24g_receiver.prog
===================================================================
--- /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/program/g24_protocol_stack/24g_receiver.prog	(nonexistent)
+++ /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/program/g24_protocol_stack/24g_receiver.prog	(working copy)
@@ -0,0 +1,482 @@
+
+g24_receive_init:
+	set1 mark_24g_rxmode,mark
+	fetch 1,mem_tx_power
+	store 1,mem_tx_power_temp
+	branch rssi_receiver_buff_init
+
+g24_receive_dispatch:
+	fetch 2,mem_cb_24g_receive_process
+	branch callback_func
+
+g24_ackpayload_prep:
+	jam 0,mem_24g_datalen
+	fetch 1,mem_24g_ackpayload_enable
+	rtn blank
+	fetch 2,mem_cb_24g_ackpayload
+	branch callback_func
+
+
+g24_receive_packet_start:
+	call g24_receive_transmit_ack
+	nbranch g24_rx_interrupt_clear,user3
+g24_receive_packet_parse:
+	call g24_receive_packet_parse_pid_crc
+	nbranch g24_rx_interrupt_clear,user
+	fetch 1,mem_24g_rxdata_length
+	branch g24_rx_interrupt_clear,blank
+	increase 2,pdata
+	iforce loopcnt
+	arg mem_24g_rxbuf,contr
+	arg mem_24g_rxdata_temp,contw
+	call memcpy
+	jam 0,mem_24g_mode_switch
+	fetch 1,mem_24g_pair_mode
+	call g24_enable_nodata_timer,blank
+	fetch 1,mem_24g_rxdata_temp+2
+	beq DATATYPE_DEVICE1,g24_data_device1	//mouse
+	beq DATATYPE_DEVICE2,g24_data_device2	//keyboard
+	beq DATATYPE_ATTEMP,g24_data_attemp	//reconn packet
+g24_rx_interrupt_clear:
+	arg mem_24g_rxbuf,contw
+	arg 66,loopcnt
+	branch clear_mem
+
+
+g24_data_device1:
+	call g24_ch_timer_reinit
+	fetch 1,mem_24g_abort_packet
+	fetcht 1,mem_24g_rxdata_temp
+	isolate1 bit_abort,temp
+	setflag true,0,pdata
+	store 1,mem_24g_abort_packet
+	beq 1,g24_data_attemp_device1_abort
+	fetch 1,mem_24g_hop_packet
+	fetcht 1,mem_24g_rxdata_temp
+	isolate1 bit_hop,temp
+	setflag true,0,pdata
+	store 1,mem_24g_hop_packet
+	fetch 2,mem_cb_24g_data_device1
+	branch callback_func
+
+g24_data_device2:
+	fetcht 1,mem_24g_rxdata_temp
+	isolate1 bit_abort,temp
+	branch g24_data_attemp_device2_abort,true
+	fetch 2,mem_cb_24g_data_device2
+	branch callback_func
+
+g24_data_attemp_device1_abort:
+	fetch 1,mem_device_option
+	sub pdata,dvc_op_car,null
+	call car_stop_blink,zero
+	fetch 4,mem_24g_rxdata_temp+10
+	branch g24_store_device1_addr
+g24_data_attemp_device2_abort:
+	fetch 4,mem_24g_rxdata_temp+10
+	branch g24_store_device2_addr	
+
+
+g24_receive_packet_parse_pid_crc:
+	call disable_user
+	fetch 1,mem_24g_sta_pid
+	fetcht 1,mem_24g_last_pid
+	isub temp,null
+	ncall enable_user,zero
+	fetch 1,mem_24g_sta_pid
+	store 1,mem_24g_last_pid
+	fetch 3,mem_24g_sta_crc
+	fetcht 3,mem_24g_last_crc
+	isub temp,null
+	ncall enable_user,zero
+	fetch 3,mem_24g_sta_crc
+	store 3,mem_24g_last_crc
+	rtn
+
+g24_receive_transmit_ack:
+	call g24_rx_interrupt_clear
+	call g24_receive_packet
+	nrtn user3
+g24_transmit_ack:
+//data type
+	fetch 1,mem_24g_rxbuf
+	store 1,mem_24g_data_type
+//read len pid crc
+	call g24_read_len_pid_crc
+//read ack
+	fetch 1,mem_24g_rxbuf+1
+	isolate1 bit_ack_24g,pdata
+	branch g24tx_no_ack,true
+g24tx_with_ack:
+	call g24_ackpayload_prep
+	call g24_transmit_prep
+	call g24_transmit
+g24tx_no_ack:
+	branch g24_end_of_packet
+
+
+g24_enable_nodata_timer:
+	jam 1,mem_24g_nodata_timer_enable
+g24_enable_nodata_timer_init:
+	setarg TIMER_NODATA_DELAY
+	arg TIMER_NODATA,queue
+	branch timer_init
+
+
+
+/****************************g24 receiver mode switch start********************************/
+
+g24_mode_switch_init:
+	jam 1,mem_24g_mode_switch
+	jam 0,mem_24g_time_slice
+	jam 0xff,mem_24g_interval
+	branch g24_timer_init
+	
+g24_mode_switch:
+	bpatchx patch3c_5,mem_patch3c
+	fetch 1,mem_24g_mode_switch
+	rtn blank
+	call g24_timer_check
+	nrtn user	//80ms
+	call g24_bind_mode_continue
+	fetch 1,mem_24g_time_slice
+	increase 1,pdata
+	and_into 1,pdata
+	store 1,mem_24g_time_slice
+	beq 0,g24_work_mode_switch
+	beq 1,g24_bind_mode_switch
+	rtn
+
+g24_bind_mode_continue:
+	fetch 1,mem_24g_bind_mode_continue
+	rtn blank
+	increase -1,pdata
+	store 1,mem_24g_bind_mode_continue
+	rtn
+
+g24_work_mode_switch:
+	fetch 1,mem_24g_bind_mode_continue
+	nrtn blank
+	branch g24_switch_work_mode
+
+g24_bind_mode_switch:
+	fetch 1,mem_24g_bind_mode_continue
+	nrtn blank
+	branch g24_bind_mode_enable
+
+/****************************g24 receiver mode switch end********************************/
+
+
+
+
+/****************************g24 receiver work mode start********************************/
+
+g24_work_init:
+	fetch 1,mem_24g_mode_init
+	rtnbit1 DONGLE_WORK
+	set1 DONGLE_WORK,pdata
+	store 1,mem_24g_mode_init
+	fetch 1,mem_tx_power_temp
+	store 1,mem_tx_power
+	jam 0,mem_24g_ackpayload_enable
+	jam 0,mem_usb_tx_enable
+	jam 1,mem_24g_abort_packet
+	jam 0,mem_24g_pid
+	fetch 4,mem_lap
+	call g24_update_addr_and_synccrc8
+	call g24_ch
+	branch g24_rx_interrupt_clear
+
+
+g24_switch_work_mode:
+	jam 0,mem_24g_ackpayload_enable
+g24_work_mode_enable:
+	jam DONGLE_WORK,mem_24g_work_mode
+	jam CLEAR_INIT,mem_24g_mode_init	
+	rtn
+
+
+g24_work_mode_start:
+	fetch 1,mem_24g_work_mode
+	rtnne DONGLE_WORK
+	call g24_work_init
+	call g24_ch_process
+	branch g24_receive_packet_start
+
+
+
+/****************************g24 receiver work mode end********************************/
+
+
+
+
+
+
+/****************************g24 receiver bind mode start********************************/
+
+g24_bind_mode_auto:
+	bpatchx patch3c_6,mem_patch3c
+	fetch 1,mem_24g_work_mode
+	rtnne DONGLE_BIND
+	call g24_bind_init
+	call g24_bind_data_process
+	fetch 1,mem_24g_pair_mode
+	nrtn blank
+	fetch 1,mem_24g_bind_device_status
+	rtn blank
+	jam 0,mem_24g_mode_switch
+	call g24_switch_work_mode
+	call g24_enable_nodata_timer
+	branch g24_timer_init
+
+
+/****************************g24 receiver bind mode end********************************/
+
+
+
+
+
+
+/****************************g24 receiver search mode start********************************/
+
+g24_search_mode_init:
+	fetch 1,mem_24g_mode_init
+	rtnbit1 DONGLE_SEARCH
+	set1 DONGLE_SEARCH,pdata
+	store 1,mem_24g_mode_init
+	jam 0,mem_24g_time_slice
+	jam 1,mem_24g_ackpayload_enable
+	setarg 0
+	store 3,mem_rssi_noise_self_index
+	store 7,mem_24g_self_config_ch_once
+	call g24_receiver_addr_check
+	nrtn zero
+	fetch 1,mem_24g_current_ch_number
+	store 1,mem_24g_self_ch_number
+	fetch 1,mem_24g_ch
+	store 1,mem_24g_self_last_ch
+	rtn
+
+
+g24_search_mode_auto:
+	bpatchx patch3c_7,mem_patch3c
+	fetch 1,mem_24g_work_mode
+	rtnne DONGLE_SEARCH
+	call g24_search_mode_init
+	call g24_auto_addr_ch_search
+	call g24_receive_transmit_ack
+	nbranch g24_rx_interrupt_clear,user3
+	//dongle addr,then parse rxdata
+	call g24_receiver_addr_check
+	call g24_receive_packet_parse,zero
+	//receive data,then go to paired
+	jam DONGLE_WORK,mem_24g_work_mode
+	fetch 1,mem_24g_mode_init
+	set1 DONGLE_WORK,pdata
+	store 1,mem_24g_mode_init
+
+	fetch 1,mem_24g_ackpayload_enable
+	sub pdata,2,null
+	ncall g24_ackpayload_disable,zero
+
+	call g24_rx_interrupt_clear
+	call g24_enable_nodata_timer
+	call g24_receiver_addr_check
+	branch g24_self_ch_num_reinit,zero
+	fetch 4,mem_24g_addr
+	fetcht 4,mem_24g_device2_addr
+	isub temp,null
+	branch g24_device2_ch_num_reinit,zero		
+	fetch 4,mem_24g_addr
+	fetcht 4,mem_24g_device1_addr
+	isub temp,null
+	branch g24_device1_ch_num_reinit,zero
+	rtn
+
+
+g24_self_ch_num_reinit:
+	fetch 1,mem_24g_self_ch_number
+g24_current_ch_num_reinit:
+	store 1,mem_24g_current_ch_number
+	rtn
+
+g24_device2_ch_num_reinit:
+	fetch 1,mem_24g_device2_ch_number
+	branch g24_current_ch_num_reinit
+
+g24_device1_ch_num_reinit:
+	fetch 1,mem_24g_device1_ch_number
+	branch g24_current_ch_num_reinit
+
+
+g24_auto_addr_ch_search:
+	fetch 1,mem_24g_time_slice
+	increase 1,pdata
+	and_into 3,pdata
+	store 1,mem_24g_time_slice
+	//pairing address and channel come first
+	beq 0,g24_auto_bind_config_device2
+	beq 1,g24_auto_bind_config_self
+	beq 2,g24_auto_bind_config_device1
+	beq 3,g24_auto_bind_config_self
+	rtn
+
+g24_auto_bind_config_device1:
+	call g24_bind_dvc1_payload_cfg
+	fetch 4,mem_24g_device1_addr
+	branch g24_auto_addr_ch_search,blank
+	call g24_update_addr_and_synccrc8
+	fetch 1,mem_24g_device1_config_ch_once
+	call g24_device1_config_ch_once,blank
+	fetch 1,mem_24g_device1_last_ch
+	store 1,mem_24g_ch
+	fetcht 1,mem_rssi_noise_device1_index
+	fetchr rega,2,mem_rssi_noise_device1_buffer_ptr
+	call rssi_store
+	storet 1,mem_rssi_noise_device1_index
+	call rssi_average
+	storet 1,mem_rssi_noise_device1_avg
+	sub temp,RSSI_THRESH_NOISE,null
+	nrtn positive
+	fetcht 1,mem_24g_device1_ch_number
+	call g24_ch_map_size
+	storet 1,mem_24g_device1_ch_number
+	store 1,mem_24g_device1_last_ch
+	rtn
+
+g24_device1_config_ch_once:
+	jam 1,mem_24g_device1_config_ch_once
+	arg 0,temp
+	call g24_ch_calc
+	store 1,mem_24g_device1_last_ch
+	rtn
+	
+g24_auto_bind_config_device2:
+	call g24_bind_dvc2_payload_cfg
+	fetch 4,mem_24g_device2_addr
+	branch g24_auto_addr_ch_search,blank
+	call g24_update_addr_and_synccrc8
+	fetch 1,mem_24g_device2_config_ch_once
+	call g24_device2_config_ch_once,blank
+	fetch 1,mem_24g_device2_last_ch
+	store 1,mem_24g_ch
+	fetcht 1,mem_rssi_noise_device2_index
+	fetchr rega,2,mem_rssi_noise_device2_buffer_ptr
+	call rssi_store
+	storet 1,mem_rssi_noise_device2_index
+	call rssi_average
+	storet 1,mem_rssi_noise_device2_avg
+	sub temp,RSSI_THRESH_NOISE,null
+	nrtn positive
+	fetcht 1,mem_24g_device2_ch_number
+	call g24_ch_map_size
+	storet 1,mem_24g_device2_ch_number
+	store 1,mem_24g_device2_last_ch
+	rtn
+
+g24_device2_config_ch_once:
+	jam 1,mem_24g_device2_config_ch_once
+	arg 0,temp
+	call g24_ch_calc
+	store 1,mem_24g_device2_last_ch
+	rtn	
+
+g24_auto_bind_config_self:
+	call g24_bind_dvc1_payload_cfg
+	fetch 4,mem_lap
+	call g24_update_addr_and_synccrc8
+	fetch 1,mem_24g_self_config_ch_once
+	call g24_self_config_ch_once,blank
+	fetch 1,mem_24g_self_last_ch
+	store 1,mem_24g_ch
+	fetcht 1,mem_rssi_noise_self_index
+	fetchr rega,2,mem_rssi_noise_self_buffer_ptr
+	call rssi_store
+	storet 1,mem_rssi_noise_self_index
+	call rssi_average
+	storet 1,mem_rssi_noise_self_avg
+	sub temp,RSSI_THRESH_NOISE,null
+	nrtn positive
+	fetcht 1,mem_24g_self_ch_number
+	call g24_ch_map_size
+	storet 1,mem_24g_self_ch_number
+	store 1,mem_24g_self_last_ch
+	rtn
+
+g24_self_config_ch_once:
+	jam 1,mem_24g_self_config_ch_once
+	fetch 1,mem_24g_self_last_ch
+	store 1,mem_24g_ch
+	rtn
+
+
+g24_ackpayload_disable:
+	jam 0,mem_24g_ackpayload_enable
+	rtn
+
+
+g24_receiver_addr_check:
+	fetch 4,mem_24g_addr
+	fetcht 4,mem_lap
+	isub temp,null
+	rtn
+
+/****************************g24 receiver search mode end********************************/
+
+
+
+
+
+
+/****************************g24 receiver nodata process start********************************/
+
+
+g24_nodata_process:
+	fetch 1,mem_24g_ackpayload_enable
+	rtneq 2
+	fetch 1,mem_24g_nodata_timer_enable
+	rtn blank
+	arg TIMER_NODATA,queue
+	call timer_check
+	nrtn blank
+	jam 0,mem_24g_nodata_timer_enable
+	jam 0,mem_24g_bind_mode_continue
+	//no data for more than 100ms,then go to search
+	jam DONGLE_SEARCH,mem_24g_work_mode
+	jam CLEAR_INIT,mem_24g_mode_init
+	branch g24_rx_interrupt_clear
+
+
+/****************************g24 receiver nodata process end********************************/
+
+
+g24_ch_process:
+	fetch 1,mem_24g_abort_packet
+	beq 1,rssi_noise_monitor
+	fetch 1,mem_24g_hop_packet
+	beq 1,g24_ch_receive_hop_pac
+	fetcht 4,mem_24g_hop_btclk
+	copy clkn_bt,pdata
+	isub temp,null
+	ncall g24_timer_timeout,positive
+	copy pdata,regb
+	fetch 4,mem_24g_hop_btclk
+	fetcht 1,mem_24g_hop_interval
+	iadd temp,temp
+	copy regb,pdata
+	isub temp,null
+	nrtn positive
+	set0 28,pdata
+	store 4,mem_24g_hop_btclk
+	jam 1,mem_24g_abort_packet
+	branch g24_ch
+
+g24_ch_receive_hop_pac:
+	jam 0,mem_24g_hop_packet
+	branch g24_ch
+
+g24_ch_timer_reinit:
+	copy clkn_bt,pdata
+	store 4,mem_24g_hop_btclk
+	rtn
+
Index: program/g24_protocol_stack/24g_reconn.prog
===================================================================
--- /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/program/g24_protocol_stack/24g_reconn.prog	(nonexistent)
+++ /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/program/g24_protocol_stack/24g_reconn.prog	(working copy)
@@ -0,0 +1,163 @@
+
+/****************************g24 reconn transmitter start********************************/
+
+g24_reconn_timeout_timer:
+	arg mem_24g_reconn_timeout,regc
+	arg g24_stop_24g_mode,regb
+	branch timer_single_step_2B
+
+
+g24_reconn_start:
+	bpatchx patch3d_0,mem_patch3d
+	set1 mark_24g,mark
+	fetch 1,mem_24g_conn_sm
+	set0 STATE_24G_PAIR,pdata
+	set1 STATE_24G_RECONN,pdata
+	store 1,mem_24g_conn_sm
+	fetch 1,mem_24g_fast_conn_enable
+	branch g24_reconn_receiver_addr,blank
+	fetch 1,mem_24g_reconn_type
+	beq FAST_CONN_AND_RECEIVER,g24_reconn_fast_conn
+	beq FAST_CONN_AND_3_0_ADDR,g24_reconn_fast_conn
+	beq RECEIVER_AND_3_0_ADDR,g24_reconn_device_3_0_addr
+	beq PAIR_AND_3_0_ADDR,g24_reconn_device_3_0_addr
+g24_reconn_fast_conn:
+	fetch 1,mem_24g_pair_tx_power
+	store 1,mem_tx_power
+	fetcht 1,mem_24g_fast_conn_temp_ch
+	storet 1,mem_24g_current_ch_number
+	fetch 4,mem_24g_fast_conn_addr
+	call g24_ch_syncword_crc8_init
+	storet 1,mem_24g_fast_conn_temp_ch
+	rtn
+	 
+g24_reconn_receiver_addr:
+	jam TX_POWER_5DB,mem_tx_power
+	fetcht 1,mem_24g_receiver_temp_ch
+	storet 1,mem_24g_current_ch_number
+	fetch 4,mem_24g_receiver_addr
+	call g24_ch_syncword_crc8_init
+	storet 1,mem_24g_receiver_temp_ch
+	rtn
+
+g24_reconn_device_3_0_addr:
+	jam TX_POWER_5DB,mem_tx_power
+	fetcht 1,mem_24g_device_temp_ch
+	storet 1,mem_24g_current_ch_number
+	fetch 4,mem_24g_device_addr
+	call g24_ch_syncword_crc8_init
+	storet 1,mem_24g_device_temp_ch
+	rtn	
+
+g24_store_receiver_addr:
+	fetch 4,mem_24g_rxpayload+2
+	store 4,mem_24g_receiver_addr	
+g24_ch_syncword_crc8_init:	
+	call g24_update_addr_and_synccrc8
+	branch g24_ch
+
+
+g24_reconn_dispatch:
+	bpatchx patch3d_1,mem_patch3d
+	call g24_reconn_data_prep
+	call g24_transmit_receive_ack
+	nbranch g24_reconn_device_fail,sync
+	nbranch g24_reconn_device_fail,user3
+	call g24_ackpayload_parse
+g24_reconn_receiver_succ:
+	fetch 1,mem_24g_conn_sm
+	set0 STATE_24G_RECONN,pdata
+	store 1,mem_24g_conn_sm
+	setarg 0
+	store 2,mem_24g_pair_timeout
+	store 2,mem_24g_reconn_count
+	store 2,mem_24g_reconn_timeout	
+	fetch 4,mem_24g_pair_addr
+	fetcht 4,mem_24g_addr
+	isub temp,null
+	branch g24_pair_start,zero
+	fetch 4,mem_24g_device_addr
+	fetcht 4,mem_24g_addr
+	isub temp,null
+	call g24_store_receiver_addr,zero
+	jam BT_EVT_24G_ATTEMPT_SUCCESS,mem_fifo_temp
+	call ui_ipc_send_event
+g24_txbuf_clear:
+	arg 4,loopcnt
+	arg mem_24g_txbuf,contw
+	branch memset0
+
+g24_reconn_data_prep:
+	jam DATATYPE_ATTEMP,mem_24g_txbuf
+	fetch 1,mem_24g_data_type
+	store 1,mem_24g_txbuf+1
+	fetch 4,mem_24g_device_addr
+	store 4,mem_24g_txbuf+2
+	jam 6,mem_24g_datalen
+	branch g24_transmit_prep
+
+g24_reconn_device_fail:
+	fetch 1,mem_24g_fast_conn_enable
+	branch g24_ch,blank
+	fetch 2,mem_24g_reconn_count
+	increase 1,pdata
+	store 2,mem_24g_reconn_count
+	isolate1 3,pdata	// each 8 times switch
+	fetch 1,mem_24g_reconn_type
+	beq FAST_CONN_AND_RECEIVER,g24_reconn_fast_conn_and_receiver
+	beq FAST_CONN_AND_3_0_ADDR,g24_reconn_fast_conn_and_3_0
+	beq RECEIVER_AND_3_0_ADDR,g24_reconn_receiver_and_3_0
+	beq PAIR_AND_3_0_ADDR,g24_reconn_pair_and_3_0
+	branch g24_reconn_receiver_addr
+
+
+g24_reconn_fast_conn_and_receiver:
+	branch g24_reconn_receiver_addr,true
+	branch g24_reconn_fast_conn
+
+g24_reconn_fast_conn_and_3_0:
+	branch g24_reconn_device_3_0_addr,true
+	branch g24_reconn_fast_conn
+	
+g24_reconn_receiver_and_3_0:
+	branch g24_reconn_device_3_0_addr,true
+	branch g24_reconn_receiver_addr
+
+g24_reconn_pair_and_3_0:
+	branch g24_pair_init_param,true
+	branch g24_reconn_device_3_0_addr
+
+
+/****************************g24 reconn transmitter end********************************/
+
+
+
+
+
+/****************************g24 reconn receiver start********************************/
+
+g24_data_attemp:
+	fetch 1,mem_24g_rxdata_temp+3
+	beq DATATYPE_DEVICE1,g24_data_attemp_device1
+	beq DATATYPE_DEVICE2,g24_data_attemp_device2
+	rtn
+g24_data_attemp_device1:
+	call enable_user
+	fetch 4,mem_24g_rxdata_temp+4
+	store 4,mem_24g_transmitter_addr
+g24_store_device1_addr:
+	store 4,mem_24g_device1_addr
+	rtn
+g24_data_attemp_device2:
+	call enable_user
+	fetch 4,mem_24g_rxdata_temp+4
+	store 4,mem_24g_transmitter_addr	
+g24_store_device2_addr:
+	store 4,mem_24g_device2_addr
+	rtn
+
+/****************************g24 reconn receiver end********************************/
+
+
+
+
Index: program/g24_protocol_stack/24g_rssi.prog
===================================================================
--- /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/program/g24_protocol_stack/24g_rssi.prog	(nonexistent)
+++ /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/program/g24_protocol_stack/24g_rssi.prog	(working copy)
@@ -0,0 +1,105 @@
+
+/****************************g24 rssi general start********************************/
+
+rssi_store:
+	copy rega,pdata
+	iadd temp,contw
+	fetch 1,mem_rssi
+	istore 1,contw
+	increase 1,temp
+	fetch 1,mem_rssi_buff_index	//buff len minus 1
+	iand temp,temp
+	rtn
+rssi_average:
+	fetch 1,mem_rssi_buff_index
+	increase 1,pdata
+	store 2,mem_loopcnt
+	copy pdata,loopcnt
+	copy rega,contr
+	arg 0,pdata
+rssi_average_loop:
+	ifetcht 1,contr
+	iadd temp,pdata
+	loop rssi_average_loop
+	fetcht 2,mem_loopcnt
+	idiv temp
+	call wait_div_end
+	quotient temp
+	rtnmark1 mark_24g_rxmode
+	copy temp,pdata
+	rtnmark0 mark_24g
+	call bcd
+	copy pdata,temp
+	rtn
+
+/****************************g24 rssi general end********************************/
+
+
+
+
+
+/****************************g24 transmitter rssi start********************************/
+rssi_transmitter_buff_init:
+	fetch 2,mem_rssi_signal_buf_ptr
+	branch rssi_buff_clear
+
+rssi_signal:
+	copy pdata,rega
+	fetcht 1,mem_rssi_signal_index
+	fetch 2,mem_rssi_signal_buf_ptr
+	iadd temp,contw
+	copy rega,pdata
+	istore 1,contw
+	increase 1,temp
+	fetch 1,mem_rssi_buff_index	//buff len minus 1
+	iand temp,temp
+	storet 1,mem_rssi_signal_index
+	rtn
+
+/****************************g24 transmitter rssi end********************************/
+
+
+
+
+
+/****************************g24 receiver rssi start********************************/
+
+rssi_receiver_buff_init:
+	fetch 2,mem_rssi_noise_buffer_ptr
+	call rssi_buff_clear
+	fetch 2,mem_rssi_noise_self_buffer_ptr
+	call rssi_buff_clear
+	fetch 2,mem_rssi_noise_device1_buffer_ptr
+	call rssi_buff_clear
+	fetch 2,mem_rssi_noise_device2_buffer_ptr
+rssi_buff_clear:
+	rtn blank
+	copy pdata,contw
+	fetch 1,mem_rssi_buff_index
+	increase 1,pdata
+	copy pdata,loopcnt
+	branch clear_mem
+
+
+rssi_noise:
+	call save_rssi
+	rtn blank
+	fetcht 1,mem_rssi_noise_index
+	fetchr rega,2,mem_rssi_noise_buffer_ptr
+	call rssi_store
+	storet 1,mem_rssi_noise_index
+	rtn
+
+
+rssi_noise_monitor:
+	fetchr rega,2,mem_rssi_noise_buffer_ptr
+	call rssi_average
+	storet 1,mem_rssi_noise_avg
+	sub temp,RSSI_THRESH_NOISE,null
+	nrtn positive
+	branch g24_ch
+
+
+/****************************g24 receiver rssi end********************************/
+
+	
Index: program/g24_protocol_stack/24g_transmitter.prog
===================================================================
--- /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/program/g24_protocol_stack/24g_transmitter.prog	(nonexistent)
+++ /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/program/g24_protocol_stack/24g_transmitter.prog	(working copy)
@@ -0,0 +1,341 @@
+
+
+g24_transmit_init:
+	fetch 4,mem_lap		//need to roll this address
+	store 4,mem_24g_device_addr
+	branch rssi_transmitter_buff_init
+
+
+g24_transmit_dispatch:
+	rtnmark0 mark_24g
+	fetch 1,mem_24g_conn_sm
+	bbit1 STATE_24G_PAIR,g24_pair_dispatch
+	bbit1 STATE_24G_RECONN,g24_reconn_dispatch
+	fetch 1,mem_24g_transmit_by_interrupt
+	beq G24_TX_TIMER_INT_ENABLE,g24_transmit_by_interrupt
+g24_transmit_no_interrupt:
+	bpatchx patch3d_2,mem_patch3d
+	call g24_txdata_prep
+	nbranch g24_nodata_transmit,user
+g24_transmit_start:
+	call g24_transmit_process
+	call power_ctrl_start
+	fetch 8,mem_24g_long_sleep_set
+	store 8,mem_24g_enter_hibernate
+	fetch 2,mem_24g_long_sleep_param_update_timer_init
+	store 2,mem_24g_long_sleep_param_update_timer
+g24_short_sleep:
+	call g24_lpm_wait
+	nrtn user
+	call clear_wake
+	fetch 3,mem_24g_short_sleep_set
+	branch lpm_dispatch_sleep
+
+
+
+
+/****************************g24 transmitter data prep start********************************/
+
+g24_txdata_prep:
+	call g24_package_data
+	nrtn user
+	branch g24_transmit_prep
+
+
+g24_package_data:
+	fetch 2,mem_cb_24g_transmit_data
+	call callback_func
+	branch g24_accumulate_data,user
+	fetch 7,mem_24g_txbuf+1	//mouse data
+	rtn blank
+	branch enable_user	// retransmit
+	
+g24_accumulate_data:
+	jam 0,mem_24g_abort_pac
+	add rega,1,pdata
+	store 1,mem_24g_datalen
+	call g24_transmit_rf_ctrl_clear
+	store 1,mem_24g_txbuf
+	copy regb,contr
+	copy rega,loopcnt
+	branch memcpy
+
+g24_transmit_rf_ctrl_clear:	
+	fetch 1,mem_24g_data_type
+	and_into bits_data,pdata
+	store 1,mem_24g_data_type
+	rtn
+
+/****************************g24 transmitter data prep end********************************/
+
+
+
+
+/****************************g24 transmitter data transmit start********************************/
+
+g24_transmit_process:
+	jam 0,mem_24g_retry
+g24_transmit_loop:
+	fetchr timeup,2,mem_param_rx_setup
+	until clkn_rt,meet
+	call g24_transmit_receive_ack
+	fetch 1,mem_24g_no_ack	//tx noack
+	beq no_ack_24g,g24_transmit_no_ack
+	nbranch g24_retransmit,sync
+	nbranch g24_retransmit,user3
+	call g24_ackpayload_parse
+g24_transmit_no_ack:
+	call g24_txbuf_clear
+	call power_ctrl_pac_succ_incrs
+g24_transmit_next_packet:
+	fetch 1,mem_24g_pid
+	increase 1,pdata
+	store 1,mem_24g_pid
+	call g24_hop_enable_packet
+g24_transmit_abandon:
+	setarg 0
+	store 1,mem_24g_ensure
+	store 2,mem_24g_txfail_cnt
+	rtn
+
+g24_transmit_receive_ack:
+	disable user3
+	call g24_transmit
+	fetch 1,mem_24g_no_ack
+	beq no_ack_24g,g24_end_of_packet
+	force 0,radio_ctrl
+	fetch 4,mem_24g_addr
+	iforce access
+	call calc_mod_value_scale_le	
+	fetcht 1,mem_last_freq
+	call set_freq_rx
+	call rf_rx_enable
+	call g24_receive_rxon
+	call g24_end_of_packet,user3
+	rtn
+
+g24_retransmit:
+	fetch 2,mem_24g_txfail_cnt
+	increase 1,pdata
+	store 2,mem_24g_txfail_cnt	
+	fetch 1,mem_24g_txfail_cnt+1
+	bbit1 4,g24_stop_24g_mode
+	call g24_transmit_hop_process
+	branch g24_transmit_loop
+
+
+g24_ackpayload_parse:
+	call g24_read_len_pid_crc
+	fetch 1,mem_24g_rxdata_length	//ack payload length 
+	rtn blank
+	iforce loopcnt
+	arg mem_24g_rxbuf+2,contr
+	arg mem_24g_rxpayload,contw	//ack payload buffer 
+	branch memcpy
+
+
+g24_tx_attempt_fail:
+	setarg 0
+	store 2,mem_24g_txfail_cnt
+g24_stop_24g_mode:	
+	jam BT_EVT_24G_ATTEMPT_FAIL,mem_fifo_temp
+	branch ui_ipc_send_event
+
+/****************************g24 transmitter data transmit end********************************/
+
+
+
+
+
+/****************************g24 transmitter hop start********************************/
+
+g24_transmit_hop_process:
+	bpatchx patch3d_3,mem_patch3d
+	fetch 1,mem_24g_retry
+	sub pdata,11,null
+	nbranch g24_tx_fast_hop,positive		// >= 6+6 hop fast    fail packet count >= 2
+	increase 1,pdata
+	store 1,mem_24g_retry
+	beq 2,g24_hop_ch_enable
+	beq 6,g24_hop_ch_disable
+	beq 8,g24_hop_ch_enable
+	beq 12,g24_hop_ch_disable
+	rtn	
+
+
+g24_hop_ch_enable:
+	//fetch 1,mem_24g_data_type
+	//set1 bit_hop,pdata
+	//store 1,mem_24g_data_type
+	//update txpayload
+g24_txpayload_type_update:	
+	bmark1 mark_ble_lr,g24_lr_type_update
+	store 1,mem_24g_txpayload+OFFSET_DATA_TYPE
+	rtn
+g24_lr_type_update:
+	store 1,mem_24g_txpayload+OFFSET_LR_DATA_TYPE
+	rtn
+
+g24_hop_enable_packet:
+	fetch 1,mem_24g_data_type
+	rtnbit0 bit_hop
+g24_hop_ch_disable:
+	fetch 1,mem_24g_data_type
+	set0 bit_hop,pdata
+	store 1,mem_24g_data_type
+	call g24_txpayload_type_update
+	call power_ctrl_pac_succ_decrs
+	branch g24_ch
+
+g24_tx_fast_hop:
+	call power_ctrl_txpower_incrs
+	call power_ctrl_pac_succ_decrs
+	branch g24_ch
+	
+/****************************g24 transmitter hop end********************************/
+
+
+
+
+
+
+
+
+
+
+
+
+
+/****************************g24 transmitter long lpm prep start********************************/
+
+g24_search_receiver:
+	fetch 2,mem_cb_24g_search_receiver
+	branch callback_func
+
+g24_nodata_transmit:
+	fetch 1,mem_24g_abort_pac
+	call g24_send_abort_packet,blank
+	fetch 1,mem_24g_transmit_by_interrupt
+	rtneq G24_TX_TIMER_INT_ENABLE
+	call g24_search_receiver
+	branch g24_long_sleep
+
+g24_send_abort_packet:
+	jam TYPE_MS,mem_24g_data_type
+	jam 1,mem_24g_abort_pac
+	call g24_transmit_rf_ctrl_clear
+	store 1,mem_24g_txbuf
+	setarg 0
+	store 7,mem_24g_txbuf+1
+	fetch 4,mem_24g_device_addr
+	store 4,mem_24g_txbuf+8
+	jam 12,mem_24g_datalen
+	fetch 1,mem_24g_data_type
+	set1 bit_abort,pdata
+	store 1,mem_24g_data_type
+	call g24_transmit_prep
+	branch g24_transmit_start
+	
+g24_long_sleep:
+	call g24_lpm_wait
+	nrtn user
+	fetch 8,mem_24g_enter_hibernate
+g24_long_sleep2:
+	call clk2lpo
+	storet 4,mem_sleep_counter
+	branch lpm_sleep
+
+g24_lpm_wait:
+	bpatchx patch3d_4,mem_patch3d
+	enable user
+	call lpo_calibration
+	fetch 3,mem_clks_per_lpo
+	branch disable_user,blank
+	fetch 1,mem_lpm_mode
+	branch disable_user,blank
+	fetch 1,mem_24g_transmit_by_interrupt
+	beq G24_TX_TIMER_INT_ENABLE,disable_user
+g24_setgpio_lpm_before:
+	fetch 2,mem_cb_24g_lpm_before
+	branch callback_func
+
+
+/****************************g24 transmitter long lpm prep end********************************/
+
+
+
+
+
+
+
+/****************************g24 transmit by interrupt start********************************/
+
+g24_transmit_by_interrupt:
+	call g24_timer_check
+	nrtn user
+	call g24_interval_calibrate
+	fetch 2,mem_24g_transmit_by_interrupt_exit_count
+	increase 1,pdata
+	store 2,mem_24g_transmit_by_interrupt_exit_count
+	fetcht 2,mem_24g_transmit_by_interrupt_exit_count_init
+	isub temp,null
+	call g24_transmit_by_interrupt_exit,zero
+	branch g24_transmit_no_interrupt
+
+	
+g24_transmit_by_interrupt_exit:
+	jam G24_TX_TIMER_INT_DISABLE,mem_24g_transmit_by_interrupt
+	setarg 0
+	store 2,mem_24g_transmit_by_interrupt_exit_count
+	setarg 100
+	store 2,mem_24g_transmit_by_interrupt_exit_count_init
+g24_interval_min:
+	jam 0,mem_24g_pac_index
+	fetch 1,mem_24g_interval_min
+g24_interval_store:
+	store 1,mem_24g_interval
+	rtn
+g24_interval_max:
+	fetch 1,mem_24g_interval_max
+	branch g24_interval_store
+	
+g24_interval_calibrate:
+	fetch 1,mem_24g_pac_index
+	increase 1,pdata
+	store 1,mem_24g_pac_index
+	beq 4,g24_interval_max
+	beq 5,g24_interval_min
+	rtn
+
+g24_transmit_by_interrupt_enable:
+	jam G24_TX_TIMER_INT_ENABLE,mem_24g_transmit_by_interrupt
+	setarg 0
+	store 2,mem_24g_transmit_by_interrupt_exit_count
+	rtn
+
+
+/****************************g24 transmit by interrupt end********************************/
+
+
+
+
+/****************************g24 transmitter fac check start********************************/
+
+g24_factory_check:
+	arg 2,loopcnt
+	arg mem_24g_addr,contr
+pdata_0xff_check:
+	call enable_user
+	setarg 0xffff
+pdata_0xff_check_loop:
+	ifetcht 2,contr
+	isub temp,null
+	ncall disable_user,zero
+	loop pdata_0xff_check_loop
+	rtn
+
+/****************************g24 transmitter fac check end********************************/
+
+
+
+	
Index: program/g24_protocol_stack/24g_txpower_ctrl.prog
===================================================================
--- /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/program/g24_protocol_stack/24g_txpower_ctrl.prog	(nonexistent)
+++ /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/program/g24_protocol_stack/24g_txpower_ctrl.prog	(working copy)
@@ -0,0 +1,96 @@
+
+/****************************g24 transmitter tx power start********************************/
+
+power_ctrl_start:
+	bpatchx patch3d_5,mem_patch3d
+	fetch 2,mem_ui_state_map
+	rtnbit1 UI_STATE_BLE_ADV
+	rtnbit1 UI_STATE_BT_RECONNECT
+	rtnbit1 UI_STATE_BT_DISCOVERY
+	fetchr rega,2,mem_rssi_signal_buf_ptr
+	call rssi_average
+	storet 1,mem_rssi_avg_received
+	setarg RSSI_DIS_MAX_24G
+	bmark1 mark_24g,power_ctrl_start_next
+	setarg RSSI_DIS_MAX_BLE
+power_ctrl_start_next:
+	isub temp,null
+	nbranch power_ctrl_txpower_incrs_force,positive
+	fetch 1,mem_power_ctrl_pac_succ_cnt
+	sub pdata,2,null
+	nbranch power_ctrl_txpower_decrs_check,positive
+	fetch 1,mem_power_ctrl_pac_succ_cnt
+	beq 0,power_ctrl_txpower_incrs
+	rtn
+
+power_ctrl_txpower_decrs_check:
+	fetch 1,mem_power_ctrl_pac_succ_cnt
+	fetcht 1,mem_power_ctrl_pac_succ_cnt_init
+	isub temp,null
+	nrtn zero
+//	rtnne POWER_CTRL_DECRS_THRESHOLD
+	jam 0,mem_power_ctrl_pac_succ_cnt
+power_ctrl_txpower_decrs:
+	fetcht 1,mem_rssi_avg_received
+	setarg RSSI_DIS_MIN_24G
+	bmark1 mark_24g,power_ctrl_txpower_decrs_next
+	setarg RSSI_DIS_MIN_BLE	
+power_ctrl_txpower_decrs_next:	
+	isub temp,null
+	nrtn positive
+	fetch 1,mem_power_ctrl_level
+	beq 0,power_ctrl_decrs_level0
+	increase -1,pdata
+	store 1,mem_power_ctrl_level
+	beq 0,power_ctrl_decrs_level0
+power_ctrl_decrs_level1:
+power_ctrl_incrs_level1:	//0dBm
+	jam TX_POWER_0DB,mem_tx_power
+	rtn
+
+power_ctrl_txpower_incrs_force:
+	jam 0,mem_power_ctrl_pac_succ_cnt
+power_ctrl_txpower_incrs:
+	fetch 1,mem_power_ctrl_level
+	beq 2,power_ctrl_incrs_level2
+	increase 1,pdata
+	store 1,mem_power_ctrl_level
+	beq 1,power_ctrl_incrs_level1
+power_ctrl_incrs_level2:	//+6dBm
+	jam TX_POWER_5DB,mem_tx_power
+	rtn
+	
+power_ctrl_decrs_level0: //-5dBm
+	jam TX_POWER_f5DB,mem_tx_power
+	rtn
+
+power_ctrl_pac_succ_cnt_init:
+	jam 1,mem_power_ctrl_level
+	jam 0,mem_power_ctrl_pac_succ_cnt
+	rtn
+
+power_ctrl_pac_succ_incrs:
+	fetch 1,mem_power_ctrl_pac_succ_cnt
+	increase 1,pdata
+	store 1,mem_power_ctrl_pac_succ_cnt
+	rtn
+
+power_ctrl_pac_succ_decrs:
+	fetch 1,mem_power_ctrl_pac_succ_cnt
+	sub pdata,2,null
+	ncall power_ctrl_pac_succ_cnt_reinit,positive
+	fetch 1,mem_power_ctrl_pac_succ_cnt
+	rtneq 0
+	increase -1,pdata
+	store 1,mem_power_ctrl_pac_succ_cnt
+	rtn
+
+power_ctrl_pac_succ_cnt_reinit:
+	jam 3,mem_power_ctrl_pac_succ_cnt
+	rtn
+
+/****************************g24 transmitter tx power end********************************/
+
+
+
+
Index: program/hci_main.prog
===================================================================
--- /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/program/hci_main.prog	(nonexistent)
+++ /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/program/hci_main.prog	(working copy)
@@ -0,0 +1,301 @@
+/*********************************/
+/**********   HCI  *****************/
+/*********************************/
+
+hci_init:
+	clear_stack		//清空堆栈
+
+	call hci_init_uart_default_config
+	call hci_init_uart_config
+	call hci_init_pwm_default_config
+	call hci_init_pwm
+
+	jam 1,mem_hci_command_complete_num_hci_command_packet
+	jam HCI_H4_TYPE_EVENT,mem_hci_event_head_type
+
+hci_process_loop:
+	call hci_process_check_uart_rx
+	branch hci_process_loop
+
+hci_init_uart_default_config:
+	call hci_init_uart_default_config_tx
+	call hci_init_uart_default_config_rx
+	call hci_init_uart_default_config_rts
+	branch hci_init_uart_default_config_cts
+
+hci_init_uart_default_config_tx:
+	fetch 1,mem_hci_uart_tx_gpio
+	nrtn blank
+	jam HCI_UART_TX_GPIO_NUM,mem_hci_uart_tx_gpio
+	rtn	
+
+hci_init_uart_default_config_rx:
+	fetch 1,mem_hci_uart_rx_gpio
+	nrtn blank
+	jam HCI_UART_RX_GPIO_NUM,mem_hci_uart_rx_gpio
+	rtn	
+hci_init_uart_default_config_rts:
+	fetch 1,mem_hci_uart_rts_gpio
+	nrtn blank
+	jam HCI_UART_RTS_GPIO_NUM,mem_hci_uart_rts_gpio
+	rtn	
+hci_init_uart_default_config_cts:
+	fetch 1,mem_hci_uart_cts_gpio
+	nrtn blank
+	jam HCI_UART_CTS_GPIO_NUM,mem_hci_uart_cts_gpio
+	rtn	
+
+
+hci_init_uart_config:
+	setarg mem_h5rx_buf
+	store 2,mem_pdatatemp
+	setarg mem_h5rx_buf_end
+	istore 2,contw
+	setarg mem_h5tx_buf
+	istore 2,contw
+	setarg mem_h5tx_buf_end
+	istore 2,contw	
+	fetch 8,mem_pdatatemp
+	call uarta_init_dma_mem
+	call uart_clock_select_main_freq_dpll
+	arg 115200,temp
+	call uarta_calc_baud_rate_config
+	fetch 1,mem_hci_uart_tx_gpio
+	arg gpcfg_uart_txd,temp
+	call gpio_config_function_int
+	fetch 1,mem_hci_uart_rx_gpio
+	arg gpcfg_uart_rxd|gpcfg_pullup,temp
+	call gpio_config_function_int
+	fetch 1,mem_hci_uart_rts_gpio
+	arg gpcfg_uart_rts,temp
+	call gpio_config_function_int
+	fetch 1,mem_hci_uart_cts_gpio
+	arg gpcfg_uart_cts,temp
+	call gpio_config_function_int
+
+	arg FUN_UART_CONTROL_ENABLE|FUN_UART_CONTROL_SETTING_RATE_BAUD,temp
+	storet 1,core_uart_ctrl
+	branch clean_mem
+
+hci_init_pwm_default_config:
+	fetch 1,mem_hci_pwm_12mhz_gpio
+	nrtn blank
+	jam HCI_PMW_12MHZ_GPIO_NUM,mem_hci_pwm_12mhz_gpio
+	rtn	
+
+hci_init_pwm:
+	fetch 1,mem_hci_pwm_12mhz_gpio
+	arg gpcfg_pwm_out0,temp
+	call gpio_config_function_int
+	arg 0x40,rega
+	call pwm_init
+	arg 0,rega
+	arg 0,regb
+	setarg 0
+	call pwm_duty_cycle_set
+	arg 0,queue
+	branch pwm_set_select
+
+
+hci_process_check_uart_rx:
+	fetch 2,core_uart_rxitems
+	add pdata,-4,rega
+	nrtn positive
+	call uarta_prepare_rx
+	ifetch 1,contru
+	beq HCI_H4_TYPE_CMD,hci_parse_packet_cmd
+//	beq HCI_H4_TYPE_ACL,hci_parse_packet_acl
+	call delay_10ms
+	branch uarta_clear_current_rx
+
+//hci_parse_packet_acl:
+//	rtn
+hci_parse_packet_cmd:
+	ifetch 2,contru	// Opcode
+	store 2,mem_hci_opcode
+	arg 0x3ff,temp
+	iand temp,temp	//low 10bit
+	storet 2,mem_hci_opcode_ocf
+	rshift2 pdata,pdata
+	rshift8 pdata,pdata	//high 6bit
+	store 1,mem_hci_opcode_ogf
+	ifetch 1,contru	// parameter total length
+	pincrease -1		//大于等于
+	isub rega,null
+	rtn positive
+	call hci_parse_complete_packet
+	branch hci_drop_current_packet
+
+hci_parse_complete_packet:
+	fetch 1,mem_hci_opcode_ogf
+//	beq HCI_OGF_LINK_CONTROL,hci_parse_packet_cmd_ogf_link_control
+//	beq HCI_OGF_LINK_POLICY,hci_parse_packet_cmd_ogf_link_policy
+//	beq HCI_OGF_CONTROLLER_AND_BASEBAND,hci_parse_packet_cmd_ogf_controller_and_baseband
+//	beq HCI_OGF_INFOMATIONAL_PARAM,hci_parse_packet_cmd_ogf_infomational_parameters
+//	beq HCI_OGF_STATUS_PARAM,hci_parse_packet_cmd_ogf_status_parameters
+//	beq HCI_OGF_TEST,hci_parse_packet_cmd_ogf_testing
+//	beq HCI_OGF_LE_CONTROLLER,hci_parse_packet_cmd_ogf_le_controller
+	beq HCI_OGF_VENDOR_SPECIFIC_DEBUG,hci_parse_packet_cmd_ogf_vendorspecific_debug
+	branch hci_send_event_command_complete_error_command_nuknown
+
+//hci_parse_packet_cmd_ogf_link_control:
+//hci_parse_packet_cmd_ogf_link_policy:
+//hci_parse_packet_cmd_ogf_controller_and_baseband:
+//hci_parse_packet_cmd_ogf_infomational_parameters:
+//hci_parse_packet_cmd_ogf_status_parameters:
+//hci_parse_packet_cmd_ogf_testing:
+//hci_parse_packet_cmd_ogf_le_controller:
+
+hci_parse_packet_cmd_ogf_vendorspecific_debug:
+	bpatch patch1d_1,mem_patch1d
+	fetch 1,mem_hci_opcode_ocf
+	beq HCI_VENDOR_CMD_RESET,hci_normal_reply
+	beq HCI_VENDOR_CMD_CHIPID,phci_grp_vendor_chipid
+	beq HCI_VENDOR_CMD_BAUD,phci_grp_vendor_baud
+	beq HCI_VENDOR_CMD_PATCH,phci_grp_vendor_patch
+	beq HCI_VENDOR_CMD_PATCH_DONE,phci_grp_vendor_done
+	beq HCI_VENDOR_CMD_ECHO,hci_normal_reply
+	beq HCI_VENDOR_CMD_MEM,phci_grp_vendor_mem
+	beq HCI_VENDOR_CMD_SET_FLOW_CONTROL,phci_grp_vendor_flow_control
+	branch hci_normal_reply
+
+	
+phci_grp_vendor_chipid:
+	jam COMMAND_SUCCEEDED,mem_hci_command_complete_return_parameter
+	fetch 2,core_chipid
+	store 2,mem_hci_command_complete_return_parameter_chip_id
+	arg 3,loopcnt
+	branch hci_send_event_command_complete
+	
+phci_grp_vendor_baud:
+	ifetch 2,contu
+	store 2,core_uart_baud
+	rtn
+
+
+phci_grp_vendor_patch_common:
+	ifetch 1,contu
+	copy pdata,temp //check sum via temp
+	store 1,core_ucode_low
+	ifetch 1,contu
+	iadd temp,temp
+	set1 7,pdata
+	store 1,core_ucode_ctrl
+	ifetch 1,contu
+	iadd temp,temp
+	copy pdata,loopcnt
+	rtn
+	
+phci_grp_vendor_patch:
+	call phci_grp_vendor_patch_common
+phci_grp_vendor_patch_loop:
+	ifetch 1,contu
+	store 1,core_ucode_data
+	iadd temp,temp
+	loop phci_grp_vendor_patch_loop
+phci_grp_vendor_patch_check_sum:	
+	and temp,0xff,temp
+	ifetch 1,contu
+	isub temp,null
+	nbranch phci_grp_vendor_patch_bad,zero
+	branch hci_normal_reply
+
+phci_grp_vendor_done:
+	arg 0x20,loopcnt    //patch switch length
+	arg mem_patch00,contw
+	arg 0,temp //checksum
+phci_grp_vendor_done_loop:
+	ifetch 1,contu
+	istore 1,contw
+	iadd temp,temp
+	loop phci_grp_vendor_done_loop
+	and temp,0xff,temp
+	ifetch 1,contu
+	isub temp,null
+	nbranch phci_grp_vendor_patch_bad,zero
+	jam 0,core_ucode_ctrl
+	call hci_normal_reply
+	call wait_uarttx
+	branch soft_reset
+
+phci_grp_vendor_patch_bad:
+	jam 0,core_ucode_ctrl
+	branch hci_send_event_command_complete_error_command_nuknown
+	
+
+phci_grp_vendor_mem:
+	ifetch 1,contu
+	copy pdata,loopcnt
+	ifetch 2,contu
+	copy pdata,contw
+	call uart_copy_rx_bytes
+	branch hci_normal_reply
+
+phci_grp_vendor_flow_control:
+	fetch 1,core_uart_ctrl
+	set1 BIT_UART_CONTROL_FLOW_CONTROL,pdata
+	store 1,core_uart_ctrl
+	branch hci_normal_reply
+
+	
+hci_normal_reply:
+	branch hci_send_event_command_complete_without_payload
+
+hci_send_event_command_complete_error_command_nuknown:
+	jam COMMAND_UNKNOWN,mem_hci_command_complete_return_parameter
+	branch hci_send_event_command_complete_without_payload+1
+hci_send_event_command_complete_error_command_disallowed:
+	jam COMMAND_DISALLOWED,mem_hci_command_complete_return_parameter
+	branch hci_send_event_command_complete_without_payload+1
+hci_send_event_command_complete_without_payload:
+	jam COMMAND_SUCCEEDED,mem_hci_command_complete_return_parameter
+	arg 1,loopcnt
+	branch hci_send_event_command_complete
+
+/***************
+function:send command complete event to host
+input:
+mem_mesh_command_complete_num_hci_command_packet:
+Num Hci Command Packet Commonly used 1
+mem_mesh_hci_opcode:command opcode ,OCF & OGF
+loopcnt:return parameters data length
+mem_mesh_command_complete_return_parameter
+:return parameters data point
+***************/
+hci_send_event_command_complete:
+	jam HCI_EVENT_COMMAND_COMPLETE,mem_hci_event_head_event_code
+	add loopcnt,3,pdata
+	store 1,mem_hci_event_para_total_length
+	call hci_prepare_send_event
+	fetch 3,mem_hci_command_complete_num_hci_command_packet
+	istore 3,contwu
+//	copy rega,contr
+	arg mem_hci_command_complete_return_parameter,contr
+	call uart_copy_tx_bytes
+	branch uarta_send_register_pop
+
+//mem_mesh_event_head_event_code:event code
+//mem_mesh_event_para_total_length:parameter total length
+hci_prepare_send_event:
+	call uarta_prepare_tx_register_push
+	fetch 3,mem_hci_event_head_type
+	istore 3,contwu
+	rtn
+
+hci_drop_current_packet:
+	call uarta_prepare_rx
+	increase 3,contru
+	ifetch 1,contru
+	iadd contru,contru
+	branch uarta_rxdone
+
+cmd_exit:
+	jam 0,mem_hci_cmd
+	rtn
+
+cmd_check_plap:
+	fetch 6,mem_hci_plap
+	fetcht 6,mem_plap
+	isub temp,null
+	rtn
+
Index: program/hid.prog
===================================================================
--- /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/program/hid.prog	(nonexistent)
+++ /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/program/hid.prog	(working copy)
@@ -0,0 +1,89 @@
+/**
+* the following API is to send the HID data
+* 
+*/
+
+/**
+* the following API is to process the hid  rx data
+* 
+*/
+//handle the hid data
+
+hid_rx_process:
+	bpatch patch1d_2,mem_patch1d
+	fetch 2,mem_l2cap_payload_ptr
+	copy pdata,contr
+	ifetch 1,contr
+	store 1,mem_l2cap_rcv_hidtype
+	and pdata,0x0f,temp
+	rshift4 pdata,pdata //hidtype
+	beq hid_type_set_idle,hid_rx_process_handshake
+	beq hid_type_set_protocol,hid_rx_process_handshake
+	beq hid_type_data,hid_rx_process_data
+	beq HID_TYPE_SET_REPORT,hid_rx_process_set_report
+	beq HID_TYPE_CONTROL,hid_rx_process_hid_control
+	rtn
+
+hid_rx_process_hid_control:
+	copy temp,pdata
+	beq HID_CONTROL_P_VIRTUALCABLEUNPLUG,hid_rx_process_virtual_cable_unplug
+	beq HID_CONTROL_P_SUSPEND,hid_rx_process_suspend
+	rtn
+	
+hid_rx_process_virtual_cable_unplug:
+	jam BT_EVT_VIRTUAL_CABLE_UNPLUG,mem_fifo_temp
+	call ui_ipc_send_event
+	fetch 1,mem_device_option
+	rtnne dvc_op_mouse
+	copy temp,pdata
+	beq HID_CONTROL_P_VIRTUALCABLEUNPLUG,mouse_irtual_cable_unplug
+	rtn
+hid_rx_process_suspend:
+	rtn
+
+hid_rx_process_set_report:
+	call hid_rx_process_data
+	arg 0x01,rega
+	call hid_malloc_tx_buff
+	fetch 2,mem_hid_ctrl_remote_cid
+	istore 2,contw
+	setarg 0x00
+	istore 1,contw
+	rtn
+
+hid_rx_process_handshake:
+	arg 1,rega//payload length
+	call hid_malloc_tx_buff
+	fetch 2,mem_hid_ctrl_remote_cid
+	istore 2,contw
+	setarg 0
+	istore 1,contw
+	jam 1,mem_ui_data_txbuff_length
+	fetch 1,mem_hid_control_state
+	set1 l2cap_channel_hid_handshake_done,pdata
+	store 1,mem_hid_control_state
+	jam BT_EVT_HID_HANDSHAKE,mem_fifo_temp
+	call ui_ipc_send_event
+	fetch 1,mem_device_option
+	rtnne dvc_op_mouse
+	branch mouse_bt_hid_handshake_boot_check
+	
+
+hid_rx_process_data:
+	ifetch 1,contr
+	beq HID_REPORT_ID_KB,hid_rx_process_data_hid_kb
+	rtn
+
+hid_rx_process_data_hid_kb:
+	rtn
+
+	
+hid_malloc_tx_buff:
+	call l2cap_malloc
+	copy rega,temp
+	storet 1,mem_ui_data_txbuff_length
+	copy pdata,contw
+	copy rega,pdata
+	istore 2,contw //hid payload length
+	rtn
+
Index: program/kscan_peipherals.prog
===================================================================
--- /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/program/kscan_peipherals.prog	(nonexistent)
+++ /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/program/kscan_peipherals.prog	(working copy)
@@ -0,0 +1,152 @@
+
+
+
+ifdef COMPILE_KEYSCAN
+/****************************************key scan***************************************/
+/******the key_scan use explain******
+
+* First:call kscan_init
+* Second:call kscan_main
+* Finally: the key scanning reault is mem_kscan_value.
+
+******
+***************************************************************************************
+*/
+kscan_init:  
+	fetch 2,mem_kscan_ptr
+	copy pdata,regc
+	call kscan_row_num_select
+	branch kscan_col_num_select
+
+kscan_col_init:
+	setarg 0
+	add regc,KEYSCAN_OFFECT_SHIFT_COUNT,rega
+	istore 1,rega
+	add regc,KEYSCAN_OFFECT_COL_NUM,rega
+	ifetch 1,rega
+	branch kscan_value_init,blank
+	copy pdata,loopcnt
+	add regc,KEYSCAN_OFFECT_COL_CONF_PIN,regb
+kscan_col_loop: 
+	ifetcht 1, regb
+	call gpio_config_output
+	ifetcht 1, regb
+	call gpio_out_active
+	call kscan_value_init             
+	ifetcht 1,regb
+	call gpio_config_input
+	increase 1,regb
+	loop kscan_col_loop
+	rtn  
+kscan_row_num_select:          
+	add regc,KEYSCAN_OFFECT_ROW_NUM,contw
+	ifetch 1,contw 
+	rtn blank
+	copy pdata,loopcnt
+	add regc,KEYSCAN_OFFECT_ROW_CONF_PIN,rega
+	branch kscan_ioselect_input   
+kscan_col_num_select:           
+	add regc,KEYSCAN_OFFECT_COL_NUM,contw
+	ifetch 1,contw 
+	rtn blank
+	copy pdata,loopcnt
+	add regc,KEYSCAN_OFFECT_COL_CONF_PIN,rega
+	branch kscan_ioselect_input
+kscan_ioselect_input: 
+	ifetcht 1,rega
+	call gpio_config_input 
+	increase 1,rega
+	loop kscan_ioselect_input
+	rtn
+kscan_value_init:
+	setarg 0
+	add regc,KEYSCAN_OFFECT_ROW_COUNT,rega
+	istore 1,rega
+	add regc,KEYSCAN_OFFECT_ROW_CONF_PIN,rega
+kscan_save_vaule:
+	ifetcht 1,rega       
+	call gpio_get_bit   
+	add regc,KEYSCAN_OFFECT_VALUE_TEMP,temp
+	ifetch 2,temp
+ 	add regc,KEYSCAN_OFFECT_SHIFT_COUNT,contr
+	ifetcht 1,contr
+	copy temp,queue
+	qsetflag true,pdata
+
+	add regc,KEYSCAN_OFFECT_VALUE_TEMP,temp
+ 	istore 2,temp
+	increase 1,rega
+    
+	add regc,KEYSCAN_OFFECT_SHIFT_COUNT,contw
+	ifetch 1,contw 
+	increase 1,pdata
+	istore 1,contw
+    
+	add regc,KEYSCAN_OFFECT_ROW_COUNT,contw
+	ifetcht 1,contw 
+	increase 1,temp
+	istoret 1,contw
+	add regc,KEYSCAN_OFFECT_ROW_NUM,contw
+	ifetch 1,contw 
+	ixor temp,null  
+	nbranch kscan_save_vaule,zero
+	rtn       
+	
+	
+kscan_lpm_berfore:
+	fetch 2,mem_kscan_ptr
+	copy pdata,regc
+ 	add regc,KEYSCAN_OFFECT_ROW_NUM,contw
+ 	ifetch 1,contw 
+	copy pdata,loopcnt
+	add regc,KEYSCAN_OFFECT_COL_CONF_PIN,rega
+kscan_select_wake:    
+	ifetcht 1,rega
+	call gpio_set_wake   
+	increase 1,rega
+	loop kscan_select_wake
+	rtn
+
+kscan_clkn_bt_timer_check:
+	ifetcht 4,rega
+	copy clkn_bt,pdata
+	isub temp,null
+	rtn positive
+	setarg 0
+	istore 4,rega
+	rtn
+
+kscan_process:
+	fetch 2,mem_kscan_ptr
+	copy pdata,regc
+	add regc,KEYSCAN_OFFECT_BTCLK,rega
+	call kscan_clkn_bt_timer_check
+	ifetch 4,rega
+	add regc,KEYSCAN_OFFECT_BTCLK_INTERVAL,regb
+	ifetcht 1,regb
+	iadd temp,temp
+	copy clkn_bt,pdata
+	isub temp,null
+	nrtn positive
+	istore 4,rega
+	call kscan_col_init  
+	add regc,KEYSCAN_OFFECT_VALUE_TEMP,rega
+	ifetch 2,rega
+	add regc,KEYSCAN_OFFECT_LASVALUE,rega
+	ifetcht 2,rega
+	istore 2,rega
+	iand temp,pdata
+	add regc,KEYSCAN_OFFECT_VALUE,rega    
+	istore 2,rega 
+	rtn  
+
+endif
+	
+	
+
+
+
+	
+    
+	
+
Index: program/l2cap.prog
===================================================================
--- /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/program/l2cap.prog	(nonexistent)
+++ /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/program/l2cap.prog	(working copy)
@@ -0,0 +1,1897 @@
+/************************************/
+/*initialize L2CAP related variables*/
+/************************************/
+l2cap_init:
+	branch l2cap_init_wake,wake
+l2cap_init_work:
+	setarg mem_l2cap_xmem_end
+	arg mem_l2cap_xmem_start,contw
+	isub contw,loopcnt
+	call clear_mem
+l2cap_init_wake:	
+	bpatch patch1d_3,mem_patch1d
+	setarg mem_sdp_mem_end
+	arg mem_sdp_mem_start,contw
+	isub contw,loopcnt
+	call clear_mem
+	setarg mem_l2cap_mem_end
+	arg mem_l2cap_mem_start,contw
+	isub contw,loopcnt
+	call clear_mem
+	branch l2cap_lpm_load_txbuf
+	
+process_rx_l2cap_pkt:
+	bpatch patch1d_4,mem_patch1d
+	copy contr,temp
+	//call l2cap_malloc_is_fifo_full
+	//nrtn blank
+	copy temp,contr
+	ifetch 2,contr
+	store 2,mem_l2cap_rx_pkt_length
+	ifetch 2,contr
+	store 2,mem_l2cap_rx_cid
+	deposit contr
+	store 2,mem_l2cap_payload_ptr
+	fetch 1,memui_reconnect_mode
+	beq NO_RECONNECTION,l2cap_rx_multiplexing
+	branch ml2cap_rx_multiplexing
+
+l2cap_rx_multiplexing:
+	fetch 2, mem_l2cap_rx_pkt_length
+	branch l2cap_rx_reset_state,blank
+	bpatch patch1d_5,mem_patch1d
+	fetch 1,mem_l2cap_rx_cid
+	beq L2CAP_signal_channel,l2cap_call_proc_signal
+l2cap_rx_multiplexing0:
+	beq L2CAP_SDP_channel,l2cap_call_proc_sdp
+	beq L2CAP_RFCOMM_channel,l2cap_call_proc_rfcomm
+	beq L2CAP_HID_Control_channel,l2cap_call_proc_hid
+	beq L2CAP_HID_Interrupt_channel,l2cap_call_proc_hid
+	branch l2cap_rx_reset_state
+
+l2cap_check_map:
+//	call l2cap_malloc_is_fifo_full
+//	nrtn blank
+	bpatch patch1d_6,mem_patch1d
+	call l2cap_malloc_get_full_map
+	fetch 1,mem_used_map
+	beq 0,set_pdata_0
+	beq 1,set_pdata_0
+	beq 2,set_pdata_0
+	beq 3,set_pdata_0
+	beq 0x81,set_pdata_0
+	beq 0xc0,set_pdata_0
+	beq 0x80,set_pdata_0
+	beq 0x40,set_pdata_0
+	rtn
+
+l2cap_call_proc_signal:
+	call l2cap_check_map
+	nrtn blank
+l2cap_call_proc_signal0:
+	call l2cap_malloc_signal_channel
+	call l2cap_process_signal_pkt
+	fetcht 2,mem_l2cap_signal_tx_length
+	branch l2cap_call_proc_no_reply,blank
+	call l2cap_get_signal_tx_buff
+	fetch 2,mem_l2cap_signal_tx_length
+	istore 2,contw
+	force L2CAP_signal_channel,pdata
+	istore 2,contw
+	branch l2cap_rx_reset_state
+	
+l2cap_call_proc_sigal_pending:
+	fetch 1,mem_l2cap_pending_item
+	rtn blank
+	copy pdata,rega
+	bpatch patch1d_7,mem_patch1d
+	fetch 4,mem_l2cap_sdpres_delay_time
+	arg 0x100,temp
+	iadd temp,temp
+	copy clkn_bt,pdata
+	isub temp,null
+	nrtn positive
+	jam 0,mem_l2cap_pending_item
+	copy rega,pdata
+	beq L2CAP_SDP_channel,l2cap_sdp_conn_succ
+	branch assert
+l2cap_sdp_conn_succ:
+	arg 0,debug
+	call l2cap_malloc_signal_channel
+	call restore_l2cap_req_param
+	call l2cap_get_signal_tx_payload
+	call save_cont_pointers
+	call send_connection_sdp_res
+	call l2cap_get_signal_tx_buff
+	//fetch 2,mem_l2cap_signal_tx_length
+	setarg 0x000c
+	istore 2,contw
+	force L2CAP_signal_channel,pdata
+	istore 2,contw
+	branch l2cap_rx_reset_state
+
+
+
+l2cap_reset_sdp_map:
+	bpatch patch1e_0,mem_patch1e
+	fetch 2,mem_sdp_tx_pkt_length
+	increase 4,pdata
+	call rshift7
+	add pdata,1,temp ///temp: how many128
+	arg mem_tx_fifo3,contr
+	ifetch 3,contr
+	rtn blank
+	store 3,mem_tx_fifo_map_temp
+	fetch 1,mem_tx_fifo_map_temp
+	copy pdata,rega
+	call check_l2cap_map
+	copy regb,pdata
+	store 1,mem_tx_fifo3
+	rtn
+
+check_l2cap_map:
+	arg 0,queue
+	arg 0,regb
+
+check_l2cap_map_loop:
+	sub queue,7,null
+	nrtn positive
+	qisolate1 rega
+	branch check_l2cap_map_used,true
+	branch check_l2cap_map_used2
+
+check_l2cap_map_used:
+	copy temp,pdata
+	branch check_l2cap_map_used2,blank
+	qset1 regb
+	increase -1,temp
+
+check_l2cap_map_used2:
+	increase 1,queue
+	branch check_l2cap_map_loop
+
+l2cap_call_proc_sdp:
+	call l2cap_malloc_is_fifo_empty
+	nrtn blank// not process this packet until fifo empty
+	call l2cap_check_map
+	nrtn blank
+	call l2cap_malloc_sdp_channel
+	call sdp_process
+	call l2cap_reset_sdp_map
+	branch l2cap_call_proc_sdp_common
+
+	
+ml2cap_call_proc_sdp:
+	call l2cap_malloc_is_fifo_empty
+	nrtn blank// not process this packet until fifo empty
+	call l2cap_malloc_sdp_channel
+	call sdp_process
+l2cap_call_proc_sdp_common:
+	call l2cap_get_sdp_tx_buff
+	fetch 2,mem_sdp_tx_pkt_length
+	branch l2cap_call_proc_no_reply,blank
+	istore 2,contw
+	fetch 2,mem_sdp_remote_cid
+	istore 2,contw
+	branch l2cap_rx_reset_state
+
+l2cap_call_proc_hid:
+	call hid_rx_process
+	branch l2cap_rx_reset_state
+
+l2cap_call_proc_rfcomm:
+	bpatch patch1e_1,mem_patch1e
+	jam RFCOMM_MALLOC_SUCCEED,mem_rfcomm_malloc_fail_flag
+	call rfcomm_rx_process
+	fetch 1,mem_rfcomm_malloc_fail_flag
+	rtneq RFCOMM_MALLOC_FAIL
+	branch l2cap_rx_reset_state
+l2cap_call_proc_no_reply:
+	call l2cap_malloc_discard
+	//fall through
+l2cap_rx_reset_state:
+	setarg 0
+	store 2,mem_l2cap_rx_pkt_length
+	store 2,mem_l2cap_rx_cid
+	jam L2CAP_RX_DONE,mem_l2cap_rx_done
+	rtn
+/* To process one L2CAP signalling pkt consisting of 1 or more signalling commands.	*/
+l2cap_process_signal_pkt:
+	bpatch patch1e_2,mem_patch1e
+	call l2cap_get_signal_tx_payload
+	force 0,regb
+	fetch 2,mem_l2cap_rx_pkt_length
+	copy pdata,regc
+	fetch 2,mem_l2cap_payload_ptr
+	iforce contr
+l2cap_process_signal_pkt_loop:
+	call l2cap_process_one_signal
+	deposit regc
+	increase -4,regc
+	increase -4,pdata
+	nbranch l2cap_process_signal_pkt_loop,blank
+	copy regb,pdata
+	store 2,mem_l2cap_signal_tx_length
+	rtn
+
+l2cap_process_one_signal:
+	bpatch patch1e_3,mem_patch1e
+	ifetch 1,contr
+	beq signal_cmd_reject,l2cap_proc_signal_cmd_reject
+	beq signal_connect_req,l2cap_proc_signal_connect_req
+	beq signal_connect_rsp,l2cap_proc_signal_connect_rsp
+	beq signal_config_req,l2cap_proc_signal_config_req
+	beq signal_config_rsp,l2cap_proc_signal_config_rsp
+	beq signal_disconnect_req,l2cap_proc_signal_disconnect_req
+	beq signal_disconnect_rsp,l2cap_proc_signal_disconnect_rsp
+	beq signal_echo_req,l2cap_proc_signal_echo_req
+	beq signal_echo_rsp,l2cap_proc_signal_echo_rsp
+	beq signal_info_req,l2cap_proc_signal_info_req
+	beq signal_info_rsp,l2cap_proc_signal_info_rsp
+	call l2cap_reject_command
+l2cap_process_one_signal_rtn:
+	rtn
+
+l2cap_proc_signal_info_req:
+	ifetch 1,contr //IDs
+	copy pdata,queue
+	ifetch 2,contr //length
+	copy pdata,rega
+	copy regc,pdata
+	isub rega,regc
+	setarg signal_info_rsp
+	istore 1,contw
+	copy queue,pdata
+	istore 1, contw
+	ifetch 2,contr 
+l2cap_proc_signal_info_req_reply:
+	beq L2CAP_SIG_EXT_FEATRUE,l2cap_proc_signal_info_req_ext
+	beq L2CAP_SIG_FIX_FEATRUE,l2cap_proc_signal_info_req_fix
+	rtn
+l2cap_proc_signal_info_req_ext:
+	setarg 0x020008
+	istore 6, contw
+	setarg 0x0280
+	istore 4, contw
+	force 12,pdata
+	branch l2cap_proc_signal_info_req_common
+l2cap_proc_signal_info_req_fix:
+	setarg 0x3000c
+	istore 6, contw
+	setarg 0x0006
+	istore 8, contw
+	force 16,pdata
+l2cap_proc_signal_info_req_common:
+	iadd regb,regb
+	branch l2cap_process_one_signal_rtn
+	
+ml2cap_proc_signal_info_req:
+	ifetch 1,contr //IDs
+	copy pdata,queue
+	ifetch 2,contr //length
+	copy pdata,rega
+	ifetch 2,contr
+	store 2,mem_temp
+	copy regc,pdata
+	isub rega,regc 
+	call l2cap_get_signal_tx_payload
+	setarg signal_info_rsp
+	istore 1,contw
+	copy queue,pdata
+	istore 1,contw 
+	fetch 2,mem_temp
+	branch l2cap_proc_signal_info_req_reply
+
+
+/*  Respond to the command reject signal sent from the remote BD.   */
+l2cap_proc_signal_cmd_reject:
+	ifetch 1,contr
+	copy pdata,queue
+	ifetch 2,contr
+	copy pdata,rega
+	iadd contr,contr
+	copy regc,pdata
+	isub rega,regc
+l2cap_proc_signal_cmd_reject_rtn:
+	branch l2cap_process_one_signal_rtn
+/* Respond to an L2CAP connection request from remote BD. (generate a connection_rsp)	*/
+l2cap_proc_signal_connect_req:
+	call save_cont_pointers
+	//fetch 6,mem_inquiry_bd_addr
+  	//store 6,mem_master_paged_bd_addr
+  	call load_cont_pointers
+	arg 0,debug
+	ifetch 1,contr
+	copy pdata,queue
+	ifetch 2,contr
+	copy pdata,rega
+	ifetch 2,contr
+	copy pdata,temp //PSM
+	ifetch 2,contr
+	copy pdata,timeup
+	bpatch patch1e_4,mem_patch1e
+	copy temp,pdata
+	beq PSM_SDP,l2cap_proc_signal_connect_req_sdp
+	beq PSM_RFCOMM,l2cap_proc_signal_connect_req_rfcomm
+	beq PSM_HID_control,l2cap_proc_signal_connect_req_hid_ctrl
+	beq PSM_HID_interrupt,l2cap_proc_signal_connect_req_hid_int
+	call l2cap_reject_command
+	branch l2cap_proc_signal_connect_req_rtn
+
+l2cap_proc_signal_connect_req_sdp:
+	call save_cont_pointers
+	arg L2CAP_SDP_channel,temp
+	fetch 2,mem_sdp_remote_cid
+	nbranch already_connected,blank
+	copy timeup,pdata
+	store 2,mem_sdp_remote_cid
+	copy clkn_bt,pdata
+	store 4,mem_l2cap_sdpres_delay_time
+	call store_l2cap_req_param
+	branch  send_connection_pending
+
+store_l2cap_req_param:
+	storet 2,mem_psm
+	deposit timeup
+	store 2,mem_scid
+	deposit rega
+	store 2,mem_cmd_length
+	deposit regb
+	store 2,mem_tt2
+	deposit regc
+	store 2,mem_tt3
+	deposit queue
+	store 2,mem_id
+	rtn
+
+restore_l2cap_req_param:
+	fetcht 2,mem_psm
+	fetch 2,mem_scid
+	copy pdata,timeup
+	fetch 2,mem_cmd_length
+	copy pdata,rega
+	fetch 2,mem_tt2
+	copy pdata,regb
+	fetch 2,mem_tt3
+	copy pdata,regc
+	fetch 2,mem_id
+	copy pdata,queue
+	rtn
+
+l2cap_proc_signal_connect_req_rfcomm:
+	call save_cont_pointers
+	setarg L2CAP_RFCOMM_channel
+	arg L2CAP_RFCOMM_channel,temp
+	fetch 2,mem_RFCOMM_remote_CID
+	nbranch already_connected,blank
+	copy timeup,pdata
+	store 2,mem_RFCOMM_remote_CID
+	fetch 1,mem_rfcomm_state
+	set1 L2CAP_CHANNEL_STATE_CONN_REQ,pdata
+	set1 L2CAP_CHANNEL_STATE_CONN_RES,pdata
+	store 1,mem_rfcomm_state
+	branch send_connection_res
+l2cap_proc_signal_connect_req_hid_ctrl:
+	call save_cont_pointers
+	arg L2CAP_HID_Control_channel,temp
+	fetch 2,mem_hid_ctrl_remote_cid
+	nbranch already_connected,blank
+	copy timeup,pdata
+	store 2,mem_hid_ctrl_remote_cid
+	fetch 1,mem_hid_control_state
+	set1 L2CAP_CHANNEL_STATE_CONN_REQ,pdata
+	set1 L2CAP_CHANNEL_STATE_CONN_RES,pdata
+	store 1,mem_hid_control_state
+	branch send_connection_res
+l2cap_proc_signal_connect_req_hid_int:
+	call save_cont_pointers
+	deposit clke
+	arg L2CAP_HID_Interrupt_channel,temp
+	fetch 2,mem_hid_int_remote_cid
+	nbranch already_connected,blank
+	copy timeup,pdata
+	store 2,mem_hid_int_remote_cid
+	fetch 1,mem_hid_interrupt_state
+	set1 L2CAP_CHANNEL_STATE_CONN_REQ,pdata
+	set1 L2CAP_CHANNEL_STATE_CONN_RES,pdata
+	store 1,mem_hid_interrupt_state
+	branch send_connection_res
+
+send_connection_pending:
+	setarg L2CAP_connect_pending
+	store 2,memL2CAP_T1
+	jam L2CAP_SDP_channel,mem_l2cap_pending_item
+	branch send_connection_res0
+send_connection_sdp_res:
+	fetch 1,mem_sdp_state
+	set1 L2CAP_CHANNEL_STATE_CONN_REQ,pdata
+	set1 L2CAP_CHANNEL_STATE_CONN_RES,pdata
+	store 1,mem_sdp_state
+send_connection_res:
+	setarg L2CAP_connect_successful
+	store 2,memL2CAP_T1
+send_connection_res0:
+	bpatch patch1e_5,mem_patch1e
+	call load_cont_pointers
+	setarg signal_connect_rsp
+	istore 1,contw
+	copy queue,pdata
+	istore 1,contw
+	setarg 0x0008
+	istore 2,contw
+	copy temp,pdata
+	istore 2,contw
+	copy timeup,pdata
+	istore 2,contw
+	fetch 2,memL2CAP_T1
+	beq L2CAP_connect_pending,connect_pending
+	isolate0 0,debug
+	branch connect_suc,true
+	setarg L2CAP_connect_refused_no_resources
+connect_suc:
+	istore 2,contw
+	force 0x0000,pdata
+	istore 2,contw
+	setarg 12
+	branch connect_req_update_byte_counts
+connect_pending:
+	istore 2,contw
+	force 0x0002,pdata
+	istore 2,contw
+	setarg 12
+	branch connect_req_update_byte_counts
+	
+already_connected:
+	set1 0,debug
+	branch send_connection_res
+connect_req_update_byte_counts:
+	iadd regb,regb
+	copy regc,pdata
+	isub rega,regc
+	branch l2cap_proc_signal_connect_req_rtn
+l2cap_proc_signal_connect_req_rtn:
+	branch l2cap_process_one_signal_rtn
+
+l2cap_proc_signal_connect_rsp:
+	ifetch 1,contr //identifier
+	copy pdata,queue
+	ifetch 2,contr //length
+	copy pdata,rega
+	copy regc,pdata
+	isub rega,regc
+	ifetch 2,contr //remote cid
+	copy pdata,timeup
+	ifetch 2,contr //local cid
+	copy pdata,temp
+	bpatch patch1e_6,mem_patch1e
+	setarg L2CAP_SDP_channel
+	isub temp,null
+	branch l2cap_proc_signal_connect_rsp_sdp,zero
+	setarg L2CAP_RFCOMM_channel
+	isub temp,null
+	branch l2cap_proc_signal_connect_rsp_rfcomm,zero
+	setarg L2CAP_HID_Control_channel
+	isub temp,null
+	branch l2cap_proc_signal_connect_rsp_hid_ctrl,zero
+	setarg L2CAP_HID_Interrupt_channel
+	isub temp,null
+	branch l2cap_proc_signal_connect_rsp_hid_int,zero
+	rtn
+
+l2cap_proc_signal_connect_rsp_sdp:
+	copy timeup,pdata
+	store 2,mem_sdp_remote_cid
+	fetch 1,mem_sdp_state
+	set1 L2CAP_CHANNEL_STATE_CONN_RES,pdata
+	store 1,mem_sdp_state
+	branch l2cap_process_one_signal_rtn
+l2cap_proc_signal_connect_rsp_rfcomm:
+	copy timeup,pdata
+	store 2,mem_rfcomm_remote_CID
+	fetch 1,mem_rfcomm_state
+	set1 L2CAP_CHANNEL_STATE_CONN_RES,pdata
+	store 1,mem_rfcomm_state
+	rtn
+l2cap_proc_signal_connect_rsp_hid_int:
+	copy timeup,pdata
+	store 2,mem_hid_ctrl_remote_cid
+	fetch 1,mem_hid_interrupt_state
+	set1 L2CAP_CHANNEL_STATE_CONN_RES,pdata
+	store 1,mem_hid_interrupt_state
+	rtn
+l2cap_proc_signal_connect_rsp_hid_ctrl:
+	copy timeup,pdata
+	store 2,mem_hid_int_remote_cid
+	fetch 1,mem_hid_control_state
+	set1 L2CAP_CHANNEL_STATE_CONN_RES,pdata
+	store 1,mem_hid_control_state
+	rtn
+
+l2cap_proc_signal_config_req:
+	ifetch 1,contr//identifier
+	copy pdata,queue
+	ifetch 2,contr//length
+	copy pdata,rega
+	copy regc,pdata
+	isub rega,regc
+	ifetch 2,contr//dest cid
+	copy pdata,temp
+	copy temp,rega
+	bpatch patch1e_7,mem_patch1e
+	setarg L2CAP_SDP_channel
+	isub temp,null
+	branch l2cap_proc_signal_config_req_sdp,zero
+	setarg L2CAP_RFCOMM_channel
+	isub temp,null
+	branch l2cap_proc_signal_config_req_rfcomm,zero
+	setarg L2CAP_HID_Control_channel
+	isub temp,null
+	branch l2cap_proc_signal_config_req_hid_ctrl,zero
+	setarg L2CAP_HID_Interrupt_channel
+	isub temp,null
+	branch l2cap_proc_signal_config_req_hid_int,zero
+	branch l2cap_reject_command
+	//branch L2CAP_proc_signal_config_req_rtn
+l2cap_proc_signal_config_req_sdp:
+	copy contw, timeup
+	fetch 1,mem_sdp_state
+	set1 L2CAP_CHANNEL_STATE_RCV_CFG_REQ,pdata
+	set1 L2CAP_CHANNEL_STATE_SND_CFG_RES,pdata
+	//set1 L2CAP_CHANNEL_STATE_SND_CFG_REQ,pdata
+	store 1,mem_sdp_state
+	copy timeup,contw
+	arg L2CAP_SDP_channel,timeup
+	fetch 2,mem_sdp_remote_cid
+	copy pdata,temp
+	branch l2cap_send_config_rsp
+l2cap_proc_signal_config_req_hid_ctrl:
+	copy contw, timeup
+	fetch 1,mem_hid_control_state
+	set1 L2CAP_CHANNEL_STATE_RCV_CFG_REQ,pdata
+	set1 L2CAP_CHANNEL_STATE_SND_CFG_RES,pdata
+	//set1 L2CAP_CHANNEL_STATE_SND_CFG_REQ,pdata
+	store 1,mem_hid_control_state
+	copy timeup,contw
+	arg L2CAP_HID_Control_channel,timeup
+	fetch 2,mem_hid_ctrl_remote_cid
+	copy pdata,temp
+	branch l2cap_send_config_rsp
+l2cap_proc_signal_config_req_hid_int:
+	copy contw, timeup
+	fetch 1,mem_hid_interrupt_state
+	set1 L2CAP_CHANNEL_STATE_RCV_CFG_REQ,pdata
+	set1 L2CAP_CHANNEL_STATE_SND_CFG_RES,pdata
+	//set1 L2CAP_CHANNEL_STATE_SND_CFG_REQ,pdata
+	store 1,mem_hid_interrupt_state
+	copy timeup,contw
+	arg L2CAP_HID_Interrupt_channel,timeup
+	fetch 2,mem_hid_int_remote_cid
+	copy pdata,temp
+	branch l2cap_send_config_rsp
+l2cap_proc_signal_config_req_rfcomm:
+	copy contw, timeup
+	fetch 1,mem_rfcomm_state
+	set1 L2CAP_CHANNEL_STATE_RCV_CFG_REQ,pdata
+	set1 L2CAP_CHANNEL_STATE_SND_CFG_RES,pdata
+	//set1 L2CAP_CHANNEL_STATE_SND_CFG_REQ,pdata
+	store 1,mem_rfcomm_state
+//	jam UPPERSM_RP_SDP_CONN,mem_upper_sm_remote_page
+	copy timeup,contw
+	arg L2CAP_RFCOMM_channel,timeup
+	fetch 2,mem_RFCOMM_remote_CID
+	copy pdata,temp
+l2cap_send_config_rsp:
+	bpatch patch1f_0,mem_patch1f
+	setarg  signal_config_rsp
+	istore 1,contw
+	copy queue,pdata
+	istore 1,contw
+	setarg 0x0006
+	istore 2,contw
+	copy temp,pdata
+	istore 2,contw
+	force 0x00,pdata
+	istore 2,contw
+	force L2CAP_config_success,pdata
+	istore 2,contw
+	force 10,pdata
+	iadd regb,regb
+	//copy temp,pdata
+	storet 2,mem_config_req_dest_CID
+	copy queue,pdata
+	store 1,mem_config_identifier
+	force L2CAP_SDP_channel,pdata
+	icompare 0xff,timeup
+	branch l2cap_send_config_rsp_is_sdp,true
+	increase 1,pdata
+l2cap_send_config_rsp_is_sdp:
+	//store 1,mem_send_config_req
+	rtn
+l2cap_check_channel_state:
+	disable user
+	rtnbit1 L2CAP_CHANNEL_STATE_SND_CFG_REQ,pdata
+	rtnbit0 L2CAP_CHANNEL_STATE_CONN_REQ,pdata
+	rtnbit0 L2CAP_CHANNEL_STATE_CONN_RES,pdata
+	set1 L2CAP_CHANNEL_STATE_SND_CFG_REQ,pdata
+	copy contr,contw
+	increase -1,contw
+	istore 1,contw
+	enable user
+	rtn
+l2cap_send_config_req:
+l2cap_send_config_req_sdp:
+	fetch 1,mem_sdp_state
+	call l2cap_check_channel_state
+	nbranch l2cap_send_config_req_rfcomm,user
+	jam L2CAP_SDP_channel,mem_send_config_req
+	fetch 2,mem_sdp_remote_cid
+	store 2,mem_config_req_dest_CID
+	branch l2cap_generate_config_req
+l2cap_send_config_req_rfcomm:
+	fetch 1,mem_rfcomm_state
+	call l2cap_check_channel_state
+	nbranch l2cap_send_config_req_hid_ctrl,user
+	jam L2CAP_RFCOMM_channel,mem_send_config_req
+	fetch 2,mem_RFCOMM_remote_CID
+	store 2,mem_config_req_dest_CID
+	branch l2cap_generate_config_req
+l2cap_send_config_req_hid_ctrl:
+	fetch 1,mem_hid_control_state
+	call l2cap_check_channel_state
+	nbranch l2cap_send_config_req_hid_int,user
+	jam L2CAP_HID_Control_channel,mem_send_config_req
+	fetch 2,mem_hid_ctrl_remote_cid
+	store 2,mem_config_req_dest_CID
+	branch l2cap_generate_config_req
+l2cap_send_config_req_hid_int:
+	fetch 1,mem_hid_interrupt_state
+	call l2cap_check_channel_state
+	nrtn user//End of sending config req
+	jam L2CAP_HID_Interrupt_channel,mem_send_config_req
+	fetch 2,mem_hid_int_remote_cid
+	store 2,mem_config_req_dest_CID
+	//branch L2CAP_generate_config_req
+
+l2cap_generate_config_req:
+	bpatch patch1f_1,mem_patch1f
+	call l2cap_get_req_id
+	call l2cap_malloc_signal_channel
+	force 0,regb
+	call l2cap_get_signal_tx_payload
+	force signal_config_req,pdata
+	istore 1,contw
+	fetch 1,mem_ML2CAP_comm_id
+	istore 1,contw
+	setarg 0x0008
+	istore 2,contw
+	fetch 2,mem_config_req_dest_CID
+	istore 2,contw
+	setarg 0x0000
+	istore 2,contw
+	force 1,pdata
+	istore 1,contw
+	force 2,pdata
+	istore 1,contw
+	fetch 1,mem_send_config_req
+	beq L2CAP_RFCOMM_channel,l2cap_generate_config_req_rfcomm
+	setarg L2CAP_config_MTU_SDP
+	istore 2,contw
+	branch l2cap_generate_config_req_done
+l2cap_generate_config_req_rfcomm:
+	setarg L2CAP_config_MTU_RFCOMM
+	istore 2,contw
+l2cap_generate_config_req_done:
+	arg 0x0c,temp
+	storet 2,mem_l2cap_signal_tx_length
+	call l2cap_get_signal_tx_buff
+	fetch 2,mem_l2cap_signal_tx_length
+	istore 2,contw
+	force L2CAP_signal_channel,pdata
+	istore 2,contw
+	jam 0,mem_send_config_req
+l2cap_proc_signal_config_req_rtn:
+	branch l2cap_process_one_signal_rtn
+
+l2cap_proc_signal_config_rsp:
+	increase 1,contr
+	ifetch 2,contr
+	copy pdata,rega
+	copy regc,pdata
+	isub rega,regc
+	ifetch 2,contr //source cid
+	copy pdata,rega
+	bpatch patch1f_2,mem_patch1f
+	setarg L2CAP_SDP_channel
+	isub rega,null
+	branch l2cap_proc_signal_config_rsp_sdp,zero
+	setarg L2CAP_RFCOMM_channel
+	isub rega,null
+	branch l2cap_proc_signal_config_rsp_rfcomm,zero
+	setarg L2CAP_HID_Control_channel
+	isub rega,null
+	branch l2cap_proc_signal_config_rsp_hid_ctrl,zero
+	setarg L2CAP_HID_Interrupt_channel
+	isub rega,null
+	branch l2cap_proc_signal_config_rsp_hid_int,zero
+	increase 2,contr
+	ifetch 2,contr
+	iforce null
+	branch l2cap_process_one_signal_rtn
+l2cap_proc_signal_config_rsp_sdp:
+	fetch 1,mem_sdp_state
+	set1 L2CAP_CHANNEL_STATE_RCV_CFG_RES,pdata
+	store 1,mem_sdp_state
+	branch l2cap_process_one_signal_rtn
+l2cap_proc_signal_config_rsp_rfcomm:
+	fetch 1,mem_rfcomm_state
+	set1 L2CAP_CHANNEL_STATE_RCV_CFG_RES,pdata
+	store 1,mem_rfcomm_state
+	branch l2cap_process_one_signal_rtn
+l2cap_proc_signal_config_rsp_hid_ctrl:
+	fetch 1,mem_hid_control_state
+	set1 L2CAP_CHANNEL_STATE_RCV_CFG_RES,pdata
+	store 1,mem_hid_control_state
+	branch l2cap_process_one_signal_rtn
+l2cap_proc_signal_config_rsp_hid_int:
+	fetch 1,mem_hid_interrupt_state
+	set1 L2CAP_CHANNEL_STATE_RCV_CFG_RES,pdata
+	store 1,mem_hid_interrupt_state
+	jam BT_EVT_HID_CONNECTED,mem_fifo_temp
+	branch ui_ipc_send_event
+	
+
+
+l2cap_proc_signal_disconnect_req:
+	ifetch 1,contr
+	copy pdata,queue
+	ifetch 2,contr
+	copy pdata,rega
+	copy regc,pdata
+	isub rega,regc
+	ifetch 2,contr
+	copy pdata,rega
+	ifetch 2,contr
+	copy pdata,timeup
+	copy rega,temp
+	call save_cont_pointers
+	bpatch patch1f_3,mem_patch1f
+	setarg L2CAP_SDP_channel
+	isub temp,null
+	branch l2cap_proc_signal_disconnect_req_sdp,zero
+	setarg L2CAP_RFCOMM_channel
+	isub temp,null
+	branch l2cap_proc_signal_disconnect_req_rfcomm,zero
+	setarg L2CAP_HID_Control_channel
+	isub temp,null
+	branch l2cap_proc_signal_disconnect_req_hid_ctrl,zero
+	setarg L2CAP_HID_Interrupt_channel
+	isub temp,null
+	branch l2cap_proc_signal_disconnect_req_hid_int,zero
+	call l2cap_reject_command
+	branch l2cap_proc_signal_disconnect_req_err_rtn
+l2cap_proc_signal_disconnect_req_hid_ctrl:
+	copy timeup,temp
+	fetch 2,mem_hid_ctrl_remote_cid
+	isub temp,null
+	branch l2cap_disconnect_hid_control_now,zero
+	call l2cap_reject_command
+	branch l2cap_proc_signal_disconnect_req_err_rtn
+l2cap_proc_signal_disconnect_req_hid_int:
+	copy timeup,temp
+	fetch 2,mem_hid_int_remote_cid
+	isub temp,null
+	branch l2cap_disconnect_hid_interrupt_now,zero
+	call l2cap_reject_command
+	branch l2cap_proc_signal_disconnect_req_err_rtn
+
+l2cap_proc_signal_disconnect_req_sdp:
+	copy timeup,temp
+	fetch 2,mem_sdp_remote_cid
+	isub temp,null
+	branch l2cap_disconnect_sdp_now,zero
+	call l2cap_reject_command
+	branch l2cap_proc_signal_disconnect_req_err_rtn
+l2cap_disconnect_hid_control_now:
+	call l2cap_reset_hid_ctrl_state
+	branch l2cap_send_disconnect_rsp_pkt
+l2cap_disconnect_hid_interrupt_now:
+	call l2cap_reset_hid_int_state
+	fetch 2, mem_hid_ctrl_remote_cid
+	branch l2cap_send_disconnect_rsp_pkt, blank
+	//set the flag,hid channel close
+	//should we set here?
+	//call HID_mem_lock
+	//fetch 1, mem_hid_cb1
+	//set1 HID_CB_APP_HID_DISCONNECTED,pdata
+	//store 1, mem_hid_cb1
+	//call HID_mem_unlock
+	branch l2cap_send_disconnect_rsp_pkt
+
+l2cap_disconnect_sdp_now:
+	call l2cap_reset_sdp_channel_state
+	fetch 1,mem_upper_sm_ss
+	nbranch l2cap_send_disconnect_rsp_pkt,blank
+	//jam LMP_ENCRYPTION_MODE_REQ,mem_lmo_opcode2
+	//jam UPPERSM_RP_SDP_CONN,mem_upper_sm_remote_page
+	branch l2cap_send_disconnect_rsp_pkt
+l2cap_proc_signal_disconnect_req_rfcomm:
+	copy timeup,temp
+	fetch 2, mem_RFCOMM_remote_CID
+	isub temp,null
+	branch l2cap_disconnect_rfcomm_now,zero
+	call l2cap_reject_command
+	branch l2cap_proc_signal_disconnect_req_err_rtn
+l2cap_disconnect_rfcomm_now:
+	call l2cap_reset_rfcomm_channel_state
+	branch l2cap_send_disconnect_rsp_pkt
+l2cap_send_disconnect_rsp_pkt:
+	call load_cont_pointers
+	setarg signal_disconnect_rsp
+	istore 1,contw
+	copy queue,pdata
+	istore 1,contw
+	setarg 0x0004
+	istore 2,contw
+	copy rega,pdata
+	istore 2,contw
+	copy timeup,pdata
+	istore 2,contw
+	force 8,pdata
+	branch l2cap_proc_signal_disconnect_req_rtn
+l2cap_proc_signal_disconnect_req_err_rtn:
+	call load_cont_pointers
+	branch l2cap_proc_signal_disconnect_req_rtn
+l2cap_proc_signal_disconnect_req_rtn:
+	iadd regb,regb
+	branch l2cap_process_one_signal_rtn
+l2cap_proc_signal_disconnect_rsp:
+	ifetch 1,contr
+	copy pdata,queue
+	ifetch 2,contr
+	copy pdata,rega
+	copy regc,pdata
+	isub rega,regc
+	ifetch 2,contr
+	copy pdata,timeup
+	ifetch 2,contr
+	copy pdata,temp
+	call save_cont_pointers
+	bpatch patch1f_4,mem_patch1f
+	setarg L2CAP_SDP_channel
+	isub temp,null
+	branch l2cap_proc_signal_disconnect_rsp_sdp,zero
+	setarg L2CAP_RFCOMM_channel
+	isub temp,null
+	branch l2cap_proc_signal_disconnect_rsp_rfcomm,zero
+	setarg L2CAP_HID_Control_channel
+	isub temp,null
+	branch l2cap_proc_signal_disconnect_rsp_hid_ctrl,zero
+	setarg L2CAP_HID_Interrupt_channel
+	isub temp,null
+	branch l2cap_proc_signal_disconnect_rsp_hid_int,zero
+	call l2cap_reject_command
+	branch l2cap_proc_signal_disconnect_rsp_err_rtn
+l2cap_proc_signal_disconnect_rsp_sdp:
+	copy temp,rega
+	copy timeup,temp
+	fetch 2,mem_sdp_remote_cid
+	isub temp,null
+	call l2cap_reset_sdp_channel_state,zero
+	branch l2cap_proc_signal_disconnect_rsp_rtn
+l2cap_proc_signal_disconnect_rsp_rfcomm:
+	copy temp,rega
+	copy timeup,temp
+	fetch 2,mem_rfcomm_remote_CID
+	isub temp,null
+	call l2cap_reset_rfcomm_channel_state,zero
+	branch l2cap_proc_signal_disconnect_rsp_rtn
+l2cap_proc_signal_disconnect_rsp_hid_ctrl:
+	copy temp,rega
+	copy timeup,temp
+	fetch 2,mem_hid_ctrl_remote_cid
+	isub temp,null
+	call  l2cap_reset_hid_ctrl_state,zero
+	branch l2cap_proc_signal_disconnect_rsp_rtn
+l2cap_proc_signal_disconnect_rsp_hid_int:
+	copy temp,rega
+	copy timeup,temp
+	fetch 2,mem_hid_int_remote_cid
+	isub temp,null
+	call l2cap_reset_hid_int_state,zero
+	branch l2cap_proc_signal_disconnect_rsp_rtn
+l2cap_proc_signal_disconnect_rsp_rtn:
+	call load_cont_pointers
+	branch l2cap_process_one_signal_rtn
+l2cap_proc_signal_disconnect_rsp_err_rtn:
+	branch l2cap_process_one_signal_rtn
+
+/* received an echo request from remote BD.  Will echo the 1st 1 byte back,		*/
+l2cap_proc_signal_echo_req:
+	ifetch 1,contr
+	copy pdata,queue
+	ifetch 2,contr
+	copy pdata,rega
+	iadd contr,contr
+	setarg 9
+	istore 1,contw
+	copy queue,pdata
+	istore 1,contw
+	force 0x0000,pdata
+	istore 2,contw
+	force 4,pdata
+	iadd regb,regb
+	copy regc,pdata
+	isub rega,regc
+	branch l2cap_process_one_signal_rtn
+l2cap_proc_signal_echo_rsp:
+	branch l2cap_process_one_signal_rtn
+
+l2cap_proc_signal_info_rsp:
+	branch l2cap_process_one_signal_rtn
+l2cap_reject_command:
+	force 0,regb
+	call l2cap_get_signal_tx_payload
+	setarg signal_cmd_reject
+	istore 1,contw
+	copy queue,pdata
+	istore 1,contw
+	setarg 2
+	istore 2,contw
+	setarg cmd_not_understood
+	istore 2,contw
+	increase 6,regb
+	arg 4,regc
+	branch l2cap_process_one_signal_rtn
+
+
+
+l2cap_reset_rfcomm_channel_state:
+	setarg 0
+	store 2,mem_RFCOMM_Tx_pkt_length
+	store 2,mem_RFCOMM_remote_CID
+	jam 0,mem_rfcomm_state
+	rtn
+l2cap_reset_sdp_channel_state:
+	setarg 0
+	store 2,mem_sdp_tx_pkt_length
+	store 2,mem_sdp_remote_cid
+	jam 0,mem_sdp_state
+	rtn
+l2cap_reset_hid_ctrl_state:
+	setarg 0
+	store 2,mem_hid_ctrl_remote_cid
+	jam 0,mem_hid_control_state
+	fetch 1,mem_hid_interrupt_state
+	beq 0,l2cap_reset_hid_disconnected
+	rtn
+
+l2cap_reset_hid_int_state:
+	setarg 0
+	store 2,mem_hid_int_remote_cid
+	jam 0,mem_hid_interrupt_state
+	fetch 1,mem_hid_control_state
+	beq 0,l2cap_reset_hid_disconnected
+	rtn
+	
+l2cap_reset_hid_disconnected:
+	jam BT_EVT_HID_DISCONNECTED,mem_fifo_temp
+	branch ui_ipc_send_event	
+
+l2cap_disconnect_interrupt_req:
+	fetch 1,mem_CONTROL_tasks
+	set0  L2CAP_DISCONNECT_INTERRUPT, pdata
+	store 1,mem_CONTROL_tasks
+	fetch 2, mem_hid_int_remote_cid
+	rtn blank
+	call l2cap_malloc_signal_channel
+	fetch 2, mem_hid_int_remote_cid
+	copy pdata,rega
+	force L2CAP_HID_Interrupt_channel,regb
+	branch l2cap_generate_disconnect_req
+l2cap_disconnect_control_req:
+	fetch 1,mem_CONTROL_tasks
+	set0  L2CAP_DISCONNECT_CONTROL, pdata
+	store 1,mem_CONTROL_tasks
+	fetch 2, mem_hid_ctrl_remote_cid
+	rtn blank
+	call l2cap_malloc_signal_channel
+	fetch 2, mem_hid_ctrl_remote_cid
+	copy pdata,rega
+	force L2CAP_HID_Control_channel,regb
+l2cap_generate_disconnect_req:
+	call l2cap_get_req_id
+	call l2cap_get_signal_tx_payload
+	force signal_disconnect_req,pdata
+	istore 1,contw
+	fetch  1,mem_ML2CAP_comm_id
+	istore 1,contw
+	setarg 0x0004
+	istore 2,contw
+	copy rega,pdata
+	istore 2,contw
+	copy regb,pdata
+	istore 2,contw
+	force 0x08,temp //signal tx length in temp
+	branch ml2cap_send_signal
+
+ml2cap_send_signal_connect_req:
+	bpatch patch1f_5,mem_patch1f
+	call l2cap_get_req_id
+	call l2cap_get_signal_tx_payload
+	setarg signal_connect_req
+	istore 1,contw
+	fetch 1,mem_ML2CAP_comm_id
+	istore 1,contw
+	setarg 0x0004
+	istore 2,contw
+	copy temp,pdata	 //PSM
+	istore 2,contw
+	copy timeup,pdata
+	istore 2,contw
+	arg 8,temp
+	branch ml2cap_send_signal
+ml2cap_send_signal_config_req:
+	bpatch patch1f_6,mem_patch1f
+	call l2cap_get_req_id
+	call l2cap_get_signal_tx_payload
+	setarg signal_config_req
+	istore 1,contw
+	fetch 1,mem_ML2CAP_comm_id
+	istore 1,contw
+	setarg 0x0008
+	istore 2,contw
+	/****modigy for nokia*****/
+	copy temp,pdata
+	/*setarg 0x0040*/
+	istore 2,contw
+	setarg 0x0000
+	istore 2,contw
+	setarg 0x01
+	istore 1,contw
+	setarg 0x02
+	istore 1,contw
+	setarg L2CAP_config_MTU_RFCOMM
+	istore 2,contw
+	arg 0xc,temp
+	branch ml2cap_send_signal
+ml2cap_send_signal_disconn_req:
+	bpatch patch1f_7,mem_patch1f
+	call l2cap_get_req_id
+	call l2cap_get_signal_tx_payload
+	setarg signal_disconnect_req
+	istore 1,contw
+	fetch 1,mem_ML2CAP_comm_id
+	increase 1,pdata
+	copy contw,rega
+	store 1,mem_ML2CAP_comm_id
+	copy rega,contw
+	istore 1,contw
+	setarg 0x0004
+	istore 2,contw
+	copy temp,pdata
+	istore 2,contw
+	copy timeup,pdata
+	istore 2,contw
+	arg 0x8,temp
+	//branch ml2cap_send_signal
+	//Fall through
+ml2cap_send_signal:
+	storet 2,mem_l2cap_signal_tx_length
+	copy temp,pdata
+	branch l2cap_malloc_discard,blank
+	call l2cap_get_signal_tx_buff
+	fetch 2,mem_l2cap_signal_tx_length
+	istore 2,contw //make sure that length is still in temp!
+	force L2CAP_signal_channel,pdata
+	istore 2,contw
+	rtn
+
+msdp_send_req_done:
+	fetch 2,mem_sdp_tx_pkt_length
+	branch assert,blank
+	call l2cap_get_sdp_tx_buff
+	fetch 2,mem_sdp_tx_pkt_length
+	istore 2,contw
+	fetch 2,mem_sdp_remote_cid
+	istore 2,contw
+	rtn
+ml2cap_rx_multiplexing:
+	fetch 2, mem_l2cap_rx_pkt_length
+	branch l2cap_rx_reset_state,blank
+	bpatchx patch20_0,mem_patch20
+	fetch 1,mem_l2cap_rx_cid
+	beq L2CAP_signal_channel,ml2cap_call_proc_signal
+	beq L2CAP_SDP_channel,ml2cap_call_proc_sdp
+	beq L2CAP_RFCOMM_channel,l2cap_call_proc_rfcomm
+	beq L2CAP_HID_Control_channel,l2cap_call_proc_hid
+	beq L2CAP_HID_Interrupt_channel,l2cap_call_proc_hid
+	branch l2cap_rx_reset_state
+
+ml2cap_call_proc_signal:
+	call l2cap_malloc_signal_channel
+	force 0,regb
+	call l2cap_get_signal_tx_payload
+	copy pdata,contw
+	fetch 2,mem_l2cap_rx_pkt_length
+	copy pdata,regc
+	fetch 2,mem_l2cap_payload_ptr
+	iforce contr
+ml2cap_proc_one_comm_loop:
+	call ml2cap_proc_one_comm
+	increase -4,regc
+	nbranch ml2cap_proc_one_comm_loop,zero
+	copy regb,temp
+	call ml2cap_send_signal
+	branch l2cap_rx_reset_state
+	
+ml2cap_proc_one_comm:
+	ifetch 1,contr
+	beq signal_connect_req,ml2cap_proc_signal_connect_req
+	beq signal_cmd_reject,ml2cap_proc_signal_cmd_reject
+	beq signal_connect_rsp,ml2cap_proc_signal_connect_rsp
+	beq signal_config_rsp,ml2cap_proc_signal_config_rsp
+	beq signal_config_req,ml2cap_proc_signal_config_req
+	beq signal_disconnect_rsp,ml2cap_proc_signal_disconn_rsp
+	beq signal_disconnect_req,ml2cap_proc_signal_disconn_req
+	beq signal_echo_req,l2cap_proc_signal_echo_req
+	beq signal_info_req,ml2cap_proc_signal_info_req
+	branch ml2cap_proc_send_reject
+
+ml2cap_proc_signal_connect_req:
+	call save_cont_pointers
+	//jam NO_RECONNECTION,memui_reconnect_mode
+	call load_cont_pointers
+	branch l2cap_proc_signal_connect_req
+ml2cap_proc_signal_cmd_reject:
+	ifetch 1,contr
+	copy pdata,queue
+	ifetch 2,contr
+	copy pdata,rega
+	copy regc,pdata
+	isub rega,regc
+mvptr:
+	ifetch 1,contr
+	increase -1,rega
+	nbranch mvptr,zero
+	rtn
+ml2cap_proc_signal_connect_rsp:
+	ifetch 1,contr //id
+	copy pdata,queue
+	ifetch 2,contr
+	copy pdata,rega	//length
+	ifetch 2,contr
+	copy pdata,timeup	//destination	cid
+	ifetch 2,contr
+	copy pdata,temp	//source	cid
+	ifetch 2,contr 		// result
+	sub pdata,0,null
+	branch ml2cap_proc_signal_connect_rsp_sucessful,zero
+	beq L2CAP_connect_refused_PSM_unsupported,ml2cap_proc_signal_connect_refused_result
+	beq L2CAP_connect_refused_no_resources,ml2cap_proc_signal_connect_refused_result
+	branch ml2cap_proc_signal_connect_rsp_mnosucc
+ml2cap_proc_signal_connect_refused_result:
+	jam BT_EVT_ML2CAP_CONN_REFUSED,mem_fifo_temp
+	call ui_ipc_send_event
+ml2cap_proc_signal_connect_rsp_mnosucc:
+	ifetch 2,contr //reason
+	branch mnosucc
+ml2cap_proc_signal_connect_rsp_sucessful:
+	call save_cont_pointers
+	//fetch 1,mem_ML2CAP_comm_id
+	//icompare 0xff,queue
+	//nbranch mnosucc1,true
+	bpatchx patch20_1,mem_patch20
+	setarg L2CAP_SDP_channel
+	isub temp,null
+	branch ml2cap_proc_signal_connect_rsp_sdp,zero
+	setarg L2CAP_RFCOMM_channel
+	isub temp,null
+	branch ml2cap_proc_signal_connect_rsp_rfcomm,zero
+	setarg L2CAP_HID_Interrupt_channel
+	isub temp,null
+	branch ml2cap_proc_signal_connect_rsp_hid_int,zero
+	setarg L2CAP_HID_Control_channel
+	isub temp,null
+	branch ml2cap_proc_signal_connect_rsp_hid_ctrl,zero
+	branch mnosucc
+ml2cap_proc_signal_connect_rsp_sdp:
+	copy timeup,pdata
+	store 2,mem_sdp_remote_cid
+	fetch 1,mem_sdp_state
+	set1 L2CAP_CHANNEL_STATE_CONN_RES,pdata
+	store 1,mem_sdp_state
+	branch mnosucc1
+ml2cap_proc_signal_connect_rsp_rfcomm:
+	copy timeup,pdata
+	store 2,mem_RFCOMM_remote_CID
+	fetch 1,mem_rfcomm_state
+	set1 L2CAP_CHANNEL_STATE_CONN_RES,pdata
+	store 1,mem_rfcomm_state
+	branch mnosucc1
+ml2cap_proc_signal_connect_rsp_hid_ctrl:
+	copy timeup,pdata
+	store 2,mem_hid_ctrl_remote_cid
+	fetch 1,mem_hid_control_state
+	set1 L2CAP_CHANNEL_STATE_CONN_RES,pdata
+	store 1,mem_hid_control_state
+	branch mnosucc1
+ml2cap_proc_signal_connect_rsp_hid_int:
+	copy timeup,pdata
+	store 2,mem_hid_int_remote_cid
+	fetch 1,mem_hid_interrupt_state
+	set1 L2CAP_CHANNEL_STATE_CONN_RES,pdata
+	store 1,mem_hid_interrupt_state
+	//branch mnosucc1
+
+mnosucc1:
+	call load_cont_pointers
+mnosucc:
+	copy regc,pdata
+	isub rega,regc
+	rtn
+
+ml2cap_proc_signal_config_rsp:
+	ifetch 1,contr		//	Ident
+	copy pdata,queue
+	ifetch 2,contr		//	SigLen
+	copy pdata,rega
+	copy regc,pdata
+	isub rega,regc
+	ifetch 2,contr		//	DestnCID
+	copy pdata,timeup
+	ifetch 2,contr
+	ifetch 2,contr		//	Get the result value, check success
+	nbranch mcrsdone1,blank
+	call save_cont_pointers
+	//fetch 1,mem_ML2CAP_comm_id
+	//icompare 0xff,queue
+	//nbranch mcfrsdone,true
+	copy timeup,temp
+	bpatchx patch20_2,mem_patch20
+	setarg L2CAP_SDP_channel
+	isub temp,null
+	branch ml2cap_proc_signal_config_rsp_sdp,zero
+	setarg L2CAP_RFCOMM_channel
+	isub temp,null
+	branch ml2cap_proc_signal_config_rsp_rfcomm,zero
+	setarg L2CAP_HID_Control_channel
+	isub temp,null
+	branch ml2cap_proc_signal_config_rsp_hid_ctrl,zero
+	setarg L2CAP_HID_Interrupt_channel
+	isub temp,null
+	branch ml2cap_proc_signal_config_rsp_hid_int,zero
+ml2cap_proc_signal_config_rsp_sdp:
+	fetch 1,mem_sdp_state
+	set1 L2CAP_CHANNEL_STATE_RCV_CFG_RES,pdata
+	store 1,mem_sdp_state
+	rtn
+ml2cap_proc_signal_config_rsp_rfcomm:
+	fetch 1,mem_rfcomm_state
+	set1 L2CAP_CHANNEL_STATE_RCV_CFG_RES,pdata
+	store 1,mem_rfcomm_state
+	rtn
+ml2cap_proc_signal_config_rsp_hid_ctrl:
+	fetch 1,mem_hid_control_state
+	set1 L2CAP_CHANNEL_STATE_RCV_CFG_RES,pdata
+	store 1,mem_hid_control_state
+	rtn
+ml2cap_proc_signal_config_rsp_hid_int:
+	fetch 1,mem_hid_interrupt_state
+	set1 L2CAP_CHANNEL_STATE_RCV_CFG_RES,pdata
+	store 1,mem_hid_interrupt_state
+	jam BT_EVT_HID_CONNECTED,mem_fifo_temp
+	branch ui_ipc_send_event
+
+
+mcfrsdone:
+	call load_cont_pointers
+mcrsdone1:
+	increase -6,rega
+mloop2:
+	branch mcrsdone,zero
+	increase 1,contr
+	increase -1,rega
+	branch mloop2
+mcrsdone:
+	rtn
+ml2cap_proc_signal_config_req:
+	ifetch 1,contr		//	Ident
+	copy pdata,queue
+	ifetch 2,contr		//	SigLen
+	copy pdata,rega
+	copy regc,pdata
+	isub rega,regc
+	ifetch 2,contr		//	DestnCID
+	increase 2,contr
+	copy pdata,temp
+	setarg  signal_config_rsp
+	istore 1,contw
+	copy queue,pdata
+	istore 1,contw
+	increase 2,rega
+	copy rega,pdata
+	istore 2,contw
+	call save_cont_pointers
+	bpatchx patch20_3,mem_patch20
+	setarg L2CAP_SDP_channel
+	isub temp,null
+	branch ml2cap_proc_signal_config_req_sdp,zero
+	setarg L2CAP_RFCOMM_channel
+	isub temp,null
+	branch ml2cap_proc_signal_config_req_rfcomm,zero
+	setarg L2CAP_HID_Control_channel
+	isub temp,null
+	branch ml2cap_proc_signal_config_req_hid_ctrl,zero
+	setarg L2CAP_HID_Interrupt_channel
+	isub temp,null
+	branch ml2cap_proc_signal_config_req_hid_int,zero
+	branch mcfgrq_done
+ml2cap_proc_signal_config_req_sdp:
+	fetch 1,mem_sdp_state
+	set1 L2CAP_CHANNEL_STATE_RCV_CFG_REQ,pdata
+	set1 L2CAP_CHANNEL_STATE_SND_CFG_RES,pdata
+	store 1,mem_sdp_state
+	bbit1 L2CAP_CHANNEL_STATE_SND_CFG_REQ,ml2cap_proc_signal_config_req_sdp_nsndreq
+	fetcht 1,mem_CONTROL_tasks
+	set1 L2CAP_init_Config_Req,temp
+	storet 1,mem_CONTROL_tasks
+	copy queue,pdata
+	increase 1,pdata
+	store 1,mem_config_identifier
+	fetch 1,mem_sdp_state
+	set1 L2CAP_CHANNEL_STATE_SND_CFG_REQ,pdata
+	store 1,mem_sdp_state
+ml2cap_proc_signal_config_req_sdp_nsndreq:
+	fetch 2,mem_sdp_remote_cid
+	store 2,mem_config_req_dest_CID
+	branch mcfgrq_done
+ml2cap_proc_signal_config_req_rfcomm:
+	fetch 1,mem_rfcomm_state
+	set1 L2CAP_CHANNEL_STATE_RCV_CFG_REQ,pdata
+	set1 L2CAP_CHANNEL_STATE_SND_CFG_RES,pdata
+	store 1,mem_rfcomm_state
+	fetch 2,mem_RFCOMM_remote_CID
+	branch mcfgrq_done
+ml2cap_proc_signal_config_req_hid_ctrl:
+	fetch 1,mem_hid_control_state
+	set1 L2CAP_CHANNEL_STATE_RCV_CFG_REQ,pdata
+	set1 L2CAP_CHANNEL_STATE_SND_CFG_RES,pdata
+	store 1,mem_hid_control_state
+	fetch 2,mem_hid_ctrl_remote_cid
+	branch mcfgrq_done
+ml2cap_proc_signal_config_req_hid_int:
+	fetch 1,mem_hid_interrupt_state
+	set1 L2CAP_CHANNEL_STATE_RCV_CFG_REQ,pdata
+	set1 L2CAP_CHANNEL_STATE_SND_CFG_RES,pdata
+	store 1,mem_hid_interrupt_state
+	fetch 2,mem_hid_int_remote_cid
+	//branch mcfgrq_done
+
+mcfgrq_done:
+	copy pdata,timeup
+	call load_cont_pointers
+/*******for Nokia**************/
+	copy timeup,pdata
+	/*setarg 0x0040*/
+	istore 2,contw
+	force 0x0000,pdata
+	istore 2,contw
+	force 0x0000,pdata
+	istore 2,contw
+	force 10,pdata
+	iadd regb,regb
+	increase -6,rega
+mloop1:
+	branch mcrqdone,zero
+	ifetch 1,contr
+	istore 1,contw
+	increase 1,regb
+	increase -1,rega
+	branch mloop1
+mcrqdone:
+	rtn
+ml2cap_proc_signal_disconn_req:
+	ifetch 1,contr
+	copy pdata,queue
+	ifetch 2,contr
+	copy pdata,rega
+	copy regc,pdata
+	isub rega,regc
+
+	ifetch 2,contr
+	copy pdata,rega
+	ifetch 2,contr
+	copy pdata,timeup
+	call save_cont_pointers
+	bpatchx patch20_4,mem_patch20
+	setarg L2CAP_SDP_channel
+	copy rega,temp
+	isub temp,null
+	branch ml2cap_proc_signal_disconn_sdp,zero
+	setarg L2CAP_HID_Control_channel
+	copy rega,temp
+	isub temp,null
+	branch ml2cap_proc_signal_disconn_hid_ctrl,zero
+	setarg L2CAP_HID_Interrupt_channel
+	copy rega,temp
+	isub temp,null
+	branch ml2cap_proc_signal_disconn_hid_int,zero
+	branch mclsrfc
+ml2cap_proc_signal_disconn_sdp:
+	setarg 0x0000
+	store 2,mem_sdp_tx_pkt_length
+	store 2,mem_sdp_remote_cid
+	store 1,mem_sdp_state
+	branch mclssdp
+ml2cap_proc_signal_disconn_hid_ctrl:
+	call l2cap_reset_hid_ctrl_state
+	branch mclssdp
+ml2cap_proc_signal_disconn_hid_int:
+	call l2cap_reset_hid_int_state
+	//call HID_mem_lock
+	//fetch 1, mem_hid_cb1
+	//set1 HID_CB_APP_HID_DISCONNECTED,pdata
+	//store 1, mem_hid_cb1
+	//call HID_mem_unlock
+	branch mclssdp
+mclsrfc:
+	setarg 0x0000
+	store 2,mem_RFCOMM_Tx_pkt_length
+mclssdp:
+	call load_cont_pointers
+	setarg signal_disconnect_rsp
+	istore 1,contw
+	copy queue,pdata
+	istore 1,contw
+	setarg 0x0004
+	istore 2,contw
+	copy rega,pdata
+	istore 2,contw
+	copy timeup,pdata
+	istore 2,contw
+	force 8,pdata
+	iadd regb,regb
+	rtn
+
+ml2cap_proc_signal_disconn_rsp:
+	ifetch 1,contr
+	copy pdata,queue
+	ifetch 2,contr
+	copy pdata,rega
+	ifetch 2,contr
+	copy pdata,timeup
+	ifetch 2,contr
+	copy pdata,temp
+	call save_cont_pointers
+	bpatchx patch20_5,mem_patch20
+	fetch 1,mem_ML2CAP_comm_id
+	icompare 0xff,queue
+	nbranch mdisdone,true
+	setarg L2CAP_SDP_channel
+	isub temp,null
+	branch ml2cap_proc_signal_disconn_rsp_sdp,zero
+	setarg L2CAP_RFCOMM_channel
+	isub temp,null
+	branch ml2cap_proc_signal_disconn_rsp_rfcomm,zero
+	branch mdisdone
+ml2cap_proc_signal_disconn_rsp_sdp:
+	jam 0,mem_sdp_remote_cid
+	jam 0,mem_sdp_state
+	branch mdisdone
+ml2cap_proc_signal_disconn_rsp_rfcomm:
+	//
+	//
+mdisdone:
+	call load_cont_pointers
+	copy regc,pdata
+	isub rega,regc
+	rtn
+
+ml2cap_proc_send_reject:
+	setarg signal_cmd_reject
+	istore 1,contw
+	ifetch 1,contr
+	istore 1,contw
+	setarg 0x0002
+	istore 2,contw
+	setarg 0x0000
+	istore 2,contw
+	setarg 0x0006
+	iadd regb,regb
+	force 4,regc
+	rtn
+	
+//l2cap command id, 0 is not allowed
+l2cap_get_req_id:
+	fetch 1,mem_ML2CAP_comm_id
+	increase 1,pdata
+	bne 0,l2cap_get_req_id_ok
+	increase 1,pdata
+l2cap_get_req_id_ok:
+	store 1,mem_ML2CAP_comm_id
+	rtn
+
+
+/*********************************************************/
+//char* malloc(short len)
+//input: rega -> len
+//rtn: regb -> pbuff;return from pdata
+//val: queue -> i
+//val: timeup -> buff_cnt
+/*********************************************************/
+l2cap_malloc:
+bt_l2cap_malloc:
+	arg mem_tx_buff0,regd
+	arg mem_bt_l2cap_tx_buff_size,rege
+	call enable_user
+	branch host_l2cap_malloc
+
+ble_l2cap_malloc:
+	fetchr regd,2,mem_ble_l2cap_tx_buff0_ptr
+	fetchr rege,2,mem_ble_l2cap_tx_buff_size_ptr
+	call disable_user
+	branch host_l2cap_malloc
+
+/*
+	malloc l2cap buffer
+	input:
+	BT is enable user
+	BLE is disable user
+	rega is want malloc buffer size
+	regd is l2cap buffer start ptr
+	rege is l2cap buffer size
+	output:
+	pdata & contw is buffer ptr
+*/
+host_l2cap_malloc:
+	bpatchx patch20_6,mem_patch20
+	call l2cap_malloc_is_fifo_full
+	nbranch assert,blank//assert when fifo full
+	call l2cap_malloc_get_full_map
+	arg 8,loopcnt
+host_l2cap_malloc_loop:
+	fetcht 1,mem_used_map
+	sub loopcnt,8,queue
+	qisolate1 temp
+	branch host_l2cap_malloc_next_buffer,true//if(1 == (used_map & (1 << i)))goto next;
+	call host_l2cap_malloc_check_buffer_enough
+	nbranch host_l2cap_malloc_next_buffer,positive//if(buff_cnt <= 0)goto next;
+	call host_l2cap_malloc_into_fifo
+	branch host_l2cap_malloc_succ//return (pbuff);
+host_l2cap_malloc_next_buffer:
+	copy rege,pdata
+	iadd regd,regd		//pbuff += BUFF_SIZE;//point to next buff
+	loop host_l2cap_malloc_loop
+	branch assert	//return NULL
+host_l2cap_malloc_succ:
+	copy regd,pdata
+	copy regd,contw
+	rtn//return pointer via pdata
+
+/*********************************************************/
+//char is_size_enough(char buff_index, short len)
+//input: rega -> len
+//input: loopcnt -> 8-buff_index
+//rtn: positive is diable mean no buffer
+//positive is enable mean get buffer
+/*********************************************************/
+host_l2cap_malloc_check_buffer_enough:
+	bpatchx patch20_7,mem_patch20
+	sub loopcnt,8,queue
+	arg 0,temp
+	arg 0,timeup
+host_l2cap_malloc_check_buffer_enough_loop:
+	copy queue,pdata
+	beq 8,host_l2cap_malloc_check_buffer_enough_end
+	fetch 1,mem_used_map
+	qisolate1 pdata		//the buffer is used
+	branch host_l2cap_malloc_check_buffer_enough_end,true
+	qset1 timeup
+	copy rege,pdata
+	iadd temp,temp
+	increase 1,queue
+	copy rega,pdata
+	isub temp,null
+	branch host_l2cap_malloc_check_buffer_enough_end,zero//(max_size_fom_buff_index ==  len)
+	branch host_l2cap_malloc_check_buffer_enough_loop,positive//(max_size_fom_buff_index <  len)
+host_l2cap_malloc_check_buffer_enough_end:
+	copy temp,pdata
+	isub rega,null
+	nrtn zero
+	qset1 timeup
+	rtn
+
+/*********************************************************/
+//void buff_into_fifo(char buff_index, char buff_cnt, short len)
+//input: rega -> len
+//input: regc -> buff_index
+//input: timeup -> buff_cnt
+//val:temp ->   (fifo->map)
+/*********************************************************/
+host_l2cap_malloc_into_fifo:
+	bpatchx patch21_0,mem_patch21
+	call l2cap_malloc_is_fifo_full
+	nbranch assert,blank //fifo full
+	call l2cap_malloc_is_fifo_empty
+	branch host_l2cap_malloc_into_fifo_no_push,blank//fifo empty, no need to push
+	fetch 9,mem_tx_fifo1
+	store 9,mem_tx_fifo0
+	setarg 0
+	istore 3,contw//mem_tx_fifo3
+host_l2cap_malloc_into_fifo_no_push:
+	storer timeup,1,mem_tx_fifo3_map
+	storer regd,2,mem_tx_fifo3_ptr
+	rtn
+
+
+/*********************************************************/
+//void* l2cap_malloc_fifo_out(void)
+//output:len -> temp
+//output:ptr ->pdata
+//only get ptr,not free
+/*********************************************************/
+l2cap_malloc_fifo_out:
+	bpatchx patch21_1,mem_patch21
+	call l2cap_malloc_fifo_get_first_ptr
+	increase 1,contr
+	ifetch 2,contr //ptr ->pdata
+	rtn
+
+
+/*********************************************************/
+//void free_first_buff_in_fifo(void)
+//only free the first one
+/*********************************************************/
+l2cap_malloc_free:
+	bpatchx patch21_2,mem_patch21
+	call l2cap_malloc_fifo_get_first_ptr
+	copy contr,contw
+	copy contr,temp
+	setarg 0
+	istore 3,contw
+	rtn
+
+
+/*********************************************************/
+//void l2cap_malloc_discard(void)
+//discard the latest malloc
+/*********************************************************/
+l2cap_malloc_discard:
+	bpatchx patch21_3,mem_patch21
+	call l2cap_malloc_is_fifo_empty
+	branch assert,blank
+	fetch 3,mem_tx_fifo2
+	store 3,mem_tx_fifo3
+	fetch 3,mem_tx_fifo1
+	store 3,mem_tx_fifo2
+	fetch 3,mem_tx_fifo0
+	store 3,mem_tx_fifo1
+	rtn
+
+
+/*********************************************************/
+//bool fifo_is_full(void)
+//blank == 1: not full
+//blank == 0: full
+/*********************************************************/
+l2cap_malloc_is_fifo_full:
+	bpatchx patch21_4,mem_patch21
+	fetch 3,mem_tx_fifo0
+	rtn
+
+
+/*********************************************************/
+//bool fifo_nearly_full(void)
+//blank == 1: nearly full
+//blank == 0: not nearly full
+/*********************************************************/
+l2cap_malloc_is_fifo_nearly_full:
+	bpatchx patch21_5,mem_patch21
+	fetch 3,mem_tx_fifo1
+	rtn
+
+
+/*********************************************************/
+//bool fifo_is_empty(void)
+//blank == 1: empty
+//blank == 0: not empty
+/*********************************************************/
+l2cap_malloc_is_fifo_empty:
+	bpatchx patch21_6,mem_patch21
+	fetch 3,mem_tx_fifo3
+	rtn
+
+
+/*********************************************************/
+//char* l2cap_malloc_fifo_get_first_ptr(void)
+//output:contr  -->ptr
+/*********************************************************/	
+l2cap_malloc_fifo_get_first_ptr:
+	call l2cap_malloc_is_fifo_empty
+	branch l2cap_malloc_fifo_get_first_ptr_empty,blank // fifo is empty
+	arg mem_tx_fifo0,contr
+l2cap_malloc_free_loop:
+	ifetch 3,contr
+	branch l2cap_malloc_free_loop,blank
+l2cap_malloc_fifo_get_first_ptr_empty:
+	increase -3,contr
+	rtn
+
+
+/*********************************************************/
+//char* l2cap_malloc_get_full_map(void)
+//output:mem_used_map  -->full_map
+//add all maps into one
+/*********************************************************/	
+l2cap_malloc_get_full_map:
+	bpatchx patch21_7,mem_patch21
+	arg 4,loopcnt
+	arg mem_tx_fifo0_map,contr
+	arg 0,temp
+l2cap_malloc_get_full_map_loop:	
+	ifetch 3,contr
+	and pdata,0xff,pdata
+	ior temp,temp
+	loop l2cap_malloc_get_full_map_loop
+	storet 1,mem_used_map
+	rtn
+
+
+l2cap_malloc_signal_channel:
+	bpatchx patch22_0,mem_patch22
+	arg L2CAP_SIGNAL_MALLOC_SIZE,rega
+	call l2cap_malloc
+	store 2,mem_l2cap_signal_tx_buff_ptr
+	increase 4,pdata
+	store 2,mem_l2cap_signal_tx_payload_ptr
+	setarg 0
+	store 2,mem_l2cap_signal_tx_length
+	rtn
+
+l2cap_get_signal_tx_buff:
+	fetch 2,mem_l2cap_signal_tx_buff_ptr
+	branch l2cap_util_pdata_to_contw
+
+l2cap_get_signal_tx_payload:
+	fetch 2,mem_l2cap_signal_tx_payload_ptr
+	branch l2cap_util_pdata_to_contw
+
+
+l2cap_malloc_sdp_channel:
+	bpatchx patch22_1,mem_patch22
+	arg SDP_MALLOC_SIZE,rega
+	call l2cap_malloc
+	store 2,mem_sdp_tx_buff_ptr
+	increase 4,pdata
+	store 2,mem_sdp_tx_payload_ptr
+	setarg 0
+	store 2,mem_sdp_tx_pkt_length
+	rtn
+
+l2cap_get_sdp_tx_buff:
+	fetch 2,mem_sdp_tx_buff_ptr
+	branch l2cap_util_pdata_to_contw
+
+l2cap_get_sdp_tx_payload:
+	fetch 2,mem_sdp_tx_payload_ptr
+	branch l2cap_util_pdata_to_contw
+
+
+l2cap_malloc_rfcomm_channel:
+	bpatchx patch22_2,mem_patch22
+	call push_stack
+	jam RFCOMM_MALLOC_FAIL,mem_rfcomm_malloc_fail_flag
+	call l2cap_malloc_is_fifo_full
+	nrtn blank
+	arg RFCOMM_MALLOC_SIZE,rega
+	call l2cap_malloc
+	store 2,mem_rfcomm_tx_buff_ptr
+	increase 4,pdata
+	store 2,mem_rfcomm_tx_payload_ptr
+	setarg 0
+	store 2,mem_rfcomm_tx_pkt_length
+	jam RFCOMM_MALLOC_SUCCEED,mem_rfcomm_malloc_fail_flag
+	branch pop_stack
+
+l2cap_get_rfcomm_tx_buff:
+	fetch 2,mem_rfcomm_tx_buff_ptr
+	branch l2cap_util_pdata_to_contw
+	
+l2cap_util_pdata_to_contw:
+	branch assert,blank
+	copy pdata,contw
+	rtn
+	
+
+l2cap_lpm_save_calc_len:
+	bpatchx patch22_3,mem_patch22
+	arg 0,regb
+	arg mem_tx_fifo0_map,rega
+	increase -2,rega
+l2cap_lpm_save_calc_len_loop:
+	increase 2,rega
+	setarg mem_tx_fifo_end
+	isub rega,null
+	branch l2cap_lpm_save_calc_len_end,zero //end of 2lcap tx fifo
+	ifetch 1,rega
+	increase 1,rega
+	branch l2cap_lpm_save_calc_len_loop,blank
+	ifetcht 2,rega
+	ifetch 2,temp
+	iadd regb,regb
+	increase 4,regb //l2cap header len
+	branch l2cap_lpm_save_calc_len_loop
+l2cap_lpm_save_calc_len_end:
+	copy regb,pdata
+	rtn
+
+
+l2cap_lpm_get_wake_lock:
+	arg wake_lock_l2cap_tx,queue
+	branch lpm_get_wake_lock
+
+l2cap_lpm_put_wake_lock:
+	arg wake_lock_l2cap_tx,queue
+	branch lpm_put_wake_lock
+	
+l2cap_lpm_save_txbuf:
+	bpatchx patch22_4,mem_patch22
+	call l2cap_malloc_get_full_map
+	fetch 1,mem_used_map
+	rtn blank
+	call l2cap_lpm_save_calc_len
+	arg l2cap_lpm_txbuf_len,temp
+	isub temp,null
+	branch l2cap_lpm_get_wake_lock,positive //no enougth space to save l2cap tx data
+	call l2cap_lpm_put_wake_lock
+	arg mem_l2cap_lpm_txbuf,contw
+	arg mem_tx_fifo0,rega
+l2cap_lpm_save_txbuf_loop:
+	setarg mem_tx_fifo_end
+	isub rega,null
+	rtn zero //end of 2lcap tx fifo
+	ifetch 1,rega  //mem_tx_fifoX_map
+	increase 1,rega
+	nbranch l2cap_lpm_save_txbuf_nempty,blank
+	istore 2,contw // length = 0
+	increase 2,rega
+	branch l2cap_lpm_save_txbuf_loop
+l2cap_lpm_save_txbuf_nempty:
+	ifetch 2,rega //ptr
+	increase 2,rega
+	copy pdata,contr
+	ifetch 2,contr  //l2cap len
+	istore 2,contw
+	copy pdata,loopcnt
+	increase 2,loopcnt //add CID len
+	call memcpy
+	branch l2cap_lpm_save_txbuf_loop
+	
+l2cap_lpm_load_txbuf:
+	bpatchx patch22_5,mem_patch22
+	call l2cap_malloc_get_full_map
+	fetch 1,mem_used_map
+	rtn blank
+	arg mem_tx_fifo0_ptr,rega
+	increase -3,rega //mem_tx_fifo0_ptr -3
+	arg mem_l2cap_lpm_txbuf,contr
+l2cap_lpm_load_txbuf_loop:
+	increase 3,rega //mem_tx_fifoX_ptr
+	setarg mem_tx_fifo_end+1
+	isub rega,null
+	rtn zero //end of 2lcap tx fifo
+	ifetch 2,contr
+	branch l2cap_lpm_load_txbuf_loop,blank
+	increase 4,pdata //l2cap header len
+	copy pdata,loopcnt
+	copy contr,regb
+	ifetch 2,rega //ptr
+	copy pdata,contw
+	copy regb,contr
+	increase -2,contr
+	call memcpy
+	branch l2cap_lpm_load_txbuf_loop
+	
+
+
+	
Index: program/lmp.prog
===================================================================
--- /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/program/lmp.prog	(nonexistent)
+++ /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/program/lmp.prog	(working copy)
@@ -0,0 +1,2698 @@
+	
+/******************************************/
+/*************   LMP Parse   **************/
+/******************************************/
+init_lmp:
+	rtn wake
+init_lmp_work:
+	bpatchx patch22_6,mem_patch22
+	setarg 0
+	store 1,mem_lmp_to_send
+	store 1,mem_conn_sm
+	store 1,mem_lmo_opcode1
+	store 1,mem_lmo_opcode2
+	store 1,mem_esco_addr
+	store 1,mem_connection_options
+	store 1,mem_pairing_auth
+	jam SWITCH_FLAG_INIT,mem_switch_flag
+	jam 0,mem_switch_fail_master_count
+	jam NULL_ENCRYP,mem_wait_encryption
+init_lmp_reinit:	
+	jam 0,mem_pairing_auth
+	jam 0,mem_sp_localsm
+	jam 0,mem_lmp_conn_state
+	//fall through
+parse_rx_done:
+	rtn
+
+parse_lmp:
+	bpatchx patch22_7,mem_patch22
+	call setlocalsm_master,master	//use this flag in hci
+	ncall setlocalsm_slave,master
+	call lmo_fifo_check
+	nrtn blank
+	fetch 1,mem_state_map
+	rtnbit0 smap_rxlmp
+	set0 smap_rxlmp,pdata
+	set0 mark_rxbuf_inuse,mark
+	store 1,mem_state_map
+	fetch 1,mem_rxbuf
+	fetcht 1,mem_state_map
+	isolate1 smap_lmptidinit,pdata
+	setflag true,smap_lmptid,temp
+	storet 1,mem_state_map
+	and_into 0x2,temp //smap_lmptid only
+	storet 1,mem_lmo_tid2
+	fetcht 1,mem_state_map
+	rshift pdata,pdata			/* align lmp_opcode */
+  	store 1,mem_lmi_opcode2
+	bpatchx patch23_0,mem_patch23
+  	fetch 1,mem_lmi_opcode2
+  	beq LMP_ESCAPE,parse_lmp_escape//multi
+  	beq LMP_ACCEPTED,parse_lmp_accepted//multi
+	beq LMP_NOT_ACCEPTED,parse_lmp_not_accepted//multi
+  	beq LMP_SET_AFH, parse_lmp_set_afh
+  	beq LMP_CLKOFFSET_REQ, parse_lmp_clkoffset_req
+ 	beq LMP_ENCRYPTION_MODE_REQ, parse_lmp_encryption_mode_req
+ 	beq LMP_ENCRYPTION_KEY_SIZE_REQ,parse_lmp_crypt_key
+	beq LMP_AUTO_RATE,parse_lmp_auto_rate
+	beq LMP_TEST_CONTROL,parse_lmp_test_control//multi
+	beq LMP_TEST_ACTIVATE,parse_lmp_test_activate
+	beq LMP_SETUP_COMPLETE,parse_lmp_setup_complete
+	beq LMP_SUPERVISION_TIMEOUT,parse_lmp_supervision_timeout
+	beq LMP_FEATURES_REQ,parse_lmp_features_req
+	beq LMP_HOST_CONNECTION_REQ,parse_lmp_conn_req
+	beq LMP_VERSION_REQ,parse_lmp_version_req
+	beq LMP_VERSION_RES,parse_lmp_version_res
+	beq LMP_DETACH,parse_lmp_detach
+	beq LMP_MAX_SLOT,parse_lmp_max_slot
+	beq LMP_MAX_SLOT_REQ,parse_lmp_max_slot_req
+	beq LMP_NAME_REQ,parse_lmp_name_req
+	beq LMP_NAME_RES,parse_lmp_name_res
+	beq LMP_FEATURES_RES,parse_lmp_features_res
+	beq LMP_COMB_KEY,parse_lmp_comb_key
+	beq LMP_AU_RAND, parse_lmp_au_rand
+	beq LMP_IN_RAND,parse_lmp_in_rand
+	beq LMP_SRES,parse_lmp_sres
+	beq LMP_INCR_POWER_REQ,parse_lmp_incr_power
+	beq LMP_DECR_POWER_REQ,parse_lmp_decr_power
+	beq LMP_MAX_POWER, parse_lmp_max_power
+	beq LMP_MIN_POWER, parse_lmp_min_power
+	beq LMP_PAGE_MODE_REQ, parse_lmp_page_mode_req
+	beq LMP_PAGE_SCAN_MODE_REQ, parse_lmp_page_scan_mode_req
+	beq LMP_PREFERRED_RATE, parse_lmp_preferred_rate
+	beq LMP_SLOT_OFFSET, parse_lmp_slot_offset
+	beq LMP_SNIFF_REQ, parse_lmp_sniff_req
+	beq LMP_START_ENCRYPTION_REQ, parse_lmp_start_encryption_req
+	beq LMP_STOP_ENCRYPTION_REQ, parse_lmp_stop_encryption_req
+	beq LMP_SWITCH_REQ, parse_lmp_switch_req
+	beq LMP_TEMP_RAND, parse_lmp_temp_rand
+	beq LMP_TEMP_KEY, parse_lmp_temp_key
+	beq LMP_TIMING_ACCURACY_REQ, parse_lmp_timing_accuracy_req
+	beq LMP_TIMING_ACCURACY_RES, parse_lmp_timing_accuracy_res
+	beq LMP_UNIT_KEY, parse_lmp_unit_key
+	beq LMP_UNSNIFF_REQ, parse_lmp_unsniff_req
+	beq LMP_USE_SEMI_PERMANENT_KEY, parse_lmp_use_semi_permanend_key
+	beq LMP_ENCAPSULATED_HEADER,parse_lmp_encapsulated_header
+	beq LMP_ENCAPSULATED_PAYLOAD,parse_lmp_encapsulated_payload
+	beq LMP_SIMPLE_PAIRING_CONFIRM,parse_simple_pairing_confirm
+	beq LMP_SIMPLE_PAIRING_NUMBER,parse_lmp_simple_pairing_number
+	beq LMP_DHKEY_CHECK,parse_dhkey_check
+	beq LMP_CLKOFFSET_RES, parse_lmp_clkoffset_res
+	beq LMP_ENC_KEY_SIZE_MASK_REQ,parse_enc_key_size_mask_req
+	beq LMP_QUALITY_OF_SERVICE_REQ,parse_quality_of_server_req
+	beq LMP_QUALITY_OF_SERVICE,parse_quality_of_server
+/* lmp is not recognized, check to see if we respond to all messages */ 
+/* rejecting the unrecognized message with PDU not recognized */
+reject_unknown_packet:
+	jam UNKNOWN_LMP_PDU,mem_lmo_reason2
+reject_lmp_packet:
+	jam LMP_NOT_ACCEPTED,mem_lmo_opcode2
+	rtn
+
+parse_quality_of_server_req:
+	branch accept_lmp_msg
+
+parse_quality_of_server:
+	rtn
+
+parse_lmp_clkoffset_req:
+	jam LMP_CLKOFFSET_RES,mem_lmo_opcode2
+	rtn	
+
+parse_enc_key_size_mask_req:
+	jam LMP_ENC_KEY_SIZE_MASK_RES,mem_lmo_opcode2
+	rtn
+	
+parse_lmp_set_afh:
+	fetch 4,mem_rxbuf+1
+	lshift pdata,pdata
+	store 4,mem_afh_instant
+	fetch 1,mem_rxbuf+5
+	store 1,mem_afh_new_mod
+	fetch 5,mem_rxbuf+6
+	store 5,mem_afh_map_new
+	fetch 5,mem_rxbuf+11
+	istore 5,contw
+	fetch 1,mem_mode
+	set1 afh_change,pdata
+	store 1,mem_mode
+	rtn
+parse_lmp_escape:
+	bpatchx patch23_1,mem_patch23
+	fetch 1,mem_rxbuf+1
+	set1 7,pdata
+	store 1,mem_lmi_opcode2
+	beq LMP_EXT_ACCEPTED,parse_lmpext_accepted
+	beq LMP_NOT_ACCEPTED_EXT,parse_lmpext_not_accepted
+	beq LMP_SNIFF_SUBRATING_REQ, parse_lmp_sniff_subrating_req
+	beq LMP_SNIFF_SUBRATING_RES, parse_lmp_sniff_subrating_res
+	beq LMP_PACKET_TYPE_TABLE_REQ,parse_lmpext_packet_type_table_req
+	beq LMP_EXT_FEATURES_REQ,parse_lmpext_features_req
+	beq LMP_EXT_FEATURES_RES,parse_lmpext_features_res
+	beq LMP_EXT_CHN_CLASSIFICATION_REQ,parse_lmpext_chn_classification_req
+	beq LMP_PAUSE_ENCRYPTION_REQ,parse_lmpext_pause_encrypt
+	beq LMP_RESUME_ENCRYPTION_REQ,parse_lmpext_resume_encrypt
+	beq LMP_IO_CAP_REQ,parse_lmpext_iocap_req
+	beq LMP_IO_CAP_RES,parse_lmpext_iocap_res
+	beq LMP_PING_REQ,parse_lmpext_ping_req
+	rtneq LMP_EXT_FEATURES_RES
+
+reject_unknown_ext_packet:
+	jam LMP_NOT_ACCEPTED_EXT,mem_lmo_opcode2
+	jam UNKNOWN_LMP_PDU,mem_lmo_reason2
+	rtn
+
+parse_lmpext_ping_req:
+	jam LMP_PING_RES,mem_lmo_opcode2
+	rtn
+	
+parse_lmpext_chn_classification_req:
+	jam LMP_NOT_ACCEPTED_EXT,mem_lmo_opcode2
+	jam NOT_SUPPORT_CHN_CLASSIFICATION,mem_lmo_reason2
+	rtn
+	
+parse_lmpext_iocap_req:
+	call iocap_lmpext_load
+	jam LMP_IO_CAP_RES,mem_lmo_opcode2
+	rtn
+
+parse_lmpext_iocap_res:
+	call iocap_lmpext_load
+	branch iocap_lmpext_common
+	
+iocap_lmpext_load:
+	arg      mem_sp_iocap_remote,contw
+	fetch 3, mem_rxbuf+2
+	istore    3,contw
+	rtn
+	
+iocap_lmpext_common:
+ifdef SIMPLE_PAIRING
+	branch master_set_mem_master_sp_flag,true//is un very ok to use master flag,but we have to add many codes if wo don't
+endif
+	rtn
+parse_lmpext_accepted:
+	fetch 1,mem_rxbuf+3
+	set1 7,pdata
+	store 1,mem_lmi_accepted_opcode
+	beq LMP_PACKET_TYPE_TABLE_REQ,parse_lmpext_accepted_ptt
+	rtn
+
+	
+parse_lmpext_not_accepted:
+	fetch 1,mem_rxbuf+3
+	set1 7,pdata
+	store 1,mem_lmi_accepted_opcode
+	beq LMP_PACKET_TYPE_TABLE_REQ,parse_lmpext_not_accepted_ptt
+	rtn
+
+parse_lmpext_accepted_ptt:
+	fetch 1,mem_ptt
+	fetcht 1,mem_state_map
+	nsetflag blank,smap_edr,temp
+	storet 1,mem_state_map
+parse_lmpext_not_accepted_ptt:
+	fetch 1,mem_state
+	rtnbit0 state_init_seq
+	set0 state_init_seq,pdata
+	store 1,mem_state
+	jam LMP_SETUP_COMPLETE,mem_lmo_opcode2
+	rtn
+
+parse_lmpext_pause_encrypt:
+	nbranch parse_lmpext_pause_encrypt_slave, master
+	jam LMP_STOP_ENCRYPTION_REQ,mem_lmo_opcode2
+	branch tid_reply
+
+parse_lmpext_pause_encrypt_slave:	
+	jam LMP_PAUSE_ENCRYPTION_REQ, mem_lmo_opcode2
+	rtn
+
+parse_lmpext_resume_encrypt:
+//trans file to pc may cause pause/resume encrypt
+//if ms is conn_sm_wait_end the controllor won't send ack after recieved start_encypt_accept
+	call tid_reply
+	branch lmp_start_encryption
+
+parse_lmpext_features_req:
+	ifetch 1,contr
+	store 1,mem_ext_features_page
+	jam LMP_EXT_FEATURES_RES,mem_lmo_opcode2
+	rtn
+
+parse_lmpext_features_res:
+	fetcht 1,mem_rxbuf+4
+	and temp,0x1,temp
+	storet 1,mem_remote_sppcap
+	fetch 1,mem_hci_cmd
+	bne hci_cmd_wait_remote_ext_feature,parse_lmpext_features_res_not_hci
+	jam 0,mem_hci_cmd
+parse_lmpext_features_res_not_hci:
+	fetch 1,mem_conn_sm
+	rtnne CONN_SM_WAIT_FEATURES_EXT
+	jam CONN_SM_SEND_CONN_REQ,mem_conn_sm
+	branch process_conn_sm
+
+parse_lmp_accepted:
+	bpatchx patch23_2,mem_patch23
+	fetch 1,mem_rxbuf+1
+	store 1,mem_lmi_accepted_opcode
+	beq LMP_HOST_CONNECTION_REQ,parse_lmp_accepted_hostconn//ok
+	beq LMP_IN_RAND,parse_lmp_accepted_inrand//ok
+	beq LMP_ENCRYPTION_MODE_REQ,parse_lmp_accepted_enc_mode//ok
+	beq LMP_ENCRYPTION_KEY_SIZE_REQ,parse_lmp_accepted_enc_keysize//ok
+	beq LMP_START_ENCRYPTION_REQ,parse_lmp_accepted_start_enc//ok
+	beq LMP_STOP_ENCRYPTION_REQ,parse_lmp_accepted_stop_enc//ok
+	beq LMP_UNSNIFF_REQ,parse_lmp_accepted_unsniff_req//ok
+	beq LMP_SNIFF_REQ,parse_lmp_accepted_sniff_req//ok
+	beq LMP_SWITCH_REQ,parse_lmp_accepted_switch
+	// simple pairing 
+	beq LMP_ENCAPSULATED_HEADER,parse_lmp_accepted_encapsulated_header//ok
+	beq LMP_ENCAPSULATED_PAYLOAD,parse_lmp_accepted_encapsulated_payload//ok
+	beq LMP_SIMPLE_PAIRING_NUMBER,parse_lmp_accepted_simple_pairing_number//ok
+	beq LMP_DHKEY_CHECK,parse_lmp_accepted_dhkey_check//ok
+	rtn
+	
+parse_lmp_not_accepted:
+	bpatchx patch23_3,mem_patch23
+	fetch 1,mem_rxbuf+1
+	store 1,mem_lmi_accepted_opcode
+	beq LMP_NAME_REQ,parse_lmp_not_accepted_name_req//ok
+	beq LMP_HOST_CONNECTION_REQ,parse_lmp_not_accepted_hostconn//ok
+	beq LMP_AU_RAND,parse_lmp_not_accepted_aurand//ok
+	beq LMP_IN_RAND,parse_lmp_not_accepted_inrand//ok
+	beq LMP_SWITCH_REQ,parse_lmp_not_accepted_switch//ok
+	/* simple pairing support */
+	beq  LMP_SIMPLE_PAIRING_NUMBER,parse_lmp_not_accepted_simple_pairing_number//ok
+	beq  LMP_DHKEY_CHECK,parse_lmp_not_accepted_dhkey_check//ok
+	beq LMP_UNSNIFF_REQ,parse_lmp_not_accepted_unsniff_req
+	beq LMP_SNIFF_REQ,parse_lmp_not_acdcept_sniff_req
+	rtn
+
+parse_lmp_accepted_switch:
+	jam BT_EVT_SWITCH_ACCEPT,mem_fifo_temp
+	call ui_ipc_send_event
+	branch role_switch_prepare0
+	
+parse_lmp_not_accepted_switch:
+	jam BT_EVT_SWITCH_NOT_ACCEPT,mem_fifo_temp
+	call ui_ipc_send_event
+	jam SWITCH_FLAG_NOT_ACCEPT,mem_switch_flag
+	setarg TIMER_SWITCH_WAITE
+	arg switch_wait_timer,queue
+	branch timer_init
+
+
+parse_lmp_accepted_hostconn:
+	//fetch 1,mem_state
+	//rtnbit0 state_init_seq
+	fetch 1,mem_lmp_conn_state
+	set1 RECEIVED_CONN_REQ,pdata
+	store 1,mem_lmp_conn_state
+	jam BT_EVT_BB_CONNECTED,mem_fifo_temp
+	call ui_ipc_send_event
+	jam LMP_PACKET_TYPE_TABLE_REQ,mem_lmo_opcode2
+	//nbranch parse_lmp_accepted_hostconn_ctn,master
+parse_lmp_accepted_hostconn_ctn:
+	/* checking to see if we requested host connection */
+	fetch 1,mem_conn_sm
+	bne CONN_SM_WAIT_CONN_ACCEPT, parse_rx_done
+	//branch parse_lmp_accepted_hostconn_master,master
+	/* continuing on with host connection state machine */
+	jam CONN_SM_AUTH_PAIR,mem_conn_sm
+	rtn
+	//branch host_create_conn_auth_pair
+
+	/* we need to move fast and send au_rand...jumping to next part of state machine for conn */
+//parse_lmp_accepted_hostconn_master:
+	//jam CONN_SM_AUTH_PAIR ,mem_conn_sm
+//	rtn
+
+parse_lmp_not_accepted_hostconn:
+	jam ACL_CONNECTION_ALREADY_EXISTS,mem_disconn_reason_send
+	jam LMP_DETACH,mem_lmo_opcode2
+	/* clearing connection state machine */
+	jam CONN_SM_STANDBY,mem_conn_sm
+	/* sending error message to host */
+	branch parse_rx_done,true
+	rtn
+
+parse_lmp_accepted_inrand:
+	fetch 1,mem_link_key_exists
+	nrtn blank
+	call clear_linkkey
+	call  lmp_generate_key
+	rtn master
+	set1 mark_slave_in_rand_accepted,mark
+	rtn
+
+parse_lmp_accepted_enc_mode:
+	nrtn master
+	jam LMP_ENCRYPTION_KEY_SIZE_REQ,mem_lmo_opcode2
+	fetch 1,mem_state_map
+	rtnbit0 smap_encryption
+	jam LMP_STOP_ENCRYPTION_REQ,mem_lmo_opcode2
+	rtn
+
+parse_lmp_accepted_enc_keysize:
+	branch lmp_start_encryption
+	
+parse_lmp_accepted_start_enc:
+	call send_create_conn_start_l2cap_timer_sm
+	fetch 1,mem_state
+	rtnbit1 state_conn_comp
+	jam LMP_SETUP_COMPLETE,mem_lmo_opcode2
+	fetch 1,mem_conn_sm
+	rtnne CONN_SM_ENCRYPT_WAIT
+	jam CONN_SM_ENCRYPT_WAIT_CLEAR,mem_conn_sm
+	rtn
+	
+parse_lmp_accepted_stop_enc:
+	/* again this won't work with multipoint. keep track of anyone else encrypting */
+	//jam HOST_STOP_ENCRYPTION,message_queue_B0
+	//jam 1,message_queue_B1
+	//jam HOST_RETURN_SUCCESS,message_queue_B2
+	//fetch 1,mem_lmp_state2
+	//set1 MESSAGE_QUEUE,pdata
+	//store 1,mem_lmp_state2
+	rtn
+
+parse_lmp_not_accepted_aurand:	
+parse_lmp_not_accepted_aurand_send_detach:	
+	fetch 1,mem_device_option
+	sub pdata,dvc_op_mouse,null
+	call mouse_delay_enter_hibernata,zero
+	jam LMP_DETACH,mem_lmo_opcode2
+	jam OTHER_END_TERMINATED,mem_disconn_reason_send
+	rtn
+/*in pair remote cancel the pair*/
+parse_lmp_not_accepted_inrand:
+	fetch 1,mem_rxbuf+2
+	beq KEY_MISSING,parse_lmp_inrand_key_missing
+	rtnne PAIRING_NOT_ALLOWED
+	jam PAIRING_NOT_ALLOWED,mem_disconn_reason_send
+	jam LMP_DETACH,mem_lmo_opcode2
+	rtn	
+parse_lmp_inrand_key_missing:
+	jam KEY_MISSING,mem_disconn_reason_send
+	jam LMP_DETACH,mem_lmo_opcode2
+	rtn
+	
+parse_lmp_not_accepted_name_req:
+	rtn
+	
+parse_lmp_not_accepted_simple_pairing_number:
+	jam SP_STAT_NULL,mem_sp_state
+	jam LMP_DETACH,mem_lmo_opcode2
+	branch parse_rx_done
+	
+parse_lmp_not_accepted_dhkey_check:
+	jam SP_STAT_NULL,mem_sp_state
+	jam LMP_DETACH,mem_lmo_opcode2
+	branch parse_rx_done
+parse_lmp_not_accepted_unsniff_req:
+	jam BT_EVT_UNSNIFF_NOT_ACCEPT,mem_fifo_temp
+	branch ui_ipc_send_event
+	
+parse_lmp_accepted_unsniff_req:
+	jam BT_EVT_UNSNIFF_ACCEPT,mem_fifo_temp
+	call ui_ipc_send_event
+	branch sniff_exit
+	
+parse_lmp_accepted_sniff_req:
+	jam BT_EVT_SNIFF_ACCEPT,mem_fifo_temp
+	call ui_ipc_send_event
+	setarg 0
+	store 2,mem_dsniff
+	fetch 2,mem_sniff_param_interval
+	lshift pdata,pdata
+	store 2,mem_tsniff
+	fetch 1,mem_sniff_param_attempt
+	store 1,mem_sniff_attempt
+	fetch 1,mem_sniff_param_timeout
+	store 1,mem_sniff_timeout
+	branch sniff_init
+	
+parse_lmp_not_acdcept_sniff_req:
+	jam BT_EVT_SNIFF_NOT_ACCEPT,mem_fifo_temp
+	branch ui_ipc_send_event
+	
+parse_lmp_crypt_key:
+	fetcht 1,mem_rxbuf+1
+	sub temp,6,null
+	branch lmp_reject_pdu_not_allowed,positive
+	storet 1,mem_key_size
+	branch accept_lmp_msg
+	
+parse_lmp_setup_complete:
+	fetch 1,mem_lmp_conn_state
+	set1 RECEIVED_SETUP_COMPLETE,pdata
+	store 1,mem_lmp_conn_state
+	rtnbit1 SENT_SETUP_COMPLETE
+	jam LMP_SETUP_COMPLETE,mem_lmo_opcode2
+	branch parse_rx_done
+	
+parse_lmp_max_slot:
+	//jam LMP_MAX_SLOT,mem_lmi_opcode2
+	//branch accept_lmp_msg
+	rtn
+	
+parse_lmp_max_slot_req:
+	fetch 1,mem_max_slot
+	fetcht 1,mem_rxbuf+1
+	isub temp,null
+	//jam LMP_MAX_SLOT_REQ,mem_lmi_opcode2
+	branch accept_lmp_msg,positive
+	jam LMP_NOT_ACCEPTED,mem_lmo_opcode2
+	jam UNSPECIFIED_ERROR,mem_lmo_reason2
+	jam LMP_MAX_SLOT_REQ,mem_lmi_opcode2
+	rtn
+	
+parse_lmp_detach:
+	branch prepare_disconnect
+	
+accept_lmp_msg:
+	jam LMP_ACCEPTED,mem_lmo_opcode2
+	rtn
+
+parse_lmp_incr_power:
+	jam LMP_MAX_POWER,mem_lmo_opcode2
+	rtn
+
+parse_lmp_decr_power:
+	jam LMP_MIN_POWER,mem_lmo_opcode2
+	rtn
+	
+parse_lmp_version_res:
+	fetch 1,mem_conn_sm
+	rtneq CONN_SM_WAIT_VERSION
+	/* continuing on with host connection state machine */
+	jam CONN_SM_SEND_FEATURES ,mem_conn_sm
+	/* we need to move fast and send au_rand...jumping to next part of state machine for conn */
+	rtn
+
+
+parse_lmp_auto_rate:
+	rtn	
+
+parse_lmp_in_rand:
+	fetch 1,mem_sc_only_mode
+	nbranch parse_lmp_in_rand_not_accept,blank
+	
+	call lmp_copy_rand
+	jam pincode_state_wait_pincode,mem_pincode_state
+	jam BT_EVT_PINCODE_REQ,mem_fifo_temp
+	call ui_ipc_send_event
+
+	call tid_check
+	nbranch lmp_accept_inrand,true
+	nbranch parse_lmp_inrand_res,master // ignore this because of not ssp temporary
+parse_lmp_in_rand_not_accept:
+	jam LMP_NOT_ACCEPTED,mem_lmo_opcode2
+	jam LMP_IN_RAND,mem_lmi_opcode2
+	jam TRANSACTION_COLLISION,mem_lmo_reason2
+	rtn
+	
+parse_lmp_inrand_res:
+	fetch 1,mem_op
+	set1 op_inrand_req,pdata
+	store 1,mem_op
+	rtn
+
+//store current tid
+pop_tid_follow:
+	fetcht 1,mem_state_map
+	nsetflag blank,smap_lmptid,temp
+	storet 1,mem_state_map
+	rtn
+	
+//restore current tid
+push_tid_follow:
+	fetch 1,mem_lmo_tid2
+	rshift pdata,pdata
+	and_into 1,pdata
+	rtn
+
+parse_lmp_au_rand_moudle:
+	fetch 1,mem_nv_data_number
+	rtn blank
+	fetch 1,mem_pairing_auth
+	call load_device_list,blank
+	rtn	
+
+parse_lmp_au_rand:
+	call parse_lmp_au_rand_moudle
+	call push_tid_follow
+	store 1,mem_sres_tid
+	fetch 1,mem_encapsulated_minor_type
+	beq ENCAPSULATED_MINOR_TYPE_P256,parse_lmp_au_rand_256
+	call lmp_copy_rand
+	jam LMP_SRES,mem_lmo_opcode2
+parse_lmp_au_rand_common:	
+	fetch 1,mem_link_key_exists
+	nrtn blank
+	fetch 1,mem_state
+	rtnbit1 state_combkey		/* we have comb key, but not verified */
+	jam KEY_MISSING,mem_lmo_reason2
+	branch reject_lmp_packet
+	
+parse_lmp_au_rand_256:
+	jam LMP_AU_RAND,mem_lmo_opcode2
+	arg mem_sp_random_remote,contw
+	arg mem_rxbuf+1,contr
+	call memcpy16	
+	branch parse_lmp_au_rand_common
+
+	
+parse_lmp_sres:	
+	fetch 1,mem_encapsulated_minor_type
+	beq ENCAPSULATED_MINOR_TYPE_P256,parse_lmp_sres_256
+
+	arg mem_plap,rega
+	call function_e1
+	fetcht 4,mem_input_store
+	fetch 4,mem_rxbuf+1
+	isub temp,null
+	branch authentication_ok,zero
+authentication_fail:	
+	jam LMP_DETACH,mem_lmo_opcode2
+	jam AUTHENTICATION_FAILURE_ERROR,mem_disconn_reason_send	
+	rtn
+	
+authentication_ok:
+	call copy_aco
+	call authentication_ok_common
+	fetch 1,mem_ssp_enable
+	branch  pairing_success,blank
+	rtn
+
+parse_lmp_sres_256:
+	fetch 4,mem_rxbuf+1
+	fetcht 4,mema
+	isub temp,null
+	branch authentication_ok_256,zero
+	branch authentication_fail
+	
+authentication_ok_256:
+	call authentication_ok_common
+	fetch 1,mem_secure_connections_enable
+	bbit1  SECURE_CONNECTIONS_BR_BIT,pairing_success
+	rtn
+	
+	
+authentication_ok_common:
+	call linkkey_ready///save link key
+	fetch 1,mem_op
+	isolate1 op_auth_req,pdata
+	set0 op_auth_req,pdata
+	store 1,mem_op
+	fetch 1,mem_conn_sm
+	beq CONN_SM_AUTH_WAIT,authentication_ok_conn_sm
+	beq CONN_SM_PAIRING_WAIT,authentication_ok_conn_sm
+	rtn
+authentication_ok_conn_sm:
+	fetch 1,mem_pairing_auth
+	rtnne DEFALT_PAIRING_AUTH
+	fetch 1,mem_state_map
+	rtnbit1 smap_encryption
+	branch host_create_conn_encrypt
+
+parse_lmp_comb_key:
+	arg mem_rxbuf+1,rega
+	arg mem_kinit,regb
+	arg mem_random_number,contw
+	call xor16
+	arg mem_plap,rega
+	call generate_linkkey
+	jam LMP_AU_RAND,mem_lmo_opcode2
+	fetch 1,mem_state
+	bbit0 state_combkey,lmp_generate_key
+	rtn
+	
+parse_lmp_name_res:
+	fetch 2,mem_len
+	add pdata,-3,loopcnt	//for remote name length error
+	fetcht 1,mem_rxbuf+1
+	setarg mem_tmp_buffer
+	iadd temp,contw
+	arg mem_rxbuf+3,contr
+	call memcpy
+	fetcht 1,mem_name_offset
+	fetch 1,mem_rxbuf+2
+	isub temp,pdata
+	sub pdata,14,null
+	branch parse_lmp_name_res_end,positive
+	add temp,14,pdata
+	store 1,mem_name_offset
+	jam LMP_NAME_REQ,mem_lmo_opcode2
+	rtn
+parse_lmp_name_res_end:
+	fetch 1,mem_state_map
+	set1 smap_name_res,pdata
+	store 1,mem_state_map
+	bbit1 smap_name_req,lmp_disconnect
+	rtn
+parse_lmp_name_req:
+	fetch 1,mem_rxbuf+1
+	store 1,mem_lmi_opcode2 //offset 
+	jam LMP_NAME_RES,mem_lmo_opcode2
+	rtn
+
+parse_lmp_conn_req:
+	branch accept_lmp_msg
+
+parse_lmp_timing_accuracy_req:
+	jam LMP_TIMING_ACCURACY_RES,mem_lmo_opcode2
+	rtn
+
+parse_lmp_features_req:
+	jam LMP_FEATURES_RES,mem_lmo_opcode2
+	rtn
+
+parse_lmp_version_req:
+	jam LMP_VERSION_RES,mem_lmo_opcode2
+	rtn
+
+parse_lmp_supervision_timeout:
+//	fetch 2,mem_rxbuf+1
+//	store 2,mem_supervision_to
+	rtn
+	
+
+
+parse_lmp_sniff_subrating_req:
+	fetch 2,mem_tsniff
+	iforce temp
+	fetch 1,mem_rxbuf+2
+	store 1,mem_subsniff_rate
+	imul32 temp,temp
+	fetch 2,mem_rxbuf+3
+	lshift pdata,pdata
+	store 2,mem_subsniff_tcmax
+	fetch 4,mem_rxbuf+5
+	lshift pdata,pdata
+ 	store 4,mem_subsniff_instant
+	//product pdata
+	deposit temp
+	store 2,mem_subsniff_tsniff
+	rtn
+parse_lmpext_packet_type_table_req:
+	fetcht 1,mem_ptt
+	fetch 1,mem_rxbuf+2
+	ixor temp,null
+	nbranch reject_unknown_ext_packet,zero
+	isolate1 0,pdata
+	fetch 1,mem_state_map
+	setflag true,smap_edr,pdata
+	store 1,mem_state_map
+	jam LMP_EXT_ACCEPTED,mem_lmo_opcode2
+	jam LMP_PACKET_TYPE_TABLE_REQ,mem_lmi_opcode2
+	rtn
+
+	
+parse_lmp_sniff_subrating_res:
+parse_lmp_preferred_rate:
+parse_lmp_max_power:
+parse_lmp_min_power:
+	rtn
+parse_lmp_page_mode_req:
+	//jam LMP_PAGE_MODE_REQ,mem_lmi_opcode2
+	branch accept_lmp_msg
+parse_lmp_page_scan_mode_req:
+	//this can influence connection. need accepted
+	//jam LMP_PAGE_SCAN_MODE_REQ,mem_lmi_opcode2
+	branch accept_lmp_msg
+
+
+	
+parse_lmp_slot_offset:
+	fetch 2,mem_rxbuf+1
+	store 2,mem_slot_offset
+	rtn
+
+parse_lmp_sniff_req_check_sniff_para:
+	fetch 2,mem_rxbuf+4 /* tsniff */
+	fetcht 1,mem_lpm_mult
+	imul32 temp,pdata
+	arg 0x640,temp
+	isub temp,null
+//	branch lmp_reject_pdu_not_allowed,positive
+	rtn
+	
+parse_lmp_sniff_req:
+	fetch 2,mem_rxbuf+6
+	branch lmp_reject_pdu_not_allowed,blank
+	call parse_lmp_sniff_req_check_sniff_para
+	branch lmp_reject_pdu_not_allowed,positive
+	fetch 1,mem_device_option
+	sub pdata,dvc_op_module,null
+	call module_set_lpm_mult_2,zero
+	fetch 1,mem_state
+	bbit1 state_insniff,lmp_reject_pdu_not_allowed
+	fetch 2,mem_rxbuf+2 /* dsniff */
+	lshift pdata,pdata
+	store 2,mem_dsniff	
+	fetch 2,mem_rxbuf+4 /* tsniff */
+	lshift pdata,pdata
+	store 2,mem_tsniff
+	fetch 2,mem_rxbuf+6 /* sniff attempt */
+	store 1,mem_sniff_attempt
+	iforce temp
+	fetch 2,mem_rxbuf+8 /* sniff timeout */
+	store 1,mem_sniff_timeout
+	isub temp,null
+	nbranch set_big_value_to_attempt,positive
+	store 1,mem_sniff_attempt
+set_big_value_to_attempt:	
+	//call sniff_init
+	jam LMP_ACCEPTED,mem_lmo_opcode2
+	jam LMP_SNIFF_REQ,mem_lmi_opcode2
+	rtn
+
+parse_lmp_start_encryption_req:
+	fetch 1,mem_encapsulated_minor_type
+	beq ENCAPSULATED_MINOR_TYPE_P256,parse_lmp_start_encryption_req_256
+	call accept_lmp_msg
+	call lmp_copy_rand
+	call function_e3
+	branch start_encryption
+
+parse_lmp_start_encryption_req_256:
+	call accept_lmp_msg
+//	call lmp_copy_rand
+	call start_encryption
+calc_kc:	
+	call function_h3
+	arg mem_kc,contw
+	arg mem_sp_calc_result_high,contr
+	arg 0x10,loopcnt
+	branch reverse_byte
+	
+parse_lmp_stop_encryption_req:
+	call accept_lmp_msg
+	branch stop_encryption
+	
+
+parse_lmp_switch_req:
+	fetch 4,mem_rxbuf+1
+	lshift pdata,pdata
+	//branch parse_lmp_switch_req_not_accept
+	branch parse_lmp_switch_accept,master
+	fetcht 1,mem_link_key_exists
+	nbranch parse_lmp_switch_req_clear_mark,blank
+parse_lmp_switch_req_not_accept:
+	jam LMP_SWITCH_REQ,mem_lmi_opcode2
+	branch lmp_reject_pdu_not_allowed
+	
+parse_lmp_switch_req_clear_mark:
+	jam LMP_SLOT_OFFSET,mem_lmo_opcode2
+	jam 0,mem_conn_sm
+	branch role_switch_prepare
+
+parse_lmp_switch_accept:
+	call role_switch_prepare
+	set1 mark_reconn_recieve_switch,mark
+	fetch 1,mem_connection_options
+	set0 CONNECTION_SWITCH,pdata
+	store 1,mem_connection_options
+	branch accept_lmp_msg
+
+	
+
+parse_lmp_temp_rand:
+parse_lmp_temp_key:
+parse_lmp_timing_accuracy_res:	
+parse_lmp_unit_key:	
+parse_lmp_use_semi_permanend_key:
+	rtn
+
+	
+parse_lmp_unsniff_req:
+	jam LMP_ACCEPTED,mem_lmo_opcode2
+	jam LMP_UNSNIFF_REQ,mem_lmi_opcode2
+	jam BT_EVT_REMOTE_UNSNIFF,mem_fifo_temp
+	call ui_ipc_send_event
+	branch sniff_exit
+	
+parse_lmp_encapsulated_header:
+	jam 0,mem_sp_remote_key_recv_count
+	fetch 1,mem_rxbuf+1
+	store 1,mem_encapsulated_major_type
+	bne ENCAPSULATED_MAJOR_TYPE,lmp_reject_pdu_not_allowed
+	fetcht 1,mem_rxbuf+2
+	storet 1,mem_encapsulated_minor_type
+	
+	fetch 1,mem_sc_only_mode
+	branch parse_lmp_encapsulated_header2,blank
+	sub temp,ENCAPSULATED_MINOR_TYPE_P256,null
+	nbranch authentication_fail,zero
+parse_lmp_encapsulated_header2:
+	fetch 1,mem_rxbuf+3
+	beq ENCAPSULATED_LEN_P256,parse_lmp_encapsulated_header3
+	beq ENCAPSULATED_LEN_P192,parse_lmp_encapsulated_header3
+	branch lmp_reject_pdu_not_allowed
+
+parse_lmp_encapsulated_header3:
+	store 1,mem_encapsulated_len	
+	call check_localsm
+	branch parse_lmp_encapsulated_header_master,true
+	jam SP_STAT_KEY_RECV,mem_sp_state
+parse_lmp_encapsulated_header_master:
+	jam LMP_ACCEPTED,mem_lmo_opcode2
+	jam LMP_ENCAPSULATED_HEADER,mem_lmi_opcode2
+	branch parse_rx_done
+	
+	
+parse_lmp_accepted_encapsulated_header:
+	//jam LMP_ENCAPSULATED_PAYLOAD,mem_lmi_opcode2
+	//branch   accept_lmp_msg  	
+	jam LMP_ENCAPSULATED_PAYLOAD,mem_lmo_opcode2
+      //   branch   accept_lmp_msg  	
+         rtn
+parse_lmp_accepted_simple_pairing_number:
+	fetch 1,mem_ssp_mode_flag
+	beq SSP_MODE_SSP_PIN_FLAG,parse_lmp_accepted_simple_pairing_number_ssp_pin
+	beq SSP_MODE_PASSKEY_ENTRY_FLAG,parse_lmp_accepted_simple_pairing_number_passkey
+parse_lmp_accepted_simple_pairing_number_common:
+	call check_localsm
+	rtn true
+	jam SP_STAT_CONFIRM_RECV,mem_sp_state
+	rtn
+
+parse_lmp_accepted_simple_pairing_number_ssp_pin:
+	call g_noninit_number_confirm
+	jam BT_EVT_BT_GKEY_GENERATE,mem_fifo_temp
+	call ui_ipc_send_event
+	branch parse_lmp_accepted_simple_pairing_number_common
+
+
+parse_lmp_accepted_simple_pairing_number_passkey:
+	call check_localsm
+	rtn true
+	fetch 1,mem_authentication_passkey_times
+	beq 19,authentication_passkey_end
+	increase 1,pdata
+	store 1,mem_authentication_passkey_times
+//	branch p_authentication_passkey
+
+authentication_passkey:
+	jam SP_FLAG_COMMIT,mem_sp_flag
+	jam SP_STAT_COMMIT_CALC,mem_sp_state 
+	fetch 1,mem_authentication_passkey_times
+	copy pdata,queue
+	fetch 6,mem_pin
+	qisolate1 pdata
+	setarg 0x80
+	setflag true,0,pdata
+	store 1,mem_passkey_1bit
+	rtn
+
+authentication_passkey_end:	
+	jam SP_STAT_CONFIRM_RECV,mem_sp_state
+	rtn
+
+parse_lmp_accepted_dhkey_check:
+	call parse_lmp_accepted_dhkey_check_common
+pairing_success:
+	fetch 1,mem_flag_pairing_state
+	rtn blank
+	jam FLAG_PAIRING_STATE_NOT_PAIRING,mem_flag_pairing_state
+	jam BT_EVT_BT_PAIRING_SUCCESS,mem_fifo_temp
+	branch ui_ipc_send_event
+
+
+parse_lmp_accepted_dhkey_check_common:
+	call check_localsm
+ifdef SIMPLE_PAIRING
+	ncall g_noninit_192,true	//when be master  call g_init
+	call g_init_192,true
+endif
+	call check_localsm
+	rtn true
+	jam SP_STAT_LINK_KEY_CALC,mem_sp_state
+	jam SP_FLAG_COMMIT,mem_sp_flag
+	rtn
+
+parse_simple_pairing_confirm:
+	arg mem_sp_confirm_remote,contw
+	arg mem_rxbuf+1,contr
+	call memcpy16
+	fetch 1,mem_ssp_mode_flag
+	rtneq  SSP_MODE_PASSKEY_ENTRY_FLAG
+ifdef SIMPLE_PAIRING
+	branch master_set_mem_master_sp_flag
+endif
+	rtn
+	
+parse_lmp_encapsulated_payload:
+	fetch 1,mem_encapsulated_minor_type
+	beq ENCAPSULATED_MINOR_TYPE_P192,parse_lmp_encapsulated_payload_192
+	beq ENCAPSULATED_MINOR_TYPE_P256,parse_lmp_encapsulated_payload_256
+	branch lmp_reject_pdu_not_allowed
+
+parse_lmp_encapsulated_payload_256:
+	fetch 1,mem_master_sp_state
+	beq SP_STAT_RANDOM_SEND,parse_encapsulated_payload_256_master
+	fetch    1,mem_sp_state
+	bne SP_STAT_KEY_RECV,lmp_reject_pdu_not_allowed
+parse_encapsulated_payload_256_master:
+	fetch    1,mem_sp_remote_key_recv_count
+	sub      pdata,0x30,contw
+	nbranch  lmp_reject_pdu_not_allowed,positive
+	arg      mem_le_pubkey_remote_x_256,contw
+	iadd     contw,contw
+	fetch 8,mem_rxbuf+1
+	istore   8,contw
+	fetch 8,mem_rxbuf+9
+	istore   8,contw
+	fetch    1,mem_sp_remote_key_recv_count
+	increase 16,pdata
+	store    1,mem_sp_remote_key_recv_count
+	bne ENCAPSULATED_LEN_P256,accept_lmp_msg
+	branch parse_lmp_encapsulated_payload_completed
+
+parse_lmp_encapsulated_payload_192:
+	fetch 1,mem_master_sp_state
+	beq SP_STAT_RANDOM_SEND,parse_encapsulated_payload_192_master
+	fetch    1,mem_sp_state
+	bne SP_STAT_KEY_RECV,lmp_reject_pdu_not_allowed
+parse_encapsulated_payload_192_master:
+	fetch    1,mem_sp_remote_key_recv_count
+	sub      pdata,0x20,contw
+	nbranch  lmp_reject_pdu_not_allowed,positive
+	arg      mem_sp_pubkey_remote,contw
+	iadd     contw,contw
+	fetch 8,mem_rxbuf+1
+	istore   8,contw
+	fetch 8,mem_rxbuf+9
+	istore   8,contw
+	fetch    1,mem_sp_remote_key_recv_count
+	increase 16,pdata
+	store    1,mem_sp_remote_key_recv_count
+	bne ENCAPSULATED_LEN_P192,accept_lmp_msg
+parse_lmp_encapsulated_payload_completed:
+	call check_localsm
+	branch accept_lmp_msg,true
+	jam      SP_KEY_VALID,mem_sp_remote_key_invalid
+	jam      SP_STAT_KEY_GENERATE,mem_sp_state
+	jam      SP_FLAG_COMMIT,mem_sp_flag  
+	branch   accept_lmp_msg
+	
+	
+parse_lmp_accepted_encapsulated_payload: 
+	fetch 1,mem_encapsulated_minor_type
+	beq ENCAPSULATED_MINOR_TYPE_P192,parse_lmp_accepted_encapsulated_payload_192
+	beq ENCAPSULATED_MINOR_TYPE_P256,parse_lmp_accepted_encapsulated_payload_256
+	rtn
+	
+parse_lmp_accepted_encapsulated_payload_192:
+	fetch 1,mem_sp_local_key_send_count
+	beq	ENCAPSULATED_LEN_P192,parse_lmp_encapsulated_payload_all_accepted
+	jam LMP_ENCAPSULATED_PAYLOAD,mem_lmo_opcode2
+	rtn    
+	
+parse_lmp_accepted_encapsulated_payload_256:
+	fetch 1,mem_sp_local_key_send_count
+	beq	ENCAPSULATED_LEN_P256,parse_lmp_encapsulated_payload_all_accepted
+	jam LMP_ENCAPSULATED_PAYLOAD,mem_lmo_opcode2
+	rtn    
+	
+parse_lmp_encapsulated_payload_all_accepted:   
+	call check_localsm
+	branch parse_lmp_encapsulated_payload_all_accepted_master,true
+	fetch 1,mem_ssp_mode_flag
+	beq SSP_MODE_PASSKEY_ENTRY_FLAG,parse_lmp_encapsulated_payload_all_accepted_get_passkey
+	jam      SP_FLAG_COMMIT,mem_sp_flag
+	jam      SP_STAT_COMMIT_CALC,mem_sp_state 
+	branch   parse_rx_done
+
+parse_lmp_encapsulated_payload_all_accepted_get_passkey:
+	jam BT_EVT_BT_GET_PASSKEY,mem_fifo_temp
+	branch ui_ipc_send_event
+
+
+parse_lmp_encapsulated_payload_all_accepted_master:
+	//call sp_master_generate_local_key
+	branch   parse_rx_done   
+
+parse_lmp_simple_pairing_number:
+	fetch 1,mem_master_sp_state
+	beq SP_STAT_RANDOM_SEND,parse_lmp_simple_pairing_number_master
+	fetch    1,mem_sp_state
+	bne SP_STAT_RANDOM_RECV,lmp_reject_pdu_not_allowed
+parse_lmp_simple_pairing_number_master:
+	arg      mem_sp_random_remote,contw
+	fetch 8,mem_rxbuf+1
+	istore   8,contw
+	fetch 8,mem_rxbuf+9
+	istore   8,contw
+	call check_localsm
+	branch parse_lmp_simple_pairing_number_master0,true
+	jam      SP_STAT_RANDOM_SEND,mem_sp_state
+	jam      SP_FLAG_COMMIT,mem_sp_flag
+	branch accept_lmp_msg  
+parse_lmp_simple_pairing_number_master0:
+	jam SP_STAT_COMMIT_CALC,mem_master_sp_state
+ifdef SIMPLE_PAIRING
+	branch master_set_mem_master_sp_flag
+endif
+	branch lmp_reject_pdu_not_allowed	
+	
+parse_dhkey_check:
+	fetch    1,mem_master_sp_state
+	beq SP_STAT_CONFIRM_SEND,parse_dhkey_check_master
+	fetch    1,mem_sp_state
+	bne SP_STAT_CONFIRM_RECV,lmp_reject_pdu_not_allowed
+parse_dhkey_check_master:
+	arg mem_sp_check_result,contw
+	arg mem_rxbuf+1,contr
+	call memcpy16
+	call check_localsm
+	branch parse_dhkey_check_master0,true
+	fetch 1,mem_ssp_mode_flag
+	beq SSP_MODE_SSP_PIN_FLAG,number_comparison_mode
+number_comparison_successed:
+	jam 0,mem_flag_mode_ssp_pin
+	jam SP_STAT_CONFIRM_CHECK,mem_sp_state
+	jam SP_FLAG_COMMIT,mem_sp_flag
+	jam LMP_DHKey_Check,mem_lmi_opcode2
+	branch   parse_rx_done
+	
+parse_dhkey_check_master0:
+	jam      SP_STAT_CONFIRM_CHECK,mem_master_sp_state
+	jam      SP_FLAG_COMMIT,mem_master_sp_flag
+	branch   parse_rx_done
+	
+lmp_reject_pdu_not_allowed:
+	jam PDU_NOT_ALLOWED,mem_lmo_reason2
+	branch reject_lmp_packet
+
+number_comparison_mode:
+	fetch 1,mem_flag_mode_ssp_pin
+	bbit1 FLAG_MODE_SSP_PIN_REVICEVE_COMPARISON_BIT ,comparison_result
+	set1 FLAG_MODE_SSP_PIN_RECIEVE_DHKEY_BIT,pdata
+	store 1,mem_flag_mode_ssp_pin
+	rtn
+	
+comparison_result:
+	bbit1 FLAG_MODE_SSP_PIN_COMPARISON_RESULT_BIT,number_comparison_successed
+	jam 0,mem_flag_mode_ssp_pin
+	branch lmp_reject_pdu_not_allowed
+
+	
+parse_lmp_clkoffset_res:
+	branch parse_rx_done
+		
+parse_lmp_encryption_mode_req:
+	fetch 1,mem_connection_options
+	set0 CONNECTION_ENCRYPT,pdata
+	store 1,mem_connection_options
+	call accept_lmp_msg
+	nrtn master					/* do sth only if we're master */
+	fetch 1,mem_rxbuf+1
+	fetcht 1,mem_op
+	setflag blank,op_stop_enc,temp
+	nsetflag blank,op_start_enc,temp
+	storet 1,mem_op
+	rtn 
+	
+parse_lmp_features_res:
+	fetcht 8,mem_rxbuf+1		/*fix bcp(baoshijie) err*/
+parse_lmp_features_res_not_hci:	
+	fetch 1,mem_conn_sm
+	rtnne CONN_SM_WAIT_FEATURES_RES
+
+	fetch 1,mem_connection_options
+	bbit0 CONNECTION_FEATURE_EXT,parse_lmp_send_conn
+
+	jam CONN_SM_SEND_FEATURES_EXT,mem_conn_sm
+	rtn
+parse_lmp_send_conn:
+	jam CONN_SM_SEND_CONN_REQ,mem_conn_sm
+	rtn
+parse_lmp_test_activate:
+	fetch 1,mem_debug_config
+	store 1,mem_test_mode_old_debug_config
+	jam LMP_ACCEPTED,mem_lmo_opcode2
+	jam LMP_TEST_ACTIVATE,mem_lmi_opcode2
+	rtn
+parse_lmp_test_control:
+	/* the 9 test control parameters are XORed with 0x55 */
+	/* doing the XOR here and storing in mem_temp_payload */
+	jam LMP_ACCEPTED,mem_lmo_opcode2
+	jam LMP_TEST_CONTROL,mem_lmi_opcode2
+	force 9,loopcnt
+	arg mem_rxbuf+1,contr
+	arg mem_temp_payload,contw
+parse_lmp_test_xor:
+	ifetch 1,contr
+	xor_into 0x55,pdata
+	istore 1,contw
+	loop parse_lmp_test_xor
+	fetch 1,test_mode_scenario
+	fetcht 1,mem_tester_emulate
+	set0 tester_no_whitening,temp
+	set0 tester_pattern_test,temp
+	beq EXIT_TEST_MODE,	 parse_lmp_test_control_exit
+	beq PAUSE_TEST_MODE,	 parse_lmp_test_control_pause
+	beq CLOSED_LOOP_BACK_ACL,	 parse_lmp_test_control_loopback
+	beq ACL_WITHOUT_WHITENING,	 parse_lmp_test_control_loopback_nowhite
+	beq CLOSED_LOOP_BACK_SCO,	 parse_lmp_test_control_loopback
+	beq SCO_WITHOUT_WHITENING,	 parse_lmp_test_control_loopback_nowhite
+	beq ZERO_PATTERN,	 parse_lmp_test_control_pattern
+	beq ONE_PATTERN,	 parse_lmp_test_control_pattern
+	beq ALT_PATTERN,	 parse_lmp_test_control_pattern
+	beq ALT2_PATTERN,	 parse_lmp_test_control_pattern
+	beq PSEUDORANDOM,	 parse_lmp_test_control_pattern
+	rtn
+parse_lmp_test_control_exit:
+	/* restoring old parameters */
+	fetch 1,mem_tester_emulate
+	set1 tester_exit,pdata
+	set1 tester_change,pdata
+	store 1,mem_tester_emulate
+	rtn
+parse_lmp_test_control_pattern:
+	set1 tester_pattern_test,temp
+	jam 5,mem_lch_code
+	fetch 2,test_mode_data_length
+	iforce loopcnt
+	store 2,mem_len
+	arg mem_rxbuf,contw
+	call pn9
+parse_lmp_test_control_loopback_nowhite:
+	set1 tester_no_whitening,temp
+parse_lmp_test_control_loopback:
+	set1 tester_change,temp
+	force 0,pdata
+	store 1,mem_slave_rcvcnt
+	store 2,mem_tst_pktcnt_crc
+	store 2,mem_tst_pktcnt_dmh
+	store 2,mem_tst_pktcnt_hec
+	store 2,mem_tst_pktcnt_sync
+	fetch 1,test_mode_hopping_mode
+	compare FIXED_FREQ,pdata,0xff
+	setflag true,tester_fixed_freq,temp
+	storet 1,mem_tester_emulate
+	rtn
+
+parse_lmp_test_control_pause:
+	set0 mark_testmode,mark
+	jam 0,mem_tester_emulate
+	fetch 1,mem_debug_config
+	set0 debug_tx_pattern,pdata
+	store 1,mem_debug_config
+	rtn
+
+
+	
+	
+
+lmp_copy_rand:	
+	arg mem_rxbuf+1,contr
+	arg mem_random_number,contw
+	branch memcpy16
+
+lmp_generate_key:
+	jam LMP_COMB_KEY,mem_lmo_opcode2
+	rtn
+
+lmp_start_encryption:
+	nrtn master
+	jam LMP_START_ENCRYPTION_REQ,mem_lmo_opcode2
+	rtn
+	
+lmp_accept_inrand:
+	arg mem_lap,rega
+	call generate_kinit
+	jam LMP_ACCEPTED,mem_lmo_opcode2
+	jam LMP_IN_RAND,mem_lmi_opcode2
+	rtn
+
+lmp_disconnect:
+	jam 10,mem_conn_timer
+	jam LMP_DETACH,mem_lmo_opcode2
+	jam LOCAL_HOST,mem_disconn_reason_send	
+	rtn
+
+/*********************************/
+/*********lmp send*************/
+/********************************/
+	/* enable user if a lmp packet is to send */
+send_lmp:
+	bpatchx patch23_4,mem_patch23
+	disable user
+	call lmo_fifo_process
+	fetch 1,mem_lmp_to_send
+	rtn blank
+/* lmp message to be processed. this will either be because host??? */
+/* wants to send a lmp message or because one resulted from the LMP */
+/* processing section */
+/********* outgoing lmp lookup table *************/
+	bbit1 7,send_lmp_escape
+send_lmp0:
+	beq LMP_NAME_REQ,	 send_lmp_name_req
+	beq LMP_NAME_RES,	 send_lmp_name_res
+	beq LMP_ACCEPTED,	 send_lmp_accepted
+	beq LMP_NOT_ACCEPTED,	 send_lmp_not_accepted
+	beq LMP_FEATURES_REQ,	 send_lmp_features_req
+	beq LMP_FEATURES_RES,	 send_lmp_features_res
+	beq LMP_TIMING_ACCURACY_RES,	 send_lmp_timing_accuracy_res
+	beq LMP_VERSION_REQ,	 send_lmp_version_req
+	beq LMP_VERSION_RES,	 send_lmp_version_res
+	beq LMP_SETUP_COMPLETE,	 send_lmp_setup_complete
+	beq LMP_SUPERVISION_TIMEOUT,	 send_lmp_superto
+	beq LMP_HOST_CONNECTION_REQ,send_lmp_no_payload
+	beq LMP_IN_RAND,send_lmp_inrand
+	beq LMP_COMB_KEY,send_lmp_comb_key
+	beq LMP_AU_RAND,send_lmp_aurand
+	beq LMP_SRES,send_lmp_sres
+	beq LMP_ENCRYPTION_MODE_REQ,send_lmp_encryption_mode_req
+	beq LMP_ENCRYPTION_KEY_SIZE_REQ,send_lmp_encryption_key_size_req
+	beq LMP_START_ENCRYPTION_REQ,send_lmp_start_encryption
+	beq LMP_DETACH,send_lmp_detach
+	beq LMP_QUALITY_OF_SERVICE_REQ, send_lmp_quality_of_service_req
+	beq LMP_UNIT_KEY,send_lmp_unit_key
+	//Optional (O)
+	beq LMP_INCR_POWER_REQ,send_lmp_inc_power	
+	beq LMP_CLKOFFSET_RES, send_lmp_clkoffset_res	
+	beq LMP_MAX_POWER,send_lmp_nopayload_reply
+	beq LMP_MAX_SLOT, send_lmp_max_slot
+	beq LMP_MAX_SLOT_REQ, send_lmp_max_slot_req
+	beq LMP_MIN_POWER,send_lmp_nopayload_reply
+	beq LMP_SLOT_OFFSET, send_lmp_slot_offset
+	beq LMP_SWITCH_REQ, send_lmp_switch_req
+	beq LMP_SNIFF_REQ, send_lmp_sniff_req
+	beq LMP_STOP_ENCRYPTION_REQ, send_lmp_stop_encryption_req	
+	beq LMP_TIMING_ACCURACY_REQ, send_lmp_timing_accuracy_req
+	beq LMP_UNSNIFF_REQ, send_lmp_unsniff_req
+	beq LMP_ENCAPSULATED_HEADER,send_lmp_encapsulated_header
+	beq LMP_ENCAPSULATED_PAYLOAD,send_lmp_encapsulated_payload
+	beq LMP_SIMPLE_PAIRING_CONFIRM,send_lmp_simple_pairing_comfirm
+	beq LMP_SIMPLE_PAIRING_NUMBER,send_lmp_simple_pairing_number
+	beq LMP_DHKEY_CHECK,send_lmp_dhkey_check
+	beq LMP_AUTO_RATE,send_lmp_auto_rate
+	beq LMP_ENC_KEY_SIZE_MASK_RES,send_lmp_enc_key_size_mask_res
+	//master only must(M)
+	beq LMP_CLKOFFSET_REQ, send_lmp_clkoffset_req
+	beq LMP_QUALITY_OF_SERVICE, send_lmp_quality_of_service
+	beq LMP_TEST_ACTIVATE, send_lmp_test_activate
+	beq LMP_TEST_CONTROL, send_lmp_test_control
+send_lmp_error:
+	branch assert
+	rtn
+send_lmp_escape:
+	beq LMP_EXT_ACCEPTED,send_lmpext_accepted
+	beq LMP_EXT_FEATURES_REQ,send_lmpext_features_req
+	beq LMP_EXT_FEATURES_RES,send_lmpext_features_res
+	beq LMP_NOT_ACCEPTED_EXT,send_lmpext_not_accepted
+	beq LMP_PACKET_TYPE_TABLE_REQ,send_lmpext_packet_type_table_req
+	beq LMP_PAUSE_ENCRYPTION_REQ,send_lmpext_pause_encryption_req
+	beq LMP_IO_CAP_REQ,send_lmp_io_cap_req
+	beq LMP_IO_CAP_RES,send_lmpext_io_cap_res
+	beq LMP_SNIFF_SUBRATING_REQ,send_lmpext_sniff_subrating_req
+	beq LMP_SNIFF_SUBRATING_RES,send_lmpext_sniff_subrating_res
+	beq LMP_PING_RES,send_lmpext_ping_res
+	branch assert
+
+
+/******** LMP follow messages **********/
+/****** TID follow received packet  *******/
+
+send_lmp_accepted:
+	force 2,pdata
+	call msg_send_lmp
+	fetch 1,mem_lmi_opcode
+	istore 1,contw
+	call send_lmp_follow
+	bpatchx patch23_5,mem_patch23
+	fetch 1,mem_lmi_opcode
+	beq LMP_IN_RAND,send_lmp_accepted_inrand
+	beq LMP_ENCRYPTION_MODE_REQ,send_lmp_accepted_enc_mode
+	beq LMP_ENCRYPTION_KEY_SIZE_REQ,send_lmp_accepted_enc_key
+	beq LMP_SNIFF_REQ,send_lmp_accept_sniff_req
+	beq LMP_HOST_CONNECTION_REQ,send_lmp_accepted_connection
+	beq LMP_DHKEY_CHECK,send_lmp_accept_dhkey_check
+	beq LMP_START_ENCRYPTION_REQ,send_create_conn_start_l2cap_timer_sm  
+	rtn	
+		
+send_create_conn_start_l2cap_timer_sm:
+	fetch 1,mem_conn_sm
+	rtn blank
+	jam CONN_SM_WAIT_DONE,mem_conn_sm
+	setarg TIMER_ENPT_WAITE
+	arg enpt_delay_timer,queue
+	branch timer_init
+	
+send_lmp_accept_sniff_req:
+	branch sniff_init
+send_lmp_not_accepted:
+	force 3,pdata
+	call msg_send_lmp
+	fetch 1,mem_lmi_opcode
+	beq LMP_AU_RAND,send_not_accept_aurand
+	istore 1,contw
+	fetch 1,mem_lmo_reason
+	istore 1,contw
+	branch send_lmp_follow
+
+send_not_accept_aurand:
+	istore 1,contw
+	fetch 1,mem_lmo_reason
+	istore 1,contw
+	arg mem_sres_tid,temp
+	branch special_tid_store
+
+send_lmpext_accepted:	
+	force 4,queue
+	call send_lmpext
+	setarg LMP_ESCAPE
+	istore 1,contw
+	fetch 1,mem_lmi_opcode
+	set0 7,pdata
+	istore 1,contw
+	fetch 1,mem_lmi_opcode
+	branch send_lmp_follow
+
+send_lmpext_not_accepted:
+	force 5,queue
+	call send_lmpext
+	setarg LMP_ESCAPE
+	istore 1,contw
+	fetch 1,mem_lmi_opcode
+	set0 7,pdata
+	istore 1,contw
+	fetch 1,mem_lmo_reason
+	istore 1,contw
+	branch send_lmp_follow
+	
+
+send_lmp_accepted_inrand:
+	call clear_linkkey
+	call tid_check	
+	rtn true
+	branch lmp_generate_key
+
+send_lmp_accepted_enc_mode:
+	fetch 1,mem_op
+	bbit1 op_start_enc,send_lmp_accepted_enc_start
+	rtnbit0 op_stop_enc
+	jam LMP_STOP_ENCRYPTION_REQ,mem_lmo_opcode2
+	set0 op_stop_enc,pdata
+	call tid_reply
+	branch send_lmp_accepted_enc_exit
+send_lmp_accepted_enc_start:
+	jam LMP_ENCRYPTION_KEY_SIZE_REQ,mem_lmo_opcode2
+	set0 op_start_enc,pdata
+send_lmp_accepted_enc_exit:
+	store 1,mem_op
+	rtn
+
+send_lmp_accepted_enc_key:
+	call check_localsm
+	branch lmp_start_encryption,true
+	rtn
+
+send_lmp_accepted_connection:
+	jam LMP_PACKET_TYPE_TABLE_REQ,mem_lmo_opcode2
+	//jam LMP_SETUP_COMPLETE,mem_lmo_opcode2
+	fetch 1,mem_lmp_conn_state
+	set1 RECEIVED_CONN_REQ,pdata
+	store 1,mem_lmp_conn_state
+	jam BT_EVT_BB_CONNECTED,mem_fifo_temp
+	branch ui_ipc_send_event
+
+
+send_lmp_accept_dhkey_check:
+	rtn
+/******** LMP reply messages **********/
+/****** TID always set to remote  *******/
+
+
+send_lmpext_ping_res:
+	force 2,queue
+	call send_lmpext
+	branch send_lmp_reply	
+
+send_lmpext_features_res:
+	copy pdata,rega
+	call check_ssp_enable
+	fetch 1,mem_ext_features_page
+	beq 1,send_lmpext_features_res1
+	beq 2,send_lmpext_features_res2
+	rtn
+	
+send_lmpext_features_res1:	
+	copy rega,pdata
+	force 12,queue
+	call send_lmpext
+	setarg 0x01
+	istore 1,contw
+	fetch 2,mem_lmpext_ssp_enable
+	istore 9,contw
+	branch send_lmp_reply
+
+send_lmpext_features_res2:
+	copy rega,pdata
+	force 12,queue
+	call send_lmpext
+	setarg 0x02
+	istore 1,contw
+	setarg 0x010002
+	istore 9,contw
+	branch send_lmp_reply
+
+check_ssp_enable:
+	fetch 1,mem_ssp_enable 
+	branch ssp_disable, blank
+	call  ssp_enable
+	branch check_br_sc_enable
+
+ssp_disable:
+	fetch 1,mem_features+6
+	set0 param_featrue_ssp,pdata
+	store 1,mem_features+6
+	setarg 0x1
+	store 2,mem_lmpext_ssp_enable
+	branch sp_clear_flags
+	
+//default:featrue is enable,extfeature is disable
+ssp_enable:
+	bpatchx patch23_6,mem_patch23
+	fetch 1,mem_features+6
+	set1 param_featrue_ssp,pdata
+	store 1,mem_features+6
+	setarg param_lmpext_ssp_enable
+	store 2,mem_lmpext_ssp_enable
+	rtn
+	
+check_br_sc_enable:
+	fetch 1,mem_secure_connections_enable
+	bbit1  SECURE_CONNECTIONS_BR_BIT,br_sc_enable
+	rtn
+	
+br_sc_enable:
+	setarg 0x0902 //0x0902
+	store 2,mem_lmpext_ssp_enable
+	rtn
+
+send_lmpext_io_cap_res:     
+	force 5,queue
+         call send_lmpext
+       	fetch 3,mem_lmp_io_cap_payload_iocap
+         istore 3,contw
+	call send_lmp_reply
+	jam FLAG_PAIRING_STATE_PAIRING,mem_flag_pairing_state
+	fetch 1,mem_lmp_io_cap_payload_iocap
+	beq IO_CAPABILITY_DISPLAY_YESNO,responder_iocap_display_yesno
+	beq IO_CAPABILITY_KEYBOARD_ONLY,responder_iocap_keyboard_only
+	beq IO_CAPABILITY_NO_INPUT_NO_OUTPUT,responder_iocap_no_input_no_output
+	rtn
+
+responder_iocap_keyboard_only:
+	fetch 1,mem_sp_iocap_remote
+	beq IO_CAPABILITY_DISPLAY_ONLY,responder_iocap_keyboard_only_initiator_iocap_display_only
+	beq IO_CAPABILITY_DISPLAY_YESNO,responder_iocap_keyboard_only_initiator_iocap_display_yesno
+	beq IO_CAPABILITY_KEYBOARD_ONLY,responder_iocap_keyboard_only_initiator_iocap_keyboard_only
+	beq IO_CAPABILITY_NO_INPUT_NO_OUTPUT,responder_iocap_keyboard_only_initiator_iocap_no_input_no_output
+	rtn
+
+
+responder_iocap_display_yesno:
+	fetch 1,mem_sp_iocap_remote
+	beq IO_CAPABILITY_DISPLAY_ONLY,responder_iocap_display_yesno_initiator_iocap_display_only
+	beq IO_CAPABILITY_DISPLAY_YESNO,responder_iocap_display_yesno_initiator_iocap_display_yesno
+	beq IO_CAPABILITY_KEYBOARD_ONLY,responder_iocap_display_yesno_initiator_iocap_keyboard_only
+	beq IO_CAPABILITY_NO_INPUT_NO_OUTPUT,responder_iocap_display_yesno_initiator_iocap_no_input_no_output
+	rtn
+
+	
+responder_iocap_no_input_no_output:
+	fetch 1,mem_sp_iocap_remote
+	beq IO_CAPABILITY_DISPLAY_ONLY,responder_iocap_no_input_no_output_initiator_iocap_display_only
+	beq IO_CAPABILITY_DISPLAY_YESNO,responder_iocap_no_input_no_output_initiator_iocap_display_yesno
+	beq IO_CAPABILITY_KEYBOARD_ONLY,responder_iocap_no_input_no_output_initiator_iocap_keyboard_only
+	beq IO_CAPABILITY_NO_INPUT_NO_OUTPUT,responder_iocap_no_input_no_output_initiator_iocap_no_input_no_output
+	rtn
+
+responder_iocap_keyboard_only_initiator_iocap_no_input_no_output:
+responder_iocap_display_yesno_initiator_iocap_no_input_no_output:
+responder_iocap_display_yesno_initiator_iocap_display_only:
+responder_iocap_no_input_no_output_initiator_iocap_display_only:
+responder_iocap_no_input_no_output_initiator_iocap_display_yesno:
+responder_iocap_no_input_no_output_initiator_iocap_keyboard_only:
+responder_iocap_no_input_no_output_initiator_iocap_no_input_no_output:
+set_ssp_mode_justwork: 
+	jam SSP_MODE_JUST_WORK_FLAG,mem_ssp_mode_flag
+	fetch 1,mem_classic_bt_flag
+	bbit1 FLAG_SSP_REJECT_JUSTWORK,app_bt_disconnect
+	rtn
+
+responder_iocap_display_yesno_initiator_iocap_display_yesno:
+set_ssp_mode_numeric_comparison: 
+	jam SSP_MODE_SSP_PIN_FLAG,mem_ssp_mode_flag
+	rtn
+
+responder_iocap_keyboard_only_initiator_iocap_display_yesno:
+responder_iocap_keyboard_only_initiator_iocap_keyboard_only:	
+responder_iocap_keyboard_only_initiator_iocap_display_only:	
+responder_iocap_display_yesno_initiator_iocap_keyboard_only:
+set_ssp_mode_passkey: 
+	jam SSP_MODE_PASSKEY_ENTRY_FLAG,mem_ssp_mode_flag
+	rtn
+
+
+classic_bt_set_reject_justwork_flag:
+	arg FLAG_SSP_REJECT_JUSTWORK,queue
+	branch classic_bluetooth_set_flag
+
+classic_bt_clr_reject_justwork_flag:
+	arg FLAG_SSP_REJECT_JUSTWORK,queue
+	branch classic_bluetooth_clr_flag
+
+classic_bluetooth_set_flag:
+	fetch 1,mem_classic_bt_flag
+	qset1 pdata
+	store 1,mem_classic_bt_flag
+	rtn
+
+classic_bluetooth_clr_flag:
+	fetch 1,mem_classic_bt_flag
+	qset0 pdata
+	store 1,mem_classic_bt_flag
+	rtn
+
+         
+send_lmp_io_cap_req:
+	force 5,queue
+	call send_lmpext
+	fetch 3,mem_lmp_io_cap_payload_iocap
+	istore 3,contw
+	branch send_lmp_request
+	
+
+send_lmpext_sniff_subrating_req: 
+
+	rtn
+send_lmpext_sniff_subrating_res: 
+         force 9,queue
+         call send_lmpext
+         fetch 1,mem_subsniff_rate
+         istore 1,contw
+         fetch 2,mem_subsniff_tcmax
+         istore 2,contw
+         fetch 4,mem_subsniff_instant
+         istore 4,contw
+	branch send_lmp_reply
+
+send_lmp_name_res:
+	force 17,pdata
+	call msg_send_lmp
+	fetch 1,mem_lmi_opcode  /* loading name offset */
+	copy pdata,temp
+	beq 0x00,send_lmp_name_res_offset_ok
+	beq 0x0e,send_lmp_name_res_offset_ok
+	beq 0x1c,send_lmp_name_res_offset_ok
+	rtn
+send_lmp_name_res_offset_ok:
+	istore 1,contw	/* writing name offset */
+	fetch 1,mem_local_name_length
+	istore 1,contw	/* writing name length */
+	arg 14,loopcnt
+	setarg mem_local_name
+	iadd temp,contr	/* setting read location */
+	call memcpy
+	branch send_lmp_reply
+
+
+send_lmp_timing_accuracy_res:
+	force 3,pdata
+	call msg_send_lmp
+	setarg 0x0114
+	istore 2,contw
+	branch send_lmp_reply
+
+send_lmp_clkoffset_res:
+	// dopod s505 must wait for this res
+	force 3,pdata
+	call msg_send_lmp
+	fetch 4,mem_clke_bt
+	isub clkn_bt,pdata
+	branch send_lmp_clkoffset_res_master,master
+	sub pdata,0,pdata		/* our role is slave */
+send_lmp_clkoffset_res_master:	
+	// bit 16-2 of clkslave-clkmaster
+	rshift2 pdata,pdata
+	set0 15,pdata
+	istore 2,contw
+	branch send_lmp_reply
+
+send_lmp_version_res:
+	force 6,pdata
+	call msg_send_lmp
+	fetch 5,mem_lmp_version
+	istore 5,contw
+	branch send_lmp_reply
+
+send_lmp_features_res:
+	force 9,pdata
+	call msg_send_lmp
+	fetch 8,mem_features
+	istore 8,contw
+	branch send_lmp_reply  
+
+
+/******** LMP request messages **********/
+/****** TID always set to local initiated *******/
+	
+
+send_lmpext_features_req:
+	call check_ssp_enable
+	fetch 1,mem_lmp_to_send
+	force 12,queue
+	call send_lmpext
+	setarg 0x01
+	istore 1,contw
+	fetch 2,mem_lmpext_ssp_enable
+	istore 2,contw
+	setarg 0
+	istore 3,contw
+	setarg 0x00
+	istore 4,contw
+	branch send_lmp_request
+
+send_lmpext_packet_type_table_req:
+	force 3,queue
+	call send_lmpext
+	fetch 1,mem_ptt
+	istore 1,contw
+	disable user
+	call send_lmp_request
+	nrtn user
+	nrtn master
+	fetch 1,mem_afh_cfg
+	rtnbit0 AFH_CFG_ON
+	call afh_init
+	branch afh_open_all_channels
+	
+
+afh_init:
+	jam 0x3,mem_afh_cfg
+	setarg 0
+	store 4,mem_afh_timer
+	arg mem_afh_map_lo,contw
+	call afh_reset_map
+	arg mem_afh_map_new,contw
+	call afh_reset_map
+	arg mem_afh_classify_channel_map,contw
+	call afh_reset_map
+	branch afh_clear_error_counter
+afh_open_all_channels:
+	arg mem_afh_map_new,contw
+	call afh_reset_map
+	call afh_clear_error_counter
+	branch afh_set_send_flag
+
+
+afh_reset_map:
+	setarg 0xffffff
+	istore 3,contw
+	istore 3,contw
+	istore 3,contw
+	setarg 0x7f
+	istore 1,contw
+	rtn
+afh_clear_error_counter:
+	setarg 0
+	store 2,mem_afh_error_total
+	rtn
+afh_set_send_flag:
+	fetch 1,mem_afh_cfg
+	set1 send_lmp_set_afh,pdata
+	store 1,mem_afh_cfg
+	rtn
+
+
+send_lmpext_pause_encryption_req:
+	force 2,queue
+	call send_lmpext
+	nbranch send_lmp_reply,master
+	// assume slave will not send pause req firstly???
+	branch send_lmp_request
+
+
+	
+send_lmp_detach:
+	force 2,pdata
+	call msg_send_lmp
+	fetch 1,mem_disconn_reason_send
+	istore 1,contw
+	call send_lmp_request
+prepare_disconnect:
+	fetch 1,mem_op
+	set1 op_disconn,pdata
+	store 1,mem_op
+	jam 50,mem_conn_timer
+	rtn
+	
+
+send_lmp_no_payload:
+	force 1,pdata
+	call msg_send_lmp
+	branch send_lmp_request
+send_lmp_nopayload_reply:
+	force 1,pdata
+	call msg_send_lmp
+	branch send_lmp_reply
+	
+	
+send_lmp_encryption_mode_req:
+	force 2,pdata
+	call msg_send_lmp
+	fetch 1,mem_state_map
+	isolate0 smap_encryption,pdata
+	setflag true,0,pdata
+	and_into 1,pdata
+	istore 1,contw
+	branch send_lmp_request
+
+
+send_lmp_superto:
+	force 3,pdata
+	call msg_send_lmp
+	fetch 2,mem_supervision_to
+	istore 2,contw
+	branch send_lmp_request
+
+send_lmp_name_req:
+	jam 250,mem_conn_timer
+	force 2,pdata
+	call msg_send_lmp
+	fetch 1,mem_name_offset
+	istore 1,contw
+	branch send_lmp_request
+
+send_lmp_test_control:
+	force 10,pdata
+	call msg_send_lmp
+	arg mem_temp_payload,contr
+	force 9,loopcnt
+send_lmp_test_control_loop:	
+	ifetch 1,contr
+	xor_into 0x55,pdata
+	istore 1,contw
+	loop send_lmp_test_control_loop
+	branch send_lmp_request  
+
+send_lmp_quality_of_service_req:
+	branch send_lmp_request
+send_lmp_unit_key:
+	branch send_lmp_request
+
+send_lmp_slot_offset:
+	rtn master
+	call calc_slot_offset
+	force 9,pdata
+	call msg_send_lmp
+	fetch 2,mem_slot_offset
+	istore 2,contw
+	fetch 3,mem_lap
+	istore 3,contw
+	fetch 1,mem_uap
+	istore 1,contw
+	fetch 2,mem_nap
+	istore 2,contw
+	bmark0 mark_switch_initiated,send_lmp_slot_offset_reply
+	set0 mark_switch_initiated,mark
+	call send_lmp_request
+	jam LMP_SWITCH_REQ,mem_lmo_opcode2
+	rtn
+send_lmp_slot_offset_reply:
+	call send_lmp_reply
+	jam LMP_ACCEPTED,mem_lmo_opcode2
+	jam LMP_SWITCH_REQ,mem_lmi_opcode2
+	rtn
+	
+send_lmp_switch_req:
+	arg 0x200,temp
+	branch switch_on_native,master
+	deposit clke_bt
+	branch switch_slack
+switch_on_native:
+	deposit clkn_bt
+switch_slack:
+	deposit bt_clk
+	iadd temp,pdata
+	and_into 0x1fc,pdata
+	store 4,mem_sniff_anchor
+	force 5,pdata
+	call msg_send_lmp
+	fetch 4,mem_sniff_anchor		/* reused as switch instant */
+	rshift pdata,pdata
+	istore 4,contw
+	branch send_lmp_request
+
+send_lmp_sniff_req:
+	force 10,pdata
+	call msg_send_lmp
+	arg mem_sniff_payload,contr
+	ifetch 9,contr
+	istore 9,contw
+	branch send_lmp_request
+
+	
+send_lmp_timing_accuracy_req:
+/* default to TID_NORM_SEND */
+	force 3,pdata
+	call msg_send_lmp
+	setarg 0x0114
+	istore 2,contw
+	branch send_lmp_request
+	
+send_lmp_unsniff_req:
+//--------------------need to completa
+	force 1,pdata
+	call msg_send_lmp
+	//fetch 1,mem_unsniff_pending
+	//nbranch send_msg_done,blank
+	//jam 1,mem_unsniff_pending
+	//fetch 2,mem_sniff_attempt
+	//fetch 2,mem_nsniff_attempt
+	//lshift3 pdata,pdata
+	//lshift pdata,pdata
+	//store 1,mem_unsniff_cnt
+	branch send_lmp_request
+
+	
+send_lmp_max_slot:
+	force 2,pdata
+	call msg_send_lmp
+	fetch 1,mem_max_slot
+	istore 1,contw
+	branch send_lmp_request
+	
+	
+send_lmp_max_slot_req:
+	force 2,pdata
+	call msg_send_lmp
+	setarg 0x05		/*5 slot*/
+	istore 1,contw
+	branch send_lmp_request
+
+
+send_lmp_inc_power:
+	force 2,pdata
+	call msg_send_lmp
+	setarg 0x00		/*5 slot*/
+	istore 1,contw
+	branch send_lmp_request
+
+
+send_lmp_setup_complete_by_module:
+	jam LMP_MAX_SLOT_REQ,mem_lmo_opcode2
+	rtn
+send_lmp_setup_complete:
+	fetch 1,mem_device_option
+	sub pdata,dvc_op_module,null
+	call send_lmp_setup_complete_by_module,zero
+	fetch 1,mem_state
+	set1 state_conn_comp,pdata
+	store 1,mem_state
+	copy clkn_bt,pdata
+	store 4,mem_aurand_send_delay_time
+	fetch 1,mem_lmp_conn_state
+	bbit1 SENT_SETUP_COMPLETE,send_lmp_setup_complete_has_sent
+	set1 SENT_SETUP_COMPLETE,pdata
+	store 1,mem_lmp_conn_state
+	jam BT_EVT_SETUP_COMPLETE,mem_fifo_temp
+	call ui_ipc_send_event
+	force 1,pdata
+	call msg_send_lmp
+	branch send_lmp_request
+send_lmp_setup_complete_has_sent:
+	jam 0,mem_lmp_to_send
+	rtn
+	
+send_lmp_version_req:
+	force 6,pdata
+	call msg_send_lmp
+	fetch 5,mem_lmp_version
+	istore 5,contw
+	branch send_lmp_request
+
+send_lmp_features_req:
+	force 9,pdata
+	call msg_send_lmp
+	fetch 8,mem_features
+	istore 8,contw
+	branch send_lmp_request  
+
+sp_master_send_io_cap_get:
+	jam SP_FLAG_COMMIT,mem_master_sp_flag
+	fetch 1,mem_sp_local_key_invalid
+	rtnne SP_KEY_VALID
+	jam SP_MASTER_STAT_START_DONE,mem_master_sp_state
+	rtn
+
+sp_master_send_io_cap_send:
+	call tid_initiate
+	jam LMP_IO_CAP_REQ,mem_lmo_opcode2
+	jam SP_STAT_KEY_SEND,mem_master_sp_state
+	rtn
+	
+	
+sp_master_send_LMP_ENCAPSULATED_HEADER:
+	call tid_initiate
+	jam      LMP_ENCAPSULATED_HEADER,mem_lmo_opcode2
+	jam SP_STAT_RANDOM_SEND,mem_master_sp_state
+	rtn
+	
+sp_master_commitment_compare:
+	arg mem_sp_calc_result_high,rega
+	arg mem_sp_confirm_remote,regb
+	arg 16,loopcnt
+	call string_compare
+	branch sp_master_commitment_compare_success,zero
+	jam SP_STAT_NULL,mem_master_sp_state
+ifdef SIMPLE_PAIRING
+	call master_clear_mem_master_sp_flag
+endif
+	jam LMP_SIMPLE_PAIRING_NUMBER,mem_lmi_opcode2 
+	branch lmp_reject_pdu_not_allowed
+	
+sp_master_commitment_compare_success:
+	jam SP_STAT_CONFIRM_CALC,mem_master_sp_state
+ifdef SIMPLE_PAIRING
+	call master_set_mem_master_sp_flag
+endif
+	jam LMP_SIMPLE_PAIRING_NUMBER,mem_lmi_opcode2
+	branch accept_lmp_msg  
+	
+
+	
+sp_master_send_lmp_simple_pairing_number:
+	jam LMP_SIMPLE_PAIRING_NUMBER,mem_lmo_opcode2
+	rtn
+	
+
+
+sp_send_lmp_encapsulated_header:
+	// calculate the private & public key here
+	//jam      LMP_ENCAPSULATED_HEADER,mem_lmp_to_send
+	jam      LMP_ENCAPSULATED_HEADER,mem_lmo_opcode2
+	//jam      TID_PAIRING,mem_lmp_tid
+	rtn
+	//fetch 1,mem_tid_table
+	//set1 TID_PAIRING,pdata
+	//store 1,mem_tid_table
+     
+    
+send_lmp_encapsulated_header: 
+	jam 0,mem_sp_local_key_send_count
+	force 4,pdata
+	call msg_send_lmp
+	fetch 3,mem_encapsulated_major_type
+	istore 3,contw 
+	call check_localsm
+	branch send_lmp_request,true
+	branch send_lmp_reply
+
+
+send_lmp_encapsulated_payload:
+	fetch 1,mem_encapsulated_minor_type
+	beq ENCAPSULATED_MINOR_TYPE_P256,send_lmp_encapsulated_payload_256
+	beq ENCAPSULATED_MINOR_TYPE_P192,send_lmp_encapsulated_payload_192
+	rtn
+	
+send_lmp_encapsulated_payload_256:
+	 force 17,pdata
+	call msg_send_lmp
+	fetch 1,mem_sp_local_key_send_count
+	arg mem_sc_pubkey_local_x_256,contr
+	branch send_lmp_encapsulated_payload_common
+
+send_lmp_encapsulated_payload_192:
+	 force 17,pdata
+	call msg_send_lmp
+	fetch 1,mem_sp_local_key_send_count
+	arg mem_sp_pubkey_local,contr
+send_lmp_encapsulated_payload_common:
+	iadd contr,contr    
+	ifetch   8,contr
+	istore   8,contw
+	ifetch   8,contr
+	istore   8,contw
+	fetch    1,mem_sp_local_key_send_count
+	increase 16,pdata
+	store    1,mem_sp_local_key_send_count
+	call check_localsm
+	branch send_lmp_request,true
+	branch send_lmp_reply
+	//branch send_lmp_request
+	
+sp_send_lmp_simple_pairing_comfirm:
+        jam      SP_STAT_RANDOM_RECV,mem_sp_state
+        jam      LMP_SIMPLE_PAIRING_CONFIRM,mem_lmo_opcode2
+        rtn
+send_lmp_simple_pairing_comfirm:
+        //jam      SP_STAT_RANDOM_RECV,mem_sp_state
+        //jam      TID_PAIRING,mem_lmp_tid
+        force    17,pdata
+        call msg_send_lmp   
+        arg      mem_sp_calc_result_high,contr
+        ifetch   8,contr
+        istore   8,contw
+        ifetch   8,contr
+        istore   8,contw 
+        branch send_lmp_reply
+
+sp_send_lmp_simple_pairing_number:
+	jam      LMP_SIMPLE_PAIRING_NUMBER,mem_lmo_opcode2
+	rtn
+
+send_lmp_simple_pairing_number:
+	//jam      TID_PAIRING,mem_lmp_tid
+	call check_localsm
+ifdef SIMPLE_PAIRING
+	call sp_local_random_key_generator,true
+endif
+	force    17,pdata
+	call msg_send_lmp
+	arg      mem_sp_random_local,contr
+	ifetch   8,contr
+	istore   8,contw
+	ifetch   8,contr
+	istore   8,contw
+	call check_localsm
+	nbranch send_lmp_reply,true
+	branch send_lmp_request,true
+
+master_sp_sm_end:
+	//jam DEFAULT_STATEMACHINE,mem_sp_localsm
+	jam SP_STAT_DONE,mem_master_sp_state
+sp_aurand_send:
+	call tid_initiate
+	jam LMP_AU_RAND,mem_lmo_opcode2
+	call check_localsm_master
+ifdef SIMPLE_PAIRING
+	branch sp_master_key_prarm_push,true
+	branch sp_link_key_prarm_push
+endif
+master_sp_send_lmp_dhkey_check:
+	call tid_reply
+sp_send_lmp_dhkey_check: 
+	jam      LMP_DHKEY_CHECK,mem_lmo_opcode2
+	rtn
+send_lmp_dhkey_check: 
+	//jam      TID_PAIRING,mem_lmp_tid
+	force    17,pdata
+	call     msg_send_lmp
+	arg      mem_sp_calc_result_high,contr
+	ifetch   8,contr
+	istore   8,contw
+	ifetch   8,contr
+	istore   8,contw 
+	call check_localsm
+	nbranch send_lmp_reply,true
+	branch send_lmp_request,true
+
+send_lmp_enc_key_size_mask_res:
+	force 3,pdata
+	call msg_send_lmp   
+	setarg 0xfffe //enc key size mask
+	istore 2,contw
+	branch send_lmp_reply
+
+send_lmp_auto_rate:
+	branch send_lmp_request
+send_lmp_clkoffset_req:
+	branch send_lmp_request
+send_lmp_quality_of_service:
+	branch send_lmp_request
+send_lmp_test_activate:
+	branch send_lmp_request
+
+/******** LMP request/reply messages **********/
+/****** TID transaction specific *******/
+
+send_lmp_comb_key:
+	call generate_random_number
+	arg mem_lap,rega
+	call generate_linkkey
+	force 17,pdata
+	call msg_send_lmp
+	arg mem_kinit,rega
+	arg mem_random_number,regb
+	call xor16
+	nbranch send_lmp_follow,master
+	branch send_lmp_tid
+
+send_lmp_inrand:
+	call generate_random_number
+	arg mem_plap,rega
+	call generate_kinit
+send_lmp_rand:	/* used by in_rand,au_rand,start_encrypt */
+	force 17,pdata
+	call msg_send_lmp
+	arg mem_random_number,contr
+	call memcpy16
+	fetch 1,mem_conn_sm 
+	beq CONN_SM_AUTH_WAIT,send_lmp_request
+	beq CONN_SM_PAIRING_WAIT,send_lmp_request
+	branch send_lmp_tid
+
+send_lmp_aurand:
+	fetch 1,mem_encapsulated_minor_type
+	beq ENCAPSULATED_MINOR_TYPE_P256,send_lmp_aurand_256
+
+	fetch 1,mem_pairing_auth
+	branch send_lmp_aurand_notpairing,blank
+send_lmp_aurand2:
+	call check_localsm
+	call tid_initiate,true
+	ncall tid_reply,true
+	branch send_lmp_aurand_common
+send_lmp_aurand_notpairing:
+	call tid_initiate
+send_lmp_aurand_common:
+	call generate_random_number
+	branch send_lmp_rand
+
+send_lmp_aurand_256:
+	jam LMP_SRES,mem_lmo_opcode2
+	branch send_lmp_aurand2
+
+send_lmp_sres:
+	fetch 1,mem_encapsulated_minor_type
+	beq ENCAPSULATED_MINOR_TYPE_P256,send_lmp_sres_256
+
+	arg mem_lap,rega
+	call function_e1
+	force 5,pdata
+	call msg_send_lmp
+	fetch 4,mem_input_store
+	istore 4,contw
+	arg mem_sres_tid,temp
+	call special_tid_store
+	call copy_aco
+	call check_localsm
+	branch send_lmp_sres_master,true
+	jam DONE_ENCRYP,mem_wait_encryption
+	fetch 1,mem_pairing_auth
+	rtn blank
+	jam LMP_AU_RAND,mem_lmo_opcode2
+send_lmp_sres_master:
+	fetch 1,mem_link_key_exists
+	rtn blank
+send_lmp_sres_startenc:
+	call check_localsm
+	nbranch send_lmp_sres_startenc_slave,true
+	rtn
+	
+send_lmp_sres_startenc_slave:
+	rtnmark0 mark_slave_in_rand_accepted
+	set0 mark_slave_in_rand_accepted,mark
+	jam LMP_ENCRYPTION_MODE_REQ, mem_lmo_opcode2
+	rtn
+	
+send_lmp_sres_256:
+	call function_h4
+	call function_h5
+	force 5,pdata
+	call msg_send_lmp
+	fetch 4,memb
+	istore 4,contw
+	arg mem_sres_tid,temp
+	call special_tid_store
+	call copy_aco_256
+	call check_localsm
+	branch send_lmp_sres_master,true
+	jam DONE_ENCRYP,mem_wait_encryption
+	fetch 1,mem_pairing_auth
+	rtn blank
+	branch send_lmp_sres_master
+	
+copy_aco_256:
+	fetch 8,mem_sp_calc_result_high
+	store 8,mem_ccm_iv
+	rtn
+	
+send_lmp_start_encryption:
+	call generate_random_number
+	call function_e3
+	force 17,pdata
+	call msg_send_lmp
+	arg mem_random_number,contr
+	call memcpy16
+	branch send_lmp_tid
+
+send_lmp_stop_encryption_req:
+	force 1,pdata
+	call msg_send_lmp
+	branch send_lmp_tid
+
+send_lmp_encryption_key_size_req:
+	force 2,pdata
+	call msg_send_lmp
+	force 16,pdata
+	istore 1,contw
+	store 1,mem_key_size
+	branch send_lmp_tid
+
+msg_send_lmp:
+/* FLOW is set high and LMP is indicated */
+	lshift3 pdata,pdata
+	or_into 0x07,pdata
+	store 1,mem_lmo_header_length
+	arg 17,loopcnt
+	arg mem_lmo_payload,contw
+	call clear_mem
+	arg mem_lmo_payload,contw
+	rtn
+
+send_lmpext:
+	and pdata,0x7f,rega
+	jam LMP_ESCAPE,mem_lmp_to_send
+	deposit queue
+	call msg_send_lmp
+	deposit rega
+	istore 1,contw
+	rtn
+
+send_lmp_follow:
+	fetch 1,mem_lmp_to_send
+	lshift pdata,pdata
+	fetcht 1,mem_state_map
+	isolate1 smap_lmptid,temp
+	setflag true,0,pdata
+	branch send_lmp_exit
+
+
+send_lmp_tid:
+	fetcht 1,mem_state_map
+	and_into 1,temp
+	branch send_lmp_end
+
+send_lmp_reply:
+	force 0,temp
+	branch send_lmp_end
+	
+send_lmp_request:
+	force 1,temp
+send_lmp_end:
+	fetch 1,mem_lmp_to_send
+	lshift pdata,pdata
+	setflag master,0,pdata
+	ixor temp,pdata
+send_lmp_exit:
+	store 1,mem_lmo_header_opcode
+	store 1,mem_lmo_header_opcode_x
+	jam 0,mem_lmp_to_send
+	call lmo_fifo_process_lmo0empty
+	enable user
+	rtn
+
+//blank : not full 
+lmo_fifo_check:
+	fetch 1,mem_lmo_opcode2
+	rtn blank
+	call lmo_fifo_process
+	fetch 1,mem_lmo_opcode2
+	rtn
+
+lmo_fifo_process:
+	bpatchx patch23_7,mem_patch23
+	fetch 1,mem_lmp_to_send
+	branch lmo_fifo_process_lmo0empty,blank
+	fetch 1,mem_lmo_opcode1
+	nrtn blank
+	branch lmo_fifo_process_lmo2to1
+lmo_fifo_process_lmo0empty:
+	fetch 1,mem_lmo_opcode1
+	branch lmo_fifo_process_lmo1_empty,blank
+	fetch 3,mem_lmo_opcode1
+	store 3,mem_lmp_to_send//1=>0
+	fetcht 1,mem_lmo_tid1
+	fetch 1,mem_state_map
+	set0 smap_lmptid,pdata
+	ior temp,pdata
+	store 1,mem_state_map
+	jam 0,mem_lmo_opcode1
+lmo_fifo_process_lmo2to1:
+	fetch 1,mem_lmo_opcode2
+	rtn blank
+	fetch 4,mem_lmo_opcode2
+	store 4,mem_lmo_opcode1//2=>1
+	jam 0,mem_lmo_opcode2
+	rtn
+lmo_fifo_process_lmo1_empty:
+	fetch 1,mem_lmo_opcode2
+	rtn blank
+	fetch 3,mem_lmo_opcode2
+	store 3,mem_lmp_to_send//2=>0	
+	fetcht 1,mem_lmo_tid2
+	fetch 1,mem_state_map
+	set0 smap_lmptid,pdata
+	ior temp,pdata
+	store 1,mem_state_map
+	jam 0,mem_lmo_opcode2
+	rtn
+	
+//input:temp
+special_tid_store:
+	bpatchx patch24_0,mem_patch24
+	fetch 1,mem_state_map
+	copy pdata,regc
+	ifetch 1,temp
+	call pop_tid_follow
+	call send_lmp_follow
+	copy regc,pdata
+	store 1,mem_state_map
+	rtn
+	
+tid_reply:
+	fetcht 1,mem_state_map
+	set0 smap_lmptidinit,temp
+	storet 1,mem_state_map
+	rtn
+	
+tid_initiate:
+	fetcht 1,mem_state_map
+	set1 smap_lmptidinit,temp
+	storet 1,mem_state_map
+	rtn
+	
+	/* true if transaction from remote */
+tid_check:
+	nsetflag master,smap_lmptid,pdata //it is ok
+	fetcht 1,mem_state_map
+	ixor temp,pdata
+	isolate1 smap_lmptid,pdata
+	rtn	
+
+	/* set to remote */
+tid_set_reply:
+	fetch 1,mem_state_map
+	setflag master,smap_lmptid,pdata //it is ok
+	store 1,mem_state_map
+	rtn
+
+	/*rtn true when we lead lmp*/
+check_localsm:
+	fetch 1,mem_sp_localsm
+	compare 	LOCAL_STATEMACHINE,pdata,0x7f
+	rtn
+setlocalsm_master:
+	fetch 1,mem_sp_localsm
+	set1 7,pdata
+	store 1,mem_sp_localsm
+	rtn
+setlocalsm_slave:
+	fetch 1,mem_sp_localsm
+	set0 7,pdata
+	store 1,mem_sp_localsm
+	rtn
+check_localsm_master:
+	fetch 1,mem_sp_localsm
+	isolate1 7,pdata
+	store 1,mem_sp_localsm
+	rtn
+	
+generate_random_number:
+	/* generating a 16 byte random number,storing in ape_random_number */
+	arg mem_random_number,contw
+generate_random:
+	force 16,loopcnt
+generate_random_another:
+generate_random_loop:
+	random pdata
+	istore 1,contw
+	loop generate_random_another
+	rtn
+
+generate_linkkey:
+	call function_e21
+	arg mem_link_key,rega
+	arg mem_input_store,regb
+	ifetch 8,rega					/* check if already got comb key */
+	fetcht 1,mem_state
+	nsetflag blank,state_combkey,temp
+	storet 1,mem_state
+	copy rega,contw
+	call  xor16
+	branch generate_linkkey_continue
+
+/*********************************/
+/*********lmp send*************/
+/********************************/
+
+process_conn_sm:
+	//nrtn master
+	bpatchx patch24_1,mem_patch24
+
+	call lmo_fifo_check
+	nrtn blank
+process_conn_sm_continue:
+	fetch 1,mem_conn_sm
+	rtn blank
+	/* state machine begins in standby */
+	//beq CONN_SM_STANDBY, host_create_conn_begin
+	//beq CONN_SM_WAIT_PAGE, host_create_conn_wait_page
+	beq CONN_SM_SEND_CONN_REQ, host_create_conn_send_conn_req
+	beq CONN_SM_WAIT_CONN_ACCEPT, host_create_conn_wait_accept
+	beq CONN_SM_SEND_FEATURES, host_create_conn_send_features
+	beq CONN_SM_WAIT_FEATURES_RES, host_create_conn_waiting
+	beq CONN_SM_SEND_SWITCH,host_create_conn_send_switch
+	beq CONN_SM_AUTH_PAIR, host_create_conn_auth_pair
+	beq CONN_SM_AUTH_PAIR_WAIT, host_create_conn_auth_pair_wait
+	beq CONN_SM_ENCRYPT, host_create_conn_encrypt
+	beq CONN_SM_ENCRYPT_WAIT, host_create_conn_encrypt_wait
+	beq CONN_SM_ENCRYPT_WAIT_CLEAR, host_create_conn_encrypt_wait_clear
+	beq CONN_SM_SEND_SETUP_COMPLETE, host_create_conn_send_setup_complete
+	beq CONN_SM_WAIT_SETUP_COMPLETE, host_create_conn_wait_setup_complete
+	beq CONN_SM_DETACH_DELAY,host_create_conn_master_detach
+	beq CONN_SM_SEND_VERSION, host_create_conn_send_version
+	beq CONN_SM_WAIT_VERSION, host_create_conn_waiting
+	beq CONN_SM_WAIT_SWITCH_AFTER_HOST_CONNECTION, host_creat_conn_wait_switch
+	beq CONN_SM_SEND_FEATURES_EXT,host_creat_conn_send_feat_ext
+	beq CONN_SM_WAIT_FEATURES_EXT,host_create_conn_waiting
+	beq CONN_SM_PAIRING,host_create_conn_pairing
+	beq CONN_SM_PAIRING_WAIT,host_create_conn_pairing_wait
+	beq CONN_SM_AUTH,host_create_conn_auth
+	beq CONN_SM_AUTH_WAIT,host_create_conn_auth_wait
+	beq CONN_SM_DONE,host_create_conn_done
+	beq CONN_SM_WAIT_DONE,host_create_conn_done_wait
+	jam CONN_SM_STANDBY,mem_conn_sm
+	/* sending error message to host */
+	rtn
+host_create_conn_done:
+	fetch 1,mem_lmp_conn_state		
+	rtnbit0 RECEIVED_SETUP_COMPLETE
+	rtnbit0 SENT_SETUP_COMPLETE
+	jam CONN_SM_STANDBY,mem_conn_sm
+	call host_conn_judge_encrypt
+	branch scheduler_start_upper_sm
+	
+host_conn_judge_encrypt:
+	fetch 1,mem_connection_options
+	rtnbit0 CONNECTION_ENCRYPT
+	jam CONN_SM_ENCRYPT_WAIT,mem_conn_sm
+	rtn
+
+host_create_conn_done_wait:
+	arg enpt_delay_timer,queue
+	call timer_check
+	nrtn blank
+	jam CONN_SM_DONE,mem_conn_sm
+	rtn
+	
+host_create_conn_auth:
+	fetch 1,mem_connection_options
+	set0 CONNECTION_AUTH,pdata
+	store 1,mem_connection_options
+	jam CONN_SM_AUTH_WAIT,mem_conn_sm
+	jam LMP_AU_RAND,mem_lmo_opcode2
+	rtn 
+host_create_conn_auth_wait:
+	rtn
+host_create_conn_pairing:
+	fetch 1,mem_pincode_state
+	rtnne pincode_state_pincode_ready //wait for pincode
+	call host_auth
+	jam CONN_SM_PAIRING_WAIT,mem_conn_sm
+	rtn
+
+host_create_conn_pairing_wait:
+	rtn
+host_creat_conn_send_feat_ext:
+	jam CONN_SM_WAIT_FEATURES_EXT,mem_conn_sm
+	jam LMP_EXT_FEATURES_REQ,mem_lmo_opcode2
+	rtn
+host_create_conn_send_version:
+	jam CONN_SM_WAIT_VERSION,mem_conn_sm
+	jam LMP_VERSION_REQ,mem_lmo_opcode2
+	rtn 
+	
+host_creat_conn_wait_switch:
+	fetch 1,mem_switch_flag
+	rtneq SWITCH_FLAG_INIT
+	beq SWITCH_FLAG_ACCEPT,host_create_conn_switch_accept
+	arg switch_wait_timer,queue
+	call timer_check
+	nrtn blank
+	jam SWITCH_FLAG_INIT,mem_switch_flag
+	branch host_create_conn_switch
+host_create_conn_switch_accept:
+	rtn master
+	branch host_create_conn_auth_pair
+
+host_create_conn_send_features:
+	jam CONN_SM_WAIT_FEATURES_RES,mem_conn_sm
+	jam LMP_FEATURES_REQ,mem_lmo_opcode2
+	rtn 
+host_create_conn_send_switch:
+	jam LMP_SWITCH_REQ,mem_lmo_opcode2
+	set1 mark_switch_initiated,mark
+	jam CONN_SM_WAIT_CONN_ACCEPT,mem_conn_sm
+	setarg 0x1ff
+	store 2, mem_soft_timer
+	rtn
+
+host_create_conn_send_conn_req:
+	jam CONN_SM_WAIT_CONN_ACCEPT,mem_conn_sm
+	setarg 0xff
+	store 2,mem_soft_timer
+	set0 mark_reconn_recieve_switch,mark
+	jam LMP_HOST_CONNECTION_REQ,mem_lmo_opcode2
+	branch init_lmp_reinit
+host_create_conn_wait_accept:
+	rtnmark1 mark_reconn_recieve_switch
+	fetch 2,mem_soft_timer
+	increase -1,pdata
+	branch host_create_conn_resend,zero
+	store 2, mem_soft_timer
+	rtn
+host_create_conn_resend:
+	jam CONN_SM_SEND_SWITCH,mem_conn_sm
+	rtn
+host_create_conn_waiting:
+	/* we will exit waiting for connection request accepted, features res, or other commands to finish */
+	rtn 
+
+host_create_conn_switch:
+	fetch 1,mem_lmp_conn_state
+	rtnbit0 SENT_SETUP_COMPLETE
+	rtnbit0 RECEIVED_SETUP_COMPLETE
+	fetch 1,mem_connection_options
+	set0 CONNECTION_SWITCH,pdata
+	store 1,mem_connection_options
+	jam LMP_SWITCH_REQ,mem_lmo_opcode2
+	jam CONN_SM_WAIT_SWITCH_AFTER_HOST_CONNECTION,mem_conn_sm
+	rtn 
+
+host_create_conn_send_setup_complete:
+	jam CONN_SM_WAIT_SETUP_COMPLETE,mem_conn_sm	
+	jam LMP_SETUP_COMPLETE,mem_lmo_opcode2
+	rtn 
+
+host_create_conn_wait_setup_complete:
+	fetch 1,mem_lmp_conn_state
+	rtnbit0 RECEIVED_SETUP_COMPLETE
+	jam CONN_SM_STANDBY,mem_conn_sm	
+
+	rtn
+host_create_conn_wait_setup_complete_rtn:	
+	jam CONN_SM_AUTH_PAIR ,mem_conn_sm
+	rtn
+
+host_create_conn_master_detach:
+	fetch 2, mem_soft_timer
+	increase -1,pdata
+	branch host_create_conn_send_detach,blank//detach
+	store 2, mem_soft_timer
+	rtn 
+host_create_conn_send_detach:
+	jam LMP_DETACH,mem_lmo_opcode2
+	jam LOCAL_HOST,mem_disconn_reason_send
+	jam 0,mem_conn_sm
+	rtn
+host_create_conn_auth_pair:
+	/* checking whether or not to do m/s switch */
+	fetch 1,mem_connection_options
+	bbit1 CONNECTION_SWITCH,host_create_conn_switch
+	bbit1 CONNECTION_AUTH,host_create_conn_auth_pair_true
+host_create_conn_sm_done:
+	jam CONN_SM_DONE,mem_conn_sm
+	rtn
+host_create_conn_auth_pair_true:
+	fetch 1,mem_link_key_exists
+	branch host_create_conn_auth_pair_nokey,blank
+	fetch 1,mem_lmp_conn_state
+	rtnbit0 SENT_SETUP_COMPLETE
+	rtnbit0 RECEIVED_SETUP_COMPLETE
+	fetch 4,mem_aurand_send_delay_time
+	arg 100,temp
+	iadd temp,temp
+	copy clkn_bt,pdata
+	isub temp,null
+	nrtn positive
+	branch host_create_conn_auth
+
+host_create_conn_auth_pair_nokey:
+	jam CONN_SM_PAIRING,mem_conn_sm
+	jam 4,mem_pin_length
+	setarg 0x3030
+	store 2,mem_pin
+	istore 2,contw
+	jam pincode_state_pincode_ready,mem_pincode_state
+	branch host_create_conn_pairing
+
+host_create_conn_auth_pair_wait:
+	rtn
+host_create_conn_encrypt:
+	fetch 1,mem_connection_options
+	bbit1 CONNECTION_ENCRYPT,host_create_conn_encrypt_start
+	jam CONN_SM_DONE,mem_conn_sm
+	rtn 
+
+host_create_conn_encrypt_start:
+	fetch 1,mem_connection_options
+	set0 CONNECTION_ENCRYPT,pdata
+	store 1,mem_connection_options
+	jam LMP_ENCRYPTION_MODE_REQ,mem_lmo_opcode2  
+	rtn
+
+host_create_conn_encrypt_wait:
+	fetch 1, mem_wait_encryption
+	rtn blank
+	jam CONN_SM_STANDBY,mem_conn_sm
+	branch host_create_conn_encrypt_start 
+
+host_create_conn_encrypt_wait_clear:
+	jam CONN_SM_SEND_SETUP_COMPLETE,mem_conn_sm
+	rtn 
+
+host_auth:
+	fetch 1,mem_op
+	bbit1 op_inrand_req,remote_auth
+	call tid_initiate
+	jam LMP_IN_RAND,mem_lmo_opcode2
+	branch cmd_exit
+remote_auth:
+	fetch 1,mem_op
+	set0 op_inrand_req,pdata
+	store 1,mem_op
+	call lmp_accept_inrand
+	call tid_set_reply
+	branch cmd_exit
+
+pincode_reinit:
+	setarg 4
+	store 1,mem_pin_length
+	setarg 0x3030
+	istore 2,contw
+	istore 2,contw
+	rtn
+	
+
Index: program/mesh_protocol_stack/mesh_access_layer.prog
===================================================================
--- /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/program/mesh_protocol_stack/mesh_access_layer.prog	(nonexistent)
+++ /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/program/mesh_protocol_stack/mesh_access_layer.prog	(working copy)
@@ -0,0 +1,129 @@
+
+/*
+	mesh协议中access layer
+	主要是负责mesh中access layer数据的解析
+*/
+
+/*
+	access layer解析指令集
+*/
+//input:alarm is upper transport access ptr
+ali_mesh_access_layer_check_access_message_opcode:
+	bpatchx patch3d_6,mem_patch3d
+	call logging_tx_info_receive_access_message
+	fetch 2,mem_mesh_cb_receive_access_message
+	call callback_func
+	ifetch 1,alarm
+	beq MESH_MESSAGE_OPCODE_CONFIG_APPKEY_ADD,ali_mesh_access_layer_message_opcode_config_AppKey_Add
+	beq MESH_CONFIGURATION_AND_HEALTH_MESSAGE_OPCODE_HEADER,ali_mesh_access_layer_config_or_health_message_opcode
+	beq MESH_MODULE_MESSAGE_OPCODE_HEADER,ali_mesh_model_layer_check_model_message_opcode
+	beq VENDOR_MESSAGE_ATTR_SET,ali_mesh_ali_vendor_message_attribute_set
+//	beq VENDOR_MESSAGE_ATTR_GET,ali_mesh_ali_vendor_message_opcode_timer_request
+	rtn
+
+
+
+/*
+	接收到config AppKey Add指令
+*/
+ali_mesh_access_layer_message_opcode_config_AppKey_Add:
+	ifetch 3,contr
+	store 3,mem_mesh_NETKeyindex_and_APPKeyindex
+	arg mem_mesh_application_key,contw
+	call memcpy16
+	jam PAIRED_STATUS,mem_mesh_provisioned_flag
+	
+	call ali_mesh_encrypt_base_function_k4
+	call ali_mesh_access_layer_finish_pairing_init_subscription_list
+	fetch 2,mem_mesh_cb_receive_config_appkey_add
+	call callback_func
+
+ali_mesh_access_layer_send_config_AppKey_status:
+	setarg MESH_CONFIGURATION_AND_HEALTH_MESSAGE_OPCODE_HEADER
+	store 1,mem_mesh_access_layer_payload
+	setarg MESH_MESSAGE_OPCODE_CONFIG_CONFIG_MODEL_PUBLICATION_SET
+	istore 1,contw
+	setarg STATUS_CODE_SUCCESS
+	istore 1,contw
+	fetch 3,mem_mesh_NETKeyindex_and_APPKeyindex
+	istore 3,contw
+	jam 6,mem_mesh_access_layer_payload_len
+	branch ali_mesh_upper_transport_layer_send_access_message
+
+
+ali_mesh_access_layer_finish_pairing_init_subscription_list:
+	fetch 2,mem_mesh_core_feature
+	rtnbit1 MESH_FEATURE_DISABLE_SUBSCRIPTION
+	call mesh_get_element_info_config
+ali_mesh_access_layer_finish_pairing_init_subscription_list_loop:
+	add rega,ELEMENT_DEVICE_SUBSCRIPTION_LABEL,regc
+	setarg -1
+	istore SUBSCRIPTION_MAX_COUNT,regc
+	istore SUBSCRIPTION_MAX_COUNT,contw
+	ifetch 2,rega
+	istore 2,regc
+	copy regb,pdata
+	iadd rega,rega
+	loop ali_mesh_access_layer_finish_pairing_init_subscription_list_loop
+	fetch 2,mem_mesh_cb_subscriptuion_list_changed
+	branch callback_func
+
+
+/*
+	generic onoff status
+*/
+ali_mesh_access_layer_send_generic_onoff_status:
+	setarg MESH_MODULE_MESSAGE_OPCODE_HEADER
+	store 1,mem_mesh_access_layer_payload
+	setarg MESH_MODULE_MESSAGE_OPCODE_GENERIC_ONOFF_STATUS_NO_HEAD
+	istore 1,contw
+	fetch 1,mem_mesh_generic_onoff_set_payload_OnOff
+	istore 1,contw
+	jam 3,mem_mesh_access_layer_payload_len
+	branch ali_mesh_upper_transport_layer_send_access_message
+
+
+/*
+	light lightness status
+*/
+ali_mesh_access_layer_send_light_lightness_status:
+	setarg MESH_MODULE_MESSAGE_OPCODE_HEADER
+	store 1,mem_mesh_access_layer_payload
+	setarg MESH_MODULE_MESSAGE_OPCODE_LIGHT_LIGHTNESS_STATUS_NO_HEAD
+	istore 1,contw
+	fetch 2,mem_mesh_light_lightness_set_payload_lightness
+	istore 2,contw
+	jam 4,mem_mesh_access_layer_payload_len
+	branch ali_mesh_upper_transport_layer_send_access_message
+
+
+ali_mesh_access_layer_send_light_ctl_stauts:
+	setarg MESH_MODULE_MESSAGE_OPCODE_HEADER
+	store 1,mem_mesh_access_layer_payload
+	setarg MESH_MODULE_MESSAGE_OPCODE_LIGHT_CTL_STATUS_NO_HEAD
+	istore 1,contw
+	fetch 4,mem_mesh_CTL_Lightness
+	istore 4,contw
+	jam 6,mem_mesh_access_layer_payload_len
+	branch ali_mesh_upper_transport_layer_send_access_message
+
+
+
+ali_mesh_access_layer_send_scene_status:
+	setarg MESH_MODULE_MESSAGE_OPCODE_SCENE_STATUS
+	store 1,mem_mesh_access_layer_payload
+	setarg MESH_SUCCESS
+	istore 1,contw
+	fetch 2,mem_mesh_scene_recall_payload_scene_number
+	istore 2,contw
+	jam 4,mem_mesh_access_layer_payload_len
+	branch ali_mesh_upper_transport_layer_send_access_message
+
+
+
+logging_tx_info_receive_access_message:
+	fetchr loopcnt,1,mem_ccm_data_len
+	copy alarm,rega
+	arg MESH_ACCESS_RECEIVE_MESSAGE,regb
+	branch logging_tx_info
+
Index: program/mesh_protocol_stack/mesh_ali_vendor_message.prog
===================================================================
--- /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/program/mesh_protocol_stack/mesh_ali_vendor_message.prog	(nonexistent)
+++ /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/program/mesh_protocol_stack/mesh_ali_vendor_message.prog	(working copy)
@@ -0,0 +1,491 @@
+
+/*
+	mesh协议中ali vendor message resolve
+	主要是阿里自定义attribute set 指令设置
+*/
+
+
+/*
+	主要是阿里定时设置模块指令解析
+	其他非标的指令设置
+*/
+ali_mesh_ali_vendor_message_attribute_set:
+	call ali_mesh_ali_vendor_message_attrbute_check_company_id_and_tid
+	nrtn user
+	ifetch 2,contr
+	arg VENDOR_MESSAGE_ATTR_TYPE_MAIN_LIGHT,temp
+	isub temp,null	//主灯控制
+	branch ali_mesh_ali_vendor_message_attribute_set_main_light,zero
+	arg VENDOR_MESSAGE_ATTR_TYPE_BACKGROUND_LIGHT,temp
+	isub temp,null	//背光灯控制
+	branch ali_mesh_ali_vendor_message_attribute_set_background_light,zero
+	arg VENDOR_MESSAGE_ATTR_TYPE_COLOR,temp
+	isub temp,null	//颜色控制
+	branch ali_mesh_ali_vendor_message_attribute_set_color,zero
+	arg VENDOR_MESSAGE_ATTR_TYPE_TIME,temp
+	isub temp,null	//设置设备的时间
+	branch ali_mesh_ali_vendor_message_opcode_timer_set_curr_time,zero
+	arg VENDOR_MESSAGE_ATTR_TYPE_TIMING,temp
+	isub temp,null
+	branch ali_mesh_ali_vendor_message_opcode_timer_set_timing,zero
+	arg VENDOR_MESSAGE_ATTR_TYPE_CYCLE_TIMING, temp
+	isub temp, null
+	branch ali_mesh_ali_vendor_message_opcode_timer_set_timing_cyclically, zero
+	arg VENDOR_MESSAGE_ATTR_TYPE_DELETE_TIMING,temp
+	isub temp,null
+	branch ali_mesh_ali_vendor_message_opcode_timer_selete_timing,zero
+	rtn
+
+ali_mesh_ali_vendor_message_attrbute_check_company_id_and_tid:
+	call disable_user
+	ifetch 2,contr
+	arg VENDOR_MESSAGE_OPCODE_COMPANY_ID,temp
+	isub temp,null
+	nrtn zero
+	copy contr,rega
+	fetcht 1,mem_mesh_vendor_mesh_receive_tid
+	ifetch 1,rega
+	isub temp,null
+	rtn zero
+	store 1,mem_mesh_vendor_mesh_receive_tid
+	branch enable_user
+
+ali_mesh_ali_vendor_message_attribute_set_main_light:
+	ifetch 1,contr
+	store 1,mem_mesh_main_light_OnOff
+	call ali_mesh_ali_vendor_message_status_add_head
+	fetch 1,mem_mesh_main_light_OnOff
+	istore 1,contw
+	jam 7,mem_mesh_access_layer_payload_len
+	call ali_mesh_upper_transport_layer_send_access_message
+	fetch 2,mem_mesh_cb_main_light_onoff_set
+	branch callback_func
+
+
+ali_mesh_ali_vendor_message_attribute_set_background_light:
+	ifetch 1,contr
+	store 1,mem_mesh_background_light_OnOff
+	call ali_mesh_ali_vendor_message_status_add_head
+	fetch 1,mem_mesh_background_light_OnOff
+	istore 1,contw
+	jam 7,mem_mesh_access_layer_payload_len
+	call ali_mesh_upper_transport_layer_send_access_message
+	fetch 2,mem_mesh_cb_background_onoff_set
+	branch callback_func
+
+ali_mesh_ali_vendor_message_attribute_set_color:
+	ifetch 6,contr
+	store 6,mem_mesh_color_lightness
+	call ali_mesh_ali_vendor_message_status_add_head
+	fetch 6,mem_mesh_color_lightness
+	istore 6,contw
+	jam 12,mem_mesh_access_layer_payload_len
+	call ali_mesh_upper_transport_layer_send_access_message
+	fetch 2,mem_mesh_cb_color_set
+	branch callback_func
+
+
+/*
+	阿里定时模块代码
+*/
+ali_mesh_ali_vendor_message_opcode_timer_set_curr_time:
+	ifetch 4,contr
+	store 4,mem_mesh_vendor_timer_current_time
+	call ali_mesh_time_init_system_time
+	call ali_mesh_ali_vendor_message_status_add_head
+	fetch 4,mem_mesh_vendor_timer_current_time
+	istore 4,contw
+	jam 10,mem_mesh_access_layer_payload_len
+	branch ali_mesh_upper_transport_layer_send_access_message
+
+
+ali_mesh_ali_vendor_message_opcode_timer_set_timing:
+	ifetcht 8,contr
+	storet 8,mem_mesh_vendor_timer_timing_index
+	arg VENDOR_MESSAGE_ATTR_TYPE_TIMING,temp
+	call ali_mesh_ali_vendor_message_status_add_head
+	fetch 8,mem_mesh_vendor_timer_timing_index
+	istore 8,contw
+	jam 14,mem_mesh_access_layer_payload_len
+	call ali_mesh_upper_transport_layer_send_access_message
+	call ali_mesh_ali_vendor_message_calc_timing_address
+	rtn blank
+	fetch 1,mem_mesh_vendor_timer_timing_index
+	call ali_mesh_vendor_timer_buffer_offset_cal
+	fetcht 8,mem_mesh_vendor_timer_timing_index
+	istoret 8,contw
+ali_mesh_ali_vendor_message_cb_timing_changed:
+	fetch 2,mem_mesh_cb_vendor_timing_changed
+	branch callback_func
+
+ali_mesh_ali_vendor_message_opcode_timer_set_timing_cyclically:
+	ifetch 7,contr
+	store 7,mem_mesh_vendor_timer_timing_index_cyclic
+	arg VENDOR_MESSAGE_ATTR_TYPE_CYCLE_TIMING, temp
+	call ali_mesh_ali_vendor_message_status_add_head
+	fetch 7,mem_mesh_vendor_timer_timing_index_cyclic
+	istore 7,contw
+	jam 13,mem_mesh_access_layer_payload_len
+	call ali_mesh_upper_transport_layer_send_access_message
+	call ali_mesh_ali_vendor_message_calc_timing_address
+	rtn blank
+	jam TIMER_CYCLICAL_FALG,mem_mesh_vendor_timer_timing_cyclic_flag
+	fetch 1,mem_mesh_vendor_timer_timing_index_cyclic
+	call ali_mesh_vendor_timer_buffer_offset_cal
+	fetch 8,mem_mesh_vendor_timer_timing_index_cyclic    //取8个Bytes，包括标识周期定时的flag
+	istore 8,contw
+	branch ali_mesh_ali_vendor_message_cb_timing_changed
+
+
+ali_mesh_ali_vendor_message_opcode_timer_selete_timing:
+	ifetcht 1,contr
+	storet 1,mem_mesh_vendor_timer_timing_index
+	arg VENDOR_MESSAGE_ATTR_TYPE_DELETE_TIMING, temp
+	call ali_mesh_ali_vendor_message_status_add_head
+	fetch 1,mem_mesh_vendor_timer_timing_index
+	istore 1,contw
+	jam 7,mem_mesh_access_layer_payload_len
+	call ali_mesh_upper_transport_layer_send_access_message
+	call ali_mesh_ali_vendor_message_calc_timing_address
+	rtn blank
+	fetch 1, mem_mesh_vendor_timer_timing_index
+	rtn blank
+	call ali_mesh_vendor_timer_buffer_offset_cal
+	arg 0, temp
+	istoret 1, contw
+	branch ali_mesh_ali_vendor_message_cb_timing_changed
+
+
+ali_mesh_vendor_timer_buffer_offset_cal:
+	pincrease -1
+	lshift3 pdata,pdata
+	iadd contw,contw
+	rtn
+
+
+ali_mesh_ali_vendor_message_calc_timing_address:
+	call mesh_get_element_info_config
+	add rega,ELEMENT_DEVICE_VENDOR_TIME_PTR,rega
+	fetch 1,mem_mesh_receive_element_number
+	imul32 regb,pdata
+	iadd rega,rega
+	ifetch 2,rega
+	copy pdata,contw
+	rtn
+
+
+
+/*
+	阿里mesh自定义status,被动回复SET或者GET状态
+*/
+
+ali_mesh_ali_vendor_message_status_add_head:
+	setarg VENDOR_MESSAGE_ATTR_STATUS
+	store 1,mem_mesh_access_layer_payload
+	setarg VENDOR_MESSAGE_OPCODE_COMPANY_ID
+	istore 2,contw
+	fetch 1,mem_mesh_vendor_mesh_receive_tid
+	istore 1,contw
+	istoret 2,contw
+	rtn
+
+
+/*
+	阿里mesh自定义indication，主动上报状态给天猫精灵
+	DST:0x00f0
+*/
+//开关上电
+ali_mesh_ali_vendor_message_opcode_device_power_on:
+	arg 0,queue
+	arg VENDOR_MESSAGE_EVENT_DEVICE_POWER_ON,temp
+	arg VENDOR_ATTR_TYPE_EVENT_TRIGGER,rega
+	branch ali_mesh_ali_vendor_message_opcode_para_uint8
+
+
+//上报开关状态
+//input:temp is generic onoff status
+//0 GENERIC_ONOFF_CMD_OFF
+//1 GENERIC_ONOFF_CMD_ON
+//input:queue is element number
+//e.g 灯queue0
+//风扇灯中灯0，风扇1
+//风扇:0
+ali_mesh_ali_vendor_message_opcode_generic_OnOff:
+	arg VENDOR_ATTR_GENERIC_ONOFF_SERVER,rega
+	branch ali_mesh_ali_vendor_message_opcode_para_uint8
+
+//上报模式给天猫精灵
+//input: temp is scene server mode
+ali_mesh_ali_vendor_message_opcode_scene_server_first_element:
+	arg 0,queue
+//上报模式给天猫精灵
+//input: temp is scene server mode
+//queue is element_number
+ali_mesh_ali_vendor_message_opcode_scene_server:
+	arg VENDOR_ATTR_SCENE_SERVER,rega
+	branch ali_mesh_ali_vendor_message_opcode_para_uint16
+
+
+ali_mesh_ali_vendor_message_opcode_main_light_OnOff_first_element:
+	arg 0,queue
+//上报主灯开关状态
+//input:temp is generic onoff status
+//0 GENERIC_ONOFF_CMD_OFF
+//1 GENERIC_ONOFF_CMD_ON
+//input:queue is element number
+ali_mesh_ali_vendor_message_opcode_main_light_OnOff:
+	arg VENDOR_ATTR_MAIN_LIGHT_SERVER,rega
+	branch ali_mesh_ali_vendor_message_opcode_para_uint8
+
+ali_mesh_ali_vendor_message_opcode_background_light_OnOff_first_element:
+	arg 0,queue
+//上报背光灯开关状态
+//input:temp is generic onoff status
+//0 GENERIC_ONOFF_CMD_OFF
+//1 GENERIC_ONOFF_CMD_ON
+//input:queue is element number
+ali_mesh_ali_vendor_message_opcode_background_light_OnOff:
+	arg VENDOR_ATTR_BACKGROUND_LIGHT_ONOFF_SERVER,rega
+	branch ali_mesh_ali_vendor_message_opcode_para_uint8
+
+ali_mesh_ali_vendor_message_opcode_brightness_first_element:
+	arg 0,queue
+//上报灯的亮度
+//input:temp is bright ness 0-100
+ali_mesh_ali_vendor_message_opcode_brightness:
+	call ali_mesh_model_layer_message_calc_actual_lightness
+	arg VENDOR_ATTR_LIGHTNESS_LEVEL_SERVER,rega
+	branch ali_mesh_ali_vendor_message_opcode_para_uint16
+
+ali_mesh_ali_vendor_message_opcode_color_temperature_first_element:
+	arg 0,queue
+//上报灯的亮度
+//input:temp is bright ness 0-100
+ali_mesh_ali_vendor_message_opcode_color_temperature:
+	call ali_mesh_model_layer_message_calc_actual_temperature
+	arg VENDOR_ATTR_COLOR_TEMPERATURE_SERVER,rega
+	branch ali_mesh_ali_vendor_message_opcode_para_uint16
+
+
+//input:temp is timing index number
+ali_mesh_ali_vendor_message_opcode_timing_finish:
+	lshift temp,temp
+	or temp,VENDOR_MESSAGE_EVENT_FINISH_TIMING,temp
+	arg VENDOR_ATTR_TYPE_EVENT_TRIGGER,rega
+	branch ali_mesh_ali_vendor_message_opcode_para_uint16
+
+
+ali_mesh_ali_vendor_message_indication_info_add_head_event_trigger:
+	call ali_mesh_ali_vendor_message_indication_info_add_head
+	setarg VENDOR_ATTR_TYPE_EVENT_TRIGGER
+	istore 2,contw
+	rtn
+
+//input:queue is element number
+//rega is vendor model attr
+//temp is vendor model attr parameter 
+ali_mesh_ali_vendor_message_opcode_para_uint8:
+	call ali_mesh_ali_vendor_message_indication_info_add_head
+	istorer rega,2,contw
+	istoret 1,contw
+	jam 7,mem_mesh_access_layer_payload_len
+	branch ali_mesh_ali_vendor_message_send_message
+
+
+//input:queue is element number
+//rega is vendor model attr
+//temp is vendor model attr parameter 
+ali_mesh_ali_vendor_message_opcode_para_uint16:
+	call ali_mesh_ali_vendor_message_indication_info_add_head
+	istorer rega,2,contw
+	istoret 2,contw
+	jam 8,mem_mesh_access_layer_payload_len
+	branch ali_mesh_ali_vendor_message_send_message
+
+
+//input:queue is element number
+ali_mesh_ali_vendor_message_send_message:
+	call ali_mesh_more_element_calc_queue_address
+	branch ali_mesh_upper_transport_layer_send_access_message_without_cleat_tx_buffer
+
+
+ali_mesh_ali_vendor_message_indication_info_add_head:
+	fetch 1,mem_mesh_transport_AID
+	store 1,mem_mesh_message_Transport_Head
+	setarg VENDOR_MESSAGE_TMALL_DST
+	store 2,mem_mesh_send_message_DST
+	fetch 1,mem_mesh_vendor_mesh_send_tid
+	pincrease 1
+	store 1,mem_mesh_vendor_mesh_send_tid
+	beq VENDOR_MESSAGE_SEND_TID_MAX,ali_mesh_ali_vendor_message_indication_info_reset_tid
+	setarg VERDOR_MESSAGE_ATTR_INDICATION
+	store 1,mem_mesh_access_layer_payload
+	setarg VENDOR_MESSAGE_OPCODE_COMPANY_ID
+	istore 2,contw
+	fetch 1,mem_mesh_vendor_mesh_send_tid
+	istore 1,contw
+	rtn
+
+ali_mesh_ali_vendor_message_indication_info_reset_tid:
+	jam VENDOR_MESSAGE_SEND_TID_MIN,mem_mesh_vendor_mesh_send_tid
+	rtn
+
+/*
+	阿里定时函数
+*/
+ali_mesh_time_function:
+	copy clkn_bt,temp
+	fetch 4,mem_system_time
+	isub temp,null
+	call ali_mesh_timer_timeout,positive
+	call ali_mesh_clkn_bt_add_1s
+	isub temp,null	
+	rtn positive
+	call ali_mesh_time_init_system_time_without_clk
+	fetch 4,mem_mesh_vendor_timer_current_time
+	pincrease 1
+	store 4,mem_mesh_vendor_timer_current_time
+	branch ali_mesh_ali_vendor_check_time
+
+
+ali_mesh_time_init_system_time:
+	copy clkn_bt,pdata
+ali_mesh_time_init_system_time_without_clk:
+	store 4,mem_system_time
+	fetch 1,mem_system_time+3
+	and_into 0x0f,pdata
+	store 1,mem_system_time+3
+	rtn
+
+ali_mesh_timer_timeout:
+	rtn zero
+	copy pdata,regb
+	setarg 0x100000
+	lshift8 pdata,pdata
+	iadd temp,temp
+	copy regb,pdata
+	rtn
+
+ali_mesh_clkn_bt_add_1s:
+	arg 20,loopcnt
+ali_mesh_time_loop:	
+	pincrease 160
+	loop ali_mesh_time_loop	
+	rtn
+
+ali_mesh_ali_vendor_check_time:
+	call mesh_get_element_info_config
+	add rega,ELEMENT_DEVICE_VENDOR_TIME_PTR,rega
+	jam 0,mem_mesh_receive_element_number
+
+ali_mesh_ali_vendor_check_time_loop:
+	call ali_mesh_more_element_push_stack
+	ifetch 2,rega
+	branch ali_mesh_ali_vendor_check_time_next_element,blank
+	copy pdata,alarm
+	call ali_mesh_ali_vendor_check_time_one_element
+ali_mesh_ali_vendor_check_time_next_element:
+	call ali_mesh_more_element_pop_stack
+	fetch 1,mem_mesh_receive_element_number
+	pincrease 1
+	store 1,mem_mesh_receive_element_number
+	fetcht 1,mem_mesh_element_number
+	isub temp,pdata
+	rtn zero	//check all
+	copy regb,pdata
+	iadd rega,rega
+	branch ali_mesh_ali_vendor_check_time_loop
+
+ali_mesh_ali_vendor_check_time_one_element:
+	arg 40,loopcnt
+//timer loop:input loopcnt timer count
+//alarm timer address
+//mem_mesh_receive_element_number:element number
+ali_mesh_ali_vendor_check_time_one_element_loop:
+	copy loopcnt,pdata
+	store 1,mem_mesh_loopcnt_tmep
+	ifetch 1,alarm
+	ncall ali_mesh_ali_vendor_had_timing,blank 
+	increase 8,alarm
+	fetch 1,mem_mesh_loopcnt_tmep
+	copy pdata,loopcnt
+	loop ali_mesh_ali_vendor_check_time_one_element_loop
+	rtn
+
+ali_mesh_ali_vendor_had_timing:
+	ifetcht 8, alarm
+	storet 8, mem_mesh_vendor_timer_timing_index_cyclic    //作为每次检测的临时存储
+	fetch 1,mem_mesh_vendor_timer_timing_attr_para
+	beq TIMER_CYCLICAL_FALG, ali_mesh_ali_vendor_had_timing_cyclically
+	fetcht 4,mem_mesh_vendor_timer_current_time
+	fetch 4, mem_mesh_vendor_timer_timing_time
+	isub temp,null
+	fetch 1, mem_mesh_vendor_timer_timing_attr_para
+	branch ali_mesh_ali_vendor_time_timeout,zero
+	rtn
+
+ali_mesh_ali_vendor_time_timeout:
+	store 1,mem_mesh_generic_onoff_set_payload_OnOff
+	
+	fetch 2,mem_mesh_cb_generic_onoff_set
+	call callback_func
+
+	copy alarm,pdata
+	store 2,mem_mesh_alarm_temp
+
+	fetchr queue,1,mem_mesh_receive_element_number
+	ifetcht 1,alarm
+	call ali_mesh_ali_vendor_message_opcode_timing_finish
+
+	fetcht 1,mem_mesh_generic_onoff_set_payload_OnOff
+	fetchr queue,1,mem_mesh_receive_element_number
+	call ali_mesh_ali_vendor_message_opcode_generic_OnOff
+
+	fetch 2,mem_mesh_alarm_temp
+	copy pdata,alarm
+	setarg 0
+	istore 1,alarm
+	branch ali_mesh_ali_vendor_message_cb_timing_changed
+
+
+ali_mesh_ali_vendor_had_timing_cyclically:
+	fetch 4, mem_mesh_vendor_timer_current_time
+	arg SECONDS_OF_MIN, temp
+	idiv temp
+	call wait_div_end
+	remainder pdata
+	nrtn blank
+
+	fetch 4, mem_mesh_vendor_timer_current_time
+	arg SECONDS_OF_FOUR_DAYS, temp
+	isub temp, pdata      //格林威治时间1970年01月01日为周四,  这里减去四天，为了与周一对齐
+
+	arg SECONDS_OF_WEEK, temp
+	idiv temp
+	call wait_div_end
+	remainder pdata     //pdata:本周走过的秒数
+	arg SECONDS_OF_DAY, temp
+	idiv temp
+	call wait_div_end
+	remainder rega     //rega:当天走过的秒数
+	quotient queue    //queue:当前是周几；0:周一；1:周二；... ...6:周日
+	
+	setarg 0    //clear pdata
+	qset1 pdata
+	fetcht 1, mem_mesh_vendor_timer_timing_weekdays_cyclic
+	iand temp, pdata
+	rtn blank
+	deposit rega
+	arg SECONDS_OF_MIN, temp
+	idiv temp
+	call wait_div_end
+	quotient temp
+	setarg EIGHT_HOURS_TIME_ZONE_OFFSET
+	iadd temp, temp
+	fetch 2, mem_mesh_vendor_timer_timing_time_cyclic
+	isub temp, null
+	nrtn zero
+	fetch 1, mem_mesh_vendor_timer_timing_attr_para_cyclic
+	branch ali_mesh_ali_vendor_time_timeout
+
+
Index: program/mesh_protocol_stack/mesh_bearer_layer.prog
===================================================================
--- /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/program/mesh_protocol_stack/mesh_bearer_layer.prog	(nonexistent)
+++ /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/program/mesh_protocol_stack/mesh_bearer_layer.prog	(working copy)
@@ -0,0 +1,40 @@
+
+/*
+	mesh协议中bearer layer
+	主要是负责mesh中实际发送数据包内容
+*/
+
+ali_mesh_bearer_layer_send_packet_by_network_layer:
+	bpatchx patch3d_7,mem_patch3d
+	jam 1,mem_mesh_adv_enable
+	setarg 150	//about 3s
+	store 1,mem_mesh_queue_ele_timeout
+
+	fetch 1,mem_mesh_lower_transport_layer_payload_len
+	pincrease 11
+	add pdata,-2,loopcnt
+	//长度+11的原因
+	//uint8_t AD length
+	//uint8_t AD type:GAP_ADTYPE_MESH_MESSAGE
+	//uint8_t IVI & NID
+	//uint8_t CTL & TTL
+	//uint24_t SEQ
+	//uint16_t SRC
+	//uint16_t DST
+	store 1,mem_mesh_queue_ele_len
+	pincrease -1
+	//-1的原因
+	//uint8_t AD length
+	istore 1,contw
+	setarg GAP_ADTYPE_MESH_MESSAGE
+	istore 1,contw
+	arg mem_mesh_send_upper_layer_IVI_and_NID,contr
+	call memcpy_fast
+	fetch 1,mem_mesh_gatt_package_send_msg_id
+	pincrease 1
+	store 1,mem_mesh_queue_ele_packet_id
+	store 1,mem_mesh_gatt_package_send_msg_id
+	arg mem_mesh_queue_ele_temp,rega
+	branch queue_push
+
+
Index: program/mesh_protocol_stack/mesh_ble_core_advertising.prog
===================================================================
--- /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/program/mesh_protocol_stack/mesh_ble_core_advertising.prog	(nonexistent)
+++ /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/program/mesh_protocol_stack/mesh_ble_core_advertising.prog	(working copy)
@@ -0,0 +1,242 @@
+
+/*
+	mesh 发送和接收advertising包的接口
+*/
+
+mesh_send_advertising:
+	fetch 1,mem_mesh_adv_enable
+	rtn blank
+	fetch 1,mem_mesh_provisioned_flag
+	beq PAIRED_STATUS,mesh_send_advertising_network_packet
+	beq UNPROVISIONED_BEACON_STATUS,mesh_send_advertising_unprovisioned_beacon_packet
+mesh_send_advertising_pairing_packet:
+	fetch 1,mem_mesh_adv_enable
+	branch ali_mesh_advertising_reset_adv_timer,blank
+	call ali_mesh_advertising_timer
+	branch mesh_le_send_adv
+
+mesh_send_advertising_unprovisioned_beacon_packet:
+	call mesh_send_Unprovisioned_Beacons_tmall
+	branch ali_mesh_advertising_send_Unprovisioned_Beacons_Gatt
+
+mesh_send_advertising_network_packet:
+	fetch 1,mem_mesh_adv_enable
+	rtn blank
+	arg mesh_adv_timer,queue
+	call timer_check
+	nrtn blank
+	jam 0,mem_mesh_adv_enable
+	call mesh_get_element_info_config
+	add rega,ELEMENT_DEVICE_QUEUE_BUFFER,rega
+mesh_send_advertising_network_packet_loop:
+	storer rega,2,mem_queue_ptr
+	call queue_empty
+	ncall mesh_send_advertising_network_packet_element,blank
+	copy regb,pdata
+	iadd rega,rega
+	loop mesh_send_advertising_network_packet_loop
+	arg mesh_adv_timer,queue
+	fetch 2,mem_mesh_adv_interval
+	branch timer_init
+
+
+mesh_send_advertising_network_packet_element:
+	jam 1,mem_mesh_adv_enable
+	call ali_mesh_more_element_push_stack
+	arg mem_mesh_queue_ele_temp,rega
+	call queue_get_new_ele
+	fetch 1,mem_mesh_queue_ele_timeout
+	pincrease -1
+	istore 1,regb
+	call queue_pop,blank
+	arg mem_mesh_queue_ele_len,contr
+	arg mem_mesh_adv_data_len,contw
+	call memcpy32
+	call mesh_le_send_adv
+	call mesh_send_advertising_network_packet_element_ios_data
+	branch ali_mesh_more_element_pop_stack
+
+mesh_send_advertising_network_packet_element_ios_data:
+	fetch 1,mem_mesh_queue_ele_packet_id
+	store 1,mem_mesh_receive_service_uuid_ios_data_msg_id
+	fetch 1,mem_mesh_queue_ele_len
+	pincrease -2	//uint8_t AD length & uint8_t AD type:GAP_ADTYPE_MESH_MESSAGE
+	store 1,mem_mesh_queue_ele_len
+	setarg mem_mesh_queue_ele_payload+2
+	store 2,mem_mesh_queue_ele_timeout
+	setarg COMPANY_ID_ALIBABA_AND_VID_GATT
+	store 3,mem_mesh_receive_service_uuid_ios_data_company_id
+	setarg PROVISIONING_SEND_IOS_DATA
+	store 1,mem_mesh_receive_service_uuid_ios_data_provisioning_type
+	fetch 1,mem_k2_NID
+	store 1,mem_mesh_receive_service_uuid_ios_data_NID
+	fetch 1,mem_mesh_queue_ele_len
+	div pdata,0x12
+	call wait_div_end
+	remainder pdata
+	quotient temp
+	ncall mesh_send_advertising_network_packet_element_ios_data_add_1,blank
+	lshift4 temp,pdata
+	pincrease 1
+	store 1,mem_mesh_receive_service_uuid_ios_data_package_num
+	
+mesh_send_advertising_network_packet_element_ios_data_loop:
+	fetch 1,mem_mesh_queue_ele_len
+	rtn blank
+	arg 0x12,temp
+	call not_greater_than
+	copy pdata,temp
+	fetch 1,mem_mesh_queue_ele_len
+	isub temp,pdata
+	store 1,mem_mesh_queue_ele_len
+	storet 1,mem_mesh_receive_service_uuid_ios_data_length
+	add temp,13,pdata
+	store 1,mem_mesh_adv_data_len
+	setarg 0x02
+	store 1,mem_mesh_adv_data
+	setarg GAP_ADTYPE_FLAGS
+	istore 1,contw
+	setarg 0x02
+	istore 1,contw
+	add temp,9,pdata
+	istore 1,contw
+	setarg 0xff
+	istore 1,contw
+	fetch 8,mem_mesh_receive_service_uuid_ios_data_company_id
+	istore 8,contw
+	copy temp,loopcnt
+	fetch 2,mem_mesh_queue_ele_timeout
+	copy pdata,contr
+	call memcpy
+	copy contr,pdata
+	store 2,mem_mesh_queue_ele_timeout
+	fetch 1,mem_mesh_receive_service_uuid_ios_data_package_num
+	pincrease 1
+	store 1,mem_mesh_receive_service_uuid_ios_data_package_num
+	call mesh_le_send_adv
+	branch mesh_send_advertising_network_packet_element_ios_data_loop
+
+mesh_send_advertising_network_packet_element_ios_data_add_1:
+	increase 1,temp
+	rtn
+
+mesh_send_advertising_network_packet_element_ios_data_common:
+	rtn
+
+mesh_receive_advertising:
+	branch mesh_le_scan_adv
+
+mesh_check_ble_rx_packet:
+	fetch 1,mem_le_rxbuf
+	and pdata,0x0f,pdata
+	beq ADV_IND,ali_mesh_match_advertising_packet
+	beq ADV_NONCONN_IND,ali_mesh_match_advertising_packet
+	rtn
+
+
+ali_mesh_match_advertising_packet:
+	ifetcht 1,contr	//length
+	sub temp,ADV_PACKET_MIN_LENGTH,null
+	rtn positive	//过滤短包，包长度太短导致解析错误
+	sub temp,ADV_PACKET_MAX_LENGTH,null
+	nrtn positive	//过滤长包，包长度太长导致内存覆盖
+	add temp,-6,rega	//rega:减去address length
+	add contr,6,regb	//regb:指针偏移到regb
+
+ali_mesh_find_adv_ind_packet:
+	ifetcht 1,regb //length
+	sub temp,AD_TYPE_MIN_LENGTH,null
+	rtn positive	//过滤短包，包长度太短导致解析错误
+	sub temp,AD_TYPE_MAX_LENGTH,null
+	nrtn positive	//过滤长包，包长度太长导致内存覆盖
+	copy temp,pdata
+	rtn blank
+	bpatchx patch3e_0,mem_patch3e
+	ifetch 1,contr
+	beq GAP_ADTYPE_MANUFACTURER_SPECIFIC,ali_mesh_msd_packet
+	beq GAP_ADTYPE_MESH_MESSAGE,ali_mesh_network_layer_recevice_network_pdu
+	beq GAP_ADTYPE_128BIT_COMPLETE,ali_mesh_ios_gatt_packet
+//按照广播格式查询所有扫描到的广播数据
+	add temp,1,pdata
+	isub rega,null
+	rtn positive
+	iadd regb,regb
+	sub temp,-1,pdata
+	iadd rega,rega
+	copy rega,pdata
+	rtn blank
+	branch ali_mesh_find_adv_ind_packet
+
+
+mesh_le_scan_adv:
+	call le_enable
+	call le_init_adv
+	call mesh_le_wait_adv
+	nrtn match
+	fetch 1,mem_le_adv_rcv
+	pincrease 1
+	store 1,mem_le_adv_rcv
+	fetch 2,mem_mesh_cb_receive_advertising
+	call callback_func
+	branch le_disable
+
+mesh_le_wait_adv:
+	call mesh_le_calc_next_scan_channel
+	branch le_receive_adv
+
+mesh_le_calc_next_scan_channel:
+	fetch 1,mem_mesh_adv_scan_channel
+	pincrease 1
+	store 1,mem_mesh_adv_scan_channel
+	store 1,mem_le_ch_mapped
+	rtnne 40
+	jam 37,mem_mesh_adv_scan_channel
+	jam 37,mem_le_ch_mapped
+	rtn
+
+
+
+mesh_le_send_adv:
+	fetch 1,mem_le_adv_transmit
+	pincrease 1
+	store 1,mem_le_adv_transmit
+	call le_enable
+	arg 39,loopcnt
+	arg mem_le_txheader,contr
+	arg mem_le_txheader_mesh_temp,contw
+	call memcpy_fast
+	jam 37,mem_le_ch_mapped
+
+mesh_le_send_adv_loop:
+	call le_init_adv
+	call mesh_le_send_adv_nonconn_ind
+	random pdata 
+	arg 0x1ff,temp
+	iand temp,pdata
+	add pdata,100,pdata
+	call delay
+	fetch 1,mem_le_ch_mapped
+	pincrease 1
+	store 1,mem_le_ch_mapped
+	bne 40,mesh_le_send_adv_loop
+	
+	arg 39,loopcnt
+	arg mem_le_txheader,contw
+	arg mem_le_txheader_mesh_temp,contr
+	call memcpy_fast
+	branch le_disable
+
+mesh_le_send_adv_nonconn_ind:
+	arg ADV_NONCONN_IND,temp
+	storet 1,mem_le_txheader
+	fetcht 1,mem_mesh_adv_data_len
+	add temp,6,pdata
+	store 1,mem_le_txlen
+	fetch 6,mem_le_lap
+	store 6,mem_le_txpayload
+	copy temp,loopcnt
+	arg mem_mesh_adv_data,contr
+	call memcpy_fast
+	branch le_transmit_norx
+
+
Index: program/mesh_protocol_stack/mesh_chip_peripherals.prog
===================================================================
--- /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/program/mesh_protocol_stack/mesh_chip_peripherals.prog	(nonexistent)
+++ /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/program/mesh_protocol_stack/mesh_chip_peripherals.prog	(working copy)
@@ -0,0 +1,252 @@
+
+//input:mem_mesh_mic_cache_ptr is cache buffer ptr
+//data ptr is store mem_ccm_data_ptr
+//data length is store mem_ccm_data_len
+//cache space size is TRANSPORT_MIC_CACHE_SPACE_SIZE
+//cache space num is TRANSPORT_MIC_CACHE_SPACE_NUM
+//output:user is enable ,mean new packet
+ali_mesh_base_adt_cache:
+	fetcht 2,mem_ccm_data_ptr
+	fetch 1,mem_ccm_data_len
+	copy temp,contr
+	arg mem_k4_SALT,rega
+	arg mem_k4_T,alarm
+	call ali_mesh_encrypt_base_function_AES_CMAC
+	call disable_user
+	copy regc,pdata
+	iadd alarm,contr
+	fetcht 4,mem_k4_T
+	fetch 2,mem_mesh_mic_cache_ptr
+	copy pdata,rega
+//	arg mem_mesh_access_message_mic_cache,rega
+	arg TRANSPORT_MIC_CACHE_SPACE_NUM,loopcnt
+ali_mesh_base_adt_cache_loop:
+	ifetch 4,rega
+	branch ali_mesh_base_adt_cache_empty_space,blank
+	isub temp,null
+	rtn zero
+	increase TRANSPORT_MIC_CACHE_SPACE_SIZE,rega
+	loop ali_mesh_base_adt_cache_loop
+	fetch 2,mem_mesh_mic_cache_ptr
+	copy pdata,contw
+	add pdata,TRANSPORT_MIC_CACHE_SPACE_SIZE,contr
+//	arg mem_mesh_access_message_mic_cache,contw
+//	arg mem_mesh_access_message_mic_cache+TRANSPORT_MIC_CACHE_SPACE_SIZE,contr
+	arg TRANSPORT_MIC_CACHE_TOTAL_SIZE,loopcnt
+	call memcpy_fast
+	istoret 4,contw
+	branch enable_user
+ali_mesh_base_adt_cache_empty_space:
+	istoret 4,rega
+	branch enable_user
+
+/*
+	iic 读写eeprom接口
+	三元组、network key、aapplication key、device key、reset count
+	SEQ
+*/
+ali_mesh_chip_peripherals_load_data_from_eep:
+	call ali_mesh_chip_peripherals_load_three_tuple_from_eep
+	call ali_mesh_chip_peripherals_load_network_key_from_eep
+	call ali_mesh_chip_peripherals_load_application_key_from_eep
+	call ali_mesh_chip_peripherals_load_device_key_from_eep
+	call ali_mesh_chip_peripherals_load_reset_count_from_eep
+	call ali_mesh_chip_peripherals_load_seq_from_eep
+	branch ali_mesh_chip_peripherals_load_subscription_from_eep
+
+ali_mesh_chip_peripherals_load_three_tuple_from_eep:
+	arg MESH_EEP_THREE_TUPLE_LENGTH,temp
+	arg mem_mesh_three_tuple_ProductID,rega
+	arg MESH_EEP_THREE_TUPLE_OFFSET,regb
+	branch iicd_read_eep_data
+
+ali_mesh_chip_peripherals_load_network_key_from_eep:
+	arg MESH_EEP_NETWORK_KEY_LENGTH,temp
+	arg mem_mesh_Network_Key,rega
+	arg MESH_EEP_NETWORK_KEY_OFFSET,regb
+	call iicd_read_eep_data
+	fetch 1,mem_mesh_last_IV_Index_byte
+	store 1,mem_mesh_IV_Index+3
+	rtn
+
+ali_mesh_chip_peripherals_load_application_key_from_eep:
+	arg MESH_EEP_APPLICATION_KEY_LENGTH,temp
+	arg mem_mesh_application_key,rega
+	arg MESH_EEP_APPLICATION_KEY_OFFSET,regb
+	branch iicd_read_eep_data
+
+ali_mesh_chip_peripherals_load_device_key_from_eep:
+	arg MESH_EEP_DEVICE_KEY_LENGTH,temp
+	arg mem_mesh_Device_Key,rega
+	arg MESH_EEP_DEVICE_KEY_OFFSET,regb
+	branch iicd_read_eep_data
+
+ali_mesh_chip_peripherals_load_reset_count_from_eep:
+	rtn
+	arg MESH_EEP_RESET_COUNT_LENGTH,temp
+//	arg mem_mesh_switch_reset_count,rega
+	arg MESH_EEP_RESET_COUNT_OFFSET,regb
+	branch iicd_read_eep_data
+
+ali_mesh_chip_peripherals_load_seq_from_eep:
+	arg MESH_EEP_SEQ_LENGTH,temp
+	arg mem_mesh_send_message_SEQ,rega
+	arg MESH_EEP_SEQ_OFFSET,regb
+	branch iicd_read_eep_data
+
+ali_mesh_chip_peripherals_load_subscription_from_eep:
+	fetch 2,mem_mesh_core_feature
+	rtnbit1 MESH_FEATURE_DISABLE_SUBSCRIPTION
+	arg MESH_EEP_SUBSCRIPTION_TOTAL_LENGTH,temp
+	arg mem_mesh_subscription_eep_temp,rega
+	arg MESH_EEP_SUBSCRIPTION_OFFSET,regb
+	call iicd_read_eep_data
+	call mesh_get_element_info_config
+	arg mem_mesh_subscription_eep_temp,contr
+	add rega,ELEMENT_DEVICE_SUBSCRIPTION_LABEL,rega
+ali_mesh_chip_peripherals_load_subscription_from_eep_loop:
+	copy rega,contw
+	call memcpy16
+	copy regb,pdata
+	iadd rega,rega
+	loop ali_mesh_chip_peripherals_load_subscription_from_eep_loop
+	rtn
+
+mesh_receive_config_appkey_add_cb:
+	call ali_mesh_chip_peripherals_save_network_key_from_eep
+	call ali_mesh_chip_peripherals_save_application_key_from_eep
+	branch ali_mesh_chip_peripherals_save_device_key_from_eep
+
+ali_mesh_chip_peripherals_save_network_key_from_eep:
+	arg MESH_EEP_NETWORK_KEY_LENGTH,temp
+	arg mem_mesh_Network_Key,rega
+	arg MESH_EEP_NETWORK_KEY_OFFSET,regb
+	branch iicd_write_eep_data
+
+ali_mesh_chip_peripherals_save_application_key_from_eep:
+	arg MESH_EEP_APPLICATION_KEY_LENGTH,temp
+	arg mem_mesh_application_key,rega
+	arg MESH_EEP_APPLICATION_KEY_OFFSET,regb
+	branch iicd_write_eep_data
+
+ali_mesh_chip_peripherals_save_device_key_from_eep:
+	arg MESH_EEP_DEVICE_KEY_LENGTH,temp
+	arg mem_mesh_Device_Key,rega
+	arg MESH_EEP_DEVICE_KEY_OFFSET,regb
+	branch iicd_write_eep_data
+
+mem_store_new_seq_data:
+ali_mesh_chip_peripherals_save_seq_from_eep:
+	arg MESH_EEP_SEQ_LENGTH,temp
+	arg mem_mesh_send_message_SEQ,rega
+	arg MESH_EEP_SEQ_OFFSET,regb
+	branch iicd_write_eep_data
+
+mem_store_new_subscriptuion_list_data:
+ali_mesh_chip_peripherals_save_subscriptuion_list_from_eep:
+	call mesh_get_element_info_config
+	arg mem_mesh_subscription_eep_temp,contw
+	add rega,ELEMENT_DEVICE_SUBSCRIPTION_LABEL,rega
+ali_mesh_chip_peripherals_save_subscriptuion_list_from_eep_loop:
+	copy rega,contr
+	call memcpy16
+	copy regb,pdata
+	iadd rega,rega
+	loop ali_mesh_chip_peripherals_save_subscriptuion_list_from_eep_loop
+	arg MESH_EEP_SUBSCRIPTION_TOTAL_LENGTH,temp
+	arg mem_mesh_subscription_eep_temp,rega
+	arg MESH_EEP_SUBSCRIPTION_OFFSET,regb
+	branch iicd_write_eep_data
+
+
+//input:rega is tx data ptr
+//loopcnt is tx data length
+//regb is logging type
+logging_tx_debug:
+	arg LOGGING_DEBUG,temp
+	branch logging_tx_common
+
+
+//input:rega is tx data ptr
+//loopcnt is tx data length
+//regb is logging type
+logging_tx_info:
+	arg LOGGING_INFO,temp
+	branch logging_tx_common
+
+
+//input:rega is tx data ptr
+//loopcnt is tx data length
+//regb is logging type
+logging_tx_warning:
+	arg LOGGING_WARNING,temp
+	branch logging_tx_common
+
+
+//input:rega is tx data ptr
+//loopcnt is tx data length
+//regb is logging type
+logging_tx_error:
+	arg LOGGING_ERROR,temp
+	branch logging_tx_common
+
+
+//input:rega is tx data ptr
+//loopcnt is tx data length
+//regb is logging type
+logging_tx_critical:
+	arg LOGGING_CRITICAL,temp
+	branch logging_tx_common
+
+
+//input:rega is tx data ptr
+//loopcnt is tx data length
+//regb is logging type
+//temp is logging level
+logging_tx_common:
+	bpatchx patch3e_1,mem_patch3e
+	call push_stack
+	call uartb_prepare_tx_register_push
+	setarg LUA_LOG_PACKET_HEADER
+	istore 1,contwu
+	setarg LUA_LOG_PAKCET_TYPE
+	istore 1,contwu
+	add loopcnt,4,pdata
+	istore 1,contwu
+	istorer temp,2,contwu
+	istorer regb,2,contwu
+	copy rega,contr
+	call uart_copy_tx_bytes_fast
+	setarg LUA_LOG_PACKET_TRAIL
+	istore 1,contwu
+	call uartb_send_register_pop
+	branch pop_stack
+
+/*
+	function name:uart init by mem
+	input:
+		mem_module_uart_rx_buffer、mem_module_uart_rx_buffer_end
+		mem_module_uart_tx_buffer、mem_module_uart_tx_buffer_end
+		mem_module_uarta_baud_rate
+		bit0 of mem_module_flag
+*/
+mesh_uart_init:
+	setarg mem_mesh_uart_log_rx_buff
+	store 2,mem_pdatatemp
+	setarg mem_mesh_uart_log_rx_buff_end
+	istore 2,contw
+	setarg mem_mesh_uart_log_tx_buff
+	istore 2,contw
+	setarg mem_mesh_uart_log_tx_buff_end
+	istore 2,contw
+	fetch 8,mem_pdatatemp
+	call uartb_init_dma_mem
+	arg 921600,temp
+	call uartb_calc_baud_rate_config
+	call uart_clock_select_main_freq_crystal
+	arg FUN_UART_CONTROL_ENABLE|FUN_UART_CONTROL_SETTING_RATE_BAUD,temp
+	storet 1,core_uartb_ctrl
+	rtn
+
+
+
Index: program/mesh_protocol_stack/mesh_encrypt_function.prog
===================================================================
--- /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/program/mesh_protocol_stack/mesh_encrypt_function.prog	(nonexistent)
+++ /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/program/mesh_protocol_stack/mesh_encrypt_function.prog	(working copy)
@@ -0,0 +1,607 @@
+/*
+	mesh加密算法层，包含配网阶段的算法和配网后的算法
+*/
+
+
+/*
+	provision random输入，计算出provision confirmation等参数
+*/
+
+ali_mesh_encrypt_calc_random_data:
+	call ali_mesh_encrypt_calc_random_data_calc_ConfirmationKey
+	call ali_mesh_encrypt_calc_random_data_calc_AuthValueProv
+	call ali_mesh_encrypt_calc_random_data_calc_AuthValueDevice
+	call ali_mesh_encrypt_calc_random_data_calc_ConfirmationCloud
+	call ali_mesh_encrypt_calc_random_data_calc_ConfirmationDevice
+	branch ali_mesh_encrypt_calc_random_data_calc_DeviceKey
+
+//calc confirmation key
+//ConfirmationKey=SHA256(Random A||RandomB||"ConfirmationKey")[0:15]
+ali_mesh_encrypt_calc_random_data_calc_ConfirmationKey:
+	call ali_mesh_encrypt_load_randomAB_to_sha256
+	arg mem_mesh_sha256_ConfirmationKey_ascii,contr
+	arg 0xf,loopcnt
+	call ali_mesh_encrypt_base_function_sha256_load_data_without_hex2ascii
+	call ali_mesh_encrypt_base_function_sha256_calc
+	arg memresult,contr
+	arg mem_mesh_Confirmationkey,contw
+	branch memcpy16
+
+
+//calc Auth value prov
+//AuthValueProv = SHA256(PID,MAC,Secret,random B||random A)[0:15]
+ali_mesh_encrypt_calc_random_data_calc_AuthValueProv:
+	call ali_mesh_encrypt_load_three_tuple_to_sha256
+ifdef V1_2
+	call ali_mesh_encrypt_load_randomBA_to_sha256
+endif
+	call ali_mesh_encrypt_base_function_sha256_calc
+	arg memresult,contr
+	arg mem_mesh_AuthValueProv,contw
+	branch memcpy16
+
+//calc Auth Value Device
+//AuthValueDevice= SHA256(PID,MAC,Secret,random B||random A)[0:15]
+ali_mesh_encrypt_calc_random_data_calc_AuthValueDevice:
+	call ali_mesh_encrypt_load_three_tuple_to_sha256
+ifdef V1_2
+	call ali_mesh_encrypt_load_randomAB_to_sha256
+endif
+	call ali_mesh_encrypt_base_function_sha256_calc
+	arg memresult,contr
+	arg mem_mesh_AuthValueDevice,contw
+	branch memcpy16
+
+// calc Confirmation Cloud
+//Confirmation Cloud=AES-CMAC(Random B || Random A || AuthValueProv)
+//k=ConfirmationKey
+ali_mesh_encrypt_calc_random_data_calc_ConfirmationCloud:
+	fetch 8,mem_mesh_provisioning_random_A
+	store 8,mem_mesh_ConfirmationCloud_RandomA
+	fetch 8,mem_mesh_provisioning_random_B
+	store 8,mem_mesh_ConfirmationCloud_RandomB
+	
+	arg mem_mesh_calc_ConfirmationCloud_data,contr
+	arg mem_mesh_Confirmationkey,rega
+	arg mem_mesh_ConfirmationCloud,alarm
+	branch ali_mesh_encrypt_base_function_AES_CMAC_32Byte
+
+
+// calc confirmation Device
+//Confirmation Device=AES-CMAC(Random A || Random B || AuthValueDevice)
+//k=ConfirmationKey
+ali_mesh_encrypt_calc_random_data_calc_ConfirmationDevice:
+	arg mem_mesh_calc_ConfirmationDevice_data,contr
+	arg mem_mesh_Confirmationkey,rega
+	arg mem_mesh_ConfirmationDevice,alarm
+	branch ali_mesh_encrypt_base_function_AES_CMAC_32Byte
+
+
+//calc Device Key
+//DeviceKey = SHA256(ConfirmationCloud||"DeviceKey")[0:15]
+ali_mesh_encrypt_calc_random_data_calc_DeviceKey:
+	arg mem_mesh_ConfirmationCloud,contr
+	arg 0x10,loopcnt
+	call ali_mesh_encrypt_base_function_sha256_load_data_with_hex2ascii
+	arg mem_mesh_sha256_DeviceKey_ascii,contr
+	arg 9,loopcnt
+	call ali_mesh_encrypt_base_function_sha256_load_data_without_hex2ascii
+	call ali_mesh_encrypt_base_function_sha256_calc
+	arg memresult,contr
+	arg mem_mesh_Device_Key,contw
+	branch memcpy16
+
+
+ali_mesh_encrypt_load_randomBA_to_sha256:
+	call ali_mesh_encrypt_load_randomB_to_sha256
+ali_mesh_encrypt_load_randomA_to_sha256:
+	arg mem_mesh_provisioning_random_A,contr
+	branch ali_mesh_encrypt_base_function_sha256_load_data_64bit
+
+ali_mesh_encrypt_load_randomAB_to_sha256:
+	call ali_mesh_encrypt_load_randomA_to_sha256
+ali_mesh_encrypt_load_randomB_to_sha256:
+	arg mem_mesh_provisioning_random_B,contr
+	branch ali_mesh_encrypt_base_function_sha256_load_data_64bit
+
+
+ali_mesh_encrypt_load_three_tuple_to_sha256:
+	arg mem_mesh_three_tuple_ProductID,contr
+	arg 4,loopcnt
+	call ali_mesh_encrypt_base_function_sha256_load_data_with_hex2ascii_add_comma
+	arg mem_mesh_three_tuple_MAC,contr
+	arg 6,loopcnt
+	call ali_mesh_encrypt_base_function_sha256_load_data_with_hex2ascii_add_comma
+	arg mem_mesh_three_tuple_secret,contr
+	arg 0x10,loopcnt
+ifdef V1_2
+	branch ali_mesh_encrypt_base_function_sha256_load_data_with_hex2ascii_add_comma
+else
+	branch ali_mesh_encrypt_base_function_sha256_load_data_with_hex2ascii
+endif
+
+
+//calc provisioning data
+//Encrupted provisioning data = prov_data XOR SessionKey
+ali_mesh_encrypt_calc_provisioning_data:
+	call ali_mesh_encrypt_calc_provisioning_data_calc_SessionKey
+//	branch ali_mesh_encrypt_calc_provisioning_data_xor_prov_data
+ali_mesh_encrypt_calc_provisioning_data_xor_prov_data:
+	arg mem_mesh_Encrypt_Provisioning_Data,rega
+	arg memresult,regb
+	arg 0xb,loopcnt
+ali_mesh_encrypt_calc_provisioning_data_xor_prov_data_loop:
+	ifetch 2,rega
+	ifetcht 2,regb
+	ixor temp,pdata
+	istore 2,rega
+	increase 2,rega
+	increase 2,regb
+	loop ali_mesh_encrypt_calc_provisioning_data_xor_prov_data_loop
+	rtn
+
+
+//calc SessionKey
+//SessionKey = SHA256(ConfirmationCloud||"SessionKey")[0:15]
+//output:sessionKey in memresult
+ali_mesh_encrypt_calc_provisioning_data_calc_SessionKey:
+	arg mem_mesh_ConfirmationCloud,contr
+	arg 0x10,loopcnt
+	call ali_mesh_encrypt_base_function_sha256_load_data_with_hex2ascii
+	arg mem_mesh_sha256_SessionKey_ascii,contr
+	arg 0xa,loopcnt
+	call ali_mesh_encrypt_base_function_sha256_load_data_without_hex2ascii
+	branch ali_mesh_encrypt_base_function_sha256_calc
+
+
+
+ali_mesh_encrypt_calc_network_key_by_k2:
+	arg mem_mesh_Network_Key,contr
+	arg mem_k2_N,contw
+	call memcpy16
+
+/************k2 function*************/
+//input:mem_k2_N N data
+ali_mesh_encrypt_base_function_k2:
+/*******************generate T*************************/
+	arg mem_k2_N,contr
+	arg mem_k2_SALT,rega
+	arg mem_k2_T,alarm
+	call ali_mesh_encrypt_base_function_AES_CMAC_16Byte
+/*******************generate T1************************/
+	arg mem_k2_T1,alarm
+	arg 0x01,regb
+	setarg 0
+	call ali_mesh_encrypt_base_function_k2_AES_CMAC_T
+	fetch 1,mem_k2_T1+15
+	and pdata,0x7f,pdata
+	store 1,mem_k2_NID
+/*******************generate T2************************/
+	arg mem_k2_T2,alarm
+	arg 0x02,regb
+	setarg 0x10
+	arg mem_k2_T1,rega
+	call ali_mesh_encrypt_base_function_k2_AES_CMAC_T
+/*******************generate T3************************/
+	arg mem_k2_T3,alarm
+	arg 0x03,regb
+	setarg 0x10
+	arg mem_k2_T2,rega
+	branch ali_mesh_encrypt_base_function_k2_AES_CMAC_T
+
+ali_mesh_encrypt_base_function_k4:
+/*******************generate T*************************/
+	arg mem_mesh_application_key,contr
+	arg mem_k4_SALT,rega
+	arg mem_k4_T,alarm
+	call ali_mesh_encrypt_base_function_AES_CMAC_16Byte
+	arg mem_k4_id6_01,contr
+	arg mem_k4_T,rega
+	arg mem_k4_k4N,alarm
+	setarg 4
+	call ali_mesh_encrypt_base_function_AES_CMAC
+	fetch 1,mem_k4_k4N+15
+	and pdata,0x3f,pdata
+	set1 TRANSPORT_HEAD_BIT_AKF,pdata
+	store 1,mem_mesh_transport_AID
+	rtn
+
+
+//********* network PDU header obfuscation *********//
+ali_mesh_encrypt_obfuscation_deceypt_send_message:
+	arg mem_mesh_send_upper_layer_CTL_and_TTL,rega
+	fetch 7,mem_mesh_send_upper_layer_DST	
+	branch ali_mesh_encrypt_obfuscation_deceypt
+ali_mesh_encrypt_obfuscation_deceypt_recevie_message:
+	arg mem_mesh_message_TTL,rega
+	fetch 7,mem_mesh_message_DST
+ali_mesh_encrypt_obfuscation_deceypt:
+	store 7,mem_mesh_Privacy_Plaintext_Privacy_Random
+	setarg 0
+	store 5,mem_mesh_Privacy_Plaintext_Zero_String
+	call ali_mesh_encrypt_generate_PECB
+	fetch 6,mem_mesh_PECB
+	ifetcht 6,rega
+	ixor temp,pdata
+	istore 6,rega
+	rtn
+
+ali_mesh_encrypt_generate_PECB:
+ali_mesh_encrypt_generate_privacy_random:
+	fetch 4,mem_mesh_IV_Index
+	store 4,mem_mesh_Privacy_Plaintext_IV_Index
+// generate PECB with AES-128/ function e
+ali_mesh_encrypt_base_function_generate_PECB:
+	arg mem_k2_PrivacyKey,contr
+	call load_key
+	arg mem_mesh_Privacy_Plaintext,contr
+	call load_data128
+	call do_aes_ocb
+	arg mem_mesh_PECB,contw
+	branch store_aes_result
+
+
+/************sha256 function*************/
+//input  : (big endian)
+// data addr : contr
+// point : call clear_sha256_chunk
+ali_mesh_encrypt_base_function_sha256_load_data_64bit:
+	arg 8,loopcnt
+//input  : (big endian)
+// data addr : contr
+// data len : loopcnt
+// point : call clear_sha256_chunk
+ali_mesh_encrypt_base_function_sha256_load_data_with_hex2ascii:
+	call ali_mesh_encrypt_base_function_sha256_check_first_load_data
+	call ali_mesh_encrypt_base_function_hex2ascii
+	branch ali_mesh_encrypt_base_function_sha256_store_dataptr
+ali_mesh_encrypt_base_function_sha256_load_data_without_hex2ascii:
+	call ali_mesh_encrypt_base_function_sha256_check_first_load_data
+	call memcpy
+	branch ali_mesh_encrypt_base_function_sha256_store_dataptr
+ali_mesh_encrypt_base_function_sha256_load_data_with_hex2ascii_add_comma:
+	call ali_mesh_encrypt_base_function_sha256_check_first_load_data
+	call ali_mesh_encrypt_base_function_hex2ascii
+	setarg COMMA
+	istore 1,contw
+ali_mesh_encrypt_base_function_sha256_store_dataptr:
+	copy contw,pdata
+	store 2,mem_mesh_sha256_data_end_addr
+	rtn
+ali_mesh_encrypt_base_function_sha256_check_first_load_data:
+	copy contr,temp
+	copy loopcnt,rega
+	fetch 2,mem_mesh_sha256_data_end_addr
+	copy pdata,contw
+	fetch 1,mem_mesh_sha256_load_first_data_flag
+	call ali_mesh_encrypt_base_function_sha256_first_load_data,blank
+	copy temp,contr
+	copy rega,loopcnt
+	rtn
+ali_mesh_encrypt_base_function_sha256_first_load_data:
+	jam 1,mem_mesh_sha256_load_first_data_flag
+	call ali_mesh_encrypt_base_function_sha256_clear_data_chunk				//初始化sha256
+	arg mem_mesh_sha256_chunk_start,contw
+	rtn
+
+ali_mesh_encrypt_base_function_sha256_clear_data_chunk:
+	arg 0x20,loopcnt
+	arg mem_mesh_sha256_chunk_start,contw
+	branch memset0
+
+ // output :
+ // sha256 result : memresult(big endian)
+ali_mesh_encrypt_base_function_sha256_calc:
+ 	call ali_mesh_encrypt_base_function_sha256_load_data_end
+ 	arg MESH_ENCRYPT_SHA256_FUNCTION_INPUT,regb
+	arg mem_mesh_sha256_chunk_start,rega
+	fetchr loopcnt,8,mem_mesh_sha256_data_len_byte
+	call logging_tx_debug
+	call ali_mesh_encrypt_base_function_sha256_input_data_init_inverse
+
+	setarg mem_mesh_sha256_chunk_start
+	store 2,mem_mesh_sha256_chunk_ptr
+	call sha_init
+ali_mesh_encrypt_base_function_sha256_calc_loop:
+	fetch 2,mem_mesh_sha256_chunk_ptr
+	copy pdata,contr
+	arg memdat,contw
+	call memcpy64
+	call sha
+	fetch 2,mem_mesh_sha256_chunk_ptr
+	pincrease 64
+	store 2,mem_mesh_sha256_chunk_ptr
+	fetch 1,mem_mesh_sha256_chunk_count
+	pincrease -1
+	store 1,mem_mesh_sha256_chunk_count
+	nbranch ali_mesh_encrypt_base_function_sha256_calc_loop,blank
+	call sha_result
+	arg memresult,rega
+	arg 0x20,loopcnt
+	call inverse_data
+ 	arg MESH_ENCRYPT_SHA256_FUNCTION_RESULT,regb
+	arg memresult,rega
+	arg 0x20,loopcnt
+	branch logging_tx_debug
+
+
+ali_mesh_encrypt_base_function_sha256_load_data_end:
+	jam 0,mem_mesh_sha256_load_first_data_flag
+	fetch 2,mem_mesh_sha256_data_end_addr
+	copy pdata,contw
+	arg 0x80,temp	//第一个bit补1，后面补0
+	istoret 1,contw
+	arg mem_mesh_sha256_chunk_start,temp
+	isub temp,pdata
+	store 8,mem_mesh_sha256_data_len_byte
+	//计算bit数
+	lshift3 pdata,temp
+	storet 8,mem_mesh_sha256_data_len_bit
+	rshift4 pdata,regc
+	rshift2 regc,regc
+	and pdata,0x3f,pdata
+	sub pdata,55,null
+//55-(len mod 63)<0,内存填充448以后的，需要填充到第二块
+	ncall ali_mesh_encrypt_base_function_sha256_add_chunk,positive
+	add regc,1,pdata
+	store 1,mem_mesh_sha256_chunk_count
+	mul32 pdata,64,rega		//计算块的数量地址
+	lshift4 pdata,regc			//计算4byte包的数量
+	increase -1,regc			//最好一个包长度不交换
+	setarg mem_mesh_sha256_chunk_start + DECREASED_FOUR
+	iadd rega,rega
+	fetch 4,mem_mesh_sha256_data_len_bit
+	istore 4,rega
+	rtn
+
+
+//增加块数量
+ali_mesh_encrypt_base_function_sha256_add_chunk:
+	increase 1,regc
+	rtn
+	
+ali_mesh_encrypt_base_function_sha256_input_data_init_inverse:
+	arg mem_mesh_sha256_chunk_start,rega
+
+//每4个字节，需要高低位交换一下
+//input :
+// data addr : rega
+ali_mesh_encrypt_base_function_sha256_data_inverse_4Byte:
+	arg 4,loopcnt
+	call inverse_data
+	increase 2,rega	//下一块
+	add regc,-1,regc
+	nbranch ali_mesh_encrypt_base_function_sha256_data_inverse_4Byte,zero
+	rtn
+
+
+// input : 
+// data ptr : contr
+// data save ptr : contw 
+// data len : loopcnt
+ali_mesh_encrypt_base_function_hex2ascii:
+	ifetch 1,contr
+	rshift4 pdata,temp
+	call ali_mesh_encrypt_base_function_dialog2uchar
+	istoret 1,contw
+	and pdata,0x0f,temp
+	call ali_mesh_encrypt_base_function_dialog2uchar
+	istoret 1,contw
+	loop ali_mesh_encrypt_base_function_hex2ascii
+	rtn
+ali_mesh_encrypt_base_function_dialog2uchar:
+	sub temp,9,null
+	branch ali_mesh_encrypt_base_function_dialog2uchar_num,positive
+	add temp,87,temp
+	rtn
+ali_mesh_encrypt_base_function_dialog2uchar_num:	
+	add temp,48,temp
+	rtn
+
+
+ali_mesh_encrypt_base_function_AES_CMAC_32Byte:
+	setarg 0x20 
+	branch ali_mesh_encrypt_base_function_AES_CMAC
+
+ali_mesh_encrypt_base_function_AES_CMAC_16Byte:
+	setarg 0x10
+	branch ali_mesh_encrypt_base_function_AES_CMAC
+
+
+//pdata:data length
+//regb:last data
+ali_mesh_encrypt_base_function_k2_AES_CMAC_T:
+	fetcht 1,mem_k2_P_len
+	increase 1,temp
+	iadd temp,temp
+	storet 1,mem_AES_CMAC_data_length
+	copy rega,contr
+	copy pdata,loopcnt
+	call memcpy_fast
+	fetcht 1,mem_k2_P_len
+	copy temp,loopcnt
+	call memcpy
+	copy regb,pdata
+	istore 1,contw
+	arg mem_k2_T,rega
+	branch ali_mesh_encrypt_base_function_AES_CMAC + 3
+
+
+//input:
+//pdata:data length
+//contr:data prt
+//rega:key ptr
+//output:
+//alarm:output prt
+ali_mesh_encrypt_base_function_AES_CMAC:
+	store 1,mem_AES_CMAC_data_length
+	copy pdata,loopcnt
+	call memcpy_fast
+	copy rega,contr
+	arg mem_AES_CMAC_k,contw
+	call memcpy16
+ 	arg MESH_ENCRYPT_AES_CMAC_FUNCTION_INPUT_M,regb
+	arg memdat,rega
+	fetchr loopcnt,1,mem_AES_CMAC_data_length
+	call logging_tx_debug
+ 	arg MESH_ENCRYPT_AES_CMAC_FUNCTION_INPUT_K,regb
+	arg mem_AES_CMAC_k,rega
+	arg 16,loopcnt
+	call logging_tx_debug
+	call function_AES_CMAC
+	copy alarm,contw
+	call store_aes_result
+ 	arg MESH_ENCRYPT_AES_CMAC_FUNCTION_RESULT,regb
+	copy alarm,rega
+	arg 16,loopcnt
+	branch logging_tx_debug
+
+
+//////**AES-CCM**////////
+ali_B0_block_generate:
+ 	fetcht 1,mem_ccm_type
+ 	branch  ali_block_generate
+ali_A_block_generate:
+	force 0x01,temp
+ali_block_generate:
+	force regidx_data,regext_index
+	fetch 2,mem_nonce_ptr
+	copy pdata,contr
+	ifetch 3,contr
+	lshift8 pdata,pdata
+	ior temp, regext
+	increase 1,regext_index
+	ifetch 4,contr
+	copy pdata,regext
+	increase 1,regext_index
+	ifetch 4,contr
+	copy pdata,regext
+	increase 1,regext_index
+	byteswap rega,regext
+	lshift16 regext,regext
+	ifetch 2,contr
+	ior regext,regext
+	rtn
+ali_generate_mic:
+	fetch 1,mem_ccm_data_len
+	copy pdata,rega
+	call ali_B0_block_generate
+	call do_aes_ocb
+	force regidx_result,regext_index
+	deposit regext
+	copy rega,loopcnt
+	fetcht 2,mem_ccm_data_ptr
+	copy temp,contr
+	call padding_data
+	branch generate_mic_loop
+/*
+function name:ali_CCM_encrypt
+input:pdata is the encrypt data length
+temp is encrypt data ptr
+*/
+ali_CCM_encrypt_64Bit:
+	jam MIC_SIZE_64BIT,mem_ccm_type
+	branch ali_CCM_encrypt_function
+ali_CCM_encrypt:
+	jam MIC_SIZE_32BIT,mem_ccm_type
+	branch ali_CCM_encrypt_function
+ali_CCM_encrypt_function:
+	store 1,mem_ccm_data_len
+	storet 2,mem_ccm_data_ptr
+	bpatchx patch3e_2,mem_patch3e
+	call ali_generate_mic
+	force regidx_xor,regext_index
+	iforce regext
+	force regidx_result+1,regext_index
+	copy regext,pdata
+	force regidx_xor+1,regext_index
+	iforce regext
+	force 0,rega
+	copy temp,regc
+	call ali_A_block_generate
+	call do_aes_ctr
+	call ali_fetcht_ccm_mic
+	storet 8,mem_ccm_mic
+	fetch 1,mem_ccm_data_len
+	copy pdata,regb
+	call ali_aes_crypt_data
+	fetcht 1,mem_ccm_data_len
+	fetch 2,mem_ccm_data_ptr
+	iadd temp,rega
+	fetcht 8,mem_ccm_mic
+	istoret 4,rega
+	fetch 1,mem_ccm_type
+	sub pdata,MIC_SIZE_32BIT,pdata
+	rtn blank
+	istoret 8,rega
+	rtn
+/*
+function name:ali_CCM_decrypt_function
+input:pdata is the encrypt data length
+temp is encrypt data ptr
+*/
+ali_CCM_decrypt_64Bit:
+	jam MIC_SIZE_64BIT,mem_ccm_type
+	branch ali_CCM_decrypt_function
+ali_CCM_decrypt:
+	jam MIC_SIZE_32BIT,mem_ccm_type
+	branch ali_CCM_decrypt_function
+ali_CCM_decrypt_function:
+	store 1,mem_ccm_data_len
+	storet 2,mem_ccm_data_ptr
+	copy temp,regc
+	copy pdata,regb
+	iadd regc,contr
+	bpatchx patch3e_3,mem_patch3e
+	ifetch 8,contr
+	force regidx_xor,regext_index
+	iforce regext
+	force regidx_xor+1,regext_index
+	rshift32 pdata,pdata
+	iforce regext
+	force 0,rega
+	call ali_A_block_generate
+	call do_aes_ctr
+	call ali_fetcht_ccm_mic
+	storet 8,mem_ccm_mic
+	call ali_aes_crypt_data
+	call ali_generate_mic
+	call ali_fetcht_ccm_mic
+	fetch 1,mem_ccm_type
+	beq MIC_SIZE_64BIT,ali_CCM_decrypt_function_check_mic64
+	storet 4,mem_ccm_mic+4
+	fetch 4,mem_ccm_mic
+	fetcht 4,mem_ccm_mic+4
+	isub temp,pdata
+	rtn
+
+ali_CCM_decrypt_function_check_mic64:
+	fetch 8,mem_ccm_mic
+	isub temp,pdata
+	rtn
+
+ali_fetcht_ccm_mic:
+	force regidx_result,regext_index
+	deposit regext
+	force regidx_result+1,regext_index
+	copy regext,temp
+	lshift16 temp,temp
+	lshift16 temp,temp
+	ior temp,temp
+   	rtn
+ali_aes_crypt_data: 
+	increase 1,rega
+	call ali_A_block_generate
+	copy regc,contr
+	call aes_load_xor
+	call do_aes_ctr
+	call store_enc_data
+	increase 16,regc
+	increase -16,regb
+	branch ali_aes_crypt_data,positive
+	rtn
+//////**AES-CCM**////////
+
+
+
+
Index: program/mesh_protocol_stack/mesh_fast_pairing.prog
===================================================================
--- /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/program/mesh_protocol_stack/mesh_fast_pairing.prog	(nonexistent)
+++ /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/program/mesh_protocol_stack/mesh_fast_pairing.prog	(working copy)
@@ -0,0 +1,469 @@
+
+
+/*
+	阿里极速配网协议配网阶段包的解析与组包
+*/
+
+
+/*
+	function name mesh_send_Unprovisioned_Beacons
+	input:three tuple data 
+	mem_mesh_three_tuple_ProductID
+	mem_mesh_three_tuple_MAC
+	mem_mesh_three_tuple_secret
+*/
+mesh_send_Unprovisioned_Beacons:
+	jam 0,mem_mesh_gatt_package_receive_msg_id_last
+	jam 0,mem_mesh_gatt_package_receive_msg_id_new
+	jam UNPROVISIONED_BEACON_STATUS,mem_mesh_provisioned_flag
+	jam 0x00,mem_mesh_Provisioning_State_Flag
+	jam 1,mem_mesh_adv_enable
+	rtn
+
+mesh_send_Unprovisioned_Beacons_tmall:
+	call ali_mesh_config_device_uuid_by_three_tuple
+	branch ali_mesh_advertising_send_Unprovisioned_Beacons_tmall
+
+ali_mesh_config_device_uuid_by_three_tuple:
+	setarg COMPANY_IDENTIFIERS_ALIBABA
+	store 2,mem_mesh_Device_UUID
+	fetch 1,mem_mesh_Device_PID
+	istore 1,contw
+	fetch 4,mem_mesh_three_tuple_ProductID_little_endian
+	istore 4,contw
+	fetch 6,mem_le_lap
+	istore 6,contw
+	fetch 3,mem_mesh_UUID_FeatureFlag
+	istore 3,contw
+	rtn
+
+ali_mesh_advertising_send_Unprovisioned_Beacons_tmall:
+	jam 0x15,mem_mesh_adv_data_len
+	setarg 0x14
+	store 1,mem_mesh_adv_data
+	setarg GAP_ADTYPE_MESH_BEACON
+	istore 1,contw
+	setarg UNPROVISIONED_DEVICE_BEACON
+	istore 1,contw
+ali_mesh_advertising_send_Unprovisioned_Beacons_store_device_uuid:
+	arg mem_mesh_Device_UUID,contr
+	call memcpy16
+	fetch 2,mem_mesh_OOB_information
+	istore 2,contw
+	branch mesh_le_send_adv
+
+
+ali_mesh_advertising_send_Unprovisioned_Beacons_Gatt:
+	jam 0x1d,mem_mesh_adv_data_len
+	setarg 0x02
+	store 1,mem_mesh_adv_data
+	setarg GAP_ADTYPE_FLAGS
+	istore 1,contw
+	setarg 0x02
+	istore 1,contw
+	setarg 0x03
+	istore 1,contw
+	setarg GAP_ADTYPE_16BIT_COMPLETE
+	istore 1,contw
+	setarg MESH_PROVISIONING_UUID
+	istore 2,contw
+	setarg 0x15
+	istore 1,contw
+	setarg GAP_ADTYPE_SERVICE_DATA
+	istore 1,contw
+	setarg MESH_PROVISIONING_UUID
+	istore 2,contw
+	branch ali_mesh_advertising_send_Unprovisioned_Beacons_store_device_uuid
+
+
+/*
+
+input:
+	temp is len
+	contr is read ptr
+*/
+
+ali_mesh_msd_packet:
+	copy temp,loopcnt
+	copy contr,rega
+//	fetch 1,mem_mesh_provisioned_flag
+//	rtnne NO_NETWORK_EQUIPMENT	//设备是否处于未配网阶段
+	ifetcht 2,rega
+	setarg COMPANY_IDENTIFIERS_ALIBABA
+	byteswap pdata,pdata
+	isub temp,null
+	nrtn zero	//判断company id和VID是否正确
+	ifetch 1,contr
+	store 1,mem_mesh_receive_VID
+	copy contr,rega
+	call logging_tx_debug_receive_provisioning_packet
+	bpatchx patch3e_4,mem_patch3e
+	ifetch 1,contr	//provisioning type
+	beq PROVISIONING_RANDOM,ali_mesh_advertising_receive_Privisioning_Random
+	beq PROVISIONING_DATA,ali_mesh_advertising_receive_Privisioning_Data
+	beq PROVISIONING_IOS_DATA,ali_mesh_advertising_receive_Privisioning_ios_Data
+	rtn
+
+
+//receive provisioning random
+ali_mesh_advertising_receive_Privisioning_Random:
+	ifetcht 2,contr
+	arg mem_mesh_provisioning_random_A,contw
+	call memcpy16
+	fetch 2,mem_mesh_three_tuple_MAC+4
+	isub temp,null
+	nrtn zero
+	jam PAIRING_STATUS,mem_mesh_provisioned_flag
+	call loggint_tx_info_receive_random_packet
+	
+	fetch 1,mem_mesh_Provisioning_State_Flag
+	rtnbit1 RECEIVE_PROVISIONING_RANDOM
+	set1 RECEIVE_PROVISIONING_RANDOM,pdata			// FLAG bit1:Provisioning Confirmation
+	store 1,mem_mesh_Provisioning_State_Flag
+
+ali_mesh_advertising_calc_encrypt_random_data:
+	call ali_mesh_encrypt_calc_random_data
+//	call mesh_reset_adv_timer
+	call ali_mesh_advertising_send_Provisioning_Confirmation
+	branch loggint_tx_info_send_confirmation_packet
+//send provisioning confirmation
+ali_mesh_advertising_send_Provisioning_Confirmation:
+	arg PROVISIONING_PACKET_CONFIRMATION_MAC+PROVISIONING_PACKET_CONFIRMATION_DEVICE,temp
+	call ali_mesh_advertising_send_packet_common
+	setarg PROVISIONING_CONFIRMATION
+	istore 1,contw
+	fetch 2,mem_mesh_three_tuple_MAC+4
+	istore 2,contw
+	arg mem_mesh_ConfirmationDevice,contr
+	branch memcpy16
+
+
+//receive provisioning data
+ali_mesh_advertising_receive_Privisioning_Data:
+	copy contr,rega
+	fetch 1,mem_mesh_Provisioning_State_Flag
+	rtnbit0 RECEIVE_PROVISIONING_RANDOM
+	rtnbit1 RECEIVE_PROVISIONING_DATA
+	copy rega,contr
+	arg 0x16,loopcnt
+	arg mem_mesh_Encrypt_Provisioning_Data,contw
+	call memcpy
+	//没有收到random，重复收到data
+	call ali_mesh_encrypt_calc_provisioning_data
+	
+	fetcht 2,mem_mesh_provisioning_data_Mac_addr
+	fetch 2,mem_mesh_three_tuple_MAC+4
+	isub temp,null
+	nrtn zero
+	call loggint_tx_info_receive_data_packet
+	fetch 1,mem_mesh_Provisioning_State_Flag
+	set1 RECEIVE_PROVISIONING_DATA,pdata
+	store 1,mem_mesh_Provisioning_State_Flag
+
+	call ali_mesh_encrypt_calc_network_key_by_k2
+
+	fetch 1,mem_mesh_last_IV_Index_byte
+	store 1,mem_mesh_IV_Index+3
+	call ali_mesh_advertising_send_Provisioning_Complete
+	branch loggint_tx_info_send_complete_packet
+
+
+//send provisioning complete
+ali_mesh_advertising_send_Provisioning_Complete:
+	arg PROVISIONING_PACKET_COMPLETE_MAC,temp
+	call ali_mesh_advertising_send_packet_common
+	setarg PROVISIONING_COMPLETE
+	istore 1, contw
+	fetch 6,mem_mesh_three_tuple_MAC
+	istore 6,contw
+	rtn
+
+ali_mesh_advertising_receive_Privisioning_ios_Data:
+	ifetch 1,contr
+	copy contr,rega
+	fetcht 1,mem_k2_NID
+	isub temp,null
+	nrtn zero
+	arg 0x12,regb
+	branch ali_mesh_resolve_app_package
+
+
+
+//tmall send provisioning packet head
+//input:temp is data lenth,不包括type字节
+ali_mesh_advertising_send_packet_common:
+	setarg 0x8fff		//about 11s
+	store 2,mem_mesh_send_packet_timeout
+	jam 1,mem_mesh_adv_enable
+	add temp,PROVISIONING_PACKET_LENGTH_AD_TYPE_COMPANY_ID_VID_PROVISIONING_TYPE+PROVISIONING_PACKET_LENGTH_FLAGS,pdata
+	store 1,mem_mesh_adv_data_len
+	setarg 0x02
+	store 1,mem_mesh_adv_data
+	setarg GAP_ADTYPE_FLAGS
+	istore 1,contw
+	setarg 0x02
+	istore 1,contw
+	add temp,PROVISIONING_PACKET_AD_TYPE_COMPANY_ID_VID_PROVISIONING_TYPE,pdata
+	istore 1,contw
+	setarg GAP_ADTYPE_MANUFACTURER_SPECIFIC
+	istore 1,contw
+	setarg COMPANY_IDENTIFIERS_ALIBABA
+	byteswap pdata,pdata
+	istore 2,contw
+	fetch 1,mem_mesh_receive_VID
+	istore 1,contw
+	rtn
+
+
+//压力测试时，成功率比较高的时间
+//mesh广播超时11s左右，一个包最多发送11s
+ali_mesh_advertising_timer:
+//未配网设备，不开启定时器
+	fetch 1,mem_mesh_provisioned_flag
+	rtneq UNPROVISIONED_BEACON_STATUS
+	fetch 4,mem_mesh_adv_last_time
+	nbranch ali_mesh_advertising_check_adv_timer,blank
+	branch ali_mesh_advertising_reset_adv_timer
+
+/*
+	if(newTime - lastTime)>8fff(about 11s)
+		stop adv
+*/
+ali_mesh_advertising_check_adv_timer:
+	deposit clkn_bt
+	fetcht 4,mem_mesh_adv_last_time
+	isub temp,temp
+	fetch 2,mem_mesh_send_packet_timeout
+	isub temp,null
+	rtn positive
+ali_mesh_advertising_adv_timer_timeout:
+	jam 0,mem_le_adv_enable
+ali_mesh_advertising_reset_adv_timer:
+	deposit  clkn_bt
+	store 4,mem_mesh_adv_last_time
+	rtn
+
+
+logging_tx_debug_receive_provisioning_packet:
+	arg MESH_RECEIVE_PROVISIONING_PACKET,regb
+	branch logging_tx_debug
+
+loggint_tx_info_receive_random_packet:
+	arg 1,loopcnt
+	arg MESH_RECEIVE_PROVISIONING_RANDOM_PACKET,regb
+	arg mem_mesh_Provisioning_State_Flag,rega
+	branch logging_tx_info
+
+loggint_tx_info_send_confirmation_packet:
+	fetchr loopcnt,1,mem_mesh_adv_data_len
+	arg MESH_SEND_PROVISIONING_CONFIRMATION_PACKET,regb
+	arg mem_mesh_adv_data,rega
+	branch logging_tx_info
+
+loggint_tx_info_receive_data_packet:
+	arg 1,loopcnt
+	arg MESH_RECEIVE_PROVISIONING_DATA_PACKET,regb
+	arg mem_mesh_Provisioning_State_Flag,rega
+	branch logging_tx_info
+
+
+loggint_tx_info_send_complete_packet:
+	fetchr loopcnt,1,mem_mesh_adv_data_len
+	arg MESH_SEND_PROVISIONING_COMPLETE_PACKET,regb
+	arg mem_mesh_adv_data,rega
+	branch logging_tx_info
+
+
+
+ali_mesh_ios_gatt_packet:
+	arg mem_mesh_receive_service_uuid_company_id,contw
+	call memcpy16
+	arg mem_mesh_receive_service_uuid_company_id,rega
+	arg 16,loopcnt
+	call inverse_data	
+	fetcht 3,mem_mesh_receive_service_uuid_company_id
+	setarg COMPANY_ID_ALIBABA_AND_VID_GATT
+	isub temp,null
+	nrtn zero		//check compand ID & VID
+	bpatchx patch3e_5,mem_patch3e
+	fetch 1,mem_mesh_receive_service_uuid_ios_data_provisioning_type
+	beq PROVISIONING_IOS_DATA,ali_mesh_no_network_equipment_packet_gatt_provisioning_ios_data
+ali_mesh_ios_gatt_packet_pairing_type:
+	fetch 1,mem_mesh_provisioned_flag
+	rtneq PAIRED_STATUS		//pairing status
+	fetch 2,mem_mesh_receive_service_uuid_mac
+	fetcht 2,mem_mesh_three_tuple_MAC+4
+	isub temp,null
+	nrtn zero						//check Mac legel
+	arg mem_mesh_receive_service_uuid_msg_id,rega
+	arg 0x07,regb
+	call ali_mesh_gatt_packet_check_Msgid_packageNum_Length
+	rtn user
+	fetch 2,mem_mesh_three_tuple_MAC+4
+	store 2,mem_mesh_fast_gatt_ios_msg_payload_mac
+	bpatchx patch3e_6,mem_patch3e
+	fetch 1,mem_mesh_receive_service_uuid_provisioning_type
+	beq PROVISIONING_RANDOM,ali_mesh_ios_gatt_packet_parse_provisioning_random
+	beq PROVISIONING_DATA,ali_mesh_ios_gatt_packet_parse_provisioning_data
+	beq PROVISIONING_CONFIG,ali_mesh_ios_gatt_packet_parse_provisioning_config
+	rtn
+
+
+ali_mesh_ios_gatt_packet_parse_provisioning_random:
+	arg mem_mesh_fast_gatt_ios_msg_payload_mac,contr
+	branch ali_mesh_advertising_receive_Privisioning_Random
+
+
+ali_mesh_ios_gatt_packet_parse_provisioning_data:
+	fetch 1,mem_mesh_Provisioning_State_Flag
+	rtnbit0 RECEIVE_PROVISIONING_RANDOM
+	rtnbit1 RECEIVE_PROVISIONING_DATA
+	arg mem_mesh_fast_gatt_ios_msg_payload,contr
+	arg 0x14,loopcnt
+	arg mem_mesh_KeyFresh_and_Update_flag,contw
+	call memcpy
+	call ali_mesh_encrypt_calc_provisioning_data_calc_SessionKey
+	arg mem_mesh_KeyFresh_and_Update_flag,rega
+	arg memresult,regb
+	arg 0x0a,loopcnt
+	call ali_mesh_encrypt_calc_provisioning_data_xor_prov_data_loop
+	branch ali_mesh_advertising_receive_Privisioning_Data+13
+
+
+ali_mesh_ios_gatt_packet_parse_provisioning_config:
+	jam PAIRING_STATUS,mem_mesh_provisioned_flag
+	fetch 2,mem_mesh_fast_gatt_ios_msg_payload
+	store 2,mem_mesh_fast_gatt_ios_config_version
+
+ali_mesh_ios_gatt_packet_send_provisioning_config_ack:
+	arg PROVISIONING_CONFIG_ACK_MAC+PROVISIONING_CONFIG_ACK_FIELD,temp
+	call ali_mesh_advertising_send_packet_common
+	setarg PROVISIONING_CONFIG_ACK
+	istore 1,contw
+	fetch 2,mem_mesh_three_tuple_MAC+4
+	istore 2,contw
+	setarg PROVISIONING_CONFIG_ACK_NOTE
+	istore 1,contw
+	rtn
+
+
+ali_mesh_no_network_equipment_packet_gatt_provisioning_ios_data:
+//	fetch 1,mem_mesh_provisioned_flag
+//	rtnne PAIRED_STATUS		//not pairing status
+	fetch 1,mem_mesh_receive_service_uuid_ios_data_NID
+	fetcht 1,mem_k2_NID
+	isub temp,null
+	nrtn zero		//check NID
+	arg mem_mesh_receive_service_uuid_ios_data_msg_id,rega
+	arg 0x08,regb
+ali_mesh_resolve_app_package:
+	call ali_mesh_gatt_packet_check_Msgid_packageNum_Length
+	rtn user
+	arg 36,loopcnt
+	arg 0xe1,regb
+	arg mem_mesh_fast_gatt_ios_msg_payload,rega
+	call logging_tx_debug
+	fetcht 1,mem_mesh_gatt_package_receive_package_total_length
+	increase 1,temp
+	arg mem_mesh_fast_gatt_ios_msg_payload,contr
+	branch ali_mesh_network_layer_recevice_network_pdu
+
+
+
+
+
+/*
+input:
+	regb max payload data size
+	rega is packet ptr
+output:
+	enable user is mean old packet
+	mem_mesh_fast_gatt_ios_msg_payload is output payload ptr
+*/
+ali_mesh_gatt_packet_check_Msgid_packageNum_Length:
+	bpatchx patch3e_7,mem_patch3e
+	call ali_mesh_gatt_packet_check_Msgid
+	rtn user
+	add rega,GATT_PACKAGE_PACKAGE_NUM,contr
+	ifetcht 1,contr
+	rshift4 temp,pdata
+	beq 1,ali_mesh_gatt_packet_check_Msgid_packageNum_Length_new_package
+	copy pdata,loopcnt
+	call ali_mesh_gatt_packet_check_Msgid_packageNum_Length_expect_package_num
+	and temp,0x0f,queue
+	isub queue,null
+	call ali_mesh_gatt_packet_calc_total_length,zero
+	increase -1,queue
+	fetch 1,mem_mesh_gatt_package_receive_package_num
+	qisolate1 pdata
+	branch enable_user,true
+	qset1 pdata
+	store 1,mem_mesh_gatt_package_receive_package_num
+	isub regc,null
+	ncall enable_user,zero
+	call ali_mesh_gatt_packet_check_Msgid_store_Msgid,zero
+	add rega,GATT_PACKAGE_LENGTH,contr
+	ifetchr loopcnt,1,contr
+	copy regb,pdata
+	imul32 queue,pdata
+	arg mem_mesh_fast_gatt_ios_msg_payload,contw
+	iadd contw,contw
+	branch memcpy
+ali_mesh_gatt_packet_check_Msgid_packageNum_Length_expect_package_num:
+	arg 0,regc
+ali_mesh_gatt_packet_check_Msgid_packageNum_Length_expect_package_num_loop:
+	add loopcnt,-1,queue
+	qset1 regc
+	loop ali_mesh_gatt_packet_check_Msgid_packageNum_Length_expect_package_num_loop
+	rtn
+
+ali_mesh_gatt_packet_check_Msgid:
+	ifetch 1,rega
+	branch ali_mesh_gatt_packet_check_Msgid_zero,blank	//Msg ID = 0
+	fetcht 1,mem_mesh_gatt_package_receive_msg_id_last
+	isub temp,null
+	branch enable_user,zero
+	fetcht 1,mem_mesh_gatt_package_receive_msg_id_new
+	isub temp,null
+	branch enable_user,zero
+	branch disable_user
+
+ali_mesh_gatt_packet_check_Msgid_zero:
+	fetcht 2,mem_mesh_gatt_package_receive_msg_id_last
+	setarg 0xffff
+	isub temp,null
+	branch enable_user,zero
+	branch disable_user
+
+ali_mesh_gatt_packet_check_Msgid_store_Msgid:
+	jam 0,mem_mesh_gatt_package_receive_package_num
+	fetch 1,mem_mesh_gatt_package_receive_msg_id_new
+	store 1,mem_mesh_gatt_package_receive_msg_id_last
+	ifetch 1,rega
+	call ali_mesh_gatt_packet_check_Msgid_store_Msgid_zero,blank
+	store 1,mem_mesh_gatt_package_receive_msg_id_new
+	branch disable_user
+
+ali_mesh_gatt_packet_check_Msgid_store_Msgid_zero:
+	setarg 0xff
+	store 1,mem_mesh_gatt_package_receive_msg_id_last
+	rtn
+
+ali_mesh_gatt_packet_check_Msgid_packageNum_Length_new_package:
+	call ali_mesh_gatt_packet_check_Msgid_store_Msgid
+	add rega,GATT_PACKAGE_LENGTH,contr
+	ifetchr loopcnt,1,contr
+	storer loopcnt,1,mem_mesh_gatt_package_receive_package_total_length
+	arg mem_mesh_fast_gatt_ios_msg_payload,contw
+	branch memcpy
+
+ali_mesh_gatt_packet_calc_total_length:
+	pincrease -1
+	imul32 regb,pdata
+	add rega,GATT_PACKAGE_LENGTH,contr
+	ifetchr loopcnt,1,contr
+	iadd loopcnt,pdata
+	store 1,mem_mesh_gatt_package_receive_package_total_length
+	rtn
+
+
Index: program/mesh_protocol_stack/mesh_health_message.prog
===================================================================
--- /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/program/mesh_protocol_stack/mesh_health_message.prog	(nonexistent)
+++ /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/program/mesh_protocol_stack/mesh_health_message.prog	(working copy)
@@ -0,0 +1,117 @@
+
+/*
+	mesh里面configuration和health指令的解析
+*/
+
+ali_mesh_access_layer_config_or_health_message_opcode:
+	ifetch 1,contr
+	beq MESH_MESSAGE_OPCODE_CONFIG_NODE_RESET_NO_HEAD,ali_mesh_access_layer_config_or_health_message_opcode_node_reset
+	beq MESH_MESSAGE_OPCODE_CONFIG_MODEL_SUBSCRIPTION_ADD_NO_HEAD,ali_mesh_message_config_modle_subscription_add
+	beq MESH_MESSAGE_OPCODE_CONFIG_MODEL_SUBSCRIPTION_DELETE_NO_HEAD,ali_mesh_message_config_modle_subscription_delete
+	rtn
+
+
+ali_mesh_access_layer_config_or_health_message_opcode_node_reset:
+	fetch 2,mem_mesh_cb_receive_node_reset
+	call callback_func
+	setarg MESH_CONFIGURATION_AND_HEALTH_MESSAGE_OPCODE_HEADER
+	store 1,mem_mesh_access_layer_payload
+	setarg MESH_MESSAGE_OPCODE_CONFIG_NODE_RESET_STATUS_NO_HEAD
+	istore 1,contw
+	jam 2,mem_mesh_access_layer_payload_len
+	branch ali_mesh_upper_transport_layer_send_access_message
+
+ali_mesh_message_config_modle_subscription_add:
+	call ali_mesh_message_config_modle_subscription_status
+	fetch 2,mem_mesh_core_feature
+	rtnbit1 MESH_FEATURE_DISABLE_SUBSCRIPTION
+	call ali_mesh_message_config_modle_subscription_check_element
+	call ali_mesh_message_config_modle_subscription_add_value_address
+	fetch 2,mem_mesh_cb_subscriptuion_list_changed
+	branch callback_func
+
+	
+ali_mesh_message_config_modle_subscription_delete:
+	call ali_mesh_message_config_modle_subscription_status
+	fetch 2,mem_mesh_core_feature
+	rtnbit1 MESH_FEATURE_DISABLE_SUBSCRIPTION
+	call ali_mesh_message_config_modle_subscription_check_element
+	fetcht 2,mem_mesh_subscription_value_address
+	rshift8 temp,pdata
+	rshift4 pdata,pdata
+	beq 0x0c,ali_mesh_message_config_modle_subscription_delete_group_addr
+	call ali_mesh_message_config_modle_subscription_check_value_address
+	nrtn user
+	setarg 0
+	istore 2,rega
+	fetch 2,mem_mesh_cb_subscriptuion_list_changed
+	branch callback_func
+
+ali_mesh_message_config_modle_subscription_delete_group_addr:
+	setarg -1
+	istore SUBSCRIPTION_MAX_COUNT,rega
+	istore SUBSCRIPTION_MAX_COUNT,contw
+	fetch 2,mem_mesh_cb_subscriptuion_list_changed
+	branch callback_func
+
+ali_mesh_message_config_modle_subscription_check_value_address:
+	arg SUBSCRIPTION_MAX_COUNT,loopcnt
+ali_mesh_message_config_modle_subscription_check_value_address_loop:
+	ifetch 2,rega
+	arg 0xffff,regb
+	isub regb,null
+	branch enable_user,zero
+	isub temp,null
+	branch enable_user,zero
+ali_mesh_message_config_modle_subscription_check_value_address_loop_empty:
+	increase 2,rega
+	loop ali_mesh_message_config_modle_subscription_check_value_address_loop
+	call disable_user
+	rtn
+
+
+ali_mesh_message_config_modle_subscription_status:
+	ifetch 6,contr
+	store 6,mem_mesh_subscription_element_address
+	setarg MESH_CONFIGURATION_AND_HEALTH_MESSAGE_OPCODE_HEADER
+	store 1,mem_mesh_access_layer_payload
+	setarg MESH_MESSAGE_OPCODE_CONFIG_MODEL_SUBSCRIPTION_STATUS_NO_HEAD
+	istore 1,contw
+	setarg MESH_SUCCESS
+	istore 1,contw
+	fetch 6,mem_mesh_subscription_element_address
+	istore 6,contw
+	jam 9,mem_mesh_access_layer_payload_len
+	branch ali_mesh_upper_transport_layer_send_access_message_without_cleat_tx_buffer
+
+ali_mesh_message_config_modle_subscription_check_element:
+	call mesh_get_element_info_config
+	add rega,ELEMENT_DEVICE_SUBSCRIPTION_LABEL,rega
+	fetch 2,mem_mesh_subscription_element_address
+	fetcht 2,mem_mesh_Unicast_Address
+	byteswap temp,temp
+	isub temp,pdata
+	imul32 regb,pdata
+	iadd rega,rega
+	rtn
+
+ali_mesh_message_config_modle_subscription_add_value_address:
+	fetcht 2,mem_mesh_subscription_value_address
+	arg SUBSCRIPTION_MAX_COUNT,loopcnt
+ali_mesh_message_config_modle_subscription_add_value_address_loop:
+	ifetch 2,rega
+	branch ali_mesh_message_config_modle_subscription_add_value_address_in,blank
+	arg 0xffff,regb
+	isub regb,null
+	branch ali_mesh_message_config_modle_subscription_add_value_address_in,zero
+	increase 2,rega
+	loop ali_mesh_message_config_modle_subscription_add_value_address_loop
+	rtn
+
+ali_mesh_message_config_modle_subscription_add_value_address_in:
+	byteswap temp,temp	//地址高低位交换后存入eeprom
+	istoret 2,rega
+	rtn
+
+
+
Index: program/mesh_protocol_stack/mesh_init_function.prog
===================================================================
--- /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/program/mesh_protocol_stack/mesh_init_function.prog	(nonexistent)
+++ /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/program/mesh_protocol_stack/mesh_init_function.prog	(working copy)
@@ -0,0 +1,89 @@
+
+/*
+	mesh init 函数操作
+*/
+ali_mesh_init:
+
+
+
+	setarg mesh_check_ble_rx_packet
+	store 2,mem_mesh_cb_receive_advertising
+
+	setarg mesh_idle_process
+	store 2,mem_cb_idle_process
+
+	setarg ali_mesh_network_layer_relay_access_message
+	store 2,mem_mesh_cb_network_relay
+
+	setarg mesh_receive_config_appkey_add_cb
+	store 2,mem_mesh_cb_finish_pairing
+
+	setarg mem_store_new_subscriptuion_list_data
+	store 2,mem_mesh_cb_subscriptuion_list_changed
+
+	setarg mem_store_new_seq_data
+	store 2,mem_mesh_cb_seq_changed
+
+	rtn wake
+	
+	jam 36,mem_mesh_adv_scan_channel
+	call ali_mesh_ali_vendor_message_indication_info_reset_tid
+	call mesh_init_element_queue
+
+	bpatchx patch3f_0,mem_patch3f
+	call mesh_uart_init
+	call mesh_iic_init
+	arg mem_mesh_Network_Key,rega
+	arg MESH_CODE_INIT,regb
+	arg 1,loopcnt
+	call logging_tx_info
+
+	call ali_mesh_chip_peripherals_load_data_from_eep
+	call mesh_inverse_three_tuple_PID_MAC
+	fetch 1,mem_mesh_Network_Key
+	beq 0xff,mesh_send_Unprovisioned_Beacons
+	call ali_mesh_encrypt_base_function_k4
+	call ali_mesh_encrypt_calc_network_key_by_k2
+	branch ali_mesh_ali_vendor_message_opcode_device_power_on
+
+
+mesh_inverse_three_tuple_PID_MAC:
+	fetch 4,mem_mesh_three_tuple_ProductID
+	call inverse_data_4Byte
+	store 4,mem_mesh_three_tuple_ProductID_little_endian
+	fetch 6,mem_mesh_three_tuple_MAC
+	call inverse_data_6Byte
+	store 6,mem_le_lap
+	rtn
+
+mesh_init_element_queue:
+	call mesh_get_element_info_config
+	add rega,ELEMENT_DEVICE_QUEUE_BUFFER,rega
+mesh_init_element_queue_loop:
+	setarg 0x0422
+	istore 2,rega
+	copy regb,pdata
+	iadd rega,rega
+	loop mesh_init_element_queue_loop
+	rtn
+
+mesh_get_element_info_config:
+	fetchr loopcnt,1,mem_mesh_element_number
+	fetchr rega,2,mem_mesh_element_device_ptr
+	fetchr regb,2,mem_mesh_element_device_length
+	rtn
+
+
+mesh_idle_process:
+	call ali_mesh_time_function
+	call mesh_send_advertising
+	branch mesh_receive_advertising
+
+mesh_iic_init:
+	jam gpcfg_uartb_txd,core_gpio_conf
+	jam gpcfg_uartb_rxd|gpcfg_pullup,core_gpio_conf+1
+	jam gpcfg_iic_scl,core_gpio_conf+2
+	jam gpcfg_iic_sda,core_gpio_conf+3
+	jam gpcfg_output_low,core_gpio_conf+4
+	branch clear_eeprom_size_2k
+
Index: program/mesh_protocol_stack/mesh_lower_transport_layer.prog
===================================================================
--- /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/program/mesh_protocol_stack/mesh_lower_transport_layer.prog	(nonexistent)
+++ /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/program/mesh_protocol_stack/mesh_lower_transport_layer.prog	(working copy)
@@ -0,0 +1,144 @@
+/*
+	mesh中接收到lower transport包判断
+	是Unsegmented包，直接上传到upper transport layer
+	是Segmented包，重组后上传到upper transport layer
+*/
+
+ali_mesh_lower_transport_layer_receive_lower_transport_PDU:
+	bpatchx patch3f_1,mem_patch3f
+	fetch 1,mem_mesh_message_Transport_Head
+	bbit1 TRANSPORT_HEAD_BIT_SEG,ali_mesh_lower_transport_layer_receive_lower_transport_PDU_segmented_message
+	jam 0,mem_mesh_ASZMIC
+	branch ali_mesh_upper_transport_layer_receive_unsegmented_access_message
+
+//segmented message reassembly
+ali_mesh_lower_transport_layer_receive_lower_transport_PDU_segmented_message:
+	call ali_mesh_lower_transport_layer_receive_SegAccMess_resolve_SZMIC_SeqZero_SegON
+	call ali_mesh_lower_transport_layer_receive_segmented_access_message_check_blockAck
+	rtn user
+	call ali_mesh_lower_transport_layer_receive_segmented_access_message_store_segment
+	branch ali_mesh_lower_transport_layer_receive_segmented_access_message_decrypt_segment
+
+//提取SZMIC/SeqZero/SegO/SegN
+//分别存储到SZMIC、SegO、SegN、SeqZero
+ali_mesh_lower_transport_layer_receive_SegAccMess_resolve_SZMIC_SeqZero_SegON:
+	arg 3,loopcnt
+	arg mem_mesh_message_segment_access_SZMIC_SeqZero_SegO_SegN,rega
+	call inverse_data
+	fetch 3,mem_mesh_message_segment_access_SZMIC_SeqZero_SegO_SegN
+	and pdata,0x1f,temp
+	storet 1,mem_mesh_segmented_access_message_SegN
+	rshift4 pdata,pdata
+	rshift pdata,pdata
+	and pdata,0x1f,temp
+	storet 1,mem_mesh_segmented_access_message_SegO
+	rshift4 pdata,pdata
+	rshift pdata,pdata
+	arg 0x1fff,rega
+	iand rega,temp
+	copy pdata,regb
+	fetch 2,mem_mesh_segmented_access_message_SeqZero
+	isub temp,null
+	ncall ali_mesh_lower_transport_layer_receive_segmented_access_message_recover_SeqZero,zero
+	storet 2,mem_mesh_segmented_access_message_SeqZero
+	rshift8 regb,pdata
+	rshift4 pdata,pdata
+	rshift pdata,pdata
+	store 1,mem_mesh_segmented_access_message_SZMIC
+	store 1,mem_mesh_ASZMIC
+	rtn
+
+ali_mesh_lower_transport_layer_receive_segmented_access_message_recover_SeqZero:
+	setarg 0
+	store 4,mem_mesh_segmented_access_message_BlockAck
+	jam 0,mem_mesh_segmented_access_message_current_length
+	rtn
+
+
+//检查blockAck标志,返回值mem_mesh_segmented_access_message_receive_finish
+//1表示收到成功
+ali_mesh_lower_transport_layer_receive_segmented_access_message_check_blockAck:
+	call disable_user
+	fetch 1,mem_mesh_segmented_access_message_SegO
+	copy pdata,queue
+	fetch 4,mem_mesh_segmented_access_message_BlockAck
+	qisolate1 pdata
+	branch enable_user,true
+	qset1 pdata
+	store 4,mem_mesh_segmented_access_message_BlockAck
+	fetcht 1,mem_mesh_segmented_access_message_SegN
+	add temp,1,loopcnt
+ali_mesh_lower_transport_layer_receive_segmented_access_message_check_blockAck_loop:
+	add loopcnt,-1,queue
+	qisolate1 pdata
+	nrtn true
+	loop ali_mesh_lower_transport_layer_receive_segmented_access_message_check_blockAck_loop
+	jam 1,mem_mesh_segmented_access_message_receive_finish
+	rtn
+
+
+//存储segment m内容，放到mem_mesh_segmented_access_message_SegO
+ali_mesh_lower_transport_layer_receive_segmented_access_message_store_segment:
+	fetch 1,mem_mesh_message_Transport_NetMIC_length
+	pincrease -6	//DST(2) Head(1) SZMIC_SeqZero_SegO_SegN(3)
+	copy pdata,loopcnt 
+	fetcht 1,mem_mesh_segmented_access_message_current_length
+	iadd temp,temp
+	storet 1,mem_mesh_segmented_access_message_current_length
+	arg mem_mesh_segmented_access_message_Segment,contw
+	fetch 1,mem_mesh_segmented_access_message_SegO
+	mul32 pdata,12,pdata
+//	lshift3 pdata,pdata
+	iadd contw,contw
+	arg mem_mesh_message_Transport_segmented_access_messagePDU_Segment,contr
+	branch memcpy
+
+//判断是否收完包，收完包，clear中间标志
+ali_mesh_lower_transport_layer_receive_segmented_access_message_decrypt_segment:
+	fetch 1,mem_mesh_segmented_access_message_receive_finish
+	rtneq 0
+	setarg 0
+	store 5,mem_mesh_segmented_access_message_BlockAck
+	fetcht 2,mem_mesh_message_SEQ+1
+	byteswap temp,temp
+	setarg 0xe000
+	iand temp,temp
+	fetch 2,mem_mesh_segmented_access_message_SeqZero
+	ior temp,pdata
+	byteswap pdata,pdata
+	store 2,mem_mesh_message_SEQ+1	//计算Application Nonce需要使用到初始的SEQ
+	branch ali_mesh_upper_transport_layer_receive_segmented_access_message
+
+
+/*
+	mesh中发送lower transport layer判断
+	是Unsegmented message，直接下发到network transport layer
+//	是Segmented message，拆分后上传到network transport layer
+*/
+//Unsegmented access message写入SEG、AKF、AID
+ali_mesh_lower_transport_layer_send_unsegmented_access_message:
+	fetch 1,mem_mesh_upper_transport_layer_payload_len
+	add pdata,1,temp
+	copy pdata,loopcnt
+	storet 1,mem_mesh_lower_transport_layer_payload_len
+	fetch 1,mem_mesh_message_Transport_Head
+	set0 TRANSPORT_HEAD_BIT_SEG,pdata
+	store 1,mem_mesh_unsegmented_access_lower_transport_layer_head
+	arg mem_mesh_access_layer_payload,contr
+	call memcpy_fast
+	branch ali_mesh_network_layer_send_access_message
+
+//segmented access message写入SEG、AKF、AID
+//input:rega is current segment payload length
+//contr is current segment payload ptr
+ali_mesh_lower_transport_layer_send_segmented_access_message:
+	add rega,4,temp
+	copy rega,loopcnt
+	storet 1,mem_mesh_lower_transport_layer_payload_len
+	arg mem_mesh_segmented_access_lower_transport_layer_parameters,contw
+	call memcpy_fast
+	fetch 1,mem_mesh_message_Transport_Head
+	set1 TRANSPORT_HEAD_BIT_SEG,pdata
+	store 1,mem_mesh_segmented_access_lower_transport_layer_head
+	branch ali_mesh_network_layer_send_access_message
+
Index: program/mesh_protocol_stack/mesh_model_layer.prog
===================================================================
--- /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/program/mesh_protocol_stack/mesh_model_layer.prog	(nonexistent)
+++ /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/program/mesh_protocol_stack/mesh_model_layer.prog	(working copy)
@@ -0,0 +1,132 @@
+
+
+/*
+	mesh model层指令解析总函数
+*/
+
+ali_mesh_model_layer_check_model_message_opcode:
+	ifetch 1,contr
+ali_mesh_model_layer_check_generic_OnOff_message_opcde:
+	beq MESH_MODULE_MESSAGE_OPCODE_GENERIC_ONOFF_SET_NO_HEAD,ali_mesh_model_layer_message_opcde_generic_onoff_set
+	beq MESH_MODULE_MESSAGE_OPCODE_SCENE_RECALL_NO_HEAD,ali_mesh_model_layer_message_opcde_scene_recall
+	beq MESH_MODULE_MESSAGE_OPCODE_LIGHT_LIGHTNESS_SET_NO_HEAD,ali_mesh_model_layer_message_opcde_light_lightness_set
+	beq MESH_MODULE_MESSAGE_OPCODE_LIGHT_CTL_SET_NO_HEAD,ali_mesh_model_layer_message_opcde_light_ctl_set
+	rtn
+
+
+ali_mesh_model_layer_message_opcde_generic_onoff_set:
+	ifetch 4,contr
+	store 4,mem_mesh_generic_onoff_set_payload_OnOff
+	arg ali_mesh_model_layer_message_opcde_generic_onoff_set_cb,regc
+	branch ali_mesh_more_element_check_element_address
+ali_mesh_model_layer_message_opcde_generic_onoff_set_cb:
+	call ali_mesh_access_layer_send_generic_onoff_status
+	fetch 2,mem_mesh_cb_generic_onoff_set
+	branch callback_func
+
+
+//模式设置
+ali_mesh_model_layer_message_opcde_scene_recall:
+	ifetch 5,contr
+	store 5,mem_mesh_scene_recall_payload_scene_number
+	call ali_mesh_access_layer_send_scene_status
+	fetch 2,mem_mesh_cb_scene_recall
+	branch callback_func
+
+
+ali_mesh_model_layer_message_opcde_light_lightness_set:
+	ifetch 5,contr
+	store 5,mem_mesh_light_lightness_set_payload_lightness
+	fetch 2,mem_mesh_light_lightness_set_payload_lightness
+	call ali_mesh_model_layer_message_calc_lightness
+	store 1,mem_mesh_light_lightness_calc_lightness
+	arg ali_mesh_model_layer_message_opcde_light_lightness_set_cb,regc
+	branch ali_mesh_more_element_check_element_address
+ali_mesh_model_layer_message_opcde_light_lightness_set_cb:
+	call ali_mesh_access_layer_send_light_lightness_status
+	fetch 2,mem_mesh_cb_light_lightness_set
+	branch callback_func
+
+
+ali_mesh_model_layer_message_opcde_light_ctl_set:
+	ifetch 9,contr
+	store 9,mem_mesh_CTL_Lightness
+
+	fetch 2,mem_mesh_last_CTL_Temperature
+	fetcht 2,mem_mesh_CTL_Temperature
+	isub temp,null
+	rtn zero
+	fetch 2,mem_mesh_CTL_Lightness
+	call ali_mesh_model_layer_message_calc_lightness
+	store 1,mem_mesh_CTL_calc_lightness
+
+	fetch 2,mem_mesh_CTL_Temperature
+	call ali_mesh_model_layer_message_calc_temperature
+	store 1,mem_mesh_CTL_calc_temperature
+
+	fetch 2,mem_mesh_CTL_Temperature
+	store 2,mem_mesh_last_CTL_Temperature
+	arg ali_mesh_model_layer_message_opcde_light_ctl_set_cb,regc
+	branch ali_mesh_more_element_check_element_address
+ali_mesh_model_layer_message_opcde_light_ctl_set_cb:
+	call ali_mesh_access_layer_send_light_ctl_stauts
+	fetch 2,mem_mesh_cb_light_ctl_set
+	branch callback_func
+
+
+//input: pdata is lightness set by ali
+//output: pdata is lightness 0-100
+ali_mesh_model_layer_message_calc_lightness:
+	mul32 pdata,ALI_MESH_LIGHTNESS_LEVEL,pdata
+	arg ALI_MESH_LIGHTNESS_MAX,temp
+	idiv temp
+	call wait_div_end
+	quotient pdata
+	rtn
+
+
+//input: temp is lightness 0-100
+//output: temp is lightness set by ali
+ali_mesh_model_layer_message_calc_actual_lightness:
+	arg ALI_MESH_LIGHTNESS_MAX,pdata
+	imul32 temp,pdata
+	div pdata,ALI_MESH_LIGHTNESS_LEVEL
+	call wait_div_end
+	quotient temp
+	rtn
+
+//input: pdata is temperature set by ali
+//output: pdata is temperature 0-100
+ali_mesh_model_layer_message_calc_temperature:
+	arg ALI_MESH_TEMPERATURE_MIN,temp
+	isub temp,rega
+	call ali_mesh_model_layer_message_calc_temperature_k
+	copy rega,pdata
+	idiv temp
+	call wait_div_end
+	quotient pdata
+	rtn
+
+
+//input: temp is temperature 0-100
+//output: temp is temperature set by ali
+ali_mesh_model_layer_message_calc_actual_temperature:
+	copy temp,rega
+	call ali_mesh_model_layer_message_calc_temperature_k
+	copy rega,pdata
+	imul32 temp,pdata
+	arg ALI_MESH_TEMPERATURE_MIN,temp
+	iadd temp,temp
+	rtn
+
+ali_mesh_model_layer_message_calc_temperature_k:
+	setarg ALI_MESH_TEMPERATURE_MAX
+	arg ALI_MESH_TEMPERATURE_MIN,temp
+	isub temp,pdata
+	div pdata,ALI_MESH_TEMPERATURE_LEVEL
+	call wait_div_end
+	quotient temp
+	rtn
+
+
+
Index: program/mesh_protocol_stack/mesh_more_element_check.prog
===================================================================
--- /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/program/mesh_protocol_stack/mesh_more_element_check.prog	(nonexistent)
+++ /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/program/mesh_protocol_stack/mesh_more_element_check.prog	(working copy)
@@ -0,0 +1,137 @@
+
+/*
+	多元素设置，检查是否发送给子元素的信息
+	输入:
+		temp is 包的DST地址
+*/
+ali_mesh_more_element_check_unicast_address:
+	arg 0,queue
+	fetchr loopcnt,1,mem_mesh_element_number
+	call disable_user
+	fetch 2,mem_mesh_Unicast_Address
+ali_mesh_more_element_check_unicast_address_loop:
+	isub temp,null
+	branch ali_mesh_more_element_found_unicast_address_element,zero
+	byteswap pdata,pdata
+	pincrease 1
+	byteswap pdata,pdata
+	increase 1,queue
+	loop ali_mesh_more_element_check_unicast_address_loop
+	rtn
+
+ali_mesh_more_element_found_unicast_address_element:
+	store 2,mem_mesh_send_message_SRC
+	jam 0,mem_mesh_receive_group_address
+	storer queue,1,mem_mesh_receive_element_number
+	call ali_mesh_more_element_calc_queue_address
+	branch enable_user
+
+
+/*
+	多元素设置，检查是否发送给子元素组播的信息
+	输入:
+		temp is 包的DST地址
+*/
+ali_mesh_more_element_check_group_address:
+	arg 0,queue
+	arg 0,regc
+	call mesh_get_element_info_config
+	call disable_user
+ali_mesh_more_element_check_group_address_loop:
+	fetch 2,mem_mesh_core_feature
+	bbit0 MESH_FEATURE_DISABLE_SUBSCRIPTION,ali_mesh_more_element_check_subscription_address
+	ifetch 2,rega
+	isub temp,null
+	call ali_mesh_more_element_found_group_address_element,zero
+ali_mesh_more_element_check_address_common:
+	copy regb,pdata
+	iadd rega,rega
+	increase 1,queue
+	loop ali_mesh_more_element_check_group_address_loop
+	copy regc,pdata
+	rtn blank
+	store 1,mem_mesh_receive_group_address
+	branch enable_user
+
+ali_mesh_more_element_found_group_address_element:
+	qset1 regc
+	rtn
+
+ali_mesh_more_element_check_subscription_address:
+	add rega,ELEMENT_DEVICE_SUBSCRIPTION_LABEL,contr
+	arg SUBSCRIPTION_MAX_COUNT,alarm
+ali_mesh_more_element_check_subscription_address_loop:
+	ifetch 2,contr
+	isub temp,null
+	branch ali_mesh_more_element_found_subscription_address_element,zero
+	increase -1,alarm
+	branch ali_mesh_more_element_check_address_common,zero
+	branch ali_mesh_more_element_check_subscription_address_loop
+
+ali_mesh_more_element_found_subscription_address_element:
+	call ali_mesh_more_element_found_group_address_element
+	branch ali_mesh_more_element_check_address_common
+
+/*
+	多元素设置，检查哪些元素需要执行的操作
+	输入:
+		regc:对应的回调
+*/
+ali_mesh_more_element_check_element_address:
+	fetch 1,mem_mesh_receive_group_address
+	branch ali_mesh_more_element_check_element_address_no_group_address,blank
+	arg 0,queue
+	copy pdata,regb
+	fetchr loopcnt,1,mem_mesh_element_number
+ali_mesh_more_element_check_element_address_loop:
+	storer queue,1,mem_mesh_receive_element_number
+
+	qisolate1 regb
+	call ali_mesh_more_element_check_element_address_no_group_address,true
+	fetchr queue,1,mem_mesh_receive_element_number
+	increase 1,queue
+	loop ali_mesh_more_element_check_element_address_loop
+	rtn
+
+ali_mesh_more_element_check_element_address_no_group_address:
+	call ali_mesh_more_element_push_stack
+	call ali_mesh_more_element_calc_queue_address
+	copy regc,pdata
+	call callback_func
+	branch ali_mesh_more_element_pop_stack
+
+ali_mesh_more_element_push_stack:
+	storer loopcnt,2,mem_mesh_loopcnt_tmep
+	storer rega,2,mem_mesh_rega_temp
+	storer regb,2,mem_mesh_regb_temp
+	storer regc,2,mem_mesh_regc_temp
+	rtn
+
+ali_mesh_more_element_pop_stack:
+	fetchr loopcnt,2,mem_mesh_loopcnt_tmep
+	fetchr rega,2,mem_mesh_rega_temp
+	fetchr regb,2,mem_mesh_regb_temp
+	fetchr regc,2,mem_mesh_regc_temp
+	rtn
+
+
+/*
+	多元素设置，计算队列的指令长度
+	输入:
+		queue当前数据编号
+*/
+ali_mesh_more_element_calc_queue_address:
+	fetch 2,mem_mesh_Unicast_Address
+	byteswap pdata,pdata
+	iadd queue,pdata
+	byteswap pdata,pdata
+	store 2,mem_mesh_send_message_SRC
+	call mesh_get_element_info_config
+	copy queue,pdata
+	imul32 regb,pdata
+	iadd rega,rega
+	add rega,ELEMENT_DEVICE_QUEUE_BUFFER,rega
+	storer rega,2,mem_queue_ptr
+	rtn
+
+
Index: program/mesh_protocol_stack/mesh_network_layer.prog
===================================================================
--- /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/program/mesh_protocol_stack/mesh_network_layer.prog	(nonexistent)
+++ /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/program/mesh_protocol_stack/mesh_network_layer.prog	(working copy)
@@ -0,0 +1,261 @@
+
+/*
+	mesh协议中network layer
+	主要是负责mesh中Network PDU内容合法性和解密
+*/
+
+/*
+	mesh中接收到network包处理函数
+*/
+//contr is read ptr
+//input:temp is len
+ali_mesh_network_layer_recevice_network_pdu:
+	sub temp,MESH_NETWORK_PACKET_MIN_LENGTH,null
+	rtn positive	//过滤短包，包长度太短导致解析错误
+	sub temp,MESH_NETWORK_PACKET_MAX_LENGTH,null
+	nrtn positive	//过滤长包，包长度太长导致内存覆盖
+	bpatchx patch3f_2,mem_patch3f
+	call ali_mesh_network_store_in_mem
+ali_mesh_network_layer_recevice_network_pdu_check_NID:
+	call ali_mesh_network_layer_check_NID_IVI
+	nrtn user
+ali_mesh_network_layer_recevice_network_pdu_deceypt_obfuscation:
+	call ali_mesh_encrypt_obfuscation_deceypt_recevie_message
+	//fetch 1,mem_mesh_message_TTL
+	//rtnbit1 BIT_CTL
+//	fetch 1,mem_mesh_message_TTL
+//	nrtn blank
+ali_mesh_network_layer_recevice_network_pdu_decrypt_NetMIC32:
+	call ali_mesh_network_load_network_nonce_and_EncryptionKey
+	fetch 1,mem_mesh_message_Transport_NetMIC_length
+	arg mem_mesh_message_DST,temp
+	call ali_CCM_decrypt
+	nrtn zero	//NetMIC error
+
+
+ali_mesh_network_layer_recevice_network_pdu_check_DST:
+	bpatchx patch3f_3,mem_patch3f
+	fetcht 2,mem_mesh_message_DST
+	storet 2,mem_mesh_recevice_message_DST
+	call ali_mesh_more_element_check_unicast_address	//检查所有子元素的单播地址
+	branch ali_mesh_network_layer_recevice_network_pdu_check_SRC_and_SEQ,user
+	call ali_mesh_more_element_check_group_address	//检查所有子元素的组播地址
+	branch ali_mesh_network_layer_recevice_network_pdu_check_SRC_and_SEQ,user
+	jam 0xff,mem_mesh_receive_group_address
+	setarg GROUP_ADDRESS_0XCFFF_little_endian
+	isub temp,null	//DST==0xCFFF Tmall规定的灯model的组播地址2
+	branch ali_mesh_network_layer_recevice_network_pdu_check_SRC_and_SEQ,zero
+	fetch 2,mem_mesh_cb_network_relay
+	branch callback_func
+
+
+ali_mesh_network_layer_check_NID_IVI:
+	call disable_user
+	fetcht 1,mem_mesh_message_NID
+	rshift4 temp,pdata
+	rshift3 pdata,pdata
+	fetchr rega,1,mem_mesh_IV_Index+3
+	and rega,0x01,rega
+	isub rega,null
+	nrtn zero
+	and temp,0x7f,temp
+	fetch 1,mem_k2_NID
+	isub temp,null
+	nrtn zero	//判断NID是否相等;相等说明是同一个网络的包
+	branch enable_user
+
+//检查SRC和SEQ存储cache，是否有当前SRC设备信息
+ali_mesh_network_layer_recevice_network_pdu_check_SRC_and_SEQ:
+	arg mem_mesh_TMALL_cache_start,rega
+	arg CACHE_SPACE_NUM,loopcnt
+ali_mesh_network_layer_raverse_SRC_SEQ_cache:
+	fetcht 2,mem_mesh_message_SRC
+	ifetch 2,rega
+//cache存在空的空间,将SRC、SEQ存储到这个空间
+	branch ali_mesh_network_layer_find_empty_space,blank
+	
+	isub temp,null
+//cache已经存有该SRC的信息，导出SEQ信息
+	branch ali_mesh_network_layer_find_SRC_space,zero
+	increase CACHE_SPACE_SIZE,rega
+	loop ali_mesh_network_layer_raverse_SRC_SEQ_cache
+	arg mem_mesh_TMALL_cache_start,rega
+
+ali_mesh_network_layer_find_empty_space:
+	istoret 2,rega
+ali_mesh_network_layer_find_SRC_space:
+	storet 2,mem_mesh_send_message_DST
+	//接收时的SRC是发送时候的DST
+	add rega,2,regc
+	ifetch 3,regc
+	store 3,mem_mesh_last_message_SEQ
+	branch ali_mesh_network_layer_recevice_network_pdu_check_SEQ_legal
+
+
+//检查SEQ的合法性，过滤重复包
+ali_mesh_network_layer_recevice_network_pdu_check_SEQ_legal:
+//check SEQ
+	call ali_mesh_inverse_SEQ
+	//高低位交换
+	fetch 3,mem_mesh_last_message_SEQ
+	fetcht 3,mem_mesh_message_SEQ
+	isub temp,null
+	rtn positive	//lastMessageSEQ-currMessageSEQ>=0,返回
+	istoret 3,regc	
+	call ali_mesh_inverse_SEQ	//application nonce和Device nonce都需要用到SEQ
+	call logging_tx_debug_network_receive_packet
+	branch ali_mesh_lower_transport_layer_receive_lower_transport_PDU
+
+ali_mesh_inverse_SEQ:
+	arg mem_mesh_message_SEQ,rega
+	arg 3,loopcnt
+	branch inverse_data
+
+
+
+ali_mesh_network_load_network_nonce_and_EncryptionKey:
+	call ali_mesh_network_layer_load_network_nonce
+ali_mesh_upper_transport_layer_load_EncryptionKey:
+	arg mem_k2_EncryptionKey,contr
+	branch load_key
+ali_mesh_network_layer_load_network_nonce:
+	arg mem_mesh_Network_Nonce,contw
+	setarg NETWORK_NONCE
+	istore 1,contw
+	fetch 6,mem_mesh_message_TTL
+	istore 8,contw
+	branch mesh_generate_nonce
+
+
+ali_mesh_network_store_in_mem:
+	add temp,-12,pdata
+	//长度-12的原因
+	//uint8_t AD type:GAP_ADTYPE_MESH_MESSAGE
+	//uint8_t IVI & NID
+	//uint8_t CTL & TTL
+	//uint24_t SEQ
+	//uint16_t SRC
+	//uint32_t MIC
+	//AD_len减去上面内容，是实际DST & Transport PDU的长度
+	//问题:没有考虑MIC长度是64bit 的情况，目前不支持，后期支持需要修改
+	store 1,mem_mesh_message_Transport_NetMIC_length
+	arg 29,loopcnt
+	arg mem_mesh_message_NID,contw
+	call clear_mem
+	add temp,-1,loopcnt
+	arg mem_mesh_message_NID,contw
+	branch memcpy_fast
+	//统一copy到mem_mesh_message_NID
+
+ali_mesh_network_layer_relay_access_message:
+	fetch 2,mem_mesh_core_feature
+	rtnbit1 MESH_FEATURE_DISABLE_RELAY
+	fetch 1,mem_mesh_adv_enable
+	nrtn blank		//有数据发送时，不relay
+	call ali_mesh_network_layer_check_network_mic_cache
+	nrtn user
+	call ali_mesh_network_layer_logging_tx_relay_info
+	fetch 1,mem_mesh_message_TTL
+	rtn blank
+	pincrease -1
+	rtn blank
+	store 1,mem_mesh_message_TTL
+ 	call ali_mesh_network_load_network_nonce_and_EncryptionKey
+	fetch 1,mem_mesh_message_Transport_NetMIC_length
+	arg mem_mesh_message_DST,temp
+	call ali_CCM_encrypt
+	call ali_mesh_encrypt_obfuscation_deceypt_recevie_message
+	arg 0,queue
+	call ali_mesh_more_element_calc_queue_address
+	jam 1,mem_mesh_adv_enable
+	setarg 15	//about 300ms
+	store 1,mem_mesh_queue_ele_timeout
+	fetch 1,mem_mesh_message_Transport_NetMIC_length
+	add pdata,13,temp
+	storet 1,mem_mesh_queue_ele_len
+	arg mem_mesh_queue_ele_payload,contw
+	fetch 1,mem_mesh_queue_ele_len
+	pincrease -1
+	istore 1,contw
+	setarg GAP_ADTYPE_MESH_MESSAGE
+	istore 1,contw
+	fetch 7,mem_mesh_message_NID
+	istore 7,contw
+	fetch 1,mem_mesh_message_Transport_NetMIC_length
+	pincrease 4
+	copy pdata,loopcnt
+	arg mem_mesh_message_DST,contr
+	call memcpy
+	arg mem_mesh_queue_ele_temp,rega
+	branch queue_push
+
+
+//user is enable ,mean new packet
+ali_mesh_network_layer_check_network_mic_cache:
+	setarg mem_mesh_transport_message_mic_cache
+	store 2,mem_mesh_mic_cache_ptr
+	branch ali_mesh_base_adt_cache
+
+
+ali_mesh_network_layer_logging_tx_relay_info:
+	arg 2,loopcnt
+	arg mem_mesh_message_DST,rega
+	arg MESH_NETWORK_RELAY_PACKET,regb
+	call logging_tx_info
+	fetchr loopcnt,1,mem_ccm_data_len
+	fetchr rega,2,mem_ccm_data_ptr
+	arg MESH_NETWORK_RELAY_PACKET,regb
+	branch logging_tx_debug
+
+
+/*
+	mesh中发送到network layer处理函数
+	不区分Unsegmented access message和Segmented access message
+	统一处理函数接口
+*/
+
+ali_mesh_network_layer_send_access_message:
+	bpatchx patch3f_4,mem_patch3f
+	call ali_mesh_network_layer_send_access_message_encrypt_NetMIC
+	call ali_mesh_network_layer_send_access_message_encrypt_obfuscation
+	branch ali_mesh_bearer_layer_send_packet_by_network_layer
+
+
+//DST在接收包时，已经写入mem_mesh_unsegmented_lower_transport_layer_DST
+//计算Netwrork MIC的值
+ali_mesh_network_layer_send_access_message_encrypt_NetMIC:
+	fetch 1,mem_mesh_lower_transport_layer_payload_len
+	add pdata,2,rega	//DST size
+	pincrease 4
+	store 1,mem_mesh_lower_transport_layer_payload_len
+	arg mem_mesh_send_upper_layer_DST,temp
+	branch ali_mesh_network_layer_encrypt_by_network_nonce
+
+//********* generate network nonce *********//
+//input:temp is encrypt ptr
+//rega is encrypt length
+ali_mesh_network_layer_encrypt_by_network_nonce:
+	call ali_mesh_network_load_network_nonce_and_EncryptionKey
+	copy rega,pdata
+	branch ali_CCM_encrypt
+
+
+ali_mesh_network_layer_send_access_message_encrypt_obfuscation:
+	branch ali_mesh_encrypt_obfuscation_deceypt_send_message
+
+
+
+mesh_generate_nonce:
+	fetch 4,mem_mesh_IV_Index
+	istore 4,contw
+	add contw,-13,pdata
+	store 2,mem_nonce_ptr
+	rtn
+
+logging_tx_debug_network_receive_packet:
+	fetch 1,mem_mesh_message_Transport_NetMIC_length
+	add pdata,11,loopcnt
+	arg mem_mesh_message_NID,rega
+	arg MESH_NETWORK_RECEIVE_PACKET,regb
+	branch logging_tx_debug
+
Index: program/mesh_protocol_stack/mesh_upper_transport_layer.prog
===================================================================
--- /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/program/mesh_protocol_stack/mesh_upper_transport_layer.prog	(nonexistent)
+++ /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/program/mesh_protocol_stack/mesh_upper_transport_layer.prog	(working copy)
@@ -0,0 +1,261 @@
+
+/*
+	mesh协议中upper transport layer
+	主要是负责mesh中upper transport layer数据的解密
+	Unsegmented access message和segmented access message
+	Control message
+*/
+
+/*
+	mesh中接收到unsegmented按照AKF标志，使用application nonce或者device nonce解密Unsegmented access message
+*/
+
+ali_mesh_upper_transport_layer_receive_unsegmented_access_message:
+	bbit0 TRANSPORT_HEAD_BIT_AKF,ali_mesh_uuper_transport_layer_decrypt_unsegment_access_by_device_key
+//application key和application nonce解密Unsegmented access message
+ali_mesh_uuper_transport_layer_decrypt_unsegment_access_by_application_key:
+	call ali_mesh_upper_transport_layer_load_application_nonce_and_application_key
+	branch ali_mesh_upper_transport_layer_decrypt_unsegmented_message
+//device key和device nonce解密Unsegmented access message
+ali_mesh_uuper_transport_layer_decrypt_unsegment_access_by_device_key:
+	call ali_mesh_upper_transport_layer_load_device_nonce_and_device_key
+	branch ali_mesh_upper_transport_layer_decrypt_unsegmented_message
+
+
+ali_mesh_upper_transport_layer_decrypt_unsegmented_message:
+	fetch 1,mem_mesh_message_Transport_NetMIC_length
+	pincrease -7	
+	//DST 16bit
+	//Head8bit (SEG 1bit /AKF 1bit/AID 6bit)
+	//Transport MIC 32bit
+	arg mem_mesh_message_Transport_unsegmented_access_messagePDU,alarm
+	call disable_user
+	branch ali_mesh_upper_transport_layer_decrypt_message
+
+
+/*
+	mesh中接收到segmented按照AKF标志，使用application nonce或者device nonce解密segmented access message
+*/
+ali_mesh_upper_transport_layer_receive_segmented_access_message:
+	fetch 1,mem_mesh_message_Transport_Head
+	bbit0 TRANSPORT_HEAD_BIT_AKF,ali_mesh_uuper_transport_layer_decrypt_segment_access_by_device_key
+ali_mesh_uuper_transport_layer_decrypt_segment_access_by_application_key:
+	call ali_mesh_upper_transport_layer_load_application_nonce_and_application_key
+	branch ali_mesh_upper_transport_layer_decrypt_segmented_message
+ali_mesh_uuper_transport_layer_decrypt_segment_access_by_device_key:
+	call ali_mesh_upper_transport_layer_load_device_nonce_and_device_key
+	branch ali_mesh_upper_transport_layer_decrypt_segmented_message
+
+
+ali_mesh_upper_transport_layer_decrypt_segmented_message:
+	fetch 1,mem_mesh_ASZMIC
+	ncall enable_user,blank
+	call disable_user,blank
+	fetch 1,mem_mesh_segmented_access_message_current_length
+	pincrease -4	//Transport MIC
+	jam 0,mem_mesh_segmented_access_message_current_length
+	arg mem_mesh_segmented_access_message_Segment,alarm
+
+//input:alarm:decrypt message ptr
+//pdata:decrypt message length
+ali_mesh_upper_transport_layer_decrypt_message:
+	copy alarm,temp
+	call ali_mesh_upper_transport_layer_decrypt_message_decrypt_transMIC
+	nrtn zero
+	arg 1,loopcnt
+	arg mem_ccm_data_len,rega
+	arg MESH_UPPER_RECEIVE_PACKET,regb
+	call logging_tx_info
+	call ali_mesh_upper_transport_layer_check_transport_mic_cache
+	nrtn user
+	fetch 2,mem_ccm_data_ptr
+	copy pdata,alarm
+	branch ali_mesh_access_layer_check_access_message_opcode
+
+ali_mesh_upper_transport_layer_decrypt_message_decrypt_transMIC:
+	nbranch ali_CCM_decrypt,user
+	pincrease -4
+	branch ali_CCM_decrypt_64Bit
+
+//user is enable ,mean new packet
+ali_mesh_upper_transport_layer_check_transport_mic_cache:
+	setarg mem_mesh_access_message_mic_cache
+	store 2,mem_mesh_mic_cache_ptr
+	branch ali_mesh_base_adt_cache
+
+
+//********* generate application nonce *********//
+ali_mesh_upper_transport_layer_load_application_nonce_and_application_key:
+	call ali_mesh_upper_transport_layer_load_application_nonce
+ali_mesh_upper_transport_layer_load_application_key:
+	arg mem_mesh_application_key,contr
+	branch load_key
+ali_mesh_upper_transport_layer_load_application_nonce:
+	arg mem_mesh_Application_Nonce,contw
+	setarg APPLICATION_NONCE
+	istore 1,contw
+	fetch 1,mem_mesh_ASZMIC
+	arg 0,temp
+	nsetflag blank,7,temp
+	istoret 1,contw
+	fetch 7,mem_mesh_message_SEQ
+	istore 7,contw
+	branch mesh_generate_nonce
+
+
+//********* generate device nonce *********//
+ali_mesh_upper_transport_layer_load_device_nonce_and_device_key:
+	call ali_mesh_upper_transport_layer_load_device_nonce
+ali_mesh_upper_transport_layer_load_device_key:
+	arg mem_mesh_Device_Key,contr
+	branch load_key
+ali_mesh_upper_transport_layer_load_device_nonce:
+	arg mem_mesh_Device_Nonce,contw
+	setarg DEVICE_NONCE
+	branch ali_mesh_upper_transport_layer_load_application_nonce + 2
+
+
+/*
+	mesh中upper transport layer，发送access layer传入的access  PDU
+*/
+// write data to // mem_mesh_access_layer_payload //
+// write data len to //mem_mesh_access_layer_payload_len //
+//upper层发送access mess，主要是计算transport MIC
+ali_mesh_upper_transport_layer_send_access_message:
+	call ali_mesh_upper_transport_layer_clear_tx_buffer
+ali_mesh_upper_transport_layer_send_access_message_without_cleat_tx_buffer:
+	arg mem_mesh_access_layer_payload,rega
+	fetchr loopcnt,1,mem_mesh_access_layer_payload_len
+	arg MESH_UPPER_SEND_PACKET,regb
+	call logging_tx_info
+	bpatchx patch3f_5,mem_patch3f
+	call ali_mesh_upper_transport_layer_send_access_message_calc_SEQ
+	call ali_mesh_upper_transport_layer_send_access_message_add_NID_SRC_TTL_SEQ_DST
+	setarg 0
+	store 1,mem_mesh_ASZMIC
+	call ali_mesh_upper_transport_layer_calc_transport_mic
+	fetch 1,mem_mesh_upper_transport_layer_payload_len
+	sub pdata,UNSEGMENTED_ACCESS_MESSAGE_MAX_UPPER_TRANSPORT_ACCESS_PDU_LEN,null
+	nbranch ali_mesh_upper_transport_layer_send_segmented_access_message,positive
+//upper层发送unsegmented access mess，主要是计算transport MIC
+ali_mesh_upper_transport_layer_send_unsegmented_access_message:
+	branch ali_mesh_lower_transport_layer_send_unsegmented_access_message
+
+ali_mesh_upper_transport_layer_send_segmented_access_message:
+	bpatchx patch3f_6,mem_patch3f
+	call ali_mesh_upper_transport_layer_send_segmented_access_message_get_SeqZero_SegON
+	setarg mem_mesh_access_payload
+	store 2,mem_mesh_upper_transport_layer_payload_ptr
+ali_mesh_upper_transport_layer_send_segmented_access_message_loop:
+	fetcht 1,mem_mesh_access_layer_payload_len
+	setarg SEGMENTED_ACCESS_MESSAGE_UNINT_PDU_LEN
+	call not_greater_than
+	copy pdata,rega
+	copy temp,pdata
+	isub rega,pdata
+	store 1,mem_mesh_access_layer_payload_len
+	fetch 2,mem_mesh_upper_transport_layer_payload_ptr
+	copy pdata,contr
+	iadd rega,temp
+	storet 2,mem_mesh_upper_transport_layer_payload_ptr
+	call ali_mesh_lower_transport_layer_send_segmented_access_message
+	fetch 1,mem_mesh_access_layer_payload_len
+	rtn blank
+	bpatchx patch3f_7,mem_patch3f
+	fetch 1,mem_mesh_segmented_lower_transport_layer_SegO
+	pincrease 1
+	store 1,mem_mesh_segmented_lower_transport_layer_SegO
+	call ali_mesh_upper_transport_layer_send_segmented_access_message_calc_header
+	call ali_mesh_upper_transport_layer_send_access_message_calc_SEQ
+	call ali_mesh_upper_transport_layer_send_access_message_add_NID_SRC_TTL_SEQ_DST
+	branch ali_mesh_upper_transport_layer_send_segmented_access_message_loop
+
+
+
+//upper层计算transport mic值
+ali_mesh_upper_transport_layer_calc_transport_mic:
+	fetch 1,mem_mesh_message_Transport_Head
+	bbit0 TRANSPORT_HEAD_BIT_AKF,ali_mesh_upper_transport_layer_calc_transport_mic_by_DeviceKey
+ali_mesh_upper_transport_layer_calc_transport_mic_by_AppKey:
+	call ali_mesh_upper_transport_layer_load_application_nonce_and_application_key
+	branch ali_mesh_upper_transport_layer_calc_transport_mic_encrypt_AESCCM
+ali_mesh_upper_transport_layer_calc_transport_mic_by_DeviceKey:
+	call ali_mesh_upper_transport_layer_load_device_nonce_and_device_key
+ali_mesh_upper_transport_layer_calc_transport_mic_encrypt_AESCCM:
+	fetch 1,mem_mesh_access_layer_payload_len
+	add pdata,4,temp
+	storet 1,mem_mesh_upper_transport_layer_payload_len
+	arg mem_mesh_access_layer_payload,temp
+	branch ali_CCM_encrypt
+
+
+
+//累加SEQ的值
+ali_mesh_upper_transport_layer_send_access_message_calc_SEQ:
+	fetch 3,mem_mesh_send_message_SEQ
+	pincrease 1
+	store 3,mem_mesh_send_message_SEQ
+	fetch 2,mem_mesh_cb_seq_changed
+	branch callback_func
+
+
+//存NID,TTL,SEQ,SRC,其中SEQ需要高低位交换
+ali_mesh_upper_transport_layer_send_access_message_add_NID_SRC_TTL_SEQ_DST:
+	fetch 1,mem_mesh_IV_Index+3
+	lshift4 pdata,pdata
+	lshift3 pdata,pdata
+	fetcht 1,mem_k2_NID
+	ior temp,pdata
+	store 1,mem_mesh_send_upper_layer_IVI_and_NID
+	fetch 1,mem_mesh_send_message_TTL
+	store 1,mem_mesh_send_upper_layer_CTL_and_TTL
+	fetch 3,mem_mesh_send_message_SEQ
+	store 3,mem_mesh_send_upper_layer_SEQ
+	fetch 2,mem_mesh_send_message_SRC
+	store 2,mem_mesh_send_upper_layer_SRC
+	fetch 2,mem_mesh_send_message_DST
+	store 2,mem_mesh_send_upper_layer_DST
+	arg mem_mesh_send_upper_layer_SEQ,rega
+	arg 3,loopcnt
+	call inverse_data
+	fetch 8,mem_mesh_send_upper_layer_CTL_and_TTL
+	store 8,mem_mesh_message_TTL
+	rtn
+
+ali_mesh_upper_transport_layer_send_segmented_access_message_get_SeqZero_SegON:
+	fetcht 1,mem_mesh_upper_transport_layer_payload_len
+	div pdata,SEGMENTED_ACCESS_MESSAGE_UNINT_PDU_LEN
+	call wait_div_end
+	quotient temp
+	remainder pdata
+	call ali_mesh_upper_transport_layer_send_segmented_access_message_sub_SegN_one,blank
+	storet 1,mem_mesh_segmented_lower_transport_layer_SegN
+	jam 0,mem_mesh_segmented_lower_transport_layer_SegO
+	fetch 3,mem_mesh_send_message_SEQ
+	arg 0x1fff,temp
+	iand temp,pdata
+	store 2,mem_mesh_segmented_lower_transport_layer_SegZero
+	
+ali_mesh_upper_transport_layer_send_segmented_access_message_calc_header:
+	fetch 2,mem_mesh_segmented_lower_transport_layer_SegZero
+	lshift4 pdata,pdata
+	lshift pdata,pdata
+	fetcht 1,mem_mesh_segmented_lower_transport_layer_SegO
+	ior temp,pdata
+	lshift4 pdata,pdata
+	lshift pdata,pdata
+	fetcht 1,mem_mesh_segmented_lower_transport_layer_SegN
+	ior temp,pdata
+	store 3,mem_mesh_segmented_access_lower_transport_layer_SZMIC_SeqZero_SegO_SegN
+	arg 3,loopcnt
+	arg mem_mesh_segmented_access_lower_transport_layer_SZMIC_SeqZero_SegO_SegN,rega
+	branch inverse_data
+
+
+ali_mesh_upper_transport_layer_send_segmented_access_message_sub_SegN_one:
+	increase -1,temp
+	rtn
+
+ali_mesh_upper_transport_layer_clear_tx_buffer:
+	branch queue_init
+
Index: program/patch.prog
===================================================================
--- /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/program/patch.prog	(nonexistent)
+++ /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/program/patch.prog	(working copy)
@@ -0,0 +1,2954 @@
+//define MOUSE_USB
+
+
+	bbit1 8,pf_patch_ext
+	//beq patch00_0,p_default_init	//merged
+	beq patch00_3,p_main_loop
+	beq patch0b_1,p_process_dmh_common  //merged
+	beq patch0d_1,sniff_init+3
+	beq patch0e_7,p_transmit_loopback //merged
+	beq patch10_3,p_shutdown_radio //merged
+	beq patch10_6,p_set_sync_on  //merged
+	beq patch10_7,p_set_freq_rx  //merged
+	beq patch11_0,p_rf_rx_enable //merged
+	beq patch11_3,p_set_freq_tx //merged
+	beq patch11_4,p_txon //merged
+	beq patch11_6,p_initialize_radio //merged
+	beq patch12_1,p_save_rssi  //merged
+	beq patch15_0,p_init_param   //merged
+	beq patch15_4,p_lpm_recover_clk //merged
+	beq patch15_5,p_lpm_dispatch  //merged
+	beq patch16_7,p_app_init
+ifdef MOUSE_USB	
+	beq patch1a_0,p_mouse_usb_interface_check
+endif	
+	beq patch1a_1,p_mouse_before_hibernate  //merged
+	beq patch1a_2,p_mouse_lpm_before_common  //merged
+	beq patch1a_4,p_mouse_motion
+	beq patch1a_6,p_mouse_seting_dpi
+	beq patch1a_7,p_mouse_check_key_gpio  //merged
+	beq patch1b_0,p_mouse_init_sunt  //merged
+	beq patch1b_2,p_mouse_priority_bb_event  //merged	
+	beq patch1b_5,p_mouse_bb_event_timer
+	beq patch1c_2,p_mouse_idle  //merged
+	//beq patch1d_5,p_l2cap_rx_multiplexing
+	branch loop
+
+pf_patch_ext:
+	//beq patch20_0,p_ml2cap_rx_multiplexing
+	//beq patch26_3,p_adc_init_data  //merged
+	//beq patch26_5,p_vdd_calculate_by_mode  //merged
+//	beq patch26_7,p_keyscan_key_process	//merged
+	beq patch30_6,p_ui_timer_check
+
+//bt	
+	//beq patch34_1,p_le_slave_match  //merged
+	//beq patch34_3,p_le_slave_unsync  //merged
+	//beq patch35_0,p_le_enable_phy_by_pdata
+	//beq patch35_1,p_le_enable    //merged
+	//beq patch35_2,p_le_disable  	//merged
+	//beq patch35_5,p_le_context_nextevent //merged
+	
+	beq patch36_3,p_match_le_set_txfreq  //merged
+	//beq patch36_5,p_le_transmit
+	//beq patch37_6,p_le_parse  //merged
+	beq patch38_0,p_le_parse_l2cap  //merged
+	beq patch3c_1,p_g24_receive_rxon  //merged
+	beq patch3c_2,p_g24_transmit
+	beq patch3c_6,p_g24_bind_mode_auto	//merged
+	beq patch3d_2,p_g24_transmit_dispatch  //merged
+	beq patch3d_3,p_g24_transmit_hop_process  //merged
+	beq patch3d_4,p_g24_lpm_wait
+	beq patch3d_5,p_power_ctrl_start
+	branch loop	
+
+
+p_main_loop:	
+ifdef SIMPLE_PAIRING
+	call sp_calc_sequence
+endif
+ifdef SECURE_CONNECTION
+	call sp_calc_sequence_256
+endif
+ifdef SIMPLE_PAIRING
+ifdef SECURE_CONNECTION
+	call sp_calc_sequence_256_check
+endif
+endif
+	call p_le_advertising_dispatch
+	call idle_dispatch
+	call p_app_process_idle
+	call p_inquiry_dispatch
+	call p_inquiry_scan_dispatch
+	call p_page_scan_dispatch
+	call p_connection_dispatch
+	call p_g24_dispatch
+	call lpm_dispatch
+	branch main_loop
+	
+p_le_advertising_dispatch:
+	rtnmark1 mark_adc_enable
+	branch  le_advertising_dispatch
+	
+p_inquiry_dispatch:
+	rtnmark1 mark_adc_enable
+	branch inquiry_dispatch	
+
+p_inquiry_scan_dispatch:
+	rtnmark1 mark_adc_enable
+	branch inquiry_scan_dispatch	
+
+p_page_scan_dispatch:
+	rtnmark1 mark_adc_enable
+	branch page_scan_dispatch
+	
+p_connection_dispatch:
+	rtnmark1 mark_adc_enable
+	branch connection_dispatch
+	
+p_g24_dispatch:
+	rtnmark1 mark_adc_enable
+	branch g24_dispatch
+	
+p_g24_lpm_wait:
+	enable user
+	call lpo_calibration
+	fetch 3,mem_clks_per_lpo
+	branch disable_user,blank
+	fetch 1,mem_lpm_mode
+	branch disable_user,blank
+//	fetch 1,mem_24g_transmit_by_interrupt
+//	beq G24_TX_TIMER_INT_ENABLE,disable_user
+	branch g24_setgpio_lpm_before
+	
+p_app_process_idle:
+	//call idle_read_adc_wait
+	branch app_process_idle
+
+
+p_ui_timer_check:
+//	bpatchx patch30_6,mem_patch30
+	arg 0,rega
+	fetcht 4,mem_ui_timer_last_btclk
+	copy clkn_bt,regb
+	copy regb,pdata
+	isub temp,null
+	ncall ui_timer_timeout,positive
+	//call ice_break
+p_ui_timer_check_loop:
+	copy regb,pdata
+	increase 160,temp    //320btclk = 100ms
+	increase 160,temp
+	isub temp,null
+	nbranch p_ui_timer_check_end,positive
+	increase 1,rega   //increase 1 every 100ms count
+	and rega,0x0f,pdata
+	nbranch p_ui_timer_check_loop,blank
+	arg 0,rega  //reset timer if it's longer than 1.5s between 2 checks
+	call p_ui_timer_check_send_evt
+p_ui_timer_init:
+	copy clkn_bt,pdata
+	store 4,mem_ui_timer_last_btclk
+	rtn
+p_ui_timer_check_end:
+//	bpatchx patch30_7,mem_patch30
+	copy rega,pdata
+	rtn blank
+	increase -160,temp    //320btclk = 100ms
+	increase -160,temp
+	set0 28,temp
+	storet 4,mem_ui_timer_last_btclk
+p_ui_timer_check_send_evt:
+//	branch p_app_evt_timer
+	
+p_app_evt_timer:
+//	bpatch patch17_1,mem_patch17
+	store 1,mem_app_evt_timer_count
+p_app_evt_100ms_loop:
+	fetch 1,mem_app_evt_timer_count
+	rtn blank
+	increase -1,pdata
+	store 1,mem_app_evt_timer_count
+	call ui_button_polling
+	call app_lpm_wake_auto_lock_timer
+	call app_unsniff_delay_timer
+	call app_discovery_timer
+	call flash_write_spi_sm_timer
+	call flash_write_spi2_sm_timer
+	//call p_adc_wait_timer
+	fetch 2,mem_cb_event_timer
+	call callback_func
+	branch p_app_evt_100ms_loop
+
+/*	
+p_keyscan_key_process:
+	fetch 2,mem_key_value_retention
+	store 2,mem_key_value
+	fetch 2,mem_key_num_ptr
+	ifetch 1,pdata
+p_keyscan_key_process_next:
+	rtn blank
+	call p_keyscan_scan_key
+	call keyscan_key_process_next + 2
+	fetch 2,mem_key_value
+	store 2,mem_key_value_retention
+	rtn
+
+p_keyscan_scan_key:
+	fetch 2,mem_keyscan_ptr
+	increase 3,pdata	//mem_key_conf0_pin
+	copy pdata,rega
+	force 0,regb
+	setarg 0
+	store 2,mem_key_value_temp
+	branch keyscan_scan_key_lp1
+*/
+
+
+
+//patch: change lpo clock fix from 8 to 10
+p_lpm_recover_clk:
+	setarg 0
+	copy auxcnt,null
+	branch p_lpm_recover_timeout,zero
+	fetch 1,core_lpm_xtalcnt
+	fetcht 1,core_lpm_buckcnt
+	isub temp,null
+	branch p_lpm_recover_xtal,positive
+	deposit temp
+p_lpm_recover_xtal:
+	isub auxcnt,pdata
+	increase 1,pdata
+p_lpm_recover_timeout:
+	increase 10,pdata
+	branch lpm_recover_timeout + 1
+
+
+p_init_param:
+	fetch 1,mem_ssp_enable
+	ncall init_memp,blank	
+	setarg mem_sp_state_end
+	arg mem_sp_state_start,contw
+	isub contw,loopcnt
+	call clear_mem
+	rtn wake
+	branch init_param +47
+
+p_lpm_dispatch:
+	call lpo_calibration
+	fetch 3,mem_clks_per_lpo
+	rtn blank
+	fetch 1,mem_lpm_mode
+	rtn blank
+	fetch 1,mem_ssp_enable
+	branch p_lpm_dispatch_next,blank
+	fetch 1,mem_sp_local_key_invalid	// simple pairing is not ready
+	rtn blank
+p_lpm_dispatch_next:
+	fetch 1,mem_sc_calc
+	nrtn blank	
+	rtnmark1 mark_adc_enable
+	arg context_check_a_wack,regc
+	call context_search
+	branch lpm_dispatch_next+3
+
+
+
+// patch:get mem_le_superto from context
+p_le_update_param_cb:
+	call le_update_param_cb
+	add rega,coffset_le_slave_superto,contr
+	ifetch 2,contr
+	store 2,mem_le_init_superto
+	rtn
+
+
+p_le_context_nextevent:
+	call push_stack_rega_b_c
+	storer loopcnt,2,mem_loopcnt
+	add rega,coffset_mode,contr
+	ifetch 1,contr
+	rtnbit0 mode_le
+	add rega,coffset_le_event_cnt,contw
+	ifetch 2,contw
+	increase 1,pdata
+	istore 2,contw
+	call p_le_update_param
+	call p_le_update_channel_map
+	call p_le_update_phy
+	call le_context_nexthop
+	call pop_stack_rega_b_c
+	fetchr loopcnt ,2,mem_loopcnt
+	rtn
+
+p_le_update_param:
+	arg le_update_param_ahead1_cb,regc
+	arg p_le_update_param_cb,regb
+	arg lestate_update_param,queue
+	branch p_le_check_update_flag
+
+p_le_update_channel_map:
+	arg 0,regc
+	arg le_update_channel_map_cb,regb
+	arg lestate_update_map,queue
+	branch p_le_check_update_flag
+
+p_le_update_phy:
+	arg 0,regc
+	arg le_update_phy_cb,regb
+	arg lestate_update_phy,queue
+	branch p_le_check_update_flag
+
+//regb regc is cb function
+//queue is state flag
+p_le_check_update_flag:
+	ifetch 1,rega
+	qisolate0 pdata
+	rtn true
+	add rega,coffset_le_event_cnt,contr
+	ifetcht 2,contr
+	add rega,coffset_le_instant,contr
+	ifetch 2,contr
+	
+	isub temp,pdata
+	branch le_update,zero
+	nbranch le_check_update_small,positive
+	sub pdata,1,null
+	branch le_update_ahead1,zero
+	rtn
+p_le_parse_l2cap:
+	ifetch 2,contr
+	beq LE_L2CAP_CID_ATT,p_le_parse_att
+	beq LE_L2CAP_CID_SMP,le_parse_smp
+	beq LE_L2CAP_CID_SIGNAL,le_parse_signaling
+	rtn
+p_le_parse_att:
+	ifetch 3,contr
+	store 3,mem_le_att_opcode
+	beq ATTOP_FIND_INFORMATION_REQUEST,p_le_parse_att_find_information_request
+	branch le_parse_att+2
+
+p_le_parse_att_find_information_request:
+	call le_get_search_handle_start_end_common
+	call enable_user
+	branch p_le_send_att_find_information_response
+
+p_le_send_att_find_information_response:
+	arg 3,timeup
+	call le_init_attlist_search
+p_le_send_att_find_information_res_loop:
+	call le_att_handle_inrange
+	branch p_le_send_att_find_information_res_end,blank
+	nbranch p_le_send_att_find_information_res_next,positive
+	increase -2,contr
+	call store_contr
+	call get_contw
+	nbranch p_le_send_att_find_information_res_store_info,user
+	call push_stack_rega_b_c
+	call disable_user
+	storer timeup,4,mem_timeup
+	force 20,rega
+	call le_fifo_malloc_tx_l2cap_gatt
+	fetchr timeup,4,mem_timeup
+	call pop_stack_rega_b_c
+	setarg ATTOP_FIND_INFORMATION_RESPONSE
+	istore 1,contw
+	setarg UUID_SIZE_16BIT
+	istore 1,contw
+p_le_send_att_find_information_res_store_info:
+	call get_contr
+	ifetch 2,contr
+	and_into 0xff,pdata
+	istore 2,contw
+	ifetch 1,contr
+	copy pdata,loopcnt
+	call memcpy
+	call store_contw
+	increase -1,timeup
+	branch p_le_send_att_find_information_res_end,zero
+p_le_send_att_find_information_res_cont:
+	ifetch 1,contr
+	iadd contr,contr
+	branch p_le_send_att_find_information_res_loop
+p_le_send_att_find_information_res_next:
+	ifetch 1,contr
+	iadd contr,contr
+	branch p_le_send_att_find_information_res_cont
+p_le_send_att_find_information_res_end:
+	branch le_send_att_error_response_notfound,user
+	branch le_send_auto_len_by_mem
+
+	
+p_app_init:
+	call enable_authrom
+	branch p_mouse_init
+	
+p_default_init:
+	clear_stack
+p_mouse_default_init:
+	jam 0xff,mem_spi_ncs_gpio
+	branch p_mouse_param_default_set
+	
+p_transmit_loopback:
+	bmark1 mark_longpacket,p_transmit_loopback_long
+	fetch 1,mem_lch_code
+	inject mod,3						/* LLID and FLOW */
+	fetch 1,mem_len	/* take packet length */
+	iforce regc
+	inject mod,5
+	branch p_transmit_loopback_cont
+p_transmit_loopback_long:
+	fetch 1,mem_lch_code
+	inject mod,3						/* LLID and FLOW */
+	fetch 2,mem_len	/* take packet length */
+	iforce regc
+	inject mod,13
+p_transmit_loopback_cont:
+	arg mem_l2cap_rxbuff1,contr
+	branch transmit_loopback_loop
+
+p_process_dmh_common:
+	set0 mark_fhs_eir,mark
+	fetch 1,mem_lch_code
+	and_into 0x03,pdata
+	arg mem_rxbuf,contw //lmp_data or test packet
+	beq LLID_LMP,process_lmp
+	bmark0 mark_testmode,process_dmh_common2 + 9
+	arg mem_l2cap_rxbuff1,contw
+	branch process_dmh_data
+	
+p_initialize_radio:
+	jam 0xe6,core_syn_aac_cfg1
+	jam 0x29,core_syn_afc_cfg1
+	jam 0x02,core_rf_ldo_cfg1
+//	jam 0x3b,core_rx_lna_cfg0
+	jam 0xd3,core_rx_bq_bw_cal
+	jam 0x09,core_rx_bq_cfg0
+
+//rx current
+	jam 5,core_clkpll_cfg0
+	jam 0x94,core_rx_iqadc_cfg
+	
+	fetch 1,mem_fcomp_div
+	bne XTAL_16M,p_initialize_radio_1
+	jam 0x34,core_clkpll_cfg5		//16M XTAL
+p_initialize_radio_1:
+	jam 0xff,core_clkpll_ctrl1
+	nop 100
+	jam 0x0e,core_clkpll_ctrl2
+	jam 0x03,core_clkpll_ctrl0
+	
+	call set_tx_power_0db
+	
+	jam 0x2b,core_tx_mixer_cfg1
+	jam 0x13,core_tx_mixer_cfg2
+
+	call init_lpm_ctrl
+	nop 10
+	
+	jam 5,core_clksel
+//	call init_lpm_ctrl
+	branch p_le_disable
+	
+
+p_save_rssi:
+	jam 0x20,mem_rssi_hex
+	fetch 1,modem_rssi
+	store 1,mem_modem_rssi
+	sub pdata,0xfc,null
+	nrtn positive
+	sub pdata,0x7f,null
+	rtn positive
+
+	fetch 1,modem_gain
+	and pdata,0x0f,temp
+	lshift temp,temp
+	rshift4 pdata,pdata
+	iadd temp,temp
+	mul32 temp,3,temp
+	fetch 1,mem_modem_rssi
+	sub pdata,0xff,pdata
+//	increase 1,pdata
+	iadd temp,pdata 
+	increase -5,pdata
+	store 1,mem_rssi_hex
+	rtn
+
+p_rssi_hex2dec:
+	fetch 1,mem_rssi_hex
+	call bcd
+	store 1,mem_rssi			/* bcd value */
+	rtn
+
+	
+p_shutdown_radio:
+	call p_set_sync_on
+	jam 0,core_syn_en
+	jam 0x10,core_rf_ldo_en0
+	fetch 1,core_clkpll_cfg6
+	set0 7,pdata
+	store 1,core_clkpll_cfg6
+	jam 0,core_rf_ldo_en1
+	
+p_gain_control:
+	nbranch  p_gain_increase,sync
+	fetch 1,mem_modem_rssi
+	sub pdata,0xf0,null
+	nbranch p_gain_descend,positive
+	sub pdata,0x7f,null
+	branch p_gain_descend,positive
+	
+	fetchr rega, 1,core_rf_rx_gain_fix
+	fetch 1,mem_gain_fix
+	rtneq 0	
+	arg mem_gain_table,contr
+	iadd contr,contr
+	ifetch 1,contr
+	isub rega,null
+	nrtn zero
+	increase -2,contr
+	ifetcht  1,contr
+	rshift4 temp,pdata
+	rshift4 rega,regb
+	isub regb,regb
+	and temp,0xf,pdata
+	and rega,0xf,rega
+	isub rega,rega
+	lshift rega,pdata
+	iadd regb,regb
+	mul32 regb,3,regb
+	fetcht 1,mem_modem_rssi
+	and temp,0x80,pdata
+	rtn blank
+p_add_negative:
+	setarg 0x100
+	isub temp,temp
+	copy regb,pdata
+	isub temp,pdata
+	rtn positive
+	and pdata,0xff,pdata
+	rtneq 0xff
+	rtneq 0xfe
+p_gain_increase:	
+	fetch 1,mem_gain_fix
+	beq 1,p_set_rx_gain0
+	beq 2,p_set_rx_gain1
+//	beq 0,p_set_rx_gain0
+	branch p_set_rx_gain0
+	
+p_gain_descend:
+	fetch 1,mem_gain_fix
+	beq 0,p_set_rx_gain1
+	beq 1,p_set_rx_gain2
+//	beq 2,p_set_rx_gain2
+p_set_rx_gain2:
+	jam 2,mem_gain_fix
+	rtn
+
+p_set_rx_gain0:
+	jam 0,mem_gain_fix
+	rtn
+
+p_set_rx_gain1:
+	jam 1,mem_gain_fix
+	rtn
+
+p_set_freq_rx:
+	//step1
+	fetch 1,mem_fcomp_div
+	sub pdata,XTAL_24M,null
+	call p_rf_rx_write_freq_24m,zero
+	ncall p_rf_rx_write_freq_16m,zero
+
+	storet 1,mem_last_freq
+	add temp,0,pdata
+	bmark1 mark_ble_2M,p_set_rxfreq_2M_offset
+	add temp,1,pdata
+p_set_rxfreq_2M_offset:
+	call p_rf_rx_write_freq
+	branch calc_mod_value_scale
+
+
+p_rf_rx_write_freq_24m:
+	jam 0,core_syn_cal_ctrl
+	jam 0x04,core_syn_top_ctrl
+	jam 0,core_syn_mmd_cp_ctrl
+	jam 0x03,core_syn_cp_lpf_cfg
+	jam 0x40,core_syn_afc_cfg3
+	rtn
+p_rf_rx_write_freq_16m:
+	jam 0x30,core_syn_cal_ctrl
+	jam 0x06,core_syn_top_ctrl
+	jam 0,core_syn_mmd_cp_ctrl
+	jam 0x20,core_syn_cp_lpf_cfg
+	jam 0x15,core_syn_afc_cfg3
+	rtn
+
+p_rf_rx_enable:	
+	call rf_debug_rx_gpio_high
+
+	fetch 1,mem_gain_fix
+	arg mem_gain_table,contr
+	iadd contr,contr
+	ifetch 1,contr
+	store 1,core_rf_rx_gain_fix
+	jam 0x27,core_rf_rx_agc_ctrl
+	
+	jam 0xaa,core_rf_ldo_cfg4 //ldo config set
+	jam 0x2a,core_rf_ldo_cfg5
+	jam 0x13,core_rf_ldo_cfg6
+	jam 0x7f,core_rf_ldo_en0
+	fetch 1,core_clkpll_cfg6
+	set0 7,pdata
+	store 1,core_clkpll_cfg6
+	nop 60
+	jam 0x1f,core_rx_en0
+	jam 0xf8,core_rx_en1
+	jam 0x18,core_tx_en0
+	jam 0x00,core_rf_ldo_cfg4
+	jam 0x20,core_rf_ldo_cfg5
+	nop 10
+	jam 0x04,modem_en
+	nop 2
+	jam 0x0c,modem_en
+	rtn
+
+
+p_match_le_set_txfreq:
+	fetcht 1,mem_last_freq
+	add temp,2,rega
+	bmark1 mark_ble_2M,p_match_le_set_txfreq_offset
+	add temp,2,rega
+p_match_le_set_txfreq_offset:
+	disable decode_fec0
+//	call p_shutdown_radio
+	call p_set_sync_on	
+	branch p_rf_tx_write_freq				/* set frequency to tx mode freq */
+
+p_set_freq_tx:
+	jam 0x12,core_syn_top_ctrl
+	storet 1,mem_last_freq
+	add temp,2,rega
+	call p_rf_tx_write_freq
+	nop 0x3c0
+	
+p_txon:
+	jam 0xaa,core_rf_ldo_cfg4 //ldo config set
+	jam 0x2a,core_rf_ldo_cfg5
+	jam 0x10,core_rf_ldo_cfg6
+	
+	jam 0x7f,core_rf_ldo_en0	//ldo en
+	fetch 1,core_clkpll_cfg6
+	set0 7,pdata
+	store 1,core_clkpll_cfg6
+	jam 0x07,core_rf_ldo_en1 
+	nop 60
+
+	jam 0x0d,core_tx_en0
+	jam 0xf9,core_tx_en1		// reg tx_en1[7:0] = 8??￥b11011001
+	jam 0x00,core_rf_ldo_cfg4
+	jam 0x20,core_rf_ldo_cfg5
+	nop 10
+	jam 0x01, modem_en
+	nop 2
+	jam 0x03, modem_en
+
+	fetch 1,mem_tx_power
+	beq TX_POWER_3DB,set_tx_power_3db	
+	beq TX_POWER_5DB,set_tx_power_5db
+	beq TX_POWER_6DB,set_tx_power_6db
+	beq TX_POWER_F3DB,set_tx_power_f3db	
+	beq TX_POWER_F5DB,set_tx_power_f5db
+	beq TX_POWER_F20DB,set_tx_power_f20db
+	beq TX_POWER_10DB,set_tx_power_10db
+	
+set_tx_power_0db:
+	jam 0x6a,core_tx_pwr_ctrl0
+	jam 0x07,core_tx_pwr_ctrl1
+	jam 0xa3,core_rf_ldo_cfg8
+	jam 0x07,core_rf_ldo_cfg9
+	rtn
+	
+set_tx_power_3db:
+	jam 0x66,core_tx_pwr_ctrl0
+	jam 0x0b,core_tx_pwr_ctrl1
+	jam 0xaa,core_rf_ldo_cfg8
+	jam 0x0a,core_rf_ldo_cfg9
+	rtn
+	
+set_tx_power_5db:
+	jam 0x6c,core_tx_pwr_ctrl0
+	jam 0x0d,core_tx_pwr_ctrl1
+	jam 0xaa,core_rf_ldo_cfg8
+	jam 0x0a,core_rf_ldo_cfg9
+	rtn
+
+set_tx_power_6db:
+	jam 0x6b,core_tx_pwr_ctrl0
+	jam 0x0f,core_tx_pwr_ctrl1
+	jam 0xaa,core_rf_ldo_cfg8
+	jam 0x0a,core_rf_ldo_cfg9
+	rtn
+	
+set_tx_power_f3db:
+	jam 0x68,core_tx_pwr_ctrl0
+	jam 0x05,core_tx_pwr_ctrl1
+	jam 0xa3,core_rf_ldo_cfg8
+	jam 0x07,core_rf_ldo_cfg9
+	rtn
+	
+set_tx_power_f5db:
+	jam 0x60,core_tx_pwr_ctrl0
+	jam 0x05,core_tx_pwr_ctrl1
+	jam 0xa3,core_rf_ldo_cfg8
+	jam 0x07,core_rf_ldo_cfg9
+	rtn
+
+set_tx_power_10db:
+	jam 0xB6,core_tx_pwr_ctrl0
+	jam 0x0F,core_tx_pwr_ctrl1
+	jam 0xaa,core_rf_ldo_cfg8
+	jam 0x0a,core_rf_ldo_cfg9
+	rtn
+		
+set_tx_power_f20db:
+	jam 0x53,core_tx_pwr_ctrl0
+	jam 0x01,core_tx_pwr_ctrl1
+	jam 0xa3,core_rf_ldo_cfg8
+	jam 0x07,core_rf_ldo_cfg9
+	rtn
+	
+p_set_sync_on:
+	jam 0x5,modem_en
+	nop 2
+	jam 0x0,modem_en					/* if called from tx or rx */
+	fetch 1,mem_fcomp_div
+	beq XTAL_24M,p_set_sync_on_24m
+	beq XTAL_16M,p_set_sync_on_16m
+p_set_sync_on_24m:
+	jam 0xaa,core_rf_ldo_cfg4
+	jam 0xaa,core_rf_ldo_cfg5
+	jam 0x15,core_rf_ldo_cfg6
+	
+	jam 0x78,core_rf_ldo_en0 //ldo en
+	fetch 1,core_clkpll_cfg6
+	set1 7,pdata
+	store 1,core_clkpll_cfg6
+	
+	jam 0x04,core_rf_ldo_en1
+	nop 60
+	jam 0x7a,core_syn_en //module en
+	jam 0,core_rx_en0                    
+	jam 0,core_rx_en1                    
+	jam 0,core_tx_en0                    
+	jam 0,core_tx_en1 
+
+	jam 0x2a,core_rf_ldo_cfg5  //ldo bleeding current disable
+	jam 0x78,core_rf_ldo_en0
+	fetch 1,core_clkpll_cfg6
+	set0 7,pdata
+	store 1,core_clkpll_cfg6
+	jam 0,core_syn_cal_ctrl
+	rtn
+
+p_set_sync_on_16m:
+	jam 0xe6,core_syn_aac_cfg1
+
+	jam 0xaa,core_rf_ldo_cfg4
+	jam 0xaa,core_rf_ldo_cfg5
+	jam 0x15,core_rf_ldo_cfg6
+	
+	jam 0x78,core_rf_ldo_en0 //ldo en
+	fetch 1,core_clkpll_cfg6
+	set1 7,pdata
+	store 1,core_clkpll_cfg6
+	jam 0x04,core_rf_ldo_en1
+	nop 60
+	jam 0x3a,core_syn_en //module en
+	jam 0,core_rx_en0                    
+	jam 0,core_rx_en1                    
+	jam 0,core_tx_en0                    
+	jam 0,core_tx_en1 
+
+	jam 0x2a,core_rf_ldo_cfg5  //ldo bleeding current disable
+	jam 0x38,core_rf_ldo_en0
+	fetch 1,core_clkpll_cfg6
+	set0 7,pdata
+	store 1,core_clkpll_cfg6
+	jam 0,core_syn_cal_ctrl
+	rtn
+
+p_rf_rx_write_freq:
+	arg 2400,contr
+	iadd contr,pdata
+	fetcht 1,mem_fcomp_div
+	branch p_rf_write_freq_calc
+
+
+	/* rega is frequency, 00=2400Mhz */
+p_rf_tx_write_freq:
+	//step1
+	fetch 1,mem_fcomp_div
+	sub pdata,XTAL_24M,null
+	call p_rf_tx_write_freq_24m,zero
+	ncall p_rf_tx_write_freq_16m,zero
+	
+	setarg 2400
+	iadd rega,pdata
+	lshift pdata,pdata
+	fetcht 1,mem_fcomp_div
+	mul32 temp,0x03,temp
+p_rf_write_freq_calc:	
+	lshift temp,temp
+	idiv temp
+	call wait_div_end
+	quotient pdata
+	store 1,core_syn_divr_int
+	remainder pdata		
+	lshift16 pdata,pdata
+	lshift8 pdata,pdata
+	idiv temp
+	call wait_div_end
+	quotient pdata
+	store 1,core_syn_divr_int+3
+	rshift8 pdata,pdata
+	store 1,core_syn_divr_int+2
+	rshift8 pdata,pdata
+	store 1,core_syn_divr_int+1
+	fetcht 1,core_syn_cal_ctrl		//reg syn_cal_ctrl[3:0] = 2??￥b0000, reset
+	and_into 0xf0,temp
+	storet 1,core_syn_cal_ctrl
+	nop 12
+	fetch 1,mem_fcomp_div
+	beq XTAL_24M,p_rf_write_freq_calc_24m
+	beq XTAL_16M,p_rf_write_freq_calc_16m
+p_rf_write_freq_calc_24m:	
+	or_into 0x0c,temp
+	storet 1,core_syn_cal_ctrl
+	nop 12
+	or_into 0x03,temp
+	storet 1,core_syn_cal_ctrl
+	rtn
+
+p_rf_write_freq_calc_16m:
+	or_into 0x3c,temp
+	storet 1,core_syn_cal_ctrl
+	nop 12
+	or_into 0x33,temp
+	storet 1,core_syn_cal_ctrl
+	rtn
+
+p_rf_tx_write_freq_24m:
+	jam 0,core_syn_cal_ctrl
+	jam 0x12,core_syn_top_ctrl
+	jam 0,core_syn_mmd_cp_ctrl
+	jam 0x03,core_syn_cp_lpf_cfg
+	jam 0xa6,core_syn_aac_cfg1
+	jam 0x40,core_syn_afc_cfg3
+	rtn
+
+p_rf_tx_write_freq_16m:
+	jam 0x30,core_syn_cal_ctrl
+	jam 0x15,core_syn_top_ctrl
+	jam 0,core_syn_mmd_cp_ctrl
+	jam 0x20,core_syn_cp_lpf_cfg
+	jam 0xa6,core_syn_aac_cfg1
+	jam 0x15,core_syn_afc_cfg3
+	rtn
+
+/*
+p_le_enable_2m:
+	call p_le_enable
+	set1 mark_ble_2M,mark
+	set0 mark_ble_lr,mark
+	jam 0x03,0x8901
+	jam 0x84,0x8920
+	jam 0x89,core_rx_bq_cfg0
+	rtn
+
+p_le_enable_coded_s2:
+	call le_enable
+	set1 mark_ble_lr,mark
+	set0 mark_ble_lr_s8_fix,mark
+	jam 0x05,0x8901
+	jam 0x24,0x8930
+	rtn
+
+p_le_enable_coded_s8:
+	call p_le_enable_coded_s2
+	set1 mark_ble_lr_s8_fix,mark
+	rtn
+	
+p_le_enable:
+	enable le
+	set0 mark_ble_2M,mark
+	set0 mark_ble_lr,mark
+	jam 0x01,0x8901
+	jam 0x80,0x8920
+	jam 0xa7,0x8925
+	jam 0x03,0x8930
+	jam 0x58,0x8933
+	jam 0x0a,0x8934
+	jam 0x40,0x8937
+	jam 9,core_rx_bq_cfg0
+	rtn
+
+p_le_enable_phy_by_pdata:
+	copy temp,pdata
+	bbit1 BIT_LE_1M_PHY,p_le_enable
+	bbit1 BIT_LE_2M_PHY,p_le_enable_2m
+	bbit0 BIT_LE_CODED_PHY,le_enable
+	bbit1 BIT_LE_CODED_PHY_S8,p_le_enable_coded_s8
+	bbit1 BIT_LE_CODED_PHY_S2,p_le_enable_coded_s2
+	branch le_enable
+*/
+
+p_le_disable:
+	disable le
+	set0 mark_ble_encryption,mark
+	jam 0x00,0x8901
+	jam 0x80,0x8920
+	jam 0xa3,0x8925
+	jam 0x03,0x8930
+	jam 0x68,0x8933
+	jam 0x09,0x8934
+	jam 0x28,0x8937
+	jam 9,core_rx_bq_cfg0
+	rtn
+/*
+p_adc_init_data:
+	arg mem_3v_adc_io_data,rega
+	arg 12,temp
+	setarg EFUSE_OFFSET_ADC
+	call efuse_read_data
+	call p_enable_adc
+	fetch 8,mem_3v_adc_io_data
+	branch p_adc_base_value_init,blank	
+	rtn
+
+p_adc_base_value_init:
+	setarg 0x469a
+	store 2,mem_3v_adc_io_data
+	setarg 0xab77
+	store 2,mem_1v_adc_io_data
+	setarg 0x73d0
+	store 2,mem_3v_adc_vinlpm_data
+	setarg 0x9658
+	store 2,mem_2v_adc_vinlpm_data
+	rtn	
+
+p_adc_wait_timer:
+	arg mem_app_adc_read_count,regc
+	arg p_enable_adc,regb
+	branch timer_single_step
+	
+idle_read_adc_wait:
+	rtnmark0  mark_adc_enable
+	and clkn_bt,0xff,pdata
+	fetcht 1,mem_start_adc_clkn
+	call p_get_diff
+	sub rega,50,null
+	rtn positive
+	fetch 2,core_adc_sum
+	store 2,mem_adc_current_value
+	set0 mark_adc_enable,mark
+	jam 50,mem_app_adc_read_count
+	fetch 1,core_sum_en
+	set0 7,pdata
+	store 1,core_sum_en
+	jam 0,core_gpadc_ctrl
+	rtn
+
+//input pdata,temp
+//output rega:diff
+p_get_diff:
+	isub temp,rega
+	rtn positive
+	arg 0x100,rega
+	iadd rega,pdata
+	isub temp,rega
+	rtn
+
+// zero: disable adc
+p_enable_adc_check:
+	bbit0 state_insniff,context_search_next
+	add rega,coffset_mode,contr
+	ifetch 1,contr
+	bbit1 mode_le,p_enable_adc_check_le
+//	bbit1 mode_master, context_search_next
+	add rega,coffset_tsniff,contr
+	ifetch 2,contr
+	arg 0xffff,temp
+	isub temp,null
+	branch enable_zero,zero
+	branch context_search_next
+	
+p_enable_adc_check_le:
+	ifetch 1,rega
+	bbit0 lestate_got_first_packet,enable_zero
+	bbit1 lestate_update_param,enable_zero
+	bbit1 lestate_update_map,enable_zero
+	bbit1 lestate_update_phy,enable_zero
+	add rega,coffset_le_event_cnt,contr
+	ifetch 2,contr
+	sub pdata,7,null
+	branch enable_zero,positive
+	branch context_search_next
+	
+p_enable_adc_wait:
+	jam 1,mem_app_adc_read_count
+	rtn
+	
+p_enable_adc:	
+	arg p_enable_adc_check,regc
+	call context_search
+	branch p_enable_adc_wait,zero
+	jam 0xaa,core_rf_ldo_cfg5
+	jam 0x0c,core_rf_ldo_en0
+	fetch 1,core_clkpll_cfg6
+	set1 7,pdata
+	store 1,core_clkpll_cfg6
+	jam 0x04,core_rf_ldo_en1
+	nop 60
+	jam 0,core_syn_en
+	jam 6,core_rx_en0
+	call p_read_adc_mode
+	store 1,core_gpadc_ctrl
+//	jam 0x07,core_gpadc_ctrl
+	jam 0x03,core_sum_ctrl
+	nop 60
+	fetch 1,core_sum_en
+	set1 7,pdata
+	store 1,core_sum_en
+//	nop 500  // 1/24ms
+//	fetch 2,core_adc_sum
+//	store 2,mem_adc_current_value
+	set1 mark_adc_enable,mark
+	copy clkn_bt,pdata
+	store 1,mem_start_adc_clkn
+	rtn
+	
+
+p_read_adc_mode:	
+	fetch 1,mem_adc_config_flag
+	beq ADC_CONFIG_VINLPM,p_adc_mode_vdcdc
+	beq ADC_CONFIG_HVIN,p_adc_adc_mode_vbat
+//	beq ADC_CONFIG_GPIO,adc_check_gpio
+p_adc_check_gpio:
+	fetch 1,mem_adc_channel
+	lshift3 pdata,pdata
+	or pdata,7,pdata
+	rtn
+
+p_adc_mode_vdcdc:
+	setarg 0x57
+	rtn
+	
+p_adc_adc_mode_vbat:
+	setarg 0x4f
+	rtn
+	
+	
+p_vdd_calculate_by_mode:
+	fetch 1,mem_adc_config_flag
+	beq ADC_CONFIG_VINLPM,p_vdd_calculate_vinlpm
+	beq ADC_CONFIG_HVIN,p_vdd_calculate_hvin
+	beq ADC_CONFIG_GPIO,p_vdd_calculate_io
+	rtn
+
+p_vdd_calculate_vinlpm:
+	setarg 100
+	store 2,mem_reference_voltage //diff
+	fetcht 2,mem_3v_adc_vinlpm_data
+	fetch 2,mem_2v_adc_vinlpm_data
+	arg 300,regc
+	branch p_vdd_calculate
+
+p_vdd_calculate_hvin:
+	setarg 200
+	store 2,mem_reference_voltage //diff
+	fetcht 2,mem_5v_adc_hvin_data
+	fetch 2,mem_3v_adc_hvin_data
+	arg 500,regc
+	branch p_vdd_calculate
+
+p_vdd_calculate_io:
+	setarg 200
+	store 2,mem_reference_voltage //diff
+	fetcht 2,mem_3v_adc_io_data
+	fetch 2,mem_1v_adc_io_data
+	arg 300,regc //max vol
+	
+p_vdd_calculate:
+	isub temp,rega
+	fetch 2,mem_adc_current_value
+	isub temp,pdata
+	nbranch p_vdd_calculate1,positive
+	fetcht 2,mem_reference_voltage
+	imul32 temp,regb
+	copy regc,pdata
+	imul32 rega,pdata
+	isub regb,pdata
+p_vdd_calculate2:
+	idiv rega
+	call wait_div_end
+	quotient pdata	
+	rtn
+
+p_vdd_calculate1:
+	copy temp,pdata
+	fetcht 2,mem_adc_current_value
+	isub temp,pdata
+	fetcht 2,mem_reference_voltage
+	imul32 temp,regb
+	copy regc,pdata
+	imul32 rega,pdata
+	iadd regb,pdata
+	branch p_vdd_calculate2
+*/
+
+
+/*
+p_le_slave_match:
+	fetch 1,mem_le_md_count
+	pincrease 1
+	store 1,mem_le_md_count
+	beq LE_MD_MAX_COUNT,le_slave_cont
+	call le_acknowledge
+	call le_prepare_tx
+	fetch 1,mem_le_tx_phy
+	call le_enable_phy_by_pdata
+//	call le_transmit
+	call le_transmit_norx
+	branch le_slave_match+10
+
+p_le_slave_unsync:
+//	call end_of_packet
+	branch le_slave_unsync+2
+
+p_le_parse:
+	rtnmark1 mark_old_packet
+	rtnmark1 mark_ble_crc_fail
+	fetch 1,mem_le_rxbuf_data_header
+	and pdata,0x3,pdata
+	store 1,mem_le_packet_llid
+	fetch 1,mem_le_rxbuf_data_length
+	rtn blank							//empty rtn
+	setarg mem_le_rxbuf_data_payload
+	branch le_parse+7
+
+p_le_transmit:
+	call le_prep
+	call le_tx_setfreq
+	call rf_debug_tx_on_line	//H
+	set1 TXGFSK,radio_ctrl
+	enable encode_fec0
+	enable is_tx
+	disable is_rx
+	call le_wait_tx
+	disable lr_s2en
+	bmark1 mark_ble_lr,p_le_transmit_lr
+	branch le_transmit+11
+
+p_le_transmit_lr:
+	arg 10,loopcnt
+p_le_transmit_lr_preamble_loop:
+	setarg 0x3c
+	inject mod,8
+	loop p_le_transmit_lr_preamble_loop
+	disable encode_fec0
+	enable encode_fec3
+	rshift16 access,pdata
+	rshift16 pdata,pdata
+	rshift4 pdata,pdata
+	inject mod,32
+	bmark1 mark_ble_lr_s8_fix,le_transmit_lr_s8
+	branch le_transmit_lr_s2
+*/
+
+
+/*
+p_l2cap_rx_multiplexing:
+	fetch 1,mem_l2cap_rx_cid
+	beq L2CAP_signal_channel,l2cap_call_proc_signal
+p_l2cap_rx_multiplexing0:
+	beq L2CAP_SDP_channel,p_l2cap_call_proc_sdp
+	branch l2cap_rx_multiplexing0+1
+
+p_l2cap_call_proc_sdp:
+	call l2cap_malloc_is_fifo_empty
+	nrtn blank// not process this packet until fifo empty
+	call l2cap_check_map
+	nrtn blank
+	call l2cap_malloc_sdp_channel
+	call enable_authrom
+	call sdp_process
+	call disable_authrom
+	call l2cap_reset_sdp_map
+	branch l2cap_call_proc_sdp_common
+
+p_ml2cap_rx_multiplexing:
+	fetch 1,mem_l2cap_rx_cid
+	beq L2CAP_SDP_channel,p_ml2cap_call_proc_sdp
+	branch ml2cap_rx_multiplexing+4
+
+p_ml2cap_call_proc_sdp:
+	call l2cap_malloc_is_fifo_empty
+	nrtn blank// not process this packet until fifo empty
+	call l2cap_malloc_sdp_channel
+	call enable_authrom
+	call sdp_process
+	call disable_authrom
+	branch l2cap_call_proc_sdp_common
+*/
+
+//////////////////////////////////////////////start//////////////////////////////////////////////////////
+p_mouse_init:
+	call p_mouse_default_init
+	call initialize_radio
+	call p_mouse_setting_config
+	call mouse_init_sunt
+	call mouse_dpi_config
+	rtn wake
+	call mouse_usb_check_enable
+	call mouse_drawing_optima_init
+	call p_mouse_cb_fuction
+	call p_mouse_sensor_powerdown
+	fetch 1,mem_usb_addr
+	rtnbit1 7
+p_mouse_init_wireless:	
+//	fetch 2,mem_ui_state_map
+//	bbit1 UI_STATE_BTN_DOWN,mouse_start_discovery
+//	call mouse_check_select_device_by_switch_gpio
+	branch mouse_start_work
+
+
+ifdef MOUSE_USB	
+p_mouse_usb_interface_check:
+	fetcht 1,mem_usb_offline_check_gpio
+	call gpio_get_bit
+	branch p_mouse_usb_gpio_low,true
+	branch mouse_usb_gpio_high
+
+p_mouse_usb_gpio_low:
+	fetch 1,mem_mouse_usb_vdd_status
+	rtneq MOUSE_USB_INTERFACE_REMOVE
+	jam MOUSE_USB_INTERFACE_REMOVE,mem_mouse_usb_vdd_status
+	jam 0,mem_usb_device_enumeration_endflag
+	jam 0,mem_usb_status
+	jam 0,mem_usb_state
+	branch mouse_init_wireless
+endif	
+//////////////////////////////////////////////start//////////////////////////////////////////////////////
+	
+//////////////////////////////////////////////start//////////////////////////////////////////////////////	
+p_mouse_bb_event_timer:
+	//24g
+	call mouse_24g_delay_timer
+	call g24_pair_timeout_timer
+	call g24_reconn_timeout_timer
+	call p_mouse_24g_long_sleep_param_update_timer
+	//led
+	call mouse_device_poweron_timer
+	call mouse_dpi_led_blink_delay_timer
+	//poll
+	call mouse_dpi_key_check_long_press
+	call mouse_bt_discovery_check
+	call mouse_commbination_key_process
+//ble
+	//call p_mouse_check_discovery_timeout_timer
+	//call p_mouse_check_direct_timeout_timer
+	//call mouse_le_enable_att_list_timer
+	//call mouse_le_battery_updata_timer
+	//call mouse_le_send_smp_security_request_timer
+//bt
+	//call mouse_check_hid_handshake_timer
+	//call mouse_bt_check_sniff_req_timeout_timer
+	//call p_mouse_check_reconnect_delay_long_sleep		//delete 3.0,reconnect fail
+	//call mouse_current_mult_update_timer
+	call mouse_wheel_trigger_timer
+	call mouse_store_information_delay_timer
+	branch p_mouse_check_no_data_timeout_timer
+
+
+//////////////////////////////////////////////end//////////////////////////////////////////////////////	
+
+
+//////////////////////////////////////////////start//////////////////////////////////////////////////////
+p_mouse_cb_fuction:
+	setarg p_mouse_24g_package_data
+	store 2,mem_cb_24g_transmit_data
+	setarg p_mouse_24g_search_dongle
+	store 2,mem_cb_24g_search_receiver
+	setarg mouse_lpm_before_common
+	store 2,mem_cb_24g_lpm_before
+	setarg mouse_le
+	store 2,mem_cb_le_process
+	setarg mouse_bt
+	store 2,mem_cb_bt_process
+	setarg p_mouse_process_lpm_before
+	store 2,mem_cb_before_lpm
+	setarg mouse_priority_bb_event
+	store 2,mem_cb_bb_event_process
+	setarg mouse_idle
+	store 2,mem_cb_idle_process
+	setarg mouse_before_hibernate
+	store 2,mem_cb_before_hibernate
+	setarg mouse_le_bb_event_connect_complete
+	store 2,mem_cb_att_write	
+	setarg mouse_bb_event_timer
+	store 2,mem_cb_event_timer
+	setarg mouse_spi_write_flash_cb
+	store 2,mem_cb_spi_flash_write_complate
+	setarg mouse_lpm_check_wake_lock
+	store 2,mem_cb_check_wakelock
+	setarg p_mouse_le_transmit
+	store 2,mem_cb_ble_transmit
+	setarg p_mouse_bt_slave_match
+	store 2,mem_cb_bt_slave_match
+//	setarg p_mouse_set_lpm_mult
+//	store 2,mem_cb_bt_set_mult
+	rtn
+
+//p_mouse_le_set_lpm_mult:
+//	fetch 1,mem_le_connect_status_flag
+//	compare 3,pdata,3
+//	nbranch disable_blank,true
+//	call app_lpm_mult_enable
+//	branch enable_blank
+
+//p_mouse_bt_set_lpm_mult:
+//	call l2cap_malloc_is_fifo_empty
+//	nbranch disable_blank,blank
+//	jam 1,mem_current_sniff_attempt
+//	jam 0,mem_current_sniff_timeout
+//	branch enable_blank
+
+//p_mouse_set_lpm_mult:
+//	fetch 2,mem_ui_state_map
+//	bbit1 UI_STATE_BLE_CONNECTED,p_mouse_le_set_lpm_mult
+//	branch p_mouse_bt_set_lpm_mult
+
+
+
+p_mouse_le_transmit:
+	call p_rssi_hex2dec
+	branch mouse_le_transmit
+
+p_mouse_bt_slave_match:
+	call p_rssi_hex2dec
+	branch mouse_bt_slave_match
+//////////////////////////////////////////////end//////////////////////////////////////////////////////
+
+//////////////////////////////////////////////start//////////////////////////////////////////////////////
+//p_mouse_adc_enable:
+//	arg MOUSE_ENABLE_ADC,queue
+//	branch mouse_enable_function_flag
+//	branch p_adc_init_data
+
+p_mouse_24g_250Hz_enable:
+	arg MOUSE_ENABLE_24G_250Hz,queue
+	branch mouse_enable_function_flag
+
+p_mouse_24g_search_dongle_enable:
+	arg MOUSE_ENABLE_24G_SEARCH_DONGLE,queue
+	branch mouse_enable_function_flag
+	
+p_mouse_16M_enable:
+	arg MOUSE_ENABLE_16M,queue
+	branch mouse_enable_function_flag
+	
+p_mouse_dpi_4level_enable:
+	arg MOUSE_ENABLE_DPI_LEVEL_4,queue
+	branch mouse_enable_function_flag
+
+	
+
+p_mouse_24g_long_sleep_set:
+	beq 0x00,p_mouse_24g_long_sleep_set_30ms
+	beq 0x01,p_mouse_24g_long_sleep_set_50ms
+	beq 0x02,p_mouse_24g_long_sleep_set_80ms
+	beq 0x03,p_mouse_24g_long_sleep_set_100ms
+p_mouse_24g_long_sleep_set_80ms:
+	setarg 0x0ea600
+p_mouse_24g_long_sleep_set_end:	
+	store 4,mem_24g_long_sleep_set1
+	rtn
+p_mouse_24g_long_sleep_set_30ms:
+	setarg 0x05e740
+	branch p_mouse_24g_long_sleep_set_end
+p_mouse_24g_long_sleep_set_50ms:
+	setarg 0x0927c0
+	branch p_mouse_24g_long_sleep_set_end
+p_mouse_24g_long_sleep_set_100ms:
+	setarg 0x124f80
+	branch p_mouse_24g_long_sleep_set_end
+
+
+p_mouse_customer_key_enable:
+	arg MOUSE_ENABLE_KEYBOARD,queue
+	call mouse_enable_function_flag
+	setarg 0
+	store 8,mem_customer_key_press
+	store 8,mem_customer_key_release
+	fetch 1,mem_mouse_enable_flag	// 00--win+d     01--ctrl+alt+a    02--AC home    03--play
+	and pdata,0xc0,pdata
+	beq 0x40,p_mouse_customer_key_ctrl_alt_a
+	beq 0x80,p_mouse_customer_AC_home
+	beq 0xc0,p_mouse_customer_key_play
+	setarg 0x070008
+p_mouse_customer_standrad_key_set:	
+	store 8,mem_customer_key_press+1		// win + d
+	rtn
+
+p_mouse_customer_key_ctrl_alt_a:
+	setarg 0x040005
+	branch p_mouse_customer_standrad_key_set
+
+	
+p_mouse_customer_AC_home:
+	setarg 0x022303
+p_mouse_customer_media_key_set:	
+	store 8,mem_customer_key_press
+	setarg 0x03
+	store 8,mem_customer_key_release
+	rtn
+	
+p_mouse_customer_key_play:
+	setarg 0x00cd03
+	branch p_mouse_customer_media_key_set
+	
+
+p_mouse_24g_package_data:
+	rtnmark0 mark_24g
+	call mouse_motion
+	nrtn user
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	bbit0 MOUSE_ENABLE_KEYBOARD,p_mouse_24g_mouse_package_data
+	fetch 1,mem_customer_key
+	nbranch mouse_24g_keyboard_package_data,blank
+p_mouse_24g_mouse_package_data:
+	call mouse_data_xy_release
+	fetch 1,mem_24g_data_type
+	bbit1 1,p_mouse_24g_mouse_package_data_now	// last package is keyboard data
+	fetcht 1,mem_24g_txbuf+1
+	fetch 1,mem_mouse_key
+	ior temp,pdata
+	store 1,mem_mouse_key
+	fetcht 1,mem_24g_txbuf+6
+	fetch 1,mem_mouse_z
+	iadd temp,pdata
+	store 1,mem_mouse_z
+	fetcht 1,mem_24g_txbuf+7
+	fetch 1,mem_mouse_tz
+	iadd temp,pdata
+	store 1,mem_mouse_tz
+p_mouse_24g_mouse_package_data_now:	
+	jam TYPE_MS,mem_24g_data_type
+	arg 7,rega	//length
+	arg mem_mouse_key,regb //tx buff
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	bbit1 MOUSE_ENABLE_24G_250Hz,g24_transmit_by_interrupt_enable
+	fetch 2,mem_mouse_z
+	rtn blank
+	branch g24_transmit_by_interrupt_enable
+	
+//////////////////////////////////////////////end//////////////////////////////////////////////////////
+
+//////////////////////////////////////////////start//////////////////////////////////////////////////////
+p_mouse_24g_search_dongle:
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	rtnbit0 MOUSE_ENABLE_24G_SEARCH_DONGLE
+	fetch 1,mem_mouse_long_mult_flag
+	rtn blank
+	fetch 1,mem_24g_abort_pac
+	rtn blank
+	fetch 1,mem_mouse_search_dongle_interval
+	increase 1,pdata
+	and_into 3,pdata
+	store 1,mem_mouse_search_dongle_interval
+	nrtn blank	//400ms
+	jam 0,mem_mouse_search_dongle_ch
+p_mouse_24g_search_dongle_loop:
+	fetch 1,mem_mouse_search_dongle_ch
+	increase 1,pdata
+	store 1,mem_mouse_search_dongle_ch
+	sub pdata,G24_CH_NUMBER,null
+	nbranch p_mouse_24g_search_dongle_loop_end,positive
+	call g24_reconn_data_prep
+	call g24_transmit_receive_ack
+	nbranch p_mouse_24g_search_dongle_loop_retry,sync
+	nbranch p_mouse_24g_search_dongle_loop_retry,user3
+	call p_mouse_24g_search_dongle_success
+p_mouse_24g_search_dongle_loop_end:
+	call g24_txbuf_clear
+	fetch 1,mem_mouse_search_dongle_count
+	increase 1,pdata
+	store 1,mem_mouse_search_dongle_count
+	beq G24_CH_POLL_COUNT,p_mouse_24g_search_dongle_check
+	rtn	
+
+p_mouse_24g_search_dongle_loop_retry:
+	call g24_ch
+	branch p_mouse_24g_search_dongle_loop
+
+p_mouse_24g_search_dongle_check:
+	jam 0,mem_mouse_search_dongle_count
+	fetch 1,mem_mouse_search_dongle_action
+	rtnbit1 G24_DISCONN_STATE
+	set1 G24_DISCONN_STATE,pdata
+	store 1,mem_mouse_search_dongle_action
+	fetch 2,mem_mouse_24g_search_dongle_time_init		//3min
+	store 2,mem_mouse_no_data_timer
+	branch p_mouse_sensor_powerdown
+
+p_mouse_24g_search_dongle_success:
+	fetch 1,mem_24g_abort_pac
+	branch mouse_24g_search_dongle_init,blank
+	jam 0,mem_mouse_search_dongle_count
+	fetch 1,mem_mouse_search_dongle_action
+	rtnbit0 G24_DISCONN_STATE
+	set0 G24_DISCONN_STATE,pdata
+	store 1,mem_mouse_search_dongle_action
+	call mouse_no_data_timer_init
+	branch p_mouse_init_sensor_wakeup
+	
+//////////////////////////////////////////////end//////////////////////////////////////////////////////	
+
+
+//////////////////////////////////////////////start//////////////////////////////////////////////////////
+p_mouse_check_no_data_timeout_timer:
+	fetch 1,mem_usb_addr
+	rtnbit1 7
+	arg mem_mouse_no_data_timer,regc
+	arg p_mouse_check_no_data_timeout,regb
+	branch timer_single_step_2B
+
+p_mouse_check_no_data_timeout:
+	fetch 1,mem_device_flag
+	beq MODE_24G_DEVICE,p_mouse_24g_hibernate_set
+	branch mouse_disconnect
+//////////////////////////////////////////////end//////////////////////////////////////////////////////
+
+//////////////////////////////////////////////start//////////////////////////////////////////////////////
+p_mouse_setting_config:
+	rtn wake
+	call g24_transmit_init
+	call p_g24_rx_window_init
+	call p_g24_chmap_param_init
+	call p_mouse_gpio_init
+	call mouse_param_init
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	bbit0 MOUSE_ENABLE_24G_250Hz,p_mouse_setting_config_next
+	setarg 0x100c0c
+	store 3,mem_24g_interval
+p_mouse_setting_config_next:
+	call p_mouse_sensor_set_angle
+	call le_set_config_fixed_ltk
+	call le_set_justwork
+	call le_set_fixed_ltk
+	call le_set_config_read_authentication
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	bbit1 MOUSE_ENABLE_EEPROM,mouse_load_eeprom_info_check+1
+	bbit1 MOUSE_ENABLE_FLASH,mouse_load_flash_info_check
+	rtn
+
+p_mouse_gpio_init:
+	fetcht 1,mem_eeprom_wp_gpio
+	call gpio_config_output
+	call usb_offline_check_init
+	fetcht 1,mem_lbutton_gpio
+	call p_mouse_gpio_config_input_pu
+	fetcht 1,mem_rbutton_gpio
+	call p_mouse_gpio_config_input_pu
+	fetcht 1,mem_mbutton_gpio
+	call p_mouse_gpio_config_input_pu
+	fetcht 1,mem_bk_button_gpio
+	call p_mouse_gpio_config_input_pu
+	fetcht 1,mem_fw_button_gpio
+	call p_mouse_gpio_config_input_pu
+	fetcht 1,mem_dpi_button_gpio
+	call p_mouse_gpio_config_input_pu
+
+	fetcht 1,mem_matrix_public_gpio
+	call p_mouse_gpio_config_input_pu
+
+	fetcht 1,mem_config_select_device_button_gpio
+	call p_mouse_gpio_config_input_pu
+
+	fetcht 1,mem_customer_key_gpio
+	call p_mouse_gpio_config_input_pu
+
+	fetcht 1,mem_whee_a_data_gpio
+	call p_mouse_gpio_config_input_pu
+
+	fetcht 1,mem_whee_b_data_gpio
+	call p_mouse_gpio_config_input_pu
+
+	fetcht 1,mem_whee_ta_data_gpio
+	call p_mouse_gpio_config_input_pu
+	fetcht 1,mem_whee_tb_data_gpio
+	call p_mouse_gpio_config_input_pu
+
+	fetcht 1,mem_sensor_motion_gpio
+	call p_mouse_gpio_config_input_pu
+
+	fetcht 1,mem_device_switch_gpio
+	call p_mouse_gpio_config_input_pu
+
+	fetcht 1,mem_config_low_voltage_alarm_gpio
+	call gpio_config_output
+
+	fetcht 1,mem_config_device_24g_led_gpio
+	call gpio_config_output
+
+	fetcht 1,mem_config_device_bt1_led_gpio
+	call gpio_config_output
+	
+	fetcht 1,mem_config_device_bt2_led_gpio
+	call gpio_config_output
+
+	fetcht 1,mem_dpi_led_gpio
+	call gpio_config_output
+
+	fetcht 1,mem_select_sensor_angle_gpio
+	branch p_mouse_gpio_config_input_pu	
+
+p_mouse_sensor_set_angle:
+	fetch 1,mem_sensor_angle_default
+	store 1,mem_config_sensor_angle
+	fetch 1,mem_select_sensor_angle_gpio
+	rtneq GPIO_DISABLE
+	fetcht 1,mem_select_sensor_angle_gpio
+	call p_mouse_gpio_config_input_pu
+	fetcht 1,mem_select_sensor_angle_gpio
+	call gpio_get_bit
+	call p_mouse_sensor_switch_angle,true
+	branch p_mouse_gpio_config_input_pd
+p_mouse_sensor_switch_angle:
+	fetch 1,mem_sensor_angle_switch
+	store 1,mem_config_sensor_angle
+	rtn
+	
+	
+//////////////////////////////////////////////end//////////////////////////////////////////////////////
+	
+//////////////////////////////////////////////start//////////////////////////////////////////////////////
+p_g24_rx_window_init:
+	arg 0x7530,temp
+	bmark1 mark_24g_rxmode,p_g24_rx_window_store
+	arg 0x12c0,temp
+	fetch 1,mem_24g_rx_phy
+	bbit0 2,p_g24_rx_window_store	//uncoded phy
+	arg 0x2ee0,temp
+p_g24_rx_window_store:	
+	storet 2,mem_24g_rx_window
+	rtn
+
+p_g24_enable_1M:
+	jam 0x01,mem_24g_rx_phy
+	jam 0x01,mem_24g_tx_phy
+	rtn
+//////////////////////////////////////////////end//////////////////////////////////////////////////////
+
+//////////////////////////////////////////////start//////////////////////////////////////////////////////
+p_g24_interval_param_4ms:
+	jam 5,mem_24g_fast_hop_count
+	setarg G24_4MS_INTERVAL_PARAM
+	store 3,mem_24g_short_sleep_set
+	setarg 0x00bb80
+	store 3,mem_24g_long_sleep_set
+	setarg 0x100c0c
+	store 3,mem_24g_interval
+	rtn
+
+p_g24_interval_param_8ms:
+	jam 11,mem_24g_fast_hop_count
+	setarg G24_SHORT_SLEEP_STEP1
+	store 3,mem_24g_short_sleep_set
+	setarg 0x017700
+	store 3,mem_24g_long_sleep_set
+	setarg 0x1c1919
+	store 3,mem_24g_interval
+	rtn
+//////////////////////////////////////////////end//////////////////////////////////////////////////////
+
+//////////////////////////////////////////////start//////////////////////////////////////////////////////
+p_mouse_param_default_set:
+	rtn wake
+	jam 0xff,mem_usb_offline_check_gpio
+	jam 1,mem_lpm_mode
+	jam 0xff,mem_ui_button_gpio
+	jam 0x1e,mem_ui_button_timeout
+
+	setarg mem_mouse_led_type
+	store 2,mem_ui_led_struct_ptr
+	jam 1,mem_ui_led_struct_num
+
+	setarg mem_mouse_rssi_signal_buf
+	store 2,mem_rssi_signal_buf_ptr
+
+	jam 1,mem_24g_data_type
+	jam 0x01,mem_24g_fast_conn_enable
+	setarg 0x0f0f
+	store 2,mem_24g_fast_conn_addr
+	store 2,mem_24g_fast_conn_addr+2
+
+	fetch 1,mem_mouse_global_setup
+	and pdata,0x07,temp
+	storet 1,mem_adc_channel
+	rshift4 pdata,pdata
+	and pdata,0x03,temp
+	storet 1,mem_adc_config_flag_init
+	rshift2 pdata,pdata
+	and pdata,0x03,pdata
+	call p_mouse_24g_long_sleep_set
+
+	fetch 1,mem_mouse_sensor_config
+	and pdata,0x03,temp
+	storet 1,mem_sensor_angle_default
+	rshift2 pdata,pdata
+	and pdata,0x03,temp
+	storet 1,mem_sensor_angle_switch
+	rshift2 pdata,pdata
+	and pdata,0x03,pdata
+	store 1,mem_config_sensor_dpi
+	store 1,mem_mouse_dpi
+	
+
+	fetch 2,mem_mouse_discovery_timeout
+	store 2,mem_discovery_timeout
+
+	fetch 2,mem_mouse_24g_pair_timeout_init
+	store 2,mem_24g_pair_timeout_init
+
+	fetch 3,mem_rssi_dis_min_24g_init
+	store 3,mem_rssi_dis_min_24g
+
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	nrtn blank
+
+// mouse.dat no configuration parameters
+	setarg 0x4a0804
+	store 3,mem_mouse_flag			// mouse config default
+	setarg 0x800000					// adc led use mode led
+	istore 3,contw
+	setarg 0x0303
+	istore 2,contw
+
+//	fetch 1,mem_mouse_enable_flag
+//	isolate1 MOUSE_ADC_ENABLE,pdata
+//	call p_mouse_adc_enable,true
+//	fetch 1,mem_mouse_enable_flag
+//	isolate1 MOUSE_24G_250HZ_ENABLE,pdata
+//	call p_mouse_24g_250Hz_enable,true
+	fetch 1,mem_mouse_enable_flag
+	isolate1 MOUSE_SEARCH_DONGLE_ENABLE,pdata
+	call p_mouse_24g_search_dongle_enable,true
+//	fetch 1,mem_mouse_enable_flag
+//	isolate1 MOUSE_CLK_16M_ENABLE,pdata
+//	call p_mouse_16M_enable,true
+//	fetch 1,mem_mouse_enable_flag
+//	isolate1 MOUSE_DPI_4_LEVEL_ENABLE,pdata
+//	call p_mouse_dpi_4level_enable,true
+//	fetch 1,mem_mouse_enable_flag
+//	isolate1 MOUSE_KEYBOARD_ENABLE,pdata
+//	call p_mouse_customer_key_enable,true
+	
+
+//sop16
+	setarg 0x0b0c0a
+	store 3,mem_lbutton_gpio
+	jam 0xff,mem_config_select_device_button_gpio
+	setarg 0xffff
+	store 2,mem_whee_ta_data_gpio
+	store 2,mem_device_switch_gpio
+	store 2,mem_config_device_bt2_led_gpio
+
+/*
+// qfn32 dry battery gpio setup
+	setarg 0x06050e
+	store 3,mem_lbutton_gpio
+	setarg 0xffffff
+	store 3,mem_matrix_public_gpio
+	store 3,mem_whee_ta_data_gpio
+	store 2,mem_device_switch_gpio
+	setarg 0x0904
+	store 2,mem_config_device_bt2_led_gpio
+*/	
+/*
+// qfn32 Li battery gpio setup	
+	setarg 0x010200
+	store 3,mem_lbutton_gpio		
+	setarg 0x020100
+	istore 3,contw
+	setarg 0xffffff
+	istore 3,contw
+	setarg 0xff0304		// wheel
+	istore 3,contw
+	setarg 0xff05ff			//motion
+	istore 3,contw
+	setarg 0xff8989		// 89 2.4g led
+	istore 3,contw
+	setarg 0xffffff
+	istore 3,contw
+	setarg 0x0002
+	istore 2,contw
+*/
+
+/****/
+	setarg 0x1770
+	store 2,mem_mouse_no_data_timeout				// 10min
+	jam 0x14,mem_mouse_device_poweron_timer_count_init	// 2s
+	setarg 0x0190
+	store 2,mem_mouse_low_v_led_blink_time			// 200ms on,200ms off
+	store 2,mem_mouse_dpi_led_blink_time
+	setarg 0x03e8
+	store 2,mem_mouse_disconvey_led_blink_time
+	jam 0x07,mem_rssi_buff_index
+	jam 125,mem_power_ctrl_pac_succ_cnt_init
+	jam TX_POWER_0DB,mem_tx_power
+
+	setarg 0x005000
+	store 3,mem_flash_base
+	setarg 0x1f80
+	store 2,mem_eeprom_base
+	jam 0x80,mem_eeprom_block_size
+	
+//ble
+	arg mem_le_lap,contw
+	arg mem_lap,contr
+	arg 0x06,loopcnt
+	call reverse_byte
+	
+	jam 0x20,mem_lpm_mult
+	jam 0x20,mem_lpm_mult_init
+	jam 0x34,mem_device1_type
+	fetch 6,mem_le_lap
+	store 6,mem_device1_locall_addr
+	jam 0x02,mem_mouse_bluetooth_type
+
+	jam 0x1f,mem_le_adv_data_len
+	
+	setarg 0x050102
+	store 3,mem_le_adv_data
+	setarg 0x120303
+	istore 3,contw
+	setarg 0x190318
+	istore 3,contw
+	setarg  0x03c2
+	istore 2,contw
+
+	setarg 0x06ff06
+	store 3,mem_le_adv_swift_pair
+	setarg 0x000300
+	istore 3,contw
+	setarg 0x090c80
+	istore 3,contw
+
+	setarg 0x355442		// BT5.2 Mouse
+	istore 3,contw
+	setarg 0x20322e
+	istore 3,contw
+	setarg 0x756f4d
+	istore 3,contw
+	setarg 0x6573
+	istore 2,contw
+
+	jam 0x1f,mem_le_scan_data_len
+	arg mem_le_adv_swift_pair+7,contr
+	arg mem_le_scan_data,contw
+	arg 13,loopcnt
+	call memcpy
+
+	fetch 1,mem_le_scan_data
+	increase -1,pdata
+	store 1,mem_le_name_len
+
+	arg mem_le_scan_data+2,contr
+	arg mem_le_name_len+1,contw
+	arg 11,loopcnt
+	call memcpy
+
+	setarg  0x070007
+	store 3,mem_le_interval_min
+	setarg 0x002000
+	istore 3,contw
+	setarg 0x012c
+	istore 2,contw
+
+	setarg 0x181203
+	store 3,mem_le_adv_ind
+
+	setarg 0x0000ff
+	store 3,mem_le_adv_direct_ind
+
+	setsect 0,0xfb
+	setsect 1,0x2c212
+	setsect 2,0x800f
+	setsect 3,0x21
+	store 8,mem_local_rx_max_octets
+
+	jam 0x07,mem_le_adv_channel_map
+
+	setarg 0x0015
+	store 2,mem_le_keyboard_handle
+	setarg 0x0019
+	store 2,mem_le_notify_handle
+	setarg 0x001d
+	store 2,mem_le_multimedia_handle
+	setarg 0x0021
+	store 2,mem_le_systemctrl_handle
+	setarg 0x0030
+	store 2,mem_le_battery_level_handle
+	setarg 0x0022
+	store 2,mem_le_pairing_handle
+
+	jam 0x96,mem_le_battery_level_updata_timer_init
+
+// 24g
+	jam MODE_24G_DEVICE,mem_device_flag
+	call p_g24_interval_param_8ms
+	setarg 0x604800
+	store 3,mem_24g_enter_hibernate
+	setarg 0x012c
+	store 2,mem_24g_long_sleep_param_update_timer_init
+	setarg 0x0050
+	store 2,mem_24g_transmit_by_interrupt_exit_count_init
+	setarg 0x05
+	store 2,mem_mouse_24g_power_on_fast_conn_timer	// 200ms
+	setarg 0x0708									//search dongle 3min
+	store 2,mem_mouse_24g_search_dongle_time_init
+	call p_g24_enable_1M
+	call p_g24_pair_param_init
+/*
+mem_24g_ch_update_map1:00 1e 00 4e
+mem_24g_ch_update_map2:03 23 03 42
+mem_24g_ch_update_map3:06 25 06 4c
+mem_24g_ch_update_map4:09 27 09 3c
+*/
+	setarg 0x4e001e
+	store 3,mem_24g_ch_update_map1+1
+	setarg 0x032303
+	istore 3,contw
+	setarg 0x250642
+	istore 3,contw
+	setarg 0x094c06
+	istore 3,contw
+	setarg 0x3c0927
+	istore 3,contw
+	
+// sensor
+	setarg 0x010403
+	store 3,mem_mouse_dpi_seting
+	setarg 0x2a2002
+	istore 3,contw
+	setarg 0x153f
+	istore 2,contw
+
+	setarg 0x265a09
+	store 3,mem_sensor_3212_init
+	setarg 0x041934
+	istore 3,contw
+	setarg 0x0009
+	istore 2,contw
+	setarg 0xffff
+	istore 2,contw	
+
+	setarg 0x0d5a09
+	store 3,mem_sensor_3205_init
+	setarg 0xed1d10
+	istore 3,contw
+	setarg 0x807d
+	istore 2,contw
+	setarg 0xffff
+	istore 2,contw
+
+/*	setarg 0xff5a09
+	store 3,mem_sensor_8650_init
+	setarg 0x40ab27
+	istore 3,contw
+	setarg 0xa0d1be
+	istore 3,contw
+	setarg 0x12a141
+	istore 3,contw
+	setarg 0xa784a5
+	istore 3,contw
+	setarg 0xd0b5ff
+	istore 3,contw
+	setarg 0xff00b6
+	istore 3,contw
+	setarg 0x000900
+	istore 3,contw
+	setarg 0xffff
+	istore 2,contw
+*/
+	setarg 0x5b5a09
+	store 3,mem_sensor_ka8_init
+	setarg 0x120d9a
+	istore 3,contw
+	setarg 0x53c50e
+	istore 3,contw
+	setarg 0x000948
+	istore 3,contw
+	setarg 0xffff
+	istore 2,contw
+
+	setarg 0x0b5a09
+	store 3,mem_sensor_poweron_init
+	setarg 0x0009f3
+	istore 3,contw
+	setarg 0xffff
+	istore 2,contw
+	rtn
+
+	
+//////////////////////////////////////////////end//////////////////////////////////////////////////////
+
+
+//////////////////////////////////////////////start//////////////////////////////////////////////////////
+p_mouse_process_lpm_before:
+	rtnmark1 mark_24g
+	branch mouse_process_lpm_before	
+
+p_mouse_lpm_before_common:
+	call mouse_wheel_check
+	fetch 1,mem_mouse_sensor_sclk_gpio
+	arg gpcfg_output_high,temp
+ 	call gpio_config_function_int
+	
+	call twspi_disable
+	
+	fetcht 1,mem_lbutton_gpio
+	call gpio_set_wake
+	fetcht 1,mem_rbutton_gpio
+	call gpio_set_wake
+	fetcht 1,mem_mbutton_gpio
+	call gpio_set_wake
+
+	fetcht 1,mem_bk_button_gpio
+	call gpio_set_wake
+	fetcht 1,mem_fw_button_gpio
+	call gpio_set_wake
+	fetcht 1,mem_dpi_button_gpio
+	call gpio_set_wake
+	
+	fetcht 1,mem_whee_a_data_gpio
+	call gpio_set_wake_by_current_state
+	fetcht 1,mem_whee_b_data_gpio
+	call gpio_set_wake_by_current_state
+	fetcht 1,mem_whee_ta_data_gpio
+	call gpio_set_wake_by_current_state
+	fetcht 1,mem_whee_tb_data_gpio
+	branch gpio_set_wake_by_current_state
+
+p_mouse_before_hibernate:
+	enable user
+	fetch 4,0x8138
+	setflag user,26,pdata
+	store 4,core_lpm_reg
+	call lpm_write_ctrl
+	call disable_authrom
+	call mouse_device_led_all_off
+	call p_mouse_before_hibernate_wheel_gpio_set
+	call p_mouse_setgpio_hibernate
+	branch mouse_before_hibernate+10
+
+p_mouse_before_hibernate_wheel_gpio_set:
+	fetcht 1,mem_whee_a_data_gpio
+	call p_mouse_gpio_set_pupd_by_input
+	fetcht 1,mem_whee_b_data_gpio
+p_mouse_gpio_set_pupd_by_input:
+	sub temp,UI_BUTTON_GPIO_DISABLE,null
+	rtn zero
+	and temp,0x7f,queue
+	fetch 4,core_gpio_in
+	qisolate1 pdata
+	branch p_mouse_gpio_config_input_pu,true
+	branch p_mouse_gpio_config_input_pd
+
+p_mouse_setgpio_hibernate:
+	call mouse_set_sdio_high
+	call clear_wake
+	call mouse_lpm_before_common
+	arg 19,temp
+	call p_mouse_gpio_config_input_pu
+	fetch 1,mem_mouse_sensor_sdio_gpio
+	arg gpcfg_output_high,temp
+ 	branch gpio_config_function_int
+	
+//p_gpio_pd_idle:
+//	arg core_gpio_conf,contr
+//	arg 19,loopcnt	
+//	branch gpio_pd_idle_loop
+//////////////////////////////////////////////end//////////////////////////////////////////////////////
+	
+
+//////////////////////////////////////////////start//////////////////////////////////////////////////////
+p_mouse_priority_bb_event:
+	copy regc,pdata
+	beq BT_EVT_24G_ATTEMPT_FAIL,p_mouse_24g_attempt_fail
+	branch mouse_priority_bb_event+2
+
+p_mouse_24g_attempt_fail:
+	fetch 1,mem_24g_reconn_type
+	beq FAST_CONN_AND_3_0_ADDR,mouse_24g_fast_conn_attempt_fail
+//	beq PAIR_AND_3_0_ADDR,p_mouse_24g_auto_pair_attempt_fail
+//	beq RECEIVER_AND_3_0_ADDR,p_mouse_reconn_dongle_attempt_fail
+p_mouse_24g_attempt_fail_enter_hibernate:
+	jam 1,mem_mouse_24g_enter_lpm_enable
+	call mouse_device_led_off
+	call mouse_24g_stop
+	branch p_mouse_app_enter_hibernate
+
+//p_mouse_24g_auto_pair_attempt_fail:
+//	fetch MOUSE_FLAG_LEN,mem_mouse_flag 
+//	bbit0 MOUSE_ENABLE_24G_FIRST_AUTO_PAIRING,p_mouse_24g_attempt_fail_enter_hibernate
+//	fetch 1,mem_device_number
+//	beq 1,p_mouse_24g_attempt_fail_enter_hibernate		//24g first mode and only 2.4g device
+//	branch mouse_24g_first_bluetooth_reconnect
+	
+p_mouse_app_enter_hibernate:
+	setarg 0x8006
+	call twspi_write
+	nop 12000
+	call p_mouse_sensor_powerdown
+	//call p_mouse_setgpio_hibernate
+	branch app_enter_hibernate
+
+p_mouse_reconn_dongle_attempt_fail:
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	bbit0 MOUSE_ENABLE_24G_FIRST_AUTO_PAIRING,p_mouse_24g_attempt_fail_enter_hibernate
+	bbit1 MOUSE_ENABLE_EEPROM,p_mouse_24g_attempt_fail_enter_hibernate
+	bbit1 MOUSE_ENABLE_FLASH,p_mouse_24g_attempt_fail_enter_hibernate
+	branch mouse_24g_start_auto_pair+1	
+
+	
+//////////////////////////////////////////////start//////////////////////////////////////////////////////	
+p_mouse_gpio_config_input_pd:
+	branch mouse_gpio_config_input_pu
+
+p_mouse_gpio_config_input_pu:
+	branch mouse_gpio_config_input_pd
+
+p_mouse_matrix_public_gpio_reset:
+	fetcht 1,mem_matrix_public_gpio
+	branch p_mouse_gpio_config_input_pu
+
+  
+p_mouse_check_key_gpio:
+	fetch 1,mem_sensor_shutdown_flag
+	ncall p_mouse_check_key_gpio_once,blank
+	arg 0,rega
+	call mouse_check_lkey_gpio
+	call mouse_check_mkey_gpio
+	call mouse_check_rkey_gpio	
+	call p_mouse_check_bkkey_gpio
+	call p_mouse_check_fwkey_gpio
+	call mouse_check_customerkey_gpio
+	copy rega,pdata
+	rtn
+
+p_mouse_check_key_gpio_once:
+	setarg 0x030303
+	store 3,mem_mouse_lkey_press_status
+	rtn
+
+	
+p_mouse_check_bkkey_gpio:
+	fetch 1,mem_bk_button_gpio
+	rtneq GPIO_DISABLE
+	jam MOUSE_BK_KEY,mem_mouse_key_temp
+	fetch 1,mem_mouse_bkkey_press_status
+	copy pdata,regc
+	fetcht 1,mem_bk_button_gpio
+p_mouse_3io6key_bk_check:
+	call p_mouse_3io6key_check
+	store 1,mem_mouse_bkkey_press_status
+	fetcht 1,mem_bk_button_gpio
+	branch p_mouse_gpio_config_input_pu
+
+p_mouse_check_fwkey_gpio:
+	fetch 1,mem_fw_button_gpio
+	rtneq GPIO_DISABLE
+	jam MOUSE_FW_KEY,mem_mouse_key_temp
+	fetch 1,mem_mouse_fwkey_press_status
+	copy pdata,regc
+	fetcht 1,mem_fw_button_gpio
+p_mouse_3io6key_fw_check:
+	call p_mouse_3io6key_check
+	store 1,mem_mouse_fwkey_press_status
+	fetcht 1,mem_fw_button_gpio
+	branch p_mouse_gpio_config_input_pu
+//////////////////////////////////////////////end//////////////////////////////////////////////////////
+
+/////////////////////////////////////start///////////////////////////////////////////
+p_mouse_motion:
+	disable user
+	setarg 0
+	store 6,mem_mouse_x
+	call p_mouse_check_sensor_data
+	branch mouse_motion2
+
+p_mouse_check_sensor_data:
+	fetch 1,mem_spi_write_flash_sm
+	rtnne FLASH_SM_NO_BUYS
+	fetch 1,mem_config_sensor_type
+	beq P3205,p_mouse_p32xx_sensor_motion
+	beq P3065,p_mouse_p32xx_sensor_motion
+	beq KA8,p_mouse_p32xx_sensor_motion
+	beq P3204,p_mouse_p32xx_sensor_motion
+	beq P3212,p_mouse_p3212_sensor_motion
+	beq P3065_xy,p_mouse_p32xx_sensor_motion
+	beq P8009,mouse_p8009_sensor_motion	
+	branch p_mouse_p32xx_sensor_motion
+
+p_mouse_p32xx_sensor_motion:
+	call mouse_clear_sensor_data
+	disable user
+	fetch 1,mem_sensor_motion_gpio
+	beq GPIO_DISABLE,p_mouse_p32xx_sensor_motion_2
+	fetcht 1,mem_sensor_motion_gpio
+	call gpio_get_bit
+	nrtn true
+p_mouse_p32xx_sensor_motion_2:
+	setarg PAN_REG_PID_L
+	call twspi_read
+	bne P32XX_ID1,p_mouse_p3065_judge 
+p_mouse_p32xx_sensor_motion_1:
+	setarg PAN_REG_MOTION_STAUS
+	call twspi_read
+	rtnbit0 7
+	call mouse_read_sensor_common
+	fetch 1,mem_mouse_x
+	call mouse_data_extsign
+	store 2,mem_mouse_x
+	fetch 1,mem_mouse_y
+	call mouse_data_extsign
+	store 2,mem_mouse_y
+	fetch 1,mem_config_sensor_angle
+	beq MOUSE_6CLK_ANGLE,p_mouse_motion32xx_6clk_direction_selection
+	beq MOUSE_9CLK_ANGLE,p_mouse_motion32xx_9clk_direction_selection
+	beq MOUSE_12CLK_ANGLE,p_mouse_motion32xx_12clk_direction_selection
+	beq MOUSE_3CLK_ANGLE,p_mouse_motion32xx_3clk_direction_selection
+	rtn
+
+p_mouse_motion32xx_6clk_direction_selection:
+	call mouse_motion_6clk_direction_dispose
+	branch p_mouse_sensor_sdio_low
+p_mouse_motion32xx_9clk_direction_selection:
+	call mouse_motion_9clk_direction_dispose
+	branch p_mouse_sensor_sdio_low
+p_mouse_motion32xx_12clk_direction_selection:
+	call mouse_motion_12clk_direction_dispose
+	branch p_mouse_sensor_sdio_low
+p_mouse_motion32xx_3clk_direction_selection:
+	call mouse_motion_3clk_direction_dispose
+p_mouse_sensor_sdio_low:
+	fetcht 1,mem_mouse_sensor_sdio_gpio
+	call gpio_get_bit
+	rtn true
+	setarg 0x0a
+	call twspi_read
+	nop 1000
+	branch p_mouse_sensor_sdio_low
+
+p_mouse_p3212_sensor_motion:
+	call mouse_clear_sensor_data
+	fetch 1,mem_sensor_motion_gpio
+	beq GPIO_DISABLE,p_mouse_p3212_sensor_motion_1
+	fetcht 1,mem_sensor_motion_gpio
+	call gpio_get_bit
+	nrtn true
+p_mouse_p3212_sensor_motion_1:	
+	setarg PAN_REG_PID_L
+	call twspi_read
+	bne P32XX_ID1,p_mouse_twspi_reset
+	branch mouse_p3212_sensor_motion_2
+
+p_mouse_p3065_judge:
+	beq P3065_ID1,p_mouse_p32xx_sensor_motion_1
+	branch p_mouse_twspi_reset
+
+
+///////////////////////////////////end////////////////////////////////////////////////
+
+
+//////////////////////////////////////////////start//////////////////////////////////////////////////////	
+p_mouse_seting_dpi:
+	call mouse_setting_dpi_4_level
+	call p_mouse_dpi_led_blink_delay
+	fetch 1,mem_config_sensor_type
+	beq P3212,mouse_seting_3212_dpi
+	beq KA8,p_mouse_seting_ka8_dpi
+	branch mouse_seting_dpi_sensor_type
+
+p_mouse_seting_ka8_dpi:
+	fetch 1,mem_mouse_dpi
+	beq MOUSE_DPI_LEVEL1,mouse_set_cpi2	//800
+	beq MOUSE_DPI_LEVEL3,mouse_set_cpi1	//1600						
+	branch mouse_set_cpi0					//1200
+
+p_mouse_dpi_led_blink_delay:
+	fetch 1,mem_dpi_led_gpio
+	rtneq GPIO_DISABLE
+	fetch 2,mem_24g_reconn_timeout
+	nrtn blank
+	branch mouse_dpi_led_blink_delay+2
+
+p_mouse_idle:
+//	call p_mouse_low_voltage_led_no_enter_lpm
+	call ui_check_paring_button
+	call p_mouse_dpi_check
+	branch mouse_idle+4
+
+p_mouse_dpi_check:
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	bbit1 MOUSE_ENABLE_DPI_KEY_CONNECT_ADC,mouse_dpi_check_connect_adc
+	fetch 1,mem_dpi_button_gpio
+	rtneq GPIO_DISABLE
+	arg 0,rega
+	jam MOUSE_DPI_KEY,mem_mouse_key_temp
+	fetcht 1,mem_dpi_button_gpio
+	call p_mouse_dpi_key_check
+	store 1,mem_mouse_dpikey_press_status
+	fetch 1,mem_matrix_public_gpio
+	beq GPIO_DISABLE,p_mouse_3io6key_dpi_check_end
+	call  p_mouse_matrix_public_gpio_reset
+	branch mouse_dpi_check+10
+
+p_mouse_dpi_key_check:
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	bbit1 MOUSE_ENABLE_DPI_KEY_CONNECT_GND,mouse_dpi_key_connect_gnd
+	fetch 1,mem_mouse_dpikey_press_status
+	copy pdata,regc
+	fetch 1,mem_matrix_public_gpio
+	beq GPIO_DISABLE,p_mouse_3io6key_check
+	branch mouse_dpi_key_check+2
+
+p_mouse_3io6key_dpi_check_end:
+	fetcht 1,mem_dpi_button_gpio
+	call p_mouse_gpio_config_input_pu
+	branch mouse_dpi_check+10
+
+p_mouse_3io6key_check:
+	copy regc,pdata
+	store 1,mem_mouse_key_status
+	lshift pdata,pdata
+	copy pdata,regb
+	copy temp,regc
+	call p_mouse_gpio_config_input_pd
+	copy regc,temp
+	call gpio_get_bit
+	nsetflag true,0,regb
+	call p_mouse_check_press
+	branch mouse_check_key_connect_gnd+4
+	
+p_mouse_check_press:
+	fetcht 1,mem_mouse_key_status
+	and_into 0x01,temp
+	and regb,0x01,pdata
+	isub temp,null
+	nbranch mouse_current_mult_update,zero
+	rtn
+//////////////////////////////////////////////end//////////////////////////////////////////////////////
+
+
+
+////////////////////////////24G//////////////////////////////////
+
+p_g24_receive_rxon:
+	call g24_prep
+	bmark0 mark_ble_lr,p_g24_receive_nolr
+	pulse dewhiten_code_calc
+	nop 30
+	call g24_prep
+p_g24_receive_nolr:
+	disable user3
+	enable decode_fec0
+	enable is_rx
+	disable is_tx
+	enable swfine
+	fetch 2,mem_24g_rx_window
+	iforce stop_watch
+	correlate null,timeout
+	nbranch p_g24_sync_timeout,sync
+	call rf_debug_rx_sync_line
+	bmark1 mark_ble_lr,p_g24_receive_skip_fec1
+	disable decode_fec0	
+	enable decode_fec1	//lr do not use fec1
+p_g24_receive_skip_fec1:
+	enable enable_white
+	enable enable_crc
+	call g24_receive_byte
+	store 1,mem_24g_get_syncword_crc8
+	fetcht 1,mem_24g_syncword_crc8
+	isub temp,null
+	nbranch g24_end_of_packet,zero
+	disable user7
+	isolate1 mark_ble_lr,mark
+	call p_g24_lr_receive_pdu_len,true
+	branch g24_end_of_packet,user7
+	call g24_receive_byte
+	store 1,mem_24g_rxbuf	//device id
+	bmark1 mark_24g_rxmode,p_g24_receive_skip
+	fetch 1,mem_24g_rxbuf
+	fetcht 1,mem_24g_data_type
+	icompare bits_data,temp
+	nbranch g24_end_of_packet,true
+p_g24_receive_skip:
+	call g24_receive_byte
+	isolate1 mark_ble_lr,mark
+	call g24_lr_receive_payload_len,true
+	istore 1,contw
+	rshift3 pdata,pdata
+	sub pdata,0x1f,null
+	nbranch g24_end_of_packet,positive	//max payload: 32bytes
+	copy pdata,loopcnt
+	branch p_g24rx_nopayload,zero
+p_g24rx_loop:
+	call g24_receive_byte
+	istore 1,contw
+	loop p_g24rx_loop
+p_g24rx_nopayload:
+	bmark1 mark_24g_rxmode,p_g24_receive_skip_rssi
+	copy contw,rega
+	call g24_receive_byte
+	store 1,mem_rssi_hex_received	//receive rssi hex
+	copy rega,contw
+p_g24_receive_skip_rssi:
+	parse demod,bucket,24
+	rshift32 pdata,pdata
+	rshift16 pdata,pdata
+	istore 3,contw
+	disable decode_fec1
+	isolate1 mark_24g_rxmode,mark
+	call p_save_rssi_dec,true
+	branch g24_end_of_packet,crc_failed
+	call rf_debug_rx_crc_line	//L
+	enable user3
+	call le_set_txfreq
+	rtnmark1 mark_24g_rxmode
+	fetch 1,mem_rssi_hex_received
+	fetcht 1,mem_rssi_hex_received_max_value
+	isub temp,null
+	call copy_temp2pdata,positive
+	branch rssi_signal
+
+p_g24_lr_receive_pdu_len:
+	call g24_receive_byte
+	sub pdata,1,null
+	branch enable_user7,positive
+	increase -2,pdata	//minus hec and pdu length
+	bmark1 mark_24g_rxmode,p_g24_lr_receive_pdu_norssi
+	branch enable_user7,blank
+	increase -1,pdata	//minus rssi_hex length
+p_g24_lr_receive_pdu_norssi:
+	store 1,mem_temp	//payload length
+	rtn
+
+enable_user7:
+	enable user7
+	rtn
+
+
+p_g24_sync_timeout:
+	isolate1 mark_24g_rxmode,mark
+	call p_rssi_noise,true
+	branch g24_end_of_packet
+
+p_rssi_noise:
+	call p_save_rssi_dec
+	rtn blank
+	fetcht 1,mem_rssi_noise_index
+	fetchr rega,2,mem_rssi_noise_buffer_ptr
+	call rssi_store
+	storet 1,mem_rssi_noise_index
+	rtn
+
+p_save_rssi_dec:
+	call save_rssi
+	branch p_rssi_hex2dec
+
+
+p_g24_transmit:
+	fetch 1,mem_24g_tx_phy
+	call le_enable_phy_by_pdata
+	fetch 4,mem_24g_addr
+	iforce access
+	call g24_prep
+	call g24_set_freq_tx
+	set1 TXGFSK,radio_ctrl
+	enable encode_fec0
+	enable is_tx
+	disable is_rx
+	call rf_debug_tx_on_line
+	disable lr_s2en
+	bmark1 mark_ble_lr,p_g24_transmit_lr
+	branch g24_transmit+13
+
+p_g24_transmit_lr:
+	arg 10,loopcnt
+p_g24_transmit_lr_preamble_loop:
+	setarg 0x3c
+	inject mod,8
+	loop p_g24_transmit_lr_preamble_loop
+	disable encode_fec0
+	enable encode_fec3
+	rshift16 access,pdata
+	rshift16 pdata,pdata
+	rshift4 pdata,pdata
+	inject mod,32
+	bmark1 mark_ble_lr_s8_fix,g24_transmit_lr_s8
+	branch g24_transmit_lr_s2
+
+
+p_g24_bind_mode_auto:
+	fetch 1,mem_24g_work_mode
+	rtnne DONGLE_BIND
+	call g24_bind_init
+	call p_g24_bind_data_process
+	branch g24_bind_mode_auto + 5
+
+p_g24_bind_data_process:
+	call g24_rx_interrupt_clear
+	call g24_receive_packet
+	nbranch g24_rx_interrupt_clear,user3
+	call p_g24_bind_data_parse
+	nbranch g24_bind_data_error,user
+	call g24_transmit_ack
+	fetch 1,mem_24g_pair_switch
+	rtn blank
+	fetch 4,mem_24g_transmitter_addr
+	rtn blank
+	branch g24_update_addr_and_synccrc8
+
+p_g24_bind_data_parse:
+	jam BIND_MODE_CONTINUE,mem_24g_bind_mode_continue	//about 400ms
+	call disable_user
+	arg mem_24g_rxbuf,contr
+	arg mem_24g_rxdata_temp,contw
+	call memcpy8
+	fetch 1,mem_24g_rxdata_temp+2
+	beq DATATYPE_BIND,g24_bind_first_step	//bind step 1
+	beq DATATYPE_CONFIG,g24_bind_second_step
+	beq DATATYPE_OK,p_g24_bind_third_step
+	beq DATATYPE_ATTEMP,g24_data_attemp
+	branch g24_rx_interrupt_clear
+
+p_g24_bind_third_step:
+	fetch 1,mem_24g_pair_switch
+	branch p_g24_bind_third_step_skip,blank
+	fetch 4,mem_24g_rxdata_temp+4
+	fetcht 4,mem_24g_transmitter_addr
+	isub temp,null
+	nrtn zero
+p_g24_bind_third_step_skip:
+	fetch 1,mem_24g_rxdata_temp+3
+	beq DATATYPE_DEVICE1,g24_bind_third_step_device1
+	beq DATATYPE_DEVICE2,p_g24_bind_third_step_device2
+	rtn
+
+p_g24_bind_third_step_device2:
+	fetch 1,mem_24g_device2_bind_step
+	bne 0,p_g24_bind_dvc2_step_success
+	rtn
+p_g24_bind_dvc2_step_success:	
+	call g24_bind_dvc2_payload_cfg
+	fetch 1,mem_24g_bind_device_status
+	or_into 0x02,pdata
+	store 1,mem_24g_bind_device_status
+	branch g24_bind_exit
+
+//////////////////////////////////////////////start//////////////////////////////////////////////////////	
+p_mouse_wakeup_24g:
+	fetch 1,mem_sensor_shutdown_flag
+	ncall p_mouse_init_sensor_wakeup,blank
+	jam 0,mem_sensor_shutdown_flag
+	rtn
+
+p_mouse_init_sunt:
+	call p_mouse_sensor_spi_init
+	rtn wake
+p_mouse_init_sensor_wakeup:
+	call p_mouse_sensor_poweron
+p_mouse_init_sensor:
+	call mouse_read_sensor_id
+	beq P32XX_ID1,p_mouse_init_p32xx_id2_judge
+	beq P3065_ID1,p_mouse_init_p3065
+	call p_mouse_twspi_reset
+	nop 6900
+	branch p_mouse_init_sensor
+
+p_mouse_twspi_reset:
+	fetch 1,mem_mouse_sensor_sclk_gpio
+	call twspi_reset 
+	branch p_mouse_spid_init_pin
+
+p_mouse_init_p3065:
+	call p_mouse_sensor_poweron
+	branch mouse_init_p3065+1
+
+p_mouse_init_p32xx_id2_judge:
+	fetch 1,mem_sensor_id2
+	beq P_MX8650,p_mouse_mx8650_init_param
+	beq P8009_ID2,p_mouse_8009_init_param
+	beq P3205_TJ3T_ID2,mouse_3205_3t_init_param
+	beq P3204_TJ3L_ID2,mouse_3204_3l_init_param
+	beq P3212_ID2,mouse_3212_init_param
+	beq PKA8_ID2,p_mouse_ka8_init_param
+	branch p_mouse_init_sensor
+
+p_mouse_ka8_init_param:
+	jam KA8,mem_config_sensor_type
+	rtn
+
+p_mouse_mx8650_init_param:	
+	jam MX8650,mem_config_sensor_type
+	setarg 0x8006
+	call twspi_write
+	call delay_10ms
+	arg mem_sensor_8650_init_new,regc
+	call mouse_sensor_wr_seq
+	branch mouse_dpi_config
+
+p_mouse_8009_init_param:
+	setarg 0x16
+	call twspi_read
+	sub pdata,0xbd,null 
+	nbranch p_mouse_init_sunt,zero
+	setarg 0x19
+	call twspi_read
+	sub pdata,0x55,null 
+	nbranch p_mouse_init_sunt,zero
+	setarg 0x1b
+	call twspi_read
+	sub pdata,0x1d,null 
+	nbranch p_mouse_init_sunt,zero
+	jam P8009,mem_config_sensor_type
+	arg mem_sensor_8009_init,regc
+	branch mouse_sensor_wr_seq
+
+	
+p_mouse_sensor_poweron:
+	call p_mouse_sensor_spi_init
+	setarg 0x8006	// reset to factory settings
+	call twspi_write
+	nop 12000
+	branch mouse_sensor_poweron+1
+
+p_mouse_sensor_spi_init:
+	call p_mouse_spid_init_pin
+	branch mouse_sensor_spi_init+1
+
+p_mouse_spid_init_pin:
+	fetch 1,mem_mouse_sensor_sclk_gpio
+ 	arg gpcfg_spid_sck,temp
+ 	call gpio_config_function_int
+ 	fetch 1,mem_mouse_sensor_sdio_gpio
+ 	arg gpcfg_spid_sdio,temp
+ 	branch gpio_config_function_int
+
+p_mouse_24g_hibernate_set:
+	call g24_txbuf_clear
+	call g24_transmit_next_packet
+	setarg 0xffff
+	store 2,mem_24g_enter_hibernate
+	store 2,mem_24g_enter_hibernate+2
+	setarg 0
+	store 7,mem_mouse_key
+	jam 1,mem_sensor_shutdown_flag
+	call p_mouse_sensor_powerdown
+	call p_mouse_setgpio_hibernate
+	branch g24_long_sleep
+
+p_mouse_sensor_powerdown:
+	call p_mouse_init_sunt
+	call p_mouse_sensor_spi_init
+	branch mouse_sensor_powerdown_next
+	
+//////////////////////////////////////////////end//////////////////////////////////////////////////////	
+
+
+//////////////////////////////////////////////start//////////////////////////////////////////////////////
+p_g24_pair_param_init:
+	jam 0x4e,mem_24g_pair_ch
+	setarg 0x101520
+	store 3,mem_24g_pair_addr
+	setarg 0x05
+	istore 1,contw
+	rtn
+
+//mem_24g_ch_map1:00 13 2c 42
+//mem_24g_ch_map2:06 15 36 48
+//mem_24g_ch_map3:0f 1a 3a 4c
+//mem_24g_ch_map4:11 23 31 4d
+p_g24_chmap_param_init:
+	setsect 0,0x1300
+	setsect 1,0x1908b
+	setsect 2,0x36150
+	setsect 3,0x3d20
+	store 9,mem_24g_ch_map1
+	setsect 0,0x3a1a
+	setsect 1,0xc453
+	setsect 2,0xd312
+	setsect 3,0x1
+	istore 7,contw
+
+	fetch 1,mem_device_option
+	rtnne dvc_op_mouse
+	fetch 1,mem_24g_ch_map_update
+	rtn blank
+	arg mem_24g_ch_update_map1,contr
+	arg mem_24g_ch_map1,contw
+	branch memcpy16
+//////////////////////////////////////////////end//////////////////////////////////////////////////////
+
+	
+//////////////////////////////////////////////start//////////////////////////////////////////////////////
+p_g24_transmit_hop_process:
+	fetcht 1,mem_24g_retry
+	fetch 1,mem_24g_fast_hop_count			// 125Hz=11  250Hz=5
+	isub temp,null
+	nbranch p_g24_tx_fast_hop,positive		// >= (6+6)or(3+3) hop fast    fail packet count >= 2
+	increase 1,temp
+	storet 1,mem_24g_retry
+	fetch 1,mem_24g_fast_hop_count
+	beq 5,p_g24_transmit_hop_process_250Hz
+	fetch 1,mem_24g_retry
+	beq 6,g24_hop_ch_disable
+	beq 12,g24_hop_ch_disable
+	rtn	
+
+p_g24_transmit_hop_process_250Hz:
+	fetch 1,mem_24g_retry
+	beq 3,g24_hop_ch_disable
+	beq 6,g24_hop_ch_disable
+	rtn	
+//////////////////////////////////////////////end//////////////////////////////////////////////////////
+
+
+//////////////////////////////////////////////start//////////////////////////////////////////////////////
+p_g24_transmit_dispatch:
+	call g24_txdata_prep
+	nbranch p_g24_nodata_transmit,user
+p_g24_transmit_start:
+	call p_g24_transmit_process
+	call power_ctrl_start
+	fetch 1,mem_sensor_shutdown_flag
+	nbranch p_g24_short_sleep,blank
+	fetch 8,mem_24g_long_sleep_set
+	store 8,mem_24g_enter_hibernate
+	fetch 2,mem_24g_long_sleep_param_update_timer_init
+	store 2,mem_24g_long_sleep_param_update_timer
+p_g24_short_sleep:
+	call g24_lpm_wait
+	nrtn user
+	call clear_wake
+	fetch 3,mem_24g_short_sleep_set
+	branch g24_long_sleep2
+
+	
+p_g24_nodata_transmit:
+	fetch 1,mem_24g_abort_pac
+	call p_g24_send_abort_packet,blank
+//	fetch 1,mem_24g_transmit_by_interrupt
+//	rtneq G24_TX_TIMER_INT_ENABLE
+	call g24_transmit_by_interrupt_exit
+	call g24_search_receiver
+	branch g24_long_sleep
+
+
+
+p_g24_send_abort_packet:
+	jam TYPE_MS,mem_24g_data_type
+	jam 1,mem_24g_abort_pac
+	call g24_transmit_rf_ctrl_clear
+	store 1,mem_24g_txbuf
+	setarg 0
+	store 7,mem_24g_txbuf+1
+	fetch 4,mem_24g_device_addr
+	store 4,mem_24g_txbuf+8
+	jam 12,mem_24g_datalen
+	fetch 1,mem_24g_data_type
+	set1 bit_abort,pdata
+	store 1,mem_24g_data_type
+	call g24_transmit_prep
+	branch p_g24_transmit_start
+
+p_g24_transmit_process:
+	jam 0,mem_24g_retry
+p_g24_transmit_loop:
+	fetchr timeup,2,mem_param_rx_setup
+	until clkn_rt,meet
+	call g24_transmit_receive_ack
+	fetch 1,mem_24g_no_ack	//tx noack
+	beq no_ack_24g,g24_transmit_no_ack
+	nbranch p_g24_retransmit,sync
+	nbranch p_g24_retransmit,user3
+	call g24_ackpayload_parse
+	call p_mouse_wakeup_24g
+	branch g24_transmit_no_ack
+
+
+p_g24_retransmit:
+	fetch 2,mem_24g_txfail_cnt
+	increase 1,pdata
+	store 2,mem_24g_txfail_cnt	
+	fetch 1,mem_24g_txfail_cnt+1
+	bbit1 4,p_mouse_24g_hibernate_set
+	call g24_transmit_hop_process
+	branch p_g24_transmit_loop
+//////////////////////////////////////////////end//////////////////////////////////////////////////////
+
+
+//////////////////////////////////////////////start//////////////////////////////////////////////////////
+p_mouse_24g_long_sleep_param_update_timer:
+	arg mem_24g_long_sleep_param_update_timer,regc
+	arg p_mouse_24g_long_sleep_normal_param,regb
+	branch timer_single_step
+p_mouse_24g_long_sleep_normal_param:
+	fetch 4,mem_24g_long_sleep_set1
+	store 4,mem_24g_enter_hibernate
+	jam 1,mem_mouse_long_mult_flag
+	rtn
+//////////////////////////////////////////////end//////////////////////////////////////////////////////	
+
+/*
+////////////////////////////////////////////bt start////////////////////////////////////////////////
+p_mouse_check_discovery_timeout_timer:
+	arg mem_mouse_discovery_timer,regc
+	arg p_mouse_check_discovery_timeout,regb
+	branch timer_single_step_2B
+
+p_mouse_check_discovery_timeout:
+	call mouse_stop_discovery
+	branch p_mouse_app_enter_hibernate
+
+p_mouse_check_direct_timeout_timer:
+	arg mem_mouse_direct_timer,regc
+	arg p_mouse_check_direct_timeout,regb
+	branch mouse_check_direct_timeout_timer+2
+p_mouse_check_direct_timeout:
+	fetch 1,mem_mouse_bluetooth_fast_conn_flag
+	beq 0xff,mouse_buletooth_fast_conn_end
+	fetch 1,mem_reconn_times
+	nbranch mouse_polling_device,blank
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	bbit1 MOUSE_ENABLE_BT_RECONNECT_TIMEOUT_ENTER_DISCOVERY,mouse_start_discovery
+	bbit1 MOUSE_ENABLE_24G_FIRST_AUTO_PAIRING,mouse_24g_first_bb_event_reconn_timeout
+	branch p_mouse_app_enter_hibernate
+
+p_mouse_check_reconnect_delay_long_sleep:
+	arg mem_mouse_bluetooth_reconnect_timeout,regc
+	arg p_mouse_app_enter_hibernate,regb
+	branch timer_single_step
+
+////////////////////////////////////////////////////bt end/////////////////////////////////////////////	
+*/
+
+
+p_power_ctrl_start:
+	fetch 2,mem_ui_state_map
+	rtnbit1 UI_STATE_BLE_ADV
+	rtnbit1 UI_STATE_BT_RECONNECT
+	rtnbit1 UI_STATE_BT_DISCOVERY
+	fetchr rega,2,mem_rssi_signal_buf_ptr
+	call rssi_average
+	storet 1,mem_rssi_avg_received
+	fetch 1,mem_rssi_dis_max_24g
+	bmark1 mark_24g,power_ctrl_start_next
+	fetch 1,mem_rssi_dis_max_ble
+p_power_ctrl_start_next:
+	isub temp,null
+	nbranch p_power_ctrl_txpower_incrs_force,positive
+	fetch 1,mem_power_ctrl_pac_succ_cnt
+	sub pdata,2,null
+	nbranch p_power_ctrl_txpower_decrs_check,positive
+	fetch 1,mem_power_ctrl_pac_succ_cnt
+	beq 0,p_power_ctrl_txpower_incrs
+	rtn
+
+p_power_ctrl_txpower_decrs_check:
+	fetch 1,mem_power_ctrl_pac_succ_cnt
+	fetcht 1,mem_power_ctrl_pac_succ_cnt_init
+	isub temp,null
+	nrtn zero
+//	rtnne POWER_CTRL_DECRS_THRESHOLD
+	jam 0,mem_power_ctrl_pac_succ_cnt
+p_power_ctrl_txpower_decrs:
+	fetcht 1,mem_rssi_avg_received
+	fetch 1,mem_rssi_dis_min_24g
+	bmark1 mark_24g,p_power_ctrl_txpower_decrs_next
+	fetch 1,mem_rssi_dis_min_ble
+p_power_ctrl_txpower_decrs_next:	
+	isub temp,null
+	nrtn positive
+	fetch 1,mem_power_ctrl_level
+	beq 0,power_ctrl_decrs_level0
+	increase -1,pdata
+	store 1,mem_power_ctrl_level
+	beq 0,power_ctrl_decrs_level0
+p_power_ctrl_decrs_level1:
+p_power_ctrl_incrs_level1:	//0dBm
+	jam TX_POWER_0DB,mem_tx_power
+	rtn
+
+p_power_ctrl_txpower_incrs_force:
+	jam 0,mem_power_ctrl_pac_succ_cnt
+p_power_ctrl_txpower_incrs:
+	fetch 1,mem_power_ctrl_level
+	beq 2,p_power_ctrl_incrs_level2
+	increase 1,pdata
+	store 1,mem_power_ctrl_level
+	beq 1,p_power_ctrl_incrs_level1
+p_power_ctrl_incrs_level2:	//+6dBm
+	jam TX_POWER_6DB,mem_tx_power
+	rtn
+
+p_g24_tx_fast_hop:
+	call p_power_ctrl_txpower_incrs
+	call power_ctrl_pac_succ_decrs
+	branch g24_ch
+
+	
+////////////////////////////24G//////////////////////////////////
+
+
+	
+//////////////////////////////////////////////start//////////////////////////////////////////////////////
+//p_mouse_low_voltage_led_no_enter_lpm:
+//	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+//	rtnbit0 MOUSE_ENABLE_LOW_VOLTAGE_LED
+//	rtnbit0 MOUSE_LOW_VOLTAGE_FLAG
+//	bbit1 MOUSE_ENABLE_LOW_VOLTAGE_LED_BLINK_N_SECOND,p_mouse_low_voltage_led_no_enter_lpm_blink
+//	fetch 1,mem_adc_low_volatage_led_timer_count
+//	sub pdata,10,null
+//	branch p_mouse_lpm_mode_clear,positive
+//p_mouse_low_voltage_led_no_enter_lpm_next:
+//	fetch 1,mem_device_flag
+//	beq MODE_24G_DEVICE,p_g24_transmit_by_interrupt_exit_check
+//	jam 1,mem_lpm_mode
+//	rtn
+
+//p_g24_transmit_by_interrupt_exit_check:
+//	fetch MOUSE_FLAG_LEN,mem_mouse_flag	
+//	rtnbit1 MOUSE_ENABLE_24G_250Hz	
+//	branch g24_transmit_by_interrupt_exit
+
+//p_mouse_lpm_mode_clear:
+//	fetch 1,mem_device_flag
+//	beq MODE_24G_DEVICE,g24_transmit_by_interrupt_enable
+//	jam 0,mem_lpm_mode
+//	rtn
+
+//p_mouse_low_voltage_led_no_enter_lpm_blink:
+//	fetch 1,mem_adc_low_volatage_led_blink_enable
+//	nbranch p_mouse_lpm_mode_clear,blank
+//	branch p_mouse_low_voltage_led_no_enter_lpm_next
+//////////////////////////////////////////////end//////////////////////////////////////////////////////
+
+
+
+
+
Index: program/peripherals.prog
===================================================================
--- /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/program/peripherals.prog	(nonexistent)
+++ /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/program/peripherals.prog	(working copy)
@@ -0,0 +1,3071 @@
+
+/* ===================== two wire SPI gpio ======================= */
+
+//pdata:gpio number
+twspi_reset:
+	bpatchx patch24_2,mem_patch24
+	and_into 0xff,pdata
+	arg core_gpio_conf,contw
+	iadd contw,contw
+	copy contw,rega
+	arg gpcfg_output_low,temp
+	istoret 1,contw
+	call twspi_disable
+	nop 30
+	copy rega,contw
+	arg gpcfg_output_high,temp
+	istoret 1,contw
+	branch twspi_enable
+	
+twspi2_reset:
+	and_into 0xff,pdata
+	arg core_gpio_conf,contw
+	iadd contw,contw
+	copy contw,rega
+	arg gpcfg_output_low,temp
+	istoret 1,contw
+	call twspi2_disable
+	nop 30
+	copy rega,contw
+	arg gpcfg_output_high,temp
+	istoret 1,contw
+	branch twspi2_enable
+	
+twspi_disable:
+	fetch 1,core_aes_en
+	and_into 0xfb,pdata
+	store 1,core_aes_en
+	rtn
+twspi2_disable:
+	fetch 1,core_aes_en
+	and_into 0xf7,pdata
+	store 1,core_aes_en
+	rtn
+
+twspi_enable:
+	fetch 1,core_aes_en
+	or_into 0x04,pdata
+	store 1,core_aes_en
+	rtn
+twspi2_enable:
+	fetch 1,core_aes_en
+	or_into 0x08,pdata
+	store 1,core_aes_en
+	rtn
+	
+// input read reg number: pdata 
+//output reg data: pdata
+sensor_read:
+	copy pdata,regb
+	call spi_ncs_enable
+	nop 100
+	copy regb,pdata
+	call twspi_read
+	copy pdata,regb
+	call spi_ncs_disable
+	nop 100
+	copy regb,pdata
+	rtn
+// input write reg number: pdata 
+sensor_write:
+	copy pdata,regb
+	call spi_ncs_enable
+	nop 100
+	copy regb,pdata
+	call twspi_write
+	call spi_ncs_disable
+	nop 100
+	rtn
+//spi gpio init .
+//0xff :disable spi ncs gpio init
+spi_ncs_gpio_init:
+//nsc gpio ouput low
+spi_ncs_enable:
+	fetcht 1,mem_spi_ncs_gpio
+	branch gpio_out_active
+
+//ncs gpio output high
+spi_ncs_disable:
+	fetcht 1,mem_spi_ncs_gpio
+	branch gpio_out_inactive
+
+
+twspi_write:
+	branch spid_write_reg
+twspi2_write:
+	branch spid2_write_reg
+	
+twspi_read:
+	branch spid_read_reg
+
+twspi2_read:
+	branch spid2_read_reg
+
+/* ===================== code loading ======================= */
+aes_disable:
+	fetch 1,core_aes_en
+	and_into 0xfd,pdata   	// disable aes
+	store 1,core_aes_en
+	rtn
+
+read_function_aes:
+	nbranch read_function,user
+	fetch 1,core_aes_en
+	or_into 0x2,pdata   	// enable aes 
+	store 1,core_aes_en
+read_function:
+	copy temp,null
+	branch read_fuction_zero,zero
+	copy regc,pc
+read_fuction_zero:
+	isolate0 0,null
+	branch set_ucode_status
+	
+/* return temp = block length */
+get_block_header:
+	force 4,temp
+get_block_header0:
+	arg mem_ucode_buf,rega
+	call aes_disable	// disable aes for header
+	call read_function
+	arg 0x55aa,rega
+	fetch 2,mem_ucode_buf
+	ifetcht 2,contr
+	isub rega,null
+	rtn	
+
+
+read_first_block:
+	arg 2,temp
+	arg mem_ucode_ptr,rega
+	call read_function
+	fetch 2,mem_ucode_ptr
+	store 2,mem_addr_mi
+	call get_iv,user
+	rtn
+	
+get_iv:
+	arg 16,temp
+	arg mem_ucode_keybuf,rega
+	call aes_disable	// disable aes for iv
+	call read_function
+	arg mem_ucode_keybuf,contr
+	arg 16,loopcnt
+	call aes_load_data
+	call aes_init
+	call aes_clear_data
+	branch do_aes_cbc					/* generate first IV */
+
+load_storage:
+	disable match
+	call get_block_header
+	nrtn zero
+	enable match
+	jam 0x80, core_ucode_ctrl
+	jam 0,core_ucode_hi
+	jam 0,core_ucode_low
+	arg core_ucode_data,rega
+	call read_function_aes
+	jam 0x0, core_ucode_ctrl
+load_storage_loop:
+	arg 6,temp
+	call get_block_header0
+	nrtn zero
+	ifetch 2,contr
+	iforce rega
+	call read_function
+	branch load_storage_loop
+
+load_storage_efuse:
+//	disable match
+	fetch 1,mem_tmp_buffer+EFUSE_OFFSET_OFFSET
+	arg mem_tmp_buffer,contr
+	iadd contr,contr	//code addr
+//	enable match
+	jam 0x80,core_ucode_ctrl
+	jam 0,core_ucode_hi
+	jam 0,core_ucode_low
+	arg core_ucode_data,rega
+	ifetchr loopcnt,1,contr
+	sub loopcnt,0,null
+	ncall load_efuse_read_code_loop,zero
+	jam 0x0,core_ucode_ctrl
+load_storage_efuse_loop:
+	ifetch 1,contr
+	rtn blank
+	copy pdata,loopcnt
+	ifetchr regb,2,contr
+	copy regb,contw
+	call memcpy_loop
+	branch load_storage_efuse_loop
+		
+load_efuse_read_code_loop:
+	ifetch 1,contr
+	istore 1,rega
+	loop load_efuse_read_code_loop
+	rtn
+
+	/* only load memory data from eeprom */
+reload_eeprom:
+	call clean_mem
+	setarg 0x1000
+	store 2,mem_addr_mi
+	arg iicd_read_eep,regc
+	arg 2,loopcnt
+reload_eeprom_loop:
+	call get_block_header
+	nrtn zero
+	fetch 2,mem_addr_mi
+	byteswap pdata,pdata
+	iadd temp,pdata
+	byteswap pdata,pdata
+	store 2,mem_addr_mi
+	loop reload_eeprom_loop
+	branch load_storage_loop
+
+
+loadcode:
+	call clean_mem
+	jam 0x25,core_clkoff			// disable debug uart
+	
+	setarg 0
+	arg mem_tmp_buffer,rega
+	arg 64,temp
+	call efuse_read_data
+	call loadcode_efuse_check
+	disable user
+	
+	fetch 1,mem_tmp_buffer+EFUSE_OFFSET_UCODE
+	bbit0 UCODE_FLAG_ENC, loadcode_efuse
+
+	jam lock_otp,core_misc_ctrl	// disable further read/write of key
+	set1 mark_otp_encrypt,mark	
+	force regidx_key,regext_index
+	call aes_clear
+	force regidx_key,regext_index
+	fetchr regext,4,mem_tmp_buffer+EFUSE_OFFSET_KEY_ADDR
+	
+	enable user					// set user for aes
+loadcode_efuse:
+	fetch 4,mem_tmp_buffer
+	branch loadcode_iic,blank
+	call app_lpm_peripheral_lock_check
+	call load_storage_efuse
+loadcode_iic:
+	jam 0,mem_loadcode_times
+loadcode_iic_2:	
+	fetch 1,mem_tmp_buffer+EFUSE_OFFSET_UCODE
+	bbit1 UCODE_FLAG_SKIP_EEP,loadcode_spi
+	call loadcode_check_times
+	call iicd_load_gpio_init
+	call clear_eeprom_size_2k
+	call loadcode_iic_by_eeprom
+	nbranch loadcode_iic_eeprom_2k,match
+	fetch 1,mem_ucode_status
+	bbit0 0,loadcode_iic_2			// crc error, try again
+	branch loadcode_hci
+loadcode_iic_eeprom_2k:
+	call set_eeprom_size_2k
+	fetch 1,mem_tmp_buffer+EFUSE_OFFSET_UCODE
+	bbit1 UCODE_FLAG_SKIP_EEP,loadcode_spi
+	call loadcode_iic_by_eeprom
+	nbranch loadcode_spi,match
+	fetch 1,mem_ucode_status
+	bbit0 0,loadcode_iic_2			// crc error, try again
+	branch loadcode_hci
+
+iicd_load_gpio_init:
+	fetch 1,mem_eeprom_sda_gpio
+	fetcht 1,mem_eeprom_scl_gpio
+	isub temp,null
+	nbranch iicd_read_init_pin,zero
+iicd_load_default_gpio:
+	jam 15,mem_eeprom_wp_gpio
+	jam 16,mem_eeprom_scl_gpio
+	jam 17,mem_eeprom_sda_gpio
+	branch iicd_read_init_pin
+	
+loadcode_spi:
+	jam 0,mem_loadcode_times
+loadcode_spi_loop:
+	call loadcode_check_times
+	fetch 1,mem_tmp_buffer+EFUSE_OFFSET_UCODE
+	bbit1 UCODE_FLAG_SKIP_FLASH, loadcode_hci
+	call spid_init_flash
+	nop 200						// some flash will fail if no delay here
+	call spid_flash_release_form_powerdown
+	nop 100
+	arg spid_load_flash,regc
+	call read_first_block
+	call load_storage
+	nbranch loadcode_hci,match
+	fetch 1,mem_ucode_status
+	bbit0 0,loadcode_spi_loop			// crc error, try again
+
+loadcode_hci:
+	fetch 1,mem_tmp_buffer+EFUSE_OFFSET_UCODE
+	bbit0 UCODE_FLAG_HCI,clear_key_buf
+	call clear_key_buf
+	branch hci_init
+	
+clear_key_buf:
+	setarg 0
+	store 4,mem_tmp_buffer+EFUSE_OFFSET_KEY_ADDR
+	force regidx_key,regext_index
+	call aes_clear
+	jam 0x21,core_clkoff		// enable debug uart
+	rtn
+
+//input pdata
+//output pdata
+loadcode_efuse_check_xor:
+	rshift4 pdata,temp
+	and pdata,0x0f,pdata
+	ixor temp,pdata
+	rtn
+
+loadcode_efuse_check:
+	fetch 4,mem_tmp_buffer
+	rtn blank
+ 	fetch 1,mem_tmp_buffer+EFUSE_OFFSET_UCODE
+	call loadcode_efuse_check_xor
+	bne 0x0f, loadcode_error
+	fetch 1,mem_tmp_buffer+EFUSE_OFFSET_DEVICE
+	call loadcode_efuse_check_xor
+	bne 0x0f, loadcode_error
+
+loadcode_efuse_check_sum:	
+	fetch 1,mem_tmp_buffer
+	ifetcht 1,contr
+	iadd temp,pdata
+	ifetcht 1,contr
+	iadd temp,pdata
+	ifetcht 1,contr
+	iadd temp,rega
+	arg mem_tmp_buffer,pdata
+	iadd temp,contr
+	copy rega,pdata
+	ifetchr loopcnt,1,contr
+	iadd loopcnt,pdata
+	call cal_sum
+	call loadcode_efuse_check_sum_loop
+	ifetcht 1,contr
+	and pdata,0xff,pdata
+	isub temp,null
+	nbranch loadcode_error,zero
+	rtn	
+	
+loadcode_efuse_check_sum_loop:	
+	ifetchr loopcnt,1,contr
+	sub loopcnt,0,null
+	rtn zero
+	iadd loopcnt,pdata
+	increase 2,loopcnt
+	call cal_sum
+	branch loadcode_efuse_check_sum_loop
+
+loadcode_iic_by_eeprom:
+	setarg 0x0
+	store 2,mem_addr_mi
+	arg iicd_read_eep,regc
+	call iic_init_600khz
+	call read_first_block
+	branch load_storage
+
+
+loadcode_check_times:
+	fetch 1,mem_loadcode_times
+	increase 1,pdata
+	sub pdata,3,null
+	nbranch loadcode_error,positive
+	store 1,mem_loadcode_times
+	rtn
+
+loadcode_error:
+//	call clear_key_buf
+	branch app_lpm_mpu_lock_br_ble
+
+
+/* true flag is set into status */
+set_ucode_status:
+	fetch 1,mem_ucode_status
+	lshift pdata,pdata
+	setflag true,0,pdata
+	isolate0 15,rega
+	rtn true
+	store 1,mem_ucode_status
+	rtn
+
+	/* queue is bit position of hw done status */
+decrypt_code:
+	fetch 1,core_aes_en
+	rtnbit0 1
+	branch decrypt_code_skip	/* skip to key generation at first for speed */
+decrypt_code_loop:
+	fetch 1,core_dma_status
+	qisolate1 pdata
+	rtn true
+decrypt_code_skip:
+	fetch 1,core_misc_status
+	bbit0 1,decrypt_code_loop
+	call do_aes_cbc
+	branch decrypt_code_loop
+
+	/* loopcnt is ucode instruction count, pdata is buffer ptr */
+save_ucode:
+	copy loopcnt,temp
+	storet 2,mem_patch_len
+	jam 0x80, core_ucode_ctrl
+	jam 0,core_ucode_hi
+	jam 0,core_ucode_low
+	store 2,mem_patch_ptr
+	iforce contw
+	lshift2 loopcnt,loopcnt
+save_ucode_loop:
+	fetch 1,core_ucode_data
+	istore 1,contw
+	loop save_ucode_loop
+	jam 0x0, core_ucode_ctrl
+	rtn
+
+
+load_ucode:
+	fetch 2,mem_patch_ptr
+	rtn blank
+	jam 0x80, core_ucode_ctrl
+	jam 0,core_ucode_hi
+	jam 0,core_ucode_low
+	fetcht 2,mem_patch_len
+	lshift2 temp,loopcnt
+	iforce contr
+load_ucode_loop:
+	ifetch 1,contr
+	store 1,core_ucode_data
+	loop load_ucode_loop
+	jam 0x0, core_ucode_ctrl
+	rtn
+
+/* ===================== LOCK ======================= */
+
+app_lpm_peripheral_lock_check:
+	fetch 1,mem_tmp_buffer+EFUSE_OFFSET_DEVICE
+	and pdata,0x0f,pdata
+	beq dvc_op_module,app_lpm_peripheral_lock_module
+	beq dvc_op_hci,app_lpm_peripheral_lock_hci
+	beq dvc_op_dongle,app_lpm_peripheral_lock_dongle
+	beq dvc_op_test,app_lpm_peripheral_lock_test
+	beq dvc_op_mouse,app_lpm_peripheral_lock_mouse
+	beq dvc_op_shutter,app_lpm_peripheral_lock_shutter
+	beq dvc_op_ali_mesh,app_lpm_peripheral_lock_mesh
+	beq dvc_op_hci_boot,app_lpm_peripheral_lock_hciboot
+	beq dvc_op_remote_car,app_lpm_peripheral_lock_remote_car
+	beq dvc_op_car,app_lpm_peripheral_lock_car
+	beq dvc_op_antilost,app_lpm_peripheral_lock_antilost
+	beq dvc_op_esl,app_lpm_peripheral_lock_esl
+	rtn
+	
+app_lpm_peripheral_lock_module:
+app_lpm_peripheral_lock_hci:
+app_lpm_peripheral_lock_hciboot:
+	call app_lpm_mpu_lock_mesh
+	branch lpm_write_lock
+	
+app_lpm_peripheral_lock_dongle:
+	arg eink_log_push_2Bdec,pdata //esl
+	arg ui_soft_switch_power_off,temp  //shutter
+	call app_mpu_s0_lock
+	branch lpm_write_lock
+
+app_lpm_peripheral_lock_test:
+	branch lpm_write_lock
+
+app_lpm_peripheral_lock_mouse:
+	arg antilost_init,pdata //antilost
+	arg module_set_state,temp  //module
+	call app_mpu_s0_lock
+	branch lpm_write_lock
+	
+app_lpm_peripheral_lock_shutter:
+	arg antilost_init,pdata  //antilost
+	arg remote_car_moto_data_enable_user,temp //car remote
+	call app_mpu_s0_lock
+	branch lpm_write_lock
+	
+app_lpm_peripheral_lock_mesh:
+	call app_lpm_mpu_lock_app
+	branch lpm_write_lock
+	
+app_lpm_peripheral_lock_remote_car:
+	arg antilost_init,pdata  //antilost
+	arg mouse_low_voltage_led_no_enter_lpm_blink,temp //mouse
+	call app_mpu_s0_lock
+	branch lpm_write_lock
+
+app_lpm_peripheral_lock_car:
+	arg dongle_init,pdata  //dongle
+	arg ui_soft_switch_power_off,temp //shutter
+	call app_mpu_s0_lock
+	branch lpm_write_lock
+	
+app_lpm_peripheral_lock_antilost:
+	arg car_init,pdata  //dongle
+	arg ui_soft_switch_power_off,temp //shutter
+	call app_mpu_s0_lock
+	branch lpm_write_lock
+
+app_lpm_mpu_lock_mesh:	
+	arg ali_mesh_access_layer_check_access_message_opcode,pdata
+	arg ali_mesh_upper_transport_layer_clear_tx_buffer,temp
+	branch app_mpu_s0_lock
+
+app_lpm_peripheral_lock_esl:
+	arg module_init,pdata //module
+	arg ui_soft_switch_power_off,temp  //shutter
+	call app_mpu_s0_lock
+	branch lpm_write_lock
+	
+app_lpm_mpu_lock_module:	
+	arg module_init,pdata
+	arg module_set_state,temp
+app_mpu_s0_lock:
+	store 2,core_mpu_s0_saddr
+	storet 2,core_mpu_s0_eaddr
+	rtn
+	
+app_lpm_mpu_lock_app:	
+	arg antilost_init,pdata  //antilost
+	arg ui_soft_switch_power_off,temp //shutter
+	branch app_mpu_s0_lock
+
+app_lpm_mpu_lock_br:	
+	arg parse_lmp,pdata
+	arg remote_auth,temp
+	branch app_mpu_s1_lock
+
+app_lpm_mpu_lock_ble:	
+	arg le_parse_att,pdata
+	arg le_send_ll_one_lenth,temp
+app_mpu_s1_lock:
+	store 2,core_mpu_s1_saddr
+	storet 2,core_mpu_s1_eaddr
+	rtn
+	
+app_lpm_mpu_lock_24g:	
+	arg g24_prep,pdata
+	arg power_ctrl_pac_succ_cnt_reinit,temp
+	branch app_mpu_s1_lock
+	
+app_lpm_mpu_lock_br_ble:
+	call app_lpm_mpu_lock_br
+	arg le_parse_att,pdata
+	arg le_send_ll_one_lenth,temp
+	branch app_mpu_s0_lock
+
+app_lpm_mpu_mode_lock:
+	fetch 1,mem_tmp_buffer+EFUSE_OFFSET_PERIPHERALS_LOCK
+	and pdata,0xc0,pdata
+	beq 0xc0,app_lpm_mpu_lock_br_ble
+	bbit1 EFUSE_LE_LOCK_BIT,app_lpm_mpu_lock_ble
+	bbit1 EFUSE_BR_LOCK_BIT,app_lpm_mpu_lock_br
+	rtn
+
+
+lpm_write_lock:
+	call app_lpm_mpu_mode_lock
+	fetch 1,mem_tmp_buffer+EFUSE_OFFSET_PERIPHERALS_LOCK
+	and pdata,0x1f,rega
+	fetch 1,mem_tmp_buffer+EFUSE_OFFSET_UCODE
+	and pdata,0x0f,pdata
+	fetcht 1,mem_tmp_buffer+EFUSE_OFFSET_DEVICE
+	and temp,0x0f,temp
+	lshift4 temp,temp
+	ior temp,pdata
+	lshift8 rega,rega
+	ior rega,pdata
+	set1 lpmreg_rom_lock_bit,pdata
+	set1 lpmreg_ice_mode_bit,pdata
+	store 4,core_lpm_reg
+	call lpm_write2_ctrl_option
+	jam 8,core_encrypt
+	rtn
+
+lpm_rom_lock:
+	fetch 2,core_ucode_flag
+	set1 lpmreg_rom_lock_bit,pdata
+	store 4,core_lpm_reg
+	
+lpm_write2_ctrl_option:
+	setarg lpmreg_sel_option
+lpm_write2:
+	until null,lpo_edge
+	store 1,core_lpm_wr2
+	until null,lpo_edge
+	until null,lpo_edge
+	rtn
+
+lpm_write_ice_disable:
+	fetch 2,core_ucode_flag
+	set0 lpmreg_ice_mode_bit,pdata
+	store 4,core_lpm_reg
+	branch lpm_write2_ctrl_option
+	
+
+/* ===================== SPI dma ======================= */
+
+spid_init:
+	bpatchx patch24_3,mem_patch24
+	branch spid_init_common
+
+	
+spid_init_common:
+	fetch 1,mem_spi_init_clk
+	store 1,core_spid_ctrl	// A7530 should at least 34, or write fail
+	fetch 1,mem_spi_init_delay_time
+	store 1,core_spid_delay	// 4us delay
+	setarg mem_spid_tbuf
+	store 2,core_spid_txaddr
+	setarg mem_spid_rbuf
+	store 2,core_spid_rxaddr
+	branch twspi_disable
+	
+
+
+/* pdata 6:0 is reg address, 15:8 is data to write */
+spid_write_reg:
+	set1 7,pdata
+	store 2,mem_spid_tbuf
+	bpatchx patch24_4,mem_patch24
+	jam 2,core_spid_txlen
+	jam 0,core_spid_rxlen
+	jam spid_start,core_misc_ctrl
+	branch wait_spid_done
+
+/* pdata 6:0 is reg address, temp is bytes to read */
+spid_read_reg:
+
+	force 1,temp
+spid_read_regs:	
+	store 1,mem_spid_tbuf
+	bpatchx patch24_5,mem_patch24
+	jam 1,core_spid_txlen
+	storet 2,core_spid_rxlen
+	jam spid_start,core_misc_ctrl
+	call wait_spid_done
+	fetch 1,mem_spid_rbuf
+	rtn
+
+
+wait_spid_done:
+	
+	fetch 2,mem_afh_error_total
+	increase 1,pdata
+	store 2,mem_afh_error_total
+	fetch 1,core_dma_status
+	bbit0 spid_done,wait_spid_done
+	rtn
+
+	
+
+
+
+
+/**
+ ******************************************************************************
+ ** \brief  write flash
+ **
+ ** \param [in]  rega: 2byte write ptr    
+ **			pdata:3byte flash address  
+ ** 			temp:2byte write data length
+ **
+ ** \retval user  0: flash buys 1:write flash setting complate
+ **
+ ******************************************************************************/
+
+flash_write:
+	disable user
+	copy pdata,regb
+	fetch 1,mem_spi_write_flash_sm
+	rtnne FLASH_SM_NO_BUYS
+	enable user
+	copy regb,pdata
+	branch spid_flash_write_start
+
+
+flash_write_spi_sm_timer:
+	fetch 1,mem_spi_write_flash_sm 	
+	beq FLASH_SM_START,spid_flash_write_start
+	beq FLASH_SM_ERASE_SECTOR,spid_flash_erase_sector
+	beq FLASH_SM_WAIT_ERASE_SECTOR,spid_flash_wait_erase_sector
+	beq FLASH_SM_WRITE_DATA,spid_flash_write_data
+	beq FLASH_SM_WAIT_WRITE_DATA,spid_flash_wait_write_data
+	rtn
+
+spid_flash_write_start:
+	store 3,mem_spi_write_addr
+	copy rega,pdata
+	store 2,mem_spi_write_ptr
+	storet 2,mem_spi_write_len
+	jam FLASH_SM_ERASE_SECTOR,mem_spi_write_flash_sm
+	branch spid_init_flash
+spid_flash_erase_sector:
+	call spid_init_flash
+	jam FLASH_SM_WAIT_ERASE_SECTOR,mem_spi_write_flash_sm
+	call spid_unlock_flash
+	arg mem_spid_tbuf,rega
+	jam 4,core_spid_txlen
+	fetch 3,mem_spi_write_addr
+	arg FLASH_COMMAND_SECTOR_ERASE,temp
+	branch spid_write_flash_common
+	
+spid_flash_wait_erase_sector:
+	call spid_init_flash
+	call wait_spid_flash_done
+	jam FLASH_SM_WRITE_DATA,mem_spi_write_flash_sm
+	rtn
+
+
+spid_flash_write_data:
+	call spid_init_flash
+	jam FLASH_SM_WAIT_WRITE_DATA,mem_spi_write_flash_sm
+	call spid_unlock_flash
+	call spid_flash_data_preserve
+	call spid_write_flash
+	branch spid_flash_data_recover
+spid_flash_wait_write_data:
+	call spid_init_flash
+	call spid_unlock_flash
+	setarg FLASH_READ_SATUS
+	call spid_read_reg
+	rtnbit1 FLASH_STATUS_WIP
+	jam FLASH_SM_NO_BUYS,mem_spi_write_flash_sm
+	fetch 2,mem_cb_spi_flash_write_complate
+	branch callback_func
+spid_flash_data_recover:
+	fetch 4,mem_temp
+	fetcht 2,mem_spi_write_ptr
+spid_flash_data_recover_comm:
+	increase -4,temp
+	istore 4,temp
+	rtn
+spid_flash_data_preserve:
+	fetcht 2,mem_spi_write_ptr
+	copy temp,rega
+	increase -4,temp
+	ifetch 4,temp
+	store 4,mem_temp
+	fetcht 2,mem_spi_write_len
+	fetch 3,mem_spi_write_addr
+	rtn
+
+spid_init_flash:
+	call spi_gpio_init
+	call twspi_disable
+	setarg 0
+	store 4,mem_spid_tbuf
+	rtn
+
+spid_unlock_flash:
+	jam FLASH_COMMAND_WRITE_ENABLE,mem_spid_tbuf
+spid_sendcmd_common:	
+	setarg 0
+	store 2,core_spid_rxlen
+	setarg 1
+	store 2,core_spid_txlen
+	setarg mem_spid_tbuf
+	store 2,core_spid_txaddr
+	jam spid_start,core_misc_ctrl
+	branch wait_spid_done
+	
+spid_flash_release_form_powerdown:
+	jam FLASH_COMMAND_RELEASE_FROM_POWERDOWN,mem_spid_tbuf
+	branch spid_sendcmd_common
+	
+spid_flash_powerdown:
+	jam FLASH_COMMAND_POWERDOWN,mem_spid_tbuf
+	branch spid_sendcmd_common
+	
+/* pdata is flash address, rega pointers to txdata(4 ahead bytes should be left), temp is length */
+spid_write_flash:
+
+	increase 4,temp
+	storet 2,core_spid_txlen
+	arg FLASH_COMMAND_WRITE_DATA,temp
+	increase -4,rega
+//	branch spid_write_flash_common
+spid_write_flash_common:
+	istoret 1,rega
+	rshift16 pdata,temp
+	istoret 1,contw
+	rshift8 pdata,temp
+	istoret 1,contw
+	istore 1,contw
+	deposit rega
+	store 2,core_spid_txaddr
+	setarg 0
+	store 2,core_spid_rxlen
+	jam spid_start,core_misc_ctrl
+	call wait_spid_done
+	branch wait_spid_flash_done
+
+
+/* temp is length, rega pointers to buf   */
+spid_read_flash:
+	storet 2,core_spid_rxlen
+	rshift16 pdata,temp
+	storet 1,mem_addr_hi
+	rshift8 pdata,temp
+	storet 1,mem_addr_mi
+	store 1,mem_addr_lo
+	setarg 4
+	store 2,core_spid_txlen
+	jam FLASH_COMMAND_READ_DATA,mem_spid_tbuf
+	setarg mem_spid_tbuf
+	store 2,core_spid_txaddr
+	deposit rega
+	store 2,core_spid_rxaddr
+	fetch 1,core_spid_ctrl
+	isolate0 15,rega
+	setflag true,6,pdata
+	store 1,core_spid_ctrl
+	jam spid_start,core_misc_ctrl
+spid_read_flash_wait:
+	fetch 1,core_dma_status
+	bbit1 7,spid_read_flash_wait			// waiting for spid write
+	arg spid_done,queue
+	branch wait_spid_done
+
+wait_spid_flash_done:
+	setarg 2000
+	call sleep
+	call spid_unlock_flash
+	setarg mem_spid_rbuf
+	store 2,core_spid_rxaddr
+	setarg FLASH_READ_SATUS
+	call spid_read_reg
+	bbit1 FLASH_STATUS_WIP,wait_spid_flash_done
+	rtn
+
+
+/* temp is length, rega pointers to buf  */
+spid_load_flash:
+	storet 2,core_spid_rxlen
+	setarg 4
+	store 2,core_spid_txlen
+	jam 3,mem_spid_tbuf
+	setarg mem_spid_tbuf
+	store 2,core_spid_txaddr
+	deposit rega
+	store 2,core_spid_rxaddr
+	fetch 1,core_spid_ctrl
+	isolate0 15,rega
+	setflag true,6,pdata
+	store 1,core_spid_ctrl
+	jam spid_start,core_misc_ctrl
+spi_load_flash_wait:
+	fetch 1,core_dma_status
+	bbit1 7,spi_load_flash_wait			// waiting for spid write
+	arg spid_done,queue
+	call decrypt_code
+	call wait_spid_done
+	isolate1 spid_crcok,pdata
+	call set_ucode_status
+	fetch 1,mem_addr_hi
+	lshift16 pdata,regb
+	fetch 1,mem_addr_mi
+	lshift8 pdata,pdata
+	ior regb,regb
+	fetch 1,mem_addr_lo
+	ior regb,pdata
+	iadd temp,pdata
+	store 1,mem_addr_lo
+	rshift8 pdata,pdata
+	store 1,mem_addr_mi
+	rshift8 pdata,pdata
+	store 1,mem_addr_hi
+	rtn
+	
+spi_gpio_init:
+	fetch 1,mem_spi_cs_gpio
+	fetcht 1,mem_spi_so_gpio
+	isub temp,null
+	nbranch spi_pin_set,zero
+	call spi_gpio_default_init
+	
+spi_pin_set:
+	fetch 1,mem_spi_cs_gpio
+	arg gpcfg_spid_ncs,temp
+	call gpio_config_function_int
+	fetch 1,mem_spi_sclk_gpio
+	arg gpcfg_spid_sck,temp
+	call gpio_config_function_int
+	fetch 1,mem_spi_si_gpio
+	arg gpcfg_spid_mosi,temp
+	call gpio_config_function_int
+	fetch 1,mem_spi_so_gpio
+	arg gpcfg_spid_miso,temp
+	branch gpio_config_function_int
+
+spi_gpio_default_init:
+	jam 14,mem_spi_cs_gpio
+	jam 13,mem_spi_si_gpio
+	jam 16,mem_spi_so_gpio
+	jam 15,mem_spi_sclk_gpio
+	jam 17,mem_spi_wp_gpio
+	jam 18,mem_spi_hold_gpio
+	rtn
+
+
+/* ===================== SPI2 dma ======================= */
+spid2_init:
+	branch spid2_init_common
+spid2_init_common:
+	fetch 1,mem_spi_init_clk
+	store 1,core_spid2_ctrl	// A7530 should at least 34, or write fail
+	fetch 1,mem_spi_init_delay_time
+	store 1,core_spid2_delay	// 4us delay
+	setarg mem_spid2_tbuf
+	store 2,core_spid2_txaddr
+	setarg mem_spid2_rbuf
+	store 2,core_spid2_rxaddr
+	branch twspi2_disable
+/* pdata 6:0 is reg address, 15:8 is data to write */
+spid2_write_reg:
+	set1 7,pdata
+	store 2,mem_spid2_tbuf
+	jam 2,core_spid2_txlen
+	jam 0,core_spid2_rxlen
+	jam spid2_start,core_misc_ctrl
+	branch wait_spid2_done
+/* pdata 6:0 is reg address, temp is bytes to read */
+spid2_read_reg:
+	force 1,temp
+spid2_read_regs:
+	store 1,mem_spid2_tbuf
+	jam 1,core_spid2_txlen
+	storet 2,core_spid2_rxlen
+	jam spid2_start,core_misc_ctrl
+	call wait_spid2_done
+	fetch 1,mem_spid2_rbuf
+	rtn
+wait_spid2_done:
+	fetch 2,mem_afh_error_total
+	increase 1,pdata
+	store 2,mem_afh_error_total
+	fetch 1,core_perf_status
+	bbit0 spid_done,wait_spid2_done
+	rtn
+spid2_init_flash:
+	call spi2_gpio_init
+	setarg 0
+	store 4,mem_spid2_tbuf
+	fetch 1,core_spid2_ctrl
+	set1 3,pdata
+	store 1,core_spid2_ctrl
+	rtn
+spid2_unlock_flash:
+	setarg 0
+	store 2,core_spid2_rxlen
+	setarg 1
+	store 2,core_spid2_txlen
+	setarg mem_spid2_tbuf
+	store 2,core_spid2_txaddr
+	jam FLASH_COMMAND_WRITE_ENABLE,mem_spid2_tbuf
+	jam spid2_start,core_misc_ctrl
+	branch wait_spid2_done
+flash_write_spi2_sm_timer:
+	fetch 1,mem_spi2_write_flash_sm 	
+	beq FLASH_SM_START,spid2_flash_write_start
+	beq FLASH_SM_ERASE_SECTOR,spid2_flash_erase_sector
+	beq FLASH_SM_WAIT_ERASE_SECTOR,spid2_flash_wait_erase_sector
+	beq FLASH_SM_WRITE_DATA,spid2_flash_write_data
+	beq FLASH_SM_WAIT_WRITE_DATA,spid2_flash_wait_write_data
+	rtn
+spid2_flash_write_start:
+	store 3,mem_spi2_write_addr
+	copy rega,pdata
+	store 2,mem_spi2_write_ptr
+	storet 2,mem_spi2_write_len
+	jam FLASH_SM_ERASE_SECTOR,mem_spi2_write_flash_sm
+	branch spid2_init_flash
+spid2_flash_erase_sector:
+	call spid2_init_flash
+	jam FLASH_SM_WAIT_ERASE_SECTOR,mem_spi2_write_flash_sm
+	call spid2_unlock_flash
+	arg mem_spid2_tbuf,rega
+	jam 4,core_spid2_txlen
+	fetch 3,mem_spi2_write_addr
+	arg FLASH_COMMAND_SECTOR_ERASE,temp
+	branch spid2_write_flash_common
+spid2_flash_wait_erase_sector:
+	call spid2_init_flash
+	call wait_spid2_flash_done
+	jam FLASH_SM_WRITE_DATA,mem_spi2_write_flash_sm
+	rtn
+spid2_flash_write_data:
+	call spid2_init_flash
+	jam FLASH_SM_WAIT_WRITE_DATA,mem_spi2_write_flash_sm
+	call spid2_unlock_flash
+	call spid2_flash_data_preserve
+	call spid2_write_flash
+	branch spid2_flash_data_recover
+spid2_flash_wait_write_data:
+	call spid2_init_flash
+	call spid2_unlock_flash
+	setarg FLASH_READ_SATUS
+	call spid2_read_reg
+	rtnbit1 FLASH_STATUS_WIP
+	jam FLASH_SM_NO_BUYS,mem_spi2_write_flash_sm
+	fetch 2,mem_cb_spi2_flash_write_complate
+	branch callback_func
+spid2_flash_data_recover:
+	fetch 4,mem_temp
+	fetcht 2,mem_spi2_write_ptr
+	branch spid_flash_data_recover_comm
+spid2_flash_data_preserve:
+	fetcht 2,mem_spi2_write_ptr
+	copy temp,rega
+	increase -4,temp
+	ifetch 4,temp
+	store 4,mem_temp
+	fetcht 2,mem_spi2_write_len
+	fetch 3,mem_spi2_write_addr
+	rtn
+spid2_write_flash:
+	increase 4,temp
+	storet 2,core_spid2_txlen
+	arg FLASH_COMMAND_WRITE_DATA,temp
+	increase -4,rega
+spid2_write_flash_common:
+	istoret 1,rega
+	rshift16 pdata,temp
+	istoret 1,contw
+	rshift8 pdata,temp
+	istoret 1,contw
+	istore 1,contw
+	deposit rega
+	store 2,core_spid2_txaddr
+	setarg 0
+	store 2,core_spid2_rxlen
+	jam spid2_start,core_misc_ctrl
+	call wait_spid2_done
+	branch wait_spid2_flash_done	
+spid2_read_flash:
+	storet 2,core_spid2_rxlen
+	rshift16 pdata,temp
+	storet 1,mem_addr_hi2
+	rshift8 pdata,temp
+	storet 1,mem_addr_mi2
+	store 1,mem_addr_lo2
+	setarg 4
+	store 2,core_spid2_txlen
+	jam FLASH_COMMAND_READ_DATA,mem_spid2_tbuf
+	setarg mem_spid2_tbuf
+	store 2,core_spid2_txaddr
+	deposit rega
+	store 2,core_spid2_rxaddr
+	fetch 1,core_spid2_ctrl
+	isolate0 15,rega
+	setflag true,6,pdata
+	store 1,core_spid2_ctrl
+	jam spid2_start,core_misc_ctrl
+spid2_read_flash_wait:
+	fetch 1,core_perf_status
+	bbit1 7,spid2_read_flash_wait			// waiting for spid write
+	arg spid_done,queue
+	branch wait_spid2_done
+wait_spid2_flash_done:
+	setarg 2000
+	call sleep
+	call spid2_unlock_flash
+	setarg mem_spid2_rbuf
+	store 2,core_spid2_rxaddr
+	setarg FLASH_READ_SATUS
+	call spid2_read_reg
+	bbit1 FLASH_STATUS_WIP,wait_spid2_flash_done
+	rtn
+spi2_gpio_init:
+	fetch 1,mem_spi2_cs_gpio
+	arg gpcfg_spid2_ncs,temp
+	call gpio_config_function_int
+	fetch 1,mem_spi2_sclk_gpio
+	arg gpcfg_spid2_sck,temp
+	call gpio_config_function_int
+	fetch 1,mem_spi2_si_gpio
+	arg gpcfg_spid2_mosi,temp
+	call gpio_config_function_int
+	fetch 1,mem_spi2_so_gpio
+	arg gpcfg_spid2_miso,temp
+	branch gpio_config_function_int
+
+/*****************************************************************************
+*soft reset chip
+*****************************************************************************/
+soft_reset_chip:
+	jam 1,core_reset
+	rtn
+
+
+
+/* ===================== I2C dma ======================= */
+
+/* scl high time: scl_high + 2 clks, scl low time:scl_low + 6 clks
+data setup time: data_setup + 2 clks, data hold time: scl_low-setup-hold+4 clks */
+iic_init_600khz:
+	jam 5,core_iicd_scl_low
+ 	jam 7,core_iicd_scl_high
+	jam 7,core_iicd_start_setup
+	jam 7,core_iicd_start_hold
+	jam 7,core_iicd_stop_setup
+	jam 5,core_iicd_data_setup
+	jam 0,core_iicd_data_hold
+	rtn
+	
+iic_init_360khz:	//360khz
+	jam 12,core_iicd_scl_low
+	jam 13,core_iicd_scl_high
+	jam 13,core_iicd_start_setup
+	jam 13,core_iicd_start_hold
+	jam 13,core_iicd_stop_setup
+	jam 12,core_iicd_data_setup
+	jam 0,core_iicd_data_hold	
+  	rtn
+
+iicd_init_pin:
+	call iicd_eeprom_write_enable
+iicd_init_pin_scl_sda:
+	fetch 1,mem_eeprom_scl_gpio
+	arg gpcfg_iic_scl,temp
+	call gpio_config_function_int
+	fetch 1,mem_eeprom_sda_gpio
+	arg gpcfg_iic_sda,temp
+	branch gpio_config_function_int
+
+iicd_read_init_pin:
+	call iicd_eeprom_write_disable
+	branch iicd_init_pin_scl_sda
+
+wait_iicd_done:
+	fetch 1,core_dma_status
+	bbit0 iicd_done,wait_iicd_done
+	rtn
+
+	/* pdata is iic addr, rega points to buf, temp is length */
+iicd_read_data:
+	store 1,mem_iicd_addr
+	setarg mem_iicd_addr
+	store 2,core_iicd_txaddr
+	setarg 1
+	store 2,core_iicd_txlen
+	storet 2,core_iicd_rxlen
+	storer rega,2,core_iicd_rxaddr
+	jam 1,core_iicd_ctrl
+	jam iicd_start,core_misc_ctrl
+	branch wait_iicd_done
+
+	/* rega points to buf, temp is length */
+iic_write_data:
+	setarg 0
+	store 2,core_iicd_rxlen
+	store 2,core_iicd_rxaddr
+	storet 2,core_iicd_txlen
+	storer rega,2,core_iicd_txaddr
+	jam 1,core_iicd_ctrl
+	jam iicd_start,core_misc_ctrl
+	branch wait_iicd_done
+
+set_eeprom_size_2k:
+	set1 mark_eeprom_size,mark
+	jam 0x08,mem_eeprom_block_size
+	rtn
+
+clear_eeprom_size_2k:
+	set0 mark_eeprom_size,mark
+	jam 0x20,mem_eeprom_block_size
+	rtn
+
+
+iicd_read_eep_data_size_2k:
+ 	fetch 1,mem_eeprom_base
+	iadd regb,pdata
+	store 1,mem_addr_mi
+	branch iicd_read_eep_size_2k
+
+iicd_read_eep_size_2k_lcadcode:
+	fetch 2,mem_addr_mi
+	byteswap pdata,pdata
+	store 1,mem_addr_mi
+	
+//length:temp 
+//mem ptr:rega
+//eeprom addr:pdata
+iicd_read_eep_size_2k:
+ 	setarg 3
+	store 2,core_iicd_txlen
+	jam 0xa0,mem_iicd_tbuf
+	jam 0xa1,mem_iicd_tbuf+2
+	branch iicd_read_eep_common
+
+
+//length:temp 
+//mem ptr:rega
+//eeprom addr:regb
+iicd_write_protect_eep_data:
+	storet 2,mem_temp
+	call iicd_eeprom_write_enable
+	fetcht 2,mem_temp
+	call iicd_write_eep_data
+	branch iicd_eeprom_write_disable
+	
+iicd_eeprom_write_enable:
+	fetch 1,mem_eeprom_wp_gpio
+	rtneq GPIO_DISABLE
+	bbit0 6,iicd_wp_gpio_output_low
+	setarg 150000
+	call sleep
+iicd_wp_gpio_output_low:
+	fetcht 1,mem_eeprom_wp_gpio
+	branch gpio_out_active
+	
+iicd_eeprom_write_disable:
+	fetcht 1,mem_eeprom_wp_gpio
+	branch gpio_out_inactive
+	
+//length:temp 
+//mem ptr:rega
+//eeprom addr offset:regb
+iicd_read_eep_data:
+	bpatchx patch24_6,mem_patch24
+	bmark1 mark_eeprom_size,iicd_read_eep_data_size_2k
+	fetch 2,mem_eeprom_base
+	iadd regb,pdata
+	byteswap pdata,pdata
+	store 2,mem_addr_mi
+
+/* rega pointers to buf, temp is length  */
+iicd_read_eep:
+	bpatchx patch24_7,mem_patch24
+	bmark1 mark_eeprom_size,iicd_read_eep_size_2k_lcadcode
+	setarg 4
+	store 2,core_iicd_txlen
+	jam 0xa0,mem_iicd_tbuf
+	jam 0xa1,mem_iicd_tbuf+3
+iicd_read_eep_common:	
+	setarg mem_iicd_tbuf
+	store 2,core_iicd_txaddr
+	storet 2,core_iicd_rxlen
+	storer rega,2,core_iicd_rxaddr
+	setarg 2
+	isolate0 15,rega
+	setflag true,0,pdata
+	store 1,core_iicd_ctrl
+	jam iicd_start,core_misc_ctrl
+	arg iicd_done,queue
+	call decrypt_code
+	call wait_iicd_done
+	isolate1 iicd_crcok,pdata
+	call set_ucode_status
+	bmark1 mark_eeprom_size,iicd_read_eep_load_code_size_2k
+	fetch 2,mem_addr_mi
+	byteswap pdata,pdata
+	iadd temp,pdata
+	byteswap pdata,pdata
+	store 2,mem_addr_mi
+	rtn
+
+iicd_read_eep_load_code_size_2k:
+	fetch 1,mem_addr_mi
+	iadd temp,pdata
+	byteswap pdata,pdata
+	store 2,mem_addr_mi
+	rtn
+	
+
+//length:temp 
+//mem ptr:rega
+//eeprom addr offset:regb
+iicd_write_eep_data:
+	fetch 2,mem_eeprom_base
+	iadd regb,pdata
+
+//cuur ptr:pdata length:temp buf:rega
+iicd_write_ota_data:
+	store 2,mem_pdatatemp //curr ptr
+	bpatchx patch25_0,mem_patch25
+	storet 2,mem_temp	//len
+	storer rega,2,mem_contr
+iicd_write_eep_loop:
+	call iicd_eep_transparency
+
+	fetcht 2,mem_regb
+	fetchr rega,2,mem_contr
+	fetch 2,mem_pdatatemp
+	
+	call iicd_write_eep
+	
+	fetch 2,mem_regb
+	fetcht 2,mem_contr
+	iadd temp,temp
+	storet 2,mem_contr
+	fetcht 2,mem_pdatatemp
+	iadd temp,temp
+	storet 2,mem_pdatatemp
+	fetch 2,mem_temp
+	nbranch iicd_write_eep_loop,blank
+	rtn
+	
+//in:
+//1.size 2.len 3.src 4.des
+//mem_regc page's area
+//mem_pdatatemp curr ptr
+//mem_temp all len      
+//mem_regb curr len
+iicd_eep_transparency:
+	bpatchx patch25_1,mem_patch25
+	fetch 1,mem_eeprom_block_size
+	increase -1,pdata
+	fetcht 2,mem_pdatatemp
+	ior temp,pdata
+	increase 1,pdata
+	store 3,mem_regc
+
+	fetch 2,mem_temp
+	iadd temp,pdata
+
+	fetcht 3,mem_regc
+	isub temp,pdata
+	nbranch iicd_eep_deal_short_packet,positive
+	store 2,mem_temp
+	fetch 3,mem_regc
+	fetcht 2,mem_pdatatemp
+	isub temp,pdata
+	store 2,mem_regb
+	rtn
+iicd_eep_deal_short_packet:
+	fetch 2,mem_temp
+	store 2,mem_regb
+	setarg 0
+	store 2,mem_temp
+	rtn
+
+iicd_write_eep_size_2k:
+	copy regb,pdata
+	increase 2,temp
+	storet 2,core_iicd_txlen
+	increase -2,rega
+	ifetcht 3,rega
+	copy temp,regb
+	arg 0xa0,temp
+	istoret 1,rega
+	istore 1,contw
+	branch iicd_write_eep_common
+
+	/* pdata is eeprom address, rega pointers to txdata(3 ahead bytes should be left), temp is length */
+iicd_write_eep:
+	copy pdata,regb
+	bpatchx patch25_2,mem_patch25
+	bmark1 mark_eeprom_size,iicd_write_eep_size_2k
+	copy regb,pdata
+	increase 3,temp
+	storet 2,core_iicd_txlen
+	increase -3,rega
+	ifetcht 3,rega
+	copy temp,regb
+	arg 0xa0,temp
+	istoret 1,rega
+	byteswap pdata,pdata
+	istore 2,contw
+iicd_write_eep_common:	
+	storer rega,2,core_iicd_txaddr
+	setarg 0
+	store 2,core_iicd_rxlen
+	jam 1,core_iicd_ctrl
+	jam iicd_start,core_misc_ctrl
+	call wait_iicd_done
+	istorer regb,3,rega
+iic_check_eeprom_standby:
+	bpatchx patch25_3,mem_patch25
+	jam 0,mem_iicd_tbuf+3
+iic_check_eeprom_standby_wait:
+	setarg 1
+	store 2,core_iicd_txlen
+	jam 0xa0,mem_iicd_tbuf
+	setarg mem_iicd_tbuf
+	store 2,core_iicd_txaddr
+	setarg 0
+	store 2,core_iicd_rxlen
+	store 2,core_iicd_rxaddr
+	setarg 3
+	store 1,core_iicd_ctrl
+	jam iicd_start,core_misc_ctrl
+	call wait_iicd_done
+	fetch 1,core_dma_status
+	rtnbit0 iicd_ack
+	nop 1500
+	fetch 1,mem_iicd_tbuf+3
+	increase 1,pdata
+	store 1,mem_iicd_tbuf+3
+	sub pdata,40,null
+	nrtn positive//polling timeout 6ms
+	branch iic_check_eeprom_standby_wait
+
+/* ===================== efuse ======================= */
+//pdata: efuse address, rega :points to data, temp : count 
+efuse_read_data:
+	copy temp,loopcnt
+	copy pdata,temp
+	lshift3 temp,temp
+	call efuse_vdd_on
+	jam 0x80,core_efuse_ctrl
+efuse_read_loop:
+	jam 0x86,core_efuse_ctrl
+	storet 2,core_efuse_addr
+	increase 8,temp
+	jam 0x87,core_efuse_ctrl
+	fetch 1,core_efuse_rdata
+	istore 1,rega
+	increase 1,rega
+	loop efuse_read_loop
+	jam 0x86,core_efuse_ctrl
+	jam 0x80,core_efuse_ctrl
+	jam 0x0,core_efuse_ctrl
+	branch efuse_vdd_off
+
+//temp = efuse address, rega pointers data, loopcnt is count 
+efuse_program:
+	call efuse_vdd_fsource_on
+	jam 0x80,core_efuse_ctrl
+	lshift3 temp,temp
+	copy rega,contr
+efuse_program_loop:
+	ifetch 1,contr
+	arg 8,regb
+efuse_program_bit_loop:
+	and pdata,1,null
+	ncall efuse_program_bit,zero
+	rshift pdata,pdata
+	increase 1,temp
+	increase -1,regb
+	nbranch efuse_program_bit_loop,zero
+	loop efuse_program_loop
+	jam 0x80,core_efuse_ctrl
+	jam 0x0,core_efuse_ctrl
+	branch efuse_vdd_off
+    
+
+efuse_lna_pa_ldo_on:
+	fetch 1,core_rf_ldo_en0
+	set1 1,pdata
+	store 1,core_rf_ldo_en0
+	nop 200
+	fetch 1,core_rf_ldo_en1
+	set1 0,pdata
+	store 1,core_rf_ldo_en1
+	nop 2000
+	rtn
+
+efuse_vdd_fsource_on:
+	call efuse_lna_pa_ldo_on
+	fetch 1,core_rf_ldo_en1
+	set0 5,pdata
+	set1 4,pdata
+	set1 3,pdata
+	store 1,core_rf_ldo_en1
+	nop 500
+	rtn
+	
+efuse_vdd_on:
+	call efuse_lna_pa_ldo_on
+	fetch 1,core_rf_ldo_en1
+	set1 5,pdata
+	set1 4,pdata
+	set0 3,pdata
+	store 1,core_rf_ldo_en1
+	nop 500
+	rtn
+	
+efuse_vdd_off:
+	fetch 1,core_rf_ldo_en1
+	set0 5,pdata
+	set0 4,pdata
+	set0 3,pdata
+	set0 0,pdata	
+	store 1,core_rf_ldo_en1
+	nop 200
+	fetch 1,core_rf_ldo_en0
+	set0 1,pdata
+	store 1,core_rf_ldo_en0
+	rtn
+
+efuse_program_bit:
+	jam 0x80,core_efuse_ctrl
+	nop 10
+	storet 2,core_efuse_addr
+	jam 0x81,core_efuse_ctrl
+	nop 110
+	rtn
+
+/* ===================== uart dma ======================= */
+uarta_init_dma_mem:
+	call enable_user
+	branch uart_init_dma_mem
+uartb_init_dma_mem:
+	call disable_user
+	branch uart_init_dma_mem
+/*
+function name:uart_init_dma_mem
+input:
+	pdata is dma memory config
+	bit[0-15]:rx start memory address
+	bit[16-31]:rx ending memory address
+	bit[32-47]:tx start memory address
+	bit[48-63]:tx ending memory address
+	user is choice uart road
+	enable is mean check uart A
+	disable user is mean check uart B
+*/
+uart_init_dma_mem:
+	rshift16 pdata,temp
+	call uarta_init_rx,user
+	ncall uartb_init_rx,user
+	rshift32 pdata,pdata
+	rshift16 pdata,temp
+	call uarta_init_tx,user
+	ncall uartb_init_tx,user
+	nbranch uartb_init_dma_turn_on_clk,user
+	fetch 2,core_clkoff
+	set0 CLOCK_OFF_UART,pdata
+	store 2,core_clkoff
+	rtn
+uartb_init_dma_turn_on_clk:
+	fetch 2,core_clkoff
+	set0 CLOCK_OFF_UARTB,pdata
+	store 2,core_clkoff
+	rtn
+
+
+/*
+function name:uarta_init_baud_rate
+input:
+	pdata is uart A baud rate
+*/
+uarta_init_baud_rate:
+	store uart_baud_len,core_uart_baud
+	rtn
+
+
+/*
+function name:uartb_init_baud_rate
+input:
+	uartb_init_baud_rate is uart B baud rate
+*/
+uartb_init_baud_rate:
+	store uart_baud_len,core_uartb_baud
+	rtn
+
+/*
+function name:uarta_calc_baud_rate_config
+input:
+	temp is uart A baud rate,Decimal data
+	E.g:115200 input arg 115200,temp
+*/
+uarta_calc_baud_rate_config:
+	call uart_calc_baud_rate_config
+	branch uarta_init_baud_rate
+
+/*
+function name:uartb_calc_baud_rate_config
+input:
+	temp is uart B baud rate,Decimal data
+	E.g:115200 input arg 115200,temp
+*/
+uartb_calc_baud_rate_config:
+	call uart_calc_baud_rate_config
+	branch uartb_init_baud_rate
+
+/*
+function name:uart_calc_baud_rate_config
+input:
+	temp is uart baud rate,Decimal data
+	E.g:115200 input arg 115200,temp
+output:
+	pdata is CPU config uart baud rate
+*/
+uart_calc_baud_rate_config:
+	call uart_calc_baud_rate_config_choice_uart_clock
+	idiv temp
+	call wait_div_end
+	quotient pdata
+	rtn
+
+uart_calc_baud_rate_config_choice_uart_clock:
+	fetch 1,core_uart_clksel
+	bbit0 UART_CLOCK_SELECT_BIT,uart_calc_baud_rate_config_choice_uart_clock_crystal
+	setarg uart_clock_freq_48M
+	rtn
+uart_calc_baud_rate_config_choice_uart_clock_crystal:
+	setarg uart_clock_freq_24M
+	rtn
+
+uart_clock_select_main_freq_crystal:
+	fetch 1,core_uart_clksel
+	and pdata,UART_CLOCK_SELECT_CRYSTAL,pdata
+	store 1,core_uart_clksel
+	rtn
+
+uart_clock_select_main_freq_dpll:
+	fetch 1,core_uart_clksel
+	or pdata,UART_CLOCK_SELECT_DPLL,pdata
+	store 1,core_uart_clksel
+	rtn
+
+
+	// pdata: tx buffer start, temp: tx buffer end
+uarta_init_tx:
+	store 2,core_uart_tsaddr
+	store 2,core_uart_twptr
+	storet 2,core_uart_teaddr
+	rtn
+
+	// pdata: tx buffer start, temp: tx buffer end
+uartb_init_tx:
+	store 2,core_uartb_tsaddr
+	store 2,core_uartb_twptr
+	storet 2,core_uartb_teaddr
+	rtn
+
+	// pdata: rx buffer start, temp: rx buffer end
+uarta_init_rx:
+	store 2,core_uart_rsaddr
+	store 2,core_uart_rrptr
+	storet 2,core_uart_readdr
+	rtn
+
+	// pdata: rx buffer start, temp: rx buffer end
+uartb_init_rx:
+	store 2,core_uartb_rsaddr
+	store 2,core_uartb_rrptr
+	storet 2,core_uartb_readdr
+	rtn
+
+
+uarta_prepare_tx:
+	fetchr contus,2,core_uart_tsaddr
+	fetchr contue,2,core_uart_teaddr
+	fetchr contu,2,core_uart_twptr
+	rtn
+
+uartb_prepare_tx:
+	fetchr contus,2,core_uartb_tsaddr
+	fetchr contue,2,core_uartb_teaddr
+	fetchr contu,2,core_uartb_twptr
+	rtn
+
+uarta_prepare_rx:
+	fetchr contus,2,core_uart_rsaddr
+	fetchr contue,2,core_uart_readdr
+	fetchr contu,2,core_uart_rrptr
+	rtn
+
+uartb_prepare_rx:
+	fetchr contus,2,core_uartb_rsaddr
+	fetchr contue,2,core_uartb_readdr
+	fetchr contu,2,core_uartb_rrptr
+	rtn
+
+uarta_send:
+	storer contu,2,core_uart_twptr
+	rtn
+
+uartb_send:
+	storer contu,2,core_uartb_twptr
+	rtn
+
+uarta_rxdone:
+	storer contu,2,core_uart_rrptr
+	rtn
+
+uartb_rxdone:
+	storer contu,2,core_uartb_rrptr
+	rtn
+
+uarta_clear_current_rx:
+	call uarta_prepare_rx
+	fetch 2,core_uart_rxitems
+	iadd contu,contu
+	branch uarta_rxdone
+
+uartb_clear_current_rx:
+	call uartb_prepare_rx
+	fetch 2,core_uartb_rxitems
+	iadd contu,contu
+	branch uartb_rxdone
+
+uarta_prepare_tx_register_push:
+	call uart_register_push
+	branch uarta_prepare_tx
+
+uartb_prepare_tx_register_push:
+	call uart_register_push
+	branch uartb_prepare_tx
+
+uarta_send_register_pop:
+	call uarta_send
+	branch uart_register_pop
+
+uartb_send_register_pop:
+	call uartb_send
+	branch uart_register_pop
+
+
+uart_register_push:
+	storer contu,2,mem_contu
+	storer contus,2,mem_contue
+	storer contue,2,mem_contus
+	rtn
+
+uart_register_pop:
+	fetchr contu,2,mem_contu
+	fetchr contus,2,mem_contue
+	fetchr contue,2,mem_contus
+	rtn
+
+
+uart_copy_tx_bytes_fast:
+	deposit loopcnt
+	rtn blank
+uart_copy_tx_bytes_fast_loop:
+	increase -8,loopcnt
+	call uart_tx_8_bytes,positive
+	rtn zero
+	branch uart_copy_tx_bytes_fast_loop,positive
+	increase 8,loopcnt
+uart_copy_tx_bytes_fast_loop_four:
+	increase -4,loopcnt
+	call uart_tx_4_bytes,positive
+	rtn zero
+	branch uart_copy_tx_bytes_fast_loop_four,positive
+	increase 4,loopcnt
+	branch uart_copy_tx_bytes
+
+uart_tx_16_bytes:
+	call uart_tx_8_bytes
+uart_tx_8_bytes:
+	ifetch 8,contr
+	istore 8,contu
+	rtn
+
+uart_tx_4_bytes:
+	ifetch 4,contr
+	istore 4,contu
+	rtn
+
+uart_copy_tx_bytes:
+	deposit loopcnt
+	rtn blank
+uart_copy_tx_bytes_loop:
+	ifetch 1,contr
+	istore 1,contu
+	loop uart_copy_tx_bytes_loop
+	rtn
+
+uart_copy_rx_bytes_fast:
+	deposit loopcnt
+	rtn blank
+uart_copy_rx_bytes_fast_loop:
+	increase -8,loopcnt
+	call uart_rx_8_bytes,positive
+	rtn zero
+	branch uart_copy_rx_bytes_fast_loop,positive
+	increase 8,loopcnt
+uart_copy_rx_bytes_fast_loop_four:
+	increase -4,loopcnt
+	call uart_rx_4_bytes,positive
+	rtn zero
+	branch uart_copy_rx_bytes_fast_loop_four,positive
+	increase 4,loopcnt
+	branch uart_copy_rx_bytes
+
+uart_rx_16_bytes:
+	call uart_rx_8_bytes
+uart_rx_8_bytes:
+	ifetch 8,contu
+	istore 8,contw
+	rtn
+
+uart_rx_4_bytes:
+	ifetch 4,contu
+	istore 4,contw
+	rtn
+
+
+uart_copy_rx_bytes:
+	deposit loopcnt
+	rtn blank
+uart_copy_rx_bytes_loop:
+	ifetch 1,contu
+	istore 1,contw
+	loop uart_copy_rx_bytes_loop
+	rtn
+
+
+/* ===================== eeprom data ======================= */
+
+app_store_nvram_event:
+	jam BT_EVT_STORE_NVRAM,mem_fifo_temp
+	branch ui_ipc_send_event
+
+check_51cmd_store_reconn_info:
+check_51cmd_update_device_record:
+	bpatchx patch25_4,mem_patch25
+	fetch 1,mem_nv_data_number
+	rtn blank		// not nv data
+	call check_nvram
+	call init_device_list,zero
+	call disable_user2
+	call nvram_find_addr_from_bd_list
+write_device_record:
+	fetch 1,mem_nv_data_number
+	icopy regc
+	fetcht 2,mem_nv_data_ptr
+	storet 2,mem_list_item_ptr
+write_device_loop_find:
+	copy regc,pdata
+	branch app_store_nvram_event,blank  //EEPROM
+	increase -1,regc
+	copy temp,rega
+	ifetch 1,rega
+	fetcht 1,mem_select_list_item
+	isub temp,null
+	call set_index_finded_device,zero
+	branch write_device_loop_find0,positive
+	ifetch 1,rega
+	increase 1,pdata
+	istore 1,rega
+write_device_loop_find0:
+	fetcht 2,mem_list_item_ptr
+	increase NV_DATA_LEN,temp
+	storet 2,mem_list_item_ptr
+	branch write_device_loop_find
+
+set_index_finded_device:
+	setarg 0
+	istore 1,rega
+	fetch 1,mem_temp_reconn_record
+	istore 1,contw	
+	bne REC_3_MODE,set_index_finded_device_ble_mode
+	arg mem_link_key,regb
+set_index_find_device_MASTER_ADDR:
+	ifetch 6,contr
+	istore 6,contw
+	fetch 1,mem_encapsulated_minor_type
+	istore 1,contw
+	setarg 0
+	istore 9,contw
+	copy regb,contr
+store_rec_data_common:
+	call memcpy16
+	force 1,null
+	rtn
+
+set_index_finded_device_ble_mode:
+	beq REC_4_MODE_RANDOM_RESOLVABLE_PRIVATE_ADDRESS,set_index_finded_device_IRK
+	beq REC_4_MODE_RANDOM_NON_RESOLVABLE_PRIVATE_ADDRESS,set_index_finded_device_EDIV
+	arg mem_le_ltk,regb
+	branch set_index_find_device_MASTER_ADDR
+
+set_index_finded_device_IRK:
+	arg mem_le_irk,contr
+	call memcpy16
+store_ble_rec_data_common:
+	arg mem_le_ltk,contr
+	branch store_rec_data_common
+
+set_index_finded_device_EDIV:
+	arg mem_le_rand,contr
+	call memcpy16
+	branch store_ble_rec_data_common
+
+
+//enable user2 reconnect
+//disable user2 pairing
+nvram_find_addr_from_bd_list:
+	call disable_user
+	fetch 1,mem_nv_data_number
+	rtn blank		// not nv data
+	bpatchx patch25_5,mem_patch25
+	fetch 2,mem_ui_state_map
+	bbit1 UI_STATE_BT_CONNECTED,find_addr_from_bd_list_SPP_mode
+	rtnbit0 UI_STATE_BLE_CONNECTED
+find_addr_from_bd_list_ble_mode:
+	fetch 1,mem_le_conn_peer_addr_type
+	beq MASTER_PUBLIC_ADDR,find_addr_from_bd_list_public_device_addr
+	fetch 1,mem_le_plap+5
+	compare 0xc0,pdata,0xc0
+	branch find_addr_from_bd_list_static_addr,true
+	compare 0x40,pdata,0xc0
+	branch find_addr_from_bd_list_random_addr,true
+	branch find_addr_from_bd_list_random_non_resolvable_private_address_sc_or_legacy
+
+find_addr_from_bd_list_static_addr:
+	branch find_addr_from_bd_list_static_addr_reconnect,user2
+	fetch 1,mem_le_preq_init_key_distribution
+	bbit0 LE_INITATOR_IRK_BIT,find_addr_from_bd_list_public_device_addr
+	branch find_addr_from_bd_list_static_addr_sc_or_legacy
+
+find_addr_from_bd_list_static_addr_reconnect:
+	call find_addr_from_bd_list_public_device_addr
+	rtn user
+	branch find_addr_from_bd_list_static_addr_sc_or_legacy
+
+
+find_addr_from_bd_list_static_addr_sc_or_legacy:
+find_addr_from_bd_list_random_non_resolvable_private_address_sc_or_legacy:
+	fetch 1,mem_le_pairing_mode
+	bbit1 LE_PAIRING_MODE_SECURE_CONNECT_BIT,find_addr_from_bd_list_random_non_resolvable_private_address_sc
+	branch find_addr_from_bd_list_random_non_resolvable_private_address
+
+find_addr_from_bd_list_static_addr_sc:
+find_addr_from_bd_list_random_non_resolvable_private_address_sc:
+	fetch 6,mem_le_plap
+	store 8,mem_le_rand
+	branch find_addr_from_bd_list_random_non_resolvable_private_address
+
+
+find_addr_from_bd_list_public_device_addr:
+	jam REC_4_MODE_STATIC_ADDRESS,mem_temp_reconn_record
+	fetch 6,mem_le_plap
+	branch find_addr_from_bd_list_common
+	
+find_addr_from_bd_list_random_non_resolvable_private_address:	
+	jam REC_4_MODE_RANDOM_NON_RESOLVABLE_PRIVATE_ADDRESS,mem_temp_reconn_record
+	branch find_addr_from_bd_list_common
+
+//input :pdata EDIV and rands
+find_addr_from_bd_list_random_addr:
+	jam REC_4_MODE_RANDOM_RESOLVABLE_PRIVATE_ADDRESS,mem_temp_reconn_record
+	branch find_addr_from_bd_list_common
+	
+//input :pdata EDIV and rands
+find_addr_from_bd_list_SPP_mode:
+	jam REC_3_MODE,mem_temp_reconn_record
+	fetch 6,mem_plap
+find_addr_from_bd_list_common:
+	store 6,mem_temp_lap
+	fetch 2,mem_nv_data_ptr
+	ifetcht 1,pdata
+	pincrease 1
+	store 2,mem_list_item_ptr
+	storet 1,mem_select_list_item
+	fetch 1,mem_nv_data_number
+	icopy regc
+nvram_find_addr_from_list:
+	fetch 2,mem_list_item_ptr
+	copy pdata,rega
+	call nvram_find_addr_from_list_compare
+	rtn user
+	fetcht 2,mem_list_item_ptr
+	increase NV_DATA_LEN,temp
+	storet 2,mem_list_item_ptr
+	increase -1,temp
+	ifetch 1,temp
+	store 1,mem_select_list_item
+	increase -1,regc
+	nbranch nvram_find_addr_from_list,zero
+	fetch 1,mem_nv_data_number
+	pincrease DECREASED_ONE
+	store 1,mem_select_list_item
+	rtn
+nvram_find_addr_from_list_compare:
+	fetch 1,mem_temp_reconn_record
+	bne REC_3_MODE,find_addr_from_list_compare_ble_mode
+find_master_addr_from_list_compare:
+	arg mem_temp_reconn_record,regb
+	arg 7,loopcnt
+	call string_compare
+	branch enable_user,zero
+	rtn
+
+find_addr_from_list_compare_ble_mode:
+	beq REC_4_MODE_RANDOM_RESOLVABLE_PRIVATE_ADDRESS,find_irk_form_list_compare
+	beq REC_4_MODE_RANDOM_NON_RESOLVABLE_PRIVATE_ADDRESS,find_ediv_form_list_compare
+	branch find_master_addr_from_list_compare
+
+find_irk_form_list_compare:
+	ifetcht 1,rega
+	isub temp,null
+	nrtn zero
+	arg mem_le_prand,contw
+	arg 16,loopcnt
+	call clear_mem
+	fetch 3,mem_le_plap+3
+	store 3,mem_le_prand
+	call genernate_master_MacAddress
+	fetch 2,mem_le_aes_128+13
+	byteswap pdata,pdata
+	lshift8 pdata,temp
+	ifetch 1,contr
+	iadd temp,pdata
+	fetcht 3,mem_le_plap
+	isub temp,null
+	branch enable_user,zero
+	rtn
+
+
+genernate_master_MacAddress:
+	arg mem_le_prand ,contr
+	call load_data128
+//	arg mem_le_irk,contr
+	ifetch 1,rega
+	call load_regext
+	force 0x38,aes_ctrl
+	force 0x0,aes_ctrl
+	call wait_aes
+	arg mem_le_aes_128,contw
+	branch store_aes_result
+
+find_ediv_form_list_compare:
+	ifetcht 1,rega
+	isub temp,null
+	nrtn zero
+	copy contr,rega
+	add contr,8,regc
+	arg mem_le_rand,regb
+	arg 8,loopcnt
+	call string_compare
+	branch enable_user,zero
+	copy regc,rega
+	arg mem_le_irk,regb
+	arg 8,loopcnt
+	call string_compare
+	branch enable_user,zero
+	rtn
+
+check_nvram:
+	fetch 2,mem_nv_data_ptr
+	ifetcht 1,pdata
+	pincrease NV_DATA_LEN
+	ifetch 1,pdata
+	isub temp,null
+	rtn
+
+init_device_list:
+	fetch 1,mem_nv_data_number
+	icopy loopcnt
+	fetcht 2,mem_nv_data_ptr
+	setarg 0
+init_device_list_loop:
+	istore 1,temp
+	increase NV_DATA_LEN,temp
+	pincrease 1
+	loop init_device_list_loop
+	rtn
+
+load_device_list:
+	bpatchx patch25_6,mem_patch25
+	call enable_user2
+	call nvram_find_addr_from_bd_list
+	fetch 1,mem_state
+	setflag user,state_combkey,pdata	/* we have link key */
+	store 1,mem_state
+	nbranch clear_key_exists,user
+	ifetch  1,rega
+	store 1,mem_encapsulated_minor_type
+	add rega,10,contr
+	arg mem_link_key,contw
+	call  memcpy16
+	branch check_link_key_load
+clear_key_exists:
+	jam 0,mem_link_key_exists
+	rtn
+
+load_device_list_mode_4:
+	fetch 9,mem_le_ediv
+	branch clear_ltk_exists,blank
+	call enable_user2
+	call nvram_find_addr_from_bd_list
+	nbranch clear_ltk_exists,user
+	fetch 2,mem_list_item_ptr
+	add pdata,1,contr
+	arg mem_le_irk,contw
+	call  memcpy16
+	arg mem_le_ltk,contw
+	call  memcpy16
+	jam 1,mem_ltk_exists
+	rtn
+
+clear_ltk_exists:
+	jam 0,mem_ltk_exists
+	rtn
+
+
+eeprom_store_le_reconn_info:
+	jam REC_4_MODE,mem_record_bt_mode
+	branch eeprom_store_reconn_info
+eeprom_store_bd_reconn_info:
+	jam REC_3_MODE,mem_record_bt_mode
+eeprom_store_reconn_info:
+	fetch 1,mem_device_option
+	beq dvc_op_module,check_51cmd_update_device_record
+	beq dvc_op_mouse,mouse_store_remote_bdaddr
+	rtn
+	
+
+check_link_key_load:
+	fetch 8,mem_link_key
+	fetcht 8,mem_link_key+8
+	ior temp,pdata
+	rtn blank
+	jam 1,mem_link_key_exists
+	rtn
+	
+
+/* =============== GPIO CONTROL ================= */
+
+
+//temp [4:0]=GPIO number, 0-31, 
+gpio_set_wake_by_current_state:
+	bpatchx patch25_7,mem_patch25
+	set1 gpio_active_bit,temp
+	call gpio_get_bit
+	nsetflag true,gpio_active_bit,temp
+
+//temp [4:0]=GPIO number, 0-31, [7]=0, low active
+gpio_set_wake:
+	bpatchx patch26_0,mem_patch26
+	sub temp,UI_BUTTON_GPIO_DISABLE,null
+	rtn zero
+	isolate0 gpio_active_bit,temp
+	and temp,0x1f,queue
+	fetch 4,mem_gpio_wakeup_low
+	qsetflag true,pdata
+	store 4,mem_gpio_wakeup_low
+	fetch 4,mem_gpio_wakeup_high
+	nqsetflag true,pdata
+	store 4,mem_gpio_wakeup_high
+	rtn
+	
+//temp [4:0]=GPIO number, 0-31, [7]=0, low active
+gpio_clr_wake:
+	bpatchx patch26_1,mem_patch26
+	sub temp,UI_BUTTON_GPIO_DISABLE,null
+	rtn zero
+	isolate0 gpio_active_bit,temp
+	and temp,0x1f,queue
+	fetch 4,mem_gpio_wakeup_low
+	qset0 pdata
+	store 4,mem_gpio_wakeup_low
+	fetch 4,mem_gpio_wakeup_high
+	qset0 pdata
+	store 4,mem_gpio_wakeup_high
+	rtn
+
+gpio_config_input_nowake:
+	call gpio_clr_wake
+	branch gpio_config_input_without_wake
+
+//temp [4:0]=GPIO number, 0-31, [7]=0, low active
+gpio_config_input:
+	sub temp,UI_BUTTON_GPIO_DISABLE,null
+	rtn zero
+	ncall gpio_set_wake,wake
+gpio_config_input_without_wake:
+	call gpio_addr
+	setarg 0
+	isolate1 gpio_active_bit,temp
+	nsetflag true,6,pdata
+	setflag true,7,pdata
+	branch gpio_write
+
+//temp is gpio number, return true if gpio active
+gpio_get_bit:
+	arg core_gpio_in,contw
+	and temp,0x07,queue
+	rshift3 temp,pdata
+	and_into 3,pdata
+	iadd contw,contw
+	ifetch 1,contw
+	isolate1 gpio_active_bit,temp
+	branch gpio_get_bit_reverse,true
+	qisolate0 pdata
+	rtn
+gpio_get_bit_reverse:
+	qisolate1 pdata
+	rtn
+
+//temp [5:0]=GPIO number, 0-39, [7]=0, low active. set gpio to inactive state
+gpio_out_inactive:
+	sub temp,UI_BUTTON_GPIO_DISABLE,null
+	rtn zero
+	isolate1 gpio_active_bit,null
+	branch gpio_out_flag
+
+gpio_config_output:
+gpio_out_active:
+	sub temp,UI_BUTTON_GPIO_DISABLE,null
+	rtn zero
+	isolate0 gpio_active_bit,null
+
+//temp is gpio number,  [7]=1,set out equa true flag if gpio active
+gpio_out_flag:
+	setarg 0
+	nsetflag true,gpio_active_bit,pdata
+	ixor temp,temp
+
+//temp is gpio number,0-31, [7]=out bit value
+gpio_out:
+	call gpio_addr
+	setarg gpcfg_output_high
+	isolate1 gpio_active_bit,temp
+	setflag true,0,pdata
+	branch gpio_write
+
+//check output status
+gpio_check_active:
+	call gpio_addr
+	ifetch 1,contw
+	bbit1 0,gpio_check_active_high
+	isolate0 gpio_active_bit,temp
+	rtn
+gpio_check_active_high:
+	isolate0 gpio_active_bit,temp
+	rtn
+
+gpio_set_analog:
+	call gpio_addr
+	setarg gpcfg_no_ie
+gpio_write:
+	istore 1,contw
+	rtn
+
+gpio_set_high_impedance:
+	call gpio_addr
+	setarg gpcfg_high_impedance
+	branch gpio_write
+
+//set all unused gpio to pull down mode to save power
+gpio_pd_idle:
+	arg core_gpio_conf,contr
+	arg 40,loopcnt
+gpio_pd_idle_loop:
+	ifetch 1,contr
+	nbranch gpio_pd_idle_configured,blank
+	setarg 0x80
+	add contr,-1,contw
+	istore 1,contw
+gpio_pd_idle_configured:
+	loop gpio_pd_idle_loop
+	rtn
+
+gpio_addr:
+	and temp,0x3f,pdata
+	arg core_gpio_conf,contw
+	iadd contw,contw
+	rtn
+
+gpio_config_param:
+	and pdata,0xff,temp
+	rshift8 pdata,pdata
+	branch gpio_config_function_int
+
+//pdata: gpio number bit7=1, temp: function type
+gpio_config_function:
+	rtnbit0 gpio_active_bit
+gpio_config_function_int:
+	and_into 0x3f,pdata
+	arg core_gpio_conf,contw
+	iadd contw,contw
+	istoret 1,contw
+	rtn
+
+//temp:gpio num
+gpio_get_config:
+	and_into 0x3f,temp
+	setarg core_gpio_conf
+	iadd temp,contr
+	ifetch 1,contr
+	rtn
+
+gpio_set_before_lpm_common:
+	bpatchx patch26_2,mem_patch26
+	rtn
+	
+	
+neglect2_from_6_pin: //uart
+	 arg 6,queue
+	 branch neglect_2_pin
+neglect4_from_9_pin:
+	 arg 9,queue
+	 branch neglact_4_pin
+neglact4_from_23_pin:
+	 arg 23,queue
+	 branch neglact_4_pin
+neglact2_form_25_pin:
+	 arg 25,queue
+	 branch neglect_2_pin
+neglact2_form_30_pin:
+	 arg 30,queue
+	 branch neglect_2_pin
+neglact2_form_2_pin:
+	 arg 2,queue
+	 branch neglect_2_pin
+neglact_1_pin:
+	arg 1,loopcnt
+	branch neglect_pin_loop
+neglact_4_pin:
+	 arg 4,loopcnt
+	 branch neglect_pin_loop
+neglect_2_pin:
+	 arg 2,loopcnt
+neglect_pin_loop:
+	 qset0 rega
+	 increase 1,queue
+	 loop neglect_pin_loop
+	 rtn
+
+
+
+/*************************************ADC*************************************/
+
+dpll_en_check:
+	fetch 1,core_clkpll_ctrl0
+	and_into 0x03,pdata			// reg clkpll_ctrl0[1:0] = 2鈥檅11
+	bne 0x03,enable_blank
+	fetch 1,core_clkpll_ctrl1
+	and_into 0x7f,pdata			// reg clkpll_ctrl1[6:0] = 6鈥檅111111
+	bne 0x7f,enable_blank
+	branch disable_blank
+
+measure_adc_en:
+	call dpll_en_check
+	call dpll_en,blank
+	fetch 1,core_clkpll_ctrl2
+	set1 2,pdata				//da_clkpll_clk2adc48m_en
+	store 1,core_clkpll_ctrl2
+
+	//step1
+	fetch 1,core_rf_ldo_cfg6	// reg rf_ldo_cfg6 [2:0] = 3’b101
+	or_into 0x07,pdata
+	and_into 0xfd,pdata
+	store 1,core_rf_ldo_cfg6
+
+	//step2
+	fetch 1,core_rf_ldo_en0		// reg rf_ldo_en0[3:2] = 2’b11
+	or_into 0x0c,pdata
+	store 1,core_rf_ldo_en0
+	fetch 1,core_rf_ldo_en1		// reg rf_ldo_en1[2] = 1’b1
+	set1 2,pdata
+	store 1,core_rf_ldo_en1
+	nop 120
+
+	//step3
+	fetch 1,core_rx_en0			// reg rx_en0[3:1] = 3’b011
+	and_into 0xf1,pdata
+	or_into 0x06,pdata
+	store 1,core_rx_en0
+	fetch 1,core_rx_en1			//reg rx_en1[4:0] = 5’b00000
+	and_into 0xe0,pdata
+	store 1,core_rx_en1
+	fetch 1,core_gpadc_ctrl		// reg gpadc_ctrl[6:0] = 7’b0000001
+	and_into 0x80,pdata
+	or_into 0x01,pdata
+	store 1,core_gpadc_ctrl
+	nop 120
+
+	//setp4
+	jam 0,core_rf_ldo_cfg4		// reg rf_ldo_cfg4[7:0] = 8’b00000000
+	fetch 1,core_rf_ldo_cfg5	// reg rf_ldo_cfg5[5:4] = 2’b01
+	set1 4,pdata
+	set0 5,pdata
+	store 1,core_rf_ldo_cfg5
+	rtn
+
+
+//mem_adc_config_flag 0:vinlpm 1:Hvin 2: GPIO
+adc_init_data:
+	bpatchx patch26_3,mem_patch26
+
+//	call load_adc_init
+
+	rtn	
+
+adc_set_mode:
+	fetch 1,mem_adc_config_flag
+	beq ADC_CONFIG_VINLPM,adc_check_vinlpm
+	beq ADC_CONFIG_HVIN,adc_check_hvin
+	beq ADC_CONFIG_GPIO,adc_check_gpio
+	rtn
+adc_check_vinlpm:
+	jam 0x50,core_gpadc_ctrl	//read VINLPM voltage directly	
+	branch read_adc
+adc_check_hvin:
+	jam 0x48,core_gpadc_ctrl	//read HVIN voltage directly
+	branch read_adc
+adc_check_gpio:
+	fetch 1,mem_adc_channel
+	lshift3 pdata,pdata
+	store 1,core_gpadc_ctrl	
+	branch read_adc
+read_adc:
+	bpatchx patch26_4,mem_patch26
+	call measure_adc_en
+	fetch 1,core_uart_baud+1
+	set1 7,pdata
+	store 1,core_uart_baud+1 	
+	nop 5000
+	fetcht 2,core_adc_sum
+	fetch 1,core_uart_baud+1
+	set0 7,pdata
+	store 1,core_uart_baud+1
+	storet 2,mem_adc_current_value
+	rtn
+
+vdd_calculate_by_mode:
+	bpatchx patch26_5,mem_patch26
+	fetch 1,mem_adc_config_flag
+	beq ADC_CONFIG_VINLPM,vdd_calculate_vinlpm
+	beq ADC_CONFIG_HVIN,vdd_calculate_hvin
+	beq ADC_CONFIG_GPIO,vdd_calculate_io
+	rtn
+
+vdd_calculate_vinlpm:
+	fetch 2,mem_3v_adc_vinlpm_data
+	fetcht 2,mem_2v_adc_vinlpm_data
+	arg 200,regc
+	branch vdd_calculate
+
+vdd_calculate_hvin:
+	fetch 2,mem_5v_adc_hvin_data
+	fetcht 2,mem_3v_adc_hvin_data
+	arg 100,regc
+	branch vdd_calculate
+
+vdd_calculate_io:
+	fetch 2,mem_1v_adc_io_data
+	fetcht 2,mem_3v_adc_io_data
+	arg 50,regc
+	branch vdd_calculate
+	
+vdd_calculate:
+	isub temp,rega
+	fetch 2,mem_adc_current_value
+	isub temp,pdata
+	nbranch vdd_calculate1,positive
+	fetcht 2,mem_reference_voltage
+	imul32 temp,regb
+	copy regc,pdata
+	imul32 rega,pdata
+	iadd regb,pdata
+vdd_calculate2:
+	idiv rega
+	call wait_div_end
+	quotient pdata	
+	rtn
+
+vdd_calculate1:
+	copy temp,pdata
+	fetcht 2,mem_adc_current_value
+	isub temp,pdata
+	isub rega,null
+	call vdd_calculate3,positive
+	fetcht 2,mem_reference_voltage
+	imul32 temp,regb
+	copy regc,pdata
+	imul32 rega,pdata
+	isub regb,pdata
+	branch vdd_calculate2
+
+//  mem_adc_current_value - mem_3v_adc_io_data >= mem_1v_adc_io_data - mem_3v_adc_io_data
+vdd_calculate3:	
+	copy rega,pdata
+	rtn
+
+/*	typedef struct
+*	{
+*		uint16 full_vol
+*		uint16 empty_vol
+*		uint16 low_vol
+*		uint16 now_vol
+*	}bat_calculate;
+*/
+//out:	pdata->bat percent
+adc_bat_percent_lowpower_out:
+	ifetch 8,rega
+	store 8,mem_pdatatemp
+	fetch 2,mem_pdatatemp
+	fetcht 2,mem_pdatatemp+2
+	isub temp,rega
+	fetch 2,mem_pdatatemp+6
+	isub temp,regb
+	fetcht 2,mem_pdatatemp+4
+	isub temp,null
+	ncall adc_set_low_power_flag,positive
+	mul32 regb,100,pdata
+	idiv rega
+	call wait_div_end
+	quotient pdata
+	call adc_set_no_power_flag,blank
+	rtn
+adc_set_low_power_flag:
+	fetch 1,mem_adc_power_flag
+	set1 0,pdata
+	store 1,mem_adc_power_flag
+	rtn
+
+adc_clear_low_power_flag:
+	fetch 1,mem_adc_power_flag
+	set0 0,pdata
+	store 1,mem_adc_power_flag
+	rtn	
+	
+adc_set_no_power_flag:
+	fetcht 1,mem_adc_power_flag
+	set1 1,temp
+	storet 1,mem_adc_power_flag
+	rtn
+
+adc_clear_no_power_flag:
+	fetcht 1,mem_adc_power_flag
+	set0 1,temp
+	storet 1,mem_adc_power_flag
+	rtn	
+
+
+
+/****************************************key scan***************************************/
+keyscan_key_init:
+	fetch 2,mem_key_num_ptr
+	ifetch 1,pdata
+keyscan_key_init_next:
+	rtn blank
+	copy pdata,loopcnt
+//	copy contr,rega
+	fetch 2,mem_keyscan_ptr
+	increase 3,pdata	//mem_key_conf0_pin
+	copy pdata,rega
+keyscan_key_init_lp1:
+	ifetcht 1, rega
+	call gpio_config_input
+	increase KEY_CONF_STRUCT_LEN,rega
+	loop keyscan_key_init_lp1
+keyscan_key_init_end:
+	rtn
+	
+keyscan_scan_key:
+	fetch 2,mem_keyscan_ptr
+	increase 3,pdata	//mem_key_conf0_pin
+	copy pdata,rega
+//	arg mem_key_conf0_pin,rega
+	force 0,regb
+	jam 0,mem_key_value_temp
+keyscan_scan_key_lp1:
+	ifetcht 1, rega
+	call gpio_get_bit
+	bpatchx patch26_6,mem_patch26
+	fetch 2, mem_key_value_temp
+	copy regb,queue
+	qsetflag true,pdata
+	store 2, mem_key_value_temp
+	increase KEY_CONF_STRUCT_LEN,rega
+	increase 1,regb
+	fetch 2,mem_key_num_ptr
+	ifetch 1,pdata
+keyscan_scan_key_lp1_next:
+	ixor regb,null
+	nbranch keyscan_scan_key_lp1,zero
+	fetch 2,mem_key_value_temp
+	fetcht 2,mem_key_value
+	ixor temp,null
+	rtn zero
+	enable user
+	rtn
+
+keyscan_process_lpm_before:
+	fetch 2,mem_key_num_ptr
+	ifetch 1,pdata
+keyscan_process_lpm_before_next:
+	rtn blank
+	copy pdata,loopcnt
+	fetch 2,mem_keyscan_ptr 
+	increase 3,pdata	//mem_key_conf0_pin
+	copy pdata,rega
+keyscan_process_lpm_before_lp1:
+	ifetcht 1, rega
+	call gpio_set_wake_by_current_state
+	increase KEY_CONF_STRUCT_LEN,rega
+	loop keyscan_process_lpm_before_lp1
+keyscan_process_lpm_before_end:
+	rtn
+
+keyscan_key_process:
+	arg key_scan_timer,queue
+	call timer_check
+	nrtn blank
+	setarg 0x20
+	arg key_scan_timer,queue
+	call timer_init
+	disable user
+	call keyscan_process_lpm_before
+	bpatchx patch26_7,mem_patch26
+	fetch 2,mem_key_num_ptr
+	ifetch 1,pdata
+keyscan_key_process_next:
+	rtn blank
+	call keyscan_scan_key
+	nbranch lpm_button_clean_wake_lock,user
+	call lpm_button_get_wake_lock
+	disable user
+	fetch 2, mem_key_value_temp
+	store 2,mem_key_value_temp4
+	jam 0,mem_key_value_temp6
+	force 0,queue
+keyscan_key_lp1:
+	fetch 2, mem_key_value
+	rshift pdata,temp
+	storet 2,mem_key_value
+	and pdata,0x01,pdata
+	fetcht 2, mem_key_value_temp4
+	and temp,0x01,rega
+	rshift temp,temp
+	storet 2,mem_key_value_temp4
+	ixor rega,null
+	ncall keyscan_send_key_data,zero
+	fetch 2,mem_key_num_ptr
+	ifetch 1,pdata
+keyscan_key_lp1_next:
+	fetcht 1, mem_key_value_temp6
+	increase 1,temp
+	storet 1, mem_key_value_temp6
+	copy temp,queue
+	ixor queue,null
+	nbranch keyscan_key_lp1,zero
+	fetch 2,mem_key_value_temp
+	store 2, mem_key_value
+	rtn
+keyscan_send_key_data:
+	bpatchx patch27_0,mem_patch27
+	fetch 2,mem_keyscan_ptr
+	increase 1,pdata
+	ifetch 2,pdata
+	branch callback_func
+
+
+/*************************************pwm*************************************/
+
+//rega:clk select(0:system clk; 1:system clk undivied; 2:lpo)
+/*rega:clk select
+			0x00:select system clock 12M;
+			0x40:select undivied system clock 24M/48M;
+			0x80:select lpo clock:33K
+*/
+pwm_init:
+	fetch 1,core_clksel
+	ior rega,pdata
+	store 1,core_clksel
+	fetch 2,core_clkoff
+	set0 CLOCK_OFF_PWM,pdata
+	store 2,core_clkoff
+delay_nop100:
+	nop 100
+	rtn
+
+/*	typedef struct
+*	{
+*		uint8 gpio_num
+*		uint8 pwm_channel
+*		uint24 frequency
+*		uint8 duty_cycle   //0-100
+*	}PWM_Style;
+	addr: mem_pdatatemp
+*/
+pwm_clk_set:
+	fetch 1,core_clksel
+	bbit1 6,pwm_24m_clk_set
+	bbit1 7,pwm_33k_clk_set
+pwm_12m_clk_set:
+	setarg PWM_12MHZ
+	rtn
+pwm_24m_clk_set:
+	setarg PWM_24MHZ
+	rtn
+pwm_33k_clk_set:
+	setarg PWM_33KHZ
+	rtn
+/*
+	mem_pdatatemp+1:
+	bit0~bit2:pwm_channel
+	bit4:pwm_init_value(1:high;0:low)
+*/
+pwm_cont_set:
+	fetch 1,mem_pdatatemp+1
+	bbit1 4,pwm_cont_set1
+	bbit0 4,pwm_cont_set0
+	rtn
+pwm_cont_set1:
+	enable user
+	and pdata,0x0f,queue
+	call pwm_set_value
+	quotient regb
+	copy temp,pdata
+	isub regb,rega
+	rtn
+
+pwm_cont_set0:
+	disable user
+	and pdata,0x0f,queue
+	call pwm_set_value
+	quotient rega
+	copy temp,pdata
+	isub rega,regb
+	rtn
+
+pwm_set_value:
+	fetch 1,core_pwm_init
+   	qsetflag user,pdata
+	store 1,core_pwm_init
+	rtn
+
+pwm_out_set:
+	fetcht 3,mem_pdatatemp+2
+	call pwm_clk_set
+	idiv temp
+	call wait_div_end
+	quotient temp
+	fetch 1,mem_pdatatemp+5
+	imul32 temp,pdata
+	div pdata,100
+	call wait_div_end
+	call pwm_cont_set
+	fetch 1,mem_pdatatemp+1
+	call pwm_duty_cycle_set
+	fetch 1,mem_pdatatemp
+	fetcht 1,mem_pdatatemp+1
+	and_into 0x0f,temp
+	lshift8 temp,temp
+	ior temp,pdata
+	branch pwm_enable
+
+//rega:pcnt ;regb:ncnt ;pdata:pwm channel select
+pwm_duty_cycle_set:
+	and_into 0x0f,pdata
+	arg core_pwm_pcnt0,contw
+	mul32 pdata,4,pdata
+	iadd contw,contw
+	copy rega,pdata
+	istore 2,contw
+	copy regb,pdata
+	istore 2,contw
+	rtn
+
+
+//pdata:gpio select & pwm channel select
+/*********************************************
+setarg 0x0108
+0x01:pwm channel select
+0x08:gpio select
+*********************************************/
+pwm_enable:
+	enable user
+	call pwm_srst_set
+	branch pwm_gpio_set
+pwm_disable:
+	disable user
+	call pwm_select_channel
+pwm_gpio_set:
+	copy temp,pdata
+	lshift8 pdata,pdata
+	add queue,gpcfg_pwm_out0,temp
+	ior temp,pdata
+	call gpio_config_param
+pwm_set_select:
+	fetch 1,core_pwm_en
+	jam 0x00,core_pwm_en
+	nop 1200
+   	qsetflag user,pdata
+   	store 1,core_pwm_en
+	rtn
+pwm_select_channel:
+	copy pdata,temp
+	rshift8 pdata,pdata
+	copy pdata,queue
+	rtn
+	
+//pwm immediately stop set
+pwm_srst_powerdown:
+	disable user
+pwm_srst_set:
+	call pwm_select_channel
+	fetch 1,core_pwm_srst
+   	nqsetflag user,pdata
+   	store 1,core_pwm_srst
+	branch pwm_gpio_set
+
+/*************WATCH DOG API*************************/
+/*
+	function name:wdt_init_config 
+	input:kick dog time (pdata)
+*/
+wdt_init_config:
+	arg 0x2710,temp
+	imul32 temp,pdata
+	arg 0x1312d,temp
+	idiv temp
+	call wait_div_end
+	quotient temp
+	setarg 2048
+	isub temp,pdata
+	copy pdata,temp
+	and_into 0x0f,temp
+	storet 1,core_write_wdt2
+	copy pdata,temp
+	rshift4 temp,temp
+	storet 1,core_write_wdt
+	rtn
+
+wdt_set_enable:
+	enable user
+	branch wdt_init_set
+wdt_set_disable:
+	disable user
+wdt_init_set:
+	fetch 1,core_config
+   	setflag user,3,pdata
+	store 1,core_config
+	rtn
+
+/*************NEC API*************************/
+/*
+	function name:nec_init_config 
+	input:
+		pdata is nec buffer address
+		bit[0-15]:rx start memory address
+		bit[16-31]:rx ending memory address
+		temp is nec control config
+		E.M 0x31 is 12M system clock is 2us temp
+*/
+nec61212_init:
+	arg FUN_NEC_ENABLE|FUN_NEC_CLK_DIVIDE_24,temp
+	
+
+nec_init_config:
+	store 4,core_nec_start_addr
+	store 2,core_nec_rptr
+	storet 1,core_nec_control
+	rtn
+
+//return:pdata is buffer size
+nec_check_rxbuff_size:
+	fetch 2,core_nec_rxitem
+	rtn
+/*	fetcht 2,core_nec_rptr
+	fetch 2,core_nec_wptr
+	isub temp,pdata
+	rtn positive
+	sub pdata,0,rega
+	fetcht 2,core_nec_start_addr
+	fetch 2,core_nec_end_addr
+	pincrease 1
+	isub temp,pdata
+	isub rega,pdata
+	rtn
+*/
+
+nec_prepare_read:
+	fetchr contu,2,core_nec_rptr
+	fetchr contus,2,core_nec_start_addr
+	fetchr contue,2,core_nec_end_addr
+	rtn
+
+nec_read_done:
+	storer contu,2,core_nec_rptr
+	rtn
+
+//regc is callback function
+//output
+//user is disable mean data stop
+//rege is 0 mean repeat
+//rege is no zero mean data
+nec_parse_nec61212:
+	call enable_user
+	arg 0,rege
+	call nec_check_rxbuff_size
+	beq 2,nec_parse_nec61212_check_timeout
+	sub pdata,4,null
+	rtn positive
+	call nec_prepare_read
+	ifetcht 2,contu
+	setarg NEC61212_DATA2REPEAT_TIME
+	call nec_check_pulse_range_legal_default_deviation
+	nbranch nec_parse_nec61212_check_repeat_data,positive
+	copy regd,temp
+	setarg NEC61212_REPEAT2REPEAT_TIME
+	call nec_check_pulse_range_legal_default_deviation
+	nbranch nec_parse_nec61212_check_repeat_data,positive
+	
+	copy regd,temp
+	setarg NEC61212_BOOT_CODE_START_TIME
+	call nec_check_pulse_range_legal_default_deviation
+	branch nec_parse_nec61212_error_data,positive
+	ifetcht 2,contu
+	setarg NEC61212_BOOT_CODE_END_TIME
+	call nec_check_pulse_range_legal_default_deviation
+	branch nec_parse_nec61212_error_data,positive
+	call nec_check_rxbuff_size
+	sub pdata,133,null
+	rtn positive
+	arg 32,loopcnt
+nec_parse_nec61212_data:
+	ifetcht 2,contu
+	setarg NEC61212_DATA_BIT_1_START_TIME
+	call nec_check_pulse_range_legal_default_deviation
+	branch nec_parse_nec61212_error_data,positive
+	ifetcht 2,contu
+	setarg NEC61212_DATA_BIT_1_END_TIME
+	call nec_check_pulse_range_legal_default_deviation
+	nbranch nec_parse_nec61212_add_bit1,positive
+	copy regd,temp
+	setarg NEC61212_DATA_BIT_0_END_TIME
+	call nec_check_pulse_range_legal_default_deviation
+	nbranch nec_parse_nec61212_add_bit0,positive
+
+
+nec_parse_nec61212_error_data:
+	copy regd,temp
+	setarg NEC61212_TIMEOUT_TIME
+	isub temp,null
+	branch nec_parse_nec61212_check_timeout_cb,zero
+	branch nec_read_done
+
+nec_parse_nec61212_add_bit1:
+	set1 32,rege
+nec_parse_nec61212_add_bit0:
+	rshift rege,rege
+	loop nec_parse_nec61212_data
+	branch nec_parse_nec61212_check_stop_bit
+
+nec_parse_nec61212_check_repeat_data:
+	call nec_check_rxbuff_size
+	sub pdata,7,null
+	rtn positive
+	ifetcht 2,contu
+	setarg NEC61212_REPEAT_START_TIME
+	call nec_check_pulse_range_legal_default_deviation
+	branch nec_parse_nec61212_error_data,positive
+	ifetcht 2,contu
+	setarg NEC61212_REPEAT_END_TIME
+	call nec_check_pulse_range_legal_default_deviation
+	branch nec_parse_nec61212_error_data,positive
+nec_parse_nec61212_check_stop_bit:
+	ifetcht 2,contu
+	setarg NEC61212_STOP_TIME
+	call nec_check_pulse_range_legal_default_deviation
+	branch nec_parse_nec61212_error_data,positive
+	call nec_read_done
+	copy regc,pdata
+	branch callback_func
+
+nec_parse_nec61212_check_timeout:
+	call nec_prepare_read
+	ifetcht 2,contu
+	setarg NEC61212_TIMEOUT_TIME
+	isub temp,null
+	nrtn zero
+nec_parse_nec61212_check_timeout_cb:
+	call nec_read_done
+	call disable_user
+	copy regc,pdata
+	branch callback_func
+
+
+
+//检查数据是否合法，宽度范围
+//输入:temp 当前实际检查到的时间 2us为单位
+//pdata 理论时间，us为单位
+nec_check_pulse_range_legal_default_deviation:
+	arg 10,regb
+
+//检查数据是否合法，宽度范围
+//输入:temp 当前实际检查到的时间 2us为单位
+//pdata 理论时间，us为单位
+//regb允许偏差值，百分比
+// |temp-pdata| / pdata < regb
+//输出:positive is 1 mean error
+//0 mean true
+nec_check_pulse_range_legal:
+	copy temp,regd
+	imul32 regb,regb		//换算成实际偏差
+	lshift temp,temp		//时间单位换算成us
+	isub temp,rega
+	ncall nec_check_pulse_range_legal_data_negative,positive
+	mul32 rega,100,pdata
+	isub regb,null
+	rtn
+
+nec_check_pulse_range_legal_data_negative:
+	sub rega,0,rega
+	rtn
+
+
+
+select_system_clk_24M:
+	jam SYSTEM_CLK_24M,mem_system_clk
+	jam clksel_dpll_24M,core_clksel
+	setarg 7499
+	store 2,core_halfslot
+calc_new_param:
+	arg 11,loopcnt
+	arg mem_param_tx_setup,rega
+calc_new_param_loop:
+	ifetch 2,rega
+	lshift pdata,pdata
+	istore 2,rega
+	increase 2,rega
+	loop calc_new_param_loop
+	rtn
+
+calc_new_le_time:
+	lshift stop_watch,stop_watch
+	rtn
+
+select_system_clk_12M_xtal:
+	jam clksel_xtal,core_clksel
+select_system_clk_12M_common:
+	jam SYSTEM_CLK_12M,mem_system_clk
+	setarg 3749
+	store 2,core_halfslot
+	rtn
+
+select_system_clk_12M_dpll:
+	jam clksel_dpll,core_clksel
+	branch select_system_clk_12M_common
+	
+
+/*****************************50HZ*****************************/
+/*
+(input):
+pdata:ac data buf start address
+temp:ac data buf length
+mem_ac_detect_gpio:choice gpio[0-19]
+mem_ac_detect_control:[7:2]ac detect clk divide number,[15:8]ac detect window (ms)
+
+(output):
+true=1,  50hz single disappear true=0,50hz detected
+
+*/
+ac_50hz_check:
+	store 2,core_ac_saddr
+	storet 1,core_ac_buf_len
+	fetch 1,mem_ac_detect_gpio
+	arg gpcfg_ac_input,temp
+	call gpio_config_function_int
+	fetch 2,mem_ac_detect_control  
+	set1 0,pdata                 //ac detect enable[0]
+	store 2,core_ac_ctrl
+ac_50hz_check_wait:		
+	fetch 1,core_perf_status
+	isolate1 6,pdata
+	rtn 
+
+	
+
+
+
Index: program/peripherals_test/ac_50hz_test.prog
===================================================================
--- /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/program/peripherals_test/ac_50hz_test.prog	(nonexistent)
+++ /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/program/peripherals_test/ac_50hz_test.prog	(working copy)
@@ -0,0 +1,22 @@
+
+p_50hz_init: 
+	jam 0x19,core_gpio_conf+2
+	jam 0x3e,core_gpio_conf+3	
+         jam 06,core_ac_buf_len
+	jam 0x00,core_ac_saddr	
+	jam 0x01,core_ac_saddr+1	
+	jam 20,core_ac_ctrl+1
+	jam 0x31,core_ac_ctrl	
+p_50hz_check:
+ //        call ice_break
+	fetch 1,core_perf_status
+	isolate1 6,pdata	
+	branch p_50hz_exit,true	
+	jam 0x3e,core_gpio_conf+3	
+	branch p_50hz_check
+p_50hz_exit: 
+	jam 0x3f,core_gpio_conf+3
+	branch p_50hz_check
+	
+
+
Index: program/peripherals_test/gpio_test.prog
===================================================================
--- /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/program/peripherals_test/gpio_test.prog	(nonexistent)
+++ /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/program/peripherals_test/gpio_test.prog	(working copy)
@@ -0,0 +1,25 @@
+p_gpio_test:
+	arg 20,loopcnt
+	arg 0,rega
+p_gpio_test_loop:
+	copy rega,pdata
+	increase 1,rega
+	sub rega,20,null
+	call ice_break,zero
+	arg gpcfg_output_high,temp
+	call gpio_config_function_int
+	call delay_10ms
+	loop p_gpio_test_loop
+	branch assert
+	rtn
+
+
+
+
+
+
+
+
+
+
+
Index: program/peripherals_test/iic_test.prog
===================================================================
--- /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/program/peripherals_test/iic_test.prog	(nonexistent)
+++ /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/program/peripherals_test/iic_test.prog	(working copy)
@@ -0,0 +1,573 @@
+p_iicd_init_25k:
+	jam 236,core_iicd_scl_low
+ 	jam 236,core_iicd_scl_high
+	jam 118,core_iicd_start_setup
+	jam 118,core_iicd_start_hold
+	jam 118,core_iicd_stop_setup
+	jam 118,core_iicd_data_setup
+	jam 0,core_iicd_data_hold
+	branch iicd_init_pin
+p_iicd_init_50k:
+	jam 116,core_iicd_scl_low
+ 	jam 116,core_iicd_scl_high
+	jam 58,core_iicd_start_setup
+	jam 58,core_iicd_start_hold
+	jam 58,core_iicd_stop_setup
+	jam 58,core_iicd_data_setup
+	jam 0,core_iicd_data_hold
+	branch iicd_init_pin
+p_iicd_init_100k:
+	jam 56,core_iicd_scl_low
+ 	jam 56,core_iicd_scl_high
+	jam 28,core_iicd_start_setup
+	jam 28,core_iicd_start_hold
+	jam 28,core_iicd_stop_setup
+	jam 28,core_iicd_data_setup
+	jam 0,core_iicd_data_hold
+	branch iicd_init_pin
+p_iicd_init_200k:
+	jam 26,core_iicd_scl_low
+ 	jam 26,core_iicd_scl_high
+	jam 12,core_iicd_start_setup
+	jam 12,core_iicd_start_hold
+	jam 12,core_iicd_stop_setup
+	jam 24,core_iicd_data_setup
+	jam 0,core_iicd_data_hold
+	branch iicd_init_pin
+p_iicd_init_400k:
+	jam 11,core_iicd_scl_low
+ 	jam 11,core_iicd_scl_high
+	jam 6,core_iicd_start_setup
+	jam 6,core_iicd_start_hold
+	jam 6,core_iicd_stop_setup
+	jam 11,core_iicd_data_setup
+	jam 0,core_iicd_data_hold
+	branch iicd_init_pin
+p_iicd_init_600k:
+	jam 6,core_iicd_scl_low
+ 	jam 6,core_iicd_scl_high
+	jam 3,core_iicd_start_setup
+	jam 3,core_iicd_start_hold
+	jam 3,core_iicd_stop_setup
+	jam 6,core_iicd_data_setup
+	jam 0,core_iicd_data_hold
+	branch iicd_init_pin
+p_iicd_init_750k:
+	jam 4,core_iicd_scl_low
+ 	jam 4,core_iicd_scl_high
+	jam 2,core_iicd_start_setup
+	jam 2,core_iicd_start_hold
+	jam 2,core_iicd_stop_setup
+	jam 4,core_iicd_data_setup
+	jam 0,core_iicd_data_hold
+	branch iicd_init_pin
+p_iicd_init_860k:
+	jam 3,core_iicd_scl_low
+ 	jam 3,core_iicd_scl_high
+	jam 1,core_iicd_start_setup
+	jam 1,core_iicd_start_hold
+	jam 1,core_iicd_stop_setup
+	jam 3,core_iicd_data_setup
+	jam 0,core_iicd_data_hold
+	branch iicd_init_pin
+
+//2Kb
+p_iic_eeprom_2k_test:
+	setarg 0x20
+	store 2,mem_iic_test_loopcnt
+	setarg 0
+	store 2,mem_iic_test_offset
+	branch p_iic_eeprom_test_loop
+
+//128K
+p_iic_eeprom_128k_test:
+	setarg 0x200
+	store 2,mem_iic_test_loopcnt
+	setarg 0
+	store 2,mem_iic_test_offset
+p_iic_eeprom_test_loop:	
+	arg 32,temp
+	isolate1 mark_eeprom_size,mark
+	call p_iic_2k_page_write,true
+	fetch 2,mem_iic_test_offset
+	copy pdata,regb
+	arg mem_iic_test_txbuf1,rega	//00
+	call iicd_write_eep_data
+	call delay_10ms
+
+	arg 32,temp
+	isolate1 mark_eeprom_size,mark
+	call p_iic_2k_page_write,true
+	fetch 2,mem_iic_test_offset
+	copy pdata,regb
+	arg mem_iic_test_rxbuf,rega
+	call iicd_read_eep_data
+
+	call delay_10ms
+	
+	fetch 3,core_iicd_remain
+	store 3,0x4fd0
+	arg mem_iic_test_rxbuf,contr
+	arg 0x4fe0,contw
+	arg 0x20,loopcnt
+	call memcpy
+
+	arg 32,loopcnt
+	isolate1 mark_eeprom_size,mark
+	call p_iic_2k_page_write_loopcnt,true	
+	arg mem_iic_test_txbuf1,rega
+	arg mem_iic_test_rxbuf,regb
+	call string_compare
+	ncall p_break_00,zero
+
+
+	arg 32,temp
+	isolate1 mark_eeprom_size,mark
+	call p_iic_2k_page_write,true
+	fetch 2,mem_iic_test_offset
+	copy pdata,regb
+	arg mem_iic_test_txbuf2,rega	//ff
+	call iicd_write_eep_data
+	call delay_10ms
+
+	arg 32,temp
+	isolate1 mark_eeprom_size,mark
+	call p_iic_2k_page_write,true
+	fetch 2,mem_iic_test_offset
+	copy pdata,regb
+	arg mem_iic_test_rxbuf,rega
+	call iicd_read_eep_data
+	call delay_10ms
+
+	fetch 3,core_iicd_remain
+	store 3,0x4fd0
+	arg mem_iic_test_rxbuf,contr
+	arg 0x4fe0,contw
+	arg 0x20,loopcnt
+	call memcpy
+
+	arg 32,loopcnt
+	isolate1 mark_eeprom_size,mark
+	call p_iic_2k_page_write_loopcnt,true
+	arg mem_iic_test_txbuf2,rega
+	arg mem_iic_test_rxbuf,regb
+	call string_compare
+	ncall p_break_ff,zero
+	
+	fetch 2,mem_iic_test_offset
+	isolate1 mark_eeprom_size,mark
+	ncall p_iic_128k_offset,true
+	call p_iic_2k_offset,true
+	store 2,mem_iic_test_offset
+
+	fetch 2,mem_iic_test_loopcnt
+	pincrease -1
+	store 2,mem_iic_test_loopcnt
+	nbranch p_iic_eeprom_test_loop,blank
+	rtn
+
+p_iic_2k_page_write:
+	arg 8,temp
+	rtn
+p_iic_2k_page_write_loopcnt:
+	arg 8,loopcnt
+	rtn
+
+p_iic_128k_offset:
+	pincrease 32
+	rtn
+p_iic_2k_offset:
+	pincrease 8
+	rtn	
+
+
+p_savelist2:
+	store 2,mem_pdatatemp
+	fetch 2,mem_seq
+	rtnbit1 9
+	lshift pdata,pdata
+	arg 0x4c00,contw
+	iadd contw,contw
+	fetch 2,mem_pdatatemp
+	istore 2,contw
+	fetch 2,mem_seq
+	increase 1,pdata
+	store 2,mem_seq
+	arg 0x1f0,temp
+	isub temp,null
+	rtn
+
+p_break_00:
+	call ice_break
+	arg 0x0000,temp
+	fetch 1,core_iicd_scl_low
+	ior temp,pdata
+	branch p_savelist2
+
+p_break_ff:
+	call ice_break
+	arg 0xff00,temp
+	fetch 1,core_iicd_scl_low
+	ior temp,pdata
+	branch p_savelist2
+
+
+p_iic_test_128k:		//5*2 = 10
+	setarg 0
+	store 2,mem_eeprom_base
+	call clear_eeprom_size_2k
+	jam gpcfg_output_low,core_gpio_conf
+
+	call p_iicd_init_25k
+	jam IIC_TEST_CNT,mem_iic_test_loopcnt2
+p_iic_test_128k_loop25k:
+	call p_iic_eeprom_128k_test
+	fetch 1,mem_iic_test_loopcnt2
+	pincrease -1
+	store 1,mem_iic_test_loopcnt2
+	nbranch p_iic_test_128k_loop25k,blank
+
+	call p_iicd_init_50k
+	jam IIC_TEST_CNT,mem_iic_test_loopcnt2
+p_iic_test_128k_loop50k:
+	call p_iic_eeprom_128k_test
+	fetch 1,mem_iic_test_loopcnt2
+	pincrease -1
+	store 1,mem_iic_test_loopcnt2
+	nbranch p_iic_test_128k_loop50k,blank
+
+	call p_iicd_init_100k
+	jam IIC_TEST_CNT,mem_iic_test_loopcnt2
+p_iic_test_128k_loop100k:
+	call p_iic_eeprom_128k_test
+	fetch 1,mem_iic_test_loopcnt2
+	pincrease -1
+	store 1,mem_iic_test_loopcnt2
+	nbranch p_iic_test_128k_loop100k,blank
+
+	call p_iicd_init_200k
+	jam IIC_TEST_CNT,mem_iic_test_loopcnt2
+p_iic_test_128k_loop200k:
+	call p_iic_eeprom_128k_test
+	fetch 1,mem_iic_test_loopcnt2
+	pincrease -1
+	store 1,mem_iic_test_loopcnt2
+	nbranch p_iic_test_128k_loop200k,blank
+
+	call p_iicd_init_400k
+	jam IIC_TEST_CNT,mem_iic_test_loopcnt2
+p_iic_test_128k_loop400k:
+	call p_iic_eeprom_128k_test
+	fetch 1,mem_iic_test_loopcnt2
+	pincrease -1
+	store 1,mem_iic_test_loopcnt2
+	nbranch p_iic_test_128k_loop400k,blank
+
+	call p_iicd_init_600k
+	jam IIC_TEST_CNT,mem_iic_test_loopcnt2
+p_iic_test_128k_loop600k:
+	call p_iic_eeprom_128k_test
+	fetch 1,mem_iic_test_loopcnt2
+	pincrease -1
+	store 1,mem_iic_test_loopcnt2
+	nbranch p_iic_test_128k_loop600k,blank
+
+	call p_iicd_init_750k
+	jam IIC_TEST_CNT,mem_iic_test_loopcnt2
+p_iic_test_128k_loop750k:
+	call p_iic_eeprom_128k_test
+	fetch 1,mem_iic_test_loopcnt2
+	pincrease -1
+	store 1,mem_iic_test_loopcnt2
+	nbranch p_iic_test_128k_loop750k,blank
+
+	call p_iicd_init_860k
+	jam IIC_TEST_CNT,mem_iic_test_loopcnt2
+p_iic_test_128k_loop860k:
+	call p_iic_eeprom_128k_test
+	fetch 1,mem_iic_test_loopcnt2
+	pincrease -1
+	store 1,mem_iic_test_loopcnt2
+	nbranch p_iic_test_128k_loop860k,blank
+
+//	call ice_break
+	rtn
+
+p_iic_test_2k:
+	setarg 0
+	store 2,mem_eeprom_base
+	call set_eeprom_size_2k
+	jam gpcfg_output_low,core_gpio_conf
+
+	call p_iicd_init_25k
+	jam IIC_TEST_CNT,mem_iic_test_loopcnt2
+p_iic_test_2k_loop25k:
+	call p_iic_eeprom_2k_test
+	fetch 1,mem_iic_test_loopcnt2
+	pincrease -1
+	store 1,mem_iic_test_loopcnt2
+	nbranch p_iic_test_2k_loop25k,blank
+
+	call p_iicd_init_50k
+	jam IIC_TEST_CNT,mem_iic_test_loopcnt2
+p_iic_test_2k_loop50k:
+	call p_iic_eeprom_2k_test
+	fetch 1,mem_iic_test_loopcnt2
+	pincrease -1
+	store 1,mem_iic_test_loopcnt2
+	nbranch p_iic_test_2k_loop50k,blank
+
+	call p_iicd_init_100k
+	jam IIC_TEST_CNT,mem_iic_test_loopcnt2
+p_iic_test_2k_loop100k:
+	call p_iic_eeprom_2k_test
+	fetch 1,mem_iic_test_loopcnt2
+	pincrease -1
+	store 1,mem_iic_test_loopcnt2
+	nbranch p_iic_test_2k_loop100k,blank
+
+	call p_iicd_init_200k
+	jam IIC_TEST_CNT,mem_iic_test_loopcnt2
+p_iic_test_2k_loop200k:
+	call p_iic_eeprom_2k_test
+	fetch 1,mem_iic_test_loopcnt2
+	pincrease -1
+	store 1,mem_iic_test_loopcnt2
+	nbranch p_iic_test_2k_loop200k,blank
+
+	call p_iicd_init_400k
+	jam IIC_TEST_CNT,mem_iic_test_loopcnt2
+p_iic_test_2k_loop400k:
+	call p_iic_eeprom_2k_test
+	fetch 1,mem_iic_test_loopcnt2
+	pincrease -1
+	store 1,mem_iic_test_loopcnt2
+	nbranch p_iic_test_2k_loop400k,blank
+
+	call p_iicd_init_600k
+	jam IIC_TEST_CNT,mem_iic_test_loopcnt2
+p_iic_test_2k_loop600k:
+	call p_iic_eeprom_2k_test
+	fetch 1,mem_iic_test_loopcnt2
+	pincrease -1
+	store 1,mem_iic_test_loopcnt2
+	nbranch p_iic_test_2k_loop600k,blank
+
+	call p_iicd_init_750k
+	jam IIC_TEST_CNT,mem_iic_test_loopcnt2
+p_iic_test_2k_loop750k:
+	call p_iic_eeprom_2k_test
+	fetch 1,mem_iic_test_loopcnt2
+	pincrease -1
+	store 1,mem_iic_test_loopcnt2
+	nbranch p_iic_test_2k_loop750k,blank
+
+	call p_iicd_init_860k
+	jam IIC_TEST_CNT,mem_iic_test_loopcnt2
+p_iic_test_2k_loop860k:
+	call p_iic_eeprom_2k_test
+	fetch 1,mem_iic_test_loopcnt2
+	pincrease -1
+	store 1,mem_iic_test_loopcnt2
+	nbranch p_iic_test_2k_loop860k,blank
+
+//	call ice_break
+	rtn
+
+
+delay_100ms:
+	call delay_10ms
+	call delay_10ms
+	call delay_10ms
+	call delay_10ms
+	call delay_10ms
+delay_50ms:	
+	call delay_10ms
+	call delay_10ms
+	call delay_10ms
+	call delay_10ms
+	branch delay_10ms
+
+/***************iic memory test****************/
+//clear_mem_5a:
+//	deposit loopcnt
+//	rtn blank
+//	setarg 0xa5
+//clear_mem_loop_5a:
+//	istore 1,contw
+//	loop clear_mem_loop_5a
+//	rtn
+
+//p_iic_memory_test:
+//	setarg 0
+//	store 2,mem_eeprom_base
+//	call clear_eeprom_size_2k
+//	jam gpcfg_output_low,core_gpio_conf
+
+//	call p_iicd_init_400k
+//	jam IIC_TEST_CNT,mem_iic_test_loopcnt2
+//p_iic_memory_test_loop:
+//	call p_iic_memory_test_nopatchmem
+//	fetch 1,mem_iic_test_loopcnt2
+//	pincrease -1
+//	store 1,mem_iic_test_loopcnt2
+//	nbranch p_iic_memory_test_loop,blank
+//	call ice_break
+//	rtn
+
+//p_iic_memory_test_nopatchmem:
+//	arg 0xffd,temp
+//	arg 0,regb
+//	arg 0x03,rega	//0x0003-0x0fff --> 0x1003-0x2000
+//	call iicd_write_eep_data
+
+//	call delay_100ms
+
+//	arg 0xffd,temp
+//	arg 0,regb
+//	arg 0x1003,rega
+//	call iicd_read_eep_data
+
+//	call delay_100ms
+
+//	arg 0xffd,loopcnt
+//	arg 0x03,rega
+//	arg 0x1003,regb
+//	call string_compare
+//	ncall ice_break,zero
+
+//	arg 0xffd,temp
+//	arg 0x2000,regb
+//	arg 0x1003,rega	//0x1003-0x2000 --> 0x0003-0x0fff
+//	call iicd_write_eep_data
+//	
+//	call delay_100ms
+
+//	arg 0xffd,temp
+//	arg 0x2000,regb
+//	arg 0x03,rega
+//	call iicd_read_eep_data
+
+//	call delay_100ms
+
+//	arg 0xffd,loopcnt
+//	arg 0x03,rega
+//	arg 0x1003,regb
+//	call string_compare
+//	ncall ice_break,zero
+
+
+//	arg 0x7e0,temp
+//	arg 0,regb
+//	arg 0x4040,rega	//0x4040-0x481f --> 0x4820-0x4fff 
+//	call iicd_write_eep_data
+//	
+//	call delay_100ms
+
+//	arg 0x7e0,temp
+//	arg 0,regb
+//	arg 0x4820,rega
+//	call iicd_read_eep_data
+
+//	call delay_100ms
+
+//	arg 0x7e0,loopcnt
+//	arg 0x4040,rega
+//	arg 0x4820,regb
+//	call string_compare
+//	ncall ice_break,zero
+
+//	arg 0x7e0,temp
+//	arg 0x2000,regb
+//	arg 0x4820,rega	//0x4820-0x4fff --> 0x4040-0x481f 
+//	call iicd_write_eep_data
+//	
+//	call delay_100ms
+
+//	arg 0x7e0,temp
+//	arg 0x2000,regb
+//	arg 0x4040,rega
+//	call iicd_read_eep_data
+
+//	call delay_100ms
+
+//	arg 0x7e0,loopcnt
+//	arg 0x4040,rega
+//	arg 0x4820,regb
+//	call string_compare
+//	ncall ice_break,zero
+
+//	rtn
+
+/***************iic memory test****************/
+
+
+/***************iic camera test****************/
+
+p_camera_mclk_init:
+	jam 0x05,mem_camera_pwm_conf		//pwm gpio5
+	jam 0x01,mem_camera_pwm_conf+1		//pwm channel1
+	jam 0x80,mem_camera_pwm_conf+2		//frequency 3MHz
+	jam 0x8d,mem_camera_pwm_conf+3
+	jam 0x5b,mem_camera_pwm_conf+4
+	jam 0x32,mem_camera_pwm_conf+5		//duty cycle 50%
+	arg 0,rega 							//sys clk 12mhz
+	call pwm_init
+	fetch 6,mem_camera_pwm_conf
+	store 6,mem_pdatatemp
+	branch pwm_out_set
+
+p_camera_RW_test:
+	call p_camera_mclk_init	//master clk:3MHz
+	call p_iicd_init_100k
+	jam 0x3e,0x8073	//gpio_power_down
+	jam 0x3f,0x8074	//gpio_reset
+	call p_camera_read_id
+	call p_camera_write_reg1
+	branch p_camera_read_reg1
+
+p_camera_write_reg1:	
+	jam 0x42,mem_camera_txbuf	//write addr
+	jam 0x01,mem_camera_txbuf+1	//register
+	jam 0xa6,mem_camera_txbuf+2	//data
+	arg mem_camera_txbuf,rega
+	arg 3,temp
+	branch iic_write_data
+
+p_camera_read_reg1:
+	jam 0x42,mem_camera_txbuf	//write addr
+	jam 0x01,mem_camera_txbuf+1	//register
+	jam 0x43,mem_camera_txbuf+2	//read addr
+	arg 1,temp
+	arg mem_camera_rxbuf,rega	//read buf
+	setarg mem_camera_txbuf
+	store 2,core_iicd_txaddr
+	setarg 3
+	store 2,core_iicd_txlen
+	storet 2,core_iicd_rxlen
+	storer rega,2,core_iicd_rxaddr
+	jam 3,core_iicd_ctrl
+	jam iicd_start,core_misc_ctrl
+	branch wait_iicd_done
+	
+p_camera_read_id:
+	jam 0x42,mem_camera_txbuf	//write addr
+	jam 0x00,mem_camera_txbuf+1	//register
+	jam 0x43,mem_camera_txbuf+2	//read addr
+	arg 1,temp
+	arg mem_camera_id,rega	//read buf
+	setarg mem_camera_txbuf
+	store 2,core_iicd_txaddr
+	setarg 3
+	store 2,core_iicd_txlen
+	storet 2,core_iicd_rxlen
+	storer rega,2,core_iicd_rxaddr
+	jam 3,core_iicd_ctrl
+	jam iicd_start,core_misc_ctrl
+	branch wait_iicd_done
+
+/***************iic camera test****************/
+
+
+
+
Index: program/peripherals_test/nec_test.prog
===================================================================
--- /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/program/peripherals_test/nec_test.prog	(nonexistent)
+++ /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/program/peripherals_test/nec_test.prog	(working copy)
@@ -0,0 +1,51 @@
+
+	call pf_fpga_init
+	call mesh_uart_init
+	setarg 0x1800
+	store 2,mem_pdatatemp
+	setarg 0x1c00
+	istore 2,contw
+	fetch 4,mem_pdatatemp
+	call nec61212_init
+	jam gpcfg_nec_input,core_gpio_conf+2
+	arg 0xff,regb
+	arg 1,loopcnt
+	call logging_tx_debug
+p_nec_loop:
+	arg p_nec_cb_test,regc
+	call nec_parse_nec61212
+	branch p_nec_loop
+
+pf_fpga_init:
+ 	jam clksel_xtal,core_clksel
+	rtn
+
+p_nec_cb_test:
+	nbranch p_nec_stop_packet,user
+	call uartb_prepare_tx
+	copy rege,pdata
+	branch p_nec_cb_test_repeat,blank
+	arg 0x11,temp
+	istoret 1,contwu
+	store 4,mem_nec_receive_data
+	jam 1,mem_nec_receive_flag
+	istore 4,contwu
+	branch uartb_send
+
+p_nec_cb_test_repeat:
+	fetch 1,mem_nec_receive_flag
+	rtn blank
+	arg 0x22,temp
+	istoret 1,contwu
+	fetch 4,mem_nec_receive_data
+	istore 4,contwu
+	branch uartb_send
+	
+
+p_nec_stop_packet:
+	jam 0,mem_nec_receive_flag
+	call uartb_prepare_tx
+	setarg -1
+	istore 4,contwu
+	branch uartb_send
+
Index: program/peripherals_test/spi_test.prog
===================================================================
--- /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/program/peripherals_test/spi_test.prog	(nonexistent)
+++ /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/program/peripherals_test/spi_test.prog	(working copy)
@@ -0,0 +1,207 @@
+
+p_param_check_pass:
+	call ice_break
+	branch p_param_check_pass
+
+p_spid_flash_init:
+	call p_generate_spi_test_data_buff
+	fetch 1,core_clkoff+1
+	set0 4,pdata
+	store 1,core_clkoff+1
+	rtn
+p_spid2_flash_init:
+	call p_generate_spi2_test_data_buff
+	fetch 1,core_clkoff+1
+	set0 1,pdata
+	store 1,core_clkoff+1
+	rtn
+
+//spi test code start
+p_spid_flash_rw_test:
+	arg mem_spi_ctrl_test_param_buff,pdata
+	store 2,mem_spi_test_param_buff_addr
+p_spid_flash_rw_test_param_check:
+	fetch 2,mem_spi_test_param_buff_addr
+	copy pdata,rega
+	ifetch 1,rega
+	beq 0xff,p_param_check_pass
+	store 1,core_spid_ctrl
+	setarg 0x64
+	store 1,core_spid_delay
+//	jam 0x04,core_clksel		//clock select:04 ctystal,05 dpll, 06 rc
+p_spid_flash_start:
+	call p_spid_flash_init
+p_spid_flash_rw_test_loop:
+	call p_spid_erase_sector	
+	arg 100,loopcnt
+	copy loopcnt,regc
+p_spid_flash_rw_loop:
+	copy loopcnt,regc
+	call spid_unlock_flash
+	call p_spid_write_flash
+	call p_spid_read_flash
+	call p_spid_flash_base_increase
+	call p_flash_data_compare
+	loop p_spid_flash_rw_loop
+	fetch 2,mem_spi_test_param_buff_addr
+	increase 1,pdata
+	store 2,mem_spi_test_param_buff_addr
+	branch p_spid_flash_rw_test_param_check
+
+p_spid_erase_sector:
+	fetch 1,mem_spi_test_erase_count
+	increase 1,pdata
+	store 1,mem_spi_test_erase_count
+	setarg 0
+	store 3,mem_flash_test_base
+	fetch 3,mem_flash_test_base
+	store 3,mem_spi_write_addr
+	branch spid_flash_erase_sector
+p_spid_write_flash:
+	fetch 1,mem_spi_test_write_count
+	increase 1,pdata
+	store 1,mem_spi_test_write_count
+	arg 64,temp
+	arg mem_spi_test_data_buff,rega
+	fetch 3,mem_flash_test_base
+	branch spid_write_flash
+p_spid_read_flash:
+	fetch 1,mem_spi_test_read_count
+	increase 1,pdata
+	store 1,mem_spi_test_read_count
+	arg 64,temp
+	fetch 3,mem_flash_test_base
+	arg mem_spi_test_read_buff,rega
+	branch spid_read_flash
+p_spid_flash_base_increase:
+	fetch 3,mem_flash_base
+	arg 64,temp
+	iadd temp,pdata
+	store 3,mem_flash_base
+	rtn
+p_generate_spi_test_data_buff:
+	arg mem_spi_test_data_buff,contw
+	arg 32,loopcnt
+p_generate_spi_test_data_buff_loop:
+	fetch 4,mem_spi_test_write_buff
+	istore 4,contw
+	loop p_generate_spi_test_data_buff_loop
+	rtn
+p_flash_data_compare:
+	arg mem_spi_test_data_buff,rega
+	arg mem_spi_test_read_buff,regb
+	arg 64,loopcnt
+	call p_spid_data_compare
+	nbranch p_spid_data_error,blank
+	fetch 3,mem_spi_test_compare_data_count
+	increase 1,pdata
+	store 3,mem_spi_test_compare_data_count
+	copy regc,loopcnt
+	rtn
+p_spid_data_compare:
+	ifetch 1,rega
+	ifetcht 1,regb
+	isub temp,null
+	nrtn zero
+	increase 1,rega
+	increase 1,regb
+	loop p_spid_data_compare
+	force 0,pdata
+	rtn
+p_spid_data_error:
+	call ice_break
+	branch p_spid_data_error
+//spi test code end
+
+//spi2 test code start
+p_spid2_flash_rw_test:
+	arg mem_spi2_ctrl_test_param_buff,pdata
+	store 2,mem_spi2_test_param_buff_addr
+p_spid2_flash_rw_test_param_check:
+	fetch 2,mem_spi2_test_param_buff_addr
+	copy pdata,rega
+	ifetch 1,rega
+	beq 0xff,p_param_check_pass
+	store 1,core_spid2_ctrl
+	jam 0x0a,core_spid2_delay
+//	jam 0x04,core_clksel			//clock select:04 ctystal,05 dpll, 06 rc
+p_spid2_flash_start:
+	call p_spid2_flash_init
+p_spid2_flash_rw_test_loop:
+	call p_spid2_erase_sector	
+	arg 100,loopcnt
+	copy loopcnt,regc
+p_spid2_flash_rw_loop:
+	copy loopcnt,regc
+	call spid2_unlock_flash
+	call p_spid2_write_flash
+	call p_spid2_read_flash
+	call p_spid2_flash_base_increase
+	call p_flash2_data_compare
+	loop p_spid2_flash_rw_loop
+	branch p_spid2_flash_rw_test_param_check
+
+p_spid2_erase_sector:
+	setarg 0
+	store 3,mem_flash_test_base2
+	fetch 3,mem_flash_test_base2
+	store 3,mem_spi2_write_addr
+	branch spid2_flash_erase_sector
+p_spid2_write_flash:
+	fetch 1,mem_spi2_test_write_count
+	increase 1,pdata
+	store 1,mem_spi2_test_write_count
+	arg 64,temp
+	arg mem_spi2_test_data_buff,rega
+	fetch 3,mem_flash_test_base2
+	branch spid2_write_flash
+p_spid2_read_flash:
+	fetch 1,mem_spi2_test_read_count
+	increase 1,pdata
+	store 1,mem_spi2_test_read_count
+	arg 64,temp
+	fetch 3,mem_flash_test_base2
+	arg mem_spi2_test_read_buff,rega
+	branch spid2_read_flash
+p_spid2_flash_base_increase:
+	fetch 3,mem_flash_test_base2
+	arg 64,temp
+	iadd temp,pdata
+	store 3,mem_flash_test_base2
+	rtn
+p_generate_spi2_test_data_buff:
+	arg mem_spi2_test_data_buff,contw
+	arg 16,loopcnt
+p_generate_spi2_test_data_buff_loop:
+	fetch 4,mem_spi2_test_write_buff
+	istore 4,contw
+	loop p_generate_spi2_test_data_buff_loop
+	rtn
+p_flash2_data_compare:
+	arg mem_spi2_test_data_buff,rega
+	arg mem_spi2_test_read_buff,regb
+	arg 64,loopcnt
+	call p_spid2_data_compare
+	nbranch p_spid2_data_error,blank
+	fetch 3,mem_spi2_test_compare_data_count
+	increase 1,pdata
+	store 3,mem_spi2_test_compare_data_count
+	copy regc,loopcnt
+	rtn
+p_spid2_data_error:
+	call ice_break
+	branch p_spid2_data_error
+	
+p_spid2_data_compare:
+p_spid2_string_compare:
+	ifetch 1,rega
+	ifetcht 1,regb
+	isub temp,null
+	nrtn zero
+	increase 1,rega
+	increase 1,regb
+	loop p_spid2_string_compare
+	force 0,pdata
+	rtn
+//spi2 test code end
+
Index: program/peripherals_test/uart_test.prog
===================================================================
--- /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/program/peripherals_test/uart_test.prog	(nonexistent)
+++ /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/program/peripherals_test/uart_test.prog	(working copy)
@@ -0,0 +1,253 @@
+
+
+	
+p_uart_test_init:
+
+	call uart_test_init_uart
+
+p_uart_test_main_loop:
+//	arg 100,loopcnt
+//	call delay_ms_wait
+	call p_uarta_test_receive_packet
+	call p_uartb_test_receive_packet
+	branch p_uart_test_main_loop
+	rtn
+
+p_uarta_test_receive_packet:
+	fetch 1,core_uart_status
+	rtnbit1 UART_STATUS_RX_FIFO_EMPTY
+	copy pdata,regb
+	call uarta_prepare_rx
+	ifetch 1,contru
+	bne 0x01,p_uart_test_hci_in_excp
+	fetch 2,core_uart_rxitems
+	sub pdata,2,null
+	rtn positive
+	ifetch 1,contru
+	store 1,mem_uart_test_opcode
+	ifetcht 1,contru
+	copy contru,rega
+	storet 1,mem_uart_test_len
+	add temp,3,temp
+	fetch 2,core_uart_rxitems
+	isub temp,temp
+	nrtn positive
+	call p_uart_test_hci_cmd_control
+	branch p_uart_test_hci_dicard_packet
+
+p_uart_test_hci_in_excp:
+	call delay_10ms
+	call uarta_prepare_tx_register_push
+	setarg 0x000f02
+	istore 3,contwu
+	call uarta_send_register_pop
+	branch p_uart_test_hci_release_except
+
+p_uart_test_hci_release_except:
+	call uarta_prepare_rx
+	fetch 2,core_uart_rxitems
+	iadd contru,contru
+	branch uarta_rxdone
+
+p_uart_test_hci_dicard_packet:
+	call uarta_prepare_rx
+	increase 2,contru
+	ifetch 1,contru
+	iadd contru,contru
+	branch uarta_rxdone
+
+p_uart_test_hci_cmd_control:
+	fetch 1,mem_uart_test_opcode
+	beq 0xfe,p_uart_test_hci_cmd_fe
+	beq 0xfd,p_uart_test_hci_cmd_modify_config
+	beq 0xfc,p_uart_test_hci_cmd_modify_parity
+	beq 0xfb,p_uart_test_hci_cmd_close_parity
+	beq 0xfa,p_uart_test_hci_cmd_set_stop_bit_size
+	rtn
+
+p_uart_test_hci_cmd_set_stop_bit_size:
+	fetch 1,core_uart_ctrl
+	and pdata,0xf7,pdata
+	ifetcht 1,contru
+	ior temp,pdata
+	store 1,core_uart_ctrl
+	rtn
+
+p_uart_test_hci_cmd_modify_parity:
+	fetch 1,core_uart_ctrl
+	and pdata,0xf9,pdata
+	ifetcht 1,contru
+	ior temp,pdata
+	store 1,core_uart_ctrl
+	rtn
+
+p_uart_test_hci_cmd_close_parity:
+	fetch 1,core_uart_ctrl
+	set0 BIT_UART_CONTROL_DATA_LENGTH,pdata
+	store 1,core_uart_ctrl
+	rtn
+
+p_uart_test_hci_cmd_modify_config:
+	fetchr loopcnt,1,mem_uart_test_len
+	call string2dec_from_uart
+	branch uarta_calc_baud_rate_config
+
+p_uart_test_hci_cmd_fe:
+	fetchr loopcnt,1,mem_uart_test_len
+	arg mem_uart_test_rx_buffer,contw
+	call uart_copy_rx_bytes_fast
+	call uarta_prepare_tx_register_push
+	setarg 0xfe01
+	istore 2,contwu
+	fetch 1,mem_uart_test_len
+	istore 1,contwu
+	copy pdata,loopcnt
+	arg mem_uart_test_rx_buffer,contr
+	call uart_copy_tx_bytes_fast
+	call uarta_send_register_pop
+	rtn
+
+
+
+p_uartb_test_receive_packet:
+	fetch 1,core_uart_status
+	rtnbit1 UARTB_STATUS_RX_FIFO_EMPTY
+	copy pdata,regb
+	call uartb_prepare_rx
+	ifetch 1,contru
+	bne 0x01,p_uartb_test_hci_in_excp
+	fetch 2,core_uartb_rxitems
+	sub pdata,2,null
+	rtn positive
+	ifetch 1,contru
+	store 1,mem_uart_test_opcode
+	ifetcht 1,contru
+	copy contru,rega
+	storet 1,mem_uart_test_len
+	add temp,3,temp
+	fetch 2,core_uartb_rxitems
+	isub temp,temp
+	nrtn positive
+	call p_uartb_test_hci_cmd_control
+	branch p_uartb_test_hci_dicard_packet
+
+p_uartb_test_hci_in_excp:
+	call delay_10ms
+	call uartb_prepare_tx_register_push
+	setarg 0x000f02
+	istore 3,contwu
+	call uartb_send_register_pop
+	branch p_uartb_test_hci_release_except
+
+p_uartb_test_hci_release_except:
+	call uartb_prepare_rx
+	fetch 2,core_uartb_rxitems
+	iadd contru,contru
+	branch uartb_rxdone
+
+p_uartb_test_hci_dicard_packet:
+	call uartb_prepare_rx
+	increase 2,contru
+	ifetch 1,contru
+	iadd contru,contru
+	branch uartb_rxdone
+
+p_uartb_test_hci_cmd_control:
+	fetch 1,mem_uart_test_opcode
+	beq 0xfe,p_uartb_test_hci_cmd_fe
+	beq 0xfd,p_uartb_test_hci_cmd_modify_config
+	beq 0xfc,p_uartb_test_hci_cmd_modify_parity
+	beq 0xfb,p_uartb_test_hci_cmd_close_parity
+	beq 0xfa,p_uartb_test_hci_cmd_set_stop_bit_size
+	rtn
+
+p_uartb_test_hci_cmd_set_stop_bit_size:
+	fetch 1,core_uartb_ctrl
+	and pdata,0xf7,pdata
+	ifetcht 1,contru
+	ior temp,pdata
+	store 1,core_uartb_ctrl
+	rtn
+
+p_uartb_test_hci_cmd_modify_parity:
+	fetch 1,core_uartb_ctrl
+	and pdata,0xf9,pdata
+	ifetcht 1,contru
+	ior temp,pdata
+	store 1,core_uartb_ctrl
+	rtn
+
+p_uartb_test_hci_cmd_close_parity:
+	fetch 1,core_uartb_ctrl
+	set0 BIT_UART_CONTROL_DATA_LENGTH,pdata
+	store 1,core_uartb_ctrl
+	rtn
+
+p_uartb_test_hci_cmd_modify_config:
+	fetchr loopcnt,1,mem_uart_test_len
+	call string2dec_from_uart
+	branch uartb_calc_baud_rate_config
+
+p_uartb_test_hci_cmd_fe:
+	fetchr loopcnt,1,mem_uart_test_len
+	arg mem_uart_test_rx_buffer,contw
+	call uart_copy_rx_bytes_fast
+	call uartb_prepare_tx_register_push
+	setarg 0xfe01
+	istore 2,contwu
+	fetch 1,mem_uart_test_len
+	istore 1,contwu
+	copy pdata,loopcnt
+	arg mem_uart_test_rx_buffer,contr
+	call uart_copy_tx_bytes_fast
+	call uartb_send_register_pop
+	rtn
+
+
+
+
+uart_test_init_uart:
+	call uart_test_init_uarta_mem
+	call uart_clock_select_main_freq_crystal
+	arg 115200,temp
+	call uarta_calc_baud_rate_config
+	jam gpcfg_uart_txd,core_gpio_conf
+	jam gpcfg_uart_rxd|gpcfg_pullup,core_gpio_conf+1
+	jam FUN_UART_CONTROL_SETTING_RATE_BAUD| FUN_UART_CONTROL_ENABLE,core_uart_ctrl
+
+	call uart_test_init_uartb_mem
+	call uart_clock_select_main_freq_crystal
+	arg 115200,temp
+	call uartb_calc_baud_rate_config
+	jam gpcfg_uartb_txd,core_gpio_conf+2
+	jam gpcfg_uartb_rxd|gpcfg_pullup,core_gpio_conf+3
+	jam FUN_UART_CONTROL_SETTING_RATE_BAUD| FUN_UART_CONTROL_ENABLE,core_uartb_ctrl
+
+	rtn
+
+uart_test_init_uarta_mem:
+	setarg 0x1c00
+	store 2,mem_uart_test_uarta_rx_start_address
+	setarg 0x1dff
+	istore 2,contw
+	setarg 0x1e00
+	istore 2,contw
+	setarg 0x1fff
+	istore 2,contw
+	call enable_user
+	fetch 8,mem_uart_test_uarta_rx_start_address
+	branch uart_init_dma_mem
+
+uart_test_init_uartb_mem:
+	setarg 0x1800
+	store 2,mem_uart_test_uarta_rx_start_address
+	setarg 0x19ff
+	istore 2,contw
+	setarg 0x1a00
+	istore 2,contw
+	setarg 0x1bff
+	istore 2,contw
+	call disable_user
+	fetch 8,mem_uart_test_uarta_rx_start_address
+	branch uart_init_dma_mem	
+
Index: program/peripherals_test/usb_test.prog
===================================================================
--- /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/program/peripherals_test/usb_test.prog	(nonexistent)
+++ /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/program/peripherals_test/usb_test.prog	(working copy)
@@ -0,0 +1,179 @@
+
+p_usb_test:
+	call p_usb_init
+	branch usb_loop
+
+p_usb_init:
+	setarg mem_usb_txbuf
+	store 2,core_usb_tx_saddr0
+	setarg mem_usb_txbuf1
+	store 2,core_usb_tx_saddr1
+	setarg mem_usb_txbuf2
+	store 2,core_usb_tx_saddr2
+	branch usb_init+1
+usb_loop:
+	nop 10000
+	nop 10000
+	nop 10000
+	nop 10000
+	call p_usb_test_data
+	call usb_isr
+	branch usb_loop
+p_usb_test_data:
+	fetch 1,mem_usb_state
+	rtnne USB_CONNECTED
+	fetch 1,mem_usb_test_cnt
+	increase 1,pdata
+	store 1,mem_usb_test_cnt
+	sub pdata,50,null
+	branch p_x_right,positive
+	sub pdata,100,null
+	branch p_y_up,positive
+	sub pdata,150,null
+	branch p_x_left,positive
+	sub pdata,200,null
+	branch p_y_down,positive
+	rtn
+	
+p_x_right:
+	fetch 1,mem_usb_tx_enable
+	set1 2,pdata
+	store 1,mem_usb_tx_enable
+	jam USB_EP2_MS,mem_usb_ep2_data
+	setarg 1	//report id
+	store 1,mem_usb_mouse_data
+	setarg 0	//key
+	store 1,mem_usb_mouse_data+1
+	setarg 0x05	//x low
+	store 1,mem_usb_mouse_data+2
+	setarg 0	//x high
+	store 1,mem_usb_mouse_data+3
+	setarg 0	//y low
+	store 1,mem_usb_mouse_data+4
+	setarg 0	//y high
+	store 1,mem_usb_mouse_data+5
+	setarg 0	//wheel
+	store 1,mem_usb_mouse_data+6
+	setarg 0	//twheel
+	store 1,mem_usb_mouse_data+7
+	fetch 1,mem_usb_tx_enable
+	set1 1,pdata
+	store 1,mem_usb_tx_enable
+	jam USB_EP1_KB,mem_usb_ep1_data
+	fetch 1,mem_usb_test_kb
+	increase 1,pdata
+	store 1,mem_usb_test_kb
+	beq 1,p_q
+	beq 2,p_q_release
+	rtn
+
+p_q:	
+	jam 0x14,mem_usb_kb_data+3
+	rtn
+p_q_release:	
+	jam 0,mem_usb_kb_data+3
+	jam 0,mem_usb_test_kb
+	rtn
+	
+p_y_up:
+	fetch 1,mem_usb_tx_enable
+	set1 2,pdata
+	store 1,mem_usb_tx_enable
+	jam USB_EP2_MS,mem_usb_ep2_data
+	setarg 1	//report id
+	store 1,mem_usb_mouse_data
+	setarg 0	//key
+	store 1,mem_usb_mouse_data+1
+	setarg 0	//x low
+	store 1,mem_usb_mouse_data+2
+	setarg 0	//x high
+	store 1,mem_usb_mouse_data+3
+	setarg 0x05	//y low
+	store 1,mem_usb_mouse_data+4
+	setarg 0	//y high
+	store 1,mem_usb_mouse_data+5
+	setarg 0	//wheel
+	store 1,mem_usb_mouse_data+6
+	setarg 0	//twheel
+	store 1,mem_usb_mouse_data+7
+	fetch 1,mem_usb_tx_enable
+	set1 1,pdata
+	store 1,mem_usb_tx_enable
+	jam USB_EP1_KB,mem_usb_ep1_data
+	fetch 1,mem_usb_test_kb
+	increase 1,pdata
+	store 1,mem_usb_test_kb
+	beq 1,p_q
+	beq 2,p_q_release
+	rtn
+
+p_x_left:	
+	fetch 1,mem_usb_tx_enable
+	set1 2,pdata
+	store 1,mem_usb_tx_enable
+	jam USB_EP2_MS,mem_usb_ep2_data
+	setarg 1	//report id
+	store 1,mem_usb_mouse_data
+	setarg 0	//key
+	store 1,mem_usb_mouse_data+1
+	setarg 0xfb	//x
+	store 1,mem_usb_mouse_data+2
+	setarg 0xff	//x
+	store 1,mem_usb_mouse_data+3
+	setarg 0	//y low
+	store 1,mem_usb_mouse_data+4
+	setarg 0	//y high
+	store 1,mem_usb_mouse_data+5
+	setarg 0	//wheel
+	store 1,mem_usb_mouse_data+6
+	setarg 0	//twheel
+	store 1,mem_usb_mouse_data+7
+	fetch 1,mem_usb_tx_enable
+	set1 1,pdata
+	store 1,mem_usb_tx_enable
+	jam USB_EP1_KB,mem_usb_ep1_data
+	fetch 1,mem_usb_test_kb
+	increase 1,pdata
+	store 1,mem_usb_test_kb
+	beq 1,p_q
+	beq 2,p_q_release
+	rtn
+
+p_y_down:
+	fetch 1,mem_usb_test_cnt
+	beq 200,p_mem_set0
+	fetch 1,mem_usb_tx_enable
+	set1 2,pdata
+	store 1,mem_usb_tx_enable
+	jam USB_EP2_MS,mem_usb_ep2_data
+	setarg 1	//report id
+	store 1,mem_usb_mouse_data
+	setarg 0	//key
+	store 1,mem_usb_mouse_data+1
+	setarg 0	//x low
+	store 1,mem_usb_mouse_data+2
+	setarg 0	//x high
+	store 1,mem_usb_mouse_data+3
+	setarg 0xfb	//y
+	store 1,mem_usb_mouse_data+4
+	setarg 0xff	//y
+	store 1,mem_usb_mouse_data+5
+	setarg 0	//wheel
+	store 1,mem_usb_mouse_data+6
+	setarg 0	//twheel
+	store 1,mem_usb_mouse_data+7
+
+	fetch 1,mem_usb_tx_enable
+	set1 1,pdata
+	store 1,mem_usb_tx_enable
+	jam USB_EP1_KB,mem_usb_ep1_data
+	fetch 1,mem_usb_test_kb
+	increase 1,pdata
+	store 1,mem_usb_test_kb
+	beq 1,p_q
+	beq 2,p_q_release
+	rtn
+p_mem_set0:
+	jam 0,mem_usb_test_cnt
+	branch p_y_down+2
+
Index: program/rfcomm.prog
===================================================================
--- /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/program/rfcomm.prog	(nonexistent)
+++ /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/program/rfcomm.prog	(working copy)
@@ -0,0 +1,873 @@
+
+ifdef COMPILE_RFCOMM
+rfcomm_init:
+	rtn wake
+	jam 0,mem_rfcomm_send_more_pkt
+	jam BITS9600,memRemoteRPNBitRate        
+	jam DATABITS8,memRemotePRNDataBits      
+	jam 0x11,memRemotePRNXon
+	jam 0x13,memRemotePRNXoff
+	setarg 0
+	store 3,memRemotePRNStopBit
+	store 1,mem_spp_state                  
+	jam 0,memui_reconnect_mode
+	//branch rfcomm_init_spp
+rfcomm_init_spp:
+	setarg 0
+	store 1,mem_spp_state
+	store 1,mem_remote_spp_channel
+	store 1,mem_pn_dlci
+	fetch 1,mem_rfcomm_credit_flag
+	beq CREDIT_ENABLE,rfcomm_init_spp_with_credit
+	jam 0x50,mem_credit_given
+	rtn
+
+rfcomm_init_spp_with_credit:
+	jam 0x00,mem_credit_given
+	rtn
+
+set_CR_bit:
+	or_into 0x02,temp
+	rtn
+
+
+/*below added by koufan*/
+
+/*rfcomm_send */
+
+
+
+	/*rfcomm_calculate_FCS_sabm*/
+	/*input: address in temp*/
+	/*output: FCS in pdata  */
+rfcomm_calculate_FCS_sabm:
+	copy temp,pdata
+	reverse pdata,pdata //address
+	store 1,memFCStemp3
+	force INI_TX_SABM,pdata
+	reverse pdata,pdata
+	store 1,memFCStemp2
+	force 0x01,pdata                        
+	reverse pdata,pdata
+	store 1,memFCStemp1
+	call caculate_fcs
+	copy temp,pdata                        
+	rtn
+rfcomm_calculate_FCS_ua:
+	reverse pdata,pdata //address
+	store 1,memFCStemp3
+	force   RSP_TX_UA, pdata
+	reverse pdata, pdata
+	store   1, memFCStemp2
+	force   0x01, pdata
+	reverse pdata, pdata
+	store   1, memFCStemp1
+	branch caculate_fcs
+	/* FCS return from temp                */
+rfcomm_calculate_FCS_dlci0:
+	fetch 1,mem_rfcomm_initiator
+	branch rfcomm_calculate_FCS_dlci0_res,blank
+	setarg 0x70 //FCS of initiator
+	rtn
+rfcomm_calculate_FCS_dlci0_res:
+	setarg 0xaa//FCS of responder
+	rtn
+	
+rfcomm_save_FCS_uih:
+	reverse pdata, pdata //address 
+	store 1,memFCStemp3                     /* contw distroided                    */
+	force RSP_RX_UIH,pdata 
+	call caculate_UIHdata_fcs
+	fetcht 2,mem_contw_temp
+	copy temp,contw
+	istore 1,contw                      /* save FCS for later use              */
+	copy contw,temp
+	storet 2,mem_contw_temp
+	force RSP_RX_UIH_WDATA,pdata             /* P/F =1 + RSP_RX_UIH                 */
+	call caculate_UIHdata_fcs
+	fetcht 2,mem_contw_temp
+	copy temp,contw
+	istore 1,contw             /* save FCS for later use              */
+	rtn	
+/**********************************************************************/
+/* This subroutine caculates the FCS for UIH data                     */
+/* Input:                                                             */
+/*        the address byte at memFCStemp3(bit reversed), control byte */
+/*        at pdata (not bit reversed)                                 */
+/* Output:                                                            */
+/*        pdata: the FCS                                              */
+/**********************************************************************/  
+caculate_UIHdata_fcs:
+	reverse pdata,pdata
+	store   1,memFCStemp2
+	fetch   2, memFCStemp2                     
+	lshift8 pdata,pdata
+	store 3,mem_mod2div_temp
+	arg     0x107,rega
+	arg 0xf,regb
+	call mod2div
+	xor_into     0xd7, pdata
+	invert  pdata,pdata
+	reverse pdata,pdata
+	rtn
+	
+/**********************************************************************/
+/* This subroutine caculates the FCS                                  */
+/* Input:                                                             */
+/*        the address byte at memFCStemp3, control byte at memFCStemp2*/  
+/*        lenght at memFCStemp1 (all above data are bit reversed)     */
+/* Output:                                                            */
+/*        temp: the FCS                                               */
+/**********************************************************************/     
+caculate_fcs:
+	fetch 3, memFCStemp1                    /* load 3 bytes start at memFCStemp1   */
+	store 3,mem_mod2div_temp
+	arg 0x107,rega
+	arg 0xf,regb  //24bit(memFCStemp1+..+memFCStemp3) - 9bit(rega) = 15bit
+	call mod2div
+	lshift8 pdata,pdata 
+	arg 0x7, regb  //16bit(lshift8 pdata,pdata ) - 9bit(rega) = 7bit
+	call mod2div
+	xor_into     0x2b, pdata		//0x3d
+	invert  pdata, pdata                        
+	reverse pdata, pdata                      /* FCS at pdata                        */
+	copy    pdata, temp
+	rtn
+
+mod2div:
+	arg 0,regc
+	copy regb,loopcnt
+	call right_shift_n // right shift pdata (regB)bit
+	icopy temp
+mod2div_loop:
+	//jam 1,0x1fff
+//mod2div_loop1:
+	//fetch 1,0x1fff
+	//nbranch mod2div_loop1,blank
+	copy temp,pdata
+	lshift regc,regc//quotient
+	bbit0 8, mod2div_not_enough_reduction//the high bit of 0x107
+	ixor rega,temp// temp----remainer
+	increase 1,regc// quotient
+mod2div_not_enough_reduction: //Minuend smaller than Subtrahend
+	lshift temp,temp
+	fetch 3,mem_mod2div_temp
+	increase -1,regb
+	compare 0xff,regb,0xff
+	branch mod2div_end,true
+	copy regb,loopcnt
+	call right_shift_n // right shift pdata (regb)bit
+	isolate1 0,pdata
+	setflag true,0,temp //move a new bit from Dividend(queue) into Minuend(pdata)
+	branch mod2div_loop
+mod2div_end:
+	//output:remainer in pdata
+	rshift  temp,pdata
+	rtn
+
+get_rfcomm_snd_adss:
+	fetcht 1,mem_pn_dlci
+dlci_to_address_cmd:
+	//input DLCI from temp
+	lshift2 temp,temp
+	set1 RFCOMM_ADDRESS_EXT_LEN,temp
+	fetch 1,mem_rfcomm_initiator
+	ncall set_CR_bit,blank
+	storet 1,mem_rfcomm_send_adss
+	rtn
+
+channel_to_dlci:
+	//input channel from temp
+	lshift temp,temp
+	fetch 1,mem_rfcomm_initiator
+	setflag blank,0,temp //direction in dlci
+	//output dlci to temp
+	rtn
+rfcomm_rx_process_DLCI0_sabm:
+	fetcht 1,mem_current_channel //address
+	jam 0xd7,mem_current_fcs //FCS
+	call rfcomm_send_ua
+	fetch 1,mem_rfcomm_state
+	set1 L2CAP_CHANNEL_RFCOMM_ONLY_SABM,pdata
+	set1 L2CAP_CHANNEL_RFCOMM_ONLY_UA,pdata
+	store 1,mem_rfcomm_state
+	jam 0,mem_rfcomm_initiator
+	branch rfcomm_rx_process_end
+rfcomm_rx_process_DLCI0_ua:
+	fetch 1,mem_rfcomm_state
+	set1 L2CAP_CHANNEL_RFCOMM_ONLY_UA,pdata
+	store 1,mem_rfcomm_state
+	branch rfcomm_rx_process_end
+
+	
+rfcomm_rx_process:
+	bpatchx patch27_1,mem_patch27
+	fetch 1,memui_reconnect_mode
+	beq NO_RECONNECTION,rfcomm_rx_process_remote_page
+	branch rfcomm_rx_process_reconn
+
+rfcomm_rx_process_remote_page:
+	fetch 2,mem_l2cap_payload_ptr
+	copy pdata,contr
+	call get_rfcomm_head_struct
+	fetch 1,mem_current_channel
+	beq 0,parse_dlci0_rp
+	branch parse_uih_rp
+parse_dlci0_rp:
+	bpatchx patch27_2,mem_patch27
+	fetch 1,mem_current_frame_type
+	beq RFCOMM_FRAME_TYPE_SABM,rfcomm_rx_process_DLCI0_sabm
+	beq RFCOMM_FRAME_TYPE_UA,rfcomm_rx_process_DLCI0_ua
+	beq RFCOMM_FRAME_TYPE_UIH,parse_DLCI0_rp_uih
+	beq RFCOMM_FRAME_TYPE_DISCONN,parse_uih_rp_spp_disconn_send_event
+	rtn
+
+
+parse_DLCI0_rp_uih:
+	fetch 2,mem_rfcomm_uih_payload_ptr
+	copy pdata,contr
+	call get_rfcomm_uih_head_struct
+	fetch 1,mem_uih_cmd_type
+	beq UIH_PARAM_NEG_CMD,parse_DLCI0_rp_uih_pn_cmd
+	beq UIH_PARAM_NEG_RES,parse_DLCI0_rp_uih_pn_res
+	beq UIH_MODEM_STATUS_CMD,parse_DLCI0_rp_uih_ms_cmd
+	beq UIH_MODEM_STATUS_RES,parse_DLCI0_rp_uih_ms_res
+	beq UIH_PARAM_CMD_REMOVE_PORT,parse_DLCI0_rp_uih_cmd_port	
+	branch rfcomm_rx_process_end
+	
+parse_DLCI0_rp_uih_pn_cmd:
+	call parse_DLCI0_rp_uih_pn_res_common
+
+	branch parse_DLCI0_rp_uih_pn_cmd_spp
+
+parse_DLCI0_rp_uih_pn_cmd_spp:
+	fetch 1,mem_spp_state
+	set1 RFCOMM_CHANNEL_STATE_PN_CMD,pdata
+	set1 RFCOMM_CHANNEL_STATE_PN_RES,pdata
+	store 1,mem_spp_state
+	call rfcomm_send_param_neg_res
+	branch rfcomm_rx_process_end
+	
+parse_DLCI0_rp_uih_pn_res:
+	call parse_DLCI0_rp_uih_pn_res_common
+	branch rfcomm_rx_process_end
+
+parse_DLCI0_rp_uih_pn_res_common:
+	call get_param_payload_ptr
+	branch  get_rfcomm_prarmer_negotiation
+
+get_rfcomm_param_modem_status:
+	call get_param_payload_ptr
+	ifetch 1,contr
+	rshift3 pdata,pdata
+	store 1,mem_ms_channel
+	ifetch 1,contr
+	store 1,mem_ms_param
+	rtn
+
+
+get_rfcomm_head_struct:
+	ifetch 1,contr
+	store 1,mem_current_adss
+	rshift3 pdata,pdata
+	store 1,mem_current_channel
+	ifetch 1,contr
+	store 1,mem_current_frame_type
+get_rfcomm_current_length:
+	call get_rfcomm_length_common
+	storet 2,mem_current_length
+	copy contr,pdata
+	store 2,mem_rfcomm_uih_payload_ptr
+	rtn
+
+get_rfcomm_uih_head_struct:
+	ifetch 1,contr
+	rshift pdata,pdata
+	store 1,mem_uih_cmd_type
+	call get_rfcomm_length_common
+	storet 2,mem_uih_length
+	copy contr,pdata
+	store 2,mem_param_payload_ptr
+	rtn
+
+
+get_param_payload_ptr:
+	fetch 2,mem_param_payload_ptr
+	copy pdata,contr
+	rtn
+
+get_rfcomm_length_common:
+	ifetch 1,contr
+	copy pdata,temp
+	rshift temp,temp
+	rtnbit1 0
+	ifetch 1,contr
+	lshift3 pdata,pdata
+	lshift4 pdata,pdata
+	iadd temp,temp
+	rtn
+
+get_rfcomm_prarmer_negotiation:
+	ifetch 1,contr
+	store 1,mem_pn_dlci
+	ifetch 1,contr
+	store 1,mem_pn_credit_flow_type_info
+	ifetch 1,contr
+	store 1,mem_pn_priority
+	ifetch 1,contr
+	store 1,mem_pn_acknowledg_timer
+	ifetch 2,contr
+	store 2,mem_pn_max_frame_size
+	ifetch 1,contr
+	store 1,mem_pn_max_retrans
+	ifetch 1,contr
+	store 1,mem_remote_credits
+	rtn
+
+
+parse_DLCI0_rp_uih_ms_cmd:
+	call get_rfcomm_param_modem_status
+
+	branch parse_DLCI0_rp_uih_ms_cmd_spp
+
+parse_DLCI0_rp_uih_ms_cmd_spp:
+	fetch 1,mem_spp_state
+	set1 RFCOMM_CHANNEL_STATE_RCV_MS_CMD,pdata
+	set1 RFCOMM_CHANNEL_STATE_SND_MS_RES,pdata
+	store 1,mem_spp_state
+	fetcht 1,mem_pn_dlci
+	lshift2 temp,temp
+	or_into 3,temp
+	call rfcomm_send_modem_status_res
+	jam MORE_PKT_MSC_CMD_SPP,mem_rfcomm_send_more_pkt
+	branch rfcomm_rx_process_end
+	
+parse_DLCI0_rp_uih_ms_res:
+	jam BT_EVT_SPP_CONNECTED,mem_fifo_temp
+	call ui_ipc_send_event
+	call get_rfcomm_param_modem_status
+	fetch 1,mem_ms_channel
+	sub pdata,1,null
+	branch parse_DLCI0_rp_uih_MS_RES_spp,zero
+	branch assert
+parse_DLCI0_rp_uih_ms_res_spp:
+	fetch 1,mem_spp_state
+	set1 RFCOMM_CHANNEL_STATE_RCV_MS_RES,pdata
+	store 1,mem_spp_state
+	branch rfcomm_rx_process_end
+
+parse_DLCI0_rp_uih_cmd_port:
+	call get_param_payload_ptr
+	ifetch 1,contr
+	store 1,mem_rpn_dlci
+	call l2cap_malloc_rfcomm_channel
+	call l2cap_get_rfcomm_tx_buff
+	setarg 0x000e
+	istore 2,contw //l2cap len
+	fetch 2,mem_rfcomm_remote_cid
+	istore 2,contw//cid
+	fetch 1,mem_rfcomm_initiator
+	//setarg 5
+	lshift pdata,pdata
+	set1 0,pdata //ext len
+	istore 1,contw //DLCI0 address
+	bpatchx patch27_3,mem_patch27
+	setarg 0x15ef
+	istore 2,contw
+	setarg 0x1191
+	istore 2,contw
+	//fetch 1,mem_pn_dlci
+	//setarg 0x0b
+	fetch 1,mem_rpn_dlci
+	istore 1,contw //DLCI
+	setarg 0x000007
+	istore 5,contw
+//	setarg 0 //max frame size
+//	istore 2,contw 
+	setarg 0x01 //max retrans
+	istore 2,contw
+//	setarg 0x00
+//	istore 1,contw // init credits
+	call rfcomm_calculate_FCS_dlci0
+	istore 1,contw
+	rtn
+
+
+
+parse_uih_rp:
+	branch parse_uih_rp_spp
+
+parse_uih_rp_spp:
+	bpatchx patch27_4,mem_patch27
+	fetch 1,mem_current_frame_type
+	beq RFCOMM_FRAME_TYPE_UA,parse_uih_rp_spp_ua
+	beq RFCOMM_FRAME_TYPE_SABM,parse_uih_rp_spp_sabm
+	beq RFCOMM_FRAME_TYPE_UIH,parse_uih_spp_uih
+	beq RFCOMM_FRAME_TYPE_UIH_CREDITS,parse_uih_spp_uih_credits
+	beq RFCOMM_FRAME_TYPE_DISCONN,parse_uih_rp_spp_disconn
+	rtn
+parse_uih_rp_spp_ua:
+	fetch 1,mem_spp_state
+	set1 RFCOMM_CHANNEL_STATE_UA,pdata
+	store 1,mem_spp_state
+	branch rfcomm_rx_process_end
+parse_uih_rp_spp_sabm:
+	fetch 1,mem_spp_state
+	set1 RFCOMM_CHANNEL_STATE_UA,pdata
+	set1 RFCOMM_CHANNEL_STATE_SABM,pdata
+	store 1,mem_spp_state
+	fetch 1,mem_current_adss
+	call rfcomm_calculate_FCS_ua
+	store 1,mem_current_fcs
+	call rfcomm_send_ua
+	fetch 1,mem_current_adss
+	rshift2 pdata,pdata
+	store 1,mem_pn_dlci
+	lshift2 pdata,pdata
+	set0 RFCOMM_ADDRESS_CR,pdata
+	set1 RFCOMM_ADDRESS_EXT_LEN,pdata 
+	arg mem_HIUfcs_spp,temp // mem_HIUfcs_HF_WCredits in regb++
+	storet 2,mem_contw_temp
+	call rfcomm_save_FCS_uih
+	branch rfcomm_rx_process_end
+	
+parse_uih_spp_uih_credits:
+	fetch 2,mem_rfcomm_uih_payload_ptr
+	copy pdata,contr
+	increase 1,pdata
+	store 2,mem_rfcomm_uih_payload_ptr
+	ifetch 1,contr //remote credits
+	fetcht 1,mem_remote_credits
+	iadd temp,pdata
+	store 1,mem_remote_credits
+parse_uih_spp_uih:
+	call rfcomm_increase_credit_given
+parse_uih_spp_uih_cont:
+	call get_rfcomm_snd_adss
+	call rfcomm_send_uih_without_payload
+	call spp_process_rx_data
+	branch rfcomm_rx_process_end
+
+parse_uih_rp_spp_disconn_send_event:
+	jam BT_EVT_SPP_DISCONNECTED,mem_fifo_temp
+	call ui_ipc_send_event	
+parse_uih_rp_spp_disconn:
+	call rfcomm_init_spp
+	fetch 1,mem_current_adss
+	call rfcomm_calculate_FCS_ua
+	store 1,mem_current_fcs
+	call rfcomm_send_ua
+	branch rfcomm_rx_process_end
+	
+///////////////////////////////////////////
+///////////////////////////////////////////
+///////////////////////////////////////////
+rfcomm_rx_process_reconn:
+	fetch 2,mem_l2cap_payload_ptr
+	copy pdata,contr
+	call get_rfcomm_head_struct
+	fetch 1,mem_current_channel
+	beq 0,parse_DLCI0_reconn
+	branch parse_uih_reconn
+		
+parse_DLCI0_reconn:
+	bpatchx patch27_5,mem_patch27
+	fetch 1,mem_current_frame_type
+	beq RFCOMM_FRAME_TYPE_SABM,rfcomm_rx_process_DLCI0_sabm
+	beq RFCOMM_FRAME_TYPE_UA,rfcomm_rx_process_DLCI0_ua
+	beq RFCOMM_FRAME_TYPE_UIH,parse_DLCI0_reconn_uih
+	branch rfcomm_rx_process_end
+parse_DLCI0_reconn_uih:
+	fetch 2,mem_rfcomm_uih_payload_ptr
+	copy pdata,contr
+	call get_rfcomm_uih_head_struct
+	fetch 1,mem_uih_cmd_type
+	beq UIH_PARAM_NEG_CMD,parse_DLCI0_reconn_uih_pn_cmd
+	beq UIH_PARAM_NEG_RES,parse_DLCI0_reconn_uih_pn_cmd
+	beq UIH_MODEM_STATUS_CMD,parse_DLCI0_reconn_uih_ms_cmd
+	beq UIH_MODEM_STATUS_RES,parse_DLCI0_reconn_uih_ms_res
+	branch rfcomm_rx_process_end
+
+parse_DLCI0_reconn_uih_pn_cmd:
+	call parse_DLCI0_rp_uih_pn_res_common
+	fetch 1,mem_pn_dlci
+	rshift pdata,pdata
+	fetcht 1,mem_remote_spp_channel
+	isub temp,null
+	branch parse_DLCI0_reconn_uih_pn_cmd_spp,zero
+	branch assert
+parse_DLCI0_reconn_uih_pn_cmd_spp:
+	fetch 1,mem_spp_state
+	set1 RFCOMM_CHANNEL_STATE_PN_RES,pdata
+	store 1,mem_spp_state
+	branch rfcomm_rx_process_end
+
+parse_DLCI0_reconn_uih_ms_cmd:
+	call get_rfcomm_param_modem_status
+	fetch 1,mem_ms_channel
+	fetcht 1,mem_remote_spp_channel
+	isub temp,null
+	branch parse_DLCI0_reconn_uih_ms_cmd_spp,zero
+	branch assert
+	branch rfcomm_rx_process_end
+parse_DLCI0_reconn_uih_ms_cmd_spp:
+	fetch 1,mem_spp_state
+	set1 RFCOMM_CHANNEL_STATE_RCV_MS_CMD,pdata
+	set1 RFCOMM_CHANNEL_STATE_SND_MS_RES,pdata
+	store 1,mem_spp_state
+	fetcht 1,mem_pn_dlci
+	lshift2 temp,temp
+	or_into 3,temp
+	call rfcomm_send_modem_status_res
+	branch rfcomm_rx_process_end
+	
+parse_DLCI0_reconn_uih_ms_res:
+	call get_rfcomm_param_modem_status
+	fetch 1,mem_ms_channel
+	fetcht 1,mem_remote_spp_channel
+	isub temp,null
+	branch parse_DLCI0_reconn_uih_ms_res_spp,zero
+	branch assert
+parse_DLCI0_reconn_uih_ms_res_spp:
+	fetch 1,mem_spp_state
+	set1 RFCOMM_CHANNEL_STATE_RCV_MS_RES,pdata
+	store 1,mem_spp_state
+	branch rfcomm_rx_process_end
+
+parse_uih_reconn:
+	fetch 1,mem_current_channel
+	fetcht 1,mem_remote_spp_channel
+	isub temp,null
+	branch parse_uih_reconn_spp,zero
+	branch assert
+	branch rfcomm_rx_process_end
+
+parse_uih_reconn_spp:
+	fetch 1,mem_current_frame_type
+	beq RFCOMM_FRAME_TYPE_UA,parse_uih_reconn_spp_ua
+	beq RFCOMM_FRAME_TYPE_UIH,parse_uih_spp_uih
+	beq RFCOMM_FRAME_TYPE_UIH_CREDITS,parse_uih_spp_uih_credits
+	beq RFCOMM_FRAME_TYPE_DISCONN,parse_uih_reconn_spp_disconn
+parse_uih_reconn_spp_ua:
+	fetch 1,mem_spp_state
+	set1 RFCOMM_CHANNEL_STATE_UA,pdata
+	store 1,mem_spp_state
+	branch rfcomm_rx_process_end
+parse_uih_reconn_spp_sabm:
+	branch parse_uih_reconn_spp_sabm//loop
+parse_uih_reconn_spp_disconn:
+	branch parse_uih_rp_spp_disconn
+rfcomm_rx_process_end:
+	rtn
+	
+rfcomm_send_more_pkt:
+	fetch 1,mem_rfcomm_send_more_pkt
+	rtn blank
+	beq MORE_PKT_MSC_CMD_SPP,rfcomm_send_more_pkt_msc_cmd_spp
+	branch assert
+	
+rfcomm_send_more_pkt_msc_cmd_spp:
+	jam 0,mem_rfcomm_send_more_pkt
+	call l2cap_malloc_rfcomm_channel
+	arg SPP_SLAVE_CHANNEL,temp
+	fetcht 1,mem_pn_dlci
+	lshift2 temp,temp
+rfcomm_send_more_pkt_msc_cmd_spp0:
+	or_into 0x03,temp
+	arg 0xaa,rega
+	call rfcomm_send_modem_status_cmd
+	call l2cap_get_rfcomm_tx_buff
+	copy contw,contr
+	ifetch 2, contr
+	branch assert,blank
+	rtn
+
+rfcomm_send_sabm:
+	call l2cap_get_rfcomm_tx_buff
+	setarg 0x0004
+	istore 2,contw //l2cap len
+	fetch 2,mem_rfcomm_remote_cid
+	istore 2,contw//cid
+	fetch 1,mem_current_adss
+	istore 1,contw //address
+	bpatchx patch27_6,mem_patch27
+	setarg 0x013f
+	istore 2,contw
+	fetch 1,mem_current_fcs
+	istore 1,contw
+	rtn
+rfcomm_send_ua:
+	call l2cap_malloc_rfcomm_channel
+	call l2cap_get_rfcomm_tx_buff
+	setarg 0x0004
+	istore 2,contw //l2cap len
+	fetch 2,mem_rfcomm_remote_cid
+	istore 2,contw//cid
+	fetch 1,mem_current_adss
+	istore 1,contw //address
+	bpatchx patch27_7,mem_patch27
+	setarg 0x0173
+	istore 2,contw
+	fetch 1,mem_current_fcs
+	istore 1,contw
+	rtn
+rfcomm_send_param_neg_cmd:
+	call l2cap_get_rfcomm_tx_buff
+	setarg 0x000e
+	istore 2,contw //l2cap len
+	fetch 2,mem_rfcomm_remote_cid
+	istore 2,contw//cid
+	fetch 1,mem_rfcomm_initiator
+	lshift pdata,pdata
+	set1 0,pdata //ext len
+	istore 1,contw //DLCI0 address
+	bpatchx patch28_0,mem_patch28
+	setarg 0x15ef
+	istore 2,contw
+	setarg 0x1183
+	istore 2,contw
+	copy temp,pdata //DLCI in temp
+	istore 1,contw
+	setarg 0x0000f0
+	istore 3,contw
+	setarg RFCOMM_MAX_FRAME_SIZE
+	istore 2,contw
+	setarg 0
+	istore 1,contw
+	setarg 0x01		//change here later
+	istore 1,contw
+	call rfcomm_calculate_FCS_dlci0
+	istore 1,contw
+	jam 0x10,mem_credit_given
+	rtn
+rfcomm_send_param_neg_res:
+	call l2cap_malloc_rfcomm_channel
+	call l2cap_get_rfcomm_tx_buff
+	setarg 0x000e
+	istore 2,contw //l2cap len
+	fetch 2,mem_rfcomm_remote_cid
+	istore 2,contw//cid
+	fetch 1,mem_rfcomm_initiator
+	lshift pdata,pdata
+	set1 0,pdata //ext len
+	istore 1,contw //DLCI0 address
+	bpatchx patch28_1,mem_patch28
+	setarg 0x15ef
+	istore 2,contw
+	setarg 0x1181
+	istore 2,contw
+	fetch 1,mem_pn_dlci
+	istore 1,contw //DLCI
+	setarg 0x0000e0
+	istore 3,contw
+	fetch 2,mem_rfcomm_max_frame_size
+	istore 2,contw 
+	setarg 0x00 //max retrans
+	istore 1,contw
+	fetch 1,mem_rfcomm_credit_init_data
+	istore 1,contw // init credits
+	call rfcomm_calculate_FCS_dlci0
+	istore 1,contw
+	rtn
+rfcomm_send_modem_status_cmd:
+	call l2cap_get_rfcomm_tx_buff
+	setarg 0x0008
+	istore 2,contw //l2cap len
+	fetch 2,mem_rfcomm_remote_cid
+	istore 2,contw//cid
+	fetch 1,mem_rfcomm_initiator
+	lshift pdata,pdata
+	set1 0,pdata //ext len
+	istore 1,contw //DLCI0 address
+	bpatchx patch28_2,mem_patch28
+	setarg 0x09ef
+	istore 2,contw
+	setarg 0x05e3
+	istore 2,contw
+	copy temp,pdata //DLCI adress
+	istore 1,contw
+	setarg 0x8d
+	istore 1,contw
+	call rfcomm_calculate_FCS_dlci0
+	istore 1,contw
+	rtn
+
+rfcomm_send_modem_status_res:
+	call l2cap_malloc_rfcomm_channel
+	call l2cap_get_rfcomm_tx_buff
+	setarg 0x0008
+	istore 2,contw //l2cap len
+	fetch 2,mem_rfcomm_remote_cid
+	istore 2,contw//cid
+	copy temp,timeup
+	fetch 1,mem_rfcomm_initiator
+	lshift pdata,pdata
+	set1 0,pdata //ext len
+	istore 1,contw //DLCI0 address
+	bpatchx patch28_3,mem_patch28
+	setarg 0x09ef
+	istore 2,contw
+	setarg 0x05e1
+	istore 2,contw
+	copy timeup,pdata //DLCI address in temp
+	istore 1,contw
+	setarg 0x8d
+	istore 1,contw
+	call rfcomm_calculate_FCS_dlci0
+	istore 1,contw
+	rtn
+
+rfcomm_send_uih_without_payload:
+	bpatchx patch28_4,mem_patch28
+	fetch 1,mem_credit_given
+	rtn blank
+	fetch 2,core_uart_rxitems
+	nrtn blank
+	copy rega,pdata
+	store 1,mem_pdatatemp+1
+	storet 1,mem_pdatatemp
+	call l2cap_malloc_is_fifo_full
+	nrtn blank
+	call l2cap_malloc_rfcomm_channel
+	call l2cap_get_rfcomm_tx_buff
+	setarg 0x05
+	istore 2,contw
+	fetch 2,mem_RFCOMM_remote_CID
+	istore 2,contw
+	fetch 1,mem_rfcomm_send_adss
+	istore 1,contw
+	setarg 0x01ff
+	istore 2,contw
+	fetch 1,mem_credit_given
+	istore 1,contw
+	fetch 1,mem_HIUfcs_SPP_WCredits
+	istore 1,contw
+	jam 0,mem_credit_given
+	rtn
+	
+rfcomm_increase_credit_given:
+	bpatchx patch28_5,mem_patch28
+	fetch 1,mem_rfcomm_credit_flag
+	rtneq CREDIT_ENABLE
+	fetch 2,mem_current_length
+	rtn blank
+	fetch 1,mem_credit_given
+	increase 1,pdata
+	store 1,mem_credit_given
+	rtn
+
+spp_process_rx_data:
+	fetch 2,mem_cb_receive_spp_data
+	branch callback_func
+
+spp_tx_rfcomm_packet:
+	bpatchx patch28_6,mem_patch28
+	//credit
+	fetch 1,mem_remote_credits
+	rtn blank
+	increase -1,pdata
+	store 1,mem_remote_credits
+	fetch 2,mem_pn_max_frame_size
+	fetcht 2,mem_current_packet_length
+	isub temp,null
+	branch ssp_tx_rfcomm_from_uart,positive
+	store 2,mem_current_packet_length
+ssp_tx_rfcomm_from_uart:
+	fetch 1,mem_credit_given
+	branch ssp_tx_rfcomm_from_uart_without_credit,blank
+	jam 1,mem_rfcomm_send_offset
+	fetch 1,mem_HIUfcs_SPP_WCredits
+	store 1,mem_rfcomm_send_fcs
+	setarg RSP_RX_UIH_WDATA
+	store 1,mem_rfcomm_send_frame_type
+	branch ssp_tx_rfcomm_from_uart_common
+ssp_tx_rfcomm_from_uart_without_credit:
+	jam 0,mem_rfcomm_send_offset
+	fetch 1,mem_HIUfcs_SPP
+	store 1,mem_rfcomm_send_fcs
+	setarg RSP_TX_UIH
+	store 1,mem_rfcomm_send_frame_type
+ssp_tx_rfcomm_from_uart_common:
+	bpatchx patch28_7,mem_patch28
+	fetch 2,mem_current_packet_length
+	sub pdata,127,null
+	branch ssp_tx_rfcomm_from_uart_common0,positive
+	fetch 1,mem_rfcomm_send_offset
+	increase 1,pdata
+	store 1,mem_rfcomm_send_offset
+ssp_tx_rfcomm_from_uart_common0:
+	call get_rfcomm_snd_adss
+	fetch 2,mem_current_packet_length
+	increase 8,pdata	//fcs + rfcommhead + l2caphead == 8
+	fetcht 1,mem_rfcomm_send_offset
+	iadd temp,rega
+	//rfcomm payload
+	call l2cap_malloc
+	store 2,mem_rfcomm_tx_buff_ptr
+	increase 4,pdata
+	store 2,mem_rfcomm_tx_payload_ptr
+	copy pdata,contw
+	fetch 1,mem_rfcomm_send_adss
+	istore 1,contw
+	fetch 1,mem_rfcomm_send_frame_type
+	istore 1,contw
+	call ssp_tx_write_length
+	call ssp_tx_write_given_credit
+	bpatchx patch29_0,mem_patch29
+	fetch 2,mem_nl_rx_data_src		//src
+	copy pdata,contu
+	fetch 2,mem_current_packet_length
+	copy pdata,loopcnt
+	call uart_copy_rx_bytes_fast
+	copy contw,temp
+	copy contu,pdata
+	store 2,mem_nl_rx_data_src
+	copy temp,contw	
+	fetch 1,mem_rfcomm_send_fcs
+	istore 1,contw
+	fetch 2,mem_rfcomm_tx_buff_ptr
+	copy pdata,contw
+	fetch 2,mem_current_packet_length
+	fetcht 1,mem_rfcomm_send_offset
+	iadd temp,pdata
+	increase 4,pdata
+	istore 2,contw
+	fetch 2,mem_rfcomm_remote_cid
+	istore 2,contw
+	jam 0,mem_credit_given	//whatever mem_credit_given is set to 0
+	fetch 2,mem_nl_rx_len_all
+	beq 0,module_hci_command_tx_spp_tx_complete
+	jam HCI_NOT_DISCARD_PACKET,mem_module_temp_nl_discard_packet
+	rtn
+
+ssp_tx_write_length:
+	bpatchx patch29_1,mem_patch29
+	fetch 2,mem_current_packet_length
+	sub pdata,0x7f,null
+	nbranch ssp_tx_write_long_packet,positive
+	lshift pdata,pdata
+	set1 0,pdata
+	istore 1,contw
+	rtn
+ssp_tx_write_long_packet:
+	fetch 2,mem_current_packet_length
+	rshift3 pdata,pdata
+	rshift4 pdata,temp
+	and_into 0x7f,pdata
+	lshift pdata,pdata
+	set0 0,pdata
+	istore 1,contw
+	istoret 1,contw
+	rtn
+ssp_tx_write_given_credit:
+	fetch 1,mem_credit_given
+	rtn blank
+	istore 1,contw
+	rtn
+
+	
+
+
+else
+
+endif
Index: program/scheduler.prog
===================================================================
--- /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/program/scheduler.prog	(nonexistent)
+++ /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/program/scheduler.prog	(working copy)
@@ -0,0 +1,460 @@
+scheduler_process:
+	bpatchx patch29_2,mem_patch29
+	call check_51cmd
+	call app_process_bb_event
+	call process_conn_sm
+/* check the connection state sequence byte */
+	bpatchx patch29_3,mem_patch29
+ifdef SIMPLE_PAIRING
+	call sp_calc_sequence
+	call simple_pairing_sequence
+	call master_simple_paring_sequence
+endif
+//return if it is hci mode. 'cause the following is host part.
+//notify BB to tx a l2cap packet
+	call l2cap_malloc_is_fifo_full
+	nrtn blank
+	//for conn to MTK 
+	call l2cap_call_proc_sigal_pending
+	call l2cap_malloc_is_fifo_full
+	nrtn blank
+	bpatchx patch29_4,mem_patch29
+//to generat a new l2cap packet
+	call process_upper_sm
+	call l2cap_send_config_req
+ifdef COMPILE_RFCOMM
+	call rfcomm_send_more_pkt//use this function to send msc_cmd after msc_rep sent
+endif
+scheduler_process0:
+	call scheduler_tx_disconnect_hid //may not used
+	bpatchx patch29_5,mem_patch29
+//	call l2cap_malloc_is_fifo_full
+//	nrtn blank
+	branch app_process_bt
+	
+scheduler_tx_disconnect_hid:
+	fetch 1,mem_CONTROL_tasks		
+	bbit1 L2CAP_DISCONNECT_INTERRUPT,L2CAP_disconnect_interrupt_req
+	bbit1 L2CAP_DISCONNECT_CONTROL,L2CAP_disconnect_control_req
+	rtn
+	
+scheduler_tx_l2cap_pkt:
+	bpatchx patch29_6,mem_patch29
+	call l2cap_malloc_is_fifo_empty
+	rtn blank //empty
+	fetch 1,mem_op
+	rtnbit1 op_txl2cap
+	call l2cap_malloc_fifo_out
+	store 2,mem_txptr
+	copy pdata,contr
+	ifetch 2,contr
+	increase 4,pdata
+	store 2,mem_tx_len
+	jam 6,mem_tx_lch//start pkt
+	bpatchx patch29_7,mem_patch29
+	fetch 2,mem_l2cap_tx_multi_offset
+	branch scheduler_tx_l2cap_start_pkt,blank
+	fetch 1,mem_op
+	rtnbit0 op_pkt_comp
+	set0 op_pkt_comp,pdata
+	store 1,mem_op
+	jam 5,mem_tx_lch//continue pkt
+	fetcht 2,mem_l2cap_tx_multi_offset
+	fetch 2,mem_txptr
+	iadd temp,pdata
+	store 2,mem_txptr
+	fetch 2,mem_tx_len
+	isub temp,pdata
+	store 2,mem_tx_len
+scheduler_tx_l2cap_start_pkt:
+	fetch 2,mem_tx_len
+	branch assert,blank
+	arg l2cap_max_pkt_len,temp //max len of dh3 pkt
+	isub temp,pdata
+	branch scheduler_Tx_l2cap_last_pkt,zero
+	nbranch scheduler_Tx_l2cap_last_pkt,positive
+	storet 2,mem_tx_len //l2cap_max_pkt_len
+	fetch 2,mem_l2cap_tx_multi_offset
+	iadd temp,pdata
+	store 2,mem_l2cap_tx_multi_offset
+	branch scheduler_Tx_l2cap_pkt_end
+scheduler_Tx_l2cap_last_pkt:
+	setarg 0
+	store 2,mem_l2cap_tx_multi_offset
+scheduler_Tx_l2cap_pkt_end:
+	fetch 1,mem_op
+	set1 op_txl2cap,pdata
+	store 1,mem_op
+	rtn
+
+scheduler_start_upper_sm:
+	fetch 1,mem_UI_profile_supported
+	bbit1 support_HID,scheduler_start_upper_sm_hid
+	jam UPPERSM_RECONN_SDP_CONN,mem_upper_sm_reconn
+	rtn
+scheduler_start_upper_sm_hid:
+	jam UPPERSM_RECONN_HID_CTRL_CONN,mem_upper_sm_reconn
+	rtn
+	
+process_upper_sm:
+	fetch 1,memui_reconnect_mode
+	nbranch process_upper_sm_reconn,blank
+process_upper_sm_remote_page:
+	fetch 1,mem_upper_sm_remote_page
+	//beq UPPERSM_RP_IDLE,process_upper_sm_rp_idle
+	rtn blank
+	//nothing to do when remote page to create a connection.
+	jam 0,mem_upper_sm_remote_page
+process_upper_sm_rp_wait:
+	rtn
+
+
+process_upper_sm_reconn:
+	bpatchx patch2a_0,mem_patch2a
+	fetch 1,mem_upper_sm_reconn
+	rtn blank
+	beq UPPERSM_RECONN_SDP_CONN,process_upper_sm_reconn_sdp_conn
+	beq UPPERSM_RECONN_SDP_CONN_WAIT,process_upper_sm_reconn_sdp_conn_wait
+	beq UPPERSM_RECONN_SDP_CFG,process_upper_sm_reconn_sdp_cfg
+	beq UPPERSM_RECONN_SDP_CFG_WAIT,process_upper_sm_reconn_sdp_cfg_wait
+	beq UPPERSM_RECONN_SS_SPP,process_upper_sm_reconn_ss_spp
+	beq UPPERSM_RECONN_SS_SPP_WAIT,process_upper_sm_reconn_ss_spp_wait
+	beq UPPERSM_RECONN_SDP_DISCONN,process_upper_sm_reconn_sdp_disconn
+	beq UPPERSM_RECONN_SDP_DISCONN_WAIT,process_upper_sm_reconn_sdp_disconn_wait
+	beq UPPERSM_RECONN_HID_CTRL_CONN,process_upper_sm_reconn_hid_ctrl_conn
+	beq UPPERSM_RECONN_HID_CTRL_CONN_WAIT,process_upper_sm_reconn_hid_ctrl_conn_wait
+	beq UPPERSM_RECONN_HID_CTRL_CFG,process_upper_sm_reconn_hid_ctrl_cfg
+	beq UPPERSM_RECONN_HID_CTRL_CFG_WAIT,process_upper_sm_reconn_hid_ctrl_cfg_wait
+	beq UPPERSM_RECONN_HID_INT_CONN,process_upper_sm_reconn_hid_int_conn
+	beq UPPERSM_RECONN_HID_INT_CONN_WAIT,process_upper_sm_reconn_hid_int_conn_wait
+	beq UPPERSM_RECONN_HID_INT_CFG,process_upper_sm_reconn_hid_int_cfg
+	beq UPPERSM_RECONN_HID_INT_CFG_WAIT,process_upper_sm_reconn_hid_int_cfg_wait
+	beq UPPERSM_RECONN_RFCOMM_CONN,process_upper_sm_reconn_rfcomm_conn
+	beq UPPERSM_RECONN_RFCOMM_CONN_WAIT,process_upper_sm_reconn_rfcomm_conn_wait
+	beq UPPERSM_RECONN_RFCOMM_CFG,process_upper_sm_reconn_rfcomm_cfg
+	beq UPPERSM_RECONN_RFCOMM_CFG_WAIT,process_upper_sm_reconn_rfcomm_cfg_wait
+	beq UPPERSM_RECONN_RFCOMM_SABM,process_upper_sm_reconn_rfcomm_sabm
+	beq UPPERSM_RECONN_RFCOMM_SABM_WAIT,process_upper_sm_reconn_rfcomm_sabm_wait
+	beq UPPERSM_RECONN_SPP_CMD_PN,process_upper_sm_reconn_spp_cmd_pn
+	beq UPPERSM_RECONN_SPP_CMD_PN_WAIT,process_upper_sm_reconn_spp_cmd_pn_wait
+	beq UPPERSM_RECONN_SPP_SABM,process_upper_sm_reconn_spp_sabm
+	beq UPPERSM_RECONN_SPP_SABM_WAIT,process_upper_sm_reconn_spp_sabm_wait
+	beq UPPERSM_RECONN_SPP_CMD_MS,process_upper_sm_reconn_spp_cmd_ms
+	beq UPPERSM_RECONN_SPP_CMD_MS_WAIT,process_upper_sm_reconn_spp_cmd_ms_wait
+process_upper_sm_reconn_wait:
+	rtn
+process_upper_sm_reconn_sdp_conn:
+	call upper_sm_send_sdp_conn //return n-user if sending failed
+	jam UPPERSM_RECONN_SDP_CONN_WAIT,mem_upper_sm_reconn
+	fetch 1,mem_sdp_state
+	set1 L2CAP_CHANNEL_STATE_CONN_REQ,pdata
+	store 1,mem_sdp_state
+	rtn
+process_upper_sm_reconn_sdp_cfg:
+	jam UPPERSM_RECONN_SDP_CFG_WAIT,mem_upper_sm_reconn
+	fetch 1,mem_sdp_state
+	rtnbit1 L2CAP_CHANNEL_STATE_SND_CFG_REQ
+	jam UPPERSM_RECONN_SDP_CFG,mem_upper_sm_reconn
+	call upper_sm_send_sdp_cfg //return n-user if sending failed
+	jam UPPERSM_RECONN_SDP_CFG_WAIT,mem_upper_sm_reconn
+	fetch 1,mem_sdp_state
+	set1 L2CAP_CHANNEL_STATE_SND_CFG_REQ,pdata
+	store 1,mem_sdp_state
+	rtn
+process_upper_sm_reconn_ss_spp:
+	call l2cap_malloc_is_fifo_empty
+	nrtn blank
+	call upper_sm_send_ss_spp
+	jam UPPERSM_RECONN_SS_SPP_WAIT,mem_upper_sm_reconn
+	rtn
+process_upper_sm_reconn_sdp_disconn:
+	call upper_sm_send_sdp_disconn
+	jam UPPERSM_RECONN_SDP_DISCONN_WAIT,mem_upper_sm_reconn
+	rtn
+process_upper_sm_reconn_hid_ctrl_conn:
+	call upper_sm_send_hid_ctrl_conn
+	jam UPPERSM_RECONN_HID_CTRL_CONN_WAIT,mem_upper_sm_reconn
+	fetch 1,mem_hid_control_state
+	set1 L2CAP_CHANNEL_STATE_CONN_REQ,pdata
+	store 1,mem_hid_control_state
+	rtn
+process_upper_sm_reconn_hid_ctrl_cfg:    
+	call upper_sm_send_hid_ctrl_cfg
+	jam UPPERSM_RECONN_HID_CTRL_CFG_WAIT,mem_upper_sm_reconn
+	fetch 1,mem_hid_control_state
+	set1 L2CAP_CHANNEL_STATE_SND_CFG_REQ,pdata
+	store 1,mem_hid_control_state
+	rtn
+process_upper_sm_reconn_hid_int_conn:
+	call upper_sm_send_hid_int_conn
+	jam UPPERSM_RECONN_HID_INT_CONN_WAIT,mem_upper_sm_reconn
+	fetch 1,mem_hid_interrupt_state
+	set1 L2CAP_CHANNEL_STATE_CONN_REQ,pdata
+	store 1,mem_hid_interrupt_state
+	rtn
+process_upper_sm_reconn_hid_int_cfg:    
+	call upper_sm_send_hid_int_cfg
+	jam UPPERSM_RECONN_HID_INT_CFG_WAIT,mem_upper_sm_reconn
+	fetch 1,mem_hid_interrupt_state
+	set1 L2CAP_CHANNEL_STATE_SND_CFG_REQ,pdata
+	store 1,mem_hid_interrupt_state
+	rtn
+process_upper_sm_reconn_rfcomm_conn:
+	call upper_sm_send_rfcomm_conn
+	jam UPPERSM_RECONN_RFCOMM_CONN_WAIT,mem_upper_sm_reconn
+	fetch 1,mem_rfcomm_state
+	set1 L2CAP_CHANNEL_STATE_CONN_REQ,pdata
+	store 1,mem_rfcomm_state
+	rtn
+process_upper_sm_reconn_rfcomm_cfg: 
+	call upper_sm_send_rfcomm_cfg
+	jam UPPERSM_RECONN_RFCOMM_CFG_WAIT,mem_upper_sm_reconn
+	fetch 1,mem_rfcomm_state
+	set1 L2CAP_CHANNEL_STATE_SND_CFG_REQ,pdata
+	store 1,mem_rfcomm_state
+	rtn
+process_upper_sm_reconn_rfcomm_sabm:
+	call upper_sm_send_rfcomm_sabm
+	jam UPPERSM_RECONN_RFCOMM_SABM_WAIT,mem_upper_sm_reconn
+	fetch 1,mem_rfcomm_state
+	set1 L2CAP_CHANNEL_RFCOMM_ONLY_SABM,pdata
+	store 1,mem_rfcomm_state
+	rtn
+process_upper_sm_reconn_spp_cmd_pn: 
+	call upper_sm_send_spp_cmd_pn
+	fetch 1,mem_spp_state
+	set1 RFCOMM_CHANNEL_STATE_PN_CMD,pdata
+	store 1,mem_spp_state
+	jam UPPERSM_RECONN_SPP_CMD_PN_WAIT,mem_upper_sm_reconn
+	rtn
+process_upper_sm_reconn_spp_sabm:   
+	call upper_sm_send_spp_sabm
+	fetch 1,mem_spp_state
+	set1 RFCOMM_CHANNEL_STATE_SABM,pdata
+	store 1,mem_spp_state
+	jam UPPERSM_RECONN_SPP_SABM_WAIT,mem_upper_sm_reconn
+	fetch 1,mem_remote_spp_channel //address in pdata
+	lshift3 pdata,pdata
+	or_into 3,pdata
+	arg mem_HIUfcs_SPP,temp // mem_HIUfcs_spp_WCredits in regb++
+	storet 2,mem_contw_temp
+	branch rfcomm_save_FCS_uih
+process_upper_sm_reconn_spp_cmd_ms: 
+	call upper_sm_send_spp_cmd_ms
+	fetch 1,mem_spp_state
+	set1 RFCOMM_CHANNEL_STATE_SND_MS_CMD,pdata
+	store 1,mem_spp_state
+	jam UPPERSM_RECONN_SPP_CMD_MS_WAIT,mem_upper_sm_reconn
+	rtn
+
+process_upper_sm_reconn_sdp_conn_wait:
+	fetch 1,mem_sdp_state
+	rtnbit0 L2CAP_CHANNEL_STATE_CONN_RES
+	jam UPPERSM_RECONN_SDP_CFG,mem_upper_sm_reconn
+	branch process_upper_sm_reconn
+process_upper_sm_reconn_sdp_cfg_wait:
+	fetch 1,mem_sdp_state
+	rtnne L2CAP_CHANNEL_SETUP_COMPLETE
+	jam UPPERSM_RECONN_SS_SPP ,mem_upper_sm_reconn
+process_upper_sm_reconn_ss_spp_wait:
+	fetch 1,mem_message_to_uppersm
+	rtnne RECIEVE_SS_REASULT_HF
+	jam 0,mem_message_to_uppersm
+	jam UPPERSM_RECONN_SDP_DISCONN,mem_upper_sm_reconn
+	branch process_upper_sm_reconn
+process_upper_sm_reconn_sdp_disconn_wait:
+	fetch 1,mem_sdp_state
+	nrtn blank
+	fetch 1,mem_UI_profile_supported
+	bbit1 support_HID,process_upper_sm_reconn_setup_hid
+	bbit1 support_SPP,process_upper_sm_reconn_setup_rfcomm
+	branch process_upper_sm_reconn_termination
+process_upper_sm_reconn_hid_ctrl_conn_wait:
+	fetch 1,mem_hid_control_state
+	rtnbit0 L2CAP_CHANNEL_STATE_CONN_RES
+	jam UPPERSM_RECONN_HID_CTRL_CFG,mem_upper_sm_reconn
+	branch process_upper_sm_reconn
+process_upper_sm_reconn_hid_ctrl_cfg_wait:
+	fetch 1,mem_hid_control_state
+	rtnne L2CAP_CHANNEL_SETUP_COMPLETE
+	jam UPPERSM_RECONN_HID_INT_CONN,mem_upper_sm_reconn
+	branch process_upper_sm_reconn
+process_upper_sm_reconn_hid_int_conn_wait:  
+	fetch 1,mem_hid_interrupt_state
+	rtnbit0 L2CAP_CHANNEL_STATE_CONN_RES
+	jam UPPERSM_RECONN_HID_INT_CFG,mem_upper_sm_reconn
+	branch process_upper_sm_reconn
+process_upper_sm_reconn_hid_int_cfg_wait:  
+	fetch 1,mem_hid_interrupt_state
+	rtnne L2CAP_CHANNEL_SETUP_COMPLETE
+	fetch 1,mem_UI_profile_supported
+	bbit1 support_SPP,process_upper_sm_reconn_setup_rfcomm
+	branch process_upper_sm_reconn_termination
+process_upper_sm_reconn_rfcomm_conn_wait: 
+	fetch 1,mem_rfcomm_state
+	rtnbit0 L2CAP_CHANNEL_STATE_CONN_RES
+	jam UPPERSM_RECONN_RFCOMM_CFG,mem_upper_sm_reconn
+	branch process_upper_sm_reconn
+process_upper_sm_reconn_rfcomm_cfg_wait:
+	fetch 1,mem_rfcomm_state
+	rtnne L2CAP_CHANNEL_SETUP_COMPLETE
+	jam UPPERSM_RECONN_RFCOMM_SABM,mem_upper_sm_reconn
+	branch process_upper_sm_reconn
+process_upper_sm_reconn_rfcomm_sabm_wait:  
+	fetch 1,mem_rfcomm_state
+	rtnne L2CAP_CHANNEL_RFCOMM_DLCI0_OPENED
+	fetch 1,mem_UI_profile_supported
+	bbit1 support_SPP,process_upper_sm_reconn_setup_spp
+	branch process_upper_sm_reconn_termination
+process_upper_sm_reconn_spp_cmd_pn_wait:
+	fetch 1,mem_spp_state
+	rtnbit0 RFCOMM_CHANNEL_STATE_PN_RES
+	jam UPPERSM_RECONN_SPP_SABM,mem_upper_sm_reconn
+	branch process_upper_sm_reconn
+process_upper_sm_reconn_spp_sabm_wait:
+	fetch 1,mem_spp_state
+	rtnbit0 RFCOMM_CHANNEL_STATE_UA
+	jam UPPERSM_RECONN_SPP_CMD_MS ,mem_upper_sm_reconn
+	branch process_upper_sm_reconn
+process_upper_sm_reconn_spp_cmd_ms_wait: 
+	fetch 1,mem_spp_state
+	rtnne RFCOMM_CHANNEL_SETUP_COMPLETE
+	branch process_upper_sm_reconn_termination
+
+process_upper_sm_reconn_setup_hid:
+	jam UPPERSM_RECONN_HID_CTRL_CONN,mem_upper_sm_reconn
+	branch process_upper_sm_reconn
+
+process_upper_sm_reconn_setup_rfcomm:
+	jam UPPERSM_RECONN_RFCOMM_CONN,mem_upper_sm_reconn
+	branch process_upper_sm_reconn
+process_upper_sm_reconn_setup_spp:
+	jam UPPERSM_RECONN_SPP_CMD_PN,mem_upper_sm_reconn
+	branch process_upper_sm_reconn
+
+
+
+process_upper_sm_reconn_termination:
+	jam 0,mem_upper_sm_reconn
+	rtn
+upper_sm_send_sdp_conn:
+	bpatchx patch2a_1,mem_patch2a
+	call l2cap_malloc_signal_channel
+	setarg PSM_SDP
+	copy pdata,temp
+	setarg L2CAP_SDP_channel
+	copy pdata,timeup
+	branch ML2CAP_send_signal_connect_req
+	
+upper_sm_send_sdp_cfg:
+	bpatchx patch2a_2,mem_patch2a
+	call l2cap_malloc_signal_channel
+	fetch 2,mem_SDP_remote_CID
+	copy pdata,temp
+	branch ML2CAP_send_signal_config_req
+	
+upper_sm_send_sdp_disconn:
+	bpatchx patch2a_3,mem_patch2a
+	call l2cap_malloc_signal_channel
+	fetch 2,mem_SDP_remote_CID
+	copy pdata,temp
+	arg L2CAP_SDP_channel,timeup
+	call ML2CAP_send_signal_disconn_req
+	fetch 1,mem_sdp_state
+	set0 L2CAP_CHANNEL_STATE_RCV_CFG_RES ,pdata
+	store 1,mem_sdp_state
+	rtn
+//service search
+upper_sm_send_ss_spp:
+	bpatchx patch2a_4,mem_patch2a
+	call l2cap_malloc_sdp_channel
+	call sdp_send_spp_request
+	branch MSDP_send_req_done
+
+upper_sm_send_rfcomm_conn:
+	bpatchx patch2a_5,mem_patch2a
+	call l2cap_malloc_signal_channel
+	setarg PSM_RFCOMM
+	copy pdata,temp
+	setarg L2CAP_RFCOMM_channel
+	copy pdata,timeup
+	branch ML2CAP_send_signal_connect_req
+
+upper_sm_send_rfcomm_cfg:
+	bpatchx patch2a_6,mem_patch2a
+	call l2cap_malloc_signal_channel
+	fetch 2,mem_rfcomm_remote_cid
+	copy pdata,temp
+	branch ML2CAP_send_signal_config_req
+
+upper_sm_send_hid_ctrl_conn:
+	bpatchx patch2a_7,mem_patch2a
+	call l2cap_malloc_signal_channel
+	setarg PSM_HID_control
+	copy pdata,temp
+	setarg L2CAP_HID_Control_channel
+	copy pdata,timeup
+	branch ML2CAP_send_signal_connect_req
+
+upper_sm_send_hid_ctrl_cfg:
+	bpatchx patch2b_0,mem_patch2b
+	call l2cap_malloc_signal_channel
+	fetch 2,mem_hid_ctrl_remote_cid
+	copy pdata,temp
+	branch ML2CAP_send_signal_config_req
+
+upper_sm_send_hid_int_conn:
+	bpatchx patch2b_1,mem_patch2b
+	call l2cap_malloc_signal_channel
+	setarg PSM_HID_interrupt
+	copy pdata,temp
+	setarg L2CAP_HID_interrupt_channel
+	copy pdata,timeup
+	branch ML2CAP_send_signal_connect_req
+	
+upper_sm_send_hid_int_cfg:
+	bpatchx patch2b_2,mem_patch2b
+	call l2cap_malloc_signal_channel
+	fetch 2,mem_hid_int_remote_cid
+	copy pdata,temp
+	branch ML2CAP_send_signal_config_req
+
+upper_sm_send_rfcomm_sabm:
+	bpatchx patch2b_3,mem_patch2b
+	call l2cap_malloc_rfcomm_channel
+	//force 3,temp //address
+	jam 3,mem_current_adss
+	jam 0x1c,mem_current_fcs
+	call rfcomm_send_sabm
+	jam 1,mem_rfcomm_initiator
+	rtn
+
+upper_sm_send_spp_cmd_pn:
+	bpatchx patch2b_4,mem_patch2b
+	call l2cap_malloc_rfcomm_channel
+	fetcht 1,mem_remote_spp_channel
+	call channel_to_dlci
+	storet 1,mem_pn_dlci
+	branch rfcomm_send_param_neg_cmd
+
+upper_sm_send_spp_sabm:
+	bpatchx patch2b_5,mem_patch2b
+	call l2cap_malloc_rfcomm_channel
+	fetcht 1,mem_pn_dlci
+	call dlci_to_address_cmd
+	call rfcomm_calculate_FCS_sabm //sabm fcs use once only,not need to save
+	store 1,mem_current_fcs
+	fetcht 1,mem_pn_dlci
+	call dlci_to_address_cmd
+	storet 1,mem_current_adss
+	branch rfcomm_send_sabm
+
+upper_sm_send_spp_cmd_ms:
+	bpatchx patch2b_6,mem_patch2b
+	call l2cap_malloc_rfcomm_channel
+	fetcht 1,mem_pn_dlci
+	call dlci_to_address_cmd //address in temp
+	branch rfcomm_send_modem_status_cmd
+
+
+
Index: program/sdp.prog
===================================================================
--- /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/program/sdp.prog	(nonexistent)
+++ /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/program/sdp.prog	(working copy)
@@ -0,0 +1,1206 @@
+/**********************************************************************/
+/* Subroutine: sdp_process                                         */
+/* Process Service Discovery Request                                  */
+/* Called from L2CAP, check PDUID, branch to different req processings*/
+/*                                                                    */  
+/* Input:       mem_L2CAP_Rx_payload                                  */
+/* Output:      mem_SDP_Tx_payload, mem_SDP_Tx_pkt_length	      */
+/*                                                                    */
+/**********************************************************************/     
+sdp_process:
+	bpatchx patch2b_7,mem_patch2b
+	fetch 2,mem_l2cap_payload_ptr
+	iforce contr
+//	ifetchr regb,1,contr				/* PDUID */
+//	storer regb,1,mem_sdp_pduid
+	ifetch 1,contr
+	copy pdata,regb
+	store 1,mem_sdp_pduid
+	ifetch 2,contr
+	store 2,mem_sdp_transactionid			/* save transaction id */
+	ifetch 1,contr				/* higher byte of parameter length */
+	lshift8 pdata,timeup				
+	ifetch 1,contr				/* lower byte of parameter length */
+	iadd timeup,timeup				/* parameter length stored in "timeup" */
+	bpatchx patch2c_0,mem_patch2c
+	copy contr,temp
+	arg 4,loopcnt
+	arg mem_sdp_handle_list,contw
+	call memset0
+	copy temp,contr 
+	deposit regb						/* PDUID  */
+	beq SDP_ERROR_RES,sdp_process_error_res
+	beq SDP_SEARCH_REQ,sdp_process_ss_req
+	beq SDP_SEARCH_RES,sdp_process_ss_res
+	beq SDP_ATTRIBUTE_REQ,sdp_process_sa_req
+	beq SDP_ATTRIBUTE_RES,sdp_process_sa_res
+	beq SDP_SEARCHATTRIB_REQ,sdp_process_ssa_req
+	beq SDP_SEARCHATTRIB_RES,sdp_process_ssa_res
+	branch sdp_insufficient_resource
+
+/**********************************************************************/
+/* ss_req			                              */
+/* Processing Service Search Request                                  */
+/* Call: ask_serviceclassid, empty_response                     */
+/*                                                                    */  
+/* Input:       mem_L2CAP_Rx_payload pointer in contr                 */
+/* Output:      mem_SDP_Tx_payload, mem_SDP_Tx_pkt_length	      */
+/*                                                                    */
+/**********************************************************************/     
+sdp_process_ss_req:
+	bpatchx patch2c_1,mem_patch2c
+	call ask_serviceclassid
+	compare 1,temp,0xff
+	branch ss_empty_rsp,true
+	compare 0xff,temp,0xff
+	branch sdp_invalid_request_syntax,true
+
+	ifetch 2,contr				/* max aservice record count */
+	store 2,mem_sdp_record_maxcnt
+	increase -2,timeup
+
+	increase -1,timeup				/* continuation state 1 byte (0) */
+	nbranch sdp_invalid_pdu_size,zero		/* invalid pdu size */
+	arg mem_sdp_uuid_search_ptr,timeup
+	ifetch 2,timeup
+	rtn blank
+	call search_all_uuid
+	call l2cap_get_sdp_tx_payload			/* put the pointer to Tx buffer  */
+	force 3,pdata						/* PDUID 3, Service Search Response */
+	istore 1,contw
+	fetch 2,mem_sdp_transactionid			/* write transaction id */
+	istore 2,contw
+	lshift2 queue,pdata
+	add pdata,5,pdata
+	add pdata,5,regc
+	byteswap pdata,pdata
+	istore 2,contw							/* write parLength */
+	deposit queue
+	byteswap pdata,pdata
+	istore 2,contw							/* write TotSrvRecCount */
+	istore 2,contw							/* write CurSrvRecCount */
+	arg mem_sdp_handle_list,contr
+	copy queue,loopcnt
+	branch ss_req_blank,zero
+ss_req_loop:	
+	ifetch 4,contr
+	istore 4,contw
+	loop ss_req_loop
+ss_req_blank:	
+	force 0,pdata
+	istore 1,contw							/* continuation state */
+	deposit regc
+	store 2,mem_sdp_tx_pkt_length
+//	branch assert,blank
+	rtn
+
+/**********************************************************************/
+/* sa_req			                              */
+/* Processing Service Attribute Request                               */
+/* Call: ask_attributeid, empty_response (if 3 stored attr.     */
+/* not asked) or answer_attributelist                              */  
+/* Input:       mem_L2CAP_Rx_payload pointer in contr                 */
+/* Output:      mem_SDP_Tx_payload, mem_SDP_Tx_pkt_length	      */
+/*                                                                    */
+/**********************************************************************/     
+sdp_process_sa_req:
+	bpatchx patch2c_2,mem_patch2c
+	ifetch 4,contr				/* service record handle */
+	store 4,mem_sdp_record_handle	 
+	increase -4,timeup
+	call sdp_store_maxbyte
+	store 2,mem_sdp_attribute_maxbyte
+	increase -2,timeup
+	call dataelementtype6		/* result: data size stored in rega */
+	branch sdp_invalid_request_syntax,zero
+	compare 5,rega,0xff  // length
+	//branch sa_req_all,true
+	branch sa_judge_wholerange,true
+sa_isnot_wholerange:
+	arg mem_sdp_attrib_list,contw
+	force 0,queue
+	branch sa_req_loop
+sa_judge_wholerange:
+	ifetch 1,contr
+	bne SDP_ATTRIBUTE_RANGE,sdp_invalid_request_syntax
+	ifetch 2,contr
+	nbranch sa_judge_wholerange_false1,blank
+	ifetch 1,contr
+	bne 0xff,sa_judge_wholerange_false2
+	ifetch 1,contr
+	bne 0xff,sa_judge_wholerange_false3		//also exist potential bug because mem_sdp_attrib_list length is only 7f
+	branch sa_req_all
+sa_judge_wholerange_false3:
+	increase -5,contr
+	branch sa_isnot_wholerange
+sa_judge_wholerange_false2:
+	increase -4,contr
+	branch sa_isnot_wholerange
+sa_judge_wholerange_false1:
+	increase -3,contr
+	branch sa_isnot_wholerange
+sa_req_loop:	
+	ifetch 1,contr
+	beq SDP_ATTRIBUTE_ID, sa_req_one_id
+	beq SDP_ATTRIBUTE_RANGE, sa_req_range
+sa_req_range:
+	ifetch 2, contr
+	istore 2, contw
+	increase 1,queue
+	byteswap pdata,regb
+	ifetch 2, contr
+	byteswap pdata,pdata
+sa_req_range_id_increase:	
+	increase 1, regb
+	isub regb, null
+	nbranch sa_req_range_id_finish,positive
+	copy pdata, regc
+	byteswap regb,pdata
+	istore 2, contw
+	increase 1,queue
+	copy regc, pdata
+	branch sa_req_range_id_increase
+sa_req_range_id_finish:
+	increase -5,timeup
+	increase -5,rega
+	branch sa_req_check_next_id
+sa_req_one_id:
+	ifetch 2,contr
+	istore 2,contw //save the attribute id in mem_sdp_attrib_list
+	increase 1,queue
+	increase -3,timeup
+	increase -3,rega
+sa_req_check_next_id:	
+	nbranch sdp_invalid_request_syntax,positive
+	nbranch sa_req_loop,zero //another attribute 
+	increase -1,timeup
+	nbranch sdp_invalid_request_syntax,zero
+	
+	call l2cap_get_sdp_tx_payload
+	increase 10,contw
+	arg mem_sdp_attrib_list,rega
+sa_req_handle_attributelist_next:
+	copy queue,pdata
+	branch sa_req_handle_attributelist_end,blank
+	ifetch 2,rega
+	branch sa_req_handle_attributelist_end,blank
+	iforce regb /* regb is the attribute ID */
+	fetch 4,mem_sdp_record_handle	
+	iforce temp
+	call search_handle_attrib
+	copy contr,pdata
+	branch sa_req_handle_attributelist_notfound,blank
+	increase -3,contr
+	ifetch 3,contr
+	istore 3,contw
+	call sdp_data_len
+	iforce loopcnt	
+	call memcpy
+sa_req_handle_attributelist_notfound:
+	increase 2,rega
+	increase -1, queue
+	branch sa_req_handle_attributelist_next
+
+sa_req_handle_attributelist_end:	
+	arg SDP_ATTRIBUTE_RES,rega
+	call ssa_req_range_lastfreg_common
+	fetch 2,mem_sdp_tx_pkt_length	
+	beq 11,sa_empty_rsp
+	branch  ssa_req_range_attrbutes_length_no_continue
+
+
+sdp_store_continue_common:
+	ifetch 1, contr
+	beq 0, sdp_store_continue_0byte
+	beq 1,sdp_store_continue_1byte
+	beq 2, sdp_store_continue_2byte
+sdp_store_continue_0byte:	
+	increase -1,timeup				/* continuation state byte (0) */
+	branch sdp_store_continue_end
+sdp_store_continue_1byte:
+	ifetch 1, contr
+	increase -2,timeup				/* continuation state byte (1) */
+	branch sdp_store_continue_end
+sdp_store_continue_2byte:
+	ifetch 2, contr
+	byteswap pdata,pdata
+	increase -3,timeup				/* continuation state byte (2) */
+sdp_store_continue_end:
+	store 2, mem_sdp_continue_byte	
+	rtn
+	
+sa_req_all:	
+	increase -5,timeup
+	call sdp_store_continue_common
+	nbranch sdp_invalid_pdu_size,zero
+	fetcht 4,mem_sdp_record_handle		
+	call search_handle
+	nbranch sdp_invalid_service_record_handle,zero
+	copy contr,rega
+	call l2cap_get_sdp_tx_payload
+	copy rega,contr
+	increase 3,contw//arg mem_SDP_Tx_payload+3,contw
+	copy contr,timeup //sdp start pointer
+	call sdp_get_data
+	copy pdata, rega //sdp total length
+//	fetchr regb,2,mem_sdp_continue_byte
+	fetch 2,mem_sdp_continue_byte
+	copy pdata,regb
+	copy rega,pdata
+	isub regb,regb //total_length - continue_byte in regb
+	fetch 2, mem_sdp_attribute_maxbyte
+	isub regb, null
+	nbranch sa_req_all_fragment_sdp, positive
+	// the last fragment
+	disable user
+	fetch 2, mem_sdp_continue_byte
+	branch sa_req_all_fisrt_fragment,blank
+	iadd timeup, contr //set the read pointer
+	increase 3,regb //include the total length field, 3 bytes
+	copy regb, loopcnt
+	copy loopcnt, pdata
+	increase 3, pdata
+	byteswap pdata,pdata
+	istore 2, contw
+	copy loopcnt, pdata
+	byteswap pdata,pdata
+	istore 2, contw
+	branch sa_req_all_answer_attributelist_full_loop
+sa_req_all_fisrt_fragment:
+	add rega,6,loopcnt
+	branch sa_req_all_parlength_continue_byte, user
+	byteswap loopcnt,pdata
+	branch sa_req_all_parlength_continue_byte_end
+sa_req_all_parlength_continue_byte:
+	copy loopcnt, pdata
+	increase 2, pdata
+	byteswap pdata,pdata
+sa_req_all_parlength_continue_byte_end:
+	istore 2,contw				/* ParLength */
+	increase -3,loopcnt
+	byteswap loopcnt,pdata			
+	istore 2,contw				/* AttrListByteCount */
+	copy timeup,contr
+	branch sa_req_all_answer_attributelist_full_loop
+sa_req_all_fragment_sdp:
+	enable user
+//	fetchr rega,2,mem_sdp_attribute_maxbyte
+	fetch 2,mem_sdp_attribute_maxbyte
+	copy pdata,rega
+	copy rega,loopcnt
+	fetch 2, mem_sdp_continue_byte
+	branch sa_req_all_fisrt_fragment,blank
+	iadd timeup, contr
+	copy rega,pdata
+	increase 5,pdata
+	byteswap pdata,pdata	
+	istore 2, contw
+	copy rega,pdata
+	byteswap pdata,pdata
+	istore 2, contw
+sa_req_all_answer_attributelist_full_loop:
+	call memcpy
+	nbranch sa_req_all_last_frag_continue, user
+	force 2,pdata
+	istore 1,contw
+	copy contr, pdata
+	isub timeup, pdata
+	byteswap pdata,pdata
+	istore 2, contw   // continuation length
+	branch sa_req_all_frag_end
+sa_req_all_last_frag_continue:
+	force 0,pdata
+	istore 1,contw
+sa_req_all_frag_end:	
+	arg SDP_ATTRIBUTE_RES,rega
+	branch ssa_req_range_common	
+	
+/**********************************************************************/
+/* ssa_req                          		      */
+/* Processing Service Search Attribute Request                        */
+/* Call: ask_serviceclassid, ask_attributeid, empty_response */
+/*       or answer_attributelist                                   */  
+/* Input:       contr                                                 */
+/* Output:      mem_SDP_Tx_payload, mem_SDP_Tx_pkt_length             */
+/*                                                                    */
+/**********************************************************************/     
+sdp_process_ssa_req:
+	bpatchx patch2c_3,mem_patch2c
+	call ask_serviceclassid
+	compare 0xff,temp,0xff
+	branch sdp_invalid_request_syntax,true
+	call sdp_store_maxbyte
+	store 2,mem_sdp_attribute_maxbyte
+	increase -2,timeup
+	call dataelementtype6
+	arg mem_sdp_attrib_list,contw
+	force 0,queue
+ssa_req_loop:	
+	ifetch 1,contr 
+	beq SDP_ATTRIBUTE_RANGE,ssa_req_range
+	ifetch 2,contr 
+	istore 2,contw //save the attribute id in mem_sdp_attrib_list
+	increase 1,queue
+	increase -3,timeup
+	increase -3,rega
+	nbranch sdp_invalid_request_syntax,positive
+	nbranch ssa_req_loop,zero
+	increase -1,timeup
+	nbranch sdp_invalid_request_syntax,zero
+	call l2cap_get_sdp_tx_payload
+	increase 13,contw//arg mem_SDP_Tx_payload+13,contw
+	fetch 2,mem_sdp_uuid_search_ptr
+	iforce regc
+	arg mem_sdp_attrib_list,rega
+ssa_req_attributelist_next:	
+	ifetch 2,rega
+	branch ssa_req_attributelist_end,blank
+	iforce regb						/* regb is the attribute ID */
+	call search_attrib
+	branch ssa_req_attributelist_notfound,blank
+	increase -3,contr
+	ifetch 3,contr
+	istore 3,contw
+	call sdp_data_len
+	iforce loopcnt	
+  	call memcpy
+ssa_req_attributelist_notfound:
+	increase 2,rega
+	branch ssa_req_attributelist_next
+
+ssa_req_attributelist_end:
+	call ssa_req_range_lastfreg
+	fetch 2,mem_sdp_tx_pkt_length	
+	beq 14,ssa_empty_rsp
+	call ssa_req_range_attrbutes_length_no_continue
+	branch ssa_req_range_attrbutes_length_no_continue
+
+
+sdp_store_maxbyte:	
+	ifetch 2,contr				 
+	byteswap pdata,pdata
+	increase -3,pdata	
+	arg 200,temp
+	isub temp,null
+	nrtn positive
+	setarg 200
+	rtn
+	
+
+ssa_req_range:
+	increase 4,contr
+	increase -5,timeup
+	increase -5,rega
+	nbranch sdp_invalid_request_syntax,zero
+	call 	sdp_store_continue_common
+	nbranch sdp_invalid_pdu_size,zero
+	arg mem_sdp_uuid_search_ptr,timeup
+	call search_all_uuid  
+	deposit queue
+	branch ssa_empty_rsp,blank
+	store 1,mem_handle_humber
+//	storer regb,2,mem_sdp_all_length
+	copy regb,pdata
+	store 2,mem_sdp_all_length
+	arg 0,queue
+	arg 0,rega
+	call l2cap_get_sdp_tx_payload
+	increase 10,contw 
+ssa_req_range_find_handle:
+	call ssa_req_range_get_length	
+	nbranch assert,user
+	copy contr,timeup
+	copy pdata,regc
+	iadd rega,rega
+//	copy pdata,rega 
+//	fetch 2,mem_sdp_all_length
+	fetch 2,mem_sdp_continue_byte
+	copy pdata,regb
+	branch ssa_req_range_first_freg,blank
+ssa_req_range_later_freg_with_continue:
+	copy rega,pdata
+	isub regb,regb //total_length - continue_byte in rega
+	branch ssa_req_range_next_handle,zero
+	nbranch ssa_req_range_next_handle,positive
+	fetch 2, mem_sdp_attribute_maxbyte
+	isub regb, null
+	branch ssa_req_range_maxbyte_with_continue,zero
+	nbranch ssa_req_range_maxbyte_with_continue, positive  
+	
+ // data length < =maxbyte 
+ssa_req_range_send_not_maxbyte:
+ 	copy regb,loopcnt
+	call ssa_req_range_maxbyte_with_continue_cpy
+ 	fetch 1,mem_handle_humber
+	increase 1,queue
+	isub queue,null
+	branch ssa_req_range_lastfreg,zero
+	branch ssa_req_range_freg_with_continue
+	
+ssa_req_range_maxbyte_with_continue:
+ 	copy pdata,loopcnt
+ 	call ssa_req_range_maxbyte_with_continue_cpy
+ 	branch ssa_req_range_freg_with_continue
+ 	
+ssa_req_range_maxbyte_with_continue_cpy:
+	increase -3,contw   
+	copy loopcnt,temp
+ 	copy regc,pdata
+	isub regb,pdata
+	iadd timeup,contr
+ 	branch memcpy
+
+ssa_req_range_next_handle:
+	fetch 1,mem_handle_humber
+	increase 1,queue
+	isub queue,null
+	rtn zero //
+	branch ssa_req_range_find_handle
+
+ssa_req_range_get_length:	
+	call disable_user
+	arg mem_sdp_handle_list,contr
+	lshift2 queue,pdata
+	iadd contr,contr
+	ifetcht 4, contr
+	call search_handle
+	nrtn zero
+	call sdp_data_len
+	branch enable_user
+
+ssa_req_range_first_freg:
+	fetch 2, mem_sdp_attribute_maxbyte
+	isub rega, null
+	nbranch ssa_req_range_firstfreg_maxbyte_with_continue,positive
+	copy rega,loopcnt
+	copy loopcnt,temp
+	copy timeup,contr
+	call memcpy
+	fetch 2,mem_sdp_all_length
+	isub rega,null
+	branch ssa_req_range_freg_no_continue,zero
+ssa_req_range_firstfreg_not_maxbyte_with_continue:
+	call ssa_req_range_freg_with_continue
+	branch ssa_req_range_attrbutes_length
+	
+ssa_req_range_freg_no_continue:
+	call ssa_req_range_lastfreg
+	branch ssa_req_range_attrbutes_length
+	
+ssa_req_range_lastfreg:
+	arg SDP_SEARCHATTRIB_RES,rega  //PUD ID
+ssa_req_range_lastfreg_common:
+	force 0,pdata
+	istore 1,contw
+	call ssa_req_range_common
+	fetcht 2,mem_sdp_tx_pkt_length
+	increase -5,temp
+	byteswap temp,pdata
+	istore 2, contw
+	increase -3,temp
+	byteswap temp,pdata
+	istore 2, contw  //attribute length
+	rtn
+
+ssa_req_range_firstfreg_maxbyte_with_continue:
+	copy pdata,loopcnt
+	copy loopcnt,temp
+	copy timeup,contr
+	call memcpy
+	call ssa_req_range_freg_with_continue
+ssa_req_range_attrbutes_length:	
+	setarg 0x36
+	istore 1,contw
+	fetch 2,mem_sdp_all_length
+	byteswap pdata,pdata
+	istore 2, contw 
+	rtn	
+
+ssa_req_range_attrbutes_length_no_continue:	
+	setarg 0x36
+	istore 1,contw
+	increase -3,temp
+	byteswap temp,pdata
+	istore 2, contw 
+	rtn	
+
+ssa_req_range_freg_with_continue:
+	arg SDP_SEARCHATTRIB_RES,rega  //PUD ID
+	setarg 2
+	istore 1,contw	
+	fetch 2,mem_sdp_continue_byte
+	iadd temp,temp
+	byteswap temp,pdata
+	istore 2,contw
+	call ssa_req_range_common
+	fetcht 2,mem_sdp_tx_pkt_length
+	increase -5,temp
+	byteswap temp,pdata
+	istore 2, contw
+	increase -5,temp
+	byteswap temp,pdata
+	istore 2, contw 
+	rtn	
+
+ssa_req_range_common:
+	fetch 2,mem_sdp_tx_payload_ptr
+	isub contw,pdata
+	sub pdata,0,pdata
+	store 2,mem_sdp_tx_pkt_length
+	call l2cap_get_sdp_tx_payload 
+	copy rega,pdata  //PUD ID
+	istore 1,contw
+	fetch 2,mem_sdp_transactionid
+	istore 2,contw
+	rtn
+
+
+
+
+/**********************************************************************/
+/* ssa_res			                      */
+/* Processing Service Search Attribute Response                       */
+/* Call: dataelementtype6, attribute_reading                    */
+/* Input:       contr                                                 */
+/* Output:      mem_sdp_record_handle,mem_sdp_search_failed           */
+/*                                                                    */
+/**********************************************************************/     
+sdp_process_ssa_res:
+sdp_process_ss_res:
+sdp_process_sa_res:
+sdp_process_error_res:
+	rtn
+/*
+sdp_process_ss_res:
+	bpatchx patch2c_4,mem_patch2c
+	ifetch 2,contr
+	ifetch 2,contr
+	byteswap pdata,pdata
+	bne 1,assert
+	ifetch 4,contr
+	store 4,mem_sdp_record_handle
+	fetchr regc,2,mem_sdp_l2capch_ptr
+	add regc,offset_lc_state,regc
+	ifetch 1,regc
+	set1 L2CAP_CHANNEL_STATE_RECV_SEARCH_RES,pdata
+	istore 1,regc
+	rtn
+	
+sdp_process_sa_res:
+	bpatchx patch2c_5,mem_patch2c
+	fetchr regc,2,mem_sdp_l2capch_ptr
+	add regc,offset_lc_state,regc
+	ifetch 1,regc
+	set1 L2CAP_CHANNEL_STATE_RECV_ATTRIB_RES,pdata
+	istore 1,regc
+	copy temp,contr
+	ifetch 2,contr
+	call search_rfcomm_cn
+	store 1,mem_profile_channel	
+	rtn
+*/
+
+				    
+
+sdp_invalid_service_record_handle:		
+	setarg 0x0200
+	store 2,mem_sdp_error_code
+	branch sdp_error_response
+sdp_invalid_pdu_size:				
+	setarg 0x0400
+	store 2,mem_sdp_error_code
+	branch sdp_error_response
+sdp_insufficient_resource:			
+	setarg 0x0600
+	store 2,mem_sdp_error_code
+	branch sdp_error_response
+sdp_invalid_request_syntax:			
+	setarg 0x0300
+	store 2,mem_sdp_error_code
+sdp_error_response:	
+	call l2cap_get_sdp_tx_payload
+	istore 1,contw
+	fetch 2,mem_sdp_transactionid			
+	istore 2,contw
+	setarg 0x0200					
+	istore 2,contw
+	fetch 2,mem_sdp_error_code			
+	istore 2,contw
+	jam  7,mem_sdp_tx_pkt_length
+	rtn
+
+
+//store uuid in mem_sdp_uuid_search_ptr,
+//return temp 0xff if wrong 
+ask_serviceclassid:  
+	arg 0,regb
+	force 0,temp					/* use "temp" to mark syntax error or to mark 128 bit uuid */
+	arg mem_sdp_uuid_search_ptr,contw
+	call dataelementtype6
+	branch asksrv_error,zero
+classidloop:
+	increase 1,regb
+	ifetch 1,contr
+	increase -1,rega
+	increase -1,timeup
+	compare 0x18,pdata,0xf8			/* 5 MSB: b00011: uuid */
+	nbranch asksrv_error,true
+	compare 0x04,pdata,0x07			/* 3 LSB: b100 128 bits uuid */
+	nbranch cmp032,true
+	force 1,temp					/* mark it as 128 bit uuid */
+skip2bytes:
+	ifetch 1,contr
+	increase -1,rega	
+	increase -1,timeup
+	bne 0x00, frstbwrong
+	ifetch 1,contr
+	increase -1,rega	
+	increase -1,timeup
+	beq 0x00, cmpuuid
+	branch scndbwrong
+frstbwrong:  
+	increase 1,contr
+	increase -1,rega	
+	increase -1,timeup
+scndbwrong:  
+	increase 2,contr				/* skip 2 bytes, first 2 bytes already wrong */
+	increase -2,rega	
+	increase -2,timeup
+	compare 0x00,temp,0xff                        /* 128 bits or 32 bits ? */
+	branch loopornot,true
+	increase 12,contr				/* skip 12 bytes, first 2 bytes already wrong */
+	increase -12,rega	
+	increase -12,timeup
+	branch loopornot
+cmp032:
+	compare 0x02,pdata,0x07			/* 3 LSB: b010 32 bits uuid */
+	nbranch cmp016,true
+	branch skip2bytes			
+cmp016:
+	compare 0x01,pdata,0x07			/* 3 LSB: b001 16 bit uuid */
+	nbranch asksrv_error,true
+cmpuuid:
+	increase -2,rega
+	increase -2,timeup
+	ifetch 2,contr				/* higher order byte */
+	sub regb,4,null
+	branch uuidsize,zero //max store uuids =3 
+	istore 2,contw
+uuidsize:
+	compare 0x00,temp,0xff			/* is this 128 bits uuid */
+	branch loopornot,true
+	copy contr,temp
+	ifetch 1,contr
+	bne 0x00, wrong12b
+	ifetch 1,contr
+	bne 0x00, wrong12b
+	ifetch 1,contr
+	bne 0x10, wrong12b
+	ifetch 1,contr
+	bne 0x00, wrong12b
+	ifetch 1,contr
+	bne 0x80, wrong12b
+	ifetch 1,contr
+	bne 0x00, wrong12b
+	ifetch 1,contr
+	bne 0x00, wrong12b
+	ifetch 1,contr
+	bne 0x80, wrong12b
+	ifetch 1,contr
+	bne 0x5f, wrong12b
+	ifetch 1,contr
+	bne 0x9b, wrong12b
+	ifetch 1,contr
+	bne 0x34, wrong12b
+	ifetch 1,contr
+	beq 0xfb, chck12dn
+wrong12b:
+	copy temp,contr  
+wrong12b1:
+	increase 12,contr				/* skip 12 bytes */
+	force 0x00,queue
+	force 0x00,temp
+	branch chck12dn
+
+chck12dn:
+	increase -12,timeup
+	increase -12,rega
+loopornot:
+	force 0x00,temp
+	compare 0x00,rega,0xff
+	nbranch classidloop,true
+	force 0,pdata
+	istore 2,contw			/* end list with null */
+	rtn
+asksrv_error:
+	arg 0xff,temp
+	rtn
+
+/**********************************************************************/
+/* Subroutine: dataelementtype6                                    */
+/* Parse Data Element Sequence, obtain the data size                  */
+/* Input:  SDP Rx Buf Pointer in contr, parameter count in timeup     */
+/* Output: data length in rega, data pointer in contr             */
+/*         and  parameter count in timeup, return with zero flag set: */
+/*         syntax error                                               */
+/**********************************************************************/     
+dataelementtype6:
+	bpatchx patch2c_6,mem_patch2c
+	ifetch 1,contr
+	increase -1,timeup
+	compare 0x30,pdata,0xf8			/* 5 MSB: b00110: type 6 */
+	nbranch dsize_error,true
+	compare 0x07,pdata,0x07			/* 3 LSB: b111: 32 bits */
+	branch dsize32,true
+	compare 0x06,pdata,0x07			/* 3 LSB: b110: 16 bits */
+	branch dsize16,true
+	compare 0x05,pdata,0x07			/* 3 LSB: b101: 8 bits */
+	nbranch dsize_error,true
+//	ifetchr rega,1,contr				/* data length in reg A */
+	ifetch 1,contr
+	copy pdata,rega
+	increase -1,timeup
+	branch dsize
+dsize32:
+	increase 2,contr				 
+	increase -2,timeup
+dsize16:
+	ifetch 2,contr
+	byteswap pdata,rega
+	increase -2,timeup
+dsize:
+	force 0x01,pdata
+	rtn
+dsize_error:
+	force 0x00,pdata
+	rtn
+
+/**********************************************************************/
+/* Subroutine: sa_empty_rsp                                      */
+/* Send empty response                                                */
+/*                                                                    */
+/* Input:       mem_sdp_pduid, mem_sdp_transactionid                  */
+/* Output:      mem_SDP_Tx_payload, mem_SDP_Tx_pkt_length             */
+/*                                                                    */
+/**********************************************************************/     
+ss_empty_rsp:
+	setarg SDP_SEARCH_RES
+	store 1, mem_sdp_pduid
+	branch empty_response
+sa_empty_rsp:
+	setarg SDP_ATTRIBUTE_RES
+	store 1, mem_sdp_pduid
+	branch empty_response
+ssa_empty_rsp:
+	setarg SDP_SEARCHATTRIB_RES
+	store 1, mem_sdp_pduid
+empty_response:
+	call l2cap_get_sdp_tx_payload			/* empty attribute list */
+//	fetchr regb,1,mem_sdp_pduid				/* PDUID */
+//	istorer regb,1,contw
+	fetch 1,mem_sdp_pduid
+	copy pdata,regb
+	istore 1,contw 
+	fetch 2,mem_sdp_transactionid			/* copy back transaction id */
+	istore 2,contw
+	setarg 0x0500
+	istore 2, contw
+	compare SDP_ATTRIBUTE_RES,regb,0xff			 
+	branch fullsearch,true
+	compare SDP_SEARCHATTRIB_RES,regb,0xff			 
+	branch fullsearch,true
+	setarg 0x000000
+	istore 5,contw
+	branch outempty
+
+fullsearch:					/* pduid must be 5 or 7 */
+	setarg 0x350200
+	istore 5,contw
+outempty:
+	jam 10,mem_sdp_tx_pkt_length
+	rtn
+
+//return length in pdata(whole element ,include header and data ), contr not change
+sdp_data_len:
+	call store_contw
+	call store_contr
+	call sdp_get_data
+	call get_contw
+	call get_contr
+	copy temp,pdata
+	rtn
+
+//return data length in pdata, contr is data pionter,return length in temp(whole element ,include header and data )
+sdp_get_data:
+	ifetch 1,contr
+	and pdata,0x7,loopcnt
+	rshift3 pdata,pdata
+	bne 0,sdp_get_data_type_not0
+sdp_get_data_type0:	
+	force 1,pdata
+	force 1,temp
+	rtn
+	
+sdp_get_data_type_not0_sizeindex01234:
+	call left_shift_n
+	add pdata,1,temp  //add header length
+	rtn
+sdp_get_data_type_not0:
+	deposit loopcnt
+	sub pdata,4,null
+	branch sdp_get_data_type_not0_sizeindex01234,positive
+	beq 5,sdp_get_data_type_not0_sizeindex5
+	beq 6,sdp_get_data_type_not0_sizeindex6
+	beq 7,sdp_get_data_type_not0_sizeindex7
+	rtn
+	
+sdp_get_data_type_not0_sizeindex5:
+	ifetch 1,contr
+	add pdata,2,temp  //add header length
+	rtn
+sdp_get_data_type_not0_sizeindex6:
+	ifetch 2,contr
+	byteswap pdata,pdata
+	add pdata,3,temp  //add header length
+	rtn
+sdp_get_data_type_not0_sizeindex7:
+	ifetch 2,contr	
+	byteswap pdata,pdata
+	ifetcht 2,contr	
+	byteswap temp,temp
+	lshift16 temp,temp
+	iadd temp,pdata
+	add pdata,5,temp  //add header length
+	rtn
+
+/* find with uuids
+input uuids pionter in timeup
+return handles in mem_sdp_handle_list; handles number in queue if found 
+return regb all length*/
+search_all_uuid:
+	bpatchx patch2c_7,mem_patch2c
+	force 0,queue
+	arg 0,regb
+	arg mem_sdp_handle_list,contw
+search_all_uuid_llop:
+	ifetch 2,timeup
+ 	rtn blank
+	call search_uuid
+	copy queue,pdata
+	rtneq SDP_MAX_HANDLE_NUMBER 
+	increase 2,timeup
+ 	branch search_all_uuid_llop
+	
+search_uuid:
+//	arg 0,regb
+	iforce regc
+//	force 0,queue
+	fetch 2, mem_ui_uuid_table
+	iforce contr
+search_uuid_next:
+	copy queue,pdata
+	rtneq SDP_MAX_HANDLE_NUMBER   
+	disable user
+	ifetch 1,contr
+	rtn blank
+	iforce loopcnt
+search_uuid_loop:	
+	ifetch 2,contr
+	isub regc,null
+	nbranch search_uuid_not_found,zero
+	enable user					// uuid match
+search_uuid_not_found:
+	loop search_uuid_loop
+	ifetcht 4,contr					// get handle 
+	copy contr,rega
+	nbranch search_uuid_nomatch,user
+	arg mem_sdp_handle_list,contr
+	arg SDP_MAX_HANDLE_NUMBER,loopcnt 
+search_uuid_check_same_handle:
+	ifetch 4,contr
+	branch search_uuid_store_handle,blank
+	isub temp,null
+	branch search_uuid_nomatch,zero
+	loop search_uuid_check_same_handle
+	rtn 
+search_uuid_store_handle:
+	istoret 4,contw
+	increase 1,queue
+	copy rega,contr
+	call sdp_data_len
+	iadd regb,regb
+	iadd contr,contr		 
+	branch search_uuid_next
+search_uuid_nomatch:	
+	copy rega,contr
+	call sdp_get_data
+	iadd contr,contr			// next paragraph 
+	branch search_uuid_next
+
+/* temp is handle,
+return zero  if found
+return data pointer in contr 
+*/
+search_handle:
+	bpatchx patch2d_0,mem_patch2d
+	fetch 2,mem_ui_uuid_table
+	iforce contr
+search_handle_loop:	
+	ifetch 1,contr
+	branch disable_zero,blank
+	lshift pdata,pdata
+	iadd contr,contr
+	ifetch 4,contr
+	isub temp,null
+	rtn zero
+	deposit contw
+	store 2,mem_contw
+	storet 8,mem_temp
+	call sdp_get_data
+	iadd contr,contr
+	copy contr,pdata
+	fetcht 2,mem_contw
+	copy temp,contw
+	fetcht 8,mem_temp
+	copy pdata,contr
+	branch search_handle_loop
+
+/**
+* input regb and regc.regb is the attribute ID and regc is UUID.
+* set contr if find attribute or 0 if not
+*/
+search_attrib:
+	bpatchx patch2d_1,mem_patch2d
+	fetch 2,mem_ui_uuid_table
+	iforce contr
+search_attrib_next:
+	ifetch 1,contr
+	branch search_attrib_end, blank
+	iforce loopcnt
+search_attrib_loop:	
+	ifetch 2,contr
+	isub regc,null						/* regc is UUID, compare it */
+	branch search_attrib_found_uuid,zero
+	loop search_attrib_loop
+	increase 4,contr
+	call sdp_get_data
+	iadd contr,contr			/* next paragraph */
+	branch search_attrib_next	
+search_attrib_found_uuid:
+	increase -1,loopcnt
+	lshift loopcnt,pdata
+	iadd contr,contr
+	increase 4,contr
+	call sdp_get_data
+	iadd contr,timeup					/* attribute list end */
+search_attrib_loop_attribs:	
+	increase 1,contr
+	ifetch 2,contr
+	isub regb,null
+	//force 0x1,pdata,zero
+//	setflag zero, 0,pdata
+//	copy timeup, timeup
+	branch disable_blank,zero			/* attribute found */
+	call sdp_data_len
+	iadd contr,contr
+	deposit timeup
+	isub contr,null
+	branch search_attrib_end, zero /*attribute end, not found the attribute, return contr = 0*/
+	branch search_attrib_loop_attribs	
+search_attrib_end:
+	force 0,contr
+	force 0,pdata
+	rtn
+	
+
+//search the attribute according the record handle
+//record handle in temp, attribute in regb
+//set the contr to zero if not found
+search_handle_attrib:	
+	bpatchx patch2d_2,mem_patch2d
+	fetch 2,mem_ui_uuid_table
+	iforce contr
+search_handle_attrib_next:
+	ifetch 1,contr
+	branch search_handle_attrib_end, blank
+	lshift pdata,pdata
+	iadd contr, contr
+	ifetch 4,contr
+	isub temp,null						/* regc is UUID, compare it */
+	branch search_handl_attrib_found_handle,zero
+	call sdp_get_data
+	iadd contr,contr			/* next paragraph */
+	branch search_handle_attrib_next	
+search_handl_attrib_found_handle:
+	call sdp_get_data
+	iadd contr,timeup					/* attribute list end */
+search_handle_attrib_loop_attribs:	
+	increase 1,contr
+	ifetch 2,contr
+	isub regb,null
+	rtn zero							/* attribute found */
+	call sdp_data_len
+	iadd contr,contr
+	deposit timeup
+	isub contr,null
+	branch search_handle_attrib_end, zero /*attribute end, not found the attribute, return contr = 0*/
+	branch search_handle_attrib_loop_attribs
+search_handle_attrib_end:
+	force 0,contr
+	rtn	
+
+
+//enable user if find rfcomm channel number, pdata is channel number
+search_rfcomm_cn:
+	arg 0x0400,regb  // attribute protocol edscriptor list
+	call search_handl_attrib_found_handle
+	arg 0x0300,regb  // uuid rfcomm
+	call search_uuid_in_data
+	nrtn user
+	sub rega,3,null
+	branch disable_user,positive
+	ifetch 1,contr
+	bne 0x08,disable_user
+	ifetch 1,contr
+	rtn
+	
+ //input timeup is lenth
+ //input contr is data ptr
+ //return contr is end of uuid; enable user if found uuid
+search_uuid_in_data:
+	bpatchx patch2d_3,mem_patch2d
+	call sdp_get_data
+	copy pdata,rega
+search_uuid_in_data_loop:	
+	ifetch 1,contr
+	and pdata,0x7,loopcnt
+	rshift3 pdata,pdata
+	sub pdata,3,null
+	branch search_uuid_in_data_found_uuid,zero
+	copy loopcnt,pdata
+	beq 5,search_uuid_in_data_found_element_index5
+	beq 6,search_uuid_in_data_found_element_index6
+	beq 7,search_uuid_in_data_found_element_index7
+	increase -1,contr
+	call sdp_get_data
+	iadd contr,contr
+	copy rega,pdata
+	isub temp,rega
+	branch disable_user,zero
+	branch search_uuid_in_data_loop
+	
+search_uuid_in_data_found_element_index5:
+	increase -2,rega
+	increase 1,contr
+	branch search_uuid_in_data_loop
+search_uuid_in_data_found_element_index6:
+	increase -3,rega
+	increase 2,contr
+	branch search_uuid_in_data_loop
+search_uuid_in_data_found_element_index7:
+	increase -5,rega
+	increase 4,contr
+	branch search_uuid_in_data_loop		
+	
+search_uuid_in_data_found_uuid:
+	increase -1,rega
+	copy loopcnt,pdata
+	beq 1,search_uuid_in_data_type_uuid_16
+	beq 2,search_uuid_in_data_type_uuid_32
+	beq 4,search_uuid_in_data_type_uuid_128
+	branch disable_user 
+search_uuid_in_data_type_uuid_128:
+	increase -12,rega
+search_uuid_in_data_type_uuid_32:
+	ifetch 2,contr
+	increase -2,rega
+search_uuid_in_data_type_uuid_16:
+	ifetch 2,contr
+	isub regb,null
+	branch enable_user,zero
+	increase -2,rega
+	branch disable_user,zero
+	branch search_uuid_in_data_loop
+
+/*
+//rega:l2cap len ,mem_search_uuid:uuid to search
+sdp_send_search_req:
+	call l2cap_malloc_sdp_req
+	setarg SDP_SEARCH_REQ
+	istore 1,contw
+	fetch 2,mem_sdp_transactionid_local
+	byteswap pdata,pdata
+	istore 2,contw
+	increase -5,rega
+	byteswap rega,rega
+	//istorer rega,2,contw
+	copy rega,pdata
+	istore 2,contw
+	setarg 0x0335
+	istore 2,contw
+	setarg 0x19
+	istore 1,contw
+	fetch 2,mem_search_uuid
+	istore 2,contw
+	setarg 0x0008
+	istore 2,contw
+	setarg 0
+	istore 1,contw
+	rtn
+
+//rega:l2cap len
+sdp_send_attribute_req:
+	call l2cap_malloc_sdp_req
+	setarg SDP_ATTRIBUTE_REQ
+	istore 1,contw
+	fetch 2,mem_sdp_transactionid_local
+	byteswap pdata,pdata
+	istore 2,contw
+	increase -5,rega
+	byteswap rega,rega
+//	istorer rega,2,contw
+	copy rega,pdata
+	istore 2,contw
+	fetch 4,mem_sdp_record_handle
+	istore 4,contw
+	setarg 0x2c01
+	istore 2,contw
+	setarg 0x0535
+	istore 2,contw
+	setarg 0x0a
+	istore 1,contw
+	setarg 0
+	istore 2,contw
+	setarg -1
+	istore 2,contw
+	setarg 0
+	istore 1,contw
+	rtn
+*/	
+	
+
+sdp_send_spp_request:
+	call l2cap_get_sdp_tx_payload
+	copy pdata,contw
+	setarg 6//Search Attr Req
+	istore 1,contw
+	setarg sdp_tid_spp					
+	istore 2,contw
+	setarg 0x0f00 //length15
+	istore 2,contw
+	setarg 0x1a0535
+	istore 3,contw
+	setarg 0x0111
+	lshift16 pdata,pdata //UUID
+	istore 4,contw
+	setarg 0x2600 //max return len
+	istore 2,contw
+	setarg 0x0335
+	istore 2,contw
+	setarg 0x0009
+	istore 2,contw
+	setarg 0x0004
+	istore 2,contw
+	jam 0x14,mem_sdp_tx_pkt_length
+	rtn
+
Index: program/security.prog
===================================================================
--- /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/program/security.prog	(nonexistent)
+++ /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/program/security.prog	(working copy)
@@ -0,0 +1,2060 @@
+
+ifdef SECURE_CONNECTION
+	
+function_g2:
+	bpatchx patch2d_4,mem_patch2d
+	jam 80,mem_AES_CMAC_data_length
+	arg memdat,contw
+	arg mem_le_srand,contr
+	call memcpy16
+	arg mem_sc_pubkey_local_x_256,contr
+	call memcpy32
+	arg mem_le_pubkey_remote_x_256,contr
+	call memcpy32
+	call inverse_memdat	
+	arg mem_le_mrand,contr
+	call store_inverse_k	
+	call function_AES_CMAC	
+
+	arg mem_AES_CMAC_temp,contw
+	call load_inverse_result
+	setarg 1000000
+	copy pdata,rega
+	fetch 4,mem_AES_CMAC_temp
+	idiv rega
+	call wait_div_end
+	remainder pdata
+	store 4,mem_gkey
+//call ice_break
+	rtn
+
+function_f6_eb:
+	jam 65,mem_AES_CMAC_data_length
+	arg memdat,contw
+	call store_addr_common_a
+	call store_addr_common_b
+	fetch 3,mem_le_pres+1
+	istore 3,contw
+//	arg mem_le_r,contr
+//	call memcpy16	
+	call get_r
+	
+	arg mem_le_mrand,contr
+	call memcpy16
+	arg mem_le_srand,contr
+	call memcpy16
+	call inverse_memdat
+	arg mem_le_mackey ,contr
+	arg mem_AES_CMAC_k,contw
+	call memcpy16
+//	call p_store_inverse_k	
+	branch function_AES_CMAC
+//	arg mem_AES_CMAC_temp,contw
+//	branch p_load_inverse_result
+
+get_r:
+	fetch 4,mem_le_tk
+	istore 4,contw
+	call memset0_4
+	branch memset0_8
+
+function_f6_ea:
+	bpatchx patch2d_5,mem_patch2d
+	jam 65,mem_AES_CMAC_data_length
+	arg memdat,contw
+	call store_addr_common_b
+	call store_addr_common_a
+	fetch 3,mem_le_preq+1
+	istore 3,contw
+//	arg mem_le_r,contr
+//	call memcpy16	
+	call get_r
+	arg mem_le_srand,contr
+	call memcpy16
+	arg mem_le_mrand,contr
+	call memcpy16
+	call inverse_memdat
+	arg mem_le_mackey ,contr
+	arg mem_AES_CMAC_k,contw
+	call memcpy16
+//	call p_store_inverse_k	
+	call function_AES_CMAC
+	arg mem_AES_CMAC_temp,contw
+	branch load_inverse_result
+
+function_f5:
+	jam 32,mem_AES_CMAC_data_length
+	arg mem_le_dhkey_256 ,contr
+	arg memdat,contw
+	call memcpy32
+	call inverse_memdat
+	arg mem_le_slat,contr
+	call store_inverse_k	
+	call function_AES_CMAC
+	arg mem_AES_CMAC_k,contw
+	call store_aes_result
+	arg 1,temp
+	call function_f5_common
+	arg mem_le_ltk,contw
+	call load_inverse_result
+	arg 0,temp
+	call function_f5_common
+	arg mem_le_mackey,contw
+//	branch p_load_inverse_result
+	branch store_aes_result
+
+
+function_f5_common:
+	bpatchx patch2d_6,mem_patch2d
+	jam 53,mem_AES_CMAC_data_length
+	setarg 0x100
+	store 2,memdat
+	call store_addr_common_b
+	call store_addr_common_a
+	arg mem_le_srand,contr
+	call memcpy16
+	arg mem_le_mrand,contr
+	call memcpy16
+//	fetch 4,mem_le_keyid 0x62746c65
+	setarg 0x6c65
+	istore 2,contw
+	setarg 0x6274
+	istore 2,contw
+	istoret 1,contw   //counter
+	call inverse_memdat	
+	branch function_AES_CMAC
+
+store_addr_common_b:
+	fetch 6,mem_le_lap
+	istore 6,contw
+	fetch 1,mem_le_conn_own_addr_type
+	istore 1,contw
+	rtn
+
+store_addr_common_a:
+	fetch 6,mem_le_plap
+	istore 6,contw
+//	setarg 0x2dcfc1
+//	istore 3,contw
+//	setarg 0xa71370
+//	istore 3,contw
+	fetch 1,mem_le_conn_peer_addr_type
+	istore 1,contw
+	rtn
+
+function_f4_ca:
+	jam 65,mem_AES_CMAC_data_length
+	fetch 1,mem_passkey_1bit
+	store 1,memdat
+	arg mem_sc_pubkey_local_x_256,contr
+	call memcpy32
+	arg mem_le_pubkey_remote_x_256,contr
+	call memcpy32
+	call inverse_memdat
+	arg mem_le_mrand,contr
+	call store_inverse_k	
+	branch function_AES_CMAC
+	
+
+function_f4_cb:
+	jam 65,mem_AES_CMAC_data_length
+	fetch 1,mem_passkey_1bit
+	store 1,memdat
+	arg mem_le_pubkey_remote_x_256,contr
+	call memcpy32
+	arg mem_sc_pubkey_local_x_256,contr
+	call memcpy32
+	call inverse_memdat
+	arg mem_le_srand,contr
+	call store_inverse_k	
+	branch function_AES_CMAC
+
+function_AES_CMAC:
+	bpatchx patch2d_7,mem_patch2d
+	call function_AES_CMAC_Generate_Subkey
+//call ice_break
+//	jam 65,mem_AES_CMAC_data_length
+//call ice_break
+	fetch 1,mem_AES_CMAC_data_length
+	copy pdata,temp
+function_ceil16:
+	increase 15,pdata
+	rshift4 pdata,pdata
+	copy pdata,regb
+	branch function_AES_CMAC_set_flag_0_balnk,blank
+	and temp,0x0f,pdata
+	nbranch function_AES_CMAC_set_flag_0,blank
+//	flag =1;
+	arg mem_AES_CMAC_k1,regc
+	arg memdat,pdata
+	increase -16,pdata
+//	iadd temp,pdata
+//	isub rega,rega
+	iadd temp,rega	
+	arg mem_AES_CMAC_M_last,contw
+	arg 4,loopcnt	
+	call xor_loop
+//call ice_break
+//	arg mem_f4_k1,contr
+//	call load_key
+	branch function_AES_CMAC_aes
+
+function_AES_CMAC_set_flag_0_balnk:
+	arg 1,regb
+	arg 0,rega
+//	arg mem_f4_test_data,pdata
+	branch function_AES_CMAC_set_flag_0_common
+//call ice_break
+
+function_AES_CMAC_set_flag_0:
+//	flag = 0;
+	and temp,0x0f,rega
+function_AES_CMAC_set_flag_0_common:
+	arg memdat,pdata
+	iadd temp,pdata
+	isub rega,contr
+//call ice_break
+	arg mem_AES_CMAC_temp,contw
+	call function_AES_CMAC_padding
+//call ice_break
+	arg mem_AES_CMAC_k2,regc
+	arg mem_AES_CMAC_temp,rega
+	arg mem_AES_CMAC_M_last,contw
+	arg 4,loopcnt	
+	call xor_loop	
+//call ice_break
+
+//	arg mem_f4_k2,contr
+//	call load_key
+
+//	branch p_function_f4_aes
+function_AES_CMAC_aes:
+//	arg mem_f4_k,contr
+//	call load_key
+//	arg mem_AES_CMAC_xor,contr
+//	call load_data128
+	call aes_clear_data
+	call aes_init	
+//	arg mem_f4_k,contr
+//	call load_key
+	arg memdat,contr
+function_AES_CMAC_aes_loop:
+//generate_mic_loop:
+	increase -1,regb
+	deposit regb
+	branch function_AES_CMAC_aes_loop_end,blank
+	call load_data128
+	call do_aes_cbc
+	branch function_AES_CMAC_aes_loop
+//generate_mic_end:
+function_AES_CMAC_aes_loop_end:	
+	arg mem_AES_CMAC_temp,contw
+	call store_aes_result
+	arg mem_AES_CMAC_M_last,contr
+	call load_data128
+	call aes_init	
+	arg mem_AES_CMAC_temp,contr
+	call load_data128	
+	branch do_aes_cbc
+
+
+
+load_inverse_result:
+//	arg mem_AES_CMAC_temp,contw
+	copy contw,rega
+	call store_aes_result
+//	arg mem_AES_CMAC_temp,rega
+	arg 16,loopcnt
+	branch inverse_data
+	
+store_inverse_k:
+	arg mem_AES_CMAC_k,contw
+	call memcpy16
+inverse_k:	
+	arg 16,loopcnt
+	arg mem_AES_CMAC_k,rega	
+	branch inverse_data
+	
+inverse_memdat:
+	fetch 1,mem_AES_CMAC_data_length
+	copy pdata,loopcnt
+	arg memdat,rega
+	branch inverse_data
+
+bn_lshift_0_inverse:
+	ifetch 1,rega
+	lshift pdata,pdata
+	isolate1 0,regc
+	setflag true,0,pdata	
+	isolate1 8,pdata
+	setflag true,0,regc	
+	istore 1,rega
+         increase -1,rega
+	loop bn_lshift_0_inverse
+	rtn	
+
+function_AES_CMAC_k1_inverse:
+	arg mem_AES_CMAC_k1,rega
+function_AES_CMAC_inverse_common:
+	increase 15,rega
+	force 16,loopcnt
+	force 0,regc
+	branch  bn_lshift_0_inverse	
+
+function_AES_CMAC_k2_inverse:
+	arg mem_AES_CMAC_k2,rega
+	branch function_AES_CMAC_inverse_common
+	
+
+function_AES_CMAC_Generate_Subkey:
+	arg mem_AES_CMAC_k,contr
+	call load_key
+//	arg mem_AES_CMAC_xor,contr
+//	call aes_load_xor
+	force regidx_xor,regext_index
+	call aes_clear
+	call aes_clear_data
+	call do_aes_ocb
+	
+//	force 0x38,aes_ctrl
+//	force 0x0,aes_ctrl
+//	call wait_aes
+	arg mem_AES_CMAC_k1,contw
+	call store_aes_result
+function_AES_CMAC_k1:
+	bpatchx patch2e_0,mem_patch2e
+	fetch 1,mem_AES_CMAC_k1
+	isolate1 7,pdata
+	nbranch function_AES_CMAC_k1_0,true	
+	call function_AES_CMAC_k1_inverse
+	
+//p_function_f4_k1_xor:
+	arg mem_AES_CMAC_k1,regc
+//	arg mem_AES_CMAC_rb,rega
+	arg mem_AES_CMAC_k1,contw
+//	arg 3,loopcnt
+//	call xor_loop
+	call function_AES_CMAC_xor_rb
+	branch function_AES_CMAC_k2
+function_AES_CMAC_k1_0:	
+	call function_AES_CMAC_k1_inverse
+function_AES_CMAC_k2:
+//call ice_break
+	arg mem_AES_CMAC_k1,contr
+	arg mem_AES_CMAC_k2,contw
+	call memcpy16
+	fetch 1,mem_AES_CMAC_k2
+	isolate1 7,pdata
+	nbranch function_AES_CMAC_k2_inverse,true		
+	call function_AES_CMAC_k2_inverse
+//p_function_f4_k2_xor:
+	arg mem_AES_CMAC_k2,regc
+//	arg mem_AES_CMAC_rb,rega
+	arg mem_AES_CMAC_k2,contw
+//	arg 3,loopcnt
+//	branch xor_loop	
+
+
+//rb:00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 87 
+function_AES_CMAC_xor_rb:
+	arg 3,loopcnt
+function_AES_CMAC_xor_rb_loop:	
+	arg 0,temp
+	call function_AES_CMAC_xor_loop_common	
+	increase 4,regc
+	loop  function_AES_CMAC_xor_rb_loop
+	arg 0x8700,temp
+	lshift16 temp,temp
+function_AES_CMAC_xor_loop_common:	
+	ifetch   4,regc
+	ixor  temp,pdata
+	istore   4,contw	
+	rtn
+		
+
+
+
+//input rega :length <16	contr,contw
+function_AES_CMAC_padding:
+	bpatchx patch2e_1,mem_patch2e
+	arg 16,loopcnt
+	arg 0,pdata
+function_AES_CMAC_padding_loop:
+	isub rega,null
+	branch function_AES_CMAC_padding_beq_length,zero
+	branch function_AES_CMAC_padding_big_length,positive
+	ifetcht 1,contr
+	istoret 1,contw
+function_AES_CMAC_padding_loop2:	
+	increase 1,pdata
+	loop function_AES_CMAC_padding_loop
+	rtn
+function_AES_CMAC_padding_beq_length:	
+	arg 0x80,temp
+function_AES_CMAC_padding_common:
+	istoret 1,contw
+	branch  function_AES_CMAC_padding_loop2
+
+function_AES_CMAC_padding_big_length:
+	arg 0,temp
+	branch function_AES_CMAC_padding_common
+
+endif
+	
+generate_kinit:
+	call function_e22
+	arg mem_input_store,contr
+	arg mem_kinit,contw		/* Kinit is ready */
+	branch memcpy16
+
+
+function_e21:	/* rega pointers to bdaddr */
+	disable user
+	call function_expand
+	arg mem_random_number,contr
+	arg mem_x,contw
+	force 15,loopcnt
+	call memcpy			
+	ifetch 1,contr
+	xor_into 6,pdata
+	istore 1,contw
+	setarg mem_y
+	store 2,memp_ar_input
+	setarg mem_x
+	store 2,memp_ar_key
+	set1 mark_ar2,mark
+	branch function_ar
+
+
+	
+function_e22:		/* rega pointers to bdaddr */
+	fetcht 1,mem_pin_length
+	force 16,regb			/* total 16 bytes */
+	add temp,6,regc		/* regc is l' */
+	sub regc,16,null		
+	branch function_e22_pin_init,positive 
+	force 16,regc
+function_e22_pin_init:			/* generate x from pin and bdaddr */
+	arg mem_x,contw
+function_e22_genx_pin:
+	arg mem_pin,contr
+	copy temp,loopcnt
+	disable user
+function_e22_genx_loop:
+	ifetch 1,contr
+	istore 1,contw
+	increase -1,regb
+	branch function_e22_genx_end,zero
+	loop function_e22_genx_loop
+	branch function_e22_genx_pin,user
+	enable user
+	force 6,loopcnt
+	copy rega,contr
+	branch function_e22_genx_loop
+function_e22_genx_end:
+	arg mem_random_number,contr
+	arg mem_y,contw
+	call memcpy16
+	fetch 1,mem_y15
+	ixor regc,pdata
+	store 1,mem_y15	/* inpy[15] = rand_num[15]^l'; */
+	setarg mem_y
+	store 2,memp_ar_input
+	setarg mem_x
+	store 2,memp_ar_key
+	set1 mark_ar2,mark
+	branch function_ar
+
+
+
+
+function_e1:	/* rega pointers to bdaddr */
+	disable user
+	call function_expand
+	branch function_hash
+
+function_e3:
+	arg mem_aco,rega
+	enable user
+	call function_expand
+	call function_hash
+	arg mem_input_store,contr
+	arg mem_kc,contw
+	branch memcpy16
+
+	/* costs 41769 clocks */
+function_hash:
+	setarg mem_random_number
+	store 2,memp_ar_input
+	setarg mem_link_key
+	store 2,memp_ar_key
+	set0 mark_ar2,mark
+	call function_ar
+	arg mem_input_store,rega
+	arg mem_random_number,regb
+	arg mem_x,contw
+	call xor16
+	arg mem_x,rega
+	arg mem_y,regb
+	copy regb,contw
+	enable user
+	call add16
+	call key_offset
+	setarg mem_y
+	store 2,memp_ar_input
+	setarg mem_x
+	store 2,memp_ar_key
+	set1 mark_ar2,mark
+	branch function_ar
+	
+
+	/* totally costs 20700 clocks */
+function_ar:
+	jam 0,mem_ar_hround
+	fetch 2,memp_ar_key
+	iforce contr
+	arg mem_key_store,contw
+	call memcpy16
+	fetch 2,memp_ar_input
+	iforce contr
+	arg mem_input_store,contw
+	call memcpy16
+	
+function_ar_loop:
+	call key_scheduling
+	disable user
+	bmark0 mark_ar2,function_ar_original
+	fetch 1,mem_ar_hround
+	bne 4,function_ar_original
+	fetch 2,memp_ar_input
+	iforce regb
+	call xor_mod32_ar2
+function_ar_original:
+	call xor_mod32
+	call el_boxes
+	fetch 1,mem_ar_hround
+	increase 1,pdata
+	store 1,mem_ar_hround
+
+	call key_scheduling
+	enable user
+	call xor_mod32
+	call pht
+	call permute
+	call pht
+	call permute
+	call pht
+	call permute
+	call pht
+	fetch 1,mem_ar_hround
+	increase 1,pdata
+	store 1,mem_ar_hround
+	bne 16,function_ar_loop
+	call key_scheduling
+	disable user
+	branch xor_mod32
+	
+/* input round number and temp key in mem_key_store, and output the next temp key in mem_key_store */
+/* round key is generated and store in mem_round_key */
+key_scheduling:
+	fetch 1,mem_ar_hround
+	arg mem_key_store,contr
+	branch key_sched_zero,blank
+	iforce regb      			/* regb is half round */
+	force 17,loopcnt
+	copy contr,contw
+key_rotateloop:
+	ifetch 1,contr
+	lshift3 pdata,temp
+	rshift2 pdata,pdata
+	rshift3 pdata,pdata
+	ior temp,pdata
+	istore 1,contw
+	loop key_rotateloop
+	setarg mem_key_store
+	iadd regb,contr
+	force 16,loopcnt    
+	arg mem_round_key,contw
+key_select_octet_loop:
+	ifetch 1,contr
+	istore 1,contw
+	compare mem_key_store_end,contr,0xff
+	nbranch key_select_octet_nwrap,true
+	increase -17,contr
+key_select_octet_nwrap:
+	loop key_select_octet_loop
+	force 0,rega         /* rega is index of octet within row */
+	add regb,-1,regc    /* this is the row index, half_round#1 is 0 */
+	lshift2 regc,regc
+	lshift2 regc,regc
+	call enable_authrom
+	setarg mem_b_box
+	iadd regc,regc       /* regc hold the starting address of the row */
+	arg mem_round_key,contw
+	force 16,loopcnt
+bias_round_key_loop:
+	ifetcht 1,regc
+	ifetch 1,contw
+	iadd temp,pdata
+	istore 1,contw
+	increase 1,regc
+	loop bias_round_key_loop
+	branch disable_authrom
+
+key_sched_zero:    /* round 0, key1 */
+	force 16,loopcnt
+	force 0,temp
+create_byte_16_loop:
+	ifetch 1,contr
+	ixor temp,temp
+	loop create_byte_16_loop
+	deposit temp
+	istore 1,contr    	/* store the byte #16 */
+	arg mem_key_store,contr
+	arg mem_round_key,contw
+	branch memcpy16
+
+xor_mod32:     /* xor on 0,3, add on 1,2. if user is set, invert. x in rega and y in regb, out in contw */
+	arg mem_round_key,regb
+xor_mod32_ar2:
+	force 16,loopcnt
+	arg mem_input_store,rega
+	copy rega,contw
+xor_mod32_loop:	
+	ifetcht 1,rega
+	ifetch 1,regb
+	ixor temp,alarm
+	and loopcnt,3,regc
+	nbranch xor_mod32_invert,user
+	xor_into 3,regc
+xor_mod32_invert:
+	sub regc,1,regc
+	branch xor_even,positive
+	iadd temp,alarm
+xor_even:
+	deposit alarm
+	istore 1,contw
+	increase 1,rega
+	increase 1,regb
+	loop xor_mod32_loop
+	rtn
+
+el_boxes:
+	call enable_authrom
+	force 16,loopcnt
+	arg mem_input_store,rega
+el_box_loop:	
+	ifetch 1,rega
+	arg mem_e_box,contr
+	and loopcnt,3,regc
+	sub regc,1,null
+	branch e_boxes,positive
+	arg mem_l_box,contr
+e_boxes:
+	iadd contr,contr
+	ifetch 1,contr
+	istore 1,rega
+	increase 1,rega
+	loop el_box_loop
+	branch disable_authrom
+
+pht:				
+	force 8,loopcnt
+	arg mem_input_store,contr
+	copy contr,contw
+pht_loop:
+	ifetch 1,contr
+	iforce rega
+	ifetch 1,contr
+	iforce regb
+	lshift rega,pdata
+	iadd regb,pdata
+	istore 1,contw
+	deposit rega
+	iadd regb,pdata
+	istore 1,contw
+	loop pht_loop
+	rtn
+
+/* 8 11 12 15 2 1 6 5 10 9 14 13 0 7 4 3 */
+permute:			
+	setarg 0x8ae42c
+	iforce temp
+	force 7,loopcnt
+	call permute_exchange
+	setarg 0xd751b
+	iforce temp
+	force 5,loopcnt
+	call permute_exchange
+	fetch 1,mem_input_store+15
+	iforce rega
+	fetch 1,mem_input_store+3
+	store 1,mem_input_store+15
+	deposit rega
+	store 1,mem_input_store+3
+	rtn
+
+permute_exchange:
+	and temp,0xf,regb
+permute_loop:
+	and temp,0xf,pdata
+	arg mem_input_store,contw
+	iadd contw,contw
+	ifetch 1,contw
+	iforce regc
+	deposit rega
+	istore 1,contw
+	copy regc,rega
+	rshift4 temp,temp
+	loop permute_loop	
+	setarg mem_input_store
+	iadd regb,contw
+	deposit rega
+	istore 1,contw
+	rtn
+
+add16:
+	enable user
+	branch xor_add16
+
+xor16:
+	disable user
+xor_add16:	/* if user is set, do add, else do xor */
+	force 16,loopcnt	/* rega and regb pointers to src, contw is result */
+xoradd_loop:
+	ifetcht 1,rega
+	ifetch 1,regb
+	branch xoradd_add,user
+	ixor temp,pdata
+	branch xoradd_store
+xoradd_add:	
+	iadd temp,pdata
+xoradd_store:	
+	istore 1,contw
+	increase 1,rega
+	increase 1,regb
+	loop xoradd_loop
+	rtn
+
+	
+function_expand:		/* rega pointers to bdaddr, or aco and user is set */
+	arg mem_y,contw
+	ifetch 6,rega
+	istore 6,contw
+	branch expand_12,user
+	ifetch 6,rega
+	branch expand_cont
+expand_12:
+	ifetch 6,contr
+expand_cont:
+	istore 6,contw
+	ifetch 4,rega
+	istore 4,contw
+	rtn
+
+key_offset:
+	arg mem_link_key,contr
+	arg mem_x,contw
+	arg 0,temp
+	setarg 0x8395a7
+	call concatenate_temp24
+	setarg 0xb3c1df
+	call concatenate_temp24
+	setarg 0xe5e9
+	call concatenate_temp16
+	copy temp,regab
+	disable user
+	call key_addxor
+	copy regab,temp
+	enable user
+	branch key_addxor
+
+key_addxor:
+	force 8,loopcnt
+key_addxor_loop:	
+	ifetch 1,contr
+	compare 1,loopcnt,1
+	branch key_high,user
+	branch key_xor,true
+key_add:	
+	iadd temp,pdata
+	branch key_store
+key_high:
+	branch key_add,true
+key_xor:
+	ixor temp,pdata
+key_store:
+	istore 1,contw
+	rshift8 temp,temp
+	loop key_addxor_loop
+	rtn
+
+copy_aco:
+	fetch 6,mem_input_store+4
+	store 6,mem_aco
+	ifetch 6,contr
+	istore 6,contw
+	rtn
+	
+concatenate_temp24:
+	lshift8 temp,temp
+concatenate_temp16:
+	lshift16 temp,temp
+	ior temp,temp
+	rtn
+
+ifdef TESTING
+test_security:
+	fetch 1,0xff
+	branch test_security,blank
+
+	/* inrand */
+	setarg 0x1BC683
+	store 3,0x0
+	setarg 0x122980
+	istore 3,contw
+	setarg 0xD0DB17
+	istore 3,contw
+	setarg 0x2B1D78
+	istore 3,contw
+	setarg 0x2743A6
+	istore 3,contw
+	setarg 0xD8
+	istore 1,contw
+
+	/* comb A */
+	setarg 0xA6D0C9
+	store 3,0x10
+	setarg 0xA9E86C
+	istore 3,contw
+	setarg 0x9E89D5
+	istore 3,contw
+	setarg 0xC61838
+	istore 3,contw
+	setarg 0x6F0318
+	istore 3,contw
+	setarg 0x9F
+	istore 1,contw
+
+	/* comb B */
+	setarg 0x7F6833
+	store 3,0x20
+	setarg 0xE62E1B
+	istore 3,contw
+	setarg 0x9F67FC
+	istore 3,contw
+	setarg 0x8D3712
+	istore 3,contw
+	setarg 0x0B846C
+	istore 3,contw
+	setarg 0x4A
+	istore 1,contw
+
+	/* auth rand A */
+	setarg 0xFBB686
+	store 3,0x30
+	setarg 0x19FE7F
+	istore 3,contw
+	setarg 0x16A439
+	istore 3,contw
+	setarg 0xF4F6A4
+	istore 3,contw
+	setarg 0x10D61D
+	istore 3,contw
+	setarg 0xDE
+	istore 1,contw
+
+	/* auth rand B */
+	setarg 0x735B0C
+	store 3,0x40
+	setarg 0xA7F06B
+	istore 3,contw
+	setarg 0x04625E
+	istore 3,contw
+	setarg 0x3463B0
+	istore 3,contw
+	setarg 0xB8F17A
+	istore 3,contw
+	setarg 0x7C
+	istore 1,contw
+
+	/* address A */
+	setarg 0xf91330
+	store 3,0xb0
+	setarg 0x664c7d
+	istore 3,contw
+
+	/* address B */
+	setarg 0xdc7100
+	store 3,0xb8
+	setarg 0x2ea003
+	istore 3,contw
+
+	/* sres A */
+	setarg 0x2EEE19
+	store 3,0x50
+	setarg 0x7E
+	istore 1,contw
+
+	/* sres B */
+	setarg 0x4231A4
+	store 3,0x58
+	setarg 0xD1
+	istore 1,contw
+
+	/* linkA */
+	setarg 0xa6a026
+	store 3,0x60
+	setarg 0x2569d2
+	istore 3,contw
+	setarg 0xab4a9d
+	istore 3,contw
+	setarg 0x5e87c0
+	istore 3,contw
+	setarg 0x792aa9
+	istore 3,contw
+	setarg 0x4b
+	istore 1,contw
+
+	/* linkB */
+	setarg 0xa1f07d
+	store 3,0x70
+	setarg 0xec97a6
+	istore 3,contw
+	setarg 0xae31eb
+	istore 3,contw
+	setarg 0x6fe3c4
+	istore 3,contw
+	setarg 0xa1ae1a
+	istore 3,contw
+	setarg 0x3a
+	istore 1,contw
+
+	/* linkkey */
+	setarg 0x07505b
+	store 3,0x80
+	setarg 0xc9fe74
+	istore 3,contw
+	setarg 0x057b76
+	istore 3,contw
+	setarg 0x316404
+	istore 3,contw
+	setarg 0xd884b3
+	istore 3,contw
+	setarg 0x71
+	istore 1,contw
+
+	/* K */
+	setarg 0x0c333f
+	store 3,0x90
+	setarg 0x41de70
+	istore 3,contw
+	setarg 0x9b05a2
+	istore 3,contw
+	setarg 0xb954a2
+	istore 3,contw
+	setarg 0xb37516
+	istore 3,contw
+	setarg 0x36
+	istore 1,contw
+
+	/* kinit */
+	setarg 0x5ff91a
+	store 3,0xa0
+	setarg 0x39b5a4
+	istore 3,contw
+	setarg 0x258f2d
+	istore 3,contw
+	setarg 0x5d4a85
+	istore 3,contw
+	setarg 0x656ad3
+	istore 3,contw
+	setarg 0xab
+	istore 1,contw
+
+	arg 0,contr
+	arg mem_random_number,contw
+	call memcpy16
+	setarg 0x3131
+	store 2,mem_pin
+	istore 2,contw
+	jam 4,mem_pin_length
+	arg 0xb8,rega
+	call function_e22
+	arg mem_input_store,contr
+	arg mem_kinit,contw
+	call memcpy16
+	arg 0x10,rega
+	arg mem_kinit,regb
+	arg mem_random_number,contw
+	call xor16
+	arg 0xb0,rega
+	call function_e21
+	arg 0x60,regb
+	call compare16
+error_lka:
+	nbranch error_lka,zero
+	arg mem_input_store,contr
+	arg mem_link_key,contw	
+	call memcpy16
+	arg 0x20,rega
+	arg mem_kinit,regb
+	arg mem_random_number,contw
+	call xor16
+	arg 0xb8,rega
+	call function_e21
+	arg 0x70,regb
+	call compare16
+error_lkb:
+	nbranch error_lkb,zero
+	arg mem_input_store,rega
+	arg mem_link_key,regb
+	arg mem_link_key,contw
+	call xor16
+	arg 0x30,contr
+	arg mem_random_number,contw
+	call memcpy16
+	arg 0xb8,rega
+	call function_e1
+	arg 0x50,regb
+	force 4,loopcnt
+	call compare_key
+error_sresa:
+	nbranch error_sresa,zero
+	arg 0x40,contr
+	arg mem_random_number,contw
+	call memcpy16
+	arg 0xb0,rega
+	call function_e1
+	arg 0x58,regb
+	force 4,loopcnt
+	call compare_key
+error_sresb:
+	nbranch error_sresb,zero
+	branch loop1
+	
+	arg 0,contr
+	arg mem_random_number,contw
+	call memcpy16
+	force 12,loopcnt
+	call memcpy
+	arg 0x1c,contr
+	arg mem_link_key,contw
+	call memcpy16
+	arg 0x10,rega
+	call function_e3
+	branch loop1
+
+compare16:
+	force 16,loopcnt
+compare_key:
+	arg mem_input_store,rega
+	branch compare_loop
+
+compare_loop:
+	ifetch 1,rega
+	ifetcht 1,regb
+	isub temp,null
+	nrtn zero
+	increase 1,rega
+	increase 1,regb
+	loop compare_loop
+	force 0,pdata
+	rtn
+
+endif
+
+
+loop1:	
+	branch loop1
+
+/* ==================== LE security ================= */
+
+generate_stk:
+	bpatchx patch2e_2,mem_patch2e
+	call function_s1
+	arg mem_le_ltk,contw
+	branch store_aes_result
+
+	/* contr = rand pointer */
+authenticate_rconfirm:
+	arg mem_le_srand,contw
+	branch authenticate_mconfirm,master
+	arg mem_le_mrand,contw
+authenticate_mconfirm:
+	copy contr,rega
+	call memcpy16
+	call function_c1
+	arg mem_le_rconfirm,contr
+	branch compare_res
+
+generate_confirm:
+	arg mem_le_mrand,rega
+	branch generate_mrand,master
+	arg mem_le_srand,rega
+generate_mrand:
+	copy rega,contw
+	call generate_random
+	branch function_c1
+
+generate_sk:
+	arg mem_le_skdm,contr
+	call load_data128
+	arg mem_le_ltk,contr
+	call load_regext
+	force 0x38,aes_ctrl
+	force 0x0,aes_ctrl
+	call wait_aes
+	arg mem_le_sk,contw
+	branch store_aes_result
+
+
+//input temp:counter; rega:len	
+ccm_b0:
+	force regidx_xor,regext_index				
+	force 0x49,pdata
+	branch iv_common
+	
+	/* temp=packet counter, rega = length or block counter*/
+first_block_counter:
+	force 0x49,pdata
+	branch first_block
+first_block_data:
+	force 1,pdata
+first_block:
+	force regidx_data,regext_index			
+iv_common:
+	lshift8 temp,regext
+	ior regext,regext
+	increase 1,regext_index
+	rshift8 temp,regext
+	rshift16 regext,regext
+	fetch 2,mem_ccm_iv
+	lshift16 pdata,pdata
+	ior regext,regext				/* octet3&octet4 of counter and low 16 bit of IV */
+	increase 1,regext_index
+	ifetchr regext, 4,contr					/* IV2-IV5 */
+	increase 1,regext_index
+	ifetch 2,contr					/* IV6-IV7 */
+	byteswap rega,regext
+	lshift16 regext,regext
+	ior regext,regext
+	increase 1,regext_index
+	rtn
+
+
+	/* temp=packet counter, regc pointers to data */	
+generate_mic:
+	add regc,1,contr
+	ifetch 1,contr
+	iforce rega
+	call first_block_counter		//B0
+	call do_aes_ocb
+
+	force regidx_data,regext_index			/* B1 */
+	ifetch 1,regc
+	and_into 0x3,pdata
+	lshift16 pdata,regext
+	set1 8,regext
+	call clear_hidata	//B1
+	call do_aes_cbc
+
+	copy rega,loopcnt
+	add regc,2,contr
+	call padding_data	//数据填充
+generate_mic_loop:
+	call aes_load_data
+	call do_aes_cbc
+	deposit loopcnt
+	branch generate_mic_end,blank
+	branch generate_mic_loop
+generate_mic_end:
+	force regidx_result,regext_index
+	deposit regext
+	store 4,mem_le_mic
+	rtn
+
+aes_crypt_data:
+	increase 1,rega
+	call first_block_data
+	copy regc,contr
+	call aes_load_xor
+	call do_aes_ctr
+	call store_enc_data
+	increase 16,regc
+	increase -16,regb
+	branch aes_crypt_data,positive
+	rtn
+
+/*
+ccm_br_enc:
+	arg mem_kc,contr  //mem_kc  key 
+	call load_key
+	
+	fetcht 5,mem_ccm_pcnt_tx
+	call generate_mic_br
+	force regidx_xor,regext_index
+	iforce regext
+	force 0,rega					
+	call first_block_data_br
+	call do_aes_ctr
+
+	fetch 2,mem_ccm_len
+ 	add pdata,-1,regb
+	iadd regc,contw
+	force regidx_result,regext_index
+	deposit regext
+	istore 4,contw	
+	store 4,mem_le_mic
+
+	call aes_crypt_data_br
+//	fetch 2,mem_ccm_len
+//	increase 4,pdata
+//	store 2,mem_ccm_len
+	fetcht 5,mem_ccm_pcnt_tx
+	increase 1,temp
+	storet 5,mem_ccm_pcnt_tx
+	rtn
+
+
+ccm_br_decrypt:
+	call disable_user2
+	copy contw,pdata
+	fetcht 2,mem_len
+	increase 4,temp
+	isub temp,pdata
+	store 2,mem_ccm_rx_ptr
+	
+	arg mem_kc,contr  //mem_kc  key // iv
+	call load_key
+	fetch 2,mem_ccm_rx_ptr
+	copy pdata,regc
+	fetch 2,mem_len
+	iadd regc,contr
+	add pdata,-1,regb	
+	ifetch 4,contr   //mic
+	force regidx_xor,regext_index
+	iforce regext
+	force 0,rega					
+	fetcht 5,mem_ccm_pcnt_rx
+	call first_block_data_br
+	call do_aes_ctr
+	force regidx_result,regext_index
+	deposit regext
+	store 4,mem_le_peer_mic
+	call aes_crypt_data_br
+
+	fetch 1,mem_lch_code
+	and pdata,0x3,pdata
+	store 1,mem_llid
+	fetch 1,mem_rx_type
+	copy pdata,type
+	fetch 2,mem_len
+	copy pdata,rega
+	fetch 2,mem_ccm_rx_ptr
+	copy pdata,regc
+	fetcht 5,mem_ccm_pcnt_rx	
+	call generate_mic_br
+	fetcht 4,mem_le_peer_mic
+	isub temp,pdata				
+	nrtn blank
+	fetch 4,mem_ccm_last_mic			
+	isub temp,pdata
+	rtn blank
+	storet 4,mem_ccm_last_mic
+	fetch 5,mem_ccm_pcnt_rx
+	increase 1,pdata
+	store 5,mem_ccm_pcnt_rx
+	branch enable_user2
+
+	//temp=packet counter, regc pointers to data, rega len	
+generate_mic_br:
+
+	call first_block_counter_br
+	call do_aes_ocb
+
+	force regidx_data,regext_index			
+	and type,0x0f,pdata
+	lshift3 pdata,pdata
+	ior am_addr,pdata  //lt_addr
+	lshift8 pdata,regext
+	fetch 1,mem_llid
+	lshift16 pdata,pdata
+	ior regext,regext
+	call clear_hidata
+	call do_aes_cbc
+
+	copy rega,loopcnt  //data length
+//	add regc,2,contr    // data ptr
+	copy regc,contr
+	call padding_data
+generate_mic_br_loop:
+	call aes_load_data
+	call do_aes_cbc
+	deposit loopcnt
+	branch generate_mic_br_end,blank
+	branch generate_mic_br_loop
+generate_mic_br_end:
+	force regidx_result,regext_index
+	deposit regext
+	store 4,mem_le_mic  //T
+	rtn	
+	
+aes_crypt_data_br:
+	increase 1,rega
+	call first_block_data_br
+	copy regc,contr
+	call aes_load_xor
+	call do_aes_ctr
+	call store_enc_data
+	increase 16,regc
+	increase -16,regb
+	branch aes_crypt_data_br,positive
+	rtn
+	
+	// temp=packet counter, rega = length or block counter
+first_block_counter_br:
+	force 0x49,pdata
+	branch first_block_br
+	
+first_block_data_br:
+	force 1,pdata
+first_block_br:
+	force regidx_data,regext_index			 
+	lshift8 temp,regext
+	ior regext,regext
+	increase 1,regext_index
+	rshift8 temp,regext
+	rshift16 regext,regext
+	fetch 2,mem_ccm_iv  //iv
+	lshift16,pdata,pdata
+	ior regext,regext				
+	increase 1,regext_index
+	ifetch 4,contr					
+	iforce regext
+	increase 1,regext_index
+	ifetch 2,contr					
+	byteswap rega,regext  
+	lshift16 regext,regext
+	ior regext,regext
+	increase 1,regext_index
+	rtn
+*/
+
+/*
+le_encrypt:
+	arg mem_le_txheader,regc
+	fetcht 5,mem_ccm_pcnt_tx
+	call generate_mic
+	force regidx_xor,regext_index
+	iforce regext
+	force 0,rega					 
+	call first_block_data
+	call do_aes_ctr
+	arg mem_le_txpayload,regc
+	fetch 1,mem_le_txlen
+	add pdata,-1,regb
+	iadd regc,contw
+	force regidx_result,regext_index
+	deposit regext
+	istore 4,contw	
+	call aes_crypt_data
+	fetch 1,mem_le_txlen
+	increase 4,pdata
+	store 1,mem_le_txlen
+	fetcht 5,mem_ccm_pcnt_tx
+	increase 1,temp
+	set0 LE_CCM_DIRECTIONBIT,temp
+	storet 5,mem_ccm_pcnt_tx
+	rtn
+
+le_decrypt:
+	fetch 1,mem_le_rxbuf+1
+	arg mem_le_rxbuf+2,regc
+	add pdata,-1,regb
+	increase -4,pdata				
+	store 1,mem_le_rxbuf+1
+	iadd regc,contr
+	ifetch 4,contr
+	force regidx_xor,regext_index
+	iforce regext
+	force 0,rega					
+	fetcht 5,mem_ccm_pcnt_rx
+	call first_block_data	//generate nonce
+	call do_aes_ctr
+	force regidx_result,regext_index
+	deposit regext
+	store 4,mem_le_peer_mic
+	call aes_crypt_data
+	arg mem_le_rxbuf,regc
+	call generate_mic
+	fetcht 4,mem_le_peer_mic
+	isub temp,pdata				
+	nrtn blank
+	fetch 4,mem_ccm_last_mic			
+	isub temp,pdata
+	rtn blank
+	storet 4,mem_ccm_last_mic
+	fetch 5,mem_ccm_pcnt_rx
+	increase 1,pdata
+	set1 LE_CCM_DIRECTIONBIT,pdata
+	store 5,mem_ccm_pcnt_rx
+	force 0,pdata
+	rtn
+*/
+
+
+//input regc input playload addr; 
+ccm_br_enc_new:
+	call ccm_init_common
+	bpatchx patch2e_3,mem_patch2e
+	arg mem_kc,contr   
+	call load_key
+	
+	jam 0,core_ccm_aad0 
+	and type,0x0f,pdata
+	lshift3 pdata,pdata
+	ior am_addr,pdata  
+	store 1,core_ccm_aad1
+	fetch 1,mem_llid
+	store 1,core_ccm_aad2
+
+	storer regc,2,core_ccm_input_playload_addr
+	storer regc,2,core_ccm_output_playload_addr
+	
+	fetchr rega,2,mem_ccm_len
+	fetcht 5,mem_ccm_pcnt_tx			
+	call ccm_br_check_0_length_continuation
+	call ccm_b0
+	jam 2,core_ccm_ctrl
+	jam 3,core_ccm_ctrl
+
+	fetch 2,mem_ccm_len
+	store 2,core_ccm_inptr
+	increase 4,pdata
+	store 2,mem_ccm_len
+	copy regc,pdata
+	iadd rega,rega
+	call wait_ccm_done
+	arg regidx_result,regext_index
+	istorer regext, 4 ,rega
+	storer regext, 4,mem_le_mic
+	rtn
+
+ccm_br_pcnt_tx_add:
+	fetch 5,mem_ccm_pcnt_tx
+	increase 1,pdata
+	store 5,mem_ccm_pcnt_tx
+	branch ccm_br_pcnt_tx_set
+
+
+ccm_br_check_0_length_continuation:
+	fetch 1,mem_llid
+	rtnne LLID_L2CAP_CONT
+	fetch 2,mem_ccm_len
+	nrtn blank
+	set1 BR_CCM_0_LENGTH_CONTINUATION,temp
+	rtn
+
+
+ccm_br_pcnt_tx_set:
+	fetch 1,mem_ccm_pcnt_tx+4
+ 	and pdata,0x0f,pdata
+ 	or pdata,0x20,pdata
+ 	store 1,mem_ccm_pcnt_tx+4
+ 	rtn
+ 	
+ccm_br_pcnt_rx_set:
+	fetch 1,mem_ccm_pcnt_rx+4
+ 	and pdata,0x0f,pdata
+ 	store 1,mem_ccm_pcnt_rx+4
+ 	rtn
+ 	
+ccm_br_decrypt_new:
+	copy contw,pdata
+	fetcht 2,mem_len
+	increase 4,temp
+	isub temp,pdata
+	store 2,mem_ccm_rx_ptr
+	store 2,core_ccm_input_playload_addr
+	store 2,core_ccm_output_playload_addr
+
+	call disable_user2
+	call ccm_init_common
+	arg mem_kc,contr 
+	call load_key
+	
+	jam 0,core_ccm_aad0 
+	fetch 1,mem_rx_type
+	and pdata,0x0f,pdata
+	lshift3 pdata,pdata
+	ior am_addr,pdata  
+	store 1,core_ccm_aad1
+	fetch 1,mem_lch_code
+	and pdata,0x3,pdata
+	store 1,mem_llid
+	store 1,core_ccm_aad2
+	
+	fetchr rega, 2,mem_len
+	storer rega,2,mem_ccm_len
+	fetch 2,mem_ccm_rx_ptr
+	iadd rega,contr
+	force regidx_data,regext_index
+	ifetchr regext, 4,contr
+	storer  regext,4,mem_le_peer_mic
+	fetcht 5,mem_ccm_pcnt_rx		
+	call ccm_br_check_0_length_continuation
+	call ccm_b0
+	jam 6,core_ccm_ctrl
+	jam 7,core_ccm_ctrl
+
+	fetch 2,mem_len
+	store 2,core_ccm_inptr
+	call wait_ccm_done
+	fetch 1,core_misc_status
+	rtnbit0 7
+	branch enable_user2
+
+
+ccm_br_pcnt_rx_add:	
+	fetch 2,mem_len
+	rtn blank
+	rtnmark1 mark_old_packet
+	fetcht 4,mem_le_peer_mic
+//	fetch 4,mem_ccm_last_mic			
+//	isub temp,pdata
+///	rtn blank
+	storet 4,mem_ccm_last_mic
+	fetch 5,mem_ccm_pcnt_rx
+	increase 1,pdata
+	store 5,mem_ccm_pcnt_rx
+	branch ccm_br_pcnt_rx_set
+
+
+ 	
+le_decrypt_new:
+ 	call ccm_init_common
+	jam 0,core_ccm_aad0 
+	jam 1,core_ccm_aad1
+	fetch 1,mem_le_rxbuf_data_header
+	and_into 0x3,pdata
+	store 1,core_ccm_aad2
+	
+	setarg mem_le_rxbuf_data_payload
+	store 2,core_ccm_input_playload_addr
+	store 2,core_ccm_output_playload_addr
+
+	fetchr rega, 1,mem_le_rxbuf_data_length
+	increase -4,rega
+	nbranch disable_blank,positive
+	storer rega, 1,mem_le_rxbuf_data_length
+	setarg mem_le_rxbuf_data_payload
+	iadd rega,contr
+	force regidx_data,regext_index
+	ifetchr regext, 4,contr
+	storer  regext,4,mem_le_peer_mic
+	fetcht 5,mem_ccm_pcnt_rx				
+	call ccm_b0
+	jam 6,core_ccm_ctrl
+	jam 7,core_ccm_ctrl
+	fetch 1,mem_le_rxbuf_data_length
+	store 2,core_ccm_inptr
+	call wait_ccm_done
+	fetch 1,core_misc_status
+	bbit0 7, disable_blank
+	fetcht 4,mem_le_peer_mic
+	fetch 4,mem_ccm_last_mic			/* reduntdant packet? */
+	isub temp,pdata
+	rtn blank
+	storet 4,mem_ccm_last_mic
+	fetch 5,mem_ccm_pcnt_rx
+	increase 1,pdata
+	set1 LE_CCM_DIRECTIONBIT,pdata
+	store 5,mem_ccm_pcnt_rx
+	force 0,pdata
+	rtn
+
+
+le_encrypt_new:
+	call le_encrypt_new_start
+	setarg mem_le_txpayload
+	iadd rega,rega
+	call wait_ccm_done
+	arg regidx_result,regext_index
+	istorer regext, 4 ,rega
+	rtn
+
+
+le_encrypt_new_start:
+	call ccm_init_common
+	bpatchx patch2e_4,mem_patch2e
+	jam 0,core_ccm_aad0 
+	jam 1,core_ccm_aad1
+	fetch 1,mem_le_txheader
+	and_into 0x3,pdata
+	store 1,core_ccm_aad2
+	fetch 2,mem_contr
+	store 2,core_ccm_input_playload_addr
+	setarg mem_le_txpayload
+	store 2,core_ccm_output_playload_addr
+	
+	fetchr rega,1,mem_le_txlen
+	fetcht 5,mem_ccm_pcnt_tx				
+	call ccm_b0
+	jam 2,core_ccm_ctrl
+	jam 3,core_ccm_ctrl
+	
+	fetch 1,mem_le_txlen
+	store 2,core_ccm_inptr
+	increase 4,pdata
+	store 1,mem_le_txlen
+	fetch 5,mem_ccm_pcnt_tx
+	increase 1,pdata
+ 	set0 LE_CCM_DIRECTIONBIT,pdata
+	store 5,mem_ccm_pcnt_tx
+	rtn
+
+
+ccm_wait_enc:
+	fetch 2,core_ccm_outptr
+	isub temp,null
+	rtn zero 
+	nrtn blank
+//	call assert
+	branch ccm_wait_enc
+
+ccm_check_enc_done:
+	fetch 1,core_misc_status
+	bbit0 6,assert
+ccm_enc_done:
+	setarg mem_le_txpayload
+	iadd temp,contw	
+	arg regidx_result,regext_index
+	istorer regext, 4 ,contw	
+	branch ccm_ctrl_clr
+	
+ccm_init_common:
+	bpatchx patch2e_5,mem_patch2e
+	force regidx_result,regext_index
+	call aes_clear
+	call aes_clear_data
+ 	setarg 0
+	store 2,core_ccm_inptr
+	rtn
+	
+wait_ccm_done:
+	fetch 1,core_misc_status
+	bbit0 6,wait_ccm_done
+ccm_ctrl_clr:
+	jam 0,core_ccm_ctrl
+	rtn
+
+
+wait_aes:
+	nbranch wait_aes,aes_ready
+	rtn
+
+do_aes_ocb:
+	force 0x30,aes_ctrl
+	force 0x0,aes_ctrl
+	branch wait_aes
+
+do_aes_cbc:
+	force 0x32,aes_ctrl
+	force 0x2,aes_ctrl
+	branch wait_aes
+
+do_aes_ctr:
+	force 0x34,aes_ctrl
+	force 0x4,aes_ctrl
+	branch wait_aes
+
+	
+aes_init:
+	force 1,aes_ctrl
+	force 0,aes_ctrl
+	rtn
+function_s1:
+	force regidx_data,regext_index
+	fetch 4,mem_le_mrand
+	iforce regext
+	increase 1,regext_index
+	ifetch 4,contr
+	iforce regext
+	increase 1,regext_index
+	fetch 4,mem_le_srand
+	iforce regext
+	increase 1,regext_index
+	ifetch 4,contr
+	iforce regext
+	increase 1,regext_index
+	call aes_clear
+	increase -4,regext_index
+	fetch 4,mem_le_tk
+	copy pdata,regext
+	increase 4,regext_index
+	force 0x38,aes_ctrl
+	force 0x8,aes_ctrl
+	branch wait_aes
+
+	/* rega pointers to random number */
+function_c1:
+	bpatchx patch2e_6,mem_patch2e
+	fetch 6,mem_le_lap
+	fetcht 6,mem_le_plap
+	branch function_c1_master,master
+	fetch 6,mem_le_plap
+	fetcht 6,mem_le_lap
+function_c1_master:
+	force regidx_xor,regext_index
+	copy temp,regext
+	increase 1,regext_index
+	rshift32 temp,regext
+	lshift16 pdata,pdata
+	ior regext,regext
+	increase 1,regext_index
+	rshift32 pdata,regext
+	increase 1,regext_index
+	force 0,regext					/* p2 = ia || ra */
+	force 0,pdata
+	fetch 1,mem_le_conn_peer_addr_type
+	fetcht 1,mem_le_adv_own_addr_type
+	nbranch function_c1_irat,master
+	//conn as master
+	fetch 1,mem_le_conn_own_addr_type
+	fetcht 1,mem_le_conn_peer_addr_type
+function_c1_irat:
+	store 1,mem_le_iat
+	storet 1,mem_le_rat
+	force regidx_data,regext_index
+	arg mem_le_iat,regb
+	force 4,loopcnt
+function_c1_loop1:
+	ifetch 4,rega		
+	ifetcht 4,regb
+	ixor temp,regext
+	increase 1,regext_index
+	increase 4,rega
+	increase 4,regb
+	loop function_c1_loop1		/* p1 ^ r */
+	call aes_clear				/* k = 0 */
+	increase -4,regext_index
+	fetch 4,mem_le_tk
+	copy pdata,regext
+	increase 4,regext_index
+	force 0x38,aes_ctrl
+	force 0xc,aes_ctrl
+	call wait_aes
+
+	call aes_clear_data
+	force 0x3a,aes_ctrl
+	force 0x8,aes_ctrl
+	branch wait_aes
+
+padding_data:
+	compare 0,loopcnt,3
+	rtn true
+	deposit contr
+	iadd loopcnt,contw
+	force 0,pdata
+padding_loop:
+	istore 1,contw
+	increase 1,loopcnt
+	compare 0,loopcnt,3
+	rtn true
+	branch padding_loop
+
+aes_load_data:
+	force regidx_data,regext_index
+load_data_loop:
+	deposit loopcnt
+	branch load_data_padding,blank
+	ifetch 4,contr
+	increase -4,loopcnt
+load_data_padding:
+	iforce regext
+	increase 1,regext_index
+	compare regidx_key,regext_index,0xf
+	rtn true
+	branch load_data_loop
+
+aes_load_xor:
+	force regidx_xor,regext_index
+	branch load_regext
+load_key:
+	force regidx_key,regext_index
+	branch load_regext
+load_data128:
+	force regidx_data,regext_index
+load_regext:
+	force 4,loopcnt
+load_regext_loop:
+	ifetch 4,contr
+	iforce regext
+	increase 1,regext_index
+	loop load_regext_loop
+	rtn
+
+load_sk:
+	arg mem_le_sk,contr
+	branch load_key
+
+clear_hidata:
+	force 4,loopcnt
+	branch clear_data_rest
+
+aes_clear_data:
+	force regidx_data,regext_index
+aes_clear:
+	force 4,loopcnt
+clear_loop:
+	force 0,regext
+clear_data_rest:
+	increase 1,regext_index
+	loop clear_loop
+	rtn
+
+store_aes_result:
+	force regidx_result,regext_index
+	force 4,loopcnt
+send_aes_result_loop:
+	deposit regext
+	istore 4,contw
+	increase 1,regext_index
+	loop send_aes_result_loop
+	rtn
+
+store_enc_data:
+	force regidx_result,regext_index
+	copy regc,contw
+	add regb,1,loopcnt
+	sub loopcnt,15,null
+	branch store_enc_loop,positive
+	force 16,loopcnt
+store_enc_loop:
+	deposit regext
+	sub loopcnt,3,null
+	branch store_enc_byte,positive
+	istore 4,contw
+	increase -4,loopcnt
+	rtn zero
+	increase 1,regext_index
+	branch store_enc_loop
+store_enc_byte:
+	istore 1,contw
+	rshift8 pdata,pdata
+	loop store_enc_byte
+	rtn
+	
+	/* contr pointers to value to be compared */
+compare_res:
+	force regidx_result,regext_index
+	force 4,loopcnt
+compare_res_loop:
+	ifetch 4,contr
+	isub regext,null
+	nrtn zero
+	increase 1,regext_index
+	loop compare_res_loop
+	force 0,null
+	rtn
+
+enable_authrom:
+	fetch 1,core_clkoff
+	set0 CLOCK_OFF_AUTH_ROM,pdata
+	store 1,core_clkoff
+	rtn
+
+disable_authrom:
+	fetch 1,core_clkoff
+	set1 CLOCK_OFF_AUTH_ROM,pdata
+	store 1,core_clkoff
+	rtn
+
+//24 mem_p :ff ff ff ff ff ff ff ff fe ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
+//24 mem_a: fc ff ff ff ff ff ff ff fe ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
+//24 mem_b: b1 b9 46 c1 ec de b8 fe 49 30 24 72 ab e9 a7 0f e7 80 9c e5 19 05 21 64
+//24 mem_gx :12 10 ff 82 fd 0a ff f4 00 88 a1 43 eb 20 bf 7c f6 90 30 b0 0e a8 8d 18
+//24 mem_gy :11 48 79 1e a1 77 f9 73 d5 cd 24 6b ed 11 10 63 78 da c8 ff 95 2b 19 07
+//32 memh0   :19 cd e0 5b ab d9 83 1f 8c 68 05 9b 7f 52 0e 51 3a f5 4f a5 72 f3 6e 3c 85 ae 67 bb 67 e6 09 6a //sha use
+init_memp:
+	arg mem_p,contw
+	setsect 0,0x3ffff
+	setsect 1,0x3ffff
+	setsect 2,0x3ffff
+	setsect 3,0x3fbff
+	istore 9,contw
+	setsect 0,0x3ffff
+	setsect 1,0x3ffff
+	setsect 2,0x3ffff
+	setsect 3,0x3ffff
+	istore 9,contw
+	setsect 0,0x3ffff
+	setsect 1,0x3ffff
+	setsect 2,0x3cfff
+	setsect 3,0x3ffff
+	istore 9,contw
+	setsect 0,0x3ffff
+	setsect 1,0x3ffff
+	setsect 2,0x3ffef
+	setsect 3,0x3ffff
+	istore 9,contw
+	setsect 0,0x3ffff
+	setsect 1,0x3ffff
+	setsect 2,0x3ffff
+	setsect 3,0x3ffff
+	istore 9,contw
+	setsect 0,0x3ffff
+	setsect 1,0x26c7f
+	setsect 2,0x146b
+	setsect 3,0x37bb3
+	istore 9,contw
+	setsect 0,0x1feb8
+	setsect 1,0x10c12
+	setsect 2,0x2b722
+	setsect 3,0x29fa6
+	istore 9,contw
+	setsect 0,0xe70f
+	setsect 1,0x16720
+	setsect 2,0x519e
+	setsect 3,0x19084
+	istore 9,contw
+	setsect 0,0x31012
+	setsect 1,0x360bf
+	setsect 2,0x3f0af
+	setsect 3,0x3d3
+	istore 9,contw
+	setsect 0,0x3a188
+	setsect 1,0x3ad0
+	setsect 2,0x3cbf2
+	setsect 3,0x243d9
+	istore 9,contw
+	setsect 0,0x2b030
+	setsect 1,0x36a03
+	setsect 2,0x11188
+	setsect 3,0x1e520
+	istore 9,contw
+	setsect 0,0x3a11e
+	setsect 1,0xfe5d
+	setsect 2,0xdd57
+	setsect 3,0x1ac93
+	istore 9,contw
+	setsect 0,0x11ed
+	setsect 1,0x218c4
+	setsect 2,0x8da7
+	setsect 3,0x257ff
+	istore 9,contw
+	setsect 0,0x3192b
+	setsect 1,0x34641
+	setsect 2,0x1be0c
+	setsect 3,0x366ad
+	istore 9,contw
+	setsect 0,0x1f83
+	setsect 1,0x15a23
+	setsect 2,0x3f9b0
+	setsect 3,0x3949
+	istore 9,contw
+	setsect 0,0x13a51
+	setsect 1,0x153fd
+	setsect 2,0x3372a
+	setsect 3,0xf1bb
+	istore 9,contw
+	setsect 0,0x3ae85
+	setsect 1,0x1eed9
+	setsect 2,0x9e66
+	setsect 3,0x1a8
+	istore 8,contw
+	rtn
+	
+ifdef SECURE_CONNECTION
+
+// mem_p_256:ff ff ff ff ff ff ff ff ff ff ff ff 00 00 00 00 00 00 00 00 00 00 00 00 01 00 00 00 ff ff ff ff
+// mem_a_256: fc ff ff ff ff ff ff ff fe ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff b1 b9 46 c1 ec de b8 fe
+// mem_gx_256: 96 c2 98 d8 45 39 a1 f4 a0 33 eb 2d 81 7d 03 77 f2 40 a4 63 e5 e6 bc f8 47 42 2c e1 f2 d1 17 6b
+// mem_gy_256: f5 51 bf 37 68 40 b6 cb ce 5e 31 6b 57 33 ce 2b 16 9e 0f 7c 4a eb e7 8e 9b 7f 1a fe e2 42 e3 4f
+// mem_le_slat :be 83 60 5a db 0b 37 60 38 a5 f5 aa 91 83 88 6c
+init_memp_256:
+ 	arg mem_p_256,contw
+        setsect 0,0x3ffff
+        setsect 1,0x3ffff
+        setsect 2,0x3ffff
+        setsect 3,0x3ffff
+        istore 9,contw
+        setsect 0,0x3ffff
+        setsect 1,0x3f
+        setsect 2,0x0
+        setsect 3,0x0
+        istore 9,contw
+        setsect 0,0x0
+        setsect 1,0x0
+        setsect 2,0x1000
+        setsect 3,0x0
+        istore 9,contw
+        setsect 0,0x3ff00
+        setsect 1,0x3ffff
+        setsect 2,0x3ffcf
+        setsect 3,0x3ffff
+        istore 9,contw
+        setsect 0,0x3ffff
+        setsect 1,0x3ffff
+        setsect 2,0x3ffff
+        setsect 3,0x3ff
+        istore 9,contw
+        setsect 0,0x0
+        setsect 1,0x0
+        setsect 2,0x0
+        setsect 3,0x0
+        istore 9,contw
+        setsect 0,0x10000
+        setsect 1,0x0
+        setsect 2,0x3f000
+        setsect 3,0x3ffff
+        istore 9,contw
+        setsect 0,0x296ff
+        setsect 1,0x22630
+        setsect 2,0x3945d
+        setsect 3,0x3d284
+        istore 9,contw
+        setsect 0,0x333a0
+        setsect 1,0x4b7a
+        setsect 2,0x37d8
+        setsect 3,0x3c9dc
+        istore 9,contw
+        setsect 0,0x3a440
+        setsect 1,0x1b958
+        setsect 2,0x38bce
+        setsect 3,0x1091f
+        istore 9,contw
+        setsect 0,0x2e12c
+        setsect 1,0x1f47c
+        setsect 2,0x356b1
+        setsect 3,0x2fd47
+        istore 9,contw
+        setsect 0,0x6837
+        setsect 1,0x2ed90
+        setsect 2,0x1ecec
+        setsect 3,0x1acc5
+        istore 9,contw
+        setsect 0,0x23357
+        setsect 1,0x18af3
+        setsect 2,0xf9e1
+        setsect 3,0x129f0
+        istore 9,contw
+        setsect 0,0x2e7eb
+        setsect 1,0x3e6e3
+        setsect 2,0x3e1a7
+        setsect 3,0x10b8b
+        istore 9,contw
+        setsect 0,0x24fe3
+        setsect 1,0x20ef
+        setsect 2,0x1b5a6
+        setsect 3,0xdc2f
+        istore 9,contw
+        setsect 0,0x13860
+        setsect 1,0x2bd69
+        setsect 2,0x391a
+        setsect 3,0x1b222
+        istore 9,contw
+        rtn
+endif
+
Index: program/sim.prog
===================================================================
--- /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/program/sim.prog	(nonexistent)
+++ /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/program/sim.prog	(working copy)
@@ -0,0 +1,626 @@
+simstart:
+	force 8,radio_ctrl
+	force 0,radio_ctrl
+	jam 0xff,rfen_ck
+	jam 5,core_clksel
+	jam 0,core_clkoff
+	jam 0,core_clkoff+1
+//	call sim_gpio
+//	jam 0xa0,0x90a
+//	jam 0x8f,0x90d
+//	branch sim_usb
+//	branch sim_iic
+//	branch sim_clk
+//	call sim_cal
+//	call sim_uart
+//	branch sim_c1
+//	branch loop
+//	call sim_spi
+//	call sim_eep
+//	branch test_tx
+	branch sim_le
+//	branch sim_250k
+	branch sim_main
+sim_lpm:
+	fetch 1,0x9ffd
+	beq 1,sim_assert
+	setarg 0
+	store 8,mem_gpio_wakeup_low
+	arg 30,temp
+	branch lpm_sleep
+sim_lpm_sleep:
+	jam 1,mem_context
+	branch sim_lpm_wait,wake
+	jam 0x70,core_bist_ctrl
+	jam ccnt_start,core_misc_ctrl
+sim_lpm_wait:
+	call lpo_calibration
+	fetch 3,mem_clks_per_lpo
+	branch sim_lpm_wait,blank
+	call lpm_recover_clk,wake
+	jam 0x1b,mem_lpm_ldocnt
+	arg sim_assert,loopcnt
+	fetch 1,core_gpio_wakeup_low+2
+	bbit0 2,sim_lpm_loop
+	until null,lpo_edge
+	jam 0x20,core_misc_ctrl
+	until null,lpo_edge
+sim_lpm_loop:
+	fetch 1,core_misc_status
+	bbit1 6,sim_lpm_loop
+	fetch 1,core_gpio_in+3
+	compare 0x20,pdata,0x20
+	setarg 0
+	setflag true,29,pdata
+	setflag true,30,pdata
+	store 4,mem_gpio_wakeup_low
+	setarg 0
+	nsetflag true,29,pdata
+	nsetflag true,30,pdata
+	store 4,mem_gpio_wakeup_high
+	arg 300,temp
+	branch lpm_sleep
+
+sim_assert:
+	branch sim_assert
+
+
+sim_main:
+	call init_param
+	setarg 0
+	store 2,core_clkoff
+	setarg 0xff00
+	store 2,core_lpm_reg+2
+	jam lpmreg_sel_ctrl2,core_lpm_wr
+	fetch 1,mem_sim_slave
+	beq 1,sim_slave
+	jam dvc_op_hci,mem_device_option
+	fetch 6,mem_lap
+	store 6,mem_hci_plap
+	setarg 0xbdbdbd
+	store 3,mem_lap
+	istore 3,contw
+	jam hci_cmd_create_conn,mem_hci_cmd
+	force 0x10,pdata
+	add pdata,-2,clkn_bt
+	store 4,mem_page_clk
+	rshift clkn_bt,pdata
+	store 4,mem_last_clkn
+	jam 0,mem_scan_mode
+sim_loop:
+	call idle_dispatch
+	fetch 1,mem_context
+	bbit0 state_inconn,sim_skip
+	set1 mark_tx_l2cap,mark
+	fetch 1,mem_context + coffset_op		
+	set1 op_txl2cap,pdata
+	store 1,mem_context + coffset_op
+	jam 0,mem_context + coffset_lmp_to_send
+	jam 0,mem_lmo_opcode2
+	setarg 300
+	store 2,mem_tx_len
+	setarg mem_tmp_buffer
+	store 2,mem_txptr
+	jam 6,mem_tx_lch
+	jam 1,mem_hci_conn_handle
+sim_skip:
+	call connection_dispatch
+	branch sim_loop		
+
+sim_slave:
+	jam 2,mem_scan_mode
+	call page_scan_dispatch
+	branch sim_skip
+
+sim_le:
+//	jam lemode_2m,mem_le_mode
+//  jam lemode_lr_s2,mem_le_mode
+//  jam lemode_lr_s8,mem_le_mode
+	fetch 1,mem_sim_slave
+	beq 1,sim_le_slave
+	jam 1,mem_le_scan_enable
+sim_le_loop:
+	call le_advertising_dispatch
+	branch sim_le_loop
+
+sim_le_slave:
+	jam 1,mem_le_adv_enable
+	nop 1000
+	branch sim_le_loop
+
+sim_usb:
+	call usb_init
+sim_usb_loop:
+	call usb_isr
+	branch sim_usb_loop
+
+sim_uart:
+	jam 0x67,mem_h5tx_buf
+	setarg mem_h5tx_buf
+	add pdata,0x80,temp
+	call uarta_init_tx
+	increase 0x80,pdata
+	increase 0x80,temp
+	call uartb_init_rx
+	jam gpcfg_uart_txd,core_gpio_conf
+	jam gpcfg_uartb_rxd | gpcfg_pullup,core_gpio_conf + 1
+	jam 0x81,core_uart_ctrl
+	jam 0x81,core_uartb_ctrl
+	setarg 0x30
+	store 2,core_uart_baud
+	store 2,core_uartb_baud
+	fetch 1,mem_sim_slave
+	beq 1,sim_uart_slave
+	call uarta_prepare_tx
+	call sim_uart_wait+3
+	setarg 0x1357d9a
+	istore 4,contu
+	arg 0xaa69,rega
+	istorer rega,2,contu
+	setarg 0xfedcb3
+	istore 3,contu
+	storer contu,2,core_uart_twptr
+sim_uart_wait:
+	fetch 1,core_uart_status
+	bbit1 uart_status_tx_busy,sim_uart_wait
+	nop 200
+	rtn
+
+sim_uart_slave:
+	fetch 1,core_uartb_status
+	bbit1 uart_status_rx_fifo_empty,sim_uart_slave
+	fetch 1,core_uartb_rxitems
+	bne 9,sim_uart_slave
+	fetcht 8,mem_h5tx_buf
+	call uartb_prepare_rx
+	ifetch 8,contu
+	isub temp,null
+	nbranch assert,zero
+	rtn
+
+
+
+sim_cal:
+
+	call tx_iq_precomp
+	fetchr regf,2,mem_omega
+	ifetchr regf,2,contr
+	ifetchr regf,2,contr
+	fetchr regf,2,mem_b1
+	ifetchr regf,2,contr
+	fetchr regf,2,mem_b2
+	ifetchr regf,2,contr
+	arg 0x1000,timeup
+	call tx_iq_cal
+	jam 1,core_ice_ctrl
+
+	arg 0x1000,timeup
+	call rx_iq_comp
+	jam 1,core_ice_ctrl
+	
+
+ifdef NULL
+
+sim_iic:
+	call iicd_init_12m
+	setarg 3
+	store 2,core_iicd_txlen
+	setarg 0x1f051e
+	store 3,mem_iicd_addr
+	setarg mem_iicd_addr
+	store 2,core_iicd_txaddr
+	setarg 1
+	store 2,core_iicd_rxlen
+	jam 3,core_iicd_ctrl
+	jam iicd_start,core_misc_ctrl
+	call wait_iicd_done
+	nop 300
+	setarg 0xd321d2
+	store 3,mem_iicd_addr
+	jam iicd_start,core_misc_ctrl
+	call wait_iicd_done
+s_loop:
+	branch s_loop
+
+sim_gpio:
+	jam 0xc0,core_gpio_pu3
+	call lpm_disable_exen_output
+	fetch 4,core_gpio_in
+	bbit0 4,sim_gpio + 2
+	nop 3
+	fetch 4,core_gpio_in
+	nop 3
+	fetch 4,core_gpio_in
+	rtn
+
+
+	
+sim_250k:
+	call init_250k
+	fetch 1,0x8001
+	bbit1 7,sim_250k_rx
+	call tx_radio_freq
+	call start_transmitter	/* get ready for that id packet */
+	nop 600
+	enable encode_fec0
+	set1 TXGFSK,radio_ctrl
+	force 0,pdata
+	inject mod,9
+	setarg 0xaa
+	inject mod,8
+	preload access
+	inject mod,32
+	setarg 0x1da861
+	inject mod,24
+	setarg 0x94445b
+	inject mod,24
+	setarg 0x1275f
+	inject mod,24
+	branch loop
+sim_250k_rx:
+	call rx_radio_freq
+	call start_receiver	/* wait for that id packet from master */
+	enable decode_fec0
+	correlate null,never
+	parse demod,bucket,72
+	branch loop
+
+	
+
+
+
+
+sim_spi:
+	call spid_init_flash
+	call spid_unlock_flash
+	call spid_init
+	setarg 0x35
+	call spid_read_reg
+	nop 200
+	force 4,temp
+	setarg 0x42
+	branch spid_read_regs
+
+sim_eep:
+	call iicd_init_12m
+	setarg 3
+	store 2,core_iicd_txlen
+	setarg 0x1f051e
+	store 3,mem_iicd_addr
+	setarg mem_iicd_addr
+	store 2,core_iicd_txaddr
+	setarg 1
+	store 2,core_iicd_rxlen
+	jam 3,core_iicd_ctrl
+	jam iicd_start,core_misc_ctrl
+	call wait_iicd_done
+	nop 200
+	setarg 0x18f7a3b
+	store 4,mem_iicd_addr
+	arg mem_iicd_addr,rega
+	arg 4,temp
+	setarg 0x1235
+	call iicd_write_eep
+	nop 300
+	arg mem_ucode_keybuf,rega
+	arg 1,temp
+	setarg 0x3512
+	store 2,mem_addr_mi
+	call iicd_read_eep
+	arg 1,temp
+	setarg 0x3512
+	store 2,mem_addr_mi
+	call iicd_read_eep
+	nop 200
+	setarg 0xa1
+	arg 3,temp
+	arg mem_ucode_keybuf,rega
+	branch iicd_read_data
+
+sim_otp:
+	setarg 0x123456
+	store 3,0x800
+	setarg 0x10
+	arg 0x800,rega
+	arg 0x10,loopcnt
+	branch otp_write
+
+sim_clk:
+	add lpo_time,12,alarm
+	snooze
+clock_loop:
+	nop 100
+	jam 1,core_config
+	setflag user,0,pdata
+	random pdata
+	and_into 0x1f,pdata
+	store 1,core_clksel
+	nop 70
+	jam 2,core_kick
+	nop 200
+	branch clock_loop
+	jam 2,core_clksel
+	setarg 1500
+	call sleep
+	jam 0x42,core_clksel
+	add lpo_time,200,alarm
+	snooze
+	branch 0x4000
+
+sim_c1:
+	setarg 0xb4b5b6
+	store 3,mem_le_lap
+	setarg 0xb1b2b3
+	istore 3,contw
+	setarg 0xa4a5a6
+	store 3,mem_le_plap
+	setarg 0xa1a2a3
+	istore 3,contw
+	setarg 0x101
+	store 4,mem_le_preq
+	setarg 0x70710
+	istore 3,contw
+	setarg 0x302
+	store 4,mem_le_pres
+	setarg 0x50008
+	istore 3,contw
+
+	arg regidx_key,regext_index
+	arg 4,loopcnt
+sim_clear_key_loop:
+	arg 0,regext
+	increase 1,regext_index
+	loop sim_clear_key_loop
+
+	setarg 0x702EE0
+	store 3,mem_le_rconfirm
+	setarg 0x274EC6
+	istore 3,contw
+	setarg 0x0E6388
+	istore 3,contw
+	setarg 0x56AD6F
+	istore 3,contw
+	setarg 0x83D521
+	istore 3,contw
+	setarg 0x57	
+	istore 1,contw
+	arg mem_le_rconfirm,rega
+	call aes_init
+	call function_c1
+	branch loop
+endif
+
+
+
+
+
+//iic read function
+//function name:sim_iic_read_eep_data
+//input:
+//temp:the length that simulation iic want to read eeprom data
+//rega:the memmory point that simulation iic read data store
+//regb:the eeprom address offset
+//mark_eeprom_size:select 02 or other
+//output:nc
+sim_iic_read_eep_data:
+	fetch 2,mem_eeprom_base
+	iadd regb,pdata
+	byteswap pdata,pdata
+	store 2,mem_addr_mi
+	copy temp,regb
+	
+	call sim_iic_start
+	setarg 0xa0
+	call sim_iic_send_byte
+	fetch 1,mem_addr_mi
+	call sim_iic_send_byte
+	bmark1 mark_eeprom_size,sim_iic_read_eep_data_2k
+	fetch 1,mem_addr_mi + 1
+	call sim_iic_send_byte
+sim_iic_read_eep_data_2k:
+	call sim_iic_stop
+
+	call sim_iic_start
+	setarg 0xa1
+	call sim_iic_send_byte
+
+sim_iic_read_eep_data_loop:
+	call sim_iic_read_byte
+	istore 1,rega
+	increase 1,rega
+	increase -1,regb
+	nbranch sim_iic_read_eep_data_loop,zero
+	branch sim_iic_stop
+
+
+//iic write data function
+//function name:sim_iic_write_eep_data
+//input:
+//temp:the length that simulation iic want to write eeprom data
+//rega:the memmory point that simulation iic write data read
+//regb:the eeprom address
+//mark_eeprom_size:select 02 or other
+//output:nc
+sim_iic_write_eep_data:
+	byteswap regb,pdata
+	store 2,mem_addr_mi
+	copy temp,regb
+
+	call sim_iic_start
+	setarg 0xa0
+	call sim_iic_send_byte
+
+	fetch 1,mem_addr_mi
+	call sim_iic_send_byte
+	bmark1 mark_eeprom_size,sim_iic_write_eep_data_loop
+	fetch 1,mem_addr_mi + 1
+	call sim_iic_send_byte
+sim_iic_write_eep_data_loop:
+	ifetch 1,rega
+	call sim_iic_send_byte
+	increase 1,rega
+	increase -1,regb
+	nbranch sim_iic_write_eep_data_loop,zero
+	branch sim_iic_stop
+//	bmark1 mark_eeprom_size
+
+//use reg:pdata,contr,contw,loopcnt
+sim_iic_wait_ack:
+	arg 10,loopcnt
+	call sim_iic_release_sda
+	call sim_iic_scl_output_high	//scl = 1
+	call sim_iic_delay				//delay 2.5us
+sim_iic_wait_ack_loop:
+	call sim_iic_read_sda_level
+	branch sim_iic_scl_output_low,blank	//scl = 0
+	loop sim_iic_wait_ack_loop
+	branch sim_iic_scl_output_low		//scl = 0	
+
+
+//use reg:pdata,contr,contw,rega,queue
+sim_iic_ack_slave:
+	call sim_iic_scl_output_low		//scl = 0	
+	call sim_iic_sda_output_low		//sda = 0
+	call sim_iic_delay				//delay 2.5us
+	call sim_iic_scl_output_high	//scl = 1
+	call sim_iic_delay				//delay 2.5us
+	branch sim_iic_scl_output_low	//scl = 0	
+
+
+//output:pdata receive byte data
+//use reg:pdata,contr,contw,loopcnt,regc,rega
+sim_iic_read_byte:
+	arg 8,loopcnt
+	arg 0,regc
+	call sim_iic_release_sda
+sim_iic_read_byte_loop:
+	call sim_iic_scl_output_high	//scl = 1
+	call sim_iic_delay				//delay 2.5us
+	lshift regc,regc	
+	call sim_iic_read_sda_level
+	iadd regc,regc
+	call sim_iic_delay				//delay 2.5us
+	call sim_iic_scl_output_low		//scl = 0	
+	loop sim_iic_read_byte_loop
+	call sim_iic_ack_slave
+	copy regc,pdata
+	rtn
+
+//input:pdata send byte data
+//use reg:pdata,contr,contw,loopcnt,regc,rega
+sim_iic_send_byte:
+	arg 8,loopcnt
+	copy pdata,regc
+	call sim_iic_scl_output_low		//scl = 0	
+sim_iic_send_byte_loop:
+	isolate1 7,regc
+	call sim_iic_sda_output_high,true	//sda = 1
+	ncall sim_iic_sda_output_low,true	//sda = 0
+	lshift regc,regc
+	call sim_iic_delay				//delay 2.5us
+	call sim_iic_scl_output_high	//scl = 1
+	call sim_iic_delay				//delay 2.5us
+	call sim_iic_scl_output_low		//scl = 0	
+	call sim_iic_delay				//delay 2.5us
+	loop sim_iic_send_byte_loop
+	branch sim_iic_wait_ack
+
+
+//use reg:pdata,contr,contw,rega
+sim_iic_start:
+	call sim_iic_sda_output_high	//sda = 1
+	call sim_iic_scl_output_high	//scl = 1
+	call sim_iic_delay				//delay 2.5us
+	call sim_iic_sda_output_low		//sda = 0
+	call sim_iic_delay				//delay 2.5us
+	branch sim_iic_scl_output_low		//scl = 0
+
+
+//use reg:pdata,contr,contw,rega
+sim_iic_stop:
+	call sim_iic_sda_output_low		//sda = 0
+	call sim_iic_scl_output_high	//scl = 1
+	call sim_iic_delay				//delay 2.5us
+	call sim_iic_sda_output_high	//sda = 1
+	branch sim_iic_delay				//delay 2.5us
+
+
+//scl = 1
+sim_iic_scl_output_high:
+	enable user
+	fetch 1,SIM_IIC_SCL_GPIO_NUM
+	branch sim_iic_config_gpio
+
+//scl = 0
+sim_iic_scl_output_low:
+	disable user
+	fetch 1,SIM_IIC_SCL_GPIO_NUM
+	branch sim_iic_config_gpio
+
+//sda = 1
+sim_iic_sda_output_high:
+	enable user
+	fetch 1,SIM_IIC_SDA_GPIO_NUM
+	branch sim_iic_config_gpio
+
+//sda = 0
+sim_iic_sda_output_low:
+	disable user
+	fetch 1,SIM_IIC_SDA_GPIO_NUM
+	branch sim_iic_config_gpio
+
+//input:pdata the gpio number
+//input:user flag, if enable user,config gpio output high level; if disable user, config gpio output low level
+//use reg:pdata,contr,contw,queue,rega
+sim_iic_config_gpio:
+	and pdata,0x07,queue
+	rshift3 pdata,pdata
+	arg core_gpio_conf,temp
+	iadd temp,temp
+	ifetch 1,temp
+	qset1 pdata
+	istore 1,temp
+	increase 4,temp
+	ifetch 1,temp
+	qsetflag user,pdata
+	istore 1,temp
+	rtn
+
+
+sim_iic_release_sda:
+	fetch 1,SIM_IIC_SDA_GPIO_NUM
+	and pdata,0x07,queue
+	rshift3 pdata,pdata
+	arg core_gpio_conf,temp
+	iadd temp,temp
+	ifetch 1,temp
+	qset0 pdata
+	istore 1,temp
+	rtn	
+
+//get sda level
+//output:if sda high level ,pdata is 1;if sda low level ,pdata is 0
+//use reg:pdata,contr,contw,queue,rega,temp
+sim_iic_read_sda_level:
+	nop 4
+	fetch 1,SIM_IIC_SDA_GPIO_NUM
+	and pdata,0x07,queue
+	rshift3 pdata,pdata
+	arg core_gpio_in,temp
+	iadd temp,temp
+	setarg 0
+	ifetcht 1,temp
+	qisolate1 temp
+	setflag true,0,pdata
+	rtn	
+
+//delay 2.5us
+sim_iic_delay:
+//	nop 1
+	rtn
+
+/**********************************/
+
+
+
+
Index: program/simple_pairing.prog
===================================================================
--- /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/program/simple_pairing.prog	(nonexistent)
+++ /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/program/simple_pairing.prog	(working copy)
@@ -0,0 +1,2918 @@
+
+publickey_init:
+	fetch 1,mem_ssp_enable
+	nbranch sp_initialize,blank
+	branch sp_initialize_256
+
+sp_calc_sequence_256_check:
+	bpatchx patch2e_7,mem_patch2e
+	fetch 1,mem_ssp_enable
+	rtn blank
+	fetch 1,mem_sp_local_key_invalid
+	rtnne SP_KEY_VALID
+	fetch 1,mem_secure_connections_enable
+	rtn blank
+	fetch 1,mem_sc_local_key_invalid
+	rtneq SP_KEY_VALID_256
+	fetch 2,mem_ui_state_map
+	bbit1 UI_STATE_BT_CONNECTED,stop_publickey_calc_256
+	fetch 1,mem_sc_calc
+	beq SP_CALC_STANDBY,sp_initialize_256
+	rtn
+stop_publickey_calc_256:
+	jam SP_CALC_STANDBY,mem_sc_calc	
+	rtn
+
+
+sp_br_secure_connection_enable:
+	fetch 1,mem_secure_connections_enable
+	set1 SECURE_CONNECTIONS_BR_BIT,pdata
+	store 1,mem_secure_connections_enable
+	rtn
+	
+sp_br_secure_connection_disable:
+	fetch 1,mem_secure_connections_enable
+	set0 SECURE_CONNECTIONS_BR_BIT,pdata
+	store 1,mem_secure_connections_enable
+	rtn
+	
+ifdef SIMPLE_PAIRING
+
+sp_initialize:
+	bpatchx patch2f_0,mem_patch2f
+	fetch 1,mem_ssp_enable 
+	nbranch sp_pubkey_calc, blank
+sp_reset:
+	call sp_clear_flags
+	jam SP_KEY_INVALID,mem_sp_local_key_invalid
+	jam SP_CALC_STANDBY,mem_sp_calc
+	rtn
+	
+sp_wait_pubkey_calc_done:
+	fetch 1,mem_ssp_enable
+	rtn blank
+	fetch 1,mem_sp_local_key_invalid
+	rtneq SP_KEY_VALID
+	call sp_calc_sequence
+	branch sp_wait_pubkey_calc_done
+	
+sp_clear_flags:
+	setarg mem_sp_state_end
+	arg mem_sp_state_start,contw
+	isub contw,loopcnt
+	call clear_mem
+	setarg mem_sp_state_xmem_end
+	arg mem_sp_state_xmem,contw
+	isub contw,loopcnt
+	branch clear_mem
+
+sp_generate_local_key:
+	jam SP_FLAG_COMMIT,mem_sp_flag  
+	fetch 1,mem_encapsulated_minor_type
+	beq ENCAPSULATED_MINOR_TYPE_P256,sp_generate_local_key0_256
+	beq ENCAPSULATED_MINOR_TYPE_P192,sp_generate_local_key0_192
+	rtn	
+	
+sp_generate_local_key0_256:
+	fetch 1,mem_sc_local_key_invalid
+	beq SP_KEY_VALID_256,sp_start_send_pubkey_256
+	branch sp_pubkey_calc_256
+sp_start_send_pubkey_256:
+	call sp_dhkey_calc_256
+	fetch 1,mem_master_sp_state
+	nrtn blank
+	jam SP_STAT_KEY_SEND,mem_sp_state
+	rtn
+	
+sp_master_generate_local_key:
+	fetch 1,mem_sp_local_key_invalid
+	beq SP_KEY_VALID,sp_dhkey_calc
+	branch assert
+	
+sp_generate_local_key0_192:
+	fetch 1,mem_sp_local_key_invalid
+	beq SP_KEY_VALID,sp_start_send_pubkey
+	branch sp_pubkey_calc
+    
+sp_start_send_pubkey:
+	call sp_dhkey_calc
+	fetch 1,mem_master_sp_state
+	nrtn blank
+	jam SP_STAT_KEY_SEND,mem_sp_state
+	rtn
+
+
+sp_calc_check_publickey_256:
+	call sp_calc_b256
+	arg mem_le_pubkey_remote_y_256,rega
+	arg mem_t7_256,contw
+	call bn_sqrmod_256   
+	arg mem_le_pubkey_remote_x_256,rega
+	arg mem_t2_256,contw
+	call bn_sqrmod_256   
+  	arg mem_t2_256,rega
+	arg mem_le_pubkey_remote_x_256,regb
+	arg mem_t2_256,contw
+	call bn_mulmod_256	
+  	arg mem_a_256,rega
+	arg mem_le_pubkey_remote_x_256,regb
+	arg mem_t3_256,contw
+	call bn_mulmod_256	
+  	arg mem_t3_256,rega
+	arg mem_t2_256,regb
+	arg mem_t2_256,contw
+	call bn_addmod_256	 
+  	arg mem_t0_256,rega
+	arg mem_t2_256,regb
+	arg mem_t0_256,contw
+	call bn_addmod_256	 
+	arg 32,loopcnt
+  	arg mem_t7_256,rega
+	arg mem_t0_256,regb
+	branch  string_compare
+	
+sp_calc_b256:
+	arg mem_gy_256,rega
+	arg mem_t0_256,contw
+	call bn_sqrmod_256   
+	arg mem_gx_256,rega
+	arg mem_t2_256,contw
+	call bn_sqrmod_256    
+  	arg mem_t2_256,rega
+	arg mem_gx_256,regb
+	arg mem_t2_256,contw
+	call bn_mulmod_256	
+  	arg mem_a_256,rega
+	arg mem_gx_256,regb
+	arg mem_t3_256,contw
+	call bn_mulmod_256	 
+  	arg mem_t3_256,rega
+	arg mem_t2_256,regb
+	arg mem_t2_256,contw
+	call bn_addmod_256	 
+  	arg mem_t0_256,rega
+	arg mem_t2_256,regb
+	arg mem_t0_256,contw
+	branch  bn_submod_256	
+	
+sp_calc_check_publickey:
+	call sp_calc_b
+	arg mem_sp_pubkey_remote_y,rega
+	arg mem_t7_256,contw
+	call bn_sqrmod 
+	arg mem_sp_pubkey_remote_x,rega
+	arg mem_t2_256,contw
+	call bn_sqrmod
+  	arg mem_t2_256,rega
+	arg mem_sp_pubkey_remote_x,regb
+	arg mem_t2_256,contw
+	call bn_mulmod	
+  	arg mem_a,rega
+	arg mem_sp_pubkey_remote_x,regb
+	arg mem_t3_256,contw
+	call bn_mulmod	
+  	arg mem_t3_256,rega
+	arg mem_t2_256,regb
+	arg mem_t2_256,contw
+	call bn_addmod	 
+  	arg mem_t0_256,rega
+	arg mem_t2_256,regb
+	arg mem_t0_256,contw
+	call bn_addmod	 
+ 	arg 24,loopcnt
+ 	arg mem_t7_256,rega
+	arg mem_t0_256,regb
+	branch  string_compare
+	
+sp_calc_b:
+	arg mem_gy,rega
+	arg mem_t0_256,contw
+	call bn_sqrmod   
+	arg mem_gx,rega
+	arg mem_t2_256,contw
+  	call bn_sqrmod
+  	arg mem_t2_256,rega
+	arg mem_gx,regb
+	arg mem_t2_256,contw
+	call bn_mulmod	
+	arg mem_a,rega
+	arg mem_gx,regb
+	arg mem_t3_256,contw
+	call bn_mulmod	 
+  	arg mem_t3_256,rega
+	arg mem_t2_256,regb
+	arg mem_t2_256,contw
+	call bn_addmod	 
+  	arg mem_t0_256,rega
+	arg mem_t2_256,regb
+	arg mem_t0_256,contw
+	branch  bn_submod	
+
+   
+sp_calculate_commitment:
+	fetch 1,mem_encapsulated_minor_type
+	beq ENCAPSULATED_MINOR_TYPE_P256,sp_calculate_commitment_256
+	beq ENCAPSULATED_MINOR_TYPE_P192,sp_calculate_commitment_192
+	rtn
+
+sp_calculate_commitment_256:
+	fetch 1,mem_sc_calc
+	bne SP_CALC_STANDBY,sp_calculate_commitment_wait_dhkey_calc
+	call sp_local_random_key_generator
+	arg mem_sp_prarm_stack,contw
+	setarg mem_sp_random_local_end
+	istore 2,contw
+	setarg mem_sc_pubkey_local_x_256+32
+	istore 2,contw
+	setarg mem_le_pubkey_remote_x_256+32
+	istore 2,contw
+//	branch sp_calculate_commitment0
+sp_calculate_commitment0_256:
+	call function_f1_256
+	fetch 1,mem_master_sp_state
+	beq SP_STAT_COMMIT_CALC,master_sp_calculate_commitment0
+	jam SP_FLAG_COMMIT,mem_sp_flag
+	jam SP_STAT_COMMIT_SEND,mem_sp_state
+	rtn
+	
+sp_calculate_commitment_192:	
+	fetch 1,mem_sp_calc
+	bne SP_CALC_STANDBY,sp_calculate_commitment_wait_dhkey_calc
+	call sp_local_random_key_generator
+	arg mem_sp_prarm_stack,contw
+	setarg mem_sp_random_local_end
+	istore 2,contw
+	setarg mem_sp_pubkey_local_x_end
+	istore 2,contw
+	setarg mem_sp_pubkey_remote_x_end
+	istore 2,contw
+	branch sp_calculate_commitment0
+master_sp_calculate_commitment:
+	arg mem_sp_prarm_stack,contw
+	setarg mem_sp_random_remote_end
+	istore 2,contw
+	setarg mem_sp_pubkey_remote_x_end
+	istore 2,contw
+	setarg mem_sp_pubkey_local_x_end
+	istore 2,contw
+sp_calculate_commitment0:
+	call function_f1_192
+	fetch 1,mem_master_sp_state
+	beq SP_STAT_COMMIT_CALC,master_sp_calculate_commitment0
+	jam SP_FLAG_COMMIT,mem_sp_flag
+	jam SP_STAT_COMMIT_SEND,mem_sp_state
+	rtn
+master_sp_calculate_commitment0:
+	jam SP_STAT_COMMITMENT_COMPARE,mem_master_sp_state
+	call sp_master_generate_local_key
+	branch master_set_mem_master_sp_flag 
+
+sp_local_random_key_generator:
+	arg mem_sp_random_local,contw
+	force 8,queue
+	branch random_generator
+  
+sp_calculate_commitment_wait_dhkey_calc:
+	jam      SP_FLAG_COMMIT,mem_sp_flag
+	rtn
+    
+sp_confirm_check:
+	fetch 1,mem_encapsulated_minor_type
+	beq ENCAPSULATED_MINOR_TYPE_P256,sp_confirm_check_256
+	beq ENCAPSULATED_MINOR_TYPE_P192,sp_confirm_check_192
+sp_confirm_check_wait:
+	jam SP_STAT_CONFIRM_CHECK,mem_sp_state
+	jam SP_FLAG_COMMIT,mem_sp_flag  
+	rtn
+
+sp_confirm_check_256:	
+	fetch 1,mem_sp_dhkey_invalid
+	bne SP_KEY_VALID_256,sp_confirm_check_wait
+	branch sp_confirm_check_common
+	
+sp_confirm_check_192:	
+	fetch 1,mem_sp_dhkey_invalid
+	bne SP_KEY_VALID,sp_confirm_check_wait
+sp_confirm_check_common:	
+	arg      mem_addr_value,contw
+	fetch    6,mem_lap
+	istore   6,contw
+	fetch    6,mem_plap
+	istore   6,contw
+	fetch    3,mem_sp_iocap_remote
+	istore   3,contw 
+
+	call     function_f3a
+
+	arg      mem_sp_calc_result_high,rega
+	arg      mem_sp_check_result,regb    
+	force    4,queue 
+	call     compare4
+	nbranch  sp_confirm_check_failed,true  
+
+	call sp_confirm_check_success
+	jam LMP_DHKey_Check,mem_lmi_opcode2
+	branch tid_set_reply
+    
+sp_confirm_check_success:
+	fetch 1,mem_master_sp_state
+	beq SP_STAT_CONFIRM_CHECK,sp_confirm_check_success_master
+	jam SP_STAT_CONFIRM_CALC,mem_sp_state
+	jam SP_FLAG_COMMIT,mem_sp_flag  
+	jam LMP_ACCEPTED,mem_lmo_opcode2
+	rtn
+sp_confirm_check_success_master:
+	jam LMP_ACCEPTED,mem_lmo_opcode2
+	jam SP_STATE_END,mem_master_sp_state
+	branch master_set_mem_master_sp_flag
+	//accept opcode?
+	
+sp_confirm_check_failed:
+	fetch 1,mem_master_sp_state
+	beq SP_STAT_CONFIRM_CHECK,sp_confirm_check_failed_master
+	jam SP_STAT_NULL,mem_sp_state
+	jam LMP_NOT_ACCEPTED,mem_lmo_opcode2
+	//accept opcode?
+	jam      AUTHENTICATION_FAILURE_ERROR,mem_lmo_reason2 
+	rtn
+sp_confirm_check_failed_master:
+	jam LMP_NOT_ACCEPTED,mem_lmo_opcode2
+	jam SP_STAT_NULL,mem_master_sp_state
+	rtn
+    
+sp_confirm_calc:
+	fetch 1,mem_encapsulated_minor_type
+	beq ENCAPSULATED_MINOR_TYPE_P256,sp_confirm_calc_256
+	beq ENCAPSULATED_MINOR_TYPE_P192,sp_confirm_calc_192
+	rtn
+	
+sp_confirm_calc_256:	
+	fetch 1,mem_sp_dhkey_invalid
+	beq SP_KEY_VALID_256,sp_confirm_calc_ready
+	jam 	SP_STAT_CONFIRM_CALC,mem_master_sp_state
+	branch master_set_mem_master_sp_flag
+	
+sp_confirm_calc_192:
+	fetch 1,mem_sp_dh_ready
+	beq SP_FLAG_COMMIT, sp_confirm_calc_ready
+	jam 	SP_STAT_CONFIRM_CALC,mem_master_sp_state
+	branch master_set_mem_master_sp_flag
+	
+sp_confirm_calc_ready:
+	arg      mem_addr_value,contw
+	fetch    6,mem_plap
+	istore   6,contw
+	fetch    6,mem_lap
+	istore   6,contw
+	fetch    3,mem_lmp_io_cap_payload_iocap
+	istore   3,contw 
+
+	call     function_f3b
+	fetch 1,mem_master_sp_state
+	beq SP_STAT_CONFIRM_CALC,sp_confirm_calc_master
+	jam      SP_STAT_CONFIRM_SEND,mem_sp_state
+	jam      SP_FLAG_COMMIT,mem_sp_flag
+	rtn
+sp_confirm_calc_master:
+	jam      SP_STAT_CONFIRM_SEND,mem_master_sp_state
+	jam      SP_FLAG_COMMIT,mem_master_sp_flag
+	rtn   
+
+sp_master_key_prarm_push:
+	arg mem_sp_prarm_stack,contw
+	fetch    6,mem_plap
+	istore   6,contw
+	fetch    6,mem_lap
+	istore   6,contw
+	setarg mem_sp_random_local_end
+	istore 2,contw
+	setarg mem_sp_random_remote_end
+	istore 2,contw
+	branch sp_link_key_calc
+sp_link_key_prarm_push:
+	jam      SP_STAT_DONE,mem_sp_state    
+	arg mem_sp_prarm_stack,contw
+	fetch    6,mem_lap
+	istore   6,contw
+	fetch    6,mem_plap
+	istore   6,contw
+	setarg mem_sp_random_remote_end
+	istore 2,contw
+	setarg mem_sp_random_local_end
+	istore 2,contw
+sp_link_key_calc:
+    /*calculate Link key here */
+	arg      mem_addr_value,contw
+	fetch    6,mem_sp_prarm_stack
+	istore   6,contw
+	fetch    6,mem_sp_prarm_stack+6
+	istore   6,contw
+	
+	call     function_f2    
+
+	/*handle linkkey  */
+	jam 1,mem_link_key_exists
+	arg mem_link_key,contw
+	arg mem_sp_calc_result_high,contr
+	call memcpy16
+	branch  generate_linkkey_continue
+
+//FF18A5F4EFD25E622B140CCFD6F15D0027DC8D91865F9107
+sp_debug_private:
+  	arg mem_sp_private_key,contw
+        setsect 0,0x118ff
+        setsect 1,0x3fd29
+        setsect 2,0x1ed2e
+        setsect 3,0xad89
+        istore 9,contw
+        setsect 0,0x30c14
+        setsect 1,0x75b3
+        setsect 2,0x5df
+        setsect 3,0x3709c
+        istore 9,contw
+        setsect 0,0x2918d
+        setsect 1,0x57e1
+        setsect 2,0x79
+        istore 6,contw
+        rtn
+	
+    
+sp_pubkey_calc:
+	bpatchx patch2f_1,mem_patch2f
+	fetch    1,mem_sp_local_key_invalid
+	rtnne SP_KEY_INVALID
+	fetch    1,mem_sp_calc
+	rtnne  SP_CALC_STANDBY
+	call init_memp
+	arg      mem_sp_private_key,contw 
+	force    11,queue
+	call     random_generator
+	random   pdata
+	rshift   pdata,pdata
+	istore   2,contw 
+
+	fetch 1,mem_sp_debug_mode
+	ncall sp_debug_private,blank
+	 
+	arg      mem_k,contw
+	arg      mem_sp_private_key,contr	
+	call     memcpy24 //mem_sp_private_key=>mem_k 24BYTES
+
+	arg      mem_ax,contw
+	arg      mem_gx,contr
+	call     memcpy48 //mem_gx=>mem_ax 48bytes
+
+	arg      mem_az,contw
+	call     bn_zero
+	jam      1,mem_az //0=>mem_az 24bytes
+
+	call     eckp_calc_init
+	jam SP_CALC_PUBKEY,mem_sp_calc
+	rtn    
+	
+sp_pubkey_generated:
+	arg      mem_sp_pubkey_local,contw
+	arg      mem_bx,contr
+	call     memcpy48   
+	jam      SP_KEY_VALID,mem_sp_local_key_invalid
+	jam      SP_CALC_STANDBY,mem_sp_calc
+	rtn
+
+sp_dhkey_calc:
+	bpatchx patch2f_2,mem_patch2f
+	fetch    1,mem_sp_dhkey_invalid
+	rtnne  SP_KEY_INVALID
+	fetch    1,mem_sp_calc
+	rtnne  SP_CALC_STANDBY
+
+	arg      mem_k,contw
+	arg      mem_sp_private_key,contr	
+	call     memcpy24
+
+	arg      mem_ax,contw
+	arg      mem_sp_pubkey_remote,contr
+	call     memcpy48
+
+	arg      mem_az,contw
+	call     bn_zero
+	jam      1,mem_az
+
+	call     eckp_calc_init
+	jam      SP_CALC_DHKEY,mem_sp_calc
+	rtn 	
+	
+sp_dhkey_generated:
+	jam SP_FLAG_COMMIT,mem_sp_dh_ready
+	arg mem_sp_dhkey,contw
+	arg mem_bx,contr
+	call memcpy24
+	jam SP_KEY_VALID,mem_sp_dhkey_invalid
+	jam SP_CALC_STANDBY,mem_sp_calc
+	rtn
+
+random_generator:
+	increase -1,queue
+	nrtn     positive
+	random   pdata
+	istore   2,contw  
+	branch   random_generator
+compare4:
+	increase -1,queue
+	nbranch  compare4_success,positive
+	ifetch   4,rega
+	copy     pdata,temp
+	ifetch   4,regb
+	iflip    temp,pdata
+	nbranch  compare4_failed,zero
+	increase 4,rega
+	increase 4,regb
+	branch   compare4
+compare4_failed:
+	disable  true
+	rtn
+compare4_success:
+	enable   true
+	rtn
+
+/*************************************************/
+/** Message state machine routines ***************/
+/*************************************************/
+// simple pairing support 
+
+simple_pairing_sequence:
+	bpatchx patch2f_3,mem_patch2f
+         fetch 1,mem_sp_flag
+         rtn blank
+	call lmo_fifo_check
+	nrtn blank
+	jam      SP_FLAG_STANDBY,mem_sp_flag
+	fetch    1,mem_sp_state
+	beq  SP_STAT_KEY_SEND,sp_send_LMP_ENCAPSULATED_HEADER
+	beq  SP_STAT_COMMIT_SEND,sp_send_LMP_SIMPLE_PAIRING_COMFIRM
+	beq  SP_STAT_RANDOM_SEND,sp_send_LMP_SIMPLE_PAIRING_NUMBER
+	beq  SP_STAT_CONFIRM_SEND,sp_send_LMP_DHKEY_CHECK
+	beq  SP_STAT_KEY_GENERATE,sp_generate_local_key
+	beq  SP_STAT_COMMIT_CALC,sp_calculate_commitment
+	beq  SP_STAT_CONFIRM_CHECK,sp_confirm_check
+	beq  SP_STAT_CONFIRM_CALC,sp_confirm_calc
+	beq  SP_STAT_LINK_KEY_CALC,sp_link_key_prarm_push
+	//beq  SP_STAT_FEATURE_EXT_SEND,send_LMP_FEATURES_REQ_EXT
+	rtn  
+
+master_simple_paring_sequence:
+	bpatchx patch2f_4,mem_patch2f
+	fetch 1,mem_master_sp_flag
+	rtn blank
+	call lmo_fifo_check
+	nrtn blank
+	jam SP_FLAG_STANDBY,mem_master_sp_flag
+	fetch 1,mem_master_sp_state
+	beq SP_MASTER_STAT_START_SKIP,sp_master_send_io_cap_get
+	beq SP_MASTER_STAT_START_DONE,sp_master_send_io_cap_send
+	beq SP_STAT_KEY_SEND,sp_master_send_LMP_ENCAPSULATED_HEADER
+	beq SP_STAT_COMMIT_CALC,master_sp_calculate_commitment
+	beq SP_STAT_COMMITMENT_COMPARE,sp_master_commitment_compare
+	beq SP_STAT_RANDOM_SEND,sp_master_send_LMP_SIMPLE_PAIRING_NUMBER
+	beq SP_STAT_CONFIRM_CALC,sp_confirm_calc
+	beq SP_STAT_CONFIRM_SEND,master_sp_send_lmp_dhkey_check
+	beq SP_STAT_CONFIRM_CHECK,sp_confirm_check
+	beq SP_STATE_END,master_sp_sm_end
+	rtn
+
+master_set_mem_master_sp_flag:
+	jam SP_FLAG_COMMIT,mem_master_sp_flag
+	rtn
+	
+master_clear_mem_master_sp_flag:
+	jam SP_FLAG_STANDBY,mem_master_sp_flag
+	rtn
+sp_calc_sequence:
+	bpatchx patch2f_5,mem_patch2f
+	fetch 1,mem_ssp_enable
+	rtn blank
+	fetch 1,mem_sp_calc
+	rtn blank
+	increase 0x80,pdata
+	store    1,mem_sp_calc
+	rtnbit1 7
+	fetch    1,mem_ec_loopc
+	branch   sp_calc_sequence_done,blank
+	branch   eckp_calc
+
+sp_calc_sequence_done:    
+	call ecunmapz
+	fetch 1,mem_sp_calc
+	beq  SP_CALC_PUBKEY,sp_pubkey_generated
+	beq  SP_CALC_DHKEY,sp_dhkey_generated
+	rtn
+
+
+bn_testbit:
+	and pdata,7,queue
+	rshift3 pdata,pdata
+	iadd contr,contr
+	ifetch 1,contr
+	qisolate0 pdata
+	rtn
+
+
+ec_copy:
+	call memcpy24
+	call memcpy24
+	branch memcpy24
+	
+	
+bn_eq_zero:
+	ifetch 8,contr
+	nrtn blank
+	ifetch 8,contr
+	nrtn blank
+	ifetch 8,contr
+	rtn
+	
+	
+	/* return zero if eq */
+
+bn_eq_0:	
+	ifetch 4,rega
+	iforce temp
+	ifetch 4,regb
+	isub temp,null
+	nrtn zero
+	increase 4,rega
+	increase 4,regb
+	loop bn_eq_0
+	rtn
+
+	/* return positive if A >= B */
+bn_bigeq:
+	force 6,loopcnt
+	increase 20,rega
+	increase 20,regb
+bn_bigeq_0:	
+	ifetch 4,regb
+	iforce temp
+	ifetch 4,rega
+	isub temp,pdata
+	nrtn positive
+	nrtn blank
+	increase -4,rega
+	increase -4,regb
+	loop bn_bigeq_0
+	rtn
+
+bn_add:
+	force 6,loopcnt
+	force 0,regc
+bn_add_0:	
+	ifetch 4,rega
+	iforce temp
+	ifetch 4,regb
+	iadd temp,pdata
+	iadd regc,pdata
+	istore 4,contw
+	isolate1 32,pdata
+	setflag true,0,regc
+	increase 4,rega
+	increase 4,regb
+	loop bn_add_0
+	rtn
+
+bn_sub:
+	force 6,loopcnt
+	force 0,regc
+bn_sub_0:	
+	ifetch 4,regb
+	iforce temp
+	ifetch 4,rega
+	isub temp,pdata
+	isub regc,pdata
+	istore 4,contw
+	isolate1 32,pdata
+	setflag true,0,regc
+	increase 4,rega
+	increase 4,regb
+	loop bn_sub_0
+	rtn
+
+bn_rshift6:
+	force 6,loopcnt
+	increase 20,rega
+bn_rshift:
+	force 0,regc
+bn_rshift_0:	
+	ifetch 4,rega
+	isolate1 0,pdata
+	setflag true,1,regc
+	rshift pdata,pdata
+	isolate1 0,regc
+	setflag true,31,pdata
+	istore 4,rega
+	increase -4,rega
+	rshift regc,regc
+	loop bn_rshift_0
+	rtn
+
+bn_lshift:
+	force 6,loopcnt
+	force 0,regc
+bn_lshift_0:	
+	ifetch 4,rega
+	isolate1 31,pdata
+	setflag true,1,regc
+	lshift pdata,pdata
+	isolate1 0,regc
+	setflag true,0,pdata
+	istore 4,rega
+	increase 4,rega
+	rshift regc,regc
+	loop bn_lshift_0
+	rtn
+	
+bn_lshiftmod:
+	call bn_lshift
+bn_lshiftmod_ismod:	
+	isolate1 0,regc
+	branch bn_lshiftmod_0,true
+	arg mem_p,regb
+	copy rega,regc
+	increase -24,rega
+	call bn_bigeq
+	nrtn positive
+	copy regc,rega
+bn_lshiftmod_0:
+	increase -24,rega
+	arg mem_p,regb
+	copy rega,contw
+	branch bn_sub
+	
+
+bn_addmod:
+	call bn_add
+	copy contw,rega
+	branch bn_lshiftmod_ismod
+	
+bn_submod:
+	call bn_sub
+	isolate0 0,regc
+	rtn true
+	arg mem_p,regb
+	add contw,-24,rega
+	copy rega,contw
+	branch bn_add
+	
+
+bn_p192mod:
+	copy contw,timeup				/* save result ptr */
+	copy rega,alarm				/* temp save rega */
+	arg mem_tmp2,regb
+	copy regb,contw
+	add rega,24,contr
+	ifetch 8,contr
+	istore 8,contw
+	istore 8,contw
+	force 0,pdata
+	istore 8,contw
+	copy timeup,contw
+	call bn_addmod
+	arg mem_tmp2,regb
+	copy regb,contw
+	force 0,pdata
+	istore 8,contw
+	add alarm,32,contr
+	ifetch 8,contr
+	istore 8,contw
+	istore 8,contw
+	copy timeup,rega
+	copy rega,contw
+	call bn_addmod
+	arg mem_tmp2,regb
+	copy regb,contw
+	add alarm,40,contr
+	ifetch 8,contr
+	istore 8,contw
+	istore 8,contw
+	istore 8,contw
+	copy timeup,rega
+	copy rega,contw
+	branch bn_addmod
+		
+
+bn_load:
+	force 6,loopcnt
+bn_load_0:	
+	ifetch 4,contr
+	iforce regext
+	increase 1,regext_index
+	loop bn_load_0
+	rtn
+
+
+	/* cost 1562 clks */	
+bn_mulmod:
+	copy contw,timeup					/* save result ptr */
+	arg mem_tmp1,contw
+	call bn_zero
+	arg mem_tmp1,contw
+	copy rega,contr
+	force 0,regext_index
+	call bn_load
+	copy regb,contr
+	call bn_load
+	force 0,regb
+bn_mulmod_1:	
+	force 0,temp
+	force 6,regc
+bn_mulmod_0:
+	ifetch 4,contw					/* d[i+j] */
+	iforce rega
+	copy regb,regext_index
+	deposit regext
+	copy regc,regext_index
+	imul32 regext,pdata
+	iadd rega,pdata					/* uv = a[i]*b[j] + d[i+j] */
+	iadd temp,pdata					/* uv += u */
+	istore 4,contw					/* ->d[i+j] */
+	rshift32 pdata,temp				/* temp = u = uv >> 32 */
+	increase 1,regc
+	compare 12,regc,0xff
+	nbranch bn_mulmod_0,true
+	deposit temp
+	istore 4,contw					/* d[i + 12] = u */
+	increase -24,contw
+	increase 1,regb
+	compare 6,regb,0xff
+	nbranch bn_mulmod_1,true
+	arg mem_tmp1,rega
+	copy timeup,contw
+	branch bn_p192mod
+
+	
+bn_sqrmod:
+	copy rega,regb
+	branch bn_mulmod
+
+bn_rshifteven:
+	copy rega,alarm
+bn_rshifteven_1:
+	copy alarm,rega
+	ifetch 1,rega
+	isolate1 0,pdata
+	rtn true
+	call bn_rshift6
+	ifetch 1,regb
+	isolate0 0,pdata
+	branch bn_rshifteven_0,true
+	arg mem_p,rega
+	copy regb,contw
+	call bn_add
+	ifetch 1,regb
+	iadd regc,pdata
+	istore 1,regb						/* [6] */
+	increase -24,regb
+bn_rshifteven_0:
+	add regb,24,rega
+	force 7,loopcnt
+	call bn_rshift
+	branch bn_rshifteven_1
+
+	/* cost 141910 clks */
+bn_invmod:
+	copy contw,timeup					/* save result ptr */
+	arg mem_tmp0,contw				/* x */
+	call bn_zero
+	force 0,pdata
+	store 4,mem_tmp5
+	store 4,mem_t2
+	jam 1,mem_tmp0
+	arg mem_tmp1,contw				/* y */
+	call bn_zero
+	arg mem_p,contr
+	arg mem_tmp2,contw				/* a */
+	call memcpy24
+	copy rega,contr
+	arg mem_tmp3,contw				/* b */
+	call memcpy24
+bn_invmod_2:	
+	arg mem_tmp3,contr
+	call bn_eq_zero
+	branch bn_invmod_0,blank
+	arg mem_tmp3,rega
+	arg mem_tmp0,regb
+	call bn_rshifteven
+
+	arg mem_tmp2,rega
+	arg mem_tmp1,regb
+	call bn_rshifteven
+	arg mem_tmp3,rega
+	arg mem_tmp2,regb
+	call bn_bigeq
+	branch bn_invmod_1,positive
+	arg mem_tmp2,rega
+	arg mem_tmp3,regb
+	copy rega,contw
+	call bn_sub
+	arg mem_tmp0,rega
+	arg mem_tmp1,regb
+	copy regb,contw
+	call bn_add
+	ifetch 1,rega
+	iadd regc,regc
+	ifetch 1,regb
+	iadd regc,pdata
+	istore 1,regb
+	branch bn_invmod_2
+bn_invmod_1:
+	arg mem_tmp3,rega
+	arg mem_tmp2,regb
+	copy rega,contw
+	call bn_sub
+	arg mem_tmp1,rega
+	arg mem_tmp0,regb
+	copy regb,contw
+	call bn_add
+	ifetch 1,rega
+	iadd regc,regc
+	ifetch 1,regb
+	iadd regc,pdata
+	istore 1,regb
+	branch bn_invmod_2
+bn_invmod_0:
+	arg mem_tmp0,contw
+	call bn_zero
+	fetch 1,mem_tmp5
+	store 1,mem_tmp0
+	store 1,mem_tmp0a
+	arg mem_tmp0,rega
+	arg mem_tmp1,regb
+	copy regb,contw
+	call bn_addmod
+	arg mem_p,rega
+	arg mem_tmp1,regb
+	copy timeup,contw
+	branch bn_submod
+	
+
+
+	/* cost 64742 clks */
+ecdbl:
+	arg mem_cz,rega
+	arg mem_t2,contw
+	call bn_sqrmod
+	arg mem_t2,rega
+	arg mem_t3,contw
+	call bn_sqrmod
+	arg mem_a,rega
+	arg mem_t3,regb
+	arg mem_t3,contw
+	call bn_mulmod		/* t3=a*z4	*/
+	arg mem_cx,rega
+	arg mem_t2,contw
+	call bn_sqrmod
+	arg mem_t2,contr
+	arg mem_t1,contw
+	call memcpy24
+	arg mem_t1,rega
+	call bn_lshiftmod
+	arg mem_t2,rega
+	arg mem_t1,regb
+	arg mem_t2,contw
+	call bn_addmod
+	arg mem_t2,rega
+	arg mem_t3,regb
+	arg mem_t2,contw
+	call bn_addmod		/* t2=3*x2 + z*z4		D  */
+	arg mem_cx,contr
+	arg mem_t1,contw
+	call memcpy24
+	arg mem_cy,rega
+	arg mem_t3,contw
+	call bn_sqrmod
+	arg mem_t1,rega
+	call bn_lshiftmod
+	arg mem_t1,rega
+	call bn_lshiftmod
+	arg mem_t1,rega		
+	arg mem_t3,regb
+	arg mem_t1,contw
+	call bn_mulmod		/* t1=4x*y2	B	*/
+	arg mem_t3,rega
+	arg mem_t0,contw
+	call bn_sqrmod
+	arg mem_t0,rega
+	call bn_lshiftmod
+	arg mem_t0,rega
+	call bn_lshiftmod		
+	arg mem_t0,rega		
+	call bn_lshiftmod		/* t0=8*y4		C */
+	arg mem_cy,contr
+	arg mem_t3,contw
+	call memcpy24
+	arg mem_t3,rega
+	call bn_lshiftmod
+	arg mem_t3,rega
+	arg mem_cz,regb
+	arg mem_cz,contw
+	call bn_mulmod		
+	arg mem_t2,rega
+	arg mem_t3,contw
+	call bn_sqrmod
+	arg mem_t3,rega
+	arg mem_t1,regb
+	arg mem_t3,contw
+	call bn_submod
+	arg mem_t3,rega
+	arg mem_t1,regb
+	arg mem_cx,contw
+	call bn_submod
+	arg mem_t1,rega
+	arg mem_cx,regb
+	arg mem_t3,contw
+	call bn_submod
+	arg mem_t3,rega
+	arg mem_t2,regb
+	arg mem_t3,contw
+	call bn_mulmod		
+	arg mem_t3,rega
+	arg mem_t0,regb
+	arg mem_cy,contw
+	branch bn_submod
+	
+
+	/* cost 104904	clks */
+ecadd:
+	arg mem_az,rega
+	arg mem_t7,contw
+	call bn_sqrmod
+	arg mem_cx,rega
+	arg mem_t7,regb
+	arg mem_t0,contw
+	call bn_mulmod		/* n1=t0=xa*zb2  */
+	arg mem_az,rega
+	arg mem_t7,regb
+	arg mem_t7,contw
+	call bn_mulmod	
+	arg mem_cy,rega
+	arg mem_t7,regb
+	arg mem_t1,contw
+	call bn_mulmod		/* n2=t1=ya*zb3 */
+	arg mem_cz,rega
+	arg mem_t7,contw
+	call bn_sqrmod
+	arg mem_ax,rega
+	arg mem_t7,regb
+	arg mem_t2,contw
+	call bn_mulmod		/* n3=t2=xb*za2 */
+	arg mem_cz,rega
+	arg mem_t7,regb
+	arg mem_t7,contw
+	call bn_mulmod	
+	arg mem_ay,rega
+	arg mem_t7,regb
+	arg mem_t3,contw
+	call bn_mulmod		/* n4=t3=yb*za3 */
+	arg mem_t0,rega
+	arg mem_t2,regb
+	arg mem_t7,contw
+	call bn_submod		/* n5=t7=n1-n3=t0-t2 */
+	arg mem_t0,rega
+	arg mem_t2,regb
+	arg mem_t0,contw
+	call bn_addmod		/* n7=t0=n1+n3=t0+t2 */
+	arg mem_t1,rega
+	arg mem_t3,regb
+	arg mem_t2,contw
+	call bn_submod		/* n6=t2=n2-n4=t1-t3 */
+	arg mem_t1,rega
+	arg mem_t3,regb
+	arg mem_t1,contw
+	call bn_addmod		/* n8=t1=n2+n4=t1+t3 */
+	arg mem_t1,rega
+	arg mem_t7,regb
+	arg mem_t1,contw
+	call bn_mulmod		/* t1=n8*n5 */
+	arg mem_cz,rega
+	arg mem_az,regb
+	arg mem_t3,contw
+	call bn_mulmod	
+	arg mem_t3,rega
+	arg mem_t7,regb
+	arg mem_cz,contw
+	call bn_mulmod		/* z=za*zb*n5 */
+	arg mem_t7,rega
+	arg mem_t7,contw
+	call bn_sqrmod		/* t7=n5^2 */
+	arg mem_t7,rega
+	arg mem_t0,regb
+	arg mem_t3,contw
+	call bn_mulmod		/* t3=n5^2*n7 */
+	arg mem_t7,rega
+	arg mem_t1,regb
+	arg mem_t1,contw
+	call bn_mulmod		/* t1=n8*n5^3 */
+	arg mem_t2,rega
+	arg mem_cx,contw
+	call bn_sqrmod		
+	arg mem_cx,rega
+	arg mem_t3,regb
+	arg mem_cx,contw
+	call bn_submod		/* x=n6^2-n5^2*n7 */
+	arg mem_cx,contr
+	arg mem_t7,contw
+	call memcpy24
+	arg mem_t7,rega
+	call bn_lshiftmod		/* t7=2*x */
+	arg mem_t3,rega
+	arg mem_t7,regb
+	arg mem_t3,contw
+	call bn_submod		/* t3=n9 */
+	arg mem_t3,rega
+	arg mem_t2,regb
+	arg mem_t2,contw
+	call bn_mulmod		/* t2=n9*n6 */
+	arg mem_t2,rega
+	arg mem_t1,regb
+	arg mem_cy,contw
+	call bn_submod	
+	arg mem_cy,rega
+	arg mem_p,regb
+	arg mem_cy,contw
+	force 0,regc
+	fetch 1,mem_cy
+	isolate1 0,pdata
+	call bn_add,true
+	copy regc,alarm
+	arg mem_cy,rega
+	call bn_rshift6
+	fetch 1,mem_cy5
+	isolate1 0,alarm
+	setflag true,7,pdata
+	store 1,mem_cy5
+	rtn
+
+	/* cost 22276983 clks */
+
+eckp_0:	
+	fetch 1,mem_ec_loopc
+	increase -1,pdata
+	nrtn positive
+	store 1,mem_ec_loopc
+	fetch 1,mem_ec_infinite
+	call ecdbl,blank
+	fetch 1,mem_ec_loopc
+	arg mem_k,contr
+	call bn_testbit
+	branch eckp_0,true
+	fetch 1,mem_ec_infinite
+	nbranch eckp_1,blank
+	call ecadd
+	branch eckp_0
+eckp_1:
+	jam 0,mem_ec_infinite
+	arg mem_ax,contr
+	arg mem_cx,contw
+	call ec_copy
+	branch eckp_0
+
+	/* cost 162522 clks */
+ecunmapz:
+	arg mem_cz,rega
+	arg mem_t3,contw
+	call bn_invmod			/* t3 = 1/z */
+	arg mem_t3,rega
+	arg mem_t1,contw		
+	call bn_sqrmod			/* t1 = 1/z2 */
+	arg mem_cx,rega
+	arg mem_t1,regb
+	arg mem_bx,contw
+	call bn_mulmod
+	arg mem_t3,rega
+	arg mem_t1,regb
+	arg mem_t2,contw			
+	call bn_mulmod			/* t2 = 1/z3 */
+	arg mem_cy,rega
+	arg mem_t2,regb
+	arg mem_by,contw
+	branch bn_mulmod		
+	
+	
+
+sha_endian_swap2:	
+	ifetch 4,contr
+	force 4,rega
+	increase 3,contw
+sha_endian_loop:	
+	istore 1,contw
+	rshift8 pdata,pdata
+	increase -2,contw
+	increase -1,rega
+	nbranch sha_endian_loop,zero
+	increase 5,contw
+	loop sha_endian_swap2
+	rtn	
+
+
+sha_getw:
+	lshift2 queue,pdata
+	iadd timeup,contr
+	ifetch 4,contr
+	rtn
+	
+sha_r:
+	force 16,alarm
+	arg memdat,timeup
+sha_r_loop:	
+	add alarm,-7,queue
+	call sha_getw
+	iforce temp						/* W[t - 7] */
+	add alarm,-16,queue
+	call sha_getw
+	iadd temp,temp					/* W[t-7] + W[t-16] */
+	add alarm,-2,queue
+	call sha_getw
+	shasx pdata,1,pdata
+	iadd temp,temp					/* S1(W[t -  2]) + W[t-7] + W[t-16] */
+	add alarm,-15,queue
+	call sha_getw
+	shasx pdata,0,pdata
+	iadd temp,temp					/* S0(W[t - 15]) + S1(W[t -  2]) + W[t-7] + W[t-16] */
+	lshift2 alarm,pdata
+	iadd timeup,contw
+	istoret 4,contw
+	increase 1,alarm
+	compare 64,alarm,0xff
+	nbranch sha_r_loop,true
+	rtn
+	
+
+sha_init:
+	arg memh0,contr
+	force 7,regext_index
+sha_init_0:	
+	ifetch 4,contr
+	iforce regext
+	increase -1,regext_index
+	branch sha_init_0,positive
+	rtn
+
+sha:
+	bpatchx patch2f_6,mem_patch2f
+	call sha_r		/* preprocessing data into R() */
+	arg memahbak,contw
+	force 0,regext_index
+sha_0:	
+	deposit regext
+	istore 4,contw
+	increase 1,regext_index
+	compare 8,regext_index,0xff
+	nbranch sha_0,true
+	call enable_authrom
+	arg memk,timeup
+	arg memdat,alarm
+	force 64,loopcnt
+sha_loop:	
+	ifetcht 4,alarm
+	ifetch 4,timeup
+	increase 4,timeup
+	increase 4,alarm
+	iadd temp,pdata			/* x+K */
+	force 7,regext_index
+	iadd regext,temp			/* x+K+h */
+	force 4,regext_index
+	shasx regext,3,pdata
+	iadd temp,temp			/* temp = s3(e)+x+K+h */
+	force 5,regext_index
+	deposit regext
+	force 6,regext_index
+	ixor regext,pdata
+	force 4,regext_index
+	iand regext,pdata			/* (e & (f ^ g)) */
+	force 6,regext_index
+	ixor regext,pdata			/* F1(e, f, g) = g ^ (e & (f ^ g)) */
+	iadd temp,temp			/* temp1 = h + S3(e) + F1(e,f,g) + K + x */
+	force 7,regext_index
+	copy temp,regext			/* save to H */
+	force 3,regext_index
+	deposit regext
+	iadd temp,regext			/* save to D */
+	force 0,regext_index
+	deposit regext
+	force 1,regext_index
+	iand regext,temp			/* a & b */
+	ior regext,pdata			/* a | b */			
+	force 2,regext_index
+	iand regext,pdata			/* (c & (a | b)) */
+	ior temp,temp				/* F0:(a & b) | (c & (a | b)) */
+	force 0,regext_index
+	shasx regext,2,pdata
+	iadd temp,pdata			/* temp2 = S2(a) + F0(a,b,c) */
+	force 7,regext_index
+	iadd regext,regext			/* h = temp1 + temp2 */
+	regexrot					/* rotate move h,a-g => a-h */
+	loop sha_loop
+	arg memahbak,contr
+	force 0,regext_index
+sha_1:	
+	ifetch 4,contr
+	iadd regext,regext
+	increase 1,regext_index
+	compare 8,regext_index,0xff
+	nbranch sha_1,true
+	branch disable_authrom
+
+	
+sha_result:
+	arg   memresult,contw
+	force 7,regext_index
+sha_regext_save:
+	deposit regext
+	istore  4,contw 
+	increase -1,regext_index
+	branch   sha_regext_save,positive
+	rtn	
+
+pad_xor:
+//	arg memx_end,contr
+	arg      memdat,contw
+	increase -4,contr
+	sub      loopcnt,16,rega
+pad_xor_0:	    
+	ifetch   4,contr
+	ixor     temp,pdata
+	istore   4,contw	
+	increase -8,contr	
+	loop  pad_xor_0
+	copy     rega,loopcnt
+	deposit  temp
+pad_xor_1:	
+	istore 4,contw
+	loop pad_xor_1
+	rtn
+
+g_noninit_number_confirm:
+	fetch 1,mem_encapsulated_minor_type
+	beq ENCAPSULATED_MINOR_TYPE_P256,g_noninit_number_confirm_256
+	beq ENCAPSULATED_MINOR_TYPE_P192,g_noninit_number_confirm_192
+	rtn
+
+g_noninit_number_confirm_192:	
+	call g_noninit0_192
+	call sha_result
+	branch g_common0
+
+g_noninit_number_confirm_256:	
+	call g_noninit0_256
+	call sha_result
+	branch g_common0
+
+g_noninit_192:
+	call g_noninit0_192
+	branch g_common0
+	
+g_noninit0_192:
+ 	arg      mem_sp_pubkey_remote_x_end,contr
+	arg      memdat,contw
+	force    6,loopcnt
+	call     memcpy_dword_swap
+	arg      mem_sp_pubkey_local_x_end,contr
+	force    6,loopcnt
+	call     memcpy_dword_swap
+	arg      mem_sp_random_remote_end,contr
+	call     memcpy_dword_swap4
+	call     sha_init
+	call     sha	
+ 	arg      mem_sp_random_local_end,contr
+	arg      memdat,contw
+	branch g_common_192
+	
+g_init_192:
+ 	arg      mem_sp_pubkey_local_x_end,contr
+	arg      memdat,contw
+	force    6,loopcnt
+	call     memcpy_dword_swap
+	arg      mem_sp_pubkey_remote_x_end,contr
+	force    6,loopcnt
+	call     memcpy_dword_swap
+	arg      mem_sp_random_local_end,contr
+	call     memcpy_dword_swap4
+	call     sha_init
+	call     sha	
+ 	arg      mem_sp_random_remote_end,contr
+	arg      memdat,contw
+	call g_common_192
+	branch g_common0
+	
+g_common_192:	
+	call     memcpy_dword_swap4
+	setarg   0x800000
+	lshift8  pdata,pdata 
+	istore   4,contw
+	force    5,loopcnt
+	call memset0
+	setarg 640
+	istore 4,contw
+	branch sha
+g_common0:
+	fetch 4,memresult
+//	store 4,mem_gkey
+	arg 1000,rega
+	idiv rega
+	call wait_div_end
+	remainder pdata
+	store 4,mem_gkey
+	quotient pdata
+	arg 1000,rega
+	idiv rega
+	call wait_div_end
+	remainder pdata
+	arg 1000,rega
+	imul32 rega,pdata
+	fetcht 4,mem_gkey
+	iadd temp,pdata
+	store 4,mem_gkey
+	rtn
+	
+noninit_number_confirm:
+	call g_noninit0_256
+	call sha_result
+	branch g_common0
+
+	
+g_noninit0_256:
+ 	arg      mem_le_pubkey_remote_x_256+32,contr
+	arg      memdat,contw
+	force    8,loopcnt
+	call     memcpy_dword_swap
+	arg      mem_sc_pubkey_local_x_256+32,contr
+	force    8,loopcnt
+	call     memcpy_dword_swap
+//	arg      mem_sp_random_remote_end,contr
+//	call     memcpy_dword_swap4
+	call     sha_init
+	call     sha	
+ 	arg      mem_sp_random_remote_end,contr
+	arg      memdat,contw
+	call     memcpy_dword_swap4
+	arg      mem_sp_random_local_end,contr
+	branch g_common_256
+	
+g_common_256:	
+	call     memcpy_dword_swap4
+	setarg   0x800000
+	lshift8  pdata,pdata 
+	istore   4,contw
+	force    3,loopcnt
+	call memset0
+	setarg 768
+	istore 4,contw
+	branch sha
+
+function_f1_192_no_key:
+	jam 0,mem_passkey_1bit
+	branch function_f1_192_common
+	
+function_f1_192:
+	fetch 1,mem_ssp_mode_flag
+	bne  SSP_MODE_PASSKEY_ENTRY_FLAG,function_f1_192_no_key
+function_f1_192_common:
+	bpatchx patch2f_7,mem_patch2f
+	setarg   0x363636
+	lshift8  pdata,temp
+	or_into       0x36,temp
+	fetch 2,mem_sp_prarm_stack
+	copy pdata,contr
+	force    4,loopcnt
+	call     pad_xor
+	call     sha_init
+	call     sha
+	fetch 2,mem_sp_prarm_stack+2
+	copy pdata,contr
+	arg      memdat,contw
+	force    6,loopcnt
+	call     memcpy_dword_swap
+	fetch 2,mem_sp_prarm_stack+4
+	copy pdata,contr
+	force    6,loopcnt
+	call     memcpy_dword_swap
+	setarg   0x800000
+	istore   3,contw
+	
+	fetch 1,mem_passkey_1bit
+	
+	istore   1,contw
+	force    0,pdata
+	istore   8,contw
+	setarg   0x0388
+	istore   4,contw
+function_f1_common2:	
+	call     sha
+	call     sha_result
+	arg      memresult,contr
+	arg      memahsave,contw 
+	call     memcpy32
+    
+	setarg   0x5c5c5c
+	lshift8  pdata,temp
+	or_into       0x5c,temp
+	fetch 2,mem_sp_prarm_stack
+	copy pdata,contr
+	force    4,loopcnt
+	call     pad_xor
+	call     sha_init
+	call     sha
+	arg      memahsave_end,contr
+	arg      memdat,contw
+	force    8,loopcnt
+	call     memcpy_dword_swap
+	setarg   0x800000
+	lshift8  pdata,pdata 
+	istore   4,contw
+	call		bn_zero
+	setarg   0x0300
+	istore   4,contw
+	call     sha
+	branch     sha_result
+	
+	
+function_f2_192:
+	setarg   0x363636
+	lshift8  pdata,temp
+	or_into       0x36,temp
+	arg      mem_sp_dhkey_end,contr
+	force    6,loopcnt
+	call     pad_xor
+	call     sha_init
+	call     sha
+	fetch 2,mem_sp_prarm_stack+12
+	copy pdata,contr
+	arg      memdat,contw
+	call     memcpy_dword_swap4
+	fetch 2,mem_sp_prarm_stack+14
+	copy pdata,contr
+	call     memcpy_dword_swap4
+
+	setarg   0x62746c
+	lshift8  pdata,pdata
+	or_into       0x6b,pdata       
+	istore   4,contw
+	arg      mem_addr_value_end,contr
+	force    3,loopcnt
+	call     memcpy_dword_swap
+	
+	setarg   0x800000
+	lshift8  pdata,pdata 
+	istore   4,contw
+	force    0,pdata
+	istore   8,contw
+	setarg   0x0380
+	istore   4,contw
+	call     sha
+
+	call     sha_result
+	arg      memresult,contr
+	arg      memahsave,contw 
+	call     memcpy32
+    
+	setarg   0x5c5c5c
+	lshift8  pdata,temp
+	or_into       0x5c,temp
+	arg      mem_sp_dhkey_end,contr 
+	force    6,loopcnt
+	call     pad_xor
+	call     sha_init
+	call     sha
+	arg      memahsave_end,contr
+	arg      memdat,contw
+	force    8,loopcnt
+	call     memcpy_dword_swap
+	setarg   0x800000
+	lshift8  pdata,pdata 
+	istore   4,contw
+	call bn_zero
+	setarg   0x0300
+	istore   4,contw
+	call     sha
+	branch     sha_result
+	
+
+function_f3a_192:
+	fetch 1,mem_ssp_mode_flag
+	bne  SSP_MODE_PASSKEY_ENTRY_FLAG,function_f3a_no_pin
+function_f3a_common:
+	bpatchx patch30_0,mem_patch30
+	setarg   0x363636
+	lshift8  pdata,temp
+	or_into       0x36,temp
+	arg      mem_sp_dhkey_end,contr
+	force    6,loopcnt
+	call     pad_xor
+	call     sha_init
+	call     sha
+	arg      mem_sp_random_remote_end,contr
+	arg      memdat,contw
+	call     memcpy_dword_swap4
+	arg      mem_sp_random_local_end,contr
+	call     memcpy_dword_swap4
+	branch function_f3_common
+
+function_f3a_no_pin:
+	setarg 0
+	store 4,mem_pin
+	branch function_f3a_common
+
+function_f3b_no_pin:
+	setarg 0
+	store 4,mem_pin
+	branch function_f3b_common
+
+
+function_f3b_192:
+	fetch 1,mem_ssp_mode_flag
+	bne  SSP_MODE_PASSKEY_ENTRY_FLAG,function_f3b_no_pin
+function_f3b_common:
+	setarg   0x363636
+	lshift8  pdata,temp
+	or_into       0x36,temp
+	arg      mem_sp_dhkey_end,contr
+	force    6,loopcnt
+	call     pad_xor
+	call     sha_init
+	call     sha
+
+	arg      mem_sp_random_local_end,contr
+	arg      memdat,contw
+	call     memcpy_dword_swap4
+	arg      mem_sp_random_remote_end,contr
+	call     memcpy_dword_swap4
+function_f3_common:    
+	setarg   0x0    
+	istore   8,contw
+	istore   4,contw
+	fetch 4,mem_pin
+	istore   4,contw
+	
+	copy     contw,temp
+	jam      0x80,mem_addr_padding
+	copy     temp,contw
+	arg      mem_addr_iocap_end,contr
+	call     memcpy_dword_swap4
+
+	call     sha
+    
+	arg      memdat,contw
+	force 7,loopcnt
+	call memset0
+	istore   4,contw
+	setarg   0x03F8
+	istore   4,contw
+	call     sha
+	call     sha_result
+	
+	arg      memresult,contr
+	arg      memahsave,contw 
+	call     memcpy32
+    
+	setarg   0x5c5c5c
+	lshift8  pdata,temp
+	or_into       0x5c,temp
+	arg      mem_sp_dhkey_end,contr 
+	force    6,loopcnt
+	call     pad_xor
+	call     sha_init
+	call     sha
+	arg      memahsave_end,contr
+	arg      memdat,contw
+	force    8,loopcnt
+	call     memcpy_dword_swap
+	setarg   0x800000
+	lshift8  pdata,pdata 
+	istore   4,contw
+	call bn_zero
+	setarg   0x0300
+	istore   4,contw
+	call     sha	
+	branch     sha_result
+		
+/*
+eckp:
+	jam 192,mem_ec_loopc
+	jam 1,mem_ec_infinite
+*/
+eckp_calc_init:
+	jam      192,mem_ec_loopc
+eckp_calc_init_1:    
+	fetch    1,mem_ec_loopc
+	rtn      blank
+	increase -1,pdata
+	store    1,mem_ec_loopc 	
+	arg      mem_k,contr
+	call     bn_testbit
+	branch eckp_calc_init_1,true
+	arg      mem_ax,contr
+	arg      mem_cx,contw
+	branch     ec_copy	
+	
+eckp_calc:
+	call     ecdbl  
+	fetch    1,mem_ec_loopc
+	increase -1,pdata
+	store    1,mem_ec_loopc
+	arg      mem_k,contr
+	call     bn_testbit
+	rtn	true
+	branch     ecadd                
+	             
+memcpy_dword_swap4:
+	force 4,loopcnt
+memcpy_dword_swap:
+	increase -4,contr
+memcpy_dword_swap_loop:
+	ifetch   4,contr
+	istore   4,contw
+	increase -8,contr
+	loop   memcpy_dword_swap_loop 
+    	rtn
+
+
+function_f1_no_key_256:
+	jam 0,mem_passkey_1bit
+	branch function_f1_common_256
+
+function_f1_256:
+	fetch 1,mem_ssp_mode_flag
+	bne  SSP_MODE_PASSKEY_ENTRY_FLAG,function_f1_no_key_256
+function_f1_common_256:
+	setarg   0x363636
+	lshift8  pdata,temp
+	or_into       0x36,temp
+	fetch 2,mem_sp_prarm_stack
+	copy pdata,contr
+	force    4,loopcnt
+	call     pad_xor
+	call     sha_init
+	call     sha
+	fetch 2,mem_sp_prarm_stack+2
+	copy pdata,contr
+	arg      memdat,contw
+	force    8,loopcnt
+	call     memcpy_dword_swap
+	fetch 2,mem_sp_prarm_stack+4
+	copy pdata,contr
+	force    8,loopcnt
+	call     memcpy_dword_swap
+	call     sha
+	arg      memdat,contw	
+	setarg   0x800000
+	istore   3,contw
+	fetch 1,mem_passkey_1bit
+	istore   1,contw
+	arg 7,loopcnt
+	call	memset0
+	
+	setarg   0x0408  //len bit
+	istore   4,contw
+	branch function_f1_common2
+
+function_f3a:
+	fetch 1,mem_encapsulated_minor_type
+	beq ENCAPSULATED_MINOR_TYPE_P256,function_f3a_256
+	beq ENCAPSULATED_MINOR_TYPE_P192,function_f3a_192
+	rtn
+	
+function_f3a_256:
+	fetch 1,mem_ssp_mode_flag
+	bne  SSP_MODE_PASSKEY_ENTRY_FLAG,function_f3a_no_pin_256
+function_f3a_common_256:
+	setarg   0x363636
+	lshift8  pdata,temp
+	or_into       0x36,temp
+	arg      mem_sp_dhkey_end,contr
+	force    8,loopcnt
+	call     pad_xor
+	call     sha_init
+	call     sha
+	arg      mem_sp_random_remote_end,contr
+	arg      memdat,contw
+	call     memcpy_dword_swap4
+	arg      mem_sp_random_local_end,contr
+	call     memcpy_dword_swap4
+//	branch function_f3_common
+function_f3_common_256:    
+	setarg   0x0    
+	istore   8,contw
+	istore   4,contw
+	fetch 4,mem_pin
+	istore   4,contw
+	
+	copy     contw,temp
+	jam      0x80,mem_addr_padding
+	copy     temp,contw
+	arg      mem_addr_iocap_end,contr
+	call     memcpy_dword_swap4
+
+	call     sha
+    
+	arg      memdat,contw
+	force 7,loopcnt
+	call memset0
+	istore   4,contw
+	setarg   0x03F8
+	istore   4,contw
+	call     sha
+	call     sha_result
+	
+	arg      memresult,contr
+	arg      memahsave,contw 
+	call     memcpy32
+    
+	setarg   0x5c5c5c
+	lshift8  pdata,temp
+	or_into       0x5c,temp
+	arg      mem_sp_dhkey_end,contr 
+	force    8,loopcnt
+sha_end_common:
+	call     pad_xor
+	call     sha_init
+	call     sha
+	arg      memahsave_end,contr
+	arg      memdat,contw
+	force    8,loopcnt
+	call     memcpy_dword_swap
+	setarg   0x800000
+	lshift8  pdata,pdata 
+	istore   4,contw
+	call bn_zero
+	setarg   0x0300
+	istore   4,contw
+	call     sha	
+	branch     sha_result
+	
+
+function_f3a_no_pin_256:
+	setarg 0
+	store 4,mem_pin
+	branch function_f3a_common_256
+
+function_f3b_no_pin_256:
+	setarg 0
+	store 4,mem_pin
+	branch function_f3b_common_256
+
+function_f3b:
+	fetch 1,mem_encapsulated_minor_type
+	beq ENCAPSULATED_MINOR_TYPE_P256,function_f3b_256
+	beq ENCAPSULATED_MINOR_TYPE_P192,function_f3b_192
+	rtn
+
+function_f3b_256:
+	fetch 1,mem_ssp_mode_flag
+	bne  SSP_MODE_PASSKEY_ENTRY_FLAG,function_f3b_no_pin_256
+function_f3b_common_256:
+	setarg   0x363636
+	lshift8  pdata,temp
+	or_into       0x36,temp
+	arg      mem_sp_dhkey_end,contr
+	force    8,loopcnt
+	call     pad_xor
+	call     sha_init
+	call     sha
+
+	arg      mem_sp_random_local_end,contr
+	arg      memdat,contw
+	call     memcpy_dword_swap4
+	arg      mem_sp_random_remote_end,contr
+	call     memcpy_dword_swap4
+	branch function_f3_common_256
+
+
+function_f2:
+	fetch 1,mem_encapsulated_minor_type
+	beq ENCAPSULATED_MINOR_TYPE_P256,function_f2_256
+	beq ENCAPSULATED_MINOR_TYPE_P192,function_f2_192
+	rtn
+	
+function_f2_256:
+	setarg   0x363636
+	lshift8  pdata,temp
+	or_into       0x36,temp
+	arg      mem_sp_dhkey_end,contr
+	force    8,loopcnt
+	call     pad_xor
+	call     sha_init
+	call     sha
+	fetch 2,mem_sp_prarm_stack+12
+	copy pdata,contr
+	arg      memdat,contw
+	call     memcpy_dword_swap4
+	fetch 2,mem_sp_prarm_stack+14
+	copy pdata,contr
+	call     memcpy_dword_swap4
+
+	setarg   0x62746c
+	lshift8  pdata,pdata
+	or_into       0x6b,pdata       
+	istore   4,contw
+	arg      mem_addr_value_end,contr
+	force    3,loopcnt
+	call     memcpy_dword_swap
+	
+	setarg   0x800000
+	lshift8  pdata,pdata 
+	istore   4,contw
+	force    0,pdata
+	istore   8,contw
+	setarg   0x0380
+	istore   4,contw
+	call     sha
+
+	call     sha_result
+	arg      memresult,contr
+	arg      memahsave,contw 
+	call     memcpy32
+    
+	setarg   0x5c5c5c
+	lshift8  pdata,temp
+	or_into       0x5c,temp
+	arg      mem_sp_dhkey_end,contr 
+	force    8,loopcnt
+	branch sha_end_common
+
+
+function_h3:
+	fetch    6,mem_lap
+	store   6,mem_addr_value
+	fetch    6,mem_plap
+	istore   6,contw
+	
+	setarg   0x363636
+	lshift8  pdata,temp
+	or_into       0x36,temp
+	arg      mem_link_key+16 ,contr
+	force    4,loopcnt
+	call     pad_xor
+	call     sha_init
+	call     sha
+	setarg   0x627461
+	lshift8  pdata,pdata
+	or_into       0x6b,pdata       
+	store   4,memdat
+	
+	arg      mem_addr_value+12,contr
+	force    3,loopcnt
+	call     memcpy_dword_swap
+	
+	arg mem_ccm_iv+8,contr
+	arg 2,loopcnt
+	call     memcpy_dword_swap
+	
+	setarg   0x800000
+	lshift8  pdata,pdata 
+	istore   4,contw
+	arg 4,loopcnt
+	call memset0
+
+	setarg   704
+	istore   4,contw
+	call     sha
+
+	call     sha_result
+	arg      memresult,contr
+	arg      memahsave,contw 
+	call     memcpy32
+    
+	setarg   0x5c5c5c
+	lshift8  pdata,temp
+	or_into       0x5c,temp
+	arg      mem_link_key+16,contr 
+	force    4,loopcnt
+	branch sha_end_common
+
+
+function_h4:
+	fetch    6,mem_lap
+	store   6,mem_addr_value
+	fetch    6,mem_plap
+	istore   6,contw
+	
+	setarg   0x363636
+	lshift8  pdata,temp
+	or_into       0x36,temp
+	arg      mem_link_key+16 ,contr
+	force    4,loopcnt
+	call     pad_xor
+	call     sha_init
+	call     sha
+	setarg   0x627464
+	lshift8  pdata,pdata
+	or_into       0x6b,pdata       
+	store   4,memdat
+	
+	arg      mem_addr_value+12,contr
+	force    3,loopcnt
+	call     memcpy_dword_swap
+	
+	setarg   0x800000
+	lshift8  pdata,pdata 
+	istore   4,contw
+	arg 5,loopcnt
+	call memset0
+
+	setarg   640
+	istore   4,contw
+	call     sha
+
+	call     sha_result
+	arg      memresult,contr
+	arg      memahsave,contw 
+	call     memcpy32
+    
+	setarg   0x5c5c5c
+	lshift8  pdata,temp
+	or_into       0x5c,temp
+	arg      mem_link_key+16,contr 
+	force    4,loopcnt
+	branch sha_end_common
+
+
+function_h5:
+	arg mem_sp_calc_result_high,contr
+	arg mem_input_store,contw
+	call memcpy16
+	setarg mem_sp_random_remote+16
+	store 2,mem_sp_prarm_stack
+	setarg mem_random_number+16
+	istore 2,contw
+	
+	setarg   0x363636
+	lshift8  pdata,temp
+	or_into       0x36,temp
+	arg      mem_input_store+16 ,contr
+	force    4,loopcnt
+	call     pad_xor
+	call     sha_init
+	call     sha
+
+	arg memdat,contw
+	fetch 2, mem_sp_prarm_stack
+	copy pdata,contr
+	call     memcpy_dword_swap4
+	fetch 2,     mem_sp_prarm_stack+2
+	copy pdata,contr
+	call     memcpy_dword_swap4
+	
+	setarg   0x800000
+	lshift8  pdata,pdata 
+	istore   4,contw
+	
+	arg 3,loopcnt
+	call memset0
+
+	setarg   768
+	istore   4,contw
+	call     sha
+
+	call     sha_result
+	arg      memresult,contr
+	arg      memahsave,contw 
+	call     memcpy32
+    
+	setarg   0x5c5c5c
+	lshift8  pdata,temp
+	or_into       0x5c,temp
+	arg      mem_input_store+16,contr 
+	force    4,loopcnt
+	branch sha_end_common
+
+
+
+
+else
+sp_initialize:
+	rtn
+
+endif
+	
+
+ifdef SECURE_CONNECTION
+
+sp_initialize_256:	
+	bpatchx patch30_1,mem_patch30
+	fetch 1,mem_secure_connections_enable
+	nbranch sp_pubkey_calc_256,blank
+//	call sp_clear_flags
+sc_reset:
+	jam SP_CALC_STANDBY,mem_sc_calc
+	jam SP_KEY_INVALID,mem_sc_local_key_invalid
+	rtn
+	
+	
+    	
+sp_wait_pubkey_calc_256_done:
+	fetch 1,mem_secure_connections_enable
+	rtn blank
+	fetch 1,mem_sc_local_key_invalid
+	rtneq SP_KEY_VALID_256
+	call sp_calc_sequence_256
+	branch sp_wait_pubkey_calc_256_done
+
+
+//BD1A3CCD:A6B89958:99B740EB:7B60FF4A:503F10D2:E3B3C974:385FC5A3:D4F6493F
+sp_debug_private_256:
+	arg mem_sc_private_key_256,contw
+        setsect 0,0x1abd
+        setsect 1,0x1b34f
+        setsect 2,0x19b8a
+        setsect 3,0x26562
+        istore 9,contw
+        setsect 0,0x340b7
+        setsect 1,0x1efa
+        setsect 2,0xaff6
+        setsect 3,0xfd41
+        istore 9,contw
+        setsect 0,0x3d210
+        setsect 1,0x26cf8
+        setsect 2,0x3874c
+        setsect 3,0x3157c
+        istore 9,contw
+        setsect 0,0x2d4a3
+        setsect 1,0x3d27d
+        setsect 2,0x3
+        istore 5,contw
+        rtn
+	
+
+sp_pubkey_calc_256:
+	fetch    1,mem_sc_local_key_invalid
+	rtnne SP_KEY_INVALID
+	fetch    1,mem_sc_calc
+	rtnne  SP_CALC_STANDBY
+	call init_memp_256
+	arg      mem_sc_private_key_256,contw 
+	force    15,queue
+	call     random_generator
+	random   pdata
+	rshift   pdata,pdata
+	istore   2,contw 
+	
+	fetch 1,mem_sp_debug_mode
+	ncall sp_debug_private_256,blank
+	
+	arg      mem_k_256,contw
+	arg      mem_sc_private_key_256,contr	
+	call     memcpy32 //mem_sp_private_key=>mem_k 
+
+	arg      mem_ax_256,contw
+	arg      mem_gx_256,contr
+	call     memcpy64 //mem_gx=>mem_ax 
+	
+	arg      mem_az_256,contw
+	call      clear_mem_256
+	jam      1,mem_az_256 //0=>mem_az 
+
+	call     eckp_calc_init_256
+	jam SP_CALC_PUBKEY_256,mem_sc_calc
+	rtn    
+
+sp_pubkey_generated_256:
+	arg      mem_sc_pubkey_local_x_256,contw
+	arg      mem_bx_256,contr
+	call     memcpy64   
+	jam      SP_KEY_VALID_256,mem_sc_local_key_invalid
+	jam      SP_CALC_STANDBY,mem_sc_calc
+	rtn
+	
+
+
+sp_dhkey_calc_256:
+	fetch    1,mem_sp_dhkey_invalid
+	rtnne  SP_KEY_INVALID
+	fetch    1,mem_sc_calc
+	rtnne  SP_CALC_STANDBY
+
+	arg      mem_k_256,contw
+	arg      mem_sc_private_key_256,contr	
+	call     memcpy32
+
+	arg      mem_ax_256,contw
+	arg      mem_le_pubkey_remote_x_256,contr
+	call     memcpy64
+
+	arg      mem_az_256,contw
+	call     clear_mem_256
+	jam      1,mem_az_256 //0=>mem_az 
+
+	call     eckp_calc_init_256
+	jam     SP_CALC_DHKEY_256,mem_sc_calc
+	rtn 
+
+
+sp_dhkey_generated_256:
+//	jam SP_FLAG_COMMIT,mem_sp_dh_ready
+	arg mem_le_dhkey_256,contw
+	arg mem_bx_256,contr
+	call memcpy32
+	jam SP_KEY_VALID_256,mem_sp_dhkey_invalid
+	jam SP_CALC_STANDBY,mem_sc_calc
+	rtn
+
+
+
+sp_calc_sequence_256:
+	fetch 1,mem_secure_connections_enable
+	rtn blank
+	fetch 1,mem_sc_calc
+	rtn blank
+	increase 0x80,pdata
+	store    1,mem_sc_calc
+	rtnbit1 7
+	fetch    2,mem_ec_loopc
+	branch   sp_calc_sequence_done_256,blank
+	branch   eckp_calc_256
+
+sp_calc_sequence_done_256:    
+	bpatchx patch30_2,mem_patch30
+	call ecunmapz_256
+	fetch 1,mem_sc_calc
+	beq  SP_CALC_PUBKEY_256,sp_pubkey_generated_256
+	beq  SP_CALC_DHKEY_256,sp_dhkey_generated_256
+	rtn
+
+
+eckp_calc_256:
+	call     ecdbl_256  
+	fetch    2,mem_ec_loopc
+	increase -1,pdata
+	store    2,mem_ec_loopc
+	arg      mem_k_256,contr
+	call     bn_testbit
+	rtn	true
+	branch     ecadd_256   
+
+eckp_calc_init_256:
+	bpatchx patch30_3,mem_patch30
+	setarg 256
+	store 2,mem_ec_loopc
+eckp_calc_init_256_1:    
+	fetch    2,mem_ec_loopc
+	rtn      blank
+	increase -1,pdata
+	store    2,mem_ec_loopc
+	arg      mem_k_256,contr
+	call     bn_testbit
+	branch eckp_calc_init_256_1,true
+	arg      mem_ax_256,contr
+	arg      mem_cx_256,contw
+	branch     memcpy96	
+
+
+ecunmapz_256:
+	arg mem_cz_256,rega
+	arg mem_t3_256,contw
+	call bn_invmod_256			/* t3 = 1/z */
+	arg mem_t3_256,rega
+	arg mem_t1_256,contw		
+	call bn_sqrmod_256			/* t1 = 1/z2 */
+	arg mem_cx_256,rega
+	arg mem_t1_256,regb
+	arg mem_bx_256,contw
+	call bn_mulmod_256
+	arg mem_t3_256,rega
+	arg mem_t1_256,regb
+	arg mem_t2_256,contw			
+	call bn_mulmod_256			/* t2 = 1/z3 */
+	arg mem_cy_256,rega
+	arg mem_t2_256,regb
+	arg mem_by_256,contw
+	branch bn_mulmod_256	
+	
+ecdbl_256:
+	arg mem_cz_256,rega
+	arg mem_t2_256,contw
+	call bn_sqrmod_256
+	arg mem_t2_256,rega
+	arg mem_t3_256,contw
+	call bn_sqrmod_256
+//call ice_break
+	arg mem_a_256,rega
+	arg mem_t3_256,regb
+	arg mem_t3_256,contw
+	call bn_mulmod_256		/* t3=a*z4	*/
+	arg mem_cx_256,rega
+	arg mem_t2_256,contw
+	call bn_sqrmod_256
+//call ice_break
+	arg mem_t2_256,contr
+	arg mem_t1_256,contw
+	call memcpy32
+	arg mem_t1_256,rega
+	call bn_lshiftmod_256
+	arg mem_t2_256,rega
+	arg mem_t1_256,regb
+	arg mem_t2_256,contw
+	call bn_addmod_256
+//call ice_break
+	arg mem_t2_256,rega
+	arg mem_t3_256,regb
+	arg mem_t2_256,contw
+	call bn_addmod_256		/* t2=3*x2 + z*z4		D  */
+//call ice_break
+	arg mem_cx_256,contr
+	arg mem_t1_256,contw
+	call memcpy32
+	arg mem_cy_256,rega
+	arg mem_t3_256,contw
+	call bn_sqrmod_256
+	arg mem_t1_256,rega
+	call bn_lshiftmod_256
+	arg mem_t1_256,rega
+	call bn_lshiftmod_256
+	arg mem_t1_256,rega		
+	arg mem_t3_256,regb
+	arg mem_t1_256,contw
+	call bn_mulmod_256		//S = 4X1Y1^2/* t1=4x*y2	B	*/
+	arg mem_t3_256,rega
+	arg mem_t0_256,contw
+	call bn_sqrmod_256
+	arg mem_t0_256,rega
+	call bn_lshiftmod_256
+	arg mem_t0_256,rega
+	call bn_lshiftmod_256		
+	arg mem_t0_256,rega		
+	call bn_lshiftmod_256	//T = 8Y1^4	/* t0=8*y4		C */
+	arg mem_cy_256,contr
+	arg mem_t3_256,contw
+	call memcpy32
+	arg mem_t3_256,rega
+	call bn_lshiftmod_256
+	arg mem_t3_256,rega
+	arg mem_cz_256,regb
+	arg mem_cz_256,contw
+	call bn_mulmod_256		//z = 2Y1Z1
+
+
+	arg mem_t2_256,rega
+	arg mem_t3_256,contw
+	call bn_sqrmod_256   // M ^2
+//call ice_break
+	arg mem_t3_256,rega
+	arg mem_t1_256,regb
+	arg mem_t3_256,contw
+	call bn_submod_256  // t2^2 - 4*cx *cy^2 
+	arg mem_t3_256,rega
+	arg mem_t1_256,regb
+	arg mem_cx_256,contw
+	call bn_submod_256   //X2
+	arg mem_t1_256,rega
+	arg mem_cx_256,regb
+	arg mem_t3_256,contw
+	call bn_submod_256   //S-X2
+	arg mem_t3_256,rega
+	arg mem_t2_256,regb
+	arg mem_t3_256,contw
+	call bn_mulmod_256	//M(S-X2)	
+	arg mem_t3_256,rega
+	arg mem_t0_256,regb
+	arg mem_cy_256,contw
+	branch bn_submod_256  //M(S-X2)-T Y2	
+
+ecadd_256:
+
+	arg mem_az_256,rega
+	arg mem_t7_256,contw
+	call bn_sqrmod_256
+	arg mem_cx_256,rega
+	arg mem_t7_256,regb
+	arg mem_t0_256,contw
+	call bn_mulmod_256		/* n1=t0=xa*zb2 U1 = X1Z0^2*/
+
+
+	arg mem_az_256,rega
+	arg mem_t7_256,regb
+	arg mem_t7_256,contw
+	call bn_mulmod_256	
+	arg mem_cy_256,rega
+	arg mem_t7_256,regb
+	arg mem_t1_256,contw
+	call bn_mulmod_256		/* n2=t1=ya*zb3   S1 = Y1Z0^3*/
+
+
+	arg mem_cz_256,rega
+	arg mem_t7_256,contw
+	call bn_sqrmod_256
+	arg mem_ax_256,rega
+	arg mem_t7_256,regb
+	arg mem_t2_256,contw
+	call bn_mulmod_256		/* n3=t2=xb*za2  U0 = X0Z1^2*/
+
+	arg mem_cz_256,rega
+	arg mem_t7_256,regb
+	arg mem_t7_256,contw
+	call bn_mulmod_256	
+	arg mem_ay_256,rega
+	arg mem_t7_256,regb
+	arg mem_t3_256,contw
+	call bn_mulmod_256		/* n4=t3=yb*za3 S0 = Y0Z1^3*/
+
+
+//	arg mem_t0_256,rega
+//	arg mem_t2_256,regb
+	arg mem_t0_256,regb
+	arg mem_t2_256,rega
+	arg mem_t7_256,contw
+	call bn_submod_256		/* n5=t7=n1-n3=t0-t2   W=U1-U0*/
+	arg mem_t0_256,rega
+	arg mem_t2_256,regb
+	arg mem_t0_256,contw
+	call bn_addmod_256		/* n7=t0=n1+n3=t0+t2    T=U1+U0 */
+//	arg mem_t1_256,rega
+//	arg mem_t3_256,regb
+	arg mem_t1_256,regb
+	arg mem_t3_256,rega
+	arg mem_t2_256,contw
+	call bn_submod_256		/* n6=t2=n2-n4=t1-t3  S1-S0 */
+	arg mem_t1_256,rega
+	arg mem_t3_256,regb
+	arg mem_t1_256,contw
+	call bn_addmod_256		/* n8=t1=n2+n4=t1+t3 M=S1+S0*/
+	arg mem_t1_256,rega
+	arg mem_t7_256,regb
+	arg mem_t1_256,contw
+	call bn_mulmod_256		/* t1=n8*n5     MW */
+	arg mem_cz_256,rega
+	arg mem_az_256,regb
+	arg mem_t3_256,contw
+	call bn_mulmod_256	      //Z0Z1
+	arg mem_t3_256,rega
+	arg mem_t7_256,regb
+	arg mem_cz_256,contw
+	call bn_mulmod_256		/* z=za*zb*n5   Z0Z1W */
+
+	arg mem_t7_256,rega
+	arg mem_t7_256,contw
+	call bn_sqrmod_256		/* t7=n5^2 */
+	arg mem_t7_256,rega
+	arg mem_t0_256,regb
+	arg mem_t3_256,contw
+	call bn_mulmod_256		/* t3=n5^2*n7 */
+	arg mem_t7_256,rega
+	arg mem_t1_256,regb
+	arg mem_t1_256,contw
+	call bn_mulmod_256		/* t1=n8*n5^3 */
+	arg mem_t2_256,rega
+	arg mem_cx_256,contw
+	call bn_sqrmod_256		
+	arg mem_cx_256,rega
+	arg mem_t3_256,regb
+	arg mem_cx_256,contw
+	call bn_submod_256		/* x=n6^2-n5^2*n7 */
+	arg mem_cx_256,contr
+	arg mem_t7_256,contw
+	call memcpy32
+	arg mem_t7_256,rega
+	call bn_lshiftmod_256		/* t7=2*x */
+	arg mem_t3_256,rega
+	arg mem_t7_256,regb
+	arg mem_t3_256,contw
+	call bn_submod_256		/* t3=n9 */
+	arg mem_t3_256,rega
+	arg mem_t2_256,regb
+	arg mem_t2_256,contw
+	call bn_mulmod_256		/* t2=n9*n6 */
+	arg mem_t2_256,rega
+	arg mem_t1_256,regb
+	arg mem_cy_256,contw
+	call bn_submod_256	
+	arg mem_cy_256,rega
+	arg mem_p_256,regb
+	arg mem_cy_256,contw
+	force 0,regc
+	fetch 1,mem_cy_256
+	isolate1 0,pdata
+	call bn_add_256,true
+	copy regc,alarm
+	arg mem_cy_256,rega
+	call bn_rshift_256
+	fetch 1,mem_cy5_256
+	isolate1 0,alarm
+	setflag true,7,pdata
+	store 1,mem_cy5_256
+	rtn	
+
+bn_invmod_256:
+	copy contw,timeup					 
+	arg mem_tmp0_256,contw			 
+	call clear_mem_256
+	force 0,pdata
+//	store 4,mem_tmp52
+	store 4,mem_t2_256
+	jam 1,mem_tmp0_256      //y1
+	arg mem_tmp1_256,contw	//y2			 
+	call clear_mem_512      
+	arg mem_p_256,contr
+	arg mem_tmp2_256,contw		//j		 
+	call memcpy32
+	copy rega,contr
+	arg mem_tmp3_256,contw		//i		 
+	call memcpy32
+	
+//	arg mem_tmp22,rega
+//	arg mem_tmp32,regb
+//	call p_bn_bigeq_256
+//	branch assert,positive
+bn_invmod_256_2:	
+	arg mem_tmp3_256,contr
+	call bn_eq_zero_256
+	branch bn_invmod_256_0,blank
+//call ice_break    	
+//fetch 1,0x4ffe
+//increase 1,pdata
+//store 1,0x4ffe
+	arg mem_tmp3_256,rega
+	arg mem_tmp0_256,regb
+	call bn_rshifteven_256
+	arg mem_tmp2_256,rega
+	arg mem_tmp1_256,regb
+	call bn_rshifteven_256
+	
+	arg mem_tmp3_256,rega
+	arg mem_tmp2_256,regb
+	call bn_bigeq_256
+	branch bn_invmod_256_1,positive
+	arg mem_tmp2_256,rega
+	arg mem_tmp3_256,regb
+	copy rega,contw
+	call bn_sub_256
+	arg mem_tmp0_256,rega
+	arg mem_tmp1_256,regb
+	copy regb,contw
+	call bn_add_256
+	ifetch 1,rega
+	iadd regc,regc
+	ifetch 1,regb
+	iadd regc,pdata
+	istore 1,regb
+	branch bn_invmod_256_2
+bn_invmod_256_1:
+	arg mem_tmp3_256,rega
+	arg mem_tmp2_256,regb
+	copy rega,contw
+	call bn_sub_256
+	arg mem_tmp1_256,rega
+	arg mem_tmp0_256,regb
+	copy regb,contw
+	call bn_add_256
+	ifetch 1,rega
+	iadd regc,regc
+	ifetch 1,regb
+	iadd regc,pdata
+	istore 1,regb
+	branch bn_invmod_256_2
+bn_invmod_256_0:
+//call ice_break
+	arg mem_tmp1_256,rega
+	copy timeup,contw
+	call  bn_p256mod
+//call ice_break
+	arg mem_p_256,rega
+	copy timeup,regb
+	copy timeup,contw
+	branch bn_submod_256
+
+
+bn_mulmod_256:
+	copy contw,timeup					/* save result ptr */
+	
+	force 0,regext_index
+	
+	arg mem_tmp1_256,contw
+	call clear_mem_512
+	arg mem_regext,contw
+	call clear_mem_512
+//	jam 0,mem_regext_index
+
+//	arg mem_tmp12,contw
+	copy rega,contr
+//	force 0,regext_index
+	jam 0,mem_regext
+	setarg 0
+	call bn_load_mem
+	copy regb,contr
+	call bn_load_256
+//	force 0,regb
+//	jam 0,mem_regb
+	force 0,queue
+	arg mem_tmp1_256,contw	
+bn_mulmod_256_1:	
+//	copy regb,pdata
+//	store 1,
+	arg mem_regext,temp
+	copy queue,regb
+	lshift2 regb,pdata
+//	lshift4 pdata,pdata
+	iadd temp,regb	
+	force 0,temp
+	force 0,regc
+bn_mulmod_256_0:
+//	copy contw,pdata
+//	store 2,mem_contw
+//call ice_break
+//	copy pdata,contw
+	ifetch 4,contw					/* d[i+j] */
+	iforce rega
+//	copy regb,regext_index
+//	deposit regext
+	ifetch 4,regb
+	copy regc,regext_index
+	imul32 regext,pdata
+	iadd rega,pdata					/* uv = a[i]*b[j] + d[i+j] */
+	iadd temp,pdata					/* uv += u */
+	istore 4,contw					/* ->d[i+j] */
+	rshift32 pdata,temp				/* temp = u = uv >> 32 */
+	increase 1,regc
+	compare 8,regc,0xff
+	nbranch bn_mulmod_256_0,true
+//call ice_break
+	deposit temp
+	istore 4,contw					/* d[i + 12] = u */
+	increase -32,contw
+//	fetch 1,mem_regb
+//	copy pdata,regb
+	increase 1,queue
+	compare 8,queue,0xff
+	nbranch bn_mulmod_256_1,true
+	arg mem_tmp1_256,rega
+	copy timeup,contw
+	branch bn_p256mod
+
+bn_p256mod:
+	bpatchx patch30_4,mem_patch30
+	copy contw,timeup				/* save result ptr */
+	copy rega,alarm				/* temp save rega */
+	arg mem_tmp2_256,regb
+	copy regb,contw
+	call memset0_4	
+	istore 8,contw
+	add rega,44,contr
+	call memcpy8
+	call memcpy12
+	copy regb,rega
+	call  bn_lshiftmod_256 //2S1
+	arg mem_tmp2_256,regb
+	copy alarm,rega   
+	copy timeup,contw
+	call bn_addmod_256 //T+2S1
+//call ice_break	
+	arg mem_tmp2_256,regb
+	copy regb,contw
+	call memset0_4	
+	istore 8,contw
+	add alarm,48,contr
+	call memcpy16
+	call memset0_4	
+	copy regb,rega
+	call  bn_lshiftmod_256 //2S2
+//call ice_break	
+//	arg 0,regb
+
+	arg mem_tmp2_256,regb
+	copy timeup,rega   
+	copy rega,contw	
+	call bn_addmod_256  //+2S2
+//call ice_break	
+//	arg 0,regb
+		
+	arg mem_tmp2_256,regb
+	copy regb,contw
+	add alarm,32,contr
+	call memcpy12
+	call memset0_4	
+	istore 8,contw
+	add alarm,56,contr
+	call memcpy8
+	copy timeup,rega
+	copy rega,contw
+	call bn_addmod_256 //+S3
+//call ice_break	
+//	arg 0,regb
+
+	arg mem_tmp2_256,regb
+	copy regb,contw
+	add alarm,36,contr
+	call memcpy12
+	add alarm,52,contr	
+	call memcpy12
+	add alarm,52,contr
+	call memcpy4
+	add alarm,32,contr
+	call memcpy4
+	copy timeup,rega
+	copy rega,contw
+	call bn_addmod_256 //+S4	
+//call ice_break	
+//	arg 1,regb
+	arg mem_tmp2_256,regb
+	copy regb,contw
+	add alarm,44,contr
+	call memcpy12
+	call memset0_4	
+	istore 8,contw
+	add alarm,32,contr
+	call memcpy4
+	add alarm,40,contr
+	call memcpy4
+	copy timeup,rega
+	copy rega,contw
+	call bn_submod_256 //-D1	
+//call ice_break	
+//	arg 2,regb
+	arg mem_tmp2_256,regb
+	copy regb,contw
+	add alarm,48,contr
+	call memcpy8
+	call memcpy8
+	force 0,pdata
+	istore 8,contw
+	add alarm,36,contr
+	call memcpy4
+	add alarm,44,contr
+	call memcpy4
+	copy timeup,rega
+	copy rega,contw
+	call bn_submod_256 //-D2	
+//call ice_break	
+//	arg 3,regb
+	arg mem_tmp2_256,regb
+	copy regb,contw
+	add alarm,52,contr
+	call memcpy12
+	add alarm,32,contr
+	call memcpy12
+	call memset0_4	
+	add alarm,48,contr
+	call memcpy4
+	copy timeup,rega
+	copy rega,contw
+	call bn_submod_256 //-D3
+//call ice_break	
+//	arg 4,regb
+	arg mem_tmp2_256,regb
+	copy regb,contw
+	add alarm,56,contr
+	call memcpy8
+	call memset0_4	
+	add alarm,36,contr
+	call memcpy12
+	call memset0_4	
+	add alarm,52,contr
+	call memcpy4
+	copy timeup,rega
+	copy rega,contw
+	branch  bn_submod_256 //-D4	
+
+
+bn_load_mem:
+	force 32,loopcnt
+	arg mem_regext,contw
+	iadd contw,contw
+	branch memcpy
+
+bn_load_256:
+	force 8,loopcnt
+	branch bn_load_0
+
+bn_sqrmod_256:
+	copy rega,regb
+	branch bn_mulmod_256
+
+bn_add_256:
+	force 8,loopcnt
+ 	branch bn_add+1
+
+bn_addmod_256:
+	call bn_add_256
+	copy contw,rega
+	branch bn_lshiftmod_ismod_256
+
+bn_lshiftmod_256:
+	call bn_lshift_256
+bn_lshiftmod_ismod_256:	
+	isolate1 0,regc
+	branch bn_lshiftmod_p_256,true
+	arg mem_p_256,regb
+	copy rega,regc
+	increase -32,rega
+	call bn_bigeq_256
+	nrtn positive
+	copy regc,rega
+	branch sub_p2_256
+	
+bn_lshiftmod_p_256:
+	call sub_p2_256
+//	nrtn true
+	copy rega,regc
+	increase -32,rega
+	arg mem_p_256,regb
+	call bn_bigeq_256
+	nrtn positive
+	copy regc,rega
+	branch sub_p2_256
+		
+	
+sub_p2_256:
+	increase -32,rega
+	arg mem_p_256,regb
+	copy rega,contw
+	branch bn_sub_256
+	
+
+
+	
+bn_submod_256:
+	call bn_sub_256
+//	isolate1 0,regc
+	branch  bn_submod_256_np,true
+//	copy rega,regc
+//	increase -32,rega
+	add contw,-32,rega
+	arg mem_p_256,regb
+	call bn_bigeq_256
+	nrtn positive
+	arg mem_p_256,regb
+	add contw,-32,rega
+//	copy regc,rega
+	copy rega,contw
+	branch  bn_sub_256
+bn_submod_256_np:	
+	add contw,-32,rega
+	arg mem_p_256,regb
+	copy rega,contw
+	call bn_add_256
+//	isolate1 0,regc
+	rtn true
+	add contw,-32,rega
+	arg mem_p_256,regb
+	copy rega,contw
+	branch bn_add_256	
+
+
+ 
+bn_sub_256:
+	force 8,loopcnt
+	branch bn_sub+1
+
+bn_rshift_256:
+	force 8,loopcnt
+	increase 28,rega
+	branch bn_rshift
+
+bn_lshift_256:
+	force 8,loopcnt
+	force 0,regc
+	branch bn_lshift_0
+
+bn_bigeq_256:
+	force 8,loopcnt
+	increase 28,rega
+	increase 28,regb
+	branch bn_bigeq_0
+
+
+bn_eq_zero_256:
+	ifetch 8,contr
+	nrtn blank
+	branch bn_eq_zero
+
+
+
+	
+bn_rshifteven_256:
+	copy rega,alarm
+bn_rshifteven_256_1:
+	copy alarm,rega
+	ifetch 1,rega
+	isolate1 0,pdata
+	rtn true
+	call bn_rshift_256
+	ifetch 1,regb
+	isolate0 0,pdata
+	branch bn_rshifteven_256_0,true
+	arg mem_p_256,rega
+	copy regb,contw
+	call bn_add_256
+	ifetch 1,regb
+	iadd regc,pdata
+	istore 1,regb						 
+	increase -32,regb
+bn_rshifteven_256_0:
+	add regb,32,rega
+	force 9,loopcnt
+	call bn_rshift
+	branch bn_rshifteven_256_1		
+
+else
+sp_initialize_256:
+	rtn
+
+endif
+
+
Index: program/ui.prog
===================================================================
--- /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/program/ui.prog	(nonexistent)
+++ /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/program/ui.prog	(working copy)
@@ -0,0 +1,742 @@
+ui_init:
+	call lpm_disable_exen_output
+	rtn wake
+	call ui_button_init
+	call ui_timer_init
+	branch ui_led_init_global
+
+ui_dispatch:
+	call ui_led_dispatch
+	
+	branch ui_timer_check
+	
+ui_button_init:
+	fetch 1,mem_ui_button_gpio
+	rtneq UI_BUTTON_GPIO_DISABLE
+	iforce temp
+	call gpio_config_output
+	fetcht 1,mem_ui_button_gpio
+	call gpio_out_inactive
+	nop 100
+	fetcht 1,mem_ui_button_gpio
+	call gpio_config_input
+	branch ui_button_polling
+
+
+	
+ui_button_polling:
+	bpatchx patch30_5,mem_patch30
+	fetch 1,mem_ui_button_gpio
+	rtneq UI_BUTTON_GPIO_DISABLE
+	copy pdata,temp
+	call gpio_get_bit
+	nbranch ui_button_up,true
+	//fall through
+ui_button_down:
+	call ui_button_check_long_press
+	fetch 2,mem_ui_state_map
+	set1 UI_STATE_BTN_DOWN,pdata
+	store 2,mem_ui_state_map
+	fetch 1,mem_ui_button_last_state
+	rtneq UI_BUTTON_STATE_DOWN
+	jam UI_BUTTON_STATE_DOWN,mem_ui_button_last_state
+	//Down Edge
+	fetch 1,mem_ui_button_timeout
+	store 1,mem_ui_button_timer //start long press timer
+	call lpm_button_get_wake_lock
+	jam BT_EVT_BUTTON_DOWN,mem_fifo_temp
+	branch ui_ipc_send_event
+ui_button_up:
+	fetch 2,mem_ui_state_map
+	set0 UI_STATE_BTN_DOWN,pdata
+	store 2,mem_ui_state_map
+	fetch 1,mem_ui_button_last_state
+	rtneq UI_BUTTON_STATE_UP
+	jam UI_BUTTON_STATE_UP,mem_ui_button_last_state
+	//Up Edge
+	jam 0,mem_ui_button_timer//stop long press timer
+	call lpm_button_clean_wake_lock
+	jam BT_EVT_BUTTON_UP,mem_fifo_temp
+	branch ui_ipc_send_event
+
+ui_button_check_long_press:
+	fetch 1,mem_ui_button_timer
+	rtn blank
+	increase -1,pdata
+	store 1,mem_ui_button_timer
+	nrtn blank
+	//Long Press
+	jam BT_EVT_BUTTON_LONG_PRESSED,mem_fifo_temp
+	branch ui_ipc_send_event
+
+lpm_button_get_wake_lock:
+	arg wake_lock_button,queue
+	branch lpm_get_wake_lock
+	
+lpm_button_clean_wake_lock:
+	arg wake_lock_button,queue
+	branch lpm_put_wake_lock
+
+
+
+/***********************ui led function****************************/
+/******************
+led function
+
+ui_led_init_global
+ui_led_on_global
+
+ui_led_off_global
+//input:rega :struct number
+ui_led_blink_start_global
+
+//input:rega :struct number
+//contr: the point that want to set led style address
+ui_led_set_style_global
+
+******************/
+//input:rega :struct number
+//output:regb :current strutct starting pointer
+calc_curr_struct_prt:
+	fetch 2,mem_ui_led_struct_ptr
+	mul32 rega,LED_OFFSET_LENGTH,regb
+	iadd regb,regb
+	rtn
+
+
+ui_led_init_global:
+	fetch 1,mem_ui_led_struct_num
+	rtn blank
+	copy pdata,loopcnt
+	fetch 2,mem_ui_led_struct_ptr
+	copy pdata,regb
+ui_led_init_loop:
+	add regb,LED_OFFSET_LED_GPIO,regc
+	ifetcht 1,regc
+	call gpio_config_output
+	call ui_led_off_static
+	increase LED_OFFSET_LENGTH,regb
+	loop ui_led_init_loop
+	rtn
+
+	
+//input:rega :struct number
+ui_led_on_global:
+	call calc_curr_struct_prt
+	setarg UI_LED_STATE_LIGHTING
+	istore 1,regb
+	call ui_led_stop_timer
+	branch ui_led_on_static
+
+	
+//input:rega :struct number
+ui_led_blink_stop_global:
+ui_led_off_global:
+	call calc_curr_struct_prt
+	setarg UI_LED_STATE_DARKING
+	istore 1,regb
+	call ui_led_stop_timer
+	branch ui_led_off_static
+
+
+//input:rega :struct number
+ui_led_blink_start_global:
+	call calc_curr_struct_prt
+	setarg UI_LED_STATE_BLINK_START
+	istore 1,regb
+	setarg LED_INFINITE_FLASH_NUM
+	istore 1,contw
+	branch ui_led_off_static
+
+
+//input:rega :struct number
+//REGC: the point that want to set led style address
+ui_led_set_style_global:
+	call calc_curr_struct_prt
+	arg LED_OFFSET_LENGTH,loopcnt
+	copy regc,contr
+	copy regb,contw
+	branch memcpy_fast
+
+
+
+ui_led_dispatch:
+	fetch 1,mem_ui_led_struct_num
+	rtn blank
+	arg 0,rega
+ui_led_blink_polling:
+	call ui_led_change_style_by_type
+	increase 1,rega
+	fetch 1,mem_ui_led_struct_num
+	isub rega,null
+	rtn zero
+	branch ui_led_blink_polling
+
+
+ui_led_off_static:
+	add regb,LED_OFFSET_LED_GPIO,regc
+	ifetcht 1,regc
+	fetch 1,mem_device_option
+	beq dvc_op_mouse,mouse_ui_led_off_static
+	branch gpio_out_inactive
+
+
+ui_led_on_static:
+	add regb,LED_OFFSET_LED_GPIO,regc
+	ifetcht 1,regc
+	fetch 1,mem_device_option
+	beq dvc_op_mouse,mouse_ui_led_on_static
+	branch gpio_out_active
+
+
+//input:rega :struct number
+ui_led_change_style_by_type:
+	add rega,ui_led_blink,queue
+	call timer_check
+	nrtn blank			//timer out
+	
+	call calc_curr_struct_prt
+
+	ifetch 1,regb			//led type
+
+	beq UI_LED_STATE_LIGHTING,ui_led_on_static
+	beq UI_LED_STATE_DARKING,ui_led_off_static
+	beq UI_LED_STATE_BLINK_STOP,ui_led_off_static
+	beq UI_LED_STATE_BLINK_DARKING,ui_led_blink_state_darking
+ui_led_blink_state_lighting:
+	call ui_led_on_static
+	add regb,LED_OFFSET_CB_LEDON,regc
+	call push_stack
+	ifetch 2,regc
+	call callback_func
+	call pop_stack
+	setarg UI_LED_STATE_BLINK_DARKING
+	istore 1,regb
+	add regb,LED_OFFSET_ON_TIME,regc
+	ifetch 2,regc
+	branch ui_led_blink_timer_start
+	
+
+ui_led_blink_state_darking:
+	call ui_led_off_static
+	add regb,LED_OFFSET_CB_LEDOFF,regc
+	call push_stack
+	ifetch 2,regc
+	call callback_func
+	call pop_stack
+	
+	add regb,LED_OFFSET_BLINK_COUNT,regc
+	ifetch 1,regc
+	beq LED_INFINITE_FLASH_NUM,ui_led_blink_infinite
+	increase -1,pdata
+	istore 1,regc
+	branch ui_led_blink_stop_global,blank		//End of flicker
+ui_led_blink_infinite:
+	setarg UI_LED_STATE_BLINK_LIGHTING
+	istore 1,regb
+	add regb,LED_OFFSET_OFF_TIME,regc
+	ifetch 2,regc
+ui_led_blink_timer_start:
+	add rega,ui_led_blink,queue
+	branch timer_init
+
+ui_led_stop_timer:
+	setarg 0
+	branch ui_led_blink_timer_start
+
+/***********************ui led function ending****************************/
+
+
+
+ui_timer_timeout:
+	setarg 0x1000
+	lshift16 pdata,pdata
+	iadd regb,regb
+	rtn
+	
+ui_timer_check:
+	bpatchx patch30_6,mem_patch30
+	arg 0,rega
+	fetcht 4,mem_ui_timer_last_btclk
+	copy clkn_bt,regb
+	copy regb,pdata
+	isub temp,null
+	ncall ui_timer_timeout,positive
+	//call ice_break
+ui_timer_check_loop:
+	copy regb,pdata
+	increase 160,temp    //320btclk = 100ms
+	increase 160,temp
+	isub temp,null
+	nbranch ui_timer_check_end,positive
+	increase 1,rega   //increase 1 every 100ms count
+	and rega,0x0f,pdata
+	nbranch ui_timer_check_loop,blank
+	arg 0,rega  //reset timer if it's longer than 1.5s between 2 checks
+	call ui_timer_check_send_evt
+ui_timer_init:
+	copy clkn_bt,pdata
+	store 4,mem_ui_timer_last_btclk
+	rtn
+ui_timer_check_end:
+	bpatchx patch30_7,mem_patch30
+	copy rega,pdata
+	rtn blank
+	increase -160,temp    //320btclk = 100ms
+	increase -160,temp
+	set0 28,temp
+	storet 4,mem_ui_timer_last_btclk
+ui_timer_check_send_evt:
+	branch app_evt_timer
+
+	
+
+//**********************************************************//
+//************UI Inter-Processor Communication*******//
+//**********************************************************//
+ui_ipc_get_lock:
+	jam 1,mem_ipc_lock_bt
+ui_ipc_get_lock_wait:
+	fetch 1,mem_ipc_lock_c51
+	nbranch ui_ipc_get_lock_wait,blank
+	rtn
+	
+ui_ipc_put_lock:
+	jam 0,mem_ipc_lock_bt
+	rtn
+	
+
+	
+ui_ipc_send_event:
+	bpatchx patch31_0,mem_patch31
+	call ui_ipc_get_lock
+	copy rega,pdata
+	store 4,mem_ipc_rega_temp
+	arg mem_ipc_fifo_bt2c51,rega
+	call fifo_in
+	fetch 4,mem_ipc_rega_temp
+	copy pdata,rega
+	branch ui_ipc_put_lock
+
+ui_ipc_send_cmd:
+	bpatchx patch31_1,mem_patch31
+	call ui_ipc_get_lock
+	copy rega,pdata
+	store 4,mem_ipc_rega_temp	
+	arg mem_ipc_fifo_c512bt,rega
+	call fifo_in
+	fetch 4,mem_ipc_rega_temp
+	copy pdata,rega	
+	branch ui_ipc_put_lock
+
+ui_ipc_clean_all_fifo:
+	setarg 0
+	store UTIL_FIFO_LEN,mem_ipc_fifo_c512bt
+	store UTIL_FIFO_LEN,mem_ipc_fifo_bt2c51
+	rtn
+	
+check_51cmd:
+	bpatchx patch31_2,mem_patch31
+	fetch 1,mem_hci_cmd
+	nrtn blank
+	arg mem_ipc_fifo_c512bt,rega
+	call fifo_is_empty
+	rtn blank
+	jam IPC_CONTINUE_PROCESS,mem_ipc_skip_continue_proc
+	call check_51cmd_once
+	fetch 1,mem_ipc_skip_continue_proc
+	branch check_51cmd,blank
+	rtn
+
+check_51cmd_once:
+	call ui_ipc_get_lock
+	arg mem_ipc_fifo_c512bt,rega
+	call fifo_out
+	copy pdata,temp
+	call ui_ipc_put_lock
+	bpatchx patch31_3,mem_patch31
+	copy temp,pdata
+	rtn blank
+ 	beq BT_CMD_START_DISCOVERY,check_51cmd_start_discovery
+  	beq BT_CMD_STOP_DISCOVERY,check_51cmd_stop_discovery
+  	beq BT_CMD_RECONNECT,check_51cmd_reconnect
+	beq BT_CMD_START_ADV,check_51cmd_adv
+	beq BT_CMD_STOP_ADV,check_51cmd_stop_adv
+	beq BT_CMD_START_DIRECT_ADV,check_51cmd_direct_adv
+	beq BT_CMD_STOP_DIRECT_ADV,check_51cmd_stop_direct_adv
+	beq BT_CMD_LED_OFF,check_51cmd_led_off
+	beq BT_CMD_LED_ON,check_51cmd_led_on
+	beq BT_CMD_LED_BLINK,check_51cmd_led_start_blink
+	beq BT_CMD_LE_START_CONN,check_51cmd_le_start_con
+	beq BT_CMD_LE_START_SCAN,check_51cmd_start_scan
+	beq BT_CMD_LE_STOP_SCAN,check_51cmd_stop_scan
+	beq BT_CMD_ENTER_HIBERNATE,check_51cmd_hibernate
+	beq BT_CMD_BB_RECONN_CANCEL,check_51cmd_bb_reconn_cancel
+	//context related, process in context
+	store 1,mem_fifo_temp
+	call lmo_fifo_check
+	nbranch check_51cmd_restore,blank  //process this cmd next time while lmo fifo is full
+check_51cmd_once_continue:
+	fetch 1,mem_fifo_temp
+	bmark0 mark_context,check_51cmd_check_idle
+	bpatchx patch31_4,mem_patch31
+	fetch 1,mem_fifo_temp
+	beq BT_CMD_DISCONNECT,check_51cmd_disconnect
+  	beq BT_CMD_ENTER_SNIFF,check_51cmd_enter_sniff
+  	beq BT_CMD_EXIT_SNIFF,check_51cmd_exit_sniff
+  	beq BT_CMD_SET_PIN_CODE,check_51cmd_pincode
+	beq BT_CMD_LE_DISCONNECT,check_51cmd_le_disconnect
+	beq BT_CMD_LE_SMP_SECURITY_REQUEST,check_51cmd_le_smp_sec_req
+	beq BT_CMD_LE_UPDATE_CONN,check_51cmd_ble_update_connect_param
+	beq BT_CMD_ROLE_SWITCH,check_51cmd_role_switch
+	beq BT_CMD_STORE_RECONN_INFO_LE,eeprom_store_le_reconn_info
+	beq BT_CMD_STORE_RECONN_INFO_BT,eeprom_store_bd_reconn_info
+	beq BT_CMD_DHKEY_NOT_ACCEPT,check_51cmd_dhkey_not_accept
+	beq BT_CMD_STORE_RECONN_INFO,check_51cmd_store_reconn_info
+	rtn
+
+check_51cmd_check_idle:
+	store 1,mem_fifo_temp
+  	call context_check_idle
+	branch check_51cmd_restore,zero
+	call context_search_plap
+	nrtn zero
+check_51cmd_restore:
+	jam IPC_SKIP_CONTINUE_PROCESS,mem_ipc_skip_continue_proc
+	branch ui_ipc_send_cmd
+
+  
+ /******************** 51COMMAND*********************/
+//command opcode 0x01	
+check_51cmd_start_discovery:
+	fetch 2,mem_ui_state_map
+	set1 UI_STATE_BT_DISCOVERY,pdata
+	store 2,mem_ui_state_map
+	jam 3,mem_scan_mode
+	rtn
+
+
+//command opcode 0x02	
+check_51cmd_stop_discovery:
+	jam 0,mem_hid_handshake_timer_count
+	jam 0,mem_scan_mode
+	fetch 2,mem_ui_state_map
+	set0 UI_STATE_BT_DISCOVERY,pdata
+	store 2,mem_ui_state_map
+	rtn	
+
+
+//command opcode 0x03	
+check_51cmd_reconnect:	
+	jam hci_cmd_create_conn,mem_hci_cmd
+	rtn	
+
+
+//command opcode 0x04
+check_51cmd_disconnect:
+	jam LMP_DETACH,mem_lmo_opcode2
+	jam OTHER_END_TERMINATED,mem_disconn_reason_send
+	rtn
+
+
+//command opcode 0x05
+check_51cmd_enter_sniff:
+	jam LMP_SNIFF_REQ,mem_lmo_opcode2
+	arg mem_sniff_payload,contw
+	setarg 0
+	isolate1 27,clke_bt
+	setflag true,1,pdata		/* use init 2 if bit27 of clke is 1 */
+	istore 1,contw	
+	setarg 0	/* dsniff */
+	istore 2,contw
+	fetch 6,mem_sniff_param_interval
+	istore 6,contw
+	rtn	
+
+
+//command opcode 0x06
+check_51cmd_exit_sniff:
+	jam LMP_UNSNIFF_REQ,mem_lmo_opcode2
+	rtn
+
+
+//command opcode 0x10
+check_51cmd_pincode:
+	jam pincode_state_pincode_ready,mem_pincode_state
+//enable ssp master sm
+	fetch 1,mem_op
+	bbit1 op_inrand_req,check_51cmd_pincode_pair_passive
+	call tid_initiate
+	jam LMP_IN_RAND,mem_lmo_opcode2
+	rtn
+check_51cmd_pincode_pair_passive:
+	set0 op_inrand_req,pdata
+	store 1,mem_op
+	call lmp_accept_inrand
+	setarg 0
+	setflag master,smap_lmptid,pdata		
+	store 1,mem_lmo_tid2
+	rtn
+
+
+//command opcode 0x13
+check_51cmd_adv:
+	jam ON,mem_le_adv_enable
+	jam ADV_IND,mem_le_adv_type
+	fetch 2,mem_ui_state_map
+	set1 UI_STATE_BLE_ADV,pdata
+	store 2,mem_ui_state_map
+	rtn
+
+
+//command opcode 0x14
+check_51cmd_stop_adv:
+	fetch 2,mem_ui_state_map
+	set0 UI_STATE_BLE_ADV,pdata
+	store 2,mem_ui_state_map
+	jam OFF,mem_le_adv_enable
+	rtn
+
+
+//command opcode 0x15
+check_51cmd_direct_adv:
+	jam ON,mem_le_adv_enable
+	jam ADV_DIRECT_IND,mem_le_adv_type
+	fetch 2,mem_ui_state_map
+	set1 UI_STATE_BLE_ADV,pdata
+	store 2,mem_ui_state_map
+	rtn
+
+
+//command opcode 0x16
+check_51cmd_stop_direct_adv:
+	fetch 2,mem_ui_state_map
+	set0 UI_STATE_BLE_ADV,pdata
+	store 2,mem_ui_state_map
+	jam OFF,mem_le_adv_enable
+	rtn
+
+
+//command opcode 0x17
+check_51cmd_le_disconnect:
+	setarg 20 // 100ms
+	store 2,mem_le_superto
+	store 2,mem_le_init_superto
+	branch le_send_terminate_ind_user_terminated
+
+
+//command opcode 0x18
+check_51cmd_ble_update_connect_param:
+	branch le_l2cap_tx_update_req
+
+
+//command opcode 19
+check_51cmd_led_off:
+	arg 0,rega
+	branch ui_led_off_global
+
+
+//command opcode 20
+check_51cmd_led_on:
+	arg 0,rega
+	branch ui_led_on_global
+
+
+//command opcode 21
+check_51cmd_led_start_blink:
+	arg 0,rega
+	call calc_curr_struct_prt
+	ifetch 1,regb
+	beq UI_LED_STATE_BLINK_START,check_51cmd_led_start_blink_in_blink
+	beq UI_LED_STATE_BLINK_LIGHTING,check_51cmd_led_start_blink_in_blink
+	beq UI_LED_STATE_BLINK_DARKING,check_51cmd_led_start_blink_in_blink
+	branch ui_led_blink_start_global
+
+check_51cmd_led_start_blink_in_blink:
+	ifetch 1,contr
+	rtneq LED_INFINITE_FLASH_NUM
+	branch ui_led_blink_start_global
+
+
+//command opcode 0x22
+check_51cmd_le_start_con:
+	jam ON,mem_le_scan_enable
+	jam hci_cmd_le_create_conn,mem_hci_cmd
+//	fetch 6,mem_app_peer_addr
+//	store 6,mem_le_conn_peer_addr
+	rtn
+
+
+//command opcode 0x23
+check_51cmd_start_scan:
+	jam ON,mem_le_scan_enable
+	rtn
+
+
+//command opcode 0x24
+check_51cmd_stop_scan:
+	jam OFF,mem_le_scan_enable
+	jam 0,mem_hci_cmd
+	rtn
+
+
+//command opcode 0x25
+check_51cmd_hibernate:
+	fetch 2,mem_cb_before_hibernate
+	call callback_func
+	fetch 1,mem_ui_button_gpio
+	beq UI_BUTTON_GPIO_DISABLE,check_51cmd_hibernate_btn_disabled
+	copy pdata,temp
+	call gpio_config_input
+check_51cmd_hibernate_btn_disabled:
+	call ui_ipc_clean_all_fifo
+	branch lpm_hibernate	
+
+
+//command opcode 0x27
+check_51cmd_le_smp_sec_req:
+	branch le_send_smp_security_request
+
+
+//command opcode 0x29
+check_51cmd_role_switch:
+  	jam LMP_SLOT_OFFSET,mem_lmo_opcode2
+	set1 mark_switch_initiated,mark
+	nrtn master
+	jam SWITCH_FLAG_INIT,mem_switch_flag
+	jam LMP_SWITCH_REQ ,mem_lmo_opcode2
+	fetch 1,mem_connection_options
+	set0 CONNECTION_SWITCH,pdata
+	store 1,mem_connection_options
+	rtn
+
+
+//command opcode 0x30
+check_51cmd_bb_reconn_cancel:
+	force page_length_timer,queue
+	branch timer_stop
+
+
+//command opcode 0x33
+check_51cmd_dhkey_not_accept:
+	call tid_set_reply
+	jam LMP_DHKey_Check,mem_lmi_opcode2
+	branch lmp_reject_pdu_not_allowed	
+
+
+ui_check_paring_button:
+	fetch 1,mem_ui_state_map
+	rtnbit0 UI_STATE_BTN_DOWN
+	rtnbit0 UI_STATE_BT_RECONNECT
+	branch check_51cmd_bb_reconn_cancel
+
+
+
+///////////queue function////////////
+queue_init:
+	fetch 2,mem_queue_ptr
+	add pdata,QUEUE_OFFSET_CURR_NUM,contw
+	setarg 0
+	istore 3,contw
+	rtn
+	
+//input:rega:the address of the data to which you want to input queue
+//output:if user is disable,mean queue no have space
+queue_push:
+	call disable_user
+	call queue_full
+	rtn blank
+	fetch 2,mem_queue_ptr
+	add pdata,QUEUE_OFFSET_CURR_NUM,regb
+	ifetcht 1,regb
+	increase 1,temp
+	istoret 1,regb	//number add 
+	
+	ifetcht 1,pdata	//temp:each length
+	copy temp,loopcnt
+	add pdata,QUEUE_OFFSET_WRITE_PTR,regb
+	ifetch 1,regb
+	imul32 temp,pdata	//offset
+	iadd contr,contw
+	copy rega,contr
+calc_queue_next_ptr:
+	call memcpy
+	call queue_get_size
+	pincrease -1
+	ifetcht 1,regb
+	increase 1,temp
+	iand temp,temp
+	istoret 1,regb
+	branch enable_user
+
+
+//input:rega:the address of the data to which you want to output queue
+//output:if user is disable,mean queue no have data
+queue_pop:
+	call disable_user
+	call queue_empty
+	rtn blank
+	fetch 2,mem_queue_ptr
+	add pdata,QUEUE_OFFSET_CURR_NUM,regb
+	ifetcht 1,regb
+	increase -1,temp
+	istoret 1,regb
+	ifetcht 1,pdata		//each size
+	copy temp,loopcnt
+	add pdata,QUEUE_OFFSET_READ_PTR,regb
+	ifetch 1,regb
+	imul32 temp,pdata	//offset
+	iadd contr,contr
+	increase 1,contr
+	copy rega,contw
+	branch calc_queue_next_ptr
+
+
+//function:no pop element,only copy element in rega
+//input:rega:the address of the data to which you want to output queue
+//output:if user is disable,mean queue no have data
+//regb is new ptr
+queue_get_new_ele:
+	call disable_user
+	call queue_empty
+	rtn blank
+	fetch 2,mem_queue_ptr
+	ifetcht 1,pdata		//each size
+	copy temp,loopcnt
+	add pdata,QUEUE_OFFSET_READ_PTR,regb
+	ifetch 1,regb
+	imul32 temp,pdata	//offset
+	iadd contr,contr
+	increase 1,contr
+	copy contr,regb
+	copy rega,contw
+	call memcpy
+	branch enable_user
+
+
+//output:if blank is 1,mean queue is empty
+queue_empty:
+	fetch 2,mem_queue_ptr
+	add pdata,QUEUE_OFFSET_CURR_NUM,contr
+	ifetch 1,contr
+	rtn
+
+//output:if blank is 1,mean queue is full
+queue_full:
+	call queue_get_size
+	ifetcht 1,contr
+	isub temp,pdata
+	rtn
+
+//output:pdata is queue size
+queue_get_size:
+	fetch 2,mem_queue_ptr
+	add pdata,QUEUE_OFFSET_LENGTH,contr
+	ifetch 1,contr
+	rtn
+
+///////////queue function end////////////
+
+
+
+
Index: program/usb.prog
===================================================================
--- /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/program/usb.prog	(nonexistent)
+++ /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/program/usb.prog	(working copy)
@@ -0,0 +1,1056 @@
+ ifdef COMPILE_USB
+
+usb_isr:
+	bpatchx patch31_5,mem_patch31
+	fetch 1,core_usb_status
+	isolate1 USB_STATUS_RESET,pdata
+	call usb_init,true
+	fetch 1,core_usb_status
+	store 1,core_usb_status
+	store 1,mem_usb_status
+	call usb_nak_state_judge
+	call usb_rx
+	call usb0_tx
+	call usb_tx
+	branch usb_nak_state
+
+usb_init:
+	bpatchx patch31_6,mem_patch31
+	call enable_authrom
+	call usb_init_param
+	jam 0x00,core_usb_config
+ifdef SIM
+	nop 10
+else
+	nop 10000
+endif
+	jam 0xc0,core_usb_trig
+	fetch 2,core_clkoff
+	set0 CLOCK_OFF_USB,pdata
+	store 2,core_clkoff
+	jam 0x0,core_usb_hmode
+	jam 0x3c,core_usb_config
+	setarg mem_usb_rxbuf
+	store 2,core_usb_rx_saddr
+	store 2,core_usb_rxptr
+	setarg mem_usb_rxbuf_end
+	store 2,core_usb_rx_eaddr
+	jam 0x4,core_usb_hmode
+	jam 0,core_usb_addr
+	jam 0xff,core_usb_status
+	setarg mem_usb_clear_mem_end
+	arg mem_usb_clear_mem_start,contw
+	isub contw,loopcnt
+	branch clear_mem
+	
+usb_offline_check_init:
+	fetcht 1,mem_usb_offline_check_gpio
+	branch gpio_config_input
+usb_offline_state:
+	fetch 1,mem_usb_device_enumeration_endflag
+	rtn blank
+	fetcht 1,mem_usb_offline_check_gpio
+	call gpio_get_bit
+	branch usb_init,true
+	rtn
+
+usb_init_param:
+	jam DEV_DEFAULT,mem_usb0_state
+	setarg 0x0
+	store 1,mem_remain
+	store 2,mem_usb_zero_packet
+	pincrease 1
+	store 2,mem_usb_ones_packet
+	pincrease 1
+	store 2,mem_usb_two_packet
+	arg mem_string0,contw
+	setarg 0x030404
+	istore 3,contw
+	setarg 0x0409
+	istore 2,contw
+	arg mem_string1,contw
+	setsect 0,0x15906
+	setsect 1,0x210d2
+	setsect 2,0x10494
+	setsect 3,0x1
+	istore 9,contw
+	arg mem_string3,contw
+	setsect 0,0x1620a
+	setsect 1,0xc8c
+	setsect 2,0x30333
+	setsect 3,0xc0c0
+	istore 9,contw
+	setsect 0,0x3130
+	istore 2,contw
+	setarg USB_KBDATA_VENDOR_DEFINE_ADDR
+	store 2,mem_hidreportdesc_kb
+	setarg USB_MSDATA_ADDR
+	store 2,mem_hidreportdesc_m
+	arg USB_DEVICEDATA_ADDR,contr
+	arg mem_devicedesc,contw
+	arg 19,loopcnt
+	call memcpy	
+	arg USB_CONFDATA_ADDR,contr
+	arg mem_confdesc,contw
+	arg 60,loopcnt
+	call memcpy
+usb_config_cb:
+	fetch 2,mem_cb_usb_config
+	branch callback_func
+
+usb_tx_interval_config:
+	fetch 1,mem_usb_tx_interval
+	rtn blank
+	store 1,mem_confdesc+34
+	store 1,mem_confdesc+59
+	rtn
+
+usb_nak_state:
+	arg TIMER_NAK,queue
+	call timer_check
+	nrtn blank
+	fetch 1 ,mem_usb_wakestate_onetime_flag
+	nrtn blank
+	fetch 1,mem_usb_device_enumeration_endflag
+	ncall usb_mac_wakeup_judge,blank
+	rtn
+
+usb_nak_state_judge:
+	fetch 1,mem_usb_status
+	bbit1 USB_STATUS_NAK,usb_nak_state_timer_init
+	rtn
+	
+usb_nak_state_timer_init:
+	call usb0_attached_state_judge
+	call timer_reinit
+	setarg TIMER_NAK_DELAY
+	arg TIMER_NAK,queue
+	branch timer_init
+	
+usb0_attached_state_judge:
+	fetch 1,mem_usb_state
+	bne USB_CONNECTED,usb_clear_halt_dispose
+	jam 0,mem_usb_wakestate_onetime_flag
+	jam 0,mem_usb_mac_wakeup_trig
+	rtn
+
+usb_clear_halt_dispose:
+	fetch 1,mem_usb_clear_halt
+	rtn blank
+	jam 0,mem_usb_clear_halt
+	jam USB_CONNECTED,mem_usb_state
+	jam 1,mem_usb_device_enumeration_endflag
+	rtn
+
+usb_rx_no_data:
+	fetch 1,mem_usb_status
+	bbit1 USB_STATUS_SETUP,usb_class_type
+	rtn
+
+usb_rx_data:
+	fetch 1,core_usb_txbusy
+	rtnbit1 USB_STATUS_RXEMPTY
+	fetchr contus,2,core_usb_rx_saddr
+	fetchr contue,2,core_usb_rx_eaddr
+	fetchr contu,2,core_usb_rxptr
+	ifetch 2,contu
+	rshift8 pdata,temp
+	rshift4 temp,temp					// temp is endpoint
+	arg 0xfff,contr
+	iand contr,loopcnt
+	copy loopcnt,rega
+usb_rx_read:
+	ifetch 1,contu
+	istore 1,contw
+	loop usb_rx_read
+	storer contu,2,core_usb_rxptr
+	storer rega,2,mem_usb_read_len
+	rtn
+usb_data_rx:
+	rtn 
+
+usb_rx:
+	bpatchx patch31_7,mem_patch31
+	fetch 1,mem_usb_status
+	rtnbit0 USB_STATUS_RXREADY
+	arg mem_usb_setup,contw
+	call usb_rx_data
+	copy temp,pdata
+	beq 0,usb0_rx
+	branch usb_data_rx
+usb0_rx:
+	fetch 1,mem_usb_read_len
+	sub pdata,7,null
+	rtn positive
+usb_class_type:
+	bpatchx patch32_0,mem_patch32
+	set0 mark_isstr,mark
+	fetch 1,mem_usb_setup_bmRequestType
+	and_into 0x80,pdata
+	beq IN_DEVICE,usb_in_device
+	beq OUT_DEVICE,usb_out_device
+	branch assert
+
+usb_in_device:
+	fetch 1,mem_usb_setup_bmRequestType
+	rshift4 pdata,pdata
+	rshift pdata,pdata
+	and_into 0x03,pdata
+	beq STANDARD_REQ,usb_in_standard_req
+	beq CLASS_REQ,usb_in_class_req
+	beq MANUFACTURER_REQ,usb_in_manufacturer_req
+	branch assert
+
+usb_out_device:
+	fetch 1,mem_usb_setup_bmRequestType
+	rshift4 pdata,pdata
+	rshift pdata,pdata
+	and_into 0x03,pdata
+	beq STANDARD_REQ,usb_out_standard_req
+	beq CLASS_REQ,usb_out_class_req	
+	beq MANUFACTURER_REQ,usb_out_manufacturer_req
+	branch assert
+
+usb_in_standard_req:
+	fetch 1,mem_usb_setup_bRequest
+	beq GET_CONFIGURATION,usb0_request_get_configuration
+	beq GET_DESCRIPTOR,usb0_request_get_descriptor
+	beq GET_INTERFACE,usb0_request_get_interface
+	beq GET_STATUS,usb0_request_get_status
+	branch usb0_force_stall
+
+usb_in_class_req:
+	fetch 1,mem_usb_setup_bRequest
+	beq GET_IDLE,usb_get_idle
+	beq GET_REPORT,usb_get_report
+	beq GET_PROTOCOL,usb_get_protocol_req
+	branch usb0_force_stall
+
+usb_in_manufacturer_req:
+	branch usb0_force_stall
+
+usb_out_standard_req:
+	fetch 1,mem_usb_setup_bRequest
+	beq CLEAR_FEATURE,usb0_request_clear_feature
+	beq SET_FEATURE,usb0_request_set_feature
+	beq SET_ADDRESS,usb0_request_set_address
+	beq SET_CONFIGURATION,usb0_request_set_configuration
+	beq SET_INTERFACE,usb0_request_set_interface
+	beq SET_DESCRIPTOR,usb0_force_stall
+	branch usb0_force_stall
+
+usb_out_class_req:
+	fetch 1,mem_usb_setup_bRequest
+	beq SET_IDLE,usb_set_idle
+	beq SET_REPORT,usb_set_report
+	beq SET_PROTOCOL,usb_set_protocol_req
+	branch usb0_force_stall
+
+usb_out_manufacturer_req:
+	branch usb0_force_stall
+
+usb0_force_stall:
+	fetch 1,core_usb_stall
+	set1 0,pdata
+	store 1,core_usb_stall
+	branch usb0_reply_zerolen
+	
+usb0_reply_zerolen:
+	jam 0x10,core_usb_trig
+	rtn
+
+usb0_request_get_configuration:
+	fetch 1,mem_usb_setup_bmRequestType
+	bne IN_DEVICE,usb0_force_stall
+	fetch 1,mem_usb_setup_wIndex
+	bne 0,usb0_force_stall
+	fetch 1,mem_usb_setup_wIndex+1
+	bne 0,usb0_force_stall
+	fetch 1,mem_usb_setup_bLength
+	bne 1,usb0_force_stall
+	fetch 1,mem_usb_setup_bLengthH
+	bne 0,usb0_force_stall
+	fetch 1,mem_usb_setup_bValue
+	bne 0,usb0_force_stall
+	fetch 1,mem_usb_setup_bValue+1
+	bne 0,usb0_force_stall
+	fetch 1,mem_usb0_state
+	beq DEV_CONFIGURED,usb0_request_get_cfg_dev_cfg
+	beq DEV_ADDRESS,usb0_request_get_cfg_dev_addr
+	branch usb0_force_stall
+//Return current config : 1
+usb0_request_get_cfg_dev_cfg:
+	arg 1,regb
+	branch usb_send_ones_packet
+//Config do not work, return default config : 0
+usb0_request_get_cfg_dev_addr:
+	arg 1,regb
+	branch usb_send_zero_packet
+
+usb0_request_get_descriptor:
+	bpatchx patch32_1,mem_patch32
+//	set0 mark_isstr,mark
+	fetch 1,mem_usb_setup_bValueH
+	beq DSC_DEVICE,dsc_device_info
+	beq DSC_CONFIG,dsc_config_info	
+	beq DSC_STRING,dsc_string_info
+	beq DSC_HID,dsc_hid_info
+	beq DSC_HID_REPORT,dsc_hid_report_info
+	branch usb0_force_stall
+
+dsc_hid_info:
+	jam 0,mem_usb_get_protocol_flag
+	fetch 1,mem_usb_setup_wIndex
+	beq 0,dsc_hid_info_interface0
+	beq 1,dsc_hid_info_interface1
+	branch usb0_force_stall
+//class_descriptor hid_descriptor--keyboard 
+dsc_hid_info_interface0:
+	fetchr regb,1,mem_confdesc+19
+	arg mem_confdesc+19,rega
+	branch usb0_respond
+//class_descriptor hid_descriptor--mouse 
+dsc_hid_info_interface1:
+	fetchr regb,1,mem_confdesc+44
+	arg mem_confdesc+44,rega
+	branch usb0_respond
+
+dsc_device_info:
+//input : pdata : data poniter 
+//input : temp: data len
+//sets the data pointer and len to correct descriptor
+	fetch 1,mem_usb_set_high_addr_flag
+	ncall usb_set_high_addr,blank
+	setarg mem_devicedesc
+	fetcht 1,mem_devicedesc
+dsc_info_set_data_len:
+	store 2,mem_dsc_info_data_pointer
+	storet 1,mem_dsc_info_len
+	fetch 1,mem_usb_setup_bLength
+	isub temp,null
+	nbranch dsc_info_set_current_data_len,positive
+dsc_info_set_initial_data_len:
+	fetch 1,mem_dsc_info_len
+dsc_info_set_data_size_completed:	
+	iforce regb
+	fetch 2,mem_dsc_info_data_pointer
+	add pdata,1,pdata
+	iforce rega
+	branch usb0_respond
+dsc_info_set_current_data_len:
+	fetch 1,mem_usb_setup_bLength
+	branch dsc_info_set_data_size_completed
+
+usb_set_high_addr:
+	fetch 1,core_usb_addr
+	ncall usb0_set_addr,blank
+	jam 0,mem_usb_set_high_addr_flag
+	rtn
+usb0_set_addr:
+	fetch 1,core_usb_addr
+   	set1 7,pdata
+	store 1,core_usb_addr
+	rtn
+
+dsc_config_info:
+	setarg mem_confdesc
+	fetcht 1,mem_confdesc
+	branch dsc_info_set_data_len
+
+dsc_string_info:
+	fetch 1,mem_usb_setup_bValue
+	sub pdata,3,null
+	nbranch usb0_force_stall,positive
+	fetch 1,mem_usb_setup_bValue
+	arg mem_string0,rega
+	beq 0,usb0_respond_length	
+	set1 mark_isstr,mark
+	arg mem_string1,rega
+	beq 1,usb0_respond_length
+	arg mem_string2,rega
+	beq 2,usb0_respond_length
+	arg mem_string3,rega
+	beq 3,usb0_respond_length
+	rtn
+
+dsc_hid_report_info:
+	fetch 2,mem_usb_setup_wIndex
+	beq 1,dsc_hid_report_info0
+	fetchr rega,2,mem_hidreportdesc_kb
+	branch usb0_respond_length
+dsc_hid_report_info0:
+	jam 1,mem_usb_device_enumeration_endflag
+	jam USB_GOT_REPORT_REQ,mem_usb_state
+	fetchr rega,2,mem_hidreportdesc_m
+	branch usb0_respond_length
+
+
+usb0_request_get_interface:
+	fetch 1,mem_usb0_state
+	bne DEV_CONFIGURED,usb0_force_stall		
+	fetch 1,mem_usb_setup_bmRequestType
+	bne IN_INTERFACE,usb0_force_stall
+	fetch 1,mem_usb_setup_bValue
+	bne 0,usb0_force_stall
+	fetch 1,mem_usb_setup_bValueH
+	bne 0,usb0_force_stall
+	fetch 1,mem_usb_setup_bLength
+	bne 1,usb0_force_stall
+	fetch 1,mem_usb_setup_bLengthH
+	bne 0,usb0_force_stall
+	fetch 1,mem_usb_setup_wIndex
+	bne 0,usb0_force_stall
+	fetch 1,mem_usb_setup_wIndex+1
+	bne 0,usb0_force_stall
+	arg 1,regb
+	branch usb_send_zero_packet
+
+
+usb0_request_get_status:
+	fetch 1,mem_usb0_state
+	beq DEV_DEFAULT,usb0_force_stall
+	fetch 1,mem_usb_setup_bValue
+	bne 0,usb0_force_stall
+	fetch 1,mem_usb_setup_bValueH
+	bne 0,usb0_force_stall
+	fetch 1,mem_usb_setup_bLength
+	bne 2,usb0_force_stall
+	fetch 1,mem_usb_setup_bLengthH
+	bne 0,usb0_force_stall
+	fetch 1,mem_usb_setup_wIndex+1
+	bne 0,usb0_force_stall
+	fetch 1,mem_usb_setup_bmRequestType
+	beq IN_DEVICE,usb0_get_status_in_device
+	beq IN_INTERFACE,usb0_get_status_in_interface
+	beq IN_ENDPOINT,usb0_get_status_in_endpoint
+	branch usb0_force_stall
+
+
+Usb0_SDsystem_dispose:
+	jam 1,mem_sdsystem_wakeup_flag
+	branch usb_send_two_packet
+
+usb0_get_status_in_device:
+	fetch 1,mem_usb_setup_wIndex
+	bne 0,usb0_force_stall
+	arg 2,regb
+	fetch 1,mem_usb_remote_wakeup
+	beq 0x01,Usb0_SDsystem_dispose
+//regb:length
+usb_send_zero_packet:
+	arg mem_usb_zero_packet,rega
+	branch usb0_respond
+usb_send_ones_packet:
+	arg mem_usb_ones_packet,rega
+	branch usb0_respond
+usb_send_two_packet:
+	arg mem_usb_two_packet,rega
+	branch usb0_respond
+
+usb0_get_status_in_interface:
+	fetch 1,mem_usb0_state
+	bne DEV_CONFIGURED,usb0_force_stall
+	arg 2,regb
+	branch usb_send_zero_packet
+
+usb0_get_status_in_endpoint:
+	fetch 1,mem_usb0_state
+	bne DEV_CONFIGURED,usb0_force_stall
+	fetch 1,mem_usb_setup_wIndex
+	beq IN_EP1,usb0_get_status_in_ep_in_ep1
+	beq IN_EP2,usb0_get_status_in_ep_in_ep2
+	beq IN_EP3,usb0_get_status_in_ep_in_ep3
+	and_into 0x7f,pdata
+	beq 0x00,usb0_get_status_in_ep_in_ep0
+	branch usb0_force_stall
+	
+usb0_get_status_in_ep_in_ep0:
+	fetch 1,mem_usb_ep0_stall_status
+usb0_get_status_in_ep_in_ack:
+	arg 2,regb
+	beq 1,usb_send_ones_packet
+	branch usb_send_zero_packet
+usb0_get_status_in_ep_in_ep1:
+	fetch 1,mem_usb_ep1_stall_status
+	branch usb0_get_status_in_ep_in_ack
+usb0_get_status_in_ep_in_ep2:
+	fetch 1,mem_usb_ep2_stall_status
+	branch usb0_get_status_in_ep_in_ack
+usb0_get_status_in_ep_in_ep3:
+	fetch 1,mem_usb_ep3_stall_status
+	branch usb0_get_status_in_ep_in_ack
+
+usb_get_idle:
+	jam 1,mem_usb_idle_flag
+	arg mem_usb_idle_rate,rega
+	arg 1,regb
+	branch usb0_respond
+
+usb_get_report:
+	fetch 2,mem_usb_setup_bValue
+	arg PC_GET_REPORT,temp
+	isub temp,null
+	nbranch usb0_force_stall,zero
+//	set0 mark_isstr,mark
+usb_get_report_dispose:	
+	fetch 1,mem_usb0_data_ready_report
+	nbranch usb_get_report_data_success,blank
+	jam PC_GET_NONDATA,mem_usb0_get_report_data
+usb_get_report_send_data:
+	fetch 1,mem_usb_setup_bLength
+	iforce regb
+	arg mem_usb0_get_report_data,rega
+	call usb0_respond
+usb_get_report_data_release:	
+	arg mem_usb0_get_report_data,contw
+	arg 8,loopcnt
+	branch memset0
+usb_get_report_data_success:
+	jam 0,mem_usb0_data_ready_report
+	jam PC_GET_DATA,mem_usb0_get_report_data
+	branch usb_get_report_send_data
+
+usb_get_protocol_req:
+	fetch 1,mem_usb_setup_bLength
+	bne 1,usb0_force_stall
+	jam 1,mem_usb_get_protocol_flag
+	arg 1,regb //length
+	fetch 1,mem_usb_set_protocol_value
+	beq 0,usb_get_report_protocol
+	beq 1,usb_get_boot_protocol
+	branch usb_send_zero_packet
+usb_get_report_protocol:
+	branch usb_send_ones_packet
+usb_get_boot_protocol:
+	branch usb_send_zero_packet
+
+
+
+//in device
+usb0_request_clear_feature:
+	fetch 1,mem_usb0_state
+	bne DEV_CONFIGURED,usb0_force_stall
+	fetch 1,mem_usb_setup_bLength
+	bne 0,usb0_force_stall
+	fetch 1,mem_usb_setup_bLengthH
+	bne 0,usb0_force_stall
+	fetch 1,mem_usb_setup_bValueH
+	bne 0,usb0_force_stall
+	fetch 1,mem_usb_setup_wIndex+1
+	bne 0,usb0_force_stall
+	fetch 1,mem_usb_setup_bmRequestType
+	beq OUT_DEVICE,usb0_request_clear_feature_out_device
+	beq OUT_INTERFACE,usb0_request_clear_feature_out_interface
+	beq OUT_ENDPOINT,usb0_request_clear_feature_out_endpoint
+	branch usb0_force_stall
+
+usb0_request_clear_feature_out_device:
+	fetch 1,mem_usb_setup_bValue
+	bne DEVICE_REMOTE_WAKEUP,usb0_force_stall
+	fetch 1,core_usb_config
+	set0 7,pdata
+	store 1,core_usb_config
+	jam 0,mem_usb_remote_wakeup
+	jam 1,mem_usb_clear_remote_wakeup
+	fetch 1,mem_sdsystem_wakeup_flag
+	branch usb0_reply_zerolen,blank
+	jam 0,mem_sdsystem_wakeup_flag
+	jam 0,mem_usb_clear_remote_wakeup
+	jam USB_CONNECTED,mem_usb_state
+	branch usb0_reply_zerolen
+
+usb0_request_clear_feature_out_interface:
+	branch usb0_force_stall
+
+usb0_request_clear_feature_out_endpoint:
+	fetch 1,mem_usb_setup_bValue
+	bne ENDPOINT_HALT,usb0_force_stall
+	fetch 1,mem_usb_setup_wIndex
+	beq IN_EP1,usb0_force_stall_ep1_in_off
+	beq IN_EP2,usb0_force_stall_ep2_in_off
+	beq IN_EP3,usb0_force_stall_ep3_in_off
+	and_into 0x7f,pdata
+	beq 0x00,usb0_force_stall_ep0_in_off
+	branch usb0_force_stall
+
+usb0_force_stall_ep0_in_off:
+	jam 0,mem_usb_ep0_stall_status
+	branch usb0_reply_zerolen
+usb0_force_stall_ep1_in_off:
+	jam 0,mem_usb_ep1_stall_status
+usb0_force_stall_ep1_in_off_reply:	
+	jam 1,mem_usb_clear_halt
+	branch usb0_reply_zerolen
+usb0_force_stall_ep2_in_off:
+	jam 0,mem_usb_ep2_stall_status
+	branch usb0_force_stall_ep1_in_off_reply
+usb0_force_stall_ep3_in_off:
+	jam 0,mem_usb_ep3_stall_status
+	branch usb0_force_stall_ep1_in_off_reply
+
+
+usb0_request_set_feature:
+	fetch 1,mem_usb_setup_bLength
+	bne 0,usb0_force_stall
+	fetch 1,mem_usb_setup_bLengthH
+	bne 0,usb0_force_stall
+	fetch 1,mem_usb_setup_bmRequestType
+	beq OUT_DEVICE,usb0_request_set_feature_out_device
+	beq OUT_INTERFACE,usb0_request_set_feature_out_interface
+	beq OUT_ENDPOINT,usb0_request_set_feature_out_endpoint
+	branch usb0_force_stall
+
+usb0_request_set_feature_out_device:
+	fetch 1,mem_usb_setup_bValue
+	bne DEVICE_REMOTE_WAKEUP,usb0_force_stall
+	fetch 1,core_usb_config
+	set1 7,pdata
+	store 1,core_usb_config
+	jam 1,mem_usb_remote_wakeup
+	jam USB_SLEEP,mem_usb_state
+	jam 0,mem_usb_tx_win_enable
+	call usb0_reply_zerolen
+usb_wakeup_timer_reinit:
+	call timer_reinit
+	setarg TIMER_WAKEUP_DELAY
+	arg TIMER_WAKEUP,queue
+	branch timer_init
+	
+usb0_request_set_feature_out_interface:
+	branch usb0_force_stall
+
+usb0_request_set_feature_out_endpoint:
+	fetch 1,mem_usb_setup_bValue
+	bne ENDPOINT_HALT,usb0_force_stall
+	fetch 1,mem_usb_setup_bValueH
+	bne 0,usb0_force_stall
+	fetch 1,mem_usb_setup_wIndex
+	beq IN_EP1,usb0_force_stall_ep1_in_on
+	beq IN_EP2,usb0_force_stall_ep2_in_on
+	beq IN_EP3,usb0_force_stall_ep3_in_on
+	and_into 0x7f,pdata
+	beq 0x00,usb0_force_stall_ep0_in_on
+	branch usb0_force_stall
+
+usb0_force_stall_ep0_in_on:
+	jam 1,mem_usb_ep0_stall_status
+	branch usb0_reply_zerolen
+usb0_force_stall_ep1_in_on:
+	jam 1,mem_usb_ep1_stall_status
+	branch usb0_reply_zerolen
+usb0_force_stall_ep2_in_on:
+	jam 1,mem_usb_ep2_stall_status
+	branch usb0_reply_zerolen
+usb0_force_stall_ep3_in_on:
+	jam 1,mem_usb_ep3_stall_status
+	branch usb0_reply_zerolen
+
+
+usb0_request_set_address:
+	fetch 1,mem_usb_setup_bmRequestType
+	bne OUT_DEVICE,usb0_force_stall
+	fetch 1,mem_usb_setup_wIndex
+	bne 0,usb0_force_stall
+	fetch 1,mem_usb_setup_wIndex+1
+	bne 0,usb0_force_stall
+	fetch 1,mem_usb_setup_bLength
+	bne 0,usb0_force_stall
+	fetch 1,mem_usb_setup_bLengthH
+	bne 0,usb0_force_stall
+	fetch 1,mem_usb_setup_bValueH
+	bne 0,usb0_force_stall
+	fetch 1,mem_usb_setup_bValue
+	and_into 0x80,pdata
+	bne 0,usb0_force_stall
+	fetch 1,mem_usb_setup_bValue
+	bne 0,usb_usb0_state_set_dev_addr
+usb_usb0_state_set_dev_default:	
+	jam DEV_DEFAULT,mem_usb0_state
+usb0_request_set_wait_address:
+	fetch 1,mem_usb_setup_bValue
+	store 1,core_usb_addr
+	call usb0_reply_zerolen
+	jam 1,mem_usb_set_high_addr_flag
+	rtn
+usb_usb0_state_set_dev_addr:
+	jam DEV_ADDRESS,mem_usb0_state
+	branch usb0_request_set_wait_address
+
+
+usb0_request_set_configuration:
+	fetch 1,mem_usb0_state
+	beq DEV_DEFAULT,usb0_force_stall
+	fetch 1,mem_usb_setup_bmRequestType
+	bne OUT_DEVICE,usb0_force_stall
+	fetch 1,mem_usb_setup_wIndex
+	bne 0,usb0_force_stall
+	fetch 1,mem_usb_setup_wIndex+1
+	bne 0,usb0_force_stall
+	fetch 1,mem_usb_setup_bLength
+	bne 0,usb0_force_stall
+	fetch 1,mem_usb_setup_bLengthH
+	bne 0,usb0_force_stall
+	fetch 1,mem_usb_setup_bValue+1
+	bne 0,usb0_force_stall
+	fetch 1,mem_usb_setup_bValue
+	sub pdata,USB_MAX_NUM_CFG,null
+	nbranch usb0_force_stall,positive
+	fetch 1,mem_usb0_state
+	beq DEV_ADDRESS,usb0_request_set_cfg_addr_state
+	beq DEV_CONFIGURED,usb0_request_set_cfg_cfg_state
+	branch usb0_force_stall
+ // This software only supports config = 0,1
+usb0_request_set_cfg_addr_state:
+usb0_request_set_cfg_cfg_state:
+	fetch 1,mem_usb_setup_bValue	//1:Configured state   0:Address state
+	beq 0,usb0_request_set_cfg_stay_addr_state
+	jam DEV_CONFIGURED,mem_usb0_state
+	branch usb0_reply_zerolen
+usb0_request_set_cfg_stay_addr_state:
+	jam DEV_ADDRESS,mem_usb0_state
+	branch usb0_reply_zerolen
+
+
+usb0_request_set_interface:
+	fetch 1,mem_usb0_state
+	bne DEV_CONFIGURED,usb0_force_stall		
+	fetch 1,mem_usb_setup_bmRequestType
+	bne OUT_INTERFACE,usb0_force_stall
+	fetch 1,mem_usb_setup_bValue
+	bne 0,usb0_force_stall
+	fetch 1,mem_usb_setup_bValueH
+	bne 0,usb0_force_stall
+	fetch 1,mem_usb_setup_bLength
+	bne 0,usb0_force_stall
+	fetch 1,mem_usb_setup_bLengthH
+	bne 0,usb0_force_stall
+	fetch 1,mem_usb_setup_wIndex
+	bne 0,usb0_force_stall
+	fetch 1,mem_usb_setup_wIndex+1
+	bne 0,usb0_force_stall
+	branch usb0_reply_zerolen
+
+
+usb_set_idle:
+	bpatchx patch32_2,mem_patch32
+	jam 1,mem_usb_idle_flag
+	fetch 1,mem_usb_setup_bValueH
+	store 1,mem_usb_idle_rate
+	fetch 1,mem_usb_setup_wIndex
+	sub pdata,1,null
+	call usb_clear_remote_wakeup_set0,zero
+	fetch 1,mem_usb_state
+	bne USB_RESUME,usb0_reply_zerolen
+	jam USB_CONNECTED,mem_usb_state
+	call usb0_reply_zerolen
+	nop 30000
+	nop 30000
+	rtn
+usb_clear_remote_wakeup_set0:
+	jam 1,mem_usb_device_enumeration_endflag
+	jam 0,mem_usb_clear_remote_wakeup
+	jam USB_RESUME,mem_usb_state
+	rtn
+
+
+usb_set_report:
+	arg mem_usb0_set_report_data,contw
+	call usb_rx_data
+	jam 1,mem_usb0_get_set_report
+	call usb_set_report_resume_judge
+	fetch 2,mem_usb_setup_bValue
+	store 2,mem_usb_setup_bValue_temp
+	call usb0_reply_zerolen
+	fetch 1,mem_device_option
+	rtnne dvc_op_dongle
+	fetch 1,mem_usb_tx_win_enable
+	rtn blank
+	fetch 1,mem_usb0_set_report_data
+	store 1,mem_24g_led_status
+	jam KB_LED_ACKPAYLOAD,mem_24g_ackpayload_enable
+	rtn
+
+	
+usb_set_report_resume_judge:
+	fetch 2,mem_usb_setup_bValue
+	arg PC_SET_REPORT_bValue,temp
+	isub temp,null
+	nrtn zero
+	fetch 2,mem_usb_setup_wIndex
+	arg PC_SET_REPORT_wIndex,temp
+	isub temp,null
+	nrtn zero
+	fetch 2,mem_usb_setup_bLength
+	arg PC_SET_REPORT_bLength,temp
+	isub temp,null
+	nrtn zero
+	jam 1,mem_usb_tx_win_enable
+	rtn
+
+
+usb_set_protocol_req:
+	fetch 1,mem_usb_setup_bLength
+	bne 0,usb0_force_stall
+	fetch 1,mem_usb_setup_bValue
+	beq BOOT_PROTOCOL,usb_set_boot_protocol
+	beq REPORT_PROTOCOL,usb_set_report_protocol
+	branch usb0_force_stall
+usb_set_boot_protocol:
+	jam 0,mem_usb_set_protocol_status
+	jam 1,mem_usb_set_protocol_value
+	branch usb0_reply_zerolen
+usb_set_report_protocol:
+	jam 1,mem_usb_tx_mac_enable
+	jam 1,mem_usb_set_protocol_status
+	jam 0,mem_usb_set_protocol_value
+	branch usb0_reply_zerolen
+
+
+usb0_respond_length:
+	ifetchr regb,1,rega
+	increase 1,rega
+//rega=*buff,regb=size
+usb0_respond:
+	bpatchx patch32_3,mem_patch32
+	set1 mark_usb_first_resp,mark
+	bmark0 mark_isstr,usb0_respond_nostr
+	increase 1,regb
+	lshift regb,regb
+usb0_respond_nostr:
+	storer rega,2,mem_bufptr
+	storer regb,1,mem_remain
+	branch usb0_tx
+
+usb_no_respond_data:
+	arg 0,queue
+	branch usb_trig
+
+
+
+//mem_bufptr=*buff,mem_remain=size,loopcnt=i,rega=len
+usb0_tx:
+	bpatchx patch32_4,mem_patch32
+	fetch 1,core_usb_txbusy
+	rtnbit1 0
+	fetch 1,mem_remain
+	rtn blank
+	copy pdata,loopcnt
+	iforce temp
+	fetch 2,mem_usb_setup_bLength
+	sub pdata,EP0_PACKET_SIZE,null
+	branch usb0_tx_short,positive
+	sub loopcnt,EP0_PACKET_SIZE,null
+	branch usb0_tx_info,positive
+	force EP0_PACKET_SIZE,loopcnt
+	branch usb0_tx_info
+usb0_tx_short:
+	isub loopcnt,null
+	branch usb0_tx_info,positive
+	iforce loopcnt
+	store 1,mem_remain
+usb0_tx_info:
+	fetch 1,mem_remain
+	isub loopcnt,pdata
+	store 1,mem_remain
+	add loopcnt,-1,pdata
+	store 1,mem_usb_txbuf
+	bmark0 mark_isstr,usb0_tx_nostr
+	rshift pdata,pdata
+	add loopcnt,-1,pdata
+	store 1,mem_usb_txbuf
+	bmark0 mark_usb_first_resp,usb0_tx_nostr
+	set0 mark_usb_first_resp,mark
+	istoret 1,contw
+	setarg 3
+	istore 1,contw
+	increase -1,loopcnt
+	copy loopcnt,pdata
+	nbranch usb0_tx_nostr,zero
+	increase 1,loopcnt
+usb0_tx_nostr:
+	fetch 2,mem_bufptr
+	copy pdata,contr
+usb0_tx0:
+	ifetch 1,contr
+	istore 1,contw
+	bmark0 mark_isstr,usb0_tx1
+	setarg 0
+	istore 1,contw
+usb0_tx1:
+	loop usb0_tx0
+	copy contr,pdata
+	store 2,mem_bufptr				//mem_bufptr += len
+	setarg mem_usb_txbuf
+	store 2,core_usb_tx_saddr0
+	arg 0,queue
+	call usb_trig
+	fetch 1,mem_remain
+	nrtn blank
+	fetch 1,mem_usb_state
+	rtnne USB_GOT_REPORT_REQ
+	jam USB_CONNECTED,mem_usb_state
+	rtn
+
+
+
+usb_tx_ep1:
+	arg 1,queue
+	arg mem_usb_txbuf1,rega
+	storer rega,2,core_usb_tx_saddr1
+usb_tx_buf:
+	add loopcnt,-1,pdata
+	istore 1,rega
+usb_tx_loop:
+	ifetch 1,contr
+	istore 1,contw
+	loop usb_tx_loop
+usb_trig:
+	setarg 0
+	qset1 pdata
+	store 1,core_usb_trig
+	rtn
+
+usb_tx_ep2:
+	arg 2,queue
+	arg mem_usb_txbuf2,rega
+	storer rega,2,core_usb_tx_saddr2
+	branch usb_tx_buf
+
+usb_tx:
+	bpatchx patch32_5,mem_patch32
+	fetch 1,mem_usb_tx_enable
+	rtn blank
+	fetch 1,mem_usb_device_enumeration_endflag
+	branch usb_tx_fifo_release,blank
+	fetch 1,mem_usb_state
+	beq USB_SLEEP,usb_windows_wakeup
+	bne USB_CONNECTED,usb_tx_fifo_release
+	fetch 1,mem_usb_clear_remote_wakeup
+	nbranch usb_tx_fifo_release,blank
+	call usb_tx_data_ep1
+	branch usb_tx_data_ep2
+
+usb_tx_data_ep1:
+	fetch 1,core_usb_txbusy
+	rtnbit1 1
+	fetch 1,mem_usb_tx_enable
+	rtnbit0 1
+	fetch 1,mem_usb_tx_enable
+	set0 1,pdata
+	store 1,mem_usb_tx_enable
+	fetch 1,mem_usb_ep1_data
+	rtn blank
+	beq USB_EP1_KB,usb_tx_kb_normal_data
+	branch assert
+
+usb_tx_data_ep2:
+	fetch 1,core_usb_txbusy
+	rtnbit1 2
+	fetch 1,mem_usb_tx_enable
+	rtnbit0 2
+	fetch 1,mem_usb_tx_enable
+	set0 2,pdata
+	store 1,mem_usb_tx_enable
+	fetch 1,mem_usb_ep2_data
+	rtn blank
+	beq USB_EP2_MS,usb_tx_ms_data
+	beq USB_EP2_MULTIKEY,usb_tx_kb_multikey_data
+	beq USB_EP2_SYSTEMKEY,usb_tx_kb_systemkey_data
+	branch assert
+
+usb_tx_fifo_release:
+	//clear mem_usb_mouse_data/mem_usb_kb_data/mem_usb_kb_multikey/mem_usb_kb_system
+	arg mem_usb_mouse_data,contw
+	arg 8,loopcnt
+	branch memset0
+	
+usb_tx_ms_data:
+	fetch 1,mem_usb_idle_flag
+	fetcht 1,mem_usb_get_protocol_flag
+	iand temp,pdata
+	branch usb_tx_ms_data_normal_mode,blank
+	fetcht 1,mem_usb_set_protocol_status
+	iadd temp,pdata
+	beq MAC_BOOT_MODE,usb_tx_ms_data_mac_boot_mode
+	branch usb_tx_ms_data_normal_mode
+
+usb_tx_ms_data_mac_boot_mode:
+	jam 0,mem_usb_ep2_data
+usb_tx_ms_data_mac_boot_regroup:
+	fetch 1,mem_usb_mouse_data+1	//key
+	beq R_KEY,usb_tx_mac_boot_ms_regroup_r_or_lrkey
+	beq LR_KEY,usb_tx_mac_boot_ms_regroup_r_or_lrkey
+	fetch 1,mem_usb_mouse_data+1	//key
+	store 1,mem_usb_mouse_data
+	fetch 1,mem_usb_mouse_data+2	//x low
+	istore 1,contw
+	fetch 1,mem_usb_mouse_data+4	//y low
+	istore 1,contw
+	fetch 1,mem_usb_mouse_data+6	//wheel
+	istore 1,contw
+	arg 4,loopcnt
+	arg mem_usb_mouse_data,contr
+	branch usb_tx_ep2
+	
+usb_tx_ms_data_normal_mode:
+	jam 0,mem_usb_ep2_data
+usb_tx_mac_boot_ms_regroup_r_or_lrkey:	
+	arg 8,loopcnt		
+	arg mem_usb_mouse_data,contr
+	branch usb_tx_ep2
+
+usb_tx_kb_multikey_data:
+	jam 0,mem_usb_ep2_data
+	arg 3,loopcnt
+	arg mem_usb_kb_multikey,contr
+	branch usb_tx_ep2
+
+usb_tx_kb_normal_data:
+	jam 0,mem_usb_ep1_data
+	arg 8,loopcnt
+	arg mem_usb_kb_data,contr
+	branch usb_tx_ep1
+
+usb_tx_kb_systemkey_data:
+	jam 0,mem_usb_ep2_data
+	arg 2,loopcnt
+	arg mem_usb_kb_system,contr
+	branch usb_tx_ep2
+
+usb_inwake_state_tx_dispose:
+	fetch 1,mem_usb_state
+	beq USB_CONNECTED,usb_mac_wakeup_trig
+	rtn
+usb_mac_wakeup_trig:
+	fetch 1,core_usb_config
+	set1 7,pdata
+	store 1,core_usb_config
+	jam 1,mem_usb_mac_wakeup_trig
+	rtn
+
+usb_mac_wakeup_judge:
+	fetch 1,mem_usb_state
+	rtneq USB_SLEEP
+	beq USB_CONNECTED,usb_mac_wakeup
+	rtn
+usb_mac_wakeup:
+	fetch 1,mem_usb_mac_wakeup_trig
+	rtn blank
+	jam 1,mem_usb_wakestate_onetime_flag
+	branch usb_wakeup
+
+usb_windows_wakeup:
+	arg TIMER_WAKEUP,queue
+	call timer_check
+	nrtn blank
+usb_wakeup:
+	fetch 1,core_usb_config
+	rtnbit0 7	//endpoint wakeup enable
+	jam 0xfc,core_usb_config
+	nop 30000
+	jam 0x3c,core_usb_config
+	rtn
+
+
+endif
+
Index: program/utility.prog
===================================================================
--- /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/program/utility.prog	(nonexistent)
+++ /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/program/utility.prog	(working copy)
@@ -0,0 +1,1178 @@
+
+right_shift_n: //rshiftN pdata,pdata
+	sub loopcnt,0,null
+	rtn zero
+right_shift_n_loop: 
+	rshift pdata,pdata
+	loop right_shift_n_loop
+	rtn
+
+/* lshift. 0:1 byte; 1:2byte; 2:4byte; 3:8byte; 4:16byte*/
+left_shift_n:
+	force 1,pdata
+	sub loopcnt,0,null
+	rtn zero
+left_shift_n_loop:
+	lshift pdata,pdata
+	loop left_shift_n_loop
+	rtn
+push_stack:
+	storer contw,2, mem_contw
+	storet 8,mem_temp
+	storer timeup,4,mem_timeup
+	call push_stack_rega_b_c
+	storer contr,2, mem_contr
+	storer loopcnt,2, mem_loopcnt
+	storer queue,2,mem_queue
+	rtn
+
+push_stack_rega_b_c:
+	storer rega,4, mem_rega
+	storer regb,4, mem_regb
+	storer regc,3, mem_regc
+	rtn
+
+pop_stack:
+	fetch 2, mem_contw
+	iforce contw
+	fetcht 8,mem_temp
+	fetchr timeup,4,mem_timeup
+	call pop_stack_rega_b_c
+	fetchr loopcnt,2,mem_loopcnt
+	fetchr queue,2,mem_queue
+	fetch 2,mem_contr
+	iforce contr
+	rtn
+
+pop_stack_rega_b_c:
+	fetchr rega,4, mem_rega
+	fetchr regb,4, mem_regb
+	fetchr regc,3,mem_regc
+	rtn
+
+get_contw:
+	fetch 2,mem_contw
+	copy pdata,contw
+	rtn
+get_contr:
+	fetch 2,mem_contr
+	copy pdata,contr
+	rtn
+store_contw:
+	copy contw,pdata
+	store 2,mem_contw
+	rtn
+store_contr:
+	copy contr,pdata
+	store 2,mem_contr
+	rtn	
+	
+
+//
+save_cont_pointers:
+	copy contw,pdata
+	store 2,mem_hold_contw
+	copy contr,pdata
+	store 2,mem_hold_contr
+	rtn
+load_cont_pointers:
+	fetch 2,mem_hold_contw
+	copy pdata,contw
+	fetch 2,mem_hold_contr
+	copy pdata,contr
+	rtn
+
+memcpy96:
+	call memcpy32
+memcpy64:
+	call memcpy32
+	branch memcpy32
+memcpy20:
+	call memcpy8
+memcpy12:
+	call memcpy8
+memcpy4:
+	ifetch 4,contr
+	istore 4,contw
+	rtn	
+memcpy8:
+	ifetch 8,contr
+	istore 8,contw
+	rtn	
+
+memcpy48:
+	call memcpy16
+memcpy32:
+	call memcpy8
+memcpy24:
+	call memcpy8
+memcpy16:
+	call memcpy8
+	branch memcpy8
+
+delay:
+	increase -1,pdata
+	nop 38
+	nbranch delay,blank
+	rtn
+
+
+delay_10ms:
+	arg 10,loopcnt
+delay_ms_wait:
+	nop 12000
+	loop delay_ms_wait
+	rtn
+
+bn_zero:
+	force 3,loopcnt
+memset0:
+	force 0,pdata
+memset8:
+	istore 8,contw
+	loop memset8
+	rtn
+
+
+memset0_16:
+	call memset0_8
+memset0_8:
+	force 0,pdata
+	istore 8,contw
+	rtn
+memset0_4:
+	force 0,pdata
+	istore 4,contw
+	rtn	
+	
+clear_mem_256:
+	force 4,loopcnt
+	branch memset0 
+clear_mem_512:
+	force 8,loopcnt
+	branch memset0 
+
+clear_mem:
+	deposit loopcnt
+	rtn blank
+	setarg 0
+clear_mem_loop:
+	istore 1,contw
+	loop clear_mem_loop
+	rtn
+	
+
+clear_temp_block:
+	arg 32,loopcnt
+	arg mem_temp_block0,contw
+	branch clear_mem
+	
+xor_loop:
+	ifetch   4,regc
+	ifetcht 4,rega
+	ixor     temp,pdata
+	istore   4,contw	
+	increase 4,rega
+	increase 4,regc
+	loop  xor_loop
+	rtn
+	
+// 11 22 -> 22 11; 11 22 33 -> 33 22 11 
+// rega:data addr ;loopnct:length
+inverse_data:
+	bpatchx patch32_6,mem_patch32
+	copy loopcnt,pdata
+	sub pdata,1,null
+	rtn positive
+	iadd rega,regb	
+	increase -1,regb
+	rshift loopcnt,loopcnt
+inverse_loop:
+	ifetcht 1,rega
+	ifetch 1,regb
+	istore 1,rega
+	istoret 1,regb
+	increase -1,regb
+	increase 1,rega
+	loop inverse_loop
+	rtn
+
+/*
+	function name:inverse_data_6Byte or le2be_6Byte
+	input: pdata is data that want change
+	output:pdata is Converted data
+	used Resources:temp,contr
+*/
+le2be_6Byte:
+inverse_data_6Byte:
+	rshift32 pdata,temp
+	call inverse_data_4Byte
+	byteswap temp,temp
+	lshift16 pdata,pdata
+	ior temp,pdata
+	rtn
+
+
+/*
+	function name:inverse_data_4Byte or le2be_4Byte
+	input: pdata is data that want change
+	output:pdata is Converted data
+	used Resources:contr
+*/
+le2be_4Byte:
+inverse_data_4Byte:
+	rshift16 pdata,contr
+	byteswap contr,contr
+	byteswap pdata,pdata
+	lshift16 pdata,pdata
+	ior contr,pdata
+	rtn
+
+
+memcpy_fast:
+	deposit loopcnt
+	rtn blank
+memcpy_fast_loop:
+	increase -8,loopcnt
+	call memcpy8,positive
+	rtn zero
+	branch memcpy_fast_loop,positive
+	increase 8,loopcnt
+memcpy_fast_loop_four:
+	increase -4,loopcnt
+	call memcpy4,positive
+	rtn zero
+	branch memcpy_fast_loop_four,positive
+	increase 4,loopcnt
+	branch memcpy
+ 
+memcpy:
+	deposit loopcnt
+	rtn blank
+memcpy_loop:
+	ifetch 1,contr
+	istore 1,contw
+	loop memcpy_loop
+	rtn
+
+timer_stop:
+	setarg 0
+timer_init:
+	rshift clkn_bt,temp
+	storet 4,mem_last_clkn
+	arg mem_timers,contw
+	iforce temp
+	lshift queue,pdata
+	iadd contw,contw
+	istoret 2,contw
+	bpatchx patch32_7,mem_patch32
+	rtn
+
+timer_check_timeout:
+	arg 0x800,timeup
+	lshift16 timeup,timeup
+	iadd timeup,pdata
+	rtn
+
+
+timer_reinit:
+	arg 0,queue
+timer_check:
+	bpatchx patch33_0,mem_patch33
+	fetcht 4,mem_last_clkn
+	rshift clkn_bt,pdata
+	store 4,mem_last_clkn	
+	isub temp,null
+	ncall timer_check_timeout,positive	
+	isub temp,timeup
+	copy timeup,temp
+	arg mem_timers,contr
+	copy contr,contw
+	arg 16,loopcnt
+timer_loop:
+	ifetch 2,contr
+	isub temp,pdata
+	branch timer_counting,positive
+	force 0,pdata
+timer_counting:
+	istore 2,contw
+	loop timer_loop	
+	arg mem_timers,contr
+	lshift queue,pdata
+	iadd contr,contr
+	ifetch 2,contr
+	rtn
+
+
+
+	/* pdata 28+16 bit add temp 26+16 bit, result in temp */
+clk_add:
+	iadd temp,temp
+	copy temp, loopcnt
+	fetch 2,mem_param_rt_rthalfslot
+	isub loopcnt,pdata
+	rtn positive
+	sub pdata,0,pdata
+	rshift16 temp,temp
+	increase 1,temp
+	lshift16 temp,temp
+	ior temp,temp
+	rtn
+
+clk_diff_rt:
+	call clk_diff
+	branch clk2rt
+
+/* pdata -temp -> pdata, all are 28+16 bits, set user if negative */
+clk_diff:
+	disable user
+	isub temp,pdata
+	branch clk_diff_pos,positive
+	enable user
+	sub pdata,0,pdata
+clk_diff_pos:
+	rtnbit0 15
+	copy pdata,regab
+	arg 0x10000,temp
+	fetch 2,mem_param_rt_rthalfslot
+	isub temp,pdata
+	iadd regab,pdata
+	set0 64,pdata
+	rtn
+
+	
+
+clk2rt:
+	fetcht 2,mem_param_rt_rthalfslot
+	iforce contr
+	rshift16 pdata,pdata
+	imul32 temp,pdata
+	iadd contr,pdata
+	rtn
+
+	/* pdata = clks in, temp = lpo out */
+clk2lpo:
+	lshift8 pdata,pdata
+	lshift4 pdata,pdata
+	fetcht 3,mem_clks_per_lpo
+	idiv temp
+	call wait_div_end
+	quotient temp
+	rtn
+
+	/* rt clk -> bt+rt clk */
+clk2bt:
+	fetcht 2,mem_param_rt_rthalfslot
+	idiv temp
+	call get_div_result
+	lshift16 pdata,pdata
+	remainder temp
+	ior temp,temp
+	rtn
+
+
+
+//input:contu 
+//output:temp
+//used register: temp regab
+string2dec_from_uart:
+	arg 0,temp
+string2dec_from_uart_done:
+         copy temp,regab
+	ifetch 1,contu
+	call uchar2dialog	
+	copy regab,temp
+	call swap
+	arg 10,regb
+	imul32 regb,pdata
+	iadd temp,pdata
+	copy pdata,temp
+	loop string2dec_from_uart_done
+	rtn
+	
+
+
+uchar2dialog:
+	arg 0x3a,temp
+	isub temp,null
+	nbranch uchar2dialog_number,positive
+	arg 0x61,temp
+	isub temp,null
+	branch uchar2dialog_a2f,positive
+	arg 0x37,temp
+	isub temp,pdata
+	rtn
+uchar2dialog_number:
+	arg 0x30,temp
+	isub temp,pdata
+	rtn
+uchar2dialog_a2f:
+	arg 0x57,temp
+	isub temp,pdata
+	rtn
+
+pn9:
+	copy temp,alarm
+	setarg 0x1ff
+	force 0,regb
+pn9_loop:	
+	rshift3 pdata,rega
+	rshift rega,rega
+	ixor rega,rega
+	isolate1 0,rega
+	setflag true,9,pdata
+	rshift temp,temp
+	isolate1 0,pdata
+	setflag true,7,temp
+	rshift pdata,pdata
+	increase 1,regb
+	compare 0,regb,0x7
+	nbranch pn9_loop,true
+	istoret 1,contw
+	loop pn9_loop
+	copy alarm,temp
+	rtn
+
+	// contr: rxdata, loopcnt is count. result in quotient
+calc_average:
+	setarg 0
+	copy loopcnt,rega
+calc_average_loop:
+	ifetcht 2,contr
+	iadd temp,pdata
+	loop calc_average_loop
+	idiv rega
+
+get_div_result:
+	call wait_div_end
+	quotient pdata
+	rtn
+
+wait_div_end:	
+	rtn modone
+	branch wait_div_end
+
+
+
+//input:
+//	count:loopcnt str1:rega str2:regb
+//output:
+//	same:set flag zero ,diff not set flag zero
+// using:
+//	reg:temp null flag:zero
+compare_loop:
+string_compare:
+	ifetch 1,rega
+	ifetcht 1,regb
+	isub temp,null
+	nrtn zero
+	increase 1,rega
+	increase 1,regb
+	loop string_compare
+	force 0,null
+	rtn
+
+	/* pdata = temp if pdata > temp */
+ceiling:
+	isub temp,null
+	nrtn positive
+	deposit temp
+	rtn
+	
+swap:
+	iadd temp,pdata
+	isub temp,temp
+	isub temp,pdata
+	rtn
+
+clean_mem:
+	arg 0x200,loopcnt
+	arg 0x4000,contw
+	branch memset0				// clear xram at boot
+
+	//cb function ptr in pdata
+callback_func:
+	rtn blank
+	copy pdata,pc	//rtn through cb functon.
+	//branch assert
+
+wait_uarttx:
+	fetch 2,core_uart_txitems
+	nbranch wait_uarttx,blank
+	rtn
+
+ice_break:
+	jam 0x1,core_ice_ctrl
+	rtn
+
+ice_setbp:
+	store 2,core_ice_break0
+	fetch 1,core_ice_ctrl
+	set1 4,pdata
+	store 1,core_ice_ctrl
+	rtn
+ice_setbp2:
+	store 2,core_ice_break1
+	fetch 1,core_ice_ctrl
+	set1 6,pdata
+	store 1,core_ice_ctrl
+	rtn
+	
+ice_set_write_bp:
+	store 2,core_ice_break0
+	jam 0x30,core_ice_ctrl
+	rtn
+	
+test_no_white:
+	fetch 1,core_config
+	set1 whiteoff_bit,pdata
+	store 1,core_config			/* whitening off */
+	rtn
+
+test_enable_white:
+	fetch 1,core_config
+	set0 whiteoff_bit,pdata
+	store 1,core_config			/* whitening on */
+	rtn
+
+check_uart_tx_buff:
+	fetch 2,core_uart_txitems
+	arg UART_AIR_CONTROL_THRESHOLD,temp
+pdata_sub_temp:
+	isub temp,null
+	rtn
+
+	//fuction fifo_in
+	//rega pointer to fifo memory , *(rega+len) is the end of fifo
+	//mem_fifo_temp data into fifo
+	//assert if fifo was full
+fifo_in:
+	bpatchx patch33_1,mem_patch33
+	ifetcht UTIL_FIFO_LEN,rega
+	and temp,0xff,pdata
+	nbranch fifo_in_push,blank
+	rshift8 temp,pdata
+	istore UTIL_FIFO_LEN,rega
+fifo_in_push:
+	increase UTIL_FIFO_LEN+UTIL_FIFO_OFFSET,rega
+	ifetch 1,rega
+	nbranch assert,blank //fifo full
+	fetch 1,mem_fifo_temp
+	istore 1,rega
+	rtn
+	
+	//fuction fifo_out
+	//rega pointer to fifo memory
+	//pdata  data from fifo, blank mains fifo empty
+fifo_out:
+	bpatchx patch33_2,mem_patch33
+	arg UTIL_FIFO_LEN,loopcnt
+	ifetch UTIL_FIFO_LEN,rega
+	rtn blank
+fifo_out_loop:
+	ifetch 1,rega
+	nbranch fifo_out_end,blank
+	increase 1,rega
+	loop fifo_out_loop
+	branch assert
+fifo_out_end:
+	arg 0,temp
+	istoret 1,rega
+	rtn
+
+	//fuction fifo_is_empty
+	//rega pointer to fifo memory
+	//blank--- fifo is empty
+fifo_is_empty:
+	ifetch UTIL_FIFO_LEN,rega
+	rtn
+
+	//fuction fifo_is_full
+	//rega pointer to fifo memory
+	//blank--- fifo is NOT full
+fifo_is_full:
+	ifetch 1,rega
+	rtn
+	//rega pointer to fifo memory
+	//blank--- fifo is NOT near full
+fifo_is_near_full:
+	ifetch 2,rega
+	rtn
+
+	//rega pointer to fifo memory
+	//count output via pdata
+fifo_content_count:
+	arg 0,temp
+fifo_content_count_loop:
+	fetch 1,contr
+	loop fifo_content_count_loop,blank
+	increase 1,temp
+	loop fifo_content_count_loop
+	copy temp,pdata
+	rtn
+
+//input pdata, temp, return small in pdata	
+not_greater_than:
+	isub temp,null
+	nrtn positive
+copy_temp2pdata:	
+	copy temp,pdata
+	rtn
+
+
+disable_positive:
+	force -1,null
+	rtn
+enable_positive:
+disable_zero:
+	force 1,null
+	rtn
+enable_zero:
+	force 0,null
+	rtn
+
+enable_user:
+	enable user
+	rtn
+	
+disable_user:
+	disable user
+	rtn
+	
+enable_user2:
+	enable user2
+	rtn
+	
+disable_user2:
+	disable user2
+	rtn
+
+disable_blank:
+	setarg 1
+	rtn
+
+enable_blank:
+set_pdata_0:
+	setarg 0
+	rtn
+
+//input pdata :sum
+//output pdata :sum
+cal_sum:
+	sub loopcnt,0,null
+	rtn zero
+cal_sum_loop:
+	ifetcht 1,contr
+	iadd temp,pdata
+	loop cal_sum_loop
+	rtn
+
+	
+reverse_byte:
+	copy loopcnt,pdata
+	rtn blank
+	copy contr,pdata
+	iadd loopcnt,pdata
+	increase -1,pdata
+	copy pdata,contr	
+reverse_loop:
+	ifetch 1,contr
+	increase -2,contr
+	istore 1,contw
+	loop reverse_loop
+	rtn
+
+calc_k12:
+	copy timeup,regb
+
+	// regb:rxdata1, enable user for K1, result stored in contw 8 bytes
+calc_k:
+	arg mem_local_sig,regc
+	force 36,loopcnt
+	force 0,rege
+	force 0,regf
+rxcal_k1_loop:
+	call complex_mult16to8
+	preload rega
+	iadd rege,rege
+	preload temp
+	iadd regf,regf
+	increase 4,regb
+	increase 2,regc
+	loop rxcal_k1_loop
+	preload rege
+	arg 36,temp
+	call signed_div
+	istore 4,contw
+	preload regf
+	call signed_div
+	istore 4,contw
+	rtn
+
+	// regb points to 32bit complex, regc points to 16bit complex, result in rega+temp
+complex_mult16to8:
+	ifetchr nap,2,regb
+	ifetchr fhs_misc,1,regc
+	call signed_ext16by8
+	imults temp,rega
+	ifetchr fhs_misc,1,contr
+	branch complex_not_conj,user
+	sub fhs_misc,0,fhs_misc
+complex_not_conj:
+	add regb,2,contr
+	ifetchr nap,2,contr
+	call signed_ext16by8
+	imults temp,regd
+	preload rega
+	isub regd,rega			// ac-bd
+	ifetchr nap,2,regb
+	preload nap
+	imults temp,regd
+	ifetchr nap,2,contr
+	ifetchr fhs_misc,1,regc
+	call signed_ext16by8
+	imults temp,temp
+	preload regd
+	iadd temp,temp
+	rtn
+
+	// regb points to 64bit complex, regc points to 64bit complex, result in rege+regf
+complex_mult32to32:
+	ifetch 4,regb
+	ifetchr rega,4,regc
+	imults rega,rege			// ac
+	ifetchr rega,4,contr
+	aligned rega,regf			// d
+	add regb,4,contr
+	ifetch 4,contr
+	imults rega,temp			// bd
+	preload rege
+	isub temp,rege			// ac-bd
+	ifetch 4,regb
+	imults regf,regf			// ad
+	ifetch 4,contr
+	ifetchr rega,4,regc
+	imults rega,pdata
+	iadd regf,regf				// ad+bc
+	rtn
+
+
+lshift14:
+	lshift16 pdata,pdata
+rshift2:
+	rshift2 pdata,pdata
+	rtn
+
+lshift6:
+	lshift8 pdata,pdata
+	branch rshift2
+
+calc_vok:
+	imul32 pdata,pdata
+rshift7:
+	rshift4 pdata,pdata
+	rshift3 pdata,pdata
+	rtn		
+
+
+	// nap:16bit signed, fhs_misc:8bit signed, output to pdata/temp
+signed_ext16by8:
+	preload nap
+	aligned fhs_misc,temp
+	rtn	
+
+
+abs32:
+	rtnbit0 31
+	force 0,temp
+	set1 32,temp
+	increase -1,temp
+	ixor temp,pdata
+	pincrease 1
+	rtn	
+
+	// pdata 32bit is input, result in regb
+sqrt:
+	iforce rega
+	arg 0,regd
+	set1 30,regd
+	arg 0,regb
+	arg 16,loopcnt
+sqrt_loop:
+	deposit regd
+	iadd regb,pdata
+	rshift regb,regb
+	isub rega,pdata
+	branch sqrt_less,zero
+	branch sqrt_greater,positive
+sqrt_less:
+	sub pdata,0,rega
+	deposit regd
+	ior regb,regb
+sqrt_greater:
+	rshift2 regd,regd
+	loop sqrt_loop
+	rtn	
+	
+	// pdata:dividend, temp:divisor
+signed_div:
+	set0 mark_temp,mark
+	bbit0 63,signed_div_unsigna
+	set1 mark_temp,mark
+	sub pdata,0,pdata
+signed_div_unsigna:
+	isolate0 63,temp
+	branch signed_div_unsignb,true
+	setflip mark_temp,mark
+	sub temp,0,temp
+signed_div_unsignb:
+	idiv temp
+	call get_div_result
+	rtnmark0 mark_temp
+	sub pdata,0,pdata
+	rtn	
+
+	// timeup: rxdata, result in regc(a) and regf(c22)
+rx_iq_comp:
+	call calc_k1
+	call calc_k2
+	call calc_absk12_sqr
+	call calc_g
+	call calc_a
+	branch calc_c22
+
+calc_k1:
+	enable user
+	arg mem_tmp_buffer,contw
+	branch calc_k12
+
+calc_k2:
+	disable user
+	branch calc_k12
+
+calc_absk12_sqr:
+	fetch 4,mem_tmp_buffer
+	fetcht 4,mem_tmp_buffer+8
+	iadd temp,pdata
+	call abs32
+	iforce temp
+	imul32 temp,rege
+	fetch 4,mem_tmp_buffer+4
+	fetcht 4,mem_tmp_buffer+12
+	isub temp,pdata
+	call abs32
+	iforce temp
+	imul32 temp,pdata
+	iadd rege,pdata
+	store 8,mem_tmp_buffer+16			// abs(K1+K2)^2
+	rtn
+
+
+calc_g:
+	arg mem_tmp_buffer,regb
+	arg mem_tmp_buffer+8,regc
+	call complex_mult32to32
+	preload rege
+	sub pdata,0,pdata
+	lshift16 pdata,pdata
+	lshift2 pdata,pdata
+	fetcht 8,mem_tmp_buffer+16
+	idiv48 temp
+	arg 0x10000,rega
+	call get_div_result
+	iadd rega,pdata
+	call sqrt
+	copy regb,rege						// g
+	rtn
+
+calc_a:
+	rshift32 temp,pdata
+	imul32 regb,rega
+	deposit regb							
+	imul32 temp,temp
+	lshift16 rega,pdata
+	lshift16 pdata,pdata
+	iadd temp,temp
+	preload regf
+	sub pdata,0,pdata
+	lshift16 pdata,pdata
+	lshift pdata,pdata
+	idiv48 temp
+	branch get_div_result					// a
+
+calc_c22:
+	rshift pdata,regc						// c21
+	imul32 pdata,temp
+	setarg 0x10000
+	isub temp,pdata
+	call sqrt
+	deposit regb
+	imul32 rege,temp
+	setarg 0
+	set1 28,pdata
+	idiv48 temp
+	call wait_div_end
+	quotient temp
+	setarg 0x1000
+	isub temp,regf						// c22
+	rtn
+
+tx_iq_precomp:
+	call calc_vok1
+	call calc_sumvok
+	call calc_ad_bc
+	call calc_omega
+	call calc_b1
+	branch calc_b2
+
+calc_vok1:	
+	fetch 1,mem_vdk
+	call calc_vok
+	store 1,mem_vok
+	rtn
+
+calc_sumvok:
+	iforce regc						// Vok(1)
+	imul32 pdata,temp
+	ifetch 1,contr
+	call calc_vok
+	istore 1,contw
+	iadd regc,rega					// sum(Vok)
+	rtn
+
+calc_ad_bc:
+	imul32 pdata,pdata
+	iadd temp,regb					// sum(Vok.^2)
+	deposit rega
+	imul32 rega,temp
+	lshift regb,pdata
+	isub temp,temp					// ad-bc
+	rtn
+
+
+calc_omega:
+	setarg 0x400000
+	idiv temp
+	call get_div_result
+	store 2,mem_omega
+	lshift16 rega,pdata
+	rshift2 pdata,pdata
+	idiv temp
+	call get_div_result
+	istore 2,contw
+	lshift8 regb,pdata
+	rshift pdata,pdata
+	idiv temp
+	call get_div_result
+	istore 2,contw
+	rtn
+	
+	
+calc_b1:
+	lshift16 regc,pdata
+	rshift2 pdata,pdata
+	idiv regb
+	call get_div_result
+	store 2,mem_b1
+	fetch 1,mem_vdk
+	call lshift6
+	idiv rega
+	call get_div_result
+	istore 2,contw
+	rtn
+	
+calc_b2:
+	fetch 1,mem_vok+1
+	call lshift14
+	idiv regb
+	call get_div_result
+	store 2,mem_b2
+	fetch 1,mem_vdk+1
+	call lshift6
+	idiv rega
+	call get_div_result
+	istore 2,contw
+	rtn	
+	
+	
+	// timeup: m_k
+tx_iq_cal:
+	arg mem_q,contw
+	arg 2,loopcnt
+	call memset0
+	arg 4,queue
+tx_iq_cal_loop:
+	call calc_mk1
+	call calc_d
+	call calc_c
+	call calc_est1
+	call calc_est2
+	call calc_u1
+	call calc_u2
+	call calc_qest
+	increase 32,timeup
+	increase -1,queue
+	nbranch tx_iq_cal_loop,zero
+
+calc_tx_c22:
+	fetch 4,mem_q
+	arg 0x100,contr
+	iadd contr,rege
+	fetch 4,mem_q+4
+	imults pdata,temp
+	setarg 0x10000
+	isub temp,pdata
+	call sqrt
+	deposit regb
+	imults rege,temp
+	setarg 0
+	set1 28,pdata
+	call signed_div
+	arg 0x1000,temp
+	isub temp,pdata
+	sub pdata,0,pdata						// c22
+	rtn
+	
+calc_mk1:
+	copy timeup,contr
+	arg 8,loopcnt
+ 	branch calc_average
+
+calc_d:
+ 	iforce regb					// M_k(1)
+	arg 8,loopcnt
+ 	branch calc_average
+
+calc_c:
+ 	iadd regb,regc				// D
+ 	fetcht 1,mem_vok+1
+ 	imul32 temp,temp
+ 	fetch 1,mem_vok
+ 	imul32 regb,pdata
+ 	iadd temp,pdata
+	rshift4 pdata,pdata
+	rshift3 pdata,rega				// C
+	rtn
+
+calc_est1:
+	fetch 2,mem_omega+2
+	imul32 regc,temp
+	fetch 2,mem_omega
+	imul32 rega,pdata
+	isub temp,regb				// est(1)
+	rtn
+
+calc_est2:
+	fetch 2,mem_omega+2
+	imul32 rega,temp
+	ifetch 2,contr
+	imul32 regc,pdata
+	isub temp,rega				// est(2)
+	rtn
+
+calc_u1:
+ 	fetch 1,mem_vok
+ 	call mults_rshift7
+	iadd rega,regf					// floor(est(1)*Vok(1)/2^7 + est(2))
+	copy timeup,regc
+	arg mem_u1,contw
+	branch theta_mul
+
+calc_u2:
+ 	fetch 1,mem_vok+1
+ 	call mults_rshift7
+	iadd rega,regf					// floor(est(1)*Vok(2)/2^7 + est(2))
+	add timeup,16,regc
+	arg mem_u2,contw
+	branch theta_mul
+
+calc_qest:
+	aligned regb,regf
+	fetchr regb,2,mem_b1
+	fetchr regc,2,mem_b2
+	arg mem_u1,rega
+	arg mem_u2,nap
+	arg mem_q,contw
+	call calc_q			
+	call calc_q
+	fetchr regb,2,mem_b1+2
+	fetchr regc,2,mem_b2+2
+	call calc_q
+	branch calc_q
+
+calc_q:
+	ifetch 4,rega
+	copy contr,rega
+	imults regb,rege
+	ifetch 4,nap
+	copy contr,nap
+	imults regc,pdata
+	iadd rege,pdata
+	lshift8 pdata,pdata
+	copy regf,temp
+	call signed_div
+	ifetchr rege,4,contw
+	isub rege,pdata
+	sub pdata,0,regd
+	istorer regd,4,contw
+	rtn	
+
+mults_rshift7:
+	imults regb,temp
+	preload temp
+	branch rshift7
+
+
+	
+	// regc points to m_k, contw points to result
+theta_mul:
+	arg 4,debug
+	arg mem_theta,nap
+theta_mul_loop0:
+	arg 0,rege
+	arg 8,loopcnt
+theta_mul_loop1:
+	ifetch 2,regc
+	copy contr,regc
+	isub regf,pdata
+	ifetchr fhs_misc,1,nap
+	copy contr,nap
+	aligned fhs_misc,temp
+	imults temp,pdata
+	iadd rege,rege
+	loop theta_mul_loop1
+	rshift8 rege,pdata
+	rshift pdata,pdata
+	istore 4,contw
+	increase -16,regc
+	increase -1,debug
+	nbranch theta_mul_loop0,zero
+	rtn
+	
+	
+savelist:		
+	store 8,mem_pdatatemp
+savelist_1:
+	fetch 1,mem_seqi
+	rtneq 0x7f
+	lshift3 pdata,pdata
+	arg mem_savelist,contw
+	iadd contw,contw
+	fetch 8,mem_pdatatemp
+	istore 8,contw
+	fetch 1,mem_seqi
+	increase 1,pdata
+	and_into 0x7f,pdata
+	store 1,mem_seqi
+	fetch 8,mem_pdatatemp
+	rtn	
+
+
+clear_wake:
+	setarg 0
+	store 8,mem_gpio_wakeup_low
+	rtn
+
+
+
+
Index: sched/1308.dat
===================================================================
--- /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/sched/1308.dat	(nonexistent)
+++ /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/sched/1308.dat	(working copy)
@@ -0,0 +1,38 @@
+
+mem_gpio_wakeup_low:00 00 08 00 00 00 00 00
+mem_lpm_config:88 1f ce #4khz
+mem_lpm_xtalcnt:50 3f 0c 33 03
+mem_lpm_ctrl3:30 9d 10 24
+mem_lpm_hibernate_switch:00
+
+
+mem_fcomp_div:08	#16M:08
+
+mem_iscan_window:24 00
+mem_iscan_interval:00 02
+mem_pscan_window:24 00
+mem_pscan_interval:00 02
+
+mem_inq_window:20 00
+mem_page_window:20 00
+mem_page_to:00 20
+mem_rx_window_init:80 04
+mem_rx_window_sniff:00 0c
+
+mem_system_clk:0c
+
+mem_lmp_version:09 0e 05 04 00
+
+mem_seqi:7f
+
+mem_rf_init_data:
+ff
+mem_rf_init_ptr:mem_rf_init_data
+
+#bit7:0 means disable rf debug function
+mem_rf_debug_rx_gpio:7f
+mem_rf_debug_tx_gpio:7f
+
+mem_gain_table:88 66 44
+
+
Index: sched/mouse.dat
===================================================================
--- /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/sched/mouse.dat	(nonexistent)
+++ /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/sched/mouse.dat	(working copy)
@@ -0,0 +1,111 @@
+mem_device_option:08	#08 mouse
+
+mem_lap:22 11 85 36 22 11
+mem_lpm_config:88 1f ce #4khz
+
+
+mem_sensor_reset_gpio:ff
+
+
+#######################################################################################
+mem_device_number:01
+mem_mouse_discovery_timeout:b0 04	#2min
+mem_mouse_direct_timeout:32 00  #05s
+mem_mouse_24g_pair_timeout_init:14 00  #1s	    24g reconn timer&pair timer
+mem_24g_reconn_timeout_init:05 00 #500ms
+mem_24g_pair_tx_power:04
+
+mem_rssi_dis_min_24g_init:85
+mem_rssi_dis_max_24g_init:90
+mem_rssi_hex_received_max_value_init:63
+
+#bit6-7:custom_key_set:00--win+d     01--ctrl+alt+a    02--ie home    03--play
+#bit5:MOUSE_ENABLE_KEYBOARD				1--enable  0--disable
+#bit4:MOUSE_ENABLE_DPI_LEVEL_4				1--4level   0--3level
+#bit3:MOUSE_ENABLE_16M						1--16M     0--24M
+#bit2:MOUSE_ENABLE_24G_250Hz   				1--250Hz   0--125Hz
+#bit1:MOUSE_ENABLE_24G_SEARCH_DONGLE    	1--enable  0--disable
+#bit0:MOUSE_ENABLE_ADC   					1--enable  0--disable
+mem_mouse_enable_flag:02
+
+#byte0
+#bit6-7 :mem_24g_long_sleep_set_level    00--30ms   01--50ms  02--80ms  03--100ms
+#bit4-5 :mem_adc_config_flag_init   00-vinlpm   01-hvin   02-gpio
+#bit0-2 :mem_adc_channel   #00-gpio4   01-gpio5   02-gpio6  03-gpio7    04-gpio9  05-gpio10  06-gpio11  07-gpio12
+mem_mouse_global_setup:83
+
+#sop16
+mem_bk_button_gpio:0b
+mem_fw_button_gpio:0c
+mem_dpi_button_gpio:0a
+mem_matrix_public_gpio:14
+mem_sensor_motion_gpio:ff
+mem_customer_key_gpio:ff
+mem_whee_a_data_gpio:04
+mem_whee_b_data_gpio:05
+mem_config_device_24g_led_gpio:ff
+mem_config_device_bt1_led_gpio:ff#03
+mem_select_sensor_angle_gpio:09
+
+mem_mouse_sensor_sclk_gpio:07
+mem_mouse_sensor_sdio_gpio:06
+
+
+#sop32 dry battery
+#mem_bk_button_gpio:0e
+#mem_fw_button_gpio:06
+#mem_dpi_button_gpio:05
+#mem_matrix_public_gpio:ff
+#mem_sensor_motion_gpio:ff
+#mem_customer_key_gpio:ff
+#mem_whee_a_data_gpio:03
+#mem_whee_b_data_gpio:02
+#mem_config_device_24g_led_gpio:87
+#mem_config_device_bt1_led_gpio:00
+#mem_select_sensor_angle_gpio:ff
+
+
+#bit4-5:mem_config_sensor_dpi  00--1200   01--1600
+#bit2-3:mem_sensor_angle_switch  00--6CLK   01--9CLK   02--12CLK   03--3CLK
+#bit0-1:mem_sensor_angle_default  00--6CLK   01--9CLK   02--12CLK   03--3CLK
+mem_mouse_sensor_config:09
+
+#max byte = 37B = 3 + 34
+
+mem_sensor_8650_init_new:
+09 5a
+ff 27
+ab 40
+b3 56
+9b e6
+a8 12
+a9 c0
+be e6
+a5 af
+a0 21
+a1 02
+b8 10
+b9 0b
+a7 ff
+b5 d0
+b6 00
+ff 00
+09 00
+ff ff
+
+mem_sensor_8009_init:
+09 5a
+06 02
+09 69
+0d 48
+0e 9f
+0f ba
+09 00
+ff ff
+
+mem_store_information_delay_timer_init:05
+mem_spi_ncs_gpio:ff
+mem_ui_button_gpio:ff
+
+
+
Index: util/crc16.exe
===================================================================
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream

Property changes on: util/crc16.exe
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Index: util/crc16.pl
===================================================================
--- /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/util/crc16.pl	(nonexistent)
+++ /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/util/crc16.pl	(working copy)
@@ -0,0 +1,27 @@
+$debug = 0;
+$crc = 0xffff;
+$i = 0;
+$offset = 0xffff;
+$source_file = $ARGV[0];
+$offset = $ARGV[1];
+
+open(EEP,"$source_file") or die $!;
+
+while (<EEP>) {    
+	$c = hex();
+
+  if($i >= $offset){
+  	if($debug){printf "%02x\t", $c;}
+  	$crc  = ($crc >> 8) | ($crc << 8);
+		$crc ^= $c & 0xff;
+		$crc ^= ($crc & 0xff) >> 4;
+		$crc ^= $crc << 12;
+		$crc ^= ($crc & 0xff) << 5;
+		$crc &= 0xffff;
+  }
+  $i ++;
+  if($debug){printf "%02x\t", $crc;}
+  printf "%02x\n", $c;
+}
+
+printf "%02x\n%02x\n", (($crc >> 8) & 0xff),($crc & 0xff);
Index: util/eeprom2fulleeprom.exe
===================================================================
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream

Property changes on: util/eeprom2fulleeprom.exe
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Index: util/eeprom2fulleeprom.pl
===================================================================
--- /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/util/eeprom2fulleeprom.pl	(nonexistent)
+++ /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/util/eeprom2fulleeprom.pl	(working copy)
@@ -0,0 +1,18 @@
+
+
+
+$source_file = $ARGV[0];
+$eeprom_size = $ARGV[1];
+
+open(EEP,"$source_file") or die("cannot open files");
+for ($i = 1 ;$i<=$eeprom_size*128-2;$i++)
+{
+
+    while (<EEP>) { 
+        $c = hex();
+        printf "%02x\n", $c;
+        $i++;
+    }
+
+	printf "FF\n";
+}
Index: util/mergepatch.pl
===================================================================
--- /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/util/mergepatch.pl	(nonexistent)
+++ /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/util/mergepatch.pl	(working copy)
@@ -0,0 +1,276 @@
+#!/usr/bin/perl
+$defs = "";
+
+sub alloc {
+	my($end, %mc) = @_;
+	my(%eadr) = ();
+	my($tstr, $str, $i, $j, $addr);
+	my($tstr) = "";
+	
+	foreach $i (sort keys %mc) {
+		if($i =~ /(.+)_(.+)/ && exists($eadr{$1})) {
+			$addr = $eadr{$1};
+		} else {
+			$addr = $end;
+		}
+		for($j = 0;$j <= $#{$mc{$i}};$j++) {
+			if($mc{$i}[$j] =~ /^\s*([0-9]+)\s+([a-zA-Z0-9_]+)\s*(.*)$/) {
+				$str = sprintf "0x%04x %s%s\n", $addr, $2, $3;
+				$var{$2} = $addr;
+				$addr += $1;
+				$tstr .= $str;
+			}
+		}
+		$eadr{$i} = $addr;
+	}
+	if($addr > 0x4000) {
+		$xend = $addr if($addr > $xend);
+	} else {
+		$bend = $addr if($addr > $bend);
+	}
+	return $tstr . "\n";
+}
+
+
+sub malloc {
+	$path="output/bt_format.meta";
+	open file, $path;
+	@f = <file>;
+	close file;
+	open file, ">$path";
+	$path =~ s/\/.*//;
+	open file1, ">output/memmap.format";
+	$xaddr = 0x4000;
+	$addr = 0;
+	if($#ARGV == 1) {
+		$addr = hex($ARGV[0]);
+		$xaddr = hex($ARGV[1]);
+	}
+	for($i = 0, $ocnt = 0;$i < @f;$i++) { 
+		$_ = $f[$i];
+		$start = 1 if(/^\s*memalloc\s*\(\s*$/);		# allocate from 0
+		$start = 2 if(/^\s*xmemalloc\s*\(\s*$/);	# allocate from 4000
+		$start = 3 if(/^\s*omemalloc\s*\(\s*$/);	# allocate after all xmemalloc, mutex from each other(obsolete, for compatibility)
+		if(/^\s*([ax]*)memalloc\s+([a-zA-Z_0-9]+)\s*\(\s*$/) {
+			$start = $1 eq 'a' ? 5 : $1 eq 'x' ? 6 : 7;
+			$basev = $2;
+		}
+		if($start) {
+			if(/^\s*([a-zA-Z0-9_]+)\s+([a-zA-Z0-9_]+)\s*(.*)$/ && exists($def2{$1})) {		# macro for size
+				$_ = sprintf("%s %s %s", $def2{$1}, $2, $3);
+			}
+			if(/^\s*([0-9]+)\s+([a-zA-Z0-9_]+)\s*(.*)$/) {
+				if($start == 1) {
+					$str = sprintf "0x%04x %s%s\n", $addr, $2, $3;
+					$var{$2} = $addr;
+					$addr += $1;
+					$bstr .= $str;
+				} elsif($start == 2) {
+					$str = sprintf "0x%04x %s%s\n", $xaddr, $2, $3;
+					$var{$2} = $xaddr;
+					$xaddr += $1;
+					$xstr .= $str;
+				} else {
+					push @ostr, $_;
+				}
+			}
+			if(/^\s*\)\s*$/) {
+				if(@ostr > 0) {
+					if($start == 3) {
+						push @{$xmalloc{$ocnt}}, @ostr;
+						$ocnt++;
+					} elsif($start == 5) {
+						push @aaddr,$basev;
+						push @amalloc,[@ostr];
+					} elsif($start == 6) {
+						push @{$xmalloc{$basev}}, @ostr;
+					} elsif($start == 7) {
+						push @{$malloc{$basev}}, @ostr;
+					} 
+				}
+				$start = 0;
+				@ostr = ();
+			}
+		} else {
+			$def2{$2} = $1 if(/^\s*([0-9]+)\s+([a-zA-Z0-9_]+)\s*(.*)$/);
+			$sstr .= $_;
+		}
+	}
+	
+#--------------------- o/x/memalloc process -----------------------
+	$bend = $addr, $xend = $xaddr;
+	$bstr .= alloc($addr, %malloc);
+	$xstr .= alloc($xaddr, %xmalloc);
+
+#--------------------- amemalloc process -----------------------
+	for($i = 0;$i <= $#aaddr;$i++) {
+		for($j = 0, $addr = $aaddr[$i] =~ /^0x([0-9a-f]+)/ ? hex($1) : $var{$aaddr[$i]};$addr != 0 && $j <= $#{$amalloc[$i]};$j++) {
+			if($amalloc[$i][$j] =~ /^\s*([0-9]+)\s+([a-zA-Z0-9_]+)\s*(.*)$/) {
+				$str = sprintf "0x%04x %s%s\n", $addr, $2, $3;
+				$addr += $1;
+				if($addr < 0x4000) {
+					$bstr .= $str;
+				} else  {
+					$xstr .= $str;
+				}
+			}
+		}
+	}
+
+	
+	print file $bstr, $xstr, $sstr;
+	print file1 $bstr, $xstr;
+	close file;
+	close file1;
+	printf "\nLast allocated address is %04x\n", $bend;
+	printf "\nLast allocated xmem address is %04x\n", $xend;
+}
+
+
+sub parseif {
+	my($fname) = @_;
+	open file, $fname;
+	@f = <file>;
+	close file;
+	open file, ">$fname";
+	@valid = (1);
+	for($i = 0;$i < @f;$i++) { 
+		$_ = $f[$i];
+		s/\/\*.*\*\///g;
+		$comment = 1 if(/\/\*/ && !/\/\//);
+		if($comment) {
+			$comment = 0 if(/\*\//);
+			next;
+		}
+		$defs .= $1 . " " if(/^define\s+(\w+)\s*/);
+		if(/^\s*ifdef\s+(\w+)\s*/) {
+			push @valid, ($defs =~ /(^|\s)$1(\s|$)/ ? 1 : 0) & $valid[$#valid];
+		} elsif(/^\s*ifndef\s+(\w+)\s*/) {
+			push @valid, ($defs =~ /(^|\s)$1(\s|$)/ ? 0 : 1) & $valid[$#valid];
+		} elsif(/^\s*else/) {
+			printf "%s\nelse without if at line %d\n", $f[$i - 3], $i if($#valid == 0);
+			if($#valid == 0) {
+				for($j = -10;$j < 10;$j++) {
+					print $f[$i + $j];
+				}
+				last;
+ 				$i = $i;
+			}
+			$valid[$#valid] = (1 - $valid[$#valid]) & $valid[$#valid - 1];
+		} elsif(/^\s*endif/) {
+			printf "%s\nendif without if at line %d\n", $_, $i if($#valid == 0);
+			if($#valid == 0) {
+				for($j = -10;$j < 10;$j++) {
+					print $f[$i + $j];
+				}
+				last;
+ 				$i = $i;
+			}
+			pop @valid;
+		} elsif($valid[$#valid]) {
+			if(/^include\s+(.+)\s*/) {
+				open file2, "program/$1";
+				@f2 = <file2>;
+				close file2;
+				splice(@f, $i + 1, 0, @f2);
+			} else {
+				print file $_;
+			}
+		}
+	}
+	close file;
+}
+
+sub genpatch
+{
+	print "genpatch\n";
+	$patched = 0;
+	open file,"program/patch.prog";
+	while(<file>) {
+		if(/^\s*beq\s+patch([0-9a-f]+)_([0-7]),/) {
+			$a = hex($1), $b = hex($2);
+			$bits[$a] |= 1 << $b;
+			$patched = 1;
+		}
+	}
+	close file;
+	return if(!$patched);
+	open file,"output/sched.rom";
+	@sched = <file>;
+	close file;
+	for($j = 0;$j < 0x40;$j++) { 
+		$s .= sprintf ("%02x   #mem_patch%02x\n", $bits[$j], $j);
+	}
+	$s .= "\n\n";
+	for($i = $skip = 0;$i < @sched;$i++) {
+		$_ = $sched[$i];
+		if($skip > 0 && /:/) {
+			splice(@sched, $skip, $i - $skip, $s);
+			last;
+		}
+		$skip = $i + 1 if(/^mem_patch00:\s*$/);
+	}
+	if($skip == 0) {
+		$s = "mem_patch00:\n" . $s;
+		splice(@sched, 0, 0, $s);
+	}
+	open file,">output/sched.rom";
+	for($i = 0;$i < @sched;$i++) { print file $sched[$i]; }
+	close file;
+}
+
+sub zcode {
+	open file, "output/bt_program23.meta";
+	@f = <file>;
+	close file;
+	for($i = $label = $line = 0, $z = 1;$i < @f;$i++) {
+		$_ = $f[$i];
+		$line = $i - 1 if(/^org\s+0x[23]000/ && $line == 0);
+		if(/^org z\s*$/) {
+			$z += 0x10000;
+			$f[$i] = sprintf("org 0x%x\n", $z);
+			$label = 1;
+		}
+		if(/^(\w+):\s*$/ && $label == 1) {
+			$lab{$1} = $z;
+			$label = 2;
+		}
+	}
+	return if($z == 1);
+	for($i = 0;$i < @f;$i++) {
+		$_ = $f[$i];
+		$label = "";
+		if(/^\s*(branch|nbranch|call|ncall)\s+(\w+)\s*$/ || /^\s*(branch|nbranch|call|ncall)\s+(\w+)\s*,\s*(\w+)\s*$/) {
+			$label = $2;
+		}
+		if(/^\s*(bmark|beq|bne|bbit[01])\s+(\w+)\s*,\s*(\w+)\s*$/) {
+			$label = $3;
+		}
+		if(exists($lab{$label})) {
+			$nlabel = "jmpz_" . $label;
+			$f[$i] =~ s/$label/eval "$nlabel"/e;
+			if($lab{$label} > 100) {
+				$f[$line] .= sprintf("%s:\n\tsetarg 0x%x\n\tbranch p_zcode_entrance_2Bytes_common\n\n", $nlabel, int($lab{$label}/0x1000));
+				$lab{$label} = 1;
+			}
+		}
+	}
+	open file, ">output/bt_program23.meta";
+	for($i = 0;$i < @f;$i++) {
+		if($f[$i] =~ /^\s*bbit1 8,pf_patch_ext\s*$/) {
+			printf file ("p_start:\n\tbranch p_patch_array\n\np_zcode:\n");
+			for($j = 0;$j < 63;$j++) {
+				printf file "\tnop %d\n", $j + 1;
+			}
+			printf file "p_patch_array:\n";
+		}
+		print file $f[$i];
+	}
+	close file;
+}
+
+parseif("output/bt_program23.meta");
+parseif("output/bt_format.meta");
+genpatch() if($defs !~ / SIM /);
+malloc();
+zcode();
Index: util/patch.pl
===================================================================
--- /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/util/patch.pl	(nonexistent)
+++ /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_MZ_Only2.4G/util/patch.pl	(working copy)
@@ -0,0 +1,49 @@
+#!/usr/bin/perl
+
+
+
+@dirs = (".");
+while(@dirs){
+   $d = $dirs[0];
+   opendir folder, $d || die "Can not open this directory";
+   @filelist = readdir folder; 
+   closedir folder;
+   foreach (@filelist) {
+      $f = $d . "/" . $_;
+      next if($_ eq "." || $_ eq "..");
+      push(@dirs, $f) if(-d $f) ;
+      push(@files,$f) if(-f $f);
+    }
+   shift @dirs;
+}
+
+for($i = 0;$i < @files;$i++) {
+	if($files[$i] =~ /bt\.prog/) {
+		($files[$i],$files[0]) = ($files[0],$files[$i]);
+		last;
+	}
+}
+
+
+for($i = $byte = $bit = 0;$i < @files;$i++) {
+	next if($files[$i] =~ /patch\.prog|sim\.prog/ || $files[$i] !~ /\.prog/);
+	open(FILE, $files[$i]) or next;
+	@file = <FILE>;
+	close FILE;
+	open(FILE, "> $files[$i]");
+	for($j = 0;$j < @file;$j++) {
+		$_ = $file[$j];
+		if(/bpatch.*,.*/) {
+			printf FILE "\t%s patch%02x_%d,mem_patch%02x\n", $byte > 31 ? "bpatchx" : "bpatch" , $byte, $bit, $byte;
+			if(++$bit > 7)
+			{
+				$bit = 0;
+				$byte++;
+			}
+		} else {
+			print FILE $_;
+		}
+	}
+	close(FILE);
+}
+printf "Total patches : %d, last patch number is:%02x bit %d\n", $byte*8+$bit, $byte, $bit;
