Index: ModuleDemo/25_OTA/bt_demo/BT/patch/patch.prog
===================================================================
--- /YC1121E/SoftCode/1121EB/branch/HciDongle/ModuleDemo/25_OTA/bt_demo/BT/patch/patch.prog	(revision 4526)
+++ /YC1121E/SoftCode/1121EB/branch/HciDongle/ModuleDemo/25_OTA/bt_demo/BT/patch/patch.prog	(working copy)
@@ -5,6 +5,7 @@
 //define WHITE_LIST
 //define MINZHAN_SDK
 define FSC_RTK_HOST
+//define PATCH_DEBUG_LOG
 /******************************************/
 /**************   Start   *****************/
 /******************************************/
@@ -26,13 +27,13 @@
 	beq patch07_2,p_slave_loop
 	beq patch07_6,p_slave_disconnect
 	beq patch08_1,p_roles_newconn_loop				
-	beq patch08_4,p_newconn_init
+	beq patch08_4,z_newconn_init
 	beq patch0a_4,p_rx_type_dispatch
 	beq patch0b_0,p_process_dmh_common
 	beq patch0b_4,p_process_dmh_data_end
 	beq patch0b_5,p_process_dmh_l2cap_packet
-	beq patch0d_2,p_sniff_init
-	beq patch0d_3,p_sniff_exit
+	beq patch0d_2,z_sniff_init
+	beq patch0d_3,z_sniff_exit
 	beq patch0d_4,p_check_attempt
 	beq patch10_1,p_shutdown_radio
 	beq patch10_5,p_set_freq_tx
@@ -44,14 +45,14 @@
 	beq patch14_0,p_lpm_hibernate
 	beq patch14_4,p_lpm_dispatch
 	beq patch15_0,p_lpm_dispatch_unconn
-	beq patch17_1,p_app_init
+	beq patch17_1,z_app_init
 	beq patch17_2,p_app_process_bb_event
 	beq patch1c_0,p_vp_check_get_data
 	branch assert
 pf_patch_ext:
-	beq patch20_7,p_ipc_init
+	beq patch20_7,z_ipc_init
 	beq patch21_4,p_ipc_rx_process
-	beq patch22_2,p_l2cap_init_queue
+	beq patch22_2,z_l2cap_init_queue
 	beq patch22_3,p_queue_insert
 	beq patch22_4,p_queue_delete
 	beq patch24_3,p_l2cap_load_channel_param
@@ -70,20 +71,16 @@
 	beq patch29_7,p_le_send_adv_ind
 	beq patch2a_2,p_le_acknowledge
 //	beq patch2a_4,p_le_scan_match
-	beq patch2b_0,p_le_parse_ll
+	beq patch2b_0,z_le_parse_ll
 	beq patch2b_3,p_le_adv
-	beq patch2b_5,p_parse_connect_req
+	beq patch2b_5,z_parse_connect_req
 	beq patch2c_0,p_le_fifo_malloc_tx
 	beq patch2c_4,p_le_fifo_release_first_node
 	beq patch2d_6,p_init_lmp_work
 	beq patch2e_0,z_parse_lmp_process
 	beq patch2e_1,z_parse_lmp_escape
-	beq patch2e_2,p_parse_lmp_accepted
-//	beq patch2e_3,z_parse_lmp_not_accepted
 	beq patch2e_4,p_send_lmp
 	
-	beq patch31_0,p_check_m0_qspi_lock_and_pause
-	beq patch31_1,p_check_m0_qspi_continue
 	beq patch32_2,p_scheduler_tx_l2cap_pkt
 	beq patch34_5,p_simple_pairing_sequence
 	beq patch34_6,p_master_simple_paring_sequence
@@ -111,7 +108,7 @@
 	call timer_check
 	nsetflag blank,mark_inquiry_on,mark
 	nbranch inquiry_start,blank
-	branch p_hci_send_inquiry_comple
+	branch z_hci_send_inquiry_comple
 	
 p_page_scan_dispatch:
 	fetch 1,mem_scan_mode
@@ -130,9 +127,8 @@
 
 p_le_dispatch:
 	 call le_enable 
-	 call p_le_scan 
-	 call le_adv 
-	 branch le_disable 
+	 call p_le_scan
+	 branch le_dispatch+2
 
 p_le_scan:
 	fetch 1,mem_le_scan_enable
@@ -355,33 +351,13 @@
 	jam 0x46,0x894f 
   	rtn
 
-p_mram_clkon:
-	arg CLOCK_OFF_MRAM,queue
-	branch clk_on
-p_check_m0_qspi_lock_and_pause:
-	call wait_m0_lock_qspi
-	fetch 1,mem_m0_pause_state
-	beq M0_STATE_NORMAL,p_m0_pause
-	rtn
-
-p_m0_pause:
-	call p_enable_m0_work_clk
-	branch m0_pause
-	
-p_check_m0_qspi_continue:
-	fetch 1,mem_m0_pause_state
-	rtnne M0_STATE_PAUSE
-	branch m0_continue
-	// no need close m0 clock. it only for save power case
-	//branch p_disable_m0_work_clk
-
+/*
 p_enable_m0_work_clk:
 	fetch 1,0x1f000
 	arg 0x1c,temp
 	ior temp,pdata
 	store 1,0x1f000
 	rtn
-/*
 p_disable_m0_work_clk:
 	fetch 1,0x1f000
 	arg 0xe3,temp
@@ -389,22 +365,8 @@
 	store 1,0x1f000
 	rtn
 */
-p_ipc_init:
-	//fetch 1,mem_ipc_enable
-	//rtn blank
-	call p_ipc_notify_m0_wakeup_flag_init
-	call p_mram_clkon
-	branch ipc_init+5
 
 
-
-p_buck_setting:
-	fetcht 4,core_lpm_buckctrl
-	storet 4,core_lpm_reg
-	jam 0xe6,0x804d
-	call p_lpm_write_wait_clock
-	jam 0x20,0x8005
-	//branch p_lpm_write_wait_clock
 p_lpm_write_wait_clock:
 	until null,lpo_edge
 	until null,lpo_edge
@@ -421,97 +383,6 @@
 	call p_wdt_kick_watchdog
 endif //FUNCTION_WATCH_DOG
 	rtn
-p_app_init:
-p_hci_init:
-	//jam 0,mem_ota_enable_xip_flag
-	// RAM reset.
-	//jam 0,mem_ota_wdt_en_flag
-	//jam 0,mem_ota_wdt_m0_en
-	
-	jam 0x1c,0x1f000
-	jam 0x05,0x8042
-	call p_buck_setting
-	fetch 1,0x8341
-	store 1,mem_hibernate_flag
-
-	fetch 1,mem_xlmp_conn_state
-	store 1,mem_lmp_conn_state
-
-	ncall z_app_init_efuse_data,wake
-
-	
-ifdef FUNCTION_WATCH_DOG
-	call wdt_init_reset_with_start
-endif //FUNCTION_WATCH_DOG
-	call headset_init
-	
-ifdef MINZHAN_SDK	
-	call p_read_efuse_64_bytes
-endif
-
-	setarg p_app_event_normal_process
-	store 2,mem_cb_bb_event_process
-
-	setarg p_headset_evt_100ms_timer
-	store 2,mem_cb_event_timer
-	setarg p_headset_cb_idle_process
-	store 2,mem_cb_idle_process
-
-	setarg cb_enter_lpm
-	store 2,mem_cb_before_lpm
-	setarg cb_enter_hibernate
-	store 2,mem_cb_before_hibernate 
-
-	
-	//call headset_check_reconnet
-	//call p_ipc_notify_m0_wakeup_flag_init
-	
-	call p_set_gpio_after_lpm,wake
-//	call qspi_release_powerdown_flash,wake
-	nbranch wake_from_power,wake
-wake_for_lpm:
-	call ipc_lock_m0_lmp_wait_work_flag
-	call enable_xip
-	jam BT_EVT_WAKEUP,mem_fifo_temp
-	branch ipc_tx_bt_event
-
-ifdef MINZHAN_SDK
-p_read_efuse_64_bytes:
-	setarg 0
-	arg mem_efuse_64_bytes,rega
-	arg 64,temp
-	branch efuse_read_data
-endif
-
-wake_from_power:
-
-	setarg 0x1171
-	store 2,mem_encryp_inital_value
-	call z_efuse_custom_encryption
-
-	call enable_xip
-
-	// store local addr
-	fetch 6,mem_lap
-	store 6,mem_local_bdaddr
-	fetch 1,mem_hibernate_flag
-	bbit1 5,p_evt_restart
-	jam BT_EVT_RESET,mem_fifo_temp
-	branch ipc_tx_bt_event
-
-p_evt_restart:
-	call p_clear_charge_reset_flag
-	jam BT_EVT_RESTART,mem_fifo_temp
-	branch ipc_tx_bt_event
-
-
-p_set_gpio_after_lpm:
-	call qspi_init_set
-	call qspi_gpio_init
-	nop 2000 // Delay for gpio26 work ready
-	call qspi_release_powerdown_flash
-//	nop 100
-	rtn
 
 	
 //p_app_process_bb_event:
@@ -554,114 +425,19 @@
 	call lmo_fifo_process
 	fetch 1,mem_lmp_to_send
 	rtn blank
-	// set flag
-	arg LOG_POINT_1001,rega
-	fetcht 1,mem_lmp_to_send
-	call debug_log_print
-	fetch 1,mem_lmp_to_send
-/* lmp message to be processed. this will either be because host??? */
-/* wants to send a lmp message or because one resulted from the LMP */
-/* processing section */
-/********* outgoing lmp lookup table *************/
-	bbit1 7,z_send_lmp_escape
-	beq LMP_SETUP_COMPLETE, p_send_lmp_setup_complete
-	beq LMP_SRES,p_send_lmp_sres
-	beq LMP_DETACH,p_send_lmp_detach
-	beq LMP_AU_RAND,p_send_lmp_aurand
-	branch send_lmp+10
-
-p_send_lmp_aurand:
-	fetch 1,mem_pairing_auth
-	branch p_send_lmp_aurand_notpairing,blank
-	call check_localsm
-	call tid_initiate,true				//master
-	ncall tid_reply,true				//slave
-	branch p_send_lmp_aurand_common
-p_send_lmp_aurand_notpairing:
-	call tid_initiate
-p_send_lmp_aurand_common:
-	call generate_random_number
-	force 17,pdata
-	call msg_send_lmp
-	arg mem_random_number,contr
-	call memcpy16
-	branch p_send_lmp_tid
-	
-p_send_lmp_tid:
-	fetcht 1,mem_state_map
-	and_into 1,temp	
-p_send_lmp_end:
-	fetch 1,mem_lmp_to_send
-	lshift pdata,pdata
-
-	bmark0 mark_slave_in_rand_accepted,p_send_lmp_end_master
-	nsetflag master,0,pdata
-	branch send_lmp_exit
-p_send_lmp_end_master:
-	setflag master,0,pdata
-	ixor temp,pdata
-	branch send_lmp_exit
-
-
-	//branch p_hci_send_linkkey_req_event
-	//fetch 2,mem_lmpext_ssp_enable
-	//fetcht 1,mem_remote_sppcap
-	//iand temp,pdata
-	//branch cmd_pair,blank
-	//branch cmd_ssp
-
-p_send_lmp_setup_complete:
-	fetch 1,mem_state
-	set1 state_conn_comp,pdata
-	store 1,mem_state
-	copy clkn_bt,pdata
-	store 4,mem_aurand_send_delay_time
-	fetch 1,mem_lmp_conn_state
-	bbit1 SENT_SETUP_COMPLETE,p_send_lmp_setup_complete_has_sent
-	set1 SENT_SETUP_COMPLETE,pdata
-	store 1,mem_lmp_conn_state
-	call p_hci_send_connection_complete
-	force 1,pdata
-	call msg_send_lmp
-	branch send_lmp_request
-p_send_lmp_setup_complete_has_sent:
-	jam 0,mem_lmp_to_send
-	rtn
-
-p_send_lmp_sres:
-	arg mem_lap,rega
-	call function_e1
-	force 5,pdata
-	call msg_send_lmp
-	fetch 4,mem_input_store
-	istore 4,contw
-	arg mem_sres_tid,temp
-	call special_tid_store
-	call copy_aco
-	call check_localsm
-	branch p_send_lmp_sres_master,true
-	jam DONE_ENCRYP,mem_wait_encryption
-	
-	bmark1 mark_slave_in_rand_accepted,p_send_lmp_sres_startenc_slave
-	fetch 1,mem_pairing_auth
-	rtn blank
-	jam LMP_AU_RAND,mem_lmo_opcode2
-p_send_lmp_sres_master:
-	bmark1 mark_slave_in_rand_accepted,p_send_lmp_sres_startenc_slave
-	fetch 1,mem_link_key_exists
-	rtn blank
-p_send_lmp_sres_startenc:
-	call check_localsm
-	nbranch p_send_lmp_sres_startenc_slave,true
-	rtn
+	branch z_send_lmp
 
-p_send_lmp_sres_startenc_slave:
-	rtnmark0 mark_slave_in_rand_accepted
-	set0 mark_slave_in_rand_accepted,mark
+p_send_lmp_sres_startenc_slave_event_send:
 	call z_hci_send_linkkey_notification
 	branch p_hci_send_auth_complete
 
-	
+p_prepare_disconnect:
+	fetch 1,mem_op
+	set1 op_disconn,pdata
+	store 1,mem_op
+	jam 1,mem_conn_timer
+	rtn
+
 p_send_eir:
 	fetch 1,mem_eir
 	branch send_eir+1,blank
@@ -711,47 +487,8 @@
 	rtn blank
 	fetch 1,mem_lmo_opcode2
 	nrtn blank
-	call cmd_check_plap
-	nbranch p_process_cmd_conn_handle,zero
-//	branch process_cmd+6
-	
-	fetch 1,mem_hci_cmd
-	beq hci_cmd_remote_name_req,cmd_namereq
-	beq hci_cmd_pair,cmd_pair
-	beq hci_cmd_nopair,cmd_nopair
-	beq hci_cmd_linkkey,cmd_has_key
-	beq hci_cmd_nokey,cmd_no_key
-	beq hci_cmd_reject_conn,cmd_disconn
-	beq hci_cmd_role_switch,cmd_role_switch
-	beq hci_cmd_accept_conn,cmd_accept_conn
-	beq hci_cmd_accept_with_switch,cmd_accept_with_switch
-	beq hci_cmd_detach,cmd_detach
-	beq hci_cmd_in_sniff,cmd_in_sniff
-	beq hci_cmd_exit_sniff,p_cmd_exit_sniff
-p_process_cmd_conn_handle:
-	call cmd_check_handle
-	nrtn blank
-	fetch 1,mem_hci_cmd
-	beq hci_cmd_auth,p_cmd_auth
-	beq hci_cmd_send_supervision,p_cmd_send_supervision
-	branch process_cmd_conn_handle+4
-
-p_cmd_send_supervision:
-	jam LMP_SUPERVISION_TIMEOUT,mem_lmo_opcode2
-	branch cmd_exit
-
-p_cmd_exit_sniff:
-	jam LMP_UNSNIFF_REQ,mem_lmo_opcode2
-	branch cmd_exit
+	branch z_process_cmd
 
-p_cmd_auth:
-	fetch 1,mem_op
-	set1 op_auth_req,pdata
-	store 1,mem_op
-	fetch 1,mem_state
-	bbit1 state_linkkey,cmd_auth_sendaurand
-	call p_hci_send_linkkey_req_event
-	branch cmd_exit
 
 p_hci_send_connection_complete:
 	jam 2,mem_conn_status
@@ -773,7 +510,7 @@
 	fetch 1,mem_inquiry_num_check
 	branch z_hci_inquiry_reply_check_eir,blank
 	fetch 1,mem_inquiry_num_responses
-	branch p_hci_send_inquiry_comple,blank
+	branch z_hci_send_inquiry_comple,blank
 	increase -1,pdata
 	store 1,mem_inquiry_num_responses
 	branch z_hci_inquiry_reply_check_eir
@@ -797,7 +534,7 @@
 //	bne 1,assert
 	jam PAGE_TIMEOUT,mem_mesh_event_parameter_status
 	branch p_hci_send_connection_error 
-
+//<quit_connection> will call zcode, so should not push to zcode
 p_master_disconnect:
 	//bpatch patch03_6,mem_patch03
 	call quit_connection
@@ -829,71 +566,10 @@
 	jam 255,mem_mesh_event_para_total_length
 	jam HCI_EVENT_EXT_INQUIRY_RESULT,mem_mesh_event_head_event_code
 	rtn
-
-
-p_hci_send_inquiry_comple:
-	set0 mark_inquiry_on,mark
-	jam 1,mem_mesh_event_para_total_length
-	jam HCI_EVENT_INQUIRY_COMPLETE,mem_mesh_event_head_event_code
-	call p_hci_prepare_send_event
-	setarg 0
-	istore 1,contw
-	branch ipc_hci_tx_start
 	
 	
 
-p_sniff_init:
-	bmark0 mark_sco_flag,p_sniff_init_acl
-	add clkn_bt,0,rega
-	branch p_sniff_init_master,master
-	add clke_bt,0,rega
-	branch p_sniff_init_master
-p_sniff_init_acl:
-	add clkn_bt,3,rega
-	branch p_sniff_init_master,master
-	add clke_bt,3,rega
-p_sniff_init_master:
-	fetcht 2,mem_tsniff
-	deposit rega
-	set0 27,pdata
-	idiv temp
-	fetch 2,mem_dsniff
-	call wait_div_end
-	remainder regc
-	isub regc,pdata
-	branch p_sniff_init_nowrap,positive
-	iadd temp,pdata
-p_sniff_init_nowrap:
-	iadd rega,pdata
-	store 4,mem_sniff_anchor
-	jam SWITCH_FLAG_INIT,mem_switch_flag
-	fetch 1,mem_state
-	set1 state_insniff,pdata
-	store 1,mem_state
-	fetch 1,mem_sniff_attempt
-	store 1,mem_current_sniff_attempt
-	setarg 0
-	store 3,mem_sniff_rcv
-	store 3,mem_sniff_lost
-	store 1,mem_sniff_unint_lost
-	fetch 2,mem_rx_window_sniff
-	store 2,mem_rx_window
-	nbranch  p_sniff_init_mode_change,master
-	add am_addr,-1,queue
-p_sniff_init_mode_change:
-	jam 0x02,mem_mesh_event_parameter_status
-	branch p_hci_send_mode_change
 
-p_sniff_exit:
-	fetch 1,mem_state
-	rtnbit0 state_insniff
-	set0 state_insniff,pdata
-	store 1,mem_state
-	fetch 2,mem_rx_window_init
-	store 2,mem_rx_window
-	disable wake
-	jam 0x00,mem_mesh_event_parameter_status
-	branch p_hci_send_mode_change
 
 p_check_attempt:
 	fetch 1,mem_check_attempt_limit
@@ -908,9 +584,6 @@
 	rtn zero
 	branch p_hci_send_event_command_complete_error_command_disallowed
 
-p_hci_send_mode_change:
-	branch z_hci_send_mode_change
-
 p_roles_newconn_loop:
 	call master_newconn_once
 	branch p_roles_newconn_responded,sync
@@ -921,9 +594,9 @@
 	store 4,mem_next_btclk
 	rtn
 p_roles_newconn_responded:
+	call roles_newconn_responded
 	jam 0,mem_mesh_event_parameter_status
-	call p_hci_send_role_change
-	branch roles_newconn_responded
+	branch z_hci_send_role_change
 
 
 p_role_switch_master:
@@ -944,7 +617,7 @@
 	store 4,mem_next_btclk
 	enable clknt
 	enable master
-	branch p_hci_send_role_change_err
+	branch z_hci_send_role_change_err
 	
 p_roles_replyto_fhs:
 	call rf_setup_time_slave_slot
@@ -969,9 +642,9 @@
 	call calc_clke_offset
 	enable user
 	jam 1,mem_mesh_event_parameter_status
-	branch p_hci_send_role_change
-
+	branch z_hci_send_role_change		
 
+//<quit_connection> will call zcode, so should not push to zcode
 p_slave_disconnect:
 	//bpatch patch07_6,mem_patch07
 	jam 0,mem_tester_emulate
@@ -982,68 +655,6 @@
 	fetch 1,mem_conn_status
 	rtn blank
 	branch p_hci_send_disconnect_complete		
