Index: do_sdk.bat
===================================================================
--- /YC1308AF/branch/mouse/USB_4Mode_Project/RongYuan_Project/mouse_public_3mode_usb_sdk/do_sdk.bat	(revision 5271)
+++ /YC1308AF/branch/mouse/USB_4Mode_Project/RongYuan_Project/mouse_public_3mode_usb_sdk/do_sdk.bat	(working copy)
@@ -11,7 +11,7 @@
 set util_path=%now_path%util
 
 setlocal enabledelayedexpansion
-copy program\patch_sdk.prog + program\patch.prog +program\z.prog  output\bt_program23.meta
+copy program\patch_sdk.prog + program\z.prog  output\bt_program23.meta
 
 
 
Index: output/program.lis
===================================================================
--- /YC1308AF/branch/mouse/USB_4Mode_Project/RongYuan_Project/mouse_public_3mode_usb_sdk/output/program.lis	(revision 5271)
+++ /YC1308AF/branch/mouse/USB_4Mode_Project/RongYuan_Project/mouse_public_3mode_usb_sdk/output/program.lis	(working copy)
@@ -2480,6 +2480,4667 @@
 072f 20405dd2 call spid_read_flash 
 0730 20404651 call mouse_spid_flash_powerdown 
 0731 20203fa5 branch mouse_sensor_spi_init 
+              org 0x3c75
+
+mouse_init:
+3c75 20406e5e call enable_authrom 
+3c76 20403ca6 call mouse_setting_config 
+3c77 204041e7 call mouse_init_sunt 
+3c78 204040ce call mouse_dpi_config 
+3c79 20758000 rtn wake 
+3c7a 20404766 call mouse_drawing_optima_init 
+3c7b 20403c83 call mouse_cb_fuction 
+3c7c 2040427c call mouse_sensor_powerdown 
+3c7d 6fe0c92f fetch 1 ,mem_usb_addr 
+3c7e c3838000 rtnbit1 7 
+
+mouse_init_wireless:
+3c7f 6fe1478f fetch 2 ,mem_ui_state_map 
+3c80 c2864593 bbit1 ui_state_btn_down ,mouse_start_discovery 
+3c81 204046de call mouse_check_select_device_by_switch 
+3c82 20203e15 branch mouse_start_work 
+
+mouse_cb_fuction:
+3c83 58004902 setarg mouse_24g_before_lpm_sleep 
+3c84 67e14479 store 2 ,mem_cb_before_lpm_sleep 
+3c85 580048a5 setarg mouse_24g_package_data 
+3c86 67e1489f store 2 ,mem_cb_24g_transmit_data 
+3c87 580048cc setarg mouse_24g_search_dongle 
+3c88 67e148a1 store 2 ,mem_cb_24g_search_receiver 
+3c89 58003e80 setarg mouse_lpm_before_common 
+3c8a 67e148a3 store 2 ,mem_cb_24g_lpm_before 
+3c8b 580043df setarg mouse_le 
+3c8c 67e14461 store 2 ,mem_cb_le_process 
+3c8d 58004497 setarg mouse_bt 
+3c8e 67e14463 store 2 ,mem_cb_bt_process 
+3c8f 58003e7b setarg mouse_process_lpm_before 
+3c90 67e1445f store 2 ,mem_cb_before_lpm 
+3c91 58004374 setarg mouse_priority_bb_event 
+3c92 67e14467 store 2 ,mem_cb_bb_event_process 
+3c93 5800468b setarg mouse_idle 
+3c94 67e14465 store 2 ,mem_cb_idle_process 
+3c95 58003e5e setarg mouse_before_hibernate 
+3c96 67e1445d store 2 ,mem_cb_before_hibernate 
+3c97 580043c8 setarg mouse_le_bb_event_connect_complete 
+3c98 67e1446b store 2 ,mem_cb_att_write 
+3c99 580044f5 setarg mouse_bb_event_timer 
+3c9a 67e1446f store 2 ,mem_cb_event_timer 
+3c9b 58003fa9 setarg mouse_spi_write_flash_cb 
+3c9c 67e14473 store 2 ,mem_cb_spi_flash_write_complate 
+3c9d 58003e4d setarg mouse_lpm_check_wake_lock 
+3c9e 67e1445b store 2 ,mem_cb_check_wakelock 
+3c9f 580049f5 setarg mouse_le_transmit 
+3ca0 67e1446d store 2 ,mem_cb_ble_transmit 
+3ca1 580049f7 setarg mouse_bt_slave_match 
+3ca2 67e14477 store 2 ,mem_cb_bt_slave_match 
+3ca3 58004a0a setarg mouse_set_lpm_mult 
+3ca4 67e14471 store 2 ,mem_cb_bt_set_mult 
+3ca5 20600000 rtn 
+
+mouse_setting_config:
+3ca6 20758000 rtn wake 
+3ca7 2040260e call g24_transmit_init 
+3ca8 204022b5 call g24_chmap_param_init 
+3ca9 20403f60 call mouse_gpio_init 
+3caa 20403dd6 call mouse_param_init 
+3cab 20401ac2 call le_set_config_fixed_ltk 
+3cac 20401aeb call le_set_justwork 
+3cad 20401ade call le_set_fixed_ltk 
+3cae 20401aca call le_set_config_read_authentication 
+3caf 6fe44bbc fetch mouse_flag_len ,mem_mouse_flag 
+3cb0 c289c675 bbit1 mouse_enable_eeprom ,mouse_load_eeprom_info_check 
+3cb1 c2894636 bbit1 mouse_enable_flash ,mouse_load_flash_info_check 
+3cb2 20600000 rtn 
+
+mouse_xtal_init:
+3cb3 7040c508 jam 0x08 ,mem_fcomp_div 
+3cb4 6fe44bbc fetch mouse_flag_len ,mem_mouse_flag 
+3cb5 c3860000 rtnbit1 mouse_enable_16m 
+3cb6 7040c518 jam 0x18 ,mem_fcomp_div 
+3cb7 20600000 rtn 
+
+mouse_default_init:
+3cb8 700b58ff jam 0xff ,mem_usb_offline_check_gpio 
+3cb9 704793ff jam 0xff ,mem_ui_button_gpio 
+3cba 7047921e jam 0x1e ,mem_ui_button_timeout 
+3cbb 7049c505 jam 5 ,mem_store_information_delay_timer_init 
+3cbc 58004932 setarg mem_mouse_led_type 
+3cbd 67e1448f store 2 ,mem_ui_led_struct_ptr 
+3cbe 70448e01 jam 1 ,mem_ui_led_struct_num 
+3cbf 58004ac6 setarg mem_mouse_rssi_signal_buf 
+3cc0 67e1489d store 2 ,mem_rssi_signal_buf_ptr 
+3cc1 70483901 jam 1 ,mem_24g_data_type 
+3cc2 6fe14902 fetch 2 ,mem_mouse_discovery_timeout 
+3cc3 67e14794 store 2 ,mem_discovery_timeout 
+3cc4 6fe14904 fetch 2 ,mem_mouse_24g_pair_timeout_init 
+3cc5 67e14885 store 2 ,mem_24g_pair_timeout_init 
+3cc6 6fe0c907 fetch 1 ,mem_mouse_24g_reconn_timeout_init 
+3cc7 67e14889 store 2 ,mem_24g_reconn_timeout_init 
+3cc8 6fe2c909 fetch 5 ,mem_rssi_dis_min_24g_init 
+3cc9 67e2c8cf store 5 ,mem_rssi_dis_min_24g 
+3cca 6fe0c908 fetch 1 ,mem_mouse_24g_pair_tx_power 
+3ccb 67e0c880 store 1 ,mem_24g_pair_tx_power 
+3ccc 6fe44bbc fetch mouse_flag_len ,mem_mouse_flag 
+3ccd 247a0000 nrtn blank 
+3cce 58020800 setarg 0x020800 
+3ccf 67e1cbbc store 3 ,mem_mouse_flag 
+3cd0 58800700 setarg 0x800700 
+3cd1 e7e18005 istore 3 ,contw 
+3cd2 58000300 setarg 0x0300 
+3cd3 e7e10005 istore 2 ,contw 
+3cd4 70409901 jam 1 ,mem_lpm_mode 
+3cd5 6fe0c90e fetch 1 ,mem_mouse_enable_flag 
+3cd6 2feffe00 isolate1 mouse_adc_enable ,pdata 
+3cd7 2040c724 call mouse_adc_read_enable ,true 
+3cd8 6fe0c90e fetch 1 ,mem_mouse_enable_flag 
+3cd9 2feffe02 isolate1 mouse_24g_250hz_enable ,pdata 
+3cda 2040c726 call mouse_24g_set_250hz ,true 
+3cdb 6fe0c90e fetch 1 ,mem_mouse_enable_flag 
+3cdc 2feffe01 isolate1 mouse_search_dongle_enable ,pdata 
+3cdd 2040c728 call mouse_24g_search_dongle_enable ,true 
+3cde 6fe0c90e fetch 1 ,mem_mouse_enable_flag 
+3cdf 2feffe03 isolate1 mouse_clk_16m_enable ,pdata 
+3ce0 2040c72a call mouse_16m_enable ,true 
+3ce1 6fe0c90e fetch 1 ,mem_mouse_enable_flag 
+3ce2 2feffe04 isolate1 mouse_dpi_4_level_enable ,pdata 
+3ce3 2040c72c call mouse_dpi_4level_enable ,true 
+3ce4 6fe0c90e fetch 1 ,mem_mouse_enable_flag 
+3ce5 2feffe05 isolate1 mouse_keyboard_enable ,pdata 
+3ce6 2040c736 call mouse_customer_key_enable ,true 
+3ce7 6fe0c869 fetch 1 ,mem_24g_ch_map_update 
+3ce8 245a22c4 ncall g24_chamap_param_update ,blank 
+3ce9 20403cb3 call mouse_xtal_init 
+3cea 6fe0c90f fetch 1 ,mem_mouse_global_setup 
+3ceb 1fe10407 and pdata ,0x07 ,temp 
+3cec 6048c4a3 storet 1 ,mem_adc_channel 
+3ced 1fe97e00 rshift3 pdata ,pdata 
+3cee 1fe10401 and pdata ,0x01 ,temp 
+3cef 6048c869 storet 1 ,mem_24g_ch_map_update 
+3cf0 1fe37e00 rshift pdata ,pdata 
+3cf1 1fe10403 and pdata ,0x03 ,temp 
+3cf2 6048c901 storet 1 ,mem_adc_config_flag_init 
+3cf3 1feb7e00 rshift2 pdata ,pdata 
+3cf4 1fe17e03 and pdata ,0x03 ,pdata 
+3cf5 20404812 call mouse_24g_long_sleep_set 
+3cf6 6fe0c910 fetch 1 ,mem_mouse_global_setup1 
+3cf7 1fe10403 and pdata ,0x03 ,temp 
+3cf8 6048c929 storet 1 ,mem_sensor_angle_default 
+3cf9 1feb7e00 rshift2 pdata ,pdata 
+3cfa 1fe10403 and pdata ,0x03 ,temp 
+3cfb 6048c92a storet 1 ,mem_sensor_angle_switch 
+3cfc 1feb7e00 rshift2 pdata ,pdata 
+3cfd 1fe10401 and pdata ,0x01 ,temp 
+3cfe 6048c92b storet 1 ,mem_config_sensor_dpi 
+3cff 6048c997 storet 1 ,mem_mouse_dpi 
+3d00 1fe37e00 rshift pdata ,pdata 
+3d01 1fe10401 and pdata ,0x01 ,temp 
+3d02 6048c87a storet 1 ,mem_24g_disable_fec1 
+3d03 1fe37e00 rshift pdata ,pdata 
+3d04 1fe17e03 and pdata ,0x03 ,pdata 
+3d05 67e0cbc5 store 1 ,mem_device_number 
+3d06 44e14018 bpatch patch18_2 ,mem_patch18 
+3d07 580b0c0a setarg 0x0b0c0a 
+3d08 67e1c91c store 3 ,mem_lbutton_gpio 
+3d09 58ffffff setarg 0xffffff 
+3d0a e7e18005 istore 3 ,contw 
+3d0b 580607ff setarg 0x0607ff 
+3d0c e7e18005 istore 3 ,contw 
+3d0d 58ffffff setarg 0xffffff 
+3d0e e7e18005 istore 3 ,contw 
+3d0f 7048fb0a jam 0x0a ,mem_adc_read_time_init 
+3d10 58000064 setarg 0x0064 
+3d11 67e14bd9 store 2 ,mem_adc_low_volatage_led_blink_timer 
+3d12 20403ebc call mouse_adc_vol_init 
+3d13 58001770 setarg 0x1770 
+3d14 67e14bcf store 2 ,mem_mouse_no_data_timeout 
+3d15 704bd114 jam 0x14 ,mem_mouse_device_poweron_timer_count_init 
+3d16 58000190 setarg 0x0190 
+3d17 67e14bd7 store 2 ,mem_mouse_low_v_led_blink_time 
+3d18 67e14bd3 store 2 ,mem_mouse_dpi_led_blink_time 
+3d19 580003e8 setarg 0x03e8 
+3d1a 67e14bd5 store 2 ,mem_mouse_disconvey_led_blink_time 
+3d1b 70488107 jam 0x07 ,mem_rssi_buff_index 
+3d1c 7048ce7d jam 125 ,mem_power_ctrl_pac_succ_cnt_init 
+3d1d 7041e800 jam tx_power_0db ,mem_tx_power 
+3d1e 70489001 jam 0x01 ,mem_24g_fast_conn_enable 
+3d1f 58000f0f setarg 0x0f0f 
+3d20 67e14891 store 2 ,mem_24g_fast_conn_addr 
+3d21 67e14893 store 2 ,mem_24g_fast_conn_addr + 2 
+3d22 6fe140a8 fetch 2 ,mem_lap 
+3d23 67e140ac store 2 ,mem_lap + 4 
+3d24 d8a0437a arg mem_le_lap ,contw 
+3d25 d8c040a8 arg mem_lap ,contr 
+3d26 df200006 arg 0x06 ,loopcnt 
+3d27 20407ed9 call reverse_byte 
+3d28 704b9b20 jam 0x20 ,mem_lpm_mult_init 
+3d29 70493e34 jam 0x34 ,mem_device1_type 
+3d2a 6fe3437a fetch 6 ,mem_le_lap 
+3d2b 67e34955 store 6 ,mem_device1_locall_addr 
+3d2c 704bc402 jam 0x02 ,mem_mouse_bluetooth_type 
+3d2d 7043e71f jam 0x1f ,mem_le_adv_data_len 
+3d2e 58050102 setarg 0x050102 
+3d2f 67e1c3e8 store 3 ,mem_le_adv_data 
+3d30 58120303 setarg 0x120303 
+3d31 e7e18005 istore 3 ,contw 
+3d32 58190318 setarg 0x190318 
+3d33 e7e18005 istore 3 ,contw 
+3d34 580003c2 setarg 0x03c2 
+3d35 e7e10005 istore 2 ,contw 
+3d36 5806ff06 setarg 0x06ff06 
+3d37 67e1cae3 store 3 ,mem_le_adv_swift_pair 
+3d38 58000300 setarg 0x000300 
+3d39 e7e18005 istore 3 ,contw 
+3d3a 58090c80 setarg 0x090c80 
+3d3b e7e18005 istore 3 ,contw 
+3d3c 58355442 setarg 0x355442 
+3d3d e7e18005 istore 3 ,contw 
+3d3e 5820322e setarg 0x20322e 
+3d3f e7e18005 istore 3 ,contw 
+3d40 58756f4d setarg 0x756f4d 
+3d41 e7e18005 istore 3 ,contw 
+3d42 58006573 setarg 0x6573 
+3d43 e7e10005 istore 2 ,contw 
+3d44 7044071f jam 0x1f ,mem_le_scan_data_len 
+3d45 d8c04aea arg mem_le_adv_swift_pair + 7 ,contr 
+3d46 d8a04408 arg mem_le_scan_data ,contw 
+3d47 df20000d arg 13 ,loopcnt 
+3d48 20407dd4 call memcpy 
+3d49 6fe0c408 fetch 1 ,mem_le_scan_data 
+3d4a 1fe0ffff increase -1 ,pdata 
+3d4b 67e0c2f7 store 1 ,mem_le_name_len 
+3d4c d8c0440a arg mem_le_scan_data + 2 ,contr 
+3d4d d8a042f8 arg mem_le_name_len + 1 ,contw 
+3d4e df20000b arg 11 ,loopcnt 
+3d4f 20407dd4 call memcpy 
+3d50 58070007 setarg 0x070007 
+3d51 67e1c372 store 3 ,mem_le_interval_min 
+3d52 58002000 setarg 0x002000 
+3d53 e7e18005 istore 3 ,contw 
+3d54 5800012c setarg 0x012c 
+3d55 e7e10005 istore 2 ,contw 
+3d56 58181203 setarg 0x181203 
+3d57 67e1cadd store 3 ,mem_le_adv_ind 
+3d58 580000ff setarg 0x0000ff 
+3d59 67e1cae0 store 3 ,mem_le_adv_direct_ind 
+3d5a 380000fb setsect 0 ,0xfb 
+3d5b 3806c212 setsect 1 ,0x2c212 
+3d5c 3808800f setsect 2 ,0x800f 
+3d5d 380c0021 setsect 3 ,0x21 
+3d5e 67e4444c store 8 ,mem_local_rx_max_octets 
+3d5f 70443207 jam 0x07 ,mem_le_adv_channel_map 
+3d60 58000015 setarg 0x0015 
+3d61 67e14af8 store 2 ,mem_le_keyboard_handle 
+3d62 58000019 setarg 0x0019 
+3d63 67e14357 store 2 ,mem_le_notify_handle 
+3d64 5800001d setarg 0x001d 
+3d65 67e14afa store 2 ,mem_le_multimedia_handle 
+3d66 58000021 setarg 0x0021 
+3d67 67e14afc store 2 ,mem_le_systemctrl_handle 
+3d68 58000030 setarg 0x0030 
+3d69 67e14afe store 2 ,mem_le_battery_level_handle 
+3d6a 58000022 setarg 0x0022 
+3d6b 67e143d1 store 2 ,mem_le_pairing_handle 
+3d6c 704b0196 jam 0x96 ,mem_le_battery_level_updata_timer_init 
+3d6d 70493d00 jam mode_24g_device ,mem_device_flag 
+3d6e 204022d8 call g24_enable_1m 
+3d6f 204022db call g24_pair_param_init 
+3d70 58604800 setarg 0x604800 
+3d71 67e1c85f store 3 ,mem_24g_enter_hibernate 
+3d72 5800012c setarg 0x012c 
+3d73 67e148c6 store 2 ,mem_24g_long_sleep_param_update_timer_init 
+3d74 58000050 setarg 0x0050 
+3d75 67e148c4 store 2 ,mem_24g_transmit_by_interrupt_exit_count_init 
+3d76 58000005 setarg 0x05 
+3d77 67e14bcb store 2 ,mem_mouse_24g_power_on_fast_conn_timer 
+3d78 58000708 setarg 0x0708 
+3d79 67e14bcd store 2 ,mem_mouse_24g_search_dongle_time_init 
+3d7a 58010403 setarg 0x010403 
+3d7b 67e1c9d5 store 3 ,mem_mouse_dpi_seting 
+3d7c 582a2002 setarg 0x2a2002 
+3d7d e7e18005 istore 3 ,contw 
+3d7e 5822153f setarg 0x22153f 
+3d7f e7e18005 istore 3 ,contw 
+3d80 58114433 setarg 0x114433 
+3d81 e7e18005 istore 3 ,contw 
+3d82 58265a09 setarg 0x265a09 
+3d83 67e1c9e4 store 3 ,mem_sensor_3212_init 
+3d84 58041934 setarg 0x041934 
+3d85 e7e18005 istore 3 ,contw 
+3d86 58000009 setarg 0x0009 
+3d87 e7e10005 istore 2 ,contw 
+3d88 5800ffff setarg 0xffff 
+3d89 e7e10005 istore 2 ,contw 
+3d8a 580d5a09 setarg 0x0d5a09 
+3d8b 67e1c9f8 store 3 ,mem_sensor_3205_init 
+3d8c 58ed1d10 setarg 0xed1d10 
+3d8d e7e18005 istore 3 ,contw 
+3d8e 5800807d setarg 0x807d 
+3d8f e7e10005 istore 2 ,contw 
+3d90 5800ffff setarg 0xffff 
+3d91 e7e10005 istore 2 ,contw 
+3d92 58ff5a09 setarg 0xff5a09 
+3d93 67e1ca3e store 3 ,mem_sensor_8650_init 
+3d94 5840ab27 setarg 0x40ab27 
+3d95 e7e18005 istore 3 ,contw 
+3d96 589b56b3 setarg 0x9b56b3 
+3d97 e7e18005 istore 3 ,contw 
+3d98 5812a8e6 setarg 0x12a8e6 
+3d99 e7e18005 istore 3 ,contw 
+3d9a 58bec0a9 setarg 0xbec0a9 
+3d9b e7e18005 istore 3 ,contw 
+3d9c 58afa5e6 setarg 0xafa5e6 
+3d9d e7e18005 istore 3 ,contw 
+3d9e 58a121a0 setarg 0xa121a0 
+3d9f e7e18005 istore 3 ,contw 
+3da0 5810b802 setarg 0x10b802 
+3da1 e7e18005 istore 3 ,contw 
+3da2 58a70bb9 setarg 0xa70bb9 
+3da3 e7e18005 istore 3 ,contw 
+3da4 58d0b5ff setarg 0xd0b5ff 
+3da5 e7e18005 istore 3 ,contw 
+3da6 58ff00b6 setarg 0xff00b6 
+3da7 e7e18005 istore 3 ,contw 
+3da8 58000900 setarg 0x000900 
+3da9 e7e18005 istore 3 ,contw 
+3daa 5800ffff setarg 0xffff 
+3dab e7e10005 istore 2 ,contw 
+3dac 580d5a09 setarg 0x0d5a09 
+3dad 67e1ca64 store 3 ,mem_sensor_ka8ul_init 
+3dae 58c50e10 setarg 0xc50e10 
+3daf e7e18005 istore 3 ,contw 
+3db0 58109a5b setarg 0x109a5b 
+3db1 e7e18005 istore 3 ,contw 
+3db2 58421138 setarg 0x421138 
+3db3 e7e18005 istore 3 ,contw 
+3db4 58412828 setarg 0x412828 
+3db5 e7e18005 istore 3 ,contw 
+3db6 58394923 setarg 0x394923 
+3db7 e7e18005 istore 3 ,contw 
+3db8 584bb04a setarg 0x4bb04a 
+3db9 e7e18005 istore 3 ,contw 
+3dba 58904ca0 setarg 0x904ca0 
+3dbb e7e18005 istore 3 ,contw 
+3dbc 5809704d setarg 0x09704d 
+3dbd e7e18005 istore 3 ,contw 
+3dbe 58ffff00 setarg 0xffff00 
+3dbf e7e18005 istore 3 ,contw 
+3dc0 5846a509 setarg 0x46a509 
+3dc1 67e1ca92 store 3 ,mem_sensor_ka8g2_init 
+3dc2 58101934 setarg 0x101934 
+3dc3 e7e18005 istore 3 ,contw 
+3dc4 58690760 setarg 0x690760 
+3dc5 e7e18005 istore 3 ,contw 
+3dc6 58207d04 setarg 0x207d04 
+3dc7 e7e18005 istore 3 ,contw 
+3dc8 5809007e setarg 0x09007e 
+3dc9 e7e18005 istore 3 ,contw 
+3dca 58220d00 setarg 0x220d00 
+3dcb e7e18005 istore 3 ,contw 
+3dcc 58ff220e setarg 0xff220e 
+3dcd e7e18005 istore 3 ,contw 
+3dce 704aa7ff jam 0xff ,mem_sensor_ka8g2_init + 21 
+3dcf 580b5a09 setarg 0x0b5a09 
+3dd0 67e1cab4 store 3 ,mem_sensor_poweron_init 
+3dd1 580009f3 setarg 0x0009f3 
+3dd2 e7e18005 istore 3 ,contw 
+3dd3 5800ffff setarg 0xffff 
+3dd4 e7e10005 istore 2 ,contw 
+3dd5 20203174 branch app_sys_param_init 
+
+mouse_param_init:
+3dd6 58009468 setarg mouse_bt_sdp_addr 
+3dd7 67e14663 store 2 ,mem_ui_uuid_table 
+3dd8 58009732 setarg mouse_ble_att_list_addr 
+3dd9 67e14396 store 2 ,mem_ui_le_uuid_table 
+3dda 58002580 setarg 0x2580 
+3ddb 67e1c0b2 store 3 ,mem_class 
+3ddc 70417803 jam 3 ,mem_lpm_mult_timeout 
+3ddd 70415b08 jam 8 ,mem_lpm_overhead 
+3dde 704baf00 jam dpi_button_state_up ,mem_select_device_button_statue 
+3ddf 704baf00 jam pb_button_state_up ,mem_select_device_button_statue 
+3de0 704bb000 jam commbination_key_state_up ,mem_commbination_key_statue 
+3de1 58000200 setarg 0x0200 
+3de2 67e14159 store 2 ,mem_lpm_interval 
+3de3 70438017 jam 0x17 ,mem_le_local_mtu 
+3de4 70438217 jam 0x17 ,mem_le_remote_mtu 
+3de5 58000a77 setarg 0x0a77 
+3de6 67e14486 store 2 ,mem_spi_init_clk 
+3de7 38000306 setsect 0 ,0x306 
+3de8 38044440 setsect 1 ,0x4440 
+3de9 38090000 setsect 2 ,0x10000 
+3dea 380c4408 setsect 3 ,0x4408 
+3deb 67e4c665 store 9 ,mem_all_uuid_16bits 
+3dec 38001224 setsect 0 ,0x1224 
+3ded 38044000 setsect 1 ,0x4000 
+3dee 38080000 setsect 2 ,0x0 
+3def e7e28005 istore 5 ,contw 
+3df0 3803ffff setsect 0 ,0x3ffff 
+3df1 3806fe23 setsect 1 ,0x2fe23 
+3df2 380999d9 setsect 2 ,0x199d9 
+3df3 380c020d setsect 3 ,0x20d 
+3df4 67e440a0 store 8 ,mem_features 
+3df5 58004b06 setarg mem_le_tx_buffer0_omemalloc 
+3df6 67e143de store 2 ,mem_ble_l2cap_tx_buff0_ptr 
+3df7 58000010 setarg mouse_ble_l2cap_txbuff_size 
+3df8 67e143e0 store 2 ,mem_ble_l2cap_tx_buff_size_ptr 
+3df9 2040495b call mouse_device_led_all_off 
+3dfa 20404913 call mouse_device_poweron_timer_init 
+3dfb 20403ecf call mouse_adc_gpio_mux_init 
+3dfc 6fe44bbc fetch mouse_flag_len ,mem_mouse_flag 
+3dfd c30dbe02 bbit0 mouse_enable_bt_125hz ,mouse_param_init_intervl_end 
+3dfe 7044550c jam classic_interval_7_5ms ,mem_sniff_param_interval 
+3dff 58000006 setarg le_interval_7_5ms 
+3e00 67e14372 store 2 ,mem_le_interval_min 
+3e01 67e14374 store 2 ,mem_le_interval_min + 2 
+
+mouse_param_init_intervl_end:
+3e02 2040261a call g24_interval_param_8ms 
+3e03 6fe44bbc fetch mouse_flag_len ,mem_mouse_flag 
+3e04 c30c3e06 bbit0 mouse_enable_24g_250hz ,mouse_24g_short_sleep_set_end 
+3e05 20402612 call g24_interval_param_4ms 
+
+mouse_24g_short_sleep_set_end:
+3e06 6fe0c93d fetch 1 ,mem_device_flag 
+3e07 67e0cac5 store 1 ,mem_device_flag_temp 
+3e08 6fe1c37d fetch 3 ,mem_le_lap + 3 
+3e09 67e1cada store 3 ,mem_mouse_le_lap_temp 
+3e0a 6fe0c901 fetch 1 ,mem_adc_config_flag_init 
+3e0b 1fe17efe and pdata ,0xfe ,pdata 
+3e0c 67e0c901 store 1 ,mem_adc_config_flag_init 
+3e0d 67e0c4a2 store 1 ,mem_adc_config_flag 
+3e0e 58000000 setarg 0 
+3e0f 67e3c8d4 store 7 ,mem_mouse_key 
+3e10 6fe0c792 fetch 1 ,mem_ui_button_timeout 
+3e11 67e0cbac store 1 ,mem_bt_discovery_count 
+3e12 67e0cbad store 1 ,mem_select_device_count 
+3e13 20401a55 call le_modified_name 
+3e14 202042e0 branch mouse_sensor_set_angle 
+
+mouse_start_work:
+3e15 44e1c018 bpatch patch18_3 ,mem_patch18 
+3e16 6fe44bbc fetch mouse_flag_len ,mem_mouse_flag 
+3e17 c297c849 bbit1 mouse_enable_24g_first_auto_pairing ,mouse_24g_first_start_auto_pair_mode 
+3e18 6fe0c93d fetch 1 ,mem_device_flag 
+3e19 c0004835 beq mode_24g_device ,mouse_24g_start_mode 
+3e1a 20403e28 call mouse_wakeup_from_power_check 
+3e1b 2434432b nbranch mouse_buletooth_fast_conn_init ,user 
+
+mouse_start_reconnect_device:
+3e1c 44e24018 bpatch patch18_4 ,mem_patch18 
+3e1d da20493e arg mem_device1_type ,rega 
+3e1e 6fe0c93d fetch 1 ,mem_device_flag 
+3e1f 1fe0ffff increase -1 ,pdata 
+3e20 1feffe1d mul32 pdata ,29 ,pdata 
+3e21 9a20a200 iadd rega ,rega 
+3e22 efe08011 ifetch 1 ,rega 
+3e23 67e0c484 store 1 ,mem_xrecord_mode 
+
+mouse_start_reconnect:
+3e24 6fe0c484 fetch 1 ,mem_xrecord_mode 
+3e25 c019be32 beq rec_3_mode ,mouse3_0_check_reconn_target 
+3e26 c01a3e3e beq rec_4_mode ,mouse4_0_check_reconn_target 
+3e27 20204593 branch mouse_start_discovery 
+
+mouse_wakeup_from_power_check:
+3e28 44e2c018 bpatch patch18_5 ,mem_patch18 
+3e29 78547c00 disable user 
+3e2a 6fe44bbc fetch mouse_flag_len ,mem_mouse_flag 
+3e2b c305be2f bbit0 mouse_enable_wakeup_from_power ,mouse_wakeup_from_power 
+3e2c 6fe08989 fetch 1 ,mem_wakup_from_power_flag 
+3e2d c3013e2f bbit0 bit_power_on ,mouse_wakeup_from_power 
+3e2e 78347c00 enable user 
+
+mouse_wakeup_from_power:
+3e2f 6fe0cac2 fetch 1 ,mem_reconn_times_init 
+3e30 67e0cac1 store 1 ,mem_reconn_times 
+3e31 20600000 rtn 
+
+mouse3_0_check_reconn_target:
+3e32 68494bc9 fetcht 2 ,mem_mouse_fast_page_to 
+3e33 6fe0cad2 fetch 1 ,mem_mouse_bluetooth_fast_conn_flag 
+3e34 c07fbe36 beq 0xff ,mouse3_0_check_reconn_target_next 
+3e35 68494bc6 fetcht 2 ,mem_mouse_page_to 
+
+mouse3_0_check_reconn_target_next:
+3e36 604940c1 storet 2 ,mem_page_to 
+3e37 6fe341dd fetch 6 ,mem_hci_plap 
+3e38 203a326a branch app_bt_start_discovery_short ,blank 
+3e39 70447f17 jam 0x17 ,mem_app_connection_options 
+3e3a 6fe0c767 fetch 1 ,mem_ssp_enable 
+3e3b 243a3260 nbranch app_bt_start_reconnect ,blank 
+3e3c 70447f04 jam 0x04 ,mem_app_connection_options 
+3e3d 20203260 branch app_bt_start_reconnect 
+
+mouse4_0_check_reconn_target:
+3e3e 704ad801 jam 1 ,mem_mouse_le_reconnect_flag 
+3e3f 6848cbc8 fetcht 1 ,mem_mouse_fast_direct_timeout 
+3e40 6fe0cad2 fetch 1 ,mem_mouse_bluetooth_fast_conn_flag 
+3e41 c07fbe43 beq 0xff ,mouse4_0_check_reconn_target_next 
+3e42 6848c906 fetcht 1 ,mem_mouse_direct_timeout 
+
+mouse4_0_check_reconn_target_next:
+3e43 6048cb88 storet 1 ,mem_mouse_direct_timer 
+3e44 20403297 call app_lpm_mult_disable 
+3e45 6fe1cae0 fetch 3 ,mem_le_adv_direct_ind 
+3e46 67e1c3ec store 3 ,mem_le_adv_data + 4 
+3e47 20404428 call mouse_le_check_adv_flag 
+3e48 58000004 setarg adv_flag_bredr_not_supported 
+3e49 e7e08006 istore 1 ,contr 
+3e4a d8c04408 arg mem_le_scan_data ,contr 
+3e4b 2040442f call mouse_le_adv_data_update 
+3e4c 20207959 branch check_51cmd_adv 
+
+mouse_lpm_check_wake_lock:
+3e4d c513324f bmark1 mark_24g ,app_get_lpm_wake_lock 
+3e4e 6fe0cabd fetch 1 ,mem_mouse_clear_sensor_data_flag 
+3e4f 203a324f branch app_get_lpm_wake_lock ,blank 
+3e50 6fe0cb05 fetch 1 ,mem_mouse_le_conn_param_reject 
+3e51 c000b24f beq le_lpm_disable ,app_get_lpm_wake_lock 
+3e52 6fe144db fetch 2 ,mem_sdp_remote_cid 
+3e53 243a324f nbranch app_get_lpm_wake_lock ,blank 
+3e54 6fe0c8e5 fetch 1 ,mem_mouse_wheel_trigger 
+3e55 243a324f nbranch app_get_lpm_wake_lock ,blank 
+3e56 20203251 branch app_put_lpm_wake_lock 
+
+mouse_delay_enter_hibernata:
+3e57 6fe0c906 fetch 1 ,mem_mouse_direct_timeout 
+3e58 67e0cad5 store 1 ,mem_mouse_bluetooth_reconnect_timeout 
+3e59 20600000 rtn 
+
+mouse_app_enter_hibernate:
+3e5a 44e34018 bpatch patch18_6 ,mem_patch18 
+3e5b 20404272 call mouse_sensor_reset 
+3e5c 2040427c call mouse_sensor_powerdown 
+3e5d 20203289 branch app_enter_hibernate 
+
+mouse_before_hibernate:
+3e5e 44e3c018 bpatch patch18_7 ,mem_patch18 
+3e5f 6ff20138 fetch 4 ,core_lpm_ctrl 
+3e60 79207e1a set1 26 ,pdata 
+3e61 67f2004c store 4 ,core_lpm_reg 
+3e62 2040154c call lpm_write_ctrl 
+3e63 20406e62 call disable_authrom 
+3e64 2040495b call mouse_device_led_all_off 
+3e65 20404055 call mouse_before_hibernate_wheel_gpio_set 
+3e66 20403e6a call mouse_setgpio_hibernate 
+3e67 2040466d call mouse_flash_power_down 
+3e68 6848c915 fetcht 1 ,mem_sensor_motion_gpio 
+3e69 202060e6 branch gpio_clr_wake 
+
+mouse_setgpio_hibernate:
+3e6a 44e44019 bpatch patch19_0 ,mem_patch19 
+3e6b 20404329 call mouse_set_sdio_high 
+3e6c 20407f52 call clear_wake 
+3e6d 20403e80 call mouse_lpm_before_common 
+3e6e 20403e72 call mouse_gpio_pu_idle 
+3e6f 6848c91b fetcht 1 ,mem_mouse_reuse_2ice_gpio 
+3e70 20403f96 call mouse_gpio_config_input_pu 
+3e71 20203f98 branch mouse_gpio_set_high_impedance 
+
+mouse_gpio_pu_idle:
+3e72 d8c08070 arg core_gpio_conf ,contr 
+3e73 df200013 arg 19 ,loopcnt 
+
+mouse_gpio_pu_idle_loop:
+3e74 efe08006 ifetch 1 ,contr 
+3e75 243a3e79 nbranch mouse_gpio_pu_idle_configured ,blank 
+3e76 58000040 setarg 0x40 
+3e77 18c08bff add contr ,-1 ,contw 
+3e78 e7e08005 istore 1 ,contw 
+
+mouse_gpio_pu_idle_configured:
+3e79 c2003e74 loop mouse_gpio_pu_idle_loop 
+3e7a 20600000 rtn 
+
+mouse_process_lpm_before:
+3e7b c6130000 rtnmark1 mark_24g 
+3e7c 20403e80 call mouse_lpm_before_common 
+3e7d 6fe0809d fetch 1 ,mem_lpm_current_mult 
+3e7e 247a0000 nrtn blank 
+3e7f 202060e6 branch gpio_clr_wake 
+
+mouse_lpm_before_common:
+3e80 44e4c019 bpatch patch19_1 ,mem_patch19 
+3e81 20403fc8 call mouse_wheel_check 
+3e82 6fe0c923 fetch 1 ,mem_mouse_sensor_sclk_gpio 
+3e83 d840003f arg gpcfg_output_high ,temp 
+3e84 2040612c call gpio_config_function_int 
+3e85 20405b62 call twspi_disable 
+3e86 6848c91c fetcht 1 ,mem_lbutton_gpio 
+3e87 204060da call gpio_set_wake 
+3e88 6848c91d fetcht 1 ,mem_rbutton_gpio 
+3e89 204060da call gpio_set_wake 
+3e8a 6848c91e fetcht 1 ,mem_mbutton_gpio 
+3e8b 204060da call gpio_set_wake 
+3e8c 6848c911 fetcht 1 ,mem_bk_button_gpio 
+3e8d 204060da call gpio_set_wake 
+3e8e 6848c912 fetcht 1 ,mem_fw_button_gpio 
+3e8f 204060da call gpio_set_wake 
+3e90 6848c913 fetcht 1 ,mem_dpi_button_gpio 
+3e91 204060da call gpio_set_wake 
+3e92 6848c91f fetcht 1 ,mem_config_select_device_button_gpio 
+3e93 204060da call gpio_set_wake 
+3e94 6848c916 fetcht 1 ,mem_customer_key_gpio 
+3e95 204060da call gpio_set_wake 
+3e96 6848c917 fetcht 1 ,mem_whee_a_data_gpio 
+3e97 204060d6 call gpio_set_wake_by_current_state 
+3e98 6848c918 fetcht 1 ,mem_whee_b_data_gpio 
+3e99 204060d6 call gpio_set_wake_by_current_state 
+3e9a 6848c920 fetcht 1 ,mem_whee_ta_data_gpio 
+3e9b 204060d6 call gpio_set_wake_by_current_state 
+3e9c 6848c921 fetcht 1 ,mem_whee_tb_data_gpio 
+3e9d 204060d6 call gpio_set_wake_by_current_state 
+3e9e 6848c915 fetcht 1 ,mem_sensor_motion_gpio 
+3e9f 202060da branch gpio_set_wake 
+
+mouse_set_mult:
+3ea0 6fe1478f fetch 2 ,mem_ui_state_map 
+3ea1 c284bea5 bbit1 ui_state_ble_connected ,mouse_set_ble_mult 
+3ea2 6fe1478f fetch 2 ,mem_ui_state_map 
+3ea3 c2803ea8 bbit1 ui_state_bt_connected ,mouse_set_bt_mult 
+3ea4 20600000 rtn 
+
+mouse_set_ble_mult:
+3ea5 1a227e00 copy rega ,pdata 
+3ea6 243a1ad2 nbranch le_set_config_short_mult ,blank 
+3ea7 20201ad4 branch le_clr_config_short_mult 
+
+mouse_set_bt_mult:
+3ea8 1a227e00 copy rega ,pdata 
+3ea9 243a150e nbranch classic_bt_set_mult_short_flag ,blank 
+3eaa 20201510 branch classic_bt_clr_mult_short_flag 
+
+mouse_adc_gpio_set:
+3eab 6fe0c4a2 fetch 1 ,mem_adc_config_flag 
+3eac c1810000 rtnne adc_config_gpio 
+
+mouse_adc_gpio_check_output:
+3ead 44e54019 bpatch patch19_2 ,mem_patch19 
+3eae 6848c4a3 fetcht 1 ,mem_adc_channel 
+3eaf 18467c03 sub temp ,3 ,null 
+3eb0 20213eb9 branch mouse_adc_gpio_4_7_set ,positive 
+3eb1 18408405 increase 5 ,temp 
+3eb2 6048c900 storet 1 ,mem_adc_channel_gpio 
+
+mouse_adc_gpio_set_next:
+3eb3 18422200 copy temp ,rega 
+3eb4 20406131 call gpio_get_config 
+3eb5 c01fc9a1 beq gpcfg_output_high ,mouse_set_24g_led_statue 
+3eb6 2040499f call mouse_clear_24g_led_statue 
+3eb7 1a220400 copy rega ,temp 
+3eb8 20206121 branch gpio_set_high_impedance 
+
+mouse_adc_gpio_4_7_set:
+3eb9 18408404 increase 4 ,temp 
+3eba 6048c900 storet 1 ,mem_adc_channel_gpio 
+3ebb 20203eb3 branch mouse_adc_gpio_set_next 
+
+mouse_adc_vol_init:
+3ebc 6fe0c901 fetch 1 ,mem_adc_config_flag_init 
+3ebd c0013ec5 beq adc_config_gpio ,mouse_adc_gpio_vol_init 
+3ebe c0003eca beq adc_config_vinlpm ,mouse_adc_gpio_vinlpm_init 
+3ebf 70490100 jam adc_config_vinlpm ,mem_adc_config_flag_init 
+3ec0 582c0172 setarg 0x2c0172 
+3ec1 67e1c8e7 store 3 ,mem_mouse_vdd_full_vol 
+3ec2 58014001 setarg 0x014001 
+3ec3 e7e18005 istore 3 ,contw 
+3ec4 20600000 rtn 
+
+mouse_adc_gpio_vol_init:
+3ec5 585d0099 setarg 0x5d0099 
+3ec6 67e1c8e7 store 3 ,mem_mouse_vdd_full_vol 
+3ec7 58007100 setarg 0x007100 
+3ec8 e7e18005 istore 3 ,contw 
+3ec9 20600000 rtn 
+
+mouse_adc_gpio_vinlpm_init:
+3eca 58c8012c setarg 0xc8012c 
+3ecb 67e1c8e7 store 3 ,mem_mouse_vdd_full_vol 
+3ecc 5800dc00 setarg 0x00dc00 
+3ecd e7e18005 istore 3 ,contw 
+3ece 20600000 rtn 
+
+mouse_adc_gpio_mux_init:
+3ecf 6fe44bbc fetch mouse_flag_len ,mem_mouse_flag 
+3ed0 c40a0000 rtnbit0 mouse_enable_adc 
+3ed1 7048f901 jam mouse_adc_check_multiple ,mem_adc_mux_status 
+3ed2 c3970000 rtnbit1 mouse_enable_dpi_key_connect_adc 
+3ed3 c3958000 rtnbit1 mouse_enable_select_device_by_switch_adc 
+3ed4 7048f900 jam mouse_adc_check_battery_only ,mem_adc_mux_status 
+3ed5 20600000 rtn 
+
+mouse_adc_read_interval:
+3ed6 6fe0c8fa fetch 1 ,mem_adc_read_timer 
+3ed7 1fe0fe01 increase 1 ,pdata 
+3ed8 67e0c8fa store 1 ,mem_adc_read_timer 
+3ed9 6848c8fb fetcht 1 ,mem_adc_read_time_init 
+3eda 98467c00 isub temp ,null 
+3edb 20600000 rtn 
+
+mouse_adc_read:
+3edc 6fe44bbc fetch mouse_flag_len ,mem_mouse_flag 
+3edd c40a0000 rtnbit0 mouse_enable_adc 
+3ede 20403eab call mouse_adc_gpio_set 
+3edf 6fe0c8f9 fetch 1 ,mem_adc_mux_status 
+3ee0 203a3ef3 branch mouse_adc_read_battery ,blank 
+3ee1 6fe0c4a2 fetch 1 ,mem_adc_config_flag 
+3ee2 c0013ee8 beq adc_config_gpio ,mouse_adc_read_gpio_mux_start 
+3ee3 7048f903 jam mouse_adc_check_vinlpm_multiple ,mem_adc_mux_status 
+3ee4 20403ed6 call mouse_adc_read_interval 
+3ee5 20213eea branch mouse_adc_read_gpio ,positive 
+3ee6 20403eef call mouse_adc_read_vinlpm 
+3ee7 20203ef9 branch mouse_adc_read_start 
+
+mouse_adc_read_gpio_mux_start:
+3ee8 7048f902 jam mouse_adc_check_gpio_multiple ,mem_adc_mux_status 
+3ee9 20203ef9 branch mouse_adc_read_start 
+
+mouse_adc_read_gpio:
+3eea 20403ead call mouse_adc_gpio_check_output 
+3eeb 7044a202 jam adc_config_gpio ,mem_adc_config_flag 
+3eec 6fe0cbbb fetch 1 ,mem_24g_device_led_status 
+3eed 245a3eef ncall mouse_adc_read_vinlpm ,blank 
+3eee 20203ef9 branch mouse_adc_read_start 
+
+mouse_adc_read_vinlpm:
+3eef 7048fa00 jam 0 ,mem_adc_read_timer 
+3ef0 6fe0c901 fetch 1 ,mem_adc_config_flag_init 
+3ef1 67e0c4a2 store 1 ,mem_adc_config_flag 
+3ef2 20600000 rtn 
+
+mouse_adc_read_battery:
+3ef3 6fe0c4a2 fetch 1 ,mem_adc_config_flag 
+3ef4 c0813ef7 bne adc_config_gpio ,mouse_adc_read_battery_start 
+3ef5 6fe0cbbb fetch 1 ,mem_24g_device_led_status 
+3ef6 247a0000 nrtn blank 
+
+mouse_adc_read_battery_start:
+3ef7 20403ed6 call mouse_adc_read_interval 
+3ef8 24610000 nrtn positive 
+
+mouse_adc_read_start:
+3ef9 44e5c019 bpatch patch19_3 ,mem_patch19 
+3efa 6fe0cbbb fetch 1 ,mem_24g_device_led_status 
+3efb 247a0000 nrtn blank 
+3efc 7048fa00 jam 0 ,mem_adc_read_timer 
+3efd 20406166 call enable_adc 
+3efe 2040618d call vdd_calculate_by_mode 
+3eff 67e148ed store 2 ,mem_mouse_vdd_now_vol 
+3f00 6fe0c4a2 fetch 1 ,mem_adc_config_flag 
+3f01 c0813f08 bne adc_config_gpio ,mouse_adc_data_process 
+3f02 684948ed fetcht 2 ,mem_mouse_vdd_now_vol 
+3f03 184ffe08 mul32 temp ,8 ,pdata 
+3f04 1fe6fc0a div pdata ,10 
+3f05 20407e61 call get_div_result 
+3f06 9840fe00 iadd temp ,pdata 
+3f07 67e148ed store 2 ,mem_mouse_vdd_now_vol 
+
+mouse_adc_data_process:
+3f08 da2048e7 arg mem_mouse_vdd_calculate_set ,rega 
+3f09 20403f1a call mouse_adc_bat_percent_lowpower_out 
+3f0a 6fe0c4a6 fetch 1 ,mem_adc_power_flag 
+3f0b c2813f5c bbit1 2 ,mouse_adc_button_press 
+3f0c c280bf5e bbit1 1 ,mouse_power_down 
+3f0d c3003f12 bbit0 0 ,mouse_adc_no_low_voltage 
+3f0e 7048fe01 jam 1 ,mem_mouse_adc_last_low_voltage_flag 
+3f0f 20203f10 branch mouse_adc_low_voltage 
+
+mouse_adc_low_voltage:
+3f10 d8e00004 arg mouse_low_voltage_flag ,queue 
+3f11 2020472e branch mouse_enable_function_flag 
+
+mouse_adc_no_low_voltage:
+3f12 d8e00004 arg mouse_low_voltage_flag ,queue 
+3f13 20404732 call mouse_disable_function_flag 
+3f14 7048fc0c jam 12 ,mem_adc_low_volatage_led_timer_count 
+3f15 6fe0c8fe fetch 1 ,mem_mouse_adc_last_low_voltage_flag 
+3f16 207a0000 rtn blank 
+3f17 7048fe00 jam 0 ,mem_mouse_adc_last_low_voltage_flag 
+3f18 6848c925 fetcht 1 ,mem_config_low_voltage_alarm_gpio 
+3f19 20204978 branch mouse_led_off 
+
+mouse_adc_bat_percent_lowpower_out:
+3f1a 44e64019 bpatch patch19_4 ,mem_patch19 
+3f1b efe40011 ifetch 8 ,rega 
+3f1c 67e4095c store 8 ,mem_pdatatemp 
+3f1d 6fe0c8f9 fetch 1 ,mem_adc_mux_status 
+3f1e c0003f32 beq mouse_adc_check_battery_only ,mouse_adc_bat_percent_lowpower_out_battery 
+3f1f c0013f21 beq mouse_adc_check_gpio_multiple ,mouse_adc_bat_percent_lowpower_out_gpio_multiple 
+3f20 c001bf51 beq mouse_adc_check_vinlpm_multiple ,mouse_adc_bat_percent_lowpower_out_vinlpm_multiple 
+
+mouse_adc_bat_percent_lowpower_out_gpio_multiple:
+3f21 6fe44bbc fetch mouse_flag_len ,mem_mouse_flag 
+3f22 c3173f27 bbit0 mouse_enable_dpi_key_connect_adc ,mouse_adc_bat_percent_lowpower_out_gpio_switch 
+3f23 6fe10962 fetch 2 ,mem_pdatatemp + 6 
+3f24 684948ef fetcht 2 ,mem_mouse_vdd_button_press_vol 
+3f25 98467c00 isub temp ,null 
+3f26 24213f54 nbranch mouse_adc_set_button_press_flag ,positive 
+
+mouse_adc_bat_percent_lowpower_out_gpio_switch:
+3f27 6fe44bbc fetch mouse_flag_len ,mem_mouse_flag 
+3f28 c315bf32 bbit0 mouse_enable_select_device_by_switch_adc ,mouse_adc_bat_percent_lowpower_out_battery 
+3f29 7048ff00 jam 0 ,mem_mouse_adc_button_press_flag 
+3f2a 6fe10962 fetch 2 ,mem_pdatatemp + 6 
+3f2b 684948f1 fetcht 2 ,mem_mouse_vdd_switch_gnd_24g_vol 
+3f2c 98467c00 isub temp ,null 
+3f2d 24213f30 nbranch mouse_select_24gdevice ,positive 
+3f2e 204046e7 call mouse_select_btdevice 
+3f2f 20203f32 branch mouse_adc_bat_percent_lowpower_out_battery 
+
+mouse_select_24gdevice:
+3f30 204046eb call mouse_check_select_24gdevice 
+3f31 20203f32 branch mouse_adc_bat_percent_lowpower_out_battery 
+
+mouse_adc_bat_percent_lowpower_out_battery:
+3f32 20403f58 call mouse_adc_clear_button_press_flag 
+3f33 204061d6 call adc_clear_no_power_flag 
+3f34 204061ce call adc_clear_low_power_flag 
+3f35 6fe10962 fetch 2 ,mem_pdatatemp + 6 
+3f36 6849095e fetcht 2 ,mem_pdatatemp + 2 
+3f37 98467c00 isub temp ,null 
+3f38 244161d2 ncall adc_set_no_power_flag ,positive 
+3f39 68490960 fetcht 2 ,mem_pdatatemp + 4 
+3f3a 98467c00 isub temp ,null 
+3f3b 244161ca ncall adc_set_low_power_flag ,positive 
+
+mouse_adc_bat_level_set:
+3f3c 6fe10962 fetch 2 ,mem_pdatatemp + 6 
+3f3d 6849095c fetcht 2 ,mem_pdatatemp 
+3f3e 98467c00 isub temp ,null 
+3f3f 20213f4d branch mouse_adc_bat_level_100_percent ,positive 
+3f40 6849095e fetcht 2 ,mem_pdatatemp + 2 
+3f41 98467e00 isub temp ,pdata 
+3f42 24213f4f nbranch mouse_adc_bat_level_0_percent ,positive 
+3f43 203a3f4f branch mouse_adc_bat_level_0_percent ,blank 
+3f44 1fefa264 mul32 pdata ,100 ,rega 
+3f45 6fe1095c fetch 2 ,mem_pdatatemp 
+3f46 6849095e fetcht 2 ,mem_pdatatemp + 2 
+3f47 98460400 isub temp ,temp 
+3f48 1a227e00 copy rega ,pdata 
+3f49 9846fc00 idiv temp 
+3f4a 20407e61 call get_div_result 
+3f4b 67e0cb00 store 1 ,mem_le_battery_level_percentage 
+3f4c 20600000 rtn 
+
+mouse_adc_bat_level_100_percent:
+3f4d 704b0064 jam 100 ,mem_le_battery_level_percentage 
+3f4e 20600000 rtn 
+
+mouse_adc_bat_level_0_percent:
+3f4f 704b0000 jam 0 ,mem_le_battery_level_percentage 
+3f50 20600000 rtn 
+
+mouse_adc_bat_percent_lowpower_out_vinlpm_multiple:
+3f51 6fe0c4a2 fetch 1 ,mem_adc_config_flag 
+3f52 c0013f21 beq adc_config_gpio ,mouse_adc_bat_percent_lowpower_out_gpio_multiple 
+3f53 20203f32 branch mouse_adc_bat_percent_lowpower_out_battery 
+
+mouse_adc_set_button_press_flag:
+3f54 6848c4a6 fetcht 1 ,mem_adc_power_flag 
+3f55 79200402 set1 2 ,temp 
+3f56 6048c4a6 storet 1 ,mem_adc_power_flag 
+3f57 20600000 rtn 
+
+mouse_adc_clear_button_press_flag:
+3f58 6848c4a6 fetcht 1 ,mem_adc_power_flag 
+3f59 793f8402 set0 2 ,temp 
+3f5a 6048c4a6 storet 1 ,mem_adc_power_flag 
+3f5b 20600000 rtn 
+
+mouse_adc_button_press:
+3f5c 7048ff01 jam 1 ,mem_mouse_adc_button_press_flag 
+3f5d 20600000 rtn 
+
+mouse_power_down:
+3f5e 2040495b call mouse_device_led_all_off 
+3f5f 20203e5a branch mouse_app_enter_hibernate 
+
+mouse_gpio_init:
+3f60 6848c4c3 fetcht 1 ,mem_eeprom_wp_gpio 
+3f61 2040610d call gpio_config_output 
+3f62 20407a1f call usb_offline_check_init 
+3f63 6848c91c fetcht 1 ,mem_lbutton_gpio 
+3f64 20403f96 call mouse_gpio_config_input_pu 
+3f65 6848c91d fetcht 1 ,mem_rbutton_gpio 
+3f66 20403f96 call mouse_gpio_config_input_pu 
+3f67 6848c91e fetcht 1 ,mem_mbutton_gpio 
+3f68 20403f96 call mouse_gpio_config_input_pu 
+3f69 6848c911 fetcht 1 ,mem_bk_button_gpio 
+3f6a 20403f96 call mouse_gpio_config_input_pu 
+3f6b 6848c912 fetcht 1 ,mem_fw_button_gpio 
+3f6c 20403f96 call mouse_gpio_config_input_pu 
+3f6d 6848c913 fetcht 1 ,mem_dpi_button_gpio 
+3f6e 20403f96 call mouse_gpio_config_input_pu 
+3f6f 6848c914 fetcht 1 ,mem_matrix_public_gpio 
+3f70 20403f96 call mouse_gpio_config_input_pu 
+3f71 6848c91f fetcht 1 ,mem_config_select_device_button_gpio 
+3f72 20403f96 call mouse_gpio_config_input_pu 
+3f73 6848c916 fetcht 1 ,mem_customer_key_gpio 
+3f74 20403f96 call mouse_gpio_config_input_pu 
+3f75 6848c917 fetcht 1 ,mem_whee_a_data_gpio 
+3f76 20403f96 call mouse_gpio_config_input_pu 
+3f77 6848c918 fetcht 1 ,mem_whee_b_data_gpio 
+3f78 20403f96 call mouse_gpio_config_input_pu 
+3f79 6848c920 fetcht 1 ,mem_whee_ta_data_gpio 
+3f7a 20403f96 call mouse_gpio_config_input_pu 
+3f7b 6848c921 fetcht 1 ,mem_whee_tb_data_gpio 
+3f7c 20403f96 call mouse_gpio_config_input_pu 
+3f7d 6848c915 fetcht 1 ,mem_sensor_motion_gpio 
+3f7e 20403f96 call mouse_gpio_config_input_pu 
+3f7f 6848c922 fetcht 1 ,mem_device_switch_gpio 
+3f80 20403f96 call mouse_gpio_config_input_pu 
+3f81 6848c925 fetcht 1 ,mem_config_low_voltage_alarm_gpio 
+3f82 2040610d call gpio_config_output 
+3f83 6848c919 fetcht 1 ,mem_config_device_24g_led_gpio 
+3f84 2040610d call gpio_config_output 
+3f85 6848c926 fetcht 1 ,mem_config_device_bt1_led_gpio 
+3f86 2040610d call gpio_config_output 
+3f87 6848c927 fetcht 1 ,mem_config_device_bt2_led_gpio 
+3f88 2040610d call gpio_config_output 
+3f89 6848c928 fetcht 1 ,mem_dpi_led_gpio 
+3f8a 2040610d call gpio_config_output 
+3f8b 6848c91a fetcht 1 ,mem_select_sensor_angle_gpio 
+3f8c 20203f96 branch mouse_gpio_config_input_pu 
+
+mouse_gpio_set_pupd_by_input:
+3f8d 18467cff sub temp ,ui_button_gpio_disable ,null 
+3f8e 20628000 rtn zero 
+3f8f 18410e7f and temp ,0x7f ,queue 
+3f90 6ff2011c fetch 4 ,core_gpio_in 
+3f91 afefffff qisolate1 pdata 
+3f92 2020bf96 branch mouse_gpio_config_input_pu ,true 
+3f93 20203f94 branch mouse_gpio_config_input_pd 
+
+mouse_gpio_config_input_pd:
+3f94 79200407 set1 gpio_active_bit ,temp 
+3f95 202060f4 branch gpio_config_input 
+
+mouse_gpio_config_input_pu:
+3f96 793f8407 set0 gpio_active_bit ,temp 
+3f97 202060f4 branch gpio_config_input 
+
+mouse_gpio_set_high_impedance:
+3f98 6fe1cbef fetch 3 ,mem_mouse_set_high_impedance_bit_set 
+3f99 67e1895c store 3 ,mem_pdatatemp 
+3f9a df200014 arg 20 ,loopcnt 
+3f9b d8400000 arg 0 ,temp 
+
+mouse_gpio_set_high_impedance_bit_loop:
+3f9c 6fe1895c fetch 3 ,mem_pdatatemp 
+3f9d 2feffe00 isolate1 0 ,pdata 
+3f9e 2040e121 call gpio_set_high_impedance ,true 
+3f9f 6fe1895c fetch 3 ,mem_pdatatemp 
+3fa0 1fe3fe00 lshift pdata ,pdata 
+3fa1 67e1895c store 3 ,mem_pdatatemp 
+3fa2 18408401 increase 1 ,temp 
+3fa3 c2003f9c loop mouse_gpio_set_high_impedance_bit_loop 
+3fa4 20600000 rtn 
+
+mouse_sensor_spi_init:
+3fa5 20403faa call mouse_spid_init_pin 
+3fa6 70448673 jam 0x73 ,mem_spi_init_clk 
+3fa7 20403fa9 call mouse_spi_init 
+3fa8 20205b66 branch twspi_enable 
+
+mouse_spi_write_flash_cb:
+
+mouse_spi_init:
+3fa9 20205d54 branch spid_init 
+
+mouse_spid_init_pin:
+3faa 6fe0c923 fetch 1 ,mem_mouse_sensor_sclk_gpio 
+3fab d8400021 arg gpcfg_spid_sck ,temp 
+3fac 2040612c call gpio_config_function_int 
+3fad 6fe0c924 fetch 1 ,mem_mouse_sensor_sdio_gpio 
+3fae d8400023 arg gpcfg_spid_sdio ,temp 
+3faf 2020612c branch gpio_config_function_int 
+
+mouse_motion:
+3fb0 44e6c019 bpatch patch19_5 ,mem_patch19 
+3fb1 78547c00 disable user 
+3fb2 58000000 setarg 0 
+3fb3 67e348d5 store 6 ,mem_mouse_x 
+3fb4 20404280 call mouse_check_sensor_data 
+3fb5 20403fbe call mouse_zwheel 
+3fb6 20403fc3 call mouse_t_zwheel 
+3fb7 2040411c call mouse_key 
+3fb8 6fe0c8d4 fetch 1 ,mem_mouse_key 
+3fb9 1fe17e1f and_into 0x1f ,pdata 
+3fba 67e0c8d4 store 1 ,mem_mouse_key 
+3fbb 24344766 nbranch mouse_drawing_optima_init ,user 
+3fbc 20404758 call mouse_drawing_optima 
+3fbd 20204584 branch mouse_no_data_timer_init 
+
+mouse_zwheel:
+3fbe 6fe0c8e4 fetch 1 ,mem_mouse_z_data 
+3fbf 207a0000 rtn blank 
+3fc0 67e0c8d9 store 1 ,mem_mouse_z 
+3fc1 7048e400 jam 0 ,mem_mouse_z_data 
+3fc2 20207ec5 branch enable_user 
+
+mouse_t_zwheel:
+3fc3 6fe0c8e0 fetch 1 ,mem_mouse_tz_data 
+3fc4 207a0000 rtn blank 
+3fc5 67e0c8da store 1 ,mem_mouse_tz 
+3fc6 7048e000 jam 0 ,mem_mouse_tz_data 
+3fc7 20207ec5 branch enable_user 
+
+mouse_wheel_check:
+3fc8 20403fd5 call mouse_t_wheel_scan 
+3fc9 20404011 call mouse_wheel_scan 
+3fca 6fe0c8de fetch 1 ,mem_wheel_tb_new_pinlevel 
+3fcb 6848c8dd fetcht 1 ,mem_wheel_tb_old_pinlevel 
+3fcc 67e0c8dd store 1 ,mem_wheel_tb_old_pinlevel 
+3fcd 98467c00 isub temp ,null 
+3fce 2422b253 nbranch app_lpm_wake_auto_lock ,zero 
+3fcf 6fe0c8e2 fetch 1 ,mem_mwheel_b_new_pinlevel 
+3fd0 6848c8e1 fetcht 1 ,mem_mwheel_b_old_pinlevel 
+3fd1 67e0c8e1 store 1 ,mem_mwheel_b_old_pinlevel 
+3fd2 98467c00 isub temp ,null 
+3fd3 2422b253 nbranch app_lpm_wake_auto_lock ,zero 
+3fd4 20600000 rtn 
+
+mouse_t_wheel_scan:
+3fd5 6fe0c920 fetch 1 ,mem_whee_ta_data_gpio 
+3fd6 c17f8000 rtneq gpio_disable 
+3fd7 da200000 arg 0 ,rega 
+3fd8 6848c920 fetcht 1 ,mem_whee_ta_data_gpio 
+3fd9 204060fd call gpio_get_bit 
+3fda 7920a200 setflag true ,0 ,rega 
+3fdb 6848c921 fetcht 1 ,mem_whee_tb_data_gpio 
+3fdc 204060fd call gpio_get_bit 
+3fdd 7920a201 setflag true ,1 ,rega 
+3fde 1a227e00 copy rega ,pdata 
+3fdf 67e0c8de store 1 ,mem_wheel_tb_new_pinlevel 
+3fe0 c000bfe5 beq 0x01 ,mouse_t_wheel_scan_judge1 
+3fe1 c0013fe9 beq 0x02 ,mouse_t_wheel_scan_judge2 
+3fe2 6fe0c8df fetch 1 ,mem_wheel_tog 
+3fe3 c283bff5 bbit1 7 ,mouse_t_wheel_scan_judge3 
+3fe4 20600000 rtn 
+
+mouse_t_wheel_scan_judge1:
+3fe5 6fe0c8dd fetch 1 ,mem_wheel_tb_old_pinlevel 
+3fe6 c0003fed beq 0 ,mouse_t_wheel_scan_judge11 
+3fe7 c001bfef beq 3 ,mouse_t_wheel_scan_judge12 
+3fe8 20600000 rtn 
+
+mouse_t_wheel_scan_judge2:
+3fe9 6fe0c8dd fetch 1 ,mem_wheel_tb_old_pinlevel 
+3fea c0003ff1 beq 0 ,mouse_t_wheel_scan_judge21 
+3feb c001bff3 beq 3 ,mouse_t_wheel_scan_judge22 
+3fec 20600000 rtn 
+
+mouse_t_wheel_scan_judge11:
+3fed 7048df82 jam 0x82 ,mem_wheel_tog 
+3fee 20600000 rtn 
+
+mouse_t_wheel_scan_judge12:
+3fef 7048df81 jam 0x81 ,mem_wheel_tog 
+3ff0 20600000 rtn 
+
+mouse_t_wheel_scan_judge21:
+3ff1 7048df80 jam 0x80 ,mem_wheel_tog 
+3ff2 20600000 rtn 
+
+mouse_t_wheel_scan_judge22:
+3ff3 7048df83 jam 0x83 ,mem_wheel_tog 
+3ff4 20600000 rtn 
+
+mouse_t_wheel_scan_judge3:
+3ff5 6fe0c8df fetch 1 ,mem_wheel_tog 
+3ff6 793ffe07 set0 7 ,pdata 
+3ff7 67e0c8df store 1 ,mem_wheel_tog 
+3ff8 c0003ffd beq 0 ,mouse_t_wheel_scan_judge30 
+3ff9 c000c000 beq 1 ,mouse_t_wheel_scan_judge31 
+3ffa c0014003 beq 2 ,mouse_t_wheel_scan_judge32 
+3ffb c001c006 beq 3 ,mouse_t_wheel_scan_judge33 
+3ffc 20600000 rtn 
+
+mouse_t_wheel_scan_judge30:
+3ffd 6fe0c8de fetch 1 ,mem_wheel_tb_new_pinlevel 
+3ffe c001c009 beq 3 ,mouse_wheel_t_forward 
+3fff 20600000 rtn 
+
+mouse_t_wheel_scan_judge31:
+4000 6fe0c8de fetch 1 ,mem_wheel_tb_new_pinlevel 
+4001 c0004009 beq 0 ,mouse_wheel_t_forward 
+4002 20600000 rtn 
+
+mouse_t_wheel_scan_judge32:
+4003 6fe0c8de fetch 1 ,mem_wheel_tb_new_pinlevel 
+4004 c001c00d beq 3 ,mouse_wheel_t_back 
+4005 20600000 rtn 
+
+mouse_t_wheel_scan_judge33:
+4006 6fe0c8de fetch 1 ,mem_wheel_tb_new_pinlevel 
+4007 c000400d beq 0 ,mouse_wheel_t_back 
+4008 20600000 rtn 
+
+mouse_wheel_t_forward:
+4009 6fe0c8e0 fetch 1 ,mem_mouse_tz_data 
+400a 1fe0fe01 increase 1 ,pdata 
+400b 67e0c8e0 store 1 ,mem_mouse_tz_data 
+400c 20600000 rtn 
+
+mouse_wheel_t_back:
+400d 6fe0c8e0 fetch 1 ,mem_mouse_tz_data 
+400e 1fe0ffff increase -1 ,pdata 
+400f 67e0c8e0 store 1 ,mem_mouse_tz_data 
+4010 20600000 rtn 
+
+mouse_wheel_scan:
+4011 6fe0c917 fetch 1 ,mem_whee_a_data_gpio 
+4012 c17f8000 rtneq gpio_disable 
+4013 da200000 arg 0 ,rega 
+4014 6848c917 fetcht 1 ,mem_whee_a_data_gpio 
+4015 204060fd call gpio_get_bit 
+4016 7920a200 setflag true ,0 ,rega 
+4017 6848c918 fetcht 1 ,mem_whee_b_data_gpio 
+4018 204060fd call gpio_get_bit 
+4019 7920a201 setflag true ,1 ,rega 
+401a 1a227e00 copy rega ,pdata 
+401b 67e0c8e2 store 1 ,mem_mwheel_b_new_pinlevel 
+401c c000c021 beq 0x01 ,mouse_wheel_scan_judge1 
+401d c0014025 beq 0x02 ,mouse_wheel_scan_judge2 
+401e 6fe0c8e3 fetch 1 ,mem_mwheel_tog 
+401f c283c031 bbit1 7 ,mouse_wheel_scan_judge3 
+4020 20600000 rtn 
+
+mouse_wheel_scan_judge1:
+4021 6fe0c8e1 fetch 1 ,mem_mwheel_b_old_pinlevel 
+4022 c0004029 beq 0 ,mouse_wheel_scan_judge11 
+4023 c001c02b beq 3 ,mouse_wheel_scan_judge12 
+4024 20600000 rtn 
+
+mouse_wheel_scan_judge2:
+4025 6fe0c8e1 fetch 1 ,mem_mwheel_b_old_pinlevel 
+4026 c000402d beq 0 ,mouse_wheel_scan_judge21 
+4027 c001c02f beq 3 ,mouse_wheel_scan_judge22 
+4028 20600000 rtn 
+
+mouse_wheel_scan_judge11:
+4029 7048e382 jam 0x82 ,mem_mwheel_tog 
+402a 20600000 rtn 
+
+mouse_wheel_scan_judge12:
+402b 7048e381 jam 0x81 ,mem_mwheel_tog 
+402c 20600000 rtn 
+
+mouse_wheel_scan_judge21:
+402d 7048e380 jam 0x80 ,mem_mwheel_tog 
+402e 20600000 rtn 
+
+mouse_wheel_scan_judge22:
+402f 7048e383 jam 0x83 ,mem_mwheel_tog 
+4030 20600000 rtn 
+
+mouse_wheel_scan_judge3:
+4031 6fe0c8e3 fetch 1 ,mem_mwheel_tog 
+4032 793ffe07 set0 7 ,pdata 
+4033 67e0c8e3 store 1 ,mem_mwheel_tog 
+4034 c0004039 beq 0 ,mouse_wheel_scan_judge30 
+4035 c000c03c beq 1 ,mouse_wheel_scan_judge31 
+4036 c001403f beq 2 ,mouse_wheel_scan_judge32 
+4037 c001c042 beq 3 ,mouse_wheel_scan_judge33 
+4038 20600000 rtn 
+
+mouse_wheel_scan_judge30:
+4039 6fe0c8e2 fetch 1 ,mem_mwheel_b_new_pinlevel 
+403a c001c045 beq 3 ,mouse_wheel_forward 
+403b 20600000 rtn 
+
+mouse_wheel_scan_judge31:
+403c 6fe0c8e2 fetch 1 ,mem_mwheel_b_new_pinlevel 
+403d c0004045 beq 0 ,mouse_wheel_forward 
+403e 20600000 rtn 
+
+mouse_wheel_scan_judge32:
+403f 6fe0c8e2 fetch 1 ,mem_mwheel_b_new_pinlevel 
+4040 c001c049 beq 3 ,mouse_wheel_back 
+4041 20600000 rtn 
+
+mouse_wheel_scan_judge33:
+4042 6fe0c8e2 fetch 1 ,mem_mwheel_b_new_pinlevel 
+4043 c0004049 beq 0 ,mouse_wheel_back 
+4044 20600000 rtn 
+
+mouse_wheel_forward:
+4045 6fe0c8e4 fetch 1 ,mem_mouse_z_data 
+4046 1fe0fe01 increase 1 ,pdata 
+4047 67e0c8e4 store 1 ,mem_mouse_z_data 
+4048 20600000 rtn 
+
+mouse_wheel_back:
+4049 6fe0c8e4 fetch 1 ,mem_mouse_z_data 
+404a 1fe0ffff increase -1 ,pdata 
+404b 67e0c8e4 store 1 ,mem_mouse_z_data 
+404c 20600000 rtn 
+
+mouse_wheel_gpio_set_wake:
+404d 6848c917 fetcht 1 ,mem_whee_a_data_gpio 
+404e 204060d6 call gpio_set_wake_by_current_state 
+404f 6848c918 fetcht 1 ,mem_whee_b_data_gpio 
+4050 204060d6 call gpio_set_wake_by_current_state 
+4051 6848c920 fetcht 1 ,mem_whee_ta_data_gpio 
+4052 204060d6 call gpio_set_wake_by_current_state 
+4053 6848c921 fetcht 1 ,mem_whee_tb_data_gpio 
+4054 202060d6 branch gpio_set_wake_by_current_state 
+
+mouse_before_hibernate_wheel_gpio_set:
+4055 6848c917 fetcht 1 ,mem_whee_a_data_gpio 
+4056 20403f8d call mouse_gpio_set_pupd_by_input 
+4057 6848c918 fetcht 1 ,mem_whee_b_data_gpio 
+4058 20403f8d call mouse_gpio_set_pupd_by_input 
+4059 6848c920 fetcht 1 ,mem_whee_ta_data_gpio 
+405a 20403f8d call mouse_gpio_set_pupd_by_input 
+405b 6848c921 fetcht 1 ,mem_whee_tb_data_gpio 
+405c 20203f8d branch mouse_gpio_set_pupd_by_input 
+
+mouse_wheel_trigger:
+405d 6fe148d9 fetch 2 ,mem_mouse_z 
+405e 207a0000 rtn blank 
+405f 7048e501 jam 1 ,mem_mouse_wheel_trigger 
+4060 7048e60a jam 10 ,mem_mouse_wheel_trigger_timer 
+4061 20600000 rtn 
+
+mouse_wheel_trigger_timer:
+4062 da6048e6 arg mem_mouse_wheel_trigger_timer ,regc 
+4063 da404065 arg mouse_wheel_trigger_disable ,regb 
+4064 202031fc branch timer_single_step 
+
+mouse_wheel_trigger_disable:
+4065 7048e500 jam 0 ,mem_mouse_wheel_trigger 
+4066 20600000 rtn 
+
+mouse_dpi_check:
+4067 6fe44bbc fetch mouse_flag_len ,mem_mouse_flag 
+4068 c2974076 bbit1 mouse_enable_dpi_key_connect_adc ,mouse_dpi_check_connect_adc 
+4069 6fe0c913 fetch 1 ,mem_dpi_button_gpio 
+406a c17f8000 rtneq gpio_disable 
+406b da200000 arg 0 ,rega 
+406c 704ba705 jam mouse_dpi_key ,mem_mouse_key_temp 
+406d 6848c913 fetcht 1 ,mem_dpi_button_gpio 
+406e 20404079 call mouse_dpi_key_check 
+
+mouse_dpi_check_next:
+406f 67e0cba4 store 1 ,mem_mouse_dpikey_press_status 
+4070 6fe0c914 fetch 1 ,mem_matrix_public_gpio 
+4071 c07fc082 beq gpio_disable ,mouse_3io6key_dpi_check_end 
+4072 204041a8 call mouse_matrix_public_gpio_reset 
+
+mouse_dpi_check_exit:
+4073 1a227e00 copy rega ,pdata 
+4074 c282c092 bbit1 mouse_dpi_key ,mouse_dpi_down 
+4075 20204099 branch mouse_dpi_up 
+
+mouse_dpi_check_connect_adc:
+4076 6fe0c8ff fetch 1 ,mem_mouse_adc_button_press_flag 
+4077 203a4099 branch mouse_dpi_up ,blank 
+4078 20204092 branch mouse_dpi_down 
+
+mouse_dpi_key_check:
+4079 6fe44bbc fetch mouse_flag_len ,mem_mouse_flag 
+407a c2964088 bbit1 mouse_enable_dpi_key_connect_gnd ,mouse_dpi_key_connect_gnd 
+407b 6fe0cba4 fetch 1 ,mem_mouse_dpikey_press_status 
+407c 1fe22600 copy pdata ,regc 
+407d 6fe0c914 fetch 1 ,mem_matrix_public_gpio 
+407e c07fc1d5 beq gpio_disable ,mouse_3io6key_check 
+
+mouse_dpi_key_check_next:
+407f 6fe0cbab fetch 1 ,mem_mouse_ghost_flag 
+4080 243a4085 nbranch mouse_dpi_check_end ,blank 
+4081 2020408a branch mouse_dpi_key_connect_matrix 
+
+mouse_3io6key_dpi_check_end:
+4082 6848c913 fetcht 1 ,mem_dpi_button_gpio 
+4083 20403f96 call mouse_gpio_config_input_pu 
+4084 20204073 branch mouse_dpi_check_exit 
+
+mouse_dpi_check_end:
+4085 7049e200 jam dpi_button_state_up ,mem_mouse_dpi_button_state 
+4086 704ba400 jam 0 ,mem_mouse_dpikey_press_status 
+4087 20600000 rtn 
+
+mouse_dpi_key_connect_gnd:
+4088 6fe0cba4 fetch 1 ,mem_mouse_dpikey_press_status 
+4089 202041c7 branch mouse_check_key_connect_gnd 
+
+mouse_dpi_key_connect_matrix:
+408a 204060fd call gpio_get_bit 
+408b 6848c914 fetcht 1 ,mem_matrix_public_gpio 
+408c 2020c088 branch mouse_dpi_key_connect_gnd ,true 
+408d 6848c914 fetcht 1 ,mem_matrix_public_gpio 
+408e 2040610d call gpio_out_active 
+408f 6848c913 fetcht 1 ,mem_dpi_button_gpio 
+4090 6fe0cba4 fetch 1 ,mem_mouse_dpikey_press_status 
+4091 202041c7 branch mouse_check_key_connect_gnd 
+
+mouse_dpi_down:
+4092 6fe0c9e2 fetch 1 ,mem_mouse_dpi_button_state 
+4093 c1008000 rtneq dpi_button_state_down 
+4094 7049e201 jam dpi_button_state_down ,mem_mouse_dpi_button_state 
+4095 6fe44bbc fetch mouse_flag_len ,mem_mouse_flag 
+4096 c3940000 rtnbit1 mouse_enable_select_device_by_dpi_button 
+4097 c39b0000 rtnbit1 mouse_enable_dpi_key_long_press_disconvery 
+4098 202040a9 branch mouse_dpi_process 
+
+mouse_dpi_up:
+4099 6fe0c9e2 fetch 1 ,mem_mouse_dpi_button_state 
+409a c1000000 rtneq dpi_button_state_up 
+409b 7049e200 jam dpi_button_state_up ,mem_mouse_dpi_button_state 
+409c 6fe44bbc fetch mouse_flag_len ,mem_mouse_flag 
+409d c29440a0 bbit1 mouse_enable_select_device_by_dpi_button ,mouse_dpi_up_next 
+409e c29b40a0 bbit1 mouse_enable_dpi_key_long_press_disconvery ,mouse_dpi_up_next 
+409f 20600000 rtn 
+
+mouse_dpi_up_next:
+40a0 6fe0c9e3 fetch 1 ,mem_mouse_dpi_long_press_flag 
+40a1 243a40a4 nbranch mouse_dpi_up_after_long_press ,blank 
+40a2 6fe0cbad fetch 1 ,mem_select_device_count 
+40a3 245a40a9 ncall mouse_dpi_process ,blank 
+
+mouse_dpi_up_after_long_press:
+40a4 7049e300 jam 0 ,mem_mouse_dpi_long_press_flag 
+40a5 6fe0c792 fetch 1 ,mem_ui_button_timeout 
+40a6 67e0cbad store 1 ,mem_select_device_count 
+40a7 67e0cbac store 1 ,mem_bt_discovery_count 
+40a8 20600000 rtn 
+
+mouse_dpi_process:
+40a9 44e74019 bpatch patch19_6 ,mem_patch19 
+40aa 204040b2 call mouse_dpi_ghost_check 
+40ab 20740000 rtn user 
+40ac 6fe0c997 fetch 1 ,mem_mouse_dpi 
+40ad 1fe0fe01 increase 1 ,pdata 
+40ae 1fe17e03 and pdata ,0x03 ,pdata 
+40af 67e0c997 store 1 ,mem_mouse_dpi 
+40b0 204040d5 call mouse_seting_dpi 
+40b1 2020462e branch mouse_store_device_info_delay 
+
+mouse_dpi_ghost_check:
+40b2 78547c00 disable user 
+40b3 6fe44bbc fetch mouse_flag_len ,mem_mouse_flag 
+40b4 c3960000 rtnbit1 mouse_enable_dpi_key_connect_gnd 
+40b5 c3970000 rtnbit1 mouse_enable_dpi_key_connect_adc 
+40b6 6fe0cb9f fetch 1 ,mem_mouse_lkey_press_status 
+40b7 207a0000 rtn blank 
+40b8 6fe0cba0 fetch 1 ,mem_mouse_rkey_press_status 
+40b9 207a0000 rtn blank 
+40ba 78347c00 enable user 
+40bb 20600000 rtn 
+
+mouse_dpi_key_check_long_press:
+40bc 6fe44bbc fetch mouse_flag_len ,mem_mouse_flag 
+40bd c29440c0 bbit1 mouse_enable_select_device_by_dpi_button ,mouse_select_device_by_dpi_button 
+40be c29b40c7 bbit1 mouse_enable_dpi_key_long_press_disconvery ,mouse_discovery_by_dpi_button 
+40bf 20600000 rtn 
+
+mouse_select_device_by_dpi_button:
+40c0 6fe0c9e2 fetch 1 ,mem_mouse_dpi_button_state 
+40c1 c1808000 rtnne dpi_button_state_down 
+40c2 da604bad arg mem_select_device_count ,regc 
+40c3 da4040c5 arg mouse_ready_reconnection_by_dpi_button ,regb 
+40c4 202031fc branch timer_single_step 
+
+mouse_ready_reconnection_by_dpi_button:
+40c5 7049e301 jam 1 ,mem_mouse_dpi_long_press_flag 
+40c6 202046f3 branch mouse_ready_reconnection_by_button 
+
+mouse_discovery_by_dpi_button:
+40c7 6fe0c9e2 fetch 1 ,mem_mouse_dpi_button_state 
+40c8 c1808000 rtnne dpi_button_state_down 
+40c9 da604bac arg mem_bt_discovery_count ,regc 
+40ca da4040cc arg mouse_long_dpi_button_bt_discovery ,regb 
+40cb 202031fc branch timer_single_step 
+
+mouse_long_dpi_button_bt_discovery:
+40cc 7049e301 jam 1 ,mem_mouse_dpi_long_press_flag 
+40cd 20204514 branch mouse_long_button_bt_discovery 
+
+mouse_dpi_config:
+40ce 202040d8 branch mouse_seting_sensor_type 
+
+mouse_setting_dpi_4_level:
+40cf 6fe44bbc fetch mouse_flag_len ,mem_mouse_flag 
+40d0 c38e0000 rtnbit1 mouse_enable_dpi_level_4 
+40d1 6fe0c997 fetch 1 ,mem_mouse_dpi 
+40d2 c1818000 rtnne mouse_dpi_level4 
+40d3 70499700 jam mouse_dpi_level1 ,mem_mouse_dpi 
+40d4 20600000 rtn 
+
+mouse_seting_dpi:
+40d5 44e7c019 bpatch patch19_7 ,mem_patch19 
+40d6 204040cf call mouse_setting_dpi_4_level 
+40d7 2040492e call mouse_dpi_led_blink_delay 
+
+mouse_seting_sensor_type:
+40d8 6fe0c92c fetch 1 ,mem_config_sensor_type 
+40d9 c001c0fb beq p3212 ,mouse_seting_3212_dpi 
+40da c005c10f beq ka8g2 ,mouse_seting_ka8g2_dpi 
+40db 6fe0c997 fetch 1 ,mem_mouse_dpi 
+40dc c00040e2 beq mouse_dpi_level1 ,mouse_set_cpi0 
+40dd c000c0e0 beq mouse_dpi_level2 ,mouse_set_cpi1 
+40de c00140e4 beq mouse_dpi_level3 ,mouse_set_cpi2 
+40df c001c0e6 beq mouse_dpi_level4 ,mouse_set_cpi3 
+
+mouse_set_cpi1:
+40e0 6848c9d6 fetcht 1 ,mem_320x_dpi_1 
+40e1 202040e8 branch mouse_dpi_store 
+
+mouse_set_cpi0:
+40e2 6848c9d5 fetcht 1 ,mem_320x_dpi_0 
+40e3 202040e8 branch mouse_dpi_store 
+
+mouse_set_cpi2:
+40e4 6848c9d7 fetcht 1 ,mem_320x_dpi_2 
+40e5 202040e8 branch mouse_dpi_store 
+
+mouse_set_cpi3:
+40e6 6848c9d8 fetcht 1 ,mem_320x_dpi_3 
+40e7 202040e8 branch mouse_dpi_store 
+
+mouse_dpi_store:
+40e8 6fe0c92c fetch 1 ,mem_config_sensor_type 
+40e9 c00240f7 beq p3065_xy ,mouse_3065xy_set_dpi 
+40ea c002c0f7 beq mx8650 ,mouse_3065xy_set_dpi 
+40eb c00440f9 beq ka8 ,mouse_ka8_set_dpi 
+40ec c003c0f9 beq p6520 ,mouse_ka8_set_dpi 
+40ed c00340f7 beq p8009 ,mouse_3065xy_set_dpi 
+
+mouse_dpi_write:
+40ee 6048c9e1 storet 1 ,mem_mouse_cpi_count 
+40ef 58000006 setarg mouse_dpi_address 
+40f0 20405d65 call twspi_read 
+40f1 1fe104f8 and pdata ,0xf8 ,temp 
+40f2 6fe0c9e1 fetch 1 ,mem_mouse_cpi_count 
+40f3 9840fe00 iadd temp ,pdata 
+40f4 1fed7e00 lshift8 pdata ,pdata 
+40f5 1fe0fe06 add pdata ,mouse_dpi_address ,pdata 
+40f6 20205d5e branch twspi_write 
+
+mouse_3065xy_set_dpi:
+40f7 184085ff increase -1 ,temp 
+40f8 202040ee branch mouse_dpi_write 
+
+mouse_ka8_set_dpi:
+40f9 18408402 increase 2 ,temp 
+40fa 202040ee branch mouse_dpi_write 
+
+mouse_seting_3212_dpi:
+40fb 6fe0c997 fetch 1 ,mem_mouse_dpi 
+40fc c0004102 beq mouse_dpi_level1 ,mouse_set_p3212_cpi0 
+40fd c000c100 beq mouse_dpi_level2 ,mouse_set_p3212_cpi1 
+40fe c0014104 beq mouse_dpi_level3 ,mouse_set_p3212_cpi2 
+40ff c001c106 beq mouse_dpi_level4 ,mouse_set_p3212_cpi3 
+
+mouse_set_p3212_cpi1:
+4100 6fe0c9da fetch 1 ,mem_3212_dpi_1 
+4101 20204107 branch mouse_p3212_dpi 
+
+mouse_set_p3212_cpi0:
+4102 6fe0c9d9 fetch 1 ,mem_3212_dpi_0 
+4103 20204107 branch mouse_p3212_dpi 
+
+mouse_set_p3212_cpi2:
+4104 6fe0c9db fetch 1 ,mem_3212_dpi_2 
+4105 20204107 branch mouse_p3212_dpi 
+
+mouse_set_p3212_cpi3:
+4106 6fe0c9dc fetch 1 ,mem_3212_dpi_3 
+
+mouse_p3212_dpi:
+4107 67e0c9e1 store 1 ,mem_mouse_cpi_count 
+4108 1fed7e00 lshift8 pdata ,pdata 
+4109 1fe22200 copy pdata ,rega 
+410a 1fe0fe0d add pdata ,mouse_p3212_dpi_xaddress ,pdata 
+410b 20405d5e call twspi_write 
+410c 1a227e00 copy rega ,pdata 
+410d 1fe0fe0e add pdata ,mouse_p3212_dpi_yaddress ,pdata 
+410e 20205d5e branch twspi_write 
+
+mouse_seting_ka8g2_dpi:
+410f 6fe0c997 fetch 1 ,mem_mouse_dpi 
+4110 c0004116 beq mouse_dpi_level1 ,mouse_set_pka8g2_cpi0 
+4111 c000c114 beq mouse_dpi_level2 ,mouse_set_pka8g2_cpi1 
+4112 c0014118 beq mouse_dpi_level3 ,mouse_set_pka8g2_cpi2 
+4113 c001c11a beq mouse_dpi_level4 ,mouse_set_pka8g2_cpi3 
+
+mouse_set_pka8g2_cpi1:
+4114 6fe0c9de fetch 1 ,mem_ka8g2_dpi_1 
+4115 20204107 branch mouse_p3212_dpi 
+
+mouse_set_pka8g2_cpi0:
+4116 6fe0c9dd fetch 1 ,mem_ka8g2_dpi_0 
+4117 20204107 branch mouse_p3212_dpi 
+
+mouse_set_pka8g2_cpi2:
+4118 6fe0c9df fetch 1 ,mem_ka8g2_dpi_2 
+4119 20204107 branch mouse_p3212_dpi 
+
+mouse_set_pka8g2_cpi3:
+411a 6fe0c9e0 fetch 1 ,mem_ka8g2_dpi_3 
+411b 20204107 branch mouse_p3212_dpi 
+
+mouse_key:
+411c 20404155 call mouse_check_key_gpio 
+411d 2040412d call mouse_ghost_key_check 
+411e 20403ea0 call mouse_set_mult 
+411f 20404128 call mouse_24g_key 
+4120 1a227e00 copy rega ,pdata 
+4121 6848c8dc fetcht 1 ,mem_mouse_key_last 
+4122 67e0c8dc store 1 ,mem_mouse_key_last 
+4123 67e0c8d4 store 1 ,mem_mouse_key 
+4124 9842fe00 ixor temp ,pdata 
+4125 1fe67c00 sub pdata ,0 ,null 
+4126 20628000 rtn zero 
+4127 20207ec5 branch enable_user 
+
+mouse_24g_key:
+4128 c6930000 rtnmark0 mark_24g 
+4129 1a227e00 copy rega ,pdata 
+412a 207a0000 rtn blank 
+412b 67e0c8d4 store 1 ,mem_mouse_key 
+412c 20207ec5 branch enable_user 
+
+mouse_ghost_key_check:
+412d 704ba900 jam 0 ,mem_mouse_matrix_key_cow_count 
+412e 704baa00 jam 0 ,mem_mouse_matrix_key_row_count 
+412f 704bab00 jam 0 ,mem_mouse_ghost_flag 
+4130 1fe20400 copy pdata ,temp 
+4131 2040413d call mouse_ghost_key_check_l_bk 
+4132 20404140 call mouse_ghost_key_check_m_fw 
+4133 20404143 call mouse_ghost_key_check_bk_fw 
+4134 20404146 call mouse_ghost_key_check_lmr 
+4135 6fe0cbaa fetch 1 ,mem_mouse_matrix_key_row_count 
+4136 207a0000 rtn blank 
+4137 6fe0cba9 fetch 1 ,mem_mouse_matrix_key_cow_count 
+4138 207a0000 rtn blank 
+4139 704bab01 jam 1 ,mem_mouse_ghost_flag 
+413a 6fe0c8dc fetch 1 ,mem_mouse_key_last 
+413b 1fe22200 copy pdata ,rega 
+413c 20600000 rtn 
+
+mouse_ghost_key_check_l_bk:
+413d 18417e09 and temp ,mouse_l_bk_button ,pdata 
+413e c004c14e beq mouse_l_bk_button ,mouse_matrix_cow_more_than_one_key 
+413f 20600000 rtn 
+
+mouse_ghost_key_check_m_fw:
+4140 18417e14 and temp ,mouse_m_fw_button ,pdata 
+4141 c00a414e beq mouse_m_fw_button ,mouse_matrix_cow_more_than_one_key 
+4142 20600000 rtn 
+
+mouse_ghost_key_check_bk_fw:
+4143 18417e18 and temp ,mouse_bk_fw_button ,pdata 
+4144 c00c414c beq mouse_bk_fw_button ,mouse_matrix_row_more_than_one_key 
+4145 20600000 rtn 
+
+mouse_ghost_key_check_lmr:
+4146 18417e07 and temp ,mouse_lmr_button ,pdata 
+4147 c001c14c beq mouse_lr_button ,mouse_matrix_row_more_than_one_key 
+4148 c002c14c beq mouse_lm_button ,mouse_matrix_row_more_than_one_key 
+4149 c003414c beq mouse_rm_button ,mouse_matrix_row_more_than_one_key 
+414a c003c14c beq mouse_lmr_button ,mouse_matrix_row_more_than_one_key 
+414b 20600000 rtn 
+
+mouse_matrix_row_more_than_one_key:
+414c 704baa01 jam 1 ,mem_mouse_matrix_key_row_count 
+414d 20600000 rtn 
+
+mouse_matrix_cow_more_than_one_key:
+414e 704ba901 jam 1 ,mem_mouse_matrix_key_cow_count 
+414f 20600000 rtn 
+
+mouse_key_check_once:
+4150 20404161 call mouse_check_key_gpio_once 
+4151 20404155 call mouse_check_key_gpio 
+4152 58000000 setarg 0x00 
+4153 67e1cb9f store 3 ,mem_mouse_lkey_press_status 
+4154 20600000 rtn 
+
+mouse_check_key_gpio:
+4155 44e8401a bpatch patch1a_0 ,mem_patch1a 
+4156 6fe0cbf2 fetch 1 ,mem_sensor_shutdown_flag 
+4157 245a4161 ncall mouse_check_key_gpio_once ,blank 
+4158 da200000 arg 0 ,rega 
+4159 20404164 call mouse_check_lkey_gpio 
+415a 2040416a call mouse_check_rkey_gpio 
+415b 20404170 call mouse_check_mkey_gpio 
+415c 20404176 call mouse_check_bkkey_gpio 
+415d 2040418f call mouse_check_fwkey_gpio 
+
+mouse_check_key_gpio_next:
+415e 204041aa call mouse_check_customerkey_gpio 
+415f 1a227e00 copy rega ,pdata 
+4160 20600000 rtn 
+
+mouse_check_key_gpio_once:
+4161 58030303 setarg 0x030303 
+4162 67e1cb9f store 3 ,mem_mouse_lkey_press_status 
+4163 20600000 rtn 
+
+mouse_check_lkey_gpio:
+4164 704ba700 jam mouse_l_key ,mem_mouse_key_temp 
+4165 6848c91c fetcht 1 ,mem_lbutton_gpio 
+4166 6fe0cb9f fetch 1 ,mem_mouse_lkey_press_status 
+4167 204041c7 call mouse_check_key_connect_gnd 
+4168 67e0cb9f store 1 ,mem_mouse_lkey_press_status 
+4169 20600000 rtn 
+
+mouse_check_rkey_gpio:
+416a 704ba701 jam mouse_r_key ,mem_mouse_key_temp 
+416b 6848c91d fetcht 1 ,mem_rbutton_gpio 
+416c 6fe0cba0 fetch 1 ,mem_mouse_rkey_press_status 
+416d 204041c7 call mouse_check_key_connect_gnd 
+416e 67e0cba0 store 1 ,mem_mouse_rkey_press_status 
+416f 20600000 rtn 
+
+mouse_check_mkey_gpio:
+4170 704ba702 jam mouse_m_key ,mem_mouse_key_temp 
+4171 6848c91e fetcht 1 ,mem_mbutton_gpio 
+4172 6fe0cba1 fetch 1 ,mem_mouse_mkey_press_status 
+4173 204041c7 call mouse_check_key_connect_gnd 
+4174 67e0cba1 store 1 ,mem_mouse_mkey_press_status 
+4175 20600000 rtn 
+
+mouse_check_bkkey_gpio:
+4176 6fe0c911 fetch 1 ,mem_bk_button_gpio 
+4177 c17f8000 rtneq gpio_disable 
+4178 704ba703 jam mouse_bk_key ,mem_mouse_key_temp 
+4179 6fe0cba2 fetch 1 ,mem_mouse_bkkey_press_status 
+417a 1fe22600 copy pdata ,regc 
+417b 6848c911 fetcht 1 ,mem_bk_button_gpio 
+417c 6fe0c914 fetch 1 ,mem_matrix_public_gpio 
+417d c07fc18b beq gpio_disable ,mouse_3io6key_bk_check 
+
+mouse_check_bkkey_gpio_next:
+417e 204060fd call gpio_get_bit 
+417f 2020c187 branch mouse_check_bk_button_connect_gnd ,true 
+4180 6848c914 fetcht 1 ,mem_matrix_public_gpio 
+4181 2040610d call gpio_out_active 
+4182 6848c911 fetcht 1 ,mem_bk_button_gpio 
+4183 6fe0cba2 fetch 1 ,mem_mouse_bkkey_press_status 
+4184 204041c7 call mouse_check_key_connect_gnd 
+
+mouse_check_bkkey_gpio_end:
+4185 67e0cba2 store 1 ,mem_mouse_bkkey_press_status 
+4186 202041a8 branch mouse_matrix_public_gpio_reset 
+
+mouse_check_bk_button_connect_gnd:
+4187 6848c914 fetcht 1 ,mem_matrix_public_gpio 
+4188 6fe0cba2 fetch 1 ,mem_mouse_bkkey_press_status 
+4189 204041c7 call mouse_check_key_connect_gnd 
+418a 20204185 branch mouse_check_bkkey_gpio_end 
+
+mouse_3io6key_bk_check:
+418b 204041d5 call mouse_3io6key_check 
+418c 67e0cba2 store 1 ,mem_mouse_bkkey_press_status 
+418d 6848c911 fetcht 1 ,mem_bk_button_gpio 
+418e 20203f96 branch mouse_gpio_config_input_pu 
+
+mouse_check_fwkey_gpio:
+418f 6fe0c912 fetch 1 ,mem_fw_button_gpio 
+4190 c17f8000 rtneq gpio_disable 
+4191 704ba704 jam mouse_fw_key ,mem_mouse_key_temp 
+4192 6fe0cba3 fetch 1 ,mem_mouse_fwkey_press_status 
+4193 1fe22600 copy pdata ,regc 
+4194 6848c912 fetcht 1 ,mem_fw_button_gpio 
+4195 6fe0c914 fetch 1 ,mem_matrix_public_gpio 
+4196 c07fc1a4 beq gpio_disable ,mouse_3io6key_fw_check 
+
+mouse_check_fwkey_gpio_next:
+4197 204060fd call gpio_get_bit 
+4198 2020c1a0 branch mouse_check_fw_button_connect_gnd ,true 
+4199 6848c914 fetcht 1 ,mem_matrix_public_gpio 
+419a 2040610d call gpio_out_active 
+419b 6848c912 fetcht 1 ,mem_fw_button_gpio 
+419c 6fe0cba3 fetch 1 ,mem_mouse_fwkey_press_status 
+419d 204041c7 call mouse_check_key_connect_gnd 
+
+mouse_check_fwkey_gpio_end:
+419e 67e0cba3 store 1 ,mem_mouse_fwkey_press_status 
+419f 202041a8 branch mouse_matrix_public_gpio_reset 
+
+mouse_check_fw_button_connect_gnd:
+41a0 6848c914 fetcht 1 ,mem_matrix_public_gpio 
+41a1 6fe0cba3 fetch 1 ,mem_mouse_fwkey_press_status 
+41a2 204041c7 call mouse_check_key_connect_gnd 
+41a3 2020419e branch mouse_check_fwkey_gpio_end 
+
+mouse_3io6key_fw_check:
+41a4 204041d5 call mouse_3io6key_check 
+41a5 67e0cba3 store 1 ,mem_mouse_fwkey_press_status 
+41a6 6848c912 fetcht 1 ,mem_fw_button_gpio 
+41a7 20203f96 branch mouse_gpio_config_input_pu 
+
+mouse_matrix_public_gpio_reset:
+41a8 6848c914 fetcht 1 ,mem_matrix_public_gpio 
+41a9 20203f96 branch mouse_gpio_config_input_pu 
+
+mouse_check_customerkey_gpio:
+41aa 704b9c00 jam 0 ,mem_customer_key 
+41ab 6fe44bbc fetch mouse_flag_len ,mem_mouse_flag 
+41ac c40a8000 rtnbit0 mouse_enable_keyboard 
+41ad 6fe0c916 fetch 1 ,mem_customer_key_gpio 
+41ae c17f8000 rtneq gpio_disable 
+41af 704ba707 jam mouse_customer_key ,mem_mouse_key_temp 
+41b0 6848c916 fetcht 1 ,mem_customer_key_gpio 
+41b1 6fe0cba6 fetch 1 ,mem_mouse_customerkey_press_status 
+41b2 204041c7 call mouse_check_key_connect_gnd 
+41b3 67e0cba6 store 1 ,mem_mouse_customerkey_press_status 
+41b4 1a227e00 copy rega ,pdata 
+41b5 c283c1ba bbit1 mouse_customer_key ,mouse_customerkey_press 
+41b6 204041bd call mouse_customerkey_release 
+
+mouse_check_customerkey_gpio_exit:
+41b7 6fe0cb9d fetch 1 ,mem_customer_data_trigger 
+41b8 67e0cb9e store 1 ,mem_customer_data_trigger_last 
+41b9 20600000 rtn 
+
+mouse_customerkey_press:
+41ba 704b9d01 jam 1 ,mem_customer_data_trigger 
+41bb 204041c0 call mouse_customer_key_need_send 
+41bc 202041b7 branch mouse_check_customerkey_gpio_exit 
+
+mouse_customerkey_release:
+41bd 704b9d00 jam 0 ,mem_customer_data_trigger 
+41be 6fe0cb9e fetch 1 ,mem_customer_data_trigger_last 
+41bf 207a0000 rtn blank 
+
+mouse_customer_key_need_send:
+41c0 704b9c01 jam 1 ,mem_customer_key 
+41c1 20600000 rtn 
+
+mouse_check_matrix_button_connect_gnd:
+41c2 204060fd call gpio_get_bit 
+41c3 6848cba7 fetcht 1 ,mem_mouse_key_temp 
+41c4 18420e00 copy temp ,queue 
+41c5 2020c1d3 branch mouse_key_press ,true 
+41c6 202041d1 branch mouse_key_release 
+
+mouse_check_key_connect_gnd:
+41c7 1fe3fe00 lshift pdata ,pdata 
+41c8 1fe22400 copy pdata ,regb 
+41c9 204060fd call gpio_get_bit 
+41ca 7920a400 setflag true ,0 ,regb 
+41cb 1a417e07 and regb ,0x07 ,pdata 
+41cc 6848cba7 fetcht 1 ,mem_mouse_key_temp 
+41cd 18420e00 copy temp ,queue 
+41ce c003c1d3 beq 0x07 ,mouse_key_press 
+41cf c00041d1 beq 0x00 ,mouse_key_release 
+41d0 20600000 rtn 
+
+mouse_key_release:
+41d1 f93fa200 qset0 rega 
+41d2 20600000 rtn 
+
+mouse_key_press:
+41d3 f9202200 qset1 rega 
+41d4 20600000 rtn 
+
+mouse_3io6key_check:
+41d5 44e8c01a bpatch patch1a_1 ,mem_patch1a 
+41d6 1a627e00 copy regc ,pdata 
+41d7 67e0cba8 store 1 ,mem_mouse_key_status 
+41d8 1fe3fe00 lshift pdata ,pdata 
+41d9 1fe22400 copy pdata ,regb 
+41da 18422600 copy temp ,regc 
+41db 20403f94 call mouse_gpio_config_input_pd 
+41dc 1a620400 copy regc ,temp 
+41dd 204060fd call gpio_get_bit 
+41de 7d20a400 nsetflag true ,0 ,regb 
+41df 204041e1 call mouse_check_press 
+41e0 202041cb branch mouse_check_key_connect_gnd + 4 
+
+mouse_check_press:
+41e1 6848cba8 fetcht 1 ,mem_mouse_key_status 
+41e2 18410401 and_into 0x01 ,temp 
+41e3 1a417e01 and regb ,0x01 ,pdata 
+41e4 98467c00 isub temp ,null 
+41e5 2422c36f nbranch mouse_current_mult_update ,zero 
+41e6 20600000 rtn 
+
+mouse_init_sunt:
+41e7 44e9401a bpatch patch1a_2 ,mem_patch1a 
+41e8 20403fa5 call mouse_sensor_spi_init 
+41e9 20758000 rtn wake 
+
+mouse_init_sensor_wakeup:
+41ea 20404276 call mouse_sensor_poweron 
+
+mouse_init_sensor:
+41eb 204041f5 call mouse_read_sensor_id 
+41ec c01841fc beq p32xx_id1 ,mouse_init_p32xx_id2_judge 
+41ed c018c257 beq p3065_id1 ,mouse_init_p3065 
+41ee c02c4260 beq pka8g2_id1 ,mouse_ka8g2_id2_judge 
+41ef 204041f2 call mouse_twspi_reset 
+41f0 20001af4 nop 6900 
+41f1 202041eb branch mouse_init_sensor 
+
+mouse_twspi_reset:
+41f2 6fe0c923 fetch 1 ,mem_mouse_sensor_sclk_gpio 
+41f3 20405b55 call twspi_reset 
+41f4 20203faa branch mouse_spid_init_pin 
+
+mouse_read_sensor_id:
+41f5 58000001 setarg pan_reg_pid_h 
+41f6 20405d65 call twspi_read 
+41f7 67e0c9c7 store 1 ,mem_sensor_id2 
+41f8 58000000 setarg pan_reg_pid_l 
+41f9 20405d65 call twspi_read 
+41fa 67e0c9c6 store 1 ,mem_sensor_id1 
+41fb 20600000 rtn 
+
+mouse_init_p32xx_id2_judge:
+41fc 6fe0c9c7 fetch 1 ,mem_sensor_id2 
+41fd c02d4205 beq p_mx8650 ,mouse_mx8650_init_param 
+41fe c06c420b beq p8009_id2 ,mouse_8009_init_param 
+41ff c068c21a beq p3205_tj3t_id2 ,mouse_3205_3t_init_param 
+4200 c0694223 beq p3204_tj3l_id2 ,mouse_3204_3l_init_param 
+4201 c001422a beq p3212_id2 ,mouse_3212_init_param 
+4202 c02a422d beq pka8_id2 ,mouse_ka8_init_param_check 
+4203 c0284254 beq p6520a_id2 ,mouse_p6520_init_param 
+4204 202041eb branch mouse_init_sensor 
+
+mouse_mx8650_init_param:
+4205 70492c05 jam mx8650 ,mem_config_sensor_type 
+4206 20404272 call mouse_sensor_reset 
+4207 20407d85 call delay_10ms 
+4208 da604a3e arg mem_sensor_8650_init ,regc 
+4209 2040426b call mouse_sensor_wr_seq 
+420a 202040ce branch mouse_dpi_config 
+
+mouse_8009_init_param:
+420b 58000016 setarg 0x16 
+420c 20405d65 call twspi_read 
+420d 1fe67cbd sub pdata ,0xbd ,null 
+420e 2422c1e7 nbranch mouse_init_sunt ,zero 
+420f 58000019 setarg 0x19 
+4210 20405d65 call twspi_read 
+4211 1fe67c55 sub pdata ,0x55 ,null 
+4212 2422c1e7 nbranch mouse_init_sunt ,zero 
+4213 5800001b setarg 0x1b 
+4214 20405d65 call twspi_read 
+4215 1fe67c1d sub pdata ,0x1d ,null 
+4216 2422c1e7 nbranch mouse_init_sunt ,zero 
+4217 70492c06 jam p8009 ,mem_config_sensor_type 
+4218 da604a82 arg mem_sensor_8009_init ,regc 
+4219 2020426b branch mouse_sensor_wr_seq 
+
+mouse_3205_3t_init_param:
+421a 70492c00 jam p3205 ,mem_config_sensor_type 
+421b da6049f8 arg mem_sensor_3205_init ,regc 
+421c 2040426b call mouse_sensor_wr_seq 
+421d da604a02 arg mem_sensor_32xx_init ,regc 
+421e 2040426b call mouse_sensor_wr_seq 
+421f 58000943 setarg 0x0943 
+4220 20405d5e call twspi_write 
+4221 da604a1c arg mem_sensor_32xx_init_1 ,regc 
+4222 2020426b branch mouse_sensor_wr_seq 
+
+mouse_3204_3l_init_param:
+4223 70492c02 jam p3204 ,mem_config_sensor_type 
+4224 da6049ee arg mem_sensor_3204_init ,regc 
+4225 2040426b call mouse_sensor_wr_seq 
+4226 da604a02 arg mem_sensor_32xx_init ,regc 
+4227 2040426b call mouse_sensor_wr_seq 
+4228 da604a1c arg mem_sensor_32xx_init_1 ,regc 
+4229 2020426b branch mouse_sensor_wr_seq 
+
+mouse_3212_init_param:
+422a 70492c03 jam p3212 ,mem_config_sensor_type 
+422b da6049e4 arg mem_sensor_3212_init ,regc 
+422c 2020426b branch mouse_sensor_wr_seq 
+
+mouse_ka8_init_param_check:
+422d 20404269 call mouse_sensor_disable_wp 
+422e 58009a5b setarg 0x9a5b 
+422f 20405d5e call twspi_write 
+4230 5800000d setarg 0x0d 
+4231 20405d65 call twspi_read 
+4232 1fe67c12 sub pdata ,0x12 ,null 
+4233 2022c241 branch mouse_ka8ul_init_param ,zero 
+4234 1fe67c0a sub pdata ,0x0a ,null 
+4235 2422c244 nbranch mouse_ka8hd_sensor_judge ,zero 
+4236 5800000e setarg 0x0e 
+4237 20405d65 call twspi_read 
+4238 1fe67ce5 sub pdata ,0xe5 ,null 
+4239 2422c1eb nbranch mouse_init_sensor ,zero 
+423a 58000010 setarg 0x10 
+423b 20405d65 call twspi_read 
+423c 1fe67ca5 sub pdata ,0xa5 ,null 
+423d 2022c241 branch mouse_ka8ul_init_param ,zero 
+423e 20404251 call mouse_enable_ka8_sensor_wp 
+
+mouse_ka8_init_param:
+423f 70492c08 jam ka8 ,mem_config_sensor_type 
+4240 20600000 rtn 
+
+mouse_ka8ul_init_param:
+4241 70492c09 jam ka8_ul ,mem_config_sensor_type 
+4242 da604a64 arg mem_sensor_ka8ul_init ,regc 
+4243 2020426b branch mouse_sensor_wr_seq 
+
+mouse_ka8hd_sensor_judge:
+4244 1fe67c10 sub pdata ,0x10 ,null 
+4245 2422c1eb nbranch mouse_init_sensor ,zero 
+4246 5800000e setarg 0x0e 
+4247 20405d65 call twspi_read 
+4248 1fe67cc5 sub pdata ,0xc5 ,null 
+4249 2422c1eb nbranch mouse_init_sensor ,zero 
+424a 58000010 setarg 0x10 
+424b 20405d65 call twspi_read 
+424c 1fe67c38 sub pdata ,0x38 ,null 
+424d 2422c1eb nbranch mouse_init_sensor ,zero 
+
+mouse_ka8hd_init_param:
+424e 20404251 call mouse_enable_ka8_sensor_wp 
+424f 70492c0a jam ka8_hd ,mem_config_sensor_type 
+4250 20600000 rtn 
+
+mouse_enable_ka8_sensor_wp:
+4251 5800005b setarg 0x005b 
+4252 20405d5e call twspi_write 
+4253 20204267 branch mouse_sensor_enable_wp 
+
+mouse_p6520_init_param:
+4254 70492c07 jam p6520 ,mem_config_sensor_type 
+4255 da604aa8 arg mem_sensor_p6520_init ,regc 
+4256 2020426b branch mouse_sensor_wr_seq 
+
+mouse_init_p3065:
+4257 20404276 call mouse_sensor_poweron 
+4258 6fe0c9c7 fetch 1 ,mem_sensor_id2 
+4259 c038425e beq p3065_xy_id2 ,mouse_p3065xy_init_param 
+425a c000425c beq p3065_id2 ,mouse_p3065_init_param 
+425b 202041eb branch mouse_init_sensor 
+
+mouse_p3065_init_param:
+425c 70492c01 jam p3065 ,mem_config_sensor_type 
+425d 20600000 rtn 
+
+mouse_p3065xy_init_param:
+425e 70492c04 jam p3065_xy ,mem_config_sensor_type 
+425f 20600000 rtn 
+
+mouse_ka8g2_id2_judge:
+4260 20404276 call mouse_sensor_poweron 
+4261 6fe0c9c7 fetch 1 ,mem_sensor_id2 
+4262 c02cc264 beq pka8g2_id2 ,mouse_ka8g2_init_param 
+4263 202041fc branch mouse_init_p32xx_id2_judge 
+
+mouse_ka8g2_init_param:
+4264 70492c0b jam ka8g2 ,mem_config_sensor_type 
+4265 da604a92 arg mem_sensor_ka8g2_init ,regc 
+4266 2020426b branch mouse_sensor_wr_seq 
+
+mouse_sensor_enable_wp:
+4267 58000009 setarg 0x0009 
+4268 20205d5e branch twspi_write 
+
+mouse_sensor_disable_wp:
+4269 58005a09 setarg 0x5a09 
+426a 20205d5e branch twspi_write 
+
+mouse_sensor_wr_seq:
+426b efe10013 ifetch 2 ,regc 
+426c d840ffff arg 0xffff ,temp 
+426d 98467c00 isub temp ,null 
+426e 20628000 rtn zero 
+426f 20405d5e call twspi_write 
+4270 1a60a602 increase 2 ,regc 
+4271 2020426b branch mouse_sensor_wr_seq 
+
+mouse_sensor_reset:
+4272 58008006 setarg 0x8006 
+
+mouse_sensor_reset_end:
+4273 20405d5e call twspi_write 
+4274 20002ee0 nop 12000 
+4275 20600000 rtn 
+
+mouse_sensor_poweron:
+4276 44e9c01a bpatch patch1a_3 ,mem_patch1a 
+4277 20403fa5 call mouse_sensor_spi_init 
+
+mouse_sensor_poweron_next:
+4278 20404272 call mouse_sensor_reset 
+4279 da604ab4 arg mem_sensor_poweron_init ,regc 
+
+mouse_sensor_poweron_end:
+427a 2040426b call mouse_sensor_wr_seq 
+427b 202040ce branch mouse_dpi_config 
+
+mouse_sensor_powerdown:
+427c 204041e7 call mouse_init_sunt 
+427d 20403fa5 call mouse_sensor_spi_init 
+
+mouse_sensor_powerdown_end:
+427e 58000806 setarg 0x0806 
+427f 20205d5e branch twspi_write 
+
+mouse_check_sensor_data:
+4280 6fe0c4ae fetch 1 ,mem_spi_write_flash_sm 
+4281 c1800000 rtnne flash_sm_no_buys 
+4282 6fe0c92c fetch 1 ,mem_config_sensor_type 
+4283 c000428c beq p3205 ,mouse_p32xx_sensor_motion 
+4284 c000c28c beq p3065 ,mouse_p32xx_sensor_motion 
+4285 c004428c beq ka8 ,mouse_p32xx_sensor_motion 
+4286 c001428c beq p3204 ,mouse_p32xx_sensor_motion 
+4287 c001c2b0 beq p3212 ,mouse_p3212_sensor_motion 
+4288 c002428c beq p3065_xy ,mouse_p32xx_sensor_motion 
+4289 c00342d5 beq p8009 ,mouse_p8009_sensor_motion 
+428a c005c2ce beq ka8g2 ,mouse_pka8g2_sensor_motion 
+428b 2020428c branch mouse_p32xx_sensor_motion 
+
+mouse_p32xx_sensor_motion:
+428c 20404304 call mouse_clear_sensor_data 
+428d 78547c00 disable user 
+428e 6fe0c915 fetch 1 ,mem_sensor_motion_gpio 
+428f c07fc293 beq gpio_disable ,mouse_p32xx_sensor_motion_2 
+4290 6848c915 fetcht 1 ,mem_sensor_motion_gpio 
+4291 204060fd call gpio_get_bit 
+4292 24608000 nrtn true 
+
+mouse_p32xx_sensor_motion_2:
+4293 58000000 setarg pan_reg_pid_l 
+4294 20405d65 call twspi_read 
+4295 c09842a6 bne p32xx_id1 ,mouse_p3065_judge 
+
+mouse_p32xx_sensor_motion_1:
+4296 58000002 setarg pan_reg_motion_staus 
+4297 20405d65 call twspi_read 
+4298 c4038000 rtnbit0 7 
+4299 2040431b call mouse_read_sensor_common 
+429a 6fe0c8d5 fetch 1 ,mem_mouse_x 
+429b 20404313 call mouse_data_extsign 
+429c 67e148d5 store 2 ,mem_mouse_x 
+429d 6fe0c8d7 fetch 1 ,mem_mouse_y 
+429e 20404313 call mouse_data_extsign 
+429f 67e148d7 store 2 ,mem_mouse_y 
+
+mouse_set_sensor_angle:
+42a0 6fe0c92d fetch 1 ,mem_config_sensor_angle 
+42a1 c00042a8 beq mouse_6clk_angle ,mouse_motion32xx_6clk_direction_selection 
+42a2 c000c2aa beq mouse_9clk_angle ,mouse_motion32xx_9clk_direction_selection 
+42a3 c00142ac beq mouse_12clk_angle ,mouse_motion32xx_12clk_direction_selection 
+42a4 c001c2ae beq mouse_3clk_angle ,mouse_motion32xx_3clk_direction_selection 
+42a5 20600000 rtn 
+
+mouse_p3065_judge:
+42a6 c018c296 beq p3065_id1 ,mouse_p32xx_sensor_motion_1 
+42a7 202041f2 branch mouse_twspi_reset 
+
+mouse_motion32xx_6clk_direction_selection:
+42a8 204042ed call mouse_motion_6clk_direction_dispose 
+42a9 20204322 branch mouse_sensor_sdio_low 
+
+mouse_motion32xx_9clk_direction_selection:
+42aa 204042f5 call mouse_motion_9clk_direction_dispose 
+42ab 20204322 branch mouse_sensor_sdio_low 
+
+mouse_motion32xx_12clk_direction_selection:
+42ac 204042f1 call mouse_motion_12clk_direction_dispose 
+42ad 20204322 branch mouse_sensor_sdio_low 
+
+mouse_motion32xx_3clk_direction_selection:
+42ae 204042fd call mouse_motion_3clk_direction_dispose 
+42af 20204322 branch mouse_sensor_sdio_low 
+
+mouse_p3212_sensor_motion:
+42b0 20404304 call mouse_clear_sensor_data 
+42b1 6fe0c915 fetch 1 ,mem_sensor_motion_gpio 
+42b2 c07fc2b6 beq gpio_disable ,mouse_p3212_sensor_motion_1 
+42b3 6848c915 fetcht 1 ,mem_sensor_motion_gpio 
+42b4 204060fd call gpio_get_bit 
+42b5 24608000 nrtn true 
+
+mouse_p3212_sensor_motion_1:
+42b6 58000000 setarg pan_reg_pid_l 
+42b7 20405d65 call twspi_read 
+42b8 c09841f2 bne p32xx_id1 ,mouse_twspi_reset 
+
+mouse_p3212_sensor_motion_2:
+42b9 58000002 setarg pan_reg_motion_staus 
+42ba 20405d65 call twspi_read 
+42bb c4038000 rtnbit0 7 
+42bc 2040431b call mouse_read_sensor_common 
+42bd 204042cc call mouse_read_3212sensor_xy_high 
+42be 67e0c8db store 1 ,mem_mouse_xy_h 
+42bf 1ff1fe00 rshift4 pdata ,pdata 
+42c0 20404317 call mouse_data_extsign_bit3 
+42c1 67e0c8d6 store 1 ,mem_mouse_x + 1 
+42c2 6fe0c8db fetch 1 ,mem_mouse_xy_h 
+42c3 1fe17e0f and pdata ,0x0f ,pdata 
+42c4 20404317 call mouse_data_extsign_bit3 
+42c5 67e0c8d8 store 1 ,mem_mouse_y + 1 
+42c6 6fe0c92d fetch 1 ,mem_config_sensor_angle 
+42c7 c00042ed beq mouse_6clk_angle ,mouse_motion_6clk_direction_dispose 
+42c8 c000c2f5 beq mouse_9clk_angle ,mouse_motion_9clk_direction_dispose 
+42c9 c00142f1 beq mouse_12clk_angle ,mouse_motion_12clk_direction_dispose 
+42ca c001c2fd beq mouse_3clk_angle ,mouse_motion_3clk_direction_dispose 
+42cb 20600000 rtn 
+
+mouse_read_3212sensor_xy_high:
+42cc 58000012 setarg 0x12 
+42cd 20205d65 branch twspi_read 
+
+mouse_pka8g2_sensor_motion:
+42ce 20404304 call mouse_clear_sensor_data 
+42cf 6fe0c915 fetch 1 ,mem_sensor_motion_gpio 
+42d0 c07fc2d4 beq gpio_disable ,mouse_pka8g2_sensor_motion_1 
+42d1 6848c915 fetcht 1 ,mem_sensor_motion_gpio 
+42d2 204060fd call gpio_get_bit 
+42d3 24608000 nrtn true 
+
+mouse_pka8g2_sensor_motion_1:
+42d4 202042b9 branch mouse_p3212_sensor_motion_2 
+
+mouse_p8009_sensor_motion:
+42d5 20404304 call mouse_clear_sensor_data 
+42d6 78547c00 disable user 
+42d7 58000002 setarg pan_reg_motion_staus 
+42d8 20405d65 call twspi_read 
+42d9 c4038000 rtnbit0 7 
+42da 58000008 setarg pan_reg_opration_state 
+42db 20405d65 call twspi_read 
+42dc 203a4299 branch mouse_p32xx_sensor_motion_1 + 3 ,blank 
+42dd 58000000 setarg 0 
+42de 67e348d5 store 6 ,mem_mouse_x 
+42df 20600000 rtn 
+
+mouse_sensor_set_angle:
+42e0 6fe0c929 fetch 1 ,mem_sensor_angle_default 
+42e1 67e0c92d store 1 ,mem_config_sensor_angle 
+42e2 6fe0c91a fetch 1 ,mem_select_sensor_angle_gpio 
+42e3 c17f8000 rtneq gpio_disable 
+42e4 6848c91a fetcht 1 ,mem_select_sensor_angle_gpio 
+42e5 20403f96 call mouse_gpio_config_input_pu 
+42e6 6848c91a fetcht 1 ,mem_select_sensor_angle_gpio 
+42e7 204060fd call gpio_get_bit 
+42e8 2040c2ea call mouse_sensor_switch_angle ,true 
+42e9 20203f94 branch mouse_gpio_config_input_pd 
+
+mouse_sensor_switch_angle:
+42ea 6fe0c92a fetch 1 ,mem_sensor_angle_switch 
+42eb 67e0c92d store 1 ,mem_config_sensor_angle 
+42ec 20600000 rtn 
+
+mouse_motion_6clk_direction_dispose:
+42ed 6fe148d5 fetch 2 ,mem_mouse_x 
+42ee 1fe67e00 sub pdata ,0 ,pdata 
+42ef 67e148d5 store 2 ,mem_mouse_x 
+42f0 20207ec5 branch enable_user 
+
+mouse_motion_12clk_direction_dispose:
+42f1 6fe148d7 fetch 2 ,mem_mouse_y 
+42f2 1fe67e00 sub pdata ,0 ,pdata 
+42f3 67e148d7 store 2 ,mem_mouse_y 
+42f4 20207ec5 branch enable_user 
+
+mouse_motion_9clk_direction_dispose:
+42f5 6fe148d7 fetch 2 ,mem_mouse_y 
+42f6 1fe67e00 sub pdata ,0 ,pdata 
+42f7 67e148d7 store 2 ,mem_mouse_y 
+42f8 6fe148d5 fetch 2 ,mem_mouse_x 
+42f9 1fe67e00 sub pdata ,0 ,pdata 
+42fa 67e148d5 store 2 ,mem_mouse_x 
+42fb 204042ff call mouse_sensor_data_swap_places 
+42fc 20207ec5 branch enable_user 
+
+mouse_motion_3clk_direction_dispose:
+42fd 204042ff call mouse_sensor_data_swap_places 
+42fe 20207ec5 branch enable_user 
+
+mouse_sensor_data_swap_places:
+42ff 6fe148d7 fetch 2 ,mem_mouse_y 
+4300 684948d5 fetcht 2 ,mem_mouse_x 
+4301 67e148d5 store 2 ,mem_mouse_x 
+4302 604948d7 storet 2 ,mem_mouse_y 
+4303 20600000 rtn 
+
+mouse_clear_sensor_data:
+4304 6fe0c9cd fetch 1 ,mem_mouse_move_flag 
+4305 205a431b call mouse_read_sensor_common ,blank 
+4306 7049cd01 jam 1 ,mem_mouse_move_flag 
+4307 20600000 rtn 
+
+mouse_clear_sensor_data_by_reset:
+4308 704abd01 jam 1 ,mem_mouse_clear_sensor_data_flag 
+4309 20401ac6 call le_set_config_more_data 
+
+mouse_init_sensor_reset:
+430a 202041e7 branch mouse_init_sunt 
+
+mouse_data_xy_release:
+430b 6fe0c915 fetch 1 ,mem_sensor_motion_gpio 
+430c c1ff8000 rtnne gpio_disable 
+430d 6fe0cabf fetch 1 ,mem_mouse_long_mult_flag 
+430e c1808000 rtnne 1 
+430f 58000000 setarg 0 
+4310 67e0cabf store 1 ,mem_mouse_long_mult_flag 
+4311 67e248d5 store 4 ,mem_mouse_x 
+4312 2020430a branch mouse_init_sensor_reset 
+
+mouse_data_extsign:
+4313 c4038000 rtnbit0 7 
+4314 d840ff00 arg 0xff00 ,temp 
+4315 9841fe00 ior temp ,pdata 
+4316 20600000 rtn 
+
+mouse_data_extsign_bit3:
+4317 c4018000 rtnbit0 3 
+4318 d84000f0 arg 0xf0 ,temp 
+4319 9841fe00 ior temp ,pdata 
+431a 20600000 rtn 
+
+mouse_read_sensor_common:
+431b dfe00003 arg pan_reg_delta_x ,pdata 
+431c 20405d65 call twspi_read 
+431d 67e148d5 store 2 ,mem_mouse_x 
+431e dfe00004 arg pan_reg_delta_y ,pdata 
+431f 20405d65 call twspi_read 
+4320 67e148d7 store 2 ,mem_mouse_y 
+4321 20600000 rtn 
+
+mouse_sensor_sdio_low:
+4322 6848c924 fetcht 1 ,mem_mouse_sensor_sdio_gpio 
+4323 204060fd call gpio_get_bit 
+4324 20608000 rtn true 
+4325 5800000a setarg 0x0a 
+4326 20405d65 call twspi_read 
+4327 200003e8 nop 1000 
+4328 20204322 branch mouse_sensor_sdio_low 
+
+mouse_set_sdio_high:
+4329 58008100 setarg 0x8100 
+432a 20205d5e branch twspi_write 
+
+mouse_buletooth_fast_conn_init:
+432b 704ad2ff jam 0xff ,mem_mouse_bluetooth_fast_conn_flag 
+432c 6fe0cbc4 fetch 1 ,mem_mouse_bluetooth_type 
+432d c280c32f bbit1 mode_4_mouse ,mouse_ble_fast_conn_init 
+432e c2804334 bbit1 mode_3_mouse ,mouse_bt_fast_conn_init 
+
+mouse_ble_fast_conn_init:
+432f 70448434 jam 0x34 ,mem_xrecord_mode 
+4330 580f0f0f setarg 0x0f0f0f 
+4331 67e1c37a store 3 ,mem_le_lap 
+4332 67e1c37d store 3 ,mem_le_lap + 3 
+4333 20203e24 branch mouse_start_reconnect 
+
+mouse_bt_fast_conn_init:
+4334 70448433 jam 0x33 ,mem_xrecord_mode 
+4335 d8c04979 arg mem_mouse_compare_addr_ff ,contr 
+4336 20404608 call mouse_load_bt_device 
+4337 20203e24 branch mouse_start_reconnect 
+
+mouse_buletooth_fast_conn_end:
+4338 44ea401a bpatch patch1a_4 ,mem_patch1a 
+4339 204045fd call mouse_select_reconn_device 
+433a 20404354 call mouse_bluetooth_fast_conn_disable 
+433b 6fe0c93d fetch 1 ,mem_device_flag 
+433c c000c33f beq mode_bt_device1 ,mouse_device1_check_auto_discover 
+433d c0014341 beq mode_bt_device2 ,mouse_device2_check_auto_discover 
+433e 20600000 rtn 
+
+mouse_device1_check_auto_discover:
+433f 6fe3493f fetch 6 ,mem_device1_addr 
+4340 20204342 branch mouse_device_check_auto_discover 
+
+mouse_device2_check_auto_discover:
+4341 6fe3495c fetch 6 ,mem_device2_addr 
+
+mouse_device_check_auto_discover:
+4342 684b4979 fetcht 6 ,mem_mouse_compare_addr_ff 
+4343 98467c00 isub temp ,null 
+4344 2022c593 branch mouse_start_discovery ,zero 
+4345 20203e1c branch mouse_start_reconnect_device 
+
+mouse_bt_fast_conn_send_device_name:
+4346 20404354 call mouse_bluetooth_fast_conn_disable 
+4347 6fe0c5ff fetch 1 ,mem_local_name_length 
+4348 1fe0fe03 increase 3 ,pdata 
+4349 1fe22200 copy pdata ,rega 
+434a 20404e1e call hid_malloc_tx_buff 
+434b 6fe144e1 fetch 2 ,mem_hid_int_remote_cid 
+434c e7e10005 istore 2 ,contw 
+434d 580004a1 setarg 0x04a1 
+434e e7e10005 istore 2 ,contw 
+434f 6fe0c5ff fetch 1 ,mem_local_name_length 
+4350 1fe0fe01 increase 1 ,pdata 
+4351 1fe27200 copy pdata ,loopcnt 
+4352 d8c045ff arg mem_local_name_length ,contr 
+4353 20207dd4 branch memcpy 
+
+mouse_bluetooth_fast_conn_disable:
+4354 704ad25a jam 0x5a ,mem_mouse_bluetooth_fast_conn_flag 
+4355 20600000 rtn 
+
+mouse_stop_bluetooth_mode:
+4356 6fe1478f fetch 2 ,mem_ui_state_map 
+4357 c283c362 bbit1 ui_state_bt_reconnect ,mouse_cancel_reconnect 
+4358 c284b281 bbit1 ui_state_ble_connected ,app_ble_disconnect 
+4359 c2803268 bbit1 ui_state_bt_connected ,app_bt_disconnect 
+435a 202045b6 branch mouse_stop_discovery 
+
+mouse_disconnect:
+435b 58000000 setarg 0 
+435c 67e14ac3 store 2 ,mem_mouse_no_data_timer 
+435d 6fe1478f fetch 2 ,mem_ui_state_map 
+435e c284b281 bbit1 ui_state_ble_connected ,app_ble_disconnect 
+435f 6fe1478f fetch 2 ,mem_ui_state_map 
+4360 c2803268 bbit1 ui_state_bt_connected ,app_bt_disconnect 
+4361 20600000 rtn 
+
+mouse_cancel_reconnect:
+4362 2040471c call mouse_bt_cannel_reconn_enable 
+4363 2020799c branch check_51cmd_bb_reconn_cancel 
+
+mouse_check_125hz:
+4364 6fe44bbc fetch mouse_flag_len ,mem_mouse_flag 
+4365 c40d8000 rtnbit0 mouse_enable_bt_125hz 
+
+mouse_bluetooth_125hz:
+4366 2434436c nbranch mouse_bluetooth_125hz_clear ,user 
+4367 6fe0cabe fetch 1 ,mem_bluetooth_125hz_cnt 
+4368 1fe0fe01 increase 1 ,pdata 
+4369 1fe17e0f and_into 0x0f ,pdata 
+436a 67e0cabe store 1 ,mem_bluetooth_125hz_cnt 
+436b 247a0000 nrtn blank 
+
+mouse_bluetooth_125hz_clear:
+436c 704abe00 jam 0 ,mem_bluetooth_125hz_cnt 
+436d 78547c00 disable user 
+436e 20600000 rtn 
+
+mouse_current_mult_update:
+436f 6fe0c915 fetch 1 ,mem_sensor_motion_gpio 
+4370 c1ff8000 rtnne gpio_disable 
+4371 70417700 jam 0 ,mem_lpm_mult 
+4372 704ac01e jam 30 ,mem_mouse_current_mult_timer 
+4373 20600000 rtn 
+
+mouse_priority_bb_event:
+4374 44eac01a bpatch patch1a_5 ,mem_patch1a 
+4375 1a627e00 copy regc ,pdata 
+4376 c00a4390 beq bt_evt_le_connected ,mouse_le_bb_event_connected 
+4377 c000c43a beq bt_evt_bb_connected ,mouse_bb_event_connected 
+4378 c00ac39f beq bt_evt_le_disconnected ,mouse_le_bb_disconnected 
+4379 c001443e beq bt_evt_bb_disconnected ,mouse_bb_disconnected 
+437a c002c461 beq bt_evt_setup_complete ,mouse_bt_event_setup_complete 
+437b c008458e beq bt_evt_button_long_pressed ,mouse_bb_event_discovery_btn 
+437c c0094464 beq bt_evt_hid_handshake ,mouse_bt_hid_handshake 
+437d c00332b6 beq bt_evt_hid_connected ,app_hid_connected 
+437e c0024472 beq bt_evt_reconn_failed ,mouse_bb_event_reconn_failed 
+437f c009c472 beq bt_evt_reconn_page_timeout ,mouse_bb_event_reconn_timeout 
+4380 c00cb25e beq bt_evt_switch_not_accept ,app_bt_role_switch 
+4381 c015c47d beq bt_evt_switch_success_master ,mouse_enter_sniff_check 
+4382 c010c483 beq bt_evt_sniff_not_accept ,mouse_sniff_not_accept 
+4383 c005448a beq bt_evt_pincode_req ,mouse_bb_event_pincode 
+4384 c017324c beq bt_evt_remote_unsniff ,app_start_auto_sniff 
+4385 c018c3aa beq bt_evt_le_pairing_success ,mouse_le_pairing_success 
+4386 c014c3ac beq bt_evt_le_enc_info ,mouse_le_enc_info 
+4387 c01943ae beq bt_evt_le_start_enc ,mouse_le_ll_start_encryt 
+4388 c01f43b9 beq bt_evt_le_pairing_complete ,mouse_le_pairing_complete 
+4389 c02043ba beq bt_evt_le_parse_conn_papa_update_rsp ,mouse_le_conn_param_update_rsp_recieved 
+438a c013c48c beq bt_evt_virtual_cable_unplug ,mouse_irtual_cable_unplug 
+438b c01cc896 beq bt_evt_24g_pairing_complete ,mouse_24g_pairing_complete 
+438c c01d4872 beq bt_evt_24g_attempt_fail ,mouse_24g_attempt_fail 
+438d c01e488d beq bt_evt_24g_attempt_success ,mouse_24g_attempt_success 
+438e c02243d0 beq bt_evt_le_parse_conn_param_accepted ,mouse_le_parse_conn_param_accepted 
+438f 20600000 rtn 
+
+mouse_le_bb_event_connected:
+4390 704abf00 jam 0 ,mem_mouse_long_mult_flag 
+4391 2040430a call mouse_init_sensor_reset 
+4392 704ad701 jam 1 ,mem_mouse_le_bb_connected_flag 
+4393 20404861 call mouse_24g_first_store_reconn_info 
+4394 6fe0cad8 fetch 1 ,mem_mouse_le_reconnect_flag 
+4395 243a4397 nbranch mouse_le_bb_event_connected_next ,blank 
+4396 704ad914 jam 0x14 ,mem_mouse_send_secutiry_request_timer 
+
+mouse_le_bb_event_connected_next:
+4397 6fe14482 fetch app_disc_rsn_size ,mem_app_disconn_reason_flag 
+4398 793ffe00 set0 app_disc_by_button ,pdata 
+4399 67e14482 store app_disc_rsn_size ,mem_app_disconn_reason_flag 
+439a 704b8800 jam 0 ,mem_mouse_direct_timer 
+439b 6fe14b01 fetch 2 ,mem_le_battery_level_updata_timer_init 
+439c 67e14b03 store 2 ,mem_le_battery_level_updata_timer 
+439d 20404584 call mouse_no_data_timer_init 
+439e 202045b6 branch mouse_stop_discovery 
+
+mouse_le_bb_disconnected:
+439f 704ad700 jam 0 ,mem_mouse_le_bb_connected_flag 
+43a0 58000006 setarg le_interval_7_5ms 
+43a1 6fe44bbc fetch mouse_flag_len ,mem_mouse_flag 
+43a2 c28dc3a4 bbit1 mouse_enable_bt_125hz ,mouse_le_bb_disconnected_next 
+43a3 58000007 setarg le_interval_8_75ms 
+
+mouse_le_bb_disconnected_next:
+43a4 67e14372 store 2 ,mem_le_interval_min 
+43a5 67e14374 store 2 ,mem_le_interval_min + 2 
+43a6 704b0500 jam le_lpm_enable ,mem_mouse_le_conn_param_reject 
+43a7 704abd00 jam 0 ,mem_mouse_clear_sensor_data_flag 
+43a8 20401ac8 call le_clr_config_more_data 
+43a9 2020443e branch mouse_bb_disconnected 
+
+mouse_le_pairing_success:
+43aa d8e00002 arg ll_pairing_success_flag ,queue 
+43ab 202043b5 branch mouse_le_enable_connect_flag 
+
+mouse_le_enc_info:
+
+mouse_updata_le_param:
+43ac 70095b12 jam bt_cmd_le_update_conn ,mem_fifo_temp 
+43ad 202078e5 branch ui_ipc_send_cmd 
+
+mouse_le_ll_start_encryt:
+43ae 6fe0cad8 fetch 1 ,mem_mouse_le_reconnect_flag 
+43af c000c3b1 beq 1 ,mouse_le_ll_reconn_start_encryt 
+43b0 202043b3 branch mouse_le_ll_enable_start_enc_flag 
+
+mouse_le_ll_reconn_start_encryt:
+43b1 204043ac call mouse_updata_le_param 
+43b2 704b8714 jam 20 ,mem_le_start_encrypt_timer 
+
+mouse_le_ll_enable_start_enc_flag:
+43b3 d8e00001 arg ll_start_enc_flag ,queue 
+43b4 202043b5 branch mouse_le_enable_connect_flag 
+
+mouse_le_enable_connect_flag:
+43b5 6fe0cb86 fetch 1 ,mem_le_connect_status_flag 
+43b6 f9207e00 qset1 pdata 
+43b7 67e0cb86 store 1 ,mem_le_connect_status_flag 
+43b8 20600000 rtn 
+
+mouse_le_pairing_complete:
+43b9 2020328f branch app_ble_store_reconn_info 
+
+mouse_le_conn_param_update_rsp_recieved:
+43ba 6fe143db fetch 2 ,mem_le_l2cap_signaling_conn_param_update_rsp_result 
+43bb c1000000 rtneq ble_signaling_connect_parameter_update_accepted 
+43bc 6fe08289 fetch 1 ,mem_le_tsniff 
+43bd 1feb7e00 rshift2 pdata ,pdata 
+43be 1fe67c0c sub pdata ,le_interval_15ms ,null 
+43bf 20610000 rtn positive 
+43c0 58000009 setarg le_interval_11_25ms 
+43c1 67e14372 store 2 ,mem_le_interval_min 
+43c2 67e14374 store 2 ,mem_le_interval_min + 2 
+43c3 204043ac call mouse_updata_le_param 
+
+mouse_le_conn_param_lpm_disable:
+43c4 704b0501 jam le_lpm_disable ,mem_mouse_le_conn_param_reject 
+43c5 20600000 rtn 
+
+mouse_le_conn_param_lpm_enable:
+43c6 704b0500 jam le_lpm_enable ,mem_mouse_le_conn_param_reject 
+43c7 20600000 rtn 
+
+mouse_le_bb_event_connect_complete:
+43c8 6fe0cad8 fetch 1 ,mem_mouse_le_reconnect_flag 
+43c9 247a0000 nrtn blank 
+43ca 6fe0c437 fetch 1 ,mem_le_att_handle 
+43cb 1fe67e22 sub pdata ,34 ,pdata 
+43cc 24628000 nrtn zero 
+43cd 704b8700 jam 0 ,mem_le_start_encrypt_timer 
+
+mouse_le_write_enable:
+43ce d8e00000 arg write_req_enable_flag ,queue 
+43cf 202043b5 branch mouse_le_enable_connect_flag 
+
+mouse_le_parse_conn_param_accepted:
+43d0 6fe082c1 fetch 1 ,mem_le_new_conninterval 
+43d1 1fe67c0c sub pdata ,le_interval_15ms ,null 
+43d2 242143c4 nbranch mouse_le_conn_param_lpm_disable ,positive 
+43d3 6fe082c3 fetch 1 ,mem_le_new_connslavelatency 
+43d4 6848cb9b fetcht 1 ,mem_lpm_mult_init 
+43d5 98467c00 isub temp ,null 
+43d6 202143da branch mouse_le_lpm_mult_reinit ,positive 
+43d7 6fe082c3 fetch 1 ,mem_le_new_connslavelatency 
+43d8 67e0c177 store 1 ,mem_lpm_mult 
+43d9 202043c6 branch mouse_le_conn_param_lpm_enable 
+
+mouse_le_lpm_mult_reinit:
+43da 6fe0cb9b fetch 1 ,mem_lpm_mult_init 
+43db 67e0c177 store 1 ,mem_lpm_mult 
+43dc 202043c6 branch mouse_le_conn_param_lpm_enable 
+
+mouse_le_clean_connect_flag:
+43dd 704b8600 jam 0 ,mem_le_connect_status_flag 
+43de 20600000 rtn 
+
+mouse_le:
+43df 44eb401a bpatch patch1a_6 ,mem_patch1a 
+43e0 20401b24 call le_fifo_check_nearly_full 
+43e1 247a0000 nrtn blank 
+43e2 6fe0cad2 fetch 1 ,mem_mouse_bluetooth_fast_conn_flag 
+43e3 c07fc3e7 beq 0xff ,mouse_le_next 
+43e4 6fe0cb86 fetch 1 ,mem_le_connect_status_flag 
+43e5 1fe17e03 and pdata ,0x03 ,pdata 
+43e6 c1818000 rtnne 0x03 
+
+mouse_le_next:
+43e7 6fe0cabd fetch 1 ,mem_mouse_clear_sensor_data_flag 
+43e8 205a4308 call mouse_clear_sensor_data_by_reset ,blank 
+43e9 6fe44bbc fetch mouse_flag_len ,mem_mouse_flag 
+43ea c280c411 bbit1 mouse_24g_pairing_flag ,mouse_le_send_empty_packet 
+43eb c2804411 bbit1 mouse_select_device_flag ,mouse_le_send_empty_packet 
+43ec c282c411 bbit1 mouse_bt_discovery_button_down_flag ,mouse_le_send_empty_packet 
+43ed c2834411 bbit1 mouse_bt_discovery_button_long_down_flag ,mouse_le_send_empty_packet 
+43ee 20403fb0 call mouse_motion 
+43ef 20404364 call mouse_check_125hz 
+43f0 24740000 nrtn user 
+43f1 2040436f call mouse_current_mult_update 
+43f2 2040430b call mouse_data_xy_release 
+43f3 2040405d call mouse_wheel_trigger 
+43f4 6fe44bbc fetch mouse_flag_len ,mem_mouse_flag 
+43f5 c30ac3f8 bbit0 mouse_enable_keyboard ,mouse_le_send_mouse_data 
+43f6 6fe0cb9c fetch 1 ,mem_customer_key 
+43f7 c000c3f9 beq 1 ,mouse_le_send_keyboard_package_data 
+
+mouse_le_send_mouse_data:
+43f8 20204413 branch mouse_fill_mouse_data_le 
+
+mouse_le_send_keyboard_package_data:
+43f9 6fe0cb9d fetch 1 ,mem_customer_data_trigger 
+43fa 203a4403 branch mouse_le_release_keyboard_data ,blank 
+43fb 6fe44bde fetch 8 ,mem_customer_key_press + 1 
+
+mouse_fill_keyboard_package_data_le:
+43fc 67e4095c store 8 ,mem_pdatatemp 
+43fd 6fe0cbdd fetch 1 ,mem_customer_key_press 
+43fe c001c405 beq kb_multikey_report_id ,mouse_fill_multimedia_key_data_le 
+43ff c0014408 beq kb_system_conctrl_report_id ,mouse_fill_systemctrl_key_data_le 
+4400 704af708 jam 8 ,mem_le_data_len 
+4401 68494af8 fetcht 2 ,mem_le_keyboard_handle 
+4402 20204418 branch mouse_fill_data_le 
+
+mouse_le_release_keyboard_data:
+4403 6fe44be7 fetch 8 ,mem_customer_key_release + 1 
+4404 202043fc branch mouse_fill_keyboard_package_data_le 
+
+mouse_fill_multimedia_key_data_le:
+4405 704af703 jam 3 ,mem_le_data_len 
+4406 68494afa fetcht 2 ,mem_le_multimedia_handle 
+4407 20204418 branch mouse_fill_data_le 
+
+mouse_fill_systemctrl_key_data_le:
+4408 704af702 jam 2 ,mem_le_data_len 
+4409 68494afc fetcht 2 ,mem_le_systemctrl_handle 
+440a 20204418 branch mouse_fill_data_le 
+
+mouse_fill_battery_level_le:
+440b da200001 arg 1 ,rega 
+440c 68494afe fetcht 2 ,mem_le_battery_level_handle 
+440d 20401e5f call le_att_malloc_tx_notify 
+440e 6fe0cb00 fetch 1 ,mem_le_battery_level_percentage 
+440f e7e08005 istore 1 ,contw 
+4410 20600000 rtn 
+
+mouse_le_send_empty_packet:
+4411 58000000 setarg 0 
+4412 67e3c8d4 store 7 ,mem_mouse_key 
+
+mouse_fill_mouse_data_le:
+4413 704af707 jam 7 ,mem_le_data_len 
+4414 6fe3c8d4 fetch 7 ,mem_mouse_key 
+4415 67e3895c store 7 ,mem_pdatatemp 
+4416 68494357 fetcht 2 ,mem_le_notify_handle 
+4417 20204418 branch mouse_fill_data_le 
+
+mouse_fill_data_le:
+4418 6fe0caf7 fetch 1 ,mem_le_data_len 
+4419 1fe22200 copy pdata ,rega 
+441a 20401e5f call le_att_malloc_tx_notify 
+441b 6848caf7 fetcht 1 ,mem_le_data_len 
+441c 18427200 copy temp ,loopcnt 
+441d d8c0095c arg mem_pdatatemp ,contr 
+441e 20207dd4 branch memcpy 
+
+mouse_check_51cmd_adv:
+441f 704ad800 jam 0 ,mem_mouse_le_reconnect_flag 
+4420 6fe1cadd fetch 3 ,mem_le_adv_ind 
+4421 67e1c3ec store 3 ,mem_le_adv_data + 4 
+4422 20404428 call mouse_le_check_adv_flag 
+4423 58000005 setarg adv_flag_bredr_not_supported | adv_flag_limited_discoverable 
+4424 e7e08006 istore 1 ,contr 
+4425 d8c04ae3 arg mem_le_adv_swift_pair ,contr 
+4426 2040442f call mouse_le_adv_data_update 
+4427 20207959 branch check_51cmd_adv 
+
+mouse_le_check_adv_flag:
+4428 da2043e8 arg mem_le_adv_data ,rega 
+
+mouse_le_check_adv_flag_loop:
+4429 efe08011 ifetch 1 ,rega 
+442a 207a0000 rtn blank 
+442b 98c0a200 iadd contr ,rega 
+442c efe08006 ifetch 1 ,contr 
+442d c1008000 rtneq 0x01 
+442e 20204429 branch mouse_le_check_adv_flag_loop 
+
+mouse_le_adv_data_update:
+442f d8a043f3 arg mem_le_adv_data + 11 ,contw 
+4430 df200013 arg 19 ,loopcnt 
+4431 20407dd4 call memcpy 
+4432 20201a6a branch le_modified_name_adv 
+
+mouse_bt_sniff_param_interval_setup:
+4433 5800000c setarg classic_interval_7_5ms 
+4434 67e14455 store 2 ,mem_sniff_param_interval 
+4435 6fe44bbc fetch mouse_flag_len ,mem_mouse_flag 
+4436 c38d8000 rtnbit1 mouse_enable_bt_125hz 
+4437 5800000e setarg classic_interval_8_75ms 
+4438 67e14455 store 2 ,mem_sniff_param_interval 
+4439 20600000 rtn 
+
+mouse_bb_event_connected:
+443a 704abf00 jam 0 ,mem_mouse_long_mult_flag 
+443b 2040430a call mouse_init_sensor_reset 
+443c 20404861 call mouse_24g_first_store_reconn_info 
+443d 202045b6 branch mouse_stop_discovery 
+
+mouse_bb_disconnected:
+443e 704b9000 jam 0 ,mem_mouse_enter_sniff_count 
+443f 704b9900 jam 0 ,mem_mouse_bt_send_first_package_flag 
+4440 20404433 call mouse_bt_sniff_param_interval_setup 
+4441 20404449 call mouse_bb_discon_clear_stack 
+4442 6fe14480 fetch app_disc_rsn_size ,mem_app_disconn_reason 
+4443 c283c450 bbit1 app_disc_ble ,mouse4_0_event_bb_disconn 
+4444 c2803238 bbit1 app_disc_by_button ,app_disconn_reason_clear 
+4445 c280c454 bbit1 app_disc_after_pairing ,mouse_event_light_state_pairing 
+4446 c2814457 bbit1 app_disc_after_reconn ,mouse_event_light_state_hibernate 
+4447 c281c457 bbit1 app_disc_after_sniff ,mouse_event_light_state_hibernate 
+4448 20204593 branch mouse_start_discovery 
+
+mouse_bb_discon_clear_stack:
+4449 58000000 setarg 0 
+444a 67e448dd store 8 ,mem_wheel_tb_old_pinlevel 
+444b e7e20005 istore 4 ,contw 
+444c 7049cd00 jam 0 ,mem_mouse_move_flag 
+444d 70445400 jam app_handshake_null ,mem_app_handshake_flag 
+444e 70432600 jam 0 ,mem_ltk_exists 
+444f 20600000 rtn 
+
+mouse4_0_event_bb_disconn:
+4450 204043dd call mouse_le_clean_connect_flag 
+4451 6fe14480 fetch app_disc_rsn_size ,mem_app_disconn_reason 
+4452 c2803238 bbit1 app_disc_by_button ,app_disconn_reason_clear 
+4453 20203e5a branch mouse_app_enter_hibernate 
+
+mouse_event_light_state_pairing:
+4454 c282c457 bbit1 app_disc_after_handshake ,mouse_event_light_state_hibernate 
+4455 c281c457 bbit1 app_disc_after_sniff ,mouse_event_light_state_hibernate 
+4456 20204593 branch mouse_start_discovery 
+
+mouse_event_light_state_hibernate:
+4457 6fe1478f fetch 2 ,mem_ui_state_map 
+4458 c2864593 bbit1 ui_state_btn_down ,mouse_start_discovery 
+4459 20403238 call app_disconn_reason_clear 
+445a 20404150 call mouse_key_check_once 
+445b 2040451c call mouse_commbination_key_process 
+445c 6fe0cbb0 fetch 1 ,mem_commbination_key_statue 
+445d c000be57 beq commbination_key_state_down ,mouse_delay_enter_hibernata 
+445e 6fe0cad5 fetch 1 ,mem_mouse_bluetooth_reconnect_timeout 
+445f 247a0000 nrtn blank 
+4460 20203e5a branch mouse_app_enter_hibernate 
+
+mouse_bt_event_setup_complete:
+4461 20600000 rtn 
+
+mouse_bt_send_first_package_timer_init:
+4462 704b9804 jam 4 ,mem_mouse_bt_send_first_package_timer 
+4463 20600000 rtn 
+
+mouse_bt_hid_handshake:
+4464 70445401 jam app_handshake_done ,mem_app_handshake_flag 
+4465 20403295 call app_lpm_mult_enable 
+4466 20403291 call app_bt_store_reconn_info 
+4467 58000000 setarg 0 
+4468 67e1478b store 2 ,mem_discovery_timeout_timer_count 
+4469 67e0c78d store 1 ,mem_hid_handshake_timer_count 
+446a 20404462 call mouse_bt_send_first_package_timer_init 
+446b 2020328d branch app_bt_enter_sniff 
+
+mouse_bt_hid_handshake_boot_check:
+446c 704b9100 jam 0 ,mem_mouse_bt_boot_mode 
+446d 6fe0c5f8 fetch 1 ,mem_l2cap_rcv_hidtype 
+446e 2feffe00 isolate1 0 ,pdata 
+446f 20608000 rtn true 
+4470 704b9101 jam 1 ,mem_mouse_bt_boot_mode 
+4471 20600000 rtn 
+
+mouse_bb_event_reconn_timeout:
+
+mouse_bb_event_reconn_failed:
+4472 6fe0cad2 fetch 1 ,mem_mouse_bluetooth_fast_conn_flag 
+4473 c07fc338 beq 0xff ,mouse_buletooth_fast_conn_end 
+4474 6fe1478f fetch 2 ,mem_ui_state_map 
+4475 c3860000 rtnbit1 ui_state_btn_down 
+4476 c3830000 rtnbit1 ui_state_bt_discovery 
+4477 c3858000 rtnbit1 ui_state_ble_adv 
+4478 6fe44bbc fetch mouse_flag_len ,mem_mouse_flag 
+4479 c3828000 rtnbit1 mouse_bt_discovery_button_down_flag 
+447a c299c593 bbit1 mouse_enable_bt_reconnect_timeout_enter_discovery ,mouse_start_discovery 
+447b c297c85e bbit1 mouse_enable_24g_first_auto_pairing ,mouse_24g_first_bb_event_reconn_timeout 
+447c 20203e5a branch mouse_app_enter_hibernate 
+
+mouse_enter_sniff_check:
+447d 6fe0cb90 fetch 1 ,mem_mouse_enter_sniff_count 
+447e c1810000 rtnne 2 
+447f 704b9000 jam 0 ,mem_mouse_enter_sniff_count 
+4480 20404433 call mouse_bt_sniff_param_interval_setup 
+4481 20404462 call mouse_bt_send_first_package_timer_init 
+4482 2020328d branch app_bt_enter_sniff 
+
+mouse_sniff_not_accept:
+4483 6fe0cb90 fetch 1 ,mem_mouse_enter_sniff_count 
+4484 c1010000 rtneq 2 
+4485 1fe0fe01 increase 1 ,pdata 
+4486 67e0cb90 store 1 ,mem_mouse_enter_sniff_count 
+4487 70445512 jam 0x12 ,mem_sniff_param_interval 
+4488 20404462 call mouse_bt_send_first_package_timer_init 
+4489 2020328d branch app_bt_enter_sniff 
+
+mouse_bb_event_pincode:
+448a 20405b4f call pincode_reinit 
+448b 2020325c branch app_bt_set_pincode 
+
+mouse_irtual_cable_unplug:
+448c 58000001 setarg 0x01 
+448d 67e30040 store 6 ,mem_plap 
+448e 7000e733 jam rec_3_mode ,mem_record_bt_mode 
+448f 202045cd branch mouse_unplug_clean_bdaddr 
+
+mouse_irtual_cable_unplug1:
+4490 5fffffff setarg -1 
+4491 67e30040 store 6 ,mem_plap 
+4492 7000e733 jam rec_3_mode ,mem_record_bt_mode 
+4493 704ad2ff jam 0xff ,mem_mouse_bluetooth_fast_conn_flag 
+4494 204045e2 call mouse_before_store_reconn_info 
+4495 70493eff jam 0xff ,mem_device1_type 
+4496 2020462e branch mouse_store_device_info_delay 
+
+mouse_bt:
+4497 44ebc01a bpatch patch1a_7 ,mem_patch1a 
+4498 20770000 rtn attempt 
+4499 6fe0c454 fetch 1 ,mem_app_handshake_flag 
+449a 207a0000 rtn blank 
+449b 20405352 call l2cap_malloc_is_fifo_nearly_full 
+449c 247a0000 nrtn blank 
+449d 6fe0cad2 fetch 1 ,mem_mouse_bluetooth_fast_conn_flag 
+449e c07fc346 beq 0xff ,mouse_bt_fast_conn_send_device_name 
+449f 6fe0cabd fetch 1 ,mem_mouse_clear_sensor_data_flag 
+44a0 205a4308 call mouse_clear_sensor_data_by_reset ,blank 
+44a1 6fe44bbc fetch mouse_flag_len ,mem_mouse_flag 
+44a2 c280c4ce bbit1 mouse_24g_pairing_flag ,mouse_send_empty_data 
+44a3 c28044ce bbit1 mouse_select_device_flag ,mouse_send_empty_data 
+44a4 c282c4ce bbit1 mouse_bt_discovery_button_down_flag ,mouse_send_empty_data 
+44a5 c28344ce bbit1 mouse_bt_discovery_button_long_down_flag ,mouse_send_empty_data 
+44a6 20403fb0 call mouse_motion 
+44a7 20404364 call mouse_check_125hz 
+44a8 24740000 nrtn user 
+44a9 2040436f call mouse_current_mult_update 
+44aa 2040430b call mouse_data_xy_release 
+44ab 2040405d call mouse_wheel_trigger 
+44ac 6fe0cb91 fetch 1 ,mem_mouse_bt_boot_mode 
+44ad c000c4bd beq 1 ,mouse_send_data_boot_mode 
+44ae 6fe0cb99 fetch 1 ,mem_mouse_bt_send_first_package_flag 
+44af 207a0000 rtn blank 
+44b0 6fe44bbc fetch mouse_flag_len ,mem_mouse_flag 
+44b1 c30ac4b4 bbit0 mouse_enable_keyboard ,mouse_send_data 
+44b2 6fe0cb9c fetch 1 ,mem_customer_key 
+44b3 c000c4d1 beq 1 ,mouse_bt_send_keyboard_packet 
+
+mouse_send_data:
+44b4 da200009 arg 9 ,rega 
+44b5 20404e1e call hid_malloc_tx_buff 
+44b6 6fe144e1 fetch 2 ,mem_hid_int_remote_cid 
+44b7 e7e10005 istore 2 ,contw 
+44b8 580002a1 setarg 0x02a1 
+44b9 e7e10005 istore 2 ,contw 
+44ba 6fe3c8d4 fetch 7 ,mem_mouse_key 
+44bb e7e38005 istore 7 ,contw 
+44bc 20600000 rtn 
+
+mouse_send_data_boot_mode:
+44bd 6fe0c8d4 fetch 1 ,mem_mouse_key 
+44be 67e0cb92 store 1 ,mem_mouse_bt_boot_data 
+44bf 6fe0c8d5 fetch 1 ,mem_mouse_x 
+44c0 e7e08005 istore 1 ,contw 
+44c1 6fe0c8d7 fetch 1 ,mem_mouse_y 
+44c2 e7e08005 istore 1 ,contw 
+44c3 6fe148d9 fetch 2 ,mem_mouse_z 
+44c4 e7e10005 istore 2 ,contw 
+44c5 da200007 arg 7 ,rega 
+44c6 20404e1e call hid_malloc_tx_buff 
+44c7 6fe144e1 fetch 2 ,mem_hid_int_remote_cid 
+44c8 e7e10005 istore 2 ,contw 
+44c9 580002a1 setarg 0x02a1 
+44ca e7e10005 istore 2 ,contw 
+44cb 6fe2cb92 fetch 5 ,mem_mouse_bt_boot_data 
+44cc e7e28005 istore 5 ,contw 
+44cd 20600000 rtn 
+
+mouse_send_empty_data:
+44ce 58000000 setarg 0 
+44cf 67e3c8d4 store 7 ,mem_mouse_key 
+44d0 202044b4 branch mouse_send_data 
+
+mouse_bt_send_keyboard_packet:
+44d1 6fe0cb9d fetch 1 ,mem_customer_data_trigger 
+44d2 203a44f3 branch mouse_bt_release_keyboard_data ,blank 
+44d3 6fe44bde fetch 8 ,mem_customer_key_press + 1 
+
+mouse_bt_send_keyboard_data:
+44d4 67e4095c store 8 ,mem_pdatatemp 
+44d5 6fe0cbdd fetch 1 ,mem_customer_key_press 
+44d6 c001c4e1 beq kb_multikey_report_id ,mouse_bt_send_multimedia_key_data 
+44d7 c00144ea beq kb_system_conctrl_report_id ,mouse_bt_send_systemctrl_key_data 
+44d8 da20000a arg 10 ,rega 
+44d9 20404e1e call hid_malloc_tx_buff 
+44da 6fe144e1 fetch 2 ,mem_hid_int_remote_cid 
+44db e7e10005 istore 2 ,contw 
+44dc 580001a1 setarg 0x01a1 
+44dd e7e10005 istore 2 ,contw 
+44de 6fe4095c fetch 8 ,mem_pdatatemp 
+44df e7e40005 istore 8 ,contw 
+44e0 20600000 rtn 
+
+mouse_bt_send_multimedia_key_data:
+44e1 da200004 arg 4 ,rega 
+44e2 20404e1e call hid_malloc_tx_buff 
+44e3 6fe144e1 fetch 2 ,mem_hid_int_remote_cid 
+44e4 e7e10005 istore 2 ,contw 
+44e5 580003a1 setarg 0x03a1 
+44e6 e7e10005 istore 2 ,contw 
+44e7 6fe1095c fetch 2 ,mem_pdatatemp 
+44e8 e7e10005 istore 2 ,contw 
+44e9 20600000 rtn 
+
+mouse_bt_send_systemctrl_key_data:
+44ea da200003 arg 3 ,rega 
+44eb 20404e1e call hid_malloc_tx_buff 
+44ec 6fe144e1 fetch 2 ,mem_hid_int_remote_cid 
+44ed e7e10005 istore 2 ,contw 
+44ee 580004a1 setarg 0x04a1 
+44ef e7e10005 istore 2 ,contw 
+44f0 6fe0895c fetch 1 ,mem_pdatatemp 
+44f1 e7e08005 istore 1 ,contw 
+44f2 20600000 rtn 
+
+mouse_bt_release_keyboard_data:
+44f3 6fe44be7 fetch 8 ,mem_customer_key_release + 1 
+44f4 202044d4 branch mouse_bt_send_keyboard_data 
+
+mouse_bb_event_timer:
+44f5 44ec401b bpatch patch1b_0 ,mem_patch1b 
+44f6 20403edc call mouse_adc_read 
+44f7 204049a3 call mouse_low_voltage_led_timer 
+44f8 204022e1 call g24_pair_timeout_timer 
+44f9 2040255f call g24_reconn_timeout_timer 
+44fa 2040480b call mouse_24g_long_sleep_param_update_timer 
+44fb 2040490b call mouse_device_poweron_timer 
+44fc 2040493c call mouse_dpi_led_blink_delay_timer 
+44fd 204040bc call mouse_dpi_key_check_long_press 
+44fe 2040450c call mouse_bt_discovery_check 
+44ff 2040451c call mouse_commbination_key_process 
+4500 2040453f call mouse_check_discovery_timeout_timer 
+4501 20404544 call mouse_check_direct_timeout_timer 
+4502 20404552 call mouse_le_enable_att_list_timer 
+4503 2040455f call mouse_le_battery_updata_timer 
+4504 20404555 call mouse_le_send_smp_security_request_timer 
+4505 2040456a call mouse_check_hid_handshake_timer 
+4506 2040456d call mouse_bt_check_sniff_req_timeout_timer 
+4507 20404572 call mouse_check_reconnect_delay_long_sleep 
+4508 20404575 call mouse_current_mult_update_timer 
+4509 20404062 call mouse_wheel_trigger_timer 
+450a 20404587 call mouse_store_information_delay_timer 
+450b 2020457c branch mouse_check_no_data_timeout_timer 
+
+mouse_bt_discovery_check:
+450c 6fe44bbc fetch mouse_flag_len ,mem_mouse_flag 
+450d c29bc50f bbit1 mouse_enable_pb_button_long_press_disconvery ,mouse_bt_discovery_by_pb_button 
+450e 20600000 rtn 
+
+mouse_bt_discovery_by_pb_button:
+450f 6fe0cbaf fetch 1 ,mem_select_device_button_statue 
+4510 c1808000 rtnne pb_button_state_down 
+4511 da604bac arg mem_bt_discovery_count ,regc 
+4512 da404514 arg mouse_long_button_bt_discovery ,regb 
+4513 202031fc branch timer_single_step 
+
+mouse_long_button_bt_discovery:
+4514 6fe0c93d fetch 1 ,mem_device_flag 
+4515 c1000000 rtneq mode_24g_device 
+4516 6fe44bbc fetch mouse_flag_len ,mem_mouse_flag 
+4517 c3830000 rtnbit1 mouse_bt_discovery_button_long_down_flag 
+4518 d8e00006 arg mouse_bt_discovery_button_long_down_flag ,queue 
+4519 2040472e call mouse_enable_function_flag 
+451a 204031e6 call app_evt_button_long_pressed 
+451b 2020458e branch mouse_bb_event_discovery_btn 
+
+mouse_commbination_key_process:
+451c 6fe0c93d fetch 1 ,mem_device_flag 
+451d c0004522 beq mode_24g_device ,mouse_24g_commbination_key_process 
+451e 6fe44bbc fetch mouse_flag_len ,mem_mouse_flag 
+451f c41a8000 rtnbit0 mouse_enable_commbination_key_by_bt_discovery 
+4520 6848cbdb fetcht 1 ,mem_mouse_commbination_key_bt 
+4521 20204525 branch mouse_commbination_key_start 
+
+mouse_24g_commbination_key_process:
+4522 6fe44bbc fetch mouse_flag_len ,mem_mouse_flag 
+4523 c4190000 rtnbit0 mouse_enable_commbination_key_by_24g_pairing 
+4524 6848cbdc fetcht 1 ,mem_mouse_commbination_key_24g 
+
+mouse_commbination_key_start:
+4525 6048cbae storet 1 ,mem_mouse_commbination_key 
+4526 20404155 call mouse_check_key_gpio 
+4527 1fe17e07 and pdata ,0x07 ,pdata 
+4528 6848cbae fetcht 1 ,mem_mouse_commbination_key 
+4529 98467c00 isub temp ,null 
+452a 2022c531 branch mouse_commbination_key_down ,zero 
+
+mouse_commbination_key_up:
+452b 6fe0c792 fetch 1 ,mem_ui_button_timeout 
+452c 67e0cbb1 store 1 ,mem_combination_ui_button_count 
+452d 6fe0cbb0 fetch 1 ,mem_commbination_key_statue 
+452e c1000000 rtneq commbination_key_state_up 
+452f 704bb000 jam commbination_key_state_up ,mem_commbination_key_statue 
+4530 20600000 rtn 
+
+mouse_commbination_key_down:
+4531 20404536 call mouse_combination_ui_timer 
+4532 6fe0cbb0 fetch 1 ,mem_commbination_key_statue 
+4533 c1008000 rtneq commbination_key_state_down 
+4534 704bb001 jam commbination_key_state_down ,mem_commbination_key_statue 
+4535 2020799c branch check_51cmd_bb_reconn_cancel 
+
+mouse_combination_ui_timer:
+4536 da404866 arg mouse_24g_start_pair_mode ,regb 
+4537 da604bb1 arg mem_combination_ui_button_count ,regc 
+4538 6fe0c93d fetch 1 ,mem_device_flag 
+4539 c00031fc beq mode_24g_device ,timer_single_step 
+453a da404514 arg mouse_long_button_bt_discovery ,regb 
+453b 204031fc call timer_single_step 
+453c 6fe0cbb1 fetch 1 ,mem_combination_ui_button_count 
+453d c000c720 beq 1 ,mouse_bt_discovery_button_down_enable 
+453e 20600000 rtn 
+
+mouse_check_discovery_timeout_timer:
+453f da604ad3 arg mem_mouse_discovery_timer ,regc 
+4540 da404542 arg mouse_check_discovery_timeout ,regb 
+4541 20203203 branch timer_single_step_2b 
+
+mouse_check_discovery_timeout:
+4542 204045b6 call mouse_stop_discovery 
+4543 20203e5a branch mouse_app_enter_hibernate 
+
+mouse_check_direct_timeout_timer:
+4544 da604b88 arg mem_mouse_direct_timer ,regc 
+4545 da40454a arg mouse_check_direct_timeout ,regb 
+4546 20403203 call timer_single_step_2b 
+4547 6fe0cb88 fetch 1 ,mem_mouse_direct_timer 
+4548 c000b275 beq 1 ,app_ble_stop_direct_adv 
+4549 20600000 rtn 
+
+mouse_check_direct_timeout:
+454a 6fe0cad2 fetch 1 ,mem_mouse_bluetooth_fast_conn_flag 
+454b c07fc338 beq 0xff ,mouse_buletooth_fast_conn_end 
+454c 6fe0cac1 fetch 1 ,mem_reconn_times 
+454d 243a474c nbranch mouse_polling_device ,blank 
+454e 6fe44bbc fetch mouse_flag_len ,mem_mouse_flag 
+454f c299c593 bbit1 mouse_enable_bt_reconnect_timeout_enter_discovery ,mouse_start_discovery 
+4550 c297c85e bbit1 mouse_enable_24g_first_auto_pairing ,mouse_24g_first_bb_event_reconn_timeout 
+4551 20203e5a branch mouse_app_enter_hibernate 
+
+mouse_le_enable_att_list_timer:
+4552 da604b87 arg mem_le_start_encrypt_timer ,regc 
+4553 da4043ce arg mouse_le_write_enable ,regb 
+4554 202031fc branch timer_single_step 
+
+mouse_le_send_smp_security_request_timer:
+4555 6fe0cad7 fetch 1 ,mem_mouse_le_bb_connected_flag 
+4556 207a0000 rtn blank 
+4557 da604ad9 arg mem_mouse_send_secutiry_request_timer ,regc 
+4558 da40455a arg mouse_le_pairing_sm_start_check ,regb 
+4559 202031fc branch timer_single_step 
+
+mouse_le_pairing_sm_start_check:
+455a 6fe0cad8 fetch 1 ,mem_mouse_le_reconnect_flag 
+455b 247a0000 nrtn blank 
+455c 6fe0c39b fetch 1 ,mem_le_pairing_state 
+455d c1800000 rtnne flag_le_pairing_null 
+455e 2020203d branch le_pairing_sm_start 
+
+mouse_le_battery_updata_timer:
+455f da604b03 arg mem_le_battery_level_updata_timer ,regc 
+4560 da404562 arg mouse_le_battery_level_updata ,regb 
+4561 202031fc branch timer_single_step 
+
+mouse_le_battery_level_updata:
+4562 6fe14b01 fetch 2 ,mem_le_battery_level_updata_timer_init 
+4563 67e14b03 store 2 ,mem_le_battery_level_updata_timer 
+4564 2020440b branch mouse_fill_battery_level_le 
+
+mouse_le_enable_att_list:
+4565 6fe0cb86 fetch 1 ,mem_le_connect_status_flag 
+4566 c3810000 rtnbit1 ll_pairing_success_flag 
+4567 204043ac call mouse_updata_le_param 
+4568 d8e00000 arg write_req_enable_flag ,queue 
+4569 202043b5 branch mouse_le_enable_connect_flag 
+
+mouse_check_hid_handshake_timer:
+456a da60478d arg mem_hid_handshake_timer_count ,regc 
+456b da404464 arg mouse_bt_hid_handshake ,regb 
+456c 202031fc branch timer_single_step 
+
+mouse_bt_check_sniff_req_timeout_timer:
+456d da604b98 arg mem_mouse_bt_send_first_package_timer ,regc 
+456e da404570 arg mouse_bt_send_first_package ,regb 
+456f 202031fc branch timer_single_step 
+
+mouse_bt_send_first_package:
+4570 704b9901 jam 1 ,mem_mouse_bt_send_first_package_flag 
+4571 20600000 rtn 
+
+mouse_check_reconnect_delay_long_sleep:
+4572 da604ad5 arg mem_mouse_bluetooth_reconnect_timeout ,regc 
+4573 da403e5a arg mouse_app_enter_hibernate ,regb 
+4574 202031fc branch timer_single_step 
+
+mouse_current_mult_update_timer:
+4575 da604ac0 arg mem_mouse_current_mult_timer ,regc 
+4576 da404578 arg mouse_current_mult_reinit ,regb 
+4577 202031fc branch timer_single_step 
+
+mouse_current_mult_reinit:
+4578 6fe0cb9b fetch 1 ,mem_lpm_mult_init 
+4579 67e0c177 store 1 ,mem_lpm_mult 
+457a 704abf01 jam 1 ,mem_mouse_long_mult_flag 
+457b 20600000 rtn 
+
+mouse_check_no_data_timeout_timer:
+457c 6fe0c92f fetch 1 ,mem_usb_addr 
+457d c3838000 rtnbit1 7 
+457e da604ac3 arg mem_mouse_no_data_timer ,regc 
+457f da404581 arg mouse_check_no_data_timeout ,regb 
+4580 20203203 branch timer_single_step_2b 
+
+mouse_check_no_data_timeout:
+4581 6fe0c93d fetch 1 ,mem_device_flag 
+4582 c0004820 beq mode_24g_device ,mouse_24g_hibernate_set 
+4583 2020435b branch mouse_disconnect 
+
+mouse_no_data_timer_init:
+4584 6fe14bcf fetch 2 ,mem_mouse_no_data_timeout 
+4585 67e14ac3 store 2 ,mem_mouse_no_data_timer 
+4586 20600000 rtn 
+
+mouse_store_information_delay_timer:
+4587 da6049c4 arg mem_store_information_delay_timer ,regc 
+4588 da40458a arg mouse_store_device_info_check ,regb 
+4589 202031fc branch timer_single_step 
+
+mouse_store_device_info_check:
+458a 20404631 call mouse_store_device_info 
+458b 6fe0cad6 fetch 1 ,mem_mouse_need_soft_reset 
+458c 243a46fe nbranch mouse_soft_reset ,blank 
+458d 20600000 rtn 
+
+mouse_bb_event_discovery_btn:
+458e 280ffe26 isolate1 mark_24g ,mark 
+458f 2040c831 call mouse_24g_stop ,true 
+4590 2040435b call mouse_disconnect 
+4591 204043dd call mouse_le_clean_connect_flag 
+4592 20204593 branch mouse_start_discovery 
+
+mouse_start_discovery:
+4593 44ecc01b bpatch patch1b_1 ,mem_patch1b 
+4594 20404354 call mouse_bluetooth_fast_conn_disable 
+4595 6fe1478f fetch 2 ,mem_ui_state_map 
+4596 c285c59f bbit1 ui_state_ble_adv ,mouse_start_discovery_norandom 
+4597 6fe44bbc fetch mouse_flag_len ,mem_mouse_flag 
+4598 c304459f bbit0 mouse_enable_ble_random_addre ,mouse_start_discovery_norandom 
+4599 6849499c fetcht 2 ,mem_random_addr_increase_count 
+459a 18408401 increase 1 ,temp 
+459b 6049499c storet 2 ,mem_random_addr_increase_count 
+459c 6049437b storet 2 ,mem_le_lap + 1 
+459d 180a7e00 random pdata 
+459e 67e0c37a store 1 ,mem_le_lap 
+
+mouse_start_discovery_norandom:
+459f 6fe1cada fetch 3 ,mem_mouse_le_lap_temp 
+45a0 67e1c37d store 3 ,mem_le_lap + 3 
+45a1 20403297 call app_lpm_mult_disable 
+45a2 6fe14794 fetch 2 ,mem_discovery_timeout 
+45a3 67e14ad3 store 2 ,mem_mouse_discovery_timer 
+45a4 7000bc06 jam 6 ,mem_connection_options 
+45a5 58000000 setarg 0 
+45a6 67e14ac3 store 2 ,mem_mouse_no_data_timer 
+45a7 67e0cb88 store 1 ,mem_mouse_direct_timer 
+45a8 67e0cad5 store 1 ,mem_mouse_bluetooth_reconnect_timeout 
+45a9 67e0cbb8 store 1 ,mem_mouse_device_poweron_timer_count 
+45aa 67e0cabd store 1 ,mem_mouse_clear_sensor_data_flag 
+45ab d8e00002 arg mouse_store_eeprom_flag ,queue 
+45ac 2040472e call mouse_enable_function_flag 
+45ad 20404722 call mouse_bt_discovery_button_down_disable 
+45ae 6fe0cbc4 fetch 1 ,mem_mouse_bluetooth_type 
+45af 2feffe01 isolate1 mode_4_mouse ,pdata 
+45b0 2040c41f call mouse_check_51cmd_adv ,true 
+45b1 6fe0cbc4 fetch 1 ,mem_mouse_bluetooth_type 
+45b2 2feffe00 isolate1 mode_3_mouse ,pdata 
+45b3 2040f92f call check_51cmd_start_discovery ,true 
+45b4 204049db call mouse_low_voltage_led_blink_disable 
+45b5 20204919 branch mouse_discover_setting_led_gpio 
+
+mouse_stop_discovery:
+45b6 44ed401b bpatch patch1b_2 ,mem_patch1b 
+45b7 d8e00006 arg mouse_bt_discovery_button_long_down_flag ,queue 
+45b8 20404732 call mouse_disable_function_flag 
+45b9 704ad500 jam 0 ,mem_mouse_bluetooth_reconnect_timeout 
+45ba 6fe0cbc4 fetch 1 ,mem_mouse_bluetooth_type 
+45bb 2feffe01 isolate1 mode_4_mouse ,pdata 
+45bc 2040c5c1 call mouse_stop_le_adv ,true 
+45bd 6fe0cbc4 fetch 1 ,mem_mouse_bluetooth_type 
+45be 2feffe00 isolate1 mode_3_mouse ,pdata 
+45bf 2040c5c3 call mouse_stop_bt3_discovery ,true 
+45c0 2020495f branch mouse_device_led_off 
+
+mouse_stop_le_adv:
+45c1 704b8800 jam 0 ,mem_mouse_direct_timer 
+45c2 2020795f branch check_51cmd_stop_adv 
+
+mouse_stop_bt3_discovery:
+45c3 58000000 setarg 0 
+45c4 67e14ad3 store 2 ,mem_mouse_discovery_timer 
+45c5 20207934 branch check_51cmd_stop_discovery 
+
+mouse_store_remote_bdaddr:
+45c6 44edc01b bpatch patch1b_3 ,mem_patch1b 
+45c7 6fe44bbc fetch mouse_flag_len ,mem_mouse_flag 
+45c8 c4010000 rtnbit0 mouse_store_eeprom_flag 
+45c9 20404913 call mouse_device_poweron_timer_init 
+45ca d8e00002 arg mouse_store_eeprom_flag ,queue 
+45cb 20404732 call mouse_disable_function_flag 
+45cc 204045cf call mouse_check_device_addr 
+
+mouse_unplug_clean_bdaddr:
+45cd 204045e2 call mouse_before_store_reconn_info 
+45ce 2020462e branch mouse_store_device_info_delay 
+
+mouse_check_device_addr:
+45cf 6fe080e7 fetch 1 ,mem_record_bt_mode 
+45d0 c01a45d3 beq rec_4_mode ,mouse_check_le_device_addr 
+45d1 c019c5d6 beq rec_3_mode ,mouse_check_bt_device_addr 
+45d2 20600000 rtn 
+
+mouse_check_le_device_addr:
+45d3 67e0cb89 store 1 ,mem_device_addr_temp 
+45d4 6fe30297 fetch 6 ,mem_le_plap 
+45d5 202045d8 branch mouse_check_bt_device_addr_common 
+
+mouse_check_bt_device_addr:
+45d6 67e0cb89 store 1 ,mem_device_addr_temp 
+45d7 6fe30040 fetch 6 ,mem_plap 
+
+mouse_check_bt_device_addr_common:
+45d8 67e34b8a store 6 ,mem_device_addr_temp + 1 
+45d9 6fe3cb89 fetch 7 ,mem_device_addr_temp 
+45da d8c0493e arg mem_device1_type ,contr 
+45db df200003 arg 3 ,loopcnt 
+
+mouse_check_device_addr_end:
+45dc e8438006 ifetcht 7 ,contr 
+45dd 98467c00 isub temp ,null 
+45de 2022c5f7 branch mouse_clean_addr ,zero 
+45df 18c08c16 increase 22 ,contr 
+45e0 c20045dc loop mouse_check_device_addr_end 
+45e1 20600000 rtn 
+
+mouse_before_store_reconn_info:
+45e2 da20493e arg mem_device1_type ,rega 
+45e3 6fe0c93d fetch 1 ,mem_device_flag 
+45e4 1fe0ffff increase -1 ,pdata 
+45e5 1feffe1d mul32 pdata ,29 ,pdata 
+45e6 9a20a200 iadd rega ,rega 
+45e7 6fe080e7 fetch 1 ,mem_record_bt_mode 
+45e8 e7e08011 istore 1 ,rega 
+45e9 c01a45ec beq rec_4_mode ,mouse_store_le_device 
+45ea c019c5f3 beq rec_3_mode ,mouse_store_bt_device 
+45eb 20600000 rtn 
+
+mouse_store_le_device:
+45ec 6fe30297 fetch 6 ,mem_le_plap 
+45ed e7e30005 istore 6 ,contw 
+45ee d8c04316 arg mem_le_ltk ,contr 
+45ef 20407d7f call memcpy16 
+45f0 6fe3437a fetch 6 ,mem_le_lap 
+45f1 e7e30005 istore 6 ,contw 
+45f2 20600000 rtn 
+
+mouse_store_bt_device:
+45f3 6fe30040 fetch 6 ,mem_plap 
+45f4 e7e30005 istore 6 ,contw 
+45f5 d8c041cb arg mem_link_key ,contr 
+45f6 20207d7f branch memcpy16 
+
+mouse_clean_addr:
+45f7 18c08dfa increase -6 ,contr 
+45f8 18c20a00 copy contr ,contw 
+45f9 684b4b8a fetcht 6 ,mem_device_addr_temp + 1 
+45fa 18408403 increase 3 ,temp 
+45fb e0430005 istoret 6 ,contw 
+45fc 20600000 rtn 
+
+mouse_select_reconn_device:
+45fd da20493e arg mem_device1_type ,rega 
+45fe 6fe0c93d fetch 1 ,mem_device_flag 
+45ff c1000000 rtneq mode_24g_device 
+4600 1fe0ffff increase -1 ,pdata 
+4601 1feffe1d mul32 pdata ,29 ,pdata 
+4602 9a20a200 iadd rega ,rega 
+4603 efe08011 ifetch 1 ,rega 
+4604 67e0c484 store 1 ,mem_xrecord_mode 
+4605 c019c608 beq rec_3_mode ,mouse_load_bt_device 
+4606 c01a460d beq rec_4_mode ,mouse_load_le_device 
+4607 20600000 rtn 
+
+mouse_load_bt_device:
+4608 efe30006 ifetch 6 ,contr 
+
+mouse_load_bt_device_end:
+4609 67e341dd store 6 ,mem_hci_plap 
+460a d8a041cb arg mem_link_key ,contw 
+460b 20407d7f call memcpy16 
+460c 202060d0 branch check_link_key_load 
+
+mouse_load_le_device:
+460d efe30006 ifetch 6 ,contr 
+
+mouse_load_le_device_end:
+460e 67e341dd store 6 ,mem_hci_plap 
+460f d8a04316 arg mem_le_ltk ,contw 
+4610 20407d7f call memcpy16 
+4611 efe30006 ifetch 6 ,contr 
+4612 67e3437a store 6 ,mem_le_lap 
+4613 20600000 rtn 
+
+mouse_app_initflag_check:
+4614 6fe14995 fetch 2 ,mem_store_flag 
+4615 d840aa55 arg eeprom_init_flag ,temp 
+4616 98467c00 isub temp ,null 
+4617 2022c622 branch mouse_load_device_info ,zero 
+4618 60494995 storet 2 ,mem_store_flag 
+4619 20404627 call mouse_ble_init_address 
+461a 6fe0cac5 fetch 1 ,mem_device_flag_temp 
+461b 67e0c93d store 1 ,mem_device_flag 
+461c 6fe0c92b fetch 1 ,mem_config_sensor_dpi 
+461d 67e0c997 store 1 ,mem_mouse_dpi 
+461e 6fe24891 fetch 4 ,mem_24g_fast_conn_addr 
+461f 67e24895 store 4 ,mem_24g_receiver_addr 
+4620 67e2483f store 4 ,mem_24g_addr 
+4621 20600000 rtn 
+
+mouse_load_device_info:
+4622 204045fd call mouse_select_reconn_device 
+4623 6fe24998 fetch 4 ,mem_mouse_24g_addr 
+4624 67e24895 store 4 ,mem_24g_receiver_addr 
+4625 67e2483f store 4 ,mem_24g_addr 
+4626 20600000 rtn 
+
+mouse_ble_init_address:
+4627 6fe3437a fetch 6 ,mem_le_lap 
+4628 67e34955 store 6 ,mem_device1_locall_addr 
+4629 1fe0ff00 add pdata ,0x0100 ,pdata 
+462a 67e34972 store 6 ,mem_device2_locall_addr 
+462b 1fe0ff00 add pdata ,0x0100 ,pdata 
+462c 67e3498f store 6 ,mem_device3_locall_addr 
+462d 20600000 rtn 
+
+mouse_store_device_info_delay:
+462e 6fe0c9c5 fetch 1 ,mem_store_information_delay_timer_init 
+462f 67e0c9c4 store 1 ,mem_store_information_delay_timer 
+4630 20600000 rtn 
+
+mouse_store_device_info:
+4631 44ee401b bpatch patch1b_4 ,mem_patch1b 
+4632 6fe44bbc fetch mouse_flag_len ,mem_mouse_flag 
+4633 c289c67f bbit1 mouse_enable_eeprom ,mouse_store_eeprom_device_info 
+4634 c2894643 bbit1 mouse_enable_flash ,mouse_store_flash_device_info 
+4635 20600000 rtn 
+
+mouse_load_flash_info_check:
+4636 20405daf call spid_init_flash 
+4637 2040464a call mouse_spid_flash_release_form_powerdown 
+4638 2040463d call mouse_information_flash_parameters 
+4639 20405dd2 call spid_read_flash 
+463a 20404651 call mouse_spid_flash_powerdown 
+463b 20404614 call mouse_app_initflag_check 
+463c 20203fa5 branch mouse_sensor_spi_init 
+
+mouse_information_flash_parameters:
+463d 580049bd setarg mem_mouse_information_end 
+463e d840493d arg mem_mouse_information_start ,temp 
+463f 98460400 isub temp ,temp 
+4640 6fe1c9bd fetch 3 ,mem_flash_base 
+4641 da20493d arg mem_mouse_information_start ,rega 
+4642 20600000 rtn 
+
+mouse_store_flash_device_info:
+4643 20405daf call spid_init_flash 
+4644 2040464a call mouse_spid_flash_release_form_powerdown 
+4645 2040465f call mouse_flash_erase_sector 
+4646 2040463d call mouse_information_flash_parameters 
+4647 20404662 call mouse_spid_write_flash 
+4648 20404651 call mouse_spid_flash_powerdown 
+4649 20203fa5 branch mouse_sensor_spi_init 
+
+mouse_spid_flash_release_form_powerdown:
+464a 700964ab jam flash_command_release_from_powerdown ,mem_temp 
+
+mouse_spid_write_flash_cmd:
+464b 2040623f call delay_nop100 
+464c 20405db4 call spid_unlock_flash 
+464d da2049c0 arg mem_write_flash_head_temp ,rega 
+464e 68488964 fetcht 1 ,mem_temp 
+464f 20404653 call mouse_spid_write_flash_cmd_common 
+4650 2020623f branch delay_nop100 
+
+mouse_spid_flash_powerdown:
+4651 700964b9 jam flash_command_powerdown ,mem_temp 
+4652 2020464b branch mouse_spid_write_flash_cmd 
+
+mouse_spid_write_flash_cmd_common:
+4653 e0408011 istoret 1 ,rega 
+4654 1ff10400 rshift16 pdata ,temp 
+4655 e0408005 istoret 1 ,contw 
+4656 1fec8400 rshift8 pdata ,temp 
+4657 e0408005 istoret 1 ,contw 
+4658 e7e08005 istore 1 ,contw 
+4659 1a227e00 deposit rega 
+465a 67f1008a store 2 ,core_spid_txaddr 
+465b 58000000 setarg 0 
+465c 67f1008e store 2 ,core_spid_rxlen 
+465d 70800602 jam spid_start ,core_misc_ctrl 
+465e 20205d6e branch wait_spid_done 
+
+mouse_flash_erase_sector:
+465f 6fe1c9bd fetch 3 ,mem_flash_base 
+4660 67e1c4a7 store 3 ,mem_spi_write_addr 
+4661 20205d8a branch spid_flash_erase_sector + 2 
+
+mouse_spid_write_flash:
+4662 1fe22600 copy pdata ,regc 
+4663 1a227e00 copy rega ,pdata 
+4664 1fe0fffc increase -4 ,pdata 
+4665 1fe22400 copy pdata ,regb 
+4666 efe20012 ifetch 4 ,regb 
+4667 67e249c0 store 4 ,mem_write_flash_head_temp 
+4668 1a627e00 copy regc ,pdata 
+4669 20405dc1 call spid_write_flash 
+466a 6fe249c0 fetch 4 ,mem_write_flash_head_temp 
+466b e7e20012 istore 4 ,regb 
+466c 20600000 rtn 
+
+mouse_flash_power_down:
+466d 6fe44bbc fetch mouse_flag_len ,mem_mouse_flag 
+466e c4090000 rtnbit0 mouse_enable_flash 
+466f 20404651 call mouse_spid_flash_powerdown 
+4670 20405b66 call twspi_enable 
+4671 6848c4b7 fetcht 1 ,mem_spi_cs_gpio 
+4672 20406109 call gpio_out_inactive 
+4673 6848c4bc fetcht 1 ,mem_spi_hold_gpio 
+4674 20203f94 branch mouse_gpio_config_input_pd 
+
+mouse_load_eeprom_info_check:
+4675 20405e42 call iicd_read_init_pin 
+4676 6fe44bbc fetch mouse_flag_len ,mem_mouse_flag 
+4677 2feffe09 isolate1 mouse_enable_2k_eeprom ,pdata 
+4678 2440de5c ncall clear_eeprom_size_2k ,true 
+4679 2040467b call mouse_eeprom_load_recon_info 
+467a 20204614 branch mouse_app_initflag_check 
+
+mouse_eeprom_load_recon_info:
+467b d8400080 arg 128 ,temp 
+467c da20493d arg mem_device_flag ,rega 
+467d da400000 arg mouse_info_eeprom_offect ,regb 
+467e 20205e79 branch iicd_read_eep_data 
+
+mouse_store_eeprom_device_info:
+467f d8400080 arg 128 ,temp 
+4680 da20493d arg mem_device_flag ,rega 
+4681 da400000 arg mouse_info_eeprom_offect ,regb 
+4682 20205e6b branch iicd_write_protect_eep_data 
+
+mouse_store_eerpom_dpi:
+4683 d8400001 arg 1 ,temp 
+4684 da204997 arg mem_mouse_dpi ,rega 
+4685 da40005a arg mouse_dpi_eeprom_offect ,regb 
+4686 20205e6b branch iicd_write_protect_eep_data 
+
+mouse_load_eeprom_dpi:
+4687 d8400001 arg 1 ,temp 
+4688 da204997 arg mem_mouse_dpi ,rega 
+4689 da40005a arg mouse_dpi_eeprom_offect ,regb 
+468a 20205e79 branch iicd_read_eep_data 
+
+mouse_idle:
+468b 44eec01b bpatch patch1b_5 ,mem_patch1b 
+468c 204049dd call mouse_low_voltage_led_no_enter_lpm 
+468d 204079a1 call ui_check_paring_button 
+468e 20404067 call mouse_dpi_check 
+468f 20404693 call mouse_select_device_check 
+4690 204046de call mouse_check_select_device_by_switch 
+4691 20404714 call mouse_bt_button_check 
+4692 20203fc8 branch mouse_wheel_check 
+
+mouse_select_device_check:
+4693 6fe44bbc fetch mouse_flag_len ,mem_mouse_flag 
+4694 c294c698 bbit1 mouse_enable_select_device_by_pb_button ,mouse_select_device_by_pb_button 
+4695 c29bc698 bbit1 mouse_enable_pb_button_long_press_disconvery ,mouse_select_device_by_pb_button 
+4696 20600000 rtn 
+
+mouse_select_device_by_pb_button_check_once:
+4697 704ba503 jam 0x03 ,mem_mouse_pbkey_press_status 
+
+mouse_select_device_by_pb_button:
+4698 6fe0c91f fetch 1 ,mem_config_select_device_button_gpio 
+4699 c17f8000 rtneq gpio_disable 
+469a da200000 arg 0 ,rega 
+469b 704ba706 jam mouse_pb_key ,mem_mouse_key_temp 
+469c 6848c91f fetcht 1 ,mem_config_select_device_button_gpio 
+469d 204046a8 call mouse_pb_button_check 
+469e 67e0cba5 store 1 ,mem_mouse_pbkey_press_status 
+469f 6fe0c914 fetch 1 ,mem_matrix_public_gpio 
+46a0 c07fc6a5 beq gpio_disable ,mouse_3io6key_pb_button_check_end 
+46a1 204041a8 call mouse_matrix_public_gpio_reset 
+
+mouse_select_device_by_pb_button_exit:
+46a2 1a227e00 copy rega ,pdata 
+46a3 c28346c9 bbit1 mouse_pb_key ,mouse_select_device_button_down 
+46a4 202046be branch mouse_select_device_button_up 
+
+mouse_3io6key_pb_button_check_end:
+46a5 6848c91f fetcht 1 ,mem_config_select_device_button_gpio 
+46a6 20403f96 call mouse_gpio_config_input_pu 
+46a7 202046a2 branch mouse_select_device_by_pb_button_exit 
+
+mouse_pb_button_check:
+46a8 6fe44bbc fetch mouse_flag_len ,mem_mouse_flag 
+46a9 c296c6b4 bbit1 mouse_enable_pb_button_connect_gnd ,mouse_pb_button_connect_gnd 
+46aa 6fe0cba5 fetch 1 ,mem_mouse_pbkey_press_status 
+46ab 1fe22600 copy pdata ,regc 
+46ac 6fe0c914 fetch 1 ,mem_matrix_public_gpio 
+46ad c07fc1d5 beq gpio_disable ,mouse_3io6key_check 
+46ae 6fe0cbab fetch 1 ,mem_mouse_ghost_flag 
+46af 243a46b1 nbranch mouse_select_device_by_pb_button_end ,blank 
+46b0 202046b6 branch mouse_pb_button_connect_matrix 
+
+mouse_select_device_by_pb_button_end:
+46b1 704baf00 jam pb_button_state_up ,mem_select_device_button_statue 
+46b2 704ba500 jam 0 ,mem_mouse_pbkey_press_status 
+46b3 20600000 rtn 
+
+mouse_pb_button_connect_gnd:
+46b4 6fe0cba5 fetch 1 ,mem_mouse_pbkey_press_status 
+46b5 202041c7 branch mouse_check_key_connect_gnd 
+
+mouse_pb_button_connect_matrix:
+46b6 204060fd call gpio_get_bit 
+46b7 6848c914 fetcht 1 ,mem_matrix_public_gpio 
+46b8 2020c6b4 branch mouse_pb_button_connect_gnd ,true 
+46b9 6848c914 fetcht 1 ,mem_matrix_public_gpio 
+46ba 2040610d call gpio_out_active 
+46bb 6848c91f fetcht 1 ,mem_config_select_device_button_gpio 
+46bc 6fe0cba5 fetch 1 ,mem_mouse_pbkey_press_status 
+46bd 202041c7 branch mouse_check_key_connect_gnd 
+
+mouse_select_device_button_up:
+46be 6fe0cbaf fetch 1 ,mem_select_device_button_statue 
+46bf c1000000 rtneq pb_button_state_up 
+46c0 704baf00 jam pb_button_state_up ,mem_select_device_button_statue 
+46c1 6fe44bbc fetch mouse_flag_len ,mem_mouse_flag 
+46c2 c39a0000 rtnbit1 mouse_enable_pb_button_short_press_enter_discovery 
+46c3 6fe0cbac fetch 1 ,mem_bt_discovery_count 
+46c4 1fe67c14 sub pdata ,20 ,null 
+46c5 244146f3 ncall mouse_ready_reconnection_by_button ,positive 
+46c6 6fe0c792 fetch 1 ,mem_ui_button_timeout 
+46c7 67e0cbac store 1 ,mem_bt_discovery_count 
+46c8 20600000 rtn 
+
+mouse_select_device_button_down:
+46c9 204046d5 call mouse_select_device_ghost_check 
+46ca 20740000 rtn user 
+46cb 6fe0cbaf fetch 1 ,mem_select_device_button_statue 
+46cc c1008000 rtneq pb_button_state_down 
+46cd 704baf01 jam pb_button_state_down ,mem_select_device_button_statue 
+46ce 6fe44bbc fetch mouse_flag_len ,mem_mouse_flag 
+46cf c29a4514 bbit1 mouse_enable_pb_button_short_press_enter_discovery ,mouse_long_button_bt_discovery 
+46d0 6fe0cb88 fetch 1 ,mem_mouse_direct_timer 
+46d1 207a0000 rtn blank 
+46d2 6fe0c906 fetch 1 ,mem_mouse_direct_timeout 
+46d3 67e0cb88 store 1 ,mem_mouse_direct_timer 
+46d4 20600000 rtn 
+
+mouse_select_device_ghost_check:
+46d5 78547c00 disable user 
+46d6 6fe44bbc fetch mouse_flag_len ,mem_mouse_flag 
+46d7 c3968000 rtnbit1 mouse_enable_pb_button_connect_gnd 
+46d8 6fe0cb9f fetch 1 ,mem_mouse_lkey_press_status 
+46d9 207a0000 rtn blank 
+46da 6fe0cba0 fetch 1 ,mem_mouse_rkey_press_status 
+46db 207a0000 rtn blank 
+46dc 78347c00 enable user 
+46dd 20600000 rtn 
+
+mouse_check_select_device_by_switch:
+46de 6fe44bbc fetch mouse_flag_len ,mem_mouse_flag 
+46df c29546e2 bbit1 mouse_enable_select_device_by_switch_gpio ,mouse_check_select_device_by_switch_gpio 
+46e0 c295bedc bbit1 mouse_enable_select_device_by_switch_adc ,mouse_adc_read 
+46e1 20600000 rtn 
+
+mouse_check_select_device_by_switch_gpio:
+46e2 6848c922 fetcht 1 ,mem_device_switch_gpio 
+46e3 20403f96 call mouse_gpio_config_input_pu 
+46e4 6848c922 fetcht 1 ,mem_device_switch_gpio 
+46e5 204060fd call gpio_get_bit 
+46e6 2020c6eb branch mouse_check_select_24gdevice ,true 
+
+mouse_select_btdevice:
+46e7 6fe0c93d fetch 1 ,mem_device_flag 
+46e8 c1008000 rtneq mode_bt_device1 
+46e9 70493d01 jam mode_bt_device1 ,mem_device_flag 
+46ea 20204356 branch mouse_stop_bluetooth_mode 
+
+mouse_check_select_24gdevice:
+46eb 6fe44bbc fetch mouse_flag_len ,mem_mouse_flag 
+46ec c315c6ef bbit0 mouse_enable_select_device_by_switch_adc ,mouse_check_select_24g_device 
+46ed 6fe348f3 fetch 6 ,mem_mouse_vdd_switch_gnd_full_vol 
+46ee 67e348e7 store 6 ,mem_mouse_vdd_calculate_set 
+
+mouse_check_select_24g_device:
+46ef 6fe0c93d fetch 1 ,mem_device_flag 
+46f0 c1000000 rtneq mode_24g_device 
+46f1 70493d00 jam mode_24g_device ,mem_device_flag 
+46f2 20204831 branch mouse_24g_stop 
+
+mouse_ready_reconnection_by_button:
+46f3 44ef401b bpatch patch1b_6 ,mem_patch1b 
+46f4 6fe0cbc5 fetch 1 ,mem_device_number 
+46f5 c1008000 rtneq 1 
+46f6 20404700 call mouse_select_device_number 
+46f7 6048c93d storet 1 ,mem_device_flag 
+
+mouse_store_device_number_before_reset:
+46f8 7041ca00 jam 0 ,mem_link_key_exists 
+46f9 20404718 call mouse_select_device_enable 
+46fa 20404356 call mouse_stop_bluetooth_mode 
+46fb 2040471a call mouse_select_device_disable 
+46fc 704ad601 jam 1 ,mem_mouse_need_soft_reset 
+46fd 2020462e branch mouse_store_device_info_delay 
+
+mouse_soft_reset:
+46fe 20404718 call mouse_select_device_enable 
+46ff 20205e29 branch soft_reset_chip 
+
+mouse_select_device_number:
+4700 6848c93d fetcht 1 ,mem_device_flag 
+4701 18408401 increase 1 ,temp 
+4702 6fe44bbc fetch mouse_flag_len ,mem_mouse_flag 
+4703 c288c707 bbit1 mouse_enable_24g ,mouse_select_device_number_24g 
+4704 18467c02 sub temp ,2 ,null 
+4705 2441470e ncall mouse_select_device_count_clean_bt ,positive 
+4706 20600000 rtn 
+
+mouse_select_device_number_24g:
+4707 6fe0cbc5 fetch 1 ,mem_device_number 
+4708 1fe0ffff increase -1 ,pdata 
+4709 98467c00 isub temp ,null 
+470a 2441470c ncall mouse_select_device_count_clean_24g ,positive 
+470b 20600000 rtn 
+
+mouse_select_device_count_clean_24g:
+470c d8400000 arg 0 ,temp 
+470d 20600000 rtn 
+
+mouse_select_device_count_clean_bt:
+470e d8400001 arg 1 ,temp 
+470f 20600000 rtn 
+
+mouse_store_device_number2eeprom:
+4710 d8400001 arg 1 ,temp 
+4711 da20493d arg mem_device_flag ,rega 
+4712 da400000 arg 0 ,regb 
+4713 20205e6b branch iicd_write_protect_eep_data 
+
+mouse_bt_button_check:
+4714 6fe44bbc fetch mouse_flag_len ,mem_mouse_flag 
+4715 c41a0000 rtnbit0 mouse_enable_pb_button_short_press_enter_discovery 
+4716 20404698 call mouse_select_device_by_pb_button 
+4717 20600000 rtn 
+
+mouse_select_device_enable:
+4718 d8e00000 arg mouse_select_device_flag ,queue 
+4719 2020472e branch mouse_enable_function_flag 
+
+mouse_select_device_disable:
+471a d8e00000 arg mouse_select_device_flag ,queue 
+471b 20204732 branch mouse_disable_function_flag 
+
+mouse_bt_cannel_reconn_enable:
+471c d8e00003 arg mouse_bt_cannel_reconn_flag ,queue 
+471d 2020472e branch mouse_enable_function_flag 
+
+mouse_bt_cannel_reconn_disable:
+471e d8e00003 arg mouse_bt_cannel_reconn_flag ,queue 
+471f 20204732 branch mouse_disable_function_flag 
+
+mouse_bt_discovery_button_down_enable:
+4720 d8e00005 arg mouse_bt_discovery_button_down_flag ,queue 
+4721 2020472e branch mouse_enable_function_flag 
+
+mouse_bt_discovery_button_down_disable:
+4722 d8e00005 arg mouse_bt_discovery_button_down_flag ,queue 
+4723 20204732 branch mouse_disable_function_flag 
+
+mouse_adc_read_enable:
+4724 d8e00014 arg mouse_enable_adc ,queue 
+4725 2020472e branch mouse_enable_function_flag 
+
+mouse_24g_set_250hz:
+4726 d8e00018 arg mouse_enable_24g_250hz ,queue 
+4727 2020472e branch mouse_enable_function_flag 
+
+mouse_24g_search_dongle_enable:
+4728 d8e00016 arg mouse_enable_24g_search_dongle ,queue 
+4729 2020472e branch mouse_enable_function_flag 
+
+mouse_16m_enable:
+472a d8e0000c arg mouse_enable_16m ,queue 
+472b 2020472e branch mouse_enable_function_flag 
+
+mouse_dpi_4level_enable:
+472c d8e0001c arg mouse_enable_dpi_level_4 ,queue 
+472d 2020472e branch mouse_enable_function_flag 
+
+mouse_enable_function_flag:
+472e 6fe44bbc fetch mouse_flag_len ,mem_mouse_flag 
+472f f9207e00 qset1 pdata 
+4730 67e44bbc store mouse_flag_len ,mem_mouse_flag 
+4731 20600000 rtn 
+
+mouse_disable_function_flag:
+4732 6fe44bbc fetch mouse_flag_len ,mem_mouse_flag 
+4733 f93ffe00 qset0 pdata 
+4734 67e44bbc store mouse_flag_len ,mem_mouse_flag 
+4735 20600000 rtn 
+
+mouse_customer_key_enable:
+4736 d8e00015 arg mouse_enable_keyboard ,queue 
+4737 2040472e call mouse_enable_function_flag 
+4738 58000000 setarg 0 
+4739 67e44bdd store 8 ,mem_customer_key_press 
+473a 67e44be6 store 8 ,mem_customer_key_release 
+473b 6fe0c90e fetch 1 ,mem_mouse_enable_flag 
+473c 1fe17ec0 and pdata ,0xc0 ,pdata 
+473d c0204743 beq 0x40 ,mouse_customer_key_ctrl_alt_a 
+473e c0404745 beq 0x80 ,mouse_customer_ac_home 
+473f c060474a beq 0xc0 ,mouse_customer_key_play 
+4740 58070008 setarg 0x070008 
+
+mouse_customer_standrad_key_set:
+4741 67e44bde store 8 ,mem_customer_key_press + 1 
+4742 20600000 rtn 
+
+mouse_customer_key_ctrl_alt_a:
+4743 58040005 setarg 0x040005 
+4744 20204741 branch mouse_customer_standrad_key_set 
+
+mouse_customer_ac_home:
+4745 58022303 setarg 0x022303 
+
+mouse_customer_media_key_set:
+4746 67e44bdd store 8 ,mem_customer_key_press 
+4747 58000003 setarg 0x03 
+4748 67e44be6 store 8 ,mem_customer_key_release 
+4749 20600000 rtn 
+
+mouse_customer_key_play:
+474a 5800cd03 setarg 0x00cd03 
+474b 20204746 branch mouse_customer_media_key_set 
+
+mouse_polling_device:
+474c 44efc01b bpatch patch1b_7 ,mem_patch1b 
+474d 6fe0cac1 fetch 1 ,mem_reconn_times 
+474e 1fe0ffff increase -1 ,pdata 
+474f 67e0cac1 store 1 ,mem_reconn_times 
+4750 6848c93d fetcht 1 ,mem_device_flag 
+4751 18467c01 sub temp ,1 ,null 
+4752 2442c700 ncall mouse_select_device_number ,zero 
+4753 6048c93d storet 1 ,mem_device_flag 
+4754 7041ca00 jam 0 ,mem_link_key_exists 
+4755 20404710 call mouse_store_device_number2eeprom 
+4756 204045e2 call mouse_before_store_reconn_info 
+4757 20203e1c branch mouse_start_reconnect_device 
+
+mouse_drawing_optima:
+4758 6fe44bbc fetch mouse_flag_len ,mem_mouse_flag 
+4759 c41c0000 rtnbit0 mouse_enable_smoother 
+475a 6fe248d5 fetch 4 ,mem_mouse_x 
+475b 207a0000 rtn blank 
+475c 204047fb call mouse_data_abs_check 
+475d 58000003 setarg 0x03 
+475e 204047f1 call mouse_pdata_greater_than_check 
+475f 205a47ed call mouse_disable_asm ,blank 
+4760 245a47ef ncall mouse_enable_asm ,blank 
+4761 58000002 setarg 0x02 
+4762 204047f6 call mouse_data_less_than_check 
+4763 205a47ed call mouse_disable_asm ,blank 
+4764 6fe0c9ce fetch 1 ,mem_mouse_asm_flag 
+4765 c000c76b beq 1 ,mouse_drawing_optima_modify 
+
+mouse_drawing_optima_init:
+4766 6fe44bbc fetch mouse_flag_len ,mem_mouse_flag 
+4767 c41c0000 rtnbit0 mouse_enable_smoother 
+4768 df200005 arg 5 ,loopcnt 
+4769 d8a049ce arg mem_mouse_asm_flag ,contw 
+476a 20207d9b branch clear_mem 
+
+mouse_drawing_optima_modify:
+476b 2040477f call mouse_drawing_optima_xy_offset_modify 
+476c 6fe149cf fetch 2 ,mem_mouse_x_pre 
+476d 67e109f8 store 2 ,mem_data_pre 
+476e 6fe148d5 fetch 2 ,mem_mouse_x 
+476f 67e109fa store 2 ,mem_data_current 
+4770 204047b7 call mouse_drawing_optima_data_x 
+4771 6fe109f8 fetch 2 ,mem_data_pre 
+4772 67e149cf store 2 ,mem_mouse_x_pre 
+4773 6fe109fa fetch 2 ,mem_data_current 
+4774 67e148d5 store 2 ,mem_mouse_x 
+4775 6fe149d1 fetch 2 ,mem_mouse_y_pre 
+4776 67e109f8 store 2 ,mem_data_pre 
+4777 6fe148d7 fetch 2 ,mem_mouse_y 
+4778 67e109fa store 2 ,mem_data_current 
+4779 204047bf call mouse_drawing_optima_data_y 
+477a 6fe109f8 fetch 2 ,mem_data_pre 
+477b 67e149d1 store 2 ,mem_mouse_y_pre 
+477c 6fe109fa fetch 2 ,mem_data_current 
+477d 67e148d7 store 2 ,mem_mouse_y 
+477e 20600000 rtn 
+
+mouse_drawing_optima_xy_offset_modify:
+477f 6fe44bbc fetch mouse_flag_len ,mem_mouse_flag 
+4780 c41c8000 rtnbit0 mouse_enable_xy_offset 
+4781 6fe149cf fetch 2 ,mem_mouse_x_pre 
+4782 67e109ff store 2 ,mem_data_value 
+4783 20404792 call mouse_pre_xy_data_judge 
+4784 67e149cf store 2 ,mem_mouse_x_pre 
+4785 6fe148d5 fetch 2 ,mem_mouse_x 
+4786 67e109ff store 2 ,mem_data_value 
+4787 204047a0 call mouse_current_xy_data_judge 
+4788 67e148d5 store 2 ,mem_mouse_x 
+4789 6fe149d1 fetch 2 ,mem_mouse_y_pre 
+478a 67e109ff store 2 ,mem_data_value 
+478b 20404792 call mouse_pre_xy_data_judge 
+478c 67e149d1 store 2 ,mem_mouse_y_pre 
+478d 6fe148d7 fetch 2 ,mem_mouse_y 
+478e 67e109ff store 2 ,mem_data_value 
+478f 204047a0 call mouse_current_xy_data_judge 
+4790 67e148d7 store 2 ,mem_mouse_y 
+4791 20600000 rtn 
+
+mouse_pre_xy_data_judge:
+4792 6fe08a00 fetch 1 ,mem_data_value + 1 
+4793 203a4795 branch mouse_pre_xy_pdata_offset ,blank 
+4794 2020479a branch mouse_pre_xy_ndata_offset 
+
+mouse_pre_xy_pdata_offset:
+4795 6fe089ff fetch 1 ,mem_data_value 
+4796 204047ad call mouse_pre_xy_get_0_4_times 
+4797 67e089ff store 1 ,mem_data_value 
+
+mouse_xy_data_offset_new:
+4798 6fe109ff fetch 2 ,mem_data_value 
+4799 20600000 rtn 
+
+mouse_pre_xy_ndata_offset:
+479a 6fe089ff fetch 1 ,mem_data_value 
+479b 204047e9 call mouse_pdata_invert 
+479c 204047ad call mouse_pre_xy_get_0_4_times 
+479d 205a7ecf call disable_blank ,blank 
+479e 204047e5 call mouse_pdata_get_new_value 
+479f 20204798 branch mouse_xy_data_offset_new 
+
+mouse_current_xy_data_judge:
+47a0 6fe08a00 fetch 1 ,mem_data_value + 1 
+47a1 203a47a3 branch mouse_current_xy_pdata_offset ,blank 
+47a2 202047a7 branch mouse_current_xy_ndata_offset 
+
+mouse_current_xy_pdata_offset:
+47a3 6fe089ff fetch 1 ,mem_data_value 
+47a4 204047b2 call mouse_current_xy_get_0_6_times 
+47a5 67e089ff store 1 ,mem_data_value 
+47a6 20204798 branch mouse_xy_data_offset_new 
+
+mouse_current_xy_ndata_offset:
+47a7 6fe089ff fetch 1 ,mem_data_value 
+47a8 204047e9 call mouse_pdata_invert 
+47a9 204047b2 call mouse_current_xy_get_0_6_times 
+47aa 205a7ecf call disable_blank ,blank 
+47ab 204047e5 call mouse_pdata_get_new_value 
+47ac 20204798 branch mouse_xy_data_offset_new 
+
+mouse_pre_xy_get_0_4_times:
+47ad 1feffe04 mul32 pdata ,4 ,pdata 
+47ae 1fe6fc05 div pdata ,5 
+47af 20407e64 call wait_div_end 
+47b0 1807fe00 quotient pdata 
+47b1 20600000 rtn 
+
+mouse_current_xy_get_0_6_times:
+47b2 1feffe0c mul32 pdata ,12 ,pdata 
+47b3 1fe6fc0a div pdata ,10 
+47b4 20407e64 call wait_div_end 
+47b5 1807fe00 quotient pdata 
+47b6 20600000 rtn 
+
+mouse_drawing_optima_data_x:
+47b7 6fe109f8 fetch 2 ,mem_data_pre 
+47b8 684909fa fetcht 2 ,mem_data_current 
+47b9 9840fe00 iadd temp ,pdata 
+47ba 6848c9d3 fetcht 1 ,mem_mouse_data_xtemp 
+47bb 9840fe00 iadd temp ,pdata 
+47bc 1fe10401 and pdata ,0x01 ,temp 
+47bd 6048c9d3 storet 1 ,mem_mouse_data_xtemp 
+47be 202047c7 branch mouse_drawing_optima_data 
+
+mouse_drawing_optima_data_y:
+47bf 6fe109f8 fetch 2 ,mem_data_pre 
+47c0 684909fa fetcht 2 ,mem_data_current 
+47c1 9840fe00 iadd temp ,pdata 
+47c2 6848c9d4 fetcht 1 ,mem_mouse_data_ytemp 
+47c3 9840fe00 iadd temp ,pdata 
+47c4 1fe10401 and pdata ,0x01 ,temp 
+47c5 6048c9d4 storet 1 ,mem_mouse_data_ytemp 
+47c6 202047c7 branch mouse_drawing_optima_data 
+
+mouse_drawing_optima_data:
+47c7 67e189fc store 3 ,mem_data_sum 
+47c8 2feffe10 isolate1 16 ,pdata 
+47c9 2020c7d1 branch mouse_data_sum_overflow ,true 
+47ca 6fe089fd fetch 1 ,mem_data_sum + 1 
+47cb c07fc7d8 beq 0xff ,mouse_data_sum_n 
+47cc 6fe089fc fetch 1 ,mem_data_sum 
+
+mouse_data_store_pre:
+47cd 1fe37e00 rshift pdata ,pdata 
+47ce 67e109f8 store 2 ,mem_data_pre 
+47cf 67e109fa store 2 ,mem_data_current 
+47d0 20600000 rtn 
+
+mouse_data_sum_overflow:
+47d1 6fe089fd fetch 1 ,mem_data_sum + 1 
+47d2 c00047d5 beq 0 ,mouse_data_sum_overflow_p 
+47d3 6fe189fc fetch 3 ,mem_data_sum 
+47d4 202047cd branch mouse_data_store_pre 
+
+mouse_data_sum_overflow_p:
+47d5 7009fe00 jam 0 ,mem_data_sum + 2 
+47d6 6fe089fc fetch 1 ,mem_data_sum 
+47d7 202047cd branch mouse_data_store_pre 
+
+mouse_data_sum_n:
+47d8 6fe089fc fetch 1 ,mem_data_sum 
+47d9 204047e3 call mouse_pdata_get_half 
+47da 67e089f8 store 1 ,mem_data_pre 
+47db 67e089fa store 1 ,mem_data_current 
+47dc 203a47e1 branch mouse_data_zero ,blank 
+47dd 580000ff setarg 0xff 
+
+mouse_data_set_direction:
+47de 67e089f9 store 1 ,mem_data_pre + 1 
+47df 67e089fb store 1 ,mem_data_current + 1 
+47e0 20600000 rtn 
+
+mouse_data_zero:
+47e1 58000000 setarg 0 
+47e2 202047de branch mouse_data_set_direction 
+
+mouse_pdata_get_half:
+47e3 204047e9 call mouse_pdata_invert 
+47e4 1fe37e00 rshift pdata ,pdata 
+
+mouse_pdata_get_new_value:
+47e5 204047ea call mouse_rega_in_out 
+47e6 1fe67e00 sub pdata ,0 ,pdata 
+47e7 67e089ff store 1 ,mem_data_value 
+47e8 20600000 rtn 
+
+mouse_pdata_invert:
+47e9 1fe67e00 sub pdata ,0 ,pdata 
+
+mouse_rega_in_out:
+47ea 67e08970 store 1 ,mem_rega 
+47eb 6fe08970 fetch 1 ,mem_rega 
+47ec 20600000 rtn 
+
+mouse_disable_asm:
+47ed 7049ce00 jam 0 ,mem_mouse_asm_flag 
+47ee 20600000 rtn 
+
+mouse_enable_asm:
+47ef 7049ce01 jam 1 ,mem_mouse_asm_flag 
+47f0 20600000 rtn 
+
+mouse_pdata_greater_than_check:
+47f1 9a267c00 isub rega ,null 
+47f2 24217ecf nbranch disable_blank ,positive 
+47f3 9a467c00 isub regb ,null 
+47f4 24217ecf nbranch disable_blank ,positive 
+47f5 20207ed1 branch enable_blank 
+
+mouse_data_less_than_check:
+47f6 9a267c00 isub rega ,null 
+47f7 24610000 nrtn positive 
+47f8 9a467c00 isub regb ,null 
+47f9 24610000 nrtn positive 
+47fa 20207ed1 branch enable_blank 
+
+mouse_data_abs_check:
+47fb 6fe148d5 fetch 2 ,mem_mouse_x 
+47fc 20404802 call mouse_data_abs 
+47fd 1fe22200 copy pdata ,rega 
+47fe 6fe148d7 fetch 2 ,mem_mouse_y 
+47ff 20404802 call mouse_data_abs 
+4800 1fe22400 copy pdata ,regb 
+4801 20600000 rtn 
+
+mouse_data_abs:
+4802 67e109fa store 2 ,mem_data_current 
+4803 6fe089fb fetch 1 ,mem_data_current + 1 
+4804 c07fc808 beq 0xff ,mouse_data_reversal 
+4805 6fe089fa fetch 1 ,mem_data_current 
+
+mouse_data_abs_store:
+4806 1fe17eff and_into 0xff ,pdata 
+4807 20600000 rtn 
+
+mouse_data_reversal:
+4808 6fe109fa fetch 2 ,mem_data_current 
+4809 1fe67e00 sub pdata ,0 ,pdata 
+480a 20204806 branch mouse_data_abs_store 
+
+mouse_24g_long_sleep_param_update_timer:
+480b da6048c8 arg mem_24g_long_sleep_param_update_timer ,regc 
+480c da40480e arg mouse_24g_long_sleep_normal_param ,regb 
+480d 202031fc branch timer_single_step 
+
+mouse_24g_long_sleep_normal_param:
+480e 6fe248bc fetch 4 ,mem_24g_long_sleep_set1 
+480f 67e2485f store 4 ,mem_24g_enter_hibernate 
+4810 704abf01 jam 1 ,mem_mouse_long_mult_flag 
+4811 20600000 rtn 
+
+mouse_24g_long_sleep_set:
+4812 6fe0cbf3 fetch 1 ,mem_24g_long_sleep_set_level 
+4813 c000481a beq 0x00 ,mouse_24g_long_sleep_set_30ms 
+4814 c000c81c beq 0x01 ,mouse_24g_long_sleep_set_50ms 
+4815 c0014817 beq 0x02 ,mouse_24g_long_sleep_set_80ms 
+4816 c001c81e beq 0x03 ,mouse_24g_long_sleep_set_100ms 
+
+mouse_24g_long_sleep_set_80ms:
+4817 580ea600 setarg 0x0ea600 
+
+mouse_24g_long_sleep_set_end:
+4818 67e248bc store 4 ,mem_24g_long_sleep_set1 
+4819 20600000 rtn 
+
+mouse_24g_long_sleep_set_30ms:
+481a 5805e740 setarg 0x05e740 
+481b 20204818 branch mouse_24g_long_sleep_set_end 
+
+mouse_24g_long_sleep_set_50ms:
+481c 580927c0 setarg 0x0927c0 
+481d 20204818 branch mouse_24g_long_sleep_set_end 
+
+mouse_24g_long_sleep_set_100ms:
+481e 58124f80 setarg 0x124f80 
+481f 20204818 branch mouse_24g_long_sleep_set_end 
+
+mouse_24g_hibernate_set:
+4820 7048a900 jam 0 ,mem_24g_attempt_fail_flag 
+4821 20402659 call g24_transmit_next_packet 
+4822 5fffffff setarg -1 
+4823 67e2485f store 4 ,mem_24g_enter_hibernate 
+4824 58000000 setarg 0 
+4825 67e3c8d4 store 7 ,mem_mouse_key 
+4826 704bf201 jam 1 ,mem_sensor_shutdown_flag 
+4827 2040427c call mouse_sensor_powerdown 
+4828 20403e6a call mouse_setgpio_hibernate 
+4829 202026bc branch g24_long_sleep 
+
+mouse_wakeup_24g:
+482a 6fe0cbf2 fetch 1 ,mem_sensor_shutdown_flag 
+482b 245a41ea ncall mouse_init_sensor_wakeup ,blank 
+482c 704bf200 jam 0 ,mem_sensor_shutdown_flag 
+482d 20202658 branch g24_transmit_no_ack 
+
+mouse_24g_transmit_start:
+482e 6fe0cbf2 fetch 1 ,mem_sensor_shutdown_flag 
+482f 243a2633 nbranch g24_short_sleep ,blank 
+4830 2020262f branch g24_transmit_start_next 
+
+mouse_24g_stop:
+4831 793f8026 set0 mark_24g ,mark 
+4832 7048a500 jam state_24g_stop ,mem_24g_conn_sm 
+4833 d8e00001 arg mouse_24g_pairing_flag ,queue 
+4834 20204732 branch mouse_disable_function_flag 
+
+mouse_24g_start_mode:
+4835 6fe44bbc fetch mouse_flag_len ,mem_mouse_flag 
+4836 c308c842 bbit0 mouse_enable_24g ,mouse_24g_mode_setup_error 
+4837 20403e28 call mouse_wakeup_from_power_check 
+4838 20344845 branch mouse_24g_reconn_dongle_start ,user 
+4839 6fe44bbc fetch mouse_flag_len ,mem_mouse_flag 
+483a c298484b bbit1 mouse_enable_auto_24g_paring ,mouse_24g_reconn_general_dongle 
+483b c318c84b bbit0 mouse_enable_24g_power_on_pairing ,mouse_24g_reconn_general_dongle 
+483c 20404150 call mouse_key_check_once 
+483d 1fe17e07 and pdata ,0x07 ,pdata 
+483e 6848cbdc fetcht 1 ,mem_mouse_commbination_key_24g 
+483f 98467c00 isub temp ,null 
+4840 2022c866 branch mouse_24g_start_pair_mode ,zero 
+4841 2020484b branch mouse_24g_reconn_general_dongle 
+
+mouse_24g_mode_setup_error:
+4842 6fe0cac1 fetch 1 ,mem_reconn_times 
+4843 243a474c nbranch mouse_polling_device ,blank 
+4844 20600000 rtn 
+
+mouse_24g_reconn_dongle_start:
+4845 6fe14889 fetch 2 ,mem_24g_reconn_timeout_init 
+4846 67e1488b store 2 ,mem_24g_reconn_timeout 
+4847 70488f03 jam receiver_and_3_0_addr ,mem_24g_reconn_type 
+4848 20202562 branch g24_reconn_start 
+
+mouse_24g_first_start_auto_pair_mode:
+4849 20403e28 call mouse_wakeup_from_power_check 
+484a 20344855 branch mouse_24g_first_start_reconn ,user 
+
+mouse_24g_reconn_general_dongle:
+484b 70493d00 jam mode_24g_device ,mem_device_flag 
+484c 6fe14bcb fetch 2 ,mem_mouse_24g_power_on_fast_conn_timer 
+484d 67e1488b store 2 ,mem_24g_reconn_timeout 
+484e 70488f02 jam fast_conn_and_3_0_addr ,mem_24g_reconn_type 
+484f 20202562 branch g24_reconn_start 
+
+mouse_24g_start_auto_pair:
+4850 20404919 call mouse_discover_setting_led_gpio 
+4851 6fe14885 fetch 2 ,mem_24g_pair_timeout_init 
+4852 67e1488b store 2 ,mem_24g_reconn_timeout 
+4853 70488f04 jam pair_and_3_0_addr ,mem_24g_reconn_type 
+4854 20202562 branch g24_reconn_start 
+
+mouse_24g_first_start_reconn:
+4855 6fe0c93d fetch 1 ,mem_device_flag 
+4856 c0004845 beq mode_24g_device ,mouse_24g_reconn_dongle_start 
+4857 20404354 call mouse_bluetooth_fast_conn_disable 
+4858 20204859 branch mouse_24g_first_bluetooth_reconnect 
+
+mouse_24g_first_bluetooth_reconnect:
+4859 20404831 call mouse_24g_stop 
+485a 2040495b call mouse_device_led_all_off 
+485b 70493d01 jam mode_bt_device1 ,mem_device_flag 
+485c 204045fd call mouse_select_reconn_device 
+485d 20203e1c branch mouse_start_reconnect_device 
+
+mouse_24g_first_bb_event_reconn_timeout:
+485e 20403e28 call mouse_wakeup_from_power_check 
+485f 20343e5a branch mouse_app_enter_hibernate ,user 
+4860 20204593 branch mouse_start_discovery 
+
+mouse_24g_first_store_reconn_info:
+4861 20403e28 call mouse_wakeup_from_power_check 
+4862 20740000 rtn user 
+4863 6fe44bbc fetch mouse_flag_len ,mem_mouse_flag 
+4864 c297c62e bbit1 mouse_enable_24g_first_auto_pairing ,mouse_store_device_info_delay 
+4865 20600000 rtn 
+
+mouse_24g_start_pair_mode:
+4866 d8e00001 arg mouse_24g_pairing_flag ,queue 
+4867 2040472e call mouse_enable_function_flag 
+4868 58000000 setarg 0 
+4869 67e1488b store 2 ,mem_24g_reconn_timeout 
+486a 204045b6 call mouse_stop_discovery 
+486b 204049db call mouse_low_voltage_led_blink_disable 
+486c 20404919 call mouse_discover_setting_led_gpio 
+
+mouse_24g_pair_mode_check:
+486d 70483901 jam type_ms ,mem_24g_data_type 
+486e 6fe44bbc fetch mouse_flag_len ,mem_mouse_flag 
+486f c30aa2e4 bbit0 mouse_enable_keyboard ,g24_pair_start 
+4870 70483902 jam type_kb ,mem_24g_data_type 
+4871 202022e4 branch g24_pair_start 
+
+mouse_24g_attempt_fail:
+4872 6fe0c8a9 fetch 1 ,mem_24g_attempt_fail_flag 
+4873 243a4820 nbranch mouse_24g_hibernate_set ,blank 
+4874 6fe0c88f fetch 1 ,mem_24g_reconn_type 
+4875 c001487f beq fast_conn_and_3_0_addr ,mouse_24g_fast_conn_attempt_fail 
+4876 c0024883 beq pair_and_3_0_addr ,mouse_24g_auto_pair_attempt_fail 
+4877 c001c888 beq receiver_and_3_0_addr ,mouse_reconn_dongle_attempt_fail 
+
+mouse_24g_attempt_fail_enter_hibernate:
+4878 2040495f call mouse_device_led_off 
+4879 20404831 call mouse_24g_stop 
+487a 6fe0cac1 fetch 1 ,mem_reconn_times 
+487b 243a474c nbranch mouse_polling_device ,blank 
+487c 6fe0c93d fetch 1 ,mem_device_flag 
+487d c0003e5a beq mode_24g_device ,mouse_app_enter_hibernate 
+487e 20600000 rtn 
+
+mouse_24g_fast_conn_attempt_fail:
+487f 6fe44bbc fetch mouse_flag_len ,mem_mouse_flag 
+4880 c297c850 bbit1 mouse_enable_24g_first_auto_pairing ,mouse_24g_start_auto_pair 
+4881 c2984850 bbit1 mouse_enable_auto_24g_paring ,mouse_24g_start_auto_pair 
+4882 20204845 branch mouse_24g_reconn_dongle_start 
+
+mouse_24g_auto_pair_attempt_fail:
+4883 6fe44bbc fetch mouse_flag_len ,mem_mouse_flag 
+4884 c317c878 bbit0 mouse_enable_24g_first_auto_pairing ,mouse_24g_attempt_fail_enter_hibernate 
+4885 6fe0cbc5 fetch 1 ,mem_device_number 
+4886 c000c878 beq 1 ,mouse_24g_attempt_fail_enter_hibernate 
+4887 20204859 branch mouse_24g_first_bluetooth_reconnect 
+
+mouse_reconn_dongle_attempt_fail:
+4888 6fe44bbc fetch mouse_flag_len ,mem_mouse_flag 
+4889 c317c878 bbit0 mouse_enable_24g_first_auto_pairing ,mouse_24g_attempt_fail_enter_hibernate 
+488a c289c878 bbit1 mouse_enable_eeprom ,mouse_24g_attempt_fail_enter_hibernate 
+488b c2894878 bbit1 mouse_enable_flash ,mouse_24g_attempt_fail_enter_hibernate 
+488c 20204851 branch mouse_24g_start_auto_pair + 1 
+
+mouse_24g_attempt_success:
+488d 2040430a call mouse_init_sensor_reset 
+488e 704abf00 jam 0 ,mem_mouse_long_mult_flag 
+488f 7048a500 jam 0 ,mem_24g_conn_sm 
+4890 70488f00 jam 0 ,mem_24g_reconn_type 
+4891 6fe24895 fetch 4 ,mem_24g_receiver_addr 
+4892 6fe24891 fetch 4 ,mem_24g_fast_conn_addr 
+4893 98467c00 isub temp ,null 
+4894 20628000 rtn zero 
+4895 20204861 branch mouse_24g_first_store_reconn_info 
+
+mouse_24g_pairing_complete:
+4896 d8e00001 arg mouse_24g_pairing_flag ,queue 
+4897 20404732 call mouse_disable_function_flag 
+4898 20404913 call mouse_device_poweron_timer_init 
+4899 58000000 setarg 0 
+489a 67e14887 store 2 ,mem_24g_pair_timeout 
+489b 67e1488b store 2 ,mem_24g_reconn_timeout 
+489c 67e0c8a5 store 1 ,mem_24g_conn_sm 
+489d 67e0c9cd store 1 ,mem_mouse_move_flag 
+489e 67e0c88f store 1 ,mem_24g_reconn_type 
+489f 2040430a call mouse_init_sensor_reset 
+48a0 2040431b call mouse_read_sensor_common 
+48a1 6fe2483f fetch 4 ,mem_24g_addr 
+48a2 67e24895 store 4 ,mem_24g_receiver_addr 
+48a3 67e24998 store 4 ,mem_mouse_24g_addr 
+48a4 2020462e branch mouse_store_device_info_delay 
+
+mouse_24g_package_data:
+48a5 c6930000 rtnmark0 mark_24g 
+48a6 20403fb0 call mouse_motion 
+48a7 24740000 nrtn user 
+48a8 6fe44bbc fetch mouse_flag_len ,mem_mouse_flag 
+48a9 c30ac8ac bbit0 mouse_enable_keyboard ,mouse_24g_mouse_package_data 
+48aa 6fe0cb9c fetch 1 ,mem_customer_key 
+48ab 243a48c1 nbranch mouse_24g_keyboard_package_data ,blank 
+
+mouse_24g_mouse_package_data:
+48ac 2040430b call mouse_data_xy_release 
+48ad 6fe0c839 fetch 1 ,mem_24g_data_type 
+48ae c280c8bb bbit1 1 ,mouse_24g_mouse_package_data_now 
+48af 6848c7ca fetcht 1 ,mem_24g_txbuf + 1 
+48b0 6fe0c8d4 fetch 1 ,mem_mouse_key 
+48b1 9841fe00 ior temp ,pdata 
+48b2 67e0c8d4 store 1 ,mem_mouse_key 
+48b3 6848c7cf fetcht 1 ,mem_24g_txbuf + 6 
+48b4 6fe0c8d9 fetch 1 ,mem_mouse_z 
+48b5 9840fe00 iadd temp ,pdata 
+48b6 67e0c8d9 store 1 ,mem_mouse_z 
+48b7 6848c7d0 fetcht 1 ,mem_24g_txbuf + 7 
+48b8 6fe0c8da fetch 1 ,mem_mouse_tz 
+48b9 9840fe00 iadd temp ,pdata 
+48ba 67e0c8da store 1 ,mem_mouse_tz 
+
+mouse_24g_mouse_package_data_now:
+48bb 70483901 jam type_ms ,mem_24g_data_type 
+48bc da200007 arg 7 ,rega 
+48bd da4048d4 arg mem_mouse_key ,regb 
+48be 6fe148d9 fetch 2 ,mem_mouse_z 
+48bf 207a0000 rtn blank 
+48c0 202026e8 branch g24_transmit_by_interrupt_enable 
+
+mouse_24g_keyboard_package_data:
+48c1 70483902 jam type_kb ,mem_24g_data_type 
+48c2 da200009 arg 9 ,rega 
+48c3 6fe0cb9d fetch 1 ,mem_customer_data_trigger 
+48c4 243a48c7 nbranch mouse_customer_key_press ,blank 
+48c5 da404be6 arg mem_customer_key_release ,regb 
+48c6 20600000 rtn 
+
+mouse_customer_key_press:
+48c7 da404bdd arg mem_customer_key_press ,regb 
+48c8 20600000 rtn 
+
+mouse_24g_search_dongle_init:
+48c9 58000000 setarg 0 
+48ca 67e1cbb5 store 3 ,mem_mouse_search_dongle_action 
+48cb 20600000 rtn 
+
+mouse_24g_search_dongle:
+48cc 6fe44bbc fetch mouse_flag_len ,mem_mouse_flag 
+48cd c40b0000 rtnbit0 mouse_enable_24g_search_dongle 
+48ce 6fe0cabf fetch 1 ,mem_mouse_long_mult_flag 
+48cf 207a0000 rtn blank 
+48d0 6fe0c8ab fetch 1 ,mem_24g_abort_pac 
+48d1 207a0000 rtn blank 
+48d2 6fe0cbb2 fetch 1 ,mem_mouse_search_dongle_interval 
+48d3 1fe0fe01 increase 1 ,pdata 
+48d4 1fe17e03 and_into 3 ,pdata 
+48d5 67e0cbb2 store 1 ,mem_mouse_search_dongle_interval 
+48d6 247a0000 nrtn blank 
+48d7 704bb300 jam 0 ,mem_mouse_search_dongle_ch 
+
+mouse_24g_search_dongle_loop:
+48d8 6fe0cbb3 fetch 1 ,mem_mouse_search_dongle_ch 
+48d9 1fe0fe01 increase 1 ,pdata 
+48da 67e0cbb3 store 1 ,mem_mouse_search_dongle_ch 
+48db 1fe67c08 sub pdata ,g24_ch_number ,null 
+48dc 242148e3 nbranch mouse_24g_search_dongle_loop_end ,positive 
+48dd 204025a3 call g24_reconn_data_prep 
+48de 20402662 call g24_transmit_receive_ack 
+48df 242c48e9 nbranch mouse_24g_search_dongle_loop_retry ,sync 
+48e0 2437c8e9 nbranch mouse_24g_search_dongle_loop_retry ,user3 
+48e1 204048fb call mouse_g24_ackpayload_parse 
+48e2 204048f2 call mouse_24g_search_dongle_success 
+
+mouse_24g_search_dongle_loop_end:
+48e3 204025a0 call g24_txbuf_clear 
+48e4 6fe0cbb4 fetch 1 ,mem_mouse_search_dongle_count 
+48e5 1fe0fe01 increase 1 ,pdata 
+48e6 67e0cbb4 store 1 ,mem_mouse_search_dongle_count 
+48e7 c00848eb beq g24_ch_poll_count ,mouse_24g_search_dongle_check 
+48e8 20600000 rtn 
+
+mouse_24g_search_dongle_loop_retry:
+48e9 20402281 call g24_ch 
+48ea 202048d8 branch mouse_24g_search_dongle_loop 
+
+mouse_24g_search_dongle_check:
+48eb 704bb400 jam 0 ,mem_mouse_search_dongle_count 
+48ec 6fe0cbb5 fetch 1 ,mem_mouse_search_dongle_action 
+48ed c3800000 rtnbit1 g24_disconn_state 
+48ee 79207e00 set1 g24_disconn_state ,pdata 
+48ef 67e0cbb5 store 1 ,mem_mouse_search_dongle_action 
+48f0 6fe14bcd fetch 2 ,mem_mouse_24g_search_dongle_time_init 
+48f1 20204820 branch mouse_24g_hibernate_set 
+
+mouse_24g_search_dongle_success:
+48f2 6fe0c8ab fetch 1 ,mem_24g_abort_pac 
+48f3 203a48c9 branch mouse_24g_search_dongle_init ,blank 
+48f4 704bb400 jam 0 ,mem_mouse_search_dongle_count 
+48f5 6fe0cbb5 fetch 1 ,mem_mouse_search_dongle_action 
+48f6 c4000000 rtnbit0 g24_disconn_state 
+48f7 793ffe00 set0 g24_disconn_state ,pdata 
+48f8 67e0cbb5 store 1 ,mem_mouse_search_dongle_action 
+48f9 20404584 call mouse_no_data_timer_init 
+48fa 202041ea branch mouse_init_sensor_wakeup 
+
+mouse_g24_ackpayload_parse:
+48fb 20402679 call g24_ackpayload_parse 
+48fc 6fe0c7a8 fetch 1 ,mem_24g_rxbuf + 1 
+48fd 2fe1f008 compare 0x08 ,pdata ,0xf8 
+48fe 24608000 nrtn true 
+48ff 6fe0c7a9 fetch 1 ,mem_24g_rxbuf + 2 
+4900 c07fc820 beq 0xff ,mouse_24g_hibernate_set 
+4901 20600000 rtn 
+
+mouse_24g_before_lpm_sleep:
+4902 6fe0c93d fetch 1 ,mem_device_flag 
+4903 c0801468 bne mode_24g_device ,lpm_sleep_skip_cb_function 
+4904 6fe0c87a fetch 1 ,mem_24g_disable_fec1 
+4905 207a0000 rtn blank 
+
+mouse_peripheral_clock_off:
+4906 70804202 jam 2 ,core_clksel 
+4907 6ff08138 fetch 1 ,core_lpm_ctrl 
+4908 1fe17efc and pdata ,0xfc ,pdata 
+4909 67f0804c store 1 ,core_lpm_reg 
+490a 2020154c branch lpm_write_ctrl 
+
+mouse_device_poweron_timer:
+490b 6fe44bbc fetch mouse_flag_len ,mem_mouse_flag 
+490c c4100000 rtnbit0 mouse_enable_power_on_led 
+490d 6fe0cbb8 fetch 1 ,mem_mouse_device_poweron_timer_count 
+490e 207a0000 rtn blank 
+490f 1fe0ffff increase -1 ,pdata 
+4910 67e0cbb8 store 1 ,mem_mouse_device_poweron_timer_count 
+4911 203a495f branch mouse_device_led_off ,blank 
+4912 2020496d branch mouse_device_led_on 
+
+mouse_device_poweron_timer_init:
+4913 6fe44bbc fetch mouse_flag_len ,mem_mouse_flag 
+4914 c4100000 rtnbit0 mouse_enable_power_on_led 
+4915 204049db call mouse_low_voltage_led_blink_disable 
+4916 6fe0cbd1 fetch 1 ,mem_mouse_device_poweron_timer_count_init 
+4917 67e0cbb8 store 1 ,mem_mouse_device_poweron_timer_count 
+4918 20600000 rtn 
+
+mouse_discover_setting_led_gpio:
+4919 704bb800 jam 0 ,mem_mouse_device_poweron_timer_count 
+491a 6fe14bd5 fetch 2 ,mem_mouse_disconvey_led_blink_time 
+491b 67e14935 store 2 ,mem_mouse_on_time 
+491c 67e14937 store 2 ,mem_mouse_off_time 
+
+mouse_setting_led_gpio_comman:
+491d 6fe0c93d fetch 1 ,mem_device_flag 
+491e c0004922 beq mode_24g_device ,mouse_device_led_24g 
+491f c000c924 beq mode_bt_device1 ,mouse_device_led_bt1 
+4920 c0014926 beq mode_bt_device2 ,mouse_device_led_bt2 
+4921 20600000 rtn 
+
+mouse_device_led_24g:
+4922 6fe0c919 fetch 1 ,mem_config_device_24g_led_gpio 
+4923 20204927 branch mouse_led_blink 
+
+mouse_device_led_bt1:
+4924 6fe0c926 fetch 1 ,mem_config_device_bt1_led_gpio 
+4925 20204927 branch mouse_led_blink 
+
+mouse_device_led_bt2:
+4926 6fe0c927 fetch 1 ,mem_config_device_bt2_led_gpio 
+
+mouse_led_blink:
+4927 67e08964 store 1 ,mem_temp 
+4928 2040495f call mouse_device_led_off 
+4929 6fe08964 fetch 1 ,mem_temp 
+492a 67e0c934 store 1 ,mem_mouse_struct_led_gpio 
+492b da200000 arg 0 ,rega 
+492c 70493201 jam ui_led_state_blink_start ,mem_mouse_led_type 
+492d 20207871 branch ui_led_blink_start_global 
+
+mouse_dpi_led_blink_delay:
+492e 6fe0c928 fetch 1 ,mem_dpi_led_gpio 
+492f c17f8000 rtneq gpio_disable 
+4930 6fe14ad3 fetch 2 ,mem_mouse_discovery_timer 
+4931 247a0000 nrtn blank 
+4932 6fe14887 fetch 2 ,mem_24g_pair_timeout 
+4933 247a0000 nrtn blank 
+4934 6fe1488b fetch 2 ,mem_24g_reconn_timeout 
+4935 247a0000 nrtn blank 
+4936 6fe0cbb8 fetch 1 ,mem_mouse_device_poweron_timer_count 
+4937 247a0000 nrtn blank 
+4938 6fe0cbd2 fetch 1 ,mem_mouse_dpi_led_delay_count_init 
+4939 203a493f branch mouse_dpi_led_blink_init ,blank 
+493a 67e0cbb9 store 1 ,mem_mouse_dpi_led_delay_count 
+493b 20600000 rtn 
+
+mouse_dpi_led_blink_delay_timer:
+493c da604bb9 arg mem_mouse_dpi_led_delay_count ,regc 
+493d da40493f arg mouse_dpi_led_blink_init ,regb 
+493e 202031fc branch timer_single_step 
+
+mouse_dpi_led_blink_init:
+493f 6fe0c928 fetch 1 ,mem_dpi_led_gpio 
+4940 67e0c934 store 1 ,mem_mouse_struct_led_gpio 
+4941 6fe14bd3 fetch 2 ,mem_mouse_dpi_led_blink_time 
+4942 67e14935 store 2 ,mem_mouse_on_time 
+4943 67e14937 store 2 ,mem_mouse_off_time 
+4944 da200000 arg 0 ,rega 
+4945 6848c997 fetcht 1 ,mem_mouse_dpi 
+4946 18408401 increase 1 ,temp 
+4947 6fe44bbc fetch mouse_flag_len ,mem_mouse_flag 
+4948 c30e494c bbit0 mouse_enable_dpi_level_4 ,mouse_dpi_led_blink_init_end 
+4949 18408401 increase 1 ,temp 
+494a 18467c04 sub temp ,4 ,null 
+494b 2441494f ncall mouse_dpi_led_blink_count_clean ,positive 
+
+mouse_dpi_led_blink_init_end:
+494c 6048c933 storet 1 ,mem_mouse_blink_count 
+494d 70493201 jam ui_led_state_blink_start ,mem_mouse_led_type 
+494e 20600000 rtn 
+
+mouse_dpi_led_blink_count_clean:
+494f d8400001 arg 1 ,temp 
+4950 20600000 rtn 
+
+mouse_check_dpi_blink:
+4951 78547c00 disable user 
+4952 6fe0c928 fetch 1 ,mem_dpi_led_gpio 
+4953 6848c934 fetcht 1 ,mem_mouse_struct_led_gpio 
+4954 98467c00 isub temp ,null 
+4955 24628000 nrtn zero 
+4956 6fe0c933 fetch 1 ,mem_mouse_blink_count 
+4957 207a0000 rtn blank 
+4958 7048fd00 jam 0 ,mem_adc_low_volatage_led_blink_enable 
+4959 78347c00 enable user 
+495a 20600000 rtn 
+
+mouse_device_led_all_off:
+495b 2040496b call mouse_dpi_led_off 
+495c 20404964 call mouse_device_24g_led_off 
+495d 20404967 call mouse_device_bt1_led_off 
+495e 20204969 branch mouse_device_bt2_led_off 
+
+mouse_device_led_off:
+495f 6fe0c93d fetch 1 ,mem_device_flag 
+4960 c0004964 beq mode_24g_device ,mouse_device_24g_led_off 
+4961 c000c967 beq mode_bt_device1 ,mouse_device_bt1_led_off 
+4962 c0014969 beq mode_bt_device2 ,mouse_device_bt2_led_off 
+4963 20600000 rtn 
+
+mouse_device_24g_led_off:
+4964 704bbb00 jam 0 ,mem_24g_device_led_status 
+4965 6848c919 fetcht 1 ,mem_config_device_24g_led_gpio 
+4966 20204978 branch mouse_led_off 
+
+mouse_device_bt1_led_off:
+4967 6848c926 fetcht 1 ,mem_config_device_bt1_led_gpio 
+4968 20204978 branch mouse_led_off 
+
+mouse_device_bt2_led_off:
+4969 6848c927 fetcht 1 ,mem_config_device_bt2_led_gpio 
+496a 20204978 branch mouse_led_off 
+
+mouse_dpi_led_off:
+496b 6848c928 fetcht 1 ,mem_dpi_led_gpio 
+496c 20204978 branch mouse_led_off 
+
+mouse_device_led_on:
+496d 6fe0c93d fetch 1 ,mem_device_flag 
+496e c0004972 beq mode_24g_device ,mouse_device_24g_led_on 
+496f c000c974 beq mode_bt_device1 ,mouse_device_bt1_led_on 
+4970 c0014976 beq mode_bt_device2 ,mouse_device_bt2_led_on 
+4971 20600000 rtn 
+
+mouse_device_24g_led_on:
+4972 6848c919 fetcht 1 ,mem_config_device_24g_led_gpio 
+4973 2020497c branch mouse_led_on 
+
+mouse_device_bt1_led_on:
+4974 6848c926 fetcht 1 ,mem_config_device_bt1_led_gpio 
+4975 2020497c branch mouse_led_on 
+
+mouse_device_bt2_led_on:
+4976 6848c927 fetcht 1 ,mem_config_device_bt2_led_gpio 
+4977 2020497c branch mouse_led_on 
+
+mouse_led_off:
+4978 44f0401c bpatch patch1c_0 ,mem_patch1c 
+4979 6048c934 storet 1 ,mem_mouse_struct_led_gpio 
+497a da200000 arg 0 ,rega 
+497b 2020786c branch ui_led_off_global 
+
+mouse_led_on:
+497c 44f0c01c bpatch patch1c_1 ,mem_patch1c 
+497d 6048c934 storet 1 ,mem_mouse_struct_led_gpio 
+497e da200000 arg 0 ,rega 
+497f 20207867 branch ui_led_on_global 
+
+mouse_ui_led_off_static:
+4980 6fe0c919 fetch 1 ,mem_config_device_24g_led_gpio 
+4981 98467c00 isub temp ,null 
+4982 2042c99f call mouse_clear_24g_led_statue ,zero 
+4983 6fe44bbc fetch mouse_flag_len ,mem_mouse_flag 
+4984 c3126109 bbit0 mouse_enable_4_led ,gpio_out_inactive 
+4985 20404990 call mouse_check_bt2_led_off 
+4986 20404994 call mouse_check_dpi_led_off 
+4987 20404998 call mouse_check_low_v_led_off 
+4988 6fe0cbba fetch 1 ,mem_mouse_led_off_4_led 
+4989 203a6109 branch gpio_out_inactive ,blank 
+498a 704bba00 jam 0 ,mem_mouse_led_off_4_led 
+498b 20206121 branch gpio_set_high_impedance 
+
+mouse_ui_led_on_static:
+498c 6fe0c919 fetch 1 ,mem_config_device_24g_led_gpio 
+498d 98467c00 isub temp ,null 
+498e 2042c9a1 call mouse_set_24g_led_statue ,zero 
+498f 2020610d branch gpio_out_active 
+
+mouse_check_bt2_led_off:
+4990 6fe44bbc fetch mouse_flag_len ,mem_mouse_flag 
+4991 c4130000 rtnbit0 mouse_enable_bt2_for_4_led 
+4992 6fe0c927 fetch 1 ,mem_config_device_bt2_led_gpio 
+4993 2020499b branch mouse_check_1gpio_2led_off 
+
+mouse_check_dpi_led_off:
+4994 6fe44bbc fetch mouse_flag_len ,mem_mouse_flag 
+4995 c4128000 rtnbit0 mouse_enable_dpi_for_4_led 
+4996 6fe0c928 fetch 1 ,mem_dpi_led_gpio 
+4997 2020499b branch mouse_check_1gpio_2led_off 
+
+mouse_check_low_v_led_off:
+4998 6fe44bbc fetch mouse_flag_len ,mem_mouse_flag 
+4999 c4138000 rtnbit0 mouse_enable_low_v_for_4_led 
+499a 6fe0c925 fetch 1 ,mem_config_low_voltage_alarm_gpio 
+
+mouse_check_1gpio_2led_off:
+499b 98467c00 isub temp ,null 
+499c 24628000 nrtn zero 
+499d 704bba01 jam 1 ,mem_mouse_led_off_4_led 
+499e 20600000 rtn 
+
+mouse_clear_24g_led_statue:
+499f 704bbb00 jam 0 ,mem_24g_device_led_status 
+49a0 20600000 rtn 
+
+mouse_set_24g_led_statue:
+49a1 704bbb01 jam 1 ,mem_24g_device_led_status 
+49a2 20600000 rtn 
+
+mouse_low_voltage_led_timer:
+49a3 6fe14ad3 fetch 2 ,mem_mouse_discovery_timer 
+49a4 247a0000 nrtn blank 
+49a5 6fe14887 fetch 2 ,mem_24g_pair_timeout 
+49a6 247a0000 nrtn blank 
+49a7 6fe1488b fetch 2 ,mem_24g_reconn_timeout 
+49a8 247a0000 nrtn blank 
+49a9 6fe0cbb8 fetch 1 ,mem_mouse_device_poweron_timer_count 
+49aa 247a0000 nrtn blank 
+49ab 20404951 call mouse_check_dpi_blink 
+49ac 20740000 rtn user 
+49ad 6fe44bbc fetch mouse_flag_len ,mem_mouse_flag 
+49ae c4108000 rtnbit0 mouse_enable_low_voltage_led 
+49af c4020000 rtnbit0 mouse_low_voltage_flag 
+49b0 c291c9c9 bbit1 mouse_enable_low_voltage_led_blink_n_second ,mouse_low_voltage_led_blink_new_data 
+49b1 6fe0c8fc fetch 1 ,mem_adc_low_volatage_led_timer_count 
+49b2 1fe0fe01 increase 1 ,pdata 
+49b3 67e0c8fc store 1 ,mem_adc_low_volatage_led_timer_count 
+49b4 1fe67c14 sub pdata ,20 ,null 
+49b5 244149bb ncall mouse_adc_low_volatage_led_timer_count_clean ,positive 
+49b6 c00149bd beq 2 ,mouse_low_voltage_led_on 
+49b7 c00249c3 beq 4 ,mouse_low_voltage_led_off 
+49b8 c00349bd beq 6 ,mouse_low_voltage_led_on 
+49b9 c00449c3 beq 8 ,mouse_low_voltage_led_off 
+49ba 20600000 rtn 
+
+mouse_adc_low_volatage_led_timer_count_clean:
+49bb 7048fc01 jam 1 ,mem_adc_low_volatage_led_timer_count 
+49bc 202049c3 branch mouse_low_voltage_led_off 
+
+mouse_low_voltage_led_on:
+49bd 6fe44bbc fetch mouse_flag_len ,mem_mouse_flag 
+49be c291496d bbit1 mouse_enable_low_voltage_use_mode_led ,mouse_device_led_on 
+49bf 6fe0c925 fetch 1 ,mem_config_low_voltage_alarm_gpio 
+49c0 c17f8000 rtneq gpio_disable 
+49c1 6848c925 fetcht 1 ,mem_config_low_voltage_alarm_gpio 
+49c2 2020497c branch mouse_led_on 
+
+mouse_low_voltage_led_off:
+49c3 6fe44bbc fetch mouse_flag_len ,mem_mouse_flag 
+49c4 c291495f bbit1 mouse_enable_low_voltage_use_mode_led ,mouse_device_led_off 
+49c5 6fe0c925 fetch 1 ,mem_config_low_voltage_alarm_gpio 
+49c6 c17f8000 rtneq gpio_disable 
+49c7 6848c925 fetcht 1 ,mem_config_low_voltage_alarm_gpio 
+49c8 20204978 branch mouse_led_off 
+
+mouse_low_voltage_led_blink_new_data:
+49c9 6fe14bcf fetch 2 ,mem_mouse_no_data_timeout 
+49ca 68494ac3 fetcht 2 ,mem_mouse_no_data_timer 
+49cb 98460400 isub temp ,temp 
+49cc 6fe14bd9 fetch 2 ,mem_adc_low_volatage_led_blink_timer 
+49cd 98467c00 isub temp ,null 
+49ce 242149db nbranch mouse_low_voltage_led_blink_disable ,positive 
+49cf 6fe0c8fd fetch 1 ,mem_adc_low_volatage_led_blink_enable 
+49d0 247a0000 nrtn blank 
+49d1 7048fd01 jam 1 ,mem_adc_low_volatage_led_blink_enable 
+49d2 202049d3 branch mouse_low_voltage_led_blink_init 
+
+mouse_low_voltage_led_blink_init:
+49d3 6fe14bd7 fetch 2 ,mem_mouse_low_v_led_blink_time 
+49d4 67e14935 store 2 ,mem_mouse_on_time 
+49d5 67e14937 store 2 ,mem_mouse_off_time 
+49d6 6fe44bbc fetch mouse_flag_len ,mem_mouse_flag 
+49d7 c291491d bbit1 mouse_enable_low_voltage_use_mode_led ,mouse_setting_led_gpio_comman 
+49d8 6fe0c925 fetch 1 ,mem_config_low_voltage_alarm_gpio 
+49d9 c17f8000 rtneq gpio_disable 
+49da 20204927 branch mouse_led_blink 
+
+mouse_low_voltage_led_blink_disable:
+49db 7048fd00 jam 0 ,mem_adc_low_volatage_led_blink_enable 
+49dc 202049c3 branch mouse_low_voltage_led_off 
+
+mouse_low_voltage_led_no_enter_lpm:
+49dd 6fe44bbc fetch mouse_flag_len ,mem_mouse_flag 
+49de c4108000 rtnbit0 mouse_enable_low_voltage_led 
+49df c4020000 rtnbit0 mouse_low_voltage_flag 
+49e0 c291c9ef bbit1 mouse_enable_low_voltage_led_blink_n_second ,mouse_low_voltage_led_no_enter_lpm_blink 
+49e1 6fe0c8fc fetch 1 ,mem_adc_low_volatage_led_timer_count 
+49e2 1fe67c0a sub pdata ,10 ,null 
+49e3 202149eb branch mouse_lpm_mode_clear ,positive 
+
+mouse_low_voltage_led_no_enter_lpm_next:
+49e4 6fe0c93d fetch 1 ,mem_device_flag 
+49e5 c00049e8 beq mode_24g_device ,g24_transmit_by_interrupt_exit_check 
+49e6 70409901 jam 1 ,mem_lpm_mode 
+49e7 20600000 rtn 
+
+g24_transmit_by_interrupt_exit_check:
+49e8 6fe44bbc fetch mouse_flag_len ,mem_mouse_flag 
+49e9 c38c0000 rtnbit1 mouse_enable_24g_250hz 
+49ea 202026d7 branch g24_transmit_by_interrupt_exit 
+
+mouse_lpm_mode_clear:
+49eb 6fe0c93d fetch 1 ,mem_device_flag 
+49ec c00026e8 beq mode_24g_device ,g24_transmit_by_interrupt_enable 
+49ed 70409900 jam 0 ,mem_lpm_mode 
+49ee 20600000 rtn 
+
+mouse_low_voltage_led_no_enter_lpm_blink:
+49ef 6fe0c8fd fetch 1 ,mem_adc_low_volatage_led_blink_enable 
+49f0 243a49eb nbranch mouse_lpm_mode_clear ,blank 
+49f1 202049e4 branch mouse_low_voltage_led_no_enter_lpm_next 
+
+mouse_store_signal_rssi:
+49f2 20401293 call rssi_hex2dec 
+49f3 6fe08018 fetch 1 ,mem_rssi 
+49f4 202025e9 branch rssi_signal 
+
+mouse_le_transmit:
+49f5 204049f2 call mouse_store_signal_rssi 
+49f6 202026f5 branch power_ctrl_start 
+
+mouse_bt_slave_match:
+49f7 204049f2 call mouse_store_signal_rssi 
+49f8 6fe08030 fetch 1 ,mem_state 
+49f9 2feffe00 isolate1 state_inconn ,pdata 
+49fa 24608000 nrtn true 
+49fb 6fe08047 fetch 1 ,mem_arq 
+49fc 2feffe03 isolate1 wack ,pdata 
+49fd 2040a72b call power_ctrl_pac_succ_decrs ,true 
+49fe 2440a727 ncall power_ctrl_pac_succ_incrs ,true 
+49ff 202026f5 branch power_ctrl_start 
+
+mouse_le_set_lpm_mult:
+4a00 6fe0cb86 fetch 1 ,mem_le_connect_status_flag 
+4a01 2fe00603 compare 3 ,pdata ,3 
+4a02 2420fecf nbranch disable_blank ,true 
+4a03 20403295 call app_lpm_mult_enable 
+4a04 20207ed1 branch enable_blank 
+
+mouse_bt_set_lpm_mult:
+4a05 20405355 call l2cap_malloc_is_fifo_empty 
+4a06 247a0000 nrtn blank 
+4a07 70008801 jam 1 ,mem_current_sniff_attempt 
+4a08 70008900 jam 0 ,mem_current_sniff_timeout 
+4a09 20207ed1 branch enable_blank 
+
+mouse_set_lpm_mult:
+4a0a 6fe1478f fetch 2 ,mem_ui_state_map 
+4a0b c284ca00 bbit1 ui_state_ble_connected ,mouse_le_set_lpm_mult 
+4a0c 20204a05 branch mouse_bt_set_lpm_mult 
               org 0x10001
 
 z_entrance0:
Index: output/romcode.rom
===================================================================
--- /YC1308AF/branch/mouse/USB_4Mode_Project/RongYuan_Project/mouse_public_3mode_usb_sdk/output/romcode.rom	(revision 5271)
+++ /YC1308AF/branch/mouse/USB_4Mode_Project/RongYuan_Project/mouse_public_3mode_usb_sdk/output/romcode.rom	(working copy)
@@ -1,3 +1,3483 @@
+20406e5e
+20403ca6
+204041e7
+204040ce
+20758000
+20404766
+20403c83
+2040427c
+6fe0c92f
+c3838000
+6fe1478f
+c2864593
+204046de
+20203e15
+58004902
+67e14479
+580048a5
+67e1489f
+580048cc
+67e148a1
+58003e80
+67e148a3
+580043df
+67e14461
+58004497
+67e14463
+58003e7b
+67e1445f
+58004374
+67e14467
+5800468b
+67e14465
+58003e5e
+67e1445d
+580043c8
+67e1446b
+580044f5
+67e1446f
+58003fa9
+67e14473
+58003e4d
+67e1445b
+580049f5
+67e1446d
+580049f7
+67e14477
+58004a0a
+67e14471
+20600000
+20758000
+2040260e
+204022b5
+20403f60
+20403dd6
+20401ac2
+20401aeb
+20401ade
+20401aca
+6fe44bbc
+c289c675
+c2894636
+20600000
+7040c508
+6fe44bbc
+c3860000
+7040c518
+20600000
+700b58ff
+704793ff
+7047921e
+7049c505
+58004932
+67e1448f
+70448e01
+58004ac6
+67e1489d
+70483901
+6fe14902
+67e14794
+6fe14904
+67e14885
+6fe0c907
+67e14889
+6fe2c909
+67e2c8cf
+6fe0c908
+67e0c880
+6fe44bbc
+247a0000
+58020800
+67e1cbbc
+58800700
+e7e18005
+58000300
+e7e10005
+70409901
+6fe0c90e
+2feffe00
+2040c724
+6fe0c90e
+2feffe02
+2040c726
+6fe0c90e
+2feffe01
+2040c728
+6fe0c90e
+2feffe03
+2040c72a
+6fe0c90e
+2feffe04
+2040c72c
+6fe0c90e
+2feffe05
+2040c736
+6fe0c869
+245a22c4
+20403cb3
+6fe0c90f
+1fe10407
+6048c4a3
+1fe97e00
+1fe10401
+6048c869
+1fe37e00
+1fe10403
+6048c901
+1feb7e00
+1fe17e03
+20404812
+6fe0c910
+1fe10403
+6048c929
+1feb7e00
+1fe10403
+6048c92a
+1feb7e00
+1fe10401
+6048c92b
+6048c997
+1fe37e00
+1fe10401
+6048c87a
+1fe37e00
+1fe17e03
+67e0cbc5
+44e14018
+580b0c0a
+67e1c91c
+58ffffff
+e7e18005
+580607ff
+e7e18005
+58ffffff
+e7e18005
+7048fb0a
+58000064
+67e14bd9
+20403ebc
+58001770
+67e14bcf
+704bd114
+58000190
+67e14bd7
+67e14bd3
+580003e8
+67e14bd5
+70488107
+7048ce7d
+7041e800
+70489001
+58000f0f
+67e14891
+67e14893
+6fe140a8
+67e140ac
+d8a0437a
+d8c040a8
+df200006
+20407ed9
+704b9b20
+70493e34
+6fe3437a
+67e34955
+704bc402
+7043e71f
+58050102
+67e1c3e8
+58120303
+e7e18005
+58190318
+e7e18005
+580003c2
+e7e10005
+5806ff06
+67e1cae3
+58000300
+e7e18005
+58090c80
+e7e18005
+58355442
+e7e18005
+5820322e
+e7e18005
+58756f4d
+e7e18005
+58006573
+e7e10005
+7044071f
+d8c04aea
+d8a04408
+df20000d
+20407dd4
+6fe0c408
+1fe0ffff
+67e0c2f7
+d8c0440a
+d8a042f8
+df20000b
+20407dd4
+58070007
+67e1c372
+58002000
+e7e18005
+5800012c
+e7e10005
+58181203
+67e1cadd
+580000ff
+67e1cae0
+380000fb
+3806c212
+3808800f
+380c0021
+67e4444c
+70443207
+58000015
+67e14af8
+58000019
+67e14357
+5800001d
+67e14afa
+58000021
+67e14afc
+58000030
+67e14afe
+58000022
+67e143d1
+704b0196
+70493d00
+204022d8
+204022db
+58604800
+67e1c85f
+5800012c
+67e148c6
+58000050
+67e148c4
+58000005
+67e14bcb
+58000708
+67e14bcd
+58010403
+67e1c9d5
+582a2002
+e7e18005
+5822153f
+e7e18005
+58114433
+e7e18005
+58265a09
+67e1c9e4
+58041934
+e7e18005
+58000009
+e7e10005
+5800ffff
+e7e10005
+580d5a09
+67e1c9f8
+58ed1d10
+e7e18005
+5800807d
+e7e10005
+5800ffff
+e7e10005
+58ff5a09
+67e1ca3e
+5840ab27
+e7e18005
+589b56b3
+e7e18005
+5812a8e6
+e7e18005
+58bec0a9
+e7e18005
+58afa5e6
+e7e18005
+58a121a0
+e7e18005
+5810b802
+e7e18005
+58a70bb9
+e7e18005
+58d0b5ff
+e7e18005
+58ff00b6
+e7e18005
+58000900
+e7e18005
+5800ffff
+e7e10005
+580d5a09
+67e1ca64
+58c50e10
+e7e18005
+58109a5b
+e7e18005
+58421138
+e7e18005
+58412828
+e7e18005
+58394923
+e7e18005
+584bb04a
+e7e18005
+58904ca0
+e7e18005
+5809704d
+e7e18005
+58ffff00
+e7e18005
+5846a509
+67e1ca92
+58101934
+e7e18005
+58690760
+e7e18005
+58207d04
+e7e18005
+5809007e
+e7e18005
+58220d00
+e7e18005
+58ff220e
+e7e18005
+704aa7ff
+580b5a09
+67e1cab4
+580009f3
+e7e18005
+5800ffff
+e7e10005
+20203174
+58009468
+67e14663
+58009732
+67e14396
+58002580
+67e1c0b2
+70417803
+70415b08
+704baf00
+704baf00
+704bb000
+58000200
+67e14159
+70438017
+70438217
+58000a77
+67e14486
+38000306
+38044440
+38090000
+380c4408
+67e4c665
+38001224
+38044000
+38080000
+e7e28005
+3803ffff
+3806fe23
+380999d9
+380c020d
+67e440a0
+58004b06
+67e143de
+58000010
+67e143e0
+2040495b
+20404913
+20403ecf
+6fe44bbc
+c30dbe02
+7044550c
+58000006
+67e14372
+67e14374
+2040261a
+6fe44bbc
+c30c3e06
+20402612
+6fe0c93d
+67e0cac5
+6fe1c37d
+67e1cada
+6fe0c901
+1fe17efe
+67e0c901
+67e0c4a2
+58000000
+67e3c8d4
+6fe0c792
+67e0cbac
+67e0cbad
+20401a55
+202042e0
+44e1c018
+6fe44bbc
+c297c849
+6fe0c93d
+c0004835
+20403e28
+2434432b
+44e24018
+da20493e
+6fe0c93d
+1fe0ffff
+1feffe1d
+9a20a200
+efe08011
+67e0c484
+6fe0c484
+c019be32
+c01a3e3e
+20204593
+44e2c018
+78547c00
+6fe44bbc
+c305be2f
+6fe08989
+c3013e2f
+78347c00
+6fe0cac2
+67e0cac1
+20600000
+68494bc9
+6fe0cad2
+c07fbe36
+68494bc6
+604940c1
+6fe341dd
+203a326a
+70447f17
+6fe0c767
+243a3260
+70447f04
+20203260
+704ad801
+6848cbc8
+6fe0cad2
+c07fbe43
+6848c906
+6048cb88
+20403297
+6fe1cae0
+67e1c3ec
+20404428
+58000004
+e7e08006
+d8c04408
+2040442f
+20207959
+c513324f
+6fe0cabd
+203a324f
+6fe0cb05
+c000b24f
+6fe144db
+243a324f
+6fe0c8e5
+243a324f
+20203251
+6fe0c906
+67e0cad5
+20600000
+44e34018
+20404272
+2040427c
+20203289
+44e3c018
+6ff20138
+79207e1a
+67f2004c
+2040154c
+20406e62
+2040495b
+20404055
+20403e6a
+2040466d
+6848c915
+202060e6
+44e44019
+20404329
+20407f52
+20403e80
+20403e72
+6848c91b
+20403f96
+20203f98
+d8c08070
+df200013
+efe08006
+243a3e79
+58000040
+18c08bff
+e7e08005
+c2003e74
+20600000
+c6130000
+20403e80
+6fe0809d
+247a0000
+202060e6
+44e4c019
+20403fc8
+6fe0c923
+d840003f
+2040612c
+20405b62
+6848c91c
+204060da
+6848c91d
+204060da
+6848c91e
+204060da
+6848c911
+204060da
+6848c912
+204060da
+6848c913
+204060da
+6848c91f
+204060da
+6848c916
+204060da
+6848c917
+204060d6
+6848c918
+204060d6
+6848c920
+204060d6
+6848c921
+204060d6
+6848c915
+202060da
+6fe1478f
+c284bea5
+6fe1478f
+c2803ea8
+20600000
+1a227e00
+243a1ad2
+20201ad4
+1a227e00
+243a150e
+20201510
+6fe0c4a2
+c1810000
+44e54019
+6848c4a3
+18467c03
+20213eb9
+18408405
+6048c900
+18422200
+20406131
+c01fc9a1
+2040499f
+1a220400
+20206121
+18408404
+6048c900
+20203eb3
+6fe0c901
+c0013ec5
+c0003eca
+70490100
+582c0172
+67e1c8e7
+58014001
+e7e18005
+20600000
+585d0099
+67e1c8e7
+58007100
+e7e18005
+20600000
+58c8012c
+67e1c8e7
+5800dc00
+e7e18005
+20600000
+6fe44bbc
+c40a0000
+7048f901
+c3970000
+c3958000
+7048f900
+20600000
+6fe0c8fa
+1fe0fe01
+67e0c8fa
+6848c8fb
+98467c00
+20600000
+6fe44bbc
+c40a0000
+20403eab
+6fe0c8f9
+203a3ef3
+6fe0c4a2
+c0013ee8
+7048f903
+20403ed6
+20213eea
+20403eef
+20203ef9
+7048f902
+20203ef9
+20403ead
+7044a202
+6fe0cbbb
+245a3eef
+20203ef9
+7048fa00
+6fe0c901
+67e0c4a2
+20600000
+6fe0c4a2
+c0813ef7
+6fe0cbbb
+247a0000
+20403ed6
+24610000
+44e5c019
+6fe0cbbb
+247a0000
+7048fa00
+20406166
+2040618d
+67e148ed
+6fe0c4a2
+c0813f08
+684948ed
+184ffe08
+1fe6fc0a
+20407e61
+9840fe00
+67e148ed
+da2048e7
+20403f1a
+6fe0c4a6
+c2813f5c
+c280bf5e
+c3003f12
+7048fe01
+20203f10
+d8e00004
+2020472e
+d8e00004
+20404732
+7048fc0c
+6fe0c8fe
+207a0000
+7048fe00
+6848c925
+20204978
+44e64019
+efe40011
+67e4095c
+6fe0c8f9
+c0003f32
+c0013f21
+c001bf51
+6fe44bbc
+c3173f27
+6fe10962
+684948ef
+98467c00
+24213f54
+6fe44bbc
+c315bf32
+7048ff00
+6fe10962
+684948f1
+98467c00
+24213f30
+204046e7
+20203f32
+204046eb
+20203f32
+20403f58
+204061d6
+204061ce
+6fe10962
+6849095e
+98467c00
+244161d2
+68490960
+98467c00
+244161ca
+6fe10962
+6849095c
+98467c00
+20213f4d
+6849095e
+98467e00
+24213f4f
+203a3f4f
+1fefa264
+6fe1095c
+6849095e
+98460400
+1a227e00
+9846fc00
+20407e61
+67e0cb00
+20600000
+704b0064
+20600000
+704b0000
+20600000
+6fe0c4a2
+c0013f21
+20203f32
+6848c4a6
+79200402
+6048c4a6
+20600000
+6848c4a6
+793f8402
+6048c4a6
+20600000
+7048ff01
+20600000
+2040495b
+20203e5a
+6848c4c3
+2040610d
+20407a1f
+6848c91c
+20403f96
+6848c91d
+20403f96
+6848c91e
+20403f96
+6848c911
+20403f96
+6848c912
+20403f96
+6848c913
+20403f96
+6848c914
+20403f96
+6848c91f
+20403f96
+6848c916
+20403f96
+6848c917
+20403f96
+6848c918
+20403f96
+6848c920
+20403f96
+6848c921
+20403f96
+6848c915
+20403f96
+6848c922
+20403f96
+6848c925
+2040610d
+6848c919
+2040610d
+6848c926
+2040610d
+6848c927
+2040610d
+6848c928
+2040610d
+6848c91a
+20203f96
+18467cff
+20628000
+18410e7f
+6ff2011c
+afefffff
+2020bf96
+20203f94
+79200407
+202060f4
+793f8407
+202060f4
+6fe1cbef
+67e1895c
+df200014
+d8400000
+6fe1895c
+2feffe00
+2040e121
+6fe1895c
+1fe3fe00
+67e1895c
+18408401
+c2003f9c
+20600000
+20403faa
+70448673
+20403fa9
+20205b66
+20205d54
+6fe0c923
+d8400021
+2040612c
+6fe0c924
+d8400023
+2020612c
+44e6c019
+78547c00
+58000000
+67e348d5
+20404280
+20403fbe
+20403fc3
+2040411c
+6fe0c8d4
+1fe17e1f
+67e0c8d4
+24344766
+20404758
+20204584
+6fe0c8e4
+207a0000
+67e0c8d9
+7048e400
+20207ec5
+6fe0c8e0
+207a0000
+67e0c8da
+7048e000
+20207ec5
+20403fd5
+20404011
+6fe0c8de
+6848c8dd
+67e0c8dd
+98467c00
+2422b253
+6fe0c8e2
+6848c8e1
+67e0c8e1
+98467c00
+2422b253
+20600000
+6fe0c920
+c17f8000
+da200000
+6848c920
+204060fd
+7920a200
+6848c921
+204060fd
+7920a201
+1a227e00
+67e0c8de
+c000bfe5
+c0013fe9
+6fe0c8df
+c283bff5
+20600000
+6fe0c8dd
+c0003fed
+c001bfef
+20600000
+6fe0c8dd
+c0003ff1
+c001bff3
+20600000
+7048df82
+20600000
+7048df81
+20600000
+7048df80
+20600000
+7048df83
+20600000
+6fe0c8df
+793ffe07
+67e0c8df
+c0003ffd
+c000c000
+c0014003
+c001c006
+20600000
+6fe0c8de
+c001c009
+20600000
+6fe0c8de
+c0004009
+20600000
+6fe0c8de
+c001c00d
+20600000
+6fe0c8de
+c000400d
+20600000
+6fe0c8e0
+1fe0fe01
+67e0c8e0
+20600000
+6fe0c8e0
+1fe0ffff
+67e0c8e0
+20600000
+6fe0c917
+c17f8000
+da200000
+6848c917
+204060fd
+7920a200
+6848c918
+204060fd
+7920a201
+1a227e00
+67e0c8e2
+c000c021
+c0014025
+6fe0c8e3
+c283c031
+20600000
+6fe0c8e1
+c0004029
+c001c02b
+20600000
+6fe0c8e1
+c000402d
+c001c02f
+20600000
+7048e382
+20600000
+7048e381
+20600000
+7048e380
+20600000
+7048e383
+20600000
+6fe0c8e3
+793ffe07
+67e0c8e3
+c0004039
+c000c03c
+c001403f
+c001c042
+20600000
+6fe0c8e2
+c001c045
+20600000
+6fe0c8e2
+c0004045
+20600000
+6fe0c8e2
+c001c049
+20600000
+6fe0c8e2
+c0004049
+20600000
+6fe0c8e4
+1fe0fe01
+67e0c8e4
+20600000
+6fe0c8e4
+1fe0ffff
+67e0c8e4
+20600000
+6848c917
+204060d6
+6848c918
+204060d6
+6848c920
+204060d6
+6848c921
+202060d6
+6848c917
+20403f8d
+6848c918
+20403f8d
+6848c920
+20403f8d
+6848c921
+20203f8d
+6fe148d9
+207a0000
+7048e501
+7048e60a
+20600000
+da6048e6
+da404065
+202031fc
+7048e500
+20600000
+6fe44bbc
+c2974076
+6fe0c913
+c17f8000
+da200000
+704ba705
+6848c913
+20404079
+67e0cba4
+6fe0c914
+c07fc082
+204041a8
+1a227e00
+c282c092
+20204099
+6fe0c8ff
+203a4099
+20204092
+6fe44bbc
+c2964088
+6fe0cba4
+1fe22600
+6fe0c914
+c07fc1d5
+6fe0cbab
+243a4085
+2020408a
+6848c913
+20403f96
+20204073
+7049e200
+704ba400
+20600000
+6fe0cba4
+202041c7
+204060fd
+6848c914
+2020c088
+6848c914
+2040610d
+6848c913
+6fe0cba4
+202041c7
+6fe0c9e2
+c1008000
+7049e201
+6fe44bbc
+c3940000
+c39b0000
+202040a9
+6fe0c9e2
+c1000000
+7049e200
+6fe44bbc
+c29440a0
+c29b40a0
+20600000
+6fe0c9e3
+243a40a4
+6fe0cbad
+245a40a9
+7049e300
+6fe0c792
+67e0cbad
+67e0cbac
+20600000
+44e74019
+204040b2
+20740000
+6fe0c997
+1fe0fe01
+1fe17e03
+67e0c997
+204040d5
+2020462e
+78547c00
+6fe44bbc
+c3960000
+c3970000
+6fe0cb9f
+207a0000
+6fe0cba0
+207a0000
+78347c00
+20600000
+6fe44bbc
+c29440c0
+c29b40c7
+20600000
+6fe0c9e2
+c1808000
+da604bad
+da4040c5
+202031fc
+7049e301
+202046f3
+6fe0c9e2
+c1808000
+da604bac
+da4040cc
+202031fc
+7049e301
+20204514
+202040d8
+6fe44bbc
+c38e0000
+6fe0c997
+c1818000
+70499700
+20600000
+44e7c019
+204040cf
+2040492e
+6fe0c92c
+c001c0fb
+c005c10f
+6fe0c997
+c00040e2
+c000c0e0
+c00140e4
+c001c0e6
+6848c9d6
+202040e8
+6848c9d5
+202040e8
+6848c9d7
+202040e8
+6848c9d8
+202040e8
+6fe0c92c
+c00240f7
+c002c0f7
+c00440f9
+c003c0f9
+c00340f7
+6048c9e1
+58000006
+20405d65
+1fe104f8
+6fe0c9e1
+9840fe00
+1fed7e00
+1fe0fe06
+20205d5e
+184085ff
+202040ee
+18408402
+202040ee
+6fe0c997
+c0004102
+c000c100
+c0014104
+c001c106
+6fe0c9da
+20204107
+6fe0c9d9
+20204107
+6fe0c9db
+20204107
+6fe0c9dc
+67e0c9e1
+1fed7e00
+1fe22200
+1fe0fe0d
+20405d5e
+1a227e00
+1fe0fe0e
+20205d5e
+6fe0c997
+c0004116
+c000c114
+c0014118
+c001c11a
+6fe0c9de
+20204107
+6fe0c9dd
+20204107
+6fe0c9df
+20204107
+6fe0c9e0
+20204107
+20404155
+2040412d
+20403ea0
+20404128
+1a227e00
+6848c8dc
+67e0c8dc
+67e0c8d4
+9842fe00
+1fe67c00
+20628000
+20207ec5
+c6930000
+1a227e00
+207a0000
+67e0c8d4
+20207ec5
+704ba900
+704baa00
+704bab00
+1fe20400
+2040413d
+20404140
+20404143
+20404146
+6fe0cbaa
+207a0000
+6fe0cba9
+207a0000
+704bab01
+6fe0c8dc
+1fe22200
+20600000
+18417e09
+c004c14e
+20600000
+18417e14
+c00a414e
+20600000
+18417e18
+c00c414c
+20600000
+18417e07
+c001c14c
+c002c14c
+c003414c
+c003c14c
+20600000
+704baa01
+20600000
+704ba901
+20600000
+20404161
+20404155
+58000000
+67e1cb9f
+20600000
+44e8401a
+6fe0cbf2
+245a4161
+da200000
+20404164
+2040416a
+20404170
+20404176
+2040418f
+204041aa
+1a227e00
+20600000
+58030303
+67e1cb9f
+20600000
+704ba700
+6848c91c
+6fe0cb9f
+204041c7
+67e0cb9f
+20600000
+704ba701
+6848c91d
+6fe0cba0
+204041c7
+67e0cba0
+20600000
+704ba702
+6848c91e
+6fe0cba1
+204041c7
+67e0cba1
+20600000
+6fe0c911
+c17f8000
+704ba703
+6fe0cba2
+1fe22600
+6848c911
+6fe0c914
+c07fc18b
+204060fd
+2020c187
+6848c914
+2040610d
+6848c911
+6fe0cba2
+204041c7
+67e0cba2
+202041a8
+6848c914
+6fe0cba2
+204041c7
+20204185
+204041d5
+67e0cba2
+6848c911
+20203f96
+6fe0c912
+c17f8000
+704ba704
+6fe0cba3
+1fe22600
+6848c912
+6fe0c914
+c07fc1a4
+204060fd
+2020c1a0
+6848c914
+2040610d
+6848c912
+6fe0cba3
+204041c7
+67e0cba3
+202041a8
+6848c914
+6fe0cba3
+204041c7
+2020419e
+204041d5
+67e0cba3
+6848c912
+20203f96
+6848c914
+20203f96
+704b9c00
+6fe44bbc
+c40a8000
+6fe0c916
+c17f8000
+704ba707
+6848c916
+6fe0cba6
+204041c7
+67e0cba6
+1a227e00
+c283c1ba
+204041bd
+6fe0cb9d
+67e0cb9e
+20600000
+704b9d01
+204041c0
+202041b7
+704b9d00
+6fe0cb9e
+207a0000
+704b9c01
+20600000
+204060fd
+6848cba7
+18420e00
+2020c1d3
+202041d1
+1fe3fe00
+1fe22400
+204060fd
+7920a400
+1a417e07
+6848cba7
+18420e00
+c003c1d3
+c00041d1
+20600000
+f93fa200
+20600000
+f9202200
+20600000
+44e8c01a
+1a627e00
+67e0cba8
+1fe3fe00
+1fe22400
+18422600
+20403f94
+1a620400
+204060fd
+7d20a400
+204041e1
+202041cb
+6848cba8
+18410401
+1a417e01
+98467c00
+2422c36f
+20600000
+44e9401a
+20403fa5
+20758000
+20404276
+204041f5
+c01841fc
+c018c257
+c02c4260
+204041f2
+20001af4
+202041eb
+6fe0c923
+20405b55
+20203faa
+58000001
+20405d65
+67e0c9c7
+58000000
+20405d65
+67e0c9c6
+20600000
+6fe0c9c7
+c02d4205
+c06c420b
+c068c21a
+c0694223
+c001422a
+c02a422d
+c0284254
+202041eb
+70492c05
+20404272
+20407d85
+da604a3e
+2040426b
+202040ce
+58000016
+20405d65
+1fe67cbd
+2422c1e7
+58000019
+20405d65
+1fe67c55
+2422c1e7
+5800001b
+20405d65
+1fe67c1d
+2422c1e7
+70492c06
+da604a82
+2020426b
+70492c00
+da6049f8
+2040426b
+da604a02
+2040426b
+58000943
+20405d5e
+da604a1c
+2020426b
+70492c02
+da6049ee
+2040426b
+da604a02
+2040426b
+da604a1c
+2020426b
+70492c03
+da6049e4
+2020426b
+20404269
+58009a5b
+20405d5e
+5800000d
+20405d65
+1fe67c12
+2022c241
+1fe67c0a
+2422c244
+5800000e
+20405d65
+1fe67ce5
+2422c1eb
+58000010
+20405d65
+1fe67ca5
+2022c241
+20404251
+70492c08
+20600000
+70492c09
+da604a64
+2020426b
+1fe67c10
+2422c1eb
+5800000e
+20405d65
+1fe67cc5
+2422c1eb
+58000010
+20405d65
+1fe67c38
+2422c1eb
+20404251
+70492c0a
+20600000
+5800005b
+20405d5e
+20204267
+70492c07
+da604aa8
+2020426b
+20404276
+6fe0c9c7
+c038425e
+c000425c
+202041eb
+70492c01
+20600000
+70492c04
+20600000
+20404276
+6fe0c9c7
+c02cc264
+202041fc
+70492c0b
+da604a92
+2020426b
+58000009
+20205d5e
+58005a09
+20205d5e
+efe10013
+d840ffff
+98467c00
+20628000
+20405d5e
+1a60a602
+2020426b
+58008006
+20405d5e
+20002ee0
+20600000
+44e9c01a
+20403fa5
+20404272
+da604ab4
+2040426b
+202040ce
+204041e7
+20403fa5
+58000806
+20205d5e
+6fe0c4ae
+c1800000
+6fe0c92c
+c000428c
+c000c28c
+c004428c
+c001428c
+c001c2b0
+c002428c
+c00342d5
+c005c2ce
+2020428c
+20404304
+78547c00
+6fe0c915
+c07fc293
+6848c915
+204060fd
+24608000
+58000000
+20405d65
+c09842a6
+58000002
+20405d65
+c4038000
+2040431b
+6fe0c8d5
+20404313
+67e148d5
+6fe0c8d7
+20404313
+67e148d7
+6fe0c92d
+c00042a8
+c000c2aa
+c00142ac
+c001c2ae
+20600000
+c018c296
+202041f2
+204042ed
+20204322
+204042f5
+20204322
+204042f1
+20204322
+204042fd
+20204322
+20404304
+6fe0c915
+c07fc2b6
+6848c915
+204060fd
+24608000
+58000000
+20405d65
+c09841f2
+58000002
+20405d65
+c4038000
+2040431b
+204042cc
+67e0c8db
+1ff1fe00
+20404317
+67e0c8d6
+6fe0c8db
+1fe17e0f
+20404317
+67e0c8d8
+6fe0c92d
+c00042ed
+c000c2f5
+c00142f1
+c001c2fd
+20600000
+58000012
+20205d65
+20404304
+6fe0c915
+c07fc2d4
+6848c915
+204060fd
+24608000
+202042b9
+20404304
+78547c00
+58000002
+20405d65
+c4038000
+58000008
+20405d65
+203a4299
+58000000
+67e348d5
+20600000
+6fe0c929
+67e0c92d
+6fe0c91a
+c17f8000
+6848c91a
+20403f96
+6848c91a
+204060fd
+2040c2ea
+20203f94
+6fe0c92a
+67e0c92d
+20600000
+6fe148d5
+1fe67e00
+67e148d5
+20207ec5
+6fe148d7
+1fe67e00
+67e148d7
+20207ec5
+6fe148d7
+1fe67e00
+67e148d7
+6fe148d5
+1fe67e00
+67e148d5
+204042ff
+20207ec5
+204042ff
+20207ec5
+6fe148d7
+684948d5
+67e148d5
+604948d7
+20600000
+6fe0c9cd
+205a431b
+7049cd01
+20600000
+704abd01
+20401ac6
+202041e7
+6fe0c915
+c1ff8000
+6fe0cabf
+c1808000
+58000000
+67e0cabf
+67e248d5
+2020430a
+c4038000
+d840ff00
+9841fe00
+20600000
+c4018000
+d84000f0
+9841fe00
+20600000
+dfe00003
+20405d65
+67e148d5
+dfe00004
+20405d65
+67e148d7
+20600000
+6848c924
+204060fd
+20608000
+5800000a
+20405d65
+200003e8
+20204322
+58008100
+20205d5e
+704ad2ff
+6fe0cbc4
+c280c32f
+c2804334
+70448434
+580f0f0f
+67e1c37a
+67e1c37d
+20203e24
+70448433
+d8c04979
+20404608
+20203e24
+44ea401a
+204045fd
+20404354
+6fe0c93d
+c000c33f
+c0014341
+20600000
+6fe3493f
+20204342
+6fe3495c
+684b4979
+98467c00
+2022c593
+20203e1c
+20404354
+6fe0c5ff
+1fe0fe03
+1fe22200
+20404e1e
+6fe144e1
+e7e10005
+580004a1
+e7e10005
+6fe0c5ff
+1fe0fe01
+1fe27200
+d8c045ff
+20207dd4
+704ad25a
+20600000
+6fe1478f
+c283c362
+c284b281
+c2803268
+202045b6
+58000000
+67e14ac3
+6fe1478f
+c284b281
+6fe1478f
+c2803268
+20600000
+2040471c
+2020799c
+6fe44bbc
+c40d8000
+2434436c
+6fe0cabe
+1fe0fe01
+1fe17e0f
+67e0cabe
+247a0000
+704abe00
+78547c00
+20600000
+6fe0c915
+c1ff8000
+70417700
+704ac01e
+20600000
+44eac01a
+1a627e00
+c00a4390
+c000c43a
+c00ac39f
+c001443e
+c002c461
+c008458e
+c0094464
+c00332b6
+c0024472
+c009c472
+c00cb25e
+c015c47d
+c010c483
+c005448a
+c017324c
+c018c3aa
+c014c3ac
+c01943ae
+c01f43b9
+c02043ba
+c013c48c
+c01cc896
+c01d4872
+c01e488d
+c02243d0
+20600000
+704abf00
+2040430a
+704ad701
+20404861
+6fe0cad8
+243a4397
+704ad914
+6fe14482
+793ffe00
+67e14482
+704b8800
+6fe14b01
+67e14b03
+20404584
+202045b6
+704ad700
+58000006
+6fe44bbc
+c28dc3a4
+58000007
+67e14372
+67e14374
+704b0500
+704abd00
+20401ac8
+2020443e
+d8e00002
+202043b5
+70095b12
+202078e5
+6fe0cad8
+c000c3b1
+202043b3
+204043ac
+704b8714
+d8e00001
+202043b5
+6fe0cb86
+f9207e00
+67e0cb86
+20600000
+2020328f
+6fe143db
+c1000000
+6fe08289
+1feb7e00
+1fe67c0c
+20610000
+58000009
+67e14372
+67e14374
+204043ac
+704b0501
+20600000
+704b0500
+20600000
+6fe0cad8
+247a0000
+6fe0c437
+1fe67e22
+24628000
+704b8700
+d8e00000
+202043b5
+6fe082c1
+1fe67c0c
+242143c4
+6fe082c3
+6848cb9b
+98467c00
+202143da
+6fe082c3
+67e0c177
+202043c6
+6fe0cb9b
+67e0c177
+202043c6
+704b8600
+20600000
+44eb401a
+20401b24
+247a0000
+6fe0cad2
+c07fc3e7
+6fe0cb86
+1fe17e03
+c1818000
+6fe0cabd
+205a4308
+6fe44bbc
+c280c411
+c2804411
+c282c411
+c2834411
+20403fb0
+20404364
+24740000
+2040436f
+2040430b
+2040405d
+6fe44bbc
+c30ac3f8
+6fe0cb9c
+c000c3f9
+20204413
+6fe0cb9d
+203a4403
+6fe44bde
+67e4095c
+6fe0cbdd
+c001c405
+c0014408
+704af708
+68494af8
+20204418
+6fe44be7
+202043fc
+704af703
+68494afa
+20204418
+704af702
+68494afc
+20204418
+da200001
+68494afe
+20401e5f
+6fe0cb00
+e7e08005
+20600000
+58000000
+67e3c8d4
+704af707
+6fe3c8d4
+67e3895c
+68494357
+20204418
+6fe0caf7
+1fe22200
+20401e5f
+6848caf7
+18427200
+d8c0095c
+20207dd4
+704ad800
+6fe1cadd
+67e1c3ec
+20404428
+58000005
+e7e08006
+d8c04ae3
+2040442f
+20207959
+da2043e8
+efe08011
+207a0000
+98c0a200
+efe08006
+c1008000
+20204429
+d8a043f3
+df200013
+20407dd4
+20201a6a
+5800000c
+67e14455
+6fe44bbc
+c38d8000
+5800000e
+67e14455
+20600000
+704abf00
+2040430a
+20404861
+202045b6
+704b9000
+704b9900
+20404433
+20404449
+6fe14480
+c283c450
+c2803238
+c280c454
+c2814457
+c281c457
+20204593
+58000000
+67e448dd
+e7e20005
+7049cd00
+70445400
+70432600
+20600000
+204043dd
+6fe14480
+c2803238
+20203e5a
+c282c457
+c281c457
+20204593
+6fe1478f
+c2864593
+20403238
+20404150
+2040451c
+6fe0cbb0
+c000be57
+6fe0cad5
+247a0000
+20203e5a
+20600000
+704b9804
+20600000
+70445401
+20403295
+20403291
+58000000
+67e1478b
+67e0c78d
+20404462
+2020328d
+704b9100
+6fe0c5f8
+2feffe00
+20608000
+704b9101
+20600000
+6fe0cad2
+c07fc338
+6fe1478f
+c3860000
+c3830000
+c3858000
+6fe44bbc
+c3828000
+c299c593
+c297c85e
+20203e5a
+6fe0cb90
+c1810000
+704b9000
+20404433
+20404462
+2020328d
+6fe0cb90
+c1010000
+1fe0fe01
+67e0cb90
+70445512
+20404462
+2020328d
+20405b4f
+2020325c
+58000001
+67e30040
+7000e733
+202045cd
+5fffffff
+67e30040
+7000e733
+704ad2ff
+204045e2
+70493eff
+2020462e
+44ebc01a
+20770000
+6fe0c454
+207a0000
+20405352
+247a0000
+6fe0cad2
+c07fc346
+6fe0cabd
+205a4308
+6fe44bbc
+c280c4ce
+c28044ce
+c282c4ce
+c28344ce
+20403fb0
+20404364
+24740000
+2040436f
+2040430b
+2040405d
+6fe0cb91
+c000c4bd
+6fe0cb99
+207a0000
+6fe44bbc
+c30ac4b4
+6fe0cb9c
+c000c4d1
+da200009
+20404e1e
+6fe144e1
+e7e10005
+580002a1
+e7e10005
+6fe3c8d4
+e7e38005
+20600000
+6fe0c8d4
+67e0cb92
+6fe0c8d5
+e7e08005
+6fe0c8d7
+e7e08005
+6fe148d9
+e7e10005
+da200007
+20404e1e
+6fe144e1
+e7e10005
+580002a1
+e7e10005
+6fe2cb92
+e7e28005
+20600000
+58000000
+67e3c8d4
+202044b4
+6fe0cb9d
+203a44f3
+6fe44bde
+67e4095c
+6fe0cbdd
+c001c4e1
+c00144ea
+da20000a
+20404e1e
+6fe144e1
+e7e10005
+580001a1
+e7e10005
+6fe4095c
+e7e40005
+20600000
+da200004
+20404e1e
+6fe144e1
+e7e10005
+580003a1
+e7e10005
+6fe1095c
+e7e10005
+20600000
+da200003
+20404e1e
+6fe144e1
+e7e10005
+580004a1
+e7e10005
+6fe0895c
+e7e08005
+20600000
+6fe44be7
+202044d4
+44ec401b
+20403edc
+204049a3
+204022e1
+2040255f
+2040480b
+2040490b
+2040493c
+204040bc
+2040450c
+2040451c
+2040453f
+20404544
+20404552
+2040455f
+20404555
+2040456a
+2040456d
+20404572
+20404575
+20404062
+20404587
+2020457c
+6fe44bbc
+c29bc50f
+20600000
+6fe0cbaf
+c1808000
+da604bac
+da404514
+202031fc
+6fe0c93d
+c1000000
+6fe44bbc
+c3830000
+d8e00006
+2040472e
+204031e6
+2020458e
+6fe0c93d
+c0004522
+6fe44bbc
+c41a8000
+6848cbdb
+20204525
+6fe44bbc
+c4190000
+6848cbdc
+6048cbae
+20404155
+1fe17e07
+6848cbae
+98467c00
+2022c531
+6fe0c792
+67e0cbb1
+6fe0cbb0
+c1000000
+704bb000
+20600000
+20404536
+6fe0cbb0
+c1008000
+704bb001
+2020799c
+da404866
+da604bb1
+6fe0c93d
+c00031fc
+da404514
+204031fc
+6fe0cbb1
+c000c720
+20600000
+da604ad3
+da404542
+20203203
+204045b6
+20203e5a
+da604b88
+da40454a
+20403203
+6fe0cb88
+c000b275
+20600000
+6fe0cad2
+c07fc338
+6fe0cac1
+243a474c
+6fe44bbc
+c299c593
+c297c85e
+20203e5a
+da604b87
+da4043ce
+202031fc
+6fe0cad7
+207a0000
+da604ad9
+da40455a
+202031fc
+6fe0cad8
+247a0000
+6fe0c39b
+c1800000
+2020203d
+da604b03
+da404562
+202031fc
+6fe14b01
+67e14b03
+2020440b
+6fe0cb86
+c3810000
+204043ac
+d8e00000
+202043b5
+da60478d
+da404464
+202031fc
+da604b98
+da404570
+202031fc
+704b9901
+20600000
+da604ad5
+da403e5a
+202031fc
+da604ac0
+da404578
+202031fc
+6fe0cb9b
+67e0c177
+704abf01
+20600000
+6fe0c92f
+c3838000
+da604ac3
+da404581
+20203203
+6fe0c93d
+c0004820
+2020435b
+6fe14bcf
+67e14ac3
+20600000
+da6049c4
+da40458a
+202031fc
+20404631
+6fe0cad6
+243a46fe
+20600000
+280ffe26
+2040c831
+2040435b
+204043dd
+20204593
+44ecc01b
+20404354
+6fe1478f
+c285c59f
+6fe44bbc
+c304459f
+6849499c
+18408401
+6049499c
+6049437b
+180a7e00
+67e0c37a
+6fe1cada
+67e1c37d
+20403297
+6fe14794
+67e14ad3
+7000bc06
+58000000
+67e14ac3
+67e0cb88
+67e0cad5
+67e0cbb8
+67e0cabd
+d8e00002
+2040472e
+20404722
+6fe0cbc4
+2feffe01
+2040c41f
+6fe0cbc4
+2feffe00
+2040f92f
+204049db
+20204919
+44ed401b
+d8e00006
+20404732
+704ad500
+6fe0cbc4
+2feffe01
+2040c5c1
+6fe0cbc4
+2feffe00
+2040c5c3
+2020495f
+704b8800
+2020795f
+58000000
+67e14ad3
+20207934
+44edc01b
+6fe44bbc
+c4010000
+20404913
+d8e00002
+20404732
+204045cf
+204045e2
+2020462e
+6fe080e7
+c01a45d3
+c019c5d6
+20600000
+67e0cb89
+6fe30297
+202045d8
+67e0cb89
+6fe30040
+67e34b8a
+6fe3cb89
+d8c0493e
+df200003
+e8438006
+98467c00
+2022c5f7
+18c08c16
+c20045dc
+20600000
+da20493e
+6fe0c93d
+1fe0ffff
+1feffe1d
+9a20a200
+6fe080e7
+e7e08011
+c01a45ec
+c019c5f3
+20600000
+6fe30297
+e7e30005
+d8c04316
+20407d7f
+6fe3437a
+e7e30005
+20600000
+6fe30040
+e7e30005
+d8c041cb
+20207d7f
+18c08dfa
+18c20a00
+684b4b8a
+18408403
+e0430005
+20600000
+da20493e
+6fe0c93d
+c1000000
+1fe0ffff
+1feffe1d
+9a20a200
+efe08011
+67e0c484
+c019c608
+c01a460d
+20600000
+efe30006
+67e341dd
+d8a041cb
+20407d7f
+202060d0
+efe30006
+67e341dd
+d8a04316
+20407d7f
+efe30006
+67e3437a
+20600000
+6fe14995
+d840aa55
+98467c00
+2022c622
+60494995
+20404627
+6fe0cac5
+67e0c93d
+6fe0c92b
+67e0c997
+6fe24891
+67e24895
+67e2483f
+20600000
+204045fd
+6fe24998
+67e24895
+67e2483f
+20600000
+6fe3437a
+67e34955
+1fe0ff00
+67e34972
+1fe0ff00
+67e3498f
+20600000
+6fe0c9c5
+67e0c9c4
+20600000
+44ee401b
+6fe44bbc
+c289c67f
+c2894643
+20600000
+20405daf
+2040464a
+2040463d
+20405dd2
+20404651
+20404614
+20203fa5
+580049bd
+d840493d
+98460400
+6fe1c9bd
+da20493d
+20600000
+20405daf
+2040464a
+2040465f
+2040463d
+20404662
+20404651
+20203fa5
+700964ab
+2040623f
+20405db4
+da2049c0
+68488964
+20404653
+2020623f
+700964b9
+2020464b
+e0408011
+1ff10400
+e0408005
+1fec8400
+e0408005
+e7e08005
+1a227e00
+67f1008a
+58000000
+67f1008e
+70800602
+20205d6e
+6fe1c9bd
+67e1c4a7
+20205d8a
+1fe22600
+1a227e00
+1fe0fffc
+1fe22400
+efe20012
+67e249c0
+1a627e00
+20405dc1
+6fe249c0
+e7e20012
+20600000
+6fe44bbc
+c4090000
+20404651
+20405b66
+6848c4b7
+20406109
+6848c4bc
+20203f94
+20405e42
+6fe44bbc
+2feffe09
+2440de5c
+2040467b
+20204614
+d8400080
+da20493d
+da400000
+20205e79
+d8400080
+da20493d
+da400000
+20205e6b
+d8400001
+da204997
+da40005a
+20205e6b
+d8400001
+da204997
+da40005a
+20205e79
+44eec01b
+204049dd
+204079a1
+20404067
+20404693
+204046de
+20404714
+20203fc8
+6fe44bbc
+c294c698
+c29bc698
+20600000
+704ba503
+6fe0c91f
+c17f8000
+da200000
+704ba706
+6848c91f
+204046a8
+67e0cba5
+6fe0c914
+c07fc6a5
+204041a8
+1a227e00
+c28346c9
+202046be
+6848c91f
+20403f96
+202046a2
+6fe44bbc
+c296c6b4
+6fe0cba5
+1fe22600
+6fe0c914
+c07fc1d5
+6fe0cbab
+243a46b1
+202046b6
+704baf00
+704ba500
+20600000
+6fe0cba5
+202041c7
+204060fd
+6848c914
+2020c6b4
+6848c914
+2040610d
+6848c91f
+6fe0cba5
+202041c7
+6fe0cbaf
+c1000000
+704baf00
+6fe44bbc
+c39a0000
+6fe0cbac
+1fe67c14
+244146f3
+6fe0c792
+67e0cbac
+20600000
+204046d5
+20740000
+6fe0cbaf
+c1008000
+704baf01
+6fe44bbc
+c29a4514
+6fe0cb88
+207a0000
+6fe0c906
+67e0cb88
+20600000
+78547c00
+6fe44bbc
+c3968000
+6fe0cb9f
+207a0000
+6fe0cba0
+207a0000
+78347c00
+20600000
+6fe44bbc
+c29546e2
+c295bedc
+20600000
+6848c922
+20403f96
+6848c922
+204060fd
+2020c6eb
+6fe0c93d
+c1008000
+70493d01
+20204356
+6fe44bbc
+c315c6ef
+6fe348f3
+67e348e7
+6fe0c93d
+c1000000
+70493d00
+20204831
+44ef401b
+6fe0cbc5
+c1008000
+20404700
+6048c93d
+7041ca00
+20404718
+20404356
+2040471a
+704ad601
+2020462e
+20404718
+20205e29
+6848c93d
+18408401
+6fe44bbc
+c288c707
+18467c02
+2441470e
+20600000
+6fe0cbc5
+1fe0ffff
+98467c00
+2441470c
+20600000
+d8400000
+20600000
+d8400001
+20600000
+d8400001
+da20493d
+da400000
+20205e6b
+6fe44bbc
+c41a0000
+20404698
+20600000
+d8e00000
+2020472e
+d8e00000
+20204732
+d8e00003
+2020472e
+d8e00003
+20204732
+d8e00005
+2020472e
+d8e00005
+20204732
+d8e00014
+2020472e
+d8e00018
+2020472e
+d8e00016
+2020472e
+d8e0000c
+2020472e
+d8e0001c
+2020472e
+6fe44bbc
+f9207e00
+67e44bbc
+20600000
+6fe44bbc
+f93ffe00
+67e44bbc
+20600000
+d8e00015
+2040472e
+58000000
+67e44bdd
+67e44be6
+6fe0c90e
+1fe17ec0
+c0204743
+c0404745
+c060474a
+58070008
+67e44bde
+20600000
+58040005
+20204741
+58022303
+67e44bdd
+58000003
+67e44be6
+20600000
+5800cd03
+20204746
+44efc01b
+6fe0cac1
+1fe0ffff
+67e0cac1
+6848c93d
+18467c01
+2442c700
+6048c93d
+7041ca00
+20404710
+204045e2
+20203e1c
+6fe44bbc
+c41c0000
+6fe248d5
+207a0000
+204047fb
+58000003
+204047f1
+205a47ed
+245a47ef
+58000002
+204047f6
+205a47ed
+6fe0c9ce
+c000c76b
+6fe44bbc
+c41c0000
+df200005
+d8a049ce
+20207d9b
+2040477f
+6fe149cf
+67e109f8
+6fe148d5
+67e109fa
+204047b7
+6fe109f8
+67e149cf
+6fe109fa
+67e148d5
+6fe149d1
+67e109f8
+6fe148d7
+67e109fa
+204047bf
+6fe109f8
+67e149d1
+6fe109fa
+67e148d7
+20600000
+6fe44bbc
+c41c8000
+6fe149cf
+67e109ff
+20404792
+67e149cf
+6fe148d5
+67e109ff
+204047a0
+67e148d5
+6fe149d1
+67e109ff
+20404792
+67e149d1
+6fe148d7
+67e109ff
+204047a0
+67e148d7
+20600000
+6fe08a00
+203a4795
+2020479a
+6fe089ff
+204047ad
+67e089ff
+6fe109ff
+20600000
+6fe089ff
+204047e9
+204047ad
+205a7ecf
+204047e5
+20204798
+6fe08a00
+203a47a3
+202047a7
+6fe089ff
+204047b2
+67e089ff
+20204798
+6fe089ff
+204047e9
+204047b2
+205a7ecf
+204047e5
+20204798
+1feffe04
+1fe6fc05
+20407e64
+1807fe00
+20600000
+1feffe0c
+1fe6fc0a
+20407e64
+1807fe00
+20600000
+6fe109f8
+684909fa
+9840fe00
+6848c9d3
+9840fe00
+1fe10401
+6048c9d3
+202047c7
+6fe109f8
+684909fa
+9840fe00
+6848c9d4
+9840fe00
+1fe10401
+6048c9d4
+202047c7
+67e189fc
+2feffe10
+2020c7d1
+6fe089fd
+c07fc7d8
+6fe089fc
+1fe37e00
+67e109f8
+67e109fa
+20600000
+6fe089fd
+c00047d5
+6fe189fc
+202047cd
+7009fe00
+6fe089fc
+202047cd
+6fe089fc
+204047e3
+67e089f8
+67e089fa
+203a47e1
+580000ff
+67e089f9
+67e089fb
+20600000
+58000000
+202047de
+204047e9
+1fe37e00
+204047ea
+1fe67e00
+67e089ff
+20600000
+1fe67e00
+67e08970
+6fe08970
+20600000
+7049ce00
+20600000
+7049ce01
+20600000
+9a267c00
+24217ecf
+9a467c00
+24217ecf
+20207ed1
+9a267c00
+24610000
+9a467c00
+24610000
+20207ed1
+6fe148d5
+20404802
+1fe22200
+6fe148d7
+20404802
+1fe22400
+20600000
+67e109fa
+6fe089fb
+c07fc808
+6fe089fa
+1fe17eff
+20600000
+6fe109fa
+1fe67e00
+20204806
+da6048c8
+da40480e
+202031fc
+6fe248bc
+67e2485f
+704abf01
+20600000
+6fe0cbf3
+c000481a
+c000c81c
+c0014817
+c001c81e
+580ea600
+67e248bc
+20600000
+5805e740
+20204818
+580927c0
+20204818
+58124f80
+20204818
+7048a900
+20402659
+5fffffff
+67e2485f
+58000000
+67e3c8d4
+704bf201
+2040427c
+20403e6a
+202026bc
+6fe0cbf2
+245a41ea
+704bf200
+20202658
+6fe0cbf2
+243a2633
+2020262f
+793f8026
+7048a500
+d8e00001
+20204732
+6fe44bbc
+c308c842
+20403e28
+20344845
+6fe44bbc
+c298484b
+c318c84b
+20404150
+1fe17e07
+6848cbdc
+98467c00
+2022c866
+2020484b
+6fe0cac1
+243a474c
+20600000
+6fe14889
+67e1488b
+70488f03
+20202562
+20403e28
+20344855
+70493d00
+6fe14bcb
+67e1488b
+70488f02
+20202562
+20404919
+6fe14885
+67e1488b
+70488f04
+20202562
+6fe0c93d
+c0004845
+20404354
+20204859
+20404831
+2040495b
+70493d01
+204045fd
+20203e1c
+20403e28
+20343e5a
+20204593
+20403e28
+20740000
+6fe44bbc
+c297c62e
+20600000
+d8e00001
+2040472e
+58000000
+67e1488b
+204045b6
+204049db
+20404919
+70483901
+6fe44bbc
+c30aa2e4
+70483902
+202022e4
+6fe0c8a9
+243a4820
+6fe0c88f
+c001487f
+c0024883
+c001c888
+2040495f
+20404831
+6fe0cac1
+243a474c
+6fe0c93d
+c0003e5a
+20600000
+6fe44bbc
+c297c850
+c2984850
+20204845
+6fe44bbc
+c317c878
+6fe0cbc5
+c000c878
+20204859
+6fe44bbc
+c317c878
+c289c878
+c2894878
+20204851
+2040430a
+704abf00
+7048a500
+70488f00
+6fe24895
+6fe24891
+98467c00
+20628000
+20204861
+d8e00001
+20404732
+20404913
+58000000
+67e14887
+67e1488b
+67e0c8a5
+67e0c9cd
+67e0c88f
+2040430a
+2040431b
+6fe2483f
+67e24895
+67e24998
+2020462e
+c6930000
+20403fb0
+24740000
+6fe44bbc
+c30ac8ac
+6fe0cb9c
+243a48c1
+2040430b
+6fe0c839
+c280c8bb
+6848c7ca
+6fe0c8d4
+9841fe00
+67e0c8d4
+6848c7cf
+6fe0c8d9
+9840fe00
+67e0c8d9
+6848c7d0
+6fe0c8da
+9840fe00
+67e0c8da
+70483901
+da200007
+da4048d4
+6fe148d9
+207a0000
+202026e8
+70483902
+da200009
+6fe0cb9d
+243a48c7
+da404be6
+20600000
+da404bdd
+20600000
+58000000
+67e1cbb5
+20600000
+6fe44bbc
+c40b0000
+6fe0cabf
+207a0000
+6fe0c8ab
+207a0000
+6fe0cbb2
+1fe0fe01
+1fe17e03
+67e0cbb2
+247a0000
+704bb300
+6fe0cbb3
+1fe0fe01
+67e0cbb3
+1fe67c08
+242148e3
+204025a3
+20402662
+242c48e9
+2437c8e9
+204048fb
+204048f2
+204025a0
+6fe0cbb4
+1fe0fe01
+67e0cbb4
+c00848eb
+20600000
+20402281
+202048d8
+704bb400
+6fe0cbb5
+c3800000
+79207e00
+67e0cbb5
+6fe14bcd
+20204820
+6fe0c8ab
+203a48c9
+704bb400
+6fe0cbb5
+c4000000
+793ffe00
+67e0cbb5
+20404584
+202041ea
+20402679
+6fe0c7a8
+2fe1f008
+24608000
+6fe0c7a9
+c07fc820
+20600000
+6fe0c93d
+c0801468
+6fe0c87a
+207a0000
+70804202
+6ff08138
+1fe17efc
+67f0804c
+2020154c
+6fe44bbc
+c4100000
+6fe0cbb8
+207a0000
+1fe0ffff
+67e0cbb8
+203a495f
+2020496d
+6fe44bbc
+c4100000
+204049db
+6fe0cbd1
+67e0cbb8
+20600000
+704bb800
+6fe14bd5
+67e14935
+67e14937
+6fe0c93d
+c0004922
+c000c924
+c0014926
+20600000
+6fe0c919
+20204927
+6fe0c926
+20204927
+6fe0c927
+67e08964
+2040495f
+6fe08964
+67e0c934
+da200000
+70493201
+20207871
+6fe0c928
+c17f8000
+6fe14ad3
+247a0000
+6fe14887
+247a0000
+6fe1488b
+247a0000
+6fe0cbb8
+247a0000
+6fe0cbd2
+203a493f
+67e0cbb9
+20600000
+da604bb9
+da40493f
+202031fc
+6fe0c928
+67e0c934
+6fe14bd3
+67e14935
+67e14937
+da200000
+6848c997
+18408401
+6fe44bbc
+c30e494c
+18408401
+18467c04
+2441494f
+6048c933
+70493201
+20600000
+d8400001
+20600000
+78547c00
+6fe0c928
+6848c934
+98467c00
+24628000
+6fe0c933
+207a0000
+7048fd00
+78347c00
+20600000
+2040496b
+20404964
+20404967
+20204969
+6fe0c93d
+c0004964
+c000c967
+c0014969
+20600000
+704bbb00
+6848c919
+20204978
+6848c926
+20204978
+6848c927
+20204978
+6848c928
+20204978
+6fe0c93d
+c0004972
+c000c974
+c0014976
+20600000
+6848c919
+2020497c
+6848c926
+2020497c
+6848c927
+2020497c
+44f0401c
+6048c934
+da200000
+2020786c
+44f0c01c
+6048c934
+da200000
+20207867
+6fe0c919
+98467c00
+2042c99f
+6fe44bbc
+c3126109
+20404990
+20404994
+20404998
+6fe0cbba
+203a6109
+704bba00
+20206121
+6fe0c919
+98467c00
+2042c9a1
+2020610d
+6fe44bbc
+c4130000
+6fe0c927
+2020499b
+6fe44bbc
+c4128000
+6fe0c928
+2020499b
+6fe44bbc
+c4138000
+6fe0c925
+98467c00
+24628000
+704bba01
+20600000
+704bbb00
+20600000
+704bbb01
+20600000
+6fe14ad3
+247a0000
+6fe14887
+247a0000
+6fe1488b
+247a0000
+6fe0cbb8
+247a0000
+20404951
+20740000
+6fe44bbc
+c4108000
+c4020000
+c291c9c9
+6fe0c8fc
+1fe0fe01
+67e0c8fc
+1fe67c14
+244149bb
+c00149bd
+c00249c3
+c00349bd
+c00449c3
+20600000
+7048fc01
+202049c3
+6fe44bbc
+c291496d
+6fe0c925
+c17f8000
+6848c925
+2020497c
+6fe44bbc
+c291495f
+6fe0c925
+c17f8000
+6848c925
+20204978
+6fe14bcf
+68494ac3
+98460400
+6fe14bd9
+98467c00
+242149db
+6fe0c8fd
+247a0000
+7048fd01
+202049d3
+6fe14bd7
+67e14935
+67e14937
+6fe44bbc
+c291491d
+6fe0c925
+c17f8000
+20204927
+7048fd00
+202049c3
+6fe44bbc
+c4108000
+c4020000
+c291c9ef
+6fe0c8fc
+1fe67c0a
+202149eb
+6fe0c93d
+c00049e8
+70409901
+20600000
+6fe44bbc
+c38c0000
+202026d7
+6fe0c93d
+c00026e8
+70409900
+20600000
+6fe0c8fd
+243a49eb
+202049e4
+20401293
+6fe08018
+202025e9
+204049f2
+202026f5
+204049f2
+6fe08030
+2feffe00
+24608000
+6fe08047
+2feffe03
+2040a72b
+2440a727
+202026f5
+6fe0cb86
+2fe00603
+2420fecf
+20403295
+20207ed1
+20405355
+247a0000
+70008801
+70008900
+20207ed1
+6fe1478f
+c284ca00
+20204a05
 c0000004
 c000803a
 20600000
@@ -216,4 +3696,4 @@
 67e1cc16
 202026e8
 20600000
-0000186b
+00001ae3
Index: program/app_mouse.prog
===================================================================
--- /YC1308AF/branch/mouse/USB_4Mode_Project/RongYuan_Project/mouse_public_3mode_usb_sdk/program/app_mouse.prog	(nonexistent)
+++ /YC1308AF/branch/mouse/USB_4Mode_Project/RongYuan_Project/mouse_public_3mode_usb_sdk/program/app_mouse.prog	(working copy)
@@ -0,0 +1,4776 @@
+
+ifdef COMPILE_MOUSE
+mouse_init:
+	call enable_authrom
+	call mouse_setting_config
+	call mouse_init_sunt
+	call mouse_dpi_config
+	rtn wake
+	call mouse_drawing_optima_init
+	call mouse_cb_fuction
+	call mouse_sensor_powerdown
+	fetch 1,mem_usb_addr
+	rtnbit1 7
+mouse_init_wireless:	
+	fetch 2,mem_ui_state_map
+	bbit1 UI_STATE_BTN_DOWN,mouse_start_discovery
+	call mouse_check_select_device_by_switch
+	branch mouse_start_work
+
+
+mouse_cb_fuction:
+	setarg mouse_24g_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_bt
+	store 2,mem_cb_bt_process
+	setarg mouse_process_lpm_before
+	store 2,mem_cb_before_lpm
+	setarg mouse_priority_bb_event
+	store 2,mem_cb_bb_event_process
+	setarg mouse_idle
+	store 2,mem_cb_idle_process
+	setarg mouse_before_hibernate
+	store 2,mem_cb_before_hibernate
+	setarg mouse_le_bb_event_connect_complete
+	store 2,mem_cb_att_write	
+	setarg mouse_bb_event_timer
+	store 2,mem_cb_event_timer
+	setarg mouse_spi_write_flash_cb
+	store 2,mem_cb_spi_flash_write_complate
+	setarg mouse_lpm_check_wake_lock
+	store 2,mem_cb_check_wakelock
+	setarg mouse_le_transmit
+	store 2,mem_cb_ble_transmit
+	setarg mouse_bt_slave_match
+	store 2,mem_cb_bt_slave_match
+	setarg mouse_set_lpm_mult
+	store 2,mem_cb_bt_set_mult
+	rtn
+
+
+mouse_setting_config:
+	rtn wake
+	call g24_transmit_init
+	call g24_chmap_param_init
+	call mouse_gpio_init
+	call mouse_param_init
+	call le_set_config_fixed_ltk
+	call le_set_justwork
+	call le_set_fixed_ltk
+	call le_set_config_read_authentication
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	bbit1 MOUSE_ENABLE_EEPROM,mouse_load_eeprom_info_check
+	bbit1 MOUSE_ENABLE_FLASH,mouse_load_flash_info_check
+	rtn
+	
+mouse_xtal_init:
+	jam 0x08,mem_fcomp_div		// 0x08--16M 
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	rtnbit1 MOUSE_ENABLE_16M
+	jam 0x18,mem_fcomp_div		// 0x18--24M
+	rtn
+
+mouse_default_init:
+	jam 0xff,mem_usb_offline_check_gpio
+	jam 0xff,mem_ui_button_gpio
+	jam 0x1e,mem_ui_button_timeout
+	jam 5,mem_store_information_delay_timer_init
+
+	setarg mem_mouse_led_type
+	store 2,mem_ui_led_struct_ptr
+	jam 1,mem_ui_led_struct_num
+
+	setarg mem_mouse_rssi_signal_buf
+	store 2,mem_rssi_signal_buf_ptr
+
+	jam 1,mem_24g_data_type
+	
+	fetch 2,mem_mouse_discovery_timeout
+	store 2,mem_discovery_timeout
+
+	fetch 2,mem_mouse_24g_pair_timeout_init
+	store 2,mem_24g_pair_timeout_init
+
+	fetch 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 MOUSE_FLAG_LEN,mem_mouse_flag
+	nrtn blank
+
+	
+// mouse.dat no configuration parameters
+	setarg 0x020800					//enable poweron direct  & 24g
+	store 3,mem_mouse_flag			
+	setarg 0x800700					// adc led use mode led
+	istore 3,contw
+	setarg 0x0300
+	istore 2,contw
+ 
+	jam 1,mem_lpm_mode
+	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
+
+	fetch 1,mem_mouse_global_setup
+	and pdata,0x07,temp
+	storet 1,mem_adc_channel
+	rshift3 pdata,pdata
+	and pdata,0x01,temp
+	storet 1,mem_24g_ch_map_update
+	rshift pdata,pdata
+	and pdata,0x03,temp
+	storet 1,mem_adc_config_flag_init
+	rshift2 pdata,pdata
+	and pdata,0x03,pdata
+	call mouse_24g_long_sleep_set
+
+	fetch 1,mem_mouse_global_setup1
+	and pdata,0x03,temp
+	storet 1,mem_sensor_angle_default
+	rshift2 pdata,pdata
+	and pdata,0x03,temp
+	storet 1,mem_sensor_angle_switch
+	rshift2 pdata,pdata
+	and pdata,0x01,temp
+	storet 1,mem_config_sensor_dpi
+	storet 1,mem_mouse_dpi
+	rshift pdata,pdata
+	and pdata,0x01,temp
+	storet 1,mem_24g_disable_fec1
+	rshift pdata,pdata
+	and pdata,0x03,pdata
+	store 1,mem_device_number
+
+	bpatch patch18_2,mem_patch18
+	setarg 0x0b0c0a
+	store 3,mem_lbutton_gpio
+	setarg 0xffffff
+	istore 3,contw
+	setarg 0x0607ff			// clk-07  sdio--06
+	istore 3,contw
+	setarg 0xffffff
+	istore 3,contw
+
+	
+/* adc*/
+	jam 0x0a,mem_adc_read_time_init
+	setarg 0x0064
+	store 2,mem_adc_low_volatage_led_blink_timer
+	call mouse_adc_vol_init	
+/****/
+	setarg 0x1770
+	store 2,mem_mouse_no_data_timeout				// 10min
+	jam 0x14,mem_mouse_device_poweron_timer_count_init	// 2s
+	setarg 0x0190
+	store 2,mem_mouse_low_v_led_blink_time			// 200ms on,200ms off
+	store 2,mem_mouse_dpi_led_blink_time
+	setarg 0x03e8
+	store 2,mem_mouse_disconvey_led_blink_time
+	jam 0x07,mem_rssi_buff_index
+	jam 125,mem_power_ctrl_pac_succ_cnt_init
+	jam TX_POWER_0DB,mem_tx_power
+
+	jam 0x01,mem_24g_fast_conn_enable
+	setarg 0x0f0f
+	store 2,mem_24g_fast_conn_addr
+	store 2,mem_24g_fast_conn_addr+2
+	
+//ble
+	fetch 2,mem_lap
+	store 2,mem_lap+4
+
+	arg mem_le_lap,contw
+	arg mem_lap,contr
+	arg 0x06,loopcnt
+	call reverse_byte
+	
+	jam 0x20,mem_lpm_mult_init
+	jam 0x34,mem_device1_type
+	fetch 6,mem_le_lap
+	store 6,mem_device1_locall_addr
+	jam 0x02,mem_mouse_bluetooth_type
+
+	jam 0x1f,mem_le_adv_data_len
+	
+	setarg 0x050102
+	store 3,mem_le_adv_data
+	setarg 0x120303
+	istore 3,contw
+	setarg 0x190318
+	istore 3,contw
+	setarg 0x03c2
+	istore 2,contw
+
+	setarg 0x06ff06
+	store 3,mem_le_adv_swift_pair
+	setarg 0x000300
+	istore 3,contw
+	setarg 0x090c80
+	istore 3,contw
+
+	setarg 0x355442		// BT5.2 Mouse
+	istore 3,contw
+	setarg 0x20322e
+	istore 3,contw
+	setarg 0x756f4d
+	istore 3,contw
+	setarg 0x6573
+	istore 2,contw
+
+	jam 0x1f,mem_le_scan_data_len
+	arg mem_le_adv_swift_pair+7,contr
+	arg mem_le_scan_data,contw
+	arg 13,loopcnt
+	call memcpy
+
+	fetch 1,mem_le_scan_data
+	increase -1,pdata
+	store 1,mem_le_name_len
+
+	arg mem_le_scan_data+2,contr
+	arg mem_le_name_len+1,contw
+	arg 11,loopcnt
+	call memcpy
+
+	setarg 0x070007
+	store 3,mem_le_interval_min
+	setarg 0x002000
+	istore 3,contw
+	setarg 0x012c
+	istore 2,contw
+
+	setarg 0x181203
+	store 3,mem_le_adv_ind
+
+	setarg 0x0000ff
+	store 3,mem_le_adv_direct_ind
+
+	setsect 0,0xfb
+	setsect 1,0x2c212
+	setsect 2,0x800f
+	setsect 3,0x21
+	store 8,mem_local_rx_max_octets
+
+	jam 0x07,mem_le_adv_channel_map
+
+	setarg 0x0015
+	store 2,mem_le_keyboard_handle
+	setarg 0x0019
+	store 2,mem_le_notify_handle
+	setarg 0x001d
+	store 2,mem_le_multimedia_handle
+	setarg 0x0021
+	store 2,mem_le_systemctrl_handle
+	setarg 0x0030
+	store 2,mem_le_battery_level_handle
+	setarg 0x0022
+	store 2,mem_le_pairing_handle
+
+	jam 0x96,mem_le_battery_level_updata_timer_init
+
+// 24g
+	jam MODE_24G_DEVICE,mem_device_flag
+	call g24_enable_1M
+	call g24_pair_param_init
+	
+	setarg 0x604800
+	store 3,mem_24g_enter_hibernate
+	setarg 0x012c
+	store 2,mem_24g_long_sleep_param_update_timer_init
+	setarg 0x0050
+	store 2,mem_24g_transmit_by_interrupt_exit_count_init
+	setarg 0x05
+	store 2,mem_mouse_24g_power_on_fast_conn_timer	// 200ms
+	setarg 0x0708									//search dongle 3min
+	store 2,mem_mouse_24g_search_dongle_time_init
+
+	
+// sensor
+	setarg 0x010403
+	store 3,mem_mouse_dpi_seting
+	setarg 0x2a2002
+	istore 3,contw
+	setarg 0x22153f
+	istore 3,contw
+	setarg 0x114433
+	istore 3,contw
+
+	setarg 0x265a09
+	store 3,mem_sensor_3212_init
+	setarg 0x041934
+	istore 3,contw
+	setarg 0x0009
+	istore 2,contw
+	setarg 0xffff
+	istore 2,contw
+
+	setarg 0x0d5a09
+	store 3,mem_sensor_3205_init
+	setarg 0xed1d10
+	istore 3,contw
+	setarg 0x807d
+	istore 2,contw
+	setarg 0xffff
+	istore 2,contw
+
+	setarg 0xff5a09
+	store 3,mem_sensor_8650_init
+	setarg 0x40ab27
+	istore 3,contw
+	setarg 0x9b56b3
+	istore 3,contw
+	setarg 0x12a8e6
+	istore 3,contw
+	setarg 0xbec0a9
+	istore 3,contw
+	setarg 0xafa5e6
+	istore 3,contw
+	setarg 0xa121a0
+	istore 3,contw
+	setarg 0x10b802
+	istore 3,contw
+	setarg 0xa70bb9
+	istore 3,contw
+	setarg 0xd0b5ff
+	istore 3,contw
+	setarg 0xff00b6
+	istore 3,contw
+	setarg 0x000900
+	istore 3,contw
+	setarg 0xffff
+	istore 2,contw
+
+	setarg 0x0d5a09
+	store 3,mem_sensor_ka8ul_init
+	setarg 0xc50e10
+	istore 3,contw
+	setarg 0x109a5b
+	istore 3,contw
+	setarg 0x421138
+	istore 3,contw
+	setarg 0x412828
+	istore 3,contw
+	setarg 0x394923
+	istore 3,contw
+	setarg 0x4bb04a
+	istore 3,contw
+	setarg 0x904ca0
+	istore 3,contw
+	setarg 0x09704d
+	istore 3,contw
+	setarg 0xffff00
+	istore 3,contw
+
+	setarg 0x46a509
+	store 3,mem_sensor_ka8g2_init
+	setarg 0x101934
+	istore 3,contw
+	setarg 0x690760
+	istore 3,contw
+	setarg 0x207d04
+	istore 3,contw
+	setarg 0x09007e
+	istore 3,contw
+	setarg 0x220d00
+	istore 3,contw
+	setarg 0xff220e
+	istore 3,contw
+	jam 0xff,mem_sensor_ka8g2_init+21
+		
+	setarg 0x0b5a09
+	store 3,mem_sensor_poweron_init
+	setarg 0x0009f3
+	istore 3,contw
+	setarg 0xffff
+	istore 2,contw
+
+	//sys init
+	branch app_sys_param_init
+	
+
+mouse_param_init:
+	setarg MOUSE_BT_SDP_ADDR				//bt sdp start address
+	store 2,mem_ui_uuid_table
+	setarg MOUSE_BLE_ATT_LIST_ADDR				//ble attlist start address
+	store 2,mem_ui_le_uuid_table
+	setarg 0x2580
+	store 3,mem_class
+	jam 3,mem_lpm_mult_timeout
+	jam 8,mem_lpm_overhead
+	jam DPI_BUTTON_STATE_UP,mem_select_device_button_statue
+	jam PB_BUTTON_STATE_UP,mem_select_device_button_statue
+	jam COMMBINATION_KEY_STATE_UP,mem_commbination_key_statue	
+	setarg 0x0200
+	store 2,mem_lpm_interval
+	jam 0x17,mem_le_local_mtu
+	jam 0x17,mem_le_remote_mtu
+//===========init spi param==============================
+	setarg 0x0a77
+	store 2,mem_spi_init_clk
+//===========all 16bit uuid==================================
+	setsect 0,0x306
+	setsect 1,0x4440
+	setsect 2,0x10000
+	setsect 3,0x4408
+	store 9,mem_all_uuid_16bits
+	setsect 0,0x1224
+	setsect 1,0x4000
+	setsect 2,0x0
+	istore 5,contw
+//===========features=====================================
+	setsect 0,0x3ffff
+	setsect 1,0x2fe23
+	setsect 2,0x199d9
+	setsect 3,0x20d
+	store 8,mem_features
+//======================================================	
+	setarg mem_le_tx_buffer0_omemalloc
+	store 2,mem_ble_l2cap_tx_buff0_ptr
+	setarg MOUSE_BLE_L2CAP_TXBUFF_SIZE
+	store 2,mem_ble_l2cap_tx_buff_size_ptr
+	
+	call mouse_device_led_all_off
+	call mouse_device_poweron_timer_init
+	call mouse_adc_gpio_mux_init
+
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	bbit0 MOUSE_ENABLE_BT_125Hz,mouse_param_init_intervl_end
+	jam CLASSIC_INTERVAL_7_5MS,mem_sniff_param_interval
+	setarg LE_INTERVAL_7_5MS
+	store 2,mem_le_interval_min
+	store 2,mem_le_interval_min+2
+mouse_param_init_intervl_end:
+	call g24_interval_param_8ms
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	bbit0 MOUSE_ENABLE_24G_250Hz,mouse_24g_short_sleep_set_end
+	call g24_interval_param_4ms
+mouse_24g_short_sleep_set_end:
+	fetch 1,mem_device_flag
+	store 1,mem_device_flag_temp
+	fetch 3,mem_le_lap+3
+	store 3,mem_mouse_le_lap_temp
+	fetch 1,mem_adc_config_flag_init
+	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
+	branch mouse_sensor_set_angle
+
+
+mouse_start_work:
+	bpatch patch18_3,mem_patch18
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	bbit1 MOUSE_ENABLE_24G_FIRST_AUTO_PAIRING, mouse_24g_first_start_auto_pair_mode
+	fetch 1,mem_device_flag
+	beq MODE_24G_DEVICE,mouse_24g_start_mode
+	call mouse_wakeup_from_power_check	// wake from hibernate :enble user
+	nbranch mouse_buletooth_fast_conn_init,user
+mouse_start_reconnect_device:
+	bpatch patch18_4,mem_patch18
+	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_3_MODE,mouse3_0_check_reconn_target
+	beq REC_4_MODE,mouse4_0_check_reconn_target
+	branch mouse_start_discovery
+
+
+mouse_wakeup_from_power_check:
+	bpatch patch18_5,mem_patch18
+	disable user
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	bbit0 MOUSE_ENABLE_WAKEUP_FROM_POWER,mouse_wakeup_from_power
+	fetch 1,mem_wakup_from_power_flag
+	bbit0 BIT_POWER_ON,mouse_wakeup_from_power
+	enable user		// mouse power on
+mouse_wakeup_from_power:
+	fetch 1,mem_reconn_times_init
+	store 1,mem_reconn_times
+	rtn
+
+
+mouse3_0_check_reconn_target:
+	fetcht 2,mem_mouse_fast_page_to
+	fetch 1,mem_mouse_bluetooth_fast_conn_flag
+	beq 0xff,mouse3_0_check_reconn_target_next
+	fetcht 2,mem_mouse_page_to
+mouse3_0_check_reconn_target_next:	
+	storet 2,mem_page_to
+	fetch 6,mem_hci_plap
+	branch app_bt_start_discovery_short,blank
+	jam 0x17,mem_app_connection_options  //ssp
+	fetch 1,mem_ssp_enable
+	nbranch app_bt_start_reconnect,blank
+	jam 0x04,mem_app_connection_options  //no ssp
+	branch app_bt_start_reconnect
+	
+mouse4_0_check_reconn_target:
+	jam 1,mem_mouse_le_reconnect_flag
+	fetcht 1,mem_mouse_fast_direct_timeout
+	fetch 1,mem_mouse_bluetooth_fast_conn_flag
+	beq 0xff,mouse4_0_check_reconn_target_next
+	fetcht 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 2,mem_sdp_remote_cid
+	nbranch app_get_lpm_wake_lock,blank
+	fetch 1,mem_mouse_wheel_trigger
+	nbranch app_get_lpm_wake_lock,blank
+	branch app_put_lpm_wake_lock
+
+mouse_delay_enter_hibernata:
+	fetch 1,mem_mouse_direct_timeout
+	store 1,mem_mouse_bluetooth_reconnect_timeout
+	rtn
+
+
+mouse_app_enter_hibernate:
+	bpatch patch18_6,mem_patch18
+	call mouse_sensor_reset
+	call mouse_sensor_powerdown
+	branch app_enter_hibernate
+
+	
+mouse_before_hibernate:
+	bpatch patch18_7,mem_patch18
+	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 patch19_0,mem_patch19
+	call mouse_set_sdio_high
+	call clear_wake
+	call mouse_lpm_before_common
+	call mouse_gpio_pu_idle
+	fetcht 1,mem_mouse_reuse_2ice_gpio
+	call mouse_gpio_config_input_pu
+	branch mouse_gpio_set_high_impedance
+
+//set all unused gpio to pull up mode to save power	
+mouse_gpio_pu_idle:
+	arg core_gpio_conf,contr
+	arg 19,loopcnt
+mouse_gpio_pu_idle_loop:
+	ifetch 1,contr
+	nbranch mouse_gpio_pu_idle_configured,blank
+	setarg 0x40
+	add contr,-1,contw
+	istore 1,contw
+mouse_gpio_pu_idle_configured:
+	loop mouse_gpio_pu_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 patch19_1,mem_patch19
+	
+	call mouse_wheel_check
+	fetch 1,mem_mouse_sensor_sclk_gpio		//set sdio high
+ 	arg gpcfg_output_high,temp
+ 	call gpio_config_function_int	
+	call twspi_disable
+	
+	fetcht 1,mem_lbutton_gpio
+	call gpio_set_wake
+	fetcht 1,mem_rbutton_gpio
+	call gpio_set_wake
+	fetcht 1,mem_mbutton_gpio
+	call gpio_set_wake
+
+	fetcht 1,mem_bk_button_gpio
+	call gpio_set_wake
+	fetcht 1,mem_fw_button_gpio
+	call gpio_set_wake
+	fetcht 1,mem_dpi_button_gpio
+	call gpio_set_wake
+	fetcht 1,mem_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
+	fetch 2,mem_ui_state_map
+	bbit1 UI_STATE_BT_CONNECTED,mouse_set_bt_mult
+	rtn
+mouse_set_ble_mult:
+	copy rega,pdata
+	nbranch le_set_config_short_mult,blank
+	branch le_clr_config_short_mult
+mouse_set_bt_mult:
+	copy rega,pdata
+	nbranch classic_bt_set_mult_short_flag,blank
+	branch classic_bt_clr_mult_short_flag
+
+/*****************system clk***********************************/
+	
+	
+/****************************adc**************************************/	
+mouse_adc_gpio_set:
+	fetch 1,mem_adc_config_flag
+	rtnne ADC_CONFIG_GPIO
+mouse_adc_gpio_check_output:
+	bpatch patch19_2,mem_patch19
+	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,mouse_adc_gpio_vol_init
+	beq ADC_CONFIG_VINLPM,mouse_adc_gpio_vinlpm_init
+	jam ADC_CONFIG_VINLPM,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,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,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,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 patch19_3,mem_patch19
+	fetch 1,mem_24g_device_led_status
+	nrtn blank
+	jam 0,mem_adc_read_timer
+	call enable_adc
+	call vdd_calculate_by_mode
+	store 2,mem_mouse_vdd_now_vol
+	fetch 1,mem_adc_config_flag
+	bne ADC_CONFIG_GPIO, 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 patch19_4,mem_patch19
+	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
+	branch mouse_adc_bat_percent_lowpower_out_battery
+
+
+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,mouse_adc_bat_percent_lowpower_out_gpio_multiple
+	branch mouse_adc_bat_percent_lowpower_out_battery
+	
+
+mouse_adc_set_button_press_flag:
+	fetcht 1,mem_adc_power_flag
+	set1 2,temp
+	storet 1,mem_adc_power_flag
+	rtn	
+
+mouse_adc_clear_button_press_flag:
+	fetcht 1,mem_adc_power_flag
+	set0 2,temp
+	storet 1,mem_adc_power_flag
+	rtn		
+
+mouse_adc_button_press:
+	jam 1,mem_mouse_adc_button_press_flag
+	rtn
+
+mouse_power_down:
+	call mouse_device_led_all_off
+	branch mouse_app_enter_hibernate
+	
+/****************************adc**************************************/	
+
+/****************************gpio******************************************/
+mouse_gpio_init:
+	fetcht 1,mem_eeprom_wp_gpio
+	call gpio_config_output
+	call usb_offline_check_init
+	fetcht 1,mem_lbutton_gpio
+	call mouse_gpio_config_input_pu
+	fetcht 1,mem_rbutton_gpio
+	call mouse_gpio_config_input_pu
+	fetcht 1,mem_mbutton_gpio
+	call mouse_gpio_config_input_pu
+	fetcht 1,mem_bk_button_gpio
+	call mouse_gpio_config_input_pu
+	fetcht 1,mem_fw_button_gpio
+	call mouse_gpio_config_input_pu
+	fetcht 1,mem_dpi_button_gpio
+	call mouse_gpio_config_input_pu
+
+	fetcht 1,mem_matrix_public_gpio
+	call mouse_gpio_config_input_pu
+
+	fetcht 1,mem_config_select_device_button_gpio
+	call mouse_gpio_config_input_pu
+
+	fetcht 1,mem_customer_key_gpio
+	call mouse_gpio_config_input_pu
+
+	fetcht 1,mem_whee_a_data_gpio
+	call mouse_gpio_config_input_pu
+
+	fetcht 1,mem_whee_b_data_gpio
+	call mouse_gpio_config_input_pu
+
+	fetcht 1,mem_whee_ta_data_gpio
+	call mouse_gpio_config_input_pu
+	fetcht 1,mem_whee_tb_data_gpio
+	call mouse_gpio_config_input_pu
+
+	fetcht 1,mem_sensor_motion_gpio
+	call mouse_gpio_config_input_pu
+
+	fetcht 1,mem_device_switch_gpio
+	call mouse_gpio_config_input_pu
+	
+	fetcht 1,mem_config_low_voltage_alarm_gpio
+	call gpio_config_output
+
+	fetcht 1,mem_config_device_24g_led_gpio
+	call gpio_config_output
+
+	fetcht 1,mem_config_device_bt1_led_gpio
+	call gpio_config_output
+	
+	fetcht 1,mem_config_device_bt2_led_gpio
+	call gpio_config_output
+
+	fetcht 1,mem_dpi_led_gpio
+	call gpio_config_output
+
+	fetcht 1,mem_select_sensor_angle_gpio
+	branch mouse_gpio_config_input_pu
+
+
+mouse_gpio_set_pupd_by_input:
+	sub temp,UI_BUTTON_GPIO_DISABLE,null
+	rtn zero
+	and temp,0x7f,queue
+	fetch 4,core_gpio_in
+	qisolate1 pdata
+	branch mouse_gpio_config_input_pu,true
+	branch mouse_gpio_config_input_pd
+
+	
+mouse_gpio_config_input_pd:
+	set1 gpio_active_bit,temp
+	branch gpio_config_input
+
+mouse_gpio_config_input_pu:
+	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 20,loopcnt
+	arg 0,temp
+mouse_gpio_set_high_impedance_bit_loop:	
+	fetch 3,mem_pdatatemp
+	isolate1 0,pdata
+	call gpio_set_high_impedance,true
+	fetch 3,mem_pdatatemp
+	lshift pdata,pdata
+	store 3,mem_pdatatemp
+	increase 1,temp
+	loop mouse_gpio_set_high_impedance_bit_loop
+	rtn
+
+
+
+/****************************gpio******************************************/
+
+/*******************spi*****************************/
+mouse_sensor_spi_init:
+	call mouse_spid_init_pin
+	jam 0x73,mem_spi_init_clk
+//	jam 0x1e,mem_spi_init_delay_time
+	call mouse_spi_init
+	branch twspi_enable
+	
+mouse_spi_write_flash_cb:
+mouse_spi_init:
+	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 patch19_5,mem_patch19
+	disable user
+	setarg 0
+	store 6,mem_mouse_x
+	call mouse_check_sensor_data
+	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
+mouse_dpi_check_next:
+	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_check_connect_adc:
+	fetch 1,mem_mouse_adc_button_press_flag
+	branch mouse_dpi_up,blank
+	branch mouse_dpi_down
+	
+mouse_dpi_key_check:
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	bbit1 MOUSE_ENABLE_DPI_KEY_CONNECT_GND,mouse_dpi_key_connect_gnd
+	fetch 1,mem_mouse_dpikey_press_status
+	copy pdata,regc
+	fetch 1,mem_matrix_public_gpio
+	beq GPIO_DISABLE,mouse_3io6key_check
+mouse_dpi_key_check_next:
+	fetch 1,mem_mouse_ghost_flag
+	nbranch mouse_dpi_check_end,blank
+	branch mouse_dpi_key_connect_matrix	
+
+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_key_connect_matrix:
+	call gpio_get_bit
+	fetcht 1,mem_matrix_public_gpio
+	branch mouse_dpi_key_connect_gnd,true
+	fetcht 1,mem_matrix_public_gpio
+	call gpio_out_active
+	fetcht 1,mem_dpi_button_gpio
+	fetch 1,mem_mouse_dpikey_press_status
+	branch mouse_check_key_connect_gnd
+
+
+mouse_dpi_down:
+	fetch 1,mem_mouse_dpi_button_state
+	rtneq DPI_BUTTON_STATE_DOWN
+	jam DPI_BUTTON_STATE_DOWN,mem_mouse_dpi_button_state
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	rtnbit1 MOUSE_ENABLE_SELECT_DEVICE_BY_DPI_BUTTON
+	rtnbit1 MOUSE_ENABLE_DPI_KEY_LONG_PRESS_DISCONVERY
+	branch mouse_dpi_process
+
+mouse_dpi_up:
+	fetch 1,mem_mouse_dpi_button_state
+	rtneq DPI_BUTTON_STATE_UP
+	jam DPI_BUTTON_STATE_UP,mem_mouse_dpi_button_state
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	bbit1 MOUSE_ENABLE_SELECT_DEVICE_BY_DPI_BUTTON,mouse_dpi_up_next
+	bbit1 MOUSE_ENABLE_DPI_KEY_LONG_PRESS_DISCONVERY,mouse_dpi_up_next
+	rtn
+mouse_dpi_up_next:	
+	fetch 1,mem_mouse_dpi_long_press_flag
+	nbranch mouse_dpi_up_after_long_press,blank
+	fetch 1,mem_select_device_count
+	ncall mouse_dpi_process,blank
+mouse_dpi_up_after_long_press:	
+	jam 0,mem_mouse_dpi_long_press_flag
+	fetch 1,mem_ui_button_timeout
+	store 1,mem_select_device_count	
+	store 1,mem_bt_discovery_count	
+	rtn
+	
+mouse_dpi_process:	
+	bpatch patch19_6,mem_patch19
+	call mouse_dpi_ghost_check
+	rtn user
+	fetch 1,mem_mouse_dpi
+	increase 1,pdata
+	and pdata,0x03,pdata
+	store 1,mem_mouse_dpi
+	call mouse_seting_dpi
+	branch mouse_store_device_info_delay
+
+mouse_dpi_ghost_check:
+	disable user
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	rtnbit1 MOUSE_ENABLE_DPI_KEY_CONNECT_GND
+	rtnbit1 MOUSE_ENABLE_DPI_KEY_CONNECT_ADC
+	fetch 1,mem_mouse_lkey_press_status
+	rtn blank
+	fetch 1,mem_mouse_rkey_press_status
+	rtn blank
+	enable user
+	rtn
+	
+
+mouse_dpi_key_check_long_press:
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	bbit1 MOUSE_ENABLE_SELECT_DEVICE_BY_DPI_BUTTON,mouse_select_device_by_dpi_button
+	bbit1 MOUSE_ENABLE_DPI_KEY_LONG_PRESS_DISCONVERY,mouse_discovery_by_dpi_button
+	rtn
+
+
+mouse_select_device_by_dpi_button:
+	fetch 1,mem_mouse_dpi_button_state
+	rtnne DPI_BUTTON_STATE_DOWN	
+	arg mem_select_device_count,regc
+	arg mouse_ready_reconnection_by_dpi_button,regb
+	branch timer_single_step
+
+mouse_ready_reconnection_by_dpi_button:
+	jam 1,mem_mouse_dpi_long_press_flag
+	branch mouse_ready_reconnection_by_button
+
+mouse_discovery_by_dpi_button:
+	fetch 1,mem_mouse_dpi_button_state
+	rtnne DPI_BUTTON_STATE_DOWN	
+	arg mem_bt_discovery_count,regc
+	arg mouse_long_dpi_button_bt_discovery,regb
+	branch timer_single_step
+
+mouse_long_dpi_button_bt_discovery:
+	jam 1,mem_mouse_dpi_long_press_flag
+	branch mouse_long_button_bt_discovery
+
+
+
+mouse_dpi_config:
+	branch mouse_seting_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_seting_dpi:
+	bpatch patch19_7,mem_patch19
+	call mouse_setting_dpi_4_level
+	call mouse_dpi_led_blink_delay
+mouse_seting_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
+	branch mouse_dpi_store
+
+mouse_dpi_store:
+	fetch 1,mem_config_sensor_type
+	beq P3065_XY,mouse_3065xy_set_dpi
+	beq MX8650,mouse_3065xy_set_dpi
+	beq KA8,mouse_ka8_set_dpi
+	beq P6520,mouse_ka8_set_dpi
+	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_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 patch1a_0,mem_patch1a
+	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
+mouse_check_key_gpio_next:
+	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:
+	jam MOUSE_L_KEY,mem_mouse_key_temp
+	fetcht 1,mem_lbutton_gpio
+	fetch 1,mem_mouse_lkey_press_status
+	call mouse_check_key_connect_gnd
+	store 1,mem_mouse_lkey_press_status
+	rtn
+
+mouse_check_rkey_gpio:
+	jam MOUSE_R_KEY,mem_mouse_key_temp
+	fetcht 1,mem_rbutton_gpio
+	fetch 1,mem_mouse_rkey_press_status
+	call mouse_check_key_connect_gnd
+	store 1,mem_mouse_rkey_press_status
+	rtn
+	
+mouse_check_mkey_gpio:
+	jam MOUSE_M_KEY,mem_mouse_key_temp
+	fetcht 1,mem_mbutton_gpio
+	fetch 1,mem_mouse_mkey_press_status
+	call mouse_check_key_connect_gnd
+	store 1,mem_mouse_mkey_press_status
+	rtn
+
+mouse_check_bkkey_gpio:
+	fetch 1,mem_bk_button_gpio
+	rtneq GPIO_DISABLE
+	jam MOUSE_BK_KEY,mem_mouse_key_temp
+	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
+mouse_check_bkkey_gpio_next:
+	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:
+	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
+mouse_check_fwkey_gpio_next:
+	call gpio_get_bit
+	branch mouse_check_fw_button_connect_gnd,true
+	fetcht 1,mem_matrix_public_gpio
+	call gpio_out_active
+	fetcht 1,mem_fw_button_gpio
+	fetch 1,mem_mouse_fwkey_press_status
+	call mouse_check_key_connect_gnd
+mouse_check_fwkey_gpio_end:	
+	store 1,mem_mouse_fwkey_press_status
+	branch mouse_matrix_public_gpio_reset
+
+mouse_check_fw_button_connect_gnd:
+	fetcht 1,mem_matrix_public_gpio
+	fetch 1,mem_mouse_fwkey_press_status
+	call mouse_check_key_connect_gnd
+	branch mouse_check_fwkey_gpio_end	
+
+mouse_3io6key_fw_check:
+	call mouse_3io6key_check
+	store 1,mem_mouse_fwkey_press_status
+	fetcht 1,mem_fw_button_gpio
+	branch mouse_gpio_config_input_pu
+
+
+mouse_matrix_public_gpio_reset:	
+	fetcht 1,mem_matrix_public_gpio
+	branch mouse_gpio_config_input_pu
+
+mouse_check_customerkey_gpio:
+	jam 0,mem_customer_key
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	rtnbit0 MOUSE_ENABLE_KEYBOARD
+	fetch 1,mem_customer_key_gpio
+	rtneq GPIO_DISABLE
+	jam MOUSE_CUSTOMER_KEY,mem_mouse_key_temp
+	fetcht 1,mem_customer_key_gpio
+	fetch 1,mem_mouse_customerkey_press_status
+	call mouse_check_key_connect_gnd
+	store 1,mem_mouse_customerkey_press_status
+	copy rega,pdata
+	bbit1 MOUSE_CUSTOMER_KEY,mouse_customerkey_press
+	call mouse_customerkey_release
+mouse_check_customerkey_gpio_exit:
+	fetch 1,mem_customer_data_trigger
+	store 1,mem_customer_data_trigger_last
+	rtn
+
+
+mouse_customerkey_press:
+	jam 1,mem_customer_data_trigger
+	call mouse_customer_key_need_send
+	branch mouse_check_customerkey_gpio_exit
+
+mouse_customerkey_release:
+	jam 0,mem_customer_data_trigger
+	fetch 1,mem_customer_data_trigger_last
+	rtn blank
+mouse_customer_key_need_send:	
+	jam 1,mem_customer_key
+	rtn	
+
+
+mouse_check_matrix_button_connect_gnd:	
+	call gpio_get_bit
+	fetcht 1,mem_mouse_key_temp
+	copy temp,queue	
+	branch  mouse_key_press,true
+	branch mouse_key_release
+
+mouse_check_key_connect_gnd:	
+	lshift pdata,pdata
+	copy pdata,regb
+	call gpio_get_bit
+	setflag true,0,regb
+	and regb,0x07,pdata
+	fetcht 1,mem_mouse_key_temp
+	copy temp,queue
+	beq 0x07,mouse_key_press		//  about 17~22ms three times
+	beq 0x00,mouse_key_release
+	rtn
+
+mouse_key_release:
+	qset0 rega
+	rtn		
+
+mouse_key_press:
+	qset1 rega
+	rtn
+
+mouse_3io6key_check:
+	bpatch patch1a_1,mem_patch1a
+	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+4
+
+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
+	
+/*************************key***************************************/
+
+/**********************sensor******************************/	
+mouse_init_sunt:
+	bpatch patch1a_2,mem_patch1a
+	call mouse_sensor_spi_init
+	rtn wake
+mouse_init_sensor_wakeup:	
+	call mouse_sensor_poweron
+mouse_init_sensor:
+	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:
+	fetch 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
+	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_wr_seq:
+	ifetch 2,regc
+	arg 0xffff,temp
+	isub temp,null
+	rtn zero
+	call twspi_write
+	increase 2,regc
+	branch mouse_sensor_wr_seq
+
+mouse_sensor_reset:
+	setarg 0x8006		// reset to factory settings
+mouse_sensor_reset_end:
+	call twspi_write
+	nop 12000
+	rtn
+	
+mouse_sensor_poweron:
+	bpatch patch1a_3,mem_patch1a
+	call mouse_sensor_spi_init
+mouse_sensor_poweron_next:
+	call mouse_sensor_reset
+	arg mem_sensor_poweron_init,regc
+mouse_sensor_poweron_end:
+	call mouse_sensor_wr_seq
+	branch mouse_dpi_config
+
+mouse_sensor_powerdown:
+	call mouse_init_sunt
+	call mouse_sensor_spi_init
+mouse_sensor_powerdown_end:
+	setarg 0x0806
+	branch twspi_write
+/*********sensor init*************/	
+
+
+
+/*********sensor motion*************/
+mouse_check_sensor_data:
+	fetch 1,mem_spi_write_flash_sm
+	rtnne FLASH_SM_NO_BUYS
+	fetch 1,mem_config_sensor_type
+	beq P3205,mouse_p32xx_sensor_motion
+	beq P3065,mouse_p32xx_sensor_motion
+	beq KA8,mouse_p32xx_sensor_motion
+	beq P3204,mouse_p32xx_sensor_motion
+	beq P3212,mouse_p3212_sensor_motion
+	beq 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
+mouse_set_sensor_angle:
+	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_sensor_set_angle:
+	fetch 1,mem_sensor_angle_default
+	store 1,mem_config_sensor_angle
+	fetch 1,mem_select_sensor_angle_gpio
+	rtneq GPIO_DISABLE
+	fetcht 1,mem_select_sensor_angle_gpio
+	call mouse_gpio_config_input_pu
+	fetcht 1,mem_select_sensor_angle_gpio
+	call gpio_get_bit
+	call mouse_sensor_switch_angle,true
+	branch mouse_gpio_config_input_pd
+mouse_sensor_switch_angle:
+	fetch 1,mem_sensor_angle_switch
+	store 1,mem_config_sensor_angle
+	rtn
+	
+mouse_motion_6clk_direction_dispose:
+	fetch 2,mem_mouse_x
+	sub pdata,0,pdata
+	store 2,mem_mouse_x
+	branch enable_user
+mouse_motion_12clk_direction_dispose:
+	fetch 2,mem_mouse_y
+	sub pdata,0,pdata
+	store 2,mem_mouse_y
+	branch enable_user
+mouse_motion_9clk_direction_dispose:
+	fetch 2,mem_mouse_y
+	sub pdata,0,pdata
+	store 2,mem_mouse_y
+	fetch 2,mem_mouse_x
+	sub pdata,0,pdata
+	store 2,mem_mouse_x
+	call mouse_sensor_data_swap_places
+	branch enable_user
+mouse_motion_3clk_direction_dispose:
+	call mouse_sensor_data_swap_places
+	branch enable_user
+
+mouse_sensor_data_swap_places:
+	fetch 2, mem_mouse_y
+	fetcht 2,mem_mouse_x
+	store 2,mem_mouse_x
+	storet 2,mem_mouse_y
+	rtn
+
+	
+mouse_clear_sensor_data:
+	fetch 1,mem_mouse_move_flag
+	call mouse_read_sensor_common,blank
+	jam 1,mem_mouse_move_flag
+	rtn
+
+mouse_clear_sensor_data_by_reset:
+	jam 1,mem_mouse_clear_sensor_data_flag
+	call le_set_config_more_data
+mouse_init_sensor_reset:
+	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_buletooth_fast_conn_init:
+	jam 0xff,mem_mouse_bluetooth_fast_conn_flag
+	fetch 1,mem_mouse_bluetooth_type
+	bbit1 MODE_4_MOUSE,mouse_ble_fast_conn_init
+	bbit1 MODE_3_MOUSE,mouse_bt_fast_conn_init
+mouse_ble_fast_conn_init:	
+	jam 0x34,mem_xrecord_mode
+	setarg 0x0f0f0f
+	store 3,mem_le_lap
+	store 3,mem_le_lap+3
+	branch mouse_start_reconnect
+
+mouse_bt_fast_conn_init:
+	jam 0x33,mem_xrecord_mode
+	arg mem_mouse_compare_addr_ff,contr
+	call mouse_load_bt_device
+	branch mouse_start_reconnect
+
+mouse_buletooth_fast_conn_end:
+	bpatch patch1a_4,mem_patch1a
+	call mouse_select_reconn_device
+	call mouse_bluetooth_fast_conn_disable
+	fetch 1,mem_device_flag
+	beq MODE_BT_DEVICE1,mouse_device1_check_auto_discover
+	beq MODE_BT_DEVICE2,mouse_device2_check_auto_discover
+	rtn
+mouse_device1_check_auto_discover:
+	fetch 6,mem_device1_addr
+	branch mouse_device_check_auto_discover
+mouse_device2_check_auto_discover:
+	fetch 6,mem_device2_addr
+mouse_device_check_auto_discover:	
+	fetcht 6,mem_mouse_compare_addr_ff
+	isub temp,null
+	branch mouse_start_discovery ,zero
+	branch mouse_start_reconnect_device
+
+mouse_bt_fast_conn_send_device_name:
+	call mouse_bluetooth_fast_conn_disable
+	fetch 1,mem_local_name_length
+	increase 3,pdata
+	copy pdata,rega
+	call hid_malloc_tx_buff
+	fetch 2,mem_hid_int_remote_cid
+	istore 2,contw
+	setarg 0x04a1		// report id = 4
+	istore 2,contw
+	fetch 1,mem_local_name_length
+	increase 1,pdata
+	copy pdata,loopcnt
+	arg mem_local_name_length,contr
+	branch memcpy
+
+mouse_bluetooth_fast_conn_disable:
+	jam 0x5a,mem_mouse_bluetooth_fast_conn_flag
+	rtn	
+/*******************mouse fast connect******************/
+
+mouse_stop_bluetooth_mode:
+	fetch 2,mem_ui_state_map
+	bbit1 UI_STATE_BT_RECONNECT,mouse_cancel_reconnect
+	bbit1 UI_STATE_BLE_CONNECTED,app_ble_disconnect
+	bbit1 UI_STATE_BT_CONNECTED,app_bt_disconnect
+	branch mouse_stop_discovery
+
+mouse_disconnect:
+	setarg 0
+	store 2,mem_mouse_no_data_timer
+	fetch 2,mem_ui_state_map
+	bbit1 UI_STATE_BLE_CONNECTED,app_ble_disconnect
+	fetch 2,mem_ui_state_map
+	bbit1 UI_STATE_BT_CONNECTED,app_bt_disconnect
+	rtn
+	
+mouse_cancel_reconnect:
+	call mouse_bt_cannel_reconn_enable
+	branch check_51cmd_bb_reconn_cancel
+
+mouse_check_125Hz:
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	rtnbit0 MOUSE_ENABLE_BT_125Hz
+mouse_bluetooth_125Hz:
+	nbranch mouse_bluetooth_125hz_clear,user
+	fetch 1,mem_bluetooth_125hz_cnt
+	increase 1,pdata
+	and_into 0x0f,pdata
+	store 1,mem_bluetooth_125hz_cnt
+	nrtn blank
+mouse_bluetooth_125hz_clear:
+	jam 0,mem_bluetooth_125hz_cnt
+	disable user
+	rtn
+
+
+mouse_current_mult_update:
+	fetch 1,mem_sensor_motion_gpio
+	rtnne GPIO_DISABLE
+	jam 0,mem_lpm_mult
+	jam 30,mem_mouse_current_mult_timer
+	rtn
+
+
+mouse_priority_bb_event:	
+	bpatch patch1a_5,mem_patch1a
+	copy regc,pdata
+	beq BT_EVT_LE_CONNECTED,mouse_le_bb_event_connected
+	beq BT_EVT_BB_CONNECTED,mouse_bb_event_connected
+	beq BT_EVT_LE_DISCONNECTED,mouse_le_bb_disconnected
+	beq BT_EVT_BB_DISCONNECTED,mouse_bb_disconnected
+	beq BT_EVT_SETUP_COMPLETE,mouse_bt_event_setup_complete
+	beq BT_EVT_BUTTON_LONG_PRESSED,mouse_bb_event_discovery_btn
+	beq BT_EVT_HID_HANDSHAKE,mouse_bt_hid_handshake
+	beq BT_EVT_HID_CONNECTED,app_hid_connected
+	beq BT_EVT_RECONN_FAILED,mouse_bb_event_reconn_failed
+	beq BT_EVT_RECONN_PAGE_TIMEOUT,mouse_bb_event_reconn_timeout
+	beq BT_EVT_SWITCH_NOT_ACCEPT,app_bt_role_switch	
+	beq BT_EVT_SWITCH_SUCCESS_MASTER,mouse_enter_sniff_check
+	beq BT_EVT_SNIFF_NOT_ACCEPT,mouse_sniff_not_accept
+	beq BT_EVT_PINCODE_REQ,mouse_bb_event_pincode
+	beq BT_EVT_REMOTE_UNSNIFF,app_start_auto_sniff
+	beq BT_EVT_LE_PAIRING_SUCCESS,mouse_le_pairing_success
+	beq BT_EVT_LE_ENC_INFO,mouse_le_enc_info
+	beq BT_EVT_LE_START_ENC,mouse_le_ll_start_encryt
+	beq BT_EVT_LE_PAIRING_COMPLETE,mouse_le_pairing_complete
+	beq BT_EVT_LE_PARSE_CONN_PAPA_UPDATE_RSP,mouse_le_conn_param_update_rsp_recieved
+	beq BT_EVT_VIRTUAL_CABLE_UNPLUG,mouse_irtual_cable_unplug
+	beq BT_EVT_24G_PAIRING_COMPLETE,mouse_24g_pairing_complete
+	beq BT_EVT_24G_ATTEMPT_FAIL,mouse_24g_attempt_fail
+	beq BT_EVT_24G_ATTEMPT_SUCCESS,mouse_24g_attempt_success
+	beq BT_EVT_LE_PARSE_CONN_PARAM_ACCEPTED,mouse_le_parse_conn_param_accepted
+	rtn
+
+/***************************le*************************/
+mouse_le_bb_event_connected:
+	jam 0,mem_mouse_long_mult_flag
+	call mouse_init_sensor_reset
+	jam 1,mem_mouse_le_bb_connected_flag
+	call mouse_24g_first_store_reconn_info
+	fetch 1,mem_mouse_le_reconnect_flag
+	nbranch mouse_le_bb_event_connected_next,blank
+	jam 0x14,mem_mouse_send_secutiry_request_timer
+mouse_le_bb_event_connected_next:
+	fetch APP_DISC_RSN_SIZE,mem_app_disconn_reason_flag
+	set0 APP_DISC_BY_BUTTON ,pdata
+	store APP_DISC_RSN_SIZE,mem_app_disconn_reason_flag
+	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:
+	jam 0,mem_mouse_le_bb_connected_flag
+	setarg LE_INTERVAL_7_5MS
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	bbit1 MOUSE_ENABLE_BT_125Hz,mouse_le_bb_disconnected_next
+	setarg LE_INTERVAL_8_75MS
+mouse_le_bb_disconnected_next:	
+	store 2,mem_le_interval_min
+	store 2,mem_le_interval_min+2
+	jam LE_LPM_ENABLE,mem_mouse_le_conn_param_reject
+	jam 0,mem_mouse_clear_sensor_data_flag
+	call le_clr_config_more_data
+	branch mouse_bb_disconnected
+
+mouse_le_pairing_success:
+	arg LL_PAIRING_SUCCESS_FLAG,queue
+	branch mouse_le_enable_connect_flag
+
+mouse_le_enc_info:
+mouse_updata_le_param:
+	jam BT_CMD_LE_UPDATE_CONN,mem_fifo_temp
+	branch ui_ipc_send_cmd
+	
+mouse_le_ll_start_encryt:
+	fetch 1,mem_mouse_le_reconnect_flag
+	beq 1,mouse_le_ll_reconn_start_encryt
+	branch mouse_le_ll_enable_start_enc_flag
+mouse_le_ll_reconn_start_encryt:
+	call mouse_updata_le_param
+	jam 20,mem_le_start_encrypt_timer
+mouse_le_ll_enable_start_enc_flag:
+	arg LL_START_ENC_FLAG,queue
+	branch mouse_le_enable_connect_flag
+
+mouse_le_enable_connect_flag:
+	fetch 1,mem_le_connect_status_flag
+	qset1 pdata
+	store 1,mem_le_connect_status_flag
+	rtn
+
+mouse_le_pairing_complete:
+	branch app_ble_store_reconn_info
+
+mouse_le_conn_param_update_rsp_recieved:
+	fetch 2,mem_le_l2cap_signaling_conn_param_update_rsp_result
+	rtneq BLE_SIGNALING_CONNECT_PARAMETER_UPDATE_ACCEPTED
+	fetch 1,mem_le_tsniff
+	rshift2 pdata,pdata
+	sub pdata,LE_INTERVAL_15MS,null
+	rtn positive
+	setarg LE_INTERVAL_11_25MS
+	store 2,mem_le_interval_min
+	store 2,mem_le_interval_min+2
+	call mouse_updata_le_param
+mouse_le_conn_param_lpm_disable:
+	jam LE_LPM_DISABLE,mem_mouse_le_conn_param_reject
+	rtn
+
+mouse_le_conn_param_lpm_enable:
+	jam LE_LPM_ENABLE,mem_mouse_le_conn_param_reject
+	rtn
+
+mouse_le_bb_event_connect_complete:
+	fetch 1,mem_mouse_le_reconnect_flag
+	nrtn blank
+	fetch 1,mem_le_att_handle
+	sub pdata,34,pdata
+	nrtn zero
+	jam 0,mem_le_start_encrypt_timer
+mouse_le_write_enable:	
+	arg WRITE_REQ_ENABLE_FLAG,queue
+	branch mouse_le_enable_connect_flag
+
+mouse_le_parse_conn_param_accepted:
+	fetch 1,mem_le_new_conninterval
+	sub pdata,LE_INTERVAL_15MS,null
+	nbranch mouse_le_conn_param_lpm_disable,positive
+	fetch 1,mem_le_new_connslavelatency
+	fetcht 1,mem_lpm_mult_init
+	isub temp,null
+	branch mouse_le_lpm_mult_reinit,positive
+	fetch 1,mem_le_new_connslavelatency
+	store 1,mem_lpm_mult
+	branch mouse_le_conn_param_lpm_enable
+mouse_le_lpm_mult_reinit:
+	fetch 1,mem_lpm_mult_init
+	store 1,mem_lpm_mult
+	branch mouse_le_conn_param_lpm_enable
+	
+/*
+mouse_le_disable_connect_flag:
+	fetch 1,mem_le_connect_status_flag
+	qset0 pdata
+	store 1,mem_le_connect_status_flag
+	rtn
+*/
+mouse_le_clean_connect_flag:
+	jam 0,mem_le_connect_status_flag
+	rtn
+
+/*
+mouse_le_reconn_write_enable_timer_reinit:
+	fetch 1,mem_mouse_le_reconnect_flag
+	rtn blank
+	fetch 1,mem_le_connect_status_flag
+	and pdata,0x03,pdata
+	rtneq 0x03
+	jam 2,mem_le_start_encrypt_timer
+	rtn
+*/
+mouse_le:
+	bpatch patch1a_6,mem_patch1a
+	call le_fifo_check_nearly_full
+	nrtn blank
+	fetch 1,mem_mouse_bluetooth_fast_conn_flag
+	beq 0xff,mouse_le_next
+	fetch 1,mem_le_connect_status_flag
+	and pdata,0x03,pdata
+	rtnne 0x03
+mouse_le_next:	
+	fetch 1,mem_mouse_clear_sensor_data_flag
+	call mouse_clear_sensor_data_by_reset,blank
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	bbit1 MOUSE_24G_PAIRING_FLAG,mouse_le_send_empty_packet
+	bbit1 MOUSE_SELECT_DEVICE_FLAG,mouse_le_send_empty_packet
+	bbit1 MOUSE_BT_DISCOVERY_BUTTON_DOWN_FLAG,mouse_le_send_empty_packet
+	bbit1 MOUSE_BT_DISCOVERY_BUTTON_LONG_DOWN_FLAG,mouse_le_send_empty_packet
+	call mouse_motion
+	call mouse_check_125Hz
+	nrtn user
+	call mouse_current_mult_update
+	call mouse_data_xy_release
+	call mouse_wheel_trigger
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	bbit0 MOUSE_ENABLE_KEYBOARD,mouse_le_send_mouse_data
+	fetch 1,mem_customer_key
+	beq 1,mouse_le_send_keyboard_package_data		
+mouse_le_send_mouse_data:
+	branch mouse_fill_mouse_data_le
+
+
+mouse_le_send_keyboard_package_data:
+	fetch 1,mem_customer_data_trigger
+	branch mouse_le_release_keyboard_data,blank
+	fetch 8,mem_customer_key_press+1
+mouse_fill_keyboard_package_data_le:
+	store 8,mem_pdatatemp
+	fetch 1,mem_customer_key_press
+	beq KB_MULTIKEY_REPORT_ID,mouse_fill_multimedia_key_data_le
+	beq KB_SYSTEM_CONCTRL_REPORT_ID,mouse_fill_systemctrl_key_data_le
+	jam 8,mem_le_data_len
+	fetcht 2,mem_le_keyboard_handle
+	branch mouse_fill_data_le
+	
+
+mouse_le_release_keyboard_data:
+	fetch 8,mem_customer_key_release+1
+	branch mouse_fill_keyboard_package_data_le
+
+mouse_fill_multimedia_key_data_le:
+	jam 3,mem_le_data_len
+	fetcht 2,mem_le_multimedia_handle
+	branch mouse_fill_data_le
+
+mouse_fill_systemctrl_key_data_le:
+	jam 2,mem_le_data_len
+	fetcht 2,mem_le_systemctrl_handle
+	branch mouse_fill_data_le
+
+mouse_fill_battery_level_le:
+	arg 1,rega
+	fetcht 2,mem_le_battery_level_handle
+	call le_att_malloc_tx_notify
+	fetch 1,mem_le_battery_level_percentage
+	istore 1,contw
+	rtn
+
+
+mouse_le_send_empty_packet:
+	setarg 0
+	store 7,mem_mouse_key
+mouse_fill_mouse_data_le:
+	jam 7,mem_le_data_len
+	fetch 7,mem_mouse_key
+	store 7,mem_pdatatemp
+	fetcht 2,mem_le_notify_handle
+	branch mouse_fill_data_le
+
+mouse_fill_data_le:
+	fetch 1,mem_le_data_len
+	copy pdata,rega
+	call le_att_malloc_tx_notify
+	fetcht 1,mem_le_data_len
+	copy temp,loopcnt
+	arg mem_pdatatemp,contr
+	branch memcpy	
+
+mouse_check_51cmd_adv:
+	jam 0,mem_mouse_le_reconnect_flag
+	fetch 3,mem_le_adv_ind
+	store 3,mem_le_adv_data+4
+	call mouse_le_check_adv_flag
+	setarg ADV_FLAG_BREDR_NOT_SUPPORTED |ADV_FLAG_LIMITED_DISCOVERABLE
+	istore 1,contr
+	arg mem_le_adv_swift_pair,contr
+	call mouse_le_adv_data_update
+	branch check_51cmd_adv
+
+mouse_le_check_adv_flag:
+	arg mem_le_adv_data,rega
+mouse_le_check_adv_flag_loop:
+	ifetch 1,rega	//length
+	rtn blank
+	iadd contr,rega
+	ifetch 1,contr	//type
+	rtneq 0x01
+	branch mouse_le_check_adv_flag_loop
+	
+mouse_le_adv_data_update:
+	arg mem_le_adv_data+11,contw
+	arg 19,loopcnt
+	call memcpy
+	branch le_modified_name_adv
+	
+/***************************le*************************/
+
+
+/***********************bt****************************/	
+mouse_bt_sniff_param_interval_setup:
+	setarg CLASSIC_INTERVAL_7_5MS
+	store 2,mem_sniff_param_interval
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	rtnbit1 MOUSE_ENABLE_BT_125Hz
+	setarg CLASSIC_INTERVAL_8_75MS
+	store 2,mem_sniff_param_interval
+	rtn
+
+mouse_bb_event_connected:
+	jam 0,mem_mouse_long_mult_flag
+	call mouse_init_sensor_reset
+	call mouse_24g_first_store_reconn_info
+	branch mouse_stop_discovery
+
+mouse_bb_disconnected:
+	jam 0,mem_mouse_enter_sniff_count
+	jam 0,mem_mouse_bt_send_first_package_flag
+	call mouse_bt_sniff_param_interval_setup
+	call mouse_bb_discon_clear_stack
+	fetch APP_DISC_RSN_SIZE,mem_app_disconn_reason
+	bbit1 APP_DISC_BLE,mouse4_0_event_bb_disconn
+	bbit1 APP_DISC_BY_BUTTON,app_disconn_reason_clear
+	bbit1 APP_DISC_AFTER_PAIRING,mouse_event_light_state_pairing
+	bbit1 APP_DISC_AFTER_RECONN,mouse_event_light_state_hibernate
+	bbit1 APP_DISC_AFTER_SNIFF,mouse_event_light_state_hibernate
+	branch mouse_start_discovery
+mouse_bb_discon_clear_stack:
+	setarg 0
+	store 8,mem_wheel_tb_old_pinlevel
+	istore 4,contw             //clean wheel statue
+	jam 0,mem_mouse_move_flag
+	jam APP_HANDSHAKE_NULL,mem_app_handshake_flag
+	jam 0,mem_ltk_exists
+	rtn
+
+mouse4_0_event_bb_disconn:
+	call mouse_le_clean_connect_flag
+	fetch APP_DISC_RSN_SIZE,mem_app_disconn_reason
+	bbit1 APP_DISC_BY_BUTTON,app_disconn_reason_clear
+	branch mouse_app_enter_hibernate
+
+
+mouse_event_light_state_pairing:
+	bbit1 APP_DISC_AFTER_HANDSHAKE,mouse_event_light_state_hibernate
+	bbit1 APP_DISC_AFTER_SNIFF,mouse_event_light_state_hibernate
+	branch mouse_start_discovery
+mouse_event_light_state_hibernate:
+	fetch 2,mem_ui_state_map
+	bbit1 UI_STATE_BTN_DOWN,mouse_start_discovery
+	call app_disconn_reason_clear
+
+	call mouse_key_check_once	//mult_key pair
+	call mouse_commbination_key_process
+	fetch 1,mem_commbination_key_statue
+	beq COMMBINATION_KEY_STATE_DOWN,mouse_delay_enter_hibernata
+	
+	fetch 1,mem_mouse_bluetooth_reconnect_timeout
+	nrtn blank
+	branch mouse_app_enter_hibernate
+
+
+mouse_bt_event_setup_complete:
+	rtn
+
+mouse_bt_send_first_package_timer_init:
+	jam 4,mem_mouse_bt_send_first_package_timer
+	rtn
+
+mouse_bt_hid_handshake:
+	jam APP_HANDSHAKE_DONE,mem_app_handshake_flag
+	call app_lpm_mult_enable
+	call app_bt_store_reconn_info
+	setarg 0
+	store 2,mem_discovery_timeout_timer_count
+	store 1,mem_hid_handshake_timer_count
+	call mouse_bt_send_first_package_timer_init
+	branch app_bt_enter_sniff
+
+mouse_bt_hid_handshake_boot_check:	
+	jam 0,mem_mouse_bt_boot_mode
+	fetch 1,mem_l2cap_rcv_hidtype
+	isolate1 0,pdata
+	rtn true
+	jam 1,mem_mouse_bt_boot_mode	//boot mode
+	rtn
+
+	
+mouse_bb_event_reconn_timeout:
+mouse_bb_event_reconn_failed:
+	fetch 1,mem_mouse_bluetooth_fast_conn_flag
+	beq 0xff,mouse_buletooth_fast_conn_end
+	fetch 2,mem_ui_state_map
+	rtnbit1 UI_STATE_BTN_DOWN
+	rtnbit1 UI_STATE_BT_DISCOVERY
+	rtnbit1 UI_STATE_BLE_ADV
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	rtnbit1 MOUSE_BT_DISCOVERY_BUTTON_DOWN_FLAG
+	bbit1 MOUSE_ENABLE_BT_RECONNECT_TIMEOUT_ENTER_DISCOVERY,mouse_start_discovery
+	bbit1 MOUSE_ENABLE_24G_FIRST_AUTO_PAIRING,mouse_24g_first_bb_event_reconn_timeout
+	branch mouse_app_enter_hibernate
+
+mouse_enter_sniff_check:
+	fetch 1,mem_mouse_enter_sniff_count
+	rtnne 2
+	jam 0,mem_mouse_enter_sniff_count
+	call mouse_bt_sniff_param_interval_setup
+	call mouse_bt_send_first_package_timer_init
+	branch app_bt_enter_sniff
+
+mouse_sniff_not_accept:
+	fetch 1,mem_mouse_enter_sniff_count
+	rtneq 2
+	increase 1,pdata
+	store 1,mem_mouse_enter_sniff_count
+	jam 0x12,mem_sniff_param_interval	//89Hz
+	call mouse_bt_send_first_package_timer_init
+	branch app_bt_enter_sniff
+
+mouse_bb_event_pincode:
+	call pincode_reinit
+	branch app_bt_set_pincode
+
+mouse_irtual_cable_unplug:
+	setarg 0x01
+	store 6,mem_plap
+	jam REC_3_MODE,mem_record_bt_mode
+	branch mouse_unplug_clean_bdaddr
+
+mouse_irtual_cable_unplug1:
+	setarg -1
+	store 6,mem_plap
+	jam REC_3_MODE,mem_record_bt_mode
+	jam 0xff,mem_mouse_bluetooth_fast_conn_flag
+	call mouse_before_store_reconn_info
+	jam 0xff,mem_device1_type
+	branch mouse_store_device_info_delay
+
+mouse_bt:
+	bpatch patch1a_7,mem_patch1a
+	rtn attempt
+	fetch 1,mem_app_handshake_flag
+	rtn blank
+	call l2cap_malloc_is_fifo_nearly_full
+	nrtn blank
+	fetch 1,mem_mouse_bluetooth_fast_conn_flag
+	beq 0xff,mouse_bt_fast_conn_send_device_name	
+	fetch 1,mem_mouse_clear_sensor_data_flag
+	call mouse_clear_sensor_data_by_reset,blank
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	bbit1 MOUSE_24G_PAIRING_FLAG,mouse_send_empty_data
+	bbit1 MOUSE_SELECT_DEVICE_FLAG,mouse_send_empty_data
+	bbit1 MOUSE_BT_DISCOVERY_BUTTON_DOWN_FLAG,mouse_send_empty_data
+	bbit1 MOUSE_BT_DISCOVERY_BUTTON_LONG_DOWN_FLAG,mouse_send_empty_data
+	call mouse_motion
+	call mouse_check_125Hz
+	nrtn user
+	call mouse_current_mult_update
+	call mouse_data_xy_release
+	call mouse_wheel_trigger
+	fetch 1,mem_mouse_bt_boot_mode
+	beq 1,mouse_send_data_boot_mode	//boot
+	fetch 1,mem_mouse_bt_send_first_package_flag
+	rtn blank
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	bbit0 MOUSE_ENABLE_KEYBOARD,mouse_send_data
+	fetch 1,mem_customer_key
+	beq 1,mouse_bt_send_keyboard_packet
+mouse_send_data:
+	arg 9,rega
+	call hid_malloc_tx_buff
+	fetch 2,mem_hid_int_remote_cid
+	istore 2,contw
+	setarg 0x02a1
+	istore 2,contw
+	fetch 7,mem_mouse_key
+	istore 7,contw
+	rtn
+
+mouse_send_data_boot_mode:
+	fetch 1,mem_mouse_key
+	store 1,mem_mouse_bt_boot_data
+	fetch 1,mem_mouse_x
+	istore 1,contw
+	fetch 1,mem_mouse_y
+	istore 1,contw
+	fetch 2,mem_mouse_z
+	istore 2,contw
+	arg 7,rega
+	call hid_malloc_tx_buff
+	fetch 2,mem_hid_int_remote_cid
+	istore 2,contw
+	setarg 0x02a1		// pid:02  mouse
+	istore 2,contw
+	fetch 5,mem_mouse_bt_boot_data
+	istore 5,contw
+	rtn
+
+mouse_send_empty_data:
+	setarg 0
+	store 7,mem_mouse_key
+	branch mouse_send_data
+
+
+mouse_bt_send_keyboard_packet:
+	fetch 1,mem_customer_data_trigger
+	branch mouse_bt_release_keyboard_data,blank
+	fetch 8,mem_customer_key_press+1
+mouse_bt_send_keyboard_data:
+	store 8,mem_pdatatemp
+	fetch 1,mem_customer_key_press
+	beq KB_MULTIKEY_REPORT_ID,mouse_bt_send_multimedia_key_data
+	beq KB_SYSTEM_CONCTRL_REPORT_ID,mouse_bt_send_systemctrl_key_data
+	arg 10,rega
+	call hid_malloc_tx_buff
+	fetch 2,mem_hid_int_remote_cid
+	istore 2,contw
+	setarg 0x01a1		// pid:01  standard key
+	istore 2,contw
+	fetch 8,mem_pdatatemp
+	istore 8,contw
+	rtn
+
+mouse_bt_send_multimedia_key_data:
+	arg 4,rega
+	call hid_malloc_tx_buff
+	fetch 2,mem_hid_int_remote_cid
+	istore 2,contw
+	setarg 0x03a1		// pid:03  multimedia key
+	istore 2,contw
+	fetch 2,mem_pdatatemp
+	istore 2,contw
+	rtn	
+
+mouse_bt_send_systemctrl_key_data:
+	arg 3,rega
+	call hid_malloc_tx_buff
+	fetch 2,mem_hid_int_remote_cid
+	istore 2,contw
+	setarg 0x04a1		// pid:04  systemctrl key	
+	istore 2,contw
+	fetch 1,mem_pdatatemp
+	istore 1,contw
+	rtn		
+
+mouse_bt_release_keyboard_data:
+	fetch 8,mem_customer_key_release+1
+	branch mouse_bt_send_keyboard_data	
+/*******************bt****************************/
+
+
+
+/********************mouse 100ms timer*****************/
+mouse_bb_event_timer:
+	bpatch patch1b_0,mem_patch1b
+	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
+	//poll
+	call mouse_dpi_key_check_long_press
+	call mouse_bt_discovery_check
+	call mouse_commbination_key_process
+	call mouse_check_discovery_timeout_timer
+	//ble
+	call mouse_check_direct_timeout_timer
+	call mouse_le_enable_att_list_timer
+	call mouse_le_battery_updata_timer
+	call mouse_le_send_smp_security_request_timer
+	//bt
+	call mouse_check_hid_handshake_timer
+	call mouse_bt_check_sniff_req_timeout_timer
+	call mouse_check_reconnect_delay_long_sleep		//delete 3.0,reconnect fail
+	call mouse_current_mult_update_timer
+	call mouse_wheel_trigger_timer
+	call mouse_store_information_delay_timer
+	branch mouse_check_no_data_timeout_timer
+
+
+
+
+mouse_bt_discovery_check:
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	bbit1 MOUSE_ENABLE_PB_BUTTON_LONG_PRESS_DISCONVERY,mouse_bt_discovery_by_pb_button
+	rtn
+
+mouse_bt_discovery_by_pb_button:
+	fetch 1,mem_select_device_button_statue
+	rtnne PB_BUTTON_STATE_DOWN
+	arg mem_bt_discovery_count,regc
+	arg mouse_long_button_bt_discovery,regb
+	branch timer_single_step
+		
+mouse_long_button_bt_discovery:
+	fetch 1,mem_device_flag
+	rtneq MODE_24G_DEVICE
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	rtnbit1 MOUSE_BT_DISCOVERY_BUTTON_LONG_DOWN_FLAG
+	arg MOUSE_BT_DISCOVERY_BUTTON_LONG_DOWN_FLAG,queue
+	call mouse_enable_function_flag
+	call app_evt_button_long_pressed
+	branch mouse_bb_event_discovery_btn
+
+		
+mouse_commbination_key_process:
+	fetch 1,mem_device_flag
+	beq MODE_24G_DEVICE,mouse_24g_commbination_key_process
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	rtnbit0 MOUSE_ENABLE_COMMBINATION_KEY_BY_BT_DISCOVERY
+	fetcht 1,mem_mouse_commbination_key_bt
+	branch mouse_commbination_key_start
+
+mouse_24g_commbination_key_process:
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	rtnbit0 MOUSE_ENABLE_COMMBINATION_KEY_BY_24G_PAIRING
+	fetcht 1,mem_mouse_commbination_key_24g
+mouse_commbination_key_start:
+	storet 1,mem_mouse_commbination_key
+	call mouse_check_key_gpio
+	and pdata,0x07,pdata
+	fetcht 1,mem_mouse_commbination_key
+	isub temp,null
+	branch mouse_commbination_key_down,zero
+mouse_commbination_key_up:
+	fetch 1,mem_ui_button_timeout
+	store 1,mem_combination_ui_button_count	//combination key timer init 
+	fetch 1,mem_commbination_key_statue
+	rtneq COMMBINATION_KEY_STATE_UP
+	jam COMMBINATION_KEY_STATE_UP,mem_commbination_key_statue	
+	rtn
+		
+mouse_commbination_key_down:
+	call mouse_combination_ui_timer
+	fetch 1,mem_commbination_key_statue
+	rtneq COMMBINATION_KEY_STATE_DOWN
+	jam COMMBINATION_KEY_STATE_DOWN,mem_commbination_key_statue
+	branch check_51cmd_bb_reconn_cancel
+
+
+mouse_combination_ui_timer:
+	arg mouse_24g_start_pair_mode,regb
+	arg mem_combination_ui_button_count,regc
+	fetch 1,mem_device_flag
+	beq MODE_24G_DEVICE,timer_single_step
+	arg mouse_long_button_bt_discovery,regb
+	call timer_single_step
+	fetch 1,mem_combination_ui_button_count
+	beq 1,mouse_bt_discovery_button_down_enable	// ble release key press
+	rtn
+
+
+
+mouse_check_discovery_timeout_timer:	
+	arg mem_mouse_discovery_timer,regc
+	arg mouse_check_discovery_timeout,regb
+	branch timer_single_step_2B
+
+mouse_check_discovery_timeout:
+	call mouse_stop_discovery
+	branch mouse_app_enter_hibernate
+
+
+mouse_check_direct_timeout_timer:	
+	arg mem_mouse_direct_timer,regc
+	arg mouse_check_direct_timeout,regb
+	call timer_single_step_2B
+	fetch 1,mem_mouse_direct_timer
+	beq 1,app_ble_stop_direct_adv
+	rtn
+
+mouse_check_direct_timeout:
+	fetch 1,mem_mouse_bluetooth_fast_conn_flag
+	beq 0xff,mouse_buletooth_fast_conn_end
+	fetch 1,mem_reconn_times
+	nbranch mouse_polling_device,blank
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	bbit1 MOUSE_ENABLE_BT_RECONNECT_TIMEOUT_ENTER_DISCOVERY,mouse_start_discovery
+	bbit1 MOUSE_ENABLE_24G_FIRST_AUTO_PAIRING,mouse_24g_first_bb_event_reconn_timeout
+	branch mouse_app_enter_hibernate
+	
+mouse_le_enable_att_list_timer:
+	arg mem_le_start_encrypt_timer,regc
+	arg mouse_le_write_enable,regb
+	branch timer_single_step
+
+mouse_le_send_smp_security_request_timer:
+	fetch 1,mem_mouse_le_bb_connected_flag
+	rtn blank
+	arg mem_mouse_send_secutiry_request_timer,regc
+	arg mouse_le_pairing_sm_start_check,regb
+	branch timer_single_step
+mouse_le_pairing_sm_start_check:
+	fetch 1,mem_mouse_le_reconnect_flag
+	nrtn blank
+	fetch 1,mem_le_pairing_state
+	rtnne FLAG_LE_PAIRING_NULL
+	branch le_pairing_sm_start
+
+mouse_le_battery_updata_timer:
+	arg mem_le_battery_level_updata_timer,regc
+	arg mouse_le_battery_level_updata,regb
+	branch timer_single_step
+
+mouse_le_battery_level_updata:
+	fetch 2,mem_le_battery_level_updata_timer_init
+	store 2,mem_le_battery_level_updata_timer
+	branch mouse_fill_battery_level_le
+	
+mouse_le_enable_att_list:	
+	fetch 1,mem_le_connect_status_flag
+	rtnbit1 LL_PAIRING_SUCCESS_FLAG
+	call mouse_updata_le_param
+	arg WRITE_REQ_ENABLE_FLAG,queue
+	branch mouse_le_enable_connect_flag
+
+mouse_check_hid_handshake_timer:
+	arg mem_hid_handshake_timer_count,regc
+	arg mouse_bt_hid_handshake,regb
+	branch timer_single_step
+	
+mouse_bt_check_sniff_req_timeout_timer:
+	arg mem_mouse_bt_send_first_package_timer,regc
+	arg mouse_bt_send_first_package,regb
+	branch timer_single_step
+mouse_bt_send_first_package:
+	jam 1,mem_mouse_bt_send_first_package_flag
+	rtn
+
+mouse_check_reconnect_delay_long_sleep:
+	arg mem_mouse_bluetooth_reconnect_timeout,regc
+	arg mouse_app_enter_hibernate,regb
+	branch timer_single_step
+
+
+mouse_current_mult_update_timer:
+	arg mem_mouse_current_mult_timer,regc
+	arg mouse_current_mult_reinit,regb
+	branch timer_single_step
+mouse_current_mult_reinit:
+	fetch 1,mem_lpm_mult_init
+	store 1,mem_lpm_mult
+	jam 1,mem_mouse_long_mult_flag
+	rtn
+
+
+mouse_check_no_data_timeout_timer:	
+	fetch 1,mem_usb_addr
+	rtnbit1 7
+	arg mem_mouse_no_data_timer,regc
+	arg mouse_check_no_data_timeout,regb
+	branch timer_single_step_2B
+
+mouse_check_no_data_timeout:
+	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_bb_event_discovery_btn:
+	isolate1 mark_24g,mark
+	call mouse_24g_stop,true
+	call mouse_disconnect
+	call mouse_le_clean_connect_flag
+	branch mouse_start_discovery
+	
+mouse_start_discovery:
+	bpatch patch1b_1,mem_patch1b
+	call mouse_bluetooth_fast_conn_disable
+	fetch 2,mem_ui_state_map
+	bbit1 UI_STATE_BLE_ADV,mouse_start_discovery_norandom
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	bbit0 MOUSE_ENABLE_BLE_RANDOM_ADDRE,mouse_start_discovery_norandom
+	fetcht 2,mem_random_addr_increase_count
+	increase 1,temp
+	storet 2,mem_random_addr_increase_count
+	storet 2,mem_le_lap+1
+	random pdata					//random ble addr
+	store 1,mem_le_lap
+mouse_start_discovery_norandom:
+	fetch 3,mem_mouse_le_lap_temp
+	store 3,mem_le_lap+3
+	call app_lpm_mult_disable
+	fetch 2,mem_discovery_timeout
+	store 2,mem_mouse_discovery_timer
+	jam 6,mem_connection_options
+	setarg 0
+	store 2,mem_mouse_no_data_timer
+	store 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
+	fetch 1,mem_mouse_bluetooth_type
+	isolate1 MODE_4_MOUSE,pdata
+	call mouse_check_51cmd_adv,true
+	fetch 1,mem_mouse_bluetooth_type
+	isolate1 MODE_3_MOUSE,pdata
+	call check_51cmd_start_discovery,true
+	call mouse_low_voltage_led_blink_disable
+	branch mouse_discover_setting_led_gpio
+
+
+mouse_stop_discovery:
+	bpatch patch1b_2,mem_patch1b
+	arg MOUSE_BT_DISCOVERY_BUTTON_LONG_DOWN_FLAG,queue
+	call mouse_disable_function_flag
+	jam 0,mem_mouse_bluetooth_reconnect_timeout
+	fetch 1,mem_mouse_bluetooth_type
+	isolate1 MODE_4_MOUSE,pdata
+	call mouse_stop_le_adv,true
+	fetch 1,mem_mouse_bluetooth_type
+	isolate1 MODE_3_MOUSE,pdata
+	call mouse_stop_bt3_discovery,true
+	branch mouse_device_led_off
+mouse_stop_le_adv:
+	jam 0,mem_mouse_direct_timer
+	branch check_51cmd_stop_adv
+mouse_stop_bt3_discovery:
+	setarg 0
+	store 2,mem_mouse_discovery_timer
+	branch check_51cmd_stop_discovery
+
+mouse_store_remote_bdaddr:
+	bpatch patch1b_3,mem_patch1b
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	rtnbit0 MOUSE_STORE_EEPROM_FLAG
+	call mouse_device_poweron_timer_init
+	arg MOUSE_STORE_EEPROM_FLAG,queue
+	call mouse_disable_function_flag
+	call mouse_check_device_addr
+mouse_unplug_clean_bdaddr:
+	call mouse_before_store_reconn_info
+	branch mouse_store_device_info_delay
+
+	
+mouse_check_device_addr:
+	fetch 1,mem_record_bt_mode
+	beq REC_4_MODE,mouse_check_le_device_addr
+	beq REC_3_MODE,mouse_check_bt_device_addr
+	rtn
+mouse_check_le_device_addr:
+	store 1,mem_device_addr_temp
+	fetch 6,mem_le_plap
+	branch mouse_check_bt_device_addr_common
+mouse_check_bt_device_addr:
+	store 1,mem_device_addr_temp
+	fetch 6,mem_plap
+mouse_check_bt_device_addr_common:
+	store 6,mem_device_addr_temp+1
+	fetch 7,mem_device_addr_temp
+	arg mem_device1_type,contr
+	arg 3,loopcnt
+mouse_check_device_addr_end:
+	ifetcht 7,contr
+	isub temp,null
+	branch mouse_clean_addr,zero
+	increase 22,contr
+	loop mouse_check_device_addr_end
+	rtn
+mouse_before_store_reconn_info:
+	arg mem_device1_type,rega
+	fetch 1,mem_device_flag
+	increase -1,pdata
+	mul32 pdata,29,pdata
+	iadd rega,rega
+	fetch 1,mem_record_bt_mode
+	istore 1,rega
+	beq REC_4_MODE,mouse_store_le_device
+	beq REC_3_MODE,mouse_store_bt_device
+	rtn
+	
+mouse_store_le_device:
+	fetch 6,mem_le_plap
+	istore 6,contw
+	arg mem_le_ltk,contr
+	call memcpy16
+	fetch 6,mem_le_lap
+	istore 6,contw
+	rtn
+mouse_store_bt_device:
+	fetch 6,mem_plap
+	istore 6,contw
+	arg mem_link_key,contr
+	branch memcpy16
+
+mouse_clean_addr:
+	increase -6,contr
+	copy contr,contw
+	fetcht 6,mem_device_addr_temp+1
+	increase 3,temp
+	istoret 6,contw
+	rtn
+	
+mouse_select_reconn_device:
+	arg mem_device1_type,rega
+	fetch 1,mem_device_flag
+	rtneq MODE_24G_DEVICE
+	increase -1,pdata
+	mul32 pdata,29,pdata
+	iadd rega,rega
+	ifetch 1,rega
+	store 1,mem_xrecord_mode
+	beq REC_3_MODE,mouse_load_bt_device
+	beq REC_4_MODE,mouse_load_le_device
+	rtn
+
+mouse_load_bt_device:
+	ifetch 6,contr
+mouse_load_bt_device_end:
+	store 6,mem_hci_plap
+	arg mem_link_key,contw
+	call memcpy16
+	branch check_link_key_load
+
+mouse_load_le_device:
+	ifetch 6,contr
+mouse_load_le_device_end:
+	store 6,mem_hci_plap
+	arg mem_le_ltk,contw
+	call memcpy16
+	ifetch 6,contr
+	store 6,mem_le_lap
+	rtn
+
+
+
+mouse_app_initflag_check:
+	fetch 2,mem_store_flag
+	arg EEPROM_INIT_FLAG,temp
+	isub temp,null
+	branch mouse_load_device_info,zero
+	storet 2,mem_store_flag
+	call mouse_ble_init_address
+	fetch 1,mem_device_flag_temp
+	store 1,mem_device_flag
+	fetch 1,mem_config_sensor_dpi
+	store 1,mem_mouse_dpi
+	fetch 4,mem_24g_fast_conn_addr
+	store 4,mem_24g_receiver_addr
+	store 4,mem_24g_addr	
+	rtn
+
+mouse_load_device_info:
+	call mouse_select_reconn_device
+	fetch 4,mem_mouse_24g_addr
+	store 4,mem_24g_receiver_addr
+	store 4,mem_24g_addr
+	rtn
+	
+mouse_ble_init_address:
+	fetch 6,mem_le_lap
+	store 6,mem_device1_locall_addr
+	add pdata,0x0100,pdata
+	store 6,mem_device2_locall_addr
+	add pdata,0x0100,pdata
+	store 6,mem_device3_locall_addr
+	rtn
+	
+
+mouse_store_device_info_delay:	
+	fetch 1,mem_store_information_delay_timer_init
+	store 1,mem_store_information_delay_timer
+	rtn
+
+mouse_store_device_info:
+	bpatch patch1b_4,mem_patch1b
+	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 patch1b_5,mem_patch1b
+	call mouse_low_voltage_led_no_enter_lpm
+	call ui_check_paring_button
+	call mouse_dpi_check
+	call mouse_select_device_check
+	call mouse_check_select_device_by_switch
+	call mouse_bt_button_check
+	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:
+	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
+	enable user
+	rtn
+	
+
+
+mouse_check_select_device_by_switch:
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	bbit1 MOUSE_ENABLE_SELECT_DEVICE_BY_SWITCH_GPIO,mouse_check_select_device_by_switch_gpio
+	bbit1 MOUSE_ENABLE_SELECT_DEVICE_BY_SWITCH_ADC,mouse_adc_read
+	rtn
+mouse_check_select_device_by_switch_gpio:	
+	fetcht 1,mem_device_switch_gpio
+	call mouse_gpio_config_input_pu
+	fetcht 1,mem_device_switch_gpio
+	call gpio_get_bit
+	branch mouse_check_select_24gdevice,true
+mouse_select_btdevice:
+	fetch 1,mem_device_flag
+	rtneq MODE_BT_DEVICE1
+	jam MODE_BT_DEVICE1,mem_device_flag
+	branch mouse_stop_bluetooth_mode
+	
+	
+mouse_check_select_24gdevice:
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	bbit0 MOUSE_ENABLE_SELECT_DEVICE_BY_SWITCH_ADC,mouse_check_select_24g_device
+	fetch 6,mem_mouse_vdd_switch_gnd_full_vol
+	store 6,mem_mouse_vdd_calculate_set
+mouse_check_select_24g_device:	
+	fetch 1,mem_device_flag
+	rtneq MODE_24G_DEVICE
+	jam MODE_24G_DEVICE,mem_device_flag
+	branch mouse_24g_stop
+
+	
+
+mouse_ready_reconnection_by_button:
+	bpatch patch1b_6,mem_patch1b
+	fetch 1,mem_device_number
+	rtneq 1		// 1channel
+	call mouse_select_device_number
+	storet 1,mem_device_flag
+mouse_store_device_number_before_reset:	
+	jam 0,mem_link_key_exists
+	call mouse_select_device_enable
+	call mouse_stop_bluetooth_mode
+	call mouse_select_device_disable
+	jam 1,mem_mouse_need_soft_reset
+	branch mouse_store_device_info_delay
+
+
+mouse_soft_reset:
+	call mouse_select_device_enable
+	branch soft_reset_chip
+
+mouse_select_device_number:
+	fetcht 1,mem_device_flag
+	increase 1,temp
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	bbit1 MOUSE_ENABLE_24G,mouse_select_device_number_24g
+	sub temp,2,null
+	ncall mouse_select_device_count_clean_bt,positive
+	rtn
+	
+mouse_select_device_number_24g:	
+	fetch 1,mem_device_number
+	increase -1,pdata
+	isub temp,null
+	ncall mouse_select_device_count_clean_24g,positive
+	rtn
+
+mouse_select_device_count_clean_24g:
+	arg 0,temp
+	rtn
+mouse_select_device_count_clean_bt:
+	arg 1,temp
+	rtn
+
+
+mouse_store_device_number2eeprom:
+	arg 1,temp
+	arg mem_device_flag,rega
+	arg 0,regb
+	branch iicd_write_protect_eep_data
+		
+
+mouse_bt_button_check:
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	rtnbit0 MOUSE_ENABLE_PB_BUTTON_SHORT_PRESS_ENTER_DISCOVERY
+	call mouse_select_device_by_pb_button
+	rtn
+
+
+
+
+mouse_select_device_enable:
+	arg MOUSE_SELECT_DEVICE_FLAG,queue
+	branch mouse_enable_function_flag
+mouse_select_device_disable:
+	arg MOUSE_SELECT_DEVICE_FLAG,queue
+	branch mouse_disable_function_flag
+mouse_bt_cannel_reconn_enable:
+	arg MOUSE_BT_CANNEL_RECONN_FLAG,queue
+	branch mouse_enable_function_flag
+mouse_bt_cannel_reconn_disable:
+	arg MOUSE_BT_CANNEL_RECONN_FLAG,queue
+	branch mouse_disable_function_flag
+mouse_bt_discovery_button_down_enable:
+	arg MOUSE_BT_DISCOVERY_BUTTON_DOWN_FLAG,queue
+	branch mouse_enable_function_flag
+mouse_bt_discovery_button_down_disable:
+	arg MOUSE_BT_DISCOVERY_BUTTON_DOWN_FLAG,queue
+	branch mouse_disable_function_flag
+
+mouse_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 patch1b_7,mem_patch1b
+	fetch 1,mem_reconn_times
+	increase -1,pdata
+	store 1,mem_reconn_times
+	fetcht 1,mem_device_flag
+	sub temp,1,null
+	ncall mouse_select_device_number,zero
+	storet 1,mem_device_flag
+	jam 0,mem_link_key_exists
+	call mouse_store_device_number2eeprom
+	call mouse_before_store_reconn_info
+	branch mouse_start_reconnect_device
+	
+
+
+//notice: need to call p_mouse_drawing_optima_init when waked from mult
+mouse_drawing_optima:
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	rtnbit0 MOUSE_ENABLE_SMOOTHER
+	fetch 4,mem_mouse_x
+	rtn blank
+	call mouse_data_abs_check
+	setarg 0x03	//asm_flag enable condition
+	call mouse_pdata_greater_than_check
+	call mouse_disable_asm,blank
+	ncall mouse_enable_asm,blank
+	setarg 0x02	//asm_flag disable condition
+	call mouse_data_less_than_check
+	call mouse_disable_asm,blank
+	fetch 1,mem_mouse_asm_flag
+	beq 1,mouse_drawing_optima_modify
+mouse_drawing_optima_init:
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	rtnbit0 MOUSE_ENABLE_SMOOTHER
+	arg 5,loopcnt
+	arg mem_mouse_asm_flag,contw
+	branch clear_mem
+
+mouse_drawing_optima_modify:
+	call mouse_drawing_optima_xy_offset_modify
+	fetch 2,mem_mouse_x_pre
+	store 2,mem_data_pre
+	fetch 2,mem_mouse_x
+	store 2,mem_data_current
+	call mouse_drawing_optima_data_x
+	fetch 2,mem_data_pre
+	store 2,mem_mouse_x_pre
+	fetch 2,mem_data_current
+	store 2,mem_mouse_x
+
+	fetch 2,mem_mouse_y_pre
+	store 2,mem_data_pre
+	fetch 2,mem_mouse_y
+	store 2,mem_data_current
+	call mouse_drawing_optima_data_y
+	fetch 2,mem_data_pre
+	store 2,mem_mouse_y_pre
+	fetch 2,mem_data_current
+	store 2,mem_mouse_y
+	rtn
+
+mouse_drawing_optima_xy_offset_modify:
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	rtnbit0 MOUSE_ENABLE_XY_OFFSET
+	fetch 2,mem_mouse_x_pre
+	store 2,mem_data_value
+	call mouse_pre_xy_data_judge
+	store 2,mem_mouse_x_pre
+	fetch 2,mem_mouse_x
+	store 2,mem_data_value
+	call mouse_current_xy_data_judge
+	store 2,mem_mouse_x
+	fetch 2,mem_mouse_y_pre
+	store 2,mem_data_value
+	call mouse_pre_xy_data_judge
+	store 2,mem_mouse_y_pre
+	fetch 2,mem_mouse_y
+	store 2,mem_data_value
+	call mouse_current_xy_data_judge
+	store 2,mem_mouse_y
+	rtn
+
+mouse_pre_xy_data_judge:	
+	fetch 1,mem_data_value+1
+	branch mouse_pre_xy_pdata_offset,blank
+	branch mouse_pre_xy_ndata_offset
+
+mouse_pre_xy_pdata_offset:
+	fetch 1,mem_data_value
+	call mouse_pre_xy_get_0_4_times
+	store 1,mem_data_value
+mouse_xy_data_offset_new:
+	fetch 2,mem_data_value
+	rtn
+mouse_pre_xy_ndata_offset:
+	fetch 1,mem_data_value
+	call mouse_pdata_invert
+	call mouse_pre_xy_get_0_4_times
+	call disable_blank,blank
+	call mouse_pdata_get_new_value
+	branch mouse_xy_data_offset_new
+	
+mouse_current_xy_data_judge:
+	fetch 1,mem_data_value+1
+	branch mouse_current_xy_pdata_offset,blank
+	branch mouse_current_xy_ndata_offset
+mouse_current_xy_pdata_offset:
+	fetch 1,mem_data_value
+	call mouse_current_xy_get_0_6_times
+	store 1,mem_data_value
+	branch mouse_xy_data_offset_new
+mouse_current_xy_ndata_offset:	
+	fetch 1,mem_data_value
+	call mouse_pdata_invert
+	call mouse_current_xy_get_0_6_times
+	call disable_blank,blank
+	call mouse_pdata_get_new_value
+	branch mouse_xy_data_offset_new
+	
+mouse_pre_xy_get_0_4_times:
+	mul32 pdata,4,pdata
+	div pdata,5
+	call wait_div_end
+	quotient pdata
+	rtn
+mouse_current_xy_get_0_6_times:	//0.6 times
+	mul32 pdata,12,pdata
+	div pdata,10
+	call wait_div_end
+	quotient pdata
+	rtn	
+	
+mouse_drawing_optima_data_x:
+	fetch 2,mem_data_pre
+	fetcht 2,mem_data_current
+	iadd temp,pdata
+	fetcht 1,mem_mouse_data_xtemp
+	iadd temp,pdata
+	and pdata,0x01,temp
+	storet 1,mem_mouse_data_xtemp
+	branch mouse_drawing_optima_data
+
+mouse_drawing_optima_data_y:
+	fetch 2,mem_data_pre
+	fetcht 2,mem_data_current
+	iadd temp,pdata
+	fetcht 1,mem_mouse_data_ytemp
+	iadd temp,pdata
+	and pdata,0x01,temp
+	storet 1,mem_mouse_data_ytemp
+	branch mouse_drawing_optima_data
+
+/**********
+input:data_pre,data_current
+output:data_pre,data_current after optima
+***********/
+mouse_drawing_optima_data:
+	store 3,mem_data_sum
+	isolate1 16,pdata
+	branch mouse_data_sum_overflow,true
+	fetch 1,mem_data_sum+1
+	beq 0xff,mouse_data_sum_n
+	fetch 1,mem_data_sum
+mouse_data_store_pre:
+	rshift pdata,pdata
+	store 2,mem_data_pre
+	store 2,mem_data_current
+	rtn
+mouse_data_sum_overflow:
+	fetch 1,mem_data_sum+1	//sum positive
+	beq 0,mouse_data_sum_overflow_p
+	fetch 3,mem_data_sum	
+	branch mouse_data_store_pre
+mouse_data_sum_overflow_p:
+	jam 0,mem_data_sum+2
+	fetch 1,mem_data_sum
+	branch mouse_data_store_pre
+
+mouse_data_sum_n:
+	fetch 1,mem_data_sum	//sum negetive
+	call mouse_pdata_get_half
+	store 1,mem_data_pre
+	store 1,mem_data_current
+	branch mouse_data_zero,blank
+	setarg 0xff
+mouse_data_set_direction:	
+	store 1,mem_data_pre+1
+	store 1,mem_data_current+1
+	rtn
+mouse_data_zero:
+	setarg 0
+	branch mouse_data_set_direction
+
+mouse_pdata_get_half:
+	call mouse_pdata_invert
+	rshift pdata,pdata
+mouse_pdata_get_new_value:	
+	call mouse_rega_in_out
+	sub pdata,0,pdata
+	store 1,mem_data_value	
+	rtn
+
+mouse_pdata_invert:
+	sub pdata,0,pdata
+mouse_rega_in_out:	
+	store 1,mem_rega
+	fetch 1,mem_rega
+	rtn
+
+mouse_disable_asm:
+	jam 0,mem_mouse_asm_flag
+	rtn
+mouse_enable_asm:
+	jam 1,mem_mouse_asm_flag
+	rtn
+
+//rega mouse_x, regb mouse_y, pdata refer
+mouse_pdata_greater_than_check:
+	isub rega,null
+	nbranch disable_blank,positive
+	isub regb,null
+	nbranch disable_blank,positive
+	branch enable_blank
+mouse_data_less_than_check:
+	isub rega,null
+	nrtn positive
+	isub regb,null
+	nrtn positive
+	branch enable_blank
+
+mouse_data_abs_check:
+	fetch 2,mem_mouse_x
+	call mouse_data_abs
+	copy pdata,rega
+	fetch 2,mem_mouse_y
+	call mouse_data_abs
+	copy pdata,regb
+	rtn
+
+/***********
+input: data_current
+output:pdata,abs
+************/
+mouse_data_abs:
+	store 2,mem_data_current
+	fetch 1,mem_data_current+1
+	beq 0xff,mouse_data_reversal
+	fetch 1,mem_data_current
+mouse_data_abs_store:
+	and_into 0xff,pdata
+	//output:pdata
+	rtn
+mouse_data_reversal:
+	fetch 2,mem_data_current
+	sub pdata,0,pdata
+	branch mouse_data_abs_store
+
+mouse_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:
+	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 g24_long_sleep
+
+mouse_wakeup_24g:
+	fetch 1,mem_sensor_shutdown_flag
+	ncall mouse_init_sensor_wakeup,blank
+	jam 0,mem_sensor_shutdown_flag
+	branch g24_transmit_no_ack
+
+mouse_24g_transmit_start:
+	fetch 1,mem_sensor_shutdown_flag
+	nbranch g24_short_sleep,blank
+	branch g24_transmit_start_next
+
+
+mouse_24g_stop:
+	set0 mark_24g,mark
+	jam STATE_24G_STOP,mem_24g_conn_sm
+	arg MOUSE_24G_PAIRING_FLAG,queue
+	branch mouse_disable_function_flag
+
+
+mouse_24g_start_mode:
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	bbit0 MOUSE_ENABLE_24G,mouse_24g_mode_setup_error
+	call mouse_wakeup_from_power_check	// wake from hibernate :enble user
+	branch mouse_24g_reconn_dongle_start,user
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	bbit1 MOUSE_ENABLE_AUTO_24G_PARING,mouse_24g_reconn_general_dongle
+	bbit0 MOUSE_ENABLE_24G_POWER_ON_PAIRING,mouse_24g_reconn_general_dongle
+	call mouse_key_check_once
+	and pdata,0x07,pdata
+	fetcht 1,mem_mouse_commbination_key_24g
+	isub temp,null
+	branch mouse_24g_start_pair_mode,zero
+	branch mouse_24g_reconn_general_dongle
+
+mouse_24g_mode_setup_error:
+	fetch 1,mem_reconn_times
+	nbranch mouse_polling_device,blank
+	rtn
+
+mouse_24g_reconn_dongle_start:
+	fetch 2,mem_24g_reconn_timeout_init
+	store 2,mem_24g_reconn_timeout
+	jam RECEIVER_AND_3_0_ADDR,mem_24g_reconn_type
+	branch g24_reconn_start
+
+
+mouse_24g_first_start_auto_pair_mode:
+	call mouse_wakeup_from_power_check
+	branch mouse_24g_first_start_reconn,user  	// wake from hibernate :enble user
+mouse_24g_reconn_general_dongle:	
+	jam MODE_24G_DEVICE,mem_device_flag
+	fetch 2,mem_mouse_24g_power_on_fast_conn_timer
+	store 2,mem_24g_reconn_timeout
+	jam FAST_CONN_AND_3_0_ADDR,mem_24g_reconn_type
+	branch g24_reconn_start
+
+mouse_24g_start_auto_pair:
+	call mouse_discover_setting_led_gpio
+	fetch 2,mem_24g_pair_timeout_init
+	store 2,mem_24g_reconn_timeout
+	jam PAIR_AND_3_0_ADDR,mem_24g_reconn_type
+	branch g24_reconn_start
+
+
+mouse_24g_first_start_reconn:
+	fetch 1,mem_device_flag
+	beq MODE_24G_DEVICE,mouse_24g_reconn_dongle_start
+	call mouse_bluetooth_fast_conn_disable
+	branch mouse_24g_first_bluetooth_reconnect
+	
+mouse_24g_first_bluetooth_reconnect:
+	call mouse_24g_stop
+	call mouse_device_led_all_off
+	jam MODE_BT_DEVICE1,mem_device_flag
+	call mouse_select_reconn_device
+	branch mouse_start_reconnect_device
+
+mouse_24g_first_bb_event_reconn_timeout:
+	call mouse_wakeup_from_power_check
+	branch 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:
+	arg MOUSE_24G_PAIRING_FLAG,queue
+	call mouse_enable_function_flag
+	setarg 0
+	store 2,mem_24g_reconn_timeout	
+	call mouse_stop_discovery
+	call mouse_low_voltage_led_blink_disable
+	call mouse_discover_setting_led_gpio
+mouse_24g_pair_mode_check:
+	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:
+	call mouse_device_led_off
+	call mouse_24g_stop
+	fetch 1,mem_reconn_times
+	nbranch mouse_polling_device,blank
+	fetch 1,mem_device_flag
+	beq MODE_24G_DEVICE,mouse_app_enter_hibernate
+	rtn
+
+mouse_24g_fast_conn_attempt_fail:
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag 
+	bbit1 MOUSE_ENABLE_24G_FIRST_AUTO_PAIRING,mouse_24g_start_auto_pair
+	bbit1 MOUSE_ENABLE_AUTO_24G_PARING,mouse_24g_start_auto_pair
+	branch mouse_24g_reconn_dongle_start
+
+
+mouse_24g_auto_pair_attempt_fail:
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag 
+	bbit0 MOUSE_ENABLE_24G_FIRST_AUTO_PAIRING,mouse_24g_attempt_fail_enter_hibernate
+	fetch 1,mem_device_number
+	beq 1,mouse_24g_attempt_fail_enter_hibernate		//24g first mode and only 2.4g device
+	branch mouse_24g_first_bluetooth_reconnect
+
+mouse_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:
+	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_24g_pairing_complete:
+	arg MOUSE_24G_PAIRING_FLAG,queue
+	call mouse_disable_function_flag
+	call mouse_device_poweron_timer_init
+	setarg 0
+	store 2,mem_24g_pair_timeout
+	store 2,mem_24g_reconn_timeout
+	store 1,mem_24g_conn_sm
+	store 1,mem_mouse_move_flag
+	store 1,mem_24g_reconn_type
+
+	call mouse_init_sensor_reset
+	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:
+	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:
+	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
+	branch mouse_24g_hibernate_set
+
+
+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
+	arg 0,rega
+	fetcht 1,mem_mouse_dpi
+	increase 1,temp
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	bbit0 MOUSE_ENABLE_DPI_LEVEL_4,mouse_dpi_led_blink_init_end
+	increase 1,temp
+	sub temp,4,null
+	ncall mouse_dpi_led_blink_count_clean,positive		// blink count:2 3 4 1
+mouse_dpi_led_blink_init_end:	
+	storet 1,mem_mouse_blink_count
+	jam UI_LED_STATE_BLINK_START,mem_mouse_led_type
+	rtn
+
+mouse_dpi_led_blink_count_clean:
+	arg 1,temp
+	rtn
+
+mouse_check_dpi_blink:
+	disable user
+	fetch 1,mem_dpi_led_gpio
+	fetcht 1,mem_mouse_struct_led_gpio
+	isub temp,null
+	nrtn zero
+	fetch 1,mem_mouse_blink_count
+	rtn blank
+	jam 0,mem_adc_low_volatage_led_blink_enable
+	enable user
+	rtn
+
+mouse_device_led_all_off:
+	call mouse_dpi_led_off
+	call mouse_device_24g_led_off
+	call mouse_device_bt1_led_off
+	branch mouse_device_bt2_led_off
+
+mouse_device_led_off:
+	fetch 1,mem_device_flag
+	beq MODE_24G_DEVICE,mouse_device_24g_led_off
+	beq MODE_BT_DEVICE1,mouse_device_bt1_led_off
+	beq MODE_BT_DEVICE2,mouse_device_bt2_led_off
+	rtn
+
+mouse_device_24g_led_off:
+	jam 0,mem_24g_device_led_status
+	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 patch1c_0,mem_patch1c
+	storet 1,mem_mouse_struct_led_gpio
+	arg 0,rega
+	branch ui_led_off_global
+mouse_led_on:
+	bpatch patch1c_1,mem_patch1c
+	storet 1,mem_mouse_struct_led_gpio
+	arg 0,rega
+	branch ui_led_on_global
+
+mouse_ui_led_off_static:
+	fetch 1,mem_config_device_24g_led_gpio
+	isub temp,null
+	call mouse_clear_24g_led_statue,zero
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	bbit0 MOUSE_ENABLE_4_LED,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:
+	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_bt_slave_match:
+	call mouse_store_signal_rssi
+	fetch 1,mem_state
+	isolate1 state_inconn,pdata
+	nrtn true
+	fetch 1,mem_arq
+	isolate1 wack,pdata
+	call power_ctrl_pac_succ_decrs,true
+	ncall power_ctrl_pac_succ_incrs,true
+	branch power_ctrl_start
+
+mouse_le_set_lpm_mult:
+	fetch 1,mem_le_connect_status_flag
+	compare 3,pdata,3
+	nbranch disable_blank,true
+	call app_lpm_mult_enable
+	branch enable_blank
+
+mouse_bt_set_lpm_mult:
+	call l2cap_malloc_is_fifo_empty
+	nrtn blank
+	jam 1,mem_current_sniff_attempt
+	jam 0,mem_current_sniff_timeout
+	branch enable_blank
+
+mouse_set_lpm_mult:
+	fetch 2,mem_ui_state_map
+	bbit1 UI_STATE_BLE_CONNECTED,mouse_le_set_lpm_mult
+	branch mouse_bt_set_lpm_mult
+
+endif
+
+
+
Index: program/patch_sdk.prog
===================================================================
--- /YC1308AF/branch/mouse/USB_4Mode_Project/RongYuan_Project/mouse_public_3mode_usb_sdk/program/patch_sdk.prog	(revision 5271)
+++ /YC1308AF/branch/mouse/USB_4Mode_Project/RongYuan_Project/mouse_public_3mode_usb_sdk/program/patch_sdk.prog	(working copy)
@@ -5,7 +5,11 @@
 define ROMCODE
 define PATCH
 define SDKCODE
+define COMPILE_MOUSE
 ifdef SDKCODE
 INCLUDE "bt_format"
 org 0x0000  // start from patch ram address start
+include patch.prog
+org 0x3c75
+include app_mouse.prog
 endif
