Index: a.bat
===================================================================
--- /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/a.bat	(nonexistent)
+++ /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/a.bat	(working copy)
@@ -0,0 +1,10 @@
+e pu
+e 8043 00
+
+e hu output/romcode.rom 3800
+e ku
+e pu
+e hu output/ramcode.rom 0
+e pu
+e su output/sched.rom
+e cu
\ No newline at end of file
Index: do.bat
===================================================================
--- /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/do.bat	(nonexistent)
+++ /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/do.bat	(working copy)
@@ -0,0 +1,88 @@
+@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
+@set eeprom_fill=0
+@set sched_optimize=1
+@set device_option=basic_mouse_24g
+@rem set device_option=basic_mouse_24g_ble
+@rem set device_option=enhanced_mouse_24g
+@rem set device_option=enhanced_mouse_24g_ble
+@echo off
+
+setlocal enabledelayedexpansion
+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\app_light\remoter\*.prog) do @set light_progs=!light_progs! %%f
+for %%f in (program\app_light\fan\*.prog) do @set light_progs=!light_progs! %%f
+for %%f in (program\app_light\common\*.prog) do @set light_progs=!light_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% %light_progs% > output\bt_program23.meta
+
+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\app_light_format\*.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
+
+perl util/mergepatch.pl 
+
+if "%device_option%" equ "basic_mouse_24g" (
+  copy sched\1306.dat + sched\mouse_basic.dat output\sched.rom
+) else if "%device_option%" equ "basic_mouse_24g_ble" (
+  copy sched\1306.dat + sched\mouse_basic.dat + sched\ble.dat output\sched.rom
+) else if "%device_option%" equ "enhanced_mouse_24g" (
+  copy sched\1306.dat + sched\mouse_enhanced.dat output\sched.rom
+) else if "%device_option%" equ "enhanced_mouse_24g_ble" (
+  copy sched\1306.dat + sched\mouse_enhanced.dat + sched\ble.dat output\sched.rom
+) else (
+
+cd ..
+echo **********************************
+echo Error: illegal device_option !
+echo **********************************
+goto end
+) 
+
+
+
+cd output
+osiuasm bt_program23 -O-W
+
+
+if "%sched_optimize%" equ "1" (
+echo ***********optimizing sched begin***********
+perl ../util/deletenote.pl ../output/sched.rom
+perl ../util/transform_name2addr.pl ../output\sched.rom ../output/sched.rom ../output/memmap.format
+perl ../util/sortsched.pl ../output/sched.rom ../output/sched.rom
+)
+
+
+geneep -n 
+::geneep -n -k key.dat
+
+
+if "%eeprom_fill%" equ "1" (
+echo ***********filling eeprom begin***********
+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
+cd ..\output
+copy eeprom.dat ..\output\flash.dat 
+)
+
+
+echo ***********generating authrom begin***********
+perl ../util/mergepatch.pl mouse_ble_att_list usb_kbdata_vendor_define usb_kbdata usb_msdata usb_devicedata usb_confdata  ble_shutter_dy_gatt_list  ble_shutter_dy_mousekey_value_list frmt_xbox
+perl ../util/romcrc.pl romcode.rom
+
+
+:end
+
Index: eotp.bat
===================================================================
--- /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/eotp.bat	(nonexistent)
+++ /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/eotp.bat	(working copy)
@@ -0,0 +1,6 @@
+call do eep
+e pu
+e 8043 00
+e otp output/eeprom.dat 0
+e otr 0 20
+e ku
Index: format/app.format
===================================================================
--- /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/format/app.format	(nonexistent)
+++ /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/format/app.format	(working copy)
@@ -0,0 +1,318 @@
+
+memalloc(
+
+/* load code */
+1 mem_ucode_device_flag
+1 mem_peripheral_lock_flag
+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_app_evt_timer_count
+1 mem_load_delay
+1 mem_load_check_sum
+)
+
+xmemalloc(
+
+/*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_idle_process
+2 mem_cb_bb_event_process
+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_before_lpm_sleep
+
+2 mem_eeprom_base
+
+//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_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
+
+
+//adc
+4 mem_gpio_h_k19_b13
+4 mem_gpio_l_k19_b13
+4 mem_hvin_k19_b13
+1 mem_app_adc_read_count
+1 mem_start_adc_clkn
+2 mem_adc_delay
+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
+
+
+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_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_key_value_retention
+2 mem_power_param_ptr
+3 mem_efuse_header
+
+1 mem_seqi
+1 mem_set_cdb_on
+1 mem_syn_cal_ctrl
+
+1 mem_dig_aon_vsel
+1 mem_syn_afc_cfg1
+1 mem_rf_ldo_cfg1
+1 mem_rc_cal
+
+1 mem_nec_decode_error_value
+
+ifdef AC_50HZ
+1 mem_ac_detect_gpio
+0 mem_ac_detect_control
+1 mem_ac_detect_div
+1 mem_ac_detect_window
+endif
+
+1 mem_wdt_always_work
+
+1 mem_power_ctrl_disable
+)
+//adc read
+(
+1 ADC_CONFIG_HVIN
+3 ADC_CONFIG_GPIO_L
+4 ADC_CONFIG_GPIO_H
+)
+
+(
+34 NV_DATA_LEN
+-1 DECREASED_ONE
+)
+
+(
+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
+
+)
+
+
+(
+3 OTP_UFLAG_AES
+2 OTP_UFLAG_SKIP_EEP
+1 OTP_UFLAG_SKIP_FLASH
+0 OTP_UFLAG_HCI
+)
+
+//OTP
+(
+0 OTP_OFFSET_UCODE_FLAG
+
+0x7d0 OTP_OFFSET_DEVICE_FLAG  
+0x7d1 OTP_OFFSET_PERIPHERALS_LOCK
+0x7d2 OTP_OFFSET_APP_VDD_SEL
+0x7d3 OTP_OFFSET_LOADCODE_DELAY
+0x7d4 OTP_OFFSET_LOADCODE_CHECKSUM
+
+0x7e0 OTP_OFFSET_ADC_PARAM
+0x7f0 OTP_OFFSET_UCODE_KEY
+)
+
+
+(
+//OTP_OFFSET_PERIPHERALS_LOCK
+0 OTP_SPI_LOCK_BIT
+2 OTP_UART_LOCK_BIT
+4 OTP_IIC_LOCK_BIT
+)
+
+
+
+/*mem_device_option*/
+(
+4 dvc_op_dongle
+5 dvc_op_test
+7 dvc_op_mouse_24g
+8 dvc_op_mouse
+9 dvc_op_shutter
+0x0a dvc_op_shutter_dy
+0x0b dvc_op_light
+0x0c dvc_op_car
+0x0f dvc_op_car_lock_app_and_ble
+   
+)
+
+
+(
+7 gpio_active_bit
+)
+
+(
+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
+7 APP_DISC_BLE
+)
+
+//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 MOUSE_BLE_ATT_LIST_ADDR
+0x9272 USB_KBDATA_VENDOR_DEFINE_ADDR
+0x928d USB_KBDATA_ADDR
+0x92cd USB_MSDATA_ADDR
+0x9371 USB_DEVICEDATA_ADDR
+0x9384 USB_CONFDATA_ADDR
+0x93c0 BLE_SHUTTER_DY_GATT_LIST_ADDR
+0x9535 BLE_SHUTTER_DY_MOUSEKEY_VALUE_LIST_ADDR
+0x97b5 FRMT_XBOX_ADDR
+0x97fc mem_sim_slave
+)
+
+(//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
+)
+
+
+(
+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_car.format
===================================================================
--- /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/format/app_car.format	(nonexistent)
+++ /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/format/app_car.format	(working copy)
@@ -0,0 +1,335 @@
+
+
+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
+
+
+4 mem_car_24g_commom_addr
+4 mem_car_24g_commom_addr_temp
+4 mem_car_24g_commom_addr_read
+1 mem_car_save_addr_flag
+400 mem_ble_att_list
+)
+
+(
+//20ms
+0x0020	FAST_ADV_INTERVAL_VALUE_CAR
+)
+
+(
+0x19 ATT_CAR_CONTROL_HANDLE
+0x19 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
+)
+
+(
+0x700 OTP_OFFSET_CAR_COMMOM_START_ADDR 
+0x7cc OTP_OFFSET_CAR_COMMOM_END_ADDR 
+)
+
Index: format/app_dongle.format
===================================================================
--- /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/format/app_dongle.format	(nonexistent)
+++ /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/format/app_dongle.format	(working copy)
@@ -0,0 +1,132 @@
+
+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_sys_config
+9 mem_dg_usb_vid_pid
+1 mem_dg_usb_tx_interval
+30 mem_dg_usb_device_name
+1 mem_dg_kb_bind_success
+1 mem_dg_pc_sleep_flag
+1 mem_dg_usb_device_iserial_number
+1 mem_dg_24g_tx_power_default
+)
+
+
+//otp address offset
+(
+0x5A DONGLE_KB_BIND_SUCCESS
+0x1fdf 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
+)
+
+(
+640 TIMER_NODATA_DELAY	//200ms
+
+384 TIMER_MS_BLANK_DELAY
+
+384 TIMER_KB_MUL_BLANK_DELAY
+
+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
+)
+
+//mem_dg_sys_config
+(
+7 DG_ENABLE_XTAL_24M
+6 DG_ENABLE_NEW_CHMAP
+5 DG_ENABLE_EEPROM
+4 DG_ENABLE_KB_ICON
+3 DG_ENABLE_24G_2M
+)
+
Index: format/app_light_format/dflp_mmap.format
===================================================================
--- /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/format/app_light_format/dflp_mmap.format	(nonexistent)
+++ /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/format/app_light_format/dflp_mmap.format	(working copy)
@@ -0,0 +1,186 @@
+
+
+xmemalloc ftd_rlmp_dflp(
+	//value load from otp
+	0 mem_ftd_fan_cfg_catch
+	1 mem_fan_protocol_select_flag
+	1 mem_fan_tx_pin
+	1 mem_fan_yc_identify_flag
+	1 mem_customer_id
+	1 mem_customer_id_v2
+	1 mem_id_universal
+	1 mem_manufacture_id_temp
+	1 mem_light_device_flag
+	1 mem_ble_ch_mapped
+
+	
+	//base value
+	2 mem_ble_v2_decoder
+	1 mem_light_speed_temp
+	1 mem_light_blink_count
+	2 mem_pairing_timeout
+	1 mem_light_pairing_enable
+	1 mem_light_last_packetnum
+	6 mem_yc_fan_ble_addr
+	6 mem_recv_addr
+
+	//for 433 trans code
+	2 mem_fan_tx_bits_loop
+	1 mem_fan_opcode
+	1 mem_fan_tx_cnt
+	8 mem_fan_433code_packet   //预留8字节
+	2 mem_fan_tx_loop
+	2 mem_fan_tx_loop2
+	1 mem_fan_433_opcode
+	1 mem_fan_tx_gpio
+	2 mem_fan_tx_gpio_reg
+
+	2 mem_433_tx_cb
+	2 mem_fan_packet_indiscriminate_cb
+
+	
+	//v1 v2 
+	0 mem_ble_parameter
+	2 mem_ble_parameter_cmd
+	4 mem_ble_parameter_para
+	2 mem_ble_parameter_addr
+	1 mem_ble_parameter_group
+	3 mem_fan_addr_433
+
+	
+)
+
+memalloc ftd_rlmp_dflp(
+	0 mem_base_start
+	
+	0 mem_flash_paired_addr_base
+	2 mem_flash_paired_addr0
+	1 mem_flash_paired_addr0_group
+	2 mem_flash_paired_addr1
+	1 mem_flash_paired_addr1_group
+	2 mem_flash_paired_addr2
+	1 mem_flash_paired_addr2_group
+	2 mem_flash_paired_addr3
+	1 mem_flash_paired_addr3_group
+	2 mem_flash_paired_addr4
+	1 mem_flash_paired_addr4_group
+	2 mem_flash_paired_addr5
+	1 mem_flash_paired_addr5_group
+	2 mem_flash_paired_addr6
+	1 mem_flash_paired_addr6_group
+	2 mem_flash_paired_addr7
+	1 mem_flash_paired_addr7_group
+	2 mem_flash_paired_addr8
+	1 mem_flash_paired_addr8_group
+	2 mem_flash_paired_addr9
+	1 mem_flash_paired_addr9_group
+
+	0 mem_msg_cnt_base
+	1 mem_addr0_msg_cnt
+	1 mem_addr1_msg_cnt
+	1 mem_addr2_msg_cnt
+	1 mem_addr3_msg_cnt
+	1 mem_addr4_msg_cnt
+	1 mem_addr5_msg_cnt
+	1 mem_addr6_msg_cnt
+	1 mem_addr7_msg_cnt
+	1 mem_addr8_msg_cnt
+	1 mem_addr9_msg_cnt
+	1 mem_msg_cnt_base1
+	
+	1 mem_msg_addr_save
+	30 mem_msg_before_queue
+	3 mem_count_and_random
+	1 mem_msg_cnt_judgment_window_time
+	1 mem_msg_judgment_window_time
+
+	0 mem_base_end
+
+)
+
+(
+// FET2 433 cmd code
+
+
+	0x06 FAN_433_MASTER_ON_AND_OFF
+	0x10 FAN_433_TAP_POSOTION_1
+	0X12 FAN_433_TAP_POSOTION_2
+	0X1C FAN_433_TAP_POSOTION_3
+	0X0A FAN_433_TAP_POSOTION_4
+	0X0F FAN_433_TAP_POSOTION_5
+	0X0C FAN_433_TAP_POSOTION_6
+	0X16 FAN_433_TAP_POSOTION_0
+	0X17 FAN_433_FAN_SPEED_INC
+	0X1B FAN_433_FAN_SPEED_DEC
+	0X15 FAN_433_NATURAL_WIND
+	0X03 FAN_433_PAIRING
+	0X04 FAN_433_TURNIING_FORWARD
+	0X11 FAN_433_TURNING_REVERSE
+	0x07 FAN_433_WIND_REVERSE
+	0x02 FAN_433_TIMING_TO_OFF_1HOUR
+	0X09 FAN_433_TIMING_TO_OFF_2HOUR
+	0X19 FAN_433_TIMING_TO_OFF_4HOUR
+	0X1A FAN_433_TIMING_TO_OFF_8HOUR
+	0X14 FAN_433_LAMP_ON_ONLY
+	0X18 FAN_433_LAMP_OFF_ONLY	
+	0x08 FAN_433_LAMP_ON_AND_OFF
+	0x13 FAN_433_DEFLECTOR_ON_AND_OFF
+	0x0D FAN_433_DEFLECTOR_ON
+	0x0E FAN_433_DEFLECTOR_OFF
+	0X05 FAN_433_COLOR_SWITCH
+	0X1E FAN_433_SLEEP_WIND
+	0X1f FAN_433_BUZZ
+	0x1D FAN_433_CLEAR
+)
+
+(
+0 FAN_SPEED_FLAG_OFF
+1 FAN_SPEED_FLAG_LOW
+2 FAN_SPEED_FLAG_MIDDLE
+3 FAN_SPEED_FLAG_HIGH
+
+0x01 BLE_DEV_TYPE_LAMP
+0x02 BLE_DEV_TYPE_FAN
+0x04 BLE_DEV_TYPE_FAN_LAMP
+
+	
+60 FAN_BLE_CMD_TIMING_TO_OFF_1HOUR
+120 FAN_BLE_CMD_TIMING_TO_OFF_2HOUR
+240 FAN_BLE_CMD_TIMING_TO_OFF_4HOUR
+480 FAN_BLE_CMD_TIMING_TO_OFF_8HOUR
+
+255 FAN_BLE_CMD_TIMING_TO_OFF_8HOUR_V1
+)
+
+
+(
+0x55 REMOTER_MARKER
+)
+
+(
+0x528718 FTD_REMOTER_ID_CODE
+0x08f9ff FTD_ANDRIOD4913_ID_CODE
+0xf87703 FTD_B65F_ID_CODE
+0x08f903 FTD_IOS4913_ID_CODE
+)
+
+(
+0x00 BLE_PARA_NORMAL_MODE
+0x01 BLE_PARA_SLEEP_MODE
+0x02 BLE_PARA_NATURAL_MODE
+0x03 BLE_PARA_FAN_MODE_MAX
+)
+
+(
+	4 FAN_433CODE_LEN    /*unit: bytes*/
+	3 FAN_RETRANSMISSION_TIMES
+
+	6400 	FAN_HEADER_LOW_DELAY	//FAN_8ms_DELAY_CNT
+	599 	FAN_1_HIGH_DELAY		//FAN_0_75ms_DELAY_CNT
+	200 	FAN_1_LOW_DELAY			//FAN_0_25ms_DELAY_CNT
+	200 	FAN_0_HIGH_DELAY		//FAN_0_25ms_DELAY_CNT
+	599 	FAN_0_LOW_DELAY			//FAN_0_75ms_DELAY_CNT
+	200     FAN_END_HIGH_DELAY		//FAN_0_25ms_DELAY_CNT
+	559     FAN_END_LOW_DELAY		//FAN_0_25ms_DELAY_CNT
+)
+
Index: format/app_light_format/dlmp_mmap.format
===================================================================
--- /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/format/app_light_format/dlmp_mmap.format	(nonexistent)
+++ /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/format/app_light_format/dlmp_mmap.format	(working copy)
@@ -0,0 +1,57 @@
+
+
+
+
+xmemalloc ftd_dlmp(
+
+	2 mem_cb_light_ac_detecting
+	2 mem_cb_light_gradual_dimmer
+	2 mem_light_pwm_freq_w
+	2 mem_light_pwm_freq_y
+	2 mem_light_pwm_freq_l
+	2 mem_light_W_aim_pcnt
+	2 mem_light_Y_aim_pcnt
+	2 mem_light_L_aim_pcnt
+	1 mem_light_gradual_step_w 
+	1 mem_light_gradual_step_y 
+	1 mem_light_gradual_step_l 
+	2 mem_light_mix_change_delay_time
+	1 mem_temp_flag
+	1 mem_light_pwm_enable_flag
+	1 mem_light_gpio_pin_w
+	1 mem_light_gpio_pin_y
+	1 mem_light_gpio_pin_l
+
+
+)
+
+
+
+
+(
+3000 LIGHT_PWM_L_FREQ   /*WY的PWM频率,frequency = 12M / LIGHT_PWM_L_FREQ*/
+1 LIGHT_GRADUAL_STEP_L /* 灯光渐变时的pcnt步进 */
+
+6000 LIGHT_PWM_W_FREQ   /*WY的PWM频率,frequency = 12M / LIGHT_PWM_WY_FREQ*/
+12000 LIGHT_PWM_Y_FREQ   /*WY的PWM频率,frequency = 12M / LIGHT_PWM_WY_FREQ*/
+1 LIGHT_GRADUAL_STEP_WY /* 灯光渐变时的pcnt步进 */
+
+0x04 LIGHT_W_GPIO
+0x809c LIGHT_W_PCNT
+0x809e LIGHT_W_NCNT
+0 PWM_W_ENABLE_BIT  /*pwm channel,用偶数pwm channel*/
+
+0x05 LIGHT_Y_GPIO
+0x80a0 LIGHT_Y_PCNT
+0x80a2 LIGHT_Y_NCNT
+1 PWM_Y_ENABLE_BIT  /*pwm channel,用奇数pwm channel*/
+
+0x06 LIGHT_L_GPIO
+0x80a4 LIGHT_L_PCNT
+0x80a6 LIGHT_L_NCNT
+2 PWM_L_ENABLE_BIT  /*pwm channel,用奇数pwm channel*/
+
+)
+
+
+
Index: format/app_light_format/protocol_V2.format
===================================================================
--- /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/format/app_light_format/protocol_V2.format	(nonexistent)
+++ /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/format/app_light_format/protocol_V2.format	(working copy)
@@ -0,0 +1,50 @@
+
+
+
+(
+0x0009 LIGHT_CMD_TURN_ON_AND_OFF_V2
+0x0010 LIGHT_CMD_TURN_ON_V2
+0x0011 LIGHT_CMD_TURN_OFF_V2
+0x0012 LIGHT_CMD_AIDED_LIGHT_TURN_ON_V2
+0x0013 LIGHT_CMD_AIDED_LIGHT_TURN_OFF_V2
+0x0015 FAN_CMD_WIND_DIRECTION_V2
+0x0016 FAN_CMD_DEFLECTOR_V2
+0x0021 LIGHT_CMD_LIGHT_CTL_V2
+0x0023 LIGHT_CMD_NIGHT_LIGHT_V2
+0X001b LIGHT_CMD_FTD_RGB_FORWARD_AND_REVERSE_V2
+0x001c LIGHT_CMD_RGB_TURN_ON_OFF_V2
+0X001d LIGHT_CMD_FTD_RGB_LOOP_V2
+0x001e LIGHT_CMD_RGB_AUTO_TURN_ON_V2
+0x001f LIGHT_CMD_RGB_AUTO_TURN_OFF_V2
+0x0022 LIGHT_CMD_RGB_MANUAL_V2
+0x0030 FAN_CMD_WIND_SPEED_CTL_V2
+0x0031 FAN_CMD_WIND_SPEED_V2
+0x0033 FAN_CMD_MODE_SEL_V2
+0x0041 CMD_TIMING_OFF
+0x0045 CMD_CLEAR_CODE
+0x0046 LIGHT_CMD_KEYPRESS_DRIVE_RETENTION_V2
+0x0047 LIGHT_CMD_BACK_TO_RETENTION_STATE_V2
+0x006f FAN_CMD_MASTER_ON_AND_OFF_V2
+0x0028 CMD_PAIRING
+0x0022 LIGHT_CMD_RGB_COLOR_SWITCH_V2
+0x0068 LIGHT_CMD_BATH_V2
+0x0067 LIGHT_CMD_AIR_CHANGE_V2
+0X0066 LIGHT_CMD_HEATING_V2
+0X0032 LIGHT_CMD_FAN_TURN_ON
+0X0031 LIGHT_CMD_FAN_TURN_OFF
+0x006f LIGHT_CMD_FTD_MASSTER_OFF_V2
+0x0079 LIGHT_CMD_SWITCH_MODE_V2
+0x0071 LIGHT_CMD_EXPAND_CODE_0X71_V2
+0x0090 LIGHT_CMD_FTD_CURTAIN_ON_OFF_V2
+0x00e9 LIGHT_CMD_FTD_GENERAL_STOP_V2
+0x00ff LIGHT_CMD_TEST_MODE_V2
+0X0024 LIGHT_CMD_HELP_SLEEP_V2
+
+0 PRODUCT_SUBTYPE
+
+
+1 PRODUCT_MAINTYPE_LIGHT
+
+
+)
+
Index: format/app_light_format/rlmp_common.format
===================================================================
--- /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/format/app_light_format/rlmp_common.format	(nonexistent)
+++ /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/format/app_light_format/rlmp_common.format	(working copy)
@@ -0,0 +1,420 @@
+
+
+//防debug error, 临时宏定义
+(
+8070 core_gpio_pu0
+)
+
+
+(
+0x08 LIGHT_CLEAR_CODE_ROW_GPIO
+29     LIGHT_AID_ROW_GPIO
+25 KEYBOARD_MAX_KEYS_NUM
+
+11 LIGHT_LT8KEY_COLOR_SWITCH
+5   LIGHT_LT8KEY_NIGHT_LIGHT
+10 LIGHT_LT8KEY_LIGHTEN
+4   LIGHT_LT8KEY_DARKEN
+7   LIGHT_LT8KEY_TO_W
+1   LIGHT_LT8KEY_TO_Y
+12 LIGHT_LT8KEY_TURN_ON
+6   LIGHT_LT8KEY_TURN_OFF
+
+24   LIGHT_ZS3KEY_KEY_ON
+18 LIGHT_ZS3KEY_KEY_OFF
+12 LIGHT_ZS3KEY_KEY_SWTICH
+
+19 LIGHT_LB12KEY_KEY_TEST_NIGHT_LIGHT
+21 LIGHT_LB12KEY_KEY_TEST_AIDED
+10 LIGHT_LB12KEY_KEY_TEST_LIGHTEN
+23 LIGHT_LB12KEY_KEY_TEST_TO_W
+4 LIGHT_LB12KEY_KEY_TEST_COLOR_SWITCH
+12 LIGHT_LB12KEY_KEY_TEST_TO_Y
+22 LIGHT_LB12KEY_KEY_TEST_DARKEN
+11 LIGHT_LB12KEY_KEY_TEST_TURN_ON
+24 LIGHT_LB12KEY_KEY_TEST_TURN_OFF
+5 LIGHT_LB12KEY_KEY_TEST_PAIRING
+7 LIGHT_LB12KEY_KEY_TEST_50PERCENT
+6 LIGHT_LB12KEY_KEY_TEST_100PERCENT
+
+13 LIGHT_LB12KEY_KEY_NIGHT_LIGHT
+21 LIGHT_LB12KEY_KEY_AIDED
+5 LIGHT_LB12KEY_KEY_LIGHTEN
+12 LIGHT_LB12KEY_KEY_TO_W
+6 LIGHT_LB12KEY_KEY_COLOR_SWITCH
+24 LIGHT_LB12KEY_KEY_TO_Y
+11 LIGHT_LB12KEY_KEY_DARKEN
+8 LIGHT_LB12KEY_KEY_TURN_ON
+23 LIGHT_LB12KEY_KEY_TURN_OFF
+20 LIGHT_LB12KEY_KEY_PAIRING
+2 LIGHT_LB12KEY_KEY_50PERCENT
+3 LIGHT_LB12KEY_KEY_100PERCENT
+
+15 LIGHT_KEY_AID2
+14 LIGHT_KEY_NIGHT_LIGHT
+4 LIGHT_KEY_RGB_AUTO
+16 LIGHT_KEY_TURN_OFF
+17 LIGHT_KEY_TURN_ON
+9 LIGHT_KEY_TO_W
+8 LIGHT_KEY_LIGHTEN
+7 LIGHT_KEY_PAIRING
+10 LIGHT_KEY_DARKEN
+3  LIGHT_KEY_AIDED1
+2 LIGHT_KEY_COLOR_SWITCH
+1 LIGHT_KEY_TO_Y
+13 LIGHT_KEY_RGB_MANUAL
+
+6 LIGHT_KLD13KEY_KEY_NIGHT_LIGHT
+18 LIGHT_KLD13KEY_KEY_RGB_AUTO
+13 LIGHT_KLD13KEY_KEY_TURN_OFF
+7 LIGHT_KLD13KEY_KEY_TURN_ON
+10 LIGHT_KLD13KEY_KEY_TO_W
+21 LIGHT_KLD13KEY_KEY_LIGHTEN
+11 LIGHT_KLD13KEY_KEY_PAIRING
+8 LIGHT_KLD13KEY_KEY_DARKEN
+24  LIGHT_KLD13KEY_KEY_AIDED
+16 LIGHT_KLD13KEY_KEY_COLOR_SWITCH
+20 LIGHT_KLD13KEY_KEY_TO_Y
+12 LIGHT_KLD13KEY_KEY_RGB_MANUAL
+17 LIGHT_KLD13KEY_KEY_50_AND_100PERCENT
+
+21 LIGHT_SJD_KEY_ON_OFF_ALTERNANT
+15 LIGHT_SJD_KEY_TIMING_15MINS
+19 LIGHT_SJD_KEY_TIMING_30MINS
+14 LIGHT_SJD_KEY_TIMING_60MINS
+20 LIGHT_SJD_KEY_ON
+13 LIGHT_SJD_KEY_OFF
+
+18 LIGHT_RHZ12KEY_KEY_ON_AND_OFF
+13 LIGHT_RHZ12KEY_KEY_SCENE1
+6 LIGHT_RHZ12KEY_KEY_SCENE2
+12 LIGHT_RHZ12KEY_KEY_COLOR_SWITCH
+17 LIGHT_RHZ12KEY_KEY_NIGHT_LIGHT
+4 LIGHT_RHZ12KEY_KEY_50PERCENT
+10 LIGHT_RHZ12KEY_KEY_100PERCENT
+7 LIGHT_RHZ12KEY_KEY_PAIRING
+16 LIGHT_RHZ12KEY_KEY_TO_Y
+11  LIGHT_RHZ12KEY_KEY_TO_W
+1 LIGHT_RHZ12KEY_KEY_LIGHTEN
+5 LIGHT_RHZ12KEY_KEY_DARKEN
+
+
+0x28 LIGHT_CMD_PAIRING_CODE
+0x45 LIGHT_CMD_CLEAR_CODE
+0x09 LIGHT_CMD_TURN_ON_AND_OFF
+0x10 LIGHT_CMD_TURN_ON
+0x11 LIGHT_CMD_TURN_OFF
+0x23 LIGHT_CMD_NIGHT_LIGHT
+0x24 LIGHT_CMD_HELP_SLEEP
+0x21 LIGHT_CMD_COLOR_SWTICH
+0x12 LIGHT_CMD_AID_TURN_ON
+0x13 LIGHT_CMD_AID_TURN_OFF
+0x04 LIGHT_CMD_LIGHTEN
+0x05 LIGHT_CMD_DARKEN
+0x06 LIGHT_CMD_TO_W
+0x07 LIGHT_CMD_TO_Y
+0x1b LIGHT_CMD_FTD_RGB_FORWARD_AND_REVERSE
+0x1c LIGHT_CMD_RGB_ON_OFF
+0x1d LIGHT_CMD_FTD_RGB_LOOP
+0x1e LIGHT_CMD_RGB_1E
+0x1f LIGHT_CMD_RGB_1F
+0x22 LIGHT_CMD_RGB_MANNUL
+0x41 LIGHT_CMD_DELAY_OFF
+0xc0 LIGHT_CMD_CHANGE_POWERON_STATE
+0x46 LIGHT_CMD_KEYPRESS_DRIVE_RETENTION
+0x47 LIGHT_CMD_BACK_TO_RETENTION_STATE
+0x48 LIGHT_CMD_KPS_DRIVE_RTT_NOT_INC_POWER_ON1
+0x49 LIGHT_CMD_BACK_TO_RTT_STATE_NOT_INC_POWER_ON1
+0x4a LIGHT_CMD_KPS_DRIVE_RTT_NOT_INC_POWER_ON2
+0x4b LIGHT_CMD_BACK_TO_RTT_STATE_NOT_INC_POWER_ON2
+0x46 LIGHT_CMD_SCENE_SET
+0x47 LIGHT_CMD_SCENE_GET
+0x48 LIGHT_CMD_SCENE_RESET
+0x6f LIGHT_CMD_FTD_MASSTER_ON_OFF
+0x7a FAN_LIGHT_COLOR_CTL
+0x79 LIGHT_CMD_SWITCH_MODE
+0x71 LIGHT_CMD_EXPAND_CODE_0X71
+0xff LIGHT_CMD_TEST_MODE
+
+0X67 LIGHT_CMD_AIR_CHANGE
+0X66 LIGHT_CMD_HEATING
+0X32 LIGHT_CMD_FAN_TURN_ON_V2
+0X31 LIGHT_CMD_FAN_TURN_OFF_V2
+0x33 LIGHT_CMD_FAN_WIND_TYPE_V2
+0x34 LIGHT_CMD_FAN_SHAKE_HEAD_V2
+
+0x21 LIGHT_CMD_FTD_COLOR_STATE_CHANGE
+0x14 LIGHT_CMD_FTD_LIGHTEN_RESERVED
+0x28 LIGHT_CMD_FTD_DARKEN_RESERVED
+0x18 LIGHT_CMD_FTD_Y_RESERVED
+0x24 LIGHT_CMD_FTD_W_RESERVED
+0x01 LIGHT_CMD_FTD_50PERCENT_RESERVED
+0x02 LIGHT_CMD_FTD_100PERCENT_RESERVED
+0x03 LIGHT_CMD_FTD_30PERCENT_RESERVED
+0x04 LIGHT_CMD_FTD_80PERCENT_RESERVED
+
+0x40 LIGHT_CMD_FTD_COLOR_SWTICH_RESERVED
+0x73 LIGHT_CB_DATA_PART_PCNT_50PERCENT
+0x7f LIGHT_FTD_DATA_PART_PCNT_50PERCENT
+0xc0 LIGHT_FTD_DATA_PART_PCNT_75PERCENT
+0x81 LIGHT_DATA_PART_81
+0x80 LIGHT_DATA_PART_80
+0xff LIGHT_DATA_PART_FF
+0x4e LIGHT_CB_DATA_PART_PCNT_30PERCENT
+0x40 LIGHT_CB_DATA_PART_PCNT_25PERCENT
+0xcc LIGHT_CB_DATA_PART_PCNT_80PERCENT
+0x22 LIGHT_CMD_RGB_COLOR_SWITCH
+
+0x90 LIGHT_CMD_FTD_CURTAIN_ON_OFF
+0xe9 LIGHT_CMD_FTD_GENERAL_STOP
+
+//LIGHT_CMD_CHANGE_POWERON_STATE W-data
+0x00 LIGHT_PARAMETER_POWER_STATE_OFF
+0x01 LIGHT_PARAMETER_POWER_STATE_ON
+0x02 LIGHT_PARAMETER_POWER_STATE_REVERSE
+0x46 LIGHT_CMD_FTD_SCENE_SET
+0x47 LIGHT_CMD_FTD_SCENE_SWITCH
+0x05 LIGHT_CMD_FTD_SCENE_REMOTER_COPY
+
+9 	LIGHT_LONG_PRESS_TIMEOUT_0_9S
+15     LIGHT_PAIRING_TIMEOUT
+50     LIGHT_CLAER_CODE_TIMEOUT_5S
+30     LIGHT_LONG_PRESS_TIMEOUT_3S
+20     LIGHT_LONG_PRESS_TIMEOUT_2S
+
+
+1 KSCAN_ANALYSIS_INTERVAL
+1 KEY_PRESS_LED_ON_TIME
+
+0x01feff LIGHT_FTD_CLEAR_CODE_ADDR
+20 LIGHT_CLEAR_CODE_TIMER
+
+160     LIGHT_KSCAN_ENABLE_TIMEOUT
+13       LIGHT_KSCAN_INTERVAL
+15       LIGHT_CLEAR_CODE_ENABLE_TIMEOUT
+
+8 LIGHT_WIRELESS_SWITCH_GPIO_KEY1
+4 LIGHT_WIRELESS_SWITCH_GPIO_KEY12
+5 LIGHT_WIRELESS_SWITCH_GPIO_KEY3
+0x28 LIGHT_WIRELESS_SWITCH_CMD_PAIRING
+
+0x65 OPCODE_BATH_FAN
+0x61 OPCODE_BATH_TIMING_CLOSE
+0x66 OPCODE_BATH_WARM
+0x67 OPCODE_BATH_VENTILATION
+0x68 OPCODE_BATH_BATH
+0x69 OPCODE_DRY
+0x6f OPCODE_BATH_SWITCH_OFF
+0xa0 OPCODE_SPEED
+0xb0 OPCODE_SWING
+
+2 BATH_KEY_WARM
+8 BATH_KEY_ON_AND_OFF
+3 BATH_KEY_VENTILATION
+1 BATH_KEY_SPEED_DOWN
+7 BATH_KEY_FAN
+9 BATH_KEY_SPEED_UP
+12 BATH_KEY_SWING
+10 BATH_KEY_MASTET_OFF
+14 BATH_KEY_TIMING_OFF
+
+160 LIGHT_BLINK_INTERVAL_100ms
+
+0x30 FAN_CMD_SPEED_CHANGE
+0x32 FAN_CMD_SPEED_32
+0x31 FAN_CMD_SPEED_31
+0X34 FAN_CMD_SHAKE_HEAD_ON_OFF
+0x51 FAN_CMD_TIMING_TO_OFF
+0x15 FAN_CMD_DIRECTION
+0x6f FAN_CMD_MASTER_ON_AND_OFF
+0x33 FAN_CMD_MODE
+0x10 FAN_CMD_LAMP_ON
+0x11 FAN_CMD_LAMP_OFF
+0x28 FAN_CMD_PAIRING
+0x16 FAN_CMD_DEFLECTOR
+0xa0 FAN_TURN_ON_FLAG_BYTE_Y
+0x17 FAN_CMD_DIRECTION_ON_AND_OFF
+0x18 FAN_CMD_DEFLECTOR_ON_AND_OFF
+
+39 FTD_PDU_LEN
+
+23 GEM_PDU_LEN
+3 GEM_LONG_KEYPRESS
+
+37 KEY_PDU_LEN
+
+
+(
+0x1a WY_RGB_SWITCH
+0x01 WY_RGB_SWITCH_RGB
+0x02 WY_RGB_SWITCH_RGB_AND_RGB
+0x03 WY_RGB_SWITCH_WY
+0x001a WY_RGB_SWITCH_V2
+0x01 WY_RGB_SWITCH_RGB_RESERVED
+0x02 WY_RGB_SWITCH_RGB_AND_RGB_RESERVED
+0x03 WY_RGB_SWITCH_WY_RESERVED
+)
+
+0x79 FAN_LIGHT_MODE_SWITCH
+0x80 FAN_MEM_SELET_CMD
+
+5 CONTINUOUS_KEY_PRESS_TIRG_CNT_5
+
+5 SHORT_PRESS_TIMEOUT
+
+0xa0 LIGHT_LIGHTEN_RELEASE_ADV_FLAG
+0xa1 LIGHT_DARKEN_RELEASE_ADV_FLAG
+0xa2 LIGHT_TO_W_RELEASE_ADV_FLAG
+0xa3 LIGHT_TO_Y_RELEASE_ADV_FLAG
+0xa4 FAN_SPEED_SLOW_RELEASE_ADV_FLAG
+0xa5 FAN_SPEED_HIGHER_RELEASE_ADV_FLAG
+0xa6 QIH_SPEC_FUNC_COLOR_CTL_RELEASE_ADV_FLAG
+0xa7 BABY_CAR_GO_FTD_ADV_FLAG
+0xa8 BABY_CAR_BACK_FTD_ADV_FLAG
+0xa9 BABY_CAR_LEFT_FTD_ADV_FLAG
+0xb0 BABY_CAR_RIGHT_FTD_ADV_FLAG
+0xb1 LIGHT_COLOR_SWITCH_RELEASE_ADV_FLAG
+
+17 FAN_XQ_21KEY_FAN_AND_LIGHT_OFF 
+16 FAN_XQ_21KEY_LIGHT_ON_AND_OFF
+3  FAN_XQ_21KEY_TURNING_FORWARD
+15 FAN_XQ_21KEY_TURNING_REVERSE
+2 FAN_XQ_21KEY_LIGHT_COLOR_SWITCH
+14 FAN_XQ_21KEY_LIGHT_NIGHT_LIGHT
+9 FAN_XQ_21KEY_LIGHT_TO_W
+8 FAN_XQ_21KEY_LIGHT_LIGHTEN
+7 FAN_XQ_21KEY_LIGHT_PAIRING
+10 FAN_XQ_21KEY_LIGHT_DARKEN
+1 FAN_XQ_21KEY_LIGHT_TO_Y
+4 FAN_XQ_21KEY_TURN_OFF_TIMER_1H
+13 FAN_XQ_21KEY_TURN_OFF_TIMER_2H
+6 FAN_XQ_21KEY_FAN_SPEED1
+22 FAN_XQ_21KEY_FAN_SPEED2
+11 FAN_XQ_21KEY_FAN_SPEED3
+23 FAN_XQ_21KEY_FAN_SPEED4
+19 FAN_XQ_21KEY_FAN_SPEED5
+21 FAN_XQ_21KEY_FAN_SPEED6
+18 FAN_XQ_21KEY_FAN_STOP1
+24 FAN_XQ_21KEY_FAN_STOP2
+)
+
+
+(
+0x807d core_gpio13_conf
+)
+
+(
+11 ENTER_LPM_LEISURE_IO_CONFIG_NUM
+3 ENTER_LPM_LEISURE_IO_CONFIG_START
+)
+
+
+(
+0x80 LIGHT_CMD_SOLAR_ON
+0x80 LIGHT_CMD_SOLAR_OFF
+0x82 LIGHT_CMD_SOLAR_LIGHTNESS_LIGHTEN
+0x82 LIGHT_CMD_SOLAR_LIGHTNESS_DARKEN
+0x81 LIGHT_CMD_SOLAR_MODE_RADAR
+0x81 LIGHT_CMD_SOLAR_MODE_LIGHTNESS
+0x81 LIGHT_CMD_SOLAR_MODE_RAIN
+0x83 LIGHT_CMD_SOLAR_TIMMING_OFF
+0x84 LIGHT_CMD_SOLAR_AMBIENT
+)
+(
+0x05 GEM_LIGHT_ON_CODE
+0x09 GEM_LIGHT_OFF_CODE	
+0x0C GEM_LIGHT_ON_GROUP1_CODE
+0x0E GEM_LIGHT_OFF_GROUP1_CODE
+0x01 GEM_LIGHT_ON_GROUP2_CODE
+0x04 GEM_LIGHT_OFF_GROUP2_CODE
+0x0D GEM_LIGHT_ON_GROUP3_CODE
+0x0F GEM_LIGHT_OFF_GROUP3_CODE
+0x08 GEM_LIGHT_ON_GROUP4_CODE
+0x06 GEM_LIGHT_OFF_GROUP4_CODE
+0x13 GEM_LIGHT_AIDED_LIGHT_CODE
+0x10 GEM_LIGHT_NIGHT_LIGHT_CODE
+0x11 GEM_LIGHT_ENERGY_SAVE_LIGHT_CODE
+0x12 GEM_LIGHT_TIMING_OFF_CODE
+0x14 GEM_LIGHT_RGB_AUTO_CODE
+0x15 GEM_LIGHT_RGB_STEP_CODE
+0x02 GEM_LIGHT_LIGHTEN_CODE
+0x03 GEM_LIGHT_DARKEN_CODE
+0x0B GEM_LIGHT_TO_W_CODE
+0x0A GEM_LIGHT_TO_Y_CODE
+0x07 GEM_LIGHT_COLOR_SWITCH_CODE
+0x16 GEM_COLOR_SWITCH_W
+0x17 GEM_COLOR_SWITCH_Y
+)
+(
+//科云
+0x6f LIGHT_ON_CODE1
+0x60 LIGHT_OFF_CODE1
+0x6f LIGHT_PAIRING_CODE1
+0x6f LIGHT_CLEAR_CODE_CODE1
+0x66 LIGHT_LIGHTEN_CODE1
+0x65 LIGHT_DARKEN_CODE1
+0x6a LIGHT_TO_W_CODE1
+0x69 LIGHT_TO_Y_CODE1
+0x68 LIGHT_TIMING_CODE1
+0x6e LIGHT_AUX_LAMP_ON_AND_OFF_CODE1
+0x6d LIGHT_COLOR_SWITCH_CODE1
+0xa1 LIGHT_NIGHT_LIGHT_CODE1
+0xa3 LIGHT_50PER_CODE1
+0xa3 LIGHT_100PER_CODE1
+
+0xd1 LIGHT_ON_CODE2
+0xd1 LIGHT_OFF_CODE2
+0x55 LIGHT_PAIRING_CODE2
+0xaa LIGHT_CLEAR_CODE_CODE2
+0xd1 LIGHT_LIGHTEN_CODE2
+0xd1 LIGHT_DARKEN_CODE2
+0xd1 LIGHT_TO_W_CODE2
+0xd1 LIGHT_TO_Y_CODE2
+0x46 LIGHT_TIMING_CODE2
+0xf0 LIGHT_AUX_LAMP_ON_AND_OFF_CODE2
+0x01 LIGHT_COLOR_SWITCH_WY_CODE2
+0x02 LIGHT_COLOR_SWITCH_W_CODE2
+0x03 LIGHT_COLOR_SWITCH_Y_CODE2
+0xd1 LIGHT_NIGHT_LIGHT_CODE2
+0x0 LIGHT_50PER_CODE2
+0x1111 LIGHT_100PER_CODE2
+
+
+
+0x6f LIGHT_JYM_CMD_PAIRING
+0x6f LIGHT_JYM_CMD_CLEAR
+0x66 LIGHT_JYM_CMD_LIGHTEN
+0x65 LIGHT_JYM_CMD_DARKEN
+0x69 LIGHT_JYM_CMD_TO_Y
+0x6a LIGHT_JYM_CMD_TO_W
+0x68 LIGHT_JYM_CMD_TIMING_OFF
+0x6e LIGHT_JYM_CMD_AUX_LAMP
+0x6d LIGHT_JYM_CMD_WHITE_LAMP
+0x6d LIGHT_JYM_CMD_WY_LAMP
+0x6d LIGHT_JYM_CMD_YELLOW_LAMP
+0x6f LIGHT_JYM_CMD_ON
+0x60 LIGHT_JYM_CMD_OFF
+0x62 LIGHT_JYM_CMD_MODEL
+0x6e LIGHT_JYM_CMD_NIGHT_LIGHT
+0x6c LIGHT_JYM_CMD_RGB
+
+0x55 LIGHT_JYM_DATA_PAIRING
+0xaa LIGHT_JYM_DATA_CLEAR
+0x00 LIGHT_JYM_DATA_LIGHTEN
+0x00 LIGHT_JYM_DATA_DARKEN
+0x00 LIGHT_JYM_DATA_TO_Y
+0x00 LIGHT_JYM_DATA_TO_W
+0x46 LIGHT_JYM_DATA_TIMING_OFF
+0xf0 LIGHT_JYM_DATA_AUX_LAMP
+0x02 LIGHT_JYM_DATA_WHITE_LAMP
+0x01 LIGHT_JYM_DATA_WY_LAMP
+0x03 LIGHT_JYM_DATA_YELLOW_LAMP
+0x00 LIGHT_JYM_DATA_ON
+0x00 LIGHT_JYM_DATA_OFF
+0x00 LIGHT_JYM_DATA_MODEL_APPLY
+0x80 LIGHT_JYM_DATA_MODEL_STORE
+0x00 LIGHT_JYM_DATA_NIGHT_LIGHT
+0x00 LIGHT_JYM_DATA_RGB
+)
+
+
Index: format/app_light_format/rlmp_mmap.format
===================================================================
--- /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/format/app_light_format/rlmp_mmap.format	(nonexistent)
+++ /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/format/app_light_format/rlmp_mmap.format	(working copy)
@@ -0,0 +1,275 @@
+
+
+
+xmemalloc ftd(
+64 mem_ble_v2_xbox
+39 mem_ble_v2_pdu
+
+1 mem_ble_v2_customer_id
+1 mem_ble_v2_packet_num
+1 mem_ble_v2_subtype
+1 mem_ble_v2_maintype
+4 mem_ble_v2_addr
+1 mem_ble_v2_group_index
+2 mem_ble_v2_cmd	
+4 mem_ble_v2_para
+
+1 mem_ble_customer_id
+1 mem_ble_count
+1 mem_ble_sub_type
+1 mem_ble_main_type
+4 mem_ble_addr
+1 mem_ble_group
+2 mem_ble_cmd
+4 mem_ble_para
+3 mem_ble_rfu
+1 mem_ble_relay
+1 mem_ble_is_app
+
+/***********************BLE Protocol V2****************************/
+2 mem_adv_CRC_False_initValue
+2 mem_CRC16_polynomial
+2 mem_ble_pack_cb
+0 mem_ble_v2_tx_end_dummy
+
+1 mem_ftd_device_option
+
+
+//gem
+1 mem_light_gm_tx_addr_type
+1 mem_light_gm_tx_len
+13 mem_light_gm_tx_header
+0 mem_light_gm_tx
+1 mem_light_gm_tx_press_time
+1 mem_light_gm_tx_remoter_ID
+2 mem_light_gm_tx_remoter_addr
+1 mem_light_gm_tx_group_num
+1 mem_light_gm_tx_code
+1 mem_light_gm_tx_count
+1 mem_light_gm_tx_sum
+
+2 mem_gem_cnt_inces_timeout
+2 mem_gem_long_keypress_timeout
+1 mem_gem_long_cnt_enable
+
+//科云
+0 mem_light_KY_tx
+23 mem_light_KY_tx_header
+1 mem_light_KY_tx_len
+1 mem_light_KY_tx_code1
+4 mem_light_KY_tx_remoter_ID
+1 mem_light_KY_tx_group_num
+1 mem_light_KY_tx_code2
+2 mem_light_KY_tx_sum
+2 mem_light_KY_tx_CRC
+2 mem_light_KY_tx_count
+1 mem_light_group_num
+
+/**************************JUYUAN MICRO***************************/
+12 mem_light_JYM_whitening_header
+0 mem_light_JYM_tx
+8 mem_light_JYM_tx_header
+1 mem_light_JYM_tx_len
+1 mem_light_JYM_tx_cmd
+4 mem_light_JYM_tx_ID
+1 mem_light_JYM_tx_group
+1 mem_light_JYM_tx_data
+1 mem_light_JYM_tx_count
+2 mem_light_JYM_tx_sum
+2 mem_light_JYM_tx_CRC
+37 mem_light_JYM_tx_temp
+1 mem_adv_cnts
+
+)
+
+
+
+xmemalloc ftd_rlmp(
+/******************kscan***********************/
+8 mem_kscan_record_keypress
+1 mem_kscan_row_nums
+1 mem_kscan_col_nums
+8 mem_kscan_row_gpio_pin
+8 mem_kscan_col_gpio_pin
+1 mem_kscan_row_scanned
+1 mem_kscan_col_scanned
+1 mem_keypress_analysis_flag
+2 mem_kscan_avoid_shake_delay_time
+1 mem_scan_col
+1 mem_kscan_enable
+2 mem_long_press_adv_timeout
+2 mem_kscan_analysis_interval_timeout
+/******************kscan***********************/
+
+2 mem_FTD_adv_raw_device_add_temp
+1 mem_set_clear_code_timeout_enable
+1 mem_light_lpm_enable
+1 mem_light_manufacture_id
+1 mem_light_indicator_led
+1 mem_groups_num
+1 mem_light_last_key
+1 mem_light_different_key_press_flag
+
+0 mem_FTD_adv_raw
+1 mem_FTD_adv_raw_cmd
+2 mem_FTD_adv_raw_device_add
+3 mem_FTD_adv_raw_data
+1 mem_FTD_adv_raw_packet_num
+1 mem_FTD_adv_raw_reserved
+8 mem_FTD_adv_raw_encryption
+
+2 mem_long_press_timeout
+1 mem_light_num_of_long_press
+1 mem_light_color_switch_cnt
+1 mem_light_brightness_switch_flag
+1 mem_light_rgb_hand_actuated_flag
+1 mem_rgb_switch
+1 mem_light_rgb_auto_flag
+1 mem_rgb_on_and_off
+1 mem_light_group1_on_and_off_flag
+1 mem_light_group2_on_and_off_flag
+1 mem_light_group3_on_and_off_flag
+1 mem_light_group4_on_and_off_flag
+1 mem_light_current_key
+2 mem_ble_light_adv_timeout
+1 mem_light_on_off_alternant
+1 mem_fan_speed
+1 mem_fan_direction_alternant
+1 mem_fan_on_off_flag
+128 mem_ble_xboxes
+
+/***********************FTD raw data****************************/
+0 mem_adv_packet
+23 mem_adv_packet_header
+14 mem_adv_packet_payload
+2 mem_adv_packet_tailer
+/***********************FTD raw data****************************/
+
+/***********************whitening****************************/
+39 mem_light_whitening_buffer
+2 mem_light_whitening_k
+1 mem_light_for_loop_cnt1
+1 mem_light_for_loop_cnt2
+1 mem_light_recvd_len
+1 mem_light_whitening_i
+4 mem_light_whitening_i1
+4 mem_light_whitening_i2
+4 mem_light_whitening_i3
+4 mem_light_whitening_i4
+1 mem_light_whitening_n
+
+4 mem_light_para1
+5 mem_light_para2
+8 mem_light_for_loop_lshift
+8 mem_light_integer_1_lshift_temp
+/***********************whitening****************************/
+
+2 mem_light_lpm_enable_timeout
+1 mem_indicator_turn_on_enable
+2 mem_indicator_led_turn_on_timeout
+1 mem_light_on_and_off_flag
+1 mem_fan_deflector_flag
+1 mem_light_aid_swtich_flag
+1 mem_light_manufacture_id2
+1 mem_light_manufacture_id2_v2
+
+39 mem_light_whitening_buffer_2
+39 mem_ble_v2_pdu_2
+1 mem_light_rgb_on_and_off_flag
+1 mem_rgb_loop_on_and_off
+1 mem_r_g_b_switch_flag
+1 mem_adv_manufacturer_switch_flag
+1 mem_adv_manufacturer_switch_flag1
+1 mem_adv_manufacturer_switch_flag2
+1 mem_adv_manufacturer_switch_flag3
+1 mem_fan_on_and_off_flag
+
+1 mem_light_release_adv_flag
+
+1 mem_light_blink_state_flag
+1 mem_light_indicator_led_blink_enable
+2 mem_light_continuous_kps_cnt_reset_timeout
+1 mem_light_key1_continuous_kps_cnt  
+1 mem_light_key2_continuous_kps_cnt 
+1 mem_light_key3_continuous_kps_cnt 
+1 mem_light_key4_continuous_kps_cnt 
+1 mem_light_key5_continuous_kps_cnt 
+1 mem_light_key6_continuous_kps_cnt 
+1 mem_light_key7_continuous_kps_cnt  
+1 mem_light_key8_continuous_kps_cnt 
+1 mem_light_key9_continuous_kps_cnt 
+1 mem_light_key10_continuous_kps_cnt  
+1 mem_light_key11_continuous_kps_cnt 
+1 mem_light_key12_continuous_kps_cnt 
+1 mem_light_key13_continuous_kps_cnt  
+1 mem_light_key14_continuous_kps_cnt 
+1 mem_light_key15_continuous_kps_cnt 
+1 mem_light_key16_continuous_kps_cnt 
+2 mem_16groups_on_off
+1 mem_group_flag
+
+1 mem_channel_enable
+1 mem_channel_num
+1 mem_scene_enable
+
+1 mem_special_agreemeet_enable
+
+2 mem_light_short_keypress_timeout
+1 mem_light_color_and_lgtness_long_press_adv_enable
+
+1 mem_airchange_speed
+1 mem_fan_tap_speed
+1 mem_light_airchange_flag
+1 mem_light_warm_wake_flag
+1 mem_light_warm_powerful_flag
+1 mem_light_fan_on_and_off
+1 mem_light_bath_on_off_flag
+
+1 mem_long_press_protect_enble_flag
+1 mem_long_press_protect_cnt
+1 mem_long_press_protect_start_flag
+8 mem_kscan_press_row_gpio
+
+1 mem_light_fan_on_and_off_flag
+4 mem_light_lpm_gpio_config_flag
+1 mem_light_lpm_gpio_config_io_temp
+
+1 mem_light_timing_of_alter_flag
+
+/*ble rx protocol*/
+	0 mem_light_adv_packet
+	1 mem_light_adv_packet_cmd
+	2 mem_light_adv_packet_addr
+	3 mem_light_adv_packet_data
+	1 mem_light_adv_packet_packetnum
+	1 mem_light_adv_packet_reserve
+	6 mem_light_adv_packet_encry
+	2 mem_light_adv_packet_CRC
+/*ble rx protocol*/
+
+2 mem_scene_led_timeout
+1 mem_scene_led_cnt
+1 mem_ble_rx_on_and_off
+1 mem_long_press_scene_timeout
+1 mem_le_adv_scan_channel
+4 mem_le_lap_addr
+4 mem_le_lap_addr_temp
+4 mem_le_lap_v2_addr
+1 mem_light_scene_mode
+1 mem_le_addr_change_flag
+
+2 mem_rmt_keydown_cb
+2 mem_rmt_released_cb
+2 mem_rmt_long_press_cb
+2 mem_rmt_continuous_keydown_cb
+2 mem_rmt_continuous_kps_time
+2 mem_light_adv_time
+2 mem_claer_code_time
+1 mem_ble_v2_customer_id_copy
+
+// 1 mem_scene_combination_flag
+)
+
+
+
+
Index: format/app_mouse.format
===================================================================
--- /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/format/app_mouse.format	(nonexistent)
+++ /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/format/app_mouse.format	(working copy)
@@ -0,0 +1,709 @@
+
+memalloc usb_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_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
+1 mem_mouse_adc_last_low_voltage_flag
+1 mem_mouse_adc_button_press_flag
+1 mem_adc_channel_gpio
+
+1 mem_adc_config_flag_init
+
+2 mem_mouse_discovery_timeout
+2 mem_mouse_24g_pair_timeout_init
+1 mem_mouse_direct_timeout
+1 mem_mouse_24g_reconn_timeout_init
+1 mem_mouse_24g_pair_tx_power
+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_ble_init
+1 mem_rssi_dis_max_ble_init
+1 mem_mouse_enable_flag
+
+0 mem_mouse_param_config
+1 mem_lbutton_gpio
+1 mem_mbutton_gpio
+1 mem_rbutton_gpio
+1 mem_bk_button_gpio
+1 mem_fw_button_gpio
+1 mem_dpi_button_gpio
+1 mem_whee_a_data_gpio
+1 mem_whee_b_data_gpio
+1 mem_mouse_sensor_sclk_gpio
+1 mem_mouse_sensor_sdio_gpio
+1 mem_select_sensor_angle_gpio
+1 mem_sensor_angle_default
+1 mem_sensor_angle_switch
+1 mem_config_sensor_dpi	
+1 mem_whee_ta_data_gpio
+1 mem_whee_tb_data_gpio
+1 mem_matrix_public_gpio
+1 mem_config_select_device_button_gpio
+1 mem_customer_key_gpio
+1 mem_sensor_motion_gpio
+1 mem_device_switch_gpio
+1 mem_mouse_reuse_2ice_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_dpi_another_button_gpio
+1 mem_firebutton_gpio
+1 mem_mouse_1io2led_multi_24g_gpio
+1 mem_mouse_1io2led_multi_bt1_gpio
+1 mem_mouse_1io2led_multi_bt2_gpio
+1 mem_mouse_logo_led_gpio
+0 mem_mouse_param_config_end
+
+1 mem_config_sensor_type
+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_ka8g2_dpi_0
+1 mem_ka8g2_dpi_1
+1 mem_ka8g2_dpi_2
+1 mem_ka8g2_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
+38 mem_sensor_8650_init
+30 mem_sensor_ka8ul_init
+16 mem_sensor_8009_init
+16 mem_sensor_ka8g2_init
+12 mem_sensor_p6520_init
+8 mem_sensor_poweron_init
+8 mem_sensor_ka8g2_poweron_init
+	
+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
+1 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
+1 mem_mouse_direct_timer
+
+//bt
+7 mem_device_addr_temp
+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_device_number
+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_24g_search_dongle_time_init
+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_sensor_shutdown_flag
+1 mem_24g_long_sleep_set_level
+
+2 mem_tx_power_factory_param
+
+//dpi another button
+1 mem_mouse_another_dpi_connect_vin_flag
+1 mem_dpi_another_press_status
+1 mem_dpi_another_button_state
+1 mem_dpi_another_button_down_enable
+1 mem_mouse_key_temp_patch
+
+//firebutton
+1 mem_mouse_firebutton_connect_vin_flag
+1 mem_fire_key_status
+4 mem_fire_key_delay
+1 mem_fire_key_flag
+
+//le name config
+1 mem_le_name_len_temp
+19 mem_le_name_temp
+
+//1io2led multi
+1 mem_mouse_1io2led_led_enable
+1 mem_mouse_multi_led_blink_enable
+1 mem_mouse_bt_led_recon_effect_flag
+1 mem_mouse_multi_led_type
+1 mem_mouse_multi_led_poweron2s_flag_init
+1 mem_mouse_multi_led_poweron2s_flag
+1 mem_mouse_multi_led_powon2s_timer_init
+1 mem_mouse_multi_led_powon2s_timer
+1 mem_mouse_multi_led_blink_timer_init
+1 mem_mouse_multi_led_blink_timer
+1 mem_mouse_multi_led_state
+
+//log led
+2 mem_mouse_logo_led_on_time_init
+
+//le conn param
+1 mem_mouse_le_send_conn_param_update
+1 mem_mouse_le_send_conn_param_update_timer
+
+
+//lost-packet compensation
+3 mem_mouse_24g_short_sleep_set_4ms
+3 mem_mouse_24g_long_sleep_set_4ms
+1 mem_mouse_24g_fast_hop_count_4ms
+3 mem_mouse_24g_short_sleep_set_8ms
+3 mem_mouse_24g_long_sleep_set_8ms
+1 mem_mouse_24g_fast_hop_count_8ms
+
+4 mem_mouse_24g_tsniff
+4 mem_mouse_24g_tsniff_4ms
+4 mem_mouse_24g_tsniff_8ms
+3 mem_mouse_24g_short_sleep_set_init
+
+1 mem_mouse_24g_tx_count
+6 mem_mouse_24g_tx_time_last
+4 mem_mouse_24g_tx_time_last_delt
+5 mem_mouse_24g_tx_time_sum
+1 mem_mouse_24g_tx_time_sum_count
+1 mem_mouse_24g_tx_time_offset
+1 mem_mouse_24g_sleep_miss
+4 mem_mouse_24g_sleep_time_temp
+4 mem_mouse_24g_sleep_miss_temp
+
+1 mem_mouse_sleep_deal_type
+
+1 mem_mouse_24g_long_sleep_flag
+
+
+1 mem_mouse_dpi_last
+1 mem_mouse_dpi_temp
+1 mem_mouse_otp_dpi_value
+
+4 mem_mouse_24g_addr_last
+4 mem_mouse_24g_addr_temp
+
+1 mem_mouse_ice_sdio_for_sensor_angle
+1 mem_mouse_logo_enable_gpio0
+
+)
+
+
+(
+//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
+0x17 MOUSE_ENABLE_OTP
+
+//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
+0x3a MOUSE_ENABLE_24G_AUTO_PAIR_NERVER_BEEN_PAIRED
+0x3b MOUSE_ENABLE_LE_BATTERY_SERVICE_CANCEL
+0x3c MOUSE_ENABLE_WHEEL_WAKE_UP_CANCEL
+0x3d MOUSE_ENABLE_24G_2M_PHY
+0x3e MOUSE_ENABLE_DOUBLE_DPI_KEY
+0x3f MOUSE_ENABLE_24G_NEW_REVISION
+
+//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
+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
+0x58 PKA8G2_ID1
+0x59 PKA8G2_ID2
+
+
+//Sensor type
+0X00 P3205
+0X01 P3065
+0X02 P3204
+0X03 P3212
+0X04 P3065_XY
+0x05 MX8650
+0x06 P8009
+0x07 P6520
+0X08 KA8
+0X09 KA8_UL
+0X0a KA8_HD
+0X0b KA8G2
+
+
+//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
+(
+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
+0x00 MOUSE_DPI_ANOTHER_KEY
+)
+
+
+(
+0 G24_DISCONN_STATE
+1 G24_CONN_STATE
+
+8 G24_CH_NUMBER
+16 G24_CH_POLL_COUNT
+)
+
+(
+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
+)
+
+(
+0 MULTI_LED_ON
+1 MULTI_LED_BLINK
+)
+
+
+//otp address offset
+(
+0x6e9 OTP_OFFSET_DPI
+0x718 OTP_OFFSET_DPI_END
+
+0x719 OTP_OFFSET_24G_ADDR		//50times
+0x7e0 OTP_OFFSET_24G_ADDR_END		
+
+0x7ee OTP_OFFSET_APP_INITLAG
+)
+
+
Index: format/app_shutter.format
===================================================================
--- /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/format/app_shutter.format	(nonexistent)
+++ /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/format/app_shutter.format	(working copy)
@@ -0,0 +1,250 @@
+
+
+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
+2 mem_classic_shutter_random_mac_offset_addr
+////////////////////////////////////
+
+////////////////////////////////////
+//ble shutter config
+1 mem_ble_shutter_enable_notify
+2 mem_ble_shutter_reconn_adv_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_shutter_key_conf0_temp
+1 mem_shutter_led_struct_app_led_gpio_temp
+1 mem_shutter_hard_soft_switch_case_temp
+1 mem_shutter_soft_switch_button_gpio_temp
+
+1 mem_shutter_soft_switch_first_power_on
+1 mem_shutter_dy_conf
+380 mem_shutter_le_uuid_sup
+40 mem_shutter_key_value_list
+
+)
+
+
+
+
+(
+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
+313		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
+
+)
+
+(
+0 SHUTTER_TYPE
+1 SHUTTER_DY_TYPE
+)
Index: format/app_shutter_dy.format
===================================================================
--- /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/format/app_shutter_dy.format	(nonexistent)
+++ /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/format/app_shutter_dy.format	(working copy)
@@ -0,0 +1,238 @@
+
+
+xmemalloc shutter_dy(
+
+////////////////////////////////////
+//shutter common config
+
+//timers
+1 mem_shutter_1s_timer
+2 mem_shutter_timer_625us
+
+//patch variable
+11 mem_rf_init_data_new
+2 mem_key_value_xmem
+250 mem_shutter_le_hid_map
+//380 mem_shutter_le_uuid_sup
+2 mem_shutter_le_map_len_android
+2 mem_shutter_le_map_len_ios
+16 mem_le_search_service_uuid
+1 mem_iphone_flag
+1 mem_send_data_delay
+4 mem_key_send_clk
+10 mem_shutter_key_state0
+10 mem_shutter_key_state1
+10 mem_shutter_key_state2
+10 mem_shutter_key_state3
+10 mem_shutter_key_state4
+10 mem_shutter_key_state5
+10 mem_shutter_key_state6
+10 mem_key0_release_new	
+10 mem_key1_release_new
+10 mem_key2_release_new
+10 mem_key3_release_new
+10 mem_key4_release_new
+10 mem_key5_release_new
+10 mem_key6_release_new
+3 mem_key0_long_press
+3 mem_key1_long_press
+3 mem_key2_long_press
+3 mem_key3_long_press
+3 mem_key4_long_press
+3 mem_key5_long_press
+3 mem_key6_long_press
+3 mem_key0_long_release	
+3 mem_key1_long_release
+3 mem_key2_long_release
+3 mem_key3_long_release
+3 mem_key4_long_release
+3 mem_key5_long_release
+3 mem_key6_long_release
+2 mem_combine_key0
+2 mem_combine_key1
+2 mem_combine_key2
+2 mem_combine_key3
+2 mem_combine_key4
+2 mem_combine_key5
+2 mem_combine_key_state0
+10 mem_combine_key0_press
+10 mem_combine_key1_press
+10 mem_combine_key2_press
+10 mem_combine_key3_press
+10 mem_combine_key4_press
+10 mem_combine_key5_press
+10 mem_combine_key_release
+4 mem_shutter_move_data
+10 mem_key0_press_i
+10 mem_key1_press_i
+10 mem_key2_press_i
+10 mem_key3_press_i
+10 mem_key4_press_i
+10 mem_key5_press_i
+10 mem_key0_release_new_i
+10 mem_key1_release_new_i
+10 mem_key2_release_new_i
+10 mem_key3_release_new_i
+10 mem_key4_release_new_i
+10 mem_key5_release_new_i
+10 mem_key6_release_new_i
+3 mem_key0_long_release_i
+3 mem_key1_long_release_i
+3 mem_key2_long_release_i
+3 mem_key3_long_release_i
+3 mem_key4_long_release_i
+3 mem_key5_long_release_i
+3 mem_key6_long_release_i
+10 mem_key3_release_new_t
+10 mem_key3_release_new_i_t
+1 mem_key3_press_count
+1 mem_shutter_like_timeout
+1 mem_shutter_key_pressed
+1 mem_shutter_combine_key_release
+700 mem_shutter_mousekey_value_list
+1 mem_shutter_back_count
+1 mem_shutter_le_conned
+0 mem_move_config
+1 mem_shutter_iphone_beyond_x_count
+1 mem_shutter_iphone_beyond_y_count
+2 mem_shutter_move_data_x
+2 mem_shutter_move_data_y
+1 mem_last_shutter_le_iphone_flag
+0 mem_move_config_end
+1 mem_shutter_back_count_cache
+1 mem_shutter_iphone_beyond_x_cache
+1 mem_shutter_iphone_beyond_y_cache
+8 mem_shutter_iphone_move_mid
+1 mem_shutter_long_key_released_flag
+1 mem_shutter_move_mid_timer
+1 mem_shutter_pairing_success
+2 mem_combine_key_release_value
+1 mem_last_press_key_value
+1 mem_shutter_first_move
+1 mem_move_mode_set
+1 mem_move_mode_key_index
+1 mem_move_mode_trigger_enable
+5 mem_shutter_android_move_mid
+8 mem_shutter_iphone_up_mid
+8 mem_shutter_iphone_like_mid
+1 mem_shutter_key_num_conf
+7 mem_shutter_dy_key_conf
+11 mem_le_dy_adv_data
+12 mem_le_dy_scan_data
+8 mem_ble_shutter_dy_interval_min_new
+8 mem_shutter_ble_discovery_time_conf
+2 mem_queue_dy_each_size
+10 mem_dy_key0_press
+10 mem_dy_key1_press
+10 mem_dy_key2_press
+10 mem_dy_key3_press
+10 mem_dy_key4_press
+10 mem_dy_key5_press
+10 mem_dy_key6_press
+7 mem_shutter_led_on_light_dark_led_conf
+7 mem_shutter_led_off_light_dark_led_conf
+4 mem_shutter_reconn_blink_on_time_conf
+4 mem_shutter_discovery_blink_on_time_conf
+2 mem_shutter_efuse_start_offset
+2 mem_shutter_efuse_end_offset
+
+0 mem_initial_move_conf
+2 mem_android_initial_move_x
+2 mem_android_initial_move_y
+2 mem_iphone_initial_move_x
+2 mem_iphone_initial_move_y
+//淇敼澧炲姞淇濆瓨鍙傛暟
+0 mem_otp_move_config
+//1 mem_shutter_iphone_beyond_x_count
+//1 mem_shutter_iphone_beyond_y_count
+2 mem_otp_shutter_move_data_x
+2 mem_otp_shutter_move_data_y
+1 mem_otp_last_shutter_le_iphone_flag
+0 mem_otp_move_config_end
+2 mem_otp_write_offset_addr
+2 mem_otp_read_offset_addr
+2 mem_otp_read_ios_android_addr
+2 mem_shutter_temp_count
+1 mem_shutter_first_read_flag
+1 mem_shutter_valid_data_flag
+0 mem_shutter_end
+)
+
+
+(
+10 MAX_QUEUE_NUM_COMBINEKEY
+10 MAX_QUEUE_NUM_RELEASE
+3 MAX_QUEUE_NUM_LONG_RELEASE
+10 MAX_QUEUE_NEW_PRESS
+
+10 EVERY_PAYLOAD_LEN
+)
+
+
+(
+0x24	GATT_KEYBOARD_WRITE_HANDLE_NEW
+)
+
+
+///////////////////////////////////////////////////////////////////////////////////////
+
+(//Data Rom Buffer Addr
+640		BT_DY_KEY_VALUE_LIST_SIZE
+)
+
+//otp address offset
+(
+0x05   SHUTTER_PARA_TOTAL_NUM
+//0x7b0  SHUTTER_EFUSE_START_OFFECT	//璧峰鍦板潃
+//0x680  SHUTTER_EFUSE_END_OFFECT	       //缁撴潫鍦板潃
+)
+
+
+(
+//uart config
+115200 UART_BAUD
+)
+
+(
+10 SHUTTER_KEY_CONF_SATE_BYTES
+0 KEY_STATE_PRESS_CLK_OFFSET
+4 KEY_STATE_PRESS_COUNT_OFFSET
+5 KEY_STATE_RELEASE_CLK_OFFSET
+9 KEY_STATE_LONGPRESS_OFFSET
+4 KEY_STATE_PRESS_CLK_LENGTH
+1 KEY_STATE_PRESS_COUNT_LENGTH
+4 KEY_STATE_RELEASE_CLK_LENGTH
+1 KEY_STATE_LONGPRESS_LENGTH
+)
+
+(
+0  SHUTTER_RIGHT_KEY_NUM
+1  SHUTTER_LIKE_KEY_NUM
+2  SHUTTER_DOWN_KEY_NUM
+3  SHUTTER_PHOTO_KEY_NUM
+4  SHUTTER_UP_KEY_NUM
+5  SHUTTER_LEFT_KEY_NUM
+6  SHUTTER_MOVE_KEY_NUM
+)
+
+(
+//0xaa ANDROID_INITIAL_MOVE_X //170
+//0x78 ANDROID_INITIAL_MOVE_Y //120
+//0x69 IPHONE_INITIAL_MOVE_X
+//0x38 IPHONE_INITIAL_MOVE_Y
+0X0a ANDROID_EVERY_MOVE_SIZE
+0x07 IPHONE_EVERY_MOVE_SIZE
+0x62 IPHONE_ONCE_MAX_MOVE_VALUE
+)
+
+(
+0x00 MOVE_COMBINE_KEY
+0x01 MOVE_SINGLE_KEY
+)
+
+(
+//6key or 7key conf
+6 SHUTTER_SIX_KEY
+7 SHUTTER_SEVEN_KEY
+)
+
Index: format/ble_protocol_stack/le.format
===================================================================
--- /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/format/ble_protocol_stack/le.format	(nonexistent)
+++ /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/format/ble_protocol_stack/le.format	(working copy)
@@ -0,0 +1,441 @@
+
+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
+
+/* ========= 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(
+1 mem_version
+2 mem_company_id
+2 mem_sub_version
+
+2 mem_le_dsniff
+2 mem_le_conn_interval
+1 mem_le_tx_ifs_defference
+1 mem_le_tx2m_delay
+
+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_le_l2cap_parse_cb
+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
===================================================================
--- /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/format/ble_protocol_stack/le_advertising.format	(nonexistent)
+++ /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/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
===================================================================
--- /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/format/ble_protocol_stack/le_l2cap_att.format	(nonexistent)
+++ /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/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_signalling.format
===================================================================
--- /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/format/ble_protocol_stack/le_l2cap_signalling.format	(nonexistent)
+++ /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/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
===================================================================
--- /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/format/ble_protocol_stack/le_l2cap_smp.format	(nonexistent)
+++ /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/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
===================================================================
--- /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/format/ble_protocol_stack/le_ll.format	(nonexistent)
+++ /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/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
===================================================================
--- /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/format/bt.format	(nonexistent)
+++ /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/format/bt.format	(working copy)
@@ -0,0 +1,691 @@
+
+	width = 32
+	const length = 12000
+
+	/* ========= memory ============== */
+memalloc(
+ 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_current_context
+1 mem_le_ch_mapped
+1 mem_last_freq
+1 mem_rssi
+2 mem_context_ptr
+2 mem_rx_window
+
+
+/* lpo related */
+1 mem_lpm_adjust
+6 mem_sync_clke
+1 mem_lpm_current_mult
+4 mem_gpio_wakeup_low
+4 mem_gpio_wakeup_high
+
+
+4 mem_clkn_bt
+4 mem_clke_bt
+4 mem_dpll_clkn
+
+2 mem_slot_offset
+
+
+1 mem_select_list_item
+0 mem_temp_reconn_record
+1 mem_record_bt_mode
+2 mem_list_item_ptr
+
+1 mem_rssi_hex
+
+
+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 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  */
+83 mem_context
+1 mem_current_amaddr
+1 mem_lpm_mode
+1 mem_device_option
+4 mem_last_clkn
+
+	/* parameters */
+1 mem_fcomp_div
+2 mem_rx_window_sniff
+2 mem_rf_init_ptr
+
+
+1 mem_rf_rccal
+1 mem_handle_num
+
+
+	/* 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_sniff_unint_lost
+4 mem_sleep_counter   
+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] */
+0 mem_lpm_config				
+1 mem_lpm_xtal_ib
+1 mem_lpm_ctrim
+1 mem_lpm_padding
+
+1 mem_lpm_xtalcnt
+1 mem_lpm_buckcnt
+1 mem_lpm_ldocnt
+1 mem_lpm_isogate
+1 mem_lpm_isogate_final
+
+0 mem_lpm_ctrl3
+1 mem_lpm_ctrl3_app_vsel
+1 mem_lpm_ctrl3_aon_vsel
+1 mem_lpm_ctrl3_core_byp
+1 mem_lpm_ctrl3_core_vsel
+
+13 mem_saved_gpio	 
+3 mem_saved_gsel
+8 mem_saved_mark
+1 mem_saved_spidctrl
+2 mem_patch_ptr
+2 mem_patch_len
+
+32 mem_timers
+
+
+/* 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_tx_power
+1 mem_modem_rssi
+1 mem_gain_fix
+3 mem_gain_table
+1 mem_gain_second_agc_en
+1 mem_system_clk
+
+1 mem_rf_init_data
+1 mem_xtal_freq
+)
+
+(//mem_system_clk
+12 SYSTEM_CLK_12M
+24 SYSTEM_CLK_24M
+)
+
+(//bluetooth tx power
+0x00 TX_POWER_0DB
+0x03 TX_POWER_3DB
+0x05 TX_POWER_5DB
+0x06 TX_POWER_6DB
+0x07 TX_POWER_7DB
+0x0a TX_POWER_10DB
+
+0x83 TX_POWER_F3DB
+0x85 TX_POWER_F5DB
+0x94 TX_POWER_F20DB
+0x9e TX_POWER_F30DB
+0xaa TX_POWER_FACTORY
+)
+
+
+	/* 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 */
+	
+	/* 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
+	
+83 context_size
+1 context_num
+)
+
+(
+0 lpm_flag_wake
+1 lpm_flag_loadcode
+)
+
+/* ========= parameters ============== */
+(
+0x0a00 param_snooze_setup_orig
+0x5353 param_snooze_ahead_orig
+
+/* 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
+
+-13 param_lpm_fix
+7 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
+
+
+0x000a04 param_lmp_version
+0x12e9 param_lmp_subversion
+0x0012 param_tisw
+0x0012 param_tpsw
+0x1000 param_tisi
+0x0800 param_tpsi
+39 param_fcomp_div
+2 param_fcomp_mul
+
+)
+
+
+/* ========== 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 */
+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 ============= */
+(
+5  mark_loopback
+9  mark_context
+13 mark_lpm_mult_enable
+14 mark_usb_first_resp
+15 mark_old_packet
+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
+46 mark_ble_lr_s8
+47 mark_ble_lr
+48 mark_ble_crc_fail
+50 mark_ble_encryption
+51 mark_first_packet
+)
+
+(
+1 reload_type_otp
+2 reload_type_spi
+3 reload_type_iic
+)
+
+
+/* ============== soft timers ============== */
+(
+0 le_adv_interval_timer
+2 le_scan_interval_timer
+9 key_scan_timer
+7 smp_pairing_timer
+11  ui_led_blink  
+
+8 G24_TIMER_NODATA
+13 G24_TIMER_MS_BLANK
+12 G24_TIMER_KB_MUL_BLANK
+14 G24_TIMER_KB_BLANK
+
+1 USB_TIMER_NAK
+15 USB_TIMER_WAKEUP
+)
+
+(
+
+27 hci_cmd_le_create_conn
+29 hci_cmd_le_disconn
+30 hci_cmd_le_att_req
+)
+
+
+
+/* ============== mode ==========*/
+(
+0 mode_le
+1 mode_master
+)
+
+(
+0 state_inconn
+1 state_insniff
+)
+(
+3 op_disconn
+)
+
+
+
+// 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
+(
+2 lpmreg2_sel_option
+4 lpmreg2_sel_mpu_s0
+8 lpmreg2_sel_mpu_s1
+)
+
+(
+8 lpmreg_spi_lock_bit
+0x0a lpmreg_uart_lock_bit
+0x0c lpmreg_iic_lock_bit
+0x0d lpmreg_rom_lock_bit
+0x0e lpmreg_ice_mode_bit
+
+0x01 lpmreg_spi_lock
+0x04 lpmreg_uart_lock
+0x10 lpmreg_iic_lock
+0x20 lpmreg_rom_lock
+0x40 lpmreg_ice_mode
+)
+
+//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
+12 wake_lock_l2cap_tx
+13 wake_lock_l2cap_rx
+14 wake_lock_ipc_c512bt
+15 wake_lock_ipc_bt2c51
+
+)
+
+(//mem_fcomp_div
+0x18 XTAL_24M
+0x08 XTAL_16M
+)
+
+( //verion
+6 BLUETOOTH_CORE_SPECIFICATION_4_0
+7 BLUETOOTH_CORE_SPECIFICATION_4_1
+8 BLUETOOTH_CORE_SPECIFICATION_4_2
+9 BLUETOOTH_CORE_SPECIFICATION_5_0
+10 BLUETOOTH_CORE_SPECIFICATION_5_1
+)
+
+(
+0x050e COMPANY_ID_YICHIP
+)
+
+(
+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
+)
+
+(
+0 bt_disabled
+1 ble_disabled
+2 module_disable
+)
+
Index: format/command.format
===================================================================
--- /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/format/command.format	(nonexistent)
+++ /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/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
===================================================================
--- /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/format/debug.format	(nonexistent)
+++ /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/format/debug.format	(working copy)
@@ -0,0 +1,6 @@
+xmemalloc(
+
+1 mem_rf_debug_rx_gpio
+1 mem_rf_debug_tx_gpio
+)
+
Index: format/fcc_auth.format
===================================================================
--- /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/format/fcc_auth.format	(nonexistent)
+++ /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/format/fcc_auth.format	(working copy)
@@ -0,0 +1,80 @@
+
+
+
+
+/*
+为了不额外占用memalloc的空间，所以与mem_input_store复用
+*/
+amemalloc mem_input_store(
+	0 mem_fcc_param_new	
+	1 mem_fcc_ch_new   
+	1 mem_fcc_mod_new 
+	1 mem_fcc_txrx_new 
+	1 mem_fcc_btble_new  
+	1 mem_fcc_data_new  
+	1 mem_fcc_data_length_new    
+	1 mem_fcc_hop_new    
+	1 mem_fcc_tx_power_new
+
+	0 mem_fcc_param
+	1 mem_fcc_ch                    /*frequence set: default:0x00(2402Mhz); frequence = 2402MHz + mem_fcc_ch*/
+	1 mem_fcc_mod                 /*data rate:default:0x01(1Mbps) */
+	1 mem_fcc_txrx                  /*tx rx mode select:tx: 01; rx:02*/
+	1 mem_fcc_btble                /*BT and BLE select: BT3.0:01; BLE:02*/
+	1 mem_fcc_data                 /*carrier: 0x22; data: 0*/
+	1 mem_fcc_data_length     /*DH1:0x19; DH3:0x78; DH5:0xf0*/
+	1 mem_fcc_hop                  /*fixed freq:0x02; hop freq:0x01*/
+	1 mem_fcc_tx_power         /*同mem_tx_power*/
+
+	2 mem_fcc_config_cb
+
+)
+
+
+(
+0x0b00 mem_pn9  
+1022 mem_pn9_size
+)
+
+(
+8 FCC_PARA_LEN
+)
+
+//data rate
+(
+0x01 FCC_DATA_RATE_1Mbps
+)
+//tx rx mode select
+(
+0x01 FCC_TX
+0x02 FCC_RX
+)
+//BT or BLE
+(
+0x02 FCC_BLE_MODE
+0x01 FCC_BT_MODE
+)
+
+//carrier or data
+(
+0x22 FCC_CARRIER
+0 FCC_DATA
+)
+
+//data length
+(
+0x19 FCC_LEN_DH1
+0x78 FCC_LEN_DH3
+0xf0 FCC_LEN_DH5
+)
+
+//fixed or hop frequence
+(
+0x02 FCC_FIXED_FREQ
+0x01 FCC_HOP_FREQ
+)
+(
+0x890d core_tx_test_mode
+)
+
+
Index: format/g24_protocol_stack/24g.format
===================================================================
--- /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/format/g24_protocol_stack/24g.format	(nonexistent)
+++ /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/format/g24_protocol_stack/24g.format	(working copy)
@@ -0,0 +1,80 @@
+
+xmemalloc g24(
+6 mem_24g_lap
+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
+
+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
+
+1 mem_24g_disable_fec1
+1 mem_24g_off_type
+)
+
+
+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
+)
+
+
+(
+0 ERR_NULL
+1 ERR_SYNC_TO
+2 ERR_HEC
+3 ERR_LR_LEN
+4 ERR_TYPE
+5 ERR_LEN_OVER
+6 ERR_CRC
+)
+
+
+
Index: format/g24_protocol_stack/24g_pair.format
===================================================================
--- /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/format/g24_protocol_stack/24g_pair.format	(nonexistent)
+++ /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/format/g24_protocol_stack/24g_pair.format	(working copy)
@@ -0,0 +1,52 @@
+
+
+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
+2 mem_24g_pair_count
+)
+
+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
+1 mem_24g_device1_bind_disable
+1 mem_24g_device2_bind_disable
+
+)
+
+(//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_receiver.format
===================================================================
--- /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/format/g24_protocol_stack/24g_receiver.format	(nonexistent)
+++ /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/format/g24_protocol_stack/24g_receiver.format	(working copy)
@@ -0,0 +1,50 @@
+
+
+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_pair_mode
+1 mem_24g_ackpayload_enable
+1 mem_24g_hop_packet
+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
+
+1 mem_24g_mode_B_S_switch
+1 mem_24g_mode_B_S_switch_init
+2 mem_24g_mode_B_S_switch_cnt
+1 mem_24g_mode_B_S_switch_exit
+1 mem_24g_B_S_time_slice
+1 mem_24g_B_S_mode_switch_disable
+
+1 mem_24g_bind_device_living
+)
+
+
+(
+0 bit_ack_24g
+)
+
+
Index: format/g24_protocol_stack/24g_reconn.format
===================================================================
--- /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/format/g24_protocol_stack/24g_reconn.format	(nonexistent)
+++ /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/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
===================================================================
--- /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/format/g24_protocol_stack/24g_rssi.format	(nonexistent)
+++ /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/format/g24_protocol_stack/24g_rssi.format	(working copy)
@@ -0,0 +1,40 @@
+
+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
+)
+
+
+
+
Index: format/g24_protocol_stack/24g_transmitter.format
===================================================================
--- /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/format/g24_protocol_stack/24g_transmitter.format	(nonexistent)
+++ /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/format/g24_protocol_stack/24g_transmitter.format	(working copy)
@@ -0,0 +1,67 @@
+
+
+xmemalloc g24_tx(
+2 mem_cb_24g_transmit_data
+2 mem_cb_24g_search_receiver
+2 mem_cb_24g_lpm_before
+2 mem_cb_24g_transmit_short_sleep
+2 mem_cb_24g_transmit_long_sleep
+
+1 mem_24g_conn_sm
+
+1 mem_24g_ensure
+2 mem_24g_txfail_cnt
+1 mem_24g_attempt_fail_flag
+
+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
+4 mem_24g_long_sleep_set1
+
+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 mem_24g_fast_hop_count
+2 mem_24g_retransmit
+)
+
+(
+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
+63500 G24_8MS_INTERVAL_PARAM		//8ms
+12210 G24_4MS_INTERVAL_PARAM
+)
+
+
+
Index: format/g24_protocol_stack/24g_txpower_ctrl.format
===================================================================
--- /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/format/g24_protocol_stack/24g_txpower_ctrl.format	(nonexistent)
+++ /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/format/g24_protocol_stack/24g_txpower_ctrl.format	(working copy)
@@ -0,0 +1,20 @@
+
+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
+
+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
+)
+
+
+(
+50 POWER_CTRL_DECRS_THRESHOLD
+)
+
Index: format/l2cap.format
===================================================================
--- /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/format/l2cap.format	(nonexistent)
+++ /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/format/l2cap.format	(working copy)
@@ -0,0 +1,40 @@
+
+
+
+xmemalloc(
+0 mem_l2cap_xmem_start
+
+//*******************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
+
+2 mem_l2cap_lpm_txbuf_ptr
+0 mem_l2cap_xmem_end
+
+)
+
+
+//mem_l2cap_lpm_txbuf
+(
+256 l2cap_lpm_txbuf_len
+)
+
+(
+4 L2CAP_TX_FIFO_SIZE
+8 L2CAP_TX_BUFF_CNT
+
+)
+
+
Index: format/memblocks.format
===================================================================
--- /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/format/memblocks.format	(nonexistent)
+++ /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/format/memblocks.format	(working copy)
@@ -0,0 +1,35 @@
+//
+//
+//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.
+
+
+
+//l2cap RX buffers
+(
+0xf00 mem_le_l2cap_buf		//0x100
+)
+
+//l2cap TX buffers
+(
+0xd00 mem_ble_tx_buff0
+0x60 mem_ble_l2cap_tx_buff_size
+)
+
+
+//uart buffer
+(
+0xc00 mem_h5rx_buf//0x400
+0xeff mem_h5rx_buf_end
+0xf00 mem_h5tx_buf
+0xfff mem_h5tx_buf_end
+)
+
+
+(
+0x4c00 mem_savelist
+)
+
Index: format/patch.format
===================================================================
--- /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/format/patch.format	(nonexistent)
+++ /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/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/regs.format
===================================================================
--- /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/format/regs.format	(nonexistent)
+++ /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/format/regs.format	(working copy)
@@ -0,0 +1,532 @@
+(
+	0x8000 core_chipid
+	0x8003 core_kick
+	0x8004 core_write_wdt
+	0x8005 core_lpm_wr
+	0x8006 core_misc_ctrl
+	0x8007 core_otp_rdata
+	0x800a core_ccm_ctrl
+	0x800b core_write_wdt2
+	0x8010 core_reset
+	0x8011 core_encrypt
+	0x8012 core_lpm_wr2
+	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_otp_addr
+	0x8046 core_otp_din
+	0x8047 core_otp_ctrl
+	0x8048 core_otpd_addr
+	0x804a core_otpd_len
+	0x804b core_otpd_ctrl
+	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_nec_start_addr
+	0x8063 core_nec_end_addr
+	0x8065 core_nec_rptr
+	0x8067 core_nec_control
+	0x8068 core_ccm_input_playload_addr
+	0x806a core_ccm_output_playload_addr
+	0x806c core_ccm_aad0
+	0x806d core_ccm_aad1
+	0x806e core_ccm_aad2
+	0x806f core_aes_en
+	0x8070 core_gpio_conf
+	0x807e core_keybuf_saddr
+	0x8080 core_spid_ctrl
+	0x8081 core_spid_delay
+	0x8082 core_spid_txlen
+	0x8084 core_spid_txaddr
+	0x8086 core_spid_rxaddr
+	0x8088 core_spid_rxlen
+	0x808a core_iicd_ctrl
+	0x808b core_iicd_scl_low
+	0x808c core_iicd_scl_high
+	0x808d core_iicd_start_setup
+	0x808e core_iicd_start_hold
+	0x808f core_iicd_stop_setup
+	0x8090 core_iicd_data_setup
+	0x8091 core_iicd_data_hold
+	0x8092 core_iicd_txlen
+	0x8094 core_iicd_txaddr
+	0x8096 core_iicd_rxaddr
+	0x8098 core_iicd_rxlen
+	0x809a core_pwm_en
+	0x809b core_pwm_init
+	0x809c core_pwm_pcnt0
+	0x809e core_pwm_ncnt0
+	0x80a0 core_pwm_pcnt1
+	0x80a2 core_pwm_ncnt1
+	0x80a4 core_pwm_pcnt2
+	0x80a6 core_pwm_ncnt2
+	0x80a8 core_pwm_pcnt3
+	0x80aa core_pwm_ncnt3
+	0x80ac core_pwm_pcnt4
+	0x80ae core_pwm_ncnt4
+	0x80b0 core_pwm_pcnt5
+	0x80b2 core_pwm_ncnt5
+	0x80b4 core_pwm_pcnt6
+	0x80b6 core_pwm_ncnt6
+	0x80b8 core_pwm_pcnt7
+	0x80ba core_pwm_ncnt7
+	0x80bc core_ac_ctrl
+	0x80bf core_ac_saddr
+	0x80c1 core_ccm_inptr
+	0x80c3 core_pwm_sync
+	0x80c5 core_pwm_autoload
+	0x80c6 core_sum_ctrl
+	
+	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
+	0x811e core_ucode_flag
+	0x811f core_peripheral_lock
+	0x8120 core_nec_wptr
+	0x8122 core_current_otp_addr
+	0x8124 core_spid_remain
+	0x8126 core_iicd_remain
+	0x8128 core_dma_status
+	0x8129 core_perf_status
+	0x812a core_adc_in
+	0x812c core_nec_rxitem
+	0x8130 core_lpm_ctrl
+	0x8134 core_lpm_xtalcnt
+	0x8135 core_lpm_buckcnt
+	0x8136 core_lpm_ldocnt
+	0x8137 core_lpm_latch
+	0x8138 core_lpm_ctrl2
+	0x813c core_gpio_wakeup_low
+	0x8140 core_gpio_wakeup_high
+	0x8144 core_aes_decode_key_init
+	0x8145 core_clk_counter
+	0x814c core_adc_sum
+	0x814e core_mpu_s0_saddr
+	0x8150 core_mpu_s0_eaddr
+	0x8152 core_mpu_s1_saddr
+	0x8154 core_mpu_s1_eaddr
+	
+	0x8203 core_ice_ctrl
+	0x8204 core_ice_status
+	0x8205 core_ice_break0
+	0x8207 core_ice_break1
+  
+
+	0x8900 modem_en
+	0x8960 core_rf_rx_agc_ctrl
+	0x8961 core_rf_rx_gain_fix
+	0x8968 core_agc_wb_sat_th
+	0x8969 core_agc_nb_sat_th
+	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         
+	0x8aa0 rfen_chgpump
+	0x8aa1 rfen_chgpump_ctrl1
+	0x8aa2 rfen_chgpump_ctrl2
+
+	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
+
+	
+
+
+
+    
+    
+)
+
+(
+1 otpd_start
+)
+
+(
+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
+(
+  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
+  
+  8 gpcfg_uart_txd
+  9 gpcfg_uart_rxd
+  10 gpcfg_uart_rts
+  11 gpcfg_uart_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
+  
+  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
+)
+
+(
+14 GPIO_NUMBER
+)
+
Index: format/security.format
===================================================================
--- /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/format/security.format	(nonexistent)
+++ /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/format/security.format	(working copy)
@@ -0,0 +1,52 @@
+
+memalloc (
+16 mem_input_store
+
+2 mem_ec_loopc
+1 mem_aes_cmac_data_length
+/* ecc calculation */
+32 mem_ax_256 //32 bytes
+32 mem_ay_256 // 32 bytes
+32 mem_az_256 // 32 bytes
+32 mem_bx_256 // 32 bytes
+32 mem_by_256 // 31 bytes
+
+32 mem_bz_256  //32 bytes
+32 mem_cx_256  //32 bytes
+31 mem_cy_256  // 32 bytes
+1 mem_cy5_256 // 1 byte
+32 mem_cz_256 // 32 bytes
+32 mem_k_256 //32 bytes
+32  mem_tmp1_256 //32 bytes
+
+32 mem_tmp5_256
+32  mem_tmp2_256
+0 mem_tmp3_256
+32 mem_t1_256
+0 mem_tmp0_256
+0 mem_dat
+32 mem_t0_256
+32 mem_t2_256
+32 mem_t3_256
+32 mem_t7_256
+
+
+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
===================================================================
--- /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/format/simple_pairing.format	(nonexistent)
+++ /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/format/simple_pairing.format	(working copy)
@@ -0,0 +1,68 @@
+
+ifdef SECURE_CONNECTION
+
+memalloc(
+0 mem_sp_state_start
+1 mem_sp_dhkey_invalid
+4 mem_gkey
+0 mem_sp_state_end
+
+32 mem_le_pubkey_remote_x_256
+32 mem_le_pubkey_remote_y_256
+32 mem_le_dhkey_256
+
+16 mem_sp_confirm_remote
+)
+
+xmemalloc(
+1 mem_sc_only_mode
+1 mem_sp_debug_mode
+1 mem_secure_connections_enable
+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
+
+
+0 mem_sp_state_xmem
+1 mem_authentication_passkey_times
+1 mem_passkey_1bit
+0 mem_sp_state_xmem_end
+)
+endif
+
+/* simple pairing status flag */
+(
+  0x00   SP_FLAG_STANDBY
+  0x02   LE_SP_FLAG_COMMIT_256
+
+)
+
+/* simple pairing calc flag */
+(
+  0x00   SP_CALC_STANDBY
+  0x03   SP_CALC_PUBKEY_256
+  0x04   SP_CALC_DHKEY_256
+)
+
+
+
+/* simple paring invalid flag */
+(
+  0x00   SP_KEY_INVALID
+  0x03   SP_KEY_VALID_256
+
+)
+
+
+//mem_secure_connections_enable
+(
+0 SECURE_CONNECTIONS_LE_BIT
+1 SECURE_CONNECTIONS_BR_BIT
+)
+
+
+  
Index: format/ui.format
===================================================================
--- /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/format/ui.format	(nonexistent)
+++ /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/format/ui.format	(working copy)
@@ -0,0 +1,148 @@
+/*****************************************************************************/
+/* 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(
+1 mem_ipc_skip_continue_proc
+) 
+
+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_ui_state_map
+
+1 mem_ui_button_timeout
+1 mem_ui_button_gpio
+1 mem_ui_led_init_state_set
+
+1 mem_ui_led_struct_num
+2 mem_ui_led_struct_ptr
+
+)
+
+
+//mem_ui_state_map
+(
+9 UI_STATE_BLE_CONNECTED
+10 UI_STATE_BLE_WRITE_RCV
+11 UI_STATE_BLE_ADV
+12 UI_STATE_BTN_DOWN
+)
+
+
+
+/* memui_Commands */
+(
+0 BT_CMD_STANDBY
+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
+31 BT_CMD_STORE_RECONN_INFO_LE
+34 BT_CMD_START_24G
+35 BT_CMD_STOP_24G
+36 BT_CMD_PAIR_24G
+)
+
+(
+0x00 BT_EVT_NULL
+0x0F BT_EVT_DISCOVERY_STOPED
+0x10 BT_EVT_BUTTON_LONG_PRESSED
+0x14 BT_EVT_LE_CONNECTED
+0X15 BT_EVT_LE_DISCONNECTED
+0x17 BT_EVT_BUTTON_ENTER_HIBERNATE
+0x25 BT_EVT_BUTTON_ADJUST_DPI
+0x28 BT_EVT_LE_WRITE_REQUEST
+0x29 BT_EVT_LE_ENC_INFO
+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
+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
+)
+
+
+(
+	160 UI_HUNDRED_MILLISECOND_TIME
+	0XFF UI_BUTTON_GPIO_DISABLE
+)
+
+(
+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
===================================================================
--- /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/format/usb.format	(nonexistent)
+++ /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/format/usb.format	(working copy)
@@ -0,0 +1,273 @@
+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
+2 mem_hidreportdesc_ep3
+28 mem_hidreportdesc_ep3_list
+19 mem_devicedesc
+100 mem_confdesc
+5 mem_string0
+30 mem_string1
+30 mem_string2
+30 mem_string3
+2 mem_cb_usb_config
+2 mem_cb_usb_ep3_process
+1 mem_usb_ep3_enable
+
+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
+1 mem_usb_sdsystem_wakeup_flag_judge
+
+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_usb_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
+64 mem_usb_txbuf3
+64 mem_usb_rxbuf_temp
+1 mem_usb_ep3_out_data_len
+1 mem_usb_ep3_in_data_len
+1 mem_usb_ep3_out_data_flag
+64 mem_usb_ep3_in_data
+64 mem_usb_ep3_out_data
+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
+)
+
+(
+0 USB_EP0_IN_FIFO_BUSY
+1 USB_EP1_IN_FIFO_BUSY
+2 USB_EP2_IN_FIFO_BUSY
+3 USB_EP3_IN_FIFO_BUSY
+4 USB_DN_STATUS
+5 USB_DP_STATUS
+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
+)
+
+(
+640 TIMER_NAK_DELAY
+5000 TIMER_WAKEUP_DELAY
+)
+
Index: format/utility.format
===================================================================
--- /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/format/utility.format	(nonexistent)
+++ /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/format/utility.format	(working copy)
@@ -0,0 +1,74 @@
+
+memalloc(
+
+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_le_adv_channel_map_temp
+0 mem_le_data_len_temp	//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_tx_buf_temp //48byte
+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
+)
+
+
+//util fifo param
+(
+
+8 UTIL_FIFO_LEN
+-1 UTIL_FIFO_OFFSET
+)
+
+
Index: output/auth.rom
===================================================================
--- /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/output/auth.rom	(nonexistent)
+++ /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/output/auth.rom	(working copy)
@@ -0,0 +1,2037 @@
+01
+00
+02
+00
+28
+02
+00
+18
+02
+00
+02
+03
+28
+01
+0a
+03
+00
+02
+00
+2a
+14
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+04
+00
+02
+03
+28
+01
+02
+05
+00
+02
+01
+2a
+02
+c2
+03
+06
+00
+02
+03
+28
+01
+02
+07
+00
+02
+04
+2a
+08
+06
+00
+06
+00
+64
+00
+2c
+01
+08
+00
+02
+00
+28
+02
+01
+18
+09
+00
+02
+03
+28
+01
+20
+0a
+00
+02
+05
+2a
+00
+0b
+00
+02
+02
+29
+02
+00
+00
+0c
+00
+02
+00
+28
+02
+0a
+18
+0d
+00
+02
+03
+28
+01
+02
+0e
+00
+02
+29
+2a
+06
+59
+69
+43
+68
+69
+70
+0f
+00
+02
+03
+28
+01
+02
+10
+00
+02
+50
+2a
+07
+02
+35
+12
+22
+aa
+01
+00
+11
+00
+02
+00
+28
+02
+12
+18
+12
+00
+02
+03
+28
+01
+06
+13
+00
+02
+4e
+2a
+01
+01
+14
+00
+02
+03
+28
+01
+12
+15
+00
+02
+4d
+2a
+08
+00
+00
+00
+00
+00
+00
+00
+00
+16
+00
+02
+02
+29
+02
+00
+00
+17
+00
+02
+08
+29
+02
+02
+01
+18
+00
+02
+03
+28
+01
+1a
+19
+00
+02
+4d
+2a
+07
+00
+00
+00
+00
+00
+00
+00
+1a
+00
+02
+02
+29
+02
+00
+00
+1b
+00
+02
+08
+29
+02
+01
+01
+1c
+00
+02
+03
+28
+01
+12
+1d
+00
+02
+4d
+2a
+02
+00
+00
+1e
+00
+02
+02
+29
+02
+00
+00
+1f
+00
+02
+08
+29
+02
+03
+01
+20
+00
+02
+03
+28
+01
+12
+21
+00
+02
+4d
+2a
+02
+00
+00
+22
+00
+02
+02
+29
+02
+00
+00
+23
+00
+02
+08
+29
+02
+04
+01
+24
+00
+02
+03
+28
+01
+0e
+25
+00
+02
+4d
+2a
+02
+00
+00
+26
+00
+02
+08
+29
+02
+02
+02
+27
+00
+02
+03
+28
+01
+02
+28
+00
+02
+4b
+2a
+bd
+05
+01
+09
+02
+a1
+01
+85
+01
+09
+01
+a1
+00
+05
+09
+19
+01
+29
+08
+15
+00
+25
+01
+75
+01
+95
+08
+81
+02
+05
+01
+09
+30
+09
+31
+16
+01
+f8
+26
+ff
+07
+75
+10
+95
+02
+81
+06
+09
+38
+15
+81
+25
+7f
+75
+08
+95
+01
+81
+06
+05
+0c
+0a
+38
+02
+95
+01
+81
+06
+c0
+c0
+05
+01
+09
+06
+a1
+01
+85
+02
+75
+01
+95
+08
+05
+07
+19
+e0
+29
+e7
+15
+00
+25
+01
+81
+02
+95
+01
+75
+08
+81
+03
+95
+05
+75
+01
+05
+08
+19
+01
+29
+05
+91
+02
+95
+01
+75
+03
+91
+03
+95
+06
+75
+08
+15
+00
+26
+ff
+00
+05
+07
+19
+00
+29
+ff
+81
+00
+c0
+05
+0c
+09
+01
+a1
+01
+85
+03
+19
+00
+2a
+ff
+03
+15
+00
+26
+ff
+03
+95
+01
+75
+10
+81
+00
+c0
+05
+01
+09
+80
+A1
+01
+85
+04
+15
+00
+25
+01
+75
+01
+95
+03
+19
+81
+29
+83
+81
+02
+95
+01
+75
+05
+81
+03
+C0
+29
+00
+02
+03
+28
+01
+1a
+2a
+00
+02
+33
+2a
+08
+00
+00
+00
+00
+00
+00
+00
+00
+2b
+00
+02
+02
+29
+02
+01
+00
+2c
+00
+02
+03
+28
+01
+02
+2d
+00
+02
+4a
+2a
+04
+01
+01
+00
+03
+2e
+00
+02
+00
+28
+02
+0f
+18
+2f
+00
+02
+03
+28
+01
+12
+30
+00
+02
+19
+2a
+01
+64
+31
+00
+02
+02
+29
+02
+00
+00
+32
+00
+02
+03
+28
+01
+04
+33
+00
+02
+4c
+2a
+00
+00
+00
+1a
+06
+bc
+ff
+09
+88
+a1
+01
+85
+04
+19
+00
+2a
+ff
+00
+15
+00
+26
+ff
+00
+75
+08
+95
+01
+81
+00
+c0
+3f
+05
+01
+09
+06
+a1
+01
+75
+01
+95
+08
+05
+07
+19
+e0
+29
+e7
+15
+00
+25
+01
+81
+02
+95
+01
+75
+08
+81
+03
+95
+05
+75
+01
+05
+08
+19
+01
+29
+05
+91
+02
+95
+01
+75
+03
+91
+03
+95
+06
+75
+08
+15
+00
+25
+ff
+05
+07
+19
+00
+29
+ff
+81
+00
+c0
+a3
+05
+01
+09
+02
+a1
+01
+85
+01
+09
+01
+a1
+00
+05
+09
+19
+01
+29
+05
+15
+00
+25
+01
+95
+05
+75
+01
+81
+02
+95
+01
+75
+03
+81
+01
+05
+01
+09
+30
+09
+31
+16
+01
+F8
+26
+FF
+07
+75
+10
+95
+02
+81
+06
+09
+38
+15
+81
+25
+7f
+75
+08
+95
+01
+81
+06
+05
+0c
+0a
+38
+02
+95
+01
+81
+06
+c0
+c0
+05
+01
+09
+80
+a1
+01
+85
+02
+05
+01
+19
+81
+29
+88
+15
+00
+25
+01
+95
+08
+75
+01
+81
+06
+c0
+05
+0c
+09
+01
+a1
+01
+85
+03
+15
+00
+26
+80
+03
+19
+00
+2a
+80
+03
+75
+10
+95
+01
+81
+00
+c0
+06
+00
+ff
+09
+0e
+a1
+01
+85
+BA
+95
+1f
+75
+08
+26
+ff
+00
+15
+00
+09
+01
+91
+02
+85
+BA
+95
+1f
+75
+08
+26
+ff
+00
+15
+00
+09
+01
+81
+02
+C0
+12
+12
+01
+00
+02
+00
+00
+00
+40
+51
+31
+20
+10
+02
+00
+01
+02
+00
+01
+3b
+09
+02
+3b
+00
+02
+01
+00
+a0
+32
+09
+04
+00
+00
+01
+03
+01
+01
+00
+09
+21
+00
+02
+00
+01
+22
+1a
+00
+07
+05
+81
+03
+40
+00
+02
+09
+04
+01
+00
+01
+03
+01
+02
+00
+09
+21
+00
+02
+00
+01
+22
+a3
+00
+07
+05
+82
+03
+40
+00
+02
+01
+00
+02
+00
+28
+02
+01
+18
+02
+00
+02
+03
+28
+01
+20
+03
+00
+02
+05
+2a
+01
+00
+04
+00
+02
+02
+29
+02
+00
+00
+05
+00
+02
+00
+28
+02
+00
+18
+06
+00
+02
+03
+28
+01
+02
+07
+00
+02
+00
+2a
+13
+43
+68
+69
+70
+73
+65
+61
+2d
+42
+4c
+45
+20
+20
+20
+20
+20
+20
+20
+20
+08
+00
+02
+03
+28
+01
+02
+09
+00
+02
+01
+2a
+02
+c1
+03
+0a
+00
+02
+03
+28
+01
+02
+0b
+00
+02
+04
+2a
+08
+06
+00
+06
+00
+64
+00
+2c
+01
+0c
+00
+02
+00
+28
+02
+0a
+18
+0d
+00
+02
+03
+28
+01
+02
+0e
+00
+02
+50
+2a
+07
+01
+05
+0e
+00
+0a
+02
+40
+0f
+00
+02
+00
+28
+02
+12
+18
+10
+00
+02
+03
+28
+01
+06
+11
+00
+02
+4e
+2a
+01
+01
+12
+00
+02
+03
+28
+01
+10
+13
+00
+02
+4d
+2a
+07
+00
+00
+00
+00
+00
+00
+00
+14
+00
+02
+02
+29
+02
+00
+00
+15
+00
+02
+08
+29
+02
+01
+01
+16
+00
+02
+03
+28
+01
+10
+17
+00
+02
+4d
+2a
+03
+00
+00
+00
+18
+00
+02
+02
+29
+02
+00
+00
+19
+00
+02
+08
+29
+02
+04
+01
+1a
+00
+02
+03
+28
+01
+10
+1b
+00
+02
+4d
+2a
+02
+00
+00
+1c
+00
+02
+02
+29
+02
+00
+00
+1d
+00
+02
+08
+29
+02
+03
+01
+1e
+00
+02
+03
+28
+01
+10
+1f
+00
+02
+4d
+2a
+03
+00
+00
+00
+20
+00
+02
+02
+29
+02
+00
+00
+21
+00
+02
+08
+29
+02
+05
+01
+22
+00
+02
+03
+28
+01
+12
+23
+00
+02
+4d
+2a
+02
+00
+00
+24
+00
+02
+02
+29
+02
+00
+00
+25
+00
+02
+08
+29
+02
+02
+01
+26
+00
+02
+03
+28
+01
+02
+27
+00
+02
+4b
+2a
+01
+00
+28
+00
+02
+03
+28
+01
+02
+29
+00
+02
+4a
+2a
+04
+11
+01
+00
+01
+2a
+00
+02
+03
+28
+01
+04
+2b
+00
+02
+4c
+2a
+01
+00
+2c
+00
+02
+00
+28
+02
+0f
+18
+00
+00
+03
+1f
+00
+ec
+0f
+00
+00
+00
+00
+00
+03
+1f
+00
+14
+00
+00
+00
+00
+00
+00
+03
+1f
+00
+00
+c0
+fe
+00
+00
+00
+00
+03
+1f
+00
+00
+40
+01
+00
+00
+00
+00
+03
+1f
+00
+00
+00
+00
+00
+00
+00
+00
+03
+1f
+00
+00
+00
+00
+00
+00
+00
+00
+02
+1b
+00
+e9
+00
+00
+00
+00
+00
+00
+02
+1b
+00
+ea
+00
+00
+00
+00
+00
+00
+02
+1b
+00
+00
+00
+00
+00
+00
+00
+00
+03
+1f
+00
+28
+80
+11
+00
+00
+00
+00
+03
+1f
+00
+ae
+8f
+11
+00
+00
+00
+00
+03
+1f
+00
+00
+e0
+fc
+00
+00
+00
+00
+03
+1f
+00
+00
+00
+05
+00
+00
+00
+00
+03
+17
+00
+01
+00
+00
+00
+00
+00
+00
+03
+1f
+00
+3c
+00
+00
+00
+00
+00
+00
+03
+1f
+00
+ff
+17
+80
+00
+00
+00
+00
+03
+1f
+00
+d8
+0f
+00
+00
+00
+00
+00
+03
+17
+00
+00
+00
+00
+00
+00
+00
+00
+03
+1f
+00
+01
+f8
+7f
+00
+00
+00
+00
+03
+1f
+00
+00
+40
+fc
+00
+00
+00
+00
+03
+1f
+00
+01
+18
+80
+00
+00
+00
+00
+03
+1f
+00
+3c
+40
+0b
+00
+00
+00
+00
+03
+1f
+00
+00
+c0
+03
+00
+00
+00
+00
+03
+1f
+00
+3c
+40
+ec
+00
+00
+00
+00
+03
+1f
+00
+3c
+80
+0c
+00
+00
+00
+00
+03
+1f
+00
+00
+10
+80
+00
+00
+00
+00
+03
+1f
+00
+3c
+80
+07
+00
+00
+00
+00
+03
+1f
+00
+96
+00
+00
+00
+00
+00
+00
+03
+1f
+00
+6a
+0f
+00
+00
+00
+00
+00
+03
+1f
+00
+02
+d0
+ff
+00
+00
+00
+00
+03
+1f
+00
+02
+30
+00
+00
+00
+00
+00
+03
+1f
+00
+64
+00
+00
+00
+00
+00
+00
+03
+1f
+00
+00
+b0
+f9
+00
+00
+00
+00
+07
+13
+00
+07
+06
+70
+07
+ac
+0d
+01
+07
+13
+00
+07
+06
+70
+07
+80
+0c
+01
+07
+13
+00
+07
+06
+70
+07
+54
+0b
+01
+07
+13
+00
+07
+06
+70
+07
+28
+0a
+01
+07
+13
+00
+07
+06
+70
+07
+fc
+08
+01
+07
+13
+00
+00
+06
+70
+07
+78
+05
+00
+07
+13
+00
+07
+07
+70
+07
+70
+07
+01
+07
+13
+00
+00
+07
+70
+07
+70
+07
+00
+07
+13
+00
+07
+05
+10
+0c
+70
+04
+01
+07
+13
+00
+07
+05
+48
+0b
+70
+04
+01
+07
+13
+00
+07
+05
+F0
+0A
+70
+04
+01
+07
+13
+00
+07
+05
+C4
+09
+70
+04
+01
+07
+13
+00
+07
+05
+6C
+07
+70
+04
+01
+07
+13
+00
+07
+05
+40
+04
+70
+04
+01
+07
+13
+00
+07
+05
+E8
+02
+70
+04
+01
+07
+13
+00
+00
+05
+00
+02
+70
+04
+00
+07
+13
+00
+00
+06
+70
+07
+ac
+0e
+00
+07
+13
+00
+00
+05
+10
+0d
+70
+04
+00
+03
+17
+00
+00
+fa
+00
+00
+00
+00
+00
+03
+17
+00
+00
+28
+00
+00
+00
+00
+00
+03
+17
+00
+00
+d2
+00
+00
+00
+00
+00
+03
+17
+00
+00
+32
+00
+00
+00
+00
+00
+03
+17
+00
+00
+00
+fa
+00
+00
+00
+00
+03
+17
+00
+00
+00
+05
+00
+00
+00
+00
+03
+17
+00
+00
+00
+f0
+00
+00
+00
+00
+03
+17
+00
+00
+00
+0f
+00
+00
+00
+00
+02
+23
+00
+30
+00
+00
+00
+00
+00
+00
+02
+23
+00
+00
+00
+00
+00
+00
+00
+00
+03
+1f
+00
+a0
+30
+e8
+00
+00
+00
+00
+03
+1f
+00
+3c
+40
+07
+00
+00
+00
+00
+03
+1f
+00
+41
+40
+0b
+00
+00
+00
+00
+b7
+fd
+93
+26
+36
+3f
+f7
+cc
+34
+a5
+e5
+f1
+71
+d8
+31
+15
+04
+c7
+23
+c3
+18
+96
+05
+9a
+07
+12
+80
+e2
+eb
+27
+b2
+75
+8c
+a1
+89
+0d
+bf
+e6
+42
+68
+41
+99
+2d
+0f
+b0
+54
+bb
+16
+9b
+c2
+51
+2f
+53
+1a
+6a
+83
+b5
+02
+6e
+10
+16
+ab
+a3
+42
Index: output/eeprom.dat
===================================================================
--- /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/output/eeprom.dat	(nonexistent)
+++ /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/output/eeprom.dat	(working copy)
@@ -0,0 +1,1716 @@
+00
+02
+aa
+55
+8e
+04
+c2
+84
+00
+0d
+c0
+1b
+80
+3d
+c0
+1e
+80
+6f
+c0
+23
+00
+81
+c0
+26
+00
+8c
+c0
+27
+00
+ad
+c0
+29
+00
+c0
+c0
+2d
+00
+64
+c0
+2f
+00
+35
+c0
+2f
+80
+39
+c0
+38
+00
+10
+c0
+71
+80
+6a
+20
+20
+3a
+8a
+c0
+30
+80
+78
+c1
+7f
+80
+00
+20
+20
+3a
+8a
+70
+80
+80
+73
+20
+40
+6e
+b3
+20
+40
+00
+1a
+20
+40
+57
+a0
+20
+75
+80
+00
+20
+40
+59
+bd
+20
+40
+56
+2e
+20
+40
+5c
+c5
+20
+40
+00
+57
+20
+20
+52
+34
+20
+75
+80
+00
+20
+40
+52
+5e
+c4
+0b
+80
+00
+20
+40
+00
+f9
+20
+40
+01
+11
+d8
+40
+00
+02
+df
+e0
+07
+ee
+da
+20
+46
+3d
+20
+40
+68
+c5
+6f
+e1
+46
+3d
+d8
+40
+aa
+55
+98
+46
+7c
+00
+20
+22
+80
+2c
+20
+40
+5b
+76
+df
+20
+00
+02
+da
+20
+46
+3d
+df
+e0
+07
+ee
+20
+20
+68
+83
+df
+e0
+06
+e9
+20
+40
+01
+05
+6f
+e0
+c9
+07
+20
+5a
+00
+32
+70
+45
+e5
+00
+20
+20
+5b
+81
+6f
+e0
+c5
+c0
+67
+e0
+c6
+3f
+20
+60
+00
+00
+18
+42
+7e
+00
+20
+7a
+00
+00
+c1
+7f
+80
+00
+20
+20
+5f
+23
+18
+42
+7e
+00
+20
+7a
+00
+00
+c1
+7f
+80
+00
+20
+20
+5f
+30
+6f
+e0
+c9
+11
+20
+3a
+52
+c8
+6f
+e0
+c5
+be
+67
+e0
+c5
+d5
+6f
+e0
+c5
+bd
+c1
+7f
+80
+00
+20
+40
+69
+2d
+6f
+e0
+c5
+bd
+d8
+40
+00
+3e
+20
+40
+6b
+bd
+6f
+e0
+c5
+c8
+d8
+40
+00
+3e
+20
+40
+6b
+bd
+68
+48
+c5
+bc
+20
+40
+54
+7f
+68
+48
+c5
+bc
+20
+40
+6b
+85
+20
+40
+d2
+d2
+20
+40
+54
+7b
+68
+48
+c5
+bc
+20
+40
+6b
+7c
+20
+40
+69
+31
+68
+48
+c5
+bd
+20
+40
+6b
+ae
+68
+48
+c5
+c8
+20
+20
+6b
+ae
+58
+00
+5f
+ad
+67
+e1
+45
+43
+58
+00
+00
+5c
+67
+e1
+45
+45
+20
+20
+52
+3d
+20
+40
+4d
+15
+24
+74
+00
+00
+6f
+e0
+c8
+63
+24
+7a
+00
+00
+70
+49
+05
+01
+20
+20
+5f
+a6
+20
+40
+74
+e0
+20
+20
+3c
+18
+20
+40
+54
+9b
+24
+74
+00
+00
+6f
+e0
+c9
+05
+70
+49
+05
+00
+24
+5a
+00
+62
+20
+20
+5e
+35
+18
+42
+7e
+00
+c2
+80
+80
+6d
+20
+20
+3c
+e3
+70
+8a
+6d
+89
+20
+20
+3c
+e9
+20
+40
+53
+39
+6f
+e0
+c9
+12
+c0
+00
+80
+73
+70
+80
+70
+80
+6f
+e0
+80
+17
+79
+20
+7e
+05
+67
+e0
+80
+17
+20
+40
+3c
+18
+20
+20
+5a
+f0
+78
+34
+7c
+00
+20
+40
+3b
+1b
+6f
+e1
+c0
+be
+20
+3a
+74
+ca
+6f
+e0
+c0
+94
+20
+3a
+74
+ca
+6f
+e0
+c8
+99
+24
+7a
+00
+00
+20
+20
+4d
+1c
+1a
+62
+7e
+00
+67
+e0
+c8
+50
+1f
+e3
+fe
+00
+1f
+e2
+24
+00
+18
+42
+26
+00
+20
+40
+54
+7b
+1a
+62
+04
+00
+20
+40
+6b
+85
+7d
+20
+a4
+00
+20
+40
+57
+53
+20
+20
+57
+3f
+1a
+62
+7e
+00
+c0
+1e
+00
+90
+c0
+1d
+00
+9c
+20
+20
+59
+14
+6f
+e2
+44
+da
+67
+e2
+45
+33
+67
+e2
+46
+40
+20
+40
+4b
+ce
+20
+40
+5e
+1b
+20
+40
+5a
+a9
+20
+40
+58
+c4
+70
+47
+68
+00
+70
+45
+47
+00
+70
+45
+2d
+00
+68
+4a
+45
+33
+20
+20
+5e
+17
+6f
+e0
+c5
+4b
+24
+3a
+5d
+80
+6f
+e0
+c5
+2d
+c0
+01
+5d
+f4
+c0
+02
+00
+a3
+c0
+01
+80
+a8
+20
+20
+5d
+ed
+6f
+e4
+48
+64
+c3
+17
+dd
+ed
+6f
+e0
+c8
+6c
+c0
+00
+dd
+ed
+20
+20
+5d
+cb
+6f
+e4
+48
+64
+c3
+17
+dd
+ed
+c2
+89
+dd
+ed
+c2
+89
+5d
+ed
+20
+20
+5d
+c4
+20
+40
+53
+c6
+20
+40
+5f
+47
+20
+40
+49
+07
+20
+40
+4b
+a5
+20
+40
+5d
+6b
+20
+40
+5e
+9a
+20
+40
+5e
+cb
+20
+40
+5a
+c1
+20
+40
+5a
+f3
+20
+40
+56
+1c
+20
+40
+5a
+36
+20
+40
+5a
+46
+20
+40
+5a
+69
+20
+40
+00
+bc
+20
+20
+5a
+2d
+da
+60
+48
+31
+da
+40
+5a
+74
+20
+40
+4d
+cc
+20
+20
+5a
+71
+20
+40
+5b
+90
+c4
+0b
+80
+00
+20
+40
+00
+d7
+df
+e0
+07
+19
+1f
+e2
+24
+00
+20
+40
+01
+1d
+6f
+e2
+49
+0d
+20
+3a
+00
+cf
+67
+e2
+49
+09
+1a
+40
+a4
+04
+df
+e0
+07
+e0
+9a
+46
+7c
+00
+24
+61
+00
+00
+1a
+42
+7e
+00
+20
+20
+00
+c5
+6f
+e2
+49
+09
+68
+4a
+46
+40
+98
+46
+7c
+00
+20
+62
+80
+00
+df
+20
+00
+04
+da
+20
+46
+40
+1a
+42
+7e
+00
+20
+20
+68
+83
+df
+e0
+06
+e9
+1f
+e2
+24
+00
+20
+40
+01
+05
+6f
+e0
+c9
+07
+20
+3a
+00
+e3
+67
+e0
+c9
+06
+1a
+40
+a4
+01
+df
+e0
+07
+18
+9a
+46
+7c
+00
+24
+61
+00
+00
+1a
+42
+7e
+00
+20
+20
+00
+d9
+6f
+e0
+c9
+06
+1f
+e1
+7e
+f0
+20
+3a
+00
+ec
+6f
+e0
+c6
+3f
+67
+e0
+c9
+08
+df
+20
+00
+01
+1a
+42
+7e
+00
+da
+20
+49
+08
+20
+20
+68
+83
+6f
+e0
+c9
+06
+68
+48
+c6
+3f
+98
+46
+7c
+00
+20
+62
+80
+00
+18
+52
+04
+00
+98
+40
+fe
+00
+67
+e0
+c9
+08
+1a
+42
+7e
+00
+d8
+40
+06
+e9
+98
+46
+7c
+00
+20
+22
+80
+e8
+1a
+40
+a5
+ff
+20
+20
+00
+e8
+df
+e0
+06
+e9
+1f
+e2
+24
+00
+20
+40
+01
+05
+6f
+e0
+c9
+07
+20
+3a
+01
+08
+67
+e0
+c9
+06
+1a
+40
+a4
+01
+df
+e0
+07
+18
+9a
+46
+7c
+00
+24
+21
+01
+08
+1a
+42
+7e
+00
+20
+20
+00
+fb
+d8
+40
+00
+01
+da
+20
+49
+07
+20
+20
+68
+c5
+6f
+e0
+c9
+06
+1f
+e2
+26
+00
+1f
+e1
+7e
+f0
+20
+3a
+01
+0e
+1f
+f1
+fe
+00
+20
+20
+01
+0f
+1a
+62
+7e
+00
+67
+e0
+c6
+3f
+20
+60
+00
+00
+df
+e0
+07
+19
+1f
+e2
+24
+00
+20
+40
+01
+1d
+6f
+e2
+49
+0d
+20
+3a
+01
+20
+67
+e2
+49
+09
+1a
+40
+a4
+04
+df
+e0
+07
+e0
+9a
+46
+7c
+00
+24
+21
+01
+20
+1a
+42
+7e
+00
+20
+20
+01
+13
+d8
+40
+00
+04
+da
+20
+49
+0d
+20
+20
+68
+c5
+6f
+e2
+49
+09
+67
+e2
+46
+40
+20
+60
+00
+00
+83
+3b
+aa
+55
+06
+00
+3c
+44
+14
+27
+32
+41
+51
+61
+aa
+55
+01
+00
+de
+01
+5a
+aa
+55
+09
+00
+06
+40
+80
+20
+40
+50
+04
+c4
+00
+00
+01
+aa
+55
+01
+00
+1c
+40
+08
+aa
+55
+01
+00
+2c
+40
+02
+aa
+55
+02
+00
+94
+40
+01
+08
+aa
+55
+02
+00
+9d
+40
+1e
+41
+aa
+55
+08
+00
+c4
+40
+88
+0b
+ce
+35
+3f
+0c
+33
+03
+aa
+55
+03
+00
+cd
+40
+9d
+10
+22
+aa
+55
+07
+00
+18
+41
+ff
+04
+00
+00
+08
+00
+ff
+aa
+55
+04
+00
+c4
+43
+a0
+0f
+00
+04
+aa
+55
+04
+00
+ea
+43
+01
+00
+02
+d3
+aa
+55
+06
+00
+36
+44
+1e
+ff
+00
+00
+da
+45
+aa
+55
+04
+00
+d4
+44
+01
+00
+c0
+12
+aa
+55
+03
+00
+fa
+44
+00
+48
+60
+aa
+55
+01
+00
+1d
+45
+07
+aa
+55
+05
+00
+2e
+45
+01
+0f
+0f
+0f
+0f
+aa
+55
+02
+00
+3b
+45
+6f
+47
+aa
+55
+04
+00
+66
+45
+50
+00
+2c
+01
+aa
+55
+01
+00
+72
+45
+7d
+aa
+55
+01
+00
+9f
+45
+0a
+aa
+55
+2f
+00
+a5
+45
+02
+00
+00
+08
+00
+00
+05
+94
+85
+90
+63
+75
+80
+20
+01
+03
+06
+06
+03
+01
+05
+0a
+08
+09
+0d
+01
+02
+00
+ff
+ff
+07
+ff
+ff
+ff
+ff
+0c
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+00
+aa
+55
+01
+00
+6d
+46
+05
+aa
+55
+0c
+00
+7d
+46
+03
+04
+01
+02
+20
+2a
+3f
+15
+14
+1b
+11
+0e
+aa
+55
+0a
+00
+8c
+46
+09
+5a
+26
+34
+19
+04
+09
+00
+ff
+ff
+aa
+55
+0a
+00
+a0
+46
+09
+5a
+0d
+10
+1d
+ed
+7d
+80
+ff
+ff
+aa
+55
+64
+00
+e6
+46
+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
+09
+5a
+0d
+10
+0e
+c5
+5b
+9a
+10
+38
+11
+42
+28
+28
+41
+23
+49
+39
+4a
+b0
+4b
+a0
+4c
+90
+4d
+70
+09
+00
+ff
+ff
+09
+5a
+06
+02
+09
+69
+0d
+48
+0e
+9f
+0f
+ba
+09
+00
+ff
+ff
+09
+a5
+46
+34
+60
+07
+69
+04
+7d
+20
+7e
+00
+09
+00
+ff
+ff
+aa
+55
+10
+00
+56
+47
+09
+5a
+0b
+f3
+09
+00
+ff
+ff
+09
+a5
+0b
+f3
+09
+00
+ff
+ff
+aa
+55
+09
+00
+64
+48
+00
+09
+c2
+00
+00
+00
+02
+1f
+01
+aa
+55
+12
+00
+72
+48
+05
+00
+64
+00
+70
+17
+14
+00
+90
+01
+e8
+03
+90
+01
+64
+00
+00
+05
+aa
+55
+03
+00
+9a
+48
+02
+5b
+01
+aa
+55
+23
+00
+c3
+48
+14
+00
+03
+00
+00
+58
+02
+00
+00
+18
+6a
+00
+80
+bb
+00
+05
+40
+19
+01
+00
+77
+01
+0b
+00
+00
+00
+00
+80
+bb
+00
+00
+00
+77
+01
+00
+aa
+55
+02
+00
+11
+49
+01
+01
+55
+aa
+aa
+55
+11
+9f
+93
+73
Index: output/memmap.format
===================================================================
--- /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/output/memmap.format	(nonexistent)
+++ /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/output/memmap.format	(working copy)
@@ -0,0 +1,1950 @@
+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_current_context
+0x0007 mem_le_ch_mapped
+0x0008 mem_last_freq
+0x0009 mem_rssi
+0x000a mem_context_ptr
+0x000c mem_rx_window
+0x000e mem_lpm_adjust
+0x000f mem_sync_clke
+0x0015 mem_lpm_current_mult
+0x0016 mem_gpio_wakeup_low
+0x001a mem_gpio_wakeup_high
+0x001e mem_clkn_bt
+0x0022 mem_clke_bt
+0x0026 mem_dpll_clkn
+0x002a mem_slot_offset
+0x002c mem_select_list_item
+0x002d mem_temp_reconn_record
+0x002d mem_record_bt_mode
+0x002e mem_list_item_ptr
+0x0030 mem_rssi_hex
+0x0031 mem_param_tx_setup
+0x0033 mem_param_rf_setup
+0x0035 mem_param_conn_access
+0x0037 mem_param_clke_cal
+0x0039 mem_param_pll_setup
+0x003b mem_param_rx_setup
+0x003d mem_param_dpll_start_delay
+0x003f mem_param_rt_rthalfslot
+0x0041 mem_param_clke_cal_le_1m
+0x0043 mem_param_clke_cal_le_2m
+0x0045 mem_param_clke_cal_le_coded
+0x0047 mem_le_rxbuf
+0x014b mem_le_mic
+0x014f mem_le_peer_mic
+0x0153 mem_le_mrand
+0x0163 mem_le_state
+0x0164 mem_le_mode
+0x0165 mem_le_tsniff
+0x0167 mem_le_anchor
+0x016b mem_le_clk_offset
+0x0171 mem_le_receive_window
+0x0173 mem_le_plap
+0x0179 mem_le_conn_handle
+0x017a mem_le_arq
+0x017b mem_le_ch
+0x017c mem_le_hop
+0x017d mem_le_event_count
+0x017f mem_le_supervision_timer
+0x0183 mem_le_instant
+0x0185 mem_le_channels
+0x0186 mem_le_op
+0x0187 mem_le_access
+0x018b mem_le_crcinit
+0x018e mem_le_window_size
+0x018f mem_le_slave_latency
+0x0191 mem_le_superto
+0x0193 mem_le_channel_map
+0x0198 mem_le_rx_phy
+0x0199 mem_le_tx_phy
+0x019a mem_le_update_new_param
+0x01a3 mem_le_sk
+0x01b3 mem_le_peer_sca
+0x01b4 mem_le_err_code
+0x01b5 mem_le_ll_pairing_fail_reason
+0x01b6 mem_le_testtype
+0x01b7 mem_cmd_le_create_conn
+0x01b8 mem_ucode_device_flag
+0x01b9 mem_peripheral_lock_flag
+0x01ba mem_ucode_status
+0x01bb mem_spid_tbuf
+0x01bc mem_iicd_tbuf
+0x01bc mem_addr_hi
+0x01bd mem_addr_mi
+0x01be mem_addr_lo
+0x01bf mem_iicd_addr
+0x01c0 mem_spid_rbuf
+0x01c4 mem_ucode_buf
+0x01c6 mem_ucode_len
+0x01c8 mem_sched_addr
+0x01ca mem_ucode_ptr
+0x01cc mem_ucode_keybuf
+0x01dc mem_app_evt_timer_count
+0x01dd mem_load_delay
+0x01de mem_load_check_sum
+0x01df mem_input_store
+0x01ef mem_ec_loopc
+0x01f1 mem_aes_cmac_data_length
+0x01f2 mem_ax_256//32 bytes
+0x0212 mem_ay_256// 32 bytes
+0x0232 mem_az_256// 32 bytes
+0x0252 mem_bx_256// 32 bytes
+0x0272 mem_by_256// 31 bytes
+0x0292 mem_bz_256//32 bytes
+0x02b2 mem_cx_256//32 bytes
+0x02d2 mem_cy_256// 32 bytes
+0x02f1 mem_cy5_256// 1 byte
+0x02f2 mem_cz_256// 32 bytes
+0x0312 mem_k_256//32 bytes
+0x0332 mem_tmp1_256//32 bytes
+0x0352 mem_tmp5_256
+0x0372 mem_tmp2_256
+0x0392 mem_tmp3_256
+0x0392 mem_t1_256
+0x03b2 mem_tmp0_256
+0x03b2 mem_dat
+0x03b2 mem_t0_256
+0x03d2 mem_t2_256
+0x03f2 mem_t3_256
+0x0412 mem_t7_256
+0x0432 mem_p_256
+0x0452 mem_a_256
+0x0472 mem_gx_256
+0x0492 mem_gy_256
+0x04b2 mem_le_slat
+0x04c2 mem_ipc_skip_continue_proc
+0x04c3 mem_fifo_temp
+0x04c4 mem_pdatatemp
+0x04cc mem_temp//8 bytes
+0x04d4 mem_timeup// 4 bytes
+0x04d8 mem_rega//4 bytes
+0x04dc mem_regb//4 bytes
+0x04e0 mem_regc//3 bytes
+0x04e3 mem_contr//2 bytes
+0x04e5 mem_contw//2 bytes
+0x04e7 mem_contus
+0x04e9 mem_contue
+0x04eb mem_contu
+0x04ed mem_queue
+0x04ef mem_loopcnt
+0x04f1 mem_wakup_from_power_flag
+0x04f2 mem_saved_gpio_in
+0x04f6 mem_module_rx_error_data_buffer
+0x04f6 mem_le_adv_channel_map_temp
+0x04f6 mem_le_data_len_temp//1byte
+0x04f6 mem_event_cmd_response_content//2byte
+0x04f6 mem_le_prand//16byte
+0x04f6 mem_AES_CMAC_k//16 bytes
+0x04f6 mem_regext_index//1 bytes
+0x04f6 mem_temp_block0
+0x04f7 mem_le_data_temp//15bytes
+0x04f7 mem_temp_block1
+0x0506 mem_le_tx_buf_temp//48byte
+0x0506 mem_le_aes_128//16byte
+0x0506 mem_regext//64 bytes
+0x0506 mem_AES_CMAC_k1//16 bytes
+0x0506 mem_temp_block2
+0x0516 mem_AES_CMAC_k2//16 bytes
+0x0516 mem_temp_block3
+0x0526 mem_AES_CMAC_temp// 16 bytes
+0x0526 mem_temp_block4
+0x0536 mem_AES_CMAC_M_last// 16 bytes
+0x0536 mem_module_uart_cmd
+0x0537 mem_module_uart_opcode
+0x0538 mem_module_uart_len
+0x0539 mem_module_temp_nl_discard_packet
+0x053a mem_temp_block5
+0x0546 mem_le_mackey//16 bytes
+0x0546 mem_app_receive_temp
+0x0546 mem_key_value_temp
+0x0548 mem_key_value
+0x054a mem_key_value_temp1
+0x054b mem_key_value_temp2
+0x054c mem_key_value_temp3
+0x054d mem_key_value_temp4
+0x054e mem_key_value_temp5
+0x054f mem_key_value_temp6
+0x0550 mem_temp_block6
+0x0556 mem_scale_ratio
+0x0559 mem_xcnt
+0x055c mem_scale_ratio_temp
+0x055e mem_base_start
+0x055e mem_flash_paired_addr_base
+0x055e mem_flash_paired_addr0
+0x0560 mem_flash_paired_addr0_group
+0x0561 mem_flash_paired_addr1
+0x0563 mem_flash_paired_addr1_group
+0x0564 mem_flash_paired_addr2
+0x0566 mem_flash_paired_addr2_group
+0x0567 mem_flash_paired_addr3
+0x0569 mem_flash_paired_addr3_group
+0x056a mem_flash_paired_addr4
+0x056c mem_flash_paired_addr4_group
+0x056d mem_flash_paired_addr5
+0x056f mem_flash_paired_addr5_group
+0x0570 mem_flash_paired_addr6
+0x0572 mem_flash_paired_addr6_group
+0x0573 mem_flash_paired_addr7
+0x0575 mem_flash_paired_addr7_group
+0x0576 mem_flash_paired_addr8
+0x0578 mem_flash_paired_addr8_group
+0x0579 mem_flash_paired_addr9
+0x057b mem_flash_paired_addr9_group
+0x057c mem_msg_cnt_base
+0x057c mem_addr0_msg_cnt
+0x057d mem_addr1_msg_cnt
+0x057e mem_addr2_msg_cnt
+0x057f mem_addr3_msg_cnt
+0x0580 mem_addr4_msg_cnt
+0x0581 mem_addr5_msg_cnt
+0x0582 mem_addr6_msg_cnt
+0x0583 mem_addr7_msg_cnt
+0x0584 mem_addr8_msg_cnt
+0x0585 mem_addr9_msg_cnt
+0x0586 mem_msg_cnt_base1
+0x0587 mem_msg_addr_save
+0x0588 mem_msg_before_queue
+0x05a6 mem_count_and_random
+0x05a9 mem_msg_cnt_judgment_window_time
+0x05aa mem_msg_judgment_window_time
+0x05ab mem_base_end
+0x055e mem_tst_pktcnt_sync
+0x0560 mem_tst_pktcnt_hec
+0x0562 mem_tst_pktcnt_crc
+0x0564 mem_tst_pktcnt_dmh
+0x0566 mem_tmp_buffer_head
+0x0569 mem_tmp_buffer
+0x05b9 mem_tester_emulate
+0x05ba mem_temp_payload
+0x05ba test_mode_scenario
+0x05bb test_mode_hopping_mode
+0x05bc test_mode_tx_freq
+0x05bd test_mode_rx_freq
+0x05be test_mode_power_mode
+0x05bf test_mode_poll_period
+0x05c0 test_mode_packet_type
+0x05c1 test_mode_data_length
+0x05c3 mem_test_mode_old_debug_config
+0x05c4 mem_tester_cnt
+0x055e mem_usb_status
+0x055f mem_usb_fifo_empty
+0x0560 mem_usb_read_len
+0x0562 mem_usb_txbuf
+0x05a3 mem_usb_txbuf1
+0x05ad mem_usb_txbuf2
+0x05b7 mem_usb_rxbuf
+0x05f7 mem_usb_rxbuf_end
+0x05f8 mem_bufptr
+0x05fa mem_remain
+0x05fb mem_hidreportdesc_kb
+0x05fd mem_hidreportdesc_m
+0x05ff mem_hidreportdesc_ep3
+0x0601 mem_hidreportdesc_ep3_list
+0x061d mem_devicedesc
+0x0630 mem_confdesc
+0x0694 mem_string0
+0x0699 mem_string1
+0x06b7 mem_string2
+0x06d5 mem_string3
+0x06f3 mem_cb_usb_config
+0x06f5 mem_cb_usb_ep3_process
+0x06f7 mem_usb_ep3_enable
+0x06f8 mem_usb_tx_interval
+0x06f9 mem_usb_vid_pid
+0x0702 mem_usb_zero_packet
+0x0704 mem_usb_ones_packet
+0x0706 mem_usb_two_packet
+0x0708 mem_usb0_state
+0x0709 mem_usb_offline_check_gpio
+0x070a mem_usb_sdsystem_wakeup_flag_judge
+0x070b mem_usb_clear_mem_start
+0x070b mem_usb_setup
+0x070b mem_usb_setup_bmRequestType
+0x070c mem_usb_setup_bRequest
+0x070d mem_usb_setup_bValue
+0x070e mem_usb_setup_bValueH
+0x070f mem_usb_setup_wIndex
+0x0711 mem_usb_setup_bLength
+0x0712 mem_usb_setup_bLengthH
+0x0713 mem_usb0_set_report_data
+0x0753 mem_usb0_get_report_data
+0x0793 mem_usb_setup_bValue_temp
+0x0795 mem_usb0_get_set_report
+0x0796 mem_usb0_data_ready_report
+0x0797 mem_usb_tx_win_enable
+0x0798 mem_usb_tx_mac_enable
+0x0799 mem_usb_idle_flag
+0x079a mem_usb_idle_rate
+0x079b mem_usb_get_protocol_flag
+0x079c mem_usb_set_protocol_status
+0x079d mem_usb_set_protocol_value
+0x079e mem_usb_state
+0x079f mem_usb_remote_wakeup
+0x07a0 mem_usb_clear_remote_wakeup
+0x07a1 mem_usb_sdsystem_wakeup_flag
+0x07a2 mem_usb_ep0_stall_status
+0x07a3 mem_usb_ep1_stall_status
+0x07a4 mem_usb_ep2_stall_status
+0x07a5 mem_usb_ep3_stall_status
+0x07a6 mem_dsc_info_data_pointer
+0x07a8 mem_dsc_info_len
+0x07a9 mem_usb_ep1_data
+0x07aa mem_usb_ep2_data
+0x07ab mem_usb_tx_enable
+0x07ac mem_usb_device_enumeration_endflag
+0x07ad mem_usb_wakestate_onetime_flag
+0x07ae mem_usb_mac_wakeup_trig
+0x07af mem_usb_set_high_addr_flag
+0x07b0 mem_usb_clear_halt
+0x07b1 mem_usb_mouse_data
+0x07c1 mem_usb_kb_data
+0x07d1 mem_usb_kb_multikey
+0x07e1 mem_usb_kb_system
+0x07f1 mem_usb_test_cnt
+0x07f3 mem_usb_test_kb
+0x07fd mem_usb_txbuf3
+0x083d mem_usb_rxbuf_temp
+0x087d mem_usb_ep3_out_data_len
+0x087e mem_usb_ep3_in_data_len
+0x087f mem_usb_ep3_out_data_flag
+0x0880 mem_usb_ep3_in_data
+0x08c0 mem_usb_ep3_out_data
+0x0900 mem_usb_clear_mem_end
+0x0900 mem_dg_rssi_noise_buffer
+0x0a00 mem_dg_rssi_noise_dg_buffer
+0x0b00 mem_dg_rssi_noise_ms_buffer
+0x0c00 mem_dg_rssi_noise_kb_buffer
+0x0900 mem_init_cnt
+0x0902 mem_data_pre
+0x0904 mem_data_current
+0x0906 mem_data_sum
+0x0909 mem_data_value
+
+0x019a mem_le_new_param
+0x019a mem_le_new_transmitwindowsize
+0x019b mem_le_new_transmitwindowoffset
+0x019d mem_le_new_conninterval
+0x019f mem_le_new_connslavelatency
+0x01a1 mem_le_new_connsupervisiontimeout
+0x019a mem_le_new_map
+0x019a mem_le_new_m2s_phy
+0x019b mem_le_new_s2m_phy
+0x0047 mem_le_rxbuf_data_header
+0x0048 mem_le_rxbuf_data_length
+0x0049 mem_le_rxbuf_data_payload
+0x0047 mem_le_rxbuf_data_ll_header
+0x0048 mem_le_rxbuf_data_ll_length
+0x0049 mem_le_rxbuf_data_ll_opcode
+0x004a mem_le_rxbuf_data_ll_control_data
+0x0047 mem_le_rxbuf_adv_header
+0x0048 mem_le_rxbuf_adv_length
+0x0049 mem_le_rxbuf_adv_payload
+0x0047 mem_le_rxbuf_adv_scan_req_header
+0x0048 mem_le_rxbuf_adv_scan_req_length
+0x0049 mem_le_rxbuf_adv_scan_req_scan_address
+0x004f mem_le_rxbuf_adv_scan_req_adv_address
+0x0047 mem_le_rxbuf_adv_connect_ind_header
+0x0048 mem_le_rxbuf_adv_connect_ind_length
+0x0049 mem_le_rxbuf_adv_connect_ind_init_address
+0x004f mem_le_rxbuf_adv_connect_ind_adv_address
+0x0055 mem_le_rxbuf_adv_connect_ind_access_address
+0x0059 mem_le_rxbuf_adv_connect_ind_crc_init
+0x005c mem_le_rxbuf_adv_connect_ind_win_size
+0x005d mem_le_rxbuf_adv_connect_ind_win_offset
+0x005f mem_le_rxbuf_adv_connect_ind_interval
+0x0061 mem_le_rxbuf_adv_connect_ind_latency
+0x0063 mem_le_rxbuf_adv_connect_ind_timeout
+0x0065 mem_le_rxbuf_adv_connect_ind_channel_map
+0x006a mem_le_rxbuf_adv_connect_ind_hop_and_sca
+0x0506 mem_le_search_handle_start
+0x0508 mem_le_search_handle_end
+0x050a mem_le_att_offset
+0x050a mem_le_search_att_type_length
+0x050b mem_le_search_att_type
+0x051b mem_le_curr_att_len
+0x051c mem_le_cur_attlist_start_ptr
+0x051e mem_le_cur_handle_start
+0x0520 mem_le_cur_handle_end
+0x0522 mem_le_cur_uuid_length
+0x0523 mem_le_cur_uuid
+0x0047 mem_le_rxbuf_data_att_header
+0x0048 mem_le_rxbuf_data_att_length
+0x0049 mem_le_rxbuf_data_att_l2cap_length
+0x004b mem_le_rxbuf_data_att_cid
+0x004d mem_le_rxbuf_data_att_opcode
+0x004e mem_le_rxbuf_data_att_payload
+0x0047 mem_le_rxbuf_data_continue_header
+0x0048 mem_le_rxbuf_data_continue_length
+0x0049 mem_le_rxbuf_data_continue_payload
+0x0047 mem_le_rxbuf_data_att_write_header
+0x0048 mem_le_rxbuf_data_att_write_length
+0x0049 mem_le_rxbuf_data_att_write_l2cap_length
+0x004b mem_le_rxbuf_data_att_write_cid
+0x004d mem_le_rxbuf_data_att_write_opcode
+0x004e mem_le_rxbuf_data_att_write_handle
+0x0050 mem_le_rxbuf_data_att_write_payload
+0x0047 mem_le_rxbuf_data_prepare_att_write_header
+0x0048 mem_le_rxbuf_data_prepare_att_write_length
+0x0049 mem_le_rxbuf_data_prepare_att_write_l2cap_length
+0x004b mem_le_rxbuf_data_prepare_att_write_cid
+0x004d mem_le_rxbuf_data_prepare_att_write_opcode
+0x004e mem_le_rxbuf_data_prepare_att_write_handle
+0x0050 mem_le_rxbuf_data_prepare_att_write_offset
+0x0052 mem_le_rxbuf_data_prepare_att_write_payload
+0x01df mem_fcc_param_new
+0x01df mem_fcc_ch_new
+0x01e0 mem_fcc_mod_new
+0x01e1 mem_fcc_txrx_new
+0x01e2 mem_fcc_btble_new
+0x01e3 mem_fcc_data_new
+0x01e4 mem_fcc_data_length_new
+0x01e5 mem_fcc_hop_new
+0x01e6 mem_fcc_tx_power_new
+0x01e7 mem_fcc_param
+0x01e7 mem_fcc_ch
+0x01e8 mem_fcc_mod
+0x01e9 mem_fcc_txrx
+0x01ea mem_fcc_btble
+0x01eb mem_fcc_data
+0x01ec mem_fcc_data_length
+0x01ed mem_fcc_hop
+0x01ee mem_fcc_tx_power
+0x01ef mem_fcc_config_cb
+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
+0x4093 mem_current_amaddr
+0x4094 mem_lpm_mode
+0x4095 mem_device_option
+0x4096 mem_last_clkn
+0x409a mem_fcomp_div
+0x409b mem_rx_window_sniff
+0x409d mem_rf_init_ptr
+0x409f mem_rf_rccal
+0x40a0 mem_handle_num
+0x40a1 mem_chip_functions
+0x40a3 mem_lpm_wake_lock
+0x40a5 mem_lpm_interval
+0x40a7 mem_lpm_overhead
+0x40a8 mem_lpm_hibernate_switch
+0x40a9 mem_sniff_unint_lost
+0x40aa mem_sleep_counter
+0x40ae mem_sleep_counter_all
+0x40b2 mem_sleep_clkn
+0x40b8 mem_sniff_rcv
+0x40bb mem_sniff_lost
+0x40be mem_clks_per_lpo
+0x40c1 mem_lpm_mult
+0x40c2 mem_lpm_mult_timeout
+0x40c3 mem_lpm_mult_cnt
+0x40c4 mem_lpm_config
+0x40c4 mem_lpm_xtal_ib
+0x40c5 mem_lpm_ctrim
+0x40c6 mem_lpm_padding
+0x40c7 mem_lpm_xtalcnt
+0x40c8 mem_lpm_buckcnt
+0x40c9 mem_lpm_ldocnt
+0x40ca mem_lpm_isogate
+0x40cb mem_lpm_isogate_final
+0x40cc mem_lpm_ctrl3
+0x40cc mem_lpm_ctrl3_app_vsel
+0x40cd mem_lpm_ctrl3_aon_vsel
+0x40ce mem_lpm_ctrl3_core_byp
+0x40cf mem_lpm_ctrl3_core_vsel
+0x40d0 mem_saved_gpio
+0x40dd mem_saved_gsel
+0x40e0 mem_saved_mark
+0x40e8 mem_saved_spidctrl
+0x40e9 mem_patch_ptr
+0x40eb mem_patch_len
+0x40ed mem_timers
+0x410d mem_hci_cmd
+0x410e mem_hci_conn_handle
+0x410f mem_hci_plap
+0x4112 mem_hci_puap
+0x4113 mem_hci_pnap
+0x4115 mem_loadcode_times
+0x4116 mem_tx_power
+0x4117 mem_modem_rssi
+0x4118 mem_gain_fix
+0x4119 mem_gain_table
+0x411c mem_gain_second_agc_en
+0x411d mem_system_clk
+0x411e mem_rf_init_data
+0x411f mem_xtal_freq
+0x4120 mem_version
+0x4121 mem_company_id
+0x4123 mem_sub_version
+0x4125 mem_le_dsniff
+0x4127 mem_le_conn_interval
+0x4129 mem_le_tx_ifs_defference
+0x412a mem_le_tx2m_delay
+0x412b mem_le_txheader
+0x412c mem_le_txlen
+0x412d mem_le_txpayload
+0x422d mem_le_name_len
+0x422e mem_le_name
+0x424c mem_le_ltk
+0x425c mem_ltk_exists
+0x425d mem_le_rconfirm
+0x426d mem_le_srand
+0x427d mem_le_iat
+0x427e mem_le_rat
+0x427f mem_le_preq
+0x4280 mem_le_preq_iocap
+0x4281 mem_le_preq_oob
+0x4282 mem_le_preq_auth
+0x4283 mem_le_preq_max_keysize
+0x4284 mem_le_preq_init_key_distribution
+0x4285 mem_le_preq_resp_key_distribution
+0x4286 mem_le_pres
+0x4287 mem_le_pres_iocap
+0x4288 mem_le_pres_oob
+0x4289 mem_le_pres_auth
+0x428a mem_le_pres_max_keysize
+0x428b mem_le_pres_init_key_distribution
+0x428c mem_le_pres_resp_key_distribution
+0x428d mem_le_notify_handle
+0x428f mem_le_search_uuid_length
+0x4290 mem_le_search_uuid
+0x42a0 mem_le_conn_param
+0x42a0 mem_le_conn_peer_addr_type
+0x42a1 mem_le_conn_peer_addr
+0x42a7 mem_le_conn_own_addr_type
+0x42a8 mem_le_interval_min
+0x42aa mem_le_interval_max
+0x42ac mem_le_latency
+0x42ae mem_le_timeout
+0x42b0 mem_le_lap
+0x42b3 mem_le_uap
+0x42b4 mem_le_nap
+0x42b6 mem_le_local_mtu
+0x42b8 mem_le_remote_mtu
+0x42ba mem_le_skdm
+0x42c2 mem_le_skds
+0x42ca mem_le_init_superto
+0x42cc mem_ui_le_uuid_table
+0x42ce mem_le_secure_connect_flag
+0x42cf mem_le_secure_connect_state
+0x42d0 mem_le_sc_confirm_gkey_flag
+0x42d1 mem_le_pairing_state
+0x42d2 mem_le_enc_state
+0x42d3 mem_le_pairing_mode
+0x42d4 mem_le_tk
+0x42d8 mem_le_ediv
+0x42da mem_le_rand
+0x42e2 mem_le_irk
+0x42f2 mem_le_transmit_window
+0x42f6 mem_le_configuration
+0x42f7 mem_le_fixed_ltk
+0x4307 mem_le_pairing_handle
+0x4309 mem_le_packet_llid
+0x430a mem_le_l2cap_size
+0x430c mem_le_packet_len_recved
+0x430e mem_le_payload_ptr
+0x4310 mem_le_signaling_identifier
+0x4311 mem_le_l2cap_signaling_conn_param_update_rsp_result
+0x4313 mem_le_md_count
+0x4314 mem_le_l2cap_parse_cb
+0x4316 mem_ble_l2cap_tx_buff0_ptr
+0x4318 mem_ble_l2cap_tx_buff_size_ptr
+0x431a mem_le_scan_enable
+0x431b mem_le_scan_interval
+0x431d mem_le_scan_window
+0x431f mem_le_adv_data_len
+0x4320 mem_le_adv_data
+0x433f mem_le_scan_data_len
+0x4340 mem_le_scan_data
+0x435f mem_le_adv_enable
+0x4360 mem_le_adv_param
+0x4360 mem_le_adv_interval
+0x4362 mem_le_adv_type
+0x4363 mem_le_adv_own_addr_type
+0x4364 mem_le_adv_direct_addr
+0x436a mem_le_adv_channel_map
+0x436b mem_le_scan_params
+0x436b mem_le_scan_type
+0x436c mem_le_scan_own_addr_type
+0x436d mem_le_l2cap_att_states
+0x436e mem_le_att_opcode
+0x436f mem_le_att_handle
+0x4371 mem_le_search_res
+0x4372 mem_le_local_feature
+0x437a mem_le_tx_phys
+0x437b mem_le_rx_phys
+0x437c mem_remote_rx_max_octets
+0x437e mem_remote_rx_max_time
+0x4380 mem_remote_tx_max_octets
+0x4382 mem_remote_tx_max_time
+0x4384 mem_local_rx_max_octets
+0x4386 mem_local_rx_max_time
+0x4388 mem_local_tx_max_octets
+0x438a mem_local_tx_max_time
+0x438c mem_cb_check_wakelock
+0x438e mem_cb_before_hibernate
+0x4390 mem_cb_before_lpm
+0x4392 mem_cb_le_process
+0x4394 mem_cb_idle_process
+0x4396 mem_cb_bb_event_process
+0x4398 mem_cb_att_write
+0x439a mem_cb_ble_transmit
+0x439c mem_cb_event_timer
+0x439e mem_cb_bt_set_mult
+0x43a0 mem_cb_spi_flash_write_complate
+0x43a2 mem_cb_before_lpm_sleep
+0x43a4 mem_eeprom_base
+0x43a6 mem_wake_up_delay_timer
+0x43a7 mem_app_connection_options
+0x43a8 mem_app_disconn_reason
+0x43aa mem_app_disconn_reason_flag
+0x43ac mem_xrecord_mode
+0x43ad mem_eeprom_block_size
+0x43ae mem_spi_init_clk
+0x43af mem_spi_init_delay_time
+0x43b0 mem_spi_ncs_gpio
+0x43b1 mem_nv_data_ptr
+0x43b3 mem_nv_data_number
+0x43b4 mem_queue_ptr
+0x43b6 mem_gpio_h_k19_b13
+0x43ba mem_gpio_l_k19_b13
+0x43be mem_hvin_k19_b13
+0x43c2 mem_app_adc_read_count
+0x43c3 mem_start_adc_clkn
+0x43c4 mem_adc_delay
+0x43c6 mem_adc_config_flag
+0x43c7 mem_adc_channel
+0x43c8 mem_adc_current_value
+0x43ca mem_adc_power_flag//bit0:low power falg ; bit1:no power flag
+0x43cb mem_spi_write_addr
+0x43ce mem_spi_write_ptr
+0x43d0 mem_spi_write_len
+0x43d2 mem_spi_write_flash_sm
+0x43d3 mem_spi_cs_gpio
+0x43d4 mem_spi_si_gpio
+0x43d5 mem_spi_so_gpio
+0x43d6 mem_spi_sclk_gpio
+0x43d7 mem_spi_wp_gpio
+0x43d8 mem_spi_hold_gpio
+0x43d9 mem_eeprom_wp_gpio
+0x43da mem_eeprom_scl_gpio
+0x43db mem_eeprom_sda_gpio
+0x43dc mem_kscan_ptr
+0x43de mem_key_num_ptr
+0x43de mem_keyscan_ptr
+0x43e0 mem_key_value_retention
+0x43e2 mem_power_param_ptr
+0x43e4 mem_efuse_header
+0x43e7 mem_seqi
+0x43e8 mem_set_cdb_on
+0x43e9 mem_syn_cal_ctrl
+0x43ea mem_dig_aon_vsel
+0x43eb mem_syn_afc_cfg1
+0x43ec mem_rf_ldo_cfg1
+0x43ed mem_rc_cal
+0x43ee mem_nec_decode_error_value
+0x43ef mem_wdt_always_work
+0x43f0 mem_power_ctrl_disable
+0x43f1 mem_rf_debug_rx_gpio
+0x43f2 mem_rf_debug_tx_gpio
+0x43f3 mem_l2cap_xmem_start
+0x43f3 mem_used_map
+0x43f4 mem_tx_fifo0
+0x43f4 mem_tx_fifo0_map
+0x43f5 mem_tx_fifo0_ptr
+0x43f7 mem_tx_fifo1
+0x43f7 mem_tx_fifo1_map
+0x43f8 mem_tx_fifo1_ptr
+0x43fa mem_tx_fifo2
+0x43fa mem_tx_fifo2_map
+0x43fb mem_tx_fifo2_ptr
+0x43fd mem_tx_fifo3
+0x43fd mem_tx_fifo3_map
+0x43fe mem_tx_fifo3_ptr
+0x4400 mem_tx_fifo_end
+0x4400 mem_l2cap_lpm_txbuf_ptr
+0x4402 mem_l2cap_xmem_end
+0x4402 mem_ccm_pcnt_tx
+0x4407 mem_ccm_pcnt_rx
+0x440c mem_ccm_last_mic
+0x4410 mem_ccm_iv
+0x4410 mem_ccm_ivm
+0x4414 mem_ccm_ivs
+0x4418 mem_ccm_len
+0x441a mem_ccm_rx_ptr
+0x441c mem_ipc_lock_bt
+0x441d mem_ipc_lock_c51
+0x441e mem_ipc_fifo_bt2c51
+0x4426 mem_ipc_fifo_c512bt
+0x442e mem_ui_button_timer
+0x442f mem_ui_button_last_state
+0x4430 mem_ui_timer_last_btclk
+0x4434 mem_ui_state_map
+0x4436 mem_ui_button_timeout
+0x4437 mem_ui_button_gpio
+0x4438 mem_ui_led_init_state_set
+0x4439 mem_ui_led_struct_num
+0x443a mem_ui_led_struct_ptr
+0x443c mem_ble_v2_xbox
+0x447c mem_ble_v2_pdu
+0x44a3 mem_ble_v2_customer_id
+0x44a4 mem_ble_v2_packet_num
+0x44a5 mem_ble_v2_subtype
+0x44a6 mem_ble_v2_maintype
+0x44a7 mem_ble_v2_addr
+0x44ab mem_ble_v2_group_index
+0x44ac mem_ble_v2_cmd
+0x44ae mem_ble_v2_para
+0x44b2 mem_ble_customer_id
+0x44b3 mem_ble_count
+0x44b4 mem_ble_sub_type
+0x44b5 mem_ble_main_type
+0x44b6 mem_ble_addr
+0x44ba mem_ble_group
+0x44bb mem_ble_cmd
+0x44bd mem_ble_para
+0x44c1 mem_ble_rfu
+0x44c4 mem_ble_relay
+0x44c5 mem_ble_is_app
+0x44c6 mem_adv_CRC_False_initValue
+0x44c8 mem_CRC16_polynomial
+0x44ca mem_ble_pack_cb
+0x44cc mem_ble_v2_tx_end_dummy
+0x44cc mem_ftd_device_option
+0x44cd mem_light_gm_tx_addr_type
+0x44ce mem_light_gm_tx_len
+0x44cf mem_light_gm_tx_header
+0x44dc mem_light_gm_tx
+0x44dc mem_light_gm_tx_press_time
+0x44dd mem_light_gm_tx_remoter_ID
+0x44de mem_light_gm_tx_remoter_addr
+0x44e0 mem_light_gm_tx_group_num
+0x44e1 mem_light_gm_tx_code
+0x44e2 mem_light_gm_tx_count
+0x44e3 mem_light_gm_tx_sum
+0x44e4 mem_gem_cnt_inces_timeout
+0x44e6 mem_gem_long_keypress_timeout
+0x44e8 mem_gem_long_cnt_enable
+0x44e9 mem_light_KY_tx
+0x44e9 mem_light_KY_tx_header
+0x4500 mem_light_KY_tx_len
+0x4501 mem_light_KY_tx_code1
+0x4502 mem_light_KY_tx_remoter_ID
+0x4506 mem_light_KY_tx_group_num
+0x4507 mem_light_KY_tx_code2
+0x4508 mem_light_KY_tx_sum
+0x450a mem_light_KY_tx_CRC
+0x450c mem_light_KY_tx_count
+0x450e mem_light_group_num
+0x450f mem_light_JYM_whitening_header
+0x451b mem_light_JYM_tx
+0x451b mem_light_JYM_tx_header
+0x4523 mem_light_JYM_tx_len
+0x4524 mem_light_JYM_tx_cmd
+0x4525 mem_light_JYM_tx_ID
+0x4529 mem_light_JYM_tx_group
+0x452a mem_light_JYM_tx_data
+0x452b mem_light_JYM_tx_count
+0x452c mem_light_JYM_tx_sum
+0x452e mem_light_JYM_tx_CRC
+0x4530 mem_light_JYM_tx_temp
+0x4555 mem_adv_cnts
+0x4556 mem_cb_light_ac_detecting
+0x4558 mem_cb_light_gradual_dimmer
+0x455a mem_light_pwm_freq_w
+0x455c mem_light_pwm_freq_y
+0x455e mem_light_pwm_freq_l
+0x4560 mem_light_W_aim_pcnt
+0x4562 mem_light_Y_aim_pcnt
+0x4564 mem_light_L_aim_pcnt
+0x4566 mem_light_gradual_step_w
+0x4567 mem_light_gradual_step_y
+0x4568 mem_light_gradual_step_l
+0x4569 mem_light_mix_change_delay_time
+0x456b mem_temp_flag
+0x456c mem_light_pwm_enable_flag
+0x456d mem_light_gpio_pin_w
+0x456e mem_light_gpio_pin_y
+0x456f mem_light_gpio_pin_l
+0x4556 mem_kscan_record_keypress
+0x455e mem_kscan_row_nums
+0x455f mem_kscan_col_nums
+0x4560 mem_kscan_row_gpio_pin
+0x4568 mem_kscan_col_gpio_pin
+0x4570 mem_kscan_row_scanned
+0x4571 mem_kscan_col_scanned
+0x4572 mem_keypress_analysis_flag
+0x4573 mem_kscan_avoid_shake_delay_time
+0x4575 mem_scan_col
+0x4576 mem_kscan_enable
+0x4577 mem_long_press_adv_timeout
+0x4579 mem_kscan_analysis_interval_timeout
+0x457b mem_FTD_adv_raw_device_add_temp
+0x457d mem_set_clear_code_timeout_enable
+0x457e mem_light_lpm_enable
+0x457f mem_light_manufacture_id
+0x4580 mem_light_indicator_led
+0x4581 mem_groups_num
+0x4582 mem_light_last_key
+0x4583 mem_light_different_key_press_flag
+0x4584 mem_FTD_adv_raw
+0x4584 mem_FTD_adv_raw_cmd
+0x4585 mem_FTD_adv_raw_device_add
+0x4587 mem_FTD_adv_raw_data
+0x458a mem_FTD_adv_raw_packet_num
+0x458b mem_FTD_adv_raw_reserved
+0x458c mem_FTD_adv_raw_encryption
+0x4594 mem_long_press_timeout
+0x4596 mem_light_num_of_long_press
+0x4597 mem_light_color_switch_cnt
+0x4598 mem_light_brightness_switch_flag
+0x4599 mem_light_rgb_hand_actuated_flag
+0x459a mem_rgb_switch
+0x459b mem_light_rgb_auto_flag
+0x459c mem_rgb_on_and_off
+0x459d mem_light_group1_on_and_off_flag
+0x459e mem_light_group2_on_and_off_flag
+0x459f mem_light_group3_on_and_off_flag
+0x45a0 mem_light_group4_on_and_off_flag
+0x45a1 mem_light_current_key
+0x45a2 mem_ble_light_adv_timeout
+0x45a4 mem_light_on_off_alternant
+0x45a5 mem_fan_speed
+0x45a6 mem_fan_direction_alternant
+0x45a7 mem_fan_on_off_flag
+0x45a8 mem_ble_xboxes
+0x4628 mem_adv_packet
+0x4628 mem_adv_packet_header
+0x463f mem_adv_packet_payload
+0x464d mem_adv_packet_tailer
+0x464f mem_light_whitening_buffer
+0x4676 mem_light_whitening_k
+0x4678 mem_light_for_loop_cnt1
+0x4679 mem_light_for_loop_cnt2
+0x467a mem_light_recvd_len
+0x467b mem_light_whitening_i
+0x467c mem_light_whitening_i1
+0x4680 mem_light_whitening_i2
+0x4684 mem_light_whitening_i3
+0x4688 mem_light_whitening_i4
+0x468c mem_light_whitening_n
+0x468d mem_light_para1
+0x4691 mem_light_para2
+0x4696 mem_light_for_loop_lshift
+0x469e mem_light_integer_1_lshift_temp
+0x46a6 mem_light_lpm_enable_timeout
+0x46a8 mem_indicator_turn_on_enable
+0x46a9 mem_indicator_led_turn_on_timeout
+0x46ab mem_light_on_and_off_flag
+0x46ac mem_fan_deflector_flag
+0x46ad mem_light_aid_swtich_flag
+0x46ae mem_light_manufacture_id2
+0x46af mem_light_manufacture_id2_v2
+0x46b0 mem_light_whitening_buffer_2
+0x46d7 mem_ble_v2_pdu_2
+0x46fe mem_light_rgb_on_and_off_flag
+0x46ff mem_rgb_loop_on_and_off
+0x4700 mem_r_g_b_switch_flag
+0x4701 mem_adv_manufacturer_switch_flag
+0x4702 mem_adv_manufacturer_switch_flag1
+0x4703 mem_adv_manufacturer_switch_flag2
+0x4704 mem_adv_manufacturer_switch_flag3
+0x4705 mem_fan_on_and_off_flag
+0x4706 mem_light_release_adv_flag
+0x4707 mem_light_blink_state_flag
+0x4708 mem_light_indicator_led_blink_enable
+0x4709 mem_light_continuous_kps_cnt_reset_timeout
+0x470b mem_light_key1_continuous_kps_cnt
+0x470c mem_light_key2_continuous_kps_cnt
+0x470d mem_light_key3_continuous_kps_cnt
+0x470e mem_light_key4_continuous_kps_cnt
+0x470f mem_light_key5_continuous_kps_cnt
+0x4710 mem_light_key6_continuous_kps_cnt
+0x4711 mem_light_key7_continuous_kps_cnt
+0x4712 mem_light_key8_continuous_kps_cnt
+0x4713 mem_light_key9_continuous_kps_cnt
+0x4714 mem_light_key10_continuous_kps_cnt
+0x4715 mem_light_key11_continuous_kps_cnt
+0x4716 mem_light_key12_continuous_kps_cnt
+0x4717 mem_light_key13_continuous_kps_cnt
+0x4718 mem_light_key14_continuous_kps_cnt
+0x4719 mem_light_key15_continuous_kps_cnt
+0x471a mem_light_key16_continuous_kps_cnt
+0x471b mem_16groups_on_off
+0x471d mem_group_flag
+0x471e mem_channel_enable
+0x471f mem_channel_num
+0x4720 mem_scene_enable
+0x4721 mem_special_agreemeet_enable
+0x4722 mem_light_short_keypress_timeout
+0x4724 mem_light_color_and_lgtness_long_press_adv_enable
+0x4725 mem_airchange_speed
+0x4726 mem_fan_tap_speed
+0x4727 mem_light_airchange_flag
+0x4728 mem_light_warm_wake_flag
+0x4729 mem_light_warm_powerful_flag
+0x472a mem_light_fan_on_and_off
+0x472b mem_light_bath_on_off_flag
+0x472c mem_long_press_protect_enble_flag
+0x472d mem_long_press_protect_cnt
+0x472e mem_long_press_protect_start_flag
+0x472f mem_kscan_press_row_gpio
+0x4737 mem_light_fan_on_and_off_flag
+0x4738 mem_light_lpm_gpio_config_flag
+0x473c mem_light_lpm_gpio_config_io_temp
+0x473d mem_light_timing_of_alter_flag
+0x473e mem_light_adv_packet
+0x473e mem_light_adv_packet_cmd
+0x473f mem_light_adv_packet_addr
+0x4741 mem_light_adv_packet_data
+0x4744 mem_light_adv_packet_packetnum
+0x4745 mem_light_adv_packet_reserve
+0x4746 mem_light_adv_packet_encry
+0x474c mem_light_adv_packet_CRC
+0x474e mem_scene_led_timeout
+0x4750 mem_scene_led_cnt
+0x4751 mem_ble_rx_on_and_off
+0x4752 mem_long_press_scene_timeout
+0x4753 mem_le_adv_scan_channel
+0x4754 mem_le_lap_addr
+0x4758 mem_le_lap_addr_temp
+0x475c mem_le_lap_v2_addr
+0x4760 mem_light_scene_mode
+0x4761 mem_le_addr_change_flag
+0x4762 mem_rmt_keydown_cb
+0x4764 mem_rmt_released_cb
+0x4766 mem_rmt_long_press_cb
+0x4768 mem_rmt_continuous_keydown_cb
+0x476a mem_rmt_continuous_kps_time
+0x476c mem_light_adv_time
+0x476e mem_claer_code_time
+0x4770 mem_ble_v2_customer_id_copy
+0x4771 mem_ftd_fan_cfg_catch
+0x4771 mem_fan_protocol_select_flag
+0x4772 mem_fan_tx_pin
+0x4773 mem_fan_yc_identify_flag
+0x4774 mem_customer_id
+0x4775 mem_customer_id_v2
+0x4776 mem_id_universal
+0x4777 mem_manufacture_id_temp
+0x4778 mem_light_device_flag
+0x4779 mem_ble_ch_mapped
+0x477a mem_ble_v2_decoder
+0x477c mem_light_speed_temp
+0x477d mem_light_blink_count
+0x477e mem_pairing_timeout
+0x4780 mem_light_pairing_enable
+0x4781 mem_light_last_packetnum
+0x4782 mem_yc_fan_ble_addr
+0x4788 mem_recv_addr
+0x478e mem_fan_tx_bits_loop
+0x4790 mem_fan_opcode
+0x4791 mem_fan_tx_cnt
+0x4792 mem_fan_433code_packet//预留8字节
+0x479a mem_fan_tx_loop
+0x479c mem_fan_tx_loop2
+0x479e mem_fan_433_opcode
+0x479f mem_fan_tx_gpio
+0x47a0 mem_fan_tx_gpio_reg
+0x47a2 mem_433_tx_cb
+0x47a4 mem_fan_packet_indiscriminate_cb
+0x47a6 mem_ble_parameter
+0x47a6 mem_ble_parameter_cmd
+0x47a8 mem_ble_parameter_para
+0x47ac mem_ble_parameter_addr
+0x47ae mem_ble_parameter_group
+0x47af mem_fan_addr_433
+0x443c mem_24g_lap
+0x4442 mem_24g_rxbuf
+0x4464 mem_24g_txbuf
+0x4484 mem_24g_txpayload
+0x44a8 mem_24g_rxpayload
+0x44c8 mem_24g_rxdata_length
+0x44c9 mem_24g_pid
+0x44ca mem_24g_no_ack
+0x44cb mem_24g_sta_crc
+0x44ce mem_24g_last_crc
+0x44d1 mem_24g_sta_pid
+0x44d2 mem_24g_last_pid
+0x44d3 mem_24g_datalen
+0x44d4 mem_24g_data_type
+0x44d5 mem_24g_txlen
+0x44d6 mem_24g_rx_window
+0x44d8 mem_24g_ch
+0x44d9 mem_24g_current_ch_number
+0x44da mem_24g_addr
+0x44de mem_24g_ch_map1
+0x44e2 mem_24g_ch_map2
+0x44e6 mem_24g_ch_map3
+0x44ea mem_24g_ch_map4
+0x44ee mem_24g_tx_btclk
+0x44f2 mem_24g_interval
+0x44f3 mem_24g_interval_min
+0x44f4 mem_24g_interval_max
+0x44f5 mem_24g_syncword
+0x44f7 mem_24g_syncword_crc8
+0x44f8 mem_24g_get_syncword_crc8
+0x44f9 mem_24g_pair_switch
+0x44fa mem_24g_enter_hibernate
+0x4502 mem_24g_rx_phy
+0x4503 mem_24g_tx_phy
+0x4504 mem_24g_ch_map_update
+0x4505 mem_24g_ch_update_map1
+0x4509 mem_24g_ch_update_map2
+0x450d mem_24g_ch_update_map3
+0x4511 mem_24g_ch_update_map4
+0x4515 mem_24g_disable_fec1
+0x4516 mem_24g_off_type
+0x4517 mem_24g_pair_addr
+0x451b mem_24g_pair_ch
+0x451c mem_24g_pair_tx_power
+0x451d mem_rssi_buff_index
+0x451e mem_24g_device1_bind_step
+0x451f mem_24g_device2_bind_step
+0x4520 mem_24g_bind_device_status
+0x4521 mem_24g_bind_payload
+0x4529 mem_24g_device1_bind_disable
+0x452a mem_24g_device2_bind_disable
+0x452b mem_cb_24g_receive_process
+0x452d mem_cb_24g_ackpayload
+0x452f mem_cb_24g_data_device1
+0x4531 mem_cb_24g_data_device2
+0x4533 mem_24g_rxdata_temp
+0x4555 mem_24g_abort_packet
+0x4556 mem_24g_hop_btclk
+0x455a mem_24g_hop_interval
+0x455b mem_24g_pair_mode
+0x455c mem_24g_ackpayload_enable
+0x455d mem_24g_hop_packet
+0x455e mem_24g_mode_switch
+0x455f mem_24g_nodata_timer_enable
+0x4560 mem_24g_mode_init
+0x4561 mem_24g_work_mode
+0x4562 mem_24g_time_slice
+0x4563 mem_24g_self_last_ch
+0x4564 mem_24g_self_ch_number
+0x4565 mem_24g_self_config_ch_once
+0x4566 mem_24g_device1_last_ch
+0x4567 mem_24g_device1_ch_number
+0x4568 mem_24g_device1_config_ch_once
+0x4569 mem_24g_device2_last_ch
+0x456a mem_24g_device2_ch_number
+0x456b mem_24g_device2_config_ch_once
+0x456c mem_24g_led_status
+0x456d mem_24g_bind_mode_continue
+0x456e mem_tx_power_temp
+0x456f mem_24g_mode_B_S_switch
+0x4570 mem_24g_mode_B_S_switch_init
+0x4571 mem_24g_mode_B_S_switch_cnt
+0x4573 mem_24g_mode_B_S_switch_exit
+0x4574 mem_24g_B_S_time_slice
+0x4575 mem_24g_B_S_mode_switch_disable
+0x4576 mem_24g_bind_device_living
+0x4577 mem_24g_transmitter_addr
+0x457b mem_24g_device1_addr
+0x457f mem_24g_device2_addr
+0x4583 mem_rssi_noise_avg
+0x4584 mem_rssi_noise_index
+0x4585 mem_rssi_noise_self_avg
+0x4586 mem_rssi_noise_device1_avg
+0x4587 mem_rssi_noise_device2_avg
+0x4588 mem_rssi_noise_self_index
+0x4589 mem_rssi_noise_device1_index
+0x458a mem_rssi_noise_device2_index
+0x458b mem_rssi_noise_buffer_ptr
+0x458d mem_rssi_noise_self_buffer_ptr
+0x458f mem_rssi_noise_device1_buffer_ptr
+0x4591 mem_rssi_noise_device2_buffer_ptr
+0x4593 mem_car_hard_soft_switch
+0x4594 mem_car_queue_each_size
+0x4595 mem_car__queue_length
+0x4596 mem_car_queue_curr_num
+0x4597 mem_car_queue_read_ptr
+0x4598 mem_car_queue_write_ptr
+0x4599 mem_car_queue_ele
+0x4611 mem_car_pop_queue_buff
+0x4625 mem_car_led_num
+0x4626 mem_car_led_map
+0x4630 mem_car_style1_led_type
+0x4631 mem_car_style1_blink_count
+0x4632 mem_car_style1_struct_led_gpio
+0x4633 mem_car_style1_on_time
+0x4635 mem_car_style1_off_time
+0x4637 mem_car_style1_cb_ledon
+0x4639 mem_car_style1_cb_ledoff
+0x463b mem_car_style2_led_type
+0x463c mem_car_style2_blink_count
+0x463d mem_car_style2_struct_led_gpio
+0x463e mem_car_style2_on_time
+0x4640 mem_car_style2_off_time
+0x4642 mem_car_style2_cb_ledon
+0x4644 mem_car_style2_cb_ledoff
+0x4646 mem_le_receive_data
+0x4646 mem_le_receive_packet_head
+0x4648 mem_le_receive_cmd
+0x4649 mem_le_receive_length
+0x464b mem_le_receive_payload
+0x4655 mem_le_receive_checksum
+0x4656 mem_motor1_status
+0x4657 mem_motor1_speed
+0x4658 mem_motor2_status
+0x4659 mem_motor2_speed
+0x465a mem_motor3_status
+0x465b mem_motor3_speed
+0x465c mem_motor1_pwm_set
+0x465c mem_motor1_pwm_pin1_set
+0x465d mem_motor1_pwm_pin2_set
+0x465e mem_motor1_pwm_pin_set
+0x465f mem_motor1_pwm_channel_set
+0x4660 mem_motor1_pwm_freq_set
+0x4663 mem_motor1_pwm_dute_set
+0x4664 mem_motor2_pwm_set
+0x4664 mem_motor2_pwm_pin1_set
+0x4665 mem_motor2_pwm_pin2_set
+0x4666 mem_motor2_pwm_pin_set
+0x4667 mem_motor2_pwm_channel_set
+0x4668 mem_motor2_pwm_freq_set
+0x466b mem_motor2_pwm_dute_set
+0x466c mem_motor3_pwm_set
+0x466c mem_motor3_pwm_pin1_set
+0x466d mem_motor3_pwm_pin2_set
+0x466e mem_motor3_pwm_pin_set
+0x466f mem_motor3_pwm_channel_set
+0x4670 mem_motor3_pwm_freq_set
+0x4673 mem_motor3_pwm_dute_set
+0x4674 mem_motor_select_p_n
+0x4675 mem_car_motor_status
+0x4676 mem_car_motor_speed
+0x4677 mem_motor_pwm_set
+0x4677 mem_motor_pwm_pin1_set
+0x4678 mem_motor_pwm_pin2_set
+0x4679 mem_motor_pwm_pin_set
+0x467a mem_motor_pwm_channel_set
+0x467b mem_motor_pwm_freq_set
+0x467e mem_motor_pwm_dute_set
+0x467f mem_ir_rx_gpio
+0x4680 mem_ir_data
+0x4682 mem_ir_rx_buf
+0x4684 mem_ir_receive_clkn
+0x4688 mem_ir_notify_data
+0x468b mem_ir_notify_data_head
+0x4690 mem_ir_notify_data_payload
+0x4692 mem_ir_notify_data_check_sum
+0x4693 mem_car_ir_breakdown_check_timer
+0x4694 mem_car_ir_breakdown_flag
+0x4695 mem_car_led_control
+0x4695 mem_car_led1_status
+0x4696 mem_car_led2_status
+0x4697 mem_car_led3_status
+0x4698 mem_car_led4_status
+0x4699 mem_car_led5_status
+0x469a mem_car_led6_status
+0x469b mem_car_led7_status
+0x469c mem_car_led8_status
+0x469d mem_car_led_control_timer
+0x469e mem_car_led_blink_status
+0x469f mem_car_led_no
+0x46a0 mem_car_info_request
+0x46a3 mem_car_info_request_head
+0x46a8 mem_car_info_request_payload
+0x46b0 mem_car_info_request_checksum
+0x46b1 mem_car_config_param
+0x46b1 mem_car_config_setting_flag
+0x46b2 mem_car_config_device_select
+0x46b3 mem_car_config_motor_layout
+0x46b4 mem_car_config_ir_enable
+0x46b5 mem_car_config_ir_rx_gpio
+0x46b6 mem_car_config_pairing_led_conn_status
+0x46b7 mem_car_config_pairing_led_gpio
+0x46b8 mem_car_config_led_num
+0x46b9 mem_car_config_blood_led_gpio
+0x46b9 mem_car_config_blood_led1_gpio
+0x46ba mem_car_config_blood_led2_gpio
+0x46bb mem_car_config_blood_led3_gpio
+0x46bc mem_car_config_blood_led4_gpio
+0x46bd mem_car_config_blood_led5_gpio
+0x46be mem_car_config_blood_led6_gpio
+0x46bf mem_car_config_blood_led7_gpio
+0x46c0 mem_car_config_blood_led8_gpio
+0x46c1 mem_car_config_bat_notify_enable
+0x46c2 mem_car_config_low_voltage_led_gpio
+0x46c3 mem_car_config_low_voltage_percent
+0x46c4 mem_car_config_soft_switch_enable
+0x46c5 mem_car_config_soft_switch_gpio
+0x46c6 mem_car_notify_vdd_count
+0x46c7 mem_car_notify_vdd_timer
+0x46c8 mem_car_notify_vdd_value_last
+0x46c9 mem_car_notify_vdd_percent
+0x46ca mem_car_working_flag
+0x46cb mem_low_bat_flag
+0x46cc mem_notify_bat_packet
+0x46cf mem_notify_bat_head
+0x46d4 mem_notify_bat_payload
+0x46d5 mem_notify_bat_check_sum
+0x46d6 mem_vdd_notify_flag
+0x46d7 mem_car_current_vdd_value_temp
+0x46d9 mem_car_last_vdd_value
+0x46db mem_vdd_calculate_set
+0x46db mem_vdd_full_vol
+0x46dd mem_vdd_empty_vol
+0x46df mem_vdd_low_vol
+0x46e1 mem_vdd_now_vol
+0x46e3 mem_car_24g_status
+0x46e4 mem_car_24g_no_data_timeout_count
+0x46e6 mem_car_24g_no_data_timeout_timer
+0x46e8 mem_car_24g_ir_receive_attack_count
+0x46e9 mem_car_24g_go_die_flag
+0x46ea mem_car_attack_shake_timer
+0x46eb mem_car_attack_shake_flag
+0x46ec mem_car_soft_power
+0x46ec mem_car_power_state
+0x46ed mem_car_power_timer
+0x46ee mem_car_power_off_timeout
+0x46ef mem_car_power_starting_timeout
+0x46f0 mem_car_power_off_cb
+0x46f2 mem_car_power_starting_cb
+0x46f4 mem_car_power_standby_cb
+0x46f6 mem_car_ui_button_up_cb
+0x46f8 mem_car_le_att_list
+0x48ec mem_car_moto1_blank_timer
+0x48ed mem_car_moto2_blank_timer
+0x48ee mem_car_moto3_blank_timer
+0x48ef mem_car_motor_gpio_num
+0x48f0 mem_car_motor_gpio_map
+0x48f0 mem_car_motor_left_gpio
+0x48f1 mem_car_motor_right_gpio
+0x48f2 mem_car_motor_front_gpio
+0x48f3 mem_car_motor_back_gpio
+0x48f4 mem_car_gpio
+0x48f5 mem_car_app_send_speed
+0x48f6 mem_rssi_sum
+0x48f8 mem_check_rssi_high_count
+0x48fa mem_rssi_data
+0x4902 mem_car_24g_received_pac
+0x4903 mem_car_24g_bind_enable_delay_count
+0x4904 mem_car_keyscan
+0x4904 mem_car_key_num
+0x4905 mem_cb_car_keyscan
+0x4907 mem_car_enter_lpm_timer_count
+0x4909 mem_car_enter_lpm_timer
+0x490b mem_car_enter_lpm_flag
+0x490c mem_car_24g_ch_polling
+0x490d mem_car_rssi_noise_buffer
+0x4915 mem_car_rssi_noise_car_buffer
+0x491d mem_car_rssi_noise_remote_buffer
+0x4925 mem_car_24g_commom_addr
+0x4929 mem_car_24g_commom_addr_temp
+0x492d mem_car_24g_commom_addr_read
+0x4931 mem_car_save_addr_flag
+0x4932 mem_ble_att_list
+0x4593 mem_dg_kb_bind_flag
+0x4594 mem_dg_kb_data_sta_data
+0x459c mem_dg_kb_data_last_data
+0x45a4 mem_dg_kb_multikey_sta_data
+0x45a7 mem_dg_kb_multikey_last_data
+0x45aa mem_dg_kb_system_sta_data
+0x45ad mem_dg_kb_system_last_data
+0x45b0 mem_dg_kb_blank_data_enable
+0x45b1 mem_dg_kb_mul_blank_data_enable
+0x45b2 mem_dg_ms_blank_data_enable
+0x45b3 mem_dg_sys_config
+0x45b4 mem_dg_usb_vid_pid
+0x45bd mem_dg_usb_tx_interval
+0x45be mem_dg_usb_device_name
+0x45dc mem_dg_kb_bind_success
+0x45dd mem_dg_pc_sleep_flag
+0x45de mem_dg_usb_device_iserial_number
+0x45df mem_dg_24g_tx_power_default
+0x451e mem_rssi_hex_received
+0x451f mem_24g_pair_sm
+0x4520 mem_24g_pair_no_ack
+0x4521 mem_24g_pair_timeout_init
+0x4523 mem_24g_pair_timeout
+0x4525 mem_24g_pair_count
+0x4527 mem_24g_reconn_timeout_init
+0x4529 mem_24g_reconn_timeout
+0x452b mem_24g_reconn_count
+0x452d mem_24g_reconn_type
+0x452e mem_24g_fast_conn_enable
+0x452f mem_24g_fast_conn_addr
+0x4533 mem_24g_receiver_addr
+0x4537 mem_24g_fast_conn_temp_ch
+0x4538 mem_24g_receiver_temp_ch
+0x4539 mem_24g_device_temp_ch
+0x453a mem_rssi_signal_index
+0x453b mem_rssi_signal_buf_ptr
+0x453d mem_cb_24g_transmit_data
+0x453f mem_cb_24g_search_receiver
+0x4541 mem_cb_24g_lpm_before
+0x4543 mem_cb_24g_transmit_short_sleep
+0x4545 mem_cb_24g_transmit_long_sleep
+0x4547 mem_24g_conn_sm
+0x4548 mem_24g_ensure
+0x4549 mem_24g_txfail_cnt
+0x454b mem_24g_attempt_fail_flag
+0x454c mem_24g_retry
+0x454d mem_24g_abort_pac
+0x454e mem_24g_max_retry
+0x454f mem_24g_device_addr
+0x4553 mem_24g_short_sleep_set
+0x4556 mem_24g_long_sleep_set
+0x455e mem_24g_long_sleep_set1
+0x4562 mem_24g_pac_index
+0x4563 mem_24g_transmit_by_interrupt
+0x4564 mem_24g_transmit_by_interrupt_exit_count
+0x4566 mem_24g_transmit_by_interrupt_exit_count_init
+0x4568 mem_24g_long_sleep_param_update_timer_init
+0x456a mem_24g_long_sleep_param_update_timer
+0x456c mem_24g_fast_hop_count
+0x456d mem_24g_retransmit
+0x456f mem_rssi_avg_received
+0x4570 mem_power_ctrl_level
+0x4571 mem_power_ctrl_pac_succ_cnt
+0x4572 mem_power_ctrl_pac_succ_cnt_init
+0x4573 mem_rssi_dis_min_24g
+0x4574 mem_rssi_dis_max_24g
+0x4575 mem_rssi_hex_received_max_value
+0x4576 mem_rssi_dis_min_ble
+0x4577 mem_rssi_dis_max_ble
+0x4578 mem_mouse_key
+0x4579 mem_mouse_x
+0x457b mem_mouse_y
+0x457d mem_mouse_z
+0x457e mem_mouse_tz
+0x457f mem_mouse_xy_h
+0x4580 mem_mouse_key_last
+0x4581 mem_wheel_tb_old_pinlevel
+0x4582 mem_wheel_tb_new_pinlevel
+0x4583 mem_wheel_tog
+0x4584 mem_mouse_tz_data
+0x4585 mem_mwheel_b_old_pinlevel
+0x4586 mem_mwheel_b_new_pinlevel
+0x4587 mem_mwheel_tog
+0x4588 mem_mouse_z_data
+0x4589 mem_mouse_wheel_trigger
+0x458a mem_mouse_wheel_trigger_timer
+0x458b mem_mouse_vdd_calculate_set
+0x458b mem_mouse_vdd_full_vol
+0x458d mem_mouse_vdd_empty_vol
+0x458f mem_mouse_vdd_low_vol
+0x4591 mem_mouse_vdd_now_vol
+0x4593 mem_mouse_vdd_button_press_vol
+0x4595 mem_mouse_vdd_switch_gnd_24g_vol
+0x4597 mem_mouse_vdd_switch_gnd_full_vol
+0x4599 mem_mouse_vdd_switch_gnd_shutdown_voltage
+0x459b mem_mouse_vdd_switch_gnd_low_voltage
+0x459d mem_adc_mux_status
+0x459e mem_adc_read_timer
+0x459f mem_adc_read_time_init
+0x45a0 mem_adc_low_volatage_led_timer_count
+0x45a1 mem_adc_low_volatage_led_blink_enable
+0x45a2 mem_mouse_adc_last_low_voltage_flag
+0x45a3 mem_mouse_adc_button_press_flag
+0x45a4 mem_adc_channel_gpio
+0x45a5 mem_adc_config_flag_init
+0x45a6 mem_mouse_discovery_timeout
+0x45a8 mem_mouse_24g_pair_timeout_init
+0x45aa mem_mouse_direct_timeout
+0x45ab mem_mouse_24g_reconn_timeout_init
+0x45ac mem_mouse_24g_pair_tx_power
+0x45ad mem_rssi_dis_min_24g_init
+0x45ae mem_rssi_dis_max_24g_init
+0x45af mem_rssi_hex_received_max_value_init
+0x45b0 mem_rssi_dis_min_ble_init
+0x45b1 mem_rssi_dis_max_ble_init
+0x45b2 mem_mouse_enable_flag
+0x45b3 mem_mouse_param_config
+0x45b3 mem_lbutton_gpio
+0x45b4 mem_mbutton_gpio
+0x45b5 mem_rbutton_gpio
+0x45b6 mem_bk_button_gpio
+0x45b7 mem_fw_button_gpio
+0x45b8 mem_dpi_button_gpio
+0x45b9 mem_whee_a_data_gpio
+0x45ba mem_whee_b_data_gpio
+0x45bb mem_mouse_sensor_sclk_gpio
+0x45bc mem_mouse_sensor_sdio_gpio
+0x45bd mem_select_sensor_angle_gpio
+0x45be mem_sensor_angle_default
+0x45bf mem_sensor_angle_switch
+0x45c0 mem_config_sensor_dpi
+0x45c1 mem_whee_ta_data_gpio
+0x45c2 mem_whee_tb_data_gpio
+0x45c3 mem_matrix_public_gpio
+0x45c4 mem_config_select_device_button_gpio
+0x45c5 mem_customer_key_gpio
+0x45c6 mem_sensor_motion_gpio
+0x45c7 mem_device_switch_gpio
+0x45c8 mem_mouse_reuse_2ice_gpio
+0x45c9 mem_config_low_voltage_alarm_gpio
+0x45ca mem_config_device_24g_led_gpio
+0x45cb mem_config_device_bt1_led_gpio
+0x45cc mem_config_device_bt2_led_gpio
+0x45cd mem_dpi_led_gpio
+0x45ce mem_dpi_another_button_gpio
+0x45cf mem_firebutton_gpio
+0x45d0 mem_mouse_1io2led_multi_24g_gpio
+0x45d1 mem_mouse_1io2led_multi_bt1_gpio
+0x45d2 mem_mouse_1io2led_multi_bt2_gpio
+0x45d3 mem_mouse_logo_led_gpio
+0x45d4 mem_mouse_param_config_end
+0x45d4 mem_config_sensor_type
+0x45d5 mem_config_sensor_angle
+0x45d6 mem_wire_usb_interval
+0x45d7 mem_usb_addr
+0x45d8 mem_mouse_usb_vdd_status
+0x45d9 mem_mouse_usb_keyboard_flag
+0x45da mem_mouse_led_type
+0x45db mem_mouse_blink_count
+0x45dc mem_mouse_struct_led_gpio
+0x45dd mem_mouse_on_time
+0x45df mem_mouse_off_time
+0x45e1 mem_mouse_cb_ledon
+0x45e3 mem_mouse_cb_ledoff
+0x45e5 mem_mouse_information_start
+0x45e5 mem_device_flag
+0x45e6 mem_device1_type
+0x45e7 mem_device1_addr
+0x45ed mem_device1_link_key
+0x45fd mem_device1_locall_addr
+0x4603 mem_device2_type
+0x4604 mem_device2_addr
+0x460a mem_device2_link_key
+0x461a mem_device2_locall_addr
+0x4620 mem_device3_type
+0x4621 mem_mouse_compare_addr_ff
+0x4621 mem_device3_addr
+0x4627 mem_device3_link_key
+0x4637 mem_device3_locall_addr
+0x463d mem_store_flag
+0x463f mem_mouse_dpi
+0x4640 mem_mouse_24g_addr
+0x4644 mem_random_addr_increase_count
+0x4646 mem_mouse_retention
+0x4665 mem_mouse_information_end
+0x4665 mem_flash_base
+0x4668 mem_write_flash_head_temp
+0x466c mem_store_information_delay_timer
+0x466d mem_store_information_delay_timer_init
+0x466e mem_sensor_id1
+0x466f mem_sensor_id2
+0x4670 mem_sensor_shutter_hi
+0x4671 mem_sensor_shutter_lo
+0x4672 mem_sensor_smart_flag
+0x4673 mem_sensor_squal_reg
+0x4674 mem_sensor_iqc
+0x4675 mem_mouse_move_flag
+0x4676 mem_mouse_asm_flag
+0x4677 mem_mouse_x_pre
+0x4679 mem_mouse_y_pre
+0x467b mem_mouse_data_xtemp
+0x467c mem_mouse_data_ytemp
+0x467d mem_mouse_dpi_seting
+0x467d mem_320x_dpi_0
+0x467e mem_320x_dpi_1
+0x467f mem_320x_dpi_2
+0x4680 mem_320x_dpi_3
+0x4681 mem_3212_dpi_0
+0x4682 mem_3212_dpi_1
+0x4683 mem_3212_dpi_2
+0x4684 mem_3212_dpi_3
+0x4685 mem_ka8g2_dpi_0
+0x4686 mem_ka8g2_dpi_1
+0x4687 mem_ka8g2_dpi_2
+0x4688 mem_ka8g2_dpi_3
+0x4689 mem_mouse_cpi_count
+0x468a mem_mouse_dpi_button_state
+0x468b mem_mouse_dpi_long_press_flag
+0x468c mem_sensor_3212_init
+0x4696 mem_sensor_3204_init
+0x46a0 mem_sensor_3205_init
+0x46aa mem_sensor_32xx_init
+0x46c4 mem_sensor_32xx_init_1
+0x46e6 mem_sensor_8650_init
+0x470c mem_sensor_ka8ul_init
+0x472a mem_sensor_8009_init
+0x473a mem_sensor_ka8g2_init
+0x474a mem_sensor_p6520_init
+0x4756 mem_sensor_poweron_init
+0x475e mem_sensor_ka8g2_poweron_init
+0x4766 mem_mouse_clear_sensor_data_flag
+0x4767 mem_bluetooth_125hz_cnt
+0x4768 mem_mouse_long_mult_flag
+0x4769 mem_mouse_current_mult_timer
+0x476a mem_reconn_times
+0x476b mem_reconn_times_init
+0x476c mem_mouse_no_data_timer
+0x476e mem_device_flag_temp
+0x476f mem_mouse_rssi_signal_buf
+0x4777 mem_btclk_sensor
+0x477b mem_mouse_bluetooth_fast_conn_flag
+0x477c mem_mouse_discovery_timer
+0x477e mem_mouse_bluetooth_reconnect_timeout
+0x477f mem_mouse_need_soft_reset
+0x4780 mem_mouse_le_bb_connected_flag
+0x4781 mem_mouse_le_reconnect_flag
+0x4782 mem_mouse_send_secutiry_request_timer
+0x4783 mem_mouse_le_lap_temp
+0x4786 mem_le_adv_ind
+0x4789 mem_le_adv_direct_ind
+0x478c mem_le_adv_swift_pair
+0x47a0 mem_le_data_len
+0x47a1 mem_le_keyboard_handle
+0x47a3 mem_le_multimedia_handle
+0x47a5 mem_le_systemctrl_handle
+0x47a7 mem_le_battery_level_handle
+0x47a9 mem_le_battery_level_percentage
+0x47aa mem_le_battery_level_updata_timer_init
+0x47ac mem_le_battery_level_updata_timer
+0x47ae mem_mouse_le_conn_param_reject
+0x47af mem_le_tx_buffer0_omemalloc
+0x47cf mem_le_tx_buffer1_omemalloc
+0x47ef mem_le_tx_buffer2_omemalloc
+0x480f mem_le_tx_buffer3_omemalloc
+0x482f mem_le_connect_status_flag
+0x4830 mem_le_start_encrypt_timer
+0x4831 mem_mouse_direct_timer
+0x4832 mem_device_addr_temp
+0x4839 mem_mouse_bt_boot_mode
+0x483a mem_mouse_bt_boot_data
+0x483f mem_bt_send_max_slot_req_accept_after_switch
+0x4840 mem_mouse_bt_send_first_package_timer
+0x4841 mem_mouse_bt_send_first_package_flag
+0x4842 mem_lmi_opcode_temp
+0x4843 mem_lpm_mult_init
+0x4844 mem_customer_key
+0x4845 mem_customer_data_trigger
+0x4846 mem_customer_data_trigger_last
+0x4847 mem_mouse_lkey_press_status
+0x4848 mem_mouse_rkey_press_status
+0x4849 mem_mouse_mkey_press_status
+0x484a mem_mouse_bkkey_press_status
+0x484b mem_mouse_fwkey_press_status
+0x484c mem_mouse_dpikey_press_status
+0x484d mem_mouse_pbkey_press_status
+0x484e mem_mouse_customerkey_press_status
+0x484f mem_mouse_key_temp
+0x4850 mem_mouse_key_status
+0x4851 mem_mouse_matrix_key_cow_count
+0x4852 mem_mouse_matrix_key_row_count
+0x4853 mem_mouse_ghost_flag
+0x4854 mem_bt_discovery_count
+0x4855 mem_select_device_count
+0x4856 mem_mouse_commbination_key
+0x4857 mem_select_device_button_statue
+0x4858 mem_commbination_key_statue
+0x4859 mem_combination_ui_button_count
+0x485a mem_mouse_search_dongle_interval
+0x485b mem_mouse_search_dongle_ch
+0x485c mem_mouse_search_dongle_count
+0x485d mem_mouse_search_dongle_action
+0x485e mem_24g_enter_lpm_timer
+0x485f mem_mouse_24g_enter_lpm_enable
+0x4860 mem_mouse_device_poweron_timer_count
+0x4861 mem_mouse_dpi_led_delay_count
+0x4862 mem_mouse_led_off_4_led
+0x4863 mem_24g_device_led_status
+0x4864 mem_mouse_flag
+0x486c mem_device_number
+0x486d mem_mouse_page_to
+0x486f mem_mouse_fast_direct_timeout
+0x4870 mem_mouse_fast_page_to
+0x4872 mem_mouse_24g_power_on_fast_conn_timer
+0x4874 mem_mouse_24g_search_dongle_time_init
+0x4876 mem_mouse_no_data_timeout
+0x4878 mem_mouse_device_poweron_timer_count_init
+0x4879 mem_mouse_dpi_led_delay_count_init
+0x487a mem_mouse_dpi_led_blink_time
+0x487c mem_mouse_disconvey_led_blink_time
+0x487e mem_mouse_low_v_led_blink_time
+0x4880 mem_adc_low_volatage_led_blink_timer
+0x4882 mem_mouse_commbination_key_bt
+0x4883 mem_mouse_commbination_key_24g
+0x4884 mem_customer_key_press
+0x488d mem_customer_key_release
+0x4896 mem_mouse_set_high_impedance_bit_set
+0x4899 mem_sensor_shutdown_flag
+0x489a mem_24g_long_sleep_set_level
+0x489b mem_tx_power_factory_param
+0x489d mem_mouse_another_dpi_connect_vin_flag
+0x489e mem_dpi_another_press_status
+0x489f mem_dpi_another_button_state
+0x48a0 mem_dpi_another_button_down_enable
+0x48a1 mem_mouse_key_temp_patch
+0x48a2 mem_mouse_firebutton_connect_vin_flag
+0x48a3 mem_fire_key_status
+0x48a4 mem_fire_key_delay
+0x48a8 mem_fire_key_flag
+0x48a9 mem_le_name_len_temp
+0x48aa mem_le_name_temp
+0x48bd mem_mouse_1io2led_led_enable
+0x48be mem_mouse_multi_led_blink_enable
+0x48bf mem_mouse_bt_led_recon_effect_flag
+0x48c0 mem_mouse_multi_led_type
+0x48c1 mem_mouse_multi_led_poweron2s_flag_init
+0x48c2 mem_mouse_multi_led_poweron2s_flag
+0x48c3 mem_mouse_multi_led_powon2s_timer_init
+0x48c4 mem_mouse_multi_led_powon2s_timer
+0x48c5 mem_mouse_multi_led_blink_timer_init
+0x48c6 mem_mouse_multi_led_blink_timer
+0x48c7 mem_mouse_multi_led_state
+0x48c8 mem_mouse_logo_led_on_time_init
+0x48ca mem_mouse_le_send_conn_param_update
+0x48cb mem_mouse_le_send_conn_param_update_timer
+0x48cc mem_mouse_24g_short_sleep_set_4ms
+0x48cf mem_mouse_24g_long_sleep_set_4ms
+0x48d2 mem_mouse_24g_fast_hop_count_4ms
+0x48d3 mem_mouse_24g_short_sleep_set_8ms
+0x48d6 mem_mouse_24g_long_sleep_set_8ms
+0x48d9 mem_mouse_24g_fast_hop_count_8ms
+0x48da mem_mouse_24g_tsniff
+0x48de mem_mouse_24g_tsniff_4ms
+0x48e2 mem_mouse_24g_tsniff_8ms
+0x48e6 mem_mouse_24g_short_sleep_set_init
+0x48e9 mem_mouse_24g_tx_count
+0x48ea mem_mouse_24g_tx_time_last
+0x48f0 mem_mouse_24g_tx_time_last_delt
+0x48f4 mem_mouse_24g_tx_time_sum
+0x48f9 mem_mouse_24g_tx_time_sum_count
+0x48fa mem_mouse_24g_tx_time_offset
+0x48fb mem_mouse_24g_sleep_miss
+0x48fc mem_mouse_24g_sleep_time_temp
+0x4900 mem_mouse_24g_sleep_miss_temp
+0x4904 mem_mouse_sleep_deal_type
+0x4905 mem_mouse_24g_long_sleep_flag
+0x4906 mem_mouse_dpi_last
+0x4907 mem_mouse_dpi_temp
+0x4908 mem_mouse_otp_dpi_value
+0x4909 mem_mouse_24g_addr_last
+0x490d mem_mouse_24g_addr_temp
+0x4911 mem_mouse_ice_sdio_for_sensor_angle
+0x4912 mem_mouse_logo_enable_gpio0
+0x443c mem_shutter_bluetooth_type
+0x443d mem_shutter_config_eeprom_offset_addr
+0x443f mem_shutter_config_eeprom_start_flag
+0x4441 mem_shutter_config_user_size
+0x4442 mem_shutter_config_label
+0x4443 mem_shutter_config_otp_addr
+0x4445 mem_classic_shutter_random_mac_offset_addr
+0x4447 mem_ble_shutter_enable_notify
+0x4448 mem_ble_shutter_reconn_adv_interval
+0x444a mem_ble_shutter_discovery_adv_interval
+0x444c mem_ble_shutter_reconn_timeout
+0x444e mem_ble_shutter_reconn_timer
+0x4450 mem_ble_shutter_reconn_blink_on_time
+0x4452 mem_ble_shutter_reconn_blink_off_time
+0x4454 mem_ble_shutter_discovery_blink_on_time
+0x4456 mem_ble_shutter_discovery_blink_off_time
+0x4458 mem_ble_shutter_interval_min
+0x445a mem_ble_shutter_interval_max
+0x445c mem_ble_shutter_latency
+0x445e mem_ble_shutter_timeout
+0x4460 mem_ble_shutter_interval_min_new
+0x4462 mem_ble_shutter_interval_max_new
+0x4464 mem_ble_shutter_latency_new
+0x4466 mem_ble_shutter_timeout_new
+0x4468 mem_classic_shutter_discovery_timeout
+0x446a mem_classic_shutter_connect_timeout
+0x446c mem_ble_shutter_discovery_timeout
+0x446e mem_ble_shutter_connect_timeout
+0x4470 mem_shutter_sleep_timeout
+0x4472 mem_shutter_sleep_timer
+0x4474 mem_shutter_hard_soft_switch_case
+0x4475 mem_shutter_soft_switch_button_gpio
+0x4476 mem_shutter_soft_switch_power_state
+0x4477 mem_shutter_soft_switch_poweron_time
+0x4478 mem_shutter_soft_switch_poweroff_time
+0x4479 mem_shutter_soft_switch_poweron_callback_function
+0x447b mem_shutter_soft_switch_poweroff_callback_function
+0x447d mem_shutter_keyscan
+0x447d mem_shutter_key_num
+0x447e mem_cb_shutter_keycan
+0x4480 mem_shutter_key_conf0
+0x4481 mem_shutter_key_conf1
+0x4482 mem_shutter_key_conf2
+0x4483 mem_shutter_key_conf3
+0x4484 mem_shutter_key_conf4
+0x4485 mem_shutter_key_conf5
+0x4486 mem_shutter_key_conf6
+0x4487 mem_shutter_key_conf7
+0x4488 mem_key0_press
+0x448d mem_key1_press
+0x4492 mem_key2_press
+0x4497 mem_key3_press
+0x449c mem_key4_press
+0x44a1 mem_key5_press
+0x44a6 mem_key6_press
+0x44ab mem_key7_press
+0x44b0 mem_key0_release
+0x44b5 mem_key1_release
+0x44ba mem_key2_release
+0x44bf mem_key3_release
+0x44c4 mem_key4_release
+0x44c9 mem_key5_release
+0x44ce mem_key6_release
+0x44d3 mem_key7_release
+0x44d8 mem_ble_data_buffer1
+0x44dd mem_ble_data_buffer2
+0x44e2 mem_ble_data_buffer3
+0x44e7 mem_ble_data_buffer4
+0x44ec mem_ble_data_buffer5
+0x44f1 mem_ble_data_buffer6
+0x44f6 mem_ble_data_buffer7
+0x44fb mem_ble_data_buffer8
+0x4500 mem_ble_data_buffer9_58
+0x4532 mem_classic_data_buffer
+0x4537 mem_classic_data_buffer1
+0x453c mem_classic_data_buffer2
+0x4541 mem_classic_data_buffer3
+0x4546 mem_classic_data_buffer4
+0x454b mem_classic_data_buffer5
+0x4550 mem_classic_data_buffer6
+0x4555 mem_classic_data_buffer7
+0x455a mem_classic_data_buffer8
+0x455f mem_classic_data_buffer9_58
+0x4591 mem_queue_each_size
+0x4592 mem_queue_length
+0x4593 mem_queue_curr_num
+0x4594 mem_queue_read_ptr
+0x4595 mem_queue_write_ptr
+0x4596 mem_queue_ele
+0x45b6 mem_shutter_nv_data
+0x4660 mem_shutter_led_struct_app_led
+0x4660 mem_shutter_led_struct_app_led_type
+0x4661 mem_shutter_led_struct_app_led_blink_count
+0x4662 mem_shutter_led_struct_app_led_gpio
+0x4663 mem_shutter_led_struct_app_led_on_time
+0x4665 mem_shutter_led_struct_app_led_off_time
+0x4667 mem_shutter_led_struct_app_led_on_callback
+0x4669 mem_shutter_led_struct_app_led_off_callback
+0x466b mem_shutter_power_off_led_style
+0x466b mem_shutter_power_off_led_style_type
+0x466c mem_shutter_power_off_led_style_blink_count
+0x466d mem_shutter_power_off_led_style_gpio
+0x466e mem_shutter_power_off_led_style_on_time
+0x4670 mem_shutter_power_off_led_style_off_time
+0x4672 mem_shutter_power_off_led_style_on_callback
+0x4674 mem_shutter_power_off_led_style_off_callback
+0x4676 mem_shutter_soft_swtich_botton_down
+0x4677 mem_shutter_soft_swtich_led_struct_temp
+0x4682 mem_shutter_power_off_timeout
+0x4683 mem_shutter_power_off_timer
+0x4684 mem_shutter_key_conf0_temp
+0x4686 mem_shutter_led_struct_app_led_gpio_temp
+0x4687 mem_shutter_hard_soft_switch_case_temp
+0x4688 mem_shutter_soft_switch_button_gpio_temp
+0x4689 mem_shutter_soft_switch_first_power_on
+0x468a mem_shutter_dy_conf
+0x468b mem_shutter_le_uuid_sup
+0x4807 mem_shutter_key_value_list
+0x482f mem_shutter_1s_timer
+0x4830 mem_shutter_timer_625us
+0x4832 mem_rf_init_data_new
+0x483d mem_key_value_xmem
+0x483f mem_shutter_le_hid_map
+0x4939 mem_shutter_le_map_len_android
+0x493b mem_shutter_le_map_len_ios
+0x493d mem_le_search_service_uuid
+0x494d mem_iphone_flag
+0x494e mem_send_data_delay
+0x494f mem_key_send_clk
+0x4953 mem_shutter_key_state0
+0x495d mem_shutter_key_state1
+0x4967 mem_shutter_key_state2
+0x4971 mem_shutter_key_state3
+0x497b mem_shutter_key_state4
+0x4985 mem_shutter_key_state5
+0x498f mem_shutter_key_state6
+0x4999 mem_key0_release_new
+0x49a3 mem_key1_release_new
+0x49ad mem_key2_release_new
+0x49b7 mem_key3_release_new
+0x49c1 mem_key4_release_new
+0x49cb mem_key5_release_new
+0x49d5 mem_key6_release_new
+0x49df mem_key0_long_press
+0x49e2 mem_key1_long_press
+0x49e5 mem_key2_long_press
+0x49e8 mem_key3_long_press
+0x49eb mem_key4_long_press
+0x49ee mem_key5_long_press
+0x49f1 mem_key6_long_press
+0x49f4 mem_key0_long_release
+0x49f7 mem_key1_long_release
+0x49fa mem_key2_long_release
+0x49fd mem_key3_long_release
+0x4a00 mem_key4_long_release
+0x4a03 mem_key5_long_release
+0x4a06 mem_key6_long_release
+0x4a09 mem_combine_key0
+0x4a0b mem_combine_key1
+0x4a0d mem_combine_key2
+0x4a0f mem_combine_key3
+0x4a11 mem_combine_key4
+0x4a13 mem_combine_key5
+0x4a15 mem_combine_key_state0
+0x4a17 mem_combine_key0_press
+0x4a21 mem_combine_key1_press
+0x4a2b mem_combine_key2_press
+0x4a35 mem_combine_key3_press
+0x4a3f mem_combine_key4_press
+0x4a49 mem_combine_key5_press
+0x4a53 mem_combine_key_release
+0x4a5d mem_shutter_move_data
+0x4a61 mem_key0_press_i
+0x4a6b mem_key1_press_i
+0x4a75 mem_key2_press_i
+0x4a7f mem_key3_press_i
+0x4a89 mem_key4_press_i
+0x4a93 mem_key5_press_i
+0x4a9d mem_key0_release_new_i
+0x4aa7 mem_key1_release_new_i
+0x4ab1 mem_key2_release_new_i
+0x4abb mem_key3_release_new_i
+0x4ac5 mem_key4_release_new_i
+0x4acf mem_key5_release_new_i
+0x4ad9 mem_key6_release_new_i
+0x4ae3 mem_key0_long_release_i
+0x4ae6 mem_key1_long_release_i
+0x4ae9 mem_key2_long_release_i
+0x4aec mem_key3_long_release_i
+0x4aef mem_key4_long_release_i
+0x4af2 mem_key5_long_release_i
+0x4af5 mem_key6_long_release_i
+0x4af8 mem_key3_release_new_t
+0x4b02 mem_key3_release_new_i_t
+0x4b0c mem_key3_press_count
+0x4b0d mem_shutter_like_timeout
+0x4b0e mem_shutter_key_pressed
+0x4b0f mem_shutter_combine_key_release
+0x4b10 mem_shutter_mousekey_value_list
+0x4dcc mem_shutter_back_count
+0x4dcd mem_shutter_le_conned
+0x4dce mem_move_config
+0x4dce mem_shutter_iphone_beyond_x_count
+0x4dcf mem_shutter_iphone_beyond_y_count
+0x4dd0 mem_shutter_move_data_x
+0x4dd2 mem_shutter_move_data_y
+0x4dd4 mem_last_shutter_le_iphone_flag
+0x4dd5 mem_move_config_end
+0x4dd5 mem_shutter_back_count_cache
+0x4dd6 mem_shutter_iphone_beyond_x_cache
+0x4dd7 mem_shutter_iphone_beyond_y_cache
+0x4dd8 mem_shutter_iphone_move_mid
+0x4de0 mem_shutter_long_key_released_flag
+0x4de1 mem_shutter_move_mid_timer
+0x4de2 mem_shutter_pairing_success
+0x4de3 mem_combine_key_release_value
+0x4de5 mem_last_press_key_value
+0x4de6 mem_shutter_first_move
+0x4de7 mem_move_mode_set
+0x4de8 mem_move_mode_key_index
+0x4de9 mem_move_mode_trigger_enable
+0x4dea mem_shutter_android_move_mid
+0x4def mem_shutter_iphone_up_mid
+0x4df7 mem_shutter_iphone_like_mid
+0x4dff mem_shutter_key_num_conf
+0x4e00 mem_shutter_dy_key_conf
+0x4e07 mem_le_dy_adv_data
+0x4e12 mem_le_dy_scan_data
+0x4e1e mem_ble_shutter_dy_interval_min_new
+0x4e26 mem_shutter_ble_discovery_time_conf
+0x4e2e mem_queue_dy_each_size
+0x4e30 mem_dy_key0_press
+0x4e3a mem_dy_key1_press
+0x4e44 mem_dy_key2_press
+0x4e4e mem_dy_key3_press
+0x4e58 mem_dy_key4_press
+0x4e62 mem_dy_key5_press
+0x4e6c mem_dy_key6_press
+0x4e76 mem_shutter_led_on_light_dark_led_conf
+0x4e7d mem_shutter_led_off_light_dark_led_conf
+0x4e84 mem_shutter_reconn_blink_on_time_conf
+0x4e88 mem_shutter_discovery_blink_on_time_conf
+0x4e8c mem_shutter_efuse_start_offset
+0x4e8e mem_shutter_efuse_end_offset
+0x4e90 mem_initial_move_conf
+0x4e90 mem_android_initial_move_x
+0x4e92 mem_android_initial_move_y
+0x4e94 mem_iphone_initial_move_x
+0x4e96 mem_iphone_initial_move_y
+0x4e98 mem_otp_move_config
+0x4e98 mem_otp_shutter_move_data_x
+0x4e9a mem_otp_shutter_move_data_y
+0x4e9c mem_otp_last_shutter_le_iphone_flag
+0x4e9d mem_otp_move_config_end
+0x4e9d mem_otp_write_offset_addr
+0x4e9f mem_otp_read_offset_addr
+0x4ea1 mem_otp_read_ios_android_addr
+0x4ea3 mem_shutter_temp_count
+0x4ea5 mem_shutter_first_read_flag
+0x4ea6 mem_shutter_valid_data_flag
+0x4ea7 mem_shutter_end
+
Index: output/program.lis
===================================================================
--- /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/output/program.lis	(nonexistent)
+++ /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/output/program.lis	(working copy)
@@ -0,0 +1,24652 @@
+              include "bt_format "
+              org 0x0000
+0000 c284000d bbit1 8 ,pf_patch_ext 
+0001 c01b803d beq patch06_7 ,p_mouse_sensor_set_angle 
+0002 c01e806f beq patch07_5 ,p_mouse_setgpio_hibernate 
+0003 c0230081 beq patch08_6 ,p_mouse_3io6key_check 
+0004 c026008c beq patch09_4 ,p_mouse_priority_bb_event 
+0005 c02700ad beq patch09_6 ,p_mouse_bb_event_timer 
+0006 c02900c0 beq patch0a_2 ,p_mouse_store_device_info 
+0007 c02d0064 beq patch0b_2 ,p_mouse_24g_package_data 
+0008 c02f0035 beq patch0b_6 ,p_mouse_ui_led_off_static 
+0009 c02f8039 beq patch0b_7 ,p_mouse_ui_led_on_static 
+000a c0380010 beq patch0e_0 ,p_app_init 
+000b c071806a beq patch1c_3 ,p_le_enable_phy_by_pdata 
+000c 20203a8a branch assert 
+
+pf_patch_ext:
+000d c0308078 beq patch2c_1 ,p_g24_lpm_wait 
+000e c17f8000 rtneq patch3f_7 
+000f 20203a8a branch assert 
+
+p_app_init:
+
+p_mouse_init:
+0010 70808073 jam 0x73 ,core_spid_ctrl 
+0011 20406eb3 call enable_authrom 
+0012 2040001a call p_mouse_setting_config 
+0013 204057a0 call mouse_init_sunt 
+0014 20758000 rtn wake 
+0015 204059bd call mouse_le_name_load 
+0016 2040562e call mouse_dpi_config 
+0017 20405cc5 call mouse_drawing_optima_init 
+0018 20400057 call p_mouse_cb_fuction 
+0019 20205234 branch mouse_init + 8 
+
+p_mouse_setting_config:
+001a 20758000 rtn wake 
+001b 2040525e call mouse_setting_config 
+001c c40b8000 rtnbit0 mouse_enable_otp 
+
+p_mouse_load_otp_info_check:
+001d 204000f9 call p_mouse_read_otp_dpi 
+001e 20400111 call p_mouse_read_otp_24g_addr 
+
+p_mouse_otp_load_app_initflag:
+001f d8400002 arg 2 ,temp 
+0020 dfe007ee arg otp_offset_app_initlag ,pdata 
+0021 da20463d arg mem_store_flag ,rega 
+0022 204068c5 call otpd_read_data_with_pwr_operation 
+0023 6fe1463d fetch 2 ,mem_store_flag 
+0024 d840aa55 arg eeprom_init_flag ,temp 
+0025 98467c00 isub temp ,null 
+0026 2022802c branch p_mouse_load_device_info ,zero 
+0027 20405b76 call mouse_app_initflag_check + 4 
+
+p_mouse_otp_store_app_initflag:
+0028 df200002 arg 2 ,loopcnt 
+0029 da20463d arg mem_store_flag ,rega 
+002a dfe007ee arg otp_offset_app_initlag ,pdata 
+002b 20206883 branch otp_write 
+
+p_mouse_load_device_info:
+002c dfe006e9 arg otp_offset_dpi ,pdata 
+002d 20400105 call p_mouse_read_otp_dpi_common 
+002e 6fe0c907 fetch 1 ,mem_mouse_dpi_temp 
+002f 205a0032 call p_mouse_load_default_dpi ,blank 
+0030 7045e500 jam mode_24g_device ,mem_device_flag 
+0031 20205b81 branch mouse_load_device_info + 1 
+
+p_mouse_load_default_dpi:
+0032 6fe0c5c0 fetch 1 ,mem_config_sensor_dpi 
+0033 67e0c63f store 1 ,mem_mouse_dpi 
+0034 20600000 rtn 
+
+p_mouse_ui_led_off_static:
+0035 18427e00 copy temp ,pdata 
+0036 207a0000 rtn blank 
+0037 c17f8000 rtneq gpio_disable 
+0038 20205f23 branch mouse_ui_led_off_static + 1 
+
+p_mouse_ui_led_on_static:
+0039 18427e00 copy temp ,pdata 
+003a 207a0000 rtn blank 
+003b c17f8000 rtneq gpio_disable 
+003c 20205f30 branch mouse_ui_led_on_static + 1 
+
+p_mouse_sensor_set_angle:
+003d 6fe0c911 fetch 1 ,mem_mouse_ice_sdio_for_sensor_angle 
+003e 203a52c8 branch mouse_sensor_set_angle + 1 ,blank 
+003f 6fe0c5be fetch 1 ,mem_sensor_angle_default 
+0040 67e0c5d5 store 1 ,mem_config_sensor_angle 
+0041 6fe0c5bd fetch 1 ,mem_select_sensor_angle_gpio 
+0042 c17f8000 rtneq gpio_disable 
+0043 2040692d call lpm_write_ice_disable 
+0044 6fe0c5bd fetch 1 ,mem_select_sensor_angle_gpio 
+0045 d840003e arg gpcfg_output_low ,temp 
+0046 20406bbd call gpio_config_function_int 
+0047 6fe0c5c8 fetch 1 ,mem_mouse_reuse_2ice_gpio 
+0048 d840003e arg gpcfg_output_low ,temp 
+0049 20406bbd call gpio_config_function_int 
+004a 6848c5bc fetcht 1 ,mem_mouse_sensor_sdio_gpio 
+004b 2040547f call mouse_gpio_config_input_pu 
+004c 6848c5bc fetcht 1 ,mem_mouse_sensor_sdio_gpio 
+004d 20406b85 call gpio_get_bit 
+004e 2040d2d2 call mouse_sensor_switch_angle ,true 
+004f 2040547b call mouse_gpio_config_input_pd 
+0050 6848c5bc fetcht 1 ,mem_mouse_sensor_sdio_gpio 
+0051 20406b7c call gpio_config_input 
+0052 20406931 call lpm_write_ice_enable 
+
+p_ice_gpio_set_float:
+0053 6848c5bd fetcht 1 ,mem_select_sensor_angle_gpio 
+0054 20406bae call gpio_set_high_impedance 
+0055 6848c5c8 fetcht 1 ,mem_mouse_reuse_2ice_gpio 
+0056 20206bae branch gpio_set_high_impedance 
+
+p_mouse_cb_fuction:
+0057 58005fad setarg mouse_24g_short_sleep 
+0058 67e14543 store 2 ,mem_cb_24g_transmit_short_sleep 
+0059 5800005c setarg p_mouse_24g_long_sleep 
+005a 67e14545 store 2 ,mem_cb_24g_transmit_long_sleep 
+005b 2020523d branch mouse_cb_fuction + 4 
+
+p_mouse_24g_long_sleep:
+005c 20404d15 call g24_lpm_wait 
+005d 24740000 nrtn user 
+005e 6fe0c863 fetch 1 ,mem_24g_device_led_status 
+005f 247a0000 nrtn blank 
+0060 70490501 jam 1 ,mem_mouse_24g_long_sleep_flag 
+0061 20205fa6 branch mouse_24g_long_sleep + 4 
+
+p_mouse_24g_short_sleep_clear_wake:
+0062 204074e0 call clear_wake 
+0063 20203c18 branch lpm_write_gpio_wakeup 
+
+p_mouse_24g_package_data:
+0064 2040549b call mouse_motion 
+0065 24740000 nrtn user 
+0066 6fe0c905 fetch 1 ,mem_mouse_24g_long_sleep_flag 
+0067 70490500 jam 0 ,mem_mouse_24g_long_sleep_flag 
+0068 245a0062 ncall p_mouse_24g_short_sleep_clear_wake ,blank 
+0069 20205e35 branch mouse_24g_package_data + 4 
+
+p_le_enable_phy_by_pdata:
+006a 18427e00 copy temp ,pdata 
+006b c280806d bbit1 bit_le_2m_phy ,p_le_enable_2m 
+006c 20203ce3 branch le_enable_phy_by_pdata + 3 
+
+p_le_enable_2m:
+006d 708a6d89 jam 0x89 ,core_rx_bq_cfg0 
+006e 20203ce9 branch le_enable_2m 
+
+p_mouse_setgpio_hibernate:
+006f 20405339 call mouse_setgpio_hibernate + 1 
+0070 6fe0c912 fetch 1 ,mem_mouse_logo_enable_gpio0 
+0071 c0008073 beq 1 ,p_mouse_setgpio_hibernate_next 
+0072 70807080 jam 0x80 ,0x8070 
+
+p_mouse_setgpio_hibernate_next:
+0073 6fe08017 fetch 1 ,mem_gpio_wakeup_low + 1 
+0074 79207e05 set1 5 ,pdata 
+0075 67e08017 store 1 ,mem_gpio_wakeup_low + 1 
+0076 20403c18 call lpm_write_gpio_wakeup 
+0077 20205af0 branch mouse_1io2led_all_off 
+
+p_g24_lpm_wait:
+0078 78347c00 enable user 
+0079 20403b1b call lpo_calibration 
+007a 6fe1c0be fetch 3 ,mem_clks_per_lpo 
+007b 203a74ca branch disable_user ,blank 
+007c 6fe0c094 fetch 1 ,mem_lpm_mode 
+007d 203a74ca branch disable_user ,blank 
+007e 6fe0c899 fetch 1 ,mem_sensor_shutdown_flag 
+007f 247a0000 nrtn blank 
+0080 20204d1c branch g24_lpm_wait_next 
+
+p_mouse_3io6key_check:
+0081 1a627e00 copy regc ,pdata 
+0082 67e0c850 store 1 ,mem_mouse_key_status 
+0083 1fe3fe00 lshift pdata ,pdata 
+0084 1fe22400 copy pdata ,regb 
+0085 18422600 copy temp ,regc 
+0086 2040547b call mouse_gpio_config_input_pd 
+0087 1a620400 copy regc ,temp 
+0088 20406b85 call gpio_get_bit 
+0089 7d20a400 nsetflag true ,0 ,regb 
+008a 20405753 call mouse_check_press 
+008b 2020573f branch mouse_check_key_connect_gnd_1 
+
+p_mouse_priority_bb_event:
+008c 1a627e00 copy regc ,pdata 
+008d c01e0090 beq bt_evt_24g_attempt_success ,p_mouse_24g_attempt_success 
+008e c01d009c beq bt_evt_24g_attempt_fail ,p_mouse_24g_attempt_fail 
+008f 20205914 branch mouse_priority_bb_event + 2 
+
+p_mouse_24g_attempt_success:
+0090 6fe244da fetch 4 ,mem_24g_addr 
+0091 67e24533 store 4 ,mem_24g_receiver_addr 
+0092 67e24640 store 4 ,mem_mouse_24g_addr 
+0093 20404bce call g24_ch_syncword_crc8_init 
+0094 20405e1b call mouse_device_poweron_led_config 
+0095 20405aa9 call mouse_no_data_timer_init 
+0096 204058c4 call mouse_init_sensor_reset 
+0097 70476800 jam 0 ,mem_mouse_long_mult_flag 
+0098 70454700 jam 0 ,mem_24g_conn_sm 
+0099 70452d00 jam 0 ,mem_24g_reconn_type 
+009a 684a4533 fetcht 4 ,mem_24g_receiver_addr 
+009b 20205e17 branch mouse_24g_attempt_success + 11 
+
+p_mouse_24g_attempt_fail:
+009c 6fe0c54b fetch 1 ,mem_24g_attempt_fail_flag 
+009d 243a5d80 nbranch mouse_24g_hibernate_set ,blank 
+009e 6fe0c52d fetch 1 ,mem_24g_reconn_type 
+009f c0015df4 beq fast_conn_and_3_0_addr ,mouse_24g_fast_conn_attempt_fail 
+00a0 c00200a3 beq pair_and_3_0_addr ,p_mouse_24g_auto_pair_attempt_fail 
+00a1 c00180a8 beq receiver_and_3_0_addr ,p_mouse_reconn_dongle_attempt_fail 
+00a2 20205ded branch mouse_24g_attempt_fail_enter_hibernate_next 
+
+p_mouse_24g_auto_pair_attempt_fail:
+00a3 6fe44864 fetch mouse_flag_len ,mem_mouse_flag 
+00a4 c317dded bbit0 mouse_enable_24g_first_auto_pairing ,mouse_24g_attempt_fail_enter_hibernate_next 
+00a5 6fe0c86c fetch 1 ,mem_device_number 
+00a6 c000dded beq 1 ,mouse_24g_attempt_fail_enter_hibernate_next 
+00a7 20205dcb branch mouse_24g_first_bluetooth_reconnect 
+
+p_mouse_reconn_dongle_attempt_fail:
+00a8 6fe44864 fetch mouse_flag_len ,mem_mouse_flag 
+00a9 c317dded bbit0 mouse_enable_24g_first_auto_pairing ,mouse_24g_attempt_fail_enter_hibernate_next 
+00aa c289dded bbit1 mouse_enable_eeprom ,mouse_24g_attempt_fail_enter_hibernate_next 
+00ab c2895ded bbit1 mouse_enable_flash ,mouse_24g_attempt_fail_enter_hibernate_next 
+00ac 20205dc4 branch mouse_24g_start_auto_pair + 1 
+
+p_mouse_bb_event_timer:
+00ad 204053c6 call mouse_adc_read 
+00ae 20405f47 call mouse_low_voltage_led_timer 
+00af 20404907 call g24_pair_timeout_timer 
+00b0 20404ba5 call g24_reconn_timeout_timer 
+00b1 20405d6b call mouse_24g_long_sleep_param_update_timer 
+00b2 20405e9a call mouse_device_poweron_timer 
+00b3 20405ecb call mouse_dpi_led_blink_delay_timer 
+00b4 20405ac1 call mouse_led_multi_timer 
+00b5 20405af3 call mouse_logo_led_on_timer 
+00b6 2040561c call mouse_dpi_key_check_long_press 
+00b7 20405a36 call mouse_bt_discovery_check 
+00b8 20405a46 call mouse_commbination_key_process 
+00b9 20405a69 call mouse_check_discovery_timeout_timer 
+00ba 204000bc call p_mouse_check_direct_timeout_timer 
+00bb 20205a2d branch mouse_bb_event_timer + 15 
+
+p_mouse_check_direct_timeout_timer:
+00bc da604831 arg mem_mouse_direct_timer ,regc 
+00bd da405a74 arg mouse_check_direct_timeout ,regb 
+00be 20404dcc call timer_single_step 
+00bf 20205a71 branch mouse_check_direct_timeout_timer + 3 
+
+p_mouse_store_device_info:
+00c0 20405b90 call mouse_store_device_info + 1 
+00c1 c40b8000 rtnbit0 mouse_enable_otp 
+
+p_mouse_store_otp_device_info:
+00c2 204000d7 call p_mouse_otp_store_dpi 
+
+p_mouse_otp_store_24g_addr:
+00c3 dfe00719 arg otp_offset_24g_addr ,pdata 
+00c4 1fe22400 copy pdata ,regb 
+
+p_mouse_otp_store_24g_addr_loop:
+00c5 2040011d call p_mouse_read_otp_24g_addr_common 
+00c6 6fe2490d fetch 4 ,mem_mouse_24g_addr_temp 
+00c7 203a00cf branch p_mouse_24g_addr_store ,blank 
+00c8 67e24909 store 4 ,mem_mouse_24g_addr_last 
+00c9 1a40a404 increase 4 ,regb 
+00ca dfe007e0 arg otp_offset_24g_addr_end ,pdata 
+00cb 9a467c00 isub regb ,null 
+00cc 24610000 nrtn positive 
+00cd 1a427e00 copy regb ,pdata 
+00ce 202000c5 branch p_mouse_otp_store_24g_addr_loop 
+
+p_mouse_24g_addr_store:
+00cf 6fe24909 fetch 4 ,mem_mouse_24g_addr_last 
+00d0 684a4640 fetcht 4 ,mem_mouse_24g_addr 
+00d1 98467c00 isub temp ,null 
+00d2 20628000 rtn zero 
+00d3 df200004 arg 4 ,loopcnt 
+00d4 da204640 arg mem_mouse_24g_addr ,rega 
+00d5 1a427e00 copy regb ,pdata 
+00d6 20206883 branch otp_write 
+
+p_mouse_otp_store_dpi:
+00d7 dfe006e9 arg otp_offset_dpi ,pdata 
+00d8 1fe22400 copy pdata ,regb 
+
+p_mouse_otp_store_dpi_loop:
+00d9 20400105 call p_mouse_read_otp_dpi_common 
+00da 6fe0c907 fetch 1 ,mem_mouse_dpi_temp 
+00db 203a00e3 branch p_mouse_dpi_store ,blank 
+00dc 67e0c906 store 1 ,mem_mouse_dpi_last 
+00dd 1a40a401 increase 1 ,regb 
+00de dfe00718 arg otp_offset_dpi_end ,pdata 
+00df 9a467c00 isub regb ,null 
+00e0 24610000 nrtn positive 
+00e1 1a427e00 copy regb ,pdata 
+00e2 202000d9 branch p_mouse_otp_store_dpi_loop 
+
+p_mouse_dpi_store:
+00e3 6fe0c906 fetch 1 ,mem_mouse_dpi_last 
+00e4 1fe17ef0 and pdata ,0xf0 ,pdata 
+00e5 203a00ec branch p_mouse_dpi_store_next ,blank 
+00e6 6fe0c63f fetch 1 ,mem_mouse_dpi 
+00e7 67e0c908 store 1 ,mem_mouse_otp_dpi_value 
+
+p_mouse_dpi_store_end:
+00e8 df200001 arg 1 ,loopcnt 
+00e9 1a427e00 copy regb ,pdata 
+00ea da204908 arg mem_mouse_otp_dpi_value ,rega 
+00eb 20206883 branch otp_write 
+
+p_mouse_dpi_store_next:
+00ec 6fe0c906 fetch 1 ,mem_mouse_dpi_last 
+00ed 6848c63f fetcht 1 ,mem_mouse_dpi 
+00ee 98467c00 isub temp ,null 
+00ef 20628000 rtn zero 
+00f0 18520400 lshift4 temp ,temp 
+00f1 9840fe00 iadd temp ,pdata 
+00f2 67e0c908 store 1 ,mem_mouse_otp_dpi_value 
+00f3 1a427e00 copy regb ,pdata 
+00f4 d84006e9 arg otp_offset_dpi ,temp 
+00f5 98467c00 isub temp ,null 
+00f6 202280e8 branch p_mouse_dpi_store_end ,zero 
+00f7 1a40a5ff increase -1 ,regb 
+00f8 202000e8 branch p_mouse_dpi_store_end 
+
+p_mouse_read_otp_dpi:
+00f9 dfe006e9 arg otp_offset_dpi ,pdata 
+00fa 1fe22400 copy pdata ,regb 
+
+p_mouse_read_otp_dpi_loop:
+00fb 20400105 call p_mouse_read_otp_dpi_common 
+00fc 6fe0c907 fetch 1 ,mem_mouse_dpi_temp 
+00fd 203a0108 branch p_mouse_dpi_load ,blank 
+00fe 67e0c906 store 1 ,mem_mouse_dpi_last 
+00ff 1a40a401 increase 1 ,regb 
+0100 dfe00718 arg otp_offset_dpi_end ,pdata 
+0101 9a467c00 isub regb ,null 
+0102 24210108 nbranch p_mouse_dpi_load ,positive 
+0103 1a427e00 copy regb ,pdata 
+0104 202000fb branch p_mouse_read_otp_dpi_loop 
+
+p_mouse_read_otp_dpi_common:
+0105 d8400001 arg 1 ,temp 
+0106 da204907 arg mem_mouse_dpi_temp ,rega 
+0107 202068c5 branch otpd_read_data_with_pwr_operation 
+
+p_mouse_dpi_load:
+0108 6fe0c906 fetch 1 ,mem_mouse_dpi_last 
+0109 1fe22600 copy pdata ,regc 
+010a 1fe17ef0 and pdata ,0xf0 ,pdata 
+010b 203a010e branch p_mouse_dpi_load_next ,blank 
+010c 1ff1fe00 rshift4 pdata ,pdata 
+010d 2020010f branch p_mouse_dpi_load_end 
+
+p_mouse_dpi_load_next:
+010e 1a627e00 copy regc ,pdata 
+
+p_mouse_dpi_load_end:
+010f 67e0c63f store 1 ,mem_mouse_dpi 
+0110 20600000 rtn 
+
+p_mouse_read_otp_24g_addr:
+0111 dfe00719 arg otp_offset_24g_addr ,pdata 
+0112 1fe22400 copy pdata ,regb 
+
+p_mouse_read_otp_24g_addr_loop:
+0113 2040011d call p_mouse_read_otp_24g_addr_common 
+0114 6fe2490d fetch 4 ,mem_mouse_24g_addr_temp 
+0115 203a0120 branch p_mouse_24g_addr_load ,blank 
+0116 67e24909 store 4 ,mem_mouse_24g_addr_last 
+0117 1a40a404 increase 4 ,regb 
+0118 dfe007e0 arg otp_offset_24g_addr_end ,pdata 
+0119 9a467c00 isub regb ,null 
+011a 24210120 nbranch p_mouse_24g_addr_load ,positive 
+011b 1a427e00 copy regb ,pdata 
+011c 20200113 branch p_mouse_read_otp_24g_addr_loop 
+
+p_mouse_read_otp_24g_addr_common:
+011d d8400004 arg 4 ,temp 
+011e da20490d arg mem_mouse_24g_addr_temp ,rega 
+011f 202068c5 branch otpd_read_data_with_pwr_operation 
+
+p_mouse_24g_addr_load:
+0120 6fe24909 fetch 4 ,mem_mouse_24g_addr_last 
+0121 67e24640 store 4 ,mem_mouse_24g_addr 
+0122 20600000 rtn 
+              org 0x3800
+
+start:
+3800 20403ac3 call lpmstate 
+
+soft_reset:
+3801 44804000 bpatch patch00_0 ,mem_patch00 
+3802 20800000 clear_stack 
+3803 20404d91 call app_param_init 
+3804 20403a12 call initialize_radio 
+3805 20406a13 call iic_init_360khz 
+3806 20403a93 call init_param 
+3807 2040665f call l2cap_init 
+3808 4480c000 bpatch patch00_1 ,mem_patch00 
+3809 20406ebb call ui_init 
+380a 20403aba call ldo_abb_en_init 
+380b 20404d89 call app_init 
+380c 2055bb65 call lpm_recover_clk ,wake 
+
+main_loop:
+380d 44814000 bpatch patch00_2 ,mem_patch00 
+380e 204041e9 call le_advertising_dispatch 
+380f 20403827 call idle_dispatch 
+3810 20404d99 call app_process_idle 
+3811 20403815 call connection_dispatch 
+3812 20404788 call g24_dispatch 
+3813 20403b8e call lpm_dispatch 
+3814 2020380d branch main_loop 
+
+connection_dispatch:
+3815 2040381a call connection_incontext 
+3816 c6848000 rtnmark0 mark_context 
+3817 793f8009 set0 mark_context ,mark 
+3818 2040383e call context_save 
+3819 20203d00 branch le_disable 
+
+connection_incontext:
+381a 4481c000 bpatch patch00_3 ,mem_patch00 
+381b 20403864 call context_search_insniff 
+381c 2422b822 nbranch connection_nosniff ,zero 
+381d 20403833 call context_load 
+381e 1a208c01 add rega ,coffset_mode ,contr 
+381f efe08006 ifetch 1 ,contr 
+3820 c2803c76 bbit1 mode_le ,le_conn_dispatch 
+3821 20600000 rtn 
+
+connection_nosniff:
+3822 70000600 jam 0 ,mem_current_context 
+3823 20403844 call context_get_next 
+3824 1f227c00 copy loopcnt ,null 
+3825 20628000 rtn zero 
+3826 20203a8a branch assert 
+
+idle_dispatch:
+3827 6fe0c10d fetch 1 ,mem_hci_cmd 
+3828 207a0000 rtn blank 
+3829 c00db830 beq hci_cmd_le_create_conn ,idle_le_create_conn 
+382a 2040385d call context_search_conn_handle 
+382b 20628000 rtn zero 
+382c 20403860 call context_search_plap 
+382d 20628000 rtn zero 
+
+idle_exit:
+382e 70410d00 jam 0 ,mem_hci_cmd 
+382f 20600000 rtn 
+
+idle_le_create_conn:
+3830 7001b71b jam hci_cmd_le_create_conn ,mem_cmd_le_create_conn 
+3831 70410d00 jam 0 ,mem_hci_cmd 
+3832 20600000 rtn 
+
+context_load:
+3833 44824000 bpatch patch00_4 ,mem_patch00 
+3834 79200009 set1 mark_context ,mark 
+3835 1a227e00 deposit rega 
+3836 67e1000a store 2 ,mem_context_ptr 
+3837 18007253 force context_size ,loopcnt 
+3838 d8a00163 arg mem_le_state ,contw 
+3839 1a208c01 add rega ,coffset_mode ,contr 
+383a efe08006 ifetch 1 ,contr 
+383b 1a220c00 copy rega ,contr 
+383c c2807419 bbit1 mode_le ,memcpy 
+383d 20600000 rtn 
+
+context_save:
+383e 4482c000 bpatch patch00_5 ,mem_patch00 
+383f 6fe1000a fetch 2 ,mem_context_ptr 
+3840 98000a00 iforce contw 
+3841 18007253 force context_size ,loopcnt 
+3842 d8c00163 arg mem_le_state ,contr 
+3843 20207419 branch memcpy 
+
+context_get_next:
+3844 df200001 arg context_num ,loopcnt 
+3845 68488006 fetcht 1 ,mem_current_context 
+
+context_get_next_loop:
+3846 18408401 increase 1 ,temp 
+3847 2841fe01 compare context_num ,temp ,0xff 
+3848 2420b84a nbranch context_get_next_cont ,true 
+3849 d8400000 arg 0 ,temp 
+
+context_get_next_cont:
+384a 60488006 storet 1 ,mem_current_context 
+384b 184ffe53 mul32 temp ,context_size ,pdata 
+384c da204040 arg mem_context ,rega 
+384d 9a20a200 iadd rega ,rega 
+384e efe08011 ifetch 1 ,rega 
+384f c280b851 bbit1 state_insniff ,context_get_next_sniff 
+3850 c3800000 rtnbit1 state_inconn 
+
+context_get_next_sniff:
+3851 c2003846 loop context_get_next_loop 
+3852 20600000 rtn 
+
+context_new:
+3853 44834000 bpatch patch00_6 ,mem_patch00 
+3854 da603871 arg context_search_empty ,regc 
+3855 20403867 call context_search 
+3856 24628000 nrtn zero 
+3857 1a227e00 deposit rega 
+3858 67e1000a store 2 ,mem_context_ptr 
+3859 18007c00 force 0 ,null 
+385a 20600000 rtn 
+
+context_check_idle:
+385b da6038a8 arg context_check_inconn ,regc 
+385c 20203867 branch context_search 
+
+context_search_conn_handle:
+385d 6848c10e fetcht 1 ,mem_hci_conn_handle 
+
+context_search_conn_handle2:
+385e da60387a arg context_search_handle ,regc 
+385f 20203867 branch context_search 
+
+context_search_plap:
+3860 4483c000 bpatch patch00_7 ,mem_patch00 
+3861 684b410f fetcht 6 ,mem_hci_plap 
+
+context_search_plap2:
+3862 da603874 arg context_search_lap ,regc 
+3863 20203867 branch context_search 
+
+context_search_insniff:
+3864 da603880 arg context_search_sniff ,regc 
+3865 20203867 branch context_search 
+
+context_search_sniff_window:
+3866 da6038c3 arg context_search_window ,regc 
+
+context_search:
+3867 44844001 bpatch patch01_0 ,mem_patch01 
+3868 da204040 arg mem_context ,rega 
+3869 df200001 arg context_num ,loopcnt 
+
+context_search_loop:
+386a efe08011 ifetch 1 ,rega 
+386b 1a627a00 copy regc ,pc 
+
+context_search_next:
+386c 4484c001 bpatch patch01_1 ,mem_patch01 
+386d 1a20a253 increase context_size ,rega 
+386e c200386a loop context_search_loop 
+386f 18007c01 force 1 ,null 
+3870 20600000 rtn 
+
+context_search_empty:
+3871 c280386c bbit1 state_inconn ,context_search_next 
+3872 18007c00 force 0 ,null 
+3873 20600000 rtn 
+
+context_search_lap:
+3874 c300386c bbit0 state_inconn ,context_search_next 
+
+context_search_lap_cont:
+3875 1a208c10 add rega ,coffset_plap ,contr 
+3876 efe30006 ifetch 6 ,contr 
+3877 98467c00 isub temp ,null 
+3878 20628000 rtn zero 
+3879 2020386c branch context_search_next 
+
+context_search_handle:
+387a c300386c bbit0 state_inconn ,context_search_next 
+387b 1a208c16 add rega ,coffset_conn_handle ,contr 
+387c efe08006 ifetch 1 ,contr 
+387d 98467c00 isub temp ,null 
+387e 20628000 rtn zero 
+387f 2020386c branch context_search_next 
+
+context_search_sniff:
+3880 c300b86c bbit0 state_insniff ,context_search_next 
+
+context_search_sniff_loop:
+3881 204038b0 call context_get_anchor 
+3882 20403898 call sign_pdata_temp 
+3883 98467e00 isub temp ,pdata 
+3884 1fe0fe01 increase 1 ,pdata 
+3885 20213892 branch context_search_sniff_miss ,positive 
+3886 18c22400 copy contr ,regb 
+3887 67e484cc store 9 ,mem_temp 
+3888 44854001 bpatch patch01_2 ,mem_patch01 
+3889 6fe484cc fetch 9 ,mem_temp 
+388a 1a420c00 copy regb ,contr 
+388b 1fe0fe05 increase 5 ,pdata 
+388c 2020388d branch context_search_meet1 
+
+context_search_meet1:
+388d 2421386c nbranch context_search_next ,positive 
+
+context_search_meet:
+388e 18424200 copy temp ,bt_clk 
+388f 204038bc call context_next_anchor 
+3890 18007c00 force 0 ,null 
+3891 20600000 rtn 
+
+context_search_sniff_miss:
+3892 98002400 iforce regb 
+3893 1a208c02 add rega ,coffset_tsniff ,contr 
+3894 efe10006 ifetch 2 ,contr 
+3895 203a388e branch context_search_meet ,blank 
+3896 204038bc call context_next_anchor 
+3897 20203881 branch context_search_sniff_loop 
+
+sign_pdata_temp:
+3898 1ff11600 rshift16 pdata ,timeup 
+3899 196c9600 rshift8 timeup ,timeup 
+389a 2022b8a2 branch sign_pdata_temp_p0 ,zero 
+389b 29601e0f compare 0xf ,timeup ,0xf 
+389c 24608000 nrtn true 
+389d 18511600 rshift16 temp ,timeup 
+389e 196c9600 rshift8 timeup ,timeup 
+389f 24628000 nrtn zero 
+38a0 7920041c set1 28 ,temp 
+38a1 20600000 rtn 
+
+sign_pdata_temp_p0:
+38a2 18511600 rshift16 temp ,timeup 
+38a3 196c9600 rshift8 timeup ,timeup 
+38a4 29601e0f compare 0xf ,timeup ,0xf 
+38a5 24608000 nrtn true 
+38a6 79207e1c set1 28 ,pdata 
+38a7 20600000 rtn 
+
+context_check_inconn:
+38a8 c300386c bbit0 state_inconn ,context_search_next 
+38a9 18007c00 force 0 ,null 
+38aa 20600000 rtn 
+
+context_check_a_wack:
+38ab c300386c bbit0 state_inconn ,context_search_next 
+38ac 1a208c01 add rega ,coffset_mode ,contr 
+38ad efe08006 ifetch 1 ,contr 
+38ae c280386c bbit1 mode_le ,context_search_next 
+38af 20600000 rtn 
+
+context_get_anchor:
+38b0 1a208c01 add rega ,coffset_mode ,contr 
+38b1 e8408006 ifetcht 1 ,contr 
+38b2 1c427e00 deposit clkn_bt 
+38b3 284ffe01 isolate1 mode_master ,temp 
+38b4 1a208c04 add rega ,coffset_sniff_anchor ,contr 
+38b5 e8420006 ifetcht 4 ,contr 
+38b6 20608000 rtn true 
+38b7 1a208c08 add rega ,coffset_clk_offset ,contr 
+38b8 efe30006 ifetch 6 ,contr 
+38b9 20403905 call calc_clke2 
+38ba 1d027e00 deposit clke_bt 
+38bb 20600000 rtn 
+
+context_next_anchor:
+38bc 1a208c02 add rega ,coffset_tsniff ,contr 
+38bd 1a208a04 add rega ,coffset_sniff_anchor ,contw 
+38be efe10006 ifetch 2 ,contr 
+38bf 98409600 iadd temp ,timeup 
+38c0 19627e00 deposit timeup 
+38c1 e7e20005 istore 4 ,contw 
+38c2 20203d4d branch le_context_nextevent 
+
+context_search_window:
+38c3 c300b86c bbit0 state_insniff ,context_search_next 
+38c4 204038b0 call context_get_anchor 
+38c5 9b60fe00 iadd stop_watch ,pdata 
+38c6 9b60fe00 iadd stop_watch ,pdata 
+38c7 98e0fe00 iadd queue ,pdata 
+38c8 98467c00 isub temp ,null 
+38c9 2421386c nbranch context_search_next ,positive 
+38ca 18007c00 force 0 ,null 
+38cb 20600000 rtn 
+
+end_of_packet:
+38cc 4485c001 bpatch patch01_3 ,mem_patch01 
+38cd 784efc00 disable encode_fec0 
+38ce 784e7c00 disable encode_fec2 
+38cf 7846fc00 disable decode_fec0 
+38d0 78467c00 disable decode_fec2 
+38d1 7844fc00 disable enable_crc 
+38d2 78477c00 disable encrypt 
+38d3 7843fc00 disable enable_white 
+38d4 2030b913 branch shutdown_radio ,is_rx 
+38d5 37d38200 until null ,tx_clear 
+38d6 20000064 nop 100 
+38d7 20203913 branch shutdown_radio 
+
+sniff_check_window:
+38d8 44864001 bpatch patch01_4 ,mem_patch01 
+38d9 78487c00 disable swfine 
+38da 18423600 copy temp ,stop_watch 
+38db 20403866 call context_search_sniff_window 
+38dc 78547c00 disable user 
+38dd 24628000 nrtn zero 
+38de 18003600 force 0 ,stop_watch 
+38df 202074c8 branch enable_user 
+
+calc_slot_offset:
+38e0 4486c001 bpatch patch01_5 ,mem_patch01 
+38e1 37d10200 until null ,halfslot 
+38e2 1b427e00 deposit clke 
+38e3 98000c00 iforce contr 
+38e4 1ff17e00 rshift16 ,pdata ,pdata 
+38e5 9c467200 isub clkn_bt ,loopcnt 
+38e6 1f217203 and_into 3 ,loopcnt 
+38e7 2422b8ea nbranch calc_bt_portion ,zero 
+38e8 18007e00 force 0 ,pdata 
+38e9 202038ee branch calc_skip_bt 
+
+calc_bt_portion:
+38ea 6849003f fetcht 2 ,mem_param_rt_rthalfslot 
+38eb 18007e00 force 0 ,pdata 
+
+calc_slot_offset_loop:
+38ec 9840fe00 iadd temp ,pdata 
+38ed c20038ec loop calc_slot_offset_loop 
+
+calc_skip_bt:
+38ee 98c0fe00 iadd contr ,pdata 
+38ef 1fe6fc0c div pdata ,12 
+38f0 20407472 call get_div_result 
+38f1 67e1002a store 2 ,mem_slot_offset 
+38f2 20600000 rtn 
+
+calc_clke_offset:
+38f3 44874001 bpatch patch01_6 ,mem_patch01 
+38f4 1b427e00 deposit clke 
+38f5 1b220400 copy clkn ,temp 
+38f6 98467c00 isub temp ,null 
+38f7 7d217e2c nsetflag positive ,44 ,pdata 
+38f8 98460400 isub temp ,temp 
+38f9 6fe1003f fetch 2 ,mem_param_rt_rthalfslot 
+38fa 284c000f isolate0 15 ,temp 
+38fb 2020b901 branch calc_clke_pos ,true 
+38fc 18426000 copy temp ,alarm 
+38fd d8410000 arg 0x10000 ,temp 
+38fe 6fe1003f fetch 2 ,mem_param_rt_rthalfslot 
+38ff 98467e00 isub temp ,pdata 
+3900 9e008400 iadd alarm ,temp 
+
+calc_clke_pos:
+3901 604b016b storet 6 ,mem_le_clk_offset 
+3902 20600000 rtn 
+
+calc_clke:
+3903 78587c00 disable clknt 
+3904 6fe3016b fetch 6 ,mem_le_clk_offset 
+
+calc_clke2:
+3905 9b20e000 iadd clkn ,alarm 
+3906 1e00e00a increase 10 ,alarm 
+3907 6fe1003f fetch 2 ,mem_param_rt_rthalfslot 
+3908 9e067e00 isub alarm ,pdata 
+3909 2fec000f isolate0 15 ,pdata 
+390a 2020b911 branch calc_clke_pos_adj ,true 
+390b 58010000 setarg 0x10000 
+390c 6b01003f fetchr regd ,2 ,mem_param_rt_rthalfslot 
+390d 9b067e00 isub regd ,pdata 
+390e 9e00e000 iadd alarm ,alarm 
+
+calc_clke_pos2:
+390f 1e023400 copy alarm ,clke 
+3910 20600000 rtn 
+
+calc_clke_pos_adj:
+3911 18007c00 force 0 ,null 
+3912 2020390f branch calc_clke_pos2 
+
+shutdown_radio:
+3913 4487c001 bpatch patch01_7 ,mem_patch01 
+3914 204065a2 call rf_debug_shutdown_radio_line 
+3915 18002a08 force 0x08 ,radio_ctrl 
+3916 18002a00 force 0 ,radio_ctrl 
+3917 7850fc00 disable is_rx 
+3918 78507c00 disable is_tx 
+3919 782f7c00 pulse packet_end 
+391a 70890005 jam 0x5 ,modem_en 
+391b 20000002 nop 2 
+391c 70890000 jam 0x0 ,modem_en 
+391d 20403925 call set_sync_on 
+391e 708a1600 jam 0 ,core_syn_en 
+391f 708a0a80 jam 0x80 ,core_rf_ldo_en0 
+3920 6ff08a09 fetch 1 ,core_clkpll_cfg6 
+3921 793ffe07 set0 7 ,pdata 
+3922 67f08a09 store 1 ,core_clkpll_cfg6 
+3923 708a0b00 jam 0 ,core_rf_ldo_en1 
+3924 20600000 rtn 
+
+set_sync_on:
+3925 44884002 bpatch patch02_0 ,mem_patch02 
+3926 70890005 jam 0x5 ,modem_en 
+3927 20000002 nop 2 
+3928 70890000 jam 0x0 ,modem_en 
+3929 6fe0c09a fetch 1 ,mem_fcomp_div 
+392a c00c392c beq xtal_24m ,set_sync_on_24m 
+392b c0043941 beq xtal_16m ,set_sync_on_16m 
+
+set_sync_on_24m:
+392c 708a10aa jam 0xaa ,core_rf_ldo_cfg4 
+392d 708a11aa jam 0xaa ,core_rf_ldo_cfg5 
+392e 708a1215 jam 0x15 ,core_rf_ldo_cfg6 
+392f 708a0a78 jam 0x78 ,core_rf_ldo_en0 
+3930 6ff08a09 fetch 1 ,core_clkpll_cfg6 
+3931 79207e07 set1 7 ,pdata 
+3932 67f08a09 store 1 ,core_clkpll_cfg6 
+3933 708a0b04 jam 0x04 ,core_rf_ldo_en1 
+3934 2000003c nop 60 
+3935 708a167a jam 0x7a ,core_syn_en 
+3936 708a1700 jam 0 ,core_rx_en0 
+3937 708a1800 jam 0 ,core_rx_en1 
+3938 708a1900 jam 0 ,core_tx_en0 
+3939 708a1a00 jam 0 ,core_tx_en1 
+393a 708a112a jam 0x2a ,core_rf_ldo_cfg5 
+393b 708a0a78 jam 0x78 ,core_rf_ldo_en0 
+
+set_sync_on_next:
+393c 6ff08a09 fetch 1 ,core_clkpll_cfg6 
+393d 793ffe07 set0 7 ,pdata 
+393e 67f08a09 store 1 ,core_clkpll_cfg6 
+393f 708a4300 jam 0 ,core_syn_cal_ctrl 
+3940 20600000 rtn 
+
+set_sync_on_16m:
+3941 708a8729 jam 0x29 ,core_syn_afc_cfg1 
+3942 708a8be6 jam 0xe6 ,core_syn_aac_cfg1 
+3943 708a10aa jam 0xaa ,core_rf_ldo_cfg4 
+3944 708a11aa jam 0xaa ,core_rf_ldo_cfg5 
+3945 708a1215 jam 0x15 ,core_rf_ldo_cfg6 
+3946 708a0a78 jam 0x78 ,core_rf_ldo_en0 
+3947 6ff08a09 fetch 1 ,core_clkpll_cfg6 
+3948 79207e07 set1 7 ,pdata 
+3949 67f08a09 store 1 ,core_clkpll_cfg6 
+394a 708a0b04 jam 0x04 ,core_rf_ldo_en1 
+394b 2000003c nop 60 
+394c 708a163a jam 0x3a ,core_syn_en 
+394d 708a1700 jam 0 ,core_rx_en0 
+394e 708a1800 jam 0 ,core_rx_en1 
+394f 708a1900 jam 0 ,core_tx_en0 
+3950 708a1a00 jam 0 ,core_tx_en1 
+3951 708a112a jam 0x2a ,core_rf_ldo_cfg5 
+3952 708a0a38 jam 0x38 ,core_rf_ldo_en0 
+3953 2020393c branch set_sync_on_next 
+
+set_freq_rx:
+3954 4488c002 bpatch patch02_1 ,mem_patch02 
+3955 6fe0c09a fetch 1 ,mem_fcomp_div 
+3956 1fe67c18 sub pdata ,xtal_24m ,null 
+3957 2042b95e call rf_rx_write_freq_24m ,zero 
+3958 2442b964 ncall rf_rx_write_freq_16m ,zero 
+3959 60488008 storet 1 ,mem_last_freq 
+395a 1840fe00 add temp ,0 ,pdata 
+395b c516b95d bmark1 mark_ble_2m ,set_rxfreq_2m_offset 
+395c 1840fe01 add temp ,1 ,pdata 
+
+set_rxfreq_2m_offset:
+395d 20203989 branch rf_rx_write_freq 
+
+rf_rx_write_freq_24m:
+395e 708a4300 jam 0 ,core_syn_cal_ctrl 
+395f 708a3d04 jam 0x04 ,core_syn_top_ctrl 
+3960 708a3e00 jam 0 ,core_syn_mmd_cp_ctrl 
+3961 708a8403 jam 0x03 ,core_syn_cp_lpf_cfg 
+3962 708a8940 jam 0x40 ,core_syn_afc_cfg3 
+3963 20600000 rtn 
+
+rf_rx_write_freq_16m:
+3964 708a4330 jam 0x30 ,core_syn_cal_ctrl 
+3965 708a3d06 jam 0x06 ,core_syn_top_ctrl 
+3966 708a3e00 jam 0 ,core_syn_mmd_cp_ctrl 
+3967 708a8420 jam 0x20 ,core_syn_cp_lpf_cfg 
+3968 708a8915 jam 0x15 ,core_syn_afc_cfg3 
+3969 20600000 rtn 
+
+rf_rx_enable:
+396a 44894002 bpatch patch02_2 ,mem_patch02 
+396b 2040659c call rf_debug_rx_gpio_high 
+396c 6fe0c118 fetch 1 ,mem_gain_fix 
+396d c07fb973 beq 0xff ,rf_rx_enable_no_soft_agc 
+396e d8c04119 arg mem_gain_table ,contr 
+396f 98c08c00 iadd contr ,contr 
+3970 efe08006 ifetch 1 ,contr 
+3971 67f08961 store 1 ,core_rf_rx_gain_fix 
+3972 70896027 jam 0x27 ,core_rf_rx_agc_ctrl 
+
+rf_rx_enable_no_soft_agc:
+3973 6848c11c fetcht 1 ,mem_gain_second_agc_en 
+3974 6ff08960 fetch 1 ,core_rf_rx_agc_ctrl 
+3975 9841fe00 ior temp ,pdata 
+3976 67f08960 store 1 ,core_rf_rx_agc_ctrl 
+3977 708a10aa jam 0xaa ,core_rf_ldo_cfg4 
+3978 708a112a jam 0x2a ,core_rf_ldo_cfg5 
+3979 708a1213 jam 0x13 ,core_rf_ldo_cfg6 
+397a 708a0a7f jam 0x7f ,core_rf_ldo_en0 
+397b 6ff08a09 fetch 1 ,core_clkpll_cfg6 
+397c 793ffe07 set0 7 ,pdata 
+397d 67f08a09 store 1 ,core_clkpll_cfg6 
+397e 2000003c nop 60 
+397f 708a171f jam 0x1f ,core_rx_en0 
+3980 708a18f8 jam 0xf8 ,core_rx_en1 
+3981 708a1918 jam 0x18 ,core_tx_en0 
+3982 708a1000 jam 0x00 ,core_rf_ldo_cfg4 
+3983 708a1120 jam 0x20 ,core_rf_ldo_cfg5 
+3984 2000000a nop 10 
+3985 70890004 jam 0x04 ,modem_en 
+3986 20000002 nop 2 
+3987 7089000c jam 0x0c ,modem_en 
+3988 20600000 rtn 
+
+rf_rx_write_freq:
+3989 4489c002 bpatch patch02_3 ,mem_patch02 
+398a d8c00960 arg 2400 ,contr 
+398b 98c0fe00 iadd contr ,pdata 
+398c 6848c09a fetcht 1 ,mem_fcomp_div 
+398d 20203998 branch rf_write_freq_calc 
+
+rf_tx_write_freq:
+398e 448a4002 bpatch patch02_4 ,mem_patch02 
+398f 6fe0c09a fetch 1 ,mem_fcomp_div 
+3990 1fe67c18 sub pdata ,xtal_24m ,null 
+3991 2042b9bb call rf_tx_write_freq_24m ,zero 
+3992 2442b9c2 ncall rf_tx_write_freq_16m ,zero 
+3993 58000960 setarg 2400 
+3994 9a20fe00 iadd rega ,pdata 
+3995 1fe3fe00 lshift pdata ,pdata 
+3996 6848c09a fetcht 1 ,mem_fcomp_div 
+3997 184f8403 mul32 temp ,0x03 ,temp 
+
+rf_write_freq_calc:
+3998 18438400 lshift temp ,temp 
+3999 9846fc00 idiv temp 
+399a 20407475 call wait_div_end 
+399b 1807fe00 quotient pdata 
+399c 67f08a3f store 1 ,core_syn_divr_int 
+399d 18077e00 remainder pdata 
+399e 1ff07e00 lshift16 pdata ,pdata 
+399f 1fed7e00 lshift8 pdata ,pdata 
+39a0 9846fc00 idiv temp 
+39a1 20407475 call wait_div_end 
+39a2 1807fe00 quotient pdata 
+39a3 67f08a42 store 1 ,core_syn_divr_int + 3 
+39a4 1fecfe00 rshift8 pdata ,pdata 
+39a5 67f08a41 store 1 ,core_syn_divr_int + 2 
+39a6 1fecfe00 rshift8 pdata ,pdata 
+39a7 67f08a40 store 1 ,core_syn_divr_int + 1 
+39a8 68588a43 fetcht 1 ,core_syn_cal_ctrl 
+39a9 184104f0 and_into 0xf0 ,temp 
+39aa 60588a43 storet 1 ,core_syn_cal_ctrl 
+39ab 2000000c nop 12 
+39ac 6fe0c09a fetch 1 ,mem_fcomp_div 
+39ad c00c39af beq xtal_24m ,rf_write_freq_calc_24m 
+39ae c00439b5 beq xtal_16m ,rf_write_freq_calc_16m 
+
+rf_write_freq_calc_24m:
+39af 1841840c or_into 0x0c ,temp 
+39b0 60588a43 storet 1 ,core_syn_cal_ctrl 
+39b1 2000000c nop 12 
+39b2 18418403 or_into 0x03 ,temp 
+39b3 60588a43 storet 1 ,core_syn_cal_ctrl 
+39b4 20600000 rtn 
+
+rf_write_freq_calc_16m:
+39b5 1841843c or_into 0x3c ,temp 
+39b6 60588a43 storet 1 ,core_syn_cal_ctrl 
+39b7 2000000c nop 12 
+39b8 18418433 or_into 0x33 ,temp 
+39b9 60588a43 storet 1 ,core_syn_cal_ctrl 
+39ba 20600000 rtn 
+
+rf_tx_write_freq_24m:
+39bb 708a4300 jam 0 ,core_syn_cal_ctrl 
+39bc 708a3d12 jam 0x12 ,core_syn_top_ctrl 
+39bd 708a3e00 jam 0 ,core_syn_mmd_cp_ctrl 
+39be 708a8403 jam 0x03 ,core_syn_cp_lpf_cfg 
+39bf 708a8ba6 jam 0xa6 ,core_syn_aac_cfg1 
+39c0 708a8940 jam 0x40 ,core_syn_afc_cfg3 
+39c1 20600000 rtn 
+
+rf_tx_write_freq_16m:
+39c2 708a4330 jam 0x30 ,core_syn_cal_ctrl 
+39c3 708a3d15 jam 0x15 ,core_syn_top_ctrl 
+39c4 708a3e00 jam 0 ,core_syn_mmd_cp_ctrl 
+39c5 708a8420 jam 0x20 ,core_syn_cp_lpf_cfg 
+39c6 708a8ba6 jam 0xa6 ,core_syn_aac_cfg1 
+39c7 708a8915 jam 0x15 ,core_syn_afc_cfg3 
+39c8 20600000 rtn 
+
+set_freq_tx:
+39c9 448ac002 bpatch patch02_5 ,mem_patch02 
+39ca 708a3d12 jam 0x12 ,core_syn_top_ctrl 
+39cb 60488008 storet 1 ,mem_last_freq 
+39cc 1840a202 add temp ,2 ,rega 
+39cd 2040398e call rf_tx_write_freq 
+39ce 200003c0 nop 0x3c0 
+
+txon:
+39cf 448b4002 bpatch patch02_6 ,mem_patch02 
+39d0 708a10aa jam 0xaa ,core_rf_ldo_cfg4 
+39d1 708a112a jam 0x2a ,core_rf_ldo_cfg5 
+39d2 708a1210 jam 0x10 ,core_rf_ldo_cfg6 
+39d3 708a0a7f jam 0x7f ,core_rf_ldo_en0 
+39d4 6ff08a09 fetch 1 ,core_clkpll_cfg6 
+39d5 793ffe07 set0 7 ,pdata 
+39d6 67f08a09 store 1 ,core_clkpll_cfg6 
+39d7 708a0b07 jam 0x07 ,core_rf_ldo_en1 
+39d8 2000003c nop 60 
+39d9 708a190d jam 0x0d ,core_tx_en0 
+39da 708a1af9 jam 0xf9 ,core_tx_en1 
+39db 708a1000 jam 0x00 ,core_rf_ldo_cfg4 
+39dc 708a1120 jam 0x20 ,core_rf_ldo_cfg5 
+39dd 2000000a nop 10 
+39de 70890001 jam 0x01 ,modem_en 
+39df 20000002 nop 2 
+39e0 70890003 jam 0x03 ,modem_en 
+39e1 448bc002 bpatch patch02_7 ,mem_patch02 
+39e2 6fe0c116 fetch 1 ,mem_tx_power 
+39e3 c001b9f2 beq tx_power_3db ,set_tx_power_3db 
+39e4 c002b9f7 beq tx_power_5db ,set_tx_power_5db 
+39e5 c00339fa beq tx_power_6db ,set_tx_power_6db 
+39e6 c003b9fd beq tx_power_7db ,set_tx_power_7db 
+39e7 c0053a00 beq tx_power_10db ,set_tx_power_10db 
+39e8 c041ba03 beq tx_power_f3db ,set_tx_power_f3db 
+39e9 c042ba06 beq tx_power_f5db ,set_tx_power_f5db 
+39ea c04a3a09 beq tx_power_f20db ,set_tx_power_f20db 
+39eb c04f3a0c beq tx_power_f30db ,set_tx_power_f30db 
+39ec c0553a0f beq tx_power_factory ,set_tx_power_factory 
+
+set_tx_power_0db:
+39ed 708a396a jam 0x6a ,core_tx_pwr_ctrl0 
+39ee 708a3a07 jam 0x07 ,core_tx_pwr_ctrl1 
+
+set_rf_ldo_cfg89:
+39ef 708a14a3 jam 0xa3 ,core_rf_ldo_cfg8 
+39f0 708a1507 jam 0x07 ,core_rf_ldo_cfg9 
+39f1 20600000 rtn 
+
+set_tx_power_3db:
+39f2 708a3966 jam 0x66 ,core_tx_pwr_ctrl0 
+39f3 708a3a0b jam 0x0b ,core_tx_pwr_ctrl1 
+
+set_rf_ldo_cfg89_2:
+39f4 708a14aa jam 0xaa ,core_rf_ldo_cfg8 
+39f5 708a150a jam 0x0a ,core_rf_ldo_cfg9 
+39f6 20600000 rtn 
+
+set_tx_power_5db:
+39f7 708a396c jam 0x6c ,core_tx_pwr_ctrl0 
+39f8 708a3a0d jam 0x0d ,core_tx_pwr_ctrl1 
+39f9 202039f4 branch set_rf_ldo_cfg89_2 
+
+set_tx_power_6db:
+39fa 708a396b jam 0x6b ,core_tx_pwr_ctrl0 
+39fb 708a3a0f jam 0x0f ,core_tx_pwr_ctrl1 
+39fc 202039f4 branch set_rf_ldo_cfg89_2 
+
+set_tx_power_7db:
+39fd 708a39a7 jam 0xa7 ,core_tx_pwr_ctrl0 
+39fe 708a3a0f jam 0x0f ,core_tx_pwr_ctrl1 
+39ff 202039f4 branch set_rf_ldo_cfg89_2 
+
+set_tx_power_10db:
+3a00 708a39b6 jam 0xb6 ,core_tx_pwr_ctrl0 
+3a01 708a3a0f jam 0x0f ,core_tx_pwr_ctrl1 
+3a02 202039f4 branch set_rf_ldo_cfg89_2 
+
+set_tx_power_f3db:
+3a03 708a3968 jam 0x68 ,core_tx_pwr_ctrl0 
+3a04 708a3a05 jam 0x05 ,core_tx_pwr_ctrl1 
+3a05 202039ef branch set_rf_ldo_cfg89 
+
+set_tx_power_f5db:
+3a06 708a3960 jam 0x60 ,core_tx_pwr_ctrl0 
+3a07 708a3a05 jam 0x05 ,core_tx_pwr_ctrl1 
+3a08 202039ef branch set_rf_ldo_cfg89 
+
+set_tx_power_f20db:
+3a09 708a3953 jam 0x53 ,core_tx_pwr_ctrl0 
+3a0a 708a3a01 jam 0x01 ,core_tx_pwr_ctrl1 
+3a0b 202039ef branch set_rf_ldo_cfg89 
+
+set_tx_power_f30db:
+3a0c 708a394c jam 0x4c ,core_tx_pwr_ctrl0 
+3a0d 708a3a00 jam 0x00 ,core_tx_pwr_ctrl1 
+3a0e 202039ef branch set_rf_ldo_cfg89 
+
+set_tx_power_factory:
+3a0f 6fe1489b fetch 2 ,mem_tx_power_factory_param 
+3a10 67f10a39 store 2 ,core_tx_pwr_ctrl0 
+3a11 202039ef branch set_rf_ldo_cfg89 
+
+initialize_radio:
+3a12 70804206 jam clksel_rc ,core_clksel 
+
+initialize_radio_wait:
+3a13 6fe1409d fetch 2 ,mem_rf_init_ptr 
+3a14 c3073a13 bbit0 14 ,initialize_radio_wait 
+3a15 98000c00 iforce contr 
+3a16 d8408a00 arg 0x8a00 ,temp 
+
+initialize_radio_loop:
+3a17 efe08006 ifetch 1 ,contr 
+3a18 c07fba1d beq 0xff ,initialize_radio_cont 
+3a19 98418a00 ior temp ,contw 
+3a1a efe08006 ifetch 1 ,contr 
+3a1b e7e08005 istore 1 ,contw 
+3a1c 20203a17 branch initialize_radio_loop 
+
+initialize_radio_cont:
+3a1d 448c4003 bpatch patch03_0 ,mem_patch03 
+3a1e 6fe0c3ef fetch 1 ,mem_wdt_always_work 
+3a1f 205a6d31 call wdt_set_disable ,blank 
+3a20 708a0305 jam 0x05 ,core_clkpll_cfg0 
+3a21 708a7a94 jam 0x94 ,core_rx_iqadc_cfg 
+3a22 20403a44 call initialize_rc_cal 
+3a23 20403a3f call initialize_rf_ldo_cfg1 
+3a24 20403a3a call initialize_syn_afc_cfg1 
+3a25 708a8be6 jam 0xe6 ,core_syn_aac_cfg1 
+3a26 708a8390 jam 0x90 ,core_syn_pfd_lkd_cfg 
+3a27 708a0e0b jam 0x0b ,core_rf_ldo_cfg2 
+3a28 708a0f05 jam 0x05 ,core_rf_ldo_cfg3 
+3a29 70896876 jam 0x76 ,core_agc_wb_sat_th 
+3a2a 70896976 jam 0x76 ,core_agc_nb_sat_th 
+3a2b 6fe0c09a fetch 1 ,mem_fcomp_div 
+3a2c c0843a2e bne xtal_16m ,initialize_radio_cont_next 
+3a2d 708a0834 jam 0x34 ,core_clkpll_cfg5 
+
+initialize_radio_cont_next:
+3a2e 708a01ff jam 0xff ,core_clkpll_ctrl1 
+3a2f 20000064 nop 100 
+3a30 708a020e jam 0x0e ,core_clkpll_ctrl2 
+3a31 708a0003 jam 0x03 ,core_clkpll_ctrl0 
+3a32 204039ed call set_tx_power_0db 
+3a33 708a9a2b jam 0x2b ,core_tx_mixer_cfg1 
+3a34 708a9b13 jam 0x13 ,core_tx_mixer_cfg2 
+3a35 20403a71 call init_lpm_ctrl 
+3a36 20000064 nop 100 
+3a37 70804205 jam clksel_dpll ,core_clksel 
+3a38 70411d0c jam system_clk_12m ,mem_system_clk 
+3a39 20203d00 branch le_disable 
+
+initialize_syn_afc_cfg1:
+3a3a 6fe0c3eb fetch 1 ,mem_syn_afc_cfg1 
+3a3b 243a3a3d nbranch initialize_syn_afc_cfg1_set ,blank 
+3a3c 58000029 setarg 0x29 
+
+initialize_syn_afc_cfg1_set:
+3a3d 67f08a87 store 1 ,core_syn_afc_cfg1 
+3a3e 20600000 rtn 
+
+initialize_rf_ldo_cfg1:
+3a3f 6fe0c3ec fetch 1 ,mem_rf_ldo_cfg1 
+3a40 243a3a42 nbranch initialize_rf_ldo_cfg1_set ,blank 
+3a41 58000000 setarg 0x00 
+
+initialize_rf_ldo_cfg1_set:
+3a42 67f08a0d store 1 ,core_rf_ldo_cfg1 
+3a43 20600000 rtn 
+
+initialize_rc_cal:
+3a44 6fe0c3ed fetch 1 ,mem_rc_cal 
+3a45 203a3a47 branch initialize_rc_cal_set ,blank 
+3a46 580000d3 setarg 0xd3 
+
+initialize_rc_cal_set:
+3a47 67f08a6c store 1 ,core_rx_bq_bw_cal 
+3a48 20600000 rtn 
+
+save_rssi:
+3a49 448cc003 bpatch patch03_1 ,mem_patch03 
+3a4a 6ff089a2 fetch 1 ,modem_nb_pow 
+3a4b 2feffe06 isolate1 6 ,pdata 
+3a4c 7920fe07 setflag true ,7 ,pdata 
+3a4d 67e0c117 store 1 ,mem_modem_rssi 
+3a4e 6ff089a3 fetch 1 ,modem_gain 
+3a4f 1fe1040f and pdata ,0x0f ,temp 
+3a50 18438400 lshift temp ,temp 
+3a51 1ff1fe00 rshift4 pdata ,pdata 
+3a52 98408400 iadd temp ,temp 
+3a53 184fa203 mul32 temp ,3 ,rega 
+3a54 6fe0c117 fetch 1 ,mem_modem_rssi 
+3a55 20403a5f call byte_sign_extern 
+3a56 1fe67e00 sub pdata ,0 ,pdata 
+3a57 9a20fe00 iadd rega ,pdata 
+3a58 1fe0fff7 increase -9 ,pdata 
+3a59 1fe17fff and pdata ,0x1ff ,pdata 
+3a5a 2feffe08 isolate1 8 ,pdata 
+3a5b 2420ba5d nbranch save_rssi_store ,true 
+3a5c 58000000 setarg 0 
+
+save_rssi_store:
+3a5d 67e08030 store 1 ,mem_rssi_hex 
+3a5e 20203a64 branch rssi_hex2dec 
+
+byte_sign_extern:
+3a5f 2feffe07 isolate1 7 ,pdata 
+3a60 24608000 nrtn true 
+3a61 d840ff00 arg 0xff00 ,temp 
+3a62 9841fe00 ior temp ,pdata 
+3a63 20600000 rtn 
+
+rssi_hex2dec:
+3a64 6fe08030 fetch 1 ,mem_rssi_hex 
+3a65 20403a68 call bcd 
+3a66 67e08009 store 1 ,mem_rssi 
+3a67 20600000 rtn 
+
+bcd:
+3a68 1fe17eff and_into 0xff ,pdata 
+3a69 1fe6fc0a div pdata ,10 
+3a6a 20407472 call get_div_result 
+3a6b 1ff27e00 lshift4 pdata ,pdata 
+3a6c 18070400 remainder temp 
+3a6d 9841fe00 ior temp ,pdata 
+3a6e 20600000 rtn 
+
+xtal_fast_wake:
+3a6f 58000f0f setarg 0xf0f 
+3a70 20203c04 branch lpm_write_config 
+
+init_lpm_ctrl:
+3a71 5800080f setarg 0x80f 
+3a72 20203c04 branch lpm_write_config 
+
+ahead_window:
+3a73 1fe20400 copy pdata ,temp 
+3a74 448d4003 bpatch patch03_2 ,mem_patch03 
+3a75 18427e00 copy temp ,pdata 
+3a76 2040746b call clk2bt 
+3a77 1c307e00 lshift16 bt_clk ,pdata 
+3a78 79207e2c set1 44 ,pdata 
+3a79 20407451 call clk_diff 
+3a7a 793ffe2c set0 44 ,pdata 
+3a7b 20403a82 call get_clk 
+3a7c 20407451 call clk_diff 
+3a7d 20740000 rtn user 
+3a7e 2040745e call clk2rt 
+3a7f 98003600 iforce stop_watch 
+3a80 37c18200 until null ,timeout 
+3a81 20600000 rtn 
+
+get_clk:
+3a82 1b220400 copy clkn ,temp 
+3a83 20748000 rtn master 
+3a84 1b420400 copy clke ,temp 
+3a85 20600000 rtn 
+
+get_clkbt:
+3a86 1c427e00 deposit clkn_bt 
+3a87 20748000 rtn master 
+3a88 1d027e00 deposit clke_bt 
+3a89 20600000 rtn 
+
+assert:
+3a8a 448dc003 bpatch patch03_3 ,mem_patch03 
+3a8b 20203a8a branch assert 
+
+sleep:
+3a8c 207a0000 rtn blank 
+3a8d 1fe37e00 rshift pdata ,pdata 
+3a8e 1fe0fffd increase -3 ,pdata 
+
+sleep_loop:
+3a8f 1fe0ffff increase -1 ,pdata 
+3a90 2422ba8f nbranch sleep_loop ,zero 
+3a91 18007e00 force 0 ,pdata 
+3a92 20600000 rtn 
+
+init_param:
+3a93 58000000 setarg 0 
+3a94 67e30000 store 6 ,mem_le_adv_transmit 
+3a95 d8a00163 arg mem_le_state ,contw 
+3a96 df20000a arg 10 ,loopcnt 
+3a97 204073dd call memset0 
+3a98 7004c300 jam 0 ,mem_fifo_temp 
+3a99 7001b600 jam 0 ,mem_le_testtype 
+3a9a 58000e43 setarg param_tx_setup 
+3a9b 67e10031 store 2 ,mem_param_tx_setup 
+3a9c 58000600 setarg param_rf_setup 
+3a9d 67e10033 store 2 ,mem_param_rf_setup 
+3a9e 58000600 setarg param_conn_access 
+3a9f 67e10035 store 2 ,mem_param_conn_access 
+3aa0 58000d00 setarg param_rx_setup 
+3aa1 67e1003b store 2 ,mem_param_rx_setup 
+3aa2 580003bb setarg param_clke_cal 
+3aa3 67e10037 store 2 ,mem_param_clke_cal 
+3aa4 58000500 setarg param_pll_setup 
+3aa5 67e10039 store 2 ,mem_param_pll_setup 
+3aa6 580007d0 setarg param_dpll_start_delay 
+3aa7 67e1003d store 2 ,mem_param_dpll_start_delay 
+3aa8 58000ea6 setarg param_rt_rthalfslot 
+3aa9 67e1003f store 2 ,mem_param_rt_rthalfslot 
+3aaa 580001e0 setarg param_clke_cal_le_1m 
+3aab 67e10041 store 2 ,mem_param_clke_cal_le_1m 
+3aac 58000120 setarg param_clke_cal_le_2m 
+3aad 67e10043 store 2 ,mem_param_clke_cal_le_2m 
+3aae 5800011a setarg param_clke_cal_le_coded 
+3aaf 67e10045 store 2 ,mem_param_clke_cal_le_coded 
+3ab0 448e4003 bpatch patch03_4 ,mem_patch03 
+3ab1 20758000 rtn wake 
+3ab2 7041298b jam param_t_ifs_150us + param_sync_time_difference ,mem_le_tx_ifs_defference 
+3ab3 58000d00 setarg mem_ble_tx_buff0 
+3ab4 67e14316 store 2 ,mem_ble_l2cap_tx_buff0_ptr 
+3ab5 58000060 setarg mem_ble_l2cap_tx_buff_size 
+3ab6 67e14318 store 2 ,mem_ble_l2cap_tx_buff_size_ptr 
+3ab7 1c437e00 rshift clkn_bt ,pdata 
+3ab8 67e24096 store 4 ,mem_last_clkn 
+3ab9 20600000 rtn 
+
+ldo_abb_en_init:
+3aba 20758000 rtn wake 
+3abb 448ec003 bpatch patch03_5 ,mem_patch03 
+3abc 6ff08a0a fetch 1 ,core_rf_ldo_en0 
+3abd 79207e03 set1 3 ,pdata 
+3abe 67f08a0a store 1 ,core_rf_ldo_en0 
+3abf 200004b0 nop 1200 
+3ac0 793ffe03 set0 3 ,pdata 
+3ac1 67f08a0a store 1 ,core_rf_ldo_en0 
+3ac2 20600000 rtn 
+
+lpmstate:
+3ac3 5800ee21 setarg 0xee21 
+3ac4 67f10050 store 2 ,core_clkoff 
+3ac5 6ff2011c fetch 4 ,core_gpio_in 
+3ac6 67e204f2 store 4 ,mem_saved_gpio_in 
+3ac7 67e204f2 store 4 ,mem_saved_gpio_in 
+3ac8 70804783 jam 0x83 ,core_otp_ctrl 
+3ac9 6ff08133 fetch 1 ,core_lpm_ctrl + 3 
+3aca 67e084f1 store 1 ,mem_wakup_from_power_flag 
+3acb 6ff08136 fetch 1 ,core_lpm_ldocnt 
+3acc c301e7ba bbit0 gpio_latch ,loadcode 
+3acd 7835fc00 enable wake 
+3ace c303bad8 bbit0 cold_wake ,lpmwake 
+3acf 7855fc00 disable wake 
+3ad0 1ce27e00 deposit auxcnt 
+3ad1 243a3ad8 nbranch lpmwake ,blank 
+3ad2 6ff08133 fetch 1 ,core_lpm_ctrl + 3 
+3ad3 c2813ad8 bbit1 reload_code ,lpmwake 
+3ad4 d85fffff arg param_hibernate_clks ,temp 
+3ad5 605a004c storet 4 ,core_lpm_reg 
+3ad6 70800510 jam lpmreg_sel_counter ,core_lpm_wr 
+3ad7 37df8200 until null ,never 
+
+lpmwake:
+3ad8 37d98200 until null ,lpo_edge 
+3ad9 70800520 jam lpmreg_sel_ctrl3 ,core_lpm_wr 
+3ada 37d98200 until null ,lpo_edge 
+3adb 70800502 jam lpmreg_sel_ctrl2 ,core_lpm_wr 
+3adc 6ff20138 fetch 4 ,core_lpm_ctrl2 
+3add 67f2004c store 4 ,core_lpm_reg 
+3ade 6ff08139 fetch 1 ,core_lpm_ctrl2 + 1 
+3adf 1fe17ee0 and_into 0xe0 ,pdata 
+3ae0 67f0804d store 1 ,core_lpm_reg + 1 
+3ae1 37d98200 until null ,lpo_edge 
+3ae2 70800502 jam lpmreg_sel_ctrl2 ,core_lpm_wr 
+3ae3 6ff18134 fetch 3 ,core_lpm_xtalcnt 
+3ae4 67f1804c store 3 ,core_lpm_reg 
+3ae5 efe08006 ifetch 1 ,contr 
+3ae6 1fe1feef or_into isogate_mask ,pdata 
+3ae7 e7e08005 istore 1 ,contw 
+3ae8 37d98200 until null ,lpo_edge 
+3ae9 70800502 jam lpmreg_sel_ctrl2 ,core_lpm_wr 
+3aea 6ff0804f fetch 1 ,core_lpm_isogate 
+3aeb 79207e04 set1 enable_retmem ,pdata 
+3aec 67f0804f store 1 ,core_lpm_isogate 
+3aed 37d98200 until null ,lpo_edge 
+3aee 2055bb0b call lpm_load_context ,wake 
+3aef 6ff0804e fetch 1 ,core_lpm_reg + 2 
+3af0 793ffe03 set0 gpio_latch ,pdata 
+3af1 67f0804e store 1 ,core_lpm_reg + 2 
+3af2 2055e845 call load_ucode ,wake 
+3af3 2435e7ba nbranch loadcode ,wake 
+3af4 c6958000 rtnmark0 mark_otp_encrypt 
+3af5 70800608 jam lock_otp ,core_misc_ctrl 
+3af6 20600000 rtn 
+
+lpm_ctrl3_cfg_dig_vsel:
+3af7 6fe0c3ea fetch 1 ,mem_dig_aon_vsel 
+3af8 c000baff beq 1 ,lpm_ctrl3_cfg_vsel_108 
+3af9 c0013b03 beq 2 ,lpm_ctrl3_cfg_vsel_096 
+3afa c001bb07 beq 3 ,lpm_ctrl3_cfg_vsel_084 
+
+lpm_ctrl3_cfg_vsel_120:
+3afb 6fe0c0cd fetch 1 ,mem_lpm_ctrl3_aon_vsel 
+3afc 1fe17ee0 and_into 0xe0 ,pdata 
+
+lpm_ctrl3_cfg_vsel_store:
+3afd 67e0c0cd store 1 ,mem_lpm_ctrl3_aon_vsel 
+3afe 20600000 rtn 
+
+lpm_ctrl3_cfg_vsel_108:
+3aff 6fe0c0cd fetch 1 ,mem_lpm_ctrl3_aon_vsel 
+3b00 1fe17ee0 and_into 0xe0 ,pdata 
+3b01 1fe1fe1d or_into 0x1d ,pdata 
+3b02 20203afd branch lpm_ctrl3_cfg_vsel_store 
+
+lpm_ctrl3_cfg_vsel_096:
+3b03 6fe0c0cd fetch 1 ,mem_lpm_ctrl3_aon_vsel 
+3b04 1fe17ee0 and_into 0xe0 ,pdata 
+3b05 1fe1fe1b or_into 0x1b ,pdata 
+3b06 20203afd branch lpm_ctrl3_cfg_vsel_store 
+
+lpm_ctrl3_cfg_vsel_084:
+3b07 6fe0c0cd fetch 1 ,mem_lpm_ctrl3_aon_vsel 
+3b08 1fe17ee0 and_into 0xe0 ,pdata 
+3b09 1fe1fe17 or_into 0x17 ,pdata 
+3b0a 20203afd branch lpm_ctrl3_cfg_vsel_store 
+
+lpm_load_context:
+3b0b 6fe0c0e8 fetch 1 ,mem_saved_spidctrl 
+3b0c 67f08080 store 1 ,core_spid_ctrl 
+3b0d 6fe440d0 fetch 8 ,mem_saved_gpio 
+3b0e 67f40070 store 8 ,core_gpio_conf 
+3b0f efe28006 ifetch 5 ,contr 
+3b10 e7e28005 istore 5 ,contw 
+3b11 680440e0 fetchr mark ,8 ,mem_saved_mark 
+3b12 20600000 rtn 
+
+lpm_save_context:
+3b13 600440e0 storer mark ,8 ,mem_saved_mark 
+3b14 6ff40070 fetch 8 ,core_gpio_conf 
+3b15 67e440d0 store 8 ,mem_saved_gpio 
+3b16 efe28006 ifetch 5 ,contr 
+3b17 e7e28005 istore 5 ,contw 
+3b18 6ff08080 fetch 1 ,core_spid_ctrl 
+3b19 67e0c0e8 store 1 ,mem_saved_spidctrl 
+3b1a 20600000 rtn 
+
+lpo_calibration:
+3b1b 6ff0806f fetch 1 ,core_aes_en 
+3b1c 1feb7e00 rshift2 pdata ,pdata 
+3b1d 1fe17e0f and pdata ,0xf ,pdata 
+3b1e 243a3b25 nbranch lpo_cal_inited ,blank 
+3b1f 6fe1c0be fetch 3 ,mem_clks_per_lpo 
+3b20 247a0000 nrtn blank 
+3b21 6ff0806f fetch 1 ,core_aes_en 
+3b22 1fe1fe30 or_into 0x30 ,pdata 
+3b23 67f0806f store 1 ,core_aes_en 
+3b24 70800680 jam ccnt_start ,core_misc_ctrl 
+
+lpo_cal_inited:
+3b25 6ff08129 fetch 1 ,core_perf_status 
+3b26 c4008000 rtnbit0 1 
+3b27 6ff18145 fetch 3 ,core_clk_counter 
+3b28 67e1c0be store 3 ,mem_clks_per_lpo 
+3b29 20600000 rtn 
+
+lpm_adjust_clk:
+3b2a 448f4003 bpatch patch03_6 ,mem_patch03 
+3b2b 1b427e00 deposit clke 
+3b2c 2040744f call clk_diff_rt 
+3b2d 684a40ae fetcht 4 ,mem_sleep_counter_all 
+3b2e 18467cff sub temp ,0xff ,null 
+3b2f 20610000 rtn positive 
+3b30 1fed7e00 lshift8 pdata ,pdata 
+3b31 1ff27e00 lshift4 pdata ,pdata 
+3b32 9846fc00 idiv temp 
+3b33 20407472 call get_div_result 
+3b34 d84000c8 arg param_lpm_adjmax ,temp 
+3b35 20407480 call ceiling 
+3b36 67e0800e store 1 ,mem_lpm_adjust 
+3b37 24343b39 nbranch lpm_adjust_positive ,user 
+3b38 1fe67e00 sub pdata ,0 ,pdata 
+
+lpm_adjust_positive:
+3b39 6849c0be fetcht 3 ,mem_clks_per_lpo 
+3b3a 9840fe00 iadd temp ,pdata 
+3b3b 67e1c0be store 3 ,mem_clks_per_lpo 
+
+lpm_clear_counter:
+3b3c 58000000 setarg 0 
+3b3d 67e240ae store 4 ,mem_sleep_counter_all 
+3b3e 20600000 rtn 
+
+lpm_hibernate:
+3b3f 448fc003 bpatch patch03_7 ,mem_patch03 
+3b40 d85fffff arg param_hibernate_clks ,temp 
+3b41 20403c18 call lpm_write_gpio_wakeup 
+3b42 6fe0c0a8 fetch 1 ,mem_lpm_hibernate_switch 
+3b43 67e0c0cb store 1 ,mem_lpm_xtalcnt + 4 
+3b44 6fe0c0c9 fetch 1 ,mem_lpm_xtalcnt + 2 
+3b45 79207e07 set1 cold_wake ,pdata 
+3b46 67e0c0c9 store 1 ,mem_lpm_xtalcnt + 2 
+
+lpm_sleep:
+3b47 44904004 bpatch patch04_0 ,mem_patch04 
+3b48 6fe143a2 fetch 2 ,mem_cb_before_lpm_sleep 
+3b49 20407487 call callback_func 
+3b4a 37d98200 until null ,lpo_edge 
+3b4b 70800501 jam lpmreg_sel_ctrl ,core_lpm_wr 
+3b4c 20403af7 call lpm_ctrl3_cfg_dig_vsel 
+3b4d 37d98200 until null ,lpo_edge 
+3b4e 70800502 jam lpmreg_sel_ctrl2 ,core_lpm_wr 
+3b4f 58000f0f setarg 0xf0f 
+3b50 20403bfa call lpm_write_config_reg 
+
+lpm_sleep_skip_cb_function:
+3b51 6fe240ae fetch 4 ,mem_sleep_counter_all 
+3b52 9840fe00 iadd temp ,pdata 
+3b53 67e240ae store 4 ,mem_sleep_counter_all 
+3b54 20403b13 call lpm_save_context 
+3b55 37d98200 until null ,lpo_edge 
+3b56 70800502 jam lpmreg_sel_ctrl2 ,core_lpm_wr 
+3b57 6a4240cc fetchr regb ,4 ,mem_lpm_ctrl3 
+3b58 6fe2c0c7 fetch 5 ,mem_lpm_xtalcnt 
+3b59 67f2004c store 4 ,core_lpm_reg 
+3b5a 632340b2 storer clkn ,6 ,mem_sleep_clkn 
+3b5b 37d98200 until null ,lpo_edge 
+3b5c 70800520 jam lpmreg_sel_ctrl3 ,core_lpm_wr 
+3b5d 1fef7e00 rshift32 pdata ,pdata 
+3b5e 67f0804f store 1 ,core_lpm_isogate 
+3b5f 37d98200 until null ,lpo_edge 
+3b60 6252004c storer regb ,4 ,core_lpm_reg 
+3b61 70800510 jam lpmreg_sel_counter ,core_lpm_wr 
+3b62 37d98200 until null ,lpo_edge 
+3b63 605a004c storet 4 ,core_lpm_reg 
+3b64 37df8200 until null ,never 
+
+lpm_recover_clk:
+3b65 4490c004 bpatch patch04_1 ,mem_patch04 
+3b66 58000000 setarg 0 
+3b67 1ce27c00 copy auxcnt ,null 
+3b68 2022bb70 branch lpm_recover_timeout ,zero 
+3b69 6ff08134 fetch 1 ,core_lpm_xtalcnt 
+3b6a 68588135 fetcht 1 ,core_lpm_buckcnt 
+3b6b 98467c00 isub temp ,null 
+3b6c 20213b6e branch lpm_recover_xtal ,positive 
+3b6d 18427e00 deposit temp 
+
+lpm_recover_xtal:
+3b6e 9ce67e00 isub auxcnt ,pdata 
+3b6f 1fe0fe01 increase 1 ,pdata 
+
+lpm_recover_timeout:
+3b70 1fe0fe07 increase param_lpo_extra ,pdata 
+3b71 37d98200 until null ,lpo_edge 
+3b72 9e20fe00 iadd lpo_time ,pdata 
+3b73 684a40aa fetcht 4 ,mem_sleep_counter 
+3b74 9840fe00 iadd temp ,pdata 
+3b75 6849c0be fetcht 3 ,mem_clks_per_lpo 
+3b76 984ffe00 imul32 temp ,pdata 
+3b77 1fecfe00 rshift8 pdata ,pdata 
+3b78 1ff1fe00 rshift4 pdata ,pdata 
+3b79 1fe0fff3 increase param_lpm_fix ,pdata 
+3b7a 6849003f fetcht 2 ,mem_param_rt_rthalfslot 
+3b7b 9846fc00 idiv temp 
+3b7c 20407472 call get_div_result 
+3b7d 1ff07e00 lshift16 pdata ,pdata 
+3b7e 18070400 remainder temp 
+3b7f 9841fe00 ior temp ,pdata 
+3b80 684b40b2 fetcht 6 ,mem_sleep_clkn 
+3b81 20407444 call clk_add 
+3b82 37d98200 until null ,lpo_edge 
+3b83 18423200 copy temp ,clkn 
+3b84 6fe34048 fetch 6 ,mem_context + coffset_clk_offset 
+3b85 20403905 call calc_clke2 
+3b86 1b427e00 deposit clke 
+3b87 67e304c4 store 6 ,mem_pdatatemp 
+3b88 1ce27e00 deposit auxcnt 
+3b89 e7e08005 istore 1 ,contw 
+3b8a 6ff0811d fetch 1 ,core_gpio_in1 
+3b8b 1fe1fef0 or_into 0xf0 ,pdata 
+3b8c e7e08005 istore 1 ,contw 
+3b8d 20600000 rtn 
+
+lpm_dispatch:
+3b8e 44914004 bpatch patch04_2 ,mem_patch04 
+3b8f 20403b1b call lpo_calibration 
+3b90 6fe1c0be fetch 3 ,mem_clks_per_lpo 
+3b91 207a0000 rtn blank 
+3b92 6fe0c094 fetch 1 ,mem_lpm_mode 
+3b93 207a0000 rtn blank 
+3b94 da6038ab arg context_check_a_wack ,regc 
+3b95 20403867 call context_search 
+3b96 20628000 rtn zero 
+3b97 20403c29 call lpm_check_wake_lock 
+3b98 247a0000 nrtn blank 
+3b99 2040385b call context_check_idle 
+3b9a 2422bbb9 nbranch lpm_dispatch_unconn ,zero 
+3b9b 20758000 rtn wake 
+3b9c 4491c004 bpatch patch04_3 ,mem_patch04 
+3b9d 68488015 fetcht 1 ,mem_lpm_current_mult 
+3b9e 6fe14042 fetch 2 ,mem_context + coffset_tsniff 
+3b9f 984ffe00 imul32 temp ,pdata 
+3ba0 18518400 rshift4 temp ,temp 
+3ba1 184b0400 rshift2 temp ,temp 
+3ba2 98467e00 isub temp ,pdata 
+3ba3 684a4044 fetcht 4 ,mem_context + coffset_sniff_anchor 
+3ba4 9840fe00 iadd temp ,pdata 
+3ba5 6848c0a7 fetcht 1 ,mem_lpm_overhead 
+3ba6 98467e00 isub temp ,pdata 
+3ba7 1ff06000 lshift16 pdata ,alarm 
+3ba8 6fe1404e fetch 2 ,mem_context + coffset_rx_window 
+3ba9 1fe37e00 rshift pdata ,pdata 
+3baa 2040746b call clk2bt 
+3bab 1e027e00 deposit alarm 
+3bac 20407451 call clk_diff 
+3bad 1b420400 copy clke ,temp 
+3bae 2040744f call clk_diff_rt 
+3baf 20740000 rtn user 
+
+lpm_dispatch_sleep:
+3bb0 20407464 call clk2lpo 
+
+lpm_dispatch_lpo:
+3bb1 44924004 bpatch patch04_4 ,mem_patch04 
+3bb2 6fe0c0c7 fetch 1 ,mem_lpm_xtalcnt 
+3bb3 98467c00 isub temp ,null 
+3bb4 20213b3c branch lpm_clear_counter ,positive 
+3bb5 604a40aa storet 4 ,mem_sleep_counter 
+3bb6 20404db1 call app_will_enter_lpm 
+3bb7 684a40aa fetcht 4 ,mem_sleep_counter 
+3bb8 20203b47 branch lpm_sleep 
+
+lpm_dispatch_unconn:
+3bb9 4492c004 bpatch patch04_5 ,mem_patch04 
+3bba 6fe0c35f fetch 1 ,mem_le_adv_enable 
+3bbb 243a3bbd nbranch lpm_unconn_cont ,blank 
+3bbc 20600000 rtn 
+
+lpm_unconn_cont:
+3bbd 6fe140a5 fetch 2 ,mem_lpm_interval 
+3bbe 207a0000 rtn blank 
+
+lpm_sleep_btclk:
+3bbf 6848c0a7 fetcht 1 ,mem_lpm_overhead 
+3bc0 98467e00 isub temp ,pdata 
+3bc1 d8401d4c arg 7500 ,temp 
+3bc2 984ffe00 imul32 temp ,pdata 
+3bc3 20203bb0 branch lpm_dispatch_sleep 
+
+lpm_mult_wait_timeout:
+3bc4 6fe1439e fetch 2 ,mem_cb_bt_set_mult 
+3bc5 20407487 call callback_func 
+3bc6 243a3bdc nbranch lpm_mult_short ,blank 
+3bc7 70001500 jam 0 ,mem_lpm_current_mult 
+3bc8 c586bbdc bmark0 mark_lpm_mult_enable ,lpm_mult_short 
+3bc9 6fe0c0c3 fetch 1 ,mem_lpm_mult_cnt 
+3bca 203a3be0 branch lpm_mult_long ,blank 
+3bcb 1fe0ffff increase -1 ,pdata 
+3bcc 67e0c0c3 store 1 ,mem_lpm_mult_cnt 
+3bcd 20600000 rtn 
+
+lpm_match:
+3bce 7040a900 jam 0 ,mem_sniff_unint_lost 
+3bcf 6fe1c0b8 fetch 3 ,mem_sniff_rcv 
+3bd0 1fe0fe01 increase 1 ,pdata 
+3bd1 67e1c0b8 store 3 ,mem_sniff_rcv 
+3bd2 20600000 rtn 
+
+lpm_lost:
+3bd3 44934004 bpatch patch04_6 ,mem_patch04 
+3bd4 70001500 jam 0 ,mem_lpm_current_mult 
+3bd5 6fe1c0bb fetch 3 ,mem_sniff_lost 
+3bd6 1fe0fe01 increase 1 ,pdata 
+3bd7 67e1c0bb store 3 ,mem_sniff_lost 
+3bd8 6fe0c0a9 fetch 1 ,mem_sniff_unint_lost 
+3bd9 1fe0fe01 increase 1 ,pdata 
+3bda 67e0c0a9 store 1 ,mem_sniff_unint_lost 
+3bdb 20600000 rtn 
+
+lpm_mult_short:
+3bdc 70001500 jam 0 ,mem_lpm_current_mult 
+3bdd 6fe0c0c2 fetch 1 ,mem_lpm_mult_timeout 
+3bde 67e0c0c3 store 1 ,mem_lpm_mult_cnt 
+3bdf 20600000 rtn 
+
+lpm_mult_long:
+3be0 6848c0c1 fetcht 1 ,mem_lpm_mult 
+3be1 60488015 storet 1 ,mem_lpm_current_mult 
+3be2 20600000 rtn 
+
+lpm_cal_xtal_startup:
+3be3 6fe0c0c7 fetch 1 ,mem_lpm_xtalcnt 
+3be4 247a0000 nrtn blank 
+3be5 70804206 jam clksel_rc ,core_clksel 
+3be6 58000f0c setarg 0xf0c 
+3be7 20403c04 call lpm_write_config 
+3be8 58030d40 setarg 200000 
+3be9 20403a8c call sleep 
+3bea 37d98200 until null ,lpo_edge 
+3beb 1e226000 copy lpo_time ,alarm 
+3bec 20403a6f call xtal_fast_wake 
+3bed 70804204 jam clksel_xtal ,core_clksel 
+3bee 2000000a nop 10 
+3bef 37d98200 until null ,lpo_edge 
+3bf0 1e227e00 deposit lpo_time 
+3bf1 9e067e00 isub alarm ,pdata 
+3bf2 1fe0fe30 increase 0x30 ,pdata 
+3bf3 d84000ff arg 0xff ,temp 
+3bf4 20407480 call ceiling 
+3bf5 67e0c0c7 store 1 ,mem_lpm_xtalcnt 
+3bf6 20007530 nop 30000 
+3bf7 20007530 nop 30000 
+3bf8 20007530 nop 30000 
+3bf9 20600000 rtn 
+
+lpm_write_config_reg:
+3bfa d8a00fff arg 0xfff ,contw 
+3bfb 98a10a00 iand contw ,contw 
+3bfc 6fe0c0c4 fetch 1 ,mem_lpm_config 
+3bfd 1fe17ef0 and_into 0xf0 ,pdata 
+3bfe 1fed7e00 lshift8 pdata ,pdata 
+3bff 98a1fe00 ior contw ,pdata 
+3c00 67f1004c store 2 ,core_lpm_reg 
+3c01 efe10006 ifetch 2 ,contr 
+3c02 e7e10005 istore 2 ,contw 
+3c03 20600000 rtn 
+
+lpm_write_config:
+3c04 20403bfa call lpm_write_config_reg 
+
+lpm_write_ctrl:
+3c05 4493c004 bpatch patch04_7 ,mem_patch04 
+3c06 58000001 setarg lpmreg_sel_ctrl 
+3c07 20203c09 branch lpm_write 
+
+lpm_write_ctrl2:
+3c08 58000002 setarg lpmreg_sel_ctrl2 
+
+lpm_write:
+3c09 37d98200 until null ,lpo_edge 
+3c0a 67f08005 store 1 ,core_lpm_wr 
+3c0b 37d98200 until null ,lpo_edge 
+3c0c 37d98200 until null ,lpo_edge 
+3c0d 20600000 rtn 
+
+lpm_write_sel_vdd:
+3c0e 44944005 bpatch patch05_0 ,mem_patch05 
+3c0f 6ff20138 fetch 4 ,core_lpm_ctrl2 
+3c10 67f2004c store 4 ,core_lpm_reg 
+3c11 6ff08138 fetch 1 ,core_lpm_ctrl2 
+3c12 1fe17e41 and_into 0x41 ,pdata 
+3c13 6848c0cc fetcht 1 ,mem_lpm_ctrl3_app_vsel 
+3c14 9841fe00 ior temp ,pdata 
+3c15 67f0804c store 1 ,core_lpm_reg 
+
+lpm_write_ctrl3:
+3c16 58000020 setarg lpmreg_sel_ctrl3 
+3c17 20203c09 branch lpm_write 
+
+lpm_write_gpio_wakeup:
+3c18 4494c005 bpatch patch05_1 ,mem_patch05 
+3c19 6fe20016 fetch 4 ,mem_gpio_wakeup_low 
+3c1a 67f2004c store 4 ,core_lpm_reg 
+3c1b 58000004 setarg lpmreg_sel_gpiolow 
+3c1c 20403c09 call lpm_write 
+3c1d 6fe2001a fetch 4 ,mem_gpio_wakeup_high 
+3c1e 67f2004c store 4 ,core_lpm_reg 
+3c1f 58000008 setarg lpmreg_sel_gpiohigh 
+3c20 20203c09 branch lpm_write 
+
+lpm_get_wake_lock:
+3c21 6fe140a3 fetch 2 ,mem_lpm_wake_lock 
+3c22 f9207e00 qset1 pdata 
+3c23 67e140a3 store 2 ,mem_lpm_wake_lock 
+3c24 20600000 rtn 
+
+lpm_put_wake_lock:
+3c25 6fe140a3 fetch 2 ,mem_lpm_wake_lock 
+3c26 f93ffe00 qset0 pdata 
+3c27 67e140a3 store 2 ,mem_lpm_wake_lock 
+3c28 20600000 rtn 
+
+lpm_check_wake_lock:
+3c29 44954005 bpatch patch05_2 ,mem_patch05 
+3c2a 20404daf call app_check_wake_lock 
+3c2b 6fe140a3 fetch 2 ,mem_lpm_wake_lock 
+3c2c 1fe22200 copy pdata ,rega 
+3c2d 6fe1c3fd fetch 3 ,mem_tx_fifo3 
+3c2e 7d3a2201 nsetflag blank ,wake_lock_ble_tx ,rega 
+3c2f 6fe4441e fetch util_fifo_len ,mem_ipc_fifo_bt2c51 
+3c30 7d3a220f nsetflag blank ,wake_lock_ipc_bt2c51 ,rega 
+3c31 6fe44426 fetch util_fifo_len ,mem_ipc_fifo_c512bt 
+3c32 7d3a220e nsetflag blank ,wake_lock_ipc_c512bt ,rega 
+3c33 6fe0c10d fetch 1 ,mem_hci_cmd 
+3c34 7d3a2208 nsetflag blank ,wake_lock_cmd ,rega 
+3c35 1a227e00 copy rega ,pdata 
+3c36 67e140a3 store 2 ,mem_lpm_wake_lock 
+3c37 20600000 rtn 
+
+lpm_uart_wake_lock:
+3c38 6ff10112 fetch 2 ,core_uart_rxitems 
+3c39 7d3a2206 nsetflag blank ,wake_lock_uart_rx ,rega 
+3c3a 6ff1010e fetch 2 ,core_uart_txitems 
+3c3b 7d3a2205 nsetflag blank ,wake_lock_uart_tx ,rega 
+3c3c 20600000 rtn 
+
+lpm_shut_down:
+3c3d 6ff20130 fetch 4 ,core_lpm_ctrl 
+3c3e 793ffe1b set0 27 ,pdata 
+3c3f 67f2004c store 4 ,core_lpm_reg 
+3c40 20403c05 call lpm_write_ctrl 
+3c41 20203a8a branch assert 
+
+lpm_disable_exen_output:
+3c42 6ff20134 fetch 4 ,core_lpm_xtalcnt 
+3c43 793ffe14 set0 20 ,pdata 
+3c44 67f2004c store 4 ,core_lpm_reg 
+3c45 20203c08 branch lpm_write_ctrl2 
+
+le_init_conn:
+3c46 44eb401a bpatch patch1a_6 ,mem_patch1a 
+3c47 7855fc00 disable wake 
+3c48 70017901 jam 1 ,mem_le_conn_handle 
+3c49 70016303 jam 3 ,mem_le_state 
+3c4a 70017a01 jam 1 ,mem_le_arq 
+3c4b 5fffffff setarg -1 
+3c4c 67e1017d store 2 ,mem_le_event_count 
+3c4d 18007e00 force 0 ,pdata 
+3c4e 67e0817b store 1 ,mem_le_ch 
+3c4f 67e08186 store 1 ,mem_le_op 
+3c50 67e1c0b8 store 3 ,mem_sniff_rcv 
+3c51 67e1c0bb store 3 ,mem_sniff_lost 
+3c52 20403fa1 call le_clear_enc 
+3c53 70412b01 jam 1 ,mem_le_txheader 
+3c54 70412c00 jam 0 ,mem_le_txlen 
+3c55 70019801 jam fun_rx_ll_1m_phy ,mem_le_rx_phy 
+3c56 70019901 jam fun_tx_ll_1m_phy ,mem_le_tx_phy 
+3c57 70436d00 jam 0 ,mem_le_l2cap_att_states 
+3c58 2020407e branch le_supervision_flush 
+
+le_init_master:
+3c59 44ebc01a bpatch patch1a_7 ,mem_patch1a 
+3c5a 7834fc00 enable master 
+3c5b 70016403 jam lemode_master ,mem_le_mode 
+3c5c 70436f01 jam 1 ,mem_le_att_handle 
+3c5d 70050601 jam 1 ,mem_le_search_handle_start 
+3c5e 5800ffff setarg 0xffff 
+3c5f 67e10508 store 2 ,mem_le_search_handle_end 
+3c60 18007e00 force 0 ,pdata 
+3c61 67e2c407 store 5 ,mem_ccm_pcnt_rx 
+3c62 79207e27 set1 le_ccm_directionbit ,pdata 
+3c63 67e2c402 store 5 ,mem_ccm_pcnt_tx 
+3c64 20203c46 branch le_init_conn 
+
+le_init_slave:
+3c65 44ec401b bpatch patch1b_0 ,mem_patch1b 
+3c66 7854fc00 disable master 
+3c67 58000017 setarg 0x17 
+3c68 67e142b8 store 2 ,mem_le_remote_mtu 
+3c69 1fe0fe04 increase 4 ,pdata 
+3c6a 67e1437c store 2 ,mem_remote_rx_max_octets 
+3c6b 70016401 jam lemode_slave ,mem_le_mode 
+3c6c 70435f00 jam 0 ,mem_le_adv_enable 
+3c6d 70001500 jam 0 ,mem_lpm_current_mult 
+3c6e 20403ccf call le_clear_pairing_state 
+3c6f 6fe10191 fetch 2 ,mem_le_superto 
+3c70 67e142ca store 2 ,mem_le_init_superto 
+3c71 6fe10165 fetch 2 ,mem_le_tsniff 
+3c72 1feffe05 mul32 pdata ,5 ,pdata 
+3c73 1ff1fe00 rshift4 pdata ,pdata 
+3c74 67e10191 store 2 ,mem_le_superto 
+3c75 20203c46 branch le_init_conn 
+
+le_conn_dispatch:
+3c76 44ecc01b bpatch patch1b_1 ,mem_patch1b 
+3c77 20403cf9 call le_enable 
+3c78 6fe08163 fetch 1 ,mem_le_state 
+3c79 2feffe04 isolate1 lestate_encryption ,pdata 
+3c7a 79208032 setflag true ,mark_ble_encryption ,mark 
+3c7b 20404d9e call app_process_ble 
+3c7c 6fe08164 fetch 1 ,mem_le_mode 
+3c7d c280bc7f bbit1 mode_master ,le_master_dispatch 
+3c7e 20203c91 branch le_slave_dispatch 
+
+le_master_dispatch:
+3c7f 44ed401b bpatch patch1b_2 ,mem_patch1b 
+3c80 7834fc00 enable master 
+3c81 20404074 call le_supervision_update 
+3c82 20213c8e branch le_master_disconn ,positive 
+3c83 20403d3f call le_setup 
+3c84 20403fb6 call le_prepare_tx 
+3c85 7856fc00 disable match 
+3c86 20403e74 call le_transmit_receive_sifs 
+3c87 24768000 nrtn match 
+3c88 6fe08005 fetch 1 ,mem_le_conn_rcv 
+3c89 1fe0fe01 increase 1 ,pdata 
+3c8a 67e08005 store 1 ,mem_le_conn_rcv 
+3c8b 20403f67 call le_acknowledge 
+3c8c 7854fc00 disable master 
+3c8d 20600000 rtn 
+
+le_master_disconn:
+3c8e 20403cc4 call le_disconnect 
+3c8f 7854fc00 disable master 
+3c90 20600000 rtn 
+
+le_slave_dispatch:
+3c91 44edc01b bpatch patch1b_3 ,mem_patch1b 
+3c92 70431300 jam 0 ,mem_le_md_count 
+3c93 793f8030 set0 mark_ble_crc_fail ,mark 
+3c94 78577c00 disable attempt 
+3c95 20404074 call le_supervision_update 
+3c96 20213cc4 branch le_slave_disconn ,positive 
+3c97 6fe08198 fetch 1 ,mem_le_rx_phy 
+3c98 20403ce0 call le_enable_phy_by_pdata 
+3c99 20403d3f call le_setup 
+3c9a 20403d96 call le_receive_slave 
+3c9b 242c3cb5 nbranch le_slave_unsync ,sync 
+3c9c 20403cd3 call le_got_first_packet 
+3c9d 2036bca0 branch le_slave_match ,match 
+3c9e c5183ca0 bmark1 mark_ble_crc_fail ,le_slave_crc_fail 
+3c9f 20203caf branch le_slave_cont 
+
+le_slave_crc_fail:
+
+le_slave_match:
+3ca0 44ee401b bpatch patch1b_4 ,mem_patch1b 
+3ca1 6fe0c313 fetch 1 ,mem_le_md_count 
+3ca2 1fe0fe01 pincrease 1 
+3ca3 67e0c313 store 1 ,mem_le_md_count 
+3ca4 c0063caf beq le_md_max_count ,le_slave_cont 
+3ca5 20403f67 call le_acknowledge 
+3ca6 20403fb6 call le_prepare_tx 
+3ca7 6fe08199 fetch 1 ,mem_le_tx_phy 
+3ca8 20403ce0 call le_enable_phy_by_pdata 
+3ca9 20403e85 call le_transmit 
+3caa 20404019 call le_parse 
+3cab 6fe1439a fetch 2 ,mem_cb_ble_transmit 
+3cac 20407487 call callback_func 
+3cad 20403cb9 call le_check_md 
+3cae 20343cbe branch le_slave_more_data ,user 
+
+le_slave_cont:
+3caf 44eec01b bpatch patch1b_5 ,mem_patch1b 
+3cb0 2040468a call le_pairing_sm 
+3cb1 20404681 call le_check_paring_time 
+3cb2 20406f91 call check_51cmd 
+3cb3 6fe08186 fetch 1 ,mem_le_op 
+3cb4 c281bcc4 bbit1 op_disconn ,le_slave_disconn 
+
+le_slave_unsync:
+3cb5 44ef401b bpatch patch1b_6 ,mem_patch1b 
+3cb6 204038cc call end_of_packet 
+3cb7 20404147 call le_lpm_set_mult 
+3cb8 202038f3 branch calc_clke_offset 
+
+le_check_md:
+3cb9 78547c00 disable user 
+3cba c51574c8 bmark1 mark_ble_rx_md ,enable_user 
+3cbb c514f4c8 bmark1 mark_ble_tx_md ,enable_user 
+3cbc c51874c8 bmark1 mark_ble_crc_fail ,enable_user 
+3cbd 20600000 rtn 
+
+le_slave_more_data:
+3cbe 44efc01b bpatch patch1b_7 ,mem_patch1b 
+3cbf 78377c00 enable attempt 
+3cc0 20403e78 call le_transmit_receive_sifs_notx 
+3cc1 2036bca0 branch le_slave_match ,match 
+3cc2 c5183ca0 bmark1 mark_ble_crc_fail ,le_slave_crc_fail 
+3cc3 20203caf branch le_slave_cont 
+
+le_slave_disconn:
+
+le_disconnect:
+3cc4 44f0401c bpatch patch1c_0 ,mem_patch1c 
+3cc5 20403cca call le_clear_connection_info 
+3cc6 20404dee call app_disconn_reason_collect_ble 
+3cc7 20403ccf call le_clear_pairing_state 
+3cc8 7004c315 jam bt_evt_le_disconnected ,mem_fifo_temp 
+3cc9 20206f7b branch ui_ipc_send_event 
+
+le_clear_connection_info:
+3cca d8a043f3 arg mem_used_map ,contw 
+3ccb 204073e1 call memset0_16 
+3ccc 70017900 jam 0 ,mem_le_conn_handle 
+3ccd 70016400 jam lemode_idle ,mem_le_mode 
+3cce 70016300 jam 0 ,mem_le_state 
+
+le_clear_pairing_state:
+3ccf 44f0c01c bpatch patch1c_1 ,mem_patch1c 
+3cd0 7042d200 jam flag_le_enc_null ,mem_le_enc_state 
+3cd1 7042d100 jam flag_le_pairing_null ,mem_le_pairing_state 
+3cd2 20600000 rtn 
+
+le_got_first_packet:
+3cd3 44f1401c bpatch patch1c_2 ,mem_patch1c 
+3cd4 6fe08005 fetch 1 ,mem_le_conn_rcv 
+3cd5 1fe0fe01 increase 1 ,pdata 
+3cd6 67e08005 store 1 ,mem_le_conn_rcv 
+3cd7 6fe08163 fetch 1 ,mem_le_state 
+3cd8 c3818000 rtnbit1 lestate_got_first_packet 
+3cd9 79207e03 set1 lestate_got_first_packet ,pdata 
+3cda 67e08163 store 1 ,mem_le_state 
+3cdb 6fe142ca fetch 2 ,mem_le_init_superto 
+3cdc 67e10191 store 2 ,mem_le_superto 
+3cdd 58000000 setarg 0 
+3cde 67e242f2 store 4 ,mem_le_transmit_window 
+3cdf 20600000 rtn 
+
+le_enable_phy_by_pdata:
+3ce0 1fe20400 copy pdata ,temp 
+3ce1 44f1c01c bpatch patch1c_3 ,mem_patch1c 
+3ce2 18427e00 copy temp ,pdata 
+3ce3 c2803cf9 bbit1 bit_le_1m_phy ,le_enable 
+3ce4 c280bce9 bbit1 bit_le_2m_phy ,le_enable_2m 
+3ce5 c3013cf9 bbit0 bit_le_coded_phy ,le_enable 
+3ce6 c283bcf6 bbit1 bit_le_coded_phy_s8 ,le_enable_coded_s8 
+3ce7 c2813cef bbit1 bit_le_coded_phy_s2 ,le_enable_coded_s2 
+3ce8 20203cf9 branch le_enable 
+
+le_enable_2m:
+3ce9 20403cf9 call le_enable 
+3cea 7920002d set1 mark_ble_2m ,mark 
+3ceb 793f802f set0 mark_ble_lr ,mark 
+3cec 70890103 jam 0x03 ,0x8901 
+3ced 70892084 jam 0x84 ,0x8920 
+3cee 20600000 rtn 
+
+le_enable_coded_s2:
+
+le_enable_coded:
+3cef 20403cf9 call le_enable 
+3cf0 7920002f set1 mark_ble_lr ,mark 
+3cf1 793f802e set0 mark_ble_lr_s8 ,mark 
+3cf2 70890105 jam 0x05 ,0x8901 
+3cf3 70892080 jam 0x80 ,0x8920 
+3cf4 70893020 jam 0x20 ,0x8930 
+3cf5 20600000 rtn 
+
+le_enable_coded_s8:
+3cf6 20403cef call le_enable_coded 
+3cf7 7920002e set1 mark_ble_lr_s8 ,mark 
+3cf8 20600000 rtn 
+
+le_enable:
+3cf9 44f2401c bpatch patch1c_4 ,mem_patch1c 
+3cfa 793f802d set0 mark_ble_2m ,mark 
+3cfb 793f802f set0 mark_ble_lr ,mark 
+3cfc 70890101 jam 0x01 ,0x8901 
+3cfd 70892080 jam 0x80 ,0x8920 
+3cfe 70893003 jam 0x03 ,0x8930 
+3cff 20600000 rtn 
+
+le_disable:
+3d00 44f2c01c bpatch patch1c_5 ,mem_patch1c 
+3d01 793f8032 set0 mark_ble_encryption ,mark 
+3d02 70890101 jam 0x01 ,0x8901 
+3d03 70892080 jam 0x80 ,0x8920 
+3d04 70893003 jam 0x03 ,0x8930 
+3d05 20600000 rtn 
+
+le_prep:
+3d06 44f3401c bpatch patch1c_6 ,mem_patch1c 
+3d07 7844fc00 disable enable_crc 
+3d08 7843fc00 disable enable_white 
+3d09 6fe1818b fetch 3 ,mem_le_crcinit 
+3d0a 98001e00 iforce crc24_init 
+3d0b 6fe08007 fetch 1 ,mem_le_ch_mapped 
+
+le_prep_next:
+3d0c 1fed8400 reverse pdata ,temp 
+3d0d 79200401 set1 1 ,temp 
+3d0e 18431c00 rshift temp ,white_init 
+3d0f 20600000 rtn 
+
+le_rx_setfreq:
+3d10 20403d19 call le_setfreq 
+
+le_rf_rx_enable:
+3d11 20403954 call set_freq_rx 
+3d12 6fe10039 fetch 2 ,mem_param_pll_setup 
+3d13 20403a8c call sleep 
+3d14 2020396a branch rf_rx_enable 
+
+le_tx_setfreq:
+3d15 2036b9cf branch txon ,match 
+3d16 c51839cf bmark1 mark_ble_crc_fail ,txon 
+
+le_tx_setfreq0:
+3d17 20403d19 call le_setfreq 
+3d18 202039c9 branch set_freq_tx 
+
+le_setfreq:
+3d19 44f3c01c bpatch patch1c_7 ,mem_patch1c 
+3d1a 20403925 call set_sync_on 
+3d1b 6fe081b6 fetch 1 ,mem_le_testtype 
+3d1c 243a3d2c nbranch le_ctf_test ,blank 
+3d1d 6fe08007 fetch 1 ,mem_le_ch_mapped 
+3d1e 1fe67c24 sub pdata ,36 ,null 
+3d1f 20213d26 branch le_ctf_normal ,positive 
+3d20 18000400 force 0 ,temp 
+3d21 c1128000 rtneq 37 
+3d22 18000418 force 24 ,temp 
+3d23 c1130000 rtneq 38 
+3d24 1800044e force 78 ,temp 
+3d25 20600000 rtn 
+
+le_ctf_normal:
+3d26 1fe67c0a sub pdata ,10 ,null 
+3d27 20213d29 branch le_ctf_low ,positive 
+3d28 1fe0fe01 increase 1 ,pdata 
+
+le_ctf_low:
+3d29 1fe3fe00 lshift pdata ,pdata 
+3d2a 1fe08402 add pdata ,2 ,temp 
+3d2b 20600000 rtn 
+
+le_ctf_test:
+3d2c 6fe08007 fetch 1 ,mem_le_ch_mapped 
+3d2d 1fe38400 lshift pdata ,temp 
+3d2e 20600000 rtn 
+
+le_sca_map:
+3d2f d84001f4 arg 500 ,temp 
+3d30 207a0000 rtn blank 
+3d31 d84000fa arg 250 ,temp 
+3d32 c1008000 rtneq 1 
+3d33 d8400096 arg 150 ,temp 
+3d34 c1010000 rtneq 2 
+3d35 d8400064 arg 100 ,temp 
+3d36 c1018000 rtneq 3 
+3d37 d840004b arg 75 ,temp 
+3d38 c1020000 rtneq 4 
+3d39 d8400032 arg 50 ,temp 
+3d3a c1028000 rtneq 5 
+3d3b d8400028 arg 40 ,temp 
+3d3c c1030000 rtneq 6 
+3d3d d8400014 arg 20 ,temp 
+3d3e 20600000 rtn 
+
+le_setup:
+3d3f 44f4401d bpatch patch1d_0 ,mem_patch1d 
+3d40 78287c00 enable swfine 
+3d41 6fe20187 fetch 4 ,mem_le_access 
+3d42 98001200 iforce access 
+3d43 20403d74 call le_map_channel 
+3d44 58000200 setarg 0x200 
+3d45 2034bd48 branch le_setup_master ,master 
+3d46 6fe10171 fetch 2 ,mem_le_receive_window 
+3d47 1fe37e00 rshift pdata ,pdata 
+
+le_setup_master:
+3d48 68490039 fetcht 2 ,mem_param_pll_setup 
+3d49 9840fe00 iadd temp ,pdata 
+3d4a 20403a73 call ahead_window 
+3d4b 1b427e00 deposit clke 
+3d4c 20600000 rtn 
+
+le_context_nextevent:
+3d4d 44f4c01d bpatch patch1d_1 ,mem_patch1d 
+3d4e 204073a4 call push_stack_rega_b_c 
+3d4f 672104ef storer loopcnt ,2 ,mem_loopcnt 
+3d50 1a208c01 add rega ,coffset_mode ,contr 
+3d51 efe08006 ifetch 1 ,contr 
+3d52 c4000000 rtnbit0 mode_le 
+3d53 1a208a1a add rega ,coffset_le_event_cnt ,contw 
+3d54 efe10005 ifetch 2 ,contw 
+3d55 1fe0fe01 increase 1 ,pdata 
+3d56 e7e10005 istore 2 ,contw 
+3d57 20403ee6 call le_update_param 
+3d58 20403f08 call le_update_channel_map 
+3d59 20403f11 call le_update_phy 
+3d5a 20403d5e call le_context_nexthop 
+3d5b 204073b3 call pop_stack_rega_b_c 
+3d5c 6f2104ef fetchr loopcnt ,2 ,mem_loopcnt 
+3d5d 20600000 rtn 
+
+le_context_nexthop:
+3d5e 1a208c19 add rega ,coffset_le_hop ,contr 
+3d5f efe08006 ifetch 1 ,contr 
+3d60 1a208a18 add rega ,coffset_le_ch ,contw 
+3d61 e8408005 ifetcht 1 ,contw 
+3d62 9840fe00 iadd temp ,pdata 
+3d63 1fe67c24 sub pdata ,36 ,null 
+3d64 20213d66 branch le_nexthop_nowrap ,positive 
+3d65 1fe0ffdb increase -37 ,pdata 
+
+le_nexthop_nowrap:
+3d66 e7e08005 istore 1 ,contw 
+3d67 20600000 rtn 
+
+le_calc_channel_map:
+3d68 1a208c30 add rega ,coffset_le_channel_map ,contr 
+3d69 efe28006 ifetch 5 ,contr 
+3d6a 18000400 force 0 ,temp 
+3d6b 18007225 force 37 ,loopcnt 
+
+le_count_channels_loop:
+3d6c c3003d6e bbit0 0 ,le_count_channels_notused 
+3d6d 18408401 increase 1 ,temp 
+
+le_count_channels_notused:
+3d6e 1fe37e00 rshift pdata ,pdata 
+3d6f c2003d6c loop le_count_channels_loop 
+3d70 1840ffff add temp ,-1 ,pdata 
+3d71 1a208a22 add rega ,coffset_le_channels ,contw 
+3d72 e7e08005 istore 1 ,contw 
+3d73 20600000 rtn 
+
+le_map_channel:
+3d74 44f5401d bpatch patch1d_2 ,mem_patch1d 
+3d75 6fe0817b fetch 1 ,mem_le_ch 
+3d76 98000e00 iforce queue 
+3d77 684a8193 fetcht 5 ,mem_le_channel_map 
+3d78 a84fffff qisolate1 temp 
+3d79 2020bd89 branch le_map_channel_end ,true 
+
+le_map_channel_next:
+3d7a 6fe08185 fetch 1 ,mem_le_channels 
+3d7b 98e67e00 isub queue ,pdata 
+3d7c 20213d7f branch le_map_channel_cont ,positive 
+3d7d 1fe60fff sub pdata ,-1 ,queue 
+3d7e 20203d7a branch le_map_channel_next 
+
+le_map_channel_cont:
+3d7f 18e27200 copy queue ,loopcnt 
+3d80 18000e00 force 0 ,queue 
+
+le_map_channel_loop:
+3d81 a84fffff qisolate1 temp 
+3d82 2020bd84 branch le_map_channel_skip ,true 
+3d83 1f20f201 increase 1 ,loopcnt 
+
+le_map_channel_skip:
+3d84 1f227e00 deposit loopcnt 
+3d85 203a3d89 branch le_map_channel_end ,blank 
+3d86 18e08e01 increase 1 ,queue 
+3d87 1f20f3ff increase -1 ,loopcnt 
+3d88 20203d81 branch le_map_channel_loop 
+
+le_map_channel_end:
+3d89 18e27e00 deposit queue 
+3d8a 67e08007 store 1 ,mem_le_ch_mapped 
+3d8b 20600000 rtn 
+
+le_wait_tx:
+3d8c 2034bd8f branch le_wait_master ,master 
+3d8d 37c18200 until null ,timeout 
+3d8e 20600000 rtn 
+
+le_wait_master:
+3d8f d9600ea0 arg 0xea0 ,timeup 
+3d90 34730200 until clkn_rt ,meet 
+3d91 20600000 rtn 
+
+le_receive_adv:
+3d92 78487c00 disable swfine 
+3d93 6fe1431d fetch 2 ,mem_le_scan_window 
+3d94 1fe21600 copy pdata ,timeup 
+3d95 20203d9c branch le_receive_packet 
+
+le_receive_slave:
+3d96 44f5c01d bpatch patch1d_3 ,mem_patch1d 
+3d97 20403e02 call le_dec_init 
+3d98 78287c00 enable swfine 
+3d99 6fe10171 fetch 2 ,mem_le_receive_window 
+3d9a 684a42f2 fetcht 4 ,mem_le_transmit_window 
+3d9b 98409600 iadd temp ,timeup 
+
+le_receive_packet:
+3d9c 20403d10 call le_rx_setfreq 
+
+le_receive_rxon:
+3d9d 44f6401d bpatch patch1d_4 ,mem_patch1d 
+3d9e 20403d06 call le_prep 
+3d9f c597bda4 bmark0 mark_ble_lr ,le_receive_nolr 
+3da0 783cfc00 pulse dewhiten_code_calc 
+3da1 2000001e nop 30 
+3da2 20403d06 call le_prep 
+3da3 19699600 lshift3 timeup ,timeup 
+
+le_receive_nolr:
+3da4 7856fc00 disable match 
+3da5 7826fc00 enable decode_fec0 
+3da6 7830fc00 enable is_rx 
+3da7 78507c00 disable is_tx 
+3da8 19623600 copy timeup ,stop_watch 
+3da9 37c18400 correlate null ,timeout 
+3daa 20373dad branch le_receive_on_attempt ,attempt 
+3dab 1b420400 copy clke ,temp 
+3dac 604b000f storet 6 ,mem_sync_clke 
+
+le_receive_on_attempt:
+3dad 242c3e3e nbranch le_unsync_end ,sync 
+3dae 78287c00 enable swfine 
+3daf 6fe0c129 fetch 1 ,mem_le_tx_ifs_defference 
+3db0 d8404e20 arg param_20ms_init ,temp 
+3db1 98408400 iadd temp ,temp 
+3db2 6fe0c11d fetch 1 ,mem_system_clk 
+3db3 984fb600 imul32 temp ,stop_watch 
+3db4 204065a4 call rf_debug_rx_sync_line 
+3db5 20373dbb branch le_receive_skip ,attempt 
+3db6 20403e43 call calc_clke_all_modem 
+3db7 6fe08163 fetch 1 ,mem_le_state 
+3db8 c301bdbb bbit0 lestate_got_first_packet ,le_receive_skip 
+3db9 684b000f fetcht 6 ,mem_sync_clke 
+3dba 2055bb2a call lpm_adjust_clk ,wake 
+
+le_receive_skip:
+3dbb 20403a49 call save_rssi 
+3dbc 7823fc00 enable enable_white 
+3dbd 7824fc00 enable enable_crc 
+3dbe 09800008 parse demod ,bucket ,8 
+3dbf 19897e00 rshift3 pwindow ,pdata 
+3dc0 67e08047 store 1 ,mem_le_rxbuf_data_header 
+3dc1 09800008 parse demod ,bucket ,8 
+3dc2 19897e00 rshift3 pwindow ,pdata 
+3dc3 67e08048 store 1 ,mem_le_rxbuf_data_length 
+3dc4 1fe27200 copy pdata ,loopcnt 
+3dc5 2022bde1 branch le_rx_nopayload ,zero 
+3dc6 c5193dcc bmark1 mark_ble_encryption ,le_rx_dec 
+
+le_rx_loop:
+3dc7 09800008 parse demod ,bucket ,8 
+3dc8 19897e00 rshift3 pwindow ,pdata 
+3dc9 e7e08005 istore 1 ,contw 
+3dca c2003dc7 loop le_rx_loop 
+3dcb 20203de1 branch le_rx_nopayload 
+
+le_rx_dec:
+3dcc 18a22400 copy contw ,regb 
+3dcd 44f6c01d bpatch patch1d_5 ,mem_patch1d 
+3dce 20403f60 call le_check_retransmit 
+3dcf 6a208048 fetchr rega ,1 ,mem_le_rxbuf_data_length 
+3dd0 1a20a3fc increase -4 ,rega 
+3dd1 24213e36 nbranch le_mic_error ,positive 
+3dd2 20403e07 call le_dec_start 
+3dd3 1a420a00 copy regb ,contw 
+3dd4 d8400000 arg 0 ,temp 
+3dd5 6f208048 fetchr loopcnt ,1 ,mem_le_rxbuf_data_length 
+3dd6 1f20f3fc increase -4 ,loopcnt 
+3dd7 2022bddf branch le_rx_dec_loop_end ,zero 
+
+le_rx_dec_loop:
+3dd8 09800008 parse demod ,bucket ,8 
+3dd9 19897e00 rshift3 pwindow ,pdata 
+3dda e7e08005 istore 1 ,contw 
+3ddb 18408401 increase 1 ,temp 
+3ddc 18417c0f and temp ,0xf ,null 
+3ddd 2042be25 call le_dec ,zero 
+3dde c2003dd8 loop le_rx_dec_loop 
+
+le_rx_dec_loop_end:
+3ddf 20403e2d call le_dec_end 
+3de0 1a420a00 copy regb ,contw 
+
+le_rx_nopayload:
+3de1 44f7401d bpatch patch1d_6 ,mem_patch1d 
+3de2 09800018 parse demod ,bucket ,24 
+3de3 1fef7e00 rshift32 pdata ,pdata 
+3de4 1ff17e00 rshift16 pdata ,pdata 
+3de5 e7e18005 istore 3 ,contw 
+3de6 78287c00 enable swfine 
+3de7 20403e51 call le_set_until_tx_timer 
+3de8 20233e3a branch le_crc_fail ,crc_failed 
+3de9 c5993df3 bmark0 mark_ble_encryption ,le_rx_match 
+3dea 6fe08048 fetch 1 ,mem_le_rxbuf_data_length 
+3deb 203a3df3 branch le_rx_match ,blank 
+3dec 1fe0fffc increase -4 ,pdata 
+3ded 67e08048 store 1 ,mem_le_rxbuf_data_length 
+3dee 20406de7 call wait_ccm_done 
+3def 6ff08108 fetch 1 ,core_misc_status 
+3df0 c303be36 bbit0 7 ,le_mic_error 
+3df1 1800700c force regidx_result ,regext_index 
+3df2 65e2014f storer regext ,4 ,mem_le_peer_mic 
+
+le_rx_match:
+3df3 204065a3 call rf_debug_rx_crc_line 
+3df4 7836fc00 enable match 
+3df5 793f8030 set0 mark_ble_crc_fail ,mark 
+
+le_crc_fail_tx:
+3df6 44f7c01d bpatch patch1d_7 ,mem_patch1d 
+3df7 20406de9 call ccm_ctrl_clr 
+3df8 6fe08198 fetch 1 ,mem_le_rx_phy 
+3df9 7d3e7e07 nsetflag ble_coded_info ,bit_le_coded_phy_s8 ,pdata 
+3dfa 67e08198 store 1 ,mem_le_rx_phy 
+3dfb 20403e00 call le_match_set_sync_on 
+
+le_match_set_txfreq:
+3dfc 44f8401e bpatch patch1e_0 ,mem_patch1e 
+3dfd 68488008 fetcht 1 ,mem_last_freq 
+3dfe 1840a202 add temp ,2 ,rega 
+3dff 2020398e branch rf_tx_write_freq 
+
+le_match_set_sync_on:
+3e00 7846fc00 disable decode_fec0 
+3e01 20203925 branch set_sync_on 
+
+le_dec_init:
+3e02 c6990000 rtnmark0 mark_ble_encryption 
+3e03 20406e84 call load_sk 
+3e04 1800700c force regidx_result ,regext_index 
+3e05 20406e8c call aes_clear 
+3e06 20206e8b branch aes_clear_data 
+
+le_dec_start:
+3e07 44f8c01e bpatch patch1e_1 ,mem_patch1e 
+3e08 70806c00 jam 0 ,core_ccm_aad0 
+3e09 70806d01 jam 1 ,core_ccm_aad1 
+3e0a 6fe08047 fetch 1 ,mem_le_rxbuf_data_header 
+3e0b 1fe17e03 and_into 0x3 ,pdata 
+3e0c 67f0806e store 1 ,core_ccm_aad2 
+3e0d 58000049 setarg mem_le_rxbuf_data_payload 
+3e0e 67f10068 store 2 ,core_ccm_input_playload_addr 
+3e0f 67f1006a store 2 ,core_ccm_output_playload_addr 
+3e10 6a208048 fetchr rega ,1 ,mem_le_rxbuf_data_length 
+3e11 1a20a3fc increase -4 ,rega 
+3e12 684ac407 fetcht 5 ,mem_ccm_pcnt_rx 
+3e13 280ffe0f isolate1 mark_old_packet ,mark 
+3e14 2040be1b call le_pcnt_rx_sub1 ,true 
+3e15 20406d54 call ccm_b0 
+3e16 58000000 setarg 0 
+3e17 67f100c1 store 2 ,core_ccm_inptr 
+3e18 70800a06 jam 6 ,core_ccm_ctrl 
+3e19 70800a07 jam 7 ,core_ccm_ctrl 
+3e1a 20600000 rtn 
+
+le_pcnt_rx_sub1:
+3e1b 18467c00 sub temp ,0 ,null 
+3e1c 2022be20 branch le_pcnt_rx_sub1_0 ,zero 
+3e1d 184085ff increase -1 ,temp 
+3e1e 79200427 set1 le_ccm_directionbit ,temp 
+3e1f 20600000 rtn 
+
+le_pcnt_rx_sub1_0:
+3e20 58ffffff setarg 0xffffff 
+3e21 1ff07e00 lshift16 pdata ,pdata 
+3e22 d840ffff arg 0xffff ,temp 
+3e23 98418400 ior temp ,temp 
+3e24 20600000 rtn 
+
+le_dec:
+3e25 18a22400 copy contw ,regb 
+3e26 6fe08048 fetch 1 ,mem_le_rxbuf_data_length 
+3e27 1fe0fffc increase -4 ,pdata 
+3e28 98467c00 isub temp ,null 
+3e29 20628000 rtn zero 
+3e2a 605900c1 storet 2 ,core_ccm_inptr 
+3e2b 1a420a00 copy regb ,contw 
+3e2c 20600000 rtn 
+
+le_dec_end:
+3e2d 09800020 parse demod ,bucket ,32 
+3e2e 1fef7e00 rshift32 pdata ,pdata 
+3e2f 1fecfe00 rshift8 pdata ,pdata 
+3e30 e7e20005 istore 4 ,contw 
+3e31 18a22400 copy contw ,regb 
+3e32 18007000 force regidx_data ,regext_index 
+3e33 1fe25e00 copy pdata ,regext 
+3e34 605900c1 storet 2 ,core_ccm_inptr 
+3e35 20600000 rtn 
+
+le_mic_error:
+3e36 20203e40 branch le_end_of_packet 
+
+le_retransmit_end_of_packet:
+3e37 20403e51 call le_set_until_tx_timer 
+3e38 204038cc call end_of_packet 
+3e39 20203df3 branch le_rx_match 
+
+le_crc_fail:
+3e3a 204065a5 call rf_debug_rx_crc_fail_line 
+3e3b c5183e3e bmark1 mark_ble_crc_fail ,le_crc_fail_consecutive 
+3e3c 79200030 set1 mark_ble_crc_fail ,mark 
+3e3d 20203df6 branch le_crc_fail_tx 
+
+le_unsync_end:
+
+le_crc_fail_consecutive:
+3e3e 793f8030 set0 mark_ble_crc_fail ,mark 
+3e3f 20203e40 branch le_end_of_packet 
+
+le_end_of_packet:
+3e40 44f9401e bpatch patch1e_2 ,mem_patch1e 
+3e41 20406de9 call ccm_ctrl_clr 
+3e42 202038cc branch end_of_packet 
+
+calc_clke_all_modem:
+3e43 c517be49 bmark1 mark_ble_lr ,calc_clke_modem_coded 
+3e44 c516be4d bmark1 mark_ble_2m ,calc_clke_modem_2m 
+3e45 6fe10041 fetch 2 ,mem_param_clke_cal_le_1m 
+3e46 1fe25200 copy pdata ,clke_rt 
+3e47 1c225000 copy bt_clk ,clke_bt 
+3e48 20600000 rtn 
+
+calc_clke_modem_coded:
+3e49 6fe10045 fetch 2 ,mem_param_clke_cal_le_coded 
+3e4a 1fe25200 copy pdata ,clke_rt 
+3e4b 1c20d001 add bt_clk ,1 ,clke_bt 
+3e4c 20600000 rtn 
+
+calc_clke_modem_2m:
+3e4d 6fe10043 fetch 2 ,mem_param_clke_cal_le_2m 
+3e4e 1fe25200 copy pdata ,clke_rt 
+3e4f 1c225000 copy bt_clk ,clke_bt 
+3e50 20600000 rtn 
+
+le_set_until_tx_timer:
+3e51 6fe08048 fetch 1 ,mem_le_rxbuf_data_length 
+3e52 1fe08405 add pdata ,5 ,temp 
+3e53 18498400 lshift3 temp ,temp 
+3e54 6fe08198 fetch 1 ,mem_le_rx_phy 
+3e55 c517be58 bmark1 mark_ble_lr ,le_set_until_tx_timer_rx_lr 
+3e56 c2803e5a bbit1 bit_le_1m_phy ,le_set_until_tx_timer_rx_1m 
+3e57 c280be5b bbit1 bit_le_2m_phy ,le_set_until_tx_timer_rx_2m 
+
+le_set_until_tx_timer_rx_lr:
+3e58 203e3e5d branch le_set_until_tx_timer_rx_coded_s2 ,ble_coded_info 
+3e59 20203e60 branch le_set_until_tx_timer_rx_coded_s8 
+
+le_set_until_tx_timer_rx_1m:
+3e5a 20203e65 branch le_calc_stop_watch 
+
+le_set_until_tx_timer_rx_2m:
+3e5b 18430400 rshift temp ,temp 
+3e5c 20203e65 branch le_calc_stop_watch 
+
+le_set_until_tx_timer_rx_coded_s2:
+3e5d 18408403 add temp ,3 ,temp 
+3e5e 18438400 lshift temp ,temp 
+3e5f 20203e62 branch le_set_until_tx_timer_rx_coded 
+
+le_set_until_tx_timer_rx_coded_s8:
+3e60 18408403 add temp ,3 ,temp 
+3e61 18498400 lshift3 temp ,temp 
+
+le_set_until_tx_timer_rx_coded:
+3e62 58000028 setarg param_coded_c1_term1_time_40us 
+3e63 98408400 iadd temp ,temp 
+3e64 20203e65 branch le_calc_stop_watch 
+
+le_calc_stop_watch:
+3e65 6fe0c11d fetch 1 ,mem_system_clk 
+3e66 984f8400 imul32 temp ,temp 
+3e67 da204e20 arg param_20ms_init ,rega 
+3e68 9a2ffe00 imul32 rega ,pdata 
+3e69 98460400 isub temp ,temp 
+3e6a 1b627e00 copy stop_watch ,pdata 
+3e6b 98463600 isub temp ,stop_watch 
+3e6c 20600000 rtn 
+
+le_transmit_receive_sifs_without_change_mode:
+3e6d 20403e85 call le_transmit 
+3e6e 68488008 fetcht 1 ,mem_last_freq 
+3e6f 20403954 call set_freq_rx 
+3e70 2040396a call rf_rx_enable 
+3e71 78287c00 enable swfine 
+3e72 d960157c arg 5500 ,timeup 
+3e73 20203d9d branch le_receive_rxon 
+
+le_transmit_receive_sifs:
+3e74 44f9c01e bpatch patch1e_3 ,mem_patch1e 
+3e75 6fe08199 fetch 1 ,mem_le_tx_phy 
+3e76 20403ce0 call le_enable_phy_by_pdata 
+3e77 20403e85 call le_transmit 
+
+le_transmit_receive_sifs_notx:
+3e78 6fe08198 fetch 1 ,mem_le_rx_phy 
+3e79 20403ce0 call le_enable_phy_by_pdata 
+3e7a 68488008 fetcht 1 ,mem_last_freq 
+3e7b 20403954 call set_freq_rx 
+3e7c 2040396a call rf_rx_enable 
+3e7d 78287c00 enable swfine 
+3e7e d960157c arg 5500 ,timeup 
+3e7f c597bd9d bmark0 mark_ble_lr ,le_receive_rxon 
+3e80 d9602134 arg 8500 ,timeup 
+3e81 20203d9d branch le_receive_rxon 
+
+le_transmit_norx:
+3e82 44fa401e bpatch patch1e_4 ,mem_patch1e 
+3e83 20403e85 call le_transmit 
+3e84 202038cc branch end_of_packet 
+
+le_transmit:
+3e85 44fac01e bpatch patch1e_5 ,mem_patch1e 
+3e86 20403d06 call le_prep 
+3e87 20403d15 call le_tx_setfreq 
+3e88 204065aa call rf_debug_tx_on_line 
+3e89 79202a00 set1 txgfsk ,radio_ctrl 
+3e8a 782efc00 enable encode_fec0 
+3e8b 78307c00 enable is_tx 
+3e8c 7850fc00 disable is_rx 
+3e8d 20403d8c call le_wait_tx 
+3e8e 785d7c00 disable lr_s2en 
+3e8f c517bec8 bmark1 mark_ble_lr ,le_transmit_lr 
+3e90 c516beda bmark1 mark_ble_2m ,le_transmit_2m 
+3e91 19317e00 rshift16 access ,pdata 
+3e92 1fecfe00 rshift8 pdata ,pdata 
+3e93 1ff1fe00 rshift4 pdata ,pdata 
+3e94 08008628 inject mod ,40 
+
+le_transmit_packet:
+3e95 7823fc00 enable enable_white 
+3e96 7824fc00 enable enable_crc 
+3e97 44fb401e bpatch patch1e_6 ,mem_patch1e 
+3e98 6fe0c12b fetch 1 ,mem_le_txheader 
+3e99 08008608 inject mod ,8 
+3e9a efe08006 ifetch 1 ,contr 
+3e9b 1fe27200 copy pdata ,loopcnt 
+3e9c 08008608 inject mod ,8 
+3e9d 1f267c00 sub loopcnt ,0 ,null 
+3e9e 2022bea6 branch le_tr_nopayload ,zero 
+3e9f 6ff0800a fetch 1 ,core_ccm_ctrl 
+3ea0 203a3ea2 branch le_transmit_packet_not_enc ,blank 
+3ea1 c5193ebd bmark1 mark_ble_encryption ,le_transmit_packet_enc 
+
+le_transmit_packet_not_enc:
+3ea2 d8c0412d arg mem_le_txpayload ,contr 
+
+le_tr_loop:
+3ea3 efe08006 ifetch 1 ,contr 
+3ea4 08008608 inject mod ,8 
+3ea5 c2003ea3 loop le_tr_loop 
+
+le_tr_nopayload:
+3ea6 78247c00 enable enable_parity 
+3ea7 08008618 inject mod ,24 
+3ea8 78447c00 disable enable_parity 
+3ea9 c597bead bmark0 mark_ble_lr ,le_transmit_skip 
+3eaa 7843fc00 disable enable_white 
+3eab 58000000 setarg 0 
+3eac 08008603 inject mod ,3 
+
+le_transmit_skip:
+3ead 37d38200 until null ,tx_clear 
+3eae 20000064 nop 100 
+3eaf 44fbc01e bpatch patch1e_7 ,mem_patch1e 
+3eb0 784efc00 disable encode_fec0 
+3eb1 785c7c00 disable encode_fec3 
+3eb2 20403925 call set_sync_on 
+3eb3 204065a8 call rf_debug_tx_off_line 
+
+le_check_start_pause_enc:
+3eb4 6fe0c12b fetch 1 ,mem_le_txheader 
+3eb5 1fe17e03 and pdata ,llid_le_ll ,pdata 
+3eb6 c1818000 rtnne llid_le_ll 
+3eb7 6fe0c2d2 fetch 1 ,mem_le_enc_state 
+3eb8 c0013fa1 beq flag_le_enc_pause ,le_clear_enc 
+3eb9 c1828000 rtnne flag_le_send_start_enc_req 
+3eba 6fe0c12d fetch 1 ,mem_le_txpayload 
+3ebb c002bf9c beq ll_start_enc_req ,le_set_enc 
+3ebc 20600000 rtn 
+
+le_transmit_packet_enc:
+3ebd 1f20f3fc increase -4 ,loopcnt 
+3ebe 1f220400 copy loopcnt ,temp 
+3ebf 20406dd4 call ccm_wait_enc 
+3ec0 d8c0412d arg mem_le_txpayload ,contr 
+
+le_transmit_packet_enc_loop:
+3ec1 efe08006 ifetch 1 ,contr 
+3ec2 08008608 inject mod ,8 
+3ec3 c2003ec1 loop le_transmit_packet_enc_loop 
+3ec4 20406dd9 call ccm_check_enc_done 
+3ec5 1de27e00 copy regext ,pdata 
+3ec6 08008620 inject mod ,32 
+3ec7 20203ea6 branch le_tr_nopayload 
+
+le_transmit_lr:
+3ec8 df20000a arg 10 ,loopcnt 
+
+le_transmit_lr_preamble_loop:
+3ec9 5800003c setarg 0x3c 
+3eca 08008608 inject mod ,8 
+3ecb c2003ec9 loop le_transmit_lr_preamble_loop 
+3ecc 784efc00 disable encode_fec0 
+3ecd 783c7c00 enable encode_fec3 
+3ece 19317e00 rshift16 access ,pdata 
+3ecf 1ff17e00 rshift16 pdata ,pdata 
+3ed0 1ff1fe00 rshift4 pdata ,pdata 
+3ed1 08008620 inject mod ,32 
+3ed2 c5173ed7 bmark1 mark_ble_lr_s8 ,le_transmit_lr_s8 
+
+le_transmit_lr_s2:
+3ed3 58000001 setarg 1 
+3ed4 08008605 inject mod ,5 
+3ed5 783d7c00 enable lr_s2en 
+3ed6 20203e95 branch le_transmit_packet 
+
+le_transmit_lr_s8:
+3ed7 58000000 setarg 0 
+3ed8 08008605 inject mod ,5 
+3ed9 20203e95 branch le_transmit_packet 
+
+le_transmit_2m:
+3eda 6fe0c11d fetch 1 ,mem_system_clk 
+3edb 6848c12a fetcht 1 ,mem_le_tx2m_delay 
+3edc 9840fe00 iadd temp ,pdata 
+3edd 20403a8c call sleep 
+3ede 19317e00 rshift16 access ,pdata 
+3edf 1fecfe00 rshift8 pdata ,pdata 
+3ee0 1ff18400 rshift4 pdata ,temp 
+3ee1 18427e00 copy temp ,pdata 
+3ee2 08008608 inject mod ,8 
+3ee3 18427e00 copy temp ,pdata 
+3ee4 08008628 inject mod ,40 
+3ee5 20203e95 branch le_transmit_packet 
+
+le_update_param:
+3ee6 da603eea arg le_update_param_ahead1_cb ,regc 
+3ee7 da403f00 arg le_update_param_cb ,regb 
+3ee8 d8e00005 arg lestate_update_param ,queue 
+3ee9 20203f3f branch le_check_update_flag 
+
+le_update_param_ahead1_cb:
+3eea 1a208c04 add rega ,coffset_sniff_anchor ,contr 
+3eeb e8420006 ifetcht 4 ,contr 
+3eec 1a208c37 add rega ,coffest_le_new_transmitwindowsize ,contr 
+3eed efe08006 ifetch 1 ,contr 
+3eee 1a208a2b add rega ,coffset_le_window_size ,contw 
+3eef e7e08005 istore 1 ,contw 
+3ef0 efe10006 ifetch 2 ,contr 
+3ef1 1febfe00 lshift2 pdata ,pdata 
+3ef2 98409600 iadd temp ,timeup 
+3ef3 1a208a04 add rega ,coffset_sniff_anchor ,contw 
+3ef4 19627e00 deposit timeup 
+3ef5 e7e20005 istore 4 ,contw 
+3ef6 efe10006 ifetch 2 ,contr 
+3ef7 1febfe00 lshift2 pdata ,pdata 
+3ef8 1a208a02 add rega ,coffset_tsniff ,contw 
+3ef9 e7e10005 istore 2 ,contw 
+3efa efe10006 ifetch 2 ,contr 
+3efb 1a208a2c add rega ,coffset_le_slave_latency ,contw 
+3efc e7e10005 istore 2 ,contw 
+3efd efe10006 ifetch 2 ,contr 
+3efe 67e142ca store 2 ,mem_le_init_superto 
+3eff 20204081 branch le_receive_window_size 
+
+le_update_param_cb:
+3f00 efe08011 ifetch 1 ,rega 
+3f01 793ffe03 set0 lestate_got_first_packet ,pdata 
+3f02 e7e08011 istore 1 ,rega 
+3f03 622104d8 storer rega ,2 ,mem_rega 
+3f04 7004c344 jam bt_evt_le_parse_conn_param_accepted ,mem_fifo_temp 
+3f05 20406f7b call ui_ipc_send_event 
+3f06 6a2104d8 fetchr rega ,2 ,mem_rega 
+3f07 20600000 rtn 
+
+le_update_channel_map:
+3f08 da600000 arg 0 ,regc 
+3f09 da403f0c arg le_update_channel_map_cb ,regb 
+3f0a d8e00006 arg lestate_update_map ,queue 
+3f0b 20203f3f branch le_check_update_flag 
+
+le_update_channel_map_cb:
+3f0c 1a208c37 add rega ,coffset_le_new_map ,contr 
+3f0d efe28006 ifetch 5 ,contr 
+3f0e 1a208a30 add rega ,coffset_le_channel_map ,contw 
+3f0f e7e28005 istore 5 ,contw 
+3f10 20203d68 branch le_calc_channel_map 
+
+le_update_phy:
+3f11 da600000 arg 0 ,regc 
+3f12 da403f15 arg le_update_phy_cb ,regb 
+3f13 d8e00007 arg lestate_update_phy ,queue 
+3f14 20203f3f branch le_check_update_flag 
+
+le_update_phy_cb:
+3f15 1a208c37 add rega ,coffset_le_new_m2s_phy ,contr 
+3f16 efe08006 ifetch 1 ,contr 
+3f17 20403f22 call le_update_phy_cb_m2s 
+3f18 e7e08005 istore 1 ,contw 
+3f19 1a208c38 add rega ,coffset_le_new_s2m_phy ,contr 
+3f1a efe08006 ifetch 1 ,contr 
+3f1b 20403f30 call le_update_phy_cb_s2m 
+3f1c e7e08005 istore 1 ,contw 
+3f1d 622104d8 storer rega ,2 ,mem_rega 
+3f1e 7004c342 jam bt_evt_le_update_phy ,mem_fifo_temp 
+3f1f 20406f7b call ui_ipc_send_event 
+3f20 6a2104d8 fetchr rega ,2 ,mem_rega 
+3f21 20600000 rtn 
+
+le_update_phy_cb_m2s:
+3f22 205a3f2a call le_update_phy_cb_m2s_no_change ,blank 
+3f23 1a208a35 add rega ,coffset_le_rx_phy ,contw 
+3f24 24748000 nrtn master 
+3f25 6848c37a fetcht 1 ,mem_le_tx_phys 
+3f26 284ffe07 isolate1 bit_le_coded_phy_s8 ,temp 
+3f27 7920fe07 setflag true ,bit_le_coded_phy_s8 ,pdata 
+3f28 1a208a36 add rega ,coffset_le_tx_phy ,contw 
+3f29 20600000 rtn 
+
+le_update_phy_cb_m2s_no_change:
+3f2a 1a208c35 add rega ,coffset_le_rx_phy ,contr 
+3f2b efe08006 ifetch 1 ,contr 
+3f2c 24748000 nrtn master 
+3f2d 1a208c36 add rega ,coffset_le_tx_phy ,contr 
+3f2e efe08006 ifetch 1 ,contr 
+3f2f 20600000 rtn 
+
+le_update_phy_cb_s2m:
+3f30 205a3f39 call le_update_phy_cb_s2m_no_change ,blank 
+3f31 6848c37a fetcht 1 ,mem_le_tx_phys 
+3f32 284ffe07 isolate1 bit_le_coded_phy_s8 ,temp 
+3f33 7920fe07 setflag true ,bit_le_coded_phy_s8 ,pdata 
+3f34 1a208a36 add rega ,coffset_le_tx_phy ,contw 
+3f35 24748000 nrtn master 
+3f36 793ffe07 set0 bit_le_coded_phy_s8 ,pdata 
+3f37 1a208a35 add rega ,coffset_le_rx_phy ,contw 
+3f38 20600000 rtn 
+
+le_update_phy_cb_s2m_no_change:
+3f39 1a208c36 add rega ,coffset_le_tx_phy ,contr 
+3f3a efe08006 ifetch 1 ,contr 
+3f3b 24748000 nrtn master 
+3f3c 1a208c35 add rega ,coffset_le_rx_phy ,contr 
+3f3d efe08006 ifetch 1 ,contr 
+3f3e 20600000 rtn 
+
+le_check_update_flag:
+3f3f 44fc401f bpatch patch1f_0 ,mem_patch1f 
+3f40 efe08011 ifetch 1 ,rega 
+3f41 afec0000 qisolate0 pdata 
+3f42 20608000 rtn true 
+3f43 1a208c1a add rega ,coffset_le_event_cnt ,contr 
+3f44 e8410006 ifetcht 2 ,contr 
+3f45 1a208c20 add rega ,coffset_le_instant ,contr 
+3f46 efe10006 ifetch 2 ,contr 
+3f47 98467e00 isub temp ,pdata 
+3f48 2022bf4f branch le_update ,zero 
+3f49 24213f54 nbranch le_check_update_small ,positive 
+3f4a 1fe67c01 sub pdata ,1 ,null 
+3f4b 2022bf4d branch le_update_ahead1 ,zero 
+3f4c 20600000 rtn 
+
+le_update_ahead1:
+3f4d 1a627e00 copy regc ,pdata 
+3f4e 20207487 branch callback_func 
+
+le_update:
+3f4f efe08011 ifetch 1 ,rega 
+3f50 f93ffe00 qset0 pdata 
+3f51 e7e08011 istore 1 ,rega 
+3f52 1a427e00 copy regb ,pdata 
+3f53 20207487 branch callback_func 
+
+le_check_update_small:
+3f54 1a208c1a add rega ,coffset_le_event_cnt ,contr 
+3f55 efe10006 ifetch 2 ,contr 
+3f56 1a208c20 add rega ,coffset_le_instant ,contr 
+3f57 efe10006 ifetch 2 ,contr 
+3f58 98467e00 isub temp ,pdata 
+3f59 d840ffff arg 0xffff ,temp 
+3f5a 98467c00 isub temp ,null 
+3f5b 2022bf4f branch le_update ,zero 
+3f5c d840f000 arg 0xf000 ,temp 
+3f5d 98467c00 isub temp ,null 
+3f5e 24213f4f nbranch le_update ,positive 
+3f5f 20600000 rtn 
+
+le_check_retransmit:
+3f60 6848817a fetcht 1 ,mem_le_arq 
+3f61 6fe08047 fetch 1 ,mem_le_rxbuf_data_header 
+3f62 1fe37e00 rshift pdata ,pdata 
+3f63 9842fe00 ixor temp ,pdata 
+3f64 2feffe02 isolate1 nesn ,pdata 
+3f65 7920800f setflag true ,mark_old_packet ,mark 
+3f66 20600000 rtn 
+
+le_acknowledge:
+3f67 44fcc01f bpatch patch1f_1 ,mem_patch1f 
+3f68 2040407e call le_supervision_flush 
+3f69 c6180000 rtnmark1 mark_ble_crc_fail 
+3f6a 20403f8e call le_check_wak 
+3f6b 6fe08047 fetch 1 ,mem_le_rxbuf_data_header 
+3f6c 2feffe04 isolate1 md ,pdata 
+3f6d 7920802a setflag true ,mark_ble_rx_md ,mark 
+3f6e 1fe37e00 rshift pdata ,pdata 
+3f6f 9842fe00 ixor temp ,pdata 
+3f70 2feffe02 isolate1 nesn ,pdata 
+3f71 7920800f setflag true ,mark_old_packet ,mark 
+3f72 c6078000 rtnmark1 mark_old_packet 
+3f73 6fe08048 fetch 1 ,mem_le_rxbuf_data_length 
+3f74 203a3f80 branch le_ack_unenc ,blank 
+3f75 6fe08163 fetch 1 ,mem_le_state 
+3f76 c3023f80 bbit0 lestate_encryption ,le_ack_unenc 
+3f77 684a014f fetcht 4 ,mem_le_peer_mic 
+3f78 6fe2440c fetch 4 ,mem_ccm_last_mic 
+3f79 98467c00 isub temp ,null 
+3f7a 2022ba8a branch assert ,zero 
+3f7b 604a440c storet 4 ,mem_ccm_last_mic 
+3f7c 6fe2c407 fetch 5 ,mem_ccm_pcnt_rx 
+3f7d 1fe0fe01 increase 1 ,pdata 
+3f7e 79207e27 set1 le_ccm_directionbit ,pdata 
+3f7f 67e2c407 store 5 ,mem_ccm_pcnt_rx 
+
+le_ack_unenc:
+3f80 6848817a fetcht 1 ,mem_le_arq 
+3f81 79400402 setflip nesn ,temp 
+3f82 6048817a storet 1 ,mem_le_arq 
+3f83 6fe0c2f6 fetch 1 ,mem_le_configuration 
+3f84 c4030000 rtnbit0 bit_ble_deal_bb_packet 
+3f85 44fd401f bpatch patch1f_2 ,mem_patch1f 
+3f86 6fe08048 fetch 1 ,mem_le_rxbuf_data_length 
+3f87 207a0000 rtn blank 
+3f88 6fe08047 fetch 1 ,mem_le_rxbuf_data_header 
+3f89 2fe00601 compare llid_continue ,pdata ,3 
+3f8a 2020c592 branch le_parse_writing_attribute_continue ,true 
+3f8b 2fe00602 compare llid_start ,pdata ,3 
+3f8c 2020c580 branch le_parse_writing_attribute_start ,true 
+3f8d 20600000 rtn 
+
+le_check_wak:
+3f8e 44fdc01f bpatch patch1f_3 ,mem_patch1f 
+3f8f 6848817a fetcht 1 ,mem_le_arq 
+3f90 284c0005 isolate0 wak ,temp 
+3f91 20608000 rtn true 
+3f92 6fe08047 fetch 1 ,mem_le_rxbuf_data_header 
+3f93 1fe3fe00 lshift pdata ,pdata 
+3f94 9842fe00 ixor temp ,pdata 
+3f95 c4018000 rtnbit0 sn 
+3f96 793f8405 set0 wak ,temp 
+3f97 79400403 setflip sn ,temp 
+3f98 6048817a storet 1 ,mem_le_arq 
+3f99 28400603 compare 3 ,temp ,3 
+3f9a 24608000 nrtn true 
+3f9b 20600000 rtn 
+
+le_set_enc:
+3f9c 6fe08163 fetch 1 ,mem_le_state 
+3f9d 79207e04 set1 lestate_encryption ,pdata 
+3f9e 67e08163 store 1 ,mem_le_state 
+3f9f 79200032 set1 mark_ble_encryption ,mark 
+3fa0 20600000 rtn 
+
+le_clear_enc:
+3fa1 44fe401f bpatch patch1f_4 ,mem_patch1f 
+3fa2 7042d200 jam flag_le_enc_null ,mem_le_enc_state 
+3fa3 dfe00000 arg 0 ,pdata 
+3fa4 67e2440c store 4 ,mem_ccm_last_mic 
+3fa5 67e2c402 store 5 ,mem_ccm_pcnt_tx 
+3fa6 79207e27 set1 le_ccm_directionbit ,pdata 
+3fa7 67e2c407 store 5 ,mem_ccm_pcnt_rx 
+3fa8 6fe08163 fetch 1 ,mem_le_state 
+3fa9 793ffe04 set0 lestate_encryption ,pdata 
+3faa 67e08163 store 1 ,mem_le_state 
+3fab 793f8032 set0 mark_ble_encryption ,mark 
+3fac 20600000 rtn 
+
+le_scan_check_sender_addr_type:
+3fad da200001 arg 1 ,rega 
+3fae 6fe08047 fetch 1 ,mem_le_rxbuf_adv_connect_ind_header 
+3faf c3830000 rtnbit1 le_sender_addr_bit 
+3fb0 da200000 arg 0 ,rega 
+3fb1 20600000 rtn 
+
+le_get_master_rx_max:
+3fb2 18c20a00 copy contr ,contw 
+3fb3 6849437c fetcht 2 ,mem_remote_rx_max_octets 
+3fb4 18a20c00 copy contw ,contr 
+3fb5 20600000 rtn 
+
+le_prepare_tx:
+3fb6 44fec01f bpatch patch1f_5 ,mem_patch1f 
+3fb7 6fe0817a fetch 1 ,mem_le_arq 
+3fb8 c3828000 rtnbit1 wak 
+3fb9 20403fd7 call le_check_tx_md 
+3fba 204041b4 call le_fifo_get_first_tx_ptr 
+3fbb 203a3ffb branch le_send_empty ,blank 
+3fbc efe10006 ifetch 2 ,contr 
+3fbd e8410006 ifetcht 2 ,contr 
+3fbe 18422200 copy temp ,rega 
+3fbf 9a267e00 isub rega ,pdata 
+3fc0 20403fb2 call le_get_master_rx_max 
+3fc1 204074be call not_greater_than 
+3fc2 1fe20400 copy pdata ,temp 
+3fc3 e8208006 ifetchr type ,1 ,contr 
+3fc4 1a227e00 copy rega ,pdata 
+3fc5 98c0fe00 iadd contr ,pdata 
+3fc6 67e104e3 store 2 ,mem_contr 
+3fc7 20403feb call le_update_tx_type 
+3fc8 20403ffd call le_send_packet 
+3fc9 204041b4 call le_fifo_get_first_tx_ptr 
+3fca efe10006 ifetch 2 ,contr 
+3fcb 1fe22200 copy pdata ,rega 
+3fcc 18c22600 copy contr ,regc 
+3fcd e8410006 ifetcht 2 ,contr 
+3fce 18422400 copy temp ,regb 
+3fcf 9a467e00 isub regb ,pdata 
+3fd0 20403fb2 call le_get_master_rx_max 
+3fd1 204074be call not_greater_than 
+3fd2 9a40fe00 iadd regb ,pdata 
+3fd3 e7e10013 istore 2 ,regc 
+3fd4 9a267c00 isub rega ,null 
+3fd5 24628000 nrtn zero 
+3fd6 202041ce branch le_fifo_release_first_node 
+
+le_check_tx_md:
+3fd7 20403fde call le_check_continue 
+3fd8 c6148000 rtnmark1 mark_ble_tx_md 
+3fd9 6fe0c2f6 fetch 1 ,mem_le_configuration 
+3fda c3013fe9 bbit0 bit_ble_transmit_packet_by_md ,le_clear_md 
+3fdb 204041b8 call le_fifo_get_second_tx_ptr 
+3fdc 203a3fe9 branch le_clear_md ,blank 
+3fdd 20203fe7 branch le_set_md 
+
+le_check_continue:
+3fde 204041b4 call le_fifo_get_first_tx_ptr 
+3fdf 203a3fe9 branch le_clear_md ,blank 
+3fe0 efe10006 ifetch 2 ,contr 
+3fe1 e8410006 ifetcht 2 ,contr 
+3fe2 98462200 isub temp ,rega 
+3fe3 20403fb2 call le_get_master_rx_max 
+3fe4 18427e00 copy temp ,pdata 
+3fe5 9a267c00 isub rega ,null 
+3fe6 20213fe9 branch le_clear_md ,positive 
+
+le_set_md:
+3fe7 79200029 set1 mark_ble_tx_md ,mark 
+3fe8 20600000 rtn 
+
+le_clear_md:
+3fe9 793f8029 set0 mark_ble_tx_md ,mark 
+3fea 20600000 rtn 
+
+le_update_tx_type:
+3feb 1a227e00 copy rega ,pdata 
+3fec 207a0000 rtn blank 
+3fed d8200001 arg llid_continue ,type 
+3fee 20600000 rtn 
+
+le_att_check_notification_enable:
+3fef 44ff401f bpatch patch1f_6 ,mem_patch1f 
+3ff0 18408401 increase 1 ,temp 
+3ff1 204040af call le_att_get_handle_ptr 
+3ff2 18c08dfe increase -2 ,contr 
+3ff3 efe10006 ifetch 2 ,contr 
+3ff4 d8402902 arg client_charactertic_configuration ,temp 
+3ff5 98467c00 isub temp ,null 
+3ff6 24628000 nrtn zero 
+3ff7 18c08c01 increase 1 ,contr 
+3ff8 18c22200 copy contr ,rega 
+3ff9 efe08006 ifetch 1 ,contr 
+3ffa 20600000 rtn 
+
+le_send_empty:
+3ffb 18000400 force 0 ,temp 
+3ffc 18000201 force 1 ,type 
+
+le_send_packet:
+3ffd 44ffc01f bpatch patch1f_7 ,mem_patch1f 
+3ffe 6048c12c storet 1 ,mem_le_txlen 
+3fff 6848817a fetcht 1 ,mem_le_arq 
+4000 79200405 set1 wak ,temp 
+4001 18417efc and temp ,0xfc ,pdata 
+4002 9821fe00 ior type ,pdata 
+4003 67e0817a store 1 ,mem_le_arq 
+4004 1fe17e1f and_into 0x1f ,pdata 
+4005 280ffe29 isolate1 mark_ble_tx_md ,mark 
+4006 7920fe04 setflag true ,md ,pdata 
+4007 67e0c12b store 1 ,mem_le_txheader 
+4008 6fe0c12b fetch 1 ,mem_le_txheader 
+4009 28200601 compare 1 ,type ,3 
+400a 2420c00d nbranch le_send_no_txlen ,true 
+400b 6fe0c12c fetch 1 ,mem_le_txlen 
+400c 207a0000 rtn blank 
+
+le_send_no_txlen:
+400d c5194013 bmark1 mark_ble_encryption ,le_send_packet_enc 
+400e 6f20c12c fetchr loopcnt ,1 ,mem_le_txlen 
+400f 6fe104e3 fetch 2 ,mem_contr 
+4010 1fe20c00 copy pdata ,contr 
+4011 d8a0412d arg mem_le_txpayload ,contw 
+4012 2020740c branch memcpy_fast 
+
+le_send_packet_enc:
+4013 20406e84 call load_sk 
+4014 20206dbb branch le_encrypt_new_start 
+
+get_lpm_wake_ble_rx_lock:
+4015 d8e00000 arg wake_lock_ble_rx ,queue 
+4016 20203c21 branch lpm_get_wake_lock 
+
+put_lpm_wake_ble_rx_lock:
+4017 d8e00000 arg wake_lock_ble_rx ,queue 
+4018 20203c25 branch lpm_put_wake_lock 
+
+le_parse:
+4019 47004020 bpatchx patch20_0 ,mem_patch20 
+401a c6078000 rtnmark1 mark_old_packet 
+401b c6180000 rtnmark1 mark_ble_crc_fail 
+401c 6fe08047 fetch 1 ,mem_le_rxbuf_data_header 
+401d 1fe17e03 and pdata ,0x3 ,pdata 
+401e 67e0c309 store 1 ,mem_le_packet_llid 
+401f 6fe08048 fetch 1 ,mem_le_rxbuf_data_length 
+4020 207a0000 rtn blank 
+4021 58000049 setarg mem_le_rxbuf_data_payload 
+4022 67e1430e store 2 ,mem_le_payload_ptr 
+4023 4700c020 bpatchx patch20_1 ,mem_patch20 
+4024 6fe0c309 fetch 1 ,mem_le_packet_llid 
+4025 c001c6c3 beq llid_le_ll ,le_parse_ll 
+4026 20404034 call le_check_l2cap_complete 
+4027 24344015 nbranch get_lpm_wake_ble_rx_lock ,user 
+4028 20404017 call put_lpm_wake_ble_rx_lock 
+4029 58000000 setarg 0 
+402a 67e1430c store 2 ,mem_le_packet_len_recved 
+402b 6fe14314 fetch 2 ,mem_le_l2cap_parse_cb 
+402c 243a7487 nbranch callback_func ,blank 
+
+le_parse_l2cap:
+402d 6fe1430e fetch 2 ,mem_le_payload_ptr 
+402e 1fe08c02 add pdata ,2 ,contr 
+402f efe10006 ifetch 2 ,contr 
+4030 c002432f beq le_l2cap_cid_att ,le_parse_att 
+4031 c00345e3 beq le_l2cap_cid_smp ,le_parse_smp 
+4032 c002c5b7 beq le_l2cap_cid_signal ,le_parse_signaling 
+4033 20600000 rtn 
+
+le_check_l2cap_complete:
+4034 6fe0c309 fetch 1 ,mem_le_packet_llid 
+4035 c0014043 beq llid_start ,le_check_l2cap_llid_start 
+4036 c000c05a beq llid_continue ,le_check_l2cap_llid_continue 
+4037 20600000 rtn 
+
+le_check_l2cap_cid_legal:
+4038 204074c8 call enable_user 
+4039 d8400004 arg le_l2cap_cid_att ,temp 
+403a 9fe67c00 isub pdata ,null 
+403b 20628000 rtn zero 
+403c d8400005 arg le_l2cap_cid_signal ,temp 
+403d 9fe67c00 isub pdata ,null 
+403e 20628000 rtn zero 
+403f d8400006 arg le_l2cap_cid_smp ,temp 
+4040 9fe67c00 isub pdata ,null 
+4041 20628000 rtn zero 
+4042 202074ca branch disable_user 
+
+le_check_l2cap_llid_start:
+4043 6fe1430e fetch 2 ,mem_le_payload_ptr 
+4044 1fe20c00 copy pdata ,contr 
+4045 efe10006 ifetch 2 ,contr 
+4046 67e1430a store 2 ,mem_le_l2cap_size 
+4047 efe10006 ifetch 2 ,contr 
+4048 20404038 call le_check_l2cap_cid_legal 
+4049 24740000 nrtn user 
+404a 68488048 fetcht 1 ,mem_le_rxbuf_data_length 
+404b 6049430c storet 2 ,mem_le_packet_len_recved 
+404c 6fe1430a fetch 2 ,mem_le_l2cap_size 
+404d 1fe0fe04 increase 4 ,pdata 
+404e 98467c00 isub temp ,null 
+404f 2022f4c8 branch enable_user ,zero 
+4050 6f208048 fetchr loopcnt ,1 ,mem_le_rxbuf_data_length 
+4051 d8a00f00 arg mem_le_l2cap_buf ,contw 
+4052 6fe1430e fetch 2 ,mem_le_payload_ptr 
+4053 1fe20c00 copy pdata ,contr 
+4054 2040740c call memcpy_fast 
+4055 202074ca branch disable_user 
+
+le_check_l2cap_continue_legal:
+4056 204074c8 call enable_user 
+4057 6fe1430c fetch 2 ,mem_le_packet_len_recved 
+4058 247a0000 nrtn blank 
+4059 202074ca branch disable_user 
+
+le_check_l2cap_llid_continue:
+405a 20404056 call le_check_l2cap_continue_legal 
+405b 24740000 nrtn user 
+405c 6fe1430c fetch 2 ,mem_le_packet_len_recved 
+405d d8a00f00 arg mem_le_l2cap_buf ,contw 
+405e 98a0a200 iadd contw ,rega 
+405f 68488048 fetcht 1 ,mem_le_rxbuf_data_length 
+4060 9840fe00 iadd temp ,pdata 
+4061 67e1430c store 2 ,mem_le_packet_len_recved 
+4062 6f208048 fetchr loopcnt ,1 ,mem_le_rxbuf_data_length 
+4063 1a220a00 copy rega ,contw 
+4064 6fe1430e fetch 2 ,mem_le_payload_ptr 
+4065 1fe20c00 copy pdata ,contr 
+4066 2040740c call memcpy_fast 
+4067 58000f00 setarg mem_le_l2cap_buf 
+4068 67e1430e store 2 ,mem_le_payload_ptr 
+4069 6fe1430a fetch 2 ,mem_le_l2cap_size 
+406a 1fe0fe04 increase 4 ,pdata 
+406b 6849430c fetcht 2 ,mem_le_packet_len_recved 
+406c 98467c00 isub temp ,null 
+406d 2022f4c8 branch enable_user ,zero 
+406e 202074ca branch disable_user 
+
+le_get_search_att_uuid:
+406f 204073c0 call store_contr 
+4070 d8a0428f arg mem_le_search_uuid_length ,contw 
+4071 2020457a branch le_get_search_common 
+
+le_writeatt_cb:
+4072 6fe14398 fetch 2 ,mem_cb_att_write 
+4073 20207487 branch callback_func 
+
+le_supervision_update:
+4074 47014020 bpatchx patch20_2 ,mem_patch20 
+4075 684a017f fetcht 4 ,mem_le_supervision_timer 
+4076 20403a86 call get_clkbt 
+4077 98461600 isub temp ,timeup 
+4078 19627e00 deposit timeup 
+4079 68490191 fetcht 2 ,mem_le_superto 
+407a 18520400 lshift4 temp ,temp 
+407b 18438400 lshift temp ,temp 
+407c 98467e00 isub temp ,pdata 
+407d 20600000 rtn 
+
+le_supervision_flush:
+407e 20403a86 call get_clkbt 
+407f 67e2017f store 4 ,mem_le_supervision_timer 
+4080 20600000 rtn 
+
+le_receive_window_size:
+4081 4701c020 bpatchx patch20_3 ,mem_patch20 
+4082 1a208c50 add rega ,coffset_le_peer_sca ,contr 
+4083 efe08006 ifetch 1 ,contr 
+4084 20403d2f call le_sca_map 
+4085 1a208c02 add rega ,coffset_tsniff ,contr 
+4086 efe10006 ifetch 2 ,contr 
+4087 984ffe00 imul32 temp ,pdata 
+4088 6849003f fetcht 2 ,mem_param_rt_rthalfslot 
+4089 984ffe00 imul32 temp ,pdata 
+408a d84f4240 arg 1000000 ,temp 
+408b 9846fc00 idiv temp 
+408c d8400682 arg param_windown_size ,temp 
+408d 6fe0c11d fetch 1 ,mem_system_clk 
+408e 984f8400 imul32 temp ,temp 
+408f 1a208c2b add rega ,coffset_le_window_size ,contr 
+4090 efe08006 ifetch 1 ,contr 
+4091 984ffe00 imul32 temp ,pdata 
+4092 9840fe00 iadd temp ,pdata 
+4093 67e242f2 store 4 ,mem_le_transmit_window 
+4094 6fe1409b fetch 2 ,mem_rx_window_sniff 
+4095 20407475 call wait_div_end 
+4096 18078400 quotient temp 
+4097 9840fe00 iadd temp ,pdata 
+4098 1a208a0e add rega ,coffset_rx_window ,contw 
+4099 e7e10005 istore 2 ,contw 
+409a 20600000 rtn 
+
+le_init_attlist_search:
+409b 47024020 bpatchx patch20_4 ,mem_patch20 
+409c 6fe10506 fetch 2 ,mem_le_search_handle_start 
+409d 98002400 iforce regb 
+409e 6fe10508 fetch 2 ,mem_le_search_handle_end 
+409f 98002600 iforce regc 
+40a0 6fe142cc fetch 2 ,mem_ui_le_uuid_table 
+40a1 98000c00 iforce contr 
+40a2 202074c8 branch enable_user 
+
+le_att_handle_inrange:
+40a3 efe10006 ifetch 2 ,contr 
+40a4 1fe17eff and_into 0xff ,pdata 
+40a5 207a0000 rtn blank 
+40a6 9a467c00 isub regb ,null 
+40a7 24610000 nrtn positive 
+40a8 9a667c00 isub regc ,null 
+40a9 20628000 rtn zero 
+40aa 202140ad branch le_att_handle_blank ,positive 
+40ab 18007c01 force 1 ,null 
+40ac 20600000 rtn 
+
+le_att_handle_blank:
+40ad 18007e00 force 0 ,pdata 
+40ae 20600000 rtn 
+
+le_att_get_handle_ptr:
+40af 204040b2 call le_att_get_handle_ptr2 
+40b0 2022c0bf branch le_att_get_handle_ptr_found ,zero 
+40b1 20600000 rtn 
+
+le_att_get_handle_ptr2:
+40b2 4702c020 bpatchx patch20_5 ,mem_patch20 
+40b3 6fe142cc fetch 2 ,mem_ui_le_uuid_table 
+40b4 98000c00 iforce contr 
+
+le_att_get_handle_loop1:
+40b5 efe10006 ifetch 2 ,contr 
+40b6 1fe17eff and_into 0xff ,pdata 
+40b7 207a0000 rtn blank 
+40b8 98467c00 isub temp ,null 
+40b9 20628000 rtn zero 
+40ba efe08006 ifetch 1 ,contr 
+40bb 98c08c00 iadd contr ,contr 
+40bc efe08006 ifetch 1 ,contr 
+40bd 98c08c00 iadd contr ,contr 
+40be 202040b5 branch le_att_get_handle_loop1 
+
+le_att_get_handle_ptr_found:
+40bf efe08006 ifetch 1 ,contr 
+40c0 98c08c00 iadd contr ,contr 
+40c1 20600000 rtn 
+
+le_att_get_short_uuid_ptr:
+40c2 47034020 bpatchx patch20_6 ,mem_patch20 
+40c3 6fe142cc fetch 2 ,mem_ui_le_uuid_table 
+40c4 98000c00 iforce contr 
+
+le_att_get_short_uuid_loop:
+40c5 efe10006 ifetch 2 ,contr 
+40c6 1fe17eff and_into 0xff ,pdata 
+40c7 207a0000 rtn blank 
+40c8 efe08006 ifetch 1 ,contr 
+40c9 98c08c00 iadd contr ,contr 
+40ca 18c08dfe increase -2 ,contr 
+40cb efe10006 ifetch 2 ,contr 
+40cc 98467c00 isub temp ,null 
+40cd 20628000 rtn zero 
+40ce efe08006 ifetch 1 ,contr 
+40cf 98c08c00 iadd contr ,contr 
+40d0 202040c5 branch le_att_get_short_uuid_loop 
+
+le_att_get_last_handle:
+40d1 6fe142cc fetch 2 ,mem_ui_le_uuid_table 
+40d2 98000c00 iforce contr 
+
+le_att_get_last_handle_loop:
+40d3 efe10006 ifetch 2 ,contr 
+40d4 1fe17eff and_into 0xff ,pdata 
+40d5 207a0000 rtn blank 
+40d6 1fe08401 add pdata ,1 ,temp 
+40d7 efe08006 ifetch 1 ,contr 
+40d8 98c08c00 iadd contr ,contr 
+40d9 efe08006 ifetch 1 ,contr 
+40da 98c08c00 iadd contr ,contr 
+40db 18c20a00 copy contr ,contw 
+40dc 202040d3 branch le_att_get_last_handle_loop 
+
+le_att_get_handle_info_from_ptr:
+40dd 6fe1051c fetch 2 ,mem_le_cur_attlist_start_ptr 
+40de 202040e1 branch le_att_get_handle_info_fast 
+
+le_att_get_handle_info:
+40df 4703c020 bpatchx patch20_7 ,mem_patch20 
+40e0 6fe142cc fetch 2 ,mem_ui_le_uuid_table 
+
+le_att_get_handle_info_fast:
+40e1 98000c00 iforce contr 
+
+le_att_get_handle_loop:
+40e2 efe10006 ifetch 2 ,contr 
+40e3 1fe17eff and_into 0xff ,pdata 
+40e4 203a40ec branch le_att_unfind_handle ,blank 
+40e5 98467c00 isub temp ,null 
+40e6 2022c0ed branch le_att_finded_handle ,zero 
+40e7 efe08006 ifetch 1 ,contr 
+40e8 98c08c00 iadd contr ,contr 
+40e9 efe08006 ifetch 1 ,contr 
+40ea 98c08c00 iadd contr ,contr 
+40eb 202040e2 branch le_att_get_handle_loop 
+
+le_att_unfind_handle:
+40ec 202074d6 branch disable_blank 
+
+le_att_finded_handle:
+40ed efe08006 ifetch 1 ,contr 
+40ee 67e08522 store 1 ,mem_le_cur_uuid_length 
+40ef 1fe27200 copy pdata ,loopcnt 
+40f0 d8a00523 arg mem_le_cur_uuid ,contw 
+40f1 2040740c call memcpy_fast 
+40f2 efe08006 ifetch 1 ,contr 
+40f3 67e0851b store 1 ,mem_le_curr_att_len 
+40f4 204073c0 call store_contr 
+40f5 202074d8 branch enable_blank 
+
+le_modified_name:
+40f6 47044021 bpatchx patch21_0 ,mem_patch21 
+40f7 204040f9 call le_modified_name_att_list 
+40f8 2020410b branch le_modified_name_adv 
+
+le_modified_name_att_list:
+40f9 d8402a00 arg uuid_chrctr_device_name ,temp 
+40fa 204040c2 call le_att_get_short_uuid_ptr 
+40fb 207a0000 rtn blank 
+40fc efe08006 ifetch 1 ,contr 
+40fd 18c20a00 copy contr ,contw 
+40fe 6848c22d fetcht 1 ,mem_le_name_len 
+40ff 18427200 copy temp ,loopcnt 
+4100 98467c00 isub temp ,null 
+4101 24214108 nbranch le_name_length_longer_than_att ,positive 
+4102 98460400 isub temp ,temp 
+4103 d8c0422e arg mem_le_name ,contr 
+4104 2040740c call memcpy_fast 
+4105 18427200 copy temp ,loopcnt 
+4106 2442c143 ncall memcpy_empty ,zero 
+4107 20600000 rtn 
+
+le_name_length_longer_than_att:
+4108 1fe27200 copy pdata ,loopcnt 
+4109 d8c0422e arg mem_le_name ,contr 
+410a 2020740c branch memcpy_fast 
+
+le_modified_name_adv:
+410b da60433f arg mem_le_adv_data_len + 32 ,regc 
+410c da204320 arg mem_le_adv_data ,rega 
+410d 20404118 call le_modified_name_adv_and_scan 
+410e 58000000 setarg 0 
+410f 79347e00 setflag user ,0 ,pdata 
+4110 67e084c4 store 1 ,mem_pdatatemp 
+4111 da60435f arg mem_le_scan_data_len + 32 ,regc 
+4112 da204340 arg mem_le_scan_data ,rega 
+4113 20404118 call le_modified_name_adv_and_scan 
+4114 20740000 rtn user 
+4115 6fe084c4 fetch 1 ,mem_pdatatemp 
+4116 203a3a8a branch assert ,blank 
+4117 20600000 rtn 
+
+le_modified_name_adv_and_scan:
+4118 4704c021 bpatchx patch21_1 ,mem_patch21 
+4119 204074c8 call enable_user 
+411a 204073f2 call clear_temp_block 
+411b da400000 arg 0 ,regb 
+411c d8a004f7 arg mem_le_data_temp ,contw 
+411d 20404132 call le_modified_name_adv_loop 
+411e 6fe0c22d fetch 1 ,mem_le_name_len 
+411f 1fe08401 add pdata ,1 ,temp 
+4120 9a40a200 iadd regb ,rega 
+4121 1a20a202 increase 2 ,rega 
+4122 1a267c1f sub rega ,0x1f ,null 
+4123 24214130 nbranch le_modified_name_adv_and_scan_name_overflow ,positive 
+4124 e0408005 istoret 1 ,contw 
+4125 d8400009 arg gap_adtype_local_name_complete ,temp 
+4126 e0408005 istoret 1 ,contw 
+4127 98007200 iforce loopcnt 
+4128 2040740c call memcpy_fast 
+4129 1a222400 copy rega ,regb 
+
+le_modified_name_adv_and_scan_store_data:
+412a 1a427e00 deposit regb 
+412b 67e084f6 store 1 ,mem_le_data_len_temp 
+412c d8c004f6 arg mem_le_data_len_temp ,contr 
+412d 5fffffe0 setarg -32 
+412e 9a608a00 iadd regc ,contw 
+412f 202073d0 branch memcpy32 
+
+le_modified_name_adv_and_scan_name_overflow:
+4130 204074ca call disable_user 
+4131 2020412a branch le_modified_name_adv_and_scan_store_data 
+
+le_modified_name_adv_loop:
+4132 efe08011 ifetch 1 ,rega 
+4133 207a0000 rtn blank 
+4134 1fe0fe01 pincrease 1 
+4135 e8408006 ifetcht 1 ,contr 
+4136 18467c09 sub temp ,gap_adtype_local_name_complete ,null 
+4137 2022c141 branch le_modified_name_adv_found_name ,zero 
+4138 9a40a400 iadd regb ,regb 
+4139 1a220c00 copy rega ,contr 
+413a 98007200 iforce loopcnt 
+413b 2040740c call memcpy_fast 
+413c 18c22200 copy contr ,rega 
+
+le_modified_name_adv_loop2:
+413d 1a227e00 deposit rega 
+413e 9a667c00 isub regc ,null 
+413f 20610000 rtn positive 
+4140 20204132 branch le_modified_name_adv_loop 
+
+le_modified_name_adv_found_name:
+4141 9a20a200 iadd rega ,rega 
+4142 2020413d branch le_modified_name_adv_loop2 
+
+memcpy_empty:
+4143 58000020 setarg space 
+4144 e7e08005 istore 1 ,contw 
+4145 c2004143 loop memcpy_empty 
+4146 20600000 rtn 
+
+le_lpm_set_mult:
+4147 47054021 bpatchx patch21_2 ,mem_patch21 
+4148 7855fc00 disable wake 
+4149 2037414b branch le_lpm_set_mult_attempt ,attempt 
+414a 2436c15a nbranch le_lpm_lost ,match 
+
+le_lpm_set_mult_attempt:
+414b 20403bce call lpm_match 
+414c 6fe1409b fetch 2 ,mem_rx_window_sniff 
+414d 67e10171 store 2 ,mem_le_receive_window 
+414e 6fe0c2f6 fetch 1 ,mem_le_configuration 
+414f c282bbdc bbit1 bit_ble_short_mult ,lpm_mult_short 
+4150 c507bbdc bmark1 mark_old_packet ,lpm_mult_short 
+4151 6fe08048 fetch 1 ,mem_le_rxbuf_data_length 
+4152 243a3bdc nbranch lpm_mult_short ,blank 
+4153 6fe0c12c fetch 1 ,mem_le_txlen 
+4154 243a3bdc nbranch lpm_mult_short ,blank 
+4155 6fe08163 fetch 1 ,mem_le_state 
+4156 c282bbdc bbit1 lestate_update_param ,lpm_mult_short 
+4157 c283bbdc bbit1 lestate_update_phy ,lpm_mult_short 
+4158 c2833bdc bbit1 lestate_update_map ,lpm_mult_short 
+4159 20203bc4 branch lpm_mult_wait_timeout 
+
+le_lpm_lost:
+415a 6fe0c0a9 fetch 1 ,mem_sniff_unint_lost 
+415b 1fe67c1e sub pdata ,30 ,null 
+415c 24213bd3 nbranch lpm_lost ,positive 
+415d 6849409b fetcht 2 ,mem_rx_window_sniff 
+415e 18430400 rshift temp ,temp 
+415f 6fe10171 fetch 2 ,mem_le_receive_window 
+4160 9840fe00 iadd temp ,pdata 
+4161 67e10171 store 2 ,mem_le_receive_window 
+4162 20203bd3 branch lpm_lost 
+
+le_set_config_fixed_tk:
+4163 d8e00000 arg bit_ble_passkey_fixed_key ,queue 
+4164 2020417b branch le_set_config 
+
+le_clr_config_fixed_tk:
+4165 d8e00000 arg bit_ble_passkey_fixed_key ,queue 
+4166 2020417f branch le_clr_config 
+
+le_set_config_fixed_ltk:
+4167 d8e00001 arg bit_ble_pairing_fixed_ltk ,queue 
+4168 2020417b branch le_set_config 
+
+le_clr_config_fixed_ltk:
+4169 d8e00001 arg bit_ble_pairing_fixed_ltk ,queue 
+416a 2020417f branch le_clr_config 
+
+le_set_config_more_data:
+416b d8e00002 arg bit_ble_transmit_packet_by_md ,queue 
+416c 2020417b branch le_set_config 
+
+le_clr_config_more_data:
+416d d8e00002 arg bit_ble_transmit_packet_by_md ,queue 
+416e 2020417f branch le_clr_config 
+
+le_set_config_read_authentication:
+416f d8e00003 arg bit_ble_read_auth ,queue 
+4170 2020417b branch le_set_config 
+
+le_clr_config_read_authentication:
+4171 d8e00003 arg bit_ble_read_auth ,queue 
+4172 2020417f branch le_clr_config 
+
+le_set_config_write_authentication:
+4173 d8e00004 arg bit_ble_write_auth ,queue 
+4174 2020417b branch le_set_config 
+
+le_clr_config_write_authentication:
+4175 d8e00004 arg bit_ble_write_auth ,queue 
+4176 2020417f branch le_clr_config 
+
+le_set_config_short_mult:
+4177 d8e00005 arg bit_ble_short_mult ,queue 
+4178 2020417b branch le_set_config 
+
+le_clr_config_short_mult:
+4179 d8e00005 arg bit_ble_short_mult ,queue 
+417a 2020417f branch le_clr_config 
+
+le_set_config:
+417b 6fe0c2f6 fetch 1 ,mem_le_configuration 
+417c f9207e00 qset1 pdata 
+417d 67e0c2f6 store 1 ,mem_le_configuration 
+417e 20600000 rtn 
+
+le_clr_config:
+417f 6fe0c2f6 fetch 1 ,mem_le_configuration 
+4180 f93ffe00 qset0 pdata 
+4181 67e0c2f6 store 1 ,mem_le_configuration 
+4182 20600000 rtn 
+
+le_set_fixed_ltk:
+4183 58112233 setarg 0x112233 
+4184 67e1c2f7 store 3 ,mem_le_fixed_ltk 
+4185 58445566 setarg 0x445566 
+4186 e7e18005 istore 3 ,contw 
+4187 58778899 setarg 0x778899 
+4188 e7e18005 istore 3 ,contw 
+4189 58001122 setarg 0x001122 
+418a e7e18005 istore 3 ,contw 
+418b 58334455 setarg 0x334455 
+418c e7e18005 istore 3 ,contw 
+418d 58000066 setarg 0x66 
+418e e7e08005 istore 1 ,contw 
+418f 20600000 rtn 
+
+le_set_justwork:
+4190 59000302 setarg 0x01000302 
+4191 67e24286 store 4 ,mem_le_pres 
+4192 58010010 setarg 0x010010 
+4193 67e1c28a store 3 ,mem_le_pres_max_keysize 
+4194 7042d301 jam 1 ,mem_le_pairing_mode 
+4195 20600000 rtn 
+
+le_fifo_malloc_tx_empty:
+4196 da200000 arg 0 ,rega 
+4197 d8200001 arg llid_empty ,type 
+4198 202041a9 branch le_fifo_malloc_tx 
+
+le_fifo_malloc_tx_ll:
+4199 4705c021 bpatchx patch21_3 ,mem_patch21 
+419a d8200003 arg llid_le_ll ,type 
+419b 204041a9 call le_fifo_malloc_tx 
+419c 1a427e00 copy regb ,pdata 
+419d e7e08005 istore 1 ,contw 
+419e 20600000 rtn 
+
+le_fifo_malloc_tx_l2cap:
+419f 47064021 bpatchx patch21_4 ,mem_patch21 
+41a0 18000202 force llid_start ,type 
+41a1 1a20a204 increase 4 ,rega 
+41a2 204041a9 call le_fifo_malloc_tx 
+41a3 1a20a3fc increase -4 ,rega 
+41a4 1a227e00 copy rega ,pdata 
+41a5 e7e10005 istore 2 ,contw 
+41a6 1a427e00 copy regb ,pdata 
+41a7 e7e10005 istore 2 ,contw 
+41a8 20600000 rtn 
+
+le_fifo_malloc_tx:
+41a9 4706c021 bpatchx patch21_5 ,mem_patch21 
+41aa 1a20a205 increase 5 ,rega 
+41ab 2040667e call ble_l2cap_malloc 
+41ac 1a20a3fb increase -5 ,rega 
+41ad 1a227e00 copy rega ,pdata 
+41ae e7e10005 istore 2 ,contw 
+41af 58000000 setarg 0 
+41b0 e7e10005 istore 2 ,contw 
+41b1 18227e00 copy type ,pdata 
+41b2 e7e08005 istore 1 ,contw 
+41b3 20600000 rtn 
+
+le_fifo_get_first_tx_ptr:
+41b4 47074021 bpatchx patch21_6 ,mem_patch21 
+41b5 204066b8 call l2cap_malloc_fifo_out 
+41b6 1fe20c00 copy pdata ,contr 
+41b7 20600000 rtn 
+
+le_fifo_get_second_tx_ptr:
+41b8 6fe143fb fetch 2 ,mem_tx_fifo2_ptr 
+41b9 20600000 rtn 
+
+le_fifo_get_last_tx_ptr:
+41ba 204041bd call le_fifo_get_last_tx_ptr0 
+41bb 1fe20c00 copy pdata ,contr 
+41bc 20600000 rtn 
+
+le_fifo_get_last_tx_ptr0:
+41bd 6fe143fe fetch 2 ,mem_tx_fifo3_ptr 
+41be 20600000 rtn 
+
+le_fifo_get_first_l2cap_ptr:
+41bf 204041b4 call le_fifo_get_first_tx_ptr 
+41c0 18c08c05 increase 5 ,contr 
+41c1 20600000 rtn 
+
+le_fifo_get_first_att_ptr:
+41c2 204041b4 call le_fifo_get_first_tx_ptr 
+41c3 18c08c09 increase 9 ,contr 
+41c4 20600000 rtn 
+
+le_fifo_get_last_att_ptr:
+41c5 204041ba call le_fifo_get_last_tx_ptr 
+41c6 18c08c09 increase 9 ,contr 
+41c7 20600000 rtn 
+
+le_fifo_get_last_l2cap_ptr:
+41c8 204041ba call le_fifo_get_last_tx_ptr 
+41c9 18c08c05 increase 5 ,contr 
+41ca 20600000 rtn 
+
+le_fifo_check_full:
+41cb 202066ce branch l2cap_malloc_is_fifo_full 
+
+le_fifo_check_nearly_full:
+41cc 202066d1 branch l2cap_malloc_is_fifo_nearly_full 
+
+le_fifo_check_empty:
+41cd 202066d4 branch l2cap_malloc_is_fifo_empty 
+
+le_fifo_release_first_node:
+41ce 202066bd branch l2cap_malloc_free 
+
+le_set_dle:
+41cf 67e44384 store 8 ,mem_local_rx_max_octets 
+41d0 202041e0 branch le_set_feature_data_packet_length_extension 
+
+le_set_phys:
+41d1 184122ff and temp ,0xff ,rega 
+41d2 204041d6 call le_set_tx_phy 
+41d3 184ca200 rshift8 temp ,rega 
+
+le_set_rx_phy:
+41d4 6220c37b storer rega ,1 ,mem_le_rx_phys 
+41d5 202041d7 branch le_set_phy_common 
+
+le_set_tx_phy:
+41d6 6220c37a storer rega ,1 ,mem_le_tx_phys 
+
+le_set_phy_common:
+41d7 2a2ffe01 isolate1 bit_le_2m_phy ,rega 
+41d8 2040c1dc call le_set_feature_2m_phy ,true 
+41d9 2a2ffe02 isolate1 bit_le_coded_phy ,rega 
+41da 2040c1de call le_set_feature_coded_phy ,true 
+41db 20600000 rtn 
+
+le_set_feature_2m_phy:
+41dc d8e00008 arg bit_ll_feature_le_2m_phy ,queue 
+41dd 202041e1 branch le_set_feature 
+
+le_set_feature_coded_phy:
+41de d8e0000b arg bit_ll_feature_le_coded_phy ,queue 
+41df 202041e1 branch le_set_feature 
+
+le_set_feature_data_packet_length_extension:
+41e0 d8e00005 arg bit_ll_feature_le_data_packet_length_extension ,queue 
+
+le_set_feature:
+41e1 6fe44372 fetch 8 ,mem_le_local_feature 
+41e2 f9207e00 qset1 pdata 
+41e3 67e44372 store 8 ,mem_le_local_feature 
+41e4 20600000 rtn 
+
+le_set_fixed_ltk_justwork:
+41e5 20404167 call le_set_config_fixed_ltk 
+41e6 20404190 call le_set_justwork 
+41e7 20404183 call le_set_fixed_ltk 
+41e8 2020416f branch le_set_config_read_authentication 
+
+le_advertising_dispatch:
+41e9 70019801 jam fun_rx_ll_1m_phy ,mem_le_rx_phy 
+41ea 70019901 jam fun_tx_ll_1m_phy ,mem_le_tx_phy 
+41eb 20403cf9 call le_enable 
+41ec 204041ef call le_scan 
+41ed 2040426c call le_adv 
+41ee 20203d00 branch le_disable 
+
+le_scan:
+41ef 4707c021 bpatchx patch21_7 ,mem_patch21 
+41f0 6fe0c31a fetch 1 ,mem_le_scan_enable 
+41f1 c1808000 rtnne le_scan_enable 
+41f2 d8e00002 arg le_scan_interval_timer ,queue 
+41f3 2040742e call timer_check 
+41f4 247a0000 nrtn blank 
+41f5 6fe1431b fetch 2 ,mem_le_scan_interval 
+41f6 6849431d fetcht 2 ,mem_le_scan_window 
+41f7 98467e00 isub temp ,pdata 
+41f8 d8e00002 arg le_scan_interval_timer ,queue 
+41f9 20407420 call timer_init 
+41fa 7854fc00 disable master 
+41fb 20404296 call le_init_adv 
+41fc 2040420e call le_wait_adv 
+41fd 24768000 nrtn match 
+41fe 47084022 bpatchx patch22_0 ,mem_patch22 
+41ff 6fe30049 fetch 6 ,mem_le_rxbuf + 2 
+4200 67e30173 store 6 ,mem_le_plap 
+4201 6fe08002 fetch 1 ,mem_le_adv_rcv 
+4202 1fe0fe01 increase 1 ,pdata 
+4203 67e08002 store 1 ,mem_le_adv_rcv 
+4204 20404215 call le_create_conn 
+4205 20748000 rtn master 
+4206 204042bd call le_send_scan_request 
+4207 24768000 nrtn match 
+4208 6fe08004 fetch 1 ,mem_le_scanrsp_rcv 
+4209 1fe0fe01 increase 1 ,pdata 
+420a 67e08004 store 1 ,mem_le_scanrsp_rcv 
+420b 6fe4804f fetch 9 ,mem_le_rxbuf + 8 
+420c 67e484f6 store 9 ,mem_temp_block0 
+420d 20600000 rtn 
+
+le_wait_adv:
+420e 4708c022 bpatchx patch22_1 ,mem_patch22 
+420f 20404308 call le_next_adv_channel 
+4210 20403d92 call le_receive_adv 
+4211 6fe08001 fetch 1 ,mem_le_adv_waitcnt 
+4212 1fe0fe01 increase 1 ,pdata 
+4213 67e08001 store 1 ,mem_le_adv_waitcnt 
+4214 20600000 rtn 
+
+le_create_conn:
+4215 47094022 bpatchx patch22_2 ,mem_patch22 
+4216 6fe081b7 fetch 1 ,mem_cmd_le_create_conn 
+4217 c18d8000 rtnne hci_cmd_le_create_conn 
+4218 6fe30173 fetch 6 ,mem_le_plap 
+4219 684b42a1 fetcht 6 ,mem_le_conn_peer_addr 
+421a 98467c00 isub temp ,null 
+421b 24628000 nrtn zero 
+421c 20403853 call context_new 
+421d 24628000 nrtn zero 
+421e 20404225 call le_connect_request 
+421f 20403c59 call le_init_master 
+4220 70410d00 jam 0 ,mem_hci_cmd 
+4221 7001b300 jam 0 ,mem_le_peer_sca 
+4222 70431a00 jam 0 ,mem_le_scan_enable 
+4223 7001b700 jam 0 ,mem_cmd_le_create_conn 
+4224 2020383e branch context_save 
+
+le_connect_request:
+4225 4709c022 bpatchx patch22_3 ,mem_patch22 
+4226 18007fff force -1 ,pdata 
+4227 38080001 setsect 2 ,1 
+4228 67e28193 store 5 ,mem_le_channel_map 
+4229 da200163 arg mem_le_state ,rega 
+422a 20403d68 call le_calc_channel_map 
+422b 18007204 force 4 ,loopcnt 
+422c d8a00187 arg mem_le_access ,contw 
+422d 204074e4 call generate_random_loop 
+422e 6fe142ae fetch 2 ,mem_le_timeout 
+422f 67e10191 store 2 ,mem_le_superto 
+
+le_con_req_hop_retry:
+4230 180a7e00 random pdata 
+4231 1fe17e0f and_into 0xf ,pdata 
+4232 1fe67c04 sub pdata ,4 ,null 
+4233 20214230 branch le_con_req_hop_retry ,positive 
+4234 67e0817c store 1 ,mem_le_hop 
+4235 470a4022 bpatchx patch22_4 ,mem_patch22 
+4236 68494127 fetcht 2 ,mem_le_conn_interval 
+4237 60490165 storet 2 ,mem_le_tsniff 
+4238 18422600 copy temp ,regc 
+4239 1c40fe07 add clkn_bt ,7 ,pdata 
+423a 9a66fc00 idiv regc 
+423b 20407475 call wait_div_end 
+423c 18072200 remainder rega 
+423d 9a267e00 isub rega ,pdata 
+423e 9a60fe00 iadd regc ,pdata 
+423f 68494125 fetcht 2 ,mem_le_dsniff 
+4240 9840fe00 iadd temp ,pdata 
+4241 67e20167 store 4 ,mem_le_anchor 
+4242 9c462200 isub clkn_bt ,rega 
+4243 1a20a3fa increase -6 ,rega 
+4244 da402205 arg 0x2205 ,regb 
+4245 6fe0c2a7 fetch 1 ,mem_le_conn_own_addr_type 
+4246 7d3a2406 nsetflag blank ,le_sender_addr_bit ,regb 
+4247 6fe0c2a0 fetch 1 ,mem_le_conn_peer_addr_type 
+4248 7d3a2407 nsetflag blank ,le_receiver_addr_bit ,regb 
+4249 1a427e00 copy regb ,pdata 
+424a 67e1412b store 2 ,mem_le_txheader 
+424b 6fe342b0 fetch 6 ,mem_le_lap 
+424c e7e30005 istore 6 ,contw 
+424d 6fe30173 fetch 6 ,mem_le_plap 
+424e e7e30005 istore 6 ,contw 
+424f 6fe20187 fetch 4 ,mem_le_access 
+4250 e7e20005 istore 4 ,contw 
+4251 180a7e00 random pdata 
+4252 e7e10005 istore 2 ,contw 
+4253 180a7e00 random pdata 
+4254 e7e08005 istore 1 ,contw 
+4255 18007e02 force 2 ,pdata 
+4256 e7e08005 istore 1 ,contw 
+4257 1a2b7e00 rshift2 rega ,pdata 
+4258 e7e10005 istore 2 ,contw 
+4259 1a6b7e00 rshift2 regc ,pdata 
+425a e7e10005 istore 2 ,contw 
+425b 470ac022 bpatchx patch22_5 ,mem_patch22 
+425c 58000000 setarg 0 
+425d e7e10005 istore 2 ,contw 
+425e 6fe142ae fetch 2 ,mem_le_timeout 
+425f e7e10005 istore 2 ,contw 
+4260 6fe28193 fetch 5 ,mem_le_channel_map 
+4261 e7e28005 istore 5 ,contw 
+4262 6fe0817c fetch 1 ,mem_le_hop 
+4263 d84000a0 arg param_le_sca ,temp 
+4264 9841fe00 ior temp ,pdata 
+4265 e7e08005 istore 1 ,contw 
+4266 20403e82 call le_transmit_norx 
+4267 5800412b setarg mem_le_txheader 
+4268 1fe08c12 add pdata ,18 ,contr 
+4269 efe18006 ifetch 3 ,contr 
+426a 67e1818b store 3 ,mem_le_crcinit 
+426b 20600000 rtn 
+
+le_adv:
+426c 70000724 jam 36 ,mem_le_ch_mapped 
+426d 7004f600 jam 0 ,mem_le_adv_channel_map_temp 
+426e 20404290 call le_send_adv_protect_txbuf 
+426f 20404271 call le_adv_loop 
+4270 20204293 branch le_send_adv_recover_txbuf 
+
+le_adv_loop:
+4271 470b4022 bpatchx patch22_6 ,mem_patch22 
+4272 6fe0c35f fetch 1 ,mem_le_adv_enable 
+4273 207a0000 rtn blank 
+4274 d8e00000 arg le_adv_interval_timer ,queue 
+4275 2040742e call timer_check 
+4276 247a0000 nrtn blank 
+4277 78287c00 enable swfine 
+4278 20404296 call le_init_adv 
+4279 20404308 call le_next_adv_channel 
+427a 2040429f call le_send_adv_ind 
+427b 2436c283 nbranch le_adv_not_match ,match 
+427c 6fe08003 fetch 1 ,mem_le_req_rcv 
+427d 1fe0fe01 increase 1 ,pdata 
+427e 67e08003 store 1 ,mem_le_req_rcv 
+427f 6fe08047 fetch 1 ,mem_le_rxbuf_adv_header 
+4280 1fe17e0f and pdata ,0x0f ,pdata 
+4281 c001c2ce beq scan_req ,le_send_scan_response 
+4282 c002c2e0 beq connect_req ,le_parse_connect_req 
+
+le_adv_not_match:
+4283 470bc022 bpatchx patch22_7 ,mem_patch22 
+4284 6fe084f6 fetch 1 ,mem_le_adv_channel_map_temp 
+4285 6848c36a fetcht 1 ,mem_le_adv_channel_map 
+4286 98467c00 isub temp ,null 
+4287 2422c271 nbranch le_adv_loop ,zero 
+4288 180a7e00 random pdata 
+4289 d84001ff arg 0x1ff ,temp 
+428a 98417e00 iand temp ,pdata 
+428b 1fe0fefa add pdata ,250 ,pdata 
+428c 204073d4 call delay 
+428d d8e00000 arg le_adv_interval_timer ,queue 
+428e 6fe14360 fetch 2 ,mem_le_adv_interval 
+428f 20207420 branch timer_init 
+
+le_send_adv_protect_txbuf:
+4290 d8a00506 arg mem_le_tx_buf_temp ,contw 
+4291 d8c0412b arg mem_le_txheader ,contr 
+4292 202073cf branch memcpy48 
+
+le_send_adv_recover_txbuf:
+4293 d8c00506 arg mem_le_tx_buf_temp ,contr 
+4294 d8a0412b arg mem_le_txheader ,contw 
+4295 202073cf branch memcpy48 
+
+le_init_adv:
+4296 470c4023 bpatchx patch23_0 ,mem_patch23 
+4297 7854fc00 disable master 
+
+le_adv_access:
+4298 588e89be setarg 0x8e89be 
+4299 1fed7e00 lshift8 pdata ,pdata 
+429a 1fe1fed6 or_into 0xd6 ,pdata 
+429b 98001200 iforce access 
+429c 58555555 setarg 0x555555 
+429d 67e1818b store 3 ,mem_le_crcinit 
+429e 20600000 rtn 
+
+le_send_adv_ind:
+429f 470cc023 bpatchx patch23_1 ,mem_patch23 
+42a0 6fe0c362 fetch 1 ,mem_le_adv_type 
+42a1 6848c363 fetcht 1 ,mem_le_adv_own_addr_type 
+42a2 18520400 lshift4 temp ,temp 
+42a3 184b8400 lshift2 temp ,temp 
+42a4 98408400 iadd temp ,temp 
+42a5 6048c12b storet 1 ,mem_le_txheader 
+42a6 c000c2b0 beq adv_direct_ind ,le_send_adv_direct_ind 
+42a7 6848c31f fetcht 1 ,mem_le_adv_data_len 
+42a8 1840fe06 add temp ,6 ,pdata 
+42a9 67e0c12c store 1 ,mem_le_txlen 
+42aa 6fe342b0 fetch 6 ,mem_le_lap 
+42ab 67e3412d store 6 ,mem_le_txpayload 
+42ac 18427200 copy temp ,loopcnt 
+42ad d8c04320 arg mem_le_adv_data ,contr 
+42ae 2040740c call memcpy_fast 
+42af 202042b6 branch le_send_adv_transmit 
+
+le_send_adv_direct_ind:
+42b0 5800000c setarg 12 
+42b1 67e0c12c store 1 ,mem_le_txlen 
+42b2 6fe342b0 fetch 6 ,mem_le_lap 
+42b3 67e3412d store 6 ,mem_le_txpayload 
+42b4 6fe3410f fetch 6 ,mem_hci_plap 
+42b5 e7e30005 istore 6 ,contw 
+
+le_send_adv_transmit:
+42b6 470d4023 bpatchx patch23_2 ,mem_patch23 
+42b7 6fe08000 fetch 1 ,mem_le_adv_transmit 
+42b8 1fe0fe01 increase 1 ,pdata 
+42b9 67e08000 store 1 ,mem_le_adv_transmit 
+42ba db600708 arg 1800 ,stop_watch 
+42bb 7856fc00 disable match 
+42bc 20203e6d branch le_transmit_receive_sifs_without_change_mode 
+
+le_send_scan_request:
+42bd 470dc023 bpatchx patch23_3 ,mem_patch23 
+42be 6fe0c36b fetch 1 ,mem_le_scan_type 
+42bf c1808000 rtnne le_scan_type_active 
+42c0 6fe08000 fetch 1 ,mem_le_adv_transmit 
+42c1 1fe0fe01 increase 1 ,pdata 
+42c2 67e08000 store 1 ,mem_le_adv_transmit 
+42c3 d8400c03 arg 0x0c03 ,temp 
+42c4 6fe0c36c fetch 1 ,mem_le_scan_own_addr_type 
+42c5 7d3a0406 nsetflag blank ,le_sender_addr_bit ,temp 
+42c6 1a227e00 copy rega ,pdata 
+42c7 7d3a0407 nsetflag blank ,le_receiver_addr_bit ,temp 
+42c8 6049412b storet 2 ,mem_le_txheader 
+42c9 6fe342b0 fetch 6 ,mem_le_lap 
+42ca e7e30005 istore 6 ,contw 
+42cb 6fe30173 fetch 6 ,mem_le_plap 
+42cc e7e30005 istore 6 ,contw 
+42cd 20203e6d branch le_transmit_receive_sifs_without_change_mode 
+
+le_send_scan_response:
+42ce 6fe3004f fetch 6 ,mem_le_rxbuf_adv_scan_req_adv_address 
+42cf 684b42b0 fetcht 6 ,mem_le_lap 
+42d0 98467c00 isub temp ,null 
+42d1 24628000 nrtn zero 
+42d2 d8400004 arg scan_rsp ,temp 
+42d3 6fe0c363 fetch 1 ,mem_le_adv_own_addr_type 
+42d4 7d3a0406 nsetflag blank ,le_sender_addr_bit ,temp 
+42d5 6048c12b storet 1 ,mem_le_txheader 
+42d6 6848c33f fetcht 1 ,mem_le_scan_data_len 
+42d7 1840fe06 add temp ,6 ,pdata 
+42d8 67e0c12c store 1 ,mem_le_txlen 
+42d9 6fe342b0 fetch 6 ,mem_le_lap 
+42da 67e3412d store 6 ,mem_le_txpayload 
+42db d8c04340 arg mem_le_scan_data ,contr 
+42dc 18427200 copy temp ,loopcnt 
+42dd 2040740c call memcpy_fast 
+42de 20403e82 call le_transmit_norx 
+42df 20204283 branch le_adv_not_match 
+
+le_parse_connect_req:
+42e0 6fe3004f fetch 6 ,mem_le_rxbuf_adv_connect_ind_adv_address 
+42e1 684b42b0 fetcht 6 ,mem_le_lap 
+42e2 98467c00 isub temp ,null 
+42e3 24628000 nrtn zero 
+42e4 20403fad call le_scan_check_sender_addr_type 
+42e5 6220c2a0 storer rega ,1 ,mem_le_conn_peer_addr_type 
+42e6 6fe30049 fetch 6 ,mem_le_rxbuf_adv_connect_ind_init_address 
+42e7 67e30173 store 6 ,mem_le_plap 
+42e8 6fe40055 fetch 8 ,mem_le_rxbuf_adv_connect_ind_access_address 
+42e9 67e40187 store 8 ,mem_le_access 
+42ea 6849005d fetcht 2 ,mem_le_rxbuf_adv_connect_ind_win_offset 
+42eb 470e4023 bpatchx patch23_4 ,mem_patch23 
+42ec 184b8400 lshift2 temp ,temp 
+42ed 6fe1005f fetch 2 ,mem_le_rxbuf_adv_connect_ind_interval 
+42ee 1febfe00 lshift2 pdata ,pdata 
+42ef 67e10165 store 2 ,mem_le_tsniff 
+42f0 67e20167 store 4 ,mem_le_anchor 
+42f1 98467e00 isub temp ,pdata 
+42f2 1fe0d1fe add pdata ,-2 ,clke_bt 
+42f3 6fe48061 fetch 9 ,mem_le_rxbuf_adv_connect_ind_latency 
+42f4 67e4818f store 9 ,mem_le_slave_latency 
+42f5 6fe0806a fetch 1 ,mem_le_rxbuf_adv_connect_ind_hop_and_sca 
+42f6 1fe1041f and pdata ,0x1f ,temp 
+42f7 6048817c storet 1 ,mem_le_hop 
+42f8 1ff18400 rshift4 pdata ,temp 
+42f9 18430400 rshift temp ,temp 
+42fa 604881b3 storet 1 ,mem_le_peer_sca 
+42fb da200163 arg mem_le_state ,rega 
+42fc 20404081 call le_receive_window_size 
+42fd da200163 arg mem_le_state ,rega 
+42fe 20403d68 call le_calc_channel_map 
+42ff 20403c65 call le_init_slave 
+4300 20403853 call context_new 
+4301 24628000 nrtn zero 
+4302 470ec023 bpatchx patch23_5 ,mem_patch23 
+4303 204038f3 call calc_clke_offset 
+4304 204045d4 call le_l2cap_reset_signaling_identifier 
+4305 7004c314 jam bt_evt_le_connected ,mem_fifo_temp 
+4306 20406f7b call ui_ipc_send_event 
+4307 2020383e branch context_save 
+
+le_next_adv_channel:
+4308 470f4023 bpatchx patch23_6 ,mem_patch23 
+4309 6fe08007 fetch 1 ,mem_le_ch_mapped 
+430a c012c30e beq 37 ,le_next_adv_channel_curr_channel_37 
+430b c0134314 beq 38 ,le_next_adv_channel_curr_channel_38 
+430c c013c31a beq 39 ,le_next_adv_channel_curr_channel_39 
+430d 2020431a branch le_next_adv_channel_curr_channel_39 
+
+le_next_adv_channel_curr_channel_37:
+430e 6848c36a fetcht 1 ,mem_le_adv_channel_map 
+430f 284ffe01 isolate1 bit_adv_channel_map_38 ,temp 
+4310 2020c325 branch set_le_next_adv_channel_38 ,true 
+4311 284ffe02 isolate1 bit_adv_channel_map_39 ,temp 
+4312 2020c32a branch set_le_next_adv_channel_39 ,true 
+4313 20204320 branch set_le_next_adv_channel_37 
+
+le_next_adv_channel_curr_channel_38:
+4314 6848c36a fetcht 1 ,mem_le_adv_channel_map 
+4315 284ffe02 isolate1 bit_adv_channel_map_39 ,temp 
+4316 2020c32a branch set_le_next_adv_channel_39 ,true 
+4317 284ffe00 isolate1 bit_adv_channel_map_37 ,temp 
+4318 2020c320 branch set_le_next_adv_channel_37 ,true 
+4319 20204325 branch set_le_next_adv_channel_38 
+
+le_next_adv_channel_curr_channel_39:
+431a 6848c36a fetcht 1 ,mem_le_adv_channel_map 
+431b 284ffe00 isolate1 bit_adv_channel_map_37 ,temp 
+431c 2020c320 branch set_le_next_adv_channel_37 ,true 
+431d 284ffe01 isolate1 bit_adv_channel_map_38 ,temp 
+431e 2020c325 branch set_le_next_adv_channel_38 ,true 
+431f 2020432a branch set_le_next_adv_channel_39 
+
+set_le_next_adv_channel_37:
+4320 70000725 jam 37 ,mem_le_ch_mapped 
+4321 6fe084f6 fetch 1 ,mem_le_adv_channel_map_temp 
+4322 79207e00 set1 bit_adv_channel_map_37 ,pdata 
+4323 67e084f6 store 1 ,mem_le_adv_channel_map_temp 
+4324 20600000 rtn 
+
+set_le_next_adv_channel_38:
+4325 70000726 jam 38 ,mem_le_ch_mapped 
+4326 6fe084f6 fetch 1 ,mem_le_adv_channel_map_temp 
+4327 79207e01 set1 bit_adv_channel_map_38 ,pdata 
+4328 67e084f6 store 1 ,mem_le_adv_channel_map_temp 
+4329 20600000 rtn 
+
+set_le_next_adv_channel_39:
+432a 70000727 jam 39 ,mem_le_ch_mapped 
+432b 6fe084f6 fetch 1 ,mem_le_adv_channel_map_temp 
+432c 79207e02 set1 bit_adv_channel_map_39 ,pdata 
+432d 67e084f6 store 1 ,mem_le_adv_channel_map_temp 
+432e 20600000 rtn 
+
+le_parse_att:
+432f efe18006 ifetch 3 ,contr 
+4330 67e1c36e store 3 ,mem_le_att_opcode 
+
+le_parse_att2:
+4331 c0014346 beq attop_exchange_mtu_request ,le_parse_att_exchange_mtu_request 
+4332 c001c34e beq attop_exchange_mtu_response ,le_parse_att_exchange_mtu_response 
+4333 c0024351 beq attop_find_information_request ,le_parse_att_find_information_request 
+4334 c003437a beq attop_find_by_type_value_request ,le_parse_att_find_by_type_value_request 
+4335 c00443c7 beq attop_read_by_type_request ,le_parse_att_read_by_type_request 
+4336 c0054445 beq attop_read_request ,le_parse_att_read_request 
+4337 c0064474 beq attop_read_blob_request ,le_parse_att_read_blob_request 
+4338 c008448a beq attop_read_by_group_type_request ,le_parse_att_read_by_group_type_request 
+4339 c00944cd beq attop_write_request ,le_parse_att_write_request 
+433a c00b44f3 beq attop_prepare_write_request ,le_parse_att_prepare_write_request 
+433b c00c4506 beq attop_execute_write_request ,le_parse_att_execute_write_request 
+433c c00f450b beq attop_handle_value_confirmation ,le_parse_handle_value_confirmation 
+433d c029450f beq attop_write_command ,le_parse_att_write_command 
+433e 20600000 rtn 
+
+le_send_att_exchange_mtu_requset:
+433f 18002203 force 3 ,rega 
+4340 20404535 call le_fifo_malloc_tx_l2cap_gatt 
+4341 58000002 setarg attop_exchange_mtu_request 
+4342 e7e08005 istore 1 ,contw 
+4343 6fe142b6 fetch 2 ,mem_le_local_mtu 
+4344 e7e10005 istore 2 ,contw 
+4345 20600000 rtn 
+
+le_parse_att_exchange_mtu_request:
+4346 2040434e call le_parse_att_exchange_mtu_response 
+
+le_send_att_exchange_mtu_response:
+4347 18002203 force 3 ,rega 
+4348 20404535 call le_fifo_malloc_tx_l2cap_gatt 
+4349 58000003 setarg attop_exchange_mtu_response 
+434a e7e08005 istore 1 ,contw 
+434b 6fe142b6 fetch 2 ,mem_le_local_mtu 
+434c e7e10005 istore 2 ,contw 
+434d 20600000 rtn 
+
+le_parse_att_exchange_mtu_response:
+434e 1fecfe00 rshift8 pdata ,pdata 
+434f 67e142b8 store 2 ,mem_le_remote_mtu 
+4350 20600000 rtn 
+
+le_parse_att_find_information_request:
+4351 20404569 call le_get_search_handle_start_end_common 
+4352 204074c8 call enable_user 
+4353 20204354 branch le_send_att_find_information_response 
+
+le_send_att_find_information_response:
+4354 d9600003 arg 3 ,timeup 
+4355 2040409b call le_init_attlist_search 
+
+le_send_att_find_information_res_loop:
+4356 204040a3 call le_att_handle_inrange 
+4357 203a4378 branch le_send_att_find_information_res_end ,blank 
+4358 24214375 nbranch le_send_att_find_information_res_next ,positive 
+4359 18c08dfe increase -2 ,contr 
+435a 204073c0 call store_contr 
+435b 204073b7 call get_contw 
+435c 24344368 nbranch le_send_att_find_information_res_store_info ,user 
+435d 204073a4 call push_stack_rega_b_c 
+435e 204074ca call disable_user 
+435f 616204d4 storer timeup ,4 ,mem_timeup 
+4360 18002214 force 20 ,rega 
+4361 20404535 call le_fifo_malloc_tx_l2cap_gatt 
+4362 696204d4 fetchr timeup ,4 ,mem_timeup 
+4363 204073b3 call pop_stack_rega_b_c 
+4364 58000005 setarg attop_find_information_response 
+4365 e7e08005 istore 1 ,contw 
+4366 58000001 setarg uuid_size_16bit 
+4367 e7e08005 istore 1 ,contw 
+
+le_send_att_find_information_res_store_info:
+4368 204073ba call get_contr 
+4369 efe10006 ifetch 2 ,contr 
+436a 1fe17eff and_into 0xff ,pdata 
+436b e7e10005 istore 2 ,contw 
+436c efe08006 ifetch 1 ,contr 
+436d 1fe27200 copy pdata ,loopcnt 
+436e 20407419 call memcpy 
+436f 204073bd call store_contw 
+4370 196097ff increase -1 ,timeup 
+4371 2022c378 branch le_send_att_find_information_res_end ,zero 
+
+le_send_att_find_information_res_cont:
+4372 efe08006 ifetch 1 ,contr 
+4373 98c08c00 iadd contr ,contr 
+4374 20204356 branch le_send_att_find_information_res_loop 
+
+le_send_att_find_information_res_next:
+4375 efe08006 ifetch 1 ,contr 
+4376 98c08c00 iadd contr ,contr 
+4377 20204372 branch le_send_att_find_information_res_cont 
+
+le_send_att_find_information_res_end:
+4378 20344528 branch le_send_att_error_response_notfound ,user 
+4379 2020455c branch le_send_auto_len_by_mem 
+
+le_parse_att_find_by_type_value_request:
+437a 20404569 call le_get_search_handle_start_end_common 
+437b efe10006 ifetch 2 ,contr 
+437c 67e14290 store 2 ,mem_le_search_uuid 
+437d 204073c0 call store_contr 
+437e d8a0050a arg mem_le_search_att_type_length ,contw 
+437f 6fe1430a fetch 2 ,mem_le_l2cap_size 
+4380 1fe0fff9 increase -7 ,pdata 
+4381 2040457c call le_get_search_common2 
+4382 2020438d branch le_send_att_find_by_type_value_response 
+
+le_start_end_handle_check_1:
+4383 78547c00 disable user 
+4384 68490506 fetcht 2 ,mem_le_search_handle_start 
+4385 6fe10508 fetch 2 ,mem_le_search_handle_end 
+4386 98467c00 isub temp ,null 
+4387 2421438a nbranch le_start_end_handle_check_1_fail ,positive 
+4388 18427e00 deposit temp 
+4389 c1800000 rtnne 0 
+
+le_start_end_handle_check_1_fail:
+438a 78347c00 enable user 
+438b 7001b401 jam att_err_invalid_handle ,mem_le_err_code 
+438c 2020452a branch le_send_att_error_response 
+
+le_send_att_find_by_type_value_response:
+438d 20404383 call le_start_end_handle_check_1 
+438e 20740000 rtn user 
+438f 68494290 fetcht 2 ,mem_le_search_uuid 
+4390 58002800 setarg uuid_gatt_primary_service 
+4391 98467c00 isub temp ,null 
+4392 2022c394 branch le_send_att_find_by_type_value_res_primary ,zero 
+4393 20204528 branch le_send_att_error_response_notfound 
+
+le_send_att_find_by_type_value_res_primary:
+4394 70437100 jam le_find_by_type_val_res_not_found ,mem_le_search_res 
+4395 68490506 fetcht 2 ,mem_le_search_handle_start 
+4396 604904cc storet 2 ,mem_temp 
+4397 204040df call le_att_get_handle_info 
+4398 243a4528 nbranch le_send_att_error_response_notfound ,blank 
+
+le_send_att_find_primary_search_loop:
+4399 684904cc fetcht 2 ,mem_temp 
+439a 204040df call le_att_get_handle_info 
+439b 243a43ad nbranch le_send_att_error_response_notfound2 ,blank 
+439c 18c22200 copy contr ,rega 
+439d 6fe0851b fetch 1 ,mem_le_curr_att_len 
+439e 1fe27200 copy pdata ,loopcnt 
+439f 6848850a fetcht 1 ,mem_le_search_att_type_length 
+43a0 98467c00 isub temp ,null 
+43a1 2422c3a9 nbranch le_send_att_find_primary_search_loop1 ,zero 
+43a2 da40050b arg mem_le_search_att_type ,regb 
+43a3 20407477 call string_compare 
+43a4 2022c3b0 branch le_send_att_find_primary_search_end_start_handle_found ,zero 
+43a5 6fe10523 fetch 2 ,mem_le_cur_uuid 
+43a6 68494290 fetcht 2 ,mem_le_search_uuid 
+43a7 98467c00 isub temp ,null 
+43a8 2022c3b8 branch le_send_att_find_primary_search_end_ending_handle_found ,zero 
+
+le_send_att_find_primary_search_loop1:
+43a9 6fe104cc fetch 2 ,mem_temp 
+43aa 1fe0fe01 increase 1 ,pdata 
+43ab 67e104cc store 2 ,mem_temp 
+43ac 20204399 branch le_send_att_find_primary_search_loop 
+
+le_send_att_error_response_notfound2:
+43ad 6fe0c371 fetch 1 ,mem_le_search_res 
+43ae c000c3b8 beq le_find_by_type_val_res_found_starting_handle ,le_send_att_find_primary_search_end_ending_handle_found 
+43af 20204528 branch le_send_att_error_response_notfound 
+
+le_send_att_find_primary_search_end_start_handle_found:
+43b0 6fe10523 fetch 2 ,mem_le_cur_uuid 
+43b1 68494290 fetcht 2 ,mem_le_search_uuid 
+43b2 98467c00 isub temp ,null 
+43b3 2422c3a9 nbranch le_send_att_find_primary_search_loop1 ,zero 
+43b4 70437101 jam le_find_by_type_val_res_found_starting_handle ,mem_le_search_res 
+43b5 684904cc fetcht 2 ,mem_temp 
+43b6 6049051e storet 2 ,mem_le_cur_handle_start 
+43b7 202043a9 branch le_send_att_find_primary_search_loop1 
+
+le_send_att_find_primary_search_end_ending_handle_found:
+43b8 6fe0c371 fetch 1 ,mem_le_search_res 
+43b9 c00043a9 beq le_find_by_type_val_res_not_found ,le_send_att_find_primary_search_loop1 
+43ba 70437102 jam le_find_by_type_val_res_found_ending_handle ,mem_le_search_res 
+43bb 684904cc fetcht 2 ,mem_temp 
+43bc 184085ff increase -1 ,temp 
+43bd 60490520 storet 2 ,mem_le_cur_handle_end 
+
+le_send_att_find_primary_search_end:
+43be da200005 arg 5 ,rega 
+43bf 20404535 call le_fifo_malloc_tx_l2cap_gatt 
+43c0 58000007 setarg attop_find_by_type_value_response 
+43c1 e7e08005 istore 1 ,contw 
+43c2 6fe1051e fetch 2 ,mem_le_cur_handle_start 
+43c3 e7e10005 istore 2 ,contw 
+43c4 6fe10520 fetch 2 ,mem_le_cur_handle_end 
+43c5 e7e10005 istore 2 ,contw 
+43c6 20600000 rtn 
+
+le_parse_att_read_by_type_request:
+43c7 20404569 call le_get_search_handle_start_end_common 
+43c8 20404577 call le_get_search_att_type 
+43c9 202043ca branch le_send_att_read_by_type_response 
+
+le_send_att_read_by_type_response:
+43ca 68490506 fetcht 2 ,mem_le_search_handle_start 
+43cb 604904cc storet 2 ,mem_temp 
+43cc 2040409b call le_init_attlist_search 
+43cd 204040b2 call le_att_get_handle_ptr2 
+43ce 18c08dfe increase -2 ,contr 
+43cf 18c27e00 copy contr ,pdata 
+43d0 67e1051c store 2 ,mem_le_cur_attlist_start_ptr 
+43d1 6849050b fetcht 2 ,mem_le_search_att_type 
+43d2 58002a00 setarg uuid_chrctr_device_name 
+43d3 98467c00 isub temp ,null 
+43d4 2022c431 branch le_send_att_read_by_type_res_device_name ,zero 
+43d5 58002803 setarg uuid_gatt_characteristic 
+43d6 98467c00 isub temp ,null 
+43d7 2422c41d nbranch le_send_att_read_by_type_res_not_characteristic ,zero 
+43d8 d9600002 arg 2 ,timeup 
+
+le_send_att_read_by_type_response_loop:
+43d9 2040453c call le_att_check_handle_end 
+43da 242143fa nbranch le_send_att_read_by_type_response_end ,positive 
+43db 684904cc fetcht 2 ,mem_temp 
+43dc 204040dd call le_att_get_handle_info_from_ptr 
+43dd 243a43fa nbranch le_send_att_read_by_type_response_end ,blank 
+43de 20404540 call le_att_same_type 
+43df 2422c3f8 nbranch le_send_att_read_by_type_response_next_handle ,zero 
+43e0 243443fc nbranch le_send_att_read_by_type_res_found_next ,user 
+43e1 78547c00 disable user 
+43e2 da200014 arg 20 ,rega 
+43e3 20404535 call le_fifo_malloc_tx_l2cap_gatt 
+43e4 58000009 setarg attop_read_by_type_response 
+43e5 e7e08005 istore 1 ,contw 
+43e6 18a26000 copy contw ,alarm 
+43e7 18a08a01 increase 1 ,contw 
+43e8 2040440a call le_send_att_read_by_type_write_properties 
+43e9 20404538 call le_att_next_handle 
+43ea 204040dd call le_att_get_handle_info_from_ptr 
+43eb 20404411 call le_send_att_read_by_type_write_uuid 
+43ec 6fe08522 fetch 1 ,mem_le_cur_uuid_length 
+43ed 1fe0a205 add pdata ,5 ,rega 
+43ee e2208030 istorer rega ,1 ,alarm 
+43ef 1a267c07 sub rega ,7 ,null 
+43f0 2442f4cc ncall enable_user2 ,zero 
+43f1 2042f4ce call disable_user2 ,zero 
+43f2 2040456e call le_get_search_max_mtu_data 
+43f3 9a26fc00 idiv rega 
+43f4 20407475 call wait_div_end 
+43f5 18079600 quotient timeup 
+43f6 196097ff increase -1 ,timeup 
+43f7 2022c3fa branch le_send_att_read_by_type_response_end ,zero 
+
+le_send_att_read_by_type_response_next_handle:
+43f8 20404538 call le_att_next_handle 
+43f9 202043d9 branch le_send_att_read_by_type_response_loop 
+
+le_send_att_read_by_type_response_end:
+43fa 20344528 branch le_send_att_error_response_notfound ,user 
+43fb 2020455c branch le_send_auto_len_by_mem 
+
+le_send_att_read_by_type_res_found_next:
+43fc 2040454c call le_store_att_record 
+43fd 20404538 call le_att_next_handle 
+43fe 204040dd call le_att_get_handle_info_from_ptr 
+43ff 204044bb call le_send_att_read_by_type_res_check_pair_length_type 
+4400 243a43fa nbranch le_send_att_read_by_type_response_end ,blank 
+4401 204073b7 call get_contw 
+4402 6fe104cc fetch 2 ,mem_temp 
+4403 1fe0ffff increase -1 ,pdata 
+4404 e7e10005 istore 2 ,contw 
+4405 20404558 call le_write_att_record_common 
+4406 20404411 call le_send_att_read_by_type_write_uuid 
+4407 196097ff increase -1 ,timeup 
+4408 2022c3fa branch le_send_att_read_by_type_response_end ,zero 
+4409 202043f8 branch le_send_att_read_by_type_response_next_handle 
+
+le_send_att_read_by_type_write_properties:
+440a 6fe104cc fetch 2 ,mem_temp 
+440b e7e10005 istore 2 ,contw 
+440c 6fe0851b fetch 1 ,mem_le_curr_att_len 
+440d 1fe27200 copy pdata ,loopcnt 
+440e 204073ba call get_contr 
+440f 2040740c call memcpy_fast 
+4410 202073bd branch store_contw 
+
+le_send_att_read_by_type_write_uuid:
+4411 204073b7 call get_contw 
+4412 6fe104cc fetch 2 ,mem_temp 
+4413 e7e10005 istore 2 ,contw 
+4414 204073bd call store_contw 
+4415 6fe08522 fetch 1 ,mem_le_cur_uuid_length 
+4416 1fe27200 copy pdata ,loopcnt 
+4417 204073b7 call get_contw 
+4418 204073ba call get_contr 
+4419 9f260c00 isub loopcnt ,contr 
+441a 18c08dff increase -1 ,contr 
+441b 2040740c call memcpy_fast 
+441c 202073bd branch store_contw 
+
+le_send_att_read_by_type_res_not_characteristic:
+441d 204040c2 call le_att_get_short_uuid_ptr 
+441e 203a4528 branch le_send_att_error_response_notfound ,blank 
+441f 18c22600 copy contr ,regc 
+4420 18c08dfb increase -5 ,contr 
+4421 efe10006 ifetch 2 ,contr 
+4422 67e104cc store 2 ,mem_temp 
+4423 da200014 arg 20 ,rega 
+4424 20404535 call le_fifo_malloc_tx_l2cap_gatt 
+4425 58000009 setarg attop_read_by_type_response 
+4426 e7e08005 istore 1 ,contw 
+4427 efe08013 ifetch 1 ,regc 
+4428 1fe27200 copy pdata ,loopcnt 
+4429 1fe0fe02 increase 2 ,pdata 
+442a e7e08005 istore 1 ,contw 
+442b 6fe104cc fetch 2 ,mem_temp 
+442c e7e10005 istore 2 ,contw 
+442d 1a608c01 add regc ,1 ,contr 
+442e 2040740c call memcpy_fast 
+442f 204073bd call store_contw 
+4430 2020455c branch le_send_auto_len_by_mem 
+
+le_send_att_read_by_type_res_device_name:
+4431 d8402a00 arg uuid_chrctr_device_name ,temp 
+4432 204040c2 call le_att_get_short_uuid_ptr 
+4433 207a0000 rtn blank 
+4434 18c08dfb increase -5 ,contr 
+4435 efe10006 ifetch 2 ,contr 
+4436 67e104cc store 2 ,mem_temp 
+4437 da200014 arg 20 ,rega 
+4438 20404535 call le_fifo_malloc_tx_l2cap_gatt 
+4439 58000009 setarg attop_read_by_type_response 
+443a e7e08005 istore 1 ,contw 
+443b 6fe0c22d fetch 1 ,mem_le_name_len 
+443c 1fe27200 copy pdata ,loopcnt 
+443d 1fe0fe02 increase 2 ,pdata 
+443e e7e08005 istore 1 ,contw 
+443f 6fe104cc fetch 2 ,mem_temp 
+4440 e7e10005 istore 2 ,contw 
+4441 d8c0422e arg mem_le_name ,contr 
+4442 2040740c call memcpy_fast 
+4443 204073bd call store_contw 
+4444 2020455c branch le_send_auto_len_by_mem 
+
+le_parse_att_read_request:
+4445 204044ec call le_check_encrypt_state 
+4446 6849436f fetcht 2 ,mem_le_att_handle 
+4447 6fe0c2f6 fetch 1 ,mem_le_configuration 
+4448 c281c46a bbit1 bit_ble_read_auth ,le_send_att_read_response_check_auth 
+
+le_send_att_read_response:
+4449 204040b2 call le_att_get_handle_ptr2 
+444a 2422c528 nbranch le_send_att_error_response_notfound ,zero 
+444b 20544470 call le_send_att_read_response_check_handle ,user 
+444c 20740000 rtn user 
+444d 204040bf call le_att_get_handle_ptr_found 
+444e 18c08dfe increase -2 ,contr 
+444f efe10006 ifetch 2 ,contr 
+4450 d8402a00 arg uuid_chrctr_device_name ,temp 
+4451 98467c00 isub temp ,null 
+4452 2022c460 branch le_send_device_name ,zero 
+4453 efe08006 ifetch 1 ,contr 
+4454 1fe67c16 sub pdata ,22 ,null 
+4455 20214457 branch le_send_att_read_response_less ,positive 
+4456 18007e16 force 22 ,pdata 
+
+le_send_att_read_response_less:
+4457 1fe22600 copy pdata ,regc 
+4458 204073c0 call store_contr 
+4459 1a60a201 add regc ,1 ,rega 
+445a 20404535 call le_fifo_malloc_tx_l2cap_gatt 
+445b 5800000b setarg attop_read_response 
+445c e7e08005 istore 1 ,contw 
+445d 1a627200 copy regc ,loopcnt 
+445e 204073ba call get_contr 
+445f 20207419 branch memcpy 
+
+le_send_device_name:
+4460 204073c0 call store_contr 
+4461 6fe0c22d fetch 1 ,mem_le_name_len 
+4462 1fe0a201 add pdata ,1 ,rega 
+4463 20404535 call le_fifo_malloc_tx_l2cap_gatt 
+4464 5800000b setarg attop_read_response 
+4465 e7e08005 istore 1 ,contw 
+4466 6fe0c22d fetch 1 ,mem_le_name_len 
+4467 1fe27200 copy pdata ,loopcnt 
+4468 d8c0422e arg mem_le_name ,contr 
+4469 20207419 branch memcpy 
+
+le_send_att_read_response_check_auth:
+446a 6fe14307 fetch 2 ,mem_le_pairing_handle 
+446b 98467c00 isub temp ,null 
+446c 2422c449 nbranch le_send_att_read_response ,zero 
+446d 24344449 nbranch le_send_att_read_response ,user 
+
+le_send_att_read_response_error_insufficient_auth:
+446e 7001b405 jam att_err_insufficient_authentication ,mem_le_err_code 
+446f 2020452a branch le_send_att_error_response 
+
+le_send_att_read_response_check_handle:
+4470 18c08dfe increase -2 ,contr 
+4471 efe10006 ifetch 2 ,contr 
+4472 c287446e bbit1 bit_of_att_handle_read_authenticated ,le_send_att_read_response_error_insufficient_auth 
+4473 202074ca branch disable_user 
+
+le_parse_att_read_blob_request:
+4474 efe10006 ifetch 2 ,contr 
+4475 67e1050a store 2 ,mem_le_att_offset 
+
+le_send_att_read_blob_response:
+4476 da200014 arg 20 ,rega 
+4477 20404535 call le_fifo_malloc_tx_l2cap_gatt 
+4478 5800000d setarg attop_read_blob_response 
+4479 e7e08005 istore 1 ,contw 
+447a 6fe1050a fetch 2 ,mem_le_att_offset 
+447b 98002200 iforce rega 
+447c 6849436f fetcht 2 ,mem_le_att_handle 
+447d 204040af call le_att_get_handle_ptr 
+447e 203a4528 branch le_send_att_error_response_notfound ,blank 
+447f efe08006 ifetch 1 ,contr 
+4480 9a267200 isub rega ,loopcnt 
+4481 24214528 nbranch le_send_att_error_response_notfound ,positive 
+4482 1f267c16 sub loopcnt ,22 ,null 
+4483 20214485 branch le_send_att_read_blob_response_less ,positive 
+4484 18007216 force 22 ,loopcnt 
+
+le_send_att_read_blob_response_less:
+4485 1a227e00 deposit rega 
+4486 98c08c00 iadd contr ,contr 
+4487 2040740c call memcpy_fast 
+4488 204073bd call store_contw 
+4489 2020455c branch le_send_auto_len_by_mem 
+
+le_parse_att_read_by_group_type_request:
+448a 20404569 call le_get_search_handle_start_end_common 
+448b 20404577 call le_get_search_att_type 
+448c 2020448d branch le_send_att_read_by_group_type_response 
+
+le_send_att_read_by_group_type_response:
+448d d9600002 arg 2 ,timeup 
+448e 68490506 fetcht 2 ,mem_le_search_handle_start 
+448f 604904cc storet 2 ,mem_temp 
+4490 204040b2 call le_att_get_handle_ptr2 
+4491 18c08dfe increase -2 ,contr 
+4492 18c27e00 copy contr ,pdata 
+4493 67e1051c store 2 ,mem_le_cur_attlist_start_ptr 
+
+le_send_att_read_by_group_type_response_loop:
+4494 2040453c call le_att_check_handle_end 
+4495 242144c3 nbranch le_send_att_read_by_group_type_end0 ,positive 
+4496 684904cc fetcht 2 ,mem_temp 
+4497 204040dd call le_att_get_handle_info_from_ptr 
+4498 243a44c6 nbranch le_send_att_read_by_group_type_end1 ,blank 
+4499 20404540 call le_att_same_type 
+449a 2422c4b9 nbranch le_send_att_read_by_group_type_next_handle ,zero 
+449b 19627e00 copy timeup ,pdata 
+449c c00044c6 beq 0 ,le_send_att_read_by_group_type_end1 
+449d 243444af nbranch le_send_att_read_by_group_type_store_write_record ,user 
+449e 78547c00 disable user 
+449f da200014 arg 20 ,rega 
+44a0 20404535 call le_fifo_malloc_tx_l2cap_gatt 
+44a1 58000011 setarg attop_read_by_group_type_response 
+44a2 e7e08005 istore 1 ,contw 
+44a3 6fe0851b fetch 1 ,mem_le_curr_att_len 
+44a4 1fe0a204 add pdata ,4 ,rega 
+44a5 e2208005 istorer rega ,1 ,contw 
+44a6 204073bd call store_contw 
+44a7 1a267c06 sub rega ,6 ,null 
+44a8 2442f4cc ncall enable_user2 ,zero 
+44a9 2042f4ce call disable_user2 ,zero 
+44aa 2040456e call le_get_search_max_mtu_data 
+44ab 9a26fc00 idiv rega 
+44ac 20407475 call wait_div_end 
+44ad 18079600 quotient timeup 
+44ae 202044b5 branch le_send_att_read_by_group_type_store_record 
+
+le_send_att_read_by_group_type_store_write_record:
+44af 204044bd call le_send_att_read_by_group_type_check_pair_length_type 
+44b0 243a44c6 nbranch le_send_att_read_by_group_type_end1 ,blank 
+44b1 6fe104cc fetch 2 ,mem_temp 
+44b2 1fe0ffff increase -1 ,pdata 
+44b3 67e10520 store 2 ,mem_le_cur_handle_end 
+44b4 20404552 call le_write_att_record 
+
+le_send_att_read_by_group_type_store_record:
+44b5 6fe104cc fetch 2 ,mem_temp 
+44b6 67e1051e store 2 ,mem_le_cur_handle_start 
+44b7 2040454c call le_store_att_record 
+44b8 196097ff increase -1 ,timeup 
+
+le_send_att_read_by_group_type_next_handle:
+44b9 20404538 call le_att_next_handle 
+44ba 20204494 branch le_send_att_read_by_group_type_response_loop 
+
+le_send_att_read_by_type_res_check_pair_length_type:
+44bb 6fe08522 fetch 1 ,mem_le_cur_uuid_length 
+44bc 202044be branch le_send_att_read_by_group_type_check_pair_length_type + 1 
+
+le_send_att_read_by_group_type_check_pair_length_type:
+44bd 6fe0851b fetch 1 ,mem_le_curr_att_len 
+44be 203644c1 branch le_send_att_read_by_group_type_check_pair_length_type_16byte ,user2 
+44bf 1fe0fffe increase -2 ,pdata 
+44c0 20600000 rtn 
+
+le_send_att_read_by_group_type_check_pair_length_type_16byte:
+44c1 1fe0fff0 increase -16 ,pdata 
+44c2 20600000 rtn 
+
+le_send_att_read_by_group_type_end0:
+44c3 6fe104cc fetch 2 ,mem_temp 
+44c4 67e10520 store 2 ,mem_le_cur_handle_end 
+44c5 202044ca branch le_send_att_read_by_group_type_end_common 
+
+le_send_att_read_by_group_type_end1:
+44c6 6fe104cc fetch 2 ,mem_temp 
+44c7 1fe0ffff increase -1 ,pdata 
+44c8 67e10520 store 2 ,mem_le_cur_handle_end 
+44c9 202044ca branch le_send_att_read_by_group_type_end_common 
+
+le_send_att_read_by_group_type_end_common:
+44ca 20344528 branch le_send_att_error_response_notfound ,user 
+44cb 20404552 call le_write_att_record 
+44cc 2020455c branch le_send_auto_len_by_mem 
+
+le_parse_att_write_request:
+44cd 18c22200 copy contr ,rega 
+44ce 6fe1430a fetch 2 ,mem_le_l2cap_size 
+44cf 1fe0a5fd add pdata ,-3 ,regb 
+44d0 20404072 call le_writeatt_cb 
+
+le_send_att_write_response_check_auth:
+44d1 470fc023 bpatchx patch23_7 ,mem_patch23 
+44d2 204044ec call le_check_encrypt_state 
+44d3 6849436f fetcht 2 ,mem_le_att_handle 
+44d4 204040b2 call le_att_get_handle_ptr2 
+44d5 2422c4ea nbranch le_send_att_write_response_error_invalid_handle ,zero 
+44d6 205444e6 call le_send_att_write_response_check_handle ,user 
+44d7 20740000 rtn user 
+44d8 6fe0c2f6 fetch 1 ,mem_le_configuration 
+44d9 c30244e1 bbit0 bit_ble_write_auth ,le_send_att_write_response 
+44da 6849436f fetcht 2 ,mem_le_att_handle 
+44db 6fe14307 fetch 2 ,mem_le_pairing_handle 
+44dc 98467c00 isub temp ,null 
+44dd 2422c4e1 nbranch le_send_att_write_response ,zero 
+44de 204044ec call le_check_encrypt_state 
+44df 243444e1 nbranch le_send_att_write_response ,user 
+44e0 2020446e branch le_send_att_read_response_error_insufficient_auth 
+
+le_send_att_write_response:
+44e1 18002201 force 1 ,rega 
+44e2 20404535 call le_fifo_malloc_tx_l2cap_gatt 
+44e3 58000013 setarg attop_write_response 
+44e4 e7e08005 istore 1 ,contw 
+44e5 20600000 rtn 
+
+le_send_att_write_response_check_handle:
+44e6 18c08dfe increase -2 ,contr 
+44e7 efe10006 ifetch 2 ,contr 
+44e8 c287c46e bbit1 bit_of_att_handle_write_authenticated ,le_send_att_read_response_error_insufficient_auth 
+44e9 202074ca branch disable_user 
+
+le_send_att_write_response_error_invalid_handle:
+44ea 7001b401 jam att_err_invalid_handle ,mem_le_err_code 
+44eb 2020452a branch le_send_att_error_response 
+
+le_check_encrypt_state:
+44ec 47104024 bpatchx patch24_0 ,mem_patch24 
+44ed 204074ca call disable_user 
+44ee 6fe0c2d3 fetch 1 ,mem_le_pairing_mode 
+44ef c1000000 rtneq le_pairing_mode_none 
+44f0 6fe0c040 fetch 1 ,mem_context 
+44f1 c3820000 rtnbit1 lestate_encryption 
+44f2 202074c8 branch enable_user 
+
+le_parse_att_prepare_write_request:
+44f3 18c0a202 add contr ,2 ,rega 
+44f4 6fe1430a fetch 2 ,mem_le_l2cap_size 
+44f5 1fe0a5fb add pdata ,-5 ,regb 
+44f6 20404072 call le_writeatt_cb 
+44f7 202044f8 branch le_send_att_prepare_write_response 
+
+le_send_att_prepare_write_response:
+44f8 6fe1430a fetch 2 ,mem_le_l2cap_size 
+44f9 1fe22200 copy pdata ,rega 
+44fa 20404535 call le_fifo_malloc_tx_l2cap_gatt 
+44fb 58000017 setarg attop_prepare_write_response 
+44fc e7e08005 istore 1 ,contw 
+44fd 6fe1436f fetch 2 ,mem_le_att_handle 
+44fe e7e10005 istore 2 ,contw 
+44ff 6fe1430a fetch 2 ,mem_le_l2cap_size 
+4500 1fe0f3fb add pdata ,-5 ,loopcnt 
+4501 6fe1430e fetch 2 ,mem_le_payload_ptr 
+4502 1fe08c07 add pdata ,7 ,contr 
+4503 efe10006 ifetch 2 ,contr 
+4504 e7e10005 istore 2 ,contw 
+4505 2020740c branch memcpy_fast 
+
+le_parse_att_execute_write_request:
+
+le_send_att_execute_write_response:
+4506 18002201 force 1 ,rega 
+4507 20404535 call le_fifo_malloc_tx_l2cap_gatt 
+4508 58000019 setarg attop_execute_write_response 
+4509 e7e08005 istore 1 ,contw 
+450a 20600000 rtn 
+
+le_parse_handle_value_confirmation:
+450b 6fe0c36d fetch 1 ,mem_le_l2cap_att_states 
+450c 793ffe00 set0 ble_l2cap_recv_confirmation_packet ,pdata 
+450d 67e0c36d store 1 ,mem_le_l2cap_att_states 
+450e 20600000 rtn 
+
+le_parse_att_write_command:
+450f 18c22200 copy contr ,rega 
+4510 6fe1430a fetch 2 ,mem_le_l2cap_size 
+4511 1fe0a5fd add pdata ,-3 ,regb 
+4512 20204072 branch le_writeatt_cb 
+
+le_att_malloc_tx_notify:
+4513 18422600 copy temp ,regc 
+4514 1a20a203 increase 3 ,rega 
+4515 20404535 call le_fifo_malloc_tx_l2cap_gatt 
+4516 1a20a3fd increase -3 ,rega 
+4517 5800001b setarg attop_handle_value_notification 
+4518 e7e08005 istore 1 ,contw 
+4519 1a620400 copy regc ,temp 
+451a e0410005 istoret 2 ,contw 
+451b 20600000 rtn 
+
+le_att_malloc_tx_indication:
+451c 6fe0c36d fetch 1 ,mem_le_l2cap_att_states 
+451d 79207e00 set1 ble_l2cap_send_indication_packet ,pdata 
+451e 67e0c36d store 1 ,mem_le_l2cap_att_states 
+451f 18422600 copy temp ,regc 
+4520 1a20a203 increase 3 ,rega 
+4521 20404535 call le_fifo_malloc_tx_l2cap_gatt 
+4522 1a20a3fd increase -3 ,rega 
+4523 5800001d setarg attop_handle_value_indication 
+4524 e7e08005 istore 1 ,contw 
+4525 1a620400 copy regc ,temp 
+4526 e0410005 istoret 2 ,contw 
+4527 20600000 rtn 
+
+le_send_att_error_response_notfound:
+4528 4710c024 bpatchx patch24_1 ,mem_patch24 
+4529 7001b40a jam att_err_attribute_not_found ,mem_le_err_code 
+
+le_send_att_error_response:
+452a 18002205 force 5 ,rega 
+452b 20404535 call le_fifo_malloc_tx_l2cap_gatt 
+452c 58000001 setarg attop_error_response 
+452d e7e08005 istore 1 ,contw 
+452e 6fe0c36e fetch 1 ,mem_le_att_opcode 
+452f e7e08005 istore 1 ,contw 
+4530 6fe1436f fetch 2 ,mem_le_att_handle 
+4531 e7e10005 istore 2 ,contw 
+4532 6fe081b4 fetch 1 ,mem_le_err_code 
+4533 e7e08005 istore 1 ,contw 
+4534 20600000 rtn 
+
+le_fifo_malloc_tx_l2cap_gatt:
+4535 47114024 bpatchx patch24_2 ,mem_patch24 
+4536 18002404 force le_l2cap_cid_att ,regb 
+4537 2020419f branch le_fifo_malloc_tx_l2cap 
+
+le_att_next_handle:
+4538 684904cc fetcht 2 ,mem_temp 
+4539 18408401 increase 1 ,temp 
+453a 604904cc storet 2 ,mem_temp 
+453b 20600000 rtn 
+
+le_att_check_handle_end:
+453c 684904cc fetcht 2 ,mem_temp 
+453d 6fe10508 fetch 2 ,mem_le_search_handle_end 
+453e 98467c00 isub temp ,null 
+453f 20600000 rtn 
+
+le_att_same_type:
+4540 4711c024 bpatchx patch24_3 ,mem_patch24 
+4541 6848850a fetcht 1 ,mem_le_search_att_type_length 
+4542 da20050b arg mem_le_search_att_type ,rega 
+
+le_att_check_same_common:
+4543 6fe08522 fetch 1 ,mem_le_cur_uuid_length 
+4544 1fe27200 copy pdata ,loopcnt 
+4545 98467c00 isub temp ,null 
+4546 24628000 nrtn zero 
+4547 da400523 arg mem_le_cur_uuid ,regb 
+4548 20207477 branch string_compare 
+
+le_att_same_uuid:
+4549 6848c28f fetcht 1 ,mem_le_search_uuid_length 
+454a da204290 arg mem_le_search_uuid ,rega 
+454b 20204543 branch le_att_check_same_common 
+
+le_store_att_record:
+454c 47124024 bpatchx patch24_4 ,mem_patch24 
+454d 6fe0851b fetch 1 ,mem_le_curr_att_len 
+454e 67e084f6 store 1 ,mem_temp_block0 
+454f 1fe27200 copy pdata ,loopcnt 
+4550 204073ba call get_contr 
+4551 2020740c branch memcpy_fast 
+
+le_write_att_record:
+4552 4712c024 bpatchx patch24_5 ,mem_patch24 
+4553 204073b7 call get_contw 
+4554 6fe1051e fetch 2 ,mem_le_cur_handle_start 
+4555 e7e10005 istore 2 ,contw 
+4556 6fe10520 fetch 2 ,mem_le_cur_handle_end 
+4557 e7e10005 istore 2 ,contw 
+
+le_write_att_record_common:
+4558 6fe084f6 fetch 1 ,mem_temp_block0 
+4559 1fe27200 copy pdata ,loopcnt 
+455a 2040740c call memcpy_fast 
+455b 202073bd branch store_contw 
+
+le_send_auto_len_by_mem:
+455c 47134024 bpatchx patch24_6 ,mem_patch24 
+455d 204073b7 call get_contw 
+455e 204041c5 call le_fifo_get_last_att_ptr 
+455f 18a27e00 copy contw ,pdata 
+4560 98c62200 isub contr ,rega 
+4561 204041c8 call le_fifo_get_last_l2cap_ptr 
+4562 1a227e00 copy rega ,pdata 
+4563 e7e10006 istore 2 ,contr 
+4564 1a20a204 increase 4 ,rega 
+4565 204041ba call le_fifo_get_last_tx_ptr 
+4566 1a227e00 copy rega ,pdata 
+4567 e7e08006 istore 1 ,contr 
+4568 20600000 rtn 
+
+le_get_search_handle_start_end_common:
+4569 1fecfe00 rshift8 pdata ,pdata 
+456a 67e10506 store 2 ,mem_le_search_handle_start 
+456b efe10006 ifetch 2 ,contr 
+456c 67e10508 store 2 ,mem_le_search_handle_end 
+456d 20600000 rtn 
+
+le_get_search_max_mtu_data:
+456e 4713c024 bpatchx patch24_7 ,mem_patch24 
+456f 6fe142b8 fetch 2 ,mem_le_remote_mtu 
+4570 1fe0fffe increase -2 ,pdata 
+4571 684942b6 fetcht 2 ,mem_le_local_mtu 
+4572 184085fe increase -2 ,temp 
+4573 204074be call not_greater_than 
+4574 d84000f0 arg 240 ,temp 
+4575 204074be call not_greater_than 
+4576 20600000 rtn 
+
+le_get_search_att_type:
+4577 47144025 bpatchx patch25_0 ,mem_patch25 
+4578 204073c0 call store_contr 
+4579 d8a0050a arg mem_le_search_att_type_length ,contw 
+
+le_get_search_common:
+457a 6fe1430a fetch 2 ,mem_le_l2cap_size 
+457b 1fe0fffb increase -5 ,pdata 
+
+le_get_search_common2:
+457c e7e08005 istore 1 ,contw 
+457d 1fe27200 copy pdata ,loopcnt 
+457e 204073ba call get_contr 
+457f 2020740c branch memcpy_fast 
+
+le_parse_writing_attribute_start:
+4580 6fe1004b fetch 2 ,mem_le_rxbuf_data_att_cid 
+4581 c1820000 rtnne le_l2cap_cid_att 
+4582 6fe0c36d fetch 1 ,mem_le_l2cap_att_states 
+4583 79207e01 set1 ble_l2cap_deal_with_continue_packet ,pdata 
+4584 67e0c36d store 1 ,mem_le_l2cap_att_states 
+4585 6fe1804d fetch 3 ,mem_le_rxbuf_data_att_opcode 
+4586 67e1c36e store 3 ,mem_le_att_opcode 
+4587 7920000f set1 mark_old_packet ,mark 
+4588 c009459b beq attop_write_request ,le_parse_attribute_write_request 
+4589 c02945a0 beq attop_write_command ,le_parse_attribute_write_command 
+458a c00c4506 beq attop_execute_write_request ,le_parse_att_execute_write_request 
+458b c0014346 beq attop_exchange_mtu_request ,le_parse_att_exchange_mtu_request 
+458c c00f450b beq attop_handle_value_confirmation ,le_parse_handle_value_confirmation 
+458d 793f800f set0 mark_old_packet ,mark 
+
+le_clear_l2cap_att_states_deal_with_contiune_packet:
+458e 6fe0c36d fetch 1 ,mem_le_l2cap_att_states 
+458f 793ffe01 set0 ble_l2cap_deal_with_continue_packet ,pdata 
+4590 67e0c36d store 1 ,mem_le_l2cap_att_states 
+4591 20600000 rtn 
+
+le_parse_writing_attribute_continue:
+4592 6fe0c36d fetch 1 ,mem_le_l2cap_att_states 
+4593 c4008000 rtnbit0 ble_l2cap_deal_with_continue_packet 
+4594 7920000f set1 mark_old_packet ,mark 
+4595 204045ab call le_parse_l2cap_continue_common 
+4596 204045b1 call le_parse_attribute_check_complete_packet 
+4597 2054458e call le_clear_l2cap_att_states_deal_with_contiune_packet ,user 
+4598 6fe0c36e fetch 1 ,mem_le_att_opcode 
+4599 c00944d1 beq attop_write_request ,le_send_att_write_response_check_auth 
+459a 20600000 rtn 
+
+le_parse_attribute_write_request:
+459b 204045a0 call le_parse_attribute_write_command 
+459c 2020459d branch le_send_attribute_write_response_check_auth 
+
+le_send_attribute_write_response_check_auth:
+459d 204045b1 call le_parse_attribute_check_complete_packet 
+459e 24740000 nrtn user 
+459f 202044d1 branch le_send_att_write_response_check_auth 
+
+le_parse_attribute_write_command:
+45a0 4714c025 bpatchx patch25_1 ,mem_patch25 
+45a1 204045a4 call le_parse_attribute_check_complete_packet_init 
+45a2 da200050 arg mem_le_rxbuf_data_att_write_payload ,rega 
+45a3 20204072 branch le_writeatt_cb 
+
+le_parse_attribute_check_complete_packet_init:
+45a4 6fe08048 fetch 1 ,mem_le_rxbuf_data_att_write_length 
+45a5 1fe0a5f9 add pdata ,-7 ,regb 
+45a6 1fe0fffc increase -4 ,pdata 
+45a7 67e1430c store 2 ,mem_le_packet_len_recved 
+45a8 68490049 fetcht 2 ,mem_le_rxbuf_data_att_write_l2cap_length 
+45a9 6049430a storet 2 ,mem_le_l2cap_size 
+45aa 20600000 rtn 
+
+le_parse_l2cap_continue_common:
+45ab 6a408048 fetchr regb ,1 ,mem_le_rxbuf_data_continue_length 
+45ac 6fe1430c fetch 2 ,mem_le_packet_len_recved 
+45ad 9a408400 iadd regb ,temp 
+45ae 6049430c storet 2 ,mem_le_packet_len_recved 
+45af da200049 arg mem_le_rxbuf_data_continue_payload ,rega 
+45b0 20204072 branch le_writeatt_cb 
+
+le_parse_attribute_check_complete_packet:
+45b1 204074ca call disable_user 
+45b2 6fe1430c fetch 2 ,mem_le_packet_len_recved 
+45b3 6849430a fetcht 2 ,mem_le_l2cap_size 
+45b4 98467c00 isub temp ,null 
+45b5 24628000 nrtn zero 
+45b6 202074c8 branch enable_user 
+
+le_parse_signaling:
+45b7 efe08006 ifetch 1 ,contr 
+45b8 e8408006 ifetcht 1 ,contr 
+45b9 e8410006 ifetcht 2 ,contr 
+45ba c009c5bc beq l2cap_connection_parameter_update_response ,le_l2cap_parse_conn_parameter_update_rsp 
+45bb 20600000 rtn 
+
+le_l2cap_parse_conn_parameter_update_rsp:
+45bc efe10006 ifetch 2 ,contr 
+45bd 67e14311 store 2 ,mem_le_l2cap_signaling_conn_param_update_rsp_result 
+45be 7004c340 jam bt_evt_le_parse_conn_papa_update_rsp ,mem_fifo_temp 
+45bf 20206f7b branch ui_ipc_send_event 
+
+le_l2cap_tx_update_req:
+45c0 da20000c arg 0x0c ,rega 
+45c1 da600012 arg l2cap_connection_parameter_update_request ,regc 
+45c2 204045c8 call le_fifo_malloc_tx_l2cap_signaling 
+45c3 58000008 setarg 0x08 
+45c4 e7e10005 istore 2 ,contw 
+45c5 6fe442a8 fetch 8 ,mem_le_interval_min 
+45c6 e7e40005 istore 8 ,contw 
+45c7 20600000 rtn 
+
+le_fifo_malloc_tx_l2cap_signaling:
+45c8 204045d0 call le_l2cap_update_signaling_identifier 
+45c9 da400005 arg le_l2cap_cid_signal ,regb 
+45ca 2040419f call le_fifo_malloc_tx_l2cap 
+45cb 1a627e00 copy regc ,pdata 
+45cc e7e08005 istore 1 ,contw 
+45cd 6fe0c310 fetch 1 ,mem_le_signaling_identifier 
+45ce e7e08005 istore 1 ,contw 
+45cf 20600000 rtn 
+
+le_l2cap_update_signaling_identifier:
+45d0 6fe0c310 fetch 1 ,mem_le_signaling_identifier 
+45d1 1fe0fe01 pincrease 1 
+45d2 67e0c310 store 1 ,mem_le_signaling_identifier 
+45d3 c1800000 rtnne 0 
+
+le_l2cap_reset_signaling_identifier:
+45d4 70431001 jam 1 ,mem_le_signaling_identifier 
+45d5 20600000 rtn 
+
+le_pairing_mode_init:
+45d6 6fe0c2d3 fetch 1 ,mem_le_pairing_mode 
+45d7 c00045db beq le_pairing_mode_none ,le_set_no_pairing 
+45d8 c000c5de beq le_pairing_mode_lagacy_justwork ,le_set_pairing_mode_lagacy_just_work 
+45d9 c00145e0 beq le_pairing_mode_lagacy_passkey ,le_set_pairing_mode_lagacy_passkey 
+45da 20600000 rtn 
+
+le_set_no_pairing:
+45db 70428900 jam flag_le_no_bonding_no_mitm ,mem_le_pres_auth 
+
+le_set_noinputnooutput:
+45dc 70428703 jam flag_iocap_noinputnooutput ,mem_le_pres_iocap 
+45dd 20600000 rtn 
+
+le_set_pairing_mode_lagacy_just_work:
+45de 70428905 jam flag_le_bonding_mitm ,mem_le_pres_auth 
+45df 202045dc branch le_set_noinputnooutput 
+
+le_set_pairing_mode_lagacy_passkey:
+45e0 70428905 jam flag_le_bonding_mitm ,mem_le_pres_auth 
+
+le_set_displayonly:
+45e1 70428700 jam flag_iocap_displayonly ,mem_le_pres_iocap 
+45e2 20600000 rtn 
+
+le_parse_smp:
+45e3 efe08006 ifetch 1 ,contr 
+45e4 c000c5f5 beq smp_pairing_request ,le_parse_smp_pairing_request 
+45e5 c001c616 beq smp_pairing_confirm ,le_parse_smp_pairing_confirm 
+45e6 c0024625 beq smp_pairing_random ,le_parse_smp_pairing_random 
+45e7 c002c630 beq smp_pairing_failed ,le_parse_smp_pairing_failed 
+45e8 c003c680 beq smp_master_identification ,le_parse_smp_master_identification 
+45e9 c0044670 beq smp_identity_information ,le_parse_smp_identity_information 
+45ea c004c67c beq smp_identity_address_information ,le_parse_smp_identity_address_information 
+45eb c0054680 beq smp_signing_information ,le_parse_smp_signing_information 
+45ec c005c680 beq smp_security_request ,le_parse_smp_security_request 
+45ed 20600000 rtn 
+
+le_send_smp_security_request:
+45ee 18002202 force 2 ,rega 
+45ef 204046c0 call le_fifo_malloc_tx_l2cap_smp 
+45f0 5800000b setarg smp_security_request 
+45f1 e7e08005 istore 1 ,contw 
+45f2 6fe0c289 fetch 1 ,mem_le_pres_auth 
+45f3 e7e08005 istore 1 ,contw 
+45f4 20600000 rtn 
+
+le_parse_smp_pairing_request:
+45f5 67e0c27f store 1 ,mem_le_preq 
+45f6 efe30006 ifetch 6 ,contr 
+45f7 e7e30005 istore 6 ,contw 
+45f8 6fe0c2d3 fetch 1 ,mem_le_pairing_mode 
+45f9 c0004636 beq le_pairing_mode_none ,le_smp_pairing_fail_reason_not_support_pairing 
+45fa 20404611 call le_send_smp_pairing_response 
+
+le_parse_smp_pairing_request2:
+45fb 7042d103 jam flag_le_pairing_rcv_pairing_req ,mem_le_pairing_state 
+45fc 6fe0c280 fetch 1 ,mem_le_preq_iocap 
+45fd c0004603 beq flag_iocap_displayonly ,le_set_tk_0 
+45fe c000c603 beq flag_iocap_displayyesno ,le_set_tk_0 
+45ff c001c603 beq flag_iocap_noinputnooutput ,le_set_tk_0 
+4600 6fe0c2d3 fetch 1 ,mem_le_pairing_mode 
+4601 c0014606 beq le_pairing_mode_lagacy_passkey ,le_parse_smp_pairing_req_passkey 
+4602 c1418000 rtneq le_pairing_mode_secure_connect_passkey 
+
+le_set_tk_0:
+4603 dfe00000 arg 0 ,pdata 
+4604 67e242d4 store 4 ,mem_le_tk 
+4605 20600000 rtn 
+
+le_parse_smp_pairing_req_passkey:
+4606 6fe0c2f6 fetch 1 ,mem_le_configuration 
+4607 c280460f bbit1 bit_ble_passkey_fixed_key ,le_parse_smp_pairing_req_fixed_passkey 
+
+le_genernate_tk:
+4608 da2042d4 arg mem_le_tk ,rega 
+4609 1a220a00 copy rega ,contw 
+460a df200003 arg 3 ,loopcnt 
+460b 204074e4 call generate_random_loop 
+460c 6fe142d6 fetch 2 ,mem_le_tk + 2 
+460d 1fe17e07 and_into 0x7 ,pdata 
+460e 67e142d6 store 2 ,mem_le_tk + 2 
+
+le_parse_smp_pairing_req_fixed_passkey:
+460f 7004c334 jam bt_evt_le_tk_generate ,mem_fifo_temp 
+4610 20206f7b branch ui_ipc_send_event 
+
+le_send_smp_pairing_response:
+4611 18002207 force 7 ,rega 
+4612 204046c0 call le_fifo_malloc_tx_l2cap_smp 
+4613 6fe3c286 fetch 7 ,mem_le_pres 
+4614 e7e38005 istore 7 ,contw 
+4615 20600000 rtn 
+
+le_parse_smp_pairing_confirm:
+4616 7042d105 jam flag_le_pairing_receive_pairing_confirm ,mem_le_pairing_state 
+4617 d8a0425d arg mem_le_rconfirm ,contw 
+4618 204073d2 call memcpy16 
+4619 6fe0c2d3 fetch 1 ,mem_le_pairing_mode 
+461a c002461c beq le_pairing_mode_lagacy_passkey_res_input ,le_parse_smp_pairing_confirm_passkey_res_input 
+461b 2020461e branch le_send_smp_pairing_confirm 
+
+le_parse_smp_pairing_confirm_passkey_res_input:
+461c 7004c343 jam bt_evt_le_get_passkey ,mem_fifo_temp 
+461d 20206f7b branch ui_ipc_send_event 
+
+le_send_smp_pairing_confirm:
+461e 7042d106 jam flag_le_pairing_send_pairing_confirm ,mem_le_pairing_state 
+461f 20406d45 call generate_confirm 
+4620 18002211 force 17 ,rega 
+4621 204046c0 call le_fifo_malloc_tx_l2cap_smp 
+4622 58000003 setarg smp_pairing_confirm 
+4623 e7e08005 istore 1 ,contw 
+4624 20206e91 branch store_aes_result 
+
+le_parse_smp_pairing_random:
+4625 18c22200 copy contr ,rega 
+4626 1a220c00 copy rega ,contr 
+4627 20406d3d call authenticate_rconfirm 
+4628 2022c638 branch le_parse_smp_pairing_random_success ,zero 
+
+le_send_pairing_confirm_value_failed:
+4629 7001b504 jam pairing_failed_confirm_value_failed ,mem_le_ll_pairing_fail_reason 
+
+le_send_pairing_failed:
+462a 18002202 force 2 ,rega 
+462b 204046c0 call le_fifo_malloc_tx_l2cap_smp 
+462c 58000005 setarg smp_pairing_failed 
+462d e7e08005 istore 1 ,contw 
+462e 6fe081b5 fetch 1 ,mem_le_ll_pairing_fail_reason 
+462f e7e08005 istore 1 ,contw 
+
+le_parse_smp_pairing_failed:
+4630 47154025 bpatchx patch25_2 ,mem_patch25 
+4631 18000e07 force smp_pairing_timer ,queue 
+4632 2040741f call timer_stop 
+4633 7042d100 jam flag_le_pairing_null ,mem_le_pairing_state 
+4634 7004c330 jam bt_evt_le_pairing_fail ,mem_fifo_temp 
+4635 20206f7b branch ui_ipc_send_event 
+
+le_smp_pairing_fail_reason_not_support_pairing:
+4636 7001b505 jam pairing_failed_pairing_not_supported ,mem_le_ll_pairing_fail_reason 
+4637 2020462a branch le_send_pairing_failed 
+
+le_parse_smp_pairing_random_success:
+4638 20406d39 call generate_stk 
+4639 7004c331 jam bt_evt_le_pairing_success ,mem_fifo_temp 
+463a 20406f7b call ui_ipc_send_event 
+463b 70425c01 jam 1 ,mem_ltk_exists 
+463c 7042d109 jam flag_le_pairing_after_auth ,mem_le_pairing_state 
+
+le_send_smp_pairing_random:
+463d 18002211 force 17 ,rega 
+463e 204046c0 call le_fifo_malloc_tx_l2cap_smp 
+463f 58000004 setarg smp_pairing_random 
+4640 e7e08005 istore 1 ,contw 
+4641 d8c0426d arg mem_le_srand ,contr 
+4642 202073d2 branch memcpy16 
+
+le_send_smp_encryption_information:
+4643 18002211 force 17 ,rega 
+4644 204046c0 call le_fifo_malloc_tx_l2cap_smp 
+4645 58000006 setarg smp_encryption_information 
+4646 e7e08005 istore 1 ,contw 
+4647 6fe0c2f6 fetch 1 ,mem_le_configuration 
+4648 c280c64b bbit1 bit_ble_pairing_fixed_ltk ,le_send_fixed_ltk 
+4649 d8c0424c arg mem_le_ltk ,contr 
+464a 202073d2 branch memcpy16 
+
+le_send_fixed_ltk:
+464b d8c042f7 arg mem_le_fixed_ltk ,contr 
+464c 202073d2 branch memcpy16 
+
+le_send_smp_master_identification:
+464d d8a042d8 arg mem_le_ediv ,contw 
+464e 1800720a force 10 ,loopcnt 
+464f 204074e4 call generate_random_loop 
+4650 1800220b force 11 ,rega 
+4651 204046c0 call le_fifo_malloc_tx_l2cap_smp 
+4652 58000007 setarg smp_master_identification 
+4653 e7e08005 istore 1 ,contw 
+4654 6fe142d8 fetch 2 ,mem_le_ediv 
+4655 e7e10005 istore 2 ,contw 
+4656 6fe442da fetch 8 ,mem_le_rand 
+4657 e7e40005 istore 8 ,contw 
+4658 20600000 rtn 
+
+le_send_smp_identity_information:
+4659 18002211 force 17 ,rega 
+465a 204046c0 call le_fifo_malloc_tx_l2cap_smp 
+465b 58000008 setarg smp_identity_information 
+465c e7e08005 istore 1 ,contw 
+465d 58000000 setarg 0 
+465e e7e40005 istore 8 ,contw 
+465f e7e40005 istore 8 ,contw 
+4660 20600000 rtn 
+
+le_send_smp_identity_address_information:
+4661 18002208 force 8 ,rega 
+4662 204046c0 call le_fifo_malloc_tx_l2cap_smp 
+4663 58000009 setarg smp_identity_address_information 
+4664 e7e08005 istore 1 ,contw 
+4665 6fe0c2a7 fetch 1 ,mem_le_conn_own_addr_type 
+4666 e7e08005 istore 1 ,contw 
+4667 6fe342b0 fetch 6 ,mem_le_lap 
+4668 e7e30005 istore 6 ,contw 
+4669 20600000 rtn 
+
+le_send_pairing_fail_unspecified_reason:
+466a 7001b508 jam pairing_failed_unspecified_reason ,mem_le_ll_pairing_fail_reason 
+466b 2020462a branch le_send_pairing_failed 
+
+le_check_init_key_distribution:
+466c 6fe0c28b fetch 1 ,mem_le_pres_init_key_distribution 
+466d 6848c28b fetcht 1 ,mem_le_pres_init_key_distribution 
+466e 98417e00 iand temp ,pdata 
+466f 20600000 rtn 
+
+le_parse_smp_identity_information:
+4670 d8a042e2 arg mem_le_irk ,contw 
+4671 204073d2 call memcpy16 
+4672 2040466c call le_check_init_key_distribution 
+4673 2fec0001 isolate0 le_initator_irk_bit ,pdata 
+4674 2020c66a branch le_send_pairing_fail_unspecified_reason ,true 
+4675 20600000 rtn 
+
+le_check_master_addr_type:
+4676 204074ca call disable_user 
+4677 6fe0c2a0 fetch 1 ,mem_le_conn_peer_addr_type 
+4678 c1000000 rtneq master_public_addr 
+4679 6fe0c284 fetch 1 ,mem_le_preq_init_key_distribution 
+467a c4008000 rtnbit0 le_initator_irk_bit 
+467b 202074c8 branch enable_user 
+
+le_parse_smp_identity_address_information:
+467c 2040466c call le_check_init_key_distribution 
+467d 2fec0001 isolate0 le_initator_irk_bit ,pdata 
+467e 2020c66a branch le_send_pairing_fail_unspecified_reason ,true 
+467f 20600000 rtn 
+
+le_parse_smp_master_identification:
+
+le_parse_smp_signing_information:
+
+le_parse_smp_security_request:
+4680 20600000 rtn 
+
+le_check_paring_time:
+4681 6fe0c2d1 fetch 1 ,mem_le_pairing_state 
+4682 c17f8000 rtneq flag_le_pairing_end 
+4683 d8400003 arg flag_le_pairing_rcv_pairing_req ,temp 
+4684 98467c00 isub temp ,null 
+4685 24610000 nrtn positive 
+4686 d8e00007 arg smp_pairing_timer ,queue 
+4687 2040742e call timer_check 
+4688 247a0000 nrtn blank 
+4689 2020466a branch le_send_pairing_fail_unspecified_reason 
+
+le_pairing_sm:
+468a 4715c025 bpatchx patch25_3 ,mem_patch25 
+468b 204041cc call le_fifo_check_nearly_full 
+468c 247a0000 nrtn blank 
+468d 6fe0c2d1 fetch 1 ,mem_le_pairing_state 
+468e c0004697 beq flag_le_pairing_null ,le_pairing_sm_null 
+468f c000c69d beq flag_le_pairing_start ,le_pairing_sm_start 
+4690 c0014697 beq flag_le_pairing_send_recurity_req ,le_pairing_sm_send_sec_req 
+4691 c001c69f beq flag_le_pairing_rcv_pairing_req ,le_pairing_sm_rcv_pairing_req 
+4692 c004c6a3 beq flag_le_pairing_after_auth ,le_pairing_sm_after_auth 
+4693 c005c6ae beq flag_le_paring_send_enc_information ,le_pairng_sm_send_enc_information 
+4694 c00646b0 beq flag_le_paring_send_master_identification ,le_pairng_sm_send_master_indentification 
+4695 c006c6b7 beq flag_le_paring_send_indentity_information ,le_pairng_sm_send_indentity_information 
+4696 20600000 rtn 
+
+le_pairing_sm_null:
+
+le_pairing_sm_send_sec_req:
+4697 6fe0c2d2 fetch 1 ,mem_le_enc_state 
+4698 c1820000 rtnne flag_le_send_start_enc_rsp 
+4699 7042d2ff jam flag_le_enc_end ,mem_le_enc_state 
+469a 7042d1ff jam flag_le_pairing_end ,mem_le_pairing_state 
+469b 7004c33f jam bt_evt_le_reconnect_complete ,mem_fifo_temp 
+469c 20206f7b branch ui_ipc_send_event 
+
+le_pairing_sm_start:
+469d 7042d102 jam flag_le_pairing_send_recurity_req ,mem_le_pairing_state 
+469e 202045ee branch le_send_smp_security_request 
+
+le_pairing_sm_rcv_pairing_req:
+469f 7042d104 jam flag_le_pairing_wait_stk_generation ,mem_le_pairing_state 
+46a0 58017700 setarg timer_smp_pairing_timeout 
+46a1 d8e00007 arg smp_pairing_timer ,queue 
+46a2 20207420 branch timer_init 
+
+le_pairing_sm_after_auth:
+46a3 6fe0c2d2 fetch 1 ,mem_le_enc_state 
+46a4 c00246a6 beq flag_le_send_start_enc_rsp ,le_pairing_sm_after_auth_start_enc 
+46a5 20600000 rtn 
+
+le_pairing_sm_after_auth_start_enc:
+46a6 6fe0c2d3 fetch 1 ,mem_le_pairing_mode 
+46a7 c283c6ac bbit1 le_pairing_mode_secure_connect_bit ,le_pairing_sm_after_auth_start_enc_sc 
+46a8 7042d10b jam flag_le_paring_send_enc_information ,mem_le_pairing_state 
+46a9 20404643 call le_send_smp_encryption_information 
+
+le_pairing_sm_after_auth_start_enc_common:
+46aa 7004c329 jam bt_evt_le_enc_info ,mem_fifo_temp 
+46ab 20206f7b branch ui_ipc_send_event 
+
+le_pairing_sm_after_auth_start_enc_sc:
+46ac 7042d10c jam flag_le_paring_send_master_identification ,mem_le_pairing_state 
+46ad 202046aa branch le_pairing_sm_after_auth_start_enc_common 
+
+le_pairng_sm_send_enc_information:
+46ae 7042d10c jam flag_le_paring_send_master_identification ,mem_le_pairing_state 
+46af 2020464d branch le_send_smp_master_identification 
+
+le_pairng_sm_send_master_indentification:
+46b0 6fe0c285 fetch 1 ,mem_le_preq_resp_key_distribution 
+46b1 6848c28c fetcht 1 ,mem_le_pres_resp_key_distribution 
+46b2 98417e00 iand temp ,pdata 
+46b3 2fec0001 isolate0 le_initator_irk_bit ,pdata 
+46b4 2020c6b9 branch le_parse_start_enc_rsp_after_auth_end ,true 
+46b5 7042d10d jam flag_le_paring_send_indentity_information ,mem_le_pairing_state 
+46b6 20204659 branch le_send_smp_identity_information 
+
+le_pairng_sm_send_indentity_information:
+46b7 20404661 call le_send_smp_identity_address_information 
+46b8 202046b9 branch le_parse_start_enc_rsp_after_auth_end 
+
+le_parse_start_enc_rsp_after_auth_end:
+46b9 47164025 bpatchx patch25_4 ,mem_patch25 
+46ba 18000e07 force smp_pairing_timer ,queue 
+46bb 2040741f call timer_stop 
+46bc 7042d2ff jam flag_le_enc_end ,mem_le_enc_state 
+46bd 7042d1ff jam flag_le_pairing_end ,mem_le_pairing_state 
+46be 7004c33e jam bt_evt_le_pairing_complete ,mem_fifo_temp 
+46bf 20206f7b branch ui_ipc_send_event 
+
+le_fifo_malloc_tx_l2cap_smp:
+46c0 47174025 bpatchx patch25_6 ,mem_patch25 
+46c1 18002406 force le_l2cap_cid_smp ,regb 
+46c2 2020419f branch le_fifo_malloc_tx_l2cap 
+
+le_parse_ll:
+46c3 6fe08049 fetch 1 ,mem_le_rxbuf_data_ll_opcode 
+46c4 c00046da beq ll_connection_update_ind ,le_parse_connection_update_ind 
+46c5 c000c6e2 beq ll_channel_map_ind ,le_parse_channel_map_ind 
+46c6 c00146ea beq ll_terminate_ind ,le_parse_terminate_ind 
+46c7 c001c6ee beq ll_enc_req ,le_parse_enc_req 
+46c8 c002470c beq ll_enc_rsp ,le_parse_enc_rsp 
+46c9 c002c711 beq ll_start_enc_req ,le_parse_start_enc_req 
+46ca c0034715 beq ll_start_enc_rsp ,le_parse_start_enc_rsp 
+46cb c003c71a beq ll_unknown_rsp ,le_parse_unknown_rsp 
+46cc c004471b beq ll_feature_req ,le_parse_feature_req 
+46cd c004c71c beq ll_feature_rsp ,le_parse_feature_rsp 
+46ce c005471d beq ll_pause_enc_req ,le_parse_pause_enc_req 
+46cf c005c721 beq ll_pause_enc_rsp ,le_parse_pause_enc_rsp 
+46d0 c0064722 beq ll_version_ind ,le_parse_version_ind 
+46d1 c006c724 beq ll_reject_ind ,le_parse_reject_ind 
+46d2 c0094725 beq ll_ping_req ,le_parse_ping_req 
+46d3 c009c726 beq ll_ping_rsp ,le_parse_ping_rsp 
+46d4 c00a4727 beq ll_length_req ,le_parse_length_req 
+46d5 c00ac729 beq ll_length_rsp ,le_parse_length_rsp 
+46d6 c00b4734 beq ll_phy_req ,le_parse_phy_req 
+46d7 c00c4735 beq ll_phy_update_ind ,le_parse_phy_update_ind 
+46d8 6a608049 fetchr regc ,1 ,mem_le_rxbuf_data_ll_opcode 
+46d9 20204758 branch le_send_unknown_rsp 
+
+le_parse_connection_update_ind:
+46da efe48006 ifetch 9 ,contr 
+46db 67e4819a store 9 ,mem_le_new_param 
+46dc efe10006 ifetch 2 ,contr 
+46dd 67e10183 store 2 ,mem_le_instant 
+46de 6fe08163 fetch 1 ,mem_le_state 
+46df 79207e05 set1 lestate_update_param ,pdata 
+46e0 67e08163 store 1 ,mem_le_state 
+46e1 20600000 rtn 
+
+le_parse_channel_map_ind:
+46e2 efe28006 ifetch 5 ,contr 
+46e3 67e2819a store 5 ,mem_le_new_map 
+46e4 efe10006 ifetch 2 ,contr 
+46e5 67e10183 store 2 ,mem_le_instant 
+
+le_update_map_enable:
+46e6 6fe08163 fetch 1 ,mem_le_state 
+46e7 79207e06 set1 lestate_update_map ,pdata 
+46e8 67e08163 store 1 ,mem_le_state 
+46e9 20600000 rtn 
+
+le_parse_terminate_ind:
+46ea 58000014 setarg 20 
+46eb 67e10191 store 2 ,mem_le_superto 
+46ec 67e142ca store 2 ,mem_le_init_superto 
+46ed 20600000 rtn 
+
+le_parse_enc_req:
+46ee efe40006 ifetch 8 ,contr 
+46ef 67e442da store 8 ,mem_le_rand 
+46f0 efe10006 ifetch 2 ,contr 
+46f1 67e142d8 store 2 ,mem_le_ediv 
+46f2 efe40006 ifetch 8 ,contr 
+46f3 67e442ba store 8 ,mem_le_skdm 
+46f4 efe20006 ifetch 4 ,contr 
+46f5 67e24410 store 4 ,mem_ccm_ivm 
+46f6 20404745 call le_send_enc_rsp 
+46f7 4717c025 bpatchx patch25_7 ,mem_patch25 
+46f8 6fe0c2d1 fetch 1 ,mem_le_pairing_state 
+46f9 c004c700 beq flag_le_pairing_after_auth ,le_parse_enc_req_after_auth 
+46fa 6fe0c2f6 fetch 1 ,mem_le_configuration 
+46fb c280c703 bbit1 bit_ble_pairing_fixed_ltk ,le_parse_enc_req_fixed_ltk 
+46fc 6fe0c3b3 fetch 1 ,mem_nv_data_number 
+46fd 245a6b4d ncall load_device_list_mode_4 ,blank 
+46fe 6fe0c25c fetch 1 ,mem_ltk_exists 
+46ff c0004708 beq 0 ,le_ltk_lost 
+
+le_parse_enc_req_after_auth:
+4700 7042d201 jam flag_le_rcv_enc_start ,mem_le_enc_state 
+4701 20404753 call le_send_start_enc_req 
+4702 20206d4b branch generate_sk 
+
+le_parse_enc_req_fixed_ltk:
+4703 70425c01 jam 1 ,mem_ltk_exists 
+4704 d8c042f7 arg mem_le_fixed_ltk ,contr 
+4705 d8a0424c arg mem_le_ltk ,contw 
+4706 204073d2 call memcpy16 
+4707 20204700 branch le_parse_enc_req_after_auth 
+
+le_ltk_lost:
+4708 7042d200 jam flag_le_enc_null ,mem_le_enc_state 
+4709 7042d100 jam flag_le_enc_null ,mem_le_pairing_state 
+470a 7004c341 jam bt_evt_le_ltk_lost ,mem_fifo_temp 
+470b 20206f7b branch ui_ipc_send_event 
+
+le_parse_enc_rsp:
+470c efe40006 ifetch 8 ,contr 
+470d 67e442c2 store 8 ,mem_le_skds 
+470e efe20006 ifetch 4 ,contr 
+470f 67e24414 store 4 ,mem_ccm_ivs 
+4710 20206d4b branch generate_sk 
+
+le_parse_start_enc_req:
+4711 6fe08163 fetch 1 ,mem_le_state 
+4712 79207e04 set1 lestate_encryption ,pdata 
+4713 67e08163 store 1 ,mem_le_state 
+4714 20600000 rtn 
+
+le_parse_start_enc_rsp:
+4715 20748000 rtn master 
+4716 7004c332 jam bt_evt_le_start_enc ,mem_fifo_temp 
+4717 20406f7b call ui_ipc_send_event 
+4718 7042d204 jam flag_le_send_start_enc_rsp ,mem_le_enc_state 
+4719 20204756 branch le_send_start_enc_rsp 
+
+le_parse_unknown_rsp:
+471a 20600000 rtn 
+
+le_parse_feature_req:
+471b 2020475d branch le_send_feature_rsp 
+
+le_parse_feature_rsp:
+471c 20600000 rtn 
+
+le_parse_pause_enc_req:
+471d 7042d202 jam flag_le_enc_pause ,mem_le_enc_state 
+471e 20404764 call le_send_pause_enc_rsp 
+471f 7004c333 jam bt_evt_le_pause_enc ,mem_fifo_temp 
+4720 20206f7b branch ui_ipc_send_event 
+
+le_parse_pause_enc_rsp:
+4721 20600000 rtn 
+
+le_parse_version_ind:
+4722 20748000 rtn master 
+4723 20204766 branch le_send_version_ind 
+
+le_parse_reject_ind:
+4724 20600000 rtn 
+
+le_parse_ping_req:
+4725 20204772 branch le_send_ping_rsp 
+
+le_parse_ping_rsp:
+4726 20600000 rtn 
+
+le_parse_length_req:
+4727 20404729 call le_parse_length_rsp 
+4728 20204776 branch le_send_data_length_res 
+
+le_parse_length_rsp:
+4729 efe40006 ifetch 8 ,contr 
+472a 67e4437c store 8 ,mem_remote_rx_max_octets 
+472b 6fe1437c fetch 2 ,mem_remote_rx_max_octets 
+472c 68494388 fetcht 2 ,mem_local_tx_max_octets 
+472d 204074be call not_greater_than 
+472e 67e1437c store 2 ,mem_remote_rx_max_octets 
+472f 6fe14380 fetch 2 ,mem_remote_tx_max_octets 
+4730 68494384 fetcht 2 ,mem_local_rx_max_octets 
+4731 204074be call not_greater_than 
+4732 67e14380 store 2 ,mem_remote_tx_max_octets 
+4733 20600000 rtn 
+
+le_parse_phy_req:
+4734 2020477c branch le_send_phy_rsp 
+
+le_parse_phy_update_ind:
+4735 efe10006 ifetch 2 ,contr 
+4736 67e1019a store 2 ,mem_le_new_m2s_phy 
+4737 efe10006 ifetch 2 ,contr 
+4738 67e10183 store 2 ,mem_le_instant 
+4739 207a0000 rtn blank 
+473a 6fe08163 fetch 1 ,mem_le_state 
+473b 79207e07 set1 lestate_update_phy ,pdata 
+473c 67e08163 store 1 ,mem_le_state 
+473d 20600000 rtn 
+
+le_send_terminate_ind_user_terminated:
+473e da600013 arg error_remote_user_terminated_connection ,regc 
+
+le_send_terminate_ind:
+473f da200002 arg 2 ,rega 
+4740 da400002 arg ll_terminate_ind ,regb 
+4741 20404199 call le_fifo_malloc_tx_ll 
+4742 1a627e00 copy regc ,pdata 
+4743 e7e08005 istore 1 ,contw 
+4744 20600000 rtn 
+
+le_send_enc_rsp:
+4745 d8a042c2 arg mem_le_skds ,contw 
+4746 18007208 force 8 ,loopcnt 
+4747 204074e4 call generate_random_loop 
+4748 d8a04414 arg mem_ccm_ivs ,contw 
+4749 18007204 force 4 ,loopcnt 
+474a 204074e4 call generate_random_loop 
+474b da20000d arg 13 ,rega 
+474c da400004 arg ll_enc_rsp ,regb 
+474d 20404199 call le_fifo_malloc_tx_ll 
+474e 6fe442c2 fetch 8 ,mem_le_skds 
+474f e7e40005 istore 8 ,contw 
+4750 6fe24414 fetch 4 ,mem_ccm_ivs 
+4751 e7e20005 istore 4 ,contw 
+4752 20600000 rtn 
+
+le_send_start_enc_req:
+4753 7042d205 jam flag_le_send_start_enc_req ,mem_le_enc_state 
+4754 da400005 arg ll_start_enc_req ,regb 
+4755 20204786 branch le_send_ll_one_lenth 
+
+le_send_start_enc_rsp:
+4756 da400006 arg ll_start_enc_rsp ,regb 
+4757 20204786 branch le_send_ll_one_lenth 
+
+le_send_unknown_rsp:
+4758 da200002 arg 2 ,rega 
+4759 da400007 arg ll_unknown_rsp ,regb 
+475a 20404199 call le_fifo_malloc_tx_ll 
+475b e2608005 istorer regc ,1 ,contw 
+475c 20600000 rtn 
+
+le_send_feature_rsp:
+475d da200009 arg 9 ,rega 
+475e da400009 arg ll_feature_rsp ,regb 
+475f 20404199 call le_fifo_malloc_tx_ll 
+4760 6fe44372 fetch 8 ,mem_le_local_feature 
+4761 1fe1fe01 or pdata ,fun_ll_feature_le_encryption ,pdata 
+4762 e7e40005 istore 8 ,contw 
+4763 20600000 rtn 
+
+le_send_pause_enc_rsp:
+4764 da40000b arg ll_pause_enc_rsp ,regb 
+4765 20204786 branch le_send_ll_one_lenth 
+
+le_send_version_ind:
+4766 da200006 arg 6 ,rega 
+4767 da40000c arg ll_version_ind ,regb 
+4768 20404199 call le_fifo_malloc_tx_ll 
+4769 6fe2c120 fetch 5 ,mem_version 
+476a e7e28005 istore 5 ,contw 
+476b 20600000 rtn 
+
+le_send_reject_ind:
+476c da200002 arg 2 ,rega 
+476d da40000d arg ll_reject_ind ,regb 
+476e 20404199 call le_fifo_malloc_tx_ll 
+476f 58000006 setarg le_err_pin_or_key_missing 
+4770 e7e08005 istore 1 ,contw 
+4771 20600000 rtn 
+
+le_send_ping_rsp:
+4772 da400013 arg ll_ping_rsp ,regb 
+4773 20204786 branch le_send_ll_one_lenth 
+
+le_send_data_length_req:
+4774 da400014 arg ll_length_req ,regb 
+4775 20204777 branch le_send_data_length 
+
+le_send_data_length_res:
+4776 da400015 arg ll_length_rsp ,regb 
+
+le_send_data_length:
+4777 da200009 arg 9 ,rega 
+4778 20404199 call le_fifo_malloc_tx_ll 
+4779 6fe44384 fetch 8 ,mem_local_rx_max_octets 
+477a e7e40005 istore 8 ,contw 
+477b 20600000 rtn 
+
+le_send_phy_rsp:
+477c da200003 arg 3 ,rega 
+477d da400017 arg ll_phy_rsp ,regb 
+477e 20404199 call le_fifo_malloc_tx_ll 
+477f 6fe0c37a fetch 1 ,mem_le_tx_phys 
+4780 1fe17e07 and pdata ,0x07 ,pdata 
+4781 e7e08005 istore 1 ,contw 
+4782 6fe0c37b fetch 1 ,mem_le_rx_phys 
+4783 1fe17e07 and pdata ,0x07 ,pdata 
+4784 e7e08005 istore 1 ,contw 
+4785 20600000 rtn 
+
+le_send_ll_one_lenth:
+4786 da200001 arg 1 ,rega 
+4787 20204199 branch le_fifo_malloc_tx_ll 
+
+g24_dispatch:
+4788 47184026 bpatchx patch26_0 ,mem_patch26 
+4789 c513ca1e bmark1 mark_24g_rxmode ,g24_receive_dispatch 
+478a 20204c62 branch g24_transmit_dispatch 
+
+g24_prep:
+478b 4718c026 bpatchx patch26_1 ,mem_patch26 
+478c 7844fc00 disable enable_crc 
+478d 7843fc00 disable enable_white 
+478e 58555555 setarg 0x555555 
+478f 98001e00 iforce crc24_init 
+4790 6fe0c4d8 fetch 1 ,mem_24g_ch 
+4791 20203d0c branch le_prep_next 
+
+g24_receive_packet:
+4792 47194026 bpatchx patch26_2 ,mem_patch26 
+4793 6fe0c502 fetch 1 ,mem_24g_rx_phy 
+4794 20403ce0 call le_enable_phy_by_pdata 
+4795 6fe244da fetch 4 ,mem_24g_addr 
+4796 98001200 iforce access 
+4797 20403925 call set_sync_on 
+4798 6848c4d8 fetcht 1 ,mem_24g_ch 
+4799 20403d11 call le_rf_rx_enable 
+
+g24_receive_rxon:
+479a 2040478b call g24_prep 
+479b c597c79f bmark0 mark_ble_lr ,g24_receive_nolr 
+479c 783cfc00 pulse dewhiten_code_calc 
+479d 2000001e nop 30 
+479e 2040478b call g24_prep 
+
+g24_receive_nolr:
+479f 7857fc00 disable user3 
+47a0 7826fc00 enable decode_fec0 
+47a1 7830fc00 enable is_rx 
+47a2 78507c00 disable is_tx 
+47a3 78287c00 enable swfine 
+47a4 6fe144d6 fetch 2 ,mem_24g_rx_window 
+47a5 98003600 iforce stop_watch 
+47a6 37c18400 correlate null ,timeout 
+47a7 242c47f9 nbranch g24_sync_timeout ,sync 
+47a8 204065a4 call rf_debug_rx_sync_line 
+47a9 c517c7ae bmark1 mark_ble_lr ,g24_receive_skip_fec1 
+47aa 6fe0c515 fetch 1 ,mem_24g_disable_fec1 
+47ab 243a47ae nbranch g24_receive_skip_fec1 ,blank 
+47ac 7846fc00 disable decode_fec0 
+47ad 7825fc00 enable decode_fec1 
+
+g24_receive_skip_fec1:
+47ae 7823fc00 enable enable_white 
+47af 7824fc00 enable enable_crc 
+47b0 204047f6 call g24_receive_byte 
+47b1 67e0c4f8 store 1 ,mem_24g_get_syncword_crc8 
+47b2 6848c4f7 fetcht 1 ,mem_24g_syncword_crc8 
+47b3 98467c00 isub temp ,null 
+47b4 2422c801 nbranch g24_hec_error ,zero 
+47b5 4719c026 bpatchx patch26_3 ,mem_patch26 
+47b6 7858fc00 disable user7 
+47b7 280ffe2f isolate1 mark_ble_lr ,mark 
+47b8 2040c7e8 call g24_lr_receive_pdu_len ,true 
+47b9 2038c803 branch g24_lr_len_error ,user7 
+47ba 204047f6 call g24_receive_byte 
+47bb 67e0c442 store 1 ,mem_24g_rxbuf 
+47bc c513c7c1 bmark1 mark_24g_rxmode ,g24_receive_skip 
+47bd 6fe0c442 fetch 1 ,mem_24g_rxbuf 
+47be 6848c4d4 fetcht 1 ,mem_24g_data_type 
+47bf a8400e00 icompare bits_data ,temp 
+47c0 2420c805 nbranch g24_type_error ,true 
+
+g24_receive_skip:
+47c1 204047f6 call g24_receive_byte 
+47c2 280ffe2f isolate1 mark_ble_lr ,mark 
+47c3 2040c7f1 call g24_lr_receive_payload_len ,true 
+47c4 e7e08005 istore 1 ,contw 
+47c5 1fe97e00 rshift3 pdata ,pdata 
+47c6 1fe67c1f sub pdata ,0x1f ,null 
+47c7 24214807 nbranch g24_len_over_error ,positive 
+47c8 1fe27200 copy pdata ,loopcnt 
+47c9 2022c7cd branch g24rx_nopayload ,zero 
+
+g24rx_loop:
+47ca 204047f6 call g24_receive_byte 
+47cb e7e08005 istore 1 ,contw 
+47cc c20047ca loop g24rx_loop 
+
+g24rx_nopayload:
+47cd c513c7d2 bmark1 mark_24g_rxmode ,g24_receive_skip_rssi 
+47ce 18a22200 copy contw ,rega 
+47cf 204047f6 call g24_receive_byte 
+47d0 67e0c51e store 1 ,mem_rssi_hex_received 
+47d1 1a220a00 copy rega ,contw 
+
+g24_receive_skip_rssi:
+47d2 09800018 parse demod ,bucket ,24 
+47d3 1fef7e00 rshift32 pdata ,pdata 
+47d4 1ff17e00 rshift16 pdata ,pdata 
+47d5 e7e18005 istore 3 ,contw 
+47d6 6fe0c515 fetch 1 ,mem_24g_disable_fec1 
+47d7 243a47e6 nbranch g24_receive_skip_disable_fec1 ,blank 
+47d8 7845fc00 disable decode_fec1 
+
+g24_receive_skip_next:
+47d9 280ffe27 isolate1 mark_24g_rxmode ,mark 
+47da 2040cc37 call save_rssi_dec ,true 
+47db 20234809 branch g24_crc_error ,crc_failed 
+47dc 204065a3 call rf_debug_rx_crc_line 
+47dd 471a4026 bpatchx patch26_4 ,mem_patch26 
+47de 7837fc00 enable user3 
+47df 20403dfc call le_match_set_txfreq 
+47e0 c6138000 rtnmark1 mark_24g_rxmode 
+47e1 6fe0c51e fetch 1 ,mem_rssi_hex_received 
+47e2 6848c575 fetcht 1 ,mem_rssi_hex_received_max_value 
+47e3 98467c00 isub temp ,null 
+47e4 204174c0 call copy_temp2pdata ,positive 
+47e5 20204c3a branch rssi_signal 
+
+g24_receive_skip_disable_fec1:
+47e6 7846fc00 disable decode_fec0 
+47e7 202047d9 branch g24_receive_skip_next 
+
+g24_lr_receive_pdu_len:
+47e8 204047f6 call g24_receive_byte 
+47e9 1fe67c01 sub pdata ,1 ,null 
+47ea 202174d0 branch enable_user7 ,positive 
+47eb 1fe0fffe increase -2 ,pdata 
+47ec c513c7ef bmark1 mark_24g_rxmode ,g24_lr_receive_pdu_norssi 
+47ed 203a74d0 branch enable_user7 ,blank 
+47ee 1fe0ffff increase -1 ,pdata 
+
+g24_lr_receive_pdu_norssi:
+47ef 67e084cc store 1 ,mem_temp 
+47f0 20600000 rtn 
+
+g24_lr_receive_payload_len:
+47f1 1fe17e07 and_into 0x07 ,pdata 
+47f2 684884cc fetcht 1 ,mem_temp 
+47f3 18498400 lshift3 temp ,temp 
+47f4 9841fe00 ior temp ,pdata 
+47f5 20600000 rtn 
+
+g24_receive_byte:
+47f6 09800008 parse demod ,bucket ,8 
+47f7 19897e00 rshift3 pwindow ,pdata 
+47f8 20600000 rtn 
+
+g24_sync_timeout:
+47f9 70451601 jam err_sync_to ,mem_24g_off_type 
+47fa 280ffe27 isolate1 mark_24g_rxmode ,mark 
+47fb 2040cc52 call rssi_noise ,true 
+
+g24_end_of_packet:
+47fc 471ac026 bpatchx patch26_5 ,mem_patch26 
+47fd 20403d00 call le_disable 
+47fe 784dfc00 disable encode_fec1 
+47ff 7845fc00 disable decode_fec1 
+4800 202038cc branch end_of_packet 
+
+g24_hec_error:
+4801 70451602 jam err_hec ,mem_24g_off_type 
+4802 202047fc branch g24_end_of_packet 
+
+g24_lr_len_error:
+4803 70451603 jam err_lr_len ,mem_24g_off_type 
+4804 202047fc branch g24_end_of_packet 
+
+g24_type_error:
+4805 70451604 jam err_type ,mem_24g_off_type 
+4806 202047fc branch g24_end_of_packet 
+
+g24_len_over_error:
+4807 70451605 jam err_len_over ,mem_24g_off_type 
+4808 202047fc branch g24_end_of_packet 
+
+g24_crc_error:
+4809 70451606 jam err_crc ,mem_24g_off_type 
+480a 202047fc branch g24_end_of_packet 
+
+g24_set_freq_tx:
+480b 20403925 call set_sync_on 
+480c 6848c4d8 fetcht 1 ,mem_24g_ch 
+480d 202039c9 branch set_freq_tx 
+
+g24_transmit:
+480e 471b4026 bpatchx patch26_6 ,mem_patch26 
+480f 6fe0c503 fetch 1 ,mem_24g_tx_phy 
+4810 20403ce0 call le_enable_phy_by_pdata 
+4811 6fe244da fetch 4 ,mem_24g_addr 
+4812 98001200 iforce access 
+4813 2040478b call g24_prep 
+4814 2040480b call g24_set_freq_tx 
+4815 79202a00 set1 txgfsk ,radio_ctrl 
+4816 782efc00 enable encode_fec0 
+4817 78307c00 enable is_tx 
+4818 7850fc00 disable is_rx 
+4819 204065aa call rf_debug_tx_on_line 
+481a 785d7c00 disable lr_s2en 
+481b c517c840 bmark1 mark_ble_lr ,g24_transmit_lr 
+481c c516c852 bmark1 mark_ble_2m ,g24_transmit_2m 
+481d 19317e00 rshift16 access ,pdata 
+481e 1fecfe00 rshift8 pdata ,pdata 
+481f 1ff1fe00 rshift4 pdata ,pdata 
+4820 08008628 inject mod ,40 
+
+g24_transmit_packet:
+4821 471bc026 bpatchx patch26_7 ,mem_patch26 
+4822 c517c827 bmark1 mark_ble_lr ,g24_transmit_nolr 
+4823 6fe0c515 fetch 1 ,mem_24g_disable_fec1 
+4824 243a4827 nbranch g24_transmit_nolr ,blank 
+4825 784efc00 disable encode_fec0 
+4826 782dfc00 enable encode_fec1 
+
+g24_transmit_nolr:
+4827 7823fc00 enable enable_white 
+4828 7824fc00 enable enable_crc 
+4829 6fe0c4d5 fetch 1 ,mem_24g_txlen 
+482a 98007200 iforce loopcnt 
+482b d8c04484 arg mem_24g_txpayload ,contr 
+
+g24tr_loop:
+482c efe08006 ifetch 1 ,contr 
+482d 08008608 inject mod ,8 
+482e c200482c loop g24tr_loop 
+482f 78247c00 enable enable_parity 
+4830 08008618 inject mod ,24 
+4831 78447c00 disable enable_parity 
+4832 c597c836 bmark0 mark_ble_lr ,g24_transmit_skip 
+4833 7843fc00 disable enable_white 
+4834 58000000 setarg 0 
+4835 08008603 inject mod ,3 
+
+g24_transmit_skip:
+4836 37d38200 until null ,tx_clear 
+4837 20000064 nop 100 
+4838 785d7c00 disable lr_s2en 
+4839 784efc00 disable encode_fec0 
+483a 6fe0c515 fetch 1 ,mem_24g_disable_fec1 
+483b 243a483d nbranch g24_transmit_skip_disable_fec1 ,blank 
+483c 784dfc00 disable encode_fec1 
+
+g24_transmit_skip_disable_fec1:
+483d 785c7c00 disable encode_fec3 
+483e 20403925 call set_sync_on 
+483f 202065a8 branch rf_debug_tx_off_line 
+
+g24_transmit_lr:
+4840 df20000a arg 10 ,loopcnt 
+
+g24_transmit_lr_preamble_loop:
+4841 5800003c setarg 0x3c 
+4842 08008608 inject mod ,8 
+4843 c2004841 loop g24_transmit_lr_preamble_loop 
+4844 784efc00 disable encode_fec0 
+4845 783c7c00 enable encode_fec3 
+4846 19317e00 rshift16 access ,pdata 
+4847 1ff17e00 rshift16 pdata ,pdata 
+4848 1ff1fe00 rshift4 pdata ,pdata 
+4849 08008620 inject mod ,32 
+484a c517484f bmark1 mark_ble_lr_s8 ,g24_transmit_lr_s8 
+
+g24_transmit_lr_s2:
+484b 58000001 setarg 1 
+484c 08008605 inject mod ,5 
+484d 783d7c00 enable lr_s2en 
+484e 20204821 branch g24_transmit_packet 
+
+g24_transmit_lr_s8:
+484f 58000000 setarg 0 
+4850 08008605 inject mod ,5 
+4851 20204821 branch g24_transmit_packet 
+
+g24_transmit_2m:
+4852 6fe0c11d fetch 1 ,mem_system_clk 
+4853 1fe37200 rshift pdata ,loopcnt 
+
+g24_transmit_2m_dealy:
+4854 20000002 nop 2 
+4855 c2004854 loop g24_transmit_2m_dealy 
+4856 19317e00 rshift16 access ,pdata 
+4857 1fecfe00 rshift8 pdata ,pdata 
+4858 1ff18400 rshift4 pdata ,temp 
+4859 18427e00 copy temp ,pdata 
+485a 08008608 inject mod ,8 
+485b 18427e00 copy temp ,pdata 
+485c 08008628 inject mod ,40 
+485d 20204821 branch g24_transmit_packet 
+
+g24_transmit_prep:
+485e 471c4027 bpatchx patch27_0 ,mem_patch27 
+485f 6fe0c503 fetch 1 ,mem_24g_tx_phy 
+4860 c281487f bbit1 bit_le_coded_phy ,g24_lr_transmit_prep 
+4861 6fe0c4d3 fetch 1 ,mem_24g_datalen 
+4862 1fe0fe03 increase 3 ,pdata 
+4863 67e0c4d5 store 1 ,mem_24g_txlen 
+4864 6fe0c4f7 fetch 1 ,mem_24g_syncword_crc8 
+4865 67e0c484 store 1 ,mem_24g_txpayload 
+4866 6fe0c4d4 fetch 1 ,mem_24g_data_type 
+4867 e7e08005 istore 1 ,contw 
+4868 6fe0c4d3 fetch 1 ,mem_24g_datalen 
+
+g24_transmit_prep_pdu:
+4869 1fe9fe00 lshift3 pdata ,pdata 
+486a 6848c4c9 fetcht 1 ,mem_24g_pid 
+486b 18410403 and temp ,0x03 ,temp 
+486c 18438400 lshift temp ,temp 
+486d 9841fe00 ior temp ,pdata 
+486e 6848c4ca fetcht 1 ,mem_24g_no_ack 
+486f 9840fe00 iadd temp ,pdata 
+4870 e7e08005 istore 1 ,contw 
+4871 6fe0c4d3 fetch 1 ,mem_24g_datalen 
+4872 98007200 iforce loopcnt 
+4873 d8c04464 arg mem_24g_txbuf ,contr 
+4874 20407419 call memcpy 
+4875 471cc027 bpatchx patch27_1 ,mem_patch27 
+4876 c6938000 rtnmark0 mark_24g_rxmode 
+4877 6fe08030 fetch 1 ,mem_rssi_hex 
+4878 e7e08005 istore 1 ,contw 
+4879 6fe0c503 fetch 1 ,mem_24g_tx_phy 
+487a c3810000 rtnbit1 bit_le_coded_phy 
+487b 6fe0c4d5 fetch 1 ,mem_24g_txlen 
+487c 1fe0fe01 increase 1 ,pdata 
+487d 67e0c4d5 store 1 ,mem_24g_txlen 
+487e 20600000 rtn 
+
+g24_lr_transmit_prep:
+487f 6fe0c4d3 fetch 1 ,mem_24g_datalen 
+4880 1fe0fe04 increase 4 ,pdata 
+4881 c593c883 bmark0 mark_24g_rxmode ,g24_lr_transmit_prep_skip 
+4882 1fe0fe01 increase 1 ,pdata 
+
+g24_lr_transmit_prep_skip:
+4883 67e0c4d5 store 1 ,mem_24g_txlen 
+4884 6fe0c4f7 fetch 1 ,mem_24g_syncword_crc8 
+4885 67e0c484 store 1 ,mem_24g_txpayload 
+4886 6fe0c4d5 fetch 1 ,mem_24g_txlen 
+4887 1fe0fffe increase -2 ,pdata 
+4888 e7e08005 istore 1 ,contw 
+4889 6fe0c4d4 fetch 1 ,mem_24g_data_type 
+488a e7e08005 istore 1 ,contw 
+488b 58000000 setarg 0 
+488c 20204869 branch g24_transmit_prep_pdu 
+
+g24_read_len_pid_crc:
+488d 471d4027 bpatchx patch27_2 ,mem_patch27 
+488e 6fe0c443 fetch 1 ,mem_24g_rxbuf + 1 
+488f 1fe97e00 rshift3 pdata ,pdata 
+4890 67e0c4c8 store 1 ,mem_24g_rxdata_length 
+4891 1fe0fe01 increase 1 ,pdata 
+4892 d8c04443 arg mem_24g_rxbuf + 1 ,contr 
+4893 98c08c00 iadd contr ,contr 
+4894 efe18006 ifetch 3 ,contr 
+4895 67e1c4cb store 3 ,mem_24g_sta_crc 
+4896 6fe0c443 fetch 1 ,mem_24g_rxbuf + 1 
+4897 1fe37e00 rshift pdata ,pdata 
+4898 1fe17e03 and pdata ,0x03 ,pdata 
+4899 67e0c4d1 store 1 ,mem_24g_sta_pid 
+489a 20600000 rtn 
+
+g24_ch:
+489b 471dc027 bpatchx patch27_3 ,mem_patch27 
+489c 6848c4d9 fetcht 1 ,mem_24g_current_ch_number 
+489d 204048a0 call g24_ch_map_size 
+489e 6048c4d9 storet 1 ,mem_24g_current_ch_number 
+489f 20600000 rtn 
+
+g24_ch_map_size:
+48a0 471e4027 bpatchx patch27_4 ,mem_patch27 
+48a1 204048a5 call g24_ch_calc 
+48a2 18408401 increase 1 ,temp 
+48a3 18410403 and_into 3 ,temp 
+48a4 20600000 rtn 
+
+g24_ch_calc:
+48a5 471ec027 bpatchx patch27_5 ,mem_patch27 
+48a6 6fe0c4da fetch 1 ,mem_24g_addr 
+48a7 1fe17e03 and_into 0x03 ,pdata 
+48a8 1fefa204 mul32 pdata ,4 ,rega 
+48a9 580044de setarg mem_24g_ch_map1 
+48aa 9a20fe00 iadd rega ,pdata 
+48ab 98408c00 iadd temp ,contr 
+48ac efe08006 ifetch 1 ,contr 
+48ad 67e0c4d8 store 1 ,mem_24g_ch 
+48ae 20600000 rtn 
+
+g24_update_addr_and_synccrc8:
+48af 67e244da store 4 ,mem_24g_addr 
+48b0 471f4027 bpatchx patch27_6 ,mem_patch27 
+
+g24_syncword_crc8:
+48b1 da200000 arg 0 ,rega 
+48b2 df200004 arg 4 ,loopcnt 
+48b3 d8c044da arg mem_24g_addr ,contr 
+
+g24_syncword_crc8_loop:
+48b4 efe08006 ifetch 1 ,contr 
+48b5 9a20a200 iadd rega ,rega 
+48b6 c20048b4 loop g24_syncword_crc8_loop 
+48b7 1a227e00 copy rega ,pdata 
+48b8 67e144f5 store 2 ,mem_24g_syncword 
+48b9 6fe0c4f5 fetch 1 ,mem_24g_syncword 
+48ba 6848c4f6 fetcht 1 ,mem_24g_syncword + 1 
+48bb 9840fe00 iadd temp ,pdata 
+48bc 67e0c4f7 store 1 ,mem_24g_syncword_crc8 
+48bd 20600000 rtn 
+
+g24_timer_check:
+48be 471fc027 bpatchx patch27_7 ,mem_patch27 
+48bf 204074ca call disable_user 
+48c0 684a44ee fetcht 4 ,mem_24g_tx_btclk 
+48c1 1c427e00 copy clkn_bt ,pdata 
+48c2 98467c00 isub temp ,null 
+48c3 244148ce ncall g24_timer_timeout ,positive 
+48c4 1fe22400 copy pdata ,regb 
+48c5 6fe244ee fetch 4 ,mem_24g_tx_btclk 
+48c6 6848c4f2 fetcht 1 ,mem_24g_interval 
+48c7 98408400 iadd temp ,temp 
+48c8 1a427e00 copy regb ,pdata 
+48c9 98467c00 isub temp ,null 
+48ca 24610000 nrtn positive 
+48cb 793ffe1c set0 28 ,pdata 
+48cc 67e244ee store 4 ,mem_24g_tx_btclk 
+48cd 202074c8 branch enable_user 
+
+g24_timer_timeout:
+48ce 20628000 rtn zero 
+48cf 79207e1c set1 28 ,pdata 
+48d0 20600000 rtn 
+
+g24_timer_init:
+48d1 58000000 setarg 0 
+48d2 67e244ee store 4 ,mem_24g_tx_btclk 
+48d3 20600000 rtn 
+
+g24_chmap_param_init:
+48d4 47204028 bpatchx patch28_0 ,mem_patch28 
+48d5 38001300 setsect 0 ,0x1300 
+48d6 3805908b setsect 1 ,0x1908b 
+48d7 380b6150 setsect 2 ,0x36150 
+48d8 380c3d20 setsect 3 ,0x3d20 
+48d9 67e4c4de store 9 ,mem_24g_ch_map1 
+48da 38003a1a setsect 0 ,0x3a1a 
+48db 3804c453 setsect 1 ,0xc453 
+48dc 3808d312 setsect 2 ,0xd312 
+48dd 380c0001 setsect 3 ,0x1 
+48de e7e38005 istore 7 ,contw 
+48df 6fe0c504 fetch 1 ,mem_24g_ch_map_update 
+48e0 207a0000 rtn blank 
+48e1 d8c04505 arg mem_24g_ch_update_map1 ,contr 
+48e2 d8a044de arg mem_24g_ch_map1 ,contw 
+48e3 202073d2 branch memcpy16 
+
+g24_chamap_param_update:
+48e4 4720c028 bpatchx patch28_1 ,mem_patch28 
+48e5 584e001e setarg 0x4e001e 
+48e6 67e1c506 store 3 ,mem_24g_ch_update_map1 + 1 
+48e7 58032303 setarg 0x032303 
+48e8 e7e18005 istore 3 ,contw 
+48e9 58250642 setarg 0x250642 
+48ea e7e18005 istore 3 ,contw 
+48eb 58094c06 setarg 0x094c06 
+48ec e7e18005 istore 3 ,contw 
+48ed 583c0927 setarg 0x3c0927 
+48ee e7e18005 istore 3 ,contw 
+48ef 70450401 jam 1 ,mem_24g_ch_map_update 
+48f0 20600000 rtn 
+
+g24_rx_window_init:
+48f1 47214028 bpatchx patch28_2 ,mem_patch28 
+48f2 d8406978 arg 0x6978 ,temp 
+48f3 c513c8f8 bmark1 mark_24g_rxmode ,g24_rx_window_store 
+48f4 d84012c0 arg 0x12c0 ,temp 
+48f5 6fe0c502 fetch 1 ,mem_24g_rx_phy 
+48f6 c30148f8 bbit0 2 ,g24_rx_window_store 
+48f7 d8402ee0 arg 0x2ee0 ,temp 
+
+g24_rx_window_store:
+48f8 604944d6 storet 2 ,mem_24g_rx_window 
+48f9 20600000 rtn 
+
+g24_enable_1m:
+48fa 70450201 jam 0x01 ,mem_24g_rx_phy 
+48fb 70450301 jam 0x01 ,mem_24g_tx_phy 
+48fc 20600000 rtn 
+
+g24_enable_2m:
+48fd 70450202 jam 0x02 ,mem_24g_rx_phy 
+48fe 70450302 jam 0x02 ,mem_24g_tx_phy 
+48ff 20600000 rtn 
+
+g24_pair_param_init:
+4900 4721c028 bpatchx patch28_3 ,mem_patch28 
+4901 70451b4e jam 0x4e ,mem_24g_pair_ch 
+4902 58101520 setarg 0x101520 
+4903 67e1c517 store 3 ,mem_24g_pair_addr 
+4904 58000005 setarg 0x05 
+4905 e7e08005 istore 1 ,contw 
+4906 20600000 rtn 
+
+g24_pair_timeout_timer:
+4907 da604523 arg mem_24g_pair_timeout ,regc 
+4908 da404cdb arg g24_stop_24g_mode ,regb 
+4909 20204dd3 branch timer_single_step_2b 
+
+g24_pair_start:
+490a 79200026 set1 mark_24g ,mark 
+490b 6fe0c547 fetch 1 ,mem_24g_conn_sm 
+490c 793ffe02 set0 state_24g_reconn ,pdata 
+490d 79207e01 set1 state_24g_pair ,pdata 
+490e 67e0c547 store 1 ,mem_24g_conn_sm 
+490f 58000000 setarg 0 
+4910 67e14529 store 2 ,mem_24g_reconn_timeout 
+4911 6fe14521 fetch 2 ,mem_24g_pair_timeout_init 
+4912 67e14523 store 2 ,mem_24g_pair_timeout 
+4913 70452000 jam 0 ,mem_24g_pair_no_ack 
+4914 2040494f call g24_pair_sm_reinit 
+
+g24_pair_init_param:
+4915 7044c900 jam 0 ,mem_24g_pid 
+4916 6fe0c51b fetch 1 ,mem_24g_pair_ch 
+4917 67e0c4d8 store 1 ,mem_24g_ch 
+4918 6fe0c51c fetch 1 ,mem_24g_pair_tx_power 
+4919 67e0c116 store 1 ,mem_tx_power 
+491a 6fe24517 fetch 4 ,mem_24g_pair_addr 
+491b 202048af branch g24_update_addr_and_synccrc8 
+
+g24_pair_dispatch:
+491c 47224028 bpatchx patch28_4 ,mem_patch28 
+491d 70452d00 jam default_24g_device ,mem_24g_reconn_type 
+491e 6fe14525 fetch 2 ,mem_24g_pair_count 
+491f 1fe0fe01 increase 1 ,pdata 
+4920 67e14525 store 2 ,mem_24g_pair_count 
+4921 6fe0c525 fetch 1 ,mem_24g_pair_count 
+4922 1fe17eff and pdata ,0xff ,pdata 
+4923 247a0000 nrtn blank 
+4924 6fe0c51f fetch 1 ,mem_24g_pair_sm 
+4925 c07fc971 beq state_24g_pairing_success ,g24_pair_exit 
+4926 c000c92b beq state_24g_pairing_1 ,g24_pair_sm_1 
+4927 c001492d beq state_24g_pairing_2 ,g24_pair_sm_2 
+4928 c001c933 beq state_24g_pairing_3 ,g24_pair_sm_3 
+4929 c0024939 beq state_24g_pairing_4 ,g24_pair_sm_4 
+492a 20600000 rtn 
+
+g24_pair_sm_1:
+492b 704464ff jam datatype_attemp ,mem_24g_txbuf 
+492c 2020493a branch g24_pair_sm_prep 
+
+g24_pair_sm_2:
+492d 6fe0c4f9 fetch 1 ,mem_24g_pair_switch 
+492e 203a4931 branch g24_pair_sm_2_skip ,blank 
+492f 6fe2454f fetch 4 ,mem_24g_device_addr 
+4930 204048af call g24_update_addr_and_synccrc8 
+
+g24_pair_sm_2_skip:
+4931 704464aa jam datatype_bind ,mem_24g_txbuf 
+4932 2020493a branch g24_pair_sm_prep 
+
+g24_pair_sm_3:
+4933 70446455 jam datatype_config ,mem_24g_txbuf 
+4934 6fe0c4f9 fetch 1 ,mem_24g_pair_switch 
+4935 203a493a branch g24_pair_sm_prep ,blank 
+4936 6fe24533 fetch 4 ,mem_24g_receiver_addr 
+4937 67e24466 store 4 ,mem_24g_txbuf + 2 
+4938 2020493c branch g24_pair_sm_common 
+
+g24_pair_sm_4:
+4939 70446422 jam datatype_ok ,mem_24g_txbuf 
+
+g24_pair_sm_prep:
+493a 6fe2454f fetch 4 ,mem_24g_device_addr 
+493b 67e24466 store 4 ,mem_24g_txbuf + 2 
+
+g24_pair_sm_common:
+493c 6fe0c4d4 fetch 1 ,mem_24g_data_type 
+493d 1fe17e07 and_into bits_data ,pdata 
+493e 67e0c465 store 1 ,mem_24g_txbuf + 1 
+493f 70446a00 jam 0 ,mem_24g_txbuf + 6 
+4940 7044d307 jam 7 ,mem_24g_datalen 
+4941 2040485e call g24_transmit_prep 
+4942 20404cb0 call g24_transmit_receive_ack 
+4943 246c0000 nrtn sync 
+4944 24778000 nrtn user3 
+4945 20404bef call g24_txbuf_clear 
+4946 20404ccf call g24_ackpayload_parse 
+4947 4722c028 bpatchx patch28_5 ,mem_patch28 
+4948 6fe0c51f fetch 1 ,mem_24g_pair_sm 
+4949 c17f8000 rtneq state_24g_pairing_success 
+494a c000c954 beq state_24g_pairing_1 ,g24_pair_sm_1_waiting_ack 
+494b c0014956 beq state_24g_pairing_2 ,g24_pair_sm_2_waiting_ack 
+494c c001c95c beq state_24g_pairing_3 ,g24_pair_sm_3_waiting_ack 
+494d c0024964 beq state_24g_pairing_4 ,g24_pair_sm_4_waiting_ack 
+494e 20600000 rtn 
+
+g24_pair_sm_reinit:
+494f 70451f02 jam state_24g_pairing_2 ,mem_24g_pair_sm 
+4950 6fe0c4f9 fetch 1 ,mem_24g_pair_switch 
+4951 207a0000 rtn blank 
+4952 70451f01 jam state_24g_pairing_1 ,mem_24g_pair_sm 
+4953 20600000 rtn 
+
+g24_pair_sm_1_waiting_ack:
+4954 70451f02 jam state_24g_pairing_2 ,mem_24g_pair_sm 
+4955 20204cab branch g24_transmit_abandon 
+
+g24_pair_sm_2_waiting_ack:
+4956 6fe0c4f9 fetch 1 ,mem_24g_pair_switch 
+4957 203a495a branch g24_pair_sm_2_waiting_ack_skip ,blank 
+4958 6fe244aa fetch 4 ,mem_24g_rxpayload + 2 
+4959 67e24533 store 4 ,mem_24g_receiver_addr 
+
+g24_pair_sm_2_waiting_ack_skip:
+495a 70451f03 jam state_24g_pairing_3 ,mem_24g_pair_sm 
+495b 20204cab branch g24_transmit_abandon 
+
+g24_pair_sm_3_waiting_ack:
+495c 6fe0c4f9 fetch 1 ,mem_24g_pair_switch 
+495d 203a4962 branch g24_pair_sm_3_waiting_ack_skip ,blank 
+495e 6fe244aa fetch 4 ,mem_24g_rxpayload + 2 
+495f 684a454f fetcht 4 ,mem_24g_device_addr 
+4960 98467c00 isub temp ,null 
+4961 24628000 nrtn zero 
+
+g24_pair_sm_3_waiting_ack_skip:
+4962 70451f04 jam state_24g_pairing_4 ,mem_24g_pair_sm 
+4963 20204cab branch g24_transmit_abandon 
+
+g24_pair_sm_4_waiting_ack:
+4964 6fe0c4f9 fetch 1 ,mem_24g_pair_switch 
+4965 203a496a branch g24_pair_sm_4_waiting_ack_skip ,blank 
+4966 6fe244aa fetch 4 ,mem_24g_rxpayload + 2 
+4967 684a4533 fetcht 4 ,mem_24g_receiver_addr 
+4968 98467c00 isub temp ,null 
+4969 24628000 nrtn zero 
+
+g24_pair_sm_4_waiting_ack_skip:
+496a 70451fff jam state_24g_pairing_success ,mem_24g_pair_sm 
+496b 7004c339 jam bt_evt_24g_pairing_complete ,mem_fifo_temp 
+496c 20406f7b call ui_ipc_send_event 
+496d 58000000 setarg 0 
+496e 67e14523 store 2 ,mem_24g_pair_timeout 
+496f 6fe244aa fetch 4 ,mem_24g_rxpayload + 2 
+4970 204048af call g24_update_addr_and_synccrc8 
+
+g24_pair_exit:
+4971 6fe0c547 fetch 1 ,mem_24g_conn_sm 
+4972 793ffe01 set0 state_24g_pair ,pdata 
+4973 67e0c547 store 1 ,mem_24g_conn_sm 
+4974 20204cab branch g24_transmit_abandon 
+
+g24_bind_mode_enable:
+4975 70456101 jam dongle_bind ,mem_24g_work_mode 
+4976 70456000 jam clear_init ,mem_24g_mode_init 
+4977 20600000 rtn 
+
+g24_bind_init:
+4978 6fe0c560 fetch 1 ,mem_24g_mode_init 
+4979 c3808000 rtnbit1 dongle_bind 
+497a 79207e01 set1 dongle_bind ,pdata 
+497b 67e0c560 store 1 ,mem_24g_mode_init 
+497c 58000000 setarg 0 
+497d 67e1c51e store 3 ,mem_24g_device1_bind_step 
+497e 67e0c529 store 1 ,mem_24g_device1_bind_disable 
+497f 67e0c52a store 1 ,mem_24g_device2_bind_disable 
+4980 67e24577 store 4 ,mem_24g_transmitter_addr 
+4981 70455c01 jam 1 ,mem_24g_ackpayload_enable 
+4982 20204915 branch g24_pair_init_param 
+
+g24_bind_ackpayload_prep:
+4983 70455c01 jam 1 ,mem_24g_ackpayload_enable 
+4984 7044d308 jam 0x08 ,mem_24g_datalen 
+4985 d8c04521 arg mem_24g_bind_payload ,contr 
+4986 d8a04464 arg mem_24g_txbuf ,contw 
+4987 202073cc branch memcpy8 
+
+g24_bind_data_process:
+4988 47234028 bpatchx patch28_6 ,mem_patch28 
+4989 20404a39 call g24_rx_interrupt_clear 
+498a 20404792 call g24_receive_packet 
+498b 2437ca39 nbranch g24_rx_interrupt_clear ,user3 
+498c 20404997 call g24_bind_data_parse 
+498d 20404a6c call g24_transmit_ack 
+498e 20404a14 call g24_bind_device_status_check 
+498f 2040521d call dongle_kb_bind_soft_reset 
+4990 6fe0c4f9 fetch 1 ,mem_24g_pair_switch 
+4991 207a0000 rtn blank 
+4992 6fe24577 fetch 4 ,mem_24g_transmitter_addr 
+4993 207a0000 rtn blank 
+4994 202048af branch g24_update_addr_and_synccrc8 
+
+g24_bind_data_error:
+4995 20404a39 call g24_rx_interrupt_clear 
+4996 202047fc branch g24_end_of_packet 
+
+g24_bind_data_parse:
+4997 70456d05 jam bind_mode_continue ,mem_24g_bind_mode_continue 
+4998 d8c04442 arg mem_24g_rxbuf ,contr 
+4999 d8a04533 arg mem_24g_rxdata_temp ,contw 
+499a 204073cc call memcpy8 
+499b 4723c028 bpatchx patch28_7 ,mem_patch28 
+499c 6fe0c535 fetch 1 ,mem_24g_rxdata_temp + 2 
+499d c05549a2 beq datatype_bind ,g24_bind_first_step 
+499e c02ac9b3 beq datatype_config ,g24_bind_second_step 
+499f c01149d4 beq datatype_ok ,g24_bind_third_step 
+49a0 c07fcc0e beq datatype_attemp ,g24_data_attemp 
+49a1 20600000 rtn 
+
+g24_bind_first_step:
+49a2 6fe0c536 fetch 1 ,mem_24g_rxdata_temp + 3 
+49a3 c000c9a6 beq datatype_device1 ,g24_bind_first_step_device1 
+49a4 c00149ae beq datatype_device2 ,g24_bind_first_step_device2 
+49a5 20600000 rtn 
+
+g24_bind_first_step_device1:
+49a6 6fe0c529 fetch 1 ,mem_24g_device1_bind_disable 
+49a7 247a0000 nrtn blank 
+49a8 70451e01 jam 1 ,mem_24g_device1_bind_step 
+
+g24_bind_dvc1_payload_cfg:
+49a9 70452101 jam datatype_device1 ,mem_24g_bind_payload 
+
+g24_bind_payload_cfg:
+49aa 70452280 jam 0x80 ,mem_24g_bind_payload + 1 
+49ab 6fe3443c fetch 6 ,mem_24g_lap 
+49ac 67e34523 store 6 ,mem_24g_bind_payload + 2 
+49ad 20600000 rtn 
+
+g24_bind_first_step_device2:
+49ae 6fe0c52a fetch 1 ,mem_24g_device2_bind_disable 
+49af 247a0000 nrtn blank 
+49b0 70451f01 jam 1 ,mem_24g_device2_bind_step 
+
+g24_bind_dvc2_payload_cfg:
+49b1 70452102 jam datatype_device2 ,mem_24g_bind_payload 
+49b2 202049aa branch g24_bind_payload_cfg 
+
+g24_bind_second_step:
+49b3 6fe0c4f9 fetch 1 ,mem_24g_pair_switch 
+49b4 203a49b9 branch g24_bind_second_step_skip ,blank 
+49b5 6fe24537 fetch 4 ,mem_24g_rxdata_temp + 4 
+49b6 684a443c fetcht 4 ,mem_24g_lap 
+49b7 98467c00 isub temp ,null 
+49b8 24628000 nrtn zero 
+
+g24_bind_second_step_skip:
+49b9 6fe0c536 fetch 1 ,mem_24g_rxdata_temp + 3 
+49ba c000c9bd beq datatype_device1 ,g24_bind_second_step_device1 
+49bb c00149ca beq datatype_device2 ,g24_bind_second_step_device2 
+49bc 20600000 rtn 
+
+g24_bind_second_step_device1:
+49bd 6fe0c529 fetch 1 ,mem_24g_device1_bind_disable 
+49be 247a0000 nrtn blank 
+49bf 6fe0c51e fetch 1 ,mem_24g_device1_bind_step 
+49c0 c000c9c2 beq 1 ,g24_bind_dvc1_step_set2 
+49c1 20600000 rtn 
+
+g24_bind_dvc1_step_set2:
+49c2 70451e02 jam 2 ,mem_24g_device1_bind_step 
+49c3 6fe0c4f9 fetch 1 ,mem_24g_pair_switch 
+49c4 203a49a9 branch g24_bind_dvc1_payload_cfg ,blank 
+
+g24_bind_dvc1_payload_cfg_transmitter_addr:
+49c5 70452101 jam datatype_device1 ,mem_24g_bind_payload 
+
+g24_bind_payload_cfg_transmitter_addr:
+49c6 70452280 jam 0x80 ,mem_24g_bind_payload + 1 
+49c7 6fe24577 fetch 4 ,mem_24g_transmitter_addr 
+49c8 67e24523 store 4 ,mem_24g_bind_payload + 2 
+49c9 202074c8 branch enable_user 
+
+g24_bind_second_step_device2:
+49ca 6fe0c52a fetch 1 ,mem_24g_device2_bind_disable 
+49cb 247a0000 nrtn blank 
+49cc 6fe0c51f fetch 1 ,mem_24g_device2_bind_step 
+49cd c000c9cf beq 1 ,g24_bind_dvc2_step_set2 
+49ce 20600000 rtn 
+
+g24_bind_dvc2_step_set2:
+49cf 70451f02 jam 2 ,mem_24g_device2_bind_step 
+49d0 6fe0c4f9 fetch 1 ,mem_24g_pair_switch 
+49d1 203a49b1 branch g24_bind_dvc2_payload_cfg ,blank 
+49d2 70452102 jam datatype_device2 ,mem_24g_bind_payload 
+49d3 202049c6 branch g24_bind_payload_cfg_transmitter_addr 
+
+g24_bind_third_step:
+49d4 6fe0c4f9 fetch 1 ,mem_24g_pair_switch 
+49d5 203a49da branch g24_bind_third_step_skip ,blank 
+49d6 6fe24537 fetch 4 ,mem_24g_rxdata_temp + 4 
+49d7 684a4577 fetcht 4 ,mem_24g_transmitter_addr 
+49d8 98467c00 isub temp ,null 
+49d9 24628000 nrtn zero 
+
+g24_bind_third_step_skip:
+49da 6fe0c536 fetch 1 ,mem_24g_rxdata_temp + 3 
+49db c000c9de beq datatype_device1 ,g24_bind_third_step_device1 
+49dc c00149ec beq datatype_device2 ,g24_bind_third_step_device2 
+49dd 20600000 rtn 
+
+g24_bind_third_step_device1:
+49de 6fe0c529 fetch 1 ,mem_24g_device1_bind_disable 
+49df 247a0000 nrtn blank 
+49e0 6fe0c51e fetch 1 ,mem_24g_device1_bind_step 
+49e1 c00149e3 beq 2 ,g24_bind_dvc1_step_success 
+49e2 20600000 rtn 
+
+g24_bind_dvc1_step_success:
+49e3 70452901 jam 1 ,mem_24g_device1_bind_disable 
+49e4 20404a08 call g24_binding_dvc1_living 
+49e5 204049a9 call g24_bind_dvc1_payload_cfg 
+49e6 6fe0c520 fetch 1 ,mem_24g_bind_device_status 
+49e7 1fe1fe01 or_into 0x01 ,pdata 
+49e8 67e0c520 store 1 ,mem_24g_bind_device_status 
+
+g24_bind_exit:
+49e9 58000000 setarg 0 
+49ea 67e1451e store 2 ,mem_24g_device1_bind_step 
+49eb 20600000 rtn 
+
+g24_bind_third_step_device2:
+49ec 6fe0c52a fetch 1 ,mem_24g_device2_bind_disable 
+49ed 247a0000 nrtn blank 
+49ee 6fe0c51f fetch 1 ,mem_24g_device2_bind_step 
+49ef c08049f1 bne 0 ,g24_bind_dvc2_step_success 
+49f0 20600000 rtn 
+
+g24_bind_dvc2_step_success:
+49f1 70452a01 jam 1 ,mem_24g_device2_bind_disable 
+49f2 20404a0e call g24_binding_dvc2_living 
+49f3 204049b1 call g24_bind_dvc2_payload_cfg 
+49f4 6fe0c520 fetch 1 ,mem_24g_bind_device_status 
+49f5 1fe1fe02 or_into 0x02 ,pdata 
+49f6 67e0c520 store 1 ,mem_24g_bind_device_status 
+49f7 204049e9 call g24_bind_exit 
+49f8 20205217 branch dongle_g24_store_dvc2_bind_flag 
+
+g24_binding_device_check:
+49f9 6fe0c561 fetch 1 ,mem_24g_work_mode 
+49fa c1808000 rtnne dongle_bind 
+49fb 6fe0c55b fetch 1 ,mem_24g_pair_mode 
+49fc 247a0000 nrtn blank 
+49fd 6fe0c445 fetch 1 ,mem_24g_rxbuf + 3 
+49fe c000ca01 beq datatype_device1 ,g24_binding_dvc1_status 
+49ff c0014a05 beq datatype_device2 ,g24_binding_dvc2_status 
+4a00 20600000 rtn 
+
+g24_binding_dvc1_status:
+4a01 6fe0c576 fetch 1 ,mem_24g_bind_device_living 
+4a02 c4000000 rtnbit0 0 
+
+disable_user3:
+4a03 7857fc00 disable user3 
+4a04 20600000 rtn 
+
+g24_binding_dvc2_status:
+4a05 6fe0c576 fetch 1 ,mem_24g_bind_device_living 
+4a06 c4008000 rtnbit0 1 
+4a07 20204a03 branch disable_user3 
+
+g24_binding_dvc1_living:
+4a08 6fe0c55b fetch 1 ,mem_24g_pair_mode 
+4a09 247a0000 nrtn blank 
+4a0a 6fe0c576 fetch 1 ,mem_24g_bind_device_living 
+4a0b 1fe1fe01 or_into 0x01 ,pdata 
+4a0c 67e0c576 store 1 ,mem_24g_bind_device_living 
+4a0d 20600000 rtn 
+
+g24_binding_dvc2_living:
+4a0e 6fe0c55b fetch 1 ,mem_24g_pair_mode 
+4a0f 247a0000 nrtn blank 
+4a10 6fe0c576 fetch 1 ,mem_24g_bind_device_living 
+4a11 1fe1fe02 or_into 0x02 ,pdata 
+4a12 67e0c576 store 1 ,mem_24g_bind_device_living 
+4a13 20600000 rtn 
+
+g24_bind_device_status_check:
+4a14 6fe0c520 fetch 1 ,mem_24g_bind_device_status 
+4a15 207a0000 rtn blank 
+
+g24_bind_device_status:
+4a16 6fe0c536 fetch 1 ,mem_24g_rxdata_temp + 3 
+4a17 c000ca08 beq datatype_device1 ,g24_binding_dvc1_living 
+4a18 c0014a0e beq datatype_device2 ,g24_binding_dvc2_living 
+4a19 20600000 rtn 
+
+g24_receive_init:
+4a1a 79200027 set1 mark_24g_rxmode ,mark 
+4a1b 6fe0c116 fetch 1 ,mem_tx_power 
+4a1c 67e0c56e store 1 ,mem_tx_power_temp 
+4a1d 20204c45 branch rssi_receiver_buff_init 
+
+g24_receive_dispatch:
+4a1e 6fe1452b fetch 2 ,mem_cb_24g_receive_process 
+4a1f 20207487 branch callback_func 
+
+g24_ackpayload_prep:
+4a20 47244029 bpatchx patch29_0 ,mem_patch29 
+4a21 7044d300 jam 0 ,mem_24g_datalen 
+4a22 6fe0c55c fetch 1 ,mem_24g_ackpayload_enable 
+4a23 207a0000 rtn blank 
+4a24 6fe1452d fetch 2 ,mem_cb_24g_ackpayload 
+4a25 20207487 branch callback_func 
+
+g24_receive_packet_start:
+4a26 20404a69 call g24_receive_transmit_ack 
+4a27 2437ca39 nbranch g24_rx_interrupt_clear ,user3 
+
+g24_receive_packet_parse:
+4a28 20404a5b call g24_receive_packet_parse_pid_crc 
+4a29 24344a39 nbranch g24_rx_interrupt_clear ,user 
+4a2a 6fe0c4c8 fetch 1 ,mem_24g_rxdata_length 
+4a2b 203a4a39 branch g24_rx_interrupt_clear ,blank 
+4a2c 1fe0fe02 increase 2 ,pdata 
+4a2d 98007200 iforce loopcnt 
+4a2e d8c04442 arg mem_24g_rxbuf ,contr 
+4a2f d8a04533 arg mem_24g_rxdata_temp ,contw 
+4a30 20407419 call memcpy 
+4a31 70455e00 jam 0 ,mem_24g_mode_switch 
+4a32 6fe0c55b fetch 1 ,mem_24g_pair_mode 
+4a33 205a4a76 call g24_enable_nodata_timer ,blank 
+4a34 4724c029 bpatchx patch29_1 ,mem_patch29 
+4a35 6fe0c535 fetch 1 ,mem_24g_rxdata_temp + 2 
+4a36 c000ca3f beq datatype_device1 ,g24_data_device1 
+4a37 c0014a4e beq datatype_device2 ,g24_data_device2 
+4a38 c07fca3d beq datatype_attemp ,g24_data_receive_attemp 
+
+g24_rx_interrupt_clear:
+4a39 47254029 bpatchx patch29_2 ,mem_patch29 
+4a3a d8a04442 arg mem_24g_rxbuf ,contw 
+4a3b df200042 arg 66 ,loopcnt 
+4a3c 202073ec branch clear_mem 
+
+g24_data_receive_attemp:
+4a3d 20404a16 call g24_bind_device_status 
+4a3e 20204c0e branch g24_data_attemp 
+
+g24_data_device1:
+4a3f 20404a08 call g24_binding_dvc1_living 
+4a40 20404ba2 call g24_ch_timer_reinit 
+4a41 6fe0c555 fetch 1 ,mem_24g_abort_packet 
+4a42 6848c533 fetcht 1 ,mem_24g_rxdata_temp 
+4a43 284ffe03 isolate1 bit_abort ,temp 
+4a44 7920fe00 setflag true ,0 ,pdata 
+4a45 67e0c555 store 1 ,mem_24g_abort_packet 
+4a46 c000ca54 beq 1 ,g24_data_attemp_device1_abort 
+4a47 6fe0c55d fetch 1 ,mem_24g_hop_packet 
+4a48 6848c533 fetcht 1 ,mem_24g_rxdata_temp 
+4a49 284ffe04 isolate1 bit_hop ,temp 
+4a4a 7920fe00 setflag true ,0 ,pdata 
+4a4b 67e0c55d store 1 ,mem_24g_hop_packet 
+4a4c 6fe1452f fetch 2 ,mem_cb_24g_data_device1 
+4a4d 20207487 branch callback_func 
+
+g24_data_device2:
+4a4e 20404a0e call g24_binding_dvc2_living 
+4a4f 6848c533 fetcht 1 ,mem_24g_rxdata_temp 
+4a50 284ffe03 isolate1 bit_abort ,temp 
+4a51 2020ca59 branch g24_data_attemp_device2_abort ,true 
+4a52 6fe14531 fetch 2 ,mem_cb_24g_data_device2 
+4a53 20207487 branch callback_func 
+
+g24_data_attemp_device1_abort:
+4a54 6fe0c095 fetch 1 ,mem_device_option 
+4a55 1fe67c0c sub pdata ,dvc_op_car ,null 
+4a56 2042cebb call car_stop_blink ,zero 
+4a57 6fe2453d fetch 4 ,mem_24g_rxdata_temp + 10 
+4a58 20204c14 branch g24_store_device1_addr 
+
+g24_data_attemp_device2_abort:
+4a59 6fe2453d fetch 4 ,mem_24g_rxdata_temp + 10 
+4a5a 20204c18 branch g24_store_device2_addr 
+
+g24_receive_packet_parse_pid_crc:
+4a5b 204074ca call disable_user 
+4a5c 6fe0c4d1 fetch 1 ,mem_24g_sta_pid 
+4a5d 6848c4d2 fetcht 1 ,mem_24g_last_pid 
+4a5e 98467c00 isub temp ,null 
+4a5f 2442f4c8 ncall enable_user ,zero 
+4a60 6fe0c4d1 fetch 1 ,mem_24g_sta_pid 
+4a61 67e0c4d2 store 1 ,mem_24g_last_pid 
+4a62 6fe1c4cb fetch 3 ,mem_24g_sta_crc 
+4a63 6849c4ce fetcht 3 ,mem_24g_last_crc 
+4a64 98467c00 isub temp ,null 
+4a65 2442f4c8 ncall enable_user ,zero 
+4a66 6fe1c4cb fetch 3 ,mem_24g_sta_crc 
+4a67 67e1c4ce store 3 ,mem_24g_last_crc 
+4a68 20600000 rtn 
+
+g24_receive_transmit_ack:
+4a69 20404a39 call g24_rx_interrupt_clear 
+4a6a 20404792 call g24_receive_packet 
+4a6b 24778000 nrtn user3 
+
+g24_transmit_ack:
+4a6c 6fe0c442 fetch 1 ,mem_24g_rxbuf 
+4a6d 67e0c4d4 store 1 ,mem_24g_data_type 
+4a6e 2040488d call g24_read_len_pid_crc 
+4a6f 6fe0c443 fetch 1 ,mem_24g_rxbuf + 1 
+4a70 2feffe00 isolate1 bit_ack_24g ,pdata 
+4a71 2020ca75 branch g24tx_no_ack ,true 
+
+g24tx_with_ack:
+4a72 20404a20 call g24_ackpayload_prep 
+4a73 2040485e call g24_transmit_prep 
+4a74 2040480e call g24_transmit 
+
+g24tx_no_ack:
+4a75 202047fc branch g24_end_of_packet 
+
+g24_enable_nodata_timer:
+4a76 70455f01 jam 1 ,mem_24g_nodata_timer_enable 
+
+g24_enable_nodata_timer_init:
+4a77 58000280 setarg timer_nodata_delay 
+4a78 d8e00008 arg g24_timer_nodata ,queue 
+4a79 20207420 branch timer_init 
+
+g24_mode_switch_init:
+4a7a 4725c029 bpatchx patch29_3 ,mem_patch29 
+4a7b 70455e01 jam 1 ,mem_24g_mode_switch 
+4a7c 70456200 jam 0 ,mem_24g_time_slice 
+4a7d 7044f2ff jam 0xff ,mem_24g_interval 
+4a7e 202048d1 branch g24_timer_init 
+
+g24_mode_switch_bind_work:
+4a7f 47264029 bpatchx patch29_4 ,mem_patch29 
+4a80 6fe0c55e fetch 1 ,mem_24g_mode_switch 
+4a81 207a0000 rtn blank 
+4a82 204048be call g24_timer_check 
+4a83 24740000 nrtn user 
+4a84 20404a8c call g24_bind_mode_continue 
+4a85 6fe0c562 fetch 1 ,mem_24g_time_slice 
+4a86 1fe0fe01 increase 1 ,pdata 
+4a87 1fe17e01 and_into 1 ,pdata 
+4a88 67e0c562 store 1 ,mem_24g_time_slice 
+4a89 c0004a91 beq 0 ,g24_work_mode_switch 
+4a8a c000ca94 beq 1 ,g24_bind_mode_switch 
+4a8b 20600000 rtn 
+
+g24_bind_mode_continue:
+4a8c 6fe0c56d fetch 1 ,mem_24g_bind_mode_continue 
+4a8d 207a0000 rtn blank 
+4a8e 1fe0ffff increase -1 ,pdata 
+4a8f 67e0c56d store 1 ,mem_24g_bind_mode_continue 
+4a90 20600000 rtn 
+
+g24_work_mode_switch:
+4a91 6fe0c56d fetch 1 ,mem_24g_bind_mode_continue 
+4a92 247a0000 nrtn blank 
+4a93 20204ad6 branch g24_switch_work_mode 
+
+g24_bind_mode_switch:
+4a94 6fe0c56d fetch 1 ,mem_24g_bind_mode_continue 
+4a95 247a0000 nrtn blank 
+4a96 20204975 branch g24_bind_mode_enable 
+
+g24_mode_b_s_switch_init:
+4a97 6fe0c575 fetch 1 ,mem_24g_b_s_mode_switch_disable 
+4a98 247a0000 nrtn blank 
+4a99 6fe0c573 fetch 1 ,mem_24g_mode_b_s_switch_exit 
+4a9a 205a4ac5 call g24_mode_b_s_switch_start ,blank 
+4a9b 6fe0c570 fetch 1 ,mem_24g_mode_b_s_switch_init 
+4a9c c3800000 rtnbit1 0 
+4a9d 79207e00 set1 0 ,pdata 
+4a9e 67e0c570 store 1 ,mem_24g_mode_b_s_switch_init 
+4a9f 70456f01 jam 1 ,mem_24g_mode_b_s_switch 
+4aa0 70457400 jam 0 ,mem_24g_b_s_time_slice 
+4aa1 58000000 setarg 0 
+4aa2 67e14571 store 2 ,mem_24g_mode_b_s_switch_cnt 
+4aa3 7044f260 jam 0x60 ,mem_24g_interval 
+4aa4 202048d1 branch g24_timer_init 
+
+g24_mode_switch_bind_search:
+4aa5 4726c029 bpatchx patch29_5 ,mem_patch29 
+4aa6 6fe0c561 fetch 1 ,mem_24g_work_mode 
+4aa7 c1000000 rtneq dongle_work 
+4aa8 6fe0c575 fetch 1 ,mem_24g_b_s_mode_switch_disable 
+4aa9 247a0000 nrtn blank 
+4aaa 6fe0c573 fetch 1 ,mem_24g_mode_b_s_switch_exit 
+4aab 247a0000 nrtn blank 
+4aac 6fe0c56f fetch 1 ,mem_24g_mode_b_s_switch 
+4aad 207a0000 rtn blank 
+4aae 204048be call g24_timer_check 
+4aaf 24740000 nrtn user 
+4ab0 6fe14571 fetch 2 ,mem_24g_mode_b_s_switch_cnt 
+4ab1 1fe0fe01 increase 1 ,pdata 
+4ab2 67e14571 store 2 ,mem_24g_mode_b_s_switch_cnt 
+4ab3 d84007d0 arg 0x7d0 ,temp 
+4ab4 98467c00 isub temp ,null 
+4ab5 20214ac1 branch g24_mode_b_s_switch_exit ,positive 
+4ab6 20404a8c call g24_bind_mode_continue 
+4ab7 6fe0c574 fetch 1 ,mem_24g_b_s_time_slice 
+4ab8 1fe0fe01 increase 1 ,pdata 
+4ab9 1fe17e01 and_into 1 ,pdata 
+4aba 67e0c574 store 1 ,mem_24g_b_s_time_slice 
+4abb c0004abe beq 0 ,g24_mode_switch_search 
+4abc c000c975 beq 1 ,g24_bind_mode_enable 
+4abd 20600000 rtn 
+
+g24_mode_switch_search:
+4abe 6fe0c56d fetch 1 ,mem_24g_bind_mode_continue 
+4abf 243a4975 nbranch g24_bind_mode_enable ,blank 
+4ac0 20204b88 branch g24_search_mode_enable 
+
+g24_mode_b_s_switch_exit:
+4ac1 70457301 jam 1 ,mem_24g_mode_b_s_switch_exit 
+4ac2 20204b88 branch g24_search_mode_enable 
+
+g24_mode_b_s_switch_stop:
+4ac3 70456f00 jam 0 ,mem_24g_mode_b_s_switch 
+4ac4 20600000 rtn 
+
+g24_mode_b_s_switch_start:
+4ac5 70456f01 jam 1 ,mem_24g_mode_b_s_switch 
+4ac6 20600000 rtn 
+
+g24_work_init:
+4ac7 47274029 bpatchx patch29_6 ,mem_patch29 
+4ac8 6fe0c560 fetch 1 ,mem_24g_mode_init 
+4ac9 c3800000 rtnbit1 dongle_work 
+4aca 79207e00 set1 dongle_work ,pdata 
+4acb 67e0c560 store 1 ,mem_24g_mode_init 
+4acc 6fe0c56e fetch 1 ,mem_tx_power_temp 
+4acd 67e0c116 store 1 ,mem_tx_power 
+4ace 70455c00 jam 0 ,mem_24g_ackpayload_enable 
+4acf 7007ab00 jam 0 ,mem_usb_tx_enable 
+4ad0 70455501 jam 1 ,mem_24g_abort_packet 
+4ad1 7044c900 jam 0 ,mem_24g_pid 
+4ad2 6fe2443c fetch 4 ,mem_24g_lap 
+4ad3 204048af call g24_update_addr_and_synccrc8 
+4ad4 2040489b call g24_ch 
+4ad5 20204a39 branch g24_rx_interrupt_clear 
+
+g24_switch_work_mode:
+4ad6 70455c00 jam 0 ,mem_24g_ackpayload_enable 
+
+g24_work_mode_enable:
+4ad7 70456100 jam dongle_work ,mem_24g_work_mode 
+4ad8 70456000 jam clear_init ,mem_24g_mode_init 
+4ad9 20600000 rtn 
+
+g24_work_mode_start:
+4ada 6fe0c561 fetch 1 ,mem_24g_work_mode 
+4adb c1800000 rtnne dongle_work 
+4adc 20404ac7 call g24_work_init 
+4add 20404b8c call g24_ch_process 
+4ade 20204a26 branch g24_receive_packet_start 
+
+g24_bind_mode_auto:
+4adf 4727c029 bpatchx patch29_7 ,mem_patch29 
+4ae0 6fe0c561 fetch 1 ,mem_24g_work_mode 
+4ae1 c1808000 rtnne dongle_bind 
+4ae2 20404978 call g24_bind_init 
+4ae3 20404988 call g24_bind_data_process 
+4ae4 6fe0c55b fetch 1 ,mem_24g_pair_mode 
+4ae5 247a0000 nrtn blank 
+4ae6 6fe0c520 fetch 1 ,mem_24g_bind_device_status 
+4ae7 207a0000 rtn blank 
+4ae8 70455e00 jam 0 ,mem_24g_mode_switch 
+4ae9 20404ad6 call g24_switch_work_mode 
+4aea 20404a76 call g24_enable_nodata_timer 
+4aeb 202048d1 branch g24_timer_init 
+
+g24_search_mode_init:
+4aec 6fe0c560 fetch 1 ,mem_24g_mode_init 
+4aed c3838000 rtnbit1 dongle_search 
+4aee 79207e07 set1 dongle_search ,pdata 
+4aef 67e0c560 store 1 ,mem_24g_mode_init 
+4af0 70456200 jam 0 ,mem_24g_time_slice 
+4af1 70455c01 jam 1 ,mem_24g_ackpayload_enable 
+4af2 58000000 setarg 0 
+4af3 67e1c588 store 3 ,mem_rssi_noise_self_index 
+4af4 67e3c565 store 7 ,mem_24g_self_config_ch_once 
+4af5 20404b7a call g24_receiver_addr_check 
+4af6 24628000 nrtn zero 
+4af7 6fe0c4d9 fetch 1 ,mem_24g_current_ch_number 
+4af8 67e0c564 store 1 ,mem_24g_self_ch_number 
+4af9 6fe0c4d8 fetch 1 ,mem_24g_ch 
+4afa 67e0c563 store 1 ,mem_24g_self_last_ch 
+4afb 20600000 rtn 
+
+g24_search_mode_auto:
+4afc 4728402a bpatchx patch2a_0 ,mem_patch2a 
+4afd 6fe0c561 fetch 1 ,mem_24g_work_mode 
+4afe c1838000 rtnne dongle_search 
+4aff 20404aec call g24_search_mode_init 
+4b00 20404b22 call g24_auto_addr_ch_search 
+4b01 20404a69 call g24_receive_transmit_ack 
+4b02 2437ca39 nbranch g24_rx_interrupt_clear ,user3 
+4b03 20404b7a call g24_receiver_addr_check 
+4b04 2042ca28 call g24_receive_packet_parse ,zero 
+4b05 6fe0c555 fetch 1 ,mem_24g_abort_packet 
+4b06 205a4ac3 call g24_mode_b_s_switch_stop ,blank 
+4b07 70456100 jam dongle_work ,mem_24g_work_mode 
+4b08 6fe0c560 fetch 1 ,mem_24g_mode_init 
+4b09 79207e00 set1 dongle_work ,pdata 
+4b0a 67e0c560 store 1 ,mem_24g_mode_init 
+4b0b 6fe0c55c fetch 1 ,mem_24g_ackpayload_enable 
+4b0c 1fe67c02 sub pdata ,2 ,null 
+4b0d 2442cb78 ncall g24_ackpayload_disable ,zero 
+4b0e 20404a39 call g24_rx_interrupt_clear 
+4b0f 20404a76 call g24_enable_nodata_timer 
+4b10 20404b7a call g24_receiver_addr_check 
+4b11 2022cb1b branch g24_self_ch_num_reinit ,zero 
+4b12 6fe244da fetch 4 ,mem_24g_addr 
+4b13 684a457f fetcht 4 ,mem_24g_device2_addr 
+4b14 98467c00 isub temp ,null 
+4b15 2022cb1e branch g24_device2_ch_num_reinit ,zero 
+4b16 6fe244da fetch 4 ,mem_24g_addr 
+4b17 684a457b fetcht 4 ,mem_24g_device1_addr 
+4b18 98467c00 isub temp ,null 
+4b19 2022cb20 branch g24_device1_ch_num_reinit ,zero 
+4b1a 20600000 rtn 
+
+g24_self_ch_num_reinit:
+4b1b 6fe0c564 fetch 1 ,mem_24g_self_ch_number 
+
+g24_current_ch_num_reinit:
+4b1c 67e0c4d9 store 1 ,mem_24g_current_ch_number 
+4b1d 20600000 rtn 
+
+g24_device2_ch_num_reinit:
+4b1e 6fe0c56a fetch 1 ,mem_24g_device2_ch_number 
+4b1f 20204b1c branch g24_current_ch_num_reinit 
+
+g24_device1_ch_num_reinit:
+4b20 6fe0c567 fetch 1 ,mem_24g_device1_ch_number 
+4b21 20204b1c branch g24_current_ch_num_reinit 
+
+g24_auto_addr_ch_search:
+4b22 4728c02a bpatchx patch2a_1 ,mem_patch2a 
+4b23 6fe0c562 fetch 1 ,mem_24g_time_slice 
+4b24 1fe0fe01 increase 1 ,pdata 
+4b25 1fe17e03 and_into 3 ,pdata 
+4b26 67e0c562 store 1 ,mem_24g_time_slice 
+4b27 c0004b46 beq 0 ,g24_auto_bind_config_device2 
+4b28 c000cb60 beq 1 ,g24_auto_bind_config_self 
+4b29 c0014b2c beq 2 ,g24_auto_bind_config_device1 
+4b2a c001cb60 beq 3 ,g24_auto_bind_config_self 
+4b2b 20600000 rtn 
+
+g24_auto_bind_config_device1:
+4b2c 204049a9 call g24_bind_dvc1_payload_cfg 
+4b2d 6fe2457b fetch 4 ,mem_24g_device1_addr 
+4b2e 203a4b22 branch g24_auto_addr_ch_search ,blank 
+4b2f 204048af call g24_update_addr_and_synccrc8 
+4b30 6fe0c568 fetch 1 ,mem_24g_device1_config_ch_once 
+4b31 205a4b41 call g24_device1_config_ch_once ,blank 
+4b32 6fe0c566 fetch 1 ,mem_24g_device1_last_ch 
+4b33 67e0c4d8 store 1 ,mem_24g_ch 
+4b34 6848c589 fetcht 1 ,mem_rssi_noise_device1_index 
+4b35 6a21458f fetchr rega ,2 ,mem_rssi_noise_device1_buffer_ptr 
+4b36 20404c1a call rssi_store 
+4b37 6048c589 storet 1 ,mem_rssi_noise_device1_index 
+4b38 20404c23 call rssi_average 
+4b39 6048c586 storet 1 ,mem_rssi_noise_device1_avg 
+4b3a 18467c50 sub temp ,rssi_thresh_noise ,null 
+4b3b 24610000 nrtn positive 
+4b3c 6848c567 fetcht 1 ,mem_24g_device1_ch_number 
+4b3d 204048a0 call g24_ch_map_size 
+4b3e 6048c567 storet 1 ,mem_24g_device1_ch_number 
+4b3f 67e0c566 store 1 ,mem_24g_device1_last_ch 
+4b40 20600000 rtn 
+
+g24_device1_config_ch_once:
+4b41 70456801 jam 1 ,mem_24g_device1_config_ch_once 
+4b42 d8400000 arg 0 ,temp 
+4b43 204048a5 call g24_ch_calc 
+4b44 67e0c566 store 1 ,mem_24g_device1_last_ch 
+4b45 20600000 rtn 
+
+g24_auto_bind_config_device2:
+4b46 204049b1 call g24_bind_dvc2_payload_cfg 
+4b47 6fe2457f fetch 4 ,mem_24g_device2_addr 
+4b48 203a4b22 branch g24_auto_addr_ch_search ,blank 
+4b49 204048af call g24_update_addr_and_synccrc8 
+4b4a 6fe0c56b fetch 1 ,mem_24g_device2_config_ch_once 
+4b4b 205a4b5b call g24_device2_config_ch_once ,blank 
+4b4c 6fe0c569 fetch 1 ,mem_24g_device2_last_ch 
+4b4d 67e0c4d8 store 1 ,mem_24g_ch 
+4b4e 6848c58a fetcht 1 ,mem_rssi_noise_device2_index 
+4b4f 6a214591 fetchr rega ,2 ,mem_rssi_noise_device2_buffer_ptr 
+4b50 20404c1a call rssi_store 
+4b51 6048c58a storet 1 ,mem_rssi_noise_device2_index 
+4b52 20404c23 call rssi_average 
+4b53 6048c587 storet 1 ,mem_rssi_noise_device2_avg 
+4b54 18467c50 sub temp ,rssi_thresh_noise ,null 
+4b55 24610000 nrtn positive 
+4b56 6848c56a fetcht 1 ,mem_24g_device2_ch_number 
+4b57 204048a0 call g24_ch_map_size 
+4b58 6048c56a storet 1 ,mem_24g_device2_ch_number 
+4b59 67e0c569 store 1 ,mem_24g_device2_last_ch 
+4b5a 20600000 rtn 
+
+g24_device2_config_ch_once:
+4b5b 70456b01 jam 1 ,mem_24g_device2_config_ch_once 
+4b5c d8400000 arg 0 ,temp 
+4b5d 204048a5 call g24_ch_calc 
+4b5e 67e0c569 store 1 ,mem_24g_device2_last_ch 
+4b5f 20600000 rtn 
+
+g24_auto_bind_config_self:
+4b60 204049a9 call g24_bind_dvc1_payload_cfg 
+4b61 6fe2443c fetch 4 ,mem_24g_lap 
+4b62 204048af call g24_update_addr_and_synccrc8 
+4b63 6fe0c565 fetch 1 ,mem_24g_self_config_ch_once 
+4b64 205a4b74 call g24_self_config_ch_once ,blank 
+4b65 6fe0c563 fetch 1 ,mem_24g_self_last_ch 
+4b66 67e0c4d8 store 1 ,mem_24g_ch 
+4b67 6848c588 fetcht 1 ,mem_rssi_noise_self_index 
+4b68 6a21458d fetchr rega ,2 ,mem_rssi_noise_self_buffer_ptr 
+4b69 20404c1a call rssi_store 
+4b6a 6048c588 storet 1 ,mem_rssi_noise_self_index 
+4b6b 20404c23 call rssi_average 
+4b6c 6048c585 storet 1 ,mem_rssi_noise_self_avg 
+4b6d 18467c50 sub temp ,rssi_thresh_noise ,null 
+4b6e 24610000 nrtn positive 
+4b6f 6848c564 fetcht 1 ,mem_24g_self_ch_number 
+4b70 204048a0 call g24_ch_map_size 
+4b71 6048c564 storet 1 ,mem_24g_self_ch_number 
+4b72 67e0c563 store 1 ,mem_24g_self_last_ch 
+4b73 20600000 rtn 
+
+g24_self_config_ch_once:
+4b74 70456501 jam 1 ,mem_24g_self_config_ch_once 
+4b75 6fe0c563 fetch 1 ,mem_24g_self_last_ch 
+4b76 67e0c4d8 store 1 ,mem_24g_ch 
+4b77 20600000 rtn 
+
+g24_ackpayload_disable:
+4b78 70455c00 jam 0 ,mem_24g_ackpayload_enable 
+4b79 20600000 rtn 
+
+g24_receiver_addr_check:
+4b7a 6fe244da fetch 4 ,mem_24g_addr 
+4b7b 684a443c fetcht 4 ,mem_24g_lap 
+4b7c 98467c00 isub temp ,null 
+4b7d 20600000 rtn 
+
+g24_nodata_process:
+4b7e 6fe0c55c fetch 1 ,mem_24g_ackpayload_enable 
+4b7f c1010000 rtneq 2 
+4b80 6fe0c55f fetch 1 ,mem_24g_nodata_timer_enable 
+4b81 207a0000 rtn blank 
+4b82 d8e00008 arg g24_timer_nodata ,queue 
+4b83 2040742e call timer_check 
+4b84 247a0000 nrtn blank 
+4b85 70455f00 jam 0 ,mem_24g_nodata_timer_enable 
+4b86 70456d00 jam 0 ,mem_24g_bind_mode_continue 
+4b87 20404a97 call g24_mode_b_s_switch_init 
+
+g24_search_mode_enable:
+4b88 4729402a bpatchx patch2a_2 ,mem_patch2a 
+4b89 70456107 jam dongle_search ,mem_24g_work_mode 
+4b8a 70456000 jam clear_init ,mem_24g_mode_init 
+4b8b 20204a39 branch g24_rx_interrupt_clear 
+
+g24_ch_process:
+4b8c 4729c02a bpatchx patch2a_3 ,mem_patch2a 
+4b8d 6fe0c555 fetch 1 ,mem_24g_abort_packet 
+4b8e c000cc59 beq 1 ,rssi_noise_monitor 
+4b8f 6fe0c55d fetch 1 ,mem_24g_hop_packet 
+4b90 c000cba0 beq 1 ,g24_ch_receive_hop_pac 
+4b91 684a4556 fetcht 4 ,mem_24g_hop_btclk 
+4b92 1c427e00 copy clkn_bt ,pdata 
+4b93 98467c00 isub temp ,null 
+4b94 244148ce ncall g24_timer_timeout ,positive 
+4b95 1fe22400 copy pdata ,regb 
+4b96 6fe24556 fetch 4 ,mem_24g_hop_btclk 
+4b97 6848c55a fetcht 1 ,mem_24g_hop_interval 
+4b98 98408400 iadd temp ,temp 
+4b99 1a427e00 copy regb ,pdata 
+4b9a 98467c00 isub temp ,null 
+4b9b 24610000 nrtn positive 
+4b9c 793ffe1c set0 28 ,pdata 
+4b9d 67e24556 store 4 ,mem_24g_hop_btclk 
+4b9e 70455501 jam 1 ,mem_24g_abort_packet 
+4b9f 2020489b branch g24_ch 
+
+g24_ch_receive_hop_pac:
+4ba0 70455d00 jam 0 ,mem_24g_hop_packet 
+4ba1 2020489b branch g24_ch 
+
+g24_ch_timer_reinit:
+4ba2 1c427e00 copy clkn_bt ,pdata 
+4ba3 67e24556 store 4 ,mem_24g_hop_btclk 
+4ba4 20600000 rtn 
+
+g24_reconn_timeout_timer:
+4ba5 da604529 arg mem_24g_reconn_timeout ,regc 
+4ba6 da404cdb arg g24_stop_24g_mode ,regb 
+4ba7 20204dd3 branch timer_single_step_2b 
+
+g24_reconn_start:
+4ba8 472a402a bpatchx patch2a_4 ,mem_patch2a 
+4ba9 79200026 set1 mark_24g ,mark 
+4baa 6fe0c547 fetch 1 ,mem_24g_conn_sm 
+4bab 793ffe01 set0 state_24g_pair ,pdata 
+4bac 79207e02 set1 state_24g_reconn ,pdata 
+4bad 67e0c547 store 1 ,mem_24g_conn_sm 
+4bae 6fe0c52e fetch 1 ,mem_24g_fast_conn_enable 
+4baf 203a4bbd branch g24_reconn_receiver_addr ,blank 
+4bb0 6fe0c52d fetch 1 ,mem_24g_reconn_type 
+4bb1 c000cbb5 beq fast_conn_and_receiver ,g24_reconn_fast_conn 
+4bb2 c0014bb5 beq fast_conn_and_3_0_addr ,g24_reconn_fast_conn 
+4bb3 c001cbc4 beq receiver_and_3_0_addr ,g24_reconn_device_3_0_addr 
+4bb4 c0024bc4 beq pair_and_3_0_addr ,g24_reconn_device_3_0_addr 
+
+g24_reconn_fast_conn:
+4bb5 6fe0c51c fetch 1 ,mem_24g_pair_tx_power 
+4bb6 67e0c116 store 1 ,mem_tx_power 
+4bb7 6848c537 fetcht 1 ,mem_24g_fast_conn_temp_ch 
+4bb8 6048c4d9 storet 1 ,mem_24g_current_ch_number 
+4bb9 6fe2452f fetch 4 ,mem_24g_fast_conn_addr 
+4bba 20404bce call g24_ch_syncword_crc8_init 
+4bbb 6048c537 storet 1 ,mem_24g_fast_conn_temp_ch 
+4bbc 20600000 rtn 
+
+g24_reconn_receiver_addr:
+4bbd 70411603 jam tx_power_3db ,mem_tx_power 
+4bbe 6848c538 fetcht 1 ,mem_24g_receiver_temp_ch 
+4bbf 6048c4d9 storet 1 ,mem_24g_current_ch_number 
+4bc0 6fe24533 fetch 4 ,mem_24g_receiver_addr 
+4bc1 20404bce call g24_ch_syncword_crc8_init 
+4bc2 6048c538 storet 1 ,mem_24g_receiver_temp_ch 
+4bc3 20600000 rtn 
+
+g24_reconn_device_3_0_addr:
+4bc4 70411603 jam tx_power_3db ,mem_tx_power 
+4bc5 6848c539 fetcht 1 ,mem_24g_device_temp_ch 
+4bc6 6048c4d9 storet 1 ,mem_24g_current_ch_number 
+4bc7 6fe2454f fetch 4 ,mem_24g_device_addr 
+4bc8 20404bce call g24_ch_syncword_crc8_init 
+4bc9 6048c539 storet 1 ,mem_24g_device_temp_ch 
+4bca 20600000 rtn 
+
+g24_store_receiver_addr:
+4bcb 6fe244aa fetch 4 ,mem_24g_rxpayload + 2 
+4bcc 207a0000 rtn blank 
+4bcd 67e24533 store 4 ,mem_24g_receiver_addr 
+
+g24_ch_syncword_crc8_init:
+4bce 204048af call g24_update_addr_and_synccrc8 
+4bcf 2020489b branch g24_ch 
+
+g24_reconn_dispatch:
+4bd0 472ac02a bpatchx patch2a_5 ,mem_patch2a 
+4bd1 6fe1452b fetch 2 ,mem_24g_reconn_count 
+4bd2 d84001f8 arg 0x01f8 ,temp 
+4bd3 98417e00 iand temp ,pdata 
+4bd4 203a4bd9 branch g24_reconn_dispatch_next ,blank 
+4bd5 6fe1452b fetch 2 ,mem_24g_reconn_count 
+4bd6 1fe0fe01 increase 1 ,pdata 
+4bd7 67e1452b store 2 ,mem_24g_reconn_count 
+4bd8 20600000 rtn 
+
+g24_reconn_dispatch_next:
+4bd9 20404bf3 call g24_reconn_data_prep 
+4bda 20404cb0 call g24_transmit_receive_ack 
+4bdb 242c4bfa nbranch g24_reconn_device_fail ,sync 
+4bdc 2437cbfa nbranch g24_reconn_device_fail ,user3 
+4bdd 20404ccf call g24_ackpayload_parse 
+4bde 6fe24517 fetch 4 ,mem_24g_pair_addr 
+4bdf 684a44da fetcht 4 ,mem_24g_addr 
+4be0 98467c00 isub temp ,null 
+4be1 2022c90a branch g24_pair_start ,zero 
+4be2 6fe2454f fetch 4 ,mem_24g_device_addr 
+4be3 684a44da fetcht 4 ,mem_24g_addr 
+4be4 98467c00 isub temp ,null 
+4be5 2042cbcb call g24_store_receiver_addr ,zero 
+4be6 6fe0c547 fetch 1 ,mem_24g_conn_sm 
+4be7 793ffe02 set0 state_24g_reconn ,pdata 
+4be8 67e0c547 store 1 ,mem_24g_conn_sm 
+4be9 58000000 setarg 0 
+4bea 67e14523 store 2 ,mem_24g_pair_timeout 
+4beb 67e1452b store 2 ,mem_24g_reconn_count 
+4bec 67e14529 store 2 ,mem_24g_reconn_timeout 
+4bed 7004c33c jam bt_evt_24g_attempt_success ,mem_fifo_temp 
+4bee 20406f7b call ui_ipc_send_event 
+
+g24_txbuf_clear:
+4bef 472b402a bpatchx patch2a_6 ,mem_patch2a 
+4bf0 df200004 arg 4 ,loopcnt 
+4bf1 d8a04464 arg mem_24g_txbuf ,contw 
+4bf2 202073dd branch memset0 
+
+g24_reconn_data_prep:
+4bf3 704464ff jam datatype_attemp ,mem_24g_txbuf 
+4bf4 6fe0c4d4 fetch 1 ,mem_24g_data_type 
+4bf5 67e0c465 store 1 ,mem_24g_txbuf + 1 
+4bf6 6fe2454f fetch 4 ,mem_24g_device_addr 
+4bf7 67e24466 store 4 ,mem_24g_txbuf + 2 
+4bf8 7044d306 jam 6 ,mem_24g_datalen 
+4bf9 2020485e branch g24_transmit_prep 
+
+g24_reconn_device_fail:
+4bfa 6fe0c52e fetch 1 ,mem_24g_fast_conn_enable 
+4bfb 203a489b branch g24_ch ,blank 
+4bfc 6fe1452b fetch 2 ,mem_24g_reconn_count 
+4bfd 1fe0fe01 increase 1 ,pdata 
+4bfe 67e1452b store 2 ,mem_24g_reconn_count 
+4bff 2feffe09 isolate1 9 ,pdata 
+4c00 6fe0c52d fetch 1 ,mem_24g_reconn_type 
+4c01 c000cc06 beq fast_conn_and_receiver ,g24_reconn_fast_conn_and_receiver 
+4c02 c0014c08 beq fast_conn_and_3_0_addr ,g24_reconn_fast_conn_and_3_0 
+4c03 c001cc0a beq receiver_and_3_0_addr ,g24_reconn_receiver_and_3_0 
+4c04 c0024c0c beq pair_and_3_0_addr ,g24_reconn_pair_and_3_0 
+4c05 20204bbd branch g24_reconn_receiver_addr 
+
+g24_reconn_fast_conn_and_receiver:
+4c06 2020cbbd branch g24_reconn_receiver_addr ,true 
+4c07 20204bb5 branch g24_reconn_fast_conn 
+
+g24_reconn_fast_conn_and_3_0:
+4c08 2020cbc4 branch g24_reconn_device_3_0_addr ,true 
+4c09 20204bb5 branch g24_reconn_fast_conn 
+
+g24_reconn_receiver_and_3_0:
+4c0a 2020cbc4 branch g24_reconn_device_3_0_addr ,true 
+4c0b 20204bbd branch g24_reconn_receiver_addr 
+
+g24_reconn_pair_and_3_0:
+4c0c 2020cbc4 branch g24_reconn_device_3_0_addr ,true 
+4c0d 20204915 branch g24_pair_init_param 
+
+g24_data_attemp:
+4c0e 6fe0c536 fetch 1 ,mem_24g_rxdata_temp + 3 
+4c0f c000cc12 beq datatype_device1 ,g24_data_attemp_device1 
+4c10 c0014c16 beq datatype_device2 ,g24_data_attemp_device2 
+4c11 20600000 rtn 
+
+g24_data_attemp_device1:
+4c12 6fe24537 fetch 4 ,mem_24g_rxdata_temp + 4 
+4c13 67e24577 store 4 ,mem_24g_transmitter_addr 
+
+g24_store_device1_addr:
+4c14 67e2457b store 4 ,mem_24g_device1_addr 
+4c15 20600000 rtn 
+
+g24_data_attemp_device2:
+4c16 6fe24537 fetch 4 ,mem_24g_rxdata_temp + 4 
+4c17 67e24577 store 4 ,mem_24g_transmitter_addr 
+
+g24_store_device2_addr:
+4c18 67e2457f store 4 ,mem_24g_device2_addr 
+4c19 20600000 rtn 
+
+rssi_store:
+4c1a 472bc02a bpatchx patch2a_7 ,mem_patch2a 
+4c1b 1a227e00 copy rega ,pdata 
+4c1c 98408a00 iadd temp ,contw 
+4c1d 6fe08009 fetch 1 ,mem_rssi 
+4c1e e7e08005 istore 1 ,contw 
+4c1f 18408401 increase 1 ,temp 
+4c20 6fe0c51d fetch 1 ,mem_rssi_buff_index 
+4c21 98410400 iand temp ,temp 
+4c22 20600000 rtn 
+
+rssi_average:
+4c23 472c402b bpatchx patch2b_0 ,mem_patch2b 
+4c24 6fe0c51d fetch 1 ,mem_rssi_buff_index 
+4c25 1fe0fe01 increase 1 ,pdata 
+4c26 67e104ef store 2 ,mem_loopcnt 
+4c27 1fe27200 copy pdata ,loopcnt 
+4c28 1a220c00 copy rega ,contr 
+4c29 dfe00000 arg 0 ,pdata 
+
+rssi_average_loop:
+4c2a e8408006 ifetcht 1 ,contr 
+4c2b 9840fe00 iadd temp ,pdata 
+4c2c c2004c2a loop rssi_average_loop 
+4c2d 684904ef fetcht 2 ,mem_loopcnt 
+4c2e 9846fc00 idiv temp 
+4c2f 20407475 call wait_div_end 
+4c30 18078400 quotient temp 
+4c31 c6138000 rtnmark1 mark_24g_rxmode 
+4c32 18427e00 copy temp ,pdata 
+4c33 c6930000 rtnmark0 mark_24g 
+4c34 20403a68 call bcd 
+4c35 1fe20400 copy pdata ,temp 
+4c36 20600000 rtn 
+
+save_rssi_dec:
+4c37 20203a49 branch save_rssi 
+
+rssi_transmitter_buff_init:
+4c38 6fe1453b fetch 2 ,mem_rssi_signal_buf_ptr 
+4c39 20204c4c branch rssi_buff_clear 
+
+rssi_signal:
+4c3a 1fe22200 copy pdata ,rega 
+4c3b 6848c53a fetcht 1 ,mem_rssi_signal_index 
+4c3c 6fe1453b fetch 2 ,mem_rssi_signal_buf_ptr 
+4c3d 98408a00 iadd temp ,contw 
+4c3e 1a227e00 copy rega ,pdata 
+4c3f e7e08005 istore 1 ,contw 
+4c40 18408401 increase 1 ,temp 
+4c41 6fe0c51d fetch 1 ,mem_rssi_buff_index 
+4c42 98410400 iand temp ,temp 
+4c43 6048c53a storet 1 ,mem_rssi_signal_index 
+4c44 20600000 rtn 
+
+rssi_receiver_buff_init:
+4c45 6fe1458b fetch 2 ,mem_rssi_noise_buffer_ptr 
+4c46 20404c4c call rssi_buff_clear 
+4c47 6fe1458d fetch 2 ,mem_rssi_noise_self_buffer_ptr 
+4c48 20404c4c call rssi_buff_clear 
+4c49 6fe1458f fetch 2 ,mem_rssi_noise_device1_buffer_ptr 
+4c4a 20404c4c call rssi_buff_clear 
+4c4b 6fe14591 fetch 2 ,mem_rssi_noise_device2_buffer_ptr 
+
+rssi_buff_clear:
+4c4c 207a0000 rtn blank 
+4c4d 1fe20a00 copy pdata ,contw 
+4c4e 6fe0c51d fetch 1 ,mem_rssi_buff_index 
+4c4f 1fe0fe01 increase 1 ,pdata 
+4c50 1fe27200 copy pdata ,loopcnt 
+4c51 202073ec branch clear_mem 
+
+rssi_noise:
+4c52 20404c37 call save_rssi_dec 
+4c53 207a0000 rtn blank 
+4c54 6848c584 fetcht 1 ,mem_rssi_noise_index 
+4c55 6a21458b fetchr rega ,2 ,mem_rssi_noise_buffer_ptr 
+4c56 20404c1a call rssi_store 
+4c57 6048c584 storet 1 ,mem_rssi_noise_index 
+4c58 20600000 rtn 
+
+rssi_noise_monitor:
+4c59 6a21458b fetchr rega ,2 ,mem_rssi_noise_buffer_ptr 
+4c5a 20404c23 call rssi_average 
+4c5b 6048c583 storet 1 ,mem_rssi_noise_avg 
+4c5c 18467c50 sub temp ,rssi_thresh_noise ,null 
+4c5d 24610000 nrtn positive 
+4c5e 2020489b branch g24_ch 
+
+g24_transmit_init:
+4c5f 6fe2443c fetch 4 ,mem_24g_lap 
+4c60 67e2454f store 4 ,mem_24g_device_addr 
+4c61 20204c38 branch rssi_transmitter_buff_init 
+
+g24_transmit_dispatch:
+4c62 c6930000 rtnmark0 mark_24g 
+4c63 6fe0c547 fetch 1 ,mem_24g_conn_sm 
+4c64 c280c91c bbit1 state_24g_pair ,g24_pair_dispatch 
+4c65 c2814bd0 bbit1 state_24g_reconn ,g24_reconn_dispatch 
+4c66 6fe0c563 fetch 1 ,mem_24g_transmit_by_interrupt 
+4c67 c000cd21 beq g24_tx_timer_int_enable ,g24_transmit_by_interrupt 
+
+g24_transmit_no_interrupt:
+4c68 472cc02b bpatchx patch2b_1 ,mem_patch2b 
+4c69 20404c84 call g24_txdata_prep 
+4c6a 24344d00 nbranch g24_nodata_transmit ,user 
+
+g24_transmit_start:
+4c6b 20404c99 call g24_transmit_process 
+4c6c 20404d49 call power_ctrl_start 
+4c6d 6fe0c095 fetch 1 ,mem_device_option 
+4c6e c0045d98 beq dvc_op_mouse ,mouse_24g_transmit_start 
+
+g24_transmit_start_next:
+4c6f 6fe44556 fetch 8 ,mem_24g_long_sleep_set 
+4c70 67e444fa store 8 ,mem_24g_enter_hibernate 
+4c71 6fe14568 fetch 2 ,mem_24g_long_sleep_param_update_timer_init 
+4c72 67e1456a store 2 ,mem_24g_long_sleep_param_update_timer 
+4c73 6fe14543 fetch 2 ,mem_cb_24g_transmit_short_sleep 
+4c74 20207487 branch callback_func 
+
+g24_short_sleep:
+4c75 472d402b bpatchx patch2b_2 ,mem_patch2b 
+4c76 20404d15 call g24_lpm_wait 
+4c77 24740000 nrtn user 
+4c78 20404d1f call g24_setgpio_lpm_before 
+4c79 204074e0 call clear_wake 
+4c7a 6fe1c553 fetch 3 ,mem_24g_short_sleep_set 
+4c7b 20204c81 branch g24_long_seep2 
+
+g24_long_sleep:
+4c7c 472dc02b bpatchx patch2b_3 ,mem_patch2b 
+4c7d 20404d15 call g24_lpm_wait 
+4c7e 24740000 nrtn user 
+4c7f 20404d1f call g24_setgpio_lpm_before 
+4c80 6fe444fa fetch 8 ,mem_24g_enter_hibernate 
+
+g24_long_seep2:
+4c81 20407464 call clk2lpo 
+4c82 604a40aa storet 4 ,mem_sleep_counter 
+4c83 20203b47 branch lpm_sleep 
+
+g24_txdata_prep:
+4c84 20404c87 call g24_package_data 
+4c85 24740000 nrtn user 
+4c86 2020485e branch g24_transmit_prep 
+
+g24_package_data:
+4c87 6fe1453d fetch 2 ,mem_cb_24g_transmit_data 
+4c88 20407487 call callback_func 
+4c89 20344c8d branch g24_accumulate_data ,user 
+4c8a 6fe3c465 fetch 7 ,mem_24g_txbuf + 1 
+4c8b 207a0000 rtn blank 
+4c8c 202074c8 branch enable_user 
+
+g24_accumulate_data:
+4c8d 70454d00 jam 0 ,mem_24g_abort_pac 
+4c8e 1a20fe01 add rega ,1 ,pdata 
+4c8f 67e0c4d3 store 1 ,mem_24g_datalen 
+4c90 20404c95 call g24_transmit_rf_ctrl_clear 
+4c91 67e0c464 store 1 ,mem_24g_txbuf 
+4c92 1a420c00 copy regb ,contr 
+4c93 1a227200 copy rega ,loopcnt 
+4c94 20207419 branch memcpy 
+
+g24_transmit_rf_ctrl_clear:
+4c95 6fe0c4d4 fetch 1 ,mem_24g_data_type 
+4c96 1fe17e07 and_into bits_data ,pdata 
+4c97 67e0c4d4 store 1 ,mem_24g_data_type 
+4c98 20600000 rtn 
+
+g24_transmit_process:
+4c99 58000000 setarg 0 
+4c9a 67e0c54c store 1 ,mem_24g_retry 
+4c9b 67e1456d store 2 ,mem_24g_retransmit 
+
+g24_transmit_loop:
+4c9c 20404cb0 call g24_transmit_receive_ack 
+4c9d 6fe0c4ca fetch 1 ,mem_24g_no_ack 
+4c9e c000cca5 beq no_ack_24g ,g24_transmit_no_ack 
+4c9f 242c4cbe nbranch g24_retransmit ,sync 
+4ca0 2437ccbe nbranch g24_retransmit ,user3 
+4ca1 20404ccf call g24_ackpayload_parse 
+4ca2 6fe0c095 fetch 1 ,mem_device_option 
+4ca3 1fe67c08 sub pdata ,dvc_op_mouse ,null 
+4ca4 2042dfdc call mouse_24g_transmit_callback ,zero 
+
+g24_transmit_no_ack:
+4ca5 20404d7b call power_ctrl_pac_succ_incrs 
+
+g24_transmit_next_packet:
+4ca6 20404bef call g24_txbuf_clear 
+4ca7 6fe0c4c9 fetch 1 ,mem_24g_pid 
+4ca8 1fe0fe01 increase 1 ,pdata 
+4ca9 67e0c4c9 store 1 ,mem_24g_pid 
+4caa 20404cf3 call g24_hop_enable_packet 
+
+g24_transmit_abandon:
+4cab 472e402b bpatchx patch2b_4 ,mem_patch2b 
+4cac 58000000 setarg 0 
+4cad 67e0c548 store 1 ,mem_24g_ensure 
+4cae 67e14549 store 2 ,mem_24g_txfail_cnt 
+4caf 20600000 rtn 
+
+g24_transmit_receive_ack:
+4cb0 472ec02b bpatchx patch2b_5 ,mem_patch2b 
+4cb1 7857fc00 disable user3 
+4cb2 2040480e call g24_transmit 
+4cb3 6fe0c4ca fetch 1 ,mem_24g_no_ack 
+4cb4 c000c7fc beq no_ack_24g ,g24_end_of_packet 
+4cb5 18002a00 force 0 ,radio_ctrl 
+4cb6 6fe244da fetch 4 ,mem_24g_addr 
+4cb7 98001200 iforce access 
+4cb8 68488008 fetcht 1 ,mem_last_freq 
+4cb9 20403954 call set_freq_rx 
+4cba 2040396a call rf_rx_enable 
+4cbb 2040479a call g24_receive_rxon 
+4cbc 2057c7fc call g24_end_of_packet ,user3 
+4cbd 20600000 rtn 
+
+g24_retransmit:
+4cbe 6fe0c095 fetch 1 ,mem_device_option 
+4cbf c0844cc3 bne dvc_op_mouse ,g24_retransmit0 
+4cc0 6fe0c77f fetch 1 ,mem_mouse_need_soft_reset 
+4cc1 247a0000 nrtn blank 
+4cc2 20405bf7 call mouse_select_device_by_pb_button 
+
+g24_retransmit0:
+4cc3 6fe0c54d fetch 1 ,mem_24g_abort_pac 
+4cc4 247a0000 nrtn blank 
+4cc5 6fe14549 fetch 2 ,mem_24g_txfail_cnt 
+4cc6 1fe0fe01 increase 1 ,pdata 
+4cc7 67e14549 store 2 ,mem_24g_txfail_cnt 
+4cc8 6fe0c54a fetch 1 ,mem_24g_txfail_cnt + 1 
+4cc9 c2824cd7 bbit1 4 ,g24_tx_attempt_fail 
+4cca 20404cdd call g24_transmit_hop_process 
+4ccb 6fe1456d fetch 2 ,mem_24g_retransmit 
+4ccc 1fe0fe01 increase 1 ,pdata 
+4ccd 67e1456d store 2 ,mem_24g_retransmit 
+4cce 20204c9c branch g24_transmit_loop 
+
+g24_ackpayload_parse:
+4ccf 472f402b bpatchx patch2b_6 ,mem_patch2b 
+4cd0 2040488d call g24_read_len_pid_crc 
+4cd1 6fe0c4c8 fetch 1 ,mem_24g_rxdata_length 
+4cd2 207a0000 rtn blank 
+4cd3 98007200 iforce loopcnt 
+4cd4 d8c04444 arg mem_24g_rxbuf + 2 ,contr 
+4cd5 d8a044a8 arg mem_24g_rxpayload ,contw 
+4cd6 20207419 branch memcpy 
+
+g24_tx_attempt_fail:
+4cd7 472fc02b bpatchx patch2b_7 ,mem_patch2b 
+4cd8 58000000 setarg 0 
+4cd9 67e14549 store 2 ,mem_24g_txfail_cnt 
+4cda 70454b01 jam 1 ,mem_24g_attempt_fail_flag 
+
+g24_stop_24g_mode:
+4cdb 7004c33a jam bt_evt_24g_attempt_fail ,mem_fifo_temp 
+4cdc 20206f7b branch ui_ipc_send_event 
+
+g24_transmit_hop_process:
+4cdd 4730402c bpatchx patch2c_0 ,mem_patch2c 
+4cde 6848c54c fetcht 1 ,mem_24g_retry 
+4cdf 6fe0c56c fetch 1 ,mem_24g_fast_hop_count 
+4ce0 98467c00 isub temp ,null 
+4ce1 24214cfb nbranch g24_tx_fast_hop ,positive 
+4ce2 18408401 increase 1 ,temp 
+4ce3 6048c54c storet 1 ,mem_24g_retry 
+4ce4 6fe0c56c fetch 1 ,mem_24g_fast_hop_count 
+4ce5 c002ccea beq 5 ,g24_transmit_hop_process_4ms 
+4ce6 6fe0c54c fetch 1 ,mem_24g_retry 
+4ce7 c0034cf5 beq 6 ,g24_hop_ch_disable 
+4ce8 c0064cf5 beq 12 ,g24_hop_ch_disable 
+4ce9 20600000 rtn 
+
+g24_transmit_hop_process_4ms:
+4cea 6fe0c54c fetch 1 ,mem_24g_retry 
+4ceb c001ccf5 beq 3 ,g24_hop_ch_disable 
+4cec c0034cf5 beq 6 ,g24_hop_ch_disable 
+4ced 20600000 rtn 
+
+g24_hop_ch_enable:
+
+g24_txpayload_type_update:
+4cee c517ccf1 bmark1 mark_ble_lr ,g24_lr_type_update 
+4cef 67e0c485 store 1 ,mem_24g_txpayload + offset_data_type 
+4cf0 20600000 rtn 
+
+g24_lr_type_update:
+4cf1 67e0c486 store 1 ,mem_24g_txpayload + offset_lr_data_type 
+4cf2 20600000 rtn 
+
+g24_hop_enable_packet:
+4cf3 6fe0c4d4 fetch 1 ,mem_24g_data_type 
+4cf4 c4020000 rtnbit0 bit_hop 
+
+g24_hop_ch_disable:
+4cf5 6fe0c4d4 fetch 1 ,mem_24g_data_type 
+4cf6 793ffe04 set0 bit_hop ,pdata 
+4cf7 67e0c4d4 store 1 ,mem_24g_data_type 
+4cf8 20404cee call g24_txpayload_type_update 
+4cf9 20404d7f call power_ctrl_pac_succ_decrs 
+4cfa 2020489b branch g24_ch 
+
+g24_tx_fast_hop:
+4cfb 20404d6f call power_ctrl_txpower_incrs 
+4cfc 20404d7f call power_ctrl_pac_succ_decrs 
+4cfd 2020489b branch g24_ch 
+
+g24_search_receiver:
+4cfe 6fe1453f fetch 2 ,mem_cb_24g_search_receiver 
+4cff 20207487 branch callback_func 
+
+g24_nodata_transmit:
+4d00 6fe0c54d fetch 1 ,mem_24g_abort_pac 
+4d01 205a4d07 call g24_send_abort_packet ,blank 
+4d02 6fe0c563 fetch 1 ,mem_24g_transmit_by_interrupt 
+4d03 c1008000 rtneq g24_tx_timer_int_enable 
+4d04 20404cfe call g24_search_receiver 
+4d05 6fe14545 fetch 2 ,mem_cb_24g_transmit_long_sleep 
+4d06 20207487 branch callback_func 
+
+g24_send_abort_packet:
+4d07 7044d401 jam type_ms ,mem_24g_data_type 
+4d08 70454d01 jam 1 ,mem_24g_abort_pac 
+4d09 20404c95 call g24_transmit_rf_ctrl_clear 
+4d0a 67e0c464 store 1 ,mem_24g_txbuf 
+4d0b 58000000 setarg 0 
+4d0c 67e3c465 store 7 ,mem_24g_txbuf + 1 
+4d0d 6fe2454f fetch 4 ,mem_24g_device_addr 
+4d0e 67e2446c store 4 ,mem_24g_txbuf + 8 
+4d0f 7044d30c jam 12 ,mem_24g_datalen 
+4d10 6fe0c4d4 fetch 1 ,mem_24g_data_type 
+4d11 79207e03 set1 bit_abort ,pdata 
+4d12 67e0c4d4 store 1 ,mem_24g_data_type 
+4d13 2040485e call g24_transmit_prep 
+4d14 20204c6b branch g24_transmit_start 
+
+g24_lpm_wait:
+4d15 4730c02c bpatchx patch2c_1 ,mem_patch2c 
+4d16 78347c00 enable user 
+4d17 20403b1b call lpo_calibration 
+4d18 6fe1c0be fetch 3 ,mem_clks_per_lpo 
+4d19 203a74ca branch disable_user ,blank 
+4d1a 6fe0c094 fetch 1 ,mem_lpm_mode 
+4d1b 203a74ca branch disable_user ,blank 
+
+g24_lpm_wait_next:
+4d1c 6fe0c563 fetch 1 ,mem_24g_transmit_by_interrupt 
+4d1d c000f4ca beq g24_tx_timer_int_enable ,disable_user 
+4d1e 20600000 rtn 
+
+g24_setgpio_lpm_before:
+4d1f 6fe14541 fetch 2 ,mem_cb_24g_lpm_before 
+4d20 20207487 branch callback_func 
+
+g24_transmit_by_interrupt:
+4d21 204048be call g24_timer_check 
+4d22 24740000 nrtn user 
+4d23 20404d36 call g24_interval_calibrate 
+4d24 6fe14564 fetch 2 ,mem_24g_transmit_by_interrupt_exit_count 
+4d25 1fe0fe01 increase 1 ,pdata 
+4d26 67e14564 store 2 ,mem_24g_transmit_by_interrupt_exit_count 
+4d27 68494566 fetcht 2 ,mem_24g_transmit_by_interrupt_exit_count_init 
+4d28 98467c00 isub temp ,null 
+4d29 2042cd2b call g24_transmit_by_interrupt_exit ,zero 
+4d2a 20204c68 branch g24_transmit_no_interrupt 
+
+g24_transmit_by_interrupt_exit:
+4d2b 70456300 jam g24_tx_timer_int_disable ,mem_24g_transmit_by_interrupt 
+4d2c 58000000 setarg 0 
+4d2d 67e14564 store 2 ,mem_24g_transmit_by_interrupt_exit_count 
+4d2e 58000064 setarg 100 
+4d2f 67e14566 store 2 ,mem_24g_transmit_by_interrupt_exit_count_init 
+
+g24_interval_min:
+4d30 70456200 jam 0 ,mem_24g_pac_index 
+4d31 6fe0c4f3 fetch 1 ,mem_24g_interval_min 
+
+g24_interval_store:
+4d32 67e0c4f2 store 1 ,mem_24g_interval 
+4d33 20600000 rtn 
+
+g24_interval_max:
+4d34 6fe0c4f4 fetch 1 ,mem_24g_interval_max 
+4d35 20204d32 branch g24_interval_store 
+
+g24_interval_calibrate:
+4d36 6fe0c562 fetch 1 ,mem_24g_pac_index 
+4d37 1fe0fe01 increase 1 ,pdata 
+4d38 67e0c562 store 1 ,mem_24g_pac_index 
+4d39 c0024d34 beq 4 ,g24_interval_max 
+4d3a c002cd30 beq 5 ,g24_interval_min 
+4d3b 20600000 rtn 
+
+g24_transmit_by_interrupt_enable:
+4d3c 70456301 jam g24_tx_timer_int_enable ,mem_24g_transmit_by_interrupt 
+4d3d 58000000 setarg 0 
+4d3e 67e14564 store 2 ,mem_24g_transmit_by_interrupt_exit_count 
+4d3f 20600000 rtn 
+
+g24_factory_check:
+4d40 df200002 arg 2 ,loopcnt 
+4d41 d8c044da arg mem_24g_addr ,contr 
+
+pdata_0xff_check:
+4d42 204074c8 call enable_user 
+4d43 5800ffff setarg 0xffff 
+
+pdata_0xff_check_loop:
+4d44 e8410006 ifetcht 2 ,contr 
+4d45 98467c00 isub temp ,null 
+4d46 2442f4ca ncall disable_user ,zero 
+4d47 c2004d44 loop pdata_0xff_check_loop 
+4d48 20600000 rtn 
+
+power_ctrl_start:
+4d49 4731402c bpatchx patch2c_2 ,mem_patch2c 
+4d4a 6fe0c3f0 fetch 1 ,mem_power_ctrl_disable 
+4d4b 247a0000 nrtn blank 
+4d4c 6fe14434 fetch 2 ,mem_ui_state_map 
+4d4d c3858000 rtnbit1 ui_state_ble_adv 
+4d4e 6a21453b fetchr rega ,2 ,mem_rssi_signal_buf_ptr 
+4d4f 20404c23 call rssi_average 
+4d50 6048c56f storet 1 ,mem_rssi_avg_received 
+4d51 6fe0c574 fetch 1 ,mem_rssi_dis_max_24g 
+4d52 c5134d54 bmark1 mark_24g ,power_ctrl_start_next 
+4d53 6fe0c577 fetch 1 ,mem_rssi_dis_max_ble 
+
+power_ctrl_start_next:
+4d54 98467c00 isub temp ,null 
+4d55 24214d6e nbranch power_ctrl_txpower_incrs_force ,positive 
+4d56 6fe0c571 fetch 1 ,mem_power_ctrl_pac_succ_cnt 
+4d57 1fe67c02 sub pdata ,2 ,null 
+4d58 24214d5c nbranch power_ctrl_txpower_decrs_check ,positive 
+4d59 6fe0c571 fetch 1 ,mem_power_ctrl_pac_succ_cnt 
+4d5a c0004d6f beq 0 ,power_ctrl_txpower_incrs 
+4d5b 20600000 rtn 
+
+power_ctrl_txpower_decrs_check:
+4d5c 6fe0c571 fetch 1 ,mem_power_ctrl_pac_succ_cnt 
+4d5d 6848c572 fetcht 1 ,mem_power_ctrl_pac_succ_cnt_init 
+4d5e 98467c00 isub temp ,null 
+4d5f 24628000 nrtn zero 
+4d60 70457100 jam 0 ,mem_power_ctrl_pac_succ_cnt 
+
+power_ctrl_txpower_decrs:
+4d61 6848c56f fetcht 1 ,mem_rssi_avg_received 
+4d62 6fe0c573 fetch 1 ,mem_rssi_dis_min_24g 
+4d63 c5134d65 bmark1 mark_24g ,power_ctrl_txpower_decrs_next 
+4d64 6fe0c576 fetch 1 ,mem_rssi_dis_min_ble 
+
+power_ctrl_txpower_decrs_next:
+4d65 98467c00 isub temp ,null 
+4d66 24610000 nrtn positive 
+4d67 6fe0c570 fetch 1 ,mem_power_ctrl_level 
+4d68 c0004d76 beq 0 ,power_ctrl_decrs_level0 
+4d69 1fe0ffff increase -1 ,pdata 
+4d6a 67e0c570 store 1 ,mem_power_ctrl_level 
+4d6b c0004d76 beq 0 ,power_ctrl_decrs_level0 
+
+power_ctrl_decrs_level1:
+
+power_ctrl_incrs_level1:
+4d6c 70411600 jam tx_power_0db ,mem_tx_power 
+4d6d 20600000 rtn 
+
+power_ctrl_txpower_incrs_force:
+4d6e 70457100 jam 0 ,mem_power_ctrl_pac_succ_cnt 
+
+power_ctrl_txpower_incrs:
+4d6f 6fe0c570 fetch 1 ,mem_power_ctrl_level 
+4d70 c0014d74 beq 2 ,power_ctrl_incrs_level2 
+4d71 1fe0fe01 increase 1 ,pdata 
+4d72 67e0c570 store 1 ,mem_power_ctrl_level 
+4d73 c000cd6c beq 1 ,power_ctrl_incrs_level1 
+
+power_ctrl_incrs_level2:
+4d74 70411606 jam tx_power_6db ,mem_tx_power 
+4d75 20600000 rtn 
+
+power_ctrl_decrs_level0:
+4d76 70411685 jam tx_power_f5db ,mem_tx_power 
+4d77 20600000 rtn 
+
+power_ctrl_pac_succ_cnt_init:
+4d78 70457001 jam 1 ,mem_power_ctrl_level 
+4d79 70457100 jam 0 ,mem_power_ctrl_pac_succ_cnt 
+4d7a 20600000 rtn 
+
+power_ctrl_pac_succ_incrs:
+4d7b 6fe0c571 fetch 1 ,mem_power_ctrl_pac_succ_cnt 
+4d7c 1fe0fe01 increase 1 ,pdata 
+4d7d 67e0c571 store 1 ,mem_power_ctrl_pac_succ_cnt 
+4d7e 20600000 rtn 
+
+power_ctrl_pac_succ_decrs:
+4d7f 6fe0c571 fetch 1 ,mem_power_ctrl_pac_succ_cnt 
+4d80 1fe67c02 sub pdata ,2 ,null 
+4d81 24414d87 ncall power_ctrl_pac_succ_cnt_reinit ,positive 
+4d82 6fe0c571 fetch 1 ,mem_power_ctrl_pac_succ_cnt 
+4d83 c1000000 rtneq 0 
+4d84 1fe0ffff increase -1 ,pdata 
+4d85 67e0c571 store 1 ,mem_power_ctrl_pac_succ_cnt 
+4d86 20600000 rtn 
+
+power_ctrl_pac_succ_cnt_reinit:
+4d87 70457103 jam 3 ,mem_power_ctrl_pac_succ_cnt 
+4d88 20600000 rtn 
+
+app_init:
+4d89 44b8400e bpatch patch0e_0 ,mem_patch0e 
+4d8a 6fe0c095 fetch 1 ,mem_device_option 
+4d8b 203a4d89 branch app_init ,blank 
+4d8c c00250b8 beq dvc_op_dongle ,dongle_init 
+4d8d c004e028 beq dvc_op_shutter ,shutter_init 
+4d8e c00561ec beq dvc_op_shutter_dy ,shutter_dy_init 
+4d8f c004522c beq dvc_op_mouse ,mouse_init 
+4d90 20600000 rtn 
+
+app_param_init:
+4d91 20758000 rtn wake 
+4d92 20406bdd call adc_init_data 
+4d93 6fe0c095 fetch 1 ,mem_device_option 
+4d94 c004e157 beq dvc_op_shutter ,shutter_default_init 
+4d95 c0056157 beq dvc_op_shutter_dy ,shutter_default_init 
+4d96 c00250c3 beq dvc_op_dongle ,dongle_default_init 
+4d97 c0045275 beq dvc_op_mouse ,mouse_default_init 
+4d98 20600000 rtn 
+
+app_process_idle:
+4d99 20406ec0 call ui_dispatch 
+4d9a 20406f91 call check_51cmd 
+4d9b 20404da0 call app_process_bb_event 
+4d9c 6fe14394 fetch 2 ,mem_cb_idle_process 
+4d9d 20207487 branch callback_func 
+
+app_process_ble:
+4d9e 6fe14392 fetch 2 ,mem_cb_le_process 
+4d9f 20207487 branch callback_func 
+
+app_process_bb_event:
+4da0 44b8c00e bpatch patch0e_1 ,mem_patch0e 
+4da1 da20441e arg mem_ipc_fifo_bt2c51 ,rega 
+4da2 204074a5 call fifo_out 
+4da3 207a0000 rtn blank 
+4da4 1fe22600 copy pdata ,regc 
+4da5 20404da9 call app_event_normal_process 
+4da6 20204dad branch app_process_bb_event_priority 
+
+app_discard_event:
+4da7 da600000 arg 0 ,regc 
+4da8 20600000 rtn 
+
+app_event_normal_process:
+4da9 c0084dbc beq bt_evt_button_long_pressed ,app_evt_button_long_pressed 
+4daa c00a4db3 beq bt_evt_le_connected ,app_le_event_bb_connected 
+4dab c00acdb7 beq bt_evt_le_disconnected ,app_le_event_bb_disconn 
+4dac 20600000 rtn 
+
+app_process_bb_event_priority:
+4dad 6fe14396 fetch 2 ,mem_cb_bb_event_process 
+4dae 20207487 branch callback_func 
+
+app_check_wake_lock:
+4daf 6fe1438c fetch 2 ,mem_cb_check_wakelock 
+4db0 20207487 branch callback_func 
+
+app_will_enter_lpm:
+4db1 6fe14390 fetch 2 ,mem_cb_before_lpm 
+4db2 20207487 branch callback_func 
+
+app_le_event_bb_connected:
+4db3 6fe14434 fetch 2 ,mem_ui_state_map 
+4db4 79207e09 set1 ui_state_ble_connected ,pdata 
+4db5 67e14434 store 2 ,mem_ui_state_map 
+4db6 20600000 rtn 
+
+app_le_event_bb_disconn:
+4db7 70436d00 jam 0 ,mem_le_l2cap_att_states 
+4db8 6fe14434 fetch 2 ,mem_ui_state_map 
+4db9 793ffe09 set0 ui_state_ble_connected ,pdata 
+4dba 67e14434 store 2 ,mem_ui_state_map 
+4dbb 20204e19 branch app_lpm_mult_disable 
+
+app_evt_button_long_pressed:
+4dbc 6fe143aa fetch app_disc_rsn_size ,mem_app_disconn_reason_flag 
+4dbd 79207e00 set1 app_disc_by_button ,pdata 
+4dbe 67e143aa store app_disc_rsn_size ,mem_app_disconn_reason_flag 
+4dbf 20600000 rtn 
+
+app_evt_timer:
+4dc0 67e081dc store 1 ,mem_app_evt_timer_count 
+
+app_evt_100ms_loop:
+4dc1 44b9400e bpatch patch0e_2 ,mem_patch0e 
+4dc2 6fe081dc fetch 1 ,mem_app_evt_timer_count 
+4dc3 207a0000 rtn blank 
+4dc4 1fe0ffff increase -1 ,pdata 
+4dc5 67e081dc store 1 ,mem_app_evt_timer_count 
+4dc6 20406ecc call ui_button_polling 
+4dc7 20404dfa call app_lpm_wake_auto_lock_timer 
+4dc8 20406957 call flash_write_spi_sm_timer 
+4dc9 6fe1439c fetch 2 ,mem_cb_event_timer 
+4dca 20407487 call callback_func 
+4dcb 20204dc1 branch app_evt_100ms_loop 
+
+timer_single_step:
+4dcc efe08013 ifetch 1 ,regc 
+4dcd 207a0000 rtn blank 
+4dce 1fe0ffff pincrease -1 
+4dcf e7e08013 istore 1 ,regc 
+4dd0 247a0000 nrtn blank 
+4dd1 1a427e00 copy regb ,pdata 
+4dd2 20207487 branch callback_func 
+
+timer_single_step_2b:
+4dd3 efe10013 ifetch 2 ,regc 
+4dd4 207a0000 rtn blank 
+4dd5 1fe0ffff pincrease -1 
+4dd6 e7e10013 istore 2 ,regc 
+4dd7 247a0000 nrtn blank 
+4dd8 1a427e00 copy regb ,pdata 
+4dd9 20207487 branch callback_func 
+
+app_power_timer:
+4dda 684943e2 fetcht 2 ,mem_power_param_ptr 
+4ddb 1840a601 add temp ,power_timer_offset ,regc 
+4ddc da404dde arg app_power_timer_timeout ,regb 
+4ddd 20204dcc branch timer_single_step 
+
+app_power_timer_timeout:
+4dde 20404e2f call app_got_power_state_common 
+4ddf c000cde1 beq power_starting ,app_enter_power_stanby_state 
+
+app_enter_power_off_state:
+4de0 20204e13 branch app_enter_hibernate 
+
+app_enter_power_stanby_state:
+4de1 58000002 setarg power_standby 
+4de2 e7e08013 istore 1 ,regc 
+4de3 1840a408 add temp ,power_standby_cb_offset ,regb 
+
+app_power_cb_common:
+4de4 efe10012 ifetch 2 ,regb 
+4de5 20207487 branch callback_func 
+
+app_bb_hibernate:
+4de6 20404de8 call app_disconn_reason_clear 
+4de7 20204e13 branch app_enter_hibernate 
+
+app_disconn_reason_clear:
+4de8 58000000 setarg 0 
+4de9 67e143a8 store app_disc_rsn_size ,mem_app_disconn_reason 
+4dea 20600000 rtn 
+
+app_disconn_reason_flag_clear:
+4deb 58000000 setarg 0 
+4dec 67e143aa store app_disc_rsn_size ,mem_app_disconn_reason_flag 
+4ded 20600000 rtn 
+
+app_disconn_reason_collect_ble:
+4dee 6fe143aa fetch app_disc_rsn_size ,mem_app_disconn_reason_flag 
+4def 79207e07 set1 app_disc_ble ,pdata 
+4df0 67e143a8 store app_disc_rsn_size ,mem_app_disconn_reason 
+4df1 58000000 setarg 0 
+4df2 67e143aa store app_disc_rsn_size ,mem_app_disconn_reason_flag 
+4df3 20600000 rtn 
+
+app_get_lpm_wake_lock:
+4df4 d8e00009 arg wake_lock_app ,queue 
+4df5 20203c21 branch lpm_get_wake_lock 
+
+app_put_lpm_wake_lock:
+4df6 d8e00009 arg wake_lock_app ,queue 
+4df7 20203c25 branch lpm_put_wake_lock 
+
+app_lpm_wake_auto_lock:
+4df8 7043a605 jam lpm_wake_up_delay_timer ,mem_wake_up_delay_timer 
+4df9 20204df4 branch app_get_lpm_wake_lock 
+
+app_lpm_wake_auto_lock_timer:
+4dfa da6043a6 arg mem_wake_up_delay_timer ,regc 
+4dfb da404df6 arg app_put_lpm_wake_lock ,regb 
+4dfc 20204dcc branch timer_single_step 
+
+app_ble_start_direct_adv:
+4dfd 7004c30f jam bt_cmd_start_direct_adv ,mem_fifo_temp 
+4dfe 20206f84 branch ui_ipc_send_cmd 
+
+app_ble_stop_direct_adv:
+4dff 7004c310 jam bt_cmd_stop_direct_adv ,mem_fifo_temp 
+4e00 20206f84 branch ui_ipc_send_cmd 
+
+app_ble_stop_adv:
+4e01 7004c30e jam bt_cmd_stop_adv ,mem_fifo_temp 
+4e02 20206f84 branch ui_ipc_send_cmd 
+
+app_ble_start_adv:
+4e03 7004c30d jam bt_cmd_start_adv ,mem_fifo_temp 
+4e04 20206f84 branch ui_ipc_send_cmd 
+
+app_ble_start_scan:
+4e05 7004c317 jam bt_cmd_le_start_scan ,mem_fifo_temp 
+4e06 20206f84 branch ui_ipc_send_cmd 
+
+app_ble_stop_scan:
+4e07 7004c318 jam bt_cmd_le_stop_scan ,mem_fifo_temp 
+4e08 20206f84 branch ui_ipc_send_cmd 
+
+app_ble_start_conn:
+4e09 7004c316 jam bt_cmd_le_start_conn ,mem_fifo_temp 
+4e0a 20206f84 branch ui_ipc_send_cmd 
+
+app_ble_disconnect:
+4e0b 7004c311 jam bt_cmd_le_disconnect ,mem_fifo_temp 
+4e0c 20206f84 branch ui_ipc_send_cmd 
+
+app_led_start_blink:
+4e0d 7004c315 jam bt_cmd_led_blink ,mem_fifo_temp 
+4e0e 20206f84 branch ui_ipc_send_cmd 
+
+app_led_on:
+4e0f 7004c314 jam bt_cmd_led_on ,mem_fifo_temp 
+4e10 20206f84 branch ui_ipc_send_cmd 
+
+app_led_stop_blink:
+
+app_led_off:
+4e11 7004c313 jam bt_cmd_led_off ,mem_fifo_temp 
+4e12 20206f84 branch ui_ipc_send_cmd 
+
+app_enter_hibernate:
+4e13 7004c319 jam bt_cmd_enter_hibernate ,mem_fifo_temp 
+4e14 20206f84 branch ui_ipc_send_cmd 
+
+app_ble_store_reconn_info:
+4e15 7004c31f jam bt_cmd_store_reconn_info_le ,mem_fifo_temp 
+4e16 20206f84 branch ui_ipc_send_cmd 
+
+app_lpm_mult_enable:
+4e17 7920000d set1 mark_lpm_mult_enable ,mark 
+4e18 20600000 rtn 
+
+app_lpm_mult_disable:
+4e19 793f800d set0 mark_lpm_mult_enable ,mark 
+4e1a 20600000 rtn 
+
+app_button_long_pressed:
+4e1b 20404e2f call app_got_power_state_common 
+4e1c c0014e25 beq power_standby ,app_power_shutting_down 
+
+app_power_starting:
+4e1d 58000001 setarg power_starting 
+4e1e e7e08013 istore 1 ,regc 
+4e1f 1840a203 add temp ,power_starting_timeout_offset ,rega 
+4e20 1840a406 add temp ,power_starting_cb_offset ,regb 
+
+app_power_common:
+4e21 e8408011 ifetcht 1 ,rega 
+4e22 1a60a601 increase 1 ,regc 
+4e23 e0408013 istoret 1 ,regc 
+4e24 20204de4 branch app_power_cb_common 
+
+app_power_shutting_down:
+4e25 58000000 setarg power_off 
+4e26 e7e08013 istore 1 ,regc 
+4e27 6fe14434 fetch 2 ,mem_ui_state_map 
+4e28 c304ce2b bbit0 ui_state_ble_connected ,app_power_off_end 
+4e29 2040473e call le_send_terminate_ind_user_terminated 
+4e2a 20404e0b call app_ble_disconnect 
+
+app_power_off_end:
+4e2b 684943e2 fetcht 2 ,mem_power_param_ptr 
+4e2c 1840a202 add temp ,power_off_timeout_offset ,rega 
+4e2d 1840a404 add temp ,power_off_cb_offset ,regb 
+4e2e 20204e21 branch app_power_common 
+
+app_got_power_state_common:
+4e2f 684943e2 fetcht 2 ,mem_power_param_ptr 
+4e30 1840a600 add temp ,power_state_offset ,regc 
+4e31 efe08013 ifetch 1 ,regc 
+4e32 20600000 rtn 
+
+app_event_button_up:
+4e33 20404e2f call app_got_power_state_common 
+4e34 c0804e36 bne power_off ,app_power_release 
+4e35 20204e13 branch app_enter_hibernate 
+
+app_power_release:
+4e36 1840a40a add temp ,ui_butten_up_cb_offset ,regb 
+4e37 20204de4 branch app_power_cb_common 
+
+car_hard_switch_power_on_signal:
+4e38 7046ec02 jam power_standby ,mem_car_power_state 
+
+car_soft_switch_power_on_signal:
+4e39 70435f01 jam on ,mem_le_adv_enable 
+4e3a 58000020 setarg fast_adv_interval_value_car 
+4e3b 20406145 call shutter_ble_adv_interval_set 
+
+car_le_modified_name_adv:
+4e3c d8a04235 arg mem_le_name + 7 ,contw 
+4e3d 6fe0c2b0 fetch 1 ,mem_le_lap 
+
+car_name_loop:
+4e3e 1fe104f0 and pdata ,0xF0 ,temp 
+4e3f 18518400 rshift4 temp ,temp 
+4e40 20404e4e call car_hex_to_ascii 
+4e41 e0408005 istoret 1 ,contw 
+4e42 1fe1040f and pdata ,0x0F ,temp 
+4e43 20404e4e call car_hex_to_ascii 
+4e44 e0408005 istoret 1 ,contw 
+4e45 204040f9 call le_modified_name_att_list 
+4e46 6f20c22d fetchr loopcnt ,1 ,mem_le_name_len 
+4e47 d8a04322 arg mem_le_adv_data + 2 ,contw 
+4e48 d8c0422e arg mem_le_name ,contr 
+4e49 20407419 call memcpy 
+
+car_le_modified_name_scan:
+4e4a 6f20c22d fetchr loopcnt ,1 ,mem_le_name_len 
+4e4b d8a04342 arg mem_le_scan_data + 2 ,contw 
+4e4c d8c0422e arg mem_le_name ,contr 
+4e4d 20207419 branch memcpy 
+
+car_hex_to_ascii:
+4e4e 18467c09 sub temp ,9 ,null 
+4e4f 20214e52 branch car_hex_num ,positive 
+4e50 18408437 add temp ,55 ,temp 
+4e51 20600000 rtn 
+
+car_hex_num:
+4e52 18408430 add temp ,48 ,temp 
+4e53 20600000 rtn 
+
+car_ui_led_init:
+4e54 6fe0c6b9 fetch 1 ,mem_car_config_blood_led1_gpio 
+4e55 c0ffce64 bne invalid_pin_num ,car_blood_led_gpio_set 
+
+car_ui_led_init_1:
+4e56 6fe0c6b7 fetch 1 ,mem_car_config_pairing_led_gpio 
+4e57 c0ffce67 bne invalid_pin_num ,car_pairing_led_gpio_set 
+
+car_ui_led_init_2:
+4e58 6fe0c6c2 fetch 1 ,mem_car_config_low_voltage_led_gpio 
+4e59 c0ffce69 bne invalid_pin_num ,car_low_voltage_led_gpio_set 
+
+car_ui_led_init_3:
+4e5a 6f20c625 fetchr loopcnt ,1 ,mem_car_led_num 
+4e5b da204626 arg mem_car_led_map ,rega 
+
+car_in_lp1:
+4e5c 1a220c00 copy rega ,contr 
+4e5d efe08006 ifetch 1 ,contr 
+4e5e 18c22200 copy contr ,rega 
+4e5f c07fce62 beq invalid_pin_num ,car_in_lp1_end 
+4e60 1fe20400 copy pdata ,temp 
+4e61 20406b96 call gpio_config_output 
+
+car_in_lp1_end:
+4e62 c2004e5c loop car_in_lp1 
+
+car_ui_led_init_end:
+4e63 20600000 rtn 
+
+car_blood_led_gpio_set:
+4e64 6fe446b9 fetch 8 ,mem_car_config_blood_led1_gpio 
+4e65 67e44628 store 8 ,mem_car_led_map + 2 
+4e66 20204e56 branch car_ui_led_init_1 
+
+car_pairing_led_gpio_set:
+4e67 67e0c626 store 1 ,mem_car_led_map 
+4e68 20204e58 branch car_ui_led_init_2 
+
+car_low_voltage_led_gpio_set:
+4e69 67e0c627 store 1 ,mem_car_led_map + 1 
+4e6a 20204e5a branch car_ui_led_init_3 
+
+car_init_environment:
+4e6b 2040500a call car_g24_init 
+4e6c 20405088 call car_g24_load_commom_addr 
+4e6d da200000 arg 0 ,rega 
+4e6e 20406caf call pwm_init 
+4e6f 20404e54 call car_ui_led_init 
+4e70 20404ebd call car_start_blink 
+4e71 20404e83 call car_init_adc_hvin 
+
+car_motor_init:
+4e72 6fe0c8ef fetch 1 ,mem_car_motor_gpio_num 
+4e73 1fe27200 copy pdata ,loopcnt 
+4e74 580048f0 setarg mem_car_motor_gpio_map 
+4e75 1fe22200 copy pdata ,rega 
+
+p_in_lp1:
+4e76 1a220c00 copy rega ,contr 
+4e77 efe08006 ifetch 1 ,contr 
+4e78 18c22200 copy contr ,rega 
+4e79 c07fce7d beq invalid_pin_num ,p_in_lp1_end 
+4e7a 1fe20400 copy pdata ,temp 
+4e7b 67e0c8f4 store 1 ,mem_car_gpio 
+4e7c 20404e7f call car_ui_gpio_init 
+
+p_in_lp1_end:
+4e7d c2004e76 loop p_in_lp1 
+
+p_car_ui_led_init_end:
+4e7e 20600000 rtn 
+
+car_ui_gpio_init:
+4e7f 6fe0c8f4 fetch 1 ,mem_car_gpio 
+4e80 c17f8000 rtneq ui_button_gpio_disable 
+4e81 98000400 iforce temp 
+4e82 20206b96 branch gpio_config_output 
+
+car_init_adc_hvin:
+4e83 7046c864 jam 100 ,mem_car_notify_vdd_value_last 
+4e84 20600000 rtn 
+
+car_le_before_hibernate:
+4e85 20404e88 call car_gpio_set_before_hibernate 
+4e86 204074e0 call clear_wake 
+
+car_le_process_lpm_before:
+4e87 20206c75 branch keyscan_process_lpm_before 
+
+car_gpio_set_before_hibernate:
+4e88 20406fd6 call check_51cmd_led_off 
+
+car_gpio_set_before_lpm_common:
+4e89 df200014 arg 20 ,loopcnt 
+4e8a d8c08070 arg core_gpio_conf ,contr 
+
+car_setgpio_loop:
+4e8b 18c20a00 copy contr ,contw 
+4e8c efe08006 ifetch 1 ,contr 
+4e8d c00fce97 beq gpcfg_spid_miso ,car_setgpio_pullup 
+4e8e c0104e97 beq gpcfg_spid_ncs ,car_setgpio_pullup 
+4e8f c010ce97 beq gpcfg_spid_sck ,car_setgpio_pullup 
+4e90 c0114e97 beq gpcfg_spid_mosi ,car_setgpio_pullup 
+4e91 c011ce97 beq gpcfg_spid_sdio ,car_setgpio_pullup 
+4e92 c0164e97 beq gpcfg_iic_scl ,car_setgpio_pullup 
+4e93 c016ce97 beq gpcfg_iic_sda ,car_setgpio_pullup 
+4e94 c0004e97 beq gpcfg_input ,car_setgpio_pullup 
+
+car_setgpio_loop_end:
+4e95 c2004e8b loop car_setgpio_loop 
+4e96 20204e9d branch car_motor_setgpio 
+
+car_setgpio_pullup:
+4e97 58000040 setarg gpcfg_pullup 
+4e98 e7e08005 istore 1 ,contw 
+4e99 20204e95 branch car_setgpio_loop_end 
+
+car_setgpio_pulldown:
+4e9a 58000080 setarg gpcfg_pulldown 
+4e9b e7e08005 istore 1 ,contw 
+4e9c 20204e95 branch car_setgpio_loop_end 
+
+car_motor_setgpio:
+4e9d 6fe0c8ef fetch 1 ,mem_car_motor_gpio_num 
+4e9e 1fe27200 copy pdata ,loopcnt 
+4e9f d8c048f0 arg mem_car_motor_gpio_map ,contr 
+
+car_motor_setgpio_loop:
+4ea0 efe08006 ifetch 1 ,contr 
+4ea1 79207e07 set1 7 ,pdata 
+4ea2 d840003e arg gpcfg_output_low ,temp 
+4ea3 20406bbc call gpio_config_function 
+4ea4 c2004ea0 loop car_motor_setgpio_loop 
+4ea5 20600000 rtn 
+
+car_key_scan_process:
+4ea6 20206c81 branch keyscan_key_process 
+
+car_scale_process_idle:
+4ea7 20404ebf call car_le_send_packet 
+4ea8 20404eaa call car_g24_status_process 
+4ea9 20204ea6 branch car_key_scan_process 
+
+car_g24_status_process:
+4eaa 6fe14434 fetch 2 ,mem_ui_state_map 
+4eab c3848000 rtnbit1 ui_state_ble_connected 
+4eac 6fe0c902 fetch 1 ,mem_car_24g_received_pac 
+4ead c000ceaf beq work_paired ,car_g24_connected_event 
+4eae 20600000 rtn 
+
+car_g24_connected_event:
+4eaf 6fe0c6e3 fetch 1 ,mem_car_24g_status 
+4eb0 c1008000 rtneq work_paired 
+4eb1 7046e301 jam work_paired ,mem_car_24g_status 
+4eb2 20404eb9 call car_lpm_timer_disable 
+4eb3 20404ebb call car_stop_blink 
+4eb4 20204ed2 branch car_g24_connected 
+
+car_lpm_timer_enable:
+4eb5 6fe14907 fetch 2 ,mem_car_enter_lpm_timer_count 
+4eb6 67e14909 store 2 ,mem_car_enter_lpm_timer 
+4eb7 70490b00 jam 0 ,mem_car_enter_lpm_flag 
+4eb8 20600000 rtn 
+
+car_lpm_timer_disable:
+4eb9 58000000 setarg 0 
+4eba 20204eb6 branch car_lpm_timer_enable + 1 
+
+car_stop_blink:
+4ebb da200000 arg 0 ,rega 
+4ebc 20206f0b branch ui_led_blink_stop_global 
+
+car_start_blink:
+4ebd da200000 arg 0 ,rega 
+4ebe 20206f10 branch ui_led_blink_start_global 
+
+car_le_send_packet:
+4ebf 6fe14434 fetch 2 ,mem_ui_state_map 
+4ec0 c4048000 rtnbit0 ui_state_ble_connected 
+4ec1 204041cc call le_fifo_check_nearly_full 
+4ec2 247a0000 nrtn blank 
+4ec3 da204611 arg mem_car_pop_queue_buff ,rega 
+4ec4 20407015 call queue_pop 
+4ec5 24740000 nrtn user 
+4ec6 d8c04611 arg mem_car_pop_queue_buff ,contr 
+4ec7 20206149 branch le_send_notify_from_list 
+
+car_scale_process_bb_event:
+4ec8 1a627e00 copy regc ,pdata 
+4ec9 c016ce33 beq bt_evt_button_up ,app_event_button_up 
+4eca c0084e1b beq bt_evt_button_long_pressed ,app_button_long_pressed 
+4ecb c00a4ece beq bt_evt_le_connected ,car_scale_event_le_conn 
+4ecc c00aced8 beq bt_evt_le_disconnected ,car_scale_event_le_discon 
+4ecd 20600000 rtn 
+
+car_scale_event_le_conn:
+4ece 20404eb9 call car_lpm_timer_disable 
+4ecf 20404ebb call car_stop_blink 
+4ed0 793f8027 set0 mark_24g_rxmode ,mark 
+4ed1 20204ed4 branch car_scale_process_conn 
+
+car_g24_connected:
+4ed2 6fe146e4 fetch 2 ,mem_car_24g_no_data_timeout_count 
+4ed3 67e146e6 store 2 ,mem_car_24g_no_data_timeout_timer 
+
+car_scale_process_conn:
+4ed4 7046c714 jam 0x14 ,mem_car_notify_vdd_timer 
+4ed5 70409400 jam 0 ,mem_lpm_mode 
+4ed6 20404e01 call app_ble_stop_adv 
+4ed7 20204e17 branch app_lpm_mult_enable 
+
+car_scale_event_le_discon:
+4ed8 79200027 set1 mark_24g_rxmode ,mark 
+4ed9 20404eb5 call car_lpm_timer_enable 
+4eda 20404fbf call car_fb_motor_stop 
+4edb 20404fb3 call car_lr_motor_stop 
+
+car_g24_disconnect:
+4edc 58000000 setarg 0 
+4edd 67e2c695 store 5 ,mem_car_led_control 
+4ede 20406ff8 call queue_init 
+4edf 7046570a jam 10 ,mem_motor1_speed 
+4ee0 7046590a jam 10 ,mem_motor2_speed 
+4ee1 70465b0a jam 10 ,mem_motor3_speed 
+4ee2 7040c102 jam 2 ,mem_lpm_mult 
+4ee3 58000020 setarg fast_adv_interval_value_car 
+4ee4 20406145 call shutter_ble_adv_interval_set 
+4ee5 20204e03 branch app_ble_start_adv 
+
+car_le_bb_event_timer:
+4ee6 20404f60 call car_moto1_blank_data_timer 
+4ee7 20404f63 call car_moto2_blank_data_timer 
+4ee8 20404f66 call car_moto3_blank_data_timer 
+4ee9 20404ef3 call car_24g_no_data_timeout_timer 
+4eea 20204eeb branch car_24g_bind_enable_timer 
+
+car_24g_bind_enable_timer:
+4eeb da604903 arg mem_car_24g_bind_enable_delay_count ,regc 
+4eec da400000 arg 0 ,regb 
+4eed 20204dcc branch timer_single_step 
+
+car_enter_lpm_timer:
+4eee da604909 arg mem_car_enter_lpm_timer ,regc 
+4eef da404ef1 arg car_enter_lpm_enable ,regb 
+4ef0 20204dd3 branch timer_single_step_2b 
+
+car_enter_lpm_enable:
+4ef1 70490b01 jam 1 ,mem_car_enter_lpm_flag 
+4ef2 20600000 rtn 
+
+car_24g_no_data_timeout_timer:
+4ef3 da6046e6 arg mem_car_24g_no_data_timeout_timer ,regc 
+4ef4 da404ef6 arg car_24g_no_data_timer_timeout ,regb 
+4ef5 20204dd3 branch timer_single_step_2b 
+
+car_24g_no_data_timer_timeout:
+4ef6 7046e302 jam work_search ,mem_car_24g_status 
+4ef7 70490200 jam power_on ,mem_car_24g_received_pac 
+4ef8 20204edc branch car_g24_disconnect 
+
+car_notify_vdd_timer:
+4ef9 6fe0c6c1 fetch 1 ,mem_car_config_bat_notify_enable 
+4efa 207a0000 rtn blank 
+4efb da6046c7 arg mem_car_notify_vdd_timer ,regc 
+4efc da404efe arg car_notify_vdd ,regb 
+4efd 20204dcc branch timer_single_step 
+
+car_notify_vdd:
+4efe 6fe0c6c6 fetch 1 ,mem_car_notify_vdd_count 
+4eff 67e0c6c7 store 1 ,mem_car_notify_vdd_timer 
+4f00 6fe0c6ca fetch 1 ,mem_car_working_flag 
+4f01 247a0000 nrtn blank 
+
+car_read_hvin:
+4f02 20406c11 call adc_calculate 
+4f03 67e146e1 store 2 ,mem_vdd_now_vol 
+4f04 da2046db arg mem_vdd_calculate_set ,rega 
+4f05 20406c31 call adc_bat_percent_lowpower_out 
+4f06 6848c6c8 fetcht 1 ,mem_car_notify_vdd_value_last 
+4f07 98467c00 isub temp ,null 
+4f08 20214f0b branch car_notify_vdd_next2 ,positive 
+4f09 67e0c6c8 store 1 ,mem_car_notify_vdd_value_last 
+4f0a 1fe20400 copy pdata ,temp 
+
+car_notify_vdd_next2:
+4f0b 6048c6c9 storet 1 ,mem_car_notify_vdd_percent 
+4f0c 6fe0c6c3 fetch 1 ,mem_car_config_low_voltage_percent 
+4f0d 98467c00 isub temp ,null 
+4f0e 20414f16 call car_enter_low_bat ,positive 
+4f0f 6048c6d4 storet 1 ,mem_notify_bat_payload 
+4f10 df200006 arg 6 ,loopcnt 
+4f11 d8c046cf arg mem_notify_bat_head ,contr 
+4f12 20404f1d call calc_check_sum_start 
+4f13 67e0c6d5 store 1 ,mem_notify_bat_check_sum 
+4f14 da2046cc arg mem_notify_bat_packet ,rega 
+4f15 20206ffd branch queue_push 
+
+car_enter_low_bat:
+4f16 6fe0c6cb fetch 1 ,mem_low_bat_flag 
+4f17 247a0000 nrtn blank 
+4f18 7046cb01 jam 1 ,mem_low_bat_flag 
+4f19 da200001 arg 1 ,rega 
+4f1a 20206f10 branch ui_led_blink_start_global 
+
+car_low_bat_led_off:
+4f1b da200001 arg 1 ,rega 
+4f1c 20206f0b branch ui_led_blink_stop_global 
+
+calc_check_sum_start:
+4f1d da200000 arg 0 ,rega 
+
+calc_check_sum_loop:
+4f1e efe08006 ifetch 1 ,contr 
+4f1f 9a20a200 iadd rega ,rega 
+4f20 c2004f1e loop calc_check_sum_loop 
+
+calc_check_sum_and:
+4f21 1a217eff and rega ,0xff ,pdata 
+4f22 20600000 rtn 
+
+car_le_receive_data:
+4f23 6fe0c36e fetch 1 ,mem_le_att_opcode 
+4f24 c0094f26 beq attop_write_request ,car_le_parse_att_write_request 
+4f25 20600000 rtn 
+
+car_le_parse_att_write_request:
+4f26 6fe1436f fetch 2 ,mem_le_att_handle 
+4f27 c00ccf3d beq att_car_control_handle ,car_control_le_receive 
+4f28 20600000 rtn 
+
+le_app_receive_data:
+4f29 4495c005 bpatch patch05_3 ,mem_patch05 
+4f2a efe28011 ifetch 5 ,rega 
+4f2b 67e28546 store 5 ,mem_app_receive_temp 
+4f2c 6fe10546 fetch 2 ,mem_app_receive_temp 
+4f2d d8406b5a arg le_receive_packet_head ,temp 
+4f2e 98467c00 isub temp ,null 
+4f2f 24628000 nrtn zero 
+4f30 6fe10549 fetch 2 ,mem_app_receive_temp + 3 
+4f31 1ff0fe00 byteswap pdata ,pdata 
+4f32 67e10549 store 2 ,mem_app_receive_temp + 3 
+4f33 1fe27200 copy pdata ,loopcnt 
+4f34 1a20a205 increase 5 ,rega 
+4f35 1a220c00 copy rega ,contr 
+4f36 d8a0054b arg mem_app_receive_temp + 5 ,contw 
+4f37 20407419 call memcpy 
+4f38 efe08006 ifetch 1 ,contr 
+4f39 67e08555 store 1 ,mem_app_receive_temp + 15 
+4f3a da200548 arg mem_app_receive_temp + 2 ,rega 
+4f3b da40054b arg mem_app_receive_temp + 5 ,regb 
+4f3c 20600000 rtn 
+
+car_control_le_receive:
+4f3d 58000000 setarg 0 
+4f3e 67e2c64b store 5 ,mem_le_receive_payload 
+4f3f 67e2c650 store 5 ,mem_le_receive_payload + 5 
+4f40 20404f29 call le_app_receive_data 
+4f41 1a420c00 copy regb ,contr 
+4f42 d8a0464b arg mem_le_receive_payload ,contw 
+4f43 df20000a arg 10 ,loopcnt 
+4f44 20407419 call memcpy 
+
+car_receive_cmd_select:
+4f45 44964005 bpatch patch05_4 ,mem_patch05 
+4f46 efe08011 ifetch 1 ,rega 
+4f47 c0014f6f beq car_cmd_old_car_control ,car_drive_old 
+4f48 c001cf84 beq car_cmd_old_speed_control ,car_speed_set_old 
+4f49 c0024f8b beq car_cmd_l_r_motor_control ,car_motor_control 
+4f4a c002cf8b beq car_cmd_f_b_motor_control ,car_motor_control 
+4f4b c003cffb beq car_cmd_led_control ,car_led_control_receive 
+4f4c c0044ffe beq car_cmd_device_info ,car_info_request 
+4f4d 20600000 rtn 
+
+car_24g_receive_data:
+4f4e 20404f3d call car_control_le_receive 
+4f4f 6fe08548 fetch 1 ,mem_app_receive_temp + 2 
+4f50 c0024f53 beq car_cmd_l_r_motor_control ,car_24g_receive_data_next 
+4f51 c002cf53 beq car_cmd_f_b_motor_control ,car_24g_receive_data_next 
+4f52 20600000 rtn 
+
+car_24g_receive_data_next:
+4f53 6fe0c64b fetch 1 ,mem_le_receive_payload 
+4f54 245a4f5a ncall car_moto1_enable_blank_data_timer ,blank 
+4f55 6fe0c64d fetch 1 ,mem_le_receive_payload + 2 
+4f56 245a4f5c ncall car_moto2_enable_blank_data_timer ,blank 
+4f57 6fe0c64f fetch 1 ,mem_le_receive_payload + 4 
+4f58 207a0000 rtn blank 
+4f59 203a4f5e branch car_moto3_enable_blank_data_timer ,blank 
+
+car_moto1_enable_blank_data_timer:
+4f5a 7048ec05 jam 5 ,mem_car_moto1_blank_timer 
+4f5b 20600000 rtn 
+
+car_moto2_enable_blank_data_timer:
+4f5c 7048ed05 jam 5 ,mem_car_moto2_blank_timer 
+4f5d 20600000 rtn 
+
+car_moto3_enable_blank_data_timer:
+4f5e 7048ee05 jam 5 ,mem_car_moto3_blank_timer 
+4f5f 20600000 rtn 
+
+car_moto1_blank_data_timer:
+4f60 da6048ec arg mem_car_moto1_blank_timer ,regc 
+4f61 da404f69 arg car_moto1_blank_data ,regb 
+4f62 20204dcc branch timer_single_step 
+
+car_moto2_blank_data_timer:
+4f63 da6048ed arg mem_car_moto2_blank_timer ,regc 
+4f64 da404f6b arg car_moto2_blank_data ,regb 
+4f65 20204dcc branch timer_single_step 
+
+car_moto3_blank_data_timer:
+4f66 da6048ee arg mem_car_moto3_blank_timer ,regc 
+4f67 da404f6d arg car_moto3_blank_data ,regb 
+4f68 20204dcc branch timer_single_step 
+
+car_moto1_blank_data:
+4f69 70464b00 jam 0 ,mem_le_receive_payload 
+4f6a 20204f8b branch car_motor_control 
+
+car_moto2_blank_data:
+4f6b 70464d00 jam 0 ,mem_le_receive_payload + 2 
+4f6c 20204f8b branch car_motor_control 
+
+car_moto3_blank_data:
+4f6d 70464f00 jam 0 ,mem_le_receive_payload + 4 
+4f6e 20204f8b branch car_motor_control 
+
+car_drive_old:
+4f6f 6fe0c64b fetch 1 ,mem_le_receive_payload 
+4f70 67e0c656 store 1 ,mem_motor1_status 
+4f71 6fe0c64c fetch 1 ,mem_le_receive_payload + 1 
+4f72 67e0c658 store 1 ,mem_motor2_status 
+4f73 20204f95 branch car_motor_control_common 
+
+car_left_right_control_old:
+4f74 6fe0c64b fetch 1 ,mem_le_receive_payload 
+4f75 67e0c658 store 1 ,mem_motor2_status 
+4f76 20204fa3 branch car_motor2_control 
+
+car_front_back_control_old:
+4f77 6fe0c657 fetch 1 ,mem_motor1_speed 
+4f78 20404f7c call car_reset_old_speed 
+4f79 6fe0c64c fetch 1 ,mem_le_receive_payload + 1 
+4f7a 67e0c656 store 1 ,mem_motor1_status 
+4f7b 20204fa1 branch car_motor1_control 
+
+car_reset_old_speed:
+4f7c c0014f80 beq speed_level_2 ,car_reset_old_speed2 
+4f7d c001cf82 beq speed_level_3 ,car_reset_old_speed3 
+4f7e 67e0c657 store 1 ,mem_motor1_speed 
+4f7f 20600000 rtn 
+
+car_reset_old_speed2:
+4f80 70465705 jam speed_level_5 ,mem_motor1_speed 
+4f81 20600000 rtn 
+
+car_reset_old_speed3:
+4f82 7046570a jam speed_level_10 ,mem_motor1_speed 
+4f83 20600000 rtn 
+
+car_speed_set_old:
+4f84 6fe0c64b fetch 1 ,mem_le_receive_payload 
+4f85 20404f7c call car_reset_old_speed 
+4f86 6fe0c657 fetch 1 ,mem_motor1_speed 
+4f87 20404fef call car_motor_speed_duty_setting 
+4f88 20404ff2 call car_motor_speed_duty_transform 
+4f89 7004c500 jam 0x00 ,mem_pdatatemp + 1 
+4f8a 20206cd4 branch pwm_duty_cycle_set 
+
+car_motor_control:
+4f8b 6fe0c6e9 fetch 1 ,mem_car_24g_go_die_flag 
+4f8c 247a0000 nrtn blank 
+4f8d 6fe3464b fetch 6 ,mem_le_receive_payload 
+4f8e 67e34656 store 6 ,mem_motor1_status 
+4f8f 6fe0c657 fetch 1 ,mem_motor1_speed 
+4f90 6848c659 fetcht 1 ,mem_motor2_speed 
+4f91 98417e00 iand temp ,pdata 
+4f92 6848c65b fetcht 1 ,mem_motor3_speed 
+4f93 98417e00 iand temp ,pdata 
+4f94 205a4fa7 call car_motor_working_flag ,blank 
+
+car_motor_control_common:
+4f95 4496c005 bpatch patch05_5 ,mem_patch05 
+4f96 6fe14434 fetch 2 ,mem_ui_state_map 
+4f97 2feffe09 isolate1 ui_state_ble_connected ,pdata 
+4f98 2440ceb5 ncall car_lpm_timer_enable ,true 
+4f99 20404fa1 call car_motor1_control 
+4f9a 20404fa3 call car_motor2_control 
+4f9b 20204f9c branch car_conn_led_state 
+
+car_conn_led_state:
+4f9c 6fe0c656 fetch 1 ,mem_motor1_status 
+4f9d 6848c658 fetcht 1 ,mem_motor2_status 
+4f9e 9840fe00 iadd temp ,pdata 
+4f9f 243a6fd8 nbranch check_51cmd_led_on ,blank 
+4fa0 20206fd6 branch check_51cmd_led_off 
+
+car_motor1_control:
+4fa1 d8c04656 arg mem_motor1_status ,contr 
+4fa2 20204fa9 branch car_motor1_status_select 
+
+car_motor2_control:
+4fa3 d8c04658 arg mem_motor2_status ,contr 
+4fa4 20204fae branch car_motor2_status_select 
+
+car_motor3_control:
+4fa5 d8c0465a arg mem_motor3_status ,contr 
+4fa6 20204fcb branch car_motor_status_select 
+
+car_motor_working_flag:
+4fa7 7046ca00 jam 0 ,mem_car_working_flag 
+4fa8 20600000 rtn 
+
+car_motor1_status_select:
+4fa9 efe08006 ifetch 1 ,contr 
+4faa c0004fb3 beq turn_front ,car_lr_motor_stop 
+4fab c000cfb7 beq turn_left ,car_lr_motor_left 
+4fac c0014fbb beq turn_right ,car_lr_motor_right 
+4fad 20600000 rtn 
+
+car_motor2_status_select:
+4fae efe08006 ifetch 1 ,contr 
+4faf c0004fbf beq motor_stop ,car_fb_motor_stop 
+4fb0 c0014fc3 beq go_back ,car_fb_motor_front 
+4fb1 c000cfc7 beq go_front ,car_fb_motor_back 
+4fb2 20600000 rtn 
+
+car_lr_motor_stop:
+4fb3 6848c8f0 fetcht 1 ,mem_car_motor_left_gpio 
+4fb4 20406b92 call gpio_out_inactive 
+4fb5 6848c8f1 fetcht 1 ,mem_car_motor_right_gpio 
+4fb6 20206b92 branch gpio_out_inactive 
+
+car_lr_motor_left:
+4fb7 6848c8f0 fetcht 1 ,mem_car_motor_left_gpio 
+4fb8 20406b96 call gpio_out_active 
+4fb9 6848c8f1 fetcht 1 ,mem_car_motor_right_gpio 
+4fba 20206b92 branch gpio_out_inactive 
+
+car_lr_motor_right:
+4fbb 6848c8f0 fetcht 1 ,mem_car_motor_left_gpio 
+4fbc 20406b92 call gpio_out_inactive 
+4fbd 6848c8f1 fetcht 1 ,mem_car_motor_right_gpio 
+4fbe 20206b96 branch gpio_out_active 
+
+car_fb_motor_stop:
+4fbf 6848c8f2 fetcht 1 ,mem_car_motor_front_gpio 
+4fc0 20406b92 call gpio_out_inactive 
+4fc1 6848c8f3 fetcht 1 ,mem_car_motor_back_gpio 
+4fc2 20206b92 branch gpio_out_inactive 
+
+car_fb_motor_front:
+4fc3 6848c8f2 fetcht 1 ,mem_car_motor_front_gpio 
+4fc4 20406b96 call gpio_out_active 
+4fc5 6848c8f3 fetcht 1 ,mem_car_motor_back_gpio 
+4fc6 20206b92 branch gpio_out_inactive 
+
+car_fb_motor_back:
+4fc7 6848c8f2 fetcht 1 ,mem_car_motor_front_gpio 
+4fc8 20406b92 call gpio_out_inactive 
+4fc9 6848c8f3 fetcht 1 ,mem_car_motor_back_gpio 
+4fca 20206b96 branch gpio_out_active 
+
+car_motor_status_select:
+4fcb 44974005 bpatch patch05_6 ,mem_patch05 
+4fcc efe08006 ifetch 1 ,contr 
+4fcd c0004fd8 beq motor_stop ,car_motor_stop 
+4fce c000cfd1 beq go_front ,car_motor_positive 
+4fcf c0014fd3 beq go_back ,car_motor_negative 
+4fd0 20600000 rtn 
+
+car_motor_positive:
+4fd1 70467400 jam 0 ,mem_motor_select_p_n 
+4fd2 20204fd4 branch car_motor_negative + 1 
+
+car_motor_negative:
+4fd3 70467401 jam 1 ,mem_motor_select_p_n 
+4fd4 efe08006 ifetch 1 ,contr 
+4fd5 67e0c676 store 1 ,mem_car_motor_speed 
+4fd6 efe40012 ifetch 8 ,regb 
+4fd7 20204fdd branch car_motor_work 
+
+car_motor_stop:
+4fd8 efe08012 ifetch 1 ,regb 
+4fd9 20406d17 call pwm_disable 
+4fda 1a40a401 increase 1 ,regb 
+4fdb efe08012 ifetch 1 ,regb 
+4fdc 20206d17 branch pwm_disable 
+
+car_motor_work:
+4fdd 67e44677 store 8 ,mem_motor_pwm_pin1_set 
+4fde 7046ca01 jam 1 ,mem_car_working_flag 
+4fdf 6fe0c674 fetch 1 ,mem_motor_select_p_n 
+4fe0 c0004feb beq 0 ,car_motor_select_positive 
+
+car_motor_select_negative:
+4fe1 6fe0c678 fetch 1 ,mem_motor_pwm_pin2_set 
+4fe2 67e0c679 store 1 ,mem_motor_pwm_pin_set 
+4fe3 6fe0c677 fetch 1 ,mem_motor_pwm_pin1_set 
+
+car_motor_work_next:
+4fe4 20406d17 call pwm_disable 
+4fe5 6fe0c676 fetch 1 ,mem_car_motor_speed 
+4fe6 20404fef call car_motor_speed_duty_setting 
+4fe7 67e0c67e store 1 ,mem_motor_pwm_dute_set 
+4fe8 6fe34679 fetch 6 ,mem_motor_pwm_pin_set 
+4fe9 67e304c4 store 6 ,mem_pdatatemp 
+4fea 20206cc0 branch pwm_out_set 
+
+car_motor_select_positive:
+4feb 6fe0c677 fetch 1 ,mem_motor_pwm_pin1_set 
+4fec 67e0c679 store 1 ,mem_motor_pwm_pin_set 
+4fed 6fe0c678 fetch 1 ,mem_motor_pwm_pin2_set 
+4fee 20204fe4 branch car_motor_work_next 
+
+car_motor_speed_duty_setting:
+4fef 1feffe05 mul32 pdata ,5 ,pdata 
+4ff0 1fe0fe32 add pdata ,50 ,pdata 
+4ff1 20600000 rtn 
+
+car_motor_speed_duty_transform:
+4ff2 d8402ee0 arg 12000 ,temp 
+4ff3 984ffe00 imul32 temp ,pdata 
+4ff4 1fe6fc64 div pdata ,100 
+4ff5 20407475 call wait_div_end 
+4ff6 18078400 quotient temp 
+4ff7 18422200 copy temp ,rega 
+4ff8 58002ee0 setarg 12000 
+4ff9 98462400 isub temp ,regb 
+4ffa 20600000 rtn 
+
+car_led_control_receive:
+4ffb 6fe4464b fetch 8 ,mem_le_receive_payload 
+4ffc 67e44695 store 8 ,mem_car_led_control 
+4ffd 20600000 rtn 
+
+car_info_request:
+4ffe 6fe0c6b2 fetch 1 ,mem_car_config_device_select 
+4fff 67e0c6a8 store 1 ,mem_car_info_request_payload 
+5000 6fe0c6b3 fetch 1 ,mem_car_config_motor_layout 
+5001 67e0c6a9 store 1 ,mem_car_info_request_payload + 1 
+5002 6fe0c6b4 fetch 1 ,mem_car_config_ir_enable 
+5003 67e0c6aa store 1 ,mem_car_info_request_payload + 2 
+5004 df20000d arg 13 ,loopcnt 
+5005 d8c046a3 arg mem_car_info_request_head ,contr 
+5006 20404f1d call calc_check_sum_start 
+5007 67e0c6b0 store 1 ,mem_car_info_request_checksum 
+5008 da2046a0 arg mem_car_info_request ,rega 
+5009 20206ffd branch queue_push 
+
+car_g24_init:
+500a 58000000 setarg 0 
+500b 67e44521 store 8 ,mem_24g_bind_payload 
+500c 20404a1a call g24_receive_init 
+500d 204048f1 call g24_rx_window_init 
+500e 20204a7a branch g24_mode_switch_init 
+
+car_g24_receive_process:
+500f 20405013 call car_g24_mode_switch 
+5010 2040501b call car_g24_work_mode 
+5011 2040505c call car_g24_bind_mode 
+5012 202050ab branch car_g24_lpm_dipatch 
+
+car_g24_mode_switch:
+5013 20404a7f call g24_mode_switch_bind_work 
+
+car_g24_bind_mode_enable:
+5014 6fe0c561 fetch 1 ,mem_24g_work_mode 
+5015 c1808000 rtnne dongle_bind 
+5016 6fe0c903 fetch 1 ,mem_car_24g_bind_enable_delay_count 
+5017 243a4ad6 nbranch g24_switch_work_mode ,blank 
+5018 6fe0c6e3 fetch 1 ,mem_car_24g_status 
+5019 c0014ad6 beq work_search ,g24_switch_work_mode 
+501a 20600000 rtn 
+
+car_g24_work_mode:
+501b 6fe0c561 fetch 1 ,mem_24g_work_mode 
+501c c1800000 rtnne dongle_work 
+501d 2040502a call car_g24_work_mode_start 
+501e 2037d028 branch car_g24_ch_polling_clear ,user3 
+
+car_g24_receive_ch_polling:
+501f 6fe0c90b fetch 1 ,mem_car_enter_lpm_flag 
+5020 207a0000 rtn blank 
+5021 6fe0c90c fetch 1 ,mem_car_24g_ch_polling 
+5022 1fe0fe01 increase 1 ,pdata 
+5023 67e0c90c store 1 ,mem_car_24g_ch_polling 
+5024 c0025028 beq 4 ,car_g24_ch_polling_clear 
+5025 2040489b call g24_ch 
+5026 2040503b call car_g24_receive_packet_start 
+5027 2437d01f nbranch car_g24_receive_ch_polling ,user3 
+
+car_g24_ch_polling_clear:
+5028 70490c00 jam 0 ,mem_car_24g_ch_polling 
+5029 20600000 rtn 
+
+car_g24_work_mode_start:
+502a 6fe0c561 fetch 1 ,mem_24g_work_mode 
+502b c1800000 rtnne dongle_work 
+502c 2040502f call car_g24_work_init 
+502d 20404b8c call g24_ch_process 
+502e 2020503b branch car_g24_receive_packet_start 
+
+car_g24_work_init:
+502f 6fe0c560 fetch 1 ,mem_24g_mode_init 
+5030 c3800000 rtnbit1 dongle_work 
+5031 79207e00 set1 dongle_work ,pdata 
+5032 67e0c560 store 1 ,mem_24g_mode_init 
+5033 6fe0c56e fetch 1 ,mem_tx_power_temp 
+5034 67e0c116 store 1 ,mem_tx_power 
+5035 70455c00 jam 0 ,mem_24g_ackpayload_enable 
+5036 7007ab00 jam 0 ,mem_usb_tx_enable 
+5037 70455501 jam 1 ,mem_24g_abort_packet 
+5038 7044c900 jam 0 ,mem_24g_pid 
+5039 6fe24925 fetch 4 ,mem_car_24g_commom_addr 
+503a 20204ad2 branch g24_work_init + 11 
+
+car_g24_receive_packet_start:
+503b 20404a69 call g24_receive_transmit_ack 
+503c 2437ca39 nbranch g24_rx_interrupt_clear ,user3 
+
+p_g24_receive_packet_parse:
+503d 20404a5b call g24_receive_packet_parse_pid_crc 
+503e 24344a39 nbranch g24_rx_interrupt_clear ,user 
+503f 6fe0c4c8 fetch 1 ,mem_24g_rxdata_length 
+5040 203a4a39 branch g24_rx_interrupt_clear ,blank 
+5041 1fe0fe02 increase 2 ,pdata 
+5042 98007200 iforce loopcnt 
+5043 d8c04442 arg mem_24g_rxbuf ,contr 
+5044 d8a04533 arg mem_24g_rxdata_temp ,contw 
+5045 20407419 call memcpy 
+5046 70455e00 jam 0 ,mem_24g_mode_switch 
+5047 6fe0c55b fetch 1 ,mem_24g_pair_mode 
+5048 205a4a76 call g24_enable_nodata_timer ,blank 
+5049 6fe0c535 fetch 1 ,mem_24g_rxdata_temp + 2 
+504a c07fd04d beq datatype_attemp ,car_g24_data_attemp 
+504b c000d04f beq datatype_device1 ,car_g24_data_device1 
+504c 20204a36 branch g24_receive_packet_parse + 14 
+
+car_g24_data_attemp:
+504d 20406fd8 call check_51cmd_led_on 
+504e 20204c0e branch g24_data_attemp 
+
+car_g24_data_device1:
+504f 20404ba2 call g24_ch_timer_reinit 
+5050 6fe0c555 fetch 1 ,mem_24g_abort_packet 
+5051 6848c533 fetcht 1 ,mem_24g_rxdata_temp 
+5052 284ffe03 isolate1 bit_abort ,temp 
+5053 7920fe00 setflag true ,0 ,pdata 
+5054 67e0c555 store 1 ,mem_24g_abort_packet 
+5055 c000d057 beq 1 ,car_g24_data_attemp_device1_abort 
+5056 20204a46 branch g24_data_device1 + 7 
+
+car_g24_data_attemp_device1_abort:
+5057 6fe0c095 fetch 1 ,mem_device_option 
+5058 1fe67c0c sub pdata ,dvc_op_car ,null 
+5059 2042efd8 call check_51cmd_led_on ,zero 
+505a 6fe2453d fetch 4 ,mem_24g_rxdata_temp + 10 
+505b 20204c14 branch g24_store_device1_addr 
+
+car_g24_bind_mode:
+505c 6fe0c561 fetch 1 ,mem_24g_work_mode 
+505d c1808000 rtnne dongle_bind 
+505e 20404978 call g24_bind_init 
+505f 204050a1 call car_g24_bind_device_addr 
+5060 20404988 call g24_bind_data_process 
+5061 6fe0c520 fetch 1 ,mem_24g_bind_device_status 
+5062 243a5069 nbranch car_g24_bind_mode_exit ,blank 
+5063 20404b7e call g24_nodata_process 
+5064 6fe0c55f fetch 1 ,mem_24g_nodata_timer_enable 
+5065 207a0000 rtn blank 
+5066 58000000 setarg 0 
+5067 67e2457b store 4 ,mem_24g_device1_addr 
+5068 20600000 rtn 
+
+car_g24_bind_mode_exit:
+5069 70455e00 jam 0 ,mem_24g_mode_switch 
+506a da200000 arg 0 ,rega 
+506b 20406fd8 call check_51cmd_led_on 
+506c 20404ad6 call g24_switch_work_mode 
+506d 204048d1 call g24_timer_init 
+506e 6fe2443c fetch 4 ,mem_24g_lap 
+506f 67e24925 store 4 ,mem_car_24g_commom_addr 
+5070 6fe0c931 fetch 1 ,mem_car_save_addr_flag 
+5071 245a5074 ncall car_g24_save_commom_addr ,blank 
+5072 6fe24925 fetch 4 ,mem_car_24g_commom_addr 
+5073 202048af branch g24_update_addr_and_synccrc8 
+
+car_g24_save_commom_addr:
+5074 6fe0c931 fetch 1 ,mem_car_save_addr_flag 
+5075 207a0000 rtn blank 
+5076 6fe0c578 fetch 1 ,mem_24g_transmitter_addr + 1 
+5077 67e0c928 store 1 ,mem_car_24g_commom_addr + 3 
+5078 6fe0c43d fetch 1 ,mem_24g_lap + 1 
+5079 67e0c927 store 1 ,mem_car_24g_commom_addr + 2 
+507a 6fe0c577 fetch 1 ,mem_24g_transmitter_addr 
+507b 67e0c926 store 1 ,mem_car_24g_commom_addr + 1 
+507c 6fe0c43c fetch 1 ,mem_24g_lap 
+507d 67e0c925 store 1 ,mem_car_24g_commom_addr 
+507e 20405091 call car_g24_search_commom_addr 
+507f 6fe24925 fetch 4 ,mem_car_24g_commom_addr 
+5080 684a4929 fetcht 4 ,mem_car_24g_commom_addr_temp 
+5081 98467c00 isub temp ,null 
+5082 20628000 rtn zero 
+5083 1a627e00 copy regc ,pdata 
+5084 da204925 arg mem_car_24g_commom_addr ,rega 
+5085 df200004 arg 4 ,loopcnt 
+5086 20406883 call otp_write 
+5087 20600000 rtn 
+
+car_g24_load_commom_addr:
+5088 6fe2443c fetch 4 ,mem_24g_lap 
+5089 67e24925 store 4 ,mem_car_24g_commom_addr 
+508a 6fe0c931 fetch 1 ,mem_car_save_addr_flag 
+508b 207a0000 rtn blank 
+508c 20405091 call car_g24_search_commom_addr 
+508d 6fe24929 fetch 4 ,mem_car_24g_commom_addr_temp 
+508e 207a0000 rtn blank 
+508f 67e24925 store 4 ,mem_car_24g_commom_addr 
+5090 20600000 rtn 
+
+car_g24_search_commom_addr:
+5091 6fe0c931 fetch 1 ,mem_car_save_addr_flag 
+5092 207a0000 rtn blank 
+5093 da600700 arg otp_offset_car_commom_start_addr ,regc 
+
+car_g24_search_commom_addr_loop:
+5094 1a627e00 copy regc ,pdata 
+5095 da204929 arg mem_car_24g_commom_addr_temp ,rega 
+5096 d8400004 arg 4 ,temp 
+5097 204068c5 call otpd_read_data_with_pwr_operation 
+5098 6fe2492d fetch 4 ,mem_car_24g_commom_addr_read 
+5099 207a0000 rtn blank 
+509a 67e24929 store 4 ,mem_car_24g_commom_addr_temp 
+509b 1a627e00 copy regc ,pdata 
+509c d84007cc arg otp_offset_car_commom_end_addr ,temp 
+509d 98467c00 isub temp ,null 
+509e 20610000 rtn positive 
+509f 1a60a604 increase 4 ,regc 
+50a0 20205094 branch car_g24_search_commom_addr_loop 
+
+car_g24_bind_device_addr:
+50a1 6fe2457b fetch 4 ,mem_24g_device1_addr 
+50a2 207a0000 rtn blank 
+50a3 202048af branch g24_update_addr_and_synccrc8 
+
+car_g24_cb_data_device1:
+50a4 6fe14434 fetch 2 ,mem_ui_state_map 
+50a5 c3848000 rtnbit1 ui_state_ble_connected 
+50a6 6fe146e4 fetch 2 ,mem_car_24g_no_data_timeout_count 
+50a7 67e146e6 store 2 ,mem_car_24g_no_data_timeout_timer 
+50a8 70490201 jam work_paired ,mem_car_24g_received_pac 
+50a9 da204536 arg mem_24g_rxdata_temp + 3 ,rega 
+50aa 20204f4e branch car_24g_receive_data 
+
+car_g24_lpm_dipatch:
+50ab 6fe0c90b fetch 1 ,mem_car_enter_lpm_flag 
+50ac 207a0000 rtn blank 
+50ad 204050b3 call car_g24_lpm_wait 
+50ae 24740000 nrtn user 
+50af 6fe1c4fa fetch 3 ,mem_24g_enter_hibernate 
+50b0 20407464 call clk2lpo 
+50b1 604a40aa storet 4 ,mem_sleep_counter 
+50b2 20203b47 branch lpm_sleep 
+
+car_g24_lpm_wait:
+50b3 78347c00 enable user 
+50b4 20403b1b call lpo_calibration 
+50b5 6fe1c0be fetch 3 ,mem_clks_per_lpo 
+50b6 203a74ca branch disable_user ,blank 
+50b7 20204e87 branch car_le_process_lpm_before 
+
+dongle_init:
+50b8 580050cc setarg dongle_dispatch 
+50b9 67e1452b store 2 ,mem_cb_24g_receive_process 
+50ba 580051b4 setarg dongle_g24_mouse 
+50bb 67e1452f store 2 ,mem_cb_24g_data_device1 
+50bc 580051c5 setarg dongle_g24_kb 
+50bd 67e14531 store 2 ,mem_cb_24g_data_device2 
+50be 5800518b setarg dongle_ackpayload_prep 
+50bf 67e1452d store 2 ,mem_cb_24g_ackpayload 
+50c0 580050db setarg dongle_usb_config 
+50c1 67e106f3 store 2 ,mem_cb_usb_config 
+50c2 2020703f branch usb_init 
+
+dongle_default_init:
+50c3 4497c005 bpatch patch05_7 ,mem_patch05 
+50c4 204050d1 call dongle_read_kb_bind_status 
+50c5 7045dc00 jam 0 ,mem_dg_kb_bind_success 
+50c6 70457600 jam 0 ,mem_24g_bind_device_living 
+50c7 20404a1a call g24_receive_init 
+50c8 20404900 call g24_pair_param_init 
+50c9 204048d4 call g24_chmap_param_init 
+50ca 20406d2f call wdt_set_enable 
+50cb 20206d37 branch wdt_kick_128ms 
+
+dongle_dispatch:
+50cc 6fe0c55b fetch 1 ,mem_24g_pair_mode 
+50cd c000517b beq 0x00 ,dongle_auto_bind 
+50ce c000d106 beq 0x01 ,dongle_pc_bind 
+50cf c007d102 beq 0x0f ,dongle_all_powerful 
+50d0 20600000 rtn 
+
+dongle_read_kb_bind_status:
+50d1 44984006 bpatch patch06_0 ,mem_patch06 
+50d2 58001fdf setarg dongle_kb_bind_efuse_offect 
+50d3 da204593 arg mem_dg_kb_bind_flag ,rega 
+50d4 d8400001 arg 1 ,temp 
+50d5 202068c5 branch otpd_read_data_with_pwr_operation 
+
+dongle_write_kb_bind_status:
+50d6 4498c006 bpatch patch06_1 ,mem_patch06 
+50d7 df200001 arg 1 ,loopcnt 
+50d8 da204593 arg mem_dg_kb_bind_flag ,rega 
+50d9 dfe01fdf arg dongle_kb_bind_efuse_offect ,pdata 
+50da 20206883 branch otp_write 
+
+dongle_usb_config:
+50db 6fe0c5b3 fetch 1 ,mem_dg_sys_config 
+50dc c28250df bbit1 dg_enable_kb_icon ,dongle_usb_config_kb 
+50dd 6fe0c593 fetch 1 ,mem_dg_kb_bind_flag 
+50de c0ad50e3 bne dongle_kb_bind_success ,dongle_usb_config_param 
+
+dongle_usb_config_kb:
+50df 7045935a jam dongle_kb_bind_success ,mem_dg_kb_bind_flag 
+50e0 6ff2137a fetch 4 ,usb_devicedata_addr + 9 
+50e1 79207e1d set1 29 ,pdata 
+50e2 67e20626 store 4 ,mem_devicedesc + 9 
+
+dongle_usb_config_param:
+50e3 6fe0c5de fetch 1 ,mem_dg_usb_device_iserial_number 
+50e4 67e0862e store 1 ,mem_devicedesc + 17 
+50e5 204050fc call dongle_usb_device_name 
+50e6 2040708d call usb_tx_interval_config 
+50e7 204050e9 call dongle_usb_vid_pid_config 
+50e8 202050f2 branch dongle_usb_hid_icon_config 
+
+dongle_usb_vid_pid_config:
+50e9 6fe086f9 fetch 1 ,mem_usb_vid_pid 
+50ea 207a0000 rtn blank 
+50eb 6fe0c593 fetch 1 ,mem_dg_kb_bind_flag 
+50ec c02d50f0 beq dongle_kb_bind_success ,dongle_usb_vid_pid_for_suit 
+
+dongle_usb_vid_pid_for_mouse_only_auto_pair:
+50ed 6fe206fa fetch 4 ,mem_usb_vid_pid + 1 
+
+dongle_usb_vid_pid_store:
+50ee 67e20626 store 4 ,mem_devicedesc + 9 
+50ef 20600000 rtn 
+
+dongle_usb_vid_pid_for_suit:
+50f0 6fe206fe fetch 4 ,mem_usb_vid_pid + 5 
+50f1 202050ee branch dongle_usb_vid_pid_store 
+
+dongle_usb_hid_icon_config:
+50f2 6fe0c593 fetch 1 ,mem_dg_kb_bind_flag 
+50f3 c02d50f8 beq dongle_kb_bind_success ,dongle_usb_kb_hidreportdesc 
+50f4 58009272 setarg usb_kbdata_vendor_define_addr 
+50f5 67e105fb store 2 ,mem_hidreportdesc_kb 
+50f6 70064a1a jam 0x1a ,mem_confdesc + 26 
+50f7 20600000 rtn 
+
+dongle_usb_kb_hidreportdesc:
+50f8 5800928d setarg usb_kbdata_addr 
+50f9 67e105fb store 2 ,mem_hidreportdesc_kb 
+50fa 70064a3f jam 0x3f ,mem_confdesc + 26 
+50fb 20600000 rtn 
+
+dongle_usb_device_name:
+50fc 6fe0c5be fetch 1 ,mem_dg_usb_device_name 
+50fd 207a0000 rtn blank 
+50fe d8c045be arg mem_dg_usb_device_name ,contr 
+50ff d8a006b7 arg mem_string2 ,contw 
+5100 df20001e arg 30 ,loopcnt 
+5101 20207419 branch memcpy 
+
+dongle_all_powerful:
+5102 20404ad6 call g24_switch_work_mode 
+
+dongle_all_powerful_loop:
+5103 20405183 call dongle_work_mode_auto 
+5104 2040513f call dongle_usb_dispatch 
+5105 20205103 branch dongle_all_powerful_loop 
+
+dongle_pc_bind:
+5106 20404ad6 call g24_switch_work_mode 
+
+dongle_pc_bind_loop:
+5107 20405183 call dongle_work_mode_auto 
+5108 20404adf call g24_bind_mode_auto 
+5109 2040513f call dongle_usb_dispatch 
+510a 20205107 branch dongle_pc_bind_loop 
+
+dongle_g24_blank_data_process:
+510b 2040510e call dongle_g24_ms_blank_data 
+510c 2040511e call dongle_g24_kb_blank_data 
+510d 20205130 branch dongle_g24_kb_mul_blank_data 
+
+dongle_g24_ms_blank_data:
+510e 44994006 bpatch patch06_2 ,mem_patch06 
+510f 6fe0c5b2 fetch 1 ,mem_dg_ms_blank_data_enable 
+5110 207a0000 rtn blank 
+5111 d8e0000d arg g24_timer_ms_blank ,queue 
+5112 2040742e call timer_check 
+5113 247a0000 nrtn blank 
+5114 7045b200 jam 0 ,mem_dg_ms_blank_data_enable 
+5115 58000001 setarg ms_report_id 
+5116 67e087b1 store 1 ,mem_usb_mouse_data 
+5117 58000000 setarg 0 
+5118 e7e38005 istore 7 ,contw 
+
+dongle_usb_tx_ms_data:
+5119 7007aa20 jam usb_ep2_ms ,mem_usb_ep2_data 
+
+dongle_usb_tx_enable_ep2:
+511a 6fe087ab fetch 1 ,mem_usb_tx_enable 
+511b 79207e02 set1 2 ,pdata 
+511c 67e087ab store 1 ,mem_usb_tx_enable 
+511d 20600000 rtn 
+
+dongle_g24_kb_blank_data:
+511e 4499c006 bpatch patch06_3 ,mem_patch06 
+511f 6fe0c5b0 fetch 1 ,mem_dg_kb_blank_data_enable 
+5120 207a0000 rtn blank 
+5121 d8e0000e arg g24_timer_kb_blank ,queue 
+5122 2040742e call timer_check 
+5123 247a0000 nrtn blank 
+5124 7045b000 jam 0 ,mem_dg_kb_blank_data_enable 
+5125 d8a007c1 arg mem_usb_kb_data ,contw 
+5126 df200002 arg 2 ,loopcnt 
+5127 204073dd call memset0 
+5128 6fe407c1 fetch 8 ,mem_usb_kb_data 
+5129 67e4459c store 8 ,mem_dg_kb_data_last_data 
+
+dongle_usb_tx_kb_data:
+512a 7007c100 jam kb_normal_report_id ,mem_usb_kb_data 
+
+dongle_usb_tx_enable_ep1:
+512b 7007a910 jam usb_ep1_kb ,mem_usb_ep1_data 
+512c 6fe087ab fetch 1 ,mem_usb_tx_enable 
+512d 79207e01 set1 1 ,pdata 
+512e 67e087ab store 1 ,mem_usb_tx_enable 
+512f 20600000 rtn 
+
+dongle_g24_kb_mul_blank_data:
+5130 449a4006 bpatch patch06_4 ,mem_patch06 
+5131 6fe0c5b1 fetch 1 ,mem_dg_kb_mul_blank_data_enable 
+5132 207a0000 rtn blank 
+5133 d8e0000c arg g24_timer_kb_mul_blank ,queue 
+5134 2040742e call timer_check 
+5135 247a0000 nrtn blank 
+5136 7045b100 jam 0 ,mem_dg_kb_mul_blank_data_enable 
+5137 d8a007d1 arg mem_usb_kb_multikey ,contw 
+5138 df200002 arg 2 ,loopcnt 
+5139 204073dd call memset0 
+513a 7007d103 jam kb_multikey_report_id ,mem_usb_kb_multikey 
+513b 6fe187d1 fetch 3 ,mem_usb_kb_multikey 
+513c 67e1c5a7 store 3 ,mem_dg_kb_multikey_last_data 
+
+dongle_usb_tx_multikey_data:
+513d 7007aa21 jam usb_ep2_multikey ,mem_usb_ep2_data 
+513e 2020511a branch dongle_usb_tx_enable_ep2 
+
+dongle_usb_dispatch:
+513f 449ac006 bpatch patch06_5 ,mem_patch06 
+5140 20406d37 call wdt_kick_128ms 
+5141 6fe0879f fetch 1 ,mem_usb_remote_wakeup 
+5142 205a5195 call dongle_clear_pc_sleep_flag ,blank 
+5143 20407033 call usb_isr 
+5144 6fe0887f fetch 1 ,mem_usb_ep3_out_data_flag 
+5145 243a5157 nbranch dongle_usb_rx_ep3 ,blank 
+5146 6fe08795 fetch 1 ,mem_usb0_get_set_report 
+5147 207a0000 rtn blank 
+5148 70079500 jam 0 ,mem_usb0_get_set_report 
+5149 6fe10793 fetch 2 ,mem_usb_setup_bvalue_temp 
+514a d84002ba arg pc_set_report ,temp 
+514b 98467c00 isub temp ,null 
+514c 24628000 nrtn zero 
+514d 6fe08713 fetch 1 ,mem_usb0_set_report_data 
+514e c1dd0000 rtnne pc_report_id 
+514f 6fe08714 fetch 1 ,mem_usb0_set_report_data + 1 
+5150 c050515c beq command_mode ,dongle_dispose_cmd_mode 
+5151 c050d162 beq command_bind ,dongle_dispose_cmd_bind 
+5152 c053516e beq command_current_project ,dongle_dispose_cmd_current_project 
+5153 c053d170 beq command_current_mode ,dongle_dispose_cmd_current_mode 
+5154 c054d176 beq command_current_fw_version ,dongle_dispose_cmd_current_fw_version 
+
+dongle_usb0_data_ready_report_set0:
+5155 70079600 jam 0 ,mem_usb0_data_ready_report 
+5156 20600000 rtn 
+
+dongle_usb_rx_ep3:
+5157 70087f00 jam 0 ,mem_usb_ep3_out_data_flag 
+5158 6fe0887d fetch 1 ,mem_usb_ep3_out_data_len 
+5159 207a0000 rtn blank 
+515a 6fe106f5 fetch 2 ,mem_cb_usb_ep3_process 
+515b 20207487 branch callback_func 
+
+dongle_dispose_cmd_mode:
+515c 6fe08715 fetch 1 ,mem_usb0_set_report_data + 2 
+515d c040d15f beq com_mode_bind ,dongle_enter_bind_mode 
+515e 20205155 branch dongle_usb0_data_ready_report_set0 
+
+dongle_enter_bind_mode:
+515f 20404975 call g24_bind_mode_enable 
+
+dongle_usb0_data_ready_report_set1:
+5160 70079601 jam 1 ,mem_usb0_data_ready_report 
+5161 20600000 rtn 
+
+dongle_dispose_cmd_bind:
+5162 6fe08715 fetch 1 ,mem_usb0_set_report_data + 2 
+5163 c000d167 beq com_bind_get ,dongle_dispose_cmd_get_bind 
+5164 c042516a beq com_bind_exit ,dongle_dispose_cmd_exit_bind 
+5165 c053d16c beq com_read_mode ,dongle_dispose_cmd_read_mode 
+5166 20205155 branch dongle_usb0_data_ready_report_set0 
+
+dongle_dispose_cmd_get_bind:
+5167 6fe0c520 fetch 1 ,mem_24g_bind_device_status 
+5168 67e08754 store 1 ,mem_usb0_get_report_data + 1 
+5169 20205160 branch dongle_usb0_data_ready_report_set1 
+
+dongle_dispose_cmd_exit_bind:
+516a 20404ad7 call g24_work_mode_enable 
+516b 20205167 branch dongle_dispose_cmd_get_bind 
+
+dongle_dispose_cmd_read_mode:
+
+dongle_dispose_in_bind_mode:
+516c 700754a1 jam command_bind ,mem_usb0_get_report_data + 1 
+516d 20205160 branch dongle_usb0_data_ready_report_set1 
+
+dongle_dispose_cmd_current_project:
+516e 70075415 jam product_id ,mem_usb0_get_report_data + 1 
+516f 20205160 branch dongle_usb0_data_ready_report_set1 
+
+dongle_dispose_cmd_current_mode:
+5170 6fe0c561 fetch 1 ,mem_24g_work_mode 
+5171 c0005174 beq dongle_work ,dongle_dispose_in_work_mode 
+5172 c000d16c beq dongle_bind ,dongle_dispose_in_bind_mode 
+5173 20600000 rtn 
+
+dongle_dispose_in_work_mode:
+5174 700754a0 jam command_mode ,mem_usb0_get_report_data + 1 
+5175 20205160 branch dongle_usb0_data_ready_report_set1 
+
+dongle_dispose_cmd_current_fw_version:
+5176 70075400 jam fw_version0 ,mem_usb0_get_report_data + 1 
+5177 70075500 jam fw_version1 ,mem_usb0_get_report_data + 2 
+5178 70075601 jam fw_version2 ,mem_usb0_get_report_data + 3 
+5179 70075707 jam fw_version3 ,mem_usb0_get_report_data + 4 
+517a 20205160 branch dongle_usb0_data_ready_report_set1 
+
+dongle_auto_bind:
+517b 20404a7a call g24_mode_switch_init 
+
+dongle_auto_bind_loop:
+517c 20404a7f call g24_mode_switch_bind_work 
+517d 20404aa5 call g24_mode_switch_bind_search 
+517e 20405183 call dongle_work_mode_auto 
+517f 20404adf call g24_bind_mode_auto 
+5180 20404afc call g24_search_mode_auto 
+5181 2040513f call dongle_usb_dispatch 
+5182 2020517c branch dongle_auto_bind_loop 
+
+dongle_work_mode_auto:
+5183 449b4006 bpatch patch06_6 ,mem_patch06 
+5184 6fe0c561 fetch 1 ,mem_24g_work_mode 
+5185 c1800000 rtnne dongle_work 
+5186 20404ada call g24_work_mode_start 
+5187 2040510b call dongle_g24_blank_data_process 
+5188 6fe0c55b fetch 1 ,mem_24g_pair_mode 
+5189 247a0000 nrtn blank 
+518a 20204b7e branch g24_nodata_process 
+
+dongle_ackpayload_prep:
+518b 6fe0c4d4 fetch 1 ,mem_24g_data_type 
+518c c000d18e beq datatype_device1 ,dongle_ackpayload_prep_mouse 
+518d c0015197 beq datatype_device2 ,dongle_ackpayload_prep_keyboard 
+
+dongle_ackpayload_prep_mouse:
+518e 6fe0c5dd fetch 1 ,mem_dg_pc_sleep_flag 
+518f c280519d bbit1 0 ,dongle_pc_sleep_ackpayload_prep_mouse 
+5190 20205199 branch dongle_ackpayload_prep_end 
+
+dongle_set_pc_sleep_flag:
+5191 6fe0c095 fetch 1 ,mem_device_option 
+5192 c1820000 rtnne dvc_op_dongle 
+5193 7045dd03 jam 3 ,mem_dg_pc_sleep_flag 
+5194 20600000 rtn 
+
+dongle_clear_pc_sleep_flag:
+5195 7045dd00 jam 0 ,mem_dg_pc_sleep_flag 
+5196 20600000 rtn 
+
+dongle_ackpayload_prep_keyboard:
+5197 6fe0c5dd fetch 1 ,mem_dg_pc_sleep_flag 
+5198 c280d1a1 bbit1 1 ,dongle_pc_sleep_ackpayload_prep_keyboard 
+
+dongle_ackpayload_prep_end:
+5199 6fe0c55c fetch 1 ,mem_24g_ackpayload_enable 
+519a c000d1a8 beq bind_ackpayload ,dongle_g24_bind_ackpayload_prep 
+519b c001d1ac beq kb_led_ackpayload ,dongle_g24_kb_led_ackpayload_prep 
+519c 20600000 rtn 
+
+dongle_pc_sleep_ackpayload_prep_mouse:
+519d 6fe0c5dd fetch 1 ,mem_dg_pc_sleep_flag 
+519e 793ffe00 set0 0 ,pdata 
+519f 67e0c5dd store 1 ,mem_dg_pc_sleep_flag 
+51a0 202051a4 branch dongle_pc_sleep_ackpayload_prep 
+
+dongle_pc_sleep_ackpayload_prep_keyboard:
+51a1 6fe0c5dd fetch 1 ,mem_dg_pc_sleep_flag 
+51a2 793ffe01 set0 1 ,pdata 
+51a3 67e0c5dd store 1 ,mem_dg_pc_sleep_flag 
+
+dongle_pc_sleep_ackpayload_prep:
+51a4 7044d301 jam 0x01 ,mem_24g_datalen 
+51a5 580000ff setarg 0xff 
+51a6 67e0c464 store 1 ,mem_24g_txbuf 
+51a7 20600000 rtn 
+
+dongle_g24_bind_ackpayload_prep:
+51a8 70455c01 jam 1 ,mem_24g_ackpayload_enable 
+51a9 204049f9 call g24_binding_device_check 
+51aa 24778000 nrtn user3 
+51ab 20204983 branch g24_bind_ackpayload_prep 
+
+dongle_g24_kb_led_ackpayload_prep:
+51ac 6fe0c444 fetch 1 ,mem_24g_rxbuf + 2 
+51ad c000d1a8 beq datatype_device1 ,dongle_g24_bind_ackpayload_prep 
+51ae c07fd1a8 beq datatype_attemp ,dongle_g24_bind_ackpayload_prep 
+51af 70079700 jam 0 ,mem_usb_tx_win_enable 
+51b0 7044d301 jam 0x01 ,mem_24g_datalen 
+51b1 6fe0c56c fetch 1 ,mem_24g_led_status 
+51b2 67e0c464 store 1 ,mem_24g_txbuf 
+51b3 20600000 rtn 
+
+dongle_g24_mouse:
+51b4 58000001 setarg ms_report_id 
+51b5 67e087b1 store 1 ,mem_usb_mouse_data 
+51b6 6fe3c536 fetch 7 ,mem_24g_rxdata_temp + 3 
+51b7 e7e38005 istore 7 ,contw 
+51b8 6fe0c536 fetch 1 ,mem_24g_rxdata_temp + 3 
+51b9 245a51bd ncall dongle_g24_ms_enable_blank_data_forcibly ,blank 
+51ba 6fe0c536 fetch 1 ,mem_24g_rxdata_temp + 3 
+51bb 205a51c1 call dongle_g24_ms_disable_blank_data_forcibly ,blank 
+51bc 20205119 branch dongle_usb_tx_ms_data 
+
+dongle_g24_ms_enable_blank_data_forcibly:
+51bd 7045b201 jam 1 ,mem_dg_ms_blank_data_enable 
+51be 58000180 setarg timer_ms_blank_delay 
+51bf d8e0000d arg g24_timer_ms_blank ,queue 
+51c0 20207420 branch timer_init 
+
+dongle_g24_ms_disable_blank_data_forcibly:
+51c1 7045b200 jam 0 ,mem_dg_ms_blank_data_enable 
+51c2 58000000 setarg 0 
+51c3 d8e0000d arg g24_timer_ms_blank ,queue 
+51c4 20207420 branch timer_init 
+
+dongle_g24_kb:
+51c5 6fe0c536 fetch 1 ,mem_24g_rxdata_temp + 3 
+51c6 c00051ca beq 0 ,dongle_g24_kb_type0 
+51c7 c00151fd beq 2 ,dongle_g24_kb_type2 
+51c8 c001d1e5 beq 3 ,dongle_g24_kb_type3 
+51c9 20204a39 branch g24_rx_interrupt_clear 
+
+dongle_g24_kb_type0:
+51ca 6fe0c538 fetch 1 ,mem_24g_rxdata_temp + 5 
+51cb 67e0c55c store 1 ,mem_24g_ackpayload_enable 
+51cc 70453800 jam 0 ,mem_24g_rxdata_temp + 5 
+51cd d8a007c1 arg mem_usb_kb_data ,contw 
+51ce d8c04537 arg mem_24g_rxdata_temp + 4 ,contr 
+51cf df200008 arg 8 ,loopcnt 
+51d0 20407419 call memcpy 
+51d1 6fe407c1 fetch 8 ,mem_usb_kb_data 
+51d2 245a51dd ncall dongle_g24_kb_enable_blank_data_forcibly ,blank 
+51d3 6fe407c1 fetch 8 ,mem_usb_kb_data 
+51d4 205a51e1 call dongle_g24_kb_disable_blank_data_forcibly ,blank 
+51d5 6fe407c1 fetch 8 ,mem_usb_kb_data 
+51d6 67e44594 store 8 ,mem_dg_kb_data_sta_data 
+51d7 684c459c fetcht 8 ,mem_dg_kb_data_last_data 
+51d8 98467c00 isub temp ,null 
+51d9 2442d12b ncall dongle_usb_tx_enable_ep1 ,zero 
+51da 6fe44594 fetch 8 ,mem_dg_kb_data_sta_data 
+51db 67e4459c store 8 ,mem_dg_kb_data_last_data 
+51dc 20204a39 branch g24_rx_interrupt_clear 
+
+dongle_g24_kb_enable_blank_data_forcibly:
+51dd 7045b001 jam 1 ,mem_dg_kb_blank_data_enable 
+51de 58000180 setarg timer_kb_blank_delay 
+51df d8e0000e arg g24_timer_kb_blank ,queue 
+51e0 20207420 branch timer_init 
+
+dongle_g24_kb_disable_blank_data_forcibly:
+51e1 7045b000 jam 0 ,mem_dg_kb_blank_data_enable 
+51e2 58000000 setarg 0 
+51e3 d8e0000e arg g24_timer_kb_blank ,queue 
+51e4 20207420 branch timer_init 
+
+dongle_g24_kb_type3:
+51e5 d8a007d1 arg mem_usb_kb_multikey ,contw 
+51e6 d8c04536 arg mem_24g_rxdata_temp + 3 ,contr 
+51e7 df200003 arg 3 ,loopcnt 
+51e8 20407419 call memcpy 
+51e9 6fe107d2 fetch 2 ,mem_usb_kb_multikey + 1 
+51ea 245a51f5 ncall dongle_g24_kb_mul_enable_blank_data_forcibly ,blank 
+51eb 6fe107d2 fetch 2 ,mem_usb_kb_multikey + 1 
+51ec 205a51f9 call dongle_g24_kb_mul_disable_blank_data_forcibly ,blank 
+51ed 6fe187d1 fetch 3 ,mem_usb_kb_multikey 
+51ee 67e1c5a4 store 3 ,mem_dg_kb_multikey_sta_data 
+51ef 6849c5a7 fetcht 3 ,mem_dg_kb_multikey_last_data 
+51f0 98467c00 isub temp ,null 
+51f1 2442d13d ncall dongle_usb_tx_multikey_data ,zero 
+51f2 6fe1c5a4 fetch 3 ,mem_dg_kb_multikey_sta_data 
+51f3 67e1c5a7 store 3 ,mem_dg_kb_multikey_last_data 
+51f4 20204a39 branch g24_rx_interrupt_clear 
+
+dongle_g24_kb_mul_enable_blank_data_forcibly:
+51f5 7045b101 jam 1 ,mem_dg_kb_mul_blank_data_enable 
+51f6 58000180 setarg timer_kb_mul_blank_delay 
+51f7 d8e0000c arg g24_timer_kb_mul_blank ,queue 
+51f8 20207420 branch timer_init 
+
+dongle_g24_kb_mul_disable_blank_data_forcibly:
+51f9 7045b100 jam 0 ,mem_dg_kb_mul_blank_data_enable 
+51fa 58000000 setarg 0 
+51fb d8e0000c arg g24_timer_kb_mul_blank ,queue 
+51fc 20207420 branch timer_init 
+
+dongle_g24_kb_type2:
+51fd d8a007e1 arg mem_usb_kb_system ,contw 
+51fe d8c04536 arg mem_24g_rxdata_temp + 3 ,contr 
+51ff df200002 arg 2 ,loopcnt 
+5200 20407419 call memcpy 
+5201 6fe107e1 fetch 2 ,mem_usb_kb_system 
+5202 245a520d ncall dongle_g24_kb_sys_enable_blank_data_forcibly ,blank 
+5203 6fe107e1 fetch 2 ,mem_usb_kb_system 
+5204 205a5211 call dongle_g24_kb_sys_disable_blank_data_forcibly ,blank 
+5205 6fe107e1 fetch 2 ,mem_usb_kb_system 
+5206 67e145aa store 2 ,mem_dg_kb_system_sta_data 
+5207 684945ad fetcht 2 ,mem_dg_kb_system_last_data 
+5208 98467c00 isub temp ,null 
+5209 2442d215 ncall dongle_usb_tx_sys_data ,zero 
+520a 6fe145aa fetch 2 ,mem_dg_kb_system_sta_data 
+520b 67e145ad store 2 ,mem_dg_kb_system_last_data 
+520c 20204a39 branch g24_rx_interrupt_clear 
+
+dongle_g24_kb_sys_enable_blank_data_forcibly:
+520d 7045b101 jam 1 ,mem_dg_kb_mul_blank_data_enable 
+520e 58000180 setarg timer_kb_mul_blank_delay 
+520f d8e0000c arg g24_timer_kb_mul_blank ,queue 
+5210 20207420 branch timer_init 
+
+dongle_g24_kb_sys_disable_blank_data_forcibly:
+5211 7045b100 jam 0 ,mem_dg_kb_mul_blank_data_enable 
+5212 58000000 setarg 0 
+5213 d8e0000c arg g24_timer_kb_mul_blank ,queue 
+5214 20207420 branch timer_init 
+
+dongle_usb_tx_sys_data:
+5215 7007aa22 jam usb_ep2_systemkey ,mem_usb_ep2_data 
+5216 2020511a branch dongle_usb_tx_enable_ep2 
+
+dongle_g24_store_dvc2_bind_flag:
+5217 6fe0c095 fetch 1 ,mem_device_option 
+5218 c1820000 rtnne dvc_op_dongle 
+5219 6fe0c593 fetch 1 ,mem_dg_kb_bind_flag 
+521a c12d0000 rtneq dongle_kb_bind_success 
+
+dongle_prep_soft_reset:
+521b 7045dc01 jam 1 ,mem_dg_kb_bind_success 
+521c 20600000 rtn 
+
+dongle_kb_bind_soft_reset:
+521d 6fe0c095 fetch 1 ,mem_device_option 
+521e c1820000 rtnne dvc_op_dongle 
+521f 6fe0c5dc fetch 1 ,mem_dg_kb_bind_success 
+5220 207a0000 rtn blank 
+5221 7004cc00 jam 0 ,mem_temp 
+
+dongle_wirte_efuse_bind_status:
+5222 7045935a jam dongle_kb_bind_success ,mem_dg_kb_bind_flag 
+5223 204050d6 call dongle_write_kb_bind_status 
+5224 204050d1 call dongle_read_kb_bind_status 
+5225 6fe084cc fetch 1 ,mem_temp 
+5226 1fe0fe01 increase 1 ,pdata 
+5227 67e084cc store 1 ,mem_temp 
+5228 c07fea09 beq 0xff ,soft_reset_chip 
+5229 6fe0c593 fetch 1 ,mem_dg_kb_bind_flag 
+522a c0ad5222 bne dongle_kb_bind_success ,dongle_wirte_efuse_bind_status 
+522b 20206a09 branch soft_reset_chip 
+
+mouse_init:
+522c 20406eb3 call enable_authrom 
+522d 2040525e call mouse_setting_config 
+522e 204057a0 call mouse_init_sunt 
+522f 20758000 rtn wake 
+5230 204059bd call mouse_le_name_load 
+5231 2040562e call mouse_dpi_config 
+5232 20405cc5 call mouse_drawing_optima_init 
+5233 20405239 call mouse_cb_fuction 
+5234 2040583e call mouse_sensor_powerdown 
+
+mouse_init_wireless:
+5235 6fe14434 fetch 2 ,mem_ui_state_map 
+5236 c2865b08 bbit1 ui_state_btn_down ,mouse_start_discovery 
+5237 20405c3d call mouse_check_select_device_by_switch 
+5238 202052eb branch mouse_start_work 
+
+mouse_cb_fuction:
+5239 58005fad setarg mouse_24g_short_sleep 
+523a 67e14543 store 2 ,mem_cb_24g_transmit_short_sleep 
+523b 58005fa2 setarg mouse_24g_long_sleep 
+523c 67e14545 store 2 ,mem_cb_24g_transmit_long_sleep 
+523d 58005e91 setarg mouse_24g_before_lpm_sleep 
+523e 67e143a2 store 2 ,mem_cb_before_lpm_sleep 
+523f 58005e31 setarg mouse_24g_package_data 
+5240 67e1453d store 2 ,mem_cb_24g_transmit_data 
+5241 58005e59 setarg mouse_24g_search_dongle 
+5242 67e1453f store 2 ,mem_cb_24g_search_receiver 
+5243 5800536c setarg mouse_lpm_before_common 
+5244 67e14541 store 2 ,mem_cb_24g_lpm_before 
+5245 5800596a setarg mouse_le 
+5246 67e14392 store 2 ,mem_cb_le_process 
+5247 58005367 setarg mouse_process_lpm_before 
+5248 67e14390 store 2 ,mem_cb_before_lpm 
+5249 58005912 setarg mouse_priority_bb_event 
+524a 67e14396 store 2 ,mem_cb_bb_event_process 
+524b 58005be9 setarg mouse_idle 
+524c 67e14394 store 2 ,mem_cb_idle_process 
+524d 5800532c setarg mouse_before_hibernate 
+524e 67e1438e store 2 ,mem_cb_before_hibernate 
+524f 58005952 setarg mouse_le_bb_event_connect_complete 
+5250 67e14398 store 2 ,mem_cb_att_write 
+5251 58005a1e setarg mouse_bb_event_timer 
+5252 67e1439c store 2 ,mem_cb_event_timer 
+5253 58005494 setarg mouse_spi_write_flash_cb 
+5254 67e143a0 store 2 ,mem_cb_spi_flash_write_complate 
+5255 58005318 setarg mouse_lpm_check_wake_lock 
+5256 67e1438c store 2 ,mem_cb_check_wakelock 
+5257 58005f98 setarg mouse_le_transmit 
+5258 67e1439a store 2 ,mem_cb_ble_transmit 
+5259 58005f9f setarg mouse_set_lpm_mult 
+525a 67e1439e store 2 ,mem_cb_bt_set_mult 
+525b 580059e8 setarg mouse_le_parse_l2cap 
+525c 67e14314 store 2 ,mem_le_l2cap_parse_cb 
+525d 20600000 rtn 
+
+mouse_setting_config:
+525e 20758000 rtn wake 
+525f 20404c5f call g24_transmit_init 
+5260 204048d4 call g24_chmap_param_init 
+5261 20406024 call mouse_24g_send_time_long_wake 
+5262 20405447 call mouse_gpio_init 
+5263 20405296 call mouse_param_init 
+5264 20405ab3 call mouse_device_multi_led_poweron2s_init 
+5265 204055da call mouse_double_dpi_judge 
+5266 2040575f call mouse_firebutton_connect_state_check 
+5267 204041e5 call le_set_fixed_ltk_justwork 
+5268 6fe44864 fetch mouse_flag_len ,mem_mouse_flag 
+5269 c289dbd3 bbit1 mouse_enable_eeprom ,mouse_load_eeprom_info_check 
+526a c2895b94 bbit1 mouse_enable_flash ,mouse_load_flash_info_check 
+526b 20600000 rtn 
+
+mouse_xtal_init:
+526c 70409a08 jam xtal_16m ,mem_fcomp_div 
+526d 6fe44864 fetch mouse_flag_len ,mem_mouse_flag 
+526e c3860000 rtnbit1 mouse_enable_16m 
+526f 70409a18 jam xtal_24m ,mem_fcomp_div 
+5270 20600000 rtn 
+
+mouse_24g_phy_select:
+5271 204048fa call g24_enable_1m 
+5272 6fe44864 fetch mouse_flag_len ,mem_mouse_flag 
+5273 c41e8000 rtnbit0 mouse_enable_24g_2m_phy 
+5274 202048fd branch g24_enable_2m 
+
+mouse_default_init:
+5275 6fe145a8 fetch 2 ,mem_mouse_24g_pair_timeout_init 
+5276 67e14521 store 2 ,mem_24g_pair_timeout_init 
+5277 6fe0c5ab fetch 1 ,mem_mouse_24g_reconn_timeout_init 
+5278 67e14527 store 2 ,mem_24g_reconn_timeout_init 
+5279 6fe2c5ad fetch 5 ,mem_rssi_dis_min_24g_init 
+527a 67e2c573 store 5 ,mem_rssi_dis_min_24g 
+527b 6fe0c5ac fetch 1 ,mem_mouse_24g_pair_tx_power 
+527c 67e0c51c store 1 ,mem_24g_pair_tx_power 
+527d 6fe0c5b2 fetch 1 ,mem_mouse_enable_flag 
+527e 2feffe00 isolate1 mouse_adc_enable ,pdata 
+527f 2040dc81 call mouse_adc_read_enable ,true 
+5280 6fe0c5b2 fetch 1 ,mem_mouse_enable_flag 
+5281 2feffe02 isolate1 mouse_24g_250hz_enable ,pdata 
+5282 2040dc83 call mouse_24g_set_250hz ,true 
+5283 6fe0c5b2 fetch 1 ,mem_mouse_enable_flag 
+5284 2feffe01 isolate1 mouse_search_dongle_enable ,pdata 
+5285 2040dc85 call mouse_24g_search_dongle_enable ,true 
+5286 6fe0c5b2 fetch 1 ,mem_mouse_enable_flag 
+5287 2feffe03 isolate1 mouse_clk_16m_enable ,pdata 
+5288 2040dc87 call mouse_16m_enable ,true 
+5289 6fe0c5b2 fetch 1 ,mem_mouse_enable_flag 
+528a 2feffe04 isolate1 mouse_dpi_4_level_enable ,pdata 
+528b 2040dc89 call mouse_dpi_4level_enable ,true 
+528c 6fe0c5b2 fetch 1 ,mem_mouse_enable_flag 
+528d 2feffe05 isolate1 mouse_keyboard_enable ,pdata 
+528e 2040dc93 call mouse_customer_key_enable ,true 
+528f 6fe0c504 fetch 1 ,mem_24g_ch_map_update 
+5290 245a48e4 ncall g24_chamap_param_update ,blank 
+5291 2040526c call mouse_xtal_init 
+5292 204053a6 call mouse_adc_vol_init 
+5293 20405271 call mouse_24g_phy_select 
+5294 20405d72 call mouse_24g_long_sleep_set 
+5295 20204900 branch g24_pair_param_init 
+
+mouse_param_init:
+5296 58009000 setarg mouse_ble_att_list_addr 
+5297 67e142cc store 2 ,mem_ui_le_uuid_table 
+5298 7040c203 jam 3 ,mem_lpm_mult_timeout 
+5299 7040a708 jam 8 ,mem_lpm_overhead 
+529a 70485700 jam dpi_button_state_up ,mem_select_device_button_statue 
+529b 70485700 jam pb_button_state_up ,mem_select_device_button_statue 
+529c 70485800 jam commbination_key_state_up ,mem_commbination_key_statue 
+529d 58000200 setarg 0x0200 
+529e 67e140a5 store 2 ,mem_lpm_interval 
+529f 7042b617 jam 0x17 ,mem_le_local_mtu 
+52a0 7042b817 jam 0x17 ,mem_le_remote_mtu 
+52a1 58000a77 setarg 0x0a77 
+52a2 67e143ae store 2 ,mem_spi_init_clk 
+52a3 38001224 setsect 0 ,0x1224 
+52a4 38044000 setsect 1 ,0x4000 
+52a5 38080000 setsect 2 ,0x0 
+52a6 e7e28005 istore 5 ,contw 
+52a7 580047af setarg mem_le_tx_buffer0_omemalloc 
+52a8 67e14316 store 2 ,mem_ble_l2cap_tx_buff0_ptr 
+52a9 58000010 setarg mouse_ble_l2cap_txbuff_size 
+52aa 67e14318 store 2 ,mem_ble_l2cap_tx_buff_size_ptr 
+52ab 20405ef7 call mouse_device_led_all_off 
+52ac 20405ea2 call mouse_device_poweron_timer_init 
+52ad 204053b9 call mouse_adc_gpio_mux_init 
+52ae 6fe44864 fetch mouse_flag_len ,mem_mouse_flag 
+52af c30dd2b3 bbit0 mouse_enable_bt_125hz ,mouse_param_init_intervl_end 
+52b0 58000006 setarg le_interval_7_5ms 
+52b1 67e142a8 store 2 ,mem_le_interval_min 
+52b2 67e142aa store 2 ,mem_le_interval_min + 2 
+
+mouse_param_init_intervl_end:
+52b3 204052e0 call mouse_g24_interval_param_8ms 
+52b4 6fe44864 fetch mouse_flag_len ,mem_mouse_flag 
+52b5 c30c52b7 bbit0 mouse_enable_24g_250hz ,mouse_24g_short_sleep_set_end 
+52b6 204052d5 call mouse_g24_interval_param_4ms 
+
+mouse_24g_short_sleep_set_end:
+52b7 6fe1c553 fetch 3 ,mem_24g_short_sleep_set 
+52b8 67e1c8e6 store 3 ,mem_mouse_24g_short_sleep_set_init 
+52b9 6fe0c5e5 fetch 1 ,mem_device_flag 
+52ba 67e0c76e store 1 ,mem_device_flag_temp 
+52bb 6fe1c2b3 fetch 3 ,mem_le_lap + 3 
+52bc 67e1c783 store 3 ,mem_mouse_le_lap_temp 
+52bd 6fe0c5a5 fetch 1 ,mem_adc_config_flag_init 
+52be 1fe17efe and pdata ,0xfe ,pdata 
+52bf 67e0c5a5 store 1 ,mem_adc_config_flag_init 
+52c0 67e0c3c6 store 1 ,mem_adc_config_flag 
+52c1 58000000 setarg 0 
+52c2 67e3c578 store 7 ,mem_mouse_key 
+52c3 6fe0c436 fetch 1 ,mem_ui_button_timeout 
+52c4 67e0c854 store 1 ,mem_bt_discovery_count 
+52c5 67e0c855 store 1 ,mem_select_device_count 
+52c6 2040410b call le_modified_name_adv 
+
+mouse_sensor_set_angle:
+52c7 449bc006 bpatch patch06_7 ,mem_patch06 
+52c8 6fe0c5be fetch 1 ,mem_sensor_angle_default 
+52c9 67e0c5d5 store 1 ,mem_config_sensor_angle 
+52ca 6fe0c5bd fetch 1 ,mem_select_sensor_angle_gpio 
+52cb c17f8000 rtneq gpio_disable 
+52cc 6848c5bd fetcht 1 ,mem_select_sensor_angle_gpio 
+52cd 2040547f call mouse_gpio_config_input_pu 
+52ce 6848c5bd fetcht 1 ,mem_select_sensor_angle_gpio 
+52cf 20406b85 call gpio_get_bit 
+52d0 2040d2d2 call mouse_sensor_switch_angle ,true 
+52d1 2020547b branch mouse_gpio_config_input_pd 
+
+mouse_sensor_switch_angle:
+52d2 6fe0c5bf fetch 1 ,mem_sensor_angle_switch 
+52d3 67e0c5d5 store 1 ,mem_config_sensor_angle 
+52d4 20600000 rtn 
+
+mouse_g24_interval_param_4ms:
+52d5 6fe1c8cc fetch 3 ,mem_mouse_24g_short_sleep_set_4ms 
+52d6 67e1c553 store 3 ,mem_24g_short_sleep_set 
+52d7 6fe1c8cf fetch 3 ,mem_mouse_24g_long_sleep_set_4ms 
+52d8 67e1c556 store 3 ,mem_24g_long_sleep_set 
+52d9 6fe0c8d2 fetch 1 ,mem_mouse_24g_fast_hop_count_4ms 
+52da 67e0c56c store 1 ,mem_24g_fast_hop_count 
+52db 6fe248de fetch 4 ,mem_mouse_24g_tsniff_4ms 
+52dc 67e248da store 4 ,mem_mouse_24g_tsniff 
+
+mouse_report_rate_set_250hz:
+52dd 58100c0c setarg 0x100c0c 
+52de 67e1c4f2 store 3 ,mem_24g_interval 
+52df 20600000 rtn 
+
+mouse_g24_interval_param_8ms:
+52e0 6fe1c8d3 fetch 3 ,mem_mouse_24g_short_sleep_set_8ms 
+52e1 67e1c553 store 3 ,mem_24g_short_sleep_set 
+52e2 6fe1c8d6 fetch 3 ,mem_mouse_24g_long_sleep_set_8ms 
+52e3 67e1c556 store 3 ,mem_24g_long_sleep_set 
+52e4 6fe0c8d9 fetch 1 ,mem_mouse_24g_fast_hop_count_8ms 
+52e5 67e0c56c store 1 ,mem_24g_fast_hop_count 
+52e6 6fe248e2 fetch 4 ,mem_mouse_24g_tsniff_8ms 
+52e7 67e248da store 4 ,mem_mouse_24g_tsniff 
+
+mouse_report_rate_set_125hz:
+52e8 581c1919 setarg 0x1c1919 
+52e9 67e1c4f2 store 3 ,mem_24g_interval 
+52ea 20600000 rtn 
+
+mouse_start_work:
+52eb 449c4007 bpatch patch07_0 ,mem_patch07 
+52ec 6fe44864 fetch mouse_flag_len ,mem_mouse_flag 
+52ed c297ddba bbit1 mouse_enable_24g_first_auto_pairing ,mouse_24g_first_start_auto_pair_mode 
+52ee 6fe0c5e5 fetch 1 ,mem_device_flag 
+52ef c0005daa beq mode_24g_device ,mouse_24g_start_mode 
+52f0 204052ff call mouse_wakeup_from_power_check 
+52f1 243458e5 nbranch mouse_bluetooth_fast_conn_init ,user 
+
+mouse_start_reconnect_device:
+52f2 449cc007 bpatch patch07_1 ,mem_patch07 
+52f3 6fe0c8bf fetch 1 ,mem_mouse_bt_led_recon_effect_flag 
+52f4 245a5ab8 ncall mouse_multi_led_blink_enable ,blank 
+52f5 da2045e6 arg mem_device1_type ,rega 
+52f6 6fe0c5e5 fetch 1 ,mem_device_flag 
+52f7 1fe0ffff increase -1 ,pdata 
+52f8 1feffe1d mul32 pdata ,29 ,pdata 
+52f9 9a20a200 iadd rega ,rega 
+52fa efe08011 ifetch 1 ,rega 
+52fb 67e0c3ac store 1 ,mem_xrecord_mode 
+
+mouse_start_reconnect:
+52fc 6fe0c3ac fetch 1 ,mem_xrecord_mode 
+52fd c01a5309 beq rec_4_mode ,mouse4_0_check_reconn_target 
+52fe 202058e5 branch mouse_bluetooth_fast_conn_init 
+
+mouse_wakeup_from_power_check:
+52ff 449d4007 bpatch patch07_2 ,mem_patch07 
+5300 78547c00 disable user 
+5301 6fe44864 fetch mouse_flag_len ,mem_mouse_flag 
+5302 c305d306 bbit0 mouse_enable_wakeup_from_power ,mouse_wakeup_from_power 
+5303 6fe084f1 fetch 1 ,mem_wakup_from_power_flag 
+5304 c3015306 bbit0 bit_power_on ,mouse_wakeup_from_power 
+5305 78347c00 enable user 
+
+mouse_wakeup_from_power:
+5306 6fe0c76b fetch 1 ,mem_reconn_times_init 
+5307 67e0c76a store 1 ,mem_reconn_times 
+5308 20600000 rtn 
+
+mouse4_0_check_reconn_target:
+5309 70478101 jam 1 ,mem_mouse_le_reconnect_flag 
+530a 6848c86f fetcht 1 ,mem_mouse_fast_direct_timeout 
+530b 6fe0c77b fetch 1 ,mem_mouse_bluetooth_fast_conn_flag 
+530c c07fd30e beq 0xff ,mouse4_0_check_reconn_target_next 
+530d 6848c5aa fetcht 1 ,mem_mouse_direct_timeout 
+
+mouse4_0_check_reconn_target_next:
+530e 6048c831 storet 1 ,mem_mouse_direct_timer 
+530f 20404e19 call app_lpm_mult_disable 
+5310 6fe1c789 fetch 3 ,mem_le_adv_direct_ind 
+5311 67e1c324 store 3 ,mem_le_adv_data + 4 
+5312 204059b2 call mouse_le_check_adv_flag 
+5313 58000004 setarg adv_flag_bredr_not_supported 
+5314 e7e08006 istore 1 ,contr 
+5315 d8c04340 arg mem_le_scan_data ,contr 
+5316 204059b9 call mouse_le_adv_data_update 
+5317 20206fc0 branch check_51cmd_adv 
+
+mouse_lpm_check_wake_lock:
+5318 c5134df4 bmark1 mark_24g ,app_get_lpm_wake_lock 
+5319 6fe0c766 fetch 1 ,mem_mouse_clear_sensor_data_flag 
+531a 203a4df4 branch app_get_lpm_wake_lock ,blank 
+531b 6fe0c7ae fetch 1 ,mem_mouse_le_conn_param_reject 
+531c c000cdf4 beq le_lpm_disable ,app_get_lpm_wake_lock 
+531d 6fe0c589 fetch 1 ,mem_mouse_wheel_trigger 
+531e 243a4df4 nbranch app_get_lpm_wake_lock ,blank 
+531f 20204df6 branch app_put_lpm_wake_lock 
+
+mouse_delay_enter_hibernata:
+5320 6fe0c5aa fetch 1 ,mem_mouse_direct_timeout 
+5321 67e0c77e store 1 ,mem_mouse_bluetooth_reconnect_timeout 
+5322 20600000 rtn 
+
+mouse_power_down:
+5323 20405ef7 call mouse_device_led_all_off 
+
+mouse_app_enter_hibernate:
+5324 449dc007 bpatch patch07_3 ,mem_patch07 
+5325 58000006 setarg pan_reg_config 
+5326 2040674e call twspi_read 
+5327 c281d32a bbit1 3 ,mouse_app_enter_hibernate_next 
+5328 2040582b call mouse_sensor_reset 
+5329 2040583e call mouse_sensor_powerdown 
+
+mouse_app_enter_hibernate_next:
+532a 20405338 call mouse_setgpio_hibernate 
+532b 20204e13 branch app_enter_hibernate 
+
+mouse_before_hibernate:
+532c 449e4007 bpatch patch07_4 ,mem_patch07 
+532d 6ff20130 fetch 4 ,core_lpm_ctrl 
+532e 79207e1a set1 26 ,pdata 
+532f 67f2004c store 4 ,core_lpm_reg 
+5330 20403c05 call lpm_write_ctrl 
+5331 20406eb7 call disable_authrom 
+5332 20405ef7 call mouse_device_led_all_off 
+5333 20405543 call mouse_before_hibernate_wheel_gpio_set 
+5334 20405338 call mouse_setgpio_hibernate 
+5335 20405bcb call mouse_flash_power_down 
+5336 6848c5c6 fetcht 1 ,mem_sensor_motion_gpio 
+5337 20206b6e branch gpio_clr_wake 
+
+mouse_setgpio_hibernate:
+5338 449ec007 bpatch patch07_5 ,mem_patch07 
+5339 204058e3 call mouse_set_sdio_high 
+533a 204074e0 call clear_wake 
+533b 20405afd call mouse_logo_led_off 
+533c 20405af0 call mouse_1io2led_all_off 
+533d 20405543 call mouse_before_hibernate_wheel_gpio_set 
+533e 6848c5c3 fetcht 1 ,mem_matrix_public_gpio 
+533f 20406b96 call gpio_out_active 
+5340 6848c5c3 fetcht 1 ,mem_matrix_public_gpio 
+5341 20406b6e call gpio_clr_wake 
+5342 6fe0c5bc fetch 1 ,mem_mouse_sensor_sdio_gpio 
+5343 20405759 call mouse_gpio_config_output_high 
+5344 6848c5c8 fetcht 1 ,mem_mouse_reuse_2ice_gpio 
+5345 2040547f call mouse_gpio_config_input_pu 
+5346 2040536c call mouse_lpm_before_common 
+5347 2040535e call mouse_gpio_pd_idle 
+5348 d840000d arg 13 ,temp 
+5349 2040547f call mouse_gpio_config_input_pu 
+534a 20405483 call mouse_gpio_set_high_impedance 
+534b 20405357 call mouse_adc_gpio_set_before_hibernate 
+534c 2020534d branch mouse_wheel_gpio_set_before_hibernate 
+
+mouse_wheel_gpio_set_before_hibernate:
+534d 6fe44864 fetch mouse_flag_len ,mem_mouse_flag 
+534e c41e0000 rtnbit0 mouse_enable_wheel_wake_up_cancel 
+
+mouse_wheel_gpio_clr_wakeup:
+534f 6848c5b9 fetcht 1 ,mem_whee_a_data_gpio 
+5350 20406b6e call gpio_clr_wake 
+5351 6848c5ba fetcht 1 ,mem_whee_b_data_gpio 
+5352 20406b6e call gpio_clr_wake 
+5353 6848c5b9 fetcht 1 ,mem_whee_a_data_gpio 
+5354 2040547b call mouse_gpio_config_input_pd 
+5355 6848c5ba fetcht 1 ,mem_whee_b_data_gpio 
+5356 2020547b branch mouse_gpio_config_input_pd 
+
+mouse_adc_gpio_set_before_hibernate:
+5357 6fe44864 fetch mouse_flag_len ,mem_mouse_flag 
+5358 c40a0000 rtnbit0 mouse_enable_adc 
+5359 6fe0c5a5 fetch 1 ,mem_adc_config_flag_init 
+535a c1820000 rtnne adc_config_gpio_h 
+535b 6fe0c5a4 fetch 1 ,mem_adc_channel_gpio 
+535c d84000c0 arg gpcfg_no_ie ,temp 
+535d 20206bbd branch gpio_config_function_int 
+
+mouse_gpio_pd_idle:
+535e d8c08070 arg core_gpio_conf ,contr 
+535f df20000d arg 13 ,loopcnt 
+
+mouse_gpio_pd_idle_loop:
+5360 efe08006 ifetch 1 ,contr 
+5361 243a5365 nbranch mouse_gpio_pd_idle_configured ,blank 
+5362 58000080 setarg 0x80 
+5363 18c08bff add contr ,-1 ,contw 
+5364 e7e08005 istore 1 ,contw 
+
+mouse_gpio_pd_idle_configured:
+5365 c2005360 loop mouse_gpio_pd_idle_loop 
+5366 20600000 rtn 
+
+mouse_process_lpm_before:
+5367 c6130000 rtnmark1 mark_24g 
+5368 2040536c call mouse_lpm_before_common 
+5369 6fe08015 fetch 1 ,mem_lpm_current_mult 
+536a 247a0000 nrtn blank 
+536b 20206b6e branch gpio_clr_wake 
+
+mouse_lpm_before_common:
+536c 449f4007 bpatch patch07_6 ,mem_patch07 
+536d 6848c5b9 fetcht 1 ,mem_whee_a_data_gpio 
+536e 20406b7c call gpio_config_input 
+536f 6848c5ba fetcht 1 ,mem_whee_b_data_gpio 
+5370 20406b7c call gpio_config_input 
+5371 204054b6 call mouse_wheel_check 
+5372 6fe0c5bb fetch 1 ,mem_mouse_sensor_sclk_gpio 
+5373 20405759 call mouse_gpio_config_output_high 
+5374 20406745 call twspi_disable 
+5375 6848c5b3 fetcht 1 ,mem_lbutton_gpio 
+5376 20406b62 call gpio_set_wake 
+5377 6848c5b5 fetcht 1 ,mem_rbutton_gpio 
+5378 20406b62 call gpio_set_wake 
+5379 6848c5b4 fetcht 1 ,mem_mbutton_gpio 
+537a 20406b62 call gpio_set_wake 
+537b 6848c5b6 fetcht 1 ,mem_bk_button_gpio 
+537c 20406b62 call gpio_set_wake 
+537d 6848c5b7 fetcht 1 ,mem_fw_button_gpio 
+537e 20406b62 call gpio_set_wake 
+537f 6848c5b8 fetcht 1 ,mem_dpi_button_gpio 
+5380 20406b62 call gpio_set_wake 
+5381 6848c5c4 fetcht 1 ,mem_config_select_device_button_gpio 
+5382 20406b62 call gpio_set_wake 
+5383 6848c5c5 fetcht 1 ,mem_customer_key_gpio 
+5384 20406b62 call gpio_set_wake 
+5385 6848c5b9 fetcht 1 ,mem_whee_a_data_gpio 
+5386 20406b5e call gpio_set_wake_by_current_state 
+5387 6848c5ba fetcht 1 ,mem_whee_b_data_gpio 
+5388 20406b5e call gpio_set_wake_by_current_state 
+5389 6848c5c1 fetcht 1 ,mem_whee_ta_data_gpio 
+538a 20406b5e call gpio_set_wake_by_current_state 
+538b 6848c5c2 fetcht 1 ,mem_whee_tb_data_gpio 
+538c 20406b5e call gpio_set_wake_by_current_state 
+538d 6848c5c6 fetcht 1 ,mem_sensor_motion_gpio 
+538e 20206b62 branch gpio_set_wake 
+
+mouse_set_mult:
+538f 6fe14434 fetch 2 ,mem_ui_state_map 
+5390 c284d392 bbit1 ui_state_ble_connected ,mouse_set_ble_mult 
+5391 20600000 rtn 
+
+mouse_set_ble_mult:
+5392 1a227e00 copy rega ,pdata 
+5393 243a4177 nbranch le_set_config_short_mult ,blank 
+5394 20204179 branch le_clr_config_short_mult 
+
+mouse_adc_gpio_set:
+5395 6fe0c3c6 fetch 1 ,mem_adc_config_flag 
+5396 c1820000 rtnne adc_config_gpio_h 
+
+mouse_adc_gpio_check_output:
+5397 449fc007 bpatch patch07_7 ,mem_patch07 
+5398 6848c3c7 fetcht 1 ,mem_adc_channel 
+5399 18467c03 sub temp ,3 ,null 
+539a 202153a3 branch mouse_adc_gpio_4_7_set ,positive 
+539b 18408405 increase 5 ,temp 
+539c 6048c5a4 storet 1 ,mem_adc_channel_gpio 
+
+mouse_adc_gpio_set_next:
+539d 18422200 copy temp ,rega 
+539e 20406bc4 call gpio_get_config 
+539f c01fdf45 beq gpcfg_output_high ,mouse_set_24g_led_statue 
+53a0 20405f43 call mouse_clear_24g_led_statue 
+53a1 1a220400 copy rega ,temp 
+53a2 20206bae branch gpio_set_high_impedance 
+
+mouse_adc_gpio_4_7_set:
+53a3 18408404 increase 4 ,temp 
+53a4 6048c5a4 storet 1 ,mem_adc_channel_gpio 
+53a5 2020539d branch mouse_adc_gpio_set_next 
+
+mouse_adc_vol_init:
+53a6 6fe0c5a5 fetch 1 ,mem_adc_config_flag_init 
+53a7 c00253af beq adc_config_gpio_h ,mouse_adc_gpio_vol_init 
+53a8 c000d3b4 beq adc_config_hvin ,mouse_adc_gpio_vinlpm_init 
+53a9 7045a501 jam adc_config_hvin ,mem_adc_config_flag_init 
+53aa 582c0172 setarg 0x2c0172 
+53ab 67e1c58b store 3 ,mem_mouse_vdd_full_vol 
+53ac 58014001 setarg 0x014001 
+53ad e7e18005 istore 3 ,contw 
+53ae 20600000 rtn 
+
+mouse_adc_gpio_vol_init:
+53af 585d0099 setarg 0x5d0099 
+53b0 67e1c58b store 3 ,mem_mouse_vdd_full_vol 
+53b1 58007100 setarg 0x007100 
+53b2 e7e18005 istore 3 ,contw 
+53b3 20600000 rtn 
+
+mouse_adc_gpio_vinlpm_init:
+53b4 58c8012c setarg 0xc8012c 
+53b5 67e1c58b store 3 ,mem_mouse_vdd_full_vol 
+53b6 5800dc00 setarg 0x00dc00 
+53b7 e7e18005 istore 3 ,contw 
+53b8 20600000 rtn 
+
+mouse_adc_gpio_mux_init:
+53b9 6fe44864 fetch mouse_flag_len ,mem_mouse_flag 
+53ba c40a0000 rtnbit0 mouse_enable_adc 
+53bb 70459d01 jam mouse_adc_check_multiple ,mem_adc_mux_status 
+53bc c3970000 rtnbit1 mouse_enable_dpi_key_connect_adc 
+53bd c3958000 rtnbit1 mouse_enable_select_device_by_switch_adc 
+53be 70459d00 jam mouse_adc_check_battery_only ,mem_adc_mux_status 
+53bf 20600000 rtn 
+
+mouse_adc_read_interval:
+53c0 6fe0c59e fetch 1 ,mem_adc_read_timer 
+53c1 1fe0fe01 increase 1 ,pdata 
+53c2 67e0c59e store 1 ,mem_adc_read_timer 
+53c3 6848c59f fetcht 1 ,mem_adc_read_time_init 
+53c4 98467c00 isub temp ,null 
+53c5 20600000 rtn 
+
+mouse_adc_read:
+53c6 6fe44864 fetch mouse_flag_len ,mem_mouse_flag 
+53c7 c40a0000 rtnbit0 mouse_enable_adc 
+53c8 20405395 call mouse_adc_gpio_set 
+53c9 6fe0c59d fetch 1 ,mem_adc_mux_status 
+53ca 203a53dd branch mouse_adc_read_battery ,blank 
+53cb 6fe0c3c6 fetch 1 ,mem_adc_config_flag 
+53cc c00253d2 beq adc_config_gpio_h ,mouse_adc_read_gpio_mux_start 
+53cd 70459d03 jam mouse_adc_check_vinlpm_multiple ,mem_adc_mux_status 
+53ce 204053c0 call mouse_adc_read_interval 
+53cf 202153d4 branch mouse_adc_read_gpio ,positive 
+53d0 204053d9 call mouse_adc_read_vinlpm 
+53d1 202053e3 branch mouse_adc_read_start 
+
+mouse_adc_read_gpio_mux_start:
+53d2 70459d02 jam mouse_adc_check_gpio_multiple ,mem_adc_mux_status 
+53d3 202053e3 branch mouse_adc_read_start 
+
+mouse_adc_read_gpio:
+53d4 20405397 call mouse_adc_gpio_check_output 
+53d5 7043c604 jam adc_config_gpio_h ,mem_adc_config_flag 
+53d6 6fe0c863 fetch 1 ,mem_24g_device_led_status 
+53d7 245a53d9 ncall mouse_adc_read_vinlpm ,blank 
+53d8 202053e3 branch mouse_adc_read_start 
+
+mouse_adc_read_vinlpm:
+53d9 70459e00 jam 0 ,mem_adc_read_timer 
+53da 6fe0c5a5 fetch 1 ,mem_adc_config_flag_init 
+53db 67e0c3c6 store 1 ,mem_adc_config_flag 
+53dc 20600000 rtn 
+
+mouse_adc_read_battery:
+53dd 6fe0c3c6 fetch 1 ,mem_adc_config_flag 
+53de c08253e1 bne adc_config_gpio_h ,mouse_adc_read_battery_start 
+53df 6fe0c863 fetch 1 ,mem_24g_device_led_status 
+53e0 247a0000 nrtn blank 
+
+mouse_adc_read_battery_start:
+53e1 204053c0 call mouse_adc_read_interval 
+53e2 24610000 nrtn positive 
+
+mouse_adc_read_start:
+53e3 44a04008 bpatch patch08_0 ,mem_patch08 
+53e4 6fe0c863 fetch 1 ,mem_24g_device_led_status 
+53e5 247a0000 nrtn blank 
+53e6 70459e00 jam 0 ,mem_adc_read_timer 
+53e7 20406be2 call enable_adc 
+53e8 20406c11 call adc_calculate 
+53e9 67e14591 store 2 ,mem_mouse_vdd_now_vol 
+53ea 6fe0c3c6 fetch 1 ,mem_adc_config_flag 
+53eb c08253f2 bne adc_config_gpio_h ,mouse_adc_data_process 
+53ec 68494591 fetcht 2 ,mem_mouse_vdd_now_vol 
+53ed 184ffe08 mul32 temp ,8 ,pdata 
+53ee 1fe6fc0a div pdata ,10 
+53ef 20407472 call get_div_result 
+53f0 9840fe00 iadd temp ,pdata 
+53f1 67e14591 store 2 ,mem_mouse_vdd_now_vol 
+
+mouse_adc_data_process:
+53f2 da20458b arg mem_mouse_vdd_calculate_set ,rega 
+53f3 20405404 call mouse_adc_bat_percent_lowpower_out 
+53f4 6fe0c3ca fetch 1 ,mem_adc_power_flag 
+53f5 c2815445 bbit1 2 ,mouse_adc_button_press 
+53f6 c280d323 bbit1 1 ,mouse_power_down 
+53f7 c30053fc bbit0 0 ,mouse_adc_no_low_voltage 
+53f8 7045a201 jam 1 ,mem_mouse_adc_last_low_voltage_flag 
+53f9 202053fa branch mouse_adc_low_voltage 
+
+mouse_adc_low_voltage:
+53fa d8e00004 arg mouse_low_voltage_flag ,queue 
+53fb 20205c8b branch mouse_enable_function_flag 
+
+mouse_adc_no_low_voltage:
+53fc d8e00004 arg mouse_low_voltage_flag ,queue 
+53fd 20405c8f call mouse_disable_function_flag 
+53fe 7045a00c jam 12 ,mem_adc_low_volatage_led_timer_count 
+53ff 6fe0c5a2 fetch 1 ,mem_mouse_adc_last_low_voltage_flag 
+5400 207a0000 rtn blank 
+5401 7045a200 jam 0 ,mem_mouse_adc_last_low_voltage_flag 
+5402 6848c5c9 fetcht 1 ,mem_config_low_voltage_alarm_gpio 
+5403 20205f14 branch mouse_led_off 
+
+mouse_adc_bat_percent_lowpower_out:
+5404 44a0c008 bpatch patch08_1 ,mem_patch08 
+5405 efe40011 ifetch 8 ,rega 
+5406 67e404c4 store 8 ,mem_pdatatemp 
+5407 6fe0c59d fetch 1 ,mem_adc_mux_status 
+5408 c000541b beq mouse_adc_check_battery_only ,mouse_adc_bat_percent_lowpower_out_battery 
+5409 c001540b beq mouse_adc_check_gpio_multiple ,mouse_adc_bat_percent_lowpower_out_gpio_multiple 
+540a c001d43a beq mouse_adc_check_vinlpm_multiple ,mouse_adc_bat_percent_lowpower_out_vinlpm_multiple 
+
+mouse_adc_bat_percent_lowpower_out_gpio_multiple:
+540b 6fe44864 fetch mouse_flag_len ,mem_mouse_flag 
+540c c3175411 bbit0 mouse_enable_dpi_key_connect_adc ,mouse_adc_bat_percent_lowpower_out_gpio_switch 
+540d 6fe104ca fetch 2 ,mem_pdatatemp + 6 
+540e 68494593 fetcht 2 ,mem_mouse_vdd_button_press_vol 
+540f 98467c00 isub temp ,null 
+5410 2421543d nbranch mouse_adc_set_button_press_flag ,positive 
+
+mouse_adc_bat_percent_lowpower_out_gpio_switch:
+5411 6fe44864 fetch mouse_flag_len ,mem_mouse_flag 
+5412 c315d41b bbit0 mouse_enable_select_device_by_switch_adc ,mouse_adc_bat_percent_lowpower_out_battery 
+5413 7045a300 jam 0 ,mem_mouse_adc_button_press_flag 
+5414 6fe104ca fetch 2 ,mem_pdatatemp + 6 
+5415 68494595 fetcht 2 ,mem_mouse_vdd_switch_gnd_24g_vol 
+5416 98467c00 isub temp ,null 
+5417 2421541a nbranch mouse_select_24gdevice ,positive 
+5418 20405c46 call mouse_select_btdevice 
+5419 2020541b branch mouse_adc_bat_percent_lowpower_out_battery 
+
+mouse_select_24gdevice:
+541a 20405c4a call mouse_check_select_24gdevice 
+
+mouse_adc_bat_percent_lowpower_out_battery:
+541b 20405441 call mouse_adc_clear_button_press_flag 
+541c 20406c4d call adc_clear_no_power_flag 
+541d 20406c45 call adc_clear_low_power_flag 
+541e 6fe104ca fetch 2 ,mem_pdatatemp + 6 
+541f 684904c6 fetcht 2 ,mem_pdatatemp + 2 
+5420 98467c00 isub temp ,null 
+5421 24416c49 ncall adc_set_no_power_flag ,positive 
+5422 684904c8 fetcht 2 ,mem_pdatatemp + 4 
+5423 98467c00 isub temp ,null 
+5424 24416c41 ncall adc_set_low_power_flag ,positive 
+
+mouse_adc_bat_level_set:
+5425 6fe104ca fetch 2 ,mem_pdatatemp + 6 
+5426 684904c4 fetcht 2 ,mem_pdatatemp 
+5427 98467c00 isub temp ,null 
+5428 20215436 branch mouse_adc_bat_level_100_percent ,positive 
+5429 684904c6 fetcht 2 ,mem_pdatatemp + 2 
+542a 98467e00 isub temp ,pdata 
+542b 24215438 nbranch mouse_adc_bat_level_0_percent ,positive 
+542c 203a5438 branch mouse_adc_bat_level_0_percent ,blank 
+542d 1fefa264 mul32 pdata ,100 ,rega 
+542e 6fe104c4 fetch 2 ,mem_pdatatemp 
+542f 684904c6 fetcht 2 ,mem_pdatatemp + 2 
+5430 98460400 isub temp ,temp 
+5431 1a227e00 copy rega ,pdata 
+5432 9846fc00 idiv temp 
+5433 20407472 call get_div_result 
+5434 67e0c7a9 store 1 ,mem_le_battery_level_percentage 
+5435 20600000 rtn 
+
+mouse_adc_bat_level_100_percent:
+5436 7047a964 jam 100 ,mem_le_battery_level_percentage 
+5437 20600000 rtn 
+
+mouse_adc_bat_level_0_percent:
+5438 7047a900 jam 0 ,mem_le_battery_level_percentage 
+5439 20600000 rtn 
+
+mouse_adc_bat_percent_lowpower_out_vinlpm_multiple:
+543a 6fe0c3c6 fetch 1 ,mem_adc_config_flag 
+543b c002540b beq adc_config_gpio_h ,mouse_adc_bat_percent_lowpower_out_gpio_multiple 
+543c 2020541b branch mouse_adc_bat_percent_lowpower_out_battery 
+
+mouse_adc_set_button_press_flag:
+543d 6848c3ca fetcht 1 ,mem_adc_power_flag 
+543e 79200402 set1 2 ,temp 
+543f 6048c3ca storet 1 ,mem_adc_power_flag 
+5440 20600000 rtn 
+
+mouse_adc_clear_button_press_flag:
+5441 6848c3ca fetcht 1 ,mem_adc_power_flag 
+5442 793f8402 set0 2 ,temp 
+5443 6048c3ca storet 1 ,mem_adc_power_flag 
+5444 20600000 rtn 
+
+mouse_adc_button_press:
+5445 7045a301 jam 1 ,mem_mouse_adc_button_press_flag 
+5446 20600000 rtn 
+
+mouse_gpio_init:
+5447 20405afd call mouse_logo_led_off 
+5448 20405af0 call mouse_1io2led_all_off 
+5449 6848c3d9 fetcht 1 ,mem_eeprom_wp_gpio 
+544a 20406b96 call gpio_config_output 
+544b 6848c5b3 fetcht 1 ,mem_lbutton_gpio 
+544c 2040547f call mouse_gpio_config_input_pu 
+544d 6848c5b5 fetcht 1 ,mem_rbutton_gpio 
+544e 2040547f call mouse_gpio_config_input_pu 
+544f 6848c5b4 fetcht 1 ,mem_mbutton_gpio 
+5450 2040547f call mouse_gpio_config_input_pu 
+5451 6848c5b6 fetcht 1 ,mem_bk_button_gpio 
+5452 2040547f call mouse_gpio_config_input_pu 
+5453 6848c5b7 fetcht 1 ,mem_fw_button_gpio 
+5454 2040547f call mouse_gpio_config_input_pu 
+5455 6848c5b8 fetcht 1 ,mem_dpi_button_gpio 
+5456 2040547f call mouse_gpio_config_input_pu 
+5457 6848c5c3 fetcht 1 ,mem_matrix_public_gpio 
+5458 2040547f call mouse_gpio_config_input_pu 
+5459 6848c5c4 fetcht 1 ,mem_config_select_device_button_gpio 
+545a 2040547f call mouse_gpio_config_input_pu 
+545b 6848c5c5 fetcht 1 ,mem_customer_key_gpio 
+545c 2040547f call mouse_gpio_config_input_pu 
+545d 6848c5b9 fetcht 1 ,mem_whee_a_data_gpio 
+545e 2040547f call mouse_gpio_config_input_pu 
+545f 6848c5ba fetcht 1 ,mem_whee_b_data_gpio 
+5460 2040547f call mouse_gpio_config_input_pu 
+5461 6848c5c1 fetcht 1 ,mem_whee_ta_data_gpio 
+5462 2040547f call mouse_gpio_config_input_pu 
+5463 6848c5c2 fetcht 1 ,mem_whee_tb_data_gpio 
+5464 2040547f call mouse_gpio_config_input_pu 
+5465 6848c5c6 fetcht 1 ,mem_sensor_motion_gpio 
+5466 2040547f call mouse_gpio_config_input_pu 
+5467 6848c5c7 fetcht 1 ,mem_device_switch_gpio 
+5468 2040547f call mouse_gpio_config_input_pu 
+5469 6848c5c9 fetcht 1 ,mem_config_low_voltage_alarm_gpio 
+546a 20406b96 call gpio_config_output 
+546b 6848c5ca fetcht 1 ,mem_config_device_24g_led_gpio 
+546c 20406b96 call gpio_config_output 
+546d 6848c5cb fetcht 1 ,mem_config_device_bt1_led_gpio 
+546e 20406b96 call gpio_config_output 
+546f 6848c5cc fetcht 1 ,mem_config_device_bt2_led_gpio 
+5470 20406b96 call gpio_config_output 
+5471 6848c5cd fetcht 1 ,mem_dpi_led_gpio 
+5472 20406b96 call gpio_config_output 
+5473 6848c5bd fetcht 1 ,mem_select_sensor_angle_gpio 
+5474 2020547f branch mouse_gpio_config_input_pu 
+
+mouse_gpio_set_pupd_by_input:
+5475 18467cff sub temp ,ui_button_gpio_disable ,null 
+5476 20628000 rtn zero 
+5477 18410e7f and temp ,0x7f ,queue 
+5478 6ff2011c fetch 4 ,core_gpio_in 
+5479 afefffff qisolate1 pdata 
+547a 2020d47f branch mouse_gpio_config_input_pu ,true 
+
+mouse_gpio_config_input_pd:
+547b 18467cff sub temp ,ui_button_gpio_disable ,null 
+547c 20628000 rtn zero 
+547d 79200407 set1 gpio_active_bit ,temp 
+547e 20206b7c branch gpio_config_input 
+
+mouse_gpio_config_input_pu:
+547f 18467cff sub temp ,ui_button_gpio_disable ,null 
+5480 20628000 rtn zero 
+5481 793f8407 set0 gpio_active_bit ,temp 
+5482 20206b7c branch gpio_config_input 
+
+mouse_gpio_set_high_impedance:
+5483 6fe1c896 fetch 3 ,mem_mouse_set_high_impedance_bit_set 
+5484 67e184c4 store 3 ,mem_pdatatemp 
+5485 df20000e arg 14 ,loopcnt 
+5486 d8400000 arg 0 ,temp 
+
+mouse_gpio_set_high_impedance_bit_loop:
+5487 6fe184c4 fetch 3 ,mem_pdatatemp 
+5488 2feffe00 isolate1 0 ,pdata 
+5489 2040ebae call gpio_set_high_impedance ,true 
+548a 6fe184c4 fetch 3 ,mem_pdatatemp 
+548b 1fe3fe00 lshift pdata ,pdata 
+548c 67e184c4 store 3 ,mem_pdatatemp 
+548d 18408401 increase 1 ,temp 
+548e c2005487 loop mouse_gpio_set_high_impedance_bit_loop 
+548f 20600000 rtn 
+
+mouse_sensor_spi_init:
+5490 20405495 call mouse_spid_init_pin 
+5491 7043ae73 jam 0x73 ,mem_spi_init_clk 
+5492 20405494 call mouse_spi_init 
+5493 20206749 branch twspi_enable 
+
+mouse_spi_write_flash_cb:
+
+mouse_spi_init:
+5494 20206939 branch spid_init 
+
+mouse_spid_init_pin:
+5495 6fe0c5bb fetch 1 ,mem_mouse_sensor_sclk_gpio 
+5496 d8400021 arg gpcfg_spid_sck ,temp 
+5497 20406bbd call gpio_config_function_int 
+5498 6fe0c5bc fetch 1 ,mem_mouse_sensor_sdio_gpio 
+5499 d8400023 arg gpcfg_spid_sdio ,temp 
+549a 20206bbd branch gpio_config_function_int 
+
+mouse_motion:
+549b 44a14008 bpatch patch08_2 ,mem_patch08 
+549c 78547c00 disable user 
+549d 58000000 setarg 0 
+549e 67e34579 store 6 ,mem_mouse_x 
+549f 20405847 call mouse_check_sensor_data 
+54a0 58000089 setarg 0x0089 
+54a1 2040674d call twspi_write 
+54a2 2040562e call mouse_dpi_config 
+54a3 204054ac call mouse_zwheel 
+54a4 204054b1 call mouse_t_zwheel 
+54a5 2040567b call mouse_key 
+54a6 6fe0c578 fetch 1 ,mem_mouse_key 
+54a7 1fe17e1f and_into 0x1f ,pdata 
+54a8 67e0c578 store 1 ,mem_mouse_key 
+54a9 24345cc5 nbranch mouse_drawing_optima_init ,user 
+54aa 20405cb4 call mouse_drawing_optima 
+54ab 20205aa9 branch mouse_no_data_timer_init 
+
+mouse_zwheel:
+54ac 6fe0c588 fetch 1 ,mem_mouse_z_data 
+54ad 207a0000 rtn blank 
+54ae 67e0c57d store 1 ,mem_mouse_z 
+54af 70458800 jam 0 ,mem_mouse_z_data 
+54b0 202074c8 branch enable_user 
+
+mouse_t_zwheel:
+54b1 6fe0c584 fetch 1 ,mem_mouse_tz_data 
+54b2 207a0000 rtn blank 
+54b3 67e0c57e store 1 ,mem_mouse_tz 
+54b4 70458400 jam 0 ,mem_mouse_tz_data 
+54b5 202074c8 branch enable_user 
+
+mouse_wheel_check:
+54b6 204054c3 call mouse_t_wheel_scan 
+54b7 204054ff call mouse_wheel_scan 
+54b8 6fe0c582 fetch 1 ,mem_wheel_tb_new_pinlevel 
+54b9 6848c581 fetcht 1 ,mem_wheel_tb_old_pinlevel 
+54ba 67e0c581 store 1 ,mem_wheel_tb_old_pinlevel 
+54bb 98467c00 isub temp ,null 
+54bc 2422cdf8 nbranch app_lpm_wake_auto_lock ,zero 
+54bd 6fe0c586 fetch 1 ,mem_mwheel_b_new_pinlevel 
+54be 6848c585 fetcht 1 ,mem_mwheel_b_old_pinlevel 
+54bf 67e0c585 store 1 ,mem_mwheel_b_old_pinlevel 
+54c0 98467c00 isub temp ,null 
+54c1 2422cdf8 nbranch app_lpm_wake_auto_lock ,zero 
+54c2 20600000 rtn 
+
+mouse_t_wheel_scan:
+54c3 6fe0c5c1 fetch 1 ,mem_whee_ta_data_gpio 
+54c4 c17f8000 rtneq gpio_disable 
+54c5 da200000 arg 0 ,rega 
+54c6 6848c5c1 fetcht 1 ,mem_whee_ta_data_gpio 
+54c7 20406b85 call gpio_get_bit 
+54c8 7920a200 setflag true ,0 ,rega 
+54c9 6848c5c2 fetcht 1 ,mem_whee_tb_data_gpio 
+54ca 20406b85 call gpio_get_bit 
+54cb 7920a201 setflag true ,1 ,rega 
+54cc 1a227e00 copy rega ,pdata 
+54cd 67e0c582 store 1 ,mem_wheel_tb_new_pinlevel 
+54ce c000d4d3 beq 0x01 ,mouse_t_wheel_scan_judge1 
+54cf c00154d7 beq 0x02 ,mouse_t_wheel_scan_judge2 
+54d0 6fe0c583 fetch 1 ,mem_wheel_tog 
+54d1 c283d4e3 bbit1 7 ,mouse_t_wheel_scan_judge3 
+54d2 20600000 rtn 
+
+mouse_t_wheel_scan_judge1:
+54d3 6fe0c581 fetch 1 ,mem_wheel_tb_old_pinlevel 
+54d4 c00054db beq 0 ,mouse_t_wheel_scan_judge11 
+54d5 c001d4dd beq 3 ,mouse_t_wheel_scan_judge12 
+54d6 20600000 rtn 
+
+mouse_t_wheel_scan_judge2:
+54d7 6fe0c581 fetch 1 ,mem_wheel_tb_old_pinlevel 
+54d8 c00054df beq 0 ,mouse_t_wheel_scan_judge21 
+54d9 c001d4e1 beq 3 ,mouse_t_wheel_scan_judge22 
+54da 20600000 rtn 
+
+mouse_t_wheel_scan_judge11:
+54db 70458382 jam 0x82 ,mem_wheel_tog 
+54dc 20600000 rtn 
+
+mouse_t_wheel_scan_judge12:
+54dd 70458381 jam 0x81 ,mem_wheel_tog 
+54de 20600000 rtn 
+
+mouse_t_wheel_scan_judge21:
+54df 70458380 jam 0x80 ,mem_wheel_tog 
+54e0 20600000 rtn 
+
+mouse_t_wheel_scan_judge22:
+54e1 70458383 jam 0x83 ,mem_wheel_tog 
+54e2 20600000 rtn 
+
+mouse_t_wheel_scan_judge3:
+54e3 6fe0c583 fetch 1 ,mem_wheel_tog 
+54e4 793ffe07 set0 7 ,pdata 
+54e5 67e0c583 store 1 ,mem_wheel_tog 
+54e6 c00054eb beq 0 ,mouse_t_wheel_scan_judge30 
+54e7 c000d4ee beq 1 ,mouse_t_wheel_scan_judge31 
+54e8 c00154f1 beq 2 ,mouse_t_wheel_scan_judge32 
+54e9 c001d4f4 beq 3 ,mouse_t_wheel_scan_judge33 
+54ea 20600000 rtn 
+
+mouse_t_wheel_scan_judge30:
+54eb 6fe0c582 fetch 1 ,mem_wheel_tb_new_pinlevel 
+54ec c001d4f7 beq 3 ,mouse_wheel_t_forward 
+54ed 20600000 rtn 
+
+mouse_t_wheel_scan_judge31:
+54ee 6fe0c582 fetch 1 ,mem_wheel_tb_new_pinlevel 
+54ef c00054f7 beq 0 ,mouse_wheel_t_forward 
+54f0 20600000 rtn 
+
+mouse_t_wheel_scan_judge32:
+54f1 6fe0c582 fetch 1 ,mem_wheel_tb_new_pinlevel 
+54f2 c001d4fb beq 3 ,mouse_wheel_t_back 
+54f3 20600000 rtn 
+
+mouse_t_wheel_scan_judge33:
+54f4 6fe0c582 fetch 1 ,mem_wheel_tb_new_pinlevel 
+54f5 c00054fb beq 0 ,mouse_wheel_t_back 
+54f6 20600000 rtn 
+
+mouse_wheel_t_forward:
+54f7 6fe0c584 fetch 1 ,mem_mouse_tz_data 
+54f8 1fe0fe01 increase 1 ,pdata 
+54f9 67e0c584 store 1 ,mem_mouse_tz_data 
+54fa 20600000 rtn 
+
+mouse_wheel_t_back:
+54fb 6fe0c584 fetch 1 ,mem_mouse_tz_data 
+54fc 1fe0ffff increase -1 ,pdata 
+54fd 67e0c584 store 1 ,mem_mouse_tz_data 
+54fe 20600000 rtn 
+
+mouse_wheel_scan:
+54ff 6fe0c5b9 fetch 1 ,mem_whee_a_data_gpio 
+5500 c17f8000 rtneq gpio_disable 
+5501 da200000 arg 0 ,rega 
+5502 6848c5b9 fetcht 1 ,mem_whee_a_data_gpio 
+5503 20406b85 call gpio_get_bit 
+5504 7920a200 setflag true ,0 ,rega 
+5505 6848c5ba fetcht 1 ,mem_whee_b_data_gpio 
+5506 20406b85 call gpio_get_bit 
+5507 7920a201 setflag true ,1 ,rega 
+5508 1a227e00 copy rega ,pdata 
+5509 67e0c586 store 1 ,mem_mwheel_b_new_pinlevel 
+550a c000d50f beq 0x01 ,mouse_wheel_scan_judge1 
+550b c0015513 beq 0x02 ,mouse_wheel_scan_judge2 
+550c 6fe0c587 fetch 1 ,mem_mwheel_tog 
+550d c283d51f bbit1 7 ,mouse_wheel_scan_judge3 
+550e 20600000 rtn 
+
+mouse_wheel_scan_judge1:
+550f 6fe0c585 fetch 1 ,mem_mwheel_b_old_pinlevel 
+5510 c0005517 beq 0 ,mouse_wheel_scan_judge11 
+5511 c001d519 beq 3 ,mouse_wheel_scan_judge12 
+5512 20600000 rtn 
+
+mouse_wheel_scan_judge2:
+5513 6fe0c585 fetch 1 ,mem_mwheel_b_old_pinlevel 
+5514 c000551b beq 0 ,mouse_wheel_scan_judge21 
+5515 c001d51d beq 3 ,mouse_wheel_scan_judge22 
+5516 20600000 rtn 
+
+mouse_wheel_scan_judge11:
+5517 70458782 jam 0x82 ,mem_mwheel_tog 
+5518 20600000 rtn 
+
+mouse_wheel_scan_judge12:
+5519 70458781 jam 0x81 ,mem_mwheel_tog 
+551a 20600000 rtn 
+
+mouse_wheel_scan_judge21:
+551b 70458780 jam 0x80 ,mem_mwheel_tog 
+551c 20600000 rtn 
+
+mouse_wheel_scan_judge22:
+551d 70458783 jam 0x83 ,mem_mwheel_tog 
+551e 20600000 rtn 
+
+mouse_wheel_scan_judge3:
+551f 6fe0c587 fetch 1 ,mem_mwheel_tog 
+5520 793ffe07 set0 7 ,pdata 
+5521 67e0c587 store 1 ,mem_mwheel_tog 
+5522 c0005527 beq 0 ,mouse_wheel_scan_judge30 
+5523 c000d52a beq 1 ,mouse_wheel_scan_judge31 
+5524 c001552d beq 2 ,mouse_wheel_scan_judge32 
+5525 c001d530 beq 3 ,mouse_wheel_scan_judge33 
+5526 20600000 rtn 
+
+mouse_wheel_scan_judge30:
+5527 6fe0c586 fetch 1 ,mem_mwheel_b_new_pinlevel 
+5528 c001d533 beq 3 ,mouse_wheel_forward 
+5529 20600000 rtn 
+
+mouse_wheel_scan_judge31:
+552a 6fe0c586 fetch 1 ,mem_mwheel_b_new_pinlevel 
+552b c0005533 beq 0 ,mouse_wheel_forward 
+552c 20600000 rtn 
+
+mouse_wheel_scan_judge32:
+552d 6fe0c586 fetch 1 ,mem_mwheel_b_new_pinlevel 
+552e c001d537 beq 3 ,mouse_wheel_back 
+552f 20600000 rtn 
+
+mouse_wheel_scan_judge33:
+5530 6fe0c586 fetch 1 ,mem_mwheel_b_new_pinlevel 
+5531 c0005537 beq 0 ,mouse_wheel_back 
+5532 20600000 rtn 
+
+mouse_wheel_forward:
+5533 6fe0c588 fetch 1 ,mem_mouse_z_data 
+5534 1fe0fe01 increase 1 ,pdata 
+5535 67e0c588 store 1 ,mem_mouse_z_data 
+5536 20600000 rtn 
+
+mouse_wheel_back:
+5537 6fe0c588 fetch 1 ,mem_mouse_z_data 
+5538 1fe0ffff increase -1 ,pdata 
+5539 67e0c588 store 1 ,mem_mouse_z_data 
+553a 20600000 rtn 
+
+mouse_wheel_gpio_set_wake:
+553b 6848c5b9 fetcht 1 ,mem_whee_a_data_gpio 
+553c 20406b5e call gpio_set_wake_by_current_state 
+553d 6848c5ba fetcht 1 ,mem_whee_b_data_gpio 
+553e 20406b5e call gpio_set_wake_by_current_state 
+553f 6848c5c1 fetcht 1 ,mem_whee_ta_data_gpio 
+5540 20406b5e call gpio_set_wake_by_current_state 
+5541 6848c5c2 fetcht 1 ,mem_whee_tb_data_gpio 
+5542 20206b5e branch gpio_set_wake_by_current_state 
+
+mouse_before_hibernate_wheel_gpio_set:
+5543 6848c5b9 fetcht 1 ,mem_whee_a_data_gpio 
+5544 20405475 call mouse_gpio_set_pupd_by_input 
+5545 6848c5ba fetcht 1 ,mem_whee_b_data_gpio 
+5546 20405475 call mouse_gpio_set_pupd_by_input 
+5547 6848c5c1 fetcht 1 ,mem_whee_ta_data_gpio 
+5548 20405475 call mouse_gpio_set_pupd_by_input 
+5549 6848c5c2 fetcht 1 ,mem_whee_tb_data_gpio 
+554a 20205475 branch mouse_gpio_set_pupd_by_input 
+
+mouse_wheel_trigger:
+554b 6fe1457d fetch 2 ,mem_mouse_z 
+554c 207a0000 rtn blank 
+554d 70458901 jam 1 ,mem_mouse_wheel_trigger 
+554e 70458a0a jam 10 ,mem_mouse_wheel_trigger_timer 
+554f 20600000 rtn 
+
+mouse_wheel_trigger_timer:
+5550 da60458a arg mem_mouse_wheel_trigger_timer ,regc 
+5551 da405553 arg mouse_wheel_trigger_disable ,regb 
+5552 20204dcc branch timer_single_step 
+
+mouse_wheel_trigger_disable:
+5553 70458900 jam 0 ,mem_mouse_wheel_trigger 
+5554 20600000 rtn 
+
+mouse_dpi_check:
+5555 6fe44864 fetch mouse_flag_len ,mem_mouse_flag 
+5556 c2975580 bbit1 mouse_enable_dpi_key_connect_adc ,mouse_dpi_check_connect_adc 
+5557 6fe0c5b8 fetch 1 ,mem_dpi_button_gpio 
+5558 c17f8000 rtneq gpio_disable 
+5559 da200000 arg 0 ,rega 
+555a 70484f05 jam mouse_dpi_key ,mem_mouse_key_temp 
+555b 6848c5b8 fetcht 1 ,mem_dpi_button_gpio 
+555c 20405564 call mouse_dpi_key_check 
+555d 67e0c84c store 1 ,mem_mouse_dpikey_press_status 
+555e 6fe0c5c3 fetch 1 ,mem_matrix_public_gpio 
+555f c07fd578 beq gpio_disable ,mouse_3io6key_dpi_check_end 
+5560 20405710 call mouse_matrix_public_gpio_reset 
+
+mouse_dpi_check_exit:
+5561 1a227e00 copy rega ,pdata 
+5562 c282d582 bbit1 mouse_dpi_key ,mouse_dpi_down 
+5563 20205589 branch mouse_dpi_up 
+
+mouse_dpi_key_check:
+5564 6fe44864 fetch mouse_flag_len ,mem_mouse_flag 
+5565 c296557e bbit1 mouse_enable_dpi_key_connect_gnd ,mouse_dpi_key_connect_gnd 
+5566 6fe0c84c fetch 1 ,mem_mouse_dpikey_press_status 
+5567 1fe22600 copy pdata ,regc 
+5568 6fe0c5c3 fetch 1 ,mem_matrix_public_gpio 
+5569 c07fd574 beq gpio_disable ,mouse_3io6key_dpi_check 
+556a 6fe0c853 fetch 1 ,mem_mouse_ghost_flag 
+556b 243a557b nbranch mouse_dpi_check_end ,blank 
+
+mouse_dpi_key_connect_matrix:
+556c 20406b85 call gpio_get_bit 
+556d 6848c5c3 fetcht 1 ,mem_matrix_public_gpio 
+556e 2020d57e branch mouse_dpi_key_connect_gnd ,true 
+556f 6848c5c3 fetcht 1 ,mem_matrix_public_gpio 
+5570 20406b96 call gpio_out_active 
+5571 6848c5b8 fetcht 1 ,mem_dpi_button_gpio 
+5572 6fe0c84c fetch 1 ,mem_mouse_dpikey_press_status 
+5573 2020573b branch mouse_check_key_connect_gnd 
+
+mouse_3io6key_dpi_check:
+5574 6fe0c5b8 fetch 1 ,mem_dpi_button_gpio 
+5575 2040575c call mouse_gpio_config_output_low 
+5576 6848c5b8 fetcht 1 ,mem_dpi_button_gpio 
+5577 20205747 branch mouse_3io6key_check 
+
+mouse_3io6key_dpi_check_end:
+5578 6848c5b8 fetcht 1 ,mem_dpi_button_gpio 
+5579 2040547f call mouse_gpio_config_input_pu 
+557a 20205561 branch mouse_dpi_check_exit 
+
+mouse_dpi_check_end:
+557b 70468a00 jam dpi_button_state_up ,mem_mouse_dpi_button_state 
+557c 70484c00 jam 0 ,mem_mouse_dpikey_press_status 
+557d 20600000 rtn 
+
+mouse_dpi_key_connect_gnd:
+557e 6fe0c84c fetch 1 ,mem_mouse_dpikey_press_status 
+557f 2020573b branch mouse_check_key_connect_gnd 
+
+mouse_dpi_check_connect_adc:
+5580 6fe0c5a3 fetch 1 ,mem_mouse_adc_button_press_flag 
+5581 203a5589 branch mouse_dpi_up ,blank 
+
+mouse_dpi_down:
+5582 6fe0c68a fetch 1 ,mem_mouse_dpi_button_state 
+5583 c1008000 rtneq dpi_button_state_down 
+5584 70468a01 jam dpi_button_state_down ,mem_mouse_dpi_button_state 
+5585 6fe44864 fetch mouse_flag_len ,mem_mouse_flag 
+5586 c3940000 rtnbit1 mouse_enable_select_device_by_dpi_button 
+5587 c39b0000 rtnbit1 mouse_enable_dpi_key_long_press_disconvery 
+5588 202055e2 branch mouse_dpi_process 
+
+mouse_dpi_up:
+5589 6fe0c68a fetch 1 ,mem_mouse_dpi_button_state 
+558a c1000000 rtneq dpi_button_state_up 
+558b 70468a00 jam dpi_button_state_up ,mem_mouse_dpi_button_state 
+558c 6fe44864 fetch mouse_flag_len ,mem_mouse_flag 
+558d c2945590 bbit1 mouse_enable_select_device_by_dpi_button ,mouse_dpi_up_next 
+558e c29b5590 bbit1 mouse_enable_dpi_key_long_press_disconvery ,mouse_dpi_up_next 
+558f 20600000 rtn 
+
+mouse_dpi_up_next:
+5590 6fe0c68b fetch 1 ,mem_mouse_dpi_long_press_flag 
+5591 243a5594 nbranch mouse_dpi_up_after_long_press ,blank 
+5592 6fe0c855 fetch 1 ,mem_select_device_count 
+5593 245a55e2 ncall mouse_dpi_process ,blank 
+
+mouse_dpi_up_after_long_press:
+5594 70468b00 jam 0 ,mem_mouse_dpi_long_press_flag 
+5595 6fe0c436 fetch 1 ,mem_ui_button_timeout 
+5596 67e0c855 store 1 ,mem_select_device_count 
+5597 67e0c854 store 1 ,mem_bt_discovery_count 
+5598 20600000 rtn 
+
+mouse_dpi_another_gpio_check:
+5599 6fe44864 fetch mouse_flag_len ,mem_mouse_flag 
+559a c41f0000 rtnbit0 mouse_enable_double_dpi_key 
+559b 6fe0c89d fetch 1 ,mem_mouse_another_dpi_connect_vin_flag 
+559c 243a55a2 nbranch mouse_dpi_another_gpio_connect_vin_check ,blank 
+
+mouse_dpi_another_gpio_connect_gnd_check:
+559d 6fe0c5ce fetch 1 ,mem_dpi_another_button_gpio 
+559e 20405759 call mouse_gpio_config_output_high 
+559f 204055b2 call mouse_dpi_another_check 
+55a0 6848c5ce fetcht 1 ,mem_dpi_another_button_gpio 
+55a1 2020547f branch mouse_gpio_config_input_pu 
+
+mouse_dpi_another_gpio_connect_vin_check:
+55a2 6fe0c5ce fetch 1 ,mem_dpi_another_button_gpio 
+55a3 793ffe07 set0 gpio_active_bit ,pdata 
+55a4 67e0c5ce store 1 ,mem_dpi_another_button_gpio 
+55a5 2040575c call mouse_gpio_config_output_low 
+55a6 7048a100 jam mouse_dpi_another_key ,mem_mouse_key_temp_patch 
+55a7 6848c5ce fetcht 1 ,mem_dpi_another_button_gpio 
+55a8 6fe0c89e fetch 1 ,mem_dpi_another_press_status 
+55a9 204055cb call mouse_check_dpi_another_key_connect_vin 
+55aa 204055b6 call mouse_dpi_another_state_check 
+55ab 6848c5ce fetcht 1 ,mem_dpi_another_button_gpio 
+55ac 2020547f branch mouse_gpio_config_input_pu 
+
+mouse_dpi_another_down_new:
+55ad 2040547f call mouse_gpio_config_input_pu 
+55ae 6fe0c89f fetch 1 ,mem_dpi_another_button_state 
+55af c1008000 rtneq dpi_button_state_down 
+55b0 70489f01 jam dpi_button_state_down ,mem_dpi_another_button_state 
+55b1 202055e2 branch mouse_dpi_process 
+
+mouse_dpi_another_check:
+55b2 7048a100 jam mouse_dpi_another_key ,mem_mouse_key_temp_patch 
+55b3 6848c5ce fetcht 1 ,mem_dpi_another_button_gpio 
+55b4 6fe0c89e fetch 1 ,mem_dpi_another_press_status 
+55b5 204055c1 call mouse_check_dpi_another_key_connect_gnd 
+
+mouse_dpi_another_state_check:
+55b6 67e0c89e store 1 ,mem_dpi_another_press_status 
+55b7 6fe0c8a0 fetch 1 ,mem_dpi_another_button_down_enable 
+55b8 203a55bd branch mouse_dpi_another_up ,blank 
+
+mouse_dpi_another_down:
+55b9 6fe0c89f fetch 1 ,mem_dpi_another_button_state 
+55ba c1008000 rtneq dpi_button_state_down 
+55bb 70489f01 jam dpi_button_state_down ,mem_dpi_another_button_state 
+55bc 202055e2 branch mouse_dpi_process 
+
+mouse_dpi_another_up:
+55bd 6fe0c89f fetch 1 ,mem_dpi_another_button_state 
+55be c1000000 rtneq dpi_button_state_up 
+55bf 70489f00 jam dpi_button_state_up ,mem_dpi_another_button_state 
+55c0 20600000 rtn 
+
+mouse_check_dpi_another_key_connect_gnd:
+55c1 1fe3fe00 lshift pdata ,pdata 
+55c2 1fe22400 copy pdata ,regb 
+55c3 20406b85 call gpio_get_bit 
+55c4 7920a400 setflag true ,0 ,regb 
+55c5 1a417e07 and regb ,0x07 ,pdata 
+55c6 6848c8a1 fetcht 1 ,mem_mouse_key_temp_patch 
+55c7 18420e00 copy temp ,queue 
+55c8 c003d5d6 beq 0x07 ,mouse_dpi_another_key_press 
+55c9 c00055d8 beq 0x00 ,mouse_dpi_another_key_release 
+55ca 20600000 rtn 
+
+mouse_check_dpi_another_key_connect_vin:
+55cb 1fe3fe00 lshift pdata ,pdata 
+55cc 1fe22400 copy pdata ,regb 
+55cd 2040547b call mouse_gpio_config_input_pd 
+55ce 20406b85 call gpio_get_bit 
+55cf 7920a400 setflag true ,0 ,regb 
+55d0 1a417e07 and regb ,0x07 ,pdata 
+55d1 6848c8a1 fetcht 1 ,mem_mouse_key_temp_patch 
+55d2 18420e00 copy temp ,queue 
+55d3 c003d5d6 beq 0x07 ,mouse_dpi_another_key_press 
+55d4 c00055d8 beq 0x00 ,mouse_dpi_another_key_release 
+55d5 20600000 rtn 
+
+mouse_dpi_another_key_press:
+55d6 7048a001 jam 1 ,mem_dpi_another_button_down_enable 
+55d7 20600000 rtn 
+
+mouse_dpi_another_key_release:
+55d8 7048a000 jam 0 ,mem_dpi_another_button_down_enable 
+55d9 20600000 rtn 
+
+mouse_double_dpi_judge:
+55da 6fe44864 fetch mouse_flag_len ,mem_mouse_flag 
+55db c41f0000 rtnbit0 mouse_enable_double_dpi_key 
+55dc 6fe0c5ce fetch 1 ,mem_dpi_another_button_gpio 
+55dd c283d5e0 bbit1 gpio_active_bit ,mouse_another_dpi_connect_vin 
+
+mouse_another_dpi_connect_gnd:
+55de 70489d00 jam 0 ,mem_mouse_another_dpi_connect_vin_flag 
+55df 20600000 rtn 
+
+mouse_another_dpi_connect_vin:
+55e0 70489d01 jam 1 ,mem_mouse_another_dpi_connect_vin_flag 
+55e1 20600000 rtn 
+
+mouse_dpi_process:
+55e2 44a1c008 bpatch patch08_3 ,mem_patch08 
+55e3 204055ef call mouse_dpi_ghost_check 
+55e4 20740000 rtn user 
+55e5 6fe0c63f fetch 1 ,mem_mouse_dpi 
+55e6 1fe20400 copy pdata ,temp 
+55e7 6fe44864 fetch mouse_flag_len ,mem_mouse_flag 
+55e8 c29f55f8 bbit1 mouse_enable_double_dpi_key ,mouse_double_dpi_check 
+55e9 18427e00 copy temp ,pdata 
+55ea 1fe0fe01 increase 1 ,pdata 
+55eb 1fe17e03 and pdata ,0x03 ,pdata 
+
+mouse_dpi_process_store:
+55ec 67e0c63f store 1 ,mem_mouse_dpi 
+55ed 20405635 call mouse_setting_dpi 
+55ee 20205b8c branch mouse_store_device_info_delay 
+
+mouse_dpi_ghost_check:
+55ef 78547c00 disable user 
+55f0 6fe44864 fetch mouse_flag_len ,mem_mouse_flag 
+55f1 c3960000 rtnbit1 mouse_enable_dpi_key_connect_gnd 
+55f2 c3970000 rtnbit1 mouse_enable_dpi_key_connect_adc 
+55f3 6fe0c847 fetch 1 ,mem_mouse_lkey_press_status 
+55f4 207a0000 rtn blank 
+55f5 6fe0c848 fetch 1 ,mem_mouse_rkey_press_status 
+55f6 207a0000 rtn blank 
+55f7 202074c8 branch enable_user 
+
+mouse_double_dpi_check:
+55f8 6fe0c8a0 fetch 1 ,mem_dpi_another_button_down_enable 
+55f9 243a5615 nbranch mouse_another_dpi_button_down ,blank 
+
+mouse_dpi_increase:
+55fa 6fe44864 fetch mouse_flag_len ,mem_mouse_flag 
+55fb c28e5609 bbit1 mouse_enable_dpi_level_4 ,mouse_dpi_increase_level_4 
+55fc 18427e00 copy temp ,pdata 
+55fd c1008000 rtneq mouse_dpi_level2 
+
+mouse_dpi_increase_level:
+55fe c0005605 beq mouse_dpi_level1 ,mouse_dpi_level_3 
+55ff c0015603 beq mouse_dpi_level3 ,mouse_dpi_level_2 
+5600 20600000 rtn 
+
+mouse_dpi_level_1:
+5601 58000002 setarg mouse_dpi_level3 
+5602 202055ec branch mouse_dpi_process_store 
+
+mouse_dpi_level_2:
+5603 58000000 setarg mouse_dpi_level1 
+5604 202055ec branch mouse_dpi_process_store 
+
+mouse_dpi_level_3:
+5605 58000001 setarg mouse_dpi_level2 
+5606 202055ec branch mouse_dpi_process_store 
+
+mouse_dpi_level_4:
+5607 58000003 setarg mouse_dpi_level4 
+5608 202055ec branch mouse_dpi_process_store 
+
+mouse_dpi_increase_level_4:
+5609 18427e00 copy temp ,pdata 
+560a c1008000 rtneq mouse_dpi_level2 
+560b c0005605 beq mouse_dpi_level1 ,mouse_dpi_level_3 
+560c c0015607 beq mouse_dpi_level3 ,mouse_dpi_level_4 
+560d c001d603 beq mouse_dpi_level4 ,mouse_dpi_level_2 
+560e 20600000 rtn 
+
+mouse_dpi_decrease_level_4:
+560f 18427e00 copy temp ,pdata 
+5610 c1010000 rtneq mouse_dpi_level3 
+5611 c0005607 beq mouse_dpi_level1 ,mouse_dpi_level_4 
+5612 c000d603 beq mouse_dpi_level2 ,mouse_dpi_level_2 
+5613 c001d601 beq mouse_dpi_level4 ,mouse_dpi_level_1 
+5614 20600000 rtn 
+
+mouse_another_dpi_button_down:
+
+mouse_dpi_decrease:
+5615 6fe44864 fetch mouse_flag_len ,mem_mouse_flag 
+5616 c28e560f bbit1 mouse_enable_dpi_level_4 ,mouse_dpi_decrease_level_4 
+5617 18427e00 copy temp ,pdata 
+5618 c1010000 rtneq mouse_dpi_level3 
+
+mouse_dpi_decrease_level:
+5619 c0005601 beq mouse_dpi_level1 ,mouse_dpi_level_1 
+561a c000d603 beq mouse_dpi_level2 ,mouse_dpi_level_2 
+561b 20600000 rtn 
+
+mouse_dpi_key_check_long_press:
+561c 6fe44864 fetch mouse_flag_len ,mem_mouse_flag 
+561d c2945620 bbit1 mouse_enable_select_device_by_dpi_button ,mouse_select_device_by_dpi_button 
+561e c29b5627 bbit1 mouse_enable_dpi_key_long_press_disconvery ,mouse_discovery_by_dpi_button 
+561f 20600000 rtn 
+
+mouse_select_device_by_dpi_button:
+5620 6fe0c68a fetch 1 ,mem_mouse_dpi_button_state 
+5621 c1808000 rtnne dpi_button_state_down 
+5622 da604855 arg mem_select_device_count ,regc 
+5623 da405625 arg mouse_ready_reconnection_by_dpi_button ,regb 
+5624 20204dcc branch timer_single_step 
+
+mouse_ready_reconnection_by_dpi_button:
+5625 70468b01 jam 1 ,mem_mouse_dpi_long_press_flag 
+5626 20205c52 branch mouse_ready_reconnection_by_button 
+
+mouse_discovery_by_dpi_button:
+5627 6fe0c68a fetch 1 ,mem_mouse_dpi_button_state 
+5628 c1808000 rtnne dpi_button_state_down 
+5629 da604854 arg mem_bt_discovery_count ,regc 
+562a da40562c arg mouse_long_dpi_button_bt_discovery ,regb 
+562b 20204dcc branch timer_single_step 
+
+mouse_long_dpi_button_bt_discovery:
+562c 70468b01 jam 1 ,mem_mouse_dpi_long_press_flag 
+562d 20205a3e branch mouse_long_button_bt_discovery 
+
+mouse_dpi_config:
+562e 20205638 branch mouse_setting_sensor_type 
+
+mouse_setting_dpi_4_level:
+562f 6fe44864 fetch mouse_flag_len ,mem_mouse_flag 
+5630 c38e0000 rtnbit1 mouse_enable_dpi_level_4 
+5631 6fe0c63f fetch 1 ,mem_mouse_dpi 
+5632 c1818000 rtnne mouse_dpi_level4 
+5633 70463f00 jam mouse_dpi_level1 ,mem_mouse_dpi 
+5634 20600000 rtn 
+
+mouse_setting_dpi:
+5635 44a24008 bpatch patch08_4 ,mem_patch08 
+5636 2040562f call mouse_setting_dpi_4_level 
+5637 20405ebd call mouse_dpi_led_blink_delay 
+
+mouse_setting_sensor_type:
+5638 6fe0c5d4 fetch 1 ,mem_config_sensor_type 
+5639 c001d65a beq p3212 ,mouse_seting_3212_dpi 
+563a c005d66e beq ka8g2 ,mouse_seting_ka8g2_dpi 
+563b 6fe0c63f fetch 1 ,mem_mouse_dpi 
+563c c0005642 beq mouse_dpi_level1 ,mouse_set_cpi0 
+563d c000d640 beq mouse_dpi_level2 ,mouse_set_cpi1 
+563e c0015644 beq mouse_dpi_level3 ,mouse_set_cpi2 
+563f c001d646 beq mouse_dpi_level4 ,mouse_set_cpi3 
+
+mouse_set_cpi1:
+5640 6848c67e fetcht 1 ,mem_320x_dpi_1 
+5641 20205647 branch mouse_dpi_store 
+
+mouse_set_cpi0:
+5642 6848c67d fetcht 1 ,mem_320x_dpi_0 
+5643 20205647 branch mouse_dpi_store 
+
+mouse_set_cpi2:
+5644 6848c67f fetcht 1 ,mem_320x_dpi_2 
+5645 20205647 branch mouse_dpi_store 
+
+mouse_set_cpi3:
+5646 6848c680 fetcht 1 ,mem_320x_dpi_3 
+
+mouse_dpi_store:
+5647 6fe0c5d4 fetch 1 ,mem_config_sensor_type 
+5648 c0025656 beq p3065_xy ,mouse_3065xy_set_dpi 
+5649 c002d656 beq mx8650 ,mouse_3065xy_set_dpi 
+564a c0045658 beq ka8 ,mouse_ka8_set_dpi 
+564b c003d658 beq p6520 ,mouse_ka8_set_dpi 
+564c c0035656 beq p8009 ,mouse_3065xy_set_dpi 
+
+mouse_dpi_write:
+564d 6048c689 storet 1 ,mem_mouse_cpi_count 
+564e 58000006 setarg mouse_dpi_address 
+564f 2040674e call twspi_read 
+5650 1fe104f8 and pdata ,0xf8 ,temp 
+5651 6fe0c689 fetch 1 ,mem_mouse_cpi_count 
+5652 9840fe00 iadd temp ,pdata 
+5653 1fed7e00 lshift8 pdata ,pdata 
+5654 1fe0fe06 add pdata ,mouse_dpi_address ,pdata 
+5655 2020674d branch twspi_write 
+
+mouse_3065xy_set_dpi:
+5656 184085ff increase -1 ,temp 
+5657 2020564d branch mouse_dpi_write 
+
+mouse_ka8_set_dpi:
+5658 18408402 increase 2 ,temp 
+5659 2020564d branch mouse_dpi_write 
+
+mouse_seting_3212_dpi:
+565a 6fe0c63f fetch 1 ,mem_mouse_dpi 
+565b c0005661 beq mouse_dpi_level1 ,mouse_set_p3212_cpi0 
+565c c000d65f beq mouse_dpi_level2 ,mouse_set_p3212_cpi1 
+565d c0015663 beq mouse_dpi_level3 ,mouse_set_p3212_cpi2 
+565e c001d665 beq mouse_dpi_level4 ,mouse_set_p3212_cpi3 
+
+mouse_set_p3212_cpi1:
+565f 6fe0c682 fetch 1 ,mem_3212_dpi_1 
+5660 20205666 branch mouse_p3212_dpi 
+
+mouse_set_p3212_cpi0:
+5661 6fe0c681 fetch 1 ,mem_3212_dpi_0 
+5662 20205666 branch mouse_p3212_dpi 
+
+mouse_set_p3212_cpi2:
+5663 6fe0c683 fetch 1 ,mem_3212_dpi_2 
+5664 20205666 branch mouse_p3212_dpi 
+
+mouse_set_p3212_cpi3:
+5665 6fe0c684 fetch 1 ,mem_3212_dpi_3 
+
+mouse_p3212_dpi:
+5666 67e0c689 store 1 ,mem_mouse_cpi_count 
+5667 1fed7e00 lshift8 pdata ,pdata 
+5668 1fe22200 copy pdata ,rega 
+5669 1fe0fe0d add pdata ,mouse_p3212_dpi_xaddress ,pdata 
+566a 2040674d call twspi_write 
+566b 1a227e00 copy rega ,pdata 
+566c 1fe0fe0e add pdata ,mouse_p3212_dpi_yaddress ,pdata 
+566d 2020674d branch twspi_write 
+
+mouse_seting_ka8g2_dpi:
+566e 6fe0c63f fetch 1 ,mem_mouse_dpi 
+566f c0005675 beq mouse_dpi_level1 ,mouse_set_pka8g2_cpi0 
+5670 c000d673 beq mouse_dpi_level2 ,mouse_set_pka8g2_cpi1 
+5671 c0015677 beq mouse_dpi_level3 ,mouse_set_pka8g2_cpi2 
+5672 c001d679 beq mouse_dpi_level4 ,mouse_set_pka8g2_cpi3 
+
+mouse_set_pka8g2_cpi1:
+5673 6fe0c686 fetch 1 ,mem_ka8g2_dpi_1 
+5674 20205666 branch mouse_p3212_dpi 
+
+mouse_set_pka8g2_cpi0:
+5675 6fe0c685 fetch 1 ,mem_ka8g2_dpi_0 
+5676 20205666 branch mouse_p3212_dpi 
+
+mouse_set_pka8g2_cpi2:
+5677 6fe0c687 fetch 1 ,mem_ka8g2_dpi_2 
+5678 20205666 branch mouse_p3212_dpi 
+
+mouse_set_pka8g2_cpi3:
+5679 6fe0c688 fetch 1 ,mem_ka8g2_dpi_3 
+567a 20205666 branch mouse_p3212_dpi 
+
+mouse_key:
+567b 20405766 call mouse_check_firekey_gpio 
+567c 6fe0c8a8 fetch 1 ,mem_fire_key_flag 
+567d 243a577d nbranch mouse_fire_key_press ,blank 
+567e 6fe0c8a3 fetch 1 ,mem_fire_key_status 
+567f 243a577c nbranch mouse_fire_key_process ,blank 
+5680 204056b9 call mouse_check_key_gpio 
+5681 20405691 call mouse_ghost_key_check 
+5682 2040538f call mouse_set_mult 
+5683 2040568c call mouse_24g_key 
+5684 1a227e00 copy rega ,pdata 
+5685 6848c580 fetcht 1 ,mem_mouse_key_last 
+5686 67e0c580 store 1 ,mem_mouse_key_last 
+5687 67e0c578 store 1 ,mem_mouse_key 
+5688 9842fe00 ixor temp ,pdata 
+5689 1fe67c00 sub pdata ,0 ,null 
+568a 20628000 rtn zero 
+568b 202074c8 branch enable_user 
+
+mouse_24g_key:
+568c c6930000 rtnmark0 mark_24g 
+568d 1a227e00 copy rega ,pdata 
+568e 207a0000 rtn blank 
+568f 67e0c578 store 1 ,mem_mouse_key 
+5690 202074c8 branch enable_user 
+
+mouse_ghost_key_check:
+5691 70485100 jam 0 ,mem_mouse_matrix_key_cow_count 
+5692 70485200 jam 0 ,mem_mouse_matrix_key_row_count 
+5693 70485300 jam 0 ,mem_mouse_ghost_flag 
+5694 1fe20400 copy pdata ,temp 
+5695 204056a1 call mouse_ghost_key_check_l_bk 
+5696 204056a4 call mouse_ghost_key_check_m_fw 
+5697 204056a7 call mouse_ghost_key_check_bk_fw 
+5698 204056aa call mouse_ghost_key_check_lmr 
+5699 6fe0c852 fetch 1 ,mem_mouse_matrix_key_row_count 
+569a 207a0000 rtn blank 
+569b 6fe0c851 fetch 1 ,mem_mouse_matrix_key_cow_count 
+569c 207a0000 rtn blank 
+569d 70485301 jam 1 ,mem_mouse_ghost_flag 
+569e 6fe0c580 fetch 1 ,mem_mouse_key_last 
+569f 1fe22200 copy pdata ,rega 
+56a0 20600000 rtn 
+
+mouse_ghost_key_check_l_bk:
+56a1 18417e09 and temp ,mouse_l_bk_button ,pdata 
+56a2 c004d6b2 beq mouse_l_bk_button ,mouse_matrix_cow_more_than_one_key 
+56a3 20600000 rtn 
+
+mouse_ghost_key_check_m_fw:
+56a4 18417e14 and temp ,mouse_m_fw_button ,pdata 
+56a5 c00a56b2 beq mouse_m_fw_button ,mouse_matrix_cow_more_than_one_key 
+56a6 20600000 rtn 
+
+mouse_ghost_key_check_bk_fw:
+56a7 18417e18 and temp ,mouse_bk_fw_button ,pdata 
+56a8 c00c56b0 beq mouse_bk_fw_button ,mouse_matrix_row_more_than_one_key 
+56a9 20600000 rtn 
+
+mouse_ghost_key_check_lmr:
+56aa 18417e07 and temp ,mouse_lmr_button ,pdata 
+56ab c001d6b0 beq mouse_lr_button ,mouse_matrix_row_more_than_one_key 
+56ac c002d6b0 beq mouse_lm_button ,mouse_matrix_row_more_than_one_key 
+56ad c00356b0 beq mouse_rm_button ,mouse_matrix_row_more_than_one_key 
+56ae c003d6b0 beq mouse_lmr_button ,mouse_matrix_row_more_than_one_key 
+56af 20600000 rtn 
+
+mouse_matrix_row_more_than_one_key:
+56b0 70485201 jam 1 ,mem_mouse_matrix_key_row_count 
+56b1 20600000 rtn 
+
+mouse_matrix_cow_more_than_one_key:
+56b2 70485101 jam 1 ,mem_mouse_matrix_key_cow_count 
+56b3 20600000 rtn 
+
+mouse_key_check_once:
+56b4 204056c6 call mouse_check_key_gpio_once 
+56b5 204056b9 call mouse_check_key_gpio 
+56b6 58000000 setarg 0x00 
+56b7 67e1c847 store 3 ,mem_mouse_lkey_press_status 
+56b8 20600000 rtn 
+
+mouse_check_key_gpio:
+56b9 44a2c008 bpatch patch08_5 ,mem_patch08 
+56ba 6fe0c899 fetch 1 ,mem_sensor_shutdown_flag 
+56bb 245a56c6 ncall mouse_check_key_gpio_once ,blank 
+56bc da200000 arg 0 ,rega 
+56bd 204056c9 call mouse_check_lkey_gpio 
+56be 204056d2 call mouse_check_rkey_gpio 
+56bf 204056db call mouse_check_mkey_gpio 
+56c0 204056e4 call mouse_check_bkkey_gpio 
+56c1 20405700 call mouse_check_fwkey_gpio 
+56c2 20405766 call mouse_check_firekey_gpio 
+56c3 2040571d call mouse_check_customerkey_gpio 
+56c4 1a227e00 copy rega ,pdata 
+56c5 20600000 rtn 
+
+mouse_check_key_gpio_once:
+56c6 58030303 setarg 0x030303 
+56c7 67e1c847 store 3 ,mem_mouse_lkey_press_status 
+56c8 20600000 rtn 
+
+mouse_check_lkey_gpio:
+56c9 6fe0c5b3 fetch 1 ,mem_lbutton_gpio 
+56ca 20405759 call mouse_gpio_config_output_high 
+56cb 70484f00 jam mouse_l_key ,mem_mouse_key_temp 
+56cc 6848c5b3 fetcht 1 ,mem_lbutton_gpio 
+56cd 6fe0c847 fetch 1 ,mem_mouse_lkey_press_status 
+56ce 2040573b call mouse_check_key_connect_gnd 
+56cf 67e0c847 store 1 ,mem_mouse_lkey_press_status 
+56d0 6848c5b3 fetcht 1 ,mem_lbutton_gpio 
+56d1 2020547f branch mouse_gpio_config_input_pu 
+
+mouse_check_rkey_gpio:
+56d2 6fe0c5b5 fetch 1 ,mem_rbutton_gpio 
+56d3 20405759 call mouse_gpio_config_output_high 
+56d4 70484f01 jam mouse_r_key ,mem_mouse_key_temp 
+56d5 6848c5b5 fetcht 1 ,mem_rbutton_gpio 
+56d6 6fe0c848 fetch 1 ,mem_mouse_rkey_press_status 
+56d7 2040573b call mouse_check_key_connect_gnd 
+56d8 67e0c848 store 1 ,mem_mouse_rkey_press_status 
+56d9 6848c5b5 fetcht 1 ,mem_rbutton_gpio 
+56da 2020547f branch mouse_gpio_config_input_pu 
+
+mouse_check_mkey_gpio:
+56db 6fe0c5b4 fetch 1 ,mem_mbutton_gpio 
+56dc 20405759 call mouse_gpio_config_output_high 
+56dd 70484f02 jam mouse_m_key ,mem_mouse_key_temp 
+56de 6848c5b4 fetcht 1 ,mem_mbutton_gpio 
+56df 6fe0c849 fetch 1 ,mem_mouse_mkey_press_status 
+56e0 2040573b call mouse_check_key_connect_gnd 
+56e1 67e0c849 store 1 ,mem_mouse_mkey_press_status 
+56e2 6848c5b4 fetcht 1 ,mem_mbutton_gpio 
+56e3 2020547f branch mouse_gpio_config_input_pu 
+
+mouse_check_bkkey_gpio:
+56e4 6fe0c5b6 fetch 1 ,mem_bk_button_gpio 
+56e5 c17f8000 rtneq gpio_disable 
+56e6 70484f03 jam mouse_bk_key ,mem_mouse_key_temp 
+56e7 6fe0c84a fetch 1 ,mem_mouse_bkkey_press_status 
+56e8 1fe22600 copy pdata ,regc 
+56e9 6848c5b6 fetcht 1 ,mem_bk_button_gpio 
+56ea 6fe0c5c3 fetch 1 ,mem_matrix_public_gpio 
+56eb c07fd6f9 beq gpio_disable ,mouse_3io6key_bk_check 
+56ec 20406b85 call gpio_get_bit 
+56ed 2020d6f5 branch mouse_check_bk_button_connect_gnd ,true 
+56ee 6848c5c3 fetcht 1 ,mem_matrix_public_gpio 
+56ef 20406b96 call gpio_out_active 
+56f0 6848c5b6 fetcht 1 ,mem_bk_button_gpio 
+56f1 6fe0c84a fetch 1 ,mem_mouse_bkkey_press_status 
+56f2 2040573b call mouse_check_key_connect_gnd 
+
+mouse_check_bkkey_gpio_end:
+56f3 67e0c84a store 1 ,mem_mouse_bkkey_press_status 
+56f4 20205710 branch mouse_matrix_public_gpio_reset 
+
+mouse_check_bk_button_connect_gnd:
+56f5 6848c5c3 fetcht 1 ,mem_matrix_public_gpio 
+56f6 6fe0c84a fetch 1 ,mem_mouse_bkkey_press_status 
+56f7 2040573b call mouse_check_key_connect_gnd 
+56f8 202056f3 branch mouse_check_bkkey_gpio_end 
+
+mouse_3io6key_bk_check:
+56f9 6fe0c5b6 fetch 1 ,mem_bk_button_gpio 
+56fa 2040575c call mouse_gpio_config_output_low 
+56fb 6848c5b6 fetcht 1 ,mem_bk_button_gpio 
+56fc 20405747 call mouse_3io6key_check 
+56fd 67e0c84a store 1 ,mem_mouse_bkkey_press_status 
+56fe 6848c5b6 fetcht 1 ,mem_bk_button_gpio 
+56ff 2020547f branch mouse_gpio_config_input_pu 
+
+mouse_check_fwkey_gpio:
+5700 6fe0c5b7 fetch 1 ,mem_fw_button_gpio 
+5701 c17f8000 rtneq gpio_disable 
+5702 70484f04 jam mouse_fw_key ,mem_mouse_key_temp 
+5703 6fe0c84b fetch 1 ,mem_mouse_fwkey_press_status 
+5704 1fe22600 copy pdata ,regc 
+5705 6848c5b7 fetcht 1 ,mem_fw_button_gpio 
+5706 6fe0c5c3 fetch 1 ,mem_matrix_public_gpio 
+5707 c07fd716 beq gpio_disable ,mouse_3io6key_fw_check 
+5708 20406b85 call gpio_get_bit 
+5709 2020d712 branch mouse_check_fw_button_connect_gnd ,true 
+570a 6848c5c3 fetcht 1 ,mem_matrix_public_gpio 
+570b 20406b96 call gpio_out_active 
+570c 6848c5b7 fetcht 1 ,mem_fw_button_gpio 
+570d 6fe0c84b fetch 1 ,mem_mouse_fwkey_press_status 
+570e 2040573b call mouse_check_key_connect_gnd 
+
+mouse_check_fwkey_gpio_end:
+570f 67e0c84b store 1 ,mem_mouse_fwkey_press_status 
+
+mouse_matrix_public_gpio_reset:
+5710 6848c5c3 fetcht 1 ,mem_matrix_public_gpio 
+5711 2020547f branch mouse_gpio_config_input_pu 
+
+mouse_check_fw_button_connect_gnd:
+5712 6848c5c3 fetcht 1 ,mem_matrix_public_gpio 
+5713 6fe0c84b fetch 1 ,mem_mouse_fwkey_press_status 
+5714 2040573b call mouse_check_key_connect_gnd 
+5715 2020570f branch mouse_check_fwkey_gpio_end 
+
+mouse_3io6key_fw_check:
+5716 6fe0c5b7 fetch 1 ,mem_fw_button_gpio 
+5717 2040575c call mouse_gpio_config_output_low 
+5718 6848c5b7 fetcht 1 ,mem_fw_button_gpio 
+5719 20405747 call mouse_3io6key_check 
+571a 67e0c84b store 1 ,mem_mouse_fwkey_press_status 
+571b 6848c5b7 fetcht 1 ,mem_fw_button_gpio 
+571c 2020547f branch mouse_gpio_config_input_pu 
+
+mouse_check_customerkey_gpio:
+571d 70484400 jam 0 ,mem_customer_key 
+571e 6fe44864 fetch mouse_flag_len ,mem_mouse_flag 
+571f c40a8000 rtnbit0 mouse_enable_keyboard 
+5720 6fe0c5c5 fetch 1 ,mem_customer_key_gpio 
+5721 c17f8000 rtneq gpio_disable 
+5722 70484f07 jam mouse_customer_key ,mem_mouse_key_temp 
+5723 6848c5c5 fetcht 1 ,mem_customer_key_gpio 
+5724 6fe0c84e fetch 1 ,mem_mouse_customerkey_press_status 
+5725 2040573b call mouse_check_key_connect_gnd 
+5726 67e0c84e store 1 ,mem_mouse_customerkey_press_status 
+5727 1a227e00 copy rega ,pdata 
+5728 c283d72d bbit1 mouse_customer_key ,mouse_customerkey_press 
+5729 20405730 call mouse_customerkey_release 
+
+mouse_check_customerkey_gpio_exit:
+572a 6fe0c845 fetch 1 ,mem_customer_data_trigger 
+572b 67e0c846 store 1 ,mem_customer_data_trigger_last 
+572c 20600000 rtn 
+
+mouse_customerkey_press:
+572d 70484501 jam 1 ,mem_customer_data_trigger 
+572e 20405733 call mouse_customer_key_need_send 
+572f 2020572a branch mouse_check_customerkey_gpio_exit 
+
+mouse_customerkey_release:
+5730 70484500 jam 0 ,mem_customer_data_trigger 
+5731 6fe0c846 fetch 1 ,mem_customer_data_trigger_last 
+5732 207a0000 rtn blank 
+
+mouse_customer_key_need_send:
+5733 70484401 jam 1 ,mem_customer_key 
+5734 20600000 rtn 
+
+mouse_check_matrix_button_connect_gnd:
+5735 20406b85 call gpio_get_bit 
+5736 6848c84f fetcht 1 ,mem_mouse_key_temp 
+5737 18420e00 copy temp ,queue 
+5738 2020d745 branch mouse_key_press ,true 
+
+mouse_key_release:
+5739 f93fa200 qset0 rega 
+573a 20600000 rtn 
+
+mouse_check_key_connect_gnd:
+573b 1fe3fe00 lshift pdata ,pdata 
+573c 1fe22400 copy pdata ,regb 
+573d 20406b85 call gpio_get_bit 
+573e 7920a400 setflag true ,0 ,regb 
+
+mouse_check_key_connect_gnd_1:
+573f 1a417e07 and regb ,0x07 ,pdata 
+
+mouse_check_key_connect_gnd_next:
+5740 6848c84f fetcht 1 ,mem_mouse_key_temp 
+5741 18420e00 copy temp ,queue 
+5742 c003d745 beq 0x07 ,mouse_key_press 
+5743 c0005739 beq 0x00 ,mouse_key_release 
+5744 20600000 rtn 
+
+mouse_key_press:
+5745 f9202200 qset1 rega 
+5746 20600000 rtn 
+
+mouse_3io6key_check:
+5747 44a34008 bpatch patch08_6 ,mem_patch08 
+5748 1a627e00 copy regc ,pdata 
+5749 67e0c850 store 1 ,mem_mouse_key_status 
+574a 1fe3fe00 lshift pdata ,pdata 
+574b 1fe22400 copy pdata ,regb 
+574c 18422600 copy temp ,regc 
+574d 2040547b call mouse_gpio_config_input_pd 
+574e 1a620400 copy regc ,temp 
+574f 20406b85 call gpio_get_bit 
+5750 7d20a400 nsetflag true ,0 ,regb 
+5751 20405753 call mouse_check_press 
+5752 20205740 branch mouse_check_key_connect_gnd_next 
+
+mouse_check_press:
+5753 6848c850 fetcht 1 ,mem_mouse_key_status 
+5754 18410401 and_into 0x01 ,temp 
+5755 1a417e01 and regb ,0x01 ,pdata 
+5756 98467c00 isub temp ,null 
+5757 2422d90d nbranch mouse_current_mult_update ,zero 
+5758 20600000 rtn 
+
+mouse_gpio_config_output_high:
+5759 c17f8000 rtneq gpio_disable 
+575a d840003f arg gpcfg_output_high ,temp 
+575b 20206bbd branch gpio_config_function_int 
+
+mouse_gpio_config_output_low:
+575c c17f8000 rtneq gpio_disable 
+575d d840003e arg gpcfg_output_low ,temp 
+575e 20206bbd branch gpio_config_function_int 
+
+mouse_firebutton_connect_state_check:
+575f 6fe0c5cf fetch 1 ,mem_firebutton_gpio 
+5760 c17f8000 rtneq gpio_disable 
+5761 c283d764 bbit1 gpio_active_bit ,mouse_firebutton_connect_vin 
+
+mouse_firebutton_connect_gnd:
+5762 7048a200 jam 0 ,mem_mouse_firebutton_connect_vin_flag 
+5763 20600000 rtn 
+
+mouse_firebutton_connect_vin:
+5764 7048a201 jam 1 ,mem_mouse_firebutton_connect_vin_flag 
+5765 20600000 rtn 
+
+mouse_check_firekey_gpio:
+5766 da400000 arg 0 ,regb 
+5767 6fe0c5cf fetch 1 ,mem_firebutton_gpio 
+5768 c17f8000 rtneq gpio_disable 
+5769 6fe0c8a2 fetch 1 ,mem_mouse_firebutton_connect_vin_flag 
+576a 243a5773 nbranch mouse_check_firekey_connect_vin ,blank 
+
+mouse_check_firekey_connect_gnd:
+576b 6848c5cf fetcht 1 ,mem_firebutton_gpio 
+576c 2040547f call mouse_gpio_config_input_pu 
+576d 6848c5cf fetcht 1 ,mem_firebutton_gpio 
+576e 20406b85 call gpio_get_bit 
+576f 7920a400 setflag true ,0 ,regb 
+
+mouse_firekey_state_store:
+5770 1a427e00 copy regb ,pdata 
+5771 67e0c8a8 store 1 ,mem_fire_key_flag 
+5772 20600000 rtn 
+
+mouse_check_firekey_connect_vin:
+5773 6fe0c5cf fetch 1 ,mem_firebutton_gpio 
+5774 793ffe07 set0 gpio_active_bit ,pdata 
+5775 67e0c5cf store 1 ,mem_firebutton_gpio 
+5776 6848c5cf fetcht 1 ,mem_firebutton_gpio 
+5777 2040547b call mouse_gpio_config_input_pd 
+5778 6848c5cf fetcht 1 ,mem_firebutton_gpio 
+5779 20406b85 call gpio_get_bit 
+577a 7d20a400 nsetflag true ,0 ,regb 
+577b 20205770 branch mouse_firekey_state_store 
+
+mouse_fire_key_process:
+577c c0025795 beq 4 ,mouse_fire_key_process_end 
+
+mouse_fire_key_press:
+577d 20405798 call mouse_firekey_clkn_bt_timer_check 
+577e 6fe248a4 fetch 4 ,mem_fire_key_delay 
+577f d84000a0 arg 0xa0 ,temp 
+5780 98408400 iadd temp ,temp 
+5781 1c427e00 copy clkn_bt ,pdata 
+5782 98467c00 isub temp ,null 
+5783 24610000 nrtn positive 
+5784 67e248a4 store 4 ,mem_fire_key_delay 
+5785 6fe0c8a3 fetch 1 ,mem_fire_key_status 
+5786 c000578b beq 0 ,mouse_fire_key_process_start 
+5787 c000d78e beq 1 ,mouse_fire_key_process_release1 
+5788 c0015791 beq 2 ,mouse_fire_key_process_start2 
+5789 c001d793 beq 3 ,mouse_fire_key_process_release2 
+578a 20600000 rtn 
+
+mouse_fire_key_process_start:
+578b 7048a301 jam 1 ,mem_fire_key_status 
+
+mouse_fire_key_down:
+578c 70457801 jam 1 ,mem_mouse_key 
+578d 202074c8 branch enable_user 
+
+mouse_fire_key_process_release1:
+578e 7048a302 jam 2 ,mem_fire_key_status 
+
+mouse_fire_key_release:
+578f 70457800 jam 0 ,mem_mouse_key 
+5790 202074c8 branch enable_user 
+
+mouse_fire_key_process_start2:
+5791 7048a303 jam 3 ,mem_fire_key_status 
+5792 2020578c branch mouse_fire_key_down 
+
+mouse_fire_key_process_release2:
+5793 7048a300 jam 0 ,mem_fire_key_status 
+5794 2020578f branch mouse_fire_key_release 
+
+mouse_fire_key_process_end:
+5795 7048a300 jam 0 ,mem_fire_key_status 
+5796 70457800 jam 0 ,mem_mouse_key 
+5797 20600000 rtn 
+
+mouse_firekey_clkn_bt_timer_check:
+5798 684a48a4 fetcht 4 ,mem_fire_key_delay 
+5799 1c427e00 copy clkn_bt ,pdata 
+579a 98467c00 isub temp ,null 
+579b 2441579d ncall mouse_firekey_clkn_bt_timer_timeout ,positive 
+579c 20600000 rtn 
+
+mouse_firekey_clkn_bt_timer_timeout:
+579d 58000000 setarg 0 
+579e 67e248a4 store 4 ,mem_fire_key_delay 
+579f 20600000 rtn 
+
+mouse_init_sunt:
+57a0 44a3c008 bpatch patch08_7 ,mem_patch08 
+57a1 20405490 call mouse_sensor_spi_init 
+57a2 20758000 rtn wake 
+
+mouse_init_sensor_wakeup:
+57a3 20405838 call mouse_sensor_poweron 
+
+mouse_init_sensor:
+57a4 44a44009 bpatch patch09_0 ,mem_patch09 
+57a5 204057af call mouse_read_sensor_id 
+57a6 c01857b6 beq p32xx_id1 ,mouse_init_p32xx_id2_judge 
+57a7 c018d817 beq p3065_id1 ,mouse_init_p3065 
+57a8 c02c5820 beq pka8g2_id1 ,mouse_ka8g2_id2_judge 
+57a9 204057ac call mouse_twspi_reset 
+57aa 20001af4 nop 6900 
+57ab 202057a4 branch mouse_init_sensor 
+
+mouse_twspi_reset:
+57ac 6848c5bb fetcht 1 ,mem_mouse_sensor_sclk_gpio 
+57ad 20406735 call twspi_reset 
+57ae 20205495 branch mouse_spid_init_pin 
+
+mouse_read_sensor_id:
+57af 58000001 setarg pan_reg_pid_h 
+57b0 2040674e call twspi_read 
+57b1 67e0c66f store 1 ,mem_sensor_id2 
+57b2 58000000 setarg pan_reg_pid_l 
+57b3 2040674e call twspi_read 
+57b4 67e0c66e store 1 ,mem_sensor_id1 
+57b5 20600000 rtn 
+
+mouse_init_p32xx_id2_judge:
+57b6 6fe0c66f fetch 1 ,mem_sensor_id2 
+57b7 c02d57bf beq p_mx8650 ,mouse_mx8650_init_param 
+57b8 c06c57c5 beq p8009_id2 ,mouse_8009_init_param 
+57b9 c068d7d4 beq p3205_tj3t_id2 ,mouse_3205_3t_init_param 
+57ba c06957dd beq p3204_tj3l_id2 ,mouse_3204_3l_init_param 
+57bb c00157e4 beq p3212_id2 ,mouse_3212_init_param 
+57bc c02a57ed beq pka8_id2 ,mouse_ka8_init_param_check 
+57bd c0285814 beq p6520a_id2 ,mouse_p6520_init_param 
+57be 202057a4 branch mouse_init_sensor 
+
+mouse_mx8650_init_param:
+57bf 7045d405 jam mx8650 ,mem_config_sensor_type 
+57c0 2040582b call mouse_sensor_reset 
+57c1 204073d8 call delay_10ms 
+57c2 da6046e6 arg mem_sensor_8650_init ,regc 
+57c3 204057e6 call mouse_sensor_wr_seq 
+57c4 2020562e branch mouse_dpi_config 
+
+mouse_8009_init_param:
+57c5 58000016 setarg 0x16 
+57c6 2040674e call twspi_read 
+57c7 1fe67cbd sub pdata ,0xbd ,null 
+57c8 2422d7a0 nbranch mouse_init_sunt ,zero 
+57c9 58000019 setarg 0x19 
+57ca 2040674e call twspi_read 
+57cb 1fe67c55 sub pdata ,0x55 ,null 
+57cc 2422d7a0 nbranch mouse_init_sunt ,zero 
+57cd 5800001b setarg 0x1b 
+57ce 2040674e call twspi_read 
+57cf 1fe67c1d sub pdata ,0x1d ,null 
+57d0 2422d7a0 nbranch mouse_init_sunt ,zero 
+57d1 7045d406 jam p8009 ,mem_config_sensor_type 
+57d2 da60472a arg mem_sensor_8009_init ,regc 
+57d3 202057e6 branch mouse_sensor_wr_seq 
+
+mouse_3205_3t_init_param:
+57d4 7045d400 jam p3205 ,mem_config_sensor_type 
+57d5 da6046a0 arg mem_sensor_3205_init ,regc 
+57d6 204057e6 call mouse_sensor_wr_seq 
+57d7 da6046aa arg mem_sensor_32xx_init ,regc 
+57d8 204057e6 call mouse_sensor_wr_seq 
+57d9 58000943 setarg 0x0943 
+57da 2040674d call twspi_write 
+57db da6046c4 arg mem_sensor_32xx_init_1 ,regc 
+57dc 202057e6 branch mouse_sensor_wr_seq 
+
+mouse_3204_3l_init_param:
+57dd 7045d402 jam p3204 ,mem_config_sensor_type 
+57de da604696 arg mem_sensor_3204_init ,regc 
+57df 204057e6 call mouse_sensor_wr_seq 
+57e0 da6046aa arg mem_sensor_32xx_init ,regc 
+57e1 204057e6 call mouse_sensor_wr_seq 
+57e2 da6046c4 arg mem_sensor_32xx_init_1 ,regc 
+57e3 202057e6 branch mouse_sensor_wr_seq 
+
+mouse_3212_init_param:
+57e4 7045d403 jam p3212 ,mem_config_sensor_type 
+57e5 da60468c arg mem_sensor_3212_init ,regc 
+
+mouse_sensor_wr_seq:
+57e6 efe10013 ifetch 2 ,regc 
+57e7 d840ffff arg 0xffff ,temp 
+57e8 98467c00 isub temp ,null 
+57e9 20628000 rtn zero 
+57ea 2040674d call twspi_write 
+57eb 1a60a602 increase 2 ,regc 
+57ec 202057e6 branch mouse_sensor_wr_seq 
+
+mouse_ka8_init_param_check:
+57ed 20405829 call mouse_sensor_disable_wp 
+57ee 58009a5b setarg 0x9a5b 
+57ef 2040674d call twspi_write 
+57f0 5800000d setarg 0x0d 
+57f1 2040674e call twspi_read 
+57f2 1fe67c12 sub pdata ,0x12 ,null 
+57f3 2022d801 branch mouse_ka8ul_init_param ,zero 
+57f4 1fe67c0a sub pdata ,0x0a ,null 
+57f5 2422d804 nbranch mouse_ka8hd_sensor_judge ,zero 
+57f6 5800000e setarg 0x0e 
+57f7 2040674e call twspi_read 
+57f8 1fe67ce5 sub pdata ,0xe5 ,null 
+57f9 2422d7a4 nbranch mouse_init_sensor ,zero 
+57fa 58000010 setarg 0x10 
+57fb 2040674e call twspi_read 
+57fc 1fe67ca5 sub pdata ,0xa5 ,null 
+57fd 2022d801 branch mouse_ka8ul_init_param ,zero 
+57fe 20405811 call mouse_enable_ka8_sensor_wp 
+
+mouse_ka8_init_param:
+57ff 7045d408 jam ka8 ,mem_config_sensor_type 
+5800 20600000 rtn 
+
+mouse_ka8ul_init_param:
+5801 7045d409 jam ka8_ul ,mem_config_sensor_type 
+5802 da60470c arg mem_sensor_ka8ul_init ,regc 
+5803 202057e6 branch mouse_sensor_wr_seq 
+
+mouse_ka8hd_sensor_judge:
+5804 1fe67c10 sub pdata ,0x10 ,null 
+5805 2422d7a4 nbranch mouse_init_sensor ,zero 
+5806 5800000e setarg 0x0e 
+5807 2040674e call twspi_read 
+5808 1fe67cc5 sub pdata ,0xc5 ,null 
+5809 2422d7a4 nbranch mouse_init_sensor ,zero 
+580a 58000010 setarg 0x10 
+580b 2040674e call twspi_read 
+580c 1fe67c38 sub pdata ,0x38 ,null 
+580d 2422d7a4 nbranch mouse_init_sensor ,zero 
+
+mouse_ka8hd_init_param:
+580e 20405811 call mouse_enable_ka8_sensor_wp 
+580f 7045d40a jam ka8_hd ,mem_config_sensor_type 
+5810 20600000 rtn 
+
+mouse_enable_ka8_sensor_wp:
+5811 5800005b setarg 0x005b 
+5812 2040674d call twspi_write 
+5813 20205827 branch mouse_sensor_enable_wp 
+
+mouse_p6520_init_param:
+5814 7045d407 jam p6520 ,mem_config_sensor_type 
+5815 da60474a arg mem_sensor_p6520_init ,regc 
+5816 202057e6 branch mouse_sensor_wr_seq 
+
+mouse_init_p3065:
+5817 20405838 call mouse_sensor_poweron 
+5818 6fe0c66f fetch 1 ,mem_sensor_id2 
+5819 c038581e beq p3065_xy_id2 ,mouse_p3065xy_init_param 
+581a c000581c beq p3065_id2 ,mouse_p3065_init_param 
+581b 202057a4 branch mouse_init_sensor 
+
+mouse_p3065_init_param:
+581c 7045d401 jam p3065 ,mem_config_sensor_type 
+581d 20600000 rtn 
+
+mouse_p3065xy_init_param:
+581e 7045d404 jam p3065_xy ,mem_config_sensor_type 
+581f 20600000 rtn 
+
+mouse_ka8g2_id2_judge:
+5820 20405838 call mouse_sensor_poweron 
+5821 6fe0c66f fetch 1 ,mem_sensor_id2 
+5822 c02cd824 beq pka8g2_id2 ,mouse_ka8g2_init_param 
+5823 202057b6 branch mouse_init_p32xx_id2_judge 
+
+mouse_ka8g2_init_param:
+5824 7045d40b jam ka8g2 ,mem_config_sensor_type 
+5825 da60473a arg mem_sensor_ka8g2_init ,regc 
+5826 202057e6 branch mouse_sensor_wr_seq 
+
+mouse_sensor_enable_wp:
+5827 58000009 setarg 0x0009 
+5828 2020674d branch twspi_write 
+
+mouse_sensor_disable_wp:
+5829 58005a09 setarg 0x5a09 
+582a 2020674d branch twspi_write 
+
+mouse_sensor_reset:
+582b d8408006 arg 0x8006 ,temp 
+582c 6fe0c5d4 fetch 1 ,mem_config_sensor_type 
+582d c085d82f bne ka8g2 ,mouse_sensor_reset_end 
+582e d8409706 arg 0x9706 ,temp 
+
+mouse_sensor_reset_end:
+582f 18427e00 copy temp ,pdata 
+5830 2040674d call twspi_write 
+5831 20002ee0 nop 12000 
+5832 20600000 rtn 
+
+mouse_sensor_poweron_init:
+5833 da604756 arg mem_sensor_poweron_init ,regc 
+5834 6fe0c5d4 fetch 1 ,mem_config_sensor_type 
+5835 c1858000 rtnne ka8g2 
+5836 da60475e arg mem_sensor_ka8g2_poweron_init ,regc 
+5837 20600000 rtn 
+
+mouse_sensor_poweron:
+5838 44a4c009 bpatch patch09_1 ,mem_patch09 
+5839 20405490 call mouse_sensor_spi_init 
+583a 2040582b call mouse_sensor_reset 
+583b 20405833 call mouse_sensor_poweron_init 
+583c 204057e6 call mouse_sensor_wr_seq 
+583d 2020562e branch mouse_dpi_config 
+
+mouse_sensor_powerdown:
+583e 44a54009 bpatch patch09_2 ,mem_patch09 
+583f 204057a0 call mouse_init_sunt 
+5840 20405490 call mouse_sensor_spi_init 
+5841 d8400806 arg 0x0806 ,temp 
+5842 6fe0c5d4 fetch 1 ,mem_config_sensor_type 
+5843 c085d845 bne ka8g2 ,mouse_sensor_powerdown_end 
+5844 d8401f06 arg 0x1f06 ,temp 
+
+mouse_sensor_powerdown_end:
+5845 18427e00 copy temp ,pdata 
+5846 2020674d branch twspi_write 
+
+mouse_check_sensor_data:
+5847 6fe0c3d2 fetch 1 ,mem_spi_write_flash_sm 
+5848 c1800000 rtnne flash_sm_no_buys 
+5849 6fe0c5d4 fetch 1 ,mem_config_sensor_type 
+584a c0005853 beq p3205 ,mouse_p32xx_sensor_motion 
+584b c000d853 beq p3065 ,mouse_p32xx_sensor_motion 
+584c c0045853 beq ka8 ,mouse_p32xx_sensor_motion 
+584d c0015853 beq p3204 ,mouse_p32xx_sensor_motion 
+584e c001d877 beq p3212 ,mouse_p3212_sensor_motion 
+584f c0025853 beq p3065_xy ,mouse_p32xx_sensor_motion 
+5850 c003589c beq p8009 ,mouse_p8009_sensor_motion 
+5851 c005d895 beq ka8g2 ,mouse_pka8g2_sensor_motion 
+5852 20205853 branch mouse_p32xx_sensor_motion 
+
+mouse_p32xx_sensor_motion:
+5853 204058be call mouse_clear_sensor_data 
+5854 78547c00 disable user 
+5855 6fe0c5c6 fetch 1 ,mem_sensor_motion_gpio 
+5856 c07fd85a beq gpio_disable ,mouse_p32xx_sensor_motion_2 
+5857 6848c5c6 fetcht 1 ,mem_sensor_motion_gpio 
+5858 20406b85 call gpio_get_bit 
+5859 24608000 nrtn true 
+
+mouse_p32xx_sensor_motion_2:
+585a 58000000 setarg pan_reg_pid_l 
+585b 2040674e call twspi_read 
+585c c098586d bne p32xx_id1 ,mouse_p3065_judge 
+
+mouse_p32xx_sensor_motion_1:
+585d 58000002 setarg pan_reg_motion_staus 
+585e 2040674e call twspi_read 
+585f c4038000 rtnbit0 7 
+5860 204058d5 call mouse_read_sensor_common 
+5861 6fe0c579 fetch 1 ,mem_mouse_x 
+5862 204058cd call mouse_data_extsign 
+5863 67e14579 store 2 ,mem_mouse_x 
+5864 6fe0c57b fetch 1 ,mem_mouse_y 
+5865 204058cd call mouse_data_extsign 
+5866 67e1457b store 2 ,mem_mouse_y 
+5867 6fe0c5d5 fetch 1 ,mem_config_sensor_angle 
+5868 c000586f beq mouse_6clk_angle ,mouse_motion32xx_6clk_direction_selection 
+5869 c000d871 beq mouse_9clk_angle ,mouse_motion32xx_9clk_direction_selection 
+586a c0015873 beq mouse_12clk_angle ,mouse_motion32xx_12clk_direction_selection 
+586b c001d875 beq mouse_3clk_angle ,mouse_motion32xx_3clk_direction_selection 
+586c 20600000 rtn 
+
+mouse_p3065_judge:
+586d c018d85d beq p3065_id1 ,mouse_p32xx_sensor_motion_1 
+586e 202057ac branch mouse_twspi_reset 
+
+mouse_motion32xx_6clk_direction_selection:
+586f 204058a7 call mouse_motion_6clk_direction_dispose 
+5870 202058dc branch mouse_sensor_sdio_low 
+
+mouse_motion32xx_9clk_direction_selection:
+5871 204058af call mouse_motion_9clk_direction_dispose 
+5872 202058dc branch mouse_sensor_sdio_low 
+
+mouse_motion32xx_12clk_direction_selection:
+5873 204058ab call mouse_motion_12clk_direction_dispose 
+5874 202058dc branch mouse_sensor_sdio_low 
+
+mouse_motion32xx_3clk_direction_selection:
+5875 204058b7 call mouse_motion_3clk_direction_dispose 
+5876 202058dc branch mouse_sensor_sdio_low 
+
+mouse_p3212_sensor_motion:
+5877 204058be call mouse_clear_sensor_data 
+5878 6fe0c5c6 fetch 1 ,mem_sensor_motion_gpio 
+5879 c07fd87d beq gpio_disable ,mouse_p3212_sensor_motion_1 
+587a 6848c5c6 fetcht 1 ,mem_sensor_motion_gpio 
+587b 20406b85 call gpio_get_bit 
+587c 24608000 nrtn true 
+
+mouse_p3212_sensor_motion_1:
+587d 58000000 setarg pan_reg_pid_l 
+587e 2040674e call twspi_read 
+587f c09857ac bne p32xx_id1 ,mouse_twspi_reset 
+
+mouse_p3212_sensor_motion_2:
+5880 58000002 setarg pan_reg_motion_staus 
+5881 2040674e call twspi_read 
+5882 c4038000 rtnbit0 7 
+5883 204058d5 call mouse_read_sensor_common 
+5884 20405893 call mouse_read_3212sensor_xy_high 
+5885 67e0c57f store 1 ,mem_mouse_xy_h 
+5886 1ff1fe00 rshift4 pdata ,pdata 
+5887 204058d1 call mouse_data_extsign_bit3 
+5888 67e0c57a store 1 ,mem_mouse_x + 1 
+5889 6fe0c57f fetch 1 ,mem_mouse_xy_h 
+588a 1fe17e0f and pdata ,0x0f ,pdata 
+588b 204058d1 call mouse_data_extsign_bit3 
+588c 67e0c57c store 1 ,mem_mouse_y + 1 
+588d 6fe0c5d5 fetch 1 ,mem_config_sensor_angle 
+588e c00058a7 beq mouse_6clk_angle ,mouse_motion_6clk_direction_dispose 
+588f c000d8af beq mouse_9clk_angle ,mouse_motion_9clk_direction_dispose 
+5890 c00158ab beq mouse_12clk_angle ,mouse_motion_12clk_direction_dispose 
+5891 c001d8b7 beq mouse_3clk_angle ,mouse_motion_3clk_direction_dispose 
+5892 20600000 rtn 
+
+mouse_read_3212sensor_xy_high:
+5893 58000012 setarg 0x12 
+5894 2020674e branch twspi_read 
+
+mouse_pka8g2_sensor_motion:
+5895 204058be call mouse_clear_sensor_data 
+5896 6fe0c5c6 fetch 1 ,mem_sensor_motion_gpio 
+5897 c07fd89b beq gpio_disable ,mouse_pka8g2_sensor_motion_1 
+5898 6848c5c6 fetcht 1 ,mem_sensor_motion_gpio 
+5899 20406b85 call gpio_get_bit 
+589a 24608000 nrtn true 
+
+mouse_pka8g2_sensor_motion_1:
+589b 20205880 branch mouse_p3212_sensor_motion_2 
+
+mouse_p8009_sensor_motion:
+589c 204058be call mouse_clear_sensor_data 
+589d 78547c00 disable user 
+589e 58000002 setarg pan_reg_motion_staus 
+589f 2040674e call twspi_read 
+58a0 c4038000 rtnbit0 7 
+58a1 58000008 setarg pan_reg_opration_state 
+58a2 2040674e call twspi_read 
+58a3 203a5860 branch mouse_p32xx_sensor_motion_1 + 3 ,blank 
+58a4 58000000 setarg 0 
+58a5 67e34579 store 6 ,mem_mouse_x 
+58a6 20600000 rtn 
+
+mouse_motion_6clk_direction_dispose:
+58a7 6fe14579 fetch 2 ,mem_mouse_x 
+58a8 1fe67e00 sub pdata ,0 ,pdata 
+58a9 67e14579 store 2 ,mem_mouse_x 
+58aa 202074c8 branch enable_user 
+
+mouse_motion_12clk_direction_dispose:
+58ab 6fe1457b fetch 2 ,mem_mouse_y 
+58ac 1fe67e00 sub pdata ,0 ,pdata 
+58ad 67e1457b store 2 ,mem_mouse_y 
+58ae 202074c8 branch enable_user 
+
+mouse_motion_9clk_direction_dispose:
+58af 6fe1457b fetch 2 ,mem_mouse_y 
+58b0 1fe67e00 sub pdata ,0 ,pdata 
+58b1 67e1457b store 2 ,mem_mouse_y 
+58b2 6fe14579 fetch 2 ,mem_mouse_x 
+58b3 1fe67e00 sub pdata ,0 ,pdata 
+58b4 67e14579 store 2 ,mem_mouse_x 
+58b5 204058b9 call mouse_sensor_data_swap_places 
+58b6 202074c8 branch enable_user 
+
+mouse_motion_3clk_direction_dispose:
+58b7 204058b9 call mouse_sensor_data_swap_places 
+58b8 202074c8 branch enable_user 
+
+mouse_sensor_data_swap_places:
+58b9 6fe1457b fetch 2 ,mem_mouse_y 
+58ba 68494579 fetcht 2 ,mem_mouse_x 
+58bb 67e14579 store 2 ,mem_mouse_x 
+58bc 6049457b storet 2 ,mem_mouse_y 
+58bd 20600000 rtn 
+
+mouse_clear_sensor_data:
+58be 6fe0c675 fetch 1 ,mem_mouse_move_flag 
+58bf 205a58d5 call mouse_read_sensor_common ,blank 
+58c0 70467501 jam 1 ,mem_mouse_move_flag 
+58c1 20600000 rtn 
+
+mouse_clear_sensor_data_by_reset:
+58c2 70476601 jam 1 ,mem_mouse_clear_sensor_data_flag 
+58c3 2040416b call le_set_config_more_data 
+
+mouse_init_sensor_reset:
+58c4 202057a0 branch mouse_init_sunt 
+
+mouse_data_xy_release:
+58c5 6fe0c5c6 fetch 1 ,mem_sensor_motion_gpio 
+58c6 c1ff8000 rtnne gpio_disable 
+58c7 6fe0c768 fetch 1 ,mem_mouse_long_mult_flag 
+58c8 c1808000 rtnne 1 
+58c9 58000000 setarg 0 
+58ca 67e0c768 store 1 ,mem_mouse_long_mult_flag 
+58cb 67e24579 store 4 ,mem_mouse_x 
+58cc 202058c4 branch mouse_init_sensor_reset 
+
+mouse_data_extsign:
+58cd c4038000 rtnbit0 7 
+58ce d840ff00 arg 0xff00 ,temp 
+58cf 9841fe00 ior temp ,pdata 
+58d0 20600000 rtn 
+
+mouse_data_extsign_bit3:
+58d1 c4018000 rtnbit0 3 
+58d2 d84000f0 arg 0xf0 ,temp 
+58d3 9841fe00 ior temp ,pdata 
+58d4 20600000 rtn 
+
+mouse_read_sensor_common:
+58d5 dfe00003 arg pan_reg_delta_x ,pdata 
+58d6 2040674e call twspi_read 
+58d7 67e14579 store 2 ,mem_mouse_x 
+58d8 dfe00004 arg pan_reg_delta_y ,pdata 
+58d9 2040674e call twspi_read 
+58da 67e1457b store 2 ,mem_mouse_y 
+58db 20600000 rtn 
+
+mouse_sensor_sdio_low:
+58dc 6848c5bc fetcht 1 ,mem_mouse_sensor_sdio_gpio 
+58dd 20406b85 call gpio_get_bit 
+58de 20608000 rtn true 
+58df 5800000a setarg 0x0a 
+58e0 2040674e call twspi_read 
+58e1 200003e8 nop 1000 
+58e2 202058dc branch mouse_sensor_sdio_low 
+
+mouse_set_sdio_high:
+58e3 58008100 setarg 0x8100 
+58e4 2020674d branch twspi_write 
+
+mouse_bluetooth_fast_conn_init:
+58e5 70477bff jam 0xff ,mem_mouse_bluetooth_fast_conn_flag 
+
+mouse_ble_fast_conn_init:
+58e6 7043ac34 jam 0x34 ,mem_xrecord_mode 
+58e7 580f0f0f setarg 0x0f0f0f 
+58e8 67e1c2b0 store 3 ,mem_le_lap 
+58e9 67e1c2b3 store 3 ,mem_le_lap + 3 
+58ea 202052fc branch mouse_start_reconnect 
+
+mouse_buletooth_fast_conn_end:
+58eb 44a5c009 bpatch patch09_3 ,mem_patch09 
+58ec 20405b61 call mouse_select_reconn_device 
+58ed 204058f9 call mouse_bluetooth_fast_conn_disable 
+58ee 6fe0c5e5 fetch 1 ,mem_device_flag 
+58ef c000d8f2 beq mode_bt_device1 ,mouse_device1_check_auto_discover 
+58f0 c00158f4 beq mode_bt_device2 ,mouse_device2_check_auto_discover 
+58f1 20600000 rtn 
+
+mouse_device1_check_auto_discover:
+58f2 6fe345e7 fetch 6 ,mem_device1_addr 
+58f3 202058f5 branch mouse_device_check_auto_discover 
+
+mouse_device2_check_auto_discover:
+58f4 6fe34604 fetch 6 ,mem_device2_addr 
+
+mouse_device_check_auto_discover:
+58f5 684b4621 fetcht 6 ,mem_mouse_compare_addr_ff 
+58f6 98467c00 isub temp ,null 
+58f7 2022db08 branch mouse_start_discovery ,zero 
+58f8 202052f2 branch mouse_start_reconnect_device 
+
+mouse_bluetooth_fast_conn_disable:
+58f9 70477b5a jam 0x5a ,mem_mouse_bluetooth_fast_conn_flag 
+58fa 20600000 rtn 
+
+mouse_stop_bluetooth_mode:
+58fb 6fe14434 fetch 2 ,mem_ui_state_map 
+58fc c284ce0b bbit1 ui_state_ble_connected ,app_ble_disconnect 
+58fd 20205b29 branch mouse_stop_discovery 
+
+mouse_disconnect:
+58fe 58000000 setarg 0 
+58ff 67e1476c store 2 ,mem_mouse_no_data_timer 
+5900 6fe14434 fetch 2 ,mem_ui_state_map 
+5901 c284ce0b bbit1 ui_state_ble_connected ,app_ble_disconnect 
+5902 20600000 rtn 
+
+mouse_check_125hz:
+5903 6fe44864 fetch mouse_flag_len ,mem_mouse_flag 
+5904 c40d8000 rtnbit0 mouse_enable_bt_125hz 
+
+mouse_bluetooth_125hz:
+5905 2434590b nbranch mouse_bluetooth_125hz_clear ,user 
+5906 6fe0c767 fetch 1 ,mem_bluetooth_125hz_cnt 
+5907 1fe0fe01 increase 1 ,pdata 
+5908 1fe17e0f and_into 0x0f ,pdata 
+5909 67e0c767 store 1 ,mem_bluetooth_125hz_cnt 
+590a 247a0000 nrtn blank 
+
+mouse_bluetooth_125hz_clear:
+590b 70476700 jam 0 ,mem_bluetooth_125hz_cnt 
+590c 202074ca branch disable_user 
+
+mouse_current_mult_update:
+590d 6fe0c5c6 fetch 1 ,mem_sensor_motion_gpio 
+590e c1ff8000 rtnne gpio_disable 
+590f 7040c100 jam 0 ,mem_lpm_mult 
+5910 7047691e jam 30 ,mem_mouse_current_mult_timer 
+5911 20600000 rtn 
+
+mouse_priority_bb_event:
+5912 44a64009 bpatch patch09_4 ,mem_patch09 
+5913 1a627e00 copy regc ,pdata 
+5914 c00a5921 beq bt_evt_le_connected ,mouse_le_bb_event_connected 
+5915 c00ad932 beq bt_evt_le_disconnected ,mouse_le_bb_disconnected 
+5916 c0085b03 beq bt_evt_button_long_pressed ,mouse_bb_event_discovery_btn 
+5917 c018d93b beq bt_evt_le_pairing_success ,mouse_le_pairing_success 
+5918 c014d93d beq bt_evt_le_enc_info ,mouse_le_enc_info 
+5919 c019593f beq bt_evt_le_start_enc ,mouse_le_ll_start_encryt 
+591a c01f4e15 beq bt_evt_le_pairing_complete ,app_ble_store_reconn_info 
+591b c020594b beq bt_evt_le_parse_conn_papa_update_rsp ,mouse_le_conn_param_update_rsp_recieved 
+591c c01cde21 beq bt_evt_24g_pairing_complete ,mouse_24g_pairing_complete 
+591d c01d5de5 beq bt_evt_24g_attempt_fail ,mouse_24g_attempt_fail 
+591e c01e5e0c beq bt_evt_24g_attempt_success ,mouse_24g_attempt_success 
+591f c022595a beq bt_evt_le_parse_conn_param_accepted ,mouse_le_parse_conn_param_accepted 
+5920 20600000 rtn 
+
+mouse_le_bb_event_connected:
+5921 6fe0c8bd fetch 1 ,mem_mouse_1io2led_led_enable 
+5922 245a5abd ncall mouse_multi_led_on_enable ,blank 
+5923 70476800 jam 0 ,mem_mouse_long_mult_flag 
+5924 204058c4 call mouse_init_sensor_reset 
+5925 70478001 jam 1 ,mem_mouse_le_bb_connected_flag 
+5926 20405dd3 call mouse_24g_first_store_reconn_info 
+5927 6fe0c781 fetch 1 ,mem_mouse_le_reconnect_flag 
+5928 243a592a nbranch mouse_le_bb_event_connected_next ,blank 
+5929 70478214 jam 0x14 ,mem_mouse_send_secutiry_request_timer 
+
+mouse_le_bb_event_connected_next:
+592a 6fe143aa fetch app_disc_rsn_size ,mem_app_disconn_reason_flag 
+592b 793ffe00 set0 app_disc_by_button ,pdata 
+592c 67e143aa store app_disc_rsn_size ,mem_app_disconn_reason_flag 
+592d 70483100 jam 0 ,mem_mouse_direct_timer 
+592e 6fe147aa fetch 2 ,mem_le_battery_level_updata_timer_init 
+592f 67e147ac store 2 ,mem_le_battery_level_updata_timer 
+5930 20405aa9 call mouse_no_data_timer_init 
+5931 20205b29 branch mouse_stop_discovery 
+
+mouse_le_bb_disconnected:
+5932 58000000 setarg 0 
+5933 67e147ac store 2 ,mem_le_battery_level_updata_timer 
+5934 67e0c8ca store 1 ,mem_mouse_le_send_conn_param_update 
+5935 67e0c8cb store 1 ,mem_mouse_le_send_conn_param_update_timer 
+5936 67e0c780 store 1 ,mem_mouse_le_bb_connected_flag 
+5937 7047ae00 jam le_lpm_enable ,mem_mouse_le_conn_param_reject 
+5938 70476600 jam 0 ,mem_mouse_clear_sensor_data_flag 
+5939 2040416d call le_clr_config_more_data 
+593a 20205a0f branch mouse_bb_disconnected 
+
+mouse_le_pairing_success:
+593b d8e00002 arg ll_pairing_success_flag ,queue 
+593c 20205947 branch mouse_le_enable_connect_flag 
+
+mouse_le_enc_info:
+
+mouse_updata_le_param:
+593d 7004c312 jam bt_cmd_le_update_conn ,mem_fifo_temp 
+593e 20206f84 branch ui_ipc_send_cmd 
+
+mouse_le_ll_start_encryt:
+593f 6fe0c781 fetch 1 ,mem_mouse_le_reconnect_flag 
+5940 c000d943 beq 1 ,mouse_le_ll_reconn_start_encryt 
+5941 70483014 jam 20 ,mem_le_start_encrypt_timer 
+5942 20205945 branch mouse_le_ll_enable_start_enc_flag 
+
+mouse_le_ll_reconn_start_encryt:
+5943 2040593d call mouse_updata_le_param 
+5944 7048300a jam 10 ,mem_le_start_encrypt_timer 
+
+mouse_le_ll_enable_start_enc_flag:
+5945 d8e00001 arg ll_start_enc_flag ,queue 
+5946 20205947 branch mouse_le_enable_connect_flag 
+
+mouse_le_enable_connect_flag:
+5947 6fe0c82f fetch 1 ,mem_le_connect_status_flag 
+5948 f9207e00 qset1 pdata 
+5949 67e0c82f store 1 ,mem_le_connect_status_flag 
+594a 20600000 rtn 
+
+mouse_le_conn_param_update_rsp_recieved:
+594b 6fe0c8ca fetch 1 ,mem_mouse_le_send_conn_param_update 
+594c 247a0000 nrtn blank 
+594d 7048ca01 jam 1 ,mem_mouse_le_send_conn_param_update 
+594e 7048cb1e jam 30 ,mem_mouse_le_send_conn_param_update_timer 
+594f 20600000 rtn 
+
+mouse_le_conn_param_lpm_disable:
+5950 7047ae01 jam le_lpm_disable ,mem_mouse_le_conn_param_reject 
+5951 20600000 rtn 
+
+mouse_le_bb_event_connect_complete:
+5952 6fe0c781 fetch 1 ,mem_mouse_le_reconnect_flag 
+5953 247a0000 nrtn blank 
+5954 6fe0c36f fetch 1 ,mem_le_att_handle 
+5955 1fe67e22 sub pdata ,34 ,pdata 
+5956 24628000 nrtn zero 
+5957 70483000 jam 0 ,mem_le_start_encrypt_timer 
+
+mouse_le_write_enable:
+5958 d8e00000 arg write_req_enable_flag ,queue 
+5959 20205947 branch mouse_le_enable_connect_flag 
+
+mouse_le_parse_conn_param_accepted:
+595a 6fe0819d fetch 1 ,mem_le_new_conninterval 
+595b 1fe67c0c sub pdata ,le_interval_15ms ,null 
+595c 24215950 nbranch mouse_le_conn_param_lpm_disable ,positive 
+595d 6fe0819f fetch 1 ,mem_le_new_connslavelatency 
+595e 6848c843 fetcht 1 ,mem_lpm_mult_init 
+595f 98467c00 isub temp ,null 
+5960 20215964 branch mouse_le_lpm_mult_reinit ,positive 
+5961 6fe0819f fetch 1 ,mem_le_new_connslavelatency 
+5962 67e0c0c1 store 1 ,mem_lpm_mult 
+5963 20205966 branch mouse_le_conn_param_lpm_enable 
+
+mouse_le_lpm_mult_reinit:
+5964 6fe0c843 fetch 1 ,mem_lpm_mult_init 
+5965 67e0c0c1 store 1 ,mem_lpm_mult 
+
+mouse_le_conn_param_lpm_enable:
+5966 7047ae00 jam le_lpm_enable ,mem_mouse_le_conn_param_reject 
+5967 20600000 rtn 
+
+mouse_le_clean_connect_flag:
+5968 70482f00 jam 0 ,mem_le_connect_status_flag 
+5969 20600000 rtn 
+
+mouse_le:
+596a 44a6c009 bpatch patch09_5 ,mem_patch09 
+596b 204041cc call le_fifo_check_nearly_full 
+596c 247a0000 nrtn blank 
+596d 6fe0c77b fetch 1 ,mem_mouse_bluetooth_fast_conn_flag 
+596e c07fd972 beq 0xff ,mouse_le_next 
+596f 6fe0c82f fetch 1 ,mem_le_connect_status_flag 
+5970 1fe17e03 and pdata ,0x03 ,pdata 
+5971 c1818000 rtnne 0x03 
+
+mouse_le_next:
+5972 6fe0c766 fetch 1 ,mem_mouse_clear_sensor_data_flag 
+5973 205a58c2 call mouse_clear_sensor_data_by_reset ,blank 
+5974 6fe44864 fetch mouse_flag_len ,mem_mouse_flag 
+5975 c280d9a2 bbit1 mouse_24g_pairing_flag ,mouse_le_send_empty_packet 
+5976 c28059a2 bbit1 mouse_select_device_flag ,mouse_le_send_empty_packet 
+5977 c282d9a2 bbit1 mouse_bt_discovery_button_down_flag ,mouse_le_send_empty_packet 
+5978 c28359a2 bbit1 mouse_bt_discovery_button_long_down_flag ,mouse_le_send_empty_packet 
+5979 2040549b call mouse_motion 
+597a 20405903 call mouse_check_125hz 
+597b 24740000 nrtn user 
+597c 2040590d call mouse_current_mult_update 
+597d 204058c5 call mouse_data_xy_release 
+597e 2040554b call mouse_wheel_trigger 
+597f 6fe44864 fetch mouse_flag_len ,mem_mouse_flag 
+5980 c30ad983 bbit0 mouse_enable_keyboard ,mouse_le_send_mouse_data 
+5981 6fe0c844 fetch 1 ,mem_customer_key 
+5982 c000d984 beq 1 ,mouse_le_send_keyboard_package_data 
+
+mouse_le_send_mouse_data:
+5983 202059a4 branch mouse_fill_mouse_data_le 
+
+mouse_le_send_keyboard_package_data:
+5984 6fe0c845 fetch 1 ,mem_customer_data_trigger 
+5985 203a5994 branch mouse_le_release_keyboard_data ,blank 
+5986 6fe44885 fetch 8 ,mem_customer_key_press + 1 
+
+mouse_fill_keyboard_package_data_le:
+5987 67e404c4 store 8 ,mem_pdatatemp 
+5988 6fe0c884 fetch 1 ,mem_customer_key_press 
+5989 c001d996 beq kb_multikey_report_id ,mouse_fill_multimedia_key_data_le 
+598a c0015999 beq kb_system_conctrl_report_id ,mouse_fill_systemctrl_key_data_le 
+598b 7047a008 jam 8 ,mem_le_data_len 
+598c 684947a1 fetcht 2 ,mem_le_keyboard_handle 
+
+mouse_fill_data_le:
+598d 6fe0c7a0 fetch 1 ,mem_le_data_len 
+598e 1fe22200 copy pdata ,rega 
+598f 20404513 call le_att_malloc_tx_notify 
+5990 6848c7a0 fetcht 1 ,mem_le_data_len 
+5991 18427200 copy temp ,loopcnt 
+5992 d8c004c4 arg mem_pdatatemp ,contr 
+5993 20207419 branch memcpy 
+
+mouse_le_release_keyboard_data:
+5994 6fe4488e fetch 8 ,mem_customer_key_release + 1 
+5995 20205987 branch mouse_fill_keyboard_package_data_le 
+
+mouse_fill_multimedia_key_data_le:
+5996 7047a003 jam 3 ,mem_le_data_len 
+5997 684947a3 fetcht 2 ,mem_le_multimedia_handle 
+5998 2020598d branch mouse_fill_data_le 
+
+mouse_fill_systemctrl_key_data_le:
+5999 7047a002 jam 2 ,mem_le_data_len 
+599a 684947a5 fetcht 2 ,mem_le_systemctrl_handle 
+599b 2020598d branch mouse_fill_data_le 
+
+mouse_fill_battery_level_le:
+599c da200001 arg 1 ,rega 
+599d 684947a7 fetcht 2 ,mem_le_battery_level_handle 
+599e 20404513 call le_att_malloc_tx_notify 
+599f 6fe0c7a9 fetch 1 ,mem_le_battery_level_percentage 
+59a0 e7e08005 istore 1 ,contw 
+59a1 20600000 rtn 
+
+mouse_le_send_empty_packet:
+59a2 58000000 setarg 0 
+59a3 67e3c578 store 7 ,mem_mouse_key 
+
+mouse_fill_mouse_data_le:
+59a4 7047a007 jam 7 ,mem_le_data_len 
+59a5 6fe3c578 fetch 7 ,mem_mouse_key 
+59a6 67e384c4 store 7 ,mem_pdatatemp 
+59a7 6849428d fetcht 2 ,mem_le_notify_handle 
+59a8 2020598d branch mouse_fill_data_le 
+
+mouse_check_51cmd_adv:
+59a9 70478100 jam 0 ,mem_mouse_le_reconnect_flag 
+59aa 6fe1c786 fetch 3 ,mem_le_adv_ind 
+59ab 67e1c324 store 3 ,mem_le_adv_data + 4 
+59ac 204059b2 call mouse_le_check_adv_flag 
+59ad 58000005 setarg adv_flag_bredr_not_supported | adv_flag_limited_discoverable 
+59ae e7e08006 istore 1 ,contr 
+59af d8c0478c arg mem_le_adv_swift_pair ,contr 
+59b0 204059b9 call mouse_le_adv_data_update 
+59b1 20206fc0 branch check_51cmd_adv 
+
+mouse_le_check_adv_flag:
+59b2 da204320 arg mem_le_adv_data ,rega 
+
+mouse_le_check_adv_flag_loop:
+59b3 efe08011 ifetch 1 ,rega 
+59b4 207a0000 rtn blank 
+59b5 98c0a200 iadd contr ,rega 
+59b6 efe08006 ifetch 1 ,contr 
+59b7 c1008000 rtneq 0x01 
+59b8 202059b3 branch mouse_le_check_adv_flag_loop 
+
+mouse_le_adv_data_update:
+59b9 d8a0432b arg mem_le_adv_data + 11 ,contw 
+59ba df200013 arg 19 ,loopcnt 
+59bb 20407419 call memcpy 
+59bc 2020410b branch le_modified_name_adv 
+
+mouse_le_name_load:
+59bd 6fe448aa fetch 8 ,mem_le_name_temp 
+59be 207a0000 rtn blank 
+59bf 6fe0c8a9 fetch 1 ,mem_le_name_len_temp 
+59c0 1fe22200 copy pdata ,rega 
+59c1 1fe67c0b sub pdata ,11 ,null 
+59c2 242159cf nbranch mouse_le_name_len_overflow ,positive 
+59c3 d8c048aa arg mem_le_name_temp ,contr 
+59c4 d8a04795 arg mem_le_adv_swift_pair + 9 ,contw 
+59c5 1a227200 copy rega ,loopcnt 
+59c6 20407419 call memcpy 
+59c7 d8c048aa arg mem_le_name_temp ,contr 
+59c8 d8a04342 arg mem_le_scan_data + 2 ,contw 
+59c9 1a227200 copy rega ,loopcnt 
+59ca 20407419 call memcpy 
+59cb d8c048aa arg mem_le_name_temp ,contr 
+59cc d8a0422e arg mem_le_name ,contw 
+59cd 1a227200 copy rega ,loopcnt 
+59ce 20207419 branch memcpy 
+
+mouse_le_name_len_overflow:
+59cf 204059e5 call mouse_le_swift_pair_disable 
+59d0 6fe0c8a9 fetch 1 ,mem_le_name_len_temp 
+59d1 1fe0fe01 increase 1 ,pdata 
+59d2 67e0c78c store 1 ,mem_le_adv_swift_pair 
+59d3 70478d09 jam 9 ,mem_le_adv_swift_pair + 1 
+59d4 d8c048aa arg mem_le_name_temp ,contr 
+59d5 d8a0478e arg mem_le_adv_swift_pair + 2 ,contw 
+59d6 1a227200 copy rega ,loopcnt 
+59d7 20407419 call memcpy 
+59d8 6fe0c8a9 fetch 1 ,mem_le_name_len_temp 
+59d9 1fe0fe01 increase 1 ,pdata 
+59da 67e0c340 store 1 ,mem_le_scan_data 
+59db 70434109 jam 9 ,mem_le_scan_data + 1 
+59dc d8c048aa arg mem_le_name_temp ,contr 
+59dd d8a04342 arg mem_le_scan_data + 2 ,contw 
+59de 1a227200 copy rega ,loopcnt 
+59df 20407419 call memcpy 
+59e0 d8c048a9 arg mem_le_name_len_temp ,contr 
+59e1 d8a0422d arg mem_le_name_len ,contw 
+59e2 1a227200 copy rega ,loopcnt 
+59e3 1f20f201 increase 1 ,loopcnt 
+59e4 20207419 branch memcpy 
+
+mouse_le_swift_pair_disable:
+59e5 d8a0478c arg mem_le_adv_swift_pair ,contw 
+59e6 df200014 arg 20 ,loopcnt 
+59e7 202073ec branch clear_mem 
+
+mouse_le_parse_l2cap:
+59e8 6fe1430e fetch 2 ,mem_le_payload_ptr 
+59e9 1fe08c02 add pdata ,2 ,contr 
+59ea efe10006 ifetch 2 ,contr 
+59eb c00259ed beq le_l2cap_cid_att ,mouse_le_parse_att 
+59ec 20204031 branch le_parse_l2cap + 4 
+
+mouse_le_parse_att:
+59ed efe18006 ifetch 3 ,contr 
+59ee 67e1c36e store 3 ,mem_le_att_opcode 
+59ef c00559f2 beq attop_read_request ,mouse_le_parse_att_read_request 
+59f0 c0095a00 beq attop_write_request ,mouse_le_parse_att_write_request 
+59f1 20204331 branch le_parse_att + 2 
+
+mouse_le_parse_att_read_request:
+59f2 6fe44864 fetch mouse_flag_len ,mem_mouse_flag 
+59f3 c31dc445 bbit0 mouse_enable_le_battery_service_cancel ,le_parse_att_read_request 
+59f4 204044ec call le_check_encrypt_state 
+59f5 6849436f fetcht 2 ,mem_le_att_handle 
+59f6 6fe0c2f6 fetch 1 ,mem_le_configuration 
+59f7 c281d9fb bbit1 bit_ble_read_auth ,mouse_le_send_att_read_response_check_auth 
+
+mouse_le_send_att_read_response:
+59f8 6fe1436f fetch 2 ,mem_le_att_handle 
+59f9 c0184528 beq 0x30 ,le_send_att_error_response_notfound 
+59fa 20204449 branch le_send_att_read_response 
+
+mouse_le_send_att_read_response_check_auth:
+59fb 6fe14307 fetch 2 ,mem_le_pairing_handle 
+59fc 98467c00 isub temp ,null 
+59fd 2422d9f8 nbranch mouse_le_send_att_read_response ,zero 
+59fe 243459f8 nbranch mouse_le_send_att_read_response ,user 
+59ff 2020446e branch le_send_att_read_response_error_insufficient_auth 
+
+mouse_le_parse_att_write_request:
+5a00 18c22200 copy contr ,rega 
+5a01 6fe1430a fetch 2 ,mem_le_l2cap_size 
+5a02 1fe0a5fd add pdata ,-3 ,regb 
+5a03 20404072 call le_writeatt_cb 
+5a04 6fe0c77b fetch 1 ,mem_mouse_bluetooth_fast_conn_flag 
+5a05 c07fc4d1 beq 0xff ,le_send_att_write_response_check_auth 
+5a06 6fe0c781 fetch 1 ,mem_mouse_le_reconnect_flag 
+5a07 203a44d1 branch le_send_att_write_response_check_auth ,blank 
+5a08 6fe0c82f fetch 1 ,mem_le_connect_status_flag 
+5a09 c280c4d1 bbit1 ll_start_enc_flag ,le_send_att_write_response_check_auth 
+5a0a 5800001a setarg 0x001a 
+5a0b 6849436f fetcht 2 ,mem_le_att_handle 
+5a0c 98467c00 isub temp ,null 
+5a0d 2422c4d1 nbranch le_send_att_write_response_check_auth ,zero 
+5a0e 2020446e branch le_send_att_read_response_error_insufficient_auth 
+
+mouse_bb_disconnected:
+5a0f 20405a14 call mouse_bb_discon_clear_stack 
+5a10 6fe143a8 fetch app_disc_rsn_size ,mem_app_disconn_reason 
+5a11 c283da1a bbit1 app_disc_ble ,mouse4_0_event_bb_disconn 
+5a12 c2804de8 bbit1 app_disc_by_button ,app_disconn_reason_clear 
+5a13 20205b08 branch mouse_start_discovery 
+
+mouse_bb_discon_clear_stack:
+5a14 58000000 setarg 0 
+5a15 67e44581 store 8 ,mem_wheel_tb_old_pinlevel 
+5a16 e7e20005 istore 4 ,contw 
+5a17 70467500 jam 0 ,mem_mouse_move_flag 
+5a18 70425c00 jam 0 ,mem_ltk_exists 
+5a19 20600000 rtn 
+
+mouse4_0_event_bb_disconn:
+5a1a 20405968 call mouse_le_clean_connect_flag 
+5a1b 6fe143a8 fetch app_disc_rsn_size ,mem_app_disconn_reason 
+5a1c c2804de8 bbit1 app_disc_by_button ,app_disconn_reason_clear 
+5a1d 20205324 branch mouse_app_enter_hibernate 
+
+mouse_bb_event_timer:
+5a1e 44a74009 bpatch patch09_6 ,mem_patch09 
+5a1f 204053c6 call mouse_adc_read 
+5a20 20405f47 call mouse_low_voltage_led_timer 
+5a21 20404907 call g24_pair_timeout_timer 
+5a22 20404ba5 call g24_reconn_timeout_timer 
+5a23 20405d6b call mouse_24g_long_sleep_param_update_timer 
+5a24 20405e9a call mouse_device_poweron_timer 
+5a25 20405ecb call mouse_dpi_led_blink_delay_timer 
+5a26 20405ac1 call mouse_led_multi_timer 
+5a27 20405af3 call mouse_logo_led_on_timer 
+5a28 2040561c call mouse_dpi_key_check_long_press 
+5a29 20405a36 call mouse_bt_discovery_check 
+5a2a 20405a46 call mouse_commbination_key_process 
+5a2b 20405a69 call mouse_check_discovery_timeout_timer 
+5a2c 20405a6e call mouse_check_direct_timeout_timer 
+5a2d 20405a7c call mouse_le_enable_att_list_timer 
+5a2e 20405a8c call mouse_le_battery_updata_timer 
+5a2f 20405a7f call mouse_le_send_smp_security_request_timer 
+5a30 20405a89 call mouse_le_send_conn_param_update_timer 
+5a31 20405a99 call mouse_check_reconnect_delay_long_sleep 
+5a32 20405a9c call mouse_current_mult_update_timer 
+5a33 20405550 call mouse_wheel_trigger_timer 
+5a34 20405aac call mouse_store_information_delay_timer 
+5a35 20205aa3 branch mouse_check_no_data_timeout_timer 
+
+mouse_bt_discovery_check:
+5a36 6fe44864 fetch mouse_flag_len ,mem_mouse_flag 
+5a37 c29bda39 bbit1 mouse_enable_pb_button_long_press_disconvery ,mouse_bt_discovery_by_pb_button 
+5a38 20600000 rtn 
+
+mouse_bt_discovery_by_pb_button:
+5a39 6fe0c857 fetch 1 ,mem_select_device_button_statue 
+5a3a c1808000 rtnne pb_button_state_down 
+5a3b da604854 arg mem_bt_discovery_count ,regc 
+5a3c da405a3e arg mouse_long_button_bt_discovery ,regb 
+5a3d 20204dcc branch timer_single_step 
+
+mouse_long_button_bt_discovery:
+5a3e 6fe0c5e5 fetch 1 ,mem_device_flag 
+5a3f c1000000 rtneq mode_24g_device 
+5a40 6fe44864 fetch mouse_flag_len ,mem_mouse_flag 
+5a41 c3830000 rtnbit1 mouse_bt_discovery_button_long_down_flag 
+5a42 d8e00006 arg mouse_bt_discovery_button_long_down_flag ,queue 
+5a43 20405c8b call mouse_enable_function_flag 
+5a44 20404dbc call app_evt_button_long_pressed 
+5a45 20205b03 branch mouse_bb_event_discovery_btn 
+
+mouse_commbination_key_process:
+5a46 6fe0c5e5 fetch 1 ,mem_device_flag 
+5a47 c0005a4c beq mode_24g_device ,mouse_24g_commbination_key_process 
+5a48 6fe44864 fetch mouse_flag_len ,mem_mouse_flag 
+5a49 c41a8000 rtnbit0 mouse_enable_commbination_key_by_bt_discovery 
+5a4a 6848c882 fetcht 1 ,mem_mouse_commbination_key_bt 
+5a4b 20205a4f branch mouse_commbination_key_start 
+
+mouse_24g_commbination_key_process:
+5a4c 6fe44864 fetch mouse_flag_len ,mem_mouse_flag 
+5a4d c4190000 rtnbit0 mouse_enable_commbination_key_by_24g_pairing 
+5a4e 6848c883 fetcht 1 ,mem_mouse_commbination_key_24g 
+
+mouse_commbination_key_start:
+5a4f 6048c856 storet 1 ,mem_mouse_commbination_key 
+5a50 204056b9 call mouse_check_key_gpio 
+5a51 1fe17e07 and pdata ,0x07 ,pdata 
+5a52 6848c856 fetcht 1 ,mem_mouse_commbination_key 
+5a53 98467c00 isub temp ,null 
+5a54 2022da5b branch mouse_commbination_key_down ,zero 
+
+mouse_commbination_key_up:
+5a55 6fe0c436 fetch 1 ,mem_ui_button_timeout 
+5a56 67e0c859 store 1 ,mem_combination_ui_button_count 
+5a57 6fe0c858 fetch 1 ,mem_commbination_key_statue 
+5a58 c1000000 rtneq commbination_key_state_up 
+5a59 70485800 jam commbination_key_state_up ,mem_commbination_key_statue 
+5a5a 20600000 rtn 
+
+mouse_commbination_key_down:
+5a5b 20405a60 call mouse_combination_ui_timer 
+5a5c 6fe0c858 fetch 1 ,mem_commbination_key_statue 
+5a5d c1008000 rtneq commbination_key_state_down 
+5a5e 70485801 jam commbination_key_state_down ,mem_commbination_key_statue 
+5a5f 20600000 rtn 
+
+mouse_combination_ui_timer:
+5a60 da405dd8 arg mouse_24g_start_pair_mode ,regb 
+5a61 da604859 arg mem_combination_ui_button_count ,regc 
+5a62 6fe0c5e5 fetch 1 ,mem_device_flag 
+5a63 c0004dcc beq mode_24g_device ,timer_single_step 
+5a64 da405a3e arg mouse_long_button_bt_discovery ,regb 
+5a65 20404dcc call timer_single_step 
+5a66 6fe0c859 fetch 1 ,mem_combination_ui_button_count 
+5a67 c000dc7d beq 1 ,mouse_bt_discovery_button_down_enable 
+5a68 20600000 rtn 
+
+mouse_check_discovery_timeout_timer:
+5a69 da60477c arg mem_mouse_discovery_timer ,regc 
+5a6a da405a6c arg mouse_check_discovery_timeout ,regb 
+5a6b 20204dd3 branch timer_single_step_2b 
+
+mouse_check_discovery_timeout:
+5a6c 20405b29 call mouse_stop_discovery 
+5a6d 20205324 branch mouse_app_enter_hibernate 
+
+mouse_check_direct_timeout_timer:
+5a6e da604831 arg mem_mouse_direct_timer ,regc 
+5a6f da405a74 arg mouse_check_direct_timeout ,regb 
+5a70 20404dd3 call timer_single_step_2b 
+5a71 6fe0c831 fetch 1 ,mem_mouse_direct_timer 
+5a72 c000cdff beq 1 ,app_ble_stop_direct_adv 
+5a73 20600000 rtn 
+
+mouse_check_direct_timeout:
+5a74 6fe0c77b fetch 1 ,mem_mouse_bluetooth_fast_conn_flag 
+5a75 c07fd8eb beq 0xff ,mouse_buletooth_fast_conn_end 
+5a76 6fe0c76a fetch 1 ,mem_reconn_times 
+5a77 243a5ca9 nbranch mouse_polling_device ,blank 
+5a78 6fe44864 fetch mouse_flag_len ,mem_mouse_flag 
+5a79 c299db08 bbit1 mouse_enable_bt_reconnect_timeout_enter_discovery ,mouse_start_discovery 
+5a7a c297ddd0 bbit1 mouse_enable_24g_first_auto_pairing ,mouse_24g_first_bb_event_reconn_timeout 
+5a7b 20205324 branch mouse_app_enter_hibernate 
+
+mouse_le_enable_att_list_timer:
+5a7c da604830 arg mem_le_start_encrypt_timer ,regc 
+5a7d da405958 arg mouse_le_write_enable ,regb 
+5a7e 20204dcc branch timer_single_step 
+
+mouse_le_send_smp_security_request_timer:
+5a7f 6fe0c780 fetch 1 ,mem_mouse_le_bb_connected_flag 
+5a80 207a0000 rtn blank 
+5a81 da604782 arg mem_mouse_send_secutiry_request_timer ,regc 
+5a82 da405a84 arg mouse_le_pairing_sm_start_check ,regb 
+5a83 20204dcc branch timer_single_step 
+
+mouse_le_pairing_sm_start_check:
+5a84 6fe0c781 fetch 1 ,mem_mouse_le_reconnect_flag 
+5a85 247a0000 nrtn blank 
+5a86 6fe0c2d1 fetch 1 ,mem_le_pairing_state 
+5a87 c1800000 rtnne flag_le_pairing_null 
+5a88 2020469d branch le_pairing_sm_start 
+
+mouse_le_send_conn_param_update_timer:
+5a89 da6048cb arg mem_mouse_le_send_conn_param_update_timer ,regc 
+5a8a da40593d arg mouse_updata_le_param ,regb 
+5a8b 20204dcc branch timer_single_step 
+
+mouse_le_battery_updata_timer:
+5a8c 6fe44864 fetch mouse_flag_len ,mem_mouse_flag 
+5a8d c39d8000 rtnbit1 mouse_enable_le_battery_service_cancel 
+5a8e da6047ac arg mem_le_battery_level_updata_timer ,regc 
+5a8f da405a91 arg mouse_le_battery_level_updata ,regb 
+5a90 20204dcc branch timer_single_step 
+
+mouse_le_battery_level_updata:
+5a91 6fe147aa fetch 2 ,mem_le_battery_level_updata_timer_init 
+5a92 67e147ac store 2 ,mem_le_battery_level_updata_timer 
+5a93 2020599c branch mouse_fill_battery_level_le 
+
+mouse_le_enable_att_list:
+5a94 6fe0c82f fetch 1 ,mem_le_connect_status_flag 
+5a95 c3810000 rtnbit1 ll_pairing_success_flag 
+5a96 2040593d call mouse_updata_le_param 
+5a97 d8e00000 arg write_req_enable_flag ,queue 
+5a98 20205947 branch mouse_le_enable_connect_flag 
+
+mouse_check_reconnect_delay_long_sleep:
+5a99 da60477e arg mem_mouse_bluetooth_reconnect_timeout ,regc 
+5a9a da405324 arg mouse_app_enter_hibernate ,regb 
+5a9b 20204dcc branch timer_single_step 
+
+mouse_current_mult_update_timer:
+5a9c da604769 arg mem_mouse_current_mult_timer ,regc 
+5a9d da405a9f arg mouse_current_mult_reinit ,regb 
+5a9e 20204dcc branch timer_single_step 
+
+mouse_current_mult_reinit:
+5a9f 6fe0c843 fetch 1 ,mem_lpm_mult_init 
+5aa0 67e0c0c1 store 1 ,mem_lpm_mult 
+5aa1 70476801 jam 1 ,mem_mouse_long_mult_flag 
+5aa2 20600000 rtn 
+
+mouse_check_no_data_timeout_timer:
+5aa3 da60476c arg mem_mouse_no_data_timer ,regc 
+5aa4 da405aa6 arg mouse_check_no_data_timeout ,regb 
+5aa5 20204dd3 branch timer_single_step_2b 
+
+mouse_check_no_data_timeout:
+5aa6 6fe0c5e5 fetch 1 ,mem_device_flag 
+5aa7 c0005d80 beq mode_24g_device ,mouse_24g_hibernate_set 
+5aa8 202058fe branch mouse_disconnect 
+
+mouse_no_data_timer_init:
+5aa9 6fe14876 fetch 2 ,mem_mouse_no_data_timeout 
+5aaa 67e1476c store 2 ,mem_mouse_no_data_timer 
+5aab 20600000 rtn 
+
+mouse_store_information_delay_timer:
+5aac da60466c arg mem_store_information_delay_timer ,regc 
+5aad da405aaf arg mouse_store_device_info_check ,regb 
+5aae 20204dcc branch timer_single_step 
+
+mouse_store_device_info_check:
+5aaf 20405b8f call mouse_store_device_info 
+5ab0 6fe0c77f fetch 1 ,mem_mouse_need_soft_reset 
+5ab1 243a5c5c nbranch mouse_soft_reset ,blank 
+5ab2 20600000 rtn 
+
+mouse_device_multi_led_poweron2s_init:
+5ab3 6fe0c8c3 fetch 1 ,mem_mouse_multi_led_powon2s_timer_init 
+5ab4 67e0c8c4 store 1 ,mem_mouse_multi_led_powon2s_timer 
+5ab5 6fe0c8c1 fetch 1 ,mem_mouse_multi_led_poweron2s_flag_init 
+5ab6 67e0c8c2 store 1 ,mem_mouse_multi_led_poweron2s_flag 
+5ab7 20600000 rtn 
+
+mouse_multi_led_blink_enable:
+5ab8 7048be01 jam 1 ,mem_mouse_multi_led_blink_enable 
+5ab9 7048c001 jam multi_led_blink ,mem_mouse_multi_led_type 
+5aba 6fe0c8c5 fetch 1 ,mem_mouse_multi_led_blink_timer_init 
+5abb 67e0c8c6 store 1 ,mem_mouse_multi_led_blink_timer 
+5abc 20600000 rtn 
+
+mouse_multi_led_on_enable:
+5abd 7048be01 jam 1 ,mem_mouse_multi_led_blink_enable 
+5abe 7048c600 jam 0 ,mem_mouse_multi_led_blink_timer 
+5abf 7048c000 jam multi_led_on ,mem_mouse_multi_led_type 
+5ac0 20600000 rtn 
+
+mouse_led_multi_timer:
+5ac1 6fe0c8be fetch 1 ,mem_mouse_multi_led_blink_enable 
+5ac2 207a0000 rtn blank 
+5ac3 6fe0c8c0 fetch 1 ,mem_mouse_multi_led_type 
+5ac4 c000dad1 beq multi_led_blink ,mouse_multi_led_type_blink 
+
+mouse_multi_led_type_on:
+5ac5 6fe0c8c2 fetch 1 ,mem_mouse_multi_led_poweron2s_flag 
+5ac6 243a5ac9 nbranch mouse_device_multi_led_poweron2s ,blank 
+5ac7 7048be00 jam 0 ,mem_mouse_multi_led_blink_enable 
+5ac8 20600000 rtn 
+
+mouse_device_multi_led_poweron2s:
+5ac9 6fe0c8c4 fetch 1 ,mem_mouse_multi_led_powon2s_timer 
+5aca 203a5ace branch mouse_multi_led_poweron2s_and_flag_off ,blank 
+5acb 1fe0ffff increase -1 
+5acc 67e0c8c4 store 1 ,mem_mouse_multi_led_powon2s_timer 
+5acd 20205ad8 branch mouse_device_multi_led_on 
+
+mouse_multi_led_poweron2s_and_flag_off:
+5ace 7048c200 jam 0 ,mem_mouse_multi_led_poweron2s_flag 
+5acf 7048be00 jam 0 ,mem_mouse_multi_led_blink_enable 
+5ad0 20205ae4 branch mouse_device_multi_led_off 
+
+mouse_multi_led_type_blink:
+5ad1 da6048c6 arg mem_mouse_multi_led_blink_timer ,regc 
+5ad2 da405ad4 arg mouse_multi_led_type_blink_timeout ,regb 
+5ad3 20204dcc branch timer_single_step 
+
+mouse_multi_led_type_blink_timeout:
+5ad4 6fe0c8c5 fetch 1 ,mem_mouse_multi_led_blink_timer_init 
+5ad5 67e0c8c6 store 1 ,mem_mouse_multi_led_blink_timer 
+5ad6 6fe0c8c7 fetch 1 ,mem_mouse_multi_led_state 
+5ad7 c000dae4 beq on ,mouse_device_multi_led_off 
+
+mouse_device_multi_led_on:
+5ad8 7048c701 jam on ,mem_mouse_multi_led_state 
+5ad9 6fe0c5e5 fetch 1 ,mem_device_flag 
+5ada c0005ade beq mode_24g_device ,mouse_device_24g_multi_led_on 
+5adb c000dae0 beq mode_bt_device1 ,mouse_device_bt1_multi_led_on 
+5adc c0015ae2 beq mode_bt_device2 ,mouse_device_bt2_multi_led_on 
+5add 20600000 rtn 
+
+mouse_device_24g_multi_led_on:
+5ade 6848c5d0 fetcht 1 ,mem_mouse_1io2led_multi_24g_gpio 
+5adf 20206b96 branch gpio_out_active 
+
+mouse_device_bt1_multi_led_on:
+5ae0 6848c5d1 fetcht 1 ,mem_mouse_1io2led_multi_bt1_gpio 
+5ae1 20206b96 branch gpio_out_active 
+
+mouse_device_bt2_multi_led_on:
+5ae2 6848c5d2 fetcht 1 ,mem_mouse_1io2led_multi_bt2_gpio 
+5ae3 20206b96 branch gpio_out_active 
+
+mouse_device_multi_led_off:
+5ae4 7048c700 jam off ,mem_mouse_multi_led_state 
+5ae5 6fe0c5e5 fetch 1 ,mem_device_flag 
+5ae6 c0005aea beq mode_24g_device ,mouse_device_24g_multi_led_off 
+5ae7 c000daec beq mode_bt_device1 ,mouse_device_bt1_multi_led_off 
+5ae8 c0015aee beq mode_bt_device2 ,mouse_device_bt2_multi_led_off 
+5ae9 20600000 rtn 
+
+mouse_device_24g_multi_led_off:
+5aea 6848c5d0 fetcht 1 ,mem_mouse_1io2led_multi_24g_gpio 
+5aeb 20206bae branch gpio_set_high_impedance 
+
+mouse_device_bt1_multi_led_off:
+5aec 6848c5d1 fetcht 1 ,mem_mouse_1io2led_multi_bt1_gpio 
+5aed 20206bae branch gpio_set_high_impedance 
+
+mouse_device_bt2_multi_led_off:
+5aee 6848c5d2 fetcht 1 ,mem_mouse_1io2led_multi_bt2_gpio 
+5aef 20206bae branch gpio_set_high_impedance 
+
+mouse_1io2led_all_off:
+5af0 20405aea call mouse_device_24g_multi_led_off 
+5af1 20405aec call mouse_device_bt1_multi_led_off 
+5af2 20205aee branch mouse_device_bt2_multi_led_off 
+
+mouse_logo_led_on_timer:
+5af3 6fe0c5d3 fetch 1 ,mem_mouse_logo_led_gpio 
+5af4 c17f8000 rtneq gpio_disable 
+5af5 6fe1476c fetch 2 ,mem_mouse_no_data_timer 
+5af6 207a0000 rtn blank 
+5af7 6fe14876 fetch 2 ,mem_mouse_no_data_timeout 
+5af8 6849476c fetcht 2 ,mem_mouse_no_data_timer 
+5af9 98460400 isub temp ,temp 
+5afa 6fe148c8 fetch 2 ,mem_mouse_logo_led_on_time_init 
+5afb 98467e00 isub temp ,pdata 
+5afc 20215b01 branch mouse_logo_led_on ,positive 
+
+mouse_logo_led_off:
+5afd 6848c5d3 fetcht 1 ,mem_mouse_logo_led_gpio 
+5afe 6fe0c8bd fetch 1 ,mem_mouse_1io2led_led_enable 
+5aff c000ebae beq 1 ,gpio_set_high_impedance 
+5b00 20206b92 branch gpio_out_inactive 
+
+mouse_logo_led_on:
+5b01 6848c5d3 fetcht 1 ,mem_mouse_logo_led_gpio 
+5b02 20206b96 branch gpio_out_active 
+
+mouse_bb_event_discovery_btn:
+5b03 280ffe26 isolate1 mark_24g ,mark 
+5b04 2040dda6 call mouse_24g_stop ,true 
+5b05 204058fe call mouse_disconnect 
+5b06 20405968 call mouse_le_clean_connect_flag 
+5b07 20205b08 branch mouse_start_discovery 
+
+mouse_start_discovery:
+5b08 44a7c009 bpatch patch09_7 ,mem_patch09 
+5b09 6fe14434 fetch 2 ,mem_ui_state_map 
+5b0a 2feffe0b isolate1 ui_state_ble_adv ,pdata 
+5b0b 2040db2f call mouse_stop_le_adv ,true 
+5b0c 204058f9 call mouse_bluetooth_fast_conn_disable 
+5b0d 6fe14434 fetch 2 ,mem_ui_state_map 
+5b0e c285db17 bbit1 ui_state_ble_adv ,mouse_start_discovery_norandom 
+5b0f 6fe44864 fetch mouse_flag_len ,mem_mouse_flag 
+5b10 c3045b17 bbit0 mouse_enable_ble_random_addre ,mouse_start_discovery_norandom 
+5b11 68494644 fetcht 2 ,mem_random_addr_increase_count 
+5b12 18408401 increase 1 ,temp 
+5b13 60494644 storet 2 ,mem_random_addr_increase_count 
+5b14 604942b1 storet 2 ,mem_le_lap + 1 
+5b15 180a7e00 random pdata 
+5b16 67e0c2b0 store 1 ,mem_le_lap 
+
+mouse_start_discovery_norandom:
+5b17 6fe1c783 fetch 3 ,mem_mouse_le_lap_temp 
+5b18 67e1c2b3 store 3 ,mem_le_lap + 3 
+5b19 20404e19 call app_lpm_mult_disable 
+5b1a 6fe145a6 fetch 2 ,mem_mouse_discovery_timeout 
+5b1b 67e1477c store 2 ,mem_mouse_discovery_timer 
+5b1c 58000000 setarg 0 
+5b1d 67e1476c store 2 ,mem_mouse_no_data_timer 
+5b1e 67e147ac store 2 ,mem_le_battery_level_updata_timer 
+5b1f 67e0c831 store 1 ,mem_mouse_direct_timer 
+5b20 67e0c77e store 1 ,mem_mouse_bluetooth_reconnect_timeout 
+5b21 67e0c860 store 1 ,mem_mouse_device_poweron_timer_count 
+5b22 67e0c766 store 1 ,mem_mouse_clear_sensor_data_flag 
+5b23 d8e00002 arg mouse_store_eeprom_flag ,queue 
+5b24 20405c8b call mouse_enable_function_flag 
+5b25 20405c7f call mouse_bt_discovery_button_down_disable 
+5b26 204059a9 call mouse_check_51cmd_adv 
+5b27 20405f7f call mouse_low_voltage_led_blink_disable 
+5b28 20205e1e branch mouse_device_discover_led_config 
+
+mouse_stop_discovery:
+5b29 44a8400a bpatch patch0a_0 ,mem_patch0a 
+5b2a d8e00006 arg mouse_bt_discovery_button_long_down_flag ,queue 
+5b2b 20405c8f call mouse_disable_function_flag 
+5b2c 70477e00 jam 0 ,mem_mouse_bluetooth_reconnect_timeout 
+5b2d 20405b2f call mouse_stop_le_adv 
+5b2e 20205efb branch mouse_device_led_off 
+
+mouse_stop_le_adv:
+5b2f 58000000 setarg 0 
+5b30 67e0c831 store 1 ,mem_mouse_direct_timer 
+5b31 67e1477c store 2 ,mem_mouse_discovery_timer 
+5b32 20206fc6 branch check_51cmd_stop_adv 
+
+mouse_store_remote_bdaddr:
+5b33 44a8c00a bpatch patch0a_1 ,mem_patch0a 
+5b34 6fe44864 fetch mouse_flag_len ,mem_mouse_flag 
+5b35 c4010000 rtnbit0 mouse_store_eeprom_flag 
+5b36 20405ea2 call mouse_device_poweron_timer_init 
+5b37 d8e00002 arg mouse_store_eeprom_flag ,queue 
+5b38 20405c8f call mouse_disable_function_flag 
+5b39 20405b3c call mouse_check_device_addr 
+
+mouse_unplug_clean_bdaddr:
+5b3a 20405b4b call mouse_before_store_reconn_info 
+5b3b 20205b8c branch mouse_store_device_info_delay 
+
+mouse_check_device_addr:
+5b3c 6fe0802d fetch 1 ,mem_record_bt_mode 
+5b3d c01a5b3f beq rec_4_mode ,mouse_check_le_device_addr 
+5b3e 20600000 rtn 
+
+mouse_check_le_device_addr:
+5b3f 67e0c832 store 1 ,mem_device_addr_temp 
+5b40 6fe30173 fetch 6 ,mem_le_plap 
+
+mouse_check_bt_device_addr_common:
+5b41 67e34833 store 6 ,mem_device_addr_temp + 1 
+5b42 6fe3c832 fetch 7 ,mem_device_addr_temp 
+5b43 d8c045e6 arg mem_device1_type ,contr 
+5b44 df200003 arg 3 ,loopcnt 
+
+mouse_check_device_addr_end:
+5b45 e8438006 ifetcht 7 ,contr 
+5b46 98467c00 isub temp ,null 
+5b47 2022db5b branch mouse_clean_addr ,zero 
+5b48 18c08c16 increase 22 ,contr 
+5b49 c2005b45 loop mouse_check_device_addr_end 
+5b4a 20600000 rtn 
+
+mouse_before_store_reconn_info:
+5b4b da2045e6 arg mem_device1_type ,rega 
+5b4c 6fe0c5e5 fetch 1 ,mem_device_flag 
+5b4d 1fe0ffff increase -1 ,pdata 
+5b4e 1feffe1d mul32 pdata ,29 ,pdata 
+5b4f 9a20a200 iadd rega ,rega 
+5b50 6fe0802d fetch 1 ,mem_record_bt_mode 
+5b51 e7e08011 istore 1 ,rega 
+5b52 c01a5b54 beq rec_4_mode ,mouse_store_le_device 
+5b53 20600000 rtn 
+
+mouse_store_le_device:
+5b54 6fe30173 fetch 6 ,mem_le_plap 
+5b55 e7e30005 istore 6 ,contw 
+5b56 d8c0424c arg mem_le_ltk ,contr 
+5b57 204073d2 call memcpy16 
+5b58 6fe342b0 fetch 6 ,mem_le_lap 
+5b59 e7e30005 istore 6 ,contw 
+5b5a 20600000 rtn 
+
+mouse_clean_addr:
+5b5b 18c08dfa increase -6 ,contr 
+5b5c 18c20a00 copy contr ,contw 
+5b5d 684b4833 fetcht 6 ,mem_device_addr_temp + 1 
+5b5e 18408403 increase 3 ,temp 
+5b5f e0430005 istoret 6 ,contw 
+5b60 20600000 rtn 
+
+mouse_select_reconn_device:
+5b61 da2045e6 arg mem_device1_type ,rega 
+5b62 6fe0c5e5 fetch 1 ,mem_device_flag 
+5b63 c1000000 rtneq mode_24g_device 
+5b64 1fe0ffff increase -1 ,pdata 
+5b65 1feffe1d mul32 pdata ,29 ,pdata 
+5b66 9a20a200 iadd rega ,rega 
+5b67 efe08011 ifetch 1 ,rega 
+5b68 67e0c3ac store 1 ,mem_xrecord_mode 
+5b69 c01a5b6b beq rec_4_mode ,mouse_load_le_device 
+5b6a 20600000 rtn 
+
+mouse_load_le_device:
+5b6b efe30006 ifetch 6 ,contr 
+
+mouse_load_le_device_end:
+5b6c 67e3410f store 6 ,mem_hci_plap 
+5b6d d8a0424c arg mem_le_ltk ,contw 
+5b6e 204073d2 call memcpy16 
+5b6f efe30006 ifetch 6 ,contr 
+5b70 67e342b0 store 6 ,mem_le_lap 
+5b71 20600000 rtn 
+
+mouse_app_initflag_check:
+5b72 6fe1463d fetch 2 ,mem_store_flag 
+5b73 d840aa55 arg eeprom_init_flag ,temp 
+5b74 98467c00 isub temp ,null 
+5b75 2022db80 branch mouse_load_device_info ,zero 
+5b76 6049463d storet 2 ,mem_store_flag 
+5b77 20405b85 call mouse_ble_init_address 
+5b78 6fe0c76e fetch 1 ,mem_device_flag_temp 
+5b79 67e0c5e5 store 1 ,mem_device_flag 
+5b7a 6fe0c5c0 fetch 1 ,mem_config_sensor_dpi 
+5b7b 67e0c63f store 1 ,mem_mouse_dpi 
+5b7c 6fe2452f fetch 4 ,mem_24g_fast_conn_addr 
+5b7d 67e24533 store 4 ,mem_24g_receiver_addr 
+5b7e 67e244da store 4 ,mem_24g_addr 
+5b7f 20600000 rtn 
+
+mouse_load_device_info:
+5b80 20405b61 call mouse_select_reconn_device 
+5b81 6fe24640 fetch 4 ,mem_mouse_24g_addr 
+5b82 67e24533 store 4 ,mem_24g_receiver_addr 
+5b83 67e244da store 4 ,mem_24g_addr 
+5b84 20600000 rtn 
+
+mouse_ble_init_address:
+5b85 6fe342b0 fetch 6 ,mem_le_lap 
+5b86 67e345fd store 6 ,mem_device1_locall_addr 
+5b87 1fe0ff00 add pdata ,0x0100 ,pdata 
+5b88 67e3461a store 6 ,mem_device2_locall_addr 
+5b89 1fe0ff00 add pdata ,0x0100 ,pdata 
+5b8a 67e34637 store 6 ,mem_device3_locall_addr 
+5b8b 20600000 rtn 
+
+mouse_store_device_info_delay:
+5b8c 6fe0c66d fetch 1 ,mem_store_information_delay_timer_init 
+5b8d 67e0c66c store 1 ,mem_store_information_delay_timer 
+5b8e 20600000 rtn 
+
+mouse_store_device_info:
+5b8f 44a9400a bpatch patch0a_2 ,mem_patch0a 
+5b90 6fe44864 fetch mouse_flag_len ,mem_mouse_flag 
+5b91 c289dbdd bbit1 mouse_enable_eeprom ,mouse_store_eeprom_device_info 
+5b92 c2895ba1 bbit1 mouse_enable_flash ,mouse_store_flash_device_info 
+5b93 20600000 rtn 
+
+mouse_load_flash_info_check:
+5b94 2040698c call spid_init_flash 
+5b95 20405ba8 call mouse_spid_flash_release_form_powerdown 
+5b96 20405b9b call mouse_information_flash_parameters 
+5b97 204069b0 call spid_read_flash 
+5b98 20405baf call mouse_spid_flash_powerdown 
+5b99 20405b72 call mouse_app_initflag_check 
+5b9a 20205490 branch mouse_sensor_spi_init 
+
+mouse_information_flash_parameters:
+5b9b 58004665 setarg mem_mouse_information_end 
+5b9c d84045e5 arg mem_mouse_information_start ,temp 
+5b9d 98460400 isub temp ,temp 
+5b9e 6fe1c665 fetch 3 ,mem_flash_base 
+5b9f da2045e5 arg mem_mouse_information_start ,rega 
+5ba0 20600000 rtn 
+
+mouse_store_flash_device_info:
+5ba1 2040698c call spid_init_flash 
+5ba2 20405ba8 call mouse_spid_flash_release_form_powerdown 
+5ba3 20405bbd call mouse_flash_erase_sector 
+5ba4 20405b9b call mouse_information_flash_parameters 
+5ba5 20405bc0 call mouse_spid_write_flash 
+5ba6 20405baf call mouse_spid_flash_powerdown 
+5ba7 20205490 branch mouse_sensor_spi_init 
+
+mouse_spid_flash_release_form_powerdown:
+5ba8 7004ccab jam flash_command_release_from_powerdown ,mem_temp 
+
+mouse_spid_write_flash_cmd:
+5ba9 20406cb5 call delay_nop100 
+5baa 20406992 call spid_unlock_flash 
+5bab da204668 arg mem_write_flash_head_temp ,rega 
+5bac 684884cc fetcht 1 ,mem_temp 
+5bad 20405bb1 call mouse_spid_write_flash_cmd_common 
+5bae 20206cb5 branch delay_nop100 
+
+mouse_spid_flash_powerdown:
+5baf 7004ccb9 jam flash_command_powerdown ,mem_temp 
+5bb0 20205ba9 branch mouse_spid_write_flash_cmd 
+
+mouse_spid_write_flash_cmd_common:
+5bb1 e0408011 istoret 1 ,rega 
+5bb2 1ff10400 rshift16 pdata ,temp 
+5bb3 e0408005 istoret 1 ,contw 
+5bb4 1fec8400 rshift8 pdata ,temp 
+5bb5 e0408005 istoret 1 ,contw 
+5bb6 e7e08005 istore 1 ,contw 
+5bb7 1a227e00 deposit rega 
+5bb8 67f10084 store 2 ,core_spid_txaddr 
+5bb9 58000000 setarg 0 
+5bba 67f10088 store 2 ,core_spid_rxlen 
+5bbb 70800602 jam spid_start ,core_misc_ctrl 
+5bbc 20206953 branch wait_spid_done 
+
+mouse_flash_erase_sector:
+5bbd 6fe1c665 fetch 3 ,mem_flash_base 
+5bbe 67e1c3cb store 3 ,mem_spi_write_addr 
+5bbf 20206966 branch spid_flash_erase_sector + 2 
+
+mouse_spid_write_flash:
+5bc0 1fe22600 copy pdata ,regc 
+5bc1 1a227e00 copy rega ,pdata 
+5bc2 1fe0fffc increase -4 ,pdata 
+5bc3 1fe22400 copy pdata ,regb 
+5bc4 efe20012 ifetch 4 ,regb 
+5bc5 67e24668 store 4 ,mem_write_flash_head_temp 
+5bc6 1a627e00 copy regc ,pdata 
+5bc7 2040699f call spid_write_flash 
+5bc8 6fe24668 fetch 4 ,mem_write_flash_head_temp 
+5bc9 e7e20012 istore 4 ,regb 
+5bca 20600000 rtn 
+
+mouse_flash_power_down:
+5bcb 6fe44864 fetch mouse_flag_len ,mem_mouse_flag 
+5bcc c4090000 rtnbit0 mouse_enable_flash 
+5bcd 20405baf call mouse_spid_flash_powerdown 
+5bce 20406749 call twspi_enable 
+5bcf 6848c3d3 fetcht 1 ,mem_spi_cs_gpio 
+5bd0 20406b92 call gpio_out_inactive 
+5bd1 6848c3d8 fetcht 1 ,mem_spi_hold_gpio 
+5bd2 2020547b branch mouse_gpio_config_input_pd 
+
+mouse_load_eeprom_info_check:
+5bd3 20406a22 call iicd_read_init_pin 
+5bd4 6fe44864 fetch mouse_flag_len ,mem_mouse_flag 
+5bd5 2feffe09 isolate1 mouse_enable_2k_eeprom ,pdata 
+5bd6 2440ea3c ncall clear_eeprom_size_2k ,true 
+5bd7 20405bd9 call mouse_eeprom_load_recon_info 
+5bd8 20205b72 branch mouse_app_initflag_check 
+
+mouse_eeprom_load_recon_info:
+5bd9 d8400080 arg 128 ,temp 
+5bda da2045e5 arg mem_device_flag ,rega 
+5bdb da400000 arg mouse_info_eeprom_offect ,regb 
+5bdc 20206a59 branch iicd_read_eep_data 
+
+mouse_store_eeprom_device_info:
+5bdd d8400080 arg 128 ,temp 
+5bde da2045e5 arg mem_device_flag ,rega 
+5bdf da400000 arg mouse_info_eeprom_offect ,regb 
+5be0 20206a4b branch iicd_write_protect_eep_data 
+
+mouse_store_eerpom_dpi:
+5be1 d8400001 arg 1 ,temp 
+5be2 da20463f arg mem_mouse_dpi ,rega 
+5be3 da40005a arg mouse_dpi_eeprom_offect ,regb 
+5be4 20206a4b branch iicd_write_protect_eep_data 
+
+mouse_load_eeprom_dpi:
+5be5 d8400001 arg 1 ,temp 
+5be6 da20463f arg mem_mouse_dpi ,rega 
+5be7 da40005a arg mouse_dpi_eeprom_offect ,regb 
+5be8 20206a59 branch iicd_read_eep_data 
+
+mouse_idle:
+5be9 44a9c00a bpatch patch0a_3 ,mem_patch0a 
+5bea 20405f81 call mouse_low_voltage_led_no_enter_lpm 
+5beb 20406ff5 call ui_check_paring_button 
+5bec 20405555 call mouse_dpi_check 
+5bed 20405599 call mouse_dpi_another_gpio_check 
+5bee 20405bf2 call mouse_select_device_check 
+5bef 20405c3d call mouse_check_select_device_by_switch 
+5bf0 20405c72 call mouse_bt_button_check 
+5bf1 202054b6 branch mouse_wheel_check 
+
+mouse_select_device_check:
+5bf2 6fe44864 fetch mouse_flag_len ,mem_mouse_flag 
+5bf3 c294dbf7 bbit1 mouse_enable_select_device_by_pb_button ,mouse_select_device_by_pb_button 
+5bf4 c29bdbf7 bbit1 mouse_enable_pb_button_long_press_disconvery ,mouse_select_device_by_pb_button 
+5bf5 20600000 rtn 
+
+mouse_select_device_by_pb_button_check_once:
+5bf6 70484d03 jam 0x03 ,mem_mouse_pbkey_press_status 
+
+mouse_select_device_by_pb_button:
+5bf7 6fe0c5c4 fetch 1 ,mem_config_select_device_button_gpio 
+5bf8 c17f8000 rtneq gpio_disable 
+5bf9 da200000 arg 0 ,rega 
+5bfa 70484f06 jam mouse_pb_key ,mem_mouse_key_temp 
+5bfb 6848c5c4 fetcht 1 ,mem_config_select_device_button_gpio 
+5bfc 20405c07 call mouse_pb_button_check 
+5bfd 67e0c84d store 1 ,mem_mouse_pbkey_press_status 
+5bfe 6fe0c5c3 fetch 1 ,mem_matrix_public_gpio 
+5bff c07fdc04 beq gpio_disable ,mouse_3io6key_pb_button_check_end 
+5c00 20405710 call mouse_matrix_public_gpio_reset 
+
+mouse_select_device_by_pb_button_exit:
+5c01 1a227e00 copy rega ,pdata 
+5c02 c2835c28 bbit1 mouse_pb_key ,mouse_select_device_button_down 
+5c03 20205c1d branch mouse_select_device_button_up 
+
+mouse_3io6key_pb_button_check_end:
+5c04 6848c5c4 fetcht 1 ,mem_config_select_device_button_gpio 
+5c05 2040547f call mouse_gpio_config_input_pu 
+5c06 20205c01 branch mouse_select_device_by_pb_button_exit 
+
+mouse_pb_button_check:
+5c07 6fe44864 fetch mouse_flag_len ,mem_mouse_flag 
+5c08 c296dc13 bbit1 mouse_enable_pb_button_connect_gnd ,mouse_pb_button_connect_gnd 
+5c09 6fe0c84d fetch 1 ,mem_mouse_pbkey_press_status 
+5c0a 1fe22600 copy pdata ,regc 
+5c0b 6fe0c5c3 fetch 1 ,mem_matrix_public_gpio 
+5c0c c07fd747 beq gpio_disable ,mouse_3io6key_check 
+5c0d 6fe0c853 fetch 1 ,mem_mouse_ghost_flag 
+5c0e 243a5c10 nbranch mouse_select_device_by_pb_button_end ,blank 
+5c0f 20205c15 branch mouse_pb_button_connect_matrix 
+
+mouse_select_device_by_pb_button_end:
+5c10 70485700 jam pb_button_state_up ,mem_select_device_button_statue 
+5c11 70484d00 jam 0 ,mem_mouse_pbkey_press_status 
+5c12 20600000 rtn 
+
+mouse_pb_button_connect_gnd:
+5c13 6fe0c84d fetch 1 ,mem_mouse_pbkey_press_status 
+5c14 2020573b branch mouse_check_key_connect_gnd 
+
+mouse_pb_button_connect_matrix:
+5c15 20406b85 call gpio_get_bit 
+5c16 6848c5c3 fetcht 1 ,mem_matrix_public_gpio 
+5c17 2020dc13 branch mouse_pb_button_connect_gnd ,true 
+5c18 6848c5c3 fetcht 1 ,mem_matrix_public_gpio 
+5c19 20406b96 call gpio_out_active 
+5c1a 6848c5c4 fetcht 1 ,mem_config_select_device_button_gpio 
+5c1b 6fe0c84d fetch 1 ,mem_mouse_pbkey_press_status 
+5c1c 2020573b branch mouse_check_key_connect_gnd 
+
+mouse_select_device_button_up:
+5c1d 6fe0c857 fetch 1 ,mem_select_device_button_statue 
+5c1e c1000000 rtneq pb_button_state_up 
+5c1f 70485700 jam pb_button_state_up ,mem_select_device_button_statue 
+5c20 6fe44864 fetch mouse_flag_len ,mem_mouse_flag 
+5c21 c39a0000 rtnbit1 mouse_enable_pb_button_short_press_enter_discovery 
+5c22 6fe0c854 fetch 1 ,mem_bt_discovery_count 
+5c23 1fe67c14 sub pdata ,20 ,null 
+5c24 24415c52 ncall mouse_ready_reconnection_by_button ,positive 
+5c25 6fe0c436 fetch 1 ,mem_ui_button_timeout 
+5c26 67e0c854 store 1 ,mem_bt_discovery_count 
+5c27 20600000 rtn 
+
+mouse_select_device_button_down:
+5c28 44aa400a bpatch patch0a_4 ,mem_patch0a 
+5c29 20405c35 call mouse_select_device_ghost_check 
+5c2a 20740000 rtn user 
+5c2b 6fe0c857 fetch 1 ,mem_select_device_button_statue 
+5c2c c1008000 rtneq pb_button_state_down 
+5c2d 70485701 jam pb_button_state_down ,mem_select_device_button_statue 
+5c2e 6fe44864 fetch mouse_flag_len ,mem_mouse_flag 
+5c2f c29a5a3e bbit1 mouse_enable_pb_button_short_press_enter_discovery ,mouse_long_button_bt_discovery 
+5c30 6fe0c831 fetch 1 ,mem_mouse_direct_timer 
+5c31 207a0000 rtn blank 
+5c32 6fe0c5aa fetch 1 ,mem_mouse_direct_timeout 
+5c33 67e0c831 store 1 ,mem_mouse_direct_timer 
+5c34 20600000 rtn 
+
+mouse_select_device_ghost_check:
+5c35 78547c00 disable user 
+5c36 6fe44864 fetch mouse_flag_len ,mem_mouse_flag 
+5c37 c3968000 rtnbit1 mouse_enable_pb_button_connect_gnd 
+5c38 6fe0c847 fetch 1 ,mem_mouse_lkey_press_status 
+5c39 207a0000 rtn blank 
+5c3a 6fe0c848 fetch 1 ,mem_mouse_rkey_press_status 
+5c3b 207a0000 rtn blank 
+5c3c 202074c8 branch enable_user 
+
+mouse_check_select_device_by_switch:
+5c3d 6fe44864 fetch mouse_flag_len ,mem_mouse_flag 
+5c3e c2955c41 bbit1 mouse_enable_select_device_by_switch_gpio ,mouse_check_select_device_by_switch_gpio 
+5c3f c295d3c6 bbit1 mouse_enable_select_device_by_switch_adc ,mouse_adc_read 
+5c40 20600000 rtn 
+
+mouse_check_select_device_by_switch_gpio:
+5c41 6848c5c7 fetcht 1 ,mem_device_switch_gpio 
+5c42 2040547f call mouse_gpio_config_input_pu 
+5c43 6848c5c7 fetcht 1 ,mem_device_switch_gpio 
+5c44 20406b85 call gpio_get_bit 
+5c45 2020dc4a branch mouse_check_select_24gdevice ,true 
+
+mouse_select_btdevice:
+5c46 6fe0c5e5 fetch 1 ,mem_device_flag 
+5c47 c1008000 rtneq mode_bt_device1 
+5c48 7045e501 jam mode_bt_device1 ,mem_device_flag 
+5c49 202058fb branch mouse_stop_bluetooth_mode 
+
+mouse_check_select_24gdevice:
+5c4a 6fe44864 fetch mouse_flag_len ,mem_mouse_flag 
+5c4b c315dc4e bbit0 mouse_enable_select_device_by_switch_adc ,mouse_check_select_24g_device 
+5c4c 6fe34597 fetch 6 ,mem_mouse_vdd_switch_gnd_full_vol 
+5c4d 67e3458b store 6 ,mem_mouse_vdd_calculate_set 
+
+mouse_check_select_24g_device:
+5c4e 6fe0c5e5 fetch 1 ,mem_device_flag 
+5c4f c1000000 rtneq mode_24g_device 
+5c50 7045e500 jam mode_24g_device ,mem_device_flag 
+5c51 20205da6 branch mouse_24g_stop 
+
+mouse_ready_reconnection_by_button:
+5c52 44aac00a bpatch patch0a_5 ,mem_patch0a 
+5c53 6fe0c86c fetch 1 ,mem_device_number 
+5c54 c1008000 rtneq 1 
+5c55 20405c5e call mouse_select_device_number 
+5c56 6048c5e5 storet 1 ,mem_device_flag 
+
+mouse_store_device_number_before_reset:
+5c57 20405c75 call mouse_select_device_enable 
+5c58 204058fb call mouse_stop_bluetooth_mode 
+5c59 20405c77 call mouse_select_device_disable 
+5c5a 70477f01 jam 1 ,mem_mouse_need_soft_reset 
+5c5b 20205b8c branch mouse_store_device_info_delay 
+
+mouse_soft_reset:
+5c5c 20405c75 call mouse_select_device_enable 
+5c5d 20206a09 branch soft_reset_chip 
+
+mouse_select_device_number:
+5c5e 6848c5e5 fetcht 1 ,mem_device_flag 
+5c5f 18408401 increase 1 ,temp 
+5c60 6fe44864 fetch mouse_flag_len ,mem_mouse_flag 
+5c61 c288dc65 bbit1 mouse_enable_24g ,mouse_select_device_number_24g 
+5c62 18467c02 sub temp ,2 ,null 
+5c63 24415c6c ncall mouse_select_device_count_clean_bt ,positive 
+5c64 20600000 rtn 
+
+mouse_select_device_number_24g:
+5c65 6fe0c86c fetch 1 ,mem_device_number 
+5c66 1fe0ffff increase -1 ,pdata 
+5c67 98467c00 isub temp ,null 
+5c68 24415c6a ncall mouse_select_device_count_clean_24g ,positive 
+5c69 20600000 rtn 
+
+mouse_select_device_count_clean_24g:
+5c6a d8400000 arg 0 ,temp 
+5c6b 20600000 rtn 
+
+mouse_select_device_count_clean_bt:
+5c6c d8400001 arg 1 ,temp 
+5c6d 20600000 rtn 
+
+mouse_store_device_number2eeprom:
+5c6e d8400001 arg 1 ,temp 
+5c6f da2045e5 arg mem_device_flag ,rega 
+5c70 da400000 arg 0 ,regb 
+5c71 20206a4b branch iicd_write_protect_eep_data 
+
+mouse_bt_button_check:
+5c72 6fe44864 fetch mouse_flag_len ,mem_mouse_flag 
+5c73 c41a0000 rtnbit0 mouse_enable_pb_button_short_press_enter_discovery 
+5c74 20205bf7 branch mouse_select_device_by_pb_button 
+
+mouse_select_device_enable:
+5c75 d8e00000 arg mouse_select_device_flag ,queue 
+5c76 20205c8b branch mouse_enable_function_flag 
+
+mouse_select_device_disable:
+5c77 d8e00000 arg mouse_select_device_flag ,queue 
+5c78 20205c8f branch mouse_disable_function_flag 
+
+mouse_bt_cannel_reconn_enable:
+5c79 d8e00003 arg mouse_bt_cannel_reconn_flag ,queue 
+5c7a 20205c8b branch mouse_enable_function_flag 
+
+mouse_bt_cannel_reconn_disable:
+5c7b d8e00003 arg mouse_bt_cannel_reconn_flag ,queue 
+5c7c 20205c8f branch mouse_disable_function_flag 
+
+mouse_bt_discovery_button_down_enable:
+5c7d d8e00005 arg mouse_bt_discovery_button_down_flag ,queue 
+5c7e 20205c8b branch mouse_enable_function_flag 
+
+mouse_bt_discovery_button_down_disable:
+5c7f d8e00005 arg mouse_bt_discovery_button_down_flag ,queue 
+5c80 20205c8f branch mouse_disable_function_flag 
+
+mouse_adc_read_enable:
+5c81 d8e00014 arg mouse_enable_adc ,queue 
+5c82 20205c8b branch mouse_enable_function_flag 
+
+mouse_24g_set_250hz:
+5c83 d8e00018 arg mouse_enable_24g_250hz ,queue 
+5c84 20205c8b branch mouse_enable_function_flag 
+
+mouse_24g_search_dongle_enable:
+5c85 d8e00016 arg mouse_enable_24g_search_dongle ,queue 
+5c86 20205c8b branch mouse_enable_function_flag 
+
+mouse_16m_enable:
+5c87 d8e0000c arg mouse_enable_16m ,queue 
+5c88 20205c8b branch mouse_enable_function_flag 
+
+mouse_dpi_4level_enable:
+5c89 d8e0001c arg mouse_enable_dpi_level_4 ,queue 
+5c8a 20205c8b branch mouse_enable_function_flag 
+
+mouse_enable_function_flag:
+5c8b 6fe44864 fetch mouse_flag_len ,mem_mouse_flag 
+5c8c f9207e00 qset1 pdata 
+5c8d 67e44864 store mouse_flag_len ,mem_mouse_flag 
+5c8e 20600000 rtn 
+
+mouse_disable_function_flag:
+5c8f 6fe44864 fetch mouse_flag_len ,mem_mouse_flag 
+5c90 f93ffe00 qset0 pdata 
+5c91 67e44864 store mouse_flag_len ,mem_mouse_flag 
+5c92 20600000 rtn 
+
+mouse_customer_key_enable:
+5c93 d8e00015 arg mouse_enable_keyboard ,queue 
+5c94 20405c8b call mouse_enable_function_flag 
+5c95 58000000 setarg 0 
+5c96 67e44884 store 8 ,mem_customer_key_press 
+5c97 67e4488d store 8 ,mem_customer_key_release 
+5c98 6fe0c5b2 fetch 1 ,mem_mouse_enable_flag 
+5c99 1fe17ec0 and pdata ,0xc0 ,pdata 
+5c9a c0205ca0 beq 0x40 ,mouse_customer_key_ctrl_alt_a 
+5c9b c0405ca2 beq 0x80 ,mouse_customer_ac_home 
+5c9c c0605ca7 beq 0xc0 ,mouse_customer_key_play 
+5c9d 58070008 setarg 0x070008 
+
+mouse_customer_standrad_key_set:
+5c9e 67e44885 store 8 ,mem_customer_key_press + 1 
+5c9f 20600000 rtn 
+
+mouse_customer_key_ctrl_alt_a:
+5ca0 58040005 setarg 0x040005 
+5ca1 20205c9e branch mouse_customer_standrad_key_set 
+
+mouse_customer_ac_home:
+5ca2 58022303 setarg 0x022303 
+
+mouse_customer_media_key_set:
+5ca3 67e44884 store 8 ,mem_customer_key_press 
+5ca4 58000003 setarg 0x03 
+5ca5 67e4488d store 8 ,mem_customer_key_release 
+5ca6 20600000 rtn 
+
+mouse_customer_key_play:
+5ca7 5800cd03 setarg 0x00cd03 
+5ca8 20205ca3 branch mouse_customer_media_key_set 
+
+mouse_polling_device:
+5ca9 44ab400a bpatch patch0a_6 ,mem_patch0a 
+5caa 6fe0c76a fetch 1 ,mem_reconn_times 
+5cab 1fe0ffff increase -1 ,pdata 
+5cac 67e0c76a store 1 ,mem_reconn_times 
+5cad 6848c5e5 fetcht 1 ,mem_device_flag 
+5cae 18467c01 sub temp ,1 ,null 
+5caf 2442dc5e ncall mouse_select_device_number ,zero 
+5cb0 6048c5e5 storet 1 ,mem_device_flag 
+5cb1 20405c6e call mouse_store_device_number2eeprom 
+5cb2 20405b4b call mouse_before_store_reconn_info 
+5cb3 202052f2 branch mouse_start_reconnect_device 
+
+mouse_drawing_optima:
+5cb4 44abc00a bpatch patch0a_7 ,mem_patch0a 
+5cb5 6fe0c5d4 fetch 1 ,mem_config_sensor_type 
+5cb6 c1018000 rtneq p3212 
+5cb7 6fe44864 fetch mouse_flag_len ,mem_mouse_flag 
+5cb8 c41c0000 rtnbit0 mouse_enable_smoother 
+5cb9 6fe24579 fetch 4 ,mem_mouse_x 
+5cba 207a0000 rtn blank 
+5cbb 20405d5b call mouse_data_abs_check 
+5cbc 58000003 setarg 0x03 
+5cbd 20405d51 call mouse_pdata_greater_than_check 
+5cbe 205a5d4d call mouse_disable_asm ,blank 
+5cbf 245a5d4f ncall mouse_enable_asm ,blank 
+5cc0 58000002 setarg 0x02 
+5cc1 20405d56 call mouse_data_less_than_check 
+5cc2 205a5d4d call mouse_disable_asm ,blank 
+5cc3 6fe0c676 fetch 1 ,mem_mouse_asm_flag 
+5cc4 c000dcca beq 1 ,mouse_drawing_optima_modify 
+
+mouse_drawing_optima_init:
+5cc5 6fe44864 fetch mouse_flag_len ,mem_mouse_flag 
+5cc6 c41c0000 rtnbit0 mouse_enable_smoother 
+5cc7 df200005 arg 5 ,loopcnt 
+5cc8 d8a04676 arg mem_mouse_asm_flag ,contw 
+5cc9 202073ec branch clear_mem 
+
+mouse_drawing_optima_modify:
+5cca 20405cde call mouse_drawing_optima_xy_offset_modify 
+5ccb 6fe14677 fetch 2 ,mem_mouse_x_pre 
+5ccc 67e10902 store 2 ,mem_data_pre 
+5ccd 6fe14579 fetch 2 ,mem_mouse_x 
+5cce 67e10904 store 2 ,mem_data_current 
+5ccf 20405d17 call mouse_drawing_optima_data_x 
+5cd0 6fe10902 fetch 2 ,mem_data_pre 
+5cd1 67e14677 store 2 ,mem_mouse_x_pre 
+5cd2 6fe10904 fetch 2 ,mem_data_current 
+5cd3 67e14579 store 2 ,mem_mouse_x 
+5cd4 6fe14679 fetch 2 ,mem_mouse_y_pre 
+5cd5 67e10902 store 2 ,mem_data_pre 
+5cd6 6fe1457b fetch 2 ,mem_mouse_y 
+5cd7 67e10904 store 2 ,mem_data_current 
+5cd8 20405d1f call mouse_drawing_optima_data_y 
+5cd9 6fe10902 fetch 2 ,mem_data_pre 
+5cda 67e14679 store 2 ,mem_mouse_y_pre 
+5cdb 6fe10904 fetch 2 ,mem_data_current 
+5cdc 67e1457b store 2 ,mem_mouse_y 
+5cdd 20600000 rtn 
+
+mouse_drawing_optima_xy_offset_modify:
+5cde 6fe44864 fetch mouse_flag_len ,mem_mouse_flag 
+5cdf c41c8000 rtnbit0 mouse_enable_xy_offset 
+5ce0 44ac400b bpatch patch0b_0 ,mem_patch0b 
+5ce1 6fe14677 fetch 2 ,mem_mouse_x_pre 
+5ce2 67e10909 store 2 ,mem_data_value 
+5ce3 20405cf2 call mouse_pre_xy_data_judge 
+5ce4 67e14677 store 2 ,mem_mouse_x_pre 
+5ce5 6fe14579 fetch 2 ,mem_mouse_x 
+5ce6 67e10909 store 2 ,mem_data_value 
+5ce7 20405d00 call mouse_current_xy_data_judge 
+5ce8 67e14579 store 2 ,mem_mouse_x 
+5ce9 6fe14679 fetch 2 ,mem_mouse_y_pre 
+5cea 67e10909 store 2 ,mem_data_value 
+5ceb 20405cf2 call mouse_pre_xy_data_judge 
+5cec 67e14679 store 2 ,mem_mouse_y_pre 
+5ced 6fe1457b fetch 2 ,mem_mouse_y 
+5cee 67e10909 store 2 ,mem_data_value 
+5cef 20405d00 call mouse_current_xy_data_judge 
+5cf0 67e1457b store 2 ,mem_mouse_y 
+5cf1 20600000 rtn 
+
+mouse_pre_xy_data_judge:
+5cf2 6fe0890a fetch 1 ,mem_data_value + 1 
+5cf3 203a5cf5 branch mouse_pre_xy_pdata_offset ,blank 
+5cf4 20205cfa branch mouse_pre_xy_ndata_offset 
+
+mouse_pre_xy_pdata_offset:
+5cf5 6fe08909 fetch 1 ,mem_data_value 
+5cf6 20405d0d call mouse_pre_xy_get_0_4_times 
+5cf7 67e08909 store 1 ,mem_data_value 
+
+mouse_xy_data_offset_new:
+5cf8 6fe10909 fetch 2 ,mem_data_value 
+5cf9 20600000 rtn 
+
+mouse_pre_xy_ndata_offset:
+5cfa 6fe08909 fetch 1 ,mem_data_value 
+5cfb 20405d49 call mouse_pdata_invert 
+5cfc 20405d0d call mouse_pre_xy_get_0_4_times 
+5cfd 205a74d6 call disable_blank ,blank 
+5cfe 20405d45 call mouse_pdata_get_new_value 
+5cff 20205cf8 branch mouse_xy_data_offset_new 
+
+mouse_current_xy_data_judge:
+5d00 6fe0890a fetch 1 ,mem_data_value + 1 
+5d01 203a5d03 branch mouse_current_xy_pdata_offset ,blank 
+5d02 20205d07 branch mouse_current_xy_ndata_offset 
+
+mouse_current_xy_pdata_offset:
+5d03 6fe08909 fetch 1 ,mem_data_value 
+5d04 20405d12 call mouse_current_xy_get_0_6_times 
+5d05 67e08909 store 1 ,mem_data_value 
+5d06 20205cf8 branch mouse_xy_data_offset_new 
+
+mouse_current_xy_ndata_offset:
+5d07 6fe08909 fetch 1 ,mem_data_value 
+5d08 20405d49 call mouse_pdata_invert 
+5d09 20405d12 call mouse_current_xy_get_0_6_times 
+5d0a 205a74d6 call disable_blank ,blank 
+5d0b 20405d45 call mouse_pdata_get_new_value 
+5d0c 20205cf8 branch mouse_xy_data_offset_new 
+
+mouse_pre_xy_get_0_4_times:
+5d0d 1feffe04 mul32 pdata ,4 ,pdata 
+5d0e 1fe6fc05 div pdata ,5 
+5d0f 20407475 call wait_div_end 
+5d10 1807fe00 quotient pdata 
+5d11 20600000 rtn 
+
+mouse_current_xy_get_0_6_times:
+5d12 1feffe0c mul32 pdata ,12 ,pdata 
+5d13 1fe6fc0a div pdata ,10 
+5d14 20407475 call wait_div_end 
+5d15 1807fe00 quotient pdata 
+5d16 20600000 rtn 
+
+mouse_drawing_optima_data_x:
+5d17 6fe10902 fetch 2 ,mem_data_pre 
+5d18 68490904 fetcht 2 ,mem_data_current 
+5d19 9840fe00 iadd temp ,pdata 
+5d1a 6848c67b fetcht 1 ,mem_mouse_data_xtemp 
+5d1b 9840fe00 iadd temp ,pdata 
+5d1c 1fe10401 and pdata ,0x01 ,temp 
+5d1d 6048c67b storet 1 ,mem_mouse_data_xtemp 
+5d1e 20205d27 branch mouse_drawing_optima_data 
+
+mouse_drawing_optima_data_y:
+5d1f 6fe10902 fetch 2 ,mem_data_pre 
+5d20 68490904 fetcht 2 ,mem_data_current 
+5d21 9840fe00 iadd temp ,pdata 
+5d22 6848c67c fetcht 1 ,mem_mouse_data_ytemp 
+5d23 9840fe00 iadd temp ,pdata 
+5d24 1fe10401 and pdata ,0x01 ,temp 
+5d25 6048c67c storet 1 ,mem_mouse_data_ytemp 
+5d26 20205d27 branch mouse_drawing_optima_data 
+
+mouse_drawing_optima_data:
+5d27 67e18906 store 3 ,mem_data_sum 
+5d28 2feffe10 isolate1 16 ,pdata 
+5d29 2020dd31 branch mouse_data_sum_overflow ,true 
+5d2a 6fe08907 fetch 1 ,mem_data_sum + 1 
+5d2b c07fdd38 beq 0xff ,mouse_data_sum_n 
+5d2c 6fe08906 fetch 1 ,mem_data_sum 
+
+mouse_data_store_pre:
+5d2d 1fe37e00 rshift pdata ,pdata 
+5d2e 67e10902 store 2 ,mem_data_pre 
+5d2f 67e10904 store 2 ,mem_data_current 
+5d30 20600000 rtn 
+
+mouse_data_sum_overflow:
+5d31 6fe08907 fetch 1 ,mem_data_sum + 1 
+5d32 c0005d35 beq 0 ,mouse_data_sum_overflow_p 
+5d33 6fe18906 fetch 3 ,mem_data_sum 
+5d34 20205d2d branch mouse_data_store_pre 
+
+mouse_data_sum_overflow_p:
+5d35 70090800 jam 0 ,mem_data_sum + 2 
+5d36 6fe08906 fetch 1 ,mem_data_sum 
+5d37 20205d2d branch mouse_data_store_pre 
+
+mouse_data_sum_n:
+5d38 6fe08906 fetch 1 ,mem_data_sum 
+5d39 20405d43 call mouse_pdata_get_half 
+5d3a 67e08902 store 1 ,mem_data_pre 
+5d3b 67e08904 store 1 ,mem_data_current 
+5d3c 203a5d41 branch mouse_data_zero ,blank 
+5d3d 580000ff setarg 0xff 
+
+mouse_data_set_direction:
+5d3e 67e08903 store 1 ,mem_data_pre + 1 
+5d3f 67e08905 store 1 ,mem_data_current + 1 
+5d40 20600000 rtn 
+
+mouse_data_zero:
+5d41 58000000 setarg 0 
+5d42 20205d3e branch mouse_data_set_direction 
+
+mouse_pdata_get_half:
+5d43 20405d49 call mouse_pdata_invert 
+5d44 1fe37e00 rshift pdata ,pdata 
+
+mouse_pdata_get_new_value:
+5d45 20405d4a call mouse_rega_in_out 
+5d46 1fe67e00 sub pdata ,0 ,pdata 
+5d47 67e08909 store 1 ,mem_data_value 
+5d48 20600000 rtn 
+
+mouse_pdata_invert:
+5d49 1fe67e00 sub pdata ,0 ,pdata 
+
+mouse_rega_in_out:
+5d4a 67e084d8 store 1 ,mem_rega 
+5d4b 6fe084d8 fetch 1 ,mem_rega 
+5d4c 20600000 rtn 
+
+mouse_disable_asm:
+5d4d 70467600 jam 0 ,mem_mouse_asm_flag 
+5d4e 20600000 rtn 
+
+mouse_enable_asm:
+5d4f 70467601 jam 1 ,mem_mouse_asm_flag 
+5d50 20600000 rtn 
+
+mouse_pdata_greater_than_check:
+5d51 9a267c00 isub rega ,null 
+5d52 242174d6 nbranch disable_blank ,positive 
+5d53 9a467c00 isub regb ,null 
+5d54 242174d6 nbranch disable_blank ,positive 
+5d55 202074d8 branch enable_blank 
+
+mouse_data_less_than_check:
+5d56 9a267c00 isub rega ,null 
+5d57 24610000 nrtn positive 
+5d58 9a467c00 isub regb ,null 
+5d59 24610000 nrtn positive 
+5d5a 202074d8 branch enable_blank 
+
+mouse_data_abs_check:
+5d5b 6fe14579 fetch 2 ,mem_mouse_x 
+5d5c 20405d62 call mouse_data_abs 
+5d5d 1fe22200 copy pdata ,rega 
+5d5e 6fe1457b fetch 2 ,mem_mouse_y 
+5d5f 20405d62 call mouse_data_abs 
+5d60 1fe22400 copy pdata ,regb 
+5d61 20600000 rtn 
+
+mouse_data_abs:
+5d62 67e10904 store 2 ,mem_data_current 
+5d63 6fe08905 fetch 1 ,mem_data_current + 1 
+5d64 c07fdd68 beq 0xff ,mouse_data_reversal 
+5d65 6fe08904 fetch 1 ,mem_data_current 
+
+mouse_data_abs_store:
+5d66 1fe17eff and_into 0xff ,pdata 
+5d67 20600000 rtn 
+
+mouse_data_reversal:
+5d68 6fe10904 fetch 2 ,mem_data_current 
+5d69 1fe67e00 sub pdata ,0 ,pdata 
+5d6a 20205d66 branch mouse_data_abs_store 
+
+mouse_24g_long_sleep_param_update_timer:
+5d6b da60456a arg mem_24g_long_sleep_param_update_timer ,regc 
+5d6c da405d6e arg mouse_24g_long_sleep_normal_param ,regb 
+5d6d 20204dcc branch timer_single_step 
+
+mouse_24g_long_sleep_normal_param:
+5d6e 6fe2455e fetch 4 ,mem_24g_long_sleep_set1 
+5d6f 67e244fa store 4 ,mem_24g_enter_hibernate 
+5d70 70476801 jam 1 ,mem_mouse_long_mult_flag 
+5d71 20600000 rtn 
+
+mouse_24g_long_sleep_set:
+5d72 6fe0c89a fetch 1 ,mem_24g_long_sleep_set_level 
+5d73 c0005d7a beq 0x00 ,mouse_24g_long_sleep_set_30ms 
+5d74 c000dd7c beq 0x01 ,mouse_24g_long_sleep_set_50ms 
+5d75 c0015d77 beq 0x02 ,mouse_24g_long_sleep_set_80ms 
+5d76 c001dd7e beq 0x03 ,mouse_24g_long_sleep_set_100ms 
+
+mouse_24g_long_sleep_set_80ms:
+5d77 580ea600 setarg 0x0ea600 
+
+mouse_24g_long_sleep_set_end:
+5d78 67e2455e store 4 ,mem_24g_long_sleep_set1 
+5d79 20600000 rtn 
+
+mouse_24g_long_sleep_set_30ms:
+5d7a 5805e740 setarg 0x05e740 
+5d7b 20205d78 branch mouse_24g_long_sleep_set_end 
+
+mouse_24g_long_sleep_set_50ms:
+5d7c 580927c0 setarg 0x0927c0 
+5d7d 20205d78 branch mouse_24g_long_sleep_set_end 
+
+mouse_24g_long_sleep_set_100ms:
+5d7e 58124f80 setarg 0x124f80 
+5d7f 20205d78 branch mouse_24g_long_sleep_set_end 
+
+mouse_24g_hibernate_set:
+5d80 44acc00b bpatch patch0b_1 ,mem_patch0b 
+5d81 70454b00 jam 0 ,mem_24g_attempt_fail_flag 
+5d82 20404ca6 call g24_transmit_next_packet 
+5d83 5fffffff setarg -1 
+5d84 67e244fa store 4 ,mem_24g_enter_hibernate 
+5d85 58000000 setarg 0 
+5d86 67e3c578 store 7 ,mem_mouse_key 
+5d87 70489901 jam 1 ,mem_sensor_shutdown_flag 
+5d88 2040583e call mouse_sensor_powerdown 
+5d89 20405338 call mouse_setgpio_hibernate 
+5d8a 20205fa2 branch mouse_24g_long_sleep 
+
+mouse_wakeup_24g:
+5d8b 6fe0c899 fetch 1 ,mem_sensor_shutdown_flag 
+5d8c 245a5d8f ncall mouse_wakeup_24g_from_long_sleep ,blank 
+5d8d 70489900 jam 0 ,mem_sensor_shutdown_flag 
+5d8e 20600000 rtn 
+
+mouse_wakeup_24g_from_long_sleep:
+5d8f 204057a3 call mouse_init_sensor_wakeup 
+5d90 6fe44864 fetch mouse_flag_len ,mem_mouse_flag 
+5d91 c41e0000 rtnbit0 mouse_enable_wheel_wake_up_cancel 
+
+mouse_wheel_gpio_init:
+5d92 6fe0c5b9 fetch 1 ,mem_whee_a_data_gpio 
+5d93 d8400040 arg gpcfg_pullup ,temp 
+5d94 20406bbd call gpio_config_function_int 
+5d95 6fe0c5ba fetch 1 ,mem_whee_b_data_gpio 
+5d96 d8400040 arg gpcfg_pullup ,temp 
+5d97 20206bbd branch gpio_config_function_int 
+
+mouse_24g_transmit_start:
+5d98 20405d9c call mouse_24g_fast_conn_mode_check 
+5d99 6fe0c899 fetch 1 ,mem_sensor_shutdown_flag 
+5d9a 243a5fad nbranch mouse_24g_short_sleep ,blank 
+5d9b 20204c6f branch g24_transmit_start_next 
+
+mouse_24g_fast_conn_mode_check:
+5d9c 6fe24533 fetch 4 ,mem_24g_receiver_addr 
+5d9d 684a452f fetcht 4 ,mem_24g_fast_conn_addr 
+5d9e 98467c00 isub temp ,null 
+5d9f 2022dda1 branch mouse_soft_agc_enable ,zero 
+5da0 20205da4 branch mouse_soft_agc_disable 
+
+mouse_soft_agc_enable:
+5da1 70411800 jam 0 ,mem_gain_fix 
+5da2 704116aa jam tx_power_factory ,mem_tx_power 
+5da3 20600000 rtn 
+
+mouse_soft_agc_disable:
+5da4 704118ff jam 0xff ,mem_gain_fix 
+5da5 20600000 rtn 
+
+mouse_24g_stop:
+5da6 793f8026 set0 mark_24g ,mark 
+5da7 70454700 jam state_24g_stop ,mem_24g_conn_sm 
+5da8 d8e00001 arg mouse_24g_pairing_flag ,queue 
+5da9 20205c8f branch mouse_disable_function_flag 
+
+mouse_24g_start_mode:
+5daa 6fe44864 fetch mouse_flag_len ,mem_mouse_flag 
+5dab c308ddb7 bbit0 mouse_enable_24g ,mouse_24g_mode_setup_error 
+5dac 204052ff call mouse_wakeup_from_power_check 
+5dad 20345dfc branch mouse_24g_reconn_dongle_start ,user 
+5dae 6fe44864 fetch mouse_flag_len ,mem_mouse_flag 
+5daf c2985dbc bbit1 mouse_enable_auto_24g_paring ,mouse_24g_reconn_general_dongle 
+5db0 c318ddbc bbit0 mouse_enable_24g_power_on_pairing ,mouse_24g_reconn_general_dongle 
+5db1 204056b4 call mouse_key_check_once 
+5db2 1a217e07 and rega ,0x07 ,pdata 
+5db3 6848c883 fetcht 1 ,mem_mouse_commbination_key_24g 
+5db4 98467c00 isub temp ,null 
+5db5 2022ddd8 branch mouse_24g_start_pair_mode ,zero 
+5db6 20205dbc branch mouse_24g_reconn_general_dongle 
+
+mouse_24g_mode_setup_error:
+5db7 6fe0c76a fetch 1 ,mem_reconn_times 
+5db8 243a5ca9 nbranch mouse_polling_device ,blank 
+5db9 20600000 rtn 
+
+mouse_24g_first_start_auto_pair_mode:
+5dba 204052ff call mouse_wakeup_from_power_check 
+5dbb 20345dc8 branch mouse_24g_first_start_reconn ,user 
+
+mouse_24g_reconn_general_dongle:
+5dbc 6fe0c8bd fetch 1 ,mem_mouse_1io2led_led_enable 
+5dbd 245a5ab8 ncall mouse_multi_led_blink_enable ,blank 
+5dbe 7045e500 jam mode_24g_device ,mem_device_flag 
+5dbf 6fe14872 fetch 2 ,mem_mouse_24g_power_on_fast_conn_timer 
+5dc0 67e14529 store 2 ,mem_24g_reconn_timeout 
+5dc1 70452d02 jam fast_conn_and_3_0_addr ,mem_24g_reconn_type 
+5dc2 20204ba8 branch g24_reconn_start 
+
+mouse_24g_start_auto_pair:
+5dc3 20405e1e call mouse_device_discover_led_config 
+5dc4 6fe14521 fetch 2 ,mem_24g_pair_timeout_init 
+5dc5 67e14529 store 2 ,mem_24g_reconn_timeout 
+5dc6 70452d04 jam pair_and_3_0_addr ,mem_24g_reconn_type 
+5dc7 20204ba8 branch g24_reconn_start 
+
+mouse_24g_first_start_reconn:
+5dc8 6fe0c5e5 fetch 1 ,mem_device_flag 
+5dc9 c0005dfc beq mode_24g_device ,mouse_24g_reconn_dongle_start 
+5dca 204058f9 call mouse_bluetooth_fast_conn_disable 
+
+mouse_24g_first_bluetooth_reconnect:
+5dcb 20405da6 call mouse_24g_stop 
+5dcc 20405ef7 call mouse_device_led_all_off 
+5dcd 7045e501 jam mode_bt_device1 ,mem_device_flag 
+5dce 20405b61 call mouse_select_reconn_device 
+5dcf 202052f2 branch mouse_start_reconnect_device 
+
+mouse_24g_first_bb_event_reconn_timeout:
+5dd0 204052ff call mouse_wakeup_from_power_check 
+5dd1 20345324 branch mouse_app_enter_hibernate ,user 
+5dd2 20205b08 branch mouse_start_discovery 
+
+mouse_24g_first_store_reconn_info:
+5dd3 204052ff call mouse_wakeup_from_power_check 
+5dd4 20740000 rtn user 
+5dd5 6fe44864 fetch mouse_flag_len ,mem_mouse_flag 
+5dd6 c297db8c bbit1 mouse_enable_24g_first_auto_pairing ,mouse_store_device_info_delay 
+5dd7 20600000 rtn 
+
+mouse_24g_start_pair_mode:
+5dd8 70452d00 jam 0 ,mem_24g_reconn_type 
+5dd9 d8e00001 arg mouse_24g_pairing_flag ,queue 
+5dda 20405c8b call mouse_enable_function_flag 
+5ddb 58000000 setarg 0 
+5ddc 67e14529 store 2 ,mem_24g_reconn_timeout 
+5ddd 20405b29 call mouse_stop_discovery 
+5dde 20405f7f call mouse_low_voltage_led_blink_disable 
+5ddf 20405e1e call mouse_device_discover_led_config 
+5de0 7044d401 jam type_ms ,mem_24g_data_type 
+5de1 6fe44864 fetch mouse_flag_len ,mem_mouse_flag 
+5de2 c30ac90a bbit0 mouse_enable_keyboard ,g24_pair_start 
+5de3 7044d402 jam type_kb ,mem_24g_data_type 
+5de4 2020490a branch g24_pair_start 
+
+mouse_24g_attempt_fail:
+5de5 6fe0c54b fetch 1 ,mem_24g_attempt_fail_flag 
+5de6 243a5d80 nbranch mouse_24g_hibernate_set ,blank 
+5de7 6fe0c52d fetch 1 ,mem_24g_reconn_type 
+5de8 c0015df4 beq fast_conn_and_3_0_addr ,mouse_24g_fast_conn_attempt_fail 
+5de9 c0025e02 beq pair_and_3_0_addr ,mouse_24g_auto_pair_attempt_fail 
+5dea c001de07 beq receiver_and_3_0_addr ,mouse_reconn_dongle_attempt_fail 
+
+mouse_24g_attempt_fail_enter_hibernate:
+5deb 6fe44864 fetch mouse_flag_len ,mem_mouse_flag 
+5dec c29e5d80 bbit1 mouse_enable_wheel_wake_up_cancel ,mouse_24g_hibernate_set 
+
+mouse_24g_attempt_fail_enter_hibernate_next:
+5ded 20405efb call mouse_device_led_off 
+5dee 20405da6 call mouse_24g_stop 
+5def 6fe0c76a fetch 1 ,mem_reconn_times 
+5df0 243a5ca9 nbranch mouse_polling_device ,blank 
+5df1 6fe0c5e5 fetch 1 ,mem_device_flag 
+5df2 c0005324 beq mode_24g_device ,mouse_app_enter_hibernate 
+5df3 20600000 rtn 
+
+mouse_24g_fast_conn_attempt_fail:
+5df4 6fe44864 fetch mouse_flag_len ,mem_mouse_flag 
+5df5 c297ddc3 bbit1 mouse_enable_24g_first_auto_pairing ,mouse_24g_start_auto_pair 
+5df6 c2985dc3 bbit1 mouse_enable_auto_24g_paring ,mouse_24g_start_auto_pair 
+5df7 c31d5dfc bbit0 mouse_enable_24g_auto_pair_nerver_been_paired ,mouse_24g_reconn_dongle_start 
+5df8 6fe24640 fetch 4 ,mem_mouse_24g_addr 
+5df9 684a4621 fetcht 4 ,mem_mouse_compare_addr_ff 
+5dfa 98467c00 isub temp ,null 
+5dfb 2022ddd8 branch mouse_24g_start_pair_mode ,zero 
+
+mouse_24g_reconn_dongle_start:
+5dfc 6fe0c8bd fetch 1 ,mem_mouse_1io2led_led_enable 
+5dfd 245a5ab8 ncall mouse_multi_led_blink_enable ,blank 
+5dfe 6fe14527 fetch 2 ,mem_24g_reconn_timeout_init 
+5dff 67e14529 store 2 ,mem_24g_reconn_timeout 
+5e00 70452d03 jam receiver_and_3_0_addr ,mem_24g_reconn_type 
+5e01 20204ba8 branch g24_reconn_start 
+
+mouse_24g_auto_pair_attempt_fail:
+5e02 6fe44864 fetch mouse_flag_len ,mem_mouse_flag 
+5e03 c317ddeb bbit0 mouse_enable_24g_first_auto_pairing ,mouse_24g_attempt_fail_enter_hibernate 
+5e04 6fe0c86c fetch 1 ,mem_device_number 
+5e05 c000ddeb beq 1 ,mouse_24g_attempt_fail_enter_hibernate 
+5e06 20205dcb branch mouse_24g_first_bluetooth_reconnect 
+
+mouse_reconn_dongle_attempt_fail:
+5e07 6fe44864 fetch mouse_flag_len ,mem_mouse_flag 
+5e08 c317ddeb bbit0 mouse_enable_24g_first_auto_pairing ,mouse_24g_attempt_fail_enter_hibernate 
+5e09 c289ddeb bbit1 mouse_enable_eeprom ,mouse_24g_attempt_fail_enter_hibernate 
+5e0a c2895deb bbit1 mouse_enable_flash ,mouse_24g_attempt_fail_enter_hibernate 
+5e0b 20205dc4 branch mouse_24g_start_auto_pair + 1 
+
+mouse_24g_attempt_success:
+5e0c 6fe244da fetch 4 ,mem_24g_addr 
+5e0d 67e24533 store 4 ,mem_24g_receiver_addr 
+5e0e 67e24640 store 4 ,mem_mouse_24g_addr 
+5e0f 20404bce call g24_ch_syncword_crc8_init 
+5e10 20405e1b call mouse_device_poweron_led_config 
+5e11 20405aa9 call mouse_no_data_timer_init 
+5e12 204058c4 call mouse_init_sensor_reset 
+5e13 70476800 jam 0 ,mem_mouse_long_mult_flag 
+5e14 70454700 jam 0 ,mem_24g_conn_sm 
+5e15 70452d00 jam 0 ,mem_24g_reconn_type 
+5e16 6fe24533 fetch 4 ,mem_24g_receiver_addr 
+5e17 6fe2452f fetch 4 ,mem_24g_fast_conn_addr 
+5e18 98467c00 isub temp ,null 
+5e19 20628000 rtn zero 
+5e1a 20205dd3 branch mouse_24g_first_store_reconn_info 
+
+mouse_device_poweron_led_config:
+5e1b 6fe0c8bd fetch 1 ,mem_mouse_1io2led_led_enable 
+5e1c 203a5ea2 branch mouse_device_poweron_timer_init ,blank 
+5e1d 20205abd branch mouse_multi_led_on_enable 
+
+mouse_device_discover_led_config:
+5e1e 6fe0c8bd fetch 1 ,mem_mouse_1io2led_led_enable 
+5e1f 203a5ea8 branch mouse_discover_setting_led_gpio ,blank 
+5e20 20205ab8 branch mouse_multi_led_blink_enable 
+
+mouse_24g_pairing_complete:
+5e21 20405aa9 call mouse_no_data_timer_init 
+5e22 d8e00001 arg mouse_24g_pairing_flag ,queue 
+5e23 20405c8f call mouse_disable_function_flag 
+5e24 20405e1b call mouse_device_poweron_led_config 
+5e25 58000000 setarg 0 
+5e26 67e14523 store 2 ,mem_24g_pair_timeout 
+5e27 67e14529 store 2 ,mem_24g_reconn_timeout 
+5e28 67e0c547 store 1 ,mem_24g_conn_sm 
+5e29 67e0c675 store 1 ,mem_mouse_move_flag 
+5e2a 67e0c52d store 1 ,mem_24g_reconn_type 
+5e2b 204058c4 call mouse_init_sensor_reset 
+5e2c 204058d5 call mouse_read_sensor_common 
+5e2d 6fe244da fetch 4 ,mem_24g_addr 
+5e2e 67e24533 store 4 ,mem_24g_receiver_addr 
+5e2f 67e24640 store 4 ,mem_mouse_24g_addr 
+5e30 20205b8c branch mouse_store_device_info_delay 
+
+mouse_24g_package_data:
+5e31 44ad400b bpatch patch0b_2 ,mem_patch0b 
+5e32 c6930000 rtnmark0 mark_24g 
+5e33 2040549b call mouse_motion 
+5e34 24740000 nrtn user 
+5e35 6fe44864 fetch mouse_flag_len ,mem_mouse_flag 
+5e36 c30ade39 bbit0 mouse_enable_keyboard ,mouse_24g_mouse_package_data 
+5e37 6fe0c844 fetch 1 ,mem_customer_key 
+5e38 243a5e4e nbranch mouse_24g_keyboard_package_data ,blank 
+
+mouse_24g_mouse_package_data:
+5e39 204058c5 call mouse_data_xy_release 
+5e3a 6fe0c4d4 fetch 1 ,mem_24g_data_type 
+5e3b c280de48 bbit1 1 ,mouse_24g_mouse_package_data_now 
+5e3c 6848c465 fetcht 1 ,mem_24g_txbuf + 1 
+5e3d 6fe0c578 fetch 1 ,mem_mouse_key 
+5e3e 9841fe00 ior temp ,pdata 
+5e3f 67e0c578 store 1 ,mem_mouse_key 
+5e40 6848c46a fetcht 1 ,mem_24g_txbuf + 6 
+5e41 6fe0c57d fetch 1 ,mem_mouse_z 
+5e42 9840fe00 iadd temp ,pdata 
+5e43 67e0c57d store 1 ,mem_mouse_z 
+5e44 6848c46b fetcht 1 ,mem_24g_txbuf + 7 
+5e45 6fe0c57e fetch 1 ,mem_mouse_tz 
+5e46 9840fe00 iadd temp ,pdata 
+5e47 67e0c57e store 1 ,mem_mouse_tz 
+
+mouse_24g_mouse_package_data_now:
+5e48 7044d401 jam type_ms ,mem_24g_data_type 
+5e49 da200007 arg 7 ,rega 
+5e4a da404578 arg mem_mouse_key ,regb 
+5e4b 6fe1457d fetch 2 ,mem_mouse_z 
+5e4c 207a0000 rtn blank 
+5e4d 20204d3c branch g24_transmit_by_interrupt_enable 
+
+mouse_24g_keyboard_package_data:
+5e4e 7044d402 jam type_kb ,mem_24g_data_type 
+5e4f da200009 arg 9 ,rega 
+5e50 6fe0c845 fetch 1 ,mem_customer_data_trigger 
+5e51 243a5e54 nbranch mouse_customer_key_press ,blank 
+5e52 da40488d arg mem_customer_key_release ,regb 
+5e53 20600000 rtn 
+
+mouse_customer_key_press:
+5e54 da404884 arg mem_customer_key_press ,regb 
+5e55 20600000 rtn 
+
+mouse_24g_search_dongle_init:
+5e56 58000000 setarg 0 
+5e57 67e1c85d store 3 ,mem_mouse_search_dongle_action 
+5e58 20600000 rtn 
+
+mouse_24g_search_dongle:
+5e59 6fe44864 fetch mouse_flag_len ,mem_mouse_flag 
+5e5a c40b0000 rtnbit0 mouse_enable_24g_search_dongle 
+5e5b 6fe0c768 fetch 1 ,mem_mouse_long_mult_flag 
+5e5c 207a0000 rtn blank 
+5e5d 6fe0c54d fetch 1 ,mem_24g_abort_pac 
+5e5e 207a0000 rtn blank 
+5e5f 6fe0c85a fetch 1 ,mem_mouse_search_dongle_interval 
+5e60 1fe0fe01 increase 1 ,pdata 
+5e61 1fe17e03 and_into 3 ,pdata 
+5e62 67e0c85a store 1 ,mem_mouse_search_dongle_interval 
+5e63 247a0000 nrtn blank 
+5e64 70485b00 jam 0 ,mem_mouse_search_dongle_ch 
+
+mouse_24g_search_dongle_loop:
+5e65 44adc00b bpatch patch0b_3 ,mem_patch0b 
+5e66 6fe0c85b fetch 1 ,mem_mouse_search_dongle_ch 
+5e67 1fe0fe01 increase 1 ,pdata 
+5e68 67e0c85b store 1 ,mem_mouse_search_dongle_ch 
+5e69 1fe67c08 sub pdata ,g24_ch_number ,null 
+5e6a 24215e71 nbranch mouse_24g_search_dongle_loop_end ,positive 
+5e6b 20404bf3 call g24_reconn_data_prep 
+5e6c 20404cb0 call g24_transmit_receive_ack 
+5e6d 242c5e77 nbranch mouse_24g_search_dongle_loop_retry ,sync 
+5e6e 2437de77 nbranch mouse_24g_search_dongle_loop_retry ,user3 
+5e6f 20405e8a call mouse_g24_ackpayload_parse 
+5e70 20405e81 call mouse_24g_search_dongle_success 
+
+mouse_24g_search_dongle_loop_end:
+5e71 20404bef call g24_txbuf_clear 
+5e72 6fe0c85c fetch 1 ,mem_mouse_search_dongle_count 
+5e73 1fe0fe01 increase 1 ,pdata 
+5e74 67e0c85c store 1 ,mem_mouse_search_dongle_count 
+5e75 c0085e79 beq g24_ch_poll_count ,mouse_24g_search_dongle_check 
+5e76 20600000 rtn 
+
+mouse_24g_search_dongle_loop_retry:
+5e77 2040489b call g24_ch 
+5e78 20205e65 branch mouse_24g_search_dongle_loop 
+
+mouse_24g_search_dongle_check:
+5e79 70485c00 jam 0 ,mem_mouse_search_dongle_count 
+5e7a 6fe0c85d fetch 1 ,mem_mouse_search_dongle_action 
+5e7b c3800000 rtnbit1 g24_disconn_state 
+5e7c 79207e00 set1 g24_disconn_state ,pdata 
+5e7d 67e0c85d store 1 ,mem_mouse_search_dongle_action 
+5e7e 6fe14874 fetch 2 ,mem_mouse_24g_search_dongle_time_init 
+5e7f 67e1476c store 2 ,mem_mouse_no_data_timer 
+5e80 2020583e branch mouse_sensor_powerdown 
+
+mouse_24g_search_dongle_success:
+5e81 6fe0c54d fetch 1 ,mem_24g_abort_pac 
+5e82 203a5e56 branch mouse_24g_search_dongle_init ,blank 
+5e83 70485c00 jam 0 ,mem_mouse_search_dongle_count 
+5e84 6fe0c85d fetch 1 ,mem_mouse_search_dongle_action 
+5e85 c4000000 rtnbit0 g24_disconn_state 
+5e86 793ffe00 set0 g24_disconn_state ,pdata 
+5e87 67e0c85d store 1 ,mem_mouse_search_dongle_action 
+5e88 20405aa9 call mouse_no_data_timer_init 
+5e89 202057a3 branch mouse_init_sensor_wakeup 
+
+mouse_g24_ackpayload_parse:
+5e8a 20404ccf call g24_ackpayload_parse 
+5e8b 6fe0c443 fetch 1 ,mem_24g_rxbuf + 1 
+5e8c 2fe1f008 compare 0x08 ,pdata ,0xf8 
+5e8d 24608000 nrtn true 
+5e8e 6fe0c444 fetch 1 ,mem_24g_rxbuf + 2 
+5e8f c07fdd80 beq 0xff ,mouse_24g_hibernate_set 
+5e90 20600000 rtn 
+
+mouse_24g_before_lpm_sleep:
+5e91 6fe0c5e5 fetch 1 ,mem_device_flag 
+5e92 c0803b51 bne mode_24g_device ,lpm_sleep_skip_cb_function 
+5e93 6fe0c515 fetch 1 ,mem_24g_disable_fec1 
+5e94 207a0000 rtn blank 
+
+mouse_peripheral_clock_off:
+5e95 70804202 jam 2 ,core_clksel 
+5e96 6ff08130 fetch 1 ,core_lpm_ctrl 
+5e97 1fe17efc and pdata ,0xfc ,pdata 
+5e98 67f0804c store 1 ,core_lpm_reg 
+5e99 20203c05 branch lpm_write_ctrl 
+
+mouse_device_poweron_timer:
+5e9a 6fe44864 fetch mouse_flag_len ,mem_mouse_flag 
+5e9b c4100000 rtnbit0 mouse_enable_power_on_led 
+5e9c 6fe0c860 fetch 1 ,mem_mouse_device_poweron_timer_count 
+5e9d 207a0000 rtn blank 
+5e9e 1fe0ffff increase -1 ,pdata 
+5e9f 67e0c860 store 1 ,mem_mouse_device_poweron_timer_count 
+5ea0 203a5efb branch mouse_device_led_off ,blank 
+5ea1 20205f09 branch mouse_device_led_on 
+
+mouse_device_poweron_timer_init:
+5ea2 6fe44864 fetch mouse_flag_len ,mem_mouse_flag 
+5ea3 c4100000 rtnbit0 mouse_enable_power_on_led 
+5ea4 20405f7f call mouse_low_voltage_led_blink_disable 
+5ea5 6fe0c878 fetch 1 ,mem_mouse_device_poweron_timer_count_init 
+5ea6 67e0c860 store 1 ,mem_mouse_device_poweron_timer_count 
+5ea7 20600000 rtn 
+
+mouse_discover_setting_led_gpio:
+5ea8 70486000 jam 0 ,mem_mouse_device_poweron_timer_count 
+5ea9 6fe1487c fetch 2 ,mem_mouse_disconvey_led_blink_time 
+5eaa 67e145dd store 2 ,mem_mouse_on_time 
+5eab 67e145df store 2 ,mem_mouse_off_time 
+
+mouse_setting_led_gpio_comman:
+5eac 6fe0c5e5 fetch 1 ,mem_device_flag 
+5ead c0005eb1 beq mode_24g_device ,mouse_device_led_24g 
+5eae c000deb3 beq mode_bt_device1 ,mouse_device_led_bt1 
+5eaf c0015eb5 beq mode_bt_device2 ,mouse_device_led_bt2 
+5eb0 20600000 rtn 
+
+mouse_device_led_24g:
+5eb1 6fe0c5ca fetch 1 ,mem_config_device_24g_led_gpio 
+5eb2 20205eb6 branch mouse_led_blink 
+
+mouse_device_led_bt1:
+5eb3 6fe0c5cb fetch 1 ,mem_config_device_bt1_led_gpio 
+5eb4 20205eb6 branch mouse_led_blink 
+
+mouse_device_led_bt2:
+5eb5 6fe0c5cc fetch 1 ,mem_config_device_bt2_led_gpio 
+
+mouse_led_blink:
+5eb6 67e084cc store 1 ,mem_temp 
+5eb7 20405efb call mouse_device_led_off 
+5eb8 6fe084cc fetch 1 ,mem_temp 
+5eb9 67e0c5dc store 1 ,mem_mouse_struct_led_gpio 
+5eba da200000 arg 0 ,rega 
+5ebb 7045da01 jam ui_led_state_blink_start ,mem_mouse_led_type 
+5ebc 20206f10 branch ui_led_blink_start_global 
+
+mouse_dpi_led_blink_delay:
+5ebd 6fe0c5cd fetch 1 ,mem_dpi_led_gpio 
+5ebe c17f8000 rtneq gpio_disable 
+5ebf 6fe1477c fetch 2 ,mem_mouse_discovery_timer 
+5ec0 247a0000 nrtn blank 
+5ec1 6fe14523 fetch 2 ,mem_24g_pair_timeout 
+5ec2 247a0000 nrtn blank 
+5ec3 6fe14529 fetch 2 ,mem_24g_reconn_timeout 
+5ec4 247a0000 nrtn blank 
+5ec5 6fe0c860 fetch 1 ,mem_mouse_device_poweron_timer_count 
+5ec6 247a0000 nrtn blank 
+5ec7 6fe0c879 fetch 1 ,mem_mouse_dpi_led_delay_count_init 
+5ec8 203a5ece branch mouse_dpi_led_blink_init ,blank 
+5ec9 67e0c861 store 1 ,mem_mouse_dpi_led_delay_count 
+5eca 20600000 rtn 
+
+mouse_dpi_led_blink_delay_timer:
+5ecb da604861 arg mem_mouse_dpi_led_delay_count ,regc 
+5ecc da405ece arg mouse_dpi_led_blink_init ,regb 
+5ecd 20204dcc branch timer_single_step 
+
+mouse_dpi_led_blink_init:
+5ece 6fe0c5cd fetch 1 ,mem_dpi_led_gpio 
+5ecf 67e0c5dc store 1 ,mem_mouse_struct_led_gpio 
+5ed0 6fe1487a fetch 2 ,mem_mouse_dpi_led_blink_time 
+5ed1 67e145dd store 2 ,mem_mouse_on_time 
+5ed2 67e145df store 2 ,mem_mouse_off_time 
+5ed3 6fe0c5d4 fetch 1 ,mem_config_sensor_type 
+5ed4 c001dee2 beq p3212 ,mouse_dpi_led_blink_init1 
+5ed5 c005dee2 beq ka8g2 ,mouse_dpi_led_blink_init1 
+5ed6 da200000 arg 0 ,rega 
+5ed7 6848c63f fetcht 1 ,mem_mouse_dpi 
+5ed8 18408402 increase 2 ,temp 
+5ed9 18467c03 sub temp ,3 ,null 
+5eda 20415ede call mouse_dpi_led_blink_init_level_4 ,positive 
+5edb 20215eeb branch mouse_dpi_led_blink_init_end ,positive 
+5edc 184085fd increase -3 ,temp 
+5edd 20205eeb branch mouse_dpi_led_blink_init_end 
+
+mouse_dpi_led_blink_init_level_4:
+5ede 6fe44864 fetch mouse_flag_len ,mem_mouse_flag 
+5edf c40e0000 rtnbit0 mouse_enable_dpi_level_4 
+5ee0 18408401 increase 1 ,temp 
+5ee1 20600000 rtn 
+
+mouse_dpi_led_blink_init1:
+5ee2 da200000 arg 0 ,rega 
+5ee3 6848c63f fetcht 1 ,mem_mouse_dpi 
+5ee4 18408401 increase 1 ,temp 
+5ee5 6fe44864 fetch mouse_flag_len ,mem_mouse_flag 
+5ee6 c30e5eeb bbit0 mouse_enable_dpi_level_4 ,mouse_dpi_led_blink_init_end 
+5ee7 18408401 increase 1 ,temp 
+5ee8 18467c04 sub temp ,4 ,null 
+5ee9 20215eeb branch mouse_dpi_led_blink_init_end ,positive 
+5eea d8400001 arg 1 ,temp 
+
+mouse_dpi_led_blink_init_end:
+5eeb 6048c5db storet 1 ,mem_mouse_blink_count 
+5eec 7045da01 jam ui_led_state_blink_start ,mem_mouse_led_type 
+5eed 20600000 rtn 
+
+mouse_check_dpi_blink:
+5eee 78547c00 disable user 
+5eef 6fe0c5cd fetch 1 ,mem_dpi_led_gpio 
+5ef0 6848c5dc fetcht 1 ,mem_mouse_struct_led_gpio 
+5ef1 98467c00 isub temp ,null 
+5ef2 24628000 nrtn zero 
+5ef3 6fe0c5db fetch 1 ,mem_mouse_blink_count 
+5ef4 207a0000 rtn blank 
+5ef5 7045a100 jam 0 ,mem_adc_low_volatage_led_blink_enable 
+5ef6 202074c8 branch enable_user 
+
+mouse_device_led_all_off:
+5ef7 20405f07 call mouse_dpi_led_off 
+5ef8 20405f00 call mouse_device_24g_led_off 
+5ef9 20405f03 call mouse_device_bt1_led_off 
+5efa 20205f05 branch mouse_device_bt2_led_off 
+
+mouse_device_led_off:
+5efb 6fe0c5e5 fetch 1 ,mem_device_flag 
+5efc c0005f00 beq mode_24g_device ,mouse_device_24g_led_off 
+5efd c000df03 beq mode_bt_device1 ,mouse_device_bt1_led_off 
+5efe c0015f05 beq mode_bt_device2 ,mouse_device_bt2_led_off 
+5eff 20600000 rtn 
+
+mouse_device_24g_led_off:
+5f00 70486300 jam 0 ,mem_24g_device_led_status 
+5f01 6848c5ca fetcht 1 ,mem_config_device_24g_led_gpio 
+5f02 20205f14 branch mouse_led_off 
+
+mouse_device_bt1_led_off:
+5f03 6848c5cb fetcht 1 ,mem_config_device_bt1_led_gpio 
+5f04 20205f14 branch mouse_led_off 
+
+mouse_device_bt2_led_off:
+5f05 6848c5cc fetcht 1 ,mem_config_device_bt2_led_gpio 
+5f06 20205f14 branch mouse_led_off 
+
+mouse_dpi_led_off:
+5f07 6848c5cd fetcht 1 ,mem_dpi_led_gpio 
+5f08 20205f14 branch mouse_led_off 
+
+mouse_device_led_on:
+5f09 6fe0c5e5 fetch 1 ,mem_device_flag 
+5f0a c0005f0e beq mode_24g_device ,mouse_device_24g_led_on 
+5f0b c000df10 beq mode_bt_device1 ,mouse_device_bt1_led_on 
+5f0c c0015f12 beq mode_bt_device2 ,mouse_device_bt2_led_on 
+5f0d 20600000 rtn 
+
+mouse_device_24g_led_on:
+5f0e 6848c5ca fetcht 1 ,mem_config_device_24g_led_gpio 
+5f0f 20205f1b branch mouse_led_on 
+
+mouse_device_bt1_led_on:
+5f10 6848c5cb fetcht 1 ,mem_config_device_bt1_led_gpio 
+5f11 20205f1b branch mouse_led_on 
+
+mouse_device_bt2_led_on:
+5f12 6848c5cc fetcht 1 ,mem_config_device_bt2_led_gpio 
+5f13 20205f1b branch mouse_led_on 
+
+mouse_led_off:
+5f14 44ae400b bpatch patch0b_4 ,mem_patch0b 
+5f15 18427e00 copy temp ,pdata 
+5f16 c17f8000 rtneq gpio_disable 
+5f17 1fe20400 copy pdata ,temp 
+5f18 6048c5dc storet 1 ,mem_mouse_struct_led_gpio 
+5f19 da200000 arg 0 ,rega 
+5f1a 20206f0b branch ui_led_off_global 
+
+mouse_led_on:
+5f1b 44aec00b bpatch patch0b_5 ,mem_patch0b 
+5f1c 18427e00 copy temp ,pdata 
+5f1d c17f8000 rtneq gpio_disable 
+5f1e 1fe20400 copy pdata ,temp 
+5f1f 6048c5dc storet 1 ,mem_mouse_struct_led_gpio 
+5f20 da200000 arg 0 ,rega 
+5f21 20206f06 branch ui_led_on_global 
+
+mouse_ui_led_off_static:
+5f22 44af400b bpatch patch0b_6 ,mem_patch0b 
+5f23 6fe0c5ca fetch 1 ,mem_config_device_24g_led_gpio 
+5f24 98467c00 isub temp ,null 
+5f25 2042df43 call mouse_clear_24g_led_statue ,zero 
+5f26 6fe44864 fetch mouse_flag_len ,mem_mouse_flag 
+5f27 c3126b92 bbit0 mouse_enable_4_led ,gpio_out_inactive 
+5f28 20405f34 call mouse_check_bt2_led_off 
+5f29 20405f38 call mouse_check_dpi_led_off 
+5f2a 20405f3c call mouse_check_low_v_led_off 
+5f2b 6fe0c862 fetch 1 ,mem_mouse_led_off_4_led 
+5f2c 203a6b92 branch gpio_out_inactive ,blank 
+5f2d 70486200 jam 0 ,mem_mouse_led_off_4_led 
+5f2e 20206bae branch gpio_set_high_impedance 
+
+mouse_ui_led_on_static:
+5f2f 44afc00b bpatch patch0b_7 ,mem_patch0b 
+5f30 6fe0c5ca fetch 1 ,mem_config_device_24g_led_gpio 
+5f31 98467c00 isub temp ,null 
+5f32 2042df45 call mouse_set_24g_led_statue ,zero 
+5f33 20206b96 branch gpio_out_active 
+
+mouse_check_bt2_led_off:
+5f34 6fe44864 fetch mouse_flag_len ,mem_mouse_flag 
+5f35 c4130000 rtnbit0 mouse_enable_bt2_for_4_led 
+5f36 6fe0c5cc fetch 1 ,mem_config_device_bt2_led_gpio 
+5f37 20205f3f branch mouse_check_1gpio_2led_off 
+
+mouse_check_dpi_led_off:
+5f38 6fe44864 fetch mouse_flag_len ,mem_mouse_flag 
+5f39 c4128000 rtnbit0 mouse_enable_dpi_for_4_led 
+5f3a 6fe0c5cd fetch 1 ,mem_dpi_led_gpio 
+5f3b 20205f3f branch mouse_check_1gpio_2led_off 
+
+mouse_check_low_v_led_off:
+5f3c 6fe44864 fetch mouse_flag_len ,mem_mouse_flag 
+5f3d c4138000 rtnbit0 mouse_enable_low_v_for_4_led 
+5f3e 6fe0c5c9 fetch 1 ,mem_config_low_voltage_alarm_gpio 
+
+mouse_check_1gpio_2led_off:
+5f3f 98467c00 isub temp ,null 
+5f40 24628000 nrtn zero 
+5f41 70486201 jam 1 ,mem_mouse_led_off_4_led 
+5f42 20600000 rtn 
+
+mouse_clear_24g_led_statue:
+5f43 70486300 jam 0 ,mem_24g_device_led_status 
+5f44 20600000 rtn 
+
+mouse_set_24g_led_statue:
+5f45 70486301 jam 1 ,mem_24g_device_led_status 
+5f46 20600000 rtn 
+
+mouse_low_voltage_led_timer:
+5f47 6fe1477c fetch 2 ,mem_mouse_discovery_timer 
+5f48 247a0000 nrtn blank 
+5f49 6fe14523 fetch 2 ,mem_24g_pair_timeout 
+5f4a 247a0000 nrtn blank 
+5f4b 6fe14529 fetch 2 ,mem_24g_reconn_timeout 
+5f4c 247a0000 nrtn blank 
+5f4d 6fe0c860 fetch 1 ,mem_mouse_device_poweron_timer_count 
+5f4e 247a0000 nrtn blank 
+5f4f 20405eee call mouse_check_dpi_blink 
+5f50 20740000 rtn user 
+5f51 6fe44864 fetch mouse_flag_len ,mem_mouse_flag 
+5f52 c4108000 rtnbit0 mouse_enable_low_voltage_led 
+5f53 c4020000 rtnbit0 mouse_low_voltage_flag 
+5f54 c291df6d bbit1 mouse_enable_low_voltage_led_blink_n_second ,mouse_low_voltage_led_blink_new_data 
+5f55 6fe0c5a0 fetch 1 ,mem_adc_low_volatage_led_timer_count 
+5f56 1fe0fe01 increase 1 ,pdata 
+5f57 67e0c5a0 store 1 ,mem_adc_low_volatage_led_timer_count 
+5f58 1fe67c14 sub pdata ,20 ,null 
+5f59 24415f5f ncall mouse_adc_low_volatage_led_timer_count_clean ,positive 
+5f5a c0015f61 beq 2 ,mouse_low_voltage_led_on 
+5f5b c0025f67 beq 4 ,mouse_low_voltage_led_off 
+5f5c c0035f61 beq 6 ,mouse_low_voltage_led_on 
+5f5d c0045f67 beq 8 ,mouse_low_voltage_led_off 
+5f5e 20600000 rtn 
+
+mouse_adc_low_volatage_led_timer_count_clean:
+5f5f 7045a001 jam 1 ,mem_adc_low_volatage_led_timer_count 
+5f60 20205f67 branch mouse_low_voltage_led_off 
+
+mouse_low_voltage_led_on:
+5f61 6fe44864 fetch mouse_flag_len ,mem_mouse_flag 
+5f62 c2915f09 bbit1 mouse_enable_low_voltage_use_mode_led ,mouse_device_led_on 
+5f63 6fe0c5c9 fetch 1 ,mem_config_low_voltage_alarm_gpio 
+5f64 c17f8000 rtneq gpio_disable 
+5f65 6848c5c9 fetcht 1 ,mem_config_low_voltage_alarm_gpio 
+5f66 20205f1b branch mouse_led_on 
+
+mouse_low_voltage_led_off:
+5f67 6fe44864 fetch mouse_flag_len ,mem_mouse_flag 
+5f68 c2915efb bbit1 mouse_enable_low_voltage_use_mode_led ,mouse_device_led_off 
+5f69 6fe0c5c9 fetch 1 ,mem_config_low_voltage_alarm_gpio 
+5f6a c17f8000 rtneq gpio_disable 
+5f6b 6848c5c9 fetcht 1 ,mem_config_low_voltage_alarm_gpio 
+5f6c 20205f14 branch mouse_led_off 
+
+mouse_low_voltage_led_blink_new_data:
+5f6d 6fe14876 fetch 2 ,mem_mouse_no_data_timeout 
+5f6e 6849476c fetcht 2 ,mem_mouse_no_data_timer 
+5f6f 98460400 isub temp ,temp 
+5f70 6fe14880 fetch 2 ,mem_adc_low_volatage_led_blink_timer 
+5f71 98467c00 isub temp ,null 
+5f72 24215f7f nbranch mouse_low_voltage_led_blink_disable ,positive 
+5f73 6fe0c5a1 fetch 1 ,mem_adc_low_volatage_led_blink_enable 
+5f74 247a0000 nrtn blank 
+5f75 7045a101 jam 1 ,mem_adc_low_volatage_led_blink_enable 
+5f76 20205f77 branch mouse_low_voltage_led_blink_init 
+
+mouse_low_voltage_led_blink_init:
+5f77 6fe1487e fetch 2 ,mem_mouse_low_v_led_blink_time 
+5f78 67e145dd store 2 ,mem_mouse_on_time 
+5f79 67e145df store 2 ,mem_mouse_off_time 
+5f7a 6fe44864 fetch mouse_flag_len ,mem_mouse_flag 
+5f7b c2915eac bbit1 mouse_enable_low_voltage_use_mode_led ,mouse_setting_led_gpio_comman 
+5f7c 6fe0c5c9 fetch 1 ,mem_config_low_voltage_alarm_gpio 
+5f7d c17f8000 rtneq gpio_disable 
+5f7e 20205eb6 branch mouse_led_blink 
+
+mouse_low_voltage_led_blink_disable:
+5f7f 7045a100 jam 0 ,mem_adc_low_volatage_led_blink_enable 
+5f80 20205f67 branch mouse_low_voltage_led_off 
+
+mouse_low_voltage_led_no_enter_lpm:
+5f81 6fe44864 fetch mouse_flag_len ,mem_mouse_flag 
+5f82 c4108000 rtnbit0 mouse_enable_low_voltage_led 
+5f83 c4020000 rtnbit0 mouse_low_voltage_flag 
+5f84 c291df93 bbit1 mouse_enable_low_voltage_led_blink_n_second ,mouse_low_voltage_led_no_enter_lpm_blink 
+5f85 6fe0c5a0 fetch 1 ,mem_adc_low_volatage_led_timer_count 
+5f86 1fe67c0a sub pdata ,10 ,null 
+5f87 20215f8f branch mouse_lpm_mode_clear ,positive 
+
+mouse_low_voltage_led_no_enter_lpm_next:
+5f88 6fe0c5e5 fetch 1 ,mem_device_flag 
+5f89 c0005f8c beq mode_24g_device ,g24_transmit_by_interrupt_exit_check 
+5f8a 70409401 jam 1 ,mem_lpm_mode 
+5f8b 20600000 rtn 
+
+g24_transmit_by_interrupt_exit_check:
+5f8c 6fe44864 fetch mouse_flag_len ,mem_mouse_flag 
+5f8d c38c0000 rtnbit1 mouse_enable_24g_250hz 
+5f8e 20204d2b branch g24_transmit_by_interrupt_exit 
+
+mouse_lpm_mode_clear:
+5f8f 6fe0c5e5 fetch 1 ,mem_device_flag 
+5f90 c0004d3c beq mode_24g_device ,g24_transmit_by_interrupt_enable 
+5f91 70409400 jam 0 ,mem_lpm_mode 
+5f92 20600000 rtn 
+
+mouse_low_voltage_led_no_enter_lpm_blink:
+5f93 6fe0c5a1 fetch 1 ,mem_adc_low_volatage_led_blink_enable 
+5f94 243a5f8f nbranch mouse_lpm_mode_clear ,blank 
+5f95 20205f88 branch mouse_low_voltage_led_no_enter_lpm_next 
+
+mouse_store_signal_rssi:
+5f96 6fe08009 fetch 1 ,mem_rssi 
+5f97 20204c3a branch rssi_signal 
+
+mouse_le_transmit:
+5f98 20405f96 call mouse_store_signal_rssi 
+5f99 20204d49 branch power_ctrl_start 
+
+mouse_le_set_lpm_mult:
+5f9a 6fe0c82f fetch 1 ,mem_le_connect_status_flag 
+5f9b 2fe00603 compare 3 ,pdata ,3 
+5f9c 2420f4d6 nbranch disable_blank ,true 
+5f9d 20404e17 call app_lpm_mult_enable 
+5f9e 202074d8 branch enable_blank 
+
+mouse_set_lpm_mult:
+5f9f 6fe14434 fetch 2 ,mem_ui_state_map 
+5fa0 c284df9a bbit1 ui_state_ble_connected ,mouse_le_set_lpm_mult 
+5fa1 20600000 rtn 
+
+mouse_24g_long_sleep:
+5fa2 20404d15 call g24_lpm_wait 
+5fa3 24740000 nrtn user 
+5fa4 6fe0c863 fetch 1 ,mem_24g_device_led_status 
+5fa5 247a0000 nrtn blank 
+5fa6 20404d1f call g24_setgpio_lpm_before 
+5fa7 7048fb00 jam 0 ,mem_mouse_24g_sleep_miss 
+5fa8 20406024 call mouse_24g_send_time_long_wake 
+5fa9 6fe0c899 fetch 1 ,mem_sensor_shutdown_flag 
+5faa 245a5338 ncall mouse_setgpio_hibernate ,blank 
+5fab 6fe244fa fetch 4 ,mem_24g_enter_hibernate 
+5fac 20204c81 branch g24_long_seep2 
+
+mouse_24g_short_sleep:
+5fad 6fe0c904 fetch 1 ,mem_mouse_sleep_deal_type 
+5fae 203a4c75 branch g24_short_sleep ,blank 
+5faf 20404d15 call g24_lpm_wait 
+5fb0 24740000 nrtn user 
+5fb1 6fe0c863 fetch 1 ,mem_24g_device_led_status 
+5fb2 247a0000 nrtn blank 
+5fb3 6fe0c8fb fetch 1 ,mem_mouse_24g_sleep_miss 
+5fb4 7048fb00 jam 0 ,mem_mouse_24g_sleep_miss 
+5fb5 1fe67c00 sub pdata ,0 ,null 
+5fb6 2422dfd6 nbranch mouse_24g_short_sleep_last_miss ,zero 
+5fb7 6849456d fetcht 2 ,mem_24g_retransmit 
+5fb8 18467c00 sub temp ,0 ,null 
+5fb9 2022dfcc branch mouse_24g_short_sleep_default ,zero 
+5fba 6fe248f0 fetch 4 ,mem_mouse_24g_tx_time_last_delt 
+5fbb 203a5fcc branch mouse_24g_short_sleep_default ,blank 
+
+mouse_24g_short_sleep_notify:
+5fbc 684a48da fetcht 4 ,mem_mouse_24g_tsniff 
+5fbd 98460400 isub temp ,temp 
+5fbe 604a4900 storet 4 ,mem_mouse_24g_sleep_miss_temp 
+5fbf 24215fcf nbranch mouse_24g_short_sleep_long ,positive 
+5fc0 6fe1c553 fetch 3 ,mem_24g_short_sleep_set 
+5fc1 98467e00 isub temp ,pdata 
+5fc2 24215fda nbranch mouse_24g_short_sleep_2 ,positive 
+5fc3 d8400600 arg 0x600 ,temp 
+5fc4 98467c00 isub temp ,null 
+5fc5 24215fda nbranch mouse_24g_short_sleep_2 ,positive 
+
+mouse_24g_short_sleep2:
+5fc6 67e248fc store 4 ,mem_mouse_24g_sleep_time_temp 
+5fc7 20405fd3 call mouse_24g_miss_temp_clear 
+5fc8 6fe248fc fetch 4 ,mem_mouse_24g_sleep_time_temp 
+
+mouse_24g_short_sleep3:
+5fc9 20407464 call clk2lpo 
+5fca 604a40aa storet 4 ,mem_sleep_counter 
+5fcb 20203b47 branch lpm_sleep 
+
+mouse_24g_short_sleep_default:
+5fcc 20405fd3 call mouse_24g_miss_temp_clear 
+5fcd 6fe1c553 fetch 3 ,mem_24g_short_sleep_set 
+5fce 20205fc6 branch mouse_24g_short_sleep2 
+
+mouse_24g_short_sleep_long:
+5fcf 18460400 sub temp ,0 ,temp 
+5fd0 6fe1c553 fetch 3 ,mem_24g_short_sleep_set 
+5fd1 9840fe00 iadd temp ,pdata 
+5fd2 20205fc6 branch mouse_24g_short_sleep2 
+
+mouse_24g_miss_temp_clear:
+5fd3 58000000 setarg 0 
+5fd4 67e24900 store 4 ,mem_mouse_24g_sleep_miss_temp 
+5fd5 20600000 rtn 
+
+mouse_24g_short_sleep_last_miss:
+5fd6 6fe248f0 fetch 4 ,mem_mouse_24g_tx_time_last_delt 
+5fd7 684a4900 fetcht 4 ,mem_mouse_24g_sleep_miss_temp 
+5fd8 9840fe00 iadd temp ,pdata 
+5fd9 20205fbc branch mouse_24g_short_sleep_notify 
+
+mouse_24g_short_sleep_2:
+5fda 7048fb01 jam 1 ,mem_mouse_24g_sleep_miss 
+5fdb 20600000 rtn 
+
+mouse_24g_transmit_callback:
+5fdc 20405fde call mouse_24g_send_time_check 
+5fdd 20205d8b branch mouse_wakeup_24g 
+
+mouse_24g_send_time_check:
+5fde 6fe0c904 fetch 1 ,mem_mouse_sleep_deal_type 
+5fdf 207a0000 rtn blank 
+5fe0 6fe0c563 fetch 1 ,mem_24g_transmit_by_interrupt 
+5fe1 c000e020 beq g24_tx_timer_int_enable ,mouse_24g_send_timer_first 
+5fe2 6fe0c8e9 fetch 1 ,mem_mouse_24g_tx_count 
+5fe3 203a6020 branch mouse_24g_send_timer_first ,blank 
+5fe4 1b227e00 copy clkn ,pdata 
+5fe5 684b48ea fetcht 6 ,mem_mouse_24g_tx_time_last 
+5fe6 67e348ea store 6 ,mem_mouse_24g_tx_time_last 
+5fe7 2040744f call clk_diff_rt 
+5fe8 67e248f0 store 4 ,mem_mouse_24g_tx_time_last_delt 
+5fe9 6fe0c8fb fetch 1 ,mem_mouse_24g_sleep_miss 
+5fea 247a0000 nrtn blank 
+5feb 6fe1456d fetch 2 ,mem_24g_retransmit 
+5fec 247a0000 nrtn blank 
+5fed 6fe248f0 fetch 4 ,mem_mouse_24g_tx_time_last_delt 
+
+mouse_24g_send_time_check_1:
+5fee 684ac8f4 fetcht 5 ,mem_mouse_24g_tx_time_sum 
+5fef 9840fe00 iadd temp ,pdata 
+5ff0 67e2c8f4 store 5 ,mem_mouse_24g_tx_time_sum 
+5ff1 6848c8e9 fetcht 1 ,mem_mouse_24g_tx_count 
+5ff2 6fe0c8f9 fetch 1 ,mem_mouse_24g_tx_time_sum_count 
+5ff3 98467c00 isub temp ,null 
+5ff4 2022dff8 branch mouse_24g_send_time_check_average ,zero 
+5ff5 18408401 increase 1 ,temp 
+5ff6 6048c8e9 storet 1 ,mem_mouse_24g_tx_count 
+5ff7 20600000 rtn 
+
+mouse_24g_send_time_check_average:
+5ff8 7048e901 jam 1 ,mem_mouse_24g_tx_count 
+5ff9 d8400000 arg 0 ,temp 
+5ffa 6fe2c8f4 fetch 5 ,mem_mouse_24g_tx_time_sum 
+5ffb 604ac8f4 storet 5 ,mem_mouse_24g_tx_time_sum 
+5ffc 6848c8f9 fetcht 1 ,mem_mouse_24g_tx_time_sum_count 
+5ffd 9846fc00 idiv temp 
+5ffe 20407475 call wait_div_end 
+5fff 1807a200 quotient rega 
+6000 6fe248da fetch 4 ,mem_mouse_24g_tsniff 
+6001 6848c8fa fetcht 1 ,mem_mouse_24g_tx_time_offset 
+6002 98460400 isub temp ,temp 
+6003 184085d8 increase -40 ,temp 
+6004 1a227e00 copy rega ,pdata 
+6005 98467e00 isub temp ,pdata 
+6006 20216013 branch mouse_24g_send_time_check_average_late ,positive 
+6007 1fe67e00 sub pdata ,0 ,pdata 
+6008 1feb7e00 rshift2 pdata ,pdata 
+6009 6849c553 fetcht 3 ,mem_24g_short_sleep_set 
+600a 98408400 iadd temp ,temp 
+600b 44b0400c bpatch patch0c_0 ,mem_patch0c 
+600c 6fe1c8e6 fetch 3 ,mem_mouse_24g_short_sleep_set_init 
+600d da201800 arg 0x1800 ,rega 
+600e 9a20fe00 iadd rega ,pdata 
+600f 98467c00 isub temp ,null 
+6010 2421601e nbranch mouse_24g_send_time_check_average_min ,positive 
+6011 6049c553 storet 3 ,mem_24g_short_sleep_set 
+6012 20600000 rtn 
+
+mouse_24g_send_time_check_average_late:
+6013 1feb0400 rshift2 pdata ,temp 
+6014 6fe1c553 fetch 3 ,mem_24g_short_sleep_set 
+6015 98460400 isub temp ,temp 
+6016 44b0c00c bpatch patch0c_1 ,mem_patch0c 
+6017 6fe1c8e6 fetch 3 ,mem_mouse_24g_short_sleep_set_init 
+6018 da201800 arg 0x1800 ,rega 
+6019 9a267e00 isub rega ,pdata 
+601a 98467c00 isub temp ,null 
+601b 2021601e branch mouse_24g_send_time_check_average_min ,positive 
+601c 6049c553 storet 3 ,mem_24g_short_sleep_set 
+601d 20600000 rtn 
+
+mouse_24g_send_time_check_average_min:
+601e 67e1c553 store 3 ,mem_24g_short_sleep_set 
+601f 20600000 rtn 
+
+mouse_24g_send_timer_first:
+6020 7048e901 jam 1 ,mem_mouse_24g_tx_count 
+6021 1b227e00 copy clkn ,pdata 
+6022 67e348ea store 6 ,mem_mouse_24g_tx_time_last 
+6023 20600000 rtn 
+
+mouse_24g_send_time_long_wake:
+6024 58000000 setarg 0 
+6025 67e0c8e9 store 1 ,mem_mouse_24g_tx_count 
+6026 67e2c8f4 store 5 ,mem_mouse_24g_tx_time_sum 
+6027 20600000 rtn 
+
+shutter_init:
+6028 20406eb3 call enable_authrom 
+6029 20758000 rtn wake 
+602a 580060a1 setarg shutter_process_idle 
+602b 67e14394 store 2 ,mem_cb_idle_process 
+602c 58006053 setarg shutter_process_bb_event 
+602d 67e14396 store 2 ,mem_cb_bb_event_process 
+602e 58006104 setarg ble_shutter_receive_data 
+602f 67e14398 store 2 ,mem_cb_att_write 
+6030 58006088 setarg shutter_le_bb_event_timer 
+6031 67e1439c store 2 ,mem_cb_event_timer 
+6032 580060df setarg shutter_key_change 
+6033 67e1447e store 2 ,mem_cb_shutter_keycan 
+6034 2040603c call shutter_common_init 
+6035 44b1400c bpatch patch0c_2 ,mem_patch0c 
+6036 20406110 call shutter_load_buffer_config_form_datarom 
+
+shutter_power_switch:
+6037 6fe0c474 fetch 1 ,mem_shutter_hard_soft_switch_case 
+6038 c000604a beq hard_switch ,shutter_hart_swtich_power_on 
+6039 6fe0c475 fetch 1 ,mem_shutter_soft_switch_button_gpio 
+603a 67e0c437 store 1 ,mem_ui_button_gpio 
+603b 2020611f branch ui_soft_swtich_init 
+
+shutter_common_init:
+603c 580060a5 setarg shutter_le_before_hibernate 
+603d 67e1438e store 2 ,mem_cb_before_hibernate 
+603e 580060a3 setarg shutter_process_lpm_before 
+603f 67e14390 store 2 ,mem_cb_before_lpm 
+6040 580060ba setarg shutter_start_reconnect 
+6041 67e14479 store 2 ,mem_shutter_soft_switch_poweron_callback_function 
+6042 58006118 setarg shutter_soft_swtich_power_off 
+6043 67e1447b store 2 ,mem_shutter_soft_switch_poweroff_callback_function 
+6044 70412007 jam 7 ,mem_version 
+6045 2040410b call le_modified_name_adv 
+6046 20406107 call shutter_init_param 
+6047 20406c51 call keyscan_key_init 
+6048 20406ff8 call queue_init 
+6049 20206ef8 branch ui_led_init_global 
+
+shutter_hart_swtich_power_on:
+604a 704437ff jam ui_button_gpio_disable ,mem_ui_button_gpio 
+604b 70447601 jam ss_state_power_on ,mem_shutter_soft_switch_power_state 
+604c 202060ba branch shutter_start_reconnect 
+
+shutter_le_scale_lpm_lock:
+604d 6fe0c476 fetch 1 ,mem_shutter_soft_switch_power_state 
+604e c0014df4 beq ss_state_power_off ,app_get_lpm_wake_lock 
+604f 204066de call l2cap_malloc_get_full_map 
+6050 6fe0c3f3 fetch 1 ,mem_used_map 
+6051 243a4df4 nbranch app_get_lpm_wake_lock ,blank 
+6052 20204df6 branch app_put_lpm_wake_lock 
+
+shutter_process_bb_event:
+6053 1a627e00 copy regc ,pdata 
+6054 c00a605c beq bt_evt_le_connected ,ble_shutter_process_baseband_connect 
+6055 c00ae060 beq bt_evt_le_disconnected ,ble_shutter_process_baseband_disconnect 
+6056 c01fe063 beq bt_evt_le_reconnect_complete ,ble_shutter_process_reconnect_complete 
+6057 c0206069 beq bt_evt_le_parse_conn_papa_update_rsp ,ble_shutter_process_parse_connect_parameter_update_response 
+6058 c0086134 beq bt_evt_button_long_pressed ,ui_soft_switch_botton_long_press 
+6059 c016606f beq bt_evt_button_down ,shutter_process_soft_swtich_button_down 
+605a c016e07a beq bt_evt_button_up ,shutter_process_soft_swtich_button_up 
+605b 20600000 rtn 
+
+ble_shutter_process_baseband_connect:
+605c 204060a7 call shutter_stop_bluetooth_discovery 
+605d 58000000 setarg 0 
+605e 67e1444e store 2 ,mem_ble_shutter_reconn_timer 
+605f 20204e11 branch app_led_off 
+
+ble_shutter_process_baseband_disconnect:
+6060 20406ff8 call queue_init 
+6061 70444700 jam 0 ,mem_ble_shutter_enable_notify 
+6062 202060ba branch shutter_start_reconnect 
+
+ble_shutter_process_reconnect_complete:
+6063 20406ff8 call queue_init 
+6064 70444701 jam 1 ,mem_ble_shutter_enable_notify 
+6065 6fe44458 fetch 8 ,mem_ble_shutter_interval_min 
+6066 67e442a8 store 8 ,mem_le_interval_min 
+6067 20404e17 call app_lpm_mult_enable 
+6068 202045c0 branch le_l2cap_tx_update_req 
+
+ble_shutter_process_parse_connect_parameter_update_response:
+6069 6fe14311 fetch 2 ,mem_le_l2cap_signaling_conn_param_update_rsp_result 
+606a c1000000 rtneq ble_signaling_connect_parameter_update_accepted 
+606b 6fe44460 fetch 8 ,mem_ble_shutter_interval_min_new 
+606c 207a0000 rtn blank 
+606d 67e442a8 store 8 ,mem_le_interval_min 
+606e 202045c0 branch le_l2cap_tx_update_req 
+
+shutter_process_soft_swtich_button_down:
+606f 6fe0c474 fetch 1 ,mem_shutter_hard_soft_switch_case 
+6070 c1000000 rtneq hard_switch 
+6071 6fe0c476 fetch 1 ,mem_shutter_soft_switch_power_state 
+6072 c1808000 rtnne ss_state_power_on 
+6073 20406075 call shutter_store_currenct_led_state 
+6074 20204e0f branch app_led_on 
+
+shutter_store_currenct_led_state:
+6075 70467601 jam 1 ,mem_shutter_soft_swtich_botton_down 
+6076 df20000b arg 11 ,loopcnt 
+6077 d8a04677 arg mem_shutter_soft_swtich_led_struct_temp ,contw 
+6078 d8c04660 arg mem_shutter_led_struct_app_led ,contr 
+6079 20207419 branch memcpy 
+
+shutter_process_soft_swtich_button_up:
+607a 6fe0c474 fetch 1 ,mem_shutter_hard_soft_switch_case 
+607b c1000000 rtneq hard_switch 
+607c 6fe0c476 fetch 1 ,mem_shutter_soft_switch_power_state 
+607d c000e07f beq ss_state_power_on ,shutter_load_currenct_led_state 
+607e 20206130 branch ui_soft_switch_botton_up 
+
+shutter_load_currenct_led_state:
+607f 6fe0c676 fetch 1 ,mem_shutter_soft_swtich_botton_down 
+6080 c1808000 rtnne 1 
+6081 70467600 jam 0 ,mem_shutter_soft_swtich_botton_down 
+6082 6fe14434 fetch 2 ,mem_ui_state_map 
+6083 c284ce11 bbit1 ui_state_ble_connected ,app_led_off 
+6084 df20000b arg 11 ,loopcnt 
+6085 d8c04677 arg mem_shutter_soft_swtich_led_struct_temp ,contr 
+6086 d8a04660 arg mem_shutter_led_struct_app_led ,contw 
+6087 20207419 branch memcpy 
+
+shutter_le_bb_event_timer:
+6088 2040608b call shutter_check_sleep_timer 
+6089 20406092 call shutter_check_power_off_timer 
+608a 2020609c branch ble_shutter_reconn_timer 
+
+shutter_check_sleep_timer:
+608b da604472 arg mem_shutter_sleep_timer ,regc 
+608c da40608e arg shutter_sleep_timeout ,regb 
+608d 20204dd3 branch timer_single_step_2b 
+
+shutter_sleep_timeout:
+608e 70447602 jam ss_state_power_off ,mem_shutter_soft_switch_power_state 
+608f 20404e11 call app_led_off 
+6090 204060c8 call shutter_disconnect_current_connection 
+6091 2020611c branch shutter_wait_power_off 
+
+shutter_check_power_off_timer:
+6092 da604683 arg mem_shutter_power_off_timer ,regc 
+6093 da406095 arg shutter_check_power_off_timeout ,regb 
+6094 20204dcc branch timer_single_step 
+
+shutter_check_power_off_timeout:
+6095 6fe14434 fetch 2 ,mem_ui_state_map 
+6096 c284e11c bbit1 ui_state_ble_connected ,shutter_wait_power_off 
+6097 6fe0c660 fetch 1 ,mem_shutter_led_struct_app_led_type 
+6098 c000e11c beq ui_led_state_blink_start ,shutter_wait_power_off 
+6099 c002611c beq ui_led_state_blink_lighting ,shutter_wait_power_off 
+609a c002e11c beq ui_led_state_blink_darking ,shutter_wait_power_off 
+609b 20204e13 branch app_enter_hibernate 
+
+ble_shutter_reconn_timer:
+609c 6fe0c476 fetch 1 ,mem_shutter_soft_switch_power_state 
+609d c1808000 rtnne ss_state_power_on 
+609e da60444e arg mem_ble_shutter_reconn_timer ,regc 
+609f da4060ab arg shutter_start_bluetooth_discovery ,regb 
+60a0 20204dd3 branch timer_single_step_2b 
+
+shutter_process_idle:
+60a1 204060f0 call shutter_send_data_to_master 
+60a2 20206c81 branch keyscan_key_process 
+
+shutter_process_lpm_before:
+60a3 20406bc9 call gpio_set_before_lpm 
+60a4 20206c75 branch keyscan_process_lpm_before 
+
+shutter_le_before_hibernate:
+60a5 20406bc9 call gpio_set_before_lpm 
+60a6 20206eb7 branch disable_authrom 
+
+shutter_stop_bluetooth_discovery:
+
+ble_shutter_stop_bluetooth_discovery:
+60a7 6fe1446e fetch 2 ,mem_ble_shutter_connect_timeout 
+60a8 67e14470 store 2 ,mem_shutter_sleep_timeout 
+60a9 67e14472 store 2 ,mem_shutter_sleep_timer 
+60aa 20204e01 branch app_ble_stop_adv 
+
+shutter_start_bluetooth_discovery:
+60ab 6fe0c476 fetch 1 ,mem_shutter_soft_switch_power_state 
+60ac c1808000 rtnne ss_state_power_on 
+
+ble_shutter_start_discovery:
+60ad 6fe14434 fetch 2 ,mem_ui_state_map 
+60ae c3848000 rtnbit1 ui_state_ble_connected 
+60af 6fe1446c fetch 2 ,mem_ble_shutter_discovery_timeout 
+60b0 67e14470 store 2 ,mem_shutter_sleep_timeout 
+60b1 67e14472 store 2 ,mem_shutter_sleep_timer 
+60b2 6fe1444a fetch 2 ,mem_ble_shutter_discovery_adv_interval 
+60b3 20406145 call shutter_ble_adv_interval_set 
+60b4 20404e0d call app_led_start_blink 
+60b5 6fe24454 fetch 4 ,mem_ble_shutter_discovery_blink_on_time 
+60b6 67e24663 store 4 ,mem_shutter_led_struct_app_led_on_time 
+60b7 6fe14434 fetch 2 ,mem_ui_state_map 
+60b8 c3858000 rtnbit1 ui_state_ble_adv 
+60b9 20204e03 branch app_ble_start_adv 
+
+shutter_start_reconnect:
+60ba 6fe0c476 fetch 1 ,mem_shutter_soft_switch_power_state 
+60bb c1808000 rtnne ss_state_power_on 
+
+ble_shutter_start_reconnect:
+60bc 6fe1444e fetch 2 ,mem_ble_shutter_reconn_timer 
+60bd 6849444c fetcht 2 ,mem_ble_shutter_reconn_timeout 
+60be 6049444e storet 2 ,mem_ble_shutter_reconn_timer 
+60bf 247a0000 nrtn blank 
+60c0 6fe14448 fetch 2 ,mem_ble_shutter_reconn_adv_interval 
+60c1 20406145 call shutter_ble_adv_interval_set 
+60c2 20404e0d call app_led_start_blink 
+60c3 6fe24450 fetch 4 ,mem_ble_shutter_reconn_blink_on_time 
+60c4 67e24663 store 4 ,mem_shutter_led_struct_app_led_on_time 
+60c5 6fe14434 fetch 2 ,mem_ui_state_map 
+60c6 c3858000 rtnbit1 ui_state_ble_adv 
+60c7 20204e03 branch app_ble_start_adv 
+
+shutter_disconnect_current_connection:
+60c8 6fe14434 fetch 2 ,mem_ui_state_map 
+60c9 c284ce0b bbit1 ui_state_ble_connected ,app_ble_disconnect 
+60ca 202060a7 branch shutter_stop_bluetooth_discovery 
+
+shutter_check_data_enable:
+60cb 204074ca call disable_user 
+60cc 6fe14434 fetch 2 ,mem_ui_state_map 
+60cd c284e0cf bbit1 ui_state_ble_connected ,shutter_check_ble_data_enable 
+60ce 20600000 rtn 
+
+shutter_check_ble_data_enable:
+60cf 6fe0c447 fetch 1 ,mem_ble_shutter_enable_notify 
+60d0 207a0000 rtn blank 
+60d1 202074c8 branch enable_user 
+
+shutter_check_bluetooth_conn:
+60d2 204074ca call disable_user 
+60d3 6fe14434 fetch 2 ,mem_ui_state_map 
+60d4 c3848000 rtnbit1 ui_state_ble_connected 
+60d5 202074c8 branch enable_user 
+
+shutter_change_bluetooth_status_bt_disconn:
+
+ble_shutter_change_bluetooth_status_bt_disconn:
+60d6 202060ba branch shutter_start_reconnect 
+
+shutter_check_send_data:
+60d7 78567c00 disable user2 
+60d8 6fe14470 fetch 2 ,mem_shutter_sleep_timeout 
+60d9 67e14472 store 2 ,mem_shutter_sleep_timer 
+60da 204060d2 call shutter_check_bluetooth_conn 
+60db 203460d6 branch shutter_change_bluetooth_status_bt_disconn ,user 
+60dc 204060cb call shutter_check_data_enable 
+60dd 24740000 nrtn user 
+60de 202074cc branch enable_user2 
+
+shutter_key_change:
+60df 204060d7 call shutter_check_send_data 
+60e0 24760000 nrtn user2 
+60e1 1a227e00 deposit rega 
+60e2 203a60e6 branch shutter_key_release ,blank 
+
+shutter_key_press:
+60e3 20404e0f call app_led_on 
+60e4 da604488 arg mem_key0_press ,regc 
+60e5 202060e8 branch push_queue_press_or_release 
+
+shutter_key_release:
+60e6 20404e11 call app_led_off 
+60e7 da6044b0 arg mem_key0_release ,regc 
+
+push_queue_press_or_release:
+60e8 dfe00005 arg max_queue_num ,pdata 
+60e9 98effe00 imul32 queue ,pdata 
+60ea 9a60a600 iadd regc ,regc 
+
+push_buffer_in_queue:
+60eb efe08013 ifetch 1 ,regc 
+60ec 207a0000 rtn blank 
+60ed 204060fc call queue_push_one_byte 
+60ee 1a60a601 increase 1 ,regc 
+60ef 202060eb branch push_buffer_in_queue 
+
+shutter_send_data_to_master:
+60f0 6fe14434 fetch 2 ,mem_ui_state_map 
+60f1 c284e0f3 bbit1 ui_state_ble_connected ,pop_queue_to_ble_data 
+60f2 20600000 rtn 
+
+pop_queue_to_ble_data:
+60f3 204041cc call le_fifo_check_nearly_full 
+60f4 247a0000 nrtn blank 
+60f5 204060ff call queue_pop_one_byte 
+60f6 24740000 nrtn user 
+60f7 1fe0ffff pincrease -1 
+60f8 1feffe05 mul32 pdata ,shutter_ble_data_buffer ,pdata 
+60f9 d84044d8 arg mem_ble_data_buffer1 ,temp 
+60fa 98408c00 iadd temp ,contr 
+60fb 20206149 branch le_send_notify_from_list 
+
+queue_push_one_byte:
+60fc 67e084c4 store 1 ,mem_pdatatemp 
+60fd da2004c4 arg mem_pdatatemp ,rega 
+60fe 20206ffd branch queue_push 
+
+queue_pop_one_byte:
+60ff da2004c4 arg mem_pdatatemp ,rega 
+6100 20407015 call queue_pop 
+6101 24740000 nrtn user 
+6102 6fe084c4 fetch 1 ,mem_pdatatemp 
+6103 20600000 rtn 
+
+ble_shutter_receive_data:
+6104 6fe1436f fetch 2 ,mem_le_att_handle 
+6105 c00c6063 beq gatt_keyboard_write_handle ,ble_shutter_process_reconnect_complete 
+6106 20600000 rtn 
+
+shutter_init_param:
+6107 70468202 jam 0x02 ,mem_shutter_power_off_timeout 
+6108 58200008 setarg 0x00200008 
+6109 67e24458 store 4 ,mem_ble_shutter_interval_min 
+610a 592c0005 setarg 0x012c0005 
+610b e7e20005 istore 4 ,contw 
+610c 7042b617 jam 0x17 ,mem_le_local_mtu 
+610d 5800001b setarg 0x1b 
+610e 67e14307 store 2 ,mem_le_pairing_handle 
+610f 202041e5 branch le_set_fixed_ltk_justwork 
+
+shutter_load_buffer_config_form_datarom:
+6110 df200028 arg ble_key_value_list_size ,loopcnt 
+6111 d8a044d8 arg mem_ble_data_buffer1 ,contw 
+6112 d8c04807 arg mem_shutter_key_value_list ,contr 
+6113 2020740c branch memcpy_fast 
+
+shutter_load_dy_keyvalue_buffer_config_form_datarom:
+6114 df200280 arg bt_dy_key_value_list_size ,loopcnt 
+6115 d8a04b10 arg mem_shutter_mousekey_value_list ,contw 
+6116 d8c09535 arg ble_shutter_dy_mousekey_value_list_addr ,contr 
+6117 2020740c branch memcpy_fast 
+
+shutter_soft_swtich_power_off:
+6118 da200000 arg 0 ,rega 
+6119 da60466b arg mem_shutter_power_off_led_style ,regc 
+611a 20406f16 call ui_led_set_style_global 
+611b 204060c8 call shutter_disconnect_current_connection 
+
+shutter_wait_power_off:
+611c 6fe0c682 fetch 1 ,mem_shutter_power_off_timeout 
+611d 67e0c683 store 1 ,mem_shutter_power_off_timer 
+611e 20600000 rtn 
+
+ui_soft_swtich_init:
+611f 58000000 setarg ss_state_power_up 
+6120 2040612b call ui_soft_swtich_init_power_on_time 
+6121 70442f01 jam ui_button_state_up ,mem_ui_button_last_state 
+6122 20406ec2 call ui_button_init 
+6123 20406ecc call ui_button_polling 
+
+ui_soft_switch_first_power_on:
+6124 6fe0c689 fetch 1 ,mem_shutter_soft_switch_first_power_on 
+6125 203a6128 branch ui_soft_swtich_init_next ,blank 
+6126 6fe084f1 fetch 1 ,mem_wakup_from_power_flag 
+6127 c3016137 bbit0 2 ,ui_soft_switch_power_on 
+
+ui_soft_swtich_init_next:
+6128 6fe14434 fetch 2 ,mem_ui_state_map 
+6129 c3860000 rtnbit1 ui_state_btn_down 
+612a 20204e13 branch app_enter_hibernate 
+
+ui_soft_swtich_init_power_on_time:
+612b 684943e2 fetcht 2 ,mem_power_param_ptr 
+612c e7e08002 istore 1 ,temp 
+612d efe08005 ifetch 1 ,contw 
+612e 67e0c436 store 1 ,mem_ui_button_timeout 
+612f 20600000 rtn 
+
+ui_soft_switch_botton_up:
+6130 6fe143e2 fetch 2 ,mem_power_param_ptr 
+6131 efe0803f ifetch 1 ,pdata 
+6132 c1800000 rtnne ss_state_power_up 
+6133 20204e13 branch app_enter_hibernate 
+
+ui_soft_switch_botton_long_press:
+6134 684943e2 fetcht 2 ,mem_power_param_ptr 
+6135 efe08002 ifetch 1 ,temp 
+6136 c000e13f beq ss_state_power_on ,ui_soft_switch_power_off 
+
+ui_soft_switch_power_on:
+6137 58000001 setarg ss_state_power_on 
+6138 684943e2 fetcht 2 ,mem_power_param_ptr 
+6139 e7e08002 istore 1 ,temp 
+613a 18408c02 add temp ,ss_power_off_time ,contr 
+613b efe08006 ifetch 1 ,contr 
+613c e7e08036 istore 1 ,mem_ui_button_timeout 
+613d efe10006 ifetch 2 ,contr 
+613e 20207487 branch callback_func 
+
+ui_soft_switch_power_off:
+613f 58000002 setarg ss_state_power_off 
+6140 2040612b call ui_soft_swtich_init_power_on_time 
+6141 18408c05 add temp ,ss_power_off_cb ,contr 
+6142 efe10006 ifetch 2 ,contr 
+6143 203a4e13 branch app_enter_hibernate ,blank 
+6144 20207487 branch callback_func 
+
+shutter_ble_adv_interval_set:
+6145 67e140a5 store 2 ,mem_lpm_interval 
+6146 1fe0fffc increase -4 ,pdata 
+6147 67e14360 store 2 ,mem_le_adv_interval 
+6148 20600000 rtn 
+
+le_send_notify_from_list:
+6149 efe08006 ifetch 1 ,contr 
+614a 1fe22200 copy pdata ,rega 
+614b e8410006 ifetcht 2 ,contr 
+614c 204073c0 call store_contr 
+614d 20404513 call le_att_malloc_tx_notify 
+614e 1a227200 copy rega ,loopcnt 
+614f 204073ba call get_contr 
+6150 20207419 branch memcpy 
+
+shutter_le_uuid_table_conf:
+6151 5800468b setarg mem_shutter_le_uuid_sup 
+6152 67e142cc store 2 ,mem_ui_le_uuid_table 
+6153 20600000 rtn 
+
+shutter_dy_le_uuid_table_conf:
+6154 580093c0 setarg ble_shutter_dy_gatt_list_addr 
+6155 67e142cc store 2 ,mem_ui_le_uuid_table 
+6156 20600000 rtn 
+
+shutter_default_init:
+6157 6fe14684 fetch 2 ,mem_shutter_key_conf0_temp 
+6158 67e14480 store 2 ,mem_shutter_key_conf0 
+6159 6fe0c686 fetch 1 ,mem_shutter_led_struct_app_led_gpio_temp 
+615a 67e0c662 store 1 ,mem_shutter_led_struct_app_led_gpio 
+615b 67e0c66d store 1 ,mem_shutter_power_off_led_style_gpio 
+615c 6fe0c687 fetch 1 ,mem_shutter_hard_soft_switch_case_temp 
+615d 67e0c474 store 1 ,mem_shutter_hard_soft_switch_case 
+615e 6fe0c688 fetch 1 ,mem_shutter_soft_switch_button_gpio_temp 
+615f 67e0c475 store 1 ,mem_shutter_soft_switch_button_gpio 
+6160 58000030 setarg 0x0030 
+6161 67e14445 store 2 ,mem_classic_shutter_random_mac_offset_addr 
+6162 58000000 setarg 0x0000 
+6163 67e1443d store 2 ,mem_shutter_config_eeprom_offset_addr 
+6164 58000002 setarg 0x0002 
+6165 67e14488 store 2 ,mem_key0_press 
+6166 67e1448d store 2 ,mem_key1_press 
+6167 58000006 setarg 0x0006 
+6168 67e144b0 store 2 ,mem_key0_release 
+6169 67e144b5 store 2 ,mem_key1_release 
+616a 58000007 setarg 0x0007 
+616b 67e14492 store 2 ,mem_key2_press 
+616c 58000008 setarg 0x0008 
+616d 67e144ba store 2 ,mem_key2_release 
+616e 58004476 setarg mem_shutter_soft_switch_power_state 
+616f 67e143e2 store 2 ,mem_power_param_ptr 
+6170 58201400 setarg 0x201400 
+6171 67e1c476 store 3 ,mem_shutter_soft_switch_power_state 
+6172 70409401 jam 0x01 ,mem_lpm_mode 
+6173 58000100 setarg 0x0100 
+6174 67e140a5 store 2 ,mem_lpm_interval 
+6175 7040a708 jam 0x08 ,mem_lpm_overhead 
+6176 7040c105 jam 0x05 ,mem_lpm_mult 
+6177 7040c202 jam 0x02 ,mem_lpm_mult_timeout 
+6178 58000096 setarg 0x0096 
+6179 67e14450 store 2 ,mem_ble_shutter_reconn_blink_on_time 
+617a e7e10005 istore 2 ,contw 
+617b 58000296 setarg 0x0296 
+617c 67e14454 store 2 ,mem_ble_shutter_discovery_blink_on_time 
+617d e7e10005 istore 2 ,contw 
+617e 38000010 setsect 0 ,0x10 
+617f 38048008 setsect 1 ,0x8008 
+6180 380ac000 setsect 2 ,0x2c000 
+6181 380c0004 setsect 3 ,0x04 
+6182 67e44460 store 8 ,mem_ble_shutter_interval_min_new 
+6183 70443901 jam 0x01 ,mem_ui_led_struct_num 
+6184 58004660 setarg mem_shutter_led_struct_app_led 
+6185 67e1443a store 2 ,mem_ui_led_struct_ptr 
+6186 58000000 setarg 0x0000 
+6187 67e14660 store 2 ,mem_shutter_led_struct_app_led 
+6188 380001a0 setsect 0 ,0x1a0 
+6189 38040068 setsect 1 ,0x68 
+618a 38080000 setsect 2 ,0x00 
+618b 380c0000 setsect 3 ,0x00 
+618c 67e44663 store 8 ,mem_shutter_led_struct_app_led_on_time 
+618d 58000301 setarg 0x0301 
+618e 67e1466b store 2 ,mem_shutter_power_off_led_style 
+618f 380001a0 setsect 0 ,0x1a0 
+6190 380400e8 setsect 1 ,0xe8 
+6191 38080000 setsect 2 ,0x00 
+6192 380c0000 setsect 3 ,0x00 
+6193 67e4466e store 8 ,mem_shutter_power_off_led_style_on_time 
+6194 5800000e setarg 0x000e 
+6195 67e14448 store 2 ,mem_ble_shutter_reconn_adv_interval 
+6196 58000140 setarg 0x0140 
+6197 67e1444a store 2 ,mem_ble_shutter_discovery_adv_interval 
+6198 67e14360 store 2 ,mem_le_adv_interval 
+6199 58000050 setarg 0x0050 
+619a 67e1444c store 2 ,mem_ble_shutter_reconn_timeout 
+619b 70436a07 jam 0x07 ,mem_le_adv_channel_map 
+619c 70435f00 jam 0x00 ,mem_le_adv_enable 
+619d 380000fb setsect 0 ,0xfb 
+619e 3806c212 setsect 1 ,0x2c212 
+619f 3808800f setsect 2 ,0x800f 
+61a0 380c0021 setsect 3 ,0x21 
+61a1 67e44384 store 8 ,mem_local_rx_max_octets 
+61a2 38000bb8 setsect 0 ,0x0bb8 
+61a3 380402ee setsect 1 ,0x02ee 
+61a4 67e2446c store 4 ,mem_ble_shutter_discovery_timeout 
+61a5 58004591 setarg mem_queue_each_size 
+61a6 67e143b4 store 2 ,mem_queue_ptr 
+61a7 58002001 setarg 0x2001 
+61a8 67e14591 store 2 ,mem_queue_each_size 
+61a9 70431f1f jam 0x1f ,mem_le_adv_data_len 
+61aa 38010102 setsect 0 ,0x10102 
+61ab 380480c1 setsect 1 ,0x80c1 
+61ac 38098120 setsect 2 ,0x18120 
+61ad 380c640c setsect 3 ,0x640c 
+61ae 67e4c320 store 9 ,mem_le_adv_data 
+61af 380003c1 setsect 0 ,0x3c1 
+61b0 e7e10005 istore 2 ,contw 
+61b1 70433f1f jam 0x1f ,mem_le_scan_data_len 
+61b2 3802090d setsect 0 ,0x2090d 
+61b3 38074c15 setsect 1 ,0x34c15 
+61b4 380a8532 setsect 2 ,0x28532 
+61b5 380dd1d5 setsect 3 ,0x1d1d5 
+61b6 67e4c340 store 9 ,mem_le_scan_data 
+61b7 38026574 setsect 0 ,0x26574 
+61b8 3804001c setsect 1 ,0x1c 
+61b9 e7e18005 istore 3 ,contw 
+61ba 5800447d setarg mem_shutter_keyscan 
+61bb 67e143de store 2 ,mem_keyscan_ptr 
+61bc 70447d02 jam 0x02 ,mem_shutter_key_num 
+61bd 580045b6 setarg mem_shutter_nv_data 
+61be 67e143b1 store 2 ,mem_nv_data_ptr 
+61bf 7043b305 jam 0x05 ,mem_nv_data_number 
+61c0 6fe0c68a fetch 1 ,mem_shutter_dy_conf 
+61c1 c0006151 beq shutter_type ,shutter_le_uuid_table_conf 
+61c2 c000e154 beq shutter_dy_type ,shutter_dy_le_uuid_table_conf 
+61c3 20600000 rtn 
+
+shutter_dy_6_key_conf:
+61c4 6fe34e00 fetch shutter_six_key ,mem_shutter_dy_key_conf 
+61c5 67e34480 store shutter_six_key ,mem_shutter_key_conf0 
+61c6 70447d06 jam shutter_six_key ,mem_shutter_key_num 
+61c7 5800447d setarg mem_shutter_key_num 
+61c8 67e143de store 2 ,mem_keyscan_ptr 
+61c9 20600000 rtn 
+
+shutter_dy_7_key_conf:
+61ca 6fe3ce00 fetch shutter_seven_key ,mem_shutter_dy_key_conf 
+61cb 67e3c480 store shutter_seven_key ,mem_shutter_key_conf0 
+61cc 70447d07 jam shutter_seven_key ,mem_shutter_key_num 
+61cd 5800447d setarg mem_shutter_key_num 
+61ce 67e143de store 2 ,mem_keyscan_ptr 
+61cf 20600000 rtn 
+
+shutter_dy_key_conf:
+61d0 6fe0cdff fetch 1 ,mem_shutter_key_num_conf 
+61d1 c00361c4 beq shutter_six_key ,shutter_dy_6_key_conf 
+61d2 c003e1ca beq shutter_seven_key ,shutter_dy_7_key_conf 
+61d3 20600000 rtn 
+
+shutter_dy_adv_conf:
+61d4 44b1c00c bpatch patch0c_3 ,mem_patch0c 
+61d5 6fe44e26 fetch 8 ,mem_shutter_ble_discovery_time_conf 
+61d6 67e4446c store 8 ,mem_ble_shutter_discovery_timeout 
+61d7 58000096 setarg 0x0096 
+61d8 67e1444c store 2 ,mem_ble_shutter_reconn_timeout 
+61d9 6fe3ce76 fetch 7 ,mem_shutter_led_on_light_dark_led_conf 
+61da 67e3c660 store 7 ,mem_shutter_led_struct_app_led 
+61db 6fe3ce7d fetch 7 ,mem_shutter_led_off_light_dark_led_conf 
+61dc 67e3c66b store 7 ,mem_shutter_power_off_led_style 
+61dd 6fe24e84 fetch 4 ,mem_shutter_reconn_blink_on_time_conf 
+61de 67e24450 store 4 ,mem_ble_shutter_reconn_blink_on_time 
+61df 6fe24e88 fetch 4 ,mem_shutter_discovery_blink_on_time_conf 
+61e0 67e24454 store 4 ,mem_ble_shutter_discovery_blink_on_time 
+61e1 5800000e setarg 0x000e 
+61e2 67e14448 store 2 ,mem_ble_shutter_reconn_adv_interval 
+61e3 58000140 setarg 0x0140 
+61e4 67e1444a store 2 ,mem_ble_shutter_discovery_adv_interval 
+61e5 67e14360 store 2 ,mem_le_adv_interval 
+61e6 580093c0 setarg ble_shutter_dy_gatt_list_addr 
+61e7 67e142cc store 2 ,mem_ui_le_uuid_table 
+61e8 20406114 call shutter_load_dy_keyvalue_buffer_config_form_datarom 
+61e9 6fe44e1e fetch 8 ,mem_ble_shutter_dy_interval_min_new 
+61ea 67e44460 store 8 ,mem_ble_shutter_interval_min_new 
+61eb 20600000 rtn 
+
+shutter_dy_init:
+61ec 20406eb3 call enable_authrom 
+61ed 20758000 rtn wake 
+61ee 204061d0 call shutter_dy_key_conf 
+61ef 204061d4 call shutter_dy_adv_conf 
+61f0 58006436 setarg shutter_le_parse_l2cap 
+61f1 67e14314 store 2 ,mem_le_l2cap_parse_cb 
+61f2 58006204 setarg shutter_dy_process_idle 
+61f3 67e14394 store 2 ,mem_cb_idle_process 
+61f4 5800625d setarg shutter_dy_process_bb_event 
+61f5 67e14396 store 2 ,mem_cb_bb_event_process 
+61f6 58006426 setarg ble_shutter_dy_receive_data 
+61f7 67e14398 store 2 ,mem_cb_att_write 
+61f8 58006235 setarg shutter_dy_le_bb_event_timer 
+61f9 67e1439c store 2 ,mem_cb_event_timer 
+61fa 5800627d setarg shutter_dy_key_change 
+61fb 67e1447e store 2 ,mem_cb_shutter_keycan 
+61fc 2040603c call shutter_common_init 
+61fd 58000027 setarg 0x27 
+61fe 67e14307 store 2 ,mem_le_pairing_handle 
+61ff 6fe44460 fetch 8 ,mem_ble_shutter_interval_min_new 
+6200 67e44458 store 8 ,mem_ble_shutter_interval_min 
+6201 2040620e call shutter_dy_iphone_every_move_max_set 
+6202 44b2400c bpatch patch0c_4 ,mem_patch0c 
+6203 20206037 branch shutter_power_switch 
+
+shutter_dy_process_idle:
+6204 2040621b call shutter_dy_shutter_send_data_to_master 
+6205 d8e00009 arg key_scan_timer ,queue 
+6206 2040742e call timer_check 
+6207 247a0000 nrtn blank 
+6208 58000020 setarg 0x20 
+6209 d8e00009 arg key_scan_timer ,queue 
+620a 20407420 call timer_init 
+620b 78547c00 disable user 
+620c 20406c75 call keyscan_process_lpm_before 
+620d 202062e0 branch shutter_dy_keyscan_key_process 
+
+shutter_dy_iphone_every_move_max_set:
+620e 5800001f setarg 0x1f 
+620f 1feffe0a mul32 pdata ,every_payload_len ,pdata 
+6210 d8404b10 arg mem_shutter_mousekey_value_list ,temp 
+6211 9840a200 iadd temp ,rega 
+6212 1a20a203 increase 3 ,rega 
+6213 d8400062 arg iphone_once_max_move_value ,temp 
+6214 e0408011 istoret 1 ,rega 
+6215 1a20a20b increase 11 ,rega 
+6216 dfe00fff arg 0xfff ,pdata 
+6217 98467e00 isub temp ,pdata 
+6218 1ff27e00 lshift4 pdata ,pdata 
+6219 e7e10011 istore 2 ,rega 
+621a 20600000 rtn 
+
+shutter_dy_shutter_send_data_to_master:
+621b 6fe14434 fetch 2 ,mem_ui_state_map 
+621c c284e220 bbit1 ui_state_ble_connected ,shutter_dy_pop_queue_to_ble_data 
+621d d8a04593 arg mem_queue_curr_num ,contw 
+621e df200023 arg 35 ,loopcnt 
+621f 202073ec branch clear_mem 
+
+shutter_dy_pop_queue_to_ble_data:
+6220 204041cc call le_fifo_check_nearly_full 
+6221 247a0000 nrtn blank 
+6222 20407027 call queue_empty 
+6223 207a0000 rtn blank 
+6224 684a494f fetcht 4 ,mem_key_send_clk 
+6225 1c427e00 copy clkn_bt ,pdata 
+6226 98460400 isub temp ,temp 
+6227 20628000 rtn zero 
+6228 2421622c nbranch shutter_dy_pop_queue_to_ble_data2 ,positive 
+6229 6fe0c94e fetch 1 ,mem_send_data_delay 
+622a 98467c00 isub temp ,null 
+622b 20610000 rtn positive 
+
+shutter_dy_pop_queue_to_ble_data2:
+622c 1c427e00 copy clkn_bt ,pdata 
+622d 67e2494f store 4 ,mem_key_send_clk 
+622e 204060ff call queue_pop_one_byte 
+622f 24740000 nrtn user 
+6230 1fe0ffff pincrease -1 
+6231 1feffe0a mul32 pdata ,10 ,pdata 
+6232 d8404b10 arg mem_shutter_mousekey_value_list ,temp 
+6233 98408c00 iadd temp ,contr 
+6234 20206149 branch le_send_notify_from_list 
+
+shutter_dy_le_bb_event_timer:
+6235 20406596 call shutter_dy_shutter_1s_timer 
+6236 2040623a call shutter_dy_iphone_move_mid_timer 
+6237 20406251 call shutter_dy_clear_key_state_timer 
+6238 2040608b call shutter_check_sleep_timer 
+6239 20206257 branch shutter_dy_check_power_off_timer 
+
+shutter_dy_iphone_move_mid_timer:
+623a da604de1 arg mem_shutter_move_mid_timer ,regc 
+623b da40623d arg shutter_dy_iphone_move_mid_timeout ,regb 
+623c 20204dcc branch timer_single_step 
+
+shutter_dy_iphone_move_mid_timeout:
+623d 20407027 call queue_empty 
+623e 247a0000 nrtn blank 
+623f 6fe1483d fetch 2 ,mem_key_value_xmem 
+6240 247a0000 nrtn blank 
+
+shutter_dy_iphone_move_mid:
+6241 20406499 call shutter_dy_check_iphone 
+6242 203a624b branch shutter_dy_android_like_loaction_mid ,blank 
+6243 18e27e00 copy queue ,pdata 
+6244 2fe00e04 compare 0x04 ,pdata ,0x07 
+6245 2020e24d branch shutter_dy_iphone_up_mid ,true 
+6246 18e27e00 copy queue ,pdata 
+6247 2fe00e01 compare 0x01 ,pdata ,0x07 
+6248 2020e24f branch shutter_dy_iphone_like_mid ,true 
+6249 da604dd8 arg mem_shutter_iphone_move_mid ,regc 
+624a 202060eb branch push_buffer_in_queue 
+
+shutter_dy_android_like_loaction_mid:
+624b da604dea arg mem_shutter_android_move_mid ,regc 
+624c 202060eb branch push_buffer_in_queue 
+
+shutter_dy_iphone_up_mid:
+624d da604def arg mem_shutter_iphone_up_mid ,regc 
+624e 202060eb branch push_buffer_in_queue 
+
+shutter_dy_iphone_like_mid:
+624f da604df7 arg mem_shutter_iphone_like_mid ,regc 
+6250 202060eb branch push_buffer_in_queue 
+
+shutter_dy_clear_key_state_timer:
+6251 da604b0d arg mem_shutter_like_timeout ,regc 
+6252 da406254 arg shutter_dy_clear_key_state_timeout ,regb 
+6253 20204dcc branch timer_single_step 
+
+shutter_dy_clear_key_state_timeout:
+6254 df20000a arg shutter_key_conf_sate_bytes ,loopcnt 
+6255 d8a0495d arg mem_shutter_key_state1 ,contw 
+6256 202073ec branch clear_mem 
+
+shutter_dy_check_power_off_timer:
+6257 da604683 arg mem_shutter_power_off_timer ,regc 
+6258 da40625a arg shutter_dy_check_power_off_timeout ,regb 
+6259 20204dcc branch timer_single_step 
+
+shutter_dy_check_power_off_timeout:
+625a 6fe14434 fetch 2 ,mem_ui_state_map 
+625b c284e11c bbit1 ui_state_ble_connected ,shutter_wait_power_off 
+625c 20204e13 branch app_enter_hibernate 
+
+shutter_dy_process_bb_event:
+625d 1a627e00 copy regc ,pdata 
+625e c00a6271 beq bt_evt_le_connected ,ble_shutter_dy_process_baseband_connect 
+625f c00ae26d beq bt_evt_le_disconnected ,ble_shutter_dy_process_baseband_disconnect 
+6260 c018e264 beq bt_evt_le_pairing_success ,ble_shutter_dy_pairing_success 
+6261 c1200000 rtneq bt_evt_le_parse_conn_papa_update_rsp 
+6262 c0196429 beq bt_evt_le_start_enc ,shutter_dy_le_find_service_hand_by_uuid 
+6263 20206053 branch shutter_process_bb_event 
+
+ble_shutter_dy_pairing_success:
+6264 704de201 jam 1 ,mem_shutter_pairing_success 
+6265 204064c2 call shutter_dy_clear_move_config 
+6266 6fe14e90 fetch 2 ,mem_android_initial_move_x 
+6267 67e14dd0 store 2 ,mem_shutter_move_data_x 
+6268 68494e92 fetcht 2 ,mem_android_initial_move_y 
+6269 58000fff setarg 0xfff 
+626a 98467e00 isub temp ,pdata 
+626b 67e14dd2 store 2 ,mem_shutter_move_data_y 
+626c 20600000 rtn 
+
+ble_shutter_dy_process_baseband_disconnect:
+626d 704dcd00 jam 0 ,mem_shutter_le_conned 
+626e 704de200 jam 0 ,mem_shutter_pairing_success 
+626f 2040631e call shutter_dy_move_mode_disable 
+6270 20206060 branch ble_shutter_process_baseband_disconnect 
+
+ble_shutter_dy_process_baseband_connect:
+6271 1c427e00 copy clkn_bt ,pdata 
+6272 67e2494f store 4 ,mem_key_send_clk 
+6273 20406492 call shutter_dy_remote_not_iphone 
+6274 2020605c branch ble_shutter_process_baseband_connect 
+
+shutter_dy_check_send_data:
+6275 78567c00 disable user2 
+6276 6fe14470 fetch 2 ,mem_shutter_sleep_timeout 
+6277 67e14472 store 2 ,mem_shutter_sleep_timer 
+6278 204060d2 call shutter_check_bluetooth_conn 
+6279 203460d6 branch shutter_change_bluetooth_status_bt_disconn ,user 
+627a 204060cb call shutter_check_data_enable 
+627b 24740000 nrtn user 
+627c 202074cc branch enable_user2 
+
+shutter_dy_key_change:
+627d 20406275 call shutter_dy_check_send_data 
+627e 24760000 nrtn user2 
+627f 1a227e00 deposit rega 
+6280 203a62ac branch shutter_dy_shutter_key_release ,blank 
+
+shutter_dy_key_press:
+6281 704b0e01 jam 1 ,mem_shutter_key_pressed 
+6282 20404e0f call app_led_on 
+6283 204062a1 call shutter_dy_key_press_clk 
+6284 204062d3 call shutter_dy_jude_queue_size 
+6285 20610000 rtn positive 
+6286 18e27e00 copy queue ,pdata 
+6287 6848cde5 fetcht 1 ,mem_last_press_key_value 
+6288 98467c00 isub temp ,null 
+6289 2442e29b ncall shutter_dy_iphone_check_move_mid ,zero 
+628a 18e27e00 copy queue ,pdata 
+628b 67e0cde5 store 1 ,mem_last_press_key_value 
+628c 6848cde8 fetcht 1 ,mem_move_mode_key_index 
+628d 98467c00 isub temp ,null 
+628e 2022e299 branch shutter_dy_key_move_to_specify_location ,zero 
+628f 6fe0cde9 fetch 1 ,mem_move_mode_trigger_enable 
+6290 243a6294 nbranch shutter_dy_move_set ,blank 
+
+shutter_dy_page_set:
+6291 2040649b call shutter_dy_le_get_press_ptr 
+6292 dfe0000a arg max_queue_new_press ,pdata 
+6293 202062cc branch shutter_dy_push_queue_press_or_release 
+
+shutter_dy_move_set:
+6294 204064be call shutter_dy_jude_clear_move_config 
+6295 18e27e00 copy queue ,pdata 
+6296 c000e291 beq shutter_like_key_num ,shutter_dy_page_set 
+6297 204063a3 call shutter_dy_check_move_data 
+6298 20206356 branch shutter_dy_move_to_specify_location 
+
+shutter_dy_key_move_to_specify_location:
+6299 704de601 jam 1 ,mem_shutter_first_move 
+629a 20206356 branch shutter_dy_move_to_specify_location 
+
+shutter_dy_iphone_check_move_mid:
+629b 44b2c00c bpatch patch0c_5 ,mem_patch0c 
+629c 6fe0cde9 fetch 1 ,mem_move_mode_trigger_enable 
+629d 203a6241 branch shutter_dy_iphone_move_mid ,blank 
+629e 18e27e00 copy queue ,pdata 
+629f c000e241 beq shutter_like_key_num ,shutter_dy_iphone_move_mid 
+62a0 20600000 rtn 
+
+shutter_dy_key_press_clk:
+62a1 dfe0000a arg shutter_key_conf_sate_bytes ,pdata 
+62a2 98effe00 imul32 queue ,pdata 
+62a3 da604953 arg mem_shutter_key_state0 ,regc 
+62a4 9a60a600 iadd regc ,regc 
+62a5 1c427e00 copy clkn_bt ,pdata 
+62a6 e7e20013 istore key_state_press_clk_length ,regc 
+62a7 1a60a604 increase key_state_press_count_offset ,regc 
+62a8 efe08013 ifetch 1 ,regc 
+62a9 1fe0fe01 increase 1 ,pdata 
+62aa e7e08013 istore 1 ,regc 
+62ab 20600000 rtn 
+
+shutter_dy_shutter_key_release:
+62ac 44b3400c bpatch patch0c_6 ,mem_patch0c 
+62ad 6fe0cde9 fetch 1 ,mem_move_mode_trigger_enable 
+62ae 205a4e11 call app_led_off ,blank 
+
+shutter_dy_shutter_key_release_time:
+62af dfe0000a arg shutter_key_conf_sate_bytes ,pdata 
+62b0 98effe00 imul32 queue ,pdata 
+62b1 da604953 arg mem_shutter_key_state0 ,regc 
+62b2 9a60a600 iadd regc ,regc 
+62b3 e8420013 ifetcht 4 ,regc 
+62b4 18467c00 sub temp ,0 ,null 
+62b5 20628000 rtn zero 
+62b6 1c427e00 copy clkn_bt ,pdata 
+62b7 98460400 isub temp ,temp 
+62b8 24416f56 ncall ui_timer_timeout ,positive 
+62b9 1a608c09 add regc ,key_state_longpress_offset ,contr 
+62ba efe08006 ifetch 1 ,contr 
+62bb 243a62d8 nbranch shutter_dy_push_queue_long_release ,blank 
+62bc 1a60a605 increase key_state_release_clk_offset ,regc 
+62bd 1c427e00 copy clkn_bt ,pdata 
+62be e7e20013 istore key_state_release_clk_length ,regc 
+62bf 20600000 rtn 
+
+shutter_dy_push_queue_release:
+62c0 1a608c04 add regc ,4 ,contr 
+62c1 efe08006 ifetch 1 ,contr 
+62c2 202062c3 branch shutter_dy_push_queue_release1 
+
+shutter_dy_push_queue_release1:
+62c3 204062dd call shutter_clear_dy_key_state 
+62c4 6fe0cde9 fetch 1 ,mem_move_mode_trigger_enable 
+62c5 243a62cf nbranch shutter_dy_move_mode_queue_release ,blank 
+
+shutter_dy_push_queue_release1_next:
+62c6 204062d3 call shutter_dy_jude_queue_size 
+62c7 20610000 rtn positive 
+62c8 204064a1 call shutter_dy_le_get_release_ptr 
+62c9 18e27e00 copy queue ,pdata 
+62ca c001e4a9 beq shutter_photo_key_num ,shutter_dy_le_get_release_ptr_volume 
+62cb dfe0000a arg max_queue_num_release ,pdata 
+
+shutter_dy_push_queue_press_or_release:
+62cc 98effe00 imul32 queue ,pdata 
+62cd 9a60a600 iadd regc ,regc 
+62ce 202060eb branch push_buffer_in_queue 
+
+shutter_dy_move_mode_queue_release:
+62cf 18e27e00 copy queue ,pdata 
+62d0 c000e2c6 beq shutter_like_key_num ,shutter_dy_push_queue_release1_next 
+62d1 c001e2c6 beq shutter_photo_key_num ,shutter_dy_push_queue_release1_next 
+62d2 20600000 rtn 
+
+shutter_dy_jude_queue_size:
+62d3 2040702f call queue_get_size 
+62d4 e8408006 ifetcht 1 ,contr 
+62d5 98467e00 isub temp ,pdata 
+62d6 1fe67c0a sub pdata ,max_queue_new_press ,null 
+62d7 20600000 rtn 
+
+shutter_dy_push_queue_long_release:
+62d8 704de001 jam 1 ,mem_shutter_long_key_released_flag 
+62d9 204062dd call shutter_clear_dy_key_state 
+62da da6049f4 arg mem_key0_long_release ,regc 
+62db dfe00003 arg max_queue_num_long_release ,pdata 
+62dc 202062cc branch shutter_dy_push_queue_press_or_release 
+
+shutter_clear_dy_key_state:
+62dd df20000a arg shutter_key_conf_sate_bytes ,loopcnt 
+62de 1a620a00 copy regc ,contw 
+62df 202073ec branch clear_mem 
+
+shutter_dy_keyscan_key_process:
+62e0 6fe1483d fetch 2 ,mem_key_value_xmem 
+62e1 67e143e0 store 2 ,mem_key_value_retention 
+62e2 2040632a call shutter_dy_keyscan_key_process_next 
+62e3 6fe143e0 fetch 2 ,mem_key_value_retention 
+62e4 67e1483d store 2 ,mem_key_value_xmem 
+62e5 d8e00000 arg 0 ,queue 
+62e6 6fe0c47d fetch 1 ,mem_shutter_key_num 
+62e7 1fe27200 copy pdata ,loopcnt 
+62e8 da604953 arg mem_shutter_key_state0 ,regc 
+
+shutter_dy_keyscan_key_check_release_loop:
+62e9 1f227e00 copy loopcnt ,pdata 
+62ea 67e104cc store 2 ,mem_temp 
+62eb 1a627e00 copy regc ,pdata 
+62ec 67e104e0 store 2 ,mem_regc 
+62ed 18e27e00 copy queue ,pdata 
+62ee 67e104ce store 2 ,mem_temp + 2 
+62ef 20406320 call shutter_dy_keyscan_key_check_release 
+62f0 6fe104e0 fetch 2 ,mem_regc 
+62f1 1fe22600 copy pdata ,regc 
+62f2 6fe104ce fetch 2 ,mem_temp + 2 
+62f3 1fe20e00 copy pdata ,queue 
+62f4 204062fd call shutter_dy_keyscan_key_check_long_press 
+62f5 6fe104ce fetch 2 ,mem_temp + 2 
+62f6 1fe08e01 add pdata ,1 ,queue 
+62f7 6fe104e0 fetch 2 ,mem_regc 
+62f8 1fe0a60a add pdata ,shutter_key_conf_sate_bytes ,regc 
+62f9 6fe104cc fetch 2 ,mem_temp 
+62fa 1fe27200 copy pdata ,loopcnt 
+62fb c20062e9 loop shutter_dy_keyscan_key_check_release_loop 
+62fc 20600000 rtn 
+
+shutter_dy_keyscan_key_check_long_press:
+62fd efe20013 ifetch key_state_press_clk_length ,regc 
+62fe 207a0000 rtn blank 
+62ff 1fe20400 copy pdata ,temp 
+6300 1c427e00 copy clkn_bt ,pdata 
+6301 98460400 isub temp ,temp 
+6302 24610000 nrtn positive 
+6303 580009c4 setarg 2500 
+6304 98467c00 isub temp ,null 
+6305 20610000 rtn positive 
+6306 1c427e00 copy clkn_bt ,pdata 
+6307 e7e20013 istore 4 ,regc 
+6308 1a60a609 increase key_state_longpress_offset ,regc 
+6309 58000001 setarg 1 
+630a e7e08013 istore key_state_longpress_length ,regc 
+630b 6fe0cde0 fetch 1 ,mem_shutter_long_key_released_flag 
+630c 207a0000 rtn blank 
+630d 704de000 jam 0 ,mem_shutter_long_key_released_flag 
+630e 44b3c00c bpatch patch0c_7 ,mem_patch0c 
+630f 6fe0cde7 fetch 1 ,mem_move_mode_set 
+6310 c0006313 beq move_combine_key ,shutter_dy_key_long_press_set_key_normal 
+6311 c000e316 beq move_single_key ,shutter_dy_key_long_press_set_move_trigger 
+6312 20600000 rtn 
+
+shutter_dy_key_long_press_set_key_normal:
+6313 da6049df arg mem_key0_long_press ,regc 
+6314 dfe00003 arg max_queue_num_long_release ,pdata 
+6315 202062cc branch shutter_dy_push_queue_press_or_release 
+
+shutter_dy_key_long_press_set_move_trigger:
+6316 18e27e00 copy queue ,pdata 
+6317 6848cde8 fetcht 1 ,mem_move_mode_key_index 
+6318 98467c00 isub temp ,null 
+6319 2422e313 nbranch shutter_dy_key_long_press_set_key_normal ,zero 
+631a 6fe0cde9 fetch 1 ,mem_move_mode_trigger_enable 
+631b 79407e00 setflip 0 ,pdata 
+631c 67e0cde9 store 1 ,mem_move_mode_trigger_enable 
+631d 247a0000 nrtn blank 
+
+shutter_dy_move_mode_disable:
+631e 704de900 jam 0 ,mem_move_mode_trigger_enable 
+631f 20204e11 branch app_led_off 
+
+shutter_dy_keyscan_key_check_release:
+6320 1a60a405 add regc ,key_state_release_clk_offset ,regb 
+6321 efe20012 ifetch key_state_release_clk_length ,regb 
+6322 207a0000 rtn blank 
+6323 1fe20400 copy pdata ,temp 
+6324 1c427e00 copy clkn_bt ,pdata 
+6325 98460400 isub temp ,temp 
+6326 24416f56 ncall ui_timer_timeout ,positive 
+6327 580003e8 setarg 1000 
+6328 98467c00 isub temp ,null 
+6329 202062c0 branch shutter_dy_push_queue_release 
+
+shutter_dy_keyscan_key_process_next:
+632a 6fe143de fetch 2 ,mem_key_num_ptr 
+632b efe0803f ifetch 1 ,pdata 
+632c 207a0000 rtn blank 
+632d 58000000 setarg 0 
+632e 67e10546 store 2 ,mem_key_value_temp 
+632f 20406c5d call keyscan_scan_key 
+6330 24346ef1 nbranch lpm_button_clean_wake_lock ,user 
+6331 20406eef call lpm_button_get_wake_lock 
+6332 78547c00 disable user 
+6333 44b4400d bpatch patch0d_0 ,mem_patch0d 
+6334 6fe0cde7 fetch 1 ,mem_move_mode_set 
+6335 c000e339 beq move_single_key ,shutter_dy_skip_check_combine_key 
+6336 2040638a call shutter_dy_check_combine_key_release 
+6337 2040633e call shutter_dy_check_combine_key 
+6338 20740000 rtn user 
+
+shutter_dy_skip_check_combine_key:
+6339 6fe10546 fetch 2 ,mem_key_value_temp 
+633a 67e1054d store 2 ,mem_key_value_temp4 
+633b 70054f00 jam 0 ,mem_key_value_temp6 
+633c 18000e00 force 0 ,queue 
+633d 20206c95 branch keyscan_key_lp1 
+
+shutter_dy_check_combine_key:
+633e d8e00000 arg 0 ,queue 
+
+shutter_dy_check_combine_key_loop:
+633f da404a09 arg mem_combine_key0 ,regb 
+6340 dfe00002 arg 2 ,pdata 
+6341 98effe00 imul32 queue ,pdata 
+6342 9a40a400 iadd regb ,regb 
+6343 efe10012 ifetch 2 ,regb 
+6344 207a0000 rtn blank 
+6345 68490546 fetcht 2 ,mem_key_value_temp 
+6346 9842fc00 ixor temp ,null 
+6347 2022e34a branch shutter_dy_check_combine_key_parse ,zero 
+6348 18e08e01 increase 1 ,queue 
+6349 2020633f branch shutter_dy_check_combine_key_loop 
+
+shutter_dy_check_combine_key_parse:
+634a 67e14a15 store 2 ,mem_combine_key_state0 
+634b 20404e0f call app_led_on 
+634c da604a17 arg mem_combine_key0_press ,regc 
+634d dfe0000a arg max_queue_num_combinekey ,pdata 
+634e 98effe00 imul32 queue ,pdata 
+634f 9a60a600 iadd regc ,regc 
+6350 20406352 call shutter_dy_push_buffer_in_queue 
+6351 20206395 branch shutter_dy_combine_key_enableuser 
+
+shutter_dy_push_buffer_in_queue:
+6352 204064be call shutter_dy_jude_clear_move_config 
+6353 efe08013 ifetch 1 ,regc 
+6354 207a0000 rtn blank 
+6355 204063a3 call shutter_dy_check_move_data 
+
+shutter_dy_move_to_specify_location:
+6356 204064be call shutter_dy_jude_clear_move_config 
+6357 2040636b call shutter_dy_move_down_left_corner 
+6358 20406376 call shutter_dy_move_x_max 
+6359 20406380 call shutter_dy_move_y_max 
+635a dfe00005 arg 0x05 ,pdata 
+635b 204060fc call queue_push_one_byte 
+635c 20406499 call shutter_dy_check_iphone 
+635d 207a0000 rtn blank 
+635e 70494e78 jam 120 ,mem_send_data_delay 
+635f dfe00006 arg 0x06 ,pdata 
+6360 202060fc branch queue_push_one_byte 
+
+shutter_dy_move_down_left_corner_count_set:
+6361 6848cdcc fetcht 1 ,mem_shutter_back_count 
+6362 20406499 call shutter_dy_check_iphone 
+6363 207a0000 rtn blank 
+6364 6848cdcf fetcht 1 ,mem_shutter_iphone_beyond_y_count 
+6365 18408401 increase 1 ,temp 
+6366 6fe0cde6 fetch 1 ,mem_shutter_first_move 
+6367 207a0000 rtn blank 
+6368 6848cdcc fetcht 1 ,mem_shutter_back_count 
+6369 704de600 jam 0 ,mem_shutter_first_move 
+636a 20600000 rtn 
+
+shutter_dy_move_down_left_corner:
+636b 20406361 call shutter_dy_move_down_left_corner_count_set 
+636c 18427e00 copy temp ,pdata 
+636d 207a0000 rtn blank 
+636e 67e0cdd5 store 1 ,mem_shutter_back_count_cache 
+
+shutter_dy_move_down_left_corner_loop:
+636f dfe00013 arg 0x13 ,pdata 
+6370 204060fc call queue_push_one_byte 
+6371 6fe0cdd5 fetch 1 ,mem_shutter_back_count_cache 
+6372 1fe0ffff increase -1 ,pdata 
+6373 67e0cdd5 store 1 ,mem_shutter_back_count_cache 
+6374 207a0000 rtn blank 
+6375 2020636f branch shutter_dy_move_down_left_corner_loop 
+
+shutter_dy_move_x_max:
+6376 6fe0cdce fetch 1 ,mem_shutter_iphone_beyond_x_count 
+6377 207a0000 rtn blank 
+6378 67e0cdd6 store 1 ,mem_shutter_iphone_beyond_x_cache 
+
+shutter_dy_move_x_max_number:
+6379 dfe00020 arg 0x20 ,pdata 
+637a 204060fc call queue_push_one_byte 
+637b 6fe0cdd6 fetch 1 ,mem_shutter_iphone_beyond_x_cache 
+637c 1fe0ffff increase -1 ,pdata 
+637d 67e0cdd6 store 1 ,mem_shutter_iphone_beyond_x_cache 
+637e 207a0000 rtn blank 
+637f 20206379 branch shutter_dy_move_x_max_number 
+
+shutter_dy_move_y_max:
+6380 6fe0cdcf fetch 1 ,mem_shutter_iphone_beyond_y_count 
+6381 207a0000 rtn blank 
+6382 67e0cdd7 store 1 ,mem_shutter_iphone_beyond_y_cache 
+
+shutter_dy_move_y_max_number:
+6383 dfe00021 arg 0x21 ,pdata 
+6384 204060fc call queue_push_one_byte 
+6385 6fe0cdd7 fetch 1 ,mem_shutter_iphone_beyond_y_cache 
+6386 1fe0ffff increase -1 ,pdata 
+6387 67e0cdd7 store 1 ,mem_shutter_iphone_beyond_y_cache 
+6388 207a0000 rtn blank 
+6389 20206383 branch shutter_dy_move_y_max_number 
+
+shutter_dy_check_combine_key_release:
+638a 6fe14a15 fetch 2 ,mem_combine_key_state0 
+638b 207a0000 rtn blank 
+638c 68490546 fetcht 2 ,mem_key_value_temp 
+638d 18467c00 sub temp ,0 ,null 
+638e 2022e398 branch shutter_dy_check_combine_key_release_all ,zero 
+638f 98467c00 isub temp ,null 
+6390 20628000 rtn zero 
+6391 60494a15 storet 2 ,mem_combine_key_state0 
+6392 6fe14de3 fetch 2 ,mem_combine_key_release_value 
+6393 98467c00 isub temp ,null 
+6394 2042ce11 call app_led_off ,zero 
+
+shutter_dy_combine_key_enableuser:
+6395 6fe10546 fetch 2 ,mem_key_value_temp 
+6396 67e143e0 store 2 ,mem_key_value_retention 
+6397 202074c8 branch enable_user 
+
+shutter_dy_check_combine_key_release_all:
+6398 20404e11 call app_led_off 
+6399 da604a53 arg mem_combine_key_release ,regc 
+639a 20406352 call shutter_dy_push_buffer_in_queue 
+639b 58000000 setarg 0 
+639c 67e14a15 store 2 ,mem_combine_key_state0 
+639d 70482f32 jam 50 ,mem_shutter_1s_timer 
+639e 20406395 call shutter_dy_combine_key_enableuser 
+639f 6fe0c47d fetch 1 ,mem_shutter_key_num 
+63a0 1feff20a mul32 pdata ,shutter_key_conf_sate_bytes ,loopcnt 
+63a1 d8a04953 arg mem_shutter_key_state0 ,contw 
+63a2 202073ec branch clear_mem 
+
+shutter_dy_check_move_data:
+63a3 44b4c00d bpatch patch0d_1 ,mem_patch0d 
+63a4 6fe0cde7 fetch 1 ,mem_move_mode_set 
+63a5 c000e3a8 beq move_single_key ,shutter_dy_check_move_data_single_key 
+63a6 c00063ae beq move_combine_key ,shutter_dy_check_move_data_combine_key 
+63a7 20600000 rtn 
+
+shutter_dy_check_move_data_single_key:
+63a8 18e27e00 copy queue ,pdata 
+63a9 c002e3d7 beq shutter_left_key_num ,shutter_dy_move_left 
+63aa c00063f4 beq shutter_right_key_num ,shutter_dy_move_right 
+63ab c00263fc beq shutter_up_key_num ,shutter_dy_move_up 
+63ac c001641f beq shutter_down_key_num ,shutter_dy_move_down 
+63ad 20600000 rtn 
+
+shutter_dy_check_move_data_combine_key:
+63ae efe08013 ifetch 1 ,regc 
+63af c000e3d7 beq 0x01 ,shutter_dy_move_left 
+63b0 c00163f4 beq 0x02 ,shutter_dy_move_right 
+63b1 c001e3fc beq 0x03 ,shutter_dy_move_up 
+63b2 c002641f beq 0x04 ,shutter_dy_move_down 
+63b3 c002e3b5 beq 0x05 ,shutter_dy_get_move_data 
+63b4 20600000 rtn 
+
+shutter_dy_get_move_data:
+63b5 20406499 call shutter_dy_check_iphone 
+63b6 243a63bf nbranch shutter_dy_get_move_data_iphone ,blank 
+63b7 58000004 setarg 4 
+63b8 1feffe0a mul32 pdata ,every_payload_len ,pdata 
+63b9 d8404b10 arg mem_shutter_mousekey_value_list ,temp 
+63ba 98408a00 iadd temp ,contw 
+63bb 18a08a03 increase 3 ,contw 
+63bc 6fe1ca5d fetch 3 ,mem_shutter_move_data 
+63bd e7e18005 istore 3 ,contw 
+63be 20600000 rtn 
+
+shutter_dy_get_move_data_iphone:
+63bf 58000004 setarg 4 
+63c0 1feffe0a mul32 pdata ,every_payload_len ,pdata 
+63c1 d8404b10 arg mem_shutter_mousekey_value_list ,temp 
+63c2 98408a00 iadd temp ,contw 
+63c3 18a08a03 increase 3 ,contw 
+63c4 6fe14dd0 fetch 2 ,mem_shutter_move_data_x 
+63c5 e7e18005 istore 3 ,contw 
+63c6 18a08a07 increase 7 ,contw 
+63c7 6fe14dd2 fetch 2 ,mem_shutter_move_data_y 
+63c8 1ff27e00 lshift4 pdata ,pdata 
+63c9 1fed7e00 lshift8 pdata ,pdata 
+63ca e7e18005 istore 3 ,contw 
+63cb 20600000 rtn 
+
+shutter_dy_move_x_empty_check:
+63cc 6fe0cdce fetch 1 ,mem_shutter_iphone_beyond_x_count 
+63cd 207a0000 rtn blank 
+63ce 1fe0ffff increase -1 ,pdata 
+63cf 67e0cdce store 1 ,mem_shutter_iphone_beyond_x_count 
+63d0 dfe00062 arg iphone_once_max_move_value ,pdata 
+63d1 20600000 rtn 
+
+shutter_dy_every_move_size_set:
+63d2 d840000a arg android_every_move_size ,temp 
+63d3 20406499 call shutter_dy_check_iphone 
+63d4 207a0000 rtn blank 
+63d5 d8400007 arg iphone_every_move_size ,temp 
+63d6 20600000 rtn 
+
+shutter_dy_move_left:
+63d7 204063d2 call shutter_dy_every_move_size_set 
+63d8 6fe14dd0 fetch 2 ,mem_shutter_move_data_x 
+63d9 98467c00 isub temp ,null 
+63da 244163cc ncall shutter_dy_move_x_empty_check ,positive 
+63db 24610000 nrtn positive 
+63dc 98467e00 isub temp ,pdata 
+
+shutter_dy_move_store_x:
+63dd 67e14dd0 store 2 ,mem_shutter_move_data_x 
+
+shutter_dy_move_data_store:
+63de 44b5400d bpatch patch0d_2 ,mem_patch0d 
+63df 6fe14dd0 fetch 2 ,mem_shutter_move_data_x 
+63e0 68494dd2 fetcht 2 ,mem_shutter_move_data_y 
+63e1 184d0400 lshift8 temp ,temp 
+63e2 18520400 lshift4 temp ,temp 
+63e3 9840fe00 iadd temp ,pdata 
+63e4 67e1ca5d store 3 ,mem_shutter_move_data 
+63e5 202063b5 branch shutter_dy_get_move_data 
+
+shutter_dy_move_x_check_max:
+63e6 6fe14dd0 fetch 2 ,mem_shutter_move_data_x 
+63e7 d8400062 arg iphone_once_max_move_value ,temp 
+63e8 98460400 isub temp ,temp 
+63e9 24610000 nrtn positive 
+63ea 18427e00 copy temp ,pdata 
+63eb 6848cdce fetcht 1 ,mem_shutter_iphone_beyond_x_count 
+63ec 18467c03 sub temp ,0x03 ,null 
+63ed 2022e3f1 branch shutter_dy_clear_move_x ,zero 
+63ee 18408401 increase 1 ,temp 
+63ef 6048cdce storet 1 ,mem_shutter_iphone_beyond_x_count 
+63f0 202063dd branch shutter_dy_move_store_x 
+
+shutter_dy_clear_move_x:
+63f1 704dce00 jam 0 ,mem_shutter_iphone_beyond_x_count 
+63f2 dfe00000 arg 0 ,pdata 
+63f3 202063dd branch shutter_dy_move_store_x 
+
+shutter_dy_move_right:
+63f4 20406499 call shutter_dy_check_iphone 
+63f5 245a63e6 ncall shutter_dy_move_x_check_max ,blank 
+63f6 204063d2 call shutter_dy_every_move_size_set 
+63f7 6fe14dd0 fetch 2 ,mem_shutter_move_data_x 
+
+shutter_dy_move_right_next:
+63f8 9840fe00 iadd temp ,pdata 
+63f9 d8400fff arg 0xfff ,temp 
+63fa 20407480 call ceiling 
+63fb 202063dd branch shutter_dy_move_store_x 
+
+shutter_dy_move_up:
+63fc 204063d2 call shutter_dy_every_move_size_set 
+63fd 6fe14dd2 fetch 2 ,mem_shutter_move_data_y 
+63fe 98467e00 isub temp ,pdata 
+63ff 67e14dd2 store 2 ,mem_shutter_move_data_y 
+
+shutter_dy_move_y_check_max:
+6400 68494dd2 fetcht 2 ,mem_shutter_move_data_y 
+6401 20406499 call shutter_dy_check_iphone 
+6402 203a63de branch shutter_dy_move_data_store ,blank 
+6403 58000fff setarg 0xfff 
+6404 98467e00 isub temp ,pdata 
+6405 d8400062 arg iphone_once_max_move_value ,temp 
+6406 98460400 isub temp ,temp 
+6407 242163de nbranch shutter_dy_move_data_store ,positive 
+6408 58000fff setarg 0xfff 
+6409 98467e00 isub temp ,pdata 
+640a 6848cdcf fetcht 1 ,mem_shutter_iphone_beyond_y_count 
+640b 18467c05 sub temp ,0x05 ,null 
+640c 2022e410 branch shutter_dy_clear_move_y ,zero 
+640d 18408401 increase 1 ,temp 
+640e 6048cdcf storet 1 ,mem_shutter_iphone_beyond_y_count 
+640f 2020641d branch shutter_dy_move_store_y 
+
+shutter_dy_clear_move_y:
+6410 704dcf00 jam 0 ,mem_shutter_iphone_beyond_y_count 
+
+shutter_dy_android_move_y_empty_check:
+6411 58000fff setarg 0xfff 
+6412 2020641d branch shutter_dy_move_store_y 
+
+shutter_dy_move_y_empty_check:
+6413 20406499 call shutter_dy_check_iphone 
+6414 203a6411 branch shutter_dy_android_move_y_empty_check ,blank 
+6415 6fe0cdcf fetch 1 ,mem_shutter_iphone_beyond_y_count 
+6416 203a6411 branch shutter_dy_android_move_y_empty_check ,blank 
+6417 1fe0ffff increase -1 ,pdata 
+6418 67e0cdcf store 1 ,mem_shutter_iphone_beyond_y_count 
+6419 58000fff setarg 0xfff 
+641a d8400062 arg iphone_once_max_move_value ,temp 
+641b 98467e00 isub temp ,pdata 
+641c 9a20fe00 iadd rega ,pdata 
+
+shutter_dy_move_store_y:
+641d 67e14dd2 store 2 ,mem_shutter_move_data_y 
+641e 202063de branch shutter_dy_move_data_store 
+
+shutter_dy_move_down:
+641f 204063d2 call shutter_dy_every_move_size_set 
+6420 6fe14dd2 fetch 2 ,mem_shutter_move_data_y 
+
+shutter_dy_move_down_next:
+6421 9840fe00 iadd temp ,pdata 
+6422 d8400fff arg 0xfff ,temp 
+6423 98462200 isub temp ,rega 
+6424 20216413 branch shutter_dy_move_y_empty_check ,positive 
+6425 2020641d branch shutter_dy_move_store_y 
+
+ble_shutter_dy_receive_data:
+6426 6fe1436f fetch 2 ,mem_le_att_handle 
+6427 c0126063 beq gatt_keyboard_write_handle_new ,ble_shutter_process_reconnect_complete 
+6428 20600000 rtn 
+
+shutter_dy_le_find_service_hand_by_uuid:
+6429 da200017 arg 23 ,rega 
+642a da400004 arg le_l2cap_cid_att ,regb 
+642b 2040419f call le_fifo_malloc_tx_l2cap 
+642c 58000006 setarg attop_find_by_type_value_request 
+642d e7e08005 istore 1 ,contw 
+642e 58000001 setarg 0x0001 
+642f e7e10005 istore 2 ,contw 
+6430 5800ffff setarg 0xffff 
+6431 e7e10005 istore 2 ,contw 
+6432 58002800 setarg 0x2800 
+6433 e7e10005 istore 2 ,contw 
+6434 d8c0493d arg mem_le_search_service_uuid ,contr 
+6435 202073d2 branch memcpy16 
+
+shutter_le_parse_l2cap:
+6436 6fe1430e fetch 2 ,mem_le_payload_ptr 
+6437 1fe08c02 add pdata ,2 ,contr 
+6438 efe10006 ifetch 2 ,contr 
+6439 c002643d beq le_l2cap_cid_att ,shutter_dy_le_parse_att 
+643a c00345e3 beq le_l2cap_cid_smp ,le_parse_smp 
+643b c002c5b7 beq le_l2cap_cid_signal ,le_parse_signaling 
+643c 20600000 rtn 
+
+shutter_dy_le_parse_att:
+643d efe18006 ifetch 3 ,contr 
+643e 67e1c36e store 3 ,mem_le_att_opcode 
+643f c003e46d beq attop_find_by_type_value_response ,shutter_dy_le_parse_att_find_by_type_value_rsp 
+6440 c000e48e beq attop_error_response ,shutter_dy_le_parse_error_rsp 
+6441 c005645c beq attop_read_request ,shutter_dy_le_parse_att_read_request 
+6442 c0066444 beq attop_read_blob_request ,shutter_dy_le_parse_att_read_blob_request 
+6443 20204331 branch le_parse_att2 
+
+shutter_dy_le_parse_att_read_blob_request:
+6444 efe10006 ifetch 2 ,contr 
+6445 67e1050a store 2 ,mem_le_att_offset 
+6446 da200014 arg 20 ,rega 
+6447 20404535 call le_fifo_malloc_tx_l2cap_gatt 
+6448 5800000d setarg attop_read_blob_response 
+6449 e7e08005 istore 1 ,contw 
+644a 6fe1050a fetch 2 ,mem_le_att_offset 
+644b 98002200 iforce rega 
+644c 6849436f fetcht 2 ,mem_le_att_handle 
+644d 6fe14307 fetch 2 ,mem_le_pairing_handle 
+644e 98467c00 isub temp ,null 
+644f 2422c47d nbranch le_send_att_read_blob_response + 7 ,zero 
+6450 20406499 call shutter_dy_check_iphone 
+6451 243a6454 nbranch shutter_dy_le_parse_att_read_blob_request_ios ,blank 
+6452 6fe14939 fetch 2 ,mem_shutter_le_map_len_android 
+6453 20206455 branch shutter_dy_le_parse_att_read_blob_request2 
+
+shutter_dy_le_parse_att_read_blob_request_ios:
+6454 6fe1493b fetch 2 ,mem_shutter_le_map_len_ios 
+
+shutter_dy_le_parse_att_read_blob_request2:
+6455 d8c0483f arg mem_shutter_le_hid_map ,contr 
+6456 9a267200 isub rega ,loopcnt 
+6457 24214528 nbranch le_send_att_error_response_notfound ,positive 
+6458 1f267c16 sub loopcnt ,22 ,null 
+6459 20214485 branch le_send_att_read_blob_response_less ,positive 
+645a 18007216 force 22 ,loopcnt 
+645b 20204485 branch le_send_att_read_blob_response_less 
+
+shutter_dy_le_parse_att_read_request:
+645c 6849436f fetcht 2 ,mem_le_att_handle 
+645d 6fe0c2f6 fetch 1 ,mem_le_configuration 
+645e c281e460 bbit1 bit_ble_read_auth ,shutter_dy_le_send_att_read_response_check_auth 
+645f 20204449 branch le_send_att_read_response 
+
+shutter_dy_le_send_att_read_response_check_auth:
+6460 6fe14307 fetch 2 ,mem_le_pairing_handle 
+6461 98467c00 isub temp ,null 
+6462 2422c449 nbranch le_send_att_read_response ,zero 
+6463 204044ec call le_check_encrypt_state 
+6464 24346467 nbranch shutter_dy_le_send_att_read_response ,user 
+6465 7001b405 jam att_err_insufficient_authentication ,mem_le_err_code 
+6466 2020452a branch le_send_att_error_response 
+
+shutter_dy_le_send_att_read_response:
+6467 6fe14307 fetch 2 ,mem_le_pairing_handle 
+6468 98467c00 isub temp ,null 
+6469 2422c449 nbranch le_send_att_read_response ,zero 
+646a d8c0483f arg mem_shutter_le_hid_map ,contr 
+646b 18007e16 force 22 ,pdata 
+646c 20204457 branch le_send_att_read_response_less 
+
+shutter_dy_le_parse_att_find_by_type_value_rsp:
+
+shutter_dy_le_remote_iphone:
+646d 44b5c00d bpatch patch0d_3 ,mem_patch0d 
+646e 704dcc05 jam 5 ,mem_shutter_back_count 
+646f 70494d01 jam 1 ,mem_iphone_flag 
+6470 704dd401 jam 1 ,mem_last_shutter_le_iphone_flag 
+6471 70494ef0 jam 240 ,mem_send_data_delay 
+6472 704de10a jam 10 ,mem_shutter_move_mid_timer 
+6473 704de601 jam 1 ,mem_shutter_first_move 
+6474 204064fe call shutter_dy_load_move_config_info 
+6475 6fe0cde2 fetch 1 ,mem_shutter_pairing_success 
+6476 207a0000 rtn blank 
+6477 204064c2 call shutter_dy_clear_move_config 
+6478 d8400062 arg iphone_once_max_move_value ,temp 
+6479 6fe14e94 fetch 2 ,mem_iphone_initial_move_x 
+647a da204dd0 arg mem_shutter_move_data_x ,rega 
+647b da404dce arg mem_shutter_iphone_beyond_x_count ,regb 
+647c 20406487 call shutter_dy_iphone_move_initial_set 
+647d d8400062 arg iphone_once_max_move_value ,temp 
+647e 6fe14e96 fetch 2 ,mem_iphone_initial_move_y 
+647f da204dd2 arg mem_shutter_move_data_y ,rega 
+6480 da404dcf arg mem_shutter_iphone_beyond_y_count ,regb 
+6481 20406487 call shutter_dy_iphone_move_initial_set 
+6482 58000fff setarg 0xfff 
+6483 68494dd2 fetcht 2 ,mem_shutter_move_data_y 
+6484 98467e00 isub temp ,pdata 
+6485 67e14dd2 store 2 ,mem_shutter_move_data_y 
+6486 20600000 rtn 
+
+shutter_dy_iphone_move_initial_set:
+6487 9846fc00 idiv temp 
+6488 20407475 call wait_div_end 
+6489 1807fe00 quotient pdata 
+648a 18070400 remainder temp 
+648b e7e08012 istore 1 ,regb 
+648c e0410011 istoret 2 ,rega 
+648d 20600000 rtn 
+
+shutter_dy_le_parse_error_rsp:
+648e 18c08dfe increase -2 ,contr 
+648f efe08006 ifetch 1 ,contr 
+6490 c0036497 beq attop_find_by_type_value_request ,shutter_dy_not_iphone_read_conf 
+6491 20600000 rtn 
+
+shutter_dy_remote_not_iphone:
+6492 704dcc01 jam 1 ,mem_shutter_back_count 
+6493 70494d00 jam 0 ,mem_iphone_flag 
+6494 704dd400 jam 0 ,mem_last_shutter_le_iphone_flag 
+6495 70494e0a jam 10 ,mem_send_data_delay 
+6496 20600000 rtn 
+
+shutter_dy_not_iphone_read_conf:
+6497 20406492 call shutter_dy_remote_not_iphone 
+6498 202064fe branch shutter_dy_load_move_config_info 
+
+shutter_dy_check_iphone:
+6499 6fe0c94d fetch 1 ,mem_iphone_flag 
+649a 20600000 rtn 
+
+shutter_dy_le_get_press_ptr:
+649b da604e30 arg mem_dy_key0_press ,regc 
+649c 20406499 call shutter_dy_check_iphone 
+649d 207a0000 rtn blank 
+649e 70494e78 jam 120 ,mem_send_data_delay 
+649f da604a61 arg mem_key0_press_i ,regc 
+64a0 20600000 rtn 
+
+shutter_dy_le_get_release_ptr:
+
+shutter_dy_le_get_release_ptr_set:
+64a1 da604999 arg mem_key0_release_new ,regc 
+64a2 20406499 call shutter_dy_check_iphone 
+64a3 207a0000 rtn blank 
+64a4 da604a9d arg mem_key0_release_new_i ,regc 
+64a5 70494e0c jam 12 ,mem_send_data_delay 
+64a6 18e27e00 copy queue ,pdata 
+64a7 c1008000 rtneq shutter_like_key_num 
+64a8 20600000 rtn 
+
+shutter_dy_le_get_release_ptr_volume:
+64a9 44b6400d bpatch patch0d_4 ,mem_patch0d 
+64aa 6fe0cb0c fetch 1 ,mem_key3_press_count 
+64ab 79407e00 setflip 0 ,pdata 
+64ac 67e0cb0c store 1 ,mem_key3_press_count 
+64ad c00064b2 beq 0 ,shutter_dy_le_get_release_ptr_set_volume_inc 
+64ae c000e4b0 beq 1 ,shutter_dy_le_get_release_ptr_set_volume_dec 
+64af 20600000 rtn 
+
+shutter_dy_le_get_release_ptr_set_volume_dec:
+64b0 204064b9 call shutter_dy_le_get_vol_dec_ptr 
+64b1 202060eb branch push_buffer_in_queue 
+
+shutter_dy_le_get_release_ptr_set_volume_inc:
+64b2 204064b4 call shutter_dy_le_get_vol_inc_ptr 
+64b3 202060eb branch push_buffer_in_queue 
+
+shutter_dy_le_get_vol_inc_ptr:
+64b4 da6049b7 arg mem_key3_release_new ,regc 
+64b5 20406499 call shutter_dy_check_iphone 
+64b6 207a0000 rtn blank 
+64b7 da604abb arg mem_key3_release_new_i ,regc 
+64b8 20600000 rtn 
+
+shutter_dy_le_get_vol_dec_ptr:
+64b9 da604af8 arg mem_key3_release_new_t ,regc 
+64ba 20406499 call shutter_dy_check_iphone 
+64bb 207a0000 rtn blank 
+64bc da604b02 arg mem_key3_release_new_i_t ,regc 
+64bd 20600000 rtn 
+
+shutter_dy_jude_clear_move_config:
+64be 6fe0cdcd fetch 1 ,mem_shutter_le_conned 
+64bf 247a0000 nrtn blank 
+64c0 704dcd01 jam 1 ,mem_shutter_le_conned 
+64c1 202063de branch shutter_dy_move_data_store 
+
+shutter_dy_clear_move_config:
+64c2 58000000 setarg 0 
+64c3 67e3cdce store 7 ,mem_move_config 
+64c4 20600000 rtn 
+
+shutter_dy_write_otp_convert_data:
+64c5 20406499 call shutter_dy_check_iphone 
+64c6 c000e4cd beq 0x01 ,shutter_dy_store_ios_config_data 
+64c7 c00064df beq 0x00 ,shutter_dy_store_android_config 
+64c8 20600000 rtn 
+
+shutter_dy_read_otp_convert_data:
+64c9 6fe0ce9c fetch 1 ,mem_otp_last_shutter_le_iphone_flag 
+64ca c000e4e6 beq 0x01 ,shutter_dy_get_ios_config 
+64cb c00064f8 beq 0x00 ,shutter_dy_get_android_config 
+64cc 20600000 rtn 
+
+shutter_dy_store_ios_config_data:
+64cd 6fe0cdce fetch 1 ,mem_shutter_iphone_beyond_x_count 
+64ce 1feffe62 mul32 pdata ,iphone_once_max_move_value ,pdata 
+64cf 1fe20400 copy pdata ,temp 
+64d0 6fe14dd0 fetch 2 ,mem_shutter_move_data_x 
+64d1 9840fe00 iadd temp ,pdata 
+64d2 67e14e98 store 2 ,mem_otp_shutter_move_data_x 
+64d3 6fe0cdcf fetch 1 ,mem_shutter_iphone_beyond_y_count 
+64d4 1feffe62 mul32 pdata ,iphone_once_max_move_value ,pdata 
+64d5 1fe20400 copy pdata ,temp 
+64d6 6fe14dd2 fetch 2 ,mem_shutter_move_data_y 
+64d7 1fe22200 copy pdata ,rega 
+64d8 58000fff setarg 0xfff 
+64d9 9a267e00 isub rega ,pdata 
+64da 9840fe00 iadd temp ,pdata 
+64db 67e14e9a store 2 ,mem_otp_shutter_move_data_y 
+64dc 20406499 call shutter_dy_check_iphone 
+64dd 67e0ce9c store 1 ,mem_otp_last_shutter_le_iphone_flag 
+64de 20600000 rtn 
+
+shutter_dy_store_android_config:
+64df 6fe14dd0 fetch 2 ,mem_shutter_move_data_x 
+64e0 67e14e98 store 2 ,mem_otp_shutter_move_data_x 
+64e1 6fe14dd2 fetch 2 ,mem_shutter_move_data_y 
+64e2 67e14e9a store 2 ,mem_otp_shutter_move_data_y 
+64e3 20406499 call shutter_dy_check_iphone 
+64e4 67e0ce9c store 1 ,mem_otp_last_shutter_le_iphone_flag 
+64e5 20600000 rtn 
+
+shutter_dy_get_ios_config:
+64e6 6fe14e98 fetch 2 ,mem_otp_shutter_move_data_x 
+64e7 1fe6fc62 div pdata ,iphone_once_max_move_value 
+64e8 20407475 call wait_div_end 
+64e9 1807fe00 quotient pdata 
+64ea 18070400 remainder temp 
+64eb 67e0cdce store 1 ,mem_shutter_iphone_beyond_x_count 
+64ec 18427e00 copy temp ,pdata 
+64ed 67e14dd0 store 2 ,mem_shutter_move_data_x 
+64ee 6fe14e9a fetch 2 ,mem_otp_shutter_move_data_y 
+64ef 1fe6fc62 div pdata ,iphone_once_max_move_value 
+64f0 20407475 call wait_div_end 
+64f1 1807fe00 quotient pdata 
+64f2 18070400 remainder temp 
+64f3 67e0cdcf store 1 ,mem_shutter_iphone_beyond_y_count 
+64f4 58000fff setarg 0xfff 
+64f5 98467e00 isub temp ,pdata 
+64f6 67e14dd2 store 2 ,mem_shutter_move_data_y 
+64f7 20600000 rtn 
+
+shutter_dy_get_android_config:
+64f8 6fe14e98 fetch 2 ,mem_otp_shutter_move_data_x 
+64f9 67e14dd0 store 2 ,mem_shutter_move_data_x 
+64fa 6fe14e9a fetch 2 ,mem_otp_shutter_move_data_y 
+64fb 67e14dd2 store 2 ,mem_shutter_move_data_y 
+64fc 20600000 rtn 
+
+shutter_dy_store_move_config_info:
+64fd 2020657b branch shutter_dy_campare_effective_addr_write_otp 
+
+shutter_dy_load_move_config_info:
+64fe 20206562 branch shutter_dy_campare_effective_addr_read_otp 
+
+shutter_dy_shutter_uart_config_loop:
+64ff 20406521 call shutter_dy_update_read_check_addr 
+6500 6fe14e9f fetch 2 ,mem_otp_read_offset_addr 
+6501 2040658e call shutter_dy_shutter_read_move_config_from_otp_addr 
+6502 704ea500 jam 0 ,mem_shutter_first_read_flag 
+6503 6fe2ce98 fetch 5 ,mem_otp_move_config 
+6504 704ea600 jam 0 ,mem_shutter_valid_data_flag 
+6505 704ea300 jam 0 ,mem_shutter_temp_count 
+6506 20406525 call shutter_dy_campare_otp_data 
+6507 6fe0cea3 fetch 1 ,mem_shutter_temp_count 
+6508 c1000000 rtneq 0 
+6509 202064ff branch shutter_dy_shutter_uart_config_loop 
+
+shutter_dy_shutter_get_first_read_addr:
+650a 6fe14e8c fetch 2 ,mem_shutter_efuse_start_offset 
+650b 1fe0fffb increase -5 ,pdata 
+650c 67e14e9f store 2 ,mem_otp_read_offset_addr 
+650d 20600000 rtn 
+
+shutter_dy_shutter_next_read_addr:
+650e 6fe14e9f fetch 2 ,mem_otp_read_offset_addr 
+650f 1fe0fffb increase -5 ,pdata 
+6510 67e14e9f store 2 ,mem_otp_read_offset_addr 
+6511 20600000 rtn 
+
+shutter_dy_shutter_last_read_addr:
+6512 6fe14e9f fetch 2 ,mem_otp_read_offset_addr 
+6513 1fe0fe05 pincrease 5 
+6514 67e14e9f store 2 ,mem_otp_read_offset_addr 
+6515 20600000 rtn 
+
+shutter_dy_shutter_read_ios_android_addr:
+6516 6fe14ea1 fetch 2 ,mem_otp_read_ios_android_addr 
+6517 1fe0fe05 pincrease 5 
+6518 67e14ea1 store 2 ,mem_otp_read_ios_android_addr 
+6519 6fe14ea1 fetch 2 ,mem_otp_read_ios_android_addr 
+651a 1fe20400 copy pdata ,temp 
+651b 6fe14e8c fetch 2 ,mem_shutter_efuse_start_offset 
+651c 98467e00 isub temp ,pdata 
+651d d8400005 arg shutter_para_total_num ,temp 
+651e 98467c00 isub temp ,null 
+651f 24216545 nbranch shutter_dy_shutter_not_find_ios_or_android ,positive 
+6520 20600000 rtn 
+
+shutter_dy_update_read_check_addr:
+6521 6fe0cea5 fetch 1 ,mem_shutter_first_read_flag 
+6522 c000e50a beq 0x01 ,shutter_dy_shutter_get_first_read_addr 
+6523 c000650e beq 0x00 ,shutter_dy_shutter_next_read_addr 
+6524 20600000 rtn 
+
+shutter_dy_campare_otp_data:
+6525 da400000 arg 0x0 ,regb 
+6526 1a420400 copy regb ,temp 
+6527 6fe14e98 fetch 2 ,mem_otp_shutter_move_data_x 
+6528 a843fe00 icompare 0xffff ,temp 
+6529 2440e535 ncall shutter_dy_set_shutter_valid_data_flag ,true 
+652a da400000 arg 0x0 ,regb 
+652b 1a420400 copy regb ,temp 
+652c 6fe14e9a fetch 2 ,mem_otp_shutter_move_data_y 
+652d a843fe00 icompare 0xffff ,temp 
+652e 2440e535 ncall shutter_dy_set_shutter_valid_data_flag ,true 
+652f da400000 arg 0x0 ,regb 
+6530 1a420400 copy regb ,temp 
+6531 6fe0ce9c fetch 1 ,mem_otp_last_shutter_le_iphone_flag 
+6532 a841fe00 icompare 0xff ,temp 
+6533 2440e535 ncall shutter_dy_set_shutter_valid_data_flag ,true 
+6534 20600000 rtn 
+
+shutter_dy_set_shutter_valid_data_flag:
+6535 6fe0cea3 fetch 1 ,mem_shutter_temp_count 
+6536 1fe0fe01 pincrease 1 
+6537 67e0cea3 store 1 ,mem_shutter_temp_count 
+6538 20600000 rtn 
+
+shutter_dy_shutter_judge_ios_or_android:
+6539 704ea301 jam 1 ,mem_shutter_temp_count 
+653a 20406516 call shutter_dy_shutter_read_ios_android_addr 
+653b 6fe14ea1 fetch 2 ,mem_otp_read_ios_android_addr 
+653c 2040658e call shutter_dy_shutter_read_move_config_from_otp_addr 
+653d 20406499 call shutter_dy_check_iphone 
+653e 1fe20400 copy pdata ,temp 
+653f 6fe0ce9c fetch 1 ,mem_otp_last_shutter_le_iphone_flag 
+6540 a841fe00 icompare 0xff ,temp 
+6541 2040e560 call shutter_dy_clear_temp_count ,true 
+6542 6fe0cea3 fetch 1 ,mem_shutter_temp_count 
+6543 c1000000 rtneq 0 
+6544 20206539 branch shutter_dy_shutter_judge_ios_or_android 
+
+shutter_dy_shutter_not_find_ios_or_android:
+6545 44b6c00d bpatch patch0d_5 ,mem_patch0d 
+6546 20406560 call shutter_dy_clear_temp_count 
+6547 20406499 call shutter_dy_check_iphone 
+6548 203a654a branch shutter_dy_shutter_android_save_init_loaction ,blank 
+6549 20206551 branch shutter_dy_shutter_ios_save_init_loaction 
+
+shutter_dy_shutter_android_save_init_loaction:
+654a 6fe14e90 fetch 2 ,mem_android_initial_move_x 
+654b 67e14dd0 store 2 ,mem_shutter_move_data_x 
+654c 68494e92 fetcht 2 ,mem_android_initial_move_y 
+654d 58000fff setarg 0xfff 
+654e 98467e00 isub temp ,pdata 
+654f 67e14dd2 store 2 ,mem_shutter_move_data_y 
+6550 202064fd branch shutter_dy_store_move_config_info 
+
+shutter_dy_shutter_ios_save_init_loaction:
+6551 d8400062 arg iphone_once_max_move_value ,temp 
+6552 6fe14e94 fetch 2 ,mem_iphone_initial_move_x 
+6553 da204dd0 arg mem_shutter_move_data_x ,rega 
+6554 da404dce arg mem_shutter_iphone_beyond_x_count ,regb 
+6555 20406487 call shutter_dy_iphone_move_initial_set 
+6556 d8400062 arg iphone_once_max_move_value ,temp 
+6557 6fe14e96 fetch 2 ,mem_iphone_initial_move_y 
+6558 da204dd2 arg mem_shutter_move_data_y ,rega 
+6559 da404dcf arg mem_shutter_iphone_beyond_y_count ,regb 
+655a 20406487 call shutter_dy_iphone_move_initial_set 
+655b 58000fff setarg 0xfff 
+655c 68494dd2 fetcht 2 ,mem_shutter_move_data_y 
+655d 98467e00 isub temp ,pdata 
+655e 67e14dd2 store 2 ,mem_shutter_move_data_y 
+655f 202064fd branch shutter_dy_store_move_config_info 
+
+shutter_dy_clear_temp_count:
+6560 704ea300 jam 0 ,mem_shutter_temp_count 
+6561 20600000 rtn 
+
+shutter_dy_campare_effective_addr_read_otp:
+6562 44b7400d bpatch patch0d_6 ,mem_patch0d 
+6563 704ea501 jam 1 ,mem_shutter_first_read_flag 
+6564 204064ff call shutter_dy_shutter_uart_config_loop 
+6565 6fe14e8e fetch 2 ,mem_shutter_efuse_end_offset 
+6566 1fe20400 copy pdata ,temp 
+6567 6fe14e9f fetch 2 ,mem_otp_read_offset_addr 
+6568 98467e00 isub temp ,pdata 
+6569 d8400000 arg 0x0 ,temp 
+656a 98467c00 isub temp ,null 
+656b 24610000 nrtn positive 
+656c 6fe14e9f fetch 2 ,mem_otp_read_offset_addr 
+656d 1fe20400 copy pdata ,temp 
+656e 6fe14e8c fetch 2 ,mem_shutter_efuse_start_offset 
+656f 1fe0fffb increase -5 ,pdata 
+6570 98467e00 isub temp ,pdata 
+6571 6fe14e9f fetch 2 ,mem_otp_read_offset_addr 
+6572 67e14ea1 store 2 ,mem_otp_read_ios_android_addr 
+6573 20406539 call shutter_dy_shutter_judge_ios_or_android 
+6574 6fe14ea1 fetch 2 ,mem_otp_read_ios_android_addr 
+6575 2442e58e ncall shutter_dy_shutter_read_move_config_from_otp_addr ,zero 
+6576 704ea300 jam 0 ,mem_shutter_temp_count 
+6577 20406525 call shutter_dy_campare_otp_data 
+6578 6fe0cea3 fetch 1 ,mem_shutter_temp_count 
+6579 c1000000 rtneq 0 
+657a 202064c9 branch shutter_dy_read_otp_convert_data 
+
+shutter_dy_campare_effective_addr_write_otp:
+657b 44b7c00d bpatch patch0d_7 ,mem_patch0d 
+657c 704ea501 jam 1 ,mem_shutter_first_read_flag 
+657d 204064ff call shutter_dy_shutter_uart_config_loop 
+657e 68494e8e fetcht 2 ,mem_shutter_efuse_end_offset 
+657f 6fe14e9f fetch 2 ,mem_otp_read_offset_addr 
+6580 98467e00 isub temp ,pdata 
+6581 d8400000 arg 0x0 ,temp 
+6582 98467c00 isub temp ,null 
+6583 24610000 nrtn positive 
+6584 68494e9f fetcht 2 ,mem_otp_read_offset_addr 
+6585 6fe14e8c fetch 2 ,mem_shutter_efuse_start_offset 
+6586 98467e00 isub temp ,pdata 
+6587 d8400000 arg 0x0 ,temp 
+6588 98467c00 isub temp ,null 
+6589 24610000 nrtn positive 
+658a 6fe14e9f fetch 2 ,mem_otp_read_offset_addr 
+658b 67e14e9d store 2 ,mem_otp_write_offset_addr 
+658c 204064c5 call shutter_dy_write_otp_convert_data 
+658d 20206591 branch shutter_dy_shutter_write_move_config_to_otp_addr 
+
+shutter_dy_shutter_read_move_config_from_otp_addr:
+658e d8400005 arg shutter_para_total_num ,temp 
+658f da204e98 arg mem_otp_move_config ,rega 
+6590 202068c9 branch otpd_read_data 
+
+shutter_dy_shutter_write_move_config_to_otp_addr:
+6591 df200005 arg shutter_para_total_num ,loopcnt 
+6592 da204e98 arg mem_otp_move_config ,rega 
+6593 6fe14e9d fetch 2 ,mem_otp_write_offset_addr 
+6594 1fe20400 copy pdata ,temp 
+6595 20206883 branch otp_write 
+
+shutter_dy_shutter_1s_timer:
+6596 da60482f arg mem_shutter_1s_timer ,regc 
+6597 da4064fd arg shutter_dy_store_move_config_info ,regb 
+6598 20204dcc branch timer_single_step 
+
+rf_debug_rx_gpio_low:
+6599 6fe0c3f1 fetch 1 ,mem_rf_debug_rx_gpio 
+
+rf_debug_gpio_low:
+659a d840003e arg gpcfg_output_low ,temp 
+659b 20206bbc branch gpio_config_function 
+
+rf_debug_rx_on_line:
+
+rf_debug_rx_gpio_high:
+659c 6fe0c3f1 fetch 1 ,mem_rf_debug_rx_gpio 
+
+rf_debug_gpio_high:
+659d d840003f arg gpcfg_output_high ,temp 
+659e 20206bbc branch gpio_config_function 
+
+rf_debug_rx_gpio_h_l_h:
+659f 2040659c call rf_debug_rx_gpio_high 
+
+rf_debug_rx_gpio_l_h:
+65a0 20406599 call rf_debug_rx_gpio_low 
+65a1 2020659c branch rf_debug_rx_gpio_high 
+
+rf_debug_rx_gpio_l_h_l:
+
+rf_debug_shutdown_radio_line:
+65a2 204065a0 call rf_debug_rx_gpio_l_h 
+
+rf_debug_rx_crc_line:
+65a3 20206599 branch rf_debug_rx_gpio_low 
+
+rf_debug_rx_sync_line:
+65a4 202065a0 branch rf_debug_rx_gpio_l_h 
+
+rf_debug_rx_crc_fail_line:
+65a5 204065a0 call rf_debug_rx_gpio_l_h 
+65a6 202065a2 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:
+65a7 20206599 branch rf_debug_rx_gpio_low 
+
+rf_debug_tx_off_line:
+
+rf_debug_tx_gpio_low:
+65a8 6fe0c3f2 fetch 1 ,mem_rf_debug_tx_gpio 
+65a9 2020659a branch rf_debug_gpio_low 
+
+rf_debug_tx_on_line:
+
+rf_debug_tx_gpio_high:
+65aa 6fe0c3f2 fetch 1 ,mem_rf_debug_tx_gpio 
+65ab 2020659d branch rf_debug_gpio_high 
+
+rf_debug_tx_gpio_l_h_l:
+65ac 204065a8 call rf_debug_tx_gpio_low 
+65ad 204065aa call rf_debug_tx_gpio_high 
+65ae 202065a8 branch rf_debug_tx_gpio_low 
+
+fcc_auth_config:
+65af 204065f8 call pn9 
+65b0 202065b1 branch fcc_auth_procedures 
+
+fcc_auth_procedures:
+65b1 44b9c00e bpatch patch0e_3 ,mem_patch0e 
+65b2 7001e801 jam fcc_data_rate_1mbps ,mem_fcc_mod 
+65b3 7001ea01 jam fcc_bt_mode ,mem_fcc_btble 
+65b4 7001ec19 jam fcc_len_dh1 ,mem_fcc_data_length 
+65b5 7001ed02 jam fcc_fixed_freq ,mem_fcc_hop 
+65b6 6fe101ef fetch 2 ,mem_fcc_config_cb 
+65b7 20407487 call callback_func 
+65b8 6fe401e7 fetch fcc_para_len ,mem_fcc_param 
+65b9 67e401df store fcc_para_len ,mem_fcc_param_new 
+65ba 6fe081ee fetch 1 ,mem_fcc_tx_power 
+65bb 67e0c116 store 1 ,mem_tx_power 
+65bc 6fe081e9 fetch 1 ,mem_fcc_txrx 
+65bd c000e5bf beq fcc_tx ,fcc_auth_tx_start 
+65be c0016650 beq fcc_rx ,fcc_auth_rx_start 
+
+fcc_auth_tx_start:
+65bf 684881e7 fetcht 1 ,mem_fcc_ch 
+65c0 6fe081ea fetch 1 ,mem_fcc_btble 
+65c1 c00165c3 beq fcc_ble_mode ,fcc_auth_ble_tx_on 
+65c2 c000e5df beq fcc_bt_mode ,fcc_auth_bt_tx_on 
+
+fcc_auth_ble_tx_on:
+65c3 44ba400e bpatch patch0e_4 ,mem_patch0e 
+65c4 2040663d call fcc_set_sync_on 
+65c5 204039c9 call set_freq_tx 
+65c6 2040660b call fcc_le_enable 
+65c7 79202a00 set1 txgfsk ,radio_ctrl 
+65c8 782efc00 enable encode_fec0 
+65c9 78307c00 enable is_tx 
+65ca 7850fc00 disable is_rx 
+65cb 20403d8c call le_wait_tx 
+65cc 6fe081eb fetch 1 ,mem_fcc_data 
+65cd 67f0890d store 1 ,core_tx_test_mode 
+65ce 202065cf branch fcc_auth_tx_data 
+
+fcc_auth_tx_data:
+65cf 44bac00e bpatch patch0e_5 ,mem_patch0e 
+65d0 6fe081e8 fetch 1 ,mem_fcc_mod 
+65d1 c000e5d2 beq fcc_data_rate_1mbps ,calculate_gfsk_modulation_length 
+
+calculate_gfsk_modulation_length:
+65d2 6fe081ec fetch 1 ,mem_fcc_data_length 
+65d3 c00ce5d6 beq fcc_len_dh1 ,calculate_gfsk_modulation_length_dh1 
+65d4 c03c65d9 beq fcc_len_dh3 ,calculate_gfsk_modulation_length_dh3 
+65d5 c07865dc beq fcc_len_dh5 ,calculate_gfsk_modulation_length_dh5 
+
+calculate_gfsk_modulation_length_dh1:
+65d6 df200035 arg 53 ,loopcnt 
+65d7 d8c00b00 arg mem_pn9 ,contr 
+65d8 2020662e branch pnloop_stable 
+
+calculate_gfsk_modulation_length_dh3:
+65d9 df2000cb arg 203 ,loopcnt 
+65da d8c00b00 arg mem_pn9 ,contr 
+65db 2020662e branch pnloop_stable 
+
+calculate_gfsk_modulation_length_dh5:
+65dc df200162 arg 354 ,loopcnt 
+65dd d8c00b00 arg mem_pn9 ,contr 
+65de 2020662e branch pnloop_stable 
+
+fcc_auth_bt_tx_on:
+65df 44bb400e bpatch patch0e_6 ,mem_patch0e 
+65e0 2040663d call fcc_set_sync_on 
+65e1 204039c9 call set_freq_tx 
+65e2 7843fc00 disable enable_white 
+65e3 782efc00 enable encode_fec0 
+65e4 78307c00 enable is_tx 
+65e5 684881e8 fetcht 1 ,mem_fcc_mod 
+65e6 18422a00 copy temp ,radio_ctrl 
+65e7 6fe081eb fetch 1 ,mem_fcc_data 
+65e8 67f0890d store 1 ,core_tx_test_mode 
+65e9 c00065cf beq 0 ,fcc_auth_tx_data 
+
+test_tx_carrier_loop:
+65ea 44bbc00e bpatch patch0e_7 ,mem_patch0e 
+65eb 6fe081ec fetch 1 ,mem_fcc_data_length 
+65ec 1fe27200 copy pdata ,loopcnt 
+65ed d8c00b00 arg mem_pn9 ,contr 
+
+pnloop_carrier:
+65ee efe08006 ifetch 1 ,contr 
+65ef 08008608 inject mod ,8 
+65f0 c20065ee loop pnloop_carrier 
+65f1 6fe101ef fetch 2 ,mem_fcc_config_cb 
+65f2 20407487 call callback_func 
+65f3 6fe401e7 fetch fcc_para_len ,mem_fcc_param 
+65f4 684c01df fetcht fcc_para_len ,mem_fcc_param_new 
+65f5 98467c00 isub temp ,null 
+65f6 2022e5ea branch test_tx_carrier_loop ,zero 
+65f7 202065b1 branch fcc_auth_procedures 
+
+pn9:
+65f8 df2003fe arg mem_pn9_size ,loopcnt 
+65f9 d8a00b00 arg mem_pn9 ,contw 
+65fa 580001ff setarg 0x1ff 
+65fb 18002400 force 0 ,regb 
+
+pn9_loop:
+65fc 1fe92200 rshift3 pdata ,rega 
+65fd 1a232200 rshift rega ,rega 
+65fe 9a22a200 ixor rega ,rega 
+65ff 2a2ffe00 isolate1 0 ,rega 
+6600 7920fe09 setflag true ,9 ,pdata 
+6601 18430400 rshift temp ,temp 
+6602 2feffe00 isolate1 0 ,pdata 
+6603 79208407 setflag true ,7 ,temp 
+6604 1fe37e00 rshift pdata ,pdata 
+6605 1a40a401 increase 1 ,regb 
+6606 2a400e00 compare 0 ,regb ,0x7 
+6607 2420e5fc nbranch pn9_loop ,true 
+6608 e0408005 istoret 1 ,contw 
+6609 c20065fc loop pn9_loop 
+660a 20600000 rtn 
+
+fcc_le_enable:
+660b 44bc400f bpatch patch0f_0 ,mem_patch0f 
+660c 793f802f set0 mark_ble_lr ,mark 
+660d 70890103 jam 0x03 ,0x8901 
+660e 70892084 jam 0x84 ,0x8920 
+660f 708925a7 jam 0xa7 ,0x8925 
+6610 70893003 jam 0x03 ,0x8930 
+6611 70893740 jam 0x40 ,0x8937 
+6612 708a6d85 jam 0x85 ,0x8a6d 
+6613 708a6d89 jam 0x89 ,core_rx_bq_cfg0 
+6614 6fe08164 fetch 1 ,mem_le_mode 
+6615 c3968000 rtnbit1 mark_ble_2m 
+6616 70890101 jam 0x01 ,0x8901 
+6617 70892080 jam 0x80 ,0x8920 
+6618 708a6d05 jam 0x05 ,0x8a6d 
+6619 708a6d09 jam 0x09 ,core_rx_bq_cfg0 
+661a 7920002f set1 mark_ble_lr ,mark 
+661b 70890105 jam 0x05 ,0x8901 
+661c 70893024 jam 0x24 ,0x8930 
+661d 7089340a jam 0x0a ,0x8934 
+661e 20600000 rtn 
+
+fcc_shutdown_radio:
+661f 44bcc00f bpatch patch0f_1 ,mem_patch0f 
+6620 18002a08 force 0x08 ,radio_ctrl 
+6621 18002a00 force 0 ,radio_ctrl 
+6622 7850fc00 disable is_rx 
+6623 78507c00 disable is_tx 
+6624 782f7c00 pulse packet_end 
+6625 70890005 jam 0x5 ,modem_en 
+6626 20000002 nop 2 
+6627 70890000 jam 0x0 ,modem_en 
+6628 2040663d call fcc_set_sync_on 
+6629 708a1600 jam 0 ,core_syn_en 
+662a 708a0a10 jam 0x10 ,core_rf_ldo_en0 
+662b 708a0b00 jam 0 ,core_rf_ldo_en1 
+662c 20600000 rtn 
+
+fcc_test_ble_bt_tx_off:
+662d 2020661f branch fcc_shutdown_radio 
+
+pnloop_stable:
+662e efe08006 ifetch 1 ,contr 
+662f 08008608 inject mod ,8 
+6630 c200662e loop pnloop_stable 
+6631 2040662d call fcc_test_ble_bt_tx_off 
+6632 78287c00 enable swfine 
+6633 db600350 arg 0x350 ,stop_watch 
+
+stable_stop:
+6634 2021e5b1 branch fcc_auth_procedures ,timeout 
+6635 6fe101ef fetch 2 ,mem_fcc_config_cb 
+6636 20407487 call callback_func 
+6637 6fe401e7 fetch fcc_para_len ,mem_fcc_param 
+6638 684c01df fetcht fcc_para_len ,mem_fcc_param_new 
+6639 98467c00 isub temp ,null 
+663a 2022e634 branch stable_stop ,zero 
+663b 2040662d call fcc_test_ble_bt_tx_off 
+663c 202065b1 branch fcc_auth_procedures 
+
+fcc_set_sync_on:
+663d 44bd400f bpatch patch0f_2 ,mem_patch0f 
+663e 70890005 jam 0x5 ,modem_en 
+663f 20000002 nop 2 
+6640 70890000 jam 0x0 ,modem_en 
+6641 708a10aa jam 0xaa ,core_rf_ldo_cfg4 
+6642 708a11aa jam 0xaa ,core_rf_ldo_cfg5 
+6643 708a1215 jam 0x15 ,core_rf_ldo_cfg6 
+6644 708a0af8 jam 0xf8 ,core_rf_ldo_en0 
+6645 708a0b04 jam 4 ,core_rf_ldo_en1 
+6646 20000078 nop 120 
+6647 708a167a jam 0x7a ,core_syn_en 
+6648 708a1700 jam 0 ,core_rx_en0 
+6649 708a1800 jam 0 ,core_rx_en1 
+664a 708a1900 jam 0 ,core_tx_en0 
+664b 708a1a00 jam 0 ,core_tx_en1 
+664c 708a112a jam 0x2a ,core_rf_ldo_cfg5 
+664d 708a0a78 jam 0x78 ,core_rf_ldo_en0 
+664e 708a4300 jam 0 ,core_syn_cal_ctrl 
+664f 20600000 rtn 
+
+fcc_auth_rx_start:
+6650 20406659 call fcc_test_ble_rx_on 
+
+fcc_test_rx_loop:
+6651 44bdc00f bpatch patch0f_3 ,mem_patch0f 
+6652 6fe101ef fetch 2 ,mem_fcc_config_cb 
+6653 20407487 call callback_func 
+6654 6fe401e7 fetch fcc_para_len ,mem_fcc_param 
+6655 684c01df fetcht fcc_para_len ,mem_fcc_param_new 
+6656 98467c00 isub temp ,null 
+6657 2022e651 branch fcc_test_rx_loop ,zero 
+6658 202065b1 branch fcc_auth_procedures 
+
+fcc_test_ble_rx_on:
+6659 44be400f bpatch patch0f_4 ,mem_patch0f 
+665a 2040662d call fcc_test_ble_bt_tx_off 
+665b 20403954 call set_freq_rx 
+665c 58000500 setarg param_pll_setup 
+665d 20403a8c call sleep 
+665e 2020396a branch rf_rx_enable 
+
+l2cap_init:
+665f 2035e664 branch l2cap_init_wake ,wake 
+6660 58004402 setarg mem_l2cap_xmem_end 
+6661 d8a043f3 arg mem_l2cap_xmem_start ,contw 
+6662 98a67200 isub contw ,loopcnt 
+6663 204073ec call clear_mem 
+
+l2cap_init_wake:
+6664 20600000 rtn 
+
+l2cap_check_map:
+6665 44bec00f bpatch patch0f_5 ,mem_patch0f 
+6666 204066de call l2cap_malloc_get_full_map 
+6667 6fe0c3f3 fetch 1 ,mem_used_map 
+6668 c00074d8 beq 0 ,set_pdata_0 
+6669 c000f4d8 beq 1 ,set_pdata_0 
+666a c00174d8 beq 2 ,set_pdata_0 
+666b c001f4d8 beq 3 ,set_pdata_0 
+666c c040f4d8 beq 0x81 ,set_pdata_0 
+666d c06074d8 beq 0xc0 ,set_pdata_0 
+666e c04074d8 beq 0x80 ,set_pdata_0 
+666f c02074d8 beq 0x40 ,set_pdata_0 
+6670 20600000 rtn 
+
+check_l2cap_map:
+6671 d8e00000 arg 0 ,queue 
+6672 da400000 arg 0 ,regb 
+
+check_l2cap_map_loop:
+6673 18e67c07 sub queue ,7 ,null 
+6674 24610000 nrtn positive 
+6675 aa2fffff qisolate1 rega 
+6676 2020e678 branch check_l2cap_map_used ,true 
+6677 2020667c branch check_l2cap_map_used2 
+
+check_l2cap_map_used:
+6678 18427e00 copy temp ,pdata 
+6679 203a667c branch check_l2cap_map_used2 ,blank 
+667a f9202400 qset1 regb 
+667b 184085ff increase -1 ,temp 
+
+check_l2cap_map_used2:
+667c 18e08e01 increase 1 ,queue 
+667d 20206673 branch check_l2cap_map_loop 
+
+ble_l2cap_malloc:
+667e 6b014316 fetchr regd ,2 ,mem_ble_l2cap_tx_buff0_ptr 
+667f 6d614318 fetchr rege ,2 ,mem_ble_l2cap_tx_buff_size_ptr 
+6680 204074ca call disable_user 
+6681 20206682 branch host_l2cap_malloc 
+
+host_l2cap_malloc:
+6682 44bf400f bpatch patch0f_6 ,mem_patch0f 
+6683 204066ce call l2cap_malloc_is_fifo_full 
+6684 243a3a8a nbranch assert ,blank 
+6685 204066de call l2cap_malloc_get_full_map 
+6686 df200008 arg 8 ,loopcnt 
+
+host_l2cap_malloc_loop:
+6687 6848c3f3 fetcht 1 ,mem_used_map 
+6688 1f260e08 sub loopcnt ,8 ,queue 
+6689 a84fffff qisolate1 temp 
+668a 2020e68f branch host_l2cap_malloc_next_buffer ,true 
+668b 20406696 call host_l2cap_malloc_check_buffer_enough 
+668c 2421668f nbranch host_l2cap_malloc_next_buffer ,positive 
+668d 204066ac call host_l2cap_malloc_into_fifo 
+668e 20206693 branch host_l2cap_malloc_succ 
+
+host_l2cap_malloc_next_buffer:
+668f 1d627e00 copy rege ,pdata 
+6690 9b00b000 iadd regd ,regd 
+6691 c2006687 loop host_l2cap_malloc_loop 
+6692 20203a8a branch assert 
+
+host_l2cap_malloc_succ:
+6693 1b027e00 copy regd ,pdata 
+6694 1b020a00 copy regd ,contw 
+6695 20600000 rtn 
+
+host_l2cap_malloc_check_buffer_enough:
+6696 44bfc00f bpatch patch0f_7 ,mem_patch0f 
+6697 1f260e08 sub loopcnt ,8 ,queue 
+6698 d8400000 arg 0 ,temp 
+6699 d9600000 arg 0 ,timeup 
+
+host_l2cap_malloc_check_buffer_enough_loop:
+669a 18e27e00 copy queue ,pdata 
+669b c00466a7 beq 8 ,host_l2cap_malloc_check_buffer_enough_end 
+669c 6fe0c3f3 fetch 1 ,mem_used_map 
+669d afefffff qisolate1 pdata 
+669e 2020e6a7 branch host_l2cap_malloc_check_buffer_enough_end ,true 
+669f f9201600 qset1 timeup 
+66a0 1d627e00 copy rege ,pdata 
+66a1 98408400 iadd temp ,temp 
+66a2 18e08e01 increase 1 ,queue 
+66a3 1a227e00 copy rega ,pdata 
+66a4 98467c00 isub temp ,null 
+66a5 2022e6a7 branch host_l2cap_malloc_check_buffer_enough_end ,zero 
+66a6 2021669a branch host_l2cap_malloc_check_buffer_enough_loop ,positive 
+
+host_l2cap_malloc_check_buffer_enough_end:
+66a7 18427e00 copy temp ,pdata 
+66a8 9a267c00 isub rega ,null 
+66a9 24628000 nrtn zero 
+66aa f9201600 qset1 timeup 
+66ab 20600000 rtn 
+
+host_l2cap_malloc_into_fifo:
+66ac 44c04010 bpatch patch10_0 ,mem_patch10 
+66ad 204066ce call l2cap_malloc_is_fifo_full 
+66ae 243a3a8a nbranch assert ,blank 
+66af 204066d4 call l2cap_malloc_is_fifo_empty 
+66b0 203a66b5 branch host_l2cap_malloc_into_fifo_no_push ,blank 
+66b1 6fe4c3f7 fetch 9 ,mem_tx_fifo1 
+66b2 67e4c3f4 store 9 ,mem_tx_fifo0 
+66b3 58000000 setarg 0 
+66b4 e7e18005 istore 3 ,contw 
+
+host_l2cap_malloc_into_fifo_no_push:
+66b5 6160c3fd storer timeup ,1 ,mem_tx_fifo3_map 
+66b6 630143fe storer regd ,2 ,mem_tx_fifo3_ptr 
+66b7 20600000 rtn 
+
+l2cap_malloc_fifo_out:
+66b8 44c0c010 bpatch patch10_1 ,mem_patch10 
+66b9 204066d7 call l2cap_malloc_fifo_get_first_ptr 
+66ba 18c08c01 increase 1 ,contr 
+66bb efe10006 ifetch 2 ,contr 
+66bc 20600000 rtn 
+
+l2cap_malloc_free:
+66bd 44c14010 bpatch patch10_2 ,mem_patch10 
+66be 204066d7 call l2cap_malloc_fifo_get_first_ptr 
+66bf 18c20a00 copy contr ,contw 
+66c0 18c20400 copy contr ,temp 
+66c1 58000000 setarg 0 
+66c2 e7e18005 istore 3 ,contw 
+66c3 20600000 rtn 
+
+l2cap_malloc_discard:
+66c4 44c1c010 bpatch patch10_3 ,mem_patch10 
+66c5 204066d4 call l2cap_malloc_is_fifo_empty 
+66c6 203a3a8a branch assert ,blank 
+66c7 6fe1c3fa fetch 3 ,mem_tx_fifo2 
+66c8 67e1c3fd store 3 ,mem_tx_fifo3 
+66c9 6fe1c3f7 fetch 3 ,mem_tx_fifo1 
+66ca 67e1c3fa store 3 ,mem_tx_fifo2 
+66cb 6fe1c3f4 fetch 3 ,mem_tx_fifo0 
+66cc 67e1c3f7 store 3 ,mem_tx_fifo1 
+66cd 20600000 rtn 
+
+l2cap_malloc_is_fifo_full:
+66ce 44c24010 bpatch patch10_4 ,mem_patch10 
+66cf 6fe1c3f4 fetch 3 ,mem_tx_fifo0 
+66d0 20600000 rtn 
+
+l2cap_malloc_is_fifo_nearly_full:
+66d1 44c2c010 bpatch patch10_5 ,mem_patch10 
+66d2 6fe1c3f7 fetch 3 ,mem_tx_fifo1 
+66d3 20600000 rtn 
+
+l2cap_malloc_is_fifo_empty:
+66d4 44c34010 bpatch patch10_6 ,mem_patch10 
+66d5 6fe1c3fd fetch 3 ,mem_tx_fifo3 
+66d6 20600000 rtn 
+
+l2cap_malloc_fifo_get_first_ptr:
+66d7 204066d4 call l2cap_malloc_is_fifo_empty 
+66d8 203a66dc branch l2cap_malloc_fifo_get_first_ptr_empty ,blank 
+66d9 d8c043f4 arg mem_tx_fifo0 ,contr 
+
+l2cap_malloc_free_loop:
+66da efe18006 ifetch 3 ,contr 
+66db 203a66da branch l2cap_malloc_free_loop ,blank 
+
+l2cap_malloc_fifo_get_first_ptr_empty:
+66dc 18c08dfd increase -3 ,contr 
+66dd 20600000 rtn 
+
+l2cap_malloc_get_full_map:
+66de 44c3c010 bpatch patch10_7 ,mem_patch10 
+66df df200004 arg 4 ,loopcnt 
+66e0 d8c043f4 arg mem_tx_fifo0_map ,contr 
+66e1 d8400000 arg 0 ,temp 
+
+l2cap_malloc_get_full_map_loop:
+66e2 efe18006 ifetch 3 ,contr 
+66e3 1fe17eff and pdata ,0xff ,pdata 
+66e4 98418400 ior temp ,temp 
+66e5 c20066e2 loop l2cap_malloc_get_full_map_loop 
+66e6 6048c3f3 storet 1 ,mem_used_map 
+66e7 20600000 rtn 
+
+l2cap_util_pdata_to_contw:
+66e8 203a3a8a branch assert ,blank 
+66e9 1fe20a00 copy pdata ,contw 
+66ea 20600000 rtn 
+
+l2cap_lpm_save_calc_len:
+66eb 44c44011 bpatch patch11_0 ,mem_patch11 
+66ec da400000 arg 0 ,regb 
+66ed da2043f4 arg mem_tx_fifo0_map ,rega 
+66ee 1a20a3fe increase -2 ,rega 
+
+l2cap_lpm_save_calc_len_loop:
+66ef 1a20a202 increase 2 ,rega 
+66f0 58004400 setarg mem_tx_fifo_end 
+66f1 9a267c00 isub rega ,null 
+66f2 2022e6fb branch l2cap_lpm_save_calc_len_end ,zero 
+66f3 efe08011 ifetch 1 ,rega 
+66f4 1a20a201 increase 1 ,rega 
+66f5 203a66ef branch l2cap_lpm_save_calc_len_loop ,blank 
+66f6 e8410011 ifetcht 2 ,rega 
+66f7 efe10002 ifetch 2 ,temp 
+66f8 9a40a400 iadd regb ,regb 
+66f9 1a40a404 increase 4 ,regb 
+66fa 202066ef branch l2cap_lpm_save_calc_len_loop 
+
+l2cap_lpm_save_calc_len_end:
+66fb 1a427e00 copy regb ,pdata 
+66fc 20600000 rtn 
+
+l2cap_lpm_get_wake_lock:
+66fd d8e0000c arg wake_lock_l2cap_tx ,queue 
+66fe 20203c21 branch lpm_get_wake_lock 
+
+l2cap_lpm_put_wake_lock:
+66ff d8e0000c arg wake_lock_l2cap_tx ,queue 
+6700 20203c25 branch lpm_put_wake_lock 
+
+l2cap_lpm_save_txbuf:
+6701 204066de call l2cap_malloc_get_full_map 
+6702 6fe0c3f3 fetch 1 ,mem_used_map 
+6703 207a0000 rtn blank 
+6704 204066eb call l2cap_lpm_save_calc_len 
+6705 d8400100 arg l2cap_lpm_txbuf_len ,temp 
+6706 98467c00 isub temp ,null 
+6707 202166fd branch l2cap_lpm_get_wake_lock ,positive 
+6708 204066ff call l2cap_lpm_put_wake_lock 
+6709 6fe14400 fetch 2 ,mem_l2cap_lpm_txbuf_ptr 
+670a 18c20a00 copy contr ,contw 
+670b da2043f4 arg mem_tx_fifo0 ,rega 
+
+l2cap_lpm_save_txbuf_loop:
+670c 58004400 setarg mem_tx_fifo_end 
+670d 9a267c00 isub rega ,null 
+670e 20628000 rtn zero 
+670f efe08011 ifetch 1 ,rega 
+6710 1a20a201 increase 1 ,rega 
+6711 243a6715 nbranch l2cap_lpm_save_txbuf_nempty ,blank 
+6712 e7e10005 istore 2 ,contw 
+6713 1a20a202 increase 2 ,rega 
+6714 2020670c branch l2cap_lpm_save_txbuf_loop 
+
+l2cap_lpm_save_txbuf_nempty:
+6715 efe10011 ifetch 2 ,rega 
+6716 1a20a202 increase 2 ,rega 
+6717 1fe20c00 copy pdata ,contr 
+6718 efe10006 ifetch 2 ,contr 
+6719 e7e10005 istore 2 ,contw 
+671a 1fe27200 copy pdata ,loopcnt 
+671b 1f20f202 increase 2 ,loopcnt 
+671c 20407419 call memcpy 
+671d 2020670c branch l2cap_lpm_save_txbuf_loop 
+
+l2cap_lpm_load_txbuf:
+671e 204066de call l2cap_malloc_get_full_map 
+671f 6fe0c3f3 fetch 1 ,mem_used_map 
+6720 207a0000 rtn blank 
+6721 da2043f5 arg mem_tx_fifo0_ptr ,rega 
+6722 1a20a3fd increase -3 ,rega 
+6723 18c20a00 copy contr ,contw 
+6724 6fe14400 fetch 2 ,mem_l2cap_lpm_txbuf_ptr 
+6725 18a20c00 copy contw ,contr 
+
+l2cap_lpm_load_txbuf_loop:
+6726 1a20a203 increase 3 ,rega 
+6727 58004401 setarg mem_tx_fifo_end + 1 
+6728 9a267c00 isub rega ,null 
+6729 20628000 rtn zero 
+672a efe10006 ifetch 2 ,contr 
+672b 203a6726 branch l2cap_lpm_load_txbuf_loop ,blank 
+672c 1fe0fe04 increase 4 ,pdata 
+672d 1fe27200 copy pdata ,loopcnt 
+672e 18c22400 copy contr ,regb 
+672f efe10011 ifetch 2 ,rega 
+6730 1fe20a00 copy pdata ,contw 
+6731 1a420c00 copy regb ,contr 
+6732 18c08dfe increase -2 ,contr 
+6733 20407419 call memcpy 
+6734 20206726 branch l2cap_lpm_load_txbuf_loop 
+
+twspi_reset:
+6735 44c4c011 bpatch patch11_1 ,mem_patch11 
+6736 18427e00 copy temp ,pdata 
+6737 1fe17eff and_into 0xff ,pdata 
+6738 1fe67c0d sub pdata ,gpio_number + -1 ,null 
+6739 24213a8a nbranch assert ,positive 
+673a d8a08070 arg core_gpio_conf ,contw 
+
+twspi_reset_next:
+673b 98a08a00 iadd contw ,contw 
+673c 18a22200 copy contw ,rega 
+673d d840003e arg gpcfg_output_low ,temp 
+673e e0408005 istoret 1 ,contw 
+673f 20406745 call twspi_disable 
+6740 2000001e nop 30 
+6741 1a220a00 copy rega ,contw 
+6742 d840003f arg gpcfg_output_high ,temp 
+6743 e0408005 istoret 1 ,contw 
+6744 20206749 branch twspi_enable 
+
+twspi_disable:
+6745 6ff08081 fetch 1 ,core_spid_delay 
+6746 1fe17e7f and_into 0x7f ,pdata 
+6747 67f08081 store 1 ,core_spid_delay 
+6748 20600000 rtn 
+
+twspi_enable:
+6749 6ff08081 fetch 1 ,core_spid_delay 
+674a 1fe1fe80 or_into 0x80 ,pdata 
+674b 67f08081 store 1 ,core_spid_delay 
+674c 20600000 rtn 
+
+twspi_write:
+674d 20206943 branch spid_write_reg 
+
+twspi_read:
+674e 2020694a branch spid_read_reg 
+
+aes_disable:
+674f 6ff0806f fetch 1 ,core_aes_en 
+6750 1fe17efd and_into 0xfd ,pdata 
+6751 67f0806f store 1 ,core_aes_en 
+6752 20600000 rtn 
+
+read_function_aes:
+6753 24346757 nbranch read_function ,user 
+6754 6ff0806f fetch 1 ,core_aes_en 
+6755 1fe1fe02 or_into 0x2 ,pdata 
+6756 67f0806f store 1 ,core_aes_en 
+
+read_function:
+6757 18427c00 copy temp ,null 
+6758 2022e75a branch read_fuction_zero ,zero 
+6759 1a627a00 copy regc ,pc 
+
+read_fuction_zero:
+675a 2fcc0000 isolate0 0 ,null 
+675b 20206834 branch set_ucode_status 
+
+get_block_header:
+675c 18000404 force 4 ,temp 
+
+get_block_header0:
+675d da2001c4 arg mem_ucode_buf ,rega 
+675e 2040674f call aes_disable 
+675f 20406757 call read_function 
+6760 da2055aa arg 0x55aa ,rega 
+6761 6fe101c4 fetch 2 ,mem_ucode_buf 
+6762 e8410006 ifetcht 2 ,contr 
+6763 9a267c00 isub rega ,null 
+6764 20600000 rtn 
+
+read_first_block:
+6765 20546777 call load_aes_reinit ,user 
+6766 d8400002 arg 2 ,temp 
+6767 da2001ca arg mem_ucode_ptr ,rega 
+6768 20406757 call read_function 
+6769 6fe101ca fetch 2 ,mem_ucode_ptr 
+676a 67e101bd store 2 ,mem_addr_mi 
+676b 2054676d call get_iv ,user 
+676c 20600000 rtn 
+
+get_iv:
+676d d8400010 arg 16 ,temp 
+676e da2001cc arg mem_ucode_keybuf ,rega 
+676f 2040674f call aes_disable 
+6770 20406757 call read_function 
+
+set_iv:
+6771 d8c001cc arg mem_ucode_keybuf ,contr 
+6772 df200010 arg 16 ,loopcnt 
+6773 20406e6f call aes_load_data 
+6774 20406df6 call aes_init 
+6775 20406e8b call aes_clear_data 
+6776 20206df0 branch do_aes_cbc 
+
+load_aes_reinit:
+6777 70802300 jam 0x0 ,core_ucode_ctrl 
+6778 2040674f call aes_disable 
+6779 20206e8b branch aes_clear_data 
+
+load_storage:
+677a 58000000 setarg 0 
+677b 67e104ed store 2 ,mem_queue 
+677c 7856fc00 disable match 
+677d 2040675c call get_block_header 
+677e 24628000 nrtn zero 
+677f 7836fc00 enable match 
+6780 70802380 jam 0x80 ,core_ucode_ctrl 
+6781 70802200 jam 0 ,core_ucode_hi 
+6782 70802400 jam 0 ,core_ucode_low 
+6783 da208025 arg core_ucode_data ,rega 
+6784 20406753 call read_function_aes 
+6785 70802300 jam 0x0 ,core_ucode_ctrl 
+6786 6fe081ba fetch 1 ,mem_ucode_status 
+6787 c4000000 rtnbit0 0 
+
+load_storage_loop:
+6788 d8400006 arg 6 ,temp 
+6789 2040675d call get_block_header0 
+678a 2422e799 nbranch load_data_checksum_compare ,zero 
+678b efe10006 ifetch 2 ,contr 
+678c 98002200 iforce rega 
+678d 20406757 call read_function 
+678e 20406790 call load_data_checksum_calc 
+678f 20206788 branch load_storage_loop 
+
+load_data_checksum_calc:
+6790 6fe104ed fetch 2 ,mem_queue 
+6791 df200006 arg 6 ,loopcnt 
+6792 d8c001c4 arg mem_ucode_buf ,contr 
+6793 204074da call cal_sum 
+6794 6f2101c6 fetchr loopcnt ,2 ,mem_ucode_len 
+6795 1a220c00 copy rega ,contr 
+6796 204074da call cal_sum 
+6797 67e104ed store 2 ,mem_queue 
+6798 20600000 rtn 
+
+load_data_checksum_compare:
+6799 6fe081de fetch 1 ,mem_load_check_sum 
+679a c02d67a7 beq 0x5a ,load_data_checksum_ok 
+679b da20aa55 arg 0xaa55 ,rega 
+679c 6fe101c4 fetch 2 ,mem_ucode_buf 
+679d 9a267c00 isub rega ,null 
+679e 2422e7a9 nbranch load_data_checksum_compare_fail ,zero 
+679f da2055aa arg 0x55aa ,rega 
+67a0 6fe101c6 fetch 2 ,mem_ucode_len 
+67a1 9a267c00 isub rega ,null 
+67a2 2422e7a9 nbranch load_data_checksum_compare_fail ,zero 
+67a3 6fe101c8 fetch 2 ,mem_sched_addr 
+67a4 684904ed fetcht 2 ,mem_queue 
+67a5 98467c00 isub temp ,null 
+67a6 2422e7a9 nbranch load_data_checksum_compare_fail ,zero 
+
+load_data_checksum_ok:
+67a7 7920220f set1 15 ,rega 
+67a8 2020675a branch read_fuction_zero 
+
+load_data_checksum_compare_fail:
+67a9 7001ba00 jam 0 ,mem_ucode_status 
+67aa 20600000 rtn 
+
+loadcode_lock:
+67ab 6ff1011e fetch 2 ,core_ucode_flag 
+67ac 67e101b8 store 2 ,mem_ucode_device_flag 
+67ad 793ffe0e set0 lpmreg_ice_mode_bit ,pdata 
+67ae 247a0000 nrtn blank 
+67af 580007d0 setarg otp_offset_device_flag 
+67b0 da2001b8 arg mem_ucode_device_flag ,rega 
+67b1 d8400002 arg 2 ,temp 
+67b2 204068c9 call otpd_read_data 
+67b3 6fe081ca fetch 1 ,mem_ucode_ptr 
+67b4 1ff18400 rshift4 pdata ,temp 
+67b5 6fe081b8 fetch 1 ,mem_ucode_device_flag 
+67b6 1ff27e00 lshift4 pdata ,pdata 
+67b7 9841fe00 ior temp ,pdata 
+67b8 67e081b8 store 1 ,mem_ucode_device_flag 
+67b9 202068de branch app_lpm_peripheral_lock_check 
+
+loadcode:
+67ba 70805025 jam 0x25 ,core_clkoff 
+67bb 20407484 call clean_mem 
+67bc 78547c00 disable user 
+67bd 7001ba00 jam 0 ,mem_ucode_status 
+67be 20406856 call otp_read_pwr_on 
+67bf 204068d6 call app_read_efuse_app_vsel 
+67c0 58000000 setarg otp_offset_ucode_flag 
+67c1 da2001ca arg mem_ucode_ptr ,rega 
+67c2 d8400002 arg 2 ,temp 
+67c3 204068c9 call otpd_read_data 
+67c4 204067ab call loadcode_lock 
+67c5 580007d3 setarg otp_offset_loadcode_delay 
+67c6 da2001dd arg mem_load_delay ,rega 
+67c7 d8400002 arg 2 ,temp 
+67c8 204068c9 call otpd_read_data 
+67c9 6fe081b8 fetch 1 ,mem_ucode_device_flag 
+67ca c301e7d4 bbit0 otp_uflag_aes ,loadcode_otp 
+67cb 580007f0 setarg otp_offset_ucode_key 
+67cc da2001cc arg mem_ucode_keybuf ,rega 
+67cd d8400010 arg 16 ,temp 
+67ce 204068c9 call otpd_read_data 
+67cf 70800608 jam lock_otp ,core_misc_ctrl 
+67d0 7920002b set1 mark_otp_encrypt ,mark 
+67d1 d8c001cc arg mem_ucode_keybuf ,contr 
+67d2 20406e7b call load_key 
+67d3 78347c00 enable user 
+
+loadcode_otp:
+67d4 70411500 jam 0 ,mem_loadcode_times 
+
+loadcode_otp_loop:
+67d5 20406825 call loadcode_timeout 
+67d6 24216831 nbranch loadcode_error ,positive 
+67d7 20546777 call load_aes_reinit ,user 
+67d8 6fe101ca fetch 2 ,mem_ucode_ptr 
+67d9 1ff0fe00 byteswap pdata ,pdata 
+67da d84007ff arg 0x7ff ,temp 
+67db 98417e00 iand temp ,pdata 
+67dc 2022e7e6 branch loadcode_iic ,zero 
+67dd 2040687f call otp_set_addr 
+67de da6068cc arg otpd_read_code ,regc 
+67df 2054676d call get_iv ,user 
+67e0 2040677a call load_storage 
+67e1 2436e7e6 nbranch loadcode_iic ,match 
+67e2 6fe081ba fetch 1 ,mem_ucode_status 
+67e3 2fe00603 compare 3 ,pdata ,3 
+67e4 2420e7d5 nbranch loadcode_otp_loop ,true 
+67e5 204067f4 call run_otp_code 
+
+loadcode_iic:
+67e6 20406873 call otp_pwr_off 
+67e7 70411500 jam 0 ,mem_loadcode_times 
+
+loadcode_iic_loop:
+67e8 20406825 call loadcode_timeout 
+67e9 24216831 nbranch loadcode_error ,positive 
+67ea 20406817 call iicd_load_gpio_init 
+67eb 20406a3c call clear_eeprom_size_2k 
+67ec 6fe081b8 fetch 1 ,mem_ucode_device_flag 
+67ed c2816800 bbit1 otp_uflag_skip_eep ,loadcode_spi 
+67ee 2040681f call loadcode_iic_by_eeprom 
+67ef 2436e7f7 nbranch loadcode_iic_eeprom_2k ,match 
+67f0 6fe081ba fetch 1 ,mem_ucode_status 
+67f1 2fe00603 compare 3 ,pdata ,3 
+67f2 2420e7e8 nbranch loadcode_iic_loop ,true 
+67f3 20206800 branch loadcode_spi 
+
+run_otp_code:
+67f4 580001ff setarg 0x1ff 
+67f5 dfa00000 arg 0 ,pc 
+67f6 20600000 rtn 
+
+loadcode_iic_eeprom_2k:
+67f7 20406a39 call set_eeprom_size_2k 
+67f8 6fe081b8 fetch 1 ,mem_ucode_device_flag 
+67f9 c2816800 bbit1 otp_uflag_skip_eep ,loadcode_spi 
+67fa 2040681f call loadcode_iic_by_eeprom 
+67fb 2436e800 nbranch loadcode_spi ,match 
+67fc 6fe081ba fetch 1 ,mem_ucode_status 
+67fd 2fe00603 compare 3 ,pdata ,3 
+67fe 2420e7e8 nbranch loadcode_iic_loop ,true 
+67ff 20206810 branch clear_key_buf 
+
+loadcode_spi:
+6800 70411500 jam 0 ,mem_loadcode_times 
+
+loadcode_spi_loop:
+6801 20406825 call loadcode_timeout 
+6802 24216831 nbranch loadcode_error ,positive 
+6803 6fe081b8 fetch 1 ,mem_ucode_device_flag 
+6804 c280e810 bbit1 otp_uflag_skip_flash ,clear_key_buf 
+6805 2040698c call spid_init_flash 
+6806 200000c8 nop 200 
+6807 2040699b call spid_flash_release_form_powerdown 
+6808 20000064 nop 100 
+6809 da6069cf arg spid_load_flash ,regc 
+680a 20406765 call read_first_block 
+680b 2040677a call load_storage 
+680c 2436e810 nbranch clear_key_buf ,match 
+680d 6fe081ba fetch 1 ,mem_ucode_status 
+680e 2fe00603 compare 3 ,pdata ,3 
+680f 2420e801 nbranch loadcode_spi_loop ,true 
+
+clear_key_buf:
+6810 58000000 setarg 0 
+6811 67e401cc store 8 ,mem_ucode_keybuf 
+6812 67e401d4 store 8 ,mem_ucode_keybuf + 8 
+6813 18007004 force regidx_key ,regext_index 
+6814 20406e8c call aes_clear 
+6815 70805021 jam 0x21 ,core_clkoff 
+6816 20600000 rtn 
+
+iicd_load_gpio_init:
+6817 6fe0c3db fetch 1 ,mem_eeprom_sda_gpio 
+6818 6848c3da fetcht 1 ,mem_eeprom_scl_gpio 
+6819 98467c00 isub temp ,null 
+681a 2422ea22 nbranch iicd_read_init_pin ,zero 
+
+iicd_load_default_gpio:
+681b 7043d902 jam 2 ,mem_eeprom_wp_gpio 
+681c 7043da01 jam 1 ,mem_eeprom_scl_gpio 
+681d 7043db00 jam 0 ,mem_eeprom_sda_gpio 
+681e 20206a22 branch iicd_read_init_pin 
+
+loadcode_iic_by_eeprom:
+681f 58000000 setarg 0x0 
+6820 67e101bd store 2 ,mem_addr_mi 
+6821 da606a5f arg iicd_read_eep ,regc 
+6822 20406a0b call iic_init_600khz 
+6823 20406765 call read_first_block 
+6824 2020677a branch load_storage 
+
+loadcode_timeout:
+6825 2040682b call loadcode_error_delay 
+6826 6fe0c115 fetch 1 ,mem_loadcode_times 
+6827 1fe0fe01 increase 1 ,pdata 
+6828 1fe67c03 sub pdata ,3 ,null 
+6829 67e0c115 store 1 ,mem_loadcode_times 
+682a 20600000 rtn 
+
+loadcode_error_delay:
+682b 6fe0c115 fetch 1 ,mem_loadcode_times 
+682c 207a0000 rtn blank 
+682d 6fe081dd fetch 1 ,mem_load_delay 
+682e 207a0000 rtn blank 
+682f 1fe27200 copy pdata ,loopcnt 
+6830 202073d9 branch delay_ms_wait 
+
+loadcode_error:
+6831 20406810 call clear_key_buf 
+6832 2040748a call ice_break 
+6833 20600000 rtn 
+
+set_ucode_status:
+6834 6fe081ba fetch 1 ,mem_ucode_status 
+6835 1fe3fe00 lshift pdata ,pdata 
+6836 7920fe00 setflag true ,0 ,pdata 
+6837 2a2c000f isolate0 15 ,rega 
+6838 20608000 rtn true 
+6839 67e081ba store 1 ,mem_ucode_status 
+683a 20600000 rtn 
+
+decrypt_code:
+683b 6ff0806f fetch 1 ,core_aes_en 
+683c c4008000 rtnbit0 1 
+683d 20206841 branch decrypt_code_skip 
+
+decrypt_code_loop:
+683e 6ff08128 fetch 1 ,core_dma_status 
+683f afefffff qisolate1 pdata 
+6840 20608000 rtn true 
+
+decrypt_code_skip:
+6841 6ff08108 fetch 1 ,core_misc_status 
+6842 c300e83e bbit0 1 ,decrypt_code_loop 
+6843 20406df0 call do_aes_cbc 
+6844 2020683e branch decrypt_code_loop 
+
+load_ucode:
+6845 6fe140e9 fetch 2 ,mem_patch_ptr 
+6846 207a0000 rtn blank 
+6847 70802380 jam 0x80 ,core_ucode_ctrl 
+6848 70802200 jam 0 ,core_ucode_hi 
+6849 70802400 jam 0 ,core_ucode_low 
+684a 684940eb fetcht 2 ,mem_patch_len 
+684b 184bf200 lshift2 temp ,loopcnt 
+684c 98000c00 iforce contr 
+
+load_ucode_loop:
+684d efe08006 ifetch 1 ,contr 
+684e 67f08025 store 1 ,core_ucode_data 
+684f c200684d loop load_ucode_loop 
+6850 70802300 jam 0x0 ,core_ucode_ctrl 
+6851 20600000 rtn 
+
+otp_prog_pwr_on:
+6852 708aa004 jam 0x4 ,rfen_chgpump 
+6853 708aa131 jam 0x31 ,rfen_chgpump_ctrl1 
+6854 708aa201 jam 0x1 ,rfen_chgpump_ctrl2 
+6855 20206859 branch otp_pwr_on 
+
+otp_read_pwr_on:
+6856 708aa00c jam 0xc ,rfen_chgpump 
+6857 708aa1fb jam 0xfb ,rfen_chgpump_ctrl1 
+6858 708aa203 jam 0x3 ,rfen_chgpump_ctrl2 
+
+otp_pwr_on:
+6859 67e104d4 store 2 ,mem_timeup 
+685a 44c54011 bpatch patch11_2 ,mem_patch11 
+685b 708a01ff jam 0xff ,core_clkpll_ctrl1 
+685c 6ff08a0b fetch 1 ,core_rf_ldo_en1 
+685d 67e084d6 store 1 ,mem_timeup + 2 
+685e 1fe1fe04 or_into 0x4 ,pdata 
+685f 67f08a0b store 1 ,core_rf_ldo_en1 
+6860 6ff08a13 fetch 1 ,core_rf_ldo_cfg7 
+6861 67e084d7 store 1 ,mem_timeup + 3 
+6862 708a1311 jam 0x11 ,core_rf_ldo_cfg7 
+6863 200003e8 nop 1000 
+6864 6ff08a02 fetch 1 ,core_clkpll_ctrl2 
+6865 1fe1fe01 or_into 0x1 ,pdata 
+6866 67f08a02 store 1 ,core_clkpll_ctrl2 
+6867 708a0003 jam 0x03 ,core_clkpll_ctrl0 
+6868 44c5c011 bpatch patch11_3 ,mem_patch11 
+6869 6ff08aa0 fetch 1 ,rfen_chgpump 
+686a 1fe1fed0 or_into 0xd0 ,pdata 
+686b 67f08aa0 store 1 ,rfen_chgpump 
+686c 20001770 nop 6000 
+686d 6ff08aa0 fetch 1 ,rfen_chgpump 
+686e 1fe1fe20 or_into 0x20 ,pdata 
+686f 67f08aa0 store 1 ,rfen_chgpump 
+6870 20002ee0 nop 12000 
+6871 6fe104d4 fetch 2 ,mem_timeup 
+6872 20600000 rtn 
+
+otp_pwr_off:
+6873 44c64011 bpatch patch11_4 ,mem_patch11 
+6874 708aa004 jam 0x4 ,rfen_chgpump 
+6875 708aa143 jam 0x43 ,rfen_chgpump_ctrl1 
+6876 708aa201 jam 0x1 ,rfen_chgpump_ctrl2 
+6877 6ff08a02 fetch 1 ,core_clkpll_ctrl2 
+6878 1fe17efe and_into 0xfe ,pdata 
+6879 67f08a02 store 1 ,core_clkpll_ctrl2 
+687a 6fe084d6 fetch 1 ,mem_timeup + 2 
+687b 67f08a0b store 1 ,core_rf_ldo_en1 
+687c 6fe084d7 fetch 1 ,mem_timeup + 3 
+687d 67f08a13 store 1 ,core_rf_ldo_cfg7 
+687e 20600000 rtn 
+
+otp_set_addr:
+687f 1fe9fe00 lshift3 pdata ,pdata 
+6880 67f10045 store 2 ,core_otp_addr 
+6881 70804b00 jam 0 ,core_otpd_ctrl 
+6882 20600000 rtn 
+
+otp_write:
+6883 20406852 call otp_prog_pwr_on 
+6884 2040687f call otp_set_addr 
+6885 204068b1 call otp_ce 
+
+otp_program:
+6886 e8408011 ifetcht 1 ,rega 
+6887 1a20a201 increase 1 ,rega 
+6888 18000e00 force 0 ,queue 
+
+otp_program_bit:
+6889 a84c0000 qisolate0 temp 
+688a 2020e8a8 branch otp_skip_0 ,true 
+688b 6ff08046 fetch 1 ,core_otp_din 
+688c 79207e06 set1 6 ,pdata 
+688d 79207e07 set1 7 ,pdata 
+688e 67f08046 store 1 ,core_otp_din 
+688f 70804702 jam 0x02 ,core_otp_ctrl 
+6890 70804782 jam 0x82 ,core_otp_ctrl 
+6891 793ffe07 set0 7 ,pdata 
+6892 67f08046 store 1 ,core_otp_din 
+6893 7080478a jam 0x8a ,core_otp_ctrl 
+6894 2000000b nop 11 
+6895 708047ca jam 0xca ,core_otp_ctrl 
+6896 20000021 nop 33 
+6897 7080474a jam 0x4a ,core_otp_ctrl 
+6898 200000c8 nop 200 
+6899 708047ca jam 0xca ,core_otp_ctrl 
+689a 20000016 nop 22 
+689b 7080478a jam 0x8a ,core_otp_ctrl 
+689c 20000021 nop 33 
+689d 70804782 jam 0x82 ,core_otp_ctrl 
+689e 20000001 nop 1 
+689f 70804792 jam 0x92 ,core_otp_ctrl 
+68a0 2000000a nop 10 
+68a1 708047b2 jam 0xb2 ,core_otp_ctrl 
+68a2 6ff08007 fetch 1 ,core_otp_rdata 
+68a3 70804792 jam 0x92 ,core_otp_ctrl 
+68a4 20000001 nop 1 
+68a5 70804782 jam 0x82 ,core_otp_ctrl 
+68a6 afec0000 qisolate0 pdata 
+68a7 2020e889 branch otp_program_bit ,true 
+
+otp_skip_0:
+68a8 6ff10045 fetch 2 ,core_otp_addr 
+68a9 1fe0fe01 increase 1 ,pdata 
+68aa 67f10045 store 2 ,core_otp_addr 
+68ab 18e08e01 increase 1 ,queue 
+68ac 28e01e08 compare 8 ,queue ,0xf 
+68ad 2420e889 nbranch otp_program_bit ,true 
+68ae c2006886 loop otp_program 
+68af 70804783 jam 0x83 ,core_otp_ctrl 
+68b0 20206873 branch otp_pwr_off 
+
+otp_ce:
+68b1 70804782 jam 0x82 ,core_otp_ctrl 
+68b2 2000000c nop 12 
+68b3 70804780 jam 0x80 ,core_otp_ctrl 
+68b4 70804782 jam 0x82 ,core_otp_ctrl 
+68b5 20000096 nop 150 
+68b6 20600000 rtn 
+
+otpd_read_init:
+68b7 204068b1 call otp_ce 
+68b8 708047a2 jam 0xa2 ,core_otp_ctrl 
+68b9 1a227e00 deposit rega 
+68ba 67f10048 store 2 ,core_otpd_addr 
+68bb 7920040b set1 11 ,temp 
+68bc 2fec000f isolate0 15 ,pdata 
+68bd 7920840f setflag true ,15 ,temp 
+68be 6059004a storet 2 ,core_otpd_len 
+68bf 70800701 jam otpd_start ,core_otp_rdata 
+68c0 20600000 rtn 
+
+otpd_wait_end:
+68c1 6ff08128 fetch 1 ,core_dma_status 
+68c2 c300e8c1 bbit0 otpd_done ,otpd_wait_end 
+68c3 70804783 jam 0x83 ,core_otp_ctrl 
+68c4 20600000 rtn 
+
+otpd_read_data_with_pwr_operation:
+68c5 44c6c011 bpatch patch11_5 ,mem_patch11 
+68c6 20406856 call otp_read_pwr_on 
+68c7 204068c9 call otpd_read_data 
+68c8 20206873 branch otp_pwr_off 
+
+otpd_read_data:
+68c9 2040687f call otp_set_addr 
+68ca 204068b7 call otpd_read_init 
+68cb 202068c1 branch otpd_wait_end 
+
+otpd_read_code:
+68cc 20406856 call otp_read_pwr_on 
+68cd 6ff10122 fetch 2 ,core_current_otp_addr 
+68ce 67f10045 store 2 ,core_otp_addr 
+68cf 204068b7 call otpd_read_init 
+68d0 d8e00001 arg otpd_done ,queue 
+68d1 2040683b call decrypt_code 
+68d2 204068c1 call otpd_wait_end 
+68d3 2feffe00 isolate1 otpd_crcok ,pdata 
+68d4 20406834 call set_ucode_status 
+68d5 20206873 branch otp_pwr_off 
+
+app_read_efuse_app_vsel:
+68d6 580007d2 setarg otp_offset_app_vdd_sel 
+68d7 da2040cc arg mem_lpm_ctrl3_app_vsel ,rega 
+68d8 d8400001 arg 1 ,temp 
+68d9 204068c9 call otpd_read_data 
+68da 6fe0c0cc fetch 1 ,mem_lpm_ctrl3_app_vsel 
+68db 243a68dd nbranch app_set_app_vsel ,blank 
+68dc 7040cc04 jam 0x04 ,mem_lpm_ctrl3_app_vsel 
+
+app_set_app_vsel:
+68dd 20203c0e branch lpm_write_sel_vdd 
+
+app_lpm_peripheral_lock_check:
+68de 6fe101b8 fetch 2 ,mem_ucode_device_flag 
+68df 1ff1fe00 rshift4 pdata ,pdata 
+68e0 207a0000 rtn blank 
+68e1 6fe081b8 fetch 1 ,mem_ucode_device_flag 
+68e2 1ff1fe00 rshift4 pdata ,pdata 
+68e3 c00268ec beq dvc_op_dongle ,app_lpm_peripheral_lock_dongle 
+68e4 c005e8f0 beq dvc_op_light ,app_lpm_peripheral_lock_light 
+68e5 c00468f4 beq dvc_op_mouse ,app_lpm_peripheral_lock_mouse 
+68e6 c003e8f8 beq dvc_op_mouse_24g ,app_lpm_peripheral_lock_mouse_24g 
+68e7 c004e8fc beq dvc_op_shutter ,app_lpm_peripheral_lock_shutter 
+68e8 c00568fc beq dvc_op_shutter_dy ,app_lpm_peripheral_lock_shutter 
+68e9 c0066900 beq dvc_op_car ,app_lpm_peripheral_car_lock_application 
+68ea c007e907 beq dvc_op_car_lock_app_and_ble ,app_lpm_peripheral_car_lock_application_and_ble 
+68eb 2020691b branch app_lpm_mpu_lock_24g_ble 
+
+app_lpm_peripheral_lock_dongle:
+68ec dfe0522c arg mouse_init ,pdata 
+68ed d8406596 arg shutter_dy_shutter_1s_timer ,temp 
+68ee 2040690e call app_mpu_s0_lock 
+68ef 20206903 branch app_lpm_peripheral_lock_frmt_common 
+
+app_lpm_peripheral_lock_light:
+68f0 dfe04e38 arg car_hard_switch_power_on_signal ,pdata 
+68f1 d8406596 arg shutter_dy_shutter_1s_timer ,temp 
+68f2 2040690e call app_mpu_s0_lock 
+68f3 20206920 branch lpm_write_lock 
+
+app_lpm_peripheral_lock_mouse:
+68f4 dfe06028 arg shutter_init ,pdata 
+68f5 d8406596 arg shutter_dy_shutter_1s_timer ,temp 
+68f6 2040690e call app_mpu_s0_lock 
+68f7 20206903 branch app_lpm_peripheral_lock_frmt_common 
+
+app_lpm_peripheral_lock_mouse_24g:
+68f8 dfe04296 arg le_init_adv ,pdata 
+68f9 d8404786 arg le_send_ll_one_lenth ,temp 
+68fa 2040690e call app_mpu_s0_lock 
+68fb 20206903 branch app_lpm_peripheral_lock_frmt_common 
+
+app_lpm_peripheral_lock_shutter:
+68fc dfe04e38 arg car_hard_switch_power_on_signal ,pdata 
+68fd d8406024 arg mouse_24g_send_time_long_wake ,temp 
+68fe 2040690e call app_mpu_s0_lock 
+68ff 20206903 branch app_lpm_peripheral_lock_frmt_common 
+
+app_lpm_peripheral_lock_remote_car:
+
+app_lpm_peripheral_car_lock_application:
+6900 dfe050b8 arg dongle_init ,pdata 
+6901 d8406596 arg shutter_dy_shutter_1s_timer ,temp 
+6902 2040690e call app_mpu_s0_lock 
+
+app_lpm_peripheral_lock_frmt_common:
+6903 dfe074e8 arg frmt_gem_adv_pdu_common ,pdata 
+6904 d8407de4 arg frmt_ble_data_set ,temp 
+6905 20406914 call app_mpu_s1_lock 
+6906 20206920 branch lpm_write_lock 
+
+app_lpm_peripheral_car_lock_application_and_ble:
+6907 dfe050b8 arg dongle_init ,pdata 
+6908 d8406596 arg shutter_dy_shutter_1s_timer ,temp 
+6909 2040690e call app_mpu_s0_lock 
+690a dfe04296 arg le_init_adv ,pdata 
+690b d8404786 arg le_send_ll_one_lenth ,temp 
+690c 20406914 call app_mpu_s1_lock 
+690d 20206920 branch lpm_write_lock 
+
+app_mpu_s0_lock:
+690e 18500400 lshift16 temp ,temp 
+690f 9841fe00 ior temp ,pdata 
+6910 67f2004c store 4 ,core_lpm_reg 
+6911 20206935 branch lpm_write2_mpu_s0 
+
+app_lpm_mpu_lock_ble:
+6912 dfe0432f arg le_parse_att ,pdata 
+6913 d8404786 arg le_send_ll_one_lenth ,temp 
+
+app_mpu_s1_lock:
+6914 18500400 lshift16 temp ,temp 
+6915 9841fe00 ior temp ,pdata 
+6916 67f2004c store 4 ,core_lpm_reg 
+6917 20206937 branch lpm_write2_mpu_s1 
+
+app_lpm_mpu_lock_24g:
+6918 dfe0478b arg g24_prep ,pdata 
+6919 d84048fa arg g24_enable_1m ,temp 
+691a 20206914 branch app_mpu_s1_lock 
+
+app_lpm_mpu_lock_24g_ble:
+691b 20406918 call app_lpm_mpu_lock_24g 
+691c dfe0432f arg le_parse_att ,pdata 
+691d d8404786 arg le_send_ll_one_lenth ,temp 
+691e 2040690e call app_mpu_s0_lock 
+691f 20206920 branch lpm_write_lock 
+
+lpm_write_lock:
+6920 6fe101b8 fetch 2 ,mem_ucode_device_flag 
+6921 79207e0d set1 lpmreg_rom_lock_bit ,pdata 
+6922 79207e0e set1 lpmreg_ice_mode_bit ,pdata 
+6923 67f2004c store 4 ,core_lpm_reg 
+6924 20406927 call lpm_write2_ctrl_option 
+6925 70801108 jam 8 ,core_encrypt 
+6926 20600000 rtn 
+
+lpm_write2_ctrl_option:
+6927 58000002 setarg lpmreg2_sel_option 
+
+lpm_write2:
+6928 37d98200 until null ,lpo_edge 
+6929 67f08012 store 1 ,core_lpm_wr2 
+692a 37d98200 until null ,lpo_edge 
+692b 37d98200 until null ,lpo_edge 
+692c 20600000 rtn 
+
+lpm_write_ice_disable:
+692d 6ff1011e fetch 2 ,core_ucode_flag 
+692e 793ffe0e set0 lpmreg_ice_mode_bit ,pdata 
+692f 67f2004c store 4 ,core_lpm_reg 
+6930 20206927 branch lpm_write2_ctrl_option 
+
+lpm_write_ice_enable:
+6931 6ff1011e fetch 2 ,core_ucode_flag 
+6932 79207e0e set1 lpmreg_ice_mode_bit ,pdata 
+6933 67f2004c store 4 ,core_lpm_reg 
+6934 20206927 branch lpm_write2_ctrl_option 
+
+lpm_write2_mpu_s0:
+6935 58000004 setarg lpmreg2_sel_mpu_s0 
+6936 20206928 branch lpm_write2 
+
+lpm_write2_mpu_s1:
+6937 58000008 setarg lpmreg2_sel_mpu_s1 
+6938 20206928 branch lpm_write2 
+
+spid_init:
+6939 44c74011 bpatch patch11_6 ,mem_patch11 
+
+spid_init_common:
+693a 6fe0c3ae fetch 1 ,mem_spi_init_clk 
+693b 67f08080 store 1 ,core_spid_ctrl 
+693c 6fe0c3af fetch 1 ,mem_spi_init_delay_time 
+693d 67f08081 store 1 ,core_spid_delay 
+693e 580001bb setarg mem_spid_tbuf 
+693f 67f10084 store 2 ,core_spid_txaddr 
+6940 580001c0 setarg mem_spid_rbuf 
+6941 67f10086 store 2 ,core_spid_rxaddr 
+6942 20206745 branch twspi_disable 
+
+spid_write_reg:
+6943 79207e07 set1 7 ,pdata 
+6944 67e101bb store 2 ,mem_spid_tbuf 
+6945 44c7c011 bpatch patch11_7 ,mem_patch11 
+6946 70808202 jam 2 ,core_spid_txlen 
+6947 70808800 jam 0 ,core_spid_rxlen 
+6948 70800602 jam spid_start ,core_misc_ctrl 
+6949 20206953 branch wait_spid_done 
+
+spid_read_reg:
+694a 18000401 force 1 ,temp 
+
+spid_read_regs:
+694b 67e081bb store 1 ,mem_spid_tbuf 
+694c 44c84012 bpatch patch12_0 ,mem_patch12 
+694d 70808201 jam 1 ,core_spid_txlen 
+694e 60590088 storet 2 ,core_spid_rxlen 
+694f 70800602 jam spid_start ,core_misc_ctrl 
+6950 20406953 call wait_spid_done 
+6951 6fe081c0 fetch 1 ,mem_spid_rbuf 
+6952 20600000 rtn 
+
+wait_spid_done:
+6953 20000005 nop 5 
+6954 6ff08128 fetch 1 ,core_dma_status 
+6955 c301e953 bbit0 spid_done ,wait_spid_done 
+6956 20600000 rtn 
+
+flash_write_spi_sm_timer:
+6957 6fe0c3d2 fetch 1 ,mem_spi_write_flash_sm 
+6958 c000e95e beq flash_sm_start ,spid_flash_write_start 
+6959 c0016964 beq flash_sm_erase_sector ,spid_flash_erase_sector 
+695a c001e96c beq flash_sm_wait_erase_sector ,spid_flash_wait_erase_sector 
+695b c0026970 beq flash_sm_write_data ,spid_flash_write_data 
+695c c002e977 beq flash_sm_wait_write_data ,spid_flash_wait_write_data 
+695d 20600000 rtn 
+
+spid_flash_write_start:
+695e 67e1c3cb store 3 ,mem_spi_write_addr 
+695f 1a227e00 copy rega ,pdata 
+6960 67e143ce store 2 ,mem_spi_write_ptr 
+6961 604943d0 storet 2 ,mem_spi_write_len 
+6962 7043d202 jam flash_sm_erase_sector ,mem_spi_write_flash_sm 
+6963 2020698c branch spid_init_flash 
+
+spid_flash_erase_sector:
+6964 2040698c call spid_init_flash 
+6965 7043d203 jam flash_sm_wait_erase_sector ,mem_spi_write_flash_sm 
+6966 20406992 call spid_unlock_flash 
+6967 da2001bb arg mem_spid_tbuf ,rega 
+6968 70808204 jam 4 ,core_spid_txlen 
+6969 6fe1c3cb fetch 3 ,mem_spi_write_addr 
+696a d8400020 arg flash_command_sector_erase ,temp 
+696b 202069a3 branch spid_write_flash_common 
+
+spid_flash_wait_erase_sector:
+696c 2040698c call spid_init_flash 
+696d 204069c6 call wait_spid_flash_done 
+696e 7043d204 jam flash_sm_write_data ,mem_spi_write_flash_sm 
+696f 20600000 rtn 
+
+spid_flash_write_data:
+6970 44c8c012 bpatch patch12_1 ,mem_patch12 
+6971 2040698c call spid_init_flash 
+6972 7043d205 jam flash_sm_wait_write_data ,mem_spi_write_flash_sm 
+6973 20406992 call spid_unlock_flash 
+6974 20406984 call spid_flash_data_preserve 
+6975 2040699f call spid_write_flash 
+6976 2020697f branch spid_flash_data_recover 
+
+spid_flash_wait_write_data:
+6977 2040698c call spid_init_flash 
+6978 20406992 call spid_unlock_flash 
+6979 58000005 setarg flash_read_satus 
+697a 2040694a call spid_read_reg 
+697b c3800000 rtnbit1 flash_status_wip 
+697c 7043d200 jam flash_sm_no_buys ,mem_spi_write_flash_sm 
+697d 6fe143a0 fetch 2 ,mem_cb_spi_flash_write_complate 
+697e 20207487 branch callback_func 
+
+spid_flash_data_recover:
+697f 6fe204cc fetch 4 ,mem_temp 
+6980 684943ce fetcht 2 ,mem_spi_write_ptr 
+
+spid_flash_data_recover_comm:
+6981 184085fc increase -4 ,temp 
+6982 e7e20002 istore 4 ,temp 
+6983 20600000 rtn 
+
+spid_flash_data_preserve:
+6984 684943ce fetcht 2 ,mem_spi_write_ptr 
+6985 18422200 copy temp ,rega 
+6986 184085fc increase -4 ,temp 
+6987 efe20002 ifetch 4 ,temp 
+6988 67e204cc store 4 ,mem_temp 
+6989 684943d0 fetcht 2 ,mem_spi_write_len 
+698a 6fe1c3cb fetch 3 ,mem_spi_write_addr 
+698b 20600000 rtn 
+
+spid_init_flash:
+698c 44c94012 bpatch patch12_2 ,mem_patch12 
+698d 204069f1 call spi_gpio_init 
+698e 20406745 call twspi_disable 
+698f 58000000 setarg 0 
+6990 67e201bb store 4 ,mem_spid_tbuf 
+6991 20600000 rtn 
+
+spid_unlock_flash:
+6992 7001bb06 jam flash_command_write_enable ,mem_spid_tbuf 
+
+spid_sendcmd_common:
+6993 58000000 setarg 0 
+6994 67f10088 store 2 ,core_spid_rxlen 
+6995 58000001 setarg 1 
+6996 67f10082 store 2 ,core_spid_txlen 
+6997 580001bb setarg mem_spid_tbuf 
+6998 67f10084 store 2 ,core_spid_txaddr 
+6999 70800602 jam spid_start ,core_misc_ctrl 
+699a 20206953 branch wait_spid_done 
+
+spid_flash_release_form_powerdown:
+699b 7001bbab jam flash_command_release_from_powerdown ,mem_spid_tbuf 
+699c 20206993 branch spid_sendcmd_common 
+
+spid_flash_powerdown:
+699d 7001bbb9 jam flash_command_powerdown ,mem_spid_tbuf 
+699e 20206993 branch spid_sendcmd_common 
+
+spid_write_flash:
+699f 18408404 increase 4 ,temp 
+69a0 60590082 storet 2 ,core_spid_txlen 
+69a1 d8400002 arg flash_command_write_data ,temp 
+69a2 1a20a3fc increase -4 ,rega 
+
+spid_write_flash_common:
+69a3 e0408011 istoret 1 ,rega 
+69a4 1ff10400 rshift16 pdata ,temp 
+69a5 e0408005 istoret 1 ,contw 
+69a6 1fec8400 rshift8 pdata ,temp 
+69a7 e0408005 istoret 1 ,contw 
+69a8 e7e08005 istore 1 ,contw 
+69a9 1a227e00 deposit rega 
+69aa 67f10084 store 2 ,core_spid_txaddr 
+69ab 58000000 setarg 0 
+69ac 67f10088 store 2 ,core_spid_rxlen 
+69ad 70800602 jam spid_start ,core_misc_ctrl 
+69ae 20406953 call wait_spid_done 
+69af 202069c6 branch wait_spid_flash_done 
+
+spid_read_flash:
+69b0 60590088 storet 2 ,core_spid_rxlen 
+69b1 1ff10400 rshift16 pdata ,temp 
+69b2 604881bc storet 1 ,mem_addr_hi 
+69b3 1fec8400 rshift8 pdata ,temp 
+69b4 604881bd storet 1 ,mem_addr_mi 
+69b5 67e081be store 1 ,mem_addr_lo 
+69b6 58000004 setarg 4 
+69b7 67f10082 store 2 ,core_spid_txlen 
+69b8 7001bb03 jam flash_command_read_data ,mem_spid_tbuf 
+69b9 580001bb setarg mem_spid_tbuf 
+69ba 67f10084 store 2 ,core_spid_txaddr 
+69bb 1a227e00 deposit rega 
+69bc 67f10086 store 2 ,core_spid_rxaddr 
+69bd 6ff08080 fetch 1 ,core_spid_ctrl 
+69be 2a2c000f isolate0 15 ,rega 
+69bf 7920fe06 setflag true ,6 ,pdata 
+69c0 67f08080 store 1 ,core_spid_ctrl 
+69c1 70800602 jam spid_start ,core_misc_ctrl 
+
+spid_read_flash_wait:
+69c2 6ff08128 fetch 1 ,core_dma_status 
+69c3 c283e9c2 bbit1 7 ,spid_read_flash_wait 
+69c4 d8e00003 arg spid_done ,queue 
+69c5 20206953 branch wait_spid_done 
+
+wait_spid_flash_done:
+69c6 580007d0 setarg 2000 
+69c7 20403a8c call sleep 
+69c8 20406992 call spid_unlock_flash 
+69c9 580001c0 setarg mem_spid_rbuf 
+69ca 67f10086 store 2 ,core_spid_rxaddr 
+69cb 58000005 setarg flash_read_satus 
+69cc 2040694a call spid_read_reg 
+69cd c28069c6 bbit1 flash_status_wip ,wait_spid_flash_done 
+69ce 20600000 rtn 
+
+spid_load_flash:
+69cf 60590088 storet 2 ,core_spid_rxlen 
+69d0 58000004 setarg 4 
+69d1 67f10082 store 2 ,core_spid_txlen 
+69d2 7001bb03 jam 3 ,mem_spid_tbuf 
+69d3 580001bb setarg mem_spid_tbuf 
+69d4 67f10084 store 2 ,core_spid_txaddr 
+69d5 1a227e00 deposit rega 
+69d6 67f10086 store 2 ,core_spid_rxaddr 
+69d7 6ff08080 fetch 1 ,core_spid_ctrl 
+69d8 2a2c000f isolate0 15 ,rega 
+69d9 7920fe06 setflag true ,6 ,pdata 
+69da 67f08080 store 1 ,core_spid_ctrl 
+69db 70800602 jam spid_start ,core_misc_ctrl 
+
+spi_load_flash_wait:
+69dc 6ff08128 fetch 1 ,core_dma_status 
+69dd c283e9dc bbit1 7 ,spi_load_flash_wait 
+69de d8e00003 arg spid_done ,queue 
+69df 2040683b call decrypt_code 
+69e0 20406953 call wait_spid_done 
+69e1 2feffe02 isolate1 spid_crcok ,pdata 
+69e2 20406834 call set_ucode_status 
+69e3 6fe081bc fetch 1 ,mem_addr_hi 
+69e4 1ff02400 lshift16 pdata ,regb 
+69e5 6fe081bd fetch 1 ,mem_addr_mi 
+69e6 1fed7e00 lshift8 pdata ,pdata 
+69e7 9a41a400 ior regb ,regb 
+69e8 6fe081be fetch 1 ,mem_addr_lo 
+69e9 9a41fe00 ior regb ,pdata 
+69ea 9840fe00 iadd temp ,pdata 
+69eb 67e081be store 1 ,mem_addr_lo 
+69ec 1fecfe00 rshift8 pdata ,pdata 
+69ed 67e081bd store 1 ,mem_addr_mi 
+69ee 1fecfe00 rshift8 pdata ,pdata 
+69ef 67e081bc store 1 ,mem_addr_hi 
+69f0 20600000 rtn 
+
+spi_gpio_init:
+69f1 6fe0c3d3 fetch 1 ,mem_spi_cs_gpio 
+69f2 6848c3d5 fetcht 1 ,mem_spi_so_gpio 
+69f3 98467c00 isub temp ,null 
+69f4 2422e9f6 nbranch spi_pin_set ,zero 
+69f5 20406a02 call spi_gpio_default_init 
+
+spi_pin_set:
+69f6 6fe0c3d3 fetch 1 ,mem_spi_cs_gpio 
+69f7 d8400020 arg gpcfg_spid_ncs ,temp 
+69f8 20406bbd call gpio_config_function_int 
+69f9 6fe0c3d6 fetch 1 ,mem_spi_sclk_gpio 
+69fa d8400021 arg gpcfg_spid_sck ,temp 
+69fb 20406bbd call gpio_config_function_int 
+69fc 6fe0c3d4 fetch 1 ,mem_spi_si_gpio 
+69fd d8400022 arg gpcfg_spid_mosi ,temp 
+69fe 20406bbd call gpio_config_function_int 
+69ff 6fe0c3d5 fetch 1 ,mem_spi_so_gpio 
+6a00 d840001f arg gpcfg_spid_miso ,temp 
+6a01 20206bbd branch gpio_config_function_int 
+
+spi_gpio_default_init:
+6a02 7043d301 jam 1 ,mem_spi_cs_gpio 
+6a03 7043d403 jam 3 ,mem_spi_si_gpio 
+6a04 7043d500 jam 0 ,mem_spi_so_gpio 
+6a05 7043d602 jam 2 ,mem_spi_sclk_gpio 
+6a06 7043d70b jam 11 ,mem_spi_wp_gpio 
+6a07 7043d80a jam 10 ,mem_spi_hold_gpio 
+6a08 20600000 rtn 
+
+soft_reset_chip:
+6a09 70801001 jam 1 ,core_reset 
+6a0a 20600000 rtn 
+
+iic_init_600khz:
+6a0b 70808b05 jam 5 ,core_iicd_scl_low 
+6a0c 70808c07 jam 7 ,core_iicd_scl_high 
+6a0d 70808d07 jam 7 ,core_iicd_start_setup 
+6a0e 70808e07 jam 7 ,core_iicd_start_hold 
+6a0f 70808f07 jam 7 ,core_iicd_stop_setup 
+6a10 70809005 jam 5 ,core_iicd_data_setup 
+6a11 70809100 jam 0 ,core_iicd_data_hold 
+6a12 20600000 rtn 
+
+iic_init_360khz:
+6a13 70808b0c jam 12 ,core_iicd_scl_low 
+6a14 70808c0d jam 13 ,core_iicd_scl_high 
+6a15 70808d0d jam 13 ,core_iicd_start_setup 
+6a16 70808e0d jam 13 ,core_iicd_start_hold 
+6a17 70808f0d jam 13 ,core_iicd_stop_setup 
+6a18 7080900c jam 12 ,core_iicd_data_setup 
+6a19 70809100 jam 0 ,core_iicd_data_hold 
+6a1a 20600000 rtn 
+
+iicd_init_pin:
+6a1b 20406a50 call iicd_eeprom_write_enable 
+
+iicd_init_pin_scl_sda:
+6a1c 6fe0c3da fetch 1 ,mem_eeprom_scl_gpio 
+6a1d d840006c arg gpcfg_iic_scl | gpcfg_pullup ,temp 
+6a1e 20406bbd call gpio_config_function_int 
+6a1f 6fe0c3db fetch 1 ,mem_eeprom_sda_gpio 
+6a20 d840006d arg gpcfg_iic_sda | gpcfg_pullup ,temp 
+6a21 20206bbd branch gpio_config_function_int 
+
+iicd_read_init_pin:
+6a22 20406a57 call iicd_eeprom_write_disable 
+6a23 20206a1c branch iicd_init_pin_scl_sda 
+
+wait_iicd_done:
+6a24 6ff08128 fetch 1 ,core_dma_status 
+6a25 c302ea24 bbit0 iicd_done ,wait_iicd_done 
+6a26 20600000 rtn 
+
+iicd_read_data:
+6a27 67e081bf store 1 ,mem_iicd_addr 
+6a28 580001bf setarg mem_iicd_addr 
+6a29 67f10094 store 2 ,core_iicd_txaddr 
+6a2a 58000001 setarg 1 
+6a2b 67f10092 store 2 ,core_iicd_txlen 
+6a2c 60590098 storet 2 ,core_iicd_rxlen 
+6a2d 62310096 storer rega ,2 ,core_iicd_rxaddr 
+6a2e 70808a01 jam 1 ,core_iicd_ctrl 
+6a2f 70800604 jam iicd_start ,core_misc_ctrl 
+6a30 20206a24 branch wait_iicd_done 
+
+iic_write_data:
+6a31 58000000 setarg 0 
+6a32 67f10098 store 2 ,core_iicd_rxlen 
+6a33 67f10096 store 2 ,core_iicd_rxaddr 
+6a34 60590092 storet 2 ,core_iicd_txlen 
+6a35 62310094 storer rega ,2 ,core_iicd_txaddr 
+6a36 70808a01 jam 1 ,core_iicd_ctrl 
+6a37 70800604 jam iicd_start ,core_misc_ctrl 
+6a38 20206a24 branch wait_iicd_done 
+
+set_eeprom_size_2k:
+6a39 79200028 set1 mark_eeprom_size ,mark 
+6a3a 7043ad08 jam 0x08 ,mem_eeprom_block_size 
+6a3b 20600000 rtn 
+
+clear_eeprom_size_2k:
+6a3c 793f8028 set0 mark_eeprom_size ,mark 
+6a3d 7043ad20 jam 0x20 ,mem_eeprom_block_size 
+6a3e 20600000 rtn 
+
+iicd_read_eep_data_size_2k:
+6a3f 6fe0c3a4 fetch 1 ,mem_eeprom_base 
+6a40 9a40fe00 iadd regb ,pdata 
+6a41 67e081bd store 1 ,mem_addr_mi 
+6a42 20206a46 branch iicd_read_eep_size_2k 
+
+iicd_read_eep_size_2k_lcadcode:
+6a43 6fe101bd fetch 2 ,mem_addr_mi 
+6a44 1ff0fe00 byteswap pdata ,pdata 
+6a45 67e081bd store 1 ,mem_addr_mi 
+
+iicd_read_eep_size_2k:
+6a46 58000003 setarg 3 
+6a47 67f10092 store 2 ,core_iicd_txlen 
+6a48 7001bca0 jam 0xa0 ,mem_iicd_tbuf 
+6a49 7001bea1 jam 0xa1 ,mem_iicd_tbuf + 2 
+6a4a 20206a65 branch iicd_read_eep_common 
+
+iicd_write_protect_eep_data:
+6a4b 604904cc storet 2 ,mem_temp 
+6a4c 20406a50 call iicd_eeprom_write_enable 
+6a4d 684904cc fetcht 2 ,mem_temp 
+6a4e 20406a7f call iicd_write_eep_data 
+6a4f 20206a57 branch iicd_eeprom_write_disable 
+
+iicd_eeprom_write_enable:
+6a50 6fe0c3d9 fetch 1 ,mem_eeprom_wp_gpio 
+6a51 c17f8000 rtneq gpio_disable 
+6a52 c3036a55 bbit0 6 ,iicd_wp_gpio_output_low 
+6a53 580249f0 setarg 150000 
+6a54 20403a8c call sleep 
+
+iicd_wp_gpio_output_low:
+6a55 6848c3d9 fetcht 1 ,mem_eeprom_wp_gpio 
+6a56 20206b96 branch gpio_out_active 
+
+iicd_eeprom_write_disable:
+6a57 6848c3d9 fetcht 1 ,mem_eeprom_wp_gpio 
+6a58 20206b92 branch gpio_out_inactive 
+
+iicd_read_eep_data:
+6a59 44c9c012 bpatch patch12_3 ,mem_patch12 
+6a5a c5146a3f bmark1 mark_eeprom_size ,iicd_read_eep_data_size_2k 
+6a5b 6fe143a4 fetch 2 ,mem_eeprom_base 
+6a5c 9a40fe00 iadd regb ,pdata 
+6a5d 1ff0fe00 byteswap pdata ,pdata 
+6a5e 67e101bd store 2 ,mem_addr_mi 
+
+iicd_read_eep:
+6a5f 44ca4012 bpatch patch12_4 ,mem_patch12 
+6a60 c5146a43 bmark1 mark_eeprom_size ,iicd_read_eep_size_2k_lcadcode 
+6a61 58000004 setarg 4 
+6a62 67f10092 store 2 ,core_iicd_txlen 
+6a63 7001bca0 jam 0xa0 ,mem_iicd_tbuf 
+6a64 7001bfa1 jam 0xa1 ,mem_iicd_tbuf + 3 
+
+iicd_read_eep_common:
+6a65 580001bc setarg mem_iicd_tbuf 
+6a66 67f10094 store 2 ,core_iicd_txaddr 
+6a67 60590098 storet 2 ,core_iicd_rxlen 
+6a68 62310096 storer rega ,2 ,core_iicd_rxaddr 
+6a69 58000002 setarg 2 
+6a6a 2a2c000f isolate0 15 ,rega 
+6a6b 7920fe00 setflag true ,0 ,pdata 
+6a6c 67f0808a store 1 ,core_iicd_ctrl 
+6a6d 70800604 jam iicd_start ,core_misc_ctrl 
+6a6e d8e00005 arg iicd_done ,queue 
+6a6f 2040683b call decrypt_code 
+6a70 20406a24 call wait_iicd_done 
+6a71 2feffe04 isolate1 iicd_crcok ,pdata 
+6a72 20406834 call set_ucode_status 
+6a73 c5146a7a bmark1 mark_eeprom_size ,iicd_read_eep_load_code_size_2k 
+6a74 6fe101bd fetch 2 ,mem_addr_mi 
+6a75 1ff0fe00 byteswap pdata ,pdata 
+6a76 9840fe00 iadd temp ,pdata 
+6a77 1ff0fe00 byteswap pdata ,pdata 
+6a78 67e101bd store 2 ,mem_addr_mi 
+6a79 20600000 rtn 
+
+iicd_read_eep_load_code_size_2k:
+6a7a 6fe081bd fetch 1 ,mem_addr_mi 
+6a7b 9840fe00 iadd temp ,pdata 
+6a7c 1ff0fe00 byteswap pdata ,pdata 
+6a7d 67e101bd store 2 ,mem_addr_mi 
+6a7e 20600000 rtn 
+
+iicd_write_eep_data:
+6a7f 6fe143a4 fetch 2 ,mem_eeprom_base 
+6a80 9a40fe00 iadd regb ,pdata 
+
+iicd_write_ota_data:
+6a81 67e104c4 store 2 ,mem_pdatatemp 
+6a82 44cac012 bpatch patch12_5 ,mem_patch12 
+6a83 604904cc storet 2 ,mem_temp 
+6a84 622104e3 storer rega ,2 ,mem_contr 
+
+iicd_write_eep_loop:
+6a85 20406a94 call iicd_eep_transparency 
+6a86 684904dc fetcht 2 ,mem_regb 
+6a87 6a2104e3 fetchr rega ,2 ,mem_contr 
+6a88 6fe104c4 fetch 2 ,mem_pdatatemp 
+6a89 20406ab5 call iicd_write_eep 
+6a8a 6fe104dc fetch 2 ,mem_regb 
+6a8b 684904e3 fetcht 2 ,mem_contr 
+6a8c 98408400 iadd temp ,temp 
+6a8d 604904e3 storet 2 ,mem_contr 
+6a8e 684904c4 fetcht 2 ,mem_pdatatemp 
+6a8f 98408400 iadd temp ,temp 
+6a90 604904c4 storet 2 ,mem_pdatatemp 
+6a91 6fe104cc fetch 2 ,mem_temp 
+6a92 243a6a85 nbranch iicd_write_eep_loop ,blank 
+6a93 20600000 rtn 
+
+iicd_eep_transparency:
+6a94 44cb4012 bpatch patch12_6 ,mem_patch12 
+6a95 6fe0c3ad fetch 1 ,mem_eeprom_block_size 
+6a96 1fe0ffff increase -1 ,pdata 
+6a97 684904c4 fetcht 2 ,mem_pdatatemp 
+6a98 9841fe00 ior temp ,pdata 
+6a99 1fe0fe01 increase 1 ,pdata 
+6a9a 67e184e0 store 3 ,mem_regc 
+6a9b 6fe104cc fetch 2 ,mem_temp 
+6a9c 9840fe00 iadd temp ,pdata 
+6a9d 684984e0 fetcht 3 ,mem_regc 
+6a9e 98467e00 isub temp ,pdata 
+6a9f 24216aa6 nbranch iicd_eep_deal_short_packet ,positive 
+6aa0 67e104cc store 2 ,mem_temp 
+6aa1 6fe184e0 fetch 3 ,mem_regc 
+6aa2 684904c4 fetcht 2 ,mem_pdatatemp 
+6aa3 98467e00 isub temp ,pdata 
+6aa4 67e104dc store 2 ,mem_regb 
+6aa5 20600000 rtn 
+
+iicd_eep_deal_short_packet:
+6aa6 6fe104cc fetch 2 ,mem_temp 
+6aa7 67e104dc store 2 ,mem_regb 
+6aa8 58000000 setarg 0 
+6aa9 67e104cc store 2 ,mem_temp 
+6aaa 20600000 rtn 
+
+iicd_write_eep_size_2k:
+6aab 1a427e00 copy regb ,pdata 
+6aac 18408402 increase 2 ,temp 
+6aad 60590092 storet 2 ,core_iicd_txlen 
+6aae 1a20a3fe increase -2 ,rega 
+6aaf e8418011 ifetcht 3 ,rega 
+6ab0 18422400 copy temp ,regb 
+6ab1 d84000a0 arg 0xa0 ,temp 
+6ab2 e0408011 istoret 1 ,rega 
+6ab3 e7e08005 istore 1 ,contw 
+6ab4 20206ac2 branch iicd_write_eep_common 
+
+iicd_write_eep:
+6ab5 1fe22400 copy pdata ,regb 
+6ab6 44cbc012 bpatch patch12_7 ,mem_patch12 
+6ab7 c5146aab bmark1 mark_eeprom_size ,iicd_write_eep_size_2k 
+6ab8 1a427e00 copy regb ,pdata 
+6ab9 18408403 increase 3 ,temp 
+6aba 60590092 storet 2 ,core_iicd_txlen 
+6abb 1a20a3fd increase -3 ,rega 
+6abc e8418011 ifetcht 3 ,rega 
+6abd 18422400 copy temp ,regb 
+6abe d84000a0 arg 0xa0 ,temp 
+6abf e0408011 istoret 1 ,rega 
+6ac0 1ff0fe00 byteswap pdata ,pdata 
+6ac1 e7e10005 istore 2 ,contw 
+
+iicd_write_eep_common:
+6ac2 62310094 storer rega ,2 ,core_iicd_txaddr 
+6ac3 58000000 setarg 0 
+6ac4 67f10098 store 2 ,core_iicd_rxlen 
+6ac5 70808a01 jam 1 ,core_iicd_ctrl 
+6ac6 70800604 jam iicd_start ,core_misc_ctrl 
+6ac7 20406a24 call wait_iicd_done 
+6ac8 e2418011 istorer regb ,3 ,rega 
+
+iic_check_eeprom_standby:
+6ac9 44cc4013 bpatch patch13_0 ,mem_patch13 
+6aca 7001bf00 jam 0 ,mem_iicd_tbuf + 3 
+
+iic_check_eeprom_standby_wait:
+6acb 58000001 setarg 1 
+6acc 67f10092 store 2 ,core_iicd_txlen 
+6acd 7001bca0 jam 0xa0 ,mem_iicd_tbuf 
+6ace 580001bc setarg mem_iicd_tbuf 
+6acf 67f10094 store 2 ,core_iicd_txaddr 
+6ad0 58000000 setarg 0 
+6ad1 67f10098 store 2 ,core_iicd_rxlen 
+6ad2 67f10096 store 2 ,core_iicd_rxaddr 
+6ad3 58000003 setarg 3 
+6ad4 67f0808a store 1 ,core_iicd_ctrl 
+6ad5 70800604 jam iicd_start ,core_misc_ctrl 
+6ad6 20406a24 call wait_iicd_done 
+6ad7 6ff08128 fetch 1 ,core_dma_status 
+6ad8 c4030000 rtnbit0 iicd_ack 
+6ad9 200005dc nop 1500 
+6ada 6fe081bf fetch 1 ,mem_iicd_tbuf + 3 
+6adb 1fe0fe01 increase 1 ,pdata 
+6adc 67e081bf store 1 ,mem_iicd_tbuf + 3 
+6add 1fe67c28 sub pdata ,40 ,null 
+6ade 24610000 nrtn positive 
+6adf 20206acb branch iic_check_eeprom_standby_wait 
+
+nvram_find_addr_from_bd_list:
+6ae0 44ccc013 bpatch patch13_1 ,mem_patch13 
+6ae1 204074ca call disable_user 
+6ae2 6fe0c3b3 fetch 1 ,mem_nv_data_number 
+6ae3 207a0000 rtn blank 
+6ae4 6fe14434 fetch 2 ,mem_ui_state_map 
+6ae5 c4048000 rtnbit0 ui_state_ble_connected 
+
+find_addr_from_bd_list_ble_mode:
+6ae6 6fe0c2a0 fetch 1 ,mem_le_conn_peer_addr_type 
+6ae7 c0006afb beq master_public_addr ,find_addr_from_bd_list_public_device_addr 
+6ae8 6fe08178 fetch 1 ,mem_le_plap + 5 
+6ae9 2fe180c0 compare 0xc0 ,pdata ,0xc0 
+6aea 2020eaee branch find_addr_from_bd_list_static_addr ,true 
+6aeb 2fe18040 compare 0x40 ,pdata ,0xc0 
+6aec 2020eb00 branch find_addr_from_bd_list_random_addr ,true 
+6aed 20206af5 branch find_addr_from_bd_list_random_non_resolvable_private_address_sc_or_legacy 
+
+find_addr_from_bd_list_static_addr:
+6aee 20366af2 branch find_addr_from_bd_list_static_addr_reconnect ,user2 
+6aef 6fe0c284 fetch 1 ,mem_le_preq_init_key_distribution 
+6af0 c300eafb bbit0 le_initator_irk_bit ,find_addr_from_bd_list_public_device_addr 
+6af1 20206af5 branch find_addr_from_bd_list_static_addr_sc_or_legacy 
+
+find_addr_from_bd_list_static_addr_reconnect:
+6af2 20406afb call find_addr_from_bd_list_public_device_addr 
+6af3 20740000 rtn user 
+6af4 20206af5 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:
+6af5 6fe0c2d3 fetch 1 ,mem_le_pairing_mode 
+6af6 c283eaf8 bbit1 le_pairing_mode_secure_connect_bit ,find_addr_from_bd_list_random_non_resolvable_private_address_sc 
+6af7 20206afe 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:
+6af8 6fe30173 fetch 6 ,mem_le_plap 
+6af9 67e442da store 8 ,mem_le_rand 
+6afa 20206afe branch find_addr_from_bd_list_random_non_resolvable_private_address 
+
+find_addr_from_bd_list_public_device_addr:
+6afb 70002d35 jam rec_4_mode_static_address ,mem_temp_reconn_record 
+6afc 6fe30173 fetch 6 ,mem_le_plap 
+6afd 20206b01 branch find_addr_from_bd_list_common 
+
+find_addr_from_bd_list_random_non_resolvable_private_address:
+6afe 70002d37 jam rec_4_mode_random_non_resolvable_private_address ,mem_temp_reconn_record 
+6aff 20206b01 branch find_addr_from_bd_list_common 
+
+find_addr_from_bd_list_random_addr:
+6b00 70002d36 jam rec_4_mode_random_resolvable_private_address ,mem_temp_reconn_record 
+
+find_addr_from_bd_list_common:
+6b01 44cd4013 bpatch patch13_2 ,mem_patch13 
+6b02 6fe143b1 fetch 2 ,mem_nv_data_ptr 
+6b03 e840803f ifetcht 1 ,pdata 
+6b04 1fe0fe01 pincrease 1 
+6b05 67e1002e store 2 ,mem_list_item_ptr 
+6b06 6048802c storet 1 ,mem_select_list_item 
+6b07 6fe0c3b3 fetch 1 ,mem_nv_data_number 
+6b08 1fe22600 icopy regc 
+
+nvram_find_addr_from_list:
+6b09 6fe1002e fetch 2 ,mem_list_item_ptr 
+6b0a 1fe22200 copy pdata ,rega 
+6b0b 20406b19 call nvram_find_addr_from_list_compare 
+6b0c 20740000 rtn user 
+6b0d 6849002e fetcht 2 ,mem_list_item_ptr 
+6b0e 18408422 increase nv_data_len ,temp 
+6b0f 6049002e storet 2 ,mem_list_item_ptr 
+6b10 184085ff increase -1 ,temp 
+6b11 efe08002 ifetch 1 ,temp 
+6b12 67e0802c store 1 ,mem_select_list_item 
+6b13 1a60a7ff increase -1 ,regc 
+6b14 2422eb09 nbranch nvram_find_addr_from_list ,zero 
+6b15 6fe0c3b3 fetch 1 ,mem_nv_data_number 
+6b16 1fe0ffff pincrease decreased_one 
+6b17 67e0802c store 1 ,mem_select_list_item 
+6b18 20600000 rtn 
+
+nvram_find_addr_from_list_compare:
+6b19 6fe0802d fetch 1 ,mem_temp_reconn_record 
+6b1a c099eb20 bne rec_3_mode ,find_addr_from_list_compare_ble_mode 
+
+find_master_addr_from_list_compare:
+6b1b da40002d arg mem_temp_reconn_record ,regb 
+6b1c df200007 arg 7 ,loopcnt 
+6b1d 20407477 call string_compare 
+6b1e 2022f4c8 branch enable_user ,zero 
+6b1f 20600000 rtn 
+
+find_addr_from_list_compare_ble_mode:
+6b20 c01b6b23 beq rec_4_mode_random_resolvable_private_address ,find_irk_form_list_compare 
+6b21 c01beb3e beq rec_4_mode_random_non_resolvable_private_address ,find_ediv_form_list_compare 
+6b22 20206b1b branch find_master_addr_from_list_compare 
+
+find_irk_form_list_compare:
+6b23 e8408011 ifetcht 1 ,rega 
+6b24 98467c00 isub temp ,null 
+6b25 24628000 nrtn zero 
+6b26 d8a004f6 arg mem_le_prand ,contw 
+6b27 df200010 arg 16 ,loopcnt 
+6b28 204073ec call clear_mem 
+6b29 6fe18176 fetch 3 ,mem_le_plap + 3 
+6b2a 67e184f6 store 3 ,mem_le_prand 
+6b2b 20406b35 call genernate_master_macaddress 
+6b2c 6fe10513 fetch 2 ,mem_le_aes_128 + 13 
+6b2d 1ff0fe00 byteswap pdata ,pdata 
+6b2e 1fed0400 lshift8 pdata ,temp 
+6b2f efe08006 ifetch 1 ,contr 
+6b30 9840fe00 iadd temp ,pdata 
+6b31 68498173 fetcht 3 ,mem_le_plap 
+6b32 98467c00 isub temp ,null 
+6b33 2022f4c8 branch enable_user ,zero 
+6b34 20600000 rtn 
+
+genernate_master_macaddress:
+6b35 d8c004f6 arg mem_le_prand ,contr 
+6b36 20406e7d call load_data128 
+6b37 efe08011 ifetch 1 ,rega 
+6b38 20406e7e call load_regext 
+6b39 18006c38 force 0x38 ,aes_ctrl 
+6b3a 18006c00 force 0x0 ,aes_ctrl 
+6b3b 20406deb call wait_aes 
+6b3c d8a00506 arg mem_le_aes_128 ,contw 
+6b3d 20206e91 branch store_aes_result 
+
+find_ediv_form_list_compare:
+6b3e e8408011 ifetcht 1 ,rega 
+6b3f 98467c00 isub temp ,null 
+6b40 24628000 nrtn zero 
+6b41 18c22200 copy contr ,rega 
+6b42 18c0a608 add contr ,8 ,regc 
+6b43 da4042da arg mem_le_rand ,regb 
+6b44 df200008 arg 8 ,loopcnt 
+6b45 20407477 call string_compare 
+6b46 2022f4c8 branch enable_user ,zero 
+6b47 1a622200 copy regc ,rega 
+6b48 da4042e2 arg mem_le_irk ,regb 
+6b49 df200008 arg 8 ,loopcnt 
+6b4a 20407477 call string_compare 
+6b4b 2022f4c8 branch enable_user ,zero 
+6b4c 20600000 rtn 
+
+load_device_list_mode_4:
+6b4d 204074cc call enable_user2 
+6b4e 20406ae0 call nvram_find_addr_from_bd_list 
+6b4f 24346b58 nbranch clear_ltk_exists ,user 
+6b50 6fe1002e fetch 2 ,mem_list_item_ptr 
+6b51 1fe08c01 add pdata ,1 ,contr 
+6b52 d8a042e2 arg mem_le_irk ,contw 
+6b53 204073d2 call memcpy16 
+6b54 d8a0424c arg mem_le_ltk ,contw 
+6b55 204073d2 call memcpy16 
+6b56 70425c01 jam 1 ,mem_ltk_exists 
+6b57 20600000 rtn 
+
+clear_ltk_exists:
+6b58 70425c00 jam 0 ,mem_ltk_exists 
+6b59 20600000 rtn 
+
+eeprom_store_le_reconn_info:
+6b5a 70002d34 jam rec_4_mode ,mem_record_bt_mode 
+
+eeprom_store_reconn_info:
+6b5b 6fe0c095 fetch 1 ,mem_device_option 
+6b5c c0045b33 beq dvc_op_mouse ,mouse_store_remote_bdaddr 
+6b5d 20600000 rtn 
+
+gpio_set_wake_by_current_state:
+6b5e 44cdc013 bpatch patch13_3 ,mem_patch13 
+6b5f 79200407 set1 gpio_active_bit ,temp 
+6b60 20406b85 call gpio_get_bit 
+6b61 7d208407 nsetflag true ,gpio_active_bit ,temp 
+
+gpio_set_wake:
+6b62 44ce4013 bpatch patch13_4 ,mem_patch13 
+6b63 18467cff sub temp ,ui_button_gpio_disable ,null 
+6b64 20628000 rtn zero 
+6b65 284c0007 isolate0 gpio_active_bit ,temp 
+6b66 18410e1f and temp ,0x1f ,queue 
+6b67 6fe20016 fetch 4 ,mem_gpio_wakeup_low 
+6b68 f920fe00 qsetflag true ,pdata 
+6b69 67e20016 store 4 ,mem_gpio_wakeup_low 
+6b6a 6fe2001a fetch 4 ,mem_gpio_wakeup_high 
+6b6b fd20fe00 nqsetflag true ,pdata 
+6b6c 67e2001a store 4 ,mem_gpio_wakeup_high 
+6b6d 20600000 rtn 
+
+gpio_clr_wake:
+6b6e 44cec013 bpatch patch13_5 ,mem_patch13 
+6b6f 18467cff sub temp ,ui_button_gpio_disable ,null 
+6b70 20628000 rtn zero 
+6b71 284c0007 isolate0 gpio_active_bit ,temp 
+6b72 18410e1f and temp ,0x1f ,queue 
+6b73 6fe20016 fetch 4 ,mem_gpio_wakeup_low 
+6b74 f93ffe00 qset0 pdata 
+6b75 67e20016 store 4 ,mem_gpio_wakeup_low 
+6b76 6fe2001a fetch 4 ,mem_gpio_wakeup_high 
+6b77 f93ffe00 qset0 pdata 
+6b78 67e2001a store 4 ,mem_gpio_wakeup_high 
+6b79 20600000 rtn 
+
+gpio_config_input_nowake:
+6b7a 20406b6e call gpio_clr_wake 
+6b7b 20206b7f branch gpio_config_input_without_wake 
+
+gpio_config_input:
+6b7c 18467cff sub temp ,ui_button_gpio_disable ,null 
+6b7d 20628000 rtn zero 
+6b7e 2455eb62 ncall gpio_set_wake ,wake 
+
+gpio_config_input_without_wake:
+6b7f 20406bb3 call gpio_addr 
+6b80 58000000 setarg 0 
+6b81 284ffe07 isolate1 gpio_active_bit ,temp 
+6b82 7d20fe06 nsetflag true ,6 ,pdata 
+6b83 7920fe07 setflag true ,7 ,pdata 
+6b84 20206bac branch gpio_write 
+
+gpio_get_bit:
+6b85 44cf4013 bpatch patch13_6 ,mem_patch13 
+6b86 d8a0811c arg core_gpio_in ,contw 
+6b87 18410e07 and temp ,0x07 ,queue 
+6b88 18497e00 rshift3 temp ,pdata 
+6b89 1fe17e03 and_into 3 ,pdata 
+6b8a 98a08a00 iadd contw ,contw 
+6b8b efe08005 ifetch 1 ,contw 
+6b8c 284ffe07 isolate1 gpio_active_bit ,temp 
+6b8d 2020eb90 branch gpio_get_bit_reverse ,true 
+6b8e afec0000 qisolate0 pdata 
+6b8f 20600000 rtn 
+
+gpio_get_bit_reverse:
+6b90 afefffff qisolate1 pdata 
+6b91 20600000 rtn 
+
+gpio_out_inactive:
+6b92 18467cff sub temp ,ui_button_gpio_disable ,null 
+6b93 20628000 rtn zero 
+6b94 2fcffe07 isolate1 gpio_active_bit ,null 
+6b95 20206b99 branch gpio_out_flag 
+
+gpio_config_output:
+
+gpio_out_active:
+6b96 18467cff sub temp ,ui_button_gpio_disable ,null 
+6b97 20628000 rtn zero 
+6b98 2fcc0007 isolate0 gpio_active_bit ,null 
+
+gpio_out_flag:
+6b99 58000000 setarg 0 
+6b9a 7d20fe07 nsetflag true ,gpio_active_bit ,pdata 
+6b9b 98428400 ixor temp ,temp 
+
+gpio_out:
+6b9c 20406bb3 call gpio_addr 
+6b9d 5800003f setarg gpcfg_output_high 
+6b9e 284ffe07 isolate1 gpio_active_bit ,temp 
+6b9f 7920fe00 setflag true ,0 ,pdata 
+6ba0 20206bac branch gpio_write 
+
+gpio_check_active:
+6ba1 18467cff sub temp ,ui_button_gpio_disable ,null 
+6ba2 2022f4d2 branch disable_true ,zero 
+6ba3 20406bb3 call gpio_addr 
+6ba4 efe08005 ifetch 1 ,contw 
+6ba5 c2806ba8 bbit1 0 ,gpio_check_active_high 
+6ba6 284c0007 isolate0 gpio_active_bit ,temp 
+6ba7 20600000 rtn 
+
+gpio_check_active_high:
+6ba8 284ffe07 isolate1 gpio_active_bit ,temp 
+6ba9 20600000 rtn 
+
+gpio_set_analog:
+6baa 20406bb3 call gpio_addr 
+6bab 580000c0 setarg gpcfg_no_ie 
+
+gpio_write:
+6bac e7e08005 istore 1 ,contw 
+6bad 20600000 rtn 
+
+gpio_set_high_impedance:
+6bae 18467cff sub temp ,gpio_disable ,null 
+6baf 20628000 rtn zero 
+6bb0 20406bb3 call gpio_addr 
+6bb1 58000000 setarg gpcfg_high_impedance 
+6bb2 20206bac branch gpio_write 
+
+gpio_addr:
+6bb3 18417e3f and temp ,0x3f ,pdata 
+6bb4 1fe67c0d sub pdata ,gpio_number + -1 ,null 
+6bb5 24213a8a nbranch assert ,positive 
+6bb6 d8a08070 arg core_gpio_conf ,contw 
+
+gpio_addr_next:
+6bb7 98a08a00 iadd contw ,contw 
+6bb8 20600000 rtn 
+
+gpio_config_param:
+6bb9 1fe104ff and pdata ,0xff ,temp 
+6bba 1fecfe00 rshift8 pdata ,pdata 
+6bbb 20206bbd branch gpio_config_function_int 
+
+gpio_config_function:
+6bbc c4038000 rtnbit0 gpio_active_bit 
+
+gpio_config_function_int:
+6bbd 1fe17e3f and_into 0x3f ,pdata 
+6bbe 1fe67c0d sub pdata ,gpio_number + -1 ,null 
+6bbf 24213a8a nbranch assert ,positive 
+6bc0 d8a08070 arg core_gpio_conf ,contw 
+
+gpio_config_function_int_next:
+6bc1 98a08a00 iadd contw ,contw 
+6bc2 e0408005 istoret 1 ,contw 
+6bc3 20600000 rtn 
+
+gpio_get_config:
+6bc4 1841043f and_into 0x3f ,temp 
+6bc5 58008070 setarg core_gpio_conf 
+6bc6 98408c00 iadd temp ,contr 
+6bc7 efe08006 ifetch 1 ,contr 
+6bc8 20600000 rtn 
+
+gpio_set_before_lpm:
+6bc9 df20000e arg gpio_number ,loopcnt 
+6bca d8c08070 arg core_gpio_conf ,contr 
+
+setgpio_loop:
+6bcb 18c20a00 copy contr ,contw 
+6bcc efe08006 ifetch 1 ,contr 
+6bcd c00febd7 beq gpcfg_spid_miso ,setgpio_pullup 
+6bce c0106bd7 beq gpcfg_spid_ncs ,setgpio_pullup 
+6bcf c010ebd7 beq gpcfg_spid_sck ,setgpio_pullup 
+6bd0 c0116bd7 beq gpcfg_spid_mosi ,setgpio_pullup 
+6bd1 c011ebd7 beq gpcfg_spid_sdio ,setgpio_pullup 
+6bd2 c0166bd7 beq gpcfg_iic_scl ,setgpio_pullup 
+6bd3 c016ebd7 beq gpcfg_iic_sda ,setgpio_pullup 
+6bd4 c0006bd7 beq gpcfg_input ,setgpio_pullup 
+
+setgpio_loop_end:
+6bd5 c2006bcb loop setgpio_loop 
+6bd6 20600000 rtn 
+
+setgpio_pullup:
+6bd7 58000040 setarg gpcfg_pullup 
+6bd8 e7e08005 istore 1 ,contw 
+6bd9 20206bd5 branch setgpio_loop_end 
+
+setgpio_pulldown:
+6bda 58000080 setarg gpcfg_pulldown 
+6bdb e7e08005 istore 1 ,contw 
+6bdc 20206bd5 branch setgpio_loop_end 
+
+adc_init_data:
+6bdd 44cfc013 bpatch patch13_7 ,mem_patch13 
+6bde 580007e0 setarg otp_offset_adc_param 
+6bdf da2043b6 arg mem_gpio_h_k19_b13 ,rega 
+6be0 d840000c arg 12 ,temp 
+6be1 202068c5 branch otpd_read_data_with_pwr_operation 
+
+enable_adc:
+6be2 44d04014 bpatch patch14_0 ,mem_patch14 
+6be3 6a508a12 fetchr regb ,1 ,core_rf_ldo_cfg6 
+6be4 708a123d jam 0x3d ,core_rf_ldo_cfg6 
+6be5 708a11aa jam 0xaa ,core_rf_ldo_cfg5 
+6be6 708a0a0c jam 0x0c ,core_rf_ldo_en0 
+6be7 6ff08a09 fetch 1 ,core_clkpll_cfg6 
+6be8 79207e07 set1 7 ,pdata 
+6be9 67f08a09 store 1 ,core_clkpll_cfg6 
+6bea 708a0b04 jam 0x04 ,core_rf_ldo_en1 
+6beb 2000003c nop 60 
+6bec 708a1600 jam 0 ,core_syn_en 
+6bed 708a1706 jam 6 ,core_rx_en0 
+6bee 20406c02 call read_adc_mode 
+6bef 67f08a97 store 1 ,core_gpadc_ctrl 
+6bf0 7080c603 jam 0x03 ,core_sum_ctrl 
+6bf1 2000003c nop 60 
+6bf2 6ff08053 fetch 1 ,core_sum_en 
+6bf3 79207e07 set1 7 ,pdata 
+6bf4 67f08053 store 1 ,core_sum_en 
+6bf5 200003e8 nop 1000 
+6bf6 6fe143c4 fetch 2 ,mem_adc_delay 
+6bf7 6848c3c6 fetcht 1 ,mem_adc_config_flag 
+6bf8 18467c01 sub temp ,adc_config_hvin ,null 
+6bf9 2042ba8c call sleep ,zero 
+6bfa 6ff1014c fetch 2 ,core_adc_sum 
+6bfb 67e143c8 store 2 ,mem_adc_current_value 
+6bfc 6ff08053 fetch 1 ,core_sum_en 
+6bfd 793ffe07 set0 7 ,pdata 
+6bfe 67f08053 store 1 ,core_sum_en 
+6bff 708a9700 jam 0 ,core_gpadc_ctrl 
+6c00 62508a12 storer regb ,1 ,core_rf_ldo_cfg6 
+6c01 20600000 rtn 
+
+read_adc_mode:
+6c02 44d0c014 bpatch patch14_1 ,mem_patch14 
+6c03 6fe0c3c6 fetch 1 ,mem_adc_config_flag 
+6c04 c001ec09 beq adc_config_gpio_l ,adc_check_gpio_l 
+6c05 c0026c0b beq adc_config_gpio_h ,adc_check_gpio_h 
+6c06 c000ec07 beq adc_config_hvin ,adc_adc_mode_vbat 
+
+adc_adc_mode_vbat:
+6c07 5800004f setarg 0x4f 
+6c08 20600000 rtn 
+
+adc_check_gpio_l:
+6c09 da200002 arg 2 ,rega 
+6c0a 20206c0c branch adc_check_gpio 
+
+adc_check_gpio_h:
+6c0b da200006 arg 6 ,rega 
+
+adc_check_gpio:
+6c0c 6fe0c3c7 fetch 1 ,mem_adc_channel 
+6c0d 1fe9fe00 lshift3 pdata ,pdata 
+6c0e 1fe1fe01 or pdata ,1 ,pdata 
+6c0f 9a21fe00 ior rega ,pdata 
+6c10 20600000 rtn 
+
+adc_calculate:
+6c11 44d14014 bpatch patch14_2 ,mem_patch14 
+6c12 6fe0c3c6 fetch 1 ,mem_adc_config_flag 
+6c13 c001ec19 beq adc_config_gpio_l ,adc_calculate_gpio_l 
+6c14 c0026c17 beq adc_config_gpio_h ,adc_calculate_gpio_h 
+
+adc_calculate_gpio_bat:
+6c15 6fe243be fetch 4 ,mem_hvin_k19_b13 
+6c16 20206c1a branch adc_calculate2 
+
+adc_calculate_gpio_h:
+6c17 6fe243b6 fetch 4 ,mem_gpio_h_k19_b13 
+6c18 20206c1a branch adc_calculate2 
+
+adc_calculate_gpio_l:
+6c19 6fe243ba fetch 4 ,mem_gpio_l_k19_b13 
+
+adc_calculate2:
+6c1a 67e204cc store 4 ,mem_temp 
+6c1b 20406c28 call adc_19k_13b_32bit_cal_k 
+6c1c 684943c8 fetcht 2 ,mem_adc_current_value 
+6c1d 984ffe00 imul32 temp ,pdata 
+6c1e 1ff17e00 rshift16 pdata ,pdata 
+6c1f 1ff18400 rshift4 pdata ,temp 
+6c20 6fe204cc fetch 4 ,mem_temp 
+6c21 20406c2c call adc_19k_13b_32bit_cal_b 
+6c22 98467e00 isub temp ,pdata 
+6c23 d84003e8 arg 1000 ,temp 
+6c24 984ffe00 imul32 temp ,pdata 
+6c25 1ff17e00 rshift16 pdata ,pdata 
+6c26 1ff1fe00 rshift4 pdata ,pdata 
+6c27 20600000 rtn 
+
+adc_19k_13b_32bit_cal_k:
+6c28 da3fe000 arg 0xffffe000 ,rega 
+6c29 9a217e00 iand rega ,pdata 
+6c2a 1fe97e00 rshift3 pdata ,pdata 
+6c2b 20600000 rtn 
+
+adc_19k_13b_32bit_cal_b:
+6c2c da201fff arg 0x00001fff ,rega 
+6c2d 9a217e00 iand rega ,pdata 
+6c2e 1fed7e00 lshift8 pdata ,pdata 
+6c2f 1febfe00 lshift2 pdata ,pdata 
+6c30 20600000 rtn 
+
+adc_bat_percent_lowpower_out:
+6c31 efe40011 ifetch 8 ,rega 
+6c32 67e404c4 store 8 ,mem_pdatatemp 
+6c33 6fe104c4 fetch 2 ,mem_pdatatemp 
+6c34 684904c6 fetcht 2 ,mem_pdatatemp + 2 
+6c35 98462200 isub temp ,rega 
+6c36 6fe104ca fetch 2 ,mem_pdatatemp + 6 
+6c37 98462400 isub temp ,regb 
+6c38 684904c8 fetcht 2 ,mem_pdatatemp + 4 
+6c39 98467c00 isub temp ,null 
+6c3a 24416c41 ncall adc_set_low_power_flag ,positive 
+6c3b 1a4ffe64 mul32 regb ,100 ,pdata 
+6c3c 9a26fc00 idiv rega 
+6c3d 20407475 call wait_div_end 
+6c3e 1807fe00 quotient pdata 
+6c3f 205a6c49 call adc_set_no_power_flag ,blank 
+6c40 20600000 rtn 
+
+adc_set_low_power_flag:
+6c41 6fe0c3ca fetch 1 ,mem_adc_power_flag 
+6c42 79207e00 set1 0 ,pdata 
+6c43 67e0c3ca store 1 ,mem_adc_power_flag 
+6c44 20600000 rtn 
+
+adc_clear_low_power_flag:
+6c45 6fe0c3ca fetch 1 ,mem_adc_power_flag 
+6c46 793ffe00 set0 0 ,pdata 
+6c47 67e0c3ca store 1 ,mem_adc_power_flag 
+6c48 20600000 rtn 
+
+adc_set_no_power_flag:
+6c49 6848c3ca fetcht 1 ,mem_adc_power_flag 
+6c4a 79200401 set1 1 ,temp 
+6c4b 6048c3ca storet 1 ,mem_adc_power_flag 
+6c4c 20600000 rtn 
+
+adc_clear_no_power_flag:
+6c4d 6848c3ca fetcht 1 ,mem_adc_power_flag 
+6c4e 793f8401 set0 1 ,temp 
+6c4f 6048c3ca storet 1 ,mem_adc_power_flag 
+6c50 20600000 rtn 
+
+keyscan_key_init:
+6c51 6fe143de fetch 2 ,mem_key_num_ptr 
+6c52 efe0803f ifetch 1 ,pdata 
+
+keyscan_key_init_next:
+6c53 207a0000 rtn blank 
+6c54 1fe27200 copy pdata ,loopcnt 
+6c55 6fe143de fetch 2 ,mem_keyscan_ptr 
+6c56 1fe0fe03 increase 3 ,pdata 
+6c57 1fe22200 copy pdata ,rega 
+
+keyscan_key_init_lp1:
+6c58 e8408011 ifetcht 1 ,rega 
+6c59 20406b7c call gpio_config_input 
+6c5a 1a20a201 increase key_conf_struct_len ,rega 
+6c5b c2006c58 loop keyscan_key_init_lp1 
+
+keyscan_key_init_end:
+6c5c 20600000 rtn 
+
+keyscan_scan_key:
+6c5d 6fe143de fetch 2 ,mem_keyscan_ptr 
+6c5e 1fe0fe03 increase 3 ,pdata 
+6c5f 1fe22200 copy pdata ,rega 
+6c60 18002400 force 0 ,regb 
+6c61 58000000 setarg 0 
+6c62 67e10546 store 2 ,mem_key_value_temp 
+
+keyscan_scan_key_lp1:
+6c63 e8408011 ifetcht 1 ,rega 
+6c64 20406b85 call gpio_get_bit 
+6c65 44d1c014 bpatch patch14_3 ,mem_patch14 
+6c66 6fe10546 fetch 2 ,mem_key_value_temp 
+6c67 1a420e00 copy regb ,queue 
+6c68 f920fe00 qsetflag true ,pdata 
+6c69 67e10546 store 2 ,mem_key_value_temp 
+6c6a 1a20a201 increase key_conf_struct_len ,rega 
+6c6b 1a40a401 increase 1 ,regb 
+6c6c 6fe143de fetch 2 ,mem_key_num_ptr 
+6c6d efe0803f ifetch 1 ,pdata 
+
+keyscan_scan_key_lp1_next:
+6c6e 9a42fc00 ixor regb ,null 
+6c6f 2422ec63 nbranch keyscan_scan_key_lp1 ,zero 
+6c70 6fe10546 fetch 2 ,mem_key_value_temp 
+6c71 684943e0 fetcht 2 ,mem_key_value_retention 
+6c72 9842fc00 ixor temp ,null 
+6c73 20628000 rtn zero 
+6c74 202074c8 branch enable_user 
+
+keyscan_process_lpm_before:
+6c75 6fe143de fetch 2 ,mem_key_num_ptr 
+6c76 efe0803f ifetch 1 ,pdata 
+
+keyscan_process_lpm_before_next:
+6c77 207a0000 rtn blank 
+6c78 1fe27200 copy pdata ,loopcnt 
+6c79 6fe143de fetch 2 ,mem_keyscan_ptr 
+6c7a 1fe0fe03 increase 3 ,pdata 
+6c7b 1fe22200 copy pdata ,rega 
+
+keyscan_process_lpm_before_lp1:
+6c7c e8408011 ifetcht 1 ,rega 
+6c7d 20406b5e call gpio_set_wake_by_current_state 
+6c7e 1a20a201 increase key_conf_struct_len ,rega 
+6c7f c2006c7c loop keyscan_process_lpm_before_lp1 
+
+keyscan_process_lpm_before_end:
+6c80 20600000 rtn 
+
+keyscan_key_process:
+6c81 d8e00009 arg key_scan_timer ,queue 
+6c82 2040742e call timer_check 
+6c83 247a0000 nrtn blank 
+6c84 58000020 setarg 0x20 
+6c85 d8e00009 arg key_scan_timer ,queue 
+6c86 20407420 call timer_init 
+6c87 78547c00 disable user 
+6c88 20406c75 call keyscan_process_lpm_before 
+6c89 44d24014 bpatch patch14_4 ,mem_patch14 
+6c8a 6fe143de fetch 2 ,mem_key_num_ptr 
+6c8b efe0803f ifetch 1 ,pdata 
+
+keyscan_key_process_next:
+6c8c 207a0000 rtn blank 
+6c8d 20406c5d call keyscan_scan_key 
+6c8e 24346ef1 nbranch lpm_button_clean_wake_lock ,user 
+6c8f 20406eef call lpm_button_get_wake_lock 
+6c90 78547c00 disable user 
+6c91 6fe10546 fetch 2 ,mem_key_value_temp 
+6c92 67e1054d store 2 ,mem_key_value_temp4 
+6c93 70054f00 jam 0 ,mem_key_value_temp6 
+6c94 18000e00 force 0 ,queue 
+
+keyscan_key_lp1:
+6c95 6fe143e0 fetch 2 ,mem_key_value_retention 
+6c96 1fe30400 rshift pdata ,temp 
+6c97 604943e0 storet 2 ,mem_key_value_retention 
+6c98 1fe17e01 and pdata ,0x01 ,pdata 
+6c99 6849054d fetcht 2 ,mem_key_value_temp4 
+6c9a 18412201 and temp ,0x01 ,rega 
+6c9b 18430400 rshift temp ,temp 
+6c9c 6049054d storet 2 ,mem_key_value_temp4 
+6c9d 9a22fc00 ixor rega ,null 
+6c9e 2442ecaa ncall keyscan_send_key_data ,zero 
+6c9f 6fe143de fetch 2 ,mem_key_num_ptr 
+6ca0 efe0803f ifetch 1 ,pdata 
+
+keyscan_key_lp1_next:
+6ca1 6848854f fetcht 1 ,mem_key_value_temp6 
+6ca2 18408401 increase 1 ,temp 
+6ca3 6048854f storet 1 ,mem_key_value_temp6 
+6ca4 18420e00 copy temp ,queue 
+6ca5 98e2fc00 ixor queue ,null 
+6ca6 2422ec95 nbranch keyscan_key_lp1 ,zero 
+6ca7 6fe10546 fetch 2 ,mem_key_value_temp 
+6ca8 67e143e0 store 2 ,mem_key_value_retention 
+6ca9 20600000 rtn 
+
+keyscan_send_key_data:
+6caa 44d2c014 bpatch patch14_5 ,mem_patch14 
+6cab 6fe143de fetch 2 ,mem_keyscan_ptr 
+6cac 1fe0fe01 increase 1 ,pdata 
+6cad efe1003f ifetch 2 ,pdata 
+6cae 20207487 branch callback_func 
+
+pwm_init:
+6caf 6ff08042 fetch 1 ,core_clksel 
+6cb0 9a21fe00 ior rega ,pdata 
+6cb1 67f08042 store 1 ,core_clksel 
+6cb2 6ff10050 fetch 2 ,core_clkoff 
+6cb3 793ffe0d set0 clock_off_pwm ,pdata 
+6cb4 67f10050 store 2 ,core_clkoff 
+
+delay_nop100:
+6cb5 20000064 nop 100 
+6cb6 20600000 rtn 
+
+pwm_clk_set:
+6cb7 6ff08042 fetch 1 ,core_clksel 
+6cb8 c2836cbc bbit1 6 ,pwm_24m_clk_set 
+6cb9 c283ecbe bbit1 7 ,pwm_33k_clk_set 
+
+pwm_12m_clk_set:
+6cba 58b71b00 setarg pwm_12mhz 
+6cbb 20600000 rtn 
+
+pwm_24m_clk_set:
+6cbc 596e3600 setarg pwm_24mhz 
+6cbd 20600000 rtn 
+
+pwm_33k_clk_set:
+6cbe 580080e8 setarg pwm_33khz 
+6cbf 20600000 rtn 
+
+pwm_out_set:
+6cc0 684984c6 fetcht 3 ,mem_pdatatemp + 2 
+6cc1 20406cb7 call pwm_clk_set 
+6cc2 9846fc00 idiv temp 
+6cc3 20407475 call wait_div_end 
+6cc4 18078400 quotient temp 
+6cc5 6fe084c9 fetch 1 ,mem_pdatatemp + 5 
+6cc6 984ffe00 imul32 temp ,pdata 
+6cc7 1fe6fc64 div pdata ,100 
+6cc8 20407475 call wait_div_end 
+6cc9 1807a200 quotient rega 
+6cca 18427e00 copy temp ,pdata 
+6ccb 9a262400 isub rega ,regb 
+6ccc 6fe084c5 fetch 1 ,mem_pdatatemp + 1 
+6ccd 20406cd4 call pwm_duty_cycle_set 
+6cce 6fe084c4 fetch 1 ,mem_pdatatemp 
+6ccf 684884c5 fetcht 1 ,mem_pdatatemp + 1 
+6cd0 1841040f and_into 0x0f ,temp 
+6cd1 184d0400 lshift8 temp ,temp 
+6cd2 9841fe00 ior temp ,pdata 
+6cd3 20206d14 branch pwm_enable 
+
+pwm_duty_cycle_set:
+6cd4 98000e00 iforce queue 
+6cd5 20406ce2 call pwm_duty_cycle_set_without_autoload 
+6cd6 20206cd7 branch pwm_autoload_set 
+
+pwm_autoload_set:
+6cd7 6ff080c5 fetch 1 ,core_pwm_autoload 
+6cd8 f9207e00 qset1 pdata 
+6cd9 67f080c5 store 1 ,core_pwm_autoload 
+6cda 68588042 fetcht 1 ,core_clksel 
+6cdb 284ffe07 isolate1 7 ,temp 
+6cdc 2040ece0 call delay_1clk_of_33k ,true 
+6cdd f93ffe00 qset0 pdata 
+6cde 67f080c5 store 1 ,core_pwm_autoload 
+6cdf 20600000 rtn 
+
+delay_1clk_of_33k:
+6ce0 200001e0 nop 480 
+6ce1 20600000 rtn 
+
+pwm_duty_cycle_set_without_autoload:
+6ce2 1fe17e0f and_into 0x0f ,pdata 
+6ce3 d8a0809c arg core_pwm_pcnt0 ,contw 
+6ce4 1feffe04 mul32 pdata ,4 ,pdata 
+6ce5 98a08a00 iadd contw ,contw 
+6ce6 1a227e00 copy rega ,pdata 
+6ce7 e7e10005 istore 2 ,contw 
+6ce8 1a427e00 copy regb ,pdata 
+6ce9 e7e10005 istore 2 ,contw 
+6cea 20600000 rtn 
+
+pwm_enable_in_syncmode:
+6ceb 1a4c8e00 rshift8 regb ,queue 
+6cec 20406d09 call pwm_init_bit_set 
+6ced 1a4c8e00 rshift8 regb ,queue 
+6cee 20406d03 call pwm_syncmode_set 
+6cef 1a2c8e00 rshift8 rega ,queue 
+6cf0 7820fc00 enable true 
+6cf1 20406d04 call pwm_syncmode_set_process 
+6cf2 1a227e00 deposit rega 
+6cf3 20406d0f call pwm_gpio_select 
+6cf4 1a427e00 deposit regb 
+6cf5 20206d14 branch pwm_enable 
+
+pwm_disable_in_syncmode:
+6cf6 1a227e00 deposit rega 
+6cf7 20406d17 call pwm_disable 
+6cf8 1a427e00 deposit regb 
+6cf9 20406d17 call pwm_disable 
+6cfa 1a2c8e00 rshift8 rega ,queue 
+6cfb 7840fc00 disable true 
+6cfc 20406d04 call pwm_syncmode_set_process 
+6cfd 1a4c8e00 rshift8 regb ,queue 
+6cfe 7840fc00 disable true 
+6cff 20406d0a call pwm_init_bit_set_process 
+6d00 1a4c8e00 rshift8 regb ,queue 
+6d01 7840fc00 disable true 
+6d02 20206d04 branch pwm_syncmode_set_process 
+
+pwm_syncmode_set:
+6d03 28effe07 isolate1 7 ,queue 
+
+pwm_syncmode_set_process:
+6d04 18e10e0f and queue ,0x0f ,queue 
+6d05 6ff080c3 fetch 1 ,core_pwm_sync 
+6d06 f920fe00 qsetflag true ,pdata 
+6d07 67f080c3 store 1 ,core_pwm_sync 
+6d08 20600000 rtn 
+
+pwm_init_bit_set:
+6d09 28effe06 isolate1 6 ,queue 
+
+pwm_init_bit_set_process:
+6d0a 18e10e0f and queue ,0x0f ,queue 
+6d0b 6ff0809b fetch 1 ,core_pwm_init 
+6d0c f920fe00 qsetflag true ,pdata 
+6d0d 67f0809b store 1 ,core_pwm_init 
+6d0e 20600000 rtn 
+
+pwm_gpio_select:
+6d0f 20406d1f call pwm_select_channel 
+
+pwm_gpio_select_process:
+6d10 1fed7e00 lshift8 pdata ,pdata 
+6d11 18e08410 add queue ,gpcfg_pwm_out0 ,temp 
+6d12 9841fe00 ior temp ,pdata 
+6d13 20206bb9 branch gpio_config_param 
+
+pwm_enable:
+6d14 78347c00 enable user 
+6d15 20406d0f call pwm_gpio_select 
+6d16 20206d1a branch pwm_set_select 
+
+pwm_disable:
+6d17 78547c00 disable user 
+6d18 20406d1f call pwm_select_channel 
+6d19 20206d1a branch pwm_set_select 
+
+pwm_set_select:
+6d1a 18e10e0f and queue ,0x0f ,queue 
+6d1b 6ff0809a fetch 1 ,core_pwm_en 
+6d1c f9347e00 qsetflag user ,pdata 
+6d1d 67f0809a store 1 ,core_pwm_en 
+6d1e 20600000 rtn 
+
+pwm_select_channel:
+6d1f 1fec8e00 rshift8 pdata ,queue 
+6d20 18e10e0f and queue ,0x0f ,queue 
+6d21 20600000 rtn 
+
+wdt_init_config:
+6d22 1fe20400 copy pdata ,temp 
+6d23 44d34014 bpatch patch14_6 ,mem_patch14 
+6d24 20406d2f call wdt_set_enable 
+6d25 58000800 setarg 2048 
+6d26 98467e00 isub temp ,pdata 
+6d27 1fe20400 copy pdata ,temp 
+6d28 18518400 rshift4 temp ,temp 
+6d29 60588004 storet 1 ,core_write_wdt 
+6d2a 20000578 nop 1400 
+6d2b 1fe20400 copy pdata ,temp 
+6d2c 1841040f and_into 0x0f ,temp 
+6d2d 6058800b storet 1 ,core_write_wdt2 
+6d2e 20600000 rtn 
+
+wdt_set_enable:
+6d2f 78367c00 enable user2 
+6d30 20206d33 branch wdt_init_set 
+
+wdt_set_disable:
+6d31 44d3c014 bpatch patch14_7 ,mem_patch14 
+6d32 78567c00 disable user2 
+
+wdt_init_set:
+6d33 6ff08043 fetch 1 ,core_config 
+6d34 79367e03 setflag user2 ,3 ,pdata 
+6d35 67f08043 store 1 ,core_config 
+6d36 20600000 rtn 
+
+wdt_kick_128ms:
+6d37 5800007d setarg 125 
+6d38 20206d22 branch wdt_init_config 
+
+generate_stk:
+6d39 44d74015 bpatch patch15_6 ,mem_patch15 
+6d3a 20406e22 call function_s1 
+6d3b d8a0424c arg mem_le_ltk ,contw 
+6d3c 20206e91 branch store_aes_result 
+
+authenticate_rconfirm:
+6d3d d8a0426d arg mem_le_srand ,contw 
+6d3e 2034ed40 branch authenticate_mconfirm ,master 
+6d3f d8a00153 arg mem_le_mrand ,contw 
+
+authenticate_mconfirm:
+6d40 18c22200 copy contr ,rega 
+6d41 204073d2 call memcpy16 
+6d42 20406e37 call function_c1 
+6d43 d8c0425d arg mem_le_rconfirm ,contr 
+6d44 20206eaa branch compare_res 
+
+generate_confirm:
+6d45 da200153 arg mem_le_mrand ,rega 
+6d46 2034ed48 branch generate_mrand ,master 
+6d47 da20426d arg mem_le_srand ,rega 
+
+generate_mrand:
+6d48 1a220a00 copy rega ,contw 
+6d49 204074e3 call generate_random 
+6d4a 20206e37 branch function_c1 
+
+generate_sk:
+6d4b d8c042ba arg mem_le_skdm ,contr 
+6d4c 20406e7d call load_data128 
+6d4d d8c0424c arg mem_le_ltk ,contr 
+6d4e 20406e7e call load_regext 
+6d4f 18006c38 force 0x38 ,aes_ctrl 
+6d50 18006c00 force 0x0 ,aes_ctrl 
+6d51 20406deb call wait_aes 
+6d52 d8a001a3 arg mem_le_sk ,contw 
+6d53 20206e91 branch store_aes_result 
+
+ccm_b0:
+6d54 18007008 force regidx_xor ,regext_index 
+6d55 18007e49 force 0x49 ,pdata 
+6d56 20206d5b branch iv_common 
+
+first_block_counter:
+6d57 18007e49 force 0x49 ,pdata 
+6d58 20206d5a branch first_block 
+
+first_block_data:
+6d59 18007e01 force 1 ,pdata 
+
+first_block:
+6d5a 18007000 force regidx_data ,regext_index 
+
+iv_common:
+6d5b 184d5e00 lshift8 temp ,regext 
+6d5c 9de1de00 ior regext ,regext 
+6d5d 1f00f001 increase 1 ,regext_index 
+6d5e 184cde00 rshift8 temp ,regext 
+6d5f 1df15e00 rshift16 regext ,regext 
+6d60 6fe14410 fetch 2 ,mem_ccm_iv 
+6d61 1ff07e00 lshift16 pdata ,pdata 
+6d62 9de1de00 ior regext ,regext 
+6d63 1f00f001 increase 1 ,regext_index 
+6d64 ede20006 ifetchr regext ,4 ,contr 
+6d65 1f00f001 increase 1 ,regext_index 
+6d66 efe10006 ifetch 2 ,contr 
+6d67 1a30de00 byteswap rega ,regext 
+6d68 1df05e00 lshift16 regext ,regext 
+6d69 9de1de00 ior regext ,regext 
+6d6a 1f00f001 increase 1 ,regext_index 
+6d6b 20600000 rtn 
+
+generate_mic:
+6d6c 1a608c01 add regc ,1 ,contr 
+6d6d efe08006 ifetch 1 ,contr 
+6d6e 98002200 iforce rega 
+6d6f 20406d57 call first_block_counter 
+6d70 20406ded call do_aes_ocb 
+6d71 18007000 force regidx_data ,regext_index 
+6d72 efe08013 ifetch 1 ,regc 
+6d73 1fe17e03 and_into 0x3 ,pdata 
+6d74 1ff05e00 lshift16 pdata ,regext 
+6d75 79205e08 set1 8 ,regext 
+6d76 20406e86 call clear_hidata 
+6d77 20406df0 call do_aes_cbc 
+6d78 1a227200 copy rega ,loopcnt 
+6d79 1a608c02 add regc ,2 ,contr 
+6d7a 20406e65 call padding_data 
+
+generate_mic_loop:
+6d7b 20406e6f call aes_load_data 
+6d7c 20406df0 call do_aes_cbc 
+6d7d 1f227e00 deposit loopcnt 
+6d7e 203a6d80 branch generate_mic_end ,blank 
+6d7f 20206d7b branch generate_mic_loop 
+
+generate_mic_end:
+6d80 1800700c force regidx_result ,regext_index 
+6d81 1de27e00 deposit regext 
+6d82 67e2014b store 4 ,mem_le_mic 
+6d83 20600000 rtn 
+
+aes_crypt_data:
+6d84 1a20a201 increase 1 ,rega 
+6d85 20406d59 call first_block_data 
+6d86 1a620c00 copy regc ,contr 
+6d87 20406e79 call aes_load_xor 
+6d88 20406df3 call do_aes_ctr 
+6d89 20406e98 call store_enc_data 
+6d8a 1a60a610 increase 16 ,regc 
+6d8b 1a40a5f0 increase -16 ,regb 
+6d8c 20216d84 branch aes_crypt_data ,positive 
+6d8d 20600000 rtn 
+
+le_decrypt_new:
+6d8e 20406de0 call ccm_init_common 
+6d8f 70806c00 jam 0 ,core_ccm_aad0 
+6d90 70806d01 jam 1 ,core_ccm_aad1 
+6d91 6fe08047 fetch 1 ,mem_le_rxbuf_data_header 
+6d92 1fe17e03 and_into 0x3 ,pdata 
+6d93 67f0806e store 1 ,core_ccm_aad2 
+6d94 58000049 setarg mem_le_rxbuf_data_payload 
+6d95 67f10068 store 2 ,core_ccm_input_playload_addr 
+6d96 67f1006a store 2 ,core_ccm_output_playload_addr 
+6d97 6a208048 fetchr rega ,1 ,mem_le_rxbuf_data_length 
+6d98 1a20a3fc increase -4 ,rega 
+6d99 242174d6 nbranch disable_blank ,positive 
+6d9a 62208048 storer rega ,1 ,mem_le_rxbuf_data_length 
+6d9b 58000049 setarg mem_le_rxbuf_data_payload 
+6d9c 9a208c00 iadd rega ,contr 
+6d9d 18007000 force regidx_data ,regext_index 
+6d9e ede20006 ifetchr regext ,4 ,contr 
+6d9f 65e2014f storer regext ,4 ,mem_le_peer_mic 
+6da0 684ac407 fetcht 5 ,mem_ccm_pcnt_rx 
+6da1 20406d54 call ccm_b0 
+6da2 70800a06 jam 6 ,core_ccm_ctrl 
+6da3 70800a07 jam 7 ,core_ccm_ctrl 
+6da4 6fe08048 fetch 1 ,mem_le_rxbuf_data_length 
+6da5 67f100c1 store 2 ,core_ccm_inptr 
+6da6 20406de7 call wait_ccm_done 
+6da7 6ff08108 fetch 1 ,core_misc_status 
+6da8 c303f4d6 bbit0 7 ,disable_blank 
+6da9 684a014f fetcht 4 ,mem_le_peer_mic 
+6daa 6fe2440c fetch 4 ,mem_ccm_last_mic 
+6dab 98467e00 isub temp ,pdata 
+6dac 207a0000 rtn blank 
+6dad 604a440c storet 4 ,mem_ccm_last_mic 
+6dae 6fe2c407 fetch 5 ,mem_ccm_pcnt_rx 
+6daf 1fe0fe01 increase 1 ,pdata 
+6db0 79207e27 set1 le_ccm_directionbit ,pdata 
+6db1 67e2c407 store 5 ,mem_ccm_pcnt_rx 
+6db2 18007e00 force 0 ,pdata 
+6db3 20600000 rtn 
+
+le_encrypt_new:
+6db4 20406dbb call le_encrypt_new_start 
+6db5 5800412d setarg mem_le_txpayload 
+6db6 9a20a200 iadd rega ,rega 
+6db7 20406de7 call wait_ccm_done 
+6db8 df00000c arg regidx_result ,regext_index 
+6db9 e5e20011 istorer regext ,4 ,rega 
+6dba 20600000 rtn 
+
+le_encrypt_new_start:
+6dbb 20406de0 call ccm_init_common 
+6dbc 44d7c015 bpatch patch15_7 ,mem_patch15 
+6dbd 70806c00 jam 0 ,core_ccm_aad0 
+6dbe 70806d01 jam 1 ,core_ccm_aad1 
+6dbf 6fe0c12b fetch 1 ,mem_le_txheader 
+6dc0 1fe17e03 and_into 0x3 ,pdata 
+6dc1 67f0806e store 1 ,core_ccm_aad2 
+6dc2 6fe104e3 fetch 2 ,mem_contr 
+6dc3 67f10068 store 2 ,core_ccm_input_playload_addr 
+6dc4 5800412d setarg mem_le_txpayload 
+6dc5 67f1006a store 2 ,core_ccm_output_playload_addr 
+6dc6 6a20c12c fetchr rega ,1 ,mem_le_txlen 
+6dc7 684ac402 fetcht 5 ,mem_ccm_pcnt_tx 
+6dc8 20406d54 call ccm_b0 
+6dc9 70800a02 jam 2 ,core_ccm_ctrl 
+6dca 70800a03 jam 3 ,core_ccm_ctrl 
+6dcb 6fe0c12c fetch 1 ,mem_le_txlen 
+6dcc 67f100c1 store 2 ,core_ccm_inptr 
+6dcd 1fe0fe04 increase 4 ,pdata 
+6dce 67e0c12c store 1 ,mem_le_txlen 
+6dcf 6fe2c402 fetch 5 ,mem_ccm_pcnt_tx 
+6dd0 1fe0fe01 increase 1 ,pdata 
+6dd1 793ffe27 set0 le_ccm_directionbit ,pdata 
+6dd2 67e2c402 store 5 ,mem_ccm_pcnt_tx 
+6dd3 20600000 rtn 
+
+ccm_wait_enc:
+6dd4 6ff1011a fetch 2 ,core_ccm_outptr 
+6dd5 98467c00 isub temp ,null 
+6dd6 20628000 rtn zero 
+6dd7 247a0000 nrtn blank 
+6dd8 20206dd4 branch ccm_wait_enc 
+
+ccm_check_enc_done:
+6dd9 6ff08108 fetch 1 ,core_misc_status 
+6dda c3033a8a bbit0 6 ,assert 
+
+ccm_enc_done:
+6ddb 5800412d setarg mem_le_txpayload 
+6ddc 98408a00 iadd temp ,contw 
+6ddd df00000c arg regidx_result ,regext_index 
+6dde e5e20005 istorer regext ,4 ,contw 
+6ddf 20206de9 branch ccm_ctrl_clr 
+
+ccm_init_common:
+6de0 44d84016 bpatch patch16_0 ,mem_patch16 
+6de1 1800700c force regidx_result ,regext_index 
+6de2 20406e8c call aes_clear 
+6de3 20406e8b call aes_clear_data 
+6de4 58000000 setarg 0 
+6de5 67f100c1 store 2 ,core_ccm_inptr 
+6de6 20600000 rtn 
+
+wait_ccm_done:
+6de7 6ff08108 fetch 1 ,core_misc_status 
+6de8 c3036de7 bbit0 6 ,wait_ccm_done 
+
+ccm_ctrl_clr:
+6de9 70800a00 jam 0 ,core_ccm_ctrl 
+6dea 20600000 rtn 
+
+wait_aes:
+6deb 243bedeb nbranch wait_aes ,aes_ready 
+6dec 20600000 rtn 
+
+do_aes_ocb:
+6ded 18006c30 force 0x30 ,aes_ctrl 
+6dee 18006c00 force 0x0 ,aes_ctrl 
+6def 20206deb branch wait_aes 
+
+do_aes_cbc:
+6df0 18006c32 force 0x32 ,aes_ctrl 
+6df1 18006c02 force 0x2 ,aes_ctrl 
+6df2 20206deb branch wait_aes 
+
+do_aes_ctr:
+6df3 18006c34 force 0x34 ,aes_ctrl 
+6df4 18006c04 force 0x4 ,aes_ctrl 
+6df5 20206deb branch wait_aes 
+
+aes_init:
+6df6 18006c01 force 1 ,aes_ctrl 
+6df7 18006c00 force 0 ,aes_ctrl 
+6df8 20600000 rtn 
+
+wait_keyinit_done:
+6df9 6ff08144 fetch 1 ,core_aes_decode_key_init 
+6dfa c302edf9 bbit0 5 ,wait_keyinit_done 
+6dfb 20600000 rtn 
+
+dec_key_initial:
+6dfc 67f1007e store 2 ,core_keybuf_saddr 
+6dfd 18006cc0 force 0xc0 ,aes_ctrl 
+6dfe 18006c80 force 0x80 ,aes_ctrl 
+6dff 20206df9 branch wait_keyinit_done 
+
+do_aes_ecb_dec:
+6e00 18007000 force regidx_data ,regext_index 
+6e01 1a420c00 copy regb ,contr 
+6e02 18007204 force 4 ,loopcnt 
+6e03 20406e0f call aes_ecb_dec_loop 
+6e04 18006d80 force 0x180 ,aes_ctrl 
+6e05 18006c80 force 0x80 ,aes_ctrl 
+6e06 20406deb call wait_aes 
+
+ecb_dec_generate:
+6e07 1800700c force regidx_result ,regext_index 
+6e08 1a620a00 copy regc ,contw 
+6e09 18007204 force 4 ,loopcnt 
+
+ecb_dec_generate_loop:
+6e0a 1de27e00 copy regext ,pdata 
+6e0b e7e20005 istore 4 ,contw 
+6e0c 1f00f001 increase 1 ,regext_index 
+6e0d c2006e0a loop ecb_dec_generate_loop 
+6e0e 20600000 rtn 
+
+aes_ecb_dec_loop:
+6e0f efe10006 ifetch 2 ,contr 
+6e10 e8410006 ifetcht 2 ,contr 
+6e11 18500400 lshift16 temp ,temp 
+6e12 9841de00 ior temp ,regext 
+6e13 1f00f001 increase 1 ,regext_index 
+6e14 c2006e0f loop aes_ecb_dec_loop 
+6e15 20600000 rtn 
+
+do_aes_cbc_dec:
+6e16 18007008 force regidx_xor ,regext_index 
+6e17 1a220c00 copy rega ,contr 
+6e18 18007204 force 4 ,loopcnt 
+6e19 20406e0f call aes_ecb_dec_loop 
+6e1a 18007000 force regidx_data ,regext_index 
+6e1b 1a420c00 copy regb ,contr 
+6e1c 18007204 force 4 ,loopcnt 
+6e1d 20406e0f call aes_ecb_dec_loop 
+6e1e 18006d82 force 0x182 ,aes_ctrl 
+6e1f 18006c82 force 0x82 ,aes_ctrl 
+6e20 20406deb call wait_aes 
+6e21 20206e07 branch ecb_dec_generate 
+
+function_s1:
+6e22 18007000 force regidx_data ,regext_index 
+6e23 6fe20153 fetch 4 ,mem_le_mrand 
+6e24 98005e00 iforce regext 
+6e25 1f00f001 increase 1 ,regext_index 
+6e26 efe20006 ifetch 4 ,contr 
+6e27 98005e00 iforce regext 
+6e28 1f00f001 increase 1 ,regext_index 
+6e29 6fe2426d fetch 4 ,mem_le_srand 
+6e2a 98005e00 iforce regext 
+6e2b 1f00f001 increase 1 ,regext_index 
+6e2c efe20006 ifetch 4 ,contr 
+6e2d 98005e00 iforce regext 
+6e2e 1f00f001 increase 1 ,regext_index 
+6e2f 20406e8c call aes_clear 
+6e30 1f00f1fc increase -4 ,regext_index 
+6e31 6fe242d4 fetch 4 ,mem_le_tk 
+6e32 1fe25e00 copy pdata ,regext 
+6e33 1f00f004 increase 4 ,regext_index 
+6e34 18006c38 force 0x38 ,aes_ctrl 
+6e35 18006c08 force 0x8 ,aes_ctrl 
+6e36 20206deb branch wait_aes 
+
+function_c1:
+6e37 44d8c016 bpatch patch16_1 ,mem_patch16 
+6e38 6fe342b0 fetch 6 ,mem_le_lap 
+6e39 684b0173 fetcht 6 ,mem_le_plap 
+6e3a 2034ee3d branch function_c1_master ,master 
+6e3b 6fe30173 fetch 6 ,mem_le_plap 
+6e3c 684b42b0 fetcht 6 ,mem_le_lap 
+
+function_c1_master:
+6e3d 18007008 force regidx_xor ,regext_index 
+6e3e 18425e00 copy temp ,regext 
+6e3f 1f00f001 increase 1 ,regext_index 
+6e40 184f5e00 rshift32 temp ,regext 
+6e41 1ff07e00 lshift16 pdata ,pdata 
+6e42 9de1de00 ior regext ,regext 
+6e43 1f00f001 increase 1 ,regext_index 
+6e44 1fef5e00 rshift32 pdata ,regext 
+6e45 1f00f001 increase 1 ,regext_index 
+6e46 18005e00 force 0 ,regext 
+6e47 18007e00 force 0 ,pdata 
+6e48 6fe0c2a0 fetch 1 ,mem_le_conn_peer_addr_type 
+6e49 6848c363 fetcht 1 ,mem_le_adv_own_addr_type 
+6e4a 2434ee4d nbranch function_c1_irat ,master 
+6e4b 6fe0c2a7 fetch 1 ,mem_le_conn_own_addr_type 
+6e4c 6848c2a0 fetcht 1 ,mem_le_conn_peer_addr_type 
+
+function_c1_irat:
+6e4d 67e0c27d store 1 ,mem_le_iat 
+6e4e 6048c27e storet 1 ,mem_le_rat 
+6e4f 18007000 force regidx_data ,regext_index 
+6e50 da40427d arg mem_le_iat ,regb 
+6e51 18007204 force 4 ,loopcnt 
+
+function_c1_loop1:
+6e52 efe20011 ifetch 4 ,rega 
+6e53 e8420012 ifetcht 4 ,regb 
+6e54 9842de00 ixor temp ,regext 
+6e55 1f00f001 increase 1 ,regext_index 
+6e56 1a20a204 increase 4 ,rega 
+6e57 1a40a404 increase 4 ,regb 
+6e58 c2006e52 loop function_c1_loop1 
+6e59 20406e8c call aes_clear 
+6e5a 1f00f1fc increase -4 ,regext_index 
+6e5b 6fe242d4 fetch 4 ,mem_le_tk 
+6e5c 1fe25e00 copy pdata ,regext 
+6e5d 1f00f004 increase 4 ,regext_index 
+6e5e 18006c38 force 0x38 ,aes_ctrl 
+6e5f 18006c0c force 0xc ,aes_ctrl 
+6e60 20406deb call wait_aes 
+6e61 20406e8b call aes_clear_data 
+6e62 18006c3a force 0x3a ,aes_ctrl 
+6e63 18006c08 force 0x8 ,aes_ctrl 
+6e64 20206deb branch wait_aes 
+
+padding_data:
+6e65 2f200600 compare 0 ,loopcnt ,3 
+6e66 20608000 rtn true 
+6e67 18c27e00 deposit contr 
+6e68 9f208a00 iadd loopcnt ,contw 
+6e69 18007e00 force 0 ,pdata 
+
+padding_loop:
+6e6a e7e08005 istore 1 ,contw 
+6e6b 1f20f201 increase 1 ,loopcnt 
+6e6c 2f200600 compare 0 ,loopcnt ,3 
+6e6d 20608000 rtn true 
+6e6e 20206e6a branch padding_loop 
+
+aes_load_data:
+6e6f 18007000 force regidx_data ,regext_index 
+
+load_data_loop:
+6e70 1f227e00 deposit loopcnt 
+6e71 203a6e74 branch load_data_padding ,blank 
+6e72 efe20006 ifetch 4 ,contr 
+6e73 1f20f3fc increase -4 ,loopcnt 
+
+load_data_padding:
+6e74 98005e00 iforce regext 
+6e75 1f00f001 increase 1 ,regext_index 
+6e76 2f001e04 compare regidx_key ,regext_index ,0xf 
+6e77 20608000 rtn true 
+6e78 20206e70 branch load_data_loop 
+
+aes_load_xor:
+6e79 18007008 force regidx_xor ,regext_index 
+6e7a 20206e7e branch load_regext 
+
+load_key:
+6e7b 18007004 force regidx_key ,regext_index 
+6e7c 20206e7e branch load_regext 
+
+load_data128:
+6e7d 18007000 force regidx_data ,regext_index 
+
+load_regext:
+6e7e 18007204 force 4 ,loopcnt 
+
+load_regext_loop:
+6e7f efe20006 ifetch 4 ,contr 
+6e80 98005e00 iforce regext 
+6e81 1f00f001 increase 1 ,regext_index 
+6e82 c2006e7f loop load_regext_loop 
+6e83 20600000 rtn 
+
+load_sk:
+6e84 d8c001a3 arg mem_le_sk ,contr 
+6e85 20206e7b branch load_key 
+
+clear_hidata:
+6e86 18007204 force 4 ,loopcnt 
+6e87 20206e8e branch clear_data_rest 
+
+regext_clear:
+6e88 18007000 force 0 ,regext_index 
+6e89 18007210 force 16 ,loopcnt 
+6e8a 20206e8d branch clear_loop 
+
+aes_clear_data:
+6e8b 18007000 force regidx_data ,regext_index 
+
+aes_clear:
+6e8c 18007204 force 4 ,loopcnt 
+
+clear_loop:
+6e8d 18005e00 force 0 ,regext 
+
+clear_data_rest:
+6e8e 1f00f001 increase 1 ,regext_index 
+6e8f c2006e8d loop clear_loop 
+6e90 20600000 rtn 
+
+store_aes_result:
+6e91 1800700c force regidx_result ,regext_index 
+6e92 18007204 force 4 ,loopcnt 
+
+send_aes_result_loop:
+6e93 1de27e00 deposit regext 
+6e94 e7e20005 istore 4 ,contw 
+6e95 1f00f001 increase 1 ,regext_index 
+6e96 c2006e93 loop send_aes_result_loop 
+6e97 20600000 rtn 
+
+store_enc_data:
+6e98 1800700c force regidx_result ,regext_index 
+6e99 1a620a00 copy regc ,contw 
+6e9a 1a40f201 add regb ,1 ,loopcnt 
+6e9b 1f267c0f sub loopcnt ,15 ,null 
+6e9c 20216e9e branch store_enc_loop ,positive 
+6e9d 18007210 force 16 ,loopcnt 
+
+store_enc_loop:
+6e9e 1de27e00 deposit regext 
+6e9f 1f267c03 sub loopcnt ,3 ,null 
+6ea0 20216ea6 branch store_enc_byte ,positive 
+6ea1 e7e20005 istore 4 ,contw 
+6ea2 1f20f3fc increase -4 ,loopcnt 
+6ea3 20628000 rtn zero 
+6ea4 1f00f001 increase 1 ,regext_index 
+6ea5 20206e9e branch store_enc_loop 
+
+store_enc_byte:
+6ea6 e7e08005 istore 1 ,contw 
+6ea7 1fecfe00 rshift8 pdata ,pdata 
+6ea8 c2006ea6 loop store_enc_byte 
+6ea9 20600000 rtn 
+
+compare_res:
+6eaa 1800700c force regidx_result ,regext_index 
+6eab 18007204 force 4 ,loopcnt 
+
+compare_res_loop:
+6eac efe20006 ifetch 4 ,contr 
+6ead 9de67c00 isub regext ,null 
+6eae 24628000 nrtn zero 
+6eaf 1f00f001 increase 1 ,regext_index 
+6eb0 c2006eac loop compare_res_loop 
+6eb1 18007c00 force 0 ,null 
+6eb2 20600000 rtn 
+
+enable_authrom:
+6eb3 6ff08050 fetch 1 ,core_clkoff 
+6eb4 793ffe00 set0 clock_off_auth_rom ,pdata 
+6eb5 67f08050 store 1 ,core_clkoff 
+6eb6 20600000 rtn 
+
+disable_authrom:
+6eb7 6ff08050 fetch 1 ,core_clkoff 
+6eb8 79207e00 set1 clock_off_auth_rom ,pdata 
+6eb9 67f08050 store 1 ,core_clkoff 
+6eba 20600000 rtn 
+
+ui_init:
+6ebb 20758000 rtn wake 
+6ebc 20403c42 call lpm_disable_exen_output 
+6ebd 20406ec2 call ui_button_init 
+6ebe 20406f6b call ui_timer_init 
+6ebf 20206ef8 branch ui_led_init_global 
+
+ui_dispatch:
+6ec0 20406f1b call ui_led_dispatch 
+6ec1 20206f5a branch ui_timer_check 
+
+ui_button_init:
+6ec2 6fe0c437 fetch 1 ,mem_ui_button_gpio 
+6ec3 c17f8000 rtneq ui_button_gpio_disable 
+6ec4 98000400 iforce temp 
+6ec5 20406b96 call gpio_config_output 
+6ec6 6848c437 fetcht 1 ,mem_ui_button_gpio 
+6ec7 20406b92 call gpio_out_inactive 
+6ec8 20000064 nop 100 
+6ec9 6848c437 fetcht 1 ,mem_ui_button_gpio 
+6eca 20406b7c call gpio_config_input 
+6ecb 20206ecc branch ui_button_polling 
+
+ui_button_polling:
+6ecc 44dc4017 bpatch patch17_0 ,mem_patch17 
+6ecd 6fe0c437 fetch 1 ,mem_ui_button_gpio 
+6ece c17f8000 rtneq ui_button_gpio_disable 
+6ecf 1fe20400 copy pdata ,temp 
+6ed0 20406b85 call gpio_get_bit 
+6ed1 2420eede nbranch ui_button_up ,true 
+
+ui_button_down:
+6ed2 20406ee8 call ui_button_check_long_press 
+6ed3 6fe14434 fetch 2 ,mem_ui_state_map 
+6ed4 79207e0c set1 ui_state_btn_down ,pdata 
+6ed5 67e14434 store 2 ,mem_ui_state_map 
+6ed6 6fe0c42f fetch 1 ,mem_ui_button_last_state 
+6ed7 c1000000 rtneq ui_button_state_down 
+6ed8 70442f00 jam ui_button_state_down ,mem_ui_button_last_state 
+6ed9 6fe0c436 fetch 1 ,mem_ui_button_timeout 
+6eda 67e0c42e store 1 ,mem_ui_button_timer 
+6edb 20406eef call lpm_button_get_wake_lock 
+6edc 7004c32c jam bt_evt_button_down ,mem_fifo_temp 
+6edd 20206f7b branch ui_ipc_send_event 
+
+ui_button_up:
+6ede 6fe14434 fetch 2 ,mem_ui_state_map 
+6edf 793ffe0c set0 ui_state_btn_down ,pdata 
+6ee0 67e14434 store 2 ,mem_ui_state_map 
+6ee1 6fe0c42f fetch 1 ,mem_ui_button_last_state 
+6ee2 c1008000 rtneq ui_button_state_up 
+6ee3 70442f01 jam ui_button_state_up ,mem_ui_button_last_state 
+6ee4 70442e00 jam 0 ,mem_ui_button_timer 
+6ee5 20406ef1 call lpm_button_clean_wake_lock 
+6ee6 7004c32d jam bt_evt_button_up ,mem_fifo_temp 
+6ee7 20206f7b branch ui_ipc_send_event 
+
+ui_button_check_long_press:
+6ee8 6fe0c42e fetch 1 ,mem_ui_button_timer 
+6ee9 207a0000 rtn blank 
+6eea 1fe0ffff increase -1 ,pdata 
+6eeb 67e0c42e store 1 ,mem_ui_button_timer 
+6eec 247a0000 nrtn blank 
+6eed 7004c310 jam bt_evt_button_long_pressed ,mem_fifo_temp 
+6eee 20206f7b branch ui_ipc_send_event 
+
+lpm_button_get_wake_lock:
+6eef d8e00007 arg wake_lock_button ,queue 
+6ef0 20203c21 branch lpm_get_wake_lock 
+
+lpm_button_clean_wake_lock:
+6ef1 d8e00007 arg wake_lock_button ,queue 
+6ef2 20203c25 branch lpm_put_wake_lock 
+
+calc_curr_struct_prt:
+6ef3 44dcc017 bpatch patch17_1 ,mem_patch17 
+6ef4 6fe1443a fetch 2 ,mem_ui_led_struct_ptr 
+6ef5 1a2fa40b mul32 rega ,led_offset_length ,regb 
+6ef6 9a40a400 iadd regb ,regb 
+6ef7 20600000 rtn 
+
+ui_led_init_global:
+6ef8 6fe0c439 fetch 1 ,mem_ui_led_struct_num 
+6ef9 207a0000 rtn blank 
+6efa 1fe27200 copy pdata ,loopcnt 
+6efb 6fe1443a fetch 2 ,mem_ui_led_struct_ptr 
+6efc 1fe22400 copy pdata ,regb 
+
+ui_led_init_loop:
+6efd 1a40a602 add regb ,led_offset_led_gpio ,regc 
+6efe e8408013 ifetcht 1 ,regc 
+6eff 20406f03 call ui_led_init_set 
+6f00 1a40a40b increase led_offset_length ,regb 
+6f01 c2006efd loop ui_led_init_loop 
+6f02 20600000 rtn 
+
+ui_led_init_set:
+6f03 6fe0c438 fetch 1 ,mem_ui_led_init_state_set 
+6f04 203a6b92 branch gpio_out_inactive ,blank 
+6f05 20206b96 branch gpio_out_active 
+
+ui_led_on_global:
+6f06 20406ef3 call calc_curr_struct_prt 
+6f07 58000002 setarg ui_led_state_lighting 
+6f08 e7e08012 istore 1 ,regb 
+6f09 20406f54 call ui_led_stop_timer 
+6f0a 20206f29 branch ui_led_on_static 
+
+ui_led_blink_stop_global:
+
+ui_led_off_global:
+6f0b 20406ef3 call calc_curr_struct_prt 
+6f0c 58000003 setarg ui_led_state_darking 
+6f0d e7e08012 istore 1 ,regb 
+6f0e 20406f54 call ui_led_stop_timer 
+6f0f 20206f24 branch ui_led_off_static 
+
+ui_led_blink_start_global:
+6f10 20406ef3 call calc_curr_struct_prt 
+6f11 58000001 setarg ui_led_state_blink_start 
+6f12 e7e08012 istore 1 ,regb 
+6f13 580000ff setarg led_infinite_flash_num 
+6f14 e7e08005 istore 1 ,contw 
+6f15 20206f24 branch ui_led_off_static 
+
+ui_led_set_style_global:
+6f16 20406ef3 call calc_curr_struct_prt 
+6f17 df20000b arg led_offset_length ,loopcnt 
+6f18 1a620c00 copy regc ,contr 
+6f19 1a420a00 copy regb ,contw 
+6f1a 2020740c branch memcpy_fast 
+
+ui_led_dispatch:
+6f1b 6fe0c439 fetch 1 ,mem_ui_led_struct_num 
+6f1c 207a0000 rtn blank 
+6f1d da200000 arg 0 ,rega 
+
+ui_led_blink_polling:
+6f1e 20406f2e call ui_led_change_style_by_type 
+6f1f 1a20a201 increase 1 ,rega 
+6f20 6fe0c439 fetch 1 ,mem_ui_led_struct_num 
+6f21 9a267c00 isub rega ,null 
+6f22 20628000 rtn zero 
+6f23 20206f1e branch ui_led_blink_polling 
+
+ui_led_off_static:
+6f24 1a40a602 add regb ,led_offset_led_gpio ,regc 
+6f25 e8408013 ifetcht 1 ,regc 
+6f26 6fe0c095 fetch 1 ,mem_device_option 
+6f27 c0045f22 beq dvc_op_mouse ,mouse_ui_led_off_static 
+6f28 20206b92 branch gpio_out_inactive 
+
+ui_led_on_static:
+6f29 1a40a602 add regb ,led_offset_led_gpio ,regc 
+6f2a e8408013 ifetcht 1 ,regc 
+6f2b 6fe0c095 fetch 1 ,mem_device_option 
+6f2c c0045f2f beq dvc_op_mouse ,mouse_ui_led_on_static 
+6f2d 20206b96 branch gpio_out_active 
+
+ui_led_change_style_by_type:
+6f2e 1a208e0b add rega ,ui_led_blink ,queue 
+6f2f 2040742e call timer_check 
+6f30 247a0000 nrtn blank 
+6f31 20406ef3 call calc_curr_struct_prt 
+6f32 efe08012 ifetch 1 ,regb 
+6f33 c0016f29 beq ui_led_state_lighting ,ui_led_on_static 
+6f34 c001ef24 beq ui_led_state_darking ,ui_led_off_static 
+6f35 c0006f24 beq ui_led_state_blink_stop ,ui_led_off_static 
+6f36 c002ef42 beq ui_led_state_blink_darking ,ui_led_blink_state_darking 
+
+ui_led_blink_state_lighting:
+6f37 20406f29 call ui_led_on_static 
+6f38 1a40a607 add regb ,led_offset_cb_ledon ,regc 
+6f39 2040739c call push_stack 
+6f3a efe10013 ifetch 2 ,regc 
+6f3b 20407487 call callback_func 
+6f3c 204073a8 call pop_stack 
+6f3d 58000005 setarg ui_led_state_blink_darking 
+6f3e e7e08012 istore 1 ,regb 
+6f3f 1a40a603 add regb ,led_offset_on_time ,regc 
+6f40 efe10013 ifetch 2 ,regc 
+6f41 20206f52 branch ui_led_blink_timer_start 
+
+ui_led_blink_state_darking:
+6f42 20406f24 call ui_led_off_static 
+6f43 1a40a609 add regb ,led_offset_cb_ledoff ,regc 
+6f44 2040739c call push_stack 
+6f45 efe10013 ifetch 2 ,regc 
+6f46 20407487 call callback_func 
+6f47 204073a8 call pop_stack 
+6f48 1a40a601 add regb ,led_offset_blink_count ,regc 
+6f49 efe08013 ifetch 1 ,regc 
+6f4a c07fef4e beq led_infinite_flash_num ,ui_led_blink_infinite 
+6f4b 1fe0ffff increase -1 ,pdata 
+6f4c e7e08013 istore 1 ,regc 
+6f4d 203a6f0b branch ui_led_blink_stop_global ,blank 
+
+ui_led_blink_infinite:
+6f4e 58000004 setarg ui_led_state_blink_lighting 
+6f4f e7e08012 istore 1 ,regb 
+6f50 1a40a605 add regb ,led_offset_off_time ,regc 
+6f51 efe10013 ifetch 2 ,regc 
+
+ui_led_blink_timer_start:
+6f52 1a208e0b add rega ,ui_led_blink ,queue 
+6f53 20207420 branch timer_init 
+
+ui_led_stop_timer:
+6f54 58000000 setarg 0 
+6f55 20206f52 branch ui_led_blink_timer_start 
+
+ui_timer_timeout:
+6f56 58001000 setarg 0x1000 
+6f57 1ff07e00 lshift16 pdata ,pdata 
+6f58 9a40a400 iadd regb ,regb 
+6f59 20600000 rtn 
+
+ui_timer_check:
+6f5a 44dd4017 bpatch patch17_2 ,mem_patch17 
+6f5b da200000 arg 0 ,rega 
+6f5c 684a4430 fetcht 4 ,mem_ui_timer_last_btclk 
+6f5d 1c422400 copy clkn_bt ,regb 
+6f5e 1a427e00 copy regb ,pdata 
+6f5f 98467c00 isub temp ,null 
+6f60 24416f56 ncall ui_timer_timeout ,positive 
+
+ui_timer_check_loop:
+6f61 1a427e00 copy regb ,pdata 
+6f62 184084a0 increase 160 ,temp 
+6f63 184084a0 increase 160 ,temp 
+6f64 98467c00 isub temp ,null 
+6f65 24216f6e nbranch ui_timer_check_end ,positive 
+6f66 1a20a201 increase 1 ,rega 
+6f67 1a217e0f and rega ,0x0f ,pdata 
+6f68 243a6f61 nbranch ui_timer_check_loop ,blank 
+6f69 da200000 arg 0 ,rega 
+6f6a 20406f74 call ui_timer_check_send_evt 
+
+ui_timer_init:
+6f6b 1c427e00 copy clkn_bt ,pdata 
+6f6c 67e24430 store 4 ,mem_ui_timer_last_btclk 
+6f6d 20600000 rtn 
+
+ui_timer_check_end:
+6f6e 1a227e00 copy rega ,pdata 
+6f6f 207a0000 rtn blank 
+6f70 18408560 increase -160 ,temp 
+6f71 18408560 increase -160 ,temp 
+6f72 793f841c set0 28 ,temp 
+6f73 604a4430 storet 4 ,mem_ui_timer_last_btclk 
+
+ui_timer_check_send_evt:
+6f74 20204dc0 branch app_evt_timer 
+
+ui_ipc_get_lock:
+6f75 70441c01 jam 1 ,mem_ipc_lock_bt 
+
+ui_ipc_get_lock_wait:
+6f76 6fe0c41d fetch 1 ,mem_ipc_lock_c51 
+6f77 243a6f76 nbranch ui_ipc_get_lock_wait ,blank 
+6f78 20600000 rtn 
+
+ui_ipc_put_lock:
+6f79 70441c00 jam 0 ,mem_ipc_lock_bt 
+6f7a 20600000 rtn 
+
+ui_ipc_send_event:
+6f7b 44ddc017 bpatch patch17_3 ,mem_patch17 
+6f7c 20406f75 call ui_ipc_get_lock 
+6f7d 1a227e00 copy rega ,pdata 
+6f7e 67e204d8 store 4 ,mem_rega 
+6f7f da20441e arg mem_ipc_fifo_bt2c51 ,rega 
+6f80 20407499 call fifo_in 
+6f81 6fe204d8 fetch 4 ,mem_rega 
+6f82 1fe22200 copy pdata ,rega 
+6f83 20206f79 branch ui_ipc_put_lock 
+
+ui_ipc_send_cmd:
+6f84 44de4017 bpatch patch17_4 ,mem_patch17 
+6f85 20406f75 call ui_ipc_get_lock 
+6f86 1a227e00 copy rega ,pdata 
+6f87 67e204d8 store 4 ,mem_rega 
+6f88 da204426 arg mem_ipc_fifo_c512bt ,rega 
+6f89 20407499 call fifo_in 
+6f8a 6fe204d8 fetch 4 ,mem_rega 
+6f8b 1fe22200 copy pdata ,rega 
+6f8c 20206f79 branch ui_ipc_put_lock 
+
+ui_ipc_clean_all_fifo:
+6f8d 58000000 setarg 0 
+6f8e 67e44426 store util_fifo_len ,mem_ipc_fifo_c512bt 
+6f8f 67e4441e store util_fifo_len ,mem_ipc_fifo_bt2c51 
+6f90 20600000 rtn 
+
+check_51cmd:
+6f91 44dec017 bpatch patch17_5 ,mem_patch17 
+6f92 6fe0c10d fetch 1 ,mem_hci_cmd 
+6f93 247a0000 nrtn blank 
+6f94 da204426 arg mem_ipc_fifo_c512bt ,rega 
+6f95 204074b1 call fifo_is_empty 
+6f96 207a0000 rtn blank 
+6f97 7004c200 jam ipc_continue_process ,mem_ipc_skip_continue_proc 
+6f98 20406f9c call check_51cmd_once 
+6f99 6fe084c2 fetch 1 ,mem_ipc_skip_continue_proc 
+6f9a 203a6f91 branch check_51cmd ,blank 
+6f9b 20600000 rtn 
+
+check_51cmd_once:
+6f9c 20406f75 call ui_ipc_get_lock 
+6f9d da204426 arg mem_ipc_fifo_c512bt ,rega 
+6f9e 204074a5 call fifo_out 
+6f9f 1fe20400 copy pdata ,temp 
+6fa0 20406f79 call ui_ipc_put_lock 
+6fa1 44df4017 bpatch patch17_6 ,mem_patch17 
+6fa2 18427e00 copy temp ,pdata 
+6fa3 207a0000 rtn blank 
+6fa4 c006efc0 beq bt_cmd_start_adv ,check_51cmd_adv 
+6fa5 c0076fc6 beq bt_cmd_stop_adv ,check_51cmd_stop_adv 
+6fa6 c007efcb beq bt_cmd_start_direct_adv ,check_51cmd_direct_adv 
+6fa7 c0086fc6 beq bt_cmd_stop_direct_adv ,check_51cmd_stop_direct_adv 
+6fa8 c009efd6 beq bt_cmd_led_off ,check_51cmd_led_off 
+6fa9 c00a6fd8 beq bt_cmd_led_on ,check_51cmd_led_on 
+6faa c00aefda beq bt_cmd_led_blink ,check_51cmd_led_start_blink 
+6fab c00b6fe4 beq bt_cmd_le_start_conn ,check_51cmd_le_start_con 
+6fac c00befe7 beq bt_cmd_le_start_scan ,check_51cmd_start_scan 
+6fad c00c6fe9 beq bt_cmd_le_stop_scan ,check_51cmd_stop_scan 
+6fae c00cefec beq bt_cmd_enter_hibernate ,check_51cmd_hibernate 
+6faf 67e084c3 store 1 ,mem_fifo_temp 
+
+check_51cmd_once_continue:
+6fb0 6fe084c3 fetch 1 ,mem_fifo_temp 
+6fb1 c584efb9 bmark0 mark_context ,check_51cmd_check_idle 
+6fb2 44dfc017 bpatch patch17_7 ,mem_patch17 
+6fb3 6fe084c3 fetch 1 ,mem_fifo_temp 
+6fb4 c008efd1 beq bt_cmd_le_disconnect ,check_51cmd_le_disconnect 
+6fb5 c00deff4 beq bt_cmd_le_smp_security_request ,check_51cmd_le_smp_sec_req 
+6fb6 c0096fd5 beq bt_cmd_le_update_conn ,check_51cmd_ble_update_connect_param 
+6fb7 c00feb5a beq bt_cmd_store_reconn_info_le ,eeprom_store_le_reconn_info 
+6fb8 20600000 rtn 
+
+check_51cmd_check_idle:
+6fb9 67e084c3 store 1 ,mem_fifo_temp 
+6fba 2040385b call context_check_idle 
+6fbb 2022efbe branch check_51cmd_restore ,zero 
+6fbc 20403860 call context_search_plap 
+6fbd 24628000 nrtn zero 
+
+check_51cmd_restore:
+6fbe 7004c201 jam ipc_skip_continue_process ,mem_ipc_skip_continue_proc 
+6fbf 20206f84 branch ui_ipc_send_cmd 
+
+check_51cmd_adv:
+6fc0 70435f01 jam on ,mem_le_adv_enable 
+6fc1 70436200 jam adv_ind ,mem_le_adv_type 
+6fc2 6fe14434 fetch 2 ,mem_ui_state_map 
+6fc3 79207e0b set1 ui_state_ble_adv ,pdata 
+6fc4 67e14434 store 2 ,mem_ui_state_map 
+6fc5 20600000 rtn 
+
+check_51cmd_stop_adv:
+
+check_51cmd_stop_direct_adv:
+6fc6 6fe14434 fetch 2 ,mem_ui_state_map 
+6fc7 793ffe0b set0 ui_state_ble_adv ,pdata 
+6fc8 67e14434 store 2 ,mem_ui_state_map 
+6fc9 70435f00 jam off ,mem_le_adv_enable 
+6fca 20600000 rtn 
+
+check_51cmd_direct_adv:
+6fcb 70435f01 jam on ,mem_le_adv_enable 
+6fcc 70436201 jam adv_direct_ind ,mem_le_adv_type 
+6fcd 6fe14434 fetch 2 ,mem_ui_state_map 
+6fce 79207e0b set1 ui_state_ble_adv ,pdata 
+6fcf 67e14434 store 2 ,mem_ui_state_map 
+6fd0 20600000 rtn 
+
+check_51cmd_le_disconnect:
+6fd1 58000014 setarg 20 
+6fd2 67e10191 store 2 ,mem_le_superto 
+6fd3 67e142ca store 2 ,mem_le_init_superto 
+6fd4 2020473e branch le_send_terminate_ind_user_terminated 
+
+check_51cmd_ble_update_connect_param:
+6fd5 202045c0 branch le_l2cap_tx_update_req 
+
+check_51cmd_led_off:
+6fd6 da200000 arg 0 ,rega 
+6fd7 20206f0b branch ui_led_off_global 
+
+check_51cmd_led_on:
+6fd8 da200000 arg 0 ,rega 
+6fd9 20206f06 branch ui_led_on_global 
+
+check_51cmd_led_start_blink:
+6fda da200000 arg 0 ,rega 
+6fdb 20406ef3 call calc_curr_struct_prt 
+6fdc efe08012 ifetch 1 ,regb 
+6fdd c000efe1 beq ui_led_state_blink_start ,check_51cmd_led_start_blink_in_blink 
+6fde c0026fe1 beq ui_led_state_blink_lighting ,check_51cmd_led_start_blink_in_blink 
+6fdf c002efe1 beq ui_led_state_blink_darking ,check_51cmd_led_start_blink_in_blink 
+6fe0 20206f10 branch ui_led_blink_start_global 
+
+check_51cmd_led_start_blink_in_blink:
+6fe1 efe08006 ifetch 1 ,contr 
+6fe2 c17f8000 rtneq led_infinite_flash_num 
+6fe3 20206f10 branch ui_led_blink_start_global 
+
+check_51cmd_le_start_con:
+6fe4 70431a01 jam on ,mem_le_scan_enable 
+6fe5 70410d1b jam hci_cmd_le_create_conn ,mem_hci_cmd 
+6fe6 20600000 rtn 
+
+check_51cmd_start_scan:
+6fe7 70431a01 jam on ,mem_le_scan_enable 
+6fe8 20600000 rtn 
+
+check_51cmd_stop_scan:
+6fe9 70431a00 jam off ,mem_le_scan_enable 
+6fea 70410d00 jam 0 ,mem_hci_cmd 
+6feb 20600000 rtn 
+
+check_51cmd_hibernate:
+6fec 6fe1438e fetch 2 ,mem_cb_before_hibernate 
+6fed 20407487 call callback_func 
+6fee 6fe0c437 fetch 1 ,mem_ui_button_gpio 
+6fef c07feff2 beq ui_button_gpio_disable ,check_51cmd_hibernate_btn_disabled 
+6ff0 1fe20400 copy pdata ,temp 
+6ff1 20406b7c call gpio_config_input 
+
+check_51cmd_hibernate_btn_disabled:
+6ff2 20406f8d call ui_ipc_clean_all_fifo 
+6ff3 20203b3f branch lpm_hibernate 
+
+check_51cmd_le_smp_sec_req:
+6ff4 202045ee branch le_send_smp_security_request 
+
+ui_check_paring_button:
+6ff5 6fe0c434 fetch 1 ,mem_ui_state_map 
+6ff6 c4060000 rtnbit0 ui_state_btn_down 
+6ff7 20600000 rtn 
+
+queue_init:
+6ff8 6fe143b4 fetch 2 ,mem_queue_ptr 
+6ff9 1fe08a02 add pdata ,queue_offset_curr_num ,contw 
+6ffa 58000000 setarg 0 
+6ffb e7e18005 istore 3 ,contw 
+6ffc 20600000 rtn 
+
+queue_push:
+6ffd 44e04018 bpatch patch18_0 ,mem_patch18 
+6ffe 204074ca call disable_user 
+6fff 2040702b call queue_full 
+7000 207a0000 rtn blank 
+7001 6fe143b4 fetch 2 ,mem_queue_ptr 
+7002 1fe0a402 add pdata ,queue_offset_curr_num ,regb 
+7003 e8408012 ifetcht 1 ,regb 
+7004 18408401 increase 1 ,temp 
+7005 e0408012 istoret 1 ,regb 
+7006 e840803f ifetcht 1 ,pdata 
+7007 18427200 copy temp ,loopcnt 
+7008 1fe0a404 add pdata ,queue_offset_write_ptr ,regb 
+7009 efe08012 ifetch 1 ,regb 
+700a 984ffe00 imul32 temp ,pdata 
+700b 98c08a00 iadd contr ,contw 
+700c 1a220c00 copy rega ,contr 
+
+calc_queue_next_ptr:
+700d 20407419 call memcpy 
+700e 2040702f call queue_get_size 
+700f 1fe0ffff pincrease -1 
+7010 e8408012 ifetcht 1 ,regb 
+7011 18408401 increase 1 ,temp 
+7012 98410400 iand temp ,temp 
+7013 e0408012 istoret 1 ,regb 
+7014 202074c8 branch enable_user 
+
+queue_pop:
+7015 44e0c018 bpatch patch18_1 ,mem_patch18 
+7016 204074ca call disable_user 
+7017 20407027 call queue_empty 
+7018 207a0000 rtn blank 
+7019 6fe143b4 fetch 2 ,mem_queue_ptr 
+701a 1fe0a402 add pdata ,queue_offset_curr_num ,regb 
+701b e8408012 ifetcht 1 ,regb 
+701c 184085ff increase -1 ,temp 
+701d e0408012 istoret 1 ,regb 
+701e e840803f ifetcht 1 ,pdata 
+701f 18427200 copy temp ,loopcnt 
+7020 1fe0a403 add pdata ,queue_offset_read_ptr ,regb 
+7021 efe08012 ifetch 1 ,regb 
+7022 984ffe00 imul32 temp ,pdata 
+7023 98c08c00 iadd contr ,contr 
+7024 18c08c01 increase 1 ,contr 
+7025 1a220a00 copy rega ,contw 
+7026 2020700d branch calc_queue_next_ptr 
+
+queue_empty:
+7027 6fe143b4 fetch 2 ,mem_queue_ptr 
+7028 1fe08c02 add pdata ,queue_offset_curr_num ,contr 
+7029 efe08006 ifetch 1 ,contr 
+702a 20600000 rtn 
+
+queue_full:
+702b 2040702f call queue_get_size 
+702c e8408006 ifetcht 1 ,contr 
+702d 98467e00 isub temp ,pdata 
+702e 20600000 rtn 
+
+queue_get_size:
+702f 6fe143b4 fetch 2 ,mem_queue_ptr 
+7030 1fe08c01 add pdata ,queue_offset_length ,contr 
+7031 efe08006 ifetch 1 ,contr 
+7032 20600000 rtn 
+
+usb_isr:
+7033 44e14018 bpatch patch18_2 ,mem_patch18 
+7034 6ff08c23 fetch 1 ,core_usb_status 
+7035 2feffe03 isolate1 usb_status_reset ,pdata 
+7036 2040f03f call usb_init ,true 
+7037 6ff08c23 fetch 1 ,core_usb_status 
+7038 67f08c23 store 1 ,core_usb_status 
+7039 67e0855e store 1 ,mem_usb_status 
+703a 2040709a call usb_nak_state_judge 
+703b 204070c1 call usb_rx 
+703c 204072d2 call usb0_tx 
+703d 2040731a call usb_tx 
+703e 20207092 branch usb_nak_state 
+
+usb_init:
+703f 44e1c018 bpatch patch18_3 ,mem_patch18 
+7040 20406eb3 call enable_authrom 
+7041 20407056 call usb_init_param 
+7042 708c0000 jam 0x00 ,core_usb_config 
+7043 20002710 nop 10000 
+7044 708c18c0 jam 0xc0 ,core_usb_trig 
+7045 6ff10050 fetch 2 ,core_clkoff 
+7046 793ffe0a set0 clock_off_usb ,pdata 
+7047 67f10050 store 2 ,core_clkoff 
+7048 708c1100 jam 0x0 ,core_usb_hmode 
+7049 708c003c jam 0x3c ,core_usb_config 
+704a 580005b7 setarg mem_usb_rxbuf 
+704b 67f10c03 store 2 ,core_usb_rx_saddr 
+704c 67f10c07 store 2 ,core_usb_rxptr 
+704d 580005f7 setarg mem_usb_rxbuf_end 
+704e 67f10c05 store 2 ,core_usb_rx_eaddr 
+704f 708c1104 jam 0x4 ,core_usb_hmode 
+7050 708c0200 jam 0 ,core_usb_addr 
+7051 708c23ff jam 0xff ,core_usb_status 
+7052 58000900 setarg mem_usb_clear_mem_end 
+7053 d8a0070b arg mem_usb_clear_mem_start ,contw 
+7054 98a67200 isub contw ,loopcnt 
+7055 202073ec branch clear_mem 
+
+usb_init_param:
+7056 70070802 jam dev_default ,mem_usb0_state 
+7057 58000000 setarg 0x0 
+7058 67e085fa store 1 ,mem_remain 
+7059 67e10702 store 2 ,mem_usb_zero_packet 
+705a 1fe0fe01 pincrease 1 
+705b 67e10704 store 2 ,mem_usb_ones_packet 
+705c 1fe0fe01 pincrease 1 
+705d 67e10706 store 2 ,mem_usb_two_packet 
+705e d8a00694 arg mem_string0 ,contw 
+705f 58030404 setarg 0x030404 
+7060 e7e18005 istore 3 ,contw 
+7061 58000409 setarg 0x0409 
+7062 e7e10005 istore 2 ,contw 
+7063 d8a00699 arg mem_string1 ,contw 
+7064 38015906 setsect 0 ,0x15906 
+7065 380610d2 setsect 1 ,0x210d2 
+7066 38090494 setsect 2 ,0x10494 
+7067 380c0001 setsect 3 ,0x1 
+7068 e7e48005 istore 9 ,contw 
+7069 d8a006b7 arg mem_string2 ,contw 
+706a 3801570f setsect 0 ,0x1570f 
+706b 38055c9a setsect 1 ,0x15c9a 
+706c 380a56c6 setsect 2 ,0x256c6 
+706d 380dcdcd setsect 3 ,0x1cdcd 
+706e e7e48005 istore 9 ,contw 
+706f 38014420 setsect 0 ,0x14420 
+7070 38065d99 setsect 1 ,0x25d99 
+7071 380a5636 setsect 2 ,0x25636 
+7072 380c0001 setsect 3 ,0x1 
+7073 e7e38005 istore 7 ,contw 
+7074 d8a006d5 arg mem_string3 ,contw 
+7075 3801620a setsect 0 ,0x1620a 
+7076 38040c8c setsect 1 ,0xc8c 
+7077 380b0333 setsect 2 ,0x30333 
+7078 380cc0c0 setsect 3 ,0xc0c0 
+7079 e7e48005 istore 9 ,contw 
+707a 38003130 setsect 0 ,0x3130 
+707b e7e10005 istore 2 ,contw 
+707c 58009272 setarg usb_kbdata_vendor_define_addr 
+707d 67e105fb store 2 ,mem_hidreportdesc_kb 
+707e 580092cd setarg usb_msdata_addr 
+707f 67e105fd store 2 ,mem_hidreportdesc_m 
+7080 d8c09371 arg usb_devicedata_addr ,contr 
+7081 d8a0061d arg mem_devicedesc ,contw 
+7082 df200013 arg 19 ,loopcnt 
+7083 20407419 call memcpy 
+7084 20407087 call usb_confdesc_config 
+
+usb_config_cb:
+7085 6fe106f3 fetch 2 ,mem_cb_usb_config 
+7086 20207487 branch callback_func 
+
+usb_confdesc_config:
+7087 6fe086f7 fetch 1 ,mem_usb_ep3_enable 
+7088 247a0000 nrtn blank 
+
+usb_confdesc_config_without_ep3:
+7089 df20003c arg 60 ,loopcnt 
+708a d8a00630 arg mem_confdesc ,contw 
+708b d8c09384 arg usb_confdata_addr ,contr 
+708c 20207419 branch memcpy 
+
+usb_tx_interval_config:
+708d 6fe086f8 fetch 1 ,mem_usb_tx_interval 
+708e 207a0000 rtn blank 
+708f 67e08652 store 1 ,mem_confdesc + 34 
+7090 67e0866b store 1 ,mem_confdesc + 59 
+7091 20600000 rtn 
+
+usb_nak_state:
+7092 d8e00001 arg usb_timer_nak ,queue 
+7093 2040742e call timer_check 
+7094 247a0000 nrtn blank 
+7095 6fe087ad fetch 1 ,mem_usb_wakestate_onetime_flag 
+7096 247a0000 nrtn blank 
+7097 6fe087ac fetch 1 ,mem_usb_device_enumeration_endflag 
+7098 245a738b ncall usb_mac_wakeup_judge ,blank 
+7099 20600000 rtn 
+
+usb_nak_state_judge:
+709a 6fe0855e fetch 1 ,mem_usb_status 
+709b c281709d bbit1 usb_status_nak ,usb_nak_state_timer_init 
+709c 20600000 rtn 
+
+usb_nak_state_timer_init:
+709d 204070a2 call usb0_attached_state_judge 
+709e 2040742d call timer_reinit 
+709f 58000280 setarg timer_nak_delay 
+70a0 d8e00001 arg usb_timer_nak ,queue 
+70a1 20207420 branch timer_init 
+
+usb0_attached_state_judge:
+70a2 6fe0879e fetch 1 ,mem_usb_state 
+70a3 c08170a7 bne usb_connected ,usb_clear_halt_dispose 
+70a4 7007ad00 jam 0 ,mem_usb_wakestate_onetime_flag 
+70a5 7007ae00 jam 0 ,mem_usb_mac_wakeup_trig 
+70a6 20600000 rtn 
+
+usb_clear_halt_dispose:
+70a7 6fe087b0 fetch 1 ,mem_usb_clear_halt 
+70a8 207a0000 rtn blank 
+70a9 7007b000 jam 0 ,mem_usb_clear_halt 
+70aa 70079e02 jam usb_connected ,mem_usb_state 
+70ab 7007ac01 jam 1 ,mem_usb_device_enumeration_endflag 
+70ac 20600000 rtn 
+
+usb_rx_no_data:
+70ad 6fe0855e fetch 1 ,mem_usb_status 
+70ae c28070d8 bbit1 usb_status_setup ,usb_class_type 
+70af 20600000 rtn 
+
+usb_rx_data:
+70b0 6ff08c24 fetch 1 ,core_usb_txbusy 
+70b1 c3830000 rtnbit1 usb_status_rxempty 
+70b2 69510c03 fetchr contus ,2 ,core_usb_rx_saddr 
+70b3 6a110c05 fetchr contue ,2 ,core_usb_rx_eaddr 
+70b4 68710c07 fetchr contu ,2 ,core_usb_rxptr 
+70b5 efe10003 ifetch 2 ,contu 
+70b6 1fec8400 rshift8 pdata ,temp 
+70b7 18518400 rshift4 temp ,temp 
+70b8 d8c00fff arg 0xfff ,contr 
+70b9 98c17200 iand contr ,loopcnt 
+70ba 1f222200 copy loopcnt ,rega 
+
+usb_rx_read:
+70bb efe08003 ifetch 1 ,contu 
+70bc e7e08005 istore 1 ,contw 
+70bd c20070bb loop usb_rx_read 
+70be 60710c07 storer contu ,2 ,core_usb_rxptr 
+70bf 62210560 storer rega ,2 ,mem_usb_read_len 
+70c0 20600000 rtn 
+
+usb_rx:
+70c1 44e24018 bpatch patch18_4 ,mem_patch18 
+70c2 6fe0855e fetch 1 ,mem_usb_status 
+70c3 c4028000 rtnbit0 usb_status_rxready 
+70c4 d8a0083d arg mem_usb_rxbuf_temp ,contw 
+70c5 204070b0 call usb_rx_data 
+70c6 6f210560 fetchr loopcnt ,2 ,mem_usb_read_len 
+70c7 6720887d storer loopcnt ,1 ,mem_usb_ep3_out_data_len 
+70c8 d8c0083d arg mem_usb_rxbuf_temp ,contr 
+70c9 18427e00 copy temp ,pdata 
+70ca c00070d1 beq 0 ,usb0_rx 
+70cb c001f0cd beq 3 ,usb_data_rx_ep3 
+
+usb_data_rx:
+70cc 20600000 rtn 
+
+usb_data_rx_ep3:
+70cd d8a008c0 arg mem_usb_ep3_out_data ,contw 
+70ce 20407419 call memcpy 
+70cf 70087f01 jam 1 ,mem_usb_ep3_out_data_flag 
+70d0 20600000 rtn 
+
+usb0_rx:
+70d1 d8a0070b arg mem_usb_setup ,contw 
+70d2 20407419 call memcpy 
+70d3 6fe08560 fetch 1 ,mem_usb_read_len 
+70d4 c00070ad beq 0x00 ,usb_rx_no_data 
+70d5 c000f0df beq 0x01 ,usb_out_one_byte 
+70d6 1fe67c07 sub pdata ,7 ,null 
+70d7 20610000 rtn positive 
+
+usb_class_type:
+70d8 44e2c018 bpatch patch18_5 ,mem_patch18 
+70d9 793f8023 set0 mark_isstr ,mark 
+70da 6fe0870b fetch 1 ,mem_usb_setup_bmrequesttype 
+70db 1fe17e80 and_into 0x80 ,pdata 
+70dc c04070e3 beq in_device ,usb_in_device 
+70dd c00070eb beq out_device ,usb_out_device 
+70de 20203a8a branch assert 
+
+usb_out_one_byte:
+70df 6fe0870b fetch 1 ,mem_usb_setup 
+70e0 c3838000 rtnbit1 7 
+70e1 204072a7 call usb_get_led_status 
+70e2 20207116 branch usb0_reply_zerolen 
+
+usb_in_device:
+70e3 6fe0870b fetch 1 ,mem_usb_setup_bmrequesttype 
+70e4 1ff1fe00 rshift4 pdata ,pdata 
+70e5 1fe37e00 rshift pdata ,pdata 
+70e6 1fe17e03 and_into 0x03 ,pdata 
+70e7 c00070f3 beq standard_req ,usb_in_standard_req 
+70e8 c000f0fa beq class_req ,usb_in_class_req 
+70e9 c0017100 beq manufacturer_req ,usb_in_manufacturer_req 
+70ea 20203a8a branch assert 
+
+usb_out_device:
+70eb 6fe0870b fetch 1 ,mem_usb_setup_bmrequesttype 
+70ec 1ff1fe00 rshift4 pdata ,pdata 
+70ed 1fe37e00 rshift pdata ,pdata 
+70ee 1fe17e03 and_into 0x03 ,pdata 
+70ef c0007101 beq standard_req ,usb_out_standard_req 
+70f0 c000f10a beq class_req ,usb_out_class_req 
+70f1 c0017110 beq manufacturer_req ,usb_out_manufacturer_req 
+70f2 20203a8a branch assert 
+
+usb_in_standard_req:
+70f3 44e34018 bpatch patch18_6 ,mem_patch18 
+70f4 6fe0870c fetch 1 ,mem_usb_setup_brequest 
+70f5 c0047118 beq get_configuration ,usb0_request_get_configuration 
+70f6 c003712e beq get_descriptor ,usb0_request_get_descriptor 
+70f7 c0057181 beq get_interface ,usb0_request_get_interface 
+70f8 c0007193 beq get_status ,usb0_request_get_status 
+70f9 20207111 branch usb0_force_stall 
+
+usb_in_class_req:
+70fa 44e3c018 bpatch patch18_7 ,mem_patch18 
+70fb 6fe0870c fetch 1 ,mem_usb_setup_brequest 
+70fc c00171c8 beq get_idle ,usb_get_idle 
+70fd c000f1cc beq get_report ,usb_get_report 
+70fe c001f1dd beq get_protocol ,usb_get_protocol_req 
+70ff 20207111 branch usb0_force_stall 
+
+usb_in_manufacturer_req:
+7100 20207111 branch usb0_force_stall 
+
+usb_out_standard_req:
+7101 44e44019 bpatch patch19_0 ,mem_patch19 
+7102 6fe0870c fetch 1 ,mem_usb_setup_brequest 
+7103 c000f1e7 beq clear_feature ,usb0_request_clear_feature 
+7104 c001f218 beq set_feature ,usb0_request_set_feature 
+7105 c002f243 beq set_address ,usb0_request_set_address 
+7106 c004f25c beq set_configuration ,usb0_request_set_configuration 
+7107 c005f277 beq set_interface ,usb0_request_set_interface 
+7108 c003f111 beq set_descriptor ,usb0_force_stall 
+7109 20207111 branch usb0_force_stall 
+
+usb_out_class_req:
+710a 44e4c019 bpatch patch19_1 ,mem_patch19 
+710b 6fe0870c fetch 1 ,mem_usb_setup_brequest 
+710c c0057288 beq set_idle ,usb_set_idle 
+710d c004f29a beq set_report ,usb_set_report 
+710e c005f2b9 beq set_protocol ,usb_set_protocol_req 
+710f 20207111 branch usb0_force_stall 
+
+usb_out_manufacturer_req:
+7110 20207111 branch usb0_force_stall 
+
+usb0_force_stall:
+7111 44e54019 bpatch patch19_2 ,mem_patch19 
+7112 6ff08c19 fetch 1 ,core_usb_stall 
+7113 79207e00 set1 0 ,pdata 
+7114 67f08c19 store 1 ,core_usb_stall 
+7115 20207116 branch usb0_reply_zerolen 
+
+usb0_reply_zerolen:
+7116 708c1810 jam 0x10 ,core_usb_trig 
+7117 20600000 rtn 
+
+usb0_request_get_configuration:
+7118 6fe0870b fetch 1 ,mem_usb_setup_bmrequesttype 
+7119 c0c07111 bne in_device ,usb0_force_stall 
+711a 6fe0870f fetch 1 ,mem_usb_setup_windex 
+711b c0807111 bne 0 ,usb0_force_stall 
+711c 6fe08710 fetch 1 ,mem_usb_setup_windex + 1 
+711d c0807111 bne 0 ,usb0_force_stall 
+711e 6fe08711 fetch 1 ,mem_usb_setup_blength 
+711f c080f111 bne 1 ,usb0_force_stall 
+7120 6fe08712 fetch 1 ,mem_usb_setup_blengthh 
+7121 c0807111 bne 0 ,usb0_force_stall 
+7122 6fe0870d fetch 1 ,mem_usb_setup_bvalue 
+7123 c0807111 bne 0 ,usb0_force_stall 
+7124 6fe0870e fetch 1 ,mem_usb_setup_bvalue + 1 
+7125 c0807111 bne 0 ,usb0_force_stall 
+7126 6fe08708 fetch 1 ,mem_usb0_state 
+7127 c002712a beq dev_configured ,usb0_request_get_cfg_dev_cfg 
+7128 c001f12c beq dev_address ,usb0_request_get_cfg_dev_addr 
+7129 20207111 branch usb0_force_stall 
+
+usb0_request_get_cfg_dev_cfg:
+712a da400001 arg 1 ,regb 
+712b 202071ad branch usb_send_ones_packet 
+
+usb0_request_get_cfg_dev_addr:
+712c da400001 arg 1 ,regb 
+712d 202071ab branch usb_send_zero_packet 
+
+usb0_request_get_descriptor:
+712e 44e5c019 bpatch patch19_3 ,mem_patch19 
+712f 6fe0870e fetch 1 ,mem_usb_setup_bvalueh 
+7130 c000f145 beq dsc_device ,dsc_device_info 
+7131 c001715e beq dsc_config ,dsc_config_info 
+7132 c001f161 beq dsc_string ,dsc_string_info 
+7133 c010f136 beq dsc_hid ,dsc_hid_info 
+7134 c011716f beq dsc_hid_report ,dsc_hid_report_info 
+7135 20207111 branch usb0_force_stall 
+
+dsc_hid_info:
+7136 70079b00 jam 0 ,mem_usb_get_protocol_flag 
+7137 6fe0870f fetch 1 ,mem_usb_setup_windex 
+7138 c000713c beq 0 ,dsc_hid_info_interface0 
+7139 c000f13f beq 1 ,dsc_hid_info_interface1 
+713a c0017142 beq 2 ,dsc_hid_info_interface2 
+713b 20207111 branch usb0_force_stall 
+
+dsc_hid_info_interface0:
+713c 6a408643 fetchr regb ,1 ,mem_confdesc + 19 
+713d da200643 arg mem_confdesc + 19 ,rega 
+713e 202072c8 branch usb0_respond 
+
+dsc_hid_info_interface1:
+713f 6a40865c fetchr regb ,1 ,mem_confdesc + 44 
+7140 da20065c arg mem_confdesc + 44 ,rega 
+7141 202072c8 branch usb0_respond 
+
+dsc_hid_info_interface2:
+7142 6a408675 fetchr regb ,1 ,mem_confdesc + 69 
+7143 da200675 arg mem_confdesc + 69 ,rega 
+7144 202072c8 branch usb0_respond 
+
+dsc_device_info:
+7145 6fe087af fetch 1 ,mem_usb_set_high_addr_flag 
+7146 245a7156 ncall usb_set_high_addr ,blank 
+7147 5800061d setarg mem_devicedesc 
+7148 6848861d fetcht 1 ,mem_devicedesc 
+
+dsc_info_set_data_len:
+7149 67e107a6 store 2 ,mem_dsc_info_data_pointer 
+714a 604887a8 storet 1 ,mem_dsc_info_len 
+714b 6fe08711 fetch 1 ,mem_usb_setup_blength 
+714c 98467c00 isub temp ,null 
+714d 24217154 nbranch dsc_info_set_current_data_len ,positive 
+
+dsc_info_set_initial_data_len:
+714e 6fe087a8 fetch 1 ,mem_dsc_info_len 
+
+dsc_info_set_data_size_completed:
+714f 98002400 iforce regb 
+7150 6fe107a6 fetch 2 ,mem_dsc_info_data_pointer 
+7151 1fe0fe01 add pdata ,1 ,pdata 
+7152 98002200 iforce rega 
+7153 202072c8 branch usb0_respond 
+
+dsc_info_set_current_data_len:
+7154 6fe08711 fetch 1 ,mem_usb_setup_blength 
+7155 2020714f branch dsc_info_set_data_size_completed 
+
+usb_set_high_addr:
+7156 6ff08c02 fetch 1 ,core_usb_addr 
+7157 245a715a ncall usb0_set_addr ,blank 
+7158 7007af00 jam 0 ,mem_usb_set_high_addr_flag 
+7159 20600000 rtn 
+
+usb0_set_addr:
+715a 6ff08c02 fetch 1 ,core_usb_addr 
+715b 79207e07 set1 7 ,pdata 
+715c 67f08c02 store 1 ,core_usb_addr 
+715d 20600000 rtn 
+
+dsc_config_info:
+715e 58000630 setarg mem_confdesc 
+715f 68488630 fetcht 1 ,mem_confdesc 
+7160 20207149 branch dsc_info_set_data_len 
+
+dsc_string_info:
+7161 6fe0870d fetch 1 ,mem_usb_setup_bvalue 
+7162 1fe67c03 sub pdata ,3 ,null 
+7163 24217111 nbranch usb0_force_stall ,positive 
+7164 6fe0870d fetch 1 ,mem_usb_setup_bvalue 
+7165 da200694 arg mem_string0 ,rega 
+7166 c00072c6 beq 0 ,usb0_respond_length 
+7167 79200023 set1 mark_isstr ,mark 
+7168 da200699 arg mem_string1 ,rega 
+7169 c000f2c6 beq 1 ,usb0_respond_length 
+716a da2006b7 arg mem_string2 ,rega 
+716b c00172c6 beq 2 ,usb0_respond_length 
+716c da2006d5 arg mem_string3 ,rega 
+716d c001f2c6 beq 3 ,usb0_respond_length 
+716e 20600000 rtn 
+
+dsc_hid_report_info:
+716f 6fe1070f fetch 2 ,mem_usb_setup_windex 
+7170 c0007174 beq 0 ,dsc_hid_report_info0 
+7171 c000f176 beq 1 ,dsc_hid_report_info1 
+7172 c001717a beq 2 ,dsc_hid_report_info2 
+7173 20207111 branch usb0_force_stall 
+
+dsc_hid_report_info0:
+7174 6a2105fb fetchr rega ,2 ,mem_hidreportdesc_kb 
+7175 202072c6 branch usb0_respond_length 
+
+dsc_hid_report_info1:
+7176 6fe086f7 fetch 1 ,mem_usb_ep3_enable 
+7177 205a717e call dsc_hid_enumerate_success ,blank 
+7178 6a2105fd fetchr rega ,2 ,mem_hidreportdesc_m 
+7179 202072c6 branch usb0_respond_length 
+
+dsc_hid_report_info2:
+717a 6fe086f7 fetch 1 ,mem_usb_ep3_enable 
+717b 245a717e ncall dsc_hid_enumerate_success ,blank 
+717c 6a2105ff fetchr rega ,2 ,mem_hidreportdesc_ep3 
+717d 202072c6 branch usb0_respond_length 
+
+dsc_hid_enumerate_success:
+717e 7007ac01 jam 1 ,mem_usb_device_enumeration_endflag 
+717f 70079e01 jam usb_got_report_req ,mem_usb_state 
+7180 20600000 rtn 
+
+usb0_request_get_interface:
+7181 6fe08708 fetch 1 ,mem_usb0_state 
+7182 c0827111 bne dev_configured ,usb0_force_stall 
+7183 6fe0870b fetch 1 ,mem_usb_setup_bmrequesttype 
+7184 c0c0f111 bne in_interface ,usb0_force_stall 
+7185 6fe0870d fetch 1 ,mem_usb_setup_bvalue 
+7186 c0807111 bne 0 ,usb0_force_stall 
+7187 6fe0870e fetch 1 ,mem_usb_setup_bvalueh 
+7188 c0807111 bne 0 ,usb0_force_stall 
+7189 6fe08711 fetch 1 ,mem_usb_setup_blength 
+718a c080f111 bne 1 ,usb0_force_stall 
+718b 6fe08712 fetch 1 ,mem_usb_setup_blengthh 
+718c c0807111 bne 0 ,usb0_force_stall 
+718d 6fe0870f fetch 1 ,mem_usb_setup_windex 
+718e c0807111 bne 0 ,usb0_force_stall 
+718f 6fe08710 fetch 1 ,mem_usb_setup_windex + 1 
+7190 c0807111 bne 0 ,usb0_force_stall 
+7191 da400001 arg 1 ,regb 
+7192 202071ab branch usb_send_zero_packet 
+
+usb0_request_get_status:
+7193 6fe08708 fetch 1 ,mem_usb0_state 
+7194 c0017111 beq dev_default ,usb0_force_stall 
+7195 6fe0870d fetch 1 ,mem_usb_setup_bvalue 
+7196 c0807111 bne 0 ,usb0_force_stall 
+7197 6fe0870e fetch 1 ,mem_usb_setup_bvalueh 
+7198 c0807111 bne 0 ,usb0_force_stall 
+7199 6fe08711 fetch 1 ,mem_usb_setup_blength 
+719a c0817111 bne 2 ,usb0_force_stall 
+719b 6fe08712 fetch 1 ,mem_usb_setup_blengthh 
+719c c0807111 bne 0 ,usb0_force_stall 
+719d 6fe08710 fetch 1 ,mem_usb_setup_windex + 1 
+719e c0807111 bne 0 ,usb0_force_stall 
+719f 6fe0870b fetch 1 ,mem_usb_setup_bmrequesttype 
+71a0 c04071a6 beq in_device ,usb0_get_status_in_device 
+71a1 c040f1b1 beq in_interface ,usb0_get_status_in_interface 
+71a2 c04171b5 beq in_endpoint ,usb0_get_status_in_endpoint 
+71a3 20207111 branch usb0_force_stall 
+
+usb0_sdsystem_dispose:
+71a4 7007a101 jam 1 ,mem_usb_sdsystem_wakeup_flag 
+71a5 202071af branch usb_send_two_packet 
+
+usb0_get_status_in_device:
+71a6 6fe0870f fetch 1 ,mem_usb_setup_windex 
+71a7 c0807111 bne 0 ,usb0_force_stall 
+71a8 da400002 arg 2 ,regb 
+71a9 6fe0879f fetch 1 ,mem_usb_remote_wakeup 
+71aa c000f1a4 beq 0x01 ,usb0_sdsystem_dispose 
+
+usb_send_zero_packet:
+71ab da200702 arg mem_usb_zero_packet ,rega 
+71ac 202072c8 branch usb0_respond 
+
+usb_send_ones_packet:
+71ad da200704 arg mem_usb_ones_packet ,rega 
+71ae 202072c8 branch usb0_respond 
+
+usb_send_two_packet:
+71af da200706 arg mem_usb_two_packet ,rega 
+71b0 202072c8 branch usb0_respond 
+
+usb0_get_status_in_interface:
+71b1 6fe08708 fetch 1 ,mem_usb0_state 
+71b2 c0827111 bne dev_configured ,usb0_force_stall 
+71b3 da400002 arg 2 ,regb 
+71b4 202071ab branch usb_send_zero_packet 
+
+usb0_get_status_in_endpoint:
+71b5 6fe08708 fetch 1 ,mem_usb0_state 
+71b6 c0827111 bne dev_configured ,usb0_force_stall 
+71b7 6fe0870f fetch 1 ,mem_usb_setup_windex 
+71b8 c040f1c2 beq in_ep1 ,usb0_get_status_in_ep_in_ep1 
+71b9 c04171c4 beq in_ep2 ,usb0_get_status_in_ep_in_ep2 
+71ba c041f1c6 beq in_ep3 ,usb0_get_status_in_ep_in_ep3 
+71bb 1fe17e7f and_into 0x7f ,pdata 
+71bc c00071be beq 0x00 ,usb0_get_status_in_ep_in_ep0 
+71bd 20207111 branch usb0_force_stall 
+
+usb0_get_status_in_ep_in_ep0:
+71be 6fe087a2 fetch 1 ,mem_usb_ep0_stall_status 
+
+usb0_get_status_in_ep_in_ack:
+71bf da400002 arg 2 ,regb 
+71c0 c000f1ad beq 1 ,usb_send_ones_packet 
+71c1 202071ab branch usb_send_zero_packet 
+
+usb0_get_status_in_ep_in_ep1:
+71c2 6fe087a3 fetch 1 ,mem_usb_ep1_stall_status 
+71c3 202071bf branch usb0_get_status_in_ep_in_ack 
+
+usb0_get_status_in_ep_in_ep2:
+71c4 6fe087a4 fetch 1 ,mem_usb_ep2_stall_status 
+71c5 202071bf branch usb0_get_status_in_ep_in_ack 
+
+usb0_get_status_in_ep_in_ep3:
+71c6 6fe087a5 fetch 1 ,mem_usb_ep3_stall_status 
+71c7 202071bf branch usb0_get_status_in_ep_in_ack 
+
+usb_get_idle:
+71c8 70079901 jam 1 ,mem_usb_idle_flag 
+71c9 da20079a arg mem_usb_idle_rate ,rega 
+71ca da400001 arg 1 ,regb 
+71cb 202072c8 branch usb0_respond 
+
+usb_get_report:
+71cc 6fe1070d fetch 2 ,mem_usb_setup_bvalue 
+71cd d84001ba arg pc_get_report ,temp 
+71ce 98467c00 isub temp ,null 
+71cf 2422f111 nbranch usb0_force_stall ,zero 
+
+usb_get_report_dispose:
+71d0 6fe08796 fetch 1 ,mem_usb0_data_ready_report 
+71d1 243a71da nbranch usb_get_report_data_success ,blank 
+71d2 70075300 jam pc_get_nondata ,mem_usb0_get_report_data 
+
+usb_get_report_send_data:
+71d3 6fe08711 fetch 1 ,mem_usb_setup_blength 
+71d4 98002400 iforce regb 
+71d5 da200753 arg mem_usb0_get_report_data ,rega 
+71d6 204072c8 call usb0_respond 
+
+usb_get_report_data_release:
+71d7 d8a00753 arg mem_usb0_get_report_data ,contw 
+71d8 df200008 arg 8 ,loopcnt 
+71d9 202073dd branch memset0 
+
+usb_get_report_data_success:
+71da 70079600 jam 0 ,mem_usb0_data_ready_report 
+71db 70075301 jam pc_get_data ,mem_usb0_get_report_data 
+71dc 202071d3 branch usb_get_report_send_data 
+
+usb_get_protocol_req:
+71dd 6fe08711 fetch 1 ,mem_usb_setup_blength 
+71de c080f111 bne 1 ,usb0_force_stall 
+71df 70079b01 jam 1 ,mem_usb_get_protocol_flag 
+71e0 da400001 arg 1 ,regb 
+71e1 6fe0879d fetch 1 ,mem_usb_set_protocol_value 
+71e2 c00071e5 beq 0 ,usb_get_report_protocol 
+71e3 c000f1e6 beq 1 ,usb_get_boot_protocol 
+71e4 202071ab branch usb_send_zero_packet 
+
+usb_get_report_protocol:
+71e5 202071ad branch usb_send_ones_packet 
+
+usb_get_boot_protocol:
+71e6 202071ab branch usb_send_zero_packet 
+
+usb0_request_clear_feature:
+71e7 6fe08708 fetch 1 ,mem_usb0_state 
+71e8 c0827111 bne dev_configured ,usb0_force_stall 
+71e9 6fe08711 fetch 1 ,mem_usb_setup_blength 
+71ea c0807111 bne 0 ,usb0_force_stall 
+71eb 6fe08712 fetch 1 ,mem_usb_setup_blengthh 
+71ec c0807111 bne 0 ,usb0_force_stall 
+71ed 6fe0870e fetch 1 ,mem_usb_setup_bvalueh 
+71ee c0807111 bne 0 ,usb0_force_stall 
+71ef 6fe08710 fetch 1 ,mem_usb_setup_windex + 1 
+71f0 c0807111 bne 0 ,usb0_force_stall 
+71f1 6fe0870b fetch 1 ,mem_usb_setup_bmrequesttype 
+71f2 c00071f6 beq out_device ,usb0_request_clear_feature_out_device 
+71f3 c000f205 beq out_interface ,usb0_request_clear_feature_out_interface 
+71f4 c0017206 beq out_endpoint ,usb0_request_clear_feature_out_endpoint 
+71f5 20207111 branch usb0_force_stall 
+
+usb0_request_clear_feature_out_device:
+71f6 6fe0870d fetch 1 ,mem_usb_setup_bvalue 
+71f7 c080f111 bne device_remote_wakeup ,usb0_force_stall 
+71f8 6ff08c00 fetch 1 ,core_usb_config 
+71f9 793ffe07 set0 7 ,pdata 
+71fa 67f08c00 store 1 ,core_usb_config 
+71fb 70079f00 jam 0 ,mem_usb_remote_wakeup 
+71fc 7007a001 jam 1 ,mem_usb_clear_remote_wakeup 
+71fd 6fe087a1 fetch 1 ,mem_usb_sdsystem_wakeup_flag 
+71fe 203a7116 branch usb0_reply_zerolen ,blank 
+71ff 7007a100 jam 0 ,mem_usb_sdsystem_wakeup_flag 
+7200 6fe0870a fetch 1 ,mem_usb_sdsystem_wakeup_flag_judge 
+7201 203a7116 branch usb0_reply_zerolen ,blank 
+7202 7007a000 jam 0 ,mem_usb_clear_remote_wakeup 
+7203 70079e02 jam usb_connected ,mem_usb_state 
+7204 20207116 branch usb0_reply_zerolen 
+
+usb0_request_clear_feature_out_interface:
+7205 20207111 branch usb0_force_stall 
+
+usb0_request_clear_feature_out_endpoint:
+7206 6fe0870d fetch 1 ,mem_usb_setup_bvalue 
+7207 c0807111 bne endpoint_halt ,usb0_force_stall 
+7208 6fe0870f fetch 1 ,mem_usb_setup_windex 
+7209 c040f211 beq in_ep1 ,usb0_force_stall_ep1_in_off 
+720a c0417214 beq in_ep2 ,usb0_force_stall_ep2_in_off 
+720b c041f216 beq in_ep3 ,usb0_force_stall_ep3_in_off 
+720c 1fe17e7f and_into 0x7f ,pdata 
+720d c000720f beq 0x00 ,usb0_force_stall_ep0_in_off 
+720e 20207111 branch usb0_force_stall 
+
+usb0_force_stall_ep0_in_off:
+720f 7007a200 jam 0 ,mem_usb_ep0_stall_status 
+7210 20207116 branch usb0_reply_zerolen 
+
+usb0_force_stall_ep1_in_off:
+7211 7007a300 jam 0 ,mem_usb_ep1_stall_status 
+
+usb0_force_stall_ep1_in_off_reply:
+7212 7007b001 jam 1 ,mem_usb_clear_halt 
+7213 20207116 branch usb0_reply_zerolen 
+
+usb0_force_stall_ep2_in_off:
+7214 7007a400 jam 0 ,mem_usb_ep2_stall_status 
+7215 20207212 branch usb0_force_stall_ep1_in_off_reply 
+
+usb0_force_stall_ep3_in_off:
+7216 7007a500 jam 0 ,mem_usb_ep3_stall_status 
+7217 20207212 branch usb0_force_stall_ep1_in_off_reply 
+
+usb0_request_set_feature:
+7218 6fe08711 fetch 1 ,mem_usb_setup_blength 
+7219 c0807111 bne 0 ,usb0_force_stall 
+721a 6fe08712 fetch 1 ,mem_usb_setup_blengthh 
+721b c0807111 bne 0 ,usb0_force_stall 
+721c 6fe0870b fetch 1 ,mem_usb_setup_bmrequesttype 
+721d c0007221 beq out_device ,usb0_request_set_feature_out_device 
+721e c000f22f beq out_interface ,usb0_request_set_feature_out_interface 
+721f c0017230 beq out_endpoint ,usb0_request_set_feature_out_endpoint 
+7220 20207111 branch usb0_force_stall 
+
+usb0_request_set_feature_out_device:
+7221 6fe0870d fetch 1 ,mem_usb_setup_bvalue 
+7222 c080f111 bne device_remote_wakeup ,usb0_force_stall 
+7223 20405191 call dongle_set_pc_sleep_flag 
+7224 6ff08c00 fetch 1 ,core_usb_config 
+7225 79207e07 set1 7 ,pdata 
+7226 67f08c00 store 1 ,core_usb_config 
+7227 70079f01 jam 1 ,mem_usb_remote_wakeup 
+7228 70079e03 jam usb_sleep ,mem_usb_state 
+7229 70079700 jam 0 ,mem_usb_tx_win_enable 
+722a 20407116 call usb0_reply_zerolen 
+
+usb_wakeup_timer_reinit:
+722b 2040742d call timer_reinit 
+722c 58001388 setarg timer_wakeup_delay 
+722d d8e0000f arg usb_timer_wakeup ,queue 
+722e 20207420 branch timer_init 
+
+usb0_request_set_feature_out_interface:
+722f 20207111 branch usb0_force_stall 
+
+usb0_request_set_feature_out_endpoint:
+7230 6fe0870d fetch 1 ,mem_usb_setup_bvalue 
+7231 c0807111 bne endpoint_halt ,usb0_force_stall 
+7232 6fe0870e fetch 1 ,mem_usb_setup_bvalueh 
+7233 c0807111 bne 0 ,usb0_force_stall 
+7234 6fe0870f fetch 1 ,mem_usb_setup_windex 
+7235 c040f23d beq in_ep1 ,usb0_force_stall_ep1_in_on 
+7236 c041723f beq in_ep2 ,usb0_force_stall_ep2_in_on 
+7237 c041f241 beq in_ep3 ,usb0_force_stall_ep3_in_on 
+7238 1fe17e7f and_into 0x7f ,pdata 
+7239 c000723b beq 0x00 ,usb0_force_stall_ep0_in_on 
+723a 20207111 branch usb0_force_stall 
+
+usb0_force_stall_ep0_in_on:
+723b 7007a201 jam 1 ,mem_usb_ep0_stall_status 
+723c 20207116 branch usb0_reply_zerolen 
+
+usb0_force_stall_ep1_in_on:
+723d 7007a301 jam 1 ,mem_usb_ep1_stall_status 
+723e 20207116 branch usb0_reply_zerolen 
+
+usb0_force_stall_ep2_in_on:
+723f 7007a401 jam 1 ,mem_usb_ep2_stall_status 
+7240 20207116 branch usb0_reply_zerolen 
+
+usb0_force_stall_ep3_in_on:
+7241 7007a501 jam 1 ,mem_usb_ep3_stall_status 
+7242 20207116 branch usb0_reply_zerolen 
+
+usb0_request_set_address:
+7243 6fe0870b fetch 1 ,mem_usb_setup_bmrequesttype 
+7244 c0807111 bne out_device ,usb0_force_stall 
+7245 6fe0870f fetch 1 ,mem_usb_setup_windex 
+7246 c0807111 bne 0 ,usb0_force_stall 
+7247 6fe08710 fetch 1 ,mem_usb_setup_windex + 1 
+7248 c0807111 bne 0 ,usb0_force_stall 
+7249 6fe08711 fetch 1 ,mem_usb_setup_blength 
+724a c0807111 bne 0 ,usb0_force_stall 
+724b 6fe08712 fetch 1 ,mem_usb_setup_blengthh 
+724c c0807111 bne 0 ,usb0_force_stall 
+724d 6fe0870e fetch 1 ,mem_usb_setup_bvalueh 
+724e c0807111 bne 0 ,usb0_force_stall 
+724f 6fe0870d fetch 1 ,mem_usb_setup_bvalue 
+7250 1fe17e80 and_into 0x80 ,pdata 
+7251 c0807111 bne 0 ,usb0_force_stall 
+7252 6fe0870d fetch 1 ,mem_usb_setup_bvalue 
+7253 c080725a bne 0 ,usb_usb0_state_set_dev_addr 
+
+usb_usb0_state_set_dev_default:
+7254 70070802 jam dev_default ,mem_usb0_state 
+
+usb0_request_set_wait_address:
+7255 6fe0870d fetch 1 ,mem_usb_setup_bvalue 
+7256 67f08c02 store 1 ,core_usb_addr 
+7257 20407116 call usb0_reply_zerolen 
+7258 7007af01 jam 1 ,mem_usb_set_high_addr_flag 
+7259 20600000 rtn 
+
+usb_usb0_state_set_dev_addr:
+725a 70070803 jam dev_address ,mem_usb0_state 
+725b 20207255 branch usb0_request_set_wait_address 
+
+usb0_request_set_configuration:
+725c 6fe08708 fetch 1 ,mem_usb0_state 
+725d c0017111 beq dev_default ,usb0_force_stall 
+725e 6fe0870b fetch 1 ,mem_usb_setup_bmrequesttype 
+725f c0807111 bne out_device ,usb0_force_stall 
+7260 6fe0870f fetch 1 ,mem_usb_setup_windex 
+7261 c0807111 bne 0 ,usb0_force_stall 
+7262 6fe08710 fetch 1 ,mem_usb_setup_windex + 1 
+7263 c0807111 bne 0 ,usb0_force_stall 
+7264 6fe08711 fetch 1 ,mem_usb_setup_blength 
+7265 c0807111 bne 0 ,usb0_force_stall 
+7266 6fe08712 fetch 1 ,mem_usb_setup_blengthh 
+7267 c0807111 bne 0 ,usb0_force_stall 
+7268 6fe0870e fetch 1 ,mem_usb_setup_bvalue + 1 
+7269 c0807111 bne 0 ,usb0_force_stall 
+726a 6fe0870d fetch 1 ,mem_usb_setup_bvalue 
+726b 1fe67c01 sub pdata ,usb_max_num_cfg ,null 
+726c 24217111 nbranch usb0_force_stall ,positive 
+726d 6fe08708 fetch 1 ,mem_usb0_state 
+726e c001f271 beq dev_address ,usb0_request_set_cfg_addr_state 
+726f c0027271 beq dev_configured ,usb0_request_set_cfg_cfg_state 
+7270 20207111 branch usb0_force_stall 
+
+usb0_request_set_cfg_addr_state:
+
+usb0_request_set_cfg_cfg_state:
+7271 6fe0870d fetch 1 ,mem_usb_setup_bvalue 
+7272 c0007275 beq 0 ,usb0_request_set_cfg_stay_addr_state 
+7273 70070804 jam dev_configured ,mem_usb0_state 
+7274 20207116 branch usb0_reply_zerolen 
+
+usb0_request_set_cfg_stay_addr_state:
+7275 70070803 jam dev_address ,mem_usb0_state 
+7276 20207116 branch usb0_reply_zerolen 
+
+usb0_request_set_interface:
+7277 6fe08708 fetch 1 ,mem_usb0_state 
+7278 c0827111 bne dev_configured ,usb0_force_stall 
+7279 6fe0870b fetch 1 ,mem_usb_setup_bmrequesttype 
+727a c080f111 bne out_interface ,usb0_force_stall 
+727b 6fe0870d fetch 1 ,mem_usb_setup_bvalue 
+727c c0807111 bne 0 ,usb0_force_stall 
+727d 6fe0870e fetch 1 ,mem_usb_setup_bvalueh 
+727e c0807111 bne 0 ,usb0_force_stall 
+727f 6fe08711 fetch 1 ,mem_usb_setup_blength 
+7280 c0807111 bne 0 ,usb0_force_stall 
+7281 6fe08712 fetch 1 ,mem_usb_setup_blengthh 
+7282 c0807111 bne 0 ,usb0_force_stall 
+7283 6fe0870f fetch 1 ,mem_usb_setup_windex 
+7284 c0807111 bne 0 ,usb0_force_stall 
+7285 6fe08710 fetch 1 ,mem_usb_setup_windex + 1 
+7286 c0807111 bne 0 ,usb0_force_stall 
+7287 20207116 branch usb0_reply_zerolen 
+
+usb_set_idle:
+7288 44e64019 bpatch patch19_4 ,mem_patch19 
+7289 70079901 jam 1 ,mem_usb_idle_flag 
+728a 6fe0870e fetch 1 ,mem_usb_setup_bvalueh 
+728b 67e0879a store 1 ,mem_usb_idle_rate 
+728c 6fe0870f fetch 1 ,mem_usb_setup_windex 
+728d 1fe67c01 sub pdata ,1 ,null 
+728e 2042f296 call usb_clear_remote_wakeup_set0 ,zero 
+728f 6fe0879e fetch 1 ,mem_usb_state 
+7290 c0827116 bne usb_resume ,usb0_reply_zerolen 
+7291 70079e02 jam usb_connected ,mem_usb_state 
+7292 20407116 call usb0_reply_zerolen 
+7293 20007530 nop 30000 
+7294 20007530 nop 30000 
+7295 20600000 rtn 
+
+usb_clear_remote_wakeup_set0:
+7296 7007ac01 jam 1 ,mem_usb_device_enumeration_endflag 
+7297 7007a000 jam 0 ,mem_usb_clear_remote_wakeup 
+7298 70079e04 jam usb_resume ,mem_usb_state 
+7299 20600000 rtn 
+
+usb_set_report:
+729a 20003a98 nop 15000 
+729b d8a00713 arg mem_usb0_set_report_data ,contw 
+729c 204070b0 call usb_rx_data 
+729d 70079501 jam 1 ,mem_usb0_get_set_report 
+729e 204072ab call usb_set_report_resume_judge 
+729f 6fe1070d fetch 2 ,mem_usb_setup_bvalue 
+72a0 67e10793 store 2 ,mem_usb_setup_bvalue_temp 
+72a1 20407116 call usb0_reply_zerolen 
+72a2 6fe0c095 fetch 1 ,mem_device_option 
+72a3 c1820000 rtnne dvc_op_dongle 
+72a4 6fe08797 fetch 1 ,mem_usb_tx_win_enable 
+72a5 207a0000 rtn blank 
+72a6 6fe08713 fetch 1 ,mem_usb0_set_report_data 
+
+usb_get_led_status:
+72a7 67e0c56c store 1 ,mem_24g_led_status 
+72a8 70079700 jam 0 ,mem_usb_tx_win_enable 
+72a9 70455c03 jam kb_led_ackpayload ,mem_24g_ackpayload_enable 
+72aa 20600000 rtn 
+
+usb_set_report_resume_judge:
+72ab 6fe1070d fetch 2 ,mem_usb_setup_bvalue 
+72ac d8400200 arg pc_set_report_bvalue ,temp 
+72ad 98467c00 isub temp ,null 
+72ae 24628000 nrtn zero 
+72af 6fe1070f fetch 2 ,mem_usb_setup_windex 
+72b0 d8400000 arg pc_set_report_windex ,temp 
+72b1 98467c00 isub temp ,null 
+72b2 24628000 nrtn zero 
+72b3 6fe10711 fetch 2 ,mem_usb_setup_blength 
+72b4 d8400001 arg pc_set_report_blength ,temp 
+72b5 98467c00 isub temp ,null 
+72b6 24628000 nrtn zero 
+72b7 70079701 jam 1 ,mem_usb_tx_win_enable 
+72b8 20600000 rtn 
+
+usb_set_protocol_req:
+72b9 6fe08711 fetch 1 ,mem_usb_setup_blength 
+72ba c0807111 bne 0 ,usb0_force_stall 
+72bb 6fe0870d fetch 1 ,mem_usb_setup_bvalue 
+72bc c00072bf beq boot_protocol ,usb_set_boot_protocol 
+72bd c000f2c2 beq report_protocol ,usb_set_report_protocol 
+72be 20207111 branch usb0_force_stall 
+
+usb_set_boot_protocol:
+72bf 70079c00 jam 0 ,mem_usb_set_protocol_status 
+72c0 70079d01 jam 1 ,mem_usb_set_protocol_value 
+72c1 20207116 branch usb0_reply_zerolen 
+
+usb_set_report_protocol:
+72c2 70079801 jam 1 ,mem_usb_tx_mac_enable 
+72c3 70079c01 jam 1 ,mem_usb_set_protocol_status 
+72c4 70079d00 jam 0 ,mem_usb_set_protocol_value 
+72c5 20207116 branch usb0_reply_zerolen 
+
+usb0_respond_length:
+72c6 ea408011 ifetchr regb ,1 ,rega 
+72c7 1a20a201 increase 1 ,rega 
+
+usb0_respond:
+72c8 44e6c019 bpatch patch19_5 ,mem_patch19 
+72c9 7920000e set1 mark_usb_first_resp ,mark 
+72ca c591f2cd bmark0 mark_isstr ,usb0_respond_nostr 
+72cb 1a40a401 increase 1 ,regb 
+72cc 1a43a400 lshift regb ,regb 
+
+usb0_respond_nostr:
+72cd 622105f8 storer rega ,2 ,mem_bufptr 
+72ce 624085fa storer regb ,1 ,mem_remain 
+72cf 202072d2 branch usb0_tx 
+
+usb_no_respond_data:
+72d0 d8e00000 arg 0 ,queue 
+72d1 20207312 branch usb_trig 
+
+usb0_tx:
+72d2 44e74019 bpatch patch19_6 ,mem_patch19 
+72d3 6ff08c24 fetch 1 ,core_usb_txbusy 
+72d4 c3800000 rtnbit1 0 
+72d5 6fe085fa fetch 1 ,mem_remain 
+72d6 207a0000 rtn blank 
+72d7 1fe27200 copy pdata ,loopcnt 
+72d8 98000400 iforce temp 
+72d9 6fe10711 fetch 2 ,mem_usb_setup_blength 
+72da 1fe67c40 sub pdata ,ep0_packet_size ,null 
+72db 202172e0 branch usb0_tx_short ,positive 
+72dc 1f267c40 sub loopcnt ,ep0_packet_size ,null 
+72dd 202172e4 branch usb0_tx_info ,positive 
+72de 18007240 force ep0_packet_size ,loopcnt 
+72df 202072e4 branch usb0_tx_info 
+
+usb0_tx_short:
+72e0 9f267c00 isub loopcnt ,null 
+72e1 202172e4 branch usb0_tx_info ,positive 
+72e2 98007200 iforce loopcnt 
+72e3 67e085fa store 1 ,mem_remain 
+
+usb0_tx_info:
+72e4 6fe085fa fetch 1 ,mem_remain 
+72e5 9f267e00 isub loopcnt ,pdata 
+72e6 67e085fa store 1 ,mem_remain 
+72e7 1f20ffff add loopcnt ,-1 ,pdata 
+72e8 67e08562 store 1 ,mem_usb_txbuf 
+72e9 c591f2f6 bmark0 mark_isstr ,usb0_tx_nostr 
+72ea 1fe37e00 rshift pdata ,pdata 
+72eb 1f20ffff add loopcnt ,-1 ,pdata 
+72ec 67e08562 store 1 ,mem_usb_txbuf 
+72ed c58772f6 bmark0 mark_usb_first_resp ,usb0_tx_nostr 
+72ee 793f800e set0 mark_usb_first_resp ,mark 
+72ef e0408005 istoret 1 ,contw 
+72f0 58000003 setarg 3 
+72f1 e7e08005 istore 1 ,contw 
+72f2 1f20f3ff increase -1 ,loopcnt 
+72f3 1f227e00 copy loopcnt ,pdata 
+72f4 2422f2f6 nbranch usb0_tx_nostr ,zero 
+72f5 1f20f201 increase 1 ,loopcnt 
+
+usb0_tx_nostr:
+72f6 6fe105f8 fetch 2 ,mem_bufptr 
+72f7 1fe20c00 copy pdata ,contr 
+
+usb0_tx0:
+72f8 efe08006 ifetch 1 ,contr 
+72f9 e7e08005 istore 1 ,contw 
+72fa c591f2fd bmark0 mark_isstr ,usb0_tx1 
+72fb 58000000 setarg 0 
+72fc e7e08005 istore 1 ,contw 
+
+usb0_tx1:
+72fd c20072f8 loop usb0_tx0 
+72fe 18c27e00 copy contr ,pdata 
+72ff 67e105f8 store 2 ,mem_bufptr 
+7300 58000562 setarg mem_usb_txbuf 
+7301 67f10c09 store 2 ,core_usb_tx_saddr0 
+7302 d8e00000 arg 0 ,queue 
+7303 20407312 call usb_trig 
+7304 6fe085fa fetch 1 ,mem_remain 
+7305 247a0000 nrtn blank 
+7306 6fe0879e fetch 1 ,mem_usb_state 
+7307 c1808000 rtnne usb_got_report_req 
+7308 70079e02 jam usb_connected ,mem_usb_state 
+7309 20600000 rtn 
+
+usb_tx_ep1:
+730a d8e00001 arg 1 ,queue 
+730b da2005a3 arg mem_usb_txbuf1 ,rega 
+730c 62310c0b storer rega ,2 ,core_usb_tx_saddr1 
+
+usb_tx_buf:
+730d 1f20ffff add loopcnt ,-1 ,pdata 
+730e e7e08011 istore 1 ,rega 
+
+usb_tx_loop:
+730f efe08006 ifetch 1 ,contr 
+7310 e7e08005 istore 1 ,contw 
+7311 c200730f loop usb_tx_loop 
+
+usb_trig:
+7312 58000000 setarg 0 
+7313 f9207e00 qset1 pdata 
+7314 67f08c18 store 1 ,core_usb_trig 
+7315 20600000 rtn 
+
+usb_tx_ep2:
+7316 d8e00002 arg 2 ,queue 
+7317 da2005ad arg mem_usb_txbuf2 ,rega 
+7318 62310c0d storer rega ,2 ,core_usb_tx_saddr2 
+7319 2020730d branch usb_tx_buf 
+
+usb_tx:
+731a 44e7c019 bpatch patch19_7 ,mem_patch19 
+731b 6fe087ab fetch 1 ,mem_usb_tx_enable 
+731c 207a0000 rtn blank 
+731d 6ff08c24 fetch 1 ,core_usb_txbusy 
+731e 1fe17e0f and_into 0x0f ,pdata 
+731f 243a7383 nbranch usb_inwake_state_tx_dispose ,blank 
+7320 6fe087ac fetch 1 ,mem_usb_device_enumeration_endflag 
+7321 203a7356 branch usb_tx_fifo_release ,blank 
+7322 6fe0879e fetch 1 ,mem_usb_state 
+7323 c001f393 beq usb_sleep ,usb_windows_wakeup 
+7324 c0817356 bne usb_connected ,usb_tx_fifo_release 
+7325 6fe087a0 fetch 1 ,mem_usb_clear_remote_wakeup 
+7326 243a7356 nbranch usb_tx_fifo_release ,blank 
+7327 2040732a call usb_tx_data_ep1 
+7328 20407335 call usb_tx_data_ep2 
+7329 20207342 branch usb_tx_data_ep3 
+
+usb_tx_data_ep1:
+732a 6ff08c24 fetch 1 ,core_usb_txbusy 
+732b c3808000 rtnbit1 1 
+732c 6fe087ab fetch 1 ,mem_usb_tx_enable 
+732d c4008000 rtnbit0 1 
+732e 6fe087ab fetch 1 ,mem_usb_tx_enable 
+732f 793ffe01 set0 1 ,pdata 
+7330 67e087ab store 1 ,mem_usb_tx_enable 
+7331 6fe087a9 fetch 1 ,mem_usb_ep1_data 
+7332 207a0000 rtn blank 
+7333 c008737b beq usb_ep1_kb ,usb_tx_kb_normal_data 
+7334 20203a8a branch assert 
+
+usb_tx_data_ep2:
+7335 6ff08c24 fetch 1 ,core_usb_txbusy 
+7336 c3810000 rtnbit1 2 
+7337 6fe087ab fetch 1 ,mem_usb_tx_enable 
+7338 c4010000 rtnbit0 2 
+7339 6fe087ab fetch 1 ,mem_usb_tx_enable 
+733a 793ffe02 set0 2 ,pdata 
+733b 67e087ab store 1 ,mem_usb_tx_enable 
+733c 6fe087aa fetch 1 ,mem_usb_ep2_data 
+733d 207a0000 rtn blank 
+733e c010735c beq usb_ep2_ms ,usb_tx_ms_data 
+733f c010f377 beq usb_ep2_multikey ,usb_tx_kb_multikey_data 
+7340 c011737f beq usb_ep2_systemkey ,usb_tx_kb_systemkey_data 
+7341 20203a8a branch assert 
+
+usb_tx_data_ep3:
+7342 6fe086f7 fetch 1 ,mem_usb_ep3_enable 
+7343 207a0000 rtn blank 
+7344 6ff08c24 fetch 1 ,core_usb_txbusy 
+7345 c3818000 rtnbit1 3 
+7346 6fe087ab fetch 1 ,mem_usb_tx_enable 
+7347 c4018000 rtnbit0 3 
+7348 6fe087ab fetch 1 ,mem_usb_tx_enable 
+7349 793ffe03 set0 3 ,pdata 
+734a 67e087ab store 1 ,mem_usb_tx_enable 
+734b 6f20887e fetchr loopcnt ,1 ,mem_usb_ep3_in_data_len 
+734c df200020 arg 32 ,loopcnt 
+734d d8c00880 arg mem_usb_ep3_in_data ,contr 
+
+usb_tx_ep3:
+734e d8e00003 arg 3 ,queue 
+734f da2007fd arg mem_usb_txbuf3 ,rega 
+7350 62310c0f storer rega ,2 ,core_usb_tx_saddr3 
+7351 2020730d branch usb_tx_buf 
+
+usb_tx_enable_ep3:
+7352 6fe087ab fetch 1 ,mem_usb_tx_enable 
+7353 79207e03 set1 3 ,pdata 
+7354 67e087ab store 1 ,mem_usb_tx_enable 
+7355 20600000 rtn 
+
+usb_tx_fifo_release:
+7356 d8a007b1 arg mem_usb_mouse_data ,contw 
+7357 df200008 arg 8 ,loopcnt 
+7358 204073dd call memset0 
+7359 d8a00880 arg mem_usb_ep3_in_data ,contw 
+735a df200008 arg 8 ,loopcnt 
+735b 202073dd branch memset0 
+
+usb_tx_ms_data:
+735c 6fe08799 fetch 1 ,mem_usb_idle_flag 
+735d 6848879b fetcht 1 ,mem_usb_get_protocol_flag 
+735e 98417e00 iand temp ,pdata 
+735f 203a7373 branch usb_tx_ms_data_normal_mode ,blank 
+7360 6848879c fetcht 1 ,mem_usb_set_protocol_status 
+7361 9840fe00 iadd temp ,pdata 
+7362 c000f364 beq mac_boot_mode ,usb_tx_ms_data_mac_boot_mode 
+7363 20207373 branch usb_tx_ms_data_normal_mode 
+
+usb_tx_ms_data_mac_boot_mode:
+7364 7007aa00 jam 0 ,mem_usb_ep2_data 
+
+usb_tx_ms_data_mac_boot_regroup:
+7365 6fe087b2 fetch 1 ,mem_usb_mouse_data + 1 
+7366 c0017374 beq r_key ,usb_tx_mac_boot_ms_regroup_r_or_lrkey 
+7367 c001f374 beq lr_key ,usb_tx_mac_boot_ms_regroup_r_or_lrkey 
+7368 6fe087b2 fetch 1 ,mem_usb_mouse_data + 1 
+7369 67e087b1 store 1 ,mem_usb_mouse_data 
+736a 6fe087b3 fetch 1 ,mem_usb_mouse_data + 2 
+736b e7e08005 istore 1 ,contw 
+736c 6fe087b5 fetch 1 ,mem_usb_mouse_data + 4 
+736d e7e08005 istore 1 ,contw 
+736e 6fe087b7 fetch 1 ,mem_usb_mouse_data + 6 
+736f e7e08005 istore 1 ,contw 
+7370 df200004 arg 4 ,loopcnt 
+7371 d8c007b1 arg mem_usb_mouse_data ,contr 
+7372 20207316 branch usb_tx_ep2 
+
+usb_tx_ms_data_normal_mode:
+7373 7007aa00 jam 0 ,mem_usb_ep2_data 
+
+usb_tx_mac_boot_ms_regroup_r_or_lrkey:
+7374 df200008 arg 8 ,loopcnt 
+7375 d8c007b1 arg mem_usb_mouse_data ,contr 
+7376 20207316 branch usb_tx_ep2 
+
+usb_tx_kb_multikey_data:
+7377 7007aa00 jam 0 ,mem_usb_ep2_data 
+7378 df200003 arg 3 ,loopcnt 
+7379 d8c007d1 arg mem_usb_kb_multikey ,contr 
+737a 20207316 branch usb_tx_ep2 
+
+usb_tx_kb_normal_data:
+737b 7007a900 jam 0 ,mem_usb_ep1_data 
+737c df200008 arg 8 ,loopcnt 
+737d d8c007c1 arg mem_usb_kb_data ,contr 
+737e 2020730a branch usb_tx_ep1 
+
+usb_tx_kb_systemkey_data:
+737f 7007aa00 jam 0 ,mem_usb_ep2_data 
+7380 df200002 arg 2 ,loopcnt 
+7381 d8c007e1 arg mem_usb_kb_system ,contr 
+7382 20207316 branch usb_tx_ep2 
+
+usb_inwake_state_tx_dispose:
+7383 6fe0879e fetch 1 ,mem_usb_state 
+7384 c0017386 beq usb_connected ,usb_mac_wakeup_trig 
+7385 20600000 rtn 
+
+usb_mac_wakeup_trig:
+7386 6ff08c00 fetch 1 ,core_usb_config 
+7387 79207e07 set1 7 ,pdata 
+7388 67f08c00 store 1 ,core_usb_config 
+7389 7007ae01 jam 1 ,mem_usb_mac_wakeup_trig 
+738a 20600000 rtn 
+
+usb_mac_wakeup_judge:
+738b 6fe0879e fetch 1 ,mem_usb_state 
+738c c1018000 rtneq usb_sleep 
+738d c001738f beq usb_connected ,usb_mac_wakeup 
+738e 20600000 rtn 
+
+usb_mac_wakeup:
+738f 6fe087ae fetch 1 ,mem_usb_mac_wakeup_trig 
+7390 207a0000 rtn blank 
+7391 7007ad01 jam 1 ,mem_usb_wakestate_onetime_flag 
+7392 20207396 branch usb_wakeup 
+
+usb_windows_wakeup:
+7393 d8e0000f arg usb_timer_wakeup ,queue 
+7394 2040742e call timer_check 
+7395 247a0000 nrtn blank 
+
+usb_wakeup:
+7396 6ff08c00 fetch 1 ,core_usb_config 
+7397 c4038000 rtnbit0 7 
+7398 708c00fc jam 0xfc ,core_usb_config 
+7399 20007530 nop 30000 
+739a 708c003c jam 0x3c ,core_usb_config 
+739b 20600000 rtn 
+
+push_stack:
+739c 60a104e5 storer contw ,2 ,mem_contw 
+739d 604c04cc storet 8 ,mem_temp 
+739e 616204d4 storer timeup ,4 ,mem_timeup 
+739f 204073a4 call push_stack_rega_b_c 
+73a0 60c104e3 storer contr ,2 ,mem_contr 
+73a1 672104ef storer loopcnt ,2 ,mem_loopcnt 
+73a2 60e104ed storer queue ,2 ,mem_queue 
+73a3 20600000 rtn 
+
+push_stack_rega_b_c:
+73a4 622204d8 storer rega ,4 ,mem_rega 
+73a5 624204dc storer regb ,4 ,mem_regb 
+73a6 626184e0 storer regc ,3 ,mem_regc 
+73a7 20600000 rtn 
+
+pop_stack:
+73a8 44e8401a bpatch patch1a_0 ,mem_patch1a 
+73a9 6fe104e5 fetch 2 ,mem_contw 
+73aa 98000a00 iforce contw 
+73ab 684c04cc fetcht 8 ,mem_temp 
+73ac 696204d4 fetchr timeup ,4 ,mem_timeup 
+73ad 204073b3 call pop_stack_rega_b_c 
+73ae 6f2104ef fetchr loopcnt ,2 ,mem_loopcnt 
+73af 68e104ed fetchr queue ,2 ,mem_queue 
+73b0 6fe104e3 fetch 2 ,mem_contr 
+73b1 98000c00 iforce contr 
+73b2 20600000 rtn 
+
+pop_stack_rega_b_c:
+73b3 6a2204d8 fetchr rega ,4 ,mem_rega 
+73b4 6a4204dc fetchr regb ,4 ,mem_regb 
+73b5 6a6184e0 fetchr regc ,3 ,mem_regc 
+73b6 20600000 rtn 
+
+get_contw:
+73b7 6fe104e5 fetch 2 ,mem_contw 
+73b8 1fe20a00 copy pdata ,contw 
+73b9 20600000 rtn 
+
+get_contr:
+73ba 6fe104e3 fetch 2 ,mem_contr 
+73bb 1fe20c00 copy pdata ,contr 
+73bc 20600000 rtn 
+
+store_contw:
+73bd 18a27e00 copy contw ,pdata 
+73be 67e104e5 store 2 ,mem_contw 
+73bf 20600000 rtn 
+
+store_contr:
+73c0 18c27e00 copy contr ,pdata 
+73c1 67e104e3 store 2 ,mem_contr 
+73c2 20600000 rtn 
+
+memcpy96:
+73c3 204073d0 call memcpy32 
+
+memcpy64:
+73c4 204073d0 call memcpy32 
+73c5 202073d0 branch memcpy32 
+
+memcpy12:
+73c6 204073cc call memcpy8 
+
+memcpy4:
+73c7 efe08006 ifetch 1 ,contr 
+73c8 e7e08005 istore 1 ,contw 
+
+memcpy3:
+73c9 efe18006 ifetch 3 ,contr 
+73ca e7e18005 istore 3 ,contw 
+73cb 20600000 rtn 
+
+memcpy8:
+73cc efe40006 ifetch 8 ,contr 
+73cd e7e40005 istore 8 ,contw 
+73ce 20600000 rtn 
+
+memcpy48:
+73cf 204073d2 call memcpy16 
+
+memcpy32:
+73d0 204073cc call memcpy8 
+
+memcpy24:
+73d1 204073cc call memcpy8 
+
+memcpy16:
+73d2 204073cc call memcpy8 
+73d3 202073cc branch memcpy8 
+
+delay:
+73d4 1fe0ffff increase -1 ,pdata 
+73d5 20000026 nop 38 
+73d6 243a73d4 nbranch delay ,blank 
+73d7 20600000 rtn 
+
+delay_10ms:
+73d8 df20000a arg 10 ,loopcnt 
+
+delay_ms_wait:
+73d9 20002ee0 nop 12000 
+73da c20073d9 loop delay_ms_wait 
+73db 20600000 rtn 
+
+bn_zero:
+73dc 18007203 force 3 ,loopcnt 
+
+memset0:
+73dd 18007e00 force 0 ,pdata 
+
+memset8:
+73de e7e40005 istore 8 ,contw 
+73df c20073de loop memset8 
+73e0 20600000 rtn 
+
+memset0_16:
+73e1 204073e2 call memset0_8 
+
+memset0_8:
+73e2 18007e00 force 0 ,pdata 
+73e3 e7e40005 istore 8 ,contw 
+73e4 20600000 rtn 
+
+memset0_4:
+73e5 18007e00 force 0 ,pdata 
+73e6 e7e20005 istore 4 ,contw 
+73e7 20600000 rtn 
+
+clear_mem_256:
+73e8 18007204 force 4 ,loopcnt 
+73e9 202073dd branch memset0 
+
+clear_mem_512:
+73ea 18007208 force 8 ,loopcnt 
+73eb 202073dd branch memset0 
+
+clear_mem:
+73ec 1f227e00 deposit loopcnt 
+73ed 207a0000 rtn blank 
+73ee 58000000 setarg 0 
+
+clear_mem_loop:
+73ef e7e08005 istore 1 ,contw 
+73f0 c20073ef loop clear_mem_loop 
+73f1 20600000 rtn 
+
+clear_temp_block:
+73f2 df200020 arg 32 ,loopcnt 
+73f3 d8a004f6 arg mem_temp_block0 ,contw 
+73f4 202073ec branch clear_mem 
+
+xor_loop:
+73f5 efe20013 ifetch 4 ,regc 
+73f6 e8420011 ifetcht 4 ,rega 
+73f7 9842fe00 ixor temp ,pdata 
+73f8 e7e20005 istore 4 ,contw 
+73f9 1a20a204 increase 4 ,rega 
+73fa 1a60a604 increase 4 ,regc 
+73fb c20073f5 loop xor_loop 
+73fc 20600000 rtn 
+
+inverse_data:
+73fd 44e8c01a bpatch patch1a_1 ,mem_patch1a 
+73fe 1f227e00 copy loopcnt ,pdata 
+73ff 1fe67c01 sub pdata ,1 ,null 
+7400 20610000 rtn positive 
+7401 9a20a400 iadd rega ,regb 
+7402 1a40a5ff increase -1 ,regb 
+7403 1f237200 rshift loopcnt ,loopcnt 
+
+inverse_loop:
+7404 e8408011 ifetcht 1 ,rega 
+7405 efe08012 ifetch 1 ,regb 
+7406 e7e08011 istore 1 ,rega 
+7407 e0408012 istoret 1 ,regb 
+7408 1a40a5ff increase -1 ,regb 
+7409 1a20a201 increase 1 ,rega 
+740a c2007404 loop inverse_loop 
+740b 20600000 rtn 
+
+memcpy_fast:
+740c 1f227e00 deposit loopcnt 
+740d 207a0000 rtn blank 
+
+memcpy_fast_loop:
+740e 1f20f3f8 increase -8 ,loopcnt 
+740f 204173cc call memcpy8 ,positive 
+7410 20628000 rtn zero 
+7411 2021740e branch memcpy_fast_loop ,positive 
+7412 1f20f208 increase 8 ,loopcnt 
+
+memcpy_fast_loop_four:
+7413 1f20f3fc increase -4 ,loopcnt 
+7414 204173c7 call memcpy4 ,positive 
+7415 20628000 rtn zero 
+7416 20217413 branch memcpy_fast_loop_four ,positive 
+7417 1f20f204 increase 4 ,loopcnt 
+7418 20207419 branch memcpy 
+
+memcpy:
+7419 1f227e00 deposit loopcnt 
+741a 207a0000 rtn blank 
+
+memcpy_loop:
+741b efe08006 ifetch 1 ,contr 
+741c e7e08005 istore 1 ,contw 
+741d c200741b loop memcpy_loop 
+741e 20600000 rtn 
+
+timer_stop:
+741f 58000000 setarg 0 
+
+timer_init:
+7420 67e104c4 store 2 ,mem_pdatatemp 
+7421 44e9401a bpatch patch1a_2 ,mem_patch1a 
+7422 2040742e call timer_check 
+7423 684904c4 fetcht 2 ,mem_pdatatemp 
+7424 d8a040ed arg mem_timers ,contw 
+7425 18e3fe00 lshift queue ,pdata 
+7426 98a08a00 iadd contw ,contw 
+7427 e0410005 istoret 2 ,contw 
+7428 20600000 rtn 
+
+timer_check_timeout:
+7429 d9600800 arg 0x800 ,timeup 
+742a 19701600 lshift16 timeup ,timeup 
+742b 9960fe00 iadd timeup ,pdata 
+742c 20600000 rtn 
+
+timer_reinit:
+742d d8e00000 arg 0 ,queue 
+
+timer_check:
+742e 44e9c01a bpatch patch1a_3 ,mem_patch1a 
+742f 684a4096 fetcht 4 ,mem_last_clkn 
+7430 1c437e00 rshift clkn_bt ,pdata 
+7431 67e24096 store 4 ,mem_last_clkn 
+7432 98467c00 isub temp ,null 
+7433 24417429 ncall timer_check_timeout ,positive 
+7434 98461600 isub temp ,timeup 
+7435 19620400 copy timeup ,temp 
+7436 d8c040ed arg mem_timers ,contr 
+7437 18c20a00 copy contr ,contw 
+7438 df200010 arg 16 ,loopcnt 
+
+timer_loop:
+7439 efe10006 ifetch 2 ,contr 
+743a 98467e00 isub temp ,pdata 
+743b 2021743d branch timer_counting ,positive 
+743c 18007e00 force 0 ,pdata 
+
+timer_counting:
+743d e7e10005 istore 2 ,contw 
+743e c2007439 loop timer_loop 
+743f d8c040ed arg mem_timers ,contr 
+7440 18e3fe00 lshift queue ,pdata 
+7441 98c08c00 iadd contr ,contr 
+7442 efe10006 ifetch 2 ,contr 
+7443 20600000 rtn 
+
+clk_add:
+7444 98408400 iadd temp ,temp 
+7445 18427200 copy temp ,loopcnt 
+7446 6fe1003f fetch 2 ,mem_param_rt_rthalfslot 
+7447 9f267e00 isub loopcnt ,pdata 
+7448 20610000 rtn positive 
+7449 1fe67e00 sub pdata ,0 ,pdata 
+744a 18510400 rshift16 temp ,temp 
+744b 18408401 increase 1 ,temp 
+744c 18500400 lshift16 temp ,temp 
+744d 98418400 ior temp ,temp 
+744e 20600000 rtn 
+
+clk_diff_rt:
+744f 20407451 call clk_diff 
+7450 2020745e branch clk2rt 
+
+clk_diff:
+7451 78547c00 disable user 
+7452 98467e00 isub temp ,pdata 
+7453 20217456 branch clk_diff_pos ,positive 
+7454 78347c00 enable user 
+7455 1fe67e00 sub pdata ,0 ,pdata 
+
+clk_diff_pos:
+7456 c4078000 rtnbit0 15 
+7457 1fe22800 copy pdata ,regab 
+7458 d8410000 arg 0x10000 ,temp 
+7459 6fe1003f fetch 2 ,mem_param_rt_rthalfslot 
+745a 98467e00 isub temp ,pdata 
+745b 9a80fe00 iadd regab ,pdata 
+745c 793ffe40 set0 64 ,pdata 
+745d 20600000 rtn 
+
+clk2rt:
+745e 6849003f fetcht 2 ,mem_param_rt_rthalfslot 
+745f 98000c00 iforce contr 
+7460 1ff17e00 rshift16 pdata ,pdata 
+7461 984ffe00 imul32 temp ,pdata 
+7462 98c0fe00 iadd contr ,pdata 
+7463 20600000 rtn 
+
+clk2lpo:
+7464 1fed7e00 lshift8 pdata ,pdata 
+7465 1ff27e00 lshift4 pdata ,pdata 
+7466 6849c0be fetcht 3 ,mem_clks_per_lpo 
+7467 9846fc00 idiv temp 
+7468 20407475 call wait_div_end 
+7469 18078400 quotient temp 
+746a 20600000 rtn 
+
+clk2bt:
+746b 6849003f fetcht 2 ,mem_param_rt_rthalfslot 
+746c 9846fc00 idiv temp 
+746d 20407472 call get_div_result 
+746e 1ff07e00 lshift16 pdata ,pdata 
+746f 18070400 remainder temp 
+7470 98418400 ior temp ,temp 
+7471 20600000 rtn 
+
+get_div_result:
+7472 20407475 call wait_div_end 
+7473 1807fe00 quotient pdata 
+7474 20600000 rtn 
+
+wait_div_end:
+7475 207a8000 rtn modone 
+7476 20207475 branch wait_div_end 
+
+compare_loop:
+
+string_compare:
+7477 efe08011 ifetch 1 ,rega 
+7478 e8408012 ifetcht 1 ,regb 
+7479 98467c00 isub temp ,null 
+747a 24628000 nrtn zero 
+747b 1a20a201 increase 1 ,rega 
+747c 1a40a401 increase 1 ,regb 
+747d c2007477 loop string_compare 
+747e 18007c00 force 0 ,null 
+747f 20600000 rtn 
+
+ceiling:
+7480 98467c00 isub temp ,null 
+7481 24610000 nrtn positive 
+7482 18427e00 deposit temp 
+7483 20600000 rtn 
+
+clean_mem:
+7484 df200200 arg 0x200 ,loopcnt 
+7485 d8a04000 arg 0x4000 ,contw 
+7486 202073dd branch memset0 
+
+callback_func:
+7487 207a0000 rtn blank 
+7488 1fe27a00 copy pdata ,pc 
+
+ice_break_disable_wdt:
+7489 20406d31 call wdt_set_disable 
+
+ice_break:
+748a 70820301 jam 0x1 ,core_ice_ctrl 
+748b 20600000 rtn 
+
+ice_setbp:
+748c 67f10205 store 2 ,core_ice_break0 
+748d 6ff08203 fetch 1 ,core_ice_ctrl 
+748e 79207e04 set1 4 ,pdata 
+748f 67f08203 store 1 ,core_ice_ctrl 
+7490 20600000 rtn 
+
+ice_setbp2:
+7491 67f10207 store 2 ,core_ice_break1 
+7492 6ff08203 fetch 1 ,core_ice_ctrl 
+7493 79207e06 set1 6 ,pdata 
+7494 67f08203 store 1 ,core_ice_ctrl 
+7495 20600000 rtn 
+
+ice_set_write_bp:
+7496 67f10205 store 2 ,core_ice_break0 
+7497 70820330 jam 0x30 ,core_ice_ctrl 
+7498 20600000 rtn 
+
+fifo_in:
+7499 44ea401a bpatch patch1a_4 ,mem_patch1a 
+749a e8440011 ifetcht util_fifo_len ,rega 
+749b 18417eff and temp ,0xff ,pdata 
+749c 243a749f nbranch fifo_in_push ,blank 
+749d 184cfe00 rshift8 temp ,pdata 
+749e e7e40011 istore util_fifo_len ,rega 
+
+fifo_in_push:
+749f 1a20a207 increase util_fifo_len + util_fifo_offset ,rega 
+74a0 efe08011 ifetch 1 ,rega 
+74a1 243a3a8a nbranch assert ,blank 
+74a2 6fe084c3 fetch 1 ,mem_fifo_temp 
+74a3 e7e08011 istore 1 ,rega 
+74a4 20600000 rtn 
+
+fifo_out:
+74a5 44eac01a bpatch patch1a_5 ,mem_patch1a 
+74a6 df200008 arg util_fifo_len ,loopcnt 
+74a7 efe40011 ifetch util_fifo_len ,rega 
+74a8 207a0000 rtn blank 
+
+fifo_out_loop:
+74a9 efe08011 ifetch 1 ,rega 
+74aa 243a74ae nbranch fifo_out_end ,blank 
+74ab 1a20a201 increase 1 ,rega 
+74ac c20074a9 loop fifo_out_loop 
+74ad 20203a8a branch assert 
+
+fifo_out_end:
+74ae d8400000 arg 0 ,temp 
+74af e0408011 istoret 1 ,rega 
+74b0 20600000 rtn 
+
+fifo_is_empty:
+74b1 efe40011 ifetch util_fifo_len ,rega 
+74b2 20600000 rtn 
+
+fifo_is_full:
+74b3 efe08011 ifetch 1 ,rega 
+74b4 20600000 rtn 
+
+fifo_is_near_full:
+74b5 efe10011 ifetch 2 ,rega 
+74b6 20600000 rtn 
+
+fifo_content_count:
+74b7 d8400000 arg 0 ,temp 
+
+fifo_content_count_loop:
+74b8 6fe08006 fetch 1 ,contr 
+74b9 c20074b8 loop fifo_content_count_loop ,blank 
+74ba 18408401 increase 1 ,temp 
+74bb c20074b8 loop fifo_content_count_loop 
+74bc 18427e00 copy temp ,pdata 
+74bd 20600000 rtn 
+
+not_greater_than:
+74be 98467c00 isub temp ,null 
+74bf 24610000 nrtn positive 
+
+copy_temp2pdata:
+74c0 18427e00 copy temp ,pdata 
+74c1 20600000 rtn 
+
+disable_positive:
+74c2 18007dff force -1 ,null 
+74c3 20600000 rtn 
+
+enable_positive:
+
+disable_zero:
+74c4 18007c01 force 1 ,null 
+74c5 20600000 rtn 
+
+enable_zero:
+74c6 18007c00 force 0 ,null 
+74c7 20600000 rtn 
+
+enable_user:
+74c8 78347c00 enable user 
+74c9 20600000 rtn 
+
+disable_user:
+74ca 78547c00 disable user 
+74cb 20600000 rtn 
+
+enable_user2:
+74cc 78367c00 enable user2 
+74cd 20600000 rtn 
+
+disable_user2:
+74ce 78567c00 disable user2 
+74cf 20600000 rtn 
+
+enable_user7:
+74d0 7838fc00 enable user7 
+74d1 20600000 rtn 
+
+disable_true:
+74d2 7840fc00 disable true 
+74d3 20600000 rtn 
+
+enable_true:
+74d4 7820fc00 enable true 
+74d5 20600000 rtn 
+
+disable_blank:
+74d6 58000001 setarg 1 
+74d7 20600000 rtn 
+
+enable_blank:
+
+set_pdata_0:
+74d8 58000000 setarg 0 
+74d9 20600000 rtn 
+
+cal_sum:
+74da 1f267c00 sub loopcnt ,0 ,null 
+74db 20628000 rtn zero 
+
+cal_sum_loop:
+74dc e8408006 ifetcht 1 ,contr 
+74dd 9840fe00 iadd temp ,pdata 
+74de c20074dc loop cal_sum_loop 
+74df 20600000 rtn 
+
+clear_wake:
+74e0 58000000 setarg 0 
+74e1 67e40016 store 8 ,mem_gpio_wakeup_low 
+74e2 20600000 rtn 
+
+generate_random:
+74e3 df200010 arg 16 ,loopcnt 
+
+generate_random_loop:
+74e4 180a7e00 random pdata 
+74e5 e7e08005 istore 1 ,contw 
+74e6 c20074e4 loop generate_random_loop 
+74e7 20600000 rtn 
+
+frmt_gem_adv_pdu_common:
+74e8 70459601 jam 1 ,mem_light_num_of_long_press 
+74e9 2040778d call frmt_light_long_press_flag_reset 
+74ea 7044cd42 jam 66 ,mem_light_gm_tx_addr_type 
+74eb 7044ce15 jam 21 ,mem_light_gm_tx_len 
+74ec 7044dd55 jam 0x55 ,mem_light_gm_tx_remoter_id 
+74ed 6fe0c4e2 fetch 1 ,mem_light_gm_tx_count 
+74ee 1fe0fe01 pincrease 1 
+74ef 67e0c4e2 store 1 ,mem_light_gm_tx_count 
+74f0 204074f6 call frmt_gem_pud_sum 
+74f1 20407ad5 call frmt_light_flag_set_short_press 
+74f2 df200017 arg gem_pdu_len ,loopcnt 
+74f3 d8c044cd arg mem_light_gm_tx_addr_type ,contr 
+74f4 d8a0464f arg mem_light_whitening_buffer ,contw 
+74f5 2020740c branch memcpy_fast 
+
+frmt_gem_pud_sum:
+74f6 d8400000 arg 0 ,temp 
+74f7 d8c044dc arg mem_light_gm_tx_press_time ,contr 
+74f8 df200007 arg 7 ,loopcnt 
+
+frmt_gem_pud_sum_loop:
+74f9 efe08006 ifetch 1 ,contr 
+74fa 98408400 iadd temp ,temp 
+74fb c20074f9 loop frmt_gem_pud_sum_loop 
+74fc 6048c4e3 storet 1 ,mem_light_gm_tx_sum 
+74fd 20600000 rtn 
+
+frmt_light_gem_long_press_cnt:
+74fe 6fe0c4e8 fetch 1 ,mem_gem_long_cnt_enable 
+74ff 207a0000 rtn blank 
+7500 7044e800 jam 0 ,mem_gem_long_cnt_enable 
+7501 6fe14594 fetch 2 ,mem_long_press_timeout 
+7502 207a0000 rtn blank 
+7503 6fe0c4dc fetch 1 ,mem_light_gm_tx_press_time 
+7504 1fe0fe01 pincrease 1 
+7505 67e0c4dc store 1 ,mem_light_gm_tx_press_time 
+7506 c000f50c beq 1 ,frmt_light_gem_long_press_code_increase 
+7507 c004f50c beq 9 ,frmt_light_gem_long_press_code_increase 
+7508 204074e8 call frmt_gem_adv_pdu_common 
+7509 58000003 setarg gem_long_keypress 
+750a 67e144e4 store 2 ,mem_gem_cnt_inces_timeout 
+750b 20600000 rtn 
+
+frmt_light_gem_long_press_code_increase:
+750c 6fe0c4e1 fetch 1 ,mem_light_gm_tx_code 
+750d 1fe0fe40 pincrease 0x40 
+750e 67e0c4e1 store 1 ,mem_light_gm_tx_code 
+750f 204074e8 call frmt_gem_adv_pdu_common 
+7510 20207511 branch gem_long_keypress_time 
+
+gem_long_keypress_time:
+7511 58000003 setarg gem_long_keypress 
+7512 67e144e4 store 2 ,mem_gem_cnt_inces_timeout 
+7513 20600000 rtn 
+
+gem_light_color_switch:
+7514 7044e107 jam gem_light_color_switch_code ,mem_light_gm_tx_code 
+7515 7044dc00 jam 0 ,mem_light_gm_tx_press_time 
+7516 202074e8 branch frmt_gem_adv_pdu_common 
+
+gem_light_energy_saving_light:
+7517 6fe0c4a3 fetch 1 ,mem_ble_v2_customer_id 
+7518 245a7977 ncall frmt_light_pcnt_50_percent_v2 ,blank 
+7519 7044e111 jam gem_light_energy_save_light_code ,mem_light_gm_tx_code 
+751a 7044dc00 jam 0 ,mem_light_gm_tx_press_time 
+751b 202074e8 branch frmt_gem_adv_pdu_common 
+
+gem_light_timing_off:
+751c 7044e112 jam gem_light_timing_off_code ,mem_light_gm_tx_code 
+751d 7044dc00 jam 0 ,mem_light_gm_tx_press_time 
+751e 202074e8 branch frmt_gem_adv_pdu_common 
+
+gem_light_aid_turn_onoff:
+751f 7044e113 jam gem_light_aided_light_code ,mem_light_gm_tx_code 
+7520 7044dc00 jam 0 ,mem_light_gm_tx_press_time 
+7521 202074e8 branch frmt_gem_adv_pdu_common 
+
+gem_light_master_on:
+7522 7044e105 jam gem_light_on_code ,mem_light_gm_tx_code 
+7523 7044e000 jam 0 ,mem_light_gm_tx_group_num 
+7524 7044dc00 jam 0 ,mem_light_gm_tx_press_time 
+7525 202074e8 branch frmt_gem_adv_pdu_common 
+
+gem_light_master_off:
+7526 7044e109 jam gem_light_off_code ,mem_light_gm_tx_code 
+7527 7044dc00 jam 0 ,mem_light_gm_tx_press_time 
+7528 7044e000 jam 0 ,mem_light_gm_tx_group_num 
+7529 202074e8 branch frmt_gem_adv_pdu_common 
+
+gem_light_rgb_auto:
+752a 7044e114 jam gem_light_rgb_auto_code ,mem_light_gm_tx_code 
+752b 7044dc00 jam 0 ,mem_light_gm_tx_press_time 
+752c 202074e8 branch frmt_gem_adv_pdu_common 
+
+gem_light_rgb_step:
+752d 7044e115 jam gem_light_rgb_step_code ,mem_light_gm_tx_code 
+752e 7044dc00 jam 0 ,mem_light_gm_tx_press_time 
+752f 202074e8 branch frmt_gem_adv_pdu_common 
+
+gem_light_group1_on:
+7530 6fe0c4a3 fetch 1 ,mem_ble_v2_customer_id 
+7531 245a79ad ncall frmt_light_group1_on_v2 ,blank 
+7532 7044e10c jam gem_light_on_group1_code ,mem_light_gm_tx_code 
+7533 7044e001 jam 1 ,mem_light_gm_tx_group_num 
+7534 7044dc00 jam 0 ,mem_light_gm_tx_press_time 
+7535 202074e8 branch frmt_gem_adv_pdu_common 
+
+gem_light_group1_off:
+7536 6fe0c4a3 fetch 1 ,mem_ble_v2_customer_id 
+7537 245a79b5 ncall frmt_light_group1_off_v2 ,blank 
+7538 7044e10e jam gem_light_off_group1_code ,mem_light_gm_tx_code 
+7539 7044e001 jam 1 ,mem_light_gm_tx_group_num 
+753a 7044dc00 jam 0 ,mem_light_gm_tx_press_time 
+753b 202074e8 branch frmt_gem_adv_pdu_common 
+
+gem_light_group2_on:
+753c 6fe0c4a3 fetch 1 ,mem_ble_v2_customer_id 
+753d 245a79af ncall frmt_light_group2_on_v2 ,blank 
+753e 7044e101 jam gem_light_on_group2_code ,mem_light_gm_tx_code 
+753f 7044e002 jam 2 ,mem_light_gm_tx_group_num 
+7540 7044dc00 jam 0 ,mem_light_gm_tx_press_time 
+7541 202074e8 branch frmt_gem_adv_pdu_common 
+
+gem_light_group2_off:
+7542 6fe0c4a3 fetch 1 ,mem_ble_v2_customer_id 
+7543 245a79b7 ncall frmt_light_group2_off_v2 ,blank 
+7544 7044e104 jam gem_light_off_group2_code ,mem_light_gm_tx_code 
+7545 7044e002 jam 2 ,mem_light_gm_tx_group_num 
+7546 7044dc00 jam 0 ,mem_light_gm_tx_press_time 
+7547 202074e8 branch frmt_gem_adv_pdu_common 
+
+gem_light_group3_on:
+7548 6fe0c4a3 fetch 1 ,mem_ble_v2_customer_id 
+7549 245a79b1 ncall frmt_light_group3_on_v2 ,blank 
+754a 7044e10d jam gem_light_on_group3_code ,mem_light_gm_tx_code 
+754b 7044e003 jam 3 ,mem_light_gm_tx_group_num 
+754c 7044dc00 jam 0 ,mem_light_gm_tx_press_time 
+754d 202074e8 branch frmt_gem_adv_pdu_common 
+
+gem_light_group3_off:
+754e 6fe0c4a3 fetch 1 ,mem_ble_v2_customer_id 
+754f 245a79b9 ncall frmt_light_group3_off_v2 ,blank 
+7550 7044e10f jam gem_light_off_group3_code ,mem_light_gm_tx_code 
+7551 7044e003 jam 3 ,mem_light_gm_tx_group_num 
+7552 7044dc00 jam 0 ,mem_light_gm_tx_press_time 
+7553 202074e8 branch frmt_gem_adv_pdu_common 
+
+gem_light_group4_on:
+7554 6fe0c4a3 fetch 1 ,mem_ble_v2_customer_id 
+7555 245a79b3 ncall frmt_light_group4_on_v2 ,blank 
+7556 7044e108 jam gem_light_on_group4_code ,mem_light_gm_tx_code 
+7557 7044e004 jam 4 ,mem_light_gm_tx_group_num 
+7558 7044dc00 jam 0 ,mem_light_gm_tx_press_time 
+7559 202074e8 branch frmt_gem_adv_pdu_common 
+
+gem_light_group4_off:
+755a 6fe0c4a3 fetch 1 ,mem_ble_v2_customer_id 
+755b 245a79bb ncall frmt_light_group4_off_v2 ,blank 
+755c 7044e106 jam gem_light_off_group4_code ,mem_light_gm_tx_code 
+755d 7044e004 jam 4 ,mem_light_gm_tx_group_num 
+755e 7044dc00 jam 0 ,mem_light_gm_tx_press_time 
+755f 202074e8 branch frmt_gem_adv_pdu_common 
+
+gem_light_color_switch_short_press:
+7560 6fe0c724 fetch 1 ,mem_light_color_and_lgtness_long_press_adv_enable 
+7561 c000f514 beq 1 ,gem_light_color_switch 
+7562 704706b1 jam light_color_switch_release_adv_flag ,mem_light_release_adv_flag 
+7563 2020774f branch frmt_light_light_color_and_lightness_change_common 
+
+gem_light_color_switch_w:
+7564 6fe0c4a3 fetch 1 ,mem_ble_v2_customer_id 
+7565 245a7960 ncall frmt_light_color_switch_w_v2 ,blank 
+7566 7044e116 jam gem_color_switch_w ,mem_light_gm_tx_code 
+7567 7044dc00 jam 0 ,mem_light_gm_tx_press_time 
+7568 7044e000 jam 0 ,mem_light_gm_tx_group_num 
+7569 202074e8 branch frmt_gem_adv_pdu_common 
+
+gem_light_color_switch_y:
+756a 6fe0c4a3 fetch 1 ,mem_ble_v2_customer_id 
+756b 245a7966 ncall frmt_light_color_switch_y_v2 ,blank 
+756c 7044e117 jam gem_color_switch_y ,mem_light_gm_tx_code 
+756d 7044dc00 jam 0 ,mem_light_gm_tx_press_time 
+756e 7044e000 jam 0 ,mem_light_gm_tx_group_num 
+756f 202074e8 branch frmt_gem_adv_pdu_common 
+
+gem_light_to_y:
+7570 70470600 jam 0 ,mem_light_release_adv_flag 
+7571 6fe0c4a3 fetch 1 ,mem_ble_v2_customer_id 
+7572 245a792a ncall frmt_light_to_y_v2 ,blank 
+7573 7044e10a jam gem_light_to_y_code ,mem_light_gm_tx_code 
+7574 202074e8 branch frmt_gem_adv_pdu_common 
+
+gem_light_to_w:
+7575 70470600 jam 0 ,mem_light_release_adv_flag 
+7576 6fe0c4a3 fetch 1 ,mem_ble_v2_customer_id 
+7577 245a792c ncall frmt_light_to_w_v2 ,blank 
+7578 7044e10b jam gem_light_to_w_code ,mem_light_gm_tx_code 
+7579 202074e8 branch frmt_gem_adv_pdu_common 
+
+gem_light_darken:
+757a 70470600 jam 0 ,mem_light_release_adv_flag 
+757b 6fe0c4a3 fetch 1 ,mem_ble_v2_customer_id 
+757c 245a792e ncall frmt_light_darken_v2 ,blank 
+757d 7044e103 jam gem_light_darken_code ,mem_light_gm_tx_code 
+757e 202074e8 branch frmt_gem_adv_pdu_common 
+
+gem_light_lighten:
+757f 70470600 jam 0 ,mem_light_release_adv_flag 
+7580 6fe0c4a3 fetch 1 ,mem_ble_v2_customer_id 
+7581 245a7930 ncall frmt_light_lighten_v2 ,blank 
+7582 7044e102 jam gem_light_lighten_code ,mem_light_gm_tx_code 
+7583 202074e8 branch frmt_gem_adv_pdu_common 
+
+gem_light_night_light:
+7584 6fe0c4a3 fetch 1 ,mem_ble_v2_customer_id 
+7585 245a7948 ncall frmt_light_night_light_v2 ,blank 
+7586 7044e110 jam gem_light_night_light_code ,mem_light_gm_tx_code 
+7587 7044dc00 jam 0 ,mem_light_gm_tx_press_time 
+7588 202074e8 branch frmt_gem_adv_pdu_common 
+
+remoter_init:
+7589 20407de0 call frmt_ble_para_init 
+758a 204075aa call frmt_enter_lpm_gpio_config_flag_init_row 
+758b 204075b5 call frmt_enter_lpm_gpio_config_flag_init_col 
+758c 4738c02e bpatchx patch2e_1 ,mem_patch2e 
+758d 70457d01 jam 1 ,mem_set_clear_code_timeout_enable 
+758e 70457e01 jam 1 ,mem_light_lpm_enable 
+
+frmt_apl_ble_scene_rewrite_lap:
+758f 4739402e bpatchx patch2e_2 ,mem_patch2e 
+7590 6fe142b0 fetch 2 ,mem_le_lap 
+7591 1ff27e00 lshift4 pdata ,pdata 
+7592 d840ffff arg 0xffff ,temp 
+7593 98417e00 iand temp ,pdata 
+7594 203a75bc branch frmt_light_set_addr_to_0010 ,blank 
+7595 d840fff0 arg 0xfff0 ,temp 
+7596 98467c00 isub temp ,null 
+7597 2022f5be branch frmt_light_set_addr_to_ffe0 ,zero 
+
+frmt_lightc_init_continue:
+7598 4739c02e bpatchx patch2e_3 ,mem_patch2e 
+7599 1ff0fe00 byteswap pdata ,pdata 
+759a 67e1457b store 2 ,mem_ftd_adv_raw_device_add_temp 
+759b 67e144de store 2 ,mem_light_gm_tx_remoter_addr 
+759c da20ffff arg 0xffff ,rega 
+759d 1a300400 lshift16 rega ,temp 
+759e 5800ffff setarg 0xffff 
+759f 98418400 ior temp ,temp 
+75a0 6fe242b0 fetch 4 ,mem_le_lap 
+75a1 205a75ba call frmt_light_addr_default_v2 ,blank 
+75a2 98467c00 isub temp ,null 
+75a3 2042f5ba call frmt_light_addr_default_v2 ,zero 
+75a4 67e244a7 store 4 ,mem_ble_v2_addr 
+75a5 58007b9d setarg frmt_apl_cb_event_timer 
+75a6 67e1439c store 2 ,mem_cb_event_timer 
+75a7 580079bd setarg frmt_main 
+75a8 67e14394 store 2 ,mem_cb_idle_process 
+75a9 202076cc branch frmt_kscan_init 
+
+frmt_enter_lpm_gpio_config_flag_init_row:
+75aa 473a402e bpatchx patch2e_4 ,mem_patch2e 
+75ab 6f20c55e fetchr loopcnt ,1 ,mem_kscan_row_nums 
+75ac 684a4738 fetcht 4 ,mem_light_lpm_gpio_config_flag 
+75ad d8c04560 arg mem_kscan_row_gpio_pin ,contr 
+
+frmt_enter_lpm_gpio_config_flag_init_loop:
+75ae 473ac02e bpatchx patch2e_5 ,mem_patch2e 
+75af efe08006 ifetch 1 ,contr 
+75b0 98000e00 iforce queue 
+75b1 f9200400 qset1 temp 
+75b2 c20075ae loop frmt_enter_lpm_gpio_config_flag_init_loop 
+75b3 604a4738 storet 4 ,mem_light_lpm_gpio_config_flag 
+75b4 20600000 rtn 
+
+frmt_enter_lpm_gpio_config_flag_init_col:
+75b5 473b402e bpatchx patch2e_6 ,mem_patch2e 
+75b6 6f20c55f fetchr loopcnt ,1 ,mem_kscan_col_nums 
+75b7 684a4738 fetcht 4 ,mem_light_lpm_gpio_config_flag 
+75b8 d8c04568 arg mem_kscan_col_gpio_pin ,contr 
+75b9 202075ae branch frmt_enter_lpm_gpio_config_flag_init_loop 
+
+frmt_light_addr_default_v2:
+75ba 58111213 setarg 0x111213 
+75bb 20600000 rtn 
+
+frmt_light_set_addr_to_0010:
+75bc dfe00010 arg 0x0010 ,pdata 
+75bd 20207598 branch frmt_lightc_init_continue 
+
+frmt_light_set_addr_to_ffe0:
+75be dfe0ffe0 arg 0xffe0 ,pdata 
+75bf 20207598 branch frmt_lightc_init_continue 
+
+frmt_jym_pdu_common:
+75c0 473bc02e bpatchx patch2e_7 ,mem_patch2e 
+75c1 6fe242b0 fetch 4 ,mem_le_lap 
+75c2 67e24525 store 4 ,mem_light_jym_tx_id 
+75c3 704529d1 jam 0xd1 ,mem_light_jym_tx_group 
+75c4 6fe0c52b fetch 1 ,mem_light_jym_tx_count 
+75c5 1fe0fe01 pincrease 1 
+75c6 67e0c52b store 1 ,mem_light_jym_tx_count 
+75c7 d8400000 arg 0 ,temp 
+75c8 d8c04524 arg mem_light_jym_tx_cmd ,contr 
+75c9 df200008 arg 8 ,loopcnt 
+75ca 20407603 call frmt_light_sum_cal_loop 
+75cb 18508400 byteswap temp ,temp 
+75cc 6049452c storet 2 ,mem_light_jym_tx_sum 
+75cd da604523 arg mem_light_jym_tx_len ,regc 
+75ce df20000b arg 11 ,loopcnt 
+75cf 58000000 setarg 0 
+75d0 67e144c6 store 2 ,mem_adv_crc_false_initvalue 
+75d1 20407b57 call key_crc16_ccitt_false1 
+75d2 6fe144c6 fetch 2 ,mem_adv_crc_false_initvalue 
+75d3 67e1452e store 2 ,mem_light_jym_tx_crc 
+75d4 df200017 arg 23 ,loopcnt 
+75d5 d8c044e9 arg mem_light_ky_tx ,contr 
+75d6 d8a0464f arg mem_light_whitening_buffer ,contw 
+75d7 2040740c call memcpy_fast 
+75d8 df20000d arg 13 ,loopcnt 
+75d9 d8c04523 arg mem_light_jym_tx_len ,contr 
+75da d8a04666 arg mem_light_whitening_buffer + 23 ,contw 
+75db 2040740c call memcpy_fast 
+75dc 70467a25 jam 37 ,mem_light_recvd_len 
+75dd 70467b33 jam 51 ,mem_light_whitening_i 
+75de 20407b7b call frmt_light_ble_whitening 
+75df df200025 arg 37 ,loopcnt 
+75e0 d8c0464f arg mem_light_whitening_buffer ,contr 
+75e1 d8a04530 arg mem_light_jym_tx_temp ,contw 
+75e2 2020740c branch memcpy_fast 
+
+frmt_reverse:
+75e3 efe08006 ifetch 1 ,contr 
+75e4 1fedfe00 reverse pdata ,pdata 
+75e5 e7e08005 istore 1 ,contw 
+75e6 c20075e3 loop frmt_reverse 
+75e7 20600000 rtn 
+
+key_pdu_common:
+75e8 473c402f bpatchx patch2f_0 ,mem_patch2f 
+75e9 20407ad5 call frmt_light_flag_set_short_press 
+75ea 20407600 call frmt_light_sum_cal 
+75eb 18508400 byteswap temp ,temp 
+75ec 60494508 storet 2 ,mem_light_ky_tx_sum 
+75ed da604500 arg mem_light_ky_tx_len ,regc 
+75ee df20000a arg 10 ,loopcnt 
+75ef 58000000 setarg 0 
+75f0 67e144c6 store 2 ,mem_adv_crc_false_initvalue 
+75f1 20407b57 call key_crc16_ccitt_false1 
+75f2 6fe144c6 fetch 2 ,mem_adv_crc_false_initvalue 
+75f3 67e1450a store 2 ,mem_light_ky_tx_crc 
+75f4 6fe1450c fetch 2 ,mem_light_ky_tx_count 
+75f5 1ff0fe00 byteswap pdata ,pdata 
+75f6 1fe0fe01 pincrease 1 
+75f7 1ff0fe00 byteswap pdata ,pdata 
+75f8 67e1450c store 2 ,mem_light_ky_tx_count 
+75f9 df200025 arg 37 ,loopcnt 
+75fa d8c044e9 arg mem_light_ky_tx ,contr 
+75fb d8a0464f arg mem_light_whitening_buffer ,contw 
+75fc 2040740c call memcpy_fast 
+75fd 70467a25 jam 37 ,mem_light_recvd_len 
+75fe 70467b33 jam 51 ,mem_light_whitening_i 
+75ff 20207b7b branch frmt_light_ble_whitening 
+
+frmt_light_sum_cal:
+7600 d8400000 arg 0 ,temp 
+7601 d8c04501 arg mem_light_ky_tx_code1 ,contr 
+7602 df200007 arg 7 ,loopcnt 
+
+frmt_light_sum_cal_loop:
+7603 efe08006 ifetch 1 ,contr 
+7604 98408400 iadd temp ,temp 
+7605 c2007603 loop frmt_light_sum_cal_loop 
+7606 20600000 rtn 
+
+key_whitening_i_get:
+7607 da400033 arg 51 ,regb 
+7608 20600000 rtn 
+
+frmt_light_group_num_set:
+7609 6fe0c50e fetch 1 ,mem_light_group_num 
+760a 67e0c505 store 1 ,mem_light_ky_tx_remoter_id + 3 
+760b 20600000 rtn 
+
+frmt_light_timing_off_ky:
+760c 204079ab call frmt_light_timing_30s_v2 
+760d 70452468 jam light_jym_cmd_timing_off ,mem_light_jym_tx_cmd 
+760e 70452a46 jam light_jym_data_timing_off ,mem_light_jym_tx_data 
+760f 204075c0 call frmt_jym_pdu_common 
+7610 70450168 jam light_timing_code1 ,mem_light_ky_tx_code1 
+7611 70450746 jam 0x46 ,mem_light_ky_tx_code2 
+7612 202075e8 branch key_pdu_common 
+
+key_light_aux_lamp_on_and_off_ky:
+7613 7045246e jam light_jym_cmd_aux_lamp ,mem_light_jym_tx_cmd 
+7614 70452af0 jam light_jym_data_aux_lamp ,mem_light_jym_tx_data 
+7615 204075c0 call frmt_jym_pdu_common 
+7616 7045016e jam light_aux_lamp_on_and_off_code1 ,mem_light_ky_tx_code1 
+7617 704507f0 jam 0xf0 ,mem_light_ky_tx_code2 
+7618 202075e8 branch key_pdu_common 
+
+key_light_to_y:
+7619 2040792a call frmt_light_to_y_v2 
+761a 70452469 jam light_jym_cmd_to_y ,mem_light_jym_tx_cmd 
+761b 70452a00 jam light_jym_data_to_y ,mem_light_jym_tx_data 
+761c 204075c0 call frmt_jym_pdu_common 
+761d 70450169 jam light_to_y_code1 ,mem_light_ky_tx_code1 
+761e 70450700 jam 0 ,mem_light_ky_tx_code2 
+761f 202075e8 branch key_pdu_common 
+
+key_light_to_w:
+7620 2040792c call frmt_light_to_w_v2 
+7621 7045246a jam light_jym_cmd_to_w ,mem_light_jym_tx_cmd 
+7622 70452a00 jam light_jym_data_to_w ,mem_light_jym_tx_data 
+7623 204075c0 call frmt_jym_pdu_common 
+7624 7045016a jam light_to_w_code1 ,mem_light_ky_tx_code1 
+7625 70450700 jam 0 ,mem_light_ky_tx_code2 
+7626 202075e8 branch key_pdu_common 
+
+key_light_darken:
+7627 2040792e call frmt_light_darken_v2 
+7628 70452465 jam light_jym_cmd_darken ,mem_light_jym_tx_cmd 
+7629 70452a00 jam light_jym_data_darken ,mem_light_jym_tx_data 
+762a 204075c0 call frmt_jym_pdu_common 
+762b 70450165 jam light_darken_code1 ,mem_light_ky_tx_code1 
+762c 70450700 jam 0 ,mem_light_ky_tx_code2 
+762d 202075e8 branch key_pdu_common 
+
+key_light_lighten:
+762e 20407930 call frmt_light_lighten_v2 
+762f 70452466 jam light_jym_cmd_lighten ,mem_light_jym_tx_cmd 
+7630 70452a00 jam light_jym_data_lighten ,mem_light_jym_tx_data 
+7631 204075c0 call frmt_jym_pdu_common 
+7632 70450166 jam light_lighten_code1 ,mem_light_ky_tx_code1 
+7633 70450700 jam 0 ,mem_light_ky_tx_code2 
+7634 202075e8 branch key_pdu_common 
+
+key_light_group1_off:
+7635 70452460 jam light_jym_cmd_off ,mem_light_jym_tx_cmd 
+7636 70452a00 jam light_jym_data_off ,mem_light_jym_tx_data 
+7637 704529d2 jam 0xd2 ,mem_light_jym_tx_group 
+7638 204075c0 call frmt_jym_pdu_common 
+7639 70450160 jam light_off_code1 ,mem_light_ky_tx_code1 
+763a 704507d1 jam light_off_code2 ,mem_light_ky_tx_code2 
+763b 704506d2 jam 0xd2 ,mem_light_ky_tx_group_num 
+763c 202075e8 branch key_pdu_common 
+
+key_light_group2_off:
+763d 70452460 jam light_jym_cmd_off ,mem_light_jym_tx_cmd 
+763e 70452a00 jam light_jym_data_off ,mem_light_jym_tx_data 
+763f 704529d4 jam 0xd4 ,mem_light_jym_tx_group 
+7640 204075c0 call frmt_jym_pdu_common 
+7641 70450160 jam light_off_code1 ,mem_light_ky_tx_code1 
+7642 704507d1 jam light_off_code2 ,mem_light_ky_tx_code2 
+7643 704506d4 jam 0xd4 ,mem_light_ky_tx_group_num 
+7644 202075e8 branch key_pdu_common 
+
+key_light_group3_off:
+7645 70452460 jam light_jym_cmd_off ,mem_light_jym_tx_cmd 
+7646 70452a00 jam light_jym_data_off ,mem_light_jym_tx_data 
+7647 70452903 jam 3 ,mem_light_jym_tx_group 
+7648 204075c0 call frmt_jym_pdu_common 
+7649 70450160 jam light_off_code1 ,mem_light_ky_tx_code1 
+764a 580000d1 setarg light_off_code2 
+764b 67e14507 store 2 ,mem_light_ky_tx_code2 
+764c 70450e03 jam 3 ,mem_light_group_num 
+764d 202075e8 branch key_pdu_common 
+
+key_light_group4_off:
+764e 70452460 jam light_jym_cmd_off ,mem_light_jym_tx_cmd 
+764f 70452a00 jam light_jym_data_off ,mem_light_jym_tx_data 
+7650 70452904 jam 4 ,mem_light_jym_tx_group 
+7651 204075c0 call frmt_jym_pdu_common 
+7652 70450160 jam light_off_code1 ,mem_light_ky_tx_code1 
+7653 580000d1 setarg light_off_code2 
+7654 67e14507 store 2 ,mem_light_ky_tx_code2 
+7655 70450e04 jam 4 ,mem_light_group_num 
+7656 202075e8 branch key_pdu_common 
+
+key_light_group1_on:
+7657 7045246f jam light_jym_cmd_on ,mem_light_jym_tx_cmd 
+7658 70452a00 jam light_jym_data_on ,mem_light_jym_tx_data 
+7659 704529d2 jam 0xd2 ,mem_light_jym_tx_group 
+765a 204075c0 call frmt_jym_pdu_common 
+765b 7045016f jam light_on_code1 ,mem_light_ky_tx_code1 
+765c 704507d1 jam light_on_code2 ,mem_light_ky_tx_code2 
+765d 704506d2 jam 0xd2 ,mem_light_ky_tx_group_num 
+765e 202075e8 branch key_pdu_common 
+
+key_light_group2_on:
+765f 7045246f jam light_jym_cmd_on ,mem_light_jym_tx_cmd 
+7660 70452a00 jam light_jym_data_on ,mem_light_jym_tx_data 
+7661 704529d4 jam 0xd4 ,mem_light_jym_tx_group 
+7662 204075c0 call frmt_jym_pdu_common 
+7663 7045016f jam light_on_code1 ,mem_light_ky_tx_code1 
+7664 704507d1 jam light_on_code2 ,mem_light_ky_tx_code2 
+7665 704506d4 jam 0xd4 ,mem_light_ky_tx_group_num 
+7666 202075e8 branch key_pdu_common 
+
+key_light_group3_on:
+7667 7045246f jam light_jym_cmd_on ,mem_light_jym_tx_cmd 
+7668 70452a00 jam light_jym_data_on ,mem_light_jym_tx_data 
+7669 70452903 jam 3 ,mem_light_jym_tx_group 
+766a 204075c0 call frmt_jym_pdu_common 
+766b 7045016f jam light_on_code1 ,mem_light_ky_tx_code1 
+766c 580000d1 setarg light_on_code2 
+766d 67e14507 store 2 ,mem_light_ky_tx_code2 
+766e 70450e03 jam 3 ,mem_light_group_num 
+766f 202075e8 branch key_pdu_common 
+
+key_light_group4_on:
+7670 7045246f jam light_jym_cmd_on ,mem_light_jym_tx_cmd 
+7671 70452a00 jam light_jym_data_on ,mem_light_jym_tx_data 
+7672 70452904 jam 4 ,mem_light_jym_tx_group 
+7673 204075c0 call frmt_jym_pdu_common 
+7674 7045016f jam light_on_code1 ,mem_light_ky_tx_code1 
+7675 580000d1 setarg light_on_code2 
+7676 67e14507 store 2 ,mem_light_ky_tx_code2 
+7677 70450e04 jam 4 ,mem_light_group_num 
+7678 202075e8 branch key_pdu_common 
+
+key_light_pairing_group1:
+7679 704529d2 jam 0xd2 ,mem_light_jym_tx_group 
+767a 704506d2 jam 0xd2 ,mem_light_ky_tx_group_num 
+767b 2020768f branch key_light_master_pairing_process 
+
+key_light_pairing_group2:
+767c 704529d4 jam 0xd4 ,mem_light_jym_tx_group 
+767d 704506d4 jam 0xd4 ,mem_light_ky_tx_group_num 
+767e 2020768f branch key_light_master_pairing_process 
+
+key_light_pairing_group3:
+767f 70452903 jam 3 ,mem_light_jym_tx_group 
+7680 70450603 jam 3 ,mem_light_ky_tx_group_num 
+7681 2020768f branch key_light_master_pairing_process 
+
+key_light_pairing_group4:
+7682 70452904 jam 4 ,mem_light_jym_tx_group 
+7683 70450604 jam 4 ,mem_light_ky_tx_group_num 
+7684 2020768f branch key_light_master_pairing_process 
+
+key_light_clear_code:
+7685 2040794f call frmt_light_clear_code_v2 
+7686 7045246f jam light_jym_cmd_clear ,mem_light_jym_tx_cmd 
+7687 70452aaa jam light_jym_data_clear ,mem_light_jym_tx_data 
+7688 204075c0 call frmt_jym_pdu_common 
+7689 7045016f jam light_clear_code_code1 ,mem_light_ky_tx_code1 
+768a 580000aa setarg light_clear_code_code2 
+768b 67e14507 store 2 ,mem_light_ky_tx_code2 
+768c 202075e8 branch key_pdu_common 
+
+key_light_master_pairing:
+768d 704506d1 jam 0xd1 ,mem_light_ky_tx_group_num 
+768e 704529d1 jam 0xd1 ,mem_light_jym_tx_group 
+
+key_light_master_pairing_process:
+768f 2040794a call frmt_light_master_pairing_v2 
+7690 7045246f jam light_jym_cmd_pairing ,mem_light_jym_tx_cmd 
+7691 70452a55 jam light_jym_data_pairing ,mem_light_jym_tx_data 
+7692 204075c0 call frmt_jym_pdu_common 
+7693 7045016f jam light_pairing_code1 ,mem_light_ky_tx_code1 
+7694 70450755 jam light_pairing_code2 ,mem_light_ky_tx_code2 
+7695 70450e00 jam 0 ,mem_light_group_num 
+7696 20407609 call frmt_light_group_num_set 
+7697 202075e8 branch key_pdu_common 
+
+key_light_night_light:
+7698 20407948 call frmt_light_night_light_v2 
+7699 7045246e jam light_jym_cmd_night_light ,mem_light_jym_tx_cmd 
+769a 70452a00 jam light_jym_data_night_light ,mem_light_jym_tx_data 
+769b 204075c0 call frmt_jym_pdu_common 
+769c 704501a1 jam light_night_light_code1 ,mem_light_ky_tx_code1 
+769d 70450700 jam 0 ,mem_light_ky_tx_code2 
+769e 202075e8 branch key_pdu_common 
+
+key_light_color_switch:
+769f 6fe0c597 fetch 1 ,mem_light_color_switch_cnt 
+76a0 c00076a4 beq 0 ,key_light_color_switch_wy 
+76a1 c000f6ac beq 1 ,key_light_color_switch_w 
+76a2 c00176b4 beq 2 ,key_light_color_switch_y 
+76a3 20600000 rtn 
+
+key_light_color_switch_wy:
+76a4 20407959 call frmt_light_color_switch_wy_v2 
+76a5 70459701 jam 1 ,mem_light_color_switch_cnt 
+76a6 7045246d jam light_jym_cmd_wy_lamp ,mem_light_jym_tx_cmd 
+76a7 70452a01 jam light_jym_data_wy_lamp ,mem_light_jym_tx_data 
+76a8 204075c0 call frmt_jym_pdu_common 
+76a9 7045016d jam light_color_switch_code1 ,mem_light_ky_tx_code1 
+76aa 70450701 jam light_color_switch_wy_code2 ,mem_light_ky_tx_code2 
+76ab 202075e8 branch key_pdu_common 
+
+key_light_color_switch_w:
+76ac 20407960 call frmt_light_color_switch_w_v2 
+76ad 70459702 jam 2 ,mem_light_color_switch_cnt 
+76ae 7045246d jam light_jym_cmd_white_lamp ,mem_light_jym_tx_cmd 
+76af 70452a02 jam light_jym_data_white_lamp ,mem_light_jym_tx_data 
+76b0 204075c0 call frmt_jym_pdu_common 
+76b1 7045016d jam light_color_switch_code1 ,mem_light_ky_tx_code1 
+76b2 70450702 jam light_color_switch_w_code2 ,mem_light_ky_tx_code2 
+76b3 202075e8 branch key_pdu_common 
+
+key_light_color_switch_y:
+76b4 20407966 call frmt_light_color_switch_y_v2 
+76b5 70459700 jam 0 ,mem_light_color_switch_cnt 
+76b6 7045246d jam light_jym_cmd_yellow_lamp ,mem_light_jym_tx_cmd 
+76b7 70452a03 jam light_jym_data_yellow_lamp ,mem_light_jym_tx_data 
+76b8 204075c0 call frmt_jym_pdu_common 
+76b9 7045016d jam light_color_switch_code1 ,mem_light_ky_tx_code1 
+76ba 70450703 jam light_color_switch_y_code2 ,mem_light_ky_tx_code2 
+76bb 202075e8 branch key_pdu_common 
+
+key_light_master_off:
+76bc 70452460 jam light_jym_cmd_off ,mem_light_jym_tx_cmd 
+76bd 70452a00 jam light_jym_data_off ,mem_light_jym_tx_data 
+76be 704529d1 jam 0xd1 ,mem_light_jym_tx_group 
+76bf 204075c0 call frmt_jym_pdu_common 
+76c0 70450160 jam light_off_code1 ,mem_light_ky_tx_code1 
+76c1 70450700 jam 0 ,mem_light_ky_tx_code2 
+76c2 704506d1 jam 0xd1 ,mem_light_ky_tx_group_num 
+76c3 202075e8 branch key_pdu_common 
+
+key_light_master_on:
+76c4 7045246f jam light_jym_cmd_on ,mem_light_jym_tx_cmd 
+76c5 70452a00 jam light_jym_data_on ,mem_light_jym_tx_data 
+76c6 704529d1 jam 0xd1 ,mem_light_jym_tx_group 
+76c7 204075c0 call frmt_jym_pdu_common 
+76c8 7045016f jam light_on_code1 ,mem_light_ky_tx_code1 
+76c9 70450700 jam 0 ,mem_light_ky_tx_code2 
+76ca 704506d1 jam 0xd1 ,mem_light_ky_tx_group_num 
+76cb 202075e8 branch key_pdu_common 
+
+frmt_kscan_init:
+76cc 473cc02f bpatchx patch2f_1 ,mem_patch2f 
+76cd 6fe14579 fetch 2 ,mem_kscan_analysis_interval_timeout 
+76ce 247a0000 nrtn blank 
+76cf 204076da call frmt_kscan_col_state_init 
+
+frmt_kscan_row_state_init:
+76d0 473d402f bpatchx patch2f_2 ,mem_patch2f 
+76d1 da204560 arg mem_kscan_row_gpio_pin ,rega 
+76d2 6fe0c55e fetch 1 ,mem_kscan_row_nums 
+76d3 98007200 iforce loopcnt 
+
+frmt_kscan_input_pull_up_loop:
+76d4 e8408011 ifetcht 1 ,rega 
+76d5 20406b7c call gpio_config_input 
+76d6 1a20a201 increase 1 ,rega 
+76d7 c20076d4 loop frmt_kscan_input_pull_up_loop 
+76d8 20002ee0 nop 12000 
+76d9 20600000 rtn 
+
+frmt_kscan_recover_col_output_low:
+
+frmt_kscan_col_state_init:
+76da da204568 arg mem_kscan_col_gpio_pin ,rega 
+76db 6fe0c55f fetch 1 ,mem_kscan_col_nums 
+76dc 98007200 iforce loopcnt 
+
+frmt_kscan_output_low_loop:
+76dd e8408011 ifetcht 1 ,rega 
+76de 18418480 or temp ,0x80 ,temp 
+76df 2040773e call gpio_config_output_patch 
+76e0 1a20a201 increase 1 ,rega 
+76e1 c20076dd loop frmt_kscan_output_low_loop 
+76e2 20002ee0 nop 12000 
+76e3 20600000 rtn 
+
+frmt_kscan:
+76e4 6fe14579 fetch 2 ,mem_kscan_analysis_interval_timeout 
+76e5 247a0000 nrtn blank 
+76e6 70457200 jam 0 ,mem_keypress_analysis_flag 
+76e7 58000000 setarg 0 
+76e8 67e44556 store 8 ,mem_kscan_record_keypress 
+
+frmt_kscan_get_row_state:
+76e9 70457000 jam 0 ,mem_kscan_row_scanned 
+76ea da604560 arg mem_kscan_row_gpio_pin ,regc 
+
+frmt_kscan_get_row_state_loop:
+76eb e8408013 ifetcht 1 ,regc 
+76ec 20406b85 call gpio_get_bit 
+76ed 2040f706 call frmt_kscan_avoid_shake_and_record_key ,true 
+76ee e8408013 ifetcht 1 ,regc 
+76ef 20406b7c call gpio_config_input 
+76f0 204076da call frmt_kscan_recover_col_output_low 
+76f1 1a60a601 increase 1 ,regc 
+76f2 6fe0c570 fetch 1 ,mem_kscan_row_scanned 
+76f3 1fe0fe01 pincrease 1 
+76f4 67e0c570 store 1 ,mem_kscan_row_scanned 
+76f5 6848c55e fetcht 1 ,mem_kscan_row_nums 
+76f6 98467c00 isub temp ,null 
+76f7 242176eb nbranch frmt_kscan_get_row_state_loop ,positive 
+76f8 20600000 rtn 
+
+frmt_kscan_press_gnd_related:
+76f9 473dc02f bpatchx patch2f_3 ,mem_patch2f 
+76fa 6fe0c570 fetch 1 ,mem_kscan_row_scanned 
+76fb 1fe0fe01 pincrease 1 
+76fc 6848c55f fetcht 1 ,mem_kscan_col_nums 
+76fd 18408401 increase 1 ,temp 
+76fe 984ffe00 imul32 temp ,pdata 
+76ff 98000e00 iforce queue 
+7700 6fe44556 fetch 8 ,mem_kscan_record_keypress 
+7701 f9207e00 qset1 pdata 
+7702 67e44556 store 8 ,mem_kscan_record_keypress 
+7703 20600000 rtn 
+
+frmt_kscan_set_default_avoid_shake_time:
+7704 df200001 arg 1 ,loopcnt 
+7705 20600000 rtn 
+
+frmt_kscan_avoid_shake_and_record_key:
+7706 473e402f bpatchx patch2f_4 ,mem_patch2f 
+7707 6fe14573 fetch 2 ,mem_kscan_avoid_shake_delay_time 
+7708 98007200 iforce loopcnt 
+7709 205a7704 call frmt_kscan_set_default_avoid_shake_time ,blank 
+770a 204073d9 call delay_ms_wait 
+770b e8408013 ifetcht 1 ,regc 
+770c 20406b85 call gpio_get_bit 
+770d 24608000 nrtn true 
+770e 20002ee0 nop 12000 
+770f e8408013 ifetcht 1 ,regc 
+7710 20406b85 call gpio_get_bit 
+7711 24608000 nrtn true 
+7712 20002ee0 nop 12000 
+7713 e8408013 ifetcht 1 ,regc 
+7714 20406b85 call gpio_get_bit 
+7715 24608000 nrtn true 
+7716 20407739 call frmt_kscan_all_col_pull_up 
+7717 e8408013 ifetcht 1 ,regc 
+7718 20406b85 call gpio_get_bit 
+7719 2020f6f9 branch frmt_kscan_press_gnd_related ,true 
+
+frmt_kscan_check_col_elec_level:
+771a 473ec02f bpatchx patch2f_5 ,mem_patch2f 
+771b e8408013 ifetcht 1 ,regc 
+771c 18418480 or temp ,0x80 ,temp 
+771d 2040773e call gpio_config_output_patch 
+771e 70457100 jam 0 ,mem_kscan_col_scanned 
+771f da204568 arg mem_kscan_col_gpio_pin ,rega 
+
+frmt_kscan_check_col_elec_level_loop:
+7720 e8408011 ifetcht 1 ,rega 
+7721 20406b85 call gpio_get_bit 
+7722 2040f72b call frmt_kscan_record_keypress ,true 
+7723 1a20a201 increase 1 ,rega 
+7724 6fe0c571 fetch 1 ,mem_kscan_col_scanned 
+7725 1fe0fe01 pincrease 1 
+7726 67e0c571 store 1 ,mem_kscan_col_scanned 
+7727 6848c55f fetcht 1 ,mem_kscan_col_nums 
+7728 98467c00 isub temp ,null 
+7729 24217720 nbranch frmt_kscan_check_col_elec_level_loop ,positive 
+772a 20600000 rtn 
+
+frmt_kscan_record_keypress:
+772b 473f402f bpatchx patch2f_6 ,mem_patch2f 
+772c 6fe0c570 fetch 1 ,mem_kscan_row_scanned 
+772d 6848c55f fetcht 1 ,mem_kscan_col_nums 
+772e 18408401 increase 1 ,temp 
+772f 984ffe00 imul32 temp ,pdata 
+7730 6848c571 fetcht 1 ,mem_kscan_col_scanned 
+7731 18408401 increase 1 ,temp 
+7732 9840fe00 iadd temp ,pdata 
+7733 98000e00 iforce queue 
+7734 7820fc00 enable true 
+7735 6fe44556 fetch 8 ,mem_kscan_record_keypress 
+7736 f920fe00 qsetflag true ,pdata 
+7737 67e44556 store 8 ,mem_kscan_record_keypress 
+7738 20600000 rtn 
+
+frmt_kscan_all_col_pull_up:
+7739 473fc02f bpatchx patch2f_7 ,mem_patch2f 
+773a da204568 arg mem_kscan_col_gpio_pin ,rega 
+773b 6fe0c55f fetch 1 ,mem_kscan_col_nums 
+773c 98007200 iforce loopcnt 
+773d 202076d4 branch frmt_kscan_input_pull_up_loop 
+
+gpio_config_output_patch:
+773e 79400407 setflip 7 ,temp 
+773f 20206b96 branch gpio_config_output 
+
+frmt_light_lighten_short_press:
+7740 6fe0c724 fetch 1 ,mem_light_color_and_lgtness_long_press_adv_enable 
+7741 c000f770 beq 1 ,frmt_light_lighten 
+7742 704706a0 jam light_lighten_release_adv_flag ,mem_light_release_adv_flag 
+7743 2020774f branch frmt_light_light_color_and_lightness_change_common 
+
+frmt_light_darken_short_press:
+7744 6fe0c724 fetch 1 ,mem_light_color_and_lgtness_long_press_adv_enable 
+7745 c000f767 beq 1 ,frmt_light_darken 
+7746 704706a1 jam light_darken_release_adv_flag ,mem_light_release_adv_flag 
+7747 2020774f branch frmt_light_light_color_and_lightness_change_common 
+
+frmt_light_to_w_short_press:
+7748 6fe0c724 fetch 1 ,mem_light_color_and_lgtness_long_press_adv_enable 
+7749 c000f75e beq 1 ,frmt_light_to_w 
+774a 704706a2 jam light_to_w_release_adv_flag ,mem_light_release_adv_flag 
+774b 2020774f branch frmt_light_light_color_and_lightness_change_common 
+
+frmt_light_to_y_short_press:
+774c 6fe0c724 fetch 1 ,mem_light_color_and_lgtness_long_press_adv_enable 
+774d c000f755 beq 1 ,frmt_light_to_y 
+774e 704706a3 jam light_to_y_release_adv_flag ,mem_light_release_adv_flag 
+
+frmt_light_light_color_and_lightness_change_common:
+774f 47404030 bpatchx patch30_0 ,mem_patch30 
+7750 6fe14722 fetch 2 ,mem_light_short_keypress_timeout 
+7751 247a0000 nrtn blank 
+7752 70435f00 jam 0 ,mem_le_adv_enable 
+7753 70472205 jam short_press_timeout ,mem_light_short_keypress_timeout 
+7754 20600000 rtn 
+
+frmt_light_to_y:
+7755 2040792a call frmt_light_to_y_v2 
+7756 6fe0c721 fetch 1 ,mem_special_agreemeet_enable 
+7757 c000f570 beq 1 ,gem_light_to_y 
+7758 c0017619 beq 2 ,key_light_to_y 
+7759 70470600 jam 0 ,mem_light_release_adv_flag 
+775a 70458421 jam light_cmd_ftd_color_state_change ,mem_ftd_adv_raw 
+775b 70458b18 jam 0x18 ,mem_ftd_adv_raw_reserved 
+775c 20407779 call frmt_light_set_pdu_common_short_press_with_3bytes_data_reset 
+775d 20207ae8 branch frmt_adv_rear_6bytes_and_whitening 
+
+frmt_light_to_w:
+775e 2040792c call frmt_light_to_w_v2 
+775f 6fe0c721 fetch 1 ,mem_special_agreemeet_enable 
+7760 c000f575 beq 1 ,gem_light_to_w 
+7761 c0017620 beq 2 ,key_light_to_w 
+7762 70470600 jam 0 ,mem_light_release_adv_flag 
+7763 70458421 jam light_cmd_ftd_color_state_change ,mem_ftd_adv_raw 
+7764 70458b24 jam 0x24 ,mem_ftd_adv_raw_reserved 
+7765 20407779 call frmt_light_set_pdu_common_short_press_with_3bytes_data_reset 
+7766 20207ae8 branch frmt_adv_rear_6bytes_and_whitening 
+
+frmt_light_darken:
+7767 2040792e call frmt_light_darken_v2 
+7768 6fe0c721 fetch 1 ,mem_special_agreemeet_enable 
+7769 c000f57a beq 1 ,gem_light_darken 
+776a c0017627 beq 2 ,key_light_darken 
+776b 70470600 jam 0 ,mem_light_release_adv_flag 
+776c 70458421 jam light_cmd_ftd_color_state_change ,mem_ftd_adv_raw 
+776d 70458b28 jam 0x28 ,mem_ftd_adv_raw_reserved 
+776e 20407779 call frmt_light_set_pdu_common_short_press_with_3bytes_data_reset 
+776f 20207ae8 branch frmt_adv_rear_6bytes_and_whitening 
+
+frmt_light_lighten:
+7770 20407930 call frmt_light_lighten_v2 
+7771 6fe0c721 fetch 1 ,mem_special_agreemeet_enable 
+7772 c000f57f beq 1 ,gem_light_lighten 
+7773 c001762e beq 2 ,key_light_lighten 
+7774 70470600 jam 0 ,mem_light_release_adv_flag 
+7775 70458421 jam light_cmd_ftd_color_state_change ,mem_ftd_adv_raw 
+7776 70458b14 jam 0x14 ,mem_ftd_adv_raw_reserved 
+7777 20407779 call frmt_light_set_pdu_common_short_press_with_3bytes_data_reset 
+7778 20207ae8 branch frmt_adv_rear_6bytes_and_whitening 
+
+frmt_light_set_pdu_common_short_press_with_3bytes_data_reset:
+7779 4740c030 bpatchx patch30_1 ,mem_patch30 
+777a 58000000 setarg 0 
+777b 67e1c587 store 3 ,mem_ftd_adv_raw_data 
+777c 20207ac4 branch frmt_light_set_pdu_common_short_press 
+
+frmt_light_release_set1_and_long_press_set1:
+777d 70459601 jam 1 ,mem_light_num_of_long_press 
+777e 2040778d call frmt_light_long_press_flag_reset 
+777f 70470601 jam 1 ,mem_light_release_adv_flag 
+7780 20600000 rtn 
+
+frmt_light_release_set2_and_long_press_set2:
+7781 70459602 jam 2 ,mem_light_num_of_long_press 
+7782 2040778d call frmt_light_long_press_flag_reset 
+7783 70470602 jam 2 ,mem_light_release_adv_flag 
+7784 20600000 rtn 
+
+frmt_light_release_set3_and_long_press_set3:
+7785 70459603 jam 3 ,mem_light_num_of_long_press 
+7786 2040778d call frmt_light_long_press_flag_reset 
+7787 70470603 jam 3 ,mem_light_release_adv_flag 
+7788 20600000 rtn 
+
+frmt_light_release_set4_and_long_press_set4:
+7789 70459604 jam 4 ,mem_light_num_of_long_press 
+778a 2040778d call frmt_light_long_press_flag_reset 
+778b 70470604 jam 4 ,mem_light_release_adv_flag 
+778c 20600000 rtn 
+
+frmt_light_long_press_flag_reset:
+778d 47414030 bpatchx patch30_2 ,mem_patch30 
+778e 6fe14594 fetch 2 ,mem_long_press_timeout 
+778f 247a0000 nrtn blank 
+7790 6fe1476e fetch 2 ,mem_claer_code_time 
+7791 67e14594 store 2 ,mem_long_press_timeout 
+7792 1fe0fe01 pincrease 1 
+7793 67e146a6 store 2 ,mem_light_lpm_enable_timeout 
+7794 6fe0c721 fetch 1 ,mem_special_agreemeet_enable 
+7795 1fe67c01 sub pdata ,1 ,null 
+7796 2022f511 branch gem_long_keypress_time ,zero 
+7797 20600000 rtn 
+
+frmt_light_night_light:
+7798 20407948 call frmt_light_night_light_v2 
+7799 70458423 jam light_cmd_night_light ,mem_ftd_adv_raw 
+779a 20207ac2 branch frmt_adv_rear_6bytes_and_whitening_and_set_pdu_common_short_press 
+
+frmt_light_master_pairing:
+779b 70458100 jam 0 ,mem_groups_num 
+779c 7044ab00 jam 0 ,mem_ble_v2_group_index 
+
+frmt_light_pairing_process:
+779d 58000001 setarg key_press_led_on_time 
+779e 67e146a9 store 2 ,mem_indicator_led_turn_on_timeout 
+779f 7046a801 jam 1 ,mem_indicator_turn_on_enable 
+
+frmt_light_pairing_process_without_led_flag_set:
+77a0 4741c030 bpatchx patch30_3 ,mem_patch30 
+77a1 2040794a call frmt_light_master_pairing_v2 
+77a2 70435f01 jam 1 ,mem_le_adv_enable 
+77a3 6fe1476c fetch 2 ,mem_light_adv_time 
+77a4 1febfe00 lshift2 pdata ,pdata 
+77a5 67e145a2 store 2 ,mem_ble_light_adv_timeout 
+77a6 1fe0fe01 pincrease 1 
+77a7 67e146a6 store 2 ,mem_light_lpm_enable_timeout 
+77a8 6fe0c57f fetch 1 ,mem_light_manufacture_id 
+77a9 67e0c58b store 1 ,mem_ftd_adv_raw_reserved 
+77aa 70458428 jam light_cmd_pairing_code ,mem_ftd_adv_raw 
+77ab 6fe0c58a fetch 1 ,mem_ftd_adv_raw_packet_num 
+77ac 1fe0fe01 pincrease 1 
+77ad 67e0c58a store 1 ,mem_ftd_adv_raw_packet_num 
+77ae 70458981 jam 0x81 ,mem_ftd_adv_raw_data + 2 
+77af 6fe0c4a6 fetch 1 ,mem_ble_v2_maintype 
+77b0 1fe67c03 sub pdata ,3 ,null 
+77b1 2042fad1 call frmt_fan_lamp ,zero 
+77b2 6fe0c4a6 fetch 1 ,mem_ble_v2_maintype 
+77b3 1fe67c05 sub pdata ,5 ,null 
+77b4 2042fad3 call frmt_solar_lamp ,zero 
+77b5 204077b7 call frmt_light_groups_pairing_address_set_set 
+77b6 20207ae8 branch frmt_adv_rear_6bytes_and_whitening 
+
+frmt_light_groups_pairing_address_set_set:
+77b7 6fe1457b fetch 2 ,mem_ftd_adv_raw_device_add_temp 
+77b8 d840f0ff arg 0xf0ff ,temp 
+77b9 98417e00 iand temp ,pdata 
+77ba 67e14587 store 2 ,mem_ftd_adv_raw_data 
+77bb 20207ade branch frmt_light_groups_address_set 
+
+frmt_light_clear_code:
+77bc 47424030 bpatchx patch30_4 ,mem_patch30 
+77bd 2040794f call frmt_light_clear_code_v2 
+77be 7046a801 jam 1 ,mem_indicator_turn_on_enable 
+77bf 70435f01 jam 1 ,mem_le_adv_enable 
+77c0 58000001 setarg key_press_led_on_time 
+77c1 1febfe00 lshift2 pdata ,pdata 
+77c2 67e146a9 store 2 ,mem_indicator_led_turn_on_timeout 
+77c3 6fe1476c fetch 2 ,mem_light_adv_time 
+77c4 1febfe00 lshift2 pdata ,pdata 
+77c5 67e145a2 store 2 ,mem_ble_light_adv_timeout 
+77c6 1fe0fe01 pincrease 1 
+77c7 67e146a6 store 2 ,mem_light_lpm_enable_timeout 
+77c8 70458445 jam light_cmd_clear_code ,mem_ftd_adv_raw 
+77c9 5801feff setarg light_ftd_clear_code_addr 
+77ca 67e1c585 store 3 ,mem_ftd_adv_raw_device_add 
+77cb 6fe0c58a fetch 1 ,mem_ftd_adv_raw_packet_num 
+77cc 1fe0fe01 pincrease 1 
+77cd 67e0c58a store 1 ,mem_ftd_adv_raw_packet_num 
+77ce 6fe0c4a6 fetch 1 ,mem_ble_v2_maintype 
+77cf 1fe67c03 sub pdata ,3 ,null 
+77d0 2042fad1 call frmt_fan_lamp ,zero 
+77d1 6fe0c4a6 fetch 1 ,mem_ble_v2_maintype 
+77d2 1fe67c05 sub pdata ,5 ,null 
+77d3 2042fad3 call frmt_solar_lamp ,zero 
+77d4 20207ae8 branch frmt_adv_rear_6bytes_and_whitening 
+
+frmt_light_master_on_and_long_press_set0:
+77d5 70459600 jam 0 ,mem_light_num_of_long_press 
+77d6 2040778d call frmt_light_long_press_flag_reset 
+
+frmt_light_master_on:
+77d7 70458100 jam 0 ,mem_groups_num 
+77d8 20407951 call frmt_light_master_on_v2 
+77d9 6fe0c721 fetch 1 ,mem_special_agreemeet_enable 
+77da c000f522 beq 1 ,gem_light_master_on 
+77db c00176c4 beq 2 ,key_light_master_on 
+
+frmt_light_on_without_group_set:
+77dc 7046ab01 jam 1 ,mem_light_on_and_off_flag 
+77dd 70458410 jam light_cmd_turn_on ,mem_ftd_adv_raw 
+77de 20407ade call frmt_light_groups_address_set 
+77df 20207ac2 branch frmt_adv_rear_6bytes_and_whitening_and_set_pdu_common_short_press 
+
+frmt_light_master_off_and_long_press_set0:
+77e0 70459600 jam 0 ,mem_light_num_of_long_press 
+77e1 2040778d call frmt_light_long_press_flag_reset 
+77e2 202077e5 branch frmt_light_master_off 
+
+frmt_light_master_on_and_off:
+77e3 6fe0c6ab fetch 1 ,mem_light_on_and_off_flag 
+77e4 203a77d7 branch frmt_light_master_on ,blank 
+
+frmt_light_master_off:
+77e5 20407954 call frmt_light_master_off_v2 
+77e6 70458100 jam 0 ,mem_groups_num 
+77e7 6fe0c721 fetch 1 ,mem_special_agreemeet_enable 
+77e8 c000f526 beq 1 ,gem_light_master_off 
+77e9 c00176bc beq 2 ,key_light_master_off 
+
+frmt_light_off_without_group_set:
+77ea 7046ab00 jam 0 ,mem_light_on_and_off_flag 
+77eb 70458411 jam light_cmd_turn_off ,mem_ftd_adv_raw 
+77ec 20407ade call frmt_light_groups_address_set 
+77ed 20207ac2 branch frmt_adv_rear_6bytes_and_whitening_and_set_pdu_common_short_press 
+
+frmt_light_on_and_off_1opcode_and_long_press_set0:
+77ee 70459600 jam 0 ,mem_light_num_of_long_press 
+77ef 2040778d call frmt_light_long_press_flag_reset 
+
+frmt_light_on_and_off_1opcode:
+77f0 20407957 call frmt_light_on_and_off_1opcode_v2 
+77f1 70458409 jam light_cmd_turn_on_and_off ,mem_ftd_adv_raw 
+77f2 20207ac2 branch frmt_adv_rear_6bytes_and_whitening_and_set_pdu_common_short_press 
+
+frmt_light_color_switch_wy_only_payload_set:
+77f3 70458421 jam light_cmd_color_swtich ,mem_ftd_adv_raw 
+77f4 704587ff jam light_data_part_ff ,mem_ftd_adv_raw_data 
+77f5 704588ff jam light_data_part_ff ,mem_ftd_adv_raw_data + 1 
+77f6 70458b40 jam light_cmd_ftd_color_swtich_reserved ,mem_ftd_adv_raw_reserved 
+77f7 20600000 rtn 
+
+frmt_light_color_switch_w_only_payload_set:
+77f8 70458421 jam light_cmd_color_swtich ,mem_ftd_adv_raw 
+77f9 704587ff jam light_data_part_ff ,mem_ftd_adv_raw_data 
+77fa 70458b40 jam light_cmd_ftd_color_swtich_reserved ,mem_ftd_adv_raw_reserved 
+77fb 20600000 rtn 
+
+frmt_light_color_switch_y_only_payload_set:
+77fc 70458421 jam light_cmd_color_swtich ,mem_ftd_adv_raw 
+77fd 704588ff jam light_data_part_ff ,mem_ftd_adv_raw_data + 1 
+77fe 70458b40 jam light_cmd_ftd_color_swtich_reserved ,mem_ftd_adv_raw_reserved 
+77ff 20600000 rtn 
+
+frmt_light_color_switch:
+7800 6fe0c597 fetch 1 ,mem_light_color_switch_cnt 
+7801 1fe67c03 sub pdata ,3 ,null 
+7802 2042f807 call frmt_color_switch_cnt_set0 ,zero 
+7803 c000780a beq 0 ,frmt_light_color_switch_wy 
+7804 c000f812 beq 1 ,frmt_light_color_switch_w 
+7805 c001781a beq 2 ,frmt_light_color_switch_y 
+7806 20600000 rtn 
+
+frmt_color_switch_cnt_set0:
+7807 58000000 setarg 0 
+7808 67e0c597 store 1 ,mem_light_color_switch_cnt 
+7809 20600000 rtn 
+
+frmt_light_color_switch_wy:
+780a 6fe0c597 fetch 1 ,mem_light_color_switch_cnt 
+780b 1fe0fe01 pincrease 1 
+780c 67e0c597 store 1 ,mem_light_color_switch_cnt 
+780d 20407959 call frmt_light_color_switch_wy_v2 
+780e 6fe0c721 fetch 1 ,mem_special_agreemeet_enable 
+780f c000f514 beq 1 ,gem_light_color_switch 
+7810 204077f3 call frmt_light_color_switch_wy_only_payload_set 
+7811 20207ac2 branch frmt_adv_rear_6bytes_and_whitening_and_set_pdu_common_short_press 
+
+frmt_light_color_switch_w:
+7812 6fe0c597 fetch 1 ,mem_light_color_switch_cnt 
+7813 1fe0fe01 pincrease 1 
+7814 67e0c597 store 1 ,mem_light_color_switch_cnt 
+7815 20407960 call frmt_light_color_switch_w_v2 
+7816 6fe0c721 fetch 1 ,mem_special_agreemeet_enable 
+7817 c000f514 beq 1 ,gem_light_color_switch 
+7818 204077f8 call frmt_light_color_switch_w_only_payload_set 
+7819 20207ac2 branch frmt_adv_rear_6bytes_and_whitening_and_set_pdu_common_short_press 
+
+frmt_light_color_switch_y:
+781a 6fe0c597 fetch 1 ,mem_light_color_switch_cnt 
+781b 1fe0fe01 pincrease 1 
+781c 67e0c597 store 1 ,mem_light_color_switch_cnt 
+781d 20407966 call frmt_light_color_switch_y_v2 
+781e 6fe0c721 fetch 1 ,mem_special_agreemeet_enable 
+781f c000f514 beq 1 ,gem_light_color_switch 
+7820 204077fc call frmt_light_color_switch_y_only_payload_set 
+7821 20207ac2 branch frmt_adv_rear_6bytes_and_whitening_and_set_pdu_common_short_press 
+
+frmt_light_aid_turn_on_and_off:
+7822 6fe0c6ad fetch 1 ,mem_light_aid_swtich_flag 
+7823 c000782b beq 0 ,frmt_light_aid_turn_on 
+
+frmt_light_aid_turn_off:
+7824 2040796c call frmt_light_aid_turn_off_v2 
+7825 7046ad00 jam 0 ,mem_light_aid_swtich_flag 
+7826 6fe0c721 fetch 1 ,mem_special_agreemeet_enable 
+7827 c000f51f beq 1 ,gem_light_aid_turn_onoff 
+7828 c0017613 beq 2 ,key_light_aux_lamp_on_and_off_ky 
+7829 70458413 jam light_cmd_aid_turn_off ,mem_ftd_adv_raw 
+782a 20207ac2 branch frmt_adv_rear_6bytes_and_whitening_and_set_pdu_common_short_press 
+
+frmt_light_aid_turn_on:
+782b 2040796e call frmt_light_aid_turn_on_v2 
+782c 7046ad01 jam 1 ,mem_light_aid_swtich_flag 
+782d 6fe0c721 fetch 1 ,mem_special_agreemeet_enable 
+782e c000f51f beq 1 ,gem_light_aid_turn_onoff 
+782f c0017613 beq 2 ,key_light_aux_lamp_on_and_off_ky 
+7830 70458412 jam light_cmd_aid_turn_on ,mem_ftd_adv_raw 
+7831 20207ac2 branch frmt_adv_rear_6bytes_and_whitening_and_set_pdu_common_short_press 
+
+frmt_light_pcnt_50_and_100percent:
+7832 6fe0c598 fetch 1 ,mem_light_brightness_switch_flag 
+7833 c000783b beq 0 ,frmt_light_pcnt_50_percent 
+
+frmt_light_pcnt_100_percent:
+7834 20407970 call frmt_light_pcnt_100_percent_v2 
+7835 70458421 jam light_cmd_color_swtich ,mem_ftd_adv_raw 
+7836 704587ff jam light_data_part_ff ,mem_ftd_adv_raw_data 
+7837 704588ff jam light_data_part_ff ,mem_ftd_adv_raw_data + 1 
+7838 70459800 jam 0 ,mem_light_brightness_switch_flag 
+7839 70458b02 jam 2 ,mem_ftd_adv_raw_reserved 
+783a 20207ac2 branch frmt_adv_rear_6bytes_and_whitening_and_set_pdu_common_short_press 
+
+frmt_light_pcnt_50_percent:
+783b 20407977 call frmt_light_pcnt_50_percent_v2 
+783c 70458b01 jam 1 ,mem_ftd_adv_raw_reserved 
+783d 70458421 jam light_cmd_color_swtich ,mem_ftd_adv_raw 
+783e 7045877f jam light_ftd_data_part_pcnt_50percent ,mem_ftd_adv_raw_data 
+783f 7045887f jam light_ftd_data_part_pcnt_50percent ,mem_ftd_adv_raw_data + 1 
+7840 70459801 jam 1 ,mem_light_brightness_switch_flag 
+7841 20207ac2 branch frmt_adv_rear_6bytes_and_whitening_and_set_pdu_common_short_press 
+
+frmt_light_rgb_auto:
+7842 6fe0c721 fetch 1 ,mem_special_agreemeet_enable 
+7843 1fe67c01 sub pdata ,1 ,null 
+7844 2042f52a call gem_light_rgb_auto ,zero 
+7845 7046fe01 jam 1 ,mem_light_rgb_on_and_off_flag 
+7846 6fe0c59b fetch 1 ,mem_light_rgb_auto_flag 
+7847 c000784c beq 0 ,frmt_light_rgb_circulation_1e 
+
+frmt_light_rgb_circulation_1f:
+7848 2040797e call frmt_light_rgb_circulation_1f_v2 
+7849 7045841f jam light_cmd_rgb_1f ,mem_ftd_adv_raw 
+784a 70459b00 jam 0 ,mem_light_rgb_auto_flag 
+784b 20207ac2 branch frmt_adv_rear_6bytes_and_whitening_and_set_pdu_common_short_press 
+
+frmt_light_rgb_circulation_1e:
+784c 20407980 call frmt_light_rgb_circulation_1e_v2 
+784d 7045841e jam light_cmd_rgb_1e ,mem_ftd_adv_raw 
+784e 70459b01 jam 1 ,mem_light_rgb_auto_flag 
+784f 20207ac2 branch frmt_adv_rear_6bytes_and_whitening_and_set_pdu_common_short_press 
+
+frmt_light_rgb_manual:
+7850 6fe0c721 fetch 1 ,mem_special_agreemeet_enable 
+7851 1fe67c01 sub pdata ,1 ,null 
+7852 2042f52d call gem_light_rgb_step ,zero 
+7853 70458422 jam light_cmd_rgb_mannul ,mem_ftd_adv_raw 
+7854 6fe0c599 fetch 1 ,mem_light_rgb_hand_actuated_flag 
+7855 c000787a beq 0 ,frmt_light_rgb_manual0 
+7856 c000f876 beq 1 ,frmt_light_rgb_manual1 
+7857 c0017872 beq 2 ,frmt_light_rgb_manual2 
+7858 c001f86d beq 3 ,frmt_light_rgb_manual3 
+7859 c0027868 beq 4 ,frmt_light_rgb_manual4 
+785a c002f863 beq 5 ,frmt_light_rgb_manual5 
+785b c003785d beq 6 ,frmt_light_rgb_manual6 
+785c 20600000 rtn 
+
+frmt_light_rgb_manual6:
+785d 2040799d call frmt_light_rgb_manual6_v2 
+785e 70459900 jam 0 ,mem_light_rgb_hand_actuated_flag 
+785f 704587ff jam light_data_part_ff ,mem_ftd_adv_raw_data 
+7860 704588ff jam light_data_part_ff ,mem_ftd_adv_raw_data + 1 
+7861 704589ff jam light_data_part_ff ,mem_ftd_adv_raw_data + 2 
+7862 20207ac2 branch frmt_adv_rear_6bytes_and_whitening_and_set_pdu_common_short_press 
+
+frmt_light_rgb_manual5:
+7863 20407998 call frmt_light_rgb_manual5_v2 
+7864 70459906 jam 6 ,mem_light_rgb_hand_actuated_flag 
+7865 704587ff jam light_data_part_ff ,mem_ftd_adv_raw_data 
+7866 704589ff jam light_data_part_ff ,mem_ftd_adv_raw_data + 2 
+7867 20207ac2 branch frmt_adv_rear_6bytes_and_whitening_and_set_pdu_common_short_press 
+
+frmt_light_rgb_manual4:
+7868 20407993 call frmt_light_rgb_manual4_v2 
+7869 70459905 jam 5 ,mem_light_rgb_hand_actuated_flag 
+786a 704588ff jam light_data_part_ff ,mem_ftd_adv_raw_data + 1 
+786b 704589ff jam light_data_part_ff ,mem_ftd_adv_raw_data + 2 
+786c 20207ac2 branch frmt_adv_rear_6bytes_and_whitening_and_set_pdu_common_short_press 
+
+frmt_light_rgb_manual3:
+786d 2040798e call frmt_light_rgb_manual3_v2 
+786e 70459904 jam 4 ,mem_light_rgb_hand_actuated_flag 
+786f 704587ff jam light_data_part_ff ,mem_ftd_adv_raw_data 
+7870 704588ff jam light_data_part_ff ,mem_ftd_adv_raw_data + 1 
+7871 20207ac2 branch frmt_adv_rear_6bytes_and_whitening_and_set_pdu_common_short_press 
+
+frmt_light_rgb_manual2:
+7872 2040798a call frmt_light_rgb_manual2_v2 
+7873 70459903 jam 3 ,mem_light_rgb_hand_actuated_flag 
+7874 704589ff jam light_data_part_ff ,mem_ftd_adv_raw_data + 2 
+7875 20207ac2 branch frmt_adv_rear_6bytes_and_whitening_and_set_pdu_common_short_press 
+
+frmt_light_rgb_manual1:
+7876 20407986 call frmt_light_rgb_manual1_v2 
+7877 70459902 jam 2 ,mem_light_rgb_hand_actuated_flag 
+7878 704588ff jam light_data_part_ff ,mem_ftd_adv_raw_data + 1 
+7879 20207ac2 branch frmt_adv_rear_6bytes_and_whitening_and_set_pdu_common_short_press 
+
+frmt_light_rgb_manual0:
+787a 20407982 call frmt_light_rgb_manual0_v2 
+787b 70459901 jam 1 ,mem_light_rgb_hand_actuated_flag 
+787c 704587ff jam light_data_part_ff ,mem_ftd_adv_raw_data 
+787d 20207ac2 branch frmt_adv_rear_6bytes_and_whitening_and_set_pdu_common_short_press 
+
+frmt_light_timing_1min:
+787e 204079a3 call frmt_light_timing_1min_v2 
+787f 70458701 jam 1 ,mem_ftd_adv_raw_data 
+
+frmt_light_timing_off:
+7880 70458441 jam light_cmd_delay_off ,mem_ftd_adv_raw 
+7881 20207ac2 branch frmt_adv_rear_6bytes_and_whitening_and_set_pdu_common_short_press 
+
+frmt_light_group1_on_and_long_press_set1:
+7882 70459601 jam 1 ,mem_light_num_of_long_press 
+7883 2040778d call frmt_light_long_press_flag_reset 
+
+frmt_light_group1_on:
+7884 204079ad call frmt_light_group1_on_v2 
+7885 70459d01 jam 1 ,mem_light_group1_on_and_off_flag 
+7886 70458410 jam light_cmd_turn_on ,mem_ftd_adv_raw 
+7887 70458101 jam 1 ,mem_groups_num 
+7888 20207ac2 branch frmt_adv_rear_6bytes_and_whitening_and_set_pdu_common_short_press 
+
+frmt_light_group2_on_and_long_press_set2:
+7889 70459602 jam 2 ,mem_light_num_of_long_press 
+788a 2040778d call frmt_light_long_press_flag_reset 
+
+frmt_light_group2_on:
+788b 204079af call frmt_light_group2_on_v2 
+788c 70459e01 jam 1 ,mem_light_group2_on_and_off_flag 
+788d 70458410 jam light_cmd_turn_on ,mem_ftd_adv_raw 
+788e 70458102 jam 2 ,mem_groups_num 
+788f 20207ac2 branch frmt_adv_rear_6bytes_and_whitening_and_set_pdu_common_short_press 
+
+frmt_light_group3_on_and_long_press_set3:
+7890 70459603 jam 3 ,mem_light_num_of_long_press 
+7891 2040778d call frmt_light_long_press_flag_reset 
+
+frmt_light_group3_on:
+7892 70459f01 jam 1 ,mem_light_group3_on_and_off_flag 
+7893 70458410 jam light_cmd_turn_on ,mem_ftd_adv_raw 
+7894 70458103 jam 3 ,mem_groups_num 
+7895 20207ac2 branch frmt_adv_rear_6bytes_and_whitening_and_set_pdu_common_short_press 
+
+frmt_light_group4_on_and_long_press_set4:
+7896 70459604 jam 4 ,mem_light_num_of_long_press 
+7897 2040778d call frmt_light_long_press_flag_reset 
+
+frmt_light_group4_on:
+7898 204079b3 call frmt_light_group4_on_v2 
+7899 7045a001 jam 1 ,mem_light_group4_on_and_off_flag 
+789a 70458410 jam light_cmd_turn_on ,mem_ftd_adv_raw 
+789b 70458104 jam 4 ,mem_groups_num 
+789c 20207ac2 branch frmt_adv_rear_6bytes_and_whitening_and_set_pdu_common_short_press 
+
+frmt_light_group1_on_and_off_and_long_press_set1:
+789d 70459601 jam 1 ,mem_light_num_of_long_press 
+789e 2040778d call frmt_light_long_press_flag_reset 
+
+frmt_light_group1_on_and_off:
+789f 6fe0c59d fetch 1 ,mem_light_group1_on_and_off_flag 
+78a0 203a7884 branch frmt_light_group1_on ,blank 
+
+frmt_light_group1_off:
+78a1 204079b5 call frmt_light_group1_off_v2 
+78a2 70459d00 jam 0 ,mem_light_group1_on_and_off_flag 
+78a3 70458411 jam light_cmd_turn_off ,mem_ftd_adv_raw 
+78a4 70458101 jam 1 ,mem_groups_num 
+78a5 20207ac2 branch frmt_adv_rear_6bytes_and_whitening_and_set_pdu_common_short_press 
+
+frmt_light_group2_on_and_off_and_long_press_set2:
+78a6 70459602 jam 2 ,mem_light_num_of_long_press 
+78a7 2040778d call frmt_light_long_press_flag_reset 
+
+frmt_light_group2_on_and_off:
+78a8 6fe0c59e fetch 1 ,mem_light_group2_on_and_off_flag 
+78a9 203a788b branch frmt_light_group2_on ,blank 
+
+frmt_light_group2_off:
+78aa 204079b7 call frmt_light_group2_off_v2 
+78ab 70459e00 jam 0 ,mem_light_group2_on_and_off_flag 
+78ac 70458411 jam light_cmd_turn_off ,mem_ftd_adv_raw 
+78ad 70458102 jam 2 ,mem_groups_num 
+78ae 20207ac2 branch frmt_adv_rear_6bytes_and_whitening_and_set_pdu_common_short_press 
+
+frmt_light_group3_on_and_off_and_long_press_set3:
+78af 70459603 jam 3 ,mem_light_num_of_long_press 
+78b0 2040778d call frmt_light_long_press_flag_reset 
+
+frmt_light_group3_on_and_off:
+78b1 6fe0c59f fetch 1 ,mem_light_group3_on_and_off_flag 
+78b2 203a7892 branch frmt_light_group3_on ,blank 
+
+frmt_light_group3_off:
+78b3 204079b9 call frmt_light_group3_off_v2 
+78b4 70459f00 jam 0 ,mem_light_group3_on_and_off_flag 
+78b5 70458411 jam light_cmd_turn_off ,mem_ftd_adv_raw 
+78b6 70458103 jam 3 ,mem_groups_num 
+78b7 20207ac2 branch frmt_adv_rear_6bytes_and_whitening_and_set_pdu_common_short_press 
+
+frmt_light_group4_on_and_off_and_long_press_set4:
+78b8 70459604 jam 4 ,mem_light_num_of_long_press 
+78b9 2040778d call frmt_light_long_press_flag_reset 
+
+frmt_light_group4_on_and_off:
+78ba 6fe0c5a0 fetch 1 ,mem_light_group4_on_and_off_flag 
+78bb 203a7898 branch frmt_light_group4_on ,blank 
+
+frmt_light_group4_off:
+78bc 204079bb call frmt_light_group4_off_v2 
+78bd 7045a000 jam 0 ,mem_light_group4_on_and_off_flag 
+78be 70458411 jam light_cmd_turn_off ,mem_ftd_adv_raw 
+78bf 70458104 jam 4 ,mem_groups_num 
+78c0 20207ac2 branch frmt_adv_rear_6bytes_and_whitening_and_set_pdu_common_short_press 
+
+frmt_light_pairing_group1:
+78c1 70458101 jam 1 ,mem_groups_num 
+78c2 7044ab01 jam 1 ,mem_ble_v2_group_index 
+78c3 2020779d branch frmt_light_pairing_process 
+
+frmt_light_pairing_group2:
+78c4 70458102 jam 2 ,mem_groups_num 
+78c5 7044ab02 jam 2 ,mem_ble_v2_group_index 
+78c6 2020779d branch frmt_light_pairing_process 
+
+frmt_light_pairing_group3:
+78c7 70458103 jam 3 ,mem_groups_num 
+78c8 7044ab03 jam 3 ,mem_ble_v2_group_index 
+78c9 2020779d branch frmt_light_pairing_process 
+
+frmt_light_pairing_group4:
+78ca 70458104 jam 4 ,mem_groups_num 
+78cb 7044ab04 jam 4 ,mem_ble_v2_group_index 
+78cc 2020779d branch frmt_light_pairing_process 
+
+frmt_fan_master_off:
+78cd 20407909 call frmt_fan_master_off_v2 
+78ce 7045846f jam fan_cmd_master_on_and_off ,mem_ftd_adv_raw 
+78cf 70458700 jam 0 ,mem_ftd_adv_raw_data 
+78d0 20207ac2 branch frmt_adv_rear_6bytes_and_whitening_and_set_pdu_common_short_press 
+
+frmt_fan_turning_forward_and_reverse:
+78d1 6fe0c5a6 fetch 1 ,mem_fan_direction_alternant 
+78d2 203a78d5 branch frmt_fan_turning_reverse ,blank 
+78d3 7045a600 jam 0 ,mem_fan_direction_alternant 
+78d4 202078da branch frmt_fan_turning_forward 
+
+frmt_fan_turning_reverse:
+78d5 2040790c call frmt_fan_turing_reverse_v2 
+78d6 7045a601 jam 1 ,mem_fan_direction_alternant 
+78d7 70458415 jam fan_cmd_direction ,mem_ftd_adv_raw 
+78d8 70458701 jam 1 ,mem_ftd_adv_raw_data 
+78d9 20207ac2 branch frmt_adv_rear_6bytes_and_whitening_and_set_pdu_common_short_press 
+
+frmt_fan_turning_forward:
+78da 2040790d call frmt_fan_turing_forward_v2 
+78db 70458415 jam fan_cmd_direction ,mem_ftd_adv_raw 
+78dc 70458700 jam 0 ,mem_ftd_adv_raw_data 
+78dd 20207ac2 branch frmt_adv_rear_6bytes_and_whitening_and_set_pdu_common_short_press 
+
+frmt_fan_natural_wind:
+78de 20407910 call frmt_fan_natural_wind_v2 
+78df 70458433 jam fan_cmd_mode ,mem_ftd_adv_raw 
+78e0 70458702 jam 2 ,mem_ftd_adv_raw_data 
+78e1 20207ac2 branch frmt_adv_rear_6bytes_and_whitening_and_set_pdu_common_short_press 
+
+frmt_fan_tap_position_1:
+78e2 20407914 call frmt_fan_tap_position_1_v2 
+78e3 58000001 setarg 1 
+
+frmt_fan_tap_position_common:
+78e4 67e0c587 store 1 ,mem_ftd_adv_raw_data 
+78e5 70458432 jam fan_cmd_speed_32 ,mem_ftd_adv_raw 
+78e6 70458806 jam 6 ,mem_ftd_adv_raw_data + 1 
+78e7 20207ac2 branch frmt_adv_rear_6bytes_and_whitening_and_set_pdu_common_short_press 
+
+frmt_fan_tap_position_2:
+78e8 2040791a call frmt_fan_tap_position_2_v2 
+78e9 58000002 setarg 2 
+78ea 202078e4 branch frmt_fan_tap_position_common 
+
+frmt_fan_tap_position_3:
+78eb 2040791c call frmt_fan_tap_position_3_v2 
+78ec 58000003 setarg 3 
+78ed 202078e4 branch frmt_fan_tap_position_common 
+
+frmt_fan_tap_position_4:
+78ee 2040791e call frmt_fan_tap_position_4_v2 
+78ef 58000004 setarg 4 
+78f0 202078e4 branch frmt_fan_tap_position_common 
+
+frmt_fan_tap_position_5:
+78f1 20407920 call frmt_fan_tap_position_5_v2 
+78f2 58000005 setarg 5 
+78f3 202078e4 branch frmt_fan_tap_position_common 
+
+frmt_fan_tap_position_6:
+78f4 20407922 call frmt_fan_tap_position_6_v2 
+78f5 58000006 setarg 6 
+78f6 202078e4 branch frmt_fan_tap_position_common 
+
+frmt_fan_stop_fan_and_long_press_set1:
+78f7 70459601 jam 1 ,mem_light_num_of_long_press 
+78f8 2040778d call frmt_light_long_press_flag_reset 
+
+frmt_fan_stop_fan:
+78f9 20407924 call frmt_fan_stop_fan_v2 
+78fa 70458431 jam fan_cmd_speed_31 ,mem_ftd_adv_raw 
+78fb 70458700 jam 0 ,mem_ftd_adv_raw_data 
+78fc 20207ac2 branch frmt_adv_rear_6bytes_and_whitening_and_set_pdu_common_short_press 
+
+frmt_fan_deflector_on_and_off:
+78fd 6fe0c6ac fetch 1 ,mem_fan_deflector_flag 
+78fe 203a7904 branch frmt_fan_deflector_on ,blank 
+
+frmt_fan_deflector_off:
+78ff 20407927 call frmt_fan_deflector_off_v2 
+7900 7046ac00 jam 0 ,mem_fan_deflector_flag 
+7901 70458416 jam fan_cmd_deflector ,mem_ftd_adv_raw 
+7902 70458700 jam 0 ,mem_ftd_adv_raw_data 
+7903 20207ac2 branch frmt_adv_rear_6bytes_and_whitening_and_set_pdu_common_short_press 
+
+frmt_fan_deflector_on:
+7904 20407926 call frmt_fan_deflector_on_v2 
+7905 7046ac01 jam 1 ,mem_fan_deflector_flag 
+7906 70458416 jam fan_cmd_deflector ,mem_ftd_adv_raw 
+7907 70458701 jam 1 ,mem_ftd_adv_raw_data 
+7908 20207ac2 branch frmt_adv_rear_6bytes_and_whitening_and_set_pdu_common_short_press 
+
+frmt_fan_master_off_v2:
+7909 5800006f setarg fan_cmd_master_on_and_off_v2 
+790a 67e144ac store 2 ,mem_ble_v2_cmd 
+790b 20207935 branch frmt_ble_v2_encoder_pack 
+
+frmt_fan_turing_reverse_v2:
+790c 7044af01 jam 1 ,mem_ble_v2_para + 1 
+
+frmt_fan_turing_forward_v2:
+790d 58000015 setarg fan_cmd_wind_direction_v2 
+790e 67e144ac store 2 ,mem_ble_v2_cmd 
+790f 20207935 branch frmt_ble_v2_encoder_pack 
+
+frmt_fan_natural_wind_v2:
+7910 7044af02 jam 0x02 ,mem_ble_v2_para + 1 
+
+frmt_fan_mode_sel_common_v2:
+7911 58000033 setarg fan_cmd_mode_sel_v2 
+7912 67e144ac store 2 ,mem_ble_v2_cmd 
+7913 20207935 branch frmt_ble_v2_encoder_pack 
+
+frmt_fan_tap_position_1_v2:
+7914 58000001 setarg 1 
+
+frmt_fan_tap_position_common_v2:
+7915 67e0c4b0 store 1 ,mem_ble_v2_para + 2 
+7916 58000031 setarg fan_cmd_wind_speed_v2 
+7917 67e144ac store 2 ,mem_ble_v2_cmd 
+7918 7044af20 jam 0x20 ,mem_ble_v2_para + 1 
+7919 20207935 branch frmt_ble_v2_encoder_pack 
+
+frmt_fan_tap_position_2_v2:
+791a 58000002 setarg 2 
+791b 20207915 branch frmt_fan_tap_position_common_v2 
+
+frmt_fan_tap_position_3_v2:
+791c 58000003 setarg 3 
+791d 20207915 branch frmt_fan_tap_position_common_v2 
+
+frmt_fan_tap_position_4_v2:
+791e 58000004 setarg 4 
+791f 20207915 branch frmt_fan_tap_position_common_v2 
+
+frmt_fan_tap_position_5_v2:
+7920 58000005 setarg 5 
+7921 20207915 branch frmt_fan_tap_position_common_v2 
+
+frmt_fan_tap_position_6_v2:
+7922 58000006 setarg 6 
+7923 20207915 branch frmt_fan_tap_position_common_v2 
+
+frmt_fan_stop_fan_v2:
+7924 58000000 setarg 0 
+7925 20207915 branch frmt_fan_tap_position_common_v2 
+
+frmt_fan_deflector_on_v2:
+7926 7044af01 jam 1 ,mem_ble_v2_para + 1 
+
+frmt_fan_deflector_off_v2:
+7927 58000016 setarg fan_cmd_deflector_v2 
+7928 67e144ac store 2 ,mem_ble_v2_cmd 
+7929 20207935 branch frmt_ble_v2_encoder_pack 
+
+frmt_light_to_y_v2:
+792a 7044af18 jam 0x18 ,mem_ble_v2_para + 1 
+792b 20207932 branch frmt_light_common 
+
+frmt_light_to_w_v2:
+792c 7044af24 jam 0x24 ,mem_ble_v2_para + 1 
+792d 20207932 branch frmt_light_common 
+
+frmt_light_darken_v2:
+792e 7044af28 jam 0x28 ,mem_ble_v2_para + 1 
+792f 20207932 branch frmt_light_common 
+
+frmt_light_lighten_v2:
+7930 7044af14 jam 0x14 ,mem_ble_v2_para + 1 
+7931 20207932 branch frmt_light_common 
+
+frmt_light_common:
+7932 58000021 setarg light_cmd_light_ctl_v2 
+7933 67e144ac store 2 ,mem_ble_v2_cmd 
+7934 20207935 branch frmt_ble_v2_encoder_pack 
+
+frmt_ble_v2_encoder_pack:
+7935 4742c030 bpatchx patch30_5 ,mem_patch30 
+7936 20407de4 call frmt_ble_data_set 
+7937 6fe0c6af fetch 1 ,mem_light_manufacture_id2_v2 
+7938 245a793a ncall frmt_have_id2_v2 ,blank 
+7939 20600000 rtn 
+
+frmt_have_id2_v2:
+793a 47434030 bpatchx patch30_6 ,mem_patch30 
+793b df200027 arg ftd_pdu_len ,loopcnt 
+793c d8c0447c arg mem_ble_v2_pdu ,contr 
+793d d8a046d7 arg mem_ble_v2_pdu_2 ,contw 
+793e 2040740c call memcpy_fast 
+793f 6fe0c6af fetch 1 ,mem_light_manufacture_id2_v2 
+7940 67e0c4a3 store 1 ,mem_ble_v2_customer_id 
+7941 6fe0c4a4 fetch 1 ,mem_ble_v2_packet_num 
+7942 1fe0ffff pincrease -1 
+7943 67e0c4a4 store 1 ,mem_ble_v2_packet_num 
+7944 20407de4 call frmt_ble_data_set 
+7945 6fe0c770 fetch 1 ,mem_ble_v2_customer_id_copy 
+7946 67e0c4a3 store 1 ,mem_ble_v2_customer_id 
+7947 20600000 rtn 
+
+frmt_light_night_light_v2:
+7948 58000023 setarg light_cmd_night_light_v2 
+7949 2020794b branch frmt_ble_v2_encoder_with_cmd_store_and_para_set0 
+
+frmt_light_master_pairing_v2:
+794a 58000028 setarg cmd_pairing 
+
+frmt_ble_v2_encoder_with_cmd_store_and_para_set0:
+794b 67e144ac store 2 ,mem_ble_v2_cmd 
+794c 58000000 setarg 0 
+794d 67e244ae store 4 ,mem_ble_v2_para 
+794e 20207935 branch frmt_ble_v2_encoder_pack 
+
+frmt_light_clear_code_v2:
+794f 58000045 setarg cmd_clear_code 
+7950 2020794b branch frmt_ble_v2_encoder_with_cmd_store_and_para_set0 
+
+frmt_light_master_on_v2:
+7951 7044ab00 jam 0 ,mem_ble_v2_group_index 
+
+frmt_light_turn_on_common:
+7952 58000010 setarg light_cmd_turn_on_v2 
+7953 2020794b branch frmt_ble_v2_encoder_with_cmd_store_and_para_set0 
+
+frmt_light_master_off_v2:
+7954 7044ab00 jam 0 ,mem_ble_v2_group_index 
+
+frmt_light_turn_off_common:
+7955 58000011 setarg light_cmd_turn_off_v2 
+7956 2020794b branch frmt_ble_v2_encoder_with_cmd_store_and_para_set0 
+
+frmt_light_on_and_off_1opcode_v2:
+7957 58000009 setarg light_cmd_turn_on_and_off_v2 
+7958 2020794b branch frmt_ble_v2_encoder_with_cmd_store_and_para_set0 
+
+frmt_light_color_switch_wy_v2:
+7959 58000021 setarg light_cmd_light_ctl_v2 
+795a 67e144ac store 2 ,mem_ble_v2_cmd 
+795b 7044ae00 jam 0 ,mem_ble_v2_para 
+795c 7044af40 jam light_cmd_ftd_color_swtich_reserved ,mem_ble_v2_para + 1 
+795d 7044b0ff jam light_data_part_ff ,mem_ble_v2_para + 2 
+795e 7044b1ff jam light_data_part_ff ,mem_ble_v2_para + 3 
+795f 20207935 branch frmt_ble_v2_encoder_pack 
+
+frmt_light_color_switch_w_v2:
+7960 58000021 setarg light_cmd_light_ctl_v2 
+7961 67e144ac store 2 ,mem_ble_v2_cmd 
+7962 7044ae00 jam 0 ,mem_ble_v2_para 
+7963 7044af40 jam light_cmd_ftd_color_swtich_reserved ,mem_ble_v2_para + 1 
+7964 7044b0ff jam light_data_part_ff ,mem_ble_v2_para + 2 
+7965 20207935 branch frmt_ble_v2_encoder_pack 
+
+frmt_light_color_switch_y_v2:
+7966 58000021 setarg light_cmd_light_ctl_v2 
+7967 67e144ac store 2 ,mem_ble_v2_cmd 
+7968 7044ae00 jam 0 ,mem_ble_v2_para 
+7969 7044af40 jam light_cmd_ftd_color_swtich_reserved ,mem_ble_v2_para + 1 
+796a 7044b1ff jam light_data_part_ff ,mem_ble_v2_para + 3 
+796b 20207935 branch frmt_ble_v2_encoder_pack 
+
+frmt_light_aid_turn_off_v2:
+796c 58000013 setarg light_cmd_aided_light_turn_off_v2 
+796d 2020794b branch frmt_ble_v2_encoder_with_cmd_store_and_para_set0 
+
+frmt_light_aid_turn_on_v2:
+796e 58000012 setarg light_cmd_aided_light_turn_on_v2 
+796f 2020794b branch frmt_ble_v2_encoder_with_cmd_store_and_para_set0 
+
+frmt_light_pcnt_100_percent_v2:
+7970 58000021 setarg light_cmd_light_ctl_v2 
+7971 67e144ac store 2 ,mem_ble_v2_cmd 
+7972 7044ae00 jam 0 ,mem_ble_v2_para 
+7973 7044af02 jam 0x02 ,mem_ble_v2_para + 1 
+7974 7044b0ff jam light_data_part_ff ,mem_ble_v2_para + 2 
+7975 7044b1ff jam light_data_part_ff ,mem_ble_v2_para + 3 
+7976 20207935 branch frmt_ble_v2_encoder_pack 
+
+frmt_light_pcnt_50_percent_v2:
+7977 58000021 setarg light_cmd_light_ctl_v2 
+7978 67e144ac store 2 ,mem_ble_v2_cmd 
+7979 7044ae00 jam 0 ,mem_ble_v2_para 
+797a 7044af01 jam 0x01 ,mem_ble_v2_para + 1 
+797b 7044b07f jam light_ftd_data_part_pcnt_50percent ,mem_ble_v2_para + 2 
+797c 7044b17f jam light_ftd_data_part_pcnt_50percent ,mem_ble_v2_para + 3 
+797d 20207935 branch frmt_ble_v2_encoder_pack 
+
+frmt_light_rgb_circulation_1f_v2:
+797e 5800001f setarg light_cmd_rgb_auto_turn_off_v2 
+797f 2020794b branch frmt_ble_v2_encoder_with_cmd_store_and_para_set0 
+
+frmt_light_rgb_circulation_1e_v2:
+7980 5800001e setarg light_cmd_rgb_auto_turn_on_v2 
+7981 2020794b branch frmt_ble_v2_encoder_with_cmd_store_and_para_set0 
+
+frmt_light_rgb_manual0_v2:
+7982 58000022 setarg light_cmd_rgb_manual_v2 
+7983 67e144ac store 2 ,mem_ble_v2_cmd 
+7984 7044afff jam light_data_part_ff ,mem_ble_v2_para + 1 
+7985 20207935 branch frmt_ble_v2_encoder_pack 
+
+frmt_light_rgb_manual1_v2:
+7986 58000022 setarg light_cmd_rgb_manual_v2 
+7987 67e144ac store 2 ,mem_ble_v2_cmd 
+7988 7044b0ff jam light_data_part_ff ,mem_ble_v2_para + 2 
+7989 20207935 branch frmt_ble_v2_encoder_pack 
+
+frmt_light_rgb_manual2_v2:
+798a 58000022 setarg light_cmd_rgb_manual_v2 
+798b 67e144ac store 2 ,mem_ble_v2_cmd 
+798c 7044b1ff jam light_data_part_ff ,mem_ble_v2_para + 3 
+798d 20207935 branch frmt_ble_v2_encoder_pack 
+
+frmt_light_rgb_manual3_v2:
+798e 58000022 setarg light_cmd_rgb_manual_v2 
+798f 67e144ac store 2 ,mem_ble_v2_cmd 
+7990 7044afff jam light_data_part_ff ,mem_ble_v2_para + 1 
+7991 7044b0ff jam light_data_part_ff ,mem_ble_v2_para + 2 
+7992 20207935 branch frmt_ble_v2_encoder_pack 
+
+frmt_light_rgb_manual4_v2:
+7993 58000022 setarg light_cmd_rgb_manual_v2 
+7994 67e144ac store 2 ,mem_ble_v2_cmd 
+7995 7044afff jam light_data_part_ff ,mem_ble_v2_para + 1 
+7996 7044b1ff jam light_data_part_ff ,mem_ble_v2_para + 3 
+7997 20207935 branch frmt_ble_v2_encoder_pack 
+
+frmt_light_rgb_manual5_v2:
+7998 58000022 setarg light_cmd_rgb_manual_v2 
+7999 67e144ac store 2 ,mem_ble_v2_cmd 
+799a 7044b0ff jam light_data_part_ff ,mem_ble_v2_para + 2 
+799b 7044b1ff jam light_data_part_ff ,mem_ble_v2_para + 3 
+799c 20207935 branch frmt_ble_v2_encoder_pack 
+
+frmt_light_rgb_manual6_v2:
+799d 58000022 setarg light_cmd_rgb_manual_v2 
+799e 67e144ac store 2 ,mem_ble_v2_cmd 
+799f 7044afff jam light_data_part_ff ,mem_ble_v2_para + 1 
+79a0 7044b0ff jam light_data_part_ff ,mem_ble_v2_para + 2 
+79a1 7044b1ff jam light_data_part_ff ,mem_ble_v2_para + 3 
+79a2 20207935 branch frmt_ble_v2_encoder_pack 
+
+frmt_light_timing_1min_v2:
+79a3 58000001 setarg 0x01 
+
+frmt_light_timing_off_common_v2:
+79a4 7044a601 jam product_maintype_light ,mem_ble_v2_maintype 
+79a5 67e144af store 2 ,mem_ble_v2_para + 1 
+79a6 58000041 setarg cmd_timing_off 
+79a7 67e144ac store 2 ,mem_ble_v2_cmd 
+79a8 7044ae00 jam 0 ,mem_ble_v2_para 
+79a9 7044b100 jam 0 ,mem_ble_v2_para + 3 
+79aa 20207935 branch frmt_ble_v2_encoder_pack 
+
+frmt_light_timing_30s_v2:
+79ab 58000000 setarg 0 
+79ac 202079a4 branch frmt_light_timing_off_common_v2 
+
+frmt_light_group1_on_v2:
+79ad 7044ab01 jam 1 ,mem_ble_v2_group_index 
+79ae 20207952 branch frmt_light_turn_on_common 
+
+frmt_light_group2_on_v2:
+79af 7044ab02 jam 2 ,mem_ble_v2_group_index 
+79b0 20207952 branch frmt_light_turn_on_common 
+
+frmt_light_group3_on_v2:
+79b1 7044ab03 jam 3 ,mem_ble_v2_group_index 
+79b2 20207952 branch frmt_light_turn_on_common 
+
+frmt_light_group4_on_v2:
+79b3 7044ab04 jam 4 ,mem_ble_v2_group_index 
+79b4 20207952 branch frmt_light_turn_on_common 
+
+frmt_light_group1_off_v2:
+79b5 7044ab01 jam 1 ,mem_ble_v2_group_index 
+79b6 20207955 branch frmt_light_turn_off_common 
+
+frmt_light_group2_off_v2:
+79b7 7044ab02 jam 2 ,mem_ble_v2_group_index 
+79b8 20207955 branch frmt_light_turn_off_common 
+
+frmt_light_group3_off_v2:
+79b9 7044ab03 jam 3 ,mem_ble_v2_group_index 
+79ba 20207955 branch frmt_light_turn_off_common 
+
+frmt_light_group4_off_v2:
+79bb 7044ab04 jam 4 ,mem_ble_v2_group_index 
+79bc 20207955 branch frmt_light_turn_off_common 
+
+frmt_main:
+79bd 4743c030 bpatchx patch30_7 ,mem_patch30 
+79be 204076cc call frmt_kscan_init 
+79bf 204076e4 call frmt_kscan 
+79c0 6fe44556 fetch 8 ,mem_kscan_record_keypress 
+79c1 245a79f7 ncall frmt_kscan_available ,blank 
+79c2 204079ea call frmt_judge_reset_last_key 
+79c3 6fe0c706 fetch 1 ,mem_light_release_adv_flag 
+79c4 245a79dc ncall p_light_released_cb ,blank 
+79c5 204079ce call frmt_kscan_keypress_analysis_process 
+79c6 6fe0c35f fetch 1 ,mem_le_adv_enable 
+79c7 205a79fd call frmt_light_indicator_led_flag_set0 ,blank 
+79c8 6fe0c6a8 fetch 1 ,mem_indicator_turn_on_enable 
+79c9 245a7a05 ncall frmt_light_indicator_led ,blank 
+79ca 6fe0c6a8 fetch 1 ,mem_indicator_turn_on_enable 
+79cb 205a7a0a call frmt_light_indicator_led_off ,blank 
+79cc 47444031 bpatchx patch31_0 ,mem_patch31 
+79cd 20207a10 branch frmt_app_enter_lpm 
+
+frmt_kscan_keypress_analysis_process:
+79ce 4744c031 bpatchx patch31_1 ,mem_patch31 
+79cf 6fe0c721 fetch 1 ,mem_special_agreemeet_enable 
+79d0 1fe67c01 sub pdata ,1 ,null 
+79d1 2042f4fe call frmt_light_gem_long_press_cnt ,zero 
+79d2 6fe44556 fetch 8 ,mem_kscan_record_keypress 
+79d3 207a0000 rtn blank 
+79d4 58000000 setarg 0 
+79d5 67e1c587 store 3 ,mem_ftd_adv_raw_data 
+79d6 67e244ae store 4 ,mem_ble_v2_para 
+79d7 70458b00 jam 0 ,mem_ftd_adv_raw_reserved 
+79d8 6fe0c706 fetch 1 ,mem_light_release_adv_flag 
+79d9 245a79dc ncall p_light_released_cb ,blank 
+79da 6fe14762 fetch 2 ,mem_rmt_keydown_cb 
+79db 20207487 branch callback_func 
+
+p_light_released_cb:
+79dc 6fe14764 fetch 2 ,mem_rmt_released_cb 
+79dd 20207487 branch callback_func 
+
+frmt_get_current_key:
+79de 47454031 bpatchx patch31_2 ,mem_patch31 
+79df 6fe44556 fetch 8 ,mem_kscan_record_keypress 
+79e0 1fe20400 copy pdata ,temp 
+79e1 df200019 arg keyboard_max_keys_num ,loopcnt 
+79e2 d8e00000 arg 0 ,queue 
+79e3 204079f2 call frmt_kscan_keypress_analysis_get_keypress 
+79e4 18e27e00 deposit queue 
+79e5 67e0c5a1 store 1 ,mem_light_current_key 
+79e6 58000000 setarg 0 
+79e7 67e44556 store 8 ,mem_kscan_record_keypress 
+79e8 4745c031 bpatchx patch31_3 ,mem_patch31 
+79e9 20207bca branch frmt_light_set_continuous_kps_cnt_reset_timeout 
+
+frmt_judge_reset_last_key:
+79ea 6fe0c572 fetch 1 ,mem_keypress_analysis_flag 
+79eb 247a0000 nrtn blank 
+79ec 70458200 jam 0 ,mem_light_last_key 
+79ed 70472400 jam 0 ,mem_light_color_and_lgtness_long_press_adv_enable 
+
+frmt_light_long_press_judge_reset:
+79ee 58000000 setarg 0 
+79ef 67e14594 store 2 ,mem_long_press_timeout 
+79f0 67e144e4 store 2 ,mem_gem_cnt_inces_timeout 
+79f1 20600000 rtn 
+
+frmt_kscan_keypress_analysis_get_keypress:
+79f2 afefffff qisolate1 pdata 
+79f3 20608000 rtn true 
+79f4 18e08e01 increase 1 ,queue 
+79f5 c20079f2 loop frmt_kscan_keypress_analysis_get_keypress 
+79f6 20600000 rtn 
+
+frmt_kscan_available:
+79f7 70457201 jam 1 ,mem_keypress_analysis_flag 
+79f8 7046a801 jam 1 ,mem_indicator_turn_on_enable 
+79f9 58000001 setarg key_press_led_on_time 
+79fa 67e146a9 store 2 ,mem_indicator_led_turn_on_timeout 
+79fb 70457901 jam kscan_analysis_interval ,mem_kscan_analysis_interval_timeout 
+79fc 20600000 rtn 
+
+frmt_light_indicator_led_flag_set0:
+79fd 47464031 bpatchx patch31_4 ,mem_patch31 
+79fe 6fe0c572 fetch 1 ,mem_keypress_analysis_flag 
+79ff 247a0000 nrtn blank 
+
+frmt_light_indicator_led_flag_set0_process:
+7a00 58000000 setarg 0 
+7a01 67e146a9 store 2 ,mem_indicator_led_turn_on_timeout 
+7a02 7046a800 jam 0 ,mem_indicator_turn_on_enable 
+7a03 4746c031 bpatchx patch31_5 ,mem_patch31 
+7a04 20600000 rtn 
+
+frmt_light_indicator_led:
+7a05 47474031 bpatchx patch31_6 ,mem_patch31 
+7a06 6fe0c580 fetch 1 ,mem_light_indicator_led 
+7a07 207a0000 rtn blank 
+
+frmt_light_indicator_led_debug:
+7a08 6848c580 fetcht 1 ,mem_light_indicator_led 
+7a09 2020773e branch gpio_config_output_patch 
+
+frmt_light_indicator_led_off:
+7a0a 4747c031 bpatchx patch31_7 ,mem_patch31 
+7a0b 6fe0c580 fetch 1 ,mem_light_indicator_led 
+7a0c 207a0000 rtn blank 
+
+frmt_light_indicator_led_off_debug:
+7a0d 6848c580 fetcht 1 ,mem_light_indicator_led 
+7a0e 18418480 or temp ,0x80 ,temp 
+7a0f 2020773e branch gpio_config_output_patch 
+
+frmt_app_enter_lpm:
+7a10 6fe146a6 fetch 2 ,mem_light_lpm_enable_timeout 
+7a11 247a0000 nrtn blank 
+7a12 6fe146a9 fetch 2 ,mem_indicator_led_turn_on_timeout 
+7a13 247a0000 nrtn blank 
+7a14 47484032 bpatchx patch32_0 ,mem_patch32 
+7a15 20407a1a call frmt_enter_lpm_gpio_config 
+
+frmt_app_enter_lpm_1:
+7a16 20407a2a call frmt_wakeup_low_config 
+7a17 4748c032 bpatchx patch32_1 ,mem_patch32 
+7a18 d85fffff arg -1 ,temp 
+7a19 20203b47 branch lpm_sleep 
+
+frmt_enter_lpm_gpio_config:
+7a1a 47494032 bpatchx patch32_2 ,mem_patch32 
+7a1b df20000b arg enter_lpm_leisure_io_config_num ,loopcnt 
+7a1c 70473c03 jam enter_lpm_leisure_io_config_start ,mem_light_lpm_gpio_config_io_temp 
+
+frmt_drop_down_unused_io_loopcnt:
+7a1d 6848c73c fetcht 1 ,mem_light_lpm_gpio_config_io_temp 
+7a1e 18420e00 copy temp ,queue 
+7a1f 6fe24738 fetch 4 ,mem_light_lpm_gpio_config_flag 
+7a20 afefffff qisolate1 pdata 
+7a21 2020fa24 branch frmt_drop_down_unused_io_loopcnt_no_drop_down ,true 
+7a22 18418480 or temp ,0x80 ,temp 
+7a23 20406b7c call gpio_config_input 
+
+frmt_drop_down_unused_io_loopcnt_no_drop_down:
+7a24 6fe0c73c fetch 1 ,mem_light_lpm_gpio_config_io_temp 
+7a25 1fe0fe01 pincrease 1 
+7a26 67e0c73c store 1 ,mem_light_lpm_gpio_config_io_temp 
+7a27 c2007a1d loop frmt_drop_down_unused_io_loopcnt 
+7a28 70807d40 jam gpcfg_pullup ,core_gpio13_conf 
+7a29 20600000 rtn 
+
+frmt_wakeup_low_config:
+7a2a 4749c032 bpatchx patch32_3 ,mem_patch32 
+7a2b 6848c55e fetcht 1 ,mem_kscan_row_nums 
+7a2c 18422200 copy temp ,rega 
+7a2d da400000 arg 0 ,regb 
+7a2e d8400000 arg 0 ,temp 
+7a2f 604c0016 storet 8 ,mem_gpio_wakeup_low 
+7a30 d8c04560 arg mem_kscan_row_gpio_pin ,contr 
+7a31 20407a35 call frmt_wakeup_low_config_loop 
+7a32 7920040d set1 13 ,temp 
+7a33 604a0016 storet 4 ,mem_gpio_wakeup_low 
+7a34 20600000 rtn 
+
+frmt_wakeup_low_config_loop:
+7a35 efe08006 ifetch 1 ,contr 
+7a36 98000e00 iforce queue 
+7a37 f9200400 qset1 temp 
+7a38 1a40a401 increase 1 ,regb 
+7a39 1a227e00 deposit rega 
+7a3a 9a467c00 isub regb ,null 
+7a3b 20628000 rtn zero 
+7a3c 20207a35 branch frmt_wakeup_low_config_loop 
+
+frmt_le_send_adv_ind:
+7a3d 474a4032 bpatchx patch32_4 ,mem_patch32 
+7a3e 6fe0c721 fetch 1 ,mem_special_agreemeet_enable 
+7a3f c0017a84 beq 2 ,key_le_send_adv_ind 
+7a40 6fe0c4a3 fetch 1 ,mem_ble_v2_customer_id 
+7a41 243a7a65 nbranch frmt_send_id1_v2 ,blank 
+
+frmt_judge_send_id1_v1:
+7a42 6fe0c721 fetch 1 ,mem_special_agreemeet_enable 
+7a43 c000fa6b beq 1 ,frmt_send_id1_v1 
+7a44 6fe0c57f fetch 1 ,mem_light_manufacture_id 
+7a45 243a7a6b nbranch frmt_send_id1_v1 ,blank 
+
+frmt_judge_send_id2_v1:
+7a46 6fe0c6ae fetch 1 ,mem_light_manufacture_id2 
+7a47 243a7a73 nbranch frmt_send_id2_v1 ,blank 
+
+frmt_judge_send_id2_v2:
+7a48 6fe0c6af fetch 1 ,mem_light_manufacture_id2_v2 
+7a49 243a7a79 nbranch frmt_send_id2_v2 ,blank 
+
+frmt_id_flag_set0:
+7a4a 58000000 setarg 0 
+7a4b 67e24701 store 4 ,mem_adv_manufacturer_switch_flag 
+7a4c 20600000 rtn 
+
+frmt_le_send_adv_ind_pdu1:
+7a4d 474ac032 bpatchx patch32_5 ,mem_patch32 
+7a4e df200027 arg ftd_pdu_len ,loopcnt 
+7a4f d8a0412b arg mem_le_txheader ,contw 
+7a50 d8c0464f arg mem_light_whitening_buffer ,contr 
+7a51 2040740c call memcpy_fast 
+7a52 202042b6 branch le_send_adv_transmit 
+
+frmt_le_send_adv_ind_v2:
+7a53 474b4032 bpatchx patch32_6 ,mem_patch32 
+7a54 df200027 arg ftd_pdu_len ,loopcnt 
+7a55 d8a0412b arg mem_le_txheader ,contw 
+7a56 d8c0447c arg mem_ble_v2_pdu ,contr 
+7a57 2040740c call memcpy_fast 
+7a58 202042b6 branch le_send_adv_transmit 
+
+frmt_le_send_adv_ind_pdu2:
+7a59 474bc032 bpatchx patch32_7 ,mem_patch32 
+7a5a df200027 arg ftd_pdu_len ,loopcnt 
+7a5b d8a0412b arg mem_le_txheader ,contw 
+7a5c d8c046b0 arg mem_light_whitening_buffer_2 ,contr 
+7a5d 2040740c call memcpy_fast 
+7a5e 202042b6 branch le_send_adv_transmit 
+
+frmt_le_send_adv_ind_v2_2:
+7a5f 474c4033 bpatchx patch33_0 ,mem_patch33 
+7a60 df200027 arg ftd_pdu_len ,loopcnt 
+7a61 d8a0412b arg mem_le_txheader ,contw 
+7a62 d8c046d7 arg mem_ble_v2_pdu_2 ,contr 
+7a63 2040740c call memcpy_fast 
+7a64 202042b6 branch le_send_adv_transmit 
+
+frmt_send_id1_v2:
+7a65 474cc033 bpatchx patch33_1 ,mem_patch33 
+7a66 6fe0c701 fetch 1 ,mem_adv_manufacturer_switch_flag 
+7a67 c001fa42 beq 3 ,frmt_judge_send_id1_v1 
+7a68 1fe0fe01 pincrease 1 
+7a69 67e0c701 store 1 ,mem_adv_manufacturer_switch_flag 
+7a6a 20207a53 branch frmt_le_send_adv_ind_v2 
+
+frmt_send_id1_v1:
+7a6b 474d4033 bpatchx patch33_2 ,mem_patch33 
+7a6c 6fe0c702 fetch 1 ,mem_adv_manufacturer_switch_flag1 
+7a6d c001fa46 beq 3 ,frmt_judge_send_id2_v1 
+7a6e 1fe0fe01 pincrease 1 
+7a6f 67e0c702 store 1 ,mem_adv_manufacturer_switch_flag1 
+7a70 6fe0c721 fetch 1 ,mem_special_agreemeet_enable 
+7a71 c000fa7f beq 1 ,gem_le_send_adv_ind 
+7a72 20207a4d branch frmt_le_send_adv_ind_pdu1 
+
+frmt_send_id2_v1:
+7a73 474dc033 bpatchx patch33_3 ,mem_patch33 
+7a74 6fe0c703 fetch 1 ,mem_adv_manufacturer_switch_flag2 
+7a75 c001fa48 beq 3 ,frmt_judge_send_id2_v2 
+7a76 1fe0fe01 pincrease 1 
+7a77 67e0c703 store 1 ,mem_adv_manufacturer_switch_flag2 
+7a78 20207a59 branch frmt_le_send_adv_ind_pdu2 
+
+frmt_send_id2_v2:
+7a79 474e4033 bpatchx patch33_4 ,mem_patch33 
+7a7a 6fe0c704 fetch 1 ,mem_adv_manufacturer_switch_flag3 
+7a7b c001fa4a beq 3 ,frmt_id_flag_set0 
+7a7c 1fe0fe01 pincrease 1 
+7a7d 67e0c704 store 1 ,mem_adv_manufacturer_switch_flag3 
+7a7e 20207a5f branch frmt_le_send_adv_ind_v2_2 
+
+gem_le_send_adv_ind:
+7a7f df200017 arg gem_pdu_len ,loopcnt 
+7a80 d8a0412b arg mem_le_txheader ,contw 
+7a81 d8c0464f arg mem_light_whitening_buffer ,contr 
+7a82 2040740c call memcpy_fast 
+7a83 202042b6 branch le_send_adv_transmit 
+
+key_le_send_adv_ind:
+7a84 6fe0c555 fetch 1 ,mem_adv_cnts 
+7a85 1fe0fe01 pincrease 1 
+7a86 67e0c555 store 1 ,mem_adv_cnts 
+7a87 1fe67c03 sub pdata ,3 ,null 
+7a88 20217a53 branch frmt_le_send_adv_ind_v2 ,positive 
+7a89 1fe67c06 sub pdata ,6 ,null 
+7a8a 20217a90 branch key_le_send_adv_ind_ky1 ,positive 
+7a8b 1fe67c09 sub pdata ,9 ,null 
+7a8c 20217a95 branch key_le_send_adv_ind_ky ,positive 
+7a8d 58000000 setarg 0 
+7a8e 67e0c555 store 1 ,mem_adv_cnts 
+7a8f 20207a53 branch frmt_le_send_adv_ind_v2 
+
+key_le_send_adv_ind_ky1:
+7a90 df200025 arg key_pdu_len ,loopcnt 
+7a91 d8a0412b arg mem_le_txheader ,contw 
+7a92 d8c04530 arg mem_light_jym_tx_temp ,contr 
+7a93 2040740c call memcpy_fast 
+7a94 202042b6 branch le_send_adv_transmit 
+
+key_le_send_adv_ind_ky:
+7a95 df200025 arg key_pdu_len ,loopcnt 
+7a96 d8a0412b arg mem_le_txheader ,contw 
+7a97 d8c0464f arg mem_light_whitening_buffer ,contr 
+7a98 2040740c call memcpy_fast 
+7a99 202042b6 branch le_send_adv_transmit 
+
+frmt_le_next_adv_channel:
+7a9a 474ec033 bpatchx patch33_5 ,mem_patch33 
+7a9b 6fe0c71f fetch 1 ,mem_channel_num 
+7a9c 205a7aa4 call frmt_channel_num_init ,blank 
+7a9d 2feffe00 isolate1 0 ,pdata 
+7a9e 2020faa7 branch frmt_le_next_adv_channel_37 ,true 
+7a9f 2feffe01 isolate1 1 ,pdata 
+7aa0 2020fab0 branch frmt_le_next_adv_channel_38 ,true 
+7aa1 2feffe02 isolate1 2 ,pdata 
+7aa2 2020fab9 branch frmt_le_next_adv_channel_39 ,true 
+7aa3 20600000 rtn 
+
+frmt_channel_num_init:
+7aa4 6fe0c71e fetch 1 ,mem_channel_enable 
+7aa5 67e0c71f store 1 ,mem_channel_num 
+7aa6 20600000 rtn 
+
+frmt_le_next_adv_channel_37:
+7aa7 474f4033 bpatchx patch33_6 ,mem_patch33 
+7aa8 6fe0c71f fetch 1 ,mem_channel_num 
+7aa9 793ffe00 set0 0 ,pdata 
+7aaa 67e0c71f store 1 ,mem_channel_num 
+7aab 6848c36a fetcht 1 ,mem_le_adv_channel_map 
+7aac 79200400 set1 bit_adv_channel_map_37 ,temp 
+7aad 6048c36a storet 1 ,mem_le_adv_channel_map 
+7aae 70000725 jam 37 ,mem_le_ch_mapped 
+7aaf 20204309 branch le_next_adv_channel + 1 
+
+frmt_le_next_adv_channel_38:
+7ab0 474fc033 bpatchx patch33_7 ,mem_patch33 
+7ab1 6fe0c71f fetch 1 ,mem_channel_num 
+7ab2 793ffe01 set0 1 ,pdata 
+7ab3 67e0c71f store 1 ,mem_channel_num 
+7ab4 6848c36a fetcht 1 ,mem_le_adv_channel_map 
+7ab5 79200401 set1 bit_adv_channel_map_38 ,temp 
+7ab6 6048c36a storet 1 ,mem_le_adv_channel_map 
+7ab7 70000726 jam 38 ,mem_le_ch_mapped 
+7ab8 20204309 branch le_next_adv_channel + 1 
+
+frmt_le_next_adv_channel_39:
+7ab9 47504034 bpatchx patch34_0 ,mem_patch34 
+7aba 6fe0c71f fetch 1 ,mem_channel_num 
+7abb 793ffe02 set0 2 ,pdata 
+7abc 67e0c71f store 1 ,mem_channel_num 
+7abd 6848c36a fetcht 1 ,mem_le_adv_channel_map 
+7abe 79200402 set1 bit_adv_channel_map_39 ,temp 
+7abf 6048c36a storet 1 ,mem_le_adv_channel_map 
+7ac0 70000727 jam 39 ,mem_le_ch_mapped 
+7ac1 20204309 branch le_next_adv_channel + 1 
+
+frmt_adv_rear_6bytes_and_whitening_and_set_pdu_common_short_press:
+7ac2 20407ac4 call frmt_light_set_pdu_common_short_press 
+7ac3 20207ae8 branch frmt_adv_rear_6bytes_and_whitening 
+
+frmt_light_set_pdu_common_short_press:
+7ac4 4750c034 bpatchx patch34_1 ,mem_patch34 
+7ac5 20407ad5 call frmt_light_flag_set_short_press 
+
+frmt_light_set_pdu_packet_num_and_addr:
+7ac6 47514034 bpatchx patch34_2 ,mem_patch34 
+7ac7 6fe0c58a fetch 1 ,mem_ftd_adv_raw_packet_num 
+7ac8 1fe0fe01 pincrease 1 
+7ac9 67e0c58a store 1 ,mem_ftd_adv_raw_packet_num 
+7aca 6fe0c4a6 fetch 1 ,mem_ble_v2_maintype 
+7acb 1fe67c03 sub pdata ,3 ,null 
+7acc 2042fad1 call frmt_fan_lamp ,zero 
+7acd 6fe0c4a6 fetch 1 ,mem_ble_v2_maintype 
+7ace 1fe67c05 sub pdata ,5 ,null 
+7acf 2042fad3 call frmt_solar_lamp ,zero 
+7ad0 20207ade branch frmt_light_groups_address_set 
+
+frmt_fan_lamp:
+7ad1 70458983 jam 0x83 ,mem_ftd_adv_raw_data + 2 
+7ad2 20600000 rtn 
+
+frmt_solar_lamp:
+7ad3 70458988 jam 0x88 ,mem_ftd_adv_raw_data + 2 
+7ad4 20600000 rtn 
+
+frmt_light_flag_set_short_press:
+7ad5 4751c034 bpatchx patch34_3 ,mem_patch34 
+7ad6 70435f01 jam 1 ,mem_le_adv_enable 
+7ad7 7046a901 jam key_press_led_on_time ,mem_indicator_led_turn_on_timeout 
+7ad8 7046a801 jam 1 ,mem_indicator_turn_on_enable 
+7ad9 6fe1476c fetch 2 ,mem_light_adv_time 
+7ada 67e145a2 store 2 ,mem_ble_light_adv_timeout 
+7adb 1fe0fe01 pincrease 1 
+7adc 67e146a6 store 2 ,mem_light_lpm_enable_timeout 
+7add 20600000 rtn 
+
+frmt_light_groups_address_set:
+7ade 47524034 bpatchx patch34_4 ,mem_patch34 
+7adf 6fe0c57c fetch 1 ,mem_ftd_adv_raw_device_add_temp + 1 
+7ae0 d84000f0 arg 0xf0 ,temp 
+7ae1 98417e00 iand temp ,pdata 
+7ae2 6848c581 fetcht 1 ,mem_groups_num 
+7ae3 9840fe00 iadd temp ,pdata 
+7ae4 67e0c57c store 1 ,mem_ftd_adv_raw_device_add_temp + 1 
+7ae5 6fe1457b fetch 2 ,mem_ftd_adv_raw_device_add_temp 
+7ae6 67e14585 store 2 ,mem_ftd_adv_raw_device_add 
+7ae7 20600000 rtn 
+
+frmt_adv_rear_6bytes_and_whitening:
+7ae8 4752c034 bpatchx patch34_5 ,mem_patch34 
+7ae9 6fe0c57f fetch 1 ,mem_light_manufacture_id 
+7aea 245a7b01 ncall frmt_adv_rear_6bytes_and_whitening_pdu2 ,blank 
+7aeb 6fe0c584 fetch 1 ,mem_ftd_adv_raw 
+7aec 1fe67c28 sub pdata ,light_cmd_pairing_code ,null 
+7aed 2042fafe call frmt_light_pdu1_manufacturer_id_set ,zero 
+7aee 20407b1b call frmt_adv_rear_6bytes 
+7aef d8a0463f arg mem_adv_packet_payload ,contw 
+7af0 d8c04584 arg mem_ftd_adv_raw ,contr 
+7af1 df20000e arg 14 ,loopcnt 
+7af2 2040740c call memcpy_fast 
+7af3 df200027 arg ftd_pdu_len ,loopcnt 
+7af4 d8c04628 arg mem_adv_packet ,contr 
+7af5 d8a0464f arg mem_light_whitening_buffer ,contw 
+7af6 2040740c call memcpy_fast 
+7af7 70467a27 jam ftd_pdu_len ,mem_light_recvd_len 
+7af8 70467b53 jam 83 ,mem_light_whitening_i 
+7af9 20407b73 call frmt_light_reverse_and_ble_whitening 
+7afa 6fe0c57f fetch 1 ,mem_light_manufacture_id 
+7afb 67e0c659 store 1 ,mem_light_whitening_buffer + 10 
+7afc 47534034 bpatchx patch34_6 ,mem_patch34 
+7afd 20600000 rtn 
+
+frmt_light_pdu1_manufacturer_id_set:
+7afe 6fe0c57f fetch 1 ,mem_light_manufacture_id 
+7aff 67e0c58b store 1 ,mem_ftd_adv_raw_reserved 
+7b00 20600000 rtn 
+
+frmt_adv_rear_6bytes_and_whitening_pdu2:
+7b01 4753c034 bpatchx patch34_7 ,mem_patch34 
+7b02 6fe0c584 fetch 1 ,mem_ftd_adv_raw 
+7b03 1fe67c28 sub pdata ,light_cmd_pairing_code ,null 
+7b04 2042fb18 call frmt_light_pdu2_manufacturer_id_set ,zero 
+7b05 20407b1b call frmt_adv_rear_6bytes 
+7b06 d8a0463f arg mem_adv_packet_payload ,contw 
+7b07 d8c04584 arg mem_ftd_adv_raw ,contr 
+7b08 df20000e arg 14 ,loopcnt 
+7b09 2040740c call memcpy_fast 
+7b0a df200027 arg ftd_pdu_len ,loopcnt 
+7b0b d8c04628 arg mem_adv_packet ,contr 
+7b0c d8a0464f arg mem_light_whitening_buffer ,contw 
+7b0d 2040740c call memcpy_fast 
+7b0e 70467a27 jam ftd_pdu_len ,mem_light_recvd_len 
+7b0f 70467b53 jam 83 ,mem_light_whitening_i 
+7b10 20407b73 call frmt_light_reverse_and_ble_whitening 
+7b11 df200027 arg ftd_pdu_len ,loopcnt 
+7b12 d8c0464f arg mem_light_whitening_buffer ,contr 
+7b13 d8a046b0 arg mem_light_whitening_buffer_2 ,contw 
+7b14 2040740c call memcpy_fast 
+7b15 6fe0c6ae fetch 1 ,mem_light_manufacture_id2 
+7b16 67e0c6ba store 1 ,mem_light_whitening_buffer_2 + 10 
+7b17 20600000 rtn 
+
+frmt_light_pdu2_manufacturer_id_set:
+7b18 6fe0c6ae fetch 1 ,mem_light_manufacture_id2 
+7b19 67e0c58b store 1 ,mem_ftd_adv_raw_reserved 
+7b1a 20600000 rtn 
+
+frmt_adv_rear_6bytes:
+7b1b 47544035 bpatchx patch35_0 ,mem_patch35 
+7b1c 70458c01 jam 1 ,mem_ftd_adv_raw + 8 
+7b1d 70458d00 jam 0 ,mem_ftd_adv_raw + 9 
+7b1e 180a7e00 random pdata 
+7b1f 1fec8400 rshift8 pdata ,temp 
+7b20 6048c58e storet 1 ,mem_ftd_adv_raw + 10 
+7b21 67e0c58f store 1 ,mem_ftd_adv_raw + 11 
+7b22 1fe47e00 invert pdata ,pdata 
+7b23 67e144c6 store 2 ,mem_adv_crc_false_initvalue 
+7b24 6fe0c58f fetch 1 ,mem_ftd_adv_raw + 11 
+7b25 6848c58c fetcht 1 ,mem_ftd_adv_raw + 8 
+7b26 9842fe00 ixor temp ,pdata 
+7b27 67e0c58c store 1 ,mem_ftd_adv_raw + 8 
+7b28 6848c58d fetcht 1 ,mem_ftd_adv_raw + 9 
+7b29 9842fe00 ixor temp ,pdata 
+7b2a 67e0c58d store 1 ,mem_ftd_adv_raw + 9 
+
+frmt_crc16_ccitt_false_ftd:
+7b2b 4754c035 bpatchx patch35_1 ,mem_patch35 
+7b2c da604584 arg mem_ftd_adv_raw ,regc 
+7b2d df20000c arg 0x0c ,loopcnt 
+7b2e 20407b37 call frmt_crc16_ccitt_false_choose 
+7b2f 6fe144c6 fetch 2 ,mem_adv_crc_false_initvalue 
+7b30 da20ff00 arg 0xff00 ,rega 
+7b31 9a210400 iand rega ,temp 
+7b32 184c8400 rshift8 temp ,temp 
+7b33 6048c590 storet 1 ,mem_ftd_adv_raw + 12 
+7b34 6fe0c4c6 fetch 1 ,mem_adv_crc_false_initvalue 
+7b35 67e0c591 store 1 ,mem_ftd_adv_raw + 13 
+7b36 20600000 rtn 
+
+frmt_crc16_ccitt_false_choose:
+7b37 6fe0c721 fetch 1 ,mem_special_agreemeet_enable 
+7b38 c0017b57 beq 2 ,key_crc16_ccitt_false1 
+7b39 20207b3a branch frmt_crc16_ccitt_false 
+
+frmt_crc16_ccitt_false:
+7b3a 47554035 bpatchx patch35_2 ,mem_patch35 
+7b3b e8408013 ifetcht 1 ,regc 
+7b3c 184d0400 lshift8 temp ,temp 
+7b3d 6fe144c6 fetch 2 ,mem_adv_crc_false_initvalue 
+7b3e 98428400 ixor temp ,temp 
+7b3f d8e00000 arg 0x0 ,queue 
+7b40 20407b45 call frmt_crc16_deal_next_8bits 
+7b41 604944c6 storet 2 ,mem_adv_crc_false_initvalue 
+7b42 1a60a601 increase 1 ,regc 
+7b43 c2007b3a loop frmt_crc16_ccitt_false 
+7b44 20600000 rtn 
+
+frmt_crc16_deal_next_8bits:
+7b45 18427e00 copy temp ,pdata 
+7b46 1feca200 rshift8 pdata ,rega 
+7b47 1a31a200 rshift4 rega ,rega 
+7b48 1a292200 rshift3 rega ,rega 
+7b49 1fe38400 lshift pdata ,temp 
+7b4a 1a227e00 copy rega ,pdata 
+7b4b 245a7b50 ncall frmt_crc16_xor_ploy ,blank 
+7b4c 18e08e01 increase 1 ,queue 
+7b4d 18e27e00 copy queue ,pdata 
+7b4e c0847b45 bne 0x08 ,frmt_crc16_deal_next_8bits 
+7b4f 20600000 rtn 
+
+frmt_crc16_xor_ploy:
+7b50 6fe144c8 fetch 2 ,mem_crc16_polynomial 
+7b51 1fe22200 copy pdata ,rega 
+7b52 18427e00 copy temp ,pdata 
+7b53 9a22fe00 ixor rega ,pdata 
+7b54 da20ffff arg 0xffff ,rega 
+7b55 9a210400 iand rega ,temp 
+7b56 20600000 rtn 
+
+key_crc16_ccitt_false1:
+7b57 4755c035 bpatchx patch35_3 ,mem_patch35 
+7b58 6fe144c6 fetch 2 ,mem_adv_crc_false_initvalue 
+
+key_crc16_ccitt_false_loop:
+7b59 e8408013 ifetcht 1 ,regc 
+7b5a 1a60a601 increase 1 ,regc 
+7b5b 184d8400 reverse temp ,temp 
+7b5c 184d0400 lshift8 temp ,temp 
+7b5d 9842fe00 ixor temp ,pdata 
+
+key_crc16_for_byte:
+7b5e 1f222400 copy loopcnt ,regb 
+7b5f df200008 arg 8 ,loopcnt 
+
+key_crc16_for_byte_loop:
+7b60 2feffe0f isolate1 15 ,pdata 
+7b61 1fe3fe00 lshift pdata ,pdata 
+7b62 2420fb65 nbranch key_crc16_for_byte_continue ,true 
+7b63 684944c8 fetcht 2 ,mem_crc16_polynomial 
+7b64 9842fe00 ixor temp ,pdata 
+
+key_crc16_for_byte_continue:
+7b65 c2007b60 loop key_crc16_for_byte_loop 
+7b66 1a427200 copy regb ,loopcnt 
+7b67 c2007b59 loop key_crc16_ccitt_false_loop 
+7b68 67e144c6 store 2 ,mem_adv_crc_false_initvalue 
+7b69 6848c4c6 fetcht 1 ,mem_adv_crc_false_initvalue 
+7b6a 184d8400 reverse temp ,temp 
+7b6b 6fe0c4c7 fetch 1 ,mem_adv_crc_false_initvalue + 1 
+7b6c 1fedfe00 reverse pdata ,pdata 
+7b6d 6048c4c7 storet 1 ,mem_adv_crc_false_initvalue + 1 
+7b6e 67e0c4c6 store 1 ,mem_adv_crc_false_initvalue 
+7b6f 20600000 rtn 
+
+frmt_light_ble_whitening_and_reverse:
+7b70 47564035 bpatchx patch35_4 ,mem_patch35 
+7b71 20407b7b call frmt_light_ble_whitening 
+7b72 20207b76 branch frmt_fml_whitening_buffer_bytes_reverse 
+
+frmt_light_reverse_and_ble_whitening:
+7b73 4756c035 bpatchx patch35_5 ,mem_patch35 
+7b74 20407b76 call frmt_fml_whitening_buffer_bytes_reverse 
+7b75 20207b7b branch frmt_light_ble_whitening 
+
+frmt_fml_whitening_buffer_bytes_reverse:
+7b76 47574035 bpatchx patch35_6 ,mem_patch35 
+7b77 d8c0464f arg mem_light_whitening_buffer ,contr 
+7b78 d8a0464f arg mem_light_whitening_buffer ,contw 
+7b79 df200027 arg ftd_pdu_len ,loopcnt 
+7b7a 20207b83 branch frmt_fml_bytes_reverse_loop 
+
+frmt_light_ble_whitening:
+7b7b 4757c035 bpatchx patch35_7 ,mem_patch35 
+7b7c df200027 arg ftd_pdu_len ,loopcnt 
+7b7d da60464f arg mem_light_whitening_buffer ,regc 
+7b7e da400053 arg 83 ,regb 
+7b7f 6fe0c721 fetch 1 ,mem_special_agreemeet_enable 
+7b80 1fe67c02 sub pdata ,2 ,null 
+7b81 2042f607 call key_whitening_i_get ,zero 
+7b82 20207b89 branch frmt_ble_whitening 
+
+frmt_fml_bytes_reverse_loop:
+7b83 47584036 bpatchx patch36_0 ,mem_patch36 
+7b84 efe08006 ifetch 1 ,contr 
+7b85 1fedfe00 reverse pdata ,pdata 
+7b86 e7e08005 istore 1 ,contw 
+7b87 c2007b83 loop frmt_fml_bytes_reverse_loop 
+7b88 20600000 rtn 
+
+frmt_ble_whitening:
+
+frmt_ble_whitening_loop:
+7b89 4758c036 bpatchx patch36_1 ,mem_patch36 
+7b8a 20407b8e call frmt_ble_whitening_byte 
+7b8b 1a60a601 increase 1 ,regc 
+7b8c c2007b89 loop frmt_ble_whitening_loop 
+7b8d 20600000 rtn 
+
+frmt_ble_whitening_byte:
+7b8e 47594036 bpatchx patch36_2 ,mem_patch36 
+7b8f da200001 arg 1 ,rega 
+
+frmt_ble_whitening_byte_loop:
+7b90 1a43a400 lshift regb ,regb 
+7b91 2a4ffe07 isolate1 7 ,regb 
+7b92 2040fb97 call frmt_ble_whitening_byte_xor ,true 
+7b93 1a23a200 lshift rega ,rega 
+7b94 1a227e00 deposit rega 
+7b95 c3840000 rtnbit1 8 
+7b96 20207b90 branch frmt_ble_whitening_byte_loop 
+
+frmt_ble_whitening_byte_xor:
+7b97 4759c036 bpatchx patch36_3 ,mem_patch36 
+7b98 efe08013 ifetch 1 ,regc 
+7b99 9a22fe00 ixor rega ,pdata 
+7b9a e7e08013 istore 1 ,regc 
+7b9b 1a42a411 xor regb ,0x11 ,regb 
+7b9c 20600000 rtn 
+
+frmt_apl_cb_event_timer:
+7b9d 6fe0c721 fetch 1 ,mem_special_agreemeet_enable 
+7b9e 1fe67c01 sub pdata ,1 ,null 
+7b9f 2042fbcd call p_light_gem_long_press_cnt_timer ,zero 
+7ba0 20407bc3 call frmt_light_reset_continuous_kps_cnt_timer 
+7ba1 20407ba9 call frmt_light_kscan_analysis_interval_timer 
+7ba2 20407bad call frmt_light_le_adv_timer 
+7ba3 20407bc0 call frmt_light_long_press_timer 
+7ba4 20407bb2 call frmt_light_indicator_led_timer 
+7ba5 20407bb7 call frmt_light_enter_lpm_timer 
+7ba6 20407bbb call frmt_light_color_and_lightness_long_press_timer 
+7ba7 475a4036 bpatchx patch36_4 ,mem_patch36 
+7ba8 20600000 rtn 
+
+frmt_light_kscan_analysis_interval_timer:
+7ba9 da604579 arg mem_kscan_analysis_interval_timeout ,regc 
+7baa da407bac arg frmt_light_kscan_analysis_interval_timeout ,regb 
+7bab 20204dd3 branch timer_single_step_2b 
+
+frmt_light_kscan_analysis_interval_timeout:
+7bac 20600000 rtn 
+
+frmt_light_le_adv_timer:
+7bad da6045a2 arg mem_ble_light_adv_timeout ,regc 
+7bae da407bb0 arg frmt_light_le_adv_time_timeout ,regb 
+7baf 20204dd3 branch timer_single_step_2b 
+
+frmt_light_le_adv_time_timeout:
+7bb0 70435f00 jam 0 ,mem_le_adv_enable 
+7bb1 20600000 rtn 
+
+frmt_light_indicator_led_timer:
+7bb2 da6046a9 arg mem_indicator_led_turn_on_timeout ,regc 
+7bb3 da407bb5 arg frmt_light_indicator_led_timer_timeout ,regb 
+7bb4 20204dd3 branch timer_single_step_2b 
+
+frmt_light_indicator_led_timer_timeout:
+7bb5 7046a800 jam 0 ,mem_indicator_turn_on_enable 
+7bb6 20600000 rtn 
+
+frmt_light_enter_lpm_timer:
+7bb7 da6046a6 arg mem_light_lpm_enable_timeout ,regc 
+7bb8 da407bba arg frmt_light_enter_lpm_timeout ,regb 
+7bb9 20204dd3 branch timer_single_step_2b 
+
+frmt_light_enter_lpm_timeout:
+7bba 20600000 rtn 
+
+frmt_light_color_and_lightness_long_press_timer:
+7bbb da604722 arg mem_light_short_keypress_timeout ,regc 
+7bbc da407bbe arg frmt_light_color_and_lightness_long_press_timeout ,regb 
+7bbd 20204dd3 branch timer_single_step_2b 
+
+frmt_light_color_and_lightness_long_press_timeout:
+7bbe 70472401 jam 1 ,mem_light_color_and_lgtness_long_press_adv_enable 
+7bbf 20600000 rtn 
+
+frmt_light_long_press_timer:
+7bc0 da604594 arg mem_long_press_timeout ,regc 
+7bc1 da407bc6 arg p_light_long_press_timeout_cb ,regb 
+7bc2 20204dd3 branch timer_single_step_2b 
+
+frmt_light_reset_continuous_kps_cnt_timer:
+7bc3 da604709 arg mem_light_continuous_kps_cnt_reset_timeout ,regc 
+7bc4 da407bc8 arg p_light_reset_continuous_kps_cnt_timeout_cb ,regb 
+7bc5 20204dd3 branch timer_single_step_2b 
+
+p_light_long_press_timeout_cb:
+7bc6 6fe14766 fetch 2 ,mem_rmt_long_press_cb 
+7bc7 20207487 branch callback_func 
+
+p_light_reset_continuous_kps_cnt_timeout_cb:
+7bc8 6fe14768 fetch 2 ,mem_rmt_continuous_keydown_cb 
+7bc9 20207487 branch callback_func 
+
+frmt_light_set_continuous_kps_cnt_reset_timeout:
+7bca 6fe1476a fetch 2 ,mem_rmt_continuous_kps_time 
+7bcb 67e14709 store 2 ,mem_light_continuous_kps_cnt_reset_timeout 
+7bcc 20600000 rtn 
+
+p_light_gem_long_press_cnt_timer:
+7bcd da6044e4 arg mem_gem_cnt_inces_timeout ,regc 
+7bce da407bd0 arg p_light_gem_long_press_cnt_timeout ,regb 
+7bcf 20204dd3 branch timer_single_step_2b 
+
+p_light_gem_long_press_cnt_timeout:
+7bd0 6fe14594 fetch 2 ,mem_long_press_timeout 
+7bd1 207a0000 rtn blank 
+7bd2 7044e801 jam 1 ,mem_gem_long_cnt_enable 
+7bd3 20600000 rtn 
+
+fan_idle_process:
+7bd4 4731c02c bpatchx patch2c_3 ,mem_patch2c 
+7bd5 20207bd7 branch fan_le_scan_process 
+
+fan_apl_event_timer:
+7bd6 20600000 rtn 
+
+fan_le_scan_process:
+7bd7 4732402c bpatchx patch2c_4 ,mem_patch2c 
+7bd8 20403cf9 call le_enable 
+7bd9 7854fc00 disable master 
+7bda 20404296 call le_init_adv 
+7bdb 20407be1 call p_le_wait_adv 
+7bdc 24768000 nrtn match 
+7bdd 6fe08002 fetch 1 ,mem_le_adv_rcv 
+7bde 1fe0fe01 increase 1 ,pdata 
+7bdf 67e08002 store 1 ,mem_le_adv_rcv 
+7be0 20207c5d branch fan_apl_ble_rx_v1_or_v2 
+
+p_le_wait_adv:
+7be1 20407be3 call p_le_next_scan_chanel 
+7be2 20203d92 branch le_receive_adv 
+
+p_le_next_scan_chanel:
+7be3 6fe0c779 fetch 1 ,mem_ble_ch_mapped 
+7be4 67e08007 store 1 ,mem_le_ch_mapped 
+7be5 20600000 rtn 
+
+fan_apl_pair:
+7be6 58000003 setarg fan_433_pairing 
+7be7 20207d54 branch fan_fml_fet_ctl 
+
+fan_apl_light_on_and_off:
+7be8 58000008 setarg fan_433_lamp_on_and_off 
+7be9 20207d54 branch fan_fml_fet_ctl 
+
+fan_apl_is_yc_remoter:
+7bea 6fe34788 fetch 6 ,mem_recv_addr 
+7beb 684b4782 fetcht 6 ,mem_yc_fan_ble_addr 
+7bec 98467c00 isub temp ,null 
+7bed 20600000 rtn 
+
+fan_apl_light_on:
+7bee 6fe0c773 fetch 1 ,mem_fan_yc_identify_flag 
+7bef 203a7bf6 branch fan_apl_light_on_only ,blank 
+7bf0 6fe0c778 fetch 1 ,mem_light_device_flag 
+7bf1 c000fbf6 beq 1 ,fan_apl_light_on_only 
+7bf2 6fe0c777 fetch 1 ,mem_manufacture_id_temp 
+7bf3 c0287bf6 beq 0x50 ,fan_apl_light_on_only 
+7bf4 20407bea call fan_apl_is_yc_remoter 
+7bf5 2022fbe8 branch fan_apl_light_on_and_off ,zero 
+
+fan_apl_light_on_only:
+7bf6 58000014 setarg fan_433_lamp_on_only 
+7bf7 20207d54 branch fan_fml_fet_ctl 
+
+fan_apl_light_off:
+7bf8 6fe0c773 fetch 1 ,mem_fan_yc_identify_flag 
+7bf9 203a7c00 branch fan_apl_light_off_only ,blank 
+7bfa 6fe0c778 fetch 1 ,mem_light_device_flag 
+7bfb c000fc00 beq 1 ,fan_apl_light_off_only 
+7bfc 6fe0c777 fetch 1 ,mem_manufacture_id_temp 
+7bfd c0287c00 beq 0x50 ,fan_apl_light_off_only 
+7bfe 20407bea call fan_apl_is_yc_remoter 
+7bff 2022fbe8 branch fan_apl_light_on_and_off ,zero 
+
+fan_apl_light_off_only:
+7c00 58000018 setarg fan_433_lamp_off_only 
+7c01 20207d54 branch fan_fml_fet_ctl 
+
+fan_apl_master_off:
+7c02 58000006 setarg fan_433_master_on_and_off 
+7c03 20207d54 branch fan_fml_fet_ctl 
+
+fan_apl_light_color_switch:
+7c04 6fe0c7a9 fetch 1 ,mem_ble_parameter_para + 1 
+7c05 c1a00000 rtnne light_cmd_ftd_color_swtich_reserved 
+7c06 58000005 setarg fan_433_color_switch 
+7c07 20207d54 branch fan_fml_fet_ctl 
+
+fan_apl_speed_30:
+7c08 6fe147a9 fetch 2 ,mem_ble_parameter_para + 1 
+7c09 243a7c0c nbranch fan_apl_speed_opcode_30_incse ,blank 
+
+fan_apl_speed_opcode_30_decse:
+7c0a 5800001b setarg fan_433_fan_speed_dec 
+7c0b 20207d54 branch fan_fml_fet_ctl 
+
+fan_apl_speed_opcode_30_incse:
+7c0c 58000017 setarg fan_433_fan_speed_inc 
+7c0d 20207d54 branch fan_fml_fet_ctl 
+
+fan_apl_speed_31_v1:
+7c0e 6fe0c7aa fetch 1 ,mem_ble_parameter_para + 2 
+7c0f c0007c20 beq fan_speed_flag_off ,fan_apl_speed_32_to_0_and_deflector_off 
+7c10 c000fc22 beq fan_speed_flag_low ,fan_apl_speed_32_to_1 
+7c11 c0017c26 beq fan_speed_flag_middle ,fan_apl_speed_32_to_3 
+7c12 c001fc2a beq fan_speed_flag_high ,fan_apl_speed_32_to_5 
+7c13 20600000 rtn 
+
+fan_apl_speed_31_v2:
+7c14 6fe0c7a9 fetch 1 ,mem_ble_parameter_para + 1 
+7c15 c0107c17 beq 0x20 ,fan_apl_speed_32 
+7c16 20207c0e branch fan_apl_speed_31_v1 
+
+fan_apl_speed_32:
+7c17 6fe0c7aa fetch 1 ,mem_ble_parameter_para + 2 
+7c18 c0007c20 beq fan_speed_flag_off ,fan_apl_speed_32_to_0_and_deflector_off 
+7c19 c000fc22 beq 1 ,fan_apl_speed_32_to_1 
+7c1a c0017c24 beq 2 ,fan_apl_speed_32_to_2 
+7c1b c001fc26 beq 3 ,fan_apl_speed_32_to_3 
+7c1c c0027c28 beq 4 ,fan_apl_speed_32_to_4 
+7c1d c002fc2a beq 5 ,fan_apl_speed_32_to_5 
+7c1e c0037c2c beq 6 ,fan_apl_speed_32_to_6 
+7c1f 20600000 rtn 
+
+fan_apl_speed_32_to_0_and_deflector_off:
+
+fan_apl_speed_32_to_0:
+7c20 58000016 setarg fan_433_tap_posotion_0 
+7c21 20207d54 branch fan_fml_fet_ctl 
+
+fan_apl_speed_32_to_1:
+7c22 58000010 setarg fan_433_tap_posotion_1 
+7c23 20207d54 branch fan_fml_fet_ctl 
+
+fan_apl_speed_32_to_2:
+7c24 58000012 setarg fan_433_tap_posotion_2 
+7c25 20207d54 branch fan_fml_fet_ctl 
+
+fan_apl_speed_32_to_3:
+7c26 5800001c setarg fan_433_tap_posotion_3 
+7c27 20207d54 branch fan_fml_fet_ctl 
+
+fan_apl_speed_32_to_4:
+7c28 5800000a setarg fan_433_tap_posotion_4 
+7c29 20207d54 branch fan_fml_fet_ctl 
+
+fan_apl_speed_32_to_5:
+7c2a 5800000f setarg fan_433_tap_posotion_5 
+7c2b 20207d54 branch fan_fml_fet_ctl 
+
+fan_apl_speed_32_to_6:
+7c2c 5800000c setarg fan_433_tap_posotion_6 
+7c2d 20207d54 branch fan_fml_fet_ctl 
+
+fan_apl_wind_direction:
+7c2e 6fe0c7a9 fetch 1 ,mem_ble_parameter_para + 1 
+7c2f 203a7c32 branch fan_fml_wind_direction_forward_433 ,blank 
+
+fan_fml_wind_direction_reverse_433:
+7c30 58000011 setarg fan_433_turning_reverse 
+7c31 20207d54 branch fan_fml_fet_ctl 
+
+fan_fml_wind_direction_forward_433:
+7c32 58000004 setarg fan_433_turniing_forward 
+7c33 20207d54 branch fan_fml_fet_ctl 
+
+fan_apl_wind_direction_on_and_off:
+7c34 58000007 setarg fan_433_wind_reverse 
+7c35 20207d54 branch fan_fml_fet_ctl 
+
+fan_apl_deflector_ctl_on_and_off:
+7c36 58000013 setarg fan_433_deflector_on_and_off 
+7c37 20207d54 branch fan_fml_fet_ctl 
+
+fan_apl_deflector_ctl:
+7c38 6fe0c7a9 fetch 1 ,mem_ble_parameter_para + 1 
+7c39 203a7c3c branch fan_apl_deflector_off ,blank 
+
+fan_apl_deflector_on:
+7c3a 5800000d setarg fan_433_deflector_on 
+7c3b 20207d54 branch fan_fml_fet_ctl 
+
+fan_apl_deflector_off:
+7c3c 5800000e setarg fan_433_deflector_off 
+7c3d 20207d54 branch fan_fml_fet_ctl 
+
+fan_apl_mode:
+7c3e 4732c02c bpatchx patch2c_5 ,mem_patch2c 
+7c3f 6fe0c7a9 fetch 1 ,mem_ble_parameter_para + 1 
+7c40 c000fc43 beq ble_para_sleep_mode ,fan_fml_mode_sleep_wind 
+7c41 c0017c45 beq ble_para_natural_mode ,fan_apl_mode_natural_wind 
+7c42 20600000 rtn 
+
+fan_fml_mode_sleep_wind:
+7c43 5800001e setarg fan_433_sleep_wind 
+7c44 20207d54 branch fan_fml_fet_ctl 
+
+fan_apl_mode_natural_wind:
+7c45 58000015 setarg fan_433_natural_wind 
+7c46 20207d54 branch fan_fml_fet_ctl 
+
+fan_apl_timing_to_off:
+7c47 6fe147a9 fetch 2 ,mem_ble_parameter_para + 1 
+7c48 c07ffc56 beq fan_ble_cmd_timing_to_off_8hour_v1 ,fan_fml_timing_to_off_8hour 
+
+fan_apl_timing_to_off_v2:
+7c49 4733402c bpatchx patch2c_6 ,mem_patch2c 
+7c4a 6fe147a9 fetch 2 ,mem_ble_parameter_para + 1 
+7c4b c0707c56 beq fan_ble_cmd_timing_to_off_8hour ,fan_fml_timing_to_off_8hour 
+7c4c c01e7c50 beq fan_ble_cmd_timing_to_off_1hour ,fan_fml_timing_to_off_1hour 
+7c4d c03c7c52 beq fan_ble_cmd_timing_to_off_2hour ,fan_fml_timing_to_off_2hour 
+7c4e c0787c54 beq fan_ble_cmd_timing_to_off_4hour ,fan_fml_timing_to_off_4hour 
+7c4f 20600000 rtn 
+
+fan_fml_timing_to_off_1hour:
+7c50 58000002 setarg fan_433_timing_to_off_1hour 
+7c51 20207d54 branch fan_fml_fet_ctl 
+
+fan_fml_timing_to_off_2hour:
+7c52 58000009 setarg fan_433_timing_to_off_2hour 
+7c53 20207d54 branch fan_fml_fet_ctl 
+
+fan_fml_timing_to_off_4hour:
+7c54 58000019 setarg fan_433_timing_to_off_4hour 
+7c55 20207d54 branch fan_fml_fet_ctl 
+
+fan_fml_timing_to_off_8hour:
+7c56 5800001a setarg fan_433_timing_to_off_8hour 
+7c57 20207d54 branch fan_fml_fet_ctl 
+
+fan_init:
+7c58 58007bd4 setarg fan_idle_process 
+7c59 67e14394 store 2 ,mem_cb_idle_process 
+7c5a 58007d43 setarg fan_apl_cb_event_timer 
+7c5b 67e1439c store 2 ,mem_cb_event_timer 
+7c5c 20207d59 branch fan_fml_tx_low_level_init 
+
+fan_apl_ble_rx_v1_or_v2:
+7c5d 6fe0c771 fetch 1 ,mem_fan_protocol_select_flag 
+7c5e c0007c63 beq 0 ,fan_apl_ble_rx_packet 
+7c5f 6fe1477a fetch 2 ,mem_ble_v2_decoder 
+7c60 20407487 call callback_func 
+7c61 20347cb5 branch fan_apl_ble_rx_packet_v2_cb ,user 
+7c62 20600000 rtn 
+
+fan_apl_ble_rx_packet:
+7c63 4733c02c bpatchx patch2c_7 ,mem_patch2c 
+7c64 6fe08052 fetch 1 ,mem_le_rxbuf + 11 
+7c65 c02afc97 beq remoter_marker ,fan_apl_ble_rx_packet_is_remoter 
+7c66 70477700 jam 0 ,mem_manufacture_id_temp 
+7c67 58000000 setarg 0 
+7c68 67e34788 store 6 ,mem_recv_addr 
+
+fan_apl_ble_rx_packet_id_valid:
+7c69 68498053 fetcht 3 ,mem_le_rxbuf + 12 
+7c6a 58528718 setarg ftd_remoter_id_code 
+7c6b 98467c00 isub temp ,null 
+7c6c 70477800 jam 0 ,mem_light_device_flag 
+7c6d 2022fc79 branch fan_apl_ble_rx_packet_preamble_valid ,zero 
+7c6e 70477801 jam 1 ,mem_light_device_flag 
+7c6f 5808f9ff setarg ftd_andriod4913_id_code 
+7c70 98467c00 isub temp ,null 
+7c71 2022fc79 branch fan_apl_ble_rx_packet_preamble_valid ,zero 
+7c72 5808f903 setarg ftd_ios4913_id_code 
+7c73 98467c00 isub temp ,null 
+7c74 2022fc79 branch fan_apl_ble_rx_packet_preamble_valid ,zero 
+7c75 70477802 jam 2 ,mem_light_device_flag 
+7c76 58f87703 setarg ftd_b65f_id_code 
+7c77 98467c00 isub temp ,null 
+7c78 24628000 nrtn zero 
+
+fan_apl_ble_rx_packet_preamble_valid:
+7c79 d8c00047 arg mem_le_rxbuf ,contr 
+7c7a d8a0464f arg mem_light_whitening_buffer ,contw 
+7c7b df200027 arg ftd_pdu_len ,loopcnt 
+7c7c 20407419 call memcpy 
+7c7d 70467b53 jam 83 ,mem_light_whitening_i 
+7c7e 70467a27 jam 39 ,mem_light_recvd_len 
+7c7f 20407b70 call frmt_light_ble_whitening_and_reverse 
+7c80 6fe0c778 fetch 1 ,mem_light_device_flag 
+7c81 c000fc95 beq 1 ,fan_apl_ble_rx_packet_protocol_4913 
+7c82 d8c04666 arg mem_light_whitening_buffer + 23 ,contr 
+
+fan_apl_ble_rx_packet_get_protocol:
+7c83 d8a0473e arg mem_light_adv_packet ,contw 
+7c84 df20000e arg 14 ,loopcnt 
+7c85 2040740c call memcpy_fast 
+
+fan_apl_ble_rx_packet_validity_checkout:
+7c86 6fe14748 fetch 2 ,mem_light_adv_packet + 10 
+7c87 1ff0fe00 byteswap pdata ,pdata 
+7c88 1fe47e00 invert pdata ,pdata 
+7c89 67e144c6 store 2 ,mem_adv_crc_false_initvalue 
+7c8a da60473e arg mem_light_adv_packet ,regc 
+7c8b df20000c arg 0x0c ,loopcnt 
+7c8c 58001021 setarg 0x1021 
+7c8d 67e144c8 store 2 ,mem_crc16_polynomial 
+7c8e 20407b3a call frmt_crc16_ccitt_false 
+7c8f 6fe144c6 fetch 2 ,mem_adv_crc_false_initvalue 
+7c90 1ff0fe00 byteswap pdata ,pdata 
+7c91 6849474a fetcht 2 ,mem_light_adv_packet_encry + 4 
+7c92 98467c00 isub temp ,null 
+7c93 24628000 nrtn zero 
+7c94 20207ca8 branch fan_apl_ble_rx_packet_v1_cb 
+
+fan_apl_ble_rx_packet_protocol_4913:
+7c95 d8c04667 arg mem_light_whitening_buffer + 24 ,contr 
+7c96 20207c83 branch fan_apl_ble_rx_packet_get_protocol 
+
+fan_apl_ble_rx_packet_is_remoter:
+7c97 4734402d bpatchx patch2d_0 ,mem_patch2d 
+7c98 d8a04788 arg mem_recv_addr ,contw 
+7c99 d8c00049 arg mem_le_rxbuf + 2 ,contr 
+7c9a df200006 arg 6 ,loopcnt 
+7c9b 2040740c call memcpy_fast 
+7c9c 6fe08051 fetch 1 ,mem_le_rxbuf + 10 
+7c9d 67e0c777 store 1 ,mem_manufacture_id_temp 
+7c9e 6848c774 fetcht 1 ,mem_customer_id 
+7c9f 98467c00 isub temp ,null 
+7ca0 2022fc69 branch fan_apl_ble_rx_packet_id_valid ,zero 
+7ca1 6848c775 fetcht 1 ,mem_customer_id_v2 
+7ca2 98467c00 isub temp ,null 
+7ca3 2022fc69 branch fan_apl_ble_rx_packet_id_valid ,zero 
+7ca4 6848c776 fetcht 1 ,mem_id_universal 
+7ca5 98467c00 isub temp ,null 
+7ca6 2022fc69 branch fan_apl_ble_rx_packet_id_valid ,zero 
+7ca7 20600000 rtn 
+
+fan_apl_ble_rx_packet_v1_cb:
+7ca8 4734c02d bpatchx patch2d_1 ,mem_patch2d 
+7ca9 6fe0c73e fetch 1 ,mem_light_adv_packet_cmd 
+7caa 67e147a6 store 2 ,mem_ble_parameter_cmd 
+7cab 6fe14741 fetch 2 ,mem_light_adv_packet_data 
+7cac 67e147a9 store 2 ,mem_ble_parameter_para + 1 
+7cad 6fe0c73f fetch 1 ,mem_light_adv_packet_addr 
+7cae 67e0c7ad store 1 ,mem_ble_parameter_addr + 1 
+7caf 6fe0c740 fetch 1 ,mem_light_adv_packet_addr + 1 
+7cb0 67e0c7ac store 1 ,mem_ble_parameter_addr 
+7cb1 6fe0c740 fetch 1 ,mem_light_adv_packet_addr + 1 
+7cb2 1fe17e0f and pdata ,0x0f ,pdata 
+7cb3 67e0c7ae store 1 ,mem_ble_parameter_group 
+7cb4 20207cc3 branch fan_apl_ble_rx_packet_cb_common 
+
+fan_apl_ble_rx_packet_v2_cb:
+7cb5 4735402d bpatchx patch2d_2 ,mem_patch2d 
+7cb6 6fe144b6 fetch 2 ,mem_ble_addr 
+7cb7 1ff27e00 lshift4 pdata ,pdata 
+7cb8 67e147ac store 2 ,mem_ble_parameter_addr 
+7cb9 6fe344bb fetch 6 ,mem_ble_cmd 
+7cba 67e347a6 store 6 ,mem_ble_parameter 
+7cbb 6fe0c4ba fetch 1 ,mem_ble_group 
+7cbc 67e0c7ae store 1 ,mem_ble_parameter_group 
+7cbd 6fe0c4c5 fetch 1 ,mem_ble_is_app 
+7cbe 67e0c778 store 1 ,mem_light_device_flag 
+7cbf 6fe0c4b2 fetch 1 ,mem_ble_customer_id 
+7cc0 67e0c777 store 1 ,mem_manufacture_id_temp 
+7cc1 6fe0c4b3 fetch 1 ,mem_ble_count 
+7cc2 67e0c744 store 1 ,mem_light_adv_packet_packetnum 
+
+fan_apl_ble_rx_packet_cb_common:
+7cc3 4735c02d bpatchx patch2d_3 ,mem_patch2d 
+7cc4 6fe147a4 fetch 2 ,mem_fan_packet_indiscriminate_cb 
+7cc5 20407487 call callback_func 
+
+fan_apl_ble_rx_cmd_execution:
+7cc6 20407cec call fan_apl_ble_cmd_handler_customer_message 
+7cc7 20740000 rtn user 
+7cc8 6fe147a6 fetch 2 ,mem_ble_parameter_cmd 
+7cc9 c0147be6 beq light_cmd_pairing_code ,fan_apl_pair 
+7cca c004fbe8 beq light_cmd_turn_on_and_off ,fan_apl_light_on_and_off 
+7ccb c0087bee beq light_cmd_turn_on ,fan_apl_light_on 
+7ccc c008fbf8 beq light_cmd_turn_off ,fan_apl_light_off 
+7ccd c037fc02 beq fan_cmd_master_on_and_off ,fan_apl_master_off 
+7cce c0187c08 beq fan_cmd_speed_change ,fan_apl_speed_30 
+7ccf c00afc2e beq fan_cmd_direction ,fan_apl_wind_direction 
+7cd0 c00bfc34 beq fan_cmd_direction_on_and_off ,fan_apl_wind_direction_on_and_off 
+7cd1 c00b7c38 beq fan_cmd_deflector ,fan_apl_deflector_ctl 
+7cd2 c00c7c36 beq fan_cmd_deflector_on_and_off ,fan_apl_deflector_ctl_on_and_off 
+7cd3 c019fc3e beq fan_cmd_mode ,fan_apl_mode 
+7cd4 6fe0c771 fetch 1 ,mem_fan_protocol_select_flag 
+7cd5 c0007cd8 beq 0 ,fan_apl_main_v1 
+7cd6 c000fce6 beq 1 ,fan_apl_main_v2 
+7cd7 20600000 rtn 
+
+fan_apl_main_v1:
+7cd8 6fe147a6 fetch 2 ,mem_ble_parameter_cmd 
+7cd9 c028fc47 beq fan_cmd_timing_to_off ,fan_apl_timing_to_off 
+7cda c020fc47 beq light_cmd_delay_off ,fan_apl_timing_to_off 
+7cdb 6fe14741 fetch 2 ,mem_light_adv_packet_data 
+7cdc 67e147aa store 2 ,mem_ble_parameter_para + 2 
+7cdd 6fe147a6 fetch 2 ,mem_ble_parameter_cmd 
+7cde c018fc0e beq fan_cmd_speed_31 ,fan_apl_speed_31_v1 
+7cdf c0197c17 beq fan_cmd_speed_32 ,fan_apl_speed_32 
+7ce0 6fe0c745 fetch 1 ,mem_light_adv_packet_reserve 
+7ce1 67e0c7a9 store 1 ,mem_ble_parameter_para + 1 
+7ce2 6fe147a6 fetch 2 ,mem_ble_parameter_cmd 
+7ce3 c010fc04 beq light_cmd_color_swtich ,fan_apl_light_color_switch 
+7ce4 4736402d bpatchx patch2d_4 ,mem_patch2d 
+7ce5 20600000 rtn 
+
+fan_apl_main_v2:
+7ce6 6fe147a6 fetch 2 ,mem_ble_parameter_cmd 
+7ce7 c018fc14 beq fan_cmd_speed_31 ,fan_apl_speed_31_v2 
+7ce8 c020fc49 beq light_cmd_delay_off ,fan_apl_timing_to_off_v2 
+7ce9 c010fc04 beq light_cmd_color_swtich ,fan_apl_light_color_switch 
+7cea 4736c02d bpatchx patch2d_5 ,mem_patch2d 
+7ceb 20600000 rtn 
+
+fan_apl_ble_cmd_handler_customer_message:
+7cec 4737402d bpatchx patch2d_6 ,mem_patch2d 
+7ced 204074ca call disable_user 
+7cee 684947ac fetcht 2 ,mem_ble_parameter_addr 
+7cef d8e00009 arg 9 ,queue 
+7cf0 df20000a arg 10 ,loopcnt 
+
+fan_apl_ble_rx_packet_addr_check_loop:
+7cf1 1f26260a sub loopcnt ,10 ,regc 
+7cf2 18e27e00 deposit queue 
+7cf3 9a667c00 isub regc ,null 
+7cf4 20217cf8 branch fan_apl_ble_rx_packet_addr_check ,positive 
+
+fan_apl_ble_rx_packet_other_addr_check_continue:
+7cf5 1a667c03 sub regc ,3 ,null 
+7cf6 24217cf8 nbranch fan_apl_ble_rx_packet_addr_check ,positive 
+7cf7 20207d03 branch fan_apl_ble_rx_packet_addr_check_end 
+
+fan_apl_ble_rx_packet_addr_check:
+7cf8 d8c0055e arg mem_flash_paired_addr_base ,contr 
+7cf9 1a6ffe03 mul32 regc ,3 ,pdata 
+7cfa 98c08c00 iadd contr ,contr 
+7cfb efe10006 ifetch 2 ,contr 
+7cfc 98467c00 isub temp ,null 
+7cfd 2422fd03 nbranch fan_apl_ble_rx_packet_addr_check_end ,zero 
+7cfe ea208006 ifetchr rega ,1 ,contr 
+7cff 6fe0c7ae fetch 1 ,mem_ble_parameter_group 
+7d00 203a7d13 branch fan_apl_ble_rx_packet_cnt_check ,blank 
+7d01 9a267c00 isub rega ,null 
+7d02 2022fd13 branch fan_apl_ble_rx_packet_cnt_check ,zero 
+
+fan_apl_ble_rx_packet_addr_check_end:
+7d03 c2007cf1 loop fan_apl_ble_rx_packet_addr_check_loop 
+7d04 da200576 arg mem_flash_paired_addr8 ,rega 
+7d05 df200009 arg 9 ,loopcnt 
+
+fan_apl_ble_rx_packet_addr_move_loop:
+7d06 efe18011 ifetch 3 ,rega 
+7d07 1a208403 add rega ,3 ,temp 
+7d08 e7e18002 istore 3 ,temp 
+7d09 1a20a3fd increase -3 ,rega 
+7d0a c2007d06 loop fan_apl_ble_rx_packet_addr_move_loop 
+7d0b 6fe1c7ac fetch 3 ,mem_ble_parameter_addr 
+7d0c 67e1855e store 3 ,mem_flash_paired_addr0 
+7d0d 6fe08584 fetch 1 ,mem_addr8_msg_cnt 
+7d0e 67e08585 store 1 ,mem_addr9_msg_cnt 
+7d0f 6fe4057c fetch 8 ,mem_msg_cnt_base 
+7d10 67e4057d store 8 ,mem_addr1_msg_cnt 
+7d11 70057c00 jam 0 ,mem_msg_cnt_base 
+7d12 20207cec branch fan_apl_ble_cmd_handler_customer_message 
+
+fan_apl_ble_rx_packet_cnt_check:
+7d13 1f220400 copy loopcnt ,temp 
+7d14 60488587 storet 1 ,mem_msg_addr_save 
+7d15 d840057c arg mem_msg_cnt_base ,temp 
+7d16 1f267e0a sub loopcnt ,10 ,pdata 
+7d17 98408400 iadd temp ,temp 
+7d18 18422200 copy temp ,rega 
+7d19 e8408002 ifetcht 1 ,temp 
+7d1a 6fe0c744 fetch 1 ,mem_light_adv_packet_packetnum 
+7d1b 98467c00 isub temp ,null 
+7d1c 2022f4c8 branch enable_user ,zero 
+7d1d 20217d24 branch fan_apl_ble_rx_check_packetnum_vaild_v2 ,positive 
+7d1e 1fe0ff00 add pdata ,0x100 ,pdata 
+7d1f 98467e00 isub temp ,pdata 
+7d20 1fe17eff and pdata ,0xff ,pdata 
+7d21 1fe67c06 sub pdata ,6 ,null 
+7d22 20217d24 branch fan_apl_ble_rx_check_packetnum_vaild_v2 ,positive 
+7d23 20600000 rtn 
+
+fan_apl_ble_rx_check_packetnum_vaild_v2:
+
+fan_apl_ble_rx_relay_check:
+7d24 6fe0c744 fetch 1 ,mem_light_adv_packet_packetnum 
+7d25 67e085a6 store 1 ,mem_count_and_random 
+7d26 6fe1006a fetch 2 ,mem_le_rxbuf + 35 
+7d27 67e105a7 store 2 ,mem_count_and_random + 1 
+7d28 684985a6 fetcht 3 ,mem_count_and_random 
+7d29 d8c00588 arg mem_msg_before_queue ,contr 
+7d2a df20000a arg 10 ,loopcnt 
+
+fan_apl_msg_check_count_random_loop:
+7d2b efe18006 ifetch 3 ,contr 
+7d2c 98467c00 isub temp ,null 
+7d2d 2022f4c8 branch enable_user ,zero 
+7d2e c2007d2b loop fan_apl_msg_check_count_random_loop 
+
+fan_apl_msg_enqueue:
+7d2f 7005aa1e jam 30 ,mem_msg_judgment_window_time 
+7d30 6fe185a0 fetch 3 ,mem_msg_before_queue + 24 
+7d31 67e185a3 store 3 ,mem_msg_before_queue + 27 
+7d32 6fe40590 fetch 8 ,mem_msg_before_queue + 8 
+7d33 684c0598 fetcht 8 ,mem_msg_before_queue + 16 
+7d34 67e40593 store 8 ,mem_msg_before_queue + 11 
+7d35 604c059b storet 8 ,mem_msg_before_queue + 19 
+7d36 6fe40588 fetch 8 ,mem_msg_before_queue 
+7d37 67e4058b store 8 ,mem_msg_before_queue + 3 
+7d38 6fe185a6 fetch 3 ,mem_count_and_random 
+7d39 67e18588 store 3 ,mem_msg_before_queue 
+7d3a 6fe08587 fetch 1 ,mem_msg_addr_save 
+7d3b 1fe27200 copy pdata ,loopcnt 
+7d3c d840057c arg mem_msg_cnt_base ,temp 
+7d3d 1f267e0a sub loopcnt ,10 ,pdata 
+7d3e 98408400 iadd temp ,temp 
+7d3f 6fe0c744 fetch 1 ,mem_light_adv_packet_packetnum 
+7d40 e7e08002 istore 1 ,temp 
+7d41 7005a91e jam 30 ,mem_msg_cnt_judgment_window_time 
+7d42 20600000 rtn 
+
+fan_apl_cb_event_timer:
+7d43 4737c02d bpatchx patch2d_7 ,mem_patch2d 
+7d44 20207d45 branch fan_apl_ble_msg_cache_clear_time 
+
+fan_apl_ble_msg_cache_clear_time:
+7d45 20407d47 call fan_apl_ble_msg_cache_clear_timer 
+7d46 20207d4d branch fan_apl_ble_msg_cnt_cache_clear_timer 
+
+fan_apl_ble_msg_cache_clear_timer:
+7d47 da6005aa arg mem_msg_judgment_window_time ,regc 
+7d48 da407d4a arg fan_apl_ble_msg_cache_clear_timeout ,regb 
+7d49 20204dcc branch timer_single_step 
+
+fan_apl_ble_msg_cache_clear_timeout:
+7d4a df20001e arg 30 ,loopcnt 
+7d4b d8a00588 arg mem_msg_before_queue ,contw 
+7d4c 202073ec branch clear_mem 
+
+fan_apl_ble_msg_cnt_cache_clear_timer:
+7d4d da6005a9 arg mem_msg_cnt_judgment_window_time ,regc 
+7d4e da407d50 arg fan_apl_ble_msg_cnt_cache_clear_timeout ,regb 
+7d4f 20204dcc branch timer_single_step 
+
+fan_apl_ble_msg_cnt_cache_clear_timeout:
+7d50 70478100 jam 0 ,mem_light_last_packetnum 
+7d51 df20000a arg 10 ,loopcnt 
+7d52 d8a0057c arg mem_msg_cnt_base ,contw 
+7d53 202073ec branch clear_mem 
+
+fan_fml_fet_ctl:
+7d54 67e0c790 store 1 ,mem_fan_opcode 
+7d55 6fe147a2 fetch 2 ,mem_433_tx_cb 
+7d56 20207487 branch callback_func 
+
+fan_fml_tx_high_level:
+7d57 6848c79f fetcht 1 ,mem_fan_tx_gpio 
+7d58 2020773e branch gpio_config_output_patch 
+
+fan_fml_tx_low_level_init:
+
+fan_fml_tx_low_level:
+7d59 6848c79f fetcht 1 ,mem_fan_tx_gpio 
+7d5a 18418480 or temp ,0x80 ,temp 
+7d5b 2020773e branch gpio_config_output_patch 
+
+fan_fml_function_once:
+7d5c 4738402e bpatchx patch2e_0 ,mem_patch2e 
+7d5d 20407dbf call fan_fml_tx_header_signal 
+7d5e 20407d60 call fan_fml_function_once_433code 
+7d5f 20207dce branch fan_fml_tx_end_signal 
+
+fan_fml_function_once_433code:
+7d60 dfe00004 arg fan_433code_len ,pdata 
+7d61 1fe9fe00 lshift3 pdata ,pdata 
+7d62 67e1478e store 2 ,mem_fan_tx_bits_loop 
+7d63 1fe20e00 copy pdata ,queue 
+7d64 18e08fff increase -1 ,queue 
+7d65 684a4792 fetcht fan_433code_len ,mem_fan_433code_packet 
+
+fan_fml_function_once_433code_loop:
+7d66 6fe1478e fetch 2 ,mem_fan_tx_bits_loop 
+7d67 207a0000 rtn blank 
+7d68 1fe0ffff pincrease -1 
+7d69 67e1478e store 2 ,mem_fan_tx_bits_loop 
+7d6a a84fffff qisolate1 temp 
+7d6b 2020fd72 branch fan_fml_1_signal_temp ,true 
+7d6c 20407dc8 call fan_fml_0_signal 
+
+fan_fml_function_once_tx_bit_loop_continue:
+7d6d 18e08fff increase -1 ,queue 
+7d6e 6fe1478e fetch 2 ,mem_fan_tx_bits_loop 
+7d6f 684a4792 fetcht fan_433code_len ,mem_fan_433code_packet 
+7d70 243a7d66 nbranch fan_fml_function_once_433code_loop ,blank 
+7d71 20600000 rtn 
+
+fan_fml_1_signal_temp:
+7d72 20407dc2 call fan_fml_1_signal 
+7d73 20207d6d branch fan_fml_function_once_tx_bit_loop_continue 
+
+fan_fml_function_loop:
+7d74 6fe1479c fetch 2 ,mem_fan_tx_loop2 
+7d75 207a0000 rtn blank 
+7d76 1fe0ffff pincrease -1 
+7d77 67e1479c store 2 ,mem_fan_tx_loop2 
+7d78 20407d5c call fan_fml_function_once 
+7d79 20207d74 branch fan_fml_function_loop 
+
+p_fan_fml_fet_ctl:
+7d7a 20407d9b call fan_fml_get_433_code 
+7d7b 58000003 setarg fan_retransmission_times 
+7d7c 67e1479c store 2 ,mem_fan_tx_loop2 
+7d7d 20207d74 branch fan_fml_function_loop 
+
+fan_apl_ble_rx_packet_indiscriminate:
+7d7e 6fe0c777 fetch 1 ,mem_manufacture_id_temp 
+7d7f 6848c776 fetcht 1 ,mem_id_universal 
+7d80 98467c00 isub temp ,null 
+7d81 2022fd87 branch fan_apl_ble_433_packet_type1 ,zero 
+7d82 6fe0c778 fetch 1 ,mem_light_device_flag 
+7d83 c0007d85 beq 0 ,fan_apl_ble_433_packet_type0 
+7d84 20207d87 branch fan_apl_ble_433_packet_type1 
+
+fan_apl_ble_433_packet_type0:
+7d85 58000000 setarg 0 
+7d86 20207d88 branch fan_apl_ble_433_packet_common 
+
+fan_apl_ble_433_packet_type1:
+7d87 58000080 setarg 0x80 
+
+fan_apl_ble_433_packet_common:
+7d88 6848c7ae fetcht 1 ,mem_ble_parameter_group 
+7d89 1841227f and temp ,0x7f ,rega 
+7d8a 9a21fe00 ior rega ,pdata 
+7d8b 1ff18400 rshift4 pdata ,temp 
+7d8c 6048c7b1 storet 1 ,mem_fan_addr_433 + 2 
+7d8d 1fe17e0f and pdata ,0x0f ,pdata 
+7d8e 1ff27e00 lshift4 pdata ,pdata 
+7d8f 6848c7ad fetcht 1 ,mem_ble_parameter_addr + 1 
+7d90 184122f0 and temp ,0xf0 ,rega 
+7d91 1a31a200 rshift4 rega ,rega 
+7d92 9a21fe00 ior rega ,pdata 
+7d93 67e0c7b0 store 1 ,mem_fan_addr_433 + 1 
+7d94 18417e0f and temp ,0x0f ,pdata 
+7d95 1ff27e00 lshift4 pdata ,pdata 
+7d96 6848c7ac fetcht 1 ,mem_ble_parameter_addr 
+7d97 18518400 rshift4 temp ,temp 
+7d98 9841fe00 ior temp ,pdata 
+7d99 67e0c7af store 1 ,mem_fan_addr_433 
+7d9a 20600000 rtn 
+
+fan_fml_get_433_code:
+7d9b 6fe1c7af fetch 3 ,mem_fan_addr_433 
+7d9c 1ff27e00 lshift4 pdata ,pdata 
+7d9d 1fed7e00 lshift8 pdata ,pdata 
+7d9e 6848c790 fetcht 1 ,mem_fan_opcode 
+7d9f 18498400 lshift3 temp ,temp 
+7da0 18520400 lshift4 temp ,temp 
+7da1 9841a200 ior temp ,rega 
+7da2 20407db7 call fan_fml_get_433_code_packet_num_get 
+7da3 1ff27e00 lshift4 pdata ,pdata 
+7da4 9a21a200 ior rega ,rega 
+7da5 20407da9 call fan_fml_get_433_code_get_check_code 
+7da6 9a21fe00 ior rega ,pdata 
+7da7 67e24792 store fan_433code_len ,mem_fan_433code_packet 
+7da8 20600000 rtn 
+
+fan_fml_get_433_code_get_check_code:
+7da9 df200004 arg 4 ,loopcnt 
+7daa 1a222400 copy rega ,regb 
+7dab de000000 arg 0 ,alarm 
+
+fan_fml_get_433_code_get_check_code_loop:
+7dac 1a4126ff and regb ,0xff ,regc 
+7dad 1a617ef0 and regc ,0xf0 ,pdata 
+7dae 1ff1fe00 rshift4 pdata ,pdata 
+7daf 9e02e000 ixor alarm ,alarm 
+7db0 1a617e0f and regc ,0x0f ,pdata 
+7db1 9e02e000 ixor alarm ,alarm 
+7db2 1a4ca400 rshift8 regb ,regb 
+7db3 c2007dac loop fan_fml_get_433_code_get_check_code_loop 
+7db4 1e02e00a xor alarm ,0x0a ,alarm 
+7db5 1e017e0f and alarm ,0x0f ,pdata 
+7db6 20600000 rtn 
+
+fan_fml_get_433_code_packet_num_get:
+7db7 6fe0c791 fetch 1 ,mem_fan_tx_cnt 
+7db8 1fe0fe01 pincrease 1 
+7db9 1fe17e07 and pdata ,0x07 ,pdata 
+7dba 67e0c791 store 1 ,mem_fan_tx_cnt 
+7dbb 20600000 rtn 
+
+fan_fml_delay_us:
+7dbc 2000000c nop 12 
+7dbd c2007dbc loop fan_fml_delay_us 
+7dbe 20600000 rtn 
+
+fan_fml_tx_header_signal:
+7dbf 20407d59 call fan_fml_tx_low_level 
+7dc0 df201900 arg fan_header_low_delay ,loopcnt 
+7dc1 20207dbc branch fan_fml_delay_us 
+
+fan_fml_1_signal:
+7dc2 20407d57 call fan_fml_tx_high_level 
+7dc3 df200257 arg fan_1_high_delay ,loopcnt 
+7dc4 20407dbc call fan_fml_delay_us 
+7dc5 20407d59 call fan_fml_tx_low_level 
+7dc6 df2000c8 arg fan_1_low_delay ,loopcnt 
+7dc7 20207dbc branch fan_fml_delay_us 
+
+fan_fml_0_signal:
+7dc8 20407d57 call fan_fml_tx_high_level 
+7dc9 df2000c8 arg fan_0_high_delay ,loopcnt 
+7dca 20407dbc call fan_fml_delay_us 
+7dcb 20407d59 call fan_fml_tx_low_level 
+7dcc df200257 arg fan_0_low_delay ,loopcnt 
+7dcd 20207dbc branch fan_fml_delay_us 
+
+fan_fml_tx_end_signal:
+7dce 20407d57 call fan_fml_tx_high_level 
+7dcf df2000c8 arg fan_end_high_delay ,loopcnt 
+7dd0 20407dbc call fan_fml_delay_us 
+7dd1 20407d59 call fan_fml_tx_low_level 
+7dd2 df20022f arg fan_end_low_delay ,loopcnt 
+7dd3 20207dbc branch fan_fml_delay_us 
+
+fan_fml_1_signal_loop:
+7dd4 6fe1479a fetch 2 ,mem_fan_tx_loop 
+7dd5 207a0000 rtn blank 
+7dd6 1fe0ffff pincrease -1 
+7dd7 67e1479a store 2 ,mem_fan_tx_loop 
+7dd8 20407dc2 call fan_fml_1_signal 
+7dd9 20207dd4 branch fan_fml_1_signal_loop 
+
+fan_fml_0_signal_loop:
+7dda 6fe1479a fetch 2 ,mem_fan_tx_loop 
+7ddb 207a0000 rtn blank 
+7ddc 1fe0ffff pincrease -1 
+7ddd 67e1479a store 2 ,mem_fan_tx_loop 
+7dde 20407dc8 call fan_fml_0_signal 
+7ddf 20207dda branch fan_fml_0_signal_loop 
+
+frmt_ble_para_init:
+7de0 20406eb3 call enable_authrom 
+7de1 d8a0443c arg mem_ble_v2_xbox ,contw 
+7de2 d8c097b5 arg frmt_xbox_addr ,contr 
+7de3 202073c4 branch memcpy64 
+
+frmt_ble_data_set:
+7de4 58002542 setarg 0x2542 
+7de5 67e1447c store 2 ,mem_ble_v2_pdu 
+7de6 5810255d setarg 0x10255d 
+7de7 67e1c47e store 3 ,mem_ble_v2_pdu + 2 
+7de8 58109e3a setarg 0x109e3a 
+7de9 67e1c481 store 3 ,mem_ble_v2_pdu + 5 
+7dea 58000000 setarg 0x00 
+7deb 67e1c49c store 3 ,mem_ble_v2_pdu + 32 
+7dec 58020102 setarg 0x020102 
+7ded 67e1c484 store 3 ,mem_ble_v2_pdu + 8 
+7dee 58f0161b setarg 0xF0161B 
+7def 67e1c487 store 3 ,mem_ble_v2_pdu + 11 
+7df0 58001008 setarg 0x001008 
+7df1 67e1c48a store 3 ,mem_ble_v2_pdu + 14 
+7df2 6fe0c4a4 fetch 1 ,mem_ble_v2_packet_num 
+7df3 1fe0fe01 pincrease 1 
+7df4 67e0c4a4 store 1 ,mem_ble_v2_packet_num 
+7df5 6fe144ca fetch 2 ,mem_ble_pack_cb 
+7df6 20207487 branch callback_func 
+
+frtm_ble_setdefault:
+7df7 5800ffff setarg 0xffff 
+7df8 20600000 rtn 
+
Index: output/romcode.rom
===================================================================
--- /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/output/romcode.rom	(nonexistent)
+++ /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/output/romcode.rom	(working copy)
@@ -0,0 +1,18432 @@
+20403ac3
+44804000
+20800000
+20404d91
+20403a12
+20406a13
+20403a93
+2040665f
+4480c000
+20406ebb
+20403aba
+20404d89
+2055bb65
+44814000
+204041e9
+20403827
+20404d99
+20403815
+20404788
+20403b8e
+2020380d
+2040381a
+c6848000
+793f8009
+2040383e
+20203d00
+4481c000
+20403864
+2422b822
+20403833
+1a208c01
+efe08006
+c2803c76
+20600000
+70000600
+20403844
+1f227c00
+20628000
+20203a8a
+6fe0c10d
+207a0000
+c00db830
+2040385d
+20628000
+20403860
+20628000
+70410d00
+20600000
+7001b71b
+70410d00
+20600000
+44824000
+79200009
+1a227e00
+67e1000a
+18007253
+d8a00163
+1a208c01
+efe08006
+1a220c00
+c2807419
+20600000
+4482c000
+6fe1000a
+98000a00
+18007253
+d8c00163
+20207419
+df200001
+68488006
+18408401
+2841fe01
+2420b84a
+d8400000
+60488006
+184ffe53
+da204040
+9a20a200
+efe08011
+c280b851
+c3800000
+c2003846
+20600000
+44834000
+da603871
+20403867
+24628000
+1a227e00
+67e1000a
+18007c00
+20600000
+da6038a8
+20203867
+6848c10e
+da60387a
+20203867
+4483c000
+684b410f
+da603874
+20203867
+da603880
+20203867
+da6038c3
+44844001
+da204040
+df200001
+efe08011
+1a627a00
+4484c001
+1a20a253
+c200386a
+18007c01
+20600000
+c280386c
+18007c00
+20600000
+c300386c
+1a208c10
+efe30006
+98467c00
+20628000
+2020386c
+c300386c
+1a208c16
+efe08006
+98467c00
+20628000
+2020386c
+c300b86c
+204038b0
+20403898
+98467e00
+1fe0fe01
+20213892
+18c22400
+67e484cc
+44854001
+6fe484cc
+1a420c00
+1fe0fe05
+2020388d
+2421386c
+18424200
+204038bc
+18007c00
+20600000
+98002400
+1a208c02
+efe10006
+203a388e
+204038bc
+20203881
+1ff11600
+196c9600
+2022b8a2
+29601e0f
+24608000
+18511600
+196c9600
+24628000
+7920041c
+20600000
+18511600
+196c9600
+29601e0f
+24608000
+79207e1c
+20600000
+c300386c
+18007c00
+20600000
+c300386c
+1a208c01
+efe08006
+c280386c
+20600000
+1a208c01
+e8408006
+1c427e00
+284ffe01
+1a208c04
+e8420006
+20608000
+1a208c08
+efe30006
+20403905
+1d027e00
+20600000
+1a208c02
+1a208a04
+efe10006
+98409600
+19627e00
+e7e20005
+20203d4d
+c300b86c
+204038b0
+9b60fe00
+9b60fe00
+98e0fe00
+98467c00
+2421386c
+18007c00
+20600000
+4485c001
+784efc00
+784e7c00
+7846fc00
+78467c00
+7844fc00
+78477c00
+7843fc00
+2030b913
+37d38200
+20000064
+20203913
+44864001
+78487c00
+18423600
+20403866
+78547c00
+24628000
+18003600
+202074c8
+4486c001
+37d10200
+1b427e00
+98000c00
+1ff17e00
+9c467200
+1f217203
+2422b8ea
+18007e00
+202038ee
+6849003f
+18007e00
+9840fe00
+c20038ec
+98c0fe00
+1fe6fc0c
+20407472
+67e1002a
+20600000
+44874001
+1b427e00
+1b220400
+98467c00
+7d217e2c
+98460400
+6fe1003f
+284c000f
+2020b901
+18426000
+d8410000
+6fe1003f
+98467e00
+9e008400
+604b016b
+20600000
+78587c00
+6fe3016b
+9b20e000
+1e00e00a
+6fe1003f
+9e067e00
+2fec000f
+2020b911
+58010000
+6b01003f
+9b067e00
+9e00e000
+1e023400
+20600000
+18007c00
+2020390f
+4487c001
+204065a2
+18002a08
+18002a00
+7850fc00
+78507c00
+782f7c00
+70890005
+20000002
+70890000
+20403925
+708a1600
+708a0a80
+6ff08a09
+793ffe07
+67f08a09
+708a0b00
+20600000
+44884002
+70890005
+20000002
+70890000
+6fe0c09a
+c00c392c
+c0043941
+708a10aa
+708a11aa
+708a1215
+708a0a78
+6ff08a09
+79207e07
+67f08a09
+708a0b04
+2000003c
+708a167a
+708a1700
+708a1800
+708a1900
+708a1a00
+708a112a
+708a0a78
+6ff08a09
+793ffe07
+67f08a09
+708a4300
+20600000
+708a8729
+708a8be6
+708a10aa
+708a11aa
+708a1215
+708a0a78
+6ff08a09
+79207e07
+67f08a09
+708a0b04
+2000003c
+708a163a
+708a1700
+708a1800
+708a1900
+708a1a00
+708a112a
+708a0a38
+2020393c
+4488c002
+6fe0c09a
+1fe67c18
+2042b95e
+2442b964
+60488008
+1840fe00
+c516b95d
+1840fe01
+20203989
+708a4300
+708a3d04
+708a3e00
+708a8403
+708a8940
+20600000
+708a4330
+708a3d06
+708a3e00
+708a8420
+708a8915
+20600000
+44894002
+2040659c
+6fe0c118
+c07fb973
+d8c04119
+98c08c00
+efe08006
+67f08961
+70896027
+6848c11c
+6ff08960
+9841fe00
+67f08960
+708a10aa
+708a112a
+708a1213
+708a0a7f
+6ff08a09
+793ffe07
+67f08a09
+2000003c
+708a171f
+708a18f8
+708a1918
+708a1000
+708a1120
+2000000a
+70890004
+20000002
+7089000c
+20600000
+4489c002
+d8c00960
+98c0fe00
+6848c09a
+20203998
+448a4002
+6fe0c09a
+1fe67c18
+2042b9bb
+2442b9c2
+58000960
+9a20fe00
+1fe3fe00
+6848c09a
+184f8403
+18438400
+9846fc00
+20407475
+1807fe00
+67f08a3f
+18077e00
+1ff07e00
+1fed7e00
+9846fc00
+20407475
+1807fe00
+67f08a42
+1fecfe00
+67f08a41
+1fecfe00
+67f08a40
+68588a43
+184104f0
+60588a43
+2000000c
+6fe0c09a
+c00c39af
+c00439b5
+1841840c
+60588a43
+2000000c
+18418403
+60588a43
+20600000
+1841843c
+60588a43
+2000000c
+18418433
+60588a43
+20600000
+708a4300
+708a3d12
+708a3e00
+708a8403
+708a8ba6
+708a8940
+20600000
+708a4330
+708a3d15
+708a3e00
+708a8420
+708a8ba6
+708a8915
+20600000
+448ac002
+708a3d12
+60488008
+1840a202
+2040398e
+200003c0
+448b4002
+708a10aa
+708a112a
+708a1210
+708a0a7f
+6ff08a09
+793ffe07
+67f08a09
+708a0b07
+2000003c
+708a190d
+708a1af9
+708a1000
+708a1120
+2000000a
+70890001
+20000002
+70890003
+448bc002
+6fe0c116
+c001b9f2
+c002b9f7
+c00339fa
+c003b9fd
+c0053a00
+c041ba03
+c042ba06
+c04a3a09
+c04f3a0c
+c0553a0f
+708a396a
+708a3a07
+708a14a3
+708a1507
+20600000
+708a3966
+708a3a0b
+708a14aa
+708a150a
+20600000
+708a396c
+708a3a0d
+202039f4
+708a396b
+708a3a0f
+202039f4
+708a39a7
+708a3a0f
+202039f4
+708a39b6
+708a3a0f
+202039f4
+708a3968
+708a3a05
+202039ef
+708a3960
+708a3a05
+202039ef
+708a3953
+708a3a01
+202039ef
+708a394c
+708a3a00
+202039ef
+6fe1489b
+67f10a39
+202039ef
+70804206
+6fe1409d
+c3073a13
+98000c00
+d8408a00
+efe08006
+c07fba1d
+98418a00
+efe08006
+e7e08005
+20203a17
+448c4003
+6fe0c3ef
+205a6d31
+708a0305
+708a7a94
+20403a44
+20403a3f
+20403a3a
+708a8be6
+708a8390
+708a0e0b
+708a0f05
+70896876
+70896976
+6fe0c09a
+c0843a2e
+708a0834
+708a01ff
+20000064
+708a020e
+708a0003
+204039ed
+708a9a2b
+708a9b13
+20403a71
+20000064
+70804205
+70411d0c
+20203d00
+6fe0c3eb
+243a3a3d
+58000029
+67f08a87
+20600000
+6fe0c3ec
+243a3a42
+58000000
+67f08a0d
+20600000
+6fe0c3ed
+203a3a47
+580000d3
+67f08a6c
+20600000
+448cc003
+6ff089a2
+2feffe06
+7920fe07
+67e0c117
+6ff089a3
+1fe1040f
+18438400
+1ff1fe00
+98408400
+184fa203
+6fe0c117
+20403a5f
+1fe67e00
+9a20fe00
+1fe0fff7
+1fe17fff
+2feffe08
+2420ba5d
+58000000
+67e08030
+20203a64
+2feffe07
+24608000
+d840ff00
+9841fe00
+20600000
+6fe08030
+20403a68
+67e08009
+20600000
+1fe17eff
+1fe6fc0a
+20407472
+1ff27e00
+18070400
+9841fe00
+20600000
+58000f0f
+20203c04
+5800080f
+20203c04
+1fe20400
+448d4003
+18427e00
+2040746b
+1c307e00
+79207e2c
+20407451
+793ffe2c
+20403a82
+20407451
+20740000
+2040745e
+98003600
+37c18200
+20600000
+1b220400
+20748000
+1b420400
+20600000
+1c427e00
+20748000
+1d027e00
+20600000
+448dc003
+20203a8a
+207a0000
+1fe37e00
+1fe0fffd
+1fe0ffff
+2422ba8f
+18007e00
+20600000
+58000000
+67e30000
+d8a00163
+df20000a
+204073dd
+7004c300
+7001b600
+58000e43
+67e10031
+58000600
+67e10033
+58000600
+67e10035
+58000d00
+67e1003b
+580003bb
+67e10037
+58000500
+67e10039
+580007d0
+67e1003d
+58000ea6
+67e1003f
+580001e0
+67e10041
+58000120
+67e10043
+5800011a
+67e10045
+448e4003
+20758000
+7041298b
+58000d00
+67e14316
+58000060
+67e14318
+1c437e00
+67e24096
+20600000
+20758000
+448ec003
+6ff08a0a
+79207e03
+67f08a0a
+200004b0
+793ffe03
+67f08a0a
+20600000
+5800ee21
+67f10050
+6ff2011c
+67e204f2
+67e204f2
+70804783
+6ff08133
+67e084f1
+6ff08136
+c301e7ba
+7835fc00
+c303bad8
+7855fc00
+1ce27e00
+243a3ad8
+6ff08133
+c2813ad8
+d85fffff
+605a004c
+70800510
+37df8200
+37d98200
+70800520
+37d98200
+70800502
+6ff20138
+67f2004c
+6ff08139
+1fe17ee0
+67f0804d
+37d98200
+70800502
+6ff18134
+67f1804c
+efe08006
+1fe1feef
+e7e08005
+37d98200
+70800502
+6ff0804f
+79207e04
+67f0804f
+37d98200
+2055bb0b
+6ff0804e
+793ffe03
+67f0804e
+2055e845
+2435e7ba
+c6958000
+70800608
+20600000
+6fe0c3ea
+c000baff
+c0013b03
+c001bb07
+6fe0c0cd
+1fe17ee0
+67e0c0cd
+20600000
+6fe0c0cd
+1fe17ee0
+1fe1fe1d
+20203afd
+6fe0c0cd
+1fe17ee0
+1fe1fe1b
+20203afd
+6fe0c0cd
+1fe17ee0
+1fe1fe17
+20203afd
+6fe0c0e8
+67f08080
+6fe440d0
+67f40070
+efe28006
+e7e28005
+680440e0
+20600000
+600440e0
+6ff40070
+67e440d0
+efe28006
+e7e28005
+6ff08080
+67e0c0e8
+20600000
+6ff0806f
+1feb7e00
+1fe17e0f
+243a3b25
+6fe1c0be
+247a0000
+6ff0806f
+1fe1fe30
+67f0806f
+70800680
+6ff08129
+c4008000
+6ff18145
+67e1c0be
+20600000
+448f4003
+1b427e00
+2040744f
+684a40ae
+18467cff
+20610000
+1fed7e00
+1ff27e00
+9846fc00
+20407472
+d84000c8
+20407480
+67e0800e
+24343b39
+1fe67e00
+6849c0be
+9840fe00
+67e1c0be
+58000000
+67e240ae
+20600000
+448fc003
+d85fffff
+20403c18
+6fe0c0a8
+67e0c0cb
+6fe0c0c9
+79207e07
+67e0c0c9
+44904004
+6fe143a2
+20407487
+37d98200
+70800501
+20403af7
+37d98200
+70800502
+58000f0f
+20403bfa
+6fe240ae
+9840fe00
+67e240ae
+20403b13
+37d98200
+70800502
+6a4240cc
+6fe2c0c7
+67f2004c
+632340b2
+37d98200
+70800520
+1fef7e00
+67f0804f
+37d98200
+6252004c
+70800510
+37d98200
+605a004c
+37df8200
+4490c004
+58000000
+1ce27c00
+2022bb70
+6ff08134
+68588135
+98467c00
+20213b6e
+18427e00
+9ce67e00
+1fe0fe01
+1fe0fe07
+37d98200
+9e20fe00
+684a40aa
+9840fe00
+6849c0be
+984ffe00
+1fecfe00
+1ff1fe00
+1fe0fff3
+6849003f
+9846fc00
+20407472
+1ff07e00
+18070400
+9841fe00
+684b40b2
+20407444
+37d98200
+18423200
+6fe34048
+20403905
+1b427e00
+67e304c4
+1ce27e00
+e7e08005
+6ff0811d
+1fe1fef0
+e7e08005
+20600000
+44914004
+20403b1b
+6fe1c0be
+207a0000
+6fe0c094
+207a0000
+da6038ab
+20403867
+20628000
+20403c29
+247a0000
+2040385b
+2422bbb9
+20758000
+4491c004
+68488015
+6fe14042
+984ffe00
+18518400
+184b0400
+98467e00
+684a4044
+9840fe00
+6848c0a7
+98467e00
+1ff06000
+6fe1404e
+1fe37e00
+2040746b
+1e027e00
+20407451
+1b420400
+2040744f
+20740000
+20407464
+44924004
+6fe0c0c7
+98467c00
+20213b3c
+604a40aa
+20404db1
+684a40aa
+20203b47
+4492c004
+6fe0c35f
+243a3bbd
+20600000
+6fe140a5
+207a0000
+6848c0a7
+98467e00
+d8401d4c
+984ffe00
+20203bb0
+6fe1439e
+20407487
+243a3bdc
+70001500
+c586bbdc
+6fe0c0c3
+203a3be0
+1fe0ffff
+67e0c0c3
+20600000
+7040a900
+6fe1c0b8
+1fe0fe01
+67e1c0b8
+20600000
+44934004
+70001500
+6fe1c0bb
+1fe0fe01
+67e1c0bb
+6fe0c0a9
+1fe0fe01
+67e0c0a9
+20600000
+70001500
+6fe0c0c2
+67e0c0c3
+20600000
+6848c0c1
+60488015
+20600000
+6fe0c0c7
+247a0000
+70804206
+58000f0c
+20403c04
+58030d40
+20403a8c
+37d98200
+1e226000
+20403a6f
+70804204
+2000000a
+37d98200
+1e227e00
+9e067e00
+1fe0fe30
+d84000ff
+20407480
+67e0c0c7
+20007530
+20007530
+20007530
+20600000
+d8a00fff
+98a10a00
+6fe0c0c4
+1fe17ef0
+1fed7e00
+98a1fe00
+67f1004c
+efe10006
+e7e10005
+20600000
+20403bfa
+4493c004
+58000001
+20203c09
+58000002
+37d98200
+67f08005
+37d98200
+37d98200
+20600000
+44944005
+6ff20138
+67f2004c
+6ff08138
+1fe17e41
+6848c0cc
+9841fe00
+67f0804c
+58000020
+20203c09
+4494c005
+6fe20016
+67f2004c
+58000004
+20403c09
+6fe2001a
+67f2004c
+58000008
+20203c09
+6fe140a3
+f9207e00
+67e140a3
+20600000
+6fe140a3
+f93ffe00
+67e140a3
+20600000
+44954005
+20404daf
+6fe140a3
+1fe22200
+6fe1c3fd
+7d3a2201
+6fe4441e
+7d3a220f
+6fe44426
+7d3a220e
+6fe0c10d
+7d3a2208
+1a227e00
+67e140a3
+20600000
+6ff10112
+7d3a2206
+6ff1010e
+7d3a2205
+20600000
+6ff20130
+793ffe1b
+67f2004c
+20403c05
+20203a8a
+6ff20134
+793ffe14
+67f2004c
+20203c08
+44eb401a
+7855fc00
+70017901
+70016303
+70017a01
+5fffffff
+67e1017d
+18007e00
+67e0817b
+67e08186
+67e1c0b8
+67e1c0bb
+20403fa1
+70412b01
+70412c00
+70019801
+70019901
+70436d00
+2020407e
+44ebc01a
+7834fc00
+70016403
+70436f01
+70050601
+5800ffff
+67e10508
+18007e00
+67e2c407
+79207e27
+67e2c402
+20203c46
+44ec401b
+7854fc00
+58000017
+67e142b8
+1fe0fe04
+67e1437c
+70016401
+70435f00
+70001500
+20403ccf
+6fe10191
+67e142ca
+6fe10165
+1feffe05
+1ff1fe00
+67e10191
+20203c46
+44ecc01b
+20403cf9
+6fe08163
+2feffe04
+79208032
+20404d9e
+6fe08164
+c280bc7f
+20203c91
+44ed401b
+7834fc00
+20404074
+20213c8e
+20403d3f
+20403fb6
+7856fc00
+20403e74
+24768000
+6fe08005
+1fe0fe01
+67e08005
+20403f67
+7854fc00
+20600000
+20403cc4
+7854fc00
+20600000
+44edc01b
+70431300
+793f8030
+78577c00
+20404074
+20213cc4
+6fe08198
+20403ce0
+20403d3f
+20403d96
+242c3cb5
+20403cd3
+2036bca0
+c5183ca0
+20203caf
+44ee401b
+6fe0c313
+1fe0fe01
+67e0c313
+c0063caf
+20403f67
+20403fb6
+6fe08199
+20403ce0
+20403e85
+20404019
+6fe1439a
+20407487
+20403cb9
+20343cbe
+44eec01b
+2040468a
+20404681
+20406f91
+6fe08186
+c281bcc4
+44ef401b
+204038cc
+20404147
+202038f3
+78547c00
+c51574c8
+c514f4c8
+c51874c8
+20600000
+44efc01b
+78377c00
+20403e78
+2036bca0
+c5183ca0
+20203caf
+44f0401c
+20403cca
+20404dee
+20403ccf
+7004c315
+20206f7b
+d8a043f3
+204073e1
+70017900
+70016400
+70016300
+44f0c01c
+7042d200
+7042d100
+20600000
+44f1401c
+6fe08005
+1fe0fe01
+67e08005
+6fe08163
+c3818000
+79207e03
+67e08163
+6fe142ca
+67e10191
+58000000
+67e242f2
+20600000
+1fe20400
+44f1c01c
+18427e00
+c2803cf9
+c280bce9
+c3013cf9
+c283bcf6
+c2813cef
+20203cf9
+20403cf9
+7920002d
+793f802f
+70890103
+70892084
+20600000
+20403cf9
+7920002f
+793f802e
+70890105
+70892080
+70893020
+20600000
+20403cef
+7920002e
+20600000
+44f2401c
+793f802d
+793f802f
+70890101
+70892080
+70893003
+20600000
+44f2c01c
+793f8032
+70890101
+70892080
+70893003
+20600000
+44f3401c
+7844fc00
+7843fc00
+6fe1818b
+98001e00
+6fe08007
+1fed8400
+79200401
+18431c00
+20600000
+20403d19
+20403954
+6fe10039
+20403a8c
+2020396a
+2036b9cf
+c51839cf
+20403d19
+202039c9
+44f3c01c
+20403925
+6fe081b6
+243a3d2c
+6fe08007
+1fe67c24
+20213d26
+18000400
+c1128000
+18000418
+c1130000
+1800044e
+20600000
+1fe67c0a
+20213d29
+1fe0fe01
+1fe3fe00
+1fe08402
+20600000
+6fe08007
+1fe38400
+20600000
+d84001f4
+207a0000
+d84000fa
+c1008000
+d8400096
+c1010000
+d8400064
+c1018000
+d840004b
+c1020000
+d8400032
+c1028000
+d8400028
+c1030000
+d8400014
+20600000
+44f4401d
+78287c00
+6fe20187
+98001200
+20403d74
+58000200
+2034bd48
+6fe10171
+1fe37e00
+68490039
+9840fe00
+20403a73
+1b427e00
+20600000
+44f4c01d
+204073a4
+672104ef
+1a208c01
+efe08006
+c4000000
+1a208a1a
+efe10005
+1fe0fe01
+e7e10005
+20403ee6
+20403f08
+20403f11
+20403d5e
+204073b3
+6f2104ef
+20600000
+1a208c19
+efe08006
+1a208a18
+e8408005
+9840fe00
+1fe67c24
+20213d66
+1fe0ffdb
+e7e08005
+20600000
+1a208c30
+efe28006
+18000400
+18007225
+c3003d6e
+18408401
+1fe37e00
+c2003d6c
+1840ffff
+1a208a22
+e7e08005
+20600000
+44f5401d
+6fe0817b
+98000e00
+684a8193
+a84fffff
+2020bd89
+6fe08185
+98e67e00
+20213d7f
+1fe60fff
+20203d7a
+18e27200
+18000e00
+a84fffff
+2020bd84
+1f20f201
+1f227e00
+203a3d89
+18e08e01
+1f20f3ff
+20203d81
+18e27e00
+67e08007
+20600000
+2034bd8f
+37c18200
+20600000
+d9600ea0
+34730200
+20600000
+78487c00
+6fe1431d
+1fe21600
+20203d9c
+44f5c01d
+20403e02
+78287c00
+6fe10171
+684a42f2
+98409600
+20403d10
+44f6401d
+20403d06
+c597bda4
+783cfc00
+2000001e
+20403d06
+19699600
+7856fc00
+7826fc00
+7830fc00
+78507c00
+19623600
+37c18400
+20373dad
+1b420400
+604b000f
+242c3e3e
+78287c00
+6fe0c129
+d8404e20
+98408400
+6fe0c11d
+984fb600
+204065a4
+20373dbb
+20403e43
+6fe08163
+c301bdbb
+684b000f
+2055bb2a
+20403a49
+7823fc00
+7824fc00
+09800008
+19897e00
+67e08047
+09800008
+19897e00
+67e08048
+1fe27200
+2022bde1
+c5193dcc
+09800008
+19897e00
+e7e08005
+c2003dc7
+20203de1
+18a22400
+44f6c01d
+20403f60
+6a208048
+1a20a3fc
+24213e36
+20403e07
+1a420a00
+d8400000
+6f208048
+1f20f3fc
+2022bddf
+09800008
+19897e00
+e7e08005
+18408401
+18417c0f
+2042be25
+c2003dd8
+20403e2d
+1a420a00
+44f7401d
+09800018
+1fef7e00
+1ff17e00
+e7e18005
+78287c00
+20403e51
+20233e3a
+c5993df3
+6fe08048
+203a3df3
+1fe0fffc
+67e08048
+20406de7
+6ff08108
+c303be36
+1800700c
+65e2014f
+204065a3
+7836fc00
+793f8030
+44f7c01d
+20406de9
+6fe08198
+7d3e7e07
+67e08198
+20403e00
+44f8401e
+68488008
+1840a202
+2020398e
+7846fc00
+20203925
+c6990000
+20406e84
+1800700c
+20406e8c
+20206e8b
+44f8c01e
+70806c00
+70806d01
+6fe08047
+1fe17e03
+67f0806e
+58000049
+67f10068
+67f1006a
+6a208048
+1a20a3fc
+684ac407
+280ffe0f
+2040be1b
+20406d54
+58000000
+67f100c1
+70800a06
+70800a07
+20600000
+18467c00
+2022be20
+184085ff
+79200427
+20600000
+58ffffff
+1ff07e00
+d840ffff
+98418400
+20600000
+18a22400
+6fe08048
+1fe0fffc
+98467c00
+20628000
+605900c1
+1a420a00
+20600000
+09800020
+1fef7e00
+1fecfe00
+e7e20005
+18a22400
+18007000
+1fe25e00
+605900c1
+20600000
+20203e40
+20403e51
+204038cc
+20203df3
+204065a5
+c5183e3e
+79200030
+20203df6
+793f8030
+20203e40
+44f9401e
+20406de9
+202038cc
+c517be49
+c516be4d
+6fe10041
+1fe25200
+1c225000
+20600000
+6fe10045
+1fe25200
+1c20d001
+20600000
+6fe10043
+1fe25200
+1c225000
+20600000
+6fe08048
+1fe08405
+18498400
+6fe08198
+c517be58
+c2803e5a
+c280be5b
+203e3e5d
+20203e60
+20203e65
+18430400
+20203e65
+18408403
+18438400
+20203e62
+18408403
+18498400
+58000028
+98408400
+20203e65
+6fe0c11d
+984f8400
+da204e20
+9a2ffe00
+98460400
+1b627e00
+98463600
+20600000
+20403e85
+68488008
+20403954
+2040396a
+78287c00
+d960157c
+20203d9d
+44f9c01e
+6fe08199
+20403ce0
+20403e85
+6fe08198
+20403ce0
+68488008
+20403954
+2040396a
+78287c00
+d960157c
+c597bd9d
+d9602134
+20203d9d
+44fa401e
+20403e85
+202038cc
+44fac01e
+20403d06
+20403d15
+204065aa
+79202a00
+782efc00
+78307c00
+7850fc00
+20403d8c
+785d7c00
+c517bec8
+c516beda
+19317e00
+1fecfe00
+1ff1fe00
+08008628
+7823fc00
+7824fc00
+44fb401e
+6fe0c12b
+08008608
+efe08006
+1fe27200
+08008608
+1f267c00
+2022bea6
+6ff0800a
+203a3ea2
+c5193ebd
+d8c0412d
+efe08006
+08008608
+c2003ea3
+78247c00
+08008618
+78447c00
+c597bead
+7843fc00
+58000000
+08008603
+37d38200
+20000064
+44fbc01e
+784efc00
+785c7c00
+20403925
+204065a8
+6fe0c12b
+1fe17e03
+c1818000
+6fe0c2d2
+c0013fa1
+c1828000
+6fe0c12d
+c002bf9c
+20600000
+1f20f3fc
+1f220400
+20406dd4
+d8c0412d
+efe08006
+08008608
+c2003ec1
+20406dd9
+1de27e00
+08008620
+20203ea6
+df20000a
+5800003c
+08008608
+c2003ec9
+784efc00
+783c7c00
+19317e00
+1ff17e00
+1ff1fe00
+08008620
+c5173ed7
+58000001
+08008605
+783d7c00
+20203e95
+58000000
+08008605
+20203e95
+6fe0c11d
+6848c12a
+9840fe00
+20403a8c
+19317e00
+1fecfe00
+1ff18400
+18427e00
+08008608
+18427e00
+08008628
+20203e95
+da603eea
+da403f00
+d8e00005
+20203f3f
+1a208c04
+e8420006
+1a208c37
+efe08006
+1a208a2b
+e7e08005
+efe10006
+1febfe00
+98409600
+1a208a04
+19627e00
+e7e20005
+efe10006
+1febfe00
+1a208a02
+e7e10005
+efe10006
+1a208a2c
+e7e10005
+efe10006
+67e142ca
+20204081
+efe08011
+793ffe03
+e7e08011
+622104d8
+7004c344
+20406f7b
+6a2104d8
+20600000
+da600000
+da403f0c
+d8e00006
+20203f3f
+1a208c37
+efe28006
+1a208a30
+e7e28005
+20203d68
+da600000
+da403f15
+d8e00007
+20203f3f
+1a208c37
+efe08006
+20403f22
+e7e08005
+1a208c38
+efe08006
+20403f30
+e7e08005
+622104d8
+7004c342
+20406f7b
+6a2104d8
+20600000
+205a3f2a
+1a208a35
+24748000
+6848c37a
+284ffe07
+7920fe07
+1a208a36
+20600000
+1a208c35
+efe08006
+24748000
+1a208c36
+efe08006
+20600000
+205a3f39
+6848c37a
+284ffe07
+7920fe07
+1a208a36
+24748000
+793ffe07
+1a208a35
+20600000
+1a208c36
+efe08006
+24748000
+1a208c35
+efe08006
+20600000
+44fc401f
+efe08011
+afec0000
+20608000
+1a208c1a
+e8410006
+1a208c20
+efe10006
+98467e00
+2022bf4f
+24213f54
+1fe67c01
+2022bf4d
+20600000
+1a627e00
+20207487
+efe08011
+f93ffe00
+e7e08011
+1a427e00
+20207487
+1a208c1a
+efe10006
+1a208c20
+efe10006
+98467e00
+d840ffff
+98467c00
+2022bf4f
+d840f000
+98467c00
+24213f4f
+20600000
+6848817a
+6fe08047
+1fe37e00
+9842fe00
+2feffe02
+7920800f
+20600000
+44fcc01f
+2040407e
+c6180000
+20403f8e
+6fe08047
+2feffe04
+7920802a
+1fe37e00
+9842fe00
+2feffe02
+7920800f
+c6078000
+6fe08048
+203a3f80
+6fe08163
+c3023f80
+684a014f
+6fe2440c
+98467c00
+2022ba8a
+604a440c
+6fe2c407
+1fe0fe01
+79207e27
+67e2c407
+6848817a
+79400402
+6048817a
+6fe0c2f6
+c4030000
+44fd401f
+6fe08048
+207a0000
+6fe08047
+2fe00601
+2020c592
+2fe00602
+2020c580
+20600000
+44fdc01f
+6848817a
+284c0005
+20608000
+6fe08047
+1fe3fe00
+9842fe00
+c4018000
+793f8405
+79400403
+6048817a
+28400603
+24608000
+20600000
+6fe08163
+79207e04
+67e08163
+79200032
+20600000
+44fe401f
+7042d200
+dfe00000
+67e2440c
+67e2c402
+79207e27
+67e2c407
+6fe08163
+793ffe04
+67e08163
+793f8032
+20600000
+da200001
+6fe08047
+c3830000
+da200000
+20600000
+18c20a00
+6849437c
+18a20c00
+20600000
+44fec01f
+6fe0817a
+c3828000
+20403fd7
+204041b4
+203a3ffb
+efe10006
+e8410006
+18422200
+9a267e00
+20403fb2
+204074be
+1fe20400
+e8208006
+1a227e00
+98c0fe00
+67e104e3
+20403feb
+20403ffd
+204041b4
+efe10006
+1fe22200
+18c22600
+e8410006
+18422400
+9a467e00
+20403fb2
+204074be
+9a40fe00
+e7e10013
+9a267c00
+24628000
+202041ce
+20403fde
+c6148000
+6fe0c2f6
+c3013fe9
+204041b8
+203a3fe9
+20203fe7
+204041b4
+203a3fe9
+efe10006
+e8410006
+98462200
+20403fb2
+18427e00
+9a267c00
+20213fe9
+79200029
+20600000
+793f8029
+20600000
+1a227e00
+207a0000
+d8200001
+20600000
+44ff401f
+18408401
+204040af
+18c08dfe
+efe10006
+d8402902
+98467c00
+24628000
+18c08c01
+18c22200
+efe08006
+20600000
+18000400
+18000201
+44ffc01f
+6048c12c
+6848817a
+79200405
+18417efc
+9821fe00
+67e0817a
+1fe17e1f
+280ffe29
+7920fe04
+67e0c12b
+6fe0c12b
+28200601
+2420c00d
+6fe0c12c
+207a0000
+c5194013
+6f20c12c
+6fe104e3
+1fe20c00
+d8a0412d
+2020740c
+20406e84
+20206dbb
+d8e00000
+20203c21
+d8e00000
+20203c25
+47004020
+c6078000
+c6180000
+6fe08047
+1fe17e03
+67e0c309
+6fe08048
+207a0000
+58000049
+67e1430e
+4700c020
+6fe0c309
+c001c6c3
+20404034
+24344015
+20404017
+58000000
+67e1430c
+6fe14314
+243a7487
+6fe1430e
+1fe08c02
+efe10006
+c002432f
+c00345e3
+c002c5b7
+20600000
+6fe0c309
+c0014043
+c000c05a
+20600000
+204074c8
+d8400004
+9fe67c00
+20628000
+d8400005
+9fe67c00
+20628000
+d8400006
+9fe67c00
+20628000
+202074ca
+6fe1430e
+1fe20c00
+efe10006
+67e1430a
+efe10006
+20404038
+24740000
+68488048
+6049430c
+6fe1430a
+1fe0fe04
+98467c00
+2022f4c8
+6f208048
+d8a00f00
+6fe1430e
+1fe20c00
+2040740c
+202074ca
+204074c8
+6fe1430c
+247a0000
+202074ca
+20404056
+24740000
+6fe1430c
+d8a00f00
+98a0a200
+68488048
+9840fe00
+67e1430c
+6f208048
+1a220a00
+6fe1430e
+1fe20c00
+2040740c
+58000f00
+67e1430e
+6fe1430a
+1fe0fe04
+6849430c
+98467c00
+2022f4c8
+202074ca
+204073c0
+d8a0428f
+2020457a
+6fe14398
+20207487
+47014020
+684a017f
+20403a86
+98461600
+19627e00
+68490191
+18520400
+18438400
+98467e00
+20600000
+20403a86
+67e2017f
+20600000
+4701c020
+1a208c50
+efe08006
+20403d2f
+1a208c02
+efe10006
+984ffe00
+6849003f
+984ffe00
+d84f4240
+9846fc00
+d8400682
+6fe0c11d
+984f8400
+1a208c2b
+efe08006
+984ffe00
+9840fe00
+67e242f2
+6fe1409b
+20407475
+18078400
+9840fe00
+1a208a0e
+e7e10005
+20600000
+47024020
+6fe10506
+98002400
+6fe10508
+98002600
+6fe142cc
+98000c00
+202074c8
+efe10006
+1fe17eff
+207a0000
+9a467c00
+24610000
+9a667c00
+20628000
+202140ad
+18007c01
+20600000
+18007e00
+20600000
+204040b2
+2022c0bf
+20600000
+4702c020
+6fe142cc
+98000c00
+efe10006
+1fe17eff
+207a0000
+98467c00
+20628000
+efe08006
+98c08c00
+efe08006
+98c08c00
+202040b5
+efe08006
+98c08c00
+20600000
+47034020
+6fe142cc
+98000c00
+efe10006
+1fe17eff
+207a0000
+efe08006
+98c08c00
+18c08dfe
+efe10006
+98467c00
+20628000
+efe08006
+98c08c00
+202040c5
+6fe142cc
+98000c00
+efe10006
+1fe17eff
+207a0000
+1fe08401
+efe08006
+98c08c00
+efe08006
+98c08c00
+18c20a00
+202040d3
+6fe1051c
+202040e1
+4703c020
+6fe142cc
+98000c00
+efe10006
+1fe17eff
+203a40ec
+98467c00
+2022c0ed
+efe08006
+98c08c00
+efe08006
+98c08c00
+202040e2
+202074d6
+efe08006
+67e08522
+1fe27200
+d8a00523
+2040740c
+efe08006
+67e0851b
+204073c0
+202074d8
+47044021
+204040f9
+2020410b
+d8402a00
+204040c2
+207a0000
+efe08006
+18c20a00
+6848c22d
+18427200
+98467c00
+24214108
+98460400
+d8c0422e
+2040740c
+18427200
+2442c143
+20600000
+1fe27200
+d8c0422e
+2020740c
+da60433f
+da204320
+20404118
+58000000
+79347e00
+67e084c4
+da60435f
+da204340
+20404118
+20740000
+6fe084c4
+203a3a8a
+20600000
+4704c021
+204074c8
+204073f2
+da400000
+d8a004f7
+20404132
+6fe0c22d
+1fe08401
+9a40a200
+1a20a202
+1a267c1f
+24214130
+e0408005
+d8400009
+e0408005
+98007200
+2040740c
+1a222400
+1a427e00
+67e084f6
+d8c004f6
+5fffffe0
+9a608a00
+202073d0
+204074ca
+2020412a
+efe08011
+207a0000
+1fe0fe01
+e8408006
+18467c09
+2022c141
+9a40a400
+1a220c00
+98007200
+2040740c
+18c22200
+1a227e00
+9a667c00
+20610000
+20204132
+9a20a200
+2020413d
+58000020
+e7e08005
+c2004143
+20600000
+47054021
+7855fc00
+2037414b
+2436c15a
+20403bce
+6fe1409b
+67e10171
+6fe0c2f6
+c282bbdc
+c507bbdc
+6fe08048
+243a3bdc
+6fe0c12c
+243a3bdc
+6fe08163
+c282bbdc
+c283bbdc
+c2833bdc
+20203bc4
+6fe0c0a9
+1fe67c1e
+24213bd3
+6849409b
+18430400
+6fe10171
+9840fe00
+67e10171
+20203bd3
+d8e00000
+2020417b
+d8e00000
+2020417f
+d8e00001
+2020417b
+d8e00001
+2020417f
+d8e00002
+2020417b
+d8e00002
+2020417f
+d8e00003
+2020417b
+d8e00003
+2020417f
+d8e00004
+2020417b
+d8e00004
+2020417f
+d8e00005
+2020417b
+d8e00005
+2020417f
+6fe0c2f6
+f9207e00
+67e0c2f6
+20600000
+6fe0c2f6
+f93ffe00
+67e0c2f6
+20600000
+58112233
+67e1c2f7
+58445566
+e7e18005
+58778899
+e7e18005
+58001122
+e7e18005
+58334455
+e7e18005
+58000066
+e7e08005
+20600000
+59000302
+67e24286
+58010010
+67e1c28a
+7042d301
+20600000
+da200000
+d8200001
+202041a9
+4705c021
+d8200003
+204041a9
+1a427e00
+e7e08005
+20600000
+47064021
+18000202
+1a20a204
+204041a9
+1a20a3fc
+1a227e00
+e7e10005
+1a427e00
+e7e10005
+20600000
+4706c021
+1a20a205
+2040667e
+1a20a3fb
+1a227e00
+e7e10005
+58000000
+e7e10005
+18227e00
+e7e08005
+20600000
+47074021
+204066b8
+1fe20c00
+20600000
+6fe143fb
+20600000
+204041bd
+1fe20c00
+20600000
+6fe143fe
+20600000
+204041b4
+18c08c05
+20600000
+204041b4
+18c08c09
+20600000
+204041ba
+18c08c09
+20600000
+204041ba
+18c08c05
+20600000
+202066ce
+202066d1
+202066d4
+202066bd
+67e44384
+202041e0
+184122ff
+204041d6
+184ca200
+6220c37b
+202041d7
+6220c37a
+2a2ffe01
+2040c1dc
+2a2ffe02
+2040c1de
+20600000
+d8e00008
+202041e1
+d8e0000b
+202041e1
+d8e00005
+6fe44372
+f9207e00
+67e44372
+20600000
+20404167
+20404190
+20404183
+2020416f
+70019801
+70019901
+20403cf9
+204041ef
+2040426c
+20203d00
+4707c021
+6fe0c31a
+c1808000
+d8e00002
+2040742e
+247a0000
+6fe1431b
+6849431d
+98467e00
+d8e00002
+20407420
+7854fc00
+20404296
+2040420e
+24768000
+47084022
+6fe30049
+67e30173
+6fe08002
+1fe0fe01
+67e08002
+20404215
+20748000
+204042bd
+24768000
+6fe08004
+1fe0fe01
+67e08004
+6fe4804f
+67e484f6
+20600000
+4708c022
+20404308
+20403d92
+6fe08001
+1fe0fe01
+67e08001
+20600000
+47094022
+6fe081b7
+c18d8000
+6fe30173
+684b42a1
+98467c00
+24628000
+20403853
+24628000
+20404225
+20403c59
+70410d00
+7001b300
+70431a00
+7001b700
+2020383e
+4709c022
+18007fff
+38080001
+67e28193
+da200163
+20403d68
+18007204
+d8a00187
+204074e4
+6fe142ae
+67e10191
+180a7e00
+1fe17e0f
+1fe67c04
+20214230
+67e0817c
+470a4022
+68494127
+60490165
+18422600
+1c40fe07
+9a66fc00
+20407475
+18072200
+9a267e00
+9a60fe00
+68494125
+9840fe00
+67e20167
+9c462200
+1a20a3fa
+da402205
+6fe0c2a7
+7d3a2406
+6fe0c2a0
+7d3a2407
+1a427e00
+67e1412b
+6fe342b0
+e7e30005
+6fe30173
+e7e30005
+6fe20187
+e7e20005
+180a7e00
+e7e10005
+180a7e00
+e7e08005
+18007e02
+e7e08005
+1a2b7e00
+e7e10005
+1a6b7e00
+e7e10005
+470ac022
+58000000
+e7e10005
+6fe142ae
+e7e10005
+6fe28193
+e7e28005
+6fe0817c
+d84000a0
+9841fe00
+e7e08005
+20403e82
+5800412b
+1fe08c12
+efe18006
+67e1818b
+20600000
+70000724
+7004f600
+20404290
+20404271
+20204293
+470b4022
+6fe0c35f
+207a0000
+d8e00000
+2040742e
+247a0000
+78287c00
+20404296
+20404308
+2040429f
+2436c283
+6fe08003
+1fe0fe01
+67e08003
+6fe08047
+1fe17e0f
+c001c2ce
+c002c2e0
+470bc022
+6fe084f6
+6848c36a
+98467c00
+2422c271
+180a7e00
+d84001ff
+98417e00
+1fe0fefa
+204073d4
+d8e00000
+6fe14360
+20207420
+d8a00506
+d8c0412b
+202073cf
+d8c00506
+d8a0412b
+202073cf
+470c4023
+7854fc00
+588e89be
+1fed7e00
+1fe1fed6
+98001200
+58555555
+67e1818b
+20600000
+470cc023
+6fe0c362
+6848c363
+18520400
+184b8400
+98408400
+6048c12b
+c000c2b0
+6848c31f
+1840fe06
+67e0c12c
+6fe342b0
+67e3412d
+18427200
+d8c04320
+2040740c
+202042b6
+5800000c
+67e0c12c
+6fe342b0
+67e3412d
+6fe3410f
+e7e30005
+470d4023
+6fe08000
+1fe0fe01
+67e08000
+db600708
+7856fc00
+20203e6d
+470dc023
+6fe0c36b
+c1808000
+6fe08000
+1fe0fe01
+67e08000
+d8400c03
+6fe0c36c
+7d3a0406
+1a227e00
+7d3a0407
+6049412b
+6fe342b0
+e7e30005
+6fe30173
+e7e30005
+20203e6d
+6fe3004f
+684b42b0
+98467c00
+24628000
+d8400004
+6fe0c363
+7d3a0406
+6048c12b
+6848c33f
+1840fe06
+67e0c12c
+6fe342b0
+67e3412d
+d8c04340
+18427200
+2040740c
+20403e82
+20204283
+6fe3004f
+684b42b0
+98467c00
+24628000
+20403fad
+6220c2a0
+6fe30049
+67e30173
+6fe40055
+67e40187
+6849005d
+470e4023
+184b8400
+6fe1005f
+1febfe00
+67e10165
+67e20167
+98467e00
+1fe0d1fe
+6fe48061
+67e4818f
+6fe0806a
+1fe1041f
+6048817c
+1ff18400
+18430400
+604881b3
+da200163
+20404081
+da200163
+20403d68
+20403c65
+20403853
+24628000
+470ec023
+204038f3
+204045d4
+7004c314
+20406f7b
+2020383e
+470f4023
+6fe08007
+c012c30e
+c0134314
+c013c31a
+2020431a
+6848c36a
+284ffe01
+2020c325
+284ffe02
+2020c32a
+20204320
+6848c36a
+284ffe02
+2020c32a
+284ffe00
+2020c320
+20204325
+6848c36a
+284ffe00
+2020c320
+284ffe01
+2020c325
+2020432a
+70000725
+6fe084f6
+79207e00
+67e084f6
+20600000
+70000726
+6fe084f6
+79207e01
+67e084f6
+20600000
+70000727
+6fe084f6
+79207e02
+67e084f6
+20600000
+efe18006
+67e1c36e
+c0014346
+c001c34e
+c0024351
+c003437a
+c00443c7
+c0054445
+c0064474
+c008448a
+c00944cd
+c00b44f3
+c00c4506
+c00f450b
+c029450f
+20600000
+18002203
+20404535
+58000002
+e7e08005
+6fe142b6
+e7e10005
+20600000
+2040434e
+18002203
+20404535
+58000003
+e7e08005
+6fe142b6
+e7e10005
+20600000
+1fecfe00
+67e142b8
+20600000
+20404569
+204074c8
+20204354
+d9600003
+2040409b
+204040a3
+203a4378
+24214375
+18c08dfe
+204073c0
+204073b7
+24344368
+204073a4
+204074ca
+616204d4
+18002214
+20404535
+696204d4
+204073b3
+58000005
+e7e08005
+58000001
+e7e08005
+204073ba
+efe10006
+1fe17eff
+e7e10005
+efe08006
+1fe27200
+20407419
+204073bd
+196097ff
+2022c378
+efe08006
+98c08c00
+20204356
+efe08006
+98c08c00
+20204372
+20344528
+2020455c
+20404569
+efe10006
+67e14290
+204073c0
+d8a0050a
+6fe1430a
+1fe0fff9
+2040457c
+2020438d
+78547c00
+68490506
+6fe10508
+98467c00
+2421438a
+18427e00
+c1800000
+78347c00
+7001b401
+2020452a
+20404383
+20740000
+68494290
+58002800
+98467c00
+2022c394
+20204528
+70437100
+68490506
+604904cc
+204040df
+243a4528
+684904cc
+204040df
+243a43ad
+18c22200
+6fe0851b
+1fe27200
+6848850a
+98467c00
+2422c3a9
+da40050b
+20407477
+2022c3b0
+6fe10523
+68494290
+98467c00
+2022c3b8
+6fe104cc
+1fe0fe01
+67e104cc
+20204399
+6fe0c371
+c000c3b8
+20204528
+6fe10523
+68494290
+98467c00
+2422c3a9
+70437101
+684904cc
+6049051e
+202043a9
+6fe0c371
+c00043a9
+70437102
+684904cc
+184085ff
+60490520
+da200005
+20404535
+58000007
+e7e08005
+6fe1051e
+e7e10005
+6fe10520
+e7e10005
+20600000
+20404569
+20404577
+202043ca
+68490506
+604904cc
+2040409b
+204040b2
+18c08dfe
+18c27e00
+67e1051c
+6849050b
+58002a00
+98467c00
+2022c431
+58002803
+98467c00
+2422c41d
+d9600002
+2040453c
+242143fa
+684904cc
+204040dd
+243a43fa
+20404540
+2422c3f8
+243443fc
+78547c00
+da200014
+20404535
+58000009
+e7e08005
+18a26000
+18a08a01
+2040440a
+20404538
+204040dd
+20404411
+6fe08522
+1fe0a205
+e2208030
+1a267c07
+2442f4cc
+2042f4ce
+2040456e
+9a26fc00
+20407475
+18079600
+196097ff
+2022c3fa
+20404538
+202043d9
+20344528
+2020455c
+2040454c
+20404538
+204040dd
+204044bb
+243a43fa
+204073b7
+6fe104cc
+1fe0ffff
+e7e10005
+20404558
+20404411
+196097ff
+2022c3fa
+202043f8
+6fe104cc
+e7e10005
+6fe0851b
+1fe27200
+204073ba
+2040740c
+202073bd
+204073b7
+6fe104cc
+e7e10005
+204073bd
+6fe08522
+1fe27200
+204073b7
+204073ba
+9f260c00
+18c08dff
+2040740c
+202073bd
+204040c2
+203a4528
+18c22600
+18c08dfb
+efe10006
+67e104cc
+da200014
+20404535
+58000009
+e7e08005
+efe08013
+1fe27200
+1fe0fe02
+e7e08005
+6fe104cc
+e7e10005
+1a608c01
+2040740c
+204073bd
+2020455c
+d8402a00
+204040c2
+207a0000
+18c08dfb
+efe10006
+67e104cc
+da200014
+20404535
+58000009
+e7e08005
+6fe0c22d
+1fe27200
+1fe0fe02
+e7e08005
+6fe104cc
+e7e10005
+d8c0422e
+2040740c
+204073bd
+2020455c
+204044ec
+6849436f
+6fe0c2f6
+c281c46a
+204040b2
+2422c528
+20544470
+20740000
+204040bf
+18c08dfe
+efe10006
+d8402a00
+98467c00
+2022c460
+efe08006
+1fe67c16
+20214457
+18007e16
+1fe22600
+204073c0
+1a60a201
+20404535
+5800000b
+e7e08005
+1a627200
+204073ba
+20207419
+204073c0
+6fe0c22d
+1fe0a201
+20404535
+5800000b
+e7e08005
+6fe0c22d
+1fe27200
+d8c0422e
+20207419
+6fe14307
+98467c00
+2422c449
+24344449
+7001b405
+2020452a
+18c08dfe
+efe10006
+c287446e
+202074ca
+efe10006
+67e1050a
+da200014
+20404535
+5800000d
+e7e08005
+6fe1050a
+98002200
+6849436f
+204040af
+203a4528
+efe08006
+9a267200
+24214528
+1f267c16
+20214485
+18007216
+1a227e00
+98c08c00
+2040740c
+204073bd
+2020455c
+20404569
+20404577
+2020448d
+d9600002
+68490506
+604904cc
+204040b2
+18c08dfe
+18c27e00
+67e1051c
+2040453c
+242144c3
+684904cc
+204040dd
+243a44c6
+20404540
+2422c4b9
+19627e00
+c00044c6
+243444af
+78547c00
+da200014
+20404535
+58000011
+e7e08005
+6fe0851b
+1fe0a204
+e2208005
+204073bd
+1a267c06
+2442f4cc
+2042f4ce
+2040456e
+9a26fc00
+20407475
+18079600
+202044b5
+204044bd
+243a44c6
+6fe104cc
+1fe0ffff
+67e10520
+20404552
+6fe104cc
+67e1051e
+2040454c
+196097ff
+20404538
+20204494
+6fe08522
+202044be
+6fe0851b
+203644c1
+1fe0fffe
+20600000
+1fe0fff0
+20600000
+6fe104cc
+67e10520
+202044ca
+6fe104cc
+1fe0ffff
+67e10520
+202044ca
+20344528
+20404552
+2020455c
+18c22200
+6fe1430a
+1fe0a5fd
+20404072
+470fc023
+204044ec
+6849436f
+204040b2
+2422c4ea
+205444e6
+20740000
+6fe0c2f6
+c30244e1
+6849436f
+6fe14307
+98467c00
+2422c4e1
+204044ec
+243444e1
+2020446e
+18002201
+20404535
+58000013
+e7e08005
+20600000
+18c08dfe
+efe10006
+c287c46e
+202074ca
+7001b401
+2020452a
+47104024
+204074ca
+6fe0c2d3
+c1000000
+6fe0c040
+c3820000
+202074c8
+18c0a202
+6fe1430a
+1fe0a5fb
+20404072
+202044f8
+6fe1430a
+1fe22200
+20404535
+58000017
+e7e08005
+6fe1436f
+e7e10005
+6fe1430a
+1fe0f3fb
+6fe1430e
+1fe08c07
+efe10006
+e7e10005
+2020740c
+18002201
+20404535
+58000019
+e7e08005
+20600000
+6fe0c36d
+793ffe00
+67e0c36d
+20600000
+18c22200
+6fe1430a
+1fe0a5fd
+20204072
+18422600
+1a20a203
+20404535
+1a20a3fd
+5800001b
+e7e08005
+1a620400
+e0410005
+20600000
+6fe0c36d
+79207e00
+67e0c36d
+18422600
+1a20a203
+20404535
+1a20a3fd
+5800001d
+e7e08005
+1a620400
+e0410005
+20600000
+4710c024
+7001b40a
+18002205
+20404535
+58000001
+e7e08005
+6fe0c36e
+e7e08005
+6fe1436f
+e7e10005
+6fe081b4
+e7e08005
+20600000
+47114024
+18002404
+2020419f
+684904cc
+18408401
+604904cc
+20600000
+684904cc
+6fe10508
+98467c00
+20600000
+4711c024
+6848850a
+da20050b
+6fe08522
+1fe27200
+98467c00
+24628000
+da400523
+20207477
+6848c28f
+da204290
+20204543
+47124024
+6fe0851b
+67e084f6
+1fe27200
+204073ba
+2020740c
+4712c024
+204073b7
+6fe1051e
+e7e10005
+6fe10520
+e7e10005
+6fe084f6
+1fe27200
+2040740c
+202073bd
+47134024
+204073b7
+204041c5
+18a27e00
+98c62200
+204041c8
+1a227e00
+e7e10006
+1a20a204
+204041ba
+1a227e00
+e7e08006
+20600000
+1fecfe00
+67e10506
+efe10006
+67e10508
+20600000
+4713c024
+6fe142b8
+1fe0fffe
+684942b6
+184085fe
+204074be
+d84000f0
+204074be
+20600000
+47144025
+204073c0
+d8a0050a
+6fe1430a
+1fe0fffb
+e7e08005
+1fe27200
+204073ba
+2020740c
+6fe1004b
+c1820000
+6fe0c36d
+79207e01
+67e0c36d
+6fe1804d
+67e1c36e
+7920000f
+c009459b
+c02945a0
+c00c4506
+c0014346
+c00f450b
+793f800f
+6fe0c36d
+793ffe01
+67e0c36d
+20600000
+6fe0c36d
+c4008000
+7920000f
+204045ab
+204045b1
+2054458e
+6fe0c36e
+c00944d1
+20600000
+204045a0
+2020459d
+204045b1
+24740000
+202044d1
+4714c025
+204045a4
+da200050
+20204072
+6fe08048
+1fe0a5f9
+1fe0fffc
+67e1430c
+68490049
+6049430a
+20600000
+6a408048
+6fe1430c
+9a408400
+6049430c
+da200049
+20204072
+204074ca
+6fe1430c
+6849430a
+98467c00
+24628000
+202074c8
+efe08006
+e8408006
+e8410006
+c009c5bc
+20600000
+efe10006
+67e14311
+7004c340
+20206f7b
+da20000c
+da600012
+204045c8
+58000008
+e7e10005
+6fe442a8
+e7e40005
+20600000
+204045d0
+da400005
+2040419f
+1a627e00
+e7e08005
+6fe0c310
+e7e08005
+20600000
+6fe0c310
+1fe0fe01
+67e0c310
+c1800000
+70431001
+20600000
+6fe0c2d3
+c00045db
+c000c5de
+c00145e0
+20600000
+70428900
+70428703
+20600000
+70428905
+202045dc
+70428905
+70428700
+20600000
+efe08006
+c000c5f5
+c001c616
+c0024625
+c002c630
+c003c680
+c0044670
+c004c67c
+c0054680
+c005c680
+20600000
+18002202
+204046c0
+5800000b
+e7e08005
+6fe0c289
+e7e08005
+20600000
+67e0c27f
+efe30006
+e7e30005
+6fe0c2d3
+c0004636
+20404611
+7042d103
+6fe0c280
+c0004603
+c000c603
+c001c603
+6fe0c2d3
+c0014606
+c1418000
+dfe00000
+67e242d4
+20600000
+6fe0c2f6
+c280460f
+da2042d4
+1a220a00
+df200003
+204074e4
+6fe142d6
+1fe17e07
+67e142d6
+7004c334
+20206f7b
+18002207
+204046c0
+6fe3c286
+e7e38005
+20600000
+7042d105
+d8a0425d
+204073d2
+6fe0c2d3
+c002461c
+2020461e
+7004c343
+20206f7b
+7042d106
+20406d45
+18002211
+204046c0
+58000003
+e7e08005
+20206e91
+18c22200
+1a220c00
+20406d3d
+2022c638
+7001b504
+18002202
+204046c0
+58000005
+e7e08005
+6fe081b5
+e7e08005
+47154025
+18000e07
+2040741f
+7042d100
+7004c330
+20206f7b
+7001b505
+2020462a
+20406d39
+7004c331
+20406f7b
+70425c01
+7042d109
+18002211
+204046c0
+58000004
+e7e08005
+d8c0426d
+202073d2
+18002211
+204046c0
+58000006
+e7e08005
+6fe0c2f6
+c280c64b
+d8c0424c
+202073d2
+d8c042f7
+202073d2
+d8a042d8
+1800720a
+204074e4
+1800220b
+204046c0
+58000007
+e7e08005
+6fe142d8
+e7e10005
+6fe442da
+e7e40005
+20600000
+18002211
+204046c0
+58000008
+e7e08005
+58000000
+e7e40005
+e7e40005
+20600000
+18002208
+204046c0
+58000009
+e7e08005
+6fe0c2a7
+e7e08005
+6fe342b0
+e7e30005
+20600000
+7001b508
+2020462a
+6fe0c28b
+6848c28b
+98417e00
+20600000
+d8a042e2
+204073d2
+2040466c
+2fec0001
+2020c66a
+20600000
+204074ca
+6fe0c2a0
+c1000000
+6fe0c284
+c4008000
+202074c8
+2040466c
+2fec0001
+2020c66a
+20600000
+20600000
+6fe0c2d1
+c17f8000
+d8400003
+98467c00
+24610000
+d8e00007
+2040742e
+247a0000
+2020466a
+4715c025
+204041cc
+247a0000
+6fe0c2d1
+c0004697
+c000c69d
+c0014697
+c001c69f
+c004c6a3
+c005c6ae
+c00646b0
+c006c6b7
+20600000
+6fe0c2d2
+c1820000
+7042d2ff
+7042d1ff
+7004c33f
+20206f7b
+7042d102
+202045ee
+7042d104
+58017700
+d8e00007
+20207420
+6fe0c2d2
+c00246a6
+20600000
+6fe0c2d3
+c283c6ac
+7042d10b
+20404643
+7004c329
+20206f7b
+7042d10c
+202046aa
+7042d10c
+2020464d
+6fe0c285
+6848c28c
+98417e00
+2fec0001
+2020c6b9
+7042d10d
+20204659
+20404661
+202046b9
+47164025
+18000e07
+2040741f
+7042d2ff
+7042d1ff
+7004c33e
+20206f7b
+47174025
+18002406
+2020419f
+6fe08049
+c00046da
+c000c6e2
+c00146ea
+c001c6ee
+c002470c
+c002c711
+c0034715
+c003c71a
+c004471b
+c004c71c
+c005471d
+c005c721
+c0064722
+c006c724
+c0094725
+c009c726
+c00a4727
+c00ac729
+c00b4734
+c00c4735
+6a608049
+20204758
+efe48006
+67e4819a
+efe10006
+67e10183
+6fe08163
+79207e05
+67e08163
+20600000
+efe28006
+67e2819a
+efe10006
+67e10183
+6fe08163
+79207e06
+67e08163
+20600000
+58000014
+67e10191
+67e142ca
+20600000
+efe40006
+67e442da
+efe10006
+67e142d8
+efe40006
+67e442ba
+efe20006
+67e24410
+20404745
+4717c025
+6fe0c2d1
+c004c700
+6fe0c2f6
+c280c703
+6fe0c3b3
+245a6b4d
+6fe0c25c
+c0004708
+7042d201
+20404753
+20206d4b
+70425c01
+d8c042f7
+d8a0424c
+204073d2
+20204700
+7042d200
+7042d100
+7004c341
+20206f7b
+efe40006
+67e442c2
+efe20006
+67e24414
+20206d4b
+6fe08163
+79207e04
+67e08163
+20600000
+20748000
+7004c332
+20406f7b
+7042d204
+20204756
+20600000
+2020475d
+20600000
+7042d202
+20404764
+7004c333
+20206f7b
+20600000
+20748000
+20204766
+20600000
+20204772
+20600000
+20404729
+20204776
+efe40006
+67e4437c
+6fe1437c
+68494388
+204074be
+67e1437c
+6fe14380
+68494384
+204074be
+67e14380
+20600000
+2020477c
+efe10006
+67e1019a
+efe10006
+67e10183
+207a0000
+6fe08163
+79207e07
+67e08163
+20600000
+da600013
+da200002
+da400002
+20404199
+1a627e00
+e7e08005
+20600000
+d8a042c2
+18007208
+204074e4
+d8a04414
+18007204
+204074e4
+da20000d
+da400004
+20404199
+6fe442c2
+e7e40005
+6fe24414
+e7e20005
+20600000
+7042d205
+da400005
+20204786
+da400006
+20204786
+da200002
+da400007
+20404199
+e2608005
+20600000
+da200009
+da400009
+20404199
+6fe44372
+1fe1fe01
+e7e40005
+20600000
+da40000b
+20204786
+da200006
+da40000c
+20404199
+6fe2c120
+e7e28005
+20600000
+da200002
+da40000d
+20404199
+58000006
+e7e08005
+20600000
+da400013
+20204786
+da400014
+20204777
+da400015
+da200009
+20404199
+6fe44384
+e7e40005
+20600000
+da200003
+da400017
+20404199
+6fe0c37a
+1fe17e07
+e7e08005
+6fe0c37b
+1fe17e07
+e7e08005
+20600000
+da200001
+20204199
+47184026
+c513ca1e
+20204c62
+4718c026
+7844fc00
+7843fc00
+58555555
+98001e00
+6fe0c4d8
+20203d0c
+47194026
+6fe0c502
+20403ce0
+6fe244da
+98001200
+20403925
+6848c4d8
+20403d11
+2040478b
+c597c79f
+783cfc00
+2000001e
+2040478b
+7857fc00
+7826fc00
+7830fc00
+78507c00
+78287c00
+6fe144d6
+98003600
+37c18400
+242c47f9
+204065a4
+c517c7ae
+6fe0c515
+243a47ae
+7846fc00
+7825fc00
+7823fc00
+7824fc00
+204047f6
+67e0c4f8
+6848c4f7
+98467c00
+2422c801
+4719c026
+7858fc00
+280ffe2f
+2040c7e8
+2038c803
+204047f6
+67e0c442
+c513c7c1
+6fe0c442
+6848c4d4
+a8400e00
+2420c805
+204047f6
+280ffe2f
+2040c7f1
+e7e08005
+1fe97e00
+1fe67c1f
+24214807
+1fe27200
+2022c7cd
+204047f6
+e7e08005
+c20047ca
+c513c7d2
+18a22200
+204047f6
+67e0c51e
+1a220a00
+09800018
+1fef7e00
+1ff17e00
+e7e18005
+6fe0c515
+243a47e6
+7845fc00
+280ffe27
+2040cc37
+20234809
+204065a3
+471a4026
+7837fc00
+20403dfc
+c6138000
+6fe0c51e
+6848c575
+98467c00
+204174c0
+20204c3a
+7846fc00
+202047d9
+204047f6
+1fe67c01
+202174d0
+1fe0fffe
+c513c7ef
+203a74d0
+1fe0ffff
+67e084cc
+20600000
+1fe17e07
+684884cc
+18498400
+9841fe00
+20600000
+09800008
+19897e00
+20600000
+70451601
+280ffe27
+2040cc52
+471ac026
+20403d00
+784dfc00
+7845fc00
+202038cc
+70451602
+202047fc
+70451603
+202047fc
+70451604
+202047fc
+70451605
+202047fc
+70451606
+202047fc
+20403925
+6848c4d8
+202039c9
+471b4026
+6fe0c503
+20403ce0
+6fe244da
+98001200
+2040478b
+2040480b
+79202a00
+782efc00
+78307c00
+7850fc00
+204065aa
+785d7c00
+c517c840
+c516c852
+19317e00
+1fecfe00
+1ff1fe00
+08008628
+471bc026
+c517c827
+6fe0c515
+243a4827
+784efc00
+782dfc00
+7823fc00
+7824fc00
+6fe0c4d5
+98007200
+d8c04484
+efe08006
+08008608
+c200482c
+78247c00
+08008618
+78447c00
+c597c836
+7843fc00
+58000000
+08008603
+37d38200
+20000064
+785d7c00
+784efc00
+6fe0c515
+243a483d
+784dfc00
+785c7c00
+20403925
+202065a8
+df20000a
+5800003c
+08008608
+c2004841
+784efc00
+783c7c00
+19317e00
+1ff17e00
+1ff1fe00
+08008620
+c517484f
+58000001
+08008605
+783d7c00
+20204821
+58000000
+08008605
+20204821
+6fe0c11d
+1fe37200
+20000002
+c2004854
+19317e00
+1fecfe00
+1ff18400
+18427e00
+08008608
+18427e00
+08008628
+20204821
+471c4027
+6fe0c503
+c281487f
+6fe0c4d3
+1fe0fe03
+67e0c4d5
+6fe0c4f7
+67e0c484
+6fe0c4d4
+e7e08005
+6fe0c4d3
+1fe9fe00
+6848c4c9
+18410403
+18438400
+9841fe00
+6848c4ca
+9840fe00
+e7e08005
+6fe0c4d3
+98007200
+d8c04464
+20407419
+471cc027
+c6938000
+6fe08030
+e7e08005
+6fe0c503
+c3810000
+6fe0c4d5
+1fe0fe01
+67e0c4d5
+20600000
+6fe0c4d3
+1fe0fe04
+c593c883
+1fe0fe01
+67e0c4d5
+6fe0c4f7
+67e0c484
+6fe0c4d5
+1fe0fffe
+e7e08005
+6fe0c4d4
+e7e08005
+58000000
+20204869
+471d4027
+6fe0c443
+1fe97e00
+67e0c4c8
+1fe0fe01
+d8c04443
+98c08c00
+efe18006
+67e1c4cb
+6fe0c443
+1fe37e00
+1fe17e03
+67e0c4d1
+20600000
+471dc027
+6848c4d9
+204048a0
+6048c4d9
+20600000
+471e4027
+204048a5
+18408401
+18410403
+20600000
+471ec027
+6fe0c4da
+1fe17e03
+1fefa204
+580044de
+9a20fe00
+98408c00
+efe08006
+67e0c4d8
+20600000
+67e244da
+471f4027
+da200000
+df200004
+d8c044da
+efe08006
+9a20a200
+c20048b4
+1a227e00
+67e144f5
+6fe0c4f5
+6848c4f6
+9840fe00
+67e0c4f7
+20600000
+471fc027
+204074ca
+684a44ee
+1c427e00
+98467c00
+244148ce
+1fe22400
+6fe244ee
+6848c4f2
+98408400
+1a427e00
+98467c00
+24610000
+793ffe1c
+67e244ee
+202074c8
+20628000
+79207e1c
+20600000
+58000000
+67e244ee
+20600000
+47204028
+38001300
+3805908b
+380b6150
+380c3d20
+67e4c4de
+38003a1a
+3804c453
+3808d312
+380c0001
+e7e38005
+6fe0c504
+207a0000
+d8c04505
+d8a044de
+202073d2
+4720c028
+584e001e
+67e1c506
+58032303
+e7e18005
+58250642
+e7e18005
+58094c06
+e7e18005
+583c0927
+e7e18005
+70450401
+20600000
+47214028
+d8406978
+c513c8f8
+d84012c0
+6fe0c502
+c30148f8
+d8402ee0
+604944d6
+20600000
+70450201
+70450301
+20600000
+70450202
+70450302
+20600000
+4721c028
+70451b4e
+58101520
+67e1c517
+58000005
+e7e08005
+20600000
+da604523
+da404cdb
+20204dd3
+79200026
+6fe0c547
+793ffe02
+79207e01
+67e0c547
+58000000
+67e14529
+6fe14521
+67e14523
+70452000
+2040494f
+7044c900
+6fe0c51b
+67e0c4d8
+6fe0c51c
+67e0c116
+6fe24517
+202048af
+47224028
+70452d00
+6fe14525
+1fe0fe01
+67e14525
+6fe0c525
+1fe17eff
+247a0000
+6fe0c51f
+c07fc971
+c000c92b
+c001492d
+c001c933
+c0024939
+20600000
+704464ff
+2020493a
+6fe0c4f9
+203a4931
+6fe2454f
+204048af
+704464aa
+2020493a
+70446455
+6fe0c4f9
+203a493a
+6fe24533
+67e24466
+2020493c
+70446422
+6fe2454f
+67e24466
+6fe0c4d4
+1fe17e07
+67e0c465
+70446a00
+7044d307
+2040485e
+20404cb0
+246c0000
+24778000
+20404bef
+20404ccf
+4722c028
+6fe0c51f
+c17f8000
+c000c954
+c0014956
+c001c95c
+c0024964
+20600000
+70451f02
+6fe0c4f9
+207a0000
+70451f01
+20600000
+70451f02
+20204cab
+6fe0c4f9
+203a495a
+6fe244aa
+67e24533
+70451f03
+20204cab
+6fe0c4f9
+203a4962
+6fe244aa
+684a454f
+98467c00
+24628000
+70451f04
+20204cab
+6fe0c4f9
+203a496a
+6fe244aa
+684a4533
+98467c00
+24628000
+70451fff
+7004c339
+20406f7b
+58000000
+67e14523
+6fe244aa
+204048af
+6fe0c547
+793ffe01
+67e0c547
+20204cab
+70456101
+70456000
+20600000
+6fe0c560
+c3808000
+79207e01
+67e0c560
+58000000
+67e1c51e
+67e0c529
+67e0c52a
+67e24577
+70455c01
+20204915
+70455c01
+7044d308
+d8c04521
+d8a04464
+202073cc
+47234028
+20404a39
+20404792
+2437ca39
+20404997
+20404a6c
+20404a14
+2040521d
+6fe0c4f9
+207a0000
+6fe24577
+207a0000
+202048af
+20404a39
+202047fc
+70456d05
+d8c04442
+d8a04533
+204073cc
+4723c028
+6fe0c535
+c05549a2
+c02ac9b3
+c01149d4
+c07fcc0e
+20600000
+6fe0c536
+c000c9a6
+c00149ae
+20600000
+6fe0c529
+247a0000
+70451e01
+70452101
+70452280
+6fe3443c
+67e34523
+20600000
+6fe0c52a
+247a0000
+70451f01
+70452102
+202049aa
+6fe0c4f9
+203a49b9
+6fe24537
+684a443c
+98467c00
+24628000
+6fe0c536
+c000c9bd
+c00149ca
+20600000
+6fe0c529
+247a0000
+6fe0c51e
+c000c9c2
+20600000
+70451e02
+6fe0c4f9
+203a49a9
+70452101
+70452280
+6fe24577
+67e24523
+202074c8
+6fe0c52a
+247a0000
+6fe0c51f
+c000c9cf
+20600000
+70451f02
+6fe0c4f9
+203a49b1
+70452102
+202049c6
+6fe0c4f9
+203a49da
+6fe24537
+684a4577
+98467c00
+24628000
+6fe0c536
+c000c9de
+c00149ec
+20600000
+6fe0c529
+247a0000
+6fe0c51e
+c00149e3
+20600000
+70452901
+20404a08
+204049a9
+6fe0c520
+1fe1fe01
+67e0c520
+58000000
+67e1451e
+20600000
+6fe0c52a
+247a0000
+6fe0c51f
+c08049f1
+20600000
+70452a01
+20404a0e
+204049b1
+6fe0c520
+1fe1fe02
+67e0c520
+204049e9
+20205217
+6fe0c561
+c1808000
+6fe0c55b
+247a0000
+6fe0c445
+c000ca01
+c0014a05
+20600000
+6fe0c576
+c4000000
+7857fc00
+20600000
+6fe0c576
+c4008000
+20204a03
+6fe0c55b
+247a0000
+6fe0c576
+1fe1fe01
+67e0c576
+20600000
+6fe0c55b
+247a0000
+6fe0c576
+1fe1fe02
+67e0c576
+20600000
+6fe0c520
+207a0000
+6fe0c536
+c000ca08
+c0014a0e
+20600000
+79200027
+6fe0c116
+67e0c56e
+20204c45
+6fe1452b
+20207487
+47244029
+7044d300
+6fe0c55c
+207a0000
+6fe1452d
+20207487
+20404a69
+2437ca39
+20404a5b
+24344a39
+6fe0c4c8
+203a4a39
+1fe0fe02
+98007200
+d8c04442
+d8a04533
+20407419
+70455e00
+6fe0c55b
+205a4a76
+4724c029
+6fe0c535
+c000ca3f
+c0014a4e
+c07fca3d
+47254029
+d8a04442
+df200042
+202073ec
+20404a16
+20204c0e
+20404a08
+20404ba2
+6fe0c555
+6848c533
+284ffe03
+7920fe00
+67e0c555
+c000ca54
+6fe0c55d
+6848c533
+284ffe04
+7920fe00
+67e0c55d
+6fe1452f
+20207487
+20404a0e
+6848c533
+284ffe03
+2020ca59
+6fe14531
+20207487
+6fe0c095
+1fe67c0c
+2042cebb
+6fe2453d
+20204c14
+6fe2453d
+20204c18
+204074ca
+6fe0c4d1
+6848c4d2
+98467c00
+2442f4c8
+6fe0c4d1
+67e0c4d2
+6fe1c4cb
+6849c4ce
+98467c00
+2442f4c8
+6fe1c4cb
+67e1c4ce
+20600000
+20404a39
+20404792
+24778000
+6fe0c442
+67e0c4d4
+2040488d
+6fe0c443
+2feffe00
+2020ca75
+20404a20
+2040485e
+2040480e
+202047fc
+70455f01
+58000280
+d8e00008
+20207420
+4725c029
+70455e01
+70456200
+7044f2ff
+202048d1
+47264029
+6fe0c55e
+207a0000
+204048be
+24740000
+20404a8c
+6fe0c562
+1fe0fe01
+1fe17e01
+67e0c562
+c0004a91
+c000ca94
+20600000
+6fe0c56d
+207a0000
+1fe0ffff
+67e0c56d
+20600000
+6fe0c56d
+247a0000
+20204ad6
+6fe0c56d
+247a0000
+20204975
+6fe0c575
+247a0000
+6fe0c573
+205a4ac5
+6fe0c570
+c3800000
+79207e00
+67e0c570
+70456f01
+70457400
+58000000
+67e14571
+7044f260
+202048d1
+4726c029
+6fe0c561
+c1000000
+6fe0c575
+247a0000
+6fe0c573
+247a0000
+6fe0c56f
+207a0000
+204048be
+24740000
+6fe14571
+1fe0fe01
+67e14571
+d84007d0
+98467c00
+20214ac1
+20404a8c
+6fe0c574
+1fe0fe01
+1fe17e01
+67e0c574
+c0004abe
+c000c975
+20600000
+6fe0c56d
+243a4975
+20204b88
+70457301
+20204b88
+70456f00
+20600000
+70456f01
+20600000
+47274029
+6fe0c560
+c3800000
+79207e00
+67e0c560
+6fe0c56e
+67e0c116
+70455c00
+7007ab00
+70455501
+7044c900
+6fe2443c
+204048af
+2040489b
+20204a39
+70455c00
+70456100
+70456000
+20600000
+6fe0c561
+c1800000
+20404ac7
+20404b8c
+20204a26
+4727c029
+6fe0c561
+c1808000
+20404978
+20404988
+6fe0c55b
+247a0000
+6fe0c520
+207a0000
+70455e00
+20404ad6
+20404a76
+202048d1
+6fe0c560
+c3838000
+79207e07
+67e0c560
+70456200
+70455c01
+58000000
+67e1c588
+67e3c565
+20404b7a
+24628000
+6fe0c4d9
+67e0c564
+6fe0c4d8
+67e0c563
+20600000
+4728402a
+6fe0c561
+c1838000
+20404aec
+20404b22
+20404a69
+2437ca39
+20404b7a
+2042ca28
+6fe0c555
+205a4ac3
+70456100
+6fe0c560
+79207e00
+67e0c560
+6fe0c55c
+1fe67c02
+2442cb78
+20404a39
+20404a76
+20404b7a
+2022cb1b
+6fe244da
+684a457f
+98467c00
+2022cb1e
+6fe244da
+684a457b
+98467c00
+2022cb20
+20600000
+6fe0c564
+67e0c4d9
+20600000
+6fe0c56a
+20204b1c
+6fe0c567
+20204b1c
+4728c02a
+6fe0c562
+1fe0fe01
+1fe17e03
+67e0c562
+c0004b46
+c000cb60
+c0014b2c
+c001cb60
+20600000
+204049a9
+6fe2457b
+203a4b22
+204048af
+6fe0c568
+205a4b41
+6fe0c566
+67e0c4d8
+6848c589
+6a21458f
+20404c1a
+6048c589
+20404c23
+6048c586
+18467c50
+24610000
+6848c567
+204048a0
+6048c567
+67e0c566
+20600000
+70456801
+d8400000
+204048a5
+67e0c566
+20600000
+204049b1
+6fe2457f
+203a4b22
+204048af
+6fe0c56b
+205a4b5b
+6fe0c569
+67e0c4d8
+6848c58a
+6a214591
+20404c1a
+6048c58a
+20404c23
+6048c587
+18467c50
+24610000
+6848c56a
+204048a0
+6048c56a
+67e0c569
+20600000
+70456b01
+d8400000
+204048a5
+67e0c569
+20600000
+204049a9
+6fe2443c
+204048af
+6fe0c565
+205a4b74
+6fe0c563
+67e0c4d8
+6848c588
+6a21458d
+20404c1a
+6048c588
+20404c23
+6048c585
+18467c50
+24610000
+6848c564
+204048a0
+6048c564
+67e0c563
+20600000
+70456501
+6fe0c563
+67e0c4d8
+20600000
+70455c00
+20600000
+6fe244da
+684a443c
+98467c00
+20600000
+6fe0c55c
+c1010000
+6fe0c55f
+207a0000
+d8e00008
+2040742e
+247a0000
+70455f00
+70456d00
+20404a97
+4729402a
+70456107
+70456000
+20204a39
+4729c02a
+6fe0c555
+c000cc59
+6fe0c55d
+c000cba0
+684a4556
+1c427e00
+98467c00
+244148ce
+1fe22400
+6fe24556
+6848c55a
+98408400
+1a427e00
+98467c00
+24610000
+793ffe1c
+67e24556
+70455501
+2020489b
+70455d00
+2020489b
+1c427e00
+67e24556
+20600000
+da604529
+da404cdb
+20204dd3
+472a402a
+79200026
+6fe0c547
+793ffe01
+79207e02
+67e0c547
+6fe0c52e
+203a4bbd
+6fe0c52d
+c000cbb5
+c0014bb5
+c001cbc4
+c0024bc4
+6fe0c51c
+67e0c116
+6848c537
+6048c4d9
+6fe2452f
+20404bce
+6048c537
+20600000
+70411603
+6848c538
+6048c4d9
+6fe24533
+20404bce
+6048c538
+20600000
+70411603
+6848c539
+6048c4d9
+6fe2454f
+20404bce
+6048c539
+20600000
+6fe244aa
+207a0000
+67e24533
+204048af
+2020489b
+472ac02a
+6fe1452b
+d84001f8
+98417e00
+203a4bd9
+6fe1452b
+1fe0fe01
+67e1452b
+20600000
+20404bf3
+20404cb0
+242c4bfa
+2437cbfa
+20404ccf
+6fe24517
+684a44da
+98467c00
+2022c90a
+6fe2454f
+684a44da
+98467c00
+2042cbcb
+6fe0c547
+793ffe02
+67e0c547
+58000000
+67e14523
+67e1452b
+67e14529
+7004c33c
+20406f7b
+472b402a
+df200004
+d8a04464
+202073dd
+704464ff
+6fe0c4d4
+67e0c465
+6fe2454f
+67e24466
+7044d306
+2020485e
+6fe0c52e
+203a489b
+6fe1452b
+1fe0fe01
+67e1452b
+2feffe09
+6fe0c52d
+c000cc06
+c0014c08
+c001cc0a
+c0024c0c
+20204bbd
+2020cbbd
+20204bb5
+2020cbc4
+20204bb5
+2020cbc4
+20204bbd
+2020cbc4
+20204915
+6fe0c536
+c000cc12
+c0014c16
+20600000
+6fe24537
+67e24577
+67e2457b
+20600000
+6fe24537
+67e24577
+67e2457f
+20600000
+472bc02a
+1a227e00
+98408a00
+6fe08009
+e7e08005
+18408401
+6fe0c51d
+98410400
+20600000
+472c402b
+6fe0c51d
+1fe0fe01
+67e104ef
+1fe27200
+1a220c00
+dfe00000
+e8408006
+9840fe00
+c2004c2a
+684904ef
+9846fc00
+20407475
+18078400
+c6138000
+18427e00
+c6930000
+20403a68
+1fe20400
+20600000
+20203a49
+6fe1453b
+20204c4c
+1fe22200
+6848c53a
+6fe1453b
+98408a00
+1a227e00
+e7e08005
+18408401
+6fe0c51d
+98410400
+6048c53a
+20600000
+6fe1458b
+20404c4c
+6fe1458d
+20404c4c
+6fe1458f
+20404c4c
+6fe14591
+207a0000
+1fe20a00
+6fe0c51d
+1fe0fe01
+1fe27200
+202073ec
+20404c37
+207a0000
+6848c584
+6a21458b
+20404c1a
+6048c584
+20600000
+6a21458b
+20404c23
+6048c583
+18467c50
+24610000
+2020489b
+6fe2443c
+67e2454f
+20204c38
+c6930000
+6fe0c547
+c280c91c
+c2814bd0
+6fe0c563
+c000cd21
+472cc02b
+20404c84
+24344d00
+20404c99
+20404d49
+6fe0c095
+c0045d98
+6fe44556
+67e444fa
+6fe14568
+67e1456a
+6fe14543
+20207487
+472d402b
+20404d15
+24740000
+20404d1f
+204074e0
+6fe1c553
+20204c81
+472dc02b
+20404d15
+24740000
+20404d1f
+6fe444fa
+20407464
+604a40aa
+20203b47
+20404c87
+24740000
+2020485e
+6fe1453d
+20407487
+20344c8d
+6fe3c465
+207a0000
+202074c8
+70454d00
+1a20fe01
+67e0c4d3
+20404c95
+67e0c464
+1a420c00
+1a227200
+20207419
+6fe0c4d4
+1fe17e07
+67e0c4d4
+20600000
+58000000
+67e0c54c
+67e1456d
+20404cb0
+6fe0c4ca
+c000cca5
+242c4cbe
+2437ccbe
+20404ccf
+6fe0c095
+1fe67c08
+2042dfdc
+20404d7b
+20404bef
+6fe0c4c9
+1fe0fe01
+67e0c4c9
+20404cf3
+472e402b
+58000000
+67e0c548
+67e14549
+20600000
+472ec02b
+7857fc00
+2040480e
+6fe0c4ca
+c000c7fc
+18002a00
+6fe244da
+98001200
+68488008
+20403954
+2040396a
+2040479a
+2057c7fc
+20600000
+6fe0c095
+c0844cc3
+6fe0c77f
+247a0000
+20405bf7
+6fe0c54d
+247a0000
+6fe14549
+1fe0fe01
+67e14549
+6fe0c54a
+c2824cd7
+20404cdd
+6fe1456d
+1fe0fe01
+67e1456d
+20204c9c
+472f402b
+2040488d
+6fe0c4c8
+207a0000
+98007200
+d8c04444
+d8a044a8
+20207419
+472fc02b
+58000000
+67e14549
+70454b01
+7004c33a
+20206f7b
+4730402c
+6848c54c
+6fe0c56c
+98467c00
+24214cfb
+18408401
+6048c54c
+6fe0c56c
+c002ccea
+6fe0c54c
+c0034cf5
+c0064cf5
+20600000
+6fe0c54c
+c001ccf5
+c0034cf5
+20600000
+c517ccf1
+67e0c485
+20600000
+67e0c486
+20600000
+6fe0c4d4
+c4020000
+6fe0c4d4
+793ffe04
+67e0c4d4
+20404cee
+20404d7f
+2020489b
+20404d6f
+20404d7f
+2020489b
+6fe1453f
+20207487
+6fe0c54d
+205a4d07
+6fe0c563
+c1008000
+20404cfe
+6fe14545
+20207487
+7044d401
+70454d01
+20404c95
+67e0c464
+58000000
+67e3c465
+6fe2454f
+67e2446c
+7044d30c
+6fe0c4d4
+79207e03
+67e0c4d4
+2040485e
+20204c6b
+4730c02c
+78347c00
+20403b1b
+6fe1c0be
+203a74ca
+6fe0c094
+203a74ca
+6fe0c563
+c000f4ca
+20600000
+6fe14541
+20207487
+204048be
+24740000
+20404d36
+6fe14564
+1fe0fe01
+67e14564
+68494566
+98467c00
+2042cd2b
+20204c68
+70456300
+58000000
+67e14564
+58000064
+67e14566
+70456200
+6fe0c4f3
+67e0c4f2
+20600000
+6fe0c4f4
+20204d32
+6fe0c562
+1fe0fe01
+67e0c562
+c0024d34
+c002cd30
+20600000
+70456301
+58000000
+67e14564
+20600000
+df200002
+d8c044da
+204074c8
+5800ffff
+e8410006
+98467c00
+2442f4ca
+c2004d44
+20600000
+4731402c
+6fe0c3f0
+247a0000
+6fe14434
+c3858000
+6a21453b
+20404c23
+6048c56f
+6fe0c574
+c5134d54
+6fe0c577
+98467c00
+24214d6e
+6fe0c571
+1fe67c02
+24214d5c
+6fe0c571
+c0004d6f
+20600000
+6fe0c571
+6848c572
+98467c00
+24628000
+70457100
+6848c56f
+6fe0c573
+c5134d65
+6fe0c576
+98467c00
+24610000
+6fe0c570
+c0004d76
+1fe0ffff
+67e0c570
+c0004d76
+70411600
+20600000
+70457100
+6fe0c570
+c0014d74
+1fe0fe01
+67e0c570
+c000cd6c
+70411606
+20600000
+70411685
+20600000
+70457001
+70457100
+20600000
+6fe0c571
+1fe0fe01
+67e0c571
+20600000
+6fe0c571
+1fe67c02
+24414d87
+6fe0c571
+c1000000
+1fe0ffff
+67e0c571
+20600000
+70457103
+20600000
+44b8400e
+6fe0c095
+203a4d89
+c00250b8
+c004e028
+c00561ec
+c004522c
+20600000
+20758000
+20406bdd
+6fe0c095
+c004e157
+c0056157
+c00250c3
+c0045275
+20600000
+20406ec0
+20406f91
+20404da0
+6fe14394
+20207487
+6fe14392
+20207487
+44b8c00e
+da20441e
+204074a5
+207a0000
+1fe22600
+20404da9
+20204dad
+da600000
+20600000
+c0084dbc
+c00a4db3
+c00acdb7
+20600000
+6fe14396
+20207487
+6fe1438c
+20207487
+6fe14390
+20207487
+6fe14434
+79207e09
+67e14434
+20600000
+70436d00
+6fe14434
+793ffe09
+67e14434
+20204e19
+6fe143aa
+79207e00
+67e143aa
+20600000
+67e081dc
+44b9400e
+6fe081dc
+207a0000
+1fe0ffff
+67e081dc
+20406ecc
+20404dfa
+20406957
+6fe1439c
+20407487
+20204dc1
+efe08013
+207a0000
+1fe0ffff
+e7e08013
+247a0000
+1a427e00
+20207487
+efe10013
+207a0000
+1fe0ffff
+e7e10013
+247a0000
+1a427e00
+20207487
+684943e2
+1840a601
+da404dde
+20204dcc
+20404e2f
+c000cde1
+20204e13
+58000002
+e7e08013
+1840a408
+efe10012
+20207487
+20404de8
+20204e13
+58000000
+67e143a8
+20600000
+58000000
+67e143aa
+20600000
+6fe143aa
+79207e07
+67e143a8
+58000000
+67e143aa
+20600000
+d8e00009
+20203c21
+d8e00009
+20203c25
+7043a605
+20204df4
+da6043a6
+da404df6
+20204dcc
+7004c30f
+20206f84
+7004c310
+20206f84
+7004c30e
+20206f84
+7004c30d
+20206f84
+7004c317
+20206f84
+7004c318
+20206f84
+7004c316
+20206f84
+7004c311
+20206f84
+7004c315
+20206f84
+7004c314
+20206f84
+7004c313
+20206f84
+7004c319
+20206f84
+7004c31f
+20206f84
+7920000d
+20600000
+793f800d
+20600000
+20404e2f
+c0014e25
+58000001
+e7e08013
+1840a203
+1840a406
+e8408011
+1a60a601
+e0408013
+20204de4
+58000000
+e7e08013
+6fe14434
+c304ce2b
+2040473e
+20404e0b
+684943e2
+1840a202
+1840a404
+20204e21
+684943e2
+1840a600
+efe08013
+20600000
+20404e2f
+c0804e36
+20204e13
+1840a40a
+20204de4
+7046ec02
+70435f01
+58000020
+20406145
+d8a04235
+6fe0c2b0
+1fe104f0
+18518400
+20404e4e
+e0408005
+1fe1040f
+20404e4e
+e0408005
+204040f9
+6f20c22d
+d8a04322
+d8c0422e
+20407419
+6f20c22d
+d8a04342
+d8c0422e
+20207419
+18467c09
+20214e52
+18408437
+20600000
+18408430
+20600000
+6fe0c6b9
+c0ffce64
+6fe0c6b7
+c0ffce67
+6fe0c6c2
+c0ffce69
+6f20c625
+da204626
+1a220c00
+efe08006
+18c22200
+c07fce62
+1fe20400
+20406b96
+c2004e5c
+20600000
+6fe446b9
+67e44628
+20204e56
+67e0c626
+20204e58
+67e0c627
+20204e5a
+2040500a
+20405088
+da200000
+20406caf
+20404e54
+20404ebd
+20404e83
+6fe0c8ef
+1fe27200
+580048f0
+1fe22200
+1a220c00
+efe08006
+18c22200
+c07fce7d
+1fe20400
+67e0c8f4
+20404e7f
+c2004e76
+20600000
+6fe0c8f4
+c17f8000
+98000400
+20206b96
+7046c864
+20600000
+20404e88
+204074e0
+20206c75
+20406fd6
+df200014
+d8c08070
+18c20a00
+efe08006
+c00fce97
+c0104e97
+c010ce97
+c0114e97
+c011ce97
+c0164e97
+c016ce97
+c0004e97
+c2004e8b
+20204e9d
+58000040
+e7e08005
+20204e95
+58000080
+e7e08005
+20204e95
+6fe0c8ef
+1fe27200
+d8c048f0
+efe08006
+79207e07
+d840003e
+20406bbc
+c2004ea0
+20600000
+20206c81
+20404ebf
+20404eaa
+20204ea6
+6fe14434
+c3848000
+6fe0c902
+c000ceaf
+20600000
+6fe0c6e3
+c1008000
+7046e301
+20404eb9
+20404ebb
+20204ed2
+6fe14907
+67e14909
+70490b00
+20600000
+58000000
+20204eb6
+da200000
+20206f0b
+da200000
+20206f10
+6fe14434
+c4048000
+204041cc
+247a0000
+da204611
+20407015
+24740000
+d8c04611
+20206149
+1a627e00
+c016ce33
+c0084e1b
+c00a4ece
+c00aced8
+20600000
+20404eb9
+20404ebb
+793f8027
+20204ed4
+6fe146e4
+67e146e6
+7046c714
+70409400
+20404e01
+20204e17
+79200027
+20404eb5
+20404fbf
+20404fb3
+58000000
+67e2c695
+20406ff8
+7046570a
+7046590a
+70465b0a
+7040c102
+58000020
+20406145
+20204e03
+20404f60
+20404f63
+20404f66
+20404ef3
+20204eeb
+da604903
+da400000
+20204dcc
+da604909
+da404ef1
+20204dd3
+70490b01
+20600000
+da6046e6
+da404ef6
+20204dd3
+7046e302
+70490200
+20204edc
+6fe0c6c1
+207a0000
+da6046c7
+da404efe
+20204dcc
+6fe0c6c6
+67e0c6c7
+6fe0c6ca
+247a0000
+20406c11
+67e146e1
+da2046db
+20406c31
+6848c6c8
+98467c00
+20214f0b
+67e0c6c8
+1fe20400
+6048c6c9
+6fe0c6c3
+98467c00
+20414f16
+6048c6d4
+df200006
+d8c046cf
+20404f1d
+67e0c6d5
+da2046cc
+20206ffd
+6fe0c6cb
+247a0000
+7046cb01
+da200001
+20206f10
+da200001
+20206f0b
+da200000
+efe08006
+9a20a200
+c2004f1e
+1a217eff
+20600000
+6fe0c36e
+c0094f26
+20600000
+6fe1436f
+c00ccf3d
+20600000
+4495c005
+efe28011
+67e28546
+6fe10546
+d8406b5a
+98467c00
+24628000
+6fe10549
+1ff0fe00
+67e10549
+1fe27200
+1a20a205
+1a220c00
+d8a0054b
+20407419
+efe08006
+67e08555
+da200548
+da40054b
+20600000
+58000000
+67e2c64b
+67e2c650
+20404f29
+1a420c00
+d8a0464b
+df20000a
+20407419
+44964005
+efe08011
+c0014f6f
+c001cf84
+c0024f8b
+c002cf8b
+c003cffb
+c0044ffe
+20600000
+20404f3d
+6fe08548
+c0024f53
+c002cf53
+20600000
+6fe0c64b
+245a4f5a
+6fe0c64d
+245a4f5c
+6fe0c64f
+207a0000
+203a4f5e
+7048ec05
+20600000
+7048ed05
+20600000
+7048ee05
+20600000
+da6048ec
+da404f69
+20204dcc
+da6048ed
+da404f6b
+20204dcc
+da6048ee
+da404f6d
+20204dcc
+70464b00
+20204f8b
+70464d00
+20204f8b
+70464f00
+20204f8b
+6fe0c64b
+67e0c656
+6fe0c64c
+67e0c658
+20204f95
+6fe0c64b
+67e0c658
+20204fa3
+6fe0c657
+20404f7c
+6fe0c64c
+67e0c656
+20204fa1
+c0014f80
+c001cf82
+67e0c657
+20600000
+70465705
+20600000
+7046570a
+20600000
+6fe0c64b
+20404f7c
+6fe0c657
+20404fef
+20404ff2
+7004c500
+20206cd4
+6fe0c6e9
+247a0000
+6fe3464b
+67e34656
+6fe0c657
+6848c659
+98417e00
+6848c65b
+98417e00
+205a4fa7
+4496c005
+6fe14434
+2feffe09
+2440ceb5
+20404fa1
+20404fa3
+20204f9c
+6fe0c656
+6848c658
+9840fe00
+243a6fd8
+20206fd6
+d8c04656
+20204fa9
+d8c04658
+20204fae
+d8c0465a
+20204fcb
+7046ca00
+20600000
+efe08006
+c0004fb3
+c000cfb7
+c0014fbb
+20600000
+efe08006
+c0004fbf
+c0014fc3
+c000cfc7
+20600000
+6848c8f0
+20406b92
+6848c8f1
+20206b92
+6848c8f0
+20406b96
+6848c8f1
+20206b92
+6848c8f0
+20406b92
+6848c8f1
+20206b96
+6848c8f2
+20406b92
+6848c8f3
+20206b92
+6848c8f2
+20406b96
+6848c8f3
+20206b92
+6848c8f2
+20406b92
+6848c8f3
+20206b96
+44974005
+efe08006
+c0004fd8
+c000cfd1
+c0014fd3
+20600000
+70467400
+20204fd4
+70467401
+efe08006
+67e0c676
+efe40012
+20204fdd
+efe08012
+20406d17
+1a40a401
+efe08012
+20206d17
+67e44677
+7046ca01
+6fe0c674
+c0004feb
+6fe0c678
+67e0c679
+6fe0c677
+20406d17
+6fe0c676
+20404fef
+67e0c67e
+6fe34679
+67e304c4
+20206cc0
+6fe0c677
+67e0c679
+6fe0c678
+20204fe4
+1feffe05
+1fe0fe32
+20600000
+d8402ee0
+984ffe00
+1fe6fc64
+20407475
+18078400
+18422200
+58002ee0
+98462400
+20600000
+6fe4464b
+67e44695
+20600000
+6fe0c6b2
+67e0c6a8
+6fe0c6b3
+67e0c6a9
+6fe0c6b4
+67e0c6aa
+df20000d
+d8c046a3
+20404f1d
+67e0c6b0
+da2046a0
+20206ffd
+58000000
+67e44521
+20404a1a
+204048f1
+20204a7a
+20405013
+2040501b
+2040505c
+202050ab
+20404a7f
+6fe0c561
+c1808000
+6fe0c903
+243a4ad6
+6fe0c6e3
+c0014ad6
+20600000
+6fe0c561
+c1800000
+2040502a
+2037d028
+6fe0c90b
+207a0000
+6fe0c90c
+1fe0fe01
+67e0c90c
+c0025028
+2040489b
+2040503b
+2437d01f
+70490c00
+20600000
+6fe0c561
+c1800000
+2040502f
+20404b8c
+2020503b
+6fe0c560
+c3800000
+79207e00
+67e0c560
+6fe0c56e
+67e0c116
+70455c00
+7007ab00
+70455501
+7044c900
+6fe24925
+20204ad2
+20404a69
+2437ca39
+20404a5b
+24344a39
+6fe0c4c8
+203a4a39
+1fe0fe02
+98007200
+d8c04442
+d8a04533
+20407419
+70455e00
+6fe0c55b
+205a4a76
+6fe0c535
+c07fd04d
+c000d04f
+20204a36
+20406fd8
+20204c0e
+20404ba2
+6fe0c555
+6848c533
+284ffe03
+7920fe00
+67e0c555
+c000d057
+20204a46
+6fe0c095
+1fe67c0c
+2042efd8
+6fe2453d
+20204c14
+6fe0c561
+c1808000
+20404978
+204050a1
+20404988
+6fe0c520
+243a5069
+20404b7e
+6fe0c55f
+207a0000
+58000000
+67e2457b
+20600000
+70455e00
+da200000
+20406fd8
+20404ad6
+204048d1
+6fe2443c
+67e24925
+6fe0c931
+245a5074
+6fe24925
+202048af
+6fe0c931
+207a0000
+6fe0c578
+67e0c928
+6fe0c43d
+67e0c927
+6fe0c577
+67e0c926
+6fe0c43c
+67e0c925
+20405091
+6fe24925
+684a4929
+98467c00
+20628000
+1a627e00
+da204925
+df200004
+20406883
+20600000
+6fe2443c
+67e24925
+6fe0c931
+207a0000
+20405091
+6fe24929
+207a0000
+67e24925
+20600000
+6fe0c931
+207a0000
+da600700
+1a627e00
+da204929
+d8400004
+204068c5
+6fe2492d
+207a0000
+67e24929
+1a627e00
+d84007cc
+98467c00
+20610000
+1a60a604
+20205094
+6fe2457b
+207a0000
+202048af
+6fe14434
+c3848000
+6fe146e4
+67e146e6
+70490201
+da204536
+20204f4e
+6fe0c90b
+207a0000
+204050b3
+24740000
+6fe1c4fa
+20407464
+604a40aa
+20203b47
+78347c00
+20403b1b
+6fe1c0be
+203a74ca
+20204e87
+580050cc
+67e1452b
+580051b4
+67e1452f
+580051c5
+67e14531
+5800518b
+67e1452d
+580050db
+67e106f3
+2020703f
+4497c005
+204050d1
+7045dc00
+70457600
+20404a1a
+20404900
+204048d4
+20406d2f
+20206d37
+6fe0c55b
+c000517b
+c000d106
+c007d102
+20600000
+44984006
+58001fdf
+da204593
+d8400001
+202068c5
+4498c006
+df200001
+da204593
+dfe01fdf
+20206883
+6fe0c5b3
+c28250df
+6fe0c593
+c0ad50e3
+7045935a
+6ff2137a
+79207e1d
+67e20626
+6fe0c5de
+67e0862e
+204050fc
+2040708d
+204050e9
+202050f2
+6fe086f9
+207a0000
+6fe0c593
+c02d50f0
+6fe206fa
+67e20626
+20600000
+6fe206fe
+202050ee
+6fe0c593
+c02d50f8
+58009272
+67e105fb
+70064a1a
+20600000
+5800928d
+67e105fb
+70064a3f
+20600000
+6fe0c5be
+207a0000
+d8c045be
+d8a006b7
+df20001e
+20207419
+20404ad6
+20405183
+2040513f
+20205103
+20404ad6
+20405183
+20404adf
+2040513f
+20205107
+2040510e
+2040511e
+20205130
+44994006
+6fe0c5b2
+207a0000
+d8e0000d
+2040742e
+247a0000
+7045b200
+58000001
+67e087b1
+58000000
+e7e38005
+7007aa20
+6fe087ab
+79207e02
+67e087ab
+20600000
+4499c006
+6fe0c5b0
+207a0000
+d8e0000e
+2040742e
+247a0000
+7045b000
+d8a007c1
+df200002
+204073dd
+6fe407c1
+67e4459c
+7007c100
+7007a910
+6fe087ab
+79207e01
+67e087ab
+20600000
+449a4006
+6fe0c5b1
+207a0000
+d8e0000c
+2040742e
+247a0000
+7045b100
+d8a007d1
+df200002
+204073dd
+7007d103
+6fe187d1
+67e1c5a7
+7007aa21
+2020511a
+449ac006
+20406d37
+6fe0879f
+205a5195
+20407033
+6fe0887f
+243a5157
+6fe08795
+207a0000
+70079500
+6fe10793
+d84002ba
+98467c00
+24628000
+6fe08713
+c1dd0000
+6fe08714
+c050515c
+c050d162
+c053516e
+c053d170
+c054d176
+70079600
+20600000
+70087f00
+6fe0887d
+207a0000
+6fe106f5
+20207487
+6fe08715
+c040d15f
+20205155
+20404975
+70079601
+20600000
+6fe08715
+c000d167
+c042516a
+c053d16c
+20205155
+6fe0c520
+67e08754
+20205160
+20404ad7
+20205167
+700754a1
+20205160
+70075415
+20205160
+6fe0c561
+c0005174
+c000d16c
+20600000
+700754a0
+20205160
+70075400
+70075500
+70075601
+70075707
+20205160
+20404a7a
+20404a7f
+20404aa5
+20405183
+20404adf
+20404afc
+2040513f
+2020517c
+449b4006
+6fe0c561
+c1800000
+20404ada
+2040510b
+6fe0c55b
+247a0000
+20204b7e
+6fe0c4d4
+c000d18e
+c0015197
+6fe0c5dd
+c280519d
+20205199
+6fe0c095
+c1820000
+7045dd03
+20600000
+7045dd00
+20600000
+6fe0c5dd
+c280d1a1
+6fe0c55c
+c000d1a8
+c001d1ac
+20600000
+6fe0c5dd
+793ffe00
+67e0c5dd
+202051a4
+6fe0c5dd
+793ffe01
+67e0c5dd
+7044d301
+580000ff
+67e0c464
+20600000
+70455c01
+204049f9
+24778000
+20204983
+6fe0c444
+c000d1a8
+c07fd1a8
+70079700
+7044d301
+6fe0c56c
+67e0c464
+20600000
+58000001
+67e087b1
+6fe3c536
+e7e38005
+6fe0c536
+245a51bd
+6fe0c536
+205a51c1
+20205119
+7045b201
+58000180
+d8e0000d
+20207420
+7045b200
+58000000
+d8e0000d
+20207420
+6fe0c536
+c00051ca
+c00151fd
+c001d1e5
+20204a39
+6fe0c538
+67e0c55c
+70453800
+d8a007c1
+d8c04537
+df200008
+20407419
+6fe407c1
+245a51dd
+6fe407c1
+205a51e1
+6fe407c1
+67e44594
+684c459c
+98467c00
+2442d12b
+6fe44594
+67e4459c
+20204a39
+7045b001
+58000180
+d8e0000e
+20207420
+7045b000
+58000000
+d8e0000e
+20207420
+d8a007d1
+d8c04536
+df200003
+20407419
+6fe107d2
+245a51f5
+6fe107d2
+205a51f9
+6fe187d1
+67e1c5a4
+6849c5a7
+98467c00
+2442d13d
+6fe1c5a4
+67e1c5a7
+20204a39
+7045b101
+58000180
+d8e0000c
+20207420
+7045b100
+58000000
+d8e0000c
+20207420
+d8a007e1
+d8c04536
+df200002
+20407419
+6fe107e1
+245a520d
+6fe107e1
+205a5211
+6fe107e1
+67e145aa
+684945ad
+98467c00
+2442d215
+6fe145aa
+67e145ad
+20204a39
+7045b101
+58000180
+d8e0000c
+20207420
+7045b100
+58000000
+d8e0000c
+20207420
+7007aa22
+2020511a
+6fe0c095
+c1820000
+6fe0c593
+c12d0000
+7045dc01
+20600000
+6fe0c095
+c1820000
+6fe0c5dc
+207a0000
+7004cc00
+7045935a
+204050d6
+204050d1
+6fe084cc
+1fe0fe01
+67e084cc
+c07fea09
+6fe0c593
+c0ad5222
+20206a09
+20406eb3
+2040525e
+204057a0
+20758000
+204059bd
+2040562e
+20405cc5
+20405239
+2040583e
+6fe14434
+c2865b08
+20405c3d
+202052eb
+58005fad
+67e14543
+58005fa2
+67e14545
+58005e91
+67e143a2
+58005e31
+67e1453d
+58005e59
+67e1453f
+5800536c
+67e14541
+5800596a
+67e14392
+58005367
+67e14390
+58005912
+67e14396
+58005be9
+67e14394
+5800532c
+67e1438e
+58005952
+67e14398
+58005a1e
+67e1439c
+58005494
+67e143a0
+58005318
+67e1438c
+58005f98
+67e1439a
+58005f9f
+67e1439e
+580059e8
+67e14314
+20600000
+20758000
+20404c5f
+204048d4
+20406024
+20405447
+20405296
+20405ab3
+204055da
+2040575f
+204041e5
+6fe44864
+c289dbd3
+c2895b94
+20600000
+70409a08
+6fe44864
+c3860000
+70409a18
+20600000
+204048fa
+6fe44864
+c41e8000
+202048fd
+6fe145a8
+67e14521
+6fe0c5ab
+67e14527
+6fe2c5ad
+67e2c573
+6fe0c5ac
+67e0c51c
+6fe0c5b2
+2feffe00
+2040dc81
+6fe0c5b2
+2feffe02
+2040dc83
+6fe0c5b2
+2feffe01
+2040dc85
+6fe0c5b2
+2feffe03
+2040dc87
+6fe0c5b2
+2feffe04
+2040dc89
+6fe0c5b2
+2feffe05
+2040dc93
+6fe0c504
+245a48e4
+2040526c
+204053a6
+20405271
+20405d72
+20204900
+58009000
+67e142cc
+7040c203
+7040a708
+70485700
+70485700
+70485800
+58000200
+67e140a5
+7042b617
+7042b817
+58000a77
+67e143ae
+38001224
+38044000
+38080000
+e7e28005
+580047af
+67e14316
+58000010
+67e14318
+20405ef7
+20405ea2
+204053b9
+6fe44864
+c30dd2b3
+58000006
+67e142a8
+67e142aa
+204052e0
+6fe44864
+c30c52b7
+204052d5
+6fe1c553
+67e1c8e6
+6fe0c5e5
+67e0c76e
+6fe1c2b3
+67e1c783
+6fe0c5a5
+1fe17efe
+67e0c5a5
+67e0c3c6
+58000000
+67e3c578
+6fe0c436
+67e0c854
+67e0c855
+2040410b
+449bc006
+6fe0c5be
+67e0c5d5
+6fe0c5bd
+c17f8000
+6848c5bd
+2040547f
+6848c5bd
+20406b85
+2040d2d2
+2020547b
+6fe0c5bf
+67e0c5d5
+20600000
+6fe1c8cc
+67e1c553
+6fe1c8cf
+67e1c556
+6fe0c8d2
+67e0c56c
+6fe248de
+67e248da
+58100c0c
+67e1c4f2
+20600000
+6fe1c8d3
+67e1c553
+6fe1c8d6
+67e1c556
+6fe0c8d9
+67e0c56c
+6fe248e2
+67e248da
+581c1919
+67e1c4f2
+20600000
+449c4007
+6fe44864
+c297ddba
+6fe0c5e5
+c0005daa
+204052ff
+243458e5
+449cc007
+6fe0c8bf
+245a5ab8
+da2045e6
+6fe0c5e5
+1fe0ffff
+1feffe1d
+9a20a200
+efe08011
+67e0c3ac
+6fe0c3ac
+c01a5309
+202058e5
+449d4007
+78547c00
+6fe44864
+c305d306
+6fe084f1
+c3015306
+78347c00
+6fe0c76b
+67e0c76a
+20600000
+70478101
+6848c86f
+6fe0c77b
+c07fd30e
+6848c5aa
+6048c831
+20404e19
+6fe1c789
+67e1c324
+204059b2
+58000004
+e7e08006
+d8c04340
+204059b9
+20206fc0
+c5134df4
+6fe0c766
+203a4df4
+6fe0c7ae
+c000cdf4
+6fe0c589
+243a4df4
+20204df6
+6fe0c5aa
+67e0c77e
+20600000
+20405ef7
+449dc007
+58000006
+2040674e
+c281d32a
+2040582b
+2040583e
+20405338
+20204e13
+449e4007
+6ff20130
+79207e1a
+67f2004c
+20403c05
+20406eb7
+20405ef7
+20405543
+20405338
+20405bcb
+6848c5c6
+20206b6e
+449ec007
+204058e3
+204074e0
+20405afd
+20405af0
+20405543
+6848c5c3
+20406b96
+6848c5c3
+20406b6e
+6fe0c5bc
+20405759
+6848c5c8
+2040547f
+2040536c
+2040535e
+d840000d
+2040547f
+20405483
+20405357
+2020534d
+6fe44864
+c41e0000
+6848c5b9
+20406b6e
+6848c5ba
+20406b6e
+6848c5b9
+2040547b
+6848c5ba
+2020547b
+6fe44864
+c40a0000
+6fe0c5a5
+c1820000
+6fe0c5a4
+d84000c0
+20206bbd
+d8c08070
+df20000d
+efe08006
+243a5365
+58000080
+18c08bff
+e7e08005
+c2005360
+20600000
+c6130000
+2040536c
+6fe08015
+247a0000
+20206b6e
+449f4007
+6848c5b9
+20406b7c
+6848c5ba
+20406b7c
+204054b6
+6fe0c5bb
+20405759
+20406745
+6848c5b3
+20406b62
+6848c5b5
+20406b62
+6848c5b4
+20406b62
+6848c5b6
+20406b62
+6848c5b7
+20406b62
+6848c5b8
+20406b62
+6848c5c4
+20406b62
+6848c5c5
+20406b62
+6848c5b9
+20406b5e
+6848c5ba
+20406b5e
+6848c5c1
+20406b5e
+6848c5c2
+20406b5e
+6848c5c6
+20206b62
+6fe14434
+c284d392
+20600000
+1a227e00
+243a4177
+20204179
+6fe0c3c6
+c1820000
+449fc007
+6848c3c7
+18467c03
+202153a3
+18408405
+6048c5a4
+18422200
+20406bc4
+c01fdf45
+20405f43
+1a220400
+20206bae
+18408404
+6048c5a4
+2020539d
+6fe0c5a5
+c00253af
+c000d3b4
+7045a501
+582c0172
+67e1c58b
+58014001
+e7e18005
+20600000
+585d0099
+67e1c58b
+58007100
+e7e18005
+20600000
+58c8012c
+67e1c58b
+5800dc00
+e7e18005
+20600000
+6fe44864
+c40a0000
+70459d01
+c3970000
+c3958000
+70459d00
+20600000
+6fe0c59e
+1fe0fe01
+67e0c59e
+6848c59f
+98467c00
+20600000
+6fe44864
+c40a0000
+20405395
+6fe0c59d
+203a53dd
+6fe0c3c6
+c00253d2
+70459d03
+204053c0
+202153d4
+204053d9
+202053e3
+70459d02
+202053e3
+20405397
+7043c604
+6fe0c863
+245a53d9
+202053e3
+70459e00
+6fe0c5a5
+67e0c3c6
+20600000
+6fe0c3c6
+c08253e1
+6fe0c863
+247a0000
+204053c0
+24610000
+44a04008
+6fe0c863
+247a0000
+70459e00
+20406be2
+20406c11
+67e14591
+6fe0c3c6
+c08253f2
+68494591
+184ffe08
+1fe6fc0a
+20407472
+9840fe00
+67e14591
+da20458b
+20405404
+6fe0c3ca
+c2815445
+c280d323
+c30053fc
+7045a201
+202053fa
+d8e00004
+20205c8b
+d8e00004
+20405c8f
+7045a00c
+6fe0c5a2
+207a0000
+7045a200
+6848c5c9
+20205f14
+44a0c008
+efe40011
+67e404c4
+6fe0c59d
+c000541b
+c001540b
+c001d43a
+6fe44864
+c3175411
+6fe104ca
+68494593
+98467c00
+2421543d
+6fe44864
+c315d41b
+7045a300
+6fe104ca
+68494595
+98467c00
+2421541a
+20405c46
+2020541b
+20405c4a
+20405441
+20406c4d
+20406c45
+6fe104ca
+684904c6
+98467c00
+24416c49
+684904c8
+98467c00
+24416c41
+6fe104ca
+684904c4
+98467c00
+20215436
+684904c6
+98467e00
+24215438
+203a5438
+1fefa264
+6fe104c4
+684904c6
+98460400
+1a227e00
+9846fc00
+20407472
+67e0c7a9
+20600000
+7047a964
+20600000
+7047a900
+20600000
+6fe0c3c6
+c002540b
+2020541b
+6848c3ca
+79200402
+6048c3ca
+20600000
+6848c3ca
+793f8402
+6048c3ca
+20600000
+7045a301
+20600000
+20405afd
+20405af0
+6848c3d9
+20406b96
+6848c5b3
+2040547f
+6848c5b5
+2040547f
+6848c5b4
+2040547f
+6848c5b6
+2040547f
+6848c5b7
+2040547f
+6848c5b8
+2040547f
+6848c5c3
+2040547f
+6848c5c4
+2040547f
+6848c5c5
+2040547f
+6848c5b9
+2040547f
+6848c5ba
+2040547f
+6848c5c1
+2040547f
+6848c5c2
+2040547f
+6848c5c6
+2040547f
+6848c5c7
+2040547f
+6848c5c9
+20406b96
+6848c5ca
+20406b96
+6848c5cb
+20406b96
+6848c5cc
+20406b96
+6848c5cd
+20406b96
+6848c5bd
+2020547f
+18467cff
+20628000
+18410e7f
+6ff2011c
+afefffff
+2020d47f
+18467cff
+20628000
+79200407
+20206b7c
+18467cff
+20628000
+793f8407
+20206b7c
+6fe1c896
+67e184c4
+df20000e
+d8400000
+6fe184c4
+2feffe00
+2040ebae
+6fe184c4
+1fe3fe00
+67e184c4
+18408401
+c2005487
+20600000
+20405495
+7043ae73
+20405494
+20206749
+20206939
+6fe0c5bb
+d8400021
+20406bbd
+6fe0c5bc
+d8400023
+20206bbd
+44a14008
+78547c00
+58000000
+67e34579
+20405847
+58000089
+2040674d
+2040562e
+204054ac
+204054b1
+2040567b
+6fe0c578
+1fe17e1f
+67e0c578
+24345cc5
+20405cb4
+20205aa9
+6fe0c588
+207a0000
+67e0c57d
+70458800
+202074c8
+6fe0c584
+207a0000
+67e0c57e
+70458400
+202074c8
+204054c3
+204054ff
+6fe0c582
+6848c581
+67e0c581
+98467c00
+2422cdf8
+6fe0c586
+6848c585
+67e0c585
+98467c00
+2422cdf8
+20600000
+6fe0c5c1
+c17f8000
+da200000
+6848c5c1
+20406b85
+7920a200
+6848c5c2
+20406b85
+7920a201
+1a227e00
+67e0c582
+c000d4d3
+c00154d7
+6fe0c583
+c283d4e3
+20600000
+6fe0c581
+c00054db
+c001d4dd
+20600000
+6fe0c581
+c00054df
+c001d4e1
+20600000
+70458382
+20600000
+70458381
+20600000
+70458380
+20600000
+70458383
+20600000
+6fe0c583
+793ffe07
+67e0c583
+c00054eb
+c000d4ee
+c00154f1
+c001d4f4
+20600000
+6fe0c582
+c001d4f7
+20600000
+6fe0c582
+c00054f7
+20600000
+6fe0c582
+c001d4fb
+20600000
+6fe0c582
+c00054fb
+20600000
+6fe0c584
+1fe0fe01
+67e0c584
+20600000
+6fe0c584
+1fe0ffff
+67e0c584
+20600000
+6fe0c5b9
+c17f8000
+da200000
+6848c5b9
+20406b85
+7920a200
+6848c5ba
+20406b85
+7920a201
+1a227e00
+67e0c586
+c000d50f
+c0015513
+6fe0c587
+c283d51f
+20600000
+6fe0c585
+c0005517
+c001d519
+20600000
+6fe0c585
+c000551b
+c001d51d
+20600000
+70458782
+20600000
+70458781
+20600000
+70458780
+20600000
+70458783
+20600000
+6fe0c587
+793ffe07
+67e0c587
+c0005527
+c000d52a
+c001552d
+c001d530
+20600000
+6fe0c586
+c001d533
+20600000
+6fe0c586
+c0005533
+20600000
+6fe0c586
+c001d537
+20600000
+6fe0c586
+c0005537
+20600000
+6fe0c588
+1fe0fe01
+67e0c588
+20600000
+6fe0c588
+1fe0ffff
+67e0c588
+20600000
+6848c5b9
+20406b5e
+6848c5ba
+20406b5e
+6848c5c1
+20406b5e
+6848c5c2
+20206b5e
+6848c5b9
+20405475
+6848c5ba
+20405475
+6848c5c1
+20405475
+6848c5c2
+20205475
+6fe1457d
+207a0000
+70458901
+70458a0a
+20600000
+da60458a
+da405553
+20204dcc
+70458900
+20600000
+6fe44864
+c2975580
+6fe0c5b8
+c17f8000
+da200000
+70484f05
+6848c5b8
+20405564
+67e0c84c
+6fe0c5c3
+c07fd578
+20405710
+1a227e00
+c282d582
+20205589
+6fe44864
+c296557e
+6fe0c84c
+1fe22600
+6fe0c5c3
+c07fd574
+6fe0c853
+243a557b
+20406b85
+6848c5c3
+2020d57e
+6848c5c3
+20406b96
+6848c5b8
+6fe0c84c
+2020573b
+6fe0c5b8
+2040575c
+6848c5b8
+20205747
+6848c5b8
+2040547f
+20205561
+70468a00
+70484c00
+20600000
+6fe0c84c
+2020573b
+6fe0c5a3
+203a5589
+6fe0c68a
+c1008000
+70468a01
+6fe44864
+c3940000
+c39b0000
+202055e2
+6fe0c68a
+c1000000
+70468a00
+6fe44864
+c2945590
+c29b5590
+20600000
+6fe0c68b
+243a5594
+6fe0c855
+245a55e2
+70468b00
+6fe0c436
+67e0c855
+67e0c854
+20600000
+6fe44864
+c41f0000
+6fe0c89d
+243a55a2
+6fe0c5ce
+20405759
+204055b2
+6848c5ce
+2020547f
+6fe0c5ce
+793ffe07
+67e0c5ce
+2040575c
+7048a100
+6848c5ce
+6fe0c89e
+204055cb
+204055b6
+6848c5ce
+2020547f
+2040547f
+6fe0c89f
+c1008000
+70489f01
+202055e2
+7048a100
+6848c5ce
+6fe0c89e
+204055c1
+67e0c89e
+6fe0c8a0
+203a55bd
+6fe0c89f
+c1008000
+70489f01
+202055e2
+6fe0c89f
+c1000000
+70489f00
+20600000
+1fe3fe00
+1fe22400
+20406b85
+7920a400
+1a417e07
+6848c8a1
+18420e00
+c003d5d6
+c00055d8
+20600000
+1fe3fe00
+1fe22400
+2040547b
+20406b85
+7920a400
+1a417e07
+6848c8a1
+18420e00
+c003d5d6
+c00055d8
+20600000
+7048a001
+20600000
+7048a000
+20600000
+6fe44864
+c41f0000
+6fe0c5ce
+c283d5e0
+70489d00
+20600000
+70489d01
+20600000
+44a1c008
+204055ef
+20740000
+6fe0c63f
+1fe20400
+6fe44864
+c29f55f8
+18427e00
+1fe0fe01
+1fe17e03
+67e0c63f
+20405635
+20205b8c
+78547c00
+6fe44864
+c3960000
+c3970000
+6fe0c847
+207a0000
+6fe0c848
+207a0000
+202074c8
+6fe0c8a0
+243a5615
+6fe44864
+c28e5609
+18427e00
+c1008000
+c0005605
+c0015603
+20600000
+58000002
+202055ec
+58000000
+202055ec
+58000001
+202055ec
+58000003
+202055ec
+18427e00
+c1008000
+c0005605
+c0015607
+c001d603
+20600000
+18427e00
+c1010000
+c0005607
+c000d603
+c001d601
+20600000
+6fe44864
+c28e560f
+18427e00
+c1010000
+c0005601
+c000d603
+20600000
+6fe44864
+c2945620
+c29b5627
+20600000
+6fe0c68a
+c1808000
+da604855
+da405625
+20204dcc
+70468b01
+20205c52
+6fe0c68a
+c1808000
+da604854
+da40562c
+20204dcc
+70468b01
+20205a3e
+20205638
+6fe44864
+c38e0000
+6fe0c63f
+c1818000
+70463f00
+20600000
+44a24008
+2040562f
+20405ebd
+6fe0c5d4
+c001d65a
+c005d66e
+6fe0c63f
+c0005642
+c000d640
+c0015644
+c001d646
+6848c67e
+20205647
+6848c67d
+20205647
+6848c67f
+20205647
+6848c680
+6fe0c5d4
+c0025656
+c002d656
+c0045658
+c003d658
+c0035656
+6048c689
+58000006
+2040674e
+1fe104f8
+6fe0c689
+9840fe00
+1fed7e00
+1fe0fe06
+2020674d
+184085ff
+2020564d
+18408402
+2020564d
+6fe0c63f
+c0005661
+c000d65f
+c0015663
+c001d665
+6fe0c682
+20205666
+6fe0c681
+20205666
+6fe0c683
+20205666
+6fe0c684
+67e0c689
+1fed7e00
+1fe22200
+1fe0fe0d
+2040674d
+1a227e00
+1fe0fe0e
+2020674d
+6fe0c63f
+c0005675
+c000d673
+c0015677
+c001d679
+6fe0c686
+20205666
+6fe0c685
+20205666
+6fe0c687
+20205666
+6fe0c688
+20205666
+20405766
+6fe0c8a8
+243a577d
+6fe0c8a3
+243a577c
+204056b9
+20405691
+2040538f
+2040568c
+1a227e00
+6848c580
+67e0c580
+67e0c578
+9842fe00
+1fe67c00
+20628000
+202074c8
+c6930000
+1a227e00
+207a0000
+67e0c578
+202074c8
+70485100
+70485200
+70485300
+1fe20400
+204056a1
+204056a4
+204056a7
+204056aa
+6fe0c852
+207a0000
+6fe0c851
+207a0000
+70485301
+6fe0c580
+1fe22200
+20600000
+18417e09
+c004d6b2
+20600000
+18417e14
+c00a56b2
+20600000
+18417e18
+c00c56b0
+20600000
+18417e07
+c001d6b0
+c002d6b0
+c00356b0
+c003d6b0
+20600000
+70485201
+20600000
+70485101
+20600000
+204056c6
+204056b9
+58000000
+67e1c847
+20600000
+44a2c008
+6fe0c899
+245a56c6
+da200000
+204056c9
+204056d2
+204056db
+204056e4
+20405700
+20405766
+2040571d
+1a227e00
+20600000
+58030303
+67e1c847
+20600000
+6fe0c5b3
+20405759
+70484f00
+6848c5b3
+6fe0c847
+2040573b
+67e0c847
+6848c5b3
+2020547f
+6fe0c5b5
+20405759
+70484f01
+6848c5b5
+6fe0c848
+2040573b
+67e0c848
+6848c5b5
+2020547f
+6fe0c5b4
+20405759
+70484f02
+6848c5b4
+6fe0c849
+2040573b
+67e0c849
+6848c5b4
+2020547f
+6fe0c5b6
+c17f8000
+70484f03
+6fe0c84a
+1fe22600
+6848c5b6
+6fe0c5c3
+c07fd6f9
+20406b85
+2020d6f5
+6848c5c3
+20406b96
+6848c5b6
+6fe0c84a
+2040573b
+67e0c84a
+20205710
+6848c5c3
+6fe0c84a
+2040573b
+202056f3
+6fe0c5b6
+2040575c
+6848c5b6
+20405747
+67e0c84a
+6848c5b6
+2020547f
+6fe0c5b7
+c17f8000
+70484f04
+6fe0c84b
+1fe22600
+6848c5b7
+6fe0c5c3
+c07fd716
+20406b85
+2020d712
+6848c5c3
+20406b96
+6848c5b7
+6fe0c84b
+2040573b
+67e0c84b
+6848c5c3
+2020547f
+6848c5c3
+6fe0c84b
+2040573b
+2020570f
+6fe0c5b7
+2040575c
+6848c5b7
+20405747
+67e0c84b
+6848c5b7
+2020547f
+70484400
+6fe44864
+c40a8000
+6fe0c5c5
+c17f8000
+70484f07
+6848c5c5
+6fe0c84e
+2040573b
+67e0c84e
+1a227e00
+c283d72d
+20405730
+6fe0c845
+67e0c846
+20600000
+70484501
+20405733
+2020572a
+70484500
+6fe0c846
+207a0000
+70484401
+20600000
+20406b85
+6848c84f
+18420e00
+2020d745
+f93fa200
+20600000
+1fe3fe00
+1fe22400
+20406b85
+7920a400
+1a417e07
+6848c84f
+18420e00
+c003d745
+c0005739
+20600000
+f9202200
+20600000
+44a34008
+1a627e00
+67e0c850
+1fe3fe00
+1fe22400
+18422600
+2040547b
+1a620400
+20406b85
+7d20a400
+20405753
+20205740
+6848c850
+18410401
+1a417e01
+98467c00
+2422d90d
+20600000
+c17f8000
+d840003f
+20206bbd
+c17f8000
+d840003e
+20206bbd
+6fe0c5cf
+c17f8000
+c283d764
+7048a200
+20600000
+7048a201
+20600000
+da400000
+6fe0c5cf
+c17f8000
+6fe0c8a2
+243a5773
+6848c5cf
+2040547f
+6848c5cf
+20406b85
+7920a400
+1a427e00
+67e0c8a8
+20600000
+6fe0c5cf
+793ffe07
+67e0c5cf
+6848c5cf
+2040547b
+6848c5cf
+20406b85
+7d20a400
+20205770
+c0025795
+20405798
+6fe248a4
+d84000a0
+98408400
+1c427e00
+98467c00
+24610000
+67e248a4
+6fe0c8a3
+c000578b
+c000d78e
+c0015791
+c001d793
+20600000
+7048a301
+70457801
+202074c8
+7048a302
+70457800
+202074c8
+7048a303
+2020578c
+7048a300
+2020578f
+7048a300
+70457800
+20600000
+684a48a4
+1c427e00
+98467c00
+2441579d
+20600000
+58000000
+67e248a4
+20600000
+44a3c008
+20405490
+20758000
+20405838
+44a44009
+204057af
+c01857b6
+c018d817
+c02c5820
+204057ac
+20001af4
+202057a4
+6848c5bb
+20406735
+20205495
+58000001
+2040674e
+67e0c66f
+58000000
+2040674e
+67e0c66e
+20600000
+6fe0c66f
+c02d57bf
+c06c57c5
+c068d7d4
+c06957dd
+c00157e4
+c02a57ed
+c0285814
+202057a4
+7045d405
+2040582b
+204073d8
+da6046e6
+204057e6
+2020562e
+58000016
+2040674e
+1fe67cbd
+2422d7a0
+58000019
+2040674e
+1fe67c55
+2422d7a0
+5800001b
+2040674e
+1fe67c1d
+2422d7a0
+7045d406
+da60472a
+202057e6
+7045d400
+da6046a0
+204057e6
+da6046aa
+204057e6
+58000943
+2040674d
+da6046c4
+202057e6
+7045d402
+da604696
+204057e6
+da6046aa
+204057e6
+da6046c4
+202057e6
+7045d403
+da60468c
+efe10013
+d840ffff
+98467c00
+20628000
+2040674d
+1a60a602
+202057e6
+20405829
+58009a5b
+2040674d
+5800000d
+2040674e
+1fe67c12
+2022d801
+1fe67c0a
+2422d804
+5800000e
+2040674e
+1fe67ce5
+2422d7a4
+58000010
+2040674e
+1fe67ca5
+2022d801
+20405811
+7045d408
+20600000
+7045d409
+da60470c
+202057e6
+1fe67c10
+2422d7a4
+5800000e
+2040674e
+1fe67cc5
+2422d7a4
+58000010
+2040674e
+1fe67c38
+2422d7a4
+20405811
+7045d40a
+20600000
+5800005b
+2040674d
+20205827
+7045d407
+da60474a
+202057e6
+20405838
+6fe0c66f
+c038581e
+c000581c
+202057a4
+7045d401
+20600000
+7045d404
+20600000
+20405838
+6fe0c66f
+c02cd824
+202057b6
+7045d40b
+da60473a
+202057e6
+58000009
+2020674d
+58005a09
+2020674d
+d8408006
+6fe0c5d4
+c085d82f
+d8409706
+18427e00
+2040674d
+20002ee0
+20600000
+da604756
+6fe0c5d4
+c1858000
+da60475e
+20600000
+44a4c009
+20405490
+2040582b
+20405833
+204057e6
+2020562e
+44a54009
+204057a0
+20405490
+d8400806
+6fe0c5d4
+c085d845
+d8401f06
+18427e00
+2020674d
+6fe0c3d2
+c1800000
+6fe0c5d4
+c0005853
+c000d853
+c0045853
+c0015853
+c001d877
+c0025853
+c003589c
+c005d895
+20205853
+204058be
+78547c00
+6fe0c5c6
+c07fd85a
+6848c5c6
+20406b85
+24608000
+58000000
+2040674e
+c098586d
+58000002
+2040674e
+c4038000
+204058d5
+6fe0c579
+204058cd
+67e14579
+6fe0c57b
+204058cd
+67e1457b
+6fe0c5d5
+c000586f
+c000d871
+c0015873
+c001d875
+20600000
+c018d85d
+202057ac
+204058a7
+202058dc
+204058af
+202058dc
+204058ab
+202058dc
+204058b7
+202058dc
+204058be
+6fe0c5c6
+c07fd87d
+6848c5c6
+20406b85
+24608000
+58000000
+2040674e
+c09857ac
+58000002
+2040674e
+c4038000
+204058d5
+20405893
+67e0c57f
+1ff1fe00
+204058d1
+67e0c57a
+6fe0c57f
+1fe17e0f
+204058d1
+67e0c57c
+6fe0c5d5
+c00058a7
+c000d8af
+c00158ab
+c001d8b7
+20600000
+58000012
+2020674e
+204058be
+6fe0c5c6
+c07fd89b
+6848c5c6
+20406b85
+24608000
+20205880
+204058be
+78547c00
+58000002
+2040674e
+c4038000
+58000008
+2040674e
+203a5860
+58000000
+67e34579
+20600000
+6fe14579
+1fe67e00
+67e14579
+202074c8
+6fe1457b
+1fe67e00
+67e1457b
+202074c8
+6fe1457b
+1fe67e00
+67e1457b
+6fe14579
+1fe67e00
+67e14579
+204058b9
+202074c8
+204058b9
+202074c8
+6fe1457b
+68494579
+67e14579
+6049457b
+20600000
+6fe0c675
+205a58d5
+70467501
+20600000
+70476601
+2040416b
+202057a0
+6fe0c5c6
+c1ff8000
+6fe0c768
+c1808000
+58000000
+67e0c768
+67e24579
+202058c4
+c4038000
+d840ff00
+9841fe00
+20600000
+c4018000
+d84000f0
+9841fe00
+20600000
+dfe00003
+2040674e
+67e14579
+dfe00004
+2040674e
+67e1457b
+20600000
+6848c5bc
+20406b85
+20608000
+5800000a
+2040674e
+200003e8
+202058dc
+58008100
+2020674d
+70477bff
+7043ac34
+580f0f0f
+67e1c2b0
+67e1c2b3
+202052fc
+44a5c009
+20405b61
+204058f9
+6fe0c5e5
+c000d8f2
+c00158f4
+20600000
+6fe345e7
+202058f5
+6fe34604
+684b4621
+98467c00
+2022db08
+202052f2
+70477b5a
+20600000
+6fe14434
+c284ce0b
+20205b29
+58000000
+67e1476c
+6fe14434
+c284ce0b
+20600000
+6fe44864
+c40d8000
+2434590b
+6fe0c767
+1fe0fe01
+1fe17e0f
+67e0c767
+247a0000
+70476700
+202074ca
+6fe0c5c6
+c1ff8000
+7040c100
+7047691e
+20600000
+44a64009
+1a627e00
+c00a5921
+c00ad932
+c0085b03
+c018d93b
+c014d93d
+c019593f
+c01f4e15
+c020594b
+c01cde21
+c01d5de5
+c01e5e0c
+c022595a
+20600000
+6fe0c8bd
+245a5abd
+70476800
+204058c4
+70478001
+20405dd3
+6fe0c781
+243a592a
+70478214
+6fe143aa
+793ffe00
+67e143aa
+70483100
+6fe147aa
+67e147ac
+20405aa9
+20205b29
+58000000
+67e147ac
+67e0c8ca
+67e0c8cb
+67e0c780
+7047ae00
+70476600
+2040416d
+20205a0f
+d8e00002
+20205947
+7004c312
+20206f84
+6fe0c781
+c000d943
+70483014
+20205945
+2040593d
+7048300a
+d8e00001
+20205947
+6fe0c82f
+f9207e00
+67e0c82f
+20600000
+6fe0c8ca
+247a0000
+7048ca01
+7048cb1e
+20600000
+7047ae01
+20600000
+6fe0c781
+247a0000
+6fe0c36f
+1fe67e22
+24628000
+70483000
+d8e00000
+20205947
+6fe0819d
+1fe67c0c
+24215950
+6fe0819f
+6848c843
+98467c00
+20215964
+6fe0819f
+67e0c0c1
+20205966
+6fe0c843
+67e0c0c1
+7047ae00
+20600000
+70482f00
+20600000
+44a6c009
+204041cc
+247a0000
+6fe0c77b
+c07fd972
+6fe0c82f
+1fe17e03
+c1818000
+6fe0c766
+205a58c2
+6fe44864
+c280d9a2
+c28059a2
+c282d9a2
+c28359a2
+2040549b
+20405903
+24740000
+2040590d
+204058c5
+2040554b
+6fe44864
+c30ad983
+6fe0c844
+c000d984
+202059a4
+6fe0c845
+203a5994
+6fe44885
+67e404c4
+6fe0c884
+c001d996
+c0015999
+7047a008
+684947a1
+6fe0c7a0
+1fe22200
+20404513
+6848c7a0
+18427200
+d8c004c4
+20207419
+6fe4488e
+20205987
+7047a003
+684947a3
+2020598d
+7047a002
+684947a5
+2020598d
+da200001
+684947a7
+20404513
+6fe0c7a9
+e7e08005
+20600000
+58000000
+67e3c578
+7047a007
+6fe3c578
+67e384c4
+6849428d
+2020598d
+70478100
+6fe1c786
+67e1c324
+204059b2
+58000005
+e7e08006
+d8c0478c
+204059b9
+20206fc0
+da204320
+efe08011
+207a0000
+98c0a200
+efe08006
+c1008000
+202059b3
+d8a0432b
+df200013
+20407419
+2020410b
+6fe448aa
+207a0000
+6fe0c8a9
+1fe22200
+1fe67c0b
+242159cf
+d8c048aa
+d8a04795
+1a227200
+20407419
+d8c048aa
+d8a04342
+1a227200
+20407419
+d8c048aa
+d8a0422e
+1a227200
+20207419
+204059e5
+6fe0c8a9
+1fe0fe01
+67e0c78c
+70478d09
+d8c048aa
+d8a0478e
+1a227200
+20407419
+6fe0c8a9
+1fe0fe01
+67e0c340
+70434109
+d8c048aa
+d8a04342
+1a227200
+20407419
+d8c048a9
+d8a0422d
+1a227200
+1f20f201
+20207419
+d8a0478c
+df200014
+202073ec
+6fe1430e
+1fe08c02
+efe10006
+c00259ed
+20204031
+efe18006
+67e1c36e
+c00559f2
+c0095a00
+20204331
+6fe44864
+c31dc445
+204044ec
+6849436f
+6fe0c2f6
+c281d9fb
+6fe1436f
+c0184528
+20204449
+6fe14307
+98467c00
+2422d9f8
+243459f8
+2020446e
+18c22200
+6fe1430a
+1fe0a5fd
+20404072
+6fe0c77b
+c07fc4d1
+6fe0c781
+203a44d1
+6fe0c82f
+c280c4d1
+5800001a
+6849436f
+98467c00
+2422c4d1
+2020446e
+20405a14
+6fe143a8
+c283da1a
+c2804de8
+20205b08
+58000000
+67e44581
+e7e20005
+70467500
+70425c00
+20600000
+20405968
+6fe143a8
+c2804de8
+20205324
+44a74009
+204053c6
+20405f47
+20404907
+20404ba5
+20405d6b
+20405e9a
+20405ecb
+20405ac1
+20405af3
+2040561c
+20405a36
+20405a46
+20405a69
+20405a6e
+20405a7c
+20405a8c
+20405a7f
+20405a89
+20405a99
+20405a9c
+20405550
+20405aac
+20205aa3
+6fe44864
+c29bda39
+20600000
+6fe0c857
+c1808000
+da604854
+da405a3e
+20204dcc
+6fe0c5e5
+c1000000
+6fe44864
+c3830000
+d8e00006
+20405c8b
+20404dbc
+20205b03
+6fe0c5e5
+c0005a4c
+6fe44864
+c41a8000
+6848c882
+20205a4f
+6fe44864
+c4190000
+6848c883
+6048c856
+204056b9
+1fe17e07
+6848c856
+98467c00
+2022da5b
+6fe0c436
+67e0c859
+6fe0c858
+c1000000
+70485800
+20600000
+20405a60
+6fe0c858
+c1008000
+70485801
+20600000
+da405dd8
+da604859
+6fe0c5e5
+c0004dcc
+da405a3e
+20404dcc
+6fe0c859
+c000dc7d
+20600000
+da60477c
+da405a6c
+20204dd3
+20405b29
+20205324
+da604831
+da405a74
+20404dd3
+6fe0c831
+c000cdff
+20600000
+6fe0c77b
+c07fd8eb
+6fe0c76a
+243a5ca9
+6fe44864
+c299db08
+c297ddd0
+20205324
+da604830
+da405958
+20204dcc
+6fe0c780
+207a0000
+da604782
+da405a84
+20204dcc
+6fe0c781
+247a0000
+6fe0c2d1
+c1800000
+2020469d
+da6048cb
+da40593d
+20204dcc
+6fe44864
+c39d8000
+da6047ac
+da405a91
+20204dcc
+6fe147aa
+67e147ac
+2020599c
+6fe0c82f
+c3810000
+2040593d
+d8e00000
+20205947
+da60477e
+da405324
+20204dcc
+da604769
+da405a9f
+20204dcc
+6fe0c843
+67e0c0c1
+70476801
+20600000
+da60476c
+da405aa6
+20204dd3
+6fe0c5e5
+c0005d80
+202058fe
+6fe14876
+67e1476c
+20600000
+da60466c
+da405aaf
+20204dcc
+20405b8f
+6fe0c77f
+243a5c5c
+20600000
+6fe0c8c3
+67e0c8c4
+6fe0c8c1
+67e0c8c2
+20600000
+7048be01
+7048c001
+6fe0c8c5
+67e0c8c6
+20600000
+7048be01
+7048c600
+7048c000
+20600000
+6fe0c8be
+207a0000
+6fe0c8c0
+c000dad1
+6fe0c8c2
+243a5ac9
+7048be00
+20600000
+6fe0c8c4
+203a5ace
+1fe0ffff
+67e0c8c4
+20205ad8
+7048c200
+7048be00
+20205ae4
+da6048c6
+da405ad4
+20204dcc
+6fe0c8c5
+67e0c8c6
+6fe0c8c7
+c000dae4
+7048c701
+6fe0c5e5
+c0005ade
+c000dae0
+c0015ae2
+20600000
+6848c5d0
+20206b96
+6848c5d1
+20206b96
+6848c5d2
+20206b96
+7048c700
+6fe0c5e5
+c0005aea
+c000daec
+c0015aee
+20600000
+6848c5d0
+20206bae
+6848c5d1
+20206bae
+6848c5d2
+20206bae
+20405aea
+20405aec
+20205aee
+6fe0c5d3
+c17f8000
+6fe1476c
+207a0000
+6fe14876
+6849476c
+98460400
+6fe148c8
+98467e00
+20215b01
+6848c5d3
+6fe0c8bd
+c000ebae
+20206b92
+6848c5d3
+20206b96
+280ffe26
+2040dda6
+204058fe
+20405968
+20205b08
+44a7c009
+6fe14434
+2feffe0b
+2040db2f
+204058f9
+6fe14434
+c285db17
+6fe44864
+c3045b17
+68494644
+18408401
+60494644
+604942b1
+180a7e00
+67e0c2b0
+6fe1c783
+67e1c2b3
+20404e19
+6fe145a6
+67e1477c
+58000000
+67e1476c
+67e147ac
+67e0c831
+67e0c77e
+67e0c860
+67e0c766
+d8e00002
+20405c8b
+20405c7f
+204059a9
+20405f7f
+20205e1e
+44a8400a
+d8e00006
+20405c8f
+70477e00
+20405b2f
+20205efb
+58000000
+67e0c831
+67e1477c
+20206fc6
+44a8c00a
+6fe44864
+c4010000
+20405ea2
+d8e00002
+20405c8f
+20405b3c
+20405b4b
+20205b8c
+6fe0802d
+c01a5b3f
+20600000
+67e0c832
+6fe30173
+67e34833
+6fe3c832
+d8c045e6
+df200003
+e8438006
+98467c00
+2022db5b
+18c08c16
+c2005b45
+20600000
+da2045e6
+6fe0c5e5
+1fe0ffff
+1feffe1d
+9a20a200
+6fe0802d
+e7e08011
+c01a5b54
+20600000
+6fe30173
+e7e30005
+d8c0424c
+204073d2
+6fe342b0
+e7e30005
+20600000
+18c08dfa
+18c20a00
+684b4833
+18408403
+e0430005
+20600000
+da2045e6
+6fe0c5e5
+c1000000
+1fe0ffff
+1feffe1d
+9a20a200
+efe08011
+67e0c3ac
+c01a5b6b
+20600000
+efe30006
+67e3410f
+d8a0424c
+204073d2
+efe30006
+67e342b0
+20600000
+6fe1463d
+d840aa55
+98467c00
+2022db80
+6049463d
+20405b85
+6fe0c76e
+67e0c5e5
+6fe0c5c0
+67e0c63f
+6fe2452f
+67e24533
+67e244da
+20600000
+20405b61
+6fe24640
+67e24533
+67e244da
+20600000
+6fe342b0
+67e345fd
+1fe0ff00
+67e3461a
+1fe0ff00
+67e34637
+20600000
+6fe0c66d
+67e0c66c
+20600000
+44a9400a
+6fe44864
+c289dbdd
+c2895ba1
+20600000
+2040698c
+20405ba8
+20405b9b
+204069b0
+20405baf
+20405b72
+20205490
+58004665
+d84045e5
+98460400
+6fe1c665
+da2045e5
+20600000
+2040698c
+20405ba8
+20405bbd
+20405b9b
+20405bc0
+20405baf
+20205490
+7004ccab
+20406cb5
+20406992
+da204668
+684884cc
+20405bb1
+20206cb5
+7004ccb9
+20205ba9
+e0408011
+1ff10400
+e0408005
+1fec8400
+e0408005
+e7e08005
+1a227e00
+67f10084
+58000000
+67f10088
+70800602
+20206953
+6fe1c665
+67e1c3cb
+20206966
+1fe22600
+1a227e00
+1fe0fffc
+1fe22400
+efe20012
+67e24668
+1a627e00
+2040699f
+6fe24668
+e7e20012
+20600000
+6fe44864
+c4090000
+20405baf
+20406749
+6848c3d3
+20406b92
+6848c3d8
+2020547b
+20406a22
+6fe44864
+2feffe09
+2440ea3c
+20405bd9
+20205b72
+d8400080
+da2045e5
+da400000
+20206a59
+d8400080
+da2045e5
+da400000
+20206a4b
+d8400001
+da20463f
+da40005a
+20206a4b
+d8400001
+da20463f
+da40005a
+20206a59
+44a9c00a
+20405f81
+20406ff5
+20405555
+20405599
+20405bf2
+20405c3d
+20405c72
+202054b6
+6fe44864
+c294dbf7
+c29bdbf7
+20600000
+70484d03
+6fe0c5c4
+c17f8000
+da200000
+70484f06
+6848c5c4
+20405c07
+67e0c84d
+6fe0c5c3
+c07fdc04
+20405710
+1a227e00
+c2835c28
+20205c1d
+6848c5c4
+2040547f
+20205c01
+6fe44864
+c296dc13
+6fe0c84d
+1fe22600
+6fe0c5c3
+c07fd747
+6fe0c853
+243a5c10
+20205c15
+70485700
+70484d00
+20600000
+6fe0c84d
+2020573b
+20406b85
+6848c5c3
+2020dc13
+6848c5c3
+20406b96
+6848c5c4
+6fe0c84d
+2020573b
+6fe0c857
+c1000000
+70485700
+6fe44864
+c39a0000
+6fe0c854
+1fe67c14
+24415c52
+6fe0c436
+67e0c854
+20600000
+44aa400a
+20405c35
+20740000
+6fe0c857
+c1008000
+70485701
+6fe44864
+c29a5a3e
+6fe0c831
+207a0000
+6fe0c5aa
+67e0c831
+20600000
+78547c00
+6fe44864
+c3968000
+6fe0c847
+207a0000
+6fe0c848
+207a0000
+202074c8
+6fe44864
+c2955c41
+c295d3c6
+20600000
+6848c5c7
+2040547f
+6848c5c7
+20406b85
+2020dc4a
+6fe0c5e5
+c1008000
+7045e501
+202058fb
+6fe44864
+c315dc4e
+6fe34597
+67e3458b
+6fe0c5e5
+c1000000
+7045e500
+20205da6
+44aac00a
+6fe0c86c
+c1008000
+20405c5e
+6048c5e5
+20405c75
+204058fb
+20405c77
+70477f01
+20205b8c
+20405c75
+20206a09
+6848c5e5
+18408401
+6fe44864
+c288dc65
+18467c02
+24415c6c
+20600000
+6fe0c86c
+1fe0ffff
+98467c00
+24415c6a
+20600000
+d8400000
+20600000
+d8400001
+20600000
+d8400001
+da2045e5
+da400000
+20206a4b
+6fe44864
+c41a0000
+20205bf7
+d8e00000
+20205c8b
+d8e00000
+20205c8f
+d8e00003
+20205c8b
+d8e00003
+20205c8f
+d8e00005
+20205c8b
+d8e00005
+20205c8f
+d8e00014
+20205c8b
+d8e00018
+20205c8b
+d8e00016
+20205c8b
+d8e0000c
+20205c8b
+d8e0001c
+20205c8b
+6fe44864
+f9207e00
+67e44864
+20600000
+6fe44864
+f93ffe00
+67e44864
+20600000
+d8e00015
+20405c8b
+58000000
+67e44884
+67e4488d
+6fe0c5b2
+1fe17ec0
+c0205ca0
+c0405ca2
+c0605ca7
+58070008
+67e44885
+20600000
+58040005
+20205c9e
+58022303
+67e44884
+58000003
+67e4488d
+20600000
+5800cd03
+20205ca3
+44ab400a
+6fe0c76a
+1fe0ffff
+67e0c76a
+6848c5e5
+18467c01
+2442dc5e
+6048c5e5
+20405c6e
+20405b4b
+202052f2
+44abc00a
+6fe0c5d4
+c1018000
+6fe44864
+c41c0000
+6fe24579
+207a0000
+20405d5b
+58000003
+20405d51
+205a5d4d
+245a5d4f
+58000002
+20405d56
+205a5d4d
+6fe0c676
+c000dcca
+6fe44864
+c41c0000
+df200005
+d8a04676
+202073ec
+20405cde
+6fe14677
+67e10902
+6fe14579
+67e10904
+20405d17
+6fe10902
+67e14677
+6fe10904
+67e14579
+6fe14679
+67e10902
+6fe1457b
+67e10904
+20405d1f
+6fe10902
+67e14679
+6fe10904
+67e1457b
+20600000
+6fe44864
+c41c8000
+44ac400b
+6fe14677
+67e10909
+20405cf2
+67e14677
+6fe14579
+67e10909
+20405d00
+67e14579
+6fe14679
+67e10909
+20405cf2
+67e14679
+6fe1457b
+67e10909
+20405d00
+67e1457b
+20600000
+6fe0890a
+203a5cf5
+20205cfa
+6fe08909
+20405d0d
+67e08909
+6fe10909
+20600000
+6fe08909
+20405d49
+20405d0d
+205a74d6
+20405d45
+20205cf8
+6fe0890a
+203a5d03
+20205d07
+6fe08909
+20405d12
+67e08909
+20205cf8
+6fe08909
+20405d49
+20405d12
+205a74d6
+20405d45
+20205cf8
+1feffe04
+1fe6fc05
+20407475
+1807fe00
+20600000
+1feffe0c
+1fe6fc0a
+20407475
+1807fe00
+20600000
+6fe10902
+68490904
+9840fe00
+6848c67b
+9840fe00
+1fe10401
+6048c67b
+20205d27
+6fe10902
+68490904
+9840fe00
+6848c67c
+9840fe00
+1fe10401
+6048c67c
+20205d27
+67e18906
+2feffe10
+2020dd31
+6fe08907
+c07fdd38
+6fe08906
+1fe37e00
+67e10902
+67e10904
+20600000
+6fe08907
+c0005d35
+6fe18906
+20205d2d
+70090800
+6fe08906
+20205d2d
+6fe08906
+20405d43
+67e08902
+67e08904
+203a5d41
+580000ff
+67e08903
+67e08905
+20600000
+58000000
+20205d3e
+20405d49
+1fe37e00
+20405d4a
+1fe67e00
+67e08909
+20600000
+1fe67e00
+67e084d8
+6fe084d8
+20600000
+70467600
+20600000
+70467601
+20600000
+9a267c00
+242174d6
+9a467c00
+242174d6
+202074d8
+9a267c00
+24610000
+9a467c00
+24610000
+202074d8
+6fe14579
+20405d62
+1fe22200
+6fe1457b
+20405d62
+1fe22400
+20600000
+67e10904
+6fe08905
+c07fdd68
+6fe08904
+1fe17eff
+20600000
+6fe10904
+1fe67e00
+20205d66
+da60456a
+da405d6e
+20204dcc
+6fe2455e
+67e244fa
+70476801
+20600000
+6fe0c89a
+c0005d7a
+c000dd7c
+c0015d77
+c001dd7e
+580ea600
+67e2455e
+20600000
+5805e740
+20205d78
+580927c0
+20205d78
+58124f80
+20205d78
+44acc00b
+70454b00
+20404ca6
+5fffffff
+67e244fa
+58000000
+67e3c578
+70489901
+2040583e
+20405338
+20205fa2
+6fe0c899
+245a5d8f
+70489900
+20600000
+204057a3
+6fe44864
+c41e0000
+6fe0c5b9
+d8400040
+20406bbd
+6fe0c5ba
+d8400040
+20206bbd
+20405d9c
+6fe0c899
+243a5fad
+20204c6f
+6fe24533
+684a452f
+98467c00
+2022dda1
+20205da4
+70411800
+704116aa
+20600000
+704118ff
+20600000
+793f8026
+70454700
+d8e00001
+20205c8f
+6fe44864
+c308ddb7
+204052ff
+20345dfc
+6fe44864
+c2985dbc
+c318ddbc
+204056b4
+1a217e07
+6848c883
+98467c00
+2022ddd8
+20205dbc
+6fe0c76a
+243a5ca9
+20600000
+204052ff
+20345dc8
+6fe0c8bd
+245a5ab8
+7045e500
+6fe14872
+67e14529
+70452d02
+20204ba8
+20405e1e
+6fe14521
+67e14529
+70452d04
+20204ba8
+6fe0c5e5
+c0005dfc
+204058f9
+20405da6
+20405ef7
+7045e501
+20405b61
+202052f2
+204052ff
+20345324
+20205b08
+204052ff
+20740000
+6fe44864
+c297db8c
+20600000
+70452d00
+d8e00001
+20405c8b
+58000000
+67e14529
+20405b29
+20405f7f
+20405e1e
+7044d401
+6fe44864
+c30ac90a
+7044d402
+2020490a
+6fe0c54b
+243a5d80
+6fe0c52d
+c0015df4
+c0025e02
+c001de07
+6fe44864
+c29e5d80
+20405efb
+20405da6
+6fe0c76a
+243a5ca9
+6fe0c5e5
+c0005324
+20600000
+6fe44864
+c297ddc3
+c2985dc3
+c31d5dfc
+6fe24640
+684a4621
+98467c00
+2022ddd8
+6fe0c8bd
+245a5ab8
+6fe14527
+67e14529
+70452d03
+20204ba8
+6fe44864
+c317ddeb
+6fe0c86c
+c000ddeb
+20205dcb
+6fe44864
+c317ddeb
+c289ddeb
+c2895deb
+20205dc4
+6fe244da
+67e24533
+67e24640
+20404bce
+20405e1b
+20405aa9
+204058c4
+70476800
+70454700
+70452d00
+6fe24533
+6fe2452f
+98467c00
+20628000
+20205dd3
+6fe0c8bd
+203a5ea2
+20205abd
+6fe0c8bd
+203a5ea8
+20205ab8
+20405aa9
+d8e00001
+20405c8f
+20405e1b
+58000000
+67e14523
+67e14529
+67e0c547
+67e0c675
+67e0c52d
+204058c4
+204058d5
+6fe244da
+67e24533
+67e24640
+20205b8c
+44ad400b
+c6930000
+2040549b
+24740000
+6fe44864
+c30ade39
+6fe0c844
+243a5e4e
+204058c5
+6fe0c4d4
+c280de48
+6848c465
+6fe0c578
+9841fe00
+67e0c578
+6848c46a
+6fe0c57d
+9840fe00
+67e0c57d
+6848c46b
+6fe0c57e
+9840fe00
+67e0c57e
+7044d401
+da200007
+da404578
+6fe1457d
+207a0000
+20204d3c
+7044d402
+da200009
+6fe0c845
+243a5e54
+da40488d
+20600000
+da404884
+20600000
+58000000
+67e1c85d
+20600000
+6fe44864
+c40b0000
+6fe0c768
+207a0000
+6fe0c54d
+207a0000
+6fe0c85a
+1fe0fe01
+1fe17e03
+67e0c85a
+247a0000
+70485b00
+44adc00b
+6fe0c85b
+1fe0fe01
+67e0c85b
+1fe67c08
+24215e71
+20404bf3
+20404cb0
+242c5e77
+2437de77
+20405e8a
+20405e81
+20404bef
+6fe0c85c
+1fe0fe01
+67e0c85c
+c0085e79
+20600000
+2040489b
+20205e65
+70485c00
+6fe0c85d
+c3800000
+79207e00
+67e0c85d
+6fe14874
+67e1476c
+2020583e
+6fe0c54d
+203a5e56
+70485c00
+6fe0c85d
+c4000000
+793ffe00
+67e0c85d
+20405aa9
+202057a3
+20404ccf
+6fe0c443
+2fe1f008
+24608000
+6fe0c444
+c07fdd80
+20600000
+6fe0c5e5
+c0803b51
+6fe0c515
+207a0000
+70804202
+6ff08130
+1fe17efc
+67f0804c
+20203c05
+6fe44864
+c4100000
+6fe0c860
+207a0000
+1fe0ffff
+67e0c860
+203a5efb
+20205f09
+6fe44864
+c4100000
+20405f7f
+6fe0c878
+67e0c860
+20600000
+70486000
+6fe1487c
+67e145dd
+67e145df
+6fe0c5e5
+c0005eb1
+c000deb3
+c0015eb5
+20600000
+6fe0c5ca
+20205eb6
+6fe0c5cb
+20205eb6
+6fe0c5cc
+67e084cc
+20405efb
+6fe084cc
+67e0c5dc
+da200000
+7045da01
+20206f10
+6fe0c5cd
+c17f8000
+6fe1477c
+247a0000
+6fe14523
+247a0000
+6fe14529
+247a0000
+6fe0c860
+247a0000
+6fe0c879
+203a5ece
+67e0c861
+20600000
+da604861
+da405ece
+20204dcc
+6fe0c5cd
+67e0c5dc
+6fe1487a
+67e145dd
+67e145df
+6fe0c5d4
+c001dee2
+c005dee2
+da200000
+6848c63f
+18408402
+18467c03
+20415ede
+20215eeb
+184085fd
+20205eeb
+6fe44864
+c40e0000
+18408401
+20600000
+da200000
+6848c63f
+18408401
+6fe44864
+c30e5eeb
+18408401
+18467c04
+20215eeb
+d8400001
+6048c5db
+7045da01
+20600000
+78547c00
+6fe0c5cd
+6848c5dc
+98467c00
+24628000
+6fe0c5db
+207a0000
+7045a100
+202074c8
+20405f07
+20405f00
+20405f03
+20205f05
+6fe0c5e5
+c0005f00
+c000df03
+c0015f05
+20600000
+70486300
+6848c5ca
+20205f14
+6848c5cb
+20205f14
+6848c5cc
+20205f14
+6848c5cd
+20205f14
+6fe0c5e5
+c0005f0e
+c000df10
+c0015f12
+20600000
+6848c5ca
+20205f1b
+6848c5cb
+20205f1b
+6848c5cc
+20205f1b
+44ae400b
+18427e00
+c17f8000
+1fe20400
+6048c5dc
+da200000
+20206f0b
+44aec00b
+18427e00
+c17f8000
+1fe20400
+6048c5dc
+da200000
+20206f06
+44af400b
+6fe0c5ca
+98467c00
+2042df43
+6fe44864
+c3126b92
+20405f34
+20405f38
+20405f3c
+6fe0c862
+203a6b92
+70486200
+20206bae
+44afc00b
+6fe0c5ca
+98467c00
+2042df45
+20206b96
+6fe44864
+c4130000
+6fe0c5cc
+20205f3f
+6fe44864
+c4128000
+6fe0c5cd
+20205f3f
+6fe44864
+c4138000
+6fe0c5c9
+98467c00
+24628000
+70486201
+20600000
+70486300
+20600000
+70486301
+20600000
+6fe1477c
+247a0000
+6fe14523
+247a0000
+6fe14529
+247a0000
+6fe0c860
+247a0000
+20405eee
+20740000
+6fe44864
+c4108000
+c4020000
+c291df6d
+6fe0c5a0
+1fe0fe01
+67e0c5a0
+1fe67c14
+24415f5f
+c0015f61
+c0025f67
+c0035f61
+c0045f67
+20600000
+7045a001
+20205f67
+6fe44864
+c2915f09
+6fe0c5c9
+c17f8000
+6848c5c9
+20205f1b
+6fe44864
+c2915efb
+6fe0c5c9
+c17f8000
+6848c5c9
+20205f14
+6fe14876
+6849476c
+98460400
+6fe14880
+98467c00
+24215f7f
+6fe0c5a1
+247a0000
+7045a101
+20205f77
+6fe1487e
+67e145dd
+67e145df
+6fe44864
+c2915eac
+6fe0c5c9
+c17f8000
+20205eb6
+7045a100
+20205f67
+6fe44864
+c4108000
+c4020000
+c291df93
+6fe0c5a0
+1fe67c0a
+20215f8f
+6fe0c5e5
+c0005f8c
+70409401
+20600000
+6fe44864
+c38c0000
+20204d2b
+6fe0c5e5
+c0004d3c
+70409400
+20600000
+6fe0c5a1
+243a5f8f
+20205f88
+6fe08009
+20204c3a
+20405f96
+20204d49
+6fe0c82f
+2fe00603
+2420f4d6
+20404e17
+202074d8
+6fe14434
+c284df9a
+20600000
+20404d15
+24740000
+6fe0c863
+247a0000
+20404d1f
+7048fb00
+20406024
+6fe0c899
+245a5338
+6fe244fa
+20204c81
+6fe0c904
+203a4c75
+20404d15
+24740000
+6fe0c863
+247a0000
+6fe0c8fb
+7048fb00
+1fe67c00
+2422dfd6
+6849456d
+18467c00
+2022dfcc
+6fe248f0
+203a5fcc
+684a48da
+98460400
+604a4900
+24215fcf
+6fe1c553
+98467e00
+24215fda
+d8400600
+98467c00
+24215fda
+67e248fc
+20405fd3
+6fe248fc
+20407464
+604a40aa
+20203b47
+20405fd3
+6fe1c553
+20205fc6
+18460400
+6fe1c553
+9840fe00
+20205fc6
+58000000
+67e24900
+20600000
+6fe248f0
+684a4900
+9840fe00
+20205fbc
+7048fb01
+20600000
+20405fde
+20205d8b
+6fe0c904
+207a0000
+6fe0c563
+c000e020
+6fe0c8e9
+203a6020
+1b227e00
+684b48ea
+67e348ea
+2040744f
+67e248f0
+6fe0c8fb
+247a0000
+6fe1456d
+247a0000
+6fe248f0
+684ac8f4
+9840fe00
+67e2c8f4
+6848c8e9
+6fe0c8f9
+98467c00
+2022dff8
+18408401
+6048c8e9
+20600000
+7048e901
+d8400000
+6fe2c8f4
+604ac8f4
+6848c8f9
+9846fc00
+20407475
+1807a200
+6fe248da
+6848c8fa
+98460400
+184085d8
+1a227e00
+98467e00
+20216013
+1fe67e00
+1feb7e00
+6849c553
+98408400
+44b0400c
+6fe1c8e6
+da201800
+9a20fe00
+98467c00
+2421601e
+6049c553
+20600000
+1feb0400
+6fe1c553
+98460400
+44b0c00c
+6fe1c8e6
+da201800
+9a267e00
+98467c00
+2021601e
+6049c553
+20600000
+67e1c553
+20600000
+7048e901
+1b227e00
+67e348ea
+20600000
+58000000
+67e0c8e9
+67e2c8f4
+20600000
+20406eb3
+20758000
+580060a1
+67e14394
+58006053
+67e14396
+58006104
+67e14398
+58006088
+67e1439c
+580060df
+67e1447e
+2040603c
+44b1400c
+20406110
+6fe0c474
+c000604a
+6fe0c475
+67e0c437
+2020611f
+580060a5
+67e1438e
+580060a3
+67e14390
+580060ba
+67e14479
+58006118
+67e1447b
+70412007
+2040410b
+20406107
+20406c51
+20406ff8
+20206ef8
+704437ff
+70447601
+202060ba
+6fe0c476
+c0014df4
+204066de
+6fe0c3f3
+243a4df4
+20204df6
+1a627e00
+c00a605c
+c00ae060
+c01fe063
+c0206069
+c0086134
+c016606f
+c016e07a
+20600000
+204060a7
+58000000
+67e1444e
+20204e11
+20406ff8
+70444700
+202060ba
+20406ff8
+70444701
+6fe44458
+67e442a8
+20404e17
+202045c0
+6fe14311
+c1000000
+6fe44460
+207a0000
+67e442a8
+202045c0
+6fe0c474
+c1000000
+6fe0c476
+c1808000
+20406075
+20204e0f
+70467601
+df20000b
+d8a04677
+d8c04660
+20207419
+6fe0c474
+c1000000
+6fe0c476
+c000e07f
+20206130
+6fe0c676
+c1808000
+70467600
+6fe14434
+c284ce11
+df20000b
+d8c04677
+d8a04660
+20207419
+2040608b
+20406092
+2020609c
+da604472
+da40608e
+20204dd3
+70447602
+20404e11
+204060c8
+2020611c
+da604683
+da406095
+20204dcc
+6fe14434
+c284e11c
+6fe0c660
+c000e11c
+c002611c
+c002e11c
+20204e13
+6fe0c476
+c1808000
+da60444e
+da4060ab
+20204dd3
+204060f0
+20206c81
+20406bc9
+20206c75
+20406bc9
+20206eb7
+6fe1446e
+67e14470
+67e14472
+20204e01
+6fe0c476
+c1808000
+6fe14434
+c3848000
+6fe1446c
+67e14470
+67e14472
+6fe1444a
+20406145
+20404e0d
+6fe24454
+67e24663
+6fe14434
+c3858000
+20204e03
+6fe0c476
+c1808000
+6fe1444e
+6849444c
+6049444e
+247a0000
+6fe14448
+20406145
+20404e0d
+6fe24450
+67e24663
+6fe14434
+c3858000
+20204e03
+6fe14434
+c284ce0b
+202060a7
+204074ca
+6fe14434
+c284e0cf
+20600000
+6fe0c447
+207a0000
+202074c8
+204074ca
+6fe14434
+c3848000
+202074c8
+202060ba
+78567c00
+6fe14470
+67e14472
+204060d2
+203460d6
+204060cb
+24740000
+202074cc
+204060d7
+24760000
+1a227e00
+203a60e6
+20404e0f
+da604488
+202060e8
+20404e11
+da6044b0
+dfe00005
+98effe00
+9a60a600
+efe08013
+207a0000
+204060fc
+1a60a601
+202060eb
+6fe14434
+c284e0f3
+20600000
+204041cc
+247a0000
+204060ff
+24740000
+1fe0ffff
+1feffe05
+d84044d8
+98408c00
+20206149
+67e084c4
+da2004c4
+20206ffd
+da2004c4
+20407015
+24740000
+6fe084c4
+20600000
+6fe1436f
+c00c6063
+20600000
+70468202
+58200008
+67e24458
+592c0005
+e7e20005
+7042b617
+5800001b
+67e14307
+202041e5
+df200028
+d8a044d8
+d8c04807
+2020740c
+df200280
+d8a04b10
+d8c09535
+2020740c
+da200000
+da60466b
+20406f16
+204060c8
+6fe0c682
+67e0c683
+20600000
+58000000
+2040612b
+70442f01
+20406ec2
+20406ecc
+6fe0c689
+203a6128
+6fe084f1
+c3016137
+6fe14434
+c3860000
+20204e13
+684943e2
+e7e08002
+efe08005
+67e0c436
+20600000
+6fe143e2
+efe0803f
+c1800000
+20204e13
+684943e2
+efe08002
+c000e13f
+58000001
+684943e2
+e7e08002
+18408c02
+efe08006
+e7e08036
+efe10006
+20207487
+58000002
+2040612b
+18408c05
+efe10006
+203a4e13
+20207487
+67e140a5
+1fe0fffc
+67e14360
+20600000
+efe08006
+1fe22200
+e8410006
+204073c0
+20404513
+1a227200
+204073ba
+20207419
+5800468b
+67e142cc
+20600000
+580093c0
+67e142cc
+20600000
+6fe14684
+67e14480
+6fe0c686
+67e0c662
+67e0c66d
+6fe0c687
+67e0c474
+6fe0c688
+67e0c475
+58000030
+67e14445
+58000000
+67e1443d
+58000002
+67e14488
+67e1448d
+58000006
+67e144b0
+67e144b5
+58000007
+67e14492
+58000008
+67e144ba
+58004476
+67e143e2
+58201400
+67e1c476
+70409401
+58000100
+67e140a5
+7040a708
+7040c105
+7040c202
+58000096
+67e14450
+e7e10005
+58000296
+67e14454
+e7e10005
+38000010
+38048008
+380ac000
+380c0004
+67e44460
+70443901
+58004660
+67e1443a
+58000000
+67e14660
+380001a0
+38040068
+38080000
+380c0000
+67e44663
+58000301
+67e1466b
+380001a0
+380400e8
+38080000
+380c0000
+67e4466e
+5800000e
+67e14448
+58000140
+67e1444a
+67e14360
+58000050
+67e1444c
+70436a07
+70435f00
+380000fb
+3806c212
+3808800f
+380c0021
+67e44384
+38000bb8
+380402ee
+67e2446c
+58004591
+67e143b4
+58002001
+67e14591
+70431f1f
+38010102
+380480c1
+38098120
+380c640c
+67e4c320
+380003c1
+e7e10005
+70433f1f
+3802090d
+38074c15
+380a8532
+380dd1d5
+67e4c340
+38026574
+3804001c
+e7e18005
+5800447d
+67e143de
+70447d02
+580045b6
+67e143b1
+7043b305
+6fe0c68a
+c0006151
+c000e154
+20600000
+6fe34e00
+67e34480
+70447d06
+5800447d
+67e143de
+20600000
+6fe3ce00
+67e3c480
+70447d07
+5800447d
+67e143de
+20600000
+6fe0cdff
+c00361c4
+c003e1ca
+20600000
+44b1c00c
+6fe44e26
+67e4446c
+58000096
+67e1444c
+6fe3ce76
+67e3c660
+6fe3ce7d
+67e3c66b
+6fe24e84
+67e24450
+6fe24e88
+67e24454
+5800000e
+67e14448
+58000140
+67e1444a
+67e14360
+580093c0
+67e142cc
+20406114
+6fe44e1e
+67e44460
+20600000
+20406eb3
+20758000
+204061d0
+204061d4
+58006436
+67e14314
+58006204
+67e14394
+5800625d
+67e14396
+58006426
+67e14398
+58006235
+67e1439c
+5800627d
+67e1447e
+2040603c
+58000027
+67e14307
+6fe44460
+67e44458
+2040620e
+44b2400c
+20206037
+2040621b
+d8e00009
+2040742e
+247a0000
+58000020
+d8e00009
+20407420
+78547c00
+20406c75
+202062e0
+5800001f
+1feffe0a
+d8404b10
+9840a200
+1a20a203
+d8400062
+e0408011
+1a20a20b
+dfe00fff
+98467e00
+1ff27e00
+e7e10011
+20600000
+6fe14434
+c284e220
+d8a04593
+df200023
+202073ec
+204041cc
+247a0000
+20407027
+207a0000
+684a494f
+1c427e00
+98460400
+20628000
+2421622c
+6fe0c94e
+98467c00
+20610000
+1c427e00
+67e2494f
+204060ff
+24740000
+1fe0ffff
+1feffe0a
+d8404b10
+98408c00
+20206149
+20406596
+2040623a
+20406251
+2040608b
+20206257
+da604de1
+da40623d
+20204dcc
+20407027
+247a0000
+6fe1483d
+247a0000
+20406499
+203a624b
+18e27e00
+2fe00e04
+2020e24d
+18e27e00
+2fe00e01
+2020e24f
+da604dd8
+202060eb
+da604dea
+202060eb
+da604def
+202060eb
+da604df7
+202060eb
+da604b0d
+da406254
+20204dcc
+df20000a
+d8a0495d
+202073ec
+da604683
+da40625a
+20204dcc
+6fe14434
+c284e11c
+20204e13
+1a627e00
+c00a6271
+c00ae26d
+c018e264
+c1200000
+c0196429
+20206053
+704de201
+204064c2
+6fe14e90
+67e14dd0
+68494e92
+58000fff
+98467e00
+67e14dd2
+20600000
+704dcd00
+704de200
+2040631e
+20206060
+1c427e00
+67e2494f
+20406492
+2020605c
+78567c00
+6fe14470
+67e14472
+204060d2
+203460d6
+204060cb
+24740000
+202074cc
+20406275
+24760000
+1a227e00
+203a62ac
+704b0e01
+20404e0f
+204062a1
+204062d3
+20610000
+18e27e00
+6848cde5
+98467c00
+2442e29b
+18e27e00
+67e0cde5
+6848cde8
+98467c00
+2022e299
+6fe0cde9
+243a6294
+2040649b
+dfe0000a
+202062cc
+204064be
+18e27e00
+c000e291
+204063a3
+20206356
+704de601
+20206356
+44b2c00c
+6fe0cde9
+203a6241
+18e27e00
+c000e241
+20600000
+dfe0000a
+98effe00
+da604953
+9a60a600
+1c427e00
+e7e20013
+1a60a604
+efe08013
+1fe0fe01
+e7e08013
+20600000
+44b3400c
+6fe0cde9
+205a4e11
+dfe0000a
+98effe00
+da604953
+9a60a600
+e8420013
+18467c00
+20628000
+1c427e00
+98460400
+24416f56
+1a608c09
+efe08006
+243a62d8
+1a60a605
+1c427e00
+e7e20013
+20600000
+1a608c04
+efe08006
+202062c3
+204062dd
+6fe0cde9
+243a62cf
+204062d3
+20610000
+204064a1
+18e27e00
+c001e4a9
+dfe0000a
+98effe00
+9a60a600
+202060eb
+18e27e00
+c000e2c6
+c001e2c6
+20600000
+2040702f
+e8408006
+98467e00
+1fe67c0a
+20600000
+704de001
+204062dd
+da6049f4
+dfe00003
+202062cc
+df20000a
+1a620a00
+202073ec
+6fe1483d
+67e143e0
+2040632a
+6fe143e0
+67e1483d
+d8e00000
+6fe0c47d
+1fe27200
+da604953
+1f227e00
+67e104cc
+1a627e00
+67e104e0
+18e27e00
+67e104ce
+20406320
+6fe104e0
+1fe22600
+6fe104ce
+1fe20e00
+204062fd
+6fe104ce
+1fe08e01
+6fe104e0
+1fe0a60a
+6fe104cc
+1fe27200
+c20062e9
+20600000
+efe20013
+207a0000
+1fe20400
+1c427e00
+98460400
+24610000
+580009c4
+98467c00
+20610000
+1c427e00
+e7e20013
+1a60a609
+58000001
+e7e08013
+6fe0cde0
+207a0000
+704de000
+44b3c00c
+6fe0cde7
+c0006313
+c000e316
+20600000
+da6049df
+dfe00003
+202062cc
+18e27e00
+6848cde8
+98467c00
+2422e313
+6fe0cde9
+79407e00
+67e0cde9
+247a0000
+704de900
+20204e11
+1a60a405
+efe20012
+207a0000
+1fe20400
+1c427e00
+98460400
+24416f56
+580003e8
+98467c00
+202062c0
+6fe143de
+efe0803f
+207a0000
+58000000
+67e10546
+20406c5d
+24346ef1
+20406eef
+78547c00
+44b4400d
+6fe0cde7
+c000e339
+2040638a
+2040633e
+20740000
+6fe10546
+67e1054d
+70054f00
+18000e00
+20206c95
+d8e00000
+da404a09
+dfe00002
+98effe00
+9a40a400
+efe10012
+207a0000
+68490546
+9842fc00
+2022e34a
+18e08e01
+2020633f
+67e14a15
+20404e0f
+da604a17
+dfe0000a
+98effe00
+9a60a600
+20406352
+20206395
+204064be
+efe08013
+207a0000
+204063a3
+204064be
+2040636b
+20406376
+20406380
+dfe00005
+204060fc
+20406499
+207a0000
+70494e78
+dfe00006
+202060fc
+6848cdcc
+20406499
+207a0000
+6848cdcf
+18408401
+6fe0cde6
+207a0000
+6848cdcc
+704de600
+20600000
+20406361
+18427e00
+207a0000
+67e0cdd5
+dfe00013
+204060fc
+6fe0cdd5
+1fe0ffff
+67e0cdd5
+207a0000
+2020636f
+6fe0cdce
+207a0000
+67e0cdd6
+dfe00020
+204060fc
+6fe0cdd6
+1fe0ffff
+67e0cdd6
+207a0000
+20206379
+6fe0cdcf
+207a0000
+67e0cdd7
+dfe00021
+204060fc
+6fe0cdd7
+1fe0ffff
+67e0cdd7
+207a0000
+20206383
+6fe14a15
+207a0000
+68490546
+18467c00
+2022e398
+98467c00
+20628000
+60494a15
+6fe14de3
+98467c00
+2042ce11
+6fe10546
+67e143e0
+202074c8
+20404e11
+da604a53
+20406352
+58000000
+67e14a15
+70482f32
+20406395
+6fe0c47d
+1feff20a
+d8a04953
+202073ec
+44b4c00d
+6fe0cde7
+c000e3a8
+c00063ae
+20600000
+18e27e00
+c002e3d7
+c00063f4
+c00263fc
+c001641f
+20600000
+efe08013
+c000e3d7
+c00163f4
+c001e3fc
+c002641f
+c002e3b5
+20600000
+20406499
+243a63bf
+58000004
+1feffe0a
+d8404b10
+98408a00
+18a08a03
+6fe1ca5d
+e7e18005
+20600000
+58000004
+1feffe0a
+d8404b10
+98408a00
+18a08a03
+6fe14dd0
+e7e18005
+18a08a07
+6fe14dd2
+1ff27e00
+1fed7e00
+e7e18005
+20600000
+6fe0cdce
+207a0000
+1fe0ffff
+67e0cdce
+dfe00062
+20600000
+d840000a
+20406499
+207a0000
+d8400007
+20600000
+204063d2
+6fe14dd0
+98467c00
+244163cc
+24610000
+98467e00
+67e14dd0
+44b5400d
+6fe14dd0
+68494dd2
+184d0400
+18520400
+9840fe00
+67e1ca5d
+202063b5
+6fe14dd0
+d8400062
+98460400
+24610000
+18427e00
+6848cdce
+18467c03
+2022e3f1
+18408401
+6048cdce
+202063dd
+704dce00
+dfe00000
+202063dd
+20406499
+245a63e6
+204063d2
+6fe14dd0
+9840fe00
+d8400fff
+20407480
+202063dd
+204063d2
+6fe14dd2
+98467e00
+67e14dd2
+68494dd2
+20406499
+203a63de
+58000fff
+98467e00
+d8400062
+98460400
+242163de
+58000fff
+98467e00
+6848cdcf
+18467c05
+2022e410
+18408401
+6048cdcf
+2020641d
+704dcf00
+58000fff
+2020641d
+20406499
+203a6411
+6fe0cdcf
+203a6411
+1fe0ffff
+67e0cdcf
+58000fff
+d8400062
+98467e00
+9a20fe00
+67e14dd2
+202063de
+204063d2
+6fe14dd2
+9840fe00
+d8400fff
+98462200
+20216413
+2020641d
+6fe1436f
+c0126063
+20600000
+da200017
+da400004
+2040419f
+58000006
+e7e08005
+58000001
+e7e10005
+5800ffff
+e7e10005
+58002800
+e7e10005
+d8c0493d
+202073d2
+6fe1430e
+1fe08c02
+efe10006
+c002643d
+c00345e3
+c002c5b7
+20600000
+efe18006
+67e1c36e
+c003e46d
+c000e48e
+c005645c
+c0066444
+20204331
+efe10006
+67e1050a
+da200014
+20404535
+5800000d
+e7e08005
+6fe1050a
+98002200
+6849436f
+6fe14307
+98467c00
+2422c47d
+20406499
+243a6454
+6fe14939
+20206455
+6fe1493b
+d8c0483f
+9a267200
+24214528
+1f267c16
+20214485
+18007216
+20204485
+6849436f
+6fe0c2f6
+c281e460
+20204449
+6fe14307
+98467c00
+2422c449
+204044ec
+24346467
+7001b405
+2020452a
+6fe14307
+98467c00
+2422c449
+d8c0483f
+18007e16
+20204457
+44b5c00d
+704dcc05
+70494d01
+704dd401
+70494ef0
+704de10a
+704de601
+204064fe
+6fe0cde2
+207a0000
+204064c2
+d8400062
+6fe14e94
+da204dd0
+da404dce
+20406487
+d8400062
+6fe14e96
+da204dd2
+da404dcf
+20406487
+58000fff
+68494dd2
+98467e00
+67e14dd2
+20600000
+9846fc00
+20407475
+1807fe00
+18070400
+e7e08012
+e0410011
+20600000
+18c08dfe
+efe08006
+c0036497
+20600000
+704dcc01
+70494d00
+704dd400
+70494e0a
+20600000
+20406492
+202064fe
+6fe0c94d
+20600000
+da604e30
+20406499
+207a0000
+70494e78
+da604a61
+20600000
+da604999
+20406499
+207a0000
+da604a9d
+70494e0c
+18e27e00
+c1008000
+20600000
+44b6400d
+6fe0cb0c
+79407e00
+67e0cb0c
+c00064b2
+c000e4b0
+20600000
+204064b9
+202060eb
+204064b4
+202060eb
+da6049b7
+20406499
+207a0000
+da604abb
+20600000
+da604af8
+20406499
+207a0000
+da604b02
+20600000
+6fe0cdcd
+247a0000
+704dcd01
+202063de
+58000000
+67e3cdce
+20600000
+20406499
+c000e4cd
+c00064df
+20600000
+6fe0ce9c
+c000e4e6
+c00064f8
+20600000
+6fe0cdce
+1feffe62
+1fe20400
+6fe14dd0
+9840fe00
+67e14e98
+6fe0cdcf
+1feffe62
+1fe20400
+6fe14dd2
+1fe22200
+58000fff
+9a267e00
+9840fe00
+67e14e9a
+20406499
+67e0ce9c
+20600000
+6fe14dd0
+67e14e98
+6fe14dd2
+67e14e9a
+20406499
+67e0ce9c
+20600000
+6fe14e98
+1fe6fc62
+20407475
+1807fe00
+18070400
+67e0cdce
+18427e00
+67e14dd0
+6fe14e9a
+1fe6fc62
+20407475
+1807fe00
+18070400
+67e0cdcf
+58000fff
+98467e00
+67e14dd2
+20600000
+6fe14e98
+67e14dd0
+6fe14e9a
+67e14dd2
+20600000
+2020657b
+20206562
+20406521
+6fe14e9f
+2040658e
+704ea500
+6fe2ce98
+704ea600
+704ea300
+20406525
+6fe0cea3
+c1000000
+202064ff
+6fe14e8c
+1fe0fffb
+67e14e9f
+20600000
+6fe14e9f
+1fe0fffb
+67e14e9f
+20600000
+6fe14e9f
+1fe0fe05
+67e14e9f
+20600000
+6fe14ea1
+1fe0fe05
+67e14ea1
+6fe14ea1
+1fe20400
+6fe14e8c
+98467e00
+d8400005
+98467c00
+24216545
+20600000
+6fe0cea5
+c000e50a
+c000650e
+20600000
+da400000
+1a420400
+6fe14e98
+a843fe00
+2440e535
+da400000
+1a420400
+6fe14e9a
+a843fe00
+2440e535
+da400000
+1a420400
+6fe0ce9c
+a841fe00
+2440e535
+20600000
+6fe0cea3
+1fe0fe01
+67e0cea3
+20600000
+704ea301
+20406516
+6fe14ea1
+2040658e
+20406499
+1fe20400
+6fe0ce9c
+a841fe00
+2040e560
+6fe0cea3
+c1000000
+20206539
+44b6c00d
+20406560
+20406499
+203a654a
+20206551
+6fe14e90
+67e14dd0
+68494e92
+58000fff
+98467e00
+67e14dd2
+202064fd
+d8400062
+6fe14e94
+da204dd0
+da404dce
+20406487
+d8400062
+6fe14e96
+da204dd2
+da404dcf
+20406487
+58000fff
+68494dd2
+98467e00
+67e14dd2
+202064fd
+704ea300
+20600000
+44b7400d
+704ea501
+204064ff
+6fe14e8e
+1fe20400
+6fe14e9f
+98467e00
+d8400000
+98467c00
+24610000
+6fe14e9f
+1fe20400
+6fe14e8c
+1fe0fffb
+98467e00
+6fe14e9f
+67e14ea1
+20406539
+6fe14ea1
+2442e58e
+704ea300
+20406525
+6fe0cea3
+c1000000
+202064c9
+44b7c00d
+704ea501
+204064ff
+68494e8e
+6fe14e9f
+98467e00
+d8400000
+98467c00
+24610000
+68494e9f
+6fe14e8c
+98467e00
+d8400000
+98467c00
+24610000
+6fe14e9f
+67e14e9d
+204064c5
+20206591
+d8400005
+da204e98
+202068c9
+df200005
+da204e98
+6fe14e9d
+1fe20400
+20206883
+da60482f
+da4064fd
+20204dcc
+6fe0c3f1
+d840003e
+20206bbc
+6fe0c3f1
+d840003f
+20206bbc
+2040659c
+20406599
+2020659c
+204065a0
+20206599
+202065a0
+204065a0
+202065a2
+20206599
+6fe0c3f2
+2020659a
+6fe0c3f2
+2020659d
+204065a8
+204065aa
+202065a8
+204065f8
+202065b1
+44b9c00e
+7001e801
+7001ea01
+7001ec19
+7001ed02
+6fe101ef
+20407487
+6fe401e7
+67e401df
+6fe081ee
+67e0c116
+6fe081e9
+c000e5bf
+c0016650
+684881e7
+6fe081ea
+c00165c3
+c000e5df
+44ba400e
+2040663d
+204039c9
+2040660b
+79202a00
+782efc00
+78307c00
+7850fc00
+20403d8c
+6fe081eb
+67f0890d
+202065cf
+44bac00e
+6fe081e8
+c000e5d2
+6fe081ec
+c00ce5d6
+c03c65d9
+c07865dc
+df200035
+d8c00b00
+2020662e
+df2000cb
+d8c00b00
+2020662e
+df200162
+d8c00b00
+2020662e
+44bb400e
+2040663d
+204039c9
+7843fc00
+782efc00
+78307c00
+684881e8
+18422a00
+6fe081eb
+67f0890d
+c00065cf
+44bbc00e
+6fe081ec
+1fe27200
+d8c00b00
+efe08006
+08008608
+c20065ee
+6fe101ef
+20407487
+6fe401e7
+684c01df
+98467c00
+2022e5ea
+202065b1
+df2003fe
+d8a00b00
+580001ff
+18002400
+1fe92200
+1a232200
+9a22a200
+2a2ffe00
+7920fe09
+18430400
+2feffe00
+79208407
+1fe37e00
+1a40a401
+2a400e00
+2420e5fc
+e0408005
+c20065fc
+20600000
+44bc400f
+793f802f
+70890103
+70892084
+708925a7
+70893003
+70893740
+708a6d85
+708a6d89
+6fe08164
+c3968000
+70890101
+70892080
+708a6d05
+708a6d09
+7920002f
+70890105
+70893024
+7089340a
+20600000
+44bcc00f
+18002a08
+18002a00
+7850fc00
+78507c00
+782f7c00
+70890005
+20000002
+70890000
+2040663d
+708a1600
+708a0a10
+708a0b00
+20600000
+2020661f
+efe08006
+08008608
+c200662e
+2040662d
+78287c00
+db600350
+2021e5b1
+6fe101ef
+20407487
+6fe401e7
+684c01df
+98467c00
+2022e634
+2040662d
+202065b1
+44bd400f
+70890005
+20000002
+70890000
+708a10aa
+708a11aa
+708a1215
+708a0af8
+708a0b04
+20000078
+708a167a
+708a1700
+708a1800
+708a1900
+708a1a00
+708a112a
+708a0a78
+708a4300
+20600000
+20406659
+44bdc00f
+6fe101ef
+20407487
+6fe401e7
+684c01df
+98467c00
+2022e651
+202065b1
+44be400f
+2040662d
+20403954
+58000500
+20403a8c
+2020396a
+2035e664
+58004402
+d8a043f3
+98a67200
+204073ec
+20600000
+44bec00f
+204066de
+6fe0c3f3
+c00074d8
+c000f4d8
+c00174d8
+c001f4d8
+c040f4d8
+c06074d8
+c04074d8
+c02074d8
+20600000
+d8e00000
+da400000
+18e67c07
+24610000
+aa2fffff
+2020e678
+2020667c
+18427e00
+203a667c
+f9202400
+184085ff
+18e08e01
+20206673
+6b014316
+6d614318
+204074ca
+20206682
+44bf400f
+204066ce
+243a3a8a
+204066de
+df200008
+6848c3f3
+1f260e08
+a84fffff
+2020e68f
+20406696
+2421668f
+204066ac
+20206693
+1d627e00
+9b00b000
+c2006687
+20203a8a
+1b027e00
+1b020a00
+20600000
+44bfc00f
+1f260e08
+d8400000
+d9600000
+18e27e00
+c00466a7
+6fe0c3f3
+afefffff
+2020e6a7
+f9201600
+1d627e00
+98408400
+18e08e01
+1a227e00
+98467c00
+2022e6a7
+2021669a
+18427e00
+9a267c00
+24628000
+f9201600
+20600000
+44c04010
+204066ce
+243a3a8a
+204066d4
+203a66b5
+6fe4c3f7
+67e4c3f4
+58000000
+e7e18005
+6160c3fd
+630143fe
+20600000
+44c0c010
+204066d7
+18c08c01
+efe10006
+20600000
+44c14010
+204066d7
+18c20a00
+18c20400
+58000000
+e7e18005
+20600000
+44c1c010
+204066d4
+203a3a8a
+6fe1c3fa
+67e1c3fd
+6fe1c3f7
+67e1c3fa
+6fe1c3f4
+67e1c3f7
+20600000
+44c24010
+6fe1c3f4
+20600000
+44c2c010
+6fe1c3f7
+20600000
+44c34010
+6fe1c3fd
+20600000
+204066d4
+203a66dc
+d8c043f4
+efe18006
+203a66da
+18c08dfd
+20600000
+44c3c010
+df200004
+d8c043f4
+d8400000
+efe18006
+1fe17eff
+98418400
+c20066e2
+6048c3f3
+20600000
+203a3a8a
+1fe20a00
+20600000
+44c44011
+da400000
+da2043f4
+1a20a3fe
+1a20a202
+58004400
+9a267c00
+2022e6fb
+efe08011
+1a20a201
+203a66ef
+e8410011
+efe10002
+9a40a400
+1a40a404
+202066ef
+1a427e00
+20600000
+d8e0000c
+20203c21
+d8e0000c
+20203c25
+204066de
+6fe0c3f3
+207a0000
+204066eb
+d8400100
+98467c00
+202166fd
+204066ff
+6fe14400
+18c20a00
+da2043f4
+58004400
+9a267c00
+20628000
+efe08011
+1a20a201
+243a6715
+e7e10005
+1a20a202
+2020670c
+efe10011
+1a20a202
+1fe20c00
+efe10006
+e7e10005
+1fe27200
+1f20f202
+20407419
+2020670c
+204066de
+6fe0c3f3
+207a0000
+da2043f5
+1a20a3fd
+18c20a00
+6fe14400
+18a20c00
+1a20a203
+58004401
+9a267c00
+20628000
+efe10006
+203a6726
+1fe0fe04
+1fe27200
+18c22400
+efe10011
+1fe20a00
+1a420c00
+18c08dfe
+20407419
+20206726
+44c4c011
+18427e00
+1fe17eff
+1fe67c0d
+24213a8a
+d8a08070
+98a08a00
+18a22200
+d840003e
+e0408005
+20406745
+2000001e
+1a220a00
+d840003f
+e0408005
+20206749
+6ff08081
+1fe17e7f
+67f08081
+20600000
+6ff08081
+1fe1fe80
+67f08081
+20600000
+20206943
+2020694a
+6ff0806f
+1fe17efd
+67f0806f
+20600000
+24346757
+6ff0806f
+1fe1fe02
+67f0806f
+18427c00
+2022e75a
+1a627a00
+2fcc0000
+20206834
+18000404
+da2001c4
+2040674f
+20406757
+da2055aa
+6fe101c4
+e8410006
+9a267c00
+20600000
+20546777
+d8400002
+da2001ca
+20406757
+6fe101ca
+67e101bd
+2054676d
+20600000
+d8400010
+da2001cc
+2040674f
+20406757
+d8c001cc
+df200010
+20406e6f
+20406df6
+20406e8b
+20206df0
+70802300
+2040674f
+20206e8b
+58000000
+67e104ed
+7856fc00
+2040675c
+24628000
+7836fc00
+70802380
+70802200
+70802400
+da208025
+20406753
+70802300
+6fe081ba
+c4000000
+d8400006
+2040675d
+2422e799
+efe10006
+98002200
+20406757
+20406790
+20206788
+6fe104ed
+df200006
+d8c001c4
+204074da
+6f2101c6
+1a220c00
+204074da
+67e104ed
+20600000
+6fe081de
+c02d67a7
+da20aa55
+6fe101c4
+9a267c00
+2422e7a9
+da2055aa
+6fe101c6
+9a267c00
+2422e7a9
+6fe101c8
+684904ed
+98467c00
+2422e7a9
+7920220f
+2020675a
+7001ba00
+20600000
+6ff1011e
+67e101b8
+793ffe0e
+247a0000
+580007d0
+da2001b8
+d8400002
+204068c9
+6fe081ca
+1ff18400
+6fe081b8
+1ff27e00
+9841fe00
+67e081b8
+202068de
+70805025
+20407484
+78547c00
+7001ba00
+20406856
+204068d6
+58000000
+da2001ca
+d8400002
+204068c9
+204067ab
+580007d3
+da2001dd
+d8400002
+204068c9
+6fe081b8
+c301e7d4
+580007f0
+da2001cc
+d8400010
+204068c9
+70800608
+7920002b
+d8c001cc
+20406e7b
+78347c00
+70411500
+20406825
+24216831
+20546777
+6fe101ca
+1ff0fe00
+d84007ff
+98417e00
+2022e7e6
+2040687f
+da6068cc
+2054676d
+2040677a
+2436e7e6
+6fe081ba
+2fe00603
+2420e7d5
+204067f4
+20406873
+70411500
+20406825
+24216831
+20406817
+20406a3c
+6fe081b8
+c2816800
+2040681f
+2436e7f7
+6fe081ba
+2fe00603
+2420e7e8
+20206800
+580001ff
+dfa00000
+20600000
+20406a39
+6fe081b8
+c2816800
+2040681f
+2436e800
+6fe081ba
+2fe00603
+2420e7e8
+20206810
+70411500
+20406825
+24216831
+6fe081b8
+c280e810
+2040698c
+200000c8
+2040699b
+20000064
+da6069cf
+20406765
+2040677a
+2436e810
+6fe081ba
+2fe00603
+2420e801
+58000000
+67e401cc
+67e401d4
+18007004
+20406e8c
+70805021
+20600000
+6fe0c3db
+6848c3da
+98467c00
+2422ea22
+7043d902
+7043da01
+7043db00
+20206a22
+58000000
+67e101bd
+da606a5f
+20406a0b
+20406765
+2020677a
+2040682b
+6fe0c115
+1fe0fe01
+1fe67c03
+67e0c115
+20600000
+6fe0c115
+207a0000
+6fe081dd
+207a0000
+1fe27200
+202073d9
+20406810
+2040748a
+20600000
+6fe081ba
+1fe3fe00
+7920fe00
+2a2c000f
+20608000
+67e081ba
+20600000
+6ff0806f
+c4008000
+20206841
+6ff08128
+afefffff
+20608000
+6ff08108
+c300e83e
+20406df0
+2020683e
+6fe140e9
+207a0000
+70802380
+70802200
+70802400
+684940eb
+184bf200
+98000c00
+efe08006
+67f08025
+c200684d
+70802300
+20600000
+708aa004
+708aa131
+708aa201
+20206859
+708aa00c
+708aa1fb
+708aa203
+67e104d4
+44c54011
+708a01ff
+6ff08a0b
+67e084d6
+1fe1fe04
+67f08a0b
+6ff08a13
+67e084d7
+708a1311
+200003e8
+6ff08a02
+1fe1fe01
+67f08a02
+708a0003
+44c5c011
+6ff08aa0
+1fe1fed0
+67f08aa0
+20001770
+6ff08aa0
+1fe1fe20
+67f08aa0
+20002ee0
+6fe104d4
+20600000
+44c64011
+708aa004
+708aa143
+708aa201
+6ff08a02
+1fe17efe
+67f08a02
+6fe084d6
+67f08a0b
+6fe084d7
+67f08a13
+20600000
+1fe9fe00
+67f10045
+70804b00
+20600000
+20406852
+2040687f
+204068b1
+e8408011
+1a20a201
+18000e00
+a84c0000
+2020e8a8
+6ff08046
+79207e06
+79207e07
+67f08046
+70804702
+70804782
+793ffe07
+67f08046
+7080478a
+2000000b
+708047ca
+20000021
+7080474a
+200000c8
+708047ca
+20000016
+7080478a
+20000021
+70804782
+20000001
+70804792
+2000000a
+708047b2
+6ff08007
+70804792
+20000001
+70804782
+afec0000
+2020e889
+6ff10045
+1fe0fe01
+67f10045
+18e08e01
+28e01e08
+2420e889
+c2006886
+70804783
+20206873
+70804782
+2000000c
+70804780
+70804782
+20000096
+20600000
+204068b1
+708047a2
+1a227e00
+67f10048
+7920040b
+2fec000f
+7920840f
+6059004a
+70800701
+20600000
+6ff08128
+c300e8c1
+70804783
+20600000
+44c6c011
+20406856
+204068c9
+20206873
+2040687f
+204068b7
+202068c1
+20406856
+6ff10122
+67f10045
+204068b7
+d8e00001
+2040683b
+204068c1
+2feffe00
+20406834
+20206873
+580007d2
+da2040cc
+d8400001
+204068c9
+6fe0c0cc
+243a68dd
+7040cc04
+20203c0e
+6fe101b8
+1ff1fe00
+207a0000
+6fe081b8
+1ff1fe00
+c00268ec
+c005e8f0
+c00468f4
+c003e8f8
+c004e8fc
+c00568fc
+c0066900
+c007e907
+2020691b
+dfe0522c
+d8406596
+2040690e
+20206903
+dfe04e38
+d8406596
+2040690e
+20206920
+dfe06028
+d8406596
+2040690e
+20206903
+dfe04296
+d8404786
+2040690e
+20206903
+dfe04e38
+d8406024
+2040690e
+20206903
+dfe050b8
+d8406596
+2040690e
+dfe074e8
+d8407de4
+20406914
+20206920
+dfe050b8
+d8406596
+2040690e
+dfe04296
+d8404786
+20406914
+20206920
+18500400
+9841fe00
+67f2004c
+20206935
+dfe0432f
+d8404786
+18500400
+9841fe00
+67f2004c
+20206937
+dfe0478b
+d84048fa
+20206914
+20406918
+dfe0432f
+d8404786
+2040690e
+20206920
+6fe101b8
+79207e0d
+79207e0e
+67f2004c
+20406927
+70801108
+20600000
+58000002
+37d98200
+67f08012
+37d98200
+37d98200
+20600000
+6ff1011e
+793ffe0e
+67f2004c
+20206927
+6ff1011e
+79207e0e
+67f2004c
+20206927
+58000004
+20206928
+58000008
+20206928
+44c74011
+6fe0c3ae
+67f08080
+6fe0c3af
+67f08081
+580001bb
+67f10084
+580001c0
+67f10086
+20206745
+79207e07
+67e101bb
+44c7c011
+70808202
+70808800
+70800602
+20206953
+18000401
+67e081bb
+44c84012
+70808201
+60590088
+70800602
+20406953
+6fe081c0
+20600000
+20000005
+6ff08128
+c301e953
+20600000
+6fe0c3d2
+c000e95e
+c0016964
+c001e96c
+c0026970
+c002e977
+20600000
+67e1c3cb
+1a227e00
+67e143ce
+604943d0
+7043d202
+2020698c
+2040698c
+7043d203
+20406992
+da2001bb
+70808204
+6fe1c3cb
+d8400020
+202069a3
+2040698c
+204069c6
+7043d204
+20600000
+44c8c012
+2040698c
+7043d205
+20406992
+20406984
+2040699f
+2020697f
+2040698c
+20406992
+58000005
+2040694a
+c3800000
+7043d200
+6fe143a0
+20207487
+6fe204cc
+684943ce
+184085fc
+e7e20002
+20600000
+684943ce
+18422200
+184085fc
+efe20002
+67e204cc
+684943d0
+6fe1c3cb
+20600000
+44c94012
+204069f1
+20406745
+58000000
+67e201bb
+20600000
+7001bb06
+58000000
+67f10088
+58000001
+67f10082
+580001bb
+67f10084
+70800602
+20206953
+7001bbab
+20206993
+7001bbb9
+20206993
+18408404
+60590082
+d8400002
+1a20a3fc
+e0408011
+1ff10400
+e0408005
+1fec8400
+e0408005
+e7e08005
+1a227e00
+67f10084
+58000000
+67f10088
+70800602
+20406953
+202069c6
+60590088
+1ff10400
+604881bc
+1fec8400
+604881bd
+67e081be
+58000004
+67f10082
+7001bb03
+580001bb
+67f10084
+1a227e00
+67f10086
+6ff08080
+2a2c000f
+7920fe06
+67f08080
+70800602
+6ff08128
+c283e9c2
+d8e00003
+20206953
+580007d0
+20403a8c
+20406992
+580001c0
+67f10086
+58000005
+2040694a
+c28069c6
+20600000
+60590088
+58000004
+67f10082
+7001bb03
+580001bb
+67f10084
+1a227e00
+67f10086
+6ff08080
+2a2c000f
+7920fe06
+67f08080
+70800602
+6ff08128
+c283e9dc
+d8e00003
+2040683b
+20406953
+2feffe02
+20406834
+6fe081bc
+1ff02400
+6fe081bd
+1fed7e00
+9a41a400
+6fe081be
+9a41fe00
+9840fe00
+67e081be
+1fecfe00
+67e081bd
+1fecfe00
+67e081bc
+20600000
+6fe0c3d3
+6848c3d5
+98467c00
+2422e9f6
+20406a02
+6fe0c3d3
+d8400020
+20406bbd
+6fe0c3d6
+d8400021
+20406bbd
+6fe0c3d4
+d8400022
+20406bbd
+6fe0c3d5
+d840001f
+20206bbd
+7043d301
+7043d403
+7043d500
+7043d602
+7043d70b
+7043d80a
+20600000
+70801001
+20600000
+70808b05
+70808c07
+70808d07
+70808e07
+70808f07
+70809005
+70809100
+20600000
+70808b0c
+70808c0d
+70808d0d
+70808e0d
+70808f0d
+7080900c
+70809100
+20600000
+20406a50
+6fe0c3da
+d840006c
+20406bbd
+6fe0c3db
+d840006d
+20206bbd
+20406a57
+20206a1c
+6ff08128
+c302ea24
+20600000
+67e081bf
+580001bf
+67f10094
+58000001
+67f10092
+60590098
+62310096
+70808a01
+70800604
+20206a24
+58000000
+67f10098
+67f10096
+60590092
+62310094
+70808a01
+70800604
+20206a24
+79200028
+7043ad08
+20600000
+793f8028
+7043ad20
+20600000
+6fe0c3a4
+9a40fe00
+67e081bd
+20206a46
+6fe101bd
+1ff0fe00
+67e081bd
+58000003
+67f10092
+7001bca0
+7001bea1
+20206a65
+604904cc
+20406a50
+684904cc
+20406a7f
+20206a57
+6fe0c3d9
+c17f8000
+c3036a55
+580249f0
+20403a8c
+6848c3d9
+20206b96
+6848c3d9
+20206b92
+44c9c012
+c5146a3f
+6fe143a4
+9a40fe00
+1ff0fe00
+67e101bd
+44ca4012
+c5146a43
+58000004
+67f10092
+7001bca0
+7001bfa1
+580001bc
+67f10094
+60590098
+62310096
+58000002
+2a2c000f
+7920fe00
+67f0808a
+70800604
+d8e00005
+2040683b
+20406a24
+2feffe04
+20406834
+c5146a7a
+6fe101bd
+1ff0fe00
+9840fe00
+1ff0fe00
+67e101bd
+20600000
+6fe081bd
+9840fe00
+1ff0fe00
+67e101bd
+20600000
+6fe143a4
+9a40fe00
+67e104c4
+44cac012
+604904cc
+622104e3
+20406a94
+684904dc
+6a2104e3
+6fe104c4
+20406ab5
+6fe104dc
+684904e3
+98408400
+604904e3
+684904c4
+98408400
+604904c4
+6fe104cc
+243a6a85
+20600000
+44cb4012
+6fe0c3ad
+1fe0ffff
+684904c4
+9841fe00
+1fe0fe01
+67e184e0
+6fe104cc
+9840fe00
+684984e0
+98467e00
+24216aa6
+67e104cc
+6fe184e0
+684904c4
+98467e00
+67e104dc
+20600000
+6fe104cc
+67e104dc
+58000000
+67e104cc
+20600000
+1a427e00
+18408402
+60590092
+1a20a3fe
+e8418011
+18422400
+d84000a0
+e0408011
+e7e08005
+20206ac2
+1fe22400
+44cbc012
+c5146aab
+1a427e00
+18408403
+60590092
+1a20a3fd
+e8418011
+18422400
+d84000a0
+e0408011
+1ff0fe00
+e7e10005
+62310094
+58000000
+67f10098
+70808a01
+70800604
+20406a24
+e2418011
+44cc4013
+7001bf00
+58000001
+67f10092
+7001bca0
+580001bc
+67f10094
+58000000
+67f10098
+67f10096
+58000003
+67f0808a
+70800604
+20406a24
+6ff08128
+c4030000
+200005dc
+6fe081bf
+1fe0fe01
+67e081bf
+1fe67c28
+24610000
+20206acb
+44ccc013
+204074ca
+6fe0c3b3
+207a0000
+6fe14434
+c4048000
+6fe0c2a0
+c0006afb
+6fe08178
+2fe180c0
+2020eaee
+2fe18040
+2020eb00
+20206af5
+20366af2
+6fe0c284
+c300eafb
+20206af5
+20406afb
+20740000
+20206af5
+6fe0c2d3
+c283eaf8
+20206afe
+6fe30173
+67e442da
+20206afe
+70002d35
+6fe30173
+20206b01
+70002d37
+20206b01
+70002d36
+44cd4013
+6fe143b1
+e840803f
+1fe0fe01
+67e1002e
+6048802c
+6fe0c3b3
+1fe22600
+6fe1002e
+1fe22200
+20406b19
+20740000
+6849002e
+18408422
+6049002e
+184085ff
+efe08002
+67e0802c
+1a60a7ff
+2422eb09
+6fe0c3b3
+1fe0ffff
+67e0802c
+20600000
+6fe0802d
+c099eb20
+da40002d
+df200007
+20407477
+2022f4c8
+20600000
+c01b6b23
+c01beb3e
+20206b1b
+e8408011
+98467c00
+24628000
+d8a004f6
+df200010
+204073ec
+6fe18176
+67e184f6
+20406b35
+6fe10513
+1ff0fe00
+1fed0400
+efe08006
+9840fe00
+68498173
+98467c00
+2022f4c8
+20600000
+d8c004f6
+20406e7d
+efe08011
+20406e7e
+18006c38
+18006c00
+20406deb
+d8a00506
+20206e91
+e8408011
+98467c00
+24628000
+18c22200
+18c0a608
+da4042da
+df200008
+20407477
+2022f4c8
+1a622200
+da4042e2
+df200008
+20407477
+2022f4c8
+20600000
+204074cc
+20406ae0
+24346b58
+6fe1002e
+1fe08c01
+d8a042e2
+204073d2
+d8a0424c
+204073d2
+70425c01
+20600000
+70425c00
+20600000
+70002d34
+6fe0c095
+c0045b33
+20600000
+44cdc013
+79200407
+20406b85
+7d208407
+44ce4013
+18467cff
+20628000
+284c0007
+18410e1f
+6fe20016
+f920fe00
+67e20016
+6fe2001a
+fd20fe00
+67e2001a
+20600000
+44cec013
+18467cff
+20628000
+284c0007
+18410e1f
+6fe20016
+f93ffe00
+67e20016
+6fe2001a
+f93ffe00
+67e2001a
+20600000
+20406b6e
+20206b7f
+18467cff
+20628000
+2455eb62
+20406bb3
+58000000
+284ffe07
+7d20fe06
+7920fe07
+20206bac
+44cf4013
+d8a0811c
+18410e07
+18497e00
+1fe17e03
+98a08a00
+efe08005
+284ffe07
+2020eb90
+afec0000
+20600000
+afefffff
+20600000
+18467cff
+20628000
+2fcffe07
+20206b99
+18467cff
+20628000
+2fcc0007
+58000000
+7d20fe07
+98428400
+20406bb3
+5800003f
+284ffe07
+7920fe00
+20206bac
+18467cff
+2022f4d2
+20406bb3
+efe08005
+c2806ba8
+284c0007
+20600000
+284ffe07
+20600000
+20406bb3
+580000c0
+e7e08005
+20600000
+18467cff
+20628000
+20406bb3
+58000000
+20206bac
+18417e3f
+1fe67c0d
+24213a8a
+d8a08070
+98a08a00
+20600000
+1fe104ff
+1fecfe00
+20206bbd
+c4038000
+1fe17e3f
+1fe67c0d
+24213a8a
+d8a08070
+98a08a00
+e0408005
+20600000
+1841043f
+58008070
+98408c00
+efe08006
+20600000
+df20000e
+d8c08070
+18c20a00
+efe08006
+c00febd7
+c0106bd7
+c010ebd7
+c0116bd7
+c011ebd7
+c0166bd7
+c016ebd7
+c0006bd7
+c2006bcb
+20600000
+58000040
+e7e08005
+20206bd5
+58000080
+e7e08005
+20206bd5
+44cfc013
+580007e0
+da2043b6
+d840000c
+202068c5
+44d04014
+6a508a12
+708a123d
+708a11aa
+708a0a0c
+6ff08a09
+79207e07
+67f08a09
+708a0b04
+2000003c
+708a1600
+708a1706
+20406c02
+67f08a97
+7080c603
+2000003c
+6ff08053
+79207e07
+67f08053
+200003e8
+6fe143c4
+6848c3c6
+18467c01
+2042ba8c
+6ff1014c
+67e143c8
+6ff08053
+793ffe07
+67f08053
+708a9700
+62508a12
+20600000
+44d0c014
+6fe0c3c6
+c001ec09
+c0026c0b
+c000ec07
+5800004f
+20600000
+da200002
+20206c0c
+da200006
+6fe0c3c7
+1fe9fe00
+1fe1fe01
+9a21fe00
+20600000
+44d14014
+6fe0c3c6
+c001ec19
+c0026c17
+6fe243be
+20206c1a
+6fe243b6
+20206c1a
+6fe243ba
+67e204cc
+20406c28
+684943c8
+984ffe00
+1ff17e00
+1ff18400
+6fe204cc
+20406c2c
+98467e00
+d84003e8
+984ffe00
+1ff17e00
+1ff1fe00
+20600000
+da3fe000
+9a217e00
+1fe97e00
+20600000
+da201fff
+9a217e00
+1fed7e00
+1febfe00
+20600000
+efe40011
+67e404c4
+6fe104c4
+684904c6
+98462200
+6fe104ca
+98462400
+684904c8
+98467c00
+24416c41
+1a4ffe64
+9a26fc00
+20407475
+1807fe00
+205a6c49
+20600000
+6fe0c3ca
+79207e00
+67e0c3ca
+20600000
+6fe0c3ca
+793ffe00
+67e0c3ca
+20600000
+6848c3ca
+79200401
+6048c3ca
+20600000
+6848c3ca
+793f8401
+6048c3ca
+20600000
+6fe143de
+efe0803f
+207a0000
+1fe27200
+6fe143de
+1fe0fe03
+1fe22200
+e8408011
+20406b7c
+1a20a201
+c2006c58
+20600000
+6fe143de
+1fe0fe03
+1fe22200
+18002400
+58000000
+67e10546
+e8408011
+20406b85
+44d1c014
+6fe10546
+1a420e00
+f920fe00
+67e10546
+1a20a201
+1a40a401
+6fe143de
+efe0803f
+9a42fc00
+2422ec63
+6fe10546
+684943e0
+9842fc00
+20628000
+202074c8
+6fe143de
+efe0803f
+207a0000
+1fe27200
+6fe143de
+1fe0fe03
+1fe22200
+e8408011
+20406b5e
+1a20a201
+c2006c7c
+20600000
+d8e00009
+2040742e
+247a0000
+58000020
+d8e00009
+20407420
+78547c00
+20406c75
+44d24014
+6fe143de
+efe0803f
+207a0000
+20406c5d
+24346ef1
+20406eef
+78547c00
+6fe10546
+67e1054d
+70054f00
+18000e00
+6fe143e0
+1fe30400
+604943e0
+1fe17e01
+6849054d
+18412201
+18430400
+6049054d
+9a22fc00
+2442ecaa
+6fe143de
+efe0803f
+6848854f
+18408401
+6048854f
+18420e00
+98e2fc00
+2422ec95
+6fe10546
+67e143e0
+20600000
+44d2c014
+6fe143de
+1fe0fe01
+efe1003f
+20207487
+6ff08042
+9a21fe00
+67f08042
+6ff10050
+793ffe0d
+67f10050
+20000064
+20600000
+6ff08042
+c2836cbc
+c283ecbe
+58b71b00
+20600000
+596e3600
+20600000
+580080e8
+20600000
+684984c6
+20406cb7
+9846fc00
+20407475
+18078400
+6fe084c9
+984ffe00
+1fe6fc64
+20407475
+1807a200
+18427e00
+9a262400
+6fe084c5
+20406cd4
+6fe084c4
+684884c5
+1841040f
+184d0400
+9841fe00
+20206d14
+98000e00
+20406ce2
+20206cd7
+6ff080c5
+f9207e00
+67f080c5
+68588042
+284ffe07
+2040ece0
+f93ffe00
+67f080c5
+20600000
+200001e0
+20600000
+1fe17e0f
+d8a0809c
+1feffe04
+98a08a00
+1a227e00
+e7e10005
+1a427e00
+e7e10005
+20600000
+1a4c8e00
+20406d09
+1a4c8e00
+20406d03
+1a2c8e00
+7820fc00
+20406d04
+1a227e00
+20406d0f
+1a427e00
+20206d14
+1a227e00
+20406d17
+1a427e00
+20406d17
+1a2c8e00
+7840fc00
+20406d04
+1a4c8e00
+7840fc00
+20406d0a
+1a4c8e00
+7840fc00
+20206d04
+28effe07
+18e10e0f
+6ff080c3
+f920fe00
+67f080c3
+20600000
+28effe06
+18e10e0f
+6ff0809b
+f920fe00
+67f0809b
+20600000
+20406d1f
+1fed7e00
+18e08410
+9841fe00
+20206bb9
+78347c00
+20406d0f
+20206d1a
+78547c00
+20406d1f
+20206d1a
+18e10e0f
+6ff0809a
+f9347e00
+67f0809a
+20600000
+1fec8e00
+18e10e0f
+20600000
+1fe20400
+44d34014
+20406d2f
+58000800
+98467e00
+1fe20400
+18518400
+60588004
+20000578
+1fe20400
+1841040f
+6058800b
+20600000
+78367c00
+20206d33
+44d3c014
+78567c00
+6ff08043
+79367e03
+67f08043
+20600000
+5800007d
+20206d22
+44d74015
+20406e22
+d8a0424c
+20206e91
+d8a0426d
+2034ed40
+d8a00153
+18c22200
+204073d2
+20406e37
+d8c0425d
+20206eaa
+da200153
+2034ed48
+da20426d
+1a220a00
+204074e3
+20206e37
+d8c042ba
+20406e7d
+d8c0424c
+20406e7e
+18006c38
+18006c00
+20406deb
+d8a001a3
+20206e91
+18007008
+18007e49
+20206d5b
+18007e49
+20206d5a
+18007e01
+18007000
+184d5e00
+9de1de00
+1f00f001
+184cde00
+1df15e00
+6fe14410
+1ff07e00
+9de1de00
+1f00f001
+ede20006
+1f00f001
+efe10006
+1a30de00
+1df05e00
+9de1de00
+1f00f001
+20600000
+1a608c01
+efe08006
+98002200
+20406d57
+20406ded
+18007000
+efe08013
+1fe17e03
+1ff05e00
+79205e08
+20406e86
+20406df0
+1a227200
+1a608c02
+20406e65
+20406e6f
+20406df0
+1f227e00
+203a6d80
+20206d7b
+1800700c
+1de27e00
+67e2014b
+20600000
+1a20a201
+20406d59
+1a620c00
+20406e79
+20406df3
+20406e98
+1a60a610
+1a40a5f0
+20216d84
+20600000
+20406de0
+70806c00
+70806d01
+6fe08047
+1fe17e03
+67f0806e
+58000049
+67f10068
+67f1006a
+6a208048
+1a20a3fc
+242174d6
+62208048
+58000049
+9a208c00
+18007000
+ede20006
+65e2014f
+684ac407
+20406d54
+70800a06
+70800a07
+6fe08048
+67f100c1
+20406de7
+6ff08108
+c303f4d6
+684a014f
+6fe2440c
+98467e00
+207a0000
+604a440c
+6fe2c407
+1fe0fe01
+79207e27
+67e2c407
+18007e00
+20600000
+20406dbb
+5800412d
+9a20a200
+20406de7
+df00000c
+e5e20011
+20600000
+20406de0
+44d7c015
+70806c00
+70806d01
+6fe0c12b
+1fe17e03
+67f0806e
+6fe104e3
+67f10068
+5800412d
+67f1006a
+6a20c12c
+684ac402
+20406d54
+70800a02
+70800a03
+6fe0c12c
+67f100c1
+1fe0fe04
+67e0c12c
+6fe2c402
+1fe0fe01
+793ffe27
+67e2c402
+20600000
+6ff1011a
+98467c00
+20628000
+247a0000
+20206dd4
+6ff08108
+c3033a8a
+5800412d
+98408a00
+df00000c
+e5e20005
+20206de9
+44d84016
+1800700c
+20406e8c
+20406e8b
+58000000
+67f100c1
+20600000
+6ff08108
+c3036de7
+70800a00
+20600000
+243bedeb
+20600000
+18006c30
+18006c00
+20206deb
+18006c32
+18006c02
+20206deb
+18006c34
+18006c04
+20206deb
+18006c01
+18006c00
+20600000
+6ff08144
+c302edf9
+20600000
+67f1007e
+18006cc0
+18006c80
+20206df9
+18007000
+1a420c00
+18007204
+20406e0f
+18006d80
+18006c80
+20406deb
+1800700c
+1a620a00
+18007204
+1de27e00
+e7e20005
+1f00f001
+c2006e0a
+20600000
+efe10006
+e8410006
+18500400
+9841de00
+1f00f001
+c2006e0f
+20600000
+18007008
+1a220c00
+18007204
+20406e0f
+18007000
+1a420c00
+18007204
+20406e0f
+18006d82
+18006c82
+20406deb
+20206e07
+18007000
+6fe20153
+98005e00
+1f00f001
+efe20006
+98005e00
+1f00f001
+6fe2426d
+98005e00
+1f00f001
+efe20006
+98005e00
+1f00f001
+20406e8c
+1f00f1fc
+6fe242d4
+1fe25e00
+1f00f004
+18006c38
+18006c08
+20206deb
+44d8c016
+6fe342b0
+684b0173
+2034ee3d
+6fe30173
+684b42b0
+18007008
+18425e00
+1f00f001
+184f5e00
+1ff07e00
+9de1de00
+1f00f001
+1fef5e00
+1f00f001
+18005e00
+18007e00
+6fe0c2a0
+6848c363
+2434ee4d
+6fe0c2a7
+6848c2a0
+67e0c27d
+6048c27e
+18007000
+da40427d
+18007204
+efe20011
+e8420012
+9842de00
+1f00f001
+1a20a204
+1a40a404
+c2006e52
+20406e8c
+1f00f1fc
+6fe242d4
+1fe25e00
+1f00f004
+18006c38
+18006c0c
+20406deb
+20406e8b
+18006c3a
+18006c08
+20206deb
+2f200600
+20608000
+18c27e00
+9f208a00
+18007e00
+e7e08005
+1f20f201
+2f200600
+20608000
+20206e6a
+18007000
+1f227e00
+203a6e74
+efe20006
+1f20f3fc
+98005e00
+1f00f001
+2f001e04
+20608000
+20206e70
+18007008
+20206e7e
+18007004
+20206e7e
+18007000
+18007204
+efe20006
+98005e00
+1f00f001
+c2006e7f
+20600000
+d8c001a3
+20206e7b
+18007204
+20206e8e
+18007000
+18007210
+20206e8d
+18007000
+18007204
+18005e00
+1f00f001
+c2006e8d
+20600000
+1800700c
+18007204
+1de27e00
+e7e20005
+1f00f001
+c2006e93
+20600000
+1800700c
+1a620a00
+1a40f201
+1f267c0f
+20216e9e
+18007210
+1de27e00
+1f267c03
+20216ea6
+e7e20005
+1f20f3fc
+20628000
+1f00f001
+20206e9e
+e7e08005
+1fecfe00
+c2006ea6
+20600000
+1800700c
+18007204
+efe20006
+9de67c00
+24628000
+1f00f001
+c2006eac
+18007c00
+20600000
+6ff08050
+793ffe00
+67f08050
+20600000
+6ff08050
+79207e00
+67f08050
+20600000
+20758000
+20403c42
+20406ec2
+20406f6b
+20206ef8
+20406f1b
+20206f5a
+6fe0c437
+c17f8000
+98000400
+20406b96
+6848c437
+20406b92
+20000064
+6848c437
+20406b7c
+20206ecc
+44dc4017
+6fe0c437
+c17f8000
+1fe20400
+20406b85
+2420eede
+20406ee8
+6fe14434
+79207e0c
+67e14434
+6fe0c42f
+c1000000
+70442f00
+6fe0c436
+67e0c42e
+20406eef
+7004c32c
+20206f7b
+6fe14434
+793ffe0c
+67e14434
+6fe0c42f
+c1008000
+70442f01
+70442e00
+20406ef1
+7004c32d
+20206f7b
+6fe0c42e
+207a0000
+1fe0ffff
+67e0c42e
+247a0000
+7004c310
+20206f7b
+d8e00007
+20203c21
+d8e00007
+20203c25
+44dcc017
+6fe1443a
+1a2fa40b
+9a40a400
+20600000
+6fe0c439
+207a0000
+1fe27200
+6fe1443a
+1fe22400
+1a40a602
+e8408013
+20406f03
+1a40a40b
+c2006efd
+20600000
+6fe0c438
+203a6b92
+20206b96
+20406ef3
+58000002
+e7e08012
+20406f54
+20206f29
+20406ef3
+58000003
+e7e08012
+20406f54
+20206f24
+20406ef3
+58000001
+e7e08012
+580000ff
+e7e08005
+20206f24
+20406ef3
+df20000b
+1a620c00
+1a420a00
+2020740c
+6fe0c439
+207a0000
+da200000
+20406f2e
+1a20a201
+6fe0c439
+9a267c00
+20628000
+20206f1e
+1a40a602
+e8408013
+6fe0c095
+c0045f22
+20206b92
+1a40a602
+e8408013
+6fe0c095
+c0045f2f
+20206b96
+1a208e0b
+2040742e
+247a0000
+20406ef3
+efe08012
+c0016f29
+c001ef24
+c0006f24
+c002ef42
+20406f29
+1a40a607
+2040739c
+efe10013
+20407487
+204073a8
+58000005
+e7e08012
+1a40a603
+efe10013
+20206f52
+20406f24
+1a40a609
+2040739c
+efe10013
+20407487
+204073a8
+1a40a601
+efe08013
+c07fef4e
+1fe0ffff
+e7e08013
+203a6f0b
+58000004
+e7e08012
+1a40a605
+efe10013
+1a208e0b
+20207420
+58000000
+20206f52
+58001000
+1ff07e00
+9a40a400
+20600000
+44dd4017
+da200000
+684a4430
+1c422400
+1a427e00
+98467c00
+24416f56
+1a427e00
+184084a0
+184084a0
+98467c00
+24216f6e
+1a20a201
+1a217e0f
+243a6f61
+da200000
+20406f74
+1c427e00
+67e24430
+20600000
+1a227e00
+207a0000
+18408560
+18408560
+793f841c
+604a4430
+20204dc0
+70441c01
+6fe0c41d
+243a6f76
+20600000
+70441c00
+20600000
+44ddc017
+20406f75
+1a227e00
+67e204d8
+da20441e
+20407499
+6fe204d8
+1fe22200
+20206f79
+44de4017
+20406f75
+1a227e00
+67e204d8
+da204426
+20407499
+6fe204d8
+1fe22200
+20206f79
+58000000
+67e44426
+67e4441e
+20600000
+44dec017
+6fe0c10d
+247a0000
+da204426
+204074b1
+207a0000
+7004c200
+20406f9c
+6fe084c2
+203a6f91
+20600000
+20406f75
+da204426
+204074a5
+1fe20400
+20406f79
+44df4017
+18427e00
+207a0000
+c006efc0
+c0076fc6
+c007efcb
+c0086fc6
+c009efd6
+c00a6fd8
+c00aefda
+c00b6fe4
+c00befe7
+c00c6fe9
+c00cefec
+67e084c3
+6fe084c3
+c584efb9
+44dfc017
+6fe084c3
+c008efd1
+c00deff4
+c0096fd5
+c00feb5a
+20600000
+67e084c3
+2040385b
+2022efbe
+20403860
+24628000
+7004c201
+20206f84
+70435f01
+70436200
+6fe14434
+79207e0b
+67e14434
+20600000
+6fe14434
+793ffe0b
+67e14434
+70435f00
+20600000
+70435f01
+70436201
+6fe14434
+79207e0b
+67e14434
+20600000
+58000014
+67e10191
+67e142ca
+2020473e
+202045c0
+da200000
+20206f0b
+da200000
+20206f06
+da200000
+20406ef3
+efe08012
+c000efe1
+c0026fe1
+c002efe1
+20206f10
+efe08006
+c17f8000
+20206f10
+70431a01
+70410d1b
+20600000
+70431a01
+20600000
+70431a00
+70410d00
+20600000
+6fe1438e
+20407487
+6fe0c437
+c07feff2
+1fe20400
+20406b7c
+20406f8d
+20203b3f
+202045ee
+6fe0c434
+c4060000
+20600000
+6fe143b4
+1fe08a02
+58000000
+e7e18005
+20600000
+44e04018
+204074ca
+2040702b
+207a0000
+6fe143b4
+1fe0a402
+e8408012
+18408401
+e0408012
+e840803f
+18427200
+1fe0a404
+efe08012
+984ffe00
+98c08a00
+1a220c00
+20407419
+2040702f
+1fe0ffff
+e8408012
+18408401
+98410400
+e0408012
+202074c8
+44e0c018
+204074ca
+20407027
+207a0000
+6fe143b4
+1fe0a402
+e8408012
+184085ff
+e0408012
+e840803f
+18427200
+1fe0a403
+efe08012
+984ffe00
+98c08c00
+18c08c01
+1a220a00
+2020700d
+6fe143b4
+1fe08c02
+efe08006
+20600000
+2040702f
+e8408006
+98467e00
+20600000
+6fe143b4
+1fe08c01
+efe08006
+20600000
+44e14018
+6ff08c23
+2feffe03
+2040f03f
+6ff08c23
+67f08c23
+67e0855e
+2040709a
+204070c1
+204072d2
+2040731a
+20207092
+44e1c018
+20406eb3
+20407056
+708c0000
+20002710
+708c18c0
+6ff10050
+793ffe0a
+67f10050
+708c1100
+708c003c
+580005b7
+67f10c03
+67f10c07
+580005f7
+67f10c05
+708c1104
+708c0200
+708c23ff
+58000900
+d8a0070b
+98a67200
+202073ec
+70070802
+58000000
+67e085fa
+67e10702
+1fe0fe01
+67e10704
+1fe0fe01
+67e10706
+d8a00694
+58030404
+e7e18005
+58000409
+e7e10005
+d8a00699
+38015906
+380610d2
+38090494
+380c0001
+e7e48005
+d8a006b7
+3801570f
+38055c9a
+380a56c6
+380dcdcd
+e7e48005
+38014420
+38065d99
+380a5636
+380c0001
+e7e38005
+d8a006d5
+3801620a
+38040c8c
+380b0333
+380cc0c0
+e7e48005
+38003130
+e7e10005
+58009272
+67e105fb
+580092cd
+67e105fd
+d8c09371
+d8a0061d
+df200013
+20407419
+20407087
+6fe106f3
+20207487
+6fe086f7
+247a0000
+df20003c
+d8a00630
+d8c09384
+20207419
+6fe086f8
+207a0000
+67e08652
+67e0866b
+20600000
+d8e00001
+2040742e
+247a0000
+6fe087ad
+247a0000
+6fe087ac
+245a738b
+20600000
+6fe0855e
+c281709d
+20600000
+204070a2
+2040742d
+58000280
+d8e00001
+20207420
+6fe0879e
+c08170a7
+7007ad00
+7007ae00
+20600000
+6fe087b0
+207a0000
+7007b000
+70079e02
+7007ac01
+20600000
+6fe0855e
+c28070d8
+20600000
+6ff08c24
+c3830000
+69510c03
+6a110c05
+68710c07
+efe10003
+1fec8400
+18518400
+d8c00fff
+98c17200
+1f222200
+efe08003
+e7e08005
+c20070bb
+60710c07
+62210560
+20600000
+44e24018
+6fe0855e
+c4028000
+d8a0083d
+204070b0
+6f210560
+6720887d
+d8c0083d
+18427e00
+c00070d1
+c001f0cd
+20600000
+d8a008c0
+20407419
+70087f01
+20600000
+d8a0070b
+20407419
+6fe08560
+c00070ad
+c000f0df
+1fe67c07
+20610000
+44e2c018
+793f8023
+6fe0870b
+1fe17e80
+c04070e3
+c00070eb
+20203a8a
+6fe0870b
+c3838000
+204072a7
+20207116
+6fe0870b
+1ff1fe00
+1fe37e00
+1fe17e03
+c00070f3
+c000f0fa
+c0017100
+20203a8a
+6fe0870b
+1ff1fe00
+1fe37e00
+1fe17e03
+c0007101
+c000f10a
+c0017110
+20203a8a
+44e34018
+6fe0870c
+c0047118
+c003712e
+c0057181
+c0007193
+20207111
+44e3c018
+6fe0870c
+c00171c8
+c000f1cc
+c001f1dd
+20207111
+20207111
+44e44019
+6fe0870c
+c000f1e7
+c001f218
+c002f243
+c004f25c
+c005f277
+c003f111
+20207111
+44e4c019
+6fe0870c
+c0057288
+c004f29a
+c005f2b9
+20207111
+20207111
+44e54019
+6ff08c19
+79207e00
+67f08c19
+20207116
+708c1810
+20600000
+6fe0870b
+c0c07111
+6fe0870f
+c0807111
+6fe08710
+c0807111
+6fe08711
+c080f111
+6fe08712
+c0807111
+6fe0870d
+c0807111
+6fe0870e
+c0807111
+6fe08708
+c002712a
+c001f12c
+20207111
+da400001
+202071ad
+da400001
+202071ab
+44e5c019
+6fe0870e
+c000f145
+c001715e
+c001f161
+c010f136
+c011716f
+20207111
+70079b00
+6fe0870f
+c000713c
+c000f13f
+c0017142
+20207111
+6a408643
+da200643
+202072c8
+6a40865c
+da20065c
+202072c8
+6a408675
+da200675
+202072c8
+6fe087af
+245a7156
+5800061d
+6848861d
+67e107a6
+604887a8
+6fe08711
+98467c00
+24217154
+6fe087a8
+98002400
+6fe107a6
+1fe0fe01
+98002200
+202072c8
+6fe08711
+2020714f
+6ff08c02
+245a715a
+7007af00
+20600000
+6ff08c02
+79207e07
+67f08c02
+20600000
+58000630
+68488630
+20207149
+6fe0870d
+1fe67c03
+24217111
+6fe0870d
+da200694
+c00072c6
+79200023
+da200699
+c000f2c6
+da2006b7
+c00172c6
+da2006d5
+c001f2c6
+20600000
+6fe1070f
+c0007174
+c000f176
+c001717a
+20207111
+6a2105fb
+202072c6
+6fe086f7
+205a717e
+6a2105fd
+202072c6
+6fe086f7
+245a717e
+6a2105ff
+202072c6
+7007ac01
+70079e01
+20600000
+6fe08708
+c0827111
+6fe0870b
+c0c0f111
+6fe0870d
+c0807111
+6fe0870e
+c0807111
+6fe08711
+c080f111
+6fe08712
+c0807111
+6fe0870f
+c0807111
+6fe08710
+c0807111
+da400001
+202071ab
+6fe08708
+c0017111
+6fe0870d
+c0807111
+6fe0870e
+c0807111
+6fe08711
+c0817111
+6fe08712
+c0807111
+6fe08710
+c0807111
+6fe0870b
+c04071a6
+c040f1b1
+c04171b5
+20207111
+7007a101
+202071af
+6fe0870f
+c0807111
+da400002
+6fe0879f
+c000f1a4
+da200702
+202072c8
+da200704
+202072c8
+da200706
+202072c8
+6fe08708
+c0827111
+da400002
+202071ab
+6fe08708
+c0827111
+6fe0870f
+c040f1c2
+c04171c4
+c041f1c6
+1fe17e7f
+c00071be
+20207111
+6fe087a2
+da400002
+c000f1ad
+202071ab
+6fe087a3
+202071bf
+6fe087a4
+202071bf
+6fe087a5
+202071bf
+70079901
+da20079a
+da400001
+202072c8
+6fe1070d
+d84001ba
+98467c00
+2422f111
+6fe08796
+243a71da
+70075300
+6fe08711
+98002400
+da200753
+204072c8
+d8a00753
+df200008
+202073dd
+70079600
+70075301
+202071d3
+6fe08711
+c080f111
+70079b01
+da400001
+6fe0879d
+c00071e5
+c000f1e6
+202071ab
+202071ad
+202071ab
+6fe08708
+c0827111
+6fe08711
+c0807111
+6fe08712
+c0807111
+6fe0870e
+c0807111
+6fe08710
+c0807111
+6fe0870b
+c00071f6
+c000f205
+c0017206
+20207111
+6fe0870d
+c080f111
+6ff08c00
+793ffe07
+67f08c00
+70079f00
+7007a001
+6fe087a1
+203a7116
+7007a100
+6fe0870a
+203a7116
+7007a000
+70079e02
+20207116
+20207111
+6fe0870d
+c0807111
+6fe0870f
+c040f211
+c0417214
+c041f216
+1fe17e7f
+c000720f
+20207111
+7007a200
+20207116
+7007a300
+7007b001
+20207116
+7007a400
+20207212
+7007a500
+20207212
+6fe08711
+c0807111
+6fe08712
+c0807111
+6fe0870b
+c0007221
+c000f22f
+c0017230
+20207111
+6fe0870d
+c080f111
+20405191
+6ff08c00
+79207e07
+67f08c00
+70079f01
+70079e03
+70079700
+20407116
+2040742d
+58001388
+d8e0000f
+20207420
+20207111
+6fe0870d
+c0807111
+6fe0870e
+c0807111
+6fe0870f
+c040f23d
+c041723f
+c041f241
+1fe17e7f
+c000723b
+20207111
+7007a201
+20207116
+7007a301
+20207116
+7007a401
+20207116
+7007a501
+20207116
+6fe0870b
+c0807111
+6fe0870f
+c0807111
+6fe08710
+c0807111
+6fe08711
+c0807111
+6fe08712
+c0807111
+6fe0870e
+c0807111
+6fe0870d
+1fe17e80
+c0807111
+6fe0870d
+c080725a
+70070802
+6fe0870d
+67f08c02
+20407116
+7007af01
+20600000
+70070803
+20207255
+6fe08708
+c0017111
+6fe0870b
+c0807111
+6fe0870f
+c0807111
+6fe08710
+c0807111
+6fe08711
+c0807111
+6fe08712
+c0807111
+6fe0870e
+c0807111
+6fe0870d
+1fe67c01
+24217111
+6fe08708
+c001f271
+c0027271
+20207111
+6fe0870d
+c0007275
+70070804
+20207116
+70070803
+20207116
+6fe08708
+c0827111
+6fe0870b
+c080f111
+6fe0870d
+c0807111
+6fe0870e
+c0807111
+6fe08711
+c0807111
+6fe08712
+c0807111
+6fe0870f
+c0807111
+6fe08710
+c0807111
+20207116
+44e64019
+70079901
+6fe0870e
+67e0879a
+6fe0870f
+1fe67c01
+2042f296
+6fe0879e
+c0827116
+70079e02
+20407116
+20007530
+20007530
+20600000
+7007ac01
+7007a000
+70079e04
+20600000
+20003a98
+d8a00713
+204070b0
+70079501
+204072ab
+6fe1070d
+67e10793
+20407116
+6fe0c095
+c1820000
+6fe08797
+207a0000
+6fe08713
+67e0c56c
+70079700
+70455c03
+20600000
+6fe1070d
+d8400200
+98467c00
+24628000
+6fe1070f
+d8400000
+98467c00
+24628000
+6fe10711
+d8400001
+98467c00
+24628000
+70079701
+20600000
+6fe08711
+c0807111
+6fe0870d
+c00072bf
+c000f2c2
+20207111
+70079c00
+70079d01
+20207116
+70079801
+70079c01
+70079d00
+20207116
+ea408011
+1a20a201
+44e6c019
+7920000e
+c591f2cd
+1a40a401
+1a43a400
+622105f8
+624085fa
+202072d2
+d8e00000
+20207312
+44e74019
+6ff08c24
+c3800000
+6fe085fa
+207a0000
+1fe27200
+98000400
+6fe10711
+1fe67c40
+202172e0
+1f267c40
+202172e4
+18007240
+202072e4
+9f267c00
+202172e4
+98007200
+67e085fa
+6fe085fa
+9f267e00
+67e085fa
+1f20ffff
+67e08562
+c591f2f6
+1fe37e00
+1f20ffff
+67e08562
+c58772f6
+793f800e
+e0408005
+58000003
+e7e08005
+1f20f3ff
+1f227e00
+2422f2f6
+1f20f201
+6fe105f8
+1fe20c00
+efe08006
+e7e08005
+c591f2fd
+58000000
+e7e08005
+c20072f8
+18c27e00
+67e105f8
+58000562
+67f10c09
+d8e00000
+20407312
+6fe085fa
+247a0000
+6fe0879e
+c1808000
+70079e02
+20600000
+d8e00001
+da2005a3
+62310c0b
+1f20ffff
+e7e08011
+efe08006
+e7e08005
+c200730f
+58000000
+f9207e00
+67f08c18
+20600000
+d8e00002
+da2005ad
+62310c0d
+2020730d
+44e7c019
+6fe087ab
+207a0000
+6ff08c24
+1fe17e0f
+243a7383
+6fe087ac
+203a7356
+6fe0879e
+c001f393
+c0817356
+6fe087a0
+243a7356
+2040732a
+20407335
+20207342
+6ff08c24
+c3808000
+6fe087ab
+c4008000
+6fe087ab
+793ffe01
+67e087ab
+6fe087a9
+207a0000
+c008737b
+20203a8a
+6ff08c24
+c3810000
+6fe087ab
+c4010000
+6fe087ab
+793ffe02
+67e087ab
+6fe087aa
+207a0000
+c010735c
+c010f377
+c011737f
+20203a8a
+6fe086f7
+207a0000
+6ff08c24
+c3818000
+6fe087ab
+c4018000
+6fe087ab
+793ffe03
+67e087ab
+6f20887e
+df200020
+d8c00880
+d8e00003
+da2007fd
+62310c0f
+2020730d
+6fe087ab
+79207e03
+67e087ab
+20600000
+d8a007b1
+df200008
+204073dd
+d8a00880
+df200008
+202073dd
+6fe08799
+6848879b
+98417e00
+203a7373
+6848879c
+9840fe00
+c000f364
+20207373
+7007aa00
+6fe087b2
+c0017374
+c001f374
+6fe087b2
+67e087b1
+6fe087b3
+e7e08005
+6fe087b5
+e7e08005
+6fe087b7
+e7e08005
+df200004
+d8c007b1
+20207316
+7007aa00
+df200008
+d8c007b1
+20207316
+7007aa00
+df200003
+d8c007d1
+20207316
+7007a900
+df200008
+d8c007c1
+2020730a
+7007aa00
+df200002
+d8c007e1
+20207316
+6fe0879e
+c0017386
+20600000
+6ff08c00
+79207e07
+67f08c00
+7007ae01
+20600000
+6fe0879e
+c1018000
+c001738f
+20600000
+6fe087ae
+207a0000
+7007ad01
+20207396
+d8e0000f
+2040742e
+247a0000
+6ff08c00
+c4038000
+708c00fc
+20007530
+708c003c
+20600000
+60a104e5
+604c04cc
+616204d4
+204073a4
+60c104e3
+672104ef
+60e104ed
+20600000
+622204d8
+624204dc
+626184e0
+20600000
+44e8401a
+6fe104e5
+98000a00
+684c04cc
+696204d4
+204073b3
+6f2104ef
+68e104ed
+6fe104e3
+98000c00
+20600000
+6a2204d8
+6a4204dc
+6a6184e0
+20600000
+6fe104e5
+1fe20a00
+20600000
+6fe104e3
+1fe20c00
+20600000
+18a27e00
+67e104e5
+20600000
+18c27e00
+67e104e3
+20600000
+204073d0
+204073d0
+202073d0
+204073cc
+efe08006
+e7e08005
+efe18006
+e7e18005
+20600000
+efe40006
+e7e40005
+20600000
+204073d2
+204073cc
+204073cc
+204073cc
+202073cc
+1fe0ffff
+20000026
+243a73d4
+20600000
+df20000a
+20002ee0
+c20073d9
+20600000
+18007203
+18007e00
+e7e40005
+c20073de
+20600000
+204073e2
+18007e00
+e7e40005
+20600000
+18007e00
+e7e20005
+20600000
+18007204
+202073dd
+18007208
+202073dd
+1f227e00
+207a0000
+58000000
+e7e08005
+c20073ef
+20600000
+df200020
+d8a004f6
+202073ec
+efe20013
+e8420011
+9842fe00
+e7e20005
+1a20a204
+1a60a604
+c20073f5
+20600000
+44e8c01a
+1f227e00
+1fe67c01
+20610000
+9a20a400
+1a40a5ff
+1f237200
+e8408011
+efe08012
+e7e08011
+e0408012
+1a40a5ff
+1a20a201
+c2007404
+20600000
+1f227e00
+207a0000
+1f20f3f8
+204173cc
+20628000
+2021740e
+1f20f208
+1f20f3fc
+204173c7
+20628000
+20217413
+1f20f204
+20207419
+1f227e00
+207a0000
+efe08006
+e7e08005
+c200741b
+20600000
+58000000
+67e104c4
+44e9401a
+2040742e
+684904c4
+d8a040ed
+18e3fe00
+98a08a00
+e0410005
+20600000
+d9600800
+19701600
+9960fe00
+20600000
+d8e00000
+44e9c01a
+684a4096
+1c437e00
+67e24096
+98467c00
+24417429
+98461600
+19620400
+d8c040ed
+18c20a00
+df200010
+efe10006
+98467e00
+2021743d
+18007e00
+e7e10005
+c2007439
+d8c040ed
+18e3fe00
+98c08c00
+efe10006
+20600000
+98408400
+18427200
+6fe1003f
+9f267e00
+20610000
+1fe67e00
+18510400
+18408401
+18500400
+98418400
+20600000
+20407451
+2020745e
+78547c00
+98467e00
+20217456
+78347c00
+1fe67e00
+c4078000
+1fe22800
+d8410000
+6fe1003f
+98467e00
+9a80fe00
+793ffe40
+20600000
+6849003f
+98000c00
+1ff17e00
+984ffe00
+98c0fe00
+20600000
+1fed7e00
+1ff27e00
+6849c0be
+9846fc00
+20407475
+18078400
+20600000
+6849003f
+9846fc00
+20407472
+1ff07e00
+18070400
+98418400
+20600000
+20407475
+1807fe00
+20600000
+207a8000
+20207475
+efe08011
+e8408012
+98467c00
+24628000
+1a20a201
+1a40a401
+c2007477
+18007c00
+20600000
+98467c00
+24610000
+18427e00
+20600000
+df200200
+d8a04000
+202073dd
+207a0000
+1fe27a00
+20406d31
+70820301
+20600000
+67f10205
+6ff08203
+79207e04
+67f08203
+20600000
+67f10207
+6ff08203
+79207e06
+67f08203
+20600000
+67f10205
+70820330
+20600000
+44ea401a
+e8440011
+18417eff
+243a749f
+184cfe00
+e7e40011
+1a20a207
+efe08011
+243a3a8a
+6fe084c3
+e7e08011
+20600000
+44eac01a
+df200008
+efe40011
+207a0000
+efe08011
+243a74ae
+1a20a201
+c20074a9
+20203a8a
+d8400000
+e0408011
+20600000
+efe40011
+20600000
+efe08011
+20600000
+efe10011
+20600000
+d8400000
+6fe08006
+c20074b8
+18408401
+c20074b8
+18427e00
+20600000
+98467c00
+24610000
+18427e00
+20600000
+18007dff
+20600000
+18007c01
+20600000
+18007c00
+20600000
+78347c00
+20600000
+78547c00
+20600000
+78367c00
+20600000
+78567c00
+20600000
+7838fc00
+20600000
+7840fc00
+20600000
+7820fc00
+20600000
+58000001
+20600000
+58000000
+20600000
+1f267c00
+20628000
+e8408006
+9840fe00
+c20074dc
+20600000
+58000000
+67e40016
+20600000
+df200010
+180a7e00
+e7e08005
+c20074e4
+20600000
+70459601
+2040778d
+7044cd42
+7044ce15
+7044dd55
+6fe0c4e2
+1fe0fe01
+67e0c4e2
+204074f6
+20407ad5
+df200017
+d8c044cd
+d8a0464f
+2020740c
+d8400000
+d8c044dc
+df200007
+efe08006
+98408400
+c20074f9
+6048c4e3
+20600000
+6fe0c4e8
+207a0000
+7044e800
+6fe14594
+207a0000
+6fe0c4dc
+1fe0fe01
+67e0c4dc
+c000f50c
+c004f50c
+204074e8
+58000003
+67e144e4
+20600000
+6fe0c4e1
+1fe0fe40
+67e0c4e1
+204074e8
+20207511
+58000003
+67e144e4
+20600000
+7044e107
+7044dc00
+202074e8
+6fe0c4a3
+245a7977
+7044e111
+7044dc00
+202074e8
+7044e112
+7044dc00
+202074e8
+7044e113
+7044dc00
+202074e8
+7044e105
+7044e000
+7044dc00
+202074e8
+7044e109
+7044dc00
+7044e000
+202074e8
+7044e114
+7044dc00
+202074e8
+7044e115
+7044dc00
+202074e8
+6fe0c4a3
+245a79ad
+7044e10c
+7044e001
+7044dc00
+202074e8
+6fe0c4a3
+245a79b5
+7044e10e
+7044e001
+7044dc00
+202074e8
+6fe0c4a3
+245a79af
+7044e101
+7044e002
+7044dc00
+202074e8
+6fe0c4a3
+245a79b7
+7044e104
+7044e002
+7044dc00
+202074e8
+6fe0c4a3
+245a79b1
+7044e10d
+7044e003
+7044dc00
+202074e8
+6fe0c4a3
+245a79b9
+7044e10f
+7044e003
+7044dc00
+202074e8
+6fe0c4a3
+245a79b3
+7044e108
+7044e004
+7044dc00
+202074e8
+6fe0c4a3
+245a79bb
+7044e106
+7044e004
+7044dc00
+202074e8
+6fe0c724
+c000f514
+704706b1
+2020774f
+6fe0c4a3
+245a7960
+7044e116
+7044dc00
+7044e000
+202074e8
+6fe0c4a3
+245a7966
+7044e117
+7044dc00
+7044e000
+202074e8
+70470600
+6fe0c4a3
+245a792a
+7044e10a
+202074e8
+70470600
+6fe0c4a3
+245a792c
+7044e10b
+202074e8
+70470600
+6fe0c4a3
+245a792e
+7044e103
+202074e8
+70470600
+6fe0c4a3
+245a7930
+7044e102
+202074e8
+6fe0c4a3
+245a7948
+7044e110
+7044dc00
+202074e8
+20407de0
+204075aa
+204075b5
+4738c02e
+70457d01
+70457e01
+4739402e
+6fe142b0
+1ff27e00
+d840ffff
+98417e00
+203a75bc
+d840fff0
+98467c00
+2022f5be
+4739c02e
+1ff0fe00
+67e1457b
+67e144de
+da20ffff
+1a300400
+5800ffff
+98418400
+6fe242b0
+205a75ba
+98467c00
+2042f5ba
+67e244a7
+58007b9d
+67e1439c
+580079bd
+67e14394
+202076cc
+473a402e
+6f20c55e
+684a4738
+d8c04560
+473ac02e
+efe08006
+98000e00
+f9200400
+c20075ae
+604a4738
+20600000
+473b402e
+6f20c55f
+684a4738
+d8c04568
+202075ae
+58111213
+20600000
+dfe00010
+20207598
+dfe0ffe0
+20207598
+473bc02e
+6fe242b0
+67e24525
+704529d1
+6fe0c52b
+1fe0fe01
+67e0c52b
+d8400000
+d8c04524
+df200008
+20407603
+18508400
+6049452c
+da604523
+df20000b
+58000000
+67e144c6
+20407b57
+6fe144c6
+67e1452e
+df200017
+d8c044e9
+d8a0464f
+2040740c
+df20000d
+d8c04523
+d8a04666
+2040740c
+70467a25
+70467b33
+20407b7b
+df200025
+d8c0464f
+d8a04530
+2020740c
+efe08006
+1fedfe00
+e7e08005
+c20075e3
+20600000
+473c402f
+20407ad5
+20407600
+18508400
+60494508
+da604500
+df20000a
+58000000
+67e144c6
+20407b57
+6fe144c6
+67e1450a
+6fe1450c
+1ff0fe00
+1fe0fe01
+1ff0fe00
+67e1450c
+df200025
+d8c044e9
+d8a0464f
+2040740c
+70467a25
+70467b33
+20207b7b
+d8400000
+d8c04501
+df200007
+efe08006
+98408400
+c2007603
+20600000
+da400033
+20600000
+6fe0c50e
+67e0c505
+20600000
+204079ab
+70452468
+70452a46
+204075c0
+70450168
+70450746
+202075e8
+7045246e
+70452af0
+204075c0
+7045016e
+704507f0
+202075e8
+2040792a
+70452469
+70452a00
+204075c0
+70450169
+70450700
+202075e8
+2040792c
+7045246a
+70452a00
+204075c0
+7045016a
+70450700
+202075e8
+2040792e
+70452465
+70452a00
+204075c0
+70450165
+70450700
+202075e8
+20407930
+70452466
+70452a00
+204075c0
+70450166
+70450700
+202075e8
+70452460
+70452a00
+704529d2
+204075c0
+70450160
+704507d1
+704506d2
+202075e8
+70452460
+70452a00
+704529d4
+204075c0
+70450160
+704507d1
+704506d4
+202075e8
+70452460
+70452a00
+70452903
+204075c0
+70450160
+580000d1
+67e14507
+70450e03
+202075e8
+70452460
+70452a00
+70452904
+204075c0
+70450160
+580000d1
+67e14507
+70450e04
+202075e8
+7045246f
+70452a00
+704529d2
+204075c0
+7045016f
+704507d1
+704506d2
+202075e8
+7045246f
+70452a00
+704529d4
+204075c0
+7045016f
+704507d1
+704506d4
+202075e8
+7045246f
+70452a00
+70452903
+204075c0
+7045016f
+580000d1
+67e14507
+70450e03
+202075e8
+7045246f
+70452a00
+70452904
+204075c0
+7045016f
+580000d1
+67e14507
+70450e04
+202075e8
+704529d2
+704506d2
+2020768f
+704529d4
+704506d4
+2020768f
+70452903
+70450603
+2020768f
+70452904
+70450604
+2020768f
+2040794f
+7045246f
+70452aaa
+204075c0
+7045016f
+580000aa
+67e14507
+202075e8
+704506d1
+704529d1
+2040794a
+7045246f
+70452a55
+204075c0
+7045016f
+70450755
+70450e00
+20407609
+202075e8
+20407948
+7045246e
+70452a00
+204075c0
+704501a1
+70450700
+202075e8
+6fe0c597
+c00076a4
+c000f6ac
+c00176b4
+20600000
+20407959
+70459701
+7045246d
+70452a01
+204075c0
+7045016d
+70450701
+202075e8
+20407960
+70459702
+7045246d
+70452a02
+204075c0
+7045016d
+70450702
+202075e8
+20407966
+70459700
+7045246d
+70452a03
+204075c0
+7045016d
+70450703
+202075e8
+70452460
+70452a00
+704529d1
+204075c0
+70450160
+70450700
+704506d1
+202075e8
+7045246f
+70452a00
+704529d1
+204075c0
+7045016f
+70450700
+704506d1
+202075e8
+473cc02f
+6fe14579
+247a0000
+204076da
+473d402f
+da204560
+6fe0c55e
+98007200
+e8408011
+20406b7c
+1a20a201
+c20076d4
+20002ee0
+20600000
+da204568
+6fe0c55f
+98007200
+e8408011
+18418480
+2040773e
+1a20a201
+c20076dd
+20002ee0
+20600000
+6fe14579
+247a0000
+70457200
+58000000
+67e44556
+70457000
+da604560
+e8408013
+20406b85
+2040f706
+e8408013
+20406b7c
+204076da
+1a60a601
+6fe0c570
+1fe0fe01
+67e0c570
+6848c55e
+98467c00
+242176eb
+20600000
+473dc02f
+6fe0c570
+1fe0fe01
+6848c55f
+18408401
+984ffe00
+98000e00
+6fe44556
+f9207e00
+67e44556
+20600000
+df200001
+20600000
+473e402f
+6fe14573
+98007200
+205a7704
+204073d9
+e8408013
+20406b85
+24608000
+20002ee0
+e8408013
+20406b85
+24608000
+20002ee0
+e8408013
+20406b85
+24608000
+20407739
+e8408013
+20406b85
+2020f6f9
+473ec02f
+e8408013
+18418480
+2040773e
+70457100
+da204568
+e8408011
+20406b85
+2040f72b
+1a20a201
+6fe0c571
+1fe0fe01
+67e0c571
+6848c55f
+98467c00
+24217720
+20600000
+473f402f
+6fe0c570
+6848c55f
+18408401
+984ffe00
+6848c571
+18408401
+9840fe00
+98000e00
+7820fc00
+6fe44556
+f920fe00
+67e44556
+20600000
+473fc02f
+da204568
+6fe0c55f
+98007200
+202076d4
+79400407
+20206b96
+6fe0c724
+c000f770
+704706a0
+2020774f
+6fe0c724
+c000f767
+704706a1
+2020774f
+6fe0c724
+c000f75e
+704706a2
+2020774f
+6fe0c724
+c000f755
+704706a3
+47404030
+6fe14722
+247a0000
+70435f00
+70472205
+20600000
+2040792a
+6fe0c721
+c000f570
+c0017619
+70470600
+70458421
+70458b18
+20407779
+20207ae8
+2040792c
+6fe0c721
+c000f575
+c0017620
+70470600
+70458421
+70458b24
+20407779
+20207ae8
+2040792e
+6fe0c721
+c000f57a
+c0017627
+70470600
+70458421
+70458b28
+20407779
+20207ae8
+20407930
+6fe0c721
+c000f57f
+c001762e
+70470600
+70458421
+70458b14
+20407779
+20207ae8
+4740c030
+58000000
+67e1c587
+20207ac4
+70459601
+2040778d
+70470601
+20600000
+70459602
+2040778d
+70470602
+20600000
+70459603
+2040778d
+70470603
+20600000
+70459604
+2040778d
+70470604
+20600000
+47414030
+6fe14594
+247a0000
+6fe1476e
+67e14594
+1fe0fe01
+67e146a6
+6fe0c721
+1fe67c01
+2022f511
+20600000
+20407948
+70458423
+20207ac2
+70458100
+7044ab00
+58000001
+67e146a9
+7046a801
+4741c030
+2040794a
+70435f01
+6fe1476c
+1febfe00
+67e145a2
+1fe0fe01
+67e146a6
+6fe0c57f
+67e0c58b
+70458428
+6fe0c58a
+1fe0fe01
+67e0c58a
+70458981
+6fe0c4a6
+1fe67c03
+2042fad1
+6fe0c4a6
+1fe67c05
+2042fad3
+204077b7
+20207ae8
+6fe1457b
+d840f0ff
+98417e00
+67e14587
+20207ade
+47424030
+2040794f
+7046a801
+70435f01
+58000001
+1febfe00
+67e146a9
+6fe1476c
+1febfe00
+67e145a2
+1fe0fe01
+67e146a6
+70458445
+5801feff
+67e1c585
+6fe0c58a
+1fe0fe01
+67e0c58a
+6fe0c4a6
+1fe67c03
+2042fad1
+6fe0c4a6
+1fe67c05
+2042fad3
+20207ae8
+70459600
+2040778d
+70458100
+20407951
+6fe0c721
+c000f522
+c00176c4
+7046ab01
+70458410
+20407ade
+20207ac2
+70459600
+2040778d
+202077e5
+6fe0c6ab
+203a77d7
+20407954
+70458100
+6fe0c721
+c000f526
+c00176bc
+7046ab00
+70458411
+20407ade
+20207ac2
+70459600
+2040778d
+20407957
+70458409
+20207ac2
+70458421
+704587ff
+704588ff
+70458b40
+20600000
+70458421
+704587ff
+70458b40
+20600000
+70458421
+704588ff
+70458b40
+20600000
+6fe0c597
+1fe67c03
+2042f807
+c000780a
+c000f812
+c001781a
+20600000
+58000000
+67e0c597
+20600000
+6fe0c597
+1fe0fe01
+67e0c597
+20407959
+6fe0c721
+c000f514
+204077f3
+20207ac2
+6fe0c597
+1fe0fe01
+67e0c597
+20407960
+6fe0c721
+c000f514
+204077f8
+20207ac2
+6fe0c597
+1fe0fe01
+67e0c597
+20407966
+6fe0c721
+c000f514
+204077fc
+20207ac2
+6fe0c6ad
+c000782b
+2040796c
+7046ad00
+6fe0c721
+c000f51f
+c0017613
+70458413
+20207ac2
+2040796e
+7046ad01
+6fe0c721
+c000f51f
+c0017613
+70458412
+20207ac2
+6fe0c598
+c000783b
+20407970
+70458421
+704587ff
+704588ff
+70459800
+70458b02
+20207ac2
+20407977
+70458b01
+70458421
+7045877f
+7045887f
+70459801
+20207ac2
+6fe0c721
+1fe67c01
+2042f52a
+7046fe01
+6fe0c59b
+c000784c
+2040797e
+7045841f
+70459b00
+20207ac2
+20407980
+7045841e
+70459b01
+20207ac2
+6fe0c721
+1fe67c01
+2042f52d
+70458422
+6fe0c599
+c000787a
+c000f876
+c0017872
+c001f86d
+c0027868
+c002f863
+c003785d
+20600000
+2040799d
+70459900
+704587ff
+704588ff
+704589ff
+20207ac2
+20407998
+70459906
+704587ff
+704589ff
+20207ac2
+20407993
+70459905
+704588ff
+704589ff
+20207ac2
+2040798e
+70459904
+704587ff
+704588ff
+20207ac2
+2040798a
+70459903
+704589ff
+20207ac2
+20407986
+70459902
+704588ff
+20207ac2
+20407982
+70459901
+704587ff
+20207ac2
+204079a3
+70458701
+70458441
+20207ac2
+70459601
+2040778d
+204079ad
+70459d01
+70458410
+70458101
+20207ac2
+70459602
+2040778d
+204079af
+70459e01
+70458410
+70458102
+20207ac2
+70459603
+2040778d
+70459f01
+70458410
+70458103
+20207ac2
+70459604
+2040778d
+204079b3
+7045a001
+70458410
+70458104
+20207ac2
+70459601
+2040778d
+6fe0c59d
+203a7884
+204079b5
+70459d00
+70458411
+70458101
+20207ac2
+70459602
+2040778d
+6fe0c59e
+203a788b
+204079b7
+70459e00
+70458411
+70458102
+20207ac2
+70459603
+2040778d
+6fe0c59f
+203a7892
+204079b9
+70459f00
+70458411
+70458103
+20207ac2
+70459604
+2040778d
+6fe0c5a0
+203a7898
+204079bb
+7045a000
+70458411
+70458104
+20207ac2
+70458101
+7044ab01
+2020779d
+70458102
+7044ab02
+2020779d
+70458103
+7044ab03
+2020779d
+70458104
+7044ab04
+2020779d
+20407909
+7045846f
+70458700
+20207ac2
+6fe0c5a6
+203a78d5
+7045a600
+202078da
+2040790c
+7045a601
+70458415
+70458701
+20207ac2
+2040790d
+70458415
+70458700
+20207ac2
+20407910
+70458433
+70458702
+20207ac2
+20407914
+58000001
+67e0c587
+70458432
+70458806
+20207ac2
+2040791a
+58000002
+202078e4
+2040791c
+58000003
+202078e4
+2040791e
+58000004
+202078e4
+20407920
+58000005
+202078e4
+20407922
+58000006
+202078e4
+70459601
+2040778d
+20407924
+70458431
+70458700
+20207ac2
+6fe0c6ac
+203a7904
+20407927
+7046ac00
+70458416
+70458700
+20207ac2
+20407926
+7046ac01
+70458416
+70458701
+20207ac2
+5800006f
+67e144ac
+20207935
+7044af01
+58000015
+67e144ac
+20207935
+7044af02
+58000033
+67e144ac
+20207935
+58000001
+67e0c4b0
+58000031
+67e144ac
+7044af20
+20207935
+58000002
+20207915
+58000003
+20207915
+58000004
+20207915
+58000005
+20207915
+58000006
+20207915
+58000000
+20207915
+7044af01
+58000016
+67e144ac
+20207935
+7044af18
+20207932
+7044af24
+20207932
+7044af28
+20207932
+7044af14
+20207932
+58000021
+67e144ac
+20207935
+4742c030
+20407de4
+6fe0c6af
+245a793a
+20600000
+47434030
+df200027
+d8c0447c
+d8a046d7
+2040740c
+6fe0c6af
+67e0c4a3
+6fe0c4a4
+1fe0ffff
+67e0c4a4
+20407de4
+6fe0c770
+67e0c4a3
+20600000
+58000023
+2020794b
+58000028
+67e144ac
+58000000
+67e244ae
+20207935
+58000045
+2020794b
+7044ab00
+58000010
+2020794b
+7044ab00
+58000011
+2020794b
+58000009
+2020794b
+58000021
+67e144ac
+7044ae00
+7044af40
+7044b0ff
+7044b1ff
+20207935
+58000021
+67e144ac
+7044ae00
+7044af40
+7044b0ff
+20207935
+58000021
+67e144ac
+7044ae00
+7044af40
+7044b1ff
+20207935
+58000013
+2020794b
+58000012
+2020794b
+58000021
+67e144ac
+7044ae00
+7044af02
+7044b0ff
+7044b1ff
+20207935
+58000021
+67e144ac
+7044ae00
+7044af01
+7044b07f
+7044b17f
+20207935
+5800001f
+2020794b
+5800001e
+2020794b
+58000022
+67e144ac
+7044afff
+20207935
+58000022
+67e144ac
+7044b0ff
+20207935
+58000022
+67e144ac
+7044b1ff
+20207935
+58000022
+67e144ac
+7044afff
+7044b0ff
+20207935
+58000022
+67e144ac
+7044afff
+7044b1ff
+20207935
+58000022
+67e144ac
+7044b0ff
+7044b1ff
+20207935
+58000022
+67e144ac
+7044afff
+7044b0ff
+7044b1ff
+20207935
+58000001
+7044a601
+67e144af
+58000041
+67e144ac
+7044ae00
+7044b100
+20207935
+58000000
+202079a4
+7044ab01
+20207952
+7044ab02
+20207952
+7044ab03
+20207952
+7044ab04
+20207952
+7044ab01
+20207955
+7044ab02
+20207955
+7044ab03
+20207955
+7044ab04
+20207955
+4743c030
+204076cc
+204076e4
+6fe44556
+245a79f7
+204079ea
+6fe0c706
+245a79dc
+204079ce
+6fe0c35f
+205a79fd
+6fe0c6a8
+245a7a05
+6fe0c6a8
+205a7a0a
+47444031
+20207a10
+4744c031
+6fe0c721
+1fe67c01
+2042f4fe
+6fe44556
+207a0000
+58000000
+67e1c587
+67e244ae
+70458b00
+6fe0c706
+245a79dc
+6fe14762
+20207487
+6fe14764
+20207487
+47454031
+6fe44556
+1fe20400
+df200019
+d8e00000
+204079f2
+18e27e00
+67e0c5a1
+58000000
+67e44556
+4745c031
+20207bca
+6fe0c572
+247a0000
+70458200
+70472400
+58000000
+67e14594
+67e144e4
+20600000
+afefffff
+20608000
+18e08e01
+c20079f2
+20600000
+70457201
+7046a801
+58000001
+67e146a9
+70457901
+20600000
+47464031
+6fe0c572
+247a0000
+58000000
+67e146a9
+7046a800
+4746c031
+20600000
+47474031
+6fe0c580
+207a0000
+6848c580
+2020773e
+4747c031
+6fe0c580
+207a0000
+6848c580
+18418480
+2020773e
+6fe146a6
+247a0000
+6fe146a9
+247a0000
+47484032
+20407a1a
+20407a2a
+4748c032
+d85fffff
+20203b47
+47494032
+df20000b
+70473c03
+6848c73c
+18420e00
+6fe24738
+afefffff
+2020fa24
+18418480
+20406b7c
+6fe0c73c
+1fe0fe01
+67e0c73c
+c2007a1d
+70807d40
+20600000
+4749c032
+6848c55e
+18422200
+da400000
+d8400000
+604c0016
+d8c04560
+20407a35
+7920040d
+604a0016
+20600000
+efe08006
+98000e00
+f9200400
+1a40a401
+1a227e00
+9a467c00
+20628000
+20207a35
+474a4032
+6fe0c721
+c0017a84
+6fe0c4a3
+243a7a65
+6fe0c721
+c000fa6b
+6fe0c57f
+243a7a6b
+6fe0c6ae
+243a7a73
+6fe0c6af
+243a7a79
+58000000
+67e24701
+20600000
+474ac032
+df200027
+d8a0412b
+d8c0464f
+2040740c
+202042b6
+474b4032
+df200027
+d8a0412b
+d8c0447c
+2040740c
+202042b6
+474bc032
+df200027
+d8a0412b
+d8c046b0
+2040740c
+202042b6
+474c4033
+df200027
+d8a0412b
+d8c046d7
+2040740c
+202042b6
+474cc033
+6fe0c701
+c001fa42
+1fe0fe01
+67e0c701
+20207a53
+474d4033
+6fe0c702
+c001fa46
+1fe0fe01
+67e0c702
+6fe0c721
+c000fa7f
+20207a4d
+474dc033
+6fe0c703
+c001fa48
+1fe0fe01
+67e0c703
+20207a59
+474e4033
+6fe0c704
+c001fa4a
+1fe0fe01
+67e0c704
+20207a5f
+df200017
+d8a0412b
+d8c0464f
+2040740c
+202042b6
+6fe0c555
+1fe0fe01
+67e0c555
+1fe67c03
+20217a53
+1fe67c06
+20217a90
+1fe67c09
+20217a95
+58000000
+67e0c555
+20207a53
+df200025
+d8a0412b
+d8c04530
+2040740c
+202042b6
+df200025
+d8a0412b
+d8c0464f
+2040740c
+202042b6
+474ec033
+6fe0c71f
+205a7aa4
+2feffe00
+2020faa7
+2feffe01
+2020fab0
+2feffe02
+2020fab9
+20600000
+6fe0c71e
+67e0c71f
+20600000
+474f4033
+6fe0c71f
+793ffe00
+67e0c71f
+6848c36a
+79200400
+6048c36a
+70000725
+20204309
+474fc033
+6fe0c71f
+793ffe01
+67e0c71f
+6848c36a
+79200401
+6048c36a
+70000726
+20204309
+47504034
+6fe0c71f
+793ffe02
+67e0c71f
+6848c36a
+79200402
+6048c36a
+70000727
+20204309
+20407ac4
+20207ae8
+4750c034
+20407ad5
+47514034
+6fe0c58a
+1fe0fe01
+67e0c58a
+6fe0c4a6
+1fe67c03
+2042fad1
+6fe0c4a6
+1fe67c05
+2042fad3
+20207ade
+70458983
+20600000
+70458988
+20600000
+4751c034
+70435f01
+7046a901
+7046a801
+6fe1476c
+67e145a2
+1fe0fe01
+67e146a6
+20600000
+47524034
+6fe0c57c
+d84000f0
+98417e00
+6848c581
+9840fe00
+67e0c57c
+6fe1457b
+67e14585
+20600000
+4752c034
+6fe0c57f
+245a7b01
+6fe0c584
+1fe67c28
+2042fafe
+20407b1b
+d8a0463f
+d8c04584
+df20000e
+2040740c
+df200027
+d8c04628
+d8a0464f
+2040740c
+70467a27
+70467b53
+20407b73
+6fe0c57f
+67e0c659
+47534034
+20600000
+6fe0c57f
+67e0c58b
+20600000
+4753c034
+6fe0c584
+1fe67c28
+2042fb18
+20407b1b
+d8a0463f
+d8c04584
+df20000e
+2040740c
+df200027
+d8c04628
+d8a0464f
+2040740c
+70467a27
+70467b53
+20407b73
+df200027
+d8c0464f
+d8a046b0
+2040740c
+6fe0c6ae
+67e0c6ba
+20600000
+6fe0c6ae
+67e0c58b
+20600000
+47544035
+70458c01
+70458d00
+180a7e00
+1fec8400
+6048c58e
+67e0c58f
+1fe47e00
+67e144c6
+6fe0c58f
+6848c58c
+9842fe00
+67e0c58c
+6848c58d
+9842fe00
+67e0c58d
+4754c035
+da604584
+df20000c
+20407b37
+6fe144c6
+da20ff00
+9a210400
+184c8400
+6048c590
+6fe0c4c6
+67e0c591
+20600000
+6fe0c721
+c0017b57
+20207b3a
+47554035
+e8408013
+184d0400
+6fe144c6
+98428400
+d8e00000
+20407b45
+604944c6
+1a60a601
+c2007b3a
+20600000
+18427e00
+1feca200
+1a31a200
+1a292200
+1fe38400
+1a227e00
+245a7b50
+18e08e01
+18e27e00
+c0847b45
+20600000
+6fe144c8
+1fe22200
+18427e00
+9a22fe00
+da20ffff
+9a210400
+20600000
+4755c035
+6fe144c6
+e8408013
+1a60a601
+184d8400
+184d0400
+9842fe00
+1f222400
+df200008
+2feffe0f
+1fe3fe00
+2420fb65
+684944c8
+9842fe00
+c2007b60
+1a427200
+c2007b59
+67e144c6
+6848c4c6
+184d8400
+6fe0c4c7
+1fedfe00
+6048c4c7
+67e0c4c6
+20600000
+47564035
+20407b7b
+20207b76
+4756c035
+20407b76
+20207b7b
+47574035
+d8c0464f
+d8a0464f
+df200027
+20207b83
+4757c035
+df200027
+da60464f
+da400053
+6fe0c721
+1fe67c02
+2042f607
+20207b89
+47584036
+efe08006
+1fedfe00
+e7e08005
+c2007b83
+20600000
+4758c036
+20407b8e
+1a60a601
+c2007b89
+20600000
+47594036
+da200001
+1a43a400
+2a4ffe07
+2040fb97
+1a23a200
+1a227e00
+c3840000
+20207b90
+4759c036
+efe08013
+9a22fe00
+e7e08013
+1a42a411
+20600000
+6fe0c721
+1fe67c01
+2042fbcd
+20407bc3
+20407ba9
+20407bad
+20407bc0
+20407bb2
+20407bb7
+20407bbb
+475a4036
+20600000
+da604579
+da407bac
+20204dd3
+20600000
+da6045a2
+da407bb0
+20204dd3
+70435f00
+20600000
+da6046a9
+da407bb5
+20204dd3
+7046a800
+20600000
+da6046a6
+da407bba
+20204dd3
+20600000
+da604722
+da407bbe
+20204dd3
+70472401
+20600000
+da604594
+da407bc6
+20204dd3
+da604709
+da407bc8
+20204dd3
+6fe14766
+20207487
+6fe14768
+20207487
+6fe1476a
+67e14709
+20600000
+da6044e4
+da407bd0
+20204dd3
+6fe14594
+207a0000
+7044e801
+20600000
+4731c02c
+20207bd7
+20600000
+4732402c
+20403cf9
+7854fc00
+20404296
+20407be1
+24768000
+6fe08002
+1fe0fe01
+67e08002
+20207c5d
+20407be3
+20203d92
+6fe0c779
+67e08007
+20600000
+58000003
+20207d54
+58000008
+20207d54
+6fe34788
+684b4782
+98467c00
+20600000
+6fe0c773
+203a7bf6
+6fe0c778
+c000fbf6
+6fe0c777
+c0287bf6
+20407bea
+2022fbe8
+58000014
+20207d54
+6fe0c773
+203a7c00
+6fe0c778
+c000fc00
+6fe0c777
+c0287c00
+20407bea
+2022fbe8
+58000018
+20207d54
+58000006
+20207d54
+6fe0c7a9
+c1a00000
+58000005
+20207d54
+6fe147a9
+243a7c0c
+5800001b
+20207d54
+58000017
+20207d54
+6fe0c7aa
+c0007c20
+c000fc22
+c0017c26
+c001fc2a
+20600000
+6fe0c7a9
+c0107c17
+20207c0e
+6fe0c7aa
+c0007c20
+c000fc22
+c0017c24
+c001fc26
+c0027c28
+c002fc2a
+c0037c2c
+20600000
+58000016
+20207d54
+58000010
+20207d54
+58000012
+20207d54
+5800001c
+20207d54
+5800000a
+20207d54
+5800000f
+20207d54
+5800000c
+20207d54
+6fe0c7a9
+203a7c32
+58000011
+20207d54
+58000004
+20207d54
+58000007
+20207d54
+58000013
+20207d54
+6fe0c7a9
+203a7c3c
+5800000d
+20207d54
+5800000e
+20207d54
+4732c02c
+6fe0c7a9
+c000fc43
+c0017c45
+20600000
+5800001e
+20207d54
+58000015
+20207d54
+6fe147a9
+c07ffc56
+4733402c
+6fe147a9
+c0707c56
+c01e7c50
+c03c7c52
+c0787c54
+20600000
+58000002
+20207d54
+58000009
+20207d54
+58000019
+20207d54
+5800001a
+20207d54
+58007bd4
+67e14394
+58007d43
+67e1439c
+20207d59
+6fe0c771
+c0007c63
+6fe1477a
+20407487
+20347cb5
+20600000
+4733c02c
+6fe08052
+c02afc97
+70477700
+58000000
+67e34788
+68498053
+58528718
+98467c00
+70477800
+2022fc79
+70477801
+5808f9ff
+98467c00
+2022fc79
+5808f903
+98467c00
+2022fc79
+70477802
+58f87703
+98467c00
+24628000
+d8c00047
+d8a0464f
+df200027
+20407419
+70467b53
+70467a27
+20407b70
+6fe0c778
+c000fc95
+d8c04666
+d8a0473e
+df20000e
+2040740c
+6fe14748
+1ff0fe00
+1fe47e00
+67e144c6
+da60473e
+df20000c
+58001021
+67e144c8
+20407b3a
+6fe144c6
+1ff0fe00
+6849474a
+98467c00
+24628000
+20207ca8
+d8c04667
+20207c83
+4734402d
+d8a04788
+d8c00049
+df200006
+2040740c
+6fe08051
+67e0c777
+6848c774
+98467c00
+2022fc69
+6848c775
+98467c00
+2022fc69
+6848c776
+98467c00
+2022fc69
+20600000
+4734c02d
+6fe0c73e
+67e147a6
+6fe14741
+67e147a9
+6fe0c73f
+67e0c7ad
+6fe0c740
+67e0c7ac
+6fe0c740
+1fe17e0f
+67e0c7ae
+20207cc3
+4735402d
+6fe144b6
+1ff27e00
+67e147ac
+6fe344bb
+67e347a6
+6fe0c4ba
+67e0c7ae
+6fe0c4c5
+67e0c778
+6fe0c4b2
+67e0c777
+6fe0c4b3
+67e0c744
+4735c02d
+6fe147a4
+20407487
+20407cec
+20740000
+6fe147a6
+c0147be6
+c004fbe8
+c0087bee
+c008fbf8
+c037fc02
+c0187c08
+c00afc2e
+c00bfc34
+c00b7c38
+c00c7c36
+c019fc3e
+6fe0c771
+c0007cd8
+c000fce6
+20600000
+6fe147a6
+c028fc47
+c020fc47
+6fe14741
+67e147aa
+6fe147a6
+c018fc0e
+c0197c17
+6fe0c745
+67e0c7a9
+6fe147a6
+c010fc04
+4736402d
+20600000
+6fe147a6
+c018fc14
+c020fc49
+c010fc04
+4736c02d
+20600000
+4737402d
+204074ca
+684947ac
+d8e00009
+df20000a
+1f26260a
+18e27e00
+9a667c00
+20217cf8
+1a667c03
+24217cf8
+20207d03
+d8c0055e
+1a6ffe03
+98c08c00
+efe10006
+98467c00
+2422fd03
+ea208006
+6fe0c7ae
+203a7d13
+9a267c00
+2022fd13
+c2007cf1
+da200576
+df200009
+efe18011
+1a208403
+e7e18002
+1a20a3fd
+c2007d06
+6fe1c7ac
+67e1855e
+6fe08584
+67e08585
+6fe4057c
+67e4057d
+70057c00
+20207cec
+1f220400
+60488587
+d840057c
+1f267e0a
+98408400
+18422200
+e8408002
+6fe0c744
+98467c00
+2022f4c8
+20217d24
+1fe0ff00
+98467e00
+1fe17eff
+1fe67c06
+20217d24
+20600000
+6fe0c744
+67e085a6
+6fe1006a
+67e105a7
+684985a6
+d8c00588
+df20000a
+efe18006
+98467c00
+2022f4c8
+c2007d2b
+7005aa1e
+6fe185a0
+67e185a3
+6fe40590
+684c0598
+67e40593
+604c059b
+6fe40588
+67e4058b
+6fe185a6
+67e18588
+6fe08587
+1fe27200
+d840057c
+1f267e0a
+98408400
+6fe0c744
+e7e08002
+7005a91e
+20600000
+4737c02d
+20207d45
+20407d47
+20207d4d
+da6005aa
+da407d4a
+20204dcc
+df20001e
+d8a00588
+202073ec
+da6005a9
+da407d50
+20204dcc
+70478100
+df20000a
+d8a0057c
+202073ec
+67e0c790
+6fe147a2
+20207487
+6848c79f
+2020773e
+6848c79f
+18418480
+2020773e
+4738402e
+20407dbf
+20407d60
+20207dce
+dfe00004
+1fe9fe00
+67e1478e
+1fe20e00
+18e08fff
+684a4792
+6fe1478e
+207a0000
+1fe0ffff
+67e1478e
+a84fffff
+2020fd72
+20407dc8
+18e08fff
+6fe1478e
+684a4792
+243a7d66
+20600000
+20407dc2
+20207d6d
+6fe1479c
+207a0000
+1fe0ffff
+67e1479c
+20407d5c
+20207d74
+20407d9b
+58000003
+67e1479c
+20207d74
+6fe0c777
+6848c776
+98467c00
+2022fd87
+6fe0c778
+c0007d85
+20207d87
+58000000
+20207d88
+58000080
+6848c7ae
+1841227f
+9a21fe00
+1ff18400
+6048c7b1
+1fe17e0f
+1ff27e00
+6848c7ad
+184122f0
+1a31a200
+9a21fe00
+67e0c7b0
+18417e0f
+1ff27e00
+6848c7ac
+18518400
+9841fe00
+67e0c7af
+20600000
+6fe1c7af
+1ff27e00
+1fed7e00
+6848c790
+18498400
+18520400
+9841a200
+20407db7
+1ff27e00
+9a21a200
+20407da9
+9a21fe00
+67e24792
+20600000
+df200004
+1a222400
+de000000
+1a4126ff
+1a617ef0
+1ff1fe00
+9e02e000
+1a617e0f
+9e02e000
+1a4ca400
+c2007dac
+1e02e00a
+1e017e0f
+20600000
+6fe0c791
+1fe0fe01
+1fe17e07
+67e0c791
+20600000
+2000000c
+c2007dbc
+20600000
+20407d59
+df201900
+20207dbc
+20407d57
+df200257
+20407dbc
+20407d59
+df2000c8
+20207dbc
+20407d57
+df2000c8
+20407dbc
+20407d59
+df200257
+20207dbc
+20407d57
+df2000c8
+20407dbc
+20407d59
+df20022f
+20207dbc
+6fe1479a
+207a0000
+1fe0ffff
+67e1479a
+20407dc2
+20207dd4
+6fe1479a
+207a0000
+1fe0ffff
+67e1479a
+20407dc8
+20207dda
+20406eb3
+d8a0443c
+d8c097b5
+202073c4
+58002542
+67e1447c
+5810255d
+67e1c47e
+58109e3a
+67e1c481
+58000000
+67e1c49c
+58020102
+67e1c484
+58f0161b
+67e1c487
+58001008
+67e1c48a
+6fe0c4a4
+1fe0fe01
+67e0c4a4
+6fe144ca
+20207487
+5800ffff
+20600000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00020001
+18000228
+03020002
+030a0128
+2a000200
+00000014
+00000000
+00000000
+00000000
+00000000
+02000400
+02012803
+01020005
+03c2022a
+03020006
+07020128
+2a040200
+06000608
+2c006400
+02000801
+01022800
+02000918
+20012803
+0502000a
+000b002a
+02290202
+000c0000
+02280002
+000d180a
+01280302
+02000e02
+59062a29
+69684369
+02000f70
+02012803
+50020010
+3502072a
+01aa2212
+02001100
+12022800
+02001218
+06012803
+4e020013
+1401012a
+28030200
+00151201
+082a4d02
+00000000
+00000000
+02020016
+00000229
+08020017
+01020229
+03020018
+191a0128
+2a4d0200
+00000007
+00000000
+0202001a
+00000229
+0802001b
+01010229
+0302001c
+1d120128
+2a4d0200
+1e000002
+29020200
+1f000002
+29080200
+20010302
+28030200
+00211201
+022a4d02
+00220000
+02290202
+00230000
+02290802
+00240104
+01280302
+0200250e
+00022a4d
+02002600
+02022908
+02002702
+02012803
+4b020028
+0105bd2a
+01a10209
+01090185
+090500a1
+08290119
+01250015
+08950175
+01050281
+31093009
+26f80116
+107507ff
+06810295
+81153809
+08757f25
+06810195
+380a0c05
+81019502
+05c0c006
+a1060901
+75028501
+05089501
+29e01907
+250015e7
+95028101
+81087501
+75059503
+19080501
+91052901
+75019502
+95039103
+15087506
+00ff2600
+00190705
+0081ff29
+090c05c0
+8501a101
+2a001903
+001503ff
+9503ff26
+81107501
+0105c000
+01A18009
+00150485
+01750125
+81190395
+02818329
+05750195
+29C00381
+28030200
+002a1a01
+082a3302
+00000000
+00000000
+0202002b
+00010229
+0302002c
+2d020128
+2a4a0200
+00010104
+02002e03
+0f022800
+02002f18
+12012803
+19020030
+3164012a
+29020200
+32000002
+28030200
+00330401
+002a4c02
+061a0000
+8809ffbc
+048501a1
+ff2a0019
+26001500
+087500ff
+00810195
+01053fc0
+01a10609
+08950175
+e0190705
+0015e729
+02810125
+08750195
+05950381
+08050175
+05290119
+01950291
+03910375
+08750695
+ff250015
+00190705
+0081ff29
+0105a3c0
+01a10209
+01090185
+090500a1
+05290119
+01250015
+01750595
+01950281
+01810375
+30090105
+01163109
+07FF26F8
+02951075
+38090681
+7f258115
+01950875
+0c050681
+9502380a
+c0068101
+090105c0
+8501a180
+19010502
+15882981
+95012500
+81017508
+0c05c006
+01a10109
+00150385
+19038026
+03802a00
+01951075
+06c00081
+0e09ff00
+BA8501a1
+08751f95
+1500ff26
+91010900
+95BA8502
+2608751f
+001500ff
+02810109
+011212C0
+00000200
+31514000
+00021020
+01000201
+3b02093b
+00010200
+040932a0
+03010000
+09000101
+00020021
+001a2201
+03810507
+09020040
+01000104
+00020103
+02002109
+a3220100
+82050700
+02004003
+00020001
+18010228
+03020002
+03200128
+2a050200
+00040001
+02290202
+00050000
+02280002
+00061800
+01280302
+02000702
+43132a00
+73706968
+422d6165
+2020454c
+20202020
+00082020
+01280302
+02000902
+c1022a01
+02000a03
+02012803
+0402000b
+0006082a
+00640006
+000c012c
+02280002
+000d180a
+01280302
+02000e02
+01072a50
+0a000e05
+000f4002
+02280002
+00101812
+01280302
+02001106
+01012a4e
+03020012
+13100128
+2a4d0200
+00000007
+00000000
+02020014
+00000229
+08020015
+01010229
+03020016
+17100128
+2a4d0200
+00000003
+02020018
+00000229
+08020019
+01040229
+0302001a
+1b100128
+2a4d0200
+1c000002
+29020200
+1d000002
+29080200
+1e010302
+28030200
+001f1001
+032a4d02
+20000000
+29020200
+21000002
+29080200
+22010502
+28030200
+00231201
+022a4d02
+00240000
+02290202
+00250000
+02290802
+00260102
+01280302
+02002702
+00012a4b
+03020028
+29020128
+2a4a0200
+00011104
+02002a01
+04012803
+4c02002b
+2c00012a
+28000200
+00180f02
+001f0300
+00000fec
+03000000
+0014001f
+00000000
+001f0300
+00fec000
+03000000
+4000001f
+00000001
+001f0300
+00000000
+03000000
+0000001f
+00000000
+001b0200
+000000e9
+02000000
+00ea001b
+00000000
+001b0200
+00000000
+03000000
+8028001f
+00000011
+001f0300
+00118fae
+03000000
+e000001f
+000000fc
+001f0300
+00050000
+03000000
+00010017
+00000000
+001f0300
+0000003c
+03000000
+17ff001f
+00000080
+001f0300
+00000fd8
+03000000
+00000017
+00000000
+001f0300
+007ff801
+03000000
+4000001f
+000000fc
+001f0300
+00801801
+03000000
+403c001f
+0000000b
+001f0300
+0003c000
+03000000
+403c001f
+000000ec
+001f0300
+000c803c
+03000000
+1000001f
+00000080
+001f0300
+0007803c
+03000000
+0096001f
+00000000
+001f0300
+00000f6a
+03000000
+d002001f
+000000ff
+001f0300
+00003002
+03000000
+0064001f
+00000000
+001f0300
+00f9b000
+07000000
+06070013
+0dac0770
+00130701
+07700607
+07010c80
+06070013
+0b540770
+00130701
+07700607
+07010a28
+06070013
+08fc0770
+00130701
+07700600
+07000578
+07070013
+07700770
+00130701
+07700700
+07000770
+05070013
+04700c10
+00130701
+0b480507
+07010470
+05070013
+04700AF0
+00130701
+09C40507
+07010470
+05070013
+0470076C
+00130701
+04400507
+07010470
+05070013
+047002E8
+00130701
+02000500
+07000470
+06000013
+0eac0770
+00130700
+0d100500
+03000470
+fa000017
+00000000
+00170300
+00002800
+03000000
+d2000017
+00000000
+00170300
+00003200
+03000000
+00000017
+000000fa
+00170300
+00050000
+03000000
+00000017
+000000f0
+00170300
+000f0000
+02000000
+00300023
+00000000
+00230200
+00000000
+03000000
+30a0001f
+000000e8
+001f0300
+0007403c
+03000000
+4041001f
+0000000b
+93fdb700
+f73f3626
+e5a534cc
+31d871f1
+23c70415
+059618c3
+8012079a
+b227ebe2
+89a18c75
+42e6bf0d
+2d994168
+bb54b00f
+51c29b16
+6a1a532f
+6e02b583
+a3ab1610
+00000042
+00000000
+0000b842
\ No newline at end of file
Index: program/app.prog
===================================================================
--- /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/program/app.prog	(nonexistent)
+++ /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/program/app.prog	(working copy)
@@ -0,0 +1,325 @@
+app_init:
+	bpatch patch0e_0,mem_patch0e
+	fetch 1,mem_device_option
+	branch app_init,blank				/* wait ram to be initialized */
+	beq dvc_op_dongle,dongle_init
+	beq dvc_op_shutter,shutter_init
+	beq dvc_op_shutter_dy,shutter_dy_init
+//	beq dvc_op_car,car_init
+//	beq dvc_op_remote_car,remote_car_init
+	beq dvc_op_mouse,mouse_init
+	rtn
+
+
+app_param_init:
+	rtn wake
+	call adc_init_data
+	fetch 1,mem_device_option
+	beq dvc_op_shutter,shutter_default_init
+	beq dvc_op_shutter_dy,shutter_default_init
+	beq dvc_op_dongle,dongle_default_init
+	beq dvc_op_mouse,mouse_default_init
+//	beq dvc_op_remote_car,remote_car_default_init
+	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_ble:
+	fetch 2,mem_cb_le_process
+	branch callback_func
+
+app_process_bb_event:
+	bpatch patch0e_1,mem_patch0e
+	//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_BUTTON_LONG_PRESSED,app_evt_button_long_pressed
+	beq BT_EVT_LE_CONNECTED,app_le_event_bb_connected
+	beq BT_EVT_LE_DISCONNECTED,app_le_event_bb_disconn
+	rtn
+
+
+
+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_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_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_evt_timer:
+	store 1,mem_app_evt_timer_count
+app_evt_100ms_loop:
+	bpatch patch0e_2,mem_patch0e
+	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 flash_write_spi_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_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_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_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_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_ble_store_reconn_info:
+	jam BT_CMD_STORE_RECONN_INFO_LE,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_car.prog
===================================================================
--- /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/program/app_car.prog	(nonexistent)
+++ /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/program/app_car.prog	(working copy)
@@ -0,0 +1,972 @@
+ifdef COMPILE_CAR
+
+//car_init:
+//	call enable_authrom
+//	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 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
+//	
+
+//	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_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
+	fetchr loopcnt,1,mem_le_name_len
+	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
+	fetchr loopcnt,1,mem_le_name_len
+	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
+	fetchr loopcnt,1,mem_car_led_num
+	arg mem_car_led_map,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
+	call car_g24_load_commom_addr
+	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
+	rtn
+	
+car_le_before_hibernate:
+	call car_gpio_set_before_hibernate
+	call clear_wake
+car_le_process_lpm_before:
+	branch keyscan_process_lpm_before
+
+car_gpio_set_before_hibernate:
+	 call check_51cmd_led_off
+car_gpio_set_before_lpm_common:
+	arg 20,loopcnt
+	arg core_gpio_conf,contr
+car_setgpio_loop:
+	copy contr,contw
+	ifetch 1,contr
+	beq gpcfg_spid_miso,car_setgpio_pullup
+	beq gpcfg_spid_ncs,car_setgpio_pullup
+	beq gpcfg_spid_sck,car_setgpio_pullup
+	beq gpcfg_spid_mosi,car_setgpio_pullup
+	beq gpcfg_spid_sdio,car_setgpio_pullup
+	beq gpcfg_iic_scl,car_setgpio_pullup
+	beq gpcfg_iic_sda,car_setgpio_pullup
+	beq gpcfg_input,car_setgpio_pullup
+car_setgpio_loop_end:
+	loop car_setgpio_loop
+	branch car_motor_setgpio
+//	rtn
+car_setgpio_pullup:
+	setarg gpcfg_pullup
+	istore 1,contw
+	branch car_setgpio_loop_end
+car_setgpio_pulldown:
+	setarg gpcfg_pulldown
+	istore 1,contw	
+	branch car_setgpio_loop_end
+car_motor_setgpio:	
+	fetch 1,mem_car_motor_gpio_num
+	copy pdata,loopcnt
+	arg mem_car_motor_gpio_map,contr
+car_motor_setgpio_loop:
+	ifetch 1,contr
+	set1 7,pdata
+	arg gpcfg_output_low,temp
+	call gpio_config_function
+	loop car_motor_setgpio_loop
+	rtn
+	 
+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
+	branch 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_calculate
+	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 patch05_3,mem_patch05
+	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 patch05_4,mem_patch05
+	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
+	rtn blank
+	branch car_moto3_enable_blank_data_timer,blank
+
+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 patch05_5,mem_patch05
+	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 patch05_6,mem_patch05
+	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
+	call g24_rx_window_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_bind_work
+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 car_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 car_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_work_mode_start:
+	fetch 1,mem_24g_work_mode
+	rtnne DONGLE_WORK
+	call car_g24_work_init
+	call g24_ch_process
+	branch car_g24_receive_packet_start
+car_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
+	fetch 4,mem_car_24g_commom_addr
+	branch g24_work_init+11
+car_g24_receive_packet_start:	
+	call g24_receive_transmit_ack
+	nbranch g24_rx_interrupt_clear,user3
+p_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_ATTEMP,car_g24_data_attemp	//reconn packet
+	beq DATATYPE_DEVICE1,car_g24_data_device1	//mouse
+	branch g24_receive_packet_parse+14
+car_g24_data_attemp:
+	call check_51cmd_led_on
+	branch g24_data_attemp	
+car_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,car_g24_data_attemp_device1_abort
+	branch g24_data_device1+7
+car_g24_data_attemp_device1_abort:
+	fetch 1,mem_device_option
+	sub pdata,dvc_op_car,null
+	call check_51cmd_led_on,zero
+	fetch 4,mem_24g_rxdata_temp+10
+	branch g24_store_device1_addr
+	
+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 check_51cmd_led_on
+	call g24_switch_work_mode
+	call g24_timer_init
+
+        fetch 4,mem_24g_lap
+        store 4,mem_car_24g_commom_addr
+        fetch 1,mem_car_save_addr_flag
+        ncall car_g24_save_commom_addr,blank
+		
+	fetch 4,mem_car_24g_commom_addr
+	branch g24_update_addr_and_synccrc8
+
+car_g24_save_commom_addr:
+
+        fetch 1,mem_car_save_addr_flag
+        rtn blank
+	fetch 1,mem_24g_transmitter_addr+1	//Tx lap H
+	store 1,mem_car_24g_commom_addr+3
+
+	fetch 1,mem_24g_lap+1				//Rx lap H
+	store 1,mem_car_24g_commom_addr+2
+
+	fetch 1,mem_24g_transmitter_addr	//Tx lap L
+	store 1,mem_car_24g_commom_addr+1
+
+	fetch 1,mem_24g_lap					//Rx lap L
+	store 1,mem_car_24g_commom_addr
+ifdef CAR_TEST_FUNCTION
+        rtn
+endif // CAR_TEST_FUNCTION  	
+	call car_g24_search_commom_addr
+	fetch 4,mem_car_24g_commom_addr
+	fetcht 4,mem_car_24g_commom_addr_temp 
+	isub temp,null
+	rtn zero        
+        copy regc,pdata
+        arg mem_car_24g_commom_addr,rega
+        arg 4,loopcnt        
+        call otp_write
+        rtn
+car_g24_load_commom_addr:
+
+        fetch 4,mem_24g_lap
+        store 4,mem_car_24g_commom_addr
+        fetch 1,mem_car_save_addr_flag
+        rtn blank
+ifdef CAR_TEST_FUNCTION
+        rtn
+endif // CAR_TEST_FUNCTION         
+        call car_g24_search_commom_addr
+        fetch 4,mem_car_24g_commom_addr_temp
+        rtn blank
+        store 4,mem_car_24g_commom_addr
+        rtn
+
+/* regc=otp start address and output */        
+car_g24_search_commom_addr:
+ifdef CAR_TEST_FUNCTION
+        rtn
+endif // CAR_TEST_FUNCTION 
+        fetch 1,mem_car_save_addr_flag
+        rtn blank
+        arg OTP_OFFSET_CAR_COMMOM_START_ADDR,regc
+car_g24_search_commom_addr_loop:
+        copy regc,pdata
+        arg mem_car_24g_commom_addr_temp,rega
+        arg 4,temp
+        call otpd_read_data_with_pwr_operation
+        fetch 4,mem_car_24g_commom_addr_read
+        rtn blank    
+        store 4,mem_car_24g_commom_addr_temp
+        copy regc,pdata
+        arg OTP_OFFSET_CAR_COMMOM_END_ADDR,temp
+        isub temp,null
+        rtn positive        
+        increase 4,regc
+        branch car_g24_search_commom_addr_loop
+        
+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
===================================================================
--- /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/program/app_dongle.prog	(nonexistent)
+++ /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/program/app_dongle.prog	(working copy)
@@ -0,0 +1,548 @@
+ifdef COMPILE_DONGLE
+
+dongle_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_default_init:
+	bpatch patch05_7,mem_patch05
+	//sys init
+	call dongle_read_kb_bind_status
+//	call dongle_xtal_select
+//	fetch 1,mem_dg_sys_config
+//	isolate1 DG_ENABLE_EEPROM,pdata
+//	branch dongle_default_no_eeprom,true
+//	fetch 1,mem_dg_sys_config
+//	isolate1 DG_ENABLE_NEW_CHMAP,pdata
+//	call g24_chamap_param_update,true
+//dongle_default_no_eeprom:
+//	fetch 1,mem_dg_24g_tx_power_default
+//	store 1,mem_tx_power
+	//24g init
+//	jam 0xff,mem_rssi_buff_index
+//	setarg mem_dg_rssi_noise_buffer
+//	store 2,mem_rssi_noise_buffer_ptr
+//	setarg mem_dg_rssi_noise_dg_buffer
+//	store 2,mem_rssi_noise_self_buffer_ptr
+//	setarg mem_dg_rssi_noise_ms_buffer
+//	store 2,mem_rssi_noise_device1_buffer_ptr
+//	setarg mem_dg_rssi_noise_kb_buffer
+//	store 2,mem_rssi_noise_device2_buffer_ptr
+//	jam TX_POWER_F5DB,mem_24g_pair_tx_power
+	jam 0,mem_dg_kb_bind_success
+	jam 0,mem_24g_bind_device_living
+//	call g24_enable_1M
+//	fetch 1,mem_dg_sys_config
+//	isolate1 DG_ENABLE_24G_2M,pdata
+//	call g24_enable_2M,true
+	call g24_receive_init
+	call g24_pair_param_init
+	call g24_chmap_param_init
+	//usb init
+//	fetch 1,mem_dg_usb_tx_interval
+//	store 1,mem_usb_tx_interval
+//	fetch 9,mem_dg_usb_vid_pid
+//	store 9,mem_usb_vid_pid
+	//watchdog init
+	call wdt_set_enable
+	branch wdt_kick_128ms
+
+
+//dongle_xtal_select:
+//	jam XTAL_24M,mem_fcomp_div
+//	fetch 1,mem_dg_sys_config
+//	rtnbit0 DG_ENABLE_XTAL_24M
+//	jam XTAL_16M,mem_fcomp_div
+//	rtn
+
+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:
+	bpatch patch06_0,mem_patch06
+	setarg DONGLE_KB_BIND_EFUSE_OFFECT
+	arg mem_dg_kb_bind_flag,rega
+	arg 1,temp
+	branch otpd_read_data_with_pwr_operation
+
+dongle_write_kb_bind_status:
+	bpatch patch06_1,mem_patch06
+	arg 1,loopcnt
+	arg mem_dg_kb_bind_flag,rega
+	arg DONGLE_KB_BIND_EFUSE_OFFECT,pdata
+	branch otp_write
+
+dongle_usb_config:
+	fetch 1,mem_dg_sys_config
+	bbit1 DG_ENABLE_KB_ICON,dongle_usb_config_kb
+	fetch 1,mem_dg_kb_bind_flag
+	bne DONGLE_KB_BIND_SUCCESS,dongle_usb_config_param
+dongle_usb_config_kb:
+	jam DONGLE_KB_BIND_SUCCESS,mem_dg_kb_bind_flag
+	fetch 4,USB_DEVICEDATA_ADDR+9
+	set1 29,pdata
+	store 4,mem_devicedesc+9
+dongle_usb_config_param:
+	fetch 1,mem_dg_usb_device_iserial_number
+	store 1,mem_devicedesc+17
+	call dongle_usb_device_name
+	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_usb_device_name:
+	fetch 1,mem_dg_usb_device_name
+	rtn blank
+	arg mem_dg_usb_device_name,contr
+	arg mem_string2,contw
+	arg 30,loopcnt
+	branch memcpy
+
+
+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:
+	bpatch patch06_2,mem_patch06
+	fetch 1,mem_dg_ms_blank_data_enable
+	rtn blank
+	arg G24_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:
+	bpatch patch06_3,mem_patch06
+	fetch 1,mem_dg_kb_blank_data_enable
+	rtn blank
+	arg G24_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
+	fetch 8,mem_usb_kb_data
+	store 8,mem_dg_kb_data_last_data
+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:
+	bpatch patch06_4,mem_patch06
+	fetch 1,mem_dg_kb_mul_blank_data_enable
+	rtn blank
+	arg G24_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
+	fetch 3,mem_usb_kb_multikey
+	store 3,mem_dg_kb_multikey_last_data	
+dongle_usb_tx_multikey_data:
+	jam USB_EP2_MULTIKEY,mem_usb_ep2_data
+	branch dongle_usb_tx_enable_ep2
+
+dongle_usb_dispatch:
+	bpatch patch06_5,mem_patch06
+	call wdt_kick_128ms
+	fetch 1,mem_usb_remote_wakeup
+	call dongle_clear_pc_sleep_flag,blank
+	call usb_isr
+	fetch 1,mem_usb_ep3_out_data_flag
+	nbranch dongle_usb_rx_ep3,blank
+	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
+dongle_usb0_data_ready_report_set0:
+	jam 0,mem_usb0_data_ready_report
+	rtn
+
+dongle_usb_rx_ep3:
+	jam 0,mem_usb_ep3_out_data_flag
+	fetch 1,mem_usb_ep3_out_data_len
+	rtn blank
+	fetch 2,mem_cb_usb_ep3_process
+	branch callback_func
+
+
+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_auto_bind:
+	call g24_mode_switch_init
+dongle_auto_bind_loop:
+	call g24_mode_switch_bind_work
+	call g24_mode_switch_bind_search
+	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 patch06_6,mem_patch06
+	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_data_type
+	beq DATATYPE_DEVICE1,dongle_ackpayload_prep_mouse
+	beq DATATYPE_DEVICE2,dongle_ackpayload_prep_keyboard
+dongle_ackpayload_prep_mouse:
+	fetch 1,mem_dg_pc_sleep_flag
+	bbit1 0,dongle_pc_sleep_ackpayload_prep_mouse
+	branch dongle_ackpayload_prep_end
+
+dongle_set_pc_sleep_flag:
+	fetch 1,mem_device_option
+	rtnne dvc_op_dongle
+	jam 3,mem_dg_pc_sleep_flag
+	rtn
+dongle_clear_pc_sleep_flag:
+	jam 0,mem_dg_pc_sleep_flag
+	rtn
+
+dongle_ackpayload_prep_keyboard:
+	fetch 1,mem_dg_pc_sleep_flag
+	bbit1 1,dongle_pc_sleep_ackpayload_prep_keyboard
+dongle_ackpayload_prep_end:
+	fetch 1,mem_24g_ackpayload_enable
+	beq BIND_ACKPAYLOAD,dongle_g24_bind_ackpayload_prep
+	beq KB_LED_ACKPAYLOAD,dongle_g24_kb_led_ackpayload_prep
+	rtn
+
+dongle_pc_sleep_ackpayload_prep_mouse:
+	fetch 1,mem_dg_pc_sleep_flag
+	set0 0,pdata
+	store 1,mem_dg_pc_sleep_flag
+	branch dongle_pc_sleep_ackpayload_prep
+
+dongle_pc_sleep_ackpayload_prep_keyboard:
+	fetch 1,mem_dg_pc_sleep_flag
+	set0 1,pdata
+	store 1,mem_dg_pc_sleep_flag
+dongle_pc_sleep_ackpayload_prep:
+	jam 0x01,mem_24g_datalen
+	setarg 0xff
+	store 1,mem_24g_txbuf
+	rtn
+
+
+dongle_g24_bind_ackpayload_prep:
+	jam 1,mem_24g_ackpayload_enable
+	call g24_binding_device_check	//works on auto pair only
+	nrtn user3
+	branch g24_bind_ackpayload_prep
+
+dongle_g24_kb_led_ackpayload_prep:
+	fetch 1,mem_24g_rxbuf+2
+	beq DATATYPE_DEVICE1,dongle_g24_bind_ackpayload_prep
+	beq DATATYPE_ATTEMP,dongle_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 G24_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 G24_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 G24_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 G24_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 G24_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 G24_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 G24_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 G24_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
+
+
+dongle_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
+dongle_prep_soft_reset:
+	jam 1,mem_dg_kb_bind_success
+	rtn
+
+
+dongle_kb_bind_soft_reset:
+	fetch 1,mem_device_option
+	rtnne dvc_op_dongle
+	fetch 1,mem_dg_kb_bind_success
+	rtn blank
+	jam 0,mem_temp
+dongle_wirte_efuse_bind_status:	
+	jam DONGLE_KB_BIND_SUCCESS,mem_dg_kb_bind_flag
+	call dongle_write_kb_bind_status
+	call dongle_read_kb_bind_status
+	fetch 1,mem_temp
+	increase 1,pdata
+	store 1,mem_temp
+	beq 0xff,soft_reset_chip
+	fetch 1,mem_dg_kb_bind_flag
+	bne DONGLE_KB_BIND_SUCCESS,dongle_wirte_efuse_bind_status
+	branch soft_reset_chip
+
+
+endif
+
+
Index: program/app_light/common/frmt_fml_ble.prog
===================================================================
--- /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/program/app_light/common/frmt_fml_ble.prog	(nonexistent)
+++ /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/program/app_light/common/frmt_fml_ble.prog	(working copy)
@@ -0,0 +1,34 @@
+
+frmt_ble_para_init:
+	call enable_authrom
+	arg mem_ble_v2_xbox,contw
+	arg FRMT_XBOX_ADDR,contr
+	branch memcpy64
+	
+frmt_ble_data_set:
+	setarg 0x2542
+	store 2,mem_ble_v2_pdu
+	setarg 0x10255d
+	store 3, mem_ble_v2_pdu+2
+	setarg 0x109e3a
+	store 3, mem_ble_v2_pdu+5
+	setarg 0x00
+	store 3,mem_ble_v2_pdu+32
+	setarg 0x020102
+	store 3,mem_ble_v2_pdu+8
+	setarg 0xF0161B
+	store 3,mem_ble_v2_pdu+11
+	setarg 0x001008
+	store 3,mem_ble_v2_pdu+14
+
+	fetch 1,mem_ble_v2_packet_num
+	pincrease 1
+	store 1,mem_ble_v2_packet_num
+	
+	fetch 2,mem_ble_pack_cb
+	branch callback_func
+	
+frtm_ble_setdefault:
+	setarg 0xffff
+	rtn
+	
Index: program/app_light/fan/fdflp_fml_fan.prog
===================================================================
--- /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/program/app_light/fan/fdflp_fml_fan.prog	(nonexistent)
+++ /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/program/app_light/fan/fdflp_fml_fan.prog	(working copy)
@@ -0,0 +1,33 @@
+
+
+
+fan_idle_process:
+	bpatchx patch2c_3,mem_patch2c
+	branch fan_le_scan_process
+
+fan_apl_event_timer:
+	rtn
+
+	
+fan_le_scan_process:
+	bpatchx patch2c_4,mem_patch2c
+	call le_enable
+	disable master
+	call le_init_adv
+ 	call p_le_wait_adv
+	nrtn match
+	fetch 1,mem_le_adv_rcv
+	increase 1,pdata
+	store 1,mem_le_adv_rcv
+	branch fan_apl_ble_rx_v1_or_v2
+
+p_le_wait_adv:
+	call p_le_next_scan_chanel
+	branch le_receive_adv
+
+p_le_next_scan_chanel:
+	fetch 1,mem_ble_ch_mapped
+	store 1, mem_le_ch_mapped 
+	rtn
+
+
Index: program/app_light/fan/fdflp_fml_fan_ctl.prog
===================================================================
--- /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/program/app_light/fan/fdflp_fml_fan_ctl.prog	(nonexistent)
+++ /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/program/app_light/fan/fdflp_fml_fan_ctl.prog	(working copy)
@@ -0,0 +1,195 @@
+
+
+ifdef FUNC_FAN_MODULE
+fan_apl_pair:
+	setarg FAN_433_PAIRING
+	branch fan_fml_fet_ctl
+
+fan_apl_light_on_and_off:
+	setarg FAN_433_LAMP_ON_AND_OFF
+	branch fan_fml_fet_ctl
+
+fan_apl_is_yc_remoter:
+	fetch 6, mem_recv_addr
+	fetcht 6, mem_yc_fan_ble_addr     //如果是YC的遥控器，就转发0x16
+	isub temp, null
+	rtn
+
+fan_apl_light_on:
+	fetch 1,mem_fan_yc_identify_flag
+	branch fan_apl_light_on_only,blank
+	fetch 1,mem_light_device_flag
+	beq 1,fan_apl_light_on_only
+	fetch 1,mem_manufacture_id_temp
+	beq 0x50,fan_apl_light_on_only
+	
+	call fan_apl_is_yc_remoter
+	branch fan_apl_light_on_and_off, zero
+fan_apl_light_on_only:
+	setarg FAN_433_LAMP_ON_ONLY
+	branch fan_fml_fet_ctl
+
+fan_apl_light_off:
+	fetch 1,mem_fan_yc_identify_flag
+	branch fan_apl_light_off_only,blank
+	fetch 1,mem_light_device_flag
+	beq 1,fan_apl_light_off_only
+	fetch 1,mem_manufacture_id_temp
+	beq 0x50,fan_apl_light_off_only
+	
+	call fan_apl_is_yc_remoter
+	branch fan_apl_light_on_and_off, zero
+fan_apl_light_off_only:
+	setarg FAN_433_LAMP_OFF_ONLY
+	branch fan_fml_fet_ctl
+
+fan_apl_master_off:
+	setarg FAN_433_MASTER_ON_AND_OFF
+	branch fan_fml_fet_ctl
+
+fan_apl_light_color_switch:
+	fetch 1, mem_ble_parameter_para+1
+	rtnne LIGHT_CMD_FTD_COLOR_SWTICH_RESERVED
+	setarg FAN_433_COLOR_SWITCH
+	branch fan_fml_fet_ctl
+
+
+fan_apl_speed_30:
+	fetch 2, mem_ble_parameter_para+1
+	nbranch fan_apl_speed_opcode_30_incse, blank
+fan_apl_speed_opcode_30_decse:
+	setarg FAN_433_FAN_SPEED_DEC
+	branch fan_fml_fet_ctl
+fan_apl_speed_opcode_30_incse:
+	setarg FAN_433_FAN_SPEED_INC
+	branch fan_fml_fet_ctl
+
+
+fan_apl_speed_31_v1:
+	fetch 1, mem_ble_parameter_para+2
+	beq FAN_SPEED_FLAG_OFF, fan_apl_speed_32_to_0_and_deflector_off
+	beq FAN_SPEED_FLAG_LOW, fan_apl_speed_32_to_1
+	beq FAN_SPEED_FLAG_MIDDLE, fan_apl_speed_32_to_3
+	beq FAN_SPEED_FLAG_HIGH, fan_apl_speed_32_to_5
+	rtn
+	
+fan_apl_speed_31_v2:
+	fetch 1, mem_ble_parameter_para+1
+	beq 0x20, fan_apl_speed_32
+	branch fan_apl_speed_31_v1
+
+
+fan_apl_speed_32:
+	fetch 1, mem_ble_parameter_para+2
+	beq FAN_SPEED_FLAG_OFF, fan_apl_speed_32_to_0_and_deflector_off
+	beq 1, fan_apl_speed_32_to_1
+	beq 2, fan_apl_speed_32_to_2
+	beq 3, fan_apl_speed_32_to_3
+	beq 4, fan_apl_speed_32_to_4
+	beq 5, fan_apl_speed_32_to_5
+	beq 6, fan_apl_speed_32_to_6
+	rtn
+
+fan_apl_speed_32_to_0_and_deflector_off:	
+fan_apl_speed_32_to_0:
+	setarg FAN_433_TAP_POSOTION_0
+	branch fan_fml_fet_ctl
+
+fan_apl_speed_32_to_1:
+	setarg FAN_433_TAP_POSOTION_1
+	branch fan_fml_fet_ctl
+
+fan_apl_speed_32_to_2:
+	setarg FAN_433_TAP_POSOTION_2
+	branch fan_fml_fet_ctl
+
+fan_apl_speed_32_to_3:
+	setarg FAN_433_TAP_POSOTION_3
+	branch fan_fml_fet_ctl
+
+fan_apl_speed_32_to_4:
+	setarg FAN_433_TAP_POSOTION_4
+	branch fan_fml_fet_ctl
+
+fan_apl_speed_32_to_5:
+	setarg FAN_433_TAP_POSOTION_5
+	branch fan_fml_fet_ctl
+
+fan_apl_speed_32_to_6:
+	setarg FAN_433_TAP_POSOTION_6
+	branch fan_fml_fet_ctl
+	
+	
+fan_apl_wind_direction:
+	fetch 1, mem_ble_parameter_para+1
+	branch fan_fml_wind_direction_forward_433, blank
+fan_fml_wind_direction_reverse_433:
+	setarg FAN_433_TURNING_REVERSE
+	branch fan_fml_fet_ctl
+fan_fml_wind_direction_forward_433:
+	setarg FAN_433_TURNIING_FORWARD
+	branch fan_fml_fet_ctl
+
+fan_apl_wind_direction_on_and_off:
+	setarg FAN_433_WIND_REVERSE
+	branch fan_fml_fet_ctl
+
+fan_apl_deflector_ctl_on_and_off:
+	setarg FAN_433_DEFLECTOR_ON_AND_OFF
+	branch fan_fml_fet_ctl
+
+fan_apl_deflector_ctl:
+	fetch 1, mem_ble_parameter_para+1
+	branch fan_apl_deflector_off, blank
+fan_apl_deflector_on:
+	setarg FAN_433_DEFLECTOR_ON
+	branch fan_fml_fet_ctl
+fan_apl_deflector_off:
+	setarg FAN_433_DEFLECTOR_OFF
+	branch fan_fml_fet_ctl
+
+fan_apl_mode:	
+	bpatchx patch2c_5,mem_patch2c
+	fetch 1, mem_ble_parameter_para+1
+
+ 	beq BLE_PARA_SLEEP_MODE, fan_fml_mode_sleep_wind
+	beq BLE_PARA_NATURAL_MODE, fan_apl_mode_natural_wind
+	rtn
+	
+fan_fml_mode_sleep_wind:
+	setarg FAN_433_SLEEP_WIND
+	branch fan_fml_fet_ctl
+
+fan_apl_mode_natural_wind:
+	setarg FAN_433_NATURAL_WIND
+	branch fan_fml_fet_ctl
+
+
+fan_apl_timing_to_off:
+	fetch 2, mem_ble_parameter_para+1
+	beq FAN_BLE_CMD_TIMING_TO_OFF_8HOUR_V1, fan_fml_timing_to_off_8hour
+fan_apl_timing_to_off_v2:
+	bpatchx patch2c_6,mem_patch2c
+	fetch 2, mem_ble_parameter_para+1
+	beq FAN_BLE_CMD_TIMING_TO_OFF_8HOUR, fan_fml_timing_to_off_8hour
+	beq FAN_BLE_CMD_TIMING_TO_OFF_1HOUR, fan_fml_timing_to_off_1hour
+	beq FAN_BLE_CMD_TIMING_TO_OFF_2HOUR, fan_fml_timing_to_off_2hour
+	beq FAN_BLE_CMD_TIMING_TO_OFF_4HOUR, fan_fml_timing_to_off_4hour
+	rtn
+fan_fml_timing_to_off_1hour:
+	setarg FAN_433_TIMING_TO_OFF_1HOUR
+	branch fan_fml_fet_ctl
+fan_fml_timing_to_off_2hour:
+	setarg FAN_433_TIMING_TO_OFF_2HOUR
+	branch fan_fml_fet_ctl
+fan_fml_timing_to_off_4hour:
+	setarg FAN_433_TIMING_TO_OFF_4HOUR
+	branch fan_fml_fet_ctl
+fan_fml_timing_to_off_8hour:
+	setarg FAN_433_TIMING_TO_OFF_8HOUR
+	branch fan_fml_fet_ctl
+	
+endif
+
+
+
Index: program/app_light/fan/fdflp_fml_fan_init.prog
===================================================================
--- /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/program/app_light/fan/fdflp_fml_fan_init.prog	(nonexistent)
+++ /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/program/app_light/fan/fdflp_fml_fan_init.prog	(working copy)
@@ -0,0 +1,11 @@
+
+
+fan_init:
+	setarg fan_idle_process
+	store 2,mem_cb_idle_process	
+	setarg fan_apl_cb_event_timer
+	store 2, mem_cb_event_timer
+	branch fan_fml_tx_low_level_init
+
+
+
Index: program/app_light/fan/fdflp_fml_fan_main.prog
===================================================================
--- /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/program/app_light/fan/fdflp_fml_fan_main.prog	(nonexistent)
+++ /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/program/app_light/fan/fdflp_fml_fan_main.prog	(working copy)
@@ -0,0 +1,327 @@
+
+
+//------------------------------收包------------------------------
+/*选择V1或V2*/
+fan_apl_ble_rx_v1_or_v2:
+ifdef FUNC_FAN_MODULE
+	fetch 1,mem_fan_protocol_select_flag
+	beq 0, fan_apl_ble_rx_packet
+endif
+//	call fan_fml_ble_v2_decoder
+	fetch 2, mem_ble_v2_decoder
+	call callback_func
+//	
+	branch fan_apl_ble_rx_packet_v2_cb,user
+	rtn
+
+ifdef FUNC_FAN_MODULE
+fan_apl_ble_rx_packet:
+	bpatchx patch2c_7,mem_patch2c
+	fetch 1, mem_le_rxbuf+11     //added, at 20200113
+	beq REMOTER_MARKER, fan_apl_ble_rx_packet_is_remoter
+	jam 0 ,mem_manufacture_id_temp
+	
+	setarg 0
+	store 6,mem_recv_addr
+fan_apl_ble_rx_packet_id_valid:
+	fetcht 3, mem_le_rxbuf+12   //adv data begin
+	setarg FTD_REMOTER_ID_CODE
+	isub temp, null
+	jam 0, mem_light_device_flag   //0: remoter;  !0:app
+	branch  fan_apl_ble_rx_packet_preamble_valid, zero
+
+	jam 1, mem_light_device_flag  //0: remoter;  !0:app
+	setarg FTD_ANDRIOD4913_ID_CODE
+	isub temp, null
+	branch  fan_apl_ble_rx_packet_preamble_valid, zero
+	setarg FTD_IOS4913_ID_CODE
+	isub temp, null
+	branch  fan_apl_ble_rx_packet_preamble_valid, zero
+	
+	jam 2, mem_light_device_flag  //0: remoter;  !0:app
+	setarg FTD_B65F_ID_CODE
+	isub temp, null
+	nrtn zero
+fan_apl_ble_rx_packet_preamble_valid:
+	arg mem_le_rxbuf, contr
+	arg mem_light_whitening_buffer, contw
+	arg FTD_PDU_LEN, loopcnt
+	call memcpy
+	
+	jam 83, mem_light_whitening_i     //channel 37
+	jam 39, mem_light_recvd_len
+	call frmt_light_BLE_whitening_and_reverse
+	fetch 1, mem_light_device_flag
+	beq 1, fan_apl_ble_rx_packet_protocol_4913
+	arg mem_light_whitening_buffer+23, contr
+fan_apl_ble_rx_packet_get_protocol:	
+	arg mem_light_adv_packet, contw
+	arg 14, loopcnt
+	call memcpy_fast
+fan_apl_ble_rx_packet_validity_checkout:
+	fetch 2, mem_light_adv_packet+10
+	byteswap pdata, pdata
+	invert pdata, pdata
+	store 2, mem_adv_CRC_False_initValue
+	arg mem_light_adv_packet, regc   
+	arg 0x0c, loopcnt
+	setarg 0x1021
+	store 2,mem_CRC16_polynomial
+	call frmt_CRC16_CCITT_False
+	fetch 2, mem_adv_CRC_False_initValue
+	byteswap pdata, pdata
+	fetcht 2, mem_light_adv_packet_encry+4
+	isub temp, null
+	nrtn zero
+	
+	branch fan_apl_ble_rx_packet_v1_cb
+
+fan_apl_ble_rx_packet_protocol_4913:
+	arg mem_light_whitening_buffer+24, contr
+	branch fan_apl_ble_rx_packet_get_protocol
+
+fan_apl_ble_rx_packet_is_remoter:	
+	bpatchx patch2d_0,mem_patch2d
+	arg mem_recv_addr, contw
+	arg mem_le_rxbuf+2, contr
+	arg 6, loopcnt
+	call memcpy_fast
+	
+	fetch 1, mem_le_rxbuf+10
+	store 1, mem_manufacture_id_temp
+
+	fetcht 1,mem_customer_id
+	isub temp,null
+	branch fan_apl_ble_rx_packet_id_valid,zero
+
+	fetcht 1,mem_customer_id_v2
+	isub temp,null
+	branch fan_apl_ble_rx_packet_id_valid,zero
+
+	fetcht 1,mem_id_universal
+	isub temp,null
+	branch fan_apl_ble_rx_packet_id_valid,zero
+	rtn	
+
+	
+/*callback*/
+fan_apl_ble_rx_packet_v1_cb:
+	bpatchx patch2d_1,mem_patch2d
+	fetch 1, mem_light_adv_packet_cmd
+	store 2, mem_ble_parameter_cmd
+	fetch 2, mem_light_adv_packet_data
+	store 2, mem_ble_parameter_para+1 
+	
+	fetch 1, mem_light_adv_packet_addr
+	store 1,mem_ble_parameter_addr+1
+	fetch 1, mem_light_adv_packet_addr+1
+	store 1,mem_ble_parameter_addr
+
+	fetch 1, mem_light_adv_packet_addr+1
+	and pdata,0x0f,pdata
+	store 1,mem_ble_parameter_group
+	
+	branch fan_apl_ble_rx_packet_cb_common
+endif
+
+fan_apl_ble_rx_packet_v2_cb:
+	bpatchx patch2d_2,mem_patch2d
+	fetch 2,mem_ble_addr
+	lshift4 pdata,pdata
+	store 2,mem_ble_parameter_addr
+	fetch 6,mem_ble_cmd
+	store 6, mem_ble_parameter
+	fetch 1,mem_ble_group
+	store 1,mem_ble_parameter_group
+	fetch 1,mem_ble_is_app
+	store 1,mem_light_device_flag
+	fetch 1,mem_ble_customer_id
+	store 1,mem_manufacture_id_temp
+	fetch 1,mem_ble_count
+	store 1,mem_light_adv_packet_packetnum
+fan_apl_ble_rx_packet_cb_common:
+	bpatchx patch2d_3,mem_patch2d
+	fetch 2, mem_fan_packet_indiscriminate_cb
+	call callback_func
+//	call fan_apl_ble_rx_packet_indiscriminate
+	
+fan_apl_ble_rx_cmd_execution:
+	
+ifdef FUNC_FAN_MODULE
+
+	call fan_apl_ble_cmd_handler_customer_message
+	rtn user
+	
+	fetch 2, mem_ble_parameter_cmd
+
+	beq LIGHT_CMD_PAIRING_CODE, fan_apl_pair
+
+	beq LIGHT_CMD_TURN_ON_AND_OFF, fan_apl_light_on_and_off
+	beq LIGHT_CMD_TURN_ON, fan_apl_light_on
+	beq LIGHT_CMD_TURN_OFF, fan_apl_light_off
+
+	beq FAN_CMD_MASTER_ON_AND_OFF, fan_apl_master_off
+	beq FAN_CMD_SPEED_CHANGE, fan_apl_speed_30
+
+	beq FAN_CMD_DIRECTION, fan_apl_wind_direction
+	beq FAN_CMD_DIRECTION_ON_AND_OFF , fan_apl_wind_direction_on_and_off
+	beq FAN_CMD_DEFLECTOR,fan_apl_deflector_ctl
+	beq FAN_CMD_DEFLECTOR_ON_AND_OFF ,fan_apl_deflector_ctl_on_and_off
+	beq FAN_CMD_MODE, fan_apl_mode
+	
+	fetch 1,mem_fan_protocol_select_flag
+	beq 0, fan_apl_main_v1
+	beq 1, fan_apl_main_v2
+endif
+	rtn
+
+
+
+ifdef FUNC_FAN_MODULE
+//--------------------------响应风扇功能--------------------------
+/*V1 主函数*/
+fan_apl_main_v1:	
+	fetch 2,mem_ble_parameter_cmd
+	beq FAN_CMD_TIMING_TO_OFF, fan_apl_timing_to_off
+	beq LIGHT_CMD_DELAY_OFF, fan_apl_timing_to_off
+
+	fetch 2, mem_light_adv_packet_data
+	store 2, mem_ble_parameter_para+2
+	fetch 2, mem_ble_parameter_cmd
+	beq FAN_CMD_SPEED_31,fan_apl_speed_31_v1
+	beq FAN_CMD_SPEED_32,fan_apl_speed_32
+
+	fetch 1, mem_light_adv_packet_reserve
+	store 1, mem_ble_parameter_para+1
+	fetch 2, mem_ble_parameter_cmd
+	beq LIGHT_CMD_COLOR_SWTICH, fan_apl_light_color_switch
+	bpatchx patch2d_4,mem_patch2d
+	rtn
+
+	
+/*V2 主函数*/
+fan_apl_main_v2:
+	fetch 2,mem_ble_parameter_cmd
+	beq FAN_CMD_SPEED_31,fan_apl_speed_31_v2
+	beq LIGHT_CMD_DELAY_OFF, fan_apl_timing_to_off_v2
+	beq LIGHT_CMD_COLOR_SWTICH, fan_apl_light_color_switch
+	bpatchx patch2d_5,mem_patch2d
+	rtn
+endif
+
+fan_apl_ble_cmd_handler_customer_message:
+	bpatchx patch2d_6,mem_patch2d
+	call disable_user
+	fetcht 2,mem_ble_parameter_addr
+	arg 9,queue
+	arg 10,loopcnt
+fan_apl_ble_rx_packet_addr_check_loop:
+	sub loopcnt,10,regc
+	deposit queue
+	isub regc,null
+	branch fan_apl_ble_rx_packet_addr_check,positive
+fan_apl_ble_rx_packet_other_addr_check_continue:
+	sub regc,3,null
+	nbranch fan_apl_ble_rx_packet_addr_check,positive
+	branch fan_apl_ble_rx_packet_addr_check_end
+	
+fan_apl_ble_rx_packet_addr_check:
+	arg mem_flash_paired_addr_base,contr
+	mul32 regc,3,pdata
+	iadd contr,contr
+	ifetch 2,contr
+	isub temp, null
+	nbranch fan_apl_ble_rx_packet_addr_check_end, zero
+
+	ifetchr rega,1,contr
+	fetch 1,mem_ble_parameter_group
+
+	branch fan_apl_ble_rx_packet_cnt_check,blank
+	isub rega,null
+	branch fan_apl_ble_rx_packet_cnt_check,zero
+fan_apl_ble_rx_packet_addr_check_end:	
+	loop fan_apl_ble_rx_packet_addr_check_loop
+	
+	arg mem_flash_paired_addr8,rega
+	arg 9,loopcnt
+fan_apl_ble_rx_packet_addr_move_loop:
+	ifetch 3,rega
+	add rega,3,temp
+	istore 3,temp
+	increase -3,rega
+	loop fan_apl_ble_rx_packet_addr_move_loop
+	fetch 3,mem_ble_parameter_addr
+	store 3,mem_flash_paired_addr0
+//同时cnt队列也相应往后面移动
+	fetch 1,mem_addr8_msg_cnt
+	store 1,mem_addr9_msg_cnt
+	fetch 8,mem_msg_cnt_base
+	store 8,mem_addr1_msg_cnt
+	jam 0,mem_msg_cnt_base
+	branch fan_apl_ble_cmd_handler_customer_message
+
+	
+fan_apl_ble_rx_packet_cnt_check:
+	copy loopcnt,temp
+	storet 1,mem_msg_addr_save
+/*cnt判断机制，根据loopcnt的值判断是什么设备，再mem_ble_v2_count是否有效*/
+	arg mem_msg_cnt_base,temp
+	sub loopcnt,10,pdata
+	iadd temp,temp
+	copy temp,rega
+	ifetcht 1,temp
+	fetch 1,mem_light_adv_packet_packetnum
+	isub temp, null
+//	rtn zero 
+	branch enable_user,zero
+	branch fan_apl_ble_rx_check_packetnum_vaild_v2,positive
+/*当cnt小于上次的cnt，判断符不符合6-(cnt+256-last_cnt)>0*/
+	add pdata,0x100,pdata
+	isub temp,pdata
+	and pdata,0xff,pdata
+	sub pdata,6,null
+	branch fan_apl_ble_rx_check_packetnum_vaild_v2,positive
+	rtn
+
+fan_apl_ble_rx_check_packetnum_vaild_v2:	
+fan_apl_ble_rx_relay_check:
+	fetch 1,mem_light_adv_packet_packetnum
+	store 1,mem_count_and_random
+	fetch 2,mem_le_rxbuf+35
+	store 2,mem_count_and_random+1
+	fetcht 3,mem_count_and_random
+	arg mem_msg_before_queue,contr
+	arg 10,loopcnt
+fan_apl_msg_check_count_random_loop:
+	ifetch 3,contr
+	isub temp,null
+//	rtn zero
+	branch enable_user,zero
+	loop fan_apl_msg_check_count_random_loop
+fan_apl_msg_enqueue:
+	jam 30,mem_msg_judgment_window_time//窗口
+	fetch 3,mem_msg_before_queue+24
+	store 3,mem_msg_before_queue+27
+	
+	fetch 8,mem_msg_before_queue+8
+	fetcht 8,mem_msg_before_queue+16
+	store 8,mem_msg_before_queue+11
+	storet 8,mem_msg_before_queue+19	
+	
+	fetch 8,mem_msg_before_queue
+	store 8,mem_msg_before_queue+3
+	
+	fetch 3,mem_count_and_random
+	store 3,mem_msg_before_queue
+
+	fetch 1,mem_msg_addr_save
+	copy pdata,loopcnt
+	arg mem_msg_cnt_base,temp
+	sub loopcnt,10,pdata
+	iadd temp,temp
+	fetch 1,mem_light_adv_packet_packetnum
+	istore 1,temp
+	jam 30,mem_msg_cnt_judgment_window_time
+
+	rtn
+	
\ No newline at end of file
Index: program/app_light/fan/fdflp_fml_fan_timer.prog
===================================================================
--- /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/program/app_light/fan/fdflp_fml_fan_timer.prog	(nonexistent)
+++ /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/program/app_light/fan/fdflp_fml_fan_timer.prog	(working copy)
@@ -0,0 +1,30 @@
+
+fan_apl_cb_event_timer:
+	bpatchx patch2d_7,mem_patch2d
+	branch fan_apl_ble_msg_cache_clear_time
+
+
+
+fan_apl_ble_msg_cache_clear_time:
+	call fan_apl_ble_msg_cache_clear_timer
+	branch fan_apl_ble_msg_cnt_cache_clear_timer
+	
+fan_apl_ble_msg_cache_clear_timer:
+	arg mem_msg_judgment_window_time,regc
+	arg fan_apl_ble_msg_cache_clear_timeout, regb
+	branch timer_single_step
+fan_apl_ble_msg_cache_clear_timeout:
+	arg 30,loopcnt
+	arg mem_msg_before_queue,contw
+	branch clear_mem
+	
+fan_apl_ble_msg_cnt_cache_clear_timer:
+	arg mem_msg_cnt_judgment_window_time,regc
+	arg fan_apl_ble_msg_cnt_cache_clear_timeout, regb
+	branch timer_single_step
+fan_apl_ble_msg_cnt_cache_clear_timeout:
+	jam 0,mem_light_last_packetnum
+	arg 10,loopcnt
+	arg mem_msg_cnt_base,contw
+	branch clear_mem
+
Index: program/app_light/fan/fdflp_fml_fan_tx.prog
===================================================================
--- /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/program/app_light/fan/fdflp_fml_fan_tx.prog	(nonexistent)
+++ /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/program/app_light/fan/fdflp_fml_fan_tx.prog	(working copy)
@@ -0,0 +1,207 @@
+
+
+fan_fml_fet_ctl:
+	store 1,mem_fan_opcode
+	fetch 2,mem_433_tx_cb
+	branch callback_func
+
+
+fan_fml_tx_high_level:
+	fetcht 1,mem_fan_tx_gpio
+	branch gpio_config_output_patch
+
+fan_fml_tx_low_level_init:
+fan_fml_tx_low_level:
+	fetcht 1,mem_fan_tx_gpio
+	or temp, 0x80, temp
+	branch gpio_config_output_patch
+
+//para: mem_opcode
+fan_fml_function_once:   
+	bpatchx patch2e_0,mem_patch2e
+	call fan_fml_tx_header_signal
+	call fan_fml_function_once_433code
+	branch fan_fml_tx_end_signal
+
+fan_fml_function_once_433code:
+	arg FAN_433CODE_LEN, pdata
+	lshift3 pdata, pdata
+	store 2, mem_fan_tx_bits_loop
+	copy pdata, queue
+	increase -1, queue
+	fetcht FAN_433CODE_LEN, mem_fan_433code_packet
+fan_fml_function_once_433code_loop:
+	fetch 2, mem_fan_tx_bits_loop
+	rtn blank
+	pincrease -1
+	store 2, mem_fan_tx_bits_loop
+	qisolate1 temp
+	branch fan_fml_1_signal_temp,true
+	call fan_fml_0_signal
+fan_fml_function_once_tx_bit_loop_continue:
+	increase -1, queue
+	fetch 2, mem_fan_tx_bits_loop	
+	fetcht FAN_433CODE_LEN, mem_fan_433code_packet
+	nbranch fan_fml_function_once_433code_loop, blank
+	rtn
+
+fan_fml_1_signal_temp:
+	call fan_fml_1_signal
+	branch fan_fml_function_once_tx_bit_loop_continue
+
+
+// para1: mem_opcode 
+// para2: mem_tx_loop2       retransmission times
+fan_fml_function_loop:
+	fetch 2, mem_fan_tx_loop2
+	rtn blank
+	pincrease -1
+	store 2, mem_fan_tx_loop2
+	call fan_fml_function_once
+	branch fan_fml_function_loop
+
+
+p_fan_fml_fet_ctl:
+	call fan_fml_get_433_code
+	setarg FAN_RETRANSMISSION_TIMES
+	store 2,mem_fan_tx_loop2
+	branch fan_fml_function_loop
+
+
+//433D-òé?°20bit
+fan_apl_ble_rx_packet_indiscriminate:
+	fetch 1,mem_manufacture_id_temp
+	fetcht 1,mem_id_universal
+	isub temp,null
+	branch fan_apl_ble_433_packet_type1,zero
+	fetch 1,mem_light_device_flag
+	beq 0,fan_apl_ble_433_packet_type0
+	branch fan_apl_ble_433_packet_type1
+
+fan_apl_ble_433_packet_type0:
+	setarg 0
+	branch fan_apl_ble_433_packet_common
+fan_apl_ble_433_packet_type1:
+	setarg 0x80
+fan_apl_ble_433_packet_common:
+	fetcht 1, mem_ble_parameter_group
+	and temp, 0x7f, rega
+	ior rega,pdata
+	rshift4 pdata,temp
+	storet 1,mem_fan_addr_433+2
+
+	and pdata,0x0f,pdata
+	lshift4 pdata,pdata
+	fetcht 1, mem_ble_parameter_addr+1
+	and temp, 0xf0, rega
+	rshift4 rega,rega
+	ior rega,pdata
+	store 1,mem_fan_addr_433+1
+
+	and temp,0x0f, pdata
+	lshift4 pdata,pdata
+	fetcht 1, mem_ble_parameter_addr
+	rshift4 temp,temp
+	ior temp,pdata
+	store 1,mem_fan_addr_433
+
+	rtn
+
+
+//433×é?? μ??·-opcode-
+fan_fml_get_433_code:
+	fetch 3,mem_fan_addr_433
+	lshift4 pdata, pdata
+	lshift8 pdata, pdata
+	fetcht 1, mem_fan_opcode
+	lshift3 temp, temp
+	lshift4 temp, temp
+	ior temp, rega
+	call fan_fml_get_433_code_packet_num_get
+	lshift4 pdata, pdata
+	ior rega, rega
+	call fan_fml_get_433_code_get_check_code
+	ior rega, pdata
+	store FAN_433CODE_LEN, mem_fan_433code_packet
+	rtn
+
+//output: pdata
+fan_fml_get_433_code_get_check_code:
+	arg 4, loopcnt
+	copy rega, regb
+	arg 0, alarm
+fan_fml_get_433_code_get_check_code_loop:
+	and regb, 0xff, regc
+	and regc, 0xf0, pdata
+	rshift4 pdata, pdata
+	ixor alarm, alarm
+	and regc, 0x0f, pdata
+	ixor alarm, alarm
+	rshift8 regb, regb	
+	loop fan_fml_get_433_code_get_check_code_loop
+	xor alarm, 0x0a, alarm
+	and alarm, 0x0f, pdata
+	rtn
+
+//output: pdata
+fan_fml_get_433_code_packet_num_get:
+	fetch 1, mem_fan_tx_cnt
+	pincrease 1
+	and pdata, 0x07, pdata
+	store 1, mem_fan_tx_cnt
+	rtn
+
+//para: loopcnt      unit: 1us
+fan_fml_delay_us:
+	nop 12
+	loop fan_fml_delay_us
+	rtn
+
+fan_fml_tx_header_signal:
+	call fan_fml_tx_low_level
+	arg FAN_HEADER_LOW_DELAY,loopcnt
+	branch fan_fml_delay_us
+	
+fan_fml_1_signal:
+	call fan_fml_tx_high_level
+	arg FAN_1_HIGH_DELAY, loopcnt
+	call fan_fml_delay_us
+	call fan_fml_tx_low_level
+	arg FAN_1_LOW_DELAY, loopcnt
+	branch fan_fml_delay_us
+	
+fan_fml_0_signal:
+	call fan_fml_tx_high_level
+	arg FAN_0_HIGH_DELAY, loopcnt
+	call fan_fml_delay_us
+	call fan_fml_tx_low_level
+	arg FAN_0_LOW_DELAY, loopcnt
+	branch fan_fml_delay_us	
+
+fan_fml_tx_end_signal:	
+	call fan_fml_tx_high_level
+	arg FAN_END_HIGH_DELAY,loopcnt
+	call fan_fml_delay_us
+	call fan_fml_tx_low_level
+	arg FAN_END_LOW_DELAY,loopcnt
+	branch fan_fml_delay_us
+
+	
+fan_fml_1_signal_loop:
+	fetch 2, mem_fan_tx_loop
+	rtn blank
+	pincrease -1	
+	store 2, mem_fan_tx_loop
+	call fan_fml_1_signal
+	branch fan_fml_1_signal_loop
+
+
+fan_fml_0_signal_loop:
+	fetch 2, mem_fan_tx_loop
+	rtn blank
+	pincrease -1
+	store 2, mem_fan_tx_loop
+	call fan_fml_0_signal
+	branch fan_fml_0_signal_loop
+
+
Index: program/app_light/remoter/frmt_fml_remoter_gem.prog
===================================================================
--- /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/program/app_light/remoter/frmt_fml_remoter_gem.prog	(nonexistent)
+++ /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/program/app_light/remoter/frmt_fml_remoter_gem.prog	(working copy)
@@ -0,0 +1,235 @@
+
+
+frmt_gem_adv_pdu_common:   
+	jam 1, mem_light_num_of_long_press
+	call frmt_light_long_press_flag_reset
+	jam 66,mem_light_gm_tx_addr_type
+	jam 21,mem_light_gm_tx_len
+	
+	jam 0x55, mem_light_gm_tx_remoter_ID
+	fetch 1, mem_light_gm_tx_count
+	pincrease 1
+	store 1, mem_light_gm_tx_count
+	call frmt_gem_pud_sum
+	call frmt_light_flag_set_short_press
+	arg GEM_PDU_LEN, loopcnt
+	arg mem_light_gm_tx_addr_type, contr
+	arg mem_light_whitening_buffer, contw
+	branch memcpy_fast
+	
+	
+frmt_gem_pud_sum:
+	arg 0, temp
+	arg mem_light_gm_tx_press_time , contr
+	arg 7, loopcnt
+frmt_gem_pud_sum_loop:
+	ifetch 1, contr
+	iadd temp, temp
+	loop frmt_gem_pud_sum_loop
+	storet 1,mem_light_gm_tx_sum
+	rtn
+
+
+frmt_light_gem_long_press_cnt:
+	fetch 1,mem_gem_long_cnt_enable
+	rtn blank
+	jam 0,mem_gem_long_cnt_enable
+	fetch 2,mem_long_press_timeout
+	rtn blank
+	fetch 1,mem_light_gm_tx_press_time
+	pincrease 1
+	store 1,mem_light_gm_tx_press_time
+	beq 1,frmt_light_gem_long_press_code_increase
+	beq 9,frmt_light_gem_long_press_code_increase
+	call frmt_gem_adv_pdu_common
+	setarg GEM_LONG_KEYPRESS
+	store 2,mem_gem_cnt_inces_timeout
+	rtn
+
+frmt_light_gem_long_press_code_increase:	
+	fetch 1,mem_light_gm_tx_code
+	pincrease 0x40
+	store 1,mem_light_gm_tx_code
+	call frmt_gem_adv_pdu_common
+	branch gem_long_keypress_time
+
+gem_long_keypress_time:
+	setarg GEM_LONG_KEYPRESS
+	store 2,mem_gem_cnt_inces_timeout
+	rtn
+
+gem_light_color_switch:
+	jam GEM_LIGHT_COLOR_SWITCH_CODE, mem_light_gm_tx_code
+	jam 0,mem_light_gm_tx_press_time
+	branch frmt_gem_adv_pdu_common
+	
+gem_light_energy_saving_light:
+	fetch 1,mem_ble_v2_customer_id
+	ncall frmt_light_pcnt_50_percent_V2,blank
+	jam GEM_LIGHT_ENERGY_SAVE_LIGHT_CODE, mem_light_gm_tx_code
+	jam 0,mem_light_gm_tx_press_time
+	branch frmt_gem_adv_pdu_common
+
+
+gem_light_timing_off:
+	jam GEM_LIGHT_TIMING_OFF_CODE, mem_light_gm_tx_code
+	jam 0,mem_light_gm_tx_press_time
+	branch frmt_gem_adv_pdu_common
+
+gem_light_aid_turn_onoff:
+	jam GEM_LIGHT_AIDED_LIGHT_CODE, mem_light_gm_tx_code
+	jam 0,mem_light_gm_tx_press_time
+	branch frmt_gem_adv_pdu_common
+
+gem_light_master_on:
+	jam GEM_LIGHT_ON_CODE, mem_light_gm_tx_code
+	jam 0, mem_light_gm_tx_group_num
+	jam 0,mem_light_gm_tx_press_time
+	branch frmt_gem_adv_pdu_common
+
+gem_light_master_off:
+	jam GEM_LIGHT_OFF_CODE, mem_light_gm_tx_code
+	jam 0,mem_light_gm_tx_press_time
+	jam 0, mem_light_gm_tx_group_num
+	branch frmt_gem_adv_pdu_common
+
+gem_light_rgb_auto:
+	jam GEM_LIGHT_RGB_AUTO_CODE, mem_light_gm_tx_code
+	jam 0,mem_light_gm_tx_press_time
+	branch frmt_gem_adv_pdu_common
+
+
+gem_light_rgb_step:
+	jam GEM_LIGHT_RGB_STEP_CODE, mem_light_gm_tx_code
+	jam 0,mem_light_gm_tx_press_time
+	branch frmt_gem_adv_pdu_common
+	
+
+gem_light_group1_on:
+	fetch 1,mem_ble_v2_customer_id
+	ncall frmt_light_group1_on_V2,blank
+	jam GEM_LIGHT_ON_GROUP1_CODE, mem_light_gm_tx_code
+	jam 1, mem_light_gm_tx_group_num
+	jam 0,mem_light_gm_tx_press_time
+	branch frmt_gem_adv_pdu_common
+
+gem_light_group1_off:
+	fetch 1,mem_ble_v2_customer_id
+	ncall frmt_light_group1_off_V2,blank
+	jam GEM_LIGHT_OFF_GROUP1_CODE, mem_light_gm_tx_code
+	jam 1, mem_light_gm_tx_group_num
+	jam 0,mem_light_gm_tx_press_time
+	branch frmt_gem_adv_pdu_common
+
+
+gem_light_group2_on:
+	fetch 1,mem_ble_v2_customer_id
+	ncall frmt_light_group2_on_V2,blank
+	jam GEM_LIGHT_ON_GROUP2_CODE, mem_light_gm_tx_code
+	jam 2, mem_light_gm_tx_group_num
+	jam 0,mem_light_gm_tx_press_time
+	branch frmt_gem_adv_pdu_common
+
+gem_light_group2_off:
+	fetch 1,mem_ble_v2_customer_id
+	ncall frmt_light_group2_off_V2,blank
+	jam GEM_LIGHT_OFF_GROUP2_CODE, mem_light_gm_tx_code
+	jam 2, mem_light_gm_tx_group_num
+	jam 0,mem_light_gm_tx_press_time
+	branch frmt_gem_adv_pdu_common
+
+
+gem_light_group3_on:
+	fetch 1,mem_ble_v2_customer_id
+	ncall frmt_light_group3_on_V2,blank
+	jam GEM_LIGHT_ON_GROUP3_CODE, mem_light_gm_tx_code
+	jam 3, mem_light_gm_tx_group_num
+	jam 0,mem_light_gm_tx_press_time
+	branch frmt_gem_adv_pdu_common
+
+gem_light_group3_off:
+	fetch 1,mem_ble_v2_customer_id
+	ncall frmt_light_group3_off_V2,blank
+	jam GEM_LIGHT_OFF_GROUP3_CODE, mem_light_gm_tx_code
+	jam 3, mem_light_gm_tx_group_num
+	jam 0,mem_light_gm_tx_press_time
+	branch frmt_gem_adv_pdu_common
+
+
+gem_light_group4_on:
+	fetch 1,mem_ble_v2_customer_id
+	ncall frmt_light_group4_on_V2,blank
+	jam GEM_LIGHT_ON_GROUP4_CODE, mem_light_gm_tx_code
+	jam 4, mem_light_gm_tx_group_num
+	jam 0,mem_light_gm_tx_press_time
+	branch frmt_gem_adv_pdu_common
+
+gem_light_group4_off:
+	fetch 1,mem_ble_v2_customer_id
+	ncall frmt_light_group4_off_V2,blank
+	jam GEM_LIGHT_OFF_GROUP4_CODE, mem_light_gm_tx_code
+	jam 4, mem_light_gm_tx_group_num
+	jam 0,mem_light_gm_tx_press_time
+	branch frmt_gem_adv_pdu_common
+
+
+gem_light_color_switch_short_press:
+	fetch 1, mem_light_color_and_lgtness_long_press_adv_enable
+	beq 1, gem_light_color_switch
+	jam LIGHT_COLOR_SWITCH_RELEASE_ADV_FLAG, mem_light_release_adv_flag
+	branch frmt_light_light_color_and_lightness_change_common
+
+gem_light_color_switch_W:
+	fetch 1,mem_ble_v2_customer_id
+	ncall frmt_light_color_switch_W_V2,blank
+	jam GEM_COLOR_SWITCH_W, mem_light_gm_tx_code
+	jam 0,mem_light_gm_tx_press_time
+	jam 0, mem_light_gm_tx_group_num
+	branch frmt_gem_adv_pdu_common
+
+gem_light_color_switch_Y:
+	fetch 1,mem_ble_v2_customer_id
+	ncall frmt_light_color_switch_Y_V2,blank
+	jam GEM_COLOR_SWITCH_Y, mem_light_gm_tx_code
+	jam 0,mem_light_gm_tx_press_time
+	jam 0, mem_light_gm_tx_group_num
+	branch frmt_gem_adv_pdu_common
+
+gem_light_to_Y:
+	jam 0, mem_light_release_adv_flag
+	fetch 1,mem_ble_v2_customer_id
+	ncall frmt_light_to_Y_V2,blank
+	jam GEM_LIGHT_TO_Y_CODE, mem_light_gm_tx_code
+	branch frmt_gem_adv_pdu_common
+
+gem_light_to_W:
+	jam 0, mem_light_release_adv_flag
+	fetch 1,mem_ble_v2_customer_id
+	ncall frmt_light_to_W_V2,blank
+	jam GEM_LIGHT_TO_W_CODE, mem_light_gm_tx_code
+	branch frmt_gem_adv_pdu_common
+
+gem_light_darken:
+	jam 0, mem_light_release_adv_flag
+	fetch 1,mem_ble_v2_customer_id
+	ncall frmt_light_darken_V2,blank
+	jam GEM_LIGHT_DARKEN_CODE, mem_light_gm_tx_code
+	branch frmt_gem_adv_pdu_common	
+
+gem_light_lighten:
+	jam 0, mem_light_release_adv_flag
+	fetch 1,mem_ble_v2_customer_id
+	ncall frmt_light_lighten_V2,blank
+	jam GEM_LIGHT_LIGHTEN_CODE, mem_light_gm_tx_code
+	branch frmt_gem_adv_pdu_common	
+
+gem_light_night_light:
+	fetch 1,mem_ble_v2_customer_id
+	ncall frmt_light_night_light_V2,blank
+	jam GEM_LIGHT_NIGHT_LIGHT_CODE, mem_light_gm_tx_code
+	jam 0,mem_light_gm_tx_press_time
+	branch frmt_gem_adv_pdu_common
+	
+
+
+
Index: program/app_light/remoter/frmt_fml_remoter_init.prog
===================================================================
--- /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/program/app_light/remoter/frmt_fml_remoter_init.prog	(nonexistent)
+++ /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/program/app_light/remoter/frmt_fml_remoter_init.prog	(working copy)
@@ -0,0 +1,86 @@
+
+
+remoter_init:	
+	call frmt_ble_para_init
+// call ice_break
+	call frmt_enter_lpm_gpio_config_flag_init_row
+	call frmt_enter_lpm_gpio_config_flag_init_col
+	bpatchx patch2e_1,mem_patch2e
+
+	jam 1, mem_set_clear_code_timeout_enable
+	jam 1, mem_light_lpm_enable
+
+
+frmt_apl_ble_scene_rewrite_lap:
+	bpatchx patch2e_2,mem_patch2e
+	fetch 2, mem_le_lap
+	lshift4 pdata, pdata
+	arg 0xffff, temp
+	iand temp, pdata    //因为左移过后原本的高四位，只是被左移了，仍然存在于16bit往左的高位，应该把它们去掉
+	branch frmt_light_set_addr_to_0010 , blank
+	arg 0xfff0, temp
+	isub temp, null
+	branch frmt_light_set_addr_to_ffe0, zero
+frmt_lightc_init_continue:	
+	bpatchx patch2e_3,mem_patch2e
+	byteswap pdata, pdata    //20200417
+	store 2, mem_FTD_adv_raw_device_add_temp
+	store 2, mem_light_gm_tx_remoter_addr
+
+	arg 0xffff,rega
+	lshift16 rega, temp
+	setarg 0xffff
+	ior temp, temp
+	fetch 4, mem_le_lap
+	call frmt_light_addr_default_v2, blank
+	isub temp, null
+	call frmt_light_addr_default_v2, zero
+	store 4, mem_ble_v2_addr
+
+	setarg frmt_apl_cb_event_timer
+	store 2, mem_cb_event_timer
+	
+	setarg frmt_main
+	store 2,mem_cb_idle_process
+	branch  frmt_kscan_init
+
+
+frmt_enter_lpm_gpio_config_flag_init_row:
+	bpatchx patch2e_4,mem_patch2e
+	fetchr loopcnt ,1, mem_kscan_row_nums
+//	iforce loopcnt
+	fetcht 4, mem_light_lpm_gpio_config_flag
+	arg mem_kscan_row_gpio_pin, contr
+frmt_enter_lpm_gpio_config_flag_init_loop:
+	bpatchx patch2e_5,mem_patch2e
+	ifetch 1, contr
+	iforce queue
+	qset1 temp
+	loop frmt_enter_lpm_gpio_config_flag_init_loop
+	storet 4, mem_light_lpm_gpio_config_flag
+	rtn
+
+frmt_enter_lpm_gpio_config_flag_init_col:
+	bpatchx patch2e_6,mem_patch2e
+	fetchr loopcnt,1, mem_kscan_col_nums
+//	iforce loopcnt
+	fetcht 4, mem_light_lpm_gpio_config_flag
+	arg mem_kscan_col_gpio_pin, contr
+	branch frmt_enter_lpm_gpio_config_flag_init_loop
+
+frmt_light_addr_default_v2:
+	setarg 0x111213
+	rtn
+
+frmt_light_set_addr_to_0010:
+	arg 0x0010, pdata
+	branch frmt_lightc_init_continue
+
+frmt_light_set_addr_to_ffe0:
+	arg 0xffe0, pdata
+	branch frmt_lightc_init_continue
+
+//key_light_set_addr_to_7878:
+//	arg 0x7878, temp
+//	rtn
+	
Index: program/app_light/remoter/frmt_fml_remoter_key.prog
===================================================================
--- /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/program/app_light/remoter/frmt_fml_remoter_key.prog	(nonexistent)
+++ /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/program/app_light/remoter/frmt_fml_remoter_key.prog	(working copy)
@@ -0,0 +1,380 @@
+
+//关于adv的时间和lpm需要重新重点计算   pairing 和 clear等等
+
+frmt_jym_pdu_common:      
+	bpatchx patch2e_7,mem_patch2e
+	fetch 4, mem_le_lap
+	store 4, mem_light_JYM_tx_ID
+	jam 0xd1, mem_light_JYM_tx_group
+	fetch 1, mem_light_JYM_tx_count
+	pincrease 1
+	store 1, mem_light_JYM_tx_count
+	
+	arg 0, temp
+	arg mem_light_JYM_tx_cmd, contr
+	arg 8, loopcnt
+	call frmt_light_sum_cal_loop
+	byteswap temp, temp
+	storet 2,mem_light_JYM_tx_sum
+
+	//call ice_break
+	arg mem_light_JYM_tx_len, regc
+	arg 11, loopcnt
+	setarg 0
+	store 2, mem_adv_CRC_False_initValue
+	call key_CRC16_CCITT_False1
+	fetch 2, mem_adv_CRC_False_initValue
+	store 2, mem_light_JYM_tx_CRC
+
+
+/***************************************
+mem_light_JYM_tx_header_temp中，pre1本来是50 55 55，但是白化的时候，需要reverse，
+所以初始化的时候，就直接reverse好了，为:0a aa aa
+****************************************/
+	arg 23, loopcnt      //只copy 23个byte，第24个byte是协议中的len
+	arg mem_light_KY_tx, contr  
+	arg mem_light_whitening_buffer, contw
+	call memcpy_fast
+
+	arg 13, loopcnt
+	arg mem_light_JYM_tx_len, contr  
+	arg mem_light_whitening_buffer+23, contw
+	call memcpy_fast
+	
+	jam 37, mem_light_recvd_len
+	jam 51, mem_light_whitening_i
+	call frmt_light_ble_whitening
+
+	arg 37, loopcnt
+	arg mem_light_whitening_buffer, contr
+	arg mem_light_JYM_tx_temp , contw
+	branch memcpy_fast
+	
+frmt_reverse:
+	ifetch 1, contr
+	reverse pdata, pdata
+	istore 1, contw
+	loop frmt_reverse
+	rtn
+
+key_pdu_common:		
+	bpatchx patch2f_0,mem_patch2f
+	call frmt_light_flag_set_short_press
+	call frmt_light_sum_cal
+	byteswap temp, temp
+	storet 2, mem_light_KY_tx_sum
+	arg mem_light_KY_tx_len, regc
+	arg 10, loopcnt
+	setarg 0
+	store 2, mem_adv_CRC_False_initValue 
+	call key_CRC16_CCITT_False1
+	fetch 2, mem_adv_CRC_False_initValue
+	store 2, mem_light_KY_tx_CRC
+	fetch 2, mem_light_KY_tx_count
+	byteswap pdata, pdata
+	pincrease 1
+	byteswap pdata, pdata
+	store 2, mem_light_KY_tx_count
+	
+	arg 37, loopcnt
+	arg mem_light_KY_tx, contr
+	arg mem_light_whitening_buffer, contw
+	call memcpy_fast
+	jam 37, mem_light_recvd_len
+	jam 51, mem_light_whitening_i
+	branch frmt_light_ble_whitening
+	
+
+frmt_light_sum_cal:
+	arg 0, temp
+	arg mem_light_KY_tx_code1, contr
+	arg 7, loopcnt
+frmt_light_sum_cal_loop:
+	ifetch 1, contr
+	iadd temp, temp
+	loop frmt_light_sum_cal_loop
+	rtn
+
+key_whitening_i_get:
+	arg 51, regb
+	rtn
+
+/***************************科云功能****************************/
+//mem_light_group_num
+frmt_light_group_num_set:
+	fetch 1, mem_light_group_num
+	store 1, mem_light_KY_tx_remoter_ID+3 
+	rtn
+
+frmt_light_timing_off_KY:
+	call frmt_light_timing_30s_V2
+	jam LIGHT_JYM_CMD_TIMING_OFF, mem_light_JYM_tx_cmd
+	jam LIGHT_JYM_DATA_TIMING_OFF, mem_light_JYM_tx_data
+	call frmt_jym_pdu_common
+
+	jam LIGHT_TIMING_CODE1, mem_light_KY_tx_code1
+	jam 0x46, mem_light_KY_tx_code2
+	branch key_pdu_common
+
+key_light_Aux_lamp_on_and_off_KY:
+	jam LIGHT_JYM_CMD_AUX_LAMP, mem_light_JYM_tx_cmd
+	jam LIGHT_JYM_DATA_AUX_LAMP, mem_light_JYM_tx_data
+	call frmt_jym_pdu_common
+
+	jam LIGHT_AUX_LAMP_ON_AND_OFF_CODE1, mem_light_KY_tx_code1
+	jam 0xf0, mem_light_KY_tx_code2
+	branch key_pdu_common
+
+key_light_to_Y:	
+	call frmt_light_to_Y_V2
+	jam LIGHT_JYM_CMD_TO_Y, mem_light_JYM_tx_cmd
+	jam LIGHT_JYM_DATA_TO_Y, mem_light_JYM_tx_data
+	call frmt_jym_pdu_common
+
+	jam LIGHT_TO_Y_CODE1, mem_light_KY_tx_code1
+	jam 0, mem_light_KY_tx_code2
+	branch key_pdu_common
+
+key_light_to_W:	
+	call frmt_light_to_W_V2
+	jam LIGHT_JYM_CMD_TO_W, mem_light_JYM_tx_cmd
+	jam LIGHT_JYM_DATA_TO_W, mem_light_JYM_tx_data
+	call frmt_jym_pdu_common
+
+	jam LIGHT_TO_W_CODE1, mem_light_KY_tx_code1
+	jam 0, mem_light_KY_tx_code2
+	branch key_pdu_common
+
+key_light_darken:
+	call frmt_light_darken_V2
+	jam LIGHT_JYM_CMD_DARKEN, mem_light_JYM_tx_cmd
+	jam LIGHT_JYM_DATA_DARKEN, mem_light_JYM_tx_data
+	call frmt_jym_pdu_common
+
+	jam LIGHT_DARKEN_CODE1, mem_light_KY_tx_code1
+	jam 0, mem_light_KY_tx_code2
+	branch key_pdu_common
+
+key_light_lighten:
+	call frmt_light_lighten_V2
+	jam LIGHT_JYM_CMD_LIGHTEN, mem_light_JYM_tx_cmd
+	jam LIGHT_JYM_DATA_LIGHTEN, mem_light_JYM_tx_data
+	call frmt_jym_pdu_common
+
+	jam LIGHT_LIGHTEN_CODE1, mem_light_KY_tx_code1
+	jam 0, mem_light_KY_tx_code2
+	branch key_pdu_common
+
+key_light_group1_off:
+	jam LIGHT_JYM_CMD_OFF, mem_light_JYM_tx_cmd
+	jam LIGHT_JYM_DATA_OFF, mem_light_JYM_tx_data
+	jam 0xd2,mem_light_JYM_tx_group
+	call frmt_jym_pdu_common
+	
+	jam LIGHT_OFF_CODE1, mem_light_KY_tx_code1
+	jam LIGHT_OFF_CODE2, mem_light_KY_tx_code2
+	jam 0xd2,mem_light_KY_tx_group_num
+	branch key_pdu_common
+
+key_light_group2_off:	
+	jam LIGHT_JYM_CMD_OFF, mem_light_JYM_tx_cmd
+	jam LIGHT_JYM_DATA_OFF, mem_light_JYM_tx_data
+	jam 0xd4,mem_light_JYM_tx_group
+	call frmt_jym_pdu_common
+	
+	jam LIGHT_OFF_CODE1, mem_light_KY_tx_code1
+	jam LIGHT_OFF_CODE2, mem_light_KY_tx_code2
+	jam 0xd4,mem_light_KY_tx_group_num
+	branch key_pdu_common
+
+key_light_group3_off:
+	jam LIGHT_JYM_CMD_OFF, mem_light_JYM_tx_cmd
+	jam LIGHT_JYM_DATA_OFF, mem_light_JYM_tx_data
+	jam 3,mem_light_JYM_tx_group
+	call frmt_jym_pdu_common
+	
+	jam LIGHT_OFF_CODE1, mem_light_KY_tx_code1
+	setarg LIGHT_OFF_CODE2
+	store 2, mem_light_KY_tx_code2
+	jam 3,mem_light_group_num
+	branch key_pdu_common
+
+key_light_group4_off:
+	jam LIGHT_JYM_CMD_OFF, mem_light_JYM_tx_cmd
+	jam LIGHT_JYM_DATA_OFF, mem_light_JYM_tx_data
+	jam 4,mem_light_JYM_tx_group
+	call frmt_jym_pdu_common
+	
+	jam LIGHT_OFF_CODE1, mem_light_KY_tx_code1
+	setarg LIGHT_OFF_CODE2
+	store 2, mem_light_KY_tx_code2
+	jam 4,mem_light_group_num
+	branch key_pdu_common
+
+key_light_group1_on:
+	jam LIGHT_JYM_CMD_ON, mem_light_JYM_tx_cmd
+	jam LIGHT_JYM_DATA_ON, mem_light_JYM_tx_data
+	jam 0xd2,mem_light_JYM_tx_group
+	call frmt_jym_pdu_common
+	
+	jam LIGHT_ON_CODE1, mem_light_KY_tx_code1
+	jam LIGHT_ON_CODE2, mem_light_KY_tx_code2
+	jam 0xd2,mem_light_KY_tx_group_num
+	branch key_pdu_common
+
+key_light_group2_on:
+	jam LIGHT_JYM_CMD_ON, mem_light_JYM_tx_cmd
+	jam LIGHT_JYM_DATA_ON, mem_light_JYM_tx_data
+	jam 0xd4,mem_light_JYM_tx_group
+	call frmt_jym_pdu_common
+	
+	jam LIGHT_ON_CODE1, mem_light_KY_tx_code1
+	jam LIGHT_ON_CODE2, mem_light_KY_tx_code2
+	jam 0xd4,mem_light_KY_tx_group_num
+	branch key_pdu_common
+
+key_light_group3_on:
+	jam LIGHT_JYM_CMD_ON, mem_light_JYM_tx_cmd
+	jam LIGHT_JYM_DATA_ON, mem_light_JYM_tx_data
+	jam 3,mem_light_JYM_tx_group
+	call frmt_jym_pdu_common
+	
+	jam LIGHT_ON_CODE1, mem_light_KY_tx_code1
+	setarg LIGHT_ON_CODE2
+	store 2, mem_light_KY_tx_code2
+	jam 3,mem_light_group_num
+	branch key_pdu_common
+
+key_light_group4_on:
+	jam LIGHT_JYM_CMD_ON, mem_light_JYM_tx_cmd
+	jam LIGHT_JYM_DATA_ON, mem_light_JYM_tx_data
+	jam 4,mem_light_JYM_tx_group
+	call frmt_jym_pdu_common
+	
+	jam LIGHT_ON_CODE1, mem_light_KY_tx_code1
+	setarg LIGHT_ON_CODE2
+	store 2, mem_light_KY_tx_code2
+	jam 4,mem_light_group_num
+	branch key_pdu_common
+
+key_light_pairing_group1:	
+	jam 0xd2,mem_light_JYM_tx_group
+	jam 0xd2,mem_light_KY_tx_group_num
+	branch key_light_master_pairing_process
+
+key_light_pairing_group2:	
+	jam 0xd4,mem_light_JYM_tx_group
+	jam 0xd4,mem_light_KY_tx_group_num
+	branch key_light_master_pairing_process
+
+key_light_pairing_group3:	
+	jam 3,mem_light_JYM_tx_group
+	jam 3,mem_light_KY_tx_group_num
+	branch key_light_master_pairing_process
+
+key_light_pairing_group4:	
+	jam 4,mem_light_JYM_tx_group
+	jam 4,mem_light_KY_tx_group_num
+	branch key_light_master_pairing_process
+
+
+key_light_clear_code:
+	call frmt_light_clear_code_V2
+	jam LIGHT_JYM_CMD_CLEAR, mem_light_JYM_tx_cmd
+	jam LIGHT_JYM_DATA_CLEAR, mem_light_JYM_tx_data
+	call frmt_jym_pdu_common
+
+	jam LIGHT_CLEAR_CODE_CODE1, mem_light_KY_tx_code1
+	setarg LIGHT_CLEAR_CODE_CODE2
+	store 2, mem_light_KY_tx_code2
+	branch key_pdu_common
+
+key_light_master_pairing:
+	jam 0xd1,mem_light_KY_tx_group_num
+	jam 0xd1,mem_light_JYM_tx_group
+key_light_master_pairing_process:
+	call frmt_light_master_pairing_V2
+	jam LIGHT_JYM_CMD_PAIRING, mem_light_JYM_tx_cmd
+	jam LIGHT_JYM_DATA_PAIRING, mem_light_JYM_tx_data
+	call frmt_jym_pdu_common
+ 
+	jam LIGHT_PAIRING_CODE1, mem_light_KY_tx_code1
+	jam LIGHT_PAIRING_CODE2, mem_light_KY_tx_code2
+	jam 0, mem_light_group_num
+	call frmt_light_group_num_set
+	branch key_pdu_common
+
+key_light_night_light:
+	call frmt_light_night_light_V2
+	jam LIGHT_JYM_CMD_NIGHT_LIGHT, mem_light_JYM_tx_cmd
+	jam LIGHT_JYM_DATA_NIGHT_LIGHT, mem_light_JYM_tx_data
+	call frmt_jym_pdu_common
+
+	jam LIGHT_NIGHT_LIGHT_CODE1, mem_light_KY_tx_code1
+	jam 0, mem_light_KY_tx_code2
+	branch key_pdu_common
+
+key_light_color_switch:
+	fetch 1,mem_light_color_switch_cnt
+	beq 0,key_light_color_switch_WY
+	beq 1,key_light_color_switch_W
+	beq 2,key_light_color_switch_Y
+	rtn
+
+key_light_color_switch_WY:
+	call frmt_light_color_switch_WY_V2
+	jam 1, mem_light_color_switch_cnt
+	jam LIGHT_JYM_CMD_WY_LAMP, mem_light_JYM_tx_cmd
+	jam LIGHT_JYM_DATA_WY_LAMP, mem_light_JYM_tx_data
+	call frmt_jym_pdu_common
+
+	jam LIGHT_COLOR_SWITCH_CODE1, mem_light_KY_tx_code1
+	jam LIGHT_COLOR_SWITCH_WY_CODE2, mem_light_KY_tx_code2
+	branch key_pdu_common
+
+key_light_color_switch_W:
+	call frmt_light_color_switch_W_V2
+	jam 2, mem_light_color_switch_cnt
+	jam LIGHT_JYM_CMD_WHITE_LAMP, mem_light_JYM_tx_cmd
+	jam LIGHT_JYM_DATA_WHITE_LAMP, mem_light_JYM_tx_data
+	call frmt_jym_pdu_common
+	
+	jam LIGHT_COLOR_SWITCH_CODE1, mem_light_KY_tx_code1
+	jam LIGHT_COLOR_SWITCH_W_CODE2, mem_light_KY_tx_code2
+	branch key_pdu_common
+
+key_light_color_switch_Y:
+	call frmt_light_color_switch_Y_V2
+	jam 0, mem_light_color_switch_cnt
+	jam LIGHT_JYM_CMD_YELLOW_LAMP, mem_light_JYM_tx_cmd
+	jam LIGHT_JYM_DATA_YELLOW_LAMP, mem_light_JYM_tx_data
+	call frmt_jym_pdu_common
+
+	jam LIGHT_COLOR_SWITCH_CODE1, mem_light_KY_tx_code1
+	jam LIGHT_COLOR_SWITCH_Y_CODE2, mem_light_KY_tx_code2
+	branch key_pdu_common
+
+key_light_master_off:
+	jam LIGHT_JYM_CMD_OFF, mem_light_JYM_tx_cmd
+	jam LIGHT_JYM_DATA_OFF, mem_light_JYM_tx_data
+	jam 0xd1,mem_light_JYM_tx_group
+	call frmt_jym_pdu_common
+	
+	jam LIGHT_OFF_CODE1, mem_light_KY_tx_code1
+	jam 0, mem_light_KY_tx_code2
+	jam 0xd1,mem_light_KY_tx_group_num
+	branch key_pdu_common
+
+key_light_master_on:
+	jam LIGHT_JYM_CMD_ON, mem_light_JYM_tx_cmd
+	jam LIGHT_JYM_DATA_ON, mem_light_JYM_tx_data
+	jam 0xd1,mem_light_JYM_tx_group
+	call frmt_jym_pdu_common
+	
+	jam LIGHT_ON_CODE1, mem_light_KY_tx_code1
+	jam 0, mem_light_KY_tx_code2
+	jam 0xd1,mem_light_KY_tx_group_num
+	branch key_pdu_common
+
+
+
Index: program/app_light/remoter/frmt_fml_remoter_keyscan.prog
===================================================================
--- /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/program/app_light/remoter/frmt_fml_remoter_keyscan.prog	(nonexistent)
+++ /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/program/app_light/remoter/frmt_fml_remoter_keyscan.prog	(working copy)
@@ -0,0 +1,186 @@
+
+/*
+按键检测
+*/
+frmt_kscan_init:
+	bpatchx patch2f_1,mem_patch2f
+
+	fetch 2, mem_kscan_analysis_interval_timeout   
+	nrtn blank
+
+	call frmt_kscan_col_state_init
+frmt_kscan_row_state_init:  //pull up, input
+	bpatchx patch2f_2,mem_patch2f
+
+	arg mem_kscan_row_gpio_pin, rega
+
+	fetch 1, mem_kscan_row_nums
+	iforce loopcnt
+frmt_kscan_input_pull_up_loop:	
+	ifetcht 1, rega
+	call gpio_config_input
+	increase 1, rega
+	loop frmt_kscan_input_pull_up_loop
+	nop 12000	
+	rtn
+
+frmt_kscan_recover_col_output_low:	
+frmt_kscan_col_state_init:  //output low
+	arg mem_kscan_col_gpio_pin, rega
+	fetch 1, mem_kscan_col_nums
+	iforce loopcnt
+frmt_kscan_output_low_loop:
+	ifetcht 1, rega
+	or temp, 0x80, temp
+	call gpio_config_output_patch
+	increase 1, rega
+	loop frmt_kscan_output_low_loop
+	nop 12000
+	rtn
+
+	
+/**************************************************
+gpio数可配置
+gpio pin脚可配置
+行列可配置，最大8*8
+
+mem_kscan_row_nums:行数
+mem_kscan_col_nums:列数
+mem_kscan_col_gpio_pin:列GPIO
+mem_kscan_row_gpio_pin:行GPIO
+
+mem_kscan_avoid_shake_delay_time: 消抖时间，如果为0，没有消抖。消抖时间:X * 3.5us
+
+**************************************************/
+frmt_kscan:
+	fetch 2, mem_kscan_analysis_interval_timeout   
+// 	call ice_break
+	nrtn blank
+	jam 0, mem_keypress_analysis_flag
+
+	setarg 0
+	store 8, mem_kscan_record_keypress
+frmt_kscan_get_row_state:
+	jam 0, mem_kscan_row_scanned
+	arg mem_kscan_row_gpio_pin, regc
+
+frmt_kscan_get_row_state_loop:
+	ifetcht 1, regc
+	call gpio_get_bit
+	call frmt_kscan_avoid_shake_and_record_key, true  //low , in
+
+	ifetcht 1, regc        //current row recover to pull up
+	call gpio_config_input
+	call frmt_kscan_recover_col_output_low  
+	
+	increase 1, regc
+	fetch 1, mem_kscan_row_scanned
+	pincrease 1
+	store 1, mem_kscan_row_scanned
+	fetcht 1, mem_kscan_row_nums
+	isub temp, null
+	nbranch frmt_kscan_get_row_state_loop, positive
+	rtn
+	
+frmt_kscan_press_GND_related:
+	bpatchx patch2f_3,mem_patch2f
+
+	fetch 1, mem_kscan_row_scanned
+	pincrease 1
+	fetcht 1, mem_kscan_col_nums
+	increase 1, temp
+	imul32 temp, pdata
+	iforce queue
+	fetch 8, mem_kscan_record_keypress
+	qset1 pdata
+	store 8, mem_kscan_record_keypress
+	rtn
+	
+frmt_kscan_set_default_avoid_shake_time:
+	arg 1, loopcnt
+	rtn
+	
+frmt_kscan_avoid_shake_and_record_key:
+	bpatchx patch2f_4,mem_patch2f
+
+	fetch 2, mem_kscan_avoid_shake_delay_time
+	iforce loopcnt
+	call frmt_kscan_set_default_avoid_shake_time, blank
+	call delay_ms_wait
+	ifetcht 1, regc
+	call gpio_get_bit
+	nrtn true
+	nop 12000 
+
+	ifetcht 1, regc
+	call gpio_get_bit
+	nrtn true
+	nop 12000 
+	
+	ifetcht 1, regc
+	call gpio_get_bit
+	nrtn true
+
+	call frmt_kscan_all_col_pull_up
+	ifetcht 1, regc //deal with GND
+	call gpio_get_bit
+	branch frmt_kscan_press_GND_related, true
+	
+frmt_kscan_check_col_elec_level:
+	bpatchx patch2f_5,mem_patch2f
+
+	ifetcht 1, regc
+	or temp, 0x80, temp
+	call gpio_config_output_patch
+	jam 0, mem_kscan_col_scanned	
+	arg mem_kscan_col_gpio_pin, rega
+frmt_kscan_check_col_elec_level_loop:  
+	ifetcht 1, rega
+	call gpio_get_bit  //only "pdata" , "temp"
+	call frmt_kscan_record_keypress, true  
+	
+	increase 1, rega
+	fetch 1, mem_kscan_col_scanned
+	pincrease 1
+	store 1, mem_kscan_col_scanned
+	fetcht 1, mem_kscan_col_nums
+	isub temp, null
+	nbranch frmt_kscan_check_col_elec_level_loop, positive	
+	rtn
+
+
+frmt_kscan_record_keypress:
+	bpatchx patch2f_6,mem_patch2f
+
+	fetch 1, mem_kscan_row_scanned
+	fetcht 1, mem_kscan_col_nums
+	increase 1, temp
+	imul32 temp, pdata
+	//nop 10000
+	fetcht 1, mem_kscan_col_scanned
+	increase 1, temp
+	iadd temp, pdata
+	iforce queue
+	enable true
+	fetch 8, mem_kscan_record_keypress
+	qsetflag true, pdata
+	store 8, mem_kscan_record_keypress
+
+// 	call ice_break
+// 	fetcht 8, mem_kscan_record_keypress
+// 	setarg LIGHT_ND21KEY_KEY_PAIRING2_COMBINATION
+// 	isub temp, null
+// 	call ice_break, zero
+	rtn
+frmt_kscan_all_col_pull_up:
+	bpatchx patch2f_7,mem_patch2f
+
+	arg mem_kscan_col_gpio_pin, rega
+	fetch 1, mem_kscan_col_nums
+	iforce loopcnt
+	branch frmt_kscan_input_pull_up_loop
+
+gpio_config_output_patch:	
+	setflip 7, temp
+	branch gpio_config_output
+
Index: program/app_light/remoter/frmt_fml_remoter_lib.prog
===================================================================
--- /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/program/app_light/remoter/frmt_fml_remoter_lib.prog	(nonexistent)
+++ /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/program/app_light/remoter/frmt_fml_remoter_lib.prog	(working copy)
@@ -0,0 +1,546 @@
+
+
+
+frmt_light_lighten_short_press:
+	fetch 1, mem_light_color_and_lgtness_long_press_adv_enable
+	beq 1, frmt_light_lighten
+	jam LIGHT_LIGHTEN_RELEASE_ADV_FLAG, mem_light_release_adv_flag
+	branch frmt_light_light_color_and_lightness_change_common
+
+frmt_light_darken_short_press:
+	fetch 1, mem_light_color_and_lgtness_long_press_adv_enable
+	beq 1, frmt_light_darken
+	jam LIGHT_DARKEN_RELEASE_ADV_FLAG, mem_light_release_adv_flag
+	branch frmt_light_light_color_and_lightness_change_common
+
+frmt_light_to_W_short_press:
+	fetch 1, mem_light_color_and_lgtness_long_press_adv_enable
+	beq 1, frmt_light_to_W
+	jam LIGHT_TO_W_RELEASE_ADV_FLAG, mem_light_release_adv_flag
+	branch frmt_light_light_color_and_lightness_change_common
+
+frmt_light_to_Y_short_press:
+	fetch 1, mem_light_color_and_lgtness_long_press_adv_enable
+	beq 1,frmt_light_to_Y
+	jam LIGHT_TO_Y_RELEASE_ADV_FLAG, mem_light_release_adv_flag
+frmt_light_light_color_and_lightness_change_common:
+	bpatchx patch30_0,mem_patch30
+	fetch 2, mem_light_short_keypress_timeout
+	nrtn blank
+	jam 0, mem_le_adv_enable
+	jam SHORT_PRESS_TIMEOUT, mem_light_short_keypress_timeout
+	rtn	
+
+frmt_light_to_Y:
+	call frmt_light_to_Y_V2
+	fetch 1,mem_special_agreemeet_enable
+	beq 1, gem_light_to_Y
+	beq 2,key_light_to_Y
+	jam 0, mem_light_release_adv_flag
+	jam LIGHT_CMD_FTD_COLOR_STATE_CHANGE, mem_FTD_adv_raw
+	jam 0x18, mem_FTD_adv_raw_reserved
+	call frmt_light_set_PDU_common_short_press_with_3Bytes_data_reset		
+	branch frmt_adv_rear_6bytes_and_whitening
+
+
+frmt_light_to_W:
+	call frmt_light_to_W_V2
+	fetch 1,mem_special_agreemeet_enable
+	beq 1, gem_light_to_W
+	beq 2,key_light_to_W
+	jam 0, mem_light_release_adv_flag
+	jam LIGHT_CMD_FTD_COLOR_STATE_CHANGE, mem_FTD_adv_raw
+	jam 0x24, mem_FTD_adv_raw_reserved
+	call frmt_light_set_PDU_common_short_press_with_3Bytes_data_reset
+	branch frmt_adv_rear_6bytes_and_whitening
+
+frmt_light_darken:
+	call frmt_light_darken_V2
+	fetch 1,mem_special_agreemeet_enable
+	beq 1, gem_light_darken
+	beq 2, key_light_darken
+	jam 0, mem_light_release_adv_flag
+	jam LIGHT_CMD_FTD_COLOR_STATE_CHANGE, mem_FTD_adv_raw
+	jam 0x28, mem_FTD_adv_raw_reserved
+	call frmt_light_set_PDU_common_short_press_with_3Bytes_data_reset
+	branch frmt_adv_rear_6bytes_and_whitening
+
+frmt_light_lighten:
+	call frmt_light_lighten_V2
+	fetch 1,mem_special_agreemeet_enable
+	beq 1, gem_light_lighten
+	beq 2, key_light_lighten
+	jam 0, mem_light_release_adv_flag	
+	jam LIGHT_CMD_FTD_COLOR_STATE_CHANGE, mem_FTD_adv_raw
+	jam 0x14, mem_FTD_adv_raw_reserved
+	call frmt_light_set_PDU_common_short_press_with_3Bytes_data_reset
+	branch frmt_adv_rear_6bytes_and_whitening
+
+frmt_light_set_PDU_common_short_press_with_3Bytes_data_reset:
+	bpatchx patch30_1,mem_patch30
+	setarg 0    //clear data part (3 Bytes)
+	store 3, mem_FTD_adv_raw_data	
+	branch frmt_light_set_PDU_common_short_press
+
+
+
+frmt_light_release_set1_and_long_press_set1:
+	jam 1, mem_light_num_of_long_press
+	call frmt_light_long_press_flag_reset
+	jam 1, mem_light_release_adv_flag
+	rtn
+
+frmt_light_release_set2_and_long_press_set2:
+	jam 2, mem_light_num_of_long_press
+	call frmt_light_long_press_flag_reset
+	jam 2, mem_light_release_adv_flag
+	rtn
+
+frmt_light_release_set3_and_long_press_set3:
+	jam 3, mem_light_num_of_long_press
+	call frmt_light_long_press_flag_reset
+	jam 3, mem_light_release_adv_flag
+	rtn
+
+frmt_light_release_set4_and_long_press_set4:
+	jam 4, mem_light_num_of_long_press
+	call frmt_light_long_press_flag_reset
+	jam 4, mem_light_release_adv_flag
+	rtn
+
+frmt_light_long_press_flag_reset:
+	bpatchx patch30_2,mem_patch30
+	fetch 2, mem_long_press_timeout
+	nrtn blank
+	fetch 2,mem_claer_code_time
+	store 2, mem_long_press_timeout
+	pincrease 1
+	store 2, mem_light_lpm_enable_timeout
+	fetch 1,mem_special_agreemeet_enable
+	sub pdata,1,null
+	branch gem_long_keypress_time,zero	
+	rtn
+
+frmt_light_night_light:
+	call frmt_light_night_light_V2
+	jam LIGHT_CMD_NIGHT_LIGHT, mem_FTD_adv_raw
+	branch frmt_adv_rear_6bytes_and_whitening_and_set_PDU_common_short_press	
+
+frmt_light_master_pairing:
+	jam 0, mem_groups_num
+	jam 0, mem_ble_v2_group_index
+
+frmt_light_pairing_process:
+	setarg KEY_PRESS_LED_ON_TIME
+	store 2, mem_indicator_led_turn_on_timeout
+	jam 1, mem_indicator_turn_on_enable
+frmt_light_pairing_process_without_led_flag_set:	
+	bpatchx patch30_3,mem_patch30
+	call frmt_light_master_pairing_V2
+	jam 1, mem_le_adv_enable
+	fetch 2, mem_light_adv_time
+	lshift2 pdata, pdata
+	store 2, mem_ble_light_adv_timeout
+	pincrease 1
+	store 2, mem_light_lpm_enable_timeout	
+	
+	fetch 1, mem_light_manufacture_id
+	store 1, mem_FTD_adv_raw_reserved
+	jam LIGHT_CMD_PAIRING_CODE, mem_FTD_adv_raw
+
+	fetch 1, mem_FTD_adv_raw_packet_num
+	pincrease 1
+	store 1, mem_FTD_adv_raw_packet_num
+	jam 0x81, mem_FTD_adv_raw_data+2
+	
+	fetch 1,mem_ble_v2_maintype
+	sub pdata,3,null
+	call frmt_fan_lamp,zero
+	fetch 1,mem_ble_v2_maintype
+	sub pdata,5,null
+	call frmt_solar_lamp,zero
+	
+	call frmt_light_groups_pairing_address_set_set
+	branch frmt_adv_rear_6bytes_and_whitening
+	
+frmt_light_groups_pairing_address_set_set:
+	fetch 2, mem_FTD_adv_raw_device_add_temp
+	arg 0xf0ff, temp
+	iand temp, pdata
+	store 2, mem_FTD_adv_raw_data
+	branch frmt_light_groups_address_set
+
+frmt_light_clear_code:
+// 	call ice_break	
+	bpatchx patch30_4,mem_patch30
+	call frmt_light_clear_code_V2
+	jam 1, mem_indicator_turn_on_enable
+
+	jam 1, mem_le_adv_enable
+	setarg KEY_PRESS_LED_ON_TIME
+	lshift2 pdata, pdata
+	store 2, mem_indicator_led_turn_on_timeout
+	fetch 2,mem_light_adv_time
+	lshift2 pdata, pdata
+
+	store 2, mem_ble_light_adv_timeout
+	pincrease 1
+	store 2, mem_light_lpm_enable_timeout
+	jam LIGHT_CMD_CLEAR_CODE, mem_FTD_adv_raw
+	setarg LIGHT_FTD_CLEAR_CODE_ADDR
+	store 3, mem_FTD_adv_raw_device_add
+	fetch 1, mem_FTD_adv_raw_packet_num
+	pincrease 1
+	store 1, mem_FTD_adv_raw_packet_num
+	
+	fetch 1,mem_ble_v2_maintype
+	sub pdata,3,null
+	call frmt_fan_lamp,zero
+	fetch 1,mem_ble_v2_maintype
+	sub pdata,5,null
+	call frmt_solar_lamp,zero
+	branch frmt_adv_rear_6bytes_and_whitening
+
+frmt_light_master_on_and_long_press_set0:
+	jam 0, mem_light_num_of_long_press
+	call frmt_light_long_press_flag_reset
+frmt_light_master_on:
+	jam 0, mem_groups_num
+	call frmt_light_master_on_V2
+	fetch 1,mem_special_agreemeet_enable
+	beq 1, gem_light_master_on
+	beq 2, key_light_master_on
+frmt_light_on_without_group_set:
+	jam 1, mem_light_on_and_off_flag
+	jam LIGHT_CMD_TURN_ON, mem_FTD_adv_raw
+	call frmt_light_groups_address_set
+	branch frmt_adv_rear_6bytes_and_whitening_and_set_PDU_common_short_press
+
+frmt_light_master_off_and_long_press_set0:
+	jam 0, mem_light_num_of_long_press
+	call frmt_light_long_press_flag_reset
+	branch frmt_light_master_off
+frmt_light_master_on_and_off:
+	fetch 1, mem_light_on_and_off_flag
+	branch frmt_light_master_on, blank
+frmt_light_master_off:
+	call frmt_light_master_off_V2
+	jam 0, mem_groups_num
+	fetch 1,mem_special_agreemeet_enable
+	beq 1, gem_light_master_off	
+	beq 2, key_light_master_off	
+frmt_light_off_without_group_set:
+	jam 0, mem_light_on_and_off_flag	
+	jam LIGHT_CMD_TURN_OFF, mem_FTD_adv_raw
+	call frmt_light_groups_address_set
+	branch frmt_adv_rear_6bytes_and_whitening_and_set_PDU_common_short_press
+
+frmt_light_on_and_off_1opcode_and_long_press_set0:
+	jam 0, mem_light_num_of_long_press
+	call frmt_light_long_press_flag_reset
+frmt_light_on_and_off_1opcode:
+	call frmt_light_on_and_off_1opcode_v2
+	jam LIGHT_CMD_TURN_ON_AND_OFF, mem_FTD_adv_raw
+	branch frmt_adv_rear_6bytes_and_whitening_and_set_PDU_common_short_press
+
+frmt_light_color_switch_WY_only_payload_set:
+	jam LIGHT_CMD_COLOR_SWTICH, mem_FTD_adv_raw
+	jam LIGHT_DATA_PART_FF, mem_FTD_adv_raw_data
+	jam LIGHT_DATA_PART_FF, mem_FTD_adv_raw_data+1
+	jam LIGHT_CMD_FTD_COLOR_SWTICH_RESERVED, mem_FTD_adv_raw_reserved
+	rtn
+frmt_light_color_switch_W_only_payload_set:
+	jam LIGHT_CMD_COLOR_SWTICH, mem_FTD_adv_raw
+	jam LIGHT_DATA_PART_FF, mem_FTD_adv_raw_data
+	jam LIGHT_CMD_FTD_COLOR_SWTICH_RESERVED, mem_FTD_adv_raw_reserved
+	rtn
+	
+frmt_light_color_switch_Y_only_payload_set:
+	jam LIGHT_CMD_COLOR_SWTICH, mem_FTD_adv_raw
+	jam LIGHT_DATA_PART_FF, mem_FTD_adv_raw_data+1
+	jam LIGHT_CMD_FTD_COLOR_SWTICH_RESERVED, mem_FTD_adv_raw_reserved
+	rtn
+
+frmt_light_color_switch:
+	fetch 1,mem_light_color_switch_cnt
+	sub pdata,3,null
+	call frmt_color_switch_cnt_set0,zero
+	beq 0,frmt_light_color_switch_WY
+	beq 1,frmt_light_color_switch_W
+	beq 2,frmt_light_color_switch_Y
+	rtn
+frmt_color_switch_cnt_set0:
+	setarg 0
+	store 1,mem_light_color_switch_cnt
+	rtn
+frmt_light_color_switch_WY:
+	fetch 1, mem_light_color_switch_cnt
+	pincrease 1
+	store 1,mem_light_color_switch_cnt
+	call frmt_light_color_switch_WY_V2
+	fetch 1,mem_special_agreemeet_enable
+	beq 1,gem_light_color_switch
+	call frmt_light_color_switch_WY_only_payload_set
+	branch frmt_adv_rear_6bytes_and_whitening_and_set_PDU_common_short_press	
+frmt_light_color_switch_W:
+	fetch 1, mem_light_color_switch_cnt
+	pincrease 1
+	store 1,mem_light_color_switch_cnt
+	call frmt_light_color_switch_W_V2
+	fetch 1,mem_special_agreemeet_enable
+	beq 1,gem_light_color_switch
+	call frmt_light_color_switch_W_only_payload_set
+	branch frmt_adv_rear_6bytes_and_whitening_and_set_PDU_common_short_press
+frmt_light_color_switch_Y:
+	fetch 1, mem_light_color_switch_cnt
+	pincrease 1
+	store 1,mem_light_color_switch_cnt
+	call frmt_light_color_switch_Y_V2
+	fetch 1,mem_special_agreemeet_enable
+	beq 1,gem_light_color_switch
+	call frmt_light_color_switch_Y_only_payload_set
+	branch frmt_adv_rear_6bytes_and_whitening_and_set_PDU_common_short_press
+
+frmt_light_aid_turn_on_and_off:
+	fetch 1,mem_light_aid_swtich_flag  // 0:on   1:off
+	beq 0, frmt_light_aid_turn_on
+frmt_light_aid_turn_off:
+	call frmt_light_aid_turn_off_V2
+	jam 0, mem_light_aid_swtich_flag
+	fetch 1,mem_special_agreemeet_enable
+	beq 1,gem_light_aid_turn_onoff
+	beq 2,key_light_Aux_lamp_on_and_off_KY
+	jam LIGHT_CMD_AID_TURN_OFF, mem_FTD_adv_raw 
+	branch frmt_adv_rear_6bytes_and_whitening_and_set_PDU_common_short_press	
+frmt_light_aid_turn_on:
+	call frmt_light_aid_turn_on_V2
+	jam 1,mem_light_aid_swtich_flag
+	fetch 1,mem_special_agreemeet_enable
+	beq 1,gem_light_aid_turn_onoff
+	beq 2,key_light_Aux_lamp_on_and_off_KY
+	jam LIGHT_CMD_AID_TURN_ON, mem_FTD_adv_raw
+	branch frmt_adv_rear_6bytes_and_whitening_and_set_PDU_common_short_press
+
+frmt_light_pcnt_50_and_100percent:
+	fetch 1,mem_light_brightness_switch_flag
+	beq 0, frmt_light_pcnt_50_percent
+frmt_light_pcnt_100_percent:
+	call frmt_light_pcnt_100_percent_V2
+	jam LIGHT_CMD_COLOR_SWTICH, mem_FTD_adv_raw
+	jam LIGHT_DATA_PART_FF,  mem_FTD_adv_raw_data
+	jam LIGHT_DATA_PART_FF,  mem_FTD_adv_raw_data+1
+	jam 0, mem_light_brightness_switch_flag
+	jam 2, mem_FTD_adv_raw_reserved	
+	branch frmt_adv_rear_6bytes_and_whitening_and_set_PDU_common_short_press
+frmt_light_pcnt_50_percent:
+	call frmt_light_pcnt_50_percent_V2
+	jam 1, mem_FTD_adv_raw_reserved
+	jam LIGHT_CMD_COLOR_SWTICH, mem_FTD_adv_raw
+	jam LIGHT_FTD_DATA_PART_PCNT_50PERCENT,  mem_FTD_adv_raw_data
+	jam LIGHT_FTD_DATA_PART_PCNT_50PERCENT,  mem_FTD_adv_raw_data+1
+	jam 1, mem_light_brightness_switch_flag
+	branch frmt_adv_rear_6bytes_and_whitening_and_set_PDU_common_short_press
+
+frmt_light_rgb_auto:
+	fetch 1,mem_special_agreemeet_enable
+	sub pdata,1,null
+	call gem_light_rgb_auto,zero
+	jam 1,mem_light_rgb_on_and_off_flag
+	fetch 1,mem_light_rgb_auto_flag
+	beq 0,frmt_light_rgb_circulation_1e
+frmt_light_rgb_circulation_1f:						//off
+	call frmt_light_rgb_circulation_1f_V2
+	jam LIGHT_CMD_RGB_1F, mem_FTD_adv_raw 
+	jam 0, mem_light_rgb_auto_flag
+	branch frmt_adv_rear_6bytes_and_whitening_and_set_PDU_common_short_press
+frmt_light_rgb_circulation_1e:						//on
+	call frmt_light_rgb_circulation_1e_V2
+	jam LIGHT_CMD_RGB_1E, mem_FTD_adv_raw 
+	jam 1, mem_light_rgb_auto_flag
+	branch frmt_adv_rear_6bytes_and_whitening_and_set_PDU_common_short_press	
+
+frmt_light_rgb_manual:
+	fetch 1,mem_special_agreemeet_enable
+	sub pdata,1,null
+	call gem_light_rgb_step,zero
+	jam LIGHT_CMD_RGB_MANNUL, mem_FTD_adv_raw
+	fetch 1, mem_light_rgb_hand_actuated_flag
+	beq 0,frmt_light_rgb_manual0
+	beq 1,frmt_light_rgb_manual1
+	beq 2,frmt_light_rgb_manual2
+	beq 3,frmt_light_rgb_manual3
+	beq 4,frmt_light_rgb_manual4
+	beq 5,frmt_light_rgb_manual5
+	beq 6,frmt_light_rgb_manual6
+	rtn
+frmt_light_rgb_manual6:	
+	call frmt_light_rgb_manual6_V2
+	jam 0, mem_light_rgb_hand_actuated_flag
+	jam  LIGHT_DATA_PART_FF, mem_FTD_adv_raw_data
+	jam  LIGHT_DATA_PART_FF, mem_FTD_adv_raw_data+1
+	jam  LIGHT_DATA_PART_FF, mem_FTD_adv_raw_data+2
+	branch frmt_adv_rear_6bytes_and_whitening_and_set_PDU_common_short_press
+
+frmt_light_rgb_manual5:
+	call frmt_light_rgb_manual5_V2
+	jam 6, mem_light_rgb_hand_actuated_flag
+	jam  LIGHT_DATA_PART_FF, mem_FTD_adv_raw_data
+	jam  LIGHT_DATA_PART_FF, mem_FTD_adv_raw_data+2
+	branch frmt_adv_rear_6bytes_and_whitening_and_set_PDU_common_short_press
+
+frmt_light_rgb_manual4:
+	call frmt_light_rgb_manual4_V2
+	jam 5, mem_light_rgb_hand_actuated_flag
+	jam  LIGHT_DATA_PART_FF, mem_FTD_adv_raw_data+1
+	jam  LIGHT_DATA_PART_FF, mem_FTD_adv_raw_data+2
+	branch frmt_adv_rear_6bytes_and_whitening_and_set_PDU_common_short_press
+
+frmt_light_rgb_manual3:
+	call frmt_light_rgb_manual3_V2
+	jam 4, mem_light_rgb_hand_actuated_flag
+	jam  LIGHT_DATA_PART_FF, mem_FTD_adv_raw_data
+	jam  LIGHT_DATA_PART_FF, mem_FTD_adv_raw_data+1
+	branch frmt_adv_rear_6bytes_and_whitening_and_set_PDU_common_short_press	
+
+frmt_light_rgb_manual2:
+	call frmt_light_rgb_manual2_V2
+	jam 3, mem_light_rgb_hand_actuated_flag
+	jam  LIGHT_DATA_PART_FF, mem_FTD_adv_raw_data+2
+	branch frmt_adv_rear_6bytes_and_whitening_and_set_PDU_common_short_press
+
+frmt_light_rgb_manual1:
+	call frmt_light_rgb_manual1_V2
+	jam 2, mem_light_rgb_hand_actuated_flag
+	jam  LIGHT_DATA_PART_FF, mem_FTD_adv_raw_data+1
+	branch frmt_adv_rear_6bytes_and_whitening_and_set_PDU_common_short_press
+
+frmt_light_rgb_manual0:
+	call frmt_light_rgb_manual0_V2
+	jam 1, mem_light_rgb_hand_actuated_flag
+	jam  LIGHT_DATA_PART_FF, mem_FTD_adv_raw_data
+	branch frmt_adv_rear_6bytes_and_whitening_and_set_PDU_common_short_press
+
+frmt_light_timing_1min:
+	call frmt_light_timing_1min_V2
+	jam 1, mem_FTD_adv_raw_data	
+frmt_light_timing_off:
+	jam LIGHT_CMD_DELAY_OFF, mem_FTD_adv_raw
+	branch frmt_adv_rear_6bytes_and_whitening_and_set_PDU_common_short_press
+
+frmt_light_group1_on_and_long_press_set1:
+	jam 1, mem_light_num_of_long_press
+	call frmt_light_long_press_flag_reset	
+frmt_light_group1_on:
+	call frmt_light_group1_on_V2
+	jam 1, mem_light_group1_on_and_off_flag
+	jam LIGHT_CMD_TURN_ON, mem_FTD_adv_raw
+	jam 1, mem_groups_num
+	branch frmt_adv_rear_6bytes_and_whitening_and_set_PDU_common_short_press
+
+frmt_light_group2_on_and_long_press_set2:
+	jam 2, mem_light_num_of_long_press
+	call frmt_light_long_press_flag_reset	
+frmt_light_group2_on:
+	call frmt_light_group2_on_V2
+	jam 1, mem_light_group2_on_and_off_flag
+	jam LIGHT_CMD_TURN_ON, mem_FTD_adv_raw
+	jam 2, mem_groups_num
+	branch frmt_adv_rear_6bytes_and_whitening_and_set_PDU_common_short_press
+
+frmt_light_group3_on_and_long_press_set3:
+	jam 3, mem_light_num_of_long_press
+	call frmt_light_long_press_flag_reset	
+frmt_light_group3_on:
+	jam 1, mem_light_group3_on_and_off_flag
+	jam LIGHT_CMD_TURN_ON, mem_FTD_adv_raw
+	jam 3, mem_groups_num
+	branch frmt_adv_rear_6bytes_and_whitening_and_set_PDU_common_short_press
+	
+frmt_light_group4_on_and_long_press_set4:
+	jam 4, mem_light_num_of_long_press
+	call frmt_light_long_press_flag_reset	
+frmt_light_group4_on:
+	call frmt_light_group4_on_V2
+	jam 1, mem_light_group4_on_and_off_flag
+	jam LIGHT_CMD_TURN_ON, mem_FTD_adv_raw
+	jam 4, mem_groups_num
+	branch frmt_adv_rear_6bytes_and_whitening_and_set_PDU_common_short_press
+	
+frmt_light_group1_on_and_off_and_long_press_set1:
+	jam 1, mem_light_num_of_long_press
+	call frmt_light_long_press_flag_reset
+frmt_light_group1_on_and_off:
+	fetch 1, mem_light_group1_on_and_off_flag
+	branch frmt_light_group1_on, blank
+frmt_light_group1_off:
+	call frmt_light_group1_off_V2
+	jam 0, mem_light_group1_on_and_off_flag
+	jam LIGHT_CMD_TURN_OFF, mem_FTD_adv_raw
+	jam 1, mem_groups_num
+	branch frmt_adv_rear_6bytes_and_whitening_and_set_PDU_common_short_press
+
+
+frmt_light_group2_on_and_off_and_long_press_set2:
+	jam 2, mem_light_num_of_long_press
+	call frmt_light_long_press_flag_reset
+frmt_light_group2_on_and_off:
+	fetch 1, mem_light_group2_on_and_off_flag
+	branch frmt_light_group2_on, blank
+frmt_light_group2_off:	
+	call frmt_light_group2_off_V2
+	jam 0, mem_light_group2_on_and_off_flag
+	jam LIGHT_CMD_TURN_OFF, mem_FTD_adv_raw
+	jam 2, mem_groups_num
+	//call p_light_groups_address_set
+	branch frmt_adv_rear_6bytes_and_whitening_and_set_PDU_common_short_press
+
+frmt_light_group3_on_and_off_and_long_press_set3:
+	jam 3, mem_light_num_of_long_press
+	call frmt_light_long_press_flag_reset
+frmt_light_group3_on_and_off:
+	fetch 1, mem_light_group3_on_and_off_flag
+	branch frmt_light_group3_on, blank
+frmt_light_group3_off:
+	call frmt_light_group3_off_V2
+	jam 0, mem_light_group3_on_and_off_flag
+	jam LIGHT_CMD_TURN_OFF, mem_FTD_adv_raw
+	jam 3, mem_groups_num
+	//call p_light_groups_address_set	
+	branch frmt_adv_rear_6bytes_and_whitening_and_set_PDU_common_short_press
+
+frmt_light_group4_on_and_off_and_long_press_set4:
+	jam 4, mem_light_num_of_long_press
+	call frmt_light_long_press_flag_reset
+frmt_light_group4_on_and_off:
+	fetch 1, mem_light_group4_on_and_off_flag
+	branch frmt_light_group4_on, blank
+frmt_light_group4_off:
+	call frmt_light_group4_off_V2
+	jam 0, mem_light_group4_on_and_off_flag
+	jam LIGHT_CMD_TURN_OFF, mem_FTD_adv_raw
+	jam 4, mem_groups_num
+	//call p_light_groups_address_set
+	branch frmt_adv_rear_6bytes_and_whitening_and_set_PDU_common_short_press
+
+frmt_light_pairing_group1:	
+	jam 1, mem_groups_num
+	jam 1, mem_ble_v2_group_index
+	branch frmt_light_pairing_process
+
+frmt_light_pairing_group2:	
+	jam 2, mem_groups_num
+	jam 2, mem_ble_v2_group_index
+	branch frmt_light_pairing_process
+
+frmt_light_pairing_group3:	
+	jam 3, mem_groups_num
+	jam 3, mem_ble_v2_group_index
+	branch frmt_light_pairing_process
+
+frmt_light_pairing_group4:	
+	jam 4, mem_groups_num
+	jam 4, mem_ble_v2_group_index
+	branch frmt_light_pairing_process
+
+
+	
Index: program/app_light/remoter/frmt_fml_remoter_lib_fan.prog
===================================================================
--- /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/program/app_light/remoter/frmt_fml_remoter_lib_fan.prog	(nonexistent)
+++ /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/program/app_light/remoter/frmt_fml_remoter_lib_fan.prog	(working copy)
@@ -0,0 +1,91 @@
+
+frmt_fan_master_off:
+	call frmt_fan_master_off_v2
+	jam FAN_CMD_MASTER_ON_AND_OFF, mem_FTD_adv_raw
+	jam 0, mem_FTD_adv_raw_data	
+	branch frmt_adv_rear_6bytes_and_whitening_and_set_PDU_common_short_press
+
+frmt_fan_turning_forward_and_reverse:
+	fetch 1, mem_fan_direction_alternant
+	branch frmt_fan_turning_reverse, blank
+	jam 0, mem_fan_direction_alternant
+	branch frmt_fan_turning_forward
+frmt_fan_turning_reverse:
+	call frmt_fan_turing_reverse_v2
+	jam 1, mem_fan_direction_alternant
+	jam FAN_CMD_DIRECTION, mem_FTD_adv_raw
+	jam 1, mem_FTD_adv_raw_data
+	branch frmt_adv_rear_6bytes_and_whitening_and_set_PDU_common_short_press
+frmt_fan_turning_forward:
+	call frmt_fan_turing_forward_v2
+	jam FAN_CMD_DIRECTION, mem_FTD_adv_raw
+	jam 0, mem_FTD_adv_raw_data
+	branch frmt_adv_rear_6bytes_and_whitening_and_set_PDU_common_short_press
+
+frmt_fan_natural_wind:
+	call frmt_fan_natural_wind_v2
+	jam FAN_CMD_MODE, mem_FTD_adv_raw
+	jam 2, mem_FTD_adv_raw_data
+	branch frmt_adv_rear_6bytes_and_whitening_and_set_PDU_common_short_press	
+
+frmt_fan_tap_position_1:
+	call frmt_fan_tap_position_1_v2
+	setarg 1
+frmt_fan_tap_position_common:
+	store 1, mem_FTD_adv_raw_data
+	jam FAN_CMD_SPEED_32,mem_FTD_adv_raw
+	jam 6, mem_FTD_adv_raw_data+1	
+	branch frmt_adv_rear_6bytes_and_whitening_and_set_PDU_common_short_press
+
+frmt_fan_tap_position_2:
+	call frmt_fan_tap_position_2_v2
+	setarg 2
+	branch frmt_fan_tap_position_common
+	
+frmt_fan_tap_position_3:
+	call frmt_fan_tap_position_3_v2
+	setarg 3
+	branch frmt_fan_tap_position_common
+	
+frmt_fan_tap_position_4:
+	call frmt_fan_tap_position_4_v2
+	setarg 4
+	branch frmt_fan_tap_position_common
+	
+frmt_fan_tap_position_5:
+	call frmt_fan_tap_position_5_v2
+	setarg 5
+	branch frmt_fan_tap_position_common
+	
+frmt_fan_tap_position_6:
+	call frmt_fan_tap_position_6_v2
+	setarg 6
+	branch frmt_fan_tap_position_common
+
+frmt_fan_stop_fan_and_long_press_set1:
+	jam 1, mem_light_num_of_long_press
+	call frmt_light_long_press_flag_reset
+frmt_fan_stop_fan:
+	call frmt_fan_stop_fan_v2
+	jam FAN_CMD_SPEED_31,mem_FTD_adv_raw
+	jam 0, mem_FTD_adv_raw_data
+	branch frmt_adv_rear_6bytes_and_whitening_and_set_PDU_common_short_press
+
+
+frmt_fan_deflector_on_and_off:
+	fetch 1, mem_fan_deflector_flag
+	branch frmt_fan_deflector_on, blank
+frmt_fan_deflector_off:
+	call frmt_fan_deflector_off_v2
+	jam 0, mem_fan_deflector_flag
+	jam FAN_CMD_DEFLECTOR, mem_FTD_adv_raw
+	jam 0, mem_FTD_adv_raw_data
+	branch frmt_adv_rear_6bytes_and_whitening_and_set_PDU_common_short_press	
+	
+frmt_fan_deflector_on:
+	call frmt_fan_deflector_on_v2
+	jam 1, mem_fan_deflector_flag
+	jam FAN_CMD_DEFLECTOR, mem_FTD_adv_raw
+	jam 1, mem_FTD_adv_raw_data
+	branch frmt_adv_rear_6bytes_and_whitening_and_set_PDU_common_short_press
+
Index: program/app_light/remoter/frmt_fml_remoter_lib_fan_v2.prog
===================================================================
--- /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/program/app_light/remoter/frmt_fml_remoter_lib_fan_v2.prog	(nonexistent)
+++ /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/program/app_light/remoter/frmt_fml_remoter_lib_fan_v2.prog	(working copy)
@@ -0,0 +1,65 @@
+
+
+frmt_fan_master_off_v2:
+	setarg FAN_CMD_MASTER_ON_AND_OFF_V2
+	store 2, mem_ble_v2_cmd
+	branch frmt_ble_v2_encoder_pack
+
+frmt_fan_turing_reverse_v2:
+	jam 1, mem_ble_v2_para+1
+frmt_fan_turing_forward_v2:
+	setarg FAN_CMD_WIND_DIRECTION_V2
+	store 2, mem_ble_v2_cmd
+	branch frmt_ble_v2_encoder_pack
+
+frmt_fan_natural_wind_v2:
+	jam 0x02, mem_ble_v2_para+1
+frmt_fan_mode_sel_common_v2:
+	setarg FAN_CMD_MODE_SEL_V2
+	store 2, mem_ble_v2_cmd
+	branch frmt_ble_v2_encoder_pack
+
+frmt_fan_tap_position_1_v2:
+	setarg 1
+frmt_fan_tap_position_common_v2:
+	store 1, mem_ble_v2_para+2
+	setarg FAN_CMD_WIND_SPEED_V2
+	store 2, mem_ble_v2_cmd
+	jam 0x20, mem_ble_v2_para+1
+	branch frmt_ble_v2_encoder_pack
+
+frmt_fan_tap_position_2_v2:
+	setarg 2
+	branch frmt_fan_tap_position_common_v2
+	
+frmt_fan_tap_position_3_v2:
+	setarg 3
+	branch frmt_fan_tap_position_common_v2	
+
+frmt_fan_tap_position_4_v2:
+	setarg 4
+	branch frmt_fan_tap_position_common_v2	
+
+frmt_fan_tap_position_5_v2:
+	setarg 5
+	branch frmt_fan_tap_position_common_v2	
+	
+frmt_fan_tap_position_6_v2:
+	setarg 6
+	branch frmt_fan_tap_position_common_v2	
+
+frmt_fan_stop_fan_v2:
+	setarg 0
+	branch frmt_fan_tap_position_common_v2
+
+
+frmt_fan_deflector_on_v2:
+	jam 1, mem_ble_v2_para+1
+frmt_fan_deflector_off_v2:	
+	setarg FAN_CMD_DEFLECTOR_V2
+	store 2, mem_ble_v2_cmd
+	branch frmt_ble_v2_encoder_pack
+
+
+
+
Index: program/app_light/remoter/frmt_fml_remoter_lib_v2.prog
===================================================================
--- /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/program/app_light/remoter/frmt_fml_remoter_lib_v2.prog	(nonexistent)
+++ /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/program/app_light/remoter/frmt_fml_remoter_lib_v2.prog	(working copy)
@@ -0,0 +1,236 @@
+
+frmt_light_to_Y_V2:
+	jam 0x18, mem_ble_v2_para+1
+	branch frmt_light_common
+
+frmt_light_to_W_V2:
+	jam 0x24, mem_ble_v2_para+1
+	branch frmt_light_common
+
+
+frmt_light_darken_V2:
+	jam 0x28, mem_ble_v2_para+1
+	branch frmt_light_common
+	
+
+frmt_light_lighten_V2:
+	jam 0x14, mem_ble_v2_para+1
+	branch frmt_light_common
+
+frmt_light_common:
+	setarg LIGHT_CMD_LIGHT_CTL_V2
+	store 2, mem_ble_v2_cmd
+	branch frmt_ble_v2_encoder_pack
+
+frmt_ble_v2_encoder_pack:
+	bpatchx patch30_5,mem_patch30
+	call frmt_ble_data_set
+	fetch 1,mem_light_manufacture_id2_v2
+	ncall frmt_have_id2_v2,blank
+	rtn
+	
+frmt_have_id2_v2:
+	bpatchx patch30_6,mem_patch30
+	arg FTD_PDU_LEN, loopcnt
+	arg mem_ble_v2_pdu, contr
+	arg mem_ble_v2_pdu_2, contw
+	call memcpy_fast
+
+	fetch 1,mem_light_manufacture_id2_v2
+	store 1,mem_ble_v2_customer_id
+	fetch 1,mem_ble_v2_packet_num
+	pincrease -1
+	store 1,mem_ble_v2_packet_num
+	call frmt_ble_data_set
+	fetch 1,mem_ble_v2_customer_id_copy
+	store 1,mem_ble_v2_customer_id
+	rtn
+
+frmt_light_night_light_V2:
+	setarg LIGHT_CMD_NIGHT_LIGHT_V2
+	branch frmt_ble_v2_encoder_with_cmd_store_and_para_set0	
+
+
+frmt_light_master_pairing_V2:
+	setarg CMD_PAIRING
+frmt_ble_v2_encoder_with_cmd_store_and_para_set0:
+	store 2, mem_ble_v2_cmd
+	setarg 0
+	store 4, mem_ble_v2_para
+	branch frmt_ble_v2_encoder_pack
+
+frmt_light_clear_code_V2:
+	setarg CMD_CLEAR_CODE
+	branch frmt_ble_v2_encoder_with_cmd_store_and_para_set0	
+
+frmt_light_master_on_V2:
+	jam 0, mem_ble_v2_group_index
+frmt_light_turn_on_common:	
+	setarg LIGHT_CMD_TURN_ON_V2
+	branch frmt_ble_v2_encoder_with_cmd_store_and_para_set0
+
+frmt_light_master_off_V2:
+	jam 0, mem_ble_v2_group_index
+frmt_light_turn_off_common:	
+	setarg LIGHT_CMD_TURN_OFF_V2
+	branch frmt_ble_v2_encoder_with_cmd_store_and_para_set0
+
+frmt_light_on_and_off_1opcode_v2:
+	setarg LIGHT_CMD_TURN_ON_AND_OFF_V2	
+	branch frmt_ble_v2_encoder_with_cmd_store_and_para_set0
+
+frmt_light_color_switch_WY_V2:
+	setarg LIGHT_CMD_LIGHT_CTL_V2
+	store 2, mem_ble_v2_cmd
+	jam 0, mem_ble_v2_para
+	jam LIGHT_CMD_FTD_COLOR_SWTICH_RESERVED, mem_ble_v2_para+1
+	jam LIGHT_DATA_PART_FF, mem_ble_v2_para+2
+	jam LIGHT_DATA_PART_FF, mem_ble_v2_para+3
+	branch frmt_ble_v2_encoder_pack
+
+frmt_light_color_switch_W_V2:
+	setarg LIGHT_CMD_LIGHT_CTL_V2
+	store 2, mem_ble_v2_cmd
+	jam 0, mem_ble_v2_para
+	jam LIGHT_CMD_FTD_COLOR_SWTICH_RESERVED, mem_ble_v2_para+1
+	jam LIGHT_DATA_PART_FF, mem_ble_v2_para+2
+	branch frmt_ble_v2_encoder_pack
+
+frmt_light_color_switch_Y_V2:
+	setarg LIGHT_CMD_LIGHT_CTL_V2
+	store 2, mem_ble_v2_cmd
+	jam 0, mem_ble_v2_para
+	jam LIGHT_CMD_FTD_COLOR_SWTICH_RESERVED, mem_ble_v2_para+1
+	jam LIGHT_DATA_PART_FF, mem_ble_v2_para+3
+	branch frmt_ble_v2_encoder_pack
+
+frmt_light_aid_turn_off_V2:
+	setarg LIGHT_CMD_AIDED_LIGHT_TURN_OFF_V2
+	branch frmt_ble_v2_encoder_with_cmd_store_and_para_set0
+
+frmt_light_aid_turn_on_V2:
+	setarg LIGHT_CMD_AIDED_LIGHT_TURN_ON_V2
+	branch frmt_ble_v2_encoder_with_cmd_store_and_para_set0
+
+frmt_light_pcnt_100_percent_V2:
+	setarg LIGHT_CMD_LIGHT_CTL_V2
+	store 2, mem_ble_v2_cmd
+	jam 0, mem_ble_v2_para
+	jam 0x02, mem_ble_v2_para+1
+	jam LIGHT_DATA_PART_FF, mem_ble_v2_para+2
+	jam LIGHT_DATA_PART_FF, mem_ble_v2_para+3
+	branch frmt_ble_v2_encoder_pack
+
+frmt_light_pcnt_50_percent_V2:
+	setarg LIGHT_CMD_LIGHT_CTL_V2
+	store 2, mem_ble_v2_cmd
+	jam 0, mem_ble_v2_para
+	jam 0x01, mem_ble_v2_para+1
+	jam LIGHT_FTD_DATA_PART_PCNT_50PERCENT, mem_ble_v2_para+2
+	jam LIGHT_FTD_DATA_PART_PCNT_50PERCENT, mem_ble_v2_para+3
+	branch frmt_ble_v2_encoder_pack
+
+frmt_light_rgb_circulation_1f_V2:
+	setarg LIGHT_CMD_RGB_AUTO_TURN_OFF_V2
+	branch frmt_ble_v2_encoder_with_cmd_store_and_para_set0
+
+frmt_light_rgb_circulation_1e_V2:
+	setarg LIGHT_CMD_RGB_AUTO_TURN_ON_V2
+	branch frmt_ble_v2_encoder_with_cmd_store_and_para_set0
+
+frmt_light_rgb_manual0_V2:
+	setarg LIGHT_CMD_RGB_MANUAL_V2
+	store 2, mem_ble_v2_cmd
+	jam LIGHT_DATA_PART_FF, mem_ble_v2_para+1
+	branch frmt_ble_v2_encoder_pack
+	
+frmt_light_rgb_manual1_V2:
+	setarg LIGHT_CMD_RGB_MANUAL_V2
+	store 2, mem_ble_v2_cmd
+	jam LIGHT_DATA_PART_FF, mem_ble_v2_para+2
+	branch frmt_ble_v2_encoder_pack
+
+frmt_light_rgb_manual2_V2:
+	setarg LIGHT_CMD_RGB_MANUAL_V2
+	store 2, mem_ble_v2_cmd
+	jam LIGHT_DATA_PART_FF, mem_ble_v2_para+3
+	branch frmt_ble_v2_encoder_pack
+	
+frmt_light_rgb_manual3_V2:
+	setarg LIGHT_CMD_RGB_MANUAL_V2
+	store 2, mem_ble_v2_cmd
+	jam LIGHT_DATA_PART_FF, mem_ble_v2_para+1
+	jam LIGHT_DATA_PART_FF, mem_ble_v2_para+2
+	branch frmt_ble_v2_encoder_pack	
+	
+frmt_light_rgb_manual4_V2:
+	setarg LIGHT_CMD_RGB_MANUAL_V2
+	store 2, mem_ble_v2_cmd
+	jam LIGHT_DATA_PART_FF, mem_ble_v2_para+1
+	jam LIGHT_DATA_PART_FF, mem_ble_v2_para+3
+	branch frmt_ble_v2_encoder_pack	
+
+frmt_light_rgb_manual5_V2:
+	setarg LIGHT_CMD_RGB_MANUAL_V2
+	store 2, mem_ble_v2_cmd
+	jam LIGHT_DATA_PART_FF, mem_ble_v2_para+2
+	jam LIGHT_DATA_PART_FF, mem_ble_v2_para+3
+	branch frmt_ble_v2_encoder_pack		
+
+frmt_light_rgb_manual6_V2:
+	setarg LIGHT_CMD_RGB_MANUAL_V2
+	store 2, mem_ble_v2_cmd
+	jam LIGHT_DATA_PART_FF, mem_ble_v2_para+1
+	jam LIGHT_DATA_PART_FF, mem_ble_v2_para+2
+	jam LIGHT_DATA_PART_FF, mem_ble_v2_para+3
+	branch frmt_ble_v2_encoder_pack	
+
+frmt_light_timing_1min_V2:
+	setarg 0x01
+frmt_light_timing_off_common_V2:
+	jam PRODUCT_MAINTYPE_LIGHT,mem_ble_v2_maintype
+	store 2, mem_ble_v2_para+1
+	setarg CMD_TIMING_OFF
+	store 2, mem_ble_v2_cmd
+	jam 0, mem_ble_v2_para
+	jam 0, mem_ble_v2_para+3
+	branch frmt_ble_v2_encoder_pack
+
+frmt_light_timing_30s_V2:
+	setarg 0
+	branch frmt_light_timing_off_common_V2
+
+frmt_light_group1_on_V2:
+	jam 1, mem_ble_v2_group_index
+	branch frmt_light_turn_on_common	
+	
+frmt_light_group2_on_V2:
+	jam 2, mem_ble_v2_group_index
+	branch frmt_light_turn_on_common	
+	
+frmt_light_group3_on_V2:
+	jam 3, mem_ble_v2_group_index
+	branch frmt_light_turn_on_common	
+
+frmt_light_group4_on_V2:
+	jam 4, mem_ble_v2_group_index
+	branch frmt_light_turn_on_common
+
+frmt_light_group1_off_V2:
+	jam 1, mem_ble_v2_group_index
+	branch frmt_light_turn_off_common	
+	
+frmt_light_group2_off_V2:
+	jam 2, mem_ble_v2_group_index
+	branch frmt_light_turn_off_common	
+	
+frmt_light_group3_off_V2:
+	jam 3, mem_ble_v2_group_index
+	branch frmt_light_turn_off_common	
+
+frmt_light_group4_off_V2:
+	jam 4, mem_ble_v2_group_index
+	branch frmt_light_turn_off_common
+
+
+
Index: program/app_light/remoter/frmt_fml_remoter_main.prog
===================================================================
--- /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/program/app_light/remoter/frmt_fml_remoter_main.prog	(nonexistent)
+++ /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/program/app_light/remoter/frmt_fml_remoter_main.prog	(working copy)
@@ -0,0 +1,401 @@
+
+
+frmt_main:
+	bpatchx patch30_7,mem_patch30
+	call frmt_kscan_init
+	call frmt_kscan	
+	fetch 8, mem_kscan_record_keypress
+	ncall frmt_kscan_available, blank
+// 	call ice_break
+	call frmt_judge_reset_last_key
+
+	fetch 1, mem_light_release_adv_flag
+	ncall p_light_released_cb, blank
+
+	call frmt_kscan_keypress_analysis_process
+
+	fetch 1, mem_le_adv_enable
+	call frmt_light_indicator_led_flag_set0, blank
+	
+	fetch 1, mem_indicator_turn_on_enable
+	ncall frmt_light_indicator_led, blank
+
+	fetch 1, mem_indicator_turn_on_enable
+	call frmt_light_indicator_led_off, blank
+
+	bpatchx patch31_0,mem_patch31
+
+// 	rtn		
+	branch frmt_app_enter_lpm 
+
+frmt_kscan_keypress_analysis_process:
+	bpatchx patch31_1,mem_patch31
+
+	fetch 1,mem_special_agreemeet_enable
+	sub pdata,1,null
+	call frmt_light_gem_long_press_cnt,zero
+//	fetch 2, mem_long_press_adv_timeout
+//	nrtn blank
+	fetch 8, mem_kscan_record_keypress
+// 	call ice_break
+	rtn blank
+	
+	setarg 0    //clear data part (3 Bytes)
+	store 3, mem_FTD_adv_raw_data
+	store 4, mem_ble_v2_para
+	jam 0, mem_FTD_adv_raw_reserved
+
+	fetch 1, mem_light_release_adv_flag
+	ncall p_light_released_cb, blank
+
+	fetch 2,mem_rmt_keydown_cb
+	branch callback_func
+
+	//branch p_frmt_kscan_keypress_combination_key			//组合键功能
+
+p_light_released_cb:
+	fetch 2,mem_rmt_released_cb
+	branch callback_func
+
+
+frmt_get_current_key:				//获得键值
+	bpatchx patch31_2,mem_patch31
+
+	fetch 8, mem_kscan_record_keypress
+	copy pdata, temp   
+	arg KEYBOARD_MAX_KEYS_NUM, loopcnt
+	arg 0, queue
+	call frmt_kscan_keypress_analysis_get_keypress   //queue is the key num
+	deposit queue   //copy queue to pdata
+	store 1, mem_light_current_key
+	setarg 0
+	store 8, mem_kscan_record_keypress
+	bpatchx patch31_3,mem_patch31
+	branch frmt_light_set_continuous_kps_cnt_reset_timeout    //, blank
+	
+
+frmt_judge_reset_last_key:
+	fetch 1, mem_keypress_analysis_flag
+	nrtn blank
+	
+	jam 0, mem_light_last_key
+	jam 0, mem_light_color_and_lgtness_long_press_adv_enable
+frmt_light_long_press_judge_reset:
+	setarg 0
+	store 2, mem_long_press_timeout
+	store 2,mem_gem_cnt_inces_timeout
+	rtn
+	
+frmt_kscan_keypress_analysis_get_keypress:
+	qisolate1 pdata  
+	rtn true
+	increase 1, queue
+	loop frmt_kscan_keypress_analysis_get_keypress
+	rtn 	
+
+frmt_kscan_available:
+	jam 1, mem_keypress_analysis_flag
+
+	jam 1, mem_indicator_turn_on_enable
+	setarg KEY_PRESS_LED_ON_TIME
+	store 2, mem_indicator_led_turn_on_timeout
+	jam KSCAN_ANALYSIS_INTERVAL, mem_kscan_analysis_interval_timeout
+	rtn
+
+
+frmt_light_indicator_led_flag_set0:
+	bpatchx patch31_4,mem_patch31
+	fetch 1, mem_keypress_analysis_flag
+	nrtn blank
+frmt_light_indicator_led_flag_set0_process:	
+	setarg 0
+	store 2, mem_indicator_led_turn_on_timeout
+	jam 0, mem_indicator_turn_on_enable
+	bpatchx patch31_5,mem_patch31
+	rtn
+
+frmt_light_indicator_led:		
+	bpatchx patch31_6,mem_patch31
+	fetch 1, mem_light_indicator_led
+	rtn blank
+frmt_light_indicator_led_debug:	
+	fetcht 1, mem_light_indicator_led
+	branch gpio_config_output_patch
+	
+
+frmt_light_indicator_led_off:
+	bpatchx patch31_7,mem_patch31
+	fetch 1, mem_light_indicator_led
+	rtn blank
+frmt_light_indicator_led_off_debug:
+	fetcht 1, mem_light_indicator_led
+	or temp, 0x80, temp
+	branch gpio_config_output_patch
+
+
+/************************************低功耗************************************/
+
+frmt_app_enter_lpm:	
+	fetch 2, mem_light_lpm_enable_timeout   
+	nrtn blank
+	fetch 2, mem_indicator_led_turn_on_timeout   
+	nrtn blank
+	bpatchx patch32_0,mem_patch32
+	call frmt_enter_lpm_gpio_config
+frmt_app_enter_lpm_1:
+	call frmt_wakeup_low_config
+
+	bpatchx patch32_1,mem_patch32
+	arg -1, temp   //
+	branch lpm_sleep
+
+/*
+1306AB:
+SDA：gpio0
+SCL：gpio1
+WP：gpio2
+ice: gpio19
+除开上面的IO, 其他没有被使用到矩阵键盘的IO下拉。
+*/
+frmt_enter_lpm_gpio_config:
+	bpatchx patch32_2,mem_patch32
+	arg ENTER_LPM_LEISURE_IO_CONFIG_NUM, loopcnt  //避开0,1,2, 19,4个IO 
+	jam ENTER_LPM_LEISURE_IO_CONFIG_START, mem_light_lpm_gpio_config_io_temp   //跳过012,3个IO.iic,wp.
+frmt_drop_down_unused_io_loopcnt:
+	fetcht 1, mem_light_lpm_gpio_config_io_temp
+	copy temp, queue
+	fetch 4, mem_light_lpm_gpio_config_flag    //为1不处理（说明IO被使用）
+	qisolate1 pdata
+	branch frmt_drop_down_unused_io_loopcnt_no_drop_down, true
+	or temp, 0x80, temp
+	call gpio_config_input
+frmt_drop_down_unused_io_loopcnt_no_drop_down:
+	fetch 1, mem_light_lpm_gpio_config_io_temp
+	pincrease 1
+	store 1, mem_light_lpm_gpio_config_io_temp
+	loop frmt_drop_down_unused_io_loopcnt
+	jam gpcfg_pullup, core_gpio13_conf
+	rtn
+
+frmt_wakeup_low_config:
+	bpatchx patch32_3,mem_patch32
+	fetcht 1, mem_kscan_row_nums
+	copy temp, rega
+	arg 0, regb
+	arg 0, temp
+	storet 8, mem_gpio_wakeup_low	
+	arg mem_kscan_row_gpio_pin, contr
+	call frmt_wakeup_low_config_loop
+	set1 13,temp
+	storet 4, mem_gpio_wakeup_low
+	rtn
+
+frmt_wakeup_low_config_loop:
+	ifetch 1, contr
+	iforce queue
+	qset1 temp
+
+	increase 1, regb
+	deposit rega
+	isub regb, null
+	rtn zero
+	branch frmt_wakeup_low_config_loop
+
+
+
+/************************************发包************************************/
+
+frmt_le_send_adv_ind:
+// call ice_break
+	bpatchx patch32_4,mem_patch32
+	fetch 1,mem_special_agreemeet_enable
+	beq 2,key_le_send_adv_ind
+	fetch 1,mem_ble_v2_customer_id
+	nbranch frmt_send_id1_v2,blank
+frmt_judge_send_id1_v1:
+	fetch 1,mem_special_agreemeet_enable
+	beq 1,frmt_send_id1_v1
+	fetch 1,mem_light_manufacture_id
+	nbranch frmt_send_id1_v1,blank
+frmt_judge_send_id2_v1:
+	fetch 1,mem_light_manufacture_id2
+	nbranch frmt_send_id2_v1,blank
+frmt_judge_send_id2_v2:
+	fetch 1,mem_light_manufacture_id2_v2
+	nbranch frmt_send_id2_v2,blank
+frmt_id_flag_set0:
+	setarg 0
+	store 4,mem_adv_manufacturer_switch_flag
+//	store 1,mem_adv_manufacturer_switch_flag1
+//	store 1,mem_adv_manufacturer_switch_flag2
+//	store 1,mem_adv_manufacturer_switch_flag3
+	rtn
+frmt_le_send_adv_ind_pdu1:	
+	bpatchx patch32_5,mem_patch32
+// 	jam 05,mem_light_whitening_buffer+2
+	arg FTD_PDU_LEN, loopcnt                	
+	arg mem_le_txheader, contw                 
+	arg mem_light_whitening_buffer, contr
+	call memcpy_fast
+	branch le_send_adv_transmit
+
+frmt_le_send_adv_ind_v2:
+	bpatchx patch32_6,mem_patch32
+	arg FTD_PDU_LEN, loopcnt                	
+	arg mem_le_txheader, contw                 
+	arg mem_ble_v2_pdu, contr
+	call memcpy_fast
+	branch le_send_adv_transmit
+
+frmt_le_send_adv_ind_pdu2:
+	bpatchx patch32_7,mem_patch32
+	arg FTD_PDU_LEN, loopcnt                
+	arg mem_le_txheader, contw                 
+	arg mem_light_whitening_buffer_2, contr
+	call memcpy_fast
+	branch le_send_adv_transmit
+
+frmt_le_send_adv_ind_v2_2:
+	bpatchx patch33_0,mem_patch33
+	arg FTD_PDU_LEN, loopcnt                	
+	arg mem_le_txheader, contw                 
+	arg mem_ble_v2_pdu_2, contr
+	call memcpy_fast
+	branch le_send_adv_transmit
+
+frmt_send_id1_v2:
+	bpatchx patch33_1,mem_patch33
+	fetch 1, mem_adv_manufacturer_switch_flag
+	beq 3,frmt_judge_send_id1_v1	
+	pincrease 1
+	store 1, mem_adv_manufacturer_switch_flag
+	branch frmt_le_send_adv_ind_v2
+
+frmt_send_id1_v1:
+	bpatchx patch33_2,mem_patch33
+
+	fetch 1, mem_adv_manufacturer_switch_flag1
+	beq 3,frmt_judge_send_id2_v1	
+	pincrease 1
+	store 1, mem_adv_manufacturer_switch_flag1
+	fetch 1,mem_special_agreemeet_enable
+	beq 1,gem_le_send_adv_ind
+	branch frmt_le_send_adv_ind_pdu1
+
+frmt_send_id2_v1:
+	bpatchx patch33_3,mem_patch33
+
+	fetch 1, mem_adv_manufacturer_switch_flag2
+	beq 3,frmt_judge_send_id2_v2	
+	pincrease 1
+	store 1, mem_adv_manufacturer_switch_flag2
+	branch frmt_le_send_adv_ind_pdu2
+
+frmt_send_id2_v2:
+	bpatchx patch33_4,mem_patch33
+
+	fetch 1, mem_adv_manufacturer_switch_flag3
+	beq 3,frmt_id_flag_set0	
+	pincrease 1
+	store 1, mem_adv_manufacturer_switch_flag3
+	branch frmt_le_send_adv_ind_v2_2
+
+gem_le_send_adv_ind:
+	arg GEM_PDU_LEN, loopcnt                   
+	arg mem_le_txheader, contw       
+	arg mem_light_whitening_buffer, contr   
+	call memcpy_fast
+	branch le_send_adv_transmit
+
+key_le_send_adv_ind:					//科云
+// call ice_break
+	fetch 1, mem_adv_cnts
+	pincrease 1
+	store 1, mem_adv_cnts
+	sub pdata,3,null
+	branch frmt_le_send_adv_ind_v2,positive
+	sub pdata, 6, null
+	branch key_le_send_adv_ind_KY1, positive
+	sub pdata, 9, null
+	branch key_le_send_adv_ind_KY,positive
+	setarg 0
+	store 1,mem_adv_cnts
+	branch frmt_le_send_adv_ind_v2
+	
+key_le_send_adv_ind_KY1:
+	arg KEY_PDU_LEN, loopcnt                   
+	arg mem_le_txheader, contw       
+	arg mem_light_JYM_tx_temp, contr   
+	call memcpy_fast
+	branch le_send_adv_transmit
+key_le_send_adv_ind_KY:	
+	arg KEY_PDU_LEN, loopcnt                   
+	arg mem_le_txheader, contw       
+	arg mem_light_whitening_buffer, contr   
+	call memcpy_fast
+	branch le_send_adv_transmit
+
+	
+/************************************通道************************************/
+frmt_le_next_adv_channel:
+	bpatchx patch33_5,mem_patch33
+
+	fetch 1,mem_channel_num
+	call frmt_channel_num_init,blank
+	
+//	fetch 1,mem_channel_num
+	isolate1 0,pdata
+	branch frmt_le_next_adv_channel_37,true
+
+//	fetch 1,mem_channel_num
+	isolate1 1,pdata
+	branch frmt_le_next_adv_channel_38,true
+
+//	fetch 1,mem_channel_num
+	isolate1 2,pdata
+	branch frmt_le_next_adv_channel_39,true	
+	rtn
+
+frmt_channel_num_init:
+	fetch 1,mem_channel_enable
+	store 1,mem_channel_num
+	rtn
+
+
+frmt_le_next_adv_channel_37:
+	bpatchx patch33_6,mem_patch33
+
+	fetch 1,mem_channel_num
+	set0 0,pdata
+	store 1,mem_channel_num
+	fetcht 1,mem_le_adv_channel_map
+	set1 BIT_ADV_CHANNEL_MAP_37,temp
+	storet 1, mem_le_adv_channel_map
+	jam 37, mem_le_ch_mapped
+	branch le_next_adv_channel+1
+
+frmt_le_next_adv_channel_38:
+	bpatchx patch33_7,mem_patch33
+
+	fetch 1,mem_channel_num
+	set0 1,pdata
+	store 1,mem_channel_num
+	fetcht 1,mem_le_adv_channel_map
+	set1 BIT_ADV_CHANNEL_MAP_38,temp
+	storet 1, mem_le_adv_channel_map
+	jam 38, mem_le_ch_mapped
+	branch le_next_adv_channel+1
+
+frmt_le_next_adv_channel_39:
+	bpatchx patch34_0,mem_patch34
+
+	fetch 1,mem_channel_num
+	set0 2,pdata
+	store 1,mem_channel_num
+	fetcht 1,mem_le_adv_channel_map
+	set1 BIT_ADV_CHANNEL_MAP_39,temp
+	storet 1, mem_le_adv_channel_map
+	jam 39, mem_le_ch_mapped
+	branch le_next_adv_channel+1
+
+	
Index: program/app_light/remoter/frmt_fml_remoter_obfuscate.prog
===================================================================
--- /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/program/app_light/remoter/frmt_fml_remoter_obfuscate.prog	(nonexistent)
+++ /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/program/app_light/remoter/frmt_fml_remoter_obfuscate.prog	(working copy)
@@ -0,0 +1,445 @@
+
+
+frmt_adv_rear_6bytes_and_whitening_and_set_PDU_common_short_press:
+	call frmt_light_set_PDU_common_short_press
+	branch frmt_adv_rear_6bytes_and_whitening
+
+frmt_light_set_PDU_common_short_press:
+	bpatchx patch34_1,mem_patch34
+	call frmt_light_flag_set_short_press
+frmt_light_set_PDU_packet_num_and_addr:
+	bpatchx patch34_2,mem_patch34
+	fetch 1, mem_FTD_adv_raw_packet_num
+	pincrease 1
+	store 1, mem_FTD_adv_raw_packet_num
+
+	fetch 1,mem_ble_v2_maintype
+	sub pdata,3,null
+	call frmt_fan_lamp,zero
+	fetch 1,mem_ble_v2_maintype
+	sub pdata,5,null
+	call frmt_solar_lamp,zero
+	branch frmt_light_groups_address_set
+	
+frmt_fan_lamp:
+	jam 0x83, mem_FTD_adv_raw_data+2
+	rtn
+frmt_solar_lamp:
+	jam 0x88, mem_FTD_adv_raw_data+2
+	rtn
+	
+frmt_light_flag_set_short_press:
+// call ice_break
+	bpatchx patch34_3,mem_patch34
+	jam 1, mem_le_adv_enable
+	jam KEY_PRESS_LED_ON_TIME, mem_indicator_led_turn_on_timeout
+	jam 1, mem_indicator_turn_on_enable
+	fetch 2,mem_light_adv_time
+	store 2, mem_ble_light_adv_timeout
+	pincrease 1
+	store 2, mem_light_lpm_enable_timeout
+	rtn
+frmt_light_groups_address_set:   
+	bpatchx patch34_4,mem_patch34
+	fetch 1, mem_FTD_adv_raw_device_add_temp+1
+	arg 0xf0, temp
+	iand temp,pdata
+	fetcht 1,mem_groups_num
+	iadd temp, pdata
+	store 1, mem_FTD_adv_raw_device_add_temp+1
+	fetch 2, mem_FTD_adv_raw_device_add_temp
+	store 2, mem_FTD_adv_raw_device_add
+	rtn
+	
+/*
+pdu的白化和协议后六个bytes的混淆处理。
+*/
+
+
+
+frmt_adv_rear_6bytes_and_whitening:
+// call ice_break
+	bpatchx patch34_5,mem_patch34
+	fetch 1,mem_light_manufacture_id
+	ncall frmt_adv_rear_6bytes_and_whitening_pdu2,blank
+
+	fetch 1, mem_FTD_adv_raw
+	sub pdata, LIGHT_CMD_PAIRING_CODE, null
+	call frmt_light_pdu1_manufacturer_id_set, zero
+
+	call frmt_adv_rear_6bytes
+	arg mem_adv_packet_payload, contw 
+	arg mem_FTD_adv_raw, contr 
+	arg 14, loopcnt              
+	call memcpy_fast 	
+
+	arg FTD_PDU_LEN, loopcnt
+	arg mem_adv_packet, contr
+	arg mem_light_whitening_buffer, contw
+	call memcpy_fast
+
+	jam FTD_PDU_LEN, mem_light_recvd_len
+
+	jam 83, mem_light_whitening_i     //channel 37
+
+	call frmt_light_reverse_and_BLE_whitening
+// 	call ice_break
+	fetch 1, mem_light_manufacture_id
+	store 1, mem_light_whitening_buffer+10
+	bpatchx patch34_6,mem_patch34
+	rtn
+
+frmt_light_pdu1_manufacturer_id_set:
+	fetch 1, mem_light_manufacture_id
+	store 1, mem_FTD_adv_raw_reserved
+	rtn
+
+frmt_adv_rear_6bytes_and_whitening_pdu2:
+	bpatchx patch34_7,mem_patch34
+
+	fetch 1, mem_FTD_adv_raw
+	sub pdata, LIGHT_CMD_PAIRING_CODE, null
+	call frmt_light_pdu2_manufacturer_id_set, zero
+
+	call frmt_adv_rear_6bytes
+	arg mem_adv_packet_payload, contw 
+	arg mem_FTD_adv_raw, contr 
+	arg 14, loopcnt              
+	call memcpy_fast 	
+	
+	arg FTD_PDU_LEN, loopcnt
+	arg mem_adv_packet, contr
+	arg mem_light_whitening_buffer, contw
+	call memcpy_fast
+	
+	jam FTD_PDU_LEN, mem_light_recvd_len
+	jam 83, mem_light_whitening_i
+	call frmt_light_reverse_and_BLE_whitening
+	
+	arg FTD_PDU_LEN, loopcnt
+	arg mem_light_whitening_buffer, contr
+	arg mem_light_whitening_buffer_2, contw
+	call memcpy_fast
+	
+	fetch 1, mem_light_manufacture_id2
+	store 1, mem_light_whitening_buffer_2+10
+// 	call ice_break
+	rtn
+frmt_light_pdu2_manufacturer_id_set:
+	fetch 1, mem_light_manufacture_id2
+	store 1, mem_FTD_adv_raw_reserved
+	rtn
+	
+// frmt_fml_whitening_buffer_bytes_reverse:
+// 	arg mem_light_whitening_buffer, contr
+// 	arg mem_light_whitening_buffer, contw
+// 	arg FTD_PDU_LEN, loopcnt
+// frmt_fml_bytes_reverse_loop:
+// 	ifetch 1, contr
+// 	reverse pdata, pdata
+// 	istore 1, contw
+// 	loop frmt_fml_bytes_reverse_loop
+// 	rtn	
+frmt_adv_rear_6bytes:	
+	bpatchx patch35_0,mem_patch35
+
+	jam 1, mem_FTD_adv_raw+8
+
+	jam 0, mem_FTD_adv_raw+9
+	random pdata   
+	rshift8 pdata, temp
+	storet 1, mem_FTD_adv_raw+10 
+	store 1, mem_FTD_adv_raw+11
+	invert pdata, pdata
+	store 2, mem_adv_CRC_False_initValue
+	fetch 1, mem_FTD_adv_raw+11     //add, at 20200107
+	fetcht 1, mem_FTD_adv_raw+8
+	ixor temp, pdata
+	store 1, mem_FTD_adv_raw+8
+	fetcht 1, mem_FTD_adv_raw+9
+	ixor temp, pdata
+	store 1, mem_FTD_adv_raw+9
+//param:mem_adv_CRC_False_initValue
+frmt_CRC16_CCITT_False_FTD:
+	bpatchx patch35_1,mem_patch35
+
+	arg mem_FTD_adv_raw, regc 
+// 	call ice_break
+	arg 0x0c, loopcnt
+	call frmt_CRC16_CCITT_False_choose
+
+	fetch 2, mem_adv_CRC_False_initValue  
+	arg 0xff00, rega
+	iand rega, temp
+	rshift8 temp, temp
+	storet 1, mem_FTD_adv_raw+12
+	fetch 1, mem_adv_CRC_False_initValue
+	store 1, mem_FTD_adv_raw+13
+// 	call ice_break
+	rtn 
+
+frmt_CRC16_CCITT_False_choose:
+	fetch 1,mem_special_agreemeet_enable
+	beq 2,key_CRC16_CCITT_False1
+	branch frmt_CRC16_CCITT_False
+	
+/************************************crc16 CCIT************************************/
+
+
+frmt_CRC16_CCITT_False:
+	bpatchx patch35_2,mem_patch35
+	ifetcht 1, regc
+	lshift8 temp, temp
+	fetch 2, mem_adv_CRC_False_initValue
+	ixor temp, temp
+	arg 0x0, queue
+	call frmt_CRC16_deal_next_8bits
+	storet 2, mem_adv_CRC_False_initValue
+	increase 1, regc
+	loop frmt_CRC16_CCITT_False	
+	rtn
+
+frmt_CRC16_deal_next_8bits:
+	copy temp, pdata    //temp:crc Value
+	rshift8 pdata, rega
+	rshift4 rega, rega
+	rshift3 rega, rega
+	lshift pdata, temp
+	copy rega, pdata
+	ncall frmt_CRC16_xor_ploy, blank
+	increase 1, queue
+	copy queue, pdata
+	bne 0x08, frmt_CRC16_deal_next_8bits
+	rtn 
+	
+frmt_CRC16_xor_ploy:
+	fetch 2, mem_CRC16_polynomial
+	copy pdata, rega
+	copy temp, pdata
+	ixor rega, pdata
+	arg 0xffff, rega
+	iand rega, temp
+	rtn
+
+
+key_CRC16_CCITT_False1:
+	bpatchx patch35_3,mem_patch35
+	fetch 2, mem_adv_CRC_False_initValue //pdata crc
+	
+key_CRC16_CCITT_False_loop:
+	ifetcht 1, regc
+	increase 1, regc
+	reverse temp, temp
+	lshift8 temp, temp
+	ixor temp,pdata
+	
+key_CRC16_for_byte:
+	copy loopcnt,regb		
+	arg 8,loopcnt
+key_CRC16_for_byte_loop:
+	isolate1 15,pdata
+	lshift pdata,pdata
+	nbranch key_CRC16_for_byte_continue,true
+	fetcht 2, mem_CRC16_polynomial
+	ixor temp,pdata
+key_CRC16_for_byte_continue:
+	loop key_CRC16_for_byte_loop
+	copy regb,loopcnt
+	
+	loop key_CRC16_CCITT_False_loop
+	store 2,mem_adv_CRC_False_initValue
+	fetcht 1, mem_adv_CRC_False_initValue
+	reverse temp, temp
+	fetch 1, mem_adv_CRC_False_initValue+1
+	reverse pdata, pdata
+	storet 1, mem_adv_CRC_False_initValue+1  //交叉着存
+	store 1, mem_adv_CRC_False_initValue
+	rtn
+
+
+
+/************************************crc16 CCIT************************************/
+
+/*
+接收端使用
+*/
+frmt_light_BLE_whitening_and_reverse:
+	bpatchx patch35_4,mem_patch35
+	call frmt_light_BLE_whitening
+	branch frmt_fml_whitening_buffer_bytes_reverse
+
+
+/*
+发射端使用
+*/
+frmt_light_reverse_and_BLE_whitening:
+	bpatchx patch35_5,mem_patch35
+
+	call frmt_fml_whitening_buffer_bytes_reverse
+	branch frmt_light_BLE_whitening
+
+//para:mem_light_recvd_len
+//para:mem_light_whitening_i
+/***********************************************
+jam 115, mem_light_whitening_i     //channel 39
+jam 51, mem_light_whitening_i     //channel 38
+jam 83, mem_light_whitening_i     //channel 37
+***********************************************/
+// frmt_light_ble_whitening:
+// frmt_light_for_loop_end_with_len:
+// 	jam 0, mem_light_for_loop_cnt1
+// frmt_light_for_loop_end_with_len_loop:
+// 	setarg 0
+// 	store 2, mem_light_whitening_k
+// 	call frmt_light_for_loop_8_times
+
+// 	fetcht 1, mem_light_whitening_k
+// 	fetch 1, mem_light_for_loop_cnt1
+// 	arg mem_light_whitening_buffer, contw
+// 	iadd contw, contw
+// 	istoret 1, contw	
+
+// 	fetcht 1, mem_light_for_loop_cnt1
+// 	increase 1, temp
+// 	storet 1, mem_light_for_loop_cnt1
+// 	fetch 1, mem_light_recvd_len
+// 	isub temp, null
+// 	branch frmt_light_for_loop_end_with_len_loop, positive
+// // 	call ice_break
+// 	rtn
+
+// //通过i得到n；通过n得到i1；通过i1得到k；调出for(8)循环,取最终k得到原始数据。	
+// frmt_light_for_loop_8_times:
+// 	//call ice_break
+// 	jam 0, mem_light_for_loop_cnt2
+// frmt_light_for_loop_8_times_loop:
+// 	fetch 1, mem_light_whitening_i
+// 	store 1, mem_light_whitening_n
+// 	lshift pdata, pdata
+// 	store 4, mem_light_whitening_i2
+// 	iforce rega
+// 	rshift3 pdata, pdata
+// 	rshift4 pdata, pdata
+// 	and pdata, 1, temp
+// 	storet 4, mem_light_whitening_i3
+// 	fetch 4, mem_light_para1    //0xFFFFFFFE
+// 	iand rega, pdata
+// 	ior temp, pdata
+// 	store 4, mem_light_whitening_i4
+// 	lshift4 temp, temp
+// 	ixor temp, rega
+// 	and rega, 0x10,rega
+// 	fetcht 4, mem_light_para2   //0xFFFFFFEF ;  pdata:mem_light_whitening_i4
+// 	iand temp, pdata
+// 	ior rega, pdata
+// 	store 1, mem_light_whitening_i     //只需要store 1
+
+// 	fetch 1, mem_light_whitening_n
+// 	and pdata, 0x40, pdata
+// 	rshift3 pdata, pdata
+// 	rshift3 pdata, temp
+// 	storet 1, mem_light_whitening_i1
+// 	fetch 1, mem_light_for_loop_cnt2
+// 	call frmt_light_i1_lshift    //return temp
+
+// 	fetch 1, mem_light_for_loop_cnt1    //外循环的循环变量
+// 	arg mem_light_whitening_buffer, contr
+// 	iadd contr, contr
+// 	ifetch 1, contr
+// // ifdef FTD_PROTOCOL
+// // 	reverse pdata, pdata
+// // endif	
+
+// 	ixor temp, temp
+// 	fetch 1, mem_light_for_loop_cnt2
+// 	arg mem_light_integer_1_lshift_temp, contr
+// 	iadd contr, contr
+// 	ifetch 1, contr
+// 	iand temp, pdata
+// 	fetcht 2,  mem_light_whitening_k
+// 	ior temp, pdata
+// 	store 2, mem_light_whitening_k
+// 	
+// 	fetch 1, mem_light_for_loop_cnt2
+// 	pincrease 1
+// 	store 1, mem_light_for_loop_cnt2
+// 	bbit0 3, frmt_light_for_loop_8_times_loop
+// 	rtn
+
+// //pdata:  value of mem_light_for_loop_cnt2
+// //temp :  value of mem_light_whitening_i1
+// frmt_light_i1_lshift:
+// 	arg mem_light_for_loop_lshift,contr 
+// 	iadd contr,contr
+// 	ifetch 1,contr
+// 	and pdata,0x0f,loopcnt
+// frmt_light_i1_lshift_loop:	
+// 	sub loopcnt,0,null
+// 	rtn zero
+// 	lshift temp,temp
+// 	loop frmt_light_i1_lshift_loop
+// 	rtn
+
+
+frmt_fml_whitening_buffer_bytes_reverse:
+	bpatchx patch35_6,mem_patch35
+
+	arg mem_light_whitening_buffer, contr
+	arg mem_light_whitening_buffer, contw
+	arg FTD_PDU_LEN, loopcnt
+	branch frmt_fml_bytes_reverse_loop
+
+frmt_light_BLE_whitening:
+	bpatchx patch35_7,mem_patch35
+
+	arg FTD_PDU_LEN, loopcnt
+	arg mem_light_whitening_buffer, regc
+	arg 83, regb
+	fetch 1,mem_special_agreemeet_enable
+	sub pdata,2,null
+	call key_whitening_i_get,zero
+	branch frmt_ble_whitening
+
+frmt_fml_bytes_reverse_loop:
+	bpatchx patch36_0,mem_patch36
+
+	ifetch 1, contr
+	reverse pdata, pdata
+	istore 1, contw
+	loop frmt_fml_bytes_reverse_loop
+	rtn	
+/*
+loopcnt:length
+regc:pointer of whitening data
+regb:white init(seed)
+*/
+frmt_ble_whitening:
+
+frmt_ble_whitening_loop:
+	bpatchx patch36_1,mem_patch36
+	call frmt_ble_whitening_byte
+	increase 1, regc
+	loop frmt_ble_whitening_loop
+	rtn
+frmt_ble_whitening_byte:
+	bpatchx patch36_2,mem_patch36
+	arg 1, rega     //rega is m
+frmt_ble_whitening_byte_loop:
+	lshift regb, regb    //regb is seed
+	isolate1 7, regb
+	call frmt_ble_whitening_byte_xor, true
+	lshift rega, rega
+	deposit rega
+	rtnbit1 8
+	branch frmt_ble_whitening_byte_loop
+	
+frmt_ble_whitening_byte_xor:	
+	bpatchx patch36_3,mem_patch36
+	ifetch 1,regc
+	ixor rega, pdata
+	istore 1, regc
+	xor regb, 0x11, regb
+	rtn
+
+
+
Index: program/app_light/remoter/frmt_fml_remoter_timer.prog
===================================================================
--- /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/program/app_light/remoter/frmt_fml_remoter_timer.prog	(nonexistent)
+++ /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/program/app_light/remoter/frmt_fml_remoter_timer.prog	(working copy)
@@ -0,0 +1,99 @@
+
+
+frmt_apl_cb_event_timer:
+	fetch 1,mem_special_agreemeet_enable
+	sub pdata,1,null
+	call p_light_gem_long_press_cnt_timer,zero
+	call frmt_light_reset_continuous_kps_cnt_timer
+	call frmt_light_kscan_analysis_interval_timer
+	call frmt_light_le_adv_timer
+	call frmt_light_long_press_timer
+//	call frmt_light_long_press_adv_timer
+	call frmt_light_indicator_led_timer
+	call frmt_light_enter_lpm_timer
+	call frmt_light_color_and_lightness_long_press_timer
+	bpatchx patch36_4,mem_patch36
+	rtn
+
+frmt_light_kscan_analysis_interval_timer:  //100ms
+	arg mem_kscan_analysis_interval_timeout,regc
+	arg frmt_light_kscan_analysis_interval_timeout, regb
+	branch timer_single_step_2B
+frmt_light_kscan_analysis_interval_timeout:
+	rtn	
+
+frmt_light_le_adv_timer:  
+	arg mem_ble_light_adv_timeout,regc
+	arg frmt_light_le_adv_time_timeout, regb
+	branch timer_single_step_2B
+frmt_light_le_adv_time_timeout:
+// call ice_break
+	jam 0, mem_le_adv_enable  
+	rtn
+
+//frmt_light_long_press_adv_timer:
+//	arg mem_long_press_adv_timeout,regc
+//	arg frmt_light_long_press_adv_timeout, regb
+//	branch timer_single_step_2B
+//frmt_light_long_press_adv_timeout:
+//	rtn
+
+frmt_light_indicator_led_timer:
+	arg mem_indicator_led_turn_on_timeout,regc
+	arg frmt_light_indicator_led_timer_timeout, regb
+	branch timer_single_step_2B
+
+frmt_light_indicator_led_timer_timeout:
+	jam 0, mem_indicator_turn_on_enable
+	rtn
+
+frmt_light_enter_lpm_timer:
+	arg mem_light_lpm_enable_timeout,regc
+	arg frmt_light_enter_lpm_timeout, regb
+	branch timer_single_step_2B
+frmt_light_enter_lpm_timeout:
+	rtn
+
+frmt_light_color_and_lightness_long_press_timer:
+	arg mem_light_short_keypress_timeout,regc
+	arg frmt_light_color_and_lightness_long_press_timeout, regb
+	branch timer_single_step_2B
+frmt_light_color_and_lightness_long_press_timeout:
+	jam 1, mem_light_color_and_lgtness_long_press_adv_enable
+	rtn
+	
+frmt_light_long_press_timer:
+	arg mem_long_press_timeout,regc
+	arg p_light_long_press_timeout_cb, regb
+	branch timer_single_step_2B
+
+frmt_light_reset_continuous_kps_cnt_timer:
+	arg mem_light_continuous_kps_cnt_reset_timeout,regc
+	arg p_light_reset_continuous_kps_cnt_timeout_cb, regb
+	branch timer_single_step_2B
+
+p_light_long_press_timeout_cb:
+	fetch 2,mem_rmt_long_press_cb
+	branch callback_func
+
+p_light_reset_continuous_kps_cnt_timeout_cb:
+	fetch 2,mem_rmt_continuous_keydown_cb
+	branch callback_func
+
+
+frmt_light_set_continuous_kps_cnt_reset_timeout:
+	fetch 2,mem_rmt_continuous_kps_time
+	store 2,mem_light_continuous_kps_cnt_reset_timeout
+	rtn
+
+p_light_gem_long_press_cnt_timer:
+	arg mem_gem_cnt_inces_timeout,regc
+	arg p_light_gem_long_press_cnt_timeout, regb
+	branch timer_single_step_2B
+p_light_gem_long_press_cnt_timeout:
+	fetch 2,mem_long_press_timeout
+	rtn blank
+	jam 1,mem_gem_long_cnt_enable
+	rtn
+
+
Index: program/app_mouse.prog
===================================================================
--- /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/program/app_mouse.prog	(nonexistent)
+++ /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/program/app_mouse.prog	(working copy)
@@ -0,0 +1,4866 @@
+
+ifdef COMPILE_MOUSE
+mouse_init:
+	call enable_authrom
+	call mouse_setting_config
+	call mouse_init_sunt
+	rtn wake
+	call mouse_le_name_load		//config tool
+	call mouse_dpi_config
+	call mouse_drawing_optima_init
+	call mouse_cb_fuction
+	call mouse_sensor_powerdown
+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_short_sleep
+	store 2,mem_cb_24g_transmit_short_sleep
+	setarg mouse_24g_long_sleep
+	store 2,mem_cb_24g_transmit_long_sleep
+	setarg mouse_24g_before_lpm_sleep
+	store 2,mem_cb_before_lpm_sleep
+	setarg mouse_24g_package_data
+	store 2,mem_cb_24g_transmit_data
+	setarg 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_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_set_lpm_mult
+	store 2,mem_cb_bt_set_mult
+	setarg mouse_le_parse_l2cap
+	store 2,mem_le_l2cap_parse_cb
+	rtn
+
+
+mouse_setting_config:
+	rtn wake
+	call g24_transmit_init
+	call g24_chmap_param_init
+	call mouse_24g_send_time_long_wake
+	call mouse_gpio_init
+	call mouse_param_init
+	call mouse_device_multi_led_poweron2s_init	
+	call mouse_double_dpi_judge
+	call mouse_firebutton_connect_state_check
+	call le_set_fixed_ltk_justwork
+	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_xtal_init:
+	jam XTAL_16M,mem_fcomp_div		// 0x08--16M 
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	rtnbit1 MOUSE_ENABLE_16M
+	jam XTAL_24M,mem_fcomp_div		// 0x18--24M
+	rtn
+
+mouse_24g_phy_select:
+	call g24_enable_1M
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	rtnbit0 MOUSE_ENABLE_24G_2M_PHY
+	branch g24_enable_2M
+
+mouse_default_init:
+	fetch 2,mem_mouse_24g_pair_timeout_init
+	store 2,mem_24g_pair_timeout_init
+
+	fetch 1,mem_mouse_24g_reconn_timeout_init
+	store 2,mem_24g_reconn_timeout_init
+
+	fetch 5,mem_rssi_dis_min_24g_init
+	store 5,mem_rssi_dis_min_24g
+
+	fetch 1,mem_mouse_24g_pair_tx_power
+	store 1,mem_24g_pair_tx_power
+
+	fetch 1,mem_mouse_enable_flag
+	isolate1 MOUSE_ADC_ENABLE,pdata
+	call mouse_adc_read_enable,true
+
+	fetch 1,mem_mouse_enable_flag
+	isolate1 MOUSE_24G_250HZ_ENABLE,pdata
+	call mouse_24g_set_250Hz,true
+	fetch 1,mem_mouse_enable_flag
+	isolate1 MOUSE_SEARCH_DONGLE_ENABLE,pdata
+	call mouse_24g_search_dongle_enable,true
+	fetch 1,mem_mouse_enable_flag
+	isolate1 MOUSE_CLK_16M_ENABLE,pdata
+	call mouse_16M_enable,true
+	fetch 1,mem_mouse_enable_flag
+	isolate1 MOUSE_DPI_4_LEVEL_ENABLE,pdata
+	call mouse_dpi_4level_enable,true
+	fetch 1,mem_mouse_enable_flag
+	isolate1 MOUSE_KEYBOARD_ENABLE,pdata
+	call mouse_customer_key_enable,true
+	
+	fetch 1,mem_24g_ch_map_update
+	ncall g24_chamap_param_update,blank
+
+	call mouse_xtal_init
+	call mouse_adc_vol_init	
+	call mouse_24g_phy_select
+	call mouse_24g_long_sleep_set
+	branch g24_pair_param_init
+	
+mouse_param_init:
+	setarg MOUSE_BLE_ATT_LIST_ADDR				//ble attlist start address
+	store 2,mem_ui_le_uuid_table
+	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
+	setsect 0,0x1224
+	setsect 1,0x4000
+	setsect 2,0x0
+	istore 5,contw
+//======================================================	
+	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
+	setarg LE_INTERVAL_7_5MS
+	store 2,mem_le_interval_min
+	store 2,mem_le_interval_min+2
+mouse_param_init_intervl_end:
+	call mouse_g24_interval_param_8ms
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	bbit0 MOUSE_ENABLE_24G_250Hz,mouse_24g_short_sleep_set_end
+	call mouse_g24_interval_param_4ms
+mouse_24g_short_sleep_set_end:
+	fetch 3,mem_24g_short_sleep_set
+	store 3,mem_mouse_24g_short_sleep_set_init
+	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
+	and pdata,0xfe,pdata		// hvin = vinlpm
+	store 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_adv
+mouse_sensor_set_angle:
+	bpatch patch06_7,mem_patch06
+	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_g24_interval_param_4ms:
+	fetch 3,mem_mouse_24g_short_sleep_set_4ms
+	store 3,mem_24g_short_sleep_set
+	fetch 3,mem_mouse_24g_long_sleep_set_4ms
+	store 3,mem_24g_long_sleep_set
+	fetch 1,mem_mouse_24g_fast_hop_count_4ms
+	store 1,mem_24g_fast_hop_count
+	fetch 4,mem_mouse_24g_tsniff_4ms
+	store 4,mem_mouse_24g_tsniff	
+mouse_report_rate_set_250hz:
+	setarg 0x100c0c
+	store 3,mem_24g_interval
+	rtn
+
+mouse_g24_interval_param_8ms:
+	fetch 3,mem_mouse_24g_short_sleep_set_8ms
+	store 3,mem_24g_short_sleep_set
+	fetch 3,mem_mouse_24g_long_sleep_set_8ms
+	store 3,mem_24g_long_sleep_set
+	fetch 1,mem_mouse_24g_fast_hop_count_8ms
+	store 1,mem_24g_fast_hop_count
+	fetch 4,mem_mouse_24g_tsniff_8ms
+	store 4,mem_mouse_24g_tsniff
+mouse_report_rate_set_125hz:
+	setarg 0x1c1919
+	store 3,mem_24g_interval
+	rtn
+
+//mouse_report_rate_set_500hz:
+//	setarg 0x080606
+//	store 3,mem_24g_interval
+//	rtn
+//mouse_report_rate_set_1000hz:
+//	setarg 0x040303
+//	store 3,mem_24g_interval
+//	rtn
+
+
+mouse_start_work:
+	bpatch patch07_0,mem_patch07
+	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_bluetooth_fast_conn_init,user
+mouse_start_reconnect_device:
+	bpatch patch07_1,mem_patch07
+	fetch 1,mem_mouse_bt_led_recon_effect_flag
+	ncall mouse_multi_led_blink_enable,blank
+	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:	
+	fetch 1,mem_xrecord_mode
+	beq REC_4_MODE,mouse4_0_check_reconn_target
+	branch mouse_bluetooth_fast_conn_init
+
+
+mouse_wakeup_from_power_check:
+	bpatch patch07_2,mem_patch07
+	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
+
+
+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 1,mem_mouse_direct_timeout
+mouse4_0_check_reconn_target_next:	
+	storet 1,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
+
+
+/*****************system clk***********************************/
+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 1,mem_mouse_wheel_trigger
+	nbranch app_get_lpm_wake_lock,blank
+	branch app_put_lpm_wake_lock
+
+mouse_delay_enter_hibernata:
+	fetch 1,mem_mouse_direct_timeout
+	store 1,mem_mouse_bluetooth_reconnect_timeout
+	rtn
+
+mouse_power_down:
+	call mouse_device_led_all_off
+mouse_app_enter_hibernate:
+	bpatch patch07_3,mem_patch07
+	setarg PAN_REG_CONFIG
+	call twspi_read
+	bbit1 3,mouse_app_enter_hibernate_next
+	call mouse_sensor_reset
+	call mouse_sensor_powerdown
+mouse_app_enter_hibernate_next:
+	call mouse_setgpio_hibernate
+	branch app_enter_hibernate
+
+mouse_before_hibernate:
+	bpatch patch07_4,mem_patch07
+	fetch 4,core_lpm_ctrl
+	set1 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
+	fetcht 1,mem_sensor_motion_gpio
+	branch gpio_clr_wake
+
+
+mouse_setgpio_hibernate:
+	bpatch patch07_5,mem_patch07
+	call mouse_set_sdio_high
+	call clear_wake
+	call mouse_logo_led_off
+	call mouse_1io2led_all_off
+	
+	call mouse_before_hibernate_wheel_gpio_set
+	fetcht 1,mem_matrix_public_gpio		// enable b4/b5/dpi wakeup
+	call gpio_out_active
+	fetcht 1,mem_matrix_public_gpio
+	call gpio_clr_wake
+	fetch 1,mem_mouse_sensor_sdio_gpio
+	call mouse_gpio_config_output_high
+	fetcht 1,mem_mouse_reuse_2ice_gpio
+	call mouse_gpio_config_input_pu
+	call mouse_lpm_before_common
+	call mouse_gpio_pd_idle
+	arg 13,temp
+	call mouse_gpio_config_input_pu
+	call mouse_gpio_set_high_impedance
+	call mouse_adc_gpio_set_before_hibernate
+	branch mouse_wheel_gpio_set_before_hibernate
+
+mouse_wheel_gpio_set_before_hibernate:
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	rtnbit0 MOUSE_ENABLE_WHEEL_WAKE_UP_CANCEL
+mouse_wheel_gpio_clr_wakeup:	
+	fetcht 1,mem_whee_a_data_gpio
+	call gpio_clr_wake
+	fetcht 1,mem_whee_b_data_gpio
+	call gpio_clr_wake
+	fetcht 1,mem_whee_a_data_gpio
+	call mouse_gpio_config_input_pd
+	fetcht 1,mem_whee_b_data_gpio
+	branch mouse_gpio_config_input_pd
+	
+mouse_adc_gpio_set_before_hibernate:
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	rtnbit0 MOUSE_ENABLE_ADC
+	fetch 1,mem_adc_config_flag_init
+	rtnne ADC_CONFIG_GPIO_h
+	fetch 1,mem_adc_channel_gpio	
+	arg gpcfg_no_ie,temp
+ 	branch gpio_config_function_int
+	
+
+//set all unused gpio to pull down mode to save power	
+mouse_gpio_pd_idle:
+	arg core_gpio_conf,contr
+	arg 13,loopcnt
+mouse_gpio_pd_idle_loop:
+	ifetch 1,contr
+	nbranch mouse_gpio_pd_idle_configured,blank
+	setarg 0x80
+	add contr,-1,contw
+	istore 1,contw
+mouse_gpio_pd_idle_configured:
+	loop mouse_gpio_pd_idle_loop
+	rtn
+	
+	
+mouse_process_lpm_before:
+	rtnmark1 mark_24g
+	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 patch07_6,mem_patch07
+		
+	fetcht 1,mem_whee_a_data_gpio		//reinit gpio pu after disable wheel wakeup
+	call gpio_config_input
+	fetcht 1,mem_whee_b_data_gpio
+	call gpio_config_input
+	
+	call mouse_wheel_check
+	fetch 1,mem_mouse_sensor_sclk_gpio		//set sdio high
+ 	call mouse_gpio_config_output_high
+	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_config_select_device_button_gpio
+	call gpio_set_wake
+
+	fetcht 1,mem_customer_key_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
+	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
+	rtn
+mouse_set_ble_mult:
+	copy rega,pdata
+	nbranch le_set_config_short_mult,blank
+	branch le_clr_config_short_mult
+
+	
+/*****************system clk***********************************/
+	
+	
+/****************************adc**************************************/	
+mouse_adc_gpio_set:
+	fetch 1,mem_adc_config_flag
+	rtnne ADC_CONFIG_GPIO_h
+mouse_adc_gpio_check_output:
+	bpatch patch07_7,mem_patch07
+	fetcht 1,mem_adc_channel
+	sub temp,3,null
+	branch mouse_adc_gpio_4_7_set,positive
+	increase 5,temp
+	storet 1,mem_adc_channel_gpio
+mouse_adc_gpio_set_next:
+	copy temp,rega
+	call gpio_get_config
+	beq gpcfg_output_high,mouse_set_24g_led_statue
+	call mouse_clear_24g_led_statue
+	copy rega,temp
+	branch gpio_set_high_impedance
+
+mouse_adc_gpio_4_7_set:
+	increase 4,temp
+	storet 1,mem_adc_channel_gpio
+	branch mouse_adc_gpio_set_next
+
+mouse_adc_vol_init:
+	fetch 1,mem_adc_config_flag_init
+	beq ADC_CONFIG_GPIO_h,mouse_adc_gpio_vol_init
+	beq ADC_CONFIG_HVIN,mouse_adc_gpio_vinlpm_init
+	jam ADC_CONFIG_HVIN,mem_adc_config_flag_init
+	setarg 0x2c0172		// 0x0172--3.7V  0x012c--3.0V  0x0140--3.2V  0x014a--3.3V
+	store 3,mem_mouse_vdd_full_vol
+	setarg 0x014001
+	istore 3,contw
+	rtn
+mouse_adc_gpio_vol_init:	
+	setarg 0x5d0099		// 0x0099--1.5V   0x005d--0.9V  0x0068--1.0V  0x0071--1.1V
+	store 3,mem_mouse_vdd_full_vol
+	setarg 0x007100
+	istore 3,contw
+	rtn
+mouse_adc_gpio_vinlpm_init:
+	setarg 0xc8012c		// 0x012c--3.0V  0x00c8--2.0V  0x00dc--2.2V
+	store 3,mem_mouse_vdd_full_vol
+	setarg 0x00dc00
+	istore 3,contw
+	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
+	beq ADC_CONFIG_GPIO_h,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
+	branch  mouse_adc_read_gpio, positive
+	call mouse_adc_read_vinlpm
+	branch mouse_adc_read_start
+
+mouse_adc_read_gpio_mux_start:
+	jam MOUSE_ADC_CHECK_GPIO_MULTIPLE,mem_adc_mux_status
+	branch mouse_adc_read_start
+
+mouse_adc_read_gpio:
+	call mouse_adc_gpio_check_output
+	jam ADC_CONFIG_GPIO_h,mem_adc_config_flag
+	fetch 1,mem_24g_device_led_status
+	ncall mouse_adc_read_vinlpm,blank
+	branch mouse_adc_read_start
+	
+mouse_adc_read_vinlpm:
+	jam 0,mem_adc_read_timer
+	fetch 1,mem_adc_config_flag_init
+	store 1,mem_adc_config_flag
+	rtn	
+	
+mouse_adc_read_battery:		// only get battery
+	fetch 1,mem_adc_config_flag
+	bne ADC_CONFIG_GPIO_h,mouse_adc_read_battery_start
+	fetch 1,mem_24g_device_led_status
+	nrtn blank
+mouse_adc_read_battery_start:
+	call mouse_adc_read_interval
+	nrtn positive
+mouse_adc_read_start:
+	bpatch patch08_0,mem_patch08
+	fetch 1,mem_24g_device_led_status
+	nrtn blank
+	jam 0,mem_adc_read_timer
+	call enable_adc
+	call adc_calculate
+	store 2,mem_mouse_vdd_now_vol
+	fetch 1,mem_adc_config_flag
+	bne ADC_CONFIG_GPIO_h, mouse_adc_data_process
+	fetcht 2,mem_mouse_vdd_now_vol	// BAT= 1.5V, R = 200k, a = a*1.8
+	mul32 temp,8,pdata
+	div pdata,10
+	call get_div_result
+	iadd temp,pdata
+	store 2,mem_mouse_vdd_now_vol
+mouse_adc_data_process:	
+	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
+	fetcht 1,mem_config_low_voltage_alarm_gpio
+	branch mouse_led_off
+
+mouse_adc_bat_percent_lowpower_out:
+	bpatch patch08_1,mem_patch08
+	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
+	nbranch mouse_select_24gdevice,positive
+	call mouse_select_btdevice
+	branch mouse_adc_bat_percent_lowpower_out_battery
+
+mouse_select_24gdevice:
+	call mouse_check_select_24gdevice
+mouse_adc_bat_percent_lowpower_out_battery:
+	call mouse_adc_clear_button_press_flag
+	call adc_clear_no_power_flag
+	call adc_clear_low_power_flag
+	fetch 2,mem_pdatatemp+6
+	fetcht 2,mem_pdatatemp+2	        //shutdown voltage
+	isub temp,null
+	ncall adc_set_no_power_flag,positive
+	fetcht 2,mem_pdatatemp+4		//low voltage
+	isub temp,null
+	ncall adc_set_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_h,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
+	
+/****************************adc**************************************/	
+
+/****************************gpio******************************************/
+mouse_gpio_init:
+	call mouse_logo_led_off
+	call mouse_1io2led_all_off
+	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_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
+mouse_gpio_config_input_pd:
+	sub temp,UI_BUTTON_GPIO_DISABLE,null
+	rtn zero
+	set1 gpio_active_bit,temp
+	branch gpio_config_input
+
+mouse_gpio_config_input_pu:
+	sub temp,UI_BUTTON_GPIO_DISABLE,null
+	rtn zero 
+	set0 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 14,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:
+	branch spid_init
+	
+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
+
+
+/*******************spi*****************************/
+
+
+mouse_motion:
+	bpatch patch08_2,mem_patch08
+	disable user
+	setarg 0
+	store 6,mem_mouse_x
+	call mouse_check_sensor_data
+	setarg 0x0089
+	call twspi_write	
+	call mouse_dpi_config
+	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
+	fetch 1,mem_matrix_public_gpio
+	beq GPIO_DISABLE,mouse_3io6key_dpi_check_end
+	call mouse_matrix_public_gpio_reset
+mouse_dpi_check_exit:	
+	copy rega,pdata
+	bbit1 MOUSE_DPI_KEY,mouse_dpi_down
+	branch mouse_dpi_up
+	
+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,mouse_3io6key_dpi_check
+	fetch 1,mem_mouse_ghost_flag
+	nbranch mouse_dpi_check_end,blank
+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_3io6key_dpi_check:
+	fetch 1,mem_dpi_button_gpio
+	call mouse_gpio_config_output_low
+	fetcht 1,mem_dpi_button_gpio
+	branch mouse_3io6key_check
+
+mouse_3io6key_dpi_check_end:
+	fetcht 1,mem_dpi_button_gpio
+	call mouse_gpio_config_input_pu
+	branch mouse_dpi_check_exit
+
+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_check_connect_adc:
+	fetch 1,mem_mouse_adc_button_press_flag
+	branch mouse_dpi_up,blank
+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_another_gpio_check:
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	rtnbit0 MOUSE_ENABLE_DOUBLE_DPI_KEY
+	fetch 1,mem_mouse_another_dpi_connect_vin_flag
+	nbranch mouse_dpi_another_gpio_connect_vin_check,blank
+mouse_dpi_another_gpio_connect_gnd_check:	
+	fetch 1,mem_dpi_another_button_gpio
+	call mouse_gpio_config_output_high
+	call mouse_dpi_another_check
+	fetcht 1,mem_dpi_another_button_gpio
+	branch mouse_gpio_config_input_pu
+
+mouse_dpi_another_gpio_connect_vin_check:
+	fetch 1,mem_dpi_another_button_gpio
+	set0 gpio_active_bit,pdata
+	store 1,mem_dpi_another_button_gpio
+	call mouse_gpio_config_output_low
+	jam MOUSE_DPI_ANOTHER_KEY,mem_mouse_key_temp_patch
+	fetcht 1,mem_dpi_another_button_gpio
+	fetch 1,mem_dpi_another_press_status
+	call mouse_check_dpi_another_key_connect_vin
+	call mouse_dpi_another_state_check
+	fetcht 1,mem_dpi_another_button_gpio
+	branch mouse_gpio_config_input_pu
+
+mouse_dpi_another_down_new:
+	call mouse_gpio_config_input_pu
+	fetch 1,mem_dpi_another_button_state
+	rtneq DPI_BUTTON_STATE_DOWN
+	jam DPI_BUTTON_STATE_DOWN,mem_dpi_another_button_state
+	branch mouse_dpi_process
+	
+mouse_dpi_another_check:
+	jam MOUSE_DPI_ANOTHER_KEY,mem_mouse_key_temp_patch
+	fetcht 1,mem_dpi_another_button_gpio
+	fetch 1,mem_dpi_another_press_status	
+	call mouse_check_dpi_another_key_connect_gnd
+mouse_dpi_another_state_check:
+	store 1,mem_dpi_another_press_status
+	fetch 1,mem_dpi_another_button_down_enable
+	branch mouse_dpi_another_up,blank	
+mouse_dpi_another_down:
+	fetch 1,mem_dpi_another_button_state
+	rtneq DPI_BUTTON_STATE_DOWN
+	jam DPI_BUTTON_STATE_DOWN,mem_dpi_another_button_state
+	branch mouse_dpi_process
+
+mouse_dpi_another_up:
+	fetch 1,mem_dpi_another_button_state
+	rtneq DPI_BUTTON_STATE_UP
+	jam DPI_BUTTON_STATE_UP,mem_dpi_another_button_state
+	rtn
+
+mouse_check_dpi_another_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_patch
+	copy temp,queue
+	beq 0x07,mouse_dpi_another_key_press		//  about 17~22ms three times
+	beq 0x00,mouse_dpi_another_key_release
+	rtn
+
+mouse_check_dpi_another_key_connect_vin:	
+	lshift pdata,pdata
+	copy pdata,regb
+	call mouse_gpio_config_input_pd
+	call gpio_get_bit
+	setflag true,0,regb
+	and regb,0x07,pdata
+	fetcht 1,mem_mouse_key_temp_patch
+	copy temp,queue
+	beq 0x07,mouse_dpi_another_key_press		//  about 17~22ms three times
+	beq 0x00,mouse_dpi_another_key_release
+	rtn
+
+mouse_dpi_another_key_press:
+	jam 1,mem_dpi_another_button_down_enable
+	rtn
+mouse_dpi_another_key_release:
+	jam 0,mem_dpi_another_button_down_enable
+	rtn
+
+
+mouse_double_dpi_judge:
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	rtnbit0 MOUSE_ENABLE_DOUBLE_DPI_KEY
+	fetch 1,mem_dpi_another_button_gpio
+	bbit1 gpio_active_bit,mouse_another_dpi_connect_vin
+mouse_another_dpi_connect_gnd:
+	jam 0,mem_mouse_another_dpi_connect_vin_flag
+	rtn
+mouse_another_dpi_connect_vin:
+	jam 1,mem_mouse_another_dpi_connect_vin_flag
+	rtn
+
+	
+mouse_dpi_process:
+	bpatch patch08_3,mem_patch08
+	call mouse_dpi_ghost_check
+	rtn user
+	fetch 1,mem_mouse_dpi
+	copy pdata,temp
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	bbit1 MOUSE_ENABLE_DOUBLE_DPI_KEY,mouse_double_dpi_check
+	copy temp,pdata
+	increase 1,pdata
+	and pdata,0x03,pdata
+mouse_dpi_process_store:	
+	store 1,mem_mouse_dpi
+	call mouse_setting_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
+	branch enable_user
+	
+mouse_double_dpi_check:
+	fetch 1,mem_dpi_another_button_down_enable
+	nbranch mouse_another_dpi_button_down,blank
+mouse_dpi_increase:
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	bbit1 MOUSE_ENABLE_DPI_LEVEL_4,mouse_dpi_increase_level_4
+	copy temp,pdata
+	rtneq MOUSE_DPI_LEVEL2
+mouse_dpi_increase_level:
+	beq MOUSE_DPI_LEVEL1,mouse_dpi_level_3	//1600
+	beq MOUSE_DPI_LEVEL3,mouse_dpi_level_2 	//1200
+	rtn
+
+mouse_dpi_level_1:		//800
+	setarg MOUSE_DPI_LEVEL3
+	branch mouse_dpi_process_store
+mouse_dpi_level_2:		//1200
+	setarg MOUSE_DPI_LEVEL1
+	branch mouse_dpi_process_store
+mouse_dpi_level_3:		//1600
+	setarg MOUSE_DPI_LEVEL2
+	branch mouse_dpi_process_store
+mouse_dpi_level_4:		//1000
+	setarg MOUSE_DPI_LEVEL4
+	branch mouse_dpi_process_store
+
+mouse_dpi_increase_level_4:
+	copy temp,pdata			//0->1,2->3,3->0
+	rtneq MOUSE_DPI_LEVEL2
+	beq MOUSE_DPI_LEVEL1,mouse_dpi_level_3
+	beq MOUSE_DPI_LEVEL3,mouse_dpi_level_4
+	beq MOUSE_DPI_LEVEL4,mouse_dpi_level_2
+	rtn
+mouse_dpi_decrease_level_4:
+	copy temp,pdata			//0->3,1->0,3->2
+	rtneq MOUSE_DPI_LEVEL3
+	beq MOUSE_DPI_LEVEL1,mouse_dpi_level_4
+	beq MOUSE_DPI_LEVEL2,mouse_dpi_level_2
+	beq MOUSE_DPI_LEVEL4,mouse_dpi_level_1
+	rtn
+
+mouse_another_dpi_button_down:
+mouse_dpi_decrease:
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	bbit1 MOUSE_ENABLE_DPI_LEVEL_4,mouse_dpi_decrease_level_4
+	copy temp,pdata
+	rtneq MOUSE_DPI_LEVEL3
+mouse_dpi_decrease_level:
+	beq MOUSE_DPI_LEVEL1,mouse_dpi_level_1
+	beq MOUSE_DPI_LEVEL2,mouse_dpi_level_2
+	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_setting_sensor_type
+
+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_setting_dpi:
+	bpatch patch08_4,mem_patch08
+	call mouse_setting_dpi_4_level
+	call mouse_dpi_led_blink_delay
+mouse_setting_sensor_type:
+	fetch 1,mem_config_sensor_type
+	beq P3212,mouse_seting_3212_dpi
+	beq KA8G2,mouse_seting_ka8g2_dpi
+	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
+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
+	beq P8009,mouse_3065xy_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	//1200
+	beq MOUSE_DPI_LEVEL2,mouse_set_p3212_cpi1	//1600
+	beq MOUSE_DPI_LEVEL3,mouse_set_p3212_cpi2	//2400
+	beq MOUSE_DPI_LEVEL4,mouse_set_p3212_cpi3	//800
+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_ka8g2_dpi:
+	fetch 1,mem_mouse_dpi
+	beq MOUSE_DPI_LEVEL1,mouse_set_pka8g2_cpi0		//1600
+	beq MOUSE_DPI_LEVEL2,mouse_set_pka8g2_cpi1		//2400
+	beq MOUSE_DPI_LEVEL3,mouse_set_pka8g2_cpi2		//3200
+	beq MOUSE_DPI_LEVEL4,mouse_set_pka8g2_cpi3		//800
+mouse_set_pka8g2_cpi1:
+	fetch 1,mem_ka8g2_dpi_1
+	branch mouse_p3212_dpi
+
+mouse_set_pka8g2_cpi0:
+	fetch 1,mem_ka8g2_dpi_0
+	branch mouse_p3212_dpi
+	
+mouse_set_pka8g2_cpi2:
+	fetch 1,mem_ka8g2_dpi_2
+	branch mouse_p3212_dpi
+
+mouse_set_pka8g2_cpi3:
+	fetch 1,mem_ka8g2_dpi_3
+	branch mouse_p3212_dpi
+
+		
+/********************dpi******************************/		
+
+
+/***********************key******************************/
+
+mouse_key:
+	call mouse_check_firekey_gpio
+	fetch 1,mem_fire_key_flag
+	nbranch mouse_fire_key_press,blank
+	fetch 1,mem_fire_key_status
+	nbranch mouse_fire_key_process,blank
+	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:
+	call mouse_check_key_gpio_once
+	call mouse_check_key_gpio
+	setarg 0x00
+	store 3,mem_mouse_lkey_press_status
+	rtn
+	
+mouse_check_key_gpio:
+	bpatch patch08_5,mem_patch08
+	fetch 1,mem_sensor_shutdown_flag
+	ncall mouse_check_key_gpio_once,blank
+	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_firekey_gpio
+	call mouse_check_customerkey_gpio
+	copy rega,pdata
+	rtn
+
+mouse_check_key_gpio_once:
+	setarg 0x030303
+	store 3,mem_mouse_lkey_press_status
+	rtn
+
+mouse_check_lkey_gpio:
+	fetch 1,mem_lbutton_gpio
+	call mouse_gpio_config_output_high
+	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
+	fetcht 1,mem_lbutton_gpio
+	branch mouse_gpio_config_input_pu
+
+mouse_check_rkey_gpio:
+	fetch 1,mem_rbutton_gpio
+	call mouse_gpio_config_output_high
+	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
+	fetcht 1,mem_rbutton_gpio
+	branch mouse_gpio_config_input_pu
+	
+mouse_check_mkey_gpio:
+	fetch 1,mem_mbutton_gpio
+	call mouse_gpio_config_output_high
+	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
+	fetcht 1,mem_mbutton_gpio
+	branch mouse_gpio_config_input_pu
+
+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
+	fetch 1,mem_matrix_public_gpio
+	beq GPIO_DISABLE,mouse_3io6key_bk_check
+	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_3io6key_bk_check:
+	fetch 1,mem_bk_button_gpio
+	call mouse_gpio_config_output_low
+	fetcht 1,mem_bk_button_gpio
+	call mouse_3io6key_check
+	store 1,mem_mouse_bkkey_press_status
+	fetcht 1,mem_bk_button_gpio
+	branch mouse_gpio_config_input_pu
+
+
+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
+	fetch 1,mem_matrix_public_gpio
+	beq GPIO_DISABLE,mouse_3io6key_fw_check
+	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
+mouse_matrix_public_gpio_reset:	
+	fetcht 1,mem_matrix_public_gpio
+	branch mouse_gpio_config_input_pu
+
+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_3io6key_fw_check:
+	fetch 1,mem_fw_button_gpio
+	call mouse_gpio_config_output_low
+	fetcht 1,mem_fw_button_gpio
+	call mouse_3io6key_check
+	store 1,mem_mouse_fwkey_press_status
+	fetcht 1,mem_fw_button_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
+mouse_key_release:
+	qset0 rega
+	rtn	
+
+mouse_check_key_connect_gnd:	
+	lshift pdata,pdata
+	copy pdata,regb
+	call gpio_get_bit
+	setflag true,0,regb
+mouse_check_key_connect_gnd_1:
+	and regb,0x07,pdata
+mouse_check_key_connect_gnd_next:
+	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_press:
+	qset1 rega
+	rtn
+
+mouse_3io6key_check:
+	bpatch patch08_6,mem_patch08
+	copy regc,pdata
+	store 1,mem_mouse_key_status
+	lshift pdata,pdata
+	copy pdata,regb
+	copy temp,regc
+	call mouse_gpio_config_input_pd
+	copy regc,temp
+	call gpio_get_bit
+	nsetflag true,0,regb
+	call mouse_check_press
+	branch mouse_check_key_connect_gnd_next
+
+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
+
+
+//input:pdata gpio number
+mouse_gpio_config_output_high:
+	rtneq GPIO_DISABLE
+	arg gpcfg_output_high,temp
+	branch gpio_config_function_int
+
+//input:pdata gpio number
+mouse_gpio_config_output_low:
+	rtneq GPIO_DISABLE
+	arg gpcfg_output_low,temp
+	branch gpio_config_function_int	
+
+
+
+mouse_firebutton_connect_state_check:
+	fetch 1,mem_firebutton_gpio
+	rtneq GPIO_DISABLE
+	bbit1 gpio_active_bit,mouse_firebutton_connect_vin
+mouse_firebutton_connect_gnd:	
+	jam 0,mem_mouse_firebutton_connect_vin_flag
+	rtn
+mouse_firebutton_connect_vin:
+	jam 1,mem_mouse_firebutton_connect_vin_flag
+	rtn
+
+mouse_check_firekey_gpio:
+	arg 0,regb
+	fetch 1,mem_firebutton_gpio
+	rtneq GPIO_DISABLE
+	fetch 1,mem_mouse_firebutton_connect_vin_flag
+	nbranch mouse_check_firekey_connect_vin,blank
+mouse_check_firekey_connect_gnd:
+	fetcht 1,mem_firebutton_gpio
+	call mouse_gpio_config_input_pu
+	fetcht 1,mem_firebutton_gpio
+	call gpio_get_bit
+	setflag true,0,regb
+mouse_firekey_state_store:	
+	copy regb,pdata
+	store 1,mem_fire_key_flag
+	rtn	
+
+mouse_check_firekey_connect_vin:
+	fetch 1,mem_firebutton_gpio
+	set0 gpio_active_bit,pdata
+	store 1,mem_firebutton_gpio
+	fetcht 1,mem_firebutton_gpio
+	call mouse_gpio_config_input_pd
+	fetcht 1,mem_firebutton_gpio
+	call gpio_get_bit
+	nsetflag true,0,regb
+	branch mouse_firekey_state_store
+
+mouse_fire_key_process: 
+	beq 4,mouse_fire_key_process_end
+mouse_fire_key_press:
+	call mouse_firekey_clkn_bt_timer_check 
+	fetch 4,mem_fire_key_delay
+	arg 0xa0,temp      
+	iadd temp,temp
+	copy clkn_bt,pdata
+	isub temp,null
+	nrtn positive
+	store 4,mem_fire_key_delay 
+	fetch 1,mem_fire_key_status
+	beq 0,mouse_fire_key_process_start
+	beq 1,mouse_fire_key_process_release1
+	beq 2,mouse_fire_key_process_start2
+	beq 3,mouse_fire_key_process_release2
+	rtn
+
+mouse_fire_key_process_start:
+	jam 1,mem_fire_key_status
+mouse_fire_key_down:
+	jam 1,mem_mouse_key
+	branch enable_user
+
+mouse_fire_key_process_release1:
+	jam 2,mem_fire_key_status
+mouse_fire_key_release:
+	jam 0,mem_mouse_key
+	branch enable_user
+
+mouse_fire_key_process_start2:
+	jam 3,mem_fire_key_status
+	branch mouse_fire_key_down
+
+mouse_fire_key_process_release2:
+	jam 0,mem_fire_key_status
+	branch mouse_fire_key_release
+	
+mouse_fire_key_process_end:
+	jam 0,mem_fire_key_status
+	jam 0,mem_mouse_key
+	rtn
+
+mouse_firekey_clkn_bt_timer_check:
+	fetcht 4,mem_fire_key_delay
+	copy clkn_bt,pdata
+	isub temp,null
+	ncall mouse_firekey_clkn_bt_timer_timeout,positive
+	rtn
+mouse_firekey_clkn_bt_timer_timeout:
+	setarg 0
+	store 4,mem_fire_key_delay
+	rtn
+
+	
+/*************************key***************************************/
+
+/**********************sensor******************************/	
+mouse_init_sunt:
+	bpatch patch08_7,mem_patch08
+	call mouse_sensor_spi_init
+	rtn wake
+mouse_init_sensor_wakeup:	
+	call mouse_sensor_poweron
+mouse_init_sensor:
+	bpatch patch09_0,mem_patch09
+	call mouse_read_sensor_id
+	beq P32XX_ID1,mouse_init_p32xx_id2_judge
+	beq P3065_ID1,mouse_init_p3065
+	beq PKA8G2_ID1,mouse_ka8g2_id2_judge
+	call mouse_twspi_reset
+	nop 6900
+	branch mouse_init_sensor
+mouse_twspi_reset:
+	fetcht 1,mem_mouse_sensor_sclk_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
+
+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_check
+	beq P6520A_ID2,mouse_p6520_init_param
+	branch mouse_init_sensor
+	
+mouse_mx8650_init_param:
+	jam MX8650,mem_config_sensor_type
+	call mouse_sensor_reset
+	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
+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_ka8_init_param_check:	
+	call mouse_sensor_disable_wp
+	setarg 0x9a5b
+	call twspi_write
+	setarg 0x0d
+	call twspi_read
+	sub pdata,0x12,null
+	branch mouse_ka8ul_init_param,zero
+	sub pdata,0x0a,null
+	nbranch mouse_ka8hd_sensor_judge,zero
+	setarg 0x0e
+	call twspi_read
+	sub pdata,0xe5,null
+	nbranch mouse_init_sensor,zero
+	setarg 0x10
+	call twspi_read
+	sub pdata,0xa5,null
+	branch mouse_ka8ul_init_param,zero
+	call mouse_enable_ka8_sensor_wp
+mouse_ka8_init_param:
+	jam KA8,mem_config_sensor_type	
+	rtn
+mouse_ka8ul_init_param:
+	jam KA8_UL,mem_config_sensor_type	
+	arg mem_sensor_ka8ul_init,regc
+	branch mouse_sensor_wr_seq
+mouse_ka8hd_sensor_judge:
+	sub pdata,0x10,null
+	nbranch mouse_init_sensor,zero
+	setarg 0x0e
+	call twspi_read
+	sub pdata,0xc5,null
+	nbranch mouse_init_sensor,zero
+	setarg 0x10
+	call twspi_read
+	sub pdata,0x38,null
+	nbranch mouse_init_sensor,zero
+mouse_ka8hd_init_param:
+	call mouse_enable_ka8_sensor_wp
+	jam KA8_HD,mem_config_sensor_type
+	rtn
+mouse_enable_ka8_sensor_wp:
+	setarg 0x005b
+	call twspi_write
+	branch mouse_sensor_enable_wp
+	
+mouse_p6520_init_param:
+	jam P6520,mem_config_sensor_type
+	arg mem_sensor_p6520_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_ka8g2_id2_judge:
+	call mouse_sensor_poweron
+	fetch 1,mem_sensor_id2
+	beq PKA8G2_ID2,mouse_ka8g2_init_param
+	branch mouse_init_p32xx_id2_judge
+mouse_ka8g2_init_param:
+	jam KA8G2,mem_config_sensor_type
+	arg mem_sensor_ka8g2_init,regc
+	branch mouse_sensor_wr_seq
+	
+mouse_sensor_enable_wp:
+	setarg 0x0009
+	branch twspi_write
+mouse_sensor_disable_wp:
+	setarg 0x5a09
+	branch twspi_write
+
+mouse_sensor_reset:	
+	arg 0x8006,temp
+	fetch 1,mem_config_sensor_type
+	bne KA8G2,mouse_sensor_reset_end
+	arg 0x9706,temp
+mouse_sensor_reset_end:
+	copy temp,pdata
+	call twspi_write
+	nop 12000
+	rtn
+
+mouse_sensor_poweron_init:
+	arg mem_sensor_poweron_init,regc
+	fetch 1,mem_config_sensor_type
+	rtnne KA8G2
+	arg mem_sensor_ka8g2_poweron_init,regc
+	rtn
+	
+mouse_sensor_poweron:
+	bpatch patch09_1,mem_patch09
+	call mouse_sensor_spi_init
+	call mouse_sensor_reset
+	call mouse_sensor_poweron_init
+	call mouse_sensor_wr_seq
+	branch mouse_dpi_config
+
+mouse_sensor_powerdown:
+	bpatch patch09_2,mem_patch09
+	call mouse_init_sunt
+	call mouse_sensor_spi_init
+	arg 0x0806,temp
+	fetch 1,mem_config_sensor_type
+	bne KA8G2,mouse_sensor_powerdown_end
+	arg 0x1f06,temp
+mouse_sensor_powerdown_end:
+	copy temp,pdata
+	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 P3065_xy,mouse_p32xx_sensor_motion
+	beq P8009,mouse_p8009_sensor_motion	
+	beq KA8G2,mouse_pka8g2_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_pka8g2_sensor_motion:
+	call mouse_clear_sensor_data
+	fetch 1,mem_sensor_motion_gpio
+	beq GPIO_DISABLE,mouse_pka8g2_sensor_motion_1
+	fetcht 1,mem_sensor_motion_gpio
+	call gpio_get_bit
+	nrtn true
+mouse_pka8g2_sensor_motion_1:
+	branch mouse_p3212_sensor_motion_2
+
+
+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_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:
+	branch mouse_init_sunt
+
+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:
+	fetcht 1,mem_mouse_sensor_sdio_gpio
+	call gpio_get_bit
+	rtn true
+	setarg 0x0a
+	call twspi_read
+	nop 1000
+	branch mouse_sensor_sdio_low
+
+mouse_set_sdio_high:		// make sdio high to make 100uA less
+	setarg 0x8100
+	branch twspi_write
+	
+/****************************sensor*************************/
+
+/*******************mouse fast connect******************/
+mouse_bluetooth_fast_conn_init:
+	jam 0xff,mem_mouse_bluetooth_fast_conn_flag
+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_buletooth_fast_conn_end:
+	bpatch patch09_3,mem_patch09
+	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_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_BLE_CONNECTED,app_ble_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
+	rtn
+	
+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
+	branch disable_user
+
+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 patch09_4,mem_patch09
+	copy regc,pdata
+	beq BT_EVT_LE_CONNECTED,mouse_le_bb_event_connected
+	beq BT_EVT_LE_DISCONNECTED,mouse_le_bb_disconnected
+	beq BT_EVT_BUTTON_LONG_PRESSED,mouse_bb_event_discovery_btn
+	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,app_ble_store_reconn_info
+	beq BT_EVT_LE_PARSE_CONN_PAPA_UPDATE_RSP,mouse_le_conn_param_update_rsp_recieved
+	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:
+	fetch 1,mem_mouse_1io2led_led_enable
+	ncall mouse_multi_led_on_enable,blank
+	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
+	jam 0,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:
+	setarg 0
+	store 2,mem_le_battery_level_updata_timer
+	store 1,mem_mouse_le_send_conn_param_update
+	store 1,mem_mouse_le_send_conn_param_update_timer
+	store 1,mem_mouse_le_bb_connected_flag
+	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
+	jam 20,mem_le_start_encrypt_timer	
+	branch mouse_le_ll_enable_start_enc_flag
+mouse_le_ll_reconn_start_encryt:
+	call mouse_updata_le_param
+	jam 10,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_conn_param_update_rsp_recieved:
+	fetch 1,mem_mouse_le_send_conn_param_update
+	nrtn blank
+	jam 1,mem_mouse_le_send_conn_param_update
+	jam 30,mem_mouse_le_send_conn_param_update_timer
+	rtn
+	
+mouse_le_conn_param_lpm_disable:
+	jam LE_LPM_DISABLE,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
+mouse_le_conn_param_lpm_enable:
+	jam LE_LPM_ENABLE,mem_mouse_le_conn_param_reject
+	rtn
+	
+/*
+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 patch09_5,mem_patch09
+	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
+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_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_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
+
+mouse_le_name_load:
+	fetch 8,mem_le_name_temp
+	rtn blank
+	fetch 1,mem_le_name_len_temp
+	copy pdata,rega
+	sub pdata,11,null
+	nbranch mouse_le_name_len_overflow,positive
+	arg mem_le_name_temp,contr	
+	arg mem_le_adv_swift_pair+9,contw
+	copy rega,loopcnt
+	call memcpy
+	arg mem_le_name_temp,contr
+	arg mem_le_scan_data+2,contw
+	copy rega,loopcnt
+	call memcpy
+	arg mem_le_name_temp,contr
+	arg mem_le_name,contw
+	copy rega,loopcnt
+	branch memcpy
+mouse_le_name_len_overflow:
+	call mouse_le_swift_pair_disable
+	fetch 1,mem_le_name_len_temp
+	increase 1,pdata
+	store 1,mem_le_adv_swift_pair
+	jam 9,mem_le_adv_swift_pair+1
+	arg mem_le_name_temp,contr
+	arg mem_le_adv_swift_pair+2,contw
+	copy rega,loopcnt
+	call memcpy
+	fetch 1,mem_le_name_len_temp
+	increase 1,pdata
+	store 1,mem_le_scan_data
+	jam 9,mem_le_scan_data+1
+	arg mem_le_name_temp,contr
+	arg mem_le_scan_data+2,contw
+	copy rega,loopcnt
+	call memcpy
+	arg mem_le_name_len_temp,contr
+	arg mem_le_name_len,contw
+	copy rega,loopcnt
+	increase 1,loopcnt
+	branch memcpy
+mouse_le_swift_pair_disable:
+	arg mem_le_adv_swift_pair,contw
+	arg 20,loopcnt
+	branch clear_mem
+
+mouse_le_parse_l2cap:
+	fetch 2,mem_le_payload_ptr
+	add pdata,2,contr	//l2cap length
+	ifetch 2,contr
+	beq LE_L2CAP_CID_ATT,mouse_le_parse_att
+	branch le_parse_l2cap+4
+
+mouse_le_parse_att:
+	ifetch 3,contr
+	store 3,mem_le_att_opcode
+	beq ATTOP_READ_REQUEST,mouse_le_parse_att_read_request
+	beq ATTOP_WRITE_REQUEST,mouse_le_parse_att_write_request	
+	branch le_parse_att+2
+
+mouse_le_parse_att_read_request:
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	bbit0 MOUSE_ENABLE_LE_BATTERY_SERVICE_CANCEL,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,mouse_le_send_att_read_response_check_auth
+//input:temp is handle
+mouse_le_send_att_read_response:
+	fetch 2,mem_le_att_handle
+	beq 0x30,le_send_att_error_response_notfound
+	branch le_send_att_read_response
+
+mouse_le_send_att_read_response_check_auth:
+	fetch 2,mem_le_pairing_handle
+	isub temp,null
+	nbranch mouse_le_send_att_read_response,zero
+	nbranch mouse_le_send_att_read_response,user
+	branch le_send_att_read_response_error_insufficient_auth
+
+mouse_le_parse_att_write_request:		// mac os 10.9.5 reconnect can't move
+	copy contr,rega
+	fetch 2,mem_le_l2cap_size
+	add pdata,-3,regb
+	call le_writeatt_cb
+	fetch 1,mem_mouse_bluetooth_fast_conn_flag
+	beq 0xff,le_send_att_write_response_check_auth	
+	fetch 1,mem_mouse_le_reconnect_flag
+	branch le_send_att_write_response_check_auth,blank
+	fetch 1,mem_le_connect_status_flag
+	bbit1 LL_START_ENC_FLAG,le_send_att_write_response_check_auth
+	setarg 0x001a		
+	fetcht 2,mem_le_att_handle
+	isub temp,null
+	nbranch le_send_att_write_response_check_auth,zero
+	branch le_send_att_read_response_error_insufficient_auth
+	
+/***************************le*************************/
+
+
+
+mouse_bb_disconnected:
+	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
+	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 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 mouse_app_enter_hibernate
+
+
+/********************mouse 100ms timer*****************/
+mouse_bb_event_timer:
+	bpatch patch09_6,mem_patch09
+	call mouse_adc_read
+	call mouse_low_voltage_led_timer
+	//24g
+	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
+	call mouse_led_multi_timer
+	call mouse_logo_led_on_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
+	call mouse_le_send_conn_param_update_timer
+	//bt
+	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
+	rtn
+
+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_send_conn_param_update_timer:
+	arg mem_mouse_le_send_conn_param_update_timer,regc
+	arg mouse_updata_le_param,regb
+	branch timer_single_step
+
+mouse_le_battery_updata_timer:
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	rtnbit1 MOUSE_ENABLE_LE_BATTERY_SERVICE_CANCEL
+	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_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:	
+	arg mem_mouse_no_data_timer,regc
+	arg mouse_check_no_data_timeout,regb
+	branch timer_single_step_2B
+
+mouse_check_no_data_timeout:
+	fetch 1,mem_device_flag
+	beq MODE_24G_DEVICE,mouse_24g_hibernate_set
+	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_device_multi_led_poweron2s_init:
+	fetch 1,mem_mouse_multi_led_powon2s_timer_init
+	store 1,mem_mouse_multi_led_powon2s_timer
+	fetch 1,mem_mouse_multi_led_poweron2s_flag_init
+	store 1,mem_mouse_multi_led_poweron2s_flag
+	rtn
+mouse_multi_led_blink_enable:
+	jam 1,mem_mouse_multi_led_blink_enable
+	jam MULTI_LED_BLINK,mem_mouse_multi_led_type
+	fetch 1,mem_mouse_multi_led_blink_timer_init
+	store 1,mem_mouse_multi_led_blink_timer
+	rtn
+mouse_multi_led_on_enable:	
+	jam 1,mem_mouse_multi_led_blink_enable	//disable flag 
+	jam 0,mem_mouse_multi_led_blink_timer
+	jam MULTI_LED_ON,mem_mouse_multi_led_type
+	rtn
+
+mouse_led_multi_timer:
+	fetch 1,mem_mouse_multi_led_blink_enable
+	rtn blank
+	fetch 1,mem_mouse_multi_led_type
+	beq MULTI_LED_BLINK,mouse_multi_led_type_blink
+mouse_multi_led_type_on:
+	fetch 1,mem_mouse_multi_led_poweron2s_flag
+	nbranch mouse_device_multi_led_poweron2s,blank
+	jam 0,mem_mouse_multi_led_blink_enable
+	rtn
+mouse_device_multi_led_poweron2s:
+	fetch 1,mem_mouse_multi_led_powon2s_timer
+	branch mouse_multi_led_poweron2s_and_flag_off,blank
+	increase -1
+	store 1,mem_mouse_multi_led_powon2s_timer
+	branch mouse_device_multi_led_on
+mouse_multi_led_poweron2s_and_flag_off:
+	jam 0,mem_mouse_multi_led_poweron2s_flag
+	jam 0,mem_mouse_multi_led_blink_enable
+	branch mouse_device_multi_led_off
+
+mouse_multi_led_type_blink:
+	arg mem_mouse_multi_led_blink_timer,regc
+	arg mouse_multi_led_type_blink_timeout,regb
+	branch timer_single_step
+
+mouse_multi_led_type_blink_timeout:
+	fetch 1,mem_mouse_multi_led_blink_timer_init
+	store 1,mem_mouse_multi_led_blink_timer
+	fetch 1,mem_mouse_multi_led_state
+	beq ON,mouse_device_multi_led_off	
+mouse_device_multi_led_on:
+	jam ON,mem_mouse_multi_led_state
+	fetch 1,mem_device_flag
+	beq MODE_24G_DEVICE,mouse_device_24g_multi_led_on
+	beq MODE_BT_DEVICE1,mouse_device_bt1_multi_led_on
+	beq MODE_BT_DEVICE2,mouse_device_bt2_multi_led_on
+	rtn
+mouse_device_24g_multi_led_on:
+	fetcht 1,mem_mouse_1io2led_multi_24g_gpio
+	branch gpio_out_active
+mouse_device_bt1_multi_led_on:
+	fetcht 1,mem_mouse_1io2led_multi_bt1_gpio
+	branch gpio_out_active
+mouse_device_bt2_multi_led_on:
+	fetcht 1,mem_mouse_1io2led_multi_bt2_gpio
+	branch gpio_out_active
+
+mouse_device_multi_led_off:
+	jam OFF,mem_mouse_multi_led_state
+	fetch 1,mem_device_flag
+	beq MODE_24G_DEVICE,mouse_device_24g_multi_led_off
+	beq MODE_BT_DEVICE1,mouse_device_bt1_multi_led_off
+	beq MODE_BT_DEVICE2,mouse_device_bt2_multi_led_off
+	rtn
+
+mouse_device_24g_multi_led_off:
+	fetcht 1,mem_mouse_1io2led_multi_24g_gpio
+	branch gpio_set_high_impedance
+mouse_device_bt1_multi_led_off:
+	fetcht 1,mem_mouse_1io2led_multi_bt1_gpio
+	branch gpio_set_high_impedance
+mouse_device_bt2_multi_led_off:
+	fetcht 1,mem_mouse_1io2led_multi_bt2_gpio
+	branch gpio_set_high_impedance
+
+mouse_1io2led_all_off:
+	call mouse_device_24g_multi_led_off
+	call mouse_device_bt1_multi_led_off
+	branch mouse_device_bt2_multi_led_off
+
+
+mouse_logo_led_on_timer:
+	fetch 1,mem_mouse_logo_led_gpio
+	rtneq GPIO_DISABLE
+	fetch 2,mem_mouse_no_data_timer
+	rtn blank
+	fetch 2,mem_mouse_no_data_timeout
+	fetcht 2,mem_mouse_no_data_timer
+	isub temp,temp
+	fetch 2,mem_mouse_logo_led_on_time_init
+	isub temp,pdata
+	branch mouse_logo_led_on,positive
+mouse_logo_led_off:
+	fetcht 1,mem_mouse_logo_led_gpio
+	fetch 1,mem_mouse_1io2led_led_enable
+	beq 1,gpio_set_high_impedance
+	branch gpio_out_inactive
+mouse_logo_led_on:
+	fetcht 1,mem_mouse_logo_led_gpio
+	branch gpio_out_active
+
+
+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 patch09_7,mem_patch09
+	fetch 2,mem_ui_state_map
+	isolate1 UI_STATE_BLE_ADV,pdata
+	call mouse_stop_le_adv,true		//reconnect adv
+	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_mouse_discovery_timeout
+	store 2,mem_mouse_discovery_timer
+	setarg 0
+	store 2,mem_mouse_no_data_timer
+	store 2,mem_le_battery_level_updata_timer
+	store 1,mem_mouse_direct_timer
+	store 1,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
+	call mouse_check_51cmd_adv
+	call mouse_low_voltage_led_blink_disable
+	branch mouse_device_discover_led_config
+
+
+mouse_stop_discovery:
+	bpatch patch0a_0,mem_patch0a
+	arg MOUSE_BT_DISCOVERY_BUTTON_LONG_DOWN_FLAG,queue
+	call mouse_disable_function_flag
+	jam 0,mem_mouse_bluetooth_reconnect_timeout
+	call mouse_stop_le_adv
+	branch mouse_device_led_off
+mouse_stop_le_adv:
+	setarg 0
+	store 1,mem_mouse_direct_timer
+	store 2,mem_mouse_discovery_timer
+	branch check_51cmd_stop_adv
+
+mouse_store_remote_bdaddr:
+	bpatch patch0a_1,mem_patch0a
+	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
+	rtn
+mouse_check_le_device_addr:
+	store 1,mem_device_addr_temp
+	fetch 6,mem_le_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
+	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_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_4_MODE,mouse_load_le_device
+	rtn
+
+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 patch0a_2,mem_patch0a
+	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 patch0a_3,mem_patch0a
+	call mouse_low_voltage_led_no_enter_lpm
+	call ui_check_paring_button
+	call mouse_dpi_check
+	call mouse_dpi_another_gpio_check
+	call mouse_select_device_check
+	call mouse_check_select_device_by_switch
+	call mouse_bt_button_check
+	branch mouse_wheel_check
+	
+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
+	fetch 1,mem_matrix_public_gpio
+	beq GPIO_DISABLE,mouse_3io6key_pb_button_check_end	
+	call mouse_matrix_public_gpio_reset
+mouse_select_device_by_pb_button_exit:	
+	copy rega,pdata
+	bbit1 MOUSE_PB_KEY,mouse_select_device_button_down
+	branch mouse_select_device_button_up
+
+mouse_3io6key_pb_button_check_end:
+	fetcht 1,mem_config_select_device_button_gpio
+	call mouse_gpio_config_input_pu
+	branch mouse_select_device_by_pb_button_exit
+
+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_pbkey_press_status
+	copy pdata,regc
+	fetch 1,mem_matrix_public_gpio
+	beq GPIO_DISABLE,mouse_3io6key_check
+	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:
+	bpatch patch0a_4,mem_patch0a
+	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 1,mem_mouse_direct_timer
+	rtn blank
+	fetch 1,mem_mouse_direct_timeout
+	store 1,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
+	branch enable_user
+	
+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 patch0a_5,mem_patch0a
+	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
+	branch mouse_select_device_by_pb_button
+	
+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_adc_read_enable:
+	arg MOUSE_ENABLE_ADC,queue
+	branch mouse_enable_function_flag
+
+mouse_24g_set_250Hz:
+	arg MOUSE_ENABLE_24G_250Hz,queue
+	branch mouse_enable_function_flag
+
+mouse_24g_search_dongle_enable:
+	arg MOUSE_ENABLE_24G_SEARCH_DONGLE,queue
+	branch mouse_enable_function_flag
+	
+mouse_16M_enable:
+	arg MOUSE_ENABLE_16M,queue
+	branch mouse_enable_function_flag
+	
+mouse_dpi_4level_enable:
+	arg MOUSE_ENABLE_DPI_LEVEL_4,queue
+	branch mouse_enable_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_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,mouse_customer_key_ctrl_alt_a
+	beq 0x80,mouse_customer_AC_home
+	beq 0xc0,mouse_customer_key_play
+	setarg 0x070008
+mouse_customer_standrad_key_set:	
+	store 8,mem_customer_key_press+1		// win + d
+	rtn
+
+mouse_customer_key_ctrl_alt_a:
+	setarg 0x040005
+	branch mouse_customer_standrad_key_set
+
+mouse_customer_AC_home:
+	setarg 0x022303
+mouse_customer_media_key_set:	
+	store 8,mem_customer_key_press
+	setarg 0x03
+	store 8,mem_customer_key_release
+	rtn
+	
+mouse_customer_key_play:
+	setarg 0x00cd03
+	branch mouse_customer_media_key_set
+
+	
+mouse_polling_device:
+	bpatch patch0a_6,mem_patch0a
+	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
+	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:
+	bpatch patch0a_7,mem_patch0a
+	fetch 1,mem_config_sensor_type
+	rtneq P3212
+	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
+	bpatch patch0b_0,mem_patch0b
+	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_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:
+	fetch 4,mem_24g_long_sleep_set1
+	store 4,mem_24g_enter_hibernate
+	jam 1,mem_mouse_long_mult_flag
+	rtn
+
+
+mouse_24g_long_sleep_set:
+	fetch 1,mem_24g_long_sleep_set_level
+	beq 0x00,mouse_24g_long_sleep_set_30ms
+	beq 0x01,mouse_24g_long_sleep_set_50ms
+	beq 0x02,mouse_24g_long_sleep_set_80ms
+	beq 0x03,mouse_24g_long_sleep_set_100ms
+mouse_24g_long_sleep_set_80ms:
+	setarg 0x0ea600
+mouse_24g_long_sleep_set_end:	
+	store 4,mem_24g_long_sleep_set1
+	rtn
+mouse_24g_long_sleep_set_30ms:
+	setarg 0x05e740
+	branch mouse_24g_long_sleep_set_end
+mouse_24g_long_sleep_set_50ms:
+	setarg 0x0927c0
+	branch mouse_24g_long_sleep_set_end
+mouse_24g_long_sleep_set_100ms:
+	setarg 0x124f80
+	branch mouse_24g_long_sleep_set_end
+
+mouse_24g_hibernate_set:
+	bpatch patch0b_1,mem_patch0b
+	jam 0,mem_24g_attempt_fail_flag
+	call g24_transmit_next_packet
+	setarg -1
+	store 4,mem_24g_enter_hibernate
+	setarg 0
+	store 7,mem_mouse_key
+	jam 1,mem_sensor_shutdown_flag
+	call mouse_sensor_powerdown
+	call mouse_setgpio_hibernate
+	branch mouse_24g_long_sleep
+
+mouse_wakeup_24g:
+	fetch 1,mem_sensor_shutdown_flag
+	ncall mouse_wakeup_24g_from_long_sleep,blank
+	jam 0,mem_sensor_shutdown_flag
+	rtn
+
+mouse_wakeup_24g_from_long_sleep:
+	call mouse_init_sensor_wakeup
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	rtnbit0 MOUSE_ENABLE_WHEEL_WAKE_UP_CANCEL
+mouse_wheel_gpio_init:
+	fetch 1,mem_whee_a_data_gpio
+	arg gpcfg_pullup,temp
+ 	call gpio_config_function_int
+	fetch 1,mem_whee_b_data_gpio
+	arg gpcfg_pullup,temp
+ 	branch gpio_config_function_int	
+
+mouse_24g_transmit_start:
+	call mouse_24g_fast_conn_mode_check
+	fetch 1,mem_sensor_shutdown_flag
+	nbranch mouse_24g_short_sleep,blank
+	branch g24_transmit_start_next
+
+mouse_24g_fast_conn_mode_check:
+	fetch 4,mem_24g_receiver_addr
+	fetcht 4,mem_24g_fast_conn_addr
+	isub temp,null
+	branch mouse_soft_agc_enable,zero
+	branch mouse_soft_agc_disable
+
+mouse_soft_agc_enable:
+	jam 0,mem_gain_fix
+	jam TX_POWER_FACTORY,mem_tx_power
+	rtn
+mouse_soft_agc_disable:
+	jam 0xff,mem_gain_fix
+	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 rega,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_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:
+	fetch 1,mem_mouse_1io2led_led_enable
+	ncall mouse_multi_led_blink_enable,blank
+	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_device_discover_led_config
+	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
+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 mouse_app_enter_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:
+	jam 0,mem_24g_reconn_type
+	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_device_discover_led_config
+	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_attempt_fail_flag
+	nbranch mouse_24g_hibernate_set,blank
+	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
+	beq RECEIVER_AND_3_0_ADDR,mouse_reconn_dongle_attempt_fail
+mouse_24g_attempt_fail_enter_hibernate:
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	bbit1 MOUSE_ENABLE_WHEEL_WAKE_UP_CANCEL,mouse_24g_hibernate_set
+mouse_24g_attempt_fail_enter_hibernate_next:
+	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
+	bbit0 MOUSE_ENABLE_24G_AUTO_PAIR_NERVER_BEEN_PAIRED,mouse_24g_reconn_dongle_start
+	fetch 4,mem_mouse_24g_addr		// auto pair first time
+	fetcht 4,mem_mouse_compare_addr_ff
+	isub temp,null
+	branch mouse_24g_start_pair_mode,zero
+mouse_24g_reconn_dongle_start:
+	fetch 1,mem_mouse_1io2led_led_enable
+	ncall mouse_multi_led_blink_enable,blank
+	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_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_reconn_dongle_attempt_fail:
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	bbit0 MOUSE_ENABLE_24G_FIRST_AUTO_PAIRING,mouse_24g_attempt_fail_enter_hibernate
+	bbit1 MOUSE_ENABLE_EEPROM,mouse_24g_attempt_fail_enter_hibernate
+	bbit1 MOUSE_ENABLE_FLASH,mouse_24g_attempt_fail_enter_hibernate
+	branch mouse_24g_start_auto_pair+1
+	
+mouse_24g_attempt_success:
+	fetch 4,mem_24g_addr
+	store 4,mem_24g_receiver_addr
+	store 4,mem_mouse_24g_addr		// if need store 24g address to eeprom/flash,need get mem_24g_addr
+	call g24_ch_syncword_crc8_init
+	call mouse_device_poweron_led_config
+	call mouse_no_data_timer_init
+	call mouse_init_sensor_reset
+	jam 0,mem_mouse_long_mult_flag
+	jam 0,mem_24g_conn_sm
+	jam 0,mem_24g_reconn_type
+	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_device_poweron_led_config:
+	fetch 1,mem_mouse_1io2led_led_enable
+	branch mouse_device_poweron_timer_init,blank
+	branch mouse_multi_led_on_enable
+
+mouse_device_discover_led_config:
+	fetch 1,mem_mouse_1io2led_led_enable
+	branch mouse_discover_setting_led_gpio,blank
+	branch mouse_multi_led_blink_enable
+
+mouse_24g_pairing_complete:
+	call mouse_no_data_timer_init
+	arg MOUSE_24G_PAIRING_FLAG,queue
+	call mouse_disable_function_flag
+	call mouse_device_poweron_led_config
+	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
+	call mouse_read_sensor_common
+	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:
+	bpatch patch0b_2,mem_patch0b
+	rtnmark0 mark_24g
+	call mouse_motion
+	nrtn user
+	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 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
+
+
+
+/**************************************g24 search receiver*****************************************/
+
+mouse_24g_search_dongle_init:
+	setarg 0
+	store 3,mem_mouse_search_dongle_action
+	rtn
+
+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
+mouse_24g_search_dongle_loop:
+	bpatch patch0b_3,mem_patch0b
+	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_g24_ackpayload_parse
+	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
+	fetch 2,mem_mouse_24g_search_dongle_time_init		//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_wakeup
+
+mouse_g24_ackpayload_parse:
+	call g24_ackpayload_parse
+	fetch 1,mem_24g_rxbuf+1
+	compare 0x08,pdata,0xf8
+	nrtn true
+	fetch 1,mem_24g_rxbuf+2		// pc sleep mouse ackpayload: 01 08 ff
+	beq 0xff,mouse_24g_hibernate_set
+	rtn
+
+/**************************************g24 search receiver*****************************************/
+
+
+/**************************************g24 new process start********************************************/
+mouse_24g_before_lpm_sleep:
+	fetch 1,mem_device_flag
+	bne MODE_24G_DEVICE,lpm_sleep_skip_cb_function
+	fetch 1,mem_24g_disable_fec1
+	rtn blank
+mouse_peripheral_clock_off:
+	jam 2,core_clksel			//use rc clock
+	fetch 1,core_lpm_ctrl		//close xtal en reg
+	and pdata,0xfc,pdata
+	store 1,core_lpm_reg
+	branch lpm_write_ctrl
+
+/**************************************g24 new process end********************************************/
+
+
+/*******************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 2,mem_24g_reconn_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
+	fetch 1,mem_config_sensor_type
+	beq P3212,mouse_dpi_led_blink_init1	//result:    level3: 1  2  3     level4: 2  3  4  1
+	beq KA8G2,mouse_dpi_led_blink_init1	//result:    level3: 1  2  3     level4: 2  3  4  1
+	arg 0,rega
+	fetcht 1,mem_mouse_dpi
+	increase 2,temp	// 2 3 4 (5)
+	sub temp,3,null
+	call mouse_dpi_led_blink_init_level_4,positive
+	branch mouse_dpi_led_blink_init_end,positive
+	increase -3,temp		// 4-->1  5-->2
+	branch mouse_dpi_led_blink_init_end
+
+mouse_dpi_led_blink_init_level_4:
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	rtnbit0 MOUSE_ENABLE_DPI_LEVEL_4
+	increase 1,temp  	// 2-->3   3-->4
+	rtn
+
+mouse_dpi_led_blink_init1:
+	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
+	branch mouse_dpi_led_blink_init_end,positive
+	arg 1,temp	// 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_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
+	branch enable_user
+
+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
+	fetcht 1,mem_config_device_24g_led_gpio
+	branch mouse_led_off
+
+mouse_device_bt1_led_off:
+	fetcht 1,mem_config_device_bt1_led_gpio
+	branch mouse_led_off
+	
+mouse_device_bt2_led_off:
+	fetcht 1,mem_config_device_bt2_led_gpio
+	branch mouse_led_off
+
+mouse_dpi_led_off:
+	fetcht 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:
+	fetcht 1,mem_config_device_24g_led_gpio
+	branch mouse_led_on
+mouse_device_bt1_led_on:
+	fetcht 1,mem_config_device_bt1_led_gpio
+	branch mouse_led_on
+mouse_device_bt2_led_on:
+	fetcht 1,mem_config_device_bt2_led_gpio
+	branch mouse_led_on
+
+mouse_led_off:
+	bpatch patch0b_4,mem_patch0b
+	copy temp,pdata
+	rtneq GPIO_DISABLE
+	copy pdata,temp
+	storet 1,mem_mouse_struct_led_gpio
+	arg 0,rega
+	branch ui_led_off_global
+mouse_led_on:
+	bpatch patch0b_5,mem_patch0b
+	copy temp,pdata
+	rtneq GPIO_DISABLE
+	copy pdata,temp
+	storet 1,mem_mouse_struct_led_gpio
+	arg 0,rega
+	branch ui_led_on_global
+
+mouse_ui_led_off_static:
+	bpatch patch0b_6,mem_patch0b
+	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,gpio_out_inactive
+	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 gpio_out_inactive,blank
+	jam 0,mem_mouse_led_off_4_led
+	branch gpio_set_high_impedance
+
+mouse_ui_led_on_static:
+	bpatch patch0b_7,mem_patch0b
+	fetch 1,mem_config_device_24g_led_gpio
+	isub temp,null
+	call mouse_set_24g_led_statue,zero
+	branch gpio_out_active 
+
+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 2,mem_24g_reconn_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
+	fetcht 1,mem_config_low_voltage_alarm_gpio
+	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
+	fetcht 1,mem_config_low_voltage_alarm_gpio
+	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
+mouse_low_voltage_led_no_enter_lpm_next:	
+	fetch 1,mem_device_flag
+	beq MODE_24G_DEVICE,g24_transmit_by_interrupt_exit_check
+	jam 1,mem_lpm_mode
+	rtn
+
+g24_transmit_by_interrupt_exit_check:
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag	
+	rtnbit1 MOUSE_ENABLE_24G_250Hz	
+	branch g24_transmit_by_interrupt_exit
+
+mouse_lpm_mode_clear:
+	fetch 1,mem_device_flag
+	beq MODE_24G_DEVICE,g24_transmit_by_interrupt_enable
+	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
+	branch mouse_low_voltage_led_no_enter_lpm_next
+	
+	
+/*******************led*************************/	
+mouse_store_signal_rssi:
+//	call rssi_hex2dec
+	fetch 1,mem_rssi
+	branch rssi_signal
+
+mouse_le_transmit:
+	call mouse_store_signal_rssi
+	branch power_ctrl_start
+
+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
+
+mouse_set_lpm_mult:
+	fetch 2,mem_ui_state_map
+	bbit1 UI_STATE_BLE_CONNECTED,mouse_le_set_lpm_mult
+	rtn
+
+mouse_24g_long_sleep:
+	call g24_lpm_wait
+	nrtn user
+	fetch 1,mem_24g_device_led_status
+	nrtn blank	
+	call g24_setgpio_lpm_before
+	jam 0,mem_mouse_24g_sleep_miss
+	call mouse_24g_send_time_long_wake
+	fetch 1,mem_sensor_shutdown_flag
+	ncall mouse_setgpio_hibernate,blank
+	fetch 4,mem_24g_enter_hibernate
+	branch g24_long_seep2	
+
+mouse_24g_short_sleep:
+	fetch 1,mem_mouse_sleep_deal_type
+	branch g24_short_sleep,blank
+	call g24_lpm_wait
+	nrtn user
+	fetch 1,mem_24g_device_led_status
+	nrtn blank
+	fetch 1,mem_mouse_24g_sleep_miss
+	jam 0,mem_mouse_24g_sleep_miss
+	sub pdata,0,null
+	nbranch mouse_24g_short_sleep_last_miss,zero
+	fetcht 2,mem_24g_retransmit
+	sub temp,0,null
+	branch mouse_24g_short_sleep_default,zero
+
+	fetch 4,mem_mouse_24g_tx_time_last_delt
+	branch mouse_24g_short_sleep_default,blank
+mouse_24g_short_sleep_notify:
+	fetcht 4,mem_mouse_24g_tsniff
+	isub temp,temp
+	storet 4,mem_mouse_24g_sleep_miss_temp
+	nbranch mouse_24g_short_sleep_long,positive
+	fetch 3,mem_24g_short_sleep_set
+	isub temp,pdata
+	nbranch mouse_24g_short_sleep_2,positive
+	arg 0x600,temp
+	isub temp,null
+	nbranch mouse_24g_short_sleep_2,positive
+mouse_24g_short_sleep2:
+	store 4,mem_mouse_24g_sleep_time_temp
+	call mouse_24g_miss_temp_clear
+	fetch 4,mem_mouse_24g_sleep_time_temp
+mouse_24g_short_sleep3:	
+	call clk2lpo
+	storet 4,mem_sleep_counter
+	branch lpm_sleep
+
+mouse_24g_short_sleep_default:
+	call mouse_24g_miss_temp_clear
+	fetch 3,mem_24g_short_sleep_set
+	branch mouse_24g_short_sleep2
+
+mouse_24g_short_sleep_long:
+	sub temp,0,temp
+	fetch 3,mem_24g_short_sleep_set
+	iadd temp,pdata
+	branch mouse_24g_short_sleep2
+
+mouse_24g_miss_temp_clear:
+	setarg 0
+	store 4,mem_mouse_24g_sleep_miss_temp
+	rtn
+	
+mouse_24g_short_sleep_last_miss:
+	fetch 4,mem_mouse_24g_tx_time_last_delt
+	fetcht 4,mem_mouse_24g_sleep_miss_temp
+	iadd temp,pdata
+	branch mouse_24g_short_sleep_notify
+	
+mouse_24g_short_sleep_2:
+	jam 1,mem_mouse_24g_sleep_miss
+	rtn
+
+
+mouse_24g_transmit_callback:
+	call mouse_24g_send_time_check
+	branch mouse_wakeup_24g
+
+mouse_24g_send_time_check:
+	fetch 1,mem_mouse_sleep_deal_type
+	rtn blank
+	fetch 1,mem_24g_transmit_by_interrupt
+	beq G24_TX_TIMER_INT_ENABLE,mouse_24g_send_timer_first
+	fetch 1,mem_mouse_24g_tx_count
+	branch mouse_24g_send_timer_first,blank
+	copy clkn,pdata
+	fetcht 6,mem_mouse_24g_tx_time_last
+	store 6,mem_mouse_24g_tx_time_last
+	call clk_diff_rt
+	store 4,mem_mouse_24g_tx_time_last_delt
+
+	fetch 1,mem_mouse_24g_sleep_miss
+	nrtn blank
+	fetch 2,mem_24g_retransmit
+	nrtn blank
+	fetch 4,mem_mouse_24g_tx_time_last_delt
+mouse_24g_send_time_check_1:
+	fetcht 5,mem_mouse_24g_tx_time_sum
+	iadd temp,pdata
+	store 5,mem_mouse_24g_tx_time_sum	
+	fetcht 1,mem_mouse_24g_tx_count
+	fetch 1,mem_mouse_24g_tx_time_sum_count
+	isub temp,null
+	branch mouse_24g_send_time_check_average,zero
+	increase 1,temp
+	storet 1,mem_mouse_24g_tx_count
+	rtn
+
+mouse_24g_send_time_check_average:
+	jam 1,mem_mouse_24g_tx_count
+	arg 0,temp
+	fetch 5,mem_mouse_24g_tx_time_sum
+	storet 5,mem_mouse_24g_tx_time_sum
+	fetcht 1,mem_mouse_24g_tx_time_sum_count
+	idiv temp
+	call wait_div_end
+  	quotient rega
+
+	fetch 4,mem_mouse_24g_tsniff
+	fetcht 1,mem_mouse_24g_tx_time_offset
+	isub temp,temp
+	increase -40,temp
+
+	copy rega,pdata
+	isub temp,pdata
+	branch mouse_24g_send_time_check_average_late,positive
+	sub pdata,0,pdata
+	
+	rshift2 pdata,pdata
+	fetcht 3,mem_24g_short_sleep_set
+	iadd temp,temp
+	bpatch patch0c_0,mem_patch0c
+	fetch 3,mem_mouse_24g_short_sleep_set_init
+	arg 0x1800,rega
+	iadd rega,pdata
+	isub temp,null
+	nbranch mouse_24g_send_time_check_average_min,positive
+	storet 3,mem_24g_short_sleep_set
+	rtn
+
+mouse_24g_send_time_check_average_late:
+	rshift2 pdata,temp
+	fetch 3,mem_24g_short_sleep_set
+	isub temp,temp
+	bpatch patch0c_1,mem_patch0c
+	fetch 3,mem_mouse_24g_short_sleep_set_init
+	arg 0x1800,rega
+	isub rega,pdata
+	isub temp,null
+	branch mouse_24g_send_time_check_average_min,positive
+	storet 3,mem_24g_short_sleep_set
+	rtn
+
+mouse_24g_send_time_check_average_min:
+	store 3,mem_24g_short_sleep_set
+	rtn
+
+mouse_24g_send_timer_first:
+	jam 1,mem_mouse_24g_tx_count
+	copy clkn,pdata
+	store 6,mem_mouse_24g_tx_time_last
+	rtn
+
+mouse_24g_send_time_long_wake:
+	setarg 0
+	store 1,mem_mouse_24g_tx_count
+	store 5,mem_mouse_24g_tx_time_sum
+	rtn
+	
+
+/*****************close define  COMPILE_MOUSE**********/
+else
+
+endif
+
+
+
Index: program/app_shutter.prog
===================================================================
--- /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/program/app_shutter.prog	(nonexistent)
+++ /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/program/app_shutter.prog	(working copy)
@@ -0,0 +1,654 @@
+
+ifdef COMPILE_SHUTTER
+
+shutter_init:
+	call enable_authrom
+	rtn wake
+	
+	setarg shutter_process_idle
+	store 2,mem_cb_idle_process
+		
+	setarg shutter_process_bb_event 
+	store 2,mem_cb_bb_event_process
+	
+	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
+
+	call shutter_common_init
+	
+	bpatch patch0c_2,mem_patch0c
+	call shutter_load_buffer_config_form_DataRom
+
+shutter_power_switch:
+	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_common_init:
+	setarg shutter_le_before_hibernate
+	store 2,mem_cb_before_hibernate
+
+	setarg shutter_process_lpm_before
+	store 2,mem_cb_before_lpm
+
+	setarg shutter_start_reconnect
+	store 2,mem_shutter_soft_switch_poweron_callback_function
+	
+	setarg shutter_soft_swtich_power_off
+	store 2,mem_shutter_soft_switch_poweroff_callback_function
+
+	jam 7,mem_version
+	call le_modified_name_adv
+	call shutter_init_param	
+	call keyscan_key_init
+	call queue_init
+	branch ui_led_init_global
+
+
+/**************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
+	
+/**************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,ui_soft_switch_botton_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
+/****************************/
+
+
+/******************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_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
+/************************************/
+
+/**************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
+	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
+/************************************/
+
+/**************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:
+	call gpio_set_before_lpm
+	branch keyscan_process_lpm_before
+
+shutter_le_before_hibernate:
+	call gpio_set_before_lpm
+	branch disable_authrom
+
+//////////////////////////////////////////////////////////////////////////////////////////
+
+
+/****************shutter bluetooth control**********************/
+shutter_stop_bluetooth_discovery:
+//	fetch 1,mem_shutter_bluetooth_type
+//	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
+	
+
+shutter_start_bluetooth_discovery:
+	fetch 1,mem_shutter_soft_switch_power_state
+	rtnne SS_STATE_POWER_ON
+//	fetch 1,mem_shutter_bluetooth_type
+//	bbit1 BLE_SHUTTER,ble_shutter_start_discovery
+//	rtn
+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 BLE_SHUTTER,ble_shutter_start_reconnect
+//	rtn
+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_adv_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
+	branch shutter_stop_bluetooth_discovery
+/**************************************/
+/////////////////////////////////////////////////////////////////////////
+//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_BLE_CONNECTED,shutter_check_ble_data_enable
+	rtn
+
+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_BLE_CONNECTED
+	branch enable_user
+/////////////////////////////////////////////////////////////////////////
+
+/////////////////////////////////////////////////////////////////////////
+shutter_change_bluetooth_status_bt_disconn:
+//	fetch 1,mem_shutter_bluetooth_type
+//	bbit1 BLE_SHUTTER,ble_shutter_change_bluetooth_status_bt_disconn
+//	rtn
+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
+	branch enable_user2
+
+//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
+	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
+
+///////////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:
+	jam 0x02,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
+	branch le_set_fixed_ltk_justwork
+///////////////////////////////////////
+
+shutter_load_buffer_config_form_DataRom:
+///////load data Rom/////////
+	arg BLE_KEY_VALUE_LIST_SIZE,loopcnt
+	arg mem_ble_data_buffer1,contw
+	arg mem_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_ADDR,contr
+//	branch memcpy_fast
+
+shutter_load_dy_keyvalue_buffer_config_form_DataRom:
+/////load data Rom/////////
+	arg BT_DY_KEY_VALUE_LIST_SIZE,loopcnt
+	arg mem_shutter_mousekey_value_list,contw
+	arg BLE_SHUTTER_DY_MOUSEKEY_VALUE_LIST_ADDR,contr
+	branch memcpy_fast
+
+
+/////////////////////////////////////////////////////////////////
+//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
+ui_soft_switch_first_power_on:
+	fetch 1,mem_shutter_soft_switch_first_power_on
+	branch ui_soft_swtich_init_next, blank
+	fetch 1,mem_wakup_from_power_flag	
+	bbit0 2,ui_soft_switch_power_on	
+ui_soft_swtich_init_next:		
+	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
+
+shutter_le_uuid_table_conf:
+	setarg mem_shutter_le_uuid_sup
+	store 2,mem_ui_le_uuid_table	//BLE ATT LIST END
+	rtn
+shutter_dy_le_uuid_table_conf:
+	setarg BLE_SHUTTER_DY_GATT_LIST_ADDR	//BLE ATT LIST 
+	store 2,mem_ui_le_uuid_table	//BLE ATT LIST END
+	rtn
+/*************shutter default_init starting*********************/
+shutter_default_init:
+	fetch 2,mem_shutter_key_conf0_temp
+	store 2,mem_shutter_key_conf0
+	fetch 1,mem_shutter_led_struct_app_led_gpio_temp
+	store 1,mem_shutter_led_struct_app_led_gpio
+	store 1,mem_shutter_power_off_led_style_gpio
+	fetch 1,mem_shutter_hard_soft_switch_case_temp
+	store 1,mem_shutter_hard_soft_switch_case
+	fetch 1,mem_shutter_soft_switch_button_gpio_temp
+	store 1,mem_shutter_soft_switch_button_gpio
+//	jam 0x01,mem_shutter_bluetooth_type
+	setarg 0x0030
+	store 2,mem_classic_shutter_random_mac_offset_addr
+	setarg 0x0000
+	store 2,mem_shutter_config_eeprom_offset_addr
+	setarg 0x0002
+	store 2,mem_key0_press
+	store 2,mem_key1_press
+	setarg 0x0006
+	store 2,mem_key0_release
+	store 2,mem_key1_release
+	setarg 0x0007
+	store 2,mem_key2_press
+	setarg 0x0008
+	store 2,mem_key2_release
+	setarg mem_shutter_soft_switch_power_state
+	store 2,mem_power_param_ptr
+	setarg 0x201400
+	store 3,mem_shutter_soft_switch_power_state
+	jam 0x01,mem_lpm_mode
+	setarg 0x0100
+	store 2,mem_lpm_interval
+	jam 0x08,mem_lpm_overhead
+	jam 0x05,mem_lpm_mult
+	jam 0x02,mem_lpm_mult_timeout
+	setarg 0x0096
+	store 2,mem_ble_shutter_reconn_blink_on_time
+	istore 2,contw
+	setarg 0x0296
+	store 2,mem_ble_shutter_discovery_blink_on_time
+	istore 2,contw
+	setsect 0,0x10
+	setsect 1,0x8008
+	setsect 2,0x2c000
+	setsect 3,0x04
+	store 8,mem_ble_shutter_interval_min_new
+	jam 0x01,mem_ui_led_struct_num
+	setarg mem_shutter_led_struct_app_led
+	store 2,mem_ui_led_struct_ptr
+	setarg 0x0000
+	store 2,mem_shutter_led_struct_app_led
+	setsect 0,0x1a0
+	setsect 1,0x68
+	setsect 2,0x00
+	setsect 3,0x00
+	store 8,mem_shutter_led_struct_app_led_on_time
+	setarg 0x0301
+	store 2,mem_shutter_power_off_led_style
+	setsect 0,0x1a0
+	setsect 1,0xe8
+	setsect 2,0x00
+	setsect 3,0x00
+	store 8,mem_shutter_power_off_led_style_on_time
+	setarg 0x000e
+	store 2,mem_ble_shutter_reconn_adv_interval
+	setarg 0x0140
+	store 2,mem_ble_shutter_discovery_adv_interval
+	store 2,mem_le_adv_interval
+	setarg 0x0050
+	store 2,mem_ble_shutter_reconn_timeout
+	jam 0x07,mem_le_adv_channel_map
+	jam 0x00,mem_le_adv_enable
+	setsect 0,0xfb
+	setsect 1,0x2c212
+	setsect 2,0x800f
+	setsect 3,0x21
+	store 8,mem_local_rx_max_octets
+	setsect 0,0x0bb8
+	setsect 1,0x02ee
+	store 4,mem_ble_shutter_discovery_timeout
+	setarg mem_queue_each_size
+	store 2,mem_queue_ptr
+	setarg 0x2001
+	store 2,mem_queue_each_size
+	jam 0x1f,mem_le_adv_data_len
+	setsect 0,0x10102
+	setsect 1,0x80c1
+	setsect 2,0x18120
+	setsect 3,0x640c
+	store 9,mem_le_adv_data
+	setsect 0,0x3c1
+	istore 2,contw
+	jam 0x1f,mem_le_scan_data_len
+	setsect 0,0x2090d
+	setsect 1,0x34c15
+	setsect 2,0x28532
+	setsect 3,0x1d1d5
+	store 9,mem_le_scan_data
+	setsect 0,0x26574
+	setsect 1,0x1c
+	istore 3,contw
+	setarg mem_shutter_keyscan
+	store 2,mem_keyscan_ptr
+	jam 0x02,mem_shutter_key_num
+	setarg mem_shutter_nv_data
+	store 2,mem_nv_data_ptr
+	jam 0x05,mem_nv_data_number
+	fetch 1,mem_shutter_dy_conf
+	beq SHUTTER_TYPE,shutter_le_uuid_table_conf
+	beq SHUTTER_DY_TYPE,shutter_dy_le_uuid_table_conf
+	rtn	
+	
+
+/*************shutter default_init ending*********************/
+
+
+
+
+
+else
+	branch assert
+	
+endif
Index: program/app_shutter_dy.prog
===================================================================
--- /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/program/app_shutter_dy.prog	(nonexistent)
+++ /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/program/app_shutter_dy.prog	(working copy)
@@ -0,0 +1,1306 @@
+
+ifdef COMPILE_SHUTTER
+
+/*************dy config*********************/
+shutter_dy_6_key_conf:
+	//6key
+	fetch SHUTTER_SIX_KEY,mem_shutter_dy_key_conf
+	store SHUTTER_SIX_KEY,mem_shutter_key_conf0
+	jam SHUTTER_SIX_KEY,mem_shutter_key_num
+	setarg mem_shutter_key_num
+	store 2,mem_keyscan_ptr
+	rtn
+
+shutter_dy_7_key_conf:
+	//7key
+	fetch SHUTTER_SEVEN_KEY,mem_shutter_dy_key_conf
+	store SHUTTER_SEVEN_KEY,mem_shutter_key_conf0
+	jam SHUTTER_SEVEN_KEY,mem_shutter_key_num
+	setarg mem_shutter_key_num
+	store 2,mem_keyscan_ptr
+	rtn
+
+shutter_dy_key_conf:
+	fetch 1,mem_shutter_key_num_conf
+	beq SHUTTER_SIX_KEY,shutter_dy_6_key_conf
+	beq SHUTTER_SEVEN_KEY,shutter_dy_7_key_conf
+	rtn
+	
+shutter_dy_adv_conf:
+	bpatch patch0c_3,mem_patch0c
+	//adv data
+	fetch 8,mem_shutter_ble_discovery_time_conf
+	store 8,mem_ble_shutter_discovery_timeout
+	setarg 0x0096
+	store 2,mem_ble_shutter_reconn_timeout
+
+	fetch 7,mem_shutter_led_on_light_dark_led_conf
+	store 7,mem_shutter_led_struct_app_led
+	fetch 7,mem_shutter_led_off_light_dark_led_conf
+	store 7,mem_shutter_power_off_led_style
+	
+	fetch 4,mem_shutter_reconn_blink_on_time_conf
+	store 4,mem_ble_shutter_reconn_blink_on_time
+	fetch 4,mem_shutter_discovery_blink_on_time_conf
+	store 4,mem_ble_shutter_discovery_blink_on_time
+	/*
+	fetch 8,mem_le_dy_adv_data
+	store 8,mem_le_adv_data
+	fetch 3,mem_le_dy_adv_data+8
+	store 3,mem_le_adv_data+8
+	
+	fetch 8,mem_le_dy_scan_data
+	store 8,mem_le_scan_data
+	fetch 4,mem_le_dy_scan_data+8
+	store 4,mem_le_scan_data+8
+	*/
+	
+	setarg 0x000e
+	store 2,mem_ble_shutter_reconn_adv_interval
+	setarg 0x0140
+	store 2,mem_ble_shutter_discovery_adv_interval
+	store 2,mem_le_adv_interval
+
+	setarg BLE_SHUTTER_DY_GATT_LIST_ADDR	//BLE ATT LIST 
+	store 2,mem_ui_le_uuid_table
+
+	call shutter_load_dy_keyvalue_buffer_config_form_DataRom
+
+	fetch 8,mem_ble_shutter_dy_interval_min_new
+	store 8,mem_ble_shutter_interval_min_new
+	rtn
+
+
+
+shutter_dy_init:
+	call enable_authrom
+	rtn wake
+
+	call shutter_dy_key_conf
+	call shutter_dy_adv_conf
+
+	setarg shutter_le_parse_l2cap
+	store 2,mem_le_l2cap_parse_cb
+
+	setarg shutter_dy_process_idle
+	store 2,mem_cb_idle_process
+		
+	setarg shutter_dy_process_bb_event
+	store 2,mem_cb_bb_event_process
+
+	setarg ble_shutter_dy_receive_data
+	store 2,mem_cb_att_write
+
+	setarg shutter_dy_le_bb_event_timer
+	store 2,mem_cb_event_timer
+
+	setarg shutter_dy_key_change
+	store 2,mem_cb_shutter_keycan
+
+	call shutter_common_init
+	setarg 0x27
+ 	store 2,mem_le_pairing_handle
+	fetch 8,mem_ble_shutter_interval_min_new
+	store 8,mem_ble_shutter_interval_min
+	call shutter_dy_iphone_every_move_max_set
+	bpatch patch0c_4,mem_patch0c
+	branch shutter_power_switch
+
+
+shutter_dy_process_idle:
+	call shutter_dy_shutter_send_data_to_master
+	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
+	branch shutter_dy_keyscan_key_process
+
+shutter_dy_iphone_every_move_max_set:	
+	setarg 0x1f
+	mul32 pdata,EVERY_PAYLOAD_LEN,pdata
+	arg mem_shutter_mousekey_value_list,temp
+	iadd temp,rega
+	increase 3,rega
+	arg IPHONE_ONCE_MAX_MOVE_VALUE,temp
+	istoret 1,rega
+	increase 11,rega
+	arg 0xfff,pdata
+	isub temp,pdata
+	lshift4 pdata,pdata
+	istore 2,rega
+	rtn
+	
+shutter_dy_shutter_send_data_to_master:	
+	fetch 2,mem_ui_state_map
+	bbit1 UI_STATE_BLE_CONNECTED,shutter_dy_pop_queue_to_ble_data
+	arg mem_queue_curr_num,contw
+	arg 35,loopcnt
+	branch clear_mem
+
+shutter_dy_pop_queue_to_ble_data:
+	call le_fifo_check_nearly_full
+	nrtn blank
+	call queue_empty
+	rtn blank
+	fetcht 4,mem_key_send_clk
+	copy clkn_bt,pdata
+	isub temp,temp
+	rtn zero
+	nbranch shutter_dy_pop_queue_to_ble_data2, positive
+	fetch 1,mem_send_data_delay
+	isub temp,null
+	rtn positive
+shutter_dy_pop_queue_to_ble_data2:
+	copy clkn_bt,pdata
+	store 4,mem_key_send_clk	
+	call queue_pop_one_byte
+	nrtn user
+	pincrease -1
+	mul32 pdata,10,pdata
+	arg mem_shutter_mousekey_value_list,temp
+	iadd temp,contr
+	branch le_send_notify_from_list
+
+
+shutter_dy_le_bb_event_timer:
+	call shutter_dy_shutter_1s_timer
+	call shutter_dy_iphone_move_mid_timer
+	call shutter_dy_clear_key_state_timer
+	call shutter_check_sleep_timer
+	branch shutter_dy_check_power_off_timer
+	
+shutter_dy_iphone_move_mid_timer:
+	arg mem_shutter_move_mid_timer,regc
+	arg shutter_dy_iphone_move_mid_timeout,regb
+	branch timer_single_step
+
+shutter_dy_iphone_move_mid_timeout:
+	call queue_empty
+	nrtn blank
+	fetch 2,mem_key_value_xmem
+	nrtn blank
+shutter_dy_iphone_move_mid:
+	call shutter_dy_check_iphone
+	branch shutter_dy_android_like_loaction_mid,blank
+	copy queue,pdata
+	compare 0x04,pdata,0x07 //SHUTTER_UP_KEY_NUM
+	branch shutter_dy_iphone_up_mid,true
+
+	copy queue,pdata
+	compare 0x01,pdata,0x07 //SHUTTER_LIKE_KEY_NUM
+	branch shutter_dy_iphone_like_mid,true
+	arg mem_shutter_iphone_move_mid,regc
+	branch push_buffer_in_queue
+
+shutter_dy_android_like_loaction_mid:
+	arg mem_shutter_android_move_mid,regc
+	branch push_buffer_in_queue
+
+shutter_dy_iphone_up_mid:
+	arg mem_shutter_iphone_up_mid,regc
+	branch push_buffer_in_queue
+
+shutter_dy_iphone_like_mid:
+	arg mem_shutter_iphone_like_mid,regc
+	branch push_buffer_in_queue
+
+shutter_dy_clear_key_state_timer:
+	arg mem_shutter_like_timeout,regc
+	arg shutter_dy_clear_key_state_timeout,regb
+	branch timer_single_step
+
+shutter_dy_clear_key_state_timeout:
+	arg SHUTTER_KEY_CONF_SATE_BYTES,loopcnt
+	arg mem_shutter_key_state1,contw
+	branch clear_mem
+
+
+shutter_dy_check_power_off_timer:
+	arg mem_shutter_power_off_timer,regc
+	arg shutter_dy_check_power_off_timeout,regb
+	branch timer_single_step
+shutter_dy_check_power_off_timeout:
+	fetch 2,mem_ui_state_map
+	bbit1 UI_STATE_BLE_CONNECTED,shutter_wait_power_off
+	branch app_enter_hibernate
+
+shutter_dy_process_bb_event:
+	copy regc,pdata
+	beq BT_EVT_LE_CONNECTED,ble_shutter_dy_process_baseband_connect
+	beq BT_EVT_LE_DISCONNECTED,ble_shutter_dy_process_baseband_disconnect
+	beq BT_EVT_LE_PAIRING_SUCCESS,ble_shutter_dy_pairing_success
+	rtneq BT_EVT_LE_PARSE_CONN_PAPA_UPDATE_RSP
+	beq BT_EVT_LE_START_ENC,shutter_dy_le_find_service_hand_by_uuid
+	branch shutter_process_bb_event
+
+ble_shutter_dy_pairing_success:
+	jam 1,mem_shutter_pairing_success
+	call shutter_dy_clear_move_config
+//	setarg ANDROID_INITIAL_MOVE_X
+	fetch 2,mem_android_initial_move_x
+	store 2, mem_shutter_move_data_x
+//	arg ANDROID_INITIAL_MOVE_Y,temp
+	fetcht 2,mem_android_initial_move_y
+	setarg 0xfff
+	isub temp,pdata
+	store 2, mem_shutter_move_data_y
+	rtn
+
+ble_shutter_dy_process_baseband_disconnect:
+	jam 0,mem_shutter_le_conned
+	jam 0,mem_shutter_pairing_success
+	call shutter_dy_move_mode_disable
+	branch ble_shutter_process_baseband_disconnect
+	
+ble_shutter_dy_process_baseband_connect:
+	copy clkn_bt,pdata
+	store 4,mem_key_send_clk
+	call shutter_dy_remote_not_iphone
+	branch ble_shutter_process_baseband_connect
+	
+
+shutter_dy_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
+	branch enable_user2
+
+shutter_dy_key_change:
+	call shutter_dy_check_send_data
+	nrtn user2 
+	deposit rega
+	branch shutter_dy_shutter_key_release,blank//no data release
+shutter_dy_key_press:
+	jam 1,mem_shutter_key_pressed
+	call app_led_on
+	call shutter_dy_key_press_clk
+	call shutter_dy_jude_queue_size
+	rtn positive
+	copy queue,pdata
+	fetcht 1,mem_last_press_key_value
+	isub temp,null
+	ncall shutter_dy_iphone_check_move_mid,zero
+	copy queue,pdata
+	store 1,mem_last_press_key_value
+	fetcht 1,mem_move_mode_key_index
+	isub temp,null
+	branch shutter_dy_key_move_to_specify_location,zero
+	fetch 1,mem_move_mode_trigger_enable
+	nbranch shutter_dy_move_set,blank
+shutter_dy_page_set:
+	call shutter_dy_le_get_press_ptr
+	arg MAX_QUEUE_NEW_PRESS,pdata
+	branch shutter_dy_push_queue_press_or_release
+
+shutter_dy_move_set:
+	call shutter_dy_jude_clear_move_config
+	copy queue,pdata
+	beq SHUTTER_LIKE_KEY_NUM,shutter_dy_page_set
+	call shutter_dy_check_move_data
+	branch shutter_dy_move_to_specify_location
+
+shutter_dy_key_move_to_specify_location:
+	jam 1,mem_shutter_first_move
+	branch shutter_dy_move_to_specify_location
+
+shutter_dy_iphone_check_move_mid:
+	bpatch patch0c_5,mem_patch0c
+	fetch 1,mem_move_mode_trigger_enable
+	branch shutter_dy_iphone_move_mid,blank
+	copy queue,pdata
+	beq SHUTTER_LIKE_KEY_NUM,shutter_dy_iphone_move_mid
+	rtn
+shutter_dy_key_press_clk:
+	arg SHUTTER_KEY_CONF_SATE_BYTES,pdata
+	imul32 queue,pdata
+	arg mem_shutter_key_state0,regc
+	iadd regc,regc
+	copy clkn_bt,pdata
+	istore KEY_STATE_PRESS_CLK_LENGTH,regc
+	increase KEY_STATE_PRESS_COUNT_OFFSET,regc
+	ifetch 1,regc
+	increase 1,pdata
+	istore 1,regc
+	rtn
+shutter_dy_shutter_key_release:
+	bpatch patch0c_6,mem_patch0c
+	fetch 1,mem_move_mode_trigger_enable
+	call app_led_off,blank
+shutter_dy_shutter_key_release_time:
+	arg SHUTTER_KEY_CONF_SATE_BYTES,pdata
+	imul32 queue,pdata
+	arg mem_shutter_key_state0,regc
+	iadd regc,regc
+	ifetcht  4,regc
+	sub temp,0,null
+	rtn zero //already release
+	copy clkn_bt,pdata
+	isub temp,temp
+	ncall ui_timer_timeout,positive
+	add regc,KEY_STATE_LONGPRESS_OFFSET,contr
+	ifetch 1,contr
+	nbranch shutter_dy_push_queue_long_release, blank
+	increase KEY_STATE_RELEASE_CLK_OFFSET,regc
+	copy clkn_bt,pdata
+	istore KEY_STATE_RELEASE_CLK_LENGTH,regc
+	rtn
+
+shutter_dy_push_queue_release:
+	add regc,4,contr
+	ifetch 1,contr
+	branch shutter_dy_push_queue_release1
+
+shutter_dy_push_queue_release1:
+	call shutter_clear_dy_key_state
+	fetch 1,mem_move_mode_trigger_enable
+	nbranch shutter_dy_move_mode_queue_release,blank
+shutter_dy_push_queue_release1_next:
+	call shutter_dy_jude_queue_size
+	rtn positive
+	call shutter_dy_le_get_release_ptr
+	copy queue,pdata
+	beq SHUTTER_PHOTO_KEY_NUM,shutter_dy_le_get_release_ptr_volume
+	arg MAX_QUEUE_NUM_RELEASE,pdata
+shutter_dy_push_queue_press_or_release:
+	imul32 queue,pdata
+	iadd regc,regc
+	branch push_buffer_in_queue
+
+shutter_dy_move_mode_queue_release:
+	copy queue,pdata
+	beq SHUTTER_LIKE_KEY_NUM,shutter_dy_push_queue_release1_next
+	beq SHUTTER_PHOTO_KEY_NUM,shutter_dy_push_queue_release1_next
+	rtn
+	
+shutter_dy_jude_queue_size:
+	call queue_get_size
+	ifetcht 1,contr
+	isub temp,pdata
+	sub pdata,MAX_QUEUE_NEW_PRESS,null
+	rtn
+	
+shutter_dy_push_queue_long_release:
+	jam 1,mem_shutter_long_key_released_flag
+	call shutter_clear_dy_key_state
+	arg mem_key0_long_release,regc
+	arg MAX_QUEUE_NUM_LONG_RELEASE,pdata
+	branch shutter_dy_push_queue_press_or_release
+	
+shutter_clear_dy_key_state:
+	arg SHUTTER_KEY_CONF_SATE_BYTES,loopcnt
+	copy regc,contw
+	branch clear_mem
+
+shutter_dy_keyscan_key_process:
+	fetch 2,mem_key_value_xmem
+	store 2,mem_key_value_retention
+	call shutter_dy_keyscan_key_process_next
+	fetch 2,mem_key_value_retention
+	store 2,mem_key_value_xmem
+	
+	arg 0,queue
+	fetch 1,mem_shutter_key_num
+	copy pdata,loopcnt
+	arg mem_shutter_key_state0,regc
+shutter_dy_keyscan_key_check_release_loop:	
+	copy loopcnt,pdata
+	store 2,mem_temp
+	copy regc,pdata
+	store 2,mem_regc
+	copy queue,pdata
+	store 2,mem_temp+2
+	call shutter_dy_keyscan_key_check_release
+	
+	fetch 2,mem_regc
+	copy pdata,regc
+	fetch 2,mem_temp+2	
+	copy pdata,queue
+	call shutter_dy_keyscan_key_check_long_press
+	
+	fetch 2,mem_temp+2
+	add pdata,1,queue
+	fetch 2,mem_regc
+	add pdata,SHUTTER_KEY_CONF_SATE_BYTES,regc
+	fetch 2,mem_temp
+	copy pdata,loopcnt
+	loop shutter_dy_keyscan_key_check_release_loop
+	rtn
+	
+shutter_dy_keyscan_key_check_long_press:
+	ifetch KEY_STATE_PRESS_CLK_LENGTH,regc
+	rtn blank
+	copy pdata,temp
+	copy clkn_bt,pdata
+	isub temp,temp	
+	nrtn positive
+	setarg 2500 //1000ms 3200
+	isub temp,null
+	rtn positive
+	copy clkn_bt,pdata
+	istore 4,regc
+	increase KEY_STATE_LONGPRESS_OFFSET,regc
+	setarg 1  //long press flag
+	istore KEY_STATE_LONGPRESS_LENGTH,regc
+	fetch 1,mem_shutter_long_key_released_flag
+	rtn blank
+	jam 0,mem_shutter_long_key_released_flag
+	bpatch patch0c_7,mem_patch0c
+	fetch 1,mem_move_mode_set
+	beq MOVE_COMBINE_KEY,shutter_dy_key_long_press_set_key_normal
+	beq MOVE_SINGLE_KEY,shutter_dy_key_long_press_set_move_trigger
+	rtn
+	
+shutter_dy_key_long_press_set_key_normal:
+	arg mem_key0_long_press,regc
+	arg MAX_QUEUE_NUM_LONG_RELEASE,pdata
+	branch shutter_dy_push_queue_press_or_release
+
+shutter_dy_key_long_press_set_move_trigger:
+	copy queue,pdata
+	fetcht 1,mem_move_mode_key_index
+	isub temp,null
+	nbranch shutter_dy_key_long_press_set_key_normal,zero	
+	fetch 1,mem_move_mode_trigger_enable
+	setflip 0,pdata
+	store 1,mem_move_mode_trigger_enable
+	nrtn blank
+shutter_dy_move_mode_disable:
+	jam 0,mem_move_mode_trigger_enable
+	branch app_led_off
+
+shutter_dy_keyscan_key_check_release:
+	add regc,KEY_STATE_RELEASE_CLK_OFFSET,regb
+	ifetch KEY_STATE_RELEASE_CLK_LENGTH,regb
+	rtn blank
+	copy pdata,temp
+	copy clkn_bt,pdata
+	isub temp,temp
+	ncall ui_timer_timeout,positive
+	setarg 1000 //100ms 320
+	isub temp,null
+	branch shutter_dy_push_queue_release
+shutter_dy_keyscan_key_process_next:
+	fetch 2,mem_key_num_ptr
+	ifetch 1,pdata
+	rtn blank
+	
+	setarg 0
+	store 2,mem_key_value_temp
+	call keyscan_scan_key
+	nbranch lpm_button_clean_wake_lock,user
+	call lpm_button_get_wake_lock
+	disable user
+	bpatch patch0d_0,mem_patch0d
+	fetch 1,mem_move_mode_set
+	beq MOVE_SINGLE_KEY,shutter_dy_skip_check_combine_key
+	call shutter_dy_check_combine_key_release
+	call shutter_dy_check_combine_key	
+	rtn user
+shutter_dy_skip_check_combine_key:	
+	fetch 2,mem_key_value_temp
+	store 2,mem_key_value_temp4
+	jam 0,mem_key_value_temp6
+	force 0,queue
+	branch keyscan_key_lp1
+
+shutter_dy_check_combine_key:
+	arg 0,queue
+shutter_dy_check_combine_key_loop:
+	arg mem_combine_key0,regb
+	arg 2,pdata
+	imul32 queue,pdata
+	iadd regb,regb
+	ifetch 2,regb
+	
+	rtn blank
+	fetcht 2,mem_key_value_temp
+	ixor temp,null
+	branch shutter_dy_check_combine_key_parse,zero
+	increase 1,queue
+	branch shutter_dy_check_combine_key_loop
+	
+shutter_dy_check_combine_key_parse:
+	store 2,mem_combine_key_state0	
+	call app_led_on
+	arg mem_combine_key0_press,regc
+	arg MAX_QUEUE_NUM_COMBINEKEY,pdata
+	imul32 queue,pdata
+	iadd regc,regc
+	call shutter_dy_push_buffer_in_queue
+	branch shutter_dy_combine_key_enableuser
+	
+shutter_dy_push_buffer_in_queue:
+	call shutter_dy_jude_clear_move_config
+	ifetch 1,regc
+	rtn blank
+	call shutter_dy_check_move_data
+shutter_dy_move_to_specify_location:
+	call shutter_dy_jude_clear_move_config
+	call shutter_dy_move_down_left_corner
+	call shutter_dy_move_x_max
+	call shutter_dy_move_y_max
+	arg 0x05,pdata
+	call queue_push_one_byte
+	call shutter_dy_check_iphone
+	rtn blank
+	jam 120,mem_send_data_delay
+	arg 0x06,pdata
+	branch queue_push_one_byte
+
+shutter_dy_move_down_left_corner_count_set:
+	fetcht 1,mem_shutter_back_count
+	call shutter_dy_check_iphone
+	rtn blank
+	fetcht 1,mem_shutter_iphone_beyond_y_count
+	increase 1,temp
+	fetch 1,mem_shutter_first_move
+	rtn blank
+	fetcht 1,mem_shutter_back_count
+	jam 0,mem_shutter_first_move
+	rtn
+
+shutter_dy_move_down_left_corner:
+	call shutter_dy_move_down_left_corner_count_set
+	copy temp,pdata
+	rtn blank
+	store 1,mem_shutter_back_count_cache
+shutter_dy_move_down_left_corner_loop:
+	arg 0x13,pdata
+	call queue_push_one_byte
+	fetch 1,mem_shutter_back_count_cache
+	increase -1,pdata
+	store 1,mem_shutter_back_count_cache
+	rtn blank
+	branch shutter_dy_move_down_left_corner_loop
+
+shutter_dy_move_x_max:
+	fetch 1,mem_shutter_iphone_beyond_x_count
+	rtn blank
+	store 1,mem_shutter_iphone_beyond_x_cache
+shutter_dy_move_x_max_number:
+	arg 0x20,pdata
+	call queue_push_one_byte
+	fetch 1,mem_shutter_iphone_beyond_x_cache
+	increase -1,pdata
+	store 1,mem_shutter_iphone_beyond_x_cache
+	rtn blank
+	branch shutter_dy_move_x_max_number
+
+shutter_dy_move_y_max:
+	fetch 1,mem_shutter_iphone_beyond_y_count
+	rtn blank
+	store 1,mem_shutter_iphone_beyond_y_cache
+shutter_dy_move_y_max_number:
+	arg 0x21,pdata
+	call queue_push_one_byte
+	fetch 1,mem_shutter_iphone_beyond_y_cache
+	increase -1,pdata
+	store 1,mem_shutter_iphone_beyond_y_cache
+	rtn blank
+	branch shutter_dy_move_y_max_number
+
+shutter_dy_check_combine_key_release:
+	fetch 2,mem_combine_key_state0
+	rtn blank
+	fetcht 2,mem_key_value_temp
+	sub temp,0,null
+	branch shutter_dy_check_combine_key_release_all,zero
+	isub temp,null
+	rtn zero
+	storet 2,mem_combine_key_state0
+	fetch 2,mem_combine_key_release_value
+	isub temp,null
+	call app_led_off,zero
+shutter_dy_combine_key_enableuser:
+	fetch 2,mem_key_value_temp
+	store 2, mem_key_value_retention
+	branch enable_user
+shutter_dy_check_combine_key_release_all:
+	call app_led_off
+	arg mem_combine_key_release,regc
+	call shutter_dy_push_buffer_in_queue
+	setarg 0
+	store 2,mem_combine_key_state0
+	jam 50,mem_shutter_1s_timer
+	call shutter_dy_combine_key_enableuser
+	fetch 1,mem_shutter_key_num
+	mul32 pdata,SHUTTER_KEY_CONF_SATE_BYTES,loopcnt
+	arg mem_shutter_key_state0,contw
+	branch clear_mem
+shutter_dy_check_move_data:
+	bpatch patch0d_1,mem_patch0d
+	fetch 1,mem_move_mode_set
+	beq MOVE_SINGLE_KEY,shutter_dy_check_move_data_single_key
+	beq MOVE_COMBINE_KEY,shutter_dy_check_move_data_combine_key
+	rtn
+shutter_dy_check_move_data_single_key:
+	copy queue,pdata
+	beq SHUTTER_LEFT_KEY_NUM,shutter_dy_move_left
+	beq SHUTTER_RIGHT_KEY_NUM,shutter_dy_move_right
+	beq SHUTTER_UP_KEY_NUM,shutter_dy_move_up
+	beq SHUTTER_DOWN_KEY_NUM,shutter_dy_move_down
+	rtn
+shutter_dy_check_move_data_combine_key:
+	ifetch 1,regc
+	beq 0x01,shutter_dy_move_left
+	beq 0x02,shutter_dy_move_right
+	beq 0x03,shutter_dy_move_up
+	beq 0x04,shutter_dy_move_down
+	beq 0x05,shutter_dy_get_move_data
+	rtn
+shutter_dy_get_move_data:
+	call shutter_dy_check_iphone
+	nbranch shutter_dy_get_move_data_iphone,blank
+	setarg 4
+	mul32 pdata,EVERY_PAYLOAD_LEN,pdata
+	arg mem_shutter_mousekey_value_list,temp
+	iadd temp,contw
+	increase 3,contw
+	fetch 3,mem_shutter_move_data
+	istore 3,contw
+	rtn
+shutter_dy_get_move_data_iphone:
+	setarg 4
+	mul32 pdata,EVERY_PAYLOAD_LEN,pdata
+	arg mem_shutter_mousekey_value_list,temp
+	iadd temp,contw
+	increase 3,contw
+	fetch 2,mem_shutter_move_data_x
+	istore 3,contw
+	increase 7,contw
+	fetch 2,mem_shutter_move_data_y
+	lshift4 pdata,pdata
+	lshift8 pdata,pdata
+	istore 3,contw
+	rtn
+	//branch p_store_move_config_info
+shutter_dy_move_x_empty_check:
+	fetch 1,mem_shutter_iphone_beyond_x_count
+	rtn blank
+	increase -1,pdata
+	store 1,mem_shutter_iphone_beyond_x_count
+	arg IPHONE_ONCE_MAX_MOVE_VALUE,pdata
+	rtn
+shutter_dy_every_move_size_set:
+	arg ANDROID_EVERY_MOVE_SIZE,temp
+	call shutter_dy_check_iphone
+	rtn blank
+	arg IPHONE_EVERY_MOVE_SIZE,temp
+	rtn
+shutter_dy_move_left:
+	call shutter_dy_every_move_size_set
+	fetch 2,mem_shutter_move_data_x
+	isub temp,null
+	ncall shutter_dy_move_x_empty_check,positive
+	nrtn positive//if move_x to zero,rtn
+	isub temp,pdata
+shutter_dy_move_store_x:
+	store 2,mem_shutter_move_data_x
+shutter_dy_move_data_store:
+	bpatch patch0d_2,mem_patch0d
+	fetch 2,mem_shutter_move_data_x
+	fetcht 2,mem_shutter_move_data_y
+	lshift8 temp,temp
+	lshift4 temp,temp
+	iadd temp,pdata
+	store 3,mem_shutter_move_data
+	branch shutter_dy_get_move_data
+shutter_dy_move_x_check_max:
+	fetch 2,mem_shutter_move_data_x
+	arg IPHONE_ONCE_MAX_MOVE_VALUE,temp
+	isub temp,temp
+	nrtn positive
+	copy temp,pdata
+	fetcht 1,mem_shutter_iphone_beyond_x_count
+	sub temp,0x03,null
+	branch shutter_dy_clear_move_x,zero
+	increase 1,temp
+	storet 1,mem_shutter_iphone_beyond_x_count
+	branch shutter_dy_move_store_x
+shutter_dy_clear_move_x:
+	jam 0,mem_shutter_iphone_beyond_x_count
+	arg 0,pdata
+	branch shutter_dy_move_store_x
+shutter_dy_move_right:
+	call shutter_dy_check_iphone
+	ncall shutter_dy_move_x_check_max,blank
+	call shutter_dy_every_move_size_set
+	fetch 2,mem_shutter_move_data_x
+shutter_dy_move_right_next:
+	iadd temp,pdata
+	arg 0xfff,temp
+	call ceiling
+	branch shutter_dy_move_store_x
+	
+shutter_dy_move_up:
+	call shutter_dy_every_move_size_set
+	fetch 2,mem_shutter_move_data_y
+	isub temp,pdata
+	store 2,mem_shutter_move_data_y
+shutter_dy_move_y_check_max:
+	fetcht 2,mem_shutter_move_data_y
+	call shutter_dy_check_iphone
+	branch shutter_dy_move_data_store,blank
+	setarg 0xfff
+	isub temp,pdata
+	arg IPHONE_ONCE_MAX_MOVE_VALUE,temp
+	isub temp,temp
+	nbranch shutter_dy_move_data_store, positive
+	setarg 0xfff
+	isub temp,pdata
+	fetcht 1,mem_shutter_iphone_beyond_y_count
+	sub temp,0x05,null
+	branch shutter_dy_clear_move_y,zero
+	increase 1,temp
+	storet 1,mem_shutter_iphone_beyond_y_count
+	branch shutter_dy_move_store_y
+shutter_dy_clear_move_y:
+	jam 0,mem_shutter_iphone_beyond_y_count
+shutter_dy_android_move_y_empty_check:
+	setarg 0xfff
+	branch shutter_dy_move_store_y
+	
+shutter_dy_move_y_empty_check:
+	call shutter_dy_check_iphone
+	branch shutter_dy_android_move_y_empty_check,blank
+	fetch 1,mem_shutter_iphone_beyond_y_count
+	branch shutter_dy_android_move_y_empty_check, blank
+	increase -1,pdata
+	store 1,mem_shutter_iphone_beyond_y_count
+	setarg 0xfff
+	arg IPHONE_ONCE_MAX_MOVE_VALUE,temp
+	isub temp,pdata
+	iadd rega,pdata
+shutter_dy_move_store_y:	
+	store 2,mem_shutter_move_data_y
+	branch shutter_dy_move_data_store
+shutter_dy_move_down:
+	call shutter_dy_every_move_size_set
+	fetch 2,mem_shutter_move_data_y
+shutter_dy_move_down_next:
+	iadd temp,pdata
+	arg 0xfff,temp
+	isub temp,rega
+	branch shutter_dy_move_y_empty_check,positive
+	branch shutter_dy_move_store_y
+	
+
+ble_shutter_dy_receive_data:
+	fetch 2,mem_le_att_handle
+	beq GATT_KEYBOARD_WRITE_HANDLE_NEW,ble_shutter_process_reconnect_complete
+	rtn
+
+shutter_dy_le_find_service_hand_by_uuid: 
+	arg 23,rega
+	arg LE_L2CAP_CID_ATT,regb
+	call le_fifo_malloc_tx_l2cap
+	setarg ATTOP_FIND_BY_TYPE_VALUE_REQUEST
+	istore 1,contw
+	setarg 0x0001		//start handle
+	istore 2,contw
+	setarg 0xffff		//end handle
+	istore 2,contw
+	setarg 0x2800		//uuid type
+	istore 2,contw
+	arg mem_le_search_service_uuid,contr
+	branch memcpy16
+
+shutter_le_parse_l2cap:
+	fetch 2,mem_le_payload_ptr
+	add pdata,2,contr	//l2cap length
+	ifetch 2,contr
+	beq LE_L2CAP_CID_ATT,shutter_dy_le_parse_att
+	beq LE_L2CAP_CID_SMP,le_parse_smp
+	beq LE_L2CAP_CID_SIGNAL,le_parse_signaling
+	rtn
+
+shutter_dy_le_parse_att:
+	ifetch 3,contr
+	store 3,mem_le_att_opcode
+	beq ATTOP_FIND_BY_TYPE_VALUE_RESPONSE,shutter_dy_le_parse_att_find_by_type_value_rsp
+	beq ATTOP_ERROR_RESPONSE,shutter_dy_le_parse_error_rsp
+	beq ATTOP_READ_REQUEST,shutter_dy_le_parse_att_read_request
+	beq ATTOP_READ_BLOB_REQUEST,shutter_dy_le_parse_att_read_blob_request
+	branch le_parse_att2
+
+shutter_dy_le_parse_att_read_blob_request:
+	ifetch 2,contr
+	store 2,mem_le_att_offset
+	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
+	fetch 2,mem_le_pairing_handle
+	isub temp,null
+	nbranch le_send_att_read_blob_response+7,zero
+	call shutter_dy_check_iphone
+	nbranch shutter_dy_le_parse_att_read_blob_request_ios,blank
+	fetch 2,mem_shutter_le_map_len_android
+	branch shutter_dy_le_parse_att_read_blob_request2
+	
+shutter_dy_le_parse_att_read_blob_request_ios:
+	fetch 2,mem_shutter_le_map_len_ios
+shutter_dy_le_parse_att_read_blob_request2:
+	arg mem_shutter_le_hid_map,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
+	branch le_send_att_read_blob_response_less
+
+shutter_dy_le_parse_att_read_request:
+	fetcht 2,mem_le_att_handle
+	fetch 1,mem_le_configuration
+	bbit1 BIT_BLE_READ_AUTH,shutter_dy_le_send_att_read_response_check_auth
+	branch le_send_att_read_response
+shutter_dy_le_send_att_read_response_check_auth:
+	fetch 2,mem_le_pairing_handle
+	isub temp,null
+	nbranch le_send_att_read_response,zero
+	call le_check_encrypt_state
+	nbranch shutter_dy_le_send_att_read_response,user
+	jam ATT_ERR_INSUFFICIENT_AUTHENTICATION,mem_le_err_code
+	branch le_send_att_error_response
+shutter_dy_le_send_att_read_response:
+	fetch 2,mem_le_pairing_handle
+	isub temp,null
+	nbranch le_send_att_read_response,zero
+	arg mem_shutter_le_hid_map,contr
+	force 22,pdata
+	branch le_send_att_read_response_less
+shutter_dy_le_parse_att_find_by_type_value_rsp:
+shutter_dy_le_remote_iphone:
+	bpatch patch0d_3,mem_patch0d
+	jam 5,mem_shutter_back_count
+	jam 1,mem_iphone_flag
+	jam 1,mem_last_shutter_le_iphone_flag
+	jam 240,mem_send_data_delay
+	jam 10,mem_shutter_move_mid_timer
+	jam 1,mem_shutter_first_move
+	call shutter_dy_load_move_config_info
+	fetch 1,mem_shutter_pairing_success
+	rtn blank
+	call shutter_dy_clear_move_config
+	arg IPHONE_ONCE_MAX_MOVE_VALUE,temp
+//	setarg IPHONE_INITIAL_MOVE_X
+	fetch 2,mem_iphone_initial_move_x
+	arg mem_shutter_move_data_x,rega
+	arg mem_shutter_iphone_beyond_x_count,regb
+	call shutter_dy_iphone_move_initial_set
+	arg IPHONE_ONCE_MAX_MOVE_VALUE,temp
+//	setarg IPHONE_INITIAL_MOVE_Y
+	fetch 2,mem_iphone_initial_move_y
+	arg mem_shutter_move_data_y,rega
+	arg mem_shutter_iphone_beyond_y_count,regb
+	call shutter_dy_iphone_move_initial_set
+	setarg 0xfff
+	fetcht 2,mem_shutter_move_data_y
+	isub temp,pdata
+	store 2,mem_shutter_move_data_y
+	rtn
+shutter_dy_iphone_move_initial_set:
+	idiv temp
+	call wait_div_end
+	quotient pdata
+	remainder temp
+	istore 1,regb
+	istoret 2,rega
+	rtn
+shutter_dy_le_parse_error_rsp:
+	increase -2,contr
+	ifetch 1,contr
+	beq ATTOP_FIND_BY_TYPE_VALUE_REQUEST,shutter_dy_not_iphone_read_conf
+	rtn
+shutter_dy_remote_not_iphone:
+	jam 1,mem_shutter_back_count
+	jam 0,mem_iphone_flag
+	jam 0,mem_last_shutter_le_iphone_flag
+	jam 10,mem_send_data_delay
+	rtn
+
+shutter_dy_not_iphone_read_conf:
+	call shutter_dy_remote_not_iphone
+	branch shutter_dy_load_move_config_info
+	
+shutter_dy_check_iphone:
+	fetch 1,mem_iphone_flag
+	rtn
+
+
+shutter_dy_le_get_press_ptr:	
+	arg mem_dy_key0_press,regc
+	call shutter_dy_check_iphone
+	rtn blank
+	jam 120,mem_send_data_delay
+	arg mem_key0_press_i,regc
+	rtn
+shutter_dy_le_get_release_ptr:	
+shutter_dy_le_get_release_ptr_set:
+	arg mem_key0_release_new,regc
+	call shutter_dy_check_iphone
+	rtn blank
+	arg mem_key0_release_new_i,regc
+	jam 12,mem_send_data_delay
+	copy queue,pdata
+	rtneq SHUTTER_LIKE_KEY_NUM
+	rtn
+shutter_dy_le_get_release_ptr_volume:
+	bpatch patch0d_4,mem_patch0d
+	fetch 1,mem_key3_press_count
+	setflip 0,pdata
+	store 1,mem_key3_press_count
+	beq 0,shutter_dy_le_get_release_ptr_set_volume_inc
+	beq 1,shutter_dy_le_get_release_ptr_set_volume_dec
+	rtn
+shutter_dy_le_get_release_ptr_set_volume_dec:
+	call shutter_dy_le_get_vol_dec_ptr
+	branch push_buffer_in_queue
+shutter_dy_le_get_release_ptr_set_volume_inc:
+	call shutter_dy_le_get_vol_inc_ptr
+	branch push_buffer_in_queue
+shutter_dy_le_get_vol_inc_ptr:
+	arg mem_key3_release_new,regc
+	call shutter_dy_check_iphone
+	rtn blank
+	arg mem_key3_release_new_i,regc
+	rtn
+shutter_dy_le_get_vol_dec_ptr:
+	arg mem_key3_release_new_t,regc
+	call shutter_dy_check_iphone
+	rtn blank
+	arg mem_key3_release_new_i_t,regc
+	rtn	
+shutter_dy_jude_clear_move_config:
+	fetch 1,mem_shutter_le_conned
+	nrtn blank
+	jam 1,mem_shutter_le_conned
+	branch shutter_dy_move_data_store
+shutter_dy_clear_move_config:
+	setarg 0
+	store 7,mem_move_config
+	rtn
+
+
+shutter_dy_write_otp_convert_data:
+	call shutter_dy_check_iphone
+	beq 0x01,shutter_dy_store_ios_config_data
+	beq 0x00,shutter_dy_store_android_config
+	rtn
+
+shutter_dy_read_otp_convert_data:
+	fetch 1,mem_otp_last_shutter_le_iphone_flag	//鍒ゆ柇鏄惁鏄疘OS
+	beq 0x01,shutter_dy_get_ios_config
+	beq 0x00,shutter_dy_get_android_config
+	rtn
+
+shutter_dy_store_ios_config_data:
+	fetch 1,mem_shutter_iphone_beyond_x_count
+	mul32 pdata,IPHONE_ONCE_MAX_MOVE_VALUE,pdata
+	copy pdata,temp
+	fetch 2,mem_shutter_move_data_x
+	iadd temp,pdata	//pdata = pdata+temp
+	store 2,mem_otp_shutter_move_data_x
+
+	fetch 1,mem_shutter_iphone_beyond_y_count
+	mul32 pdata,IPHONE_ONCE_MAX_MOVE_VALUE,pdata
+	copy pdata,temp
+	fetch 2,mem_shutter_move_data_y
+	copy pdata,rega
+	setarg 0xfff
+	isub rega,pdata	//pdata = pdata-rega
+	iadd temp,pdata	//pdata = pdata+temp
+	store 2,mem_otp_shutter_move_data_y
+
+	call shutter_dy_check_iphone
+//	fetch 1,mem_last_shutter_le_iphone_flag
+	store 1,mem_otp_last_shutter_le_iphone_flag
+	rtn
+
+shutter_dy_store_android_config:
+	fetch 2,mem_shutter_move_data_x
+	store 2,mem_otp_shutter_move_data_x
+	fetch 2,mem_shutter_move_data_y
+	store 2,mem_otp_shutter_move_data_y
+	call shutter_dy_check_iphone
+	store 1,mem_otp_last_shutter_le_iphone_flag
+	rtn
+shutter_dy_get_ios_config:
+	fetch 2,mem_otp_shutter_move_data_x
+	div pdata,IPHONE_ONCE_MAX_MOVE_VALUE
+	call wait_div_end
+	quotient pdata
+	remainder temp
+	store 1,mem_shutter_iphone_beyond_x_count
+	copy temp,pdata
+	store 2,mem_shutter_move_data_x
+	fetch 2,mem_otp_shutter_move_data_y
+	div pdata,IPHONE_ONCE_MAX_MOVE_VALUE
+	call wait_div_end
+	quotient pdata
+	remainder temp
+	store 1,mem_shutter_iphone_beyond_y_count
+	//copy temp,pdata
+	setarg 0xfff
+	isub temp,pdata	//pdata = pdata-temp
+	store 2,mem_shutter_move_data_y
+//	fetch 1,mem_otp_last_shutter_le_iphone_flag
+//	store 1,mem_last_shutter_le_iphone_flag
+	rtn
+shutter_dy_get_android_config:
+	fetch 2,mem_otp_shutter_move_data_x
+	store 2,mem_shutter_move_data_x
+	fetch 2,mem_otp_shutter_move_data_y
+	store 2,mem_shutter_move_data_y
+//	fetch 1,mem_otp_last_shutter_le_iphone_flag
+//	store 1,mem_last_shutter_le_iphone_flag
+	rtn
+	
+shutter_dy_store_move_config_info:
+	branch shutter_dy_campare_effective_addr_write_otp
+
+shutter_dy_load_move_config_info:
+	branch shutter_dy_campare_effective_addr_read_otp
+
+//寰幆鎵炬暟鎹紝鍒ゆ柇鏄惁涓虹┖鏁版嵁
+shutter_dy_shutter_uart_config_loop:
+	call shutter_dy_update_read_check_addr
+	fetch 2,mem_otp_read_offset_addr
+	call shutter_dy_shutter_read_move_config_from_otp_addr
+	jam 0,mem_shutter_first_read_flag
+	fetch 5,mem_otp_move_config
+	jam 0,mem_shutter_valid_data_flag
+	jam 0,mem_shutter_temp_count
+	call shutter_dy_campare_otp_data
+	fetch 1,mem_shutter_temp_count
+	rtneq 0
+	branch shutter_dy_shutter_uart_config_loop
+
+//绗竴娆′粠0x1fe0澶勫線鍓嶈
+shutter_dy_shutter_get_first_read_addr:
+//	setarg SHUTTER_EFUSE_START_OFFECT
+	fetch 2,mem_shutter_efuse_start_offset
+	increase -5,pdata
+	store 2,mem_otp_read_offset_addr
+	rtn
+
+//涓嬫璇伙紝鏇存柊mem_otp_read_offset_addr 鍦板潃
+shutter_dy_shutter_next_read_addr:
+	fetch 2,mem_otp_read_offset_addr
+	increase -5,pdata
+	store 2,mem_otp_read_offset_addr
+	rtn
+
+//涓婃璇伙紝鏇存柊mem_otp_read_offset_addr 鍦板潃
+shutter_dy_shutter_last_read_addr:
+	fetch 2,mem_otp_read_offset_addr
+	pincrease 5
+	store 2,mem_otp_read_offset_addr
+	rtn
+
+shutter_dy_shutter_read_ios_android_addr:
+	fetch 2,mem_otp_read_ios_android_addr
+	pincrease 5
+	store 2,mem_otp_read_ios_android_addr
+	//妫鏌ュ湪鍖洪棿鍐
+	fetch 2,mem_otp_read_ios_android_addr
+	copy pdata, temp
+//	setarg SHUTTER_EFUSE_START_OFFECT
+	fetch 2,mem_shutter_efuse_start_offset
+	isub temp,pdata	//pdata = pdata-temp
+	arg SHUTTER_PARA_TOTAL_NUM,temp	//temp = 5
+	isub temp,null	//pdata = pdata-temp, 澶т簬绛変簬0锛宲ositive缃1
+//	nrtn positive
+	nbranch shutter_dy_shutter_not_find_ios_or_android,positive
+	rtn
+
+shutter_dy_update_read_check_addr:
+	fetch 1,mem_shutter_first_read_flag	//绗1娆¤鏍囪瘑
+	beq 0x01,shutter_dy_shutter_get_first_read_addr
+	beq 0x00,shutter_dy_shutter_next_read_addr
+	rtn
+	
+//姣旇緝鏁版嵁锛屽垽鏂槸鍚︿负0
+shutter_dy_campare_otp_data:
+	arg 0x0,regb
+	copy regb, temp
+	fetch 2,mem_otp_shutter_move_data_x
+	icompare 0xffff,temp
+//	isub temp,pdata	//pdata = pdata-temp
+	ncall shutter_dy_set_shutter_valid_data_flag,true
+	arg 0x0,regb
+	copy regb, temp
+	fetch 2,mem_otp_shutter_move_data_y
+	icompare 0xffff,temp
+	ncall shutter_dy_set_shutter_valid_data_flag,true
+	arg 0x0,regb
+	copy regb, temp
+	fetch 1,mem_otp_last_shutter_le_iphone_flag
+	icompare 0xff,temp
+	ncall shutter_dy_set_shutter_valid_data_flag,true
+	rtn
+
+//mem_shutter_temp_count +1 鎿嶄綔
+shutter_dy_set_shutter_valid_data_flag:
+	fetch 1,mem_shutter_temp_count
+	pincrease 1
+	store 1,mem_shutter_temp_count
+	rtn
+shutter_dy_shutter_judge_ios_or_android:
+	jam 1,mem_shutter_temp_count
+	call shutter_dy_shutter_read_ios_android_addr
+	fetch 2,mem_otp_read_ios_android_addr
+	call shutter_dy_shutter_read_move_config_from_otp_addr
+	call shutter_dy_check_iphone
+	copy pdata, temp
+	fetch 1,mem_otp_last_shutter_le_iphone_flag
+	icompare 0xff,temp
+	call shutter_dy_clear_temp_count,true
+	
+	fetch 1,mem_shutter_temp_count
+	rtneq 0
+	branch shutter_dy_shutter_judge_ios_or_android
+
+
+shutter_dy_shutter_not_find_ios_or_android:
+	bpatch patch0d_5,mem_patch0d
+	call shutter_dy_clear_temp_count
+	call shutter_dy_check_iphone
+	branch shutter_dy_shutter_android_save_init_loaction,blank
+	branch shutter_dy_shutter_ios_save_init_loaction
+shutter_dy_shutter_android_save_init_loaction:
+//	setarg ANDROID_INITIAL_MOVE_X
+	fetch 2,mem_android_initial_move_x
+	store 2, mem_shutter_move_data_x
+//	arg ANDROID_INITIAL_MOVE_Y,temp
+	fetcht 2,mem_android_initial_move_y
+	setarg 0xfff
+	isub temp,pdata
+	store 2, mem_shutter_move_data_y
+	branch shutter_dy_store_move_config_info
+	
+shutter_dy_shutter_ios_save_init_loaction:
+	arg IPHONE_ONCE_MAX_MOVE_VALUE,temp
+//	setarg IPHONE_INITIAL_MOVE_X
+	fetch 2,mem_iphone_initial_move_x
+	arg mem_shutter_move_data_x,rega
+	arg  mem_shutter_iphone_beyond_x_count,regb
+	call shutter_dy_iphone_move_initial_set
+	arg IPHONE_ONCE_MAX_MOVE_VALUE,temp
+//	setarg IPHONE_INITIAL_MOVE_Y
+	fetch 2,mem_iphone_initial_move_y
+	arg mem_shutter_move_data_y,rega
+	arg  mem_shutter_iphone_beyond_y_count,regb
+	call shutter_dy_iphone_move_initial_set
+	setarg 0xfff
+	fetcht 2,mem_shutter_move_data_y
+	isub temp,pdata
+	store 2,mem_shutter_move_data_y
+	branch shutter_dy_store_move_config_info
+	
+shutter_dy_clear_temp_count:
+	jam 0,mem_shutter_temp_count
+	rtn
+//鍙栨湁鏁堝湴鍧缁檓em_otp_write_offset_addr
+shutter_dy_campare_effective_addr_read_otp:
+	bpatch patch0d_6,mem_patch0d
+	jam 1,mem_shutter_first_read_flag
+	call shutter_dy_shutter_uart_config_loop
+	//鑾峰緱浜嗗湴鍧
+	//鏍￠獙鏄惁鏄秺鐣
+//	setarg SHUTTER_EFUSE_END_OFFECT
+	fetch 2,mem_shutter_efuse_end_offset
+	copy pdata, temp
+	fetch 2,mem_otp_read_offset_addr
+	isub temp,pdata	//pdata = pdata-temp
+	arg 0x0,temp	//temp = 0
+	isub temp,null	//null = pdata-temp, 澶т簬绛変簬0锛宲ositive缃1
+	nrtn positive
+	fetch 2,mem_otp_read_offset_addr
+	copy pdata, temp
+//	setarg SHUTTER_EFUSE_START_OFFECT
+	fetch 2,mem_shutter_efuse_start_offset
+	increase -5,pdata
+	isub temp,pdata	//pdata = pdata-temp
+	//璇讳笂涓娆″湴鍧
+//	ncall p_shutter_last_read_addr,zero
+	fetch 2,mem_otp_read_offset_addr
+	store 2,mem_otp_read_ios_android_addr
+	call shutter_dy_shutter_judge_ios_or_android
+	fetch 2,mem_otp_read_ios_android_addr
+	ncall shutter_dy_shutter_read_move_config_from_otp_addr,zero
+	
+	//妫鏌ヤ负0鍒欎笉璧嬪
+	jam 0,mem_shutter_temp_count
+	call shutter_dy_campare_otp_data
+	fetch 1,mem_shutter_temp_count
+	rtneq 0
+	branch shutter_dy_read_otp_convert_data
+	
+//鍙栨湁鏁堝湴鍧缁檓em_otp_write_offset_addr
+shutter_dy_campare_effective_addr_write_otp:
+	bpatch patch0d_7,mem_patch0d
+	jam 1,mem_shutter_first_read_flag
+	call shutter_dy_shutter_uart_config_loop
+	//鑾峰緱浜嗗湴鍧
+	//鏍￠獙鏄惁鏄秺鐣
+//	setarg SHUTTER_EFUSE_END_OFFECT
+	fetcht 2,mem_shutter_efuse_end_offset
+//	copy pdata, temp
+	fetch 2,mem_otp_read_offset_addr
+	isub temp,pdata	//pdata = pdata-temp
+	arg 0x0,temp	//temp = 0
+	isub temp,null	//pdata = pdata-temp, 澶т簬绛変簬0锛宲ositive缃1
+	nrtn positive
+	//妫鏌ュ湪鍖洪棿鍐
+	fetcht 2,mem_otp_read_offset_addr
+//	setarg SHUTTER_EFUSE_START_OFFECT
+	fetch 2,mem_shutter_efuse_start_offset
+	isub temp,pdata	//pdata = pdata-temp
+	arg 0x0,temp	//temp = 0
+	isub temp,null	//pdata = pdata-temp, 澶т簬绛変簬0锛宲ositive缃1
+	nrtn positive
+	fetch 2,mem_otp_read_offset_addr
+	store 2,mem_otp_write_offset_addr
+	call shutter_dy_write_otp_convert_data
+
+	branch shutter_dy_shutter_write_move_config_to_otp_addr
+	
+
+/* pdata=otp address, rega points to data, temp is count */
+shutter_dy_shutter_read_move_config_from_otp_addr:
+	arg SHUTTER_PARA_TOTAL_NUM,temp
+//	fetch 2,mem_otp_read_offset_addr
+	arg mem_otp_move_config,rega
+	branch otpd_read_data
+
+/* temp = otp address, rega pointers data, loopcnt is count */
+shutter_dy_shutter_write_move_config_to_otp_addr:
+	arg SHUTTER_PARA_TOTAL_NUM,loopcnt
+	arg mem_otp_move_config,rega
+	fetch 2, mem_otp_write_offset_addr
+	copy pdata,temp
+	branch otp_write
+
+shutter_dy_shutter_1s_timer:
+	arg mem_shutter_1s_timer,regc
+	arg shutter_dy_store_move_config_info,regb
+	branch timer_single_step
+
+
+
+/*************shutter dy ending*********************/
+	
+endif
+
Index: program/ble_protocol_stack/le.prog
===================================================================
--- /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/program/ble_protocol_stack/le.prog	(nonexistent)
+++ /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/program/ble_protocol_stack/le.prog	(working copy)
@@ -0,0 +1,2009 @@
+ifdef COMPILE_LE
+//******************************************//
+//*************LE INIT ****************//
+//******************************************//
+
+le_init_conn:
+	bpatch patch1a_6,mem_patch1a
+	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:
+	bpatch patch1a_7,mem_patch1a
+	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:
+	bpatch patch1b_0,mem_patch1b
+	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:
+	bpatch patch1b_1,mem_patch1b
+	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:
+	bpatch patch1b_2,mem_patch1b
+	enable master
+	call le_supervision_update
+	branch le_master_disconn,positive
+	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:
+	bpatch patch1b_3,mem_patch1b
+	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
+	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:
+	bpatch patch1b_4,mem_patch1b
+	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:
+	bpatch patch1b_5,mem_patch1b
+	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:
+	bpatch patch1b_6,mem_patch1b
+	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:
+	bpatch patch1b_7,mem_patch1b
+	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:
+	bpatch patch1c_0,mem_patch1c
+	call le_clear_connection_info
+	call app_disconn_reason_collect_ble
+	call le_clear_pairing_state
+ifdef SECURE_CONNECTION
+	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:
+	bpatch patch1c_1,mem_patch1c
+	jam FLAG_LE_ENC_NULL,mem_le_enc_state
+	jam FLAG_LE_PAIRING_NULL,mem_le_pairing_state 
+ifdef SECURE_CONNECTION
+	call sp_clear_flags
+endif
+	rtn
+	
+le_got_first_packet:
+	bpatch patch1c_2,mem_patch1c
+	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
+	bpatch patch1c_3,mem_patch1c
+	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
+	rtn
+
+le_enable_coded_s8:
+	call le_enable_coded
+	set1 mark_ble_lr_s8,mark
+	rtn
+
+le_enable:
+	bpatch patch1c_4,mem_patch1c
+	set0 mark_ble_2M,mark
+	set0 mark_ble_lr,mark
+	jam 0x01,0x8901
+	jam 0x80,0x8920
+	jam 0x03,0x8930
+	rtn
+
+
+le_disable:
+	bpatch patch1c_5,mem_patch1c
+	set0 mark_ble_encryption,mark
+	jam 0x01,0x8901
+	jam 0x80,0x8920
+	jam 0x03,0x8930
+	rtn
+	
+le_prep:
+	bpatch patch1c_6,mem_patch1c
+	disable enable_crc
+	disable enable_white
+	fetch 3,mem_le_crcinit
+	iforce crc24_init
+	fetch 1,mem_le_ch_mapped
+le_prep_next:
+	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:
+	bpatch patch1c_7,mem_patch1c
+	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:
+	bpatch patch1d_0,mem_patch1d
+	enable swfine
+	fetch 4,mem_le_access
+	iforce access
+	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:
+	bpatch patch1d_1,mem_patch1d
+	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 le_update_param
+	call le_update_channel_map
+	call le_update_phy	
+	call le_context_nexthop
+	call pop_stack_rega_b_c
+	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:
+	bpatch patch1d_2,mem_patch1d
+	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:
+	bpatch patch1d_3,mem_patch1d
+ 	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:
+	bpatch patch1d_4,mem_patch1d
+	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
+	enable swfine
+	fetch 1,mem_le_tx_ifs_defference
+	arg PARAM_20MS_INIT,temp
+	iadd temp,temp
+	fetch 1,mem_system_clk
+	imul32 temp,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
+	bpatch patch1d_5,mem_patch1d
+	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:
+	bpatch patch1d_6,mem_patch1d
+	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:
+	bpatch patch1d_7,mem_patch1d
+	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
+	call le_match_set_sync_on
+	
+le_match_set_txfreq:
+	bpatch patch1e_0,mem_patch1e
+	fetcht 1,mem_last_freq
+	add temp,2,rega
+//	bmark1 mark_ble_2M,rf_tx_write_freq
+//	add temp,1,rega
+	branch  rf_tx_write_freq	// set frequency to tx mode freq
+
+le_match_set_sync_on:	
+	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:
+	bpatch patch1e_1,mem_patch1e
+	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:
+	bpatch patch1e_2,mem_patch1e
+	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:
+	bpatch patch1e_3,mem_patch1e
+	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:
+	bpatch patch1e_4,mem_patch1e
+	call le_transmit
+	branch end_of_packet
+	
+le_transmit:
+	bpatch patch1e_5,mem_patch1e
+	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
+	bpatch patch1e_6,mem_patch1e
+	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 */
+	bpatch patch1e_7,mem_patch1e
+	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	
+	fetcht 1,mem_le_tx2m_delay
+	iadd temp,pdata
+	call sleep				//2M ?°??·￠?í±è1M?ì
+	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 2,contr
+	add rega,coffset_le_slave_latency,contw
+	istore 2,contw
+	ifetch 2,contr
+	store 2,mem_le_init_superto
+	branch le_receive_window_size
+
+le_update_param_cb:
+	ifetch 1,rega
+	set0 lestate_got_first_packet,pdata
+	istore 1,rega
+	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:
+	bpatch patch1f_0,mem_patch1f
+	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
+	
+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:
+	bpatch patch1f_1,mem_patch1f
+	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
+	bpatch patch1f_2,mem_patch1f
+	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:
+	bpatch patch1f_3,mem_patch1f
+	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:
+	bpatch patch1f_4,mem_patch1f
+	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:
+	bpatch patch1f_5,mem_patch1f
+	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
+	bpatch patch1f_6,mem_patch1f
+	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:
+	bpatch patch1f_7,mem_patch1f
+	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 patch20_0,mem_patch20
+	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
+	store 2,mem_le_payload_ptr
+	bpatchx patch20_1,mem_patch20
+	fetch 1,mem_le_packet_llid
+	beq LLID_LE_LL,le_parse_ll
+	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_l2cap_parse_cb
+	nbranch callback_func,blank
+le_parse_l2cap:
+	fetch 2,mem_le_payload_ptr
+	add pdata,2,contr	//l2cap length
+	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:
+	bpatchx patch20_2,mem_patch20
+	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 patch20_3,mem_patch20
+	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 patch20_4,mem_patch20
+	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
+	branch enable_user
+
+	/* 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 patch20_5,mem_patch20
+	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 patch20_6,mem_patch20
+	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 patch20_7,mem_patch20
+	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 patch21_0,mem_patch21
+	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 patch21_1,mem_patch21
+	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 patch21_2,mem_patch21
+	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
+	fetch 1,mem_le_configuration
+	bbit1 BIT_BLE_SHORT_MULT,lpm_mult_short	//check flag,if flag is 1,always short mult
+	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_state
+	bbit1 lestate_update_param,lpm_mult_short
+	bbit1 lestate_update_phy,lpm_mult_short
+	bbit1 lestate_update_map,lpm_mult_short
+	branch lpm_mult_wait_timeout
+	
+le_lpm_lost:
+	fetch 1,mem_sniff_unint_lost
+	sub pdata,30,null
+	nbranch lpm_lost,positive
+	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:
+	bpatchx patch21_3,mem_patch21
+	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:
+	bpatchx patch21_4,mem_patch21
+	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:
+	bpatchx patch21_5,mem_patch21
+	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:
+	bpatchx patch21_6,mem_patch21
+	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_rx_phy:
+	storer rega,1,mem_le_rx_phys
+	branch le_set_phy_common
+
+le_set_tx_phy:
+	storer rega,1,mem_le_tx_phys
+le_set_phy_common:	
+	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_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
+
+le_set_fixed_ltk_justwork:
+	call le_set_config_fixed_ltk
+	call le_set_justwork
+	call le_set_fixed_ltk
+	branch le_set_config_read_authentication
+	
+
Index: program/ble_protocol_stack/le_advertising.prog
===================================================================
--- /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/program/ble_protocol_stack/le_advertising.prog	(nonexistent)
+++ /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/program/ble_protocol_stack/le_advertising.prog	(working copy)
@@ -0,0 +1,392 @@
+
+/*
+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 patch21_7,mem_patch21
+	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 patch22_0,mem_patch22
+	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_temp_block0
+	rtn
+
+
+le_wait_adv:
+	bpatchx patch22_1,mem_patch22
+	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 patch22_2,mem_patch22
+	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
+	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 patch22_3,mem_patch22
+	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 patch22_4,mem_patch22
+	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 patch22_5,mem_patch22
+	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
+	call le_send_adv_protect_txbuf
+	call le_adv_loop
+	branch le_send_adv_recover_txbuf
+	
+le_adv_loop:
+	bpatchx patch22_6,mem_patch22
+	fetch 1,mem_le_adv_enable
+	rtn blank
+	arg le_adv_interval_timer,queue
+	call timer_check
+	nrtn blank
+	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 patch22_7,mem_patch22
+	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_send_adv_protect_txbuf:
+	arg mem_le_tx_buf_temp,contw
+	arg mem_le_txheader,contr	
+	branch memcpy48
+	
+le_send_adv_recover_txbuf:
+	arg mem_le_tx_buf_temp,contr
+	arg mem_le_txheader,contw
+	branch memcpy48
+
+le_init_adv:
+	bpatchx patch23_0,mem_patch23
+	disable master
+le_adv_access:
+	setarg 0x8e89be
+	lshift8 pdata,pdata
+	or_into 0xd6,pdata
+	iforce access
+	setarg 0x555555
+	store 3,mem_le_crcinit
+	rtn
+
+
+
+le_send_adv_ind:
+	bpatchx patch23_1,mem_patch23
+	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 patch23_2,mem_patch23
+	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 patch23_3,mem_patch23
+	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 patch23_4,mem_patch23
+	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
+	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 patch23_5,mem_patch23
+	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 patch23_6,mem_patch23
+	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
===================================================================
--- /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/program/ble_protocol_stack/le_l2cap_att.prog	(nonexistent)
+++ /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/program/ble_protocol_stack/le_l2cap_att.prog	(working copy)
@@ -0,0 +1,885 @@
+
+
+le_parse_att:
+	ifetch 3,contr
+	store 3,mem_le_att_opcode
+le_parse_att2:
+	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
+	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
+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:
+	bpatchx patch23_7,mem_patch23
+	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:
+	bpatchx patch24_0,mem_patch24
+	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:	
+	bpatchx patch24_1,mem_patch24
+	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:
+	bpatchx patch24_2,mem_patch24
+	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:
+	bpatchx patch24_3,mem_patch24
+	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:
+	bpatchx patch24_4,mem_patch24
+	fetch 1,mem_le_curr_att_len
+	store 1, mem_temp_block0
+	copy pdata,loopcnt
+	call get_contr
+	branch memcpy_fast
+
+
+le_write_att_record:
+	bpatchx patch24_5,mem_patch24
+	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_temp_block0
+	copy pdata,loopcnt
+	call memcpy_fast
+	branch store_contw
+
+
+
+le_send_auto_len_by_mem:
+	bpatchx patch24_6,mem_patch24
+	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:
+	bpatchx patch24_7,mem_patch24
+	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:
+	bpatchx patch25_0,mem_patch25
+	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:
+	bpatchx patch25_1,mem_patch25
+	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_signalling.prog
===================================================================
--- /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/program/ble_protocol_stack/le_l2cap_signalling.prog	(nonexistent)
+++ /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/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
===================================================================
--- /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/program/ble_protocol_stack/le_l2cap_smp.prog	(nonexistent)
+++ /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/program/ble_protocol_stack/le_l2cap_smp.prog	(working copy)
@@ -0,0 +1,603 @@
+
+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
+
+ifdef SECURE_CONNECTION			
+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
+endif
+
+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
+ifdef 	SECURE_CONNECTION
+	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
+endif	
+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:
+	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_LAGACY_PASSKEY_RES_INPUT,le_parse_smp_pairing_confirm_passkey_res_input
+ifdef SECURE_CONNECTION				
+	beq LE_PAIRING_MODE_SECURE_CONNECT_PASSKEY,le_parse_smp_pairing_confirm_secure_passkey
+	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
+
+	
+le_parse_smp_pairing_confirm_passkey_res_input:
+	jam BT_EVT_LE_GET_PASSKEY,mem_fifo_temp
+	branch ui_ipc_send_event
+	
+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
+
+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
+endif
+
+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:	
+	copy contr,rega
+ifdef SECURE_CONNECTION				
+	fetch 1,mem_le_pairing_mode
+	bbit1 LE_PAIRING_MODE_SECURE_CONNECT_BIT,le_parse_smp_pairing_random_sc
+endif
+	copy rega,contr
+	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:
+	bpatchx patch25_2,mem_patch25
+	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
+	rtn
+
+//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 patch25_3,mem_patch25
+	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
+	branch ui_ipc_send_event
+
+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:
+	bpatchx patch25_4,mem_patch25
+	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 patch25_5,mem_patch25
+	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:
+	bpatchx patch25_6,mem_patch25
+	force LE_L2CAP_CID_SMP,regb
+	branch le_fifo_malloc_tx_l2cap
+
+
Index: program/ble_protocol_stack/le_ll.prog
===================================================================
--- /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/program/ble_protocol_stack/le_ll.prog	(nonexistent)
+++ /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/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 patch25_7,mem_patch25
+	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:
+	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_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
===================================================================
--- /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/program/bt.prog	(nonexistent)
+++ /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/program/bt.prog	(working copy)
@@ -0,0 +1,1584 @@
+//define CLK24M
+//define SECURE_CONNECTION
+
+define COMPILE_SHUTTER
+define COMPILE_MOUSE
+define COMPILE_USB
+define COMPILE_DONGLE
+define COMPILE_LE
+define COMPILE_24G
+define COMPILE_CAR
+define COMPILE_REMOTE_CAR
+define COMPILE_FCC_AUTH
+//define COMPILE_NEC
+//define COMPILE_UART
+define FUNC_FAN_MODULE
+
+INCLUDE "bt_format"
+
+org 0x0000		// start from patch ram address start
+ifdef SIM
+include sim.prog
+else
+include patch.prog
+endif
+
+/******************************************/
+/***********   ROM Start   ***************/
+/******************************************/
+
+org 0x3800		// start from rom address start
+start:
+	call lpmstate
+
+soft_reset:
+	bpatch patch00_0,mem_patch00
+	clear_stack
+	call app_param_init
+	call initialize_radio
+	call iic_init_360khz
+	call init_param
+	call l2cap_init
+	bpatch patch00_1,mem_patch00
+	call ui_init
+	call ldo_abb_en_init
+	call app_init
+ifdef SECURE_CONNECTION
+	call publickey_init
+//	call sp_wait_pubkey_calc_done
+endif
+	call lpm_recover_clk,wake
+main_loop:	
+	bpatch patch00_2,mem_patch00
+ifdef SECURE_CONNECTION
+	call sp_calc_sequence_256
+	call sp_calc_sequence_256_check
+endif
+	call le_advertising_dispatch
+	call idle_dispatch
+	call app_process_idle
+	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_3,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
+	rtn
+	
+connection_nosniff:
+	jam 0,mem_current_context
+	call context_get_next
+	copy loopcnt,null
+	rtn zero
+	branch assert
+
+
+/**************************************/
+/**************idle dispatch*********/
+/**************************************/
+	
+idle_dispatch:
+	fetch 1,mem_hci_cmd
+	rtn blank
+	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
+
+
+
+context_load:
+	bpatch patch00_4,mem_patch00
+	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
+	rtn
+	
+context_save:
+	bpatch patch00_5,mem_patch00
+	fetch 2,mem_context_ptr
+	iforce contw
+	force context_size,loopcnt
+	arg mem_le_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
+context_get_next_sniff:
+	loop context_get_next_loop
+	rtn
+	
+context_new:
+	bpatch patch00_6,mem_patch00
+	arg context_search_empty,regc
+	call context_search
+	nrtn zero					// all occupied
+	deposit rega
+	store 2,mem_context_ptr
+	force 0,null
+	rtn
+	
+
+	
+	//rtn nzero if idle(no conn)
+context_check_idle:
+	arg context_check_inconn,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 patch00_7,mem_patch00
+	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 patch01_0,mem_patch01
+	arg mem_context,rega
+	arg context_num,loopcnt
+context_search_loop:
+	ifetch 1,rega
+	copy regc,pc
+context_search_next:
+	bpatch patch01_1,mem_patch01
+	increase context_size,rega
+	loop context_search_loop
+	force 1,null
+	rtn
+
+context_search_empty:
+	bbit1 state_inconn,context_search_next
+	force 0,null
+	rtn
+	
+context_search_lap:
+	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
+	bpatch patch01_2,mem_patch01
+ifdef SECURE_CONNECTION
+	fetch 1,mem_sc_calc
+	nbranch context_search_sniff_sc,blank
+endif	
+	fetch 9,mem_temp
+	copy regb,contr
+	increase 5,pdata  
+	branch context_search_meet1
+	
+ifdef SECURE_CONNECTION
+context_search_sniff_sc:
+	fetch 9,mem_temp
+	copy regb,contr	
+	increase 20,pdata  
+endif	
+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
+	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
+
+
+
+end_of_packet:
+	bpatch patch01_3,mem_patch01
+	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
+
+
+
+	/* enable user if sniff window vialation, queue is extra overhead */
+sniff_check_window:
+	bpatch patch01_4,mem_patch01
+	disable swfine
+	copy temp,stop_watch
+	call context_search_sniff_window
+	disable user
+	nrtn zero
+	force 0,stop_watch
+	branch enable_user
+
+
+
+calc_slot_offset:
+	bpatch patch01_5,mem_patch01
+	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 patch01_6,mem_patch01
+	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
+
+calc_clke:
+	disable clknt
+	fetch 6,mem_le_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 ***********/
+/******************************************/
+
+
+shutdown_radio:
+	bpatch patch01_7,mem_patch01
+	call rf_debug_shutdown_radio_line	//L-H-L
+	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
+	call set_sync_on
+	jam 0,core_syn_en
+	jam 0x80,core_rf_ldo_en0
+	fetch 1,core_clkpll_cfg6
+	set0 7,pdata
+	store 1,core_clkpll_cfg6
+	jam 0,core_rf_ldo_en1
+	rtn
+
+
+
+set_sync_on:
+	bpatch patch02_0,mem_patch02
+	jam 0x5,modem_en
+	nop 2
+	jam 0x0,modem_en					/* if called from tx or rx */
+	fetch 1,mem_fcomp_div
+	beq XTAL_24M,set_sync_on_24m
+	beq XTAL_16M,set_sync_on_16m
+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
+set_sync_on_next:
+	fetch 1,core_clkpll_cfg6
+	set0 7,pdata
+	store 1,core_clkpll_cfg6
+	jam 0,core_syn_cal_ctrl
+	rtn
+
+set_sync_on_16m:
+	jam 0x29,core_syn_afc_cfg1
+	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
+	branch set_sync_on_next
+
+set_freq_rx:
+	bpatch patch02_1,mem_patch02
+	
+	fetch 1,mem_fcomp_div
+	sub pdata,XTAL_24M,null
+	call rf_rx_write_freq_24m,zero
+	ncall rf_rx_write_freq_16m,zero
+
+	storet 1,mem_last_freq
+	add temp,0,pdata
+	bmark1 mark_ble_2M,set_rxfreq_2M_offset
+	add temp,1,pdata
+set_rxfreq_2M_offset:
+	branch rf_rx_write_freq
+
+
+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
+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
+
+rf_rx_enable:
+	bpatch patch02_2,mem_patch02
+	call rf_debug_rx_gpio_high
+	
+	fetch 1,mem_gain_fix
+	beq 0xff,rf_rx_enable_no_soft_agc 
+	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
+	
+rf_rx_enable_no_soft_agc:
+	fetcht 1,mem_gain_second_agc_en	//0x00 or 0x08
+	fetch 1,core_rf_rx_agc_ctrl
+	ior temp,pdata
+	store 1,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
+
+
+	/* pdata is frequency, 00=2400Mhz */
+rf_rx_write_freq:
+	bpatch patch02_3,mem_patch02
+	arg 2400,contr
+	iadd contr,pdata
+	fetcht 1,mem_fcomp_div
+	branch rf_write_freq_calc
+
+	/* rega is frequency, 00=2400Mhz */
+rf_tx_write_freq:
+	bpatch patch02_4,mem_patch02
+	fetch 1,mem_fcomp_div
+	sub pdata,XTAL_24M,null
+	call rf_tx_write_freq_24m,zero
+	ncall rf_tx_write_freq_16m,zero
+	
+	setarg 2400
+	iadd rega,pdata
+	lshift pdata,pdata
+	fetcht 1,mem_fcomp_div
+	mul32 temp,0x03,temp
+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,rf_write_freq_calc_24m
+	beq XTAL_16M,rf_write_freq_calc_16m
+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
+
+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
+
+
+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
+
+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
+
+
+set_freq_tx:
+	bpatch patch02_5,mem_patch02
+
+	jam 0x12,core_syn_top_ctrl
+	storet 1,mem_last_freq
+	add temp,2,rega
+	call rf_tx_write_freq
+	nop 0x3c0
+
+txon:
+	bpatch patch02_6,mem_patch02
+	
+	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
+	
+	bpatch patch02_7,mem_patch02
+	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_7DB,set_tx_power_7db
+	beq TX_POWER_10DB,set_tx_power_10db
+	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_F30DB,set_tx_power_f30db
+	beq TX_POWER_FACTORY,set_tx_power_factory
+set_tx_power_0db:
+	jam 0x6a,core_tx_pwr_ctrl0
+	jam 0x07,core_tx_pwr_ctrl1
+set_rf_ldo_cfg89:
+	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
+set_rf_ldo_cfg89_2:
+	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
+	branch set_rf_ldo_cfg89_2
+
+set_tx_power_6db:
+	jam 0x6b,core_tx_pwr_ctrl0
+	jam 0x0f,core_tx_pwr_ctrl1
+	branch set_rf_ldo_cfg89_2
+
+set_tx_power_7db:
+	jam 0xa7,core_tx_pwr_ctrl0
+	jam 0x0f,core_tx_pwr_ctrl1
+	branch set_rf_ldo_cfg89_2
+
+set_tx_power_10db:
+	jam 0xb6,core_tx_pwr_ctrl0
+	jam 0x0f,core_tx_pwr_ctrl1
+	branch set_rf_ldo_cfg89_2
+
+set_tx_power_f3db:
+	jam 0x68,core_tx_pwr_ctrl0
+	jam 0x05,core_tx_pwr_ctrl1
+	branch set_rf_ldo_cfg89
+	
+set_tx_power_f5db:
+	jam 0x60,core_tx_pwr_ctrl0
+	jam 0x05,core_tx_pwr_ctrl1
+	branch set_rf_ldo_cfg89
+
+set_tx_power_f20db:
+	jam 0x53,core_tx_pwr_ctrl0
+	jam 0x01,core_tx_pwr_ctrl1
+	branch set_rf_ldo_cfg89
+
+set_tx_power_f30db:
+	jam 0x4c,core_tx_pwr_ctrl0
+	jam 0x00,core_tx_pwr_ctrl1
+	branch set_rf_ldo_cfg89
+
+set_tx_power_factory:
+	fetch 2,mem_tx_power_factory_param
+	store 2,core_tx_pwr_ctrl0
+	branch set_rf_ldo_cfg89
+
+
+initialize_radio:
+	jam clksel_rc,core_clksel
+initialize_radio_wait:
+	fetch 2,mem_rf_init_ptr
+	bbit0 14,initialize_radio_wait
+	iforce contr
+	arg 0x8a00,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 patch03_0,mem_patch03
+	fetch 1,mem_wdt_always_work
+	call wdt_set_disable,blank
+
+	jam 0x05,core_clkpll_cfg0
+	jam 0x94,core_rx_iqadc_cfg
+	call initialize_rc_cal
+	call initialize_rf_ldo_cfg1
+	call initialize_syn_afc_cfg1
+	jam 0xe6,core_syn_aac_cfg1
+
+	//optimize RX SX pn
+	jam 0x90,core_syn_pfd_lkd_cfg
+	jam 0x0b,core_rf_ldo_cfg2
+	jam 0x05,core_rf_ldo_cfg3
+
+	//Improve auto agc
+	jam 0x76,core_agc_wb_sat_th
+	jam 0x76,core_agc_nb_sat_th
+
+	fetch 1,mem_fcomp_div
+	bne XTAL_16M,initialize_radio_cont_next
+	jam 0x34,core_clkpll_cfg5		//16M XTAL
+initialize_radio_cont_next:
+	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 100
+	jam clksel_dpll,core_clksel
+	jam SYSTEM_CLK_12M,mem_system_clk
+	branch le_disable
+	
+
+initialize_syn_afc_cfg1:
+	fetch 1,mem_syn_afc_cfg1
+	nbranch initialize_syn_afc_cfg1_set,blank
+	setarg 0x29
+initialize_syn_afc_cfg1_set:	
+	store 1,core_syn_afc_cfg1
+	rtn
+
+initialize_rf_ldo_cfg1:
+	fetch 1,mem_rf_ldo_cfg1
+	nbranch initialize_rf_ldo_cfg1_set,blank
+	setarg 0x00
+initialize_rf_ldo_cfg1_set:
+	store 1,core_rf_ldo_cfg1
+	rtn
+
+initialize_rc_cal:
+	fetch 1,mem_rc_cal
+	branch initialize_rc_cal_set,blank
+	setarg 0xd3
+initialize_rc_cal_set:	
+	store 1,core_rx_bq_bw_cal
+	rtn
+	
+	
+save_rssi:
+	bpatch patch03_1,mem_patch03
+	 // bit6 is signed bit.
+	fetch 1,modem_nb_pow
+	isolate1 6,pdata
+	setflag true,7,pdata
+	store 1,mem_modem_rssi
+
+	fetch 1,modem_gain
+	and pdata,0x0f,temp
+	lshift temp,temp
+	rshift4 pdata,pdata
+	iadd temp,temp
+	mul32 temp,3,rega // (abb_gain + lna_gain*2)*3
+
+	fetch 1,mem_modem_rssi
+	call byte_sign_extern
+	sub pdata,0,pdata //-modem_nb_pow
+	iadd rega,pdata // (abb_gain + lna_gain*2)*3 + (-modem_nb_pow)
+	increase -9,pdata // (abb_gain + lna_gain*2)*3 + (-modem_nb_pow) - 9
+	and pdata,0x1ff,pdata
+	isolate1 8,pdata
+	nbranch save_rssi_store,true
+	setarg 0	 
+save_rssi_store:
+	store 1,mem_rssi_hex
+	branch rssi_hex2dec
+ 
+byte_sign_extern:
+	isolate1 7,pdata
+	nrtn true
+	arg 0xff00,temp
+	ior temp,pdata
+	rtn
+ 
+rssi_hex2dec:
+	fetch 1,mem_rssi_hex
+	call bcd
+	store 1,mem_rssi
+	rtn
+
+bcd:
+	and_into 0xff,pdata
+	div pdata,10
+	call get_div_result
+	lshift4 pdata,pdata
+	remainder temp
+	ior temp,pdata
+	rtn
+
+	
+xtal_fast_wake:
+	setarg 0xf0f
+	branch lpm_write_config
+
+init_lpm_ctrl:
+	setarg 0x80f
+	branch lpm_write_config
+
+
+
+	/* pdata = clks ahead of bt_clk */
+ahead_window:
+	copy pdata,temp
+	bpatch patch03_2,mem_patch03
+	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
+
+
+get_clk:
+	copy clkn,temp
+	rtn master
+	copy clke,temp
+	rtn
+
+get_clkbt:
+	deposit clkn_bt
+	rtn master
+	deposit clke_bt
+	rtn
+
+
+assert:
+	bpatch patch03_3,mem_patch03
+	branch assert
+	
+
+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 
+	setarg 0 
+	store 6,mem_le_adv_transmit
+	arg mem_le_state,contw
+	arg 10,loopcnt
+	call memset0
+	jam 0,mem_fifo_temp
+	jam 0,mem_le_testtype
+
+	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
+	
+//	call init_memp	
+ifdef SECURE_CONNECTION 
+	setarg mem_sp_state_end
+	arg mem_sp_state_start,contw
+	isub contw,loopcnt
+	call clear_mem
+endif
+
+	bpatch patch03_4,mem_patch03
+	rtn wake
+	jam PARAM_T_IFS_150US+PARAM_SYNC_TIME_DIFFERENCE,mem_le_tx_ifs_defference
+	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	
+	rshift clkn_bt,pdata
+	store 4,mem_last_clkn
+	rtn
+
+
+/*
+这是1308/7/6芯片设计需要绕过的一个问题,如果芯片同事确认修复后，可以删除。
+修复的问题是，解决在lpm模式下，芯片会随机出现几十微安的异常电流。
+*/
+ldo_abb_en_init:
+	rtn wake
+	bpatch patch03_5,mem_patch03
+	fetch 1, core_rf_ldo_en0
+	set1 3, pdata
+	store 1, core_rf_ldo_en0
+	nop 1200
+	set0 3, pdata
+	store 1, core_rf_ldo_en0
+	rtn
+
+/*
+clk24m_init:
+	jam 6,core_clksel
+	jam 1,core_clksel
+	nop 10
+	setarg 7498
+	store 2,core_halfslot
+	rtn
+*/
+
+/*****************************************LPO************************************************/
+
+lpmstate:
+	setarg 0xee21
+	store 2,core_clkoff			// disable unused peripherals
+	fetch 4,core_gpio_in
+	store 4,mem_saved_gpio_in
+	store 4,mem_saved_gpio_in	//gpio bug
+	jam 0x83,core_otp_ctrl		/* otp ceb rstn high before power on */
+	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
+	storet 4,core_lpm_reg
+	jam lpmreg_sel_counter,core_lpm_wr
+	until null,never
+
+lpmwake:
+	until null,lpo_edge
+	jam lpmreg_sel_ctrl3,core_lpm_wr
+	until null,lpo_edge
+	jam lpmreg_sel_ctrl2,core_lpm_wr
+	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
+	until null,lpo_edge
+	jam lpmreg_sel_ctrl2,core_lpm_wr
+	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
+	until null,lpo_edge
+	jam lpmreg_sel_ctrl2,core_lpm_wr
+	fetch 1,core_lpm_isogate
+	set1 enable_retmem,pdata
+	store 1,core_lpm_isogate
+	until null,lpo_edge
+	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 load_ucode,wake
+	nbranch loadcode,wake		// wakeup from hibernate
+	rtnmark0 mark_otp_encrypt
+	jam lock_otp,core_misc_ctrl	// disable further read/write of key
+	rtn 
+
+
+lpm_ctrl3_cfg_dig_vsel:
+	fetch 1,mem_dig_aon_vsel
+	beq 1,lpm_ctrl3_cfg_vsel_108
+	beq 2,lpm_ctrl3_cfg_vsel_096
+	beq 3,lpm_ctrl3_cfg_vsel_084
+lpm_ctrl3_cfg_vsel_120:
+	fetch 1,mem_lpm_ctrl3_aon_vsel
+	and_into 0xe0,pdata
+lpm_ctrl3_cfg_vsel_store:	
+	store 1,mem_lpm_ctrl3_aon_vsel
+	rtn
+lpm_ctrl3_cfg_vsel_108:
+	fetch 1,mem_lpm_ctrl3_aon_vsel
+	and_into 0xe0,pdata
+	or_into 0x1d,pdata
+	branch lpm_ctrl3_cfg_vsel_store
+lpm_ctrl3_cfg_vsel_096:
+	fetch 1,mem_lpm_ctrl3_aon_vsel
+	and_into 0xe0,pdata
+	or_into 0x1b,pdata
+	branch lpm_ctrl3_cfg_vsel_store
+lpm_ctrl3_cfg_vsel_084:
+	fetch 1,mem_lpm_ctrl3_aon_vsel
+	and_into 0xe0,pdata
+	or_into 0x17,pdata
+	branch lpm_ctrl3_cfg_vsel_store
+
+lpm_load_context:
+	fetch 1,mem_saved_spidctrl
+	store 1,core_spid_ctrl
+	fetch 8,mem_saved_gpio
+	store 8,core_gpio_conf
+	ifetch 5,contr
+	istore 5,contw
+	fetchr mark,8,mem_saved_mark
+	rtn
+
+lpm_save_context:
+	storer mark,8,mem_saved_mark
+	fetch 8,core_gpio_conf
+	store 8,mem_saved_gpio
+	ifetch 5,contr
+	istore 5,contw
+	fetch 1,core_spid_ctrl
+	store 1,mem_saved_spidctrl
+	rtn
+
+lpo_calibration:
+	fetch 1,core_aes_en
+	rshift2 pdata,pdata
+	and pdata,0xf,pdata
+	nbranch lpo_cal_inited,blank
+	fetch 3,mem_clks_per_lpo
+	nrtn blank
+	fetch 1,core_aes_en
+	or_into 0x30,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 patch03_6,mem_patch03
+	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:
+	bpatch patch03_7,mem_patch03
+	arg param_hibernate_clks,temp
+	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 patch04_0,mem_patch04
+	fetch 2,mem_cb_before_lpm_sleep
+	call callback_func
+	until null,lpo_edge
+	jam lpmreg_sel_ctrl,core_lpm_wr
+	call lpm_ctrl3_cfg_dig_vsel
+	until null,lpo_edge
+	jam lpmreg_sel_ctrl2,core_lpm_wr
+	setarg 0xf0f
+	call lpm_write_config_reg
+lpm_sleep_skip_cb_function:
+	fetch 4,mem_sleep_counter_all
+	iadd temp,pdata
+	store 4,mem_sleep_counter_all
+	call lpm_save_context
+	until null,lpo_edge
+	jam lpmreg_sel_ctrl2,core_lpm_wr
+	fetchr regb,4,mem_lpm_ctrl3
+	fetch 5,mem_lpm_xtalcnt
+	store 4,core_lpm_reg
+	storer clkn,6,mem_sleep_clkn 
+	until null,lpo_edge 
+	jam lpmreg_sel_ctrl3,core_lpm_wr 
+	rshift32 pdata,pdata	
+	store 1,core_lpm_isogate
+	until null,lpo_edge
+	storer regb,4,core_lpm_reg
+	jam lpmreg_sel_counter,core_lpm_wr
+	until null,lpo_edge
+	storet 4,core_lpm_reg
+	until null,never
+
+
+
+
+lpm_recover_clk:
+	bpatch patch04_1,mem_patch04
+	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 param_lpo_extra,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
+	until null,lpo_edge	
+	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 patch04_2,mem_patch04
+	call lpo_calibration
+	fetch 3,mem_clks_per_lpo
+	rtn blank
+	fetch 1,mem_lpm_mode
+	rtn blank
+ifdef 	SECURE_CONNECTION
+	fetch 1,mem_secure_connections_enable
+	branch lpm_dispatch_next,blank
+	fetch 1,mem_sc_local_key_invalid 	// simple pairing is not ready
+	rtn blank
+lpm_dispatch_next:
+	fetch 1,mem_sc_calc
+	nrtn blank	
+endif
+	arg context_check_a_wack,regc
+	call context_search
+	rtn zero
+	call lpm_check_wake_lock
+	nrtn blank
+	call context_check_idle						
+	nbranch lpm_dispatch_unconn,zero
+	rtn wake
+	bpatch patch04_3,mem_patch04
+	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
+	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 patch04_4,mem_patch04
+	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 patch04_5,mem_patch04
+	fetch 1,mem_le_adv_enable
+	nbranch lpm_unconn_cont,blank
+	rtn
+	
+lpm_unconn_cont:
+	fetch 2,mem_lpm_interval
+	rtn blank
+lpm_sleep_btclk:
+	fetcht 1,mem_lpm_overhead
+	isub temp,pdata
+	arg 7500,temp				
+	imul32 temp,pdata
+	branch lpm_dispatch_sleep
+
+	
+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
+
+
+
+
+lpm_match:
+	jam 0,mem_sniff_unint_lost
+	fetch 3,mem_sniff_rcv
+	increase 1,pdata
+	store 3,mem_sniff_rcv
+	rtn
+
+
+lpm_lost:
+	bpatch patch04_6,mem_patch04
+	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:
+	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
+
+lpm_write_config_reg:
+	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
+	rtn
+
+
+	/* pdata is lpm_reg[11:0] */
+lpm_write_config:
+	call lpm_write_config_reg
+
+lpm_write_ctrl:
+	bpatch patch04_7,mem_patch04
+	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_sel_vdd:
+	bpatch patch05_0,mem_patch05
+	fetch 4,core_lpm_ctrl2
+	store 4,core_lpm_reg
+	fetch 1,core_lpm_ctrl2
+	and_into 0x41,pdata
+	fetcht 1,mem_lpm_ctrl3_app_vsel
+	ior temp,pdata
+	store 1,core_lpm_reg
+lpm_write_ctrl3:
+	setarg lpmreg_sel_ctrl3
+	branch lpm_write
+
+
+lpm_write_gpio_wakeup:
+	bpatch patch05_1,mem_patch05
+	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 patch05_2,mem_patch05
+	call app_check_wake_lock
+	fetch 2,mem_lpm_wake_lock
+	copy pdata,rega
+	fetch 3,mem_tx_fifo3
+	nsetflag blank,wake_lock_ble_tx,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
+	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
+
+
Index: program/debug.prog
===================================================================
--- /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/program/debug.prog	(nonexistent)
+++ /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/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_on_line:
+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_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/fcc_auth.prog
===================================================================
--- /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/program/fcc_auth.prog	(nonexistent)
+++ /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/program/fcc_auth.prog	(working copy)
@@ -0,0 +1,264 @@
+
+
+
+ifdef COMPILE_FCC_AUTH
+/*
+input:
+mem_fcc_ch     //选择频点:frequence = 2402MHz + mem_fcc_ch
+mem_fcc_txrx   //选择收发模式:发射模式(FCC_TX); 接收模式(FCC_RX)
+mem_fcc_data   //选择测试模式:发射载波(FCC_CARRIER); 发射数据/调制波(FCC_DATA)
+mem_fcc_tx_power   //选择发射功率
+mem_fcc_config_cb   //函数指针，可以把认证中的实现切换逻辑的函数地址赋值给它
+*/
+fcc_auth_config:
+	call pn9
+	branch fcc_auth_procedures
+
+
+
+fcc_auth_procedures:
+	bpatch patch0e_3,mem_patch0e
+//以下变量保持默认值
+	jam FCC_DATA_RATE_1Mbps, mem_fcc_mod
+	jam FCC_BT_MODE, mem_fcc_btble
+	jam FCC_LEN_DH1, mem_fcc_data_length
+	jam FCC_FIXED_FREQ, mem_fcc_hop
+	
+	fetch 2, mem_fcc_config_cb
+	call callback_func
+	
+	fetch FCC_PARA_LEN,mem_fcc_param
+	store FCC_PARA_LEN,mem_fcc_param_new
+	fetch 1, mem_fcc_tx_power
+	store 1, mem_tx_power
+	
+	fetch 1, mem_fcc_txrx
+	beq FCC_TX, fcc_auth_tx_start
+	beq FCC_RX, fcc_auth_rx_start
+fcc_auth_tx_start:
+	fetcht 1,mem_fcc_ch
+	fetch 1,mem_fcc_btble
+	beq FCC_BLE_MODE,fcc_auth_ble_tx_on
+	beq FCC_BT_MODE,fcc_auth_bt_tx_on
+fcc_auth_ble_tx_on:
+	bpatch patch0e_4,mem_patch0e
+	call fcc_set_sync_on
+	call set_freq_tx
+	//disable enable_white
+	call fcc_le_enable
+	set1 TXGFSK,radio_ctrl
+	enable encode_fec0
+	enable is_tx
+	disable is_rx
+	call le_wait_tx
+	fetch 1,mem_fcc_data
+	store 1,core_tx_test_mode
+	branch fcc_auth_tx_data
+fcc_auth_tx_data:
+	bpatch patch0e_5,mem_patch0e
+	fetch 1,mem_fcc_mod
+	beq FCC_DATA_RATE_1Mbps,calculate_GFSK_modulation_length
+calculate_GFSK_modulation_length:	
+	fetch 1,mem_fcc_data_length
+	beq FCC_LEN_DH1,calculate_gfsk_modulation_length_dh1
+	beq FCC_LEN_DH3,calculate_gfsk_modulation_length_dh3
+	beq FCC_LEN_DH5,calculate_gfsk_modulation_length_dh5
+calculate_gfsk_modulation_length_dh1:
+	arg 53,loopcnt
+	arg mem_pn9,contr
+	branch pnloop_stable
+calculate_gfsk_modulation_length_dh3:
+	arg 203,loopcnt
+	arg mem_pn9,contr
+	branch pnloop_stable
+calculate_gfsk_modulation_length_dh5:
+	arg 354,loopcnt
+	arg mem_pn9,contr
+	branch pnloop_stable
+
+
+fcc_auth_bt_tx_on:
+	bpatch patch0e_6,mem_patch0e
+	//call p_test_ble_bt_rx_off	//close rx
+	call fcc_set_sync_on
+	call set_freq_tx
+	disable enable_white
+	enable encode_fec0
+	enable is_tx
+//call ice_break
+	fetcht 1,mem_fcc_mod
+	copy temp,radio_ctrl
+	fetch 1,mem_fcc_data
+	store 1,core_tx_test_mode
+	beq 0,fcc_auth_tx_data	
+test_tx_carrier_loop:
+	bpatch patch0e_7,mem_patch0e
+	fetch 1,mem_fcc_data_length
+	copy pdata,loopcnt
+	arg mem_pn9,contr
+pnloop_carrier:
+	ifetch 1,contr
+	inject mod,8
+	loop pnloop_carrier
+	
+	fetch 2, mem_fcc_config_cb
+	call callback_func
+	fetch FCC_PARA_LEN,mem_fcc_param
+	fetcht FCC_PARA_LEN,mem_fcc_param_new
+	isub temp,null
+	branch test_tx_carrier_loop,zero
+	branch fcc_auth_procedures
+
+pn9:
+	arg mem_pn9_size,loopcnt
+ 	arg mem_pn9,contw
+  	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
+	//copy temp,pdata
+	istoret 1,contw
+	 //   inject mod,8
+	loop pn9_loop
+	rtn
+
+
+
+
+fcc_le_enable:
+	bpatch patch0f_0,mem_patch0f
+	set0 mark_ble_lr,mark
+	jam 0x03,0x8901
+	jam 0x84,0x8920
+	jam 0xa7,0x8925
+	jam 0x03,0x8930
+	//jam 0x58,0x8933
+	//jam 0x0a,0x8934
+	jam 0x40,0x8937
+	jam 0x85,0x8a6d
+	jam 0x89,core_rx_bq_cfg0
+	fetch 1,mem_le_mode
+	rtnbit1 mark_ble_2M
+	jam 0x01,0x8901
+	jam 0x80,0x8920
+	jam 0x05,0x8a6d
+	jam 0x09,core_rx_bq_cfg0
+//	rtnbit0 mode_lr
+	set1 mark_ble_lr,mark
+	jam 0x05,0x8901
+	jam 0x24,0x8930
+	jam 0x0a,0x8934
+    	rtn
+
+fcc_shutdown_radio:
+	bpatch patch0f_1,mem_patch0f
+	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
+	call fcc_set_sync_on
+	jam 0,core_syn_en
+	jam 0x10,core_rf_ldo_en0
+	jam 0,core_rf_ldo_en1	
+	rtn		
+fcc_test_ble_bt_tx_off:
+	branch fcc_shutdown_radio
+	
+pnloop_stable:
+	ifetch 1,contr
+	inject mod,8
+	loop pnloop_stable
+	call fcc_test_ble_bt_tx_off
+	enable swfine
+	arg 0x350,stop_watch
+stable_stop:
+	branch fcc_auth_procedures,timeout
+
+	fetch 2, mem_fcc_config_cb
+	call callback_func
+	fetch FCC_PARA_LEN,mem_fcc_param
+	fetcht FCC_PARA_LEN,mem_fcc_param_new
+	isub temp,null
+	branch stable_stop,zero
+	call fcc_test_ble_bt_tx_off
+	branch fcc_auth_procedures
+
+fcc_set_sync_on:
+	bpatch patch0f_2,mem_patch0f
+	jam 0x5,modem_en
+	nop 2
+	jam 0x0,modem_en					/* if called from tx or rx */
+	jam 0xaa,core_rf_ldo_cfg4
+	jam 0xaa,core_rf_ldo_cfg5
+	jam 0x15,core_rf_ldo_cfg6
+	jam 0xf8,core_rf_ldo_en0    //rom 0x78------ldo en
+
+	//rom
+//	fetch 1,core_clkpll_cfg6
+//	set1 7,pdata
+//	store 1,core_clkpll_cfg6
+	
+	jam 4,core_rf_ldo_en1
+	nop 120
+	jam 0x7a,core_syn_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
+	jam 0x78,core_rf_ldo_en0
+	//rom
+//	fetch 1,core_clkpll_cfg6
+//	set0 7,pdata
+//	store 1,core_clkpll_cfg6	
+	jam 0,core_syn_cal_ctrl
+	rtn
+
+
+fcc_auth_rx_start:
+	call fcc_test_ble_rx_on
+fcc_test_rx_loop:
+	bpatch patch0f_3,mem_patch0f
+//	call hci_rx_packet
+//	call p_interface_for_usb_cmd
+	fetch 2, mem_fcc_config_cb
+	call callback_func
+	fetch FCC_PARA_LEN,mem_fcc_param
+	fetcht FCC_PARA_LEN,mem_fcc_param_new
+	isub temp,null
+	branch fcc_test_rx_loop,zero
+	branch fcc_auth_procedures
+fcc_test_ble_rx_on:
+	bpatch patch0f_4,mem_patch0f
+	call fcc_test_ble_bt_tx_off	//close tx
+	call set_freq_rx
+	setarg param_pll_setup
+	call sleep
+	branch rf_rx_enable
+endif
+
+
+
+
+
+
+
+
+
+
+
Index: program/g24_protocol_stack/24g.prog
===================================================================
--- /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/program/g24_protocol_stack/24g.prog	(nonexistent)
+++ /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/program/g24_protocol_stack/24g.prog	(working copy)
@@ -0,0 +1,566 @@
+
+
+g24_dispatch:
+	bpatchx patch26_0,mem_patch26
+	bmark1 mark_24g_rxmode,g24_receive_dispatch
+	branch g24_transmit_dispatch
+
+
+/****************************g24 base transceiver start********************************/
+
+g24_prep:
+	bpatchx patch26_1,mem_patch26
+	disable enable_crc
+	disable enable_white
+	setarg 0x555555
+	iforce crc24_init
+	fetch 1,mem_24g_ch
+	branch le_prep_next
+
+g24_receive_packet:
+	bpatchx patch26_2,mem_patch26
+	fetch 1,mem_24g_rx_phy
+	call le_enable_phy_by_pdata
+	fetch 4,mem_24g_addr
+	iforce access
+	call set_sync_on
+	fetcht 1,mem_24g_ch
+	call le_rf_rx_enable
+g24_receive_rxon:
+	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
+	fetch 1,mem_24g_disable_fec1
+	nbranch g24_receive_skip_fec1,blank
+	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_hec_error,zero
+	bpatchx patch26_3,mem_patch26
+	disable user7
+	isolate1 mark_ble_lr,mark
+	call g24_lr_receive_pdu_len,true
+	branch g24_lr_len_error,user7
+	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_type_error,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
+	sub pdata,0x1f,null
+	nbranch g24_len_over_error,positive	//max payload: 32bytes
+	copy pdata,loopcnt
+	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
+	fetch 1,mem_24g_disable_fec1
+	nbranch g24_receive_skip_disable_fec1,blank
+	disable decode_fec1
+g24_receive_skip_next:
+	isolate1 mark_24g_rxmode,mark
+	call save_rssi_dec,true
+	branch g24_crc_error,crc_failed
+	call rf_debug_rx_crc_line	//L
+	bpatchx patch26_4,mem_patch26
+	enable user3
+	call le_match_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
+
+g24_receive_skip_disable_fec1:
+	disable decode_fec0
+	branch g24_receive_skip_next
+	
+
+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,g24_lr_receive_pdu_norssi
+	branch enable_user7,blank
+	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:
+	jam ERR_SYNC_TO,mem_24g_off_type
+	isolate1 mark_24g_rxmode,mark
+	call rssi_noise,true
+g24_end_of_packet:
+	bpatchx patch26_5,mem_patch26
+	call le_disable
+	disable encode_fec1
+	disable decode_fec1
+	branch end_of_packet
+
+g24_hec_error:
+	jam ERR_HEC,mem_24g_off_type
+	branch g24_end_of_packet
+
+g24_lr_len_error:
+	jam ERR_LR_LEN,mem_24g_off_type
+	branch g24_end_of_packet
+
+g24_type_error:
+	jam ERR_TYPE,mem_24g_off_type
+	branch g24_end_of_packet
+
+g24_len_over_error:
+	jam ERR_LEN_OVER,mem_24g_off_type
+	branch g24_end_of_packet
+
+g24_crc_error:
+	jam ERR_CRC,mem_24g_off_type
+	branch g24_end_of_packet
+
+g24_set_freq_tx:
+	call set_sync_on
+	fetcht 1,mem_24g_ch
+	branch set_freq_tx
+
+g24_transmit:
+	bpatchx patch26_6,mem_patch26
+	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:
+	bpatchx patch26_7,mem_patch26
+	bmark1 mark_ble_lr,g24_transmit_nolr
+	fetch 1,mem_24g_disable_fec1
+	nbranch g24_transmit_nolr,blank
+	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
+	fetch 1,mem_24g_disable_fec1
+	nbranch g24_transmit_skip_disable_fec1,blank
+	disable encode_fec1
+g24_transmit_skip_disable_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:
+	bpatchx patch27_0,mem_patch27
+	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
+	bpatchx patch27_1,mem_patch27
+//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:
+	bpatchx patch27_2,mem_patch27
+//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:
+	bpatchx patch27_3,mem_patch27
+	fetcht 1,mem_24g_current_ch_number
+	call g24_ch_map_size
+	storet 1,mem_24g_current_ch_number
+	rtn
+
+g24_ch_map_size:
+	bpatchx patch27_4,mem_patch27
+	call g24_ch_calc
+	increase 1,temp
+	and_into 3,temp //map size =4
+	rtn
+	
+g24_ch_calc:
+	bpatchx patch27_5,mem_patch27
+	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
+	bpatchx patch27_6,mem_patch27
+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:
+	bpatchx patch27_7,mem_patch27
+	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
+
+
+
+//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
+g24_chmap_param_init:
+	bpatchx patch28_0,mem_patch28
+	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_24g_ch_map_update
+	rtn blank
+	arg mem_24g_ch_update_map1,contr
+	arg mem_24g_ch_map1,contw
+	branch memcpy16
+
+
+
+//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
+g24_chamap_param_update:
+	bpatchx patch28_1,mem_patch28
+	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
+	jam 1,mem_24g_ch_map_update
+	rtn
+
+
+g24_rx_window_init:
+	bpatchx patch28_2,mem_patch28
+	arg 0x6978,temp
+	bmark1 mark_24g_rxmode,g24_rx_window_store
+	arg 0x12c0,temp
+	fetch 1,mem_24g_rx_phy
+	bbit0 2,g24_rx_window_store	//uncoded phy
+	arg 0x2ee0,temp
+g24_rx_window_store:	
+	storet 2,mem_24g_rx_window
+	rtn
+
+g24_enable_1M:
+	jam 0x01,mem_24g_rx_phy
+	jam 0x01,mem_24g_tx_phy
+	rtn
+
+g24_enable_2M:
+	jam 0x02,mem_24g_rx_phy
+	jam 0x02,mem_24g_tx_phy
+	rtn
+	
+//g24_enable_coded_s2:
+//	jam 0x04,mem_24g_rx_phy
+//	jam 0x04,mem_24g_tx_phy
+//	rtn
+
+//g24_enable_coded_s8:
+//	jam 0x84,mem_24g_rx_phy
+//	jam 0x84,mem_24g_tx_phy
+//	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
===================================================================
--- /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/program/g24_protocol_stack/24g_pair.prog	(nonexistent)
+++ /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/program/g24_protocol_stack/24g_pair.prog	(working copy)
@@ -0,0 +1,423 @@
+
+
+g24_pair_param_init:
+	bpatchx patch28_3,mem_patch28
+	jam 0x4e,mem_24g_pair_ch
+	setarg 0x101520
+	store 3,mem_24g_pair_addr
+	setarg 0x05
+	istore 1,contw
+	rtn
+
+
+
+/****************************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 patch28_4,mem_patch28
+	jam DEFAULT_24G_DEVICE,mem_24g_reconn_type
+	fetch 2,mem_24g_pair_count
+	increase 1,pdata
+	store 2,mem_24g_pair_count
+	fetch 1,mem_24g_pair_count
+	and pdata,0xff,pdata
+	nrtn blank
+	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
+	nrtn sync
+	nrtn user3
+	call g24_txbuf_clear
+	call g24_ackpayload_parse
+	bpatchx patch28_5,mem_patch28
+	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_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 1,mem_24g_device1_bind_disable
+	store 1,mem_24g_device2_bind_disable
+	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:
+	bpatchx patch28_6,mem_patch28
+	call g24_rx_interrupt_clear
+	call g24_receive_packet
+	nbranch g24_rx_interrupt_clear,user3
+	call g24_bind_data_parse
+	call g24_transmit_ack
+	call g24_bind_device_status_check
+	call dongle_kb_bind_soft_reset
+	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
+	arg mem_24g_rxbuf,contr
+	arg mem_24g_rxdata_temp,contw
+	call memcpy8
+	bpatchx patch28_7,mem_patch28
+	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
+	rtn
+
+
+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:
+	fetch 1,mem_24g_device1_bind_disable
+	nrtn blank
+	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_24g_lap
+	store 6,mem_24g_bind_payload+2
+	rtn
+
+g24_bind_first_step_device2:
+	fetch 1,mem_24g_device2_bind_disable
+	nrtn blank
+	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_24g_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_disable
+	nrtn blank
+	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_disable
+	nrtn blank
+	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_disable
+	nrtn blank
+	fetch 1,mem_24g_device1_bind_step
+	beq 2,g24_bind_dvc1_step_success
+	rtn
+g24_bind_dvc1_step_success:
+	jam 1,mem_24g_device1_bind_disable
+	call g24_binding_dvc1_living	//works on auto pair only
+	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_disable
+	nrtn blank
+	fetch 1,mem_24g_device2_bind_step
+	bne 0,g24_bind_dvc2_step_success
+	rtn
+g24_bind_dvc2_step_success:
+	jam 1,mem_24g_device2_bind_disable
+	call g24_binding_dvc2_living	//works on auto pair only
+	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
+	branch dongle_g24_store_dvc2_bind_flag
+
+g24_binding_device_check:	//works on auto pair
+	fetch 1,mem_24g_work_mode
+	rtnne DONGLE_BIND
+	fetch 1,mem_24g_pair_mode
+	nrtn blank
+	fetch 1,mem_24g_rxbuf+3
+	beq DATATYPE_DEVICE1,g24_binding_dvc1_status	//bit0
+	beq DATATYPE_DEVICE2,g24_binding_dvc2_status	//bit1
+	rtn
+g24_binding_dvc1_status:
+	fetch 1,mem_24g_bind_device_living
+	rtnbit0 0
+disable_user3:
+	disable user3
+	rtn 
+g24_binding_dvc2_status:
+	fetch 1,mem_24g_bind_device_living
+	rtnbit0 1
+	branch disable_user3
+
+g24_binding_dvc1_living:
+	fetch 1,mem_24g_pair_mode
+	nrtn blank
+	fetch 1,mem_24g_bind_device_living
+	or_into 0x01,pdata
+	store 1,mem_24g_bind_device_living
+	rtn
+
+g24_binding_dvc2_living:
+	fetch 1,mem_24g_pair_mode
+	nrtn blank
+	fetch 1,mem_24g_bind_device_living
+	or_into 0x02,pdata
+	store 1,mem_24g_bind_device_living
+	rtn
+
+
+g24_bind_device_status_check:
+	fetch 1,mem_24g_bind_device_status
+	rtn blank
+g24_bind_device_status:
+	fetch 1,mem_24g_rxdata_temp+3
+	beq DATATYPE_DEVICE1,g24_binding_dvc1_living
+	beq DATATYPE_DEVICE2,g24_binding_dvc2_living
+	rtn
+
+
+
+/****************************g24 pair receiver end********************************/
+
+
+
+
+
+
+
+
+
+
+
+
+
Index: program/g24_protocol_stack/24g_receiver.prog
===================================================================
--- /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/program/g24_protocol_stack/24g_receiver.prog	(nonexistent)
+++ /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/program/g24_protocol_stack/24g_receiver.prog	(working copy)
@@ -0,0 +1,563 @@
+
+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:
+	bpatchx patch29_0,mem_patch29
+	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
+	bpatchx patch29_1,mem_patch29
+	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_receive_attemp	//reconn packet
+g24_rx_interrupt_clear:
+	bpatchx patch29_2,mem_patch29
+	arg mem_24g_rxbuf,contw
+	arg 66,loopcnt
+	branch clear_mem
+
+g24_data_receive_attemp:
+	call g24_bind_device_status		//works on auto pair only
+	branch g24_data_attemp
+
+g24_data_device1:
+	call g24_binding_dvc1_living	//works on auto pair only
+	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:
+	call g24_binding_dvc2_living	//works on auto pair only
+	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 G24_TIMER_NODATA,queue
+	branch timer_init
+
+
+
+/****************************g24 receiver mode switch start********************************/
+
+g24_mode_switch_init:
+	bpatchx patch29_3,mem_patch29
+	jam 1,mem_24g_mode_switch
+	jam 0,mem_24g_time_slice
+	jam 0xff,mem_24g_interval
+	branch g24_timer_init
+	
+g24_mode_switch_bind_work:
+	bpatchx patch29_4,mem_patch29
+	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_mode_B_S_switch_init:	//bind and search
+	fetch 1,mem_24g_B_S_mode_switch_disable
+	nrtn blank
+	fetch 1,mem_24g_mode_B_S_switch_exit
+	call g24_mode_B_S_switch_start,blank
+	fetch 1,mem_24g_mode_B_S_switch_init
+	rtnbit1 0
+	set1 0,pdata
+	store 1,mem_24g_mode_B_S_switch_init
+	jam 1,mem_24g_mode_B_S_switch
+	jam 0,mem_24g_B_S_time_slice
+	setarg 0
+	store 2,mem_24g_mode_B_S_switch_cnt
+	jam 0x60,mem_24g_interval	//30ms
+	branch g24_timer_init
+
+g24_mode_switch_bind_search:
+	bpatchx patch29_5,mem_patch29
+	fetch 1,mem_24g_work_mode
+	rtneq DONGLE_WORK
+	fetch 1,mem_24g_B_S_mode_switch_disable
+	nrtn blank
+	fetch 1,mem_24g_mode_B_S_switch_exit
+	nrtn blank
+	fetch 1,mem_24g_mode_B_S_switch
+	rtn blank
+	call g24_timer_check
+	nrtn user
+	fetch 2,mem_24g_mode_B_S_switch_cnt
+	increase 1,pdata
+	store 2,mem_24g_mode_B_S_switch_cnt
+	arg 0x7d0,temp	//1min
+	isub temp,null
+	branch g24_mode_B_S_switch_exit,positive
+	call g24_bind_mode_continue
+	fetch 1,mem_24g_B_S_time_slice
+	increase 1,pdata
+	and_into 1,pdata
+	store 1,mem_24g_B_S_time_slice
+	beq 0,g24_mode_switch_search
+	beq 1,g24_bind_mode_enable
+	rtn
+
+g24_mode_switch_search:
+	fetch 1,mem_24g_bind_mode_continue
+	nbranch g24_bind_mode_enable,blank
+	branch g24_search_mode_enable
+
+g24_mode_B_S_switch_exit:
+	jam 1,mem_24g_mode_B_S_switch_exit
+	branch g24_search_mode_enable
+
+g24_mode_B_S_switch_stop:
+	jam 0,mem_24g_mode_B_S_switch
+	rtn
+g24_mode_B_S_switch_start:
+	jam 1,mem_24g_mode_B_S_switch
+	rtn
+
+
+
+/****************************g24 receiver mode switch end********************************/
+
+
+
+
+/****************************g24 receiver work mode start********************************/
+
+g24_work_init:
+	bpatchx patch29_6,mem_patch29
+	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_24g_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 patch29_7,mem_patch29
+	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 patch2a_0,mem_patch2a
+	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
+
+	fetch 1,mem_24g_abort_packet
+	call g24_mode_B_S_switch_stop,blank	//works on auto pair only
+	
+	//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:
+	bpatchx patch2a_1,mem_patch2a
+	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_24g_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_24g_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 G24_TIMER_NODATA,queue
+	call timer_check
+	nrtn blank
+	jam 0,mem_24g_nodata_timer_enable
+	jam 0,mem_24g_bind_mode_continue
+	call g24_mode_B_S_switch_init	//works on auto pair only	
+	//no data for more than 100ms,then go to search
+g24_search_mode_enable:	
+	bpatchx patch2a_2,mem_patch2a
+	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:
+	bpatchx patch2a_3,mem_patch2a
+	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
===================================================================
--- /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/program/g24_protocol_stack/24g_reconn.prog	(nonexistent)
+++ /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/program/g24_protocol_stack/24g_reconn.prog	(working copy)
@@ -0,0 +1,171 @@
+
+/****************************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 patch2a_4,mem_patch2a
+	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_3DB,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_3DB,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
+	rtn blank
+	store 4,mem_24g_receiver_addr	
+g24_ch_syncword_crc8_init:	
+	call g24_update_addr_and_synccrc8
+	branch g24_ch
+
+
+g24_reconn_dispatch:
+	bpatchx patch2a_5,mem_patch2a
+	fetch 2,mem_24g_reconn_count
+	arg 0x01f8,temp
+	iand temp,pdata
+	branch g24_reconn_dispatch_next,blank
+	fetch 2,mem_24g_reconn_count
+	increase 1,pdata
+	store 2,mem_24g_reconn_count
+	rtn
+
+g24_reconn_dispatch_next:
+	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
+	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
+	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
+	jam BT_EVT_24G_ATTEMPT_SUCCESS,mem_fifo_temp
+	call ui_ipc_send_event
+g24_txbuf_clear:
+	bpatchx patch2a_6,mem_patch2a
+	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 9,pdata
+	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_reconn_device_3_0_addr,true
+	branch g24_pair_init_param
+
+/****************************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:
+	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:
+	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
===================================================================
--- /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/program/g24_protocol_stack/24g_rssi.prog	(nonexistent)
+++ /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/program/g24_protocol_stack/24g_rssi.prog	(working copy)
@@ -0,0 +1,112 @@
+
+/****************************g24 rssi general start********************************/
+
+rssi_store:
+	bpatchx patch2a_7,mem_patch2a
+	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:
+	bpatchx patch2b_0,mem_patch2b
+	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
+
+save_rssi_dec:
+	branch save_rssi
+//	branch rssi_hex2dec
+
+/****************************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_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
+
+
+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
===================================================================
--- /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/program/g24_protocol_stack/24g_transmitter.prog	(nonexistent)
+++ /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/program/g24_protocol_stack/24g_transmitter.prog	(working copy)
@@ -0,0 +1,381 @@
+
+
+g24_transmit_init:
+	fetch 4,mem_24g_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 patch2b_1,mem_patch2b
+	call g24_txdata_prep
+	nbranch g24_nodata_transmit,user
+g24_transmit_start:
+	call g24_transmit_process
+	call power_ctrl_start	
+	fetch 1,mem_device_option
+	beq dvc_op_mouse,mouse_24g_transmit_start
+g24_transmit_start_next:	
+	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
+	fetch 2,mem_cb_24g_transmit_short_sleep
+	branch callback_func
+
+g24_short_sleep:
+	bpatchx patch2b_2,mem_patch2b
+	call g24_lpm_wait
+	nrtn user
+	call g24_setgpio_lpm_before
+	call clear_wake
+	fetch 3,mem_24g_short_sleep_set
+	branch g24_long_seep2
+
+g24_long_sleep:
+	bpatchx patch2b_3,mem_patch2b
+	call g24_lpm_wait
+	nrtn user
+	call g24_setgpio_lpm_before
+	fetch 8,mem_24g_enter_hibernate
+g24_long_seep2:
+	call clk2lpo
+	storet 4,mem_sleep_counter
+	branch lpm_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:
+	setarg 0
+	store 1,mem_24g_retry
+	store 2,mem_24g_retransmit
+g24_transmit_loop:
+	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	
+	fetch 1,mem_device_option
+	sub pdata,dvc_op_mouse,null
+	call mouse_24g_transmit_callback,zero
+g24_transmit_no_ack:
+	call power_ctrl_pac_succ_incrs
+g24_transmit_next_packet:
+	call g24_txbuf_clear
+	fetch 1,mem_24g_pid
+	increase 1,pdata
+	store 1,mem_24g_pid
+	call g24_hop_enable_packet
+g24_transmit_abandon:
+	bpatchx patch2b_4,mem_patch2b
+	setarg 0
+	store 1,mem_24g_ensure
+	store 2,mem_24g_txfail_cnt
+	rtn
+
+g24_transmit_receive_ack:
+	bpatchx patch2b_5,mem_patch2b
+	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
+	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 1,mem_device_option
+	bne dvc_op_mouse,g24_retransmit0
+	fetch 1,mem_mouse_need_soft_reset
+	nrtn blank
+	call mouse_select_device_by_pb_button
+g24_retransmit0:	
+	fetch 1,mem_24g_abort_pac
+	nrtn blank
+	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_tx_attempt_fail
+	call g24_transmit_hop_process
+	fetch 2,mem_24g_retransmit
+	increase 1,pdata
+	store 2,mem_24g_retransmit	
+	branch g24_transmit_loop
+
+
+g24_ackpayload_parse:
+	bpatchx patch2b_6,mem_patch2b
+	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:
+	bpatchx patch2b_7,mem_patch2b
+	setarg 0
+	store 2,mem_24g_txfail_cnt
+	jam 1,mem_24g_attempt_fail_flag
+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 patch2c_0,mem_patch2c
+	fetcht 1,mem_24g_retry
+	fetch 1,mem_24g_fast_hop_count			// 125Hz=11  250Hz=5
+	isub temp,null
+	nbranch 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,g24_transmit_hop_process_4ms
+	fetch 1,mem_24g_retry
+	beq 6,g24_hop_ch_disable
+	beq 12,g24_hop_ch_disable
+	rtn	
+
+
+g24_transmit_hop_process_4ms:
+	fetch 1,mem_24g_retry
+	beq 3,g24_hop_ch_disable
+	beq 6,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
+	fetch 2,mem_cb_24g_transmit_long_sleep
+	branch callback_func
+
+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_lpm_wait:
+	bpatchx patch2c_1,mem_patch2c
+	enable user
+	call lpo_calibration
+	fetch 3,mem_clks_per_lpo
+	branch disable_user,blank
+	fetch 1,mem_lpm_mode
+	branch disable_user,blank
+g24_lpm_wait_next:
+	fetch 1,mem_24g_transmit_by_interrupt
+	beq G24_TX_TIMER_INT_ENABLE,disable_user
+	rtn
+
+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
===================================================================
--- /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/program/g24_protocol_stack/24g_txpower_ctrl.prog	(nonexistent)
+++ /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/program/g24_protocol_stack/24g_txpower_ctrl.prog	(working copy)
@@ -0,0 +1,95 @@
+
+/****************************g24 transmitter tx power start********************************/
+
+power_ctrl_start:
+	bpatchx patch2c_2,mem_patch2c
+	fetch 1,mem_power_ctrl_disable
+	nrtn blank
+	fetch 2,mem_ui_state_map
+	rtnbit1 UI_STATE_BLE_ADV
+	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
+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
+	jam 0,mem_power_ctrl_pac_succ_cnt
+power_ctrl_txpower_decrs:
+	fetcht 1,mem_rssi_avg_received
+	fetch 1,mem_rssi_dis_min_24g
+	bmark1 mark_24g,power_ctrl_txpower_decrs_next
+	fetch 1,mem_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_6DB,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/l2cap.prog
===================================================================
--- /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/program/l2cap.prog	(nonexistent)
+++ /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/program/l2cap.prog	(working copy)
@@ -0,0 +1,376 @@
+/************************************/
+/*initialize L2CAP related variables*/
+/************************************/
+l2cap_init:
+	branch l2cap_init_wake,wake
+	setarg mem_l2cap_xmem_end
+	arg mem_l2cap_xmem_start,contw
+	isub contw,loopcnt
+	call clear_mem
+l2cap_init_wake:	
+//	branch l2cap_lpm_load_txbuf
+	rtn
+	
+
+
+l2cap_check_map:
+//	call l2cap_malloc_is_fifo_full
+//	nrtn blank
+	bpatch patch0f_5,mem_patch0f
+	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
+
+
+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
+
+
+
+/*********************************************************/
+//char* malloc(short len)
+//input: rega -> len
+//rtn: regb -> pbuff;return from pdata
+//val: queue -> i
+//val: timeup -> buff_cnt
+/*********************************************************/
+
+
+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:
+	bpatch patch0f_6,mem_patch0f
+	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:
+	bpatch patch0f_7,mem_patch0f
+	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:
+	bpatch patch10_0,mem_patch10
+	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:
+	bpatch patch10_1,mem_patch10
+	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:
+	bpatch patch10_2,mem_patch10
+	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:
+	bpatch patch10_3,mem_patch10
+	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:
+	bpatch patch10_4,mem_patch10
+	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:
+	bpatch patch10_5,mem_patch10
+	fetch 3,mem_tx_fifo1
+	rtn
+
+
+/*********************************************************/
+//bool fifo_is_empty(void)
+//blank == 1: empty
+//blank == 0: not empty
+/*********************************************************/
+l2cap_malloc_is_fifo_empty:
+	bpatch patch10_6,mem_patch10
+	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:
+	bpatch patch10_7,mem_patch10
+	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_util_pdata_to_contw:
+	branch assert,blank
+	copy pdata,contw
+	rtn
+	
+
+l2cap_lpm_save_calc_len:
+	bpatch patch11_0,mem_patch11
+	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:
+	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
+	fetch 2,mem_l2cap_lpm_txbuf_ptr
+	copy contr,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:
+	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
+	copy contr,contw
+	fetch 2,mem_l2cap_lpm_txbuf_ptr
+	copy contw,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/patch.prog
===================================================================
--- /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/program/patch.prog	(nonexistent)
+++ /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/program/patch.prog	(working copy)
@@ -0,0 +1,577 @@
+
+//define G24_NEW_REVISION
+define SENSOR_ANGLE_ICE_SDIO
+
+	bbit1 8,pf_patch_ext
+ifdef SENSOR_ANGLE_ICE_SDIO
+	beq patch06_7,p_mouse_sensor_set_angle
+endif
+	beq patch07_5,p_mouse_setgpio_hibernate
+	beq patch08_6,p_mouse_3io6key_check
+	beq patch09_4,p_mouse_priority_bb_event
+	beq patch09_6,p_mouse_bb_event_timer
+	beq patch0a_2,p_mouse_store_device_info
+	beq patch0b_2,p_mouse_24g_package_data
+	beq patch0b_6,p_mouse_ui_led_off_static
+	beq patch0b_7,p_mouse_ui_led_on_static
+	beq patch0e_0,p_app_init
+	beq patch1c_3,p_le_enable_phy_by_pdata
+	branch assert
+	
+pf_patch_ext:
+ifdef G24_NEW_REVISION
+	beq patch2b_1,p_g24_transmit_no_interrupt
+endif
+	beq patch2c_1,p_g24_lpm_wait
+	rtneq patch3f_7
+	branch assert
+
+
+
+p_app_init:
+p_mouse_init:
+	jam 0x73,core_spid_ctrl
+	call enable_authrom
+	call p_mouse_setting_config
+	call mouse_init_sunt
+	rtn wake
+	call mouse_le_name_load		//config tool
+	call mouse_dpi_config
+	call mouse_drawing_optima_init
+	call p_mouse_cb_fuction
+	branch mouse_init+8
+
+
+p_mouse_setting_config:
+	rtn wake
+	call mouse_setting_config
+	rtnbit0 MOUSE_ENABLE_OTP
+p_mouse_load_otp_info_check:
+	call p_mouse_read_otp_dpi
+	call p_mouse_read_otp_24g_addr
+p_mouse_otp_load_app_initflag:
+	arg 2,temp
+	arg OTP_OFFSET_APP_INITLAG,pdata
+	arg mem_store_flag,rega
+	call otpd_read_data_with_pwr_operation
+
+	fetch 2,mem_store_flag
+	arg EEPROM_INIT_FLAG,temp
+	isub temp,null
+	branch p_mouse_load_device_info,zero
+	call mouse_app_initflag_check+4
+p_mouse_otp_store_app_initflag:
+	arg 2,loopcnt
+	arg mem_store_flag,rega
+	arg OTP_OFFSET_APP_INITLAG,pdata
+	branch otp_write
+
+p_mouse_load_device_info:
+	arg OTP_OFFSET_DPI,pdata
+	call p_mouse_read_otp_dpi_common			
+	fetch 1,mem_mouse_dpi_temp
+	call p_mouse_load_default_dpi,blank
+	jam MODE_24G_DEVICE,mem_device_flag
+	branch mouse_load_device_info+1
+
+p_mouse_load_default_dpi:
+	fetch 1,mem_config_sensor_dpi
+	store 1,mem_mouse_dpi
+	rtn
+
+
+
+p_mouse_ui_led_off_static:
+	copy temp,pdata
+	rtn blank
+	rtneq GPIO_DISABLE
+	branch mouse_ui_led_off_static+1
+
+p_mouse_ui_led_on_static:
+	copy temp,pdata
+	rtn blank
+	rtneq GPIO_DISABLE
+	branch mouse_ui_led_on_static+1
+
+ifdef SENSOR_ANGLE_ICE_SDIO
+p_mouse_sensor_set_angle:
+	fetch 1,mem_mouse_ice_sdio_for_sensor_angle
+	branch mouse_sensor_set_angle+1,blank
+	fetch 1,mem_sensor_angle_default
+	store 1,mem_config_sensor_angle
+	fetch 1,mem_select_sensor_angle_gpio
+	rtneq GPIO_DISABLE
+	call lpm_write_ice_disable
+	fetch 1,mem_select_sensor_angle_gpio
+	arg gpcfg_output_low,temp
+ 	call gpio_config_function_int
+	fetch 1,mem_mouse_reuse_2ice_gpio
+	arg gpcfg_output_low,temp
+ 	call gpio_config_function_int
+ 	fetcht 1,mem_mouse_sensor_sdio_gpio
+	call mouse_gpio_config_input_pu
+	fetcht 1,mem_mouse_sensor_sdio_gpio
+	call gpio_get_bit
+	call mouse_sensor_switch_angle,true
+	call mouse_gpio_config_input_pd
+	fetcht 1,mem_mouse_sensor_sdio_gpio
+	call gpio_config_input
+	call lpm_write_ice_enable
+p_ice_gpio_set_float:
+ 	fetcht 1,mem_select_sensor_angle_gpio
+	call gpio_set_high_impedance
+	fetcht 1,mem_mouse_reuse_2ice_gpio
+	branch gpio_set_high_impedance
+endif
+	
+p_mouse_cb_fuction:
+ifdef G24_NEW_REVISION
+	setarg p_mouse_24g_short_sleep
+else
+	setarg mouse_24g_short_sleep
+endif	
+	store 2,mem_cb_24g_transmit_short_sleep
+	setarg p_mouse_24g_long_sleep
+	store 2,mem_cb_24g_transmit_long_sleep
+	branch mouse_cb_fuction+4
+
+p_mouse_24g_long_sleep:
+	call g24_lpm_wait
+	nrtn user
+	fetch 1,mem_24g_device_led_status
+	nrtn blank
+	jam 1,mem_mouse_24g_long_sleep_flag
+	branch mouse_24g_long_sleep+4
+
+p_mouse_24g_short_sleep_clear_wake:
+	call clear_wake
+	branch lpm_write_gpio_wakeup
+
+p_mouse_24g_package_data:
+	call mouse_motion
+	nrtn user
+	fetch 1,mem_mouse_24g_long_sleep_flag
+	jam 0,mem_mouse_24g_long_sleep_flag
+	ncall p_mouse_24g_short_sleep_clear_wake,blank	
+	branch mouse_24g_package_data+4
+	
+	
+ifdef G24_NEW_REVISION		
+p_mouse_24g_short_sleep:
+	fetch 1,mem_mouse_sleep_deal_type
+	branch g24_short_sleep,blank
+	call g24_lpm_wait
+	nrtn user
+	fetch 1,mem_24g_device_led_status
+	nrtn blank
+	fetch 1,mem_mouse_24g_sleep_miss
+	jam 0,mem_mouse_24g_sleep_miss
+	sub pdata,0,null
+	nbranch p_mouse_24g_short_sleep_last_miss,zero
+	fetcht 2,mem_24g_retransmit
+	sub temp,0,null
+	branch p_mouse_24g_short_sleep_default,zero
+
+	fetch 4,mem_mouse_24g_tx_time_last_delt
+	branch p_mouse_24g_short_sleep_default,blank
+p_mouse_24g_short_sleep_last_miss:	
+	fetcht 4,mem_mouse_24g_sleep_miss_temp
+	isolate1 31,temp
+	branch p_mouse_24g_sub_miss_temp,true
+	fetch 4,mem_mouse_24g_tx_time_last_delt
+	iadd temp,pdata	
+p_mouse_24g_short_sleep_notify:
+	fetcht 4,mem_mouse_24g_tsniff
+	isub temp,temp
+	storet 4,mem_mouse_24g_sleep_miss_temp
+	nbranch p_mouse_24g_short_sleep_long,positive
+	fetch 3,mem_24g_short_sleep_set
+	isub temp,pdata
+	nbranch mouse_24g_short_sleep_2,positive
+	arg 0x600,temp
+	isub temp,null
+	nbranch mouse_24g_short_sleep_2,positive
+p_mouse_24g_short_sleep2:
+//	call clk2lpo
+//	storet 4,mem_sleep_counter
+//p_lpm_short_sleep:
+//	fetch 1,mem_fcomp_div
+//	beq XTAL_16M,p_lpm_short_sleep_skip_pll_set
+//	setarg 0
+//	store 3,core_clkpll_ctrl0// close pll
+//p_lpm_short_sleep_skip_pll_set:
+//	jam 250,mem_mouse_24g_tx_time_offset
+//	branch lpm_sleep
+	jam 250,mem_mouse_24g_tx_time_offset
+	branch mouse_24g_short_sleep3
+
+
+
+p_mouse_24g_short_sleep_default:
+	call mouse_24g_miss_temp_clear
+	fetch 3,mem_24g_short_sleep_set
+	branch p_mouse_24g_short_sleep2
+
+p_mouse_24g_short_sleep_long:
+	sub temp,0,temp
+	fetch 3,mem_24g_short_sleep_set
+	iadd temp,pdata
+	branch p_mouse_24g_short_sleep2
+
+p_mouse_24g_sub_miss_temp:
+	arg -1,pdata
+	isub temp,regext
+	fetch 4,mem_mouse_24g_tx_time_last_delt
+	isub regext,pdata
+	branch p_mouse_24g_short_sleep_notify
+
+
+p_g24_transmit_no_interrupt:
+	call g24_txdata_prep
+	nbranch p_g24_nodata_transmit,user
+p_g24_transmit_start:
+	call p_g24_transmit_process
+	branch g24_transmit_start+1
+
+p_g24_nodata_transmit:
+	fetch 1,mem_24g_abort_pac
+	call p_g24_send_abort_packet,blank
+	branch g24_nodata_transmit+2
+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:
+	setarg 0
+	store 1,mem_24g_retry
+	store 2,mem_24g_retransmit
+p_g24_transmit_loop:
+	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_24g_transmit_callback
+	branch g24_transmit_no_ack
+
+p_mouse_24g_transmit_callback:
+	call p_mouse_24g_send_time_check
+	branch mouse_wakeup_24g
+
+p_g24_retransmit:
+	fetch 1,mem_mouse_need_soft_reset
+	nrtn blank
+	call mouse_select_device_by_pb_button
+p_g24_retransmit0:	
+	fetch 1,mem_24g_abort_pac
+	nrtn blank
+	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_tx_attempt_fail
+	call g24_transmit_hop_process
+	fetch 2,mem_24g_retransmit
+	increase 1,pdata
+	store 2,mem_24g_retransmit	
+	branch p_g24_transmit_loop
+
+p_mouse_24g_send_time_check:
+	fetch 1,mem_mouse_sleep_deal_type
+	rtn blank
+	fetch 1,mem_24g_transmit_by_interrupt
+	beq G24_TX_TIMER_INT_ENABLE,mouse_24g_send_timer_first
+	fetch 1,mem_mouse_24g_tx_count
+	branch mouse_24g_send_timer_first,blank
+	copy clkn,pdata
+	fetcht 6,mem_mouse_24g_tx_time_last
+	store 6,mem_mouse_24g_tx_time_last
+	call clk_diff_rt
+	store 4,mem_mouse_24g_tx_time_last_delt
+
+	fetch 1,mem_mouse_24g_sleep_miss
+	nrtn blank
+	fetch 2,mem_24g_retransmit
+	nrtn blank
+	fetch 4,mem_mouse_24g_sleep_miss_temp
+	nrtn blank
+	fetch 4,mem_mouse_24g_tx_time_last_delt
+	fetcht 4,mem_mouse_24g_tsniff
+	lshift temp,temp
+	isub temp,null
+	branch mouse_24g_send_time_long_wake,positive
+	jam 210,mem_mouse_24g_tx_time_offset	//rom bugfix:increase -40,temp
+	call mouse_24g_send_time_check_1
+	jam 250,mem_mouse_24g_tx_time_offset
+	rtn
+endif
+
+p_le_enable_phy_by_pdata:
+	copy temp,pdata
+	bbit1 BIT_LE_2M_PHY,p_le_enable_2M
+	branch le_enable_phy_by_pdata+3
+p_le_enable_2M:
+	jam 0x89,core_rx_bq_cfg0	//bit7 set1,improve 2M rx sensitivity
+	branch le_enable_2M
+	
+p_mouse_setgpio_hibernate:
+	call mouse_setgpio_hibernate+1
+	fetch 1,mem_mouse_logo_enable_gpio0
+	beq 1,p_mouse_setgpio_hibernate_next
+	jam 0x80,0x8070
+p_mouse_setgpio_hibernate_next:
+	fetch 1,mem_gpio_wakeup_low+1	//enable ice wakeup
+	set1 5,pdata
+	store 1,mem_gpio_wakeup_low+1
+	call lpm_write_gpio_wakeup
+	branch mouse_1io2led_all_off
+
+
+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_sensor_shutdown_flag
+	nrtn blank
+	branch g24_lpm_wait_next
+
+
+p_mouse_3io6key_check:
+	copy regc,pdata
+	store 1,mem_mouse_key_status
+	lshift pdata,pdata
+	copy pdata,regb
+	copy temp,regc
+	call mouse_gpio_config_input_pd
+	copy regc,temp
+	call gpio_get_bit
+	nsetflag true,0,regb
+	call mouse_check_press
+	branch mouse_check_key_connect_gnd_1
+	
+p_mouse_priority_bb_event:
+	copy regc,pdata
+	beq BT_EVT_24G_ATTEMPT_SUCCESS,p_mouse_24g_attempt_success
+	beq BT_EVT_24G_ATTEMPT_FAIL,p_mouse_24g_attempt_fail
+	branch mouse_priority_bb_event+2
+
+p_mouse_24g_attempt_success:
+	fetch 4,mem_24g_addr
+	store 4,mem_24g_receiver_addr
+	store 4,mem_mouse_24g_addr		// if need store 24g address to eeprom/flash,need get mem_24g_addr
+	call g24_ch_syncword_crc8_init
+	call mouse_device_poweron_led_config
+	call mouse_no_data_timer_init
+	call mouse_init_sensor_reset
+	jam 0,mem_mouse_long_mult_flag
+	jam 0,mem_24g_conn_sm
+	jam 0,mem_24g_reconn_type
+	fetcht 4,mem_24g_receiver_addr
+	branch mouse_24g_attempt_success+11
+	
+p_mouse_24g_attempt_fail:
+	fetch 1,mem_24g_attempt_fail_flag
+	nbranch mouse_24g_hibernate_set,blank
+	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
+	branch mouse_24g_attempt_fail_enter_hibernate_next
+	
+p_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_next
+	fetch 1,mem_device_number
+	beq 1,mouse_24g_attempt_fail_enter_hibernate_next		//24g first mode and only 2.4g device
+	branch mouse_24g_first_bluetooth_reconnect
+
+p_mouse_reconn_dongle_attempt_fail:
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	bbit0 MOUSE_ENABLE_24G_FIRST_AUTO_PAIRING,mouse_24g_attempt_fail_enter_hibernate_next
+	bbit1 MOUSE_ENABLE_EEPROM,mouse_24g_attempt_fail_enter_hibernate_next
+	bbit1 MOUSE_ENABLE_FLASH,mouse_24g_attempt_fail_enter_hibernate_next
+	branch mouse_24g_start_auto_pair+1
+	
+p_mouse_bb_event_timer:
+	call mouse_adc_read
+	call mouse_low_voltage_led_timer
+	//24g
+	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
+	call mouse_led_multi_timer
+	call mouse_logo_led_on_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 p_mouse_check_direct_timeout_timer
+	branch mouse_bb_event_timer+15
+
+p_mouse_check_direct_timeout_timer:
+	arg mem_mouse_direct_timer,regc
+	arg mouse_check_direct_timeout,regb
+	call timer_single_step
+	branch mouse_check_direct_timeout_timer+3
+
+
+p_mouse_store_device_info:
+	call mouse_store_device_info+1
+	rtnbit0 MOUSE_ENABLE_OTP 
+p_mouse_store_otp_device_info:
+	call p_mouse_otp_store_dpi
+p_mouse_otp_store_24g_addr:
+	arg OTP_OFFSET_24G_ADDR,pdata
+	copy pdata,regb
+p_mouse_otp_store_24g_addr_loop:
+	call p_mouse_read_otp_24g_addr_common
+	fetch 4,mem_mouse_24g_addr_temp
+	branch p_mouse_24g_addr_store,blank	
+	store 4,mem_mouse_24g_addr_last
+	increase 4,regb
+	arg OTP_OFFSET_24G_ADDR_END,pdata
+	isub regb,null
+	nrtn positive	//if read end,retention last value
+	copy regb,pdata
+	branch p_mouse_otp_store_24g_addr_loop
+
+p_mouse_24g_addr_store:
+	fetch 4,mem_mouse_24g_addr_last
+	fetcht 4,mem_mouse_24g_addr
+	isub temp,null
+	rtn zero
+	arg 4,loopcnt
+	arg mem_mouse_24g_addr,rega
+	copy regb,pdata
+	branch otp_write
+
+
+p_mouse_otp_store_dpi:
+	arg OTP_OFFSET_DPI,pdata
+	copy pdata,regb
+p_mouse_otp_store_dpi_loop:
+	call p_mouse_read_otp_dpi_common
+	fetch 1,mem_mouse_dpi_temp
+	branch p_mouse_dpi_store,blank
+	store 1,mem_mouse_dpi_last
+	increase 1,regb
+	arg OTP_OFFSET_DPI_END,pdata
+	isub regb,null
+	nrtn positive
+	copy regb,pdata
+	branch p_mouse_otp_store_dpi_loop
+	
+p_mouse_dpi_store:
+	fetch 1,mem_mouse_dpi_last
+	and pdata,0xf0,pdata
+	branch p_mouse_dpi_store_next,blank
+	fetch 1,mem_mouse_dpi
+	store 1,mem_mouse_otp_dpi_value
+p_mouse_dpi_store_end:	
+	arg 1,loopcnt
+	copy regb,pdata
+	arg mem_mouse_otp_dpi_value,rega
+	branch otp_write
+
+p_mouse_dpi_store_next:
+	fetch 1,mem_mouse_dpi_last
+	fetcht 1,mem_mouse_dpi
+	isub temp,null
+	rtn zero
+	lshift4 temp,temp
+	iadd temp,pdata
+	store 1,mem_mouse_otp_dpi_value
+	
+	copy regb,pdata
+	arg OTP_OFFSET_DPI,temp
+	isub temp,null
+	branch p_mouse_dpi_store_end,zero
+	
+	increase -1,regb
+	branch p_mouse_dpi_store_end
+
+
+p_mouse_read_otp_dpi:
+	arg OTP_OFFSET_DPI,pdata
+	copy pdata,regb
+p_mouse_read_otp_dpi_loop:
+	call p_mouse_read_otp_dpi_common	
+	fetch 1,mem_mouse_dpi_temp
+	branch p_mouse_dpi_load,blank	
+	store 1,mem_mouse_dpi_last
+	increase 1,regb
+	arg OTP_OFFSET_DPI_END,pdata
+	isub regb,null
+	nbranch p_mouse_dpi_load,positive	//if read end,retention last value
+	copy regb,pdata
+	branch p_mouse_read_otp_dpi_loop
+
+p_mouse_read_otp_dpi_common:
+	arg 1,temp
+	arg mem_mouse_dpi_temp,rega
+	branch otpd_read_data_with_pwr_operation
+
+p_mouse_dpi_load:
+	fetch 1,mem_mouse_dpi_last
+	copy pdata,regc
+	and pdata,0xf0,pdata
+	branch p_mouse_dpi_load_next,blank
+	rshift4 pdata,pdata
+	branch p_mouse_dpi_load_end
+
+p_mouse_dpi_load_next:
+	copy regc,pdata
+p_mouse_dpi_load_end:
+	store 1,mem_mouse_dpi
+	rtn	
+
+p_mouse_read_otp_24g_addr:
+	arg OTP_OFFSET_24G_ADDR,pdata
+	copy pdata,regb
+p_mouse_read_otp_24g_addr_loop:
+	call p_mouse_read_otp_24g_addr_common
+	fetch 4,mem_mouse_24g_addr_temp
+	branch p_mouse_24g_addr_load,blank	
+	store 4,mem_mouse_24g_addr_last
+	increase 4,regb
+	arg OTP_OFFSET_24G_ADDR_END,pdata
+	isub regb,null
+	nbranch p_mouse_24g_addr_load,positive	//if read end,retention last value
+	copy regb,pdata
+	branch p_mouse_read_otp_24g_addr_loop
+
+p_mouse_read_otp_24g_addr_common:
+	arg 4,temp
+	arg mem_mouse_24g_addr_temp,rega
+	branch otpd_read_data_with_pwr_operation
+	
+
+p_mouse_24g_addr_load:
+	fetch 4,mem_mouse_24g_addr_last
+	store 4,mem_mouse_24g_addr
+	rtn
+
+
+
+
Index: program/peripherals.prog
===================================================================
--- /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/program/peripherals.prog	(nonexistent)
+++ /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/program/peripherals.prog	(working copy)
@@ -0,0 +1,2820 @@
+
+
+
+/* ===================== two wire SPI gpio ======================= */
+
+//pdata:gpio number
+twspi_reset:
+	bpatch patch11_1,mem_patch11
+	copy temp,pdata
+	and_into 0xff,pdata
+	sub pdata,GPIO_NUMBER+-1,null
+	nbranch assert,positive
+	arg core_gpio_conf,contw
+twspi_reset_next:
+	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
+
+
+
+twspi_disable:
+	fetch 1,core_spid_delay
+	and_into 0x7f,pdata
+	store 1,core_spid_delay
+	rtn
+
+twspi_enable:
+	fetch 1,core_spid_delay
+	or_into 0x80,pdata
+	store 1,core_spid_delay
+	rtn
+
+twspi_write:
+	branch spid_write_reg
+
+twspi_read:
+	branch spid_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 //length
+	branch read_fuction_zero,zero
+	copy regc,pc  //branch pc
+	
+read_fuction_zero:
+	isolate0 0,null  // always true
+	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:
+	call load_aes_reinit,user
+	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
+set_iv:
+	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_aes_reinit:
+	jam 0x0, core_ucode_ctrl
+	call aes_disable
+	branch aes_clear_data
+
+load_storage:
+	setarg 0
+	store 2,mem_queue	//data checksum
+	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
+	fetch 1,mem_ucode_status
+	rtnbit0 0           //rtn if load code fail
+load_storage_loop:
+	arg 6,temp
+	call get_block_header0
+	nbranch load_data_checksum_compare,zero
+	ifetch 2,contr
+	iforce rega
+	call read_function
+	call load_data_checksum_calc
+	branch load_storage_loop
+
+
+load_data_checksum_calc:
+	fetch 2,mem_queue
+	arg 6,loopcnt
+	arg mem_ucode_buf,contr
+	call cal_sum
+	fetchr loopcnt,2,mem_ucode_len
+	copy rega,contr
+	call cal_sum
+	store 2,mem_queue
+	rtn
+
+load_data_checksum_compare:
+	fetch 1,mem_load_check_sum
+	beq 0x5a,load_data_checksum_ok //skip check sum 
+	arg 0xaa55,rega
+	fetch 2,mem_ucode_buf
+	isub rega,null
+	nbranch load_data_checksum_compare_fail, zero
+	arg 0x55aa,rega
+	fetch 2,mem_ucode_len
+	isub rega,null
+	nbranch load_data_checksum_compare_fail, zero
+	fetch 2,mem_sched_addr
+	fetcht 2,mem_queue	//calc  sum
+	isub temp,null
+	nbranch load_data_checksum_compare_fail, zero
+load_data_checksum_ok:	
+	set1 15,rega
+	branch read_fuction_zero
+
+load_data_checksum_compare_fail:
+	jam 0,mem_ucode_status
+	rtn
+
+
+loadcode_lock:
+	fetch 2,core_ucode_flag
+	store 2,mem_ucode_device_flag
+	set0 lpmreg_ice_mode_bit,pdata
+	nrtn blank 	
+	
+	setarg OTP_OFFSET_DEVICE_FLAG 
+	arg mem_ucode_device_flag,rega
+	arg 2,temp
+	call otpd_read_data
+	
+	fetch 1,mem_ucode_ptr
+	rshift4 pdata,temp
+	fetch 1,mem_ucode_device_flag
+	lshift4 pdata,pdata
+	ior temp,pdata
+	store 1,mem_ucode_device_flag
+	branch app_lpm_peripheral_lock_check
+
+
+loadcode:
+	jam 0x25,core_clkoff			// disable debug uart
+	call clean_mem
+	disable user
+	jam 0,mem_ucode_status
+	call otp_read_pwr_on
+	call app_read_efuse_app_vsel	
+	setarg OTP_OFFSET_UCODE_FLAG 
+	arg mem_ucode_ptr,rega
+	arg 2,temp
+	call otpd_read_data
+	call loadcode_lock
+	setarg OTP_OFFSET_LOADCODE_DELAY
+	arg mem_load_delay ,rega
+	arg 2,temp
+	call otpd_read_data	
+
+	fetch 1,mem_ucode_device_flag
+	bbit0 OTP_UFLAG_AES, loadcode_otp
+	setarg OTP_OFFSET_UCODE_KEY
+	arg mem_ucode_keybuf,rega
+	arg 16,temp
+	call otpd_read_data
+	jam LOCK_OTP,core_misc_ctrl	// disable further read/write of key
+	set1 mark_otp_encrypt,mark	
+	arg mem_ucode_keybuf,contr
+	call load_key
+	enable user			// set user for aes
+
+loadcode_otp:
+	jam 0,mem_loadcode_times
+loadcode_otp_loop:
+	call loadcode_timeout
+	nbranch loadcode_error,positive	
+	call load_aes_reinit,user
+	fetch 2,mem_ucode_ptr
+	byteswap pdata,pdata
+	arg 0x7ff,temp
+	iand temp,pdata
+	branch loadcode_iic, zero  //no otp 
+	call otp_set_addr
+	arg otpd_read_code,regc
+	call get_iv,user
+	call load_storage
+	nbranch loadcode_iic,match
+	fetch 1,mem_ucode_status
+	compare 3,pdata,3
+	nbranch loadcode_otp_loop,true	// crc error, try again
+	call run_otp_code
+	
+loadcode_iic:
+	call otp_pwr_off
+	jam 0,mem_loadcode_times
+loadcode_iic_loop:	
+	call loadcode_timeout
+	nbranch loadcode_error,positive	
+	call iicd_load_gpio_init
+	call clear_eeprom_size_2k
+	fetch 1,mem_ucode_device_flag
+	bbit1 OTP_UFLAG_SKIP_EEP,loadcode_spi
+	call loadcode_iic_by_eeprom
+	nbranch loadcode_iic_eeprom_2k,match
+	fetch 1,mem_ucode_status
+	compare 3,pdata,3
+	nbranch loadcode_iic_loop,true		// crc error, try again
+	branch loadcode_spi
+	
+run_otp_code:
+	setarg 0x1ff //patch3f_7
+	arg 0,pc
+	rtn
+	
+loadcode_iic_eeprom_2k:
+	call set_eeprom_size_2k
+	fetch 1,mem_ucode_device_flag
+	bbit1 OTP_UFLAG_SKIP_EEP,loadcode_spi
+	call loadcode_iic_by_eeprom
+	nbranch loadcode_spi,match
+	fetch 1,mem_ucode_status
+	compare 3,pdata,3
+	nbranch loadcode_iic_loop,true		// crc error, try again
+	branch clear_key_buf
+	
+loadcode_spi:
+	jam 0,mem_loadcode_times
+loadcode_spi_loop:
+	call loadcode_timeout
+	nbranch loadcode_error,positive	
+	fetch 1,mem_ucode_device_flag
+	bbit1 OTP_UFLAG_SKIP_FLASH,clear_key_buf
+	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 clear_key_buf,match
+	fetch 1,mem_ucode_status
+	compare 3,pdata,3
+	nbranch loadcode_spi_loop,true		// crc error, try again	
+clear_key_buf:
+	setarg 0
+	store 8,mem_ucode_keybuf
+	store 8,mem_ucode_keybuf+8
+	force regidx_key,regext_index
+	call aes_clear
+	jam 0x21,core_clkoff		// enable debug uart
+	rtn
+
+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 2,mem_eeprom_wp_gpio
+	jam 1,mem_eeprom_scl_gpio
+	jam 0,mem_eeprom_sda_gpio
+	branch iicd_read_init_pin
+
+
+
+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
+
+
+
+//output: positive 1:continue load ;0:load timeout
+loadcode_timeout:
+	call loadcode_error_delay
+	fetch 1,mem_loadcode_times
+	increase 1,pdata
+	sub pdata,3,null
+	store 1,mem_loadcode_times	 
+	rtn
+	
+loadcode_error_delay:
+	fetch 1,mem_loadcode_times
+	rtn blank
+	fetch 1,mem_load_delay
+	rtn blank
+	copy pdata,loopcnt
+	branch delay_ms_wait
+	
+/*
+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
+//	call ice_break_disable_wdt
+	call ice_break
+	rtn
+	
+
+
+/* true flag is set into status,rega pointers to buf, */
+set_ucode_status:
+	fetch 1,mem_ucode_status
+	lshift pdata,pdata
+	setflag true,0,pdata
+	isolate0 15,rega  // load code if rega.15 = 1
+	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
+
+/* ===================== OTP ======================= */
+
+
+otp_prog_pwr_on:
+	jam 0x4,rfen_chgpump
+	jam 0x31,rfen_chgpump_ctrl1
+	jam 0x1,rfen_chgpump_ctrl2
+	branch otp_pwr_on
+
+otp_read_pwr_on:
+	jam 0xc,rfen_chgpump    
+	jam 0xfb,rfen_chgpump_ctrl1
+	jam 0x3,rfen_chgpump_ctrl2   
+
+otp_pwr_on:
+	store 2,mem_timeup
+	bpatch patch11_2,mem_patch11
+	jam 0xff,core_clkpll_ctrl1
+
+	fetch 1,core_rf_ldo_en1
+	store 1,mem_timeup+2
+	or_into 0x4,pdata
+	store 1,core_rf_ldo_en1
+
+	fetch 1,core_rf_ldo_cfg7
+	store 1,mem_timeup+3
+	
+	jam 0x11,core_rf_ldo_cfg7
+	
+	nop 1000
+	fetch 1,core_clkpll_ctrl2
+	or_into 0x1,pdata
+	store 1,core_clkpll_ctrl2
+	jam 0x03,core_clkpll_ctrl0
+	bpatch patch11_3,mem_patch11
+	fetch 1,rfen_chgpump
+	or_into 0xd0,pdata
+	store 1,rfen_chgpump
+	nop 6000  //delay 500us
+	fetch 1,rfen_chgpump
+	or_into 0x20,pdata
+	store 1,rfen_chgpump
+	nop 12000   //delay 1ms
+	fetch 2,mem_timeup
+	rtn
+	
+otp_pwr_off:
+	bpatch patch11_4,mem_patch11
+	jam 0x4,rfen_chgpump
+	jam 0x43,rfen_chgpump_ctrl1
+	jam 0x1,rfen_chgpump_ctrl2
+	fetch 1,core_clkpll_ctrl2
+	and_into 0xfe,pdata
+	store 1,core_clkpll_ctrl2
+	fetch 1,mem_timeup+2
+	store 1,core_rf_ldo_en1
+	fetch 1,mem_timeup+3
+	store 1,core_rf_ldo_cfg7
+	rtn
+
+
+otp_set_addr:
+	lshift3 pdata,pdata
+	store 2,core_otp_addr
+	jam 0,core_otpd_ctrl
+	rtn	
+
+/* pdata = otp address, rega pointers data, loopcnt is count */
+otp_write:
+	call otp_prog_pwr_on
+	call otp_set_addr
+	call otp_ce
+otp_program:
+	ifetcht 1,rega
+	increase 1,rega
+	force 0,queue
+otp_program_bit:
+	qisolate0 temp
+	branch otp_skip_0,true
+	fetch 1,core_otp_din
+	set1 6,pdata				/* din */
+	set1 7,pdata				/* dle */
+	store 1,core_otp_din
+	jam 0x02,core_otp_ctrl	/* web */
+	jam 0x82,core_otp_ctrl
+	set0 7,pdata				/* dle */
+	store 1,core_otp_din
+	jam 0x8a,core_otp_ctrl	/* pgmen */
+	nop 11
+	jam 0xca,core_otp_ctrl	/* vppen */
+	nop 33
+	jam 0x4a,core_otp_ctrl	/* web 2nd */
+	nop 200
+	jam 0xca,core_otp_ctrl	/* release web */
+	nop 22
+	jam 0x8a,core_otp_ctrl	/* release vppen */
+	nop 33
+	jam 0x82,core_otp_ctrl	/* release pgmen */
+	nop 1
+	jam 0x92,core_otp_ctrl	/* pgmvfy */
+	nop 10
+	jam 0xb2,core_otp_ctrl	/* readen */
+	fetch 1,core_otp_rdata
+	jam 0x92,core_otp_ctrl	/* release readen */
+	nop 1
+	jam 0x82,core_otp_ctrl	/* release pgmvfy */
+	qisolate0 pdata
+	branch otp_program_bit,true	/* program error */
+otp_skip_0:
+	fetch 2,core_otp_addr
+	increase 1,pdata
+	store 2,core_otp_addr
+	increase 1,queue
+	compare 8,queue,0xf
+	nbranch otp_program_bit,true
+	loop otp_program
+	jam 0x83,core_otp_ctrl	/* release ceb */
+	branch otp_pwr_off
+
+otp_ce:
+	jam 0x82,core_otp_ctrl	/* ceb */
+	nop 12
+	jam 0x80,core_otp_ctrl	/* rstn */
+	jam 0x82,core_otp_ctrl	/* release rstn */
+	nop 150					/* waiting for vdd25 stable */
+	rtn
+
+	/* rega points to data, temp is count */
+otpd_read_init:
+	call otp_ce
+	jam 0xa2,core_otp_ctrl	/* readen */
+	deposit rega
+	store 2,core_otpd_addr
+	set1 11,temp
+	isolate0 15,pdata
+	setflag true,15,temp
+	storet 2,core_otpd_len
+	jam otpd_start,core_otp_rdata
+	rtn
+
+otpd_wait_end:
+	fetch 1,core_dma_status
+	bbit0 otpd_done,otpd_wait_end
+	jam 0x83,core_otp_ctrl	/* release ceb */
+	rtn
+
+/* pdata=otp address, rega points to data, temp is count */
+otpd_read_data_with_pwr_operation:
+	bpatch patch11_5,mem_patch11
+	call otp_read_pwr_on
+	call otpd_read_data
+	branch otp_pwr_off
+
+	/* pdata=otp address, rega points to data, temp is count */
+otpd_read_data:
+	call otp_set_addr
+	call otpd_read_init
+	branch otpd_wait_end
+	
+
+
+/* rega pointers to buf, temp is length */
+otpd_read_code:	
+	call otp_read_pwr_on
+	fetch 2,core_current_otp_addr
+	store 2,core_otp_addr
+	call otpd_read_init
+	arg otpd_done,queue
+	call decrypt_code
+	call otpd_wait_end
+	isolate1 otpd_crcok,pdata	
+	call set_ucode_status
+	branch otp_pwr_off
+
+/* ===================== LOCK ======================= */
+
+//0x04: 3V3; 0x3A: 5V
+app_read_efuse_app_vsel:
+	setarg OTP_OFFSET_APP_VDD_SEL 
+	arg mem_lpm_ctrl3_app_vsel,rega
+	arg 1,temp
+	call otpd_read_data
+	fetch 1,mem_lpm_ctrl3_app_vsel
+	nbranch app_set_app_vsel,blank
+	jam 0x04,mem_lpm_ctrl3_app_vsel	//3V3
+app_set_app_vsel:
+	branch lpm_write_sel_vdd
+
+app_lpm_peripheral_lock_check:
+	fetch 2,mem_ucode_device_flag
+	rshift4 pdata,pdata
+	rtn blank
+	fetch 1,mem_ucode_device_flag
+	rshift4 pdata,pdata
+	beq dvc_op_dongle,app_lpm_peripheral_lock_dongle
+	beq dvc_op_light,app_lpm_peripheral_lock_light
+	beq dvc_op_mouse,app_lpm_peripheral_lock_mouse
+	beq dvc_op_mouse_24g,app_lpm_peripheral_lock_mouse_24g
+	beq dvc_op_shutter,app_lpm_peripheral_lock_shutter
+	beq dvc_op_shutter_dy,app_lpm_peripheral_lock_shutter
+//	beq dvc_op_remote_car,app_lpm_peripheral_lock_remote_car
+	beq dvc_op_car,app_lpm_peripheral_car_lock_application
+	beq dvc_op_car_lock_app_and_ble,app_lpm_peripheral_car_lock_application_and_ble
+	branch app_lpm_mpu_lock_24g_ble
+	
+app_lpm_peripheral_lock_dongle:
+	arg mouse_init,pdata //mouse
+	arg shutter_dy_shutter_1s_timer,temp  //shutter dy
+	call app_mpu_s0_lock
+	branch app_lpm_peripheral_lock_frmt_common
+
+app_lpm_peripheral_lock_light:
+	arg car_hard_switch_power_on_signal,pdata //car
+	arg shutter_dy_shutter_1s_timer,temp  //shutter dy
+	call app_mpu_s0_lock    
+	branch lpm_write_lock
+
+app_lpm_peripheral_lock_mouse:
+	arg shutter_init,pdata //shutter
+	arg shutter_dy_shutter_1s_timer,temp  //shutter dy
+	call app_mpu_s0_lock
+	branch app_lpm_peripheral_lock_frmt_common
+	
+app_lpm_peripheral_lock_mouse_24g:
+	arg le_init_adv,pdata   // le
+	arg le_send_ll_one_lenth,temp
+	call app_mpu_s0_lock
+	branch app_lpm_peripheral_lock_frmt_common
+	
+app_lpm_peripheral_lock_shutter:
+	arg car_hard_switch_power_on_signal,pdata  //car
+	arg mouse_24g_send_time_long_wake,temp //mouse
+	call app_mpu_s0_lock
+	branch app_lpm_peripheral_lock_frmt_common
+
+
+app_lpm_peripheral_lock_remote_car:
+app_lpm_peripheral_car_lock_application:
+	arg dongle_init,pdata  //dongle
+	arg shutter_dy_shutter_1s_timer,temp  //shutter dy
+	call app_mpu_s0_lock
+app_lpm_peripheral_lock_frmt_common:
+	arg frmt_gem_adv_pdu_common,pdata
+	arg frmt_ble_data_set,temp
+	call app_mpu_s1_lock
+	branch lpm_write_lock
+
+app_lpm_peripheral_car_lock_application_and_ble:
+	arg dongle_init,pdata  //dongle 
+	arg shutter_dy_shutter_1s_timer,temp  //shutter dy
+	call app_mpu_s0_lock 
+	
+	arg le_init_adv,pdata 
+	arg le_send_ll_one_lenth,temp
+	call app_mpu_s1_lock
+	branch lpm_write_lock
+	
+//app_lpm_mpu_lock_app:	
+//	arg car_init,pdata  //car
+//	arg ui_soft_switch_power_off,temp //shutter
+app_mpu_s0_lock:
+	lshift16 temp,temp
+	ior temp,pdata
+	store 4,core_lpm_reg
+	branch lpm_write2_mpu_s0
+
+app_lpm_mpu_lock_ble:	
+	arg le_parse_att,pdata
+	arg le_send_ll_one_lenth,temp
+app_mpu_s1_lock:
+	lshift16 temp,temp
+	ior temp,pdata
+	store 4,core_lpm_reg
+	branch lpm_write2_mpu_s1
+	
+app_lpm_mpu_lock_24g:	
+	arg g24_prep,pdata
+	arg g24_enable_1M,temp
+	branch app_mpu_s1_lock
+	
+app_lpm_mpu_lock_24g_ble:
+	call app_lpm_mpu_lock_24g
+	arg le_parse_att,pdata
+	arg le_send_ll_one_lenth,temp
+	call app_mpu_s0_lock
+	branch lpm_write_lock
+
+
+lpm_write_lock:
+	fetch 2,mem_ucode_device_flag
+	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_write2_ctrl_option:
+	setarg lpmreg2_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
+
+lpm_write_ice_enable:
+	fetch 2,core_ucode_flag
+	set1 lpmreg_ice_mode_bit,pdata
+	store 4,core_lpm_reg
+	branch lpm_write2_ctrl_option
+	
+	
+lpm_write2_mpu_s0:
+	setarg lpmreg2_sel_mpu_s0
+	branch lpm_write2
+
+lpm_write2_mpu_s1:
+	setarg lpmreg2_sel_mpu_s1
+	branch lpm_write2
+
+
+
+/* ===================== SPI dma ======================= */
+
+spid_init:
+	bpatch patch11_6,mem_patch11
+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
+	bpatch patch11_7,mem_patch11
+	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
+	bpatch patch12_0,mem_patch12
+	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
+	nop 5
+	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:
+	bpatch patch12_1,mem_patch12
+	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:
+	bpatch patch12_2,mem_patch12
+	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
+
+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 1,mem_spi_cs_gpio
+	jam 3,mem_spi_si_gpio
+	jam 0,mem_spi_so_gpio
+	jam 2,mem_spi_sclk_gpio
+	jam 11,mem_spi_wp_gpio
+	jam 10,mem_spi_hold_gpio
+	rtn
+
+
+/*****************************************************************************
+*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|gpcfg_pullup,temp
+	call gpio_config_function_int
+	fetch 1,mem_eeprom_sda_gpio
+	arg gpcfg_iic_sda|gpcfg_pullup,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:
+	bpatch patch12_3,mem_patch12
+	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:
+	bpatch patch12_4,mem_patch12
+	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
+	bpatch patch12_5,mem_patch12
+	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:
+	bpatch patch12_6,mem_patch12
+	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
+	bpatch patch12_7,mem_patch12
+	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:
+	bpatch patch13_0,mem_patch13
+	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
+
+ifdef COMPILE_UART
+
+/* ===================== uart dma ======================= */
+uarta_init_dma_mem:
+	call enable_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
+	rshift32 pdata,pdata
+	rshift16 pdata,temp
+	call uarta_init_tx,user
+	fetch 2,core_clkoff
+	set0 CLOCK_OFF_UART,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: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: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: 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
+
+uarta_prepare_tx:
+	fetchr contus,2,core_uart_tsaddr
+	fetchr contue,2,core_uart_teaddr
+	fetchr contu,2,core_uart_twptr
+	rtn
+
+uarta_prepare_rx:
+	fetchr contus,2,core_uart_rsaddr
+	fetchr contue,2,core_uart_readdr
+	fetchr contu,2,core_uart_rrptr
+	rtn
+
+uarta_send:
+	storer contu,2,core_uart_twptr
+	rtn
+
+uarta_rxdone:
+	storer contu,2,core_uart_rrptr
+	rtn
+
+uarta_clear_current_rx:
+	call uarta_prepare_rx
+	fetch 2,core_uart_rxitems
+	iadd contu,contu
+	branch uarta_rxdone
+
+uarta_prepare_tx_register_push:
+	call uart_register_push
+	branch uarta_prepare_tx
+
+uarta_send_register_pop:
+	call uarta_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_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_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
+
+wait_uarttx:
+	fetch 2,core_uart_txitems
+	nbranch wait_uarttx,blank
+	rtn
+
+	
+endif
+
+//enable user2 reconnect
+//disable user2 pairing
+nvram_find_addr_from_bd_list:
+	bpatch patch13_1,mem_patch13
+	call disable_user
+	fetch 1,mem_nv_data_number
+	rtn blank		// not nv data
+
+	fetch 2,mem_ui_state_map
+	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	
+find_addr_from_bd_list_common:
+	bpatch patch13_2,mem_patch13
+	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
+	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
+
+
+load_device_list_mode_4:
+	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
+eeprom_store_reconn_info:
+	fetch 1,mem_device_option
+	beq dvc_op_mouse,mouse_store_remote_bdaddr
+	rtn
+	
+
+
+/* =============== GPIO CONTROL ================= */
+
+
+//temp [4:0]=GPIO number, 0-31, 
+gpio_set_wake_by_current_state:
+	bpatch patch13_3,mem_patch13
+	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:
+	bpatch patch13_4,mem_patch13
+	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:
+	bpatch patch13_5,mem_patch13
+	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:
+	bpatch patch13_6,mem_patch13
+	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:
+	sub temp,UI_BUTTON_GPIO_DISABLE,null
+	branch disable_true,zero
+	call gpio_addr
+	ifetch 1,contw
+	bbit1 0,gpio_check_active_high
+	isolate0 gpio_active_bit,temp
+	rtn
+gpio_check_active_high:
+	isolate1 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:
+	sub temp,GPIO_DISABLE,null
+	rtn zero
+	call gpio_addr
+	setarg gpcfg_high_impedance
+	branch gpio_write
+
+gpio_addr:
+	and temp,0x3f,pdata
+	sub pdata,GPIO_NUMBER+-1,null
+	nbranch assert,positive
+	arg core_gpio_conf,contw
+gpio_addr_next:
+	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
+	sub pdata,GPIO_NUMBER+-1,null
+	nbranch assert,positive
+	arg core_gpio_conf,contw
+gpio_config_function_int_next:
+	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
+
+
+//The default as shutter and remote
+gpio_set_before_lpm:
+	arg GPIO_NUMBER,loopcnt
+	arg core_gpio_conf,contr
+setgpio_loop:
+	copy contr,contw
+	ifetch 1,contr
+	beq gpcfg_spid_miso,setgpio_pullup
+	beq gpcfg_spid_ncs,setgpio_pullup
+	beq gpcfg_spid_sck,setgpio_pullup
+	beq gpcfg_spid_mosi,setgpio_pullup
+	beq gpcfg_spid_sdio,setgpio_pullup
+	beq gpcfg_iic_scl,setgpio_pullup
+	beq gpcfg_iic_sda,setgpio_pullup
+	beq gpcfg_input,setgpio_pullup
+setgpio_loop_end:
+	loop setgpio_loop
+	rtn
+	
+	
+setgpio_pullup:
+	setarg gpcfg_pullup
+	istore 1,contw
+	branch setgpio_loop_end
+setgpio_pulldown:
+	setarg gpcfg_pulldown
+	istore 1,contw	
+	branch setgpio_loop_end
+
+/*************************************ADC*************************************/
+
+
+//mem_adc_config_flag 0:vinlpm 1:Hvin 2: GPIO
+adc_init_data:
+	bpatch patch13_7,mem_patch13
+	setarg OTP_OFFSET_ADC_PARAM
+	arg mem_gpio_h_k19_b13,rega
+	arg 12,temp
+	branch otpd_read_data_with_pwr_operation
+
+	
+enable_adc:
+	bpatch patch14_0,mem_patch14
+	fetchr regb,1,core_rf_ldo_cfg6
+	jam 0x3d,core_rf_ldo_cfg6
+	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 read_adc_mode
+	store 1,core_gpadc_ctrl
+	jam 0x03,core_sum_ctrl
+	nop 60
+	fetch 1,core_sum_en
+	set1 7,pdata
+	store 1,core_sum_en
+	nop 1000  // 1/24ms
+	fetch 2,mem_adc_delay
+	fetcht 1,mem_adc_config_flag
+	sub temp,ADC_CONFIG_HVIN,null
+	call sleep,zero	
+	fetch 2,core_adc_sum
+	store 2,mem_adc_current_value
+	fetch 1,core_sum_en
+	set0 7,pdata
+	store 1,core_sum_en
+	jam 0,core_gpadc_ctrl
+	storer regb,1,core_rf_ldo_cfg6
+	rtn
+
+	
+read_adc_mode:	
+	bpatch patch14_1,mem_patch14
+	fetch 1,mem_adc_config_flag
+	beq ADC_CONFIG_GPIO_L,adc_check_gpio_l
+	beq ADC_CONFIG_GPIO_h,adc_check_gpio_h
+	beq ADC_CONFIG_HVIN,adc_adc_mode_vbat
+adc_adc_mode_vbat:
+	setarg 0x4f
+	rtn
+	
+adc_check_gpio_l:
+	arg 2,rega
+	branch adc_check_gpio
+	
+adc_check_gpio_h:
+	arg 6,rega
+adc_check_gpio:
+	fetch 1,mem_adc_channel
+	lshift3 pdata,pdata
+	or pdata,1,pdata
+	ior rega,pdata
+	rtn
+
+
+adc_calculate:
+	bpatch patch14_2,mem_patch14
+	fetch 1,mem_adc_config_flag
+	beq ADC_CONFIG_GPIO_L,adc_calculate_gpio_l
+	beq ADC_CONFIG_GPIO_h,adc_calculate_gpio_h
+//	beq ADC_CONFIG_HVIN,p_adc_calculate_gpio_bat
+adc_calculate_gpio_bat:
+	fetch 4,mem_hvin_k19_b13
+	branch adc_calculate2
+	
+adc_calculate_gpio_h:
+	fetch 4,mem_gpio_h_k19_b13
+	branch adc_calculate2
+	
+adc_calculate_gpio_l:
+	fetch 4,mem_gpio_l_k19_b13
+	
+adc_calculate2:
+	store 4,mem_temp
+	call adc_19k_13b_32bit_cal_k
+	fetcht 2 ,mem_adc_current_value
+	imul32 temp,pdata
+	rshift16 pdata,pdata
+	rshift4 pdata,temp
+//	rshift4 pdata,pdata
+//	copy pdata,regext
+//	copy regext,temp
+	fetch  4,mem_temp
+	call adc_19k_13b_32bit_cal_b
+	
+//	fetch 4,mem_adc_update_b
+	isub temp,pdata   // y = b  - xk
+//	store 4,mem_adc_update_xleft20
+//	fetch 4,mem_adc_update_xleft20
+	arg  1000,temp
+	imul32 temp,pdata
+//	arg 0x1000,temp
+//	lshift8 temp,temp
+//	idiv temp
+//	call wait_div_end
+//	quotient pdata
+//	store 4,mem_adc_update_xleft20
+	rshift16 pdata,pdata
+	rshift4 pdata,pdata
+	rtn
+
+//input data k19_b13; output k 
+adc_19k_13b_32bit_cal_k:
+	arg 0xffffe000,rega
+	iand rega ,pdata
+	rshift3 pdata,pdata
+//	store 4,mem_adc_update_k
+	rtn
+
+//input data k19_b13; output b 	
+adc_19k_13b_32bit_cal_b:
+	arg 0x00001fff,rega
+	iand rega ,pdata
+	lshift8 pdata,pdata
+	lshift2 pdata,pdata
+//	store 4,mem_adc_update_b
+	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
+	setarg 0
+	store 2,mem_key_value_temp
+keyscan_scan_key_lp1:
+	ifetcht 1, rega
+	call gpio_get_bit
+	bpatch patch14_3,mem_patch14
+	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_retention
+	ixor temp,null
+	rtn zero
+	branch enable_user
+
+
+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
+	bpatch patch14_4,mem_patch14
+	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_retention
+	rshift pdata,temp
+	storet 2,mem_key_value_retention
+	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_retention
+	rtn
+keyscan_send_key_data:
+	bpatch patch14_5,mem_patch14
+	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
+
+
+/*
+input:
+mem_pdatatemp:
+byte[0]: pwm gpio selected
+byte[1]: pwm channel selected
+byte[2-4]: pwm frequency, little-endian
+byte[5]: duty cycle, percentage
+*/
+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
+	quotient rega
+	copy temp,pdata
+	isub rega,regb
+
+	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
+
+/*
+input:
+rega:pcnt ;
+regb:ncnt;
+pdata:pwm channel select.
+*/
+pwm_duty_cycle_set:
+	iforce queue
+	call pwm_duty_cycle_set_without_autoload
+	branch pwm_autoload_set
+
+/*
+input:
+queue: pwm channel
+*/
+pwm_autoload_set:	
+	fetch 1, core_pwm_autoload
+	qset1 pdata
+	store 1, core_pwm_autoload
+	fetcht 1, core_clksel
+	isolate1 7, temp
+	call delay_1clk_of_33k, true
+	qset0 pdata
+	store 1, core_pwm_autoload
+	rtn	
+
+
+delay_1clk_of_33k:
+	nop 480
+	rtn
+
+/*
+input:
+rega:pcnt ;
+regb:ncnt;
+pdata:pwm channel select.
+*/	
+pwm_duty_cycle_set_without_autoload:
+	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
+
+
+
+
+/*
+rega: even pwm channel select & gpio select 
+regb: odd pwm channel select & gpio select 
+
+note:
+byte of even pwm channel:
+bit[7]: force to set even sync bit to 1;
+bit[6]: for even bit, reserved
+
+byte of odd pwm channel:
+bit[7]: 1: set odd sync bit to 1; 0: set odd sync bit to 0; 
+bit[6]: 1: set odd pwm init to 1; 0: set odd pwm init to 0;
+
+setarg 0x0008, rega
+0x00:pwm0 selected
+0x08:gpio select
+
+arg 0x4109, regb
+0x41:pwm1 selected and set pwm1 init bit to 1
+0x09:gpio select
+*/
+pwm_enable_in_syncmode:
+	rshift8 regb, queue
+	call pwm_init_bit_set
+	rshift8 regb, queue
+	call pwm_syncmode_set
+	rshift8 rega, queue
+	enable true
+	call pwm_syncmode_set_process
+
+	deposit rega
+	call pwm_gpio_select
+	deposit regb
+	branch pwm_enable
+
+pwm_disable_in_syncmode:
+	deposit rega
+	call pwm_disable
+	deposit regb
+	call pwm_disable
+
+	rshift8 rega, queue
+	disable true
+	call pwm_syncmode_set_process
+	rshift8 regb, queue
+	disable true
+	call pwm_init_bit_set_process
+	rshift8 regb, queue
+	disable true
+	branch pwm_syncmode_set_process
+	
+
+/*
+input:
+queue: pwm channel
+
+note:
+for even bit, 
+0: PWM0/1 work independent
+1: PWM0 output is synchronized to PWM1
+for odd bit,
+Only used when pwm0_syn_to_pwm1 =1, PWM0/1 out inverse
+*/
+pwm_syncmode_set:
+	isolate1 7, queue
+pwm_syncmode_set_process:	
+	and queue, 0x0f,queue
+	fetch 1,core_pwm_sync
+   	qsetflag true,pdata
+   	store 1,core_pwm_sync
+   	rtn
+
+/*
+input:
+queue: pwm channel
+
+note:
+for even bit, reserved
+for odd bit,only used when pwm0_syn_to_pwm1 =1, 
+0: PWM0 out high first
+1: PWM1 out high first
+*/
+pwm_init_bit_set:
+	isolate1 6, queue
+pwm_init_bit_set_process:	
+	and queue, 0x0f,queue
+	fetch 1, core_pwm_init
+	qsetflag true, pdata
+	store 1, core_pwm_init
+	rtn
+/*
+input:
+pdata: pwm channel select & gpio select 
+
+note:
+setarg 0x0108
+0x01:pwm channel select
+0x08:gpio select
+*/
+pwm_gpio_select:
+	call pwm_select_channel
+pwm_gpio_select_process:
+	lshift8 pdata,pdata
+	add queue,gpcfg_pwm_out0,temp
+	ior temp,pdata
+	branch gpio_config_param 
+
+/*
+input:
+pdata: pwm channel select & gpio select 
+
+note:
+setarg 0x0108
+0x01:pwm channel select
+0x08:gpio select
+*/
+pwm_enable:
+	enable user
+	call pwm_gpio_select
+	branch pwm_set_select
+	
+pwm_disable:
+	disable user
+	call pwm_select_channel
+	branch pwm_set_select
+
+pwm_set_select:
+	and queue, 0x0f,queue
+	fetch 1,core_pwm_en
+   	qsetflag user,pdata
+   	store 1,core_pwm_en
+	rtn
+pwm_select_channel:
+	rshift8 pdata,queue
+	and queue, 0x0f,queue
+	rtn
+
+
+/*************WATCH DOG API*************************/
+/*
+	function name:wdt_init_config 
+   input:kick dog time (pdata*7.8125ms) (7.8125ms~16s) (16s = 0x800)
+*/
+wdt_init_config:
+	copy pdata,temp
+	bpatch patch14_6,mem_patch14
+	call wdt_set_enable	//enable
+	setarg 2048
+	isub temp,pdata
+	copy pdata,temp
+	rshift4 temp,temp
+	storet 1,core_write_wdt
+	nop 1400
+	copy pdata,temp
+	and_into 0x0f,temp
+	storet 1,core_write_wdt2
+	rtn
+ 
+
+wdt_set_enable:
+	enable user2
+	branch wdt_init_set
+
+	
+wdt_set_disable:
+	bpatch patch14_7,mem_patch14
+	disable user2
+wdt_init_set:
+	fetch 1,core_config
+   	setflag user2,3,pdata
+	store 1,core_config
+	rtn
+
+
+wdt_kick_128ms:
+	//about 128ms
+	setarg 125
+	branch wdt_init_config
+
+
+ifdef COMPILE_NEC
+
+/*************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:
+	fetchr regb,1,mem_nec_decode_error_value
+
+//????????,????
+//??: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
+
+endif
+
+/*
+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-12]
+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/security.prog
===================================================================
--- /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/program/security.prog	(nonexistent)
+++ /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/program/security.prog	(working copy)
@@ -0,0 +1,1109 @@
+
+
+ifdef SECURE_CONNECTION
+	
+function_g2:
+	bpatch patch15_0,mem_patch15
+	jam 80,mem_AES_CMAC_data_length
+	arg mem_dat,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 mem_dat,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:
+	bpatch patch15_1,mem_patch15
+	jam 65,mem_AES_CMAC_data_length
+	arg mem_dat,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 mem_dat,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:
+	bpatch patch15_2,mem_patch15
+	jam 53,mem_AES_CMAC_data_length
+	setarg 0x100
+	store 2,mem_dat
+	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,mem_dat
+	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,mem_dat
+	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:
+	bpatch patch15_3,mem_patch15
+	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 mem_dat,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 mem_dat,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 mem_dat,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 mem_dat,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:
+	bpatch patch15_4,mem_patch15
+	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:
+	bpatch patch15_5,mem_patch15
+	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
+
+	
+
+	
+concatenate_temp24:
+	lshift8 temp,temp
+concatenate_temp16:
+	lshift16 temp,temp
+	ior temp,temp
+	rtn
+
+endif
+
+/* ==================== LE security ================= */
+
+generate_stk:
+	bpatch patch15_6,mem_patch15
+	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
+
+
+/*
+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
+*/
+
+
+ 	
+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
+	bpatch patch15_7,mem_patch15
+	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:
+	bpatch patch16_0,mem_patch16
+	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
+
+
+wait_keyinit_done:
+	fetch 1,core_aes_decode_key_init
+	bbit0 5,wait_keyinit_done
+	rtn
+
+
+/*
+input:pdata,dec key buffer addr
+output:initial dec key
+瀵嗛挜涓嶆敼锛屽彧鍋氫竴娆
+*/
+dec_key_initial:
+	store 2,core_keybuf_saddr
+	force 0xc0,aes_ctrl
+	force 0x80,aes_ctrl	//dec key initial
+	branch wait_keyinit_done
+
+/*
+input:regb,user enc payload buffer ptr
+	regc,user dec payload buffer ptr
+output:user dec payload buffer ptr
+*/
+do_aes_ecb_dec:
+	force regidx_data,regext_index
+	copy regb,contr
+   	force 4,loopcnt
+	call aes_ecb_dec_loop
+
+	force 0x180,aes_ctrl	//dec load data
+	force 0x80,aes_ctrl
+	call wait_aes
+ecb_dec_generate: 
+	force regidx_result,regext_index
+	copy regc,contw
+   	force 4,loopcnt
+ecb_dec_generate_loop:
+    copy regext,pdata
+	istore 4,contw
+	increase 1,regext_index
+	loop ecb_dec_generate_loop
+	rtn
+
+aes_ecb_dec_loop:
+	ifetch 2,contr
+	ifetcht 2,contr
+	lshift16 temp,temp
+	ior temp,regext
+	increase 1,regext_index
+	loop aes_ecb_dec_loop
+	rtn
+
+
+/*
+input:rega,xor data buffer ptr
+	regb,user enc payload buffer ptr	
+	regc,user dec payload buffer ptr
+output:user dec payload buffer ptr
+*/
+do_aes_cbc_dec:
+	force regidx_xor,regext_index
+	copy rega,contr
+	force 4,loopcnt
+	call aes_ecb_dec_loop
+
+	force regidx_data,regext_index
+	copy regb,contr
+	force 4,loopcnt
+	call aes_ecb_dec_loop
+	force 0x182,aes_ctrl
+	force 0x82,aes_ctrl
+	call wait_aes
+	branch ecb_dec_generate
+
+	
+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:
+	bpatch patch16_1,mem_patch16
+	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
+
+regext_clear:
+	force 0,regext_index
+	force 16,loopcnt
+	branch clear_loop
+
+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
+
+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
===================================================================
--- /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/program/sim.prog	(nonexistent)
+++ /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/program/sim.prog	(working copy)
@@ -0,0 +1,644 @@
+simstart:
+	force 8,radio_ctrl
+	force 0,radio_ctrl
+    //dpll enable
+	jam 0x3,0x8a00
+	jam 0x7f,0x8a01
+	jam 0xf,0x8a02
+	jam 5,core_clksel
+	jam 0,core_clkoff
+	jam 0,core_clkoff+1
+	force 0,clkn
+	jam SYSTEM_CLK_12M,mem_system_clk
+//	branch sim_c1
+    //jam 8,0x8011 //efuse lock
+    //call sim_wdt
+    //call sim_iic
+    //call sim_uart
+	//call sim_spi
+    //call sim_pwm
+    //call sim_gpio
+    //call sim_nec
+    //call sim_nec
+    //call sim_ac
+    //call sim_ac
+    //call sim_ccm
+    //call sim_adc
+    //call sim_efuse
+    //call sim_efuse_lock
+//	branch sim_lpm
+//	branch sim_lr
+//	branch sim_otp
+//	call sim_snooze
+//    call sim_lpm_sleep
+//	branch sim_otp
+//	branch sim_usb
+//	branch sim_iic
+//	call sim_cal
+//	call sim_uart
+//	call sim_spi
+//	branch sim_le
+//    branch assert
+//	branch sim_main
+
+sim_le:
+	jam lemode_2m,mem_le_mode
+	fetch 3,0x9002
+	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_lpm:
+	fetch 1,0x9ffd
+	beq 1,assert
+	setarg 0
+	store 8,mem_gpio_wakeup_low
+	arg 30,temp
+	branch lpm_sleep
+
+
+sim_lr:
+	jam 3,mem_le_ch_mapped
+	setarg 0xfedcba
+	store 3,mem_le_crcinit
+	call le_enable
+	setarg 0x1234567
+	iforce access
+	set1 mark_ble_lr,mark
+//	set1 mark_ble_lr_s8,mark
+	setarg 0x2e0403
+	store 3,mem_le_txheader
+	setarg 0x123456
+	istore 3,contw
+	call le_transmit
+	branch assert
+
+
+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
+	jam 0,mem_le_conn_peer_addr_type
+	jam 1,mem_le_adv_own_addr_type
+	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
+
+sim_otp:
+	fetch 1,mem_sim_slave
+	beq 1,assert
+	call otp_enable_chgpump
+	setarg 0x1234567
+	store 4,mem_tmp_buffer
+	setarg 0x123
+	arg mem_tmp_buffer,rega
+	arg 4,loopcnt
+	call otp_write
+	setarg 0x123
+	arg mem_tmp_buffer+4,rega
+	arg 4,temp
+	call otpd_read_data
+	fetch 4,mem_tmp_buffer
+	ifetcht 4,contr
+	isub temp,null
+	nbranch assert,zero
+loop:
+	branch loop
+
+
+
+ifdef TEST
+
+sim_wdt:
+    jam 8,0x8043
+    jam 0x7e,0x8004
+    nop 1000
+    jam 0xf,0x800b
+    rtn
+
+sim_nec:
+    jam 0x18,0x8083 //gpio3
+    jam 0x1,0x80cb
+    jam 0x89,0x80cc
+    jam 0x1,0x80cd
+    jam 0x1,0x80cf
+    jam 0x31,0x80d0
+    nop 10000
+    jam 0x0,0x80d0
+    rtn
+
+sim_ac:
+    jam 0x19,0x8082 //gpio18
+    jam 6,0x80d9
+    jam 0x10,0x804b
+    jam 0x3c,0x8049
+    jam 0x31,0x8048
+    nop 10000
+    jam 0x0,0x8048
+    rtn
+
+
+sim_pwm:
+    jam 0x0,0x80a0
+    jam 0x1,0x80a2
+    jam 0x2,0x80a4
+    jam 0x3,0x80a6
+    jam 0x4,0x80a8
+    jam 0x5,0x80aa
+    jam 0x6,0x80ac
+    jam 0x7,0x80ae
+    jam 0x8,0x80b0
+    jam 0x9,0x80b2
+    jam 0xa,0x80b4
+    jam 0xb,0x80b6
+    jam 0xc,0x80b8
+    jam 0xd,0x80ba
+    jam 0xe,0x80bc
+    jam 0xf,0x80be
+    jam 0xaa,0x80d8 //pwm init
+    jam 0x10,0x8074 //pwm0 -> gpio4
+    jam 0x11,0x8075 //pwm1 -> gpio5
+    jam 0x12,0x8076 //pwm2 -> gpio6
+    jam 0x13,0x8077 //pwm3 -> gpio7
+    jam 0x14,0x8078 //pwm4 -> gpio8
+    jam 0x15,0x8079 //pwm5 -> gpio9
+    jam 0x16,0x807a //pwm6 -> gpio10
+    jam 0x17,0x807b //pwm7 -> gpio11
+    jam 0x3,0x8084 //pwm0/1 enable
+    nop 100
+    jam 0x3,0x80dd //pwm0/1 soft rst
+    nop 100
+    jam 0xc,0x8084 //pwm2/3 enable
+    nop 100
+    jam 0xc,0x80dd //pwm2/3 soft rst
+    nop 100
+    jam 0x30,0x8084 //pwm4/5 enable
+    nop 100
+    jam 0x30,0x80dd //pwm4/5 soft rst
+    nop 100
+    jam 0xc0,0x8084 //pwm6/7 enable
+    nop 100
+    jam 0xc0,0x80dd //pwm6/7 soft rst
+    nop 100
+    jam 0,0x8084
+    rtn
+
+sim_ccm:
+    //call sim_aes_key_config_case1
+    //call sim_aes_dec_dma_case1
+    //call sim_aes_enc_dma_case1
+    call sim_aes_key_config_case4
+    call sim_aes_dec_dma_case4
+    call sim_aes_enc_dma_case4
+    rtn
+
+sim_aes_key_config_case1:
+    //key
+    force 4,regext_index
+    arg 0x6789,pdata
+    lshift16 pdata,pdata
+    arg 0x6789,temp
+    ior temp,regext
+    force 5,regext_index
+    arg 0x6789,pdata
+    lshift16 pdata,pdata
+    arg 0x6789,temp
+    ior temp,regext
+    force 6,regext_index
+    arg 0x2345,pdata
+    lshift16 pdata,pdata
+    arg 0x2345,temp
+    ior temp,regext
+    force 7,regext_index
+    arg 0x2345,pdata
+    lshift16 pdata,pdata
+    arg 0x2345,temp
+    ior temp,regext
+    //nonce
+    force 8,regext_index
+    arg 0xbc61,pdata
+    lshift16 pdata,pdata
+    arg 0x4e49,temp
+    ior temp,regext
+    force 9,regext_index
+    arg 0xccdd,pdata
+    lshift16 pdata,pdata
+    arg 0x0000,temp
+    ior temp,regext
+    force 0xa,regext_index
+    arg 0x8899,pdata
+    lshift16 pdata,pdata
+    arg 0xaabb,temp
+    ior temp,regext
+    force 0xb,regext_index
+    arg 0x0000,pdata
+    lshift16 pdata,pdata
+    arg 0x6677,temp
+    ior temp,regext
+    //aad
+    jam 0x00,0x80d5
+    jam 0x19,0x80d6
+    jam 0x02,0x80d7
+    rtn
+
+sim_aes_dec_dma_case1:
+    //mic golden
+    force 0,regext_index
+    arg 0xc5dd,pdata
+    lshift16 pdata,pdata
+    arg 0xa210,temp
+    ior temp,regext
+    
+    //payload
+
+    //dma config
+    jam 0x00,0x80d1
+    jam 0x10,0x80d2
+    jam 0x00,0x80d3
+    jam 0x10,0x80d4
+    jam 0x6,0x800a 
+    jam 0x7,0x800a 
+    nop 1000
+    rtn
+
+sim_aes_enc_dma_case1:
+    //payload
+
+    //dma config
+    jam 0x00,0x80d1
+    jam 0x10,0x80d2
+    jam 0x00,0x80d3
+    jam 0x11,0x80d4
+    jam 0x2,0x800a 
+    jam 0x3,0x800a 
+    nop 1000
+    rtn
+
+sim_aes_key_config_case4:
+    //key
+    force 4,regext_index
+    arg 0x1bd1,pdata
+    lshift16 pdata,pdata
+    arg 0x2ace,temp
+    ior temp,regext
+    force 5,regext_index
+    arg 0xbd56,pdata
+    lshift16 pdata,pdata
+    arg 0x14a1,temp
+    ior temp,regext
+    force 6,regext_index
+    arg 0x1f8b,pdata
+    lshift16 pdata,pdata
+    arg 0x9dbd,temp
+    ior temp,regext
+    force 7,regext_index
+    arg 0xfc22,pdata
+    lshift16 pdata,pdata
+    arg 0x8384,temp
+    ior temp,regext
+    //nonce
+    force 8,regext_index
+    arg 0xb3be,pdata
+    lshift16 pdata,pdata
+    arg 0x9549,temp
+    ior temp,regext
+    force 9,regext_index
+    arg 0x2769,pdata
+    lshift16 pdata,pdata
+    arg 0x00bd,temp
+    ior temp,regext
+    force 0xa,regext_index
+    arg 0xb727,pdata
+    lshift16 pdata,pdata
+    arg 0x5bf9,temp
+    ior temp,regext
+    force 0xb,regext_index
+    arg 0x1100,pdata
+    lshift16 pdata,pdata
+    arg 0x82b8,temp
+    ior temp,regext
+    //aad
+    jam 0x00,0x80d5
+    jam 0x19,0x80d6
+    jam 0x02,0x80d7
+    rtn
+
+sim_aes_dec_dma_case4:
+    //mic golden
+    force 0,regext_index
+    arg 0x7c32,pdata
+    lshift16 pdata,pdata
+    arg 0x2cc6,temp
+    ior temp,regext
+    
+    //payload
+    arg 0x1001,contw
+    arg 0xb839, pdata
+    istore 2,contw
+    arg 0xc85f, pdata
+    istore 2,contw
+    arg 0x3756, pdata
+    istore 2,contw
+    arg 0x9249, pdata
+    istore 2,contw
+    arg 0xf07f, pdata
+    istore 2,contw
+    arg 0xd647, pdata
+    istore 2,contw
+    arg 0x2b40, pdata
+    istore 2,contw
+    arg 0x7ccc, pdata
+    istore 2,contw
+    arg 0xfff9, pdata
+    istore 2,contw
+    arg 0xffff, pdata
+    istore 2,contw
+    jam 0x11,0x80da //ccm_inptr
+
+    //dma config
+    jam 0x01,0x80d1
+    jam 0x10,0x80d2
+    jam 0x02,0x80d3
+    jam 0x40,0x80d4
+    jam 0x6,0x800a 
+    jam 0x7,0x800a 
+    call wait_ccm_done
+    fetch 1,0x4012
+    bne 0x05,assert
+    rtn
+
+sim_aes_enc_dma_case4:
+    //payload
+    arg 0x4002,contw
+    arg 0x1286, pdata
+    istore 2,contw
+    arg 0xa56d, pdata
+    istore 2,contw
+    arg 0xb3db, pdata
+    istore 2,contw
+    arg 0x6491, pdata
+    istore 2,contw
+    arg 0xa19b, pdata
+    istore 2,contw
+    arg 0xc4ca, pdata
+    istore 2,contw
+    arg 0x9160, pdata
+    istore 2,contw
+    arg 0x3372, pdata
+    istore 2,contw
+    arg 0xff05, pdata
+    istore 2,contw
+    arg 0xffff, pdata
+    istore 2,contw
+    jam 0x11,0x80da //ccm_inptr
+
+    //dma config
+    jam 0x02,0x80d1
+    jam 0x40,0x80d2
+    jam 0x01,0x80d3
+    jam 0x11,0x80d4
+    jam 0x2,0x800a 
+    jam 0x3,0x800a 
+    call wait_ccm_done
+    fetch 1,0x1111
+    bne 0xf9,assert
+    rtn
+
+//wait_ccm_done:
+//    fetch 1,0x8108
+//    bbit0 6,wait_ccm_done
+//    rtn
+
+sim_lpm_sleep:
+	jam 1,mem_context
+	branch sim_lpm_cont,wake
+	jam 0x80,core_aes_en
+	jam ccnt_start,core_misc_ctrl
+sim_lpm_wait:
+	call lpo_calibration
+	fetch 3,mem_clks_per_lpo
+	branch sim_lpm_wait,blank
+	lshift4 pdata,pdata
+	store 3,mem_clks_per_lpo
+sim_lpm_cont:
+	setarg param_rt_rthalfslot
+	store 2,mem_param_rt_rthalfslot
+	call lpm_recover_clk,wake
+	setarg 10000
+	call sleep,wake
+	arg 10000,temp
+	storet 4,mem_sleep_counter
+	branch lpm_sleep
+
+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
+	jam gpcfg_uart_txd,core_gpio_conf + 16
+	jam 0x81,core_uart_ctrl
+	setarg 0x30
+	store 2,core_uart_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:
+	nop 247
+	fetch 1,mem_h5tx_buf
+	bne 0x67,assert
+	branch sim_uart_slave
+	fetch 1,core_uart_status
+	bbit1 uart_status_rx_fifo_empty,sim_uart_slave
+	fetch 1,core_uart_rxitems
+	bne 9,sim_uart_slave
+	fetcht 8,mem_h5tx_buf
+	call uarta_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
+	
+
+sim_iic:
+	call iic_init_600khz
+    call iicd_init_pin
+iic_write:
+	setarg 6
+	store 2,core_iicd_txlen
+	setarg 0x10a0
+	store 2,0x1000
+    setarg 0x5a00
+	store 2,0x1002
+    setarg 0xa5a5
+	store 2,0x1004
+	setarg 0x1000
+	store 2,core_iicd_txaddr
+	setarg 0
+	store 2,core_iicd_rxlen
+	jam 3,core_iicd_ctrl
+	jam iicd_start,core_misc_ctrl
+	call wait_iicd_done
+	nop 300
+iic_dummy_write:
+	setarg 3
+	store 2,core_iicd_txlen
+	setarg 0x10a0
+	store 2,0x1000
+    setarg 0x00
+	store 1,0x1002
+	setarg 0x1000
+	store 2,core_iicd_txaddr
+	setarg 0
+	store 2,core_iicd_rxlen
+	jam 3,core_iicd_ctrl
+	jam iicd_start,core_misc_ctrl
+	call wait_iicd_done
+	nop 300
+iic_read:
+    setarg 1
+	store 2,core_iicd_txlen
+    setarg 0xa1
+	store 1,0x1000
+	setarg 0x1000
+	store 2,core_iicd_txaddr
+    setarg 0x1100
+	store 2,core_iicd_rxaddr
+	setarg 3
+	store 2,core_iicd_rxlen
+	jam 1,core_iicd_ctrl
+	jam iicd_start,core_misc_ctrl
+	call wait_iicd_done
+    fetch 1, 0x1100
+    bne 0x5a, assert
+    rtn
+
+sim_spi:
+    //jam gpcfg_spid_miso ,core_gpio_conf + 12 
+    //jam gpcfg_spid_ncs ,core_gpio_conf + 13 
+    //jam gpcfg_spid_sck ,core_gpio_conf + 14 
+    //jam gpcfg_spid_mosi ,core_gpio_conf + 15
+    call spi_gpio_init
+
+    setarg 3 
+    store 2 ,core_spid_rxlen 
+    setarg 4 
+    store 2 ,core_spid_txlen 
+    setarg 0x1200 
+    store 2 ,core_spid_txaddr 
+    setarg 0x1300 
+    store 2 ,core_spid_rxaddr
+    setarg 0x0003
+	store 2,0x1200
+    setarg 0x0000
+	store 2,0x1202
+    jam spid_start ,core_misc_ctrl 
+    call wait_spid_done
+    fetch 1, 0x1302
+    bne 0xaa, assert
+    rtn
+
+
+sim_adc:
+    jam 0xc,0x8a0a
+    jam 0x2,0x8a17
+    jam 0x1,0x8a97
+    jam 0x0,0x80dc
+    jam 0x80,0x8053
+    nop 10000
+    jam 0x5,0x80dc
+    jam 0x80,0x8053
+    nop 10000
+    jam 0xa,0x80dc
+    jam 0x80,0x8053
+    nop 10000
+    jam 0xf,0x80dc
+    jam 0x80,0x8053
+    nop 10000
+    jam 0x0,0x8053
+    rtn
+
+ endif
Index: program/simple_pairing.prog
===================================================================
--- /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/program/simple_pairing.prog	(nonexistent)
+++ /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/program/simple_pairing.prog	(working copy)
@@ -0,0 +1,1068 @@
+
+
+ifdef SECURE_CONNECTION
+
+
+publickey_init:
+//	fetch 1,mem_ssp_enable
+//	nbranch sp_initialize,blank
+	branch sp_initialize_256
+
+sp_calc_sequence_256_check:
+	bpatch patch16_2,mem_patch16
+//	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_clear_flags:
+	bpatch patch16_3,mem_patch16
+	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_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	
+
+
+
+
+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:
+	branch disable_true
+
+compare4_success:
+	branch enable_true
+
+
+
+
+bn_testbit:
+	and pdata,7,queue
+	rshift3 pdata,pdata
+	iadd contr,contr
+	ifetch 1,contr
+	qisolate0 pdata
+	rtn
+
+
+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_load:
+	force 6,loopcnt
+bn_load_0:	
+	ifetch 4,contr
+	iforce regext
+	increase 1,regext_index
+	loop bn_load_0
+	rtn
+
+
+
+sp_initialize_256:	
+	bpatch patch16_4,mem_patch16
+	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:    
+	bpatch patch16_5,mem_patch16
+	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:
+	bpatch patch16_6,mem_patch16
+	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:
+	bpatch patch16_7,mem_patch16
+	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		
+
+endif
+
Index: program/ui.prog
===================================================================
--- /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/program/ui.prog	(nonexistent)
+++ /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/program/ui.prog	(working copy)
@@ -0,0 +1,650 @@
+ui_init:
+	rtn wake
+	call lpm_disable_exen_output
+	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:
+	bpatch patch17_0,mem_patch17
+	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:
+	bpatch patch17_1,mem_patch17
+	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 ui_led_init_set
+	increase LED_OFFSET_LENGTH,regb
+	loop ui_led_init_loop
+	rtn
+
+//mem_ui_led_init_state_set =0,set init off else set init on
+ui_led_init_set:
+	fetch 1,mem_ui_led_init_state_set
+	branch gpio_out_inactive,blank
+	branch gpio_out_active
+	
+//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:
+	bpatch patch17_2,mem_patch17
+	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
+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:
+	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:
+	bpatch patch17_3,mem_patch17
+	call ui_ipc_get_lock
+	copy rega,pdata
+	store 4,mem_rega
+	arg mem_ipc_fifo_bt2c51,rega
+	call fifo_in
+	fetch 4,mem_rega
+	copy pdata,rega
+	branch ui_ipc_put_lock
+
+ui_ipc_send_cmd:
+	bpatch patch17_4,mem_patch17
+	call ui_ipc_get_lock
+	copy rega,pdata
+	store 4,mem_rega	
+	arg mem_ipc_fifo_c512bt,rega
+	call fifo_in
+	fetch 4,mem_rega
+	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:
+	bpatch patch17_5,mem_patch17
+	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
+	bpatch patch17_6,mem_patch17
+	copy temp,pdata
+	rtn blank
+	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
+	//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
+	bpatch patch17_7,mem_patch17
+	fetch 1,mem_fifo_temp
+	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_STORE_RECONN_INFO_LE,eeprom_store_le_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 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:
+
+//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 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 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
+
+
+
+
+ui_check_paring_button:
+	fetch 1,mem_ui_state_map
+	rtnbit0 UI_STATE_BTN_DOWN
+	rtn
+
+
+
+///////////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:
+	bpatch patch18_0,mem_patch18
+	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:
+	bpatch patch18_1,mem_patch18
+	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
+
+queue_store_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
+	add contr,2,contw
+	copy rega,contr
+	increase -1,loopcnt
+	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
===================================================================
--- /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/program/usb.prog	(nonexistent)
+++ /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/program/usb.prog	(working copy)
@@ -0,0 +1,1161 @@
+ ifdef COMPILE_USB
+
+usb_isr:
+	bpatch patch18_2,mem_patch18
+	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:
+	bpatch patch18_3,mem_patch18
+	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_string2,contw
+	setsect 0,0x1570f
+	setsect 1,0x15c9a
+	setsect 2,0x256c6
+	setsect 3,0x1cdcd
+	istore 9,contw
+	setsect 0,0x14420
+	setsect 1,0x25d99
+	setsect 2,0x25636
+	setsect 3,0x1
+	istore 7,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	
+	call usb_confdesc_config
+usb_config_cb:
+	fetch 2,mem_cb_usb_config
+	branch callback_func
+
+usb_confdesc_config:
+	fetch 1,mem_usb_ep3_enable
+	nrtn blank
+usb_confdesc_config_without_ep3:
+	arg 60,loopcnt
+	arg mem_confdesc,contw
+	arg USB_CONFDATA_ADDR,contr	
+	branch memcpy
+
+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 USB_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 USB_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_rx:
+	bpatch patch18_4,mem_patch18
+	fetch 1,mem_usb_status
+	rtnbit0 USB_STATUS_RXREADY
+	arg mem_usb_rxbuf_temp,contw
+	call usb_rx_data
+	fetchr loopcnt,2,mem_usb_read_len
+	storer loopcnt,1,mem_usb_ep3_out_data_len
+	arg mem_usb_rxbuf_temp,contr
+	copy temp,pdata
+	beq 0,usb0_rx
+	beq 3,usb_data_rx_ep3
+usb_data_rx:
+	rtn
+
+usb_data_rx_ep3:
+	arg mem_usb_ep3_out_data,contw
+	call memcpy
+	jam 1,mem_usb_ep3_out_data_flag
+	rtn
+
+
+usb0_rx:
+	arg mem_usb_setup,contw
+	call memcpy
+	fetch 1,mem_usb_read_len
+	beq 0x00,usb_rx_no_data
+	beq 0x01,usb_out_one_byte	// HUAWEI pad led status	
+	sub pdata,7,null
+	rtn positive
+usb_class_type:
+	bpatch patch18_5,mem_patch18
+	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_out_one_byte:
+	fetch 1,mem_usb_setup
+	rtnbit1 7	// OUT_DEVICE
+	call usb_get_led_status
+	branch usb0_reply_zerolen
+
+
+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:
+	bpatch patch18_6,mem_patch18
+	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:
+	bpatch patch18_7,mem_patch18
+	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:
+	bpatch patch19_0,mem_patch19
+	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:
+	bpatch patch19_1,mem_patch19
+	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:
+	bpatch patch19_2,mem_patch19
+	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:
+	bpatch patch19_3,mem_patch19
+//	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
+	beq 2,dsc_hid_info_interface2
+	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_hid_info_interface2:
+	fetchr regb,1,mem_confdesc+69
+	arg mem_confdesc+69,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 0,dsc_hid_report_info0
+	beq 1,dsc_hid_report_info1
+	beq 2,dsc_hid_report_info2
+	branch usb0_force_stall
+
+dsc_hid_report_info0:
+	fetchr rega,2,mem_hidreportdesc_kb
+	branch usb0_respond_length
+
+dsc_hid_report_info1:
+	fetch 1,mem_usb_ep3_enable
+	call dsc_hid_enumerate_success,blank
+	fetchr rega,2,mem_hidreportdesc_m
+	branch usb0_respond_length
+
+dsc_hid_report_info2:
+	fetch 1,mem_usb_ep3_enable
+	ncall dsc_hid_enumerate_success,blank
+	fetchr rega,2,mem_hidreportdesc_ep3
+	branch usb0_respond_length
+
+dsc_hid_enumerate_success:	
+	jam 1,mem_usb_device_enumeration_endflag
+	jam USB_GOT_REPORT_REQ,mem_usb_state
+	rtn
+
+
+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_usb_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_usb_sdsystem_wakeup_flag
+	branch usb0_reply_zerolen,blank
+	jam 0,mem_usb_sdsystem_wakeup_flag
+	fetch 1,mem_usb_sdsystem_wakeup_flag_judge
+	branch usb0_reply_zerolen,blank
+	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
+	call dongle_set_pc_sleep_flag
+	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 USB_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:
+	bpatch patch19_4,mem_patch19
+	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:
+	nop 15000		//delay 1ms
+	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
+usb_get_led_status:	
+	store 1,mem_24g_led_status
+	jam 0,mem_usb_tx_win_enable
+	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:
+	bpatch patch19_5,mem_patch19
+	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:
+	bpatch patch19_6,mem_patch19
+	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:
+	bpatch patch19_7,mem_patch19
+	fetch 1,mem_usb_tx_enable
+	rtn blank
+	fetch 1,core_usb_txbusy
+	and_into 0x0f,pdata
+	nbranch usb_inwake_state_tx_dispose,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
+	call usb_tx_data_ep2
+	branch usb_tx_data_ep3
+
+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_data_ep3:
+	fetch 1,mem_usb_ep3_enable
+	rtn blank
+	fetch 1,core_usb_txbusy
+	rtnbit1 3
+	fetch 1,mem_usb_tx_enable
+	rtnbit0 3
+	fetch 1,mem_usb_tx_enable
+	set0 3,pdata
+	store 1,mem_usb_tx_enable
+	fetchr loopcnt,1,mem_usb_ep3_in_data_len
+	arg 32,loopcnt
+	arg mem_usb_ep3_in_data,contr
+usb_tx_ep3:
+	arg 3,queue
+	arg mem_usb_txbuf3,rega
+	storer rega,2,core_usb_tx_saddr3
+	branch usb_tx_buf
+
+usb_tx_enable_ep3:
+	fetch 1,mem_usb_tx_enable
+	set1 3,pdata
+	store 1,mem_usb_tx_enable
+	rtn
+
+usb_tx_fifo_release:
+	//clear mem_usb_mouse_data/mem_usb_kb_data/mem_usb_kb_multikey/mem_usb_kb_system/mem_usb_ep3_in_data
+	arg mem_usb_mouse_data,contw
+	arg 8,loopcnt
+	call memset0
+	arg mem_usb_ep3_in_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 USB_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
===================================================================
--- /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/program/utility.prog	(nonexistent)
+++ /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/program/utility.prog	(working copy)
@@ -0,0 +1,584 @@
+
+
+	
+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:
+	bpatch patch1a_0,mem_patch1a
+	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	
+	
+
+
+memcpy96:
+	call memcpy32
+memcpy64:
+	call memcpy32
+	branch memcpy32
+	
+
+memcpy12:
+	call memcpy8
+memcpy4:
+	ifetch 1,contr
+	istore 1,contw
+memcpy3:
+	ifetch 3,contr
+	istore 3,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:
+	bpatch patch1a_1,mem_patch1a
+	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
+
+
+
+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
+	store 2,mem_pdatatemp
+	bpatch patch1a_2,mem_patch1a
+	call timer_check
+	fetcht 2,mem_pdatatemp
+	arg mem_timers,contw
+//	iforce temp
+	lshift queue,pdata
+	iadd contw,contw
+	istoret 2,contw
+	rtn
+
+timer_check_timeout:
+	arg 0x800,timeup
+	lshift16 timeup,timeup
+	iadd timeup,pdata
+	rtn
+
+
+timer_reinit:
+	arg 0,queue
+timer_check:
+	bpatch patch1a_3,mem_patch1a
+	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
+
+
+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
+	
+
+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
+
+
+ice_break_disable_wdt:
+	call wdt_set_disable
+
+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
+	
+
+	//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:
+	bpatch patch1a_4,mem_patch1a
+	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:
+	bpatch patch1a_5,mem_patch1a
+	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
+
+enable_user7:
+	enable user7
+	rtn
+
+disable_true:
+	disable  true
+	rtn
+
+enable_true:
+	enable  true
+	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
+
+
+/*	
+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	
+
+le_savelist:
+	fetch 5,mem_sync_clke
+	store 5,mem_pdatatemp
+	fetch 1,mem_le_ch_mapped
+	istore 1,contw
+	fetch 2,mem_le_event_count
+	arg 0x0fff,contr
+	iand contr,pdata
+	setflag match,15,pdata
+	setflag wake,14,pdata
+	setflag sync,13,pdata
+	setflag attempt,12,pdata
+	istore 2,contw
+	branch savelist_1
+*/
+
+clear_wake:
+	setarg 0
+	store 8,mem_gpio_wakeup_low
+	rtn
+
+
+generate_random:
+	arg 16,loopcnt
+generate_random_loop:
+	random pdata
+	istore 1,contw
+	loop generate_random_loop
+	rtn
+
Index: sched/1306.dat
===================================================================
--- /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/sched/1306.dat	(nonexistent)
+++ /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/sched/1306.dat	(working copy)
@@ -0,0 +1,33 @@
+
+mem_lpm_config:88 0b ce	#4khz
+mem_lpm_xtalcnt:35 3f 0c 33 03
+mem_lpm_hibernate_switch:00
+mem_lpm_ctrl3_aon_vsel:9d 10 22
+mem_dig_aon_vsel:01	#bit5-4;00:1.2V;01:1.08V;02:0.96V;03:0.84V
+mem_rc_cal:d3
+mem_rf_ldo_cfg1:02
+
+mem_gain_fix:ff	#00:soft agc; ff:hw agc
+mem_gain_table:04 00 00
+mem_gain_second_agc_en:08	#hw agc: 0:second agc disable
+
+mem_adc_delay:a0 0f
+
+mem_rf_init_data:
+ff
+mem_rf_init_ptr:mem_rf_init_data
+
+mem_lpm_mode:01
+
+mem_load_check_sum:5a
+mem_mouse_no_data_timeout:70 17   #10mins
+mem_mouse_enable_flag:20	#20:win+d	60:ctrl+alt+a	a0:ac home	d0:key_play
+
+#mem_flash_base:00 50 00
+#mem_eeprom_base:80 1f
+
+#bit7:0 means disable rf debug function
+#mem_rf_debug_rx_gpio:06
+#mem_rf_debug_tx_gpio:07
+
+
Index: sched/authrom/ble_shutter_dy_gatt_list.dat
===================================================================
--- /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/sched/authrom/ble_shutter_dy_gatt_list.dat	(nonexistent)
+++ /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/sched/authrom/ble_shutter_dy_gatt_list.dat	(working copy)
@@ -0,0 +1,373 @@
+01
+00
+02
+00
+28
+02
+01
+18
+02
+00
+02
+03
+28
+01
+20
+03
+00
+02
+05
+2a
+01
+00
+04
+00
+02
+02
+29
+02
+00
+00
+05
+00
+02
+00
+28
+02
+00
+18
+06
+00
+02
+03
+28
+01
+02
+07
+00
+02
+00
+2a
+13
+43
+68
+69
+70
+73
+65
+61
+2d
+42
+4c
+45
+20
+20
+20
+20
+20
+20
+20
+20
+08
+00
+02
+03
+28
+01
+02
+09
+00
+02
+01
+2a
+02
+c1
+03
+0a
+00
+02
+03
+28
+01
+02
+0b
+00
+02
+04
+2a
+08
+06
+00
+06
+00
+64
+00
+2c
+01
+0c
+00
+02
+00
+28
+02
+0a
+18
+0d
+00
+02
+03
+28
+01
+02
+0e
+00
+02
+50
+2a
+07
+01
+05
+0e
+00
+0a
+02
+40
+0f
+00
+02
+00
+28
+02
+12
+18
+10
+00
+02
+03
+28
+01
+06
+11
+00
+02
+4e
+2a
+01
+01
+12
+00
+02
+03
+28
+01
+10
+13
+00
+02
+4d
+2a
+07
+00
+00
+00
+00
+00
+00
+00
+14
+00
+02
+02
+29
+02
+00
+00
+15
+00
+02
+08
+29
+02
+01
+01
+16
+00
+02
+03
+28
+01
+10
+17
+00
+02
+4d
+2a
+03
+00
+00
+00
+18
+00
+02
+02
+29
+02
+00
+00
+19
+00
+02
+08
+29
+02
+04
+01
+1a
+00
+02
+03
+28
+01
+10
+1b
+00
+02
+4d
+2a
+02
+00
+00
+1c
+00
+02
+02
+29
+02
+00
+00
+1d
+00
+02
+08
+29
+02
+03
+01
+1e
+00
+02
+03
+28
+01
+10
+1f
+00
+02
+4d
+2a
+03
+00
+00
+00
+20
+00
+02
+02
+29
+02
+00
+00
+21
+00
+02
+08
+29
+02
+05
+01
+22
+00
+02
+03
+28
+01
+12
+23
+00
+02
+4d
+2a
+02
+00
+00
+24
+00
+02
+02
+29
+02
+00
+00
+25
+00
+02
+08
+29
+02
+02
+01
+26
+00
+02
+03
+28
+01
+02
+27
+00
+02
+4b
+2a
+01
+00
+28
+00
+02
+03
+28
+01
+02
+29
+00
+02
+4a
+2a
+04
+11
+01
+00
+01
+2a
+00
+02
+03
+28
+01
+04
+2b
+00
+02
+4c
+2a
+01
+00
+2c
+00
+02
+00
+28
+02
+0f
+18
+00
+00
\ No newline at end of file
Index: sched/authrom/ble_shutter_dy_mousekey_value_list.dat
===================================================================
--- /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/sched/authrom/ble_shutter_dy_mousekey_value_list.dat	(nonexistent)
+++ /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/sched/authrom/ble_shutter_dy_mousekey_value_list.dat	(working copy)
@@ -0,0 +1,640 @@
+03
+1f
+00
+ec
+0f
+00
+00
+00
+00
+00
+03
+1f
+00
+14
+00
+00
+00
+00
+00
+00
+03
+1f
+00
+00
+c0
+fe
+00
+00
+00
+00
+03
+1f
+00
+00
+40
+01
+00
+00
+00
+00
+03
+1f
+00
+00
+00
+00
+00
+00
+00
+00
+03
+1f
+00
+00
+00
+00
+00
+00
+00
+00
+02
+1b
+00
+e9
+00
+00
+00
+00
+00
+00
+02
+1b
+00
+ea
+00
+00
+00
+00
+00
+00
+02
+1b
+00
+00
+00
+00
+00
+00
+00
+00
+03
+1f
+00
+28
+80
+11
+00
+00
+00
+00
+03
+1f
+00
+ae
+8f
+11
+00
+00
+00
+00
+03
+1f
+00
+00
+e0
+fc
+00
+00
+00
+00
+03
+1f
+00
+00
+00
+05
+00
+00
+00
+00
+03
+17
+00
+01
+00
+00
+00
+00
+00
+00
+03
+1f
+00
+3c
+00
+00
+00
+00
+00
+00
+03
+1f
+00
+ff
+17
+80
+00
+00
+00
+00
+03
+1f
+00
+d8
+0f
+00
+00
+00
+00
+00
+03
+17
+00
+00
+00
+00
+00
+00
+00
+00
+03
+1f
+00
+01
+f8
+7f
+00
+00
+00
+00
+03
+1f
+00
+00
+40
+fc
+00
+00
+00
+00
+03
+1f
+00
+01
+18
+80
+00
+00
+00
+00
+03
+1f
+00
+3c
+40
+0b
+00
+00
+00
+00
+03
+1f
+00
+00
+c0
+03
+00
+00
+00
+00
+03
+1f
+00
+3c
+40
+ec
+00
+00
+00
+00
+03
+1f
+00
+3c
+80
+0c
+00
+00
+00
+00
+03
+1f
+00
+00
+10
+80
+00
+00
+00
+00
+03
+1f
+00
+3c
+80
+07
+00
+00
+00
+00
+03
+1f
+00
+96
+00
+00
+00
+00
+00
+00
+03
+1f
+00
+6a
+0f
+00
+00
+00
+00
+00
+03
+1f
+00
+02
+d0
+ff
+00
+00
+00
+00
+03
+1f
+00
+02
+30
+00
+00
+00
+00
+00
+03
+1f
+00
+64
+00
+00
+00
+00
+00
+00
+03
+1f
+00
+00
+b0
+f9
+00
+00
+00
+00
+07
+13
+00
+07
+06
+70
+07
+ac
+0d
+01
+07
+13
+00
+07
+06
+70
+07
+80
+0c
+01
+07
+13
+00
+07
+06
+70
+07
+54
+0b
+01
+07
+13
+00
+07
+06
+70
+07
+28
+0a
+01
+07
+13
+00
+07
+06
+70
+07
+fc
+08
+01
+07
+13
+00
+00
+06
+70
+07
+78
+05
+00
+07
+13
+00
+07
+07
+70
+07
+70
+07
+01
+07
+13
+00
+00
+07
+70
+07
+70
+07
+00
+07
+13
+00
+07
+05
+10
+0c
+70
+04
+01
+07
+13
+00
+07
+05
+48
+0b
+70
+04
+01
+07
+13
+00
+07
+05
+F0
+0A
+70
+04
+01
+07
+13
+00
+07
+05
+C4
+09
+70
+04
+01
+07
+13
+00
+07
+05
+6C
+07
+70
+04
+01
+07
+13
+00
+07
+05
+40
+04
+70
+04
+01
+07
+13
+00
+07
+05
+E8
+02
+70
+04
+01
+07
+13
+00
+00
+05
+00
+02
+70
+04
+00
+07
+13
+00
+00
+06
+70
+07
+ac
+0e
+00
+07
+13
+00
+00
+05
+10
+0d
+70
+04
+00
+03
+17
+00
+00
+fa
+00
+00
+00
+00
+00
+03
+17
+00
+00
+28
+00
+00
+00
+00
+00
+03
+17
+00
+00
+d2
+00
+00
+00
+00
+00
+03
+17
+00
+00
+32
+00
+00
+00
+00
+00
+03
+17
+00
+00
+00
+fa
+00
+00
+00
+00
+03
+17
+00
+00
+00
+05
+00
+00
+00
+00
+03
+17
+00
+00
+00
+f0
+00
+00
+00
+00
+03
+17
+00
+00
+00
+0f
+00
+00
+00
+00
+02
+23
+00
+30
+00
+00
+00
+00
+00
+00
+02
+23
+00
+00
+00
+00
+00
+00
+00
+00
+03
+1f
+00
+a0
+30
+e8
+00
+00
+00
+00
+03
+1f
+00
+3c
+40
+07
+00
+00
+00
+00
+03
+1f
+00
+41
+40
+0b
+00
+00
+00
+00
\ No newline at end of file
Index: sched/authrom/frmt_xbox.dat
===================================================================
--- /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/sched/authrom/frmt_xbox.dat	(nonexistent)
+++ /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/sched/authrom/frmt_xbox.dat	(working copy)
@@ -0,0 +1,64 @@
+b7
+fd
+93
+26
+36
+3f
+f7
+cc
+34
+a5
+e5
+f1
+71
+d8
+31
+15
+04
+c7
+23
+c3
+18
+96
+05
+9a
+07
+12
+80
+e2
+eb
+27
+b2
+75
+8c
+a1
+89
+0d
+bf
+e6
+42
+68
+41
+99
+2d
+0f
+b0
+54
+bb
+16
+9b
+c2
+51
+2f
+53
+1a
+6a
+83
+b5
+02
+6e
+10
+16
+ab
+a3
+42
\ No newline at end of file
Index: sched/authrom/mouse_ble_att_list.dat
===================================================================
--- /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/sched/authrom/mouse_ble_att_list.dat	(nonexistent)
+++ /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/sched/authrom/mouse_ble_att_list.dat	(working copy)
@@ -0,0 +1,626 @@
+01
+00
+02
+00
+28
+02
+00
+18
+02
+00
+02
+03
+28
+01
+0a
+03
+00
+02
+00
+2a
+14
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+04
+00
+02
+03
+28
+01
+02
+05
+00
+02
+01
+2a
+02
+c2
+03
+06
+00
+02
+03
+28
+01
+02
+07
+00
+02
+04
+2a
+08
+06
+00
+06
+00
+64
+00
+2c
+01
+08
+00
+02
+00
+28
+02
+01
+18
+09
+00
+02
+03
+28
+01
+20
+0a
+00
+02
+05
+2a
+00
+0b
+00
+02
+02
+29
+02
+00
+00
+0c
+00
+02
+00
+28
+02
+0a
+18
+0d
+00
+02
+03
+28
+01
+02
+0e
+00
+02
+29
+2a
+06
+59
+69
+43
+68
+69
+70
+0f
+00
+02
+03
+28
+01
+02
+10
+00
+02
+50
+2a
+07
+02
+35
+12
+22
+aa
+01
+00
+11
+00
+02
+00
+28
+02
+12
+18
+12
+00
+02
+03
+28
+01
+06
+13
+00
+02
+4e
+2a
+01
+01
+14
+00
+02
+03
+28
+01
+12
+15
+00
+02
+4d
+2a
+08
+00
+00
+00
+00
+00
+00
+00
+00
+16
+00
+02
+02
+29
+02
+00
+00
+17
+00
+02
+08
+29
+02
+02
+01
+18
+00
+02
+03
+28
+01
+1a
+19
+00
+02
+4d
+2a
+07
+00
+00
+00
+00
+00
+00
+00
+1a
+00
+02
+02
+29
+02
+00
+00
+1b
+00
+02
+08
+29
+02
+01
+01
+1c
+00
+02
+03
+28
+01
+12
+1d
+00
+02
+4d
+2a
+02
+00
+00
+1e
+00
+02
+02
+29
+02
+00
+00
+1f
+00
+02
+08
+29
+02
+03
+01
+20
+00
+02
+03
+28
+01
+12
+21
+00
+02
+4d
+2a
+02
+00
+00
+22
+00
+02
+02
+29
+02
+00
+00
+23
+00
+02
+08
+29
+02
+04
+01
+24
+00
+02
+03
+28
+01
+0e
+25
+00
+02
+4d
+2a
+02
+00
+00
+26
+00
+02
+08
+29
+02
+02
+02
+27
+00
+02
+03
+28
+01
+02
+28
+00
+02
+4b
+2a
+bd
+05
+01
+09
+02
+a1
+01
+85
+01
+09
+01
+a1
+00
+05
+09
+19
+01
+29
+08
+15
+00
+25
+01
+75
+01
+95
+08
+81
+02
+05
+01
+09
+30
+09
+31
+16
+01
+f8
+26
+ff
+07
+75
+10
+95
+02
+81
+06
+09
+38
+15
+81
+25
+7f
+75
+08
+95
+01
+81
+06
+05
+0c
+0a
+38
+02
+95
+01
+81
+06
+c0
+c0
+05
+01
+09
+06
+a1
+01
+85
+02
+75
+01
+95
+08
+05
+07
+19
+e0
+29
+e7
+15
+00
+25
+01
+81
+02
+95
+01
+75
+08
+81
+03
+95
+05
+75
+01
+05
+08
+19
+01
+29
+05
+91
+02
+95
+01
+75
+03
+91
+03
+95
+06
+75
+08
+15
+00
+26
+ff
+00
+05
+07
+19
+00
+29
+ff
+81
+00
+c0
+05
+0c
+09
+01
+a1
+01
+85
+03
+19
+00
+2a
+ff
+03
+15
+00
+26
+ff
+03
+95
+01
+75
+10
+81
+00
+c0
+05
+01
+09
+80
+A1
+01
+85
+04
+15
+00
+25
+01
+75
+01
+95
+03
+19
+81
+29
+83
+81
+02
+95
+01
+75
+05
+81
+03
+C0
+29
+00
+02
+03
+28
+01
+1a
+2a
+00
+02
+33
+2a
+08
+00
+00
+00
+00
+00
+00
+00
+00
+2b
+00
+02
+02
+29
+02
+01
+00
+2c
+00
+02
+03
+28
+01
+02
+2d
+00
+02
+4a
+2a
+04
+01
+01
+00
+03
+2e
+00
+02
+00
+28
+02
+0f
+18
+2f
+00
+02
+03
+28
+01
+12
+30
+00
+02
+19
+2a
+01
+64
+31
+00
+02
+02
+29
+02
+00
+00
+32
+00
+02
+03
+28
+01
+04
+33
+00
+02
+4c
+2a
+00
+00
+00
Index: sched/authrom/usb_confdata.dat
===================================================================
--- /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/sched/authrom/usb_confdata.dat	(nonexistent)
+++ /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/sched/authrom/usb_confdata.dat	(working copy)
@@ -0,0 +1,60 @@
+3b
+09
+02
+3b
+00
+02
+01
+00
+a0
+32
+09
+04
+00
+00
+01
+03
+01
+01
+00
+09
+21
+00
+02
+00
+01
+22
+1a
+00
+07
+05
+81
+03
+40
+00
+02
+09
+04
+01
+00
+01
+03
+01
+02
+00
+09
+21
+00
+02
+00
+01
+22
+a3
+00
+07
+05
+82
+03
+40
+00
+02
\ No newline at end of file
Index: sched/authrom/usb_devicedata.dat
===================================================================
--- /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/sched/authrom/usb_devicedata.dat	(nonexistent)
+++ /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/sched/authrom/usb_devicedata.dat	(working copy)
@@ -0,0 +1,19 @@
+12
+12
+01
+00
+02
+00
+00
+00
+40
+51
+31
+20
+10
+02
+00
+01
+02
+00
+01
\ No newline at end of file
Index: sched/authrom/usb_kbdata.dat
===================================================================
--- /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/sched/authrom/usb_kbdata.dat	(nonexistent)
+++ /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/sched/authrom/usb_kbdata.dat	(working copy)
@@ -0,0 +1,64 @@
+3f
+05
+01
+09
+06
+a1
+01
+75
+01 
+95
+08
+05
+07
+19
+e0 
+29
+e7
+15
+00
+25
+01
+81
+02
+95
+01 
+75
+08
+81
+03
+95
+05
+75
+01
+05
+08
+19
+01
+29
+05  
+91
+02 
+95
+01  
+75
+03  
+91
+03
+95
+06 
+75
+08 
+15
+00 
+25
+ff
+05
+07
+19
+00
+29
+ff 
+81
+00
+c0
Index: sched/authrom/usb_kbdata_vendor_define.dat
===================================================================
--- /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/sched/authrom/usb_kbdata_vendor_define.dat	(nonexistent)
+++ /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/sched/authrom/usb_kbdata_vendor_define.dat	(working copy)
@@ -0,0 +1,27 @@
+1a
+06
+bc
+ff
+09
+88
+a1
+01
+85
+04
+19
+00
+2a
+ff
+00
+15
+00
+26
+ff
+00
+75
+08
+95
+01
+81
+00
+c0
\ No newline at end of file
Index: sched/authrom/usb_msdata.dat
===================================================================
--- /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/sched/authrom/usb_msdata.dat	(nonexistent)
+++ /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/sched/authrom/usb_msdata.dat	(working copy)
@@ -0,0 +1,164 @@
+a3
+05
+01
+09
+02
+a1
+01
+85
+01
+09
+01
+a1
+00
+05
+09
+19
+01
+29
+05
+15
+00
+25
+01
+95
+05
+75
+01
+81
+02
+95
+01
+75
+03
+81
+01
+05
+01
+09
+30
+09
+31
+16
+01
+F8
+26
+FF
+07
+75
+10
+95
+02
+81
+06
+09
+38
+15
+81
+25
+7f
+75
+08
+95
+01
+81
+06
+05
+0c
+0a
+38
+02
+95
+01
+81
+06
+c0
+c0
+05
+01
+09
+80
+a1
+01
+85
+02
+05
+01
+19
+81
+29
+88
+15
+00
+25
+01
+95
+08
+75
+01
+81
+06
+c0
+05
+0c
+09
+01
+a1
+01
+85
+03
+15
+00
+26
+80
+03
+19
+00
+2a
+80
+03
+75
+10
+95
+01
+81
+00
+c0
+06
+00
+ff
+09
+0e
+a1
+01
+85
+BA
+95
+1f
+75
+08
+26
+ff
+00
+15
+00
+09
+01
+91
+02
+85
+BA
+95
+1f
+75
+08
+26
+ff
+00
+15
+00
+09
+01
+81
+02
+C0
\ No newline at end of file
Index: sched/ble.dat
===================================================================
--- /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/sched/ble.dat	(nonexistent)
+++ /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/sched/ble.dat	(working copy)
@@ -0,0 +1,62 @@
+#ble
+mem_version:09 0e 05 05 00
+mem_rx_window_sniff:00 0c
+
+mem_lpm_mult:20
+mem_lpm_mult_init:20
+
+mem_device1_type:34
+mem_device1_locall_addr:71 81 91 a1 b1 c1
+
+mem_le_lap:71 81 91 a1 b1 c1
+mem_le_adv_channel_map:07
+mem_mouse_direct_timeout:32  #05s
+mem_mouse_discovery_timeout:b0 04	#2min
+mem_mouse_fast_direct_timeout:0a #1s
+mem_local_rx_max_octets:fb 00 48 08 fb 00 48 08  # 1b
+mem_le_battery_level_updata_timer_init:96 00
+mem_mouse_commbination_key_bt:07 #03--LR  05--LM  06--RM  07---LMR
+
+mem_le_keyboard_handle:15 00
+mem_le_notify_handle:19 00
+mem_le_multimedia_handle:1d 00
+mem_le_systemctrl_handle:21 00
+mem_le_pairing_handle:2d 00
+mem_le_battery_level_handle:30 00
+
+mem_le_adv_data_len:1f
+mem_le_adv_data:
+#flag
+02 01 05 
+#uuid
+03 03 12 18 
+#appearance
+03 19 c2 03
+
+mem_le_adv_swift_pair:
+#microsoft swift pair
+06 ff 06 00 03 00 80	
+#name
+'\09BT5.2 Mouse
+
+mem_le_scan_data_len:1f
+mem_le_scan_data:
+#name
+'\09BT5.2 Mouse
+
+#max 20bytes, att list data rom limits
+mem_le_name_len:
+'BT5.2 Mouse
+
+mem_le_name_len_temp:	#max 18bytes
+'BT5.2 Mouse
+
+mem_le_interval_min:
+06 00 #min interval
+09 00 #max interval
+20 00 #latency
+2c 01 #timeout
+
+mem_le_adv_ind:03 12 18
+mem_le_adv_direct_ind:ff 00 00
+
Index: sched/mouse_basic.dat
===================================================================
--- /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/sched/mouse_basic.dat	(nonexistent)
+++ /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/sched/mouse_basic.dat	(working copy)
@@ -0,0 +1,341 @@
+
+mem_patch06:80
+mem_patch07:20
+mem_patch08:40
+mem_patch09:50
+mem_patch0a:04
+mem_patch0b:c4
+mem_patch0e:01
+mem_patch1c:08
+mem_patch2c:02
+
+
+mem_mouse_flag:
+#mouse flag byte1
+#bit0 MOUSE_SELECT_DEVICE_FLAG
+#bit1 MOUSE_24G_PAIRING_FLAG
+#bit2 MOUSE_STORE_EEPROM_FLAG
+#bit3 MOUSE_BT_CANNEL_RECONN_FLAG
+#bit4 MOUSE_LOW_VOLTAGE_FLAG
+#bit5 MOUSE_BT_DISCOVERY_BUTTON_DOWN_FLAG
+#bit6 MOUSE_BT_DISCOVERY_BUTTON_LONG_DOWN_FLAG
+00
+
+#mouse flag byte2
+#bit0 MOUSE_ENABLE_BLE_RANDOM_ADDRE
+#bit1 MOUSE_ENABLE_2K_EEPROM
+#bit2 MOUSE_ENABLE_INIT_DELAY
+#bit3 MOUSE_ENABLE_WAKEUP_FROM_POWER
+#bit4 MOUSE_ENABLE_16M
+#bit5 MOUSE_ENABLE_USB
+09
+
+#mouse flag byte3
+#bit0 MOUSE_ENABLE_SPI2
+#bit1 MOUSE_ENABLE_24G
+#bit2 MOUSE_ENABLE_FLASH
+#bit3 MOUSE_ENABLE_EEPROM
+#bit4 MOUSE_ENABLE_ADC
+#bit5 MOUSE_ENABLE_KEYBOARD
+#bit6 MOUSE_ENABLE_24G_SEARCH_DONGLE
+#bit7 MOUSE_ENABLE_OTP
+c2
+
+#mouse flag byte4
+#bit0 MOUSE_ENABLE_24G_250Hz
+#bit1 MOUSE_ENABLE_24G_500Hz
+#bit2 MOUSE_ENABLE_24G_1000
+#bit3 MOUSE_ENABLE_BT_125Hz
+#bit4 MOUSE_ENABLE_DPI_LEVEL_4
+#bit5 MOUSE_ENABLE_USB_250
+#bit6 MOUSE_ENABLE_USB_500
+#bit7 MOUSE_ENABLE_USB_1000
+00
+
+#mouse flag byte5
+#bit0 MOUSE_ENABLE_POWER_ON_LED
+#bit1 MOUSE_ENABLE_LOW_VOLTAGE_LED
+#bit2 MOUSE_ENABLE_LOW_VOLTAGE_USE_MODE_LED
+#bit3 MOUSE_ENABLE_LOW_VOLTAGE_LED_BLINK_N_SECOND
+#bit4 MOUSE_ENABLE_4_LED
+#bit5 MOUSE_ENABLE_DPI_FOR_4_LED
+#bit6 MOUSE_ENABLE_BT2_FOR_4_LED
+#bit7 MOUSE_ENABLE_LOW_V_FOR_4_LED
+00
+
+#mouse flag byte6 
+#bit0 MOUSE_ENABLE_SELECT_DEVICE_BY_DPI_BUTTON
+#bit1 MOUSE_ENABLE_SELECT_DEVICE_BY_PB_BUTTON
+#bit2 MOUSE_ENABLE_SELECT_DEVICE_BY_SWITCH_GPIO
+#bit3 MOUSE_ENABLE_SELECT_DEVICE_BY_SWITCH_ADC
+#bit4 MOUSE_ENABLE_DPI_KEY_CONNECT_GND
+#bit5 MOUSE_ENABLE_PB_BUTTON_CONNECT_GND
+#bit6 MOUSE_ENABLE_DPI_KEY_CONNECT_ADC
+#bit7 MOUSE_ENABLE_24G_FIRST_AUTO_PAIRING
+00
+
+#mouse flag byte7
+#bit0 MOUSE_ENABLE_AUTO_24G_PARING
+#bit1 MOUSE_ENABLE_24G_POWER_ON_PAIRING
+#bit2 MOUSE_ENABLE_COMMBINATION_KEY_BY_24G_PAIRING
+#bit3 MOUSE_ENABLE_BT_RECONNECT_TIMEOUT_ENTER_DISCOVERY
+#bit4 MOUSE_ENABLE_PB_BUTTON_SHORT_PRESS_ENTER_DISCOVERY
+#bit5 MOUSE_ENABLE_COMMBINATION_KEY_BY_BT_DISCOVERY
+#bit6 MOUSE_ENABLE_DPI_KEY_LONG_PRESS_DISCONVERY
+#bit7 MOUSE_ENABLE_PB_BUTTON_LONG_PRESS_DISCONVERY
+02
+
+#mouse flag byte8
+#bit0 MOUSE_ENABLE_SMOOTHER
+#bit1 MOUSE_ENABLE_XY_OFFSET
+#bit2 MOUSE_ENABLE_24G_AUTO_PAIR_NERVER_BEEN_PAIRED
+#bit3 MOUSE_ENABLE_LE_BATTERY_SERVICE_CANCEL
+#bit4 MOUSE_ENABLE_WHEEL_WAKE_UP_CANCEL
+#bit5 MOUSE_ENABLE_24G_2M_PHY
+#bit6 MOUSE_ENABLE_DOUBLE_DPI_KEY
+#bit7 MOUSE_ENABLE_24G_NEW_REVISION
+1f
+
+
+mem_mouse_param_config:
+01  #mem_lbutton_gpio
+03  #mem_mbutton_gpio
+06  #mem_rbutton_gpio
+06  #mem_bk_button_gpio
+03  #mem_fw_button_gpio
+01  #mem_dpi_button_gpio
+05  #mem_whee_a_data_gpio
+0a  #mem_whee_b_data_gpio
+08  #mem_mouse_sensor_sclk_gpio
+09  #mem_mouse_sensor_sdio_gpio
+0d  #mem_select_sensor_angle_gpio
+01  #mem_sensor_angle_default
+02  #mem_sensor_angle_switch
+00  #mem_config_sensor_dpi	#power on default dpi 00--1200  01--1600
+ff  #mem_whee_ta_data_gpio
+ff  #mem_whee_tb_data_gpio
+07  #mem_matrix_public_gpio
+ff  #mem_config_select_device_button_gpio
+ff  #mem_customer_key_gpio
+ff  #mem_sensor_motion_gpio
+ff  #mem_device_switch_gpio
+0c  #mem_mouse_reuse_2ice_gpio
+ff  #mem_config_low_voltage_alarm_gpio
+ff  #mem_config_device_24g_led_gpio
+ff  #mem_config_device_bt1_led_gpio
+ff  #mem_config_device_bt2_led_gpio	
+ff  #mem_dpi_led_gpio 
+ff  #mem_dpi_another_button_gpio
+ff  #mem_firebutton_gpio
+ff  #mem_mouse_1io2led_multi_24g_gpio
+ff  #mem_mouse_1io2led_multi_bt1_gpio
+ff  #mem_mouse_1io2led_multi_bt2_gpio
+00  #mem_mouse_logo_led_gpio
+
+
+#mouse sensor angle
+#0x00 MOUSE_6CLK_ANGLE
+#0X01 MOUSE_9CLK_ANGLE
+#0X02 MOUSE_12CLK_ANGLE
+#0X03 MOUSE_3CLK_ANGLE
+
+mem_mouse_ice_sdio_for_sensor_angle:01	#00 disable, 01 enable
+mem_mouse_logo_enable_gpio0:01	#00:disable logo	01:enable,gpio=0
+
+mem_device_option:08
+mem_device_flag:00	#00--24g 01--bt
+mem_device_number:01   #01--only 2.4g   10--2.4g+ble
+
+#ui
+mem_ui_button_gpio:ff
+mem_ui_button_timeout:1e
+mem_ui_led_struct_num:00
+mem_ui_led_struct_ptr:mem_mouse_led_type
+
+#rf
+mem_tx_power:00	#00--0db 01--3db  02--5db  03--f3db  04--f5db
+mem_rssi_buff_index:07
+mem_rssi_signal_buf_ptr:mem_mouse_rssi_signal_buf
+mem_rssi_dis_min_24g_init:85
+mem_rssi_dis_max_24g_init:90
+mem_rssi_dis_min_ble_init:75
+mem_rssi_dis_max_ble_init:80
+mem_rssi_hex_received_max_value_init:63
+mem_power_ctrl_pac_succ_cnt_init:7d
+mem_power_ctrl_disable:00	#01,disable   00,enable
+mem_tx_power_factory_param:5b 01		#f17dbm
+
+
+#led
+mem_mouse_low_v_led_blink_time:90 01		#200ms on,200ms off
+mem_mouse_dpi_led_blink_time:90 01			#200ms on,200ms off
+mem_mouse_disconvey_led_blink_time:e8 03
+mem_mouse_device_poweron_timer_count_init:14
+
+#1io2led multi start
+mem_mouse_1io2led_led_enable:00			#00:close 	01:open
+mem_mouse_bt_led_recon_effect_flag:00		#00:close 	01:open
+mem_mouse_multi_led_poweron2s_flag_init:00	#00:close 01:open
+mem_mouse_multi_led_powon2s_timer_init:14	#2s
+mem_mouse_multi_led_blink_timer_init:03
+
+#log led
+mem_mouse_logo_led_on_time_init:58 02	#1min
+
+
+#adc
+mem_adc_read_time_init:0a
+mem_adc_config_flag_init:02   #00-vinlpm   01-hvin   02-gpio
+mem_adc_low_volatage_led_blink_timer:64 00
+mem_adc_channel:04       
+#00-gpio4   
+#01-gpio5   
+#02-gpio6  
+#03-gpio7
+#04-gpio9  
+#05-gpio10  
+#06-gpio11  
+#07-gpio12
+
+
+#2.4g
+mem_24g_lap:14 27 32 41 51 61
+mem_24g_data_type:01	#01--mouse  02--keyboard
+mem_24g_fast_conn_enable:01
+mem_24g_fast_conn_addr:0f 0f 0f 0f
+mem_mouse_commbination_key_24g:05 #03--LR  05--LM  06--RM  07---LMR
+mem_24g_ch_map_update:00   #00--disable   01--enable
+mem_24g_long_sleep_set_level:02    #00--30ms   01--50ms  02--80ms  03--100ms
+mem_24g_disable_fec1:00	 #00--default mode  01--new process
+
+mem_24g_rx_window:c0 12     #400us  ## e0 2e#1ms #transmitter long range min:520us
+
+mem_mouse_24g_short_sleep_set_4ms:18 6a 00
+mem_mouse_24g_long_sleep_set_4ms:80 bb 00
+mem_mouse_24g_fast_hop_count_4ms:05
+mem_mouse_24g_tsniff_4ms:80 bb 00 00
+
+mem_mouse_24g_short_sleep_set_8ms:40 19 01
+mem_mouse_24g_long_sleep_set_8ms:00 77 01
+mem_mouse_24g_fast_hop_count_8ms:0b
+mem_mouse_24g_tsniff_8ms:00 77 01 00
+
+mem_mouse_sleep_deal_type:00
+
+
+mem_mouse_24g_pair_tx_power:94 #-20dBm
+mem_mouse_24g_pair_timeout_init:08 00  #800ms	    24g reconn timer&pair timer
+
+mem_24g_enter_hibernate:00 48 60
+mem_24g_long_sleep_param_update_timer_init:2c 01	#30s
+mem_24g_transmit_by_interrupt_exit_count_init:50 00
+mem_mouse_24g_reconn_timeout_init:05 #500ms
+mem_mouse_24g_power_on_fast_conn_timer:05 00	#500ms
+mem_mouse_24g_search_dongle_time_init:64 00	#10s
+mem_store_information_delay_timer_init:05
+
+
+mem_mouse_dpi_seting:
+03	#mem_320x_dpi_0
+04	#mem_320x_dpi_1
+01	#mem_320x_dpi_2
+02	#mem_320x_dpi_3
+
+20	#mem_3212_dpi_0
+2a	#mem_3212_dpi_1
+3f	#mem_3212_dpi_2
+15	#mem_3212_dpi_3
+
+14	#mem_ka8g2_dpi_0
+1b	#mem_ka8g2_dpi_1
+11	#mem_ka8g2_dpi_2
+0e	#mem_ka8g2_dpi_3
+
+mem_sensor_3212_init:
+09 5a
+26 34
+19 04
+09 00
+ff ff
+
+mem_sensor_3205_init:
+09 5a
+0d 10
+1d ed
+7d 80
+ff ff
+
+mem_sensor_8650_init:
+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_ka8ul_init:
+09 5a
+0d 10
+0e c5
+5b 9a
+10 38
+11 42
+28 28
+41 23
+49 39
+4a b0
+4b a0
+4c 90
+4d 70
+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_sensor_ka8g2_init:
+09 a5
+46 34
+60 07
+69 04
+7d 20
+7e 00
+09 00
+ff ff
+
+mem_sensor_poweron_init:
+09 5a
+0b f3
+09 00
+ff ff
+
+mem_sensor_ka8g2_poweron_init:
+09 a5
+0b f3
+09 00
+ff ff
+
+
+
+
+
Index: sched/mouse_enhanced.dat
===================================================================
--- /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/sched/mouse_enhanced.dat	(nonexistent)
+++ /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/sched/mouse_enhanced.dat	(working copy)
@@ -0,0 +1,341 @@
+
+#mem_patch06:80
+mem_patch07:20
+mem_patch08:40
+mem_patch09:50
+mem_patch0a:04
+mem_patch0b:c4
+mem_patch0e:01
+mem_patch1c:08
+mem_patch2b:02
+
+
+
+mem_mouse_flag:
+#mouse flag byte1
+#bit0 MOUSE_SELECT_DEVICE_FLAG
+#bit1 MOUSE_24G_PAIRING_FLAG
+#bit2 MOUSE_STORE_EEPROM_FLAG
+#bit3 MOUSE_BT_CANNEL_RECONN_FLAG
+#bit4 MOUSE_LOW_VOLTAGE_FLAG
+#bit5 MOUSE_BT_DISCOVERY_BUTTON_DOWN_FLAG
+#bit6 MOUSE_BT_DISCOVERY_BUTTON_LONG_DOWN_FLAG
+00
+
+#mouse flag byte2
+#bit0 MOUSE_ENABLE_BLE_RANDOM_ADDRE
+#bit1 MOUSE_ENABLE_2K_EEPROM
+#bit2 MOUSE_ENABLE_INIT_DELAY
+#bit3 MOUSE_ENABLE_WAKEUP_FROM_POWER
+#bit4 MOUSE_ENABLE_16M
+#bit5 MOUSE_ENABLE_USB
+09
+
+#mouse flag byte3
+#bit0 MOUSE_ENABLE_SPI2
+#bit1 MOUSE_ENABLE_24G
+#bit2 MOUSE_ENABLE_FLASH
+#bit3 MOUSE_ENABLE_EEPROM
+#bit4 MOUSE_ENABLE_ADC
+#bit5 MOUSE_ENABLE_KEYBOARD
+#bit6 MOUSE_ENABLE_24G_SEARCH_DONGLE
+#bit7 MOUSE_ENABLE_OTP
+c2
+
+#mouse flag byte4
+#bit0 MOUSE_ENABLE_24G_250Hz
+#bit1 MOUSE_ENABLE_24G_500Hz
+#bit2 MOUSE_ENABLE_24G_1000
+#bit3 MOUSE_ENABLE_BT_125Hz
+#bit4 MOUSE_ENABLE_DPI_LEVEL_4
+#bit5 MOUSE_ENABLE_USB_250
+#bit6 MOUSE_ENABLE_USB_500
+#bit7 MOUSE_ENABLE_USB_1000
+01
+
+#mouse flag byte5
+#bit0 MOUSE_ENABLE_POWER_ON_LED
+#bit1 MOUSE_ENABLE_LOW_VOLTAGE_LED
+#bit2 MOUSE_ENABLE_LOW_VOLTAGE_USE_MODE_LED
+#bit3 MOUSE_ENABLE_LOW_VOLTAGE_LED_BLINK_N_SECOND
+#bit4 MOUSE_ENABLE_4_LED
+#bit5 MOUSE_ENABLE_DPI_FOR_4_LED
+#bit6 MOUSE_ENABLE_BT2_FOR_4_LED
+#bit7 MOUSE_ENABLE_LOW_V_FOR_4_LED
+00
+
+#mouse flag byte6 
+#bit0 MOUSE_ENABLE_SELECT_DEVICE_BY_DPI_BUTTON
+#bit1 MOUSE_ENABLE_SELECT_DEVICE_BY_PB_BUTTON
+#bit2 MOUSE_ENABLE_SELECT_DEVICE_BY_SWITCH_GPIO
+#bit3 MOUSE_ENABLE_SELECT_DEVICE_BY_SWITCH_ADC
+#bit4 MOUSE_ENABLE_DPI_KEY_CONNECT_GND
+#bit5 MOUSE_ENABLE_PB_BUTTON_CONNECT_GND
+#bit6 MOUSE_ENABLE_DPI_KEY_CONNECT_ADC
+#bit7 MOUSE_ENABLE_24G_FIRST_AUTO_PAIRING
+00
+
+#mouse flag byte7
+#bit0 MOUSE_ENABLE_AUTO_24G_PARING
+#bit1 MOUSE_ENABLE_24G_POWER_ON_PAIRING
+#bit2 MOUSE_ENABLE_COMMBINATION_KEY_BY_24G_PAIRING
+#bit3 MOUSE_ENABLE_BT_RECONNECT_TIMEOUT_ENTER_DISCOVERY
+#bit4 MOUSE_ENABLE_PB_BUTTON_SHORT_PRESS_ENTER_DISCOVERY
+#bit5 MOUSE_ENABLE_COMMBINATION_KEY_BY_BT_DISCOVERY
+#bit6 MOUSE_ENABLE_DPI_KEY_LONG_PRESS_DISCONVERY
+#bit7 MOUSE_ENABLE_PB_BUTTON_LONG_PRESS_DISCONVERY
+03
+
+#mouse flag byte8
+#bit0 MOUSE_ENABLE_SMOOTHER
+#bit1 MOUSE_ENABLE_XY_OFFSET
+#bit2 MOUSE_ENABLE_24G_AUTO_PAIR_NERVER_BEEN_PAIRED
+#bit3 MOUSE_ENABLE_LE_BATTERY_SERVICE_CANCEL
+#bit4 MOUSE_ENABLE_WHEEL_WAKE_UP_CANCEL
+#bit5 MOUSE_ENABLE_24G_2M_PHY
+#bit6 MOUSE_ENABLE_DOUBLE_DPI_KEY
+#bit7 MOUSE_ENABLE_24G_NEW_REVISION
+bb
+
+
+mem_mouse_param_config:
+01  #mem_lbutton_gpio
+06  #mem_mbutton_gpio
+03  #mem_rbutton_gpio
+01  #mem_bk_button_gpio
+03  #mem_fw_button_gpio
+06  #mem_dpi_button_gpio
+0a  #mem_whee_a_data_gpio
+05  #mem_whee_b_data_gpio
+08  #mem_mouse_sensor_sclk_gpio
+09  #mem_mouse_sensor_sdio_gpio
+ff  #mem_select_sensor_angle_gpio
+00  #mem_sensor_angle_default
+00  #mem_sensor_angle_switch
+00  #mem_config_sensor_dpi	#power on default dpi 00--1200  01--1600
+ff  #mem_whee_ta_data_gpio
+ff  #mem_whee_tb_data_gpio
+ff  #mem_matrix_public_gpio
+ff  #mem_config_select_device_button_gpio
+ff  #mem_customer_key_gpio
+ff  #mem_sensor_motion_gpio
+ff  #mem_device_switch_gpio
+0c  #mem_mouse_reuse_2ice_gpio
+ff  #mem_config_low_voltage_alarm_gpio
+ff  #mem_config_device_24g_led_gpio
+ff  #mem_config_device_bt1_led_gpio
+ff  #mem_config_device_bt2_led_gpio	
+ff  #mem_dpi_led_gpio 
+ff  #mem_dpi_another_button_gpio
+ff  #mem_firebutton_gpio
+ff  #mem_mouse_1io2led_multi_24g_gpio
+ff  #mem_mouse_1io2led_multi_bt1_gpio
+ff  #mem_mouse_1io2led_multi_bt2_gpio
+ff  #mem_mouse_logo_led_gpio
+
+
+#mouse sensor angle
+#0x00 MOUSE_6CLK_ANGLE
+#0X01 MOUSE_9CLK_ANGLE
+#0X02 MOUSE_12CLK_ANGLE
+#0X03 MOUSE_3CLK_ANGLE
+
+mem_mouse_ice_sdio_for_sensor_angle:00	#00 disable, 01 enable
+
+mem_device_option:08
+mem_device_flag:00	#00--24g 01--bt
+mem_device_number:01   #01--only 2.4g   10--2.4g+ble
+
+#ui
+mem_ui_button_gpio:ff
+mem_ui_button_timeout:1e
+mem_ui_led_struct_num:00
+mem_ui_led_struct_ptr:mem_mouse_led_type
+
+#rf
+mem_tx_power:0a	#00--0db 01--3db  02--5db  03--f3db  04--f5db
+#mem_rssi_buff_index:07
+#mem_rssi_signal_buf_ptr:mem_mouse_rssi_signal_buf
+#mem_rssi_dis_min_24g_init:85
+#mem_rssi_dis_max_24g_init:90
+#mem_rssi_dis_min_ble_init:75
+#mem_rssi_dis_max_ble_init:80
+#mem_rssi_hex_received_max_value_init:63
+#mem_power_ctrl_pac_succ_cnt_init:7d
+mem_power_ctrl_disable:01	#01,disable   00,enable
+mem_tx_power_factory_param:42 00		#f50dbm
+
+
+#led
+mem_mouse_low_v_led_blink_time:90 01		#200ms on,200ms off
+mem_mouse_dpi_led_blink_time:90 01			#200ms on,200ms off
+mem_mouse_disconvey_led_blink_time:e8 03
+mem_mouse_device_poweron_timer_count_init:14
+
+#1io2led multi start
+mem_mouse_1io2led_led_enable:00			#00:close 	01:open
+mem_mouse_bt_led_recon_effect_flag:00		#00:close 	01:open
+mem_mouse_multi_led_poweron2s_flag_init:00	#00:close 01:open
+mem_mouse_multi_led_powon2s_timer_init:14	#2s
+mem_mouse_multi_led_blink_timer_init:03
+
+#log led
+mem_mouse_logo_led_on_time_init:58 02	#1min
+
+
+#adc
+mem_adc_read_time_init:0a
+mem_adc_config_flag_init:02   #00-vinlpm   01-hvin   02-gpio
+mem_adc_low_volatage_led_blink_timer:64 00
+mem_adc_channel:04       
+#00-gpio4   
+#01-gpio5   
+#02-gpio6  
+#03-gpio7
+#04-gpio9  
+#05-gpio10  
+#06-gpio11  
+#07-gpio12
+
+
+#2.4g
+mem_24g_lap:11 21 31 41 51 61
+mem_24g_data_type:01	#01--mouse  02--keyboard
+mem_24g_fast_conn_enable:01
+mem_24g_fast_conn_addr:0f 0f 0f 0f
+mem_mouse_commbination_key_24g:03 #03--LR  05--LM  06--RM  07---LMR
+mem_24g_ch_map_update:00   #00--disable   01--enable
+mem_24g_long_sleep_set_level:02    #00--30ms   01--50ms  02--80ms  03--100ms
+mem_24g_disable_fec1:01	 #00--default mode  01--new process
+
+mem_24g_rx_window:c0 12     #400us  ## e0 2e#1ms #transmitter long range min:520us
+
+mem_mouse_24g_short_sleep_set_4ms:78 7e 00
+mem_mouse_24g_long_sleep_set_4ms:80 bb 00
+mem_mouse_24g_fast_hop_count_4ms:0f
+mem_mouse_24g_tsniff_4ms:80 bb 00 00
+
+mem_mouse_24g_short_sleep_set_8ms:50 39 01
+mem_mouse_24g_long_sleep_set_8ms:00 77 01
+mem_mouse_24g_fast_hop_count_8ms:1e
+mem_mouse_24g_tsniff_8ms:00 77 01 00
+
+mem_mouse_sleep_deal_type:01
+
+
+mem_mouse_24g_pair_tx_power:94 #-20dBm
+mem_mouse_24g_pair_timeout_init:08 00  #800ms	    24g reconn timer&pair timer
+
+mem_24g_enter_hibernate:00 48 60
+mem_24g_long_sleep_param_update_timer_init:2c 01	#30s
+mem_24g_transmit_by_interrupt_exit_count_init:50 00
+mem_mouse_24g_reconn_timeout_init:05 #500ms
+mem_mouse_24g_power_on_fast_conn_timer:05 00	#500ms
+mem_mouse_24g_search_dongle_time_init:64 00	#10s
+mem_store_information_delay_timer_init:05
+
+
+mem_mouse_dpi_seting:
+03	#mem_320x_dpi_0
+04	#mem_320x_dpi_1
+01	#mem_320x_dpi_2
+02	#mem_320x_dpi_3
+
+20	#mem_3212_dpi_0
+2a	#mem_3212_dpi_1
+3f	#mem_3212_dpi_2
+15	#mem_3212_dpi_3
+
+14	#mem_ka8g2_dpi_0
+1b	#mem_ka8g2_dpi_1
+11	#mem_ka8g2_dpi_2
+0e	#mem_ka8g2_dpi_3
+
+mem_sensor_3212_init:
+09 5a
+26 34
+19 04
+09 00
+ff ff
+
+mem_sensor_3205_init:
+09 5a
+0d 10
+1d ed
+7d 80
+ff ff
+
+mem_sensor_8650_init:
+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_ka8ul_init:
+#09 5a
+#0d 10
+#0e c5
+#5b 9a
+#10 38
+#11 42
+#28 28
+#41 23
+#49 39
+#4a b0
+#4b a0
+#4c 90
+#4d 70
+#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_sensor_ka8g2_init:
+09 a5
+46 34
+60 07
+69 04
+7d 20
+7e 00
+09 00
+ff ff
+
+mem_sensor_poweron_init:
+09 5a
+0b f3
+09 00
+ff ff
+
+mem_sensor_ka8g2_poweron_init:
+09 a5
+0b f3
+09 00
+ff 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
===================================================================
--- /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/util/crc16.pl	(nonexistent)
+++ /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/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/deletenote.pl
===================================================================
--- /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/util/deletenote.pl	(nonexistent)
+++ /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/util/deletenote.pl	(working copy)
@@ -0,0 +1,27 @@
+
+#print "输入注释的标志:";
+
+#chomp ($text = <STDIN>);
+
+#print $text;
+
+###########################
+#该脚本的功能为删除，#为注释的注释代码。
+
+$Sched_path=$ARGV[0];
+
+open(Sched,$Sched_path)||die("Cannot open files\n");
+@sched=<Sched>;
+close(Sched);
+
+foreach $sched(@sched)
+{
+	$sched_begin = $sched;
+	@Sched = split(/[#]+/, $sched);
+	chomp @Sched[0];
+	$sched = @Sched[0]."\n";
+}
+
+open(Sched,">$Sched_path")||die("Cannot open files\n");
+print Sched @sched;
+close(Sched);
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
===================================================================
--- /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/util/eeprom2fulleeprom.pl	(nonexistent)
+++ /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/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/eeprom2otp.pl
===================================================================
--- /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/util/eeprom2otp.pl	(nonexistent)
+++ /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/util/eeprom2otp.pl	(working copy)
@@ -0,0 +1,24 @@
+
+#鏀瑰墠涓変釜瀛楄妭涓0200锛
+#杈撳叆涓涓枃浠讹紝杈撳嚭涓涓枃浠讹紱
+
+if(@ARGV < 2) {
+	printf "less files\n";
+	exit;
+}
+else{
+	open(file, $ARGV[0]) or die "Can't open  file  : $!"; 
+	open(file_out, ">$ARGV[1]")or die "Can't open out file  : $!"; 
+	@lines = <file>;
+	$length = @lines;
+	
+	my $j=2;
+	print file_out "00\n01\n";
+	while($j<$length){
+			print file_out "$lines[$j]";
+			$j++;
+	}
+#	print "----- reverse end -----";
+	close(file);
+	close(file_out);
+}
Index: util/mergepatch.pl
===================================================================
--- /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/util/mergepatch.pl	(nonexistent)
+++ /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/util/mergepatch.pl	(working copy)
@@ -0,0 +1,335 @@
+#!/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 getdefs {
+	my($def) = @_;
+	my(@ifdefs) = split(/\s*\|\s*/, $def);
+	my $v = 0;
+	foreach (@ifdefs) {
+		s/\s//g;
+		$v = 1 if($defs =~ /(^|\s)$_(\s|$)/);
+	}
+	return $v;
+}
+
+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;
+		}
+		if(/^\s*ifdef\s+(.+)$/) {
+			$v = getdefs($1) ? 1 : 0;
+			push @valid, $v & $valid[$#valid];
+		} elsif(/^\s*ifndef\s+(.+)$/) {
+			$v = getdefs($1) ? 0 : 1;
+			push @valid, $v & $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 {
+			if(/^define\s+(\w+)\s*/) {
+				$defs .= $1 . " " 
+			}
+				print file $_;
+			}
+		}
+	}
+	close file;
+}
+
+sub genpatch
+{
+	print "genpatch\n";
+	$patched = 0;
+	open file,"output/bt_program23.meta";
+	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] = 0, $z = 1;$i < @f;$i++) {
+		$_ = $f[$i];
+		$line[0] = $i - 1 if(/^org\s+0x([23]000|800)/ && $line[0] == 0);
+		if(/^org z\s*$/) {
+			$line[$z/0x10000 + 1] = $i - 1;
+			$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);
+	$line[$z/0x10000 + 1] = $i - 1;
+	for($i = 0;$i < @f;$i++) {
+		$_ = $f[$i];
+		$label = "";
+		if(/^\s*(branch|nbranch|call|ncall|setarg)\s+(\w+)\s*$/ || /^\s*(branch|nbranch|call|ncall|arg)\s+(\w+)\s*,\s*(\w+)\s*$/) {
+			$label = $2;
+		}
+		if(/^\s*(bmark|beq|bne|bbit[01])\s+(\w+)\s*,\s*(\w+)\s*$/) {
+			$label = $3;
+		}
+		$branch = /^\s+branch\s+$label\s*$/ ? 1 : 0;
+		if(exists($lab{$label})) {
+			$nlabel = "jmpz_" . $label;
+			$f[$i] =~ s/$label/eval "$nlabel"/e;
+			if($lab{$label} > 100) {
+				$z = int($lab{$label}/0x1000);
+				$l = $i < $line[1] ? $line[0] : $line[$z/10 - 1];
+				if($branch && $i >= $line[1]) {
+					$f[$i] = sprintf("\tsetarg 0x%x\n\tbranch p_zcode_entrance_2Bytes_common\n\n", $z);
+				} else {
+					$f[$l] .= sprintf("%s:\n\tsetarg 0x%x\n\tbranch p_zcode_entrance_2Bytes_common\n\n", $nlabel, $z);
+				}
+				$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;
+}
+
+sub authrom {
+	$addr = 0x9000;
+	foreach $s (@ARGV) {
+		open f, "../sched/authrom/" . $s . ".dat" or die "cannot open dat file $s";
+		@ff = <f>;
+		close f;
+		foreach (@ff) { $_ =~ s/\s//g;push @auth, $_ . "\n"; }
+		printf "0x%x %s_ADDR\n", $addr, uc($s);
+		$addr += $#ff + 1;
+	}
+	open f,">auth.rom";
+	print f @auth;
+	close f;
+	open f,"romcode.rom" or return;
+	@rom = <f>;
+	close f;
+	for($i = 0, $j = $#rom - 0x1ff;$i < 0x200;$i++,$j++) {
+		for($k = 0, $l = "";$k < 4;$k++) {
+			$_ = $auth[$i*4 + $k];
+			s/\s//g;
+			$_ = "00" if(/^$/);
+			$l =  $_ . $l;
+		}
+		$rom[$j] = $l . "\n";
+	}
+	open f,">romcode.rom";
+	print f @rom;
+	close f;
+}
+
+if(@ARGV > 0) {
+	authrom();
+	exit;
+}
+
+parseif("output/bt_program23.meta");
+parseif("output/bt_format.meta");
+genpatch() if($defs !~ / SIM /);
+malloc();
+zcode();
Index: util/patch.pl
===================================================================
--- /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/util/patch.pl	(nonexistent)
+++ /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/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;
Index: util/romcrc.pl
===================================================================
--- /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/util/romcrc.pl	(nonexistent)
+++ /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/util/romcrc.pl	(working copy)
@@ -0,0 +1,54 @@
+#!/bin/perl
+sub crc16_ccitt2
+{
+	my($crc, $c) = @_;
+
+  $crc  = ($crc >> 8) | ($crc << 8);
+  $crc ^= $c;
+  $crc ^= ($crc & 0xff) >> 4;
+  $crc ^= $crc << 12;
+  $crc ^= ($crc & 0xff) << 5;
+  $crc &= 0xffff;
+ return $crc;
+}
+
+sub gencrc
+{
+  my($crc, $c) = @_;
+  my($i);
+	$c =~ s/\s//g;
+  for($i = 0;$i < length($c);$i+=2) {
+  	$crc = crc16_ccitt2($crc, hex(substr($c, $i, 2)));
+  }
+  return $crc;
+}
+
+open f,"$ARGV[0]" or die "open romfile fail";
+@txt = <f>;
+close f;
+$len = $len0 = $#txt;
+$len = hex($ARGV[1]) if(@ARGV > 1);
+for($i = 0, $crc = 0xffff;$i < $len;$i++) {
+	if($i <= $len) {
+		$_ = $txt[$i];
+		s/\s//g;
+		$wid = length($_) if($i == 0);
+		$crc = gencrc($crc, $_);
+		$txt[$i] = $_ . "\n";
+	} else {
+		$txt[$i] = join('', map('0', 1..$wid)) . "\n";
+		$crc = gencrc($crc, $txt[$i]);
+	}
+}
+if($wid > 4) {
+	$txt[$len] = join('', map('0', 1..($wid - 4)));
+	$crc = gencrc($crc, $txt[$i]);
+	$txt[$len] .= sprintf("%04x", $crc);
+} else {
+	$txt[$len] .= sprintf("%02x\n%02x\n", $crc >> 8, $crc & 0xff);
+}
+
+printf "%02x\n%02x\n", $crc >> 8, $crc & 0xff;
+open f,">$ARGV[0]";
+print f @txt;
+close f;
Index: util/sortsched.pl
===================================================================
--- /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/util/sortsched.pl	(nonexistent)
+++ /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/util/sortsched.pl	(working copy)
@@ -0,0 +1,163 @@
+
+
+$Sched_path=$ARGV[0];
+$Sched_test_path=$ARGV[1];
+
+open(Sched,"$Sched_path")||die("Cannot open files1\n");
+@sched=<Sched>;
+@sched[-1] = "";
+close(Sched);
+#open(Sched_test,">ResultsFile.rom")||die("Cannot open files2\n");
+#print Sched_test ("");
+#close (Sched_test);
+#open(Sched_test,">ResultsFile.rom")||die("Cannot open file3s\n");
+open(Sched_test1,">$Sched_test_path")||die("Cannot open files4\n");
+#@Sched_test=<Sched_test>;
+@Data[0]="";
+$Data_num=0;
+@Address_num;
+@OriginalRecord;
+foreach $sched (@sched)
+{
+	if($sched=~/[0-9a-fA-F][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]:/)
+	{
+		$lap_flag = 0;
+		$le_lap_flag = 0;
+		if($sched=~/443c:/)
+		{
+			$lap_data = $sched;
+			$lap_flag = 1;
+		}
+		elsif($sched =~ /42b0:/)
+		{
+			$le_lap_data = $sched;
+			$le_lap_flag = 1;
+		}
+		else
+		{
+			$Data_num++;
+			@OriginalRecord[$Data_num]=$sched;
+			@snap_variable=split(/[#\n]/,$sched);
+			@Data[$Data_num]=@snap_variable[0]."\n";
+		}
+	}
+	else
+	{
+		if($lap_flag == 1)
+		{
+			$lap_data .= $sched;
+		}
+		elsif($le_lap_flag == 1)
+		{
+			$le_lap_data .= $sched;
+		}
+		else
+		{
+			@OriginalRecord[$Data_num].=$sched;
+			@snap_variable=split(/[#\n]/,$sched);
+			@Data[$Data_num].=@snap_variable[0]."\n";
+		}
+	}
+}
+@sort_Data = sort(@Data);
+@OriginalRecord=sort(@OriginalRecord);
+$PreviousADDR=0;
+$CurrentADDR=0;
+$PreviousData="";
+$CurrentData="";
+$I=0;
+$len_sort_Data=@sort_Data;
+$NextADDR="";
+for($i=0;$i<$len_sort_Data;$i++)
+{
+	$sort_Data=@sort_Data[$i];
+	@snap_variable=split(/:/,$sort_Data);
+	$WData=@snap_variable[1];
+	
+	if($WData =~ /[1-9a-fA-F]/ && hex(@snap_variable[0]) >= 16384){
+	$WADDR=@snap_variable[0];
+	@sort_Data[$i]=@OriginalRecord[$i];
+	@LLL[$i]=0;
+	if($NextADDR eq $WADDR){
+		@snap_variable=split(/[0-9a-fA-F][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]:/,@OriginalRecord[$i]);
+		@sort_Data[$i]=@snap_variable[1];
+		@LLL[$i]=1;
+	}
+	if(@LLL[$i]==0 && hex($PreviousADDR)+6>hex($WADDR)){
+		$LEN=hex($WADDR) - hex($NextADDR);
+		#print $LEN;
+		for($j=0;$j<$LEN;$j++)
+		{
+			@sort_Data[$i-1].="00 "
+		}
+		@sort_Data[$i-1].="\n";
+		@snap_variable=split(/[0-9a-fA-F][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]:/,@OriginalRecord[$i]);
+		@sort_Data[$i]=@snap_variable[1];
+		@LLL[$i]=1;
+	}
+	if($PreviousADDR eq $WADDR){
+		@sort_Data[$i-1]="";
+		if(@LLL[$i-1]==1){
+			@snap_variable=split(/[0-9a-fA-F][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]:/,@OriginalRecord[$i]);
+			@sort_Data[$i]=@snap_variable[1];
+			@LLL[$i]=1;
+		}
+	}
+	else{
+		@DataNum=split(/[0-9a-fA-F][0-9a-fA-F]/,$WData);
+		$DataNum=@DataNum;
+		$PreviousADDR=$WADDR;
+		#@sort_Data[$i].="      ".$DataNum."\n";
+		$NextADDR = &hex_add($WADDR,$DataNum);
+	}
+	}
+	else{
+		if(hex(@snap_variable[0]) >= 16384)
+		{
+			@sort_Data[$i]="";
+		}
+	}
+	#@sort_Data[$i].="      ".$NextADDR."\n";
+	#$sort_Data =~ s/\n//;
+	#$sort_Data.="\n";
+}
+#print Sched_test @OriginalRecord;
+print Sched_test1 $lap_data;
+print Sched_test1 $le_lap_data;
+print Sched_test1 @sort_Data;
+print  $lap_data;
+print  $le_lap_data;
+#for($i=0;$i<$len_sort_Data;$i++)
+#foreach $sort_Data (@sort_Data)
+#{	
+	#$sort_Data=@sort_Data[$i];
+	#print Sched_test $PreviousData;
+	#@snap_variable=split(/:/,$sort_Data);
+	#$CurrentADDR=@snap_variable[0];
+	#$CurrentData=$sort_Data;
+	#print ($CurrentADDR);
+	#if($CurrentADDR-$PreviousADDR==1)
+	#{
+	#	$CurrentVal=@snap_variable[1];
+	#	@snap_variable=split(/\n/,$PreviousData);
+		
+	#	$PreviousData.=" ".$CurrentVal;
+	#	$CurrentData=$PreviousData;
+	#	@sort_Data[$i]="";
+	#	@sort_Data[$i-1]=$CurrentData;
+		#print ($CurrentData."\n");
+	#}
+	#$PreviousADDR=$CurrentADDR;
+	#$PreviousData=$CurrentData;
+	#print Sched_test $CurrentData;
+#}
+#print Sched_test @sort_Data;
+#close(Sched_test);
+close(Sched_test1);
+
+sub hex_add{
+	my($ADDR,$Len)=@_;
+	$data=hex($ADDR);
+	$data=$data+$Len-1;
+	return(sprintf("%04x",$data));
+}
\ No newline at end of file
Index: util/transform_name2addr.pl
===================================================================
--- /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/util/transform_name2addr.pl	(nonexistent)
+++ /1306ac/branch/mouse/YJX_Project/Only_24G_Logo_Pair_50Times/util/transform_name2addr.pl	(working copy)
@@ -0,0 +1,107 @@
+###########################
+#该脚本的功能为：将文件中的寄存器名字改成寄存器地址
+#两者之间的映射关系为$Memmap_path文件中的映射表
+
+$Sched_path=$ARGV[0];
+$Sched_test_path=$ARGV[1];
+$Memmap_path=$ARGV[2];
+open(Sched,$Sched_path)||die("Cannot open files\n");
+@sched=<Sched>;
+close(Sched);
+open(Sched_test,">$Sched_test_path");
+print Sched_test ("");
+close(Sched_test);
+open(Sched_test,">$Sched_test_path");
+open(Memmap,$Memmap_path)||die("Cannot open files\n");
+@memmap=<Memmap>;
+close(Memmap);
+$type_add=0;
+$type_exchange=0;
+foreach $sched(@sched)
+{
+	$sched_begin = $sched;
+	@Sched = split(/[#]+/, $sched);
+	$sched = @Sched[0];
+	@Sched[0] = "";
+	if($sched =~ /mem[\w]+/)
+	{
+		@memmap_name = split(/[\W]+/, $sched);
+		foreach $memmap_name(@memmap_name)
+		{
+			if($memmap_name =~ /mem[\w]+/)
+			{
+				$Memmap_name=$memmap_name;
+				$type_add = 0;
+				$type_exchange = 0;
+				if($sched =~ /$Memmap_name[+]/)
+				{
+					$type_add = 1;#修改的类型第一种，加
+					@ADD_Num=split(/[^0-9\+xa-fA-F]/,$sched);
+					foreach $ADD_Num(@ADD_Num)
+					{
+						if($ADD_Num =~ /\+/)
+						{
+							if($ADD_Num =~ /0x/)
+							{
+								@add_num = split(/\+0x/,$ADD_Num);
+								$add_num1 =@add_num[1];
+								$add_num_begin = "0x".$add_num1;
+								$add_num = hex($add_num1);
+							}
+							else
+							{
+								@add_num = split(/\+/,$ADD_Num);
+								$add_num1 =@add_num[1];
+								$add_num_begin = $add_num1;
+								$add_num = int($add_num1);
+							}
+						}#$add_num是匹配出的需要加的数值，字符串形式
+					}
+				}
+				if($sched =~ /[:] *\t*$Memmap_name/)
+				{
+					$type_exchange = 1;#修改的类型第二种，高低位交换
+				}
+				foreach $memmap(@memmap)
+				{
+					if($memmap =~ /$Memmap_name/ && $memmap !~ /$Memmap_name[\w]+/)
+					{
+						@Memmap=split(/[ \t\n]/,$memmap);
+						$memmap_address=@Memmap[0];
+						$memmap_address =~ s/0x//;
+						if($type_add==1)
+						{
+							$memmap_address_D = hex($memmap_address);
+							$memmap_address_D = $memmap_address_D+$add_num;
+							$memmap_address_H = sprintf("%x", $memmap_address_D);
+							$memmap_address = $memmap_address_H;
+							$memmap_address_add_finish = $memmap_address;
+							$sched_begin =~ s/$Memmap_name\+$add_num_begin/$memmap_address/;
+						}
+						if($type_exchange==1)
+						{
+							$memmap_address_High = substr($memmap_address,0,2);
+							$memmap_address_Low = substr($memmap_address,2,2);
+							$memmap_address = $memmap_address_Low." ".$memmap_address_High;
+							if($type_add==0)
+							{
+								$sched_begin =~ s/$Memmap_name/$memmap_address/;
+							}
+							else
+							{
+								$sched_begin =~ s/$memmap_address_add_finish/$memmap_address/;
+							}
+						}
+					}
+				}
+				$sched_begin =~ s/$Memmap_name/$memmap_address/;
+			}
+		}
+		printf Sched_test ("%s",$sched_begin);
+	}
+	else
+	{
+		printf Sched_test ("%s",$sched_begin);
+	}	
+}
+close(Sched_test);