-
-p_newconn_init:
-	call init_lmp_reinit
-	call new_conn_handle
-	sub pdata,15,null
-	nbranch p_newconn_handle_init,positive
-	branch newconn_init+3
-p_newconn_handle_init:
-	jam 1,mem_handle_num
-	branch newconn_init+3
-
-	
-p_hci_send_role_change:
-	jam 8,mem_mesh_event_para_total_length
-	jam HCI_EVENT_ROLE_CHANGE,mem_mesh_event_head_event_code
-	call p_hci_prepare_send_event
-	force 0,pdata
-	istore 1,contw
-	fetch 6,mem_plap
-	istore 6,contw
-	fetch 1,mem_mesh_event_parameter_status
-	istore 1,contw
-	branch ipc_hci_tx_start
-
-p_hci_send_role_change_err:
-	jam 0,mem_mesh_event_parameter_status
-	nbranch p_hci_send_role_change_err_slave,master
-	jam 1,mem_mesh_event_parameter_status
-p_hci_send_role_change_err_slave:
-	jam 8,mem_mesh_event_para_total_length
-	jam HCI_EVENT_ROLE_CHANGE,mem_mesh_event_head_event_code
-	call p_hci_prepare_send_event
-	force 0x35,pdata
-	istore 1,contw
-	fetch 6,mem_plap
-	istore 6,contw
-	fetch 1,mem_mesh_event_parameter_status
-	istore 1,contw
-	branch ipc_hci_tx_start
-
-ifdef ZCODE_TEST
-p_parse_lmp_process:
-	//bpatchx patch2e_0,mem_patch2e
-	// set flag
-	arg LOG_POINT_1000,rega
-	fetcht 2,mem_rxbuf
-	call debug_log_print
-  	fetch 1,mem_lmi_opcode2
-	beq LMP_NOT_ACCEPTED,p_parse_lmp_not_accepted//multi
-	beq LMP_FEATURES_REQ,p_parse_lmp_features_req
-	beq LMP_HOST_CONNECTION_REQ,p_parse_lmp_conn_req
-	beq LMP_DETACH,p_parse_lmp_detach
- 	beq LMP_MAX_SLOT_REQ,p_parse_lmp_max_slot_req
-	beq LMP_FEATURES_RES,p_parse_lmp_features_res
-	beq LMP_AU_RAND,p_parse_lmp_au_rand
-	beq LMP_IN_RAND,p_parse_lmp_in_rand		//in_rand
-	beq LMP_START_ENCRYPTION_REQ, p_parse_lmp_start_encryption_req
-	beq LMP_SRES,p_parse_lmp_sres
-	beq LMP_SNIFF_REQ,p_parse_lmp_sniff_req
-
-	branch parse_lmp_process+5
-endif
 /* lmp is not recognized, check to see if we respond to all messages */ 
 /* rejecting the unrecognized message with PDU not recognized */
 //p_reject_unknown_packet:
@@ -1052,72 +663,11 @@
 //	jam LMP_NOT_ACCEPTED,mem_lmo_opcode2
 //	rtn
 
-p_parse_lmp_accepted:
-	fetch 1,mem_rxbuf+1
-	store 1,mem_lmi_accepted_opcode
-	beq LMP_START_ENCRYPTION_REQ,p_parse_lmp_accepted_start_enc//ok
-	branch parse_lmp_accepted+3
-
-p_parse_lmp_accepted_start_enc:
-	call parse_lmp_accepted_start_enc
-	branch p_hci_send_encryption_change_complete_event
-
-p_parse_lmp_start_encryption_req:
-	call parse_lmp_start_encryption_req+2
-	branch p_hci_send_encryption_change_complete_event
-	
-p_parse_lmp_sres:	
-	arg mem_plap,rega
-	call function_e1
-	fetch 4,mem_rxbuf+1
-	fetcht 4,mem_input_store
-	isub temp,null
-	branch p_authentication_event,zero
-	branch parse_lmp_sres+6
+// <linkkey_ready> will call zcode, so should not push to zcode
 p_authentication_event:
 	call authentication_ok
 	rtnmark1 mark_slave_in_rand_accepted
 	branch p_hci_send_auth_complete
-
-
-p_parse_lmp_sniff_req:
-	fetch 2,mem_default_link_policy_settings
-	bbit0 sniff_mode,lmp_reject_sniff
-	branch parse_lmp_sniff_req+1
-	
-ifdef ZCODE_TEST
-p_parse_lmp_au_rand:
-	call push_tid_follow
-	store 1,mem_sres_tid
-	call lmp_copy_rand
-	jam LMP_SRES,mem_lmo_opcode2
-	fetch 1,mem_link_key_exists
-	nrtn blank
-	fetch 1,mem_state
-	rtnbit1 state_combkey		/* we have comb key, but not verified */
-	call parse_lmp_au_rand_1
-	// send link key request
-	branch p_hci_send_linkkey_req_event
-
-
-p_parse_lmp_detach:
-	fetch 1,mem_rxbuf+1
-	store 1,mem_disconn_reason_send
-//	branch parse_lmp_detach
-	call p_prepare_disconnect
-	branch accept_lmp_msg
-
-	//branch z_hci_send_disconnect_complete
-
-
-p_parse_lmp_in_rand:
-	call lmp_copy_rand
-	jam pincode_state_wait_pincode,mem_pincode_state
-	call p_hci_send_pincode_req_event
-	branch parse_lmp_in_rand_hci
-
-endif
-
 p_linkkey_ready:
 	fetch 1,mem_state
 	bbit1 state_linkkey,linkkey_set
@@ -1164,47 +714,6 @@
 	jam HCI_EVENT_PIN_CODE_REQUEST,mem_mesh_event_head_event_code
 	branch p_hci_send_sec_req
 
-ifdef ZCODE_TEST
-p_parse_lmp_conn_req:
-//	branch p_hci_send_conn_req_event
-
-p_hci_send_conn_req_event:
-	fetch 1,mem_conn_req_status
-	beq 1,p_hci_send_conn_req_event_estimate
-p_hci_send_conn_req_event_1:
-	call p_classic_connection_init
-	//BD_ADDR(6), Class_of_Device(3), Link_Type(1)
-	jam 10,mem_mesh_event_para_total_length
-	jam HCI_EVENT_CONNECTION_REQUEST,mem_mesh_event_head_event_code
-	call p_hci_prepare_send_event
-	//call hci_write_plap
-	fetch 6,mem_plap
-	istore 6,contw
-	// class of device
-	fetch 3,extm_class
-	istore 3,contw
-	// link type, 0:SCO, 1:ACL
-	setarg 1
- 	istore 1,contw
-	fetch 6,mem_plap
-	store 6,mem_bd_addr_new
-	branch ipc_hci_tx_start
-p_hci_send_conn_req_event_estimate:
-	fetch 6,mem_bd_addr_new
-	fetcht 6,mem_plap
-	isub temp,null
-	branch p_hci_send_conn_req_event_1,zero
-	rtn	
-
-p_classic_connection_init:
-	jam 1,mem_conn_req_status
-	jam 0,mem_conn_status
-	//setarg 0
-	//store 8,mem_remote_features
-	//store 8,mem_remote_ext_features0
-	//store 8,mem_remote_ext_features1
-	rtn
-endif
 
 p_ipc_rx_process:
 	fetch 1,mem_ipc_enable
@@ -1217,11 +726,6 @@
 	beq IPC_TYPE_CM0_TO_BT_DATA,ipc_rx_data_buf
 	branch ipc_rx_process+7
 
-p_ipc_notify_m0_wakeup_flag_init:
-	jam 1,mem_wake_flag
-	rtn wake
-	jam 0,mem_wake_flag
-	rtn
 ifdef FUNCTION_WATCH_DOG
 p_wdt_kick_watchdog:
 	//fetch 1,mem_ota_wdt_en_flag
@@ -1312,22 +816,6 @@
 	force LLID_START,type
 	rtn
 */
-ifdef ipc_zcode_test
-p_hci_parse_packet_cmd:
-	call p_ipc_rx_hci_data_two_byte// Opcode
-	store 2,mem_mesh_hci_opcode
-	arg 0x3ff,temp
-	iand temp,temp	//low 10bit
-	storet 2,mem_mesh_hci_opcode_ocf
-	rshift2 pdata,pdata
-	rshift8 pdata,pdata	//high 6bit
-	store 1,mem_mesh_hci_opcode_ogf
-	call p_ipc_rx_hci_data_one_byte	// parameter total length
-	store 1,mem_mesh_hci_cmd_len
-	//branch p_hci_parse_complete_packet
-p_hci_parse_complete_packet:
-	branch z_hci_parse_complete_packet
-endif
 
 /*********
 	HCI_OGF_LINK_CONTROL
@@ -1335,13 +823,6 @@
 
 
 
-p_hci_control_disconnect_le:
-	fetch 1,mem_disconn_reason_send
-	store 1,mem_temp
-	call le_send_terminate_ind
-	branch p_hci_send_event_command_status
-
-
 
 /*********
 	HCI_OGF_LINK_POLICY
@@ -1354,40 +835,17 @@
 
 
 
-	
-p_hci_init_parameter:
-	setarg DEFAULT_LE_EVENT_MASK
-	store 8,mem_mesh_le_event_mask
-	setarg DEFAULT_EVENT_MASK
-	store 8,mem_mesh_event_mask
-	setarg 0
-	store 6,mem_mesh_le_random_address
-	store 1,mem_le_adv_enable
-	store 1,mem_le_scan_enable
-	store 1,mem_scan_mode
 p_hci_init_bd_address:
 	fetch 6,mem_device_public_address
 	store 6,mem_le_lap
 	store 6,mem_lap
 	rtn
 	
+	
 /*********
 	HCI_OGF_LE_CONTROLLER
 *********/
 	
-p_hci_parse_packet_cmd_ogf_le_controller_read_remote_features:
-	call p_ipc_rx_hci_data_two_byte 		//connection handle
-	call p_hci_send_event_command_status
-	branch p_le_send_feature_req
-
-
-p_hci_parse_packet_cmd_ogf_le_controller_connection_update:
-p_hci_parse_packet_cmd_ogf_le_controller_encrypt:
-p_hci_parse_packet_cmd_ogf_le_controller_rand:
-p_hci_parse_packet_cmd_ogf_le_controller_start_encryption:
-p_hci_parse_packet_cmd_ogf_le_controller_ltk_request_reply:
-p_hci_parse_packet_cmd_ogf_le_controller_ltk_request_negative_reply:
-	branch p_hci_send_event_command_complete_error_command_nuknown
 
 
 
@@ -1545,74 +1003,6 @@
 
 
 
-ifdef ipc_zcode_test
-p_hci_parse_packet_acl:
-	call p_ipc_rx_hci_data_two_byte// Opcode
-	store 1,mem_hci_conn_handle
-	call p_hci_parse_packet_acl_FB_flag
-	call p_ipc_rx_hci_data_two_byte// length
-	store 2,mem_temp
-
-	call context_search_conn_handle
-	// TODO: here need change to other work.
-	nrtn zero
-
-	// check is classic or ble
-	add rega,coffset_mode,contr
-	ifetch 1,contr
-	bbit1 mode_le,p_hci_parse_packet_acl_le
-p_hci_parse_packet_acl_classic:
-	fetch 2,mem_temp
-	store 2,mem_alloc_buffer_len
-	call malloc_buffer_is_enough
-	call ice_break,blank
-
-	
-	fetch 2,mem_temp
-	copy pdata,rega
-	copy pdata,regb
-	//TODO: classic need do here
-	call l2cap_malloc//return with pdata ptr
-	copy regb,contw
-	// l2cap payload header
-	fetch 2,mem_temp
-	istore 2,contw
-	istorer type,1,contw
-p_hci_parse_packet_acl_end:
-	fetch 2,mem_temp
-	copy pdata,loopcnt
-	call p_ipc_rx_restore_contr
-	branch memcpy_fast
-	
-
-p_hci_parse_packet_acl_le:	
-	// Think to judge classic or ble.
-	fetch 2,mem_temp	
-	call p_le_fifo_check_full
-	nrtn blank
-	fetch 2,mem_temp
-	copy pdata,rega
-	copy pdata,regb
-	call le_fifo_malloc_tx
-	branch p_hci_parse_packet_acl_end
-
-p_hci_parse_packet_acl_FB_flag:
-	rshift8 pdata,pdata
-	rshift4 pdata,pdata
-	force LLID_CONTINUE,type
-	rtneq BT_ACL_CONT
-	force LLID_START,type
-	rtn
-
-p_le_fifo_check_full:
-	call malloc_buffer_is_full_raw
-	branch setarg1,blank
-	branch setarg0	
-endif
-
-
-
-
 p_hci_send_event_command_complete_error_command_invalid_param:
 	jam COMMAND_INVALID_HCI_COMMAND_PARAMETERS,mem_mesh_command_complete_return_parameter_status
 	branch p_hci_send_event_command_complete_without_payload+1
@@ -1998,119 +1388,6 @@
 
 	
 
-p_le_parse_ll:
-//	fetch 2,mem_le_payload_ptr
-//	copy pdata,contr
-//	ifetch 1,contr
-	fetch 1,mem_le_rxbuf+2
-	beq LL_TERMINATE_IND,p_le_parse_terminate_ind
-	beq LL_FEATURE_REQ,p_le_parse_feature_req
-	beq LL_FEATURE_RSP,p_le_parse_feature_rsp
-	beq LL_VERSION_IND,p_le_parse_version_ind
-	beq LL_CHANNEL_MAP_REQ,p_le_parse_channel_map_req
-	beq LL_LENGTH_REQ,p_le_parse_length_request
-	beq LL_LENGTH_RSP,p_le_parse_length_rsp
-	branch le_parse_ll+2
-
-p_le_parse_channel_map_req:
-	ifetch 5,contr
-	store 5,mem_le_new_map
-	ifetch 2,contr
-	store 2,mem_le_instant
-	fetcht 2,mem_le_event_count
-	isub temp,null
-	nbranch le_parse_terminate_ind,positive
-	fetch 1,mem_le_state
-	set1 lestate_update_map,pdata
-	store 1,mem_le_state
-	rtn	
-
-
-
-//input pdata, temp,return temp
-p_return_small:
-	isub temp,null
-	rtn positive
-	copy pdata,temp
-	rtn
-
-p_le_parse_length_rsp:
-	ifetch 8,contr
-	store 8,mem_remote_rx_max_octets
-
-	fetch 2,mem_remote_rx_max_octets
-	fetcht 2,mem_local_tx_max_octets
-	call p_return_small
-	storet 2,mem_remote_rx_max_octets
-	
-	fetch 2,mem_remote_tx_max_octets
-	fetcht 2,mem_local_rx_max_octets
-	call p_return_small
-	storet 2,mem_remote_tx_max_octets
-	branch z_hci_send_event_le_connection_data_length_change
-	
-p_le_parse_length_request:
-	call p_le_parse_length_rsp
-	//branch p_le_send_data_length_res
-//p_le_send_data_length_res:
-//	arg LL_LENGTH_RSP,regb
-p_le_send_data_length:
-	arg 9,rega
-//	call le_fifo_malloc_tx_ll
-	arg LLID_LE_LL,type
-	call le_fifo_malloc_tx
-	setarg LL_LENGTH_RSP
-	istore 1,contw
-	fetch 8,mem_local_rx_max_octets
-	istore 8,contw
-	rtn
-
-p_le_send_data_length_req:
-	arg LL_LENGTH_REQ,regb
-	branch p_le_send_data_length
-
-p_le_parse_feature_req:
-	call p_le_parse_feature_rsp
-	arg 9,rega
-	arg LLID_LE_LL,type
-	call le_fifo_malloc_tx
-	setarg LL_FEATURE_RSP
-	istore 1,contw
-	fetch 8,mem_le_features
-	istore 8,contw
-	rtn	
-
-p_le_parse_feature_rsp:
-	ifetch 8,contr
-	store 8,mem_mesh_le_features
-	branch z_hci_send_le_read_remote_features_complete
-
-p_le_parse_terminate_ind:
-	ifetch 1,contr
-	store 1,mem_disconn_reason_send
-	branch le_parse_terminate_ind
-
-p_le_parse_version_ind:
-	ifetch 5,contr
-	store 5,mem_mesh_le_version
-	branch  z_hci_send_read_remote_version_information_complete,master
-	fetch 1,mem_mesh_le_version_exchange_times
-	nrtn blank
-	pincrease 1
-	store 1,mem_mesh_le_version_exchange_times
-	branch le_send_version_ind
-
-p_le_send_feature_req:
-	arg 9,rega
-//	arg LL_FEATURE_REQ,regb
-//	call le_fifo_malloc_tx_ll
-	arg LLID_LE_LL,type
-	call le_fifo_malloc_tx
-	setarg LL_FEATURE_REQ
-	istore 1,contw
-	fetch 8,mem_le_features
-	istore 8,contw
-	rtn
 
 
 //p_hci_prepare_send_acl:
@@ -2208,24 +1485,6 @@
 
 	
 
-p_parse_connect_req:
-//	fetch 1,mem_le_state
-//	rtnbit1 state_inconn
-	fetch 1,mem_le_rxbuf
-	fetcht 6,mem_le_lap
-	bbit1 LE_RECEIVER_ADDR_BIT,p_parse_connect_req_random_addr
-	branch p_parse_connect_req_public_addr
-p_parse_connect_req_random_addr:
-	fetcht 6,mem_mesh_le_random_address
-p_parse_connect_req_public_addr:
-	fetch 6,mem_le_rxbuf+8
-	isub temp,null
-	nrtn zero
-	call parse_connect_req+5
-	//arg SLAVE_CONNECTION_HANDLE,temp
-	//fetch 2,mem_le_init_superto
-	//store 2,mem_le_superto
-	branch z_hci_send_event_le_connection_complete
 
 p_le_init_conn:
 	call le_init_conn+1
@@ -2614,11 +1873,6 @@
 
 
 
-
-p_l2cap_init_queue:
-	call p_mram_clkon
-	branch z_l2cap_init_queue
-
 //input1:rega --- mem block
 //output:regb --- block ptr
 p_queue_delete:
@@ -2948,43 +2202,12 @@
 	rtn	
 
 p_le_adv:
-//	branch z_le_adv
-
 	fetch 1,mem_le_adv_enable
 	rtn blank
 	arg le_adv_interval_timer,queue
 	call timer_check
 	nrtn blank
-	disable master
-	enable swfine
-	call le_init_adv
-	call le_next_adv_channel
-	call le_send_adv_ind
-	nbranch le_adv_not_match,match
-	fetch 1,mem_le_req_rcv
-	increase 1,pdata
-	store 1,mem_le_req_rcv
-	fetch 1,mem_le_rxbuf
-	and pdata,0x0f,pdata
-	beq SCAN_REQ,p_le_send_scan_response
-	branch le_adv+18
-
-p_le_send_scan_response:
-	arg SCAN_RSP,temp
-	fetch 1,mem_le_adv_own_addr_type
-	nsetflag blank,LE_SENDER_ADDR_BIT,temp
-	storet 1,mem_le_txheader
-	fetcht 1,mem_le_scan_data_len
-	add temp,6,pdata
-	store 1,mem_le_txlen
-	copy temp,loopcnt
-	fetch 1,mem_le_adv_own_addr_type
-	call p_le_get_public_addr,blank
-	ncall p_le_get_random_addr,blank
-	storet 6,mem_le_txpayload
-	arg mem_le_scan_data,contr
-	call memcpy
-	branch le_transmit_norx
+	branch z_le_adv
 
 
 
@@ -3019,89 +2242,14 @@
 	branch free_buffer	
 
 
-p_simple_pairing_sequence:
-         fetch 1,mem_sp_flag
-         rtn blank
-	jam      SP_FLAG_STANDBY,mem_sp_flag
-	fetch    1,mem_sp_state
-	beq  SP_STAT_CONFIRM_CHECK,p_sp_confirm_check
-	branch simple_pairing_sequence+5
-
-
-
 p_master_simple_paring_sequence:
+p_simple_pairing_sequence:
+	fetch 1,mem_sp_flag
+	nbranch z_simple_pairing_process,blank
 	fetch 1,mem_master_sp_flag
-	rtn blank
-	jam SP_FLAG_STANDBY,mem_master_sp_flag
-	fetch 1,mem_master_sp_state
-	beq SP_MASTER_STAT_START_SKIP,p_sp_master_send_io_cap_get
-	//beq SP_STAT_CONFIRM_SEND,p_master_sp_send_lmp_dhkey_check
-	beq SP_STAT_CONFIRM_CHECK,p_sp_confirm_check
-	//beq SP_STATE_END,p_master_sp_sm_end
-	branch master_simple_paring_sequence+5
-
-p_sp_confirm_check:
-	call sp_confirm_check
-	branch p_hci_send_simple_pairing_complete_event
-
-
-p_master_sp_send_lmp_dhkey_check:
-	branch tid_reply
-
-p_master_sp_sm_end:
-	//jam DEFAULT_STATEMACHINE,mem_sp_localsm
-	jam SP_STAT_DONE,mem_master_sp_state
-	call tid_initiate
-	//jam LMP_AU_RAND,mem_lmo_opcode2
-	call check_localsm_master
-ifdef SIMPLE_PAIRING
-	branch sp_master_key_prarm_push,true
-	branch sp_link_key_prarm_push
-endif
+	nbranch z_simple_pairing_process,blank
 	rtn
 
-p_sp_master_send_io_cap_get:
-	jam SP_FLAG_COMMIT,mem_master_sp_flag
-	jam SP_MASTER_STAT_START_DONE,mem_master_sp_state
-	rtn
-
-p_hci_parse_packet_cmd_ogf_link_control_io_cap_request_reply:	//2B
-	//BD_ADDR, IO_Capability, 
-	call p_ipc_rx_hci_data_six_byte
-	store 6,mem_hci_plap
-	call p_ipc_rx_hci_data_thr_byte
-	store 3,mem_sp_iocap_local
-	arg 7,loopcnt
-	call p_hci_prepare_send_event_command_complete_with_status_success
-	fetch 6,mem_plap
-	istore 6,contw
-	call  ipc_hci_tx_start
-	fetch 1,mem_io_cap_flag
-	beq 1,p_io_cap_master_req
-p_io_cap_slave_req:
-	jam hci_cmd_io_cap,mem_hci_cmd
-//	arg 0xc600,rega
-//	arg 0xcc,temp
-//	call debug_log_print
-	rtn
-p_io_cap_master_req:
-	call cmd_ssp
-	jam LOCAL_STATEMACHINE,mem_sp_localsm //init ssp state machine
-//	arg 0xc600,rega
-//	arg 0xdd,temp
-//	call debug_log_print
-	rtn
-
-p_hci_parse_packet_cmd_ogf_link_control_user_confirmation_request_reply:	//2C
-	call p_ipc_rx_hci_data_six_byte
-	store 6,mem_hci_plap
-	//jam hci_cmd_user_confirm_reply,mem_hci_cmd
-	call p_cmd_user_confirm_reply		//todo
-	arg 7,loopcnt
-	call p_hci_prepare_send_event_command_complete_with_status_success
-	fetch 6,mem_plap
-	istore 6,contw
-	branch ipc_hci_tx_start
 
 p_sp_check_ssp_available:
 	disable true
@@ -3118,23 +2266,6 @@
 	enable true
 	rtn
 
-p_cmd_user_confirm_reply:
-	// process dhkey check now
-	//rtn master
-	jam  SP_STAT_CONFIRM_CALC,mem_sp_state
-	jam  SP_FLAG_COMMIT,mem_sp_flag
-	rtn
-
-p_hci_send_io_cap_response_event:
-	//BD_ADDR-6,IO_Capability-1,OOB_Data_Present-1,Authentication_Requirements-1
-	jam 9,mem_mesh_event_para_total_length
-	jam HCI_EVENT_IO_CAP_RESPONSE,mem_mesh_event_head_event_code
-	call p_hci_prepare_send_event
-	fetch 6,mem_plap
-	istore 6,contw
-	fetch 3,mem_sp_iocap_remote
-	istore 3,contw
-	branch ipc_hci_tx_start
 	
 //p_hci_send_user_confirmation_req_event:
 //	//call p_cmd_user_confirm_reply
@@ -3187,89 +2318,6 @@
 
 
 
-p_hci_send_simple_pairing_complete_event:
-	//Status(1), BD_ADDR(6)
-	jam 7,mem_mesh_event_para_total_length
-	jam HCI_EVENT_SIMPLE_PAIRING_COMPLETE,mem_mesh_event_head_event_code
-	call p_hci_prepare_send_event
-	setarg 0
- 	istore 1,contw
- 
-	fetch 6,mem_plap
-	istore 6,contw
-	branch ipc_hci_tx_start
-
-p_hci_send_encryption_change_complete_event:
-	//Status(1), conn_handle(2), enc_mode(1)
-	jam 4,mem_mesh_event_para_total_length
-	jam HCI_EVENT_ENCRYPTION_CHANGE_COMPLETE,mem_mesh_event_head_event_code
-	call p_hci_prepare_send_event
-	setarg 0
- 	istore 1,contw
- 
-	fetcht 1,mem_conn_handle
-	istoret 2,contw
-
-	//enc_mode
-	setarg 1
- 	istore 1,contw
- 
-	branch ipc_hci_tx_start
-
-ifdef ZCODE_TEST
-p_parse_lmp_not_accepted:
-	fetch 1,mem_rxbuf+1
-	store 1,mem_lmi_accepted_opcode
-	beq LMP_AU_RAND,p_parse_lmp_not_accepted_aurand//ok
-	branch parse_lmp_not_accepted+3
-
-
-p_parse_lmp_not_accepted_aurand:
-	fetch 1,mem_device_option
-	bne dvc_op_headset,parse_lmp_not_accepted_aurand_send_detach
-	fetch 1,mem_link_key_exists
-	rtn blank
-	fetcht 1,mem_reconn_lmp_sm
-	jam 0,mem_reconn_lmp_sm
-	jam 0,mem_link_key_exists
-	fetch 1,mem_rxbuf+2
-	rtnne KEY_MISSING
-	storet 1,mem_reconn_lmp_sm
-	jam LOCAL_STATEMACHINE,mem_sp_localsm
-//	call p_hci_send_io_cap_req_event
-	call p_sp_check_ssp_available
-	nbranch p_hci_send_pincode_req_event,true	
-	rtn	
-
-
-p_parse_lmp_features_req:
-	call parse_lmp_features_req
-p_store_remote_features:
-	// features
-	fetch 8,mem_rxbuf+1
-	store 8,mem_remote_features
-	rtn
-
-p_parse_lmp_max_slot_req:
-	fetch 1,mem_max_slot
-	pincrease 1
-	fetcht 1,mem_rxbuf+1
-	isub temp,null
-	nbranch p_parse_lmp_max_slot_req_not_accept,positive
-p_parse_lmp_max_slot_event:
-	storet 1,mem_max_slot
-	call accept_lmp_msg
-	branch z_hci_send_max_slots_change
-
-p_parse_lmp_max_slot_req_not_accept:
-	jam LMP_NOT_ACCEPTED,mem_lmo_opcode2
-	rtn
-
-
-p_parse_lmp_features_res:
-	call parse_lmp_features_res
-	branch p_store_remote_features
-endif
 
 
 
@@ -3507,7 +2555,7 @@
 */
 p_zcode_entrance_2Bytes_common:
 	store 2, mem_zcode_temp_param0
-	branch p_zcode_entrance 
+	branch p_zcode_entrance
 
 p_zcode_entrance:
 	fetcht 2,mem_zcode_temp_param0 // zcode number @ high 4bit
@@ -3559,20 +2607,7 @@
 	add rega,3,rega
 	loop test_buffer_check_loop
 	rtn
-endif
-
-p_send_lmp_detach:
-	force 2,pdata
-	call msg_send_lmp
-	fetch 1,mem_disconn_reason_send
-	istore 1,contw
-	call send_lmp_request
-p_prepare_disconnect:
-	fetch 1,mem_op
-	set1 op_disconn,pdata
-	store 1,mem_op
-	jam 1,mem_conn_timer
-	rtn	
+endif	
 
 p_le_slave_disconn:
 	call le_att_destroy_notify_pool
@@ -3607,41 +2642,14 @@
 cb_enter_lpm:
 	fetch 1,mem_lmp_conn_state
 	store 1,mem_xlmp_conn_state
-	branch enter_hibernate_prepare_work
+	branch z_enter_hibernate_prepare_work
 	
 
 cb_enter_hibernate:
 //	call ice_break
 	jam MCU_STATE_HIBERNATE,mem_ipc_mcu_state
 	call ipc_check_ack
-
-enter_hibernate_prepare_work:
-	call qspi_powerdown_flash
-p_clear_gpio_before_sleep:	
-	call p_clear_gpio_before_sleep_sub2
-	arg 32,loopcnt
-	arg core_gpio_conf,contr
-p_setgpio_loop:
-	copy contr,contw
-	ifetch 1,contr
-	beq gpcfg_qspi_sck,p_setgpio_pulldown
-	beq gpcfg_qspi_io0,p_setgpio_pulldown
-	beq gpcfg_qspi_io1,p_setgpio_pulldown
-	beq gpcfg_qspi_io3 ,p_setgpio_pulldown
-	beq gpcfg_iic_scl,p_setgpio_pulldown
-	beq gpcfg_iic_sda,p_setgpio_pulldown
-	bne gpcfg_input,p_setgpio_loop_end
-p_setgpio_pulldown:
-	setarg gpcfg_pulldown
-	istore 1,contw
-p_setgpio_loop_end:
-	loop p_setgpio_loop
-	rtn
-
-p_clear_gpio_before_sleep_sub2:	
-	arg 8,loopcnt
-	arg core_gpio_conf1,contr
-	branch p_setgpio_loop
+	branch z_enter_hibernate_prepare_work
 
 p_lpm_dispatch:
 	fetch 1,mem_lpm_mode
Index: ModuleDemo/25_OTA/bt_demo/BT/patch/z.prog
===================================================================
--- /YC1121E/SoftCode/1121EB/branch/HciDongle/ModuleDemo/25_OTA/bt_demo/BT/patch/z.prog	(revision 4526)
+++ /YC1121E/SoftCode/1121EB/branch/HciDongle/ModuleDemo/25_OTA/bt_demo/BT/patch/z.prog	(working copy)
@@ -73,7 +73,6 @@
 z_hci_parse_packet_cmd_ogf_controller_and_baseband:
 	fetch 1,mem_mesh_hci_opcode_ocf
 	beq HCI_SET_EVENT_MASK,z_hci_parse_packet_cmd_ogf_controller_and_baseband_set_event_mask	//01
-	beq HCI_RESET,z_hci_parse_packet_cmd_ogf_controller_and_baseband_reset	//03
 	beq HCI_WRITE_LOCAL_NAME,z_hci_parse_packet_cmd_ogf_controller_and_baseband_write_local_name	//13
 	beq HCI_READ_LOCAL_NAME,z_hci_parse_packet_cmd_ogf_controller_and_baseband_read_local_name	//14
 	beq HCI_READ_PAGE_TIMEOUT,z_hci_parse_packet_cmd_ogf_controller_and_baseband_read_page_timeout	//17
@@ -88,10 +87,6 @@
 	call p_ipc_rx_hci_data_eight_byte
 	store 8,mem_mesh_event_mask
 	branch p_hci_send_event_command_complete_without_payload
-	
-z_hci_parse_packet_cmd_ogf_controller_and_baseband_reset:
-	call p_hci_send_event_command_complete_without_payload
-	branch p_hci_init_parameter
 
 z_hci_parse_packet_cmd_ogf_controller_and_baseband_write_local_name:
 	call p_ipc_rx_restore_contr
@@ -498,7 +493,7 @@
 	// check is classic or ble
 	add rega,coffset_mode,contr
 	ifetch 1,contr
-	bbit1 mode_le,p_hci_control_disconnect_le
+	bbit1 mode_le,z_hci_control_disconnect_le
 
 z_hci_control_disconnect_classic:
 	jam hci_cmd_disconn,mem_hci_cmd
@@ -512,6 +507,11 @@
 	store 1,mem_hci_conn_handle
 	branch p_hci_send_event_command_status
 
+z_hci_control_disconnect_le:
+	fetch 1,mem_disconn_reason_send
+	store 1,mem_temp
+	call le_send_terminate_ind
+	branch p_hci_send_event_command_status
 
 z_hci_parse_packet_cmd_ogf_link_control_create_connection_cancel:	//8
 	call p_ipc_rx_hci_data_six_byte
@@ -635,11 +635,9 @@
 	beq HCI_REMOTE_NAME_REQUEST,z_hci_parse_packet_cmd_ogf_link_control_remote_name_request	//19
 	beq HCI_READ_REMOTE_EXT_FEATURES,z_hci_parse_packet_cmd_ogf_link_control_read_remote_ext_features	//1C
 	beq HCI_READ_REMOTE_VERSION_INFORMATION,z_hci_parse_packet_cmd_ogf_link_control_read_remote_version_information	//1D
-	beq HCI_IO_CAP_REQUEST_REPLY,p_hci_parse_packet_cmd_ogf_link_control_io_cap_request_reply	//2B
-	beq HCI_USER_CONFIRMATION_REQUEST_REPLY,p_hci_parse_packet_cmd_ogf_link_control_user_confirmation_request_reply	//2C
 	beq HCI_READ_REMOTE_SUPPORTED_FEATURES,z_hci_parse_packet_cmd_ogf_link_control_read_remote_supported_features	//1B
 
-	branch p_hci_send_event_command_complete_error_command_nuknown
+	branch z_hci_parse_packet_cmd_ogf_link_control4
 
 z_hci_parse_packet_cmd_ogf_link_control_remote_name_request:	//19
 	call p_ipc_rx_hci_data_six_byte
@@ -714,9 +712,67 @@
 	istore 8,contw
 	branch ipc_hci_tx_start
 
+
+
+
+org z
+z_hci_parse_packet_cmd_ogf_link_control4:
+	fetch 1,mem_mesh_hci_opcode_ocf
+	beq HCI_IO_CAP_REQUEST_REPLY,z_hci_parse_packet_cmd_ogf_link_control_io_cap_request_reply	//2B
+	beq HCI_USER_CONFIRMATION_REQUEST_REPLY,z_hci_parse_packet_cmd_ogf_link_control_user_confirmation_request_reply	//2C
+
+	branch p_hci_send_event_command_complete_error_command_nuknown
+
+z_hci_parse_packet_cmd_ogf_link_control_io_cap_request_reply:	//2B
+	//BD_ADDR, IO_Capability, 
+	call p_ipc_rx_hci_data_six_byte
+	store 6,mem_hci_plap
+	call p_ipc_rx_hci_data_thr_byte
+	store 3,mem_sp_iocap_local
+	arg 7,loopcnt
+	call p_hci_prepare_send_event_command_complete_with_status_success
+	fetch 6,mem_plap
+	istore 6,contw
+	call ipc_hci_tx_start
+	fetch 1,mem_io_cap_flag
+	beq 1,z_io_cap_master_req
+z_io_cap_slave_req:
+	jam hci_cmd_io_cap,mem_hci_cmd
+//	arg 0xc600,rega
+//	arg 0xcc,temp
+//	call debug_log_print
+	rtn
+z_io_cap_master_req:
+	call cmd_ssp
+	jam LOCAL_STATEMACHINE,mem_sp_localsm //init ssp state machine
+//	arg 0xc600,rega
+//	arg 0xdd,temp
+//	call debug_log_print
+	rtn
+
+z_hci_parse_packet_cmd_ogf_link_control_user_confirmation_request_reply:	//2C
+	call p_ipc_rx_hci_data_six_byte
+	store 6,mem_hci_plap
+	//jam hci_cmd_user_confirm_reply,mem_hci_cmd
+	call z_cmd_user_confirm_reply		//todo
+	arg 7,loopcnt
+	call p_hci_prepare_send_event_command_complete_with_status_success
+	fetch 6,mem_plap
+	istore 6,contw
+	branch ipc_hci_tx_start
+
+
+z_cmd_user_confirm_reply:
+	// process dhkey check now
+	//rtn master
+	jam  SP_STAT_CONFIRM_CALC,mem_sp_state
+	jam  SP_FLAG_COMMIT,mem_sp_flag
+	rtn
+
 org z
 z_hci_parse_packet_cmd_ogf_controller_and_baseband2:
 	fetch 1,mem_mesh_hci_opcode_ocf
+	beq HCI_RESET,z_hci_parse_packet_cmd_ogf_controller_and_baseband_reset	//03
 	beq HCI_WRITE_LINK_SUPERVISION_TIMEOUT,z_hci_parse_packet_cmd_ogf_controller_and_baseband_write_link_supervision_timeout  //37
 	beq HCI_WRITE_EXTENDED_INQUIRY_RESPONSE,z_hci_parse_packet_cmd_ogf_controller_and_baseband_write_eir  //52
 	beq HCI_READ_SIMPLE_PAIRING_MODE,z_hci_parse_packet_cmd_ogf_controller_and_baseband_read_simple_pairing_mode //55
@@ -725,6 +781,22 @@
 	beq HCI_WRITE_LE_HOST_SUPPORT,z_hci_parse_packet_cmd_ogf_controller_and_baseband_write_le_host_support	//6D
 	branch p_hci_send_event_command_complete_error_command_nuknown
 
+	
+z_hci_parse_packet_cmd_ogf_controller_and_baseband_reset:
+	call p_hci_send_event_command_complete_without_payload
+	//branch p_hci_init_parameter
+z_hci_init_parameter:
+	setarg DEFAULT_LE_EVENT_MASK
+	store 8,mem_mesh_le_event_mask
+	setarg DEFAULT_EVENT_MASK
+	store 8,mem_mesh_event_mask
+	setarg 0
+	store 6,mem_mesh_le_random_address
+	store 1,mem_le_adv_enable
+	store 1,mem_le_scan_enable
+	store 1,mem_scan_mode
+	branch p_hci_init_bd_address
+
 z_hci_parse_packet_cmd_ogf_controller_and_baseband_write_link_supervision_timeout:  //37
 	call p_hci_parse_connection_handle_check
 	call p_ipc_rx_hci_data_two_byte
@@ -854,13 +926,13 @@
 	fetch 1,mem_mesh_hci_opcode_ocf
 	beq HCI_LE_SET_ADVERTISE_ENABLE,z_hci_parse_packet_cmd_ogf_le_controller_set_adv_enable		//0a
 	beq HCI_LE_CREATE_CONNECTION_CANCEL,z_hci_parse_packet_cmd_ogf_le_controller_create_connection_cancel
-	beq HCI_LE_CONNECTION_UPDATE,p_hci_parse_packet_cmd_ogf_le_controller_connection_update
-	beq HCI_LE_READ_REMOTE_FEATURES,p_hci_parse_packet_cmd_ogf_le_controller_read_remote_features
-	beq HCI_LE_ENCRYPT,p_hci_parse_packet_cmd_ogf_le_controller_encrypt
-	beq HCI_LE_RAND,p_hci_parse_packet_cmd_ogf_le_controller_rand
-	beq HCI_LE_START_ENCRYPTION,p_hci_parse_packet_cmd_ogf_le_controller_start_encryption
-	beq HCI_LE_LONG_TERM_KEY_REQUEST_REPLY,p_hci_parse_packet_cmd_ogf_le_controller_ltk_request_reply
-	beq HCI_LE_LONG_TERM_KEY_REQUEST_NEGATIVE_REPLY,p_hci_parse_packet_cmd_ogf_le_controller_ltk_request_negative_reply
+	beq HCI_LE_CONNECTION_UPDATE,z_hci_parse_packet_cmd_ogf_le_controller_connection_update
+	beq HCI_LE_READ_REMOTE_FEATURES,z_hci_parse_packet_cmd_ogf_le_controller_read_remote_features
+	beq HCI_LE_ENCRYPT,z_hci_parse_packet_cmd_ogf_le_controller_encrypt
+	beq HCI_LE_RAND,z_hci_parse_packet_cmd_ogf_le_controller_rand
+	beq HCI_LE_START_ENCRYPTION,z_hci_parse_packet_cmd_ogf_le_controller_start_encryption
+	beq HCI_LE_LONG_TERM_KEY_REQUEST_REPLY,z_hci_parse_packet_cmd_ogf_le_controller_ltk_request_reply
+	beq HCI_LE_LONG_TERM_KEY_REQUEST_NEGATIVE_REPLY,z_hci_parse_packet_cmd_ogf_le_controller_ltk_request_negative_reply
 
 	beq HCI_LE_READ_WHITE_LIST_SIZE,z_hci_parse_packet_cmd_ogf_le_controller_read_white_list_size
 	beq HCI_LE_CLEAR_WHITE_LIST,z_hci_parse_packet_cmd_ogf_le_controller_clear_white_list
@@ -868,6 +940,30 @@
 	
 	branch z_hci_parse_packet_cmd_ogf_le_controller3
 
+z_hci_parse_packet_cmd_ogf_le_controller_read_remote_features:
+	call p_ipc_rx_hci_data_two_byte 		//connection handle
+	call p_hci_send_event_command_status
+	//branch p_le_send_feature_req
+z_le_send_feature_req:
+	arg 9,rega
+//	arg LL_FEATURE_REQ,regb
+//	call le_fifo_malloc_tx_ll
+	arg LLID_LE_LL,type
+	call le_fifo_malloc_tx
+	setarg LL_FEATURE_REQ
+	istore 1,contw
+	fetch 8,mem_le_features
+	istore 8,contw
+	rtn
+
+
+z_hci_parse_packet_cmd_ogf_le_controller_connection_update:
+z_hci_parse_packet_cmd_ogf_le_controller_encrypt:
+z_hci_parse_packet_cmd_ogf_le_controller_rand:
+z_hci_parse_packet_cmd_ogf_le_controller_start_encryption:
+z_hci_parse_packet_cmd_ogf_le_controller_ltk_request_reply:
+z_hci_parse_packet_cmd_ogf_le_controller_ltk_request_negative_reply:
+	branch p_hci_send_event_command_complete_error_command_nuknown
 
 z_hci_parse_packet_cmd_ogf_le_controller_set_adv_enable:	//OCF:0x000A
 	call p_ipc_rx_hci_data_one_byte
@@ -1278,7 +1374,7 @@
 	//time
 	call p_ipc_rx_hci_data_two_byte
 	store 2,mem_local_tx_max_time
-	call p_le_send_data_length_req
+	call z_le_send_data_length_req
 	
 	arg 3,loopcnt
 	call p_hci_prepare_send_event_command_complete_with_status_success
@@ -1287,6 +1383,21 @@
 	branch ipc_hci_tx_start
 	//branch p_hci_send_event_command_complete_without_payload
 	
+z_le_send_data_length_req:
+	arg LL_LENGTH_REQ,regb
+	//branch z_le_send_data_length
+//z_le_send_data_length:
+	arg 9,rega
+//	call le_fifo_malloc_tx_ll
+	arg LLID_LE_LL,type
+	call le_fifo_malloc_tx
+	setarg LL_LENGTH_RSP
+	istore 1,contw
+	fetch 8,mem_local_rx_max_octets
+	istore 8,contw
+	rtn
+
+
 org z
 z_hci_inquiry_reply_check_eir:
 	fetch 1,mem_inquiry_mode
@@ -1428,49 +1539,7 @@
 	istore 6,contw
 	branch ipc_hci_tx_start
 
-org z
-z_hci_send_le_read_remote_features_complete:
-	fetch 8,mem_mesh_le_event_mask
-	rtnbit0 LE_READ_REMOTE_FEATURES_COMPLETE_EVENT
-	jam 12,mem_mesh_event_para_total_length
-	jam HCI_EVENT_LE_META_EVENT,mem_mesh_event_head_event_code
-	call p_hci_prepare_send_event
-	setarg HCI_LE_SUBEVENT_REMOTE_FEATURE_COMPLETE
-	istore 2,contw		//subevent code & status
-	fetch 1,mem_le_conn_handle
-	istore 2,contw
-	fetch 8,mem_mesh_le_features
-	istore 8,contw
-	branch ipc_hci_tx_start
 
-org z
-z_hci_send_event_le_connection_data_length_change:
-	//fetch 8,mem_mesh_le_event_mask
-	//rtnbit0 LE_CONNECTION_UPDATE_COMPLETE_EVENT
-	jam 11,mem_mesh_event_para_total_length
-	jam HCI_EVENT_LE_META_EVENT,mem_mesh_event_head_event_code
-	call p_hci_prepare_send_event
-	setarg HCI_LE_SUBEVENT_DATA_LENGTH_CHANGE_EVENT
-	istore 1,contw		//subevent code
-	fetch 1,mem_le_conn_handle
-	istore 2,contw
-	fetch 8,mem_remote_rx_max_octets
-	istore 8,contw
-	branch ipc_hci_tx_start
-
-z_hci_send_read_remote_version_information_complete:
-	fetch 8,mem_mesh_le_event_mask
-	rtnbit0 READ_REMOTE_VERSION_INFORMATION_COMPLETE_EVENT
-	jam 8,mem_mesh_event_para_total_length
-	jam HCI_EVENT_READ_REMOTE_VERSION_INFORMATION_COMPLETE,mem_mesh_event_head_event_code
-	call p_hci_prepare_send_event
-	setarg COMMAND_SUCCEEDED
-	istore 1,contw		//subevent code & status
-	fetch 1,mem_le_conn_handle
-	istore 2,contw
-	fetch 5,mem_mesh_le_version
-	istore 5,contw
-	branch ipc_hci_tx_start
 
 org z
 z_parse_lmp_escape:
@@ -1501,17 +1570,28 @@
 
 z_parse_lmpext_iocap_req:
 	call iocap_lmpext_load
-	call p_hci_send_io_cap_response_event
+	call z_hci_send_io_cap_response_event
 	branch p_hci_send_io_cap_req_event	
 
 z_parse_lmpext_iocap_res:
-	call p_hci_send_io_cap_response_event
+	call z_hci_send_io_cap_response_event
 	call iocap_lmpext_load
 	call iocap_lmpext_hci
 	jam SP_FLAG_COMMIT,mem_master_sp_flag
 	jam SP_STAT_KEY_SEND,mem_master_sp_state
 	rtn	
 	
+z_hci_send_io_cap_response_event:
+	//BD_ADDR-6,IO_Capability-1,OOB_Data_Present-1,Authentication_Requirements-1
+	jam 9,mem_mesh_event_para_total_length
+	jam HCI_EVENT_IO_CAP_RESPONSE,mem_mesh_event_head_event_code
+	call p_hci_prepare_send_event
+	fetch 6,mem_plap
+	istore 6,contw
+	fetch 3,mem_sp_iocap_remote
+	istore 3,contw
+	branch ipc_hci_tx_start
+
 org z
 // input --- mem_encryp_inital_value  output --- mem_encryp_inital_value
 z_efuse_custom_encryption:
@@ -1590,8 +1670,6 @@
 	store 1,mem_mesh_hci_cmd_len
 	branch z_hci_parse_complete_packet
 
-
-org z
 z_hci_parse_packet_acl:
 	call p_ipc_rx_hci_data_two_byte// Opcode
 	store 1,mem_hci_conn_handle
@@ -1681,13 +1759,6 @@
 
 
 org z
-z_app_init_efuse_data:
-	setarg EFUSE_UCODE_ADC_GPIO_0_5
-	arg mem_efuse_adc_offset,rega
-	arg 8,temp
-	branch efuse_read_data
-
-org z
 z_parse_lmp_process:
 	//bpatchx patch2e_0,mem_patch2e
 	// set flag
@@ -1695,19 +1766,47 @@
 	fetcht 2,mem_rxbuf
 	call debug_log_print
   	fetch 1,mem_lmi_opcode2
+	beq LMP_ACCEPTED,z_parse_lmp_accepted//multi
 	beq LMP_NOT_ACCEPTED,z_parse_lmp_not_accepted//multi
+	beq LMP_START_ENCRYPTION_REQ, z_parse_lmp_start_encryption_req
 	beq LMP_FEATURES_REQ,z_parse_lmp_features_req
-	beq LMP_HOST_CONNECTION_REQ,z_parse_lmp_conn_req
-	beq LMP_DETACH,z_parse_lmp_detach
- 	beq LMP_MAX_SLOT_REQ,z_parse_lmp_max_slot_req
 	beq LMP_FEATURES_RES,z_parse_lmp_features_res
-	beq LMP_AU_RAND,z_parse_lmp_au_rand
+	beq LMP_DETACH,z_parse_lmp_detach
 	beq LMP_IN_RAND,z_parse_lmp_in_rand		//in_rand
-	beq LMP_START_ENCRYPTION_REQ, p_parse_lmp_start_encryption_req
-	beq LMP_SRES,p_parse_lmp_sres
-	beq LMP_SNIFF_REQ,p_parse_lmp_sniff_req
 
-	branch parse_lmp_process+5
+	branch z_parse_lmp_process_sub
+
+
+z_parse_lmp_accepted:
+	fetch 1,mem_rxbuf+1
+	store 1,mem_lmi_accepted_opcode
+	beq LMP_START_ENCRYPTION_REQ,z_parse_lmp_accepted_start_enc//ok
+	branch parse_lmp_accepted+3
+
+z_parse_lmp_accepted_start_enc:
+	call parse_lmp_accepted_start_enc
+	branch z_hci_send_encryption_change_complete_event
+
+z_parse_lmp_start_encryption_req:
+	call parse_lmp_start_encryption_req+2
+	branch z_hci_send_encryption_change_complete_event
+
+z_hci_send_encryption_change_complete_event:
+	//Status(1), conn_handle(2), enc_mode(1)
+	jam 4,mem_mesh_event_para_total_length
+	jam HCI_EVENT_ENCRYPTION_CHANGE_COMPLETE,mem_mesh_event_head_event_code
+	call p_hci_prepare_send_event
+	setarg 0
+ 	istore 1,contw
+ 
+	fetcht 1,mem_conn_handle
+	istoret 2,contw
+
+	//enc_mode
+	setarg 1
+ 	istore 1,contw
+ 
+	branch ipc_hci_tx_start
 
 z_parse_lmp_not_accepted:
 	fetch 1,mem_rxbuf+1
@@ -1749,6 +1848,44 @@
 	call parse_lmp_features_res
 	branch z_store_remote_features
 
+
+z_parse_lmp_in_rand:
+	call lmp_copy_rand
+	jam pincode_state_wait_pincode,mem_pincode_state
+	call p_hci_send_pincode_req_event
+	branch parse_lmp_in_rand_hci
+
+org z
+z_parse_lmp_process_sub:
+  	fetch 1,mem_lmi_opcode2
+	beq LMP_SRES,z_parse_lmp_sres
+	beq LMP_SNIFF_REQ,z_parse_lmp_sniff_req
+	beq LMP_AU_RAND,z_parse_lmp_au_rand
+
+	beq LMP_HOST_CONNECTION_REQ,z_parse_lmp_conn_req
+ 	beq LMP_MAX_SLOT_REQ,z_parse_lmp_max_slot_req
+
+	//branch z_parse_lmp_process_sub
+	branch parse_lmp_process+5
+
+	
+z_parse_lmp_sres:	
+	arg mem_plap,rega
+	call function_e1
+	fetch 4,mem_rxbuf+1
+	fetcht 4,mem_input_store
+	isub temp,null
+	branch p_authentication_event,zero
+	branch parse_lmp_sres+6
+
+
+z_parse_lmp_sniff_req:
+	fetch 2,mem_default_link_policy_settings
+	bbit0 sniff_mode,lmp_reject_sniff
+	branch parse_lmp_sniff_req+1
+
+
+
 z_parse_lmp_au_rand:
 	call push_tid_follow
 	store 1,mem_sres_tid
@@ -1762,13 +1899,7 @@
 	// send link key request
 	branch p_hci_send_linkkey_req_event
 
-z_parse_lmp_in_rand:
-	call lmp_copy_rand
-	jam pincode_state_wait_pincode,mem_pincode_state
-	call p_hci_send_pincode_req_event
-	branch parse_lmp_in_rand_hci
 
-org z
 z_parse_lmp_max_slot_req:
 	fetch 1,mem_max_slot
 	pincrease 1
@@ -1834,4 +1965,712 @@
 	//store 8,mem_remote_features
 	//store 8,mem_remote_ext_features0
 	//store 8,mem_remote_ext_features1
-	rtn
\ No newline at end of file
+	rtn
+
+org z
+z_hci_send_inquiry_comple:
+	set0 mark_inquiry_on,mark
+	jam 1,mem_mesh_event_para_total_length
+	jam HCI_EVENT_INQUIRY_COMPLETE,mem_mesh_event_head_event_code
+	call p_hci_prepare_send_event
+	setarg 0
+	istore 1,contw
+	branch ipc_hci_tx_start
+
+
+
+
+org z
+z_app_init:
+	//jam 0,mem_ota_enable_xip_flag
+	// RAM reset.
+	//jam 0,mem_ota_wdt_en_flag
+	//jam 0,mem_ota_wdt_m0_en
+	
+	jam 0x1c,0x1f000
+	jam 0x05,0x8042
+	call z_buck_setting
+	fetch 1,0x8341
+	store 1,mem_hibernate_flag
+
+	fetch 1,mem_xlmp_conn_state
+	store 1,mem_lmp_conn_state
+
+	ncall z_app_init_efuse_data,wake
+
+	
+ifdef FUNCTION_WATCH_DOG
+	call wdt_init_reset_with_start
+endif //FUNCTION_WATCH_DOG
+	call headset_init
+	
+ifdef MINZHAN_SDK	
+	call z_read_efuse_64_bytes
+endif
+
+	setarg p_app_event_normal_process
+	store 2,mem_cb_bb_event_process
+
+	setarg p_headset_evt_100ms_timer
+	store 2,mem_cb_event_timer
+	setarg p_headset_cb_idle_process
+	store 2,mem_cb_idle_process
+
+	setarg cb_enter_lpm
+	store 2,mem_cb_before_lpm
+	setarg cb_enter_hibernate
+	store 2,mem_cb_before_hibernate 
+
+	
+	//call headset_check_reconnet
+	//call p_ipc_notify_m0_wakeup_flag_init
+	
+	call z_set_gpio_after_lpm,wake
+//	call qspi_release_powerdown_flash,wake
+	nbranch wake_from_power,wake
+wake_for_lpm:
+	call ipc_lock_m0_lmp_wait_work_flag
+	call enable_xip
+	jam BT_EVT_WAKEUP,mem_fifo_temp
+	branch ipc_tx_bt_event
+
+ifdef MINZHAN_SDK
+z_read_efuse_64_bytes:
+	setarg 0
+	arg mem_efuse_64_bytes,rega
+	arg 64,temp
+	branch efuse_read_data
+endif
+
+wake_from_power:
+	// store local addr
+	fetch 6,mem_lap
+	store 6,mem_local_bdaddr
+
+	call enable_xip
+
+	fetch 1,mem_hibernate_flag
+	bbit1 5,z_evt_restart
+	jam BT_EVT_RESET,mem_fifo_temp
+	call ipc_tx_bt_event
+
+	setarg 0x1171
+	store 2,mem_encryp_inital_value
+	branch z_efuse_custom_encryption
+
+z_evt_restart:
+	call p_clear_charge_reset_flag
+	jam BT_EVT_RESTART,mem_fifo_temp
+	branch ipc_tx_bt_event
+
+
+z_set_gpio_after_lpm:
+	call qspi_init_set
+	call qspi_gpio_init
+	nop 2000 // Delay for gpio26 work ready
+	branch qspi_release_powerdown_flash
+//	nop 100
+	//rtn
+
+z_buck_setting:
+	fetcht 4,core_lpm_buckctrl
+	storet 4,core_lpm_reg
+	jam 0xe6,0x804d
+	call p_lpm_write_wait_clock
+	jam 0x20,0x8005
+	branch p_lpm_write_wait_clock
+
+
+z_app_init_efuse_data:
+	setarg EFUSE_UCODE_ADC_GPIO_0_5
+	arg mem_efuse_adc_offset,rega
+	arg 8,temp
+	branch efuse_read_data
+
+
+org z
+z_ipc_init:
+	//fetch 1,mem_ipc_enable
+	//rtn blank
+	call z_ipc_notify_m0_wakeup_flag_init
+	call z_mram_clkon
+	branch ipc_init+5
+
+z_mram_clkon:
+	arg CLOCK_OFF_MRAM,queue
+	branch clk_on
+
+z_ipc_notify_m0_wakeup_flag_init:
+	jam 1,mem_wake_flag
+	rtn wake
+	jam 0,mem_wake_flag
+	rtn
+
+
+
+org z
+z_le_adv:
+	disable master
+	enable swfine
+	call le_init_adv
+	call le_next_adv_channel
+	call le_send_adv_ind
+	nbranch le_adv_not_match,match
+	fetch 1,mem_le_req_rcv
+	increase 1,pdata
+	store 1,mem_le_req_rcv
+	fetch 1,mem_le_rxbuf
+	and pdata,0x0f,pdata
+	beq SCAN_REQ,z_le_send_scan_response
+	branch le_adv+18
+
+z_le_send_scan_response:
+	arg SCAN_RSP,temp
+	fetch 1,mem_le_adv_own_addr_type
+	nsetflag blank,LE_SENDER_ADDR_BIT,temp
+	storet 1,mem_le_txheader
+	fetcht 1,mem_le_scan_data_len
+	add temp,6,pdata
+	store 1,mem_le_txlen
+	copy temp,loopcnt
+	fetch 1,mem_le_adv_own_addr_type
+	call p_le_get_public_addr,blank
+	ncall p_le_get_random_addr,blank
+	storet 6,mem_le_txpayload
+	arg mem_le_scan_data,contr
+	call memcpy
+	branch le_transmit_norx
+
+org z
+z_simple_pairing_process:
+	call z_master_simple_paring_sequence
+z_simple_pairing_sequence:
+	fetch 1,mem_sp_flag
+	rtn blank
+	jam      SP_FLAG_STANDBY,mem_sp_flag
+	fetch    1,mem_sp_state
+	beq  SP_STAT_CONFIRM_CHECK,z_sp_confirm_check
+	branch simple_pairing_sequence+5
+
+z_master_simple_paring_sequence:
+	fetch 1,mem_master_sp_flag
+	rtn blank
+	jam SP_FLAG_STANDBY,mem_master_sp_flag
+	fetch 1,mem_master_sp_state
+	beq SP_MASTER_STAT_START_SKIP,z_sp_master_send_io_cap_get
+	//beq SP_STAT_CONFIRM_SEND,p_master_sp_send_lmp_dhkey_check
+	beq SP_STAT_CONFIRM_CHECK,z_sp_confirm_check
+	//beq SP_STATE_END,p_master_sp_sm_end
+	branch master_simple_paring_sequence+5
+
+z_sp_confirm_check:
+	call sp_confirm_check
+	//branch p_hci_send_simple_pairing_complete_event
+z_hci_send_simple_pairing_complete_event:
+	//Status(1), BD_ADDR(6)
+	jam 7,mem_mesh_event_para_total_length
+	jam HCI_EVENT_SIMPLE_PAIRING_COMPLETE,mem_mesh_event_head_event_code
+	call p_hci_prepare_send_event
+	setarg 0
+ 	istore 1,contw
+ 
+	fetch 6,mem_plap
+	istore 6,contw
+	branch ipc_hci_tx_start
+
+
+z_master_sp_send_lmp_dhkey_check:
+	branch tid_reply
+
+z_master_sp_sm_end:
+	//jam DEFAULT_STATEMACHINE,mem_sp_localsm
+	jam SP_STAT_DONE,mem_master_sp_state
+	call tid_initiate
+	//jam LMP_AU_RAND,mem_lmo_opcode2
+	call check_localsm_master
+ifdef SIMPLE_PAIRING
+	branch sp_master_key_prarm_push,true
+	branch sp_link_key_prarm_push
+endif
+	rtn
+
+z_sp_master_send_io_cap_get:
+	jam SP_FLAG_COMMIT,mem_master_sp_flag
+	jam SP_MASTER_STAT_START_DONE,mem_master_sp_state
+	rtn
+
+
+org z
+z_enter_hibernate_prepare_work:
+	call qspi_powerdown_flash
+z_clear_gpio_before_sleep:	
+	call z_clear_gpio_before_sleep_sub2
+	arg 32,loopcnt
+	arg core_gpio_conf,contr
+z_setgpio_loop:
+	copy contr,contw
+	ifetch 1,contr
+	beq gpcfg_qspi_sck,z_setgpio_pulldown
+	beq gpcfg_qspi_io0,z_setgpio_pulldown
+	beq gpcfg_qspi_io1,z_setgpio_pulldown
+	beq gpcfg_qspi_io3 ,z_setgpio_pulldown
+	beq gpcfg_iic_scl,z_setgpio_pulldown
+	beq gpcfg_iic_sda,z_setgpio_pulldown
+	bne gpcfg_input,z_setgpio_loop_end
+z_setgpio_pulldown:
+	setarg gpcfg_pulldown
+	istore 1,contw
+z_setgpio_loop_end:
+	loop z_setgpio_loop
+	rtn
+
+z_clear_gpio_before_sleep_sub2:	
+	arg 8,loopcnt
+	arg core_gpio_conf1,contr
+	branch z_setgpio_loop
+
+
+
+
+
+
+
+org z
+z_process_cmd:
+	call cmd_check_plap
+	nbranch z_process_cmd_conn_handle,zero
+//	branch process_cmd+6
+	
+	fetch 1,mem_hci_cmd
+	beq hci_cmd_remote_name_req,cmd_namereq
+	beq hci_cmd_pair,cmd_pair
+	beq hci_cmd_nopair,cmd_nopair
+	beq hci_cmd_linkkey,cmd_has_key
+	beq hci_cmd_nokey,cmd_no_key
+	beq hci_cmd_reject_conn,cmd_disconn
+	beq hci_cmd_role_switch,cmd_role_switch
+	beq hci_cmd_accept_conn,cmd_accept_conn
+	beq hci_cmd_accept_with_switch,cmd_accept_with_switch
+	beq hci_cmd_detach,cmd_detach
+	beq hci_cmd_in_sniff,cmd_in_sniff
+	beq hci_cmd_exit_sniff,z_cmd_exit_sniff
+z_process_cmd_conn_handle:
+	call cmd_check_handle
+	nrtn blank
+	fetch 1,mem_hci_cmd
+	beq hci_cmd_auth,z_cmd_auth
+	beq hci_cmd_send_supervision,z_cmd_send_supervision
+	branch process_cmd_conn_handle+4
+
+
+z_cmd_send_supervision:
+	jam LMP_SUPERVISION_TIMEOUT,mem_lmo_opcode2
+	branch cmd_exit
+
+z_cmd_exit_sniff:
+	jam LMP_UNSNIFF_REQ,mem_lmo_opcode2
+	branch cmd_exit
+
+z_cmd_auth:
+	fetch 1,mem_op
+	set1 op_auth_req,pdata
+	store 1,mem_op
+	fetch 1,mem_state
+	bbit1 state_linkkey,cmd_auth_sendaurand
+	call p_hci_send_linkkey_req_event
+	branch cmd_exit
+
+org z
+z_sniff_init:
+	bmark0 mark_sco_flag,z_sniff_init_acl
+	add clkn_bt,0,rega
+	branch z_sniff_init_master,master
+	add clke_bt,0,rega
+	branch z_sniff_init_master
+z_sniff_init_acl:
+	add clkn_bt,3,rega
+	branch z_sniff_init_master,master
+	add clke_bt,3,rega
+z_sniff_init_master:
+	fetcht 2,mem_tsniff
+	deposit rega
+	set0 27,pdata
+	idiv temp
+	fetch 2,mem_dsniff
+	call wait_div_end
+	remainder regc
+	isub regc,pdata
+	branch z_sniff_init_nowrap,positive
+	iadd temp,pdata
+z_sniff_init_nowrap:
+	iadd rega,pdata
+	store 4,mem_sniff_anchor
+	jam SWITCH_FLAG_INIT,mem_switch_flag
+	fetch 1,mem_state
+	set1 state_insniff,pdata
+	store 1,mem_state
+	fetch 1,mem_sniff_attempt
+	store 1,mem_current_sniff_attempt
+	setarg 0
+	store 3,mem_sniff_rcv
+	store 3,mem_sniff_lost
+	store 1,mem_sniff_unint_lost
+	fetch 2,mem_rx_window_sniff
+	store 2,mem_rx_window
+	nbranch z_sniff_init_mode_change,master
+	add am_addr,-1,queue
+z_sniff_init_mode_change:
+	jam 0x02,mem_mesh_event_parameter_status
+	branch z_hci_send_mode_change
+
+org z
+z_sniff_exit:
+	fetch 1,mem_state
+	rtnbit0 state_insniff
+	set0 state_insniff,pdata
+	store 1,mem_state
+	fetch 2,mem_rx_window_init
+	store 2,mem_rx_window
+	disable wake
+	jam 0x00,mem_mesh_event_parameter_status
+	branch z_hci_send_mode_change
+
+
+org z
+z_hci_send_role_change:
+	jam 8,mem_mesh_event_para_total_length
+	jam HCI_EVENT_ROLE_CHANGE,mem_mesh_event_head_event_code
+	call p_hci_prepare_send_event
+	force 0,pdata
+	istore 1,contw
+	fetch 6,mem_plap
+	istore 6,contw
+	fetch 1,mem_mesh_event_parameter_status
+	istore 1,contw
+	branch ipc_hci_tx_start
+
+
+
+org z
+z_hci_send_role_change_err:
+	jam 0,mem_mesh_event_parameter_status
+	nbranch z_hci_send_role_change_err_slave,master
+	jam 1,mem_mesh_event_parameter_status
+z_hci_send_role_change_err_slave:
+	jam 8,mem_mesh_event_para_total_length
+	jam HCI_EVENT_ROLE_CHANGE,mem_mesh_event_head_event_code
+	call p_hci_prepare_send_event
+	force 0x35,pdata
+	istore 1,contw
+	fetch 6,mem_plap
+	istore 6,contw
+	fetch 1,mem_mesh_event_parameter_status
+	istore 1,contw
+	branch ipc_hci_tx_start
+
+
+org z
+z_newconn_init:
+	call init_lmp_reinit
+	call new_conn_handle
+	sub pdata,15,null
+	nbranch z_newconn_handle_init,positive
+	branch newconn_init+3
+z_newconn_handle_init:
+	jam 1,mem_handle_num
+	branch newconn_init+3
+
+
+org z
+z_parse_connect_req:
+//	fetch 1,mem_le_state
+//	rtnbit1 state_inconn
+	fetch 1,mem_le_rxbuf
+	fetcht 6,mem_le_lap
+	bbit1 LE_RECEIVER_ADDR_BIT,z_parse_connect_req_random_addr
+	branch z_parse_connect_req_public_addr
+z_parse_connect_req_random_addr:
+	fetcht 6,mem_mesh_le_random_address
+z_parse_connect_req_public_addr:
+	fetch 6,mem_le_rxbuf+8
+	isub temp,null
+	nrtn zero
+	call parse_connect_req+5
+	//arg SLAVE_CONNECTION_HANDLE,temp
+	//fetch 2,mem_le_init_superto
+	//store 2,mem_le_superto
+	branch z_hci_send_event_le_connection_complete
+
+
+org z 
+z_send_lmp:
+ifdef PATCH_DEBUG_LOG
+	// set flag
+	arg LOG_POINT_1001,rega
+	fetcht 1,mem_lmp_to_send
+	call debug_log_print
+endif
+	fetch 1,mem_lmp_to_send
+/* lmp message to be processed. this will either be because host??? */
+/* wants to send a lmp message or because one resulted from the LMP */
+/* processing section */
+/********* outgoing lmp lookup table *************/
+	bbit1 7,z_send_lmp_escape
+	beq LMP_SETUP_COMPLETE, z_send_lmp_setup_complete
+	beq LMP_SRES,z_send_lmp_sres
+	beq LMP_DETACH,z_send_lmp_detach
+	beq LMP_AU_RAND,z_send_lmp_aurand
+	branch send_lmp+10
+
+z_send_lmp_aurand:
+	fetch 1,mem_pairing_auth
+	branch z_send_lmp_aurand_notpairing,blank
+	call check_localsm
+	call tid_initiate,true				//master
+	ncall tid_reply,true				//slave
+	branch z_send_lmp_aurand_common
+z_send_lmp_aurand_notpairing:
+	call tid_initiate
+z_send_lmp_aurand_common:
+	call generate_random_number
+	force 17,pdata
+	call msg_send_lmp
+	arg mem_random_number,contr
+	call memcpy16
+	//branch p_send_lmp_tid
+z_send_lmp_tid:
+	fetcht 1,mem_state_map
+	and_into 1,temp	
+z_send_lmp_end:
+	fetch 1,mem_lmp_to_send
+	lshift pdata,pdata
+
+	bmark0 mark_slave_in_rand_accepted,z_send_lmp_end_master
+	nsetflag master,0,pdata
+	branch send_lmp_exit
+z_send_lmp_end_master:
+	setflag master,0,pdata
+	ixor temp,pdata
+	branch send_lmp_exit
+
+
+z_send_lmp_setup_complete:
+	fetch 1,mem_state
+	set1 state_conn_comp,pdata
+	store 1,mem_state
+	copy clkn_bt,pdata
+	store 4,mem_aurand_send_delay_time
+	fetch 1,mem_lmp_conn_state
+	bbit1 SENT_SETUP_COMPLETE,z_send_lmp_setup_complete_has_sent
+	set1 SENT_SETUP_COMPLETE,pdata
+	store 1,mem_lmp_conn_state
+	force 1,pdata
+	call msg_send_lmp
+	call send_lmp_request
+	branch p_hci_send_connection_complete
+
+z_send_lmp_setup_complete_has_sent:
+	jam 0,mem_lmp_to_send
+	rtn
+
+
+z_send_lmp_detach:
+	force 2,pdata
+	call msg_send_lmp
+	fetch 1,mem_disconn_reason_send
+	istore 1,contw
+	call send_lmp_request
+	branch p_prepare_disconnect
+
+org z 
+z_send_lmp_sres:
+	arg mem_lap,rega
+	call function_e1
+	force 5,pdata
+	call msg_send_lmp
+	fetch 4,mem_input_store
+	istore 4,contw
+	arg mem_sres_tid,temp
+	call special_tid_store
+	call copy_aco
+	call check_localsm
+	branch z_send_lmp_sres_master,true
+	jam DONE_ENCRYP,mem_wait_encryption
+	
+	bmark1 mark_slave_in_rand_accepted,z_send_lmp_sres_startenc_slave
+	fetch 1,mem_pairing_auth
+	rtn blank
+	jam LMP_AU_RAND,mem_lmo_opcode2
+z_send_lmp_sres_master:
+	bmark1 mark_slave_in_rand_accepted,z_send_lmp_sres_startenc_slave
+	fetch 1,mem_link_key_exists
+	rtn blank
+z_send_lmp_sres_startenc:
+	call check_localsm
+	nbranch z_send_lmp_sres_startenc_slave,true
+	rtn
+
+z_send_lmp_sres_startenc_slave:
+	rtnmark0 mark_slave_in_rand_accepted
+	set0 mark_slave_in_rand_accepted,mark
+	branch p_send_lmp_sres_startenc_slave_event_send
+
+
+
+
+
+org z
+z_le_parse_ll:
+//	fetch 2,mem_le_payload_ptr
+//	copy pdata,contr
+//	ifetch 1,contr
+	fetch 1,mem_le_rxbuf+2
+	beq LL_FEATURE_REQ,z_le_parse_feature_req
+	beq LL_FEATURE_RSP,z_le_parse_feature_rsp
+	beq LL_VERSION_IND,z_le_parse_version_ind
+	beq LL_CHANNEL_MAP_REQ,z_le_parse_channel_map_req
+	beq LL_CONNECTION_UPDATE_REQ,le_parse_connection_update_req
+	branch z_le_parse_ll_sub
+
+z_le_parse_channel_map_req:
+	ifetch 5,contr
+	store 5,mem_le_new_map
+	ifetch 2,contr
+	store 2,mem_le_instant
+	fetcht 2,mem_le_event_count
+	isub temp,null
+	nbranch le_parse_terminate_ind,positive
+	fetch 1,mem_le_state
+	set1 lestate_update_map,pdata
+	store 1,mem_le_state
+	rtn	
+
+
+z_le_parse_feature_req:
+	call z_le_parse_feature_rsp
+	arg 9,rega
+	arg LLID_LE_LL,type
+	call le_fifo_malloc_tx
+	setarg LL_FEATURE_RSP
+	istore 1,contw
+	fetch 8,mem_le_features
+	istore 8,contw
+	rtn	
+
+z_le_parse_feature_rsp:
+	ifetch 8,contr
+	store 8,mem_mesh_le_features
+	//branch z_hci_send_le_read_remote_features_complete
+z_hci_send_le_read_remote_features_complete:
+	fetch 8,mem_mesh_le_event_mask
+	rtnbit0 LE_READ_REMOTE_FEATURES_COMPLETE_EVENT
+	jam 12,mem_mesh_event_para_total_length
+	jam HCI_EVENT_LE_META_EVENT,mem_mesh_event_head_event_code
+	call p_hci_prepare_send_event
+	setarg HCI_LE_SUBEVENT_REMOTE_FEATURE_COMPLETE
+	istore 2,contw		//subevent code & status
+	fetch 1,mem_le_conn_handle
+	istore 2,contw
+	fetch 8,mem_mesh_le_features
+	istore 8,contw
+	branch ipc_hci_tx_start
+
+z_le_parse_version_ind:
+	ifetch 5,contr
+	store 5,mem_mesh_le_version
+	branch z_hci_send_read_remote_version_information_complete,master
+	fetch 1,mem_mesh_le_version_exchange_times
+	nrtn blank
+	pincrease 1
+	store 1,mem_mesh_le_version_exchange_times
+	branch le_send_version_ind
+
+z_hci_send_read_remote_version_information_complete:
+	fetch 8,mem_mesh_le_event_mask
+	rtnbit0 READ_REMOTE_VERSION_INFORMATION_COMPLETE_EVENT
+	jam 8,mem_mesh_event_para_total_length
+	jam HCI_EVENT_READ_REMOTE_VERSION_INFORMATION_COMPLETE,mem_mesh_event_head_event_code
+	call p_hci_prepare_send_event
+	setarg COMMAND_SUCCEEDED
+	istore 1,contw		//subevent code & status
+	fetch 1,mem_le_conn_handle
+	istore 2,contw
+	fetch 5,mem_mesh_le_version
+	istore 5,contw
+	branch ipc_hci_tx_start
+
+
+
+org z
+z_le_parse_ll_sub:
+//	fetch 2,mem_le_payload_ptr
+//	copy pdata,contr
+//	ifetch 1,contr
+	fetch 1,mem_le_rxbuf+2
+	beq LL_LENGTH_REQ,z_le_parse_length_request
+	beq LL_LENGTH_RSP,z_le_parse_length_rsp
+	beq LL_TERMINATE_IND,z_le_parse_terminate_ind
+	branch le_parse_ll+2
+
+
+z_le_parse_terminate_ind:
+	ifetch 1,contr
+	store 1,mem_disconn_reason_send
+	branch le_parse_terminate_ind
+
+//input pdata, temp,return temp
+z_return_small:
+	isub temp,null
+	rtn positive
+	copy pdata,temp
+	rtn
+
+z_le_parse_length_rsp:
+	ifetch 8,contr
+	store 8,mem_remote_rx_max_octets
+
+	fetch 2,mem_remote_rx_max_octets
+	fetcht 2,mem_local_tx_max_octets
+	call z_return_small
+	storet 2,mem_remote_rx_max_octets
+	
+	fetch 2,mem_remote_tx_max_octets
+	fetcht 2,mem_local_rx_max_octets
+	call z_return_small
+	storet 2,mem_remote_tx_max_octets
+	//branch z_hci_send_event_le_connection_data_length_change
+z_hci_send_event_le_connection_data_length_change:
+	//fetch 8,mem_mesh_le_event_mask
+	//rtnbit0 LE_CONNECTION_UPDATE_COMPLETE_EVENT
+	jam 11,mem_mesh_event_para_total_length
+	jam HCI_EVENT_LE_META_EVENT,mem_mesh_event_head_event_code
+	call p_hci_prepare_send_event
+	setarg HCI_LE_SUBEVENT_DATA_LENGTH_CHANGE_EVENT
+	istore 1,contw		//subevent code
+	fetch 1,mem_le_conn_handle
+	istore 2,contw
+	fetch 8,mem_remote_rx_max_octets
+	istore 8,contw
+	branch ipc_hci_tx_start
+	
+z_le_parse_length_request:
+	call z_le_parse_length_rsp
+	//branch p_le_send_data_length_res
+//p_le_send_data_length_res:
+//	arg LL_LENGTH_RSP,regb
+z_le_send_data_length:
+	arg 9,rega
+//	call le_fifo_malloc_tx_ll
+	arg LLID_LE_LL,type
+	call le_fifo_malloc_tx
+	setarg LL_LENGTH_RSP
+	istore 1,contw
+	fetch 8,mem_local_rx_max_octets
+	istore 8,contw
+	rtn
+
+p_le_send_data_length_req:
+	arg LL_LENGTH_REQ,regb
+	branch z_le_send_data_length
+
+
Index: ModuleDemo/25_OTA/bt_demo/BT/sched/patch.dat
===================================================================
--- /YC1121E/SoftCode/1121EB/branch/HciDongle/ModuleDemo/25_OTA/bt_demo/BT/sched/patch.dat	(revision 4526)
+++ /YC1121E/SoftCode/1121EB/branch/HciDongle/ModuleDemo/25_OTA/bt_demo/BT/sched/patch.dat	(working copy)
@@ -46,10 +46,10 @@
 29   #mem_patch2B
 11   #mem_patch2C
 40   #mem_patch2D
-17    #mem_patch2E
+13    #mem_patch2E
 00   #mem_patch2F
 00   #mem_patch30
-03   #mem_patch31
+00   #mem_patch31
 04   #mem_patch32
 00   #mem_patch33
 60   #mem_patch34
Index: ModuleDemo/25_OTA/bt_demo/BT/sched/user.dat
===================================================================
--- /YC1121E/SoftCode/1121EB/branch/HciDongle/ModuleDemo/25_OTA/bt_demo/BT/sched/user.dat	(revision 4526)
+++ /YC1121E/SoftCode/1121EB/branch/HciDongle/ModuleDemo/25_OTA/bt_demo/BT/sched/user.dat	(working copy)
@@ -166,7 +166,7 @@
 mem_rf_debug_enable: 00
 mem_rf_debug_rf_rx_debug_gpio: 0c
 mem_rf_debug_rf_tx_debug_gpio: 0e
-mem_rf_debug_rf_sync_detect_debug_gpio: 18
+mem_rf_debug_rf_sync_detect_debug_gpio: 13
 mem_rf_debug_rf_crc_error_debug_gpio: 19
 
 
Index: ModuleDemo/25_OTA/bt_demo/CM0/respin/ramcode.rom
===================================================================
--- /YC1121E/SoftCode/1121EB/branch/HciDongle/ModuleDemo/25_OTA/bt_demo/CM0/respin/ramcode.rom	(revision 4526)
+++ /YC1121E/SoftCode/1121EB/branch/HciDongle/ModuleDemo/25_OTA/bt_demo/CM0/respin/ramcode.rom	(working copy)
@@ -63,91 +63,88 @@
 2000003e
 2000003f
 c2840060
-c0010086
-c007021d
-c008022b
-c00e01ef
-c00f022e
-c01002ef
-c012028f
-c01901d1
-c01c81de
-c01d01e0
-c01f02b4
-c0208284
-c02202bc
-c02a07ac
-c02c06fc
-c02e0718
-c02e871e
-c035024d
-c0358271
-c036027a
-c04080df
-c04280fc
-c04300c2
-c04f00c6
-c0500181
-c0520798
-c0540777
-c05c814d
-c05d0629
-c0700178
+c0010083
+c0070175
+c0080183
+c00e0166
+c00f0186
+c01001e2
+c01201b2
+c0190148
+c01c8155
+c01d0157
+c01f01d7
+c02081a7
+c02205b4
+c02a05b0
+c02c051d
+c02e0539
+c02e853f
+c03505b6
+c03585b8
+c036019e
+c04080db
+c04280f8
+c04300be
+c04f00c2
+c050013a
+c052059c
+c054058e
+c05c85ba
+c05d04ae
+c0700131
 20202baf
-c003813e
-c006030c
-c00905af
-c00985d2
-c00a05b1
-c01185c5
-c0128720
-c0130724
-c0138726
-c0140728
-c0148729
-c015072e
-c01d84db
-c01f04e4
-c01f8441
-c0208539
-c021076e
-c025853d
-c027851d
-c0290648
-c02c0465
-c02d8661
-c02e84d1
-c0300686
-c0320682
-c0370744
-c03807b0
-c03887b2
-c03902da
-c03a0183
-c0440130
-c0448136
-c049072f
-c0528695
-c053069b
+c00385bc
+c00601ff
+c00905be
+c0098457
+c00a0436
+c011844a
+c0128541
+c0130545
+c0138547
+c0140549
+c014854a
+c015054f
+c01d8362
+c01f036b
+c01f831f
+c02083c0
+c0210585
+c02583c4
+c02783a4
+c02904cd
+c02c05c0
+c02d84e6
+c02e85c2
+c03004f0
+c03204ec
+c0370565
+c03805c4
+c03885c6
+c03a013c
+c0490550
+c05284ff
+c05304ff
 c1590000
 c16a0000
 20202baf
 20406490
 20406863
 20406326
-204000a1
+2040009e
 2040203c
 20403153
-20400090
+2040008d
 2040233d
-20400096
+20400093
 20202021
 c68e0000
 18000e02
 20407148
 7d3a001c
 243a209e
-20200246
+202005c8
 6fe24133
 c4008000
 6fe20030
@@ -160,9 +157,8 @@
 18423600
 202023b7
 204045b4
-204000a5
-20404909
-202045b8
+204000a1
+2020455e
 6fe244d9
 c1808000
 d8e00003
@@ -178,8 +174,8 @@
 7854fc00
 78487c00
 69644e32
-204000b7
-24368456
+204000b3
+24368334
 202047b3
 204045c7
 204045bd
@@ -195,12 +191,12 @@
 6fe24013
 793ffe06
 67e24013
-202000c8
-204000c8
+202000c4
+204000c4
 20202bd8
 20405900
 70894bba
-204000d1
+204000cd
 708907ff
 20402a70
 70895074
@@ -208,9 +204,9 @@
 70896d07
 20600000
 6fe242b4
-c00080d5
-c00200db
-c00100d5
+c00080d1
+c00200d7
+c00100d1
 5888e0d0
 67e68955
 584a103c
@@ -220,8 +216,8 @@
 5888c0d0
 67e68955
 584a106c
-202000d8
-203080eb
+202000d4
+203080e7
 708955d4
 20000004
 708955d2
@@ -229,8 +225,8 @@
 708955d1
 20000004
 6fe242b4
-c00080e9
-c00200f9
+c00080e5
+c00200f5
 708955d0
 708956e0
 18002a08
@@ -249,7 +245,7 @@
 20600000
 708955d0
 708956c0
-202000eb
+202000e7
 60420017
 1840a200
 6fe242b5
@@ -257,7 +253,7 @@
 20402a7b
 58000250
 20402bb1
-204000d1
+204000cd
 6fe28906
 79207e00
 67e28906
@@ -271,25 +267,25 @@
 2000000a
 7089027d
 6fe242b4
-c0000123
-c002011e
+c000011f
+c002011a
 70894cfb
 70894def
 70894eec
 70894f5e
-c0008125
-c002811a
+c0008121
+c0028116
 20202a51
 708956ff
 20402a5d
 708955ff
 20600000
-20400129
+20400125
 708956cc
 20402a5d
 708955d8
 20600000
-20400129
+20400125
 20202a49
 708956f7
 20402a5d
@@ -300,30 +296,6 @@
 70894e2c
 70894f46
 20600000
-d8e00009
-20207357
-204057f1
-6fe2487a
-c0000134
-20600000
-20400139
-202057fa
-6fe2487a
-c1808000
-202057f5
-6fe3f000
-d840001c
-9841fe00
-67e3f000
-20600000
-20400314
-2040012e
-20203e60
-6848833e
-6048804c
-70804de6
-20400146
-70800520
 37d98200
 37d98200
 37d98200
@@ -331,54 +303,11 @@
 37d98200
 20600000
 20600000
-71f0001c
-70804205
-20400141
-6fe28341
-67e24bce
-6fe24bef
-67e206ab
-245587b4
-20407988
-5800062e
-67e4431d
-58000178
-67e4431f
-5800014c
-67e4431b
-5800077f
-67e44315
-58000782
-67e44313
-20558173
-24358166
-20403e79
-204057bf
-700f0d66
-20203f28
-58001171
-67e44f5d
-204007b6
-204057bf
-6fec4140
-67ec4340
-6fe24bce
-c2828170
-700f0d65
-20203f28
-20400179
-700f0d6a
-20203f28
-204054b0
-204054b5
-200007d0
-2040553b
-20600000
 20600000
 6fe8833e
 793ffe1d
 67e8804c
-2020017d
+20200136
 37d98200
 70800520
 37d98200
@@ -389,92 +318,26 @@
 204052b0
 6fe20048
 207a0000
-da201001
-68420048
-20407a08
-6fe20048
-c28387b8
-c01881a8
-c00601b7
-c0038764
-c0058191
-20204f6c
-6fe20b9c
-203a0197
-204052e7
-2040d2da
-2440d2d6
-20200198
-204052da
-204052f6
-18007e11
-2040528d
-d8c00749
-204070de
-2020019e
-6842004c
-18410401
-6fe20048
-1fe3fe00
-c59081a5
-7d34fe00
-202052ab
-7934fe00
-9842fe00
-202052ab
-6fe20030
-79207e04
-67e20030
-1c427e00
-67e806c2
-6fe206ab
-c28181b5
+202005ca
+204005cc
+202001ee
+6fe2004b
 79207e03
-67e206ab
-20400216
-18007e01
-2040528d
-202052a6
-70004800
-20600000
-da204140
-2040604d
-18007e05
-2040528d
-6fe80779
-e7e80005
-d84006af
-204052d0
-20406142
-204052e7
-202081c7
-7006b101
-c51081cd
-6fe20b9c
-207a0000
-70007c0b
-c51081cd
-6fe24293
-207a0000
-204052e7
-242081cd
+67e2004b
+70007201
 20600000
-c6908000
-793f8021
-204007ba
-202002fb
 6fe20183
 203a2378
 d8c00183
 df2000f0
 d8400000
-204001d9
+20400150
 60440099
 2020238d
 efe20006
 207a0000
 18408401
-c20001d9
+c2000150
 20600000
 704fa500
 20202414
@@ -491,61 +354,30 @@
 20402841
 20402827
 20404b89
-204001f2
+20400169
 20202425
 20404b89
-204001f2
+20400169
 20202198
 6fe242a7
 207a0000
 6fe2007c
 247a0000
-204033cc
-24228205
-6fe242a7
-c001b3e2
-c004b3e8
-c00533f4
-c005b3fa
-c0063404
-c0043446
-c00c33da
-c003b3d4
-c00cb3d8
-c00d345d
-c0093422
-c009820d
-204033d0
-247a0000
-6fe242a7
-c006820f
-c00e820b
-202033bf
-70007c37
-202033ca
-70007c18
-202033ca
-6fe2004b
-79207e01
-67e2004b
-6fe20030
-c283b413
-20400303
-202033ca
+202005ce
 704c9b02
 704c8a00
-2020021b
+20200173
 704c9b00
 704ca100
 704c9f00
-202007bc
+202005d0
 6fe24c9a
-203a07be
+203a05d2
 6fe24c99
-203a0246
+203a05c8
 1fe0ffff
 67e24c99
-202007be
+202005d2
 6fe20018
 1ff18400
 184f840a
@@ -555,20 +387,20 @@
 20600000
 20402108
 704c8a04
-20200219
+20200171
 204024d2
 7854fc00
 6fe24c9b
-c000822b
+c0008183
 6fe2004c
 c28221c5
 6fe20030
 c30221c4
-20200392
+20200270
 6fe24c9c
-c000023d
-c0008240
-c0010243
+c0000195
+c0008198
+c001019b
 704c8702
 20600000
 704c880f
@@ -580,79 +412,26 @@
 704c88ff
 704c872f
 20600000
-793f801c
-704c8801
-704c8701
-204003d8
-58000000
-e7e20005
-202003e2
-c5958252
-1c40a200
-20348255
-1d00a200
-20200255
-1c40a203
-20348255
-1d00a203
-68440032
-1a227e00
-793ffe1b
-9846fc00
-6fe40075
-204071c9
-18072600
-9a667e00
-2021025f
-9840fe00
-9a20fe00
-67e80034
-7046cf00
-6fe20030
-79207e01
-67e20030
-6fe20073
-67e20092
-58000000
-67e64208
-67e6420b
-67e241f8
-6fe44161
-67e4003e
-2434826f
-18808fff
-704c8a02
-20200283
-6fe20030
-c4008000
-793ffe01
-67e20030
-6fe4415f
-67e4003e
-7855fc00
-704c8a00
-20200283
 6fe24fa5
 1fe67c64
 242127fd
 202027ea
-2040031b
+2040020a
 68420046
 98467c00
 20628000
-2020036e
-202007c0
+2020024c
 20402337
-202c028c
+202c01af
 204024ca
-243a0284
+243a01a7
 78587c00
 1d027e00
 67e84169
 20600000
+2040248f
 704c8a00
-204002c3
-2020248f
+202005d4
 204021ec
 24740000
 78547c00
@@ -660,15 +439,15 @@
 793f800b
 20402b71
 2040232b
-c505829f
+c50581c2
 204024ca
-243a0294
+243a01b7
 78547c00
 1c427e00
 67e84169
 78387c00
 7834fc00
-202002cd
+202005d6
 20402b6f
 d8200010
 20402321
@@ -677,10 +456,10 @@
 20402917
 204024ab
 204024f3
-203682ab
+203681ce
 204024ca
-243a02a6
-20200299
+243a01c9
+202001bc
 18000401
 6fe20031
 793ffe01
@@ -689,7 +468,7 @@
 20402940
 78347c00
 704c8a01
-202002c3
+202005d4
 70011600
 70015000
 204024d2
@@ -697,58 +476,10 @@
 2040724d
 6fe24c9b
 207a0000
-20200392
-20404b82
-204024ce
-1fe67c0f
-242102c1
-202024b9
-70416f01
-202024b9
-704c8808
-704c8712
-204003d8
-18007e00
-e7e20005
-6fec0040
-e7ec0005
-6fe24c8a
-e7e20005
-202003e2
-704c8a00
-243482d0
-704c8a01
-704c8808
-704c8712
-204003d8
-18007e35
-e7e20005
-6fec0040
-e7ec0005
-6fe24c8a
-e7e20005
-202003e2
-6fe20739
-67e206a3
-c00882de
-20204cad
-20404d0a
-202006eb
-20404e14
-202006eb
-da200040
-2040604d
-6fe80739
-68480779
-98467c00
-202282e9
-20204d8b
+20200270
 20404d8e
 c6108000
-202002fb
-6fe44de9
-c3014e10
-20204def
+202001ee
 6fe20030
 c283a1e1
 6fe20b9c
@@ -760,55 +491,51 @@
 67e2004b
 204021e1
 c6108000
-202007ba
+202005cc
 704c8803
 704c8706
-204003d8
+204002b6
 18007e00
 e7e20005
 6fe20046
 e7e40005
-202003e2
+202002c0
 704c8806
 704c8717
-204003d8
+204002b6
 6fec0040
 e7ec0005
-202003e2
+202002c0
 704c8806
 704c8716
-20200305
+202001f8
 6fe243de
 207a0000
 20403e9d
 20628000
 1fe20c00
 20403e92
-c0058360
+c005823e
 20203ef4
-70442901
-20758000
-70442900
-20600000
-2040032f
+2040021e
 2040712d
-2020032c
-2040032f
+2020021b
+2040021e
 efe40006
-2020032c
-2040032f
+2020021b
+2040021e
 efe60006
-2020032c
-2040032f
+2020021b
+2040021e
 efec0006
-2020032c
-2040032f
+2020021b
+2040021e
 efee0006
-2020032c
-2040032f
+2020021b
+2040021e
 eff00006
-2020032c
-2040032f
+2020021b
+2040021e
 efe20006
 18c20400
 60464bf2
@@ -816,32 +543,15 @@
 68464bf2
 18420c00
 20600000
-6fe206a4
-67e20f12
-20404894
-20200380
-5800003f
-67f04c6c
-5fffffff
-67f04c1c
-58000000
-67ec4c7a
-67e244de
-67e244d9
-67e24133
 6fec4c8d
 67ec4639
 67ec4140
 20600000
-2040031b
-20400380
-202004aa
-2020036c
 20600000
 704ddb00
-2020034c
+2020022a
 704ddb03
-2020034c
+2020022a
 62464ddc
 58004b4a
 67e443e3
@@ -857,11 +567,11 @@
 18007e06
 67e243e2
 20203f1a
-204007c2
+204005d8
 6a464dd8
-20200348
+20200226
 6a464dd8
-202005f1
+20200476
 20403e92
 20403e92
 67e24dd7
@@ -869,56 +579,56 @@
 d8a04dd8
 20403e88
 6fe24dd7
-c000035e
-c001835b
+c000023c
+c0018239
 20202baf
 704c9612
-20200371
+2020024f
 704c9601
-20200371
+2020024f
 704c960c
-20200371
+2020024f
 704c9600
 df200001
-20400375
-202003e2
+20400253
+202002c0
 704c9600
-20400379
+20400257
 6fe24c96
 e7e20005
 20600000
 704c870e
 1f20fe03
 67e24c88
-204003d8
+204002b6
 6fe64c93
 e7e60005
 20600000
 700f1200
-20200385
+20200263
 700f120c
-20200385
+20200263
 700f1202
 704c870f
 704c8804
-204003d8
+204002b6
 6fe20f12
 e7e20005
 6fe64c93
 e7e60005
-202003e2
+202002c0
 6ff04c6c
 c4020000
 6fe20639
 67e24e18
-202007c4
+202005da
 6fe20046
 67e24e18
 793f8021
 70004600
 704ca100
 704c9b00
-202007c4
+202005da
 6fe20624
 d8400000
 c1018000
@@ -944,15 +654,15 @@
 67e24c88
 1fe0fe03
 67e44db1
-20400605
+2040048a
 207a0000
 704c873e
-204003d8
+204002b6
 58000002
 e7e20005
 58000001
 e7e20005
-2040039e
+2040027c
 e0420005
 204047d5
 1a227e00
@@ -964,37 +674,37 @@
 e0420005
 18427200
 2040712d
-20400224
+2040017c
 e7e20005
-202003e2
+202002c0
 6fe20046
 67e242a8
-202003ce
+202002ac
 6fe20639
 67e242a8
 704c8805
 704c8713
-204003d8
+204002b6
 58000001
 e7e20005
 6fe242a8
 e7e40005
 58000001
 e7e40005
-202003e2
+202002c0
 6fe24c88
 1fe0fe03
 67e44db1
-204003df
+204002bd
 6fe64c86
 e7e60005
 20600000
-204005cf
+20400454
 1a420a00
 20600000
 da204d84
 20403fa5
-2020034a
+20200228
 18000400
 18000201
 60421001
@@ -1010,9 +720,9 @@
 20600000
 6fe2063a
 c3828000
-20400414
-20400428
-203a03e5
+204002f2
+20400306
+203a02c3
 efe20006
 ea220006
 9a267e00
@@ -1028,8 +738,8 @@
 18427200
 2040712d
 2040480e
-204003e7
-20400428
+204002c5
+20400306
 efe20006
 1fe22200
 18c23000
@@ -1044,15 +754,15 @@
 202049f1
 6fe24683
 203a480c
-2040041e
+204002fc
 c6130000
 da204d5c
-204005c2
+20400447
 c000480c
 c000c80c
 79200026
 20600000
-20400428
+20400306
 203a480c
 efe20006
 e8420006
@@ -1064,7 +774,7 @@
 20600000
 da204d5c
 20203fa1
-2040042c
+2040030a
 20202739
 204045bd
 204045cd
@@ -1089,11 +799,11 @@
 202046a3
 204045aa
 20404766
-204003f2
-2040042a
-20400596
+204002d0
+20400308
+2040041d
 20404594
-203405a5
+2034042c
 2020458a
 204047d5
 1a227e00
@@ -1101,15 +811,15 @@
 6fec04dd
 67ec0633
 6fe24c8b
-c0008459
-204003aa
+c0008337
+20400288
 204046d3
-24368456
+24368334
 6fe204dc
-c0030456
-204003aa
+c0030334
+20400288
 6fe44e32
-243a00b1
+243a00ad
 20600000
 6fec0633
 684c4627
@@ -1122,93 +832,16 @@
 7042a700
 70065b00
 204047d2
-202007c6
-6fe204dd
-c001049f
-c0040493
-c004849c
-c00604a2
-c000846e
-c00a0488
-c00a847d
-20204868
-efea0006
-67ea4528
-efe40006
-67e40643
-6844063d
-98467c00
-24214890
-6fe20623
-79207e06
-67e20623
-20600000
-98467c00
-20610000
-1fe20400
-20600000
-eff00006
-67f04953
-6fe44953
-6844495f
-20400479
-60444953
-6fe44957
-6844495b
-20400479
-60444957
-202007c8
-2040047d
-da200009
-d8200003
-204049ab
-58000015
-e7e20005
-6ff0495b
-e7f00005
-20600000
-da400014
-20200489
-2040049c
-da200009
-d8200003
-204049ab
-58000009
-e7e20005
-6ff04ddf
-e7f00005
-20600000
-eff00006
-67f04c0a
-202007ca
-efe20006
-67e206a4
-20204890
-efea0006
-67ea4c12
-2034800b
-6fe24c17
-247a0000
-1fe0fe01
-67e24c17
-202048f0
-da200009
-d8200003
-204049ab
-58000008
-e7e20005
-6ff04ddf
-e7f00005
-20600000
-2040061d
+202005dc
+204004a2
 67e64e15
 58000000
 67e64d2e
 6fe20046
 67e242a8
 704ddb05
-202004c1
-20400623
+20200352
+204004a8
 67e64e15
 58000000
 67e64d31
@@ -1231,16 +864,6 @@
 18007e08
 67e243e2
 20203f1a
-6fe204db
-684c4639
-c28384d5
-202004d6
-684c4c7a
-6fec04e3
-98467c00
-24628000
-2040493a
-202007c6
 20404536
 70100001
 70100100
@@ -1253,32 +876,32 @@
 204045b4
 2040315c
 6fe20624
-c00184eb
+c0018372
 20204579
-2040042c
-202005a9
+2040030a
+20200430
 7834fc00
 204048fd
-20210774
+2021058b
 204045fc
-204003f2
+204002d0
 7856fc00
-204004e9
-24368511
-2040050c
+20400370
+24368398
+20400393
 20404766
-20400596
+2040041d
 20404594
-203404fa
+20340381
 7854fc00
 20202739
-204003f2
-20400500
+204002d0
+20400387
 78377c00
-204005a9
-203684f3
-202004f8
-20400502
+20400430
+2036837a
+2020037f
+20400389
 20202739
 204045bd
 204045cd
@@ -1286,8 +909,8 @@
 782efc00
 78307c00
 7850fc00
-2040050a
-20200434
+20400391
+20200312
 37c18200
 20600000
 6fe20623
@@ -1296,13 +919,13 @@
 67e20623
 20600000
 6fe20623
-c28184f8
+c281837f
 6fe24e17
 1fe67c06
-24210774
+2421058b
 1fe0fe01
 67e24e17
-202004f8
+2020037f
 684c4639
 20600000
 684c4c7a
@@ -1320,8 +943,8 @@
 67e24537
 18427200
 6fe2461c
-205a0519
-245a051b
+205a03a0
+245a03a2
 604c4538
 d8c044e0
 2040712d
@@ -1334,10 +957,10 @@
 67e40124
 24610000
 2040473e
-202007cc
+202005de
 20404972
 2040475a
-20400530
+204003b7
 20202940
 78287c00
 6fe40631
@@ -1352,15 +975,15 @@
 78507c00
 19623600
 37c18400
-2037054d
+203703d4
 1b420400
 604c00a4
 242c2739
-20370554
+203703db
 dd2001e0
 1c225000
 6fe20623
-c3018554
+c30183db
 2055ac9c
 20402abc
 7823fc00
@@ -1378,43 +1001,43 @@
 67e204dc
 1fe27200
 67e2068c
-203a057e
+203a0405
 6fe204db
 1fe17e03
-c0018573
-c5078575
+c00183fa
+c50783fc
 da204cca
-204005c2
-c0008575
-20400619
-203a0575
-20400623
+20400447
+c00083fc
+2040049e
+203a03fc
+204004a8
 18c20a00
 6fe404db
 e7e40005
-2020057a
+20200401
 d8a004dd
-2020057a
+20200401
 09800008
 19897e00
-c2000575
+c20003fc
 78367c00
-2020057e
+20200405
 09800008
 19897e00
 e7e20005
-c200057a
+c2000401
 09800018
 78287c00
 db600664
-20360585
+2036040c
 1fef7e00
 1ff17e00
 e7e60005
 20232739
 7836fc00
 6fe242b5
-243a058c
+243a0413
 6fe20017
 1fe0a200
 20402a7b
@@ -1436,15 +1059,15 @@
 6fe204db
 1fe17e03
 c001c866
-20400623
-2040058e
+204004a8
+20400415
 6fe2068c
 207a0000
 6fe2068d
 c001c866
-202004ba
+2020034b
 78377c00
-204005a9
+20400430
 2036c582
 2020458a
 68420017
@@ -1452,9 +1075,7 @@
 20402a23
 78287c00
 d9601388
-20200542
-2040012e
-202007ce
+202003c9
 1a208409
 efe20002
 203a2baf
@@ -1479,13 +1100,13 @@
 6fe204d5
 c1018000
 20204146
-204005e4
+20400469
 da204d34
 20203f94
 da204d34
 20403fa5
-202005f1
-204005e4
+20200476
+20400469
 da204d84
 20203f94
 1a20fe04
@@ -1506,55 +1127,55 @@
 1a420c00
 1a427e00
 20600000
-20400605
+2040048a
 203a2baf
 6fe44dd1
 68444db1
 98467c00
-202105ec
+20210471
 da204cca
 20203fa5
 da204ca2
-204005c2
-203a05ea
+20400447
+203a046f
 da204ca2
 20203fa5
-204005fd
+20400482
 da204ca2
-203a05f6
+203a047b
 da204cca
 20203f94
-204005fa
+2040047f
 203a2baf
 da204ca2
 20203f94
 6f224caa
 d8c04cf2
-202005ff
+20200484
 6f224cd2
 d8c04d10
 efe60006
 9a467c00
-20228603
-c20005ff
+20228488
+c2000484
 1f227e00
 20600000
 6fe44dd1
 68444db1
 98467c00
-2021060b
+20210490
 da204cca
-202005c2
+20200447
 da204ca2
-204005c2
+20400447
 247a0000
-20200609
+2020048e
 6fe44dd5
-20200612
+20200497
 58000010
 67e44db1
 62280f1e
-20400605
+2040048a
 6a280f1e
 20600000
 da204cca
@@ -1562,16 +1183,16 @@
 6fe44d2e
 247a0000
 da204cca
-202005c2
+20200447
 6fe64d2e
 243a7111
-20400617
+2040049c
 1a427e00
 67e64d2e
 20207111
 6fe64d31
 243a7111
-20400617
+2040049c
 1a427e00
 67e64d31
 20207111
@@ -1581,12 +1202,12 @@
 1fe22600
 20203190
 1a627e00
-c00a8631
+c00a84b6
 20203168
 704c8c00
 704c1700
-204007d0
-2040038d
+204005e0
+2040026b
 202031c3
 6842063a
 284c0005
@@ -1603,11 +1224,11 @@
 6fe245b5
 c0014794
 6fe21002
-c0010774
+c001058b
 c002c790
 20600000
 20404906
-20400636
+204004bb
 6fe204db
 2feffe04
 79208027
@@ -1616,9 +1237,9 @@
 2feffe02
 7920800f
 6fe204dc
-203a065a
+203a04df
 6fe20623
-c302065a
+c30204df
 c6078000
 20406246
 204061b6
@@ -1636,40 +1257,13 @@
 d8e00001
 20407148
 247a0000
-7854fc00
-78287c00
-20404735
-2040460a
-204046ad
-2436c91c
-6fe20003
-1fe0fe01
-67e20003
-6fe204db
-1fe17e0f
-c0018673
-2020491b
-d8400004
-6fe2461c
-7d3a0406
-60424536
-684244ff
-1840fe06
-67e24537
-18427200
-6fe2461c
-205a0519
-245a051b
-604c4538
-d8c04500
-2040713a
-2020468c
-20400692
+202005e2
+204004fc
 18227e00
 c1018000
-202003cc
+202002aa
 62244db1
-2040068f
+204004f9
 1a420a00
 6fe44db1
 e7e20005
@@ -1677,61 +1271,17 @@
 e7e20005
 e0220005
 20600000
-204005e4
+20400469
 da204d5c
 20203f94
 da204d5c
 20403fa5
-202005f1
+20200476
 6fe20b97
-207a0000
-700b9700
-6fe20b95
-c00486a2
-20206472
+243a05e4
 6fe20b98
-207a0000
-700b9800
-6fe20b96
-c00906ab
-c00486a2
-20206481
-204063ce
-202006e3
-202052d6
-700b960f
-204052da
-204052f2
-2020e406
-20206410
-20600000
-700b9801
-700b9613
-20600000
-20400321
-67ec42a9
-2040031e
-67e647ce
-df200007
-20400374
-6fec0040
-e7ec0005
-204003e2
-6fe24c9f
-c00086bb
-7042a716
-20600000
-204033e5
-700b9b01
-20600000
-20400321
-67ec42a9
-204006d2
-df200007
-20400374
-6fec0040
-e7ec0005
-202003e2
+243a05e4
+20600000
 7840fc00
 6fe24c97
 207a0000
@@ -1740,45 +1290,16 @@
 98417e00
 6fe20b95
 247a0000
-204006dd
+20400510
 704c9f01
 7820fc00
 20600000
-700b950a
-700b9701
-20600000
-704c8809
-704c8732
-204003d8
-6fec0040
-e7ec0005
-6fe647d3
-e7e60005
-202003e2
 704c8806
 704c8731
-204003d8
-6fec0040
-e7ec0005
-202003e2
-704c8807
-704c8736
-204003d8
-58000000
-e7e20005
+204002b6
 6fec0040
 e7ec0005
-202003e2
-704c8804
-704c8708
-204003d8
-58000000
-e7e20005
-68420046
-e0440005
-58000001
-e7e20005
-202003e2
+202002c0
 6fe20151
 1fe17e03
 c080a68a
@@ -1788,11 +1309,11 @@
 2020268a
 1f227e00
 67e4012c
-203a06f5
+203a0516
 9ea67c00
 20212729
 18017e01
-243a0707
+243a0528
 6fe20151
 1fe17e03
 c001a649
@@ -1803,11 +1324,11 @@
 98467c00
 20212729
 da204cca
-204005c2
+20400447
 c000a739
-20400619
+2040049e
 203a2739
-2040061d
+204004a2
 18c20a00
 6fe20151
 e7e20005
@@ -1820,24 +1341,24 @@
 c58026ba
 793f8000
 20600000
-204004b2
+20400343
 202026dd
 62244db1
-204005c9
+2040044e
 6a244db1
 20600000
 da204d34
 20203fa1
-204005cc
-202003c9
-202005cc
-2040060f
+20400451
+202002a7
+20200451
+20400494
 203a729b
 2020729d
 da204d34
-202005c2
+20200447
 20202baf
-2040072c
+2040054d
 207a0000
 6fe2004b
 c3830000
@@ -1850,7 +1371,7 @@
 18c27e00
 67e4013c
 6fe4442c
-203a073e
+203a055f
 20205b2e
 6fe40099
 203a2baf
@@ -1861,7 +1382,7 @@
 70429300
 20204b77
 67e40fb7
-20200748
+20200569
 68440fb7
 18518400
 6fe44881
@@ -1880,7 +1401,7 @@
 67e40241
 58004e34
 67e4023f
-204007a5
+204005a9
 204057e8
 6fe280a0
 67e20124
@@ -1890,67 +1411,38 @@
 704f6300
 58004e34
 20205866
-18007e02
-2040528d
-6fe206a4
-e7e20005
-204052a6
-6fe2004b
-79207e03
-67e2004b
-70007201
-20600000
 20404528
 204045a4
 20403212
 2040682b
 700f0d15
 20206b2e
-2040076f
+20400586
 7854fc00
 20600000
 6fe24040
 c3800000
 c3818000
 6fe247cd
-203a077e
+203a0595
 6fe24724
 207a0000
 20202d53
 6fe206ab
 67e24bef
-20200784
+202005e6
 7043dd01
 20403f41
-2040554f
-20400795
-df200020
-d8c08080
-18c20a00
-efe20006
-c0018791
-c0020791
-c0028791
-c0038791
-c0160791
-c0168791
-c0800793
-58000080
-e7e20005
-c2000788
-20600000
-df200008
-d8c0812a
-20200788
+202005e6
 6fe24131
 207a0000
-2040072c
+2040054d
 247a0000
 da204d5c
-204005c2
+20400447
 247a0000
 da204cca
-204005c2
+20400447
 68424caa
 98467c00
 24628000
@@ -1961,80 +1453,108 @@
 207a0000
 6fe24f64
 c1a98000
-202007a7
+202005ab
 18227e00
 c003a739
 c0032739
 202025df
+580002e0
+20200567
+580002a0
+20200567
+580002b0
+20200567
+58000240
+20200567
+58000250
+20200567
+580000f0
+20200567
+58000320
+20200567
+580002f0
+20200567
+58000200
+20200567
+580001c0
+20200567
 58000230
-20200746
-580001d0
-20200746
-58000220
-20200746
-580001e0
-20200746
+20200567
+58000300
+20200567
+58000190
+20200567
+58000290
+20200567
+58000120
+20200567
 58000170
-20200746
-58000180
-20200746
-58000110
-20200746
-58000160
-20200746
+20200567
+580002c0
+20200567
+580002d0
+20200567
+580001e0
+20200567
 58000140
-20200746
-580001f0
-20200746
-58000130
-20200746
-58000190
-20200746
-580001c0
-20200746
-580001b0
-20200746
+20200567
 580001a0
-20200746
-580000e0
-20200746
-58000210
-20200746
+20200567
+580001b0
+20200567
+580001f0
+20200567
+58000260
+20200567
+58000270
+20200567
+58000280
+20200567
 58000080
-20200746
+20200567
 58000070
-20200746
-580000c0
-20200746
+20200567
+580000d0
+20200567
 58000060
-20200746
-580000b0
-20200746
+20200567
+580000c0
+20200567
 58000090
-20200746
+20200567
 580000a0
-20200746
-580000d0
-20200746
-58000150
-20200746
-580000f0
-20200746
+20200567
+580000b0
+20200567
+580000e0
+20200567
+58000160
+20200567
+58000100
+20200567
 58000010
-20200746
+20200567
 58000020
-20200746
+20200567
 58000030
-20200746
+20200567
 58000040
-20200746
+20200567
 58000050
-20200746
-58000200
-20200746
-58000100
-20200746
-58000250
-20200746
-58000240
-20200746
+20200567
+58000110
+20200567
+58000210
+20200567
+58000220
+20200567
+580001d0
+20200567
+58000150
+20200567
+58000180
+20200567
+58000310
+20200567
+58000330
+20200567
Index: ModuleDemo/25_OTA/bt_demo/CM0/respin/sched.rom
===================================================================
--- /YC1121E/SoftCode/1121EB/branch/HciDongle/ModuleDemo/25_OTA/bt_demo/CM0/respin/sched.rom	(revision 4526)
+++ /YC1121E/SoftCode/1121EB/branch/HciDongle/ModuleDemo/25_OTA/bt_demo/CM0/respin/sched.rom	(working copy)
@@ -46,10 +46,10 @@
 29   #mem_patch2B
 11   #mem_patch2C
 40   #mem_patch2D
-17    #mem_patch2E
+13    #mem_patch2E
 00   #mem_patch2F
 00   #mem_patch30
-03   #mem_patch31
+00   #mem_patch31
 04   #mem_patch32
 00   #mem_patch33
 60   #mem_patch34
@@ -233,7 +233,7 @@
 mem_rf_debug_enable: 00
 mem_rf_debug_rf_rx_debug_gpio: 0c
 mem_rf_debug_rf_tx_debug_gpio: 0e
-mem_rf_debug_rf_sync_detect_debug_gpio: 18
+mem_rf_debug_rf_sync_detect_debug_gpio: 13
 mem_rf_debug_rf_crc_error_debug_gpio: 19
 
 
Index: ModuleDemo/25_OTA/bt_demo/CM0/respin/zcode.rom
===================================================================
--- /YC1121E/SoftCode/1121EB/branch/HciDongle/ModuleDemo/25_OTA/bt_demo/CM0/respin/zcode.rom	(revision 4526)
+++ /YC1121E/SoftCode/1121EB/branch/HciDongle/ModuleDemo/25_OTA/bt_demo/CM0/respin/zcode.rom	(working copy)
@@ -1,26 +1,804 @@
 20200040
-6fe24ca1
-c0008010
-20400015
-704c880a
-704c8704
-204003d8
+6fe204dd
+c00a0021
+c00a800d
+c0010006
+20204868
+efe20006
+67e206a4
+20204890
+98467c00
+20610000
+1fe20400
+20600000
+eff00006
+67f04953
+6fe44953
+6844495f
+20400009
+60444953
+6fe44957
+6844495b
+20400009
+60444957
+704c880b
+704c873e
+204002b6
+58000007
+e7e20005
+6fe20639
+e7e40005
+6ff04953
+e7f00005
+202002c0
+2040000d
+da200009
+d8200003
+204049ab
+58000015
+e7e20005
+6ff0495b
+e7f00005
+20600000
+da400014
+20200022
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+20200040
+6fe204dd
+c0040013
+c004801c
+c006002a
+c0008008
+c0004880
+20200616
+efea0006
+67ea4528
+efe40006
+67e40643
+6844063d
+98467c00
+24214890
+6fe20623
+79207e06
+67e20623
+20600000
+2040001c
+da200009
+d8200003
+204049ab
+58000009
+e7e20005
+6ff04ddf
+e7f00005
+20600000
+eff00006
+67f04c0a
+6ff04c6c
+c4018000
+704c880c
+704c873e
+204002b6
+58000004
+e7e40005
+6fe20639
+e7e40005
+6ff04c0a
+e7f00005
+202002c0
+efea0006
+67ea4c12
+20348032
+6fe24c17
+247a0000
+1fe0fe01
+67e24c17
+202048f0
+6ff04c6c
+c4028000
+704c8808
+704c870c
+204002b6
+58000000
+e7e20005
+6fe20639
+e7e40005
+6fea4c12
+e7ea0005
+202002c0
+00000000
+00000000
+20200040
+da204140
+2040604d
+18007e05
+2040528d
+6fe80779
+e7e80005
+d84006af
+204052d0
+20406142
+204052e7
+20208011
+7006b101
+c5108017
+6fe20b9c
+207a0000
+70007c0b
+c5108017
+6fe24293
+207a0000
+204052e7
+24208017
+20600000
+c6908000
+793f8021
+20200141
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+20200040
+6fe20048
+c2838612
+c018801e
+c0060614
+c003802d
+c0058008
+20204f6c
+6fe20b9c
+203a000e
+204052e7
+2040d2da
+2440d2d6
+2020000f
+204052da
+204052f6
+18007e11
+2040528d
+d8c00749
+204070de
+6842004c
+18410401
+6fe20048
+1fe3fe00
+c590801b
+7d34fe00
+202052ab
+7934fe00
+9842fe00
+202052ab
+6fe20030
+79207e04
+67e20030
+1c427e00
+67e806c2
+6fe206ab
+c281802b
+79207e03
+67e206ab
+18007e01
+2040528d
+204052a6
+2020016e
+70004800
+20600000
+18007e02
+2040528d
+6fe206a4
+e7e20005
+204052a6
+20200143
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+20200040
+6fe204db
+684c4639
+c2838005
+20200006
+684c4c7a
+6fec04e3
+98467c00
+24628000
+2040493a
+202005dc
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+20200040
+20404b82
+204024ce
+1fe67c0f
+24210006
+202024b9
+70416f01
+202024b9
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+20200040
+704c8a00
+24348004
+704c8a01
+704c8808
+704c8712
+204002b6
+18007e35
+e7e20005
+6fec0040
+e7ec0005
+6fe24c8a
+e7e20005
+202002c0
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+20200040
+704c8808
+704c8712
+204002b6
+18007e00
+e7e20005
 6fec0040
 e7ec0005
-6fe60146
-e7e60005
-58000001
+6fe24c8a
+e7e20005
+202002c0
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+20200040
+6fe20030
+c4008000
+793ffe01
+67e20030
+6fe4415f
+67e4003e
+7855fc00
+704c8a00
+20200610
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+20200040
+c5958006
+1c40a200
+20348009
+1d00a200
+20200009
+1c40a203
+20348009
+1d00a203
+68440032
+1a227e00
+793ffe1b
+9846fc00
+6fe40075
+204071c9
+18072600
+9a667e00
+20210013
+9840fe00
+9a20fe00
+67e80034
+7046cf00
+6fe20030
+79207e01
+67e20030
+6fe20073
+67e20092
+58000000
+67e64208
+67e6420b
+67e241f8
+6fe44161
+67e4003e
+24348023
+18808fff
+704c8a02
+20200610
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+20200040
+204033cc
+24228010
+6fe242a7
+c001b3e2
+c004b3e8
+c00533f4
+c005b3fa
+c0063404
+c0043446
+c00c33da
+c003b3d4
+c00cb3d8
+c00d345d
+c0093422
+c0098018
+204033d0
+247a0000
+6fe242a7
+c006801a
+c00e8016
+202033bf
+70007c37
+202033ca
+70007c18
+202033ca
+6fe2004b
+79207e01
+67e2004b
+6fe20030
+c283b413
+204001f6
+202033ca
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+20200040
+2040554f
+20400012
+df200020
+d8c08080
+18c20a00
+efe20006
+c001800e
+c002000e
+c002800e
+c003800e
+c016000e
+c016800e
+c0800010
+58000080
+e7e20005
+c2000005
+20600000
+df200008
+d8c0812a
+20200005
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+20200040
+20400008
+6fe20b97
+207a0000
+700b9700
+6fe20b95
+c004800f
+20206472
+6fe20b98
+207a0000
+700b9800
+6fe20b96
+c009001f
+c004800f
+20206481
+204063ce
+704c8807
+704c8736
+204002b6
+58000000
 e7e20005
 6fec0040
-67ec4f37
-202003e2
-6fec4f37
-684c0040
-98467c00
-20228003
+e7ec0005
+202002c0
+202052d6
+700b960f
+204052da
+204052f2
+2020e406
+20206410
 20600000
-704ca101
-704c9b00
+700b9801
+700b9613
 20600000
 00000000
 00000000
@@ -52,6 +830,60 @@
 00000000
 00000000
 00000000
+20200040
+7854fc00
+78287c00
+20404735
+2040460a
+204046ad
+2436c91c
+6fe20003
+1fe0fe01
+67e20003
+6fe204db
+1fe17e0f
+c001800e
+2020491b
+d8400004
+6fe2461c
+7d3a0406
+60424536
+684244ff
+1840fe06
+67e24537
+18427200
+6fe2461c
+205a03a0
+245a03a2
+604c4538
+d8c04500
+2040713a
+2020468c
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
 00000000
 00000000
 00000000
@@ -63,24 +895,15 @@
 00000000
 00000000
 20200040
-6fe24170
-1fe0fe01
-68420739
-98467c00
-24210009
-60424170
-20404d51
-2020000b
-70007c04
+20400006
+20400004
+20203e60
+d8e00009
+20207357
+70442901
+20758000
+70442900
 20600000
-704c8803
-704c871b
-204003d8
-6fe20046
-e7e40005
-6fe24170
-e7e20005
-202003e2
 00000000
 00000000
 00000000
@@ -126,71 +949,64 @@
 00000000
 00000000
 00000000
-20200040
-da201000
-68440738
-20407a08
-6fe2007d
-c0020011
-c0138023
-c01987f4
-c0038027
-c01707f6
-c014002b
-c005802d
-c0040037
-c00882e0
-c00602e2
-c00b82ec
-20204ba4
-6fe20739
-67e206a3
-c0058015
-20204cc0
-6fe24132
-c087cd22
-6fe24293
-207a0000
-68420055
-70005500
-70429300
-6fe2073a
-c1830000
-60420055
-700b9b01
-204006c6
-24208309
-20600000
-20404dc7
-6ff00739
-67f04e1a
-20600000
-6fe20739
-67e206a4
-20400769
-20204d51
-20404edd
-20200024
-20404d6f
-67e206af
-20404f51
-70007c0c
-6fe24293
-247a0000
-6fe20030
-c3830000
-20404d80
-20200303
-20404f51
-7006ae01
-20400309
-20204d60
+00000000
+00000000
+00000000
+00000000
 00000000
 00000000
 00000000
 00000000
 00000000
 20200040
+71f0001c
+70804205
+2040002b
+6fe28341
+67e24bce
+6fe24bef
+67e206ab
+24558031
+20407988
+580004b3
+67e4431d
+58000131
+67e4431f
+58000130
+67e4431b
+58000596
+67e44315
+58000599
+67e44313
+20558027
+2435801a
+20403e79
+204057bf
+700f0d66
+20203f28
+6fec4140
+67ec4340
+204057bf
+6fe24bce
+c2828024
+700f0d65
+20403f28
+58001171
+67e44f5d
+2020060e
+20400132
+700f0d6a
+20203f28
+204054b0
+204054b5
+200007d0
+2020553b
+6848833e
+6048804c
+70804de6
+2040012a
+70800520
+2020012a
 58000034
 da204be7
 d8400008
@@ -206,6 +1022,14 @@
 00000000
 00000000
 00000000
+20200040
+793f801c
+704c8801
+704c8701
+204002b6
+58000000
+e7e20005
+202002c0
 00000000
 00000000
 00000000
@@ -254,22 +1078,6 @@
 00000000
 00000000
 00000000
-20200040
-6fe64d31
-245a000e
-58000000
-67e64d31
-dfe04d5c
-67e40f12
-6a240f12
-204005c2
-207a0000
-6a240f12
-20403fa5
-204005f1
-20200007
-1fe22400
-202005f1
 00000000
 00000000
 00000000
@@ -278,6 +1086,30 @@
 00000000
 00000000
 00000000
+20200040
+6fe24ca1
+c0008010
+20400015
+704c880a
+704c8704
+204002b6
+6fec0040
+e7ec0005
+6fe60146
+e7e60005
+58000001
+e7e20005
+6fec0040
+67ec4f37
+202002c0
+6fec4f37
+684c0040
+98467c00
+20228003
+20600000
+704ca101
+704c9b00
+20600000
 00000000
 00000000
 00000000
@@ -319,50 +1151,51 @@
 00000000
 00000000
 20200040
-2040031b
-67e242a8
-20400023
-2040031b
-67e40f12
-20402284
-24628000
-1a208c01
-efe20006
-c280001b
-6fe40f12
-67e44db1
-20400605
-205a723a
-6fe40f12
-1fe22200
-1fe22400
-20404185
-1a420a00
-6fe40f12
-e7e40005
-e0220005
-6fe40f12
-1fe27200
-2040032f
-2020712d
-6fe40f12
-20400029
+6fe2007d
+c0060008
+c00b800f
+c0058012
+c019860c
+c017001c
+20204ba4
+da200040
+2040604d
+6fe80739
+68480779
+98467c00
+202281df
+20204d8b
+6fe44de9
+c3014e10
+20204def
+20404d6f
+67e206af
+20404f51
+70007c0c
+6fe24293
 247a0000
-6fe40f12
-1fe22200
-1fe22400
-204049ab
-20200017
-1fecfe00
-1ff1fe00
-18000201
-c1008000
-18000202
+6fe20030
+c3830000
+20404d80
+202001f6
+6fe24170
+1fe0fe01
+68420739
+98467c00
+24210024
+60424170
+20404d51
+20200026
+70007c04
 20600000
-20400612
-203a729b
-2020729d
-00000000
+704c8803
+704c871b
+204002b6
+6fe20046
+e7e40005
+6fe24170
+e7e20005
+202002c0
 00000000
 00000000
 00000000
@@ -381,25 +1214,90 @@
 00000000
 00000000
 00000000
+20200040
+da201000
+68440738
+20407a08
+6fe2007d
+c001800d
+c002001f
+c0088013
+c0138031
+c0140039
+c0038035
+c004003b
+2020060a
+6fe20739
+67e206a3
+c0088011
+20204cad
+20404d0a
+20200015
+20404e14
+20200015
+704c8804
+704c8708
+204002b6
+58000000
+e7e20005
+68420046
+e0440005
+58000001
+e7e20005
+202002c0
+6fe20739
+67e206a3
+c0058023
+20204cc0
+6fe24132
+c087cd22
+6fe24293
+207a0000
+68420055
+70005500
+70429300
+6fe2073a
+c1830000
+60420055
+700b9b01
+20400504
+242081fc
+20600000
+20404dc7
+6ff00739
+67f04e1a
+20600000
+6fe20739
+67e206a4
+20400143
+20204d51
+20404edd
+20200032
+20404f51
+7006ae01
+204001fc
+20204d60
 00000000
 20200040
-68464dd8
-2040032d
-2040032a
-c0008007
-c00107f0
-20202baf
-2040031b
-67e44c94
-d84003ff
-98410400
-60444c18
-1feb7e00
-1fecfe00
-67e24c1a
-2040032a
-67e24c1b
-202007f2
+6fe64d31
+245a000e
+58000000
+67e64d31
+dfe04d5c
+67e40f12
+6a240f12
+20400447
+207a0000
+6a240f12
+20403fa5
+20400476
+20200007
+1fe22400
+20200476
+00000000
+00000000
+00000000
+00000000
 00000000
 00000000
 00000000
@@ -444,6 +1342,68 @@
 00000000
 00000000
 00000000
+20200040
+68464dd8
+2040021c
+20400219
+c0008007
+c0010012
+20202baf
+2040020a
+67e44c94
+d84003ff
+98410400
+60444c18
+1feb7e00
+1fecfe00
+67e24c1a
+20400219
+67e24c1b
+20200608
+2040020a
+67e242a8
+20400034
+2040020a
+67e40f12
+20402284
+24628000
+1a208c01
+efe20006
+c280002c
+6fe40f12
+67e44db1
+2040048a
+205a723a
+6fe40f12
+1fe22200
+1fe22400
+20404185
+1a420a00
+6fe40f12
+e7e40005
+e0220005
+6fe40f12
+1fe27200
+2040021e
+2020712d
+6fe40f12
+2040003a
+247a0000
+6fe40f12
+1fe22200
+1fe22400
+204049ab
+20200028
+1fecfe00
+1ff1fe00
+18000201
+c1008000
+18000202
+20600000
+20400497
+203a729b
+2020729d
+00000000
 00000000
 00000000
 20200040
@@ -527,150 +1487,22 @@
 20404ca0
 2020000a
 20404c78
-204006d5
-202006dd
-204006d5
+20400019
+20200510
+20400019
 20404c78
 20404c7c
 700b9801
 700b9603
 20600000
-00000000
-00000000
-00000000
-00000000
-00000000
-00000000
-00000000
-00000000
-00000000
-00000000
-00000000
-00000000
-00000000
-00000000
-00000000
-00000000
-00000000
-00000000
-00000000
-00000000
-00000000
-00000000
-00000000
-00000000
-00000000
-00000000
-00000000
-00000000
-00000000
-00000000
-00000000
-00000000
-00000000
-00000000
-00000000
-00000000
-00000000
-00000000
-00000000
-20200040
-704c880b
-704c873e
-204003d8
-58000007
-e7e20005
-6fe20639
-e7e40005
-6ff04953
-e7f00005
-202003e2
-6ff04c6c
-c4028000
-704c8808
-704c870c
-204003d8
-58000000
-e7e20005
-6fe20639
-e7e40005
-6fea4c12
-e7ea0005
-202003e2
-00000000
-00000000
-00000000
-00000000
-00000000
-00000000
-00000000
-00000000
-00000000
-00000000
-00000000
-00000000
-00000000
-00000000
-00000000
-00000000
-00000000
-00000000
-00000000
-00000000
-00000000
-00000000
-00000000
-00000000
-00000000
-00000000
-00000000
-00000000
-00000000
-00000000
-00000000
-00000000
-00000000
-00000000
-00000000
-00000000
-00000000
-00000000
-00000000
-00000000
-00000000
-20200040
-6ff04c6c
-c4018000
-704c880c
-704c873e
-204003d8
-58000004
-e7e40005
-6fe20639
-e7e40005
-6ff04c0a
-e7f00005
-202003e2
-00000000
-00000000
-00000000
-00000000
-00000000
-00000000
-00000000
-00000000
-00000000
-00000000
-00000000
-00000000
-00000000
-00000000
-00000000
-00000000
-00000000
-00000000
-00000000
-00000000
+704c8809
+704c8732
+204002b6
+6fec0040
+e7ec0005
+6fe647d3
+e7e60005
+202002c0
 00000000
 00000000
 00000000
@@ -707,14 +1539,14 @@
 c4010000
 704c880a
 704c873e
-204003d8
+204002b6
 58000003
 e7e40005
 6fe20639
 e7e40005
 6fec4530
 e7ec0005
-202003e2
+202002c0
 00000000
 00000000
 00000000
@@ -771,12 +1603,12 @@
 c4000000
 704c8813
 704c873e
-204003d8
+204002b6
 58000001
 e7e40005
 6fe20639
 e7e40005
-20400399
+20400277
 e0420005
 6fe24626
 e7e20005
@@ -790,7 +1622,7 @@
 6fe2065b
 e7e20005
 6fe20639
-202003e2
+202002c0
 00000000
 00000000
 00000000
@@ -833,7 +1665,7 @@
 20200040
 704c8817
 704c8718
-204003d8
+204002b6
 6fec0040
 e7ec0005
 d8c04297
@@ -841,7 +1673,7 @@
 2040712d
 18007e00
 e7e20005
-202003e2
+202002c0
 00000000
 00000000
 00000000
@@ -967,8 +1799,8 @@
 684c0149
 20402289
 20628000
-20400237
-204003d8
+2040018f
+204002b6
 58000001
 e7e20005
 6fec0149
@@ -989,18 +1821,18 @@
 6fe80132
 9c467e00
 e7e40005
-202003e2
+202002c0
 6fe60146
 e7e60005
 6fe80132
 9c467e00
 e7e40005
 6fe20018
-20400224
+2040017c
 e7e20005
 6fe24c9c
 c001002b
-202003e2
+202002c0
 6fe64d2e
 1fe20c00
 efe20006
@@ -1011,7 +1843,7 @@
 2040712d
 184672f0
 20407100
-202003e2
+202002c0
 00000000
 00000000
 00000000
@@ -1026,18 +1858,18 @@
 6fe24c18
 c0090005
 c011001a
-2020036c
+2020024a
 6fe24ded
-203a036e
-20400324
+203a024c
+20400213
 67ee4e0a
 2040000e
 6fe24ded
 1fe0ffff
 67e24ded
-20200370
-20400347
-243a036e
+2020024e
+20400225
+243a024c
 1a420a00
 1a40a407
 1a420c00
@@ -1048,25 +1880,25 @@
 18a08bf9
 e7ee0005
 20600000
-2040031b
+2040020a
 67e4495f
-2040031b
+2040020a
 67e44961
-20400491
+20400024
 df200003
-20400374
+20400252
 6fe20639
 e7e40005
-202003e2
-00000000
-00000000
-00000000
-00000000
-00000000
-00000000
-00000000
-00000000
-00000000
+202002c0
+da400014
+da200009
+d8200003
+204049ab
+58000015
+e7e20005
+6ff0495b
+e7f00005
+20600000
 00000000
 00000000
 00000000
@@ -1089,7 +1921,7 @@
 20200040
 704c8806
 704c8714
-204003d8
+204002b6
 6fe24c89
 e7e20005
 6fe20046
@@ -1102,7 +1934,7 @@
 2020000f
 58000000
 e7e40005
-202003e2
+202002c0
 00000000
 00000000
 00000000
@@ -1153,7 +1985,7 @@
 20200040
 704c8804
 704c8705
-204003d8
+204002b6
 58000000
 e7e20005
 6fe24e18
@@ -1163,7 +1995,7 @@
 6fe2004c
 793ffe05
 67e2004c
-202003e2
+202002c0
 00000000
 00000000
 00000000
@@ -1217,12 +2049,12 @@
 20200040
 704c8807
 704c8720
-204003d8
+204002b6
 6fec0040
 e7ec0005
 6fe24ca0
 e7e20005
-202003e2
+202002c0
 00000000
 00000000
 00000000
@@ -1281,7 +2113,7 @@
 20200040
 704c880b
 704c8703
-204003d8
+204002b6
 6fe24c8a
 e7e20005
 6fe20046
@@ -1296,7 +2128,7 @@
 7920fe00
 e7e20005
 6fe20046
-202003e2
+202002c0
 00000000
 00000000
 00000000
@@ -1352,33 +2184,33 @@
 c0030011
 c004000e
 c01f8012
-2020036c
-202007e6
-202007e8
-202007ea
-202007ec
-202007ee
-2020036c
-2020036c
+2020024a
+202005fe
+20200600
+20200602
+20200604
+20200606
+2020024a
+2020024a
 6fe24c18
 c0008019
 c00b801d
 c010001f
 c0518024
 c0300034
-2020036c
-20400321
+2020024a
+20400210
 67ec4c8d
-2040033f
-20200370
+20400221
+2020024e
 704e193f
-20200370
+2020024e
 df200002
-20400379
+20400257
 58000000
 e7e40005
-202003e2
-2040031b
+202002c0
+2040020a
 68420046
 98467c00
 2022802b
@@ -1387,18 +2219,18 @@
 24628000
 604242a8
 df200003
-20400379
+20400257
 6fe242a8
 e7e40005
 6fe20018
-20400224
+2040017c
 e7e20005
-202003e2
+202002c0
 df200002
-20400379
+20400257
 6fe44f35
 e7e40005
-202003e2
+202002c0
 00000000
 00000000
 00000000
@@ -1415,14 +2247,14 @@
 67e40f12
 20200008
 6a240f12
-204005c2
+20400447
 207a0000
 6a240f12
 20403fa5
-204005f1
+20400476
 20200008
 1fe22400
-202005f1
+20200476
 00000000
 00000000
 00000000
@@ -1472,7 +2304,7 @@
 00000000
 20200040
 6fe24f34
-243a07e4
+243a05fc
 704f3401
 20400023
 6f224cd2
@@ -1536,41 +2368,52 @@
 00000000
 20200040
 6fe24c18
-c005000f
-c0070012
-c0098346
-c00b0343
-c00b8346
-c00c0346
-c00c8346
-c00d0346
-c00d8346
-c0078015
-c008001a
-c008801e
-202007e2
-2040032a
+c005001a
+c007001d
+c0098019
+c00b000f
+c00b8019
+c00c0019
+c00c8019
+c00d0019
+c00d8019
+c0078020
+c0080025
+c0088029
+202005fa
+2040020a
+2040025e
+da200009
+d8200003
+204049ab
+58000008
+e7e20005
+6ff04ddf
+e7f00005
+20600000
+2020024a
+20400219
 67e244de
-20200370
+2020024e
 7044d900
 704c8b00
-20200370
+2020024e
 df200002
-20400374
+20400252
 58000004
 e7e20005
-202003e2
+202002c0
 704ded00
 704e0a00
 704dee00
-20200370
+2020024e
 68424ded
 18467c04
-2022836e
-20400324
+2022824c
+20400213
 67ee4e0a
-20400025
-20200370
+20400030
+2020024e
 6fe24ded
 d8a04dee
 1feffe07
@@ -1587,17 +2430,6 @@
 00000000
 00000000
 00000000
-00000000
-00000000
-00000000
-00000000
-00000000
-00000000
-00000000
-00000000
-00000000
-00000000
-00000000
 20200040
 6fe24c18
 c0040008
@@ -1605,104 +2437,168 @@
 c0058012
 c0060025
 c0068029
-202007e0
-2040032a
+202005f8
+20400219
 67e244df
 1fe27200
-20400318
-20200370
-2040032a
+20400207
+2020024e
+20400219
 67e244ff
 1fe27200
-20400318
-20200370
+20400207
+2020024e
 6fe244d9
-243a036e
-2040032a
+243a024c
+20400219
 67e24636
-2040031b
+2040020a
 67e444da
-2040031b
+2040020a
 67e444dc
-2040032a
+20400219
 67e24637
-2040032a
+20400219
 67e24e11
 6fe444da
 684444dc
 98467c00
-24228370
+2422824e
 1fe3fe00
 67e444da
-20200370
-2040032a
+2020024e
+20400219
 67e244d9
-2040032a
-20200370
-2040031b
+20400219
+2020024e
+2040020a
 67e444da
-2040031b
+2040020a
 67e444dc
-2040032a
-2040032a
-20400321
+20400219
+20400219
+20400210
 67ec4627
-2040032a
+20400219
 67e24626
-2040031b
+2040020a
 1febfe00
 67e444d7
-2040031b
-2040031b
+2040020a
+2040020a
 67e44632
-2040031b
+2040020a
 67e44634
 7044d901
 704c8b01
-20200380
+2020025e
 00000000
 00000000
 20200040
 6fe24c18
-c01b8009
-c0290012
-c02a8018
-c02b001d
-c0360021
-c0368026
-2020036c
-2040027e
-2040031b
+c001800a
+c01b8015
+c029001e
+c02a8024
+c02b0029
+c036002d
+c0368032
+2020024a
+2040024e
+5800003f
+67f04c6c
+5fffffff
+67f04c1c
+58000000
+67ec4c7a
+67e244de
+67e244d9
+67e24133
+20200221
+204001a2
+2040020a
 67e40051
 df200003
-20400374
+20400252
 6fe20046
 e7e40005
 7042a71d
-202003e2
-2040032a
+202002c0
+20400219
 67e24c98
 df200064
 d8a00183
-20400318
-20200370
+20400207
+2020024e
 df200002
-20400374
+20400252
 6fe24c97
 e7e20005
-202003e2
-2040032a
+202002c0
+20400219
 67e24c97
-203a036a
-20200370
+203a0248
+2020024e
 df200003
-20400374
+20400252
 6fe44de7
 e7e40005
-202003e2
-2040031b
+202002c0
+2040020a
 67e44de7
-20200370
+2020024e
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+20200040
+6fe24c18
+c0158005
+c0160015
+2020024a
+20400210
+67ec42a9
+2040020d
+67e647ce
+df200007
+20400252
+6fec0040
+e7ec0005
+204002c0
+6fe24c9f
+c0008012
+7042a716
+20600000
+204033e5
+700b9b01
+20600000
+20400210
+67ec42a9
+2040001d
+df200007
+20400252
+6fec0040
+e7ec0005
+202002c0
+700b950a
+700b9701
+20600000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
 00000000
 00000000
 00000000
@@ -1728,62 +2624,62 @@
 00000000
 20200040
 6fe24c18
-c00c8009
-c00e0013
-c00e801b
-c01586ae
-c01606be
-c00d8026
-2020036c
-20400321
+c00c8007
+c00e0011
+c00e8019
+c00d8024
+202005f6
+20400210
 67ec42a9
-2040031b
+2040020a
 67e200b6
-2040031b
+2040020a
 9c40fe00
 1fe17ffc
 67e800b7
 7042a703
-20200380
+2020025e
 6fe24c9b
-c0810384
-2040031b
-203a0384
-2040032a
+c0810262
+2040020a
+203a0262
+20400219
 67e206a7
 7042a715
-20200380
-2040031b
+2020025e
+2040020a
 67e242a8
 20402284
-24228384
+24228262
 1a208c01
 efe20006
-c2800024
-20400380
+c2800022
+2040025e
 20203420
-20400380
+2040025e
 202048f0
 6fe24c9b
-c0810384
-2040031b
+c0810262
+2040020a
 67e242a8
-203a0384
-20400380
+203a0262
+2040025e
 6ff04e1a
-243a0030
+243a002e
 7042a704
 20600000
 704c880b
 704c870b
-204003d8
+204002b6
 58000000
 e7e20005
 6fe20046
 e7e40005
 6ff04e1a
 e7f00005
-202003e2
+202002c0
+00000000
+00000000
 00000000
 00000000
 00000000
@@ -1798,48 +2694,48 @@
 c0070020
 c0088028
 c009802c
-202007de
-20400321
+202005f4
+20400210
 67ec42a9
 d8a04297
 18007210
-20400318
+20400207
 70429301
 7042a70b
 20200023
-20400321
+20400210
 67ec42a9
 7042a70c
 20400023
-204006c6
-24208309
-20400321
+20400504
+242081fc
+20400210
 67ec42a9
-2040032a
+20400219
 67e247f1
 98007200
 d8a047f2
-20400318
+20400207
 7042a709
 20200023
-20400321
+20400210
 67ec42a9
 7042a70a
 df200007
-20400374
+20400252
 6fec0040
 e7ec0005
-202003e2
-2040031b
+202002c0
+2040020a
 67e242a8
 7042a70d
-20200380
-2040031b
+2020025e
+2040020a
 67e242a8
-2040032a
+20400219
 1fe0fe0e
 67e242a7
-20200380
+2020025e
 00000000
 00000000
 00000000
@@ -1857,63 +2753,63 @@
 20200040
 6fe24c18
 c0030006
-c0040018
-c005002b
-202007dc
-2040031b
+c004001c
+c005002f
+202005f2
+2040020a
 67e242a8
-2040032a
+20400219
 67e206a4
 20402284
-24228384
+24228262
 1a208c01
 efe20006
-c2800332
+c2800018
 7042a706
 6fe242a8
 6842439b
 98467c00
-24228380
+2422825e
 7042a711
 6fe2439a
 67e242a8
-20200380
-20400321
+2020025e
+6fe206a4
+67e20f12
+20404894
+2020025e
+20400210
 67ec42a9
 7042a71a
 6fe24c9b
-c0008021
-c001001f
-20200025
+c0008025
+c0010023
+20200029
 704c960b
-20200026
+2020002a
 704c9600
-20400026
+2040002a
 704c8a02
-2020021b
+20200173
 704c9602
 df200007
-20400375
+20400253
 6fec42a9
 e7ec0005
-202003e2
+202002c0
 6fe24ca1
-c0000384
-c0010382
+c0000262
+c0010260
 6fe24c9b
-c0010382
+c0010260
 704ca102
-20400321
+20400210
 67ec42a9
-2040032a
+20400219
 67e24c8a
 7042a708
-20400380
-2020021b
-00000000
-00000000
-00000000
-00000000
+2040025e
+20200173
 00000000
 00000000
 00000000
@@ -1932,69 +2828,69 @@
 c0230033
 c0238034
 c0288036
-202007da
-2040031b
+202005f0
+2040020a
 67e44153
-2040031b
+2040020a
 67e44151
-20200370
+2020024e
 df200005
-20400374
+20400252
 6fe4414f
 e7e40005
 6fe4414d
 e7e40005
-202003e2
-2040031b
+202002c0
+2040020a
 67e4414f
-2040031b
+2040020a
 67e4414d
-20200370
+2020024e
 df200004
-20400374
+20400252
 6fe6414a
 e7e60005
-202003e2
-2040031e
+202002c0
+2040020d
 67e6414a
-20200370
-2020036c
-2040032a
-2020036c
+2020024e
+2020024a
+20400219
+2020024a
 df200002
-20400374
+20400252
 6fe24c9c
 e7e20005
-202003e2
-2040032a
+202002c0
+20400219
 67e24c9c
-20200370
-2020036c
-2040032a
-2020036c
+2020024e
+2020024a
+20400219
+2020024a
 df2000f2
-20400374
+20400252
 6fe24c98
 e7e20005
 d8c00183
 df200064
 2040713a
-202003e2
+202002c0
 00000000
 00000000
 20200040
 6fe24c18
 c0070005
 c007800a
-2020036c
+2020024a
 df200003
-20400374
+20400252
 6fe44de9
 e7e40005
-202003e2
-2040031b
+202002c0
+2040020a
 67e44de9
-20200370
+2020024e
 00000000
 00000000
 00000000
@@ -2053,60 +2949,60 @@
 c0058022
 c006002d
 c0068035
-202007d8
+202005ee
 6fe44deb
-c3010382
+c3010260
 6fe44de9
-c3010382
+c3010260
 6fe24c9b
-c0810384
-2040031b
+c0810262
+2040020a
 67e40253
-2040031b
+2040020a
 67e40255
-2040031b
+2040020a
 67e40257
 58000040
 67e4430b
-2040031b
+2040020a
 67e4430d
-2040031b
+2040020a
 67e4430f
 7042a712
-20200380
-2040031b
+2020025e
+2040020a
 67e40253
 6fe20031
-c3030382
+c3030260
 7042a713
-20200380
+2020025e
 6fe24c9b
-c0810384
+c0810262
 6fe44deb
-c3000382
+c3000260
 6fe44de9
-c3000382
-20400321
+c3000260
+20400210
 67ec42a9
-2040032a
+20400219
 7042a718
-20200380
-2040027e
+2020025e
+204001a2
 df200005
-20400374
+20400252
 6fe20046
 e7e40005
 6fe44deb
 e7e40005
-202003e2
-2040027e
-2040031b
+202002c0
+204001a2
+2040020a
 67e44deb
 df200003
-20400374
+20400252
 6fe20046
 e7e40005
-202003e2
+202002c0
 00000000
 00000000
 00000000
@@ -2117,44 +3013,44 @@
 c0018010
 c0028015
 c003001a
-202007d6
-20400327
+202005ec
+20400216
 67f04c6c
-20200370
+2020024e
 df200004
-20400374
+20400252
 580400fb
 e7e60005
-202003e2
+202002c0
 df200009
-20400374
+20400252
 6ff04ddf
 e7f00005
-202003e2
+202002c0
 6fe244de
-243a036e
-20400321
+243a024c
+20400210
 67ec4c7a
-20200370
+2020024e
 6fe244de
-243a036e
-2040031b
+243a024c
+2040020a
 67e44617
-2040031b
+2040020a
 67e44619
-2040032a
+20400219
 2040002d
 6042461b
-2040032a
+20400219
 205a0035
 245a0039
-2040032a
-20400321
-2040032a
+20400219
+20400210
+20400219
 67e24624
-2040032a
+20400219
 67e24e11
-20200370
+2020024e
 d8400000
 c1000000
 d8400002
@@ -2182,30 +3078,30 @@
 c002001e
 c002801e
 c0048019
-2020036c
+2020024a
 df200009
-20400374
+20400252
 6ff04c24
 e7f00005
-202003e2
+202002c0
 df200041
-20400374
+20400252
 d8c04c2c
 df200040
 2040713a
-202003e2
+202002c0
 df200009
-20400374
+20400252
 6ff04138
 e7f00005
-202003e2
+202002c0
 df200007
-20400374
+20400252
 6fec4140
 e7ec0005
-202003e2
+202002c0
 df200008
-20400374
+20400252
 580002a8
 e7e40005
 5800003c
@@ -2213,7 +3109,7 @@
 58000008
 e7e40005
 e7e40005
-202003e2
+202002c0
 00000000
 00000000
 00000000
@@ -2240,62 +3136,62 @@
 00000000
 20200040
 6fe24c18
-c000800c
-c001800f
-c0098011
-c00a001b
-c00b8023
-c00c0028
-c00c802b
-c00d0030
-c00d8033
-202007d4
-20400327
+c000800b
+c009800e
+c00a0018
+c00b8020
+c00c0025
+c00c8028
+c00d002d
+c00d8030
+202005ea
+20400216
 67f04c1c
-20200370
-20400370
-20200336
-2040032f
+2020024e
+2040021e
 d8a0468a
 df200042
 2040713a
 df200042
 d8c0468a
 d8400000
-204001d9
+20400150
 60424689
-20200370
+2020024e
 df2000f9
-20400374
+20400252
 d8c0468a
 df200040
 2040713c
 df200017
 204070e4
-202003e2
+202002c0
 df200003
-20400374
+20400252
 6fe44159
 e7e40005
-202003e2
-2040031b
+202002c0
+2040020a
 67e44159
-20200370
+2020024e
 df200002
-20400374
+20400252
 6fe24133
 e7e20005
-202003e2
-2040032a
+202002c0
+20400219
 67e24133
-20200370
+2020024e
 df200005
-20400374
+20400252
 6fe44153
 e7e40005
 6fe44151
 e7e40005
-202003e2
+202002c0
+00000000
+00000000
+00000000
 00000000
 00000000
 00000000
@@ -2308,11 +3204,11 @@
 c0010017
 c0028019
 c0048025
-202007d2
+202005e8
 7920001c
-2040031e
+2040020d
 67e64147
-2040032a
+20400219
 d8400800
 984ffe00
 d840ffff
@@ -2321,36 +3217,36 @@
 18427e00
 18000e02
 20407141
-2040032a
+20400219
 67e24c99
 67e24c9a
-20200380
+2020025e
 7042a702
-20200370
-20400321
+2020024e
+20400210
 67ec42a9
-2040031b
+2040020a
 67e40251
-2040031b
+2040020a
 67e200b6
-2040031b
-2040032a
+2040020a
+20400219
 67e24ad0
 704c9b01
 7042a705
-20200380
+2020025e
 6fe24ca1
-c0000384
-c0010382
+c0000262
+c0010260
 6fe24c9b
-c0010382
-20400321
+c0010260
+20400210
 67ec42a9
 7042a707
-2040032a
-c0008380
+20400219
+c000825e
 7042a719
-20400380
+2040025e
 20204d51
 00000000
 00000000
